studyStudent.vue 815 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <!-- <div class="btnAllNT">
  14. <img
  15. v-if="
  16. courseDetail.userid == userid ||
  17. (courseDetail.course_teacher &&
  18. courseDetail.course_teacher.indexOf(userid) != -1)
  19. "
  20. src="../../assets/icon/learn/addTool.png"
  21. @click="openToolAll"
  22. style="position: relative"
  23. />
  24. <img
  25. src="../../assets/icon/learn/last.png"
  26. @click="nextOrpreSteps(0)"
  27. />
  28. <img
  29. src="../../assets/icon/learn/next.png"
  30. @click="nextOrpreSteps(1)"
  31. />
  32. <img
  33. src="../../assets/icon/learn/return.png"
  34. @click.stop="
  35. goTo(
  36. '/courseDetail?userid=' +
  37. userid +
  38. '&oid=' +
  39. oid +
  40. '&org=' +
  41. org +
  42. '&cid=' +
  43. classId +
  44. '&courseId=' +
  45. id +
  46. '&tType=' +
  47. tType +
  48. '&screenType=' +
  49. screenType
  50. )
  51. "
  52. />
  53. </div> -->
  54. <div
  55. class="pButton"
  56. style="left: 0; top: 140px"
  57. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  58. @click="setContent2(true)"
  59. >
  60. <!-- 批 , getCourseDetail()-->
  61. <img
  62. src="../../assets/icon/newIcons/isRight.png"
  63. style="width: 45px"
  64. alt=""
  65. />
  66. </div>
  67. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  68. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  69. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  70. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  71. <div
  72. style="
  73. max-width: calc(100% - 40px);
  74. width: auto;
  75. white-space: nowrap;
  76. overflow: hidden;
  77. text-overflow: ellipsis;
  78. word-break: break-word;
  79. display: block;
  80. "
  81. >
  82. <el-tooltip
  83. effect="light"
  84. :content="courseDetail.title"
  85. placement="top"
  86. >
  87. <div class="ctitle">
  88. {{ courseDetail.title }}
  89. </div>
  90. </el-tooltip>
  91. </div>
  92. <el-tooltip effect="light" content="收缩" placement="top">
  93. <div class="mlImg" @click="setContent2(false)">
  94. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  95. </div>
  96. </el-tooltip>
  97. </div>
  98. <div
  99. class="inviteBox"
  100. v-if="tcid && inviteCode"
  101. style="padding: 0 0 8px 0"
  102. >
  103. <div>
  104. <span>随机码:{{ inviteCode }}</span>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="cru_selectBox">
  109. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  110. <div class="stageChild" :class="{ navActive: item.isOpen }">
  111. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  112. <div
  113. class="navItem"
  114. :class="{
  115. openTaskActive:
  116. navIndex == taskCount &&
  117. nav.id == navId &&
  118. stageIndex == courseType,
  119. }"
  120. >
  121. <div v-if="nav.tool[0].tool != undefined">
  122. <div
  123. class="closeTri1"
  124. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  125. @click="openTask(stageIndex, navIndex, nav.id)"
  126. >
  127. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  128. </div>
  129. <div
  130. class="closeTri1"
  131. v-else
  132. @click="openTask(stageIndex, navIndex, nav.id)"
  133. >
  134. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  135. </div>
  136. </div>
  137. <div v-else class="noToolBlue"></div>
  138. <div
  139. @click="openTask(stageIndex, navIndex, nav.id)"
  140. class="navItemList"
  141. :class="{
  142. isItemList:
  143. navIndex == taskCount &&
  144. nav.id == navId &&
  145. stageIndex == courseType,
  146. }"
  147. >
  148. <div>任务{{ navIndex + 1 }}:</div>
  149. <el-tooltip
  150. effect="light"
  151. :content="nav.taskName"
  152. placement="top"
  153. >
  154. <div
  155. :style="{
  156. width:
  157. IsLookOpen && !nav.isLook
  158. ? 'calc(100% - 75px)'
  159. : 'auto',
  160. }"
  161. >
  162. {{ nav.taskName }}
  163. </div>
  164. </el-tooltip>
  165. </div>
  166. </div>
  167. <div
  168. v-if="nav.tool[0].tool != undefined"
  169. class="toolChild"
  170. :class="{ toolActive: nav.isOpen }"
  171. >
  172. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  173. <div
  174. class="gjCss"
  175. :class="{
  176. isGjCss: t.isTool,
  177. }"
  178. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  179. >
  180. <div>工具{{ toolIndex2 + 1 }}:</div>
  181. <div v-if="t.tool == 58">模拟驾驶</div>
  182. <div v-if="t.tool == 59">路径搜索</div>
  183. <div v-if="t.tool == 60">深度学习</div>
  184. <div v-if="t.tool == 10">倒计时</div>
  185. <div v-if="t.tool == 65">挑人</div>
  186. <div v-if="t.tool == 7">思维网格</div>
  187. <div v-if="t.tool == 1">电子白板</div>
  188. <div v-if="t.tool == 52">文档</div>
  189. <div v-if="t.tool == 3">思维导图</div>
  190. <div v-if="t.tool == 48">表格</div>
  191. <div v-if="t.tool == 49">学生分组</div>
  192. <div v-if="t.tool == 4">问卷调查</div>
  193. <div v-if="t.tool == 45">选择题</div>
  194. <div v-if="t.tool == 15">问答</div>
  195. <div v-if="t.tool == 16">作业提交</div>
  196. <div v-if="t.tool == 50">批量上传</div>
  197. <div v-if="t.tool == 41">选择匹配</div>
  198. <div v-if="t.tool == 47">排序</div>
  199. <div v-if="t.tool == 40">个人评价</div>
  200. <div v-if="t.tool == 18">训练平台</div>
  201. <div v-if="t.tool == 21">AIoT Blockly</div>
  202. <div v-if="t.tool == 23">AI Python</div>
  203. <div v-if="t.tool == 24">AI Blockly</div>
  204. <div v-if="t.tool == 32">源码编辑</div>
  205. <div v-if="t.tool == 57">CocoPi</div>
  206. <div v-if="t.tool == 63">海龟编程</div>
  207. <div v-if="t.tool == 28">翻译</div>
  208. <div v-if="t.tool == 31">数字画板</div>
  209. <div v-if="t.tool == 39">GeoGebra</div>
  210. <div v-if="t.tool == 66">公式编辑</div>
  211. <div v-if="t.tool == 67">分子结构</div>
  212. <div v-if="t.tool == 68">时间轴</div>
  213. <div v-if="t.tool == 69">英语写作</div>
  214. <div v-if="t.tool == 70">英语口语</div>
  215. <div v-if="t.tool == 25">目标管理</div>
  216. <div v-if="t.tool == 26">课程设计</div>
  217. <div v-if="t.tool == 62">交互视频</div>
  218. <div v-if="t.tool == 71">AI智能体</div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  228. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  229. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  230. <div class="courseIndex" :style="{width: orgArray.includes(org) ? '100%' : 'calc(100% - 745px)'}">
  231. <div>任务{{ taskCount + 1 }}</div>
  232. <el-tooltip
  233. effect="light"
  234. :content="
  235. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  236. "
  237. placement="top"
  238. >
  239. <div>
  240. {{
  241. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  242. .task
  243. }}
  244. </div>
  245. </el-tooltip>
  246. </div>
  247. <!-- 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 :videoStart="videoStart" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  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 ? 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 ? f[g].classid.split(",") : []),
  14424. this.tcid.split(",")
  14425. ).length !== 0 || this.arrayToArray(
  14426. (f[g].classid ? 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. word-break: break-word;
  22757. white-space: pre-line;
  22758. }
  22759. .scoreBox,
  22760. .scoreDetailBox {
  22761. display: flex;
  22762. align-items: center;
  22763. justify-content: flex-start;
  22764. margin-top: 20px;
  22765. font-size: 18px;
  22766. width: 100%;
  22767. }
  22768. .scoreBox .t,
  22769. .scoreDetailBox .t {
  22770. margin-right: 10px;
  22771. width: 100px;
  22772. text-align: right;
  22773. }
  22774. .scoreDetailBox {
  22775. align-items: flex-start;
  22776. }
  22777. .scoreDetailBox >>> .el-textarea {
  22778. width: calc(100% - 200px);
  22779. }
  22780. .scoreBox >>> .el-input {
  22781. width: 130px;
  22782. font-size: 38px;
  22783. }
  22784. .scoreBox >>> .el-input__inner {
  22785. height: 60px;
  22786. }
  22787. .answerScore {
  22788. position: absolute;
  22789. top: 10px;
  22790. right: 10px;
  22791. background: #0000008f;
  22792. border-radius: 5px;
  22793. padding: 3px 5px;
  22794. font-size: 14px;
  22795. color: #fff;
  22796. cursor: pointer;
  22797. }
  22798. .open_box .switch_box {
  22799. width: 100%;
  22800. margin: 0 auto;
  22801. display: flex;
  22802. justify-content: space-between;
  22803. }
  22804. .open_box .switch_box + .switch_box {
  22805. margin-top: 10px;
  22806. }
  22807. .deleteImg,.deleteImg1 {
  22808. width: 25px !important;
  22809. height: 25px !important;
  22810. cursor: pointer;
  22811. position: absolute;
  22812. top: 10px;
  22813. right: 10px;
  22814. }
  22815. .deleteImg2 {
  22816. width: 23px !important;
  22817. height: 23px !important;
  22818. top: 5px;
  22819. right: 5px;
  22820. }
  22821. .deleteImg1{
  22822. width: 23px !important;
  22823. height: 23px !important;
  22824. top: 5px !important;
  22825. right: 30px !important;
  22826. }
  22827. .rightW {
  22828. right: 40px;
  22829. }
  22830. .drawPBox {
  22831. display: flex;
  22832. flex-direction: column;
  22833. position: relative;
  22834. }
  22835. .drawPBox span {
  22836. font-size: 18px;
  22837. color: #606266;
  22838. padding-bottom: 10px;
  22839. margin: 10px 0;
  22840. border-bottom: 1px solid #eaeaea;
  22841. }
  22842. .drawPBox img {
  22843. width: 500px;
  22844. height: 300px;
  22845. object-fit: contain;
  22846. cursor: pointer;
  22847. margin: 0 auto;
  22848. }
  22849. .sentenBox {
  22850. background: #fff;
  22851. height: 450px;
  22852. overflow: auto;
  22853. background-image: url("../../assets/icon/conSentences/stuBg.png");
  22854. background-position: 102%;
  22855. background-repeat: no-repeat;
  22856. background-size: 60%;
  22857. }
  22858. .addSen {
  22859. background: #409efe;
  22860. width: 90px;
  22861. color: #fff;
  22862. height: 35px;
  22863. text-align: center;
  22864. line-height: 35px;
  22865. border-radius: 5px;
  22866. float: right;
  22867. margin: 10px 20px 0 0;
  22868. cursor: pointer;
  22869. }
  22870. .sentenTop {
  22871. display: flex;
  22872. flex-direction: row;
  22873. flex-wrap: nowrap;
  22874. align-items: center;
  22875. padding: 55px 0 0 20px;
  22876. box-sizing: border-box;
  22877. }
  22878. .sentenTop > div:nth-child(2) {
  22879. width: 300px;
  22880. margin: 0 15px;
  22881. }
  22882. .sentenTop > div:nth-child(3) {
  22883. background: #409efe;
  22884. color: #fff;
  22885. width: 65px;
  22886. height: 35px;
  22887. text-align: center;
  22888. line-height: 35px;
  22889. border-radius: 5px;
  22890. cursor: pointer;
  22891. }
  22892. .cardList,
  22893. .cardList1 {
  22894. padding: 10px 0 10px 0;
  22895. display: flex;
  22896. flex-direction: row;
  22897. flex-wrap: wrap;
  22898. align-items: center;
  22899. box-sizing: border-box;
  22900. border-bottom: 1px solid #f4f4f4;
  22901. width: 98%;
  22902. margin: 0 auto;
  22903. min-width: 60%;
  22904. max-width: 85%;
  22905. }
  22906. .cardList1 {
  22907. padding: 10px 0 10px 10px !important;
  22908. margin: 0 !important;
  22909. }
  22910. .cardBox {
  22911. display: flex;
  22912. flex-direction: row;
  22913. flex-wrap: wrap;
  22914. align-items: center;
  22915. align-content: center;
  22916. }
  22917. .cardBox > div {
  22918. margin-bottom: 10px;
  22919. }
  22920. .isCard,
  22921. .isChooseCard,
  22922. .noCard,
  22923. .isCard1 {
  22924. width: 130px;
  22925. height: 60px;
  22926. text-align: center;
  22927. line-height: 60px;
  22928. font-size: 20px;
  22929. cursor: pointer;
  22930. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  22931. background-size: cover;
  22932. transition: all 2s;
  22933. margin-right: 20px;
  22934. }
  22935. .isCard > div,
  22936. .noCard > div,
  22937. .isCard1 > div {
  22938. white-space: nowrap;
  22939. overflow: hidden;
  22940. text-overflow: ellipsis;
  22941. width: 75%;
  22942. margin: 0 auto;
  22943. }
  22944. .noCard {
  22945. background-image: none;
  22946. }
  22947. .isCard1 {
  22948. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  22949. }
  22950. .isChooseCard {
  22951. background-image: none;
  22952. border: 1px dashed #b9b9b9;
  22953. border-radius: 10px;
  22954. }
  22955. .card {
  22956. width: 130px;
  22957. height: 60px;
  22958. }
  22959. .card > img {
  22960. width: 100%;
  22961. height: 100%;
  22962. }
  22963. .rightCardBox {
  22964. margin: 10px 0 0 10px;
  22965. }
  22966. .rightCardBox > div:nth-child(1) {
  22967. margin-bottom: 10px;
  22968. }
  22969. .cardCss {
  22970. display: flex;
  22971. flex-direction: column;
  22972. flex-wrap: nowrap;
  22973. align-items: center;
  22974. border-bottom: 3px solid #b4c3d3;
  22975. padding: 0 0 5px 0;
  22976. margin-right: 10px;
  22977. }
  22978. .cardCss > div:nth-child(2) {
  22979. background: #5b7b9d;
  22980. color: #fff;
  22981. width: 20px;
  22982. height: 20px;
  22983. border-radius: 50%;
  22984. text-align: center;
  22985. line-height: 20px;
  22986. }
  22987. .isWrong {
  22988. display: flex;
  22989. flex-direction: row;
  22990. flex-wrap: nowrap;
  22991. align-content: center;
  22992. align-items: center;
  22993. }
  22994. .answerRight {
  22995. width: 25%;
  22996. }
  22997. .isTj {
  22998. display: flex;
  22999. flex-direction: row;
  23000. flex-wrap: nowrap;
  23001. align-items: center;
  23002. }
  23003. .isTj > div:nth-child(2) {
  23004. color: #727070;
  23005. margin-left: 10px;
  23006. }
  23007. .isTjImg {
  23008. width: 30px;
  23009. height: 30px;
  23010. }
  23011. .isTjImg > img {
  23012. width: 100%;
  23013. height: 100%;
  23014. }
  23015. .cardAnswerBox {
  23016. font-size: 18px;
  23017. width: 97%;
  23018. border: 5px;
  23019. padding: 0;
  23020. border-radius: 5px;
  23021. margin: 10px auto;
  23022. word-break: break-word;
  23023. }
  23024. .w_name {
  23025. margin-bottom: 10px;
  23026. }
  23027. .w_name span {
  23028. font-size: 16px;
  23029. }
  23030. .w_teachert {
  23031. width: 50px !important;
  23032. position: absolute;
  23033. height: auto !important;
  23034. z-index: 10;
  23035. right: 25px;
  23036. top: -25px;
  23037. }
  23038. .group_workBox {
  23039. }
  23040. .group_workBox + .group_workBox {
  23041. margin-top: 20px;
  23042. }
  23043. .group_box {
  23044. padding-bottom: 20px;
  23045. border-bottom: 2px solid #f0f0f0;
  23046. margin-top: 10px;
  23047. }
  23048. .group_title {
  23049. display: flex;
  23050. align-items: center;
  23051. justify-content: space-between;
  23052. width: 95%;
  23053. }
  23054. .group_name {
  23055. background-image: url(../../assets/icon/groupN.png);
  23056. width: 220px;
  23057. background-size: 100% 100%;
  23058. height: 67px;
  23059. padding: 0 20px 0 43px;
  23060. box-sizing: border-box;
  23061. line-height: 63px;
  23062. color: #fff;
  23063. overflow: hidden;
  23064. white-space: nowrap;
  23065. text-overflow: ellipsis;
  23066. }
  23067. .group_work {
  23068. width: 100%;
  23069. padding: 0 10px;
  23070. box-sizing: border-box;
  23071. display: flex;
  23072. flex-wrap: wrap;
  23073. }
  23074. .g_d_box {
  23075. display: flex;
  23076. flex-flow: wrap;
  23077. justify-content: space-around;
  23078. }
  23079. .g_d_box .isChair {
  23080. background-image: url(../../assets/avatar.png) !important;
  23081. }
  23082. .g_d_group {
  23083. width: 500px;
  23084. margin-bottom: 80px;
  23085. }
  23086. .g_d_group_chair {
  23087. display: flex;
  23088. align-items: center;
  23089. justify-content: center;
  23090. }
  23091. .g_d_group_chair > div + div {
  23092. margin-left: 30px;
  23093. }
  23094. .g_d_group_chair > div,
  23095. .g_d_group_chair2 > div {
  23096. display: flex;
  23097. flex-direction: column;
  23098. align-items: center;
  23099. }
  23100. .g_d_group_chair > div > span:nth-child(1),
  23101. .g_d_group_chair2 > div > span:nth-child(1) {
  23102. background-image: url(../../assets/icon/chair.png);
  23103. width: 50px;
  23104. height: 50px;
  23105. display: block;
  23106. background-size: 100% 100%;
  23107. }
  23108. .g_d_group_tableBox {
  23109. display: flex;
  23110. align-items: center;
  23111. justify-content: center;
  23112. }
  23113. .g_d_group_chair2 {
  23114. display: flex;
  23115. flex-direction: column;
  23116. align-items: center;
  23117. justify-content: center;
  23118. }
  23119. .g_d_group_chair2 > div + div {
  23120. margin-top: 10px;
  23121. }
  23122. .g_d_group_table {
  23123. background-image: url(../../assets/icon/groupBg.png);
  23124. width: 354px;
  23125. height: 196px;
  23126. background-size: 100% 100%;
  23127. display: flex;
  23128. align-items: center;
  23129. justify-content: center;
  23130. flex-direction: column;
  23131. color: #fff;
  23132. }
  23133. .g_d_group_table > div:nth-child(1) {
  23134. font-size: 24px;
  23135. margin-bottom: 5px;
  23136. }
  23137. .g_d_group_table > div:nth-child(2) div {
  23138. cursor: pointer;
  23139. background: #2e77bf;
  23140. padding: 4px 10px;
  23141. border-radius: 5px;
  23142. }
  23143. .groupBox {
  23144. }
  23145. .groupContent + .groupContent {
  23146. margin-top: 30px;
  23147. }
  23148. .groupTitle {
  23149. font-size: 24px;
  23150. color: rgb(80, 80, 80);
  23151. margin-bottom: 20px;
  23152. }
  23153. .groupName {
  23154. display: flex;
  23155. align-items: center;
  23156. }
  23157. .groupn {
  23158. font-size: 15px;
  23159. margin-right: 10px;
  23160. }
  23161. .groupName + .groupName {
  23162. margin-top: 15px;
  23163. }
  23164. .groupBtn {
  23165. margin-left: 10px;
  23166. }
  23167. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23168. text-align: left;
  23169. }
  23170. .g_d_btnBox {
  23171. display: flex;
  23172. justify-content: flex-end;
  23173. align-items: center;
  23174. margin-bottom: 20px;
  23175. }
  23176. .updateChair {
  23177. position: relative;
  23178. }
  23179. .updateChairBtn {
  23180. position: absolute;
  23181. width: 50px;
  23182. height: 50px;
  23183. overflow: hidden;
  23184. /* display: flex; */
  23185. align-items: center;
  23186. justify-content: center;
  23187. background: #00000087;
  23188. color: #fff;
  23189. border-radius: 50px;
  23190. display: none;
  23191. cursor: pointer;
  23192. }
  23193. .updateChair:hover .updateChairBtn {
  23194. display: flex;
  23195. }
  23196. .group_staic_box {
  23197. display: flex;
  23198. padding: 30px 40px 10px;
  23199. flex-wrap: wrap;
  23200. }
  23201. .group_staic {
  23202. /* width: 50%; */
  23203. margin-bottom: 20px;
  23204. display: flex;
  23205. align-items: center;
  23206. }
  23207. .group_staic span:nth-child(1) {
  23208. width: 150px;
  23209. text-align: right;
  23210. margin-right: 15px;
  23211. }
  23212. .group_staic span:nth-child(2) {
  23213. background: rgb(0 123 255);
  23214. color: #fff;
  23215. border-radius: 5px;
  23216. padding: 5px;
  23217. }
  23218. .codeFileBox {
  23219. height: 300px;
  23220. background: #fff;
  23221. display: flex;
  23222. align-items: center;
  23223. justify-content: center;
  23224. }
  23225. .codeFileBox img {
  23226. width: 200px;
  23227. margin: 0;
  23228. height: auto;
  23229. }
  23230. .codeFileBox div {
  23231. background: rgb(80, 142, 226);
  23232. color: #fff;
  23233. padding: 10px 20px;
  23234. border-radius: 25px;
  23235. cursor: pointer;
  23236. margin-left: 15px;
  23237. }
  23238. .radioBox {
  23239. display: flex;
  23240. flex-direction: column;
  23241. flex-wrap: nowrap;
  23242. align-items: flex-start;
  23243. }
  23244. .radioBox > div {
  23245. margin: 10px 0 0 10px;
  23246. }
  23247. /* .radioBox >>> .el-radio__input,
  23248. .radioBox >>> .el-checkbox__inner {
  23249. margin-left: 10px;
  23250. } */
  23251. .radioBox >>> .el-radio__label,
  23252. .radioBox >>> .el-checkbox__label {
  23253. display: flex;
  23254. align-items: center;
  23255. width: 100%;
  23256. }
  23257. .radioBox >>> .el-radio__label > span {
  23258. width: 100%;
  23259. display: -webkit-box;
  23260. overflow: hidden;
  23261. white-space: normal !important;
  23262. text-overflow: ellipsis;
  23263. word-wrap: break-word;
  23264. }
  23265. .inImg {
  23266. width: 100px;
  23267. cursor: pointer;
  23268. }
  23269. .inImg > img {
  23270. width: 100%;
  23271. height: 100%;
  23272. object-fit: cover;
  23273. }
  23274. .timuImgBox {
  23275. margin: 10px 0;
  23276. display: flex;
  23277. flex-direction: column;
  23278. flex-wrap: wrap;
  23279. align-items: flex-start;
  23280. }
  23281. .timuImg {
  23282. width: 150px;
  23283. margin: 5px 0;
  23284. cursor: pointer;
  23285. }
  23286. .timuImg > img {
  23287. width: 100%;
  23288. height: 100%;
  23289. object-fit: cover;
  23290. }
  23291. .worksTop {
  23292. display: flex;
  23293. flex-direction: row;
  23294. align-items: flex-end;
  23295. }
  23296. .worksTitle {
  23297. display: flex;
  23298. flex-direction: row;
  23299. flex-wrap: nowrap;
  23300. align-items: center;
  23301. }
  23302. .worksTitle::before,
  23303. .worksTop::before {
  23304. content: "";
  23305. display: block;
  23306. width: 3px;
  23307. height: 20px;
  23308. background: #0061ff;
  23309. border-radius: 3px;
  23310. margin: 0 5px 0 0;
  23311. }
  23312. .corOpen {
  23313. margin: 0 0 0 10px;
  23314. font-size: 14px;
  23315. cursor: pointer;
  23316. color: #505050;
  23317. }
  23318. .corOpen:hover {
  23319. color: #499eef;
  23320. }
  23321. .navCorOpenBox {
  23322. display: flex;
  23323. flex-direction: row;
  23324. align-items: center;
  23325. justify-content: space-between;
  23326. height: 55px;
  23327. background: #ffffff;
  23328. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23329. border-radius: 8px 8px 0px 0px;
  23330. z-index: 9;
  23331. position: relative;
  23332. }
  23333. .navCorOpen {
  23334. padding-right: 15px;
  23335. cursor: pointer;
  23336. width: 45px;
  23337. display: flex;
  23338. }
  23339. .navCorOpen > img {
  23340. width: 100%;
  23341. height: 100%;
  23342. }
  23343. .mlImg {
  23344. width: 40px !important;
  23345. min-width: 40px;
  23346. cursor: pointer;
  23347. transform: rotate(180deg);
  23348. }
  23349. .mlImg > img {
  23350. width: 100%;
  23351. height: 100%;
  23352. }
  23353. .navLeftCss {
  23354. width: 100% !important;
  23355. left: 0 !important;
  23356. }
  23357. .isContentCss {
  23358. width: 100% !important;
  23359. }
  23360. .isAllWidth {
  23361. width: 100% !important;
  23362. }
  23363. .group_switch {
  23364. margin-right: 10px;
  23365. height: 30px;
  23366. display: flex;
  23367. align-items: center;
  23368. }
  23369. .group_switch > span {
  23370. margin-right: 5px;
  23371. }
  23372. .fileC_box {
  23373. padding-top: 15px;
  23374. }
  23375. .fileC_box > .fileC_title {
  23376. padding: 10px 5px 14px 10px;
  23377. border-top: 1px solid #cad1dc;
  23378. font-size: 14px;
  23379. font-weight: 400;
  23380. color: #cad1dc;
  23381. width: calc(100% - 20px);
  23382. margin: 0 auto;
  23383. box-sizing: border-box;
  23384. }
  23385. .pl_select_box {
  23386. height: 40px;
  23387. line-height: 40px;
  23388. width: 100%;
  23389. cursor: pointer;
  23390. padding: 0 20px;
  23391. box-sizing: border-box;
  23392. border-radius: 5px;
  23393. border: 1px solid #d6d6d6;
  23394. white-space: nowrap;
  23395. overflow: hidden;
  23396. text-overflow: ellipsis;
  23397. background: #fff;
  23398. text-align: left;
  23399. }
  23400. .newButton {
  23401. width: 102px;
  23402. height: 36px;
  23403. background: #e7ebf1;
  23404. border-radius: 4px;
  23405. color: #0e1e33;
  23406. font-weight: 400;
  23407. font-size: 14px;
  23408. border: none;
  23409. float: right;
  23410. margin-left: 10px;
  23411. }
  23412. .el-table >>> .even_row {
  23413. background-color: #f0f4fa;
  23414. }
  23415. .stageBoxCss,
  23416. .stageBoxIsCss {
  23417. display: flex;
  23418. flex-direction: row;
  23419. flex-wrap: nowrap;
  23420. align-items: center;
  23421. height: 50px;
  23422. border-bottom: 1px solid #e2f5fc;
  23423. cursor: pointer;
  23424. width: 100%;
  23425. }
  23426. .stageBoxIsCss {
  23427. background: #0061ff;
  23428. color: #fff;
  23429. border-radius: 8px;
  23430. }
  23431. .closeTri,
  23432. .closeTri1 {
  23433. min-width: 15px;
  23434. width: 15px;
  23435. height: 15px;
  23436. }
  23437. .closeTri1 {
  23438. padding-left: 10px;
  23439. cursor: pointer;
  23440. }
  23441. .closeTri > img,
  23442. .closeTri1 > img {
  23443. width: 100%;
  23444. height: 100%;
  23445. /* transition: all .5s; */
  23446. }
  23447. .noToolBlue {
  23448. min-width: 10px;
  23449. width: 10px;
  23450. height: 10px;
  23451. background: #0061ff;
  23452. border-radius: 50%;
  23453. margin-left: 13px;
  23454. }
  23455. .stageChild,
  23456. .toolChild {
  23457. height: 0;
  23458. overflow: hidden;
  23459. transition: all 0.5s;
  23460. }
  23461. .toolChild {
  23462. /* margin: 0 0 0 17px;
  23463. padding: 0 0 0 20px;
  23464. border-left: 1px solid #d7d7d7; */
  23465. }
  23466. .toolChild > div + div{
  23467. margin-top:5px;
  23468. }
  23469. .gjCss {
  23470. display: flex;
  23471. flex-direction: row;
  23472. flex-wrap: nowrap;
  23473. align-items: center;
  23474. padding: 10px 0 10px 40px;
  23475. box-sizing: border-box;
  23476. font-size: 14px;
  23477. cursor: pointer;
  23478. border-radius:5px;
  23479. }
  23480. .toolChild > div {
  23481. position: relative;
  23482. width: 100%;
  23483. }
  23484. .toolChild > div::before {
  23485. /* content: "";
  23486. width: 15px;
  23487. height: 1px;
  23488. background: #cad1dc;
  23489. position: absolute;
  23490. top: 24px;
  23491. left: -20px;
  23492. display: block; */
  23493. }
  23494. .isGjCss {
  23495. /* color: #0061ff; */
  23496. color:#fff;
  23497. background: rgb(55, 129, 252);
  23498. /* background-color: #e0eafb !important;
  23499. color: #0061ff !important; */
  23500. }
  23501. .navItem {
  23502. background: #ffffff;
  23503. border-radius: 4px;
  23504. width: 100%;
  23505. margin: 10px auto;
  23506. position: relative;
  23507. height: 40px;
  23508. display: flex;
  23509. flex-direction: row;
  23510. flex-wrap: nowrap;
  23511. align-items: center;
  23512. }
  23513. .navItemList {
  23514. display: flex;
  23515. flex-direction: row;
  23516. flex-wrap: nowrap;
  23517. align-items: center;
  23518. padding: 0 13px;
  23519. cursor: pointer;
  23520. width: calc(100% - 60px);
  23521. height: 100%;
  23522. }
  23523. .navItemList > div:first-child {
  23524. min-width: 60px;
  23525. }
  23526. .navItemList > div:last-child {
  23527. width: calc(100% - 80px);
  23528. white-space: nowrap;
  23529. overflow: hidden;
  23530. text-overflow: ellipsis;
  23531. word-break: break-word;
  23532. }
  23533. /* .isItemList > div {
  23534. color: #fff !important;
  23535. } */
  23536. .tool_work_box {
  23537. width: 100%;
  23538. padding: 0 37px 0;
  23539. box-sizing: border-box;
  23540. }
  23541. .tool_box {
  23542. width: 100%;
  23543. padding: 0 0 0 20px;
  23544. }
  23545. .tool_type_box {
  23546. display: flex;
  23547. flex-direction: row;
  23548. align-items: baseline;
  23549. flex-wrap: nowrap;
  23550. justify-content: flex-start;
  23551. position: relative;
  23552. }
  23553. .toolSort {
  23554. display: flex;
  23555. flex-direction: row;
  23556. flex-wrap: wrap;
  23557. justify-content: flex-start;
  23558. align-items: flex-start;
  23559. padding: 0 0 15px 0;
  23560. }
  23561. .toolSort > div {
  23562. margin: 0 10px 0 0;
  23563. width: 135px;
  23564. box-sizing: border-box;
  23565. border: 2px solid transparent;
  23566. }
  23567. .tools {
  23568. width: 100%;
  23569. display: flex;
  23570. flex-direction: column;
  23571. flex-wrap: nowrap;
  23572. align-items: flex-start;
  23573. }
  23574. .whiteBIcon {
  23575. width: fit-content;
  23576. cursor: pointer;
  23577. display: flex;
  23578. flex-direction: column;
  23579. flex-wrap: nowrap;
  23580. align-items: center;
  23581. font-size: 14px;
  23582. }
  23583. .tool:hover {
  23584. border: 2px solid #a5c7ff;
  23585. border-radius: 5px;
  23586. }
  23587. .whiteBIcon > img {
  23588. width: 65px;
  23589. height: 100%;
  23590. }
  23591. .whiteBIcon > img {
  23592. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  23593. border-radius: 15px;
  23594. }
  23595. .check {
  23596. /* width: 20px;
  23597. height: 20px; */
  23598. cursor: pointer;
  23599. margin: 10px 0;
  23600. position: absolute;
  23601. right: 2px;
  23602. top: -5px;
  23603. }
  23604. .noChoose,
  23605. .isChoose {
  23606. width: 15px;
  23607. height: 15px;
  23608. border-radius: 50%;
  23609. border: 1px solid #adadad;
  23610. }
  23611. .isChoose {
  23612. border: 4px solid #0363ff !important;
  23613. width: 10px;
  23614. height: 10px;
  23615. }
  23616. .isToolChoose {
  23617. border: 2px solid #5394ff !important;
  23618. border-radius: 5px;
  23619. box-shadow: 0 0 6px 0px #5394ff;
  23620. }
  23621. .checkDiv {
  23622. display: flex;
  23623. align-items: center;
  23624. }
  23625. .checkDiv span {
  23626. margin-left: 5px;
  23627. color: #858585;
  23628. }
  23629. .check img {
  23630. width: 20px;
  23631. height: 20px;
  23632. }
  23633. .lockTaskIcon {
  23634. width: 20px;
  23635. height: 20px;
  23636. position: absolute;
  23637. right: 10px;
  23638. top: 10px;
  23639. }
  23640. .lockTaskIcon > img {
  23641. width: 100%;
  23642. height: 100%;
  23643. }
  23644. .pick_box {
  23645. display: flex;
  23646. align-items: flex-start;
  23647. flex-wrap: wrap;
  23648. }
  23649. .selectBox {
  23650. width: 110px;
  23651. margin-left: 10px;
  23652. margin: 0 10px 0 auto;
  23653. }
  23654. .selectBox >>> .el-input__inner {
  23655. height: 30px;
  23656. line-height: 30px;
  23657. }
  23658. .selectBox >>> .el-input__icon {
  23659. line-height: 30px;
  23660. }
  23661. .sentenceTitle {
  23662. display: flex;
  23663. flex-direction: row;
  23664. flex-wrap: nowrap;
  23665. align-items: center;
  23666. }
  23667. .sentenceTitle::before {
  23668. content: attr(index);
  23669. background: #3681fc;
  23670. border-radius: 50%;
  23671. color: #fff;
  23672. width: 25px;
  23673. height: 25px;
  23674. min-width: 25px;
  23675. min-height: 25px;
  23676. text-align: center;
  23677. line-height: 25px;
  23678. margin-right: 5px;
  23679. }
  23680. .hfBox {
  23681. padding: 10px;
  23682. box-sizing: border-box;
  23683. }
  23684. .whoReplyWho {
  23685. display: flex;
  23686. flex-direction: row;
  23687. flex-wrap: nowrap;
  23688. align-items: baseline;
  23689. justify-content: flex-start;
  23690. }
  23691. .hfBottom {
  23692. display: flex;
  23693. flex-direction: row;
  23694. flex-wrap: nowrap;
  23695. align-items: center;
  23696. justify-content: space-between;
  23697. font-size: 14px;
  23698. }
  23699. .deleteHfItem {
  23700. cursor: pointer;
  23701. width: 20px;
  23702. height: 20px;
  23703. }
  23704. .deleteHfItem > img {
  23705. width: 100%;
  23706. height: 100%;
  23707. }
  23708. .whoReplyWho > .hfImg {
  23709. width: 12px;
  23710. height: 12px;
  23711. margin: 0 5px;
  23712. }
  23713. .whoReplyWho > .hfImg > img {
  23714. width: 100%;
  23715. height: 100%;
  23716. }
  23717. .hfContent {
  23718. padding-top: 10px;
  23719. box-sizing: border-box;
  23720. display: -webkit-box;
  23721. overflow: hidden;
  23722. white-space: normal !important;
  23723. text-overflow: ellipsis;
  23724. word-wrap: break-word;
  23725. -webkit-box-orient: vertical;
  23726. }
  23727. .hfTime {
  23728. text-align: left;
  23729. box-sizing: border-box;
  23730. padding: 10px 0 10px 0px;
  23731. color: #bfbfbf;
  23732. font-size: 14px;
  23733. }
  23734. .btnAllNT {
  23735. position: fixed;
  23736. bottom: 100px;
  23737. right: 40px;
  23738. z-index: 999;
  23739. display: flex;
  23740. flex-direction: row;
  23741. }
  23742. .btnAllNT > img {
  23743. cursor: pointer;
  23744. width: 80px;
  23745. }
  23746. .toolMask {
  23747. position: fixed;
  23748. width: 100%;
  23749. height: 100%;
  23750. background: #3f3c3c;
  23751. opacity: 0.5;
  23752. top: 0;
  23753. left: 0;
  23754. z-index: 999;
  23755. }
  23756. .addToolCss {
  23757. position: fixed;
  23758. z-index: 999;
  23759. background: #fff;
  23760. right: 5%;
  23761. bottom: 18%;
  23762. min-width: 1035px;
  23763. min-height: 300px;
  23764. border-radius: 10px;
  23765. box-shadow: 0 0 8px 1px #b2b2b2;
  23766. }
  23767. .toolTop {
  23768. display: flex;
  23769. flex-direction: row;
  23770. flex-wrap: nowrap;
  23771. justify-content: space-between;
  23772. align-items: center;
  23773. padding: 20px;
  23774. }
  23775. .toolTop > div:nth-child(2) {
  23776. width: 15px;
  23777. height: 15px;
  23778. padding-right: 10px;
  23779. cursor: pointer;
  23780. }
  23781. .toolTop > div:nth-child(2) > img {
  23782. width: 100%;
  23783. height: 100%;
  23784. }
  23785. .fullStyle>>>.el-dialog__body {
  23786. height: calc(100% - 125px) !important;
  23787. box-sizing: border-box;
  23788. padding: 30px 0 !important;
  23789. background: #fff !important;
  23790. }
  23791. .fullStyle>>>.el-dialog {
  23792. width: 100% !important;
  23793. max-width: 100% !important;
  23794. height: 100% !important;
  23795. margin: 0 !important;
  23796. }
  23797. .fullStyle {
  23798. width: 100% !important;
  23799. max-width: 100% !important;
  23800. height: 100% !important;
  23801. margin: 0 auto !important;
  23802. }
  23803. .fullStyle>>>.el-dialog__footer{
  23804. background: #fff !important;
  23805. }
  23806. .engUpBox {
  23807. width: 100%;
  23808. height: 100%;
  23809. }
  23810. .engTitle,
  23811. .engText {
  23812. display: flex;
  23813. flex-direction: row;
  23814. flex-wrap: nowrap;
  23815. align-items: flex-start;
  23816. padding: 0 20px 20px 20px;
  23817. box-sizing: border-box;
  23818. }
  23819. .engTitle > .div:first-child,
  23820. .engText > div:first-child {
  23821. min-width: 75px;
  23822. }
  23823. .correctBox{
  23824. width: 100%;
  23825. display: flex;
  23826. flex-direction: row;
  23827. flex-wrap: nowrap;
  23828. align-items: flex-start;
  23829. }
  23830. .oldBox{
  23831. width: 50%;
  23832. height: 100%;
  23833. display: flex;
  23834. flex-direction: column;
  23835. flex-wrap: nowrap;
  23836. align-items: center;
  23837. border-top: 1px solid #d9d9d9;
  23838. border-left: 1px solid #d9d9d9;
  23839. border-right: 1px solid #d9d9d9;
  23840. }
  23841. .oldBox>div:first-child{
  23842. width: 100%;
  23843. text-align: center;
  23844. background: #d9d9d9;
  23845. height: 35px;
  23846. line-height: 35px;
  23847. font-weight: bold;
  23848. }
  23849. .oldText{
  23850. width: 100%;
  23851. height: calc(100% - 35px);
  23852. overflow: auto;
  23853. margin: 10px 0;
  23854. display: flex;
  23855. flex-direction: column;
  23856. flex-wrap: nowrap;
  23857. align-content: center;
  23858. align-items: center;
  23859. }
  23860. .detailBox{
  23861. width: 50%;
  23862. padding: 10px;
  23863. background: #f6f6f6;
  23864. border-radius: 5px;
  23865. }
  23866. .oldDetail,.oldDetail1{
  23867. padding-bottom: 30px;
  23868. }
  23869. .oldImg{
  23870. width:30px;
  23871. height: 30px;
  23872. }
  23873. .oldImg>img{
  23874. width: 100%;
  23875. height: 100%;
  23876. }
  23877. .allName{
  23878. min-width: 200px;
  23879. white-space: nowrap;
  23880. overflow: hidden;
  23881. text-overflow: ellipsis;
  23882. word-break: break-word;
  23883. cursor: pointer;
  23884. text-align: center;
  23885. border: 1px solid #bcc2cc;
  23886. box-sizing: border-box;
  23887. }
  23888. .engUpTop{
  23889. max-height: 300px;
  23890. overflow: auto;
  23891. }
  23892. .isUpdateToolDetailClass{
  23893. padding: 0 !important;
  23894. }
  23895. .isUpdateToolDetailClass textarea{
  23896. padding:12px;
  23897. font-size: 16px;
  23898. min-height:100%;
  23899. width: 100%;
  23900. box-sizing:border-box;
  23901. outline: none;
  23902. border:none;
  23903. line-height: 30px;
  23904. resize: none;
  23905. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  23906. color: #838383;
  23907. }
  23908. .show_taskD {
  23909. min-width: fit-content;
  23910. margin-left: 10px;
  23911. display: flex;
  23912. align-items: center;
  23913. font-size: 14px;
  23914. cursor: pointer;
  23915. color: #717c8d;
  23916. }
  23917. .show_taskD > img {
  23918. width: 15px;
  23919. margin-right: 5px;
  23920. transition: 0.2s all;
  23921. transform: rotate(-90deg);
  23922. }
  23923. .show_taskD.show > img {
  23924. transform: rotate(0deg);
  23925. }
  23926. .correctCss{
  23927. position: absolute;
  23928. bottom: -70px;
  23929. background: #409eff;
  23930. color: #fff;
  23931. }
  23932. </style>