studyStudent.vue 757 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <div class="btnAllNT">
  14. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  15. <img
  16. v-if="
  17. courseDetail.userid == userid ||
  18. (courseDetail.course_teacher &&
  19. courseDetail.course_teacher.indexOf(userid) != -1)
  20. "
  21. src="../assets/icon/learn/addTool.png"
  22. @click="openToolAll"
  23. style="position: relative"
  24. />
  25. </div>
  26. <div
  27. class="pButton"
  28. style="left: 0; top: 140px"
  29. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  30. @click="setContent2(true)"
  31. >
  32. <!-- 批 , getCourseDetail()-->
  33. <img
  34. src="../assets/icon/newIcons/isRight.png"
  35. style="width: 45px"
  36. alt=""
  37. />
  38. </div>
  39. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  40. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  41. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  42. <div class="courseTitle">
  43. <div
  44. style="
  45. max-width: calc(100% - 40px);
  46. width: auto;
  47. white-space: nowrap;
  48. overflow: hidden;
  49. text-overflow: ellipsis;
  50. word-break: break-word;
  51. display: block;
  52. "
  53. >
  54. <el-tooltip
  55. effect="light"
  56. :content="courseDetail.title"
  57. placement="top"
  58. >
  59. <div class="ctitle">
  60. {{ courseDetail.title }}
  61. </div>
  62. </el-tooltip>
  63. </div>
  64. <el-tooltip effect="light" content="收缩" placement="top">
  65. <div class="mlImg" @click="setContent2(false)">
  66. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  67. </div>
  68. </el-tooltip>
  69. </div>
  70. <div
  71. class="inviteBox"
  72. v-if="tcid && inviteCode"
  73. style="padding: 0 0 15px 0"
  74. >
  75. <div>
  76. <span>随机码:{{ inviteCode }}</span>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="cru_selectBox">
  81. <div
  82. style="background: #fff; margin: 0 10px; border-radius: 8px"
  83. v-for="(item, stageIndex) in navList"
  84. :key="stageIndex"
  85. >
  86. <div
  87. class="stageBoxCss"
  88. @click="get(stageIndex)"
  89. :class="{ stageBoxIsCss: item.isOpen }"
  90. >
  91. <div class="stageItemTitle">
  92. <div>阶段{{ stageIndex + 1 }}</div>
  93. <el-tooltip
  94. effect="light"
  95. :content="item.dyName"
  96. placement="top"
  97. >
  98. <div>
  99. {{ item.dyName }}
  100. </div>
  101. </el-tooltip>
  102. </div>
  103. <div class="closeTri" v-if="item.isOpen">
  104. <img src="../assets/icon/newIcons/downC.png" alt />
  105. </div>
  106. <div class="closeTri" v-else>
  107. <img src="../assets/icon/newIcons/right.png" alt />
  108. </div>
  109. </div>
  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="nav.isOpen"
  125. @click="openTask(stageIndex, navIndex, nav.id)"
  126. >
  127. <img src="../assets/icon/newIcons/bDown.png" alt />
  128. </div>
  129. <div
  130. class="closeTri1"
  131. v-else
  132. @click="openTask(stageIndex, navIndex, nav.id)"
  133. >
  134. <img 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 &&
  158. !(
  159. navIndex == taskCount &&
  160. nav.id == navId &&
  161. stageIndex == courseType
  162. )
  163. ? 'calc(100% - 75px)'
  164. : 'auto',
  165. }"
  166. >
  167. {{ nav.taskName }}
  168. </div>
  169. </el-tooltip>
  170. </div>
  171. <div class="lockTaskIcon">
  172. <img
  173. src="../assets/lock.png"
  174. v-if="IsLookOpen && !nav.isLook"
  175. alt=""
  176. />
  177. </div>
  178. </div>
  179. <div
  180. v-if="nav.tool[0].tool != undefined"
  181. class="toolChild"
  182. :class="{ toolActive: nav.isOpen }"
  183. >
  184. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  185. <div
  186. class="gjCss"
  187. :class="{ isGjCss: t.isTool }"
  188. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  189. >
  190. <div>工具{{ toolIndex + 1 }}:</div>
  191. <div v-if="t.tool == 58">模拟驾驶</div>
  192. <div v-if="t.tool == 59">路径搜索</div>
  193. <div v-if="t.tool == 60">深度学习</div>
  194. <div v-if="t.tool == 10">倒计时</div>
  195. <div v-if="t.tool == 65">挑人</div>
  196. <div v-if="t.tool == 7">思维网格</div>
  197. <div v-if="t.tool == 1">电子白板</div>
  198. <div v-if="t.tool == 52">文档</div>
  199. <div v-if="t.tool == 3">思维导图</div>
  200. <div v-if="t.tool == 48">表格</div>
  201. <div v-if="t.tool == 49">学生分组</div>
  202. <div v-if="t.tool == 4">问卷调查</div>
  203. <div v-if="t.tool == 45">选择题</div>
  204. <div v-if="t.tool == 15">问答</div>
  205. <div v-if="t.tool == 16">作业提交</div>
  206. <div v-if="t.tool == 50">批量上传</div>
  207. <div v-if="t.tool == 41">选择匹配</div>
  208. <div v-if="t.tool == 47">排序</div>
  209. <div v-if="t.tool == 40">个人评价</div>
  210. <div v-if="t.tool == 18">训练平台</div>
  211. <div v-if="t.tool == 21">AIoT Blockly</div>
  212. <div v-if="t.tool == 23">AI Python</div>
  213. <div v-if="t.tool == 24">AI Blockly</div>
  214. <div v-if="t.tool == 32">源码编辑</div>
  215. <div v-if="t.tool == 57">CocoPi</div>
  216. <div v-if="t.tool == 63">海龟编程</div>
  217. <div v-if="t.tool == 28">翻译</div>
  218. <div v-if="t.tool == 31">数字画板</div>
  219. <div v-if="t.tool == 39">GeoGebra</div>
  220. <div v-if="t.tool == 66">公式编辑</div>
  221. <div v-if="t.tool == 67">分子结构</div>
  222. <div v-if="t.tool == 68">时间轴</div>
  223. <div v-if="t.tool == 69">英语写作</div>
  224. <div v-if="t.tool == 25">目标管理</div>
  225. <div v-if="t.tool == 26">课程设计</div>
  226. <div v-if="t.tool == 62">交互视频</div>
  227. </div>
  228. </div>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  236. <div class="new_topFixed"></div>
  237. <div class="new_top" :class="{ navLeftCss: !mlDialog }">
  238. <div class="courseIndex">
  239. <div>任务{{ taskCount + 1 }}</div>
  240. <el-tooltip
  241. effect="light"
  242. :content="
  243. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  244. "
  245. placement="top"
  246. >
  247. <div>
  248. {{
  249. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  250. .task
  251. }}
  252. </div>
  253. </el-tooltip>
  254. </div>
  255. <div class="btnAll">
  256. <div class="btnLeft">
  257. <el-tooltip effect="light" content="刷新" placement="top">
  258. <div class="reBtnIcon" @click="refreshCourse">
  259. <span>刷新</span>
  260. </div>
  261. </el-tooltip>
  262. <el-tooltip effect="light" content="评论" placement="top">
  263. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  264. <span>评论</span>
  265. </div>
  266. </el-tooltip>
  267. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  268. <el-tooltip effect="light" content="录制" placement="top">
  269. <div class="vedioIcon" @click="startRecording">
  270. <span>录制</span>
  271. </div>
  272. </el-tooltip>
  273. </div>
  274. <div v-else-if="tType == 1 || tType == 4">
  275. <el-tooltip effect="light" content="下载" placement="top">
  276. <div class="vedioIcon1" @click="stopRecording">
  277. <span>下载</span>
  278. </div>
  279. </el-tooltip>
  280. </div>
  281. </div>
  282. <div class="btnRight">
  283. <div
  284. class="last"
  285. @click="nextOrpreSteps(0)"
  286. v-if="!(IsFollow && tType == 2)"
  287. @mouseover="isHovered = true"
  288. @mouseout="isHovered = false"
  289. >
  290. <div class="lastImg">
  291. <img
  292. :src="
  293. isHovered
  294. ? require('../assets/icon/newIcons/whiteLast.png')
  295. : require('../assets/icon/newIcons/last.png')
  296. "
  297. alt=""
  298. />
  299. </div>
  300. <div class="lastText">上一步</div>
  301. </div>
  302. <div
  303. class="last"
  304. @click="nextOrpreSteps(1)"
  305. v-if="!(IsFollow && tType == 2)"
  306. @mouseover="isHovered1 = true"
  307. @mouseout="isHovered1 = false"
  308. >
  309. <div class="lastText">下一步</div>
  310. <div class="lastImg">
  311. <img
  312. :src="
  313. isHovered1
  314. ? require('../assets/icon/newIcons/whiteNext.png')
  315. : require('../assets/icon/newIcons/next.png')
  316. "
  317. alt=""
  318. />
  319. </div>
  320. </div>
  321. <div
  322. class="last"
  323. @click="juriVisible = true"
  324. v-if="tType == 1"
  325. @mouseover="isHovered2 = true"
  326. @mouseout="isHovered2 = false"
  327. >
  328. <div class="lastImg">
  329. <img
  330. :src="
  331. isHovered2
  332. ? require('../assets/icon/newIcons/whiteLock.png')
  333. : require('../assets/icon/newIcons/lock.png')
  334. "
  335. alt=""
  336. />
  337. </div>
  338. <div class="lastText">权限</div>
  339. </div>
  340. <div
  341. class="returnBtn1 returnIcon"
  342. @click.stop="
  343. goTo(
  344. '/courseDetail?userid=' +
  345. userid +
  346. '&oid=' +
  347. oid +
  348. '&org=' +
  349. org +
  350. '&cid=' +
  351. classId +
  352. '&courseId=' +
  353. id +
  354. '&tType=' +
  355. tType +
  356. '&screenType=' +
  357. screenType
  358. )
  359. "
  360. >
  361. <div class="lastImg">
  362. <img src="../assets/icon/newIcon/return.png" alt="" />
  363. </div>
  364. <div class="lastText" style="color: #000">返回</div>
  365. </div>
  366. </div>
  367. <!-- <div
  368. class="returnBtn lockIcon"
  369. @click="juriVisible = true"
  370. v-if="tType == 1"
  371. >
  372. 权限
  373. </div>
  374. <div
  375. class="returnBtn vedioIcon"
  376. @click="startRecording"
  377. v-if="!videoStart && (tType == 1 || tType == 4)"
  378. >
  379. 录制
  380. </div>
  381. <div
  382. class="returnBtn"
  383. @click="stopRecording"
  384. v-else-if="tType == 1 || tType == 4"
  385. style="background: #ee5255"
  386. >
  387. 下载
  388. </div>
  389. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  390. 评论
  391. </div>
  392. <div
  393. class="returnBtn"
  394. @click="nextOrpreSteps(0)"
  395. v-if="!(IsFollow && tType == 2)"
  396. >
  397. 上一步
  398. </div>
  399. <div
  400. class="returnBtn"
  401. @click="nextOrpreSteps(1)"
  402. v-if="!(IsFollow && tType == 2)"
  403. >
  404. 下一步
  405. </div>
  406. <div class="returnBtn" @click="refreshCourse">刷新</div>
  407. <div
  408. class="returnBtn returnIcon"
  409. @click.stop="
  410. goTo(
  411. '/courseDetail?userid=' +
  412. userid +
  413. '&oid=' +
  414. oid +
  415. '&org=' +
  416. org +
  417. '&cid=' +
  418. classId +
  419. '&courseId=' +
  420. id +
  421. '&tType=' +
  422. tType +
  423. '&screenType=' +
  424. screenType
  425. )
  426. "
  427. >
  428. 返回
  429. </div> -->
  430. </div>
  431. </div>
  432. <div
  433. class="isNoMessage"
  434. v-if="
  435. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  436. .chapterData.length == 0 &&
  437. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  438. .toolChoose[0].tool.length == 0 &&
  439. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  440. .taskDetail == '' &&
  441. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  442. .eList &&
  443. !(
  444. courseDetail.userid == userid ||
  445. (courseDetail.course_teacher &&
  446. courseDetail.course_teacher.indexOf(userid) != -1)
  447. )
  448. "
  449. >
  450. <img src="../assets/icon/isNoMessage.png" alt />
  451. </div>
  452. <div class="study_top" :class="{ pzClass: pzDialog }">
  453. <div
  454. class="vedioBox"
  455. v-if="
  456. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  457. .taskDetail != '' ||
  458. vChapterData[taskCount].length > 0 ||
  459. fileC[taskCount].length > 0
  460. "
  461. style="border-radius: 0 0 20px 20px"
  462. >
  463. <div
  464. class="taskBox"
  465. v-if="
  466. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  467. .taskDetail != ''
  468. "
  469. >
  470. <div
  471. style="
  472. display: flex;
  473. flex-wrap: nowrap;
  474. flex-direction: column;
  475. position: relative;
  476. "
  477. >
  478. <div
  479. style="
  480. padding: 15px 0;
  481. line-height: 29px;
  482. font-size: 18px;
  483. color: #0e1e33;
  484. "
  485. class="cont"
  486. v-if="
  487. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  488. .taskDetail != ''
  489. "
  490. v-html="
  491. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  492. .taskDetail
  493. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  494. taskCount
  495. ].taskDetail
  496. : '暂无描述'
  497. "
  498. ></div>
  499. </div>
  500. </div>
  501. <div
  502. class="student_head"
  503. v-if="
  504. vChapterData[taskCount].length > 0 ||
  505. fileC[taskCount].length > 0
  506. "
  507. >
  508. <div class="vedioTaskBox">
  509. <div
  510. :class="
  511. contentDialog == false
  512. ? 'box_course isContentCss'
  513. : 'box_course'
  514. "
  515. v-if="
  516. vChapterData.length > 0 &&
  517. vChapterData[taskCount] &&
  518. showType !== ''
  519. "
  520. >
  521. <div class="wheel" style="height: auto" v-if="showType === 0">
  522. <div
  523. class="workd_media"
  524. style="height: 650px; width: calc(100% - 50px)"
  525. >
  526. <video-player
  527. class="video-player vjs-custom-skin"
  528. :class="contentDialog == false ? 'isAllWidth' : ''"
  529. :playsinline="true"
  530. :options="playerO[taskCount]"
  531. @play="onPlayerPlay($event)"
  532. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  533. ></video-player>
  534. </div>
  535. </div>
  536. <div
  537. class="wheel"
  538. v-if="showType == 1"
  539. style="
  540. box-shadow: 0 0 6px 1px #f2f2f2;
  541. width: 95%;
  542. margin: 0 auto;
  543. background: #f1f1f1;
  544. "
  545. >
  546. <div class="title">查看文档</div>
  547. <el-form class="textBox">
  548. <el-form-item class="textTitle">
  549. <div style="font-size: 22px">
  550. {{ text.name }}
  551. </div>
  552. </el-form-item>
  553. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  554. <div v-html="text.url" class="textContent cont"></div>
  555. </el-form>
  556. </div>
  557. <div
  558. class="wheel"
  559. v-if="
  560. pptImgUrl1.indexOf(
  561. 'https://view.officeapps.live.com/op/view.aspx?src='
  562. ) != -1 && showType == 2
  563. "
  564. style="width: 95%; margin: 0 auto"
  565. >
  566. <iframe
  567. style="width: 100%; height: 100%; border: none"
  568. :src="pptImgUrl1"
  569. ></iframe>
  570. </div>
  571. <div
  572. class="wheel"
  573. v-else-if="showType == 2"
  574. style="width: 95%; margin: 0 auto"
  575. >
  576. <iframe
  577. style="width: 100%; height: 100%; border: none"
  578. security="restricted"
  579. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  580. :src="pptImgUrl1"
  581. ></iframe>
  582. </div>
  583. <div
  584. class="wheel"
  585. v-if="showType == 3"
  586. style="width: 95%; margin: 0 auto"
  587. >
  588. <pdf
  589. :pdfUrl="pptImgUrl1"
  590. style="width: 100%; height: 100%; overflow: auto"
  591. ></pdf>
  592. </div>
  593. <div
  594. class="wheel"
  595. v-if="showType == 4"
  596. style="width: 95%; margin: 0 auto"
  597. >
  598. <el-image
  599. :src="pptImgUrl1"
  600. fit="contain"
  601. style="width: 100%; height: 100%; cursor: pointer"
  602. @click="previewImg(pptImgUrl1)"
  603. ></el-image>
  604. </div>
  605. </div>
  606. <div
  607. class="pButton"
  608. style="position: absolute; right: 20px; top: 0; z-index: 998"
  609. v-if="!contentDialog"
  610. @click="setContent(true)"
  611. >
  612. <!-- 批 -->
  613. <img
  614. src="../assets/icon/newIcons/isLeft.png"
  615. style="width: 45px"
  616. alt=""
  617. />
  618. </div>
  619. <div
  620. v-if="contentDialog == true"
  621. :style="{
  622. width:
  623. (vChapterData[taskCount].length > 0 ||
  624. fileC[taskCount].length > 0) &&
  625. showType === ''
  626. ? 'calc(100%)'
  627. : '300px',
  628. margin:
  629. (vChapterData[taskCount].length > 0 ||
  630. fileC[taskCount].length > 0) &&
  631. showType === ''
  632. ? '0 15px'
  633. : '0 15px 0 0',
  634. }"
  635. >
  636. <div
  637. class="vedioList"
  638. v-if="
  639. vChapterData[taskCount].length > 0 ||
  640. fileC[taskCount].length > 0
  641. "
  642. style="height: 650px"
  643. >
  644. <div class="navCorOpenBox">
  645. <div class="navTitile">内容列表:</div>
  646. <div class="navCorOpen" @click="setContent(false)">
  647. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  648. </div>
  649. </div>
  650. <div class="navBox">
  651. <div
  652. v-show="
  653. vChapterData[taskCount].length > 0 ||
  654. fileC[taskCount].length > 0
  655. "
  656. style="padding: 10px 0 25px 0"
  657. >
  658. <div
  659. class="vedioTimeBox"
  660. v-for="(vitem, vindex) in vChapterData[taskCount]"
  661. :key="vindex + '1'"
  662. >
  663. <div class="navListItem" v-if="vitem.type == 2">
  664. <div
  665. @click="lookVedio(vitem.url, vindex)"
  666. class="navText"
  667. :class="isClickNav == vindex ? 'isClickNav' : ''"
  668. >
  669. <span v-if="vitem.text">{{ vitem.text }}-</span
  670. >{{ vitem.name }}
  671. </div>
  672. <div class="downIcon" @click="downloadFile2(vitem)">
  673. <img src="../assets/icon/newIcon/down.png" alt />
  674. </div>
  675. </div>
  676. <div class="navListItem" v-if="vitem.type == 6">
  677. <div
  678. @click="lookText(taskCount, vindex)"
  679. class="navText"
  680. :class="isClickNav == vindex ? 'isClickNav' : ''"
  681. >
  682. {{ vitem.name }}.doc
  683. </div>
  684. <div
  685. class="downIcon"
  686. @click="checkFileFull1(vitem.type, vitem)"
  687. >
  688. <img
  689. src="../assets/icon/newIcon/allScreen.png"
  690. alt
  691. />
  692. </div>
  693. </div>
  694. <div
  695. class="navListItem"
  696. v-if="vitem.type == 8 || vitem.type == 14"
  697. >
  698. <div
  699. @click="doUrl(vitem.url, vindex)"
  700. class="navText"
  701. :class="isClickNav == vindex ? 'isClickNav' : ''"
  702. >
  703. {{ vitem.title ? vitem.title : vitem.url }}
  704. </div>
  705. <div
  706. class="downIcon"
  707. @click="checkFileFull1(vitem.type, vitem)"
  708. >
  709. <img
  710. src="../assets/icon/newIcon/allScreen.png"
  711. alt
  712. />
  713. </div>
  714. </div>
  715. <div class="navListItem" v-if="vitem.type == 3">
  716. <div
  717. @click="downFile(vitem, vindex)"
  718. class="navText"
  719. :class="isClickNav == vindex ? 'isClickNav' : ''"
  720. >
  721. <span v-if="vitem.text">{{ vitem.text }}-</span
  722. >{{ vitem.name }}
  723. </div>
  724. <div class="downIcon" @click="downloadFile2(vitem)">
  725. <img src="../assets/icon/newIcon/down.png" alt />
  726. </div>
  727. <div
  728. class="downIcon"
  729. @click="checkFileFull1(vitem.type, vitem)"
  730. >
  731. <img
  732. src="../assets/icon/newIcon/allScreen.png"
  733. alt
  734. />
  735. </div>
  736. </div>
  737. <div class="navListItem" v-if="vitem.type == 12">
  738. <div class="navText" @click="downloadFile2(vitem)">
  739. <span v-if="vitem.text">{{ vitem.text }}-</span
  740. >{{ vitem.name }}
  741. </div>
  742. <div class="downIcon" @click="downloadFile2(vitem)">
  743. <img src="../assets/icon/newIcon/down.png" alt />
  744. </div>
  745. <div
  746. class="downIcon"
  747. @click="checkFileFull1(vitem.type, vitem)"
  748. >
  749. <img
  750. src="../assets/icon/newIcon/allScreen.png"
  751. alt
  752. />
  753. </div>
  754. </div>
  755. <div class="navListItem" v-if="vitem.type == 13">
  756. <div
  757. class="navText"
  758. @click="checkPhoto(vitem, vindex)"
  759. :class="isClickNav == vindex ? 'isClickNav' : ''"
  760. >
  761. {{ vitem.name }}
  762. </div>
  763. <div class="downIcon" @click="downloadFile2(vitem)">
  764. <img src="../assets/icon/newIcon/down.png" alt />
  765. </div>
  766. </div>
  767. </div>
  768. <div
  769. class="fileC_box"
  770. v-if="fileC[taskCount].length > 0"
  771. >
  772. <div class="fileC_title">以下文件不支持预览</div>
  773. <div
  774. class="vedioTimeBox"
  775. v-for="(vitem, vindex) in fileC[taskCount]"
  776. :key="vindex + '1'"
  777. >
  778. <div class="navListItem" v-if="vitem.type == 12">
  779. <div class="navText" style="color: #acb4bf">
  780. <span v-if="vitem.text">{{ vitem.text }}-</span
  781. >{{ vitem.name }}
  782. </div>
  783. <div
  784. class="downIcon"
  785. @click="downloadFile2(vitem)"
  786. >
  787. <img
  788. src="../assets/icon/newIcon/down.png"
  789. alt
  790. />
  791. </div>
  792. </div>
  793. </div>
  794. </div>
  795. </div>
  796. </div>
  797. </div>
  798. </div>
  799. </div>
  800. <div style="width: calc(100% - 315px)">
  801. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  802. <!-- <el-button
  803. type="primary"
  804. class="newButton"
  805. @click="checkFileFull(showType, pptImgUrl1)"
  806. >全屏查看</el-button
  807. >
  808. <el-button
  809. type="primary"
  810. class="newButton"
  811. @click="downloadFile(pptImgUrl1)"
  812. v-if="showType != 2"
  813. >文件下载</el-button
  814. > -->
  815. <el-button
  816. class="newButton"
  817. v-if="
  818. showType == 2 &&
  819. pptImgUrl1.indexOf(
  820. 'https://view.officeapps.live.com/op/view.aspx?src='
  821. ) == -1
  822. "
  823. type="primary"
  824. @click="openLine(pptImgUrl1)"
  825. >打开链接
  826. </el-button>
  827. </div>
  828. <!-- <div
  829. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  830. v-if="showType == 1"
  831. >
  832. <el-button
  833. type="primary"
  834. class="newButton"
  835. @click="checkFileFull(showType, text)"
  836. >全屏查看</el-button
  837. >
  838. </div> -->
  839. </div>
  840. </div>
  841. </div>
  842. <div class="student_body" v-resize="resize">
  843. <div
  844. class="vedioBox"
  845. :style="{
  846. borderRadius:
  847. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  848. .taskDetail == '' &&
  849. vChapterData[taskCount].length == 0 &&
  850. fileC[taskCount].length == 0
  851. ? '0 0 20px 20px'
  852. : '20px',
  853. }"
  854. v-if="
  855. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  856. .toolChoose[0].tool &&
  857. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  858. .toolChoose[0].tool.length > 0
  859. "
  860. >
  861. <div
  862. class="toolHeng2"
  863. style="position: relative"
  864. v-if="
  865. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  866. .toolChoose[0].tool &&
  867. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  868. .toolChoose[0].tool.length &&
  869. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  870. .toolChoose[0].tool.length > 0
  871. "
  872. >
  873. <div class="workNav">工作区</div>
  874. <div
  875. class="filebox"
  876. style="flex-wrap: nowrap"
  877. v-for="(tool, toolIndex) in chapInfoList[courseType]
  878. .chapterInfo[0].taskJson[taskCount].toolChoose"
  879. :key="toolIndex"
  880. >
  881. <div class="bzBox">
  882. <div class="yCss"></div>
  883. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  884. 步骤{{ toolIndex + 1 }}
  885. </div>
  886. <div
  887. v-if="timeWorkList[toolIndex].length > 0"
  888. style="margin: 0 0 0 10px"
  889. >
  890. {{
  891. timeWorkList[toolIndex][0].time
  892. ? "时间:" + timeWorkList[toolIndex][0].time
  893. : ""
  894. }}
  895. </div>
  896. </div>
  897. <div class="toolBox">
  898. <div>
  899. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  900. :key="indexTool"-->
  901. <!-- <div class="iframeBox">
  902. <div
  903. class="addPoint isBorder"
  904. v-for="(tooC, toolCIndex) in tool.tool"
  905. :key="toolCIndex"
  906. >
  907. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  908. <div
  909. class="iframeName"
  910. >
  911. 电子白板
  912. </div>
  913. <iframe
  914. src="https://iwb.cocorobo.cn/"
  915. ref="whiteBoard"
  916. ></iframe>
  917. </div>
  918. </div>
  919. </div>-->
  920. <div class="noiframeBox">
  921. <div
  922. class="addPoint"
  923. v-for="(tooC, toolCIndex) in tool.tool"
  924. :key="toolCIndex"
  925. >
  926. <div v-if="tooC == 1">
  927. <img
  928. src="../assets/icon/secondToolList/whiteBoard.png"
  929. alt
  930. @click="addTools(tooC, toolIndex, taskCount)"
  931. />
  932. <div style="margin: 5px 0">电子白板</div>
  933. </div>
  934. <div v-if="tooC == 3">
  935. <img
  936. src="../assets/icon/secondToolList/mindMapping.png"
  937. alt
  938. @click="addTools(tooC, toolIndex, taskCount)"
  939. />
  940. <div style="margin: 5px 0">思维导图</div>
  941. </div>
  942. <div v-if="tooC == 6">
  943. <img
  944. src="../assets/icon/secondToolList/doc.png"
  945. alt
  946. @click="addTools(tooC, toolIndex, taskCount)"
  947. />
  948. <div style="margin: 5px 0">协同文档</div>
  949. </div>
  950. <div v-if="tooC == 7">
  951. <img
  952. src="../assets/icon/secondToolList/mindNetwork.png"
  953. alt
  954. @click="addTools(tooC, toolIndex, taskCount)"
  955. />
  956. <div style="margin: 5px 0">思维网格</div>
  957. </div>
  958. <div v-if="tooC == 8">
  959. <img
  960. src="../assets/icon/secondToolList/library.png"
  961. alt
  962. @click="addTools(tooC, toolIndex, taskCount)"
  963. />
  964. <div style="margin: 5px 0">素材库</div>
  965. </div>
  966. <div v-if="tooC == 17">
  967. <img
  968. src="../assets/icon/secondToolList/library.png"
  969. alt
  970. @click="addTools(tooC, toolIndex, taskCount)"
  971. />
  972. <div style="margin: 5px 0">学习资料</div>
  973. </div>
  974. <div v-if="tooC == 2">
  975. <img
  976. @click="addTools(tooC, toolIndex, taskCount)"
  977. src="../assets/icon/secondToolList/note.png"
  978. alt
  979. />
  980. <div style="margin: 5px 0">便签</div>
  981. </div>
  982. <div v-if="tooC == 4">
  983. <img
  984. @click="addTools(tooC, toolIndex, taskCount)"
  985. src="../assets/icon/thirdToolList/ask.png"
  986. alt
  987. />
  988. <div style="margin: 5px 0">问卷调查</div>
  989. </div>
  990. <div v-if="tooC == 45">
  991. <img
  992. @click="addTools(tooC, toolIndex, taskCount)"
  993. src="../assets/icon/thirdToolList/choose.png"
  994. alt
  995. />
  996. <div style="margin: 5px 0">选择题</div>
  997. </div>
  998. <!-- <div v-if="tooC == 5">
  999. <img
  1000. @click="addTools(tooC, toolIndex, taskCount)"
  1001. src="../assets/icon/thirdToolList/score.png"
  1002. alt
  1003. />
  1004. <div style="margin: 5px 0">量规评分</div>
  1005. </div> -->
  1006. <div v-if="tooC == 10">
  1007. <img
  1008. @click="addTools(tooC, toolIndex, taskCount)"
  1009. src="../assets/icon/thirdToolList/time.png"
  1010. alt
  1011. />
  1012. <div style="margin: 5px 0">倒计时</div>
  1013. </div>
  1014. <div v-if="tooC == 15">
  1015. <img
  1016. @click="addTools(tooC, toolIndex, taskCount)"
  1017. src="../assets/icon/thirdToolList/answer.png"
  1018. alt
  1019. />
  1020. <div style="margin: 5px 0">问答</div>
  1021. </div>
  1022. <div v-if="tooC == 26">
  1023. <img
  1024. @click="addTools(tooC, toolIndex, taskCount)"
  1025. src="../assets/icon/thirdToolList/courseDesign.png"
  1026. alt
  1027. />
  1028. <div style="margin: 5px 0">课程设计</div>
  1029. </div>
  1030. <div v-if="tooC == 18">
  1031. <img
  1032. @click="addTools(tooC, toolIndex, taskCount)"
  1033. src="../assets/icon/thirdToolList/trainPlatform.png"
  1034. alt
  1035. />
  1036. <div style="margin: 5px 0">训练服务器</div>
  1037. </div>
  1038. <div v-if="tooC == 16">
  1039. <img
  1040. @click="addTools(tooC, toolIndex, taskCount)"
  1041. src="../assets/icon/thirdToolList/work.png"
  1042. alt
  1043. />
  1044. <div style="margin: 5px 0">作业提交</div>
  1045. </div>
  1046. <div v-if="tooC == 50">
  1047. <img
  1048. @click="addTools(tooC, toolIndex, taskCount)"
  1049. src="../assets/icon/thirdToolList/plwork.png"
  1050. alt
  1051. />
  1052. <div style="margin: 5px 0">批量上传</div>
  1053. </div>
  1054. <div v-if="tooC == 21">
  1055. <img
  1056. @click="addTools(tooC, toolIndex, taskCount)"
  1057. src="../assets/icon/fourthToolList/program.png"
  1058. alt
  1059. />
  1060. <div style="margin: 5px 0">AIoT Blockly</div>
  1061. </div>
  1062. <!-- <div v-if="tooC == 22">
  1063. <img
  1064. @click="addTools(tooC, toolIndex, taskCount)"
  1065. src="../assets/icon/fourthToolList/program.png"
  1066. alt
  1067. />
  1068. <div style="margin: 5px 0">AI体验</div>
  1069. </div> -->
  1070. <div v-if="tooC == 23">
  1071. <img
  1072. @click="addTools(tooC, toolIndex, taskCount)"
  1073. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1074. alt
  1075. />
  1076. <div style="margin: 5px 0">AI Python</div>
  1077. </div>
  1078. <div v-if="tooC == 24">
  1079. <img
  1080. @click="addTools(tooC, toolIndex, taskCount)"
  1081. src="../assets/icon/fourthToolList/AIprogram.png"
  1082. alt
  1083. />
  1084. <div style="margin: 5px 0">AI Blockly</div>
  1085. </div>
  1086. <div v-if="tooC == 25">
  1087. <img
  1088. @click="addTools(tooC, toolIndex, taskCount)"
  1089. src="../assets/icon/thirdToolList/evalua.png"
  1090. alt
  1091. />
  1092. <div style="margin: 5px 0">目标管理</div>
  1093. </div>
  1094. <div v-if="tooC == 31">
  1095. <img
  1096. @click="addTools(tooC, toolIndex, taskCount)"
  1097. src="../assets/icon/secondToolList/networkPanel.png"
  1098. alt
  1099. />
  1100. <div style="margin: 5px 0">数学画板</div>
  1101. </div>
  1102. <div v-if="tooC == 28">
  1103. <img
  1104. @click="addTools(tooC, toolIndex, taskCount)"
  1105. src="../assets/icon/secondToolList/translation.png"
  1106. alt
  1107. />
  1108. <div style="margin: 5px 0">翻译</div>
  1109. </div>
  1110. <div v-if="tooC == 37">
  1111. <img
  1112. @click="addTools(tooC, toolIndex, taskCount)"
  1113. src="../assets/icon/secondToolList/mohe.png"
  1114. alt
  1115. />
  1116. <div style="margin: 5px 0">魔盒识字</div>
  1117. </div>
  1118. <div v-if="tooC == 38">
  1119. <img
  1120. @click="addTools(tooC, toolIndex, taskCount)"
  1121. src="../assets/icon/secondToolList/24game.png"
  1122. alt
  1123. />
  1124. <div style="margin: 5px 0">24点</div>
  1125. </div>
  1126. <div v-if="tooC == 39">
  1127. <img
  1128. @click="addTools(tooC, toolIndex, taskCount)"
  1129. src="../assets/icon/secondToolList/GeoGebra.png"
  1130. alt
  1131. />
  1132. <div style="margin: 5px 0">GeoGebra</div>
  1133. </div>
  1134. <div v-if="tooC == 32">
  1135. <img
  1136. @click="addTools(tooC, toolIndex, taskCount)"
  1137. src="../assets/icon/thirdToolList/code.png"
  1138. alt
  1139. />
  1140. <div style="margin: 5px 0">源码编辑</div>
  1141. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1142. style="position: absolute;left: 110px;bottom: 30px;">
  1143. 上传文件
  1144. <input type="file" accept="*" style="display: none"
  1145. @change="beforeUpload1($event, 7, toolIndex)" />
  1146. </div> -->
  1147. </div>
  1148. <div v-if="tooC == 40">
  1149. <img
  1150. @click="addTools(tooC, toolIndex, taskCount)"
  1151. src="../assets/icon/secondToolList/eval.png"
  1152. alt
  1153. />
  1154. <div style="margin: 5px 0">个人评价</div>
  1155. </div>
  1156. <div v-if="tooC == 41">
  1157. <img
  1158. @click="addTools(tooC, toolIndex, taskCount)"
  1159. src="../assets/icon/thirdToolList/select.png"
  1160. alt
  1161. />
  1162. <div style="margin: 5px 0">选择匹配</div>
  1163. </div>
  1164. <div v-if="tooC == 44">
  1165. <img
  1166. @click="addTools(tooC, toolIndex, taskCount)"
  1167. src="../assets/icon/thirdToolList/hanClass.png"
  1168. alt
  1169. />
  1170. <div style="margin: 5px 0">汉字宫</div>
  1171. </div>
  1172. <div v-if="tooC == 47">
  1173. <img
  1174. @click="addTools(tooC, toolIndex, taskCount)"
  1175. src="../assets/icon/fourthToolList/conSentences.png"
  1176. alt
  1177. />
  1178. <div style="margin: 5px 0">排序</div>
  1179. </div>
  1180. <div v-if="tooC == 48">
  1181. <img
  1182. @click="addTools(tooC, toolIndex, taskCount)"
  1183. src="../assets/icon/fourthToolList/table.png"
  1184. alt
  1185. />
  1186. <div style="margin: 5px 0">表格</div>
  1187. </div>
  1188. <div v-if="tooC == 52">
  1189. <img
  1190. @click="addTools(tooC, toolIndex, taskCount)"
  1191. src="../assets/icon/fourthToolList/text.png"
  1192. alt
  1193. />
  1194. <div style="margin: 5px 0">文档</div>
  1195. </div>
  1196. <div v-if="tooC == 49">
  1197. <img
  1198. @click="addTools(tooC, toolIndex, taskCount)"
  1199. src="../assets/icon/fourthToolList/group.png"
  1200. alt
  1201. />
  1202. <div style="margin: 5px 0">学生分组</div>
  1203. </div>
  1204. <div v-if="tooC == 57">
  1205. <img
  1206. @click="addTools(tooC, toolIndex, taskCount)"
  1207. src="../assets/icon/fourthToolList/cocopi.png"
  1208. alt
  1209. />
  1210. <div style="margin: 5px 0">CocoPi</div>
  1211. </div>
  1212. <div v-if="tooC == 58">
  1213. <img
  1214. @click="addTools(tooC, toolIndex, taskCount)"
  1215. src="../assets/icon/fourthToolList/car.png"
  1216. alt
  1217. />
  1218. <div style="margin: 5px 0">模拟驾驶</div>
  1219. </div>
  1220. <div v-if="tooC == 59">
  1221. <img
  1222. @click="addTools(tooC, toolIndex, taskCount)"
  1223. src="../assets/icon/fourthToolList/lineSearch.png"
  1224. alt
  1225. />
  1226. <div style="margin: 5px 0">路径搜索</div>
  1227. </div>
  1228. <div v-if="tooC == 60">
  1229. <img
  1230. @click="addTools(tooC, toolIndex, taskCount)"
  1231. src="../assets/icon/fourthToolList/deepLearning.png"
  1232. alt
  1233. />
  1234. <div style="margin: 5px 0">深度学习</div>
  1235. </div>
  1236. <div v-if="tooC == 61">
  1237. <img
  1238. @click="addTools(tooC, toolIndex, taskCount)"
  1239. src="../assets/icon/fourthToolList/allHistory.png"
  1240. alt
  1241. />
  1242. <div style="margin: 5px 0">全历史</div>
  1243. </div>
  1244. <div v-if="tooC == 62">
  1245. <img
  1246. @click="addTools(tooC, toolIndex, taskCount)"
  1247. src="../assets/icon/fourthToolList/interVideo.png"
  1248. alt
  1249. />
  1250. <div style="margin: 5px 0">交互视频</div>
  1251. </div>
  1252. <div v-if="tooC == 63">
  1253. <img
  1254. @click="addTools(tooC, toolIndex, taskCount)"
  1255. src="../assets/icon/fourthToolList/Wood.png"
  1256. alt
  1257. />
  1258. <div style="margin: 5px 0">海龟编程</div>
  1259. </div>
  1260. <div v-if="tooC == 65">
  1261. <img
  1262. @click="addTools(tooC, toolIndex, taskCount)"
  1263. src="../assets/icon/firstToolList/pickPeople.png"
  1264. alt
  1265. />
  1266. <div style="margin: 5px 0">挑人</div>
  1267. </div>
  1268. <div v-if="tooC == 66">
  1269. <img
  1270. @click="addTools(tooC, toolIndex, taskCount)"
  1271. src="../assets/icon/secondToolList/formulaEdi.png"
  1272. alt
  1273. />
  1274. <div style="margin: 5px 0">公式编辑</div>
  1275. </div>
  1276. <div v-if="tooC == 67">
  1277. <img
  1278. @click="addTools(tooC, toolIndex, taskCount)"
  1279. src="../assets/icon/secondToolList/molStr.png"
  1280. alt
  1281. />
  1282. <div style="margin: 5px 0">分子结构</div>
  1283. </div>
  1284. <div v-if="tooC == 68">
  1285. <img
  1286. @click="addTools(tooC, toolIndex, taskCount)"
  1287. src="../assets/icon/secondToolList/timeAxis.png"
  1288. alt
  1289. />
  1290. <div style="margin: 5px 0">时间轴</div>
  1291. </div>
  1292. <div v-if="tooC == 69">
  1293. <img
  1294. @click="addTools(tooC, toolIndex, taskCount)"
  1295. src="../assets/icon/secondToolList/english.png"
  1296. alt
  1297. />
  1298. <div style="margin: 5px 0">英语写作</div>
  1299. </div>
  1300. </div>
  1301. </div>
  1302. </div>
  1303. <div class="tooldetail" v-if="tool.toolDetail != ''">
  1304. <!-- <div class="toolTitle">工具描述</div> -->
  1305. <div
  1306. v-html="contentConvent(tool.toolDetail)"
  1307. v-if="toolDetailIndex != toolIndex"
  1308. @click.stop="updateToolDetail(toolIndex)"
  1309. ></div>
  1310. <div v-else @click.stop="">
  1311. <el-input
  1312. type="textarea"
  1313. :rows="3"
  1314. resize="none"
  1315. v-model="updateToolDetailInner"
  1316. placeholder="请输入任务描述"
  1317. ></el-input>
  1318. </div>
  1319. </div>
  1320. <el-button
  1321. type="primary"
  1322. v-if="tool.tool[0] == 32"
  1323. style="position: absolute; right: 30px; top: 30px"
  1324. @click="addImg($event)"
  1325. >上传作业<input
  1326. type="file"
  1327. accept="*"
  1328. style="display: none"
  1329. @change="beforeUpload1($event, 7, toolIndex)"
  1330. /></el-button>
  1331. <el-button
  1332. type="primary"
  1333. v-if="tool.tool[0] == 15"
  1334. style="position: absolute; right: 30px; top: 30px"
  1335. @click="openWordCloud(toolIndex)"
  1336. >生成词云</el-button
  1337. >
  1338. <el-button
  1339. type="primary"
  1340. v-if="
  1341. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1342. "
  1343. style="position: absolute; right: 30px; top: 30px"
  1344. @click="uploadWorks(toolIndex)"
  1345. >导出作业</el-button
  1346. >
  1347. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1348. position: absolute;
  1349. right: 30px;
  1350. transform: translateY(-130%);
  1351. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1352. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1353. </div>
  1354. <div
  1355. v-if="
  1356. tType &&
  1357. tType == 2 &&
  1358. !sIsOpen &&
  1359. tool.tool.indexOf(16) != -1
  1360. "
  1361. class="worksBox"
  1362. >
  1363. <div
  1364. class="zuoyeYulan"
  1365. v-if="workStudent[toolIndex].length > 0"
  1366. >
  1367. <span class="worksTitle">作业预览</span>
  1368. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1369. </div>
  1370. <div
  1371. class="worksDetailBox"
  1372. v-if="workStudent[toolIndex].length > 0"
  1373. >
  1374. <div
  1375. class="works"
  1376. style="
  1377. width: 200px;
  1378. height: 140px;
  1379. margin: 10px 10px 10px 0;
  1380. box-shadow: 0 0 6px 1px #dfdada;
  1381. "
  1382. v-for="(w, wIndex) in workStudent[toolIndex]"
  1383. :key="wIndex"
  1384. >
  1385. <div class="workImg" v-if="w.type == 0">
  1386. <img
  1387. :src="w.works"
  1388. @click="previewImg(w.works)"
  1389. alt
  1390. />
  1391. <div
  1392. class="answerScore"
  1393. v-if="w.score"
  1394. @click.stop="openScore(w)"
  1395. :class="{
  1396. rightW:
  1397. w.userid == userid || tType == 1 || tType == 4,
  1398. }"
  1399. >
  1400. {{ JSON.parse(w.score).wScore }}分
  1401. </div>
  1402. <div
  1403. class="answerScore"
  1404. @click.stop="openScore(w)"
  1405. v-else-if="courseDetail.userid == userid"
  1406. :class="{
  1407. rightW:
  1408. w.userid == userid || tType == 1 || tType == 4,
  1409. }"
  1410. >
  1411. 评分
  1412. </div>
  1413. <img
  1414. class="deleteImg"
  1415. src="../assets/deleteworks.png"
  1416. v-if="
  1417. w.userid == userid || tType == 1 || tType == 4
  1418. "
  1419. @click.stop="deleteWorks(w.wid)"
  1420. alt
  1421. />
  1422. </div>
  1423. <div class="workImg" v-if="w.type == 1">
  1424. <img :src="word" @click="openFile(w.works)" alt />
  1425. <div
  1426. class="answerScore"
  1427. v-if="w.score"
  1428. @click.stop="openScore(w)"
  1429. :class="{
  1430. rightW:
  1431. w.userid == userid || tType == 1 || tType == 4,
  1432. }"
  1433. >
  1434. {{ JSON.parse(w.score).wScore }}分
  1435. </div>
  1436. <div
  1437. class="answerScore"
  1438. @click.stop="openScore(w)"
  1439. v-else-if="courseDetail.userid == userid"
  1440. :class="{
  1441. rightW:
  1442. w.userid == userid || tType == 1 || tType == 4,
  1443. }"
  1444. >
  1445. 评分
  1446. </div>
  1447. <img
  1448. class="deleteImg"
  1449. src="../assets/deleteworks.png"
  1450. v-if="
  1451. w.userid == userid || tType == 1 || tType == 4
  1452. "
  1453. @click.stop="deleteWorks(w.wid)"
  1454. alt
  1455. />
  1456. </div>
  1457. <div class="workImg" v-if="w.type == 3">
  1458. <img
  1459. style="cursor: pointer"
  1460. :src="video"
  1461. @click="openVideo(w)"
  1462. alt
  1463. />
  1464. <div
  1465. class="answerScore"
  1466. v-if="w.score"
  1467. @click.stop="openScore(w)"
  1468. :class="{
  1469. rightW:
  1470. w.userid == userid || tType == 1 || tType == 4,
  1471. }"
  1472. >
  1473. {{ JSON.parse(w.score).wScore }}分
  1474. </div>
  1475. <div
  1476. class="answerScore"
  1477. @click.stop="openScore(w)"
  1478. v-else-if="courseDetail.userid == userid"
  1479. :class="{
  1480. rightW:
  1481. w.userid == userid || tType == 1 || tType == 4,
  1482. }"
  1483. >
  1484. 评分
  1485. </div>
  1486. <img
  1487. class="deleteImg"
  1488. src="../assets/deleteworks.png"
  1489. v-if="
  1490. w.userid == userid || tType == 1 || tType == 4
  1491. "
  1492. @click.stop="deleteWorks(w.wid)"
  1493. alt
  1494. />
  1495. </div>
  1496. <div class="workImg" v-if="w.type == 12">
  1497. <img
  1498. style="cursor: pointer"
  1499. :src="word2"
  1500. @click="downloadFile(w.works)"
  1501. alt
  1502. />
  1503. <div
  1504. class="answerScore"
  1505. v-if="w.score"
  1506. @click.stop="openScore(w)"
  1507. :class="{
  1508. rightW:
  1509. w.userid == userid || tType == 1 || tType == 4,
  1510. }"
  1511. >
  1512. {{ JSON.parse(w.score).wScore }}分
  1513. </div>
  1514. <div
  1515. class="answerScore"
  1516. @click.stop="openScore(w)"
  1517. v-else-if="courseDetail.userid == userid"
  1518. :class="{
  1519. rightW:
  1520. w.userid == userid || tType == 1 || tType == 4,
  1521. }"
  1522. >
  1523. 评分
  1524. </div>
  1525. <img
  1526. class="deleteImg"
  1527. src="../assets/deleteworks.png"
  1528. v-if="
  1529. w.userid == userid || tType == 1 || tType == 4
  1530. "
  1531. @click.stop="deleteWorks(w.wid)"
  1532. alt
  1533. />
  1534. </div>
  1535. <div class="worksName">
  1536. <div>{{ w.sName }}</div>
  1537. </div>
  1538. </div>
  1539. </div>
  1540. </div>
  1541. <div
  1542. v-if="
  1543. tType &&
  1544. tType == 2 &&
  1545. !sIsOpen &&
  1546. tool.tool.indexOf(32) != -1
  1547. "
  1548. class="worksBox"
  1549. >
  1550. <div
  1551. class="zuoyeYulan"
  1552. v-if="workStudent[toolIndex].length > 0"
  1553. >
  1554. <span class="worksTitle">作业预览</span>
  1555. </div>
  1556. <div
  1557. class="worksDetailBox"
  1558. v-if="workStudent[toolIndex].length > 0"
  1559. >
  1560. <div
  1561. class="works"
  1562. style="
  1563. width: 200px;
  1564. height: 140px;
  1565. margin: 10px 10px 10px 0;
  1566. box-shadow: 0 0 6px 1px #dfdada;
  1567. "
  1568. v-for="(w, wIndex) in workStudent[toolIndex]"
  1569. :key="wIndex"
  1570. >
  1571. <div class="workImg">
  1572. <img
  1573. :src="word2"
  1574. @click="downloadFile(w.works)"
  1575. alt
  1576. />
  1577. <div
  1578. class="answerScore"
  1579. v-if="w.score"
  1580. @click.stop="openScore(w)"
  1581. :class="{
  1582. rightW:
  1583. w.userid == userid || tType == 1 || tType == 4,
  1584. }"
  1585. >
  1586. {{ JSON.parse(w.score).wScore }}分
  1587. </div>
  1588. <div
  1589. class="answerScore"
  1590. @click.stop="openScore(w)"
  1591. v-else-if="courseDetail.userid == userid"
  1592. :class="{
  1593. rightW:
  1594. w.userid == userid || tType == 1 || tType == 4,
  1595. }"
  1596. >
  1597. 评分
  1598. </div>
  1599. <img
  1600. class="deleteImg"
  1601. src="../assets/deleteworks.png"
  1602. v-if="
  1603. w.userid == userid || tType == 1 || tType == 4
  1604. "
  1605. @click.stop="deleteWorks(w.wid)"
  1606. alt
  1607. />
  1608. </div>
  1609. <div class="worksName">
  1610. <div>{{ w.sName }}</div>
  1611. </div>
  1612. </div>
  1613. </div>
  1614. </div>
  1615. <div
  1616. v-if="
  1617. tType &&
  1618. tType == 2 &&
  1619. !sIsOpen &&
  1620. tool.tool.indexOf(57) != -1
  1621. "
  1622. class="worksBox"
  1623. >
  1624. <div
  1625. class="zuoyeYulan"
  1626. v-if="workStudent[toolIndex].length > 0"
  1627. >
  1628. <span class="worksTitle">作业预览</span>
  1629. </div>
  1630. <div
  1631. class="worksDetailBox"
  1632. v-if="workStudent[toolIndex].length > 0"
  1633. >
  1634. <div
  1635. class="works"
  1636. style="
  1637. width: 200px;
  1638. height: 140px;
  1639. margin: 10px 10px 10px 0;
  1640. box-shadow: 0 0 6px 1px #dfdada;
  1641. "
  1642. v-for="(w, wIndex) in workStudent[toolIndex]"
  1643. :key="wIndex"
  1644. >
  1645. <div class="workImg">
  1646. <img
  1647. :src="word2"
  1648. @click="downloadFile(w.works)"
  1649. v-if="w.type == 12"
  1650. alt
  1651. />
  1652. <img
  1653. :src="word2"
  1654. @click="
  1655. openCocoPi(57, toolIndex, w.userid, w.sName)
  1656. "
  1657. v-else-if="w.type == 15"
  1658. alt
  1659. />
  1660. <div
  1661. class="answerScore"
  1662. v-if="w.score"
  1663. @click.stop="openScore(w)"
  1664. :class="{
  1665. rightW:
  1666. w.userid == userid || tType == 1 || tType == 4,
  1667. }"
  1668. >
  1669. {{ JSON.parse(w.score).wScore }}分
  1670. </div>
  1671. <div
  1672. class="answerScore"
  1673. @click.stop="openScore(w)"
  1674. v-else-if="courseDetail.userid == userid"
  1675. :class="{
  1676. rightW:
  1677. w.userid == userid || tType == 1 || tType == 4,
  1678. }"
  1679. >
  1680. 评分
  1681. </div>
  1682. <img
  1683. class="deleteImg"
  1684. src="../assets/deleteworks.png"
  1685. v-if="
  1686. w.userid == userid || tType == 1 || tType == 4
  1687. "
  1688. @click.stop="deleteWorks(w.wid)"
  1689. alt
  1690. />
  1691. </div>
  1692. <div class="worksName">
  1693. <div>{{ w.sName }}</div>
  1694. </div>
  1695. </div>
  1696. </div>
  1697. </div>
  1698. <div
  1699. v-if="
  1700. tType &&
  1701. tType == 2 &&
  1702. !sIsOpen &&
  1703. tool.tool.indexOf(4) != -1
  1704. "
  1705. class="worksBox"
  1706. >
  1707. <div
  1708. class="zuoyeYulan"
  1709. v-if="workStudent[toolIndex].length > 0"
  1710. >
  1711. <span class="worksTitle">作业预览</span>
  1712. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1713. </div>
  1714. <div
  1715. class="worksDetailBox"
  1716. v-if="workStudent[toolIndex].length > 0"
  1717. >
  1718. <div
  1719. class="isWorksName2"
  1720. v-for="(w, wIndex) in workStudent[toolIndex]"
  1721. :key="wIndex"
  1722. @click="
  1723. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1724. "
  1725. >
  1726. {{ w.sName }}
  1727. <img
  1728. class="deleteImg deleteImg2"
  1729. src="../assets/deleteworks.png"
  1730. v-if="w.userid == userid || tType == 1 || tType == 4"
  1731. @click.stop="deleteWorks(w.wid)"
  1732. alt
  1733. />
  1734. </div>
  1735. <!-- <div
  1736. class="works"
  1737. style="
  1738. width: 200px;
  1739. height: 140px;
  1740. border-radius: 10px;
  1741. box-shadow: 0 0 6px 1px #dfdada;
  1742. overflow: hidden;
  1743. "
  1744. v-for="(w, wIndex) in workStudent[toolIndex]"
  1745. :key="wIndex"
  1746. >
  1747. <div class="workImg">
  1748. <img
  1749. src="../assets/icon/works/noImg.png"
  1750. @click="
  1751. openTools(
  1752. 4,
  1753. toolIndex,
  1754. taskCount,
  1755. w.works,
  1756. w.sName
  1757. )
  1758. "
  1759. alt
  1760. />
  1761. </div>
  1762. <div class="worksName">
  1763. <div>{{ w.sName }}</div>
  1764. <div>{{ w.time }}</div>
  1765. </div>
  1766. </div> -->
  1767. </div>
  1768. </div>
  1769. <div
  1770. v-if="
  1771. tType &&
  1772. tType == 2 &&
  1773. !sIsOpen &&
  1774. tool.tool.indexOf(45) != -1
  1775. "
  1776. class="worksBox"
  1777. >
  1778. <div
  1779. class="zuoyeYulan"
  1780. v-if="workStudent[toolIndex].length > 0"
  1781. >
  1782. <span class="worksTitle">作业预览</span>
  1783. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1784. </div>
  1785. <div
  1786. class="worksDetailBox"
  1787. v-if="workStudent[toolIndex].length > 0"
  1788. >
  1789. <div
  1790. class="isWorksName2"
  1791. v-for="(w, wIndex) in workStudent[toolIndex]"
  1792. :key="wIndex"
  1793. @click="
  1794. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1795. "
  1796. >
  1797. {{ w.sName }}
  1798. <img
  1799. class="deleteImg deleteImg2"
  1800. src="../assets/deleteworks.png"
  1801. v-if="w.userid == userid || tType == 1 || tType == 4"
  1802. @click.stop="deleteWorks(w.wid)"
  1803. alt
  1804. />
  1805. </div>
  1806. </div>
  1807. </div>
  1808. <div
  1809. v-if="
  1810. tType &&
  1811. tType == 2 &&
  1812. !sIsOpen &&
  1813. tool.tool.indexOf(69) != -1
  1814. "
  1815. class="worksBox"
  1816. >
  1817. <div
  1818. class="zuoyeYulan"
  1819. v-if="workStudent[toolIndex].length > 0"
  1820. >
  1821. <span class="worksTitle">作业预览</span>
  1822. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1823. </div>
  1824. <div
  1825. class="worksDetailBox"
  1826. v-if="workStudent[toolIndex].length > 0"
  1827. >
  1828. <div
  1829. class="isWorksName2"
  1830. v-for="(w, wIndex) in workStudent[toolIndex]"
  1831. :key="wIndex"
  1832. @click="
  1833. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1834. "
  1835. >
  1836. {{ w.sName }}
  1837. <img
  1838. class="deleteImg deleteImg2"
  1839. src="../assets/deleteworks.png"
  1840. v-if="w.userid == userid || tType == 1 || tType == 4"
  1841. @click.stop="deleteWorks(w.wid)"
  1842. alt
  1843. />
  1844. </div>
  1845. </div>
  1846. </div>
  1847. <div
  1848. v-if="
  1849. tType &&
  1850. tType == 2 &&
  1851. !sIsOpen &&
  1852. tool.tool.indexOf(15) != -1
  1853. "
  1854. class="worksBox"
  1855. >
  1856. <div
  1857. class="zuoyeYulan"
  1858. v-if="workStudent[toolIndex].length > 0"
  1859. >
  1860. <span class="worksTitle">作业预览</span>
  1861. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1862. </div>
  1863. <div
  1864. class="worksDetailBox"
  1865. v-if="workStudent[toolIndex].length > 0"
  1866. >
  1867. <div
  1868. class="works"
  1869. v-for="(w, wIndex) in workStudent[toolIndex]"
  1870. :key="wIndex"
  1871. >
  1872. <div class="workImg">
  1873. <!-- <img
  1874. src="../assets/icon/works/noImg.png"
  1875. @click="openTools(15, toolIndex, taskCount, w.works)"
  1876. alt=""
  1877. />-->
  1878. <div class="answerBg">
  1879. <!-- <div>{{ w.sName }}</div> -->
  1880. <el-tooltip
  1881. class="item"
  1882. effect="light"
  1883. :content="JSON.parse(w.works)[0].answer"
  1884. placement="top"
  1885. >
  1886. <div class="answerContent">
  1887. {{ JSON.parse(w.works)[0].answer }}
  1888. </div>
  1889. </el-tooltip>
  1890. <div
  1891. class="answerScore"
  1892. v-if="w.score"
  1893. @click.stop="openScore(w)"
  1894. :class="{
  1895. rightW:
  1896. w.userid == userid ||
  1897. tType == 1 ||
  1898. tType == 4,
  1899. }"
  1900. >
  1901. {{ JSON.parse(w.score).wScore }}分
  1902. </div>
  1903. <div
  1904. class="answerScore"
  1905. @click.stop="openScore(w)"
  1906. v-else-if="courseDetail.userid == userid"
  1907. :class="{
  1908. rightW:
  1909. w.userid == userid ||
  1910. tType == 1 ||
  1911. tType == 4,
  1912. }"
  1913. >
  1914. 评分
  1915. </div>
  1916. <img
  1917. class="deleteImg"
  1918. src="../assets/deleteworks.png"
  1919. v-if="
  1920. w.userid == userid || tType == 1 || tType == 4
  1921. "
  1922. @click.stop="deleteWorks(w.wid)"
  1923. alt
  1924. />
  1925. </div>
  1926. <div class="comment">
  1927. <div class="worksName">
  1928. <div>{{ w.sName }}</div>
  1929. </div>
  1930. </div>
  1931. </div>
  1932. </div>
  1933. </div>
  1934. </div>
  1935. <div
  1936. v-if="
  1937. tType &&
  1938. tType == 2 &&
  1939. !sIsOpen &&
  1940. tool.tool.indexOf(1) != -1
  1941. "
  1942. class="worksBox"
  1943. >
  1944. <div
  1945. class="zuoyeYulan"
  1946. v-if="workStudent[toolIndex].length > 0"
  1947. >
  1948. <span class="worksTitle">作业预览</span>
  1949. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1950. </div>
  1951. <div
  1952. class="worksDetailBox"
  1953. v-if="workStudent[toolIndex].length > 0"
  1954. >
  1955. <div
  1956. class="works"
  1957. style="
  1958. width: 200px;
  1959. height: 140px;
  1960. margin: 10px 10px 10px 0;
  1961. box-shadow: 0 0 6px 1px #dfdada;
  1962. "
  1963. v-for="(w, wIndex) in workStudent[toolIndex]"
  1964. :key="wIndex"
  1965. >
  1966. <div class="workImg">
  1967. <img
  1968. :src="w.works"
  1969. @click="previewImg(w.works)"
  1970. alt
  1971. />
  1972. <div
  1973. class="answerScore"
  1974. v-if="w.score"
  1975. @click.stop="openScore(w)"
  1976. :class="{
  1977. rightW:
  1978. w.userid == userid || tType == 1 || tType == 4,
  1979. }"
  1980. >
  1981. {{ JSON.parse(w.score).wScore }}分
  1982. </div>
  1983. <div
  1984. class="answerScore"
  1985. @click.stop="openScore(w)"
  1986. v-else-if="courseDetail.userid == userid"
  1987. :class="{
  1988. rightW:
  1989. w.userid == userid || tType == 1 || tType == 4,
  1990. }"
  1991. >
  1992. 评分
  1993. </div>
  1994. <img
  1995. class="deleteImg"
  1996. src="../assets/deleteworks.png"
  1997. v-if="
  1998. w.userid == userid || tType == 1 || tType == 4
  1999. "
  2000. @click.stop="deleteWorks(w.wid)"
  2001. alt
  2002. />
  2003. </div>
  2004. <div class="worksName">
  2005. <div>{{ w.sName }}</div>
  2006. </div>
  2007. </div>
  2008. </div>
  2009. </div>
  2010. <div
  2011. v-if="
  2012. tType &&
  2013. tType == 2 &&
  2014. !sIsOpen &&
  2015. tool.tool.indexOf(3) != -1
  2016. "
  2017. class="worksBox"
  2018. >
  2019. <div
  2020. class="zuoyeYulan"
  2021. v-if="workStudent[toolIndex].length > 0"
  2022. >
  2023. <span class="worksTitle">作业预览</span>
  2024. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2025. </div>
  2026. <div
  2027. class="worksDetailBox"
  2028. v-if="workStudent[toolIndex].length > 0"
  2029. >
  2030. <div
  2031. class="works"
  2032. style="
  2033. width: 200px;
  2034. height: 140px;
  2035. margin: 10px 10px 10px 0;
  2036. box-shadow: 0 0 6px 1px #dfdada;
  2037. "
  2038. v-for="(w, wIndex) in workStudent[toolIndex]"
  2039. :key="wIndex"
  2040. >
  2041. <div class="workImg">
  2042. <img
  2043. :src="w.works"
  2044. @click="previewImg(w.works)"
  2045. alt
  2046. />
  2047. <div
  2048. class="answerScore"
  2049. v-if="w.score"
  2050. @click.stop="openScore(w)"
  2051. :class="{
  2052. rightW:
  2053. w.userid == userid || tType == 1 || tType == 4,
  2054. }"
  2055. >
  2056. {{ JSON.parse(w.score).wScore }}分
  2057. </div>
  2058. <div
  2059. class="answerScore"
  2060. @click.stop="openScore(w)"
  2061. v-else-if="courseDetail.userid == userid"
  2062. :class="{
  2063. rightW:
  2064. w.userid == userid || tType == 1 || tType == 4,
  2065. }"
  2066. >
  2067. 评分
  2068. </div>
  2069. <img
  2070. class="deleteImg"
  2071. src="../assets/deleteworks.png"
  2072. v-if="
  2073. w.userid == userid || tType == 1 || tType == 4
  2074. "
  2075. @click.stop="deleteWorks(w.wid)"
  2076. alt
  2077. />
  2078. </div>
  2079. <div class="worksName">
  2080. <div>{{ w.sName }}</div>
  2081. </div>
  2082. </div>
  2083. </div>
  2084. </div>
  2085. <div
  2086. v-if="
  2087. tType &&
  2088. tType == 2 &&
  2089. !sIsOpen &&
  2090. tool.tool.indexOf(6) != -1
  2091. "
  2092. class="worksBox"
  2093. >
  2094. <div
  2095. class="zuoyeYulan"
  2096. v-if="workStudent[toolIndex].length > 0"
  2097. >
  2098. <span class="worksTitle">作业预览</span>
  2099. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2100. </div>
  2101. <div
  2102. class="worksDetailBox"
  2103. v-if="workStudent[toolIndex].length > 0"
  2104. >
  2105. <div
  2106. class="works"
  2107. style="
  2108. width: 200px;
  2109. height: 140px;
  2110. margin: 10px 10px 10px 0;
  2111. box-shadow: 0 0 6px 1px #dfdada;
  2112. "
  2113. v-for="(w, wIndex) in workStudent[toolIndex]"
  2114. :key="wIndex"
  2115. >
  2116. <div class="workImg">
  2117. <img
  2118. :src="w.works"
  2119. @click="previewImg(w.works)"
  2120. alt
  2121. />
  2122. <div
  2123. class="answerScore"
  2124. v-if="w.score"
  2125. @click.stop="openScore(w)"
  2126. :class="{
  2127. rightW:
  2128. w.userid == userid || tType == 1 || tType == 4,
  2129. }"
  2130. >
  2131. {{ JSON.parse(w.score).wScore }}分
  2132. </div>
  2133. <div
  2134. class="answerScore"
  2135. @click.stop="openScore(w)"
  2136. v-else-if="courseDetail.userid == userid"
  2137. :class="{
  2138. rightW:
  2139. w.userid == userid || tType == 1 || tType == 4,
  2140. }"
  2141. >
  2142. 评分
  2143. </div>
  2144. <img
  2145. class="deleteImg"
  2146. src="../assets/deleteworks.png"
  2147. v-if="
  2148. w.userid == userid || tType == 1 || tType == 4
  2149. "
  2150. @click.stop="deleteWorks(w.wid)"
  2151. alt
  2152. />
  2153. </div>
  2154. <div class="worksName">
  2155. <div>{{ w.sName }}</div>
  2156. </div>
  2157. </div>
  2158. </div>
  2159. </div>
  2160. <div
  2161. v-if="
  2162. tType &&
  2163. tType == 2 &&
  2164. !sIsOpen &&
  2165. tool.tool.indexOf(7) != -1
  2166. "
  2167. class="worksBox"
  2168. >
  2169. <div
  2170. class="zuoyeYulan"
  2171. v-if="workStudent[toolIndex].length > 0"
  2172. >
  2173. <span class="worksTitle">作业预览</span>
  2174. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2175. </div>
  2176. <div
  2177. class="worksDetailBox"
  2178. v-if="workStudent[toolIndex].length > 0"
  2179. >
  2180. <div
  2181. class="works"
  2182. style="
  2183. width: 200px;
  2184. height: 140px;
  2185. margin: 10px 10px 10px 0;
  2186. box-shadow: 0 0 6px 1px #dfdada;
  2187. "
  2188. v-for="(w, wIndex) in workStudent[toolIndex]"
  2189. :key="wIndex"
  2190. >
  2191. <div class="workImg">
  2192. <img
  2193. :src="w.works"
  2194. @click="previewImg(w.works)"
  2195. alt
  2196. />
  2197. <div
  2198. class="answerScore"
  2199. v-if="w.score"
  2200. @click.stop="openScore(w)"
  2201. :class="{
  2202. rightW:
  2203. w.userid == userid || tType == 1 || tType == 4,
  2204. }"
  2205. >
  2206. {{ JSON.parse(w.score).wScore }}分
  2207. </div>
  2208. <div
  2209. class="answerScore"
  2210. @click.stop="openScore(w)"
  2211. v-else-if="courseDetail.userid == userid"
  2212. :class="{
  2213. rightW:
  2214. w.userid == userid || tType == 1 || tType == 4,
  2215. }"
  2216. >
  2217. 评分
  2218. </div>
  2219. <img
  2220. class="deleteImg"
  2221. src="../assets/deleteworks.png"
  2222. v-if="
  2223. w.userid == userid || tType == 1 || tType == 4
  2224. "
  2225. @click.stop="deleteWorks(w.wid)"
  2226. alt
  2227. />
  2228. </div>
  2229. <div class="worksName">
  2230. <div>{{ w.sName }}</div>
  2231. </div>
  2232. </div>
  2233. </div>
  2234. </div>
  2235. <div
  2236. v-if="
  2237. tType &&
  2238. tType == 2 &&
  2239. !sIsOpen &&
  2240. tool.tool.indexOf(26) != -1
  2241. "
  2242. class="worksBox"
  2243. >
  2244. <div
  2245. class="zuoyeYulan"
  2246. v-if="workStudent[toolIndex].length > 0"
  2247. >
  2248. <span class="worksTitle">作业预览</span>
  2249. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2250. </div>
  2251. <div
  2252. class="worksDetailBox"
  2253. v-if="workStudent[toolIndex].length > 0"
  2254. >
  2255. <div
  2256. class="works"
  2257. style="
  2258. width: 200px;
  2259. height: 140px;
  2260. margin: 10px 10px 10px 0;
  2261. box-shadow: 0 0 6px 1px #dfdada;
  2262. "
  2263. v-for="(w, wIndex) in workStudent[toolIndex]"
  2264. :key="wIndex"
  2265. >
  2266. <div class="workImg">
  2267. <img
  2268. :src="w.works"
  2269. @click="previewImg(w.works)"
  2270. alt
  2271. />
  2272. <img
  2273. class="deleteImg"
  2274. src="../assets/deleteworks.png"
  2275. v-if="
  2276. w.userid == userid || tType == 1 || tType == 4
  2277. "
  2278. @click.stop="deleteWorks(w.wid)"
  2279. alt
  2280. />
  2281. </div>
  2282. <div class="worksName">
  2283. <div>{{ w.sName }}</div>
  2284. </div>
  2285. </div>
  2286. </div>
  2287. </div>
  2288. <div
  2289. v-if="
  2290. tType &&
  2291. ((tType == 2 && sIsOpen == true) ||
  2292. tType == 1 ||
  2293. tType == 4) &&
  2294. tool.tool.indexOf(16) != -1
  2295. "
  2296. class="worksBox"
  2297. >
  2298. <div
  2299. class="zuoyeYulan"
  2300. v-if="
  2301. worksStudent.length &&
  2302. worksStudent[toolIndex].length > 0
  2303. "
  2304. >
  2305. <div class="worksTop">
  2306. <div>作业预览</div>
  2307. <div
  2308. class="corOpen"
  2309. @click="contract(toolIndex)"
  2310. v-if="
  2311. worksStudent[toolIndex].length > 6 &&
  2312. isCloseList[toolIndex].isClose == 0
  2313. "
  2314. >
  2315. 折叠
  2316. </div>
  2317. <div
  2318. class="corOpen"
  2319. @click="contract(toolIndex)"
  2320. v-if="isCloseList[toolIndex].isClose == 1"
  2321. >
  2322. 展开
  2323. </div>
  2324. </div>
  2325. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2326. </div>
  2327. <div
  2328. class="group_workBox"
  2329. v-for="(g, gindex) in courseGroup.group"
  2330. :key="gindex"
  2331. >
  2332. <div class="group_box">
  2333. <div class="group_title">
  2334. <el-tooltip
  2335. class="item"
  2336. effect="light"
  2337. :content="g.name"
  2338. placement="top"
  2339. >
  2340. <div class="group_name">{{ g.name }}</div>
  2341. </el-tooltip>
  2342. </div>
  2343. <div
  2344. class="group_work"
  2345. v-if="
  2346. g.works &&
  2347. g.works.length &&
  2348. g.works[toolIndex].length
  2349. "
  2350. >
  2351. <div
  2352. class="works"
  2353. style="
  2354. width: 200px;
  2355. height: 140px;
  2356. margin: 10px 10px 10px 0;
  2357. border-radius: 15px;
  2358. box-shadow: 0 0 6px 1px #dfdada;
  2359. "
  2360. v-for="(w, wIndex) in g.works[toolIndex]"
  2361. :key="wIndex"
  2362. :class="w.type == 1 ? 'isTypeOne' : ''"
  2363. >
  2364. <div class="workImg" v-if="w.type == 0">
  2365. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2366. <img
  2367. :src="w.works"
  2368. @click="previewImg(w.works)"
  2369. alt
  2370. />
  2371. <div
  2372. class="answerScore"
  2373. v-if="w.score"
  2374. @click.stop="openScore(w)"
  2375. :class="{
  2376. rightW:
  2377. w.userid == userid ||
  2378. tType == 1 ||
  2379. tType == 4 ||
  2380. w.ateacher == userid,
  2381. }"
  2382. >
  2383. {{ JSON.parse(w.score).wScore }}分
  2384. </div>
  2385. <div
  2386. class="answerScore"
  2387. @click.stop="openScore(w)"
  2388. v-else-if="courseDetail.userid == userid"
  2389. :class="{
  2390. rightW:
  2391. w.userid == userid ||
  2392. tType == 1 ||
  2393. tType == 4 ||
  2394. w.ateacher == userid,
  2395. }"
  2396. >
  2397. 评分
  2398. </div>
  2399. <img
  2400. class="deleteImg"
  2401. src="../assets/deleteworks.png"
  2402. v-if="
  2403. w.userid == userid || tType == 1 || tType == 4
  2404. "
  2405. @click.stop="deleteWorks(w.wid)"
  2406. alt
  2407. />
  2408. </div>
  2409. <div class="workImg" v-if="w.type == 1">
  2410. <img :src="word" @click="openFile(w.works)" alt />
  2411. <!-- @click="openFile(w.works)" -->
  2412. <div
  2413. class="answerScore"
  2414. v-if="w.score"
  2415. @click.stop="openScore(w)"
  2416. :class="{
  2417. rightW:
  2418. w.userid == userid ||
  2419. tType == 1 ||
  2420. tType == 4 ||
  2421. w.ateacher == userid,
  2422. }"
  2423. >
  2424. {{ JSON.parse(w.score).wScore }}分
  2425. </div>
  2426. <div
  2427. class="answerScore"
  2428. @click.stop="openScore(w)"
  2429. v-else-if="courseDetail.userid == userid"
  2430. :class="{
  2431. rightW:
  2432. w.userid == userid ||
  2433. tType == 1 ||
  2434. tType == 4 ||
  2435. w.ateacher == userid,
  2436. }"
  2437. >
  2438. 评分
  2439. </div>
  2440. <img
  2441. class="deleteImg"
  2442. src="../assets/deleteworks.png"
  2443. v-if="
  2444. w.userid == userid || tType == 1 || tType == 4
  2445. "
  2446. @click.stop="deleteWorks(w.wid)"
  2447. alt
  2448. />
  2449. </div>
  2450. <div class="workImg" v-if="w.type == 3">
  2451. <img
  2452. style="cursor: pointer"
  2453. :src="video"
  2454. @click="openVideo(w)"
  2455. alt
  2456. />
  2457. <!-- @click="openVideo(w.works)" -->
  2458. <div
  2459. class="answerScore"
  2460. v-if="w.score"
  2461. @click.stop="openScore(w)"
  2462. :class="{
  2463. rightW:
  2464. w.userid == userid ||
  2465. tType == 1 ||
  2466. tType == 4 ||
  2467. w.ateacher == userid,
  2468. }"
  2469. >
  2470. {{ JSON.parse(w.score).wScore }}分
  2471. </div>
  2472. <div
  2473. class="answerScore"
  2474. @click.stop="openScore(w)"
  2475. v-else-if="courseDetail.userid == userid"
  2476. :class="{
  2477. rightW:
  2478. w.userid == userid ||
  2479. tType == 1 ||
  2480. tType == 4 ||
  2481. w.ateacher == userid,
  2482. }"
  2483. >
  2484. 评分
  2485. </div>
  2486. <img
  2487. class="deleteImg"
  2488. src="../assets/deleteworks.png"
  2489. v-if="
  2490. w.userid == userid || tType == 1 || tType == 4
  2491. "
  2492. @click.stop="deleteWorks(w.wid)"
  2493. alt
  2494. />
  2495. </div>
  2496. <div class="workImg" v-if="w.type == 12">
  2497. <img
  2498. style="cursor: pointer"
  2499. :src="word2"
  2500. @click="downloadFile(w.works)"
  2501. alt
  2502. />
  2503. <!-- @click="openVideo(w.works)" -->
  2504. <div
  2505. class="answerScore"
  2506. v-if="w.score"
  2507. @click.stop="openScore(w)"
  2508. :class="{
  2509. rightW:
  2510. w.userid == userid ||
  2511. tType == 1 ||
  2512. tType == 4 ||
  2513. w.ateacher == userid,
  2514. }"
  2515. >
  2516. {{ JSON.parse(w.score).wScore }}分
  2517. </div>
  2518. <div
  2519. class="answerScore"
  2520. @click.stop="openScore(w)"
  2521. v-else-if="courseDetail.userid == userid"
  2522. :class="{
  2523. rightW:
  2524. w.userid == userid ||
  2525. tType == 1 ||
  2526. tType == 4 ||
  2527. w.ateacher == userid,
  2528. }"
  2529. >
  2530. 评分
  2531. </div>
  2532. <img
  2533. class="deleteImg"
  2534. src="../assets/deleteworks.png"
  2535. v-if="
  2536. w.userid == userid || tType == 1 || tType == 4
  2537. "
  2538. @click.stop="deleteWorks(w.wid)"
  2539. alt
  2540. />
  2541. </div>
  2542. <div class="comment" style="min-width: 200px">
  2543. <div class="worksName">
  2544. <div>{{ w.sName }}</div>
  2545. </div>
  2546. <div class="commentList">
  2547. <div class="commentList">
  2548. <div
  2549. class="commentImg"
  2550. @click="
  2551. isLikes(w.wid, userid, 1, null, w.isLikes)
  2552. "
  2553. >
  2554. <img
  2555. :src="w.isLikes == true ? likes : noLikes"
  2556. alt=""
  2557. />
  2558. </div>
  2559. <div>{{ w.likesCount }}</div>
  2560. </div>
  2561. <div
  2562. class="commentList"
  2563. style="margin-right: 15px"
  2564. >
  2565. <div
  2566. class="commentImg"
  2567. @click="
  2568. commentOther(
  2569. w,
  2570. toolIndex,
  2571. wIndex,
  2572. null,
  2573. g.id
  2574. )
  2575. "
  2576. >
  2577. <img
  2578. src="../assets/icon/comment/comment.png"
  2579. alt=""
  2580. />
  2581. </div>
  2582. <div>{{ w.commentCount }}</div>
  2583. </div>
  2584. </div>
  2585. </div>
  2586. </div>
  2587. </div>
  2588. <div class="group_work" v-else>暂无提交作业</div>
  2589. </div>
  2590. </div>
  2591. <div
  2592. class="worksDetailBox"
  2593. v-if="
  2594. worksStudent.length &&
  2595. worksStudent[toolIndex].length > 0
  2596. "
  2597. >
  2598. <div
  2599. class="works"
  2600. style="
  2601. width: 200px;
  2602. height: 140px;
  2603. margin: 10px 10px 10px 0;
  2604. border-radius: 15px;
  2605. box-shadow: 0 0 6px 1px #dfdada;
  2606. "
  2607. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2608. 0
  2609. ? worksStudent[toolIndex]
  2610. : worksStudent[toolIndex].slice(0, 6)"
  2611. :key="wIndex"
  2612. :class="w.type == 1 ? 'isTypeOne' : ''"
  2613. >
  2614. <div class="workImg" v-if="w.type == 0">
  2615. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2616. <img
  2617. :src="w.works"
  2618. @click="previewImg(w.works)"
  2619. alt
  2620. />
  2621. <div
  2622. class="answerScore"
  2623. v-if="w.score"
  2624. @click.stop="openScore(w)"
  2625. :class="{
  2626. rightW:
  2627. w.userid == userid ||
  2628. tType == 1 ||
  2629. tType == 4 ||
  2630. w.ateacher == userid,
  2631. }"
  2632. >
  2633. {{ JSON.parse(w.score).wScore }}分
  2634. </div>
  2635. <div
  2636. class="answerScore"
  2637. @click.stop="openScore(w)"
  2638. v-else-if="courseDetail.userid == userid"
  2639. :class="{
  2640. rightW:
  2641. w.userid == userid ||
  2642. tType == 1 ||
  2643. tType == 4 ||
  2644. w.ateacher == userid,
  2645. }"
  2646. >
  2647. 评分
  2648. </div>
  2649. <img
  2650. class="deleteImg"
  2651. src="../assets/deleteworks.png"
  2652. v-if="
  2653. w.userid == userid || tType == 1 || tType == 4
  2654. "
  2655. @click.stop="deleteWorks(w.wid)"
  2656. alt
  2657. />
  2658. </div>
  2659. <div class="workImg" v-if="w.type == 1">
  2660. <img :src="word" @click="openFile(w.works)" alt />
  2661. <!-- @click="openFile(w.works)" -->
  2662. <div
  2663. class="answerScore"
  2664. v-if="w.score"
  2665. @click.stop="openScore(w)"
  2666. :class="{
  2667. rightW:
  2668. w.userid == userid ||
  2669. tType == 1 ||
  2670. tType == 4 ||
  2671. w.ateacher == userid,
  2672. }"
  2673. >
  2674. {{ JSON.parse(w.score).wScore }}分
  2675. </div>
  2676. <div
  2677. class="answerScore"
  2678. @click.stop="openScore(w)"
  2679. v-else-if="courseDetail.userid == userid"
  2680. :class="{
  2681. rightW:
  2682. w.userid == userid ||
  2683. tType == 1 ||
  2684. tType == 4 ||
  2685. w.ateacher == userid,
  2686. }"
  2687. >
  2688. 评分
  2689. </div>
  2690. <img
  2691. class="deleteImg"
  2692. src="../assets/deleteworks.png"
  2693. v-if="
  2694. w.userid == userid || tType == 1 || tType == 4
  2695. "
  2696. @click.stop="deleteWorks(w.wid)"
  2697. alt
  2698. />
  2699. </div>
  2700. <div class="workImg" v-if="w.type == 3">
  2701. <img
  2702. style="cursor: pointer"
  2703. :src="video"
  2704. @click="openVideo(w)"
  2705. alt
  2706. />
  2707. <!-- @click="openVideo(w.works)" -->
  2708. <div
  2709. class="answerScore"
  2710. v-if="w.score"
  2711. @click.stop="openScore(w)"
  2712. :class="{
  2713. rightW:
  2714. w.userid == userid ||
  2715. tType == 1 ||
  2716. tType == 4 ||
  2717. w.ateacher == userid,
  2718. }"
  2719. >
  2720. {{ JSON.parse(w.score).wScore }}分
  2721. </div>
  2722. <div
  2723. class="answerScore"
  2724. @click.stop="openScore(w)"
  2725. v-else-if="courseDetail.userid == userid"
  2726. :class="{
  2727. rightW:
  2728. w.userid == userid ||
  2729. tType == 1 ||
  2730. tType == 4 ||
  2731. w.ateacher == userid,
  2732. }"
  2733. >
  2734. 评分
  2735. </div>
  2736. <img
  2737. class="deleteImg"
  2738. src="../assets/deleteworks.png"
  2739. v-if="
  2740. w.userid == userid || tType == 1 || tType == 4
  2741. "
  2742. @click.stop="deleteWorks(w.wid)"
  2743. alt
  2744. />
  2745. </div>
  2746. <div class="workImg" v-if="w.type == 12">
  2747. <img
  2748. style="cursor: pointer"
  2749. :src="word2"
  2750. @click="downloadFile(w.works)"
  2751. alt
  2752. />
  2753. <!-- @click="openVideo(w.works)" -->
  2754. <div
  2755. class="answerScore"
  2756. v-if="w.score"
  2757. @click.stop="openScore(w)"
  2758. :class="{
  2759. rightW:
  2760. w.userid == userid ||
  2761. tType == 1 ||
  2762. tType == 4 ||
  2763. w.ateacher == userid,
  2764. }"
  2765. >
  2766. {{ JSON.parse(w.score).wScore }}分
  2767. </div>
  2768. <div
  2769. class="answerScore"
  2770. @click.stop="openScore(w)"
  2771. v-else-if="courseDetail.userid == userid"
  2772. :class="{
  2773. rightW:
  2774. w.userid == userid ||
  2775. tType == 1 ||
  2776. tType == 4 ||
  2777. w.ateacher == userid,
  2778. }"
  2779. >
  2780. 评分
  2781. </div>
  2782. <img
  2783. class="deleteImg"
  2784. src="../assets/deleteworks.png"
  2785. v-if="
  2786. w.userid == userid || tType == 1 || tType == 4
  2787. "
  2788. @click.stop="deleteWorks(w.wid)"
  2789. alt
  2790. />
  2791. </div>
  2792. <div class="comment" style="min-width: 200px">
  2793. <div class="worksName">
  2794. <div>{{ w.sName }}</div>
  2795. </div>
  2796. <div class="commentList">
  2797. <div class="commentList">
  2798. <div
  2799. class="commentImg"
  2800. @click="
  2801. isLikes(w.wid, userid, 1, null, w.isLikes)
  2802. "
  2803. >
  2804. <img
  2805. :src="w.isLikes == true ? likes : noLikes"
  2806. alt=""
  2807. />
  2808. </div>
  2809. <div>{{ w.likesCount }}</div>
  2810. </div>
  2811. <div class="commentList" style="margin-right: 15px">
  2812. <div
  2813. class="commentImg"
  2814. @click="commentOther(w, toolIndex, wIndex)"
  2815. >
  2816. <img
  2817. src="../assets/icon/comment/comment.png"
  2818. alt=""
  2819. />
  2820. </div>
  2821. <div>{{ w.commentCount }}</div>
  2822. </div>
  2823. </div>
  2824. </div>
  2825. </div>
  2826. </div>
  2827. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2828. 未提交
  2829. </div>
  2830. <div
  2831. class="noWorksS"
  2832. v-if="noWorksS && noWorksS[toolIndex].length"
  2833. >
  2834. <div
  2835. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2836. :key="sIndex"
  2837. class="noWorksName"
  2838. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2839. >
  2840. {{ s.student }}
  2841. </div>
  2842. </div>
  2843. </div>
  2844. <div
  2845. v-if="
  2846. tType &&
  2847. ((tType == 2 && sIsOpen == true) ||
  2848. tType == 1 ||
  2849. tType == 4) &&
  2850. tool.tool.indexOf(32) != -1
  2851. "
  2852. class="worksBox"
  2853. >
  2854. <div
  2855. class="zuoyeYulan"
  2856. v-if="
  2857. worksStudent.length &&
  2858. worksStudent[toolIndex].length > 0
  2859. "
  2860. >
  2861. <div class="worksTop">
  2862. <div>作业预览</div>
  2863. <div
  2864. class="corOpen"
  2865. @click="contract(toolIndex)"
  2866. v-if="
  2867. worksStudent[toolIndex].length > 6 &&
  2868. isCloseList[toolIndex].isClose == 0
  2869. "
  2870. >
  2871. 折叠
  2872. </div>
  2873. <div
  2874. class="corOpen"
  2875. @click="contract(toolIndex)"
  2876. v-if="isCloseList[toolIndex].isClose == 1"
  2877. >
  2878. 展开
  2879. </div>
  2880. </div>
  2881. </div>
  2882. <div
  2883. class="worksDetailBox"
  2884. v-if="
  2885. worksStudent.length &&
  2886. worksStudent[toolIndex].length > 0
  2887. "
  2888. >
  2889. <div
  2890. class="works"
  2891. style="
  2892. width: 200px;
  2893. height: 140px;
  2894. margin: 10px 10px 10px 0;
  2895. border-radius: 15px;
  2896. box-shadow: 0 0 6px 1px #dfdada;
  2897. "
  2898. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2899. 0
  2900. ? worksStudent[toolIndex]
  2901. : worksStudent[toolIndex].slice(0, 6)"
  2902. :key="wIndex"
  2903. :class="w.type == 1 ? 'isTypeOne' : ''"
  2904. >
  2905. <div class="workImg">
  2906. <img
  2907. :src="word2"
  2908. @click="downloadFile(w.works)"
  2909. alt
  2910. />
  2911. <div
  2912. class="answerScore"
  2913. v-if="w.score"
  2914. @click.stop="openScore(w)"
  2915. :class="{
  2916. rightW:
  2917. w.userid == userid ||
  2918. tType == 1 ||
  2919. tType == 4 ||
  2920. w.ateacher == userid,
  2921. }"
  2922. >
  2923. {{ JSON.parse(w.score).wScore }}分
  2924. </div>
  2925. <div
  2926. class="answerScore"
  2927. @click.stop="openScore(w)"
  2928. v-else-if="courseDetail.userid == userid"
  2929. :class="{
  2930. rightW:
  2931. w.userid == userid ||
  2932. tType == 1 ||
  2933. tType == 4 ||
  2934. w.ateacher == userid,
  2935. }"
  2936. >
  2937. 评分
  2938. </div>
  2939. <img
  2940. class="deleteImg"
  2941. src="../assets/deleteworks.png"
  2942. v-if="
  2943. w.userid == userid || tType == 1 || tType == 4
  2944. "
  2945. @click.stop="deleteWorks(w.wid)"
  2946. alt
  2947. />
  2948. </div>
  2949. <div class="comment" style="min-width: 200px">
  2950. <div class="worksName">
  2951. <div>{{ w.sName }}</div>
  2952. </div>
  2953. <div class="commentList">
  2954. <div class="commentList">
  2955. <div
  2956. class="commentImg"
  2957. @click="
  2958. isLikes(w.wid, userid, 1, null, w.isLikes)
  2959. "
  2960. >
  2961. <img
  2962. :src="w.isLikes == true ? likes : noLikes"
  2963. alt=""
  2964. />
  2965. </div>
  2966. <div>{{ w.likesCount }}</div>
  2967. </div>
  2968. <div class="commentList" style="margin-right: 15px">
  2969. <div
  2970. class="commentImg"
  2971. @click="commentOther(w, toolIndex, wIndex)"
  2972. >
  2973. <img
  2974. src="../assets/icon/comment/comment.png"
  2975. alt=""
  2976. />
  2977. </div>
  2978. <div>{{ w.commentCount }}</div>
  2979. </div>
  2980. </div>
  2981. </div>
  2982. </div>
  2983. </div>
  2984. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2985. 未提交
  2986. </div>
  2987. <div
  2988. class="noWorksS"
  2989. v-if="noWorksS && noWorksS[toolIndex].length"
  2990. >
  2991. <div
  2992. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2993. :key="sIndex"
  2994. class="noWorksName"
  2995. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  2996. >
  2997. {{ s.student }}
  2998. </div>
  2999. </div>
  3000. </div>
  3001. <div
  3002. v-if="
  3003. tType &&
  3004. ((tType == 2 && sIsOpen == true) ||
  3005. tType == 1 ||
  3006. tType == 4) &&
  3007. tool.tool.indexOf(57) != -1
  3008. "
  3009. class="worksBox"
  3010. >
  3011. <div
  3012. class="zuoyeYulan"
  3013. v-if="
  3014. worksStudent.length &&
  3015. worksStudent[toolIndex].length > 0
  3016. "
  3017. >
  3018. <div class="worksTop">
  3019. <div>作业预览</div>
  3020. <div
  3021. class="corOpen"
  3022. @click="contract(toolIndex)"
  3023. v-if="
  3024. worksStudent[toolIndex].length > 6 &&
  3025. isCloseList[toolIndex].isClose == 0
  3026. "
  3027. >
  3028. 折叠
  3029. </div>
  3030. <div
  3031. class="corOpen"
  3032. @click="contract(toolIndex)"
  3033. v-if="isCloseList[toolIndex].isClose == 1"
  3034. >
  3035. 展开
  3036. </div>
  3037. </div>
  3038. </div>
  3039. <div
  3040. class="worksDetailBox"
  3041. v-if="
  3042. worksStudent.length &&
  3043. worksStudent[toolIndex].length > 0
  3044. "
  3045. >
  3046. <div
  3047. class="works"
  3048. style="
  3049. width: 200px;
  3050. height: 140px;
  3051. margin: 10px 10px 10px 0;
  3052. border-radius: 15px;
  3053. box-shadow: 0 0 6px 1px #dfdada;
  3054. "
  3055. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3056. 0
  3057. ? worksStudent[toolIndex]
  3058. : worksStudent[toolIndex].slice(0, 6)"
  3059. :key="wIndex"
  3060. :class="w.type == 1 ? 'isTypeOne' : ''"
  3061. >
  3062. <div class="workImg">
  3063. <img
  3064. :src="word2"
  3065. @click="downloadFile(w.works)"
  3066. v-if="w.type == 12"
  3067. alt
  3068. />
  3069. <img
  3070. :src="word2"
  3071. @click="
  3072. openCocoPi(57, toolIndex, w.userid, w.sName)
  3073. "
  3074. v-else-if="w.type == 15"
  3075. alt
  3076. />
  3077. <div
  3078. class="answerScore"
  3079. v-if="w.score"
  3080. @click.stop="openScore(w)"
  3081. :class="{
  3082. rightW:
  3083. w.userid == userid ||
  3084. tType == 1 ||
  3085. tType == 4 ||
  3086. w.ateacher == userid,
  3087. }"
  3088. >
  3089. {{ JSON.parse(w.score).wScore }}分
  3090. </div>
  3091. <div
  3092. class="answerScore"
  3093. @click.stop="openScore(w)"
  3094. v-else-if="courseDetail.userid == userid"
  3095. :class="{
  3096. rightW:
  3097. w.userid == userid ||
  3098. tType == 1 ||
  3099. tType == 4 ||
  3100. w.ateacher == userid,
  3101. }"
  3102. >
  3103. 评分
  3104. </div>
  3105. <img
  3106. class="deleteImg"
  3107. src="../assets/deleteworks.png"
  3108. v-if="
  3109. w.userid == userid || tType == 1 || tType == 4
  3110. "
  3111. @click.stop="deleteWorks(w.wid)"
  3112. alt
  3113. />
  3114. </div>
  3115. <div class="comment" style="min-width: 200px">
  3116. <div class="worksName">
  3117. <div>{{ w.sName }}</div>
  3118. </div>
  3119. <div class="commentList">
  3120. <div class="commentList">
  3121. <div
  3122. class="commentImg"
  3123. @click="
  3124. isLikes(w.wid, userid, 1, null, w.isLikes)
  3125. "
  3126. >
  3127. <img
  3128. :src="w.isLikes == true ? likes : noLikes"
  3129. alt=""
  3130. />
  3131. </div>
  3132. <div>{{ w.likesCount }}</div>
  3133. </div>
  3134. <div class="commentList" style="margin-right: 15px">
  3135. <div
  3136. class="commentImg"
  3137. @click="commentOther(w, toolIndex, wIndex)"
  3138. >
  3139. <img
  3140. src="../assets/icon/comment/comment.png"
  3141. alt=""
  3142. />
  3143. </div>
  3144. <div>{{ w.commentCount }}</div>
  3145. </div>
  3146. </div>
  3147. </div>
  3148. </div>
  3149. </div>
  3150. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3151. 未提交
  3152. </div>
  3153. <div
  3154. class="noWorksS"
  3155. v-if="noWorksS && noWorksS[toolIndex].length"
  3156. >
  3157. <div
  3158. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3159. :key="sIndex"
  3160. class="noWorksName"
  3161. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3162. >
  3163. {{ s.student }}
  3164. </div>
  3165. </div>
  3166. </div>
  3167. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3168. <div
  3169. class="zuoyeYulan"
  3170. v-if="
  3171. worksStudent.length &&
  3172. worksStudent[toolIndex].length > 0
  3173. "
  3174. >
  3175. <span class="worksTitle">作业预览</span>
  3176. <div
  3177. class="corOpen"
  3178. @click="contract(toolIndex)"
  3179. v-if="
  3180. worksStudent[toolIndex].length > 6 &&
  3181. isCloseList[toolIndex].isClose == 0
  3182. "
  3183. >
  3184. 折叠
  3185. </div>
  3186. <div
  3187. class="corOpen"
  3188. @click="contract(toolIndex)"
  3189. v-if="isCloseList[toolIndex].isClose == 1"
  3190. >
  3191. 展开
  3192. </div>
  3193. </div>
  3194. <div
  3195. class="worksDetailBox"
  3196. v-if="
  3197. worksStudent.length &&
  3198. worksStudent[toolIndex].length > 0
  3199. "
  3200. >
  3201. <div
  3202. class="works"
  3203. style="
  3204. width: 200px;
  3205. height: 140px;
  3206. margin: 10px 10px 10px 0;
  3207. border-radius: 15px;
  3208. box-shadow: 0 0 6px 1px #dfdada;
  3209. "
  3210. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3211. 0
  3212. ? worksStudent[toolIndex]
  3213. : worksStudent[toolIndex].slice(0, 6)"
  3214. :key="wIndex"
  3215. :class="w.type == 1 ? 'isTypeOne' : ''"
  3216. >
  3217. <div class="workImg" v-if="w.type == 0">
  3218. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3219. <img
  3220. :src="w.works"
  3221. @click="previewImg(w.works)"
  3222. alt
  3223. />
  3224. <div
  3225. class="answerScore"
  3226. v-if="w.score"
  3227. @click.stop="openScore(w)"
  3228. :class="{
  3229. rightW:
  3230. w.userid == userid ||
  3231. tType == 1 ||
  3232. tType == 4 ||
  3233. w.ateacher == userid,
  3234. }"
  3235. >
  3236. {{ JSON.parse(w.score).wScore }}分
  3237. </div>
  3238. <div
  3239. class="answerScore"
  3240. @click.stop="openScore(w)"
  3241. v-else-if="courseDetail.userid == userid"
  3242. :class="{
  3243. rightW:
  3244. w.userid == userid ||
  3245. tType == 1 ||
  3246. tType == 4 ||
  3247. w.ateacher == userid,
  3248. }"
  3249. >
  3250. 评分
  3251. </div>
  3252. <img
  3253. class="deleteImg"
  3254. src="../assets/deleteworks.png"
  3255. v-if="
  3256. w.userid == userid || tType == 1 || tType == 4
  3257. "
  3258. @click.stop="deleteWorks(w.wid)"
  3259. alt
  3260. />
  3261. </div>
  3262. <div
  3263. class="workImg"
  3264. style="cursor: pointer"
  3265. v-if="w.type == 1"
  3266. >
  3267. <img :src="word" @click="openFile(w.works)" alt />
  3268. <!-- @click="openFile(w.works)" -->
  3269. <div
  3270. class="answerScore"
  3271. v-if="w.score"
  3272. @click.stop="openScore(w)"
  3273. :class="{
  3274. rightW:
  3275. w.userid == userid ||
  3276. tType == 1 ||
  3277. tType == 4 ||
  3278. w.ateacher == userid,
  3279. }"
  3280. >
  3281. {{ JSON.parse(w.score).wScore }}分
  3282. </div>
  3283. <div
  3284. class="answerScore"
  3285. @click.stop="openScore(w)"
  3286. v-else-if="courseDetail.userid == userid"
  3287. :class="{
  3288. rightW:
  3289. w.userid == userid ||
  3290. tType == 1 ||
  3291. tType == 4 ||
  3292. w.ateacher == userid,
  3293. }"
  3294. >
  3295. 评分
  3296. </div>
  3297. <img
  3298. class="deleteImg"
  3299. src="../assets/deleteworks.png"
  3300. v-if="
  3301. w.userid == userid || tType == 1 || tType == 4
  3302. "
  3303. @click.stop="deleteWorks(w.wid)"
  3304. alt
  3305. />
  3306. </div>
  3307. <div class="workImg" v-if="w.type == 3">
  3308. <img
  3309. style="cursor: pointer"
  3310. :src="video"
  3311. @click="openVideo(w)"
  3312. alt
  3313. />
  3314. <!-- @click="openVideo(w.works)" -->
  3315. <div
  3316. class="answerScore"
  3317. v-if="w.score"
  3318. @click.stop="openScore(w)"
  3319. :class="{
  3320. rightW:
  3321. w.userid == userid ||
  3322. tType == 1 ||
  3323. tType == 4 ||
  3324. w.ateacher == userid,
  3325. }"
  3326. >
  3327. {{ JSON.parse(w.score).wScore }}分
  3328. </div>
  3329. <div
  3330. class="answerScore"
  3331. @click.stop="openScore(w)"
  3332. v-else-if="courseDetail.userid == userid"
  3333. :class="{
  3334. rightW:
  3335. w.userid == userid ||
  3336. tType == 1 ||
  3337. tType == 4 ||
  3338. w.ateacher == userid,
  3339. }"
  3340. >
  3341. 评分
  3342. </div>
  3343. <img
  3344. class="deleteImg"
  3345. src="../assets/deleteworks.png"
  3346. v-if="
  3347. w.userid == userid || tType == 1 || tType == 4
  3348. "
  3349. @click.stop="deleteWorks(w.wid)"
  3350. alt
  3351. />
  3352. </div>
  3353. <div class="comment" style="min-width: 200px">
  3354. <div class="worksName">
  3355. <div
  3356. style="cursor: pointer"
  3357. @click="
  3358. openSname(w.sName, w.wid, toolIndex, w.userid)
  3359. "
  3360. >
  3361. {{ w.sName }}
  3362. </div>
  3363. </div>
  3364. <div class="commentList">
  3365. <div class="commentList">
  3366. <div
  3367. class="commentImg"
  3368. @click="
  3369. isLikes(w.wid, userid, 1, null, w.isLikes)
  3370. "
  3371. >
  3372. <img
  3373. :src="w.isLikes == true ? likes : noLikes"
  3374. alt=""
  3375. />
  3376. </div>
  3377. <div>{{ w.likesCount }}</div>
  3378. </div>
  3379. <div class="commentList" style="margin-right: 15px">
  3380. <div
  3381. class="commentImg"
  3382. @click="commentOther(w, toolIndex, wIndex)"
  3383. >
  3384. <img
  3385. src="../assets/icon/comment/comment.png"
  3386. alt=""
  3387. />
  3388. </div>
  3389. <div>{{ w.commentCount }}</div>
  3390. </div>
  3391. </div>
  3392. </div>
  3393. </div>
  3394. </div>
  3395. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3396. 未提交
  3397. </div>
  3398. <div
  3399. class="noWorksS"
  3400. v-if="noWorksS && noWorksS[toolIndex].length"
  3401. >
  3402. <div
  3403. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3404. :key="sIndex"
  3405. class="noWorksName"
  3406. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3407. >
  3408. {{ s.student }}
  3409. </div>
  3410. </div>
  3411. </div>
  3412. <div
  3413. v-if="
  3414. tType &&
  3415. ((tType == 2 && sIsOpen == true) ||
  3416. tType == 1 ||
  3417. tType == 4) &&
  3418. tool.tool.indexOf(4) != -1 &&
  3419. (tool.askJson[0].answer ||
  3420. tool.askJson[0].answer === 0) &&
  3421. checkJson[toolIndex].length
  3422. "
  3423. class="xuan_right_box"
  3424. >
  3425. <div
  3426. class="tool_right_box"
  3427. v-for="(item, index) in tool.askJson"
  3428. :key="index"
  3429. >
  3430. <div style="width: calc(100% - 30px);">
  3431. <el-tooltip
  3432. effect="light"
  3433. :content="index + 1 + '、' + item.askstitle"
  3434. placement="top"
  3435. popper-class="text_tooltip"
  3436. >
  3437. <div
  3438. style="
  3439. width: calc(100% - 130px);
  3440. display: block;
  3441. white-space: nowrap;
  3442. overflow: hidden;
  3443. text-overflow: ellipsis;
  3444. word-break: break-word;
  3445. cursor: pointer;
  3446. "
  3447. >
  3448. {{ index + 1 + "、" + item.askstitle }}
  3449. </div>
  3450. </el-tooltip>
  3451. </div>
  3452. <div class="right_box_xuan">
  3453. <span>正确率</span>
  3454. <span>{{
  3455. (checkJson[toolIndex][index].right
  3456. ? checkJson[toolIndex][index].right
  3457. : 0) + "%"
  3458. }}</span>
  3459. </div>
  3460. </div>
  3461. </div>
  3462. <div
  3463. class="xuan_right_box"
  3464. style="background: unset; padding: 0 10px"
  3465. v-if="
  3466. tType &&
  3467. ((tType == 2 && sIsOpen == true) ||
  3468. tType == 1 ||
  3469. tType == 4) &&
  3470. tool.tool.indexOf(4) != -1
  3471. "
  3472. >
  3473. <AskStatic
  3474. v-if="
  3475. worksStudent.length &&
  3476. worksStudent[toolIndex].length > 0
  3477. "
  3478. :askJSON="tool"
  3479. :checkJson="checkJson[toolIndex]"
  3480. ></AskStatic>
  3481. </div>
  3482. <div
  3483. v-if="
  3484. tType &&
  3485. ((tType == 2 && sIsOpen == true) ||
  3486. tType == 1 ||
  3487. tType == 4) &&
  3488. tool.tool.indexOf(4) != -1
  3489. "
  3490. class="worksBox"
  3491. >
  3492. <div
  3493. class="zuoyeYulan"
  3494. v-if="
  3495. worksStudent.length &&
  3496. worksStudent[toolIndex].length > 0
  3497. "
  3498. >
  3499. <div class="worksTop">
  3500. <div>作业预览</div>
  3501. <div
  3502. class="corOpen"
  3503. @click="contract(toolIndex)"
  3504. v-if="
  3505. worksStudent[toolIndex].length > 6 &&
  3506. isCloseList[toolIndex].isClose == 0
  3507. "
  3508. >
  3509. 折叠
  3510. </div>
  3511. <div
  3512. class="corOpen"
  3513. @click="contract(toolIndex)"
  3514. v-if="isCloseList[toolIndex].isClose == 1"
  3515. >
  3516. 展开
  3517. </div>
  3518. </div>
  3519. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3520. </div>
  3521. <div>
  3522. <div
  3523. class="worksDetailBox"
  3524. v-if="
  3525. worksStudent.length &&
  3526. worksStudent[toolIndex].length > 0
  3527. "
  3528. >
  3529. <div
  3530. v-for="(w, wIndex) in isCloseList[toolIndex]
  3531. .isClose == 0
  3532. ? worksStudent[toolIndex]
  3533. : worksStudent[toolIndex].slice(0, 6)"
  3534. :key="wIndex"
  3535. class="isWorksName2"
  3536. @click="
  3537. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3538. "
  3539. >
  3540. {{ w.sName }}
  3541. <img
  3542. class="deleteImg deleteImg2"
  3543. src="../assets/deleteworks.png"
  3544. v-if="
  3545. w.userid == userid || tType == 1 || tType == 4
  3546. "
  3547. @click.stop="deleteWorks(w.wid)"
  3548. alt
  3549. />
  3550. </div>
  3551. <!-- <div class="works" style="
  3552. width: 200px;
  3553. height: 140px;
  3554. border-radius: 10px;
  3555. box-shadow: 0 0 6px 1px #dfdada;
  3556. overflow: hidden;
  3557. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3558. <div class="workImg">
  3559. <img src="../assets/icon/works/noImg.png" @click="
  3560. openTools(
  3561. 4,
  3562. toolIndex,
  3563. taskCount,
  3564. w.works,
  3565. w.sName
  3566. )
  3567. " alt />
  3568. </div>
  3569. <div class="worksName">
  3570. <div>{{ w.sName }}</div>
  3571. <div>{{ w.time }}</div>
  3572. </div>
  3573. </div> -->
  3574. </div>
  3575. </div>
  3576. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3577. 未提交
  3578. </div>
  3579. <div
  3580. class="noWorksS"
  3581. v-if="noWorksS && noWorksS[toolIndex].length"
  3582. >
  3583. <div
  3584. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3585. :key="sIndex"
  3586. class="noWorksName"
  3587. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3588. >
  3589. {{ s.student }}
  3590. </div>
  3591. </div>
  3592. </div>
  3593. <div
  3594. v-if="
  3595. tType &&
  3596. ((tType == 2 && sIsOpen == true) ||
  3597. tType == 1 ||
  3598. tType == 4) &&
  3599. tool.tool.indexOf(45) != -1 &&
  3600. (tool.testJson.testJson[0].answer ||
  3601. tool.testJson.testJson[0].answer === 0) &&
  3602. checkJson[toolIndex].length
  3603. "
  3604. class="xuan_right_box"
  3605. >
  3606. <div
  3607. class="tool_right_box"
  3608. v-for="(item, index) in tool.testJson.testJson"
  3609. :key="index"
  3610. >
  3611. <div class="right_box_xuan" style="margin-right: 10px">
  3612. <span>正确率</span>
  3613. <span>{{
  3614. (checkJson[toolIndex][index].right
  3615. ? checkJson[toolIndex][index].right
  3616. : 0) + "%"
  3617. }}</span>
  3618. </div>
  3619. <div style="width: calc(100% - 30px);">
  3620. <el-tooltip
  3621. effect="light"
  3622. :content="index + 1 + '、' + item.teststitle"
  3623. placement="top"
  3624. popper-class="text_tooltip"
  3625. >
  3626. <div
  3627. style="
  3628. width: calc(100% - 130px);
  3629. display: block;
  3630. white-space: nowrap;
  3631. overflow: hidden;
  3632. text-overflow: ellipsis;
  3633. word-break: break-word;
  3634. cursor: pointer;
  3635. "
  3636. >
  3637. {{ index + 1 + "、" + item.teststitle }}
  3638. </div>
  3639. </el-tooltip>
  3640. </div>
  3641. </div>
  3642. </div>
  3643. <div
  3644. class="xuan_right_box"
  3645. style="background: unset; padding: 0 10px; width: 91.5%"
  3646. v-if="
  3647. tType &&
  3648. ((tType == 2 && sIsOpen == true) ||
  3649. tType == 1 ||
  3650. tType == 4) &&
  3651. tool.tool.indexOf(45) != -1
  3652. "
  3653. >
  3654. <AskStatic2
  3655. v-if="
  3656. worksStudent.length &&
  3657. worksStudent[toolIndex].length > 0
  3658. "
  3659. :askJSON="tool"
  3660. :checkJson="checkJson[toolIndex]"
  3661. ></AskStatic2>
  3662. </div>
  3663. <div
  3664. v-if="
  3665. tType &&
  3666. ((tType == 2 && sIsOpen == true) ||
  3667. tType == 1 ||
  3668. tType == 4) &&
  3669. tool.tool.indexOf(45) != -1
  3670. "
  3671. class="worksBox"
  3672. >
  3673. <div
  3674. class="zuoyeYulan"
  3675. v-if="
  3676. worksStudent.length &&
  3677. worksStudent[toolIndex].length > 0
  3678. "
  3679. >
  3680. <div class="worksTop">
  3681. <div>作业预览</div>
  3682. <div
  3683. class="corOpen"
  3684. @click="contract(toolIndex)"
  3685. v-if="
  3686. worksStudent[toolIndex].length > 6 &&
  3687. isCloseList[toolIndex].isClose == 0
  3688. "
  3689. >
  3690. 折叠
  3691. </div>
  3692. <div
  3693. class="corOpen"
  3694. @click="contract(toolIndex)"
  3695. v-if="isCloseList[toolIndex].isClose == 1"
  3696. >
  3697. 展开
  3698. </div>
  3699. </div>
  3700. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3701. </div>
  3702. <div>
  3703. <div
  3704. class="worksDetailBox"
  3705. v-if="
  3706. worksStudent.length &&
  3707. worksStudent[toolIndex].length > 0
  3708. "
  3709. >
  3710. <div
  3711. v-for="(w, wIndex) in isCloseList[toolIndex]
  3712. .isClose == 0
  3713. ? worksStudent[toolIndex]
  3714. : worksStudent[toolIndex].slice(0, 6)"
  3715. :key="wIndex"
  3716. class="isWorksName2"
  3717. @click="
  3718. openTools(
  3719. 45,
  3720. toolIndex,
  3721. taskCount,
  3722. w.works,
  3723. w.sName
  3724. )
  3725. "
  3726. >
  3727. {{ w.sName }}
  3728. <img
  3729. class="deleteImg deleteImg2"
  3730. src="../assets/deleteworks.png"
  3731. v-if="
  3732. w.userid == userid || tType == 1 || tType == 4
  3733. "
  3734. @click.stop="deleteWorks(w.wid)"
  3735. alt
  3736. />
  3737. </div>
  3738. </div>
  3739. </div>
  3740. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3741. 未提交
  3742. </div>
  3743. <div
  3744. class="noWorksS"
  3745. v-if="noWorksS && noWorksS[toolIndex].length"
  3746. >
  3747. <div
  3748. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3749. :key="sIndex"
  3750. class="noWorksName"
  3751. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  3752. >
  3753. {{ s.student }}
  3754. </div>
  3755. </div>
  3756. </div>
  3757. <div
  3758. v-if="
  3759. tType &&
  3760. ((tType == 2 && sIsOpen == true) ||
  3761. tType == 1 ||
  3762. tType == 4) &&
  3763. tool.tool.indexOf(69) != -1
  3764. "
  3765. class="worksBox"
  3766. >
  3767. <div
  3768. class="zuoyeYulan"
  3769. v-if="
  3770. worksStudent.length &&
  3771. worksStudent[toolIndex].length > 0
  3772. "
  3773. >
  3774. <div class="worksTop">
  3775. <div>作业预览</div>
  3776. <div
  3777. class="corOpen"
  3778. @click="contract(toolIndex)"
  3779. v-if="
  3780. worksStudent[toolIndex].length > 6 &&
  3781. isCloseList[toolIndex].isClose == 0
  3782. "
  3783. >
  3784. 折叠
  3785. </div>
  3786. <div
  3787. class="corOpen"
  3788. @click="contract(toolIndex)"
  3789. v-if="isCloseList[toolIndex].isClose == 1"
  3790. >
  3791. 展开
  3792. </div>
  3793. </div>
  3794. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3795. </div>
  3796. <div>
  3797. <div
  3798. class="worksDetailBox"
  3799. v-if="
  3800. worksStudent.length &&
  3801. worksStudent[toolIndex].length > 0
  3802. "
  3803. >
  3804. <div
  3805. v-for="(w, wIndex) in isCloseList[toolIndex]
  3806. .isClose == 0
  3807. ? worksStudent[toolIndex]
  3808. : worksStudent[toolIndex].slice(0, 6)"
  3809. :key="wIndex"
  3810. class="isWorksName2"
  3811. @click="
  3812. openTools(
  3813. 69,
  3814. toolIndex,
  3815. taskCount,
  3816. w.works,
  3817. w.sName,
  3818. w.wid
  3819. )
  3820. "
  3821. >
  3822. {{ w.sName }}
  3823. <img
  3824. class="deleteImg deleteImg2"
  3825. src="../assets/deleteworks.png"
  3826. v-if="
  3827. w.userid == userid || tType == 1 || tType == 4
  3828. "
  3829. @click.stop="deleteWorks(w.wid)"
  3830. alt
  3831. />
  3832. </div>
  3833. </div>
  3834. </div>
  3835. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3836. 未提交
  3837. </div>
  3838. <div
  3839. class="noWorksS"
  3840. v-if="noWorksS && noWorksS[toolIndex].length"
  3841. >
  3842. <div
  3843. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3844. :key="sIndex"
  3845. class="noWorksName"
  3846. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  3847. >
  3848. {{ s.student }}
  3849. </div>
  3850. </div>
  3851. </div>
  3852. <div
  3853. v-if="
  3854. tType &&
  3855. ((tType == 2 && sIsOpen == true) ||
  3856. tType == 1 ||
  3857. tType == 4) &&
  3858. tool.tool.indexOf(15) != -1
  3859. "
  3860. class="worksBox"
  3861. >
  3862. <div
  3863. class="zuoyeYulan"
  3864. v-if="
  3865. worksStudent.length &&
  3866. worksStudent[toolIndex].length > 0
  3867. "
  3868. >
  3869. <div class="worksTop">
  3870. <div>作业预览</div>
  3871. <div
  3872. class="corOpen"
  3873. @click="contract(toolIndex)"
  3874. v-if="
  3875. worksStudent[toolIndex].length > 6 &&
  3876. isCloseList[toolIndex].isClose == 0
  3877. "
  3878. >
  3879. 折叠
  3880. </div>
  3881. <div
  3882. class="corOpen"
  3883. @click="contract(toolIndex)"
  3884. v-if="isCloseList[toolIndex].isClose == 1"
  3885. >
  3886. 展开
  3887. </div>
  3888. </div>
  3889. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3890. </div>
  3891. <div
  3892. class="group_workBox"
  3893. v-for="(g, gindex) in courseGroup.group"
  3894. :key="gindex"
  3895. >
  3896. <div class="group_box">
  3897. <div class="group_title">
  3898. <el-tooltip
  3899. class="item"
  3900. effect="light"
  3901. :content="g.name"
  3902. placement="top"
  3903. >
  3904. <div class="group_name">{{ g.name }}</div>
  3905. </el-tooltip>
  3906. </div>
  3907. <div
  3908. class="group_work"
  3909. v-if="
  3910. g.works &&
  3911. g.works.length &&
  3912. g.works[toolIndex].length
  3913. "
  3914. >
  3915. <div
  3916. class="works"
  3917. v-for="(w, wIndex) in g.works[toolIndex]"
  3918. :key="wIndex"
  3919. >
  3920. <div
  3921. class="workImg"
  3922. style="
  3923. border-radius: 15px;
  3924. box-shadow: #eee 0px 0px 5px 5px;
  3925. "
  3926. >
  3927. <div
  3928. class="answerBg"
  3929. style="border-radius: 15px 15px 0 0"
  3930. @click="
  3931. commentOther(w, toolIndex, wIndex, null, g.id)
  3932. "
  3933. >
  3934. <div class="answerContent">
  3935. {{ JSON.parse(w.works)[0].answer }}
  3936. </div>
  3937. <div
  3938. class="answerScore"
  3939. v-if="w.score"
  3940. @click.stop="openScore(w)"
  3941. :class="{
  3942. rightW:
  3943. w.userid == userid ||
  3944. tType == 1 ||
  3945. tType == 4,
  3946. }"
  3947. >
  3948. {{ JSON.parse(w.score).wScore }}分
  3949. </div>
  3950. <div
  3951. class="answerScore"
  3952. @click.stop="openScore(w)"
  3953. v-else-if="courseDetail.userid == userid"
  3954. :class="{
  3955. rightW:
  3956. w.userid == userid ||
  3957. tType == 1 ||
  3958. tType == 4,
  3959. }"
  3960. >
  3961. 评分
  3962. </div>
  3963. <img
  3964. class="deleteImg"
  3965. src="../assets/deleteworks.png"
  3966. v-if="
  3967. w.userid == userid ||
  3968. tType == 1 ||
  3969. tType == 4
  3970. "
  3971. @click.stop="deleteWorks(w.wid)"
  3972. alt
  3973. />
  3974. </div>
  3975. <div class="comment">
  3976. <div class="worksName">
  3977. <div>{{ w.sName }}</div>
  3978. </div>
  3979. <div class="commentList">
  3980. <div
  3981. class="commentImg"
  3982. @click="
  3983. isLikes(w.wid, userid, 1, null, w.isLikes)
  3984. "
  3985. >
  3986. <img
  3987. :src="w.isLikes == true ? likes : noLikes"
  3988. alt=""
  3989. />
  3990. </div>
  3991. <div>{{ w.likesCount }}</div>
  3992. </div>
  3993. <div
  3994. class="commentList"
  3995. style="margin-right: 15px"
  3996. >
  3997. <div
  3998. class="commentImg"
  3999. @click="
  4000. commentOther(
  4001. w,
  4002. toolIndex,
  4003. wIndex,
  4004. null,
  4005. g.id
  4006. )
  4007. "
  4008. >
  4009. <img
  4010. src="../assets/icon/comment/comment.png"
  4011. alt=""
  4012. />
  4013. </div>
  4014. <div>{{ w.commentCount }}</div>
  4015. </div>
  4016. </div>
  4017. </div>
  4018. </div>
  4019. </div>
  4020. <div class="group_work" v-else>暂无提交作业</div>
  4021. </div>
  4022. </div>
  4023. <div
  4024. class="worksDetailBox"
  4025. v-if="
  4026. worksStudent.length &&
  4027. worksStudent[toolIndex].length > 0
  4028. "
  4029. >
  4030. <div
  4031. class="works"
  4032. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4033. 0
  4034. ? worksStudent[toolIndex]
  4035. : worksStudent[toolIndex].slice(0, 6)"
  4036. :key="wIndex"
  4037. >
  4038. <div
  4039. class="workImg"
  4040. style="
  4041. border-radius: 15px;
  4042. box-shadow: #eee 0px 0px 5px 5px;
  4043. "
  4044. >
  4045. <!-- <img
  4046. src="../assets/icon/works/noImg.png"
  4047. @click="openTools(15, toolIndex, taskCount, w.works)"
  4048. alt=""
  4049. />-->
  4050. <div
  4051. class="answerBg"
  4052. style="border-radius: 15px 15px 0 0"
  4053. @click="commentOther(w, toolIndex, wIndex)"
  4054. >
  4055. <!-- <div>{{ w.sName }}</div> -->
  4056. <div class="answerContent">
  4057. {{ JSON.parse(w.works)[0].answer }}
  4058. </div>
  4059. <div
  4060. class="answerScore"
  4061. v-if="w.score"
  4062. @click.stop="openScore(w)"
  4063. :class="{
  4064. rightW:
  4065. w.userid == userid ||
  4066. tType == 1 ||
  4067. tType == 4,
  4068. }"
  4069. >
  4070. {{ JSON.parse(w.score).wScore }}分
  4071. </div>
  4072. <div
  4073. class="answerScore"
  4074. @click.stop="openScore(w)"
  4075. v-else-if="courseDetail.userid == userid"
  4076. :class="{
  4077. rightW:
  4078. w.userid == userid ||
  4079. tType == 1 ||
  4080. tType == 4,
  4081. }"
  4082. >
  4083. 评分
  4084. </div>
  4085. <img
  4086. class="deleteImg"
  4087. src="../assets/deleteworks.png"
  4088. v-if="
  4089. w.userid == userid || tType == 1 || tType == 4
  4090. "
  4091. @click.stop="deleteWorks(w.wid)"
  4092. alt
  4093. />
  4094. </div>
  4095. <div class="comment">
  4096. <div class="worksName">
  4097. <div>{{ w.sName }}</div>
  4098. </div>
  4099. <div class="commentList">
  4100. <div
  4101. class="commentImg"
  4102. @click="
  4103. isLikes(w.wid, userid, 1, null, w.isLikes)
  4104. "
  4105. >
  4106. <img
  4107. :src="w.isLikes == true ? likes : noLikes"
  4108. alt=""
  4109. />
  4110. </div>
  4111. <div>{{ w.likesCount }}</div>
  4112. </div>
  4113. <div class="commentList" style="margin-right: 15px">
  4114. <div
  4115. class="commentImg"
  4116. @click="commentOther(w, toolIndex, wIndex)"
  4117. >
  4118. <img
  4119. src="../assets/icon/comment/comment.png"
  4120. alt=""
  4121. />
  4122. </div>
  4123. <div>{{ w.commentCount }}</div>
  4124. </div>
  4125. </div>
  4126. </div>
  4127. </div>
  4128. </div>
  4129. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4130. 未提交
  4131. </div>
  4132. <div
  4133. class="noWorksS"
  4134. v-if="noWorksS && noWorksS[toolIndex].length"
  4135. >
  4136. <div
  4137. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4138. :key="sIndex"
  4139. class="noWorksName"
  4140. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4141. >
  4142. {{ s.student }}
  4143. </div>
  4144. </div>
  4145. </div>
  4146. <div
  4147. v-if="
  4148. tType &&
  4149. ((tType == 2 && sIsOpen == true) ||
  4150. tType == 1 ||
  4151. tType == 4) &&
  4152. tool.tool.indexOf(1) != -1
  4153. "
  4154. class="worksBox"
  4155. >
  4156. <div
  4157. class="zuoyeYulan"
  4158. v-if="
  4159. worksStudent.length &&
  4160. worksStudent[toolIndex].length > 0
  4161. "
  4162. >
  4163. <div class="worksTop">
  4164. <div>作业预览</div>
  4165. <div
  4166. class="corOpen"
  4167. @click="contract(toolIndex)"
  4168. v-if="
  4169. worksStudent[toolIndex].length > 6 &&
  4170. isCloseList[toolIndex].isClose == 0
  4171. "
  4172. >
  4173. 折叠
  4174. </div>
  4175. <div
  4176. class="corOpen"
  4177. @click="contract(toolIndex)"
  4178. v-if="isCloseList[toolIndex].isClose == 1"
  4179. >
  4180. 展开
  4181. </div>
  4182. </div>
  4183. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4184. </div>
  4185. <div
  4186. class="group_workBox"
  4187. v-for="(g, gindex) in courseGroup.group"
  4188. :key="gindex"
  4189. >
  4190. <div class="group_box">
  4191. <div class="group_title">
  4192. <el-tooltip
  4193. class="item"
  4194. effect="light"
  4195. :content="g.name"
  4196. placement="top"
  4197. >
  4198. <div class="group_name">{{ g.name }}</div>
  4199. </el-tooltip>
  4200. </div>
  4201. <div
  4202. class="group_work"
  4203. v-if="
  4204. g.works &&
  4205. g.works.length &&
  4206. g.works[toolIndex].length
  4207. "
  4208. >
  4209. <div
  4210. class="works"
  4211. style="
  4212. width: 200px;
  4213. height: 140px;
  4214. margin: 10px 10px 10px 0;
  4215. border-radius: 15px;
  4216. box-shadow: 0 0 6px 1px #dfdada;
  4217. "
  4218. v-for="(w, wIndex) in g.works[toolIndex]"
  4219. :key="wIndex"
  4220. :class="w.type == 1 ? 'isTypeOne' : ''"
  4221. >
  4222. <div class="workImg">
  4223. <img
  4224. :src="w.works"
  4225. @click="previewImg(w.works)"
  4226. alt
  4227. />
  4228. <div
  4229. class="answerScore"
  4230. v-if="w.score"
  4231. @click.stop="openScore(w)"
  4232. :class="{
  4233. rightW:
  4234. w.userid == userid ||
  4235. tType == 1 ||
  4236. tType == 4,
  4237. }"
  4238. >
  4239. {{ JSON.parse(w.score).wScore }}分
  4240. </div>
  4241. <div
  4242. class="answerScore"
  4243. @click.stop="openScore(w)"
  4244. v-else-if="courseDetail.userid == userid"
  4245. :class="{
  4246. rightW:
  4247. w.userid == userid ||
  4248. tType == 1 ||
  4249. tType == 4,
  4250. }"
  4251. >
  4252. 评分
  4253. </div>
  4254. <img
  4255. class="deleteImg"
  4256. src="../assets/deleteworks.png"
  4257. v-if="
  4258. w.userid == userid || tType == 1 || tType == 4
  4259. "
  4260. @click.stop="deleteWorks(w.wid)"
  4261. alt
  4262. />
  4263. </div>
  4264. <div class="comment" style="min-width: 200px">
  4265. <div class="worksName">
  4266. <div>{{ w.sName }}</div>
  4267. </div>
  4268. <div class="commentList">
  4269. <div class="commentList">
  4270. <div
  4271. class="commentImg"
  4272. @click="
  4273. isLikes(w.wid, userid, 1, null, w.isLikes)
  4274. "
  4275. >
  4276. <img
  4277. :src="w.isLikes == true ? likes : noLikes"
  4278. alt=""
  4279. />
  4280. </div>
  4281. <div>{{ w.likesCount }}</div>
  4282. </div>
  4283. <div
  4284. class="commentList"
  4285. style="margin-right: 15px"
  4286. >
  4287. <div
  4288. class="commentImg"
  4289. @click="
  4290. commentOther(
  4291. w,
  4292. toolIndex,
  4293. wIndex,
  4294. null,
  4295. g.id
  4296. )
  4297. "
  4298. >
  4299. <img
  4300. src="../assets/icon/comment/comment.png"
  4301. alt=""
  4302. />
  4303. </div>
  4304. <div>{{ w.commentCount }}</div>
  4305. </div>
  4306. </div>
  4307. </div>
  4308. </div>
  4309. </div>
  4310. <div class="group_work" v-else>暂无提交作业</div>
  4311. </div>
  4312. </div>
  4313. <div
  4314. class="worksDetailBox"
  4315. v-if="
  4316. worksStudent.length &&
  4317. worksStudent[toolIndex].length > 0
  4318. "
  4319. >
  4320. <div
  4321. class="works"
  4322. style="
  4323. width: 200px;
  4324. height: 140px;
  4325. margin: 10px 10px 10px 0;
  4326. border-radius: 15px;
  4327. box-shadow: 0 0 6px 1px #dfdada;
  4328. "
  4329. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4330. 0
  4331. ? worksStudent[toolIndex]
  4332. : worksStudent[toolIndex].slice(0, 6)"
  4333. :key="wIndex"
  4334. >
  4335. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4336. <div class="workImg">
  4337. <img
  4338. :src="w.works"
  4339. @click="previewImg(w.works)"
  4340. alt
  4341. />
  4342. <div
  4343. class="answerScore"
  4344. v-if="w.score"
  4345. @click.stop="openScore(w)"
  4346. :class="{
  4347. rightW:
  4348. w.userid == userid || tType == 1 || tType == 4,
  4349. }"
  4350. >
  4351. {{ JSON.parse(w.score).wScore }}分
  4352. </div>
  4353. <div
  4354. class="answerScore"
  4355. @click.stop="openScore(w)"
  4356. v-else-if="courseDetail.userid == userid"
  4357. :class="{
  4358. rightW:
  4359. w.userid == userid || tType == 1 || tType == 4,
  4360. }"
  4361. >
  4362. 评分
  4363. </div>
  4364. <img
  4365. class="deleteImg"
  4366. src="../assets/deleteworks.png"
  4367. v-if="
  4368. w.userid == userid || tType == 1 || tType == 4
  4369. "
  4370. @click.stop="deleteWorks(w.wid)"
  4371. alt
  4372. />
  4373. </div>
  4374. <div class="comment" style="min-width: 200px">
  4375. <div class="worksName">
  4376. <div>{{ w.sName }}</div>
  4377. </div>
  4378. <div class="commentList">
  4379. <div class="commentList">
  4380. <div
  4381. class="commentImg"
  4382. @click="
  4383. isLikes(w.wid, userid, 1, null, w.isLikes)
  4384. "
  4385. >
  4386. <img
  4387. :src="w.isLikes == true ? likes : noLikes"
  4388. alt=""
  4389. />
  4390. </div>
  4391. <div>{{ w.likesCount }}</div>
  4392. </div>
  4393. <div class="commentList" style="margin-right: 15px">
  4394. <div
  4395. class="commentImg"
  4396. @click="commentOther(w, toolIndex, wIndex)"
  4397. >
  4398. <img
  4399. src="../assets/icon/comment/comment.png"
  4400. alt=""
  4401. />
  4402. </div>
  4403. <div>{{ w.commentCount }}</div>
  4404. </div>
  4405. </div>
  4406. </div>
  4407. </div>
  4408. </div>
  4409. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4410. 未提交
  4411. </div>
  4412. <div
  4413. class="noWorksS"
  4414. v-if="noWorksS && noWorksS[toolIndex].length"
  4415. >
  4416. <div
  4417. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4418. :key="sIndex"
  4419. class="noWorksName"
  4420. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4421. >
  4422. {{ s.student }}
  4423. </div>
  4424. </div>
  4425. </div>
  4426. <div
  4427. v-if="
  4428. tType &&
  4429. ((tType == 2 && sIsOpen == true) ||
  4430. tType == 1 ||
  4431. tType == 4) &&
  4432. tool.tool.indexOf(3) != -1
  4433. "
  4434. class="worksBox"
  4435. >
  4436. <div
  4437. class="zuoyeYulan"
  4438. v-if="
  4439. worksStudent.length &&
  4440. worksStudent[toolIndex].length > 0
  4441. "
  4442. >
  4443. <div class="worksTop">
  4444. <div>作业预览</div>
  4445. <div
  4446. class="corOpen"
  4447. @click="contract(toolIndex)"
  4448. v-if="
  4449. worksStudent[toolIndex].length > 6 &&
  4450. isCloseList[toolIndex].isClose == 0
  4451. "
  4452. >
  4453. 折叠
  4454. </div>
  4455. <div
  4456. class="corOpen"
  4457. @click="contract(toolIndex)"
  4458. v-if="isCloseList[toolIndex].isClose == 1"
  4459. >
  4460. 展开
  4461. </div>
  4462. </div>
  4463. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4464. </div>
  4465. <div
  4466. class="group_workBox"
  4467. v-for="(g, gindex) in courseGroup.group"
  4468. :key="gindex"
  4469. >
  4470. <div class="group_box">
  4471. <div class="group_title">
  4472. <el-tooltip
  4473. class="item"
  4474. effect="light"
  4475. :content="g.name"
  4476. placement="top"
  4477. >
  4478. <div class="group_name">{{ g.name }}</div>
  4479. </el-tooltip>
  4480. </div>
  4481. <div
  4482. class="group_work"
  4483. v-if="
  4484. g.works &&
  4485. g.works.length &&
  4486. g.works[toolIndex].length
  4487. "
  4488. >
  4489. <div
  4490. class="works"
  4491. style="
  4492. width: 200px;
  4493. height: 140px;
  4494. margin: 10px 10px 10px 0;
  4495. border-radius: 15px;
  4496. box-shadow: 0 0 6px 1px #dfdada;
  4497. "
  4498. v-for="(w, wIndex) in g.works[toolIndex]"
  4499. :key="wIndex"
  4500. :class="w.type == 1 ? 'isTypeOne' : ''"
  4501. >
  4502. <div class="workImg">
  4503. <img
  4504. :src="w.works"
  4505. @click="previewImg(w.works)"
  4506. alt
  4507. />
  4508. <div
  4509. class="answerScore"
  4510. v-if="w.score"
  4511. @click.stop="openScore(w)"
  4512. :class="{
  4513. rightW:
  4514. w.userid == userid ||
  4515. tType == 1 ||
  4516. tType == 4,
  4517. }"
  4518. >
  4519. {{ JSON.parse(w.score).wScore }}分
  4520. </div>
  4521. <div
  4522. class="answerScore"
  4523. @click.stop="openScore(w)"
  4524. v-else-if="courseDetail.userid == userid"
  4525. :class="{
  4526. rightW:
  4527. w.userid == userid ||
  4528. tType == 1 ||
  4529. tType == 4,
  4530. }"
  4531. >
  4532. 评分
  4533. </div>
  4534. <img
  4535. class="deleteImg"
  4536. src="../assets/deleteworks.png"
  4537. v-if="
  4538. w.userid == userid || tType == 1 || tType == 4
  4539. "
  4540. @click.stop="deleteWorks(w.wid)"
  4541. alt
  4542. />
  4543. </div>
  4544. <div class="comment" style="min-width: 200px">
  4545. <div class="worksName">
  4546. <div>{{ w.sName }}</div>
  4547. </div>
  4548. <div class="commentList">
  4549. <div class="commentList">
  4550. <div
  4551. class="commentImg"
  4552. @click="
  4553. isLikes(w.wid, userid, 1, null, w.isLikes)
  4554. "
  4555. >
  4556. <img
  4557. :src="w.isLikes == true ? likes : noLikes"
  4558. alt=""
  4559. />
  4560. </div>
  4561. <div>{{ w.likesCount }}</div>
  4562. </div>
  4563. <div
  4564. class="commentList"
  4565. style="margin-right: 15px"
  4566. >
  4567. <div
  4568. class="commentImg"
  4569. @click="
  4570. commentOther(
  4571. w,
  4572. toolIndex,
  4573. wIndex,
  4574. null,
  4575. g.id
  4576. )
  4577. "
  4578. >
  4579. <img
  4580. src="../assets/icon/comment/comment.png"
  4581. alt=""
  4582. />
  4583. </div>
  4584. <div>{{ w.commentCount }}</div>
  4585. </div>
  4586. </div>
  4587. </div>
  4588. </div>
  4589. </div>
  4590. <div class="group_work" v-else>暂无提交作业</div>
  4591. </div>
  4592. </div>
  4593. <div
  4594. class="worksDetailBox"
  4595. v-if="
  4596. worksStudent.length &&
  4597. worksStudent[toolIndex].length > 0
  4598. "
  4599. >
  4600. <div
  4601. class="works"
  4602. style="
  4603. width: 200px;
  4604. height: 140px;
  4605. margin: 10px 10px 10px 0;
  4606. border-radius: 15px;
  4607. box-shadow: 0 0 6px 1px #dfdada;
  4608. "
  4609. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4610. 0
  4611. ? worksStudent[toolIndex]
  4612. : worksStudent[toolIndex].slice(0, 6)"
  4613. :key="wIndex"
  4614. >
  4615. <!-- @click="previewImg(w.works)" -->
  4616. <div class="workImg">
  4617. <img
  4618. :src="w.works"
  4619. @click="previewImg(w.works)"
  4620. alt
  4621. />
  4622. <div
  4623. class="answerScore"
  4624. v-if="w.score"
  4625. @click.stop="openScore(w)"
  4626. :class="{
  4627. rightW:
  4628. w.userid == userid || tType == 1 || tType == 4,
  4629. }"
  4630. >
  4631. {{ JSON.parse(w.score).wScore }}分
  4632. </div>
  4633. <div
  4634. class="answerScore"
  4635. @click.stop="openScore(w)"
  4636. v-else-if="courseDetail.userid == userid"
  4637. :class="{
  4638. rightW:
  4639. w.userid == userid || tType == 1 || tType == 4,
  4640. }"
  4641. >
  4642. 评分
  4643. </div>
  4644. <img
  4645. class="deleteImg"
  4646. src="../assets/deleteworks.png"
  4647. v-if="
  4648. w.userid == userid || tType == 1 || tType == 4
  4649. "
  4650. @click.stop="deleteWorks(w.wid)"
  4651. alt
  4652. />
  4653. </div>
  4654. <div class="comment" style="min-width: 200px">
  4655. <div class="worksName">
  4656. <div>{{ w.sName }}</div>
  4657. </div>
  4658. <div class="commentList">
  4659. <div class="commentList">
  4660. <div
  4661. class="commentImg"
  4662. @click="
  4663. isLikes(w.wid, userid, 1, null, w.isLikes)
  4664. "
  4665. >
  4666. <img
  4667. :src="w.isLikes == true ? likes : noLikes"
  4668. alt=""
  4669. />
  4670. </div>
  4671. <div>{{ w.likesCount }}</div>
  4672. </div>
  4673. <div class="commentList" style="margin-right: 15px">
  4674. <div
  4675. class="commentImg"
  4676. @click="commentOther(w, toolIndex, wIndex)"
  4677. >
  4678. <img
  4679. src="../assets/icon/comment/comment.png"
  4680. alt=""
  4681. />
  4682. </div>
  4683. <div>{{ w.commentCount }}</div>
  4684. </div>
  4685. </div>
  4686. </div>
  4687. </div>
  4688. </div>
  4689. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4690. 未提交
  4691. </div>
  4692. <div
  4693. class="noWorksS"
  4694. v-if="noWorksS && noWorksS[toolIndex].length"
  4695. >
  4696. <div
  4697. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4698. :key="sIndex"
  4699. class="noWorksName"
  4700. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4701. >
  4702. {{ s.student }}
  4703. </div>
  4704. </div>
  4705. </div>
  4706. <div
  4707. v-if="
  4708. tType &&
  4709. ((tType == 2 && sIsOpen == true) ||
  4710. tType == 1 ||
  4711. tType == 4) &&
  4712. tool.tool.indexOf(6) != -1
  4713. "
  4714. class="worksBox"
  4715. >
  4716. <div
  4717. class="zuoyeYulan"
  4718. v-if="
  4719. worksStudent.length &&
  4720. worksStudent[toolIndex].length > 0
  4721. "
  4722. >
  4723. <div class="worksTop">
  4724. <div>作业预览</div>
  4725. <div
  4726. class="corOpen"
  4727. @click="contract(toolIndex)"
  4728. v-if="
  4729. worksStudent[toolIndex].length > 6 &&
  4730. isCloseList[toolIndex].isClose == 0
  4731. "
  4732. >
  4733. 折叠
  4734. </div>
  4735. <div
  4736. class="corOpen"
  4737. @click="contract(toolIndex)"
  4738. v-if="isCloseList[toolIndex].isClose == 1"
  4739. >
  4740. 展开
  4741. </div>
  4742. </div>
  4743. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4744. </div>
  4745. <div
  4746. class="group_workBox"
  4747. v-for="(g, gindex) in courseGroup.group"
  4748. :key="gindex"
  4749. >
  4750. <div class="group_box">
  4751. <div class="group_title">
  4752. <el-tooltip
  4753. class="item"
  4754. effect="light"
  4755. :content="g.name"
  4756. placement="top"
  4757. >
  4758. <div class="group_name">{{ g.name }}</div>
  4759. </el-tooltip>
  4760. </div>
  4761. <div
  4762. class="group_work"
  4763. v-if="
  4764. g.works &&
  4765. g.works.length &&
  4766. g.works[toolIndex].length
  4767. "
  4768. >
  4769. <div
  4770. class="works"
  4771. style="
  4772. width: 200px;
  4773. height: 140px;
  4774. margin: 10px 10px 10px 0;
  4775. border-radius: 15px;
  4776. box-shadow: 0 0 6px 1px #dfdada;
  4777. "
  4778. v-for="(w, wIndex) in g.works[toolIndex]"
  4779. :key="wIndex"
  4780. :class="w.type == 1 ? 'isTypeOne' : ''"
  4781. >
  4782. <div class="workImg">
  4783. <img
  4784. :src="w.works"
  4785. @click="previewImg(w.works)"
  4786. alt
  4787. />
  4788. <div
  4789. class="answerScore"
  4790. v-if="w.score"
  4791. @click.stop="openScore(w)"
  4792. :class="{
  4793. rightW:
  4794. w.userid == userid ||
  4795. tType == 1 ||
  4796. tType == 4,
  4797. }"
  4798. >
  4799. {{ JSON.parse(w.score).wScore }}分
  4800. </div>
  4801. <div
  4802. class="answerScore"
  4803. @click.stop="openScore(w)"
  4804. v-else-if="courseDetail.userid == userid"
  4805. :class="{
  4806. rightW:
  4807. w.userid == userid ||
  4808. tType == 1 ||
  4809. tType == 4,
  4810. }"
  4811. >
  4812. 评分
  4813. </div>
  4814. <img
  4815. class="deleteImg"
  4816. src="../assets/deleteworks.png"
  4817. v-if="
  4818. w.userid == userid || tType == 1 || tType == 4
  4819. "
  4820. @click.stop="deleteWorks(w.wid)"
  4821. alt
  4822. />
  4823. </div>
  4824. <div class="comment" style="min-width: 200px">
  4825. <div class="worksName">
  4826. <div>{{ w.sName }}</div>
  4827. </div>
  4828. <div class="commentList">
  4829. <div class="commentList">
  4830. <div
  4831. class="commentImg"
  4832. @click="
  4833. isLikes(w.wid, userid, 1, null, w.isLikes)
  4834. "
  4835. >
  4836. <img
  4837. :src="w.isLikes == true ? likes : noLikes"
  4838. alt=""
  4839. />
  4840. </div>
  4841. <div>{{ w.likesCount }}</div>
  4842. </div>
  4843. <div
  4844. class="commentList"
  4845. style="margin-right: 15px"
  4846. >
  4847. <div
  4848. class="commentImg"
  4849. @click="
  4850. commentOther(
  4851. w,
  4852. toolIndex,
  4853. wIndex,
  4854. null,
  4855. g.id
  4856. )
  4857. "
  4858. >
  4859. <img
  4860. src="../assets/icon/comment/comment.png"
  4861. alt=""
  4862. />
  4863. </div>
  4864. <div>{{ w.commentCount }}</div>
  4865. </div>
  4866. </div>
  4867. </div>
  4868. </div>
  4869. </div>
  4870. <div class="group_work" v-else>暂无提交作业</div>
  4871. </div>
  4872. </div>
  4873. <div
  4874. class="worksDetailBox"
  4875. v-if="
  4876. worksStudent.length &&
  4877. worksStudent[toolIndex].length > 0
  4878. "
  4879. >
  4880. <div
  4881. class="works"
  4882. style="
  4883. width: 200px;
  4884. height: 140px;
  4885. margin: 10px 10px 10px 0;
  4886. border-radius: 15px;
  4887. box-shadow: 0 0 6px 1px #dfdada;
  4888. "
  4889. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4890. 0
  4891. ? worksStudent[toolIndex]
  4892. : worksStudent[toolIndex].slice(0, 6)"
  4893. :key="wIndex"
  4894. >
  4895. <!-- @click="previewImg(w.works)" -->
  4896. <div class="workImg">
  4897. <img
  4898. :src="w.works"
  4899. @click="previewImg(w.works)"
  4900. alt
  4901. />
  4902. <div
  4903. class="answerScore"
  4904. v-if="w.score"
  4905. @click.stop="openScore(w)"
  4906. :class="{
  4907. rightW:
  4908. w.userid == userid || tType == 1 || tType == 4,
  4909. }"
  4910. >
  4911. {{ JSON.parse(w.score).wScore }}分
  4912. </div>
  4913. <div
  4914. class="answerScore"
  4915. @click.stop="openScore(w)"
  4916. v-else-if="courseDetail.userid == userid"
  4917. :class="{
  4918. rightW:
  4919. w.userid == userid || tType == 1 || tType == 4,
  4920. }"
  4921. >
  4922. 评分
  4923. </div>
  4924. <img
  4925. class="deleteImg"
  4926. src="../assets/deleteworks.png"
  4927. v-if="
  4928. w.userid == userid || tType == 1 || tType == 4
  4929. "
  4930. @click.stop="deleteWorks(w.wid)"
  4931. alt
  4932. />
  4933. </div>
  4934. <div class="comment" style="min-width: 200px">
  4935. <div class="worksName">
  4936. <div>{{ w.sName }}</div>
  4937. </div>
  4938. <div class="commentList">
  4939. <div class="commentList">
  4940. <div
  4941. class="commentImg"
  4942. @click="
  4943. isLikes(w.wid, userid, 1, null, w.isLikes)
  4944. "
  4945. >
  4946. <img
  4947. :src="w.isLikes == true ? likes : noLikes"
  4948. alt=""
  4949. />
  4950. </div>
  4951. <div>{{ w.likesCount }}</div>
  4952. </div>
  4953. <div class="commentList" style="margin-right: 15px">
  4954. <div
  4955. class="commentImg"
  4956. @click="commentOther(w, toolIndex, wIndex)"
  4957. >
  4958. <img
  4959. src="../assets/icon/comment/comment.png"
  4960. alt=""
  4961. />
  4962. </div>
  4963. <div>{{ w.commentCount }}</div>
  4964. </div>
  4965. </div>
  4966. </div>
  4967. </div>
  4968. </div>
  4969. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4970. 未提交
  4971. </div>
  4972. <div
  4973. class="noWorksS"
  4974. v-if="noWorksS && noWorksS[toolIndex].length"
  4975. >
  4976. <div
  4977. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4978. :key="sIndex"
  4979. class="noWorksName"
  4980. >
  4981. {{ s.student }}
  4982. </div>
  4983. </div>
  4984. </div>
  4985. <div
  4986. v-if="
  4987. tType &&
  4988. ((tType == 2 && sIsOpen == true) ||
  4989. tType == 1 ||
  4990. tType == 4) &&
  4991. tool.tool.indexOf(7) != -1
  4992. "
  4993. class="worksBox"
  4994. >
  4995. <div
  4996. class="zuoyeYulan"
  4997. v-if="
  4998. worksStudent.length &&
  4999. worksStudent[toolIndex].length > 0
  5000. "
  5001. >
  5002. <div class="worksTop">
  5003. <div>作业预览</div>
  5004. <div
  5005. class="corOpen"
  5006. @click="contract(toolIndex)"
  5007. v-if="
  5008. worksStudent[toolIndex].length > 6 &&
  5009. isCloseList[toolIndex].isClose == 0
  5010. "
  5011. >
  5012. 折叠
  5013. </div>
  5014. <div
  5015. class="corOpen"
  5016. @click="contract(toolIndex)"
  5017. v-if="isCloseList[toolIndex].isClose == 1"
  5018. >
  5019. 展开
  5020. </div>
  5021. </div>
  5022. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5023. </div>
  5024. <div
  5025. class="group_workBox"
  5026. v-for="(g, gindex) in courseGroup.group"
  5027. :key="gindex"
  5028. >
  5029. <div class="group_box">
  5030. <div class="group_title">
  5031. <el-tooltip
  5032. class="item"
  5033. effect="light"
  5034. :content="g.name"
  5035. placement="top"
  5036. >
  5037. <div class="group_name">{{ g.name }}</div>
  5038. </el-tooltip>
  5039. </div>
  5040. <div
  5041. class="group_work"
  5042. v-if="
  5043. g.works &&
  5044. g.works.length &&
  5045. g.works[toolIndex].length
  5046. "
  5047. >
  5048. <div
  5049. class="works"
  5050. style="
  5051. width: 200px;
  5052. height: 140px;
  5053. margin: 10px 10px 10px 0;
  5054. border-radius: 15px;
  5055. box-shadow: 0 0 6px 1px #dfdada;
  5056. "
  5057. v-for="(w, wIndex) in g.works[toolIndex]"
  5058. :key="wIndex"
  5059. :class="w.type == 1 ? 'isTypeOne' : ''"
  5060. >
  5061. <div class="workImg">
  5062. <img
  5063. :src="w.works"
  5064. @click="previewImg(w.works)"
  5065. alt
  5066. />
  5067. <div
  5068. class="answerScore"
  5069. v-if="w.score"
  5070. @click.stop="openScore(w)"
  5071. :class="{
  5072. rightW:
  5073. w.userid == userid ||
  5074. tType == 1 ||
  5075. tType == 4,
  5076. }"
  5077. >
  5078. {{ JSON.parse(w.score).wScore }}分
  5079. </div>
  5080. <div
  5081. class="answerScore"
  5082. @click.stop="openScore(w)"
  5083. v-else-if="courseDetail.userid == userid"
  5084. :class="{
  5085. rightW:
  5086. w.userid == userid ||
  5087. tType == 1 ||
  5088. tType == 4,
  5089. }"
  5090. >
  5091. 评分
  5092. </div>
  5093. <img
  5094. class="deleteImg"
  5095. src="../assets/deleteworks.png"
  5096. v-if="
  5097. w.userid == userid || tType == 1 || tType == 4
  5098. "
  5099. @click.stop="deleteWorks(w.wid)"
  5100. alt
  5101. />
  5102. </div>
  5103. <div class="comment" style="min-width: 200px">
  5104. <div class="worksName">
  5105. <div>{{ w.sName }}</div>
  5106. </div>
  5107. <div class="commentList">
  5108. <div class="commentList">
  5109. <div
  5110. class="commentImg"
  5111. @click="
  5112. isLikes(w.wid, userid, 1, null, w.isLikes)
  5113. "
  5114. >
  5115. <img
  5116. :src="w.isLikes == true ? likes : noLikes"
  5117. alt=""
  5118. />
  5119. </div>
  5120. <div>{{ w.likesCount }}</div>
  5121. </div>
  5122. <div
  5123. class="commentList"
  5124. style="margin-right: 15px"
  5125. >
  5126. <div
  5127. class="commentImg"
  5128. @click="
  5129. commentOther(
  5130. w,
  5131. toolIndex,
  5132. wIndex,
  5133. null,
  5134. g.id
  5135. )
  5136. "
  5137. >
  5138. <img
  5139. src="../assets/icon/comment/comment.png"
  5140. alt=""
  5141. />
  5142. </div>
  5143. <div>{{ w.commentCount }}</div>
  5144. </div>
  5145. </div>
  5146. </div>
  5147. </div>
  5148. </div>
  5149. <div class="group_work" v-else>暂无提交作业</div>
  5150. </div>
  5151. </div>
  5152. <div
  5153. class="worksDetailBox"
  5154. v-if="
  5155. worksStudent.length &&
  5156. worksStudent[toolIndex].length > 0
  5157. "
  5158. >
  5159. <div
  5160. class="works"
  5161. style="
  5162. width: 200px;
  5163. height: 140px;
  5164. margin: 10px 10px 10px 0;
  5165. border-radius: 15px;
  5166. box-shadow: 0 0 6px 1px #dfdada;
  5167. "
  5168. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5169. 0
  5170. ? worksStudent[toolIndex]
  5171. : worksStudent[toolIndex].slice(0, 6)"
  5172. :key="wIndex"
  5173. >
  5174. <!-- @click="previewImg(w.works)" -->
  5175. <div class="workImg">
  5176. <img
  5177. :src="w.works"
  5178. @click="previewImg(w.works)"
  5179. alt
  5180. />
  5181. <div
  5182. class="answerScore"
  5183. v-if="w.score"
  5184. @click.stop="openScore(w)"
  5185. :class="{
  5186. rightW:
  5187. w.userid == userid || tType == 1 || tType == 4,
  5188. }"
  5189. >
  5190. {{ JSON.parse(w.score).wScore }}分
  5191. </div>
  5192. <div
  5193. class="answerScore"
  5194. @click.stop="openScore(w)"
  5195. v-else-if="courseDetail.userid == userid"
  5196. :class="{
  5197. rightW:
  5198. w.userid == userid || tType == 1 || tType == 4,
  5199. }"
  5200. >
  5201. 评分
  5202. </div>
  5203. <img
  5204. class="deleteImg"
  5205. src="../assets/deleteworks.png"
  5206. v-if="
  5207. w.userid == userid || tType == 1 || tType == 4
  5208. "
  5209. @click.stop="deleteWorks(w.wid)"
  5210. alt
  5211. />
  5212. </div>
  5213. <div class="comment" style="min-width: 200px">
  5214. <div class="worksName">
  5215. <div>{{ w.sName }}</div>
  5216. </div>
  5217. <div class="commentList">
  5218. <div class="commentList">
  5219. <div
  5220. class="commentImg"
  5221. @click="
  5222. isLikes(w.wid, userid, 1, null, w.isLikes)
  5223. "
  5224. >
  5225. <img
  5226. :src="w.isLikes == true ? likes : noLikes"
  5227. alt=""
  5228. />
  5229. </div>
  5230. <div>{{ w.likesCount }}</div>
  5231. </div>
  5232. <div class="commentList" style="margin-right: 15px">
  5233. <div
  5234. class="commentImg"
  5235. @click="commentOther(w, toolIndex, wIndex)"
  5236. >
  5237. <img
  5238. src="../assets/icon/comment/comment.png"
  5239. alt=""
  5240. />
  5241. </div>
  5242. <div>{{ w.commentCount }}</div>
  5243. </div>
  5244. </div>
  5245. </div>
  5246. </div>
  5247. </div>
  5248. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5249. 未提交
  5250. </div>
  5251. <div
  5252. class="noWorksS"
  5253. v-if="noWorksS && noWorksS[toolIndex].length"
  5254. >
  5255. <div
  5256. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5257. :key="sIndex"
  5258. class="noWorksName"
  5259. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5260. >
  5261. {{ s.student }}
  5262. </div>
  5263. </div>
  5264. </div>
  5265. <div
  5266. v-if="
  5267. tType &&
  5268. ((tType == 2 && sIsOpen == true) ||
  5269. tType == 1 ||
  5270. tType == 4) &&
  5271. tool.tool.indexOf(26) != -1
  5272. "
  5273. class="worksBox"
  5274. >
  5275. <div
  5276. class="zuoyeYulan"
  5277. v-if="
  5278. worksStudent.length &&
  5279. worksStudent[toolIndex].length > 0
  5280. "
  5281. >
  5282. <div class="worksTop">
  5283. <div>作业预览</div>
  5284. <div
  5285. class="corOpen"
  5286. @click="contract(toolIndex)"
  5287. v-if="
  5288. worksStudent[toolIndex].length > 6 &&
  5289. isCloseList[toolIndex].isClose == 0
  5290. "
  5291. >
  5292. 折叠
  5293. </div>
  5294. <div
  5295. class="corOpen"
  5296. @click="contract(toolIndex)"
  5297. v-if="isCloseList[toolIndex].isClose == 1"
  5298. >
  5299. 展开
  5300. </div>
  5301. </div>
  5302. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5303. </div>
  5304. <div
  5305. class="worksDetailBox"
  5306. v-if="
  5307. worksStudent.length &&
  5308. worksStudent[toolIndex].length > 0
  5309. "
  5310. >
  5311. <div
  5312. class="works"
  5313. style="width: 240px; height: 140px; overflow: hidden"
  5314. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5315. 0
  5316. ? worksStudent[toolIndex]
  5317. : worksStudent[toolIndex].slice(0, 6)"
  5318. :key="wIndex"
  5319. :class="w.type == 1 ? 'isTypeOne' : ''"
  5320. >
  5321. <div class="workImg" v-if="w.type == 0">
  5322. <img
  5323. :src="w.works"
  5324. @click="previewImg(w.works)"
  5325. alt
  5326. />
  5327. <img
  5328. class="deleteImg"
  5329. src="../assets/deleteworks.png"
  5330. v-if="
  5331. w.userid == userid || tType == 1 || tType == 4
  5332. "
  5333. @click.stop="deleteWorks(w.wid)"
  5334. alt
  5335. />
  5336. </div>
  5337. <div class="workImg" v-if="w.type == 1">
  5338. <img :src="word" @click="openFile(w.works)" alt />
  5339. <img
  5340. class="deleteImg"
  5341. src="../assets/deleteworks.png"
  5342. v-if="
  5343. w.userid == userid || tType == 1 || tType == 4
  5344. "
  5345. @click.stop="deleteWorks(w.wid)"
  5346. alt
  5347. />
  5348. </div>
  5349. <div class="worksName">
  5350. <div>{{ w.sName }}</div>
  5351. </div>
  5352. </div>
  5353. </div>
  5354. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5355. 未提交
  5356. </div>
  5357. <div
  5358. class="noWorksS"
  5359. v-if="noWorksS && noWorksS[toolIndex].length"
  5360. >
  5361. <div
  5362. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5363. :key="sIndex"
  5364. class="noWorksName"
  5365. >
  5366. {{ s.student }}
  5367. </div>
  5368. </div>
  5369. </div>
  5370. <div
  5371. v-if="
  5372. tType &&
  5373. ((tType == 2 && sIsOpen == true) ||
  5374. tType == 1 ||
  5375. tType == 4) &&
  5376. tool.tool.indexOf(40) != -1
  5377. "
  5378. class="worksBox"
  5379. >
  5380. <div
  5381. class="zuoyeYulan"
  5382. v-if="
  5383. worksStudent.length &&
  5384. worksStudent[toolIndex].length > 0
  5385. "
  5386. >
  5387. <div class="worksTop">
  5388. <div>作业预览</div>
  5389. <div
  5390. class="corOpen"
  5391. @click="contract(toolIndex)"
  5392. v-if="
  5393. worksStudent[toolIndex].length > 6 &&
  5394. isCloseList[toolIndex].isClose == 0
  5395. "
  5396. >
  5397. 折叠
  5398. </div>
  5399. <div
  5400. class="corOpen"
  5401. @click="contract(toolIndex)"
  5402. v-if="isCloseList[toolIndex].isClose == 1"
  5403. >
  5404. 展开
  5405. </div>
  5406. </div>
  5407. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5408. </div>
  5409. <div
  5410. class="worksDetailBox"
  5411. v-if="
  5412. worksStudent.length &&
  5413. worksStudent[toolIndex].length > 0
  5414. "
  5415. >
  5416. <div
  5417. class="works"
  5418. style="
  5419. width: 200px;
  5420. height: 140px;
  5421. margin: 10px 10px 10px 0;
  5422. border-radius: 15px;
  5423. box-shadow: 0 0 6px 1px #dfdada;
  5424. "
  5425. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5426. 0
  5427. ? worksStudent[toolIndex]
  5428. : worksStudent[toolIndex].slice(0, 6)"
  5429. :key="wIndex"
  5430. :class="w.type == 1 ? 'isTypeOne' : ''"
  5431. >
  5432. <div class="workImg">
  5433. <img
  5434. src="../assets/icon/works/noImg.png"
  5435. @click="openPj(w.works, toolIndex)"
  5436. alt
  5437. />
  5438. <img
  5439. class="deleteImg"
  5440. src="../assets/deleteworks.png"
  5441. v-if="
  5442. w.userid == userid || tType == 1 || tType == 4
  5443. "
  5444. @click.stop="deleteWorks(w.wid)"
  5445. alt
  5446. />
  5447. </div>
  5448. <div class="comment" style="min-width: 200px">
  5449. <div class="worksName">
  5450. <div>{{ w.sName }}</div>
  5451. </div>
  5452. <div class="commentList">
  5453. <div class="commentList">
  5454. <div
  5455. class="commentImg"
  5456. @click="
  5457. isLikes(w.wid, userid, 1, null, w.isLikes)
  5458. "
  5459. >
  5460. <img
  5461. :src="w.isLikes == true ? likes : noLikes"
  5462. alt=""
  5463. />
  5464. </div>
  5465. <div>{{ w.likesCount }}</div>
  5466. </div>
  5467. <div class="commentList" style="margin-right: 15px">
  5468. <div
  5469. class="commentImg"
  5470. @click="commentOther(w, toolIndex, wIndex)"
  5471. >
  5472. <img
  5473. src="../assets/icon/comment/comment.png"
  5474. alt=""
  5475. />
  5476. </div>
  5477. <div>{{ w.commentCount }}</div>
  5478. </div>
  5479. </div>
  5480. </div>
  5481. </div>
  5482. </div>
  5483. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5484. 未提交
  5485. </div>
  5486. <div
  5487. class="noWorksS"
  5488. v-if="noWorksS && noWorksS[toolIndex].length"
  5489. >
  5490. <div
  5491. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5492. :key="sIndex"
  5493. class="noWorksName"
  5494. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5495. >
  5496. {{ s.student }}
  5497. </div>
  5498. </div>
  5499. </div>
  5500. <div
  5501. v-if="
  5502. tType &&
  5503. tType == 2 &&
  5504. !sIsOpen &&
  5505. tool.tool.indexOf(40) != -1
  5506. "
  5507. class="worksBox"
  5508. >
  5509. <div
  5510. class="zuoyeYulan"
  5511. v-if="workStudent[toolIndex].length > 0"
  5512. >
  5513. <span class="worksTitle">作业预览</span>
  5514. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5515. </div>
  5516. <div
  5517. class="worksDetailBox"
  5518. v-if="workStudent[toolIndex].length > 0"
  5519. >
  5520. <div
  5521. class="works"
  5522. style="
  5523. width: 200px;
  5524. height: 140px;
  5525. margin: 10px 10px 10px 0;
  5526. "
  5527. v-for="(w, wIndex) in workStudent[toolIndex]"
  5528. :key="wIndex"
  5529. >
  5530. <div class="workImg">
  5531. <img
  5532. src="../assets/icon/works/noImg.png"
  5533. @click="openPj(w.works, toolIndex)"
  5534. alt
  5535. />
  5536. <img
  5537. class="deleteImg"
  5538. src="../assets/deleteworks.png"
  5539. v-if="
  5540. w.userid == userid || tType == 1 || tType == 4
  5541. "
  5542. @click.stop="deleteWorks(w.wid)"
  5543. alt
  5544. />
  5545. </div>
  5546. <div class="worksName">
  5547. <div>{{ w.sName }}</div>
  5548. </div>
  5549. </div>
  5550. </div>
  5551. </div>
  5552. <div
  5553. v-if="
  5554. tType &&
  5555. ((tType == 2 && sIsOpen == true) ||
  5556. tType == 1 ||
  5557. tType == 4) &&
  5558. tool.tool.indexOf(41) != -1
  5559. "
  5560. >
  5561. <AnswerData2
  5562. v-if="
  5563. worksStudent.length &&
  5564. worksStudent[toolIndex].length > 0
  5565. "
  5566. :problemJson="tool.selectJson.answer"
  5567. :people="worksStudent[toolIndex]"
  5568. ></AnswerData2>
  5569. </div>
  5570. <div
  5571. v-if="
  5572. tType &&
  5573. ((tType == 2 && sIsOpen == true) ||
  5574. tType == 1 ||
  5575. tType == 4) &&
  5576. tool.tool.indexOf(41) != -1
  5577. "
  5578. class="worksBox"
  5579. >
  5580. <div
  5581. class="zuoyeYulan"
  5582. v-if="
  5583. worksStudent.length &&
  5584. worksStudent[toolIndex].length > 0
  5585. "
  5586. >
  5587. <div class="worksTop">
  5588. <div>作业预览</div>
  5589. <div
  5590. class="corOpen"
  5591. @click="contract(toolIndex)"
  5592. v-if="
  5593. worksStudent[toolIndex].length > 6 &&
  5594. isCloseList[toolIndex].isClose == 0
  5595. "
  5596. >
  5597. 折叠
  5598. </div>
  5599. <div
  5600. class="corOpen"
  5601. @click="contract(toolIndex)"
  5602. v-if="isCloseList[toolIndex].isClose == 1"
  5603. >
  5604. 展开
  5605. </div>
  5606. </div>
  5607. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5608. </div>
  5609. <div
  5610. class="worksDetailBox"
  5611. v-if="
  5612. worksStudent.length &&
  5613. worksStudent[toolIndex].length > 0
  5614. "
  5615. >
  5616. <div
  5617. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5618. 0
  5619. ? worksStudent[toolIndex]
  5620. : worksStudent[toolIndex].slice(0, 6)"
  5621. :key="wIndex"
  5622. class="isWorksName2"
  5623. @click="openXz(w, toolIndex)"
  5624. >
  5625. {{ w.sName }}
  5626. <img
  5627. class="deleteImg deleteImg2"
  5628. src="../assets/deleteworks.png"
  5629. v-if="w.userid == userid || tType == 1 || tType == 4"
  5630. @click.stop="deleteWorks(w.wid)"
  5631. alt
  5632. />
  5633. </div>
  5634. <!-- <div
  5635. class="works"
  5636. style="
  5637. width: 200px;
  5638. height: 140px;
  5639. margin: 10px 10px 10px 0;
  5640. border-radius: 15px;
  5641. box-shadow: 0 0 6px 1px #dfdada;
  5642. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5643. :class="w.type == 5 ? 'isTypeOne' : ''">
  5644. <div class="workImg">
  5645. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5646. </div>
  5647. <div class="worksName">
  5648. <div>{{ w.sName }}</div>
  5649. </div>
  5650. </div> -->
  5651. </div>
  5652. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5653. 未提交
  5654. </div>
  5655. <div
  5656. class="noWorksS"
  5657. v-if="noWorksS && noWorksS[toolIndex].length"
  5658. >
  5659. <div
  5660. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5661. :key="sIndex"
  5662. class="noWorksName"
  5663. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5664. >
  5665. {{ s.student }}
  5666. </div>
  5667. </div>
  5668. </div>
  5669. <div
  5670. v-if="
  5671. tType &&
  5672. tType == 2 &&
  5673. !sIsOpen &&
  5674. tool.tool.indexOf(41) != -1
  5675. "
  5676. class="worksBox"
  5677. >
  5678. <div
  5679. class="zuoyeYulan"
  5680. v-if="workStudent[toolIndex].length > 0"
  5681. >
  5682. <span class="worksTitle">作业预览</span>
  5683. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5684. </div>
  5685. <div
  5686. class="worksDetailBox"
  5687. v-if="workStudent[toolIndex].length > 0"
  5688. >
  5689. <div
  5690. class="works"
  5691. style="
  5692. width: 200px;
  5693. height: 140px;
  5694. margin: 10px 10px 10px 0;
  5695. "
  5696. v-for="(w, wIndex) in workStudent[toolIndex]"
  5697. :key="wIndex"
  5698. >
  5699. <div class="workImg">
  5700. <img
  5701. src="../assets/icon/works/noImg.png"
  5702. @click="openXz(w, toolIndex)"
  5703. alt
  5704. />
  5705. <img
  5706. class="deleteImg"
  5707. src="../assets/deleteworks.png"
  5708. v-if="
  5709. w.userid == userid || tType == 1 || tType == 4
  5710. "
  5711. @click.stop="deleteWorks(w.wid)"
  5712. alt
  5713. />
  5714. </div>
  5715. <div class="worksName">
  5716. <div>{{ w.sName }}</div>
  5717. </div>
  5718. </div>
  5719. </div>
  5720. </div>
  5721. <div v-if="false" class="xuan_right_box">
  5722. <div
  5723. class="tool_right_box"
  5724. v-for="(item, index) in tool.sentenceList"
  5725. :key="index"
  5726. >
  5727. <div>
  5728. <span
  5729. style="word-break: break-all; white-space: normal"
  5730. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  5731. >
  5732. </div>
  5733. <div class="right_box_xuan">
  5734. <span>正确率</span>
  5735. <span>{{
  5736. (checkJson[toolIndex][index].right
  5737. ? checkJson[toolIndex][index].right
  5738. : 0) + "%"
  5739. }}</span>
  5740. </div>
  5741. <div class="right_box_xuan">
  5742. <span>答对人数</span>
  5743. <span>{{
  5744. checkJson[toolIndex][index].rightPerson.length
  5745. }}</span>
  5746. </div>
  5747. </div>
  5748. </div>
  5749. <div
  5750. v-if="
  5751. tType &&
  5752. ((tType == 2 && sIsOpen == true) ||
  5753. tType == 1 ||
  5754. tType == 4) &&
  5755. tool.tool.indexOf(47) != -1
  5756. "
  5757. >
  5758. <AnswerData
  5759. v-if="
  5760. checkJson[toolIndex].length &&
  5761. (tool.sentenceList || tool.sentenceList.length > 0)
  5762. "
  5763. :people="checkJson[toolIndex]"
  5764. ></AnswerData>
  5765. </div>
  5766. <div
  5767. v-if="
  5768. tType &&
  5769. tType == 2 &&
  5770. !sIsOpen &&
  5771. tool.tool.indexOf(47) != -1
  5772. "
  5773. class="worksBox"
  5774. >
  5775. <div
  5776. class="zuoyeYulan"
  5777. v-if="workStudent[toolIndex].length > 0"
  5778. >
  5779. <span class="worksTitle">作业预览</span>
  5780. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5781. </div>
  5782. <div
  5783. class="worksDetailBox"
  5784. v-if="workStudent[toolIndex].length > 0"
  5785. >
  5786. <div
  5787. class="works"
  5788. style="
  5789. width: 200px;
  5790. height: 140px;
  5791. margin: 10px 10px 10px 0;
  5792. "
  5793. v-for="(w, wIndex) in workStudent[toolIndex]"
  5794. :key="wIndex"
  5795. >
  5796. <!-- @click="openXz(w, toolIndex)" -->
  5797. <div class="workImg" @click="openSen(w, toolIndex)">
  5798. <img src="../assets/icon/works/noImg.png" alt />
  5799. <img
  5800. class="deleteImg"
  5801. src="../assets/deleteworks.png"
  5802. v-if="
  5803. w.userid == userid || tType == 1 || tType == 4
  5804. "
  5805. @click.stop="deleteWorks(w.wid)"
  5806. alt
  5807. />
  5808. </div>
  5809. <div class="worksName">
  5810. <div>
  5811. {{ w.sName }}
  5812. </div>
  5813. </div>
  5814. </div>
  5815. </div>
  5816. </div>
  5817. <div
  5818. v-if="
  5819. tType &&
  5820. ((tType == 2 && sIsOpen == true) ||
  5821. tType == 1 ||
  5822. tType == 4) &&
  5823. tool.tool.indexOf(47) != -1
  5824. "
  5825. class="worksBox"
  5826. >
  5827. <div
  5828. class="zuoyeYulan"
  5829. v-if="
  5830. worksStudent.length &&
  5831. worksStudent[toolIndex].length > 0
  5832. "
  5833. >
  5834. <div class="worksTop">
  5835. <div>作业预览</div>
  5836. <div
  5837. class="corOpen"
  5838. @click="contract(toolIndex)"
  5839. v-if="
  5840. worksStudent[toolIndex].length > 6 &&
  5841. isCloseList[toolIndex].isClose == 0
  5842. "
  5843. >
  5844. 折叠
  5845. </div>
  5846. <div
  5847. class="corOpen"
  5848. @click="contract(toolIndex)"
  5849. v-if="isCloseList[toolIndex].isClose == 1"
  5850. >
  5851. 展开
  5852. </div>
  5853. </div>
  5854. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5855. </div>
  5856. <div
  5857. class="worksDetailBox"
  5858. v-if="
  5859. worksStudent.length &&
  5860. worksStudent[toolIndex].length > 0
  5861. "
  5862. >
  5863. <!-- @click="openXz(w, toolIndex)" -->
  5864. <div
  5865. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5866. 0
  5867. ? worksStudent[toolIndex]
  5868. : worksStudent[toolIndex].slice(0, 6)"
  5869. :key="wIndex"
  5870. class="isWorksName2"
  5871. @click="openSen(w, toolIndex)"
  5872. >
  5873. {{ w.sName }}
  5874. <img
  5875. class="deleteImg deleteImg2"
  5876. src="../assets/deleteworks.png"
  5877. v-if="w.userid == userid || tType == 1 || tType == 4"
  5878. @click.stop="deleteWorks(w.wid)"
  5879. alt
  5880. />
  5881. </div>
  5882. </div>
  5883. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5884. 未提交
  5885. </div>
  5886. <div
  5887. class="noWorksS"
  5888. v-if="noWorksS && noWorksS[toolIndex].length"
  5889. >
  5890. <div
  5891. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5892. :key="sIndex"
  5893. class="noWorksName"
  5894. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5895. >
  5896. {{ s.student }}
  5897. </div>
  5898. </div>
  5899. </div>
  5900. <div
  5901. v-if="
  5902. tType &&
  5903. ((tType == 2 && sIsOpen == true) ||
  5904. tType == 1 ||
  5905. tType == 4) &&
  5906. tool.tool.indexOf(48) != -1
  5907. "
  5908. class="worksBox"
  5909. >
  5910. <div
  5911. class="zuoyeYulan"
  5912. v-if="
  5913. worksStudent.length &&
  5914. worksStudent[toolIndex].length > 0
  5915. "
  5916. >
  5917. <div class="worksTop">
  5918. <div>作业预览</div>
  5919. <div
  5920. class="corOpen"
  5921. @click="contract(toolIndex)"
  5922. v-if="
  5923. worksStudent[toolIndex].length > 6 &&
  5924. isCloseList[toolIndex].isClose == 0
  5925. "
  5926. >
  5927. 折叠
  5928. </div>
  5929. <div
  5930. class="corOpen"
  5931. @click="contract(toolIndex)"
  5932. v-if="isCloseList[toolIndex].isClose == 1"
  5933. >
  5934. 展开
  5935. </div>
  5936. </div>
  5937. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5938. </div>
  5939. <div
  5940. class="worksDetailBox"
  5941. v-if="
  5942. worksStudent.length &&
  5943. worksStudent[toolIndex].length > 0
  5944. "
  5945. >
  5946. <div
  5947. class="works"
  5948. style="
  5949. width: 200px;
  5950. height: 140px;
  5951. margin: 10px 10px 10px 0;
  5952. border-radius: 15px;
  5953. box-shadow: 0 0 6px 1px #dfdada;
  5954. "
  5955. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5956. 0
  5957. ? worksStudent[toolIndex]
  5958. : worksStudent[toolIndex].slice(0, 6)"
  5959. :key="wIndex"
  5960. :class="w.type == 1 ? 'isTypeOne' : ''"
  5961. >
  5962. <div class="workImg">
  5963. <img :src="word" @click="openTable(w)" alt />
  5964. <!-- @click="openFile(w.works)" -->
  5965. <div
  5966. class="answerScore"
  5967. v-if="w.score"
  5968. @click.stop="openScore(w)"
  5969. :class="{
  5970. rightW:
  5971. w.userid == userid ||
  5972. tType == 1 ||
  5973. tType == 4 ||
  5974. w.ateacher == userid,
  5975. }"
  5976. >
  5977. {{ JSON.parse(w.score).wScore }}分
  5978. </div>
  5979. <div
  5980. class="answerScore"
  5981. @click.stop="openScore(w)"
  5982. v-else-if="courseDetail.userid == userid"
  5983. :class="{
  5984. rightW:
  5985. w.userid == userid ||
  5986. tType == 1 ||
  5987. tType == 4 ||
  5988. w.ateacher == userid,
  5989. }"
  5990. >
  5991. 评分
  5992. </div>
  5993. <img
  5994. class="deleteImg"
  5995. src="../assets/deleteworks.png"
  5996. v-if="
  5997. w.userid == userid || tType == 1 || tType == 4
  5998. "
  5999. @click.stop="deleteWorks(w.wid)"
  6000. alt
  6001. />
  6002. </div>
  6003. <div class="comment" style="min-width: 200px">
  6004. <div class="worksName">
  6005. <div>{{ w.sName }}</div>
  6006. </div>
  6007. <div class="commentList">
  6008. <div class="commentList">
  6009. <div
  6010. class="commentImg"
  6011. @click="
  6012. isLikes(w.wid, userid, 1, null, w.isLikes)
  6013. "
  6014. >
  6015. <img
  6016. :src="w.isLikes == true ? likes : noLikes"
  6017. alt=""
  6018. />
  6019. </div>
  6020. <div>{{ w.likesCount }}</div>
  6021. </div>
  6022. <div class="commentList" style="margin-right: 15px">
  6023. <div
  6024. class="commentImg"
  6025. @click="commentOther(w, toolIndex, wIndex)"
  6026. >
  6027. <img
  6028. src="../assets/icon/comment/comment.png"
  6029. alt=""
  6030. />
  6031. </div>
  6032. <div>{{ w.commentCount }}</div>
  6033. </div>
  6034. </div>
  6035. </div>
  6036. </div>
  6037. </div>
  6038. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6039. 未提交
  6040. </div>
  6041. <div
  6042. class="noWorksS"
  6043. v-if="noWorksS && noWorksS[toolIndex].length"
  6044. >
  6045. <div
  6046. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6047. :key="sIndex"
  6048. class="noWorksName"
  6049. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6050. >
  6051. {{ s.student }}
  6052. </div>
  6053. </div>
  6054. </div>
  6055. <div
  6056. v-if="
  6057. tType &&
  6058. tType == 2 &&
  6059. !sIsOpen &&
  6060. tool.tool.indexOf(48) != -1
  6061. "
  6062. class="worksBox"
  6063. >
  6064. <div
  6065. class="zuoyeYulan"
  6066. v-if="workStudent[toolIndex].length > 0"
  6067. >
  6068. <span class="worksTitle">作业预览</span>
  6069. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6070. </div>
  6071. <div
  6072. class="worksDetailBox"
  6073. v-if="workStudent[toolIndex].length > 0"
  6074. >
  6075. <div
  6076. class="works"
  6077. style="
  6078. width: 200px;
  6079. height: 140px;
  6080. margin: 10px 10px 10px 0;
  6081. box-shadow: 0 0 6px 1px #dfdada;
  6082. "
  6083. v-for="(w, wIndex) in workStudent[toolIndex]"
  6084. :key="wIndex"
  6085. >
  6086. <div class="workImg">
  6087. <img :src="word" @click="openTable(w)" alt />
  6088. <div
  6089. class="answerScore"
  6090. v-if="w.score"
  6091. @click.stop="openScore(w)"
  6092. :class="{
  6093. rightW:
  6094. w.userid == userid || tType == 1 || tType == 4,
  6095. }"
  6096. >
  6097. {{ JSON.parse(w.score).wScore }}分
  6098. </div>
  6099. <div
  6100. class="answerScore"
  6101. @click.stop="openScore(w)"
  6102. v-else-if="courseDetail.userid == userid"
  6103. :class="{
  6104. rightW:
  6105. w.userid == userid || tType == 1 || tType == 4,
  6106. }"
  6107. >
  6108. 评分
  6109. </div>
  6110. <img
  6111. class="deleteImg"
  6112. src="../assets/deleteworks.png"
  6113. v-if="
  6114. w.userid == userid || tType == 1 || tType == 4
  6115. "
  6116. @click.stop="deleteWorks(w.wid)"
  6117. alt
  6118. />
  6119. </div>
  6120. <div class="worksName">
  6121. <div>{{ w.sName }}</div>
  6122. </div>
  6123. </div>
  6124. </div>
  6125. </div>
  6126. <div
  6127. v-if="
  6128. tType &&
  6129. ((tType == 2 && sIsOpen == true) ||
  6130. tType == 1 ||
  6131. tType == 4) &&
  6132. tool.tool.indexOf(52) != -1
  6133. "
  6134. class="worksBox"
  6135. >
  6136. <div
  6137. class="zuoyeYulan"
  6138. v-if="
  6139. worksStudent.length &&
  6140. worksStudent[toolIndex].length > 0
  6141. "
  6142. >
  6143. <div class="worksTop">
  6144. <div>作业预览</div>
  6145. <div
  6146. class="corOpen"
  6147. @click="contract(toolIndex)"
  6148. v-if="
  6149. worksStudent[toolIndex].length > 6 &&
  6150. isCloseList[toolIndex].isClose == 0
  6151. "
  6152. >
  6153. 折叠
  6154. </div>
  6155. <div
  6156. class="corOpen"
  6157. @click="contract(toolIndex)"
  6158. v-if="isCloseList[toolIndex].isClose == 1"
  6159. >
  6160. 展开
  6161. </div>
  6162. </div>
  6163. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6164. </div>
  6165. <div
  6166. class="worksDetailBox"
  6167. v-if="
  6168. worksStudent.length &&
  6169. worksStudent[toolIndex].length > 0
  6170. "
  6171. >
  6172. <div
  6173. class="works"
  6174. style="
  6175. width: 200px;
  6176. height: 140px;
  6177. margin: 10px 10px 10px 0;
  6178. border-radius: 15px;
  6179. box-shadow: 0 0 6px 1px #dfdada;
  6180. "
  6181. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6182. 0
  6183. ? worksStudent[toolIndex]
  6184. : worksStudent[toolIndex].slice(0, 6)"
  6185. :key="wIndex"
  6186. :class="w.type == 1 ? 'isTypeOne' : ''"
  6187. >
  6188. <div class="workImg">
  6189. <img :src="word" @click="openWord(w)" alt />
  6190. <!-- @click="openFile(w.works)" -->
  6191. <div
  6192. class="answerScore"
  6193. v-if="w.score"
  6194. @click.stop="openScore(w)"
  6195. :class="{
  6196. rightW:
  6197. w.userid == userid ||
  6198. tType == 1 ||
  6199. tType == 4 ||
  6200. w.ateacher == userid,
  6201. }"
  6202. >
  6203. {{ JSON.parse(w.score).wScore }}分
  6204. </div>
  6205. <div
  6206. class="answerScore"
  6207. @click.stop="openScore(w)"
  6208. v-else-if="courseDetail.userid == userid"
  6209. :class="{
  6210. rightW:
  6211. w.userid == userid ||
  6212. tType == 1 ||
  6213. tType == 4 ||
  6214. w.ateacher == userid,
  6215. }"
  6216. >
  6217. 评分
  6218. </div>
  6219. <img
  6220. class="deleteImg"
  6221. src="../assets/deleteworks.png"
  6222. v-if="
  6223. w.userid == userid || tType == 1 || tType == 4
  6224. "
  6225. @click.stop="deleteWorks(w.wid)"
  6226. alt
  6227. />
  6228. </div>
  6229. <div class="comment" style="min-width: 200px">
  6230. <div class="worksName">
  6231. <div>{{ w.sName }}</div>
  6232. </div>
  6233. <div class="commentList">
  6234. <div class="commentList">
  6235. <div
  6236. class="commentImg"
  6237. @click="
  6238. isLikes(w.wid, userid, 1, null, w.isLikes)
  6239. "
  6240. >
  6241. <img
  6242. :src="w.isLikes == true ? likes : noLikes"
  6243. alt=""
  6244. />
  6245. </div>
  6246. <div>{{ w.likesCount }}</div>
  6247. </div>
  6248. <div class="commentList" style="margin-right: 15px">
  6249. <div
  6250. class="commentImg"
  6251. @click="commentOther(w, toolIndex, wIndex)"
  6252. >
  6253. <img
  6254. src="../assets/icon/comment/comment.png"
  6255. alt=""
  6256. />
  6257. </div>
  6258. <div>{{ w.commentCount }}</div>
  6259. </div>
  6260. </div>
  6261. </div>
  6262. </div>
  6263. </div>
  6264. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6265. 未提交
  6266. </div>
  6267. <div
  6268. class="noWorksS"
  6269. v-if="noWorksS && noWorksS[toolIndex].length"
  6270. >
  6271. <div
  6272. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6273. :key="sIndex"
  6274. class="noWorksName"
  6275. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6276. >
  6277. {{ s.student }}
  6278. </div>
  6279. </div>
  6280. </div>
  6281. <div
  6282. v-if="
  6283. tType &&
  6284. tType == 2 &&
  6285. !sIsOpen &&
  6286. tool.tool.indexOf(52) != -1
  6287. "
  6288. class="worksBox"
  6289. >
  6290. <div
  6291. class="zuoyeYulan"
  6292. v-if="workStudent[toolIndex].length > 0"
  6293. >
  6294. <span class="worksTitle">作业预览</span>
  6295. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6296. </div>
  6297. <div
  6298. class="worksDetailBox"
  6299. v-if="workStudent[toolIndex].length > 0"
  6300. >
  6301. <div
  6302. class="works"
  6303. style="
  6304. width: 200px;
  6305. height: 140px;
  6306. margin: 10px 10px 10px 0;
  6307. box-shadow: 0 0 6px 1px #dfdada;
  6308. "
  6309. v-for="(w, wIndex) in workStudent[toolIndex]"
  6310. :key="wIndex"
  6311. >
  6312. <div class="workImg">
  6313. <img :src="word" @click="openWord(w)" alt />
  6314. <div
  6315. class="answerScore"
  6316. v-if="w.score"
  6317. @click.stop="openScore(w)"
  6318. :class="{
  6319. rightW:
  6320. w.userid == userid || tType == 1 || tType == 4,
  6321. }"
  6322. >
  6323. {{ JSON.parse(w.score).wScore }}分
  6324. </div>
  6325. <div
  6326. class="answerScore"
  6327. @click.stop="openScore(w)"
  6328. v-else-if="courseDetail.userid == userid"
  6329. :class="{
  6330. rightW:
  6331. w.userid == userid || tType == 1 || tType == 4,
  6332. }"
  6333. >
  6334. 评分
  6335. </div>
  6336. <img
  6337. class="deleteImg"
  6338. src="../assets/deleteworks.png"
  6339. v-if="
  6340. w.userid == userid || tType == 1 || tType == 4
  6341. "
  6342. @click.stop="deleteWorks(w.wid)"
  6343. alt
  6344. />
  6345. </div>
  6346. <div class="worksName">
  6347. <div>{{ w.sName }}</div>
  6348. </div>
  6349. </div>
  6350. </div>
  6351. </div>
  6352. <div
  6353. v-if="tool.tool.indexOf(49) != -1"
  6354. class="xuan_right_box"
  6355. style="margin: 0 15px 0 25px; width: 93%"
  6356. >
  6357. <div
  6358. v-if="courseDetail.userid == userid"
  6359. style="
  6360. display: flex;
  6361. justify-content: flex-end;
  6362. margin-right: 10px;
  6363. "
  6364. >
  6365. <el-button
  6366. type="primary"
  6367. size="small"
  6368. @click="addTools(49, toolIndex, taskCount)"
  6369. >分组设置</el-button
  6370. >
  6371. </div>
  6372. <div
  6373. v-if="groupStudentUid[toolIndex]"
  6374. class="group_staic_box"
  6375. >
  6376. <div
  6377. v-for="(gp, gd) in tool.groupJson.group"
  6378. :key="gd"
  6379. class="group_staic"
  6380. >
  6381. <span> {{ gp.name }}</span>
  6382. <span>
  6383. 目前人数{{
  6384. groupStudentUid[toolIndex][gd].length
  6385. }}人</span
  6386. >
  6387. </div>
  6388. </div>
  6389. </div>
  6390. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6391. <div
  6392. class="zuoyeYulan"
  6393. v-if="
  6394. worksStudent.length &&
  6395. worksStudent[toolIndex].length > 0
  6396. "
  6397. >
  6398. <span class="worksTitle">作业预览</span>
  6399. </div>
  6400. <div>
  6401. <div
  6402. class="group_workBox"
  6403. v-for="(g, gindex) in tool.groupJson.group"
  6404. :key="gindex"
  6405. >
  6406. <div
  6407. class="group_box"
  6408. v-if="
  6409. groupStudentUid[toolIndex] &&
  6410. worksStudent[toolIndex] &&
  6411. (worksStudent[toolIndex][gindex].length ||
  6412. groupStudentUid[toolIndex][gindex].indexOf(
  6413. userid
  6414. ) != -1)
  6415. "
  6416. >
  6417. <div class="group_title">
  6418. <el-tooltip
  6419. class="item"
  6420. effect="light"
  6421. :content="g.name"
  6422. placement="top"
  6423. >
  6424. <div class="group_name">{{ g.name }}</div>
  6425. </el-tooltip>
  6426. <el-button
  6427. type="primary"
  6428. v-if="
  6429. groupStudentUid[toolIndex][gindex].indexOf(
  6430. userid
  6431. ) != -1
  6432. "
  6433. @click="groupUpload(toolIndex, taskCount, gindex)"
  6434. >上传作业</el-button
  6435. >
  6436. </div>
  6437. <div class="group_work">
  6438. <div
  6439. class="works"
  6440. style="
  6441. width: 200px;
  6442. height: 140px;
  6443. margin: 10px 10px 10px 0;
  6444. border-radius: 15px;
  6445. box-shadow: 0 0 6px 1px #dfdada;
  6446. "
  6447. v-for="(w, wIndex) in worksStudent[toolIndex][
  6448. gindex
  6449. ]"
  6450. :key="wIndex"
  6451. :class="w.type == 1 ? 'isTypeOne' : ''"
  6452. >
  6453. <div class="workImg" v-if="w.type == 0">
  6454. <img
  6455. :src="w.works"
  6456. @click="previewImg(w.works)"
  6457. alt
  6458. />
  6459. <div
  6460. class="answerScore"
  6461. v-if="w.score"
  6462. @click.stop="openScore(w)"
  6463. :class="{
  6464. rightW:
  6465. w.userid == userid ||
  6466. tType == 1 ||
  6467. tType == 4 ||
  6468. w.ateacher == userid,
  6469. }"
  6470. >
  6471. {{ JSON.parse(w.score).wScore }}分
  6472. </div>
  6473. <div
  6474. class="answerScore"
  6475. @click.stop="openScore(w)"
  6476. v-else-if="courseDetail.userid == userid"
  6477. :class="{
  6478. rightW:
  6479. w.userid == userid ||
  6480. tType == 1 ||
  6481. tType == 4 ||
  6482. w.ateacher == userid,
  6483. }"
  6484. >
  6485. 评分
  6486. </div>
  6487. <img
  6488. class="deleteImg"
  6489. src="../assets/deleteworks.png"
  6490. v-if="
  6491. w.userid == userid ||
  6492. tType == 1 ||
  6493. tType == 4
  6494. "
  6495. @click.stop="deleteWorks(w.wid)"
  6496. alt
  6497. />
  6498. </div>
  6499. <div class="workImg" v-if="w.type == 1">
  6500. <img
  6501. :src="word"
  6502. @click="openFile(w.works)"
  6503. alt
  6504. />
  6505. <!-- @click="openFile(w.works)" -->
  6506. <div
  6507. class="answerScore"
  6508. v-if="w.score"
  6509. @click.stop="openScore(w)"
  6510. :class="{
  6511. rightW:
  6512. w.userid == userid ||
  6513. tType == 1 ||
  6514. tType == 4 ||
  6515. w.ateacher == userid,
  6516. }"
  6517. >
  6518. {{ JSON.parse(w.score).wScore }}分
  6519. </div>
  6520. <div
  6521. class="answerScore"
  6522. @click.stop="openScore(w)"
  6523. v-else-if="courseDetail.userid == userid"
  6524. :class="{
  6525. rightW:
  6526. w.userid == userid ||
  6527. tType == 1 ||
  6528. tType == 4 ||
  6529. w.ateacher == userid,
  6530. }"
  6531. >
  6532. 评分
  6533. </div>
  6534. <img
  6535. class="deleteImg"
  6536. src="../assets/deleteworks.png"
  6537. v-if="
  6538. w.userid == userid ||
  6539. tType == 1 ||
  6540. tType == 4
  6541. "
  6542. @click.stop="deleteWorks(w.wid)"
  6543. alt
  6544. />
  6545. </div>
  6546. <div class="workImg" v-if="w.type == 3">
  6547. <img
  6548. style="cursor: pointer"
  6549. :src="video"
  6550. @click="openVideo(w)"
  6551. alt
  6552. />
  6553. <!-- @click="openVideo(w.works)" -->
  6554. <div
  6555. class="answerScore"
  6556. v-if="w.score"
  6557. @click.stop="openScore(w)"
  6558. :class="{
  6559. rightW:
  6560. w.userid == userid ||
  6561. tType == 1 ||
  6562. tType == 4 ||
  6563. w.ateacher == userid,
  6564. }"
  6565. >
  6566. {{ JSON.parse(w.score).wScore }}分
  6567. </div>
  6568. <div
  6569. class="answerScore"
  6570. @click.stop="openScore(w)"
  6571. v-else-if="courseDetail.userid == userid"
  6572. :class="{
  6573. rightW:
  6574. w.userid == userid ||
  6575. tType == 1 ||
  6576. tType == 4 ||
  6577. w.ateacher == userid,
  6578. }"
  6579. >
  6580. 评分
  6581. </div>
  6582. <img
  6583. class="deleteImg"
  6584. src="../assets/deleteworks.png"
  6585. v-if="
  6586. w.userid == userid ||
  6587. tType == 1 ||
  6588. tType == 4
  6589. "
  6590. @click.stop="deleteWorks(w.wid)"
  6591. alt
  6592. />
  6593. </div>
  6594. <div class="workImg" v-if="w.type == 12">
  6595. <img
  6596. style="cursor: pointer"
  6597. :src="word2"
  6598. @click="downloadFile(w.works)"
  6599. alt
  6600. />
  6601. <!-- @click="openVideo(w.works)" -->
  6602. <div
  6603. class="answerScore"
  6604. v-if="w.score"
  6605. @click.stop="openScore(w)"
  6606. :class="{
  6607. rightW:
  6608. w.userid == userid ||
  6609. tType == 1 ||
  6610. tType == 4 ||
  6611. w.ateacher == userid,
  6612. }"
  6613. >
  6614. {{ JSON.parse(w.score).wScore }}分
  6615. </div>
  6616. <div
  6617. class="answerScore"
  6618. @click.stop="openScore(w)"
  6619. v-else-if="courseDetail.userid == userid"
  6620. :class="{
  6621. rightW:
  6622. w.userid == userid ||
  6623. tType == 1 ||
  6624. tType == 4 ||
  6625. w.ateacher == userid,
  6626. }"
  6627. >
  6628. 评分
  6629. </div>
  6630. <img
  6631. class="deleteImg"
  6632. src="../assets/deleteworks.png"
  6633. v-if="
  6634. w.userid == userid ||
  6635. tType == 1 ||
  6636. tType == 4
  6637. "
  6638. @click.stop="deleteWorks(w.wid)"
  6639. alt
  6640. />
  6641. </div>
  6642. <div class="comment" style="min-width: 200px">
  6643. <div class="worksName">
  6644. <div>{{ w.sName }}</div>
  6645. </div>
  6646. <div class="commentList">
  6647. <div class="commentList">
  6648. <div
  6649. class="commentImg"
  6650. @click="
  6651. isLikes(
  6652. w.wid,
  6653. userid,
  6654. 1,
  6655. null,
  6656. w.isLikes
  6657. )
  6658. "
  6659. >
  6660. <img
  6661. :src="
  6662. w.isLikes == true ? likes : noLikes
  6663. "
  6664. alt=""
  6665. />
  6666. </div>
  6667. <div>{{ w.likesCount }}</div>
  6668. </div>
  6669. <div
  6670. class="commentList"
  6671. style="margin-right: 15px"
  6672. >
  6673. <div
  6674. class="commentImg"
  6675. @click="
  6676. commentOther(
  6677. w,
  6678. toolIndex,
  6679. wIndex,
  6680. gindex
  6681. )
  6682. "
  6683. >
  6684. <img
  6685. src="../assets/icon/comment/comment.png"
  6686. alt=""
  6687. />
  6688. </div>
  6689. <div>{{ w.commentCount }}</div>
  6690. </div>
  6691. </div>
  6692. </div>
  6693. </div>
  6694. </div>
  6695. </div>
  6696. </div>
  6697. </div>
  6698. </div>
  6699. </div>
  6700. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6701. 上传文件
  6702. <input
  6703. type="file"
  6704. accept="image/png, image/gif, image/jpeg"
  6705. style="display: none"
  6706. @change="beforeUpload1($event, 2, index)"
  6707. />
  6708. </div>-->
  6709. </div>
  6710. </div>
  6711. <!-- <div
  6712. class="vedioBox"
  6713. style="margin-top: 10px"
  6714. v-if="
  6715. courseDetail.userid == userid ||
  6716. (courseDetail.course_teacher &&
  6717. courseDetail.course_teacher.indexOf(userid) != -1)
  6718. "
  6719. :style="{
  6720. borderRadius:
  6721. !(
  6722. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6723. .toolChoose[0].tool &&
  6724. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6725. .toolChoose[0].tool.length > 0
  6726. ) &&
  6727. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6728. .taskDetail == '' &&
  6729. vChapterData[taskCount].length == 0 &&
  6730. fileC[taskCount].length == 0
  6731. ? '0 0 20px 20px'
  6732. : '20px',
  6733. }"
  6734. >
  6735. <div
  6736. class="queTop"
  6737. @click="isClose = !isClose"
  6738. style="
  6739. padding: 15px 0 15px 37px;
  6740. justify-content: space-between;
  6741. "
  6742. >
  6743. <div class="queTopTitle">新增工具</div>
  6744. <div class="queTopRight">
  6745. <div class="queTopClose" v-if="isClose == 0">
  6746. 展开
  6747. <div class="closeImg">
  6748. <img src="../assets/icon/newIcon/close.png" alt="" />
  6749. </div>
  6750. </div>
  6751. <div class="queTopClose" v-if="isClose == 1">
  6752. 折叠
  6753. <div class="openImg">
  6754. <img src="../assets/icon/newIcon/open.png" alt="" />
  6755. </div>
  6756. </div>
  6757. <el-button
  6758. style="margin: 0 30px 0 auto"
  6759. type="primary"
  6760. size="small"
  6761. v-if="isClose == 1 && checktoolArray.length > 0"
  6762. @click.stop="addToolChoose"
  6763. >确定</el-button
  6764. >
  6765. </div>
  6766. </div>
  6767. <div
  6768. class="tool_work_box"
  6769. :style="isClose == 0 ? 'display:none' : 'display:block'"
  6770. >
  6771. <div class="tool_box">
  6772. <div class="tool_type_box">
  6773. <div class="chooseWho">
  6774. <div
  6775. :class="toolType == 0 ? 'isChooseActive' : ''"
  6776. @click="(toolType = 0), $forceUpdate()"
  6777. >
  6778. 互动类
  6779. </div>
  6780. <div
  6781. :class="toolType == 1 ? 'isChooseActive' : ''"
  6782. @click="(toolType = 1), $forceUpdate()"
  6783. >
  6784. 思维类
  6785. </div>
  6786. <div
  6787. :class="toolType == 2 ? 'isChooseActive' : ''"
  6788. @click="(toolType = 2), $forceUpdate()"
  6789. >
  6790. 测评类
  6791. </div>
  6792. <div
  6793. :class="toolType == 3 ? 'isChooseActive' : ''"
  6794. @click="(toolType = 3), $forceUpdate()"
  6795. >
  6796. 编程类
  6797. </div>
  6798. <div
  6799. :class="toolType == 5 ? 'isChooseActive' : ''"
  6800. @click="(toolType = 5), $forceUpdate()"
  6801. >
  6802. 学科类
  6803. </div>
  6804. </div>
  6805. </div>
  6806. <div>
  6807. <div class="toolSort" v-if="toolType == 0">
  6808. <div class="tool">
  6809. <div class="whiteBIcon" @click="addTools2(10)">
  6810. <img
  6811. src="../assets/icon/thirdToolList/time.png"
  6812. alt
  6813. />
  6814. <div style="margin: 5px 0">倒计时</div>
  6815. </div>
  6816. <div class="check" @click="addTools2(10)">
  6817. <img
  6818. src="../assets/icon/checkNo.png"
  6819. alt
  6820. v-if="checktoolArray.indexOf(10) == -1"
  6821. />
  6822. <div class="checkDiv" v-else>
  6823. <img src="../assets/icon/checkedIs.png" alt /><span
  6824. >已选择</span
  6825. >
  6826. </div>
  6827. </div>
  6828. </div>
  6829. <div class="tool">
  6830. <div class="whiteBIcon" @click="addTools2(65)">
  6831. <img
  6832. src="../assets/icon/firstToolList/pickPeople.png"
  6833. alt
  6834. />
  6835. <div style="margin: 5px 0">挑人</div>
  6836. </div>
  6837. <div class="check" @click="addTools2(65)">
  6838. <img
  6839. src="../assets/icon/checkNo.png"
  6840. alt
  6841. v-if="checktoolArray.indexOf(65) == -1"
  6842. />
  6843. <div class="checkDiv" v-else>
  6844. <img src="../assets/icon/checkedIs.png" alt /><span
  6845. >已选择</span
  6846. >
  6847. </div>
  6848. </div>
  6849. </div>
  6850. </div>
  6851. <div class="toolSort" v-if="toolType == 1">
  6852. <div class="tool">
  6853. <div class="whiteBIcon" @click="addTools2(7)">
  6854. <img
  6855. src="../assets/icon/secondToolList/mindNetwork.png"
  6856. alt
  6857. />
  6858. <div style="margin: 5px 0">思维网格</div>
  6859. </div>
  6860. <div class="check" @click="addTools2(7)">
  6861. <img
  6862. src="../assets/icon/checkNo.png"
  6863. alt
  6864. v-if="checktoolArray.indexOf(7) == -1"
  6865. />
  6866. <div class="checkDiv" v-else>
  6867. <img src="../assets/icon/checkedIs.png" alt /><span
  6868. >已选择</span
  6869. >
  6870. </div>
  6871. </div>
  6872. </div>
  6873. <div class="tool">
  6874. <div class="whiteBIcon" @click="addTools2(1)">
  6875. <img
  6876. src="../assets/icon/secondToolList/whiteBoard.png"
  6877. alt
  6878. />
  6879. <div style="margin: 5px 0">电子白板</div>
  6880. </div>
  6881. <div class="check" @click="addTools2(1)">
  6882. <img
  6883. src="../assets/icon/checkNo.png"
  6884. alt
  6885. v-if="checktoolArray.indexOf(1) == -1"
  6886. />
  6887. <div class="checkDiv" v-else>
  6888. <img src="../assets/icon/checkedIs.png" alt /><span
  6889. >已选择</span
  6890. >
  6891. </div>
  6892. </div>
  6893. </div>
  6894. <div class="tool">
  6895. <div class="whiteBIcon" @click="addTools2(52)">
  6896. <img
  6897. src="../assets/icon/fourthToolList/text.png"
  6898. alt
  6899. />
  6900. <div style="margin: 5px 0">文档</div>
  6901. </div>
  6902. <div class="check" @click="addTools2(52)">
  6903. <img
  6904. src="../assets/icon/checkNo.png"
  6905. alt
  6906. v-if="checktoolArray.indexOf(52) == -1"
  6907. />
  6908. <div class="checkDiv" v-else>
  6909. <img src="../assets/icon/checkedIs.png" alt /><span
  6910. >已选择</span
  6911. >
  6912. </div>
  6913. </div>
  6914. </div>
  6915. <div class="tool">
  6916. <div class="whiteBIcon" @click="addTools2(3)">
  6917. <img
  6918. src="../assets/icon/secondToolList/mindMapping.png"
  6919. alt
  6920. />
  6921. <div style="margin: 5px 0">思维导图</div>
  6922. </div>
  6923. <div class="check" @click="addTools2(3)">
  6924. <img
  6925. src="../assets/icon/checkNo.png"
  6926. alt
  6927. v-if="checktoolArray.indexOf(3) == -1"
  6928. />
  6929. <div class="checkDiv" v-else>
  6930. <img src="../assets/icon/checkedIs.png" alt /><span
  6931. >已选择</span
  6932. >
  6933. </div>
  6934. </div>
  6935. </div>
  6936. <div class="tool">
  6937. <div class="whiteBIcon" @click="addTools2(48)">
  6938. <img
  6939. src="../assets/icon/fourthToolList/table.png"
  6940. alt
  6941. />
  6942. <div style="margin: 5px 0">表格</div>
  6943. </div>
  6944. <div class="check" @click="addTools2(48)">
  6945. <img
  6946. src="../assets/icon/checkNo.png"
  6947. alt
  6948. v-if="checktoolArray.indexOf(48) == -1"
  6949. />
  6950. <div class="checkDiv" v-else>
  6951. <img src="../assets/icon/checkedIs.png" alt /><span
  6952. >已选择</span
  6953. >
  6954. </div>
  6955. </div>
  6956. </div>
  6957. </div>
  6958. <div class="toolSort" v-if="toolType == 6">
  6959. <div v-show="tooC == 49">
  6960. <img
  6961. @click="addTools(tooC, toolIndex, taskCount)"
  6962. src="../assets/icon/fourthToolList/group.png"
  6963. alt
  6964. />
  6965. <div style="margin: 5px 0">学生分组</div>
  6966. </div>
  6967. </div>
  6968. <div class="toolSort" v-if="toolType == 2">
  6969. <div class="tool">
  6970. <div class="whiteBIcon" @click="addTools2(16)">
  6971. <img
  6972. src="../assets/icon/thirdToolList/work.png"
  6973. alt
  6974. />
  6975. <div style="margin: 5px 0">作业提交</div>
  6976. </div>
  6977. <div class="check" @click="addTools2(16)">
  6978. <img
  6979. src="../assets/icon/checkNo.png"
  6980. alt
  6981. v-if="checktoolArray.indexOf(16) == -1"
  6982. />
  6983. <div class="checkDiv" v-else>
  6984. <img src="../assets/icon/checkedIs.png" alt /><span
  6985. >已选择</span
  6986. >
  6987. </div>
  6988. </div>
  6989. </div>
  6990. <div class="tool">
  6991. <div class="whiteBIcon" @click="addTools2(50)">
  6992. <img
  6993. src="../assets/icon/thirdToolList/plwork.png"
  6994. alt
  6995. />
  6996. <div style="margin: 5px 0">批量上传</div>
  6997. </div>
  6998. <div class="check" @click="addTools2(50)">
  6999. <img
  7000. src="../assets/icon/checkNo.png"
  7001. alt
  7002. v-if="checktoolArray.indexOf(50) == -1"
  7003. />
  7004. <div class="checkDiv" v-else>
  7005. <img src="../assets/icon/checkedIs.png" alt /><span
  7006. >已选择</span
  7007. >
  7008. </div>
  7009. </div>
  7010. </div>
  7011. </div>
  7012. <div class="toolSort" v-if="toolType == 3">
  7013. <div class="tool">
  7014. <div class="whiteBIcon" @click="addTools2(18)">
  7015. <img
  7016. src="../assets/icon/thirdToolList/trainPlatform.png"
  7017. alt
  7018. />
  7019. <div style="margin: 5px 0">训练平台</div>
  7020. </div>
  7021. <div class="check" @click="addTools2(18)">
  7022. <img
  7023. src="../assets/icon/checkNo.png"
  7024. alt
  7025. v-if="checktoolArray.indexOf(18) == -1"
  7026. />
  7027. <div class="checkDiv" v-else>
  7028. <img src="../assets/icon/checkedIs.png" alt /><span
  7029. >已选择</span
  7030. >
  7031. </div>
  7032. </div>
  7033. </div>
  7034. <div class="tool">
  7035. <div class="whiteBIcon" @click="addTools2(21)">
  7036. <img
  7037. src="../assets/icon/fourthToolList/program.png"
  7038. alt
  7039. />
  7040. <div style="margin: 5px 0">AIoT Blockly</div>
  7041. </div>
  7042. <div class="check" @click="addTools2(21)">
  7043. <img
  7044. src="../assets/icon/checkNo.png"
  7045. alt
  7046. v-if="checktoolArray.indexOf(21) == -1"
  7047. />
  7048. <div class="checkDiv" v-else>
  7049. <img src="../assets/icon/checkedIs.png" alt /><span
  7050. >已选择</span
  7051. >
  7052. </div>
  7053. </div>
  7054. </div>
  7055. <div class="tool">
  7056. <div class="whiteBIcon" @click="addTools2(23)">
  7057. <img
  7058. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7059. alt
  7060. />
  7061. <div style="margin: 5px 0">AI Python</div>
  7062. </div>
  7063. <div class="check" @click="addTools2(23)">
  7064. <img
  7065. src="../assets/icon/checkNo.png"
  7066. alt
  7067. v-if="checktoolArray.indexOf(23) == -1"
  7068. />
  7069. <div class="checkDiv" v-else>
  7070. <img src="../assets/icon/checkedIs.png" alt /><span
  7071. >已选择</span
  7072. >
  7073. </div>
  7074. </div>
  7075. </div>
  7076. <div class="tool">
  7077. <div class="whiteBIcon" @click="addTools2(24)">
  7078. <img
  7079. src="../assets/icon/fourthToolList/AIprogram.png"
  7080. alt
  7081. />
  7082. <div style="margin: 5px 0">AI Blockly</div>
  7083. </div>
  7084. <div class="check" @click="addTools2(24)">
  7085. <img
  7086. src="../assets/icon/checkNo.png"
  7087. alt
  7088. v-if="checktoolArray.indexOf(24) == -1"
  7089. />
  7090. <div class="checkDiv" v-else>
  7091. <img src="../assets/icon/checkedIs.png" alt /><span
  7092. >已选择</span
  7093. >
  7094. </div>
  7095. </div>
  7096. </div>
  7097. <div class="tool">
  7098. <div class="whiteBIcon" @click="addTools2(32)">
  7099. <img
  7100. src="../assets/icon/thirdToolList/code.png"
  7101. alt
  7102. />
  7103. <div style="margin: 5px 0">源码编辑</div>
  7104. </div>
  7105. <div class="check" @click="addTools2(32)">
  7106. <img
  7107. src="../assets/icon/checkNo.png"
  7108. alt
  7109. v-if="checktoolArray.indexOf(32) == -1"
  7110. />
  7111. <div class="checkDiv" v-else>
  7112. <img src="../assets/icon/checkedIs.png" alt /><span
  7113. >已选择</span
  7114. >
  7115. </div>
  7116. </div>
  7117. </div>
  7118. <div class="tool">
  7119. <div class="whiteBIcon" @click="addTools2(57)">
  7120. <img
  7121. src="../assets/icon/fourthToolList/cocopi.png"
  7122. alt
  7123. />
  7124. <div style="margin: 5px 0">CocoPi</div>
  7125. </div>
  7126. <div class="check" @click="addTools2(57)">
  7127. <img
  7128. src="../assets/icon/checkNo.png"
  7129. alt
  7130. v-if="checktoolArray.indexOf(57) == -1"
  7131. />
  7132. <div class="checkDiv" v-else>
  7133. <img src="../assets/icon/checkedIs.png" alt /><span
  7134. >已选择</span
  7135. >
  7136. </div>
  7137. </div>
  7138. </div>
  7139. <div class="tool">
  7140. <div class="whiteBIcon" @click="addTools2(63)">
  7141. <img
  7142. src="../assets/icon/fourthToolList/Wood.png"
  7143. alt
  7144. />
  7145. <div style="margin: 5px 0">海龟编程</div>
  7146. </div>
  7147. <div class="check" @click="addTools2(63)">
  7148. <img
  7149. src="../assets/icon/checkNo.png"
  7150. alt
  7151. v-if="checktoolArray.indexOf(63) == -1"
  7152. />
  7153. <div class="checkDiv" v-else>
  7154. <img src="../assets/icon/checkedIs.png" alt /><span
  7155. >已选择</span
  7156. >
  7157. </div>
  7158. </div>
  7159. </div>
  7160. </div>
  7161. <div class="toolSort" v-if="toolType == 5">
  7162. <div class="tool">
  7163. <div class="whiteBIcon" @click="addTools2(28)">
  7164. <img
  7165. src="../assets/icon/secondToolList/translation.png"
  7166. alt
  7167. />
  7168. <div style="margin: 5px 0">翻译</div>
  7169. </div>
  7170. <div class="check" @click="addTools2(28)">
  7171. <img
  7172. src="../assets/icon/checkNo.png"
  7173. alt
  7174. v-if="checktoolArray.indexOf(28) == -1"
  7175. />
  7176. <div class="checkDiv" v-else>
  7177. <img src="../assets/icon/checkedIs.png" alt /><span
  7178. >已选择</span
  7179. >
  7180. </div>
  7181. </div>
  7182. </div>
  7183. <div class="tool">
  7184. <div class="whiteBIcon" @click="addTools2(31)">
  7185. <img
  7186. src="../assets/icon/secondToolList/networkPanel.png"
  7187. alt
  7188. />
  7189. <div style="margin: 5px 0">数字画板</div>
  7190. </div>
  7191. <div class="check" @click="addTools2(31)">
  7192. <img
  7193. src="../assets/icon/checkNo.png"
  7194. alt
  7195. v-if="checktoolArray.indexOf(31) == -1"
  7196. />
  7197. <div class="checkDiv" v-else>
  7198. <img src="../assets/icon/checkedIs.png" alt /><span
  7199. >已选择</span
  7200. >
  7201. </div>
  7202. </div>
  7203. </div>
  7204. <div class="tool">
  7205. <div class="whiteBIcon" @click="addTools2(39)">
  7206. <img
  7207. src="../assets/icon/secondToolList/GeoGebra.png"
  7208. alt
  7209. />
  7210. <div style="margin: 5px 0">GeoGebra</div>
  7211. </div>
  7212. <div class="check" @click="addTools2(39)">
  7213. <img
  7214. src="../assets/icon/checkNo.png"
  7215. alt
  7216. v-if="checktoolArray.indexOf(39) == -1"
  7217. />
  7218. <div class="checkDiv" v-else>
  7219. <img src="../assets/icon/checkedIs.png" alt /><span
  7220. >已选择</span
  7221. >
  7222. </div>
  7223. </div>
  7224. </div>
  7225. <div class="tool">
  7226. <div class="whiteBIcon" @click="addTools2(66)">
  7227. <img
  7228. src="../assets/icon/secondToolList/formulaEdi.png"
  7229. alt
  7230. />
  7231. <div style="margin: 5px 0">公式编辑</div>
  7232. </div>
  7233. <div class="check" @click="addTools2(66)">
  7234. <img
  7235. src="../assets/icon/checkNo.png"
  7236. alt
  7237. v-if="checktoolArray.indexOf(66) == -1"
  7238. />
  7239. <div class="checkDiv" v-else>
  7240. <img src="../assets/icon/checkedIs.png" alt /><span
  7241. >已选择</span
  7242. >
  7243. </div>
  7244. </div>
  7245. </div>
  7246. <div class="tool">
  7247. <div class="whiteBIcon" @click="addTools2(67)">
  7248. <img
  7249. src="../assets/icon/secondToolList/molStr.png"
  7250. alt
  7251. />
  7252. <div style="margin: 5px 0">分子结构</div>
  7253. </div>
  7254. <div class="check" @click="addTools2(67)">
  7255. <img
  7256. src="../assets/icon/checkNo.png"
  7257. alt
  7258. v-if="checktoolArray.indexOf(67) == -1"
  7259. />
  7260. <div class="checkDiv" v-else>
  7261. <img src="../assets/icon/checkedIs.png" alt /><span
  7262. >已选择</span
  7263. >
  7264. </div>
  7265. </div>
  7266. </div>
  7267. <div class="tool">
  7268. <div class="whiteBIcon" @click="addTools2(68)">
  7269. <img
  7270. src="../assets/icon/secondToolList/timeAxis.png"
  7271. alt
  7272. />
  7273. <div style="margin: 5px 0">时间轴</div>
  7274. </div>
  7275. <div class="check" @click="addTools2(68)">
  7276. <img
  7277. src="../assets/icon/checkNo.png"
  7278. alt
  7279. v-if="checktoolArray.indexOf(68) == -1"
  7280. />
  7281. <div class="checkDiv" v-else>
  7282. <img src="../assets/icon/checkedIs.png" alt /><span
  7283. >已选择</span
  7284. >
  7285. </div>
  7286. </div>
  7287. </div>
  7288. </div>
  7289. <div class="toolSort" v-if="toolType == 7">
  7290. <div class="tool">
  7291. <div class="whiteBIcon" @click="addTools2(40)">
  7292. <img
  7293. src="../assets/icon/secondToolList/eval.png"
  7294. alt
  7295. />
  7296. <div style="margin: 5px 0">个人评价</div>
  7297. </div>
  7298. <div class="check" @click="addTools2(40)">
  7299. <img
  7300. src="../assets/icon/checkNo.png"
  7301. alt
  7302. v-if="checktoolArray.indexOf(40) == -1"
  7303. />
  7304. <div class="checkDiv" v-else>
  7305. <img src="../assets/icon/checkedIs.png" alt /><span
  7306. >已选择</span
  7307. >
  7308. </div>
  7309. </div>
  7310. </div>
  7311. </div>
  7312. <div class="toolSort" v-if="toolType == 4">
  7313. <div class="tool">
  7314. <div class="whiteBIcon" @click="addTools2(26)">
  7315. <img
  7316. src="../assets/icon/thirdToolList/courseDesign.png"
  7317. alt
  7318. />
  7319. <div style="margin: 5px 0">课程设计</div>
  7320. </div>
  7321. <div class="check" @click="addTools2(26)">
  7322. <img
  7323. src="../assets/icon/checkNo.png"
  7324. alt
  7325. v-if="checktoolArray.indexOf(26) == -1"
  7326. />
  7327. <div class="checkDiv" v-else>
  7328. <img src="../assets/icon/checkedIs.png" alt /><span
  7329. >已选择</span
  7330. >
  7331. </div>
  7332. </div>
  7333. </div>
  7334. <div class="tool">
  7335. <div class="whiteBIcon" @click="addTools2(25)">
  7336. <img
  7337. src="../assets/icon/thirdToolList/evalua.png"
  7338. alt
  7339. />
  7340. <div style="margin: 5px 0">目标管理</div>
  7341. </div>
  7342. <div class="check" @click="addTools2(25)">
  7343. <img
  7344. src="../assets/icon/checkNo.png"
  7345. alt
  7346. v-if="checktoolArray.indexOf(25) == -1"
  7347. />
  7348. <div class="checkDiv" v-else>
  7349. <img src="../assets/icon/checkedIs.png" alt /><span
  7350. >已选择</span
  7351. >
  7352. </div>
  7353. </div>
  7354. </div>
  7355. </div>
  7356. </div>
  7357. </div>
  7358. </div>
  7359. </div> -->
  7360. <div
  7361. class="vedioBox"
  7362. style="margin-top: 10px; border-radius: 20px"
  7363. v-if="
  7364. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7365. .eList &&
  7366. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7367. .eList.length &&
  7368. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7369. .eList.length > 0 &&
  7370. tType != 2
  7371. "
  7372. >
  7373. <div
  7374. class="queTop"
  7375. style="
  7376. font-size: 20px;
  7377. padding: 15px 0 15px 37px;
  7378. font-weight: bold;
  7379. "
  7380. >
  7381. <!-- <div class="question" style="width: 30px">
  7382. <img src="../assets/icon/toolIcon.png" alt />
  7383. </div>
  7384. <div class="queTitle">
  7385. <div>工具</div>
  7386. </div>-->
  7387. 评一评
  7388. </div>
  7389. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7390. <div class="elist_input">
  7391. <el-table
  7392. :data="
  7393. chapInfoList[courseType].chapterInfo[0].taskJson[
  7394. taskCount
  7395. ].eList
  7396. "
  7397. :header-cell-style="{ background: '#F0F4FA' }"
  7398. :row-class-name="tableRowClassName"
  7399. border
  7400. stripe
  7401. style="width: 100%"
  7402. >
  7403. <el-table-column
  7404. label="评价名称"
  7405. width="180"
  7406. align="center"
  7407. >
  7408. <template slot-scope="scope"
  7409. ><div>{{ scope.row.value }}</div></template
  7410. >
  7411. </el-table-column>
  7412. <el-table-column
  7413. label="评价描述"
  7414. width="180"
  7415. align="center"
  7416. >
  7417. <template slot-scope="scope"
  7418. ><div>
  7419. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7420. </div></template
  7421. >
  7422. </el-table-column>
  7423. <el-table-column label="目标" align="center">
  7424. <template slot-scope="scope"
  7425. ><div>
  7426. {{
  7427. scope.row.target
  7428. ? scope.row.target[scope.row.target.length - 1]
  7429. : "-"
  7430. }}
  7431. </div></template
  7432. ></el-table-column
  7433. >
  7434. </el-table>
  7435. <!-- <div
  7436. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7437. .chapterInfo[0].taskJson[taskCount].eList"
  7438. :key="eIndex"
  7439. class="elist_input_box"
  7440. >
  7441. <div style="width: 95%">
  7442. <div
  7443. style="
  7444. display: flex;
  7445. flex-direction: row;
  7446. flex-wrap: nowrap;
  7447. align-items: center;
  7448. "
  7449. >
  7450. <div style="max-width: calc(100% - 285px)">
  7451. <span>{{ eItem.value }}</span>
  7452. </div>
  7453. <div
  7454. style="
  7455. padding-left: 25px;
  7456. display: flex;
  7457. flex-direction: row;
  7458. align-items: center;
  7459. "
  7460. >
  7461. <el-rate
  7462. v-model="eItem.score"
  7463. :colors="colors"
  7464. disabled
  7465. ></el-rate>
  7466. </div>
  7467. </div>
  7468. <div class="elist_inptu_text" style="padding-left: 10px">
  7469. <span v-if="eItem.detail != ''">{{
  7470. eItem.detail
  7471. }}</span>
  7472. <span v-else style="color: #b2b1b3; font-size: 14px"
  7473. >暂无描述...</span
  7474. >
  7475. </div>
  7476. </div>
  7477. </div> -->
  7478. </div>
  7479. <div
  7480. v-if="evalua"
  7481. style="
  7482. border: 1px solid #e5e5e5;
  7483. max-width: 650px;
  7484. width: 100%;
  7485. margin-top: 20px;
  7486. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7487. "
  7488. >
  7489. <div class="e_add_top">
  7490. <div class="e_add_title">
  7491. <span>目标管理名称</span>
  7492. <span>{{ eTitle }}</span>
  7493. <img
  7494. src="../assets/line.png"
  7495. class="cru_line"
  7496. style="
  7497. width: 125px;
  7498. height: 20px;
  7499. bottom: -10px;
  7500. left: 120px;
  7501. "
  7502. />
  7503. <!-- <el-input
  7504. v-model="eTitle"
  7505. placeholder="请输入名称"
  7506. @change="setMindData"
  7507. ></el-input>-->
  7508. </div>
  7509. </div>
  7510. <div class="e_add_content">
  7511. <div class="e_add_list_pbox">
  7512. <div class="e_add_list_pbox_title">
  7513. <span class="type_title">切换模式</span>
  7514. <div class="type_content">
  7515. <span
  7516. :class="{ active: typeMode == 1 }"
  7517. @click="typeMode = 1"
  7518. >目标树</span
  7519. >
  7520. <span
  7521. :class="{ active: typeMode == 2 }"
  7522. @click="typeMode = 2"
  7523. >目标罗盘</span
  7524. >
  7525. <!-- <span
  7526. :class="{ active: typeMode == 3 }"
  7527. @click="typeMode = 3"
  7528. >目标看板</span
  7529. > -->
  7530. </div>
  7531. </div>
  7532. <div class="e_add_list_pbox_content">
  7533. <Mind
  7534. :showBar="false"
  7535. :mindData="data"
  7536. style="width: 100%"
  7537. v-show="typeMode == 1"
  7538. ></Mind>
  7539. <Sunburst
  7540. :Josn="eJson"
  7541. :num="eJSONNum"
  7542. style="width: 100%"
  7543. v-if="typeMode == 2"
  7544. ></Sunburst>
  7545. <SeeBoard
  7546. :Josn="eJson"
  7547. :num="eJSONNum"
  7548. :ename="eTitle"
  7549. style="width: 100%"
  7550. v-if="typeMode == 3"
  7551. >
  7552. </SeeBoard>
  7553. </div>
  7554. </div>
  7555. </div>
  7556. </div>
  7557. </div>
  7558. </div>
  7559. <!-- <div
  7560. class="project_box"
  7561. style="margin-top: 15px; padding-bottom: 30px"
  7562. >
  7563. <div
  7564. style="
  7565. display: flex;
  7566. flex-wrap: nowrap;
  7567. flex-direction: column;
  7568. position: relative;
  7569. "
  7570. >
  7571. <div class="queTop">
  7572. <div class="question">
  7573. <img src="../assets/icon/homeWork.png" alt="" />
  7574. </div>
  7575. <div class="queTitle">
  7576. <div>作业提交<span>(提交图文视频等)</span></div>
  7577. <div>:任务:{{ task.task }}</div>
  7578. </div>
  7579. </div>
  7580. <div class="ediBottom">
  7581. <div
  7582. class="addEditor"
  7583. style="margin-top: 23px"
  7584. @click="openAddWork"
  7585. v-if="!isNoHomeWork"
  7586. >
  7587. 选择文件
  7588. </div>
  7589. <div
  7590. class="addEditor"
  7591. style="margin-top: 23px"
  7592. @click="openAddWork"
  7593. v-else
  7594. >
  7595. 已提交
  7596. </div>
  7597. </div>
  7598. </div>
  7599. </div>-->
  7600. </div>
  7601. </div>
  7602. <el-dialog
  7603. title="作业提交"
  7604. :visible.sync="dialogVisible"
  7605. :append-to-body="true"
  7606. width="500px"
  7607. :before-close="handleClose"
  7608. class="dialog_change"
  7609. >
  7610. <div class="marginT">
  7611. <div>上传文件</div>
  7612. <div
  7613. class="chapter_add"
  7614. @click="addImg($event)"
  7615. v-if="studyJuri[0].cover.length == 0"
  7616. >
  7617. <div class="up_photo">
  7618. <img src="../assets/icon/uploadImg.png" alt />
  7619. </div>
  7620. <!-- <input
  7621. type="file"
  7622. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7623. style="display: none"
  7624. @change="beforeUpload1($event, 1)"
  7625. /> -->
  7626. <input
  7627. type="file"
  7628. accept="*"
  7629. style="display: none"
  7630. @change="beforeUpload1($event, 1)"
  7631. />
  7632. <!-- <input
  7633. type="file"
  7634. accept="image/*"
  7635. capture="camera"
  7636. style="display: none"
  7637. @change="beforeUpload1($event, 1)"
  7638. /> -->
  7639. </div>
  7640. <div
  7641. class="chapter_add"
  7642. style="
  7643. display: flex;
  7644. width: 100%;
  7645. flex-direction: row;
  7646. flex-wrap: wrap;
  7647. justify-content: flex-start;
  7648. padding: 15px 0;
  7649. "
  7650. v-if="studyJuri[0].cover.length > 0"
  7651. >
  7652. <div class="upCover">
  7653. <img
  7654. :src="studyJuri[0].cover[0].url"
  7655. alt
  7656. v-if="fileType == 0"
  7657. />
  7658. <img :src="word" alt v-else-if="fileType == 1" />
  7659. <img :src="video" alt v-else-if="fileType == 2" />
  7660. <img :src="word2" alt v-else-if="fileType == 3" />
  7661. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7662. <div class="deleteWord" @click="clean(1)">
  7663. <img src="../assets/icon/deleteWorks.png" alt />
  7664. </div>
  7665. </div>
  7666. </div>
  7667. </div>
  7668. <div
  7669. class="upload_send"
  7670. @click="addCourseWorks(taskCount)"
  7671. v-if="!proVisible"
  7672. >
  7673. 提交
  7674. </div>
  7675. </el-dialog>
  7676. </div>
  7677. </div>
  7678. <div
  7679. class="pButton"
  7680. @click="(pzDialog = true), selectPz()"
  7681. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7682. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  7683. >
  7684. <!-- 批 -->
  7685. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  7686. </div>
  7687. <div v-if="pzDialog == true" class="newDialogCss">
  7688. <div class="pzTop2">
  7689. <!-- <div>批注</div>
  7690. <div @click="pzDialog = false">
  7691. <img src="../assets/close1.png" alt="" />
  7692. </div> -->
  7693. <div class="checkbox">
  7694. <div class="check" style="font-size: 25px; position: unset">
  7695. 评课笔记
  7696. </div>
  7697. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  7698. <el-option label="时间降序" :value="1"></el-option>
  7699. <el-option label="时间升序" :value="2"></el-option>
  7700. <el-option label="我的评课" :value="3"></el-option>
  7701. </el-select>
  7702. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7703. </div>
  7704. </div>
  7705. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7706. <div class="pzListBox" v-if="pzList && pzList.length">
  7707. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7708. <div class="pzNavTop">
  7709. <div>批</div>
  7710. <div>
  7711. {{
  7712. pz.username && pz.username.length > 5
  7713. ? pz.username.substring(0, 5) + "..."
  7714. : pz.username
  7715. }}的批注
  7716. </div>
  7717. <div
  7718. class="pzDelete"
  7719. v-if="pz.userid == userid"
  7720. @click="deletePz(pz.id)"
  7721. >
  7722. 删除
  7723. </div>
  7724. </div>
  7725. <div
  7726. @click="checkImg(getImgList(pz.content))"
  7727. class="pzContent cont"
  7728. v-html="pz.content"
  7729. v-if="pz.type == '1'"
  7730. ></div>
  7731. <div class="pzContent" v-if="pz.type == '2'">
  7732. <audio :src="pz.content" controls="controls" ref="audio">
  7733. Your browser does not support the audio element.
  7734. </audio>
  7735. </div>
  7736. <div class="pzContent" v-if="pz.type == '3'">
  7737. <img
  7738. :src="pz.content"
  7739. style="width: 90%; margin: 0 auto; display: block"
  7740. @click="previewImg(pz.content)"
  7741. />
  7742. </div>
  7743. <div class="timeAndReply">
  7744. <div class="time">
  7745. {{ pz.time }}
  7746. </div>
  7747. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  7748. </div>
  7749. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  7750. <div
  7751. v-for="(h, hIndex) in pz.hfList"
  7752. :key="hIndex"
  7753. class="hfItem"
  7754. >
  7755. <div class="whoReplyWho">
  7756. <div class="hfName">{{ h.username }}</div>
  7757. <div class="hfImg">
  7758. <img src="../assets/icon/newIcons/right.png" alt="" />
  7759. </div>
  7760. <div class="hfName">{{ pz.username }}</div>
  7761. </div>
  7762. <div class="hfContent" v-html="h.content"></div>
  7763. <div class="hfBottom">
  7764. <div class="hfTime">{{ h.time }}</div>
  7765. <div
  7766. class="deleteHfItem"
  7767. @click="deleteReply(h.id)"
  7768. v-if="userid == h.userid"
  7769. >
  7770. <img src="../assets/icon/newIcons/delete.png" alt="" />
  7771. </div>
  7772. </div>
  7773. </div>
  7774. </div>
  7775. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  7776. <div class="replyInput">
  7777. <el-input v-model="reply[pzIndex]"></el-input>
  7778. </div>
  7779. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  7780. </div> -->
  7781. </div>
  7782. </div>
  7783. <div class="noPz" v-else>
  7784. <img src="../assets/icon/noPz.png" alt="" />
  7785. </div>
  7786. <div class="addPzButton">
  7787. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7788. 添加批注
  7789. </div>
  7790. <!-- <div class="img1">
  7791. <div @click="(addPzDialog = true), (pzType = 2)">
  7792. <img src="../assets/audio.png" /><span>音频</span>
  7793. </div>
  7794. </div> -->
  7795. </div>
  7796. </div>
  7797. </div>
  7798. <div
  7799. v-if="toolDialogVisible == true"
  7800. class="toolMask"
  7801. @click="toolDialogVisible = false"
  7802. ></div>
  7803. <div v-if="toolDialogVisible == true" class="addToolCss">
  7804. <div class="toolTop">
  7805. <div style="font-weight: bold">新增工具</div>
  7806. <div @click="toolDialogVisible = false">
  7807. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  7808. </div>
  7809. </div>
  7810. <div class="tool_box">
  7811. <div class="tool_type_box">
  7812. <div class="chooseWho">
  7813. <div
  7814. :class="toolType == 0 ? 'isChooseActive' : ''"
  7815. @click="(toolType = 0), $forceUpdate()"
  7816. >
  7817. 互动类
  7818. </div>
  7819. <div
  7820. :class="toolType == 1 ? 'isChooseActive' : ''"
  7821. @click="(toolType = 1), $forceUpdate()"
  7822. >
  7823. 思维类
  7824. </div>
  7825. <div
  7826. :class="toolType == 2 ? 'isChooseActive' : ''"
  7827. @click="(toolType = 2), $forceUpdate()"
  7828. >
  7829. 测评类
  7830. </div>
  7831. <div
  7832. :class="toolType == 3 ? 'isChooseActive' : ''"
  7833. @click="(toolType = 3), $forceUpdate()"
  7834. >
  7835. 编程类
  7836. </div>
  7837. <div
  7838. :class="toolType == 5 ? 'isChooseActive' : ''"
  7839. @click="(toolType = 5), $forceUpdate()"
  7840. >
  7841. 学科类
  7842. </div>
  7843. </div>
  7844. </div>
  7845. <div>
  7846. <div class="toolSort" v-if="toolType == 0">
  7847. <div
  7848. class="tool"
  7849. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  7850. @click="addTools2(10)"
  7851. >
  7852. <div class="whiteBIcon">
  7853. <img src="../assets/icon/thirdToolList/time.png" alt />
  7854. <div style="margin: 5px 0">倒计时</div>
  7855. </div>
  7856. <div class="check">
  7857. <div
  7858. v-if="checktoolArray.indexOf(10) == -1"
  7859. class="noChoose"
  7860. ></div>
  7861. <div v-else class="isChoose"></div>
  7862. </div>
  7863. </div>
  7864. <div
  7865. class="tool"
  7866. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  7867. @click="addTools2(65)"
  7868. >
  7869. <div class="whiteBIcon">
  7870. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  7871. <div style="margin: 5px 0">挑人</div>
  7872. </div>
  7873. <div class="check">
  7874. <div
  7875. v-if="checktoolArray.indexOf(65) == -1"
  7876. class="noChoose"
  7877. ></div>
  7878. <div v-else class="isChoose"></div>
  7879. </div>
  7880. </div>
  7881. </div>
  7882. <div class="toolSort" v-if="toolType == 1">
  7883. <div
  7884. class="tool"
  7885. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  7886. @click="addTools2(7)"
  7887. >
  7888. <div class="whiteBIcon">
  7889. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  7890. <div style="margin: 5px 0">思维网格</div>
  7891. </div>
  7892. <div class="check">
  7893. <div
  7894. v-if="checktoolArray.indexOf(7) == -1"
  7895. class="noChoose"
  7896. ></div>
  7897. <div v-else class="isChoose"></div>
  7898. </div>
  7899. </div>
  7900. <div
  7901. class="tool"
  7902. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  7903. @click="addTools2(1)"
  7904. >
  7905. <div class="whiteBIcon">
  7906. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  7907. <div style="margin: 5px 0">电子白板</div>
  7908. </div>
  7909. <div class="check">
  7910. <div
  7911. v-if="checktoolArray.indexOf(1) == -1"
  7912. class="noChoose"
  7913. ></div>
  7914. <div v-else class="isChoose"></div>
  7915. </div>
  7916. </div>
  7917. <div
  7918. class="tool"
  7919. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  7920. @click="addTools2(52)"
  7921. >
  7922. <div class="whiteBIcon">
  7923. <img src="../assets/icon/fourthToolList/text.png" alt />
  7924. <div style="margin: 5px 0">文档</div>
  7925. </div>
  7926. <div class="check">
  7927. <div
  7928. v-if="checktoolArray.indexOf(52) == -1"
  7929. class="noChoose"
  7930. ></div>
  7931. <div v-else class="isChoose"></div>
  7932. </div>
  7933. </div>
  7934. <div
  7935. class="tool"
  7936. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  7937. @click="addTools2(3)"
  7938. >
  7939. <div class="whiteBIcon">
  7940. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  7941. <div style="margin: 5px 0">思维导图</div>
  7942. </div>
  7943. <div class="check">
  7944. <div
  7945. v-if="checktoolArray.indexOf(3) == -1"
  7946. class="noChoose"
  7947. ></div>
  7948. <div v-else class="isChoose"></div>
  7949. </div>
  7950. </div>
  7951. <div
  7952. class="tool"
  7953. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  7954. @click="addTools2(48)"
  7955. >
  7956. <div class="whiteBIcon">
  7957. <img src="../assets/icon/fourthToolList/table.png" alt />
  7958. <div style="margin: 5px 0">表格</div>
  7959. </div>
  7960. <div class="check">
  7961. <div
  7962. v-if="checktoolArray.indexOf(48) == -1"
  7963. class="noChoose"
  7964. ></div>
  7965. <div v-else class="isChoose"></div>
  7966. </div>
  7967. </div>
  7968. </div>
  7969. <div class="toolSort" v-if="toolType == 6">
  7970. <div v-show="tooC == 49">
  7971. <img
  7972. @click="addTools(tooC, toolIndex, taskCount)"
  7973. src="../assets/icon/fourthToolList/group.png"
  7974. alt
  7975. />
  7976. <div style="margin: 5px 0">学生分组</div>
  7977. </div>
  7978. </div>
  7979. <div class="toolSort" v-if="toolType == 2">
  7980. <div
  7981. class="tool"
  7982. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  7983. @click="addTools2(16)"
  7984. >
  7985. <div class="whiteBIcon">
  7986. <img src="../assets/icon/thirdToolList/work.png" alt />
  7987. <div style="margin: 5px 0">作业提交</div>
  7988. </div>
  7989. <div class="check">
  7990. <div
  7991. v-if="checktoolArray.indexOf(16) == -1"
  7992. class="noChoose"
  7993. ></div>
  7994. <div v-else class="isChoose"></div>
  7995. </div>
  7996. </div>
  7997. <div
  7998. class="tool"
  7999. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8000. @click="addTools2(50)"
  8001. >
  8002. <div class="whiteBIcon">
  8003. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8004. <div style="margin: 5px 0">批量上传</div>
  8005. </div>
  8006. <div class="check">
  8007. <div
  8008. v-if="checktoolArray.indexOf(50) == -1"
  8009. class="noChoose"
  8010. ></div>
  8011. <div v-else class="isChoose"></div>
  8012. </div>
  8013. </div>
  8014. </div>
  8015. <div class="toolSort" v-if="toolType == 3">
  8016. <div
  8017. class="tool"
  8018. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8019. @click="addTools2(18)"
  8020. >
  8021. <div class="whiteBIcon">
  8022. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8023. <div style="margin: 5px 0">训练平台</div>
  8024. </div>
  8025. <div class="check">
  8026. <div
  8027. v-if="checktoolArray.indexOf(18) == -1"
  8028. class="noChoose"
  8029. ></div>
  8030. <div v-else class="isChoose"></div>
  8031. </div>
  8032. </div>
  8033. <div
  8034. class="tool"
  8035. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8036. @click="addTools2(21)"
  8037. >
  8038. <div class="whiteBIcon">
  8039. <img src="../assets/icon/fourthToolList/program.png" alt />
  8040. <div style="margin: 5px 0">AIoT Blockly</div>
  8041. </div>
  8042. <div class="check">
  8043. <div
  8044. v-if="checktoolArray.indexOf(21) == -1"
  8045. class="noChoose"
  8046. ></div>
  8047. <div v-else class="isChoose"></div>
  8048. </div>
  8049. </div>
  8050. <div
  8051. class="tool"
  8052. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8053. @click="addTools2(23)"
  8054. >
  8055. <div class="whiteBIcon">
  8056. <img
  8057. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8058. alt
  8059. />
  8060. <div style="margin: 5px 0">AI Python</div>
  8061. </div>
  8062. <div class="check">
  8063. <div
  8064. v-if="checktoolArray.indexOf(23) == -1"
  8065. class="noChoose"
  8066. ></div>
  8067. <div v-else class="isChoose"></div>
  8068. </div>
  8069. </div>
  8070. <div
  8071. class="tool"
  8072. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8073. @click="addTools2(24)"
  8074. >
  8075. <div class="whiteBIcon">
  8076. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8077. <div style="margin: 5px 0">AI Blockly</div>
  8078. </div>
  8079. <div class="check">
  8080. <div
  8081. v-if="checktoolArray.indexOf(24) == -1"
  8082. class="noChoose"
  8083. ></div>
  8084. <div v-else class="isChoose"></div>
  8085. </div>
  8086. </div>
  8087. <div
  8088. class="tool"
  8089. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8090. @click="addTools2(32)"
  8091. >
  8092. <div class="whiteBIcon">
  8093. <img src="../assets/icon/thirdToolList/code.png" alt />
  8094. <div style="margin: 5px 0">源码编辑</div>
  8095. </div>
  8096. <div class="check">
  8097. <div
  8098. v-if="checktoolArray.indexOf(32) == -1"
  8099. class="noChoose"
  8100. ></div>
  8101. <div v-else class="isChoose"></div>
  8102. </div>
  8103. </div>
  8104. <div
  8105. class="tool"
  8106. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8107. @click="addTools2(57)"
  8108. >
  8109. <div class="whiteBIcon">
  8110. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8111. <div style="margin: 5px 0">CocoPi</div>
  8112. </div>
  8113. <div class="check">
  8114. <div
  8115. v-if="checktoolArray.indexOf(57) == -1"
  8116. class="noChoose"
  8117. ></div>
  8118. <div v-else class="isChoose"></div>
  8119. </div>
  8120. </div>
  8121. <div
  8122. class="tool"
  8123. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8124. @click="addTools2(63)"
  8125. >
  8126. <div class="whiteBIcon">
  8127. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8128. <div style="margin: 5px 0">海龟编程</div>
  8129. </div>
  8130. <div class="check">
  8131. <div
  8132. v-if="checktoolArray.indexOf(63) == -1"
  8133. class="noChoose"
  8134. ></div>
  8135. <div v-else class="isChoose"></div>
  8136. </div>
  8137. </div>
  8138. </div>
  8139. <div class="toolSort" v-if="toolType == 7">
  8140. <div
  8141. class="tool"
  8142. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8143. @click="addTools2(40)"
  8144. >
  8145. <div class="whiteBIcon">
  8146. <img src="../assets/icon/secondToolList/eval.png" alt />
  8147. <div style="margin: 5px 0">个人评价</div>
  8148. </div>
  8149. <div class="check">
  8150. <div
  8151. v-if="checktoolArray.indexOf(40) == -1"
  8152. class="noChoose"
  8153. ></div>
  8154. <div v-else class="isChoose"></div>
  8155. </div>
  8156. </div>
  8157. </div>
  8158. <div class="toolSort" v-if="toolType == 5">
  8159. <div
  8160. class="tool"
  8161. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8162. @click="addTools2(28)"
  8163. >
  8164. <div class="whiteBIcon">
  8165. <img src="../assets/icon/secondToolList/translation.png" alt />
  8166. <div style="margin: 5px 0">翻译</div>
  8167. </div>
  8168. <div class="check">
  8169. <div
  8170. v-if="checktoolArray.indexOf(28) == -1"
  8171. class="noChoose"
  8172. ></div>
  8173. <div v-else class="isChoose"></div>
  8174. </div>
  8175. </div>
  8176. <div
  8177. class="tool"
  8178. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8179. @click="addTools2(31)"
  8180. >
  8181. <div class="whiteBIcon">
  8182. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8183. <div style="margin: 5px 0">数字画板</div>
  8184. </div>
  8185. <div class="check">
  8186. <div
  8187. v-if="checktoolArray.indexOf(31) == -1"
  8188. class="noChoose"
  8189. ></div>
  8190. <div v-else class="isChoose"></div>
  8191. </div>
  8192. </div>
  8193. <div
  8194. class="tool"
  8195. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8196. @click="addTools2(39)"
  8197. >
  8198. <div class="whiteBIcon">
  8199. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8200. <div style="margin: 5px 0">GeoGebra</div>
  8201. </div>
  8202. <div class="check">
  8203. <div
  8204. v-if="checktoolArray.indexOf(39) == -1"
  8205. class="noChoose"
  8206. ></div>
  8207. <div v-else class="isChoose"></div>
  8208. </div>
  8209. </div>
  8210. <div
  8211. class="tool"
  8212. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8213. @click="addTools2(66)"
  8214. >
  8215. <div class="whiteBIcon">
  8216. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8217. <div style="margin: 5px 0">公式编辑</div>
  8218. </div>
  8219. <div class="check">
  8220. <div
  8221. v-if="checktoolArray.indexOf(66) == -1"
  8222. class="noChoose"
  8223. ></div>
  8224. <div v-else class="isChoose"></div>
  8225. </div>
  8226. </div>
  8227. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8228. <div class="whiteBIcon" @click="addTools2(67)">
  8229. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8230. <div style="margin: 5px 0">分子结构</div>
  8231. </div>
  8232. <div class="check" @click="addTools2(67)">
  8233. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8234. <div v-else class="isChoose"></div>
  8235. </div>
  8236. </div> -->
  8237. <div
  8238. class="tool"
  8239. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8240. @click="addTools2(68)"
  8241. >
  8242. <div class="whiteBIcon">
  8243. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8244. <div style="margin: 5px 0">时间轴</div>
  8245. </div>
  8246. <div class="check">
  8247. <div
  8248. v-if="checktoolArray.indexOf(68) == -1"
  8249. class="noChoose"
  8250. ></div>
  8251. <div v-else class="isChoose"></div>
  8252. </div>
  8253. </div>
  8254. <!-- <div
  8255. class="tool"
  8256. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8257. @click="addTools2(69)"
  8258. >
  8259. <div class="whiteBIcon">
  8260. <img src="../assets/icon/secondToolList/english.png" alt />
  8261. <div style="margin: 5px 0">英语写作</div>
  8262. </div>
  8263. <div class="check">
  8264. <div
  8265. v-if="checktoolArray.indexOf(69) == -1"
  8266. class="noChoose"
  8267. ></div>
  8268. <div v-else class="isChoose"></div>
  8269. </div>
  8270. </div> -->
  8271. </div>
  8272. <div class="toolSort" v-if="toolType == 4">
  8273. <div
  8274. class="tool"
  8275. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8276. @click="addTools2(26)"
  8277. >
  8278. <div class="whiteBIcon">
  8279. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8280. <div style="margin: 5px 0">课程设计</div>
  8281. </div>
  8282. <div class="check">
  8283. <div
  8284. v-if="checktoolArray.indexOf(26) == -1"
  8285. class="noChoose"
  8286. ></div>
  8287. <div v-else class="isChoose"></div>
  8288. </div>
  8289. </div>
  8290. <div
  8291. class="tool"
  8292. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8293. @click="addTools2(25)"
  8294. >
  8295. <div class="whiteBIcon">
  8296. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8297. <div style="margin: 5px 0">目标管理</div>
  8298. </div>
  8299. <div class="check">
  8300. <div
  8301. v-if="checktoolArray.indexOf(25) == -1"
  8302. class="noChoose"
  8303. ></div>
  8304. <div v-else class="isChoose"></div>
  8305. </div>
  8306. </div>
  8307. </div>
  8308. </div>
  8309. </div>
  8310. <span
  8311. slot="footer"
  8312. class="dialog-footer"
  8313. style="display: block; text-align: center; padding: 0 0 10px 0"
  8314. >
  8315. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8316. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8317. </span>
  8318. </div>
  8319. <div
  8320. v-if="replyDialogVisible == true"
  8321. class="addDialogCss"
  8322. v-el-drag-dialog
  8323. >
  8324. <div class="pzTop">
  8325. <div class="teacherPz">
  8326. <div class="teacherPzImg">
  8327. <img src="../assets/icon/teacherPz.png" alt="" />
  8328. </div>
  8329. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8330. </div>
  8331. <div @click="replyDialogVisible = false">
  8332. <img src="../assets/close1.png" class="pzClose" alt="" />
  8333. </div>
  8334. </div>
  8335. <div class="addPzBox">
  8336. <!-- <div class="addPzCheck">
  8337. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8338. >文本</span
  8339. >
  8340. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8341. >音频</span
  8342. >
  8343. </div> -->
  8344. <div style="height: calc(100% - 50px)">
  8345. <editor-bar
  8346. class="binfo_input pzConText"
  8347. style="width: 100% !important; margin: 0 auto"
  8348. placeholder="请输入回复描述"
  8349. v-model="reply"
  8350. @change="change"
  8351. ></editor-bar>
  8352. </div>
  8353. <div class="addTextCss" @click="addHf">确定</div>
  8354. </div>
  8355. </div>
  8356. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8357. <div class="pzTop">
  8358. <div class="teacherPz">
  8359. <div class="teacherPzImg">
  8360. <img src="../assets/icon/teacherPz.png" alt="" />
  8361. </div>
  8362. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8363. </div>
  8364. <div @click="addPzDialog = false">
  8365. <img src="../assets/close1.png" class="pzClose" alt="" />
  8366. </div>
  8367. </div>
  8368. <div class="addPzBox">
  8369. <div class="addPzCheck">
  8370. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8371. >文本</span
  8372. >
  8373. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8374. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8375. >音频</span
  8376. >
  8377. </div>
  8378. <div style="height: calc(100% - 95px)">
  8379. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8380. v-if="pzType == 1"></textarea> -->
  8381. <editor-bar
  8382. class="binfo_input pzConText"
  8383. style="width: 100% !important"
  8384. placeholder="请输入任务描述"
  8385. v-model="pzConText"
  8386. @change="change"
  8387. v-if="pzType == 1"
  8388. ></editor-bar>
  8389. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8390. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8391. <div @click="addImg($event)">
  8392. <el-button type="primary">上传图片</el-button>
  8393. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8394. @change="beforeUpload1($event, 4)" />
  8395. </div>
  8396. </div> -->
  8397. </div>
  8398. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8399. 确定
  8400. </div>
  8401. </div>
  8402. </div>
  8403. <div v-if="proVisible" class="mask">
  8404. <div class="progressBox">
  8405. <!-- <div id="closePro" class="closeCss">
  8406. <img src="../assets/icon/close.png" alt />
  8407. </div> -->
  8408. <div class="lbox">
  8409. <img src="../assets/loading.gif" />上传中,请稍后
  8410. </div>
  8411. <div style="margin-bottom: 10px">
  8412. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8413. </div>
  8414. <el-progress
  8415. :text-inside="true"
  8416. :stroke-width="20"
  8417. :percentage="progress"
  8418. style="width: 80%"
  8419. ></el-progress>
  8420. </div>
  8421. </div>
  8422. <div v-if="proVisible2" class="mask">
  8423. <div class="progressBox">
  8424. <div class="lbox">
  8425. <img src="../assets/loading.gif" />上传中,请稍后
  8426. </div>
  8427. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8428. </div>
  8429. </div>
  8430. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8431. <img width="100%" :src="dialogImageUrl" alt />
  8432. </el-dialog>
  8433. <el-dialog
  8434. :title="noteName != '' ? noteName : '查看问卷'"
  8435. :visible.sync="dialogVisible5"
  8436. :append-to-body="true"
  8437. width="1000px"
  8438. :before-close="handleClose"
  8439. class="dialog_diy dialog_diy3"
  8440. >
  8441. <div>
  8442. <div
  8443. class="a_add_title"
  8444. style="
  8445. display: flex;
  8446. flex-direction: row;
  8447. align-items: center;
  8448. justify-content: center;
  8449. "
  8450. >
  8451. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8452. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8453. </div>
  8454. <div class="a_addBox">
  8455. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8456. 题目内容
  8457. </div>
  8458. <div
  8459. class="a_add_box"
  8460. v-for="(item1, index1) in askJson.askCount"
  8461. :key="index1"
  8462. >
  8463. <div class="a_add_head">
  8464. <div style="display: flex">
  8465. <span class="askIndex"> {{ index1 + 1 }}</span>
  8466. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8467. </div>
  8468. <img
  8469. v-if="askJson.askJson[index1].img"
  8470. :src="askJson.askJson[index1].img"
  8471. style="height: 300px; margin-top: 10px; max-width: 100%"
  8472. />
  8473. </div>
  8474. <div class="a_add_body">
  8475. <div class="a_add_input">
  8476. <el-radio-group
  8477. v-model="radio[index1]"
  8478. v-if="
  8479. askJson.askJson[index1].type == '1' ||
  8480. !askJson.askJson[index1].type
  8481. "
  8482. >
  8483. <el-radio
  8484. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8485. .checkList"
  8486. :key="checkIndex"
  8487. :label="checkIndex"
  8488. :disabled="isAnswer"
  8489. class="redioStyle"
  8490. ><span v-html="item2"></span
  8491. ></el-radio>
  8492. </el-radio-group>
  8493. <el-checkbox-group
  8494. v-model="radio[index1]"
  8495. v-if="askJson.askJson[index1].type == '2'"
  8496. >
  8497. <el-checkbox
  8498. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8499. .checkList"
  8500. :key="checkIndex1"
  8501. :label="checkIndex1"
  8502. :disabled="isAnswer"
  8503. class="redioStyle"
  8504. ><span v-html="item2"></span>
  8505. </el-checkbox>
  8506. </el-checkbox-group>
  8507. </div>
  8508. </div>
  8509. </div>
  8510. </div>
  8511. </div>
  8512. <span slot="footer" class="dialog-footer">
  8513. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8514. >取 消</el-button
  8515. >
  8516. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8517. >确 定</el-button
  8518. >
  8519. </span>
  8520. </el-dialog>
  8521. <el-dialog
  8522. :title="noteName != '' ? noteName : '查看问卷'"
  8523. :visible.sync="dialogVisible5Teacher"
  8524. :append-to-body="true"
  8525. width="1000px"
  8526. :before-close="handleClose"
  8527. class="dialog_diy dialog_diy3"
  8528. >
  8529. <div>
  8530. <div class="w_name">
  8531. 学生姓名:<span>{{ sStudent.student }}</span>
  8532. </div>
  8533. <div
  8534. class="a_add_title"
  8535. style="
  8536. display: flex;
  8537. flex-direction: row;
  8538. align-items: center;
  8539. justify-content: center;
  8540. "
  8541. >
  8542. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8543. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8544. </div>
  8545. <div class="a_addBox">
  8546. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8547. 题目内容
  8548. </div>
  8549. <div
  8550. class="a_add_box"
  8551. v-for="(item1, index1) in askJson.askCount"
  8552. :key="index1"
  8553. >
  8554. <div class="a_add_head">
  8555. <div style="display: flex">
  8556. <span class="askIndex">{{ index1 + 1 }}</span>
  8557. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8558. </div>
  8559. <img
  8560. v-if="askJson.askJson[index1].img"
  8561. :src="askJson.askJson[index1].img"
  8562. style="height: 300px; margin-top: 10px; max-width: 100%"
  8563. />
  8564. </div>
  8565. <div class="a_add_body">
  8566. <div class="a_add_input">
  8567. <el-radio-group
  8568. v-model="radio[index1]"
  8569. v-if="
  8570. askJson.askJson[index1].type == '1' ||
  8571. !askJson.askJson[index1].type
  8572. "
  8573. >
  8574. <el-radio
  8575. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8576. .checkList"
  8577. :key="checkIndex"
  8578. :label="checkIndex"
  8579. :disabled="isAnswer"
  8580. class="redioStyle"
  8581. ><span v-html="item2"></span
  8582. ></el-radio>
  8583. </el-radio-group>
  8584. <el-checkbox-group
  8585. v-model="radio[index1]"
  8586. v-if="askJson.askJson[index1].type == '2'"
  8587. >
  8588. <el-checkbox
  8589. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8590. .checkList"
  8591. :key="checkIndex1"
  8592. :label="checkIndex1"
  8593. :disabled="isAnswer"
  8594. class="redioStyle"
  8595. ><span v-html="item2"></span>
  8596. </el-checkbox>
  8597. </el-checkbox-group>
  8598. </div>
  8599. </div>
  8600. </div>
  8601. </div>
  8602. </div>
  8603. <span slot="footer" class="dialog-footer">
  8604. <el-button
  8605. @click="dialogVisible5Teacher = false"
  8606. v-show="noteName == ''"
  8607. >取 消</el-button
  8608. >
  8609. <el-button
  8610. type="primary"
  8611. @click="addStudentAskTeacher"
  8612. v-show="noteName == ''"
  8613. >确 定</el-button
  8614. >
  8615. </span>
  8616. </el-dialog>
  8617. <el-dialog
  8618. :title="noteName != '' ? noteName : '查看选择题'"
  8619. :visible.sync="dialogVisibleChoice"
  8620. :append-to-body="true"
  8621. width="1000px"
  8622. :before-close="handleClose"
  8623. class="dialog_diy dialog_diy3"
  8624. >
  8625. <div>
  8626. <!-- <div class="a_add_title" style="
  8627. display: flex;
  8628. flex-direction: row;
  8629. align-items: center;
  8630. justify-content: center;
  8631. ">
  8632. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8633. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  8634. </div> -->
  8635. <div class="a_addBox">
  8636. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8637. 题目内容
  8638. </div>
  8639. <div
  8640. class="a_add_box"
  8641. v-for="(item1, index1) in testJson.testCount"
  8642. :key="index1"
  8643. >
  8644. <div class="a_add_head">
  8645. <div style="display: flex">
  8646. <span class="askIndex">{{ index1 + 1 }}</span>
  8647. <div
  8648. v-if="testJson.testJson[index1].type == '1'"
  8649. style="margin-right: 5px; min-width: 70px"
  8650. >
  8651. (单选题)
  8652. </div>
  8653. <div
  8654. v-if="testJson.testJson[index1].type == '2'"
  8655. style="margin-right: 5px; min-width: 70px"
  8656. >
  8657. (多选题)
  8658. </div>
  8659. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8660. </div>
  8661. <img
  8662. v-if="testJson.testJson[index1].img"
  8663. :src="testJson.testJson[index1].img"
  8664. style="height: 300px; margin-top: 10px; max-width: 100%"
  8665. />
  8666. </div>
  8667. <div
  8668. class="timuImgBox"
  8669. v-if="
  8670. testJson.testJson[index1].timuList &&
  8671. testJson.testJson[index1].timuList.length
  8672. "
  8673. >
  8674. <div
  8675. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8676. :key="tIndex"
  8677. class="timuImg"
  8678. @click.stop="previewImg(timg.src)"
  8679. >
  8680. <img :src="timg.src" alt="" />
  8681. </div>
  8682. </div>
  8683. <div class="a_add_body">
  8684. <div class="a_add_input">
  8685. <el-radio-group
  8686. v-model="radio[index1]"
  8687. v-if="testJson.testJson[index1].type == '1'"
  8688. >
  8689. <div class="radioBox">
  8690. <el-radio
  8691. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8692. .checkList"
  8693. :key="checkIndex"
  8694. :label="checkIndex"
  8695. :disabled="isAnswer"
  8696. class="redioStyle"
  8697. >
  8698. <div
  8699. style="margin-right: 10px"
  8700. v-if="item2 && item2.imgType && item2.imgType == 1"
  8701. >
  8702. <div class="inImg" @click.stop="previewImg(item2.src)">
  8703. <img :src="item2.src" alt="" />
  8704. </div>
  8705. </div>
  8706. <span v-else v-html="item2"></span>
  8707. </el-radio>
  8708. </div>
  8709. </el-radio-group>
  8710. <el-checkbox-group
  8711. v-model="radio[index1]"
  8712. v-if="testJson.testJson[index1].type == '2'"
  8713. >
  8714. <div class="radioBox">
  8715. <el-checkbox
  8716. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8717. .checkList"
  8718. :key="checkIndex"
  8719. :label="checkIndex"
  8720. :disabled="isAnswer"
  8721. class="redioStyle"
  8722. >
  8723. <div
  8724. style="margin-right: 10px"
  8725. v-if="item2 && item2.imgType && item2.imgType == 1"
  8726. >
  8727. <div class="inImg" @click.stop="previewImg(item2.src)">
  8728. <img :src="item2.src" alt="" />
  8729. </div>
  8730. </div>
  8731. <span v-else v-html="item2"></span>
  8732. </el-checkbox>
  8733. </div>
  8734. </el-checkbox-group>
  8735. </div>
  8736. </div>
  8737. </div>
  8738. </div>
  8739. </div>
  8740. <span slot="footer" class="dialog-footer">
  8741. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  8742. >取 消</el-button
  8743. >
  8744. <el-button
  8745. type="primary"
  8746. @click="addStudentTest"
  8747. v-show="noteName == ''"
  8748. >确 定</el-button
  8749. >
  8750. </span>
  8751. </el-dialog>
  8752. <el-dialog
  8753. :title="noteName != '' ? noteName : '查看选择题'"
  8754. :visible.sync="dialogVisibleChoiceTeacher"
  8755. :append-to-body="true"
  8756. width="1000px"
  8757. :before-close="handleClose"
  8758. class="dialog_diy dialog_diy3"
  8759. >
  8760. <div>
  8761. <div class="w_name">
  8762. 学生姓名:<span>{{ sStudent.student }}</span>
  8763. </div>
  8764. <div class="a_addBox">
  8765. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8766. 题目内容
  8767. </div>
  8768. <div
  8769. class="a_add_box"
  8770. v-for="(item1, index1) in testJson.testCount"
  8771. :key="index1"
  8772. >
  8773. <div class="a_add_head">
  8774. <div style="display: flex">
  8775. <span class="askIndex">{{ index1 + 1 }}</span>
  8776. <div
  8777. v-if="testJson.testJson[index1].type == '1'"
  8778. style="margin-right: 5px; min-width: 70px"
  8779. >
  8780. (单选题)
  8781. </div>
  8782. <div
  8783. v-if="testJson.testJson[index1].type == '2'"
  8784. style="margin-right: 5px; min-width: 70px"
  8785. >
  8786. (多选题)
  8787. </div>
  8788. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8789. </div>
  8790. <img
  8791. v-if="testJson.testJson[index1].img"
  8792. :src="testJson.testJson[index1].img"
  8793. style="height: 300px; margin-top: 10px; max-width: 100%"
  8794. />
  8795. </div>
  8796. <div
  8797. class="timuImgBox"
  8798. v-if="
  8799. testJson.testJson[index1].timuList &&
  8800. testJson.testJson[index1].timuList.length
  8801. "
  8802. >
  8803. <div
  8804. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8805. :key="tIndex"
  8806. class="timuImg"
  8807. @click.stop="previewImg(timg.src)"
  8808. >
  8809. <img :src="timg.src" alt="" />
  8810. </div>
  8811. </div>
  8812. <div class="a_add_body">
  8813. <div class="a_add_input">
  8814. <el-radio-group
  8815. v-model="radio[index1]"
  8816. v-if="testJson.testJson[index1].type == '1'"
  8817. >
  8818. <div class="radioBox">
  8819. <el-radio
  8820. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8821. .checkList"
  8822. :key="checkIndex"
  8823. :label="checkIndex"
  8824. :disabled="isAnswer"
  8825. class="redioStyle"
  8826. >
  8827. <div
  8828. style="margin-right: 10px"
  8829. v-if="item2 && item2.imgType && item2.imgType == 1"
  8830. >
  8831. <div class="inImg" @click.stop="previewImg(item2.src)">
  8832. <img :src="item2.src" alt="" />
  8833. </div>
  8834. </div>
  8835. <span v-else v-html="item2"></span>
  8836. </el-radio>
  8837. </div>
  8838. </el-radio-group>
  8839. <el-checkbox-group
  8840. v-model="radio[index1]"
  8841. v-if="testJson.testJson[index1].type == '2'"
  8842. >
  8843. <div class="radioBox">
  8844. <el-checkbox
  8845. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8846. .checkList"
  8847. :key="checkIndex"
  8848. :label="checkIndex"
  8849. :disabled="isAnswer"
  8850. class="redioStyle"
  8851. >
  8852. <div
  8853. style="margin-right: 10px"
  8854. v-if="item2 && item2.imgType && item2.imgType == 1"
  8855. >
  8856. <div class="inImg" @click.stop="previewImg(item2.src)">
  8857. <img :src="item2.src" alt="" />
  8858. </div>
  8859. </div>
  8860. <span v-else v-html="item2"></span>
  8861. </el-checkbox>
  8862. </div>
  8863. </el-checkbox-group>
  8864. </div>
  8865. </div>
  8866. </div>
  8867. </div>
  8868. </div>
  8869. <span slot="footer" class="dialog-footer">
  8870. <el-button
  8871. @click="dialogVisibleChoiceTeacher = false"
  8872. v-show="noteName == ''"
  8873. >取 消</el-button
  8874. >
  8875. <el-button
  8876. type="primary"
  8877. @click="addStudentTestTeacher"
  8878. v-show="noteName == ''"
  8879. >确 定</el-button
  8880. >
  8881. </span>
  8882. </el-dialog>
  8883. <el-dialog
  8884. title="查看富文本"
  8885. :visible.sync="dialogVisible1"
  8886. :append-to-body="true"
  8887. width="500px"
  8888. :before-close="handleClose"
  8889. class="dialog_diy textCss"
  8890. >
  8891. <el-form style="font-size: 20px">
  8892. <el-form-item label="文本标题" class="textTitle">
  8893. <div style="font-size: 20px">{{ text.name }}</div>
  8894. </el-form-item>
  8895. <div>富文本内容</div>
  8896. <div
  8897. v-html="text.url"
  8898. style="font-size: 18px; padding: 40px 0 0 0"
  8899. ></div>
  8900. </el-form>
  8901. <span slot="footer" class="dialog-footer">
  8902. <el-button type="primary" @click="dialogVisible1 = false"
  8903. >确定</el-button
  8904. >
  8905. </span>
  8906. </el-dialog>
  8907. <el-dialog
  8908. title="文件预览"
  8909. :visible.sync="dialogVisible3"
  8910. width="50%"
  8911. :before-close="handleClose"
  8912. class="dialog_diy"
  8913. :class="{ fullStyle: full }"
  8914. >
  8915. <div slot="title" class="header-title">
  8916. <div style="color: #fff">文件预览</div>
  8917. <div style="position: absolute; top: 19px; right: 50px">
  8918. <img
  8919. src="../assets/full.png"
  8920. style="height: 16px; cursor: pointer"
  8921. alt=""
  8922. @click="fullTools"
  8923. />
  8924. </div>
  8925. </div>
  8926. <pdf
  8927. v-if="showPDF"
  8928. :pdfUrl="pptImgUrl"
  8929. style="width: 100%; height: 520px; overflow: auto"
  8930. :class="{ fullStyle: full }"
  8931. ></pdf>
  8932. <iframe
  8933. v-else
  8934. :src="pptImgUrl"
  8935. frameborder="0"
  8936. width="100%"
  8937. height="600"
  8938. :class="{ fullStyle: full }"
  8939. ></iframe>
  8940. </el-dialog>
  8941. <el-dialog
  8942. title="文件预览"
  8943. :visible.sync="dialogVisible6"
  8944. width="50%"
  8945. :before-close="handleClose"
  8946. class="dialog_diy"
  8947. >
  8948. <iframe
  8949. :src="pptImgUrl1"
  8950. frameborder="0"
  8951. width="100%"
  8952. height="600"
  8953. ></iframe>
  8954. </el-dialog>
  8955. <el-dialog
  8956. title="提示"
  8957. :visible.sync="dialogVisible4"
  8958. :append-to-body="true"
  8959. width="800px"
  8960. :before-close="handleClose"
  8961. class="dialog_diy notice"
  8962. >
  8963. <div>此功能暂未开放!</div>
  8964. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  8965. </el-dialog>
  8966. <el-dialog
  8967. title="问答"
  8968. :visible.sync="answerDialogVisible"
  8969. :append-to-body="true"
  8970. width="800px"
  8971. :before-close="handleClose"
  8972. class="dialog_diy"
  8973. >
  8974. <div>
  8975. <div
  8976. style="
  8977. display: flex;
  8978. flex-wrap: nowrap;
  8979. flex-direction: column;
  8980. position: relative;
  8981. "
  8982. >
  8983. <div class="queTop" style="padding: 20px 0 20px 0">
  8984. <div class="question">
  8985. <img src="../assets/icon/question.png" alt />
  8986. </div>
  8987. <div class="queTitle">
  8988. <div style="width: 90px; min-width: 90px">提问:</div>
  8989. <div>{{ answerQ }}</div>
  8990. </div>
  8991. </div>
  8992. <div class="ediBottom">
  8993. <textarea
  8994. rows="6"
  8995. class="binfo_input"
  8996. cols
  8997. style="width: 95%; height: 120px"
  8998. v-model="questionAnswer"
  8999. ></textarea>
  9000. </div>
  9001. </div>
  9002. </div>
  9003. <div slot="footer">
  9004. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9005. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9006. </div>
  9007. </el-dialog>
  9008. <el-dialog
  9009. title="问答"
  9010. :visible.sync="answerDialogVisibleTeacher"
  9011. :append-to-body="true"
  9012. width="800px"
  9013. :before-close="handleClose"
  9014. class="dialog_diy"
  9015. >
  9016. <div>
  9017. <div class="w_name">
  9018. 学生姓名:<span>{{ sStudent.student }}</span>
  9019. </div>
  9020. <div
  9021. style="
  9022. display: flex;
  9023. flex-wrap: nowrap;
  9024. flex-direction: column;
  9025. position: relative;
  9026. "
  9027. >
  9028. <div class="queTop" style="padding: 20px 0 20px 0">
  9029. <div class="question">
  9030. <img src="../assets/icon/question.png" alt />
  9031. </div>
  9032. <div class="queTitle">
  9033. <div style="width: 90px; min-width: 90px">提问:</div>
  9034. <div>{{ answerQ }}</div>
  9035. </div>
  9036. </div>
  9037. <div class="ediBottom">
  9038. <textarea
  9039. rows="6"
  9040. class="binfo_input"
  9041. cols
  9042. style="width: 95%; height: 120px"
  9043. v-model="questionAnswer"
  9044. ></textarea>
  9045. </div>
  9046. </div>
  9047. </div>
  9048. <div slot="footer">
  9049. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9050. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9051. </div>
  9052. </el-dialog>
  9053. <el-dialog
  9054. title="倒计时"
  9055. :visible.sync="timeDialogVisible"
  9056. :append-to-body="true"
  9057. width="800px"
  9058. :before-close="handleClose"
  9059. class="dialog_diy"
  9060. >
  9061. <div>
  9062. <div style="margin-bottom: 20px; color: #999">
  9063. 提示:点击“+”或“-”修改倒计时时长。
  9064. </div>
  9065. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9066. </div>
  9067. <div slot="footer">
  9068. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9069. </div>
  9070. </el-dialog>
  9071. <el-dialog
  9072. title="权限设置"
  9073. :visible.sync="juriVisible"
  9074. :append-to-body="true"
  9075. width="400px"
  9076. :before-close="handleClose"
  9077. class="dialog_diy"
  9078. >
  9079. <div>
  9080. <div class="open_box">
  9081. <div class="switch_box">
  9082. <span>允许学生查看所有作业</span>
  9083. <el-switch
  9084. v-model="sIsOpen"
  9085. active-text=""
  9086. class="switchCss"
  9087. @change="updateSLook"
  9088. ></el-switch>
  9089. </div>
  9090. <div
  9091. class="switch_box"
  9092. v-if="
  9093. courseDetail.userid == userid ||
  9094. (courseDetail.course_teacher &&
  9095. courseDetail.course_teacher.indexOf(userid) != -1)
  9096. "
  9097. >
  9098. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9099. <span>禁止学生查看所有阶段</span>
  9100. <el-switch
  9101. v-model="IsLookOpen"
  9102. active-text=""
  9103. class="switchCss"
  9104. @change="updateLookOpen"
  9105. ></el-switch>
  9106. </div>
  9107. <div class="switch_box" v-if="courseDetail.userid == userid">
  9108. <span>开启跟随模式</span>
  9109. <el-switch
  9110. v-model="IsFollow"
  9111. active-text=""
  9112. class="switchCss"
  9113. @change="updateFollow"
  9114. ></el-switch>
  9115. </div>
  9116. </div>
  9117. </div>
  9118. <div slot="footer">
  9119. <el-button
  9120. style="background: #409efe; color: #fff"
  9121. @click="juriVisible = false"
  9122. >关 闭</el-button
  9123. >
  9124. </div>
  9125. </el-dialog>
  9126. <el-dialog
  9127. title="查看视频"
  9128. :visible.sync="videoVisible"
  9129. :append-to-body="true"
  9130. width="1000px"
  9131. :before-close="handleClose"
  9132. class="dialog_diy1"
  9133. >
  9134. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9135. <video-player
  9136. class="video-player vjs-custom-skin"
  9137. :playsinline="true"
  9138. :options="videoDetail"
  9139. @play="onPlayerPlay($event)"
  9140. style="width: 100%; height: 100%"
  9141. ></video-player>
  9142. </div>
  9143. <div slot="footer">
  9144. <el-button
  9145. style="background: #409efe; color: #fff"
  9146. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9147. >
  9148. 关 闭</el-button
  9149. >
  9150. </div>
  9151. </el-dialog>
  9152. <el-dialog
  9153. title="查看详情"
  9154. :visible.sync="commentDialogVisible"
  9155. :append-to-body="true"
  9156. width="800px"
  9157. :before-close="handleClose"
  9158. class="dialog_diy"
  9159. >
  9160. <div class="commentTop">
  9161. <div class="studentDetail">
  9162. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9163. <div class="nameAndTime">
  9164. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9165. <div>{{ commentDetail.time }}</div>
  9166. </div>
  9167. <div
  9168. class="returnBtn"
  9169. style="margin-left: auto; width: 80px"
  9170. v-if="
  9171. commentDetail.works &&
  9172. commentDetail.type == 0 &&
  9173. (tType == 1 || tType == 4)
  9174. "
  9175. @click="
  9176. showPicturePaint(
  9177. commentDetail.img ? commentDetail.img : commentDetail.works
  9178. )
  9179. "
  9180. >
  9181. 教师批注
  9182. </div>
  9183. </div>
  9184. <div
  9185. class="worksAnswer"
  9186. v-if="commentDetail.works && commentDetail.type == 2"
  9187. >
  9188. {{ JSON.parse(commentDetail.works)[0].answer }}
  9189. </div>
  9190. <div
  9191. class="worksAnswer"
  9192. v-if="commentDetail.works && commentDetail.type == 1"
  9193. >
  9194. <img
  9195. src="../assets/teacherWork.png"
  9196. v-if="commentDetail.ateacher"
  9197. class="w_teachert"
  9198. />
  9199. <pdf
  9200. v-if="showPDF"
  9201. :pdfUrl="pptImgUrl"
  9202. style="width: 100%; height: 520px; overflow: auto"
  9203. :class="{ fullStyle: full }"
  9204. ></pdf>
  9205. <iframe
  9206. v-else
  9207. :src="pptImgUrl"
  9208. frameborder="0"
  9209. width="100%"
  9210. height="600"
  9211. :class="{ fullStyle: full }"
  9212. ></iframe>
  9213. </div>
  9214. <div
  9215. class="worksAnswer"
  9216. v-if="commentDetail.works && commentDetail.type == 0"
  9217. >
  9218. <img
  9219. src="../assets/teacherWork.png"
  9220. v-if="commentDetail.ateacher"
  9221. class="w_teachert"
  9222. style="right: 105px"
  9223. />
  9224. <img
  9225. :src="commentDetail.works"
  9226. alt=""
  9227. @click="previewImg(commentDetail.works)"
  9228. />
  9229. </div>
  9230. <div
  9231. class="worksAnswer"
  9232. v-if="commentDetail.works && commentDetail.type == 3"
  9233. >
  9234. <img
  9235. src="../assets/teacherWork.png"
  9236. v-if="commentDetail.ateacher"
  9237. class="w_teachert"
  9238. />
  9239. <video-player
  9240. class="video-player vjs-custom-skin"
  9241. :playsinline="true"
  9242. :options="videoDetail"
  9243. @play="onPlayerPlay($event)"
  9244. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9245. ></video-player>
  9246. </div>
  9247. <div
  9248. class="worksAnswer"
  9249. v-if="commentDetail.works && commentDetail.type == 10"
  9250. >
  9251. <div class="cont" v-html="commentDetail.works.text"></div>
  9252. </div>
  9253. <div
  9254. class="worksAnswer codeFileBox"
  9255. v-if="commentDetail.works && commentDetail.type == 12"
  9256. @click="downloadFile(commentDetail.works)"
  9257. >
  9258. <img src="../assets/icon/codeFile.png" />
  9259. <div>点击下载文件</div>
  9260. </div>
  9261. <div
  9262. class="worksAnswer codeFileBox"
  9263. v-if="commentDetail.works && commentDetail.type == 15"
  9264. @click="
  9265. openCocoPi(
  9266. 57,
  9267. commentIndexJson.toolIndex,
  9268. commentDetail.userid,
  9269. commentDetail.sName
  9270. )
  9271. "
  9272. >
  9273. <img src="../assets/icon/codeFile.png" />
  9274. <div>点击打开CocoPi</div>
  9275. </div>
  9276. <div
  9277. class="worksAnswer"
  9278. v-if="commentDetail.works && commentDetail.type == 13"
  9279. >
  9280. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9281. </div>
  9282. <div
  9283. class="worksAnswer"
  9284. v-if="commentDetail.works && commentDetail.type == 4"
  9285. >
  9286. <div class="evalCss">
  9287. <div class="nav">请选择星星进行评分</div>
  9288. <div class="middleBox" v-if="eScore.eStar">
  9289. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9290. <div class="nameAndrate">
  9291. <div>{{ e.value }}</div>
  9292. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9293. </div>
  9294. <div v-if="e.detail">{{ e.detail }}</div>
  9295. </div>
  9296. <div class="bz">
  9297. <textarea
  9298. disabled
  9299. rows="4"
  9300. class="pj"
  9301. style="
  9302. padding: 10px 5px;
  9303. width: 70%;
  9304. background: #f7f6f9;
  9305. font-size: 14px;
  9306. text-indent: 10px;
  9307. color: #000;
  9308. "
  9309. cols
  9310. v-model="eScore.eBzText"
  9311. placeholder="请输入评价内容..."
  9312. ></textarea>
  9313. </div>
  9314. </div>
  9315. </div>
  9316. </div>
  9317. <div class="comment">
  9318. <div class="commentList">
  9319. <div class="commentImg">
  9320. <img
  9321. @click="
  9322. isLikes(
  9323. commentDetail.wid,
  9324. userid,
  9325. 1,
  9326. null,
  9327. commentDetail.isLikes
  9328. )
  9329. "
  9330. :src="commentDetail.isLikes == true ? likes : noLikes"
  9331. alt=""
  9332. />
  9333. </div>
  9334. <div>{{ commentDetail.likesCount }}</div>
  9335. </div>
  9336. <div class="commentList">
  9337. <div class="commentImg">
  9338. <img src="../assets/icon/comment/comment.png" alt="" />
  9339. </div>
  9340. <div>{{ commentDetail.commentCount }}</div>
  9341. </div>
  9342. </div>
  9343. <div class="drawPBox" v-if="commentDetail.img">
  9344. <span>教师批注</span>
  9345. <img
  9346. :src="commentDetail.img"
  9347. alt=""
  9348. @click="previewImg(commentDetail.img)"
  9349. />
  9350. <span
  9351. class="deleteImg"
  9352. v-if="tType == 1 || tType == 4"
  9353. @click.stop="deletePicturePaint(commentDetail.wid)"
  9354. style="
  9355. font-size: 14px;
  9356. width: auto !important;
  9357. color: #b4b4b4;
  9358. top: unset;
  9359. bottom: 0;
  9360. border: none;
  9361. padding: 0;
  9362. height: auto !important;
  9363. margin: 0;
  9364. "
  9365. >删除</span
  9366. >
  9367. </div>
  9368. </div>
  9369. <div class="commentBox">
  9370. <div class="pl">评论:</div>
  9371. <div style="max-height: 200px; overflow: auto">
  9372. <div
  9373. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9374. style="padding: 10px 0 0 0"
  9375. >
  9376. <div
  9377. class="studentDetail"
  9378. style="padding-top: 10px"
  9379. v-for="(co, coIndex) in commentDetail.commentJson"
  9380. :key="coIndex"
  9381. >
  9382. <div class="tx" style="min-width: 50px">
  9383. <img src="../assets/avatar.png" alt="" />
  9384. </div>
  9385. <div class="plPerson">
  9386. <div class="plName">
  9387. <div>{{ co.commentPeople }}</div>
  9388. <div style="margin-left: 5px">
  9389. {{ co.commentTime }}
  9390. </div>
  9391. <div
  9392. class="deleteComment"
  9393. v-if="userid == co.userid"
  9394. @click="deleteComment(co.wid)"
  9395. >
  9396. 删除
  9397. </div>
  9398. </div>
  9399. <div class="plContent">{{ co.commentText }}</div>
  9400. </div>
  9401. </div>
  9402. </div>
  9403. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9404. </div>
  9405. </div>
  9406. <div style="margin-top: 10px">
  9407. <div class="displayBox">
  9408. <div
  9409. style="
  9410. color: #556db4;
  9411. font-size: 14px;
  9412. font-weight: bold;
  9413. padding-bottom: 10px;
  9414. "
  9415. >
  9416. 评价
  9417. </div>
  9418. <div class="easy_comment" v-if="false">
  9419. <div
  9420. v-for="(p, pIndex) in PlTextList"
  9421. :key="pIndex"
  9422. @click="fastText(p, 1)"
  9423. >
  9424. {{ p }}
  9425. </div>
  9426. </div>
  9427. </div>
  9428. <div>
  9429. <textarea
  9430. rows="3"
  9431. class="pj"
  9432. style="padding: 10px 5px"
  9433. cols
  9434. v-model="commentText"
  9435. placeholder="请输入评论"
  9436. ></textarea>
  9437. </div>
  9438. </div>
  9439. <div slot="footer">
  9440. <el-button
  9441. @click="
  9442. (commentDialogVisible = false),
  9443. (commentIndexJson = {}),
  9444. videoDetail.sources && videoDetail.sources[0]
  9445. ? (videoDetail.sources[0].src = '')
  9446. : ''
  9447. "
  9448. >取 消</el-button
  9449. >
  9450. <el-button
  9451. type="primary"
  9452. @click="addComment(commentDetail.wid, userid, 2)"
  9453. >确 定</el-button
  9454. >
  9455. </div>
  9456. </el-dialog>
  9457. <el-dialog
  9458. title="查看文档"
  9459. :visible.sync="fullDialogVisible"
  9460. :append-to-body="true"
  9461. width="100%"
  9462. :before-close="handleClose"
  9463. :show-close="false"
  9464. class="dialog_diy full_diy"
  9465. :class="{ full_diy2: fulltype == 3 }"
  9466. >
  9467. <div slot="title" class="header-title">
  9468. <div style="color: #fff">查看文档</div>
  9469. <div
  9470. @click="fullDialogVisible = false"
  9471. style="
  9472. cursor: pointer;
  9473. position: absolute;
  9474. top: 20px;
  9475. right: 20px;
  9476. color: #fff;
  9477. "
  9478. >
  9479. 退出全屏
  9480. </div>
  9481. </div>
  9482. <div style="height: 100%">
  9483. <div
  9484. class="wheel"
  9485. v-if="
  9486. fulltype == 2 &&
  9487. fullUrl.indexOf(
  9488. 'https://view.officeapps.live.com/op/view.aspx?src='
  9489. ) != -1
  9490. "
  9491. style="width: 95%; margin: 0 auto"
  9492. >
  9493. <iframe
  9494. style="width: 100%; height: 100%; border: none"
  9495. :src="fullUrl"
  9496. ></iframe>
  9497. </div>
  9498. <iframe
  9499. v-else-if="fulltype == 2"
  9500. style="width: 100%; height: 100%; border: none"
  9501. :src="fullUrl"
  9502. security="restricted"
  9503. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9504. ></iframe>
  9505. <pdf
  9506. v-else-if="fulltype == 3"
  9507. :pdfUrl="fullUrl"
  9508. style="width: 100%; height: 100%; overflow: auto"
  9509. ></pdf>
  9510. <div
  9511. class="wheel"
  9512. v-if="fulltype == 1"
  9513. style="
  9514. box-shadow: 0 0 6px 1px #f2f2f2;
  9515. width: 100%;
  9516. background: #f1f1f1;
  9517. "
  9518. >
  9519. <div class="title" style="width: 100%; box-sizing: border-box">
  9520. 查看文档
  9521. </div>
  9522. <el-form class="textBox" style="height: 90%">
  9523. <el-form-item class="textTitle">
  9524. <div style="font-size: 22px">
  9525. {{ fullUrl.name }}
  9526. </div>
  9527. </el-form-item>
  9528. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9529. <div
  9530. v-html="fullUrl.url"
  9531. class="textContent"
  9532. style="height: auto"
  9533. ></div>
  9534. </el-form>
  9535. </div>
  9536. </div>
  9537. <!-- <div slot="footer">
  9538. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9539. </div> -->
  9540. </el-dialog>
  9541. <el-dialog
  9542. title="个人评价"
  9543. :visible.sync="studentEvalDialogVisible"
  9544. :append-to-body="true"
  9545. width="800px"
  9546. :before-close="handleClose"
  9547. class="dialog_diy"
  9548. >
  9549. <div class="evalCss">
  9550. <div class="nav">请选择星星进行评分</div>
  9551. <div class="middleBox" v-if="eScore.eStar">
  9552. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9553. <div class="nameAndrate">
  9554. <div>{{ e.value }}</div>
  9555. <el-rate
  9556. v-model="eScore.eStar[eIndex]"
  9557. :disabled="isStar"
  9558. ></el-rate>
  9559. </div>
  9560. <div v-if="e.detail">{{ e.detail }}</div>
  9561. </div>
  9562. <div class="easy_comment" v-if="false">
  9563. <div
  9564. v-for="(p, pIndex) in PlTextList"
  9565. :key="pIndex"
  9566. @click="fastText(p, 2)"
  9567. >
  9568. {{ p }}
  9569. </div>
  9570. </div>
  9571. <div class="bz">
  9572. <textarea
  9573. :disabled="isStar"
  9574. rows="4"
  9575. class="pj"
  9576. style="
  9577. padding: 10px 5px;
  9578. width: 70%;
  9579. background: #f7f6f9;
  9580. font-size: 14px;
  9581. text-indent: 10px;
  9582. "
  9583. cols
  9584. v-model="eScore.eBzText"
  9585. placeholder="请输入评价内容..."
  9586. ></textarea>
  9587. </div>
  9588. </div>
  9589. </div>
  9590. <div slot="footer">
  9591. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9592. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9593. >确 定</el-button
  9594. >
  9595. </div>
  9596. </el-dialog>
  9597. <el-dialog
  9598. title="个人评价"
  9599. :visible.sync="studentEvalDialogVisibleTeacher"
  9600. :append-to-body="true"
  9601. width="800px"
  9602. :before-close="handleClose"
  9603. class="dialog_diy"
  9604. >
  9605. <div class="w_name">
  9606. 学生姓名:<span>{{ sStudent.student }}</span>
  9607. </div>
  9608. <div class="evalCss">
  9609. <div class="nav">请选择星星进行评分</div>
  9610. <div class="middleBox" v-if="eScore.eStar">
  9611. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9612. <div class="nameAndrate">
  9613. <div>{{ e.value }}</div>
  9614. <el-rate
  9615. v-model="eScore.eStar[eIndex]"
  9616. :disabled="isStar"
  9617. ></el-rate>
  9618. </div>
  9619. <div v-if="e.detail">{{ e.detail }}</div>
  9620. </div>
  9621. <div class="easy_comment" v-if="false">
  9622. <div
  9623. v-for="(p, pIndex) in PlTextList"
  9624. :key="pIndex"
  9625. @click="fastText(p, 2)"
  9626. >
  9627. {{ p }}
  9628. </div>
  9629. </div>
  9630. <div class="bz">
  9631. <textarea
  9632. :disabled="isStar"
  9633. rows="4"
  9634. class="pj"
  9635. style="
  9636. padding: 10px 5px;
  9637. width: 70%;
  9638. background: #f7f6f9;
  9639. font-size: 14px;
  9640. text-indent: 10px;
  9641. "
  9642. cols
  9643. v-model="eScore.eBzText"
  9644. placeholder="请输入评价内容..."
  9645. ></textarea>
  9646. </div>
  9647. </div>
  9648. </div>
  9649. <div slot="footer">
  9650. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9651. >取 消</el-button
  9652. >
  9653. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9654. >确 定</el-button
  9655. >
  9656. </div>
  9657. </el-dialog>
  9658. <el-dialog
  9659. title="选择匹配"
  9660. :visible.sync="dialogVisibleSelect"
  9661. :append-to-body="true"
  9662. width="90%"
  9663. :before-close="handleClose"
  9664. class="dialog_diy dialog_diy3"
  9665. >
  9666. <div v-if="selectJson">
  9667. <div class="select_box2">
  9668. <div class="select_box2_title">
  9669. <div>选择匹配</div>
  9670. <div>请选择对应的答案进行答题!</div>
  9671. </div>
  9672. <div class="select_box2_box">
  9673. <div class="select_box2_img">
  9674. <img
  9675. :src="selectJson.url"
  9676. @click="previewImg(selectJson.url)"
  9677. alt=""
  9678. />
  9679. </div>
  9680. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9681. <div style="padding-top: 15px">
  9682. <div class="select_answer_title" v-if="isSelect">
  9683. {{ selectAnswer.stu }}
  9684. </div>
  9685. <div class="select_answer_title" v-else>
  9686. 根据题目选择对应答案
  9687. </div>
  9688. <div
  9689. class="select_box2_answer_box"
  9690. v-for="(item2, checkIndex) in selectJson.select"
  9691. :key="checkIndex"
  9692. >
  9693. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9694. <el-select
  9695. :disabled="isSelect"
  9696. v-model="selectAnswer.answer[checkIndex]"
  9697. placeholder="请选择正确答案"
  9698. >
  9699. <el-option
  9700. v-for="(e, eIndex) in selectJson.select"
  9701. :key="eIndex"
  9702. :label="e"
  9703. :value="eIndex"
  9704. >
  9705. </el-option>
  9706. </el-select>
  9707. </div>
  9708. </div>
  9709. <div
  9710. class="rightAnswerCss"
  9711. v-if="isSelect && (tType == 1 || tType == 4)"
  9712. >
  9713. <div
  9714. v-for="(a, aIndex) in selectJson.answer"
  9715. :key="aIndex"
  9716. class="rightAnswer"
  9717. >
  9718. <div
  9719. v-if="selectAnswer.answer[aIndex] === a"
  9720. style="color: #767de1"
  9721. >
  9722. 回答正确
  9723. </div>
  9724. <div v-else>回答错误</div>
  9725. <div
  9726. style="margin-left: 10px"
  9727. v-if="selectAnswer.answer[aIndex] !== a"
  9728. >
  9729. 正确答案:
  9730. </div>
  9731. <div
  9732. :class="
  9733. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9734. "
  9735. >
  9736. {{ selectJson.select[a] }}
  9737. </div>
  9738. </div>
  9739. </div>
  9740. </div>
  9741. <div class="upAnswerCss">
  9742. <el-button
  9743. type="primary"
  9744. @click="addSelectAnswer"
  9745. v-if="!isSelect"
  9746. >提交答案</el-button
  9747. >
  9748. </div>
  9749. </div>
  9750. </div>
  9751. </div>
  9752. </el-dialog>
  9753. <el-dialog
  9754. title="选择匹配"
  9755. :visible.sync="dialogVisibleSelectTeacher"
  9756. :append-to-body="true"
  9757. width="90%"
  9758. :before-close="handleClose"
  9759. class="dialog_diy dialog_diy3"
  9760. >
  9761. <div v-if="selectJson">
  9762. <div class="w_name">
  9763. 学生姓名:<span>{{ sStudent.student }}</span>
  9764. </div>
  9765. <div class="select_box2">
  9766. <div class="select_box2_title">
  9767. <div>选择匹配</div>
  9768. <div>请选择对应的答案进行答题!</div>
  9769. </div>
  9770. <div class="select_box2_box">
  9771. <div class="select_box2_img">
  9772. <img
  9773. :src="selectJson.url"
  9774. @click="previewImg(selectJson.url)"
  9775. alt=""
  9776. />
  9777. </div>
  9778. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9779. <div style="padding-top: 15px">
  9780. <div class="select_answer_title" v-if="isSelect">
  9781. {{ selectAnswer.stu }}
  9782. </div>
  9783. <div class="select_answer_title" v-else>
  9784. 根据题目选择对应答案
  9785. </div>
  9786. <div
  9787. class="select_box2_answer_box"
  9788. v-for="(item2, checkIndex) in selectJson.select"
  9789. :key="checkIndex"
  9790. >
  9791. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9792. <el-select
  9793. :disabled="isSelect"
  9794. v-model="selectAnswer.answer[checkIndex]"
  9795. placeholder="请选择正确答案"
  9796. >
  9797. <el-option
  9798. v-for="(e, eIndex) in selectJson.select"
  9799. :key="eIndex"
  9800. :label="e"
  9801. :value="eIndex"
  9802. >
  9803. </el-option>
  9804. </el-select>
  9805. </div>
  9806. </div>
  9807. <div
  9808. class="rightAnswerCss"
  9809. v-if="isSelect && (tType == 1 || tType == 4)"
  9810. >
  9811. <div
  9812. v-for="(a, aIndex) in selectJson.answer"
  9813. :key="aIndex"
  9814. class="rightAnswer"
  9815. >
  9816. <div
  9817. v-if="selectAnswer.answer[aIndex] === a"
  9818. style="color: #767de1"
  9819. >
  9820. 回答正确
  9821. </div>
  9822. <div v-else>回答错误</div>
  9823. <div
  9824. style="margin-left: 10px"
  9825. v-if="selectAnswer.answer[aIndex] !== a"
  9826. >
  9827. 正确答案:
  9828. </div>
  9829. <div
  9830. :class="
  9831. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9832. "
  9833. >
  9834. {{ selectJson.select[a] }}
  9835. </div>
  9836. </div>
  9837. </div>
  9838. </div>
  9839. <div class="upAnswerCss">
  9840. <el-button
  9841. type="primary"
  9842. @click="addSelectAnswerTeacher"
  9843. v-if="!isSelect"
  9844. >提交答案</el-button
  9845. >
  9846. </div>
  9847. </div>
  9848. </div>
  9849. </div>
  9850. </el-dialog>
  9851. <el-dialog
  9852. title="教师评分"
  9853. :visible.sync="dialogVisibleScore"
  9854. :append-to-body="true"
  9855. width="800px"
  9856. :before-close="handleClose"
  9857. class="dialog_diy"
  9858. >
  9859. <div>
  9860. <div class="studentDetail">
  9861. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9862. <div class="nameAndTime">
  9863. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9864. <div>{{ commentDetail.time }}</div>
  9865. </div>
  9866. </div>
  9867. <div
  9868. class="worksAnswer"
  9869. v-if="commentDetail.works && commentDetail.type == 2"
  9870. >
  9871. {{ JSON.parse(commentDetail.works)[0].answer }}
  9872. </div>
  9873. <div
  9874. class="worksAnswer"
  9875. v-if="commentDetail.works && commentDetail.type == 1"
  9876. >
  9877. <pdf
  9878. v-if="showPDF"
  9879. :pdfUrl="pptImgUrl"
  9880. style="width: 100%; height: 520px; overflow: auto"
  9881. :class="{ fullStyle: full }"
  9882. ></pdf>
  9883. <iframe
  9884. v-else
  9885. :src="pptImgUrl"
  9886. frameborder="0"
  9887. width="100%"
  9888. height="600"
  9889. :class="{ fullStyle: full }"
  9890. ></iframe>
  9891. </div>
  9892. <div
  9893. class="worksAnswer"
  9894. v-if="commentDetail.works && commentDetail.type == 0"
  9895. >
  9896. <img
  9897. :src="commentDetail.works"
  9898. alt=""
  9899. @click="previewImg(commentDetail.works)"
  9900. />
  9901. </div>
  9902. <div
  9903. class="worksAnswer"
  9904. v-if="commentDetail.works && commentDetail.type == 3"
  9905. >
  9906. <video-player
  9907. class="video-player vjs-custom-skin"
  9908. :playsinline="true"
  9909. :options="videoDetail"
  9910. @play="onPlayerPlay($event)"
  9911. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9912. ></video-player>
  9913. </div>
  9914. <div
  9915. class="worksAnswer codeFileBox"
  9916. v-if="commentDetail.works && commentDetail.type == 12"
  9917. @click="downloadFile(commentDetail.works)"
  9918. >
  9919. <img src="../assets/icon/codeFile.png" />
  9920. <div>点击下载文件</div>
  9921. </div>
  9922. <div
  9923. class="worksAnswer codeFileBox"
  9924. v-if="commentDetail.works && commentDetail.type == 15"
  9925. @click="
  9926. openCocoPi(
  9927. 57,
  9928. commentIndexJson.toolIndex,
  9929. commentDetail.userid,
  9930. commentDetail.sName
  9931. )
  9932. "
  9933. >
  9934. <img src="../assets/icon/codeFile.png" />
  9935. <div>点击打开CocoPi</div>
  9936. </div>
  9937. <div
  9938. class="worksAnswer"
  9939. v-if="commentDetail.works && commentDetail.type == 13"
  9940. >
  9941. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9942. </div>
  9943. <div class="scoreBox">
  9944. <span class="t">请输入分数</span>
  9945. <el-input-number
  9946. :disabled="courseDetail.userid != userid"
  9947. v-model="wScore"
  9948. :controls="false"
  9949. :min="0"
  9950. :max="100"
  9951. ></el-input-number>
  9952. </div>
  9953. <div class="scoreDetailBox">
  9954. <span class="t">评分评论</span>
  9955. <el-input
  9956. type="textarea"
  9957. :rows="5"
  9958. :disabled="courseDetail.userid != userid"
  9959. resize="none"
  9960. v-model="scoreDetail"
  9961. placeholder="请输入对学生的评价"
  9962. >
  9963. </el-input>
  9964. </div>
  9965. </div>
  9966. <span slot="footer" class="dialog-footer">
  9967. <el-button
  9968. @click="
  9969. (dialogVisibleScore = false),
  9970. (commentIndexJson = {}),
  9971. videoDetail.sources && videoDetail.sources[0]
  9972. ? (videoDetail.sources[0].src = '')
  9973. : ''
  9974. "
  9975. >取 消</el-button
  9976. >
  9977. <el-button
  9978. type="primary"
  9979. v-if="courseDetail.userid == userid"
  9980. @click="scoreWork(commentDetail.wid)"
  9981. >确 定
  9982. </el-button>
  9983. </span>
  9984. </el-dialog>
  9985. <el-dialog
  9986. title="排序"
  9987. :visible.sync="dialogVisibleSentence"
  9988. :append-to-body="true"
  9989. width="1000px"
  9990. :before-close="handleClose"
  9991. class="dialog_diy dialog_diy3"
  9992. >
  9993. <div>
  9994. <div class="sentenBox">
  9995. <div
  9996. v-for="(st, stIndex) in sentenceList"
  9997. :key="stIndex"
  9998. style="padding-bottom: 20px"
  9999. >
  10000. <div
  10001. style="padding: 15px 0 10px 20px"
  10002. class="sentenceTitle"
  10003. :index="stIndex + 1"
  10004. >
  10005. 题目{{ stIndex + 1 }}:请选择正确顺序
  10006. </div>
  10007. <div class="cardList" v-if="st.chooseSenList">
  10008. <div class="cardBox">
  10009. <div
  10010. v-for="(r, rIndex) in st.chooseSenList"
  10011. :key="rIndex"
  10012. @click="returnCard(r, stIndex, rIndex)"
  10013. >
  10014. <el-tooltip
  10015. class="item"
  10016. effect="light"
  10017. :content="r"
  10018. placement="top"
  10019. v-if="r != '' && r != undefined"
  10020. >
  10021. <div
  10022. :class="{
  10023. isCard: r,
  10024. isChooseCard: r == '' || r == undefined,
  10025. }"
  10026. >
  10027. <div>{{ r }}</div>
  10028. </div>
  10029. </el-tooltip>
  10030. <div
  10031. :class="{
  10032. isCard: r,
  10033. isChooseCard: r == '' || r == undefined,
  10034. }"
  10035. v-else
  10036. >
  10037. <div>{{ r }}</div>
  10038. </div>
  10039. </div>
  10040. </div>
  10041. </div>
  10042. <div class="cardList" v-if="st.addChangeSen">
  10043. <div class="cardBox">
  10044. <div
  10045. v-for="(s, sIndex) in st.addChangeSen"
  10046. :key="sIndex"
  10047. @click="setRightAnswer(s, stIndex, sIndex)"
  10048. >
  10049. <el-tooltip
  10050. class="item"
  10051. effect="light"
  10052. :content="s"
  10053. placement="top"
  10054. v-if="s != '' && s != undefined"
  10055. >
  10056. <div
  10057. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10058. >
  10059. <div>{{ s }}</div>
  10060. </div>
  10061. </el-tooltip>
  10062. <div
  10063. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10064. v-else
  10065. >
  10066. <div>{{ s }}</div>
  10067. </div>
  10068. </div>
  10069. </div>
  10070. </div>
  10071. </div>
  10072. </div>
  10073. </div>
  10074. <span slot="footer" class="dialog-footer">
  10075. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10076. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10077. </span>
  10078. </el-dialog>
  10079. <el-dialog
  10080. title="排序"
  10081. :visible.sync="dialogVisibleSentenceTeacher"
  10082. :append-to-body="true"
  10083. width="1000px"
  10084. :before-close="handleClose"
  10085. class="dialog_diy dialog_diy3"
  10086. >
  10087. <div>
  10088. <div class="w_name">
  10089. 学生姓名:<span>{{ sStudent.student }}</span>
  10090. </div>
  10091. <div class="sentenBox">
  10092. <div
  10093. v-for="(st, stIndex) in sentenceList"
  10094. :key="stIndex"
  10095. style="padding-bottom: 20px"
  10096. >
  10097. <div
  10098. style="padding: 15px 0 10px 20px"
  10099. class="sentenceTitle"
  10100. :index="stIndex + 1"
  10101. >
  10102. 题目{{ stIndex + 1 }}:请选择正确顺序
  10103. </div>
  10104. <div class="cardList" v-if="st.chooseSenList">
  10105. <div class="cardBox">
  10106. <div
  10107. v-for="(r, rIndex) in st.chooseSenList"
  10108. :key="rIndex"
  10109. @click="returnCard(r, stIndex, rIndex)"
  10110. >
  10111. <el-tooltip
  10112. class="item"
  10113. effect="light"
  10114. :content="r"
  10115. placement="top"
  10116. v-if="r != '' && r != undefined"
  10117. >
  10118. <div
  10119. :class="{
  10120. isCard: r,
  10121. isChooseCard: r == '' || r == undefined,
  10122. }"
  10123. >
  10124. <div>{{ r }}</div>
  10125. </div>
  10126. </el-tooltip>
  10127. <div
  10128. :class="{
  10129. isCard: r,
  10130. isChooseCard: r == '' || r == undefined,
  10131. }"
  10132. v-else
  10133. >
  10134. <div>{{ r }}</div>
  10135. </div>
  10136. </div>
  10137. </div>
  10138. </div>
  10139. <div class="cardList" v-if="st.addChangeSen">
  10140. <div class="cardBox">
  10141. <div
  10142. v-for="(s, sIndex) in st.addChangeSen"
  10143. :key="sIndex"
  10144. @click="setRightAnswer(s, stIndex, sIndex)"
  10145. >
  10146. <el-tooltip
  10147. class="item"
  10148. effect="light"
  10149. :content="s"
  10150. placement="top"
  10151. v-if="s != '' && s != undefined"
  10152. >
  10153. <div
  10154. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10155. >
  10156. <div>{{ s }}</div>
  10157. </div>
  10158. </el-tooltip>
  10159. <div
  10160. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10161. v-else
  10162. >
  10163. <div>{{ s }}</div>
  10164. </div>
  10165. </div>
  10166. </div>
  10167. </div>
  10168. </div>
  10169. </div>
  10170. </div>
  10171. <span slot="footer" class="dialog-footer">
  10172. <el-button @click="dialogVisibleSentenceTeacher = false"
  10173. >取 消</el-button
  10174. >
  10175. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10176. </span>
  10177. </el-dialog>
  10178. <el-dialog
  10179. title="排序"
  10180. :visible.sync="dialogVisibleSentence1"
  10181. :append-to-body="true"
  10182. width="1000px"
  10183. :before-close="handleClose"
  10184. class="dialog_diy dialog_diy3"
  10185. >
  10186. <div>
  10187. <div class="sentenBox">
  10188. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10189. {{ sentenceList1.stuName }}的作业
  10190. </div>
  10191. <div
  10192. v-for="(st, stIndex) in sentenceList1"
  10193. :key="stIndex"
  10194. style="padding-bottom: 20px"
  10195. >
  10196. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10197. 第{{ stIndex + 1 }}题
  10198. </div>
  10199. <div class="isWrong">
  10200. <div class="cardList1" v-if="st.chooseSenList">
  10201. <div class="cardBox">
  10202. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10203. <el-tooltip
  10204. class="item"
  10205. effect="light"
  10206. :content="s"
  10207. placement="top"
  10208. >
  10209. <div class="isCard">
  10210. <div>{{ s }}</div>
  10211. </div>
  10212. </el-tooltip>
  10213. </div>
  10214. </div>
  10215. <div class="cardAnswerBox">
  10216. 组成句子:{{ st.chooseSenList.join(" ") }}
  10217. </div>
  10218. </div>
  10219. <div v-if="tType == 2" class="isTj">
  10220. <div class="isTjImg">
  10221. <img src="../assets/icon/conSentences/right.png" alt="" />
  10222. </div>
  10223. <div>已提交</div>
  10224. </div>
  10225. <div
  10226. class="answerRight isTj"
  10227. v-if="
  10228. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10229. (tType == 1 || tType == 4)
  10230. "
  10231. >
  10232. <div class="isTjImg">
  10233. <img src="../assets/icon/conSentences/right.png" alt="" />
  10234. </div>
  10235. <div>回答正确</div>
  10236. </div>
  10237. <div
  10238. class="answerRight isTj"
  10239. v-if="
  10240. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10241. (tType == 1 || tType == 4)
  10242. "
  10243. >
  10244. <div class="isTjImg">
  10245. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10246. </div>
  10247. <div>回答错误</div>
  10248. </div>
  10249. </div>
  10250. <div
  10251. v-if="
  10252. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10253. (tType == 1 || tType == 4)
  10254. "
  10255. >
  10256. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10257. <div
  10258. class="cardList"
  10259. v-if="st.rightAnswer"
  10260. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10261. >
  10262. <div class="cardBox">
  10263. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10264. <el-tooltip
  10265. class="item"
  10266. effect="light"
  10267. :content="r"
  10268. placement="top"
  10269. >
  10270. <div class="isCard1">
  10271. <div>{{ r }}</div>
  10272. </div>
  10273. </el-tooltip>
  10274. </div>
  10275. </div>
  10276. <div class="cardAnswerBox">
  10277. 组成句子:{{ st.rightAnswer.join(" ") }}
  10278. </div>
  10279. </div>
  10280. </div>
  10281. </div>
  10282. </div>
  10283. </div>
  10284. <span slot="footer" class="dialog-footer">
  10285. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10286. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10287. >确 定</el-button
  10288. >
  10289. </span>
  10290. </el-dialog>
  10291. <el-dialog
  10292. title="教师提交作业"
  10293. :visible.sync="dialogVisibleWorks"
  10294. :append-to-body="true"
  10295. width="500px"
  10296. :before-close="handleClose"
  10297. class="dialog_change"
  10298. >
  10299. <div class="marginT">
  10300. <div class="w_name">
  10301. 学生姓名:<span>{{ sStudent.student }}</span>
  10302. </div>
  10303. <div>上传文件</div>
  10304. <div
  10305. class="chapter_add"
  10306. @click="addImg($event)"
  10307. v-if="studyJuri[0].cover.length == 0"
  10308. >
  10309. <div class="up_photo">
  10310. <img src="../assets/uploadImg2.png" alt />
  10311. </div>
  10312. <!-- <input
  10313. type="file"
  10314. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10315. style="display: none"
  10316. @change="beforeUpload1($event, 1)"
  10317. /> -->
  10318. <input
  10319. type="file"
  10320. accept="*"
  10321. style="display: none"
  10322. @change="beforeUpload1($event, 1)"
  10323. />
  10324. </div>
  10325. <!-- capture="camera" -->
  10326. <div
  10327. class="chapter_add"
  10328. style="
  10329. display: flex;
  10330. width: 100%;
  10331. flex-direction: row;
  10332. flex-wrap: wrap;
  10333. justify-content: flex-start;
  10334. padding: 15px 0;
  10335. "
  10336. v-if="studyJuri[0].cover.length > 0"
  10337. >
  10338. <div class="upCover">
  10339. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10340. <img :src="word" alt v-else-if="fileType == 1" />
  10341. <img :src="video" alt v-else-if="fileType == 2" />
  10342. <img :src="word2" alt v-else-if="fileType == 3" />
  10343. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10344. <div class="deleteWord" @click="clean(1)">
  10345. <img src="../assets/icon/deleteWorks.png" alt />
  10346. </div>
  10347. </div>
  10348. </div>
  10349. </div>
  10350. <div
  10351. class="upload_send"
  10352. @click="addCourseWorksTeacher(taskCount)"
  10353. v-if="!proVisible"
  10354. >
  10355. 提交
  10356. </div>
  10357. </el-dialog>
  10358. <ImgDraw
  10359. :drawShow="drawShow"
  10360. @closeDraw="closeDraw"
  10361. @addImgDraw="addImgDraw"
  10362. :bg="bg"
  10363. ></ImgDraw>
  10364. <el-dialog
  10365. title="表格"
  10366. :visible.sync="dialogVisibleTable"
  10367. :append-to-body="true"
  10368. width="95%"
  10369. :before-close="handleClose"
  10370. class="dialog_diy"
  10371. >
  10372. <el-form>
  10373. <div
  10374. style="
  10375. display: flex;
  10376. align-items: center;
  10377. justify-content: space-between;
  10378. "
  10379. >
  10380. <span>表格内容</span>
  10381. <el-button type="primary" size="small" @click="returnTableText"
  10382. >还原模板</el-button
  10383. >
  10384. </div>
  10385. <Table
  10386. v-model="tableJson.text"
  10387. @change="change"
  10388. v-if="dialogVisibleTable"
  10389. ></Table>
  10390. </el-form>
  10391. <span slot="footer" class="dialog-footer">
  10392. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10393. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10394. </span>
  10395. </el-dialog>
  10396. <el-dialog
  10397. title="表格"
  10398. :visible.sync="dialogVisibleTableTeacher"
  10399. :append-to-body="true"
  10400. width="95%"
  10401. :before-close="handleClose"
  10402. class="dialog_diy"
  10403. >
  10404. <el-form>
  10405. <div class="w_name">
  10406. 学生姓名:<span>{{ sStudent.student }}</span>
  10407. </div>
  10408. <div>表格内容</div>
  10409. <Table
  10410. v-model="tableJson.text"
  10411. @change="change"
  10412. v-if="dialogVisibleTableTeacher"
  10413. ></Table>
  10414. </el-form>
  10415. <span slot="footer" class="dialog-footer">
  10416. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10417. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10418. </span>
  10419. </el-dialog>
  10420. <el-dialog
  10421. title="文档"
  10422. :visible.sync="dialogVisibleWord"
  10423. :append-to-body="true"
  10424. width="95%"
  10425. :before-close="handleClose"
  10426. class="dialog_diy"
  10427. >
  10428. <el-form>
  10429. <div
  10430. style="
  10431. display: flex;
  10432. align-items: center;
  10433. justify-content: space-between;
  10434. "
  10435. >
  10436. <span>文档内容</span>
  10437. <el-button type="primary" size="small" @click="returnWordText"
  10438. >还原模板</el-button
  10439. >
  10440. </div>
  10441. <editor-bar
  10442. v-model="wordJson.text"
  10443. v-if="dialogVisibleWord"
  10444. ></editor-bar>
  10445. </el-form>
  10446. <span slot="footer" class="dialog-footer">
  10447. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10448. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10449. </span>
  10450. </el-dialog>
  10451. <el-dialog
  10452. title="文档"
  10453. :visible.sync="dialogVisibleWordTeacher"
  10454. :append-to-body="true"
  10455. width="95%"
  10456. :before-close="handleClose"
  10457. class="dialog_diy"
  10458. >
  10459. <el-form>
  10460. <div class="w_name">
  10461. 学生姓名:<span>{{ sStudent.student }}</span>
  10462. </div>
  10463. <div>文档内容</div>
  10464. <editor-bar
  10465. v-model="wordJson.text"
  10466. v-if="dialogVisibleWordTeacher"
  10467. ></editor-bar>
  10468. </el-form>
  10469. <span slot="footer" class="dialog-footer">
  10470. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10471. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10472. </span>
  10473. </el-dialog>
  10474. <el-dialog
  10475. title="表格"
  10476. :visible.sync="dialogVisibleTable2"
  10477. :append-to-body="true"
  10478. width="95%"
  10479. :before-close="handleClose"
  10480. class="dialog_diy"
  10481. >
  10482. <el-form>
  10483. <div class="cont" v-html="tableJson.text"></div>
  10484. </el-form>
  10485. <span slot="footer" class="dialog-footer">
  10486. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10487. </span>
  10488. </el-dialog>
  10489. <el-dialog
  10490. title="文档"
  10491. :visible.sync="dialogVisibleTable3"
  10492. :append-to-body="true"
  10493. width="95%"
  10494. :before-close="handleClose"
  10495. class="dialog_diy"
  10496. >
  10497. <el-form>
  10498. <div class="cont" v-html="tableJson.text"></div>
  10499. </el-form>
  10500. <span slot="footer" class="dialog-footer">
  10501. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10502. </span>
  10503. </el-dialog>
  10504. <el-dialog
  10505. title="分组设置"
  10506. :visible.sync="dialogVisibleGroup"
  10507. :append-to-body="true"
  10508. width="95%"
  10509. :before-close="handleClose"
  10510. class="dialog_diy"
  10511. >
  10512. <div v-if="dialogVisibleGroup">
  10513. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10514. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10515. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10516. </div>
  10517. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10518. @click="lockChair">
  10519. 锁定位置
  10520. </div>
  10521. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10522. 解锁位置
  10523. </div> -->
  10524. <div class="group_switch">
  10525. <span>开放选座</span>
  10526. <el-switch
  10527. v-model="islock"
  10528. active-text=""
  10529. class="switchCss"
  10530. @change="lockChair"
  10531. ></el-switch>
  10532. </div>
  10533. <div
  10534. type="primary"
  10535. @click="updateGroup"
  10536. class="returnBtn"
  10537. style="background-color: #225bc7"
  10538. >
  10539. 分组设置
  10540. </div>
  10541. </div>
  10542. <div>
  10543. <div
  10544. class="g_d_box"
  10545. v-if="groupJson.group && groupStudent[toolindex]"
  10546. >
  10547. <div
  10548. class="g_d_group"
  10549. v-for="(g, gindex) in groupJson.group"
  10550. :key="gindex"
  10551. >
  10552. <div class="g_d_group_chair">
  10553. <div v-if="groupJson.number > 1">
  10554. <span
  10555. :class="{
  10556. isChair:
  10557. groupStudent[toolindex][gindex] &&
  10558. groupStudent[toolindex][gindex][0],
  10559. updateChair:
  10560. courseDetail.userid == userid &&
  10561. groupStudent[toolindex][gindex] &&
  10562. groupStudent[toolindex][gindex][0] &&
  10563. groupJson.islock == 2,
  10564. }"
  10565. ><span
  10566. class="updateChairBtn"
  10567. @click="
  10568. updateGroupChair(
  10569. groupStudent[toolindex][gindex] &&
  10570. groupStudent[toolindex][gindex][0]
  10571. )
  10572. "
  10573. >修改</span
  10574. ></span
  10575. ><span>{{
  10576. groupStudent[toolindex][gindex] &&
  10577. groupStudent[toolindex][gindex][0]
  10578. ? groupStudent[toolindex][gindex] &&
  10579. groupStudent[toolindex][gindex][0].name
  10580. : "空位置"
  10581. }}</span>
  10582. </div>
  10583. <div v-if="groupJson.number > 4">
  10584. <span
  10585. :class="{
  10586. isChair:
  10587. groupStudent[toolindex][gindex] &&
  10588. groupStudent[toolindex][gindex][4],
  10589. updateChair:
  10590. courseDetail.userid == userid &&
  10591. groupStudent[toolindex][gindex] &&
  10592. groupStudent[toolindex][gindex][4] &&
  10593. groupJson.islock == 2,
  10594. }"
  10595. ><span
  10596. class="updateChairBtn"
  10597. @click="
  10598. updateGroupChair(
  10599. groupStudent[toolindex][gindex] &&
  10600. groupStudent[toolindex][gindex][4]
  10601. )
  10602. "
  10603. >修改</span
  10604. ></span
  10605. ><span>{{
  10606. groupStudent[toolindex][gindex] &&
  10607. groupStudent[toolindex][gindex][4]
  10608. ? groupStudent[toolindex][gindex] &&
  10609. groupStudent[toolindex][gindex][4].name
  10610. : "空位置"
  10611. }}</span>
  10612. </div>
  10613. <div v-if="groupJson.number > 8">
  10614. <span
  10615. :class="{
  10616. isChair:
  10617. groupStudent[toolindex][gindex] &&
  10618. groupStudent[toolindex][gindex][8],
  10619. updateChair:
  10620. courseDetail.userid == userid &&
  10621. groupStudent[toolindex][gindex] &&
  10622. groupStudent[toolindex][gindex][8] &&
  10623. groupJson.islock == 2,
  10624. }"
  10625. ><span
  10626. class="updateChairBtn"
  10627. @click="
  10628. updateGroupChair(
  10629. groupStudent[toolindex][gindex] &&
  10630. groupStudent[toolindex][gindex][8]
  10631. )
  10632. "
  10633. >修改</span
  10634. ></span
  10635. ><span>{{
  10636. groupStudent[toolindex][gindex] &&
  10637. groupStudent[toolindex][gindex][8]
  10638. ? groupStudent[toolindex][gindex] &&
  10639. groupStudent[toolindex][gindex][8].name
  10640. : "空位置"
  10641. }}</span>
  10642. </div>
  10643. </div>
  10644. <div class="g_d_group_tableBox">
  10645. <div class="g_d_group_chair2">
  10646. <div v-if="groupJson.number > 2">
  10647. <span
  10648. :class="{
  10649. isChair:
  10650. groupStudent[toolindex][gindex] &&
  10651. groupStudent[toolindex][gindex][2],
  10652. updateChair:
  10653. courseDetail.userid == userid &&
  10654. groupStudent[toolindex][gindex] &&
  10655. groupStudent[toolindex][gindex][2] &&
  10656. groupJson.islock == 2,
  10657. }"
  10658. ><span
  10659. class="updateChairBtn"
  10660. @click="
  10661. updateGroupChair(
  10662. groupStudent[toolindex][gindex] &&
  10663. groupStudent[toolindex][gindex][2]
  10664. )
  10665. "
  10666. >修改</span
  10667. ></span
  10668. ><span>{{
  10669. groupStudent[toolindex][gindex] &&
  10670. groupStudent[toolindex][gindex][2]
  10671. ? groupStudent[toolindex][gindex] &&
  10672. groupStudent[toolindex][gindex][2].name
  10673. : "空位置"
  10674. }}</span>
  10675. </div>
  10676. <div v-if="groupJson.number > 6">
  10677. <span
  10678. :class="{
  10679. isChair:
  10680. groupStudent[toolindex][gindex] &&
  10681. groupStudent[toolindex][gindex][6],
  10682. updateChair:
  10683. courseDetail.userid == userid &&
  10684. groupStudent[toolindex][gindex] &&
  10685. groupStudent[toolindex][gindex][6] &&
  10686. groupJson.islock == 2,
  10687. }"
  10688. ><span
  10689. class="updateChairBtn"
  10690. @click="
  10691. updateGroupChair(
  10692. groupStudent[toolindex][gindex] &&
  10693. groupStudent[toolindex][gindex][6]
  10694. )
  10695. "
  10696. >修改</span
  10697. ></span
  10698. ><span>{{
  10699. groupStudent[toolindex][gindex] &&
  10700. groupStudent[toolindex][gindex][6]
  10701. ? groupStudent[toolindex][gindex] &&
  10702. groupStudent[toolindex][gindex][6].name
  10703. : "空位置"
  10704. }}</span>
  10705. </div>
  10706. </div>
  10707. <div class="g_d_group_table">
  10708. <div>
  10709. {{ g.name }}
  10710. </div>
  10711. <div>
  10712. <div
  10713. v-if="
  10714. courseDetail.userid == userid && groupJson.islock == 2
  10715. "
  10716. @click="deleteGroupChair(gindex)"
  10717. >
  10718. 移除组员
  10719. </div>
  10720. <div
  10721. @click="selectGroup(gindex)"
  10722. v-else-if="
  10723. groupStudentUid[toolindex] &&
  10724. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  10725. "
  10726. >
  10727. 加入分组
  10728. </div>
  10729. <div
  10730. @click="
  10731. exitGroup(
  10732. groupStudent[toolindex][gindex] &&
  10733. groupStudent[toolindex][gindex][
  10734. groupStudentUid[toolindex][gindex].indexOf(userid)
  10735. ].id
  10736. )
  10737. "
  10738. v-else-if="
  10739. groupStudentUid[toolindex] &&
  10740. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  10741. "
  10742. >
  10743. 退出分组
  10744. </div>
  10745. </div>
  10746. </div>
  10747. <div class="g_d_group_chair2">
  10748. <div v-if="groupJson.number > 3">
  10749. <span
  10750. :class="{
  10751. isChair:
  10752. groupStudent[toolindex][gindex] &&
  10753. groupStudent[toolindex][gindex][3],
  10754. updateChair:
  10755. courseDetail.userid == userid &&
  10756. groupStudent[toolindex][gindex] &&
  10757. groupStudent[toolindex][gindex][3] &&
  10758. groupJson.islock == 2,
  10759. }"
  10760. ><span
  10761. class="updateChairBtn"
  10762. @click="
  10763. updateGroupChair(
  10764. groupStudent[toolindex][gindex] &&
  10765. groupStudent[toolindex][gindex][3]
  10766. )
  10767. "
  10768. >修改</span
  10769. ></span
  10770. ><span>{{
  10771. groupStudent[toolindex][gindex] &&
  10772. groupStudent[toolindex][gindex][3]
  10773. ? groupStudent[toolindex][gindex] &&
  10774. groupStudent[toolindex][gindex][3].name
  10775. : "空位置"
  10776. }}</span>
  10777. </div>
  10778. <div v-if="groupJson.number > 7">
  10779. <span
  10780. :class="{
  10781. isChair:
  10782. groupStudent[toolindex][gindex] &&
  10783. groupStudent[toolindex][gindex][7],
  10784. updateChair:
  10785. courseDetail.userid == userid &&
  10786. groupStudent[toolindex][gindex] &&
  10787. groupStudent[toolindex][gindex][7] &&
  10788. groupJson.islock == 2,
  10789. }"
  10790. ><span
  10791. class="updateChairBtn"
  10792. @click="
  10793. updateGroupChair(
  10794. groupStudent[toolindex][gindex] &&
  10795. groupStudent[toolindex][gindex][7]
  10796. )
  10797. "
  10798. >修改</span
  10799. ></span
  10800. ><span>{{
  10801. groupStudent[toolindex][gindex] &&
  10802. groupStudent[toolindex][gindex][7]
  10803. ? groupStudent[toolindex][gindex] &&
  10804. groupStudent[toolindex][gindex][7].name
  10805. : "空位置"
  10806. }}</span>
  10807. </div>
  10808. </div>
  10809. </div>
  10810. <div class="g_d_group_chair">
  10811. <div v-if="groupJson.number > 1">
  10812. <span
  10813. :class="{
  10814. isChair:
  10815. groupStudent[toolindex][gindex] &&
  10816. groupStudent[toolindex][gindex][1],
  10817. updateChair:
  10818. courseDetail.userid == userid &&
  10819. groupStudent[toolindex][gindex] &&
  10820. groupStudent[toolindex][gindex][1] &&
  10821. groupJson.islock == 2,
  10822. }"
  10823. ><span
  10824. class="updateChairBtn"
  10825. @click="
  10826. updateGroupChair(
  10827. groupStudent[toolindex][gindex] &&
  10828. groupStudent[toolindex][gindex][1]
  10829. )
  10830. "
  10831. >修改</span
  10832. ></span
  10833. ><span>{{
  10834. groupStudent[toolindex][gindex] &&
  10835. groupStudent[toolindex][gindex][1]
  10836. ? groupStudent[toolindex][gindex] &&
  10837. groupStudent[toolindex][gindex][1].name
  10838. : "空位置"
  10839. }}</span>
  10840. </div>
  10841. <div v-if="groupJson.number > 5">
  10842. <span
  10843. :class="{
  10844. isChair:
  10845. groupStudent[toolindex][gindex] &&
  10846. groupStudent[toolindex][gindex][5],
  10847. updateChair:
  10848. courseDetail.userid == userid &&
  10849. groupStudent[toolindex][gindex] &&
  10850. groupStudent[toolindex][gindex][5] &&
  10851. groupJson.islock == 2,
  10852. }"
  10853. ><span
  10854. class="updateChairBtn"
  10855. @click="
  10856. updateGroupChair(
  10857. groupStudent[toolindex][gindex] &&
  10858. groupStudent[toolindex][gindex][5]
  10859. )
  10860. "
  10861. >修改</span
  10862. ></span
  10863. ><span>{{
  10864. groupStudent[toolindex][gindex] &&
  10865. groupStudent[toolindex][gindex][5]
  10866. ? groupStudent[toolindex][gindex] &&
  10867. groupStudent[toolindex][gindex][5].name
  10868. : "空位置"
  10869. }}</span>
  10870. </div>
  10871. <div v-if="groupJson.number > 9">
  10872. <span
  10873. :class="{
  10874. isChair:
  10875. groupStudent[toolindex][gindex] &&
  10876. groupStudent[toolindex][gindex][9],
  10877. updateChair:
  10878. courseDetail.userid == userid &&
  10879. groupStudent[toolindex][gindex] &&
  10880. groupStudent[toolindex][gindex][9] &&
  10881. groupJson.islock == 2,
  10882. }"
  10883. ><span
  10884. class="updateChairBtn"
  10885. @click="
  10886. updateGroupChair(
  10887. groupStudent[toolindex][gindex] &&
  10888. groupStudent[toolindex][gindex][9]
  10889. )
  10890. "
  10891. >修改</span
  10892. ></span
  10893. ><span>{{
  10894. groupStudent[toolindex][gindex] &&
  10895. groupStudent[toolindex][gindex][9]
  10896. ? groupStudent[toolindex][gindex] &&
  10897. groupStudent[toolindex][gindex][9].name
  10898. : "空位置"
  10899. }}</span>
  10900. </div>
  10901. </div>
  10902. </div>
  10903. </div>
  10904. </div>
  10905. </div>
  10906. <span slot="footer" class="dialog-footer">
  10907. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  10908. </span>
  10909. </el-dialog>
  10910. <el-dialog
  10911. title="分组设置"
  10912. :visible.sync="dialogVisibleGroup2"
  10913. :append-to-body="true"
  10914. width="650px"
  10915. :before-close="handleClose"
  10916. class="dialog_diy"
  10917. >
  10918. <div class="groupBox">
  10919. <div v-if="groupJson2.group" class="groupContent">
  10920. <div class="groupTitle">请设置小组数量及名称</div>
  10921. <div
  10922. v-for="(item, index) in groupJson2.group"
  10923. :key="index"
  10924. class="groupName"
  10925. >
  10926. <span class="groupn">第{{ index + 1 }}组名称:</span>
  10927. <el-input
  10928. v-model="item.name"
  10929. placeholder="请输入名称..."
  10930. style="width: 250px"
  10931. ></el-input>
  10932. <!-- <div class="groupBtn">
  10933. <el-button type="primary" size="small" @click="addGroup(index)">
  10934. 添加</el-button>
  10935. <el-button type="primary" size="small" @click="deleteGroup(index)"
  10936. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  10937. </div> -->
  10938. </div>
  10939. </div>
  10940. <div class="groupContent">
  10941. <div class="groupTitle">请设置每组人数</div>
  10942. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  10943. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  10944. <el-input
  10945. v-model="groupJson.number"
  10946. style="width: 150px"
  10947. placeholder="请输入2-10的数字"
  10948. @change="numberPan"
  10949. ></el-input>
  10950. </div>
  10951. </div>
  10952. <span slot="footer" class="dialog-footer">
  10953. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  10954. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  10955. </span>
  10956. </el-dialog>
  10957. <el-dialog
  10958. title="作业提交"
  10959. :visible.sync="dialogVisibleGroupWork"
  10960. :append-to-body="true"
  10961. width="500px"
  10962. :before-close="handleClose"
  10963. class="dialog_change"
  10964. >
  10965. <div class="marginT">
  10966. <div>上传文件</div>
  10967. <div
  10968. class="chapter_add"
  10969. @click="addImg($event)"
  10970. v-if="studyJuri[0].cover.length == 0"
  10971. >
  10972. <div class="up_photo">
  10973. <img src="../assets/icon/uploadImg.png" alt />
  10974. </div>
  10975. <!-- <input
  10976. type="file"
  10977. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10978. style="display: none"
  10979. @change="beforeUpload1($event, 1)"
  10980. /> -->
  10981. <input
  10982. type="file"
  10983. accept="*"
  10984. style="display: none"
  10985. @change="beforeUpload1($event, 1)"
  10986. />
  10987. </div>
  10988. <!-- capture="camera" -->
  10989. <div
  10990. class="chapter_add"
  10991. style="
  10992. display: flex;
  10993. width: 100%;
  10994. flex-direction: row;
  10995. flex-wrap: wrap;
  10996. justify-content: flex-start;
  10997. padding: 15px 0;
  10998. "
  10999. v-if="studyJuri[0].cover.length > 0"
  11000. >
  11001. <div class="upCover">
  11002. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11003. <img :src="word" alt v-else-if="fileType == 1" />
  11004. <img :src="video" alt v-else-if="fileType == 2" />
  11005. <img :src="word2" alt v-else-if="fileType == 3" />
  11006. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11007. <div class="deleteWord" @click="clean(1)">
  11008. <img src="../assets/icon/deleteWorks.png" alt />
  11009. </div>
  11010. </div>
  11011. </div>
  11012. </div>
  11013. <div
  11014. class="upload_send"
  11015. @click="addCourseWorks2(taskCount)"
  11016. v-if="!proVisible"
  11017. >
  11018. 提交
  11019. </div>
  11020. </el-dialog>
  11021. <el-dialog
  11022. title="修改分组"
  11023. :visible.sync="dialogVisibleUpdateGroup"
  11024. :append-to-body="true"
  11025. width="350px"
  11026. :before-close="handleClose"
  11027. class="dialog_diy"
  11028. >
  11029. <div>
  11030. <h2>
  11031. {{ this.updateGroupUser.name }}
  11032. </h2>
  11033. <div style="color: rgb(171 171 171); margin-top: 10px">
  11034. 请选择要进入的分组
  11035. </div>
  11036. <el-radio-group v-model="checkChair">
  11037. <el-radio
  11038. style="display: block; margin-top: 20px"
  11039. v-for="(item, index) in updateGroupArray"
  11040. :label="item.label"
  11041. :key="index"
  11042. >{{ item.name }}</el-radio
  11043. >
  11044. </el-radio-group>
  11045. </div>
  11046. <span slot="footer" class="dialog-footer">
  11047. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11048. <el-button type="primary" @click="updateChair">确定</el-button>
  11049. </span>
  11050. </el-dialog>
  11051. <el-dialog
  11052. title="移除组员"
  11053. :visible.sync="dialogVisibleDeleteGroup"
  11054. :append-to-body="true"
  11055. width="350px"
  11056. :before-close="handleClose"
  11057. class="dialog_diy"
  11058. >
  11059. <div>
  11060. <h2>
  11061. {{ this.deleteGroupArray.name }}
  11062. </h2>
  11063. <div style="color: rgb(171 171 171); margin-top: 10px">
  11064. 请选择要删除的组员
  11065. </div>
  11066. <el-checkbox-group v-model="checkDeleteGroup">
  11067. <el-checkbox
  11068. style="display: flex; margin-top: 20px"
  11069. v-for="(item, index) in deleteGroupUser"
  11070. :label="item.userid"
  11071. :key="index"
  11072. >{{ item.name }}</el-checkbox
  11073. >
  11074. </el-checkbox-group>
  11075. </div>
  11076. <span slot="footer" class="dialog-footer">
  11077. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11078. <el-button type="primary" @click="deleteChair">确定</el-button>
  11079. </span>
  11080. </el-dialog>
  11081. <el-dialog
  11082. title="批量上传"
  11083. :visible.sync="dialogVisiblePl"
  11084. :append-to-body="true"
  11085. width="700px"
  11086. :before-close="handleClose"
  11087. class="dialog_change"
  11088. >
  11089. <div class="marginT">
  11090. <div class="plworkBox">
  11091. <div
  11092. class="chapter_add"
  11093. style="
  11094. display: flex;
  11095. width: 150px;
  11096. flex-direction: row;
  11097. flex-wrap: wrap;
  11098. justify-content: flex-start;
  11099. margin: 0 10px 10px 0;
  11100. "
  11101. v-for="(item, index) in plworkFile"
  11102. :key="index"
  11103. >
  11104. <div class="upCover2">
  11105. <img
  11106. :src="item.url"
  11107. alt
  11108. v-if="item.fileType == 1"
  11109. @click="previewImg(item.url)"
  11110. />
  11111. <img :src="word" alt v-else-if="item.fileType == 4" />
  11112. <img :src="video" alt v-else />
  11113. <!-- <span class="picName">{{ item.name }}</span> -->
  11114. <!-- <el-input
  11115. v-model="item.username"
  11116. placeholder="请输入学生名字"
  11117. style="margin-top: 10px"
  11118. ></el-input> -->
  11119. <div
  11120. class="pl_select_box"
  11121. @click="
  11122. getUpdateMore(true, checkUpload(), item.username, index)
  11123. "
  11124. >
  11125. {{ getSName(item.username) }}
  11126. </div>
  11127. <!-- <el-select
  11128. style="margin-top: 10px"
  11129. v-model="item.username"
  11130. filterable
  11131. allow-create
  11132. placeholder="请选择学生"
  11133. >
  11134. <el-option
  11135. v-for="item1 in checkUpload()"
  11136. :key="item1.userid"
  11137. :label="item1.name ? item1.name : item1.username"
  11138. :value="item1.userid"
  11139. >
  11140. </el-option>
  11141. </el-select> -->
  11142. <div class="deleteWord" @click="clean2(index)">
  11143. <img src="../assets/icon/deleteWorks.png" alt />
  11144. </div>
  11145. </div>
  11146. </div>
  11147. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11148. <div class="up_photo2">
  11149. <img src="../assets/icon/plwork.png" alt />
  11150. <span>点击上传文件</span>
  11151. </div>
  11152. <input
  11153. type="file"
  11154. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11155. multiple="multiple"
  11156. style="display: none"
  11157. @change="beforeUpload3($event, 6)"
  11158. />
  11159. </div>
  11160. </div>
  11161. </div>
  11162. <!-- capture="camera" -->
  11163. <div
  11164. class="upload_send"
  11165. @click="addCourseWorksPl(taskCount)"
  11166. v-if="!proVisible2"
  11167. >
  11168. 提交
  11169. </div>
  11170. </el-dialog>
  11171. <el-dialog
  11172. title="修改名称"
  11173. :visible.sync="dialogVisibleSname"
  11174. width="500px"
  11175. :before-close="handleClose"
  11176. class="dialog_diy"
  11177. center
  11178. >
  11179. <div
  11180. style="
  11181. text-align: center;
  11182. display: flex;
  11183. align-items: center;
  11184. justify-content: center;
  11185. "
  11186. >
  11187. <span class="tian1">名称</span>
  11188. <div
  11189. class="pl_select_box"
  11190. style="margin-left: 10px; width: 200px"
  11191. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11192. >
  11193. {{ getSName(worksSName) }}
  11194. </div>
  11195. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11196. placeholder="请选择学生">
  11197. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11198. :value="item.userid">
  11199. </el-option>
  11200. </el-select> -->
  11201. <!-- <el-input
  11202. v-model="worksSName"
  11203. style="width: 250px; margin: 15px 0px"
  11204. ></el-input> -->
  11205. </div>
  11206. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11207. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11208. <el-button type="primary" @click="updateName">确 定</el-button>
  11209. </span>
  11210. </el-dialog>
  11211. <el-dialog
  11212. title="英语写作"
  11213. :visible.sync="engDialogVisible"
  11214. :append-to-body="true"
  11215. width="800px"
  11216. :before-close="handleClose"
  11217. class="dialog_diy"
  11218. >
  11219. <onlineWrite
  11220. v-if="engDialogVisible"
  11221. @setEnglish="setEnglishList"
  11222. :englishList="englishList"
  11223. :myAnswerList1="myAnswerList1"
  11224. ></onlineWrite>
  11225. <span slot="footer" class="dialog-footer">
  11226. <el-button @click="engDialogVisible = false">取 消</el-button>
  11227. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11228. </span>
  11229. </el-dialog>
  11230. <el-dialog
  11231. title="英语写作"
  11232. :visible.sync="engUpdateDialogVisible"
  11233. :append-to-body="true"
  11234. width="800px"
  11235. :before-close="handleClose"
  11236. class="dialog_diy fullStyle"
  11237. >
  11238. <div class="engUpBox">
  11239. <div class="engUpTop">
  11240. <div class="engTitle">
  11241. <div>作文题目:</div>
  11242. <div>{{ englishList1.engTitle }}</div>
  11243. </div>
  11244. <div class="engText">
  11245. <div>作文题目:</div>
  11246. <div class="cont" v-html="englishList1.englishText"></div>
  11247. </div>
  11248. </div>
  11249. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11250. <div class="oldBox">
  11251. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11252. <div class="oldText">
  11253. <div class="detailBox">
  11254. <div class="oldDetail">
  11255. <div>标题:</div>
  11256. <div>{{ oldEnglishJson.engTitle }} </div>
  11257. </div>
  11258. <div class="oldDetail1">
  11259. <div>正文:</div>
  11260. <div v-html="oldEnglishJson.engText"></div>
  11261. </div>
  11262. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11263. <div>图片:</div>
  11264. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11265. </div>
  11266. </div>
  11267. </div>
  11268. </div>
  11269. <div class="oldBox" v-if="userMes[0].type == 2">
  11270. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11271. <div class="oldText">
  11272. <div class="detailBox">
  11273. <div class="oldDetail">
  11274. <div>标题:</div>
  11275. <el-input v-model="newEnglishList.engTitle" />
  11276. </div>
  11277. <div class="oldDetail1">
  11278. <div>正文:</div>
  11279. <el-input type="textarea"
  11280. :rows="10"
  11281. resize="none" v-model="newEnglishList.engText" />
  11282. </div>
  11283. </div>
  11284. </div>
  11285. </div>
  11286. <div class="oldBox" v-else-if="userMes[0].type == 1">
  11287. <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">
  11288. <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>
  11289. <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>
  11290. </div>
  11291. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11292. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11293. <div class="detailBox">
  11294. <div class="oldDetail">
  11295. <div>标题:</div>
  11296. <el-input v-model="oldEnglishJson1.engTitle" />
  11297. </div>
  11298. <div class="oldDetail1">
  11299. <div>正文:</div>
  11300. <el-input type="textarea"
  11301. :rows="10"
  11302. resize="none" v-model="oldEnglishJson1.engText" />
  11303. </div>
  11304. </div>
  11305. </div>
  11306. <div class="oldText" v-else-if="newEngIndex == -1">
  11307. <div class="detailBox">
  11308. <div class="oldDetail">
  11309. <div>标题:</div>
  11310. <el-input v-model="newEnglishList.engTitle" />
  11311. </div>
  11312. <div class="oldDetail1">
  11313. <div>正文:</div>
  11314. <el-input type="textarea"
  11315. :rows="10"
  11316. resize="none" v-model="newEnglishList.engText" />
  11317. </div>
  11318. </div>
  11319. </div>
  11320. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11321. <div class="detailBox">
  11322. <div class="oldDetail">
  11323. <div>标题:</div>
  11324. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="JSON.parse(newEnglishList1[newEngIndex].cWork).engTitle"></div>
  11325. <el-input v-else v-model="JSON.parse(newEnglishList1[newEngIndex].cWork).engTitle" />
  11326. </div>
  11327. <div class="oldDetail1">
  11328. <div>正文:</div>
  11329. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="JSON.parse(newEnglishList1[newEngIndex].cWork).engText"></div>
  11330. <el-input v-else type="textarea"
  11331. :rows="10"
  11332. resize="none" v-model="JSON.parse(newEnglishList1[newEngIndex].cWork).engText" />
  11333. </div>
  11334. </div>
  11335. </div>
  11336. </div>
  11337. </div>
  11338. </div>
  11339. <span slot="footer" class="dialog-footer">
  11340. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11341. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11342. </span>
  11343. </el-dialog>
  11344. <interVideo
  11345. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11346. :videoJson="videoJson"
  11347. :userid="userid"
  11348. :id="id"
  11349. :courseType="courseType"
  11350. :taskCount="taskCount"
  11351. :toolindex="toolindex"
  11352. ></interVideo>
  11353. <UpdateMore
  11354. :dialogVisibleMember.sync="dialogVisibleMember"
  11355. :cList="uploadStudentJuri"
  11356. :userid="userid"
  11357. :searchTN="worksSName2"
  11358. @setPlname="setPlname"
  11359. ></UpdateMore>
  11360. <wordCloud
  11361. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11362. :data="wordCloudData"
  11363. ></wordCloud>
  11364. <el-dialog
  11365. title="挑人"
  11366. :visible.sync="dialogVisiblePickPeople"
  11367. width="650px"
  11368. :before-close="handleClose"
  11369. class="dialog_diy"
  11370. center
  11371. >
  11372. <div class="pick_box">
  11373. <div
  11374. class="noWorksName"
  11375. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11376. v-for="(item, index) in uploadStudentJuri"
  11377. :key="index"
  11378. @click="pickStudent(item)"
  11379. >
  11380. {{ item.name }}
  11381. </div>
  11382. </div>
  11383. </el-dialog>
  11384. </div>
  11385. </template>
  11386. <script>
  11387. import "../common/aws-sdk-2.235.1.min.js";
  11388. // import pdf from "./components/pdf3";
  11389. import pdf from "./components/vpdf";
  11390. import AskStatic from "./components/askStatic";
  11391. import AskStatic2 from "./components/askStatic2";
  11392. import AnswerData2 from "./components/answerData2";
  11393. import AnswerData from "./components/answerData";
  11394. import EditorBar from "./tools/wangEnduit.vue";
  11395. import Table from "./tools/table.vue";
  11396. import Time from "./tools/time.vue";
  11397. import Mind from "./tools/jsmind.vue";
  11398. import Sunburst from "./tools/sunburst";
  11399. import SeeBoard from "./tools/seeBoard";
  11400. import * as imageConversion from "image-conversion";
  11401. import Audio from "./components/audio.vue";
  11402. import ImgDraw from "./tools/imgDraw/imgDraw";
  11403. import { Empty } from "element-ui";
  11404. import RecordRTC from "recordrtc";
  11405. import interVideo from "./interVideo/index.vue";
  11406. import UpdateMore from "./updateMore/updateMore.vue";
  11407. import wordCloud from "./wordCloud/index.vue";
  11408. import axios from "axios";
  11409. import JSZip from "jszip";
  11410. import FileSaver from "file-saver";
  11411. import onlineWrite from "./components/onlineWrite";
  11412. const getFile = (url) => {
  11413. return new Promise((resolve, reject) => {
  11414. axios({
  11415. method: "get",
  11416. url,
  11417. responseType: "blob",
  11418. })
  11419. .then((data) => {
  11420. resolve({ data: data.data });
  11421. })
  11422. .catch((error) => {
  11423. resolve({ data: 1 });
  11424. // reject(error.toString());
  11425. });
  11426. });
  11427. };
  11428. export default {
  11429. components: {
  11430. EditorBar,
  11431. Time,
  11432. pdf,
  11433. AskStatic,
  11434. AskStatic2,
  11435. Mind,
  11436. Sunburst,
  11437. SeeBoard,
  11438. AnswerData2,
  11439. AnswerData,
  11440. Audio,
  11441. ImgDraw,
  11442. Table,
  11443. interVideo,
  11444. UpdateMore,
  11445. wordCloud,
  11446. onlineWrite,
  11447. },
  11448. data() {
  11449. return {
  11450. bg: null,
  11451. drawShow: false,
  11452. dialogVisible: false,
  11453. dialogVisiblePl: false,
  11454. commentDialogVisible: false,
  11455. dialogVisibleMember: false,
  11456. dialogVisibleWordCloud: false,
  11457. videoVisible: false,
  11458. isStar: false,
  11459. studentEvalDialogVisible: false,
  11460. studentEvalDialogVisibleTeacher: false,
  11461. dialogVisibleSelect: false,
  11462. dialogVisibleSelectTeacher: false,
  11463. dialogVisibleScore: false,
  11464. dialogVisibleSentence: false,
  11465. dialogVisibleSentenceTeacher: false,
  11466. dialogVisibleSentence1: false,
  11467. dialogVisibleWorks: false,
  11468. dialogVisibleTable: false,
  11469. dialogVisibleTableTeacher: false,
  11470. dialogVisibleWord: false,
  11471. dialogVisibleWordTeacher: false,
  11472. dialogVisibleTable2: false,
  11473. dialogVisibleTable3: false,
  11474. dialogVisibleGroupWork: false,
  11475. dialogVisibleUpdateGroup: false,
  11476. dialogVisibleDeleteGroup: false,
  11477. dialogVisibleSname: false,
  11478. dialogVisibleVideo: false,
  11479. dialogVisiblePickPeople: false,
  11480. engDialogVisible: false,
  11481. engUpdateDialogVisible:false,
  11482. isNoUserid:false,
  11483. engListLength:0,
  11484. engWid:"",
  11485. newEnglishList:{
  11486. engTitle:"",
  11487. engText:"",
  11488. },
  11489. newEnglishList1:[],
  11490. oldEnglishJson:{},
  11491. oldEnglishJson1:{},
  11492. englishList1:{},
  11493. englishList:{},
  11494. myAnswerList1:{},
  11495. topHeight:0,
  11496. newEngIndex:-1,
  11497. englishToolIndex:0,
  11498. worksSName: "",
  11499. classJuri: [],
  11500. uploadStudentJuri: [],
  11501. uploadCid: "",
  11502. snameWid: "",
  11503. sStudent: {},
  11504. sTool: "",
  11505. bzText: "",
  11506. commentDetail: [],
  11507. selectAnswer: [],
  11508. videoDetail: {},
  11509. selectJson: {},
  11510. eScore: { eBzText: "", eStar: [] },
  11511. id: this.$route.query.courseId,
  11512. userid: this.$route.query.userid,
  11513. classId: this.$route.query.cid,
  11514. // courseTypeLine: this.$route.query.type,
  11515. oid: this.$route.query.oid,
  11516. org: this.$route.query.org,
  11517. tType: this.$route.query.tType,
  11518. courseType: this.$route.query.type,
  11519. screenType: this.$route.query.screenType,
  11520. tcid2: this.$route.query.tcid,
  11521. tcid: "",
  11522. pptImgUrl: "",
  11523. pptImgUrl1: "",
  11524. commentText: "",
  11525. full: false,
  11526. sIsOpen: false,
  11527. IsLookOpen: false,
  11528. IsFollow: false,
  11529. pzDialog: false,
  11530. contentDialog: false,
  11531. mlDialog: false,
  11532. type: 1,
  11533. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11534. sentenceList1: [],
  11535. tableJson: [],
  11536. tableJsonO: [],
  11537. wordJson: [],
  11538. wordJsonO: [],
  11539. vedio: [],
  11540. text: [],
  11541. textList: [],
  11542. line: [],
  11543. lineList: [],
  11544. chapTools: [],
  11545. chapToolList: [],
  11546. file: [],
  11547. fileC: [],
  11548. vedioTime: [],
  11549. upToolImg: "",
  11550. preTime: 0,
  11551. rateList: {
  11552. ca: 0,
  11553. },
  11554. rateParams: [],
  11555. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11556. studyJuri: [
  11557. {
  11558. content: "",
  11559. cover: [],
  11560. upVedio: [],
  11561. upFile: [],
  11562. },
  11563. ],
  11564. isClose: 0,
  11565. plworkFile: [],
  11566. mr: require("../assets/vedioPic.png"),
  11567. word: require("../assets/icon/isWord.png"),
  11568. word2: require("../assets/icon/word2.png"),
  11569. video: require("../assets/icon/isVideo.png"),
  11570. noLikes: require("../assets/icon/comment/noLikes.png"),
  11571. likes: require("../assets/icon/comment/likes.png"),
  11572. scoreImg: require("../assets/score.png"),
  11573. courseDetail: {},
  11574. reply: "",
  11575. isSelect: false,
  11576. chapInfo: [],
  11577. chapInfoList: [],
  11578. taskCount: 0,
  11579. imgList: [],
  11580. noImgList: [],
  11581. pzList: [],
  11582. timeWorkList: [],
  11583. PlTextList: [
  11584. "Excellent!",
  11585. "nice!",
  11586. "很有创意!",
  11587. "还不错哦~",
  11588. "继续努力哦~",
  11589. ],
  11590. isClickNav: "",
  11591. navId: "",
  11592. playerOptions: {
  11593. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11594. autoplay: false, //如果true,浏览器准备好时开始回放。
  11595. muted: false, // 默认情况下将会消除任何音频。
  11596. loop: false, // 导致视频一结束就重新开始。
  11597. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11598. language: "zh-CN",
  11599. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11600. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11601. sources: [
  11602. {
  11603. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11604. src: "", //url地址require("../../assets/media/aaa.mp4")
  11605. },
  11606. ],
  11607. // poster: require("../../assets/tu31.png"), //你的封面地址
  11608. // poster: dataRes.imgUrl, //你的封面地址
  11609. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11610. controlBar: {
  11611. timeDivider: true, //当前时间和持续时间的分隔符
  11612. durationDisplay: true, //显示持续时间
  11613. remainingTimeDisplay: false, //是否显示剩余时间功能
  11614. fullscreenToggle: true, //全屏按钮
  11615. },
  11616. },
  11617. playerOptions1: {
  11618. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11619. autoplay: false, //如果true,浏览器准备好时开始回放。
  11620. muted: false, // 默认情况下将会消除任何音频。
  11621. loop: false, // 导致视频一结束就重新开始。
  11622. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11623. language: "zh-CN",
  11624. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11625. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11626. sources: [
  11627. {
  11628. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11629. src: "", //url地址require("../../assets/media/aaa.mp4")
  11630. },
  11631. ],
  11632. // poster: require("../../assets/tu31.png"), //你的封面地址
  11633. // poster: dataRes.imgUrl, //你的封面地址
  11634. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11635. controlBar: {
  11636. timeDivider: true, //当前时间和持续时间的分隔符
  11637. durationDisplay: true, //显示持续时间
  11638. remainingTimeDisplay: false, //是否显示剩余时间功能
  11639. fullscreenToggle: true, //全屏按钮
  11640. },
  11641. },
  11642. playerO: {},
  11643. noneBtnImg: false,
  11644. proVisible: false,
  11645. proVisible2: false,
  11646. progress: 0,
  11647. isFinishSize: 0,
  11648. isAllSize: 0,
  11649. questionAnswer: "",
  11650. answerQ: "", //问答标题
  11651. rateJson: [],
  11652. wbCount: 0,
  11653. wordCount: 0,
  11654. mindCount: 0,
  11655. askCount: 0,
  11656. noteCount: 0,
  11657. mindNetWorkCount: 0,
  11658. libraryCount: 0,
  11659. workCount: 0,
  11660. timeCount: 0,
  11661. answerCount: 0,
  11662. trainCount: 0,
  11663. evalCount: 0,
  11664. dialogImageUrl: "",
  11665. pictureDialog: false,
  11666. toolTypeList: [],
  11667. dialogVisible1: false,
  11668. dialogVisible2: false,
  11669. dialogVisible3: false,
  11670. dialogVisible6: false,
  11671. dialogVisible4: false,
  11672. isNoHomeWork: false,
  11673. dialogVisible5: false,
  11674. dialogVisible5Teacher: false,
  11675. dialogVisibleChoice: false,
  11676. dialogVisibleChoiceTeacher: false,
  11677. answerDialogVisible: false,
  11678. answerDialogVisibleTeacher: false,
  11679. juriVisible: false,
  11680. timeDialogVisible: false,
  11681. replyDialogVisible: false,
  11682. toolDialogVisible: false,
  11683. replyIndex: 0,
  11684. replyPid: "",
  11685. radio: [],
  11686. isAsk: false,
  11687. askJson: {
  11688. askCount: 1,
  11689. askTitle: "",
  11690. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11691. },
  11692. testJson: {},
  11693. checkJson: [],
  11694. askList: [],
  11695. answerList: [],
  11696. navList: [],
  11697. addPzDialog: false,
  11698. pzConText: "",
  11699. worksStudent: [],
  11700. isCloseList: [],
  11701. workStudent: [],
  11702. groupStudent: [],
  11703. groupStudentUid: [],
  11704. noWorksS: [],
  11705. isWorksS: [],
  11706. noWorksStudent: [],
  11707. toolindex: 0,
  11708. toolDetailIndex: null,
  11709. groupIndex: 0,
  11710. workTypeB: false,
  11711. workTypeC: false,
  11712. isAnswer: false,
  11713. isHovered: false,
  11714. isHovered1: false,
  11715. isHovered2: false,
  11716. timer: null,
  11717. opertimer: null,
  11718. showType: 0,
  11719. fileType: 0,
  11720. showPDF: false,
  11721. noteName: "",
  11722. evaJuri: [],
  11723. evalua: "",
  11724. eTitle: "",
  11725. eName: "",
  11726. eJson: {},
  11727. fid: "", //一级
  11728. sid: "", //二级
  11729. tid: "", //二级
  11730. typeMode: 1,
  11731. eJSONNum: 0,
  11732. Etype: 1,
  11733. data: {
  11734. meta: {
  11735. name: "example",
  11736. author: "dd@163.com",
  11737. version: "0.2",
  11738. },
  11739. format: "node_array",
  11740. data: [{ id: "root", isroot: true, topic: "" }],
  11741. },
  11742. fullDialogVisible: false,
  11743. fulltype: "",
  11744. fullUrl: "",
  11745. commentIndexJson: {},
  11746. Stbodywidth: 0,
  11747. ispzType: 0,
  11748. pzType: 1,
  11749. wScore: 0,
  11750. scoreDetail: "",
  11751. videoStart: false,
  11752. recorder: null,
  11753. groupJson: {},
  11754. islock: false,
  11755. groupJson2: {},
  11756. dialogVisibleGroup: false,
  11757. dialogVisibleGroup2: false,
  11758. updateGroupArray: [],
  11759. updateGroupUser: {},
  11760. deleteGroupUser: [],
  11761. deleteGroupArray: {},
  11762. checkChair: "",
  11763. checkDeleteGroup: [],
  11764. inviteCode: "",
  11765. courseGroupStudent: [],
  11766. courseGroupStudentUid: [],
  11767. courseGroup: {},
  11768. isGroup: false,
  11769. // toolIndex: null,
  11770. tool: {},
  11771. isWorkTool: [
  11772. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11773. ], //, 40
  11774. videoJson: {},
  11775. toolType: 0,
  11776. checktoolArray: [],
  11777. vChapterData: [],
  11778. isUpdateToolDetail: false,
  11779. isUpdateToolDetail1: false,
  11780. updateToolDetailInner: "",
  11781. checkboxList: [],
  11782. plIndex: "",
  11783. worksSName2: "",
  11784. worksSid: "",
  11785. wordCloudData: [],
  11786. isPickStudent: [],
  11787. pzStype: 1,
  11788. myAnList: {},
  11789. userMes:{},
  11790. };
  11791. },
  11792. methods: {
  11793. setEnglishList(engList) {
  11794. this.myAnList = engList;
  11795. },
  11796. addToolChoose() {
  11797. if (!this.checktoolArray.length) {
  11798. this.$message.error("请选择要添加的任务");
  11799. return;
  11800. }
  11801. if (
  11802. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11803. this.taskCount
  11804. ].toolChoose[0].tool.length
  11805. ) {
  11806. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11807. this.taskCount
  11808. ].toolChoose[0].tool = this.checktoolArray;
  11809. } else {
  11810. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11811. this.taskCount
  11812. ].toolChoose.push({
  11813. tool: this.checktoolArray,
  11814. toolDetail: "",
  11815. toolType: 0,
  11816. askCount: 1,
  11817. askTitle: "",
  11818. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11819. });
  11820. }
  11821. let params = [
  11822. {
  11823. cid: this.id,
  11824. chapters: JSON.stringify(this.chapInfoList),
  11825. uid: this.userid,
  11826. unitIndex: this.courseType,
  11827. },
  11828. ];
  11829. this.ajax
  11830. .post(this.$store.state.api + "updateWorkNew4", params)
  11831. .then((res) => {
  11832. this.$message({
  11833. message: "添加成功",
  11834. type: "success",
  11835. });
  11836. this.checktoolArray = [];
  11837. this.getCourseDetail(2);
  11838. this.checkBz(
  11839. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11840. this.taskCount
  11841. ].toolChoose.length - 1
  11842. );
  11843. this.toolDialogVisible = false;
  11844. this.refreshCourse();
  11845. this.$forceUpdate();
  11846. })
  11847. .catch((err) => {
  11848. console.error(err);
  11849. });
  11850. },
  11851. checkBz(index) {
  11852. this.isUpdateToolDetail = false;
  11853. this.$forceUpdate();
  11854. setTimeout(() => {
  11855. document.scrollingElement.scrollTop =
  11856. document.querySelectorAll(".filebox")[index].offsetTop +
  11857. document.querySelector(".student_body").offsetTop;
  11858. }, 500);
  11859. },
  11860. updateToolDetail(i) {
  11861. this.toolDetailIndex = i;
  11862. if (!this.isUpdateToolDetail1) {
  11863. this.isUpdateToolDetail1 = true;
  11864. this.updateToolDetailInner = JSON.parse(
  11865. JSON.stringify(
  11866. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11867. this.taskCount
  11868. ].toolChoose[i].toolDetail
  11869. )
  11870. );
  11871. } else {
  11872. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11873. this.taskCount
  11874. ].toolChoose[i].toolDetail = JSON.parse(
  11875. JSON.stringify(this.updateToolDetailInner)
  11876. );
  11877. let params = [
  11878. {
  11879. cid: this.id,
  11880. chapters: JSON.stringify(this.chapInfoList),
  11881. uid: this.userid,
  11882. unitIndex: this.courseType,
  11883. },
  11884. ];
  11885. this.ajax
  11886. .post(this.$store.state.api + "updateWorkNew4", params)
  11887. .then((res) => {
  11888. this.isUpdateToolDetail1 = false;
  11889. this.$message({
  11890. message: "修改成功",
  11891. type: "success",
  11892. });
  11893. this.toolDetailIndex = null;
  11894. this.updateToolDetailInner = "";
  11895. this.getCourseDetail(2);
  11896. this.$forceUpdate();
  11897. })
  11898. .catch((err) => {
  11899. console.error(err);
  11900. });
  11901. }
  11902. },
  11903. jumpGj(i, j, k, l) {
  11904. for (var z = 0; z < this.navList.length; z++) {
  11905. for (var q = 0; q < this.navList[z].task.length; q++) {
  11906. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  11907. this.navList[z].task[q].tool[w].isTool = false;
  11908. }
  11909. }
  11910. }
  11911. this.navList[i].task[j].tool[k].isTool =
  11912. !this.navList[i].task[j].tool[k].isTool;
  11913. var a = document.scrollingElement;
  11914. let target = document.querySelector(`#gj${k}`);
  11915. if (target) {
  11916. target.scrollIntoView(true);
  11917. setTimeout(() => {
  11918. a.scrollTop = a.scrollTop - 150;
  11919. }, 0);
  11920. }
  11921. if (l) {
  11922. this.courseType = i;
  11923. this.navId = l;
  11924. this.taskCount = j;
  11925. this.selectPz();
  11926. this.getHomeWork();
  11927. this.getCourseDetail(2);
  11928. }
  11929. // var b = this.$refs["bz" + k][0];
  11930. // a.scrollTop = b.offsetTop;
  11931. },
  11932. addTools2(i) {
  11933. if (i == 4) {
  11934. // this.openTools2(4);
  11935. this.$message.error("暂未开放");
  11936. return;
  11937. }
  11938. if (i == 45) {
  11939. // this.openTools2(45);
  11940. this.$message.error("暂未开放");
  11941. return;
  11942. }
  11943. if (i == 47) {
  11944. // this.openTools2(47);
  11945. this.$message.error("暂未开放");
  11946. return;
  11947. }
  11948. if (i == 49) {
  11949. // this.openTools2(49);
  11950. this.$message.error("暂未开放");
  11951. return;
  11952. }
  11953. if (i == 62) {
  11954. // this.openTools(itemTaskIndex, 62, toolIndex);
  11955. this.$message.error("暂未开放");
  11956. return;
  11957. }
  11958. if (i == 15) {
  11959. // this.openTools(itemTaskIndex, 15, toolIndex);
  11960. this.$message.error("暂未开放");
  11961. return;
  11962. }
  11963. if (i == 40) {
  11964. // this.openTools(itemTaskIndex, 40, toolIndex);
  11965. this.$message.error("暂未开放");
  11966. return;
  11967. }
  11968. if (i == 41) {
  11969. // this.openTools(itemTaskIndex, 41, toolIndex);
  11970. this.$message.error("暂未开放");
  11971. return;
  11972. }
  11973. if (i == 42) {
  11974. // this.openTools(itemTaskIndex, 42, toolIndex);
  11975. this.$message.error("暂未开放");
  11976. return;
  11977. }
  11978. if (this.checktoolArray.length > 0) {
  11979. if (this.checktoolArray.indexOf(i) != -1) {
  11980. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  11981. } else {
  11982. this.checktoolArray = [];
  11983. this.checktoolArray.push(i);
  11984. }
  11985. } else {
  11986. this.checktoolArray.push(i);
  11987. }
  11988. this.$forceUpdate();
  11989. },
  11990. jump() {
  11991. window.parent.postMessage({ tools: "43" }, "*");
  11992. },
  11993. getUpdateMore(f, checkboxList, searchTN, index) {
  11994. this.dialogVisibleMember = f;
  11995. this.checkboxList = checkboxList;
  11996. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  11997. this.plIndex = index;
  11998. },
  11999. setPlname(a) {
  12000. if (this.plworkFile.length) {
  12001. this.plworkFile[this.plIndex].username = a;
  12002. } else {
  12003. this.worksSName = a;
  12004. }
  12005. this.dialogVisibleMember = false;
  12006. },
  12007. previewImg(url) {
  12008. this.$hevueImgPreview(url);
  12009. },
  12010. checkImg(list) {
  12011. if (!list.length) {
  12012. return;
  12013. }
  12014. this.$hevueImgPreview({
  12015. multiple: true, // 开启多图预览模式
  12016. imgList: list, // 需要预览的多图数组
  12017. });
  12018. },
  12019. change(val) {
  12020. console.log(val);
  12021. },
  12022. goTo(path) {
  12023. this.$router.push(path);
  12024. },
  12025. handlePictureCardPreview(url) {
  12026. this.dialogImageUrl = url;
  12027. this.pictureDialog = true;
  12028. },
  12029. clean(type) {
  12030. if (type == 1) {
  12031. this.studyJuri[0].cover.splice(0, 1);
  12032. } else if (type == 2) {
  12033. this.studyJuri[0].upVedio.splice(0, 1);
  12034. } else {
  12035. this.studyJuri[0].upFile.splice(0, 1);
  12036. }
  12037. },
  12038. clean2(index) {
  12039. this.plworkFile.splice(index, 1);
  12040. },
  12041. handleClose(done) {
  12042. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12043. this.videoDetail.sources[0].src = "";
  12044. }
  12045. this.commentIndexJson = {};
  12046. done();
  12047. },
  12048. fullTools() {
  12049. this.full = !this.full;
  12050. },
  12051. imgChange(file, fileList, type) {
  12052. if (type == 1) {
  12053. var _tmp = this.studyJuri[0].cover;
  12054. } else if (type == 2) {
  12055. var _tmp = this.studyJuri[0].upVedio;
  12056. } else {
  12057. var _tmp = this.studyJuri[0].upFile;
  12058. }
  12059. this.noneBtnImg = _tmp.length >= 1;
  12060. },
  12061. setContent(bool) {
  12062. this.contentDialog = bool;
  12063. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12064. document.querySelector(".workd_media").style.height = "650px";
  12065. } else if (document.querySelector(".workd_media")) {
  12066. document.querySelector(".workd_media").style.height = "auto";
  12067. }
  12068. },
  12069. setContent2(bool) {
  12070. this.mlDialog = bool;
  12071. if (
  12072. bool &&
  12073. this.contentDialog &&
  12074. document.querySelector(".workd_media")
  12075. ) {
  12076. document.querySelector(".workd_media").style.height = "650px";
  12077. } else if (document.querySelector(".workd_media")) {
  12078. document.querySelector(".workd_media").style.height = "auto";
  12079. }
  12080. },
  12081. openToolAll() {
  12082. this.toolDialogVisible = true;
  12083. },
  12084. addImg(e) {
  12085. var el = e.currentTarget;
  12086. // this.$message.success('触发上传')
  12087. el.getElementsByTagName("input")[0].click();
  12088. e.target.value = "";
  12089. },
  12090. addSelectAnswer() {
  12091. let params = [
  12092. {
  12093. uid: this.userid,
  12094. cid: this.id,
  12095. stage: this.courseType,
  12096. task: this.taskCount,
  12097. tool: this.toolindex,
  12098. content: this.selectAnswer.answer,
  12099. type: 7,
  12100. },
  12101. ];
  12102. this.ajax
  12103. .post(this.$store.state.api + "addCourseWorks", params)
  12104. .then((res) => {
  12105. this.$message({
  12106. message: "提交成功",
  12107. type: "success",
  12108. });
  12109. this.dialogVisibleSelect = false;
  12110. // this.selectAnswer = {};
  12111. this.selectSWorks();
  12112. this.selectStudent();
  12113. })
  12114. .catch((err) => {
  12115. this.$message.error("提交失败");
  12116. console.error(err);
  12117. });
  12118. },
  12119. addSelectAnswerTeacher() {
  12120. let params = [
  12121. {
  12122. uid: this.sStudent.userid,
  12123. cid: this.id,
  12124. stage: this.courseType,
  12125. task: this.taskCount,
  12126. tool: this.toolindex,
  12127. content: this.selectAnswer.answer,
  12128. type: 7,
  12129. },
  12130. ];
  12131. this.ajax
  12132. .post(this.$store.state.api + "addCourseWorks", params)
  12133. .then((res) => {
  12134. this.$message({
  12135. message: "提交成功",
  12136. type: "success",
  12137. });
  12138. this.dialogVisibleSelectTeacher = false;
  12139. // this.selectAnswer = {};
  12140. this.selectSWorks();
  12141. this.selectStudent();
  12142. })
  12143. .catch((err) => {
  12144. this.$message.error("提交失败");
  12145. console.error(err);
  12146. });
  12147. },
  12148. addSenWorks() {
  12149. for (var i = 0; i < this.sentenceList.length; i++) {
  12150. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12151. if (
  12152. this.sentenceList[i].chooseSenList[j] == undefined ||
  12153. this.sentenceList[i].chooseSenList[j] == ""
  12154. ) {
  12155. this.$message.error("请将答案填写完整!");
  12156. return;
  12157. }
  12158. }
  12159. }
  12160. let params = [
  12161. {
  12162. uid: this.userid,
  12163. cid: this.id,
  12164. stage: this.courseType,
  12165. task: this.taskCount,
  12166. tool: this.toolindex,
  12167. content: JSON.stringify(this.sentenceList),
  12168. type: 9,
  12169. },
  12170. ];
  12171. this.ajax
  12172. .post(this.$store.state.api + "addCourseWorks", params)
  12173. .then((res) => {
  12174. this.$message({
  12175. message: "提交成功",
  12176. type: "success",
  12177. });
  12178. this.dialogVisibleSentence = false;
  12179. // this.selectAnswer = {};
  12180. this.selectSWorks();
  12181. this.selectStudent();
  12182. })
  12183. .catch((err) => {
  12184. this.$message.error("提交失败");
  12185. console.error(err);
  12186. });
  12187. },
  12188. addSenWorksTeacher() {
  12189. for (var i = 0; i < this.sentenceList.length; i++) {
  12190. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12191. if (
  12192. this.sentenceList[i].chooseSenList[j] == undefined ||
  12193. this.sentenceList[i].chooseSenList[j] == ""
  12194. ) {
  12195. this.$message.error("请将答案填写完整!");
  12196. return;
  12197. }
  12198. }
  12199. }
  12200. let params = [
  12201. {
  12202. uid: this.sStudent.userid,
  12203. cid: this.id,
  12204. stage: this.courseType,
  12205. task: this.taskCount,
  12206. tool: this.toolindex,
  12207. content: JSON.stringify(this.sentenceList),
  12208. type: 9,
  12209. },
  12210. ];
  12211. this.ajax
  12212. .post(this.$store.state.api + "addCourseWorks", params)
  12213. .then((res) => {
  12214. this.$message({
  12215. message: "提交成功",
  12216. type: "success",
  12217. });
  12218. this.dialogVisibleSentenceTeacher = false;
  12219. // this.selectAnswer = {};
  12220. this.selectSWorks();
  12221. this.selectStudent();
  12222. })
  12223. .catch((err) => {
  12224. this.$message.error("提交失败");
  12225. console.error(err);
  12226. });
  12227. },
  12228. returnTableText() {
  12229. this.$confirm("确定还原此模板吗?", "提示", {
  12230. confirmButtonText: "确定",
  12231. cancelButtonText: "取消",
  12232. type: "warning",
  12233. })
  12234. .then(() => {
  12235. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12236. })
  12237. .catch(() => {});
  12238. },
  12239. addTableWorks() {
  12240. let params = [
  12241. {
  12242. uid: this.userid,
  12243. cid: this.id,
  12244. stage: this.courseType,
  12245. task: this.taskCount,
  12246. tool: this.toolindex,
  12247. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12248. type: 10,
  12249. },
  12250. ];
  12251. this.ajax
  12252. .post(this.$store.state.api + "addCourseWorks", params)
  12253. .then((res) => {
  12254. this.$message({
  12255. message: "提交成功",
  12256. type: "success",
  12257. });
  12258. this.dialogVisibleTable = false;
  12259. // this.selectAnswer = {};
  12260. this.selectSWorks();
  12261. this.selectStudent();
  12262. })
  12263. .catch((err) => {
  12264. this.$message.error("提交失败");
  12265. console.error(err);
  12266. });
  12267. },
  12268. tableRowClassName({ row, rowIndex }) {
  12269. if ((rowIndex + 1) % 2 === 0) {
  12270. return "even_row";
  12271. } else {
  12272. return "";
  12273. }
  12274. },
  12275. addTableWorksTeacher() {
  12276. let params = [
  12277. {
  12278. uid: this.sStudent.userid,
  12279. cid: this.id,
  12280. stage: this.courseType,
  12281. task: this.taskCount,
  12282. tool: this.toolindex,
  12283. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12284. type: 10,
  12285. },
  12286. ];
  12287. this.ajax
  12288. .post(this.$store.state.api + "addCourseWorks", params)
  12289. .then((res) => {
  12290. this.$message({
  12291. message: "提交成功",
  12292. type: "success",
  12293. });
  12294. this.dialogVisibleTableTeacher = false;
  12295. // this.selectAnswer = {};
  12296. this.selectSWorks();
  12297. this.selectStudent();
  12298. })
  12299. .catch((err) => {
  12300. this.$message.error("提交失败");
  12301. console.error(err);
  12302. });
  12303. },
  12304. returnWordText() {
  12305. this.$confirm("确定还原此模板吗?", "提示", {
  12306. confirmButtonText: "确定",
  12307. cancelButtonText: "取消",
  12308. type: "warning",
  12309. })
  12310. .then(() => {
  12311. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  12312. })
  12313. .catch(() => {});
  12314. },
  12315. addWordWorks() {
  12316. let params = [
  12317. {
  12318. uid: this.userid,
  12319. cid: this.id,
  12320. stage: this.courseType,
  12321. task: this.taskCount,
  12322. tool: this.toolindex,
  12323. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12324. type: 13,
  12325. atool: 52,
  12326. },
  12327. ];
  12328. this.ajax
  12329. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12330. .then((res) => {
  12331. this.$message({
  12332. message: "提交成功",
  12333. type: "success",
  12334. });
  12335. this.dialogVisibleWord = false;
  12336. // this.selectAnswer = {};
  12337. this.selectSWorks();
  12338. this.selectStudent();
  12339. })
  12340. .catch((err) => {
  12341. this.$message.error("提交失败");
  12342. console.error(err);
  12343. });
  12344. },
  12345. addWordWorksTeacher() {
  12346. let params = [
  12347. {
  12348. uid: this.sStudent.userid,
  12349. cid: this.id,
  12350. stage: this.courseType,
  12351. task: this.taskCount,
  12352. tool: this.toolindex,
  12353. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12354. type: 13,
  12355. atool: 52,
  12356. },
  12357. ];
  12358. this.ajax
  12359. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12360. .then((res) => {
  12361. this.$message({
  12362. message: "提交成功",
  12363. type: "success",
  12364. });
  12365. this.dialogVisibleWordTeacher = false;
  12366. // this.selectAnswer = {};
  12367. this.selectSWorks();
  12368. this.selectStudent();
  12369. })
  12370. .catch((err) => {
  12371. this.$message.error("提交失败");
  12372. console.error(err);
  12373. });
  12374. },
  12375. addCourseWorks(i) {
  12376. var typesql;
  12377. if (this.fileType === 0) {
  12378. typesql = 1;
  12379. } else if (this.fileType === 1) {
  12380. typesql = 4;
  12381. } else if (this.fileType === 2) {
  12382. typesql = 5;
  12383. } else if (this.fileType === 3) {
  12384. typesql = 12;
  12385. }
  12386. if (!this.studyJuri[0].cover[0].url) {
  12387. this.$message.error("请上传文件");
  12388. return;
  12389. }
  12390. let params = [
  12391. {
  12392. uid: this.userid,
  12393. cid: this.id,
  12394. stage: this.courseType,
  12395. task: i,
  12396. tool: this.toolindex,
  12397. content: this.studyJuri[0].cover[0].url,
  12398. type: typesql,
  12399. },
  12400. ];
  12401. this.ajax
  12402. .post(this.$store.state.api + "addCourseWorksR", params)
  12403. .then((res) => {
  12404. this.$message({
  12405. message: "提交成功",
  12406. type: "success",
  12407. });
  12408. this.studyJuri[0].cover = [];
  12409. this.dialogVisible = false;
  12410. this.getCourseDetail(2);
  12411. })
  12412. .catch((err) => {
  12413. this.$message.error("提交失败");
  12414. console.error(err);
  12415. });
  12416. },
  12417. addCourseWorksPl(i) {
  12418. let _files = this.plworkFile;
  12419. var c = 1;
  12420. for (var k = 0; k < _files.length; k++) {
  12421. if (!_files[k].username) {
  12422. c = 2;
  12423. }
  12424. }
  12425. if (c == 2) {
  12426. this.$message.error("请填写学生姓名");
  12427. return;
  12428. }
  12429. let params = [
  12430. {
  12431. ateacher: this.userid,
  12432. cid: this.id,
  12433. stage: this.courseType,
  12434. task: i,
  12435. tool: this.toolindex,
  12436. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12437. },
  12438. ];
  12439. this.ajax
  12440. .post(this.$store.state.api + "addCourseWorksPl", params)
  12441. .then((res) => {
  12442. this.$message({
  12443. message: "提交成功",
  12444. type: "success",
  12445. });
  12446. this.plworkFile = [];
  12447. this.dialogVisiblePl = false;
  12448. this.getCourseDetail(2);
  12449. })
  12450. .catch((err) => {
  12451. this.$message.error("提交失败");
  12452. console.error(err);
  12453. });
  12454. },
  12455. addCourseWorks2(i) {
  12456. var typesql;
  12457. if (this.fileType === 0) {
  12458. typesql = 0;
  12459. } else if (this.fileType === 1) {
  12460. typesql = 1;
  12461. } else if (this.fileType === 2) {
  12462. typesql = 3;
  12463. } else if (this.fileType === 3) {
  12464. typesql = 12;
  12465. }
  12466. if (!this.studyJuri[0].cover[0].url) {
  12467. this.$message.error("请上传文件");
  12468. return;
  12469. }
  12470. let params = [
  12471. {
  12472. uid: this.userid,
  12473. cid: this.id,
  12474. stage: this.courseType,
  12475. task: i,
  12476. tool: this.toolindex,
  12477. content: JSON.stringify({
  12478. type: typesql,
  12479. groupIndex: this.groupIndex,
  12480. url: this.studyJuri[0].cover[0].url,
  12481. }).replaceAll(/%/g, "%25"),
  12482. type: 11,
  12483. atool: 49,
  12484. text: "",
  12485. },
  12486. ];
  12487. this.ajax
  12488. .post(this.$store.state.api + "addCourseWorks5", params)
  12489. .then((res) => {
  12490. this.$message({
  12491. message: "提交成功",
  12492. type: "success",
  12493. });
  12494. this.studyJuri[0].cover = [];
  12495. this.dialogVisibleGroupWork = false;
  12496. this.getCourseDetail(2);
  12497. })
  12498. .catch((err) => {
  12499. this.$message.error("提交失败");
  12500. console.error(err);
  12501. });
  12502. },
  12503. addEnglishWork() {
  12504. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  12505. this.$message.error("请输入作文标题和正文!");
  12506. return;
  12507. }
  12508. let params = [
  12509. {
  12510. uid: this.userid,
  12511. cid: this.id,
  12512. stage: this.courseType,
  12513. task: this.taskCount,
  12514. tool: this.englishToolIndex,
  12515. content: JSON.stringify(this.myAnList),
  12516. type: 16,
  12517. atool: 69,
  12518. text: "",
  12519. },
  12520. ];
  12521. this.ajax
  12522. .post(this.$store.state.api + "addCourseWorks5", params)
  12523. .then((res) => {
  12524. this.$message({
  12525. message: "提交成功",
  12526. type: "success",
  12527. });
  12528. this.myAnList = {};
  12529. this.englishList = {};
  12530. this.englishToolIndex = 0;
  12531. this.engDialogVisible = false;
  12532. this.selectSWorks();
  12533. this.selectStudent();
  12534. })
  12535. .catch((err) => {
  12536. this.$message.error("提交失败");
  12537. console.error(err);
  12538. });
  12539. },
  12540. addCourseWorksGong(i, data, tool) {
  12541. let params = [
  12542. {
  12543. uid: this.userid,
  12544. cid: this.id,
  12545. stage: this.courseType,
  12546. task: this.taskCount,
  12547. tool: i,
  12548. content: data,
  12549. type: 12,
  12550. atool: tool,
  12551. text: "",
  12552. },
  12553. ];
  12554. this.ajax
  12555. .post(this.$store.state.api + "addCourseWorks5", params)
  12556. .then((res) => {
  12557. this.$message({
  12558. message: "提交成功",
  12559. type: "success",
  12560. });
  12561. this.studyJuri[0].cover = [];
  12562. this.selectSWorks();
  12563. this.selectStudent();
  12564. })
  12565. .catch((err) => {
  12566. this.$message.error("提交失败");
  12567. console.error(err);
  12568. });
  12569. },
  12570. addCourseWorksGongTeacher(i, data, tool) {
  12571. let params = [
  12572. {
  12573. uid: this.sStudent.userid,
  12574. cid: this.id,
  12575. stage: this.courseType,
  12576. task: this.taskCount,
  12577. tool: i,
  12578. content: data,
  12579. type: 12,
  12580. atool: tool,
  12581. text: "",
  12582. },
  12583. ];
  12584. this.ajax
  12585. .post(this.$store.state.api + "addCourseWorks5", params)
  12586. .then((res) => {
  12587. this.$message({
  12588. message: "提交成功",
  12589. type: "success",
  12590. });
  12591. this.studyJuri[0].cover = [];
  12592. this.dialogVisibleWorks = false;
  12593. this.selectSWorks();
  12594. this.selectStudent();
  12595. })
  12596. .catch((err) => {
  12597. this.$message.error("提交失败");
  12598. console.error(err);
  12599. });
  12600. },
  12601. addCourseWorksGongPl(i, data, tool, type) {
  12602. let params = [
  12603. {
  12604. uid: this.sStudent.userid,
  12605. cid: this.id,
  12606. stage: this.courseType,
  12607. task: this.taskCount,
  12608. tool: i,
  12609. content: data,
  12610. type: type,
  12611. atool: tool,
  12612. text: "",
  12613. },
  12614. ];
  12615. this.ajax
  12616. .post(this.$store.state.api + "addCourseWorks5", params)
  12617. .then((res) => {
  12618. this.$message({
  12619. message: "提交成功",
  12620. type: "success",
  12621. });
  12622. this.studyJuri[0].cover = [];
  12623. this.dialogVisibleWorks = false;
  12624. this.selectSWorks();
  12625. this.selectStudent();
  12626. })
  12627. .catch((err) => {
  12628. this.$message.error("提交失败");
  12629. console.error(err);
  12630. });
  12631. },
  12632. addCourseWorksTeacher(i) {
  12633. var typesql;
  12634. if (this.sTool == 32) {
  12635. this.addCourseWorksGongTeacher(
  12636. this.toolindex,
  12637. this.studyJuri[0].cover[0].url,
  12638. this.sTool
  12639. );
  12640. return;
  12641. }
  12642. if (this.fileType === 0) {
  12643. typesql = 1;
  12644. } else if (this.fileType === 1) {
  12645. typesql = 4;
  12646. } else if (this.fileType === 2) {
  12647. typesql = 5;
  12648. } else if (this.fileType === 3) {
  12649. typesql = 12;
  12650. }
  12651. if (this.sTool == 50) {
  12652. this.addCourseWorksGongPl(
  12653. this.toolindex,
  12654. this.studyJuri[0].cover[0].url,
  12655. this.sTool,
  12656. typesql
  12657. );
  12658. return;
  12659. }
  12660. if (!this.studyJuri[0].cover[0].url) {
  12661. this.$message.error("请上传文件");
  12662. return;
  12663. }
  12664. let params = [
  12665. {
  12666. uid: this.sStudent.userid,
  12667. cid: this.id,
  12668. stage: this.courseType,
  12669. task: i,
  12670. tool: this.toolindex,
  12671. content: this.studyJuri[0].cover[0].url,
  12672. type: typesql,
  12673. ateacher: this.userid,
  12674. },
  12675. ];
  12676. this.ajax
  12677. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12678. .then((res) => {
  12679. this.$message({
  12680. message: "提交成功",
  12681. type: "success",
  12682. });
  12683. this.studyJuri[0].cover = [];
  12684. this.dialogVisibleWorks = false;
  12685. this.getCourseDetail(2);
  12686. })
  12687. .catch((err) => {
  12688. this.$message.error("提交失败");
  12689. console.error(err);
  12690. });
  12691. },
  12692. selectUploadStudent(type) {
  12693. const loading = this.$loading.service({
  12694. background: "rgba(255, 255, 255, 0.7)",
  12695. target: document.body,
  12696. });
  12697. let params = {
  12698. cid: this.uploadCid,
  12699. oid: this.oid,
  12700. cn: "",
  12701. };
  12702. this.ajax
  12703. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12704. .then((res) => {
  12705. loading.close();
  12706. var studentK = [];
  12707. if (this.isWorksS[this.toolindex].length > 0) {
  12708. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12709. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12710. }
  12711. studentK = studentK.join(",");
  12712. }
  12713. this.uploadStudentJuri = res.data[0].filter((el) => {
  12714. return studentK.indexOf(el.userid) == -1;
  12715. });
  12716. if (this.worksSName && this.worksSid) {
  12717. this.uploadStudentJuri.push({
  12718. userid: this.worksSid,
  12719. name: this.worksSName,
  12720. });
  12721. }
  12722. if (type == 1) {
  12723. this.plworkFile = [];
  12724. this.dialogVisibleSname = true;
  12725. } else if (type == 2) {
  12726. this.dialogVisiblePl = true;
  12727. }
  12728. })
  12729. .catch((err) => {
  12730. loading.close();
  12731. console.error(err);
  12732. });
  12733. },
  12734. selectPickStudent() {
  12735. const loading = this.$loading.service({
  12736. background: "rgba(255, 255, 255, 0.7)",
  12737. target: document.body,
  12738. });
  12739. let params = {
  12740. cid: this.uploadCid,
  12741. oid: this.oid,
  12742. cn: "",
  12743. };
  12744. this.ajax
  12745. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12746. .then((res) => {
  12747. loading.close();
  12748. this.uploadStudentJuri = res.data[0];
  12749. this.dialogVisiblePickPeople = true;
  12750. })
  12751. .catch((err) => {
  12752. loading.close();
  12753. console.error(err);
  12754. });
  12755. },
  12756. arrayToArray(arrayo, arrayt) {
  12757. let array1 = arrayo;
  12758. let array2 = arrayt;
  12759. let commonElements = [];
  12760. for (let i = 0; i < array1.length; i++) {
  12761. for (let j = 0; j < array2.length; j++) {
  12762. if (array1[i] === array2[j]) {
  12763. commonElements.push(array1[i]);
  12764. }
  12765. }
  12766. }
  12767. return commonElements;
  12768. },
  12769. selectWorksStudent() {
  12770. let params = {
  12771. oid: this.oid,
  12772. cid: this.courseDetail.juri,
  12773. };
  12774. this.ajax
  12775. .get(this.$store.state.api + "selectWorksStudent", params)
  12776. .then((res) => {
  12777. var a = res.data[0];
  12778. for (var i = 0; i < this.isWorksS.length; i++) {
  12779. this.noWorksS[i] = [];
  12780. var studentK = [];
  12781. if (this.isWorksS[i].length > 0) {
  12782. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12783. studentK.push(this.isWorksS[i][z].uid);
  12784. }
  12785. studentK = studentK.join(",");
  12786. for (var j = 0; j < a.length; j++) {
  12787. if (studentK.indexOf(a[j].userid) == -1) {
  12788. if (this.tcid) {
  12789. // a[j].classid.indexOf(this.tcid) != -1
  12790. if (
  12791. this.arrayToArray(
  12792. a[j].classid.split(","),
  12793. this.tcid.split(",")
  12794. ).length
  12795. ) {
  12796. this.noWorksS[i].push({
  12797. student: a[j].name,
  12798. userid: a[j].userid,
  12799. });
  12800. }
  12801. } else {
  12802. this.noWorksS[i].push({
  12803. student: a[j].name,
  12804. userid: a[j].userid,
  12805. });
  12806. }
  12807. }
  12808. }
  12809. } else {
  12810. for (var k = 0; k < a.length; k++) {
  12811. if (this.tcid) {
  12812. if (
  12813. this.arrayToArray(
  12814. a[k].classid.split(","),
  12815. this.tcid.split(",")
  12816. ).length
  12817. ) {
  12818. this.noWorksS[i].push({
  12819. student: a[k].name,
  12820. userid: a[k].userid,
  12821. });
  12822. }
  12823. } else {
  12824. this.noWorksS[i].push({
  12825. student: a[k].name,
  12826. userid: a[k].userid,
  12827. });
  12828. }
  12829. }
  12830. }
  12831. }
  12832. this.$forceUpdate();
  12833. if (
  12834. Object.keys(this.commentDetail).length &&
  12835. Object.keys(this.commentIndexJson).length &&
  12836. !this.dialogVisibleScore
  12837. ) {
  12838. let a = 1;
  12839. let c = this.commentIndexJson;
  12840. if (
  12841. this.commentIndexJson.gindex ||
  12842. this.commentIndexJson.gindex === 0
  12843. ) {
  12844. for (
  12845. var i = 0;
  12846. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12847. i++
  12848. ) {
  12849. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12850. groupA: for (var k = 0; k < _el.length; k++) {
  12851. let el = _el[k];
  12852. if (el.wid == this.commentDetail.wid) {
  12853. a = 2;
  12854. this.commentOther(
  12855. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12856. this.commentIndexJson.toolIndex,
  12857. k,
  12858. this.commentIndexJson.gindex
  12859. );
  12860. break groupA;
  12861. }
  12862. }
  12863. }
  12864. if (a === 1) {
  12865. this.commentDetail = [];
  12866. this.commentIndexJson = {};
  12867. this.commentDialogVisible = false;
  12868. this.$message("此作业已被删除");
  12869. }
  12870. } else {
  12871. if (this.isGroup && this.commentIndexJson.gid) {
  12872. groupA: for (
  12873. var i = 0;
  12874. i < this.courseGroup.group.length;
  12875. i++
  12876. ) {
  12877. let _group = this.courseGroup.group[i];
  12878. if (_group.id == this.commentIndexJson.gid) {
  12879. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12880. for (var k = 0; k < _el2.length; k++) {
  12881. let el2 = _el2[k];
  12882. if (el2.wid == this.commentDetail.wid) {
  12883. a = 2;
  12884. this.commentOther(
  12885. _el2[k],
  12886. this.commentIndexJson.toolIndex,
  12887. k,
  12888. null,
  12889. this.commentIndexJson.gid
  12890. );
  12891. break groupA;
  12892. }
  12893. }
  12894. }
  12895. }
  12896. }
  12897. if (a == 1) {
  12898. for (
  12899. var i = 0;
  12900. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12901. i++
  12902. ) {
  12903. let el =
  12904. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12905. if (el.wid == this.commentDetail.wid) {
  12906. a = 2;
  12907. this.commentOther(
  12908. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12909. this.commentIndexJson.toolIndex,
  12910. i
  12911. );
  12912. break;
  12913. }
  12914. }
  12915. }
  12916. if (a === 1) {
  12917. this.commentDetail = [];
  12918. this.commentIndexJson = {};
  12919. this.commentDialogVisible = false;
  12920. this.$message("此作业已被删除");
  12921. }
  12922. }
  12923. }
  12924. })
  12925. .catch((err) => {
  12926. console.error(err);
  12927. });
  12928. },
  12929. selectStudent() {
  12930. //学生查看自己作业
  12931. let params = {
  12932. uid: this.userid,
  12933. cid: this.id,
  12934. s: this.courseType,
  12935. t: this.taskCount,
  12936. };
  12937. this.ajax
  12938. .get(this.$store.state.api + "selectStudentWorks", params)
  12939. .then((res) => {
  12940. var a =
  12941. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12942. this.taskCount
  12943. ].toolChoose;
  12944. var b = res.data[0];
  12945. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12946. var y = [
  12947. "AVI",
  12948. "NAVI",
  12949. "MPEG",
  12950. "ASF",
  12951. "MOV",
  12952. "WMV",
  12953. "3GP",
  12954. "RM",
  12955. "RMVB",
  12956. "FLV",
  12957. "F4V",
  12958. "H.264",
  12959. "H.265",
  12960. "REAL VIDEO",
  12961. "MKV",
  12962. "WebM",
  12963. "HDDVD",
  12964. "MP4",
  12965. "MPG",
  12966. "M4V",
  12967. "MGV",
  12968. "OGV",
  12969. "QTM",
  12970. "STR",
  12971. "AMC",
  12972. "DVX",
  12973. "EVO",
  12974. "DAT",
  12975. "OGG",
  12976. "OGM",
  12977. ];
  12978. for (var i = 0; i < a.length; i++) {
  12979. this.workStudent[i] = [];
  12980. for (var j = 0; j < b.length; j++) {
  12981. if (i == b[j].tool) {
  12982. if (
  12983. (b[j].type == 1 ||
  12984. b[j].type == 4 ||
  12985. b[j].type == 5 ||
  12986. b[j].type == 6 ||
  12987. b[j].type == 12 ||
  12988. b[j].type == 7) &&
  12989. a[i].tool[0] != 15 &&
  12990. a[i].tool[0] != 4 &&
  12991. a[i].tool[0] != 45 &&
  12992. a[i].tool[0] != 50 &&
  12993. a[i].tool[0] != 32 &&
  12994. a[i].tool[0] != 57 &&
  12995. a[i].tool[0] != 52 &&
  12996. a[i].tool[0] != 69
  12997. ) {
  12998. if (
  12999. c.indexOf(
  13000. b[j].content
  13001. .split(".")
  13002. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13003. ) != -1 &&
  13004. a[i].tool[0] == 16 &&
  13005. b[j].atool != 50
  13006. ) {
  13007. this.workStudent[i].push({
  13008. works: b[j].content,
  13009. sName: b[j].name,
  13010. score: b[j].score,
  13011. img: b[j].img,
  13012. type: 1,
  13013. time: b[j].time,
  13014. userid: b[j].userid,
  13015. wid: b[j].id,
  13016. });
  13017. } else if (
  13018. y.indexOf(
  13019. b[j].content
  13020. .split(".")
  13021. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13022. ) != -1 &&
  13023. a[i].tool[0] == 16 &&
  13024. b[j].atool != 50
  13025. ) {
  13026. this.workStudent[i].push({
  13027. userid: b[j].userid,
  13028. wid: b[j].id,
  13029. works: b[j].content,
  13030. sName: b[j].name,
  13031. score: b[j].score,
  13032. img: b[j].img,
  13033. type: 3,
  13034. time: b[j].time,
  13035. });
  13036. } else if (b[j].type == 6 && b[j].atool != 50) {
  13037. this.workStudent[i].push({
  13038. userid: b[j].userid,
  13039. wid: b[j].id,
  13040. works: b[j].content,
  13041. sName: b[j].name,
  13042. score: b[j].score,
  13043. img: b[j].img,
  13044. type: 4,
  13045. time: b[j].time,
  13046. });
  13047. } else if (b[j].type == 7 && b[j].atool != 50) {
  13048. this.workStudent[i].push({
  13049. userid: b[j].userid,
  13050. wid: b[j].id,
  13051. works: b[j].content,
  13052. sName: b[j].name,
  13053. score: b[j].score,
  13054. img: b[j].img,
  13055. type: 5,
  13056. time: b[j].time,
  13057. });
  13058. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13059. this.workStudent[i].push({
  13060. works: b[j].content,
  13061. sName: b[j].name,
  13062. score: b[j].score,
  13063. img: b[j].img,
  13064. type: 12,
  13065. time: b[j].time,
  13066. userid: b[j].userid,
  13067. wid: b[j].id,
  13068. });
  13069. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13070. this.workStudent[i].push({
  13071. works: b[j].content,
  13072. sName: b[j].name,
  13073. score: b[j].score,
  13074. img: b[j].img,
  13075. type: 0,
  13076. time: b[j].time,
  13077. userid: b[j].userid,
  13078. wid: b[j].id,
  13079. });
  13080. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13081. this.workStudent[i].push({
  13082. works: b[j].content,
  13083. sName: b[j].name,
  13084. score: b[j].score,
  13085. img: b[j].img,
  13086. type: 0,
  13087. time: b[j].time,
  13088. userid: b[j].userid,
  13089. wid: b[j].id,
  13090. });
  13091. }
  13092. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13093. this.workStudent[i].push({
  13094. works: b[j].content,
  13095. sName: b[j].name,
  13096. score: b[j].score,
  13097. img: b[j].img,
  13098. type: 2,
  13099. time: b[j].time,
  13100. userid: b[j].userid,
  13101. wid: b[j].id,
  13102. });
  13103. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13104. //问卷
  13105. this.workStudent[i].push({
  13106. works: b[j].content,
  13107. sName: b[j].name,
  13108. score: b[j].score,
  13109. img: b[j].img,
  13110. type: 2,
  13111. time: b[j].time,
  13112. userid: b[j].userid,
  13113. wid: b[j].id,
  13114. });
  13115. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13116. //选择题
  13117. this.workStudent[i].push({
  13118. works: b[j].content,
  13119. sName: b[j].name,
  13120. score: b[j].score,
  13121. img: b[j].img,
  13122. type: 8,
  13123. time: b[j].time,
  13124. userid: b[j].userid,
  13125. wid: b[j].id,
  13126. });
  13127. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13128. //选择题
  13129. this.workStudent[i].push({
  13130. works: b[j].content,
  13131. sName: b[j].name,
  13132. score: b[j].score,
  13133. img: b[j].img,
  13134. type: 9,
  13135. time: b[j].time,
  13136. userid: b[j].userid,
  13137. wid: b[j].id,
  13138. });
  13139. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13140. //选择题
  13141. this.workStudent[i].push({
  13142. works: b[j].content,
  13143. sName: b[j].name,
  13144. score: b[j].score,
  13145. img: b[j].img,
  13146. type: 10,
  13147. time: b[j].time,
  13148. userid: b[j].userid,
  13149. wid: b[j].id,
  13150. });
  13151. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13152. //选择题
  13153. this.workStudent[i].push({
  13154. works: b[j].content,
  13155. sName: b[j].name,
  13156. score: b[j].score,
  13157. img: b[j].img,
  13158. type: 13,
  13159. time: b[j].time,
  13160. userid: b[j].userid,
  13161. wid: b[j].id,
  13162. });
  13163. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13164. //选择题
  13165. this.workStudent[i].push({
  13166. works: b[j].content,
  13167. sName: b[j].name,
  13168. score: b[j].score,
  13169. img: b[j].img,
  13170. type: 12,
  13171. time: b[j].time,
  13172. userid: b[j].userid,
  13173. wid: b[j].id,
  13174. });
  13175. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13176. //选择题
  13177. this.workStudent[i].push({
  13178. works: b[j].content,
  13179. sName: b[j].name,
  13180. score: b[j].score,
  13181. img: b[j].img,
  13182. type: 12,
  13183. time: b[j].time,
  13184. userid: b[j].userid,
  13185. wid: b[j].id,
  13186. });
  13187. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13188. //选择题
  13189. this.workStudent[i].push({
  13190. works: b[j].content,
  13191. sName: b[j].name,
  13192. score: b[j].score,
  13193. img: b[j].img,
  13194. type: 15,
  13195. time: b[j].time,
  13196. userid: b[j].userid,
  13197. wid: b[j].id,
  13198. });
  13199. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13200. //英语写作
  13201. this.workStudent[i].push({
  13202. works: b[j].content,
  13203. sName: b[j].name,
  13204. score: b[j].score,
  13205. img: b[j].img,
  13206. type: 16,
  13207. time: b[j].time,
  13208. userid: b[j].userid,
  13209. wid: b[j].id,
  13210. });
  13211. }
  13212. }
  13213. }
  13214. }
  13215. })
  13216. .catch((err) => {
  13217. console.error(err);
  13218. });
  13219. },
  13220. openVideo(w) {
  13221. this.videoDetail = {};
  13222. this.playerOptions1.sources[0].src = w.works;
  13223. this.videoDetail = this.playerOptions1;
  13224. this.videoVisible = true;
  13225. },
  13226. isLikes(wid, uid, t, c, isLikes) {
  13227. if (isLikes == false) {
  13228. let params = [
  13229. {
  13230. wid: wid,
  13231. lid: uid,
  13232. t: t,
  13233. c: c,
  13234. },
  13235. ];
  13236. this.ajax
  13237. .post(this.$store.state.api + "insertComment", params)
  13238. .then((res) => {
  13239. this.$message({
  13240. message: "点赞成功",
  13241. type: "success",
  13242. });
  13243. this.selectSWorks();
  13244. this.selectStudent();
  13245. })
  13246. .catch((err) => {
  13247. this.$message.error("点赞失败");
  13248. console.error(err);
  13249. });
  13250. } else {
  13251. let params = {
  13252. wid: wid,
  13253. lid: uid,
  13254. type: t,
  13255. };
  13256. this.ajax
  13257. .get(this.$store.state.api + "deleteComment", params)
  13258. .then((res) => {
  13259. this.$message({
  13260. message: "取消点赞成功",
  13261. type: "success",
  13262. });
  13263. this.selectSWorks();
  13264. this.selectStudent();
  13265. })
  13266. .catch((err) => {
  13267. console.error(err);
  13268. });
  13269. }
  13270. },
  13271. deleteComment(wid) {
  13272. this.$confirm("确定删除此评论吗?", "提示", {
  13273. confirmButtonText: "确定",
  13274. cancelButtonText: "取消",
  13275. type: "warning",
  13276. })
  13277. .then(() => {
  13278. let params = {
  13279. id: wid,
  13280. };
  13281. this.ajax
  13282. .get(this.$store.state.api + "deleteComment2", params)
  13283. .then((res) => {
  13284. this.$message({
  13285. message: "删除评论成功",
  13286. type: "success",
  13287. });
  13288. this.selectSWorks();
  13289. this.selectStudent();
  13290. })
  13291. .catch((err) => {
  13292. console.error(err);
  13293. });
  13294. })
  13295. .catch(() => {});
  13296. },
  13297. commentOther(w, toolIndex, wIndex, gindex, gid) {
  13298. this.commentIndexJson = {
  13299. toolIndex: toolIndex,
  13300. wIndex: wIndex,
  13301. gindex: gindex,
  13302. gid: gid,
  13303. };
  13304. this.commentDetail = [];
  13305. this.commentDialogVisible = true;
  13306. this.commentDetail = w;
  13307. if (w.works && w.type == 1) {
  13308. this.pptImgUrl = "";
  13309. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13310. if (
  13311. a.indexOf(
  13312. w.works
  13313. .split(".")
  13314. [w.works.split(".").length - 1].toLocaleUpperCase()
  13315. ) != -1
  13316. ) {
  13317. this.pptImgUrl =
  13318. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13319. this.showPDF = false;
  13320. } else if (
  13321. w.works
  13322. .split(".")
  13323. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13324. ) {
  13325. this.pptImgUrl = w.works;
  13326. this.showPDF = true;
  13327. }
  13328. } else if (w.works && w.type == 3) {
  13329. this.videoDetail = {};
  13330. this.playerOptions1.sources[0].src = w.works;
  13331. this.videoDetail = this.playerOptions1;
  13332. // this.videoVisible = true;
  13333. } else if (w.works && w.type == 4) {
  13334. this.eScore = JSON.parse(w.works);
  13335. this.rateJson =
  13336. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13337. this.taskCount
  13338. ].toolChoose[toolIndex].rateJson;
  13339. } else if (w.works && w.type == 10) {
  13340. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13341. } else if (w.works && w.type == 13) {
  13342. this.wordJson =
  13343. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13344. this.taskCount
  13345. ].toolChoose[toolIndex].wordJson;
  13346. }
  13347. },
  13348. openScore(w) {
  13349. this.wScore = 0;
  13350. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13351. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13352. this.commentDetail = [];
  13353. this.dialogVisibleScore = true;
  13354. this.commentDetail = w;
  13355. if (w.works && w.type == 1) {
  13356. this.pptImgUrl = "";
  13357. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13358. if (
  13359. a.indexOf(
  13360. w.works
  13361. .split(".")
  13362. [w.works.split(".").length - 1].toLocaleUpperCase()
  13363. ) != -1
  13364. ) {
  13365. this.pptImgUrl =
  13366. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13367. this.showPDF = false;
  13368. } else if (
  13369. w.works
  13370. .split(".")
  13371. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13372. ) {
  13373. this.pptImgUrl = w.works;
  13374. this.showPDF = true;
  13375. }
  13376. } else if (w.works && w.type == 3) {
  13377. this.videoDetail = {};
  13378. this.playerOptions1.sources[0].src = w.works;
  13379. this.videoDetail = this.playerOptions1;
  13380. }
  13381. },
  13382. addComment(wid, uid, t) {
  13383. if (this.commentText == "") {
  13384. this.$message.error("请输入评论");
  13385. return;
  13386. }
  13387. let params2 = [
  13388. {
  13389. wid: wid,
  13390. lid: uid,
  13391. t: t,
  13392. },
  13393. ];
  13394. this.ajax
  13395. .post(this.$store.state.api + "getComment", params2)
  13396. .then((res) => {
  13397. if (res.data[0].length > 0) {
  13398. this.$message.error("一个作业只能评论一条");
  13399. } else {
  13400. let params = [
  13401. {
  13402. wid: wid,
  13403. lid: uid,
  13404. t: t,
  13405. c: this.commentText,
  13406. },
  13407. ];
  13408. this.ajax
  13409. .post(this.$store.state.api + "insertComment", params)
  13410. .then((res) => {
  13411. this.$message({
  13412. message: "评论成功",
  13413. type: "success",
  13414. });
  13415. this.commentText = "";
  13416. this.selectSWorks();
  13417. this.selectStudent();
  13418. })
  13419. .catch((err) => {
  13420. this.$message.error("评论失败");
  13421. console.error(err);
  13422. });
  13423. }
  13424. })
  13425. .catch((err) => {
  13426. // this.$message.error("评论失败");
  13427. console.error(err);
  13428. });
  13429. },
  13430. scoreWork(wid) {
  13431. if (this.wScore == 0) {
  13432. this.$message.error("请评分");
  13433. return;
  13434. }
  13435. let params = [
  13436. {
  13437. wid: wid,
  13438. score: JSON.stringify({
  13439. wScore: this.wScore,
  13440. detail: this.scoreDetail,
  13441. }),
  13442. },
  13443. ];
  13444. this.ajax
  13445. .post(this.$store.state.api + "scoreWork", params)
  13446. .then((res) => {
  13447. this.$message({
  13448. message: "评分成功",
  13449. type: "success",
  13450. });
  13451. this.wScore = 0;
  13452. this.scoreDetail = "";
  13453. this.dialogVisibleScore = false;
  13454. this.selectSWorks();
  13455. this.selectStudent();
  13456. })
  13457. .catch((err) => {
  13458. this.$message.error("评分失败");
  13459. console.error(err);
  13460. });
  13461. },
  13462. openXz(w, i) {
  13463. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13464. .taskJson[this.taskCount].toolChoose[i].selectJson
  13465. ? JSON.parse(
  13466. JSON.stringify(
  13467. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13468. this.taskCount
  13469. ].toolChoose[i].selectJson
  13470. )
  13471. )
  13472. : { url: "", select: [], answer: [] };
  13473. var a = w.works.split(",");
  13474. for (var k = 0; k < a.length; k++) {
  13475. a[k] = parseInt(a[k]);
  13476. }
  13477. this.selectAnswer = { answer: a, stu: w.sName };
  13478. this.isSelect = true;
  13479. this.dialogVisibleSelect = true;
  13480. },
  13481. openSen(w, i) {
  13482. this.sentenceList1 = JSON.parse(w.works);
  13483. this.sentenceList1.stuName = w.sName;
  13484. this.dialogVisibleSentence1 = true;
  13485. },
  13486. openPj(w, toolindex) {
  13487. this.isStar = true;
  13488. this.eScore = JSON.parse(w);
  13489. this.rateJson =
  13490. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13491. this.taskCount
  13492. ].toolChoose[toolindex].rateJson;
  13493. this.studentEvalDialogVisible = true;
  13494. },
  13495. deleteWorks(id) {
  13496. this.$confirm("确定删除此作业吗?", "提示", {
  13497. confirmButtonText: "确定",
  13498. cancelButtonText: "取消",
  13499. type: "warning",
  13500. })
  13501. .then(() => {
  13502. let params = [
  13503. {
  13504. id: id,
  13505. },
  13506. ];
  13507. this.ajax
  13508. .post(this.$store.state.api + "deleteCourseWork", params)
  13509. .then((res) => {
  13510. this.$message({
  13511. message: "删除成功",
  13512. type: "success",
  13513. });
  13514. this.selectStudent();
  13515. this.selectSWorks();
  13516. this.selectSLook();
  13517. })
  13518. .catch((err) => {
  13519. this.$message.error("网络异常");
  13520. console.error(err);
  13521. });
  13522. })
  13523. .catch(() => {});
  13524. },
  13525. selectSWorks(gindex) {
  13526. //教师查看全部作业
  13527. let params = {
  13528. cid: this.id,
  13529. s: this.courseType,
  13530. t: this.taskCount,
  13531. };
  13532. this.ajax
  13533. .get(this.$store.state.api + "selectSWorks", params)
  13534. .then((res) => {
  13535. var a =
  13536. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13537. this.taskCount
  13538. ].toolChoose;
  13539. var b = res.data[0];
  13540. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13541. var y = [
  13542. "AVI",
  13543. "NAVI",
  13544. "MPEG",
  13545. "ASF",
  13546. "MOV",
  13547. "WMV",
  13548. "3GP",
  13549. "RM",
  13550. "RMVB",
  13551. "FLV",
  13552. "F4V",
  13553. "H.264",
  13554. "H.265",
  13555. "REAL VIDEO",
  13556. "MKV",
  13557. "WebM",
  13558. "HDDVD",
  13559. "MP4",
  13560. "MPG",
  13561. "M4V",
  13562. "MGV",
  13563. "OGV",
  13564. "QTM",
  13565. "STR",
  13566. "AMC",
  13567. "DVX",
  13568. "EVO",
  13569. "DAT",
  13570. "OGG",
  13571. "OGM",
  13572. ];
  13573. var d = res.data[1];
  13574. var e = res.data[2];
  13575. var f = res.data[3];
  13576. let _worksStudent = [];
  13577. var _worksStudent2 = [];
  13578. for (var i = 0; i < a.length; i++) {
  13579. _worksStudent[i] = [];
  13580. _worksStudent2[i] = [];
  13581. if (
  13582. !this.isCloseList[i] ||
  13583. this.isCloseList[i].isClose == undefined
  13584. ) {
  13585. this.isCloseList[i] = { isClose: 0 };
  13586. }
  13587. this.groupStudent[i] = [];
  13588. this.groupStudentUid[i] = [];
  13589. if (this.isGroup) {
  13590. for (
  13591. var groupI = 0;
  13592. groupI < this.courseGroup.group.length;
  13593. groupI++
  13594. ) {
  13595. this.courseGroup.group[groupI].works[i] = [];
  13596. }
  13597. }
  13598. this.isWorksS[i] = [];
  13599. this.checkJson[i] = [];
  13600. if (a[i].tool[0] == 49) {
  13601. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13602. this.groupStudent[i][gA] = [];
  13603. this.groupStudentUid[i][gA] = [];
  13604. _worksStudent[i][gA] = [];
  13605. _worksStudent2[i][gA] = [];
  13606. this.isCloseList[i][gA] = [];
  13607. for (var g = 0; g < f.length; g++) {
  13608. if (
  13609. f[g].ttype == 2 &&
  13610. this.tcid &&
  13611. this.arrayToArray(
  13612. f[g].classid.split(","),
  13613. this.tcid.split(",")
  13614. ).length == 0
  13615. ) {
  13616. continue;
  13617. }
  13618. if (gA == f[g].group && f[g].tool == i) {
  13619. this.groupStudent[i][gA].push(f[g]);
  13620. this.groupStudentUid[i][gA].push(f[g].userid);
  13621. }
  13622. }
  13623. }
  13624. this.$forceUpdate();
  13625. }
  13626. for (var j = 0; j < b.length; j++) {
  13627. if (
  13628. b[j].ttype == 2 &&
  13629. this.tcid &&
  13630. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13631. .length == 0
  13632. ) {
  13633. continue;
  13634. }
  13635. var likesCount = 0;
  13636. var commentCount = 0;
  13637. var isLikes = false;
  13638. var commentJson = [];
  13639. var data = b[j];
  13640. if (i == b[j].tool) {
  13641. if (data.type == 2 && a[i].tool[0] == 4) {
  13642. // if(JSON.parse(data.content)[0].anwer){
  13643. var checkL =
  13644. JSON.parse(data.content)[0].anwer instanceof Array
  13645. ? JSON.parse(data.content)[0].anwer
  13646. : JSON.parse(data.content)[0].anwer.split(",");
  13647. for (var z = 0; z < checkL.length; z++) {
  13648. if (!this.checkJson[i][z]) {
  13649. this.checkJson[i].push({
  13650. checkCount: [],
  13651. checkPerson: [],
  13652. rightPerson: [],
  13653. });
  13654. }
  13655. if (!this.checkJson[i][z].checkCount.length) {
  13656. this.checkJson[i][z].checkCount = [];
  13657. let _askItemCount = JSON.parse(data.content)[0].askJson
  13658. .askJson[z].askItem;
  13659. for (var aic = 0; aic < _askItemCount; aic++) {
  13660. this.checkJson[i][z].checkCount.push(0);
  13661. }
  13662. }
  13663. if (checkL[z] instanceof Array) {
  13664. if (
  13665. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13666. checkL[z].sort().join(",")
  13667. ) {
  13668. this.checkJson[i][z].rightPerson.push(data.name);
  13669. }
  13670. for (var q = 0; q < checkL[z].length; q++) {
  13671. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13672. ? this.checkJson[i][z].checkPerson[
  13673. parseInt(checkL[z][q])
  13674. ].push(data.name)
  13675. : (this.checkJson[i][z].checkPerson[
  13676. parseInt(checkL[z][q])
  13677. ] = [data.name]);
  13678. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13679. ? this.checkJson[i][z].checkCount[
  13680. parseInt(checkL[z][q])
  13681. ]++
  13682. : (this.checkJson[i][z].checkCount[
  13683. parseInt(checkL[z][q])
  13684. ] = 1);
  13685. }
  13686. } else {
  13687. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13688. this.checkJson[i][z].rightPerson.push(data.name);
  13689. }
  13690. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13691. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13692. ? this.checkJson[i][z].checkPerson[
  13693. parseInt(checkL[z])
  13694. ].push(data.name)
  13695. : (this.checkJson[i][z].checkPerson[
  13696. parseInt(checkL[z])
  13697. ] = [data.name]);
  13698. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13699. ? this.checkJson[i][z].checkCount[
  13700. parseInt(checkL[z])
  13701. ]++
  13702. : (this.checkJson[i][z].checkCount[
  13703. parseInt(checkL[z])
  13704. ] = 1);
  13705. }
  13706. }
  13707. }
  13708. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13709. var checkL = JSON.parse(data.content)[0].anwer;
  13710. for (var z = 0; z < checkL.length; z++) {
  13711. if (!this.checkJson[i][z]) {
  13712. this.checkJson[i].push({
  13713. checkCount: [],
  13714. checkPerson: [],
  13715. rightPerson: [],
  13716. });
  13717. }
  13718. if (!this.checkJson[i][z].checkCount.length) {
  13719. this.checkJson[i][z].checkCount = [];
  13720. let _askItemCount = JSON.parse(data.content)[0].testJson
  13721. .testJson[z].testItem;
  13722. for (var aic = 0; aic < _askItemCount; aic++) {
  13723. this.checkJson[i][z].checkCount.push(0);
  13724. }
  13725. }
  13726. if (checkL[z] instanceof Array) {
  13727. if (
  13728. JSON.parse(data.content)[0]
  13729. .testJson.testJson[z].answer.sort()
  13730. .join(",") == checkL[z].sort().join(",")
  13731. ) {
  13732. this.checkJson[i][z].rightPerson.push(data.name);
  13733. }
  13734. for (var q = 0; q < checkL[z].length; q++) {
  13735. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13736. ? this.checkJson[i][z].checkPerson[
  13737. parseInt(checkL[z][q])
  13738. ].push(data.name)
  13739. : (this.checkJson[i][z].checkPerson[
  13740. parseInt(checkL[z][q])
  13741. ] = [data.name]);
  13742. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13743. ? this.checkJson[i][z].checkCount[
  13744. parseInt(checkL[z][q])
  13745. ]++
  13746. : (this.checkJson[i][z].checkCount[
  13747. parseInt(checkL[z][q])
  13748. ] = 1);
  13749. }
  13750. } else {
  13751. if (
  13752. JSON.parse(data.content)[0].testJson.testJson[z]
  13753. .answer == checkL[z]
  13754. ) {
  13755. this.checkJson[i][z].rightPerson.push(data.name);
  13756. }
  13757. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13758. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13759. ? this.checkJson[i][z].checkPerson[
  13760. parseInt(checkL[z])
  13761. ].push(data.name)
  13762. : (this.checkJson[i][z].checkPerson[
  13763. parseInt(checkL[z])
  13764. ] = [data.name]);
  13765. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13766. ? this.checkJson[i][z].checkCount[
  13767. parseInt(checkL[z])
  13768. ]++
  13769. : (this.checkJson[i][z].checkCount[
  13770. parseInt(checkL[z])
  13771. ] = 1);
  13772. }
  13773. }
  13774. }
  13775. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13776. var checkL = JSON.parse(data.content);
  13777. for (var z = 0; z < checkL.length; z++) {
  13778. if (!this.checkJson[i][z]) {
  13779. this.checkJson[i].push({
  13780. checkCount: [],
  13781. checkPerson: [],
  13782. rightPerson: [],
  13783. });
  13784. }
  13785. this.checkJson[i][z].checkPerson.push(data.name);
  13786. if (
  13787. checkL[z].chooseSenList.toString() ==
  13788. checkL[z].rightAnswer.toString()
  13789. ) {
  13790. this.checkJson[i][z].rightPerson.push(data.name);
  13791. }
  13792. }
  13793. }
  13794. for (var k = 0; k < d.length; k++) {
  13795. //点赞
  13796. if (d[k].workId == b[j].id) {
  13797. likesCount++;
  13798. if (d[k].likesId == this.userid) {
  13799. isLikes = true;
  13800. }
  13801. }
  13802. }
  13803. for (var l = 0; l < e.length; l++) {
  13804. //评论
  13805. if (e[l].workId == b[j].id) {
  13806. if (e[l].comment != "") {
  13807. commentCount++;
  13808. commentJson.push({
  13809. commentText: e[l].comment,
  13810. commentTime: e[l].commentTime,
  13811. commentPeople: e[l].commentPeople,
  13812. userid: e[l].userid,
  13813. wid: e[l].id,
  13814. });
  13815. }
  13816. }
  13817. }
  13818. if (
  13819. (b[j].type == 1 ||
  13820. b[j].type == 4 ||
  13821. b[j].type == 5 ||
  13822. b[j].type == 6 ||
  13823. b[j].type == 12 ||
  13824. b[j].type == 7) &&
  13825. a[i].tool[0] != 15 &&
  13826. a[i].tool[0] != 4 &&
  13827. a[i].tool[0] != 45 &&
  13828. a[i].tool[0] != 50 &&
  13829. a[i].tool[0] != 32 &&
  13830. a[i].tool[0] != 57 &&
  13831. a[i].tool[0] != 52
  13832. ) {
  13833. if (
  13834. c.indexOf(
  13835. b[j].content
  13836. .split(".")
  13837. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13838. ) != -1 &&
  13839. a[i].tool[0] == 16 &&
  13840. b[j].atool != 50
  13841. ) {
  13842. let _works = {
  13843. userid: b[j].userid,
  13844. ateacher: b[j].ateacher,
  13845. wid: b[j].id,
  13846. works: b[j].content,
  13847. sName: b[j].name,
  13848. type: 1,
  13849. time: b[j].time,
  13850. score: b[j].score,
  13851. img: b[j].img,
  13852. likesCount: likesCount,
  13853. commentCount: commentCount,
  13854. isLikes: isLikes,
  13855. commentJson: commentJson,
  13856. };
  13857. if (this.isGroup) {
  13858. let isGw = 1;
  13859. for (
  13860. var groupI = 0;
  13861. groupI < this.courseGroup.group.length;
  13862. groupI++
  13863. ) {
  13864. let gid = this.courseGroup.group[groupI].id;
  13865. if (
  13866. this.courseGroupStudentUid[gid].indexOf(
  13867. b[j].userid
  13868. ) != -1
  13869. ) {
  13870. isGw = 2;
  13871. this.courseGroup.group[groupI].works[i].push(_works);
  13872. break;
  13873. }
  13874. }
  13875. if (isGw == 1) {
  13876. _worksStudent[i].push(_works);
  13877. }
  13878. } else {
  13879. _worksStudent[i].push(_works);
  13880. }
  13881. _worksStudent2[i].push(_works);
  13882. this.isWorksS[i].push({
  13883. uid: b[j].userid,
  13884. sName: b[j].name,
  13885. });
  13886. } else if (
  13887. y.indexOf(
  13888. b[j].content
  13889. .split(".")
  13890. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13891. ) != -1 &&
  13892. a[i].tool[0] == 16 &&
  13893. b[j].atool != 50
  13894. ) {
  13895. let _works = {
  13896. userid: b[j].userid,
  13897. ateacher: b[j].ateacher,
  13898. wid: b[j].id,
  13899. works: b[j].content,
  13900. sName: b[j].name,
  13901. type: 3,
  13902. time: b[j].time,
  13903. score: b[j].score,
  13904. img: b[j].img,
  13905. likesCount: likesCount,
  13906. commentCount: commentCount,
  13907. isLikes: isLikes,
  13908. commentJson: commentJson,
  13909. };
  13910. if (this.isGroup) {
  13911. let isGw = 1;
  13912. for (
  13913. var groupI = 0;
  13914. groupI < this.courseGroup.group.length;
  13915. groupI++
  13916. ) {
  13917. let gid = this.courseGroup.group[groupI].id;
  13918. if (
  13919. this.courseGroupStudentUid[gid].indexOf(
  13920. b[j].userid
  13921. ) != -1
  13922. ) {
  13923. isGw = 2;
  13924. this.courseGroup.group[groupI].works[i].push(_works);
  13925. break;
  13926. }
  13927. }
  13928. if (isGw == 1) {
  13929. _worksStudent[i].push(_works);
  13930. }
  13931. } else {
  13932. _worksStudent[i].push(_works);
  13933. }
  13934. _worksStudent2[i].push(_works);
  13935. this.isWorksS[i].push({
  13936. uid: b[j].userid,
  13937. sName: b[j].name,
  13938. });
  13939. } else if (b[j].type == 6 && b[j].atool != 50) {
  13940. let _works = {
  13941. userid: b[j].userid,
  13942. ateacher: b[j].ateacher,
  13943. wid: b[j].id,
  13944. works: b[j].content,
  13945. sName: b[j].name,
  13946. type: 4,
  13947. time: b[j].time,
  13948. score: b[j].score,
  13949. img: b[j].img,
  13950. likesCount: likesCount,
  13951. commentCount: commentCount,
  13952. isLikes: isLikes,
  13953. commentJson: commentJson,
  13954. };
  13955. _worksStudent[i].push(_works);
  13956. _worksStudent2[i].push(_works);
  13957. this.isWorksS[i].push({
  13958. uid: b[j].userid,
  13959. sName: b[j].name,
  13960. });
  13961. } else if (b[j].type == 7 && b[j].atool != 50) {
  13962. let _work = {
  13963. userid: b[j].userid,
  13964. ateacher: b[j].ateacher,
  13965. wid: b[j].id,
  13966. works: b[j].content,
  13967. sName: b[j].name,
  13968. type: 5,
  13969. time: b[j].time,
  13970. score: b[j].score,
  13971. img: b[j].img,
  13972. likesCount: likesCount,
  13973. commentCount: commentCount,
  13974. isLikes: isLikes,
  13975. commentJson: commentJson,
  13976. };
  13977. _worksStudent[i].push(_work);
  13978. _worksStudent2[i].push(_work);
  13979. this.isWorksS[i].push({
  13980. uid: b[j].userid,
  13981. sName: b[j].name,
  13982. });
  13983. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13984. let _works = {
  13985. userid: b[j].userid,
  13986. ateacher: b[j].ateacher,
  13987. wid: b[j].id,
  13988. works: b[j].content,
  13989. sName: b[j].name,
  13990. type: 12,
  13991. time: b[j].time,
  13992. score: b[j].score,
  13993. img: b[j].img,
  13994. likesCount: likesCount,
  13995. commentCount: commentCount,
  13996. isLikes: isLikes,
  13997. commentJson: commentJson,
  13998. };
  13999. if (this.isGroup) {
  14000. let isGw = 1;
  14001. for (
  14002. var groupI = 0;
  14003. groupI < this.courseGroup.group.length;
  14004. groupI++
  14005. ) {
  14006. let gid = this.courseGroup.group[groupI].id;
  14007. if (
  14008. this.courseGroupStudentUid[gid].indexOf(
  14009. b[j].userid
  14010. ) != -1
  14011. ) {
  14012. isGw = 2;
  14013. this.courseGroup.group[groupI].works[i].push(_works);
  14014. break;
  14015. }
  14016. }
  14017. if (isGw == 1) {
  14018. _worksStudent[i].push(_works);
  14019. }
  14020. } else {
  14021. _worksStudent[i].push(_works);
  14022. }
  14023. _worksStudent2[i].push(_works);
  14024. this.isWorksS[i].push({
  14025. uid: b[j].userid,
  14026. sName: b[j].name,
  14027. });
  14028. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14029. let _works = {
  14030. userid: b[j].userid,
  14031. ateacher: b[j].ateacher,
  14032. wid: b[j].id,
  14033. works: b[j].content,
  14034. sName: b[j].name,
  14035. type: 0,
  14036. time: b[j].time,
  14037. score: b[j].score,
  14038. img: b[j].img,
  14039. likesCount: likesCount,
  14040. commentCount: commentCount,
  14041. isLikes: isLikes,
  14042. commentJson: commentJson,
  14043. };
  14044. if (this.isGroup) {
  14045. let isGw = 1;
  14046. for (
  14047. var groupI = 0;
  14048. groupI < this.courseGroup.group.length;
  14049. groupI++
  14050. ) {
  14051. let gid = this.courseGroup.group[groupI].id;
  14052. if (
  14053. this.courseGroupStudentUid[gid].indexOf(
  14054. b[j].userid
  14055. ) != -1
  14056. ) {
  14057. isGw = 2;
  14058. this.courseGroup.group[groupI].works[i].push(_works);
  14059. break;
  14060. }
  14061. }
  14062. if (isGw == 1) {
  14063. _worksStudent[i].push(_works);
  14064. }
  14065. } else {
  14066. _worksStudent[i].push(_works);
  14067. }
  14068. _worksStudent2[i].push(_works);
  14069. this.isWorksS[i].push({
  14070. uid: b[j].userid,
  14071. sName: b[j].name,
  14072. });
  14073. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14074. let _works = {
  14075. userid: b[j].userid,
  14076. ateacher: b[j].ateacher,
  14077. wid: b[j].id,
  14078. works: b[j].content,
  14079. sName: b[j].name,
  14080. type: 0,
  14081. time: b[j].time,
  14082. score: b[j].score,
  14083. img: b[j].img,
  14084. likesCount: likesCount,
  14085. commentCount: commentCount,
  14086. isLikes: isLikes,
  14087. commentJson: commentJson,
  14088. };
  14089. if (this.isGroup) {
  14090. let isGw = 1;
  14091. for (
  14092. var groupI = 0;
  14093. groupI < this.courseGroup.group.length;
  14094. groupI++
  14095. ) {
  14096. let gid = this.courseGroup.group[groupI].id;
  14097. if (
  14098. this.courseGroupStudentUid[gid].indexOf(
  14099. b[j].userid
  14100. ) != -1
  14101. ) {
  14102. isGw = 2;
  14103. this.courseGroup.group[groupI].works[i].push(_works);
  14104. break;
  14105. }
  14106. }
  14107. if (isGw == 1) {
  14108. _worksStudent[i].push(_works);
  14109. }
  14110. } else {
  14111. _worksStudent[i].push(_works);
  14112. }
  14113. _worksStudent2[i].push(_works);
  14114. this.isWorksS[i].push({
  14115. uid: b[j].userid,
  14116. sName: b[j].name,
  14117. });
  14118. }
  14119. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14120. let _works = {
  14121. userid: b[j].userid,
  14122. ateacher: b[j].ateacher,
  14123. wid: b[j].id,
  14124. works: b[j].content,
  14125. sName: b[j].name,
  14126. type: 2,
  14127. time: b[j].time,
  14128. score: b[j].score,
  14129. img: b[j].img,
  14130. likesCount: likesCount,
  14131. commentCount: commentCount,
  14132. isLikes: isLikes,
  14133. commentJson: commentJson,
  14134. };
  14135. if (this.isGroup) {
  14136. let isGw = 1;
  14137. for (
  14138. var groupI = 0;
  14139. groupI < this.courseGroup.group.length;
  14140. groupI++
  14141. ) {
  14142. let gid = this.courseGroup.group[groupI].id;
  14143. if (
  14144. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14145. -1
  14146. ) {
  14147. isGw = 2;
  14148. this.courseGroup.group[groupI].works[i].push(_works);
  14149. break;
  14150. }
  14151. }
  14152. if (isGw == 1) {
  14153. _worksStudent[i].push(_works);
  14154. }
  14155. } else {
  14156. _worksStudent[i].push(_works);
  14157. }
  14158. _worksStudent2[i].push(_works);
  14159. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14160. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14161. //问卷
  14162. let _work = {
  14163. userid: b[j].userid,
  14164. ateacher: b[j].ateacher,
  14165. wid: b[j].id,
  14166. works: b[j].content,
  14167. sName: b[j].name,
  14168. type: 2,
  14169. time: b[j].time,
  14170. score: b[j].score,
  14171. img: b[j].img,
  14172. likesCount: likesCount,
  14173. commentCount: commentCount,
  14174. isLikes: isLikes,
  14175. commentJson: commentJson,
  14176. };
  14177. _worksStudent[i].push(_work);
  14178. _worksStudent2[i].push(_work);
  14179. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14180. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14181. //选择题
  14182. let _work = {
  14183. userid: b[j].userid,
  14184. ateacher: b[j].ateacher,
  14185. wid: b[j].id,
  14186. works: b[j].content,
  14187. sName: b[j].name,
  14188. type: 8,
  14189. time: b[j].time,
  14190. score: b[j].score,
  14191. img: b[j].img,
  14192. likesCount: likesCount,
  14193. commentCount: commentCount,
  14194. isLikes: isLikes,
  14195. commentJson: commentJson,
  14196. };
  14197. _worksStudent[i].push(_work);
  14198. _worksStudent2[i].push(_work);
  14199. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14200. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14201. //选择题
  14202. let _work = {
  14203. userid: b[j].userid,
  14204. ateacher: b[j].ateacher,
  14205. wid: b[j].id,
  14206. works: b[j].content,
  14207. sName: b[j].name,
  14208. type: 9,
  14209. time: b[j].time,
  14210. score: b[j].score,
  14211. img: b[j].img,
  14212. likesCount: likesCount,
  14213. commentCount: commentCount,
  14214. isLikes: isLikes,
  14215. commentJson: commentJson,
  14216. };
  14217. _worksStudent[i].push(_work);
  14218. _worksStudent2[i].push(_work);
  14219. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14220. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14221. //选择题
  14222. let _work = {
  14223. userid: b[j].userid,
  14224. ateacher: b[j].ateacher,
  14225. wid: b[j].id,
  14226. works: b[j].content,
  14227. sName: b[j].name,
  14228. type: 10,
  14229. time: b[j].time,
  14230. score: b[j].score,
  14231. img: b[j].img,
  14232. likesCount: likesCount,
  14233. commentCount: commentCount,
  14234. isLikes: isLikes,
  14235. commentJson: commentJson,
  14236. };
  14237. _worksStudent[i].push(_work);
  14238. _worksStudent2[i].push(_work);
  14239. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14240. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14241. //选择题
  14242. let _work = {
  14243. userid: b[j].userid,
  14244. ateacher: b[j].ateacher,
  14245. wid: b[j].id,
  14246. works: b[j].content,
  14247. sName: b[j].name,
  14248. type: 13,
  14249. time: b[j].time,
  14250. score: b[j].score,
  14251. img: b[j].img,
  14252. likesCount: likesCount,
  14253. commentCount: commentCount,
  14254. isLikes: isLikes,
  14255. commentJson: commentJson,
  14256. };
  14257. _worksStudent[i].push(_work);
  14258. _worksStudent2[i].push(_work);
  14259. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14260. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14261. //选择题
  14262. let _work = {
  14263. userid: b[j].userid,
  14264. ateacher: b[j].ateacher,
  14265. wid: b[j].id,
  14266. works: b[j].content,
  14267. sName: b[j].name,
  14268. type: 16,
  14269. time: b[j].time,
  14270. score: b[j].score,
  14271. img: b[j].img,
  14272. likesCount: likesCount,
  14273. commentCount: commentCount,
  14274. isLikes: isLikes,
  14275. commentJson: commentJson,
  14276. };
  14277. _worksStudent[i].push(_work);
  14278. _worksStudent2[i].push(_work);
  14279. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14280. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  14281. let _gindex = JSON.parse(b[j].content);
  14282. if (
  14283. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  14284. b[j].userid
  14285. ) != -1
  14286. ) {
  14287. let _work = {
  14288. userid: b[j].userid,
  14289. ateacher: b[j].ateacher,
  14290. wid: b[j].id,
  14291. works: _gindex.url,
  14292. sName: b[j].name,
  14293. type: _gindex.type,
  14294. time: b[j].time,
  14295. score: b[j].score,
  14296. img: b[j].img,
  14297. likesCount: likesCount,
  14298. commentCount: commentCount,
  14299. isLikes: isLikes,
  14300. commentJson: commentJson,
  14301. };
  14302. _worksStudent[i][_gindex.groupIndex].push(_work);
  14303. _worksStudent2[i][_gindex.groupIndex].push(_work);
  14304. }
  14305. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14306. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  14307. let _work = {
  14308. userid: b[j].userid,
  14309. ateacher: b[j].ateacher,
  14310. wid: b[j].id,
  14311. works: b[j].content,
  14312. sName: b[j].name ? b[j].name : b[j].userid,
  14313. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  14314. time: b[j].time,
  14315. score: b[j].score,
  14316. img: b[j].img,
  14317. likesCount: likesCount,
  14318. commentCount: commentCount,
  14319. isLikes: isLikes,
  14320. commentJson: commentJson,
  14321. };
  14322. _worksStudent[i].push(_work);
  14323. _worksStudent2[i].push(_work);
  14324. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14325. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  14326. let _work = {
  14327. userid: b[j].userid,
  14328. ateacher: b[j].ateacher,
  14329. wid: b[j].id,
  14330. works: b[j].content,
  14331. sName: b[j].name ? b[j].name : b[j].userid,
  14332. type: 12,
  14333. time: b[j].time,
  14334. score: b[j].score,
  14335. img: b[j].img,
  14336. likesCount: likesCount,
  14337. commentCount: commentCount,
  14338. isLikes: isLikes,
  14339. commentJson: commentJson,
  14340. };
  14341. _worksStudent[i].push(_work);
  14342. _worksStudent2[i].push(_work);
  14343. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14344. } else if (
  14345. a[i].tool[0] == 57 &&
  14346. b[j].atool == 57 &&
  14347. b[j].type == 12
  14348. ) {
  14349. let _work = {
  14350. userid: b[j].userid,
  14351. ateacher: b[j].ateacher,
  14352. wid: b[j].id,
  14353. works: b[j].content,
  14354. sName: b[j].name ? b[j].name : b[j].userid,
  14355. type: 12,
  14356. time: b[j].time,
  14357. score: b[j].score,
  14358. img: b[j].img,
  14359. likesCount: likesCount,
  14360. commentCount: commentCount,
  14361. isLikes: isLikes,
  14362. commentJson: commentJson,
  14363. };
  14364. _worksStudent[i].push(_work);
  14365. _worksStudent2[i].push(_work);
  14366. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14367. } else if (
  14368. a[i].tool[0] == 57 &&
  14369. b[j].atool == 57 &&
  14370. b[j].type == 15
  14371. ) {
  14372. let _work = {
  14373. userid: b[j].userid,
  14374. ateacher: b[j].ateacher,
  14375. wid: b[j].id,
  14376. works: b[j].content,
  14377. sName: b[j].name ? b[j].name : b[j].userid,
  14378. type: 15,
  14379. time: b[j].time,
  14380. score: b[j].score,
  14381. img: b[j].img,
  14382. likesCount: likesCount,
  14383. commentCount: commentCount,
  14384. isLikes: isLikes,
  14385. commentJson: commentJson,
  14386. };
  14387. _worksStudent[i].push(_work);
  14388. _worksStudent2[i].push(_work);
  14389. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14390. }
  14391. }
  14392. }
  14393. if (_worksStudent[i] && _worksStudent[i].length) {
  14394. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  14395. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14396. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14397. var scoreA = parseFloat(jscoreA);
  14398. var scoreB = parseFloat(jscoreB);
  14399. if (scoreA == scoreB) {
  14400. return b.likesCount - a.likesCount;
  14401. }
  14402. return scoreB - scoreA;
  14403. });
  14404. if (this.isGroup) {
  14405. for (
  14406. var groupI = 0;
  14407. groupI < this.courseGroup.group.length;
  14408. groupI++
  14409. ) {
  14410. this.courseGroup.group[groupI].works[i] =
  14411. this.courseGroup.group[groupI].works[i].sort(function (
  14412. a,
  14413. b
  14414. ) {
  14415. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14416. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14417. var scoreA = parseFloat(jscoreA);
  14418. var scoreB = parseFloat(jscoreB);
  14419. if (scoreA == scoreB) {
  14420. return b.likesCount - a.likesCount;
  14421. }
  14422. return scoreB - scoreA;
  14423. });
  14424. }
  14425. }
  14426. }
  14427. }
  14428. this.timeWorkList = _worksStudent2;
  14429. for (var i = 0; i < a.length; i++) {
  14430. for (var j = 0; j < b.length; j++) {
  14431. var data = b[j];
  14432. if (i == b[j].tool) {
  14433. if (data.type == 2 || data.type == 8) {
  14434. for (var z = 0; z < this.checkJson[i].length; z++) {
  14435. this.checkJson[i][z].checkPerent = [];
  14436. this.checkJson[i][z].right = Math.round(
  14437. (this.checkJson[i][z].rightPerson.length /
  14438. parseInt(_worksStudent[i].length)) *
  14439. 100
  14440. );
  14441. let aaaa = this.checkJson[i][z];
  14442. for (
  14443. var k = 0;
  14444. k < this.checkJson[i][z].checkCount.length;
  14445. k++
  14446. ) {
  14447. this.checkJson[i][z].checkPerent.push(
  14448. Math.round(
  14449. (this.checkJson[i][z].checkCount[k] /
  14450. parseInt(_worksStudent[i].length)) *
  14451. 100
  14452. )
  14453. );
  14454. }
  14455. }
  14456. } else if (data.type == 9) {
  14457. for (var z = 0; z < this.checkJson[i].length; z++) {
  14458. this.checkJson[i][z].checkPerent = [];
  14459. this.checkJson[i][z].right = Math.round(
  14460. (this.checkJson[i][z].rightPerson.length /
  14461. this.checkJson[i][z].checkPerson.length) *
  14462. 100
  14463. );
  14464. }
  14465. }
  14466. }
  14467. }
  14468. }
  14469. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14470. this.joinGroup(gindex);
  14471. }
  14472. this.worksStudent = _worksStudent;
  14473. this.selectWorksStudent();
  14474. })
  14475. .catch((err) => {
  14476. console.error(err);
  14477. });
  14478. },
  14479. pngToWhiteBg(file) {
  14480. const _file = file;
  14481. let read = new FileReader();
  14482. read.readAsDataURL(file); // 文件转base64
  14483. return new Promise((resolve, reject) => {
  14484. read.onload = (e) => {
  14485. let img = new Image();
  14486. img.src = e.target.result;
  14487. img.onload = async () => {
  14488. // 生成canvas
  14489. let canvas = document.createElement("canvas");
  14490. let context = canvas.getContext("2d");
  14491. // 绘制图片到canvas上
  14492. canvas.width = img.width;
  14493. canvas.height = img.height;
  14494. // 在canvas绘制前填充白色背景
  14495. context.fillStyle = "#fff";
  14496. context.fillRect(0, 0, canvas.width, canvas.height);
  14497. context.drawImage(img, 0, 0);
  14498. let base64 = canvas.toDataURL(file["type"], 1);
  14499. let newFile = this.dataUrlToFile(base64, _file);
  14500. resolve(newFile);
  14501. };
  14502. };
  14503. });
  14504. },
  14505. dataUrlToFile(dataurl, file) {
  14506. let arr = dataurl.split(","),
  14507. mime = arr[0].match(/:(.*?);/)[1],
  14508. bstr = atob(arr[1]),
  14509. n = bstr.length,
  14510. u8arr = new Uint8Array(n);
  14511. while (n--) {
  14512. u8arr[n] = bstr.charCodeAt(n);
  14513. }
  14514. // return new Blob([u8arr], { type: mime });
  14515. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14516. type: mime,
  14517. });
  14518. },
  14519. async beforeUpload1(event, type, i) {
  14520. // this.$message.success('进入上传')
  14521. var file = "";
  14522. if (type == 5) {
  14523. file = event;
  14524. } else {
  14525. file = event.target.files[0];
  14526. }
  14527. var credentials = {
  14528. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14529. secretAccessKey: "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",
  14530. }; //秘钥形式的登录上传
  14531. window.AWS.config.update(credentials);
  14532. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14533. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14534. var _this = this;
  14535. _this.progress = 0;
  14536. _this.proVisible = true;
  14537. _this.isFinishSize = 0;
  14538. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14539. var b = [
  14540. "DOC",
  14541. "DOCX",
  14542. "DOCM",
  14543. "DOTM",
  14544. "DOTX",
  14545. "PPTX",
  14546. "PPSX",
  14547. "PPT",
  14548. "PPS",
  14549. "PPTM",
  14550. "POTM",
  14551. "PPAM",
  14552. "POTX",
  14553. "PPSM",
  14554. ];
  14555. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14556. var photoA = [
  14557. "BMP",
  14558. "GIF",
  14559. "PNG",
  14560. "JPGE",
  14561. "JPEG",
  14562. "JPG",
  14563. "TIF",
  14564. "PCX",
  14565. "TGA",
  14566. "EXIF",
  14567. "FPX",
  14568. "SVG",
  14569. "APNG",
  14570. ];
  14571. // if (
  14572. // b.indexOf(
  14573. // file.name
  14574. // .split(".")
  14575. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14576. // ) != -1
  14577. // ) {
  14578. // if (file.size / 1024 / 1024 > 10) {
  14579. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14580. // return;
  14581. // }
  14582. // } else if (
  14583. // excelA.indexOf(
  14584. // file.name
  14585. // .split(".")
  14586. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14587. // ) != "-1"
  14588. // ) {
  14589. // if (file.size / 1024 / 1024 > 5) {
  14590. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14591. // return;
  14592. // }
  14593. // }
  14594. if (
  14595. photoA.indexOf(
  14596. file.name
  14597. .split(".")
  14598. [file.name.split(".").length - 1].toLocaleUpperCase()
  14599. ) != -1 &&
  14600. type != 4
  14601. ) {
  14602. // const blob = await imageConversion.compress(file, 0.8)
  14603. file = await this.pngToWhiteBg(file);
  14604. const blob = await imageConversion.compressAccurately(file, 256);
  14605. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14606. file = new File([blob], file.name, { type: file.type });
  14607. }
  14608. if (file) {
  14609. var params = {
  14610. Key:
  14611. file.name.split(".")[0] +
  14612. new Date().getTime() +
  14613. "." +
  14614. file.name.split(".")[file.name.split(".").length - 1],
  14615. ContentType: file.type,
  14616. Body: file,
  14617. "Access-Control-Allow-Credentials": "*",
  14618. ACL: "public-read",
  14619. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14620. var options = {
  14621. // partSize: 2048 * 1024 * 1024,
  14622. partSize: 1024 * 1024 * 1024,
  14623. queueSize: 2,
  14624. leavePartsOnError: true,
  14625. };
  14626. bucket
  14627. .upload(params, options)
  14628. .on("httpUploadProgress", function (evt) {
  14629. //这里可以写进度条
  14630. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14631. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14632. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14633. })
  14634. .send(function (err, data) {
  14635. _this.progress = 100;
  14636. _this.isFinishSize = _this.isAllSize;
  14637. setTimeout(() => {
  14638. _this.proVisible = false;
  14639. }, 1000);
  14640. if (err) {
  14641. var a = _this.$refs.upload1.uploadFiles;
  14642. a.splice(a.length - 1, a.length);
  14643. _this.$message.error("上传失败");
  14644. } else {
  14645. // _this.$message.success('上传成功')
  14646. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14647. var c = [
  14648. "AVI",
  14649. "NAVI",
  14650. "MPEG",
  14651. "ASF",
  14652. "MOV",
  14653. "WMV",
  14654. "3GP",
  14655. "RM",
  14656. "RMVB",
  14657. "FLV",
  14658. "F4V",
  14659. "H.264",
  14660. "H.265",
  14661. "REAL VIDEO",
  14662. "MKV",
  14663. "WebM",
  14664. "HDDVD",
  14665. "MP4",
  14666. "MPG",
  14667. "M4V",
  14668. "MGV",
  14669. "OGV",
  14670. "QTM",
  14671. "STR",
  14672. "AMC",
  14673. "DVX",
  14674. "EVO",
  14675. "DAT",
  14676. "OGG",
  14677. "OGM",
  14678. ];
  14679. if (type == 1) {
  14680. _this.studyJuri[0].cover.push({
  14681. name: file.name,
  14682. url: data.Location,
  14683. uid: file.uid,
  14684. });
  14685. if (
  14686. c.indexOf(
  14687. _this.studyJuri[0].cover[0].url
  14688. .split(".")
  14689. [
  14690. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14691. ].toLocaleUpperCase()
  14692. ) != -1
  14693. ) {
  14694. _this.fileType = 2;
  14695. } else if (
  14696. b.indexOf(
  14697. _this.studyJuri[0].cover[0].url
  14698. .split(".")
  14699. [
  14700. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14701. ].toLocaleUpperCase()
  14702. ) != -1
  14703. ) {
  14704. _this.fileType = 1;
  14705. } else if (
  14706. photoA.indexOf(
  14707. _this.studyJuri[0].cover[0].url
  14708. .split(".")
  14709. [
  14710. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14711. ].toLocaleUpperCase()
  14712. ) != -1
  14713. ) {
  14714. _this.fileType = 0;
  14715. } else {
  14716. _this.fileType = 3;
  14717. }
  14718. _this.imgChange(null, null, type);
  14719. } else if (type == 2) {
  14720. _this.upToolImg = data.Location;
  14721. _this.imgChange(null, null, type);
  14722. _this.addCourseWorks(i);
  14723. } else if (type == 4) {
  14724. _this.addPz("3", data.Location);
  14725. } else if (type == 5) {
  14726. _this.addImgDrawImG(data.Location);
  14727. } else if (type == 6) {
  14728. var _ftype = 1;
  14729. if (
  14730. c.indexOf(
  14731. data.Location.split(".")[
  14732. data.Location.split(".").length - 1
  14733. ].toLocaleUpperCase()
  14734. ) != -1
  14735. ) {
  14736. _ftype = 5;
  14737. } else if (
  14738. b.indexOf(
  14739. data.Location.split(".")[
  14740. data.Location.split(".").length - 1
  14741. ].toLocaleUpperCase()
  14742. ) != -1
  14743. ) {
  14744. _ftype = 4;
  14745. } else {
  14746. _ftype = 1;
  14747. }
  14748. _this.plworkFile.push({
  14749. name: file.name,
  14750. url: data.Location,
  14751. uid: file.uid,
  14752. fileType: _ftype,
  14753. username:
  14754. _this.plworkFile.length > 10
  14755. ? _this.plworkFile.length + 1
  14756. : "0" + (_this.plworkFile.length + 1),
  14757. });
  14758. } else if (type == 7) {
  14759. _this.addCourseWorksGong(i, data.Location, 32);
  14760. } else if (type == 8) {
  14761. _this.addCourseWorksGong(i, data.Location, 57);
  14762. }
  14763. _this.imgChange(null, null, type);
  14764. console.log(data.Location);
  14765. // _this.$message.success('上传成功'+data.Location)
  14766. }
  14767. });
  14768. }
  14769. },
  14770. async beforeUpload3(event, type, i) {
  14771. // this.$message.success('进入上传')
  14772. let file = "";
  14773. let cfindex2 = 0;
  14774. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14775. file = event.target.files[cfindex];
  14776. var credentials = {
  14777. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14778. secretAccessKey: "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",
  14779. }; //秘钥形式的登录上传
  14780. window.AWS.config.update(credentials);
  14781. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14782. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14783. var _this = this;
  14784. // _this.progress = 0;
  14785. _this.proVisible2 = true;
  14786. var b = [
  14787. "DOC",
  14788. "DOCX",
  14789. "DOCM",
  14790. "DOTM",
  14791. "DOTX",
  14792. "PPTX",
  14793. "PPSX",
  14794. "PPT",
  14795. "PPS",
  14796. "PPTM",
  14797. "POTM",
  14798. "PPAM",
  14799. "POTX",
  14800. "PPSM",
  14801. ];
  14802. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14803. var photoA = [
  14804. "BMP",
  14805. "GIF",
  14806. "PNG",
  14807. "JPGE",
  14808. "JPG",
  14809. "TIF",
  14810. "PCX",
  14811. "TGA",
  14812. "EXIF",
  14813. "FPX",
  14814. "SVG",
  14815. "APNG",
  14816. ];
  14817. if (
  14818. photoA.indexOf(
  14819. file.name
  14820. .split(".")
  14821. [file.name.split(".").length - 1].toLocaleUpperCase()
  14822. ) != -1 &&
  14823. type != 4
  14824. ) {
  14825. // const blob = await imageConversion.compress(file, 0.8)
  14826. file = await this.pngToWhiteBg(file);
  14827. const blob = await imageConversion.compressAccurately(file, 256);
  14828. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14829. file = new File([blob], file.name, { type: file.type });
  14830. }
  14831. if (file) {
  14832. var params = {
  14833. Key:
  14834. file.name.split(".")[0] +
  14835. new Date().getTime() +
  14836. "." +
  14837. file.name.split(".")[file.name.split(".").length - 1],
  14838. ContentType: file.type,
  14839. Body: file,
  14840. "Access-Control-Allow-Credentials": "*",
  14841. ACL: "public-read",
  14842. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14843. var options = {
  14844. // partSize: 2048 * 1024 * 1024,
  14845. partSize: 1024 * 1024 * 1024,
  14846. queueSize: 2,
  14847. leavePartsOnError: true,
  14848. };
  14849. bucket
  14850. .upload(params, options)
  14851. .on("httpUploadProgress", function (evt) {
  14852. //这里可以写进度条
  14853. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14854. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14855. })
  14856. .send(function (err, data) {
  14857. // _this.progress = 100;
  14858. cfindex2++;
  14859. setTimeout(() => {
  14860. if (
  14861. cfindex2 == event.target.files.length - 1 ||
  14862. cfindex2 > event.target.files.length - 1
  14863. ) {
  14864. _this.proVisible2 = false;
  14865. }
  14866. }, 1000);
  14867. if (err) {
  14868. var a = _this.$refs.upload1.uploadFiles;
  14869. a.splice(a.length - 1, a.length);
  14870. _this.$message.error("上传失败");
  14871. } else {
  14872. // _this.$message.success('上传成功')
  14873. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14874. var c = [
  14875. "AVI",
  14876. "NAVI",
  14877. "MPEG",
  14878. "ASF",
  14879. "MOV",
  14880. "WMV",
  14881. "3GP",
  14882. "RM",
  14883. "RMVB",
  14884. "FLV",
  14885. "F4V",
  14886. "H.264",
  14887. "H.265",
  14888. "REAL VIDEO",
  14889. "MKV",
  14890. "WebM",
  14891. "HDDVD",
  14892. "MP4",
  14893. "MPG",
  14894. "M4V",
  14895. "MGV",
  14896. "OGV",
  14897. "QTM",
  14898. "STR",
  14899. "AMC",
  14900. "DVX",
  14901. "EVO",
  14902. "DAT",
  14903. "OGG",
  14904. "OGM",
  14905. ];
  14906. if (type == 1) {
  14907. _this.studyJuri[0].cover.push({
  14908. name: file.name,
  14909. url: data.Location,
  14910. uid: file.uid,
  14911. });
  14912. if (
  14913. c.indexOf(
  14914. _this.studyJuri[0].cover[0].url
  14915. .split(".")
  14916. [
  14917. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14918. ].toLocaleUpperCase()
  14919. ) != -1
  14920. ) {
  14921. _this.fileType = 2;
  14922. } else if (
  14923. b.indexOf(
  14924. _this.studyJuri[0].cover[0].url
  14925. .split(".")
  14926. [
  14927. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14928. ].toLocaleUpperCase()
  14929. ) != -1
  14930. ) {
  14931. _this.fileType = 1;
  14932. } else {
  14933. _this.fileType = 0;
  14934. }
  14935. _this.imgChange(null, null, type);
  14936. } else if (type == 2) {
  14937. _this.upToolImg = data.Location;
  14938. _this.imgChange(null, null, type);
  14939. _this.addCourseWorks(i);
  14940. } else if (type == 4) {
  14941. _this.addPz("3", data.Location);
  14942. } else if (type == 5) {
  14943. _this.addImgDrawImG(data.Location);
  14944. } else if (type == 6) {
  14945. var _ftype = 1;
  14946. if (
  14947. c.indexOf(
  14948. data.Location.split(".")[
  14949. data.Location.split(".").length - 1
  14950. ].toLocaleUpperCase()
  14951. ) != -1
  14952. ) {
  14953. _ftype = 5;
  14954. } else if (
  14955. b.indexOf(
  14956. data.Location.split(".")[
  14957. data.Location.split(".").length - 1
  14958. ].toLocaleUpperCase()
  14959. ) != -1
  14960. ) {
  14961. _ftype = 4;
  14962. } else {
  14963. _ftype = 1;
  14964. }
  14965. _this.plworkFile.push({
  14966. name: file.name,
  14967. url: data.Location,
  14968. uid: file.uid,
  14969. fileType: _ftype,
  14970. username:
  14971. _this.plworkFile.length + 1 > 9
  14972. ? _this.plworkFile.length + 1
  14973. : "0" + (_this.plworkFile.length + 1),
  14974. });
  14975. }
  14976. _this.imgChange(null, null, type);
  14977. console.log(data.Location);
  14978. // _this.$message.success('上传成功'+data.Location)
  14979. }
  14980. });
  14981. }
  14982. }
  14983. },
  14984. beforeUpload2(event, type) {
  14985. var file = event.target.files[0];
  14986. var credentials = {
  14987. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14988. secretAccessKey: "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",
  14989. }; //秘钥形式的登录上传
  14990. window.AWS.config.update(credentials);
  14991. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14992. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14993. var _this = this;
  14994. _this.progress = 0;
  14995. _this.proVisible = true;
  14996. if (file) {
  14997. var params = {
  14998. Key:
  14999. file.name.split(".")[0] +
  15000. new Date().getTime() +
  15001. "." +
  15002. file.name.split(".")[file.name.split(".").length - 1],
  15003. ContentType: file.type,
  15004. Body: file,
  15005. "Access-Control-Allow-Credentials": "*",
  15006. ACL: "public-read",
  15007. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15008. var options = {
  15009. partSize: 2048 * 1024 * 1024,
  15010. queueSize: 2,
  15011. leavePartsOnError: true,
  15012. };
  15013. bucket
  15014. .upload(params, options)
  15015. .on("httpUploadProgress", function (evt) {
  15016. //这里可以写进度条
  15017. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15018. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15019. })
  15020. .send(function (err, data) {
  15021. _this.progress = 100;
  15022. setTimeout(() => {
  15023. _this.proVisible = false;
  15024. }, 1000);
  15025. if (err) {
  15026. var a = _this.$refs.upload1.uploadFiles;
  15027. a.splice(a.length - 1, a.length);
  15028. _this.$message.error("上传失败");
  15029. } else {
  15030. if (type == 2) {
  15031. _this.studyJuri[0].upVedio.push({
  15032. name: file.name,
  15033. url: data.Location,
  15034. uid: file.uid,
  15035. });
  15036. _this.imgChange(null, null, type);
  15037. } else if (type == 3) {
  15038. _this.studyJuri[0].upFile.push({
  15039. name: file.name,
  15040. url: data.Location,
  15041. uid: file.uid,
  15042. });
  15043. _this.imgChange(null, null, type);
  15044. }
  15045. console.log(data.Location);
  15046. }
  15047. });
  15048. }
  15049. },
  15050. allScrell() {
  15051. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15052. },
  15053. nextOrpreSteps(t) {
  15054. if (this.IsFollow && this.tType == 2) {
  15055. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15056. return;
  15057. }
  15058. var b = this.chapInfoList.length - 1;
  15059. if (t == 0) {
  15060. if (this.courseType == 0) {
  15061. if (this.taskCount == 0) {
  15062. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15063. if (this.IsLookOpen) {
  15064. if (
  15065. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15066. ) {
  15067. if (
  15068. this.courseDetail.userid != this.userid &&
  15069. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15070. ) {
  15071. this.$message.error("任务未解锁");
  15072. } else {
  15073. this.$message.error("上一任务未解锁");
  15074. }
  15075. return;
  15076. }
  15077. }
  15078. this.navList[this.courseType].isOpen = false;
  15079. this.courseType = b;
  15080. this.taskCount =
  15081. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15082. .length - 1;
  15083. this.navList[this.courseType].isOpen = true;
  15084. } else {
  15085. this.taskCount--;
  15086. }
  15087. } else {
  15088. if (this.taskCount == 0) {
  15089. this.navList[this.courseType].isOpen = false;
  15090. this.courseType--;
  15091. this.taskCount =
  15092. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15093. .length - 1;
  15094. this.navList[this.courseType].isOpen = true;
  15095. } else {
  15096. this.taskCount--;
  15097. }
  15098. }
  15099. } else {
  15100. if (this.courseType == b) {
  15101. if (
  15102. this.taskCount ==
  15103. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15104. 1
  15105. ) {
  15106. this.navList[this.courseType].isOpen = false;
  15107. this.courseType = 0;
  15108. this.taskCount = 0;
  15109. this.navList[this.courseType].isOpen = true;
  15110. } else {
  15111. var bbb = parseInt(this.taskCount) + 1;
  15112. if (
  15113. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15114. .isLook &&
  15115. this.courseDetail.userid != this.userid &&
  15116. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15117. this.IsLookOpen
  15118. ) {
  15119. this.$message.error("任务未解锁");
  15120. return;
  15121. }
  15122. this.taskCount++;
  15123. if (this.IsLookOpen) {
  15124. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15125. this.taskCount
  15126. ].isLook = true;
  15127. this.addCourseState(3);
  15128. }
  15129. }
  15130. } else {
  15131. if (
  15132. this.taskCount ==
  15133. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15134. 1
  15135. ) {
  15136. var bbb = parseInt(this.courseType) + 1;
  15137. if (
  15138. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  15139. this.courseDetail.userid != this.userid &&
  15140. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15141. this.IsLookOpen
  15142. ) {
  15143. this.$message.error("任务未解锁");
  15144. return;
  15145. }
  15146. this.navList[this.courseType].isOpen = false;
  15147. this.courseType++;
  15148. this.taskCount = 0;
  15149. this.navList[this.courseType].isOpen = true;
  15150. } else {
  15151. var bbb = parseInt(this.taskCount) + 1;
  15152. if (
  15153. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15154. .isLook &&
  15155. this.courseDetail.userid != this.userid &&
  15156. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15157. this.IsLookOpen
  15158. ) {
  15159. this.$message.error("任务未解锁");
  15160. return;
  15161. }
  15162. this.taskCount++;
  15163. }
  15164. if (this.IsLookOpen) {
  15165. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15166. this.taskCount
  15167. ].isLook = true;
  15168. this.addCourseState(3);
  15169. }
  15170. }
  15171. // if (
  15172. // this.taskCount ==
  15173. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  15174. // ) {
  15175. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  15176. // } else {
  15177. // this.taskCount++;
  15178. // }
  15179. }
  15180. document.scrollingElement.scrollTop = 0;
  15181. this.showType = 0;
  15182. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15183. // if (this.vedio[this.taskCount].length > 0) {
  15184. // var a =
  15185. // document.getElementsByClassName("box_course")[this.taskCount]
  15186. // .offsetHeight;
  15187. // document.getElementsByClassName("vedioList")[
  15188. // this.taskCount
  15189. // ].style.height = a + "px";
  15190. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  15191. // a - 40 + "px";
  15192. // }
  15193. this.isNoHomeWork = false;
  15194. (this.studyJuri = [
  15195. {
  15196. content: "",
  15197. cover: [],
  15198. upVedio: [],
  15199. upFile: [],
  15200. },
  15201. ]),
  15202. (this.radio = []);
  15203. this.isClickNav = "";
  15204. this.selectPz();
  15205. this.getHomeWork();
  15206. this.getCourseDetail(2);
  15207. this.$forceUpdate();
  15208. },
  15209. openTask(s, n, i) {
  15210. if (this.IsFollow && this.tType == 2) {
  15211. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15212. return;
  15213. }
  15214. if (this.IsLookOpen) {
  15215. if (
  15216. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  15217. this.courseDetail.userid != this.userid &&
  15218. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15219. ) {
  15220. this.$message.error("任务未解锁");
  15221. return;
  15222. }
  15223. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  15224. if (
  15225. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  15226. .isLook
  15227. ) {
  15228. this.$message.error("上一任务未解锁");
  15229. return;
  15230. }
  15231. } else if (s > this.courseType) {
  15232. if (n > 0) {
  15233. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  15234. this.$message.error("上一任务未解锁");
  15235. return;
  15236. }
  15237. } else {
  15238. if (
  15239. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  15240. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  15241. ].isLook
  15242. ) {
  15243. this.$message.error("上一任务未解锁");
  15244. return;
  15245. }
  15246. }
  15247. }
  15248. }
  15249. if (this.navList[s].task[n].isOpen == true) {
  15250. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  15251. return;
  15252. }
  15253. this.courseType = s;
  15254. this.navId = i;
  15255. this.taskCount = n;
  15256. this.navList[this.courseType].task[this.taskCount].isOpen =
  15257. !this.navList[this.courseType].task[this.taskCount].isOpen;
  15258. if (this.IsLookOpen) {
  15259. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15260. this.taskCount
  15261. ].isLook = true;
  15262. this.addCourseState(3);
  15263. }
  15264. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  15265. this.isCloseList[ci].isClose = 0;
  15266. }
  15267. this.showType = 0;
  15268. this.isNoHomeWork = false;
  15269. (this.studyJuri = [
  15270. {
  15271. content: "",
  15272. cover: [],
  15273. upVedio: [],
  15274. upFile: [],
  15275. },
  15276. ]),
  15277. (this.radio = []);
  15278. document.scrollingElement.scrollTop = 0;
  15279. // setTimeout(() => {
  15280. // let a = document.getElementById(i);
  15281. // if (a.offsetTop - 110 == 0) {
  15282. // window.scrollTo(0, 0);
  15283. // } else {
  15284. // window.scrollTo(0, a.offsetTop);
  15285. // }
  15286. // }, 0);
  15287. this.selectPz();
  15288. this.getHomeWork();
  15289. this.getCourseDetail(2);
  15290. },
  15291. get(i) {
  15292. if (this.IsFollow && this.tType == 2) {
  15293. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15294. return;
  15295. }
  15296. // for(var k=0;k<this.navList.length;k++){
  15297. // this.navList[k].isOpen = false;
  15298. // }
  15299. // this.navList[i].isOpen = true;
  15300. this.navList[i].isOpen = !this.navList[i].isOpen;
  15301. if (this.navList[i].isOpen) {
  15302. this.openTask(i, 0, i + "-0");
  15303. }
  15304. },
  15305. addQuestion() {
  15306. this.answerList.push({
  15307. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15308. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15309. });
  15310. let params = [
  15311. {
  15312. uid: this.userid,
  15313. cid: this.id,
  15314. stage: this.courseType,
  15315. task: this.taskCount,
  15316. tool: this.toolindex,
  15317. content: JSON.stringify(this.answerList),
  15318. type: 3,
  15319. },
  15320. ];
  15321. this.ajax
  15322. .post(this.$store.state.api + "addCourseWorks", params)
  15323. .then((res) => {
  15324. this.$message({
  15325. message: "提交成功",
  15326. type: "success",
  15327. });
  15328. this.answerList = [];
  15329. this.answerDialogVisible = false;
  15330. this.selectStudent();
  15331. this.selectSWorks();
  15332. this.selectSLook();
  15333. })
  15334. .catch((err) => {
  15335. this.$message.error("提交失败");
  15336. console.error(err);
  15337. });
  15338. },
  15339. addQuestionTeacher() {
  15340. this.answerList.push({
  15341. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15342. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15343. });
  15344. let params = [
  15345. {
  15346. uid: this.sStudent.userid,
  15347. cid: this.id,
  15348. stage: this.courseType,
  15349. task: this.taskCount,
  15350. tool: this.toolindex,
  15351. content: JSON.stringify(this.answerList),
  15352. type: 3,
  15353. ateacher: this.userid,
  15354. },
  15355. ];
  15356. this.ajax
  15357. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15358. .then((res) => {
  15359. this.$message({
  15360. message: "提交成功",
  15361. type: "success",
  15362. });
  15363. this.answerList = [];
  15364. this.questionAnswer = "";
  15365. this.answerDialogVisibleTeacher = false;
  15366. this.selectStudent();
  15367. this.selectSWorks();
  15368. this.selectSLook();
  15369. })
  15370. .catch((err) => {
  15371. this.$message.error("提交失败");
  15372. console.error(err);
  15373. });
  15374. },
  15375. refreshCourse() {
  15376. // window.location.reload();
  15377. this.navList = [];
  15378. this.getCourseDetail(1);
  15379. },
  15380. getCourseDetail(type, gindex) {
  15381. let loading;
  15382. if (type != 2) {
  15383. loading = this.$loading.service({
  15384. background: "rgba(255, 255, 255, 0.7)",
  15385. target: document.querySelector(".student_table"),
  15386. });
  15387. }
  15388. // this.navList[0].isOpen = false;
  15389. // this.navList[this.courseType].isOpen = true;
  15390. // this.courseType = this.courseTypeLine;
  15391. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15392. let params = {
  15393. courseId: this.id,
  15394. };
  15395. this.ajax
  15396. .get(this.$store.state.api + "selectCourseDetail3", params)
  15397. .then((res) => {
  15398. if (type != 2) {
  15399. loading.close();
  15400. if (
  15401. this.courseType >
  15402. JSON.parse(res.data[0][0].chapters).length - 1
  15403. ) {
  15404. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15405. }
  15406. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15407. .chapterInfo[0].taskJson;
  15408. var b = [
  15409. "AVI",
  15410. "NAVI",
  15411. "MPEG",
  15412. "ASF",
  15413. "MOV",
  15414. "WMV",
  15415. "3GP",
  15416. "RM",
  15417. "RMVB",
  15418. "FLV",
  15419. "F4V",
  15420. "H.264",
  15421. "H.265",
  15422. "REAL VIDEO",
  15423. "MKV",
  15424. "WebM",
  15425. "HDDVD",
  15426. "MP4",
  15427. "MPG",
  15428. "M4V",
  15429. "MGV",
  15430. "OGV",
  15431. "QTM",
  15432. "STR",
  15433. "AMC",
  15434. "DVX",
  15435. "EVO",
  15436. "DAT",
  15437. "OGG",
  15438. "OGM",
  15439. "MP3",
  15440. ];
  15441. let _chapterData = [];
  15442. for (var i = 0; i < a.length; i++) {
  15443. var c = a[i].chapterData;
  15444. this.vedio[i] = [];
  15445. this.textList[i] = [];
  15446. this.lineList[i] = [];
  15447. this.chapToolList[i] = [];
  15448. this.file[i] = [];
  15449. this.fileC[i] = [];
  15450. _chapterData[i] = c.filter((el) => {
  15451. return el.type != 12;
  15452. });
  15453. this.fileC[i] = c.filter((el) => {
  15454. return el.type == 12;
  15455. });
  15456. // else if (c[j].type == 12) {
  15457. // this.fileC[i].push(c[j]);
  15458. // }
  15459. for (var j = 0; j < c.length; j++) {
  15460. if (c[j].type == 7) {
  15461. this.chapToolList[i].push(c[j]);
  15462. } else if (c[j].type == 8 || c[j].type == 14) {
  15463. this.lineList[i].push(c[j]);
  15464. } else if (c[j].type == 6) {
  15465. this.textList[i].push(c[j]);
  15466. } else {
  15467. if (
  15468. b.indexOf(
  15469. c[j].url
  15470. .split(".")
  15471. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15472. ) != -1
  15473. ) {
  15474. this.vedio[i].push(c[j]);
  15475. } else {
  15476. this.file[i].push(c[j]);
  15477. }
  15478. }
  15479. }
  15480. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15481. d.sources[0].src =
  15482. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15483. this.playerO[i] = d;
  15484. }
  15485. this.courseDetail = res.data[0][0];
  15486. this.tcid = this.arrayToArray(
  15487. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15488. this.tcid2 ? this.tcid2.split(",") : []
  15489. ).join(",");
  15490. this.evalua = res.data[0][0].evaId;
  15491. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15492. this.courseType
  15493. ];
  15494. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15495. if (this.tcid && res.data[1].length) {
  15496. let _inviteA = [];
  15497. for (var ik = 0; ik < res.data[1].length; ik++) {
  15498. _inviteA.push({
  15499. cid: res.data[1][ik].classid,
  15500. ic: res.data[1][ik].code,
  15501. });
  15502. }
  15503. for (var ik = 0; ik < _inviteA.length; ik++) {
  15504. if (
  15505. this.arrayToArray(
  15506. _inviteA[ik].cid.split(","),
  15507. this.tcid.split(",")
  15508. ).length
  15509. ) {
  15510. this.inviteCode = _inviteA[ik].ic;
  15511. break;
  15512. }
  15513. }
  15514. }
  15515. for (var l = 0; l < this.chapInfoList.length; l++) {
  15516. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15517. for (var m = 0; m < w.length; m++) {
  15518. w[m].id = l + "-" + m;
  15519. }
  15520. }
  15521. if (
  15522. _chapterData[this.taskCount].length &&
  15523. _chapterData[this.taskCount][0].type == 2
  15524. ) {
  15525. this.showType = 0;
  15526. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  15527. } else {
  15528. if (_chapterData[this.taskCount].length > 0) {
  15529. let _url = _chapterData[this.taskCount][0].url;
  15530. if (
  15531. _chapterData[this.taskCount][0].type == 8 ||
  15532. _chapterData[this.taskCount][0].type == 14
  15533. ) {
  15534. this.showType = 2;
  15535. if (
  15536. _url.indexOf("https://") == -1 &&
  15537. _url.indexOf("http://") == -1
  15538. ) {
  15539. _url = "https://" + _url;
  15540. }
  15541. this.pptImgUrl1 = _url;
  15542. } else if (_chapterData[this.taskCount][0].type == 3) {
  15543. if (
  15544. _url
  15545. .split(".")
  15546. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15547. ) {
  15548. this.showType = 3;
  15549. this.pptImgUrl1 = _url;
  15550. } else if (
  15551. this.isAssetTypeAnImage(
  15552. _url
  15553. .split(".")
  15554. [_url.split(".").length - 1].toLocaleLowerCase()
  15555. )
  15556. ) {
  15557. this.showType = 4;
  15558. this.pptImgUrl1 = _url;
  15559. } else {
  15560. this.showType = 2;
  15561. this.pptImgUrl1 =
  15562. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15563. _url;
  15564. }
  15565. } else if (_chapterData[this.taskCount][0].type == 13) {
  15566. this.showType = 4;
  15567. this.pptImgUrl1 = _url;
  15568. } else if (_chapterData[this.taskCount][0].type == 6) {
  15569. this.showType = 1;
  15570. this.text = this.textList[this.taskCount][0];
  15571. }
  15572. }
  15573. }
  15574. this.isClickNav = 0;
  15575. if (
  15576. !_chapterData[this.taskCount].length ||
  15577. _chapterData[this.taskCount][0].type == 12
  15578. ) {
  15579. this.isClickNav = "";
  15580. this.showType = "";
  15581. }
  15582. this.vChapterData = _chapterData;
  15583. } else {
  15584. this.showType = 0;
  15585. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15586. .chapterInfo[0].taskJson;
  15587. var b = [
  15588. "AVI",
  15589. "NAVI",
  15590. "MPEG",
  15591. "ASF",
  15592. "MOV",
  15593. "WMV",
  15594. "3GP",
  15595. "RM",
  15596. "RMVB",
  15597. "FLV",
  15598. "F4V",
  15599. "H.264",
  15600. "H.265",
  15601. "REAL VIDEO",
  15602. "MKV",
  15603. "WebM",
  15604. "HDDVD",
  15605. "MP4",
  15606. "MPG",
  15607. "M4V",
  15608. "MGV",
  15609. "OGV",
  15610. "QTM",
  15611. "STR",
  15612. "AMC",
  15613. "DVX",
  15614. "EVO",
  15615. "DAT",
  15616. "OGG",
  15617. "OGM",
  15618. "MP3",
  15619. ];
  15620. let _chapterData = [];
  15621. for (var i = 0; i < a.length; i++) {
  15622. var c = a[i].chapterData;
  15623. this.vedio[i] = [];
  15624. this.textList[i] = [];
  15625. this.lineList[i] = [];
  15626. this.chapToolList[i] = [];
  15627. this.file[i] = [];
  15628. this.fileC[i] = [];
  15629. _chapterData[i] = c.filter((el) => {
  15630. return el.type != 12;
  15631. });
  15632. this.fileC[i] = c.filter((el) => {
  15633. return el.type == 12;
  15634. });
  15635. for (var j = 0; j < c.length; j++) {
  15636. if (c[j].type == 7) {
  15637. this.chapToolList[i].push(c[j]);
  15638. } else if (c[j].type == 8 || c[j].type == 14) {
  15639. this.lineList[i].push(c[j]);
  15640. } else if (c[j].type == 6) {
  15641. this.textList[i].push(c[j]);
  15642. } else {
  15643. if (
  15644. b.indexOf(
  15645. c[j].url
  15646. .split(".")
  15647. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15648. ) != -1
  15649. ) {
  15650. this.vedio[i].push(c[j]);
  15651. } else {
  15652. this.file[i].push(c[j]);
  15653. }
  15654. }
  15655. }
  15656. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15657. d.sources[0].src =
  15658. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15659. this.playerO[i] = d;
  15660. }
  15661. if (
  15662. _chapterData[this.taskCount].length &&
  15663. _chapterData[this.taskCount][0].type == 2
  15664. ) {
  15665. this.showType = 0;
  15666. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  15667. } else {
  15668. if (_chapterData[this.taskCount].length > 0) {
  15669. let _url = _chapterData[this.taskCount][0].url;
  15670. if (
  15671. _chapterData[this.taskCount][0].type == 8 ||
  15672. _chapterData[this.taskCount][0].type == 14
  15673. ) {
  15674. this.showType = 2;
  15675. if (
  15676. _url.indexOf("https://") == -1 &&
  15677. _url.indexOf("http://") == -1
  15678. ) {
  15679. _url = "https://" + _url;
  15680. }
  15681. this.pptImgUrl1 = _url;
  15682. } else if (_chapterData[this.taskCount][0].type == 3) {
  15683. if (
  15684. _url
  15685. .split(".")
  15686. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15687. ) {
  15688. this.showType = 3;
  15689. this.pptImgUrl1 = _url;
  15690. } else if (
  15691. this.isAssetTypeAnImage(
  15692. _url
  15693. .split(".")
  15694. [_url.split(".").length - 1].toLocaleLowerCase()
  15695. )
  15696. ) {
  15697. this.showType = 4;
  15698. this.pptImgUrl1 = _url;
  15699. } else {
  15700. this.showType = 2;
  15701. this.pptImgUrl1 =
  15702. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15703. _url;
  15704. }
  15705. } else if (_chapterData[this.taskCount][0].type == 13) {
  15706. this.showType = 4;
  15707. this.pptImgUrl1 = _url;
  15708. } else if (_chapterData[this.taskCount][0].type == 6) {
  15709. this.showType = 1;
  15710. this.text = this.textList[this.taskCount][0];
  15711. }
  15712. }
  15713. }
  15714. this.isClickNav = 0;
  15715. if (
  15716. !_chapterData[this.taskCount].length ||
  15717. _chapterData[this.taskCount][0].type == 12
  15718. ) {
  15719. this.isClickNav = "";
  15720. this.showType = "";
  15721. }
  15722. this.vChapterData = _chapterData;
  15723. this.$forceUpdate();
  15724. }
  15725. // else {
  15726. // this.courseDetail = res.data[0][0];
  15727. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15728. // }
  15729. let _this = this;
  15730. if (_this.timer) {
  15731. clearInterval(_this.timer);
  15732. _this.timer = null;
  15733. }
  15734. if (_this.tcid) {
  15735. _this.getCourseGroup(gindex);
  15736. } else {
  15737. _this.selectSWorks(gindex);
  15738. }
  15739. _this.selectStudent();
  15740. _this.selectSLook();
  15741. _this.getPick();
  15742. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15743. _this.setCTask();
  15744. }
  15745. if (_this.dialogVisibleGroup) {
  15746. _this.groupJson =
  15747. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15748. _this.taskCount
  15749. ].toolChoose[_this.toolindex].groupJson;
  15750. }
  15751. _this.$nextTick(() => {
  15752. setTimeout(() => {
  15753. _this.checkEva();
  15754. }, 1000);
  15755. });
  15756. _this.timer = setInterval(function () {
  15757. // _this.getCourseDetail(2);
  15758. if (_this.tcid) {
  15759. _this.getCourseGroup(gindex);
  15760. } else {
  15761. _this.selectSWorks(gindex);
  15762. }
  15763. _this.selectStudent();
  15764. _this.selectSLook();
  15765. _this.getPick();
  15766. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15767. _this.setCTask();
  15768. }
  15769. if (_this.dialogVisibleGroup) {
  15770. _this.groupJson =
  15771. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15772. _this.taskCount
  15773. ].toolChoose[_this.toolindex].groupJson;
  15774. }
  15775. if (_this.tType == 4 || _this.ispzType == 4) {
  15776. _this.selectPz();
  15777. }
  15778. }, 5000);
  15779. _this.$nextTick(function () {
  15780. setTimeout(() => {
  15781. // var a =
  15782. // document.getElementsByClassName("box_course")[0].offsetHeight;
  15783. // document.getElementsByClassName("vedioList")[0].style.height =
  15784. // a + "px";
  15785. // document.getElementsByClassName("navBox")[0].style.height =
  15786. // a - 40 + "px";
  15787. // if (_this.vedio[_this.taskCount].length > 0) {
  15788. // _this.vedioTime = [];
  15789. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  15790. // _this.vedioTime[i] = document.getElementsByClassName(
  15791. // "vjs-duration-display"
  15792. // )[i].textContent;
  15793. // }
  15794. // }
  15795. }, 1000);
  15796. });
  15797. })
  15798. .catch((err) => {
  15799. loading.close();
  15800. console.error(err);
  15801. });
  15802. },
  15803. getCourseGroup(gindex) {
  15804. let params = {
  15805. cid: this.id,
  15806. classid: this.tcid ? this.tcid : "1",
  15807. };
  15808. this.ajax
  15809. .get(this.$store.state.api + "getCourseGroup", params)
  15810. .then((res) => {
  15811. if (res.data && res.data[0].length) {
  15812. if (!this.isGroup) {
  15813. let courseGroup = JSON.parse(res.data[0][0].group);
  15814. courseGroup.group = courseGroup.group.filter((el) => {
  15815. el.works = [];
  15816. return el;
  15817. });
  15818. if (courseGroup.isopen == 2) {
  15819. this.isGroup = false;
  15820. this.selectSWorks(gindex);
  15821. return;
  15822. }
  15823. this.courseGroup = courseGroup;
  15824. let groupPerson = res.data[1];
  15825. let group = JSON.parse(res.data[0][0].group).group;
  15826. let courseGroupStudent = {};
  15827. let courseGroupStudentUid = {};
  15828. for (var i = 0; i < group.length; i++) {
  15829. courseGroupStudent[group[i].id] = [];
  15830. courseGroupStudentUid[group[i].id] = [];
  15831. for (var j = 0; j < groupPerson.length; j++) {
  15832. if (groupPerson[j].groupCid == group[i].id) {
  15833. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15834. courseGroupStudentUid[group[i].id].push(
  15835. groupPerson[j].userid
  15836. );
  15837. }
  15838. }
  15839. }
  15840. this.courseGroupStudent = courseGroupStudent;
  15841. this.courseGroupStudentUid = courseGroupStudentUid;
  15842. }
  15843. if (this.courseGroup.isopen == 2) {
  15844. this.isGroup = false;
  15845. } else {
  15846. this.isGroup = true;
  15847. }
  15848. this.selectSWorks(gindex);
  15849. } else {
  15850. this.selectSWorks(gindex);
  15851. this.isGroup = false;
  15852. }
  15853. })
  15854. .catch((err) => {
  15855. // this.$message.error("网络不佳");
  15856. console.error(err);
  15857. });
  15858. },
  15859. setOperationTime() {
  15860. let _this = this;
  15861. if (_this.opertimer) {
  15862. clearInterval(_this.opertimer);
  15863. _this.opertimer = null;
  15864. }
  15865. _this.opertimer = setInterval(() => {
  15866. _this.setoTime("600");
  15867. }, 600000);
  15868. },
  15869. setoTime(time) {
  15870. let params = [
  15871. {
  15872. uid: this.userid,
  15873. cid: this.id,
  15874. type: "2",
  15875. time: time,
  15876. },
  15877. ];
  15878. this.ajax
  15879. .post(this.$store.state.api + "addOperationTimeT2", params)
  15880. .then((res) => {})
  15881. .catch((err) => {
  15882. console.error(err);
  15883. });
  15884. },
  15885. addPz(type, content) {
  15886. if (type == "1" && this.pzConText == "") {
  15887. this.$message.error("批注不能为空!");
  15888. return;
  15889. }
  15890. let params = [
  15891. {
  15892. cid: this.id,
  15893. uid: this.userid,
  15894. s: this.courseType,
  15895. t: this.taskCount,
  15896. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15897. type: type,
  15898. },
  15899. ];
  15900. this.ajax
  15901. .post(this.$store.state.api + "addPz2", params)
  15902. .then((res) => {
  15903. this.$message({
  15904. message: "添加成功",
  15905. type: "success",
  15906. });
  15907. this.pzConText = "";
  15908. this.addPzDialog = false;
  15909. this.selectPz();
  15910. })
  15911. .catch((err) => {
  15912. this.$message.error("添加失败");
  15913. console.error(err);
  15914. });
  15915. },
  15916. setReplyIndex(id, i) {
  15917. this.replyIndex = i;
  15918. this.replyPid = id;
  15919. this.replyDialogVisible = true;
  15920. },
  15921. addHf() {
  15922. if (this.reply == "") {
  15923. this.$message.error("回复不能为空!");
  15924. return;
  15925. }
  15926. let params = [
  15927. {
  15928. cid: this.id,
  15929. uid: this.userid,
  15930. s: this.courseType,
  15931. t: this.taskCount,
  15932. type: "1",
  15933. ct: 2,
  15934. pid: this.replyPid,
  15935. c: this.reply.replaceAll(/%/g, "%25"),
  15936. },
  15937. ];
  15938. this.ajax
  15939. .post(this.$store.state.api + "addHf", params)
  15940. .then((res) => {
  15941. this.reply = "";
  15942. this.$message({
  15943. message: "回复成功",
  15944. type: "success",
  15945. });
  15946. this.replyDialogVisible = false;
  15947. this.selectPz();
  15948. })
  15949. .catch((err) => {
  15950. this.$message.error("回复失败");
  15951. console.error(err);
  15952. });
  15953. },
  15954. deletePz(id) {
  15955. this.$confirm("确定删除此批注吗?", "提示", {
  15956. confirmButtonText: "确定",
  15957. cancelButtonText: "取消",
  15958. type: "warning",
  15959. })
  15960. .then(() => {
  15961. let params = [
  15962. {
  15963. id: id,
  15964. },
  15965. ];
  15966. this.ajax
  15967. .post(this.$store.state.api + "deletePz", params)
  15968. .then((res) => {
  15969. this.$message({
  15970. message: "删除成功",
  15971. type: "success",
  15972. });
  15973. this.selectPz();
  15974. })
  15975. .catch((err) => {
  15976. this.$message.error("网络异常");
  15977. console.error(err);
  15978. });
  15979. })
  15980. .catch(() => {});
  15981. },
  15982. deleteReply(id) {
  15983. this.$confirm("确定删除此回复吗?", "提示", {
  15984. confirmButtonText: "确定",
  15985. cancelButtonText: "取消",
  15986. type: "warning",
  15987. })
  15988. .then(() => {
  15989. let params = [
  15990. {
  15991. id: id,
  15992. },
  15993. ];
  15994. this.ajax
  15995. .post(this.$store.state.api + "deleteReply", params)
  15996. .then((res) => {
  15997. this.$message({
  15998. message: "删除成功",
  15999. type: "success",
  16000. });
  16001. this.selectPz();
  16002. })
  16003. .catch((err) => {
  16004. this.$message.error("网络异常");
  16005. console.error(err);
  16006. });
  16007. })
  16008. .catch(() => {});
  16009. },
  16010. setPz() {
  16011. if (this.ispzType == 4) {
  16012. this.ispzType = 0;
  16013. this.pzDialog = false;
  16014. return;
  16015. }
  16016. this.ispzType = 4;
  16017. this.pzDialog = true;
  16018. this.selectPz();
  16019. },
  16020. selectPz() {
  16021. let params = {
  16022. cid: this.id,
  16023. s: this.courseType,
  16024. t: this.taskCount,
  16025. type: this.pzStype,
  16026. uid: this.userid,
  16027. };
  16028. this.ajax
  16029. .get(this.$store.state.api + "selectPzListType", params)
  16030. .then((res) => {
  16031. this.pzList = res.data[0];
  16032. var a = res.data[1];
  16033. for (var i = 0; i < a.length; i++) {
  16034. for (var j = 0; j < this.pzList.length; j++) {
  16035. if (!this.pzList[j].hfList) {
  16036. this.pzList[j].hfList = [];
  16037. }
  16038. if (a[i].pid == this.pzList[j].id) {
  16039. this.pzList[j].hfList.push(a[i]);
  16040. }
  16041. }
  16042. }
  16043. })
  16044. .catch((err) => {
  16045. console.error(err);
  16046. });
  16047. },
  16048. // selectHf() {
  16049. // let params = {
  16050. // cid: this.id,
  16051. // s: this.courseType,
  16052. // t: this.taskCount,
  16053. // };
  16054. // this.ajax
  16055. // .get(this.$store.state.api + "selectHfList", params)
  16056. // .then((res) => {
  16057. // var a = res.data[0];
  16058. // for (var i = 0; i < a.length; i++) {
  16059. // for (var j = 0; j < this.pzList.length; j++) {
  16060. // if (!this.pzList[i].hfList) {
  16061. // this.pzList[i].hfList = [];
  16062. // }
  16063. // if (a[i].pid == this.pzList[j].id) {
  16064. // this.pzList[i].hfList.push(a[i]);
  16065. // }
  16066. // }
  16067. // }
  16068. // })
  16069. // .catch((err) => {
  16070. // console.error(err);
  16071. // });
  16072. // },
  16073. updateSLook() {
  16074. let params = {
  16075. sopen: this.sIsOpen == false ? 1 : 2,
  16076. cid: this.id,
  16077. };
  16078. this.ajax
  16079. .get(this.$store.state.api + "updateCourseSLook", params)
  16080. .then((res) => {
  16081. if (this.sIsOpen == true) {
  16082. this.$message({
  16083. message: "权限设置成功",
  16084. type: "success",
  16085. });
  16086. } else {
  16087. this.$message({
  16088. message: "权限关闭成功",
  16089. type: "success",
  16090. });
  16091. }
  16092. })
  16093. .catch((err) => {
  16094. console.error(err);
  16095. });
  16096. },
  16097. updateFollow() {
  16098. let params = [
  16099. {
  16100. sopen: this.IsFollow == false ? 1 : 2,
  16101. cid: this.id,
  16102. },
  16103. ];
  16104. this.ajax
  16105. .post(this.$store.state.api + "updateCourseFollow", params)
  16106. .then((res) => {
  16107. if (this.IsFollow == true) {
  16108. this.$message({
  16109. message: "开启成功",
  16110. type: "success",
  16111. });
  16112. } else {
  16113. this.$message({
  16114. message: "关闭成功",
  16115. type: "success",
  16116. });
  16117. }
  16118. this.setCTask();
  16119. })
  16120. .catch((err) => {
  16121. console.error(err);
  16122. });
  16123. },
  16124. setCTask() {
  16125. let params = [
  16126. {
  16127. sopen: this.courseType + "-" + this.taskCount,
  16128. cid: this.id,
  16129. },
  16130. ];
  16131. this.ajax
  16132. .post(this.$store.state.api + "updateCourseFollowC", params)
  16133. .then((res) => {})
  16134. .catch((err) => {
  16135. console.error(err);
  16136. });
  16137. },
  16138. updateLookOpen() {
  16139. let params = [
  16140. {
  16141. sopen: this.IsLookOpen == false ? 1 : 2,
  16142. cid: this.id,
  16143. },
  16144. ];
  16145. this.ajax
  16146. .post(this.$store.state.api + "updateCourseLookOpen", params)
  16147. .then((res) => {
  16148. if (this.IsLookOpen == true) {
  16149. // if (this.courseType != 0 && this.taskCount != 0) {
  16150. // this.openTask(0, 0, "0-0");
  16151. // }
  16152. this.$message({
  16153. message: "权限设置成功",
  16154. type: "success",
  16155. });
  16156. } else {
  16157. this.$message({
  16158. message: "权限关闭成功",
  16159. type: "success",
  16160. });
  16161. }
  16162. this.getCourseState(2);
  16163. })
  16164. .catch((err) => {
  16165. console.error(err);
  16166. });
  16167. },
  16168. selectSLook() {
  16169. let params = {
  16170. cid: this.id,
  16171. };
  16172. this.ajax
  16173. .get(this.$store.state.api + "selectCourseSLook", params)
  16174. .then((res) => {
  16175. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  16176. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  16177. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  16178. if (!this.IsLookOpen) {
  16179. this.setNavList();
  16180. } else {
  16181. this.getCourseState(1);
  16182. }
  16183. if (this.IsFollow && this.tType == 2) {
  16184. this.setContent2(false);
  16185. let _followC = res.data[0][0].followC.split("-");
  16186. if (
  16187. this.courseType != _followC[0] ||
  16188. this.taskCount != _followC[1]
  16189. ) {
  16190. this.navList[this.courseType].isOpen = false;
  16191. this.courseType = _followC[0];
  16192. this.navList[this.courseType].isOpen = true;
  16193. this.taskCount = parseInt(_followC[1]);
  16194. this.navId = res.data[0][0].followC;
  16195. document.scrollingElement.scrollTop = 0;
  16196. this.getCourseDetail(2);
  16197. }
  16198. }
  16199. })
  16200. .catch((err) => {
  16201. console.error(err);
  16202. });
  16203. },
  16204. setNavList() {
  16205. if (this.navList.length == 0) {
  16206. this.navList = [];
  16207. var copyList = [];
  16208. for (var l = 0; l < this.chapInfoList.length; l++) {
  16209. var q = this.chapInfoList[l].dyName;
  16210. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16211. var e;
  16212. copyList.push({
  16213. dyName: q,
  16214. isOpen: l === 0 ? true : false,
  16215. task: [],
  16216. });
  16217. for (var r = 0; r < w.length; r++) {
  16218. e = w[r].task;
  16219. if (this.chapInfoList[l].easy == 1) {
  16220. copyList[l].task.push({
  16221. taskName: q,
  16222. id: l + "-" + r,
  16223. isLook: w[r].isLook,
  16224. isOpen: r === 0 ? true : false,
  16225. tool: [],
  16226. });
  16227. } else {
  16228. copyList[l].task.push({
  16229. taskName: e,
  16230. id: l + "-" + r,
  16231. isLook: w[r].isLook,
  16232. isOpen: r === 0 ? true : false,
  16233. tool: [],
  16234. });
  16235. }
  16236. var t = w[r].toolChoose;
  16237. for (var k = 0; k < t.length; k++) {
  16238. var tool = t[k].tool[0];
  16239. copyList[l].task[r].tool.push({
  16240. tool: tool,
  16241. isTool: false,
  16242. });
  16243. }
  16244. // this.navId = this.navId ? this.navId : l + "-" + r;
  16245. // this.navId = l + "-" + r;
  16246. }
  16247. }
  16248. this.navList = copyList;
  16249. this.navList[0].isOpen = false;
  16250. this.navList[this.courseType].isOpen = true;
  16251. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16252. } else {
  16253. this.setNavList2();
  16254. }
  16255. },
  16256. setNavList2() {
  16257. for (var l = 0; l < this.chapInfoList.length; l++) {
  16258. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16259. for (var r = 0; r < w.length; r++) {
  16260. this.navList[l].task[r].isLook = w[r].isLook;
  16261. }
  16262. }
  16263. if (
  16264. this.IsLookOpen &&
  16265. !this.navList[this.courseType].task[this.taskCount].isLook
  16266. ) {
  16267. this.openTask(0, 0, "0-0");
  16268. }
  16269. this.$forceUpdate();
  16270. },
  16271. getCourseState(type) {
  16272. let params = {
  16273. cid: this.id,
  16274. };
  16275. this.ajax
  16276. .get(this.$store.state.api + "getCourseState", params)
  16277. .then((res) => {
  16278. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  16279. this.chapInfoList = JSON.parse(res.data[0][0].state);
  16280. this.setNavList();
  16281. this.$forceUpdate();
  16282. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  16283. this.addCourseState(2);
  16284. } else {
  16285. this.addCourseState(1);
  16286. }
  16287. })
  16288. .catch((err) => {
  16289. console.error(err);
  16290. });
  16291. },
  16292. addCourseState(type) {
  16293. let _state = this.chapInfoList;
  16294. // this.courseType this.taskCount
  16295. if (type == 1 || type == 2) {
  16296. for (var i = 0; i < _state.length; i++) {
  16297. let el = _state[i].chapterInfo[0].taskJson;
  16298. for (var j = 0; j < el.length; j++) {
  16299. // if (i == 0 && j == 0) {
  16300. // el[j].isLook = true;
  16301. // } else {
  16302. // el[j].isLook = false;
  16303. // }
  16304. if (
  16305. this.courseType > i ||
  16306. (this.courseType == i && this.taskCount + 1 > j)
  16307. ) {
  16308. el[j].isLook = true;
  16309. } else {
  16310. el[j].isLook = false;
  16311. }
  16312. }
  16313. }
  16314. }
  16315. let params = [
  16316. {
  16317. cid: this.id,
  16318. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  16319. },
  16320. ];
  16321. this.ajax
  16322. .post(
  16323. this.$store.state.api +
  16324. (type == 1 ? "addCourseState" : "updateCourseSate"),
  16325. params
  16326. )
  16327. .then((res) => {
  16328. if (this.IsLookOpen) {
  16329. this.setNavList();
  16330. }
  16331. if (type == 3 && type == 2) {
  16332. this.getCourseState(1);
  16333. }
  16334. })
  16335. .catch((err) => {
  16336. console.error(err);
  16337. });
  16338. },
  16339. getHomeWork() {
  16340. let params = {
  16341. cid: this.id,
  16342. stage: this.courseType,
  16343. task: this.taskCount,
  16344. uid: this.userid,
  16345. };
  16346. this.ajax
  16347. .get(this.$store.state.api + "selectWork", params)
  16348. .then((res) => {
  16349. if (res.data[0].length > 0) {
  16350. this.studyJuri = JSON.parse(res.data[0][0].content);
  16351. this.isNoHomeWork = true;
  16352. }
  16353. })
  16354. .catch((err) => {
  16355. console.error(err);
  16356. });
  16357. },
  16358. isAssetTypeAnImage(ext) {
  16359. return (
  16360. [
  16361. "png",
  16362. "jpg",
  16363. "jpeg",
  16364. "bmp",
  16365. "gif",
  16366. "webp",
  16367. "psd",
  16368. "svg",
  16369. "tiff",
  16370. ].indexOf(ext) !== -1
  16371. );
  16372. },
  16373. switchVideo(media) {
  16374. this.playerO = {};
  16375. this.playerOptions.poster = "";
  16376. this.playerOptions.sources[0].src = media;
  16377. this.playerO = this.playerOptions;
  16378. },
  16379. onPlayerPlay() {},
  16380. onPlayerTimeupdate(player) {
  16381. let gklog = player.cache_.currentTime; //当前播放的秒数
  16382. let a = player.cache_.duration; //视频的总时长
  16383. let gklog2 = parseInt(gklog);
  16384. // if(gklog2 == '3'){
  16385. // player.pause()
  16386. // setTimeout(()=>{
  16387. // player.currentTime(gklog2+1)
  16388. // player.play()
  16389. // },1000)
  16390. // }
  16391. console.log(" onPlayerTimeupdate!", gklog);
  16392. console.log(" onPlayerTimeupdate!", gklog2);
  16393. },
  16394. lookVedio(u, i) {
  16395. this.isClickNav = "";
  16396. // this.playerOptions.sources[0].src = u;
  16397. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16398. d.sources[0].src = u;
  16399. this.playerO[this.taskCount] = d;
  16400. this.showType = 0;
  16401. // this.isClickNav = "video" + i;
  16402. this.isClickNav = i;
  16403. this.$forceUpdate();
  16404. },
  16405. lookText(i, t) {
  16406. this.isClickNav = "";
  16407. // this.text = this.textList[i][t];
  16408. this.text = this.vChapterData[i][t];
  16409. // this.dialogVisible1 = true;
  16410. this.showType = 1;
  16411. // this.isClickNav = "text" + t;
  16412. this.isClickNav = t;
  16413. },
  16414. lookTools(i, t) {
  16415. this.chapTools = this.chapToolList[i][t];
  16416. this.dialogVisible2 = true;
  16417. },
  16418. openFile(f) {
  16419. this.pptImgUrl = "";
  16420. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  16421. if (
  16422. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  16423. -1
  16424. ) {
  16425. this.pptImgUrl =
  16426. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  16427. this.showPDF = false;
  16428. this.dialogVisible3 = true;
  16429. } else if (
  16430. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16431. ) {
  16432. this.pptImgUrl = f;
  16433. this.showPDF = true;
  16434. this.dialogVisible3 = true;
  16435. }
  16436. },
  16437. openTable(f) {
  16438. this.tableJson = JSON.parse(f.works);
  16439. this.dialogVisibleTable2 = true;
  16440. },
  16441. openWord(f) {
  16442. this.tableJson = JSON.parse(f.works);
  16443. this.dialogVisibleTable3 = true;
  16444. },
  16445. doUrl(url, i) {
  16446. this.isClickNav = "";
  16447. this.pptImgUrl1 = "";
  16448. this.showType = 2;
  16449. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16450. url = "https://" + url;
  16451. }
  16452. this.pptImgUrl1 = "";
  16453. setTimeout(() => {
  16454. this.pptImgUrl1 = url;
  16455. }, 500);
  16456. // this.isClickNav = "line" + i;
  16457. this.isClickNav = i;
  16458. this.$forceUpdate();
  16459. },
  16460. checkPhoto(f, i) {
  16461. this.showType = 4;
  16462. this.pptImgUrl1 = f.url;
  16463. this.isClickNav = i;
  16464. this.$forceUpdate();
  16465. },
  16466. downFile(f, i) {
  16467. this.isClickNav = "";
  16468. this.pptImgUrl1 = "";
  16469. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  16470. if (
  16471. a.indexOf(
  16472. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  16473. ) != -1
  16474. ) {
  16475. this.pptImgUrl1 =
  16476. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  16477. // this.dialogVisible3 = true;
  16478. this.showType = 2;
  16479. } else if (
  16480. this.isAssetTypeAnImage(
  16481. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16482. )
  16483. ) {
  16484. this.showType = 4;
  16485. this.pptImgUrl1 = f.url;
  16486. } else if (
  16487. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16488. "PDF"
  16489. ) {
  16490. this.pptImgUrl1 = f.url;
  16491. // this.dialogVisible3 = true;
  16492. this.showType = 3;
  16493. } else {
  16494. window.open(this.file[i].url);
  16495. }
  16496. // this.isClickNav = "word" + i;
  16497. this.isClickNav = i;
  16498. },
  16499. downFileList(i) {
  16500. window.open(this.noImgList[i].url);
  16501. },
  16502. openAddWork() {
  16503. this.dialogVisible = true;
  16504. },
  16505. addBzWorks() {
  16506. let params = [
  16507. {
  16508. uid: this.userid,
  16509. cid: this.id,
  16510. stage: this.courseType,
  16511. task: this.taskCount,
  16512. tool: this.toolindex,
  16513. content: JSON.stringify(this.eScore),
  16514. type: 6,
  16515. },
  16516. ];
  16517. this.ajax
  16518. .post(this.$store.state.api + "addCourseWorks", params)
  16519. .then((res) => {
  16520. this.$message({
  16521. message: "提交成功",
  16522. type: "success",
  16523. });
  16524. this.eScore = { eBzText: "", eStar: [] };
  16525. this.studentEvalDialogVisible = false;
  16526. this.selectSWorks();
  16527. })
  16528. .catch((err) => {
  16529. this.$message.error("提交失败");
  16530. console.error(err);
  16531. });
  16532. },
  16533. addBzWorksTeacher() {
  16534. let params = [
  16535. {
  16536. uid: this.sStudent.userid,
  16537. cid: this.id,
  16538. stage: this.courseType,
  16539. task: this.taskCount,
  16540. tool: this.toolindex,
  16541. content: JSON.stringify(this.eScore),
  16542. type: 6,
  16543. },
  16544. ];
  16545. this.ajax
  16546. .post(this.$store.state.api + "addCourseWorks", params)
  16547. .then((res) => {
  16548. this.$message({
  16549. message: "提交成功",
  16550. type: "success",
  16551. });
  16552. this.eScore = { eBzText: "", eStar: [] };
  16553. this.studentEvalDialogVisibleTeacher = false;
  16554. this.selectSWorks();
  16555. })
  16556. .catch((err) => {
  16557. this.$message.error("提交失败");
  16558. console.error(err);
  16559. });
  16560. },
  16561. addStudentAsk() {
  16562. if (!this.radio.length) {
  16563. this.$message.error("请选择选项");
  16564. return;
  16565. }
  16566. for (var i = 0; i < this.askJson.askCount; i++) {
  16567. if (
  16568. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16569. (this.radio[i] !== 0 && !this.radio[i])
  16570. ) {
  16571. this.$message.error("请选择选项");
  16572. return;
  16573. }
  16574. }
  16575. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16576. let params = [
  16577. {
  16578. uid: this.userid,
  16579. cid: this.id,
  16580. stage: this.courseType,
  16581. task: this.taskCount,
  16582. tool: this.toolindex,
  16583. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16584. type: 2,
  16585. },
  16586. ];
  16587. this.ajax
  16588. .post(this.$store.state.api + "addCourseWorks", params)
  16589. .then((res) => {
  16590. this.$message({
  16591. message: "提交成功",
  16592. type: "success",
  16593. });
  16594. this.askList = [];
  16595. this.dialogVisible5 = false;
  16596. this.selectStudent();
  16597. this.selectSWorks();
  16598. this.selectSLook();
  16599. })
  16600. .catch((err) => {
  16601. this.$message.error("提交失败");
  16602. console.error(err);
  16603. });
  16604. },
  16605. addStudentAskTeacher() {
  16606. if (!this.radio.length) {
  16607. this.$message.error("请选择选项");
  16608. return;
  16609. }
  16610. for (var i = 0; i < this.askJson.askCount; i++) {
  16611. if (
  16612. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16613. (this.radio[i] !== 0 && !this.radio[i])
  16614. ) {
  16615. this.$message.error("请选择选项");
  16616. return;
  16617. }
  16618. }
  16619. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16620. let params = [
  16621. {
  16622. uid: this.sStudent.userid,
  16623. cid: this.id,
  16624. stage: this.courseType,
  16625. task: this.taskCount,
  16626. tool: this.toolindex,
  16627. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16628. type: 2,
  16629. },
  16630. ];
  16631. this.ajax
  16632. .post(this.$store.state.api + "addCourseWorks", params)
  16633. .then((res) => {
  16634. this.$message({
  16635. message: "提交成功",
  16636. type: "success",
  16637. });
  16638. this.askList = [];
  16639. this.dialogVisible5Teacher = false;
  16640. this.selectStudent();
  16641. this.selectSWorks();
  16642. this.selectSLook();
  16643. })
  16644. .catch((err) => {
  16645. this.$message.error("提交失败");
  16646. console.error(err);
  16647. });
  16648. },
  16649. addStudentTest() {
  16650. if (!this.radio.length) {
  16651. this.$message.error("请选择选项");
  16652. return;
  16653. }
  16654. for (var i = 0; i < this.testJson.testCount; i++) {
  16655. if (
  16656. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16657. (this.radio[i] !== 0 && !this.radio[i])
  16658. ) {
  16659. this.$message.error("请选择选项");
  16660. return;
  16661. }
  16662. }
  16663. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16664. let params = [
  16665. {
  16666. uid: this.userid,
  16667. cid: this.id,
  16668. stage: this.courseType,
  16669. task: this.taskCount,
  16670. tool: this.toolindex,
  16671. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16672. type: 8,
  16673. },
  16674. ];
  16675. this.ajax
  16676. .post(this.$store.state.api + "addCourseWorks", params)
  16677. .then((res) => {
  16678. this.$message({
  16679. message: "提交成功",
  16680. type: "success",
  16681. });
  16682. this.askList = [];
  16683. this.dialogVisibleChoice = false;
  16684. this.selectStudent();
  16685. this.selectSWorks();
  16686. this.selectSLook();
  16687. })
  16688. .catch((err) => {
  16689. this.$message.error("提交失败");
  16690. console.error(err);
  16691. });
  16692. },
  16693. addStudentTestTeacher() {
  16694. if (!this.radio.length) {
  16695. this.$message.error("请选择选项");
  16696. return;
  16697. }
  16698. for (var i = 0; i < this.testJson.testCount; i++) {
  16699. if (
  16700. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16701. (this.radio[i] !== 0 && !this.radio[i])
  16702. ) {
  16703. this.$message.error("请选择选项");
  16704. return;
  16705. }
  16706. }
  16707. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16708. let params = [
  16709. {
  16710. uid: this.sStudent.userid,
  16711. cid: this.id,
  16712. stage: this.courseType,
  16713. task: this.taskCount,
  16714. tool: this.toolindex,
  16715. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16716. type: 8,
  16717. },
  16718. ];
  16719. this.ajax
  16720. .post(this.$store.state.api + "addCourseWorks", params)
  16721. .then((res) => {
  16722. this.$message({
  16723. message: "提交成功",
  16724. type: "success",
  16725. });
  16726. this.askList = [];
  16727. this.dialogVisibleChoiceTeacher = false;
  16728. this.selectStudent();
  16729. this.selectSWorks();
  16730. this.selectSLook();
  16731. })
  16732. .catch((err) => {
  16733. this.$message.error("提交失败");
  16734. console.error(err);
  16735. });
  16736. },
  16737. addWork() {
  16738. if (this.studyJuri[0].content == "") {
  16739. this.$message.error("请将信息填写完整");
  16740. return;
  16741. } else if (this.studyJuri[0].cover.length == 0) {
  16742. this.$message.error("请将信息填写完整");
  16743. return;
  16744. } else if (this.studyJuri[0].upVedio.length == 0) {
  16745. this.$message.error("请将信息填写完整");
  16746. return;
  16747. }
  16748. if (this.isNoHomeWork) {
  16749. this.$confirm(
  16750. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  16751. "提示",
  16752. {
  16753. confirmButtonText: "确定",
  16754. cancelButtonText: "取消",
  16755. type: "warning",
  16756. }
  16757. )
  16758. .then(() => {
  16759. let params = [
  16760. {
  16761. uid: this.userid,
  16762. cid: this.id,
  16763. stage: this.courseType,
  16764. task: this.taskCount,
  16765. content: JSON.stringify(this.studyJuri),
  16766. },
  16767. ];
  16768. this.ajax
  16769. .post(this.$store.state.api + "addWorks", params)
  16770. .then((res) => {
  16771. this.$message({
  16772. message: "提交成功",
  16773. type: "success",
  16774. });
  16775. this.isNoHomeWork = true;
  16776. this.dialogVisible = false;
  16777. })
  16778. .catch((err) => {
  16779. this.$message.error("提交失败");
  16780. console.error(err);
  16781. });
  16782. })
  16783. .catch(() => {});
  16784. } else {
  16785. let params = [
  16786. {
  16787. uid: this.userid,
  16788. cid: this.id,
  16789. stage: this.courseType,
  16790. task: this.taskCount,
  16791. content: JSON.stringify(this.studyJuri),
  16792. },
  16793. ];
  16794. this.ajax
  16795. .post(this.$store.state.api + "addWorks", params)
  16796. .then((res) => {
  16797. this.$message({
  16798. message: "提交成功",
  16799. type: "success",
  16800. });
  16801. this.isNoHomeWork = true;
  16802. this.dialogVisible = false;
  16803. })
  16804. .catch((err) => {
  16805. this.$message.error("提交失败");
  16806. console.error(err);
  16807. });
  16808. }
  16809. },
  16810. selectCount() {
  16811. let params = {
  16812. cid: this.id,
  16813. chid: this.courseType,
  16814. uid: this.userid,
  16815. };
  16816. this.ajax
  16817. .get(this.$store.state.api + "selectToolsCount", params)
  16818. .then((res) => {
  16819. for (var i = 0; i < res.data[0].length; i++) {
  16820. if (res.data[0][i].tools == 1) {
  16821. this.wbCount = res.data[0][i].count;
  16822. } else if (res.data[0][i].tools == 2) {
  16823. this.wordCount = res.data[0][i].count;
  16824. } else if (res.data[0][i].tools == 3) {
  16825. this.mindCount = res.data[0][i].count;
  16826. } else if (res.data[0][i].tools == 4) {
  16827. this.askCount = res.data[0][i].count;
  16828. } else if (res.data[0][i].tools == 6) {
  16829. this.noteCount = res.data[0][i].count;
  16830. } else if (res.data[0][i].tools == 7) {
  16831. this.mindNetWorkCount = res.data[0][i].count;
  16832. } else if (res.data[0][i].tools == 8) {
  16833. this.libraryCount = res.data[0][i].count;
  16834. } else if (res.data[0][i].tools == 16) {
  16835. this.workCount = res.data[0][i].count;
  16836. } else if (res.data[0][i].tools == 10) {
  16837. this.timeCount = res.data[0][i].count;
  16838. } else if (res.data[0][i].tools == 15) {
  16839. this.answerCount = res.data[0][i].count;
  16840. } else if (res.data[0][i].tools == 18) {
  16841. this.trainCount = res.data[0][i].count;
  16842. }
  16843. }
  16844. })
  16845. .catch((err) => {
  16846. console.error(err);
  16847. });
  16848. },
  16849. openTools(t, i, index, c, sName,id) {
  16850. var z = JSON.parse(c);
  16851. this.noteName = sName;
  16852. if (t == 4) {
  16853. this.radio = [];
  16854. this.isAnswer = false;
  16855. let b = z[0].anwer;
  16856. this.radio = b;
  16857. this.askJson = z[0].askJson;
  16858. this.isAnswer = true;
  16859. this.dialogVisible5 = true;
  16860. } else if (t == 45) {
  16861. this.radio = [];
  16862. this.isAnswer = false;
  16863. let b = z[0].anwer;
  16864. this.radio = b;
  16865. this.testJson = z[0].testJson;
  16866. this.isAnswer = true;
  16867. this.dialogVisibleChoice = true;
  16868. }else if(t == 69){
  16869. this.oldEnglishJson1 = {}
  16870. this.oldEnglishJson = {}
  16871. this.englishList1 = {}
  16872. this.newEngIndex = -1;
  16873. this.isNoUserid = false;
  16874. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16875. .toolChoose[i].englishList;
  16876. this.oldEnglishJson = z;
  16877. this.engWid = id;
  16878. this.newEnglishList = { engTitle:"",engText:"" }
  16879. this.newEnglishList1 = []
  16880. this.selectEngC(id,z);
  16881. }
  16882. // else if (t == 15) {
  16883. // this.answerQ = "";
  16884. // this.questionAnswer = "";
  16885. // this.answerQ = z[0].answerTitle;
  16886. // this.questionAnswer = z[0].answer;
  16887. // this.answerDialogVisible = true;
  16888. // }
  16889. },
  16890. fastText(p, t) {
  16891. if (t == 1) {
  16892. this.commentText += p;
  16893. } else {
  16894. this.eScore.eBzText += p;
  16895. }
  16896. },
  16897. addTools(t, i, index) {
  16898. var a = 0;
  16899. // this.taskCount = index;
  16900. this.toolindex = i;
  16901. if (t == 1) {
  16902. if (this.wbCount > 0) {
  16903. this.updateCount(this.wbCount, t);
  16904. } else {
  16905. this.wbCount++;
  16906. a = this.wbCount;
  16907. this.toolsCount(a, t);
  16908. }
  16909. window.parent.postMessage(
  16910. {
  16911. tools: "1",
  16912. cid: this.id,
  16913. stage: this.courseType,
  16914. task: this.taskCount,
  16915. tool: i,
  16916. },
  16917. "*"
  16918. );
  16919. } else if (t == 2) {
  16920. if (this.wordCount > 0) {
  16921. this.updateCount(this.wordCount, t);
  16922. } else {
  16923. this.wordCount++;
  16924. a = this.wordCount;
  16925. this.toolsCount(a, t);
  16926. }
  16927. window.parent.postMessage({ tools: "2" }, "*");
  16928. } else if (t == 3) {
  16929. if (this.mindCount > 0) {
  16930. this.updateCount(this.mindCount, t);
  16931. } else {
  16932. this.mindCount++;
  16933. a = this.mindCount;
  16934. this.toolsCount(a, t);
  16935. }
  16936. window.parent.postMessage(
  16937. {
  16938. tools: "3",
  16939. cid: this.id,
  16940. stage: this.courseType,
  16941. task: this.taskCount,
  16942. tool: i,
  16943. },
  16944. "*"
  16945. );
  16946. } else if (t == 4) {
  16947. this.radio = [];
  16948. this.noteName = "";
  16949. this.isAnswer = false;
  16950. if (this.askCount > 0) {
  16951. this.updateCount(this.askCount, t);
  16952. } else {
  16953. this.askCount++;
  16954. a = this.askCount;
  16955. this.toolsCount(a, t);
  16956. }
  16957. if (!this.dialogVisible2) {
  16958. this.askJson.askJson =
  16959. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16960. index
  16961. ].toolChoose[i].askJson;
  16962. this.askJson.askTitle =
  16963. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16964. index
  16965. ].toolChoose[i].askTitle;
  16966. this.askJson.askCount =
  16967. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16968. index
  16969. ].toolChoose[i].askCount;
  16970. } else {
  16971. this.askJson.askJson = this.chapTools.askJson.askJson;
  16972. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  16973. this.askJson.askCount = this.chapTools.askJson.askCount;
  16974. }
  16975. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16976. if (this.askJson.askJson[k].type == "2") {
  16977. this.radio.push([]);
  16978. } else {
  16979. this.radio.push("");
  16980. }
  16981. }
  16982. this.dialogVisible5 = true;
  16983. // window.parent.postMessage({ tools: "4" }, "*");
  16984. } else if (t == 45) {
  16985. this.noteName = "";
  16986. this.radio = [];
  16987. this.isAnswer = false;
  16988. if (this.askCount > 0) {
  16989. this.updateCount(this.askCount, t);
  16990. } else {
  16991. this.askCount++;
  16992. a = this.askCount;
  16993. this.toolsCount(a, t);
  16994. }
  16995. this.testJson =
  16996. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16997. index
  16998. ].toolChoose[i].testJson;
  16999. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17000. if (this.testJson.testJson[k].type == "2") {
  17001. this.radio.push([]);
  17002. } else {
  17003. this.radio.push("");
  17004. }
  17005. }
  17006. this.dialogVisibleChoice = true;
  17007. // window.parent.postMessage({ tools: "4" }, "*");
  17008. } else if (t == 5) {
  17009. if (this.scoreCount > 0) {
  17010. this.updateCount(this.scoreCount, t);
  17011. } else {
  17012. this.scoreCount++;
  17013. a = this.scoreCount;
  17014. this.toolsCount(a, t);
  17015. }
  17016. this.dialogVisible4 = true;
  17017. // window.parent.postMessage({ tools: "5" }, "*");
  17018. } else if (t == 6) {
  17019. if (this.noteCount > 0) {
  17020. this.updateCount(this.noteCount, t);
  17021. } else {
  17022. this.noteCount++;
  17023. a = this.noteCount;
  17024. this.toolsCount(a, t);
  17025. }
  17026. window.parent.postMessage(
  17027. {
  17028. tools: "6",
  17029. cid: this.id,
  17030. stage: this.courseType,
  17031. task: this.taskCount,
  17032. tool: i,
  17033. },
  17034. "*"
  17035. );
  17036. } else if (t == 7) {
  17037. if (this.mindNetWorkCount > 0) {
  17038. this.updateCount(this.mindNetWorkCount, t);
  17039. } else {
  17040. this.mindNetWorkCount++;
  17041. a = this.mindNetWorkCount;
  17042. this.toolsCount(a, t);
  17043. }
  17044. window.parent.postMessage(
  17045. {
  17046. tools: "7",
  17047. cid: this.id,
  17048. stage: this.courseType,
  17049. task: this.taskCount,
  17050. tool: i,
  17051. },
  17052. "*"
  17053. );
  17054. } else if (t == 16) {
  17055. if (this.workCount > 0) {
  17056. this.updateCount(this.workCount, t);
  17057. } else {
  17058. this.workCount++;
  17059. a = this.workCount;
  17060. this.toolsCount(a, t);
  17061. }
  17062. this.dialogVisible = true;
  17063. } else if (t == 50) {
  17064. if (this.tType == 2) {
  17065. this.$message.error("不支持学生使用");
  17066. return;
  17067. }
  17068. this.plworkFile = [];
  17069. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17070. if (!this.uploadCid) {
  17071. this.$message.error(
  17072. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17073. );
  17074. return;
  17075. }
  17076. // this.uploadCid =
  17077. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17078. // index
  17079. // ].toolChoose[i].uploadJson[0];
  17080. this.selectUploadStudent(2);
  17081. } else if (t == 8) {
  17082. if (this.libraryCount > 0) {
  17083. this.updateCount(this.libraryCount, t);
  17084. } else {
  17085. this.libraryCount++;
  17086. a = this.libraryCount;
  17087. this.toolsCount(a, t);
  17088. }
  17089. window.parent.postMessage({ tools: "8" }, "*");
  17090. } else if (t == 17) {
  17091. if (this.libraryCount > 0) {
  17092. this.updateCount(this.libraryCount, t);
  17093. } else {
  17094. this.libraryCount++;
  17095. a = this.libraryCount;
  17096. this.toolsCount(a, t);
  17097. }
  17098. window.parent.postMessage({ tools: "17" }, "*");
  17099. } else if (t == 18) {
  17100. if (this.trainCount > 0) {
  17101. this.updateCount(this.trainCount, t);
  17102. } else {
  17103. this.trainCount++;
  17104. a = this.trainCount;
  17105. this.toolsCount(a, t);
  17106. }
  17107. window.parent.postMessage({ tools: "18" }, "*");
  17108. } else if (t == 10) {
  17109. if (this.timeCount > 0) {
  17110. this.updateCount(this.timeCount, t);
  17111. } else {
  17112. this.timeCount++;
  17113. a = this.timeCount;
  17114. this.toolsCount(a, t);
  17115. }
  17116. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  17117. .taskJson[index].toolChoose[i].preTime
  17118. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17119. .toolChoose[i].preTime
  17120. : "";
  17121. this.timeDialogVisible = true;
  17122. } else if (t == 15) {
  17123. this.answerQ = "";
  17124. this.questionAnswer = "";
  17125. if (this.answerCount > 0) {
  17126. this.updateCount(this.answerCount, t);
  17127. } else {
  17128. this.answerCount++;
  17129. a = this.answerCount;
  17130. this.toolsCount(a, t);
  17131. }
  17132. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17133. .taskJson[index].toolChoose[i].answerQ
  17134. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17135. .toolChoose[i].answerQ
  17136. : "";
  17137. this.answerDialogVisible = true;
  17138. } else if (t == 21) {
  17139. window.parent.postMessage({ tools: "21" }, "*");
  17140. } else if (t == 22) {
  17141. window.parent.postMessage({ tools: "22" }, "*");
  17142. } else if (t == 23) {
  17143. window.parent.postMessage({ tools: "23" }, "*");
  17144. } else if (t == 24) {
  17145. window.parent.postMessage({ tools: "24" }, "*");
  17146. } else if (t == 25) {
  17147. window.parent.postMessage({ tools: "25" }, "*");
  17148. } else if (t == 31) {
  17149. window.parent.postMessage({ tools: "31" }, "*");
  17150. } else if (t == 28) {
  17151. window.parent.postMessage({ tools: "28" }, "*");
  17152. } else if (t == 37) {
  17153. window.parent.postMessage({ tools: "37" }, "*");
  17154. } else if (t == 38) {
  17155. window.parent.postMessage({ tools: "38" }, "*");
  17156. } else if (t == 39) {
  17157. window.parent.postMessage({ tools: "39" }, "*");
  17158. } else if (t == 32) {
  17159. window.parent.postMessage({ tools: "32" }, "*");
  17160. } else if (t == 66) {
  17161. window.parent.postMessage({ tools: "66" }, "*");
  17162. } else if (t == 67) {
  17163. window.parent.postMessage({ tools: "67" }, "*");
  17164. } else if (t == 68) {
  17165. window.parent.postMessage({ tools: "68" }, "*");
  17166. } else if (t == 57) {
  17167. // window.parent.postMessage({ tools: "57" }, "*");
  17168. window.parent.postMessage(
  17169. {
  17170. tools: "57u",
  17171. cid: this.id,
  17172. stage: this.courseType,
  17173. task: this.taskCount,
  17174. tool: i,
  17175. },
  17176. "*"
  17177. );
  17178. } else if (t == 58) {
  17179. window.parent.postMessage({ tools: "58" }, "*");
  17180. } else if (t == 59) {
  17181. window.parent.postMessage({ tools: "59" }, "*");
  17182. } else if (t == 60) {
  17183. window.parent.postMessage({ tools: "60" }, "*");
  17184. } else if (t == 61) {
  17185. window.parent.postMessage({ tools: "61" }, "*");
  17186. } else if (t == 63) {
  17187. window.parent.postMessage({ tools: "63" }, "*");
  17188. } else if (t == 69) {
  17189. if (this.worksStudent[i].length) {
  17190. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17191. if (this.userid == this.worksStudent[i][k].userid) {
  17192. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  17193. break;
  17194. } else {
  17195. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17196. }
  17197. }
  17198. } else {
  17199. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17200. }
  17201. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  17202. .taskJson[index].toolChoose[i].englishList
  17203. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17204. .toolChoose[i].englishList
  17205. : {};
  17206. this.englishToolIndex = i;
  17207. this.engDialogVisible = true;
  17208. } else if (t == 65) {
  17209. if (this.tType == 2) {
  17210. this.$message.error("不支持学生使用");
  17211. return;
  17212. }
  17213. this.uploadCid = this.tcid;
  17214. if (!this.uploadCid) {
  17215. this.$message.error(
  17216. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  17217. );
  17218. return;
  17219. }
  17220. this.selectPickStudent();
  17221. } else if (t == 26) {
  17222. window.parent.postMessage(
  17223. {
  17224. tools: "26",
  17225. cid: this.id,
  17226. stage: this.courseType,
  17227. task: this.taskCount,
  17228. tool: i,
  17229. },
  17230. "*"
  17231. );
  17232. } else if (t == 40) {
  17233. if (this.evalCount > 0) {
  17234. this.updateCount(this.evalCount, t);
  17235. } else {
  17236. this.evalCount++;
  17237. a = this.evalCount;
  17238. this.toolsCount(a, t);
  17239. }
  17240. this.eScore = { eBzText: "", eStar: [] };
  17241. if (this.worksStudent[i].length) {
  17242. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17243. if (this.userid == this.worksStudent[i][k].userid) {
  17244. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17245. this.rateJson =
  17246. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17247. index
  17248. ].toolChoose[i].rateJson;
  17249. break;
  17250. } else {
  17251. this.rateJson =
  17252. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17253. index
  17254. ].toolChoose[i].rateJson;
  17255. }
  17256. }
  17257. } else {
  17258. this.rateJson =
  17259. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17260. index
  17261. ].toolChoose[i].rateJson;
  17262. }
  17263. this.isStar = false;
  17264. this.studentEvalDialogVisible = true;
  17265. } else if (t == 41) {
  17266. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17267. .taskJson[index].toolChoose[i].selectJson
  17268. ? JSON.parse(
  17269. JSON.stringify(
  17270. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17271. index
  17272. ].toolChoose[i].selectJson
  17273. )
  17274. )
  17275. : { url: "", select: [], answer: [] };
  17276. if (this.worksStudent[i].length) {
  17277. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17278. if (this.userid == this.worksStudent[i][k].userid) {
  17279. var a = this.worksStudent[i][k].works.split(",");
  17280. for (var ki = 0; ki < a.length; ki++) {
  17281. a[ki] = parseInt(a[ki]);
  17282. }
  17283. this.selectAnswer = {
  17284. answer: a,
  17285. stu: this.worksStudent[i][k].sName,
  17286. };
  17287. break;
  17288. } else {
  17289. this.selectAnswer = { answer: [], stu: "" };
  17290. }
  17291. }
  17292. } else {
  17293. this.selectAnswer = { answer: [], stu: "" };
  17294. }
  17295. this.isSelect = false;
  17296. this.dialogVisibleSelect = true;
  17297. } else if (t == 44) {
  17298. window.parent.postMessage({ tools: "44" }, "*");
  17299. } else if (t == 47) {
  17300. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17301. .taskJson[index].toolChoose[i].sentenceList
  17302. ? JSON.parse(
  17303. JSON.stringify(
  17304. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17305. index
  17306. ].toolChoose[i].sentenceList
  17307. )
  17308. )
  17309. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17310. for (var q = 0; q < this.sentenceList.length; q++) {
  17311. this.sentenceList[q].chooseSenList = [];
  17312. this.sentenceList[q].addChangeSen = [];
  17313. this.sentenceList[q].addChangeSen = JSON.parse(
  17314. JSON.stringify(this.sentenceList[q].addSentence)
  17315. );
  17316. this.sentenceList[q].chooseSenList.length =
  17317. this.sentenceList[q].rightAnswer.length;
  17318. }
  17319. this.dialogVisibleSentence = true;
  17320. } else if (t == 48) {
  17321. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17322. .taskJson[index].toolChoose[i].tableJson
  17323. ? JSON.parse(
  17324. JSON.stringify(
  17325. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17326. index
  17327. ].toolChoose[i].tableJson
  17328. )
  17329. )
  17330. : { text: "" };
  17331. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  17332. if (this.worksStudent[i].length) {
  17333. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17334. if (this.userid == this.worksStudent[i][k].userid) {
  17335. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17336. break;
  17337. }
  17338. }
  17339. }
  17340. this.dialogVisibleTable = true;
  17341. } else if (t == 52) {
  17342. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17343. .taskJson[index].toolChoose[i].wordJson
  17344. ? JSON.parse(
  17345. JSON.stringify(
  17346. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17347. index
  17348. ].toolChoose[i].wordJson
  17349. )
  17350. )
  17351. : { text: "" };
  17352. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  17353. if (this.worksStudent[i].length) {
  17354. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17355. if (this.userid == this.worksStudent[i][k].userid) {
  17356. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17357. break;
  17358. }
  17359. }
  17360. }
  17361. this.dialogVisibleWord = true;
  17362. } else if (t == 49) {
  17363. this.groupJson =
  17364. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17365. index
  17366. ].toolChoose[i].groupJson;
  17367. this.islock = this.groupJson.islock == 1 ? true : false;
  17368. this.dialogVisibleGroup = true;
  17369. } else if (t == 62) {
  17370. this.videoJson =
  17371. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17372. index
  17373. ].toolChoose[i].videoJson;
  17374. this.dialogVisibleVideo = true;
  17375. }
  17376. },
  17377. teacherWorkSubmit(t, i, index, s) {
  17378. this.sStudent = s;
  17379. this.toolindex = i;
  17380. this.sTool = t;
  17381. if (this.tType !== "1" && this.tType !== "4") {
  17382. return;
  17383. }
  17384. if (t == 16 || t == 32 || t == 50) {
  17385. this.dialogVisibleWorks = true;
  17386. } else if (t == 15) {
  17387. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17388. .taskJson[index].toolChoose[i].answerQ
  17389. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17390. .toolChoose[i].answerQ
  17391. : "";
  17392. this.questionAnswer = "";
  17393. this.answerDialogVisibleTeacher = true; //问答
  17394. } else if (t == 52) {
  17395. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17396. .taskJson[index].toolChoose[i].wordJson
  17397. ? JSON.parse(
  17398. JSON.stringify(
  17399. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17400. index
  17401. ].toolChoose[i].wordJson
  17402. )
  17403. )
  17404. : { text: "" };
  17405. if (this.worksStudent[i].length) {
  17406. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17407. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17408. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17409. break;
  17410. }
  17411. }
  17412. }
  17413. this.dialogVisibleWordTeacher = true; //文档
  17414. } else if (t == 4) {
  17415. this.radio = [];
  17416. this.noteName = "";
  17417. this.isAnswer = false;
  17418. if (this.askCount > 0) {
  17419. this.updateCount(this.askCount, t);
  17420. } else {
  17421. this.askCount++;
  17422. a = this.askCount;
  17423. this.toolsCount(a, t);
  17424. }
  17425. if (!this.dialogVisible2) {
  17426. this.askJson.askJson =
  17427. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17428. index
  17429. ].toolChoose[i].askJson;
  17430. this.askJson.askTitle =
  17431. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17432. index
  17433. ].toolChoose[i].askTitle;
  17434. this.askJson.askCount =
  17435. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17436. index
  17437. ].toolChoose[i].askCount;
  17438. } else {
  17439. this.askJson.askJson = this.chapTools.askJson.askJson;
  17440. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17441. this.askJson.askCount = this.chapTools.askJson.askCount;
  17442. }
  17443. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17444. if (this.askJson.askJson[k].type == "2") {
  17445. this.radio.push([]);
  17446. } else {
  17447. this.radio.push("");
  17448. }
  17449. }
  17450. this.dialogVisible5Teacher = true;
  17451. } else if (t == 45) {
  17452. this.noteName = "";
  17453. this.radio = [];
  17454. this.isAnswer = false;
  17455. if (this.askCount > 0) {
  17456. this.updateCount(this.askCount, t);
  17457. } else {
  17458. this.askCount++;
  17459. a = this.askCount;
  17460. this.toolsCount(a, t);
  17461. }
  17462. this.testJson =
  17463. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17464. index
  17465. ].toolChoose[i].testJson;
  17466. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17467. if (this.testJson.testJson[k].type == "2") {
  17468. this.radio.push([]);
  17469. } else {
  17470. this.radio.push("");
  17471. }
  17472. }
  17473. this.dialogVisibleChoiceTeacher = true;
  17474. } else if (t == 41) {
  17475. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17476. .taskJson[index].toolChoose[i].selectJson
  17477. ? JSON.parse(
  17478. JSON.stringify(
  17479. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17480. index
  17481. ].toolChoose[i].selectJson
  17482. )
  17483. )
  17484. : { url: "", select: [], answer: [] };
  17485. if (this.worksStudent[i].length) {
  17486. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17487. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17488. var a = this.worksStudent[i][k].works.split(",");
  17489. for (var ki = 0; ki < a.length; ki++) {
  17490. a[ki] = parseInt(a[ki]);
  17491. }
  17492. this.selectAnswer = {
  17493. answer: a,
  17494. stu: this.worksStudent[i][k].sName,
  17495. };
  17496. break;
  17497. } else {
  17498. this.selectAnswer = { answer: [], stu: "" };
  17499. }
  17500. }
  17501. } else {
  17502. this.selectAnswer = { answer: [], stu: "" };
  17503. }
  17504. this.isSelect = false;
  17505. this.dialogVisibleSelectTeacher = true;
  17506. } else if (t == 47) {
  17507. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17508. .taskJson[index].toolChoose[i].sentenceList
  17509. ? JSON.parse(
  17510. JSON.stringify(
  17511. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17512. index
  17513. ].toolChoose[i].sentenceList
  17514. )
  17515. )
  17516. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17517. for (var q = 0; q < this.sentenceList.length; q++) {
  17518. this.sentenceList[q].chooseSenList = [];
  17519. this.sentenceList[q].addChangeSen = [];
  17520. this.sentenceList[q].addChangeSen = JSON.parse(
  17521. JSON.stringify(this.sentenceList[q].addSentence)
  17522. );
  17523. this.sentenceList[q].chooseSenList.length =
  17524. this.sentenceList[q].rightAnswer.length;
  17525. }
  17526. this.dialogVisibleSentenceTeacher = true;
  17527. } else if (t == 48) {
  17528. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17529. .taskJson[index].toolChoose[i].tableJson
  17530. ? JSON.parse(
  17531. JSON.stringify(
  17532. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17533. index
  17534. ].toolChoose[i].tableJson
  17535. )
  17536. )
  17537. : { text: "" };
  17538. if (this.worksStudent[i].length) {
  17539. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17540. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17541. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17542. break;
  17543. }
  17544. }
  17545. }
  17546. this.dialogVisibleTableTeacher = true;
  17547. } else if (t == 40) {
  17548. if (this.evalCount > 0) {
  17549. this.updateCount(this.evalCount, t);
  17550. } else {
  17551. this.evalCount++;
  17552. a = this.evalCount;
  17553. this.toolsCount(a, t);
  17554. }
  17555. this.eScore = { eBzText: "", eStar: [] };
  17556. if (this.worksStudent[i].length) {
  17557. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17558. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17559. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17560. this.rateJson =
  17561. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17562. index
  17563. ].toolChoose[i].rateJson;
  17564. break;
  17565. } else {
  17566. this.rateJson =
  17567. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17568. index
  17569. ].toolChoose[i].rateJson;
  17570. }
  17571. }
  17572. } else {
  17573. this.rateJson =
  17574. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17575. index
  17576. ].toolChoose[i].rateJson;
  17577. }
  17578. this.isStar = false;
  17579. this.studentEvalDialogVisibleTeacher = true;
  17580. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17581. window.parent.postMessage(
  17582. {
  17583. tools: t + "teacher",
  17584. cid: this.id,
  17585. stage: this.courseType,
  17586. task: this.taskCount,
  17587. tool: i,
  17588. student: this.sStudent,
  17589. },
  17590. "*"
  17591. );
  17592. }
  17593. },
  17594. openCocoPi(tool, i, uid, uname) {
  17595. let student = {
  17596. userid: uid,
  17597. student: uname,
  17598. };
  17599. if (tool == 57) {
  17600. window.parent.postMessage(
  17601. {
  17602. tools: tool + "teacher",
  17603. cid: this.id,
  17604. stage: this.courseType,
  17605. task: this.taskCount,
  17606. tool: i,
  17607. student: student,
  17608. },
  17609. "*"
  17610. );
  17611. }
  17612. },
  17613. setRightAnswer(s, i, j) {
  17614. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17615. if (
  17616. this.sentenceList[i].chooseSenList[q] == undefined ||
  17617. this.sentenceList[i].chooseSenList[q] == ""
  17618. ) {
  17619. this.sentenceList[i].chooseSenList[q] = s;
  17620. this.sentenceList[i].addChangeSen[j] = "";
  17621. break;
  17622. }
  17623. }
  17624. this.$forceUpdate();
  17625. },
  17626. returnCard(r, i, j) {
  17627. var a = this.sentenceList[i].addSentence.indexOf(r);
  17628. this.sentenceList[i].chooseSenList[j] = "";
  17629. this.sentenceList[i].addChangeSen[a] = r;
  17630. this.$forceUpdate();
  17631. },
  17632. // addSentenceTool() {
  17633. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17634. // this.taskCount
  17635. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17636. // this.sentenceList = [
  17637. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17638. // ];
  17639. // this.dialogVisibleSentence = false;
  17640. // },
  17641. toolsCount(a, t) {
  17642. let params = {
  17643. cid: this.id,
  17644. chid: this.courseType,
  17645. uid: this.userid,
  17646. tid: t,
  17647. count: a,
  17648. };
  17649. this.ajax
  17650. .get(this.$store.state.api + "insertToolsCount", params)
  17651. .then((res) => {
  17652. this.selectCount();
  17653. })
  17654. .catch((err) => {
  17655. console.error(err);
  17656. });
  17657. },
  17658. updateCount(c, t) {
  17659. c++;
  17660. let params = {
  17661. cid: this.id,
  17662. chid: this.courseType,
  17663. uid: this.userid,
  17664. tid: t,
  17665. count: c,
  17666. };
  17667. this.ajax
  17668. .get(this.$store.state.api + "updateToolsCount", params)
  17669. .then((res) => {
  17670. this.selectCount();
  17671. })
  17672. .catch((err) => {
  17673. console.error(err);
  17674. });
  17675. },
  17676. checkEva() {
  17677. if (this.evalua != "") {
  17678. for (var i = 0; i < this.evaJuri.length; i++) {
  17679. if (this.evalua == this.evaJuri[i].id) {
  17680. this.eTitle = this.evaJuri[i].title;
  17681. this.eJson = JSON.parse(this.evaJuri[i].content);
  17682. }
  17683. }
  17684. this.$forceUpdate();
  17685. setTimeout(() => {
  17686. this.setMindData();
  17687. }, 0);
  17688. }
  17689. },
  17690. selectEva() {
  17691. let params = {
  17692. oid: this.oid,
  17693. };
  17694. this.ajax
  17695. .get(this.$store.state.api + "selectAllEvaluation", params)
  17696. .then((res) => {
  17697. this.evaJuri = res.data[0];
  17698. })
  17699. .catch((err) => {
  17700. console.error(err);
  17701. });
  17702. },
  17703. setMindData() {
  17704. this.data.data = [];
  17705. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  17706. let _eJson = Object.keys(this.eJson);
  17707. let _e = this.eJson;
  17708. for (let i = 0; i < _eJson.length; i++) {
  17709. let element = _e[_eJson[i]];
  17710. this.data.data.push({
  17711. id: element.id,
  17712. parentid: "root",
  17713. topic: element.name,
  17714. });
  17715. let _eJsonc = Object.keys(element.child);
  17716. let _e2 = element.child;
  17717. for (let j = 0; j < _eJsonc.length; j++) {
  17718. let _ec = _e2[_eJsonc[j]];
  17719. this.data.data.push({
  17720. id: _ec.id,
  17721. parentid: element.id,
  17722. topic: _ec.name,
  17723. });
  17724. let _eJsonz = Object.keys(_ec.child);
  17725. let _e3 = _ec.child;
  17726. for (let z = 0; z < _eJsonz.length; z++) {
  17727. let _ez = _e3[_eJsonz[z]];
  17728. this.data.data.push({
  17729. id: _ez.id,
  17730. parentid: _ec.id,
  17731. topic: _ez.name,
  17732. });
  17733. }
  17734. }
  17735. }
  17736. this.$forceUpdate();
  17737. },
  17738. checkFileFull(type, url) {
  17739. this.fullDialogVisible = true;
  17740. this.fulltype = type;
  17741. this.fullUrl = url;
  17742. },
  17743. checkFileFull1(t, f) {
  17744. this.fullDialogVisible = true;
  17745. if (t == 6) {
  17746. this.fulltype = 1;
  17747. this.fullUrl = JSON.parse(JSON.stringify(f));
  17748. } else if (t == 8) {
  17749. this.fulltype = 2;
  17750. this.fullUrl = f.url;
  17751. } else if (
  17752. t == 3 &&
  17753. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17754. "PDF"
  17755. ) {
  17756. this.fulltype = 3;
  17757. this.fullUrl = f.url;
  17758. } else if (t == 3) {
  17759. this.fulltype = 2;
  17760. this.fullUrl =
  17761. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  17762. }
  17763. },
  17764. openSname(n, id, i, uid) {
  17765. this.snameWid = id;
  17766. this.worksSName = n;
  17767. this.worksSid = uid == n ? "" : uid;
  17768. this.toolindex = i;
  17769. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17770. if (!this.uploadCid) {
  17771. this.$message.error(
  17772. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17773. );
  17774. return;
  17775. }
  17776. this.selectUploadStudent(1);
  17777. },
  17778. updateName() {
  17779. let params = {
  17780. n: this.worksSName,
  17781. cid: this.snameWid,
  17782. };
  17783. this.ajax
  17784. .get(this.$store.state.api + "updateCourseWorksName", params)
  17785. .then((res) => {
  17786. this.$message({
  17787. message: "修改成功",
  17788. type: "success",
  17789. });
  17790. this.dialogVisibleSname = false;
  17791. this.getCourseDetail(2);
  17792. this.snameWid = "";
  17793. this.worksSName = "";
  17794. })
  17795. .catch((err) => {
  17796. console.error(err);
  17797. });
  17798. },
  17799. downloadFile2(f) {
  17800. // const loading = this.$loading.service({
  17801. // background: "rgba(255, 255, 255, 0.7)",
  17802. // target: document.body,
  17803. // text: "文件加载中...",
  17804. // });
  17805. // let url2 = f.url;
  17806. // let _url2 = "";
  17807. // if (
  17808. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17809. // ) {
  17810. // _url2 = url2.split(
  17811. // "https://view.officeapps.live.com/op/view.aspx?src="
  17812. // )[1];
  17813. // } else {
  17814. // _url2 = url2;
  17815. // }
  17816. // let params = {
  17817. // url: _url2,
  17818. // name: f.name,
  17819. // };
  17820. // this.ajax
  17821. // .get(this.$store.state.api + "download", params)
  17822. // .then((res) => {
  17823. // loading.close();
  17824. // let content = res.data.data.data;
  17825. // let ab = new ArrayBuffer(content.length);
  17826. // let view = new Uint8Array(ab);
  17827. // for (var i = 0; i < content.length; ++i) {
  17828. // view[i] = content[i];
  17829. // }
  17830. // let elink = document.createElement("a");
  17831. // elink.download = f.name;
  17832. // elink.style.display = "none";
  17833. // let blob = new Blob([ab], {
  17834. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  17835. // });
  17836. // elink.href = URL.createObjectURL(blob);
  17837. // document.body.appendChild(elink);
  17838. // elink.click();
  17839. // document.body.removeChild(elink);
  17840. // })
  17841. // .catch((err) => {
  17842. // loading.close();
  17843. // console.error(err);
  17844. // });
  17845. let url = f.url;
  17846. let _this = this;
  17847. let _url = "";
  17848. if (
  17849. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17850. ) {
  17851. _url = url.split(
  17852. "https://view.officeapps.live.com/op/view.aspx?src="
  17853. )[1];
  17854. } else {
  17855. _url = url;
  17856. }
  17857. const loading = _this.$loading.service({
  17858. background: "rgba(255, 255, 255, 0.7)",
  17859. target: document.body,
  17860. text: "文件加载中...",
  17861. });
  17862. let x = new XMLHttpRequest();
  17863. x.open("GET", _url, true);
  17864. x.responseType = "blob";
  17865. x.onload = function () {
  17866. loading.close();
  17867. let url = window.URL.createObjectURL(new Blob([x.response]));
  17868. let a = document.createElement("a");
  17869. a.name = f.name;
  17870. a.href = url;
  17871. a.download = f.name;
  17872. a.click();
  17873. };
  17874. x.send();
  17875. },
  17876. downloadFile(url) {
  17877. let _this = this;
  17878. let _url = "";
  17879. if (
  17880. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17881. ) {
  17882. _url = url.split(
  17883. "https://view.officeapps.live.com/op/view.aspx?src="
  17884. )[1];
  17885. } else {
  17886. _url = url;
  17887. }
  17888. const x = new XMLHttpRequest();
  17889. x.open("GET", _url, true);
  17890. x.responseType = "blob";
  17891. const loading = _this.$loading.service({
  17892. background: "rgba(255, 255, 255, 0.7)",
  17893. target: document.body,
  17894. text: "文件加载中...",
  17895. });
  17896. // _this.$message.success("文件下载中...");
  17897. x.onload = function (e) {
  17898. loading.close();
  17899. let content = x.response;
  17900. let elink = document.createElement("a");
  17901. elink.download = decodeURI(
  17902. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17903. );
  17904. elink.style.display = "none";
  17905. let blob = new Blob([content]);
  17906. elink.href = URL.createObjectURL(blob);
  17907. document.body.appendChild(elink);
  17908. elink.click();
  17909. document.body.removeChild(elink);
  17910. };
  17911. x.send();
  17912. },
  17913. openLine(url) {
  17914. window.open(url);
  17915. },
  17916. resize() {
  17917. if (document.getElementsByClassName("box_course").length) {
  17918. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17919. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17920. if (this.showType == 2 || this.showType == 3) {
  17921. document.getElementsByClassName("navBox")[0].style.height =
  17922. a - 40 + 46 + "px";
  17923. } else {
  17924. document.getElementsByClassName("navBox")[0].style.height =
  17925. a - 40 + "px";
  17926. }
  17927. }
  17928. this.Stbodywidth =
  17929. document.getElementsByClassName("student_body").length &&
  17930. document.getElementsByClassName("student_body")[0].offsetWidth;
  17931. },
  17932. closeDraw() {
  17933. this.bg = null;
  17934. this.drawShow = false;
  17935. },
  17936. showPicturePaint(url) {
  17937. let params = {
  17938. img: url,
  17939. };
  17940. this.ajax
  17941. .get(this.$store.state.api + "imgToBase64", params)
  17942. .then((res) => {
  17943. this.drawShow = true;
  17944. this.bg = res.data[0].img;
  17945. })
  17946. .catch((err) => {
  17947. console.error(err);
  17948. });
  17949. },
  17950. addImgDraw(base64) {
  17951. let file = { name: "批注图.png" };
  17952. let img = this.dataUrlToFile(base64, file);
  17953. this.beforeUpload1(img, 5);
  17954. },
  17955. addImgDrawImG(url) {
  17956. // console.log(url);
  17957. let params = [
  17958. {
  17959. wid: this.commentDetail.wid,
  17960. img: url,
  17961. },
  17962. ];
  17963. this.ajax
  17964. .post(this.$store.state.api + "updateCourseWorks", params)
  17965. .then((res) => {
  17966. this.$message({
  17967. message: "提交成功",
  17968. type: "success",
  17969. });
  17970. this.drawShow = false;
  17971. this.bg = "";
  17972. this.selectSWorks();
  17973. this.selectStudent();
  17974. })
  17975. .catch((err) => {
  17976. this.$message.error("提交失败");
  17977. console.error(err);
  17978. });
  17979. },
  17980. deletePicturePaint() {
  17981. this.$confirm("确定删除此批注吗?", "提示", {
  17982. confirmButtonText: "确定",
  17983. cancelButtonText: "取消",
  17984. type: "warning",
  17985. })
  17986. .then(() => {
  17987. let params = [
  17988. {
  17989. wid: this.commentDetail.wid,
  17990. img: "",
  17991. },
  17992. ];
  17993. this.ajax
  17994. .post(this.$store.state.api + "updateCourseWorks", params)
  17995. .then((res) => {
  17996. this.$message({
  17997. message: "删除成功",
  17998. type: "success",
  17999. });
  18000. this.selectSWorks();
  18001. this.selectStudent();
  18002. })
  18003. .catch((err) => {
  18004. this.$message.error("删除失败");
  18005. console.error(err);
  18006. });
  18007. })
  18008. .catch(() => {});
  18009. },
  18010. getAudioVideo(constraintsData) {
  18011. if (navigator.mediaDevices === undefined) {
  18012. navigator.mediaDevices = {};
  18013. }
  18014. if (navigator.mediaDevices.getUserMedia === undefined) {
  18015. navigator.mediaDevices.getUserMedia = function (constraints) {
  18016. // 首先,如果有getUserMedia的话,就获得它
  18017. var getUserMedia =
  18018. navigator.getUserMedia ||
  18019. navigator.webkitGetUserMedia ||
  18020. navigator.mozGetUserMedia ||
  18021. navigator.msGetUserMedia;
  18022. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  18023. if (!getUserMedia) {
  18024. return Promise.reject({ code: 404 });
  18025. }
  18026. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  18027. return new Promise(function (resolve, reject) {
  18028. getUserMedia.call(navigator, constraints, resolve, reject);
  18029. });
  18030. };
  18031. }
  18032. return navigator.mediaDevices.getUserMedia(constraintsData);
  18033. },
  18034. /**
  18035. * 开始录制
  18036. */
  18037. startRecording(callback) {
  18038. let _function = (screenStream) => {
  18039. this.addStreamStopListener(screenStream, () => {
  18040. console.log("流停止监听");
  18041. this.stopRecording();
  18042. this.$emit("streamStop", {});
  18043. // this.stopRecording();
  18044. });
  18045. var options = {
  18046. type: "video",
  18047. mimeType: "video/webm",
  18048. disableLogs: false,
  18049. getNativeBlob: false, // enable it for longer recordings
  18050. ignoreMutedMedia: false,
  18051. };
  18052. // this.video.srcObject = screenStream;
  18053. this.recorder = RecordRTC(screenStream, options);
  18054. this.recorder.startRecording();
  18055. this.recorder.screen = screenStream;
  18056. this.videoStart = true;
  18057. // callback(true);
  18058. };
  18059. this.getAudioVideo({ audio: true })
  18060. .then((res) => {
  18061. this.captureScreen(_function, true);
  18062. console.log("已点击允许,开启成功");
  18063. })
  18064. .catch((err) => {
  18065. // console.log('浏览器不支持,请更换浏览器')
  18066. // } else {
  18067. this.captureScreen(_function, false);
  18068. console.log("请检查是否存在麦克风");
  18069. });
  18070. },
  18071. /**
  18072. * 停止录制
  18073. */
  18074. stopRecording(callback) {
  18075. this.recorder.stopRecording(() => {
  18076. // this.video.src = this.video.srcObject = null;
  18077. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  18078. const url = URL.createObjectURL(this.recorder.getBlob());
  18079. const a = document.createElement("a"); //this.fileName+
  18080. let videoFile = new File(
  18081. [this.recorder.getBlob()],
  18082. this.courseDetail.title + "录屏.mp4",
  18083. {
  18084. type: "video/mp4",
  18085. }
  18086. );
  18087. let downloadUrl = URL.createObjectURL(videoFile);
  18088. document.body.appendChild(a);
  18089. a.style.display = "none";
  18090. a.href = url;
  18091. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  18092. a.click();
  18093. this.recorder.screen.stop();
  18094. this.recorder.destroy();
  18095. this.recorder = null;
  18096. this.videoStart = false;
  18097. // callback(false);
  18098. });
  18099. },
  18100. //初始化
  18101. captureScreen(callback, type) {
  18102. if (navigator.getDisplayMedia) {
  18103. //录制结束,文件下载
  18104. navigator
  18105. .getDisplayMedia({
  18106. video: true,
  18107. })
  18108. .then((screenStream) => {
  18109. if (type) {
  18110. navigator.mediaDevices
  18111. .getUserMedia({ audio: true })
  18112. .then((mic) => {
  18113. screenStream.addTrack(mic.getTracks()[0]);
  18114. callback(screenStream);
  18115. });
  18116. } else {
  18117. callback(screenStream);
  18118. }
  18119. })
  18120. .catch(function (error) {
  18121. console.log("error", error);
  18122. });
  18123. } else if (navigator.mediaDevices.getDisplayMedia) {
  18124. navigator.mediaDevices
  18125. .getDisplayMedia({
  18126. video: true,
  18127. })
  18128. .then((screenStream) => {
  18129. if (type) {
  18130. navigator.mediaDevices
  18131. .getUserMedia({ audio: true })
  18132. .then((mic) => {
  18133. screenStream.addTrack(mic.getTracks()[0]);
  18134. callback(screenStream);
  18135. });
  18136. } else {
  18137. callback(screenStream);
  18138. }
  18139. })
  18140. .catch(function (error) {
  18141. console.log("error", error);
  18142. });
  18143. } else {
  18144. var error = "getDisplayMedia API are not supported in this browser.";
  18145. console.log("error", error);
  18146. alert(error);
  18147. }
  18148. },
  18149. //流监听
  18150. addStreamStopListener(stream, callback) {
  18151. stream.addEventListener(
  18152. "ended",
  18153. function () {
  18154. callback();
  18155. callback = function () {};
  18156. },
  18157. false
  18158. );
  18159. stream.addEventListener(
  18160. "inactive",
  18161. function () {
  18162. callback();
  18163. callback = function () {};
  18164. },
  18165. false
  18166. );
  18167. stream.getTracks().forEach(function (track) {
  18168. track.addEventListener(
  18169. "ended",
  18170. function () {
  18171. callback();
  18172. callback = function () {};
  18173. },
  18174. false
  18175. );
  18176. track.addEventListener(
  18177. "inactive",
  18178. function () {
  18179. callback();
  18180. callback = function () {};
  18181. },
  18182. false
  18183. );
  18184. });
  18185. },
  18186. updateGroup() {
  18187. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18188. this.dialogVisibleGroup2 = true;
  18189. },
  18190. numberPan() {
  18191. if (
  18192. /[^\d]/.test(this.groupJson.number) ||
  18193. this.groupJson.number < 2 ||
  18194. this.groupJson.number > 10
  18195. ) {
  18196. this.$message.error("请输入2-10的数字");
  18197. this.groupJson.number = "";
  18198. }
  18199. },
  18200. updateGroupJson() {
  18201. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  18202. if (
  18203. this.groupStudentUid[this.toolindex][i].length >
  18204. this.groupJson2.number
  18205. ) {
  18206. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  18207. return;
  18208. }
  18209. }
  18210. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  18211. this.islock = this.groupJson.islock == 1 ? true : false;
  18212. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18213. this.taskCount
  18214. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  18215. let params = [
  18216. {
  18217. cid: this.id,
  18218. chapters: JSON.stringify(this.chapInfoList),
  18219. uid: this.userid,
  18220. unitIndex: this.courseType,
  18221. },
  18222. ];
  18223. this.ajax
  18224. .post(this.$store.state.api + "updateWorkNew4", params)
  18225. .then((res) => {
  18226. this.$message.success("设置成功");
  18227. this.getCourseDetail(2);
  18228. this.dialogVisibleGroup2 = false;
  18229. this.groupJson2 = {};
  18230. this.$forceUpdate();
  18231. })
  18232. .catch((err) => {
  18233. this.$message.error("网络不佳");
  18234. console.error(err);
  18235. });
  18236. },
  18237. lockChair() {
  18238. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18239. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  18240. this.updateGroupJson();
  18241. },
  18242. selectGroup(index) {
  18243. this.getCourseDetail(2, index);
  18244. },
  18245. joinGroup(index) {
  18246. if (this.groupJson.islock == 2) {
  18247. this.$message.error("位置已被锁定,无法加入");
  18248. return;
  18249. }
  18250. if (
  18251. this.groupStudent[this.toolindex][index].length >
  18252. this.groupJson.number ||
  18253. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  18254. ) {
  18255. this.$message.error("位置已满,无法加入");
  18256. return;
  18257. }
  18258. let params = [
  18259. {
  18260. cid: this.id,
  18261. stage: this.courseType,
  18262. task: this.taskCount,
  18263. tool: this.toolindex,
  18264. g: index,
  18265. uid: this.userid,
  18266. },
  18267. ];
  18268. this.ajax
  18269. .post(this.$store.state.api + "joinGroup", params)
  18270. .then((res) => {
  18271. this.$message.success("加入成功");
  18272. this.getCourseDetail(2);
  18273. })
  18274. .catch((err) => {
  18275. this.$message.error("网络不佳");
  18276. console.error(err);
  18277. });
  18278. },
  18279. exitGroup(id) {
  18280. if (this.groupJson.islock == 2) {
  18281. this.$message.error("位置已被锁定,无法退出");
  18282. return;
  18283. }
  18284. let params = [
  18285. {
  18286. gid: id,
  18287. },
  18288. ];
  18289. this.ajax
  18290. .post(this.$store.state.api + "exitGroup", params)
  18291. .then((res) => {
  18292. this.$message.success("退出成功");
  18293. this.getCourseDetail(2);
  18294. })
  18295. .catch((err) => {
  18296. this.$message.error("网络不佳");
  18297. console.error(err);
  18298. });
  18299. },
  18300. groupUpload(index, task, gindex) {
  18301. this.taskCount = task;
  18302. this.toolindex = index;
  18303. this.groupIndex = gindex;
  18304. this.dialogVisibleGroupWork = true;
  18305. },
  18306. updateGroupChair(user) {
  18307. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  18308. el.label = index;
  18309. return index != user.group;
  18310. });
  18311. this.updateGroupUser = user;
  18312. this.dialogVisibleUpdateGroup = true;
  18313. },
  18314. updateChair() {
  18315. if (
  18316. this.groupStudent[this.toolindex][this.checkChair].length >
  18317. this.groupJson.number ||
  18318. this.groupStudent[this.toolindex][this.checkChair].length ==
  18319. this.groupJson.number
  18320. ) {
  18321. this.$message.error("位置已满,无法加入");
  18322. return;
  18323. }
  18324. let params = [
  18325. {
  18326. cid: this.id,
  18327. stage: this.courseType,
  18328. task: this.taskCount,
  18329. tool: this.toolindex,
  18330. g: this.checkChair,
  18331. uid: this.updateGroupUser.userid,
  18332. },
  18333. ];
  18334. this.ajax
  18335. .post(this.$store.state.api + "joinGroup", params)
  18336. .then((res) => {
  18337. this.$message.success("修改成功");
  18338. this.updateGroupUser = {};
  18339. this.checkChair = "";
  18340. this.updateGroupArray = {};
  18341. this.dialogVisibleUpdateGroup = false;
  18342. this.getCourseDetail(2);
  18343. })
  18344. .catch((err) => {
  18345. this.$message.error("网络不佳");
  18346. console.error(err);
  18347. });
  18348. },
  18349. deleteGroupChair(gindex) {
  18350. this.checkDeleteGroup = [];
  18351. this.deleteGroupUser = JSON.parse(
  18352. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  18353. );
  18354. this.deleteGroupArray = this.groupJson.group[gindex];
  18355. this.groupIndex = gindex;
  18356. this.dialogVisibleDeleteGroup = true;
  18357. },
  18358. async deleteChair() {
  18359. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  18360. const gid =
  18361. this.groupStudent[this.toolindex][this.groupIndex][
  18362. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  18363. this.checkDeleteGroup[i]
  18364. )
  18365. ];
  18366. let params = [
  18367. {
  18368. gid: gid.id,
  18369. },
  18370. ];
  18371. var a = await this.deleteChairA(params);
  18372. if (i == this.checkDeleteGroup.length - 1) {
  18373. this.$message.success("退出成功");
  18374. this.dialogVisibleDeleteGroup = false;
  18375. this.deleteGroupUser = [];
  18376. this.deleteGroupArray = {};
  18377. this.groupIndex = "";
  18378. this.checkDeleteGroup = [];
  18379. this.getCourseDetail(2);
  18380. }
  18381. }
  18382. },
  18383. deleteChairA(params) {
  18384. return new Promise((resolve, reject) => {
  18385. this.ajax
  18386. .post(this.$store.state.api + "exitGroup", params)
  18387. .then((res) => {
  18388. resolve(1);
  18389. })
  18390. .catch((err) => {
  18391. this.$message.error("网络不佳");
  18392. console.error(err);
  18393. });
  18394. });
  18395. },
  18396. contract(i) {
  18397. if (this.isCloseList[i].isClose == 0) {
  18398. this.isCloseList[i].isClose = 1;
  18399. } else {
  18400. this.isCloseList[i].isClose = 0;
  18401. }
  18402. this.$forceUpdate();
  18403. },
  18404. openWordCloud(toolindex) {
  18405. let array = [];
  18406. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  18407. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  18408. array.push({ name: works });
  18409. }
  18410. if (this.isGroup) {
  18411. for (var i = 0; i < this.courseGroup.group.length; i++) {
  18412. let works = this.courseGroup.group[i].works[toolindex];
  18413. for (var j = 0; j < works.length; j++) {
  18414. let answer = JSON.parse(works[j].works)[0].answer;
  18415. array.push({ name: answer });
  18416. }
  18417. }
  18418. }
  18419. this.wordCloudData = array;
  18420. this.dialogVisibleWordCloud = true;
  18421. },
  18422. uploadWorks(i) {
  18423. this.$confirm("确定导出作业吗?", "提示", {
  18424. confirmButtonText: "确定",
  18425. cancelButtonText: "取消",
  18426. type: "warning",
  18427. })
  18428. .then(() => {
  18429. const loading = this.$loading.service({
  18430. background: "rgba(255, 255, 255, 0.7)",
  18431. target: document.body,
  18432. text: "文件加载中...",
  18433. });
  18434. const _worksStudent = this.worksStudent;
  18435. let url = [];
  18436. var counts = {};
  18437. for (var l = 0; l < _worksStudent[i].length; l++) {
  18438. var item = _worksStudent[i][l];
  18439. var name = item.sName;
  18440. if (!counts.hasOwnProperty(name)) {
  18441. counts[name] = 0;
  18442. } else {
  18443. counts[name]++;
  18444. }
  18445. if (counts[name] > 0) {
  18446. item.sName += " (" + counts[name] + ")";
  18447. }
  18448. }
  18449. for (var l = 0; l < _worksStudent[i].length; l++) {
  18450. var item = _worksStudent[i][l];
  18451. if (
  18452. item.works.indexOf(
  18453. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  18454. ) !== -1 &&
  18455. item.works.indexOf("img") === -1
  18456. ) {
  18457. url.push({ name: item.sName, url: item.works });
  18458. }
  18459. }
  18460. // var toolList = [
  18461. // { name: "电子白板", tool: 1 },
  18462. // { name: "思维导图", tool: 3 },
  18463. // { name: "协同文档", tool: 6 },
  18464. // { name: "思维网格", tool: 7 },
  18465. // { name: "素材库", tool: 8 },
  18466. // { name: "学习资料", tool: 17 },
  18467. // { name: "便签", tool: 2 },
  18468. // { name: "问卷调查", tool: 4 },
  18469. // { name: "选择题", tool: 45 },
  18470. // { name: "倒计时", tool: 10 },
  18471. // { name: "问答", tool: 15 },
  18472. // { name: "课程设计", tool: 26 },
  18473. // { name: "训练服务器", tool: 18 },
  18474. // { name: "作业提交", tool: 16 },
  18475. // { name: "批量上传", tool: 50 },
  18476. // { name: "AIoT Blockly", tool: 21 },
  18477. // { name: "AI Python", tool: 23 },
  18478. // { name: "AI Blockly", tool: 24 },
  18479. // { name: "目标管理", tool: 25 },
  18480. // { name: "数学画板", tool: 31 },
  18481. // { name: "翻译", tool: 28 },
  18482. // { name: "魔盒识字", tool: 37 },
  18483. // { name: "数学画板", tool: 31 },
  18484. // { name: "24点", tool: 38 },
  18485. // { name: "GeoGebra", tool: 39 },
  18486. // { name: "源码编辑", tool: 32 },
  18487. // { name: "个人评价", tool: 40 },
  18488. // { name: "选择匹配", tool: 41 },
  18489. // { name: "汉字宫", tool: 44 },
  18490. // { name: "排序", tool: 47 },
  18491. // { name: "表格", tool: 48 },
  18492. // { name: "文档", tool: 52 },
  18493. // { name: "学生分组", tool: 49 },
  18494. // { name: "CocoPi", tool: 57 },
  18495. // { name: "模拟驾驶", tool: 58 },
  18496. // { name: "路径搜索", tool: 59 },
  18497. // { name: "深度学习", tool: 60 },
  18498. // { name: "全历史", tool: 61 },
  18499. // { name: "交互视频", tool: 62 },
  18500. // { name: "海龟编程", tool: 63 },
  18501. // { name: "挑人", tool: 65 },
  18502. // { name: "公式编辑", tool: 66 },
  18503. // { name: "分子结构", tool: 67 },
  18504. // { name: "时间轴", tool: 68 },
  18505. // ];
  18506. // var toolName = "";
  18507. // for(var w = 0;w<toolList.length;w++){
  18508. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  18509. // toolName = toolList[w].name;
  18510. // }
  18511. // }
  18512. console.log(url);
  18513. this.downLoadAll(url, loading);
  18514. })
  18515. .catch(() => {});
  18516. },
  18517. downLoadAll(url, loading) {
  18518. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  18519. const zip = new JSZip();
  18520. const cache = {};
  18521. const promises = [];
  18522. data.forEach((item) => {
  18523. const promise = getFile(item.url).then((data) => {
  18524. if (data.data != 1) {
  18525. // 下载文件, 并存成ArrayBuffer对象
  18526. const file_name =
  18527. item.name +
  18528. "." +
  18529. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  18530. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  18531. cache[file_name] = data.data;
  18532. }
  18533. });
  18534. promises.push(promise);
  18535. });
  18536. Promise.all(promises).then(() => {
  18537. zip.generateAsync({ type: "blob" }).then((content) => {
  18538. // 生成二进制流
  18539. FileSaver.saveAs(
  18540. content,
  18541. this.courseDetail.title + "-" + "作业提交工具.zip"
  18542. ); // 利用file-saver保存文件 自定义文件名
  18543. setTimeout(() => {
  18544. loading.close();
  18545. }, 2000);
  18546. });
  18547. });
  18548. },
  18549. pickStudent(stu) {
  18550. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18551. return;
  18552. }
  18553. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18554. confirmButtonText: "确定",
  18555. cancelButtonText: "取消",
  18556. type: "warning",
  18557. })
  18558. .then(() => {
  18559. let params = [
  18560. {
  18561. uid: stu.userid,
  18562. cid: this.id,
  18563. stage: this.courseType,
  18564. task: this.taskCount,
  18565. tool: this.toolindex,
  18566. },
  18567. ];
  18568. this.ajax
  18569. .post(this.$store.state.api + "updateCoursePick", params)
  18570. .then((res) => {
  18571. this.$message.success("操作成功");
  18572. this.getPick();
  18573. })
  18574. .catch((err) => {
  18575. this.$message.error("网络不佳");
  18576. console.error(err);
  18577. });
  18578. })
  18579. .catch(() => {});
  18580. },
  18581. selectUser(){
  18582. let params = {
  18583. userid: this.userid,
  18584. };
  18585. this.ajax
  18586. .get(this.$store.state.api + "selectUser", params)
  18587. .then((res) => {
  18588. this.userMes = res.data[0];
  18589. })
  18590. .catch((err) => {
  18591. console.error(err);
  18592. });
  18593. },
  18594. setEngText(i){
  18595. this.newEngIndex = i;
  18596. this.$forceUpdate();
  18597. },
  18598. addCorrect(){
  18599. this.$confirm("你确定提交批改嘛?", "提示", {
  18600. confirmButtonText: "确定",
  18601. showCancelButton: false,
  18602. closeOnClickModal: false,
  18603. type: "warning",
  18604. })
  18605. .then(() => {
  18606. let params = {
  18607. cid: this.id,
  18608. s: parseInt(this.courseType),
  18609. t: this.taskCount,
  18610. tool: this.toolindex,
  18611. wid: this.engWid,
  18612. c: this.userid,
  18613. w: (this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length) ? JSON.stringify(this.oldEnglishJson1) : JSON.stringify(this.newEnglishList),
  18614. };
  18615. this.ajax
  18616. .get(this.$store.state.api + "addEngC", params)
  18617. .then((res) => {
  18618. this.$message.success("提交成功");
  18619. this.engUpdateDialogVisible = false;
  18620. })
  18621. .catch((err) => {
  18622. console.error(err);
  18623. });
  18624. })
  18625. .catch(() => {});
  18626. },
  18627. selectEngC(id,z){
  18628. let params = {
  18629. workid: id,
  18630. };
  18631. this.ajax
  18632. .get(this.$store.state.api + "selectEngC", params)
  18633. .then((res) => {
  18634. if(res.data[0].length == 0){
  18635. this.newEnglishList.engTitle = z.engTitle;
  18636. this.newEnglishList.engText = z.engText;
  18637. }else{
  18638. var a = res.data[0];
  18639. if(this.userMes[0].type == 2){
  18640. var snum = 0;
  18641. for(var i = 0;i<a.length;i++){
  18642. if(this.userMes[0].userid == a[i].correct){
  18643. this.newEnglishList = JSON.parse(a[i].cWork);
  18644. snum = 1;
  18645. }
  18646. }
  18647. if(snum == 0){
  18648. this.newEnglishList = { engTitle:"",engText:"" };
  18649. this.newEnglishList.engTitle = z.engTitle;
  18650. this.newEnglishList.engText = z.engText;
  18651. }
  18652. }else if(this.userMes[0].type == 1){
  18653. var num = 0;
  18654. for(var w= 0;w<a.length;w++){
  18655. if(this.userMes[0].userid == a[w].correct){
  18656. num = 1;
  18657. }
  18658. }
  18659. if(num == 0){
  18660. this.isNoUserid = true;
  18661. var c = JSON.parse(JSON.stringify(z));
  18662. this.oldEnglishJson1 = c;
  18663. }else{
  18664. this.isNoUserid = false;
  18665. }
  18666. var b = a.sort((item, index) => {
  18667. if (item.correct === this.userMes[0].userid) {
  18668. return -1; // 将a移到前面
  18669. } else if (index.correct === this.userMes[0].userid) {
  18670. return 1; // 将b移到前面
  18671. } else {
  18672. return 0; // 保持默认顺序
  18673. }
  18674. });
  18675. this.newEnglishList1 = b;
  18676. }
  18677. }
  18678. this.engUpdateDialogVisible = true;
  18679. this.$forceUpdate();
  18680. setTimeout(() => {
  18681. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  18682. if(this.newEnglishList1.length > 0){
  18683. if(this.isNoUserid == true){
  18684. this.engListLength = this.newEnglishList1.length + 1;
  18685. this.newEngIndex = -1;
  18686. }else{
  18687. this.engListLength = this.newEnglishList1.length;
  18688. this.newEngIndex = 0;
  18689. }
  18690. }
  18691. }, 500);
  18692. })
  18693. .catch((err) => {
  18694. console.error(err);
  18695. });
  18696. },
  18697. getPick() {
  18698. let params = {
  18699. cid: this.id,
  18700. };
  18701. this.ajax
  18702. .get(this.$store.state.api + "getPick", params)
  18703. .then((res) => {
  18704. let array = [];
  18705. for (var i = 0; i < res.data[0].length; i++) {
  18706. array.push(res.data[0][i].userid);
  18707. }
  18708. this.isPickStudent = array;
  18709. if (array.indexOf(this.userid) !== -1) {
  18710. this.$confirm("你被老师选到啦!", "提示", {
  18711. confirmButtonText: "确定",
  18712. showCancelButton: false,
  18713. closeOnClickModal: false,
  18714. type: "warning",
  18715. })
  18716. .then(() => {
  18717. let pa = [
  18718. {
  18719. uid: this.userid,
  18720. cid: this.id,
  18721. },
  18722. ];
  18723. this.ajax
  18724. .post(this.$store.state.api + "deletePick", pa)
  18725. .then((res) => {
  18726. this.getPick();
  18727. })
  18728. .catch((err) => {
  18729. this.$message.error("网络不佳");
  18730. console.error(err);
  18731. });
  18732. })
  18733. .catch(() => {});
  18734. }
  18735. })
  18736. .catch((err) => {
  18737. this.$message.error("网络不佳");
  18738. console.error(err);
  18739. });
  18740. },
  18741. },
  18742. directives: {
  18743. // 使用局部注册指令的方式
  18744. resize: {
  18745. // 指令的名称
  18746. bind(el, binding) {
  18747. // el为绑定的元素,binding为绑定给指令的对象
  18748. let width = "",
  18749. height = "";
  18750. function isReize() {
  18751. const style = document.defaultView.getComputedStyle(el);
  18752. if (width !== style.width || height !== style.height) {
  18753. binding.value(); // 关键
  18754. }
  18755. width = style.width;
  18756. height = style.height;
  18757. }
  18758. el.__vueSetInterval__ = setInterval(isReize, 300);
  18759. },
  18760. unbind(el) {
  18761. clearInterval(el.__vueSetInterval__);
  18762. },
  18763. },
  18764. },
  18765. beforeDestroy() {
  18766. window.onresize = null;
  18767. clearInterval(this.timer);
  18768. this.timer = null;
  18769. clearInterval(this.opertimer);
  18770. this.opertimer = null;
  18771. },
  18772. computed: {
  18773. contentConvent() {
  18774. return function (c) {
  18775. return c
  18776. ? c
  18777. .replaceAll(/\r\n/g, "<br/>")
  18778. .replaceAll(/\n/g, "<br/>")
  18779. .replaceAll(/\s/g, " &nbsp")
  18780. : "";
  18781. };
  18782. },
  18783. checkUpload() {
  18784. return function () {
  18785. var studentK = [];
  18786. if (this.plworkFile.length > 0) {
  18787. for (var z = 0; z < this.plworkFile.length; z++) {
  18788. studentK.push(this.plworkFile[z].username);
  18789. }
  18790. studentK = studentK.join(",");
  18791. }
  18792. var a = this.uploadStudentJuri.filter((el) => {
  18793. return studentK.indexOf(el.userid) == -1;
  18794. });
  18795. return a;
  18796. };
  18797. },
  18798. getSName() {
  18799. return function (name) {
  18800. var check = name;
  18801. this.uploadStudentJuri.forEach((el) => {
  18802. if (el.userid == check) {
  18803. check = el.name ? el.name : el.username;
  18804. }
  18805. });
  18806. return check;
  18807. };
  18808. },
  18809. getImgList() {
  18810. return function (val) {
  18811. let srcList = []; // 定义一个数组用来接收后面的img地址
  18812. val.replace(
  18813. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  18814. function (match, capture) {
  18815. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  18816. srcList.push(capture);
  18817. }
  18818. );
  18819. return srcList;
  18820. };
  18821. },
  18822. },
  18823. mounted() {
  18824. document.body.addEventListener("click", (e) => {
  18825. if (this.isUpdateToolDetail1) {
  18826. this.updateToolDetail(this.toolDetailIndex);
  18827. }
  18828. });
  18829. if (this.screenType == 2) {
  18830. window.parent.postMessage({ allScreen: 4 }, "*");
  18831. } else if (this.screenType == 3) {
  18832. window.parent.postMessage({ allScreen: 5 }, "*");
  18833. } else if (this.screenType == 1) {
  18834. window.parent.postMessage({ allScreen: 6 }, "*");
  18835. }
  18836. this.setOperationTime();
  18837. this.selectEva();
  18838. this.getCourseDetail();
  18839. this.selectCount();
  18840. this.getHomeWork();
  18841. this.selectUser();
  18842. this.contentDialog = true;
  18843. this.setContent2(true);
  18844. if (this.tType == 4) {
  18845. this.pzDialog = true;
  18846. this.selectPz();
  18847. }
  18848. document.scrollingElement.scrollTop = 0;
  18849. window.addEventListener("resize", () => {
  18850. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18851. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18852. if (this.showType == 2 || this.showType == 3) {
  18853. document.getElementsByClassName("navBox")[0].style.height =
  18854. a - 40 + 46 + "px";
  18855. } else {
  18856. document.getElementsByClassName("navBox")[0].style.height =
  18857. a - 40 + "px";
  18858. }
  18859. });
  18860. let _this = this;
  18861. setTimeout(() => {
  18862. // _this.vedioTime = [];
  18863. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  18864. // _this.vedioTime[i] = document.getElementsByClassName(
  18865. // "vjs-duration-display"
  18866. // )[i].textContent;
  18867. // }
  18868. }, 1000);
  18869. },
  18870. };
  18871. </script>
  18872. <style scoped>
  18873. @media screen and (max-width: 1280px) {
  18874. /* .courseIndex > div:first-child(2) {
  18875. width: 15% !important;
  18876. } */
  18877. /* .navText {
  18878. width: 120px !important;
  18879. } */
  18880. .evaCss {
  18881. flex-direction: column !important;
  18882. align-items: center !important;
  18883. }
  18884. .elist_input {
  18885. width: 90% !important;
  18886. }
  18887. .dialog_diy1 >>> .el-dialog {
  18888. width: 100% !important;
  18889. }
  18890. .rightWidthCss {
  18891. width: 100% !important;
  18892. }
  18893. .dialog_diy3 >>> .el-dialog {
  18894. width: 100% !important;
  18895. }
  18896. .addToolCss {
  18897. right: 0 !important;
  18898. width: 100% !important;
  18899. min-width: unset !important;
  18900. }
  18901. /* .textTitle >>> .el-form-item__label {
  18902. width: 150px !important;
  18903. } */
  18904. /* .stageItemTitle > div:last-child{
  18905. max-width: 50px;
  18906. } */
  18907. }
  18908. .evaCssMax {
  18909. flex-direction: column !important;
  18910. align-items: center !important;
  18911. }
  18912. .dialog_diy >>> .el-dialog {
  18913. margin-top: 10vh !important;
  18914. }
  18915. .body_student {
  18916. width: 77%;
  18917. height: 100%;
  18918. position: absolute;
  18919. left: 22%;
  18920. top: 0;
  18921. }
  18922. .student_head {
  18923. width: 100%;
  18924. margin: 20px auto 0;
  18925. padding-bottom: 20px;
  18926. display: flex;
  18927. flex-direction: column;
  18928. flex-wrap: nowrap;
  18929. align-items: flex-start;
  18930. justify-content: flex-start;
  18931. }
  18932. .pb_left {
  18933. width: 20%;
  18934. margin-right: 10px;
  18935. background: rgb(255, 255, 255);
  18936. position: fixed;
  18937. height: calc(100% - 40px);
  18938. border-radius: 20px;
  18939. padding-bottom: 15px;
  18940. box-sizing: border-box;
  18941. }
  18942. .wheel > img,
  18943. .project > img,
  18944. .star > img,
  18945. .evaluate > img,
  18946. .up_photo > img,
  18947. .chapter_add > img,
  18948. .deleteWord > img,
  18949. .question > img,
  18950. .homework > img {
  18951. width: 100%;
  18952. height: 100%;
  18953. }
  18954. .upCover > img {
  18955. width: 131px;
  18956. height: 69px;
  18957. object-fit: cover;
  18958. }
  18959. .upCover {
  18960. width: calc(100% / 3.5);
  18961. position: relative;
  18962. margin: 0 15px 10px 0;
  18963. display: flex;
  18964. flex-direction: column;
  18965. flex-wrap: nowrap;
  18966. justify-content: center;
  18967. align-content: center;
  18968. align-items: center;
  18969. height: fit-content;
  18970. }
  18971. .upCover2 {
  18972. width: 100%;
  18973. position: relative;
  18974. margin: 0 15px 10px 0;
  18975. display: flex;
  18976. flex-direction: column;
  18977. flex-wrap: nowrap;
  18978. justify-content: center;
  18979. align-content: center;
  18980. align-items: center;
  18981. }
  18982. .upCover2 > img {
  18983. width: 100%;
  18984. height: 90px;
  18985. object-fit: contain;
  18986. }
  18987. .chapter_add {
  18988. width: 120px;
  18989. position: relative;
  18990. text-align: center;
  18991. }
  18992. .isAddThings {
  18993. margin-top: 20px;
  18994. position: relative;
  18995. text-align: center;
  18996. background: #f7f8fa;
  18997. height: 90px;
  18998. width: 90px;
  18999. display: flex;
  19000. flex-direction: column;
  19001. justify-content: center;
  19002. }
  19003. .deleteWord {
  19004. width: 22px;
  19005. height: 22px;
  19006. position: absolute;
  19007. right: -5px;
  19008. top: -5px;
  19009. cursor: pointer;
  19010. }
  19011. .box_course {
  19012. /* width: 60%; */
  19013. width: calc(100% - 300px);
  19014. }
  19015. .wheel {
  19016. width: 100%;
  19017. /* height: 100%; */
  19018. height: 650px;
  19019. }
  19020. .right_box {
  19021. display: flex;
  19022. flex-direction: column;
  19023. margin-left: 30px;
  19024. justify-content: space-around;
  19025. }
  19026. .right_box_title {
  19027. font-size: 23px;
  19028. }
  19029. .people {
  19030. display: flex;
  19031. }
  19032. .student_body {
  19033. width: 100%;
  19034. margin: 0 auto;
  19035. margin-top: 10px;
  19036. padding: 0 0 20px;
  19037. }
  19038. .study_top {
  19039. margin-top: 100px;
  19040. width: 100%;
  19041. height: auto;
  19042. padding-bottom: 20px;
  19043. }
  19044. .study_top .checkbox {
  19045. display: flex;
  19046. align-items: center;
  19047. padding: 15px 0 15px 30px;
  19048. flex: 0 0 auto;
  19049. font-weight: bold;
  19050. border-bottom: 1px solid #eee;
  19051. }
  19052. .study_top .check {
  19053. padding-bottom: 5px;
  19054. text-align: center;
  19055. cursor: pointer;
  19056. height: 30px;
  19057. box-sizing: border-box;
  19058. display: flex;
  19059. }
  19060. .study_top .checked {
  19061. border-bottom: 4px solid #3fc6a0;
  19062. padding-bottom: 5px;
  19063. color: #3fc6a0;
  19064. display: flex;
  19065. height: 35px;
  19066. }
  19067. .study_top .checked > div,
  19068. .study_top .check > div {
  19069. margin-right: 5px;
  19070. }
  19071. .videoTop {
  19072. display: flex;
  19073. flex-direction: row;
  19074. justify-content: space-between;
  19075. background: #fff;
  19076. align-items: center;
  19077. width: 95%;
  19078. padding: 20px;
  19079. }
  19080. .filebox {
  19081. display: flex;
  19082. flex-wrap: wrap;
  19083. flex-direction: column;
  19084. padding: 0 0 5px;
  19085. position: relative;
  19086. }
  19087. .filebox:before {
  19088. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  19089. position: absolute;
  19090. top: 20px;
  19091. left: 13px;
  19092. border-left: 2px dotted #cad1dc;
  19093. height: calc(100% - 15px);
  19094. }
  19095. .toolHeng2 > div:last-child::before {
  19096. height: calc(100% - 43px);
  19097. }
  19098. .filebox .tooldetail {
  19099. width: calc(100% - 280px);
  19100. margin: 0px 12px;
  19101. padding: 12px 25px 0 13px;
  19102. line-height: 30px;
  19103. word-break: break-word;
  19104. background: #ffffff;
  19105. border-radius: 8px 8px 8px 8px;
  19106. opacity: 1;
  19107. border: 1px solid #cad1dc;
  19108. }
  19109. .file {
  19110. display: flex;
  19111. flex-direction: column;
  19112. align-items: center;
  19113. justify-content: center;
  19114. cursor: pointer;
  19115. width: 200px;
  19116. }
  19117. .file div {
  19118. margin-top: 10px;
  19119. width: 150px;
  19120. text-align: center;
  19121. overflow: hidden;
  19122. white-space: nowrap;
  19123. text-overflow: ellipsis;
  19124. }
  19125. .media {
  19126. display: flex;
  19127. flex-direction: column;
  19128. align-items: center;
  19129. justify-content: center;
  19130. margin: 0 20px 20px 0;
  19131. cursor: pointer;
  19132. margin: 12px 0 5px 15px;
  19133. overflow: hidden;
  19134. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  19135. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  19136. box-sizing: border-box;
  19137. }
  19138. .media img {
  19139. height: 90px;
  19140. width: 160px;
  19141. object-fit: cover;
  19142. }
  19143. .media .title {
  19144. padding: 5px;
  19145. text-align: left;
  19146. width: 100%;
  19147. box-sizing: border-box;
  19148. }
  19149. .media .btn {
  19150. width: 100%;
  19151. height: 35px;
  19152. line-height: 35px;
  19153. color: #fff;
  19154. background: #606060;
  19155. text-align: center;
  19156. overflow: hidden;
  19157. white-space: nowrap;
  19158. text-overflow: ellipsis;
  19159. }
  19160. .detail_content_top {
  19161. width: 100%;
  19162. padding: 25px 0 25px 0;
  19163. }
  19164. .detail_title {
  19165. text-align: center;
  19166. font-size: 24px;
  19167. }
  19168. .detail_time {
  19169. font-size: 13px;
  19170. padding: 15px 0 0 40px;
  19171. }
  19172. .detail_content {
  19173. line-height: 2pc;
  19174. width: 90%;
  19175. margin: 0 auto;
  19176. padding-top: 30px;
  19177. text-indent: 30px;
  19178. overflow: auto;
  19179. height: 200px;
  19180. }
  19181. .score_box >>> .el-rate {
  19182. margin-left: 10px;
  19183. }
  19184. .dialog_change >>> .el-dialog {
  19185. border-radius: 5px;
  19186. }
  19187. .dialog_change >>> .el-dialog__header {
  19188. background: #f2f2f2;
  19189. text-align: center;
  19190. }
  19191. .dialog_change >>> .el-dialog__title {
  19192. line-height: 5px;
  19193. }
  19194. .dialog_change >>> .el-dialog__body {
  19195. background: #fff;
  19196. padding: 10px 20px;
  19197. }
  19198. .score_box {
  19199. display: flex;
  19200. align-items: center;
  19201. margin-bottom: 18px;
  19202. margin-top: 20px;
  19203. }
  19204. .up_photo {
  19205. width: 120px;
  19206. cursor: pointer;
  19207. margin-top: 10px;
  19208. }
  19209. .up_photo2 {
  19210. width: 180px;
  19211. box-sizing: border-box;
  19212. min-width: 180px;
  19213. height: 180px;
  19214. max-height: 180px;
  19215. min-height: 180px;
  19216. cursor: pointer;
  19217. display: flex;
  19218. flex-direction: column;
  19219. align-items: center;
  19220. justify-content: center;
  19221. background: rgb(242, 246, 255);
  19222. /* padding: 25px; */
  19223. margin-bottom: 10px;
  19224. }
  19225. .up_photo2 img {
  19226. width: 50%;
  19227. height: auto;
  19228. }
  19229. .up_photo2 span {
  19230. color: #898989;
  19231. }
  19232. .plworkBox {
  19233. display: flex;
  19234. align-items: center;
  19235. margin-top: 10px;
  19236. flex-wrap: wrap;
  19237. }
  19238. .upload_send {
  19239. margin: 30px auto 30px;
  19240. width: 60%;
  19241. background: #3681fc;
  19242. text-align: center;
  19243. height: 35px;
  19244. line-height: 35px;
  19245. color: #fff;
  19246. border-radius: 5px;
  19247. cursor: pointer;
  19248. }
  19249. .marginT {
  19250. margin-top: 20px;
  19251. }
  19252. .cd_content_steps {
  19253. display: flex;
  19254. width: 90%;
  19255. justify-content: space-around;
  19256. border-top: 1px solid #eeeeee;
  19257. }
  19258. .cd_steps_box {
  19259. display: flex;
  19260. justify-content: center;
  19261. align-items: center;
  19262. flex-direction: column;
  19263. cursor: pointer;
  19264. }
  19265. .first {
  19266. display: flex;
  19267. align-items: center;
  19268. margin: 15px 0 20px 0;
  19269. font-size: 20px;
  19270. }
  19271. .first > div:nth-child(2) {
  19272. font-size: 16px !important;
  19273. padding-left: 10px;
  19274. line-height: 26px;
  19275. box-sizing: border-box;
  19276. }
  19277. .blue_box_one {
  19278. text-align: center;
  19279. color: #fff;
  19280. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  19281. border-radius: 7px;
  19282. margin: 10px;
  19283. cursor: pointer;
  19284. width: 95%;
  19285. height: 45px;
  19286. display: flex;
  19287. flex-direction: row;
  19288. justify-content: flex-start;
  19289. align-items: center;
  19290. }
  19291. .blue_box_one > div:nth-child(1) {
  19292. line-height: 30px;
  19293. margin: 0 5px 0 10px;
  19294. width: 30%;
  19295. min-width: 70px;
  19296. border-radius: 4px;
  19297. }
  19298. .blue_box_one > div:nth-child(2) {
  19299. white-space: nowrap;
  19300. text-overflow: ellipsis;
  19301. overflow: hidden;
  19302. word-break: break-all;
  19303. width: 70%;
  19304. text-align: left;
  19305. margin-right: 10px;
  19306. max-width: calc(100% - 85px);
  19307. }
  19308. .blue_box_one > div:nth-child(2):hover {
  19309. overflow: hidden;
  19310. text-overflow: ellipsis;
  19311. white-space: nowrap;
  19312. cursor: pointer;
  19313. }
  19314. .upFile {
  19315. margin: 0 auto;
  19316. width: 120px;
  19317. background: #3681fc;
  19318. color: #fff;
  19319. height: 30px;
  19320. text-align: center;
  19321. line-height: 30px;
  19322. border-radius: 5px;
  19323. font-size: 14px;
  19324. cursor: pointer;
  19325. }
  19326. .courseTitle {
  19327. width: 85%;
  19328. margin: 10px auto 20px auto;
  19329. display: flex;
  19330. flex-direction: row;
  19331. align-items: center;
  19332. justify-content: space-between;
  19333. text-align: center;
  19334. }
  19335. .courseTitle .ctitle {
  19336. font-size: 20px;
  19337. font-weight: bold;
  19338. color: #0e1e33;
  19339. white-space: nowrap;
  19340. overflow: hidden;
  19341. text-overflow: ellipsis;
  19342. }
  19343. .inviteBox {
  19344. font-size: 14px;
  19345. margin-top: 5px;
  19346. color: #a6cbff;
  19347. text-align: center;
  19348. }
  19349. .courseTitle >>> .el-tooltip {
  19350. width: 100%;
  19351. white-space: nowrap;
  19352. overflow: hidden;
  19353. text-overflow: ellipsis;
  19354. word-break: break-word;
  19355. }
  19356. .ml {
  19357. margin-left: 20px;
  19358. color: #5b7dba;
  19359. border-left: 3px solid #5b7dba;
  19360. padding-left: 5px;
  19361. font-weight: bold;
  19362. }
  19363. .return {
  19364. width: 2rem;
  19365. height: 2rem;
  19366. cursor: pointer;
  19367. }
  19368. .return > img {
  19369. width: 100%;
  19370. height: 100%;
  19371. }
  19372. .returnBtn {
  19373. width: 86px;
  19374. height: 36px;
  19375. background: #3681fc;
  19376. border-radius: 4px;
  19377. color: #fff;
  19378. text-align: center;
  19379. line-height: 36px;
  19380. margin-right: 20px;
  19381. cursor: pointer;
  19382. font-size: 14px;
  19383. font-weight: 400;
  19384. display: flex;
  19385. flex-direction: row;
  19386. flex-wrap: nowrap;
  19387. align-items: center;
  19388. justify-content: center;
  19389. }
  19390. .reBtnIcon,
  19391. .commentIcon,
  19392. .vedioIcon,
  19393. .vedioIcon1 {
  19394. /* width: 36px; */
  19395. height: 36px;
  19396. border-radius: 4px;
  19397. position: relative;
  19398. /* background: #e0eafb; */
  19399. background: #0061ff;
  19400. cursor: pointer;
  19401. margin-right: 12px;
  19402. display: flex;
  19403. align-items: center;
  19404. padding: 0 10px;
  19405. box-sizing: border-box;
  19406. font-size: 14px;
  19407. color: #fff;
  19408. }
  19409. .reBtnIcon::before,
  19410. .commentIcon::before,
  19411. .vedioIcon::before,
  19412. .vedioIcon1::before {
  19413. content: "";
  19414. display: block;
  19415. background-size: 100% 100%;
  19416. background-repeat: no-repeat;
  19417. width: 20px;
  19418. height: 20px;
  19419. margin-right: 5px;
  19420. /* position: absolute; */
  19421. /* top: 8px;
  19422. left: 8px; */
  19423. }
  19424. .vedioIcon1 {
  19425. background: #f63564;
  19426. }
  19427. .reBtnIcon::before {
  19428. background-image: url("../assets/icon/newIcons/refresh.png");
  19429. }
  19430. .commentIcon::before {
  19431. background-image: url("../assets/icon/newIcons/comment.png");
  19432. }
  19433. .vedioIcon::before {
  19434. background-image: url("../assets/icon/newIcons/transcribe.png");
  19435. }
  19436. .vedioIcon1::before {
  19437. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  19438. background-image: url("../assets/icon/newIcons/transcribe.png");
  19439. }
  19440. .tool {
  19441. display: flex;
  19442. flex-direction: column;
  19443. flex-wrap: nowrap;
  19444. width: 13%;
  19445. margin: 0 30px;
  19446. align-items: center;
  19447. position: relative;
  19448. padding: 10px 25px;
  19449. cursor: pointer;
  19450. }
  19451. .whiteBIcon {
  19452. width: 150px;
  19453. }
  19454. .whiteBIcon > img {
  19455. width: 100%;
  19456. height: 100%;
  19457. }
  19458. .mask {
  19459. background-color: rgba(0, 0, 0, 0);
  19460. position: fixed;
  19461. top: 0;
  19462. left: 0;
  19463. width: 100%;
  19464. height: 100%;
  19465. z-index: 20000;
  19466. display: flex;
  19467. align-items: center;
  19468. justify-content: center;
  19469. }
  19470. .progressBox {
  19471. width: 500px;
  19472. height: 180px;
  19473. background: #fff;
  19474. border-radius: 10px;
  19475. box-shadow: 0 0 6px 1px #bfbfbf;
  19476. display: flex;
  19477. align-items: center;
  19478. justify-content: center;
  19479. flex-direction: column;
  19480. position: relative;
  19481. color: #6c6c6c;
  19482. }
  19483. .progressBox >>> .el-progress-bar__outer {
  19484. background-color: #d1dfff !important;
  19485. }
  19486. .progressBox .lbox {
  19487. height: 50px;
  19488. font-size: 19px;
  19489. display: flex;
  19490. align-items: center;
  19491. color: #747474;
  19492. }
  19493. .progressBox .lbox img {
  19494. width: 40px;
  19495. margin-right: 20px;
  19496. }
  19497. .closeCss {
  19498. position: absolute;
  19499. top: 8px;
  19500. right: 8px;
  19501. cursor: pointer;
  19502. width: 20px;
  19503. height: 20px;
  19504. }
  19505. .closeCss > img {
  19506. width: 100%;
  19507. height: 100%;
  19508. }
  19509. .uploadVedio {
  19510. display: flex;
  19511. flex-direction: column;
  19512. flex-wrap: nowrap;
  19513. justify-content: center;
  19514. align-items: center;
  19515. margin: 0 15px 10px 0;
  19516. }
  19517. .uploadVedio > img {
  19518. width: 30px;
  19519. height: 30px;
  19520. }
  19521. .uploadVedio > span {
  19522. white-space: nowrap;
  19523. overflow: hidden;
  19524. text-overflow: ellipsis;
  19525. width: 75px;
  19526. margin-top: 7px;
  19527. }
  19528. .picName {
  19529. white-space: nowrap;
  19530. overflow: hidden;
  19531. text-overflow: ellipsis;
  19532. width: 75px;
  19533. margin-top: 7px;
  19534. }
  19535. .new_top {
  19536. display: flex;
  19537. background: #fff;
  19538. flex-direction: row;
  19539. justify-content: flex-start;
  19540. align-items: center;
  19541. height: 60px;
  19542. position: fixed;
  19543. top: 20px;
  19544. left: 22%;
  19545. width: 77%;
  19546. z-index: 999;
  19547. border-radius: 12px 12px 0 0;
  19548. border-bottom: 1px solid #cad1dc;
  19549. padding: 10px 0;
  19550. }
  19551. .new_topFixed {
  19552. width: 100%;
  19553. height: 40px;
  19554. position: fixed;
  19555. top: 0px;
  19556. display: block;
  19557. background: #f2f2f2;
  19558. z-index: 998;
  19559. }
  19560. .before {
  19561. position: absolute;
  19562. background: #c3dad4;
  19563. width: 6px;
  19564. height: 100%;
  19565. }
  19566. .courseIndex {
  19567. display: flex;
  19568. flex-direction: row;
  19569. align-items: center;
  19570. width: calc(100% - 745px);
  19571. }
  19572. .courseIndex > div:nth-child(1) {
  19573. margin: 0 0 0 10px;
  19574. font-size: 20px;
  19575. min-width: 100px;
  19576. font-weight: bold;
  19577. border-left: 4px solid #3363b9;
  19578. height: 32px;
  19579. text-align: center;
  19580. line-height: 35px;
  19581. }
  19582. .courseIndex > div:nth-child(2) {
  19583. font-size: 20px;
  19584. /* width: 300px; */
  19585. max-width: calc(100% - 105px);
  19586. white-space: nowrap;
  19587. overflow: hidden;
  19588. text-overflow: ellipsis;
  19589. }
  19590. .courseIndex > div:nth-child(3) {
  19591. border-bottom: 1px solid #d7d7d7;
  19592. padding-bottom: 5px;
  19593. background: #3681fc;
  19594. width: 55px;
  19595. min-width: 55px;
  19596. border-radius: 5px;
  19597. color: #fff;
  19598. text-align: center;
  19599. height: 20px;
  19600. line-height: 26px;
  19601. font-size: 14px;
  19602. margin: 0 0 0 10px;
  19603. }
  19604. .course_text {
  19605. padding: 20px 0 0 15px;
  19606. text-indent: 30px;
  19607. width: 80%;
  19608. min-height: 20px;
  19609. }
  19610. .vedioList {
  19611. background: #f2f2f2;
  19612. border: 1px solid #ececec;
  19613. /* width: 38.8%; */
  19614. width: 300px;
  19615. height: 445px;
  19616. border-radius: 10px;
  19617. overflow: hidden;
  19618. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  19619. }
  19620. .vedioNav {
  19621. margin: 10px 0 0 15px;
  19622. border-bottom: 1px solid #d7d7d7;
  19623. padding-bottom: 5px;
  19624. background: #3681fc;
  19625. width: 55px;
  19626. min-width: 55px;
  19627. border-radius: 5px;
  19628. color: #fff;
  19629. text-align: center;
  19630. height: 20px;
  19631. line-height: 26px;
  19632. font-size: 14px;
  19633. }
  19634. .queTop {
  19635. display: flex;
  19636. padding: 20px 0 20px 30px;
  19637. width: 100%;
  19638. flex-direction: row;
  19639. justify-content: flex-start;
  19640. align-items: center;
  19641. box-sizing: border-box;
  19642. }
  19643. .queTopTitle {
  19644. display: flex;
  19645. flex-direction: row;
  19646. flex-wrap: nowrap;
  19647. align-items: center;
  19648. font-weight: bold;
  19649. font-size: 20px;
  19650. color: rgb(14, 30, 51);
  19651. }
  19652. .queTopTitle::before {
  19653. content: "";
  19654. width: 2px;
  19655. height: 22px;
  19656. background: #3681fc;
  19657. border-radius: 3px;
  19658. display: block;
  19659. margin: 2px 6px 0 0;
  19660. }
  19661. .queTopRight {
  19662. display: flex;
  19663. flex-direction: row;
  19664. flex-wrap: nowrap;
  19665. align-items: center;
  19666. }
  19667. .queTopClose {
  19668. margin-right: 20px;
  19669. cursor: pointer;
  19670. position: relative;
  19671. display: flex;
  19672. }
  19673. .closeImg,
  19674. .openImg {
  19675. width: 25px;
  19676. height: 25px;
  19677. position: absolute;
  19678. left: -20px;
  19679. top: -1px;
  19680. }
  19681. .closeImg > img,
  19682. .openImg > img {
  19683. width: 100%;
  19684. height: 100%;
  19685. }
  19686. .question {
  19687. width: 40px;
  19688. margin-right: 10px;
  19689. margin-top: 7px;
  19690. }
  19691. .queTitle {
  19692. margin-left: 5px;
  19693. font-size: 25px;
  19694. display: flex;
  19695. align-items: center;
  19696. }
  19697. .addEditor {
  19698. width: 100px;
  19699. height: 30px;
  19700. background: #42cda6;
  19701. color: #fff;
  19702. border-radius: 5px;
  19703. text-align: center;
  19704. line-height: 30px;
  19705. box-shadow: 1px 3px 6px 1px #bfbfbf;
  19706. cursor: pointer;
  19707. }
  19708. /* .vedioName {
  19709. cursor: pointer;
  19710. margin: 0px 0px 10px 5px;
  19711. white-space: nowrap;
  19712. overflow: hidden;
  19713. text-overflow: ellipsis;
  19714. width: 100%;
  19715. } */
  19716. .vedioTime {
  19717. width: 35px;
  19718. position: absolute;
  19719. color: #fff;
  19720. bottom: 0px;
  19721. right: 0px;
  19722. text-align: center;
  19723. background: #46411f;
  19724. height: 20px;
  19725. font-size: 14px;
  19726. line-height: 20px;
  19727. }
  19728. .homework {
  19729. width: 200px;
  19730. display: flex;
  19731. flex-direction: column;
  19732. flex-wrap: nowrap;
  19733. align-items: center;
  19734. cursor: pointer;
  19735. }
  19736. .homebox {
  19737. display: flex;
  19738. flex-wrap: wrap;
  19739. flex-direction: row;
  19740. justify-content: flex-start;
  19741. align-items: center;
  19742. padding: 15px 0;
  19743. }
  19744. .isChooseActive {
  19745. color: #3681fc !important;
  19746. font-weight: bold !important;
  19747. }
  19748. .chooseWho {
  19749. display: flex;
  19750. width: 100%;
  19751. flex-direction: row;
  19752. flex-wrap: nowrap;
  19753. justify-content: flex-start;
  19754. padding-bottom: 10px;
  19755. }
  19756. .chooseWho > div {
  19757. cursor: pointer;
  19758. padding-bottom: 10px;
  19759. margin: 0 30px 0 0;
  19760. font-weight: 400;
  19761. color: #0e1e33;
  19762. }
  19763. .addPoint > div > img {
  19764. cursor: pointer;
  19765. width: 85px;
  19766. border-radius: 15px;
  19767. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  19768. }
  19769. .addPoint > div {
  19770. display: flex;
  19771. flex-direction: column;
  19772. flex-wrap: nowrap;
  19773. align-items: center;
  19774. }
  19775. .isBorder > div {
  19776. margin: 0 0 10px 0;
  19777. align-items: flex-start !important;
  19778. }
  19779. .noiframeBox {
  19780. display: flex;
  19781. flex-wrap: wrap;
  19782. }
  19783. .iframeBox iframe {
  19784. width: 100%;
  19785. height: 800px;
  19786. border: none;
  19787. margin-bottom: 20px;
  19788. border: 1px solid #ccc;
  19789. }
  19790. .upload_toolBtn {
  19791. background: #3681fc;
  19792. color: #fff;
  19793. width: 110px;
  19794. text-align: center;
  19795. height: 35px;
  19796. line-height: 35px;
  19797. font-size: 14px;
  19798. border-radius: 5px;
  19799. cursor: pointer;
  19800. position: absolute;
  19801. right: 10px;
  19802. bottom: 0;
  19803. }
  19804. .binfo_input,
  19805. .pj {
  19806. font: inherit;
  19807. color: currentColor;
  19808. width: 100%;
  19809. margin: 0;
  19810. padding: 15px 14px;
  19811. display: block;
  19812. min-width: 0;
  19813. outline: none;
  19814. box-sizing: content-box;
  19815. background: none;
  19816. -webkit-tap-highlight-color: transparent;
  19817. border: 1px solid rgba(0, 0, 0, 0.23);
  19818. border-radius: 4px;
  19819. box-sizing: border-box;
  19820. resize: none;
  19821. }
  19822. .binfo_input:focus-visible {
  19823. border: 1px solid rgba(61, 103, 188);
  19824. }
  19825. .dialog_diy >>> .el-dialog__header,
  19826. .dialog_diy1 >>> .el-dialog__header {
  19827. background: #454545 !important;
  19828. padding: 15px 20px;
  19829. }
  19830. .dialog_diy >>> .el-dialog__title,
  19831. .dialog_diy1 >>> .el-dialog__title {
  19832. color: #fff;
  19833. }
  19834. .dialog_diy >>> .el-dialog__headerbtn,
  19835. .dialog_diy1 >>> .el-dialog__headerbtn {
  19836. top: 19px;
  19837. }
  19838. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  19839. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  19840. color: #fff;
  19841. }
  19842. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  19843. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  19844. color: #fff;
  19845. }
  19846. .dialog_diy1 >>> .el-dialog__body {
  19847. padding: 0;
  19848. }
  19849. .dialog_diy >>> .el-dialog__body,
  19850. .dialog_diy >>> .el-dialog__footer,
  19851. .dialog_diy1 >>> .el-dialog__footer {
  19852. background: #fafafa;
  19853. }
  19854. .a_addBox {
  19855. padding: 0 0 0 15px;
  19856. }
  19857. .a_add_box {
  19858. padding: 10px;
  19859. background: #fff;
  19860. margin-bottom: 10px;
  19861. border-radius: 5px;
  19862. box-shadow: 0 0 5px 0 #d5d5d5;
  19863. }
  19864. .a_add_head {
  19865. display: flex;
  19866. align-items: flex-start;
  19867. /* justify-content: space-between; */
  19868. flex-direction: column;
  19869. /* flex-direction: row; */
  19870. margin: 10px 0 20px 0;
  19871. font-size: 18px;
  19872. width: 100%;
  19873. }
  19874. .askIndex {
  19875. background: #3681fc;
  19876. border-radius: 50%;
  19877. color: #fff;
  19878. width: 25px;
  19879. height: 25px;
  19880. min-width: 25px;
  19881. min-height: 25px;
  19882. text-align: center;
  19883. line-height: 25px;
  19884. margin-right: 5px;
  19885. }
  19886. .a_add_head .a_add_head_input {
  19887. width: 300px;
  19888. }
  19889. .a_add_head .a_add_head_div {
  19890. display: flex;
  19891. align-items: center;
  19892. justify-content: space-between;
  19893. }
  19894. .a_add_body {
  19895. display: flex;
  19896. align-items: center;
  19897. }
  19898. .a_add_input {
  19899. display: flex;
  19900. align-items: center;
  19901. flex-wrap: wrap;
  19902. width: 100%;
  19903. }
  19904. .a_add_input >>> .el-radio-group,
  19905. .a_add_input >>> .el-checkbox-group {
  19906. width: 100%;
  19907. }
  19908. .a_add_input >>> .el-radio,
  19909. .a_add_input >>> .el-checkbox {
  19910. display: flex;
  19911. flex-direction: row;
  19912. flex-wrap: nowrap;
  19913. align-items: center;
  19914. padding: 15px 0;
  19915. }
  19916. .a_add_input >>> .el-radio:not(:last-child),
  19917. .a_add_input >>> .el-checkbox:not(:last-child) {
  19918. width: 100%;
  19919. border-bottom: 1px solid #efefef;
  19920. }
  19921. .redioStyle >>> .el-radio__label {
  19922. font-size: 18px;
  19923. }
  19924. .redioStyle >>> .el-radio__label > span,
  19925. .redioStyle >>> .el-checkbox__label > span {
  19926. word-break: break-all;
  19927. white-space: normal;
  19928. }
  19929. .redioStyle >>> .el-checkbox__label {
  19930. font-size: 18px;
  19931. }
  19932. .toolHeng2 {
  19933. width: 100%;
  19934. padding-left: 37px;
  19935. box-sizing: border-box;
  19936. }
  19937. .workNav {
  19938. font-size: 20px;
  19939. font-weight: bold;
  19940. color: #0e1e33;
  19941. display: flex;
  19942. flex-direction: row;
  19943. flex-wrap: nowrap;
  19944. align-items: center;
  19945. padding: 15px 0 15px 0;
  19946. }
  19947. .workNav::before {
  19948. content: "";
  19949. width: 2px;
  19950. height: 22px;
  19951. background: #3681fc;
  19952. border-radius: 3px;
  19953. display: block;
  19954. margin: 2px 6px 0 0;
  19955. }
  19956. .toolHeng {
  19957. display: flex;
  19958. flex-direction: row;
  19959. flex-wrap: wrap;
  19960. justify-content: flex-start;
  19961. align-items: center;
  19962. width: 100%;
  19963. }
  19964. .toolHeng > div {
  19965. padding-left: 20px;
  19966. }
  19967. .isWidth {
  19968. width: 20%;
  19969. }
  19970. .textTitle {
  19971. display: flex;
  19972. flex-direction: row;
  19973. flex-wrap: nowrap;
  19974. align-items: center;
  19975. width: 95%;
  19976. }
  19977. .textTitle >>> .el-form-item__label {
  19978. font-size: 22px;
  19979. color: #918f8f;
  19980. width: 100px;
  19981. }
  19982. .textTitle >>> .el-form-item__content {
  19983. width: calc(100% - 100px);
  19984. }
  19985. .textCss >>> .el-dialog {
  19986. width: 800px !important;
  19987. height: 400px;
  19988. background: #fafafa;
  19989. }
  19990. .textCss >>> .el-dialog__body {
  19991. margin: 55px 8% 0 8%;
  19992. padding: 0 !important;
  19993. }
  19994. .textCss >>> .el-dialog__footer {
  19995. padding-top: 38px;
  19996. }
  19997. .toolsCss >>> .el-dialog__body {
  19998. padding: 20px;
  19999. }
  20000. .lineCss >>> .el-dialog__body {
  20001. display: flex;
  20002. flex-direction: row;
  20003. align-items: center;
  20004. justify-content: center;
  20005. }
  20006. .newNav {
  20007. display: flex;
  20008. flex-direction: row;
  20009. align-items: baseline;
  20010. justify-content: flex-start;
  20011. }
  20012. .navListItem {
  20013. width: 280px;
  20014. height: 50px;
  20015. margin: 0px auto 10px;
  20016. display: flex;
  20017. flex-direction: row;
  20018. flex-wrap: nowrap;
  20019. align-items: center;
  20020. justify-content: space-between;
  20021. background: #f0f4fa;
  20022. border-radius: 6px 6px 6px 6px;
  20023. }
  20024. .navText {
  20025. cursor: pointer;
  20026. white-space: nowrap;
  20027. overflow: hidden;
  20028. text-overflow: ellipsis;
  20029. width: 220px;
  20030. padding: 0 10px;
  20031. font-weight: 400;
  20032. color: #0e1e33;
  20033. }
  20034. .downIcon {
  20035. width: 20px;
  20036. min-width: 20px;
  20037. height: 20px;
  20038. margin-right: 15px;
  20039. cursor: pointer;
  20040. }
  20041. .downIcon > img {
  20042. width: 100%;
  20043. height: 100%;
  20044. }
  20045. .noVedio {
  20046. display: flex;
  20047. flex-direction: row;
  20048. justify-content: center;
  20049. align-content: center;
  20050. }
  20051. .noNavText {
  20052. cursor: pointer;
  20053. margin: 0px 0px 10px 5px;
  20054. width: 112px;
  20055. }
  20056. .listNoVedio {
  20057. margin: 0 0 0 30px;
  20058. width: 97%;
  20059. }
  20060. .video-player >>> .video-js {
  20061. height: 100%;
  20062. }
  20063. .hangVedioList {
  20064. width: 90% !important;
  20065. height: 150px !important;
  20066. margin: 20px 0 0 30px;
  20067. }
  20068. .hangVedio {
  20069. width: 100%;
  20070. height: 170px !important;
  20071. align-items: flex-start !important;
  20072. }
  20073. .hangHand {
  20074. height: 150px !important;
  20075. }
  20076. .twoChild {
  20077. width: 95%;
  20078. margin: 10px;
  20079. border-radius: 5px;
  20080. background: #f2f2f2;
  20081. display: flex;
  20082. flex-direction: column;
  20083. flex-wrap: nowrap;
  20084. justify-content: flex-start;
  20085. align-items: flex-start;
  20086. transition: all 0.5s;
  20087. overflow: hidden;
  20088. height: 0;
  20089. background: #e7f3ff;
  20090. }
  20091. .twoChild > div:nth-child(1) {
  20092. margin-top: 5px;
  20093. }
  20094. .navChild {
  20095. width: 100%;
  20096. cursor: pointer;
  20097. margin-bottom: 10px;
  20098. position: relative;
  20099. }
  20100. .navChild img {
  20101. position: absolute;
  20102. right: 11px;
  20103. width: 15px;
  20104. top: 50%;
  20105. transform: translateY(-50%);
  20106. }
  20107. .navActive,
  20108. .toolActive {
  20109. height: auto !important;
  20110. overflow: auto !important;
  20111. /* padding-bottom: 16px; */
  20112. }
  20113. .toolActive {
  20114. padding: 0;
  20115. }
  20116. .navTask {
  20117. display: flex;
  20118. flex-direction: row;
  20119. flex-wrap: nowrap;
  20120. align-items: center;
  20121. align-content: flex-start;
  20122. height: 40px;
  20123. justify-content: flex-start;
  20124. padding: 0 10px;
  20125. width: 100%;
  20126. box-sizing: border-box;
  20127. }
  20128. .navTaskname {
  20129. white-space: nowrap;
  20130. text-overflow: ellipsis;
  20131. overflow: hidden;
  20132. word-break: break-all;
  20133. padding-left: 5px;
  20134. }
  20135. .openTaskActive {
  20136. background-color: #e0eafb !important;
  20137. color: #0061ff;
  20138. }
  20139. .iframeName {
  20140. margin: 5px 0;
  20141. border-left: 4px solid #41c4a4;
  20142. padding-left: 4px;
  20143. }
  20144. .toolTitle {
  20145. margin: 0px 0px 20px;
  20146. font-size: 20px;
  20147. font-weight: 500;
  20148. border-left: 4px solid #41c4a4;
  20149. padding-left: 4px;
  20150. }
  20151. .cru_selectBox {
  20152. overflow: auto;
  20153. width: 95%;
  20154. margin: 17px auto 0;
  20155. height: calc(100% - 40px - 21px - 20px - 17px);
  20156. background: #fff;
  20157. border-radius: 8px;
  20158. }
  20159. .cru_selectBox::-webkit-scrollbar,
  20160. .study_top::-webkit-scrollbar,
  20161. .textContent::-webkit-scrollbar {
  20162. /*滚动条整体样式*/
  20163. width: 6px;
  20164. /*高宽分别对应横竖滚动条的尺寸*/
  20165. height: 6px;
  20166. }
  20167. /*定义滚动条轨道 内阴影+圆角*/
  20168. .cru_selectBox::-webkit-scrollbar-track,
  20169. .study_top::-webkit-scrollbar-track,
  20170. .textContent::-webkit-scrollbar {
  20171. border-radius: 10px;
  20172. background-color: #b8bdc9;
  20173. }
  20174. /*定义滑块 内阴影+圆角*/
  20175. .cru_selectBox::-webkit-scrollbar-thumb,
  20176. .study_top::-webkit-scrollbar-thumb,
  20177. .textContent::-webkit-scrollbar-thumb {
  20178. border-radius: 10px;
  20179. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  20180. background-color: #2c5ab3;
  20181. }
  20182. .vedioBox {
  20183. border-radius: 0 0 20px 20px;
  20184. background: #fff;
  20185. overflow: auto;
  20186. }
  20187. .taskBox {
  20188. width: 98%;
  20189. background: #f0f4fa;
  20190. margin: 10px auto;
  20191. padding: 0 10px;
  20192. border-radius: 4px;
  20193. box-sizing: border-box;
  20194. }
  20195. .vedioTaskBox {
  20196. width: 100%;
  20197. display: flex;
  20198. flex-direction: row;
  20199. flex-wrap: nowrap;
  20200. align-items: flex-start;
  20201. position: relative;
  20202. }
  20203. .toolBox {
  20204. margin: 15px 0 0 25px;
  20205. display: flex;
  20206. position: relative;
  20207. padding: 18px 20px;
  20208. border-top-left-radius: 5px;
  20209. border-top-right-radius: 5px;
  20210. width: 90%;
  20211. }
  20212. .btnAll {
  20213. position: absolute;
  20214. right: 0;
  20215. display: flex;
  20216. flex-direction: row;
  20217. flex-wrap: nowrap;
  20218. align-items: center;
  20219. }
  20220. .btnLeft,
  20221. .btnRight {
  20222. display: flex;
  20223. flex-direction: row;
  20224. flex-wrap: nowrap;
  20225. align-items: center;
  20226. padding: 5px 0;
  20227. }
  20228. .btnLeft {
  20229. border-right: 1px solid #cad1dc;
  20230. }
  20231. .btnLeft > .custom-tooltip {
  20232. background: #3681fc;
  20233. color: #fff;
  20234. }
  20235. .last:hover {
  20236. background: #3383fa !important;
  20237. color: #fff;
  20238. border: 1px solid #3383fa !important;
  20239. }
  20240. .last,
  20241. .returnBtn1 {
  20242. width: 90px;
  20243. height: 36px;
  20244. background: #ffffff;
  20245. border-radius: 4px;
  20246. border: 1px solid #0061ff;
  20247. color: #0061ff;
  20248. cursor: pointer;
  20249. display: flex;
  20250. flex-direction: row;
  20251. flex-wrap: nowrap;
  20252. align-items: center;
  20253. justify-content: center;
  20254. margin-left: 12px;
  20255. }
  20256. .returnBtn1 {
  20257. background: #f0f4fa;
  20258. border-radius: 4px;
  20259. border: 1px solid #cad1dc;
  20260. margin: 0 12px;
  20261. }
  20262. .lastImg {
  20263. min-width: 15px;
  20264. width: 15px;
  20265. height: 15px;
  20266. }
  20267. .lastText {
  20268. padding: 0 5px 2px 5px;
  20269. box-sizing: border-box;
  20270. font-size: 14px;
  20271. }
  20272. .lastImg > img {
  20273. width: 100%;
  20274. height: 100%;
  20275. }
  20276. /* .vedioTimeBox {
  20277. display: flex;
  20278. flex-direction: row;
  20279. align-items: center;
  20280. flex-wrap: nowrap;
  20281. position: relative;
  20282. } */
  20283. .navBox {
  20284. background: #fff;
  20285. height: calc(100% - 40px);
  20286. overflow-y: auto;
  20287. overflow-x: hidden;
  20288. }
  20289. .worksBox {
  20290. margin: 0 0 10px 25px;
  20291. border-bottom: 1px solid #eeeeee;
  20292. padding: 18px 20px;
  20293. border-radius: 4px;
  20294. width: 90%;
  20295. }
  20296. .worksBTitle {
  20297. font-size: 20px;
  20298. padding-bottom: 15px;
  20299. border-bottom: 1px solid #eeeeee;
  20300. display: flex;
  20301. align-items: center;
  20302. }
  20303. .greenBox {
  20304. width: 5px;
  20305. height: 30px;
  20306. background: #63b6fa;
  20307. margin-right: 5px;
  20308. }
  20309. .worksDetailBox {
  20310. display: flex;
  20311. width: 100%;
  20312. flex-direction: row;
  20313. flex-wrap: wrap;
  20314. align-items: flex-end;
  20315. justify-content: flex-start;
  20316. padding: 15px 0;
  20317. }
  20318. .works {
  20319. display: flex;
  20320. flex-direction: column;
  20321. flex-wrap: nowrap;
  20322. align-items: flex-start;
  20323. justify-content: flex-start;
  20324. align-content: center;
  20325. max-width: 240px;
  20326. width: calc(100% / 3 - 10px);
  20327. height: auto;
  20328. margin-right: 10px;
  20329. margin-bottom: 10px;
  20330. overflow: hidden;
  20331. height: 140px;
  20332. box-shadow: 0 0 6px 1px #dfdada;
  20333. border-radius: 15px;
  20334. }
  20335. .workImg {
  20336. width: 100%;
  20337. /* height: calc(100% - 40px); */
  20338. height: 105px;
  20339. position: relative;
  20340. }
  20341. .workImg > img {
  20342. width: 100%;
  20343. height: 100%;
  20344. object-fit: contain;
  20345. cursor: pointer;
  20346. }
  20347. .worksName {
  20348. height: 40px;
  20349. line-height: 40px;
  20350. display: flex;
  20351. width: 100%;
  20352. flex-direction: row;
  20353. flex-wrap: nowrap;
  20354. justify-content: space-between;
  20355. align-items: center;
  20356. margin: 0 0 0 10px;
  20357. }
  20358. .worksName > div:nth-child(1) {
  20359. width: 110px;
  20360. white-space: nowrap;
  20361. overflow: hidden;
  20362. text-overflow: ellipsis;
  20363. }
  20364. .worksName > div:nth-child(2) {
  20365. color: #b7b4b5;
  20366. }
  20367. .noWorksS {
  20368. padding: 15px 0;
  20369. display: flex;
  20370. flex-direction: row;
  20371. flex-wrap: wrap;
  20372. align-items: center;
  20373. justify-content: flex-start;
  20374. }
  20375. .noWorksName,
  20376. .isWorksName,
  20377. .isWorksName2 {
  20378. background: #ddebf8;
  20379. color: #000;
  20380. width: 90px;
  20381. height: 25px;
  20382. text-align: center;
  20383. line-height: 25px;
  20384. border-radius: 4px;
  20385. margin: 10px 15px 10px 0;
  20386. white-space: nowrap;
  20387. overflow: hidden;
  20388. padding: 5px;
  20389. text-overflow: ellipsis;
  20390. cursor: pointer;
  20391. border: 1px solid #ddebf8;
  20392. }
  20393. .noWorksName {
  20394. background: #fff;
  20395. color: #0061ff;
  20396. border: 1px solid #0061ff;
  20397. }
  20398. .isWorksName2 {
  20399. width: 100px;
  20400. height: 40px;
  20401. line-height: 40px;
  20402. position: relative;
  20403. background: #dae6f9;
  20404. }
  20405. .isWorksName {
  20406. background: #e7ebf1 !important;
  20407. width: 100px;
  20408. height: 40px;
  20409. line-height: 40px;
  20410. position: relative;
  20411. color: #acb4bf;
  20412. border: 1px solid #cad1dc !important;
  20413. }
  20414. .isSelectName,
  20415. .noWorksName:hover {
  20416. background: #3383fa !important;
  20417. color: #fff !important;
  20418. border: 1px solid #3383fa !important;
  20419. }
  20420. .title {
  20421. background: #1e5cc9;
  20422. /* width: 98%; */
  20423. height: 45px;
  20424. color: #fff;
  20425. line-height: 45px;
  20426. padding-left: 20px;
  20427. box-sizing: border-box;
  20428. }
  20429. .textBox {
  20430. font-size: 20px;
  20431. width: 90%;
  20432. display: flex;
  20433. flex-direction: column;
  20434. align-items: center;
  20435. margin: 20px auto 0;
  20436. max-height: calc(100% - 75px);
  20437. overflow: auto;
  20438. }
  20439. .textContent {
  20440. font-size: 18px;
  20441. width: 95%;
  20442. max-width: 95%;
  20443. }
  20444. .answerBg {
  20445. background: url("../assets/icon/answerBgNew.png") no-repeat;
  20446. background-size: 100% 100%;
  20447. width: 100%;
  20448. height: 100%;
  20449. color: #fff;
  20450. text-align: center;
  20451. display: flex;
  20452. flex-direction: column;
  20453. flex-wrap: nowrap;
  20454. align-items: center;
  20455. position: relative;
  20456. justify-content: center;
  20457. }
  20458. .answerBg > div:nth-child(1) {
  20459. /* font-size: 22px;
  20460. padding: 25px 0 10px; */
  20461. }
  20462. .answerContent {
  20463. width: 215px;
  20464. max-height: 60px;
  20465. word-break: break-all;
  20466. text-align: center;
  20467. /* white-space: nowrap; */
  20468. overflow: hidden;
  20469. text-overflow: ellipsis;
  20470. /* padding: 23px 0 0; */
  20471. -webkit-line-clamp: 3;
  20472. -webkit-box-orient: vertical;
  20473. display: -webkit-box;
  20474. font-size: 15px;
  20475. cursor: pointer;
  20476. }
  20477. .elist_input_box {
  20478. display: flex;
  20479. align-items: flex-start;
  20480. flex-wrap: nowrap;
  20481. padding: 10px 0 15px 30px;
  20482. flex-direction: column;
  20483. }
  20484. .elist_input {
  20485. /* width: 40%; */
  20486. width: 45%;
  20487. margin: 20px;
  20488. }
  20489. .elist_input .elist_input_box input {
  20490. font: inherit;
  20491. color: currentColor;
  20492. width: 200px;
  20493. padding: 8px 14px;
  20494. display: block;
  20495. min-width: 0;
  20496. outline: none;
  20497. border: 1px solid rgba(0, 0, 0, 0.23);
  20498. border-radius: 4px;
  20499. box-sizing: border-box;
  20500. background: #fff;
  20501. margin: 0 20px 0 0;
  20502. }
  20503. .elist_input .elist_input_box span {
  20504. height: 36px;
  20505. line-height: 36px;
  20506. color: rgb(82, 82, 82);
  20507. }
  20508. .elist_input .elist_input_box .remove {
  20509. height: 20px;
  20510. width: 20px;
  20511. background-size: 100% 100%;
  20512. background-position: unset;
  20513. margin-left: 5px;
  20514. }
  20515. .elist_input_box >>> .el-rate {
  20516. display: flex;
  20517. height: 36px;
  20518. align-items: center;
  20519. }
  20520. .elist_input_box .elist_inptu_text {
  20521. min-height: 50px;
  20522. /* width: 500px;
  20523. max-height: 150px; */
  20524. width: 100%;
  20525. line-height: 50px;
  20526. color: rgb(82, 82, 82);
  20527. overflow: auto;
  20528. text-indent: 5px;
  20529. background: #f7f6f9;
  20530. border-radius: 10px;
  20531. }
  20532. .elist_input_box .elist_inptu_text input {
  20533. width: 500px;
  20534. }
  20535. .elist_input_box >>> .el-rate__icon {
  20536. font-size: 24px;
  20537. }
  20538. .isClick {
  20539. background: #4d9def;
  20540. }
  20541. .bzBox {
  20542. display: flex;
  20543. flex-direction: row;
  20544. align-items: center;
  20545. }
  20546. .bzBox .yCss {
  20547. width: 7px;
  20548. height: 7px;
  20549. background: #fff;
  20550. margin: 0 16px 0 6px;
  20551. border-radius: 50%;
  20552. border: 5px solid #3681fc;
  20553. z-index: 99;
  20554. }
  20555. .bzBox > div:nth-child(2) {
  20556. font-size: 18px;
  20557. font-weight: bold;
  20558. color: #0e1e33;
  20559. }
  20560. .navTitile {
  20561. padding: 0 0px 0 15px;
  20562. font-size: 16px;
  20563. font-weight: bold;
  20564. color: #0e1e33;
  20565. height: 40px;
  20566. line-height: 40px;
  20567. }
  20568. .isTypeOne {
  20569. width: 240px;
  20570. height: 170px;
  20571. /* border: 1px solid #f8f8f8; */
  20572. border-radius: 10px;
  20573. box-shadow: 0 0 6px 1px #dfdada;
  20574. }
  20575. .e_add_top {
  20576. display: flex;
  20577. justify-content: space-between;
  20578. padding: 20px 20px 0 20px;
  20579. border-radius: 3px;
  20580. background: #fff;
  20581. }
  20582. .e_add_title2 {
  20583. display: flex;
  20584. align-items: center;
  20585. }
  20586. .e_add_title2 span {
  20587. width: 40px;
  20588. }
  20589. .e_add_title {
  20590. display: flex;
  20591. align-items: center;
  20592. color: #b8b8b8;
  20593. font-size: 18px;
  20594. position: relative;
  20595. height: 40px;
  20596. }
  20597. .e_add_title span {
  20598. margin-right: 10px;
  20599. }
  20600. .e_add_title .el_input {
  20601. width: 300px;
  20602. }
  20603. .e_add_title >>> .el-input__inner {
  20604. width: 400px;
  20605. }
  20606. .e_add_btn {
  20607. }
  20608. .e_add_content {
  20609. display: flex;
  20610. width: 100%;
  20611. max-width: 650px;
  20612. height: 550px;
  20613. }
  20614. .e_add_list {
  20615. background: #fff;
  20616. height: 500px;
  20617. width: 210px;
  20618. position: relative;
  20619. margin: 15px 5px 0 0;
  20620. flex-shrink: 0;
  20621. display: flex;
  20622. flex-direction: column;
  20623. }
  20624. .e_add_list_title {
  20625. font-size: 20px;
  20626. width: 100%;
  20627. box-sizing: border-box;
  20628. padding: 15px 40px;
  20629. text-align: center;
  20630. border-bottom: 1px solid #eaeaea;
  20631. position: relative;
  20632. display: flex;
  20633. align-items: center;
  20634. justify-content: center;
  20635. height: 57px;
  20636. background: #f6f6f6;
  20637. }
  20638. .e_add_list_title span {
  20639. overflow: hidden;
  20640. white-space: nowrap;
  20641. text-overflow: ellipsis;
  20642. }
  20643. .e_add_list_title img {
  20644. position: absolute;
  20645. right: 15px;
  20646. width: 25px;
  20647. cursor: pointer;
  20648. top: 50%;
  20649. transform: translateY(-50%);
  20650. }
  20651. .e_add_list_body {
  20652. height: calc(100% - 187px);
  20653. overflow: auto;
  20654. }
  20655. .e_add_list_child {
  20656. width: 100%;
  20657. display: flex;
  20658. align-items: center;
  20659. justify-content: center;
  20660. position: relative;
  20661. box-sizing: border-box;
  20662. padding: 15px 40px;
  20663. text-align: center;
  20664. }
  20665. .e_add_list_child span {
  20666. overflow: hidden;
  20667. white-space: nowrap;
  20668. text-overflow: ellipsis;
  20669. cursor: pointer;
  20670. }
  20671. .e_add_list_child img {
  20672. position: absolute;
  20673. right: 10px;
  20674. width: 21px;
  20675. cursor: pointer;
  20676. top: 50%;
  20677. transform: translateY(-50%);
  20678. }
  20679. .e_add_list_child + .e_add_list_child {
  20680. border-top: 1px solid #eaeaea;
  20681. }
  20682. .e_add_list_child .active {
  20683. color: #409eff;
  20684. }
  20685. .e_add_list_btn {
  20686. position: absolute;
  20687. bottom: 0;
  20688. height: 50px;
  20689. background: rgb(120, 120, 254);
  20690. width: 100%;
  20691. color: #fff;
  20692. font-size: 16px;
  20693. text-align: center;
  20694. line-height: 50px;
  20695. cursor: pointer;
  20696. }
  20697. .e_add_list_detail {
  20698. position: absolute;
  20699. bottom: 0;
  20700. height: 130px;
  20701. background: rgb(120, 120, 254);
  20702. width: 100%;
  20703. color: #fff;
  20704. font-size: 16px;
  20705. display: flex;
  20706. align-items: center;
  20707. justify-content: center;
  20708. }
  20709. .e_add_list_detail textarea {
  20710. height: 90%;
  20711. width: 95%;
  20712. border: none;
  20713. resize: none;
  20714. outline: none;
  20715. padding: 5px;
  20716. box-sizing: border-box;
  20717. }
  20718. .e_add_list_pbox {
  20719. width: 100%;
  20720. max-width: 650px;
  20721. /* height: 600px; */
  20722. }
  20723. .e_add_list_pbox_title {
  20724. height: 50px;
  20725. background: #fff;
  20726. display: flex;
  20727. align-items: center;
  20728. width: 100%;
  20729. box-sizing: border-box;
  20730. padding: 0 20px;
  20731. }
  20732. .type_title {
  20733. font-size: 18px;
  20734. font-weight: 700;
  20735. }
  20736. .type_content {
  20737. font-size: 16px;
  20738. margin-left: 30px;
  20739. }
  20740. .type_content span + span {
  20741. margin-left: 20px;
  20742. }
  20743. .type_content span {
  20744. cursor: pointer;
  20745. padding-bottom: 5px;
  20746. box-sizing: border-box;
  20747. }
  20748. .type_content .active {
  20749. color: #409eff;
  20750. border-bottom: 2px solid #409eff;
  20751. }
  20752. .e_add_list_pbox_content {
  20753. height: calc(100% - 50px);
  20754. display: flex;
  20755. align-items: center;
  20756. width: 100%;
  20757. background: #fff;
  20758. }
  20759. .evaCss {
  20760. display: flex;
  20761. flex-direction: row;
  20762. flex-wrap: nowrap;
  20763. align-items: flex-start;
  20764. padding: 0 0 20px;
  20765. }
  20766. .cru_line {
  20767. position: absolute;
  20768. bottom: 0px;
  20769. transition: all 0.5s;
  20770. left: 0px;
  20771. width: 125px;
  20772. margin-left: -25px;
  20773. }
  20774. .isNoMessage {
  20775. width: 20%;
  20776. margin: 25% auto 0;
  20777. }
  20778. .isNoMessage > img {
  20779. width: 100%;
  20780. height: 100%;
  20781. }
  20782. .fullStyle >>> .el-dialog__body {
  20783. height: 100% !important;
  20784. }
  20785. .fullStyle >>> .el-dialog,
  20786. .fullStyle {
  20787. width: 100% !important;
  20788. max-width: 100% !important;
  20789. height: 100% !important;
  20790. margin: 0 !important;
  20791. }
  20792. .full_diy >>> .el-dialog {
  20793. margin: 0 !important;
  20794. height: 100%;
  20795. padding: 4px;
  20796. }
  20797. .full_diy >>> .el-dialog__body {
  20798. height: calc(100% - 100px);
  20799. }
  20800. .full_diy2 >>> .el-dialog__body {
  20801. height: calc(100% - 50px);
  20802. padding: 0;
  20803. }
  20804. .switchCss {
  20805. /* width: 100%; */
  20806. display: flex;
  20807. flex-direction: row;
  20808. flex-wrap: nowrap;
  20809. align-items: center;
  20810. /* justify-content: center; */
  20811. }
  20812. .isClickNav {
  20813. /* color: #499eef; */
  20814. color: #000;
  20815. }
  20816. .commentImg {
  20817. width: 25px;
  20818. height: 25px;
  20819. cursor: pointer;
  20820. }
  20821. .commentImg > img {
  20822. width: 100%;
  20823. height: 100%;
  20824. }
  20825. .comment {
  20826. background: #f9f9f9;
  20827. border-radius: 0 0 4px 4px;
  20828. display: flex;
  20829. flex-direction: row;
  20830. flex-wrap: nowrap;
  20831. align-items: center;
  20832. justify-content: flex-end;
  20833. height: 35px;
  20834. }
  20835. .commentList {
  20836. display: flex;
  20837. flex-direction: row;
  20838. flex-wrap: nowrap;
  20839. align-items: center;
  20840. justify-content: center;
  20841. align-content: center;
  20842. /* margin-left: 15px; */
  20843. /* margin-left: 8px; */
  20844. }
  20845. .scoreImg {
  20846. width: 17px;
  20847. height: 17px;
  20848. }
  20849. .studentDetail {
  20850. display: flex;
  20851. flex-direction: row;
  20852. flex-wrap: nowrap;
  20853. /* align-items: center; */
  20854. align-items: flex-start;
  20855. }
  20856. .tx {
  20857. width: 50px;
  20858. }
  20859. .tx > img {
  20860. width: 100%;
  20861. height: 100%;
  20862. }
  20863. .nameAndTime {
  20864. display: flex;
  20865. flex-direction: column;
  20866. flex-wrap: nowrap;
  20867. align-items: flex-start;
  20868. margin-left: 10px;
  20869. }
  20870. .worksAnswer {
  20871. color: #4078dd;
  20872. margin: 10px 0;
  20873. font-size: 16px;
  20874. position: relative;
  20875. }
  20876. .worksAnswer > img {
  20877. width: 500px;
  20878. height: 300px;
  20879. object-fit: contain;
  20880. margin: 0 auto;
  20881. display: block;
  20882. }
  20883. .commentTop {
  20884. border-bottom: 1px solid #eaeaea;
  20885. padding-bottom: 10px;
  20886. }
  20887. .commentBox {
  20888. padding-top: 15px;
  20889. }
  20890. .pl {
  20891. font-size: 18px;
  20892. }
  20893. .plPerson {
  20894. width: 100%;
  20895. }
  20896. .plName {
  20897. display: flex;
  20898. flex-direction: row;
  20899. flex-wrap: nowrap;
  20900. align-items: baseline;
  20901. color: #78787a;
  20902. width: 100%;
  20903. }
  20904. .deleteComment {
  20905. cursor: pointer;
  20906. margin-left: auto;
  20907. color: #237ade;
  20908. }
  20909. .plContent {
  20910. margin-top: 5px;
  20911. }
  20912. .evalCss {
  20913. background: #fff;
  20914. font-size: 18px;
  20915. }
  20916. .nav {
  20917. color: #9d9d9d;
  20918. padding: 5px 0 15px 20px;
  20919. }
  20920. .middleBox {
  20921. padding: 5px 0 15px 20px;
  20922. }
  20923. .pfBox {
  20924. padding-bottom: 30px;
  20925. }
  20926. .nameAndrate {
  20927. display: flex;
  20928. flex-direction: row;
  20929. flex-wrap: nowrap;
  20930. align-items: center;
  20931. padding-bottom: 10px;
  20932. height: 30px;
  20933. line-height: 30px;
  20934. }
  20935. .nameAndrate > div {
  20936. margin-left: 10px;
  20937. color: #000;
  20938. height: 30px;
  20939. }
  20940. .nameAndrate >>> .el-rate__icon {
  20941. font-size: 28px !important;
  20942. }
  20943. .pfBox > div:nth-child(2) {
  20944. background: #f7f6f9;
  20945. width: 400px;
  20946. min-height: 45px;
  20947. border-radius: 10px;
  20948. font-size: 16px;
  20949. display: flex;
  20950. flex-wrap: wrap;
  20951. align-items: center;
  20952. padding: 10px 20px;
  20953. box-sizing: border-box;
  20954. color: #000;
  20955. }
  20956. .bz {
  20957. display: flex;
  20958. flex-direction: row;
  20959. flex-wrap: nowrap;
  20960. align-items: flex-start;
  20961. }
  20962. .bz > div {
  20963. padding: 0 10px;
  20964. }
  20965. .select_box2_title {
  20966. background: #fff;
  20967. border-radius: 5px;
  20968. padding: 15px 10px;
  20969. box-sizing: border-box;
  20970. margin-bottom: 10px;
  20971. display: flex;
  20972. flex-direction: row;
  20973. flex-wrap: nowrap;
  20974. align-items: center;
  20975. }
  20976. .select_box2_title > div:nth-child(2) {
  20977. margin-left: 10px;
  20978. color: #c4c4c4;
  20979. }
  20980. .select_box2_box {
  20981. display: flex;
  20982. height: 500px;
  20983. }
  20984. .select_box2_img {
  20985. width: calc(100% - 310px);
  20986. height: 100%;
  20987. overflow: auto;
  20988. background: #fff;
  20989. border-radius: 5px;
  20990. }
  20991. .select_box2_img img {
  20992. width: 100%;
  20993. }
  20994. .select_box2_answer {
  20995. background: #fff;
  20996. margin-left: 10px;
  20997. border-radius: 5px;
  20998. width: 300px;
  20999. overflow: auto;
  21000. height: 90%;
  21001. display: flex;
  21002. flex-direction: column;
  21003. align-items: flex-start;
  21004. padding-top: 10px;
  21005. box-sizing: border-box;
  21006. position: relative;
  21007. }
  21008. .select_answer_title {
  21009. padding: 0 0 15px 20px;
  21010. color: #c4c4c4;
  21011. }
  21012. .select_box2_answer_box {
  21013. margin: 0 0 10px 20px;
  21014. width: 85%;
  21015. display: flex;
  21016. flex-direction: row;
  21017. flex-wrap: nowrap;
  21018. align-items: center;
  21019. }
  21020. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  21021. color: #000;
  21022. }
  21023. .upAnswerCss {
  21024. position: absolute;
  21025. bottom: 15px;
  21026. right: 15px;
  21027. }
  21028. .upAnswerCss >>> .el-button {
  21029. width: 95px;
  21030. height: 35px;
  21031. line-height: 35px;
  21032. padding: 0;
  21033. }
  21034. .rightWidthCss {
  21035. width: 60%;
  21036. display: flex;
  21037. flex-direction: row;
  21038. align-items: flex-start;
  21039. }
  21040. .rightAnswer {
  21041. display: flex;
  21042. flex-direction: row;
  21043. flex-wrap: nowrap;
  21044. align-items: center;
  21045. color: red;
  21046. margin-bottom: 31px;
  21047. }
  21048. .rightAnswerCss {
  21049. display: flex;
  21050. flex-direction: column;
  21051. flex-wrap: nowrap;
  21052. padding-top: 60px;
  21053. }
  21054. .blueCss {
  21055. color: #767de1;
  21056. margin-left: 10px;
  21057. }
  21058. .redCss {
  21059. color: red;
  21060. }
  21061. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  21062. color: rgb(0 123 255) !important;
  21063. }
  21064. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  21065. color: rgb(0 123 255) !important;
  21066. }
  21067. .zuoyeYulan {
  21068. padding-top: 0;
  21069. font-size: 18px;
  21070. display: flex;
  21071. align-items: flex-end;
  21072. }
  21073. .buttonA {
  21074. margin-left: 10px;
  21075. padding: 0;
  21076. }
  21077. .displayBox {
  21078. margin-bottom: 10px;
  21079. display: block;
  21080. border-bottom: 3px solid #eee;
  21081. display: flex;
  21082. align-items: center;
  21083. }
  21084. .easy_comment {
  21085. width: calc(100% - 90px);
  21086. margin-left: 10px;
  21087. display: flex;
  21088. flex-wrap: wrap;
  21089. }
  21090. .easy_comment > div {
  21091. border: 1px solid #4a4a4a;
  21092. color: #666;
  21093. border-radius: 15px;
  21094. padding: 5px 10px;
  21095. font-size: 16px;
  21096. margin-bottom: 10px;
  21097. margin-right: 5px;
  21098. cursor: pointer;
  21099. }
  21100. .easy_comment div:hover {
  21101. border: 1px solid #f7ba2a;
  21102. color: #c69217;
  21103. }
  21104. .xuan_right_box {
  21105. padding: 10px 0;
  21106. background: #f0f4fa;
  21107. margin: 0 15px 0 25px;
  21108. border-bottom-left-radius: 5px;
  21109. border-bottom-right-radius: 5px;
  21110. width: 91.5%;
  21111. }
  21112. .tool_right_box {
  21113. display: flex;
  21114. align-items: center;
  21115. }
  21116. .tool_right_box + .tool_right_box {
  21117. margin-top: 10px;
  21118. }
  21119. .right_box_xuan {
  21120. background: rgb(0 123 255);
  21121. color: #fff;
  21122. border-radius: 5px;
  21123. padding: 5px;
  21124. margin-left: 10px;
  21125. min-width: 95px;
  21126. }
  21127. .pButton:hover {
  21128. opacity: 1 !important;
  21129. }
  21130. .pButton {
  21131. position: fixed;
  21132. text-align: center;
  21133. cursor: pointer;
  21134. z-index: 999;
  21135. right: 20px;
  21136. top: 110px;
  21137. width: 50px;
  21138. height: 50px;
  21139. display: flex;
  21140. align-items: center;
  21141. justify-content: center;
  21142. border-radius: 5px;
  21143. }
  21144. .pzClass {
  21145. width: calc(100% - 340px);
  21146. }
  21147. .newDialogCss {
  21148. /* position: fixed;
  21149. right: 5%;
  21150. top: 50%;
  21151. width: 340px;
  21152. transform: translateY(-50%);
  21153. height: 60%;
  21154. box-shadow: 0px 0 8px 0px #555555;
  21155. border-radius: 15px;
  21156. z-index: 999; */
  21157. position: fixed;
  21158. right: 20px;
  21159. top: 101px;
  21160. width: 330px;
  21161. height: calc(100% - 80px);
  21162. z-index: 999;
  21163. background: #fff;
  21164. border-top-right-radius: 0px;
  21165. border-bottom-right-radius: 0px;
  21166. overflow: hidden;
  21167. }
  21168. .pzTop {
  21169. color: #fff;
  21170. background: #000;
  21171. display: flex;
  21172. flex-direction: row;
  21173. flex-wrap: nowrap;
  21174. align-items: center;
  21175. justify-content: space-between;
  21176. height: 40px;
  21177. border-radius: 15px 15px 0 0;
  21178. user-select: none;
  21179. }
  21180. .pzTop2 .checkbox {
  21181. display: flex;
  21182. align-items: center;
  21183. padding: 5px 30px;
  21184. flex: 0 0 auto;
  21185. font-weight: bold;
  21186. border-bottom: 1px solid #eee;
  21187. justify-content: space-between;
  21188. }
  21189. .pzTop2 .check {
  21190. text-align: center;
  21191. cursor: pointer;
  21192. box-sizing: border-box;
  21193. display: flex;
  21194. }
  21195. .pzTop2 img {
  21196. width: 25px;
  21197. cursor: pointer;
  21198. }
  21199. .pzTop > div:nth-child(1) {
  21200. padding-left: 10px;
  21201. }
  21202. .pzTop > div:nth-child(2) {
  21203. width: 15px;
  21204. height: 15px;
  21205. padding-right: 10px;
  21206. cursor: pointer;
  21207. }
  21208. .pzTop > div:nth-child(2) > img {
  21209. width: 100%;
  21210. height: 100%;
  21211. }
  21212. .pzBox,
  21213. .noPzBox {
  21214. height: calc(100% - 60px);
  21215. /* background: #ededed; */
  21216. background: #fff;
  21217. /* border-radius: 0 0 15px 15px; */
  21218. }
  21219. .noPzBox {
  21220. display: flex;
  21221. flex-direction: column;
  21222. flex-wrap: nowrap;
  21223. justify-content: center;
  21224. align-items: center;
  21225. }
  21226. .pzList {
  21227. background: #f7f7f7;
  21228. width: 90%;
  21229. margin: 0 auto 15px;
  21230. border-radius: 5px;
  21231. }
  21232. .pzNavTop {
  21233. display: flex;
  21234. flex-direction: row;
  21235. flex-wrap: nowrap;
  21236. padding: 10px 10px 0 10px;
  21237. align-items: center;
  21238. }
  21239. .pzDelete {
  21240. cursor: pointer;
  21241. margin-left: auto;
  21242. font-size: 14px;
  21243. color: #afafaf;
  21244. }
  21245. .pzNavTop > div:nth-child(1) {
  21246. background: #3760af;
  21247. width: 35px;
  21248. height: 35px;
  21249. color: #fff;
  21250. text-align: center;
  21251. line-height: 35px;
  21252. border-radius: 50%;
  21253. font-size: 14px;
  21254. }
  21255. .pzNavTop > div:nth-child(2) {
  21256. font-size: 18px;
  21257. color: #959595;
  21258. margin-left: 5px;
  21259. }
  21260. .pzContent {
  21261. padding: 10px;
  21262. word-break: break-word;
  21263. }
  21264. .pzContent audio {
  21265. width: 100%;
  21266. }
  21267. .pzContent audio::-webkit-media-controls-panel {
  21268. background: #fff;
  21269. }
  21270. .pzContent >>> img {
  21271. max-width: 100%;
  21272. }
  21273. .pzListBox {
  21274. padding-top: 15px;
  21275. height: calc(100% - 110px);
  21276. overflow: auto;
  21277. }
  21278. .addPzButton {
  21279. position: relative;
  21280. margin-top: 3px;
  21281. width: 100%;
  21282. }
  21283. .addPzButton .img1 {
  21284. position: absolute;
  21285. top: 50%;
  21286. right: 25px;
  21287. transform: translateY(-50%);
  21288. height: 100%;
  21289. display: flex;
  21290. align-items: center;
  21291. }
  21292. .addPzButton .img1 div {
  21293. display: flex;
  21294. }
  21295. .addPzButton .img1 div img {
  21296. width: 28px;
  21297. margin-left: 10px;
  21298. cursor: pointer;
  21299. }
  21300. .addPzButton .img1 div span {
  21301. font-size: 14px;
  21302. margin: 4px 0 0 3px;
  21303. color: #afafaf;
  21304. }
  21305. .addPz {
  21306. background: #4b79ce;
  21307. width: 100px;
  21308. color: #fff;
  21309. font-size: 12px;
  21310. height: 30px;
  21311. margin: 0 auto;
  21312. text-align: center;
  21313. line-height: 30px;
  21314. border-radius: 10px;
  21315. cursor: pointer;
  21316. }
  21317. .addDialogCss {
  21318. position: fixed;
  21319. width: 600px;
  21320. height: 70%;
  21321. min-height: 450px;
  21322. box-shadow: 0px 0 8px 0px #555555;
  21323. border-radius: 15px;
  21324. z-index: 999;
  21325. left: 50%;
  21326. top: 50%;
  21327. margin: -18% 0 0 -300px;
  21328. }
  21329. .teacherPz {
  21330. display: flex;
  21331. flex-direction: row;
  21332. align-items: center;
  21333. flex-wrap: nowrap;
  21334. }
  21335. .teacherPzImg {
  21336. width: 30px;
  21337. height: 30px;
  21338. }
  21339. .teacherPzImg > img {
  21340. width: 100%;
  21341. height: 100%;
  21342. }
  21343. .addPzBox {
  21344. height: calc(100% - 40px);
  21345. background: #ededed;
  21346. border-bottom-left-radius: 15px;
  21347. border-bottom-right-radius: 15px;
  21348. }
  21349. .pzAudioClass {
  21350. margin: 15px 14px;
  21351. background: #fff;
  21352. height: 100%;
  21353. display: flex;
  21354. justify-content: center;
  21355. align-items: center;
  21356. }
  21357. .pzConText {
  21358. width: 95%;
  21359. height: 100%;
  21360. margin: 10px auto 0;
  21361. border: none;
  21362. background: #fff;
  21363. border-radius: 0px;
  21364. }
  21365. .pzConText >>> .text {
  21366. height: calc(100% - 82px);
  21367. }
  21368. .addTextCss {
  21369. background: #4b79ce;
  21370. width: 80px;
  21371. height: 30px;
  21372. text-align: center;
  21373. color: #fff;
  21374. line-height: 30px;
  21375. border-radius: 10px;
  21376. margin: 10px auto 0;
  21377. cursor: pointer;
  21378. }
  21379. .pzConText:focus-visible {
  21380. border: none !important;
  21381. }
  21382. .maxWidth {
  21383. width: 1000px;
  21384. }
  21385. .noPz {
  21386. width: 150px;
  21387. margin: 0 auto 20%;
  21388. }
  21389. .noPz > img {
  21390. width: 100%;
  21391. height: 100%;
  21392. }
  21393. .timeAndReply {
  21394. display: flex;
  21395. flex-direction: row;
  21396. flex-wrap: nowrap;
  21397. justify-content: space-between;
  21398. align-items: center;
  21399. font-size: 14px;
  21400. box-sizing: border-box;
  21401. padding: 0 10px 10px 0px;
  21402. }
  21403. .timeAndReply .time {
  21404. color: #bfbfbf;
  21405. padding: 0 0 0 10px;
  21406. box-sizing: border-box;
  21407. }
  21408. .timeAndReply > div:last-child {
  21409. cursor: pointer;
  21410. color: #777;
  21411. }
  21412. /* table 样式 */
  21413. .cont >>> table {
  21414. border-top: 1px solid #ccc;
  21415. border-left: 1px solid #ccc;
  21416. }
  21417. .cont >>> table td,
  21418. .cont >>> table th {
  21419. border-bottom: 1px solid #ccc;
  21420. border-right: 1px solid #ccc;
  21421. /* padding: 20px 5px; */
  21422. padding: 5px 10px;
  21423. max-width: 0px;
  21424. height: 30px;
  21425. vertical-align: baseline;
  21426. box-sizing: border-box;
  21427. }
  21428. .cont >>> table th {
  21429. border-bottom: 2px solid #ccc;
  21430. text-align: center;
  21431. }
  21432. /* blockquote 样式 */
  21433. .cont >>> blockquote {
  21434. display: block;
  21435. border-left: 8px solid #d0e5f2;
  21436. padding: 5px 10px;
  21437. margin: 10px 0;
  21438. line-height: 1.4;
  21439. font-size: 100%;
  21440. background-color: #f1f1f1;
  21441. }
  21442. /* code 样式 */
  21443. .cont >>> code {
  21444. display: inline-block;
  21445. /* *display: inline; */
  21446. zoom: 1;
  21447. background-color: #f1f1f1;
  21448. border-radius: 3px;
  21449. padding: 3px 5px;
  21450. margin: 0 3px;
  21451. }
  21452. .cont >>> pre code {
  21453. display: block;
  21454. }
  21455. /* ul ol 样式 */
  21456. .cont >>> ul,
  21457. ol {
  21458. margin: 10px 0 10px 20px;
  21459. }
  21460. .addPzCheck {
  21461. display: flex;
  21462. flex-direction: row;
  21463. flex-wrap: nowrap;
  21464. padding: 10px 15px 0;
  21465. }
  21466. .addPzCheck span {
  21467. cursor: pointer;
  21468. padding-bottom: 5px;
  21469. font-weight: bold;
  21470. }
  21471. .addPzCheck span + span {
  21472. margin-left: 10px;
  21473. }
  21474. .addPzCheck .isChooseActive {
  21475. color: #3e88f4;
  21476. border-bottom: 2px solid #2f80f3;
  21477. }
  21478. /* code 样式 */
  21479. .cont {
  21480. /* -webkit-user-modify: read-write; */
  21481. overflow-wrap: break-word;
  21482. -webkit-line-break: after-white-space;
  21483. }
  21484. .scoreBox,
  21485. .scoreDetailBox {
  21486. display: flex;
  21487. align-items: center;
  21488. justify-content: flex-start;
  21489. margin-top: 20px;
  21490. font-size: 18px;
  21491. width: 100%;
  21492. }
  21493. .scoreBox .t,
  21494. .scoreDetailBox .t {
  21495. margin-right: 10px;
  21496. width: 100px;
  21497. text-align: right;
  21498. }
  21499. .scoreDetailBox {
  21500. align-items: flex-start;
  21501. }
  21502. .scoreDetailBox >>> .el-textarea {
  21503. width: calc(100% - 200px);
  21504. }
  21505. .scoreBox >>> .el-input {
  21506. width: 130px;
  21507. font-size: 38px;
  21508. }
  21509. .scoreBox >>> .el-input__inner {
  21510. height: 60px;
  21511. }
  21512. .answerScore {
  21513. position: absolute;
  21514. top: 10px;
  21515. right: 10px;
  21516. background: #0000008f;
  21517. border-radius: 5px;
  21518. padding: 3px 5px;
  21519. font-size: 14px;
  21520. color: #fff;
  21521. cursor: pointer;
  21522. }
  21523. .open_box .switch_box {
  21524. width: 100%;
  21525. margin: 0 auto;
  21526. display: flex;
  21527. justify-content: space-between;
  21528. }
  21529. .open_box .switch_box + .switch_box {
  21530. margin-top: 10px;
  21531. }
  21532. .deleteImg {
  21533. width: 25px !important;
  21534. height: 25px !important;
  21535. cursor: pointer;
  21536. position: absolute;
  21537. top: 10px;
  21538. right: 10px;
  21539. }
  21540. .deleteImg2 {
  21541. width: 15px !important;
  21542. height: 15px !important;
  21543. top: 5px;
  21544. right: 5px;
  21545. }
  21546. .rightW {
  21547. right: 40px;
  21548. }
  21549. .drawPBox {
  21550. display: flex;
  21551. flex-direction: column;
  21552. position: relative;
  21553. }
  21554. .drawPBox span {
  21555. font-size: 18px;
  21556. color: #606266;
  21557. padding-bottom: 10px;
  21558. margin: 10px 0;
  21559. border-bottom: 1px solid #eaeaea;
  21560. }
  21561. .drawPBox img {
  21562. width: 500px;
  21563. height: 300px;
  21564. object-fit: contain;
  21565. cursor: pointer;
  21566. margin: 0 auto;
  21567. }
  21568. .sentenBox {
  21569. background: #fff;
  21570. height: 450px;
  21571. overflow: auto;
  21572. background-image: url("../assets/icon/conSentences/stuBg.png");
  21573. background-position: 102%;
  21574. background-repeat: no-repeat;
  21575. background-size: 60%;
  21576. }
  21577. .addSen {
  21578. background: #409efe;
  21579. width: 90px;
  21580. color: #fff;
  21581. height: 35px;
  21582. text-align: center;
  21583. line-height: 35px;
  21584. border-radius: 5px;
  21585. float: right;
  21586. margin: 10px 20px 0 0;
  21587. cursor: pointer;
  21588. }
  21589. .sentenTop {
  21590. display: flex;
  21591. flex-direction: row;
  21592. flex-wrap: nowrap;
  21593. align-items: center;
  21594. padding: 55px 0 0 20px;
  21595. box-sizing: border-box;
  21596. }
  21597. .sentenTop > div:nth-child(2) {
  21598. width: 300px;
  21599. margin: 0 15px;
  21600. }
  21601. .sentenTop > div:nth-child(3) {
  21602. background: #409efe;
  21603. color: #fff;
  21604. width: 65px;
  21605. height: 35px;
  21606. text-align: center;
  21607. line-height: 35px;
  21608. border-radius: 5px;
  21609. cursor: pointer;
  21610. }
  21611. .cardList,
  21612. .cardList1 {
  21613. padding: 10px 0 10px 0;
  21614. display: flex;
  21615. flex-direction: row;
  21616. flex-wrap: wrap;
  21617. align-items: center;
  21618. box-sizing: border-box;
  21619. border-bottom: 1px solid #f4f4f4;
  21620. width: 98%;
  21621. margin: 0 auto;
  21622. min-width: 60%;
  21623. max-width: 85%;
  21624. }
  21625. .cardList1 {
  21626. padding: 10px 0 10px 10px !important;
  21627. margin: 0 !important;
  21628. }
  21629. .cardBox {
  21630. display: flex;
  21631. flex-direction: row;
  21632. flex-wrap: wrap;
  21633. align-items: center;
  21634. align-content: center;
  21635. }
  21636. .cardBox > div {
  21637. margin-bottom: 10px;
  21638. }
  21639. .isCard,
  21640. .isChooseCard,
  21641. .noCard,
  21642. .isCard1 {
  21643. width: 130px;
  21644. height: 60px;
  21645. text-align: center;
  21646. line-height: 60px;
  21647. font-size: 20px;
  21648. cursor: pointer;
  21649. background-image: url("../assets/icon/conSentences/titleBorder.png");
  21650. background-size: cover;
  21651. transition: all 2s;
  21652. margin-right: 20px;
  21653. }
  21654. .isCard > div,
  21655. .noCard > div,
  21656. .isCard1 > div {
  21657. white-space: nowrap;
  21658. overflow: hidden;
  21659. text-overflow: ellipsis;
  21660. width: 75%;
  21661. margin: 0 auto;
  21662. }
  21663. .noCard {
  21664. background-image: none;
  21665. }
  21666. .isCard1 {
  21667. background-image: url("../assets/icon/conSentences/answerBorder.png");
  21668. }
  21669. .isChooseCard {
  21670. background-image: none;
  21671. border: 1px dashed #b9b9b9;
  21672. border-radius: 10px;
  21673. }
  21674. .card {
  21675. width: 130px;
  21676. height: 60px;
  21677. }
  21678. .card > img {
  21679. width: 100%;
  21680. height: 100%;
  21681. }
  21682. .rightCardBox {
  21683. margin: 10px 0 0 10px;
  21684. }
  21685. .rightCardBox > div:nth-child(1) {
  21686. margin-bottom: 10px;
  21687. }
  21688. .cardCss {
  21689. display: flex;
  21690. flex-direction: column;
  21691. flex-wrap: nowrap;
  21692. align-items: center;
  21693. border-bottom: 3px solid #b4c3d3;
  21694. padding: 0 0 5px 0;
  21695. margin-right: 10px;
  21696. }
  21697. .cardCss > div:nth-child(2) {
  21698. background: #5b7b9d;
  21699. color: #fff;
  21700. width: 20px;
  21701. height: 20px;
  21702. border-radius: 50%;
  21703. text-align: center;
  21704. line-height: 20px;
  21705. }
  21706. .isWrong {
  21707. display: flex;
  21708. flex-direction: row;
  21709. flex-wrap: nowrap;
  21710. align-content: center;
  21711. align-items: center;
  21712. }
  21713. .answerRight {
  21714. width: 25%;
  21715. }
  21716. .isTj {
  21717. display: flex;
  21718. flex-direction: row;
  21719. flex-wrap: nowrap;
  21720. align-items: center;
  21721. }
  21722. .isTj > div:nth-child(2) {
  21723. color: #727070;
  21724. margin-left: 10px;
  21725. }
  21726. .isTjImg {
  21727. width: 30px;
  21728. height: 30px;
  21729. }
  21730. .isTjImg > img {
  21731. width: 100%;
  21732. height: 100%;
  21733. }
  21734. .cardAnswerBox {
  21735. font-size: 18px;
  21736. width: 97%;
  21737. border: 5px;
  21738. padding: 0;
  21739. border-radius: 5px;
  21740. margin: 10px auto;
  21741. word-break: break-word;
  21742. }
  21743. .w_name {
  21744. margin-bottom: 10px;
  21745. }
  21746. .w_name span {
  21747. font-size: 16px;
  21748. }
  21749. .w_teachert {
  21750. width: 50px !important;
  21751. position: absolute;
  21752. height: auto !important;
  21753. z-index: 10;
  21754. right: 25px;
  21755. top: -25px;
  21756. }
  21757. .group_workBox {
  21758. }
  21759. .group_workBox + .group_workBox {
  21760. margin-top: 20px;
  21761. }
  21762. .group_box {
  21763. padding-bottom: 20px;
  21764. border-bottom: 2px solid #f0f0f0;
  21765. margin-top: 10px;
  21766. }
  21767. .group_title {
  21768. display: flex;
  21769. align-items: center;
  21770. justify-content: space-between;
  21771. width: 95%;
  21772. }
  21773. .group_name {
  21774. background-image: url(../assets/icon/groupN.png);
  21775. width: 220px;
  21776. background-size: 100% 100%;
  21777. height: 67px;
  21778. padding: 0 20px 0 43px;
  21779. box-sizing: border-box;
  21780. line-height: 63px;
  21781. color: #fff;
  21782. overflow: hidden;
  21783. white-space: nowrap;
  21784. text-overflow: ellipsis;
  21785. }
  21786. .group_work {
  21787. width: 100%;
  21788. padding: 0 10px;
  21789. box-sizing: border-box;
  21790. display: flex;
  21791. flex-wrap: wrap;
  21792. }
  21793. .g_d_box {
  21794. display: flex;
  21795. flex-flow: wrap;
  21796. justify-content: space-around;
  21797. }
  21798. .g_d_box .isChair {
  21799. background-image: url(../assets/avatar.png) !important;
  21800. }
  21801. .g_d_group {
  21802. width: 500px;
  21803. margin-bottom: 80px;
  21804. }
  21805. .g_d_group_chair {
  21806. display: flex;
  21807. align-items: center;
  21808. justify-content: center;
  21809. }
  21810. .g_d_group_chair > div + div {
  21811. margin-left: 30px;
  21812. }
  21813. .g_d_group_chair > div,
  21814. .g_d_group_chair2 > div {
  21815. display: flex;
  21816. flex-direction: column;
  21817. align-items: center;
  21818. }
  21819. .g_d_group_chair > div > span:nth-child(1),
  21820. .g_d_group_chair2 > div > span:nth-child(1) {
  21821. background-image: url(../assets/icon/chair.png);
  21822. width: 50px;
  21823. height: 50px;
  21824. display: block;
  21825. background-size: 100% 100%;
  21826. }
  21827. .g_d_group_tableBox {
  21828. display: flex;
  21829. align-items: center;
  21830. justify-content: center;
  21831. }
  21832. .g_d_group_chair2 {
  21833. display: flex;
  21834. flex-direction: column;
  21835. align-items: center;
  21836. justify-content: center;
  21837. }
  21838. .g_d_group_chair2 > div + div {
  21839. margin-top: 10px;
  21840. }
  21841. .g_d_group_table {
  21842. background-image: url(../assets/icon/groupBg.png);
  21843. width: 354px;
  21844. height: 196px;
  21845. background-size: 100% 100%;
  21846. display: flex;
  21847. align-items: center;
  21848. justify-content: center;
  21849. flex-direction: column;
  21850. color: #fff;
  21851. }
  21852. .g_d_group_table > div:nth-child(1) {
  21853. font-size: 24px;
  21854. margin-bottom: 5px;
  21855. }
  21856. .g_d_group_table > div:nth-child(2) div {
  21857. cursor: pointer;
  21858. background: #2e77bf;
  21859. padding: 4px 10px;
  21860. border-radius: 5px;
  21861. }
  21862. .groupBox {
  21863. }
  21864. .groupContent + .groupContent {
  21865. margin-top: 30px;
  21866. }
  21867. .groupTitle {
  21868. font-size: 24px;
  21869. color: rgb(80, 80, 80);
  21870. margin-bottom: 20px;
  21871. }
  21872. .groupName {
  21873. display: flex;
  21874. align-items: center;
  21875. }
  21876. .groupn {
  21877. font-size: 15px;
  21878. margin-right: 10px;
  21879. }
  21880. .groupName + .groupName {
  21881. margin-top: 15px;
  21882. }
  21883. .groupBtn {
  21884. margin-left: 10px;
  21885. }
  21886. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  21887. text-align: left;
  21888. }
  21889. .g_d_btnBox {
  21890. display: flex;
  21891. justify-content: flex-end;
  21892. align-items: center;
  21893. margin-bottom: 20px;
  21894. }
  21895. .updateChair {
  21896. position: relative;
  21897. }
  21898. .updateChairBtn {
  21899. position: absolute;
  21900. width: 50px;
  21901. height: 50px;
  21902. overflow: hidden;
  21903. /* display: flex; */
  21904. align-items: center;
  21905. justify-content: center;
  21906. background: #00000087;
  21907. color: #fff;
  21908. border-radius: 50px;
  21909. display: none;
  21910. cursor: pointer;
  21911. }
  21912. .updateChair:hover .updateChairBtn {
  21913. display: flex;
  21914. }
  21915. .group_staic_box {
  21916. display: flex;
  21917. padding: 30px 40px 10px;
  21918. flex-wrap: wrap;
  21919. }
  21920. .group_staic {
  21921. /* width: 50%; */
  21922. margin-bottom: 20px;
  21923. display: flex;
  21924. align-items: center;
  21925. }
  21926. .group_staic span:nth-child(1) {
  21927. width: 150px;
  21928. text-align: right;
  21929. margin-right: 15px;
  21930. }
  21931. .group_staic span:nth-child(2) {
  21932. background: rgb(0 123 255);
  21933. color: #fff;
  21934. border-radius: 5px;
  21935. padding: 5px;
  21936. }
  21937. .codeFileBox {
  21938. height: 300px;
  21939. background: #fff;
  21940. display: flex;
  21941. align-items: center;
  21942. justify-content: center;
  21943. }
  21944. .codeFileBox img {
  21945. width: 200px;
  21946. margin: 0;
  21947. height: auto;
  21948. }
  21949. .codeFileBox div {
  21950. background: rgb(80, 142, 226);
  21951. color: #fff;
  21952. padding: 10px 20px;
  21953. border-radius: 25px;
  21954. cursor: pointer;
  21955. margin-left: 15px;
  21956. }
  21957. .radioBox {
  21958. display: flex;
  21959. flex-direction: column;
  21960. flex-wrap: nowrap;
  21961. align-items: flex-start;
  21962. }
  21963. .radioBox > div {
  21964. margin: 10px 0 0 10px;
  21965. }
  21966. /* .radioBox >>> .el-radio__input,
  21967. .radioBox >>> .el-checkbox__inner {
  21968. margin-left: 10px;
  21969. } */
  21970. .radioBox >>> .el-radio__label,
  21971. .radioBox >>> .el-checkbox__label {
  21972. display: flex;
  21973. align-items: center;
  21974. width: 100%;
  21975. }
  21976. .radioBox >>> .el-radio__label > span {
  21977. width: 100%;
  21978. display: -webkit-box;
  21979. overflow: hidden;
  21980. white-space: normal !important;
  21981. text-overflow: ellipsis;
  21982. word-wrap: break-word;
  21983. }
  21984. .inImg {
  21985. width: 100px;
  21986. cursor: pointer;
  21987. }
  21988. .inImg > img {
  21989. width: 100%;
  21990. height: 100%;
  21991. object-fit: cover;
  21992. }
  21993. .timuImgBox {
  21994. margin: 10px 0;
  21995. display: flex;
  21996. flex-direction: column;
  21997. flex-wrap: wrap;
  21998. align-items: flex-start;
  21999. }
  22000. .timuImg {
  22001. width: 150px;
  22002. margin: 5px 0;
  22003. cursor: pointer;
  22004. }
  22005. .timuImg > img {
  22006. width: 100%;
  22007. height: 100%;
  22008. object-fit: cover;
  22009. }
  22010. .worksTop {
  22011. display: flex;
  22012. flex-direction: row;
  22013. align-items: flex-end;
  22014. }
  22015. .worksTitle{
  22016. display: flex;
  22017. flex-direction: row;
  22018. flex-wrap: nowrap;
  22019. align-items: center;
  22020. }
  22021. .worksTitle::before,.worksTop::before{
  22022. content: '';
  22023. display: block;
  22024. width: 3px;
  22025. height: 20px;
  22026. background: #0061FF;
  22027. border-radius: 3px;
  22028. margin: 0 5px 0 0;
  22029. }
  22030. .corOpen {
  22031. margin: 0 0 0 10px;
  22032. font-size: 14px;
  22033. cursor: pointer;
  22034. color: #505050;
  22035. }
  22036. .corOpen:hover {
  22037. color: #499eef;
  22038. }
  22039. .navCorOpenBox {
  22040. display: flex;
  22041. flex-direction: row;
  22042. align-items: center;
  22043. justify-content: space-between;
  22044. height: 55px;
  22045. background: #ffffff;
  22046. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  22047. border-radius: 8px 8px 0px 0px;
  22048. z-index: 9;
  22049. position: relative;
  22050. }
  22051. .navCorOpen {
  22052. padding-right: 15px;
  22053. cursor: pointer;
  22054. width: 45px;
  22055. display: flex;
  22056. }
  22057. .navCorOpen > img {
  22058. width: 100%;
  22059. height: 100%;
  22060. }
  22061. .mlImg {
  22062. width: 45px !important;
  22063. min-width: 45px;
  22064. cursor: pointer;
  22065. transform: rotate(180deg);
  22066. }
  22067. .mlImg > img {
  22068. width: 100%;
  22069. height: 100%;
  22070. }
  22071. .navLeftCss {
  22072. width: 100% !important;
  22073. left: 0 !important;
  22074. }
  22075. .isContentCss {
  22076. width: 100% !important;
  22077. }
  22078. .isAllWidth {
  22079. width: 100% !important;
  22080. }
  22081. .group_switch {
  22082. margin-right: 10px;
  22083. height: 30px;
  22084. display: flex;
  22085. align-items: center;
  22086. }
  22087. .group_switch > span {
  22088. margin-right: 5px;
  22089. }
  22090. .fileC_box {
  22091. padding-top: 15px;
  22092. }
  22093. .fileC_box > .fileC_title {
  22094. padding: 10px 5px 14px 11px;
  22095. border-top: 1px solid #cad1dc;
  22096. font-size: 14px;
  22097. font-weight: 400;
  22098. color: #cad1dc;
  22099. width: 88%;
  22100. margin: 0 auto;
  22101. }
  22102. .pl_select_box {
  22103. height: 40px;
  22104. line-height: 40px;
  22105. width: 100%;
  22106. cursor: pointer;
  22107. padding: 0 20px;
  22108. box-sizing: border-box;
  22109. border-radius: 5px;
  22110. border: 1px solid #d6d6d6;
  22111. white-space: nowrap;
  22112. overflow: hidden;
  22113. text-overflow: ellipsis;
  22114. background: #fff;
  22115. text-align: left;
  22116. }
  22117. .newButton {
  22118. width: 102px;
  22119. height: 36px;
  22120. background: #e7ebf1;
  22121. border-radius: 4px;
  22122. color: #0e1e33;
  22123. font-weight: 400;
  22124. font-size: 14px;
  22125. border: none;
  22126. float: right;
  22127. margin-left: 10px;
  22128. }
  22129. .el-table >>> .even_row {
  22130. background-color: #f0f4fa;
  22131. }
  22132. .stageBoxCss,
  22133. .stageBoxIsCss {
  22134. display: flex;
  22135. flex-direction: row;
  22136. flex-wrap: nowrap;
  22137. align-items: center;
  22138. height: 50px;
  22139. border-bottom: 1px solid #e2f5fc;
  22140. cursor: pointer;
  22141. width: 100%;
  22142. }
  22143. .stageBoxIsCss {
  22144. background: #0061ff;
  22145. color: #fff;
  22146. border-radius: 8px;
  22147. }
  22148. .stageItemTitle {
  22149. display: flex;
  22150. flex-direction: row;
  22151. flex-wrap: nowrap;
  22152. align-items: center;
  22153. margin-left: 15px;
  22154. width: calc(100% - 50px);
  22155. }
  22156. .stageItemTitle > div:first-child {
  22157. font-size: 16px;
  22158. font-weight: bold;
  22159. min-width: 55px;
  22160. }
  22161. .stageItemTitle > div:last-child {
  22162. font-size: 15px;
  22163. font-weight: 600;
  22164. max-width: 242px;
  22165. white-space: nowrap;
  22166. overflow: hidden;
  22167. text-overflow: ellipsis;
  22168. word-break: break-word;
  22169. width: calc(100% - 55px);
  22170. }
  22171. .closeTri,
  22172. .closeTri1 {
  22173. min-width: 15px;
  22174. width: 15px;
  22175. height: 15px;
  22176. }
  22177. .closeTri1 {
  22178. padding-left: 10px;
  22179. cursor: pointer;
  22180. }
  22181. .closeTri > img,
  22182. .closeTri1 > img {
  22183. width: 100%;
  22184. height: 100%;
  22185. }
  22186. .noToolBlue {
  22187. min-width: 10px;
  22188. width: 10px;
  22189. height: 10px;
  22190. background: #0061ff;
  22191. border-radius: 50%;
  22192. margin-left: 13px;
  22193. }
  22194. .stageChild,
  22195. .toolChild {
  22196. height: 0;
  22197. overflow: hidden;
  22198. transition: all 0.5s;
  22199. }
  22200. .toolChild {
  22201. margin: 0 0 0 17px;
  22202. padding: 0 0 0 20px;
  22203. border-left: 1px solid #d7d7d7;
  22204. }
  22205. .gjCss {
  22206. display: flex;
  22207. flex-direction: row;
  22208. flex-wrap: nowrap;
  22209. align-items: center;
  22210. padding: 15px 0;
  22211. box-sizing: border-box;
  22212. font-size: 14px;
  22213. cursor: pointer;
  22214. }
  22215. .toolChild > div {
  22216. position: relative;
  22217. }
  22218. .toolChild > div::before {
  22219. content: "";
  22220. width: 15px;
  22221. height: 1px;
  22222. background: #cad1dc;
  22223. position: absolute;
  22224. top: 24px;
  22225. left: -20px;
  22226. display: block;
  22227. }
  22228. .isGjCss {
  22229. color: #0061ff;
  22230. }
  22231. .navItem {
  22232. background: #ffffff;
  22233. border-radius: 4px;
  22234. width: 100%;
  22235. margin: 10px auto 0;
  22236. position: relative;
  22237. height: 40px;
  22238. display: flex;
  22239. flex-direction: row;
  22240. flex-wrap: nowrap;
  22241. align-items: center;
  22242. }
  22243. .navItemList {
  22244. display: flex;
  22245. flex-direction: row;
  22246. flex-wrap: nowrap;
  22247. align-items: center;
  22248. padding: 0 13px;
  22249. cursor: pointer;
  22250. width: calc(100% - 60px);
  22251. height: 100%;
  22252. }
  22253. .navItemList > div:first-child {
  22254. min-width: 60px;
  22255. }
  22256. .navItemList > div:last-child {
  22257. width: calc(100% - 80px);
  22258. white-space: nowrap;
  22259. overflow: hidden;
  22260. text-overflow: ellipsis;
  22261. word-break: break-word;
  22262. }
  22263. /* .isItemList > div {
  22264. color: #fff !important;
  22265. } */
  22266. .tool_work_box {
  22267. width: 100%;
  22268. padding: 0 37px 0;
  22269. box-sizing: border-box;
  22270. }
  22271. .tool_box {
  22272. width: 100%;
  22273. padding: 0 0 0 20px;
  22274. }
  22275. .tool_type_box {
  22276. display: flex;
  22277. flex-direction: row;
  22278. align-items: baseline;
  22279. flex-wrap: nowrap;
  22280. justify-content: flex-start;
  22281. position: relative;
  22282. }
  22283. .toolSort {
  22284. display: flex;
  22285. flex-direction: row;
  22286. flex-wrap: wrap;
  22287. justify-content: flex-start;
  22288. align-items: flex-start;
  22289. padding: 0 0 15px 0;
  22290. }
  22291. .toolSort > div {
  22292. margin: 0 10px 0 0;
  22293. width: 135px;
  22294. box-sizing: border-box;
  22295. border: 2px solid transparent;
  22296. }
  22297. .tools {
  22298. width: 100%;
  22299. display: flex;
  22300. flex-direction: column;
  22301. flex-wrap: nowrap;
  22302. align-items: flex-start;
  22303. }
  22304. .whiteBIcon {
  22305. width: fit-content;
  22306. cursor: pointer;
  22307. display: flex;
  22308. flex-direction: column;
  22309. flex-wrap: nowrap;
  22310. align-items: center;
  22311. font-size: 14px;
  22312. }
  22313. .tool:hover {
  22314. border: 2px solid #a5c7ff;
  22315. border-radius: 5px;
  22316. }
  22317. .whiteBIcon > img {
  22318. width: 65px;
  22319. height: 100%;
  22320. }
  22321. .whiteBIcon > img {
  22322. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  22323. border-radius: 15px;
  22324. }
  22325. .check {
  22326. /* width: 20px;
  22327. height: 20px; */
  22328. cursor: pointer;
  22329. margin: 10px 0;
  22330. position: absolute;
  22331. right: 2px;
  22332. top: -5px;
  22333. }
  22334. .noChoose,
  22335. .isChoose {
  22336. width: 15px;
  22337. height: 15px;
  22338. border-radius: 50%;
  22339. border: 1px solid #adadad;
  22340. }
  22341. .isChoose {
  22342. border: 4px solid #0363ff !important;
  22343. width: 10px;
  22344. height: 10px;
  22345. }
  22346. .isToolChoose {
  22347. border: 2px solid #5394ff !important;
  22348. border-radius: 5px;
  22349. box-shadow: 0 0 6px 0px #5394ff;
  22350. }
  22351. .checkDiv {
  22352. display: flex;
  22353. align-items: center;
  22354. }
  22355. .checkDiv span {
  22356. margin-left: 5px;
  22357. color: #858585;
  22358. }
  22359. .check img {
  22360. width: 20px;
  22361. height: 20px;
  22362. }
  22363. .lockTaskIcon {
  22364. width: 20px;
  22365. height: 20px;
  22366. position: absolute;
  22367. right: 10px;
  22368. top: 5px;
  22369. }
  22370. .lockTaskIcon > img {
  22371. width: 100%;
  22372. height: 100%;
  22373. }
  22374. .pick_box {
  22375. display: flex;
  22376. align-items: flex-start;
  22377. flex-wrap: wrap;
  22378. }
  22379. .selectBox {
  22380. width: 110px;
  22381. margin-left: 10px;
  22382. margin: 0 10px 0 auto;
  22383. }
  22384. .selectBox >>> .el-input__inner {
  22385. height: 30px;
  22386. line-height: 30px;
  22387. }
  22388. .selectBox >>> .el-input__icon {
  22389. line-height: 30px;
  22390. }
  22391. .sentenceTitle {
  22392. display: flex;
  22393. flex-direction: row;
  22394. flex-wrap: nowrap;
  22395. align-items: center;
  22396. }
  22397. .sentenceTitle::before {
  22398. content: attr(index);
  22399. background: #3681fc;
  22400. border-radius: 50%;
  22401. color: #fff;
  22402. width: 25px;
  22403. height: 25px;
  22404. min-width: 25px;
  22405. min-height: 25px;
  22406. text-align: center;
  22407. line-height: 25px;
  22408. margin-right: 5px;
  22409. }
  22410. .hfBox {
  22411. padding: 10px;
  22412. box-sizing: border-box;
  22413. }
  22414. .whoReplyWho {
  22415. display: flex;
  22416. flex-direction: row;
  22417. flex-wrap: nowrap;
  22418. align-items: baseline;
  22419. justify-content: flex-start;
  22420. }
  22421. .hfBottom {
  22422. display: flex;
  22423. flex-direction: row;
  22424. flex-wrap: nowrap;
  22425. align-items: center;
  22426. justify-content: space-between;
  22427. font-size: 14px;
  22428. }
  22429. .deleteHfItem {
  22430. cursor: pointer;
  22431. width: 20px;
  22432. height: 20px;
  22433. }
  22434. .deleteHfItem > img {
  22435. width: 100%;
  22436. height: 100%;
  22437. }
  22438. .whoReplyWho > .hfImg {
  22439. width: 12px;
  22440. height: 12px;
  22441. margin: 0 5px;
  22442. }
  22443. .whoReplyWho > .hfImg > img {
  22444. width: 100%;
  22445. height: 100%;
  22446. }
  22447. .hfContent {
  22448. padding-top: 10px;
  22449. box-sizing: border-box;
  22450. display: -webkit-box;
  22451. overflow: hidden;
  22452. white-space: normal !important;
  22453. text-overflow: ellipsis;
  22454. word-wrap: break-word;
  22455. -webkit-box-orient: vertical;
  22456. }
  22457. .hfTime {
  22458. text-align: left;
  22459. box-sizing: border-box;
  22460. padding: 10px 0 10px 0px;
  22461. color: #bfbfbf;
  22462. font-size: 14px;
  22463. }
  22464. .btnAllNT {
  22465. position: fixed;
  22466. bottom: 100px;
  22467. right: 40px;
  22468. z-index: 999;
  22469. display: flex;
  22470. flex-direction: row;
  22471. }
  22472. .btnAllNT > img {
  22473. cursor: pointer;
  22474. width: 80px;
  22475. }
  22476. .toolMask {
  22477. position: fixed;
  22478. width: 100%;
  22479. height: 100%;
  22480. background: #3f3c3c;
  22481. opacity: 0.5;
  22482. top: 0;
  22483. left: 0;
  22484. z-index: 999;
  22485. }
  22486. .addToolCss {
  22487. position: fixed;
  22488. z-index: 999;
  22489. background: #fff;
  22490. right: 5%;
  22491. bottom: 18%;
  22492. min-width: 1035px;
  22493. min-height: 300px;
  22494. border-radius: 10px;
  22495. box-shadow: 0 0 8px 1px #b2b2b2;
  22496. }
  22497. .toolTop {
  22498. display: flex;
  22499. flex-direction: row;
  22500. flex-wrap: nowrap;
  22501. justify-content: space-between;
  22502. align-items: center;
  22503. padding: 20px;
  22504. }
  22505. .toolTop > div:nth-child(2) {
  22506. width: 15px;
  22507. height: 15px;
  22508. padding-right: 10px;
  22509. cursor: pointer;
  22510. }
  22511. .toolTop > div:nth-child(2) > img {
  22512. width: 100%;
  22513. height: 100%;
  22514. }
  22515. .fullStyle>>>.el-dialog__body {
  22516. height: calc(100% - 125px) !important;
  22517. box-sizing: border-box;
  22518. padding: 30px 0 !important;
  22519. background: #fff !important;
  22520. }
  22521. .fullStyle>>>.el-dialog {
  22522. width: 100% !important;
  22523. max-width: 100% !important;
  22524. height: 100% !important;
  22525. margin: 0 !important;
  22526. }
  22527. .fullStyle {
  22528. width: 100% !important;
  22529. max-width: 100% !important;
  22530. height: 100% !important;
  22531. margin: 0 auto !important;
  22532. }
  22533. .fullStyle>>>.el-dialog__footer{
  22534. background: #fff !important;
  22535. }
  22536. .engUpBox {
  22537. width: 100%;
  22538. height: 100%;
  22539. }
  22540. .engTitle,
  22541. .engText {
  22542. display: flex;
  22543. flex-direction: row;
  22544. flex-wrap: nowrap;
  22545. align-items: flex-start;
  22546. padding: 0 20px 20px 20px;
  22547. box-sizing: border-box;
  22548. }
  22549. .engTitle > .div:first-child,
  22550. .engText > div:first-child {
  22551. min-width: 75px;
  22552. }
  22553. .correctBox{
  22554. width: 100%;
  22555. display: flex;
  22556. flex-direction: row;
  22557. flex-wrap: nowrap;
  22558. align-items: flex-start;
  22559. }
  22560. .oldBox{
  22561. width: 50%;
  22562. height: 100%;
  22563. display: flex;
  22564. flex-direction: column;
  22565. flex-wrap: nowrap;
  22566. align-items: center;
  22567. border-top: 1px solid #d9d9d9;
  22568. border-left: 1px solid #d9d9d9;
  22569. border-right: 1px solid #d9d9d9;
  22570. }
  22571. .oldBox>div:first-child{
  22572. width: 100%;
  22573. text-align: center;
  22574. background: #d9d9d9;
  22575. height: 35px;
  22576. line-height: 35px;
  22577. font-weight: bold;
  22578. }
  22579. .oldText{
  22580. width: 100%;
  22581. height: 100%;
  22582. display: flex;
  22583. flex-direction: column;
  22584. flex-wrap: nowrap;
  22585. align-content: center;
  22586. justify-content: center;
  22587. align-items: center;
  22588. }
  22589. .detailBox{
  22590. width: 50%;
  22591. padding: 10px;
  22592. background: #f6f6f6;
  22593. border-radius: 5px;
  22594. }
  22595. .oldDetail,.oldDetail1{
  22596. padding-bottom: 30px;
  22597. }
  22598. .oldDetail1>div:last-child{
  22599. max-height: 400px;
  22600. overflow: auto;
  22601. }
  22602. .oldImg{
  22603. width:30px;
  22604. height: 30px;
  22605. }
  22606. .oldImg>img{
  22607. width: 100%;
  22608. height: 100%;
  22609. }
  22610. .allName{
  22611. min-width: 200px;
  22612. white-space: nowrap;
  22613. overflow: hidden;
  22614. text-overflow: ellipsis;
  22615. word-break: break-word;
  22616. cursor: pointer;
  22617. text-align: center;
  22618. border: 1px solid #bcc2cc;
  22619. box-sizing: border-box;
  22620. }
  22621. .engUpTop{
  22622. max-height: 300px;
  22623. overflow: auto;
  22624. }
  22625. </style>