studyStudent.vue 755 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211
  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. <img
  26. src="../../assets/icon/learn/last.png"
  27. @click="nextOrpreSteps(0)"
  28. />
  29. <img
  30. src="../../assets/icon/learn/next.png"
  31. @click="nextOrpreSteps(1)"
  32. />
  33. <img
  34. src="../../assets/icon/learn/return.png"
  35. @click.stop="
  36. goTo(
  37. '/courseDetail?userid=' +
  38. userid +
  39. '&oid=' +
  40. oid +
  41. '&org=' +
  42. org +
  43. '&cid=' +
  44. classId +
  45. '&courseId=' +
  46. id +
  47. '&tType=' +
  48. tType +
  49. '&screenType=' +
  50. screenType
  51. )
  52. "
  53. />
  54. </div>
  55. <div
  56. class="pButton"
  57. style="left: 0; top: 140px"
  58. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  59. @click="setContent2(true)"
  60. >
  61. <!-- 批 , getCourseDetail()-->
  62. <img
  63. src="../../assets/icon/newIcons/isRight.png"
  64. style="width: 45px"
  65. alt=""
  66. />
  67. </div>
  68. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  69. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  70. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  71. <div class="courseTitle">
  72. <div
  73. style="
  74. max-width: calc(100% - 40px);
  75. width: auto;
  76. white-space: nowrap;
  77. overflow: hidden;
  78. text-overflow: ellipsis;
  79. word-break: break-word;
  80. display: block;
  81. "
  82. >
  83. <el-tooltip
  84. effect="light"
  85. :content="courseDetail.title"
  86. placement="top"
  87. >
  88. <div class="ctitle">
  89. {{ courseDetail.title }}
  90. </div>
  91. </el-tooltip>
  92. </div>
  93. <el-tooltip effect="light" content="收缩" placement="top">
  94. <div class="mlImg" @click="setContent2(false)">
  95. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  96. </div>
  97. </el-tooltip>
  98. </div>
  99. <div
  100. class="inviteBox"
  101. v-if="tcid && inviteCode"
  102. style="padding: 0 0 15px 0"
  103. >
  104. <div>
  105. <span>随机码:{{ inviteCode }}</span>
  106. </div>
  107. </div>
  108. </div>
  109. <div class="cru_selectBox">
  110. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  111. <div class="stageChild" :class="{ navActive: item.isOpen }">
  112. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  113. <div
  114. class="navItem"
  115. :class="{
  116. openTaskActive:
  117. navIndex == taskCount &&
  118. nav.id == navId &&
  119. stageIndex == courseType,
  120. }"
  121. >
  122. <div v-if="nav.tool[0].tool != undefined">
  123. <div
  124. class="closeTri1"
  125. v-if="nav.isOpen"
  126. @click="openTask(stageIndex, navIndex, nav.id)"
  127. >
  128. <img src="../../assets/icon/newIcons/bDown.png" alt />
  129. </div>
  130. <div
  131. class="closeTri1"
  132. v-else
  133. @click="openTask(stageIndex, navIndex, nav.id)"
  134. >
  135. <img src="../../assets/icon/newIcons/right.png" alt />
  136. </div>
  137. </div>
  138. <div v-else class="noToolBlue"></div>
  139. <div
  140. @click="openTask(stageIndex, navIndex, nav.id)"
  141. class="navItemList"
  142. :class="{
  143. isItemList:
  144. navIndex == taskCount &&
  145. nav.id == navId &&
  146. stageIndex == courseType,
  147. }"
  148. >
  149. <div>任务{{ navIndex + 1 }}:</div>
  150. <el-tooltip
  151. effect="light"
  152. :content="nav.taskName"
  153. placement="top"
  154. >
  155. <div
  156. :style="{
  157. width:
  158. IsLookOpen && !nav.isLook
  159. ? 'calc(100% - 75px)'
  160. : 'auto',
  161. }"
  162. >
  163. {{ nav.taskName }}
  164. </div>
  165. </el-tooltip>
  166. </div>
  167. </div>
  168. <div
  169. v-if="nav.tool[0].tool != undefined"
  170. class="toolChild"
  171. :class="{ toolActive: nav.isOpen }"
  172. >
  173. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  174. <div
  175. class="gjCss"
  176. :class="{
  177. isGjCss: t.isTool,
  178. }"
  179. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  180. >
  181. <div>工具{{ toolIndex2 + 1 }}:</div>
  182. <div v-if="t.tool == 58">模拟驾驶</div>
  183. <div v-if="t.tool == 59">路径搜索</div>
  184. <div v-if="t.tool == 60">深度学习</div>
  185. <div v-if="t.tool == 10">倒计时</div>
  186. <div v-if="t.tool == 65">挑人</div>
  187. <div v-if="t.tool == 7">思维网格</div>
  188. <div v-if="t.tool == 1">电子白板</div>
  189. <div v-if="t.tool == 52">文档</div>
  190. <div v-if="t.tool == 3">思维导图</div>
  191. <div v-if="t.tool == 48">表格</div>
  192. <div v-if="t.tool == 49">学生分组</div>
  193. <div v-if="t.tool == 4">问卷调查</div>
  194. <div v-if="t.tool == 45">选择题</div>
  195. <div v-if="t.tool == 15">问答</div>
  196. <div v-if="t.tool == 16">作业提交</div>
  197. <div v-if="t.tool == 50">批量上传</div>
  198. <div v-if="t.tool == 41">选择匹配</div>
  199. <div v-if="t.tool == 47">排序</div>
  200. <div v-if="t.tool == 40">个人评价</div>
  201. <div v-if="t.tool == 18">训练平台</div>
  202. <div v-if="t.tool == 21">AIoT Blockly</div>
  203. <div v-if="t.tool == 23">AI Python</div>
  204. <div v-if="t.tool == 24">AI Blockly</div>
  205. <div v-if="t.tool == 32">源码编辑</div>
  206. <div v-if="t.tool == 57">CocoPi</div>
  207. <div v-if="t.tool == 63">海龟编程</div>
  208. <div v-if="t.tool == 28">翻译</div>
  209. <div v-if="t.tool == 31">数字画板</div>
  210. <div v-if="t.tool == 39">GeoGebra</div>
  211. <div v-if="t.tool == 66">公式编辑</div>
  212. <div v-if="t.tool == 67">分子结构</div>
  213. <div v-if="t.tool == 68">时间轴</div>
  214. <div v-if="t.tool == 69">英语写作</div>
  215. <div v-if="t.tool == 25">目标管理</div>
  216. <div v-if="t.tool == 26">课程设计</div>
  217. <div v-if="t.tool == 62">交互视频</div>
  218. </div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  227. <div class="new_topFixed"></div>
  228. <div class="new_top" :class="{ navLeftCss: !mlDialog }">
  229. <div class="courseIndex">
  230. <div>任务{{ taskCount + 1 }}</div>
  231. <el-tooltip
  232. effect="light"
  233. :content="
  234. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  235. "
  236. placement="top"
  237. >
  238. <div>
  239. {{
  240. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  241. .task
  242. }}
  243. </div>
  244. </el-tooltip>
  245. </div>
  246. <div class="btnAll">
  247. <div class="btnLeft">
  248. <el-tooltip effect="light" content="刷新" placement="top">
  249. <div class="reBtnIcon" @click="refreshCourse">
  250. <span>刷新</span>
  251. </div>
  252. </el-tooltip>
  253. <el-tooltip effect="light" content="评论" placement="top">
  254. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  255. <span>评论</span>
  256. </div>
  257. </el-tooltip>
  258. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  259. <el-tooltip effect="light" content="录制" placement="top">
  260. <div class="vedioIcon" @click="startRecording">
  261. <span>录制</span>
  262. </div>
  263. </el-tooltip>
  264. </div>
  265. <div v-else-if="tType == 1 || tType == 4">
  266. <el-tooltip effect="light" content="下载" placement="top">
  267. <div class="vedioIcon1" @click="stopRecording">
  268. <span>下载</span>
  269. </div>
  270. </el-tooltip>
  271. </div>
  272. </div>
  273. <div class="btnRight">
  274. <div
  275. class="last"
  276. @click="nextOrpreSteps(0)"
  277. v-if="!(IsFollow && tType == 2)"
  278. @mouseover="isHovered = true"
  279. @mouseout="isHovered = false"
  280. >
  281. <div class="lastImg">
  282. <img
  283. :src="
  284. isHovered
  285. ? require('../../assets/icon/newIcons/whiteLast.png')
  286. : require('../../assets/icon/newIcons/last.png')
  287. "
  288. alt=""
  289. />
  290. </div>
  291. <div class="lastText">上一步</div>
  292. </div>
  293. <div
  294. class="last"
  295. @click="nextOrpreSteps(1)"
  296. v-if="!(IsFollow && tType == 2)"
  297. @mouseover="isHovered1 = true"
  298. @mouseout="isHovered1 = false"
  299. >
  300. <div class="lastText">下一步</div>
  301. <div class="lastImg">
  302. <img
  303. :src="
  304. isHovered1
  305. ? require('../../assets/icon/newIcons/whiteNext.png')
  306. : require('../../assets/icon/newIcons/next.png')
  307. "
  308. alt=""
  309. />
  310. </div>
  311. </div>
  312. <!-- <div
  313. class="last"
  314. @click="juriVisible = true"
  315. v-if="tType == 1"
  316. @mouseover="isHovered2 = true"
  317. @mouseout="isHovered2 = false"
  318. >
  319. <div class="lastImg">
  320. <img
  321. :src="
  322. isHovered2
  323. ? require('../../assets/icon/newIcons/whiteLock.png')
  324. : require('../../assets/icon/newIcons/lock.png')
  325. "
  326. alt=""
  327. />
  328. </div>
  329. <div class="lastText">权限</div>
  330. </div> -->
  331. <div
  332. class="returnBtn1 returnIcon"
  333. @click.stop="
  334. goTo(
  335. '/courseDetail?userid=' +
  336. userid +
  337. '&oid=' +
  338. oid +
  339. '&org=' +
  340. org +
  341. '&cid=' +
  342. classId +
  343. '&courseId=' +
  344. id +
  345. '&tType=' +
  346. tType +
  347. '&screenType=' +
  348. screenType
  349. )
  350. "
  351. >
  352. <div class="lastImg">
  353. <img src="../../assets/icon/newIcon/return.png" alt="" />
  354. </div>
  355. <div class="lastText" style="color: #000">返回</div>
  356. </div>
  357. </div>
  358. <!-- <div
  359. class="returnBtn lockIcon"
  360. @click="juriVisible = true"
  361. v-if="tType == 1"
  362. >
  363. 权限
  364. </div>
  365. <div
  366. class="returnBtn vedioIcon"
  367. @click="startRecording"
  368. v-if="!videoStart && (tType == 1 || tType == 4)"
  369. >
  370. 录制
  371. </div>
  372. <div
  373. class="returnBtn"
  374. @click="stopRecording"
  375. v-else-if="tType == 1 || tType == 4"
  376. style="background: #ee5255"
  377. >
  378. 下载
  379. </div>
  380. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  381. 评论
  382. </div>
  383. <div
  384. class="returnBtn"
  385. @click="nextOrpreSteps(0)"
  386. v-if="!(IsFollow && tType == 2)"
  387. >
  388. 上一步
  389. </div>
  390. <div
  391. class="returnBtn"
  392. @click="nextOrpreSteps(1)"
  393. v-if="!(IsFollow && tType == 2)"
  394. >
  395. 下一步
  396. </div>
  397. <div class="returnBtn" @click="refreshCourse">刷新</div>
  398. <div
  399. class="returnBtn returnIcon"
  400. @click.stop="
  401. goTo(
  402. '/courseDetail?userid=' +
  403. userid +
  404. '&oid=' +
  405. oid +
  406. '&org=' +
  407. org +
  408. '&cid=' +
  409. classId +
  410. '&courseId=' +
  411. id +
  412. '&tType=' +
  413. tType +
  414. '&screenType=' +
  415. screenType
  416. )
  417. "
  418. >
  419. 返回
  420. </div> -->
  421. </div>
  422. </div>
  423. <div
  424. class="isNoMessage"
  425. v-if="
  426. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  427. .chapterData.length == 0 &&
  428. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  429. .toolChoose[0].tool.length == 0 &&
  430. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  431. .taskDetail == '' &&
  432. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  433. .eList &&
  434. !(
  435. courseDetail.userid == userid ||
  436. (courseDetail.course_teacher &&
  437. courseDetail.course_teacher.indexOf(userid) != -1)
  438. )
  439. "
  440. >
  441. <img src="../../assets/icon/isNoMessage.png" alt />
  442. </div>
  443. <div class="study_top" :class="{ pzClass: pzDialog }">
  444. <div
  445. class="vedioBox"
  446. v-if="
  447. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .taskDetail != '' ||
  449. vChapterData[0].length > 0 ||
  450. fileC[0].length > 0
  451. "
  452. style="border-radius: 0 0 20px 20px"
  453. >
  454. <div
  455. class="taskBox"
  456. v-if="
  457. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  458. .taskDetail != ''
  459. "
  460. >
  461. <div
  462. style="
  463. display: flex;
  464. flex-wrap: nowrap;
  465. flex-direction: column;
  466. position: relative;
  467. "
  468. >
  469. <div
  470. style="
  471. padding: 15px 0;
  472. line-height: 29px;
  473. font-size: 18px;
  474. color: #0e1e33;
  475. "
  476. class="cont"
  477. v-if="
  478. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  479. .taskDetail != ''
  480. "
  481. v-html="
  482. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  483. .taskDetail
  484. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  485. taskCount
  486. ].taskDetail
  487. : '暂无描述'
  488. "
  489. ></div>
  490. </div>
  491. </div>
  492. <div
  493. class="student_head"
  494. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  495. >
  496. <div class="vedioTaskBox">
  497. <div
  498. :class="
  499. contentDialog == false
  500. ? 'box_course isContentCss'
  501. : 'box_course'
  502. "
  503. v-if="
  504. vChapterData.length > 0 &&
  505. vChapterData[0] &&
  506. showType !== ''
  507. "
  508. >
  509. <div class="wheel" style="height: auto" v-if="showType === 0">
  510. <div
  511. class="workd_media"
  512. style="height: 650px; width: calc(100% - 50px)"
  513. >
  514. <video-player
  515. class="video-player vjs-custom-skin"
  516. :class="contentDialog == false ? 'isAllWidth' : ''"
  517. :playsinline="true"
  518. :options="playerO[0]"
  519. @play="onPlayerPlay($event)"
  520. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  521. ></video-player>
  522. </div>
  523. </div>
  524. <div
  525. class="wheel"
  526. v-if="showType == 1"
  527. style="
  528. box-shadow: 0 0 6px 1px #f2f2f2;
  529. width: 95%;
  530. margin: 0 auto;
  531. background: #f1f1f1;
  532. "
  533. >
  534. <div class="title">查看文档</div>
  535. <el-form class="textBox">
  536. <el-form-item class="textTitle">
  537. <div style="font-size: 22px">
  538. {{ text.name }}
  539. </div>
  540. </el-form-item>
  541. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  542. <div v-html="text.url" class="textContent cont"></div>
  543. </el-form>
  544. </div>
  545. <div
  546. class="wheel"
  547. v-if="
  548. pptImgUrl1.indexOf(
  549. 'https://view.officeapps.live.com/op/view.aspx?src='
  550. ) != -1 && showType == 2
  551. "
  552. style="width: 95%; margin: 0 auto"
  553. >
  554. <iframe
  555. style="width: 100%; height: 100%; border: none"
  556. :src="pptImgUrl1"
  557. ></iframe>
  558. </div>
  559. <div
  560. class="wheel"
  561. v-else-if="showType == 2"
  562. style="width: 95%; margin: 0 auto"
  563. >
  564. <iframe
  565. style="width: 100%; height: 100%; border: none"
  566. security="restricted"
  567. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  568. :src="pptImgUrl1"
  569. ></iframe>
  570. </div>
  571. <div
  572. class="wheel"
  573. v-if="showType == 3"
  574. style="width: 95%; margin: 0 auto"
  575. >
  576. <pdf
  577. :pdfUrl="pptImgUrl1"
  578. style="width: 100%; height: 100%; overflow: auto"
  579. ></pdf>
  580. </div>
  581. <div
  582. class="wheel"
  583. v-if="showType == 4"
  584. style="width: 95%; margin: 0 auto"
  585. >
  586. <el-image
  587. :src="pptImgUrl1"
  588. fit="contain"
  589. style="width: 100%; height: 100%; cursor: pointer"
  590. @click="previewImg(pptImgUrl1)"
  591. ></el-image>
  592. </div>
  593. </div>
  594. <div
  595. class="pButton"
  596. style="position: absolute; right: 20px; top: 0; z-index: 998"
  597. v-if="!contentDialog"
  598. @click="setContent(true)"
  599. >
  600. <!-- 批 -->
  601. <img
  602. src="../../assets/icon/newIcons/isLeft.png"
  603. style="width: 45px"
  604. alt=""
  605. />
  606. </div>
  607. <div
  608. v-if="contentDialog == true"
  609. :style="{
  610. width:
  611. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  612. showType === ''
  613. ? 'calc(100%)'
  614. : '300px',
  615. margin:
  616. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  617. showType === ''
  618. ? '0 15px'
  619. : '0 15px 0 0',
  620. }"
  621. >
  622. <div
  623. class="vedioList"
  624. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  625. style="height: 650px"
  626. >
  627. <div class="navCorOpenBox">
  628. <div class="navTitile">内容列表:</div>
  629. <div class="navCorOpen" @click="setContent(false)">
  630. <img
  631. src="../../assets/icon/newIcons/isRight.png"
  632. alt=""
  633. />
  634. </div>
  635. </div>
  636. <div class="navBox">
  637. <div
  638. v-show="
  639. vChapterData[0].length > 0 || fileC[0].length > 0
  640. "
  641. style="padding: 10px 0 25px 0"
  642. >
  643. <div
  644. class="vedioTimeBox"
  645. v-for="(vitem, vindex) in vChapterData[0]"
  646. :key="vindex + '1'"
  647. >
  648. <div class="navListItem" v-if="vitem.type == 2">
  649. <div
  650. @click="lookVedio(vitem.url, vindex)"
  651. class="navText"
  652. :class="isClickNav == vindex ? 'isClickNav' : ''"
  653. >
  654. <span v-if="vitem.text">{{ vitem.text }}-</span
  655. >{{ vitem.name }}
  656. </div>
  657. <div class="downIcon" @click="downloadFile2(vitem)">
  658. <img
  659. src="../../assets/icon/newIcon/down.png"
  660. alt
  661. />
  662. </div>
  663. </div>
  664. <div class="navListItem" v-if="vitem.type == 6">
  665. <div
  666. @click="lookText(0, vindex)"
  667. class="navText"
  668. :class="isClickNav == vindex ? 'isClickNav' : ''"
  669. >
  670. {{ vitem.name }}.doc
  671. </div>
  672. <div
  673. class="downIcon"
  674. @click="checkFileFull1(vitem.type, vitem)"
  675. >
  676. <img
  677. src="../../assets/icon/newIcon/allScreen.png"
  678. alt
  679. />
  680. </div>
  681. </div>
  682. <div
  683. class="navListItem"
  684. v-if="vitem.type == 8 || vitem.type == 14"
  685. >
  686. <div
  687. @click="doUrl(vitem.url, vindex)"
  688. class="navText"
  689. :class="isClickNav == vindex ? 'isClickNav' : ''"
  690. >
  691. {{ vitem.title ? vitem.title : vitem.url }}
  692. </div>
  693. <div
  694. class="downIcon"
  695. @click="checkFileFull1(vitem.type, vitem)"
  696. >
  697. <img
  698. src="../../assets/icon/newIcon/allScreen.png"
  699. alt
  700. />
  701. </div>
  702. </div>
  703. <div class="navListItem" v-if="vitem.type == 3">
  704. <div
  705. @click="downFile(vitem, vindex)"
  706. class="navText"
  707. :class="isClickNav == vindex ? 'isClickNav' : ''"
  708. >
  709. <span v-if="vitem.text">{{ vitem.text }}-</span
  710. >{{ vitem.name }}
  711. </div>
  712. <div class="downIcon" @click="downloadFile2(vitem)">
  713. <img
  714. src="../../assets/icon/newIcon/down.png"
  715. alt
  716. />
  717. </div>
  718. <div
  719. class="downIcon"
  720. @click="checkFileFull1(vitem.type, vitem)"
  721. >
  722. <img
  723. src="../../assets/icon/newIcon/allScreen.png"
  724. alt
  725. />
  726. </div>
  727. </div>
  728. <div class="navListItem" v-if="vitem.type == 12">
  729. <div class="navText" @click="downloadFile2(vitem)">
  730. <span v-if="vitem.text">{{ vitem.text }}-</span
  731. >{{ vitem.name }}
  732. </div>
  733. <div class="downIcon" @click="downloadFile2(vitem)">
  734. <img
  735. src="../../assets/icon/newIcon/down.png"
  736. alt
  737. />
  738. </div>
  739. <div
  740. class="downIcon"
  741. @click="checkFileFull1(vitem.type, vitem)"
  742. >
  743. <img
  744. src="../../assets/icon/newIcon/allScreen.png"
  745. alt
  746. />
  747. </div>
  748. </div>
  749. <div class="navListItem" v-if="vitem.type == 13">
  750. <div
  751. class="navText"
  752. @click="checkPhoto(vitem, vindex)"
  753. :class="isClickNav == vindex ? 'isClickNav' : ''"
  754. >
  755. {{ vitem.name }}
  756. </div>
  757. <div class="downIcon" @click="downloadFile2(vitem)">
  758. <img
  759. src="../../assets/icon/newIcon/down.png"
  760. alt
  761. />
  762. </div>
  763. </div>
  764. </div>
  765. <div class="fileC_box" v-if="fileC[0].length > 0">
  766. <div class="fileC_title">以下文件不支持预览</div>
  767. <div
  768. class="vedioTimeBox"
  769. v-for="(vitem, vindex) in fileC[0]"
  770. :key="vindex + '1'"
  771. >
  772. <div class="navListItem" v-if="vitem.type == 12">
  773. <div class="navText" style="color: #acb4bf">
  774. <span v-if="vitem.text">{{ vitem.text }}-</span
  775. >{{ vitem.name }}
  776. </div>
  777. <div
  778. class="downIcon"
  779. @click="downloadFile2(vitem)"
  780. >
  781. <img
  782. src="../../assets/icon/newIcon/down.png"
  783. alt
  784. />
  785. </div>
  786. </div>
  787. </div>
  788. </div>
  789. </div>
  790. </div>
  791. </div>
  792. </div>
  793. </div>
  794. <div style="width: calc(100% - 315px)">
  795. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  796. <!-- <el-button
  797. type="primary"
  798. class="newButton"
  799. @click="checkFileFull(showType, pptImgUrl1)"
  800. >全屏查看</el-button
  801. >
  802. <el-button
  803. type="primary"
  804. class="newButton"
  805. @click="downloadFile(pptImgUrl1)"
  806. v-if="showType != 2"
  807. >文件下载</el-button
  808. > -->
  809. <el-button
  810. v-if="
  811. showType == 2 &&
  812. pptImgUrl1.indexOf(
  813. 'https://view.officeapps.live.com/op/view.aspx?src='
  814. ) == -1
  815. "
  816. type="primary"
  817. class="newButton"
  818. @click="openLine(pptImgUrl1)"
  819. >打开链接
  820. </el-button>
  821. </div>
  822. <!-- <div
  823. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  824. v-if="showType == 1"
  825. >
  826. <el-button
  827. type="primary"
  828. class="newButton"
  829. @click="checkFileFull(showType, text)"
  830. >全屏查看</el-button
  831. >
  832. </div> -->
  833. </div>
  834. </div>
  835. </div>
  836. <div class="student_body" v-resize="resize">
  837. <div
  838. class="vedioBox"
  839. :style="{
  840. borderRadius:
  841. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  842. .taskDetail == '' &&
  843. vChapterData[taskCount].length == 0 &&
  844. fileC[taskCount].length == 0
  845. ? '0 0 20px 20px'
  846. : '20px',
  847. }"
  848. v-if="
  849. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  850. .toolChoose[0].tool &&
  851. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  852. .toolChoose[0].tool.length > 0
  853. "
  854. >
  855. <div
  856. class="toolHeng2"
  857. style="position: relative"
  858. v-if="
  859. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  860. .toolChoose[0].tool &&
  861. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  862. .toolChoose[0].tool.length &&
  863. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  864. .toolChoose[0].tool.length > 0
  865. "
  866. >
  867. <div class="workNav">工作区</div>
  868. <div
  869. class="filebox"
  870. style="flex-wrap: nowrap"
  871. v-for="(tool, toolIndex) in chapInfoList[courseType]
  872. .chapterInfo[0].taskJson[taskCount].toolChoose"
  873. :key="toolIndex"
  874. >
  875. <div class="bzBox">
  876. <div class="yCss"></div>
  877. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  878. 步骤{{ toolIndex + 1 }}
  879. </div>
  880. <div
  881. v-if="timeWorkList[toolIndex].length > 0"
  882. style="margin: 0 0 0 10px"
  883. >
  884. {{
  885. timeWorkList[toolIndex][0].time
  886. ? "时间:" + timeWorkList[toolIndex][0].time
  887. : ""
  888. }}
  889. </div>
  890. </div>
  891. <div class="toolBox">
  892. <div>
  893. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  894. :key="indexTool"-->
  895. <!-- <div class="iframeBox">
  896. <div
  897. class="addPoint isBorder"
  898. v-for="(tooC, toolCIndex) in tool.tool"
  899. :key="toolCIndex"
  900. >
  901. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  902. <div
  903. class="iframeName"
  904. >
  905. 电子白板
  906. </div>
  907. <iframe
  908. src="https://iwb.cocorobo.cn/"
  909. ref="whiteBoard"
  910. ></iframe>
  911. </div>
  912. </div>
  913. </div>-->
  914. <div class="noiframeBox">
  915. <div
  916. class="addPoint"
  917. v-for="(tooC, toolCIndex) in tool.tool"
  918. :key="toolCIndex"
  919. >
  920. <div v-if="tooC == 1">
  921. <img
  922. src="../../assets/icon/secondToolList/whiteBoard.png"
  923. alt
  924. @click="addTools(tooC, toolIndex, taskCount)"
  925. />
  926. <div style="margin: 5px 0">电子白板</div>
  927. </div>
  928. <div v-if="tooC == 3">
  929. <img
  930. src="../../assets/icon/secondToolList/mindMapping.png"
  931. alt
  932. @click="addTools(tooC, toolIndex, taskCount)"
  933. />
  934. <div style="margin: 5px 0">思维导图</div>
  935. </div>
  936. <div v-if="tooC == 6">
  937. <img
  938. src="../../assets/icon/secondToolList/doc.png"
  939. alt
  940. @click="addTools(tooC, toolIndex, taskCount)"
  941. />
  942. <div style="margin: 5px 0">协同文档</div>
  943. </div>
  944. <div v-if="tooC == 7">
  945. <img
  946. src="../../assets/icon/secondToolList/mindNetwork.png"
  947. alt
  948. @click="addTools(tooC, toolIndex, taskCount)"
  949. />
  950. <div style="margin: 5px 0">思维网格</div>
  951. </div>
  952. <div v-if="tooC == 8">
  953. <img
  954. src="../../assets/icon/secondToolList/library.png"
  955. alt
  956. @click="addTools(tooC, toolIndex, taskCount)"
  957. />
  958. <div style="margin: 5px 0">素材库</div>
  959. </div>
  960. <div v-if="tooC == 17">
  961. <img
  962. src="../../assets/icon/secondToolList/library.png"
  963. alt
  964. @click="addTools(tooC, toolIndex, taskCount)"
  965. />
  966. <div style="margin: 5px 0">学习资料</div>
  967. </div>
  968. <div v-if="tooC == 2">
  969. <img
  970. @click="addTools(tooC, toolIndex, taskCount)"
  971. src="../../assets/icon/secondToolList/note.png"
  972. alt
  973. />
  974. <div style="margin: 5px 0">便签</div>
  975. </div>
  976. <div v-if="tooC == 4">
  977. <img
  978. @click="addTools(tooC, toolIndex, taskCount)"
  979. src="../../assets/icon/thirdToolList/ask.png"
  980. alt
  981. />
  982. <div style="margin: 5px 0">问卷调查</div>
  983. </div>
  984. <div v-if="tooC == 45">
  985. <img
  986. @click="addTools(tooC, toolIndex, taskCount)"
  987. src="../../assets/icon/thirdToolList/choose.png"
  988. alt
  989. />
  990. <div style="margin: 5px 0">选择题</div>
  991. </div>
  992. <!-- <div v-if="tooC == 5">
  993. <img
  994. @click="addTools(tooC, toolIndex, taskCount)"
  995. src="../../assets/icon/thirdToolList/score.png"
  996. alt
  997. />
  998. <div style="margin: 5px 0">量规评分</div>
  999. </div> -->
  1000. <div v-if="tooC == 10">
  1001. <img
  1002. @click="addTools(tooC, toolIndex, taskCount)"
  1003. src="../../assets/icon/thirdToolList/time.png"
  1004. alt
  1005. />
  1006. <div style="margin: 5px 0">倒计时</div>
  1007. </div>
  1008. <div v-if="tooC == 15">
  1009. <img
  1010. @click="addTools(tooC, toolIndex, taskCount)"
  1011. src="../../assets/icon/thirdToolList/answer.png"
  1012. alt
  1013. />
  1014. <div style="margin: 5px 0">问答</div>
  1015. </div>
  1016. <div v-if="tooC == 26">
  1017. <img
  1018. @click="addTools(tooC, toolIndex, taskCount)"
  1019. src="../../assets/icon/thirdToolList/courseDesign.png"
  1020. alt
  1021. />
  1022. <div style="margin: 5px 0">课程设计</div>
  1023. </div>
  1024. <div v-if="tooC == 18">
  1025. <img
  1026. @click="addTools(tooC, toolIndex, taskCount)"
  1027. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1028. alt
  1029. />
  1030. <div style="margin: 5px 0">训练服务器</div>
  1031. </div>
  1032. <div v-if="tooC == 16">
  1033. <img
  1034. @click="addTools(tooC, toolIndex, taskCount)"
  1035. src="../../assets/icon/thirdToolList/work.png"
  1036. alt
  1037. />
  1038. <div style="margin: 5px 0">作业提交</div>
  1039. </div>
  1040. <div v-if="tooC == 50">
  1041. <img
  1042. @click="addTools(tooC, toolIndex, taskCount)"
  1043. src="../../assets/icon/thirdToolList/plwork.png"
  1044. alt
  1045. />
  1046. <div style="margin: 5px 0">批量上传</div>
  1047. </div>
  1048. <div v-if="tooC == 21">
  1049. <img
  1050. @click="addTools(tooC, toolIndex, taskCount)"
  1051. src="../../assets/icon/fourthToolList/program.png"
  1052. alt
  1053. />
  1054. <div style="margin: 5px 0">AIoT Blockly</div>
  1055. </div>
  1056. <!-- <div v-if="tooC == 22">
  1057. <img
  1058. @click="addTools(tooC, toolIndex, taskCount)"
  1059. src="../../assets/icon/fourthToolList/program.png"
  1060. alt
  1061. />
  1062. <div style="margin: 5px 0">AI体验</div>
  1063. </div> -->
  1064. <div v-if="tooC == 23">
  1065. <img
  1066. @click="addTools(tooC, toolIndex, taskCount)"
  1067. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1068. alt
  1069. />
  1070. <div style="margin: 5px 0">AI Python</div>
  1071. </div>
  1072. <div v-if="tooC == 24">
  1073. <img
  1074. @click="addTools(tooC, toolIndex, taskCount)"
  1075. src="../../assets/icon/fourthToolList/AIprogram.png"
  1076. alt
  1077. />
  1078. <div style="margin: 5px 0">AI Blockly</div>
  1079. </div>
  1080. <div v-if="tooC == 25">
  1081. <img
  1082. @click="addTools(tooC, toolIndex, taskCount)"
  1083. src="../../assets/icon/thirdToolList/evalua.png"
  1084. alt
  1085. />
  1086. <div style="margin: 5px 0">目标管理</div>
  1087. </div>
  1088. <div v-if="tooC == 31">
  1089. <img
  1090. @click="addTools(tooC, toolIndex, taskCount)"
  1091. src="../../assets/icon/secondToolList/networkPanel.png"
  1092. alt
  1093. />
  1094. <div style="margin: 5px 0">数学画板</div>
  1095. </div>
  1096. <div v-if="tooC == 28">
  1097. <img
  1098. @click="addTools(tooC, toolIndex, taskCount)"
  1099. src="../../assets/icon/secondToolList/translation.png"
  1100. alt
  1101. />
  1102. <div style="margin: 5px 0">翻译</div>
  1103. </div>
  1104. <div v-if="tooC == 37">
  1105. <img
  1106. @click="addTools(tooC, toolIndex, taskCount)"
  1107. src="../../assets/icon/secondToolList/mohe.png"
  1108. alt
  1109. />
  1110. <div style="margin: 5px 0">魔盒识字</div>
  1111. </div>
  1112. <div v-if="tooC == 38">
  1113. <img
  1114. @click="addTools(tooC, toolIndex, taskCount)"
  1115. src="../../assets/icon/secondToolList/24game.png"
  1116. alt
  1117. />
  1118. <div style="margin: 5px 0">24点</div>
  1119. </div>
  1120. <div v-if="tooC == 39">
  1121. <img
  1122. @click="addTools(tooC, toolIndex, taskCount)"
  1123. src="../../assets/icon/secondToolList/GeoGebra.png"
  1124. alt
  1125. />
  1126. <div style="margin: 5px 0">GeoGebra</div>
  1127. </div>
  1128. <div v-if="tooC == 32">
  1129. <img
  1130. @click="addTools(tooC, toolIndex, taskCount)"
  1131. src="../../assets/icon/thirdToolList/code.png"
  1132. alt
  1133. />
  1134. <div style="margin: 5px 0">源码编辑</div>
  1135. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1136. style="position: absolute;left: 110px;bottom: 30px;">
  1137. 上传文件
  1138. <input type="file" accept="*" style="display: none"
  1139. @change="beforeUpload1($event, 7, toolIndex)" />
  1140. </div> -->
  1141. </div>
  1142. <div v-if="tooC == 40">
  1143. <img
  1144. @click="addTools(tooC, toolIndex, taskCount)"
  1145. src="../../assets/icon/secondToolList/eval.png"
  1146. alt
  1147. />
  1148. <div style="margin: 5px 0">个人评价</div>
  1149. </div>
  1150. <div v-if="tooC == 41">
  1151. <img
  1152. @click="addTools(tooC, toolIndex, taskCount)"
  1153. src="../../assets/icon/thirdToolList/select.png"
  1154. alt
  1155. />
  1156. <div style="margin: 5px 0">选择匹配</div>
  1157. </div>
  1158. <div v-if="tooC == 44">
  1159. <img
  1160. @click="addTools(tooC, toolIndex, taskCount)"
  1161. src="../../assets/icon/thirdToolList/hanClass.png"
  1162. alt
  1163. />
  1164. <div style="margin: 5px 0">汉字宫</div>
  1165. </div>
  1166. <div v-if="tooC == 47">
  1167. <img
  1168. @click="addTools(tooC, toolIndex, taskCount)"
  1169. src="../../assets/icon/fourthToolList/conSentences.png"
  1170. alt
  1171. />
  1172. <div style="margin: 5px 0">排序</div>
  1173. </div>
  1174. <div v-if="tooC == 48">
  1175. <img
  1176. @click="addTools(tooC, toolIndex, taskCount)"
  1177. src="../../assets/icon/fourthToolList/table.png"
  1178. alt
  1179. />
  1180. <div style="margin: 5px 0">表格</div>
  1181. </div>
  1182. <div v-if="tooC == 52">
  1183. <img
  1184. @click="addTools(tooC, toolIndex, taskCount)"
  1185. src="../../assets/icon/fourthToolList/text.png"
  1186. alt
  1187. />
  1188. <div style="margin: 5px 0">文档</div>
  1189. </div>
  1190. <div v-if="tooC == 49">
  1191. <img
  1192. @click="addTools(tooC, toolIndex, taskCount)"
  1193. src="../../assets/icon/fourthToolList/group.png"
  1194. alt
  1195. />
  1196. <div style="margin: 5px 0">学生分组</div>
  1197. </div>
  1198. <div v-if="tooC == 57">
  1199. <img
  1200. @click="addTools(tooC, toolIndex, taskCount)"
  1201. src="../../assets/icon/fourthToolList/cocopi.png"
  1202. alt
  1203. />
  1204. <div style="margin: 5px 0">CocoPi</div>
  1205. </div>
  1206. <div v-if="tooC == 58">
  1207. <img
  1208. @click="addTools(tooC, toolIndex, taskCount)"
  1209. src="../../assets/icon/fourthToolList/car.png"
  1210. alt
  1211. />
  1212. <div style="margin: 5px 0">模拟驾驶</div>
  1213. </div>
  1214. <div v-if="tooC == 59">
  1215. <img
  1216. @click="addTools(tooC, toolIndex, taskCount)"
  1217. src="../../assets/icon/fourthToolList/lineSearch.png"
  1218. alt
  1219. />
  1220. <div style="margin: 5px 0">路径搜索</div>
  1221. </div>
  1222. <div v-if="tooC == 60">
  1223. <img
  1224. @click="addTools(tooC, toolIndex, taskCount)"
  1225. src="../../assets/icon/fourthToolList/deepLearning.png"
  1226. alt
  1227. />
  1228. <div style="margin: 5px 0">深度学习</div>
  1229. </div>
  1230. <div v-if="tooC == 61">
  1231. <img
  1232. @click="addTools(tooC, toolIndex, taskCount)"
  1233. src="../../assets/icon/fourthToolList/allHistory.png"
  1234. alt
  1235. />
  1236. <div style="margin: 5px 0">全历史</div>
  1237. </div>
  1238. <div v-if="tooC == 62">
  1239. <img
  1240. @click="addTools(tooC, toolIndex, taskCount)"
  1241. src="../../assets/icon/fourthToolList/interVideo.png"
  1242. alt
  1243. />
  1244. <div style="margin: 5px 0">交互视频</div>
  1245. </div>
  1246. <div v-if="tooC == 63">
  1247. <img
  1248. @click="addTools(tooC, toolIndex, taskCount)"
  1249. src="../../assets/icon/fourthToolList/Wood.png"
  1250. alt
  1251. />
  1252. <div style="margin: 5px 0">海龟编程</div>
  1253. </div>
  1254. <div v-if="tooC == 65">
  1255. <img
  1256. @click="addTools(tooC, toolIndex, taskCount)"
  1257. src="../../assets/icon/firstToolList/pickPeople.png"
  1258. alt
  1259. />
  1260. <div style="margin: 5px 0">挑人</div>
  1261. </div>
  1262. <div v-if="tooC == 66">
  1263. <img
  1264. @click="addTools(tooC, toolIndex, taskCount)"
  1265. src="../../assets/icon/secondToolList/formulaEdi.png"
  1266. alt
  1267. />
  1268. <div style="margin: 5px 0">公式编辑</div>
  1269. </div>
  1270. <div v-if="tooC == 67">
  1271. <img
  1272. @click="addTools(tooC, toolIndex, taskCount)"
  1273. src="../../assets/icon/secondToolList/molStr.png"
  1274. alt
  1275. />
  1276. <div style="margin: 5px 0">分子结构</div>
  1277. </div>
  1278. <div v-if="tooC == 68">
  1279. <img
  1280. @click="addTools(tooC, toolIndex, taskCount)"
  1281. src="../../assets/icon/secondToolList/timeAxis.png"
  1282. alt
  1283. />
  1284. <div style="margin: 5px 0">时间轴</div>
  1285. </div>
  1286. <div v-if="tooC == 69">
  1287. <img
  1288. @click="addTools(tooC, toolIndex, taskCount)"
  1289. src="../../assets/icon/secondToolList/english.png"
  1290. alt
  1291. />
  1292. <div style="margin: 5px 0">英语写作</div>
  1293. </div>
  1294. </div>
  1295. </div>
  1296. </div>
  1297. <div class="tooldetail" v-if="tool.toolDetail != ''">
  1298. <!-- <div class="toolTitle">工具描述</div> -->
  1299. <div
  1300. v-html="contentConvent(tool.toolDetail)"
  1301. v-if="toolDetailIndex != toolIndex"
  1302. @click.stop="updateToolDetail(toolIndex)"
  1303. ></div>
  1304. <div v-else @click.stop="">
  1305. <el-input
  1306. type="textarea"
  1307. :rows="3"
  1308. resize="none"
  1309. v-model="updateToolDetailInner"
  1310. placeholder="请输入任务描述"
  1311. ></el-input>
  1312. </div>
  1313. </div>
  1314. <el-button
  1315. type="primary"
  1316. v-if="tool.tool[0] == 32"
  1317. style="position: absolute; right: 30px; top: 30px"
  1318. @click="addImg($event)"
  1319. >上传作业<input
  1320. type="file"
  1321. accept="*"
  1322. style="display: none"
  1323. @change="beforeUpload1($event, 7, toolIndex)"
  1324. /></el-button>
  1325. <el-button
  1326. type="primary"
  1327. v-if="tool.tool[0] == 15"
  1328. style="position: absolute; right: 30px; top: 30px"
  1329. @click="openWordCloud(toolIndex)"
  1330. >生成词云</el-button
  1331. >
  1332. <el-button
  1333. type="primary"
  1334. v-if="
  1335. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1336. "
  1337. style="position: absolute; right: 30px; top: 30px"
  1338. @click="uploadWorks(toolIndex)"
  1339. >导出作业</el-button
  1340. >
  1341. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1342. position: absolute;
  1343. right: 30px;
  1344. transform: translateY(-130%);
  1345. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1346. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1347. </div>
  1348. <div
  1349. v-if="
  1350. tType &&
  1351. tType == 2 &&
  1352. !sIsOpen &&
  1353. tool.tool.indexOf(16) != -1
  1354. "
  1355. class="worksBox"
  1356. >
  1357. <div
  1358. class="zuoyeYulan"
  1359. v-if="workStudent[toolIndex].length > 0"
  1360. >
  1361. <span class="worksTitle">作业预览</span>
  1362. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1363. </div>
  1364. <div
  1365. class="worksDetailBox"
  1366. v-if="workStudent[toolIndex].length > 0"
  1367. >
  1368. <div
  1369. class="works"
  1370. style="
  1371. width: 200px;
  1372. height: 140px;
  1373. margin: 10px 10px 10px 0;
  1374. box-shadow: 0 0 6px 1px #dfdada;
  1375. "
  1376. v-for="(w, wIndex) in workStudent[toolIndex]"
  1377. :key="wIndex"
  1378. >
  1379. <div class="workImg" v-if="w.type == 0">
  1380. <img
  1381. :src="w.works"
  1382. @click="previewImg(w.works)"
  1383. alt
  1384. />
  1385. <div
  1386. class="answerScore"
  1387. v-if="w.score"
  1388. @click.stop="openScore(w)"
  1389. :class="{
  1390. rightW:
  1391. w.userid == userid || tType == 1 || tType == 4,
  1392. }"
  1393. >
  1394. {{ JSON.parse(w.score).wScore }}分
  1395. </div>
  1396. <div
  1397. class="answerScore"
  1398. @click.stop="openScore(w)"
  1399. v-else-if="courseDetail.userid == userid"
  1400. :class="{
  1401. rightW:
  1402. w.userid == userid || tType == 1 || tType == 4,
  1403. }"
  1404. >
  1405. 评分
  1406. </div>
  1407. <img
  1408. class="deleteImg"
  1409. src="../../assets/deleteworks.png"
  1410. v-if="
  1411. w.userid == userid || tType == 1 || tType == 4
  1412. "
  1413. @click.stop="deleteWorks(w.wid)"
  1414. alt
  1415. />
  1416. </div>
  1417. <div class="workImg" v-if="w.type == 1">
  1418. <img :src="word" @click="openFile(w.works)" alt />
  1419. <div
  1420. class="answerScore"
  1421. v-if="w.score"
  1422. @click.stop="openScore(w)"
  1423. :class="{
  1424. rightW:
  1425. w.userid == userid || tType == 1 || tType == 4,
  1426. }"
  1427. >
  1428. {{ JSON.parse(w.score).wScore }}分
  1429. </div>
  1430. <div
  1431. class="answerScore"
  1432. @click.stop="openScore(w)"
  1433. v-else-if="courseDetail.userid == userid"
  1434. :class="{
  1435. rightW:
  1436. w.userid == userid || tType == 1 || tType == 4,
  1437. }"
  1438. >
  1439. 评分
  1440. </div>
  1441. <img
  1442. class="deleteImg"
  1443. src="../../assets/deleteworks.png"
  1444. v-if="
  1445. w.userid == userid || tType == 1 || tType == 4
  1446. "
  1447. @click.stop="deleteWorks(w.wid)"
  1448. alt
  1449. />
  1450. </div>
  1451. <div class="workImg" v-if="w.type == 3">
  1452. <img
  1453. style="cursor: pointer"
  1454. :src="video"
  1455. @click="openVideo(w)"
  1456. alt
  1457. />
  1458. <div
  1459. class="answerScore"
  1460. v-if="w.score"
  1461. @click.stop="openScore(w)"
  1462. :class="{
  1463. rightW:
  1464. w.userid == userid || tType == 1 || tType == 4,
  1465. }"
  1466. >
  1467. {{ JSON.parse(w.score).wScore }}分
  1468. </div>
  1469. <div
  1470. class="answerScore"
  1471. @click.stop="openScore(w)"
  1472. v-else-if="courseDetail.userid == userid"
  1473. :class="{
  1474. rightW:
  1475. w.userid == userid || tType == 1 || tType == 4,
  1476. }"
  1477. >
  1478. 评分
  1479. </div>
  1480. <img
  1481. class="deleteImg"
  1482. src="../../assets/deleteworks.png"
  1483. v-if="
  1484. w.userid == userid || tType == 1 || tType == 4
  1485. "
  1486. @click.stop="deleteWorks(w.wid)"
  1487. alt
  1488. />
  1489. </div>
  1490. <div class="workImg" v-if="w.type == 12">
  1491. <img
  1492. style="cursor: pointer"
  1493. :src="word2"
  1494. @click="downloadFile(w.works)"
  1495. alt
  1496. />
  1497. <div
  1498. class="answerScore"
  1499. v-if="w.score"
  1500. @click.stop="openScore(w)"
  1501. :class="{
  1502. rightW:
  1503. w.userid == userid || tType == 1 || tType == 4,
  1504. }"
  1505. >
  1506. {{ JSON.parse(w.score).wScore }}分
  1507. </div>
  1508. <div
  1509. class="answerScore"
  1510. @click.stop="openScore(w)"
  1511. v-else-if="courseDetail.userid == userid"
  1512. :class="{
  1513. rightW:
  1514. w.userid == userid || tType == 1 || tType == 4,
  1515. }"
  1516. >
  1517. 评分
  1518. </div>
  1519. <img
  1520. class="deleteImg"
  1521. src="../../assets/deleteworks.png"
  1522. v-if="
  1523. w.userid == userid || tType == 1 || tType == 4
  1524. "
  1525. @click.stop="deleteWorks(w.wid)"
  1526. alt
  1527. />
  1528. </div>
  1529. <div class="worksName">
  1530. <div>{{ w.sName }}</div>
  1531. </div>
  1532. </div>
  1533. </div>
  1534. </div>
  1535. <div
  1536. v-if="
  1537. tType &&
  1538. tType == 2 &&
  1539. !sIsOpen &&
  1540. tool.tool.indexOf(32) != -1
  1541. "
  1542. class="worksBox"
  1543. >
  1544. <div
  1545. class="zuoyeYulan"
  1546. v-if="workStudent[toolIndex].length > 0"
  1547. >
  1548. <span class="worksTitle">作业预览</span>
  1549. </div>
  1550. <div
  1551. class="worksDetailBox"
  1552. v-if="workStudent[toolIndex].length > 0"
  1553. >
  1554. <div
  1555. class="works"
  1556. style="
  1557. width: 200px;
  1558. height: 140px;
  1559. margin: 10px 10px 10px 0;
  1560. box-shadow: 0 0 6px 1px #dfdada;
  1561. "
  1562. v-for="(w, wIndex) in workStudent[toolIndex]"
  1563. :key="wIndex"
  1564. >
  1565. <div class="workImg">
  1566. <img
  1567. :src="word2"
  1568. @click="downloadFile(w.works)"
  1569. alt
  1570. />
  1571. <div
  1572. class="answerScore"
  1573. v-if="w.score"
  1574. @click.stop="openScore(w)"
  1575. :class="{
  1576. rightW:
  1577. w.userid == userid || tType == 1 || tType == 4,
  1578. }"
  1579. >
  1580. {{ JSON.parse(w.score).wScore }}分
  1581. </div>
  1582. <div
  1583. class="answerScore"
  1584. @click.stop="openScore(w)"
  1585. v-else-if="courseDetail.userid == userid"
  1586. :class="{
  1587. rightW:
  1588. w.userid == userid || tType == 1 || tType == 4,
  1589. }"
  1590. >
  1591. 评分
  1592. </div>
  1593. <img
  1594. class="deleteImg"
  1595. src="../../assets/deleteworks.png"
  1596. v-if="
  1597. w.userid == userid || tType == 1 || tType == 4
  1598. "
  1599. @click.stop="deleteWorks(w.wid)"
  1600. alt
  1601. />
  1602. </div>
  1603. <div class="worksName">
  1604. <div>{{ w.sName }}</div>
  1605. </div>
  1606. </div>
  1607. </div>
  1608. </div>
  1609. <div
  1610. v-if="
  1611. tType &&
  1612. tType == 2 &&
  1613. !sIsOpen &&
  1614. tool.tool.indexOf(57) != -1
  1615. "
  1616. class="worksBox"
  1617. >
  1618. <div
  1619. class="zuoyeYulan"
  1620. v-if="workStudent[toolIndex].length > 0"
  1621. >
  1622. <span class="worksTitle">作业预览</span>
  1623. </div>
  1624. <div
  1625. class="worksDetailBox"
  1626. v-if="workStudent[toolIndex].length > 0"
  1627. >
  1628. <div
  1629. class="works"
  1630. style="
  1631. width: 200px;
  1632. height: 140px;
  1633. margin: 10px 10px 10px 0;
  1634. box-shadow: 0 0 6px 1px #dfdada;
  1635. "
  1636. v-for="(w, wIndex) in workStudent[toolIndex]"
  1637. :key="wIndex"
  1638. >
  1639. <div class="workImg">
  1640. <img
  1641. :src="word2"
  1642. @click="downloadFile(w.works)"
  1643. v-if="w.type == 12"
  1644. alt
  1645. />
  1646. <img
  1647. :src="word2"
  1648. @click="
  1649. openCocoPi(57, toolIndex, w.userid, w.sName)
  1650. "
  1651. v-else-if="w.type == 15"
  1652. alt
  1653. />
  1654. <div
  1655. class="answerScore"
  1656. v-if="w.score"
  1657. @click.stop="openScore(w)"
  1658. :class="{
  1659. rightW:
  1660. w.userid == userid || tType == 1 || tType == 4,
  1661. }"
  1662. >
  1663. {{ JSON.parse(w.score).wScore }}分
  1664. </div>
  1665. <div
  1666. class="answerScore"
  1667. @click.stop="openScore(w)"
  1668. v-else-if="courseDetail.userid == userid"
  1669. :class="{
  1670. rightW:
  1671. w.userid == userid || tType == 1 || tType == 4,
  1672. }"
  1673. >
  1674. 评分
  1675. </div>
  1676. <img
  1677. class="deleteImg"
  1678. src="../../assets/deleteworks.png"
  1679. v-if="
  1680. w.userid == userid || tType == 1 || tType == 4
  1681. "
  1682. @click.stop="deleteWorks(w.wid)"
  1683. alt
  1684. />
  1685. </div>
  1686. <div class="worksName">
  1687. <div>{{ w.sName }}</div>
  1688. </div>
  1689. </div>
  1690. </div>
  1691. </div>
  1692. <div
  1693. v-if="
  1694. tType &&
  1695. tType == 2 &&
  1696. !sIsOpen &&
  1697. tool.tool.indexOf(4) != -1
  1698. "
  1699. class="worksBox"
  1700. >
  1701. <div
  1702. class="zuoyeYulan"
  1703. v-if="workStudent[toolIndex].length > 0"
  1704. >
  1705. <span class="worksTitle">作业预览</span>
  1706. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1707. </div>
  1708. <div
  1709. class="worksDetailBox"
  1710. v-if="workStudent[toolIndex].length > 0"
  1711. >
  1712. <div
  1713. class="isWorksName2"
  1714. v-for="(w, wIndex) in workStudent[toolIndex]"
  1715. :key="wIndex"
  1716. @click="
  1717. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1718. "
  1719. >
  1720. {{ w.sName }}
  1721. <img
  1722. class="deleteImg deleteImg2"
  1723. src="../../assets/deleteworks.png"
  1724. v-if="w.userid == userid || tType == 1 || tType == 4"
  1725. @click.stop="deleteWorks(w.wid)"
  1726. alt
  1727. />
  1728. </div>
  1729. <!-- <div
  1730. class="works"
  1731. style="
  1732. width: 200px;
  1733. height: 140px;
  1734. border-radius: 10px;
  1735. box-shadow: 0 0 6px 1px #dfdada;
  1736. overflow: hidden;
  1737. "
  1738. v-for="(w, wIndex) in workStudent[toolIndex]"
  1739. :key="wIndex"
  1740. >
  1741. <div class="workImg">
  1742. <img
  1743. src="../../assets/icon/works/noImg.png"
  1744. @click="
  1745. openTools(
  1746. 4,
  1747. toolIndex,
  1748. taskCount,
  1749. w.works,
  1750. w.sName
  1751. )
  1752. "
  1753. alt
  1754. />
  1755. </div>
  1756. <div class="worksName">
  1757. <div>{{ w.sName }}</div>
  1758. <div>{{ w.time }}</div>
  1759. </div>
  1760. </div> -->
  1761. </div>
  1762. </div>
  1763. <div
  1764. v-if="
  1765. tType &&
  1766. tType == 2 &&
  1767. !sIsOpen &&
  1768. tool.tool.indexOf(45) != -1
  1769. "
  1770. class="worksBox"
  1771. >
  1772. <div
  1773. class="zuoyeYulan"
  1774. v-if="workStudent[toolIndex].length > 0"
  1775. >
  1776. <span class="worksTitle">作业预览</span>
  1777. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1778. </div>
  1779. <div
  1780. class="worksDetailBox"
  1781. v-if="workStudent[toolIndex].length > 0"
  1782. >
  1783. <div
  1784. class="isWorksName2"
  1785. v-for="(w, wIndex) in workStudent[toolIndex]"
  1786. :key="wIndex"
  1787. @click="
  1788. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1789. "
  1790. >
  1791. {{ w.sName }}
  1792. <img
  1793. class="deleteImg deleteImg2"
  1794. src="../../assets/deleteworks.png"
  1795. v-if="w.userid == userid || tType == 1 || tType == 4"
  1796. @click.stop="deleteWorks(w.wid)"
  1797. alt
  1798. />
  1799. </div>
  1800. </div>
  1801. </div>
  1802. <div
  1803. v-if="
  1804. tType &&
  1805. tType == 2 &&
  1806. !sIsOpen &&
  1807. tool.tool.indexOf(69) != -1
  1808. "
  1809. class="worksBox"
  1810. >
  1811. <div
  1812. class="zuoyeYulan"
  1813. v-if="workStudent[toolIndex].length > 0"
  1814. >
  1815. <span class="worksTitle">作业预览</span>
  1816. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1817. </div>
  1818. <div
  1819. class="worksDetailBox"
  1820. v-if="workStudent[toolIndex].length > 0"
  1821. >
  1822. <div
  1823. class="isWorksName2"
  1824. v-for="(w, wIndex) in workStudent[toolIndex]"
  1825. :key="wIndex"
  1826. @click="
  1827. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1828. "
  1829. >
  1830. {{ w.sName }}
  1831. <img
  1832. class="deleteImg deleteImg2"
  1833. src="../../assets/deleteworks.png"
  1834. v-if="w.userid == userid || tType == 1 || tType == 4"
  1835. @click.stop="deleteWorks(w.wid)"
  1836. alt
  1837. />
  1838. </div>
  1839. </div>
  1840. </div>
  1841. <div
  1842. v-if="
  1843. tType &&
  1844. tType == 2 &&
  1845. !sIsOpen &&
  1846. tool.tool.indexOf(15) != -1
  1847. "
  1848. class="worksBox"
  1849. >
  1850. <div
  1851. class="zuoyeYulan"
  1852. v-if="workStudent[toolIndex].length > 0"
  1853. >
  1854. <span class="worksTitle">作业预览</span>
  1855. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1856. </div>
  1857. <div
  1858. class="worksDetailBox"
  1859. v-if="workStudent[toolIndex].length > 0"
  1860. >
  1861. <div
  1862. class="works"
  1863. v-for="(w, wIndex) in workStudent[toolIndex]"
  1864. :key="wIndex"
  1865. >
  1866. <div class="workImg">
  1867. <!-- <img
  1868. src="../../assets/icon/works/noImg.png"
  1869. @click="openTools(15, toolIndex, taskCount, w.works)"
  1870. alt=""
  1871. />-->
  1872. <div class="answerBg">
  1873. <!-- <div>{{ w.sName }}</div> -->
  1874. <el-tooltip
  1875. class="item"
  1876. effect="light"
  1877. :content="JSON.parse(w.works)[0].answer"
  1878. placement="top"
  1879. >
  1880. <div class="answerContent">
  1881. {{ JSON.parse(w.works)[0].answer }}
  1882. </div>
  1883. </el-tooltip>
  1884. <div
  1885. class="answerScore"
  1886. v-if="w.score"
  1887. @click.stop="openScore(w)"
  1888. :class="{
  1889. rightW:
  1890. w.userid == userid ||
  1891. tType == 1 ||
  1892. tType == 4,
  1893. }"
  1894. >
  1895. {{ JSON.parse(w.score).wScore }}分
  1896. </div>
  1897. <div
  1898. class="answerScore"
  1899. @click.stop="openScore(w)"
  1900. v-else-if="courseDetail.userid == userid"
  1901. :class="{
  1902. rightW:
  1903. w.userid == userid ||
  1904. tType == 1 ||
  1905. tType == 4,
  1906. }"
  1907. >
  1908. 评分
  1909. </div>
  1910. <img
  1911. class="deleteImg"
  1912. src="../../assets/deleteworks.png"
  1913. v-if="
  1914. w.userid == userid || tType == 1 || tType == 4
  1915. "
  1916. @click.stop="deleteWorks(w.wid)"
  1917. alt
  1918. />
  1919. </div>
  1920. <div class="comment">
  1921. <div class="worksName">
  1922. <div>{{ w.sName }}</div>
  1923. </div>
  1924. </div>
  1925. </div>
  1926. </div>
  1927. </div>
  1928. </div>
  1929. <div
  1930. v-if="
  1931. tType &&
  1932. tType == 2 &&
  1933. !sIsOpen &&
  1934. tool.tool.indexOf(1) != -1
  1935. "
  1936. class="worksBox"
  1937. >
  1938. <div
  1939. class="zuoyeYulan"
  1940. v-if="workStudent[toolIndex].length > 0"
  1941. >
  1942. <span class="worksTitle">作业预览</span>
  1943. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1944. </div>
  1945. <div
  1946. class="worksDetailBox"
  1947. v-if="workStudent[toolIndex].length > 0"
  1948. >
  1949. <div
  1950. class="works"
  1951. style="
  1952. width: 200px;
  1953. height: 140px;
  1954. margin: 10px 10px 10px 0;
  1955. box-shadow: 0 0 6px 1px #dfdada;
  1956. "
  1957. v-for="(w, wIndex) in workStudent[toolIndex]"
  1958. :key="wIndex"
  1959. >
  1960. <div class="workImg">
  1961. <img
  1962. :src="w.works"
  1963. @click="previewImg(w.works)"
  1964. alt
  1965. />
  1966. <div
  1967. class="answerScore"
  1968. v-if="w.score"
  1969. @click.stop="openScore(w)"
  1970. :class="{
  1971. rightW:
  1972. w.userid == userid || tType == 1 || tType == 4,
  1973. }"
  1974. >
  1975. {{ JSON.parse(w.score).wScore }}分
  1976. </div>
  1977. <div
  1978. class="answerScore"
  1979. @click.stop="openScore(w)"
  1980. v-else-if="courseDetail.userid == userid"
  1981. :class="{
  1982. rightW:
  1983. w.userid == userid || tType == 1 || tType == 4,
  1984. }"
  1985. >
  1986. 评分
  1987. </div>
  1988. <img
  1989. class="deleteImg"
  1990. src="../../assets/deleteworks.png"
  1991. v-if="
  1992. w.userid == userid || tType == 1 || tType == 4
  1993. "
  1994. @click.stop="deleteWorks(w.wid)"
  1995. alt
  1996. />
  1997. </div>
  1998. <div class="worksName">
  1999. <div>{{ w.sName }}</div>
  2000. </div>
  2001. </div>
  2002. </div>
  2003. </div>
  2004. <div
  2005. v-if="
  2006. tType &&
  2007. tType == 2 &&
  2008. !sIsOpen &&
  2009. tool.tool.indexOf(3) != -1
  2010. "
  2011. class="worksBox"
  2012. >
  2013. <div
  2014. class="zuoyeYulan"
  2015. v-if="workStudent[toolIndex].length > 0"
  2016. >
  2017. <span class="worksTitle">作业预览</span>
  2018. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2019. </div>
  2020. <div
  2021. class="worksDetailBox"
  2022. v-if="workStudent[toolIndex].length > 0"
  2023. >
  2024. <div
  2025. class="works"
  2026. style="
  2027. width: 200px;
  2028. height: 140px;
  2029. margin: 10px 10px 10px 0;
  2030. box-shadow: 0 0 6px 1px #dfdada;
  2031. "
  2032. v-for="(w, wIndex) in workStudent[toolIndex]"
  2033. :key="wIndex"
  2034. >
  2035. <div class="workImg">
  2036. <img
  2037. :src="w.works"
  2038. @click="previewImg(w.works)"
  2039. alt
  2040. />
  2041. <div
  2042. class="answerScore"
  2043. v-if="w.score"
  2044. @click.stop="openScore(w)"
  2045. :class="{
  2046. rightW:
  2047. w.userid == userid || tType == 1 || tType == 4,
  2048. }"
  2049. >
  2050. {{ JSON.parse(w.score).wScore }}分
  2051. </div>
  2052. <div
  2053. class="answerScore"
  2054. @click.stop="openScore(w)"
  2055. v-else-if="courseDetail.userid == userid"
  2056. :class="{
  2057. rightW:
  2058. w.userid == userid || tType == 1 || tType == 4,
  2059. }"
  2060. >
  2061. 评分
  2062. </div>
  2063. <img
  2064. class="deleteImg"
  2065. src="../../assets/deleteworks.png"
  2066. v-if="
  2067. w.userid == userid || tType == 1 || tType == 4
  2068. "
  2069. @click.stop="deleteWorks(w.wid)"
  2070. alt
  2071. />
  2072. </div>
  2073. <div class="worksName">
  2074. <div>{{ w.sName }}</div>
  2075. </div>
  2076. </div>
  2077. </div>
  2078. </div>
  2079. <div
  2080. v-if="
  2081. tType &&
  2082. tType == 2 &&
  2083. !sIsOpen &&
  2084. tool.tool.indexOf(6) != -1
  2085. "
  2086. class="worksBox"
  2087. >
  2088. <div
  2089. class="zuoyeYulan"
  2090. v-if="workStudent[toolIndex].length > 0"
  2091. >
  2092. <span class="worksTitle">作业预览</span>
  2093. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2094. </div>
  2095. <div
  2096. class="worksDetailBox"
  2097. v-if="workStudent[toolIndex].length > 0"
  2098. >
  2099. <div
  2100. class="works"
  2101. style="
  2102. width: 200px;
  2103. height: 140px;
  2104. margin: 10px 10px 10px 0;
  2105. box-shadow: 0 0 6px 1px #dfdada;
  2106. "
  2107. v-for="(w, wIndex) in workStudent[toolIndex]"
  2108. :key="wIndex"
  2109. >
  2110. <div class="workImg">
  2111. <img
  2112. :src="w.works"
  2113. @click="previewImg(w.works)"
  2114. alt
  2115. />
  2116. <div
  2117. class="answerScore"
  2118. v-if="w.score"
  2119. @click.stop="openScore(w)"
  2120. :class="{
  2121. rightW:
  2122. w.userid == userid || tType == 1 || tType == 4,
  2123. }"
  2124. >
  2125. {{ JSON.parse(w.score).wScore }}分
  2126. </div>
  2127. <div
  2128. class="answerScore"
  2129. @click.stop="openScore(w)"
  2130. v-else-if="courseDetail.userid == userid"
  2131. :class="{
  2132. rightW:
  2133. w.userid == userid || tType == 1 || tType == 4,
  2134. }"
  2135. >
  2136. 评分
  2137. </div>
  2138. <img
  2139. class="deleteImg"
  2140. src="../../assets/deleteworks.png"
  2141. v-if="
  2142. w.userid == userid || tType == 1 || tType == 4
  2143. "
  2144. @click.stop="deleteWorks(w.wid)"
  2145. alt
  2146. />
  2147. </div>
  2148. <div class="worksName">
  2149. <div>{{ w.sName }}</div>
  2150. </div>
  2151. </div>
  2152. </div>
  2153. </div>
  2154. <div
  2155. v-if="
  2156. tType &&
  2157. tType == 2 &&
  2158. !sIsOpen &&
  2159. tool.tool.indexOf(7) != -1
  2160. "
  2161. class="worksBox"
  2162. >
  2163. <div
  2164. class="zuoyeYulan"
  2165. v-if="workStudent[toolIndex].length > 0"
  2166. >
  2167. <span class="worksTitle">作业预览</span>
  2168. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2169. </div>
  2170. <div
  2171. class="worksDetailBox"
  2172. v-if="workStudent[toolIndex].length > 0"
  2173. >
  2174. <div
  2175. class="works"
  2176. style="
  2177. width: 200px;
  2178. height: 140px;
  2179. margin: 10px 10px 10px 0;
  2180. box-shadow: 0 0 6px 1px #dfdada;
  2181. "
  2182. v-for="(w, wIndex) in workStudent[toolIndex]"
  2183. :key="wIndex"
  2184. >
  2185. <div class="workImg">
  2186. <img
  2187. :src="w.works"
  2188. @click="previewImg(w.works)"
  2189. alt
  2190. />
  2191. <div
  2192. class="answerScore"
  2193. v-if="w.score"
  2194. @click.stop="openScore(w)"
  2195. :class="{
  2196. rightW:
  2197. w.userid == userid || tType == 1 || tType == 4,
  2198. }"
  2199. >
  2200. {{ JSON.parse(w.score).wScore }}分
  2201. </div>
  2202. <div
  2203. class="answerScore"
  2204. @click.stop="openScore(w)"
  2205. v-else-if="courseDetail.userid == userid"
  2206. :class="{
  2207. rightW:
  2208. w.userid == userid || tType == 1 || tType == 4,
  2209. }"
  2210. >
  2211. 评分
  2212. </div>
  2213. <img
  2214. class="deleteImg"
  2215. src="../../assets/deleteworks.png"
  2216. v-if="
  2217. w.userid == userid || tType == 1 || tType == 4
  2218. "
  2219. @click.stop="deleteWorks(w.wid)"
  2220. alt
  2221. />
  2222. </div>
  2223. <div class="worksName">
  2224. <div>{{ w.sName }}</div>
  2225. </div>
  2226. </div>
  2227. </div>
  2228. </div>
  2229. <div
  2230. v-if="
  2231. tType &&
  2232. tType == 2 &&
  2233. !sIsOpen &&
  2234. tool.tool.indexOf(26) != -1
  2235. "
  2236. class="worksBox"
  2237. >
  2238. <div
  2239. class="zuoyeYulan"
  2240. v-if="workStudent[toolIndex].length > 0"
  2241. >
  2242. <span class="worksTitle">作业预览</span>
  2243. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2244. </div>
  2245. <div
  2246. class="worksDetailBox"
  2247. v-if="workStudent[toolIndex].length > 0"
  2248. >
  2249. <div
  2250. class="works"
  2251. style="
  2252. width: 200px;
  2253. height: 140px;
  2254. margin: 10px 10px 10px 0;
  2255. box-shadow: 0 0 6px 1px #dfdada;
  2256. "
  2257. v-for="(w, wIndex) in workStudent[toolIndex]"
  2258. :key="wIndex"
  2259. >
  2260. <div class="workImg">
  2261. <img
  2262. :src="w.works"
  2263. @click="previewImg(w.works)"
  2264. alt
  2265. />
  2266. <img
  2267. class="deleteImg"
  2268. src="../../assets/deleteworks.png"
  2269. v-if="
  2270. w.userid == userid || tType == 1 || tType == 4
  2271. "
  2272. @click.stop="deleteWorks(w.wid)"
  2273. alt
  2274. />
  2275. </div>
  2276. <div class="worksName">
  2277. <div>{{ w.sName }}</div>
  2278. </div>
  2279. </div>
  2280. </div>
  2281. </div>
  2282. <div
  2283. v-if="
  2284. tType &&
  2285. ((tType == 2 && sIsOpen == true) ||
  2286. tType == 1 ||
  2287. tType == 4) &&
  2288. tool.tool.indexOf(16) != -1
  2289. "
  2290. class="worksBox"
  2291. >
  2292. <div
  2293. class="zuoyeYulan"
  2294. v-if="
  2295. worksStudent.length &&
  2296. worksStudent[toolIndex].length > 0
  2297. "
  2298. >
  2299. <div class="worksTop">
  2300. <div>作业预览</div>
  2301. <div
  2302. class="corOpen"
  2303. @click="contract(toolIndex)"
  2304. v-if="
  2305. worksStudent[toolIndex].length > 6 &&
  2306. isCloseList[toolIndex].isClose == 0
  2307. "
  2308. >
  2309. 折叠
  2310. </div>
  2311. <div
  2312. class="corOpen"
  2313. @click="contract(toolIndex)"
  2314. v-if="isCloseList[toolIndex].isClose == 1"
  2315. >
  2316. 展开
  2317. </div>
  2318. </div>
  2319. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2320. </div>
  2321. <div
  2322. class="group_workBox"
  2323. v-for="(g, gindex) in courseGroup.group"
  2324. :key="gindex"
  2325. >
  2326. <div class="group_box">
  2327. <div class="group_title">
  2328. <el-tooltip
  2329. class="item"
  2330. effect="light"
  2331. :content="g.name"
  2332. placement="top"
  2333. >
  2334. <div class="group_name">{{ g.name }}</div>
  2335. </el-tooltip>
  2336. </div>
  2337. <div
  2338. class="group_work"
  2339. v-if="
  2340. g.works &&
  2341. g.works.length &&
  2342. g.works[toolIndex].length
  2343. "
  2344. >
  2345. <div
  2346. class="works"
  2347. style="
  2348. width: 200px;
  2349. height: 140px;
  2350. margin: 10px 10px 10px 0;
  2351. border-radius: 15px;
  2352. box-shadow: 0 0 6px 1px #dfdada;
  2353. "
  2354. v-for="(w, wIndex) in g.works[toolIndex]"
  2355. :key="wIndex"
  2356. :class="w.type == 1 ? 'isTypeOne' : ''"
  2357. >
  2358. <div class="workImg" v-if="w.type == 0">
  2359. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2360. <img
  2361. :src="w.works"
  2362. @click="previewImg(w.works)"
  2363. alt
  2364. />
  2365. <div
  2366. class="answerScore"
  2367. v-if="w.score"
  2368. @click.stop="openScore(w)"
  2369. :class="{
  2370. rightW:
  2371. w.userid == userid ||
  2372. tType == 1 ||
  2373. tType == 4 ||
  2374. w.ateacher == userid,
  2375. }"
  2376. >
  2377. {{ JSON.parse(w.score).wScore }}分
  2378. </div>
  2379. <div
  2380. class="answerScore"
  2381. @click.stop="openScore(w)"
  2382. v-else-if="courseDetail.userid == userid"
  2383. :class="{
  2384. rightW:
  2385. w.userid == userid ||
  2386. tType == 1 ||
  2387. tType == 4 ||
  2388. w.ateacher == userid,
  2389. }"
  2390. >
  2391. 评分
  2392. </div>
  2393. <img
  2394. class="deleteImg"
  2395. src="../../assets/deleteworks.png"
  2396. v-if="
  2397. w.userid == userid || tType == 1 || tType == 4
  2398. "
  2399. @click.stop="deleteWorks(w.wid)"
  2400. alt
  2401. />
  2402. </div>
  2403. <div class="workImg" v-if="w.type == 1">
  2404. <img :src="word" @click="openFile(w.works)" alt />
  2405. <!-- @click="openFile(w.works)" -->
  2406. <div
  2407. class="answerScore"
  2408. v-if="w.score"
  2409. @click.stop="openScore(w)"
  2410. :class="{
  2411. rightW:
  2412. w.userid == userid ||
  2413. tType == 1 ||
  2414. tType == 4 ||
  2415. w.ateacher == userid,
  2416. }"
  2417. >
  2418. {{ JSON.parse(w.score).wScore }}分
  2419. </div>
  2420. <div
  2421. class="answerScore"
  2422. @click.stop="openScore(w)"
  2423. v-else-if="courseDetail.userid == userid"
  2424. :class="{
  2425. rightW:
  2426. w.userid == userid ||
  2427. tType == 1 ||
  2428. tType == 4 ||
  2429. w.ateacher == userid,
  2430. }"
  2431. >
  2432. 评分
  2433. </div>
  2434. <img
  2435. class="deleteImg"
  2436. src="../../assets/deleteworks.png"
  2437. v-if="
  2438. w.userid == userid || tType == 1 || tType == 4
  2439. "
  2440. @click.stop="deleteWorks(w.wid)"
  2441. alt
  2442. />
  2443. </div>
  2444. <div class="workImg" v-if="w.type == 3">
  2445. <img
  2446. style="cursor: pointer"
  2447. :src="video"
  2448. @click="openVideo(w)"
  2449. alt
  2450. />
  2451. <!-- @click="openVideo(w.works)" -->
  2452. <div
  2453. class="answerScore"
  2454. v-if="w.score"
  2455. @click.stop="openScore(w)"
  2456. :class="{
  2457. rightW:
  2458. w.userid == userid ||
  2459. tType == 1 ||
  2460. tType == 4 ||
  2461. w.ateacher == userid,
  2462. }"
  2463. >
  2464. {{ JSON.parse(w.score).wScore }}分
  2465. </div>
  2466. <div
  2467. class="answerScore"
  2468. @click.stop="openScore(w)"
  2469. v-else-if="courseDetail.userid == userid"
  2470. :class="{
  2471. rightW:
  2472. w.userid == userid ||
  2473. tType == 1 ||
  2474. tType == 4 ||
  2475. w.ateacher == userid,
  2476. }"
  2477. >
  2478. 评分
  2479. </div>
  2480. <img
  2481. class="deleteImg"
  2482. src="../../assets/deleteworks.png"
  2483. v-if="
  2484. w.userid == userid || tType == 1 || tType == 4
  2485. "
  2486. @click.stop="deleteWorks(w.wid)"
  2487. alt
  2488. />
  2489. </div>
  2490. <div class="workImg" v-if="w.type == 12">
  2491. <img
  2492. style="cursor: pointer"
  2493. :src="word2"
  2494. @click="downloadFile(w.works)"
  2495. alt
  2496. />
  2497. <!-- @click="openVideo(w.works)" -->
  2498. <div
  2499. class="answerScore"
  2500. v-if="w.score"
  2501. @click.stop="openScore(w)"
  2502. :class="{
  2503. rightW:
  2504. w.userid == userid ||
  2505. tType == 1 ||
  2506. tType == 4 ||
  2507. w.ateacher == userid,
  2508. }"
  2509. >
  2510. {{ JSON.parse(w.score).wScore }}分
  2511. </div>
  2512. <div
  2513. class="answerScore"
  2514. @click.stop="openScore(w)"
  2515. v-else-if="courseDetail.userid == userid"
  2516. :class="{
  2517. rightW:
  2518. w.userid == userid ||
  2519. tType == 1 ||
  2520. tType == 4 ||
  2521. w.ateacher == userid,
  2522. }"
  2523. >
  2524. 评分
  2525. </div>
  2526. <img
  2527. class="deleteImg"
  2528. src="../../assets/deleteworks.png"
  2529. v-if="
  2530. w.userid == userid || tType == 1 || tType == 4
  2531. "
  2532. @click.stop="deleteWorks(w.wid)"
  2533. alt
  2534. />
  2535. </div>
  2536. <div class="comment" style="min-width: 200px">
  2537. <div class="worksName">
  2538. <div>{{ w.sName }}</div>
  2539. </div>
  2540. <div class="commentList">
  2541. <div class="commentList">
  2542. <div
  2543. class="commentImg"
  2544. @click="
  2545. isLikes(w.wid, userid, 1, null, w.isLikes)
  2546. "
  2547. >
  2548. <img
  2549. :src="w.isLikes == true ? likes : noLikes"
  2550. alt=""
  2551. />
  2552. </div>
  2553. <div>{{ w.likesCount }}</div>
  2554. </div>
  2555. <div
  2556. class="commentList"
  2557. style="margin-right: 15px"
  2558. >
  2559. <div
  2560. class="commentImg"
  2561. @click="
  2562. commentOther(
  2563. w,
  2564. toolIndex,
  2565. wIndex,
  2566. null,
  2567. g.id
  2568. )
  2569. "
  2570. >
  2571. <img
  2572. src="../../assets/icon/comment/comment.png"
  2573. alt=""
  2574. />
  2575. </div>
  2576. <div>{{ w.commentCount }}</div>
  2577. </div>
  2578. </div>
  2579. </div>
  2580. </div>
  2581. </div>
  2582. <div class="group_work" v-else>暂无提交作业</div>
  2583. </div>
  2584. </div>
  2585. <div
  2586. class="worksDetailBox"
  2587. v-if="
  2588. worksStudent.length &&
  2589. worksStudent[toolIndex].length > 0
  2590. "
  2591. >
  2592. <div
  2593. class="works"
  2594. style="
  2595. width: 200px;
  2596. height: 140px;
  2597. margin: 10px 10px 10px 0;
  2598. border-radius: 15px;
  2599. box-shadow: 0 0 6px 1px #dfdada;
  2600. "
  2601. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2602. 0
  2603. ? worksStudent[toolIndex]
  2604. : worksStudent[toolIndex].slice(0, 6)"
  2605. :key="wIndex"
  2606. :class="w.type == 1 ? 'isTypeOne' : ''"
  2607. >
  2608. <div class="workImg" v-if="w.type == 0">
  2609. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2610. <img
  2611. :src="w.works"
  2612. @click="previewImg(w.works)"
  2613. alt
  2614. />
  2615. <div
  2616. class="answerScore"
  2617. v-if="w.score"
  2618. @click.stop="openScore(w)"
  2619. :class="{
  2620. rightW:
  2621. w.userid == userid ||
  2622. tType == 1 ||
  2623. tType == 4 ||
  2624. w.ateacher == userid,
  2625. }"
  2626. >
  2627. {{ JSON.parse(w.score).wScore }}分
  2628. </div>
  2629. <div
  2630. class="answerScore"
  2631. @click.stop="openScore(w)"
  2632. v-else-if="courseDetail.userid == userid"
  2633. :class="{
  2634. rightW:
  2635. w.userid == userid ||
  2636. tType == 1 ||
  2637. tType == 4 ||
  2638. w.ateacher == userid,
  2639. }"
  2640. >
  2641. 评分
  2642. </div>
  2643. <img
  2644. class="deleteImg"
  2645. src="../../assets/deleteworks.png"
  2646. v-if="
  2647. w.userid == userid || tType == 1 || tType == 4
  2648. "
  2649. @click.stop="deleteWorks(w.wid)"
  2650. alt
  2651. />
  2652. </div>
  2653. <div class="workImg" v-if="w.type == 1">
  2654. <img :src="word" @click="openFile(w.works)" alt />
  2655. <!-- @click="openFile(w.works)" -->
  2656. <div
  2657. class="answerScore"
  2658. v-if="w.score"
  2659. @click.stop="openScore(w)"
  2660. :class="{
  2661. rightW:
  2662. w.userid == userid ||
  2663. tType == 1 ||
  2664. tType == 4 ||
  2665. w.ateacher == userid,
  2666. }"
  2667. >
  2668. {{ JSON.parse(w.score).wScore }}分
  2669. </div>
  2670. <div
  2671. class="answerScore"
  2672. @click.stop="openScore(w)"
  2673. v-else-if="courseDetail.userid == userid"
  2674. :class="{
  2675. rightW:
  2676. w.userid == userid ||
  2677. tType == 1 ||
  2678. tType == 4 ||
  2679. w.ateacher == userid,
  2680. }"
  2681. >
  2682. 评分
  2683. </div>
  2684. <img
  2685. class="deleteImg"
  2686. src="../../assets/deleteworks.png"
  2687. v-if="
  2688. w.userid == userid || tType == 1 || tType == 4
  2689. "
  2690. @click.stop="deleteWorks(w.wid)"
  2691. alt
  2692. />
  2693. </div>
  2694. <div class="workImg" v-if="w.type == 3">
  2695. <img
  2696. style="cursor: pointer"
  2697. :src="video"
  2698. @click="openVideo(w)"
  2699. alt
  2700. />
  2701. <!-- @click="openVideo(w.works)" -->
  2702. <div
  2703. class="answerScore"
  2704. v-if="w.score"
  2705. @click.stop="openScore(w)"
  2706. :class="{
  2707. rightW:
  2708. w.userid == userid ||
  2709. tType == 1 ||
  2710. tType == 4 ||
  2711. w.ateacher == userid,
  2712. }"
  2713. >
  2714. {{ JSON.parse(w.score).wScore }}分
  2715. </div>
  2716. <div
  2717. class="answerScore"
  2718. @click.stop="openScore(w)"
  2719. v-else-if="courseDetail.userid == userid"
  2720. :class="{
  2721. rightW:
  2722. w.userid == userid ||
  2723. tType == 1 ||
  2724. tType == 4 ||
  2725. w.ateacher == userid,
  2726. }"
  2727. >
  2728. 评分
  2729. </div>
  2730. <img
  2731. class="deleteImg"
  2732. src="../../assets/deleteworks.png"
  2733. v-if="
  2734. w.userid == userid || tType == 1 || tType == 4
  2735. "
  2736. @click.stop="deleteWorks(w.wid)"
  2737. alt
  2738. />
  2739. </div>
  2740. <div class="workImg" v-if="w.type == 12">
  2741. <img
  2742. style="cursor: pointer"
  2743. :src="word2"
  2744. @click="downloadFile(w.works)"
  2745. alt
  2746. />
  2747. <!-- @click="openVideo(w.works)" -->
  2748. <div
  2749. class="answerScore"
  2750. v-if="w.score"
  2751. @click.stop="openScore(w)"
  2752. :class="{
  2753. rightW:
  2754. w.userid == userid ||
  2755. tType == 1 ||
  2756. tType == 4 ||
  2757. w.ateacher == userid,
  2758. }"
  2759. >
  2760. {{ JSON.parse(w.score).wScore }}分
  2761. </div>
  2762. <div
  2763. class="answerScore"
  2764. @click.stop="openScore(w)"
  2765. v-else-if="courseDetail.userid == userid"
  2766. :class="{
  2767. rightW:
  2768. w.userid == userid ||
  2769. tType == 1 ||
  2770. tType == 4 ||
  2771. w.ateacher == userid,
  2772. }"
  2773. >
  2774. 评分
  2775. </div>
  2776. <img
  2777. class="deleteImg"
  2778. src="../../assets/deleteworks.png"
  2779. v-if="
  2780. w.userid == userid || tType == 1 || tType == 4
  2781. "
  2782. @click.stop="deleteWorks(w.wid)"
  2783. alt
  2784. />
  2785. </div>
  2786. <div class="comment" style="min-width: 200px">
  2787. <div class="worksName">
  2788. <div>{{ w.sName }}</div>
  2789. </div>
  2790. <div class="commentList">
  2791. <div class="commentList">
  2792. <div
  2793. class="commentImg"
  2794. @click="
  2795. isLikes(w.wid, userid, 1, null, w.isLikes)
  2796. "
  2797. >
  2798. <img
  2799. :src="w.isLikes == true ? likes : noLikes"
  2800. alt=""
  2801. />
  2802. </div>
  2803. <div>{{ w.likesCount }}</div>
  2804. </div>
  2805. <div class="commentList" style="margin-right: 15px">
  2806. <div
  2807. class="commentImg"
  2808. @click="commentOther(w, toolIndex, wIndex)"
  2809. >
  2810. <img
  2811. src="../../assets/icon/comment/comment.png"
  2812. alt=""
  2813. />
  2814. </div>
  2815. <div>{{ w.commentCount }}</div>
  2816. </div>
  2817. </div>
  2818. </div>
  2819. </div>
  2820. </div>
  2821. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2822. 未提交
  2823. </div>
  2824. <div
  2825. class="noWorksS"
  2826. v-if="noWorksS && noWorksS[toolIndex].length"
  2827. >
  2828. <div
  2829. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2830. :key="sIndex"
  2831. class="noWorksName"
  2832. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2833. >
  2834. {{ s.student }}
  2835. </div>
  2836. </div>
  2837. </div>
  2838. <div
  2839. v-if="
  2840. tType &&
  2841. ((tType == 2 && sIsOpen == true) ||
  2842. tType == 1 ||
  2843. tType == 4) &&
  2844. tool.tool.indexOf(32) != -1
  2845. "
  2846. class="worksBox"
  2847. >
  2848. <div
  2849. class="zuoyeYulan"
  2850. v-if="
  2851. worksStudent.length &&
  2852. worksStudent[toolIndex].length > 0
  2853. "
  2854. >
  2855. <div class="worksTop">
  2856. <div>作业预览</div>
  2857. <div
  2858. class="corOpen"
  2859. @click="contract(toolIndex)"
  2860. v-if="
  2861. worksStudent[toolIndex].length > 6 &&
  2862. isCloseList[toolIndex].isClose == 0
  2863. "
  2864. >
  2865. 折叠
  2866. </div>
  2867. <div
  2868. class="corOpen"
  2869. @click="contract(toolIndex)"
  2870. v-if="isCloseList[toolIndex].isClose == 1"
  2871. >
  2872. 展开
  2873. </div>
  2874. </div>
  2875. </div>
  2876. <div
  2877. class="worksDetailBox"
  2878. v-if="
  2879. worksStudent.length &&
  2880. worksStudent[toolIndex].length > 0
  2881. "
  2882. >
  2883. <div
  2884. class="works"
  2885. style="
  2886. width: 200px;
  2887. height: 140px;
  2888. margin: 10px 10px 10px 0;
  2889. border-radius: 15px;
  2890. box-shadow: 0 0 6px 1px #dfdada;
  2891. "
  2892. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2893. 0
  2894. ? worksStudent[toolIndex]
  2895. : worksStudent[toolIndex].slice(0, 6)"
  2896. :key="wIndex"
  2897. :class="w.type == 1 ? 'isTypeOne' : ''"
  2898. >
  2899. <div class="workImg">
  2900. <img
  2901. :src="word2"
  2902. @click="downloadFile(w.works)"
  2903. alt
  2904. />
  2905. <div
  2906. class="answerScore"
  2907. v-if="w.score"
  2908. @click.stop="openScore(w)"
  2909. :class="{
  2910. rightW:
  2911. w.userid == userid ||
  2912. tType == 1 ||
  2913. tType == 4 ||
  2914. w.ateacher == userid,
  2915. }"
  2916. >
  2917. {{ JSON.parse(w.score).wScore }}分
  2918. </div>
  2919. <div
  2920. class="answerScore"
  2921. @click.stop="openScore(w)"
  2922. v-else-if="courseDetail.userid == userid"
  2923. :class="{
  2924. rightW:
  2925. w.userid == userid ||
  2926. tType == 1 ||
  2927. tType == 4 ||
  2928. w.ateacher == userid,
  2929. }"
  2930. >
  2931. 评分
  2932. </div>
  2933. <img
  2934. class="deleteImg"
  2935. src="../../assets/deleteworks.png"
  2936. v-if="
  2937. w.userid == userid || tType == 1 || tType == 4
  2938. "
  2939. @click.stop="deleteWorks(w.wid)"
  2940. alt
  2941. />
  2942. </div>
  2943. <div class="comment" style="min-width: 200px">
  2944. <div class="worksName">
  2945. <div>{{ w.sName }}</div>
  2946. </div>
  2947. <div class="commentList">
  2948. <div class="commentList">
  2949. <div
  2950. class="commentImg"
  2951. @click="
  2952. isLikes(w.wid, userid, 1, null, w.isLikes)
  2953. "
  2954. >
  2955. <img
  2956. :src="w.isLikes == true ? likes : noLikes"
  2957. alt=""
  2958. />
  2959. </div>
  2960. <div>{{ w.likesCount }}</div>
  2961. </div>
  2962. <div class="commentList" style="margin-right: 15px">
  2963. <div
  2964. class="commentImg"
  2965. @click="commentOther(w, toolIndex, wIndex)"
  2966. >
  2967. <img
  2968. src="../../assets/icon/comment/comment.png"
  2969. alt=""
  2970. />
  2971. </div>
  2972. <div>{{ w.commentCount }}</div>
  2973. </div>
  2974. </div>
  2975. </div>
  2976. </div>
  2977. </div>
  2978. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2979. 未提交
  2980. </div>
  2981. <div
  2982. class="noWorksS"
  2983. v-if="noWorksS && noWorksS[toolIndex].length"
  2984. >
  2985. <div
  2986. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2987. :key="sIndex"
  2988. class="noWorksName"
  2989. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  2990. >
  2991. {{ s.student }}
  2992. </div>
  2993. </div>
  2994. </div>
  2995. <div
  2996. v-if="
  2997. tType &&
  2998. ((tType == 2 && sIsOpen == true) ||
  2999. tType == 1 ||
  3000. tType == 4) &&
  3001. tool.tool.indexOf(57) != -1
  3002. "
  3003. class="worksBox"
  3004. >
  3005. <div
  3006. class="zuoyeYulan"
  3007. v-if="
  3008. worksStudent.length &&
  3009. worksStudent[toolIndex].length > 0
  3010. "
  3011. >
  3012. <div class="worksTop">
  3013. <div>作业预览</div>
  3014. <div
  3015. class="corOpen"
  3016. @click="contract(toolIndex)"
  3017. v-if="
  3018. worksStudent[toolIndex].length > 6 &&
  3019. isCloseList[toolIndex].isClose == 0
  3020. "
  3021. >
  3022. 折叠
  3023. </div>
  3024. <div
  3025. class="corOpen"
  3026. @click="contract(toolIndex)"
  3027. v-if="isCloseList[toolIndex].isClose == 1"
  3028. >
  3029. 展开
  3030. </div>
  3031. </div>
  3032. </div>
  3033. <div
  3034. class="worksDetailBox"
  3035. v-if="
  3036. worksStudent.length &&
  3037. worksStudent[toolIndex].length > 0
  3038. "
  3039. >
  3040. <div
  3041. class="works"
  3042. style="
  3043. width: 200px;
  3044. height: 140px;
  3045. margin: 10px 10px 10px 0;
  3046. border-radius: 15px;
  3047. box-shadow: 0 0 6px 1px #dfdada;
  3048. "
  3049. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3050. 0
  3051. ? worksStudent[toolIndex]
  3052. : worksStudent[toolIndex].slice(0, 6)"
  3053. :key="wIndex"
  3054. :class="w.type == 1 ? 'isTypeOne' : ''"
  3055. >
  3056. <div class="workImg">
  3057. <img
  3058. :src="word2"
  3059. @click="downloadFile(w.works)"
  3060. v-if="w.type == 12"
  3061. alt
  3062. />
  3063. <img
  3064. :src="word2"
  3065. @click="
  3066. openCocoPi(57, toolIndex, w.userid, w.sName)
  3067. "
  3068. v-else-if="w.type == 15"
  3069. alt
  3070. />
  3071. <div
  3072. class="answerScore"
  3073. v-if="w.score"
  3074. @click.stop="openScore(w)"
  3075. :class="{
  3076. rightW:
  3077. w.userid == userid ||
  3078. tType == 1 ||
  3079. tType == 4 ||
  3080. w.ateacher == userid,
  3081. }"
  3082. >
  3083. {{ JSON.parse(w.score).wScore }}分
  3084. </div>
  3085. <div
  3086. class="answerScore"
  3087. @click.stop="openScore(w)"
  3088. v-else-if="courseDetail.userid == userid"
  3089. :class="{
  3090. rightW:
  3091. w.userid == userid ||
  3092. tType == 1 ||
  3093. tType == 4 ||
  3094. w.ateacher == userid,
  3095. }"
  3096. >
  3097. 评分
  3098. </div>
  3099. <img
  3100. class="deleteImg"
  3101. src="../../assets/deleteworks.png"
  3102. v-if="
  3103. w.userid == userid || tType == 1 || tType == 4
  3104. "
  3105. @click.stop="deleteWorks(w.wid)"
  3106. alt
  3107. />
  3108. </div>
  3109. <div class="comment" style="min-width: 200px">
  3110. <div class="worksName">
  3111. <div>{{ w.sName }}</div>
  3112. </div>
  3113. <div class="commentList">
  3114. <div class="commentList">
  3115. <div
  3116. class="commentImg"
  3117. @click="
  3118. isLikes(w.wid, userid, 1, null, w.isLikes)
  3119. "
  3120. >
  3121. <img
  3122. :src="w.isLikes == true ? likes : noLikes"
  3123. alt=""
  3124. />
  3125. </div>
  3126. <div>{{ w.likesCount }}</div>
  3127. </div>
  3128. <div class="commentList" style="margin-right: 15px">
  3129. <div
  3130. class="commentImg"
  3131. @click="commentOther(w, toolIndex, wIndex)"
  3132. >
  3133. <img
  3134. src="../../assets/icon/comment/comment.png"
  3135. alt=""
  3136. />
  3137. </div>
  3138. <div>{{ w.commentCount }}</div>
  3139. </div>
  3140. </div>
  3141. </div>
  3142. </div>
  3143. </div>
  3144. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3145. 未提交
  3146. </div>
  3147. <div
  3148. class="noWorksS"
  3149. v-if="noWorksS && noWorksS[toolIndex].length"
  3150. >
  3151. <div
  3152. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3153. :key="sIndex"
  3154. class="noWorksName"
  3155. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3156. >
  3157. {{ s.student }}
  3158. </div>
  3159. </div>
  3160. </div>
  3161. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3162. <div
  3163. class="zuoyeYulan"
  3164. v-if="
  3165. worksStudent.length &&
  3166. worksStudent[toolIndex].length > 0
  3167. "
  3168. >
  3169. <span class="worksTitle">作业预览</span>
  3170. <div
  3171. class="corOpen"
  3172. @click="contract(toolIndex)"
  3173. v-if="
  3174. worksStudent[toolIndex].length > 6 &&
  3175. isCloseList[toolIndex].isClose == 0
  3176. "
  3177. >
  3178. 折叠
  3179. </div>
  3180. <div
  3181. class="corOpen"
  3182. @click="contract(toolIndex)"
  3183. v-if="isCloseList[toolIndex].isClose == 1"
  3184. >
  3185. 展开
  3186. </div>
  3187. </div>
  3188. <div
  3189. class="worksDetailBox"
  3190. v-if="
  3191. worksStudent.length &&
  3192. worksStudent[toolIndex].length > 0
  3193. "
  3194. >
  3195. <div
  3196. class="works"
  3197. style="
  3198. width: 200px;
  3199. height: 140px;
  3200. margin: 10px 10px 10px 0;
  3201. border-radius: 15px;
  3202. box-shadow: 0 0 6px 1px #dfdada;
  3203. "
  3204. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3205. 0
  3206. ? worksStudent[toolIndex]
  3207. : worksStudent[toolIndex].slice(0, 6)"
  3208. :key="wIndex"
  3209. :class="w.type == 1 ? 'isTypeOne' : ''"
  3210. >
  3211. <div class="workImg" v-if="w.type == 0">
  3212. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3213. <img
  3214. :src="w.works"
  3215. @click="previewImg(w.works)"
  3216. alt
  3217. />
  3218. <div
  3219. class="answerScore"
  3220. v-if="w.score"
  3221. @click.stop="openScore(w)"
  3222. :class="{
  3223. rightW:
  3224. w.userid == userid ||
  3225. tType == 1 ||
  3226. tType == 4 ||
  3227. w.ateacher == userid,
  3228. }"
  3229. >
  3230. {{ JSON.parse(w.score).wScore }}分
  3231. </div>
  3232. <div
  3233. class="answerScore"
  3234. @click.stop="openScore(w)"
  3235. v-else-if="courseDetail.userid == userid"
  3236. :class="{
  3237. rightW:
  3238. w.userid == userid ||
  3239. tType == 1 ||
  3240. tType == 4 ||
  3241. w.ateacher == userid,
  3242. }"
  3243. >
  3244. 评分
  3245. </div>
  3246. <img
  3247. class="deleteImg"
  3248. src="../../assets/deleteworks.png"
  3249. v-if="
  3250. w.userid == userid || tType == 1 || tType == 4
  3251. "
  3252. @click.stop="deleteWorks(w.wid)"
  3253. alt
  3254. />
  3255. </div>
  3256. <div
  3257. class="workImg"
  3258. style="cursor: pointer"
  3259. v-if="w.type == 1"
  3260. >
  3261. <img :src="word" @click="openFile(w.works)" alt />
  3262. <!-- @click="openFile(w.works)" -->
  3263. <div
  3264. class="answerScore"
  3265. v-if="w.score"
  3266. @click.stop="openScore(w)"
  3267. :class="{
  3268. rightW:
  3269. w.userid == userid ||
  3270. tType == 1 ||
  3271. tType == 4 ||
  3272. w.ateacher == userid,
  3273. }"
  3274. >
  3275. {{ JSON.parse(w.score).wScore }}分
  3276. </div>
  3277. <div
  3278. class="answerScore"
  3279. @click.stop="openScore(w)"
  3280. v-else-if="courseDetail.userid == userid"
  3281. :class="{
  3282. rightW:
  3283. w.userid == userid ||
  3284. tType == 1 ||
  3285. tType == 4 ||
  3286. w.ateacher == userid,
  3287. }"
  3288. >
  3289. 评分
  3290. </div>
  3291. <img
  3292. class="deleteImg"
  3293. src="../../assets/deleteworks.png"
  3294. v-if="
  3295. w.userid == userid || tType == 1 || tType == 4
  3296. "
  3297. @click.stop="deleteWorks(w.wid)"
  3298. alt
  3299. />
  3300. </div>
  3301. <div class="workImg" v-if="w.type == 3">
  3302. <img
  3303. style="cursor: pointer"
  3304. :src="video"
  3305. @click="openVideo(w)"
  3306. alt
  3307. />
  3308. <!-- @click="openVideo(w.works)" -->
  3309. <div
  3310. class="answerScore"
  3311. v-if="w.score"
  3312. @click.stop="openScore(w)"
  3313. :class="{
  3314. rightW:
  3315. w.userid == userid ||
  3316. tType == 1 ||
  3317. tType == 4 ||
  3318. w.ateacher == userid,
  3319. }"
  3320. >
  3321. {{ JSON.parse(w.score).wScore }}分
  3322. </div>
  3323. <div
  3324. class="answerScore"
  3325. @click.stop="openScore(w)"
  3326. v-else-if="courseDetail.userid == userid"
  3327. :class="{
  3328. rightW:
  3329. w.userid == userid ||
  3330. tType == 1 ||
  3331. tType == 4 ||
  3332. w.ateacher == userid,
  3333. }"
  3334. >
  3335. 评分
  3336. </div>
  3337. <img
  3338. class="deleteImg"
  3339. src="../../assets/deleteworks.png"
  3340. v-if="
  3341. w.userid == userid || tType == 1 || tType == 4
  3342. "
  3343. @click.stop="deleteWorks(w.wid)"
  3344. alt
  3345. />
  3346. </div>
  3347. <div class="comment" style="min-width: 200px">
  3348. <div class="worksName">
  3349. <div
  3350. style="cursor: pointer"
  3351. @click="
  3352. openSname(w.sName, w.wid, toolIndex, w.userid)
  3353. "
  3354. >
  3355. {{ w.sName }}
  3356. </div>
  3357. </div>
  3358. <div class="commentList">
  3359. <div class="commentList">
  3360. <div
  3361. class="commentImg"
  3362. @click="
  3363. isLikes(w.wid, userid, 1, null, w.isLikes)
  3364. "
  3365. >
  3366. <img
  3367. :src="w.isLikes == true ? likes : noLikes"
  3368. alt=""
  3369. />
  3370. </div>
  3371. <div>{{ w.likesCount }}</div>
  3372. </div>
  3373. <div class="commentList" style="margin-right: 15px">
  3374. <div
  3375. class="commentImg"
  3376. @click="commentOther(w, toolIndex, wIndex)"
  3377. >
  3378. <img
  3379. src="../../assets/icon/comment/comment.png"
  3380. alt=""
  3381. />
  3382. </div>
  3383. <div>{{ w.commentCount }}</div>
  3384. </div>
  3385. </div>
  3386. </div>
  3387. </div>
  3388. </div>
  3389. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3390. 未提交
  3391. </div>
  3392. <div
  3393. class="noWorksS"
  3394. v-if="noWorksS && noWorksS[toolIndex].length"
  3395. >
  3396. <div
  3397. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3398. :key="sIndex"
  3399. class="noWorksName"
  3400. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3401. >
  3402. {{ s.student }}
  3403. </div>
  3404. </div>
  3405. </div>
  3406. <div
  3407. v-if="
  3408. tType &&
  3409. ((tType == 2 && sIsOpen == true) ||
  3410. tType == 1 ||
  3411. tType == 4) &&
  3412. tool.tool.indexOf(4) != -1 &&
  3413. (tool.askJson[0].answer ||
  3414. tool.askJson[0].answer === 0) &&
  3415. checkJson[toolIndex].length
  3416. "
  3417. class="xuan_right_box"
  3418. >
  3419. <div
  3420. class="tool_right_box"
  3421. v-for="(item, index) in tool.askJson"
  3422. :key="index"
  3423. >
  3424. <div>
  3425. <span
  3426. style="word-break: break-all; white-space: normal"
  3427. >{{ index + 1 + "、" + item.askstitle }}</span
  3428. >
  3429. </div>
  3430. <div class="right_box_xuan">
  3431. <span>正确率</span>
  3432. <span>{{
  3433. (checkJson[toolIndex][index].right
  3434. ? checkJson[toolIndex][index].right
  3435. : 0) + "%"
  3436. }}</span>
  3437. </div>
  3438. </div>
  3439. </div>
  3440. <div
  3441. class="xuan_right_box"
  3442. style="background: unset; padding: 0 10px"
  3443. v-if="
  3444. tType &&
  3445. ((tType == 2 && sIsOpen == true) ||
  3446. tType == 1 ||
  3447. tType == 4) &&
  3448. tool.tool.indexOf(4) != -1
  3449. "
  3450. >
  3451. <AskStatic
  3452. v-if="
  3453. worksStudent.length &&
  3454. worksStudent[toolIndex].length > 0
  3455. "
  3456. :askJSON="tool"
  3457. :checkJson="checkJson[toolIndex]"
  3458. ></AskStatic>
  3459. </div>
  3460. <div
  3461. v-if="
  3462. tType &&
  3463. ((tType == 2 && sIsOpen == true) ||
  3464. tType == 1 ||
  3465. tType == 4) &&
  3466. tool.tool.indexOf(4) != -1
  3467. "
  3468. class="worksBox"
  3469. >
  3470. <div
  3471. class="zuoyeYulan"
  3472. v-if="
  3473. worksStudent.length &&
  3474. worksStudent[toolIndex].length > 0
  3475. "
  3476. >
  3477. <div class="worksTop">
  3478. <div>作业预览</div>
  3479. <div
  3480. class="corOpen"
  3481. @click="contract(toolIndex)"
  3482. v-if="
  3483. worksStudent[toolIndex].length > 6 &&
  3484. isCloseList[toolIndex].isClose == 0
  3485. "
  3486. >
  3487. 折叠
  3488. </div>
  3489. <div
  3490. class="corOpen"
  3491. @click="contract(toolIndex)"
  3492. v-if="isCloseList[toolIndex].isClose == 1"
  3493. >
  3494. 展开
  3495. </div>
  3496. </div>
  3497. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3498. </div>
  3499. <div>
  3500. <div
  3501. class="worksDetailBox"
  3502. v-if="
  3503. worksStudent.length &&
  3504. worksStudent[toolIndex].length > 0
  3505. "
  3506. >
  3507. <div
  3508. v-for="(w, wIndex) in isCloseList[toolIndex]
  3509. .isClose == 0
  3510. ? worksStudent[toolIndex]
  3511. : worksStudent[toolIndex].slice(0, 6)"
  3512. :key="wIndex"
  3513. class="isWorksName2"
  3514. @click="
  3515. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3516. "
  3517. >
  3518. {{ w.sName }}
  3519. <img
  3520. class="deleteImg deleteImg2"
  3521. src="../../assets/deleteworks.png"
  3522. v-if="
  3523. w.userid == userid || tType == 1 || tType == 4
  3524. "
  3525. @click.stop="deleteWorks(w.wid)"
  3526. alt
  3527. />
  3528. </div>
  3529. <!-- <div class="works" style="
  3530. width: 200px;
  3531. height: 140px;
  3532. border-radius: 10px;
  3533. box-shadow: 0 0 6px 1px #dfdada;
  3534. overflow: hidden;
  3535. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3536. <div class="workImg">
  3537. <img src="../../assets/icon/works/noImg.png" @click="
  3538. openTools(
  3539. 4,
  3540. toolIndex,
  3541. taskCount,
  3542. w.works,
  3543. w.sName
  3544. )
  3545. " alt />
  3546. </div>
  3547. <div class="worksName">
  3548. <div>{{ w.sName }}</div>
  3549. <div>{{ w.time }}</div>
  3550. </div>
  3551. </div> -->
  3552. </div>
  3553. </div>
  3554. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3555. 未提交
  3556. </div>
  3557. <div
  3558. class="noWorksS"
  3559. v-if="noWorksS && noWorksS[toolIndex].length"
  3560. >
  3561. <div
  3562. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3563. :key="sIndex"
  3564. class="noWorksName"
  3565. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3566. >
  3567. {{ s.student }}
  3568. </div>
  3569. </div>
  3570. </div>
  3571. <div
  3572. v-if="
  3573. tType &&
  3574. ((tType == 2 && sIsOpen == true) ||
  3575. tType == 1 ||
  3576. tType == 4) &&
  3577. tool.tool.indexOf(45) != -1 &&
  3578. (tool.testJson.testJson[0].answer ||
  3579. tool.testJson.testJson[0].answer === 0) &&
  3580. checkJson[toolIndex].length
  3581. "
  3582. class="xuan_right_box"
  3583. >
  3584. <div
  3585. class="tool_right_box"
  3586. v-for="(item, index) in tool.testJson.testJson"
  3587. :key="index"
  3588. >
  3589. <div class="right_box_xuan" style="margin-right: 10px">
  3590. <span>正确率</span>
  3591. <span>{{
  3592. (checkJson[toolIndex][index].right
  3593. ? checkJson[toolIndex][index].right
  3594. : 0) + "%"
  3595. }}</span>
  3596. </div>
  3597. <div>
  3598. <span
  3599. style="word-break: break-all; white-space: normal"
  3600. >{{ index + 1 + "、" + item.teststitle }}</span
  3601. >
  3602. </div>
  3603. </div>
  3604. </div>
  3605. <div
  3606. class="xuan_right_box"
  3607. style="background: unset; padding: 0 10px; width: 91.5%"
  3608. v-if="
  3609. tType &&
  3610. ((tType == 2 && sIsOpen == true) ||
  3611. tType == 1 ||
  3612. tType == 4) &&
  3613. tool.tool.indexOf(45) != -1
  3614. "
  3615. >
  3616. <AskStatic2
  3617. v-if="
  3618. worksStudent.length &&
  3619. worksStudent[toolIndex].length > 0
  3620. "
  3621. :askJSON="tool"
  3622. :checkJson="checkJson[toolIndex]"
  3623. ></AskStatic2>
  3624. </div>
  3625. <div
  3626. v-if="
  3627. tType &&
  3628. ((tType == 2 && sIsOpen == true) ||
  3629. tType == 1 ||
  3630. tType == 4) &&
  3631. tool.tool.indexOf(45) != -1
  3632. "
  3633. class="worksBox"
  3634. >
  3635. <div
  3636. class="zuoyeYulan"
  3637. v-if="
  3638. worksStudent.length &&
  3639. worksStudent[toolIndex].length > 0
  3640. "
  3641. >
  3642. <div class="worksTop">
  3643. <div>作业预览</div>
  3644. <div
  3645. class="corOpen"
  3646. @click="contract(toolIndex)"
  3647. v-if="
  3648. worksStudent[toolIndex].length > 6 &&
  3649. isCloseList[toolIndex].isClose == 0
  3650. "
  3651. >
  3652. 折叠
  3653. </div>
  3654. <div
  3655. class="corOpen"
  3656. @click="contract(toolIndex)"
  3657. v-if="isCloseList[toolIndex].isClose == 1"
  3658. >
  3659. 展开
  3660. </div>
  3661. </div>
  3662. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3663. </div>
  3664. <div>
  3665. <div
  3666. class="worksDetailBox"
  3667. v-if="
  3668. worksStudent.length &&
  3669. worksStudent[toolIndex].length > 0
  3670. "
  3671. >
  3672. <div
  3673. v-for="(w, wIndex) in isCloseList[toolIndex]
  3674. .isClose == 0
  3675. ? worksStudent[toolIndex]
  3676. : worksStudent[toolIndex].slice(0, 6)"
  3677. :key="wIndex"
  3678. class="isWorksName2"
  3679. @click="
  3680. openTools(
  3681. 45,
  3682. toolIndex,
  3683. taskCount,
  3684. w.works,
  3685. w.sName
  3686. )
  3687. "
  3688. >
  3689. {{ w.sName }}
  3690. <img
  3691. class="deleteImg deleteImg2"
  3692. src="../../assets/deleteworks.png"
  3693. v-if="
  3694. w.userid == userid || tType == 1 || tType == 4
  3695. "
  3696. @click.stop="deleteWorks(w.wid)"
  3697. alt
  3698. />
  3699. </div>
  3700. </div>
  3701. </div>
  3702. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3703. 未提交
  3704. </div>
  3705. <div
  3706. class="noWorksS"
  3707. v-if="noWorksS && noWorksS[toolIndex].length"
  3708. >
  3709. <div
  3710. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3711. :key="sIndex"
  3712. class="noWorksName"
  3713. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  3714. >
  3715. {{ s.student }}
  3716. </div>
  3717. </div>
  3718. </div>
  3719. <div
  3720. v-if="
  3721. tType &&
  3722. ((tType == 2 && sIsOpen == true) ||
  3723. tType == 1 ||
  3724. tType == 4) &&
  3725. tool.tool.indexOf(69) != -1
  3726. "
  3727. class="worksBox"
  3728. >
  3729. <div
  3730. class="zuoyeYulan"
  3731. v-if="
  3732. worksStudent.length &&
  3733. worksStudent[toolIndex].length > 0
  3734. "
  3735. >
  3736. <div class="worksTop">
  3737. <div>作业预览</div>
  3738. <div
  3739. class="corOpen"
  3740. @click="contract(toolIndex)"
  3741. v-if="
  3742. worksStudent[toolIndex].length > 6 &&
  3743. isCloseList[toolIndex].isClose == 0
  3744. "
  3745. >
  3746. 折叠
  3747. </div>
  3748. <div
  3749. class="corOpen"
  3750. @click="contract(toolIndex)"
  3751. v-if="isCloseList[toolIndex].isClose == 1"
  3752. >
  3753. 展开
  3754. </div>
  3755. </div>
  3756. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3757. </div>
  3758. <div>
  3759. <div
  3760. class="worksDetailBox"
  3761. v-if="
  3762. worksStudent.length &&
  3763. worksStudent[toolIndex].length > 0
  3764. "
  3765. >
  3766. <div
  3767. v-for="(w, wIndex) in isCloseList[toolIndex]
  3768. .isClose == 0
  3769. ? worksStudent[toolIndex]
  3770. : worksStudent[toolIndex].slice(0, 6)"
  3771. :key="wIndex"
  3772. class="isWorksName2"
  3773. @click="
  3774. openTools(
  3775. 69,
  3776. toolIndex,
  3777. taskCount,
  3778. w.works,
  3779. w.sName,
  3780. w.wid
  3781. )
  3782. "
  3783. >
  3784. {{ w.sName }}
  3785. <img
  3786. class="deleteImg deleteImg2"
  3787. src="../../assets/deleteworks.png"
  3788. v-if="
  3789. w.userid == userid || tType == 1 || tType == 4
  3790. "
  3791. @click.stop="deleteWorks(w.wid)"
  3792. alt
  3793. />
  3794. </div>
  3795. </div>
  3796. </div>
  3797. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3798. 未提交
  3799. </div>
  3800. <div
  3801. class="noWorksS"
  3802. v-if="noWorksS && noWorksS[toolIndex].length"
  3803. >
  3804. <div
  3805. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3806. :key="sIndex"
  3807. class="noWorksName"
  3808. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  3809. >
  3810. {{ s.student }}
  3811. </div>
  3812. </div>
  3813. </div>
  3814. <div
  3815. v-if="
  3816. tType &&
  3817. ((tType == 2 && sIsOpen == true) ||
  3818. tType == 1 ||
  3819. tType == 4) &&
  3820. tool.tool.indexOf(15) != -1
  3821. "
  3822. class="worksBox"
  3823. >
  3824. <div
  3825. class="zuoyeYulan"
  3826. v-if="
  3827. worksStudent.length &&
  3828. worksStudent[toolIndex].length > 0
  3829. "
  3830. >
  3831. <div class="worksTop">
  3832. <div>作业预览</div>
  3833. <div
  3834. class="corOpen"
  3835. @click="contract(toolIndex)"
  3836. v-if="
  3837. worksStudent[toolIndex].length > 6 &&
  3838. isCloseList[toolIndex].isClose == 0
  3839. "
  3840. >
  3841. 折叠
  3842. </div>
  3843. <div
  3844. class="corOpen"
  3845. @click="contract(toolIndex)"
  3846. v-if="isCloseList[toolIndex].isClose == 1"
  3847. >
  3848. 展开
  3849. </div>
  3850. </div>
  3851. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3852. </div>
  3853. <div
  3854. class="group_workBox"
  3855. v-for="(g, gindex) in courseGroup.group"
  3856. :key="gindex"
  3857. >
  3858. <div class="group_box">
  3859. <div class="group_title">
  3860. <el-tooltip
  3861. class="item"
  3862. effect="light"
  3863. :content="g.name"
  3864. placement="top"
  3865. >
  3866. <div class="group_name">{{ g.name }}</div>
  3867. </el-tooltip>
  3868. </div>
  3869. <div
  3870. class="group_work"
  3871. v-if="
  3872. g.works &&
  3873. g.works.length &&
  3874. g.works[toolIndex].length
  3875. "
  3876. >
  3877. <div
  3878. class="works"
  3879. v-for="(w, wIndex) in g.works[toolIndex]"
  3880. :key="wIndex"
  3881. >
  3882. <div
  3883. class="workImg"
  3884. style="
  3885. border-radius: 15px;
  3886. box-shadow: #eee 0px 0px 5px 5px;
  3887. "
  3888. >
  3889. <div
  3890. class="answerBg"
  3891. style="border-radius: 15px 15px 0 0"
  3892. @click="
  3893. commentOther(w, toolIndex, wIndex, null, g.id)
  3894. "
  3895. >
  3896. <div class="answerContent">
  3897. {{ JSON.parse(w.works)[0].answer }}
  3898. </div>
  3899. <div
  3900. class="answerScore"
  3901. v-if="w.score"
  3902. @click.stop="openScore(w)"
  3903. :class="{
  3904. rightW:
  3905. w.userid == userid ||
  3906. tType == 1 ||
  3907. tType == 4,
  3908. }"
  3909. >
  3910. {{ JSON.parse(w.score).wScore }}分
  3911. </div>
  3912. <div
  3913. class="answerScore"
  3914. @click.stop="openScore(w)"
  3915. v-else-if="courseDetail.userid == userid"
  3916. :class="{
  3917. rightW:
  3918. w.userid == userid ||
  3919. tType == 1 ||
  3920. tType == 4,
  3921. }"
  3922. >
  3923. 评分
  3924. </div>
  3925. <img
  3926. class="deleteImg"
  3927. src="../../assets/deleteworks.png"
  3928. v-if="
  3929. w.userid == userid ||
  3930. tType == 1 ||
  3931. tType == 4
  3932. "
  3933. @click.stop="deleteWorks(w.wid)"
  3934. alt
  3935. />
  3936. </div>
  3937. <div class="comment">
  3938. <div class="worksName">
  3939. <div>{{ w.sName }}</div>
  3940. </div>
  3941. <div class="commentList">
  3942. <div
  3943. class="commentImg"
  3944. @click="
  3945. isLikes(w.wid, userid, 1, null, w.isLikes)
  3946. "
  3947. >
  3948. <img
  3949. :src="w.isLikes == true ? likes : noLikes"
  3950. alt=""
  3951. />
  3952. </div>
  3953. <div>{{ w.likesCount }}</div>
  3954. </div>
  3955. <div
  3956. class="commentList"
  3957. style="margin-right: 15px"
  3958. >
  3959. <div
  3960. class="commentImg"
  3961. @click="
  3962. commentOther(
  3963. w,
  3964. toolIndex,
  3965. wIndex,
  3966. null,
  3967. g.id
  3968. )
  3969. "
  3970. >
  3971. <img
  3972. src="../../assets/icon/comment/comment.png"
  3973. alt=""
  3974. />
  3975. </div>
  3976. <div>{{ w.commentCount }}</div>
  3977. </div>
  3978. </div>
  3979. </div>
  3980. </div>
  3981. </div>
  3982. <div class="group_work" v-else>暂无提交作业</div>
  3983. </div>
  3984. </div>
  3985. <div
  3986. class="worksDetailBox"
  3987. v-if="
  3988. worksStudent.length &&
  3989. worksStudent[toolIndex].length > 0
  3990. "
  3991. >
  3992. <div
  3993. class="works"
  3994. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3995. 0
  3996. ? worksStudent[toolIndex]
  3997. : worksStudent[toolIndex].slice(0, 6)"
  3998. :key="wIndex"
  3999. >
  4000. <div
  4001. class="workImg"
  4002. style="
  4003. border-radius: 15px;
  4004. box-shadow: #eee 0px 0px 5px 5px;
  4005. "
  4006. >
  4007. <!-- <img
  4008. src="../../assets/icon/works/noImg.png"
  4009. @click="openTools(15, toolIndex, taskCount, w.works)"
  4010. alt=""
  4011. />-->
  4012. <div
  4013. class="answerBg"
  4014. style="border-radius: 15px 15px 0 0"
  4015. @click="commentOther(w, toolIndex, wIndex)"
  4016. >
  4017. <!-- <div>{{ w.sName }}</div> -->
  4018. <div class="answerContent">
  4019. {{ JSON.parse(w.works)[0].answer }}
  4020. </div>
  4021. <div
  4022. class="answerScore"
  4023. v-if="w.score"
  4024. @click.stop="openScore(w)"
  4025. :class="{
  4026. rightW:
  4027. w.userid == userid ||
  4028. tType == 1 ||
  4029. tType == 4,
  4030. }"
  4031. >
  4032. {{ JSON.parse(w.score).wScore }}分
  4033. </div>
  4034. <div
  4035. class="answerScore"
  4036. @click.stop="openScore(w)"
  4037. v-else-if="courseDetail.userid == userid"
  4038. :class="{
  4039. rightW:
  4040. w.userid == userid ||
  4041. tType == 1 ||
  4042. tType == 4,
  4043. }"
  4044. >
  4045. 评分
  4046. </div>
  4047. <img
  4048. class="deleteImg"
  4049. src="../../assets/deleteworks.png"
  4050. v-if="
  4051. w.userid == userid || tType == 1 || tType == 4
  4052. "
  4053. @click.stop="deleteWorks(w.wid)"
  4054. alt
  4055. />
  4056. </div>
  4057. <div class="comment">
  4058. <div class="worksName">
  4059. <div>{{ w.sName }}</div>
  4060. </div>
  4061. <div class="commentList">
  4062. <div
  4063. class="commentImg"
  4064. @click="
  4065. isLikes(w.wid, userid, 1, null, w.isLikes)
  4066. "
  4067. >
  4068. <img
  4069. :src="w.isLikes == true ? likes : noLikes"
  4070. alt=""
  4071. />
  4072. </div>
  4073. <div>{{ w.likesCount }}</div>
  4074. </div>
  4075. <div class="commentList" style="margin-right: 15px">
  4076. <div
  4077. class="commentImg"
  4078. @click="commentOther(w, toolIndex, wIndex)"
  4079. >
  4080. <img
  4081. src="../../assets/icon/comment/comment.png"
  4082. alt=""
  4083. />
  4084. </div>
  4085. <div>{{ w.commentCount }}</div>
  4086. </div>
  4087. </div>
  4088. </div>
  4089. </div>
  4090. </div>
  4091. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4092. 未提交
  4093. </div>
  4094. <div
  4095. class="noWorksS"
  4096. v-if="noWorksS && noWorksS[toolIndex].length"
  4097. >
  4098. <div
  4099. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4100. :key="sIndex"
  4101. class="noWorksName"
  4102. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4103. >
  4104. {{ s.student }}
  4105. </div>
  4106. </div>
  4107. </div>
  4108. <div
  4109. v-if="
  4110. tType &&
  4111. ((tType == 2 && sIsOpen == true) ||
  4112. tType == 1 ||
  4113. tType == 4) &&
  4114. tool.tool.indexOf(1) != -1
  4115. "
  4116. class="worksBox"
  4117. >
  4118. <div
  4119. class="zuoyeYulan"
  4120. v-if="
  4121. worksStudent.length &&
  4122. worksStudent[toolIndex].length > 0
  4123. "
  4124. >
  4125. <div class="worksTop">
  4126. <div>作业预览</div>
  4127. <div
  4128. class="corOpen"
  4129. @click="contract(toolIndex)"
  4130. v-if="
  4131. worksStudent[toolIndex].length > 6 &&
  4132. isCloseList[toolIndex].isClose == 0
  4133. "
  4134. >
  4135. 折叠
  4136. </div>
  4137. <div
  4138. class="corOpen"
  4139. @click="contract(toolIndex)"
  4140. v-if="isCloseList[toolIndex].isClose == 1"
  4141. >
  4142. 展开
  4143. </div>
  4144. </div>
  4145. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4146. </div>
  4147. <div
  4148. class="group_workBox"
  4149. v-for="(g, gindex) in courseGroup.group"
  4150. :key="gindex"
  4151. >
  4152. <div class="group_box">
  4153. <div class="group_title">
  4154. <el-tooltip
  4155. class="item"
  4156. effect="light"
  4157. :content="g.name"
  4158. placement="top"
  4159. >
  4160. <div class="group_name">{{ g.name }}</div>
  4161. </el-tooltip>
  4162. </div>
  4163. <div
  4164. class="group_work"
  4165. v-if="
  4166. g.works &&
  4167. g.works.length &&
  4168. g.works[toolIndex].length
  4169. "
  4170. >
  4171. <div
  4172. class="works"
  4173. style="
  4174. width: 200px;
  4175. height: 140px;
  4176. margin: 10px 10px 10px 0;
  4177. border-radius: 15px;
  4178. box-shadow: 0 0 6px 1px #dfdada;
  4179. "
  4180. v-for="(w, wIndex) in g.works[toolIndex]"
  4181. :key="wIndex"
  4182. :class="w.type == 1 ? 'isTypeOne' : ''"
  4183. >
  4184. <div class="workImg">
  4185. <img
  4186. :src="w.works"
  4187. @click="previewImg(w.works)"
  4188. alt
  4189. />
  4190. <div
  4191. class="answerScore"
  4192. v-if="w.score"
  4193. @click.stop="openScore(w)"
  4194. :class="{
  4195. rightW:
  4196. w.userid == userid ||
  4197. tType == 1 ||
  4198. tType == 4,
  4199. }"
  4200. >
  4201. {{ JSON.parse(w.score).wScore }}分
  4202. </div>
  4203. <div
  4204. class="answerScore"
  4205. @click.stop="openScore(w)"
  4206. v-else-if="courseDetail.userid == userid"
  4207. :class="{
  4208. rightW:
  4209. w.userid == userid ||
  4210. tType == 1 ||
  4211. tType == 4,
  4212. }"
  4213. >
  4214. 评分
  4215. </div>
  4216. <img
  4217. class="deleteImg"
  4218. src="../../assets/deleteworks.png"
  4219. v-if="
  4220. w.userid == userid || tType == 1 || tType == 4
  4221. "
  4222. @click.stop="deleteWorks(w.wid)"
  4223. alt
  4224. />
  4225. </div>
  4226. <div class="comment" style="min-width: 200px">
  4227. <div class="worksName">
  4228. <div>{{ w.sName }}</div>
  4229. </div>
  4230. <div class="commentList">
  4231. <div class="commentList">
  4232. <div
  4233. class="commentImg"
  4234. @click="
  4235. isLikes(w.wid, userid, 1, null, w.isLikes)
  4236. "
  4237. >
  4238. <img
  4239. :src="w.isLikes == true ? likes : noLikes"
  4240. alt=""
  4241. />
  4242. </div>
  4243. <div>{{ w.likesCount }}</div>
  4244. </div>
  4245. <div
  4246. class="commentList"
  4247. style="margin-right: 15px"
  4248. >
  4249. <div
  4250. class="commentImg"
  4251. @click="
  4252. commentOther(
  4253. w,
  4254. toolIndex,
  4255. wIndex,
  4256. null,
  4257. g.id
  4258. )
  4259. "
  4260. >
  4261. <img
  4262. src="../../assets/icon/comment/comment.png"
  4263. alt=""
  4264. />
  4265. </div>
  4266. <div>{{ w.commentCount }}</div>
  4267. </div>
  4268. </div>
  4269. </div>
  4270. </div>
  4271. </div>
  4272. <div class="group_work" v-else>暂无提交作业</div>
  4273. </div>
  4274. </div>
  4275. <div
  4276. class="worksDetailBox"
  4277. v-if="
  4278. worksStudent.length &&
  4279. worksStudent[toolIndex].length > 0
  4280. "
  4281. >
  4282. <div
  4283. class="works"
  4284. style="
  4285. width: 200px;
  4286. height: 140px;
  4287. margin: 10px 10px 10px 0;
  4288. border-radius: 15px;
  4289. box-shadow: 0 0 6px 1px #dfdada;
  4290. "
  4291. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4292. 0
  4293. ? worksStudent[toolIndex]
  4294. : worksStudent[toolIndex].slice(0, 6)"
  4295. :key="wIndex"
  4296. >
  4297. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4298. <div class="workImg">
  4299. <img
  4300. :src="w.works"
  4301. @click="previewImg(w.works)"
  4302. alt
  4303. />
  4304. <div
  4305. class="answerScore"
  4306. v-if="w.score"
  4307. @click.stop="openScore(w)"
  4308. :class="{
  4309. rightW:
  4310. w.userid == userid || tType == 1 || tType == 4,
  4311. }"
  4312. >
  4313. {{ JSON.parse(w.score).wScore }}分
  4314. </div>
  4315. <div
  4316. class="answerScore"
  4317. @click.stop="openScore(w)"
  4318. v-else-if="courseDetail.userid == userid"
  4319. :class="{
  4320. rightW:
  4321. w.userid == userid || tType == 1 || tType == 4,
  4322. }"
  4323. >
  4324. 评分
  4325. </div>
  4326. <img
  4327. class="deleteImg"
  4328. src="../../assets/deleteworks.png"
  4329. v-if="
  4330. w.userid == userid || tType == 1 || tType == 4
  4331. "
  4332. @click.stop="deleteWorks(w.wid)"
  4333. alt
  4334. />
  4335. </div>
  4336. <div class="comment" style="min-width: 200px">
  4337. <div class="worksName">
  4338. <div>{{ w.sName }}</div>
  4339. </div>
  4340. <div class="commentList">
  4341. <div class="commentList">
  4342. <div
  4343. class="commentImg"
  4344. @click="
  4345. isLikes(w.wid, userid, 1, null, w.isLikes)
  4346. "
  4347. >
  4348. <img
  4349. :src="w.isLikes == true ? likes : noLikes"
  4350. alt=""
  4351. />
  4352. </div>
  4353. <div>{{ w.likesCount }}</div>
  4354. </div>
  4355. <div class="commentList" style="margin-right: 15px">
  4356. <div
  4357. class="commentImg"
  4358. @click="commentOther(w, toolIndex, wIndex)"
  4359. >
  4360. <img
  4361. src="../../assets/icon/comment/comment.png"
  4362. alt=""
  4363. />
  4364. </div>
  4365. <div>{{ w.commentCount }}</div>
  4366. </div>
  4367. </div>
  4368. </div>
  4369. </div>
  4370. </div>
  4371. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4372. 未提交
  4373. </div>
  4374. <div
  4375. class="noWorksS"
  4376. v-if="noWorksS && noWorksS[toolIndex].length"
  4377. >
  4378. <div
  4379. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4380. :key="sIndex"
  4381. class="noWorksName"
  4382. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4383. >
  4384. {{ s.student }}
  4385. </div>
  4386. </div>
  4387. </div>
  4388. <div
  4389. v-if="
  4390. tType &&
  4391. ((tType == 2 && sIsOpen == true) ||
  4392. tType == 1 ||
  4393. tType == 4) &&
  4394. tool.tool.indexOf(3) != -1
  4395. "
  4396. class="worksBox"
  4397. >
  4398. <div
  4399. class="zuoyeYulan"
  4400. v-if="
  4401. worksStudent.length &&
  4402. worksStudent[toolIndex].length > 0
  4403. "
  4404. >
  4405. <div class="worksTop">
  4406. <div>作业预览</div>
  4407. <div
  4408. class="corOpen"
  4409. @click="contract(toolIndex)"
  4410. v-if="
  4411. worksStudent[toolIndex].length > 6 &&
  4412. isCloseList[toolIndex].isClose == 0
  4413. "
  4414. >
  4415. 折叠
  4416. </div>
  4417. <div
  4418. class="corOpen"
  4419. @click="contract(toolIndex)"
  4420. v-if="isCloseList[toolIndex].isClose == 1"
  4421. >
  4422. 展开
  4423. </div>
  4424. </div>
  4425. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4426. </div>
  4427. <div
  4428. class="group_workBox"
  4429. v-for="(g, gindex) in courseGroup.group"
  4430. :key="gindex"
  4431. >
  4432. <div class="group_box">
  4433. <div class="group_title">
  4434. <el-tooltip
  4435. class="item"
  4436. effect="light"
  4437. :content="g.name"
  4438. placement="top"
  4439. >
  4440. <div class="group_name">{{ g.name }}</div>
  4441. </el-tooltip>
  4442. </div>
  4443. <div
  4444. class="group_work"
  4445. v-if="
  4446. g.works &&
  4447. g.works.length &&
  4448. g.works[toolIndex].length
  4449. "
  4450. >
  4451. <div
  4452. class="works"
  4453. style="
  4454. width: 200px;
  4455. height: 140px;
  4456. margin: 10px 10px 10px 0;
  4457. border-radius: 15px;
  4458. box-shadow: 0 0 6px 1px #dfdada;
  4459. "
  4460. v-for="(w, wIndex) in g.works[toolIndex]"
  4461. :key="wIndex"
  4462. :class="w.type == 1 ? 'isTypeOne' : ''"
  4463. >
  4464. <div class="workImg">
  4465. <img
  4466. :src="w.works"
  4467. @click="previewImg(w.works)"
  4468. alt
  4469. />
  4470. <div
  4471. class="answerScore"
  4472. v-if="w.score"
  4473. @click.stop="openScore(w)"
  4474. :class="{
  4475. rightW:
  4476. w.userid == userid ||
  4477. tType == 1 ||
  4478. tType == 4,
  4479. }"
  4480. >
  4481. {{ JSON.parse(w.score).wScore }}分
  4482. </div>
  4483. <div
  4484. class="answerScore"
  4485. @click.stop="openScore(w)"
  4486. v-else-if="courseDetail.userid == userid"
  4487. :class="{
  4488. rightW:
  4489. w.userid == userid ||
  4490. tType == 1 ||
  4491. tType == 4,
  4492. }"
  4493. >
  4494. 评分
  4495. </div>
  4496. <img
  4497. class="deleteImg"
  4498. src="../../assets/deleteworks.png"
  4499. v-if="
  4500. w.userid == userid || tType == 1 || tType == 4
  4501. "
  4502. @click.stop="deleteWorks(w.wid)"
  4503. alt
  4504. />
  4505. </div>
  4506. <div class="comment" style="min-width: 200px">
  4507. <div class="worksName">
  4508. <div>{{ w.sName }}</div>
  4509. </div>
  4510. <div class="commentList">
  4511. <div class="commentList">
  4512. <div
  4513. class="commentImg"
  4514. @click="
  4515. isLikes(w.wid, userid, 1, null, w.isLikes)
  4516. "
  4517. >
  4518. <img
  4519. :src="w.isLikes == true ? likes : noLikes"
  4520. alt=""
  4521. />
  4522. </div>
  4523. <div>{{ w.likesCount }}</div>
  4524. </div>
  4525. <div
  4526. class="commentList"
  4527. style="margin-right: 15px"
  4528. >
  4529. <div
  4530. class="commentImg"
  4531. @click="
  4532. commentOther(
  4533. w,
  4534. toolIndex,
  4535. wIndex,
  4536. null,
  4537. g.id
  4538. )
  4539. "
  4540. >
  4541. <img
  4542. src="../../assets/icon/comment/comment.png"
  4543. alt=""
  4544. />
  4545. </div>
  4546. <div>{{ w.commentCount }}</div>
  4547. </div>
  4548. </div>
  4549. </div>
  4550. </div>
  4551. </div>
  4552. <div class="group_work" v-else>暂无提交作业</div>
  4553. </div>
  4554. </div>
  4555. <div
  4556. class="worksDetailBox"
  4557. v-if="
  4558. worksStudent.length &&
  4559. worksStudent[toolIndex].length > 0
  4560. "
  4561. >
  4562. <div
  4563. class="works"
  4564. style="
  4565. width: 200px;
  4566. height: 140px;
  4567. margin: 10px 10px 10px 0;
  4568. border-radius: 15px;
  4569. box-shadow: 0 0 6px 1px #dfdada;
  4570. "
  4571. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4572. 0
  4573. ? worksStudent[toolIndex]
  4574. : worksStudent[toolIndex].slice(0, 6)"
  4575. :key="wIndex"
  4576. >
  4577. <!-- @click="previewImg(w.works)" -->
  4578. <div class="workImg">
  4579. <img
  4580. :src="w.works"
  4581. @click="previewImg(w.works)"
  4582. alt
  4583. />
  4584. <div
  4585. class="answerScore"
  4586. v-if="w.score"
  4587. @click.stop="openScore(w)"
  4588. :class="{
  4589. rightW:
  4590. w.userid == userid || tType == 1 || tType == 4,
  4591. }"
  4592. >
  4593. {{ JSON.parse(w.score).wScore }}分
  4594. </div>
  4595. <div
  4596. class="answerScore"
  4597. @click.stop="openScore(w)"
  4598. v-else-if="courseDetail.userid == userid"
  4599. :class="{
  4600. rightW:
  4601. w.userid == userid || tType == 1 || tType == 4,
  4602. }"
  4603. >
  4604. 评分
  4605. </div>
  4606. <img
  4607. class="deleteImg"
  4608. src="../../assets/deleteworks.png"
  4609. v-if="
  4610. w.userid == userid || tType == 1 || tType == 4
  4611. "
  4612. @click.stop="deleteWorks(w.wid)"
  4613. alt
  4614. />
  4615. </div>
  4616. <div class="comment" style="min-width: 200px">
  4617. <div class="worksName">
  4618. <div>{{ w.sName }}</div>
  4619. </div>
  4620. <div class="commentList">
  4621. <div class="commentList">
  4622. <div
  4623. class="commentImg"
  4624. @click="
  4625. isLikes(w.wid, userid, 1, null, w.isLikes)
  4626. "
  4627. >
  4628. <img
  4629. :src="w.isLikes == true ? likes : noLikes"
  4630. alt=""
  4631. />
  4632. </div>
  4633. <div>{{ w.likesCount }}</div>
  4634. </div>
  4635. <div class="commentList" style="margin-right: 15px">
  4636. <div
  4637. class="commentImg"
  4638. @click="commentOther(w, toolIndex, wIndex)"
  4639. >
  4640. <img
  4641. src="../../assets/icon/comment/comment.png"
  4642. alt=""
  4643. />
  4644. </div>
  4645. <div>{{ w.commentCount }}</div>
  4646. </div>
  4647. </div>
  4648. </div>
  4649. </div>
  4650. </div>
  4651. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4652. 未提交
  4653. </div>
  4654. <div
  4655. class="noWorksS"
  4656. v-if="noWorksS && noWorksS[toolIndex].length"
  4657. >
  4658. <div
  4659. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4660. :key="sIndex"
  4661. class="noWorksName"
  4662. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4663. >
  4664. {{ s.student }}
  4665. </div>
  4666. </div>
  4667. </div>
  4668. <div
  4669. v-if="
  4670. tType &&
  4671. ((tType == 2 && sIsOpen == true) ||
  4672. tType == 1 ||
  4673. tType == 4) &&
  4674. tool.tool.indexOf(6) != -1
  4675. "
  4676. class="worksBox"
  4677. >
  4678. <div
  4679. class="zuoyeYulan"
  4680. v-if="
  4681. worksStudent.length &&
  4682. worksStudent[toolIndex].length > 0
  4683. "
  4684. >
  4685. <div class="worksTop">
  4686. <div>作业预览</div>
  4687. <div
  4688. class="corOpen"
  4689. @click="contract(toolIndex)"
  4690. v-if="
  4691. worksStudent[toolIndex].length > 6 &&
  4692. isCloseList[toolIndex].isClose == 0
  4693. "
  4694. >
  4695. 折叠
  4696. </div>
  4697. <div
  4698. class="corOpen"
  4699. @click="contract(toolIndex)"
  4700. v-if="isCloseList[toolIndex].isClose == 1"
  4701. >
  4702. 展开
  4703. </div>
  4704. </div>
  4705. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4706. </div>
  4707. <div
  4708. class="group_workBox"
  4709. v-for="(g, gindex) in courseGroup.group"
  4710. :key="gindex"
  4711. >
  4712. <div class="group_box">
  4713. <div class="group_title">
  4714. <el-tooltip
  4715. class="item"
  4716. effect="light"
  4717. :content="g.name"
  4718. placement="top"
  4719. >
  4720. <div class="group_name">{{ g.name }}</div>
  4721. </el-tooltip>
  4722. </div>
  4723. <div
  4724. class="group_work"
  4725. v-if="
  4726. g.works &&
  4727. g.works.length &&
  4728. g.works[toolIndex].length
  4729. "
  4730. >
  4731. <div
  4732. class="works"
  4733. style="
  4734. width: 200px;
  4735. height: 140px;
  4736. margin: 10px 10px 10px 0;
  4737. border-radius: 15px;
  4738. box-shadow: 0 0 6px 1px #dfdada;
  4739. "
  4740. v-for="(w, wIndex) in g.works[toolIndex]"
  4741. :key="wIndex"
  4742. :class="w.type == 1 ? 'isTypeOne' : ''"
  4743. >
  4744. <div class="workImg">
  4745. <img
  4746. :src="w.works"
  4747. @click="previewImg(w.works)"
  4748. alt
  4749. />
  4750. <div
  4751. class="answerScore"
  4752. v-if="w.score"
  4753. @click.stop="openScore(w)"
  4754. :class="{
  4755. rightW:
  4756. w.userid == userid ||
  4757. tType == 1 ||
  4758. tType == 4,
  4759. }"
  4760. >
  4761. {{ JSON.parse(w.score).wScore }}分
  4762. </div>
  4763. <div
  4764. class="answerScore"
  4765. @click.stop="openScore(w)"
  4766. v-else-if="courseDetail.userid == userid"
  4767. :class="{
  4768. rightW:
  4769. w.userid == userid ||
  4770. tType == 1 ||
  4771. tType == 4,
  4772. }"
  4773. >
  4774. 评分
  4775. </div>
  4776. <img
  4777. class="deleteImg"
  4778. src="../../assets/deleteworks.png"
  4779. v-if="
  4780. w.userid == userid || tType == 1 || tType == 4
  4781. "
  4782. @click.stop="deleteWorks(w.wid)"
  4783. alt
  4784. />
  4785. </div>
  4786. <div class="comment" style="min-width: 200px">
  4787. <div class="worksName">
  4788. <div>{{ w.sName }}</div>
  4789. </div>
  4790. <div class="commentList">
  4791. <div class="commentList">
  4792. <div
  4793. class="commentImg"
  4794. @click="
  4795. isLikes(w.wid, userid, 1, null, w.isLikes)
  4796. "
  4797. >
  4798. <img
  4799. :src="w.isLikes == true ? likes : noLikes"
  4800. alt=""
  4801. />
  4802. </div>
  4803. <div>{{ w.likesCount }}</div>
  4804. </div>
  4805. <div
  4806. class="commentList"
  4807. style="margin-right: 15px"
  4808. >
  4809. <div
  4810. class="commentImg"
  4811. @click="
  4812. commentOther(
  4813. w,
  4814. toolIndex,
  4815. wIndex,
  4816. null,
  4817. g.id
  4818. )
  4819. "
  4820. >
  4821. <img
  4822. src="../../assets/icon/comment/comment.png"
  4823. alt=""
  4824. />
  4825. </div>
  4826. <div>{{ w.commentCount }}</div>
  4827. </div>
  4828. </div>
  4829. </div>
  4830. </div>
  4831. </div>
  4832. <div class="group_work" v-else>暂无提交作业</div>
  4833. </div>
  4834. </div>
  4835. <div
  4836. class="worksDetailBox"
  4837. v-if="
  4838. worksStudent.length &&
  4839. worksStudent[toolIndex].length > 0
  4840. "
  4841. >
  4842. <div
  4843. class="works"
  4844. style="
  4845. width: 200px;
  4846. height: 140px;
  4847. margin: 10px 10px 10px 0;
  4848. border-radius: 15px;
  4849. box-shadow: 0 0 6px 1px #dfdada;
  4850. "
  4851. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4852. 0
  4853. ? worksStudent[toolIndex]
  4854. : worksStudent[toolIndex].slice(0, 6)"
  4855. :key="wIndex"
  4856. >
  4857. <!-- @click="previewImg(w.works)" -->
  4858. <div class="workImg">
  4859. <img
  4860. :src="w.works"
  4861. @click="previewImg(w.works)"
  4862. alt
  4863. />
  4864. <div
  4865. class="answerScore"
  4866. v-if="w.score"
  4867. @click.stop="openScore(w)"
  4868. :class="{
  4869. rightW:
  4870. w.userid == userid || tType == 1 || tType == 4,
  4871. }"
  4872. >
  4873. {{ JSON.parse(w.score).wScore }}分
  4874. </div>
  4875. <div
  4876. class="answerScore"
  4877. @click.stop="openScore(w)"
  4878. v-else-if="courseDetail.userid == userid"
  4879. :class="{
  4880. rightW:
  4881. w.userid == userid || tType == 1 || tType == 4,
  4882. }"
  4883. >
  4884. 评分
  4885. </div>
  4886. <img
  4887. class="deleteImg"
  4888. src="../../assets/deleteworks.png"
  4889. v-if="
  4890. w.userid == userid || tType == 1 || tType == 4
  4891. "
  4892. @click.stop="deleteWorks(w.wid)"
  4893. alt
  4894. />
  4895. </div>
  4896. <div class="comment" style="min-width: 200px">
  4897. <div class="worksName">
  4898. <div>{{ w.sName }}</div>
  4899. </div>
  4900. <div class="commentList">
  4901. <div class="commentList">
  4902. <div
  4903. class="commentImg"
  4904. @click="
  4905. isLikes(w.wid, userid, 1, null, w.isLikes)
  4906. "
  4907. >
  4908. <img
  4909. :src="w.isLikes == true ? likes : noLikes"
  4910. alt=""
  4911. />
  4912. </div>
  4913. <div>{{ w.likesCount }}</div>
  4914. </div>
  4915. <div class="commentList" style="margin-right: 15px">
  4916. <div
  4917. class="commentImg"
  4918. @click="commentOther(w, toolIndex, wIndex)"
  4919. >
  4920. <img
  4921. src="../../assets/icon/comment/comment.png"
  4922. alt=""
  4923. />
  4924. </div>
  4925. <div>{{ w.commentCount }}</div>
  4926. </div>
  4927. </div>
  4928. </div>
  4929. </div>
  4930. </div>
  4931. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4932. 未提交
  4933. </div>
  4934. <div
  4935. class="noWorksS"
  4936. v-if="noWorksS && noWorksS[toolIndex].length"
  4937. >
  4938. <div
  4939. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4940. :key="sIndex"
  4941. class="noWorksName"
  4942. >
  4943. {{ s.student }}
  4944. </div>
  4945. </div>
  4946. </div>
  4947. <div
  4948. v-if="
  4949. tType &&
  4950. ((tType == 2 && sIsOpen == true) ||
  4951. tType == 1 ||
  4952. tType == 4) &&
  4953. tool.tool.indexOf(7) != -1
  4954. "
  4955. class="worksBox"
  4956. >
  4957. <div
  4958. class="zuoyeYulan"
  4959. v-if="
  4960. worksStudent.length &&
  4961. worksStudent[toolIndex].length > 0
  4962. "
  4963. >
  4964. <div class="worksTop">
  4965. <div>作业预览</div>
  4966. <div
  4967. class="corOpen"
  4968. @click="contract(toolIndex)"
  4969. v-if="
  4970. worksStudent[toolIndex].length > 6 &&
  4971. isCloseList[toolIndex].isClose == 0
  4972. "
  4973. >
  4974. 折叠
  4975. </div>
  4976. <div
  4977. class="corOpen"
  4978. @click="contract(toolIndex)"
  4979. v-if="isCloseList[toolIndex].isClose == 1"
  4980. >
  4981. 展开
  4982. </div>
  4983. </div>
  4984. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4985. </div>
  4986. <div
  4987. class="group_workBox"
  4988. v-for="(g, gindex) in courseGroup.group"
  4989. :key="gindex"
  4990. >
  4991. <div class="group_box">
  4992. <div class="group_title">
  4993. <el-tooltip
  4994. class="item"
  4995. effect="light"
  4996. :content="g.name"
  4997. placement="top"
  4998. >
  4999. <div class="group_name">{{ g.name }}</div>
  5000. </el-tooltip>
  5001. </div>
  5002. <div
  5003. class="group_work"
  5004. v-if="
  5005. g.works &&
  5006. g.works.length &&
  5007. g.works[toolIndex].length
  5008. "
  5009. >
  5010. <div
  5011. class="works"
  5012. style="
  5013. width: 200px;
  5014. height: 140px;
  5015. margin: 10px 10px 10px 0;
  5016. border-radius: 15px;
  5017. box-shadow: 0 0 6px 1px #dfdada;
  5018. "
  5019. v-for="(w, wIndex) in g.works[toolIndex]"
  5020. :key="wIndex"
  5021. :class="w.type == 1 ? 'isTypeOne' : ''"
  5022. >
  5023. <div class="workImg">
  5024. <img
  5025. :src="w.works"
  5026. @click="previewImg(w.works)"
  5027. alt
  5028. />
  5029. <div
  5030. class="answerScore"
  5031. v-if="w.score"
  5032. @click.stop="openScore(w)"
  5033. :class="{
  5034. rightW:
  5035. w.userid == userid ||
  5036. tType == 1 ||
  5037. tType == 4,
  5038. }"
  5039. >
  5040. {{ JSON.parse(w.score).wScore }}分
  5041. </div>
  5042. <div
  5043. class="answerScore"
  5044. @click.stop="openScore(w)"
  5045. v-else-if="courseDetail.userid == userid"
  5046. :class="{
  5047. rightW:
  5048. w.userid == userid ||
  5049. tType == 1 ||
  5050. tType == 4,
  5051. }"
  5052. >
  5053. 评分
  5054. </div>
  5055. <img
  5056. class="deleteImg"
  5057. src="../../assets/deleteworks.png"
  5058. v-if="
  5059. w.userid == userid || tType == 1 || tType == 4
  5060. "
  5061. @click.stop="deleteWorks(w.wid)"
  5062. alt
  5063. />
  5064. </div>
  5065. <div class="comment" style="min-width: 200px">
  5066. <div class="worksName">
  5067. <div>{{ w.sName }}</div>
  5068. </div>
  5069. <div class="commentList">
  5070. <div class="commentList">
  5071. <div
  5072. class="commentImg"
  5073. @click="
  5074. isLikes(w.wid, userid, 1, null, w.isLikes)
  5075. "
  5076. >
  5077. <img
  5078. :src="w.isLikes == true ? likes : noLikes"
  5079. alt=""
  5080. />
  5081. </div>
  5082. <div>{{ w.likesCount }}</div>
  5083. </div>
  5084. <div
  5085. class="commentList"
  5086. style="margin-right: 15px"
  5087. >
  5088. <div
  5089. class="commentImg"
  5090. @click="
  5091. commentOther(
  5092. w,
  5093. toolIndex,
  5094. wIndex,
  5095. null,
  5096. g.id
  5097. )
  5098. "
  5099. >
  5100. <img
  5101. src="../../assets/icon/comment/comment.png"
  5102. alt=""
  5103. />
  5104. </div>
  5105. <div>{{ w.commentCount }}</div>
  5106. </div>
  5107. </div>
  5108. </div>
  5109. </div>
  5110. </div>
  5111. <div class="group_work" v-else>暂无提交作业</div>
  5112. </div>
  5113. </div>
  5114. <div
  5115. class="worksDetailBox"
  5116. v-if="
  5117. worksStudent.length &&
  5118. worksStudent[toolIndex].length > 0
  5119. "
  5120. >
  5121. <div
  5122. class="works"
  5123. style="
  5124. width: 200px;
  5125. height: 140px;
  5126. margin: 10px 10px 10px 0;
  5127. border-radius: 15px;
  5128. box-shadow: 0 0 6px 1px #dfdada;
  5129. "
  5130. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5131. 0
  5132. ? worksStudent[toolIndex]
  5133. : worksStudent[toolIndex].slice(0, 6)"
  5134. :key="wIndex"
  5135. >
  5136. <!-- @click="previewImg(w.works)" -->
  5137. <div class="workImg">
  5138. <img
  5139. :src="w.works"
  5140. @click="previewImg(w.works)"
  5141. alt
  5142. />
  5143. <div
  5144. class="answerScore"
  5145. v-if="w.score"
  5146. @click.stop="openScore(w)"
  5147. :class="{
  5148. rightW:
  5149. w.userid == userid || tType == 1 || tType == 4,
  5150. }"
  5151. >
  5152. {{ JSON.parse(w.score).wScore }}分
  5153. </div>
  5154. <div
  5155. class="answerScore"
  5156. @click.stop="openScore(w)"
  5157. v-else-if="courseDetail.userid == userid"
  5158. :class="{
  5159. rightW:
  5160. w.userid == userid || tType == 1 || tType == 4,
  5161. }"
  5162. >
  5163. 评分
  5164. </div>
  5165. <img
  5166. class="deleteImg"
  5167. src="../../assets/deleteworks.png"
  5168. v-if="
  5169. w.userid == userid || tType == 1 || tType == 4
  5170. "
  5171. @click.stop="deleteWorks(w.wid)"
  5172. alt
  5173. />
  5174. </div>
  5175. <div class="comment" style="min-width: 200px">
  5176. <div class="worksName">
  5177. <div>{{ w.sName }}</div>
  5178. </div>
  5179. <div class="commentList">
  5180. <div class="commentList">
  5181. <div
  5182. class="commentImg"
  5183. @click="
  5184. isLikes(w.wid, userid, 1, null, w.isLikes)
  5185. "
  5186. >
  5187. <img
  5188. :src="w.isLikes == true ? likes : noLikes"
  5189. alt=""
  5190. />
  5191. </div>
  5192. <div>{{ w.likesCount }}</div>
  5193. </div>
  5194. <div class="commentList" style="margin-right: 15px">
  5195. <div
  5196. class="commentImg"
  5197. @click="commentOther(w, toolIndex, wIndex)"
  5198. >
  5199. <img
  5200. src="../../assets/icon/comment/comment.png"
  5201. alt=""
  5202. />
  5203. </div>
  5204. <div>{{ w.commentCount }}</div>
  5205. </div>
  5206. </div>
  5207. </div>
  5208. </div>
  5209. </div>
  5210. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5211. 未提交
  5212. </div>
  5213. <div
  5214. class="noWorksS"
  5215. v-if="noWorksS && noWorksS[toolIndex].length"
  5216. >
  5217. <div
  5218. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5219. :key="sIndex"
  5220. class="noWorksName"
  5221. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5222. >
  5223. {{ s.student }}
  5224. </div>
  5225. </div>
  5226. </div>
  5227. <div
  5228. v-if="
  5229. tType &&
  5230. ((tType == 2 && sIsOpen == true) ||
  5231. tType == 1 ||
  5232. tType == 4) &&
  5233. tool.tool.indexOf(26) != -1
  5234. "
  5235. class="worksBox"
  5236. >
  5237. <div
  5238. class="zuoyeYulan"
  5239. v-if="
  5240. worksStudent.length &&
  5241. worksStudent[toolIndex].length > 0
  5242. "
  5243. >
  5244. <div class="worksTop">
  5245. <div>作业预览</div>
  5246. <div
  5247. class="corOpen"
  5248. @click="contract(toolIndex)"
  5249. v-if="
  5250. worksStudent[toolIndex].length > 6 &&
  5251. isCloseList[toolIndex].isClose == 0
  5252. "
  5253. >
  5254. 折叠
  5255. </div>
  5256. <div
  5257. class="corOpen"
  5258. @click="contract(toolIndex)"
  5259. v-if="isCloseList[toolIndex].isClose == 1"
  5260. >
  5261. 展开
  5262. </div>
  5263. </div>
  5264. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5265. </div>
  5266. <div
  5267. class="worksDetailBox"
  5268. v-if="
  5269. worksStudent.length &&
  5270. worksStudent[toolIndex].length > 0
  5271. "
  5272. >
  5273. <div
  5274. class="works"
  5275. style="width: 240px; height: 140px; overflow: hidden"
  5276. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5277. 0
  5278. ? worksStudent[toolIndex]
  5279. : worksStudent[toolIndex].slice(0, 6)"
  5280. :key="wIndex"
  5281. :class="w.type == 1 ? 'isTypeOne' : ''"
  5282. >
  5283. <div class="workImg" v-if="w.type == 0">
  5284. <img
  5285. :src="w.works"
  5286. @click="previewImg(w.works)"
  5287. alt
  5288. />
  5289. <img
  5290. class="deleteImg"
  5291. src="../../assets/deleteworks.png"
  5292. v-if="
  5293. w.userid == userid || tType == 1 || tType == 4
  5294. "
  5295. @click.stop="deleteWorks(w.wid)"
  5296. alt
  5297. />
  5298. </div>
  5299. <div class="workImg" v-if="w.type == 1">
  5300. <img :src="word" @click="openFile(w.works)" alt />
  5301. <img
  5302. class="deleteImg"
  5303. src="../../assets/deleteworks.png"
  5304. v-if="
  5305. w.userid == userid || tType == 1 || tType == 4
  5306. "
  5307. @click.stop="deleteWorks(w.wid)"
  5308. alt
  5309. />
  5310. </div>
  5311. <div class="worksName">
  5312. <div>{{ w.sName }}</div>
  5313. </div>
  5314. </div>
  5315. </div>
  5316. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5317. 未提交
  5318. </div>
  5319. <div
  5320. class="noWorksS"
  5321. v-if="noWorksS && noWorksS[toolIndex].length"
  5322. >
  5323. <div
  5324. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5325. :key="sIndex"
  5326. class="noWorksName"
  5327. >
  5328. {{ s.student }}
  5329. </div>
  5330. </div>
  5331. </div>
  5332. <div
  5333. v-if="
  5334. tType &&
  5335. ((tType == 2 && sIsOpen == true) ||
  5336. tType == 1 ||
  5337. tType == 4) &&
  5338. tool.tool.indexOf(40) != -1
  5339. "
  5340. class="worksBox"
  5341. >
  5342. <div
  5343. class="zuoyeYulan"
  5344. v-if="
  5345. worksStudent.length &&
  5346. worksStudent[toolIndex].length > 0
  5347. "
  5348. >
  5349. <div class="worksTop">
  5350. <div>作业预览</div>
  5351. <div
  5352. class="corOpen"
  5353. @click="contract(toolIndex)"
  5354. v-if="
  5355. worksStudent[toolIndex].length > 6 &&
  5356. isCloseList[toolIndex].isClose == 0
  5357. "
  5358. >
  5359. 折叠
  5360. </div>
  5361. <div
  5362. class="corOpen"
  5363. @click="contract(toolIndex)"
  5364. v-if="isCloseList[toolIndex].isClose == 1"
  5365. >
  5366. 展开
  5367. </div>
  5368. </div>
  5369. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5370. </div>
  5371. <div
  5372. class="worksDetailBox"
  5373. v-if="
  5374. worksStudent.length &&
  5375. worksStudent[toolIndex].length > 0
  5376. "
  5377. >
  5378. <div
  5379. class="works"
  5380. style="
  5381. width: 200px;
  5382. height: 140px;
  5383. margin: 10px 10px 10px 0;
  5384. border-radius: 15px;
  5385. box-shadow: 0 0 6px 1px #dfdada;
  5386. "
  5387. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5388. 0
  5389. ? worksStudent[toolIndex]
  5390. : worksStudent[toolIndex].slice(0, 6)"
  5391. :key="wIndex"
  5392. :class="w.type == 1 ? 'isTypeOne' : ''"
  5393. >
  5394. <div class="workImg">
  5395. <img
  5396. src="../../assets/icon/works/noImg.png"
  5397. @click="openPj(w.works, toolIndex)"
  5398. alt
  5399. />
  5400. <img
  5401. class="deleteImg"
  5402. src="../../assets/deleteworks.png"
  5403. v-if="
  5404. w.userid == userid || tType == 1 || tType == 4
  5405. "
  5406. @click.stop="deleteWorks(w.wid)"
  5407. alt
  5408. />
  5409. </div>
  5410. <div class="comment" style="min-width: 200px">
  5411. <div class="worksName">
  5412. <div>{{ w.sName }}</div>
  5413. </div>
  5414. <div class="commentList">
  5415. <div class="commentList">
  5416. <div
  5417. class="commentImg"
  5418. @click="
  5419. isLikes(w.wid, userid, 1, null, w.isLikes)
  5420. "
  5421. >
  5422. <img
  5423. :src="w.isLikes == true ? likes : noLikes"
  5424. alt=""
  5425. />
  5426. </div>
  5427. <div>{{ w.likesCount }}</div>
  5428. </div>
  5429. <div class="commentList" style="margin-right: 15px">
  5430. <div
  5431. class="commentImg"
  5432. @click="commentOther(w, toolIndex, wIndex)"
  5433. >
  5434. <img
  5435. src="../../assets/icon/comment/comment.png"
  5436. alt=""
  5437. />
  5438. </div>
  5439. <div>{{ w.commentCount }}</div>
  5440. </div>
  5441. </div>
  5442. </div>
  5443. </div>
  5444. </div>
  5445. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5446. 未提交
  5447. </div>
  5448. <div
  5449. class="noWorksS"
  5450. v-if="noWorksS && noWorksS[toolIndex].length"
  5451. >
  5452. <div
  5453. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5454. :key="sIndex"
  5455. class="noWorksName"
  5456. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5457. >
  5458. {{ s.student }}
  5459. </div>
  5460. </div>
  5461. </div>
  5462. <div
  5463. v-if="
  5464. tType &&
  5465. tType == 2 &&
  5466. !sIsOpen &&
  5467. tool.tool.indexOf(40) != -1
  5468. "
  5469. class="worksBox"
  5470. >
  5471. <div
  5472. class="zuoyeYulan"
  5473. v-if="workStudent[toolIndex].length > 0"
  5474. >
  5475. <span class="worksTitle">作业预览</span>
  5476. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5477. </div>
  5478. <div
  5479. class="worksDetailBox"
  5480. v-if="workStudent[toolIndex].length > 0"
  5481. >
  5482. <div
  5483. class="works"
  5484. style="
  5485. width: 200px;
  5486. height: 140px;
  5487. margin: 10px 10px 10px 0;
  5488. "
  5489. v-for="(w, wIndex) in workStudent[toolIndex]"
  5490. :key="wIndex"
  5491. >
  5492. <div class="workImg">
  5493. <img
  5494. src="../../assets/icon/works/noImg.png"
  5495. @click="openPj(w.works, toolIndex)"
  5496. alt
  5497. />
  5498. <img
  5499. class="deleteImg"
  5500. src="../../assets/deleteworks.png"
  5501. v-if="
  5502. w.userid == userid || tType == 1 || tType == 4
  5503. "
  5504. @click.stop="deleteWorks(w.wid)"
  5505. alt
  5506. />
  5507. </div>
  5508. <div class="worksName">
  5509. <div>{{ w.sName }}</div>
  5510. </div>
  5511. </div>
  5512. </div>
  5513. </div>
  5514. <div
  5515. v-if="
  5516. tType &&
  5517. ((tType == 2 && sIsOpen == true) ||
  5518. tType == 1 ||
  5519. tType == 4) &&
  5520. tool.tool.indexOf(41) != -1
  5521. "
  5522. >
  5523. <AnswerData2
  5524. v-if="
  5525. worksStudent.length &&
  5526. worksStudent[toolIndex].length > 0
  5527. "
  5528. :problemJson="tool.selectJson.answer"
  5529. :people="worksStudent[toolIndex]"
  5530. ></AnswerData2>
  5531. </div>
  5532. <div
  5533. v-if="
  5534. tType &&
  5535. ((tType == 2 && sIsOpen == true) ||
  5536. tType == 1 ||
  5537. tType == 4) &&
  5538. tool.tool.indexOf(41) != -1
  5539. "
  5540. class="worksBox"
  5541. >
  5542. <div
  5543. class="zuoyeYulan"
  5544. v-if="
  5545. worksStudent.length &&
  5546. worksStudent[toolIndex].length > 0
  5547. "
  5548. >
  5549. <div class="worksTop">
  5550. <div>作业预览</div>
  5551. <div
  5552. class="corOpen"
  5553. @click="contract(toolIndex)"
  5554. v-if="
  5555. worksStudent[toolIndex].length > 6 &&
  5556. isCloseList[toolIndex].isClose == 0
  5557. "
  5558. >
  5559. 折叠
  5560. </div>
  5561. <div
  5562. class="corOpen"
  5563. @click="contract(toolIndex)"
  5564. v-if="isCloseList[toolIndex].isClose == 1"
  5565. >
  5566. 展开
  5567. </div>
  5568. </div>
  5569. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5570. </div>
  5571. <div
  5572. class="worksDetailBox"
  5573. v-if="
  5574. worksStudent.length &&
  5575. worksStudent[toolIndex].length > 0
  5576. "
  5577. >
  5578. <div
  5579. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5580. 0
  5581. ? worksStudent[toolIndex]
  5582. : worksStudent[toolIndex].slice(0, 6)"
  5583. :key="wIndex"
  5584. class="isWorksName2"
  5585. @click="openXz(w, toolIndex)"
  5586. >
  5587. {{ w.sName }}
  5588. <img
  5589. class="deleteImg deleteImg2"
  5590. src="../../assets/deleteworks.png"
  5591. v-if="w.userid == userid || tType == 1 || tType == 4"
  5592. @click.stop="deleteWorks(w.wid)"
  5593. alt
  5594. />
  5595. </div>
  5596. <!-- <div
  5597. class="works"
  5598. style="
  5599. width: 200px;
  5600. height: 140px;
  5601. margin: 10px 10px 10px 0;
  5602. border-radius: 15px;
  5603. box-shadow: 0 0 6px 1px #dfdada;
  5604. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5605. :class="w.type == 5 ? 'isTypeOne' : ''">
  5606. <div class="workImg">
  5607. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5608. </div>
  5609. <div class="worksName">
  5610. <div>{{ w.sName }}</div>
  5611. </div>
  5612. </div> -->
  5613. </div>
  5614. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5615. 未提交
  5616. </div>
  5617. <div
  5618. class="noWorksS"
  5619. v-if="noWorksS && noWorksS[toolIndex].length"
  5620. >
  5621. <div
  5622. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5623. :key="sIndex"
  5624. class="noWorksName"
  5625. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5626. >
  5627. {{ s.student }}
  5628. </div>
  5629. </div>
  5630. </div>
  5631. <div
  5632. v-if="
  5633. tType &&
  5634. tType == 2 &&
  5635. !sIsOpen &&
  5636. tool.tool.indexOf(41) != -1
  5637. "
  5638. class="worksBox"
  5639. >
  5640. <div
  5641. class="zuoyeYulan"
  5642. v-if="workStudent[toolIndex].length > 0"
  5643. >
  5644. <span class="worksTitle">作业预览</span>
  5645. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5646. </div>
  5647. <div
  5648. class="worksDetailBox"
  5649. v-if="workStudent[toolIndex].length > 0"
  5650. >
  5651. <div
  5652. class="works"
  5653. style="
  5654. width: 200px;
  5655. height: 140px;
  5656. margin: 10px 10px 10px 0;
  5657. "
  5658. v-for="(w, wIndex) in workStudent[toolIndex]"
  5659. :key="wIndex"
  5660. >
  5661. <div class="workImg">
  5662. <img
  5663. src="../../assets/icon/works/noImg.png"
  5664. @click="openXz(w, toolIndex)"
  5665. alt
  5666. />
  5667. <img
  5668. class="deleteImg"
  5669. src="../../assets/deleteworks.png"
  5670. v-if="
  5671. w.userid == userid || tType == 1 || tType == 4
  5672. "
  5673. @click.stop="deleteWorks(w.wid)"
  5674. alt
  5675. />
  5676. </div>
  5677. <div class="worksName">
  5678. <div>{{ w.sName }}</div>
  5679. </div>
  5680. </div>
  5681. </div>
  5682. </div>
  5683. <div v-if="false" class="xuan_right_box">
  5684. <div
  5685. class="tool_right_box"
  5686. v-for="(item, index) in tool.sentenceList"
  5687. :key="index"
  5688. >
  5689. <div>
  5690. <span
  5691. style="word-break: break-all; white-space: normal"
  5692. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  5693. >
  5694. </div>
  5695. <div class="right_box_xuan">
  5696. <span>正确率</span>
  5697. <span>{{
  5698. (checkJson[toolIndex][index].right
  5699. ? checkJson[toolIndex][index].right
  5700. : 0) + "%"
  5701. }}</span>
  5702. </div>
  5703. <div class="right_box_xuan">
  5704. <span>答对人数</span>
  5705. <span>{{
  5706. checkJson[toolIndex][index].rightPerson.length
  5707. }}</span>
  5708. </div>
  5709. </div>
  5710. </div>
  5711. <div
  5712. v-if="
  5713. tType &&
  5714. ((tType == 2 && sIsOpen == true) ||
  5715. tType == 1 ||
  5716. tType == 4) &&
  5717. tool.tool.indexOf(47) != -1
  5718. "
  5719. >
  5720. <AnswerData
  5721. v-if="
  5722. checkJson[toolIndex].length &&
  5723. (tool.sentenceList || tool.sentenceList.length > 0)
  5724. "
  5725. :people="checkJson[toolIndex]"
  5726. ></AnswerData>
  5727. </div>
  5728. <div
  5729. v-if="
  5730. tType &&
  5731. tType == 2 &&
  5732. !sIsOpen &&
  5733. tool.tool.indexOf(47) != -1
  5734. "
  5735. class="worksBox"
  5736. >
  5737. <div
  5738. class="zuoyeYulan"
  5739. v-if="workStudent[toolIndex].length > 0"
  5740. >
  5741. <span class="worksTitle">作业预览</span>
  5742. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5743. </div>
  5744. <div
  5745. class="worksDetailBox"
  5746. v-if="workStudent[toolIndex].length > 0"
  5747. >
  5748. <div
  5749. class="works"
  5750. style="
  5751. width: 200px;
  5752. height: 140px;
  5753. margin: 10px 10px 10px 0;
  5754. "
  5755. v-for="(w, wIndex) in workStudent[toolIndex]"
  5756. :key="wIndex"
  5757. >
  5758. <!-- @click="openXz(w, toolIndex)" -->
  5759. <div class="workImg" @click="openSen(w, toolIndex)">
  5760. <img src="../../assets/icon/works/noImg.png" alt />
  5761. <img
  5762. class="deleteImg"
  5763. src="../../assets/deleteworks.png"
  5764. v-if="
  5765. w.userid == userid || tType == 1 || tType == 4
  5766. "
  5767. @click.stop="deleteWorks(w.wid)"
  5768. alt
  5769. />
  5770. </div>
  5771. <div class="worksName">
  5772. <div>
  5773. {{ w.sName }}
  5774. </div>
  5775. </div>
  5776. </div>
  5777. </div>
  5778. </div>
  5779. <div
  5780. v-if="
  5781. tType &&
  5782. ((tType == 2 && sIsOpen == true) ||
  5783. tType == 1 ||
  5784. tType == 4) &&
  5785. tool.tool.indexOf(47) != -1
  5786. "
  5787. class="worksBox"
  5788. >
  5789. <div
  5790. class="zuoyeYulan"
  5791. v-if="
  5792. worksStudent.length &&
  5793. worksStudent[toolIndex].length > 0
  5794. "
  5795. >
  5796. <div class="worksTop">
  5797. <div>作业预览</div>
  5798. <div
  5799. class="corOpen"
  5800. @click="contract(toolIndex)"
  5801. v-if="
  5802. worksStudent[toolIndex].length > 6 &&
  5803. isCloseList[toolIndex].isClose == 0
  5804. "
  5805. >
  5806. 折叠
  5807. </div>
  5808. <div
  5809. class="corOpen"
  5810. @click="contract(toolIndex)"
  5811. v-if="isCloseList[toolIndex].isClose == 1"
  5812. >
  5813. 展开
  5814. </div>
  5815. </div>
  5816. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5817. </div>
  5818. <div
  5819. class="worksDetailBox"
  5820. v-if="
  5821. worksStudent.length &&
  5822. worksStudent[toolIndex].length > 0
  5823. "
  5824. >
  5825. <!-- @click="openXz(w, toolIndex)" -->
  5826. <div
  5827. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5828. 0
  5829. ? worksStudent[toolIndex]
  5830. : worksStudent[toolIndex].slice(0, 6)"
  5831. :key="wIndex"
  5832. class="isWorksName2"
  5833. @click="openSen(w, toolIndex)"
  5834. >
  5835. {{ w.sName }}
  5836. <img
  5837. class="deleteImg deleteImg2"
  5838. src="../../assets/deleteworks.png"
  5839. v-if="w.userid == userid || tType == 1 || tType == 4"
  5840. @click.stop="deleteWorks(w.wid)"
  5841. alt
  5842. />
  5843. </div>
  5844. </div>
  5845. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5846. 未提交
  5847. </div>
  5848. <div
  5849. class="noWorksS"
  5850. v-if="noWorksS && noWorksS[toolIndex].length"
  5851. >
  5852. <div
  5853. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5854. :key="sIndex"
  5855. class="noWorksName"
  5856. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5857. >
  5858. {{ s.student }}
  5859. </div>
  5860. </div>
  5861. </div>
  5862. <div
  5863. v-if="
  5864. tType &&
  5865. ((tType == 2 && sIsOpen == true) ||
  5866. tType == 1 ||
  5867. tType == 4) &&
  5868. tool.tool.indexOf(48) != -1
  5869. "
  5870. class="worksBox"
  5871. >
  5872. <div
  5873. class="zuoyeYulan"
  5874. v-if="
  5875. worksStudent.length &&
  5876. worksStudent[toolIndex].length > 0
  5877. "
  5878. >
  5879. <div class="worksTop">
  5880. <div>作业预览</div>
  5881. <div
  5882. class="corOpen"
  5883. @click="contract(toolIndex)"
  5884. v-if="
  5885. worksStudent[toolIndex].length > 6 &&
  5886. isCloseList[toolIndex].isClose == 0
  5887. "
  5888. >
  5889. 折叠
  5890. </div>
  5891. <div
  5892. class="corOpen"
  5893. @click="contract(toolIndex)"
  5894. v-if="isCloseList[toolIndex].isClose == 1"
  5895. >
  5896. 展开
  5897. </div>
  5898. </div>
  5899. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5900. </div>
  5901. <div
  5902. class="worksDetailBox"
  5903. v-if="
  5904. worksStudent.length &&
  5905. worksStudent[toolIndex].length > 0
  5906. "
  5907. >
  5908. <div
  5909. class="works"
  5910. style="
  5911. width: 200px;
  5912. height: 140px;
  5913. margin: 10px 10px 10px 0;
  5914. border-radius: 15px;
  5915. box-shadow: 0 0 6px 1px #dfdada;
  5916. "
  5917. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5918. 0
  5919. ? worksStudent[toolIndex]
  5920. : worksStudent[toolIndex].slice(0, 6)"
  5921. :key="wIndex"
  5922. :class="w.type == 1 ? 'isTypeOne' : ''"
  5923. >
  5924. <div class="workImg">
  5925. <img :src="word" @click="openTable(w)" alt />
  5926. <!-- @click="openFile(w.works)" -->
  5927. <div
  5928. class="answerScore"
  5929. v-if="w.score"
  5930. @click.stop="openScore(w)"
  5931. :class="{
  5932. rightW:
  5933. w.userid == userid ||
  5934. tType == 1 ||
  5935. tType == 4 ||
  5936. w.ateacher == userid,
  5937. }"
  5938. >
  5939. {{ JSON.parse(w.score).wScore }}分
  5940. </div>
  5941. <div
  5942. class="answerScore"
  5943. @click.stop="openScore(w)"
  5944. v-else-if="courseDetail.userid == userid"
  5945. :class="{
  5946. rightW:
  5947. w.userid == userid ||
  5948. tType == 1 ||
  5949. tType == 4 ||
  5950. w.ateacher == userid,
  5951. }"
  5952. >
  5953. 评分
  5954. </div>
  5955. <img
  5956. class="deleteImg"
  5957. src="../../assets/deleteworks.png"
  5958. v-if="
  5959. w.userid == userid || tType == 1 || tType == 4
  5960. "
  5961. @click.stop="deleteWorks(w.wid)"
  5962. alt
  5963. />
  5964. </div>
  5965. <div class="comment" style="min-width: 200px">
  5966. <div class="worksName">
  5967. <div>{{ w.sName }}</div>
  5968. </div>
  5969. <div class="commentList">
  5970. <div class="commentList">
  5971. <div
  5972. class="commentImg"
  5973. @click="
  5974. isLikes(w.wid, userid, 1, null, w.isLikes)
  5975. "
  5976. >
  5977. <img
  5978. :src="w.isLikes == true ? likes : noLikes"
  5979. alt=""
  5980. />
  5981. </div>
  5982. <div>{{ w.likesCount }}</div>
  5983. </div>
  5984. <div class="commentList" style="margin-right: 15px">
  5985. <div
  5986. class="commentImg"
  5987. @click="commentOther(w, toolIndex, wIndex)"
  5988. >
  5989. <img
  5990. src="../../assets/icon/comment/comment.png"
  5991. alt=""
  5992. />
  5993. </div>
  5994. <div>{{ w.commentCount }}</div>
  5995. </div>
  5996. </div>
  5997. </div>
  5998. </div>
  5999. </div>
  6000. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6001. 未提交
  6002. </div>
  6003. <div
  6004. class="noWorksS"
  6005. v-if="noWorksS && noWorksS[toolIndex].length"
  6006. >
  6007. <div
  6008. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6009. :key="sIndex"
  6010. class="noWorksName"
  6011. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6012. >
  6013. {{ s.student }}
  6014. </div>
  6015. </div>
  6016. </div>
  6017. <div
  6018. v-if="
  6019. tType &&
  6020. tType == 2 &&
  6021. !sIsOpen &&
  6022. tool.tool.indexOf(48) != -1
  6023. "
  6024. class="worksBox"
  6025. >
  6026. <div
  6027. class="zuoyeYulan"
  6028. v-if="workStudent[toolIndex].length > 0"
  6029. >
  6030. <span class="worksTitle">作业预览</span>
  6031. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6032. </div>
  6033. <div
  6034. class="worksDetailBox"
  6035. v-if="workStudent[toolIndex].length > 0"
  6036. >
  6037. <div
  6038. class="works"
  6039. style="
  6040. width: 200px;
  6041. height: 140px;
  6042. margin: 10px 10px 10px 0;
  6043. box-shadow: 0 0 6px 1px #dfdada;
  6044. "
  6045. v-for="(w, wIndex) in workStudent[toolIndex]"
  6046. :key="wIndex"
  6047. >
  6048. <div class="workImg">
  6049. <img :src="word" @click="openTable(w)" alt />
  6050. <div
  6051. class="answerScore"
  6052. v-if="w.score"
  6053. @click.stop="openScore(w)"
  6054. :class="{
  6055. rightW:
  6056. w.userid == userid || tType == 1 || tType == 4,
  6057. }"
  6058. >
  6059. {{ JSON.parse(w.score).wScore }}分
  6060. </div>
  6061. <div
  6062. class="answerScore"
  6063. @click.stop="openScore(w)"
  6064. v-else-if="courseDetail.userid == userid"
  6065. :class="{
  6066. rightW:
  6067. w.userid == userid || tType == 1 || tType == 4,
  6068. }"
  6069. >
  6070. 评分
  6071. </div>
  6072. <img
  6073. class="deleteImg"
  6074. src="../../assets/deleteworks.png"
  6075. v-if="
  6076. w.userid == userid || tType == 1 || tType == 4
  6077. "
  6078. @click.stop="deleteWorks(w.wid)"
  6079. alt
  6080. />
  6081. </div>
  6082. <div class="worksName">
  6083. <div>{{ w.sName }}</div>
  6084. </div>
  6085. </div>
  6086. </div>
  6087. </div>
  6088. <div
  6089. v-if="
  6090. tType &&
  6091. ((tType == 2 && sIsOpen == true) ||
  6092. tType == 1 ||
  6093. tType == 4) &&
  6094. tool.tool.indexOf(52) != -1
  6095. "
  6096. class="worksBox"
  6097. >
  6098. <div
  6099. class="zuoyeYulan"
  6100. v-if="
  6101. worksStudent.length &&
  6102. worksStudent[toolIndex].length > 0
  6103. "
  6104. >
  6105. <div class="worksTop">
  6106. <div>作业预览</div>
  6107. <div
  6108. class="corOpen"
  6109. @click="contract(toolIndex)"
  6110. v-if="
  6111. worksStudent[toolIndex].length > 6 &&
  6112. isCloseList[toolIndex].isClose == 0
  6113. "
  6114. >
  6115. 折叠
  6116. </div>
  6117. <div
  6118. class="corOpen"
  6119. @click="contract(toolIndex)"
  6120. v-if="isCloseList[toolIndex].isClose == 1"
  6121. >
  6122. 展开
  6123. </div>
  6124. </div>
  6125. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6126. </div>
  6127. <div
  6128. class="worksDetailBox"
  6129. v-if="
  6130. worksStudent.length &&
  6131. worksStudent[toolIndex].length > 0
  6132. "
  6133. >
  6134. <div
  6135. class="works"
  6136. style="
  6137. width: 200px;
  6138. height: 140px;
  6139. margin: 10px 10px 10px 0;
  6140. border-radius: 15px;
  6141. box-shadow: 0 0 6px 1px #dfdada;
  6142. "
  6143. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6144. 0
  6145. ? worksStudent[toolIndex]
  6146. : worksStudent[toolIndex].slice(0, 6)"
  6147. :key="wIndex"
  6148. :class="w.type == 1 ? 'isTypeOne' : ''"
  6149. >
  6150. <div class="workImg">
  6151. <img :src="word" @click="openWord(w)" alt />
  6152. <!-- @click="openFile(w.works)" -->
  6153. <div
  6154. class="answerScore"
  6155. v-if="w.score"
  6156. @click.stop="openScore(w)"
  6157. :class="{
  6158. rightW:
  6159. w.userid == userid ||
  6160. tType == 1 ||
  6161. tType == 4 ||
  6162. w.ateacher == userid,
  6163. }"
  6164. >
  6165. {{ JSON.parse(w.score).wScore }}分
  6166. </div>
  6167. <div
  6168. class="answerScore"
  6169. @click.stop="openScore(w)"
  6170. v-else-if="courseDetail.userid == userid"
  6171. :class="{
  6172. rightW:
  6173. w.userid == userid ||
  6174. tType == 1 ||
  6175. tType == 4 ||
  6176. w.ateacher == userid,
  6177. }"
  6178. >
  6179. 评分
  6180. </div>
  6181. <img
  6182. class="deleteImg"
  6183. src="../../assets/deleteworks.png"
  6184. v-if="
  6185. w.userid == userid || tType == 1 || tType == 4
  6186. "
  6187. @click.stop="deleteWorks(w.wid)"
  6188. alt
  6189. />
  6190. </div>
  6191. <div class="comment" style="min-width: 200px">
  6192. <div class="worksName">
  6193. <div>{{ w.sName }}</div>
  6194. </div>
  6195. <div class="commentList">
  6196. <div class="commentList">
  6197. <div
  6198. class="commentImg"
  6199. @click="
  6200. isLikes(w.wid, userid, 1, null, w.isLikes)
  6201. "
  6202. >
  6203. <img
  6204. :src="w.isLikes == true ? likes : noLikes"
  6205. alt=""
  6206. />
  6207. </div>
  6208. <div>{{ w.likesCount }}</div>
  6209. </div>
  6210. <div class="commentList" style="margin-right: 15px">
  6211. <div
  6212. class="commentImg"
  6213. @click="commentOther(w, toolIndex, wIndex)"
  6214. >
  6215. <img
  6216. src="../../assets/icon/comment/comment.png"
  6217. alt=""
  6218. />
  6219. </div>
  6220. <div>{{ w.commentCount }}</div>
  6221. </div>
  6222. </div>
  6223. </div>
  6224. </div>
  6225. </div>
  6226. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6227. 未提交
  6228. </div>
  6229. <div
  6230. class="noWorksS"
  6231. v-if="noWorksS && noWorksS[toolIndex].length"
  6232. >
  6233. <div
  6234. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6235. :key="sIndex"
  6236. class="noWorksName"
  6237. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6238. >
  6239. {{ s.student }}
  6240. </div>
  6241. </div>
  6242. </div>
  6243. <div
  6244. v-if="
  6245. tType &&
  6246. tType == 2 &&
  6247. !sIsOpen &&
  6248. tool.tool.indexOf(52) != -1
  6249. "
  6250. class="worksBox"
  6251. >
  6252. <div
  6253. class="zuoyeYulan"
  6254. v-if="workStudent[toolIndex].length > 0"
  6255. >
  6256. <span class="worksTitle">作业预览</span>
  6257. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6258. </div>
  6259. <div
  6260. class="worksDetailBox"
  6261. v-if="workStudent[toolIndex].length > 0"
  6262. >
  6263. <div
  6264. class="works"
  6265. style="
  6266. width: 200px;
  6267. height: 140px;
  6268. margin: 10px 10px 10px 0;
  6269. box-shadow: 0 0 6px 1px #dfdada;
  6270. "
  6271. v-for="(w, wIndex) in workStudent[toolIndex]"
  6272. :key="wIndex"
  6273. >
  6274. <div class="workImg">
  6275. <img :src="word" @click="openWord(w)" alt />
  6276. <div
  6277. class="answerScore"
  6278. v-if="w.score"
  6279. @click.stop="openScore(w)"
  6280. :class="{
  6281. rightW:
  6282. w.userid == userid || tType == 1 || tType == 4,
  6283. }"
  6284. >
  6285. {{ JSON.parse(w.score).wScore }}分
  6286. </div>
  6287. <div
  6288. class="answerScore"
  6289. @click.stop="openScore(w)"
  6290. v-else-if="courseDetail.userid == userid"
  6291. :class="{
  6292. rightW:
  6293. w.userid == userid || tType == 1 || tType == 4,
  6294. }"
  6295. >
  6296. 评分
  6297. </div>
  6298. <img
  6299. class="deleteImg"
  6300. src="../../assets/deleteworks.png"
  6301. v-if="
  6302. w.userid == userid || tType == 1 || tType == 4
  6303. "
  6304. @click.stop="deleteWorks(w.wid)"
  6305. alt
  6306. />
  6307. </div>
  6308. <div class="worksName">
  6309. <div>{{ w.sName }}</div>
  6310. </div>
  6311. </div>
  6312. </div>
  6313. </div>
  6314. <div
  6315. v-if="tool.tool.indexOf(49) != -1"
  6316. class="xuan_right_box"
  6317. style="margin: 0 15px 0 25px; width: 93%"
  6318. >
  6319. <div
  6320. v-if="courseDetail.userid == userid"
  6321. style="
  6322. display: flex;
  6323. justify-content: flex-end;
  6324. margin-right: 10px;
  6325. "
  6326. >
  6327. <el-button
  6328. type="primary"
  6329. size="small"
  6330. @click="addTools(49, toolIndex, taskCount)"
  6331. >分组设置</el-button
  6332. >
  6333. </div>
  6334. <div
  6335. v-if="groupStudentUid[toolIndex]"
  6336. class="group_staic_box"
  6337. >
  6338. <div
  6339. v-for="(gp, gd) in tool.groupJson.group"
  6340. :key="gd"
  6341. class="group_staic"
  6342. >
  6343. <span> {{ gp.name }}</span>
  6344. <span>
  6345. 目前人数{{
  6346. groupStudentUid[toolIndex][gd].length
  6347. }}人</span
  6348. >
  6349. </div>
  6350. </div>
  6351. </div>
  6352. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6353. <div
  6354. class="zuoyeYulan"
  6355. v-if="
  6356. worksStudent.length &&
  6357. worksStudent[toolIndex].length > 0
  6358. "
  6359. >
  6360. <span class="worksTitle">作业预览</span>
  6361. </div>
  6362. <div>
  6363. <div
  6364. class="group_workBox"
  6365. v-for="(g, gindex) in tool.groupJson.group"
  6366. :key="gindex"
  6367. >
  6368. <div
  6369. class="group_box"
  6370. v-if="
  6371. groupStudentUid[toolIndex] &&
  6372. worksStudent[toolIndex] &&
  6373. (worksStudent[toolIndex][gindex].length ||
  6374. groupStudentUid[toolIndex][gindex].indexOf(
  6375. userid
  6376. ) != -1)
  6377. "
  6378. >
  6379. <div class="group_title">
  6380. <el-tooltip
  6381. class="item"
  6382. effect="light"
  6383. :content="g.name"
  6384. placement="top"
  6385. >
  6386. <div class="group_name">{{ g.name }}</div>
  6387. </el-tooltip>
  6388. <el-button
  6389. type="primary"
  6390. v-if="
  6391. groupStudentUid[toolIndex][gindex].indexOf(
  6392. userid
  6393. ) != -1
  6394. "
  6395. @click="groupUpload(toolIndex, taskCount, gindex)"
  6396. >上传作业</el-button
  6397. >
  6398. </div>
  6399. <div class="group_work">
  6400. <div
  6401. class="works"
  6402. style="
  6403. width: 200px;
  6404. height: 140px;
  6405. margin: 10px 10px 10px 0;
  6406. border-radius: 15px;
  6407. box-shadow: 0 0 6px 1px #dfdada;
  6408. "
  6409. v-for="(w, wIndex) in worksStudent[toolIndex][
  6410. gindex
  6411. ]"
  6412. :key="wIndex"
  6413. :class="w.type == 1 ? 'isTypeOne' : ''"
  6414. >
  6415. <div class="workImg" v-if="w.type == 0">
  6416. <img
  6417. :src="w.works"
  6418. @click="previewImg(w.works)"
  6419. alt
  6420. />
  6421. <div
  6422. class="answerScore"
  6423. v-if="w.score"
  6424. @click.stop="openScore(w)"
  6425. :class="{
  6426. rightW:
  6427. w.userid == userid ||
  6428. tType == 1 ||
  6429. tType == 4 ||
  6430. w.ateacher == userid,
  6431. }"
  6432. >
  6433. {{ JSON.parse(w.score).wScore }}分
  6434. </div>
  6435. <div
  6436. class="answerScore"
  6437. @click.stop="openScore(w)"
  6438. v-else-if="courseDetail.userid == userid"
  6439. :class="{
  6440. rightW:
  6441. w.userid == userid ||
  6442. tType == 1 ||
  6443. tType == 4 ||
  6444. w.ateacher == userid,
  6445. }"
  6446. >
  6447. 评分
  6448. </div>
  6449. <img
  6450. class="deleteImg"
  6451. src="../../assets/deleteworks.png"
  6452. v-if="
  6453. w.userid == userid ||
  6454. tType == 1 ||
  6455. tType == 4
  6456. "
  6457. @click.stop="deleteWorks(w.wid)"
  6458. alt
  6459. />
  6460. </div>
  6461. <div class="workImg" v-if="w.type == 1">
  6462. <img
  6463. :src="word"
  6464. @click="openFile(w.works)"
  6465. alt
  6466. />
  6467. <!-- @click="openFile(w.works)" -->
  6468. <div
  6469. class="answerScore"
  6470. v-if="w.score"
  6471. @click.stop="openScore(w)"
  6472. :class="{
  6473. rightW:
  6474. w.userid == userid ||
  6475. tType == 1 ||
  6476. tType == 4 ||
  6477. w.ateacher == userid,
  6478. }"
  6479. >
  6480. {{ JSON.parse(w.score).wScore }}分
  6481. </div>
  6482. <div
  6483. class="answerScore"
  6484. @click.stop="openScore(w)"
  6485. v-else-if="courseDetail.userid == userid"
  6486. :class="{
  6487. rightW:
  6488. w.userid == userid ||
  6489. tType == 1 ||
  6490. tType == 4 ||
  6491. w.ateacher == userid,
  6492. }"
  6493. >
  6494. 评分
  6495. </div>
  6496. <img
  6497. class="deleteImg"
  6498. src="../../assets/deleteworks.png"
  6499. v-if="
  6500. w.userid == userid ||
  6501. tType == 1 ||
  6502. tType == 4
  6503. "
  6504. @click.stop="deleteWorks(w.wid)"
  6505. alt
  6506. />
  6507. </div>
  6508. <div class="workImg" v-if="w.type == 3">
  6509. <img
  6510. style="cursor: pointer"
  6511. :src="video"
  6512. @click="openVideo(w)"
  6513. alt
  6514. />
  6515. <!-- @click="openVideo(w.works)" -->
  6516. <div
  6517. class="answerScore"
  6518. v-if="w.score"
  6519. @click.stop="openScore(w)"
  6520. :class="{
  6521. rightW:
  6522. w.userid == userid ||
  6523. tType == 1 ||
  6524. tType == 4 ||
  6525. w.ateacher == userid,
  6526. }"
  6527. >
  6528. {{ JSON.parse(w.score).wScore }}分
  6529. </div>
  6530. <div
  6531. class="answerScore"
  6532. @click.stop="openScore(w)"
  6533. v-else-if="courseDetail.userid == userid"
  6534. :class="{
  6535. rightW:
  6536. w.userid == userid ||
  6537. tType == 1 ||
  6538. tType == 4 ||
  6539. w.ateacher == userid,
  6540. }"
  6541. >
  6542. 评分
  6543. </div>
  6544. <img
  6545. class="deleteImg"
  6546. src="../../assets/deleteworks.png"
  6547. v-if="
  6548. w.userid == userid ||
  6549. tType == 1 ||
  6550. tType == 4
  6551. "
  6552. @click.stop="deleteWorks(w.wid)"
  6553. alt
  6554. />
  6555. </div>
  6556. <div class="workImg" v-if="w.type == 12">
  6557. <img
  6558. style="cursor: pointer"
  6559. :src="word2"
  6560. @click="downloadFile(w.works)"
  6561. alt
  6562. />
  6563. <!-- @click="openVideo(w.works)" -->
  6564. <div
  6565. class="answerScore"
  6566. v-if="w.score"
  6567. @click.stop="openScore(w)"
  6568. :class="{
  6569. rightW:
  6570. w.userid == userid ||
  6571. tType == 1 ||
  6572. tType == 4 ||
  6573. w.ateacher == userid,
  6574. }"
  6575. >
  6576. {{ JSON.parse(w.score).wScore }}分
  6577. </div>
  6578. <div
  6579. class="answerScore"
  6580. @click.stop="openScore(w)"
  6581. v-else-if="courseDetail.userid == userid"
  6582. :class="{
  6583. rightW:
  6584. w.userid == userid ||
  6585. tType == 1 ||
  6586. tType == 4 ||
  6587. w.ateacher == userid,
  6588. }"
  6589. >
  6590. 评分
  6591. </div>
  6592. <img
  6593. class="deleteImg"
  6594. src="../../assets/deleteworks.png"
  6595. v-if="
  6596. w.userid == userid ||
  6597. tType == 1 ||
  6598. tType == 4
  6599. "
  6600. @click.stop="deleteWorks(w.wid)"
  6601. alt
  6602. />
  6603. </div>
  6604. <div class="comment" style="min-width: 200px">
  6605. <div class="worksName">
  6606. <div>{{ w.sName }}</div>
  6607. </div>
  6608. <div class="commentList">
  6609. <div class="commentList">
  6610. <div
  6611. class="commentImg"
  6612. @click="
  6613. isLikes(
  6614. w.wid,
  6615. userid,
  6616. 1,
  6617. null,
  6618. w.isLikes
  6619. )
  6620. "
  6621. >
  6622. <img
  6623. :src="
  6624. w.isLikes == true ? likes : noLikes
  6625. "
  6626. alt=""
  6627. />
  6628. </div>
  6629. <div>{{ w.likesCount }}</div>
  6630. </div>
  6631. <div
  6632. class="commentList"
  6633. style="margin-right: 15px"
  6634. >
  6635. <div
  6636. class="commentImg"
  6637. @click="
  6638. commentOther(
  6639. w,
  6640. toolIndex,
  6641. wIndex,
  6642. gindex
  6643. )
  6644. "
  6645. >
  6646. <img
  6647. src="../../assets/icon/comment/comment.png"
  6648. alt=""
  6649. />
  6650. </div>
  6651. <div>{{ w.commentCount }}</div>
  6652. </div>
  6653. </div>
  6654. </div>
  6655. </div>
  6656. </div>
  6657. </div>
  6658. </div>
  6659. </div>
  6660. </div>
  6661. </div>
  6662. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6663. 上传文件
  6664. <input
  6665. type="file"
  6666. accept="image/png, image/gif, image/jpeg"
  6667. style="display: none"
  6668. @change="beforeUpload1($event, 2, index)"
  6669. />
  6670. </div>-->
  6671. </div>
  6672. </div>
  6673. <!-- <div
  6674. class="vedioBox"
  6675. style="margin-top: 10px"
  6676. v-if="
  6677. courseDetail.userid == userid ||
  6678. (courseDetail.course_teacher &&
  6679. courseDetail.course_teacher.indexOf(userid) != -1)
  6680. "
  6681. :style="{
  6682. borderRadius:
  6683. !(
  6684. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6685. .toolChoose[0].tool &&
  6686. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6687. .toolChoose[0].tool.length > 0
  6688. ) &&
  6689. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6690. .taskDetail == '' &&
  6691. vChapterData[taskCount].length == 0 &&
  6692. fileC[taskCount].length == 0
  6693. ? '0 0 20px 20px'
  6694. : '20px',
  6695. }"
  6696. >
  6697. <div
  6698. class="queTop"
  6699. @click="isClose = !isClose"
  6700. style="
  6701. padding: 15px 0 15px 37px;
  6702. justify-content: space-between;
  6703. "
  6704. >
  6705. <div class="queTopTitle">新增工具</div>
  6706. <div class="queTopRight">
  6707. <div class="queTopClose" v-if="isClose == 0">
  6708. 展开
  6709. <div class="closeImg">
  6710. <img src="../../assets/icon/newIcon/close.png" alt="" />
  6711. </div>
  6712. </div>
  6713. <div class="queTopClose" v-if="isClose == 1">
  6714. 折叠
  6715. <div class="openImg">
  6716. <img src="../../assets/icon/newIcon/open.png" alt="" />
  6717. </div>
  6718. </div>
  6719. <el-button
  6720. style="margin: 0 30px 0 auto"
  6721. type="primary"
  6722. size="small"
  6723. v-if="isClose == 1 && checktoolArray.length > 0"
  6724. @click.stop="addToolChoose"
  6725. >确定</el-button
  6726. >
  6727. </div>
  6728. </div>
  6729. <div
  6730. class="tool_work_box"
  6731. :style="isClose == 0 ? 'display:none' : 'display:block'"
  6732. >
  6733. <div class="tool_box">
  6734. <div class="tool_type_box">
  6735. <div class="chooseWho">
  6736. <div
  6737. :class="toolType == 0 ? 'isChooseActive' : ''"
  6738. @click="(toolType = 0), $forceUpdate()"
  6739. >
  6740. 互动类
  6741. </div>
  6742. <div
  6743. :class="toolType == 1 ? 'isChooseActive' : ''"
  6744. @click="(toolType = 1), $forceUpdate()"
  6745. >
  6746. 思维类
  6747. </div>
  6748. <div
  6749. :class="toolType == 2 ? 'isChooseActive' : ''"
  6750. @click="(toolType = 2), $forceUpdate()"
  6751. >
  6752. 测评类
  6753. </div>
  6754. <div
  6755. :class="toolType == 3 ? 'isChooseActive' : ''"
  6756. @click="(toolType = 3), $forceUpdate()"
  6757. >
  6758. 编程类
  6759. </div>
  6760. <div
  6761. :class="toolType == 5 ? 'isChooseActive' : ''"
  6762. @click="(toolType = 5), $forceUpdate()"
  6763. >
  6764. 学科类
  6765. </div>
  6766. </div>
  6767. </div>
  6768. <div>
  6769. <div class="toolSort" v-if="toolType == 0">
  6770. <div class="tool">
  6771. <div class="whiteBIcon" @click="addTools2(10)">
  6772. <img
  6773. src="../../assets/icon/thirdToolList/time.png"
  6774. alt
  6775. />
  6776. <div style="margin: 5px 0">倒计时</div>
  6777. </div>
  6778. <div class="check" @click="addTools2(10)">
  6779. <img
  6780. src="../../assets/icon/checkNo.png"
  6781. alt
  6782. v-if="checktoolArray.indexOf(10) == -1"
  6783. />
  6784. <div class="checkDiv" v-else>
  6785. <img src="../../assets/icon/checkedIs.png" alt /><span
  6786. >已选择</span
  6787. >
  6788. </div>
  6789. </div>
  6790. </div>
  6791. <div class="tool">
  6792. <div class="whiteBIcon" @click="addTools2(65)">
  6793. <img
  6794. src="../../assets/icon/firstToolList/pickPeople.png"
  6795. alt
  6796. />
  6797. <div style="margin: 5px 0">挑人</div>
  6798. </div>
  6799. <div class="check" @click="addTools2(65)">
  6800. <img
  6801. src="../../assets/icon/checkNo.png"
  6802. alt
  6803. v-if="checktoolArray.indexOf(65) == -1"
  6804. />
  6805. <div class="checkDiv" v-else>
  6806. <img src="../../assets/icon/checkedIs.png" alt /><span
  6807. >已选择</span
  6808. >
  6809. </div>
  6810. </div>
  6811. </div>
  6812. </div>
  6813. <div class="toolSort" v-if="toolType == 1">
  6814. <div class="tool">
  6815. <div class="whiteBIcon" @click="addTools2(7)">
  6816. <img
  6817. src="../../assets/icon/secondToolList/mindNetwork.png"
  6818. alt
  6819. />
  6820. <div style="margin: 5px 0">思维网格</div>
  6821. </div>
  6822. <div class="check" @click="addTools2(7)">
  6823. <img
  6824. src="../../assets/icon/checkNo.png"
  6825. alt
  6826. v-if="checktoolArray.indexOf(7) == -1"
  6827. />
  6828. <div class="checkDiv" v-else>
  6829. <img src="../../assets/icon/checkedIs.png" alt /><span
  6830. >已选择</span
  6831. >
  6832. </div>
  6833. </div>
  6834. </div>
  6835. <div class="tool">
  6836. <div class="whiteBIcon" @click="addTools2(1)">
  6837. <img
  6838. src="../../assets/icon/secondToolList/whiteBoard.png"
  6839. alt
  6840. />
  6841. <div style="margin: 5px 0">电子白板</div>
  6842. </div>
  6843. <div class="check" @click="addTools2(1)">
  6844. <img
  6845. src="../../assets/icon/checkNo.png"
  6846. alt
  6847. v-if="checktoolArray.indexOf(1) == -1"
  6848. />
  6849. <div class="checkDiv" v-else>
  6850. <img src="../../assets/icon/checkedIs.png" alt /><span
  6851. >已选择</span
  6852. >
  6853. </div>
  6854. </div>
  6855. </div>
  6856. <div class="tool">
  6857. <div class="whiteBIcon" @click="addTools2(52)">
  6858. <img
  6859. src="../../assets/icon/fourthToolList/text.png"
  6860. alt
  6861. />
  6862. <div style="margin: 5px 0">文档</div>
  6863. </div>
  6864. <div class="check" @click="addTools2(52)">
  6865. <img
  6866. src="../../assets/icon/checkNo.png"
  6867. alt
  6868. v-if="checktoolArray.indexOf(52) == -1"
  6869. />
  6870. <div class="checkDiv" v-else>
  6871. <img src="../../assets/icon/checkedIs.png" alt /><span
  6872. >已选择</span
  6873. >
  6874. </div>
  6875. </div>
  6876. </div>
  6877. <div class="tool">
  6878. <div class="whiteBIcon" @click="addTools2(3)">
  6879. <img
  6880. src="../../assets/icon/secondToolList/mindMapping.png"
  6881. alt
  6882. />
  6883. <div style="margin: 5px 0">思维导图</div>
  6884. </div>
  6885. <div class="check" @click="addTools2(3)">
  6886. <img
  6887. src="../../assets/icon/checkNo.png"
  6888. alt
  6889. v-if="checktoolArray.indexOf(3) == -1"
  6890. />
  6891. <div class="checkDiv" v-else>
  6892. <img src="../../assets/icon/checkedIs.png" alt /><span
  6893. >已选择</span
  6894. >
  6895. </div>
  6896. </div>
  6897. </div>
  6898. <div class="tool">
  6899. <div class="whiteBIcon" @click="addTools2(48)">
  6900. <img
  6901. src="../../assets/icon/fourthToolList/table.png"
  6902. alt
  6903. />
  6904. <div style="margin: 5px 0">表格</div>
  6905. </div>
  6906. <div class="check" @click="addTools2(48)">
  6907. <img
  6908. src="../../assets/icon/checkNo.png"
  6909. alt
  6910. v-if="checktoolArray.indexOf(48) == -1"
  6911. />
  6912. <div class="checkDiv" v-else>
  6913. <img src="../../assets/icon/checkedIs.png" alt /><span
  6914. >已选择</span
  6915. >
  6916. </div>
  6917. </div>
  6918. </div>
  6919. </div>
  6920. <div class="toolSort" v-if="toolType == 6">
  6921. <div v-show="tooC == 49">
  6922. <img
  6923. @click="addTools(tooC, toolIndex, taskCount)"
  6924. src="../../assets/icon/fourthToolList/group.png"
  6925. alt
  6926. />
  6927. <div style="margin: 5px 0">学生分组</div>
  6928. </div>
  6929. </div>
  6930. <div class="toolSort" v-if="toolType == 2">
  6931. <div class="tool">
  6932. <div class="whiteBIcon" @click="addTools2(16)">
  6933. <img
  6934. src="../../assets/icon/thirdToolList/work.png"
  6935. alt
  6936. />
  6937. <div style="margin: 5px 0">作业提交</div>
  6938. </div>
  6939. <div class="check" @click="addTools2(16)">
  6940. <img
  6941. src="../../assets/icon/checkNo.png"
  6942. alt
  6943. v-if="checktoolArray.indexOf(16) == -1"
  6944. />
  6945. <div class="checkDiv" v-else>
  6946. <img src="../../assets/icon/checkedIs.png" alt /><span
  6947. >已选择</span
  6948. >
  6949. </div>
  6950. </div>
  6951. </div>
  6952. <div class="tool">
  6953. <div class="whiteBIcon" @click="addTools2(50)">
  6954. <img
  6955. src="../../assets/icon/thirdToolList/plwork.png"
  6956. alt
  6957. />
  6958. <div style="margin: 5px 0">批量上传</div>
  6959. </div>
  6960. <div class="check" @click="addTools2(50)">
  6961. <img
  6962. src="../../assets/icon/checkNo.png"
  6963. alt
  6964. v-if="checktoolArray.indexOf(50) == -1"
  6965. />
  6966. <div class="checkDiv" v-else>
  6967. <img src="../../assets/icon/checkedIs.png" alt /><span
  6968. >已选择</span
  6969. >
  6970. </div>
  6971. </div>
  6972. </div>
  6973. </div>
  6974. <div class="toolSort" v-if="toolType == 3">
  6975. <div class="tool">
  6976. <div class="whiteBIcon" @click="addTools2(18)">
  6977. <img
  6978. src="../../assets/icon/thirdToolList/trainPlatform.png"
  6979. alt
  6980. />
  6981. <div style="margin: 5px 0">训练平台</div>
  6982. </div>
  6983. <div class="check" @click="addTools2(18)">
  6984. <img
  6985. src="../../assets/icon/checkNo.png"
  6986. alt
  6987. v-if="checktoolArray.indexOf(18) == -1"
  6988. />
  6989. <div class="checkDiv" v-else>
  6990. <img src="../../assets/icon/checkedIs.png" alt /><span
  6991. >已选择</span
  6992. >
  6993. </div>
  6994. </div>
  6995. </div>
  6996. <div class="tool">
  6997. <div class="whiteBIcon" @click="addTools2(21)">
  6998. <img
  6999. src="../../assets/icon/fourthToolList/program.png"
  7000. alt
  7001. />
  7002. <div style="margin: 5px 0">AIoT Blockly</div>
  7003. </div>
  7004. <div class="check" @click="addTools2(21)">
  7005. <img
  7006. src="../../assets/icon/checkNo.png"
  7007. alt
  7008. v-if="checktoolArray.indexOf(21) == -1"
  7009. />
  7010. <div class="checkDiv" v-else>
  7011. <img src="../../assets/icon/checkedIs.png" alt /><span
  7012. >已选择</span
  7013. >
  7014. </div>
  7015. </div>
  7016. </div>
  7017. <div class="tool">
  7018. <div class="whiteBIcon" @click="addTools2(23)">
  7019. <img
  7020. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7021. alt
  7022. />
  7023. <div style="margin: 5px 0">AI Python</div>
  7024. </div>
  7025. <div class="check" @click="addTools2(23)">
  7026. <img
  7027. src="../../assets/icon/checkNo.png"
  7028. alt
  7029. v-if="checktoolArray.indexOf(23) == -1"
  7030. />
  7031. <div class="checkDiv" v-else>
  7032. <img src="../../assets/icon/checkedIs.png" alt /><span
  7033. >已选择</span
  7034. >
  7035. </div>
  7036. </div>
  7037. </div>
  7038. <div class="tool">
  7039. <div class="whiteBIcon" @click="addTools2(24)">
  7040. <img
  7041. src="../../assets/icon/fourthToolList/AIprogram.png"
  7042. alt
  7043. />
  7044. <div style="margin: 5px 0">AI Blockly</div>
  7045. </div>
  7046. <div class="check" @click="addTools2(24)">
  7047. <img
  7048. src="../../assets/icon/checkNo.png"
  7049. alt
  7050. v-if="checktoolArray.indexOf(24) == -1"
  7051. />
  7052. <div class="checkDiv" v-else>
  7053. <img src="../../assets/icon/checkedIs.png" alt /><span
  7054. >已选择</span
  7055. >
  7056. </div>
  7057. </div>
  7058. </div>
  7059. <div class="tool">
  7060. <div class="whiteBIcon" @click="addTools2(32)">
  7061. <img
  7062. src="../../assets/icon/thirdToolList/code.png"
  7063. alt
  7064. />
  7065. <div style="margin: 5px 0">源码编辑</div>
  7066. </div>
  7067. <div class="check" @click="addTools2(32)">
  7068. <img
  7069. src="../../assets/icon/checkNo.png"
  7070. alt
  7071. v-if="checktoolArray.indexOf(32) == -1"
  7072. />
  7073. <div class="checkDiv" v-else>
  7074. <img src="../../assets/icon/checkedIs.png" alt /><span
  7075. >已选择</span
  7076. >
  7077. </div>
  7078. </div>
  7079. </div>
  7080. <div class="tool">
  7081. <div class="whiteBIcon" @click="addTools2(57)">
  7082. <img
  7083. src="../../assets/icon/fourthToolList/cocopi.png"
  7084. alt
  7085. />
  7086. <div style="margin: 5px 0">CocoPi</div>
  7087. </div>
  7088. <div class="check" @click="addTools2(57)">
  7089. <img
  7090. src="../../assets/icon/checkNo.png"
  7091. alt
  7092. v-if="checktoolArray.indexOf(57) == -1"
  7093. />
  7094. <div class="checkDiv" v-else>
  7095. <img src="../../assets/icon/checkedIs.png" alt /><span
  7096. >已选择</span
  7097. >
  7098. </div>
  7099. </div>
  7100. </div>
  7101. <div class="tool">
  7102. <div class="whiteBIcon" @click="addTools2(63)">
  7103. <img
  7104. src="../../assets/icon/fourthToolList/Wood.png"
  7105. alt
  7106. />
  7107. <div style="margin: 5px 0">海龟编程</div>
  7108. </div>
  7109. <div class="check" @click="addTools2(63)">
  7110. <img
  7111. src="../../assets/icon/checkNo.png"
  7112. alt
  7113. v-if="checktoolArray.indexOf(63) == -1"
  7114. />
  7115. <div class="checkDiv" v-else>
  7116. <img src="../../assets/icon/checkedIs.png" alt /><span
  7117. >已选择</span
  7118. >
  7119. </div>
  7120. </div>
  7121. </div>
  7122. </div>
  7123. <div class="toolSort" v-if="toolType == 5">
  7124. <div class="tool">
  7125. <div class="whiteBIcon" @click="addTools2(28)">
  7126. <img
  7127. src="../../assets/icon/secondToolList/translation.png"
  7128. alt
  7129. />
  7130. <div style="margin: 5px 0">翻译</div>
  7131. </div>
  7132. <div class="check" @click="addTools2(28)">
  7133. <img
  7134. src="../../assets/icon/checkNo.png"
  7135. alt
  7136. v-if="checktoolArray.indexOf(28) == -1"
  7137. />
  7138. <div class="checkDiv" v-else>
  7139. <img src="../../assets/icon/checkedIs.png" alt /><span
  7140. >已选择</span
  7141. >
  7142. </div>
  7143. </div>
  7144. </div>
  7145. <div class="tool">
  7146. <div class="whiteBIcon" @click="addTools2(31)">
  7147. <img
  7148. src="../../assets/icon/secondToolList/networkPanel.png"
  7149. alt
  7150. />
  7151. <div style="margin: 5px 0">数字画板</div>
  7152. </div>
  7153. <div class="check" @click="addTools2(31)">
  7154. <img
  7155. src="../../assets/icon/checkNo.png"
  7156. alt
  7157. v-if="checktoolArray.indexOf(31) == -1"
  7158. />
  7159. <div class="checkDiv" v-else>
  7160. <img src="../../assets/icon/checkedIs.png" alt /><span
  7161. >已选择</span
  7162. >
  7163. </div>
  7164. </div>
  7165. </div>
  7166. <div class="tool">
  7167. <div class="whiteBIcon" @click="addTools2(39)">
  7168. <img
  7169. src="../../assets/icon/secondToolList/GeoGebra.png"
  7170. alt
  7171. />
  7172. <div style="margin: 5px 0">GeoGebra</div>
  7173. </div>
  7174. <div class="check" @click="addTools2(39)">
  7175. <img
  7176. src="../../assets/icon/checkNo.png"
  7177. alt
  7178. v-if="checktoolArray.indexOf(39) == -1"
  7179. />
  7180. <div class="checkDiv" v-else>
  7181. <img src="../../assets/icon/checkedIs.png" alt /><span
  7182. >已选择</span
  7183. >
  7184. </div>
  7185. </div>
  7186. </div>
  7187. <div class="tool">
  7188. <div class="whiteBIcon" @click="addTools2(66)">
  7189. <img
  7190. src="../../assets/icon/secondToolList/formulaEdi.png"
  7191. alt
  7192. />
  7193. <div style="margin: 5px 0">公式编辑</div>
  7194. </div>
  7195. <div class="check" @click="addTools2(66)">
  7196. <img
  7197. src="../../assets/icon/checkNo.png"
  7198. alt
  7199. v-if="checktoolArray.indexOf(66) == -1"
  7200. />
  7201. <div class="checkDiv" v-else>
  7202. <img src="../../assets/icon/checkedIs.png" alt /><span
  7203. >已选择</span
  7204. >
  7205. </div>
  7206. </div>
  7207. </div>
  7208. <div class="tool">
  7209. <div class="whiteBIcon" @click="addTools2(67)">
  7210. <img
  7211. src="../../assets/icon/secondToolList/molStr.png"
  7212. alt
  7213. />
  7214. <div style="margin: 5px 0">分子结构</div>
  7215. </div>
  7216. <div class="check" @click="addTools2(67)">
  7217. <img
  7218. src="../../assets/icon/checkNo.png"
  7219. alt
  7220. v-if="checktoolArray.indexOf(67) == -1"
  7221. />
  7222. <div class="checkDiv" v-else>
  7223. <img src="../../assets/icon/checkedIs.png" alt /><span
  7224. >已选择</span
  7225. >
  7226. </div>
  7227. </div>
  7228. </div>
  7229. <div class="tool">
  7230. <div class="whiteBIcon" @click="addTools2(68)">
  7231. <img
  7232. src="../../assets/icon/secondToolList/timeAxis.png"
  7233. alt
  7234. />
  7235. <div style="margin: 5px 0">时间轴</div>
  7236. </div>
  7237. <div class="check" @click="addTools2(68)">
  7238. <img
  7239. src="../../assets/icon/checkNo.png"
  7240. alt
  7241. v-if="checktoolArray.indexOf(68) == -1"
  7242. />
  7243. <div class="checkDiv" v-else>
  7244. <img src="../../assets/icon/checkedIs.png" alt /><span
  7245. >已选择</span
  7246. >
  7247. </div>
  7248. </div>
  7249. </div>
  7250. </div>
  7251. <div class="toolSort" v-if="toolType == 7">
  7252. <div class="tool">
  7253. <div class="whiteBIcon" @click="addTools2(40)">
  7254. <img
  7255. src="../../assets/icon/secondToolList/eval.png"
  7256. alt
  7257. />
  7258. <div style="margin: 5px 0">个人评价</div>
  7259. </div>
  7260. <div class="check" @click="addTools2(40)">
  7261. <img
  7262. src="../../assets/icon/checkNo.png"
  7263. alt
  7264. v-if="checktoolArray.indexOf(40) == -1"
  7265. />
  7266. <div class="checkDiv" v-else>
  7267. <img src="../../assets/icon/checkedIs.png" alt /><span
  7268. >已选择</span
  7269. >
  7270. </div>
  7271. </div>
  7272. </div>
  7273. </div>
  7274. <div class="toolSort" v-if="toolType == 4">
  7275. <div class="tool">
  7276. <div class="whiteBIcon" @click="addTools2(26)">
  7277. <img
  7278. src="../../assets/icon/thirdToolList/courseDesign.png"
  7279. alt
  7280. />
  7281. <div style="margin: 5px 0">课程设计</div>
  7282. </div>
  7283. <div class="check" @click="addTools2(26)">
  7284. <img
  7285. src="../../assets/icon/checkNo.png"
  7286. alt
  7287. v-if="checktoolArray.indexOf(26) == -1"
  7288. />
  7289. <div class="checkDiv" v-else>
  7290. <img src="../../assets/icon/checkedIs.png" alt /><span
  7291. >已选择</span
  7292. >
  7293. </div>
  7294. </div>
  7295. </div>
  7296. <div class="tool">
  7297. <div class="whiteBIcon" @click="addTools2(25)">
  7298. <img
  7299. src="../../assets/icon/thirdToolList/evalua.png"
  7300. alt
  7301. />
  7302. <div style="margin: 5px 0">目标管理</div>
  7303. </div>
  7304. <div class="check" @click="addTools2(25)">
  7305. <img
  7306. src="../../assets/icon/checkNo.png"
  7307. alt
  7308. v-if="checktoolArray.indexOf(25) == -1"
  7309. />
  7310. <div class="checkDiv" v-else>
  7311. <img src="../../assets/icon/checkedIs.png" alt /><span
  7312. >已选择</span
  7313. >
  7314. </div>
  7315. </div>
  7316. </div>
  7317. </div>
  7318. </div>
  7319. </div>
  7320. </div>
  7321. </div> -->
  7322. <div
  7323. class="vedioBox"
  7324. style="margin-top: 10px; border-radius: 20px"
  7325. v-if="
  7326. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7327. .eList &&
  7328. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7329. .eList.length &&
  7330. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7331. .eList.length > 0 &&
  7332. tType != 2
  7333. "
  7334. >
  7335. <div
  7336. class="queTop"
  7337. style="
  7338. font-size: 20px;
  7339. padding: 15px 0 15px 37px;
  7340. font-weight: bold;
  7341. "
  7342. >
  7343. <!-- <div class="question" style="width: 30px">
  7344. <img src="../../assets/icon/toolIcon.png" alt />
  7345. </div>
  7346. <div class="queTitle">
  7347. <div>工具</div>
  7348. </div>-->
  7349. 评一评
  7350. </div>
  7351. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7352. <div class="elist_input">
  7353. <el-table
  7354. :data="
  7355. chapInfoList[courseType].chapterInfo[0].taskJson[
  7356. taskCount
  7357. ].eList
  7358. "
  7359. :header-cell-style="{ background: '#F0F4FA' }"
  7360. :row-class-name="tableRowClassName"
  7361. border
  7362. stripe
  7363. style="width: 100%"
  7364. >
  7365. <el-table-column
  7366. label="评价名称"
  7367. width="180"
  7368. align="center"
  7369. >
  7370. <template slot-scope="scope"
  7371. ><div>{{ scope.row.value }}</div></template
  7372. >
  7373. </el-table-column>
  7374. <el-table-column
  7375. label="评价描述"
  7376. width="180"
  7377. align="center"
  7378. >
  7379. <template slot-scope="scope"
  7380. ><div>
  7381. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7382. </div></template
  7383. >
  7384. </el-table-column>
  7385. <el-table-column label="目标" align="center">
  7386. <template slot-scope="scope"
  7387. ><div>
  7388. {{
  7389. scope.row.target
  7390. ? scope.row.target[scope.row.target.length - 1]
  7391. : "-"
  7392. }}
  7393. </div></template
  7394. ></el-table-column
  7395. >
  7396. </el-table>
  7397. <!-- <div
  7398. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7399. .chapterInfo[0].taskJson[taskCount].eList"
  7400. :key="eIndex"
  7401. class="elist_input_box"
  7402. >
  7403. <div style="width: 95%">
  7404. <div
  7405. style="
  7406. display: flex;
  7407. flex-direction: row;
  7408. flex-wrap: nowrap;
  7409. align-items: center;
  7410. "
  7411. >
  7412. <div style="max-width: calc(100% - 285px)">
  7413. <span>{{ eItem.value }}</span>
  7414. </div>
  7415. <div
  7416. style="
  7417. padding-left: 25px;
  7418. display: flex;
  7419. flex-direction: row;
  7420. align-items: center;
  7421. "
  7422. >
  7423. <el-rate
  7424. v-model="eItem.score"
  7425. :colors="colors"
  7426. disabled
  7427. ></el-rate>
  7428. </div>
  7429. </div>
  7430. <div class="elist_inptu_text" style="padding-left: 10px">
  7431. <span v-if="eItem.detail != ''">{{
  7432. eItem.detail
  7433. }}</span>
  7434. <span v-else style="color: #b2b1b3; font-size: 14px"
  7435. >暂无描述...</span
  7436. >
  7437. </div>
  7438. </div>
  7439. </div> -->
  7440. </div>
  7441. <div
  7442. v-if="evalua"
  7443. style="
  7444. border: 1px solid #e5e5e5;
  7445. max-width: 650px;
  7446. width: 100%;
  7447. margin-top: 20px;
  7448. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7449. "
  7450. >
  7451. <div class="e_add_top">
  7452. <div class="e_add_title">
  7453. <span>目标管理名称</span>
  7454. <span>{{ eTitle }}</span>
  7455. <img
  7456. src="../../assets/line.png"
  7457. class="cru_line"
  7458. style="
  7459. width: 125px;
  7460. height: 20px;
  7461. bottom: -10px;
  7462. left: 120px;
  7463. "
  7464. />
  7465. <!-- <el-input
  7466. v-model="eTitle"
  7467. placeholder="请输入名称"
  7468. @change="setMindData"
  7469. ></el-input>-->
  7470. </div>
  7471. </div>
  7472. <div class="e_add_content">
  7473. <div class="e_add_list_pbox">
  7474. <div class="e_add_list_pbox_title">
  7475. <span class="type_title">切换模式</span>
  7476. <div class="type_content">
  7477. <span
  7478. :class="{ active: typeMode == 1 }"
  7479. @click="typeMode = 1"
  7480. >目标树</span
  7481. >
  7482. <span
  7483. :class="{ active: typeMode == 2 }"
  7484. @click="typeMode = 2"
  7485. >目标罗盘</span
  7486. >
  7487. <span
  7488. :class="{ active: typeMode == 3 }"
  7489. @click="typeMode = 3"
  7490. >目标看板</span
  7491. >
  7492. </div>
  7493. </div>
  7494. <div class="e_add_list_pbox_content">
  7495. <Mind
  7496. :showBar="false"
  7497. :mindData="data"
  7498. style="width: 100%"
  7499. v-show="typeMode == 1"
  7500. ></Mind>
  7501. <Sunburst
  7502. :Josn="eJson"
  7503. :num="eJSONNum"
  7504. style="width: 100%"
  7505. v-if="typeMode == 2"
  7506. ></Sunburst>
  7507. <SeeBoard
  7508. :Josn="eJson"
  7509. :num="eJSONNum"
  7510. :ename="eTitle"
  7511. style="width: 100%"
  7512. v-if="typeMode == 3"
  7513. >
  7514. </SeeBoard>
  7515. </div>
  7516. </div>
  7517. </div>
  7518. </div>
  7519. </div>
  7520. </div>
  7521. <!-- <div
  7522. class="project_box"
  7523. style="margin-top: 15px; padding-bottom: 30px"
  7524. >
  7525. <div
  7526. style="
  7527. display: flex;
  7528. flex-wrap: nowrap;
  7529. flex-direction: column;
  7530. position: relative;
  7531. "
  7532. >
  7533. <div class="queTop">
  7534. <div class="question">
  7535. <img src="../../assets/icon/homeWork.png" alt="" />
  7536. </div>
  7537. <div class="queTitle">
  7538. <div>作业提交<span>(提交图文视频等)</span></div>
  7539. <div>:任务:{{ task.task }}</div>
  7540. </div>
  7541. </div>
  7542. <div class="ediBottom">
  7543. <div
  7544. class="addEditor"
  7545. style="margin-top: 23px"
  7546. @click="openAddWork"
  7547. v-if="!isNoHomeWork"
  7548. >
  7549. 选择文件
  7550. </div>
  7551. <div
  7552. class="addEditor"
  7553. style="margin-top: 23px"
  7554. @click="openAddWork"
  7555. v-else
  7556. >
  7557. 已提交
  7558. </div>
  7559. </div>
  7560. </div>
  7561. </div>-->
  7562. </div>
  7563. </div>
  7564. <el-dialog
  7565. title="作业提交"
  7566. :visible.sync="dialogVisible"
  7567. :append-to-body="true"
  7568. width="500px"
  7569. :before-close="handleClose"
  7570. class="dialog_change"
  7571. >
  7572. <div class="marginT">
  7573. <div>上传文件</div>
  7574. <div
  7575. class="chapter_add"
  7576. @click="addImg($event)"
  7577. v-if="studyJuri[0].cover.length == 0"
  7578. >
  7579. <div class="up_photo">
  7580. <img src="../../assets/icon/uploadImg.png" alt />
  7581. </div>
  7582. <!-- <input
  7583. type="file"
  7584. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7585. style="display: none"
  7586. @change="beforeUpload1($event, 1)"
  7587. /> -->
  7588. <input
  7589. type="file"
  7590. accept="*"
  7591. style="display: none"
  7592. @change="beforeUpload1($event, 1)"
  7593. />
  7594. <!-- <input
  7595. type="file"
  7596. accept="image/*"
  7597. capture="camera"
  7598. style="display: none"
  7599. @change="beforeUpload1($event, 1)"
  7600. /> -->
  7601. </div>
  7602. <div
  7603. class="chapter_add"
  7604. style="
  7605. display: flex;
  7606. width: 100%;
  7607. flex-direction: row;
  7608. flex-wrap: wrap;
  7609. justify-content: flex-start;
  7610. padding: 15px 0;
  7611. "
  7612. v-if="studyJuri[0].cover.length > 0"
  7613. >
  7614. <div class="upCover">
  7615. <img
  7616. :src="studyJuri[0].cover[0].url"
  7617. alt
  7618. v-if="fileType == 0"
  7619. />
  7620. <img :src="word" alt v-else-if="fileType == 1" />
  7621. <img :src="video" alt v-else-if="fileType == 2" />
  7622. <img :src="word2" alt v-else-if="fileType == 3" />
  7623. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7624. <div class="deleteWord" @click="clean(1)">
  7625. <img src="../../assets/icon/deleteWorks.png" alt />
  7626. </div>
  7627. </div>
  7628. </div>
  7629. </div>
  7630. <div
  7631. class="upload_send"
  7632. @click="addCourseWorks(taskCount)"
  7633. v-if="!proVisible"
  7634. >
  7635. 提交
  7636. </div>
  7637. </el-dialog>
  7638. </div>
  7639. </div>
  7640. <div
  7641. class="pButton"
  7642. @click="(pzDialog = true), selectPz()"
  7643. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7644. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  7645. >
  7646. <!-- 批 -->
  7647. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  7648. </div>
  7649. <div v-if="pzDialog == true" class="newDialogCss">
  7650. <div class="pzTop2">
  7651. <!-- <div>批注</div>
  7652. <div @click="pzDialog = false">
  7653. <img src="../../assets/close1.png" alt="" />
  7654. </div> -->
  7655. <div class="checkbox">
  7656. <div class="check" style="font-size: 25px; position: unset">
  7657. 评课笔记
  7658. </div>
  7659. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  7660. <el-option label="时间降序" :value="1"></el-option>
  7661. <el-option label="时间升序" :value="2"></el-option>
  7662. <el-option label="我的评课" :value="3"></el-option>
  7663. </el-select>
  7664. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7665. </div>
  7666. </div>
  7667. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7668. <div class="pzListBox" v-if="pzList && pzList.length">
  7669. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7670. <div class="pzNavTop">
  7671. <div>批</div>
  7672. <div>
  7673. {{
  7674. pz.username && pz.username.length > 5
  7675. ? pz.username.substring(0, 5) + "..."
  7676. : pz.username
  7677. }}的批注
  7678. </div>
  7679. <div
  7680. class="pzDelete"
  7681. v-if="pz.userid == userid"
  7682. @click="deletePz(pz.id)"
  7683. >
  7684. 删除
  7685. </div>
  7686. </div>
  7687. <div
  7688. @click="checkImg(getImgList(pz.content))"
  7689. class="pzContent cont"
  7690. v-html="pz.content"
  7691. v-if="pz.type == '1'"
  7692. ></div>
  7693. <div class="pzContent" v-if="pz.type == '2'">
  7694. <audio :src="pz.content" controls="controls" ref="audio">
  7695. Your browser does not support the audio element.
  7696. </audio>
  7697. </div>
  7698. <div class="pzContent" v-if="pz.type == '3'">
  7699. <img
  7700. :src="pz.content"
  7701. style="width: 90%; margin: 0 auto; display: block"
  7702. @click="previewImg(pz.content)"
  7703. />
  7704. </div>
  7705. <div class="timeAndReply">
  7706. <div class="time">
  7707. {{ pz.time }}
  7708. </div>
  7709. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  7710. </div>
  7711. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  7712. <div
  7713. v-for="(h, hIndex) in pz.hfList"
  7714. :key="hIndex"
  7715. class="hfItem"
  7716. >
  7717. <div class="whoReplyWho">
  7718. <div class="hfName">{{ h.username }}</div>
  7719. <div class="hfImg">
  7720. <img src="../../assets/icon/newIcons/right.png" alt="" />
  7721. </div>
  7722. <div class="hfName">{{ pz.username }}</div>
  7723. </div>
  7724. <div class="hfContent" v-html="h.content"></div>
  7725. <div class="hfBottom">
  7726. <div class="hfTime">{{ h.time }}</div>
  7727. <div
  7728. class="deleteHfItem"
  7729. @click="deleteReply(h.id)"
  7730. v-if="userid == h.userid"
  7731. >
  7732. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  7733. </div>
  7734. </div>
  7735. </div>
  7736. </div>
  7737. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  7738. <div class="replyInput">
  7739. <el-input v-model="reply[pzIndex]"></el-input>
  7740. </div>
  7741. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  7742. </div> -->
  7743. </div>
  7744. </div>
  7745. <div class="noPz" v-else>
  7746. <img src="../../assets/icon/noPz.png" alt="" />
  7747. </div>
  7748. <div class="addPzButton">
  7749. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7750. 添加批注
  7751. </div>
  7752. <!-- <div class="img1">
  7753. <div @click="(addPzDialog = true), (pzType = 2)">
  7754. <img src="../../assets/audio.png" /><span>音频</span>
  7755. </div>
  7756. </div> -->
  7757. </div>
  7758. </div>
  7759. </div>
  7760. <div
  7761. v-if="toolDialogVisible == true"
  7762. class="toolMask"
  7763. @click="toolDialogVisible = false"
  7764. ></div>
  7765. <div v-if="toolDialogVisible == true" class="addToolCss">
  7766. <div class="toolTop">
  7767. <div style="font-weight: bold">新增工具</div>
  7768. <div @click="toolDialogVisible = false">
  7769. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  7770. </div>
  7771. </div>
  7772. <div class="tool_box">
  7773. <div class="tool_type_box">
  7774. <div class="chooseWho">
  7775. <div
  7776. :class="toolType == 0 ? 'isChooseActive' : ''"
  7777. @click="(toolType = 0), $forceUpdate()"
  7778. >
  7779. 互动类
  7780. </div>
  7781. <div
  7782. :class="toolType == 1 ? 'isChooseActive' : ''"
  7783. @click="(toolType = 1), $forceUpdate()"
  7784. >
  7785. 思维类
  7786. </div>
  7787. <div
  7788. :class="toolType == 2 ? 'isChooseActive' : ''"
  7789. @click="(toolType = 2), $forceUpdate()"
  7790. >
  7791. 测评类
  7792. </div>
  7793. <div
  7794. :class="toolType == 3 ? 'isChooseActive' : ''"
  7795. @click="(toolType = 3), $forceUpdate()"
  7796. >
  7797. 编程类
  7798. </div>
  7799. <div
  7800. :class="toolType == 5 ? 'isChooseActive' : ''"
  7801. @click="(toolType = 5), $forceUpdate()"
  7802. >
  7803. 学科类
  7804. </div>
  7805. </div>
  7806. </div>
  7807. <div>
  7808. <div class="toolSort" v-if="toolType == 0">
  7809. <div
  7810. class="tool"
  7811. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  7812. @click="addTools2(10)"
  7813. >
  7814. <div class="whiteBIcon">
  7815. <img src="../../assets/icon/thirdToolList/time.png" alt />
  7816. <div style="margin: 5px 0">倒计时</div>
  7817. </div>
  7818. <div class="check">
  7819. <div
  7820. v-if="checktoolArray.indexOf(10) == -1"
  7821. class="noChoose"
  7822. ></div>
  7823. <div v-else class="isChoose"></div>
  7824. </div>
  7825. </div>
  7826. <div
  7827. class="tool"
  7828. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  7829. @click="addTools2(65)"
  7830. >
  7831. <div class="whiteBIcon">
  7832. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  7833. <div style="margin: 5px 0">挑人</div>
  7834. </div>
  7835. <div class="check">
  7836. <div
  7837. v-if="checktoolArray.indexOf(65) == -1"
  7838. class="noChoose"
  7839. ></div>
  7840. <div v-else class="isChoose"></div>
  7841. </div>
  7842. </div>
  7843. </div>
  7844. <div class="toolSort" v-if="toolType == 1">
  7845. <div
  7846. class="tool"
  7847. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  7848. @click="addTools2(7)"
  7849. >
  7850. <div class="whiteBIcon">
  7851. <img
  7852. src="../../assets/icon/secondToolList/mindNetwork.png"
  7853. alt
  7854. />
  7855. <div style="margin: 5px 0">思维网格</div>
  7856. </div>
  7857. <div class="check">
  7858. <div
  7859. v-if="checktoolArray.indexOf(7) == -1"
  7860. class="noChoose"
  7861. ></div>
  7862. <div v-else class="isChoose"></div>
  7863. </div>
  7864. </div>
  7865. <div
  7866. class="tool"
  7867. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  7868. @click="addTools2(1)"
  7869. >
  7870. <div class="whiteBIcon">
  7871. <img
  7872. src="../../assets/icon/secondToolList/whiteBoard.png"
  7873. alt
  7874. />
  7875. <div style="margin: 5px 0">电子白板</div>
  7876. </div>
  7877. <div class="check">
  7878. <div
  7879. v-if="checktoolArray.indexOf(1) == -1"
  7880. class="noChoose"
  7881. ></div>
  7882. <div v-else class="isChoose"></div>
  7883. </div>
  7884. </div>
  7885. <div
  7886. class="tool"
  7887. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  7888. @click="addTools2(52)"
  7889. >
  7890. <div class="whiteBIcon">
  7891. <img src="../../assets/icon/fourthToolList/text.png" alt />
  7892. <div style="margin: 5px 0">文档</div>
  7893. </div>
  7894. <div class="check">
  7895. <div
  7896. v-if="checktoolArray.indexOf(52) == -1"
  7897. class="noChoose"
  7898. ></div>
  7899. <div v-else class="isChoose"></div>
  7900. </div>
  7901. </div>
  7902. <div
  7903. class="tool"
  7904. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  7905. @click="addTools2(3)"
  7906. >
  7907. <div class="whiteBIcon">
  7908. <img
  7909. src="../../assets/icon/secondToolList/mindMapping.png"
  7910. alt
  7911. />
  7912. <div style="margin: 5px 0">思维导图</div>
  7913. </div>
  7914. <div class="check">
  7915. <div
  7916. v-if="checktoolArray.indexOf(3) == -1"
  7917. class="noChoose"
  7918. ></div>
  7919. <div v-else class="isChoose"></div>
  7920. </div>
  7921. </div>
  7922. <div
  7923. class="tool"
  7924. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  7925. @click="addTools2(48)"
  7926. >
  7927. <div class="whiteBIcon">
  7928. <img src="../../assets/icon/fourthToolList/table.png" alt />
  7929. <div style="margin: 5px 0">表格</div>
  7930. </div>
  7931. <div class="check">
  7932. <div
  7933. v-if="checktoolArray.indexOf(48) == -1"
  7934. class="noChoose"
  7935. ></div>
  7936. <div v-else class="isChoose"></div>
  7937. </div>
  7938. </div>
  7939. </div>
  7940. <div class="toolSort" v-if="toolType == 6">
  7941. <div v-show="tooC == 49">
  7942. <img
  7943. @click="addTools(tooC, toolIndex, taskCount)"
  7944. src="../../assets/icon/fourthToolList/group.png"
  7945. alt
  7946. />
  7947. <div style="margin: 5px 0">学生分组</div>
  7948. </div>
  7949. </div>
  7950. <div class="toolSort" v-if="toolType == 2">
  7951. <div
  7952. class="tool"
  7953. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  7954. @click="addTools2(16)"
  7955. >
  7956. <div class="whiteBIcon">
  7957. <img src="../../assets/icon/thirdToolList/work.png" alt />
  7958. <div style="margin: 5px 0">作业提交</div>
  7959. </div>
  7960. <div class="check">
  7961. <div
  7962. v-if="checktoolArray.indexOf(16) == -1"
  7963. class="noChoose"
  7964. ></div>
  7965. <div v-else class="isChoose"></div>
  7966. </div>
  7967. </div>
  7968. <div
  7969. class="tool"
  7970. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  7971. @click="addTools2(50)"
  7972. >
  7973. <div class="whiteBIcon">
  7974. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  7975. <div style="margin: 5px 0">批量上传</div>
  7976. </div>
  7977. <div class="check">
  7978. <div
  7979. v-if="checktoolArray.indexOf(50) == -1"
  7980. class="noChoose"
  7981. ></div>
  7982. <div v-else class="isChoose"></div>
  7983. </div>
  7984. </div>
  7985. </div>
  7986. <div class="toolSort" v-if="toolType == 3">
  7987. <div
  7988. class="tool"
  7989. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  7990. @click="addTools2(18)"
  7991. >
  7992. <div class="whiteBIcon">
  7993. <img
  7994. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7995. alt
  7996. />
  7997. <div style="margin: 5px 0">训练平台</div>
  7998. </div>
  7999. <div class="check">
  8000. <div
  8001. v-if="checktoolArray.indexOf(18) == -1"
  8002. class="noChoose"
  8003. ></div>
  8004. <div v-else class="isChoose"></div>
  8005. </div>
  8006. </div>
  8007. <div
  8008. class="tool"
  8009. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8010. @click="addTools2(21)"
  8011. >
  8012. <div class="whiteBIcon">
  8013. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8014. <div style="margin: 5px 0">AIoT Blockly</div>
  8015. </div>
  8016. <div class="check">
  8017. <div
  8018. v-if="checktoolArray.indexOf(21) == -1"
  8019. class="noChoose"
  8020. ></div>
  8021. <div v-else class="isChoose"></div>
  8022. </div>
  8023. </div>
  8024. <div
  8025. class="tool"
  8026. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8027. @click="addTools2(23)"
  8028. >
  8029. <div class="whiteBIcon">
  8030. <img
  8031. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8032. alt
  8033. />
  8034. <div style="margin: 5px 0">AI Python</div>
  8035. </div>
  8036. <div class="check">
  8037. <div
  8038. v-if="checktoolArray.indexOf(23) == -1"
  8039. class="noChoose"
  8040. ></div>
  8041. <div v-else class="isChoose"></div>
  8042. </div>
  8043. </div>
  8044. <div
  8045. class="tool"
  8046. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8047. @click="addTools2(24)"
  8048. >
  8049. <div class="whiteBIcon">
  8050. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8051. <div style="margin: 5px 0">AI Blockly</div>
  8052. </div>
  8053. <div class="check">
  8054. <div
  8055. v-if="checktoolArray.indexOf(24) == -1"
  8056. class="noChoose"
  8057. ></div>
  8058. <div v-else class="isChoose"></div>
  8059. </div>
  8060. </div>
  8061. <div
  8062. class="tool"
  8063. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8064. @click="addTools2(32)"
  8065. >
  8066. <div class="whiteBIcon">
  8067. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8068. <div style="margin: 5px 0">源码编辑</div>
  8069. </div>
  8070. <div class="check">
  8071. <div
  8072. v-if="checktoolArray.indexOf(32) == -1"
  8073. class="noChoose"
  8074. ></div>
  8075. <div v-else class="isChoose"></div>
  8076. </div>
  8077. </div>
  8078. <div
  8079. class="tool"
  8080. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8081. @click="addTools2(57)"
  8082. >
  8083. <div class="whiteBIcon">
  8084. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8085. <div style="margin: 5px 0">CocoPi</div>
  8086. </div>
  8087. <div class="check">
  8088. <div
  8089. v-if="checktoolArray.indexOf(57) == -1"
  8090. class="noChoose"
  8091. ></div>
  8092. <div v-else class="isChoose"></div>
  8093. </div>
  8094. </div>
  8095. <div
  8096. class="tool"
  8097. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8098. @click="addTools2(63)"
  8099. >
  8100. <div class="whiteBIcon">
  8101. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8102. <div style="margin: 5px 0">海龟编程</div>
  8103. </div>
  8104. <div class="check">
  8105. <div
  8106. v-if="checktoolArray.indexOf(63) == -1"
  8107. class="noChoose"
  8108. ></div>
  8109. <div v-else class="isChoose"></div>
  8110. </div>
  8111. </div>
  8112. </div>
  8113. <div class="toolSort" v-if="toolType == 7">
  8114. <div
  8115. class="tool"
  8116. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8117. @click="addTools2(40)"
  8118. >
  8119. <div class="whiteBIcon">
  8120. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8121. <div style="margin: 5px 0">个人评价</div>
  8122. </div>
  8123. <div class="check">
  8124. <div
  8125. v-if="checktoolArray.indexOf(40) == -1"
  8126. class="noChoose"
  8127. ></div>
  8128. <div v-else class="isChoose"></div>
  8129. </div>
  8130. </div>
  8131. </div>
  8132. <div class="toolSort" v-if="toolType == 5">
  8133. <div
  8134. class="tool"
  8135. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8136. @click="addTools2(28)"
  8137. >
  8138. <div class="whiteBIcon">
  8139. <img
  8140. src="../../assets/icon/secondToolList/translation.png"
  8141. alt
  8142. />
  8143. <div style="margin: 5px 0">翻译</div>
  8144. </div>
  8145. <div class="check">
  8146. <div
  8147. v-if="checktoolArray.indexOf(28) == -1"
  8148. class="noChoose"
  8149. ></div>
  8150. <div v-else class="isChoose"></div>
  8151. </div>
  8152. </div>
  8153. <div
  8154. class="tool"
  8155. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8156. @click="addTools2(31)"
  8157. >
  8158. <div class="whiteBIcon">
  8159. <img
  8160. src="../../assets/icon/secondToolList/networkPanel.png"
  8161. alt
  8162. />
  8163. <div style="margin: 5px 0">数字画板</div>
  8164. </div>
  8165. <div class="check">
  8166. <div
  8167. v-if="checktoolArray.indexOf(31) == -1"
  8168. class="noChoose"
  8169. ></div>
  8170. <div v-else class="isChoose"></div>
  8171. </div>
  8172. </div>
  8173. <div
  8174. class="tool"
  8175. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8176. @click="addTools2(39)"
  8177. >
  8178. <div class="whiteBIcon">
  8179. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8180. <div style="margin: 5px 0">GeoGebra</div>
  8181. </div>
  8182. <div class="check">
  8183. <div
  8184. v-if="checktoolArray.indexOf(39) == -1"
  8185. class="noChoose"
  8186. ></div>
  8187. <div v-else class="isChoose"></div>
  8188. </div>
  8189. </div>
  8190. <div
  8191. class="tool"
  8192. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8193. @click="addTools2(66)"
  8194. >
  8195. <div class="whiteBIcon">
  8196. <img
  8197. src="../../assets/icon/secondToolList/formulaEdi.png"
  8198. alt
  8199. />
  8200. <div style="margin: 5px 0">公式编辑</div>
  8201. </div>
  8202. <div class="check">
  8203. <div
  8204. v-if="checktoolArray.indexOf(66) == -1"
  8205. class="noChoose"
  8206. ></div>
  8207. <div v-else class="isChoose"></div>
  8208. </div>
  8209. </div>
  8210. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8211. <div class="whiteBIcon" @click="addTools2(67)">
  8212. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8213. <div style="margin: 5px 0">分子结构</div>
  8214. </div>
  8215. <div class="check" @click="addTools2(67)">
  8216. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8217. <div v-else class="isChoose"></div>
  8218. </div>
  8219. </div> -->
  8220. <div
  8221. class="tool"
  8222. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8223. @click="addTools2(68)"
  8224. >
  8225. <div class="whiteBIcon">
  8226. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8227. <div style="margin: 5px 0">时间轴</div>
  8228. </div>
  8229. <div class="check">
  8230. <div
  8231. v-if="checktoolArray.indexOf(68) == -1"
  8232. class="noChoose"
  8233. ></div>
  8234. <div v-else class="isChoose"></div>
  8235. </div>
  8236. </div>
  8237. <div
  8238. class="tool"
  8239. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8240. @click="addTools2(69)"
  8241. >
  8242. <div class="whiteBIcon">
  8243. <img src="../../assets/icon/secondToolList/english.png" alt />
  8244. <div style="margin: 5px 0">英语写作</div>
  8245. </div>
  8246. <div class="check">
  8247. <div
  8248. v-if="checktoolArray.indexOf(69) == -1"
  8249. class="noChoose"
  8250. ></div>
  8251. <div v-else class="isChoose"></div>
  8252. </div>
  8253. </div>
  8254. </div>
  8255. <div class="toolSort" v-if="toolType == 4">
  8256. <div
  8257. class="tool"
  8258. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8259. @click="addTools2(26)"
  8260. >
  8261. <div class="whiteBIcon">
  8262. <img
  8263. src="../../assets/icon/thirdToolList/courseDesign.png"
  8264. alt
  8265. />
  8266. <div style="margin: 5px 0">课程设计</div>
  8267. </div>
  8268. <div class="check">
  8269. <div
  8270. v-if="checktoolArray.indexOf(26) == -1"
  8271. class="noChoose"
  8272. ></div>
  8273. <div v-else class="isChoose"></div>
  8274. </div>
  8275. </div>
  8276. <div
  8277. class="tool"
  8278. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8279. @click="addTools2(25)"
  8280. >
  8281. <div class="whiteBIcon">
  8282. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8283. <div style="margin: 5px 0">目标管理</div>
  8284. </div>
  8285. <div class="check">
  8286. <div
  8287. v-if="checktoolArray.indexOf(25) == -1"
  8288. class="noChoose"
  8289. ></div>
  8290. <div v-else class="isChoose"></div>
  8291. </div>
  8292. </div>
  8293. </div>
  8294. </div>
  8295. </div>
  8296. <span
  8297. slot="footer"
  8298. class="dialog-footer"
  8299. style="display: block; text-align: center; padding: 0 0 10px 0"
  8300. >
  8301. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8302. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8303. </span>
  8304. </div>
  8305. <div
  8306. v-if="replyDialogVisible == true"
  8307. class="addDialogCss"
  8308. v-el-drag-dialog
  8309. >
  8310. <div class="pzTop">
  8311. <div class="teacherPz">
  8312. <div class="teacherPzImg">
  8313. <img src="../../assets/icon/teacherPz.png" alt="" />
  8314. </div>
  8315. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8316. </div>
  8317. <div @click="replyDialogVisible = false">
  8318. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8319. </div>
  8320. </div>
  8321. <div class="addPzBox">
  8322. <!-- <div class="addPzCheck">
  8323. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8324. >文本</span
  8325. >
  8326. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8327. >音频</span
  8328. >
  8329. </div> -->
  8330. <div style="height: calc(100% - 50px)">
  8331. <editor-bar
  8332. class="binfo_input pzConText"
  8333. style="width: 100% !important; margin: 0 auto"
  8334. placeholder="请输入回复描述"
  8335. v-model="reply"
  8336. @change="change"
  8337. ></editor-bar>
  8338. </div>
  8339. <div class="addTextCss" @click="addHf">确定</div>
  8340. </div>
  8341. </div>
  8342. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8343. <div class="pzTop">
  8344. <div class="teacherPz">
  8345. <div class="teacherPzImg">
  8346. <img src="../../assets/icon/teacherPz.png" alt="" />
  8347. </div>
  8348. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8349. </div>
  8350. <div @click="addPzDialog = false">
  8351. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8352. </div>
  8353. </div>
  8354. <div class="addPzBox">
  8355. <div class="addPzCheck">
  8356. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8357. >文本</span
  8358. >
  8359. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8360. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8361. >音频</span
  8362. >
  8363. </div>
  8364. <div style="height: calc(100% - 95px)">
  8365. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8366. v-if="pzType == 1"></textarea> -->
  8367. <editor-bar
  8368. class="binfo_input pzConText"
  8369. style="width: 100% !important"
  8370. placeholder="请输入任务描述"
  8371. v-model="pzConText"
  8372. @change="change"
  8373. v-if="pzType == 1"
  8374. ></editor-bar>
  8375. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8376. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8377. <div @click="addImg($event)">
  8378. <el-button type="primary">上传图片</el-button>
  8379. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8380. @change="beforeUpload1($event, 4)" />
  8381. </div>
  8382. </div> -->
  8383. </div>
  8384. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8385. 确定
  8386. </div>
  8387. </div>
  8388. </div>
  8389. <div v-if="proVisible" class="mask">
  8390. <div class="progressBox">
  8391. <!-- <div id="closePro" class="closeCss">
  8392. <img src="../../assets/icon/close.png" alt />
  8393. </div> -->
  8394. <div class="lbox">
  8395. <img src="../../assets/loading.gif" />上传中,请稍后
  8396. </div>
  8397. <div style="margin-bottom: 10px">
  8398. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8399. </div>
  8400. <el-progress
  8401. :text-inside="true"
  8402. :stroke-width="20"
  8403. :percentage="progress"
  8404. style="width: 80%"
  8405. ></el-progress>
  8406. </div>
  8407. </div>
  8408. <div v-if="proVisible2" class="mask">
  8409. <div class="progressBox">
  8410. <div class="lbox">
  8411. <img src="../../assets/loading.gif" />上传中,请稍后
  8412. </div>
  8413. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8414. </div>
  8415. </div>
  8416. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8417. <img width="100%" :src="dialogImageUrl" alt />
  8418. </el-dialog>
  8419. <el-dialog
  8420. :title="noteName != '' ? noteName : '查看问卷'"
  8421. :visible.sync="dialogVisible5"
  8422. :append-to-body="true"
  8423. width="1000px"
  8424. :before-close="handleClose"
  8425. class="dialog_diy dialog_diy3"
  8426. >
  8427. <div>
  8428. <div
  8429. class="a_add_title"
  8430. style="
  8431. display: flex;
  8432. flex-direction: row;
  8433. align-items: center;
  8434. justify-content: center;
  8435. "
  8436. >
  8437. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8438. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8439. </div>
  8440. <div class="a_addBox">
  8441. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8442. 题目内容
  8443. </div>
  8444. <div
  8445. class="a_add_box"
  8446. v-for="(item1, index1) in askJson.askCount"
  8447. :key="index1"
  8448. >
  8449. <div class="a_add_head">
  8450. <div style="display: flex">
  8451. <span class="askIndex"> {{ index1 + 1 }}</span>
  8452. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8453. </div>
  8454. <img
  8455. v-if="askJson.askJson[index1].img"
  8456. :src="askJson.askJson[index1].img"
  8457. style="height: 300px; margin-top: 10px; max-width: 100%"
  8458. />
  8459. </div>
  8460. <div class="a_add_body">
  8461. <div class="a_add_input">
  8462. <el-radio-group
  8463. v-model="radio[index1]"
  8464. v-if="
  8465. askJson.askJson[index1].type == '1' ||
  8466. !askJson.askJson[index1].type
  8467. "
  8468. >
  8469. <el-radio
  8470. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8471. .checkList"
  8472. :key="checkIndex"
  8473. :label="checkIndex"
  8474. :disabled="isAnswer"
  8475. class="redioStyle"
  8476. ><span v-html="item2"></span
  8477. ></el-radio>
  8478. </el-radio-group>
  8479. <el-checkbox-group
  8480. v-model="radio[index1]"
  8481. v-if="askJson.askJson[index1].type == '2'"
  8482. >
  8483. <el-checkbox
  8484. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8485. .checkList"
  8486. :key="checkIndex1"
  8487. :label="checkIndex1"
  8488. :disabled="isAnswer"
  8489. class="redioStyle"
  8490. ><span v-html="item2"></span>
  8491. </el-checkbox>
  8492. </el-checkbox-group>
  8493. </div>
  8494. </div>
  8495. </div>
  8496. </div>
  8497. </div>
  8498. <span slot="footer" class="dialog-footer">
  8499. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8500. >取 消</el-button
  8501. >
  8502. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8503. >确 定</el-button
  8504. >
  8505. </span>
  8506. </el-dialog>
  8507. <el-dialog
  8508. :title="noteName != '' ? noteName : '查看问卷'"
  8509. :visible.sync="dialogVisible5Teacher"
  8510. :append-to-body="true"
  8511. width="1000px"
  8512. :before-close="handleClose"
  8513. class="dialog_diy dialog_diy3"
  8514. >
  8515. <div>
  8516. <div class="w_name">
  8517. 学生姓名:<span>{{ sStudent.student }}</span>
  8518. </div>
  8519. <div
  8520. class="a_add_title"
  8521. style="
  8522. display: flex;
  8523. flex-direction: row;
  8524. align-items: center;
  8525. justify-content: center;
  8526. "
  8527. >
  8528. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8529. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8530. </div>
  8531. <div class="a_addBox">
  8532. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8533. 题目内容
  8534. </div>
  8535. <div
  8536. class="a_add_box"
  8537. v-for="(item1, index1) in askJson.askCount"
  8538. :key="index1"
  8539. >
  8540. <div class="a_add_head">
  8541. <div style="display: flex">
  8542. <span class="askIndex">{{ index1 + 1 }}</span>
  8543. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8544. </div>
  8545. <img
  8546. v-if="askJson.askJson[index1].img"
  8547. :src="askJson.askJson[index1].img"
  8548. style="height: 300px; margin-top: 10px; max-width: 100%"
  8549. />
  8550. </div>
  8551. <div class="a_add_body">
  8552. <div class="a_add_input">
  8553. <el-radio-group
  8554. v-model="radio[index1]"
  8555. v-if="
  8556. askJson.askJson[index1].type == '1' ||
  8557. !askJson.askJson[index1].type
  8558. "
  8559. >
  8560. <el-radio
  8561. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8562. .checkList"
  8563. :key="checkIndex"
  8564. :label="checkIndex"
  8565. :disabled="isAnswer"
  8566. class="redioStyle"
  8567. ><span v-html="item2"></span
  8568. ></el-radio>
  8569. </el-radio-group>
  8570. <el-checkbox-group
  8571. v-model="radio[index1]"
  8572. v-if="askJson.askJson[index1].type == '2'"
  8573. >
  8574. <el-checkbox
  8575. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8576. .checkList"
  8577. :key="checkIndex1"
  8578. :label="checkIndex1"
  8579. :disabled="isAnswer"
  8580. class="redioStyle"
  8581. ><span v-html="item2"></span>
  8582. </el-checkbox>
  8583. </el-checkbox-group>
  8584. </div>
  8585. </div>
  8586. </div>
  8587. </div>
  8588. </div>
  8589. <span slot="footer" class="dialog-footer">
  8590. <el-button
  8591. @click="dialogVisible5Teacher = false"
  8592. v-show="noteName == ''"
  8593. >取 消</el-button
  8594. >
  8595. <el-button
  8596. type="primary"
  8597. @click="addStudentAskTeacher"
  8598. v-show="noteName == ''"
  8599. >确 定</el-button
  8600. >
  8601. </span>
  8602. </el-dialog>
  8603. <el-dialog
  8604. :title="noteName != '' ? noteName : '查看选择题'"
  8605. :visible.sync="dialogVisibleChoice"
  8606. :append-to-body="true"
  8607. width="1000px"
  8608. :before-close="handleClose"
  8609. class="dialog_diy dialog_diy3"
  8610. >
  8611. <div>
  8612. <!-- <div class="a_add_title" style="
  8613. display: flex;
  8614. flex-direction: row;
  8615. align-items: center;
  8616. justify-content: center;
  8617. ">
  8618. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8619. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  8620. </div> -->
  8621. <div class="a_addBox">
  8622. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8623. 题目内容
  8624. </div>
  8625. <div
  8626. class="a_add_box"
  8627. v-for="(item1, index1) in testJson.testCount"
  8628. :key="index1"
  8629. >
  8630. <div class="a_add_head">
  8631. <div style="display: flex">
  8632. <span class="askIndex">{{ index1 + 1 }}</span>
  8633. <div
  8634. v-if="testJson.testJson[index1].type == '1'"
  8635. style="margin-right: 5px; min-width: 70px"
  8636. >
  8637. (单选题)
  8638. </div>
  8639. <div
  8640. v-if="testJson.testJson[index1].type == '2'"
  8641. style="margin-right: 5px; min-width: 70px"
  8642. >
  8643. (多选题)
  8644. </div>
  8645. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8646. </div>
  8647. <img
  8648. v-if="testJson.testJson[index1].img"
  8649. :src="testJson.testJson[index1].img"
  8650. style="height: 300px; margin-top: 10px; max-width: 100%"
  8651. />
  8652. </div>
  8653. <div
  8654. class="timuImgBox"
  8655. v-if="
  8656. testJson.testJson[index1].timuList &&
  8657. testJson.testJson[index1].timuList.length
  8658. "
  8659. >
  8660. <div
  8661. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8662. :key="tIndex"
  8663. class="timuImg"
  8664. @click.stop="previewImg(timg.src)"
  8665. >
  8666. <img :src="timg.src" alt="" />
  8667. </div>
  8668. </div>
  8669. <div class="a_add_body">
  8670. <div class="a_add_input">
  8671. <el-radio-group
  8672. v-model="radio[index1]"
  8673. v-if="testJson.testJson[index1].type == '1'"
  8674. >
  8675. <div class="radioBox">
  8676. <el-radio
  8677. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8678. .checkList"
  8679. :key="checkIndex"
  8680. :label="checkIndex"
  8681. :disabled="isAnswer"
  8682. class="redioStyle"
  8683. >
  8684. <div
  8685. style="margin-right: 10px"
  8686. v-if="item2 && item2.imgType && item2.imgType == 1"
  8687. >
  8688. <div class="inImg" @click.stop="previewImg(item2.src)">
  8689. <img :src="item2.src" alt="" />
  8690. </div>
  8691. </div>
  8692. <span v-else v-html="item2"></span>
  8693. </el-radio>
  8694. </div>
  8695. </el-radio-group>
  8696. <el-checkbox-group
  8697. v-model="radio[index1]"
  8698. v-if="testJson.testJson[index1].type == '2'"
  8699. >
  8700. <div class="radioBox">
  8701. <el-checkbox
  8702. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8703. .checkList"
  8704. :key="checkIndex"
  8705. :label="checkIndex"
  8706. :disabled="isAnswer"
  8707. class="redioStyle"
  8708. >
  8709. <div
  8710. style="margin-right: 10px"
  8711. v-if="item2 && item2.imgType && item2.imgType == 1"
  8712. >
  8713. <div class="inImg" @click.stop="previewImg(item2.src)">
  8714. <img :src="item2.src" alt="" />
  8715. </div>
  8716. </div>
  8717. <span v-else v-html="item2"></span>
  8718. </el-checkbox>
  8719. </div>
  8720. </el-checkbox-group>
  8721. </div>
  8722. </div>
  8723. </div>
  8724. </div>
  8725. </div>
  8726. <span slot="footer" class="dialog-footer">
  8727. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  8728. >取 消</el-button
  8729. >
  8730. <el-button
  8731. type="primary"
  8732. @click="addStudentTest"
  8733. v-show="noteName == ''"
  8734. >确 定</el-button
  8735. >
  8736. </span>
  8737. </el-dialog>
  8738. <el-dialog
  8739. :title="noteName != '' ? noteName : '查看选择题'"
  8740. :visible.sync="dialogVisibleChoiceTeacher"
  8741. :append-to-body="true"
  8742. width="1000px"
  8743. :before-close="handleClose"
  8744. class="dialog_diy dialog_diy3"
  8745. >
  8746. <div>
  8747. <div class="w_name">
  8748. 学生姓名:<span>{{ sStudent.student }}</span>
  8749. </div>
  8750. <div class="a_addBox">
  8751. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8752. 题目内容
  8753. </div>
  8754. <div
  8755. class="a_add_box"
  8756. v-for="(item1, index1) in testJson.testCount"
  8757. :key="index1"
  8758. >
  8759. <div class="a_add_head">
  8760. <div style="display: flex">
  8761. <span class="askIndex">{{ index1 + 1 }}</span>
  8762. <div
  8763. v-if="testJson.testJson[index1].type == '1'"
  8764. style="margin-right: 5px; min-width: 70px"
  8765. >
  8766. (单选题)
  8767. </div>
  8768. <div
  8769. v-if="testJson.testJson[index1].type == '2'"
  8770. style="margin-right: 5px; min-width: 70px"
  8771. >
  8772. (多选题)
  8773. </div>
  8774. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8775. </div>
  8776. <img
  8777. v-if="testJson.testJson[index1].img"
  8778. :src="testJson.testJson[index1].img"
  8779. style="height: 300px; margin-top: 10px; max-width: 100%"
  8780. />
  8781. </div>
  8782. <div
  8783. class="timuImgBox"
  8784. v-if="
  8785. testJson.testJson[index1].timuList &&
  8786. testJson.testJson[index1].timuList.length
  8787. "
  8788. >
  8789. <div
  8790. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8791. :key="tIndex"
  8792. class="timuImg"
  8793. @click.stop="previewImg(timg.src)"
  8794. >
  8795. <img :src="timg.src" alt="" />
  8796. </div>
  8797. </div>
  8798. <div class="a_add_body">
  8799. <div class="a_add_input">
  8800. <el-radio-group
  8801. v-model="radio[index1]"
  8802. v-if="testJson.testJson[index1].type == '1'"
  8803. >
  8804. <div class="radioBox">
  8805. <el-radio
  8806. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8807. .checkList"
  8808. :key="checkIndex"
  8809. :label="checkIndex"
  8810. :disabled="isAnswer"
  8811. class="redioStyle"
  8812. >
  8813. <div
  8814. style="margin-right: 10px"
  8815. v-if="item2 && item2.imgType && item2.imgType == 1"
  8816. >
  8817. <div class="inImg" @click.stop="previewImg(item2.src)">
  8818. <img :src="item2.src" alt="" />
  8819. </div>
  8820. </div>
  8821. <span v-else v-html="item2"></span>
  8822. </el-radio>
  8823. </div>
  8824. </el-radio-group>
  8825. <el-checkbox-group
  8826. v-model="radio[index1]"
  8827. v-if="testJson.testJson[index1].type == '2'"
  8828. >
  8829. <div class="radioBox">
  8830. <el-checkbox
  8831. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8832. .checkList"
  8833. :key="checkIndex"
  8834. :label="checkIndex"
  8835. :disabled="isAnswer"
  8836. class="redioStyle"
  8837. >
  8838. <div
  8839. style="margin-right: 10px"
  8840. v-if="item2 && item2.imgType && item2.imgType == 1"
  8841. >
  8842. <div class="inImg" @click.stop="previewImg(item2.src)">
  8843. <img :src="item2.src" alt="" />
  8844. </div>
  8845. </div>
  8846. <span v-else v-html="item2"></span>
  8847. </el-checkbox>
  8848. </div>
  8849. </el-checkbox-group>
  8850. </div>
  8851. </div>
  8852. </div>
  8853. </div>
  8854. </div>
  8855. <span slot="footer" class="dialog-footer">
  8856. <el-button
  8857. @click="dialogVisibleChoiceTeacher = false"
  8858. v-show="noteName == ''"
  8859. >取 消</el-button
  8860. >
  8861. <el-button
  8862. type="primary"
  8863. @click="addStudentTestTeacher"
  8864. v-show="noteName == ''"
  8865. >确 定</el-button
  8866. >
  8867. </span>
  8868. </el-dialog>
  8869. <el-dialog
  8870. title="查看富文本"
  8871. :visible.sync="dialogVisible1"
  8872. :append-to-body="true"
  8873. width="500px"
  8874. :before-close="handleClose"
  8875. class="dialog_diy textCss"
  8876. >
  8877. <el-form style="font-size: 20px">
  8878. <el-form-item label="文本标题" class="textTitle">
  8879. <div style="font-size: 20px">{{ text.name }}</div>
  8880. </el-form-item>
  8881. <div>富文本内容</div>
  8882. <div
  8883. v-html="text.url"
  8884. style="font-size: 18px; padding: 40px 0 0 0"
  8885. ></div>
  8886. </el-form>
  8887. <span slot="footer" class="dialog-footer">
  8888. <el-button type="primary" @click="dialogVisible1 = false"
  8889. >确定</el-button
  8890. >
  8891. </span>
  8892. </el-dialog>
  8893. <el-dialog
  8894. title="文件预览"
  8895. :visible.sync="dialogVisible3"
  8896. width="50%"
  8897. :before-close="handleClose"
  8898. class="dialog_diy"
  8899. :class="{ fullStyle: full }"
  8900. >
  8901. <div slot="title" class="header-title">
  8902. <div style="color: #fff">文件预览</div>
  8903. <div style="position: absolute; top: 19px; right: 50px">
  8904. <img
  8905. src="../../assets/full.png"
  8906. style="height: 16px; cursor: pointer"
  8907. alt=""
  8908. @click="fullTools"
  8909. />
  8910. </div>
  8911. </div>
  8912. <pdf
  8913. v-if="showPDF"
  8914. :pdfUrl="pptImgUrl"
  8915. style="width: 100%; height: 520px; overflow: auto"
  8916. :class="{ fullStyle: full }"
  8917. ></pdf>
  8918. <iframe
  8919. v-else
  8920. :src="pptImgUrl"
  8921. frameborder="0"
  8922. width="100%"
  8923. height="600"
  8924. :class="{ fullStyle: full }"
  8925. ></iframe>
  8926. </el-dialog>
  8927. <el-dialog
  8928. title="文件预览"
  8929. :visible.sync="dialogVisible6"
  8930. width="50%"
  8931. :before-close="handleClose"
  8932. class="dialog_diy"
  8933. >
  8934. <iframe
  8935. :src="pptImgUrl1"
  8936. frameborder="0"
  8937. width="100%"
  8938. height="600"
  8939. ></iframe>
  8940. </el-dialog>
  8941. <el-dialog
  8942. title="提示"
  8943. :visible.sync="dialogVisible4"
  8944. :append-to-body="true"
  8945. width="800px"
  8946. :before-close="handleClose"
  8947. class="dialog_diy notice"
  8948. >
  8949. <div>此功能暂未开放!</div>
  8950. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  8951. </el-dialog>
  8952. <el-dialog
  8953. title="问答"
  8954. :visible.sync="answerDialogVisible"
  8955. :append-to-body="true"
  8956. width="800px"
  8957. :before-close="handleClose"
  8958. class="dialog_diy"
  8959. >
  8960. <div>
  8961. <div
  8962. style="
  8963. display: flex;
  8964. flex-wrap: nowrap;
  8965. flex-direction: column;
  8966. position: relative;
  8967. "
  8968. >
  8969. <div class="queTop" style="padding: 20px 0 20px 0">
  8970. <div class="question">
  8971. <img src="../../assets/icon/question.png" alt />
  8972. </div>
  8973. <div class="queTitle">
  8974. <div style="width: 90px; min-width: 90px">提问:</div>
  8975. <div>{{ answerQ }}</div>
  8976. </div>
  8977. </div>
  8978. <div class="ediBottom">
  8979. <textarea
  8980. rows="6"
  8981. class="binfo_input"
  8982. cols
  8983. style="width: 95%; height: 120px"
  8984. v-model="questionAnswer"
  8985. ></textarea>
  8986. </div>
  8987. </div>
  8988. </div>
  8989. <div slot="footer">
  8990. <el-button @click="answerDialogVisible = false">取 消</el-button>
  8991. <el-button type="primary" @click="addQuestion">提 交</el-button>
  8992. </div>
  8993. </el-dialog>
  8994. <el-dialog
  8995. title="问答"
  8996. :visible.sync="answerDialogVisibleTeacher"
  8997. :append-to-body="true"
  8998. width="800px"
  8999. :before-close="handleClose"
  9000. class="dialog_diy"
  9001. >
  9002. <div>
  9003. <div class="w_name">
  9004. 学生姓名:<span>{{ sStudent.student }}</span>
  9005. </div>
  9006. <div
  9007. style="
  9008. display: flex;
  9009. flex-wrap: nowrap;
  9010. flex-direction: column;
  9011. position: relative;
  9012. "
  9013. >
  9014. <div class="queTop" style="padding: 20px 0 20px 0">
  9015. <div class="question">
  9016. <img src="../../assets/icon/question.png" alt />
  9017. </div>
  9018. <div class="queTitle">
  9019. <div style="width: 90px; min-width: 90px">提问:</div>
  9020. <div>{{ answerQ }}</div>
  9021. </div>
  9022. </div>
  9023. <div class="ediBottom">
  9024. <textarea
  9025. rows="6"
  9026. class="binfo_input"
  9027. cols
  9028. style="width: 95%; height: 120px"
  9029. v-model="questionAnswer"
  9030. ></textarea>
  9031. </div>
  9032. </div>
  9033. </div>
  9034. <div slot="footer">
  9035. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9036. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9037. </div>
  9038. </el-dialog>
  9039. <el-dialog
  9040. title="倒计时"
  9041. :visible.sync="timeDialogVisible"
  9042. :append-to-body="true"
  9043. width="800px"
  9044. :before-close="handleClose"
  9045. class="dialog_diy"
  9046. >
  9047. <div>
  9048. <div style="margin-bottom: 20px; color: #999">
  9049. 提示:点击“+”或“-”修改倒计时时长。
  9050. </div>
  9051. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9052. </div>
  9053. <div slot="footer">
  9054. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9055. </div>
  9056. </el-dialog>
  9057. <el-dialog
  9058. title="权限设置"
  9059. :visible.sync="juriVisible"
  9060. :append-to-body="true"
  9061. width="400px"
  9062. :before-close="handleClose"
  9063. class="dialog_diy"
  9064. >
  9065. <div>
  9066. <div class="open_box">
  9067. <div class="switch_box">
  9068. <span>允许学生查看所有作业</span>
  9069. <el-switch
  9070. v-model="sIsOpen"
  9071. active-text=""
  9072. class="switchCss"
  9073. @change="updateSLook"
  9074. ></el-switch>
  9075. </div>
  9076. <div
  9077. class="switch_box"
  9078. v-if="
  9079. courseDetail.userid == userid ||
  9080. (courseDetail.course_teacher &&
  9081. courseDetail.course_teacher.indexOf(userid) != -1)
  9082. "
  9083. >
  9084. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9085. <span>禁止学生查看所有阶段</span>
  9086. <el-switch
  9087. v-model="IsLookOpen"
  9088. active-text=""
  9089. class="switchCss"
  9090. @change="updateLookOpen"
  9091. ></el-switch>
  9092. </div>
  9093. <div class="switch_box" v-if="courseDetail.userid == userid">
  9094. <span>开启跟随模式</span>
  9095. <el-switch
  9096. v-model="IsFollow"
  9097. active-text=""
  9098. class="switchCss"
  9099. @change="updateFollow"
  9100. ></el-switch>
  9101. </div>
  9102. </div>
  9103. </div>
  9104. <div slot="footer">
  9105. <el-button
  9106. style="background: #409efe; color: #fff"
  9107. @click="juriVisible = false"
  9108. >关 闭</el-button
  9109. >
  9110. </div>
  9111. </el-dialog>
  9112. <el-dialog
  9113. title="查看视频"
  9114. :visible.sync="videoVisible"
  9115. :append-to-body="true"
  9116. width="1000px"
  9117. :before-close="handleClose"
  9118. class="dialog_diy1"
  9119. >
  9120. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9121. <video-player
  9122. class="video-player vjs-custom-skin"
  9123. :playsinline="true"
  9124. :options="videoDetail"
  9125. @play="onPlayerPlay($event)"
  9126. style="width: 100%; height: 100%"
  9127. ></video-player>
  9128. </div>
  9129. <div slot="footer">
  9130. <el-button
  9131. style="background: #409efe; color: #fff"
  9132. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9133. >
  9134. 关 闭</el-button
  9135. >
  9136. </div>
  9137. </el-dialog>
  9138. <el-dialog
  9139. title="查看详情"
  9140. :visible.sync="commentDialogVisible"
  9141. :append-to-body="true"
  9142. width="800px"
  9143. :before-close="handleClose"
  9144. class="dialog_diy"
  9145. >
  9146. <div class="commentTop">
  9147. <div class="studentDetail">
  9148. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9149. <div class="nameAndTime">
  9150. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9151. <div>{{ commentDetail.time }}</div>
  9152. </div>
  9153. <div
  9154. class="returnBtn"
  9155. style="margin-left: auto; width: 80px"
  9156. v-if="
  9157. commentDetail.works &&
  9158. commentDetail.type == 0 &&
  9159. (tType == 1 || tType == 4)
  9160. "
  9161. @click="
  9162. showPicturePaint(
  9163. commentDetail.img ? commentDetail.img : commentDetail.works
  9164. )
  9165. "
  9166. >
  9167. 教师批注
  9168. </div>
  9169. </div>
  9170. <div
  9171. class="worksAnswer"
  9172. v-if="commentDetail.works && commentDetail.type == 2"
  9173. >
  9174. {{ JSON.parse(commentDetail.works)[0].answer }}
  9175. </div>
  9176. <div
  9177. class="worksAnswer"
  9178. v-if="commentDetail.works && commentDetail.type == 1"
  9179. >
  9180. <img
  9181. src="../../assets/teacherWork.png"
  9182. v-if="commentDetail.ateacher"
  9183. class="w_teachert"
  9184. />
  9185. <pdf
  9186. v-if="showPDF"
  9187. :pdfUrl="pptImgUrl"
  9188. style="width: 100%; height: 520px; overflow: auto"
  9189. :class="{ fullStyle: full }"
  9190. ></pdf>
  9191. <iframe
  9192. v-else
  9193. :src="pptImgUrl"
  9194. frameborder="0"
  9195. width="100%"
  9196. height="600"
  9197. :class="{ fullStyle: full }"
  9198. ></iframe>
  9199. </div>
  9200. <div
  9201. class="worksAnswer"
  9202. v-if="commentDetail.works && commentDetail.type == 0"
  9203. >
  9204. <img
  9205. src="../../assets/teacherWork.png"
  9206. v-if="commentDetail.ateacher"
  9207. class="w_teachert"
  9208. style="right: 105px"
  9209. />
  9210. <img
  9211. :src="commentDetail.works"
  9212. alt=""
  9213. @click="previewImg(commentDetail.works)"
  9214. />
  9215. </div>
  9216. <div
  9217. class="worksAnswer"
  9218. v-if="commentDetail.works && commentDetail.type == 3"
  9219. >
  9220. <img
  9221. src="../../assets/teacherWork.png"
  9222. v-if="commentDetail.ateacher"
  9223. class="w_teachert"
  9224. />
  9225. <video-player
  9226. class="video-player vjs-custom-skin"
  9227. :playsinline="true"
  9228. :options="videoDetail"
  9229. @play="onPlayerPlay($event)"
  9230. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9231. ></video-player>
  9232. </div>
  9233. <div
  9234. class="worksAnswer"
  9235. v-if="commentDetail.works && commentDetail.type == 10"
  9236. >
  9237. <div class="cont" v-html="commentDetail.works.text"></div>
  9238. </div>
  9239. <div
  9240. class="worksAnswer codeFileBox"
  9241. v-if="commentDetail.works && commentDetail.type == 12"
  9242. @click="downloadFile(commentDetail.works)"
  9243. >
  9244. <img src="../../assets/icon/codeFile.png" />
  9245. <div>点击下载文件</div>
  9246. </div>
  9247. <div
  9248. class="worksAnswer codeFileBox"
  9249. v-if="commentDetail.works && commentDetail.type == 15"
  9250. @click="
  9251. openCocoPi(
  9252. 57,
  9253. commentIndexJson.toolIndex,
  9254. commentDetail.userid,
  9255. commentDetail.sName
  9256. )
  9257. "
  9258. >
  9259. <img src="../../assets/icon/codeFile.png" />
  9260. <div>点击打开CocoPi</div>
  9261. </div>
  9262. <div
  9263. class="worksAnswer"
  9264. v-if="commentDetail.works && commentDetail.type == 13"
  9265. >
  9266. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9267. </div>
  9268. <div
  9269. class="worksAnswer"
  9270. v-if="commentDetail.works && commentDetail.type == 4"
  9271. >
  9272. <div class="evalCss">
  9273. <div class="nav">请选择星星进行评分</div>
  9274. <div class="middleBox" v-if="eScore.eStar">
  9275. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9276. <div class="nameAndrate">
  9277. <div>{{ e.value }}</div>
  9278. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9279. </div>
  9280. <div v-if="e.detail">{{ e.detail }}</div>
  9281. </div>
  9282. <div class="bz">
  9283. <textarea
  9284. disabled
  9285. rows="4"
  9286. class="pj"
  9287. style="
  9288. padding: 10px 5px;
  9289. width: 70%;
  9290. background: #f7f6f9;
  9291. font-size: 14px;
  9292. text-indent: 10px;
  9293. color: #000;
  9294. "
  9295. cols
  9296. v-model="eScore.eBzText"
  9297. placeholder="请输入评价内容..."
  9298. ></textarea>
  9299. </div>
  9300. </div>
  9301. </div>
  9302. </div>
  9303. <div class="comment">
  9304. <div class="commentList">
  9305. <div class="commentImg">
  9306. <img
  9307. @click="
  9308. isLikes(
  9309. commentDetail.wid,
  9310. userid,
  9311. 1,
  9312. null,
  9313. commentDetail.isLikes
  9314. )
  9315. "
  9316. :src="commentDetail.isLikes == true ? likes : noLikes"
  9317. alt=""
  9318. />
  9319. </div>
  9320. <div>{{ commentDetail.likesCount }}</div>
  9321. </div>
  9322. <div class="commentList">
  9323. <div class="commentImg">
  9324. <img src="../../assets/icon/comment/comment.png" alt="" />
  9325. </div>
  9326. <div>{{ commentDetail.commentCount }}</div>
  9327. </div>
  9328. </div>
  9329. <div class="drawPBox" v-if="commentDetail.img">
  9330. <span>教师批注</span>
  9331. <img
  9332. :src="commentDetail.img"
  9333. alt=""
  9334. @click="previewImg(commentDetail.img)"
  9335. />
  9336. <span
  9337. class="deleteImg"
  9338. v-if="tType == 1 || tType == 4"
  9339. @click.stop="deletePicturePaint(commentDetail.wid)"
  9340. style="
  9341. font-size: 14px;
  9342. width: auto !important;
  9343. color: #b4b4b4;
  9344. top: unset;
  9345. bottom: 0;
  9346. border: none;
  9347. padding: 0;
  9348. height: auto !important;
  9349. margin: 0;
  9350. "
  9351. >删除</span
  9352. >
  9353. </div>
  9354. </div>
  9355. <div class="commentBox">
  9356. <div class="pl">评论:</div>
  9357. <div style="max-height: 200px; overflow: auto">
  9358. <div
  9359. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9360. style="padding: 10px 0 0 0"
  9361. >
  9362. <div
  9363. class="studentDetail"
  9364. style="padding-top: 10px"
  9365. v-for="(co, coIndex) in commentDetail.commentJson"
  9366. :key="coIndex"
  9367. >
  9368. <div class="tx" style="min-width: 50px">
  9369. <img src="../../assets/avatar.png" alt="" />
  9370. </div>
  9371. <div class="plPerson">
  9372. <div class="plName">
  9373. <div>{{ co.commentPeople }}</div>
  9374. <div style="margin-left: 5px">
  9375. {{ co.commentTime }}
  9376. </div>
  9377. <div
  9378. class="deleteComment"
  9379. v-if="userid == co.userid"
  9380. @click="deleteComment(co.wid)"
  9381. >
  9382. 删除
  9383. </div>
  9384. </div>
  9385. <div class="plContent">{{ co.commentText }}</div>
  9386. </div>
  9387. </div>
  9388. </div>
  9389. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9390. </div>
  9391. </div>
  9392. <div style="margin-top: 10px">
  9393. <div class="displayBox">
  9394. <div
  9395. style="
  9396. color: #556db4;
  9397. font-size: 14px;
  9398. font-weight: bold;
  9399. padding-bottom: 10px;
  9400. "
  9401. >
  9402. 评价
  9403. </div>
  9404. <div class="easy_comment" v-if="false">
  9405. <div
  9406. v-for="(p, pIndex) in PlTextList"
  9407. :key="pIndex"
  9408. @click="fastText(p, 1)"
  9409. >
  9410. {{ p }}
  9411. </div>
  9412. </div>
  9413. </div>
  9414. <div>
  9415. <textarea
  9416. rows="3"
  9417. class="pj"
  9418. style="padding: 10px 5px"
  9419. cols
  9420. v-model="commentText"
  9421. placeholder="请输入评论"
  9422. ></textarea>
  9423. </div>
  9424. </div>
  9425. <div slot="footer">
  9426. <el-button
  9427. @click="
  9428. (commentDialogVisible = false),
  9429. (commentIndexJson = {}),
  9430. videoDetail.sources && videoDetail.sources[0]
  9431. ? (videoDetail.sources[0].src = '')
  9432. : ''
  9433. "
  9434. >取 消</el-button
  9435. >
  9436. <el-button
  9437. type="primary"
  9438. @click="addComment(commentDetail.wid, userid, 2)"
  9439. >确 定</el-button
  9440. >
  9441. </div>
  9442. </el-dialog>
  9443. <el-dialog
  9444. title="查看文档"
  9445. :visible.sync="fullDialogVisible"
  9446. :append-to-body="true"
  9447. width="100%"
  9448. :before-close="handleClose"
  9449. :show-close="false"
  9450. class="dialog_diy full_diy"
  9451. :class="{ full_diy2: fulltype == 3 }"
  9452. >
  9453. <div slot="title" class="header-title">
  9454. <div style="color: #fff">查看文档</div>
  9455. <div
  9456. @click="fullDialogVisible = false"
  9457. style="
  9458. cursor: pointer;
  9459. position: absolute;
  9460. top: 20px;
  9461. right: 20px;
  9462. color: #fff;
  9463. "
  9464. >
  9465. 退出全屏
  9466. </div>
  9467. </div>
  9468. <div style="height: 100%">
  9469. <div
  9470. class="wheel"
  9471. v-if="
  9472. fulltype == 2 &&
  9473. fullUrl.indexOf(
  9474. 'https://view.officeapps.live.com/op/view.aspx?src='
  9475. ) != -1
  9476. "
  9477. style="width: 95%; margin: 0 auto"
  9478. >
  9479. <iframe
  9480. style="width: 100%; height: 100%; border: none"
  9481. :src="fullUrl"
  9482. ></iframe>
  9483. </div>
  9484. <iframe
  9485. v-else-if="fulltype == 2"
  9486. style="width: 100%; height: 100%; border: none"
  9487. :src="fullUrl"
  9488. security="restricted"
  9489. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9490. ></iframe>
  9491. <pdf
  9492. v-else-if="fulltype == 3"
  9493. :pdfUrl="fullUrl"
  9494. style="width: 100%; height: 100%; overflow: auto"
  9495. ></pdf>
  9496. <div
  9497. class="wheel"
  9498. v-if="fulltype == 1"
  9499. style="
  9500. box-shadow: 0 0 6px 1px #f2f2f2;
  9501. width: 100%;
  9502. background: #f1f1f1;
  9503. "
  9504. >
  9505. <div class="title" style="width: 100%; box-sizing: border-box">
  9506. 查看文档
  9507. </div>
  9508. <el-form class="textBox" style="height: 90%">
  9509. <el-form-item class="textTitle">
  9510. <div style="font-size: 22px">
  9511. {{ fullUrl.name }}
  9512. </div>
  9513. </el-form-item>
  9514. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9515. <div
  9516. v-html="fullUrl.url"
  9517. class="textContent"
  9518. style="height: auto"
  9519. ></div>
  9520. </el-form>
  9521. </div>
  9522. </div>
  9523. <!-- <div slot="footer">
  9524. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9525. </div> -->
  9526. </el-dialog>
  9527. <el-dialog
  9528. title="个人评价"
  9529. :visible.sync="studentEvalDialogVisible"
  9530. :append-to-body="true"
  9531. width="800px"
  9532. :before-close="handleClose"
  9533. class="dialog_diy"
  9534. >
  9535. <div class="evalCss">
  9536. <div class="nav">请选择星星进行评分</div>
  9537. <div class="middleBox" v-if="eScore.eStar">
  9538. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9539. <div class="nameAndrate">
  9540. <div>{{ e.value }}</div>
  9541. <el-rate
  9542. v-model="eScore.eStar[eIndex]"
  9543. :disabled="isStar"
  9544. ></el-rate>
  9545. </div>
  9546. <div v-if="e.detail">{{ e.detail }}</div>
  9547. </div>
  9548. <div class="easy_comment" v-if="false">
  9549. <div
  9550. v-for="(p, pIndex) in PlTextList"
  9551. :key="pIndex"
  9552. @click="fastText(p, 2)"
  9553. >
  9554. {{ p }}
  9555. </div>
  9556. </div>
  9557. <div class="bz">
  9558. <textarea
  9559. :disabled="isStar"
  9560. rows="4"
  9561. class="pj"
  9562. style="
  9563. padding: 10px 5px;
  9564. width: 70%;
  9565. background: #f7f6f9;
  9566. font-size: 14px;
  9567. text-indent: 10px;
  9568. "
  9569. cols
  9570. v-model="eScore.eBzText"
  9571. placeholder="请输入评价内容..."
  9572. ></textarea>
  9573. </div>
  9574. </div>
  9575. </div>
  9576. <div slot="footer">
  9577. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9578. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9579. >确 定</el-button
  9580. >
  9581. </div>
  9582. </el-dialog>
  9583. <el-dialog
  9584. title="个人评价"
  9585. :visible.sync="studentEvalDialogVisibleTeacher"
  9586. :append-to-body="true"
  9587. width="800px"
  9588. :before-close="handleClose"
  9589. class="dialog_diy"
  9590. >
  9591. <div class="w_name">
  9592. 学生姓名:<span>{{ sStudent.student }}</span>
  9593. </div>
  9594. <div class="evalCss">
  9595. <div class="nav">请选择星星进行评分</div>
  9596. <div class="middleBox" v-if="eScore.eStar">
  9597. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9598. <div class="nameAndrate">
  9599. <div>{{ e.value }}</div>
  9600. <el-rate
  9601. v-model="eScore.eStar[eIndex]"
  9602. :disabled="isStar"
  9603. ></el-rate>
  9604. </div>
  9605. <div v-if="e.detail">{{ e.detail }}</div>
  9606. </div>
  9607. <div class="easy_comment" v-if="false">
  9608. <div
  9609. v-for="(p, pIndex) in PlTextList"
  9610. :key="pIndex"
  9611. @click="fastText(p, 2)"
  9612. >
  9613. {{ p }}
  9614. </div>
  9615. </div>
  9616. <div class="bz">
  9617. <textarea
  9618. :disabled="isStar"
  9619. rows="4"
  9620. class="pj"
  9621. style="
  9622. padding: 10px 5px;
  9623. width: 70%;
  9624. background: #f7f6f9;
  9625. font-size: 14px;
  9626. text-indent: 10px;
  9627. "
  9628. cols
  9629. v-model="eScore.eBzText"
  9630. placeholder="请输入评价内容..."
  9631. ></textarea>
  9632. </div>
  9633. </div>
  9634. </div>
  9635. <div slot="footer">
  9636. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9637. >取 消</el-button
  9638. >
  9639. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9640. >确 定</el-button
  9641. >
  9642. </div>
  9643. </el-dialog>
  9644. <el-dialog
  9645. title="选择匹配"
  9646. :visible.sync="dialogVisibleSelect"
  9647. :append-to-body="true"
  9648. width="90%"
  9649. :before-close="handleClose"
  9650. class="dialog_diy dialog_diy3"
  9651. >
  9652. <div v-if="selectJson">
  9653. <div class="select_box2">
  9654. <div class="select_box2_title">
  9655. <div>选择匹配</div>
  9656. <div>请选择对应的答案进行答题!</div>
  9657. </div>
  9658. <div class="select_box2_box">
  9659. <div class="select_box2_img">
  9660. <img
  9661. :src="selectJson.url"
  9662. @click="previewImg(selectJson.url)"
  9663. alt=""
  9664. />
  9665. </div>
  9666. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9667. <div style="padding-top: 15px">
  9668. <div class="select_answer_title" v-if="isSelect">
  9669. {{ selectAnswer.stu }}
  9670. </div>
  9671. <div class="select_answer_title" v-else>
  9672. 根据题目选择对应答案
  9673. </div>
  9674. <div
  9675. class="select_box2_answer_box"
  9676. v-for="(item2, checkIndex) in selectJson.select"
  9677. :key="checkIndex"
  9678. >
  9679. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9680. <el-select
  9681. :disabled="isSelect"
  9682. v-model="selectAnswer.answer[checkIndex]"
  9683. placeholder="请选择正确答案"
  9684. >
  9685. <el-option
  9686. v-for="(e, eIndex) in selectJson.select"
  9687. :key="eIndex"
  9688. :label="e"
  9689. :value="eIndex"
  9690. >
  9691. </el-option>
  9692. </el-select>
  9693. </div>
  9694. </div>
  9695. <div
  9696. class="rightAnswerCss"
  9697. v-if="isSelect && (tType == 1 || tType == 4)"
  9698. >
  9699. <div
  9700. v-for="(a, aIndex) in selectJson.answer"
  9701. :key="aIndex"
  9702. class="rightAnswer"
  9703. >
  9704. <div
  9705. v-if="selectAnswer.answer[aIndex] === a"
  9706. style="color: #767de1"
  9707. >
  9708. 回答正确
  9709. </div>
  9710. <div v-else>回答错误</div>
  9711. <div
  9712. style="margin-left: 10px"
  9713. v-if="selectAnswer.answer[aIndex] !== a"
  9714. >
  9715. 正确答案:
  9716. </div>
  9717. <div
  9718. :class="
  9719. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9720. "
  9721. >
  9722. {{ selectJson.select[a] }}
  9723. </div>
  9724. </div>
  9725. </div>
  9726. </div>
  9727. <div class="upAnswerCss">
  9728. <el-button
  9729. type="primary"
  9730. @click="addSelectAnswer"
  9731. v-if="!isSelect"
  9732. >提交答案</el-button
  9733. >
  9734. </div>
  9735. </div>
  9736. </div>
  9737. </div>
  9738. </el-dialog>
  9739. <el-dialog
  9740. title="选择匹配"
  9741. :visible.sync="dialogVisibleSelectTeacher"
  9742. :append-to-body="true"
  9743. width="90%"
  9744. :before-close="handleClose"
  9745. class="dialog_diy dialog_diy3"
  9746. >
  9747. <div v-if="selectJson">
  9748. <div class="w_name">
  9749. 学生姓名:<span>{{ sStudent.student }}</span>
  9750. </div>
  9751. <div class="select_box2">
  9752. <div class="select_box2_title">
  9753. <div>选择匹配</div>
  9754. <div>请选择对应的答案进行答题!</div>
  9755. </div>
  9756. <div class="select_box2_box">
  9757. <div class="select_box2_img">
  9758. <img
  9759. :src="selectJson.url"
  9760. @click="previewImg(selectJson.url)"
  9761. alt=""
  9762. />
  9763. </div>
  9764. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9765. <div style="padding-top: 15px">
  9766. <div class="select_answer_title" v-if="isSelect">
  9767. {{ selectAnswer.stu }}
  9768. </div>
  9769. <div class="select_answer_title" v-else>
  9770. 根据题目选择对应答案
  9771. </div>
  9772. <div
  9773. class="select_box2_answer_box"
  9774. v-for="(item2, checkIndex) in selectJson.select"
  9775. :key="checkIndex"
  9776. >
  9777. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9778. <el-select
  9779. :disabled="isSelect"
  9780. v-model="selectAnswer.answer[checkIndex]"
  9781. placeholder="请选择正确答案"
  9782. >
  9783. <el-option
  9784. v-for="(e, eIndex) in selectJson.select"
  9785. :key="eIndex"
  9786. :label="e"
  9787. :value="eIndex"
  9788. >
  9789. </el-option>
  9790. </el-select>
  9791. </div>
  9792. </div>
  9793. <div
  9794. class="rightAnswerCss"
  9795. v-if="isSelect && (tType == 1 || tType == 4)"
  9796. >
  9797. <div
  9798. v-for="(a, aIndex) in selectJson.answer"
  9799. :key="aIndex"
  9800. class="rightAnswer"
  9801. >
  9802. <div
  9803. v-if="selectAnswer.answer[aIndex] === a"
  9804. style="color: #767de1"
  9805. >
  9806. 回答正确
  9807. </div>
  9808. <div v-else>回答错误</div>
  9809. <div
  9810. style="margin-left: 10px"
  9811. v-if="selectAnswer.answer[aIndex] !== a"
  9812. >
  9813. 正确答案:
  9814. </div>
  9815. <div
  9816. :class="
  9817. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9818. "
  9819. >
  9820. {{ selectJson.select[a] }}
  9821. </div>
  9822. </div>
  9823. </div>
  9824. </div>
  9825. <div class="upAnswerCss">
  9826. <el-button
  9827. type="primary"
  9828. @click="addSelectAnswerTeacher"
  9829. v-if="!isSelect"
  9830. >提交答案</el-button
  9831. >
  9832. </div>
  9833. </div>
  9834. </div>
  9835. </div>
  9836. </el-dialog>
  9837. <el-dialog
  9838. title="教师评分"
  9839. :visible.sync="dialogVisibleScore"
  9840. :append-to-body="true"
  9841. width="800px"
  9842. :before-close="handleClose"
  9843. class="dialog_diy"
  9844. >
  9845. <div>
  9846. <div class="studentDetail">
  9847. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9848. <div class="nameAndTime">
  9849. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9850. <div>{{ commentDetail.time }}</div>
  9851. </div>
  9852. </div>
  9853. <div
  9854. class="worksAnswer"
  9855. v-if="commentDetail.works && commentDetail.type == 2"
  9856. >
  9857. {{ JSON.parse(commentDetail.works)[0].answer }}
  9858. </div>
  9859. <div
  9860. class="worksAnswer"
  9861. v-if="commentDetail.works && commentDetail.type == 1"
  9862. >
  9863. <pdf
  9864. v-if="showPDF"
  9865. :pdfUrl="pptImgUrl"
  9866. style="width: 100%; height: 520px; overflow: auto"
  9867. :class="{ fullStyle: full }"
  9868. ></pdf>
  9869. <iframe
  9870. v-else
  9871. :src="pptImgUrl"
  9872. frameborder="0"
  9873. width="100%"
  9874. height="600"
  9875. :class="{ fullStyle: full }"
  9876. ></iframe>
  9877. </div>
  9878. <div
  9879. class="worksAnswer"
  9880. v-if="commentDetail.works && commentDetail.type == 0"
  9881. >
  9882. <img
  9883. :src="commentDetail.works"
  9884. alt=""
  9885. @click="previewImg(commentDetail.works)"
  9886. />
  9887. </div>
  9888. <div
  9889. class="worksAnswer"
  9890. v-if="commentDetail.works && commentDetail.type == 3"
  9891. >
  9892. <video-player
  9893. class="video-player vjs-custom-skin"
  9894. :playsinline="true"
  9895. :options="videoDetail"
  9896. @play="onPlayerPlay($event)"
  9897. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9898. ></video-player>
  9899. </div>
  9900. <div
  9901. class="worksAnswer codeFileBox"
  9902. v-if="commentDetail.works && commentDetail.type == 12"
  9903. @click="downloadFile(commentDetail.works)"
  9904. >
  9905. <img src="../../assets/icon/codeFile.png" />
  9906. <div>点击下载文件</div>
  9907. </div>
  9908. <div
  9909. class="worksAnswer codeFileBox"
  9910. v-if="commentDetail.works && commentDetail.type == 15"
  9911. @click="
  9912. openCocoPi(
  9913. 57,
  9914. commentIndexJson.toolIndex,
  9915. commentDetail.userid,
  9916. commentDetail.sName
  9917. )
  9918. "
  9919. >
  9920. <img src="../../assets/icon/codeFile.png" />
  9921. <div>点击打开CocoPi</div>
  9922. </div>
  9923. <div
  9924. class="worksAnswer"
  9925. v-if="commentDetail.works && commentDetail.type == 13"
  9926. >
  9927. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9928. </div>
  9929. <div class="scoreBox">
  9930. <span class="t">请输入分数</span>
  9931. <el-input-number
  9932. :disabled="courseDetail.userid != userid"
  9933. v-model="wScore"
  9934. :controls="false"
  9935. :min="0"
  9936. :max="100"
  9937. ></el-input-number>
  9938. </div>
  9939. <div class="scoreDetailBox">
  9940. <span class="t">评分评论</span>
  9941. <el-input
  9942. type="textarea"
  9943. :rows="5"
  9944. :disabled="courseDetail.userid != userid"
  9945. resize="none"
  9946. v-model="scoreDetail"
  9947. placeholder="请输入对学生的评价"
  9948. >
  9949. </el-input>
  9950. </div>
  9951. </div>
  9952. <span slot="footer" class="dialog-footer">
  9953. <el-button
  9954. @click="
  9955. (dialogVisibleScore = false),
  9956. (commentIndexJson = {}),
  9957. videoDetail.sources && videoDetail.sources[0]
  9958. ? (videoDetail.sources[0].src = '')
  9959. : ''
  9960. "
  9961. >取 消</el-button
  9962. >
  9963. <el-button
  9964. type="primary"
  9965. v-if="courseDetail.userid == userid"
  9966. @click="scoreWork(commentDetail.wid)"
  9967. >确 定
  9968. </el-button>
  9969. </span>
  9970. </el-dialog>
  9971. <el-dialog
  9972. title="排序"
  9973. :visible.sync="dialogVisibleSentence"
  9974. :append-to-body="true"
  9975. width="1000px"
  9976. :before-close="handleClose"
  9977. class="dialog_diy dialog_diy3"
  9978. >
  9979. <div>
  9980. <div class="sentenBox">
  9981. <div
  9982. v-for="(st, stIndex) in sentenceList"
  9983. :key="stIndex"
  9984. style="padding-bottom: 20px"
  9985. >
  9986. <div
  9987. style="padding: 15px 0 10px 20px"
  9988. class="sentenceTitle"
  9989. :index="stIndex + 1"
  9990. >
  9991. 题目{{ stIndex + 1 }}:请选择正确顺序
  9992. </div>
  9993. <div class="cardList" v-if="st.chooseSenList">
  9994. <div class="cardBox">
  9995. <div
  9996. v-for="(r, rIndex) in st.chooseSenList"
  9997. :key="rIndex"
  9998. @click="returnCard(r, stIndex, rIndex)"
  9999. >
  10000. <el-tooltip
  10001. class="item"
  10002. effect="light"
  10003. :content="r"
  10004. placement="top"
  10005. v-if="r != '' && r != undefined"
  10006. >
  10007. <div
  10008. :class="{
  10009. isCard: r,
  10010. isChooseCard: r == '' || r == undefined,
  10011. }"
  10012. >
  10013. <div>{{ r }}</div>
  10014. </div>
  10015. </el-tooltip>
  10016. <div
  10017. :class="{
  10018. isCard: r,
  10019. isChooseCard: r == '' || r == undefined,
  10020. }"
  10021. v-else
  10022. >
  10023. <div>{{ r }}</div>
  10024. </div>
  10025. </div>
  10026. </div>
  10027. </div>
  10028. <div class="cardList" v-if="st.addChangeSen">
  10029. <div class="cardBox">
  10030. <div
  10031. v-for="(s, sIndex) in st.addChangeSen"
  10032. :key="sIndex"
  10033. @click="setRightAnswer(s, stIndex, sIndex)"
  10034. >
  10035. <el-tooltip
  10036. class="item"
  10037. effect="light"
  10038. :content="s"
  10039. placement="top"
  10040. v-if="s != '' && s != undefined"
  10041. >
  10042. <div
  10043. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10044. >
  10045. <div>{{ s }}</div>
  10046. </div>
  10047. </el-tooltip>
  10048. <div
  10049. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10050. v-else
  10051. >
  10052. <div>{{ s }}</div>
  10053. </div>
  10054. </div>
  10055. </div>
  10056. </div>
  10057. </div>
  10058. </div>
  10059. </div>
  10060. <span slot="footer" class="dialog-footer">
  10061. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10062. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10063. </span>
  10064. </el-dialog>
  10065. <el-dialog
  10066. title="排序"
  10067. :visible.sync="dialogVisibleSentenceTeacher"
  10068. :append-to-body="true"
  10069. width="1000px"
  10070. :before-close="handleClose"
  10071. class="dialog_diy dialog_diy3"
  10072. >
  10073. <div>
  10074. <div class="w_name">
  10075. 学生姓名:<span>{{ sStudent.student }}</span>
  10076. </div>
  10077. <div class="sentenBox">
  10078. <div
  10079. v-for="(st, stIndex) in sentenceList"
  10080. :key="stIndex"
  10081. style="padding-bottom: 20px"
  10082. >
  10083. <div
  10084. style="padding: 15px 0 10px 20px"
  10085. class="sentenceTitle"
  10086. :index="stIndex + 1"
  10087. >
  10088. 题目{{ stIndex + 1 }}:请选择正确顺序
  10089. </div>
  10090. <div class="cardList" v-if="st.chooseSenList">
  10091. <div class="cardBox">
  10092. <div
  10093. v-for="(r, rIndex) in st.chooseSenList"
  10094. :key="rIndex"
  10095. @click="returnCard(r, stIndex, rIndex)"
  10096. >
  10097. <el-tooltip
  10098. class="item"
  10099. effect="light"
  10100. :content="r"
  10101. placement="top"
  10102. v-if="r != '' && r != undefined"
  10103. >
  10104. <div
  10105. :class="{
  10106. isCard: r,
  10107. isChooseCard: r == '' || r == undefined,
  10108. }"
  10109. >
  10110. <div>{{ r }}</div>
  10111. </div>
  10112. </el-tooltip>
  10113. <div
  10114. :class="{
  10115. isCard: r,
  10116. isChooseCard: r == '' || r == undefined,
  10117. }"
  10118. v-else
  10119. >
  10120. <div>{{ r }}</div>
  10121. </div>
  10122. </div>
  10123. </div>
  10124. </div>
  10125. <div class="cardList" v-if="st.addChangeSen">
  10126. <div class="cardBox">
  10127. <div
  10128. v-for="(s, sIndex) in st.addChangeSen"
  10129. :key="sIndex"
  10130. @click="setRightAnswer(s, stIndex, sIndex)"
  10131. >
  10132. <el-tooltip
  10133. class="item"
  10134. effect="light"
  10135. :content="s"
  10136. placement="top"
  10137. v-if="s != '' && s != undefined"
  10138. >
  10139. <div
  10140. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10141. >
  10142. <div>{{ s }}</div>
  10143. </div>
  10144. </el-tooltip>
  10145. <div
  10146. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10147. v-else
  10148. >
  10149. <div>{{ s }}</div>
  10150. </div>
  10151. </div>
  10152. </div>
  10153. </div>
  10154. </div>
  10155. </div>
  10156. </div>
  10157. <span slot="footer" class="dialog-footer">
  10158. <el-button @click="dialogVisibleSentenceTeacher = false"
  10159. >取 消</el-button
  10160. >
  10161. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10162. </span>
  10163. </el-dialog>
  10164. <el-dialog
  10165. title="排序"
  10166. :visible.sync="dialogVisibleSentence1"
  10167. :append-to-body="true"
  10168. width="1000px"
  10169. :before-close="handleClose"
  10170. class="dialog_diy dialog_diy3"
  10171. >
  10172. <div>
  10173. <div class="sentenBox">
  10174. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10175. {{ sentenceList1.stuName }}的作业
  10176. </div>
  10177. <div
  10178. v-for="(st, stIndex) in sentenceList1"
  10179. :key="stIndex"
  10180. style="padding-bottom: 20px"
  10181. >
  10182. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10183. 第{{ stIndex + 1 }}题
  10184. </div>
  10185. <div class="isWrong">
  10186. <div class="cardList1" v-if="st.chooseSenList">
  10187. <div class="cardBox">
  10188. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10189. <el-tooltip
  10190. class="item"
  10191. effect="light"
  10192. :content="s"
  10193. placement="top"
  10194. >
  10195. <div class="isCard">
  10196. <div>{{ s }}</div>
  10197. </div>
  10198. </el-tooltip>
  10199. </div>
  10200. </div>
  10201. <div class="cardAnswerBox">
  10202. 组成句子:{{ st.chooseSenList.join(" ") }}
  10203. </div>
  10204. </div>
  10205. <div v-if="tType == 2" class="isTj">
  10206. <div class="isTjImg">
  10207. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10208. </div>
  10209. <div>已提交</div>
  10210. </div>
  10211. <div
  10212. class="answerRight isTj"
  10213. v-if="
  10214. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10215. (tType == 1 || tType == 4)
  10216. "
  10217. >
  10218. <div class="isTjImg">
  10219. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10220. </div>
  10221. <div>回答正确</div>
  10222. </div>
  10223. <div
  10224. class="answerRight isTj"
  10225. v-if="
  10226. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10227. (tType == 1 || tType == 4)
  10228. "
  10229. >
  10230. <div class="isTjImg">
  10231. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10232. </div>
  10233. <div>回答错误</div>
  10234. </div>
  10235. </div>
  10236. <div
  10237. v-if="
  10238. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10239. (tType == 1 || tType == 4)
  10240. "
  10241. >
  10242. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10243. <div
  10244. class="cardList"
  10245. v-if="st.rightAnswer"
  10246. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10247. >
  10248. <div class="cardBox">
  10249. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10250. <el-tooltip
  10251. class="item"
  10252. effect="light"
  10253. :content="r"
  10254. placement="top"
  10255. >
  10256. <div class="isCard1">
  10257. <div>{{ r }}</div>
  10258. </div>
  10259. </el-tooltip>
  10260. </div>
  10261. </div>
  10262. <div class="cardAnswerBox">
  10263. 组成句子:{{ st.rightAnswer.join(" ") }}
  10264. </div>
  10265. </div>
  10266. </div>
  10267. </div>
  10268. </div>
  10269. </div>
  10270. <span slot="footer" class="dialog-footer">
  10271. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10272. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10273. >确 定</el-button
  10274. >
  10275. </span>
  10276. </el-dialog>
  10277. <el-dialog
  10278. title="教师提交作业"
  10279. :visible.sync="dialogVisibleWorks"
  10280. :append-to-body="true"
  10281. width="500px"
  10282. :before-close="handleClose"
  10283. class="dialog_change"
  10284. >
  10285. <div class="marginT">
  10286. <div class="w_name">
  10287. 学生姓名:<span>{{ sStudent.student }}</span>
  10288. </div>
  10289. <div>上传文件</div>
  10290. <div
  10291. class="chapter_add"
  10292. @click="addImg($event)"
  10293. v-if="studyJuri[0].cover.length == 0"
  10294. >
  10295. <div class="up_photo">
  10296. <img src="../../assets/uploadImg2.png" alt />
  10297. </div>
  10298. <!-- <input
  10299. type="file"
  10300. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10301. style="display: none"
  10302. @change="beforeUpload1($event, 1)"
  10303. /> -->
  10304. <input
  10305. type="file"
  10306. accept="*"
  10307. style="display: none"
  10308. @change="beforeUpload1($event, 1)"
  10309. />
  10310. </div>
  10311. <!-- capture="camera" -->
  10312. <div
  10313. class="chapter_add"
  10314. style="
  10315. display: flex;
  10316. width: 100%;
  10317. flex-direction: row;
  10318. flex-wrap: wrap;
  10319. justify-content: flex-start;
  10320. padding: 15px 0;
  10321. "
  10322. v-if="studyJuri[0].cover.length > 0"
  10323. >
  10324. <div class="upCover">
  10325. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10326. <img :src="word" alt v-else-if="fileType == 1" />
  10327. <img :src="video" alt v-else-if="fileType == 2" />
  10328. <img :src="word2" alt v-else-if="fileType == 3" />
  10329. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10330. <div class="deleteWord" @click="clean(1)">
  10331. <img src="../../assets/icon/deleteWorks.png" alt />
  10332. </div>
  10333. </div>
  10334. </div>
  10335. </div>
  10336. <div
  10337. class="upload_send"
  10338. @click="addCourseWorksTeacher(taskCount)"
  10339. v-if="!proVisible"
  10340. >
  10341. 提交
  10342. </div>
  10343. </el-dialog>
  10344. <ImgDraw
  10345. :drawShow="drawShow"
  10346. @closeDraw="closeDraw"
  10347. @addImgDraw="addImgDraw"
  10348. :bg="bg"
  10349. ></ImgDraw>
  10350. <el-dialog
  10351. title="表格"
  10352. :visible.sync="dialogVisibleTable"
  10353. :append-to-body="true"
  10354. width="95%"
  10355. :before-close="handleClose"
  10356. class="dialog_diy"
  10357. >
  10358. <el-form>
  10359. <div
  10360. style="
  10361. display: flex;
  10362. align-items: center;
  10363. justify-content: space-between;
  10364. "
  10365. >
  10366. <span>表格内容</span>
  10367. <el-button type="primary" size="small" @click="returnTableText"
  10368. >还原模板</el-button
  10369. >
  10370. </div>
  10371. <Table
  10372. v-model="tableJson.text"
  10373. @change="change"
  10374. v-if="dialogVisibleTable"
  10375. ></Table>
  10376. </el-form>
  10377. <span slot="footer" class="dialog-footer">
  10378. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10379. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10380. </span>
  10381. </el-dialog>
  10382. <el-dialog
  10383. title="表格"
  10384. :visible.sync="dialogVisibleTableTeacher"
  10385. :append-to-body="true"
  10386. width="95%"
  10387. :before-close="handleClose"
  10388. class="dialog_diy"
  10389. >
  10390. <el-form>
  10391. <div class="w_name">
  10392. 学生姓名:<span>{{ sStudent.student }}</span>
  10393. </div>
  10394. <div>表格内容</div>
  10395. <Table
  10396. v-model="tableJson.text"
  10397. @change="change"
  10398. v-if="dialogVisibleTableTeacher"
  10399. ></Table>
  10400. </el-form>
  10401. <span slot="footer" class="dialog-footer">
  10402. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10403. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10404. </span>
  10405. </el-dialog>
  10406. <el-dialog
  10407. title="文档"
  10408. :visible.sync="dialogVisibleWord"
  10409. :append-to-body="true"
  10410. width="95%"
  10411. :before-close="handleClose"
  10412. class="dialog_diy"
  10413. >
  10414. <el-form>
  10415. <div
  10416. style="
  10417. display: flex;
  10418. align-items: center;
  10419. justify-content: space-between;
  10420. "
  10421. >
  10422. <span>文档内容</span>
  10423. <el-button type="primary" size="small" @click="returnWordText"
  10424. >还原模板</el-button
  10425. >
  10426. </div>
  10427. <editor-bar
  10428. v-model="wordJson.text"
  10429. v-if="dialogVisibleWord"
  10430. ></editor-bar>
  10431. </el-form>
  10432. <span slot="footer" class="dialog-footer">
  10433. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10434. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10435. </span>
  10436. </el-dialog>
  10437. <el-dialog
  10438. title="文档"
  10439. :visible.sync="dialogVisibleWordTeacher"
  10440. :append-to-body="true"
  10441. width="95%"
  10442. :before-close="handleClose"
  10443. class="dialog_diy"
  10444. >
  10445. <el-form>
  10446. <div class="w_name">
  10447. 学生姓名:<span>{{ sStudent.student }}</span>
  10448. </div>
  10449. <div>文档内容</div>
  10450. <editor-bar
  10451. v-model="wordJson.text"
  10452. v-if="dialogVisibleWordTeacher"
  10453. ></editor-bar>
  10454. </el-form>
  10455. <span slot="footer" class="dialog-footer">
  10456. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10457. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10458. </span>
  10459. </el-dialog>
  10460. <el-dialog
  10461. title="表格"
  10462. :visible.sync="dialogVisibleTable2"
  10463. :append-to-body="true"
  10464. width="95%"
  10465. :before-close="handleClose"
  10466. class="dialog_diy"
  10467. >
  10468. <el-form>
  10469. <div class="cont" v-html="tableJson.text"></div>
  10470. </el-form>
  10471. <span slot="footer" class="dialog-footer">
  10472. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10473. </span>
  10474. </el-dialog>
  10475. <el-dialog
  10476. title="文档"
  10477. :visible.sync="dialogVisibleTable3"
  10478. :append-to-body="true"
  10479. width="95%"
  10480. :before-close="handleClose"
  10481. class="dialog_diy"
  10482. >
  10483. <el-form>
  10484. <div class="cont" v-html="tableJson.text"></div>
  10485. </el-form>
  10486. <span slot="footer" class="dialog-footer">
  10487. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10488. </span>
  10489. </el-dialog>
  10490. <el-dialog
  10491. title="分组设置"
  10492. :visible.sync="dialogVisibleGroup"
  10493. :append-to-body="true"
  10494. width="95%"
  10495. :before-close="handleClose"
  10496. class="dialog_diy"
  10497. >
  10498. <div v-if="dialogVisibleGroup">
  10499. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10500. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10501. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10502. </div>
  10503. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10504. @click="lockChair">
  10505. 锁定位置
  10506. </div>
  10507. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10508. 解锁位置
  10509. </div> -->
  10510. <div class="group_switch">
  10511. <span>开放选座</span>
  10512. <el-switch
  10513. v-model="islock"
  10514. active-text=""
  10515. class="switchCss"
  10516. @change="lockChair"
  10517. ></el-switch>
  10518. </div>
  10519. <div
  10520. type="primary"
  10521. @click="updateGroup"
  10522. class="returnBtn"
  10523. style="background-color: #225bc7"
  10524. >
  10525. 分组设置
  10526. </div>
  10527. </div>
  10528. <div>
  10529. <div
  10530. class="g_d_box"
  10531. v-if="groupJson.group && groupStudent[toolindex]"
  10532. >
  10533. <div
  10534. class="g_d_group"
  10535. v-for="(g, gindex) in groupJson.group"
  10536. :key="gindex"
  10537. >
  10538. <div class="g_d_group_chair">
  10539. <div v-if="groupJson.number > 1">
  10540. <span
  10541. :class="{
  10542. isChair:
  10543. groupStudent[toolindex][gindex] &&
  10544. groupStudent[toolindex][gindex][0],
  10545. updateChair:
  10546. courseDetail.userid == userid &&
  10547. groupStudent[toolindex][gindex] &&
  10548. groupStudent[toolindex][gindex][0] &&
  10549. groupJson.islock == 2,
  10550. }"
  10551. ><span
  10552. class="updateChairBtn"
  10553. @click="
  10554. updateGroupChair(
  10555. groupStudent[toolindex][gindex] &&
  10556. groupStudent[toolindex][gindex][0]
  10557. )
  10558. "
  10559. >修改</span
  10560. ></span
  10561. ><span>{{
  10562. groupStudent[toolindex][gindex] &&
  10563. groupStudent[toolindex][gindex][0]
  10564. ? groupStudent[toolindex][gindex] &&
  10565. groupStudent[toolindex][gindex][0].name
  10566. : "空位置"
  10567. }}</span>
  10568. </div>
  10569. <div v-if="groupJson.number > 4">
  10570. <span
  10571. :class="{
  10572. isChair:
  10573. groupStudent[toolindex][gindex] &&
  10574. groupStudent[toolindex][gindex][4],
  10575. updateChair:
  10576. courseDetail.userid == userid &&
  10577. groupStudent[toolindex][gindex] &&
  10578. groupStudent[toolindex][gindex][4] &&
  10579. groupJson.islock == 2,
  10580. }"
  10581. ><span
  10582. class="updateChairBtn"
  10583. @click="
  10584. updateGroupChair(
  10585. groupStudent[toolindex][gindex] &&
  10586. groupStudent[toolindex][gindex][4]
  10587. )
  10588. "
  10589. >修改</span
  10590. ></span
  10591. ><span>{{
  10592. groupStudent[toolindex][gindex] &&
  10593. groupStudent[toolindex][gindex][4]
  10594. ? groupStudent[toolindex][gindex] &&
  10595. groupStudent[toolindex][gindex][4].name
  10596. : "空位置"
  10597. }}</span>
  10598. </div>
  10599. <div v-if="groupJson.number > 8">
  10600. <span
  10601. :class="{
  10602. isChair:
  10603. groupStudent[toolindex][gindex] &&
  10604. groupStudent[toolindex][gindex][8],
  10605. updateChair:
  10606. courseDetail.userid == userid &&
  10607. groupStudent[toolindex][gindex] &&
  10608. groupStudent[toolindex][gindex][8] &&
  10609. groupJson.islock == 2,
  10610. }"
  10611. ><span
  10612. class="updateChairBtn"
  10613. @click="
  10614. updateGroupChair(
  10615. groupStudent[toolindex][gindex] &&
  10616. groupStudent[toolindex][gindex][8]
  10617. )
  10618. "
  10619. >修改</span
  10620. ></span
  10621. ><span>{{
  10622. groupStudent[toolindex][gindex] &&
  10623. groupStudent[toolindex][gindex][8]
  10624. ? groupStudent[toolindex][gindex] &&
  10625. groupStudent[toolindex][gindex][8].name
  10626. : "空位置"
  10627. }}</span>
  10628. </div>
  10629. </div>
  10630. <div class="g_d_group_tableBox">
  10631. <div class="g_d_group_chair2">
  10632. <div v-if="groupJson.number > 2">
  10633. <span
  10634. :class="{
  10635. isChair:
  10636. groupStudent[toolindex][gindex] &&
  10637. groupStudent[toolindex][gindex][2],
  10638. updateChair:
  10639. courseDetail.userid == userid &&
  10640. groupStudent[toolindex][gindex] &&
  10641. groupStudent[toolindex][gindex][2] &&
  10642. groupJson.islock == 2,
  10643. }"
  10644. ><span
  10645. class="updateChairBtn"
  10646. @click="
  10647. updateGroupChair(
  10648. groupStudent[toolindex][gindex] &&
  10649. groupStudent[toolindex][gindex][2]
  10650. )
  10651. "
  10652. >修改</span
  10653. ></span
  10654. ><span>{{
  10655. groupStudent[toolindex][gindex] &&
  10656. groupStudent[toolindex][gindex][2]
  10657. ? groupStudent[toolindex][gindex] &&
  10658. groupStudent[toolindex][gindex][2].name
  10659. : "空位置"
  10660. }}</span>
  10661. </div>
  10662. <div v-if="groupJson.number > 6">
  10663. <span
  10664. :class="{
  10665. isChair:
  10666. groupStudent[toolindex][gindex] &&
  10667. groupStudent[toolindex][gindex][6],
  10668. updateChair:
  10669. courseDetail.userid == userid &&
  10670. groupStudent[toolindex][gindex] &&
  10671. groupStudent[toolindex][gindex][6] &&
  10672. groupJson.islock == 2,
  10673. }"
  10674. ><span
  10675. class="updateChairBtn"
  10676. @click="
  10677. updateGroupChair(
  10678. groupStudent[toolindex][gindex] &&
  10679. groupStudent[toolindex][gindex][6]
  10680. )
  10681. "
  10682. >修改</span
  10683. ></span
  10684. ><span>{{
  10685. groupStudent[toolindex][gindex] &&
  10686. groupStudent[toolindex][gindex][6]
  10687. ? groupStudent[toolindex][gindex] &&
  10688. groupStudent[toolindex][gindex][6].name
  10689. : "空位置"
  10690. }}</span>
  10691. </div>
  10692. </div>
  10693. <div class="g_d_group_table">
  10694. <div>
  10695. {{ g.name }}
  10696. </div>
  10697. <div>
  10698. <div
  10699. v-if="
  10700. courseDetail.userid == userid && groupJson.islock == 2
  10701. "
  10702. @click="deleteGroupChair(gindex)"
  10703. >
  10704. 移除组员
  10705. </div>
  10706. <div
  10707. @click="selectGroup(gindex)"
  10708. v-else-if="
  10709. groupStudentUid[toolindex] &&
  10710. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  10711. "
  10712. >
  10713. 加入分组
  10714. </div>
  10715. <div
  10716. @click="
  10717. exitGroup(
  10718. groupStudent[toolindex][gindex] &&
  10719. groupStudent[toolindex][gindex][
  10720. groupStudentUid[toolindex][gindex].indexOf(userid)
  10721. ].id
  10722. )
  10723. "
  10724. v-else-if="
  10725. groupStudentUid[toolindex] &&
  10726. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  10727. "
  10728. >
  10729. 退出分组
  10730. </div>
  10731. </div>
  10732. </div>
  10733. <div class="g_d_group_chair2">
  10734. <div v-if="groupJson.number > 3">
  10735. <span
  10736. :class="{
  10737. isChair:
  10738. groupStudent[toolindex][gindex] &&
  10739. groupStudent[toolindex][gindex][3],
  10740. updateChair:
  10741. courseDetail.userid == userid &&
  10742. groupStudent[toolindex][gindex] &&
  10743. groupStudent[toolindex][gindex][3] &&
  10744. groupJson.islock == 2,
  10745. }"
  10746. ><span
  10747. class="updateChairBtn"
  10748. @click="
  10749. updateGroupChair(
  10750. groupStudent[toolindex][gindex] &&
  10751. groupStudent[toolindex][gindex][3]
  10752. )
  10753. "
  10754. >修改</span
  10755. ></span
  10756. ><span>{{
  10757. groupStudent[toolindex][gindex] &&
  10758. groupStudent[toolindex][gindex][3]
  10759. ? groupStudent[toolindex][gindex] &&
  10760. groupStudent[toolindex][gindex][3].name
  10761. : "空位置"
  10762. }}</span>
  10763. </div>
  10764. <div v-if="groupJson.number > 7">
  10765. <span
  10766. :class="{
  10767. isChair:
  10768. groupStudent[toolindex][gindex] &&
  10769. groupStudent[toolindex][gindex][7],
  10770. updateChair:
  10771. courseDetail.userid == userid &&
  10772. groupStudent[toolindex][gindex] &&
  10773. groupStudent[toolindex][gindex][7] &&
  10774. groupJson.islock == 2,
  10775. }"
  10776. ><span
  10777. class="updateChairBtn"
  10778. @click="
  10779. updateGroupChair(
  10780. groupStudent[toolindex][gindex] &&
  10781. groupStudent[toolindex][gindex][7]
  10782. )
  10783. "
  10784. >修改</span
  10785. ></span
  10786. ><span>{{
  10787. groupStudent[toolindex][gindex] &&
  10788. groupStudent[toolindex][gindex][7]
  10789. ? groupStudent[toolindex][gindex] &&
  10790. groupStudent[toolindex][gindex][7].name
  10791. : "空位置"
  10792. }}</span>
  10793. </div>
  10794. </div>
  10795. </div>
  10796. <div class="g_d_group_chair">
  10797. <div v-if="groupJson.number > 1">
  10798. <span
  10799. :class="{
  10800. isChair:
  10801. groupStudent[toolindex][gindex] &&
  10802. groupStudent[toolindex][gindex][1],
  10803. updateChair:
  10804. courseDetail.userid == userid &&
  10805. groupStudent[toolindex][gindex] &&
  10806. groupStudent[toolindex][gindex][1] &&
  10807. groupJson.islock == 2,
  10808. }"
  10809. ><span
  10810. class="updateChairBtn"
  10811. @click="
  10812. updateGroupChair(
  10813. groupStudent[toolindex][gindex] &&
  10814. groupStudent[toolindex][gindex][1]
  10815. )
  10816. "
  10817. >修改</span
  10818. ></span
  10819. ><span>{{
  10820. groupStudent[toolindex][gindex] &&
  10821. groupStudent[toolindex][gindex][1]
  10822. ? groupStudent[toolindex][gindex] &&
  10823. groupStudent[toolindex][gindex][1].name
  10824. : "空位置"
  10825. }}</span>
  10826. </div>
  10827. <div v-if="groupJson.number > 5">
  10828. <span
  10829. :class="{
  10830. isChair:
  10831. groupStudent[toolindex][gindex] &&
  10832. groupStudent[toolindex][gindex][5],
  10833. updateChair:
  10834. courseDetail.userid == userid &&
  10835. groupStudent[toolindex][gindex] &&
  10836. groupStudent[toolindex][gindex][5] &&
  10837. groupJson.islock == 2,
  10838. }"
  10839. ><span
  10840. class="updateChairBtn"
  10841. @click="
  10842. updateGroupChair(
  10843. groupStudent[toolindex][gindex] &&
  10844. groupStudent[toolindex][gindex][5]
  10845. )
  10846. "
  10847. >修改</span
  10848. ></span
  10849. ><span>{{
  10850. groupStudent[toolindex][gindex] &&
  10851. groupStudent[toolindex][gindex][5]
  10852. ? groupStudent[toolindex][gindex] &&
  10853. groupStudent[toolindex][gindex][5].name
  10854. : "空位置"
  10855. }}</span>
  10856. </div>
  10857. <div v-if="groupJson.number > 9">
  10858. <span
  10859. :class="{
  10860. isChair:
  10861. groupStudent[toolindex][gindex] &&
  10862. groupStudent[toolindex][gindex][9],
  10863. updateChair:
  10864. courseDetail.userid == userid &&
  10865. groupStudent[toolindex][gindex] &&
  10866. groupStudent[toolindex][gindex][9] &&
  10867. groupJson.islock == 2,
  10868. }"
  10869. ><span
  10870. class="updateChairBtn"
  10871. @click="
  10872. updateGroupChair(
  10873. groupStudent[toolindex][gindex] &&
  10874. groupStudent[toolindex][gindex][9]
  10875. )
  10876. "
  10877. >修改</span
  10878. ></span
  10879. ><span>{{
  10880. groupStudent[toolindex][gindex] &&
  10881. groupStudent[toolindex][gindex][9]
  10882. ? groupStudent[toolindex][gindex] &&
  10883. groupStudent[toolindex][gindex][9].name
  10884. : "空位置"
  10885. }}</span>
  10886. </div>
  10887. </div>
  10888. </div>
  10889. </div>
  10890. </div>
  10891. </div>
  10892. <span slot="footer" class="dialog-footer">
  10893. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  10894. </span>
  10895. </el-dialog>
  10896. <el-dialog
  10897. title="分组设置"
  10898. :visible.sync="dialogVisibleGroup2"
  10899. :append-to-body="true"
  10900. width="650px"
  10901. :before-close="handleClose"
  10902. class="dialog_diy"
  10903. >
  10904. <div class="groupBox">
  10905. <div v-if="groupJson2.group" class="groupContent">
  10906. <div class="groupTitle">请设置小组数量及名称</div>
  10907. <div
  10908. v-for="(item, index) in groupJson2.group"
  10909. :key="index"
  10910. class="groupName"
  10911. >
  10912. <span class="groupn">第{{ index + 1 }}组名称:</span>
  10913. <el-input
  10914. v-model="item.name"
  10915. placeholder="请输入名称..."
  10916. style="width: 250px"
  10917. ></el-input>
  10918. <!-- <div class="groupBtn">
  10919. <el-button type="primary" size="small" @click="addGroup(index)">
  10920. 添加</el-button>
  10921. <el-button type="primary" size="small" @click="deleteGroup(index)"
  10922. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  10923. </div> -->
  10924. </div>
  10925. </div>
  10926. <div class="groupContent">
  10927. <div class="groupTitle">请设置每组人数</div>
  10928. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  10929. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  10930. <el-input
  10931. v-model="groupJson.number"
  10932. style="width: 150px"
  10933. placeholder="请输入2-10的数字"
  10934. @change="numberPan"
  10935. ></el-input>
  10936. </div>
  10937. </div>
  10938. <span slot="footer" class="dialog-footer">
  10939. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  10940. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  10941. </span>
  10942. </el-dialog>
  10943. <el-dialog
  10944. title="作业提交"
  10945. :visible.sync="dialogVisibleGroupWork"
  10946. :append-to-body="true"
  10947. width="500px"
  10948. :before-close="handleClose"
  10949. class="dialog_change"
  10950. >
  10951. <div class="marginT">
  10952. <div>上传文件</div>
  10953. <div
  10954. class="chapter_add"
  10955. @click="addImg($event)"
  10956. v-if="studyJuri[0].cover.length == 0"
  10957. >
  10958. <div class="up_photo">
  10959. <img src="../../assets/icon/uploadImg.png" alt />
  10960. </div>
  10961. <!-- <input
  10962. type="file"
  10963. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10964. style="display: none"
  10965. @change="beforeUpload1($event, 1)"
  10966. /> -->
  10967. <input
  10968. type="file"
  10969. accept="*"
  10970. style="display: none"
  10971. @change="beforeUpload1($event, 1)"
  10972. />
  10973. </div>
  10974. <!-- capture="camera" -->
  10975. <div
  10976. class="chapter_add"
  10977. style="
  10978. display: flex;
  10979. width: 100%;
  10980. flex-direction: row;
  10981. flex-wrap: wrap;
  10982. justify-content: flex-start;
  10983. padding: 15px 0;
  10984. "
  10985. v-if="studyJuri[0].cover.length > 0"
  10986. >
  10987. <div class="upCover">
  10988. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10989. <img :src="word" alt v-else-if="fileType == 1" />
  10990. <img :src="video" alt v-else-if="fileType == 2" />
  10991. <img :src="word2" alt v-else-if="fileType == 3" />
  10992. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10993. <div class="deleteWord" @click="clean(1)">
  10994. <img src="../../assets/icon/deleteWorks.png" alt />
  10995. </div>
  10996. </div>
  10997. </div>
  10998. </div>
  10999. <div
  11000. class="upload_send"
  11001. @click="addCourseWorks2(taskCount)"
  11002. v-if="!proVisible"
  11003. >
  11004. 提交
  11005. </div>
  11006. </el-dialog>
  11007. <el-dialog
  11008. title="修改分组"
  11009. :visible.sync="dialogVisibleUpdateGroup"
  11010. :append-to-body="true"
  11011. width="350px"
  11012. :before-close="handleClose"
  11013. class="dialog_diy"
  11014. >
  11015. <div>
  11016. <h2>
  11017. {{ this.updateGroupUser.name }}
  11018. </h2>
  11019. <div style="color: rgb(171 171 171); margin-top: 10px">
  11020. 请选择要进入的分组
  11021. </div>
  11022. <el-radio-group v-model="checkChair">
  11023. <el-radio
  11024. style="display: block; margin-top: 20px"
  11025. v-for="(item, index) in updateGroupArray"
  11026. :label="item.label"
  11027. :key="index"
  11028. >{{ item.name }}</el-radio
  11029. >
  11030. </el-radio-group>
  11031. </div>
  11032. <span slot="footer" class="dialog-footer">
  11033. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11034. <el-button type="primary" @click="updateChair">确定</el-button>
  11035. </span>
  11036. </el-dialog>
  11037. <el-dialog
  11038. title="移除组员"
  11039. :visible.sync="dialogVisibleDeleteGroup"
  11040. :append-to-body="true"
  11041. width="350px"
  11042. :before-close="handleClose"
  11043. class="dialog_diy"
  11044. >
  11045. <div>
  11046. <h2>
  11047. {{ this.deleteGroupArray.name }}
  11048. </h2>
  11049. <div style="color: rgb(171 171 171); margin-top: 10px">
  11050. 请选择要删除的组员
  11051. </div>
  11052. <el-checkbox-group v-model="checkDeleteGroup">
  11053. <el-checkbox
  11054. style="display: flex; margin-top: 20px"
  11055. v-for="(item, index) in deleteGroupUser"
  11056. :label="item.userid"
  11057. :key="index"
  11058. >{{ item.name }}</el-checkbox
  11059. >
  11060. </el-checkbox-group>
  11061. </div>
  11062. <span slot="footer" class="dialog-footer">
  11063. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11064. <el-button type="primary" @click="deleteChair">确定</el-button>
  11065. </span>
  11066. </el-dialog>
  11067. <el-dialog
  11068. title="批量上传"
  11069. :visible.sync="dialogVisiblePl"
  11070. :append-to-body="true"
  11071. width="700px"
  11072. :before-close="handleClose"
  11073. class="dialog_change"
  11074. >
  11075. <div class="marginT">
  11076. <div class="plworkBox">
  11077. <div
  11078. class="chapter_add"
  11079. style="
  11080. display: flex;
  11081. width: 150px;
  11082. flex-direction: row;
  11083. flex-wrap: wrap;
  11084. justify-content: flex-start;
  11085. margin: 0 10px 10px 0;
  11086. "
  11087. v-for="(item, index) in plworkFile"
  11088. :key="index"
  11089. >
  11090. <div class="upCover2">
  11091. <img
  11092. :src="item.url"
  11093. alt
  11094. v-if="item.fileType == 1"
  11095. @click="previewImg(item.url)"
  11096. />
  11097. <img :src="word" alt v-else-if="item.fileType == 4" />
  11098. <img :src="video" alt v-else />
  11099. <!-- <span class="picName">{{ item.name }}</span> -->
  11100. <!-- <el-input
  11101. v-model="item.username"
  11102. placeholder="请输入学生名字"
  11103. style="margin-top: 10px"
  11104. ></el-input> -->
  11105. <div
  11106. class="pl_select_box"
  11107. @click="
  11108. getUpdateMore(true, checkUpload(), item.username, index)
  11109. "
  11110. >
  11111. {{ getSName(item.username) }}
  11112. </div>
  11113. <!-- <el-select
  11114. style="margin-top: 10px"
  11115. v-model="item.username"
  11116. filterable
  11117. allow-create
  11118. placeholder="请选择学生"
  11119. >
  11120. <el-option
  11121. v-for="item1 in checkUpload()"
  11122. :key="item1.userid"
  11123. :label="item1.name ? item1.name : item1.username"
  11124. :value="item1.userid"
  11125. >
  11126. </el-option>
  11127. </el-select> -->
  11128. <div class="deleteWord" @click="clean2(index)">
  11129. <img src="../../assets/icon/deleteWorks.png" alt />
  11130. </div>
  11131. </div>
  11132. </div>
  11133. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11134. <div class="up_photo2">
  11135. <img src="../../assets/icon/plwork.png" alt />
  11136. <span>点击上传文件</span>
  11137. </div>
  11138. <input
  11139. type="file"
  11140. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11141. multiple="multiple"
  11142. style="display: none"
  11143. @change="beforeUpload3($event, 6)"
  11144. />
  11145. </div>
  11146. </div>
  11147. </div>
  11148. <!-- capture="camera" -->
  11149. <div
  11150. class="upload_send"
  11151. @click="addCourseWorksPl(taskCount)"
  11152. v-if="!proVisible2"
  11153. >
  11154. 提交
  11155. </div>
  11156. </el-dialog>
  11157. <el-dialog
  11158. title="修改名称"
  11159. :visible.sync="dialogVisibleSname"
  11160. width="500px"
  11161. :before-close="handleClose"
  11162. class="dialog_diy"
  11163. center
  11164. >
  11165. <div
  11166. style="
  11167. text-align: center;
  11168. display: flex;
  11169. align-items: center;
  11170. justify-content: center;
  11171. "
  11172. >
  11173. <span class="tian1">名称</span>
  11174. <div
  11175. class="pl_select_box"
  11176. style="margin-left: 10px; width: 200px"
  11177. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11178. >
  11179. {{ getSName(worksSName) }}
  11180. </div>
  11181. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11182. placeholder="请选择学生">
  11183. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11184. :value="item.userid">
  11185. </el-option>
  11186. </el-select> -->
  11187. <!-- <el-input
  11188. v-model="worksSName"
  11189. style="width: 250px; margin: 15px 0px"
  11190. ></el-input> -->
  11191. </div>
  11192. <span slot="footer" class="dialog-footer">
  11193. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11194. <el-button type="primary" @click="updateName">确 定</el-button>
  11195. </span>
  11196. </el-dialog>
  11197. <el-dialog
  11198. title="英语写作"
  11199. :visible.sync="engDialogVisible"
  11200. :append-to-body="true"
  11201. width="800px"
  11202. :before-close="handleClose"
  11203. class="dialog_diy"
  11204. >
  11205. <onlineWrite
  11206. @setEnglish="setEnglishList"
  11207. :englishList="englishList"
  11208. ></onlineWrite>
  11209. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11210. <el-button @click="engDialogVisible = false">取 消</el-button>
  11211. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11212. </span>
  11213. </el-dialog>
  11214. <el-dialog
  11215. title="英语写作"
  11216. :visible.sync="engUpdateDialogVisible"
  11217. :append-to-body="true"
  11218. width="800px"
  11219. :before-close="handleClose"
  11220. class="dialog_diy fullStyle"
  11221. >
  11222. <div class="engUpBox">
  11223. <div class="engUpTop">
  11224. <div class="engTitle">
  11225. <div>作文题目:</div>
  11226. <div>{{ englishList1.engTitle }}</div>
  11227. </div>
  11228. <div class="engText">
  11229. <div>作文题目:</div>
  11230. <div v-html="englishList1.englishText"></div>
  11231. </div>
  11232. </div>
  11233. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11234. <div class="oldBox">
  11235. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11236. <div class="oldText">
  11237. <div class="detailBox">
  11238. <div class="oldDetail">
  11239. <div>标题:</div>
  11240. <div>{{ oldEnglishJson.engTitle }} </div>
  11241. </div>
  11242. <div class="oldDetail">
  11243. <div>正文:</div>
  11244. <div v-html="oldEnglishJson.engText"></div>
  11245. </div>
  11246. </div>
  11247. </div>
  11248. </div>
  11249. <div class="oldBox" v-if="userMes[0].type == 2">
  11250. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11251. <div class="oldText">
  11252. <div class="detailBox">
  11253. <div class="oldDetail">
  11254. <div>标题:</div>
  11255. <el-input v-model="newEnglishList.engTitle" />
  11256. </div>
  11257. <div class="oldDetail">
  11258. <div>正文:</div>
  11259. <el-input type="textarea"
  11260. :rows="10"
  11261. resize="none" v-model="newEnglishList.engText" />
  11262. </div>
  11263. </div>
  11264. </div>
  11265. </div>
  11266. <div class="oldBox" v-else-if="userMes[0].type == 1">
  11267. <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="newEnglishList.length > 0">
  11268. <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>
  11269. <div v-for="(item,index) in newEnglishList" :key="index" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: index == newEngIndex ? '#aacaff' : ''}" @click="setEngText(index)">{{ item.username }}</div>
  11270. </div>
  11271. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11272. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true">
  11273. <div class="detailBox">
  11274. <div class="oldDetail">
  11275. <div>标题:</div>
  11276. <el-input v-model="oldEnglishJson1.engTitle" />
  11277. </div>
  11278. <div class="oldDetail">
  11279. <div>正文:</div>
  11280. <el-input type="textarea"
  11281. :rows="10"
  11282. resize="none" v-model="oldEnglishJson1.engText" />
  11283. </div>
  11284. </div>
  11285. </div>
  11286. <div class="oldText" v-else-if="newEngIndex == -1 && !newEnglishList.length">
  11287. <div class="detailBox">
  11288. <div class="oldDetail">
  11289. <div>标题:</div>
  11290. <el-input v-model="newEnglishList.engTitle" />
  11291. </div>
  11292. <div class="oldDetail">
  11293. <div>正文:</div>
  11294. <el-input type="textarea"
  11295. :rows="10"
  11296. resize="none" v-model="newEnglishList.engText" />
  11297. </div>
  11298. </div>
  11299. </div>
  11300. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList.length > 0">
  11301. <div class="detailBox">
  11302. <div class="oldDetail">
  11303. <div>标题:</div>
  11304. <div v-if="userMes[0].userid != newEnglishList[newEngIndex].correct" v-html="JSON.parse(newEnglishList[newEngIndex].cWork).engTitle"></div>
  11305. <el-input v-else v-model="JSON.parse(newEnglishList[newEngIndex].cWork).engTitle" />
  11306. </div>
  11307. <div class="oldDetail">
  11308. <div>正文:</div>
  11309. <div v-if="userMes[0].userid != newEnglishList[newEngIndex].correct" v-html="JSON.parse(newEnglishList[newEngIndex].cWork).engText"></div>
  11310. <el-input v-else type="textarea"
  11311. :rows="10"
  11312. resize="none" v-model="JSON.parse(newEnglishList[newEngIndex].cWork).engText" />
  11313. </div>
  11314. </div>
  11315. </div>
  11316. </div>
  11317. </div>
  11318. </div>
  11319. <span slot="footer" class="dialog-footer">
  11320. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11321. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11322. </span>
  11323. </el-dialog>
  11324. <interVideo
  11325. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11326. :videoJson="videoJson"
  11327. :userid="userid"
  11328. :id="id"
  11329. :courseType="courseType"
  11330. :taskCount="taskCount"
  11331. :toolindex="toolindex"
  11332. ></interVideo>
  11333. <UpdateMore
  11334. :dialogVisibleMember.sync="dialogVisibleMember"
  11335. :cList="uploadStudentJuri"
  11336. :userid="userid"
  11337. :searchTN="worksSName2"
  11338. @setPlname="setPlname"
  11339. ></UpdateMore>
  11340. <wordCloud
  11341. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11342. :data="wordCloudData"
  11343. ></wordCloud>
  11344. <el-dialog
  11345. title="挑人"
  11346. :visible.sync="dialogVisiblePickPeople"
  11347. width="650px"
  11348. :before-close="handleClose"
  11349. class="dialog_diy"
  11350. center
  11351. >
  11352. <div class="pick_box">
  11353. <div
  11354. class="noWorksName"
  11355. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11356. v-for="(item, index) in uploadStudentJuri"
  11357. :key="index"
  11358. @click="pickStudent(item)"
  11359. >
  11360. {{ item.name }}
  11361. </div>
  11362. </div>
  11363. </el-dialog>
  11364. </div>
  11365. </template>
  11366. <script>
  11367. import "../../common/aws-sdk-2.235.1.min.js";
  11368. // import pdf from "../components/pdf3";
  11369. import pdf from "../components/vpdf";
  11370. import AskStatic from "../components/askStatic";
  11371. import AskStatic2 from "../components/askStatic2";
  11372. import AnswerData2 from "../components/answerData2";
  11373. import AnswerData from "../components/answerData";
  11374. import EditorBar from "../tools/wangEnduit.vue";
  11375. import Table from "../tools/table.vue";
  11376. import Time from "../tools/time.vue";
  11377. import Mind from "../tools/jsmind.vue";
  11378. import Sunburst from "../tools/sunburst";
  11379. import SeeBoard from "../tools/seeBoard";
  11380. import * as imageConversion from "image-conversion";
  11381. import Audio from "../components/audio.vue";
  11382. import ImgDraw from "../tools/imgDraw/imgDraw";
  11383. import { Empty } from "element-ui";
  11384. import RecordRTC from "recordrtc";
  11385. import interVideo from "../interVideo/index.vue";
  11386. import UpdateMore from "../updateMore/updateMore.vue";
  11387. import wordCloud from "../wordCloud/index.vue";
  11388. import axios from "axios";
  11389. import JSZip from "jszip";
  11390. import FileSaver from "file-saver";
  11391. import onlineWrite from "./commpont/onlineWrite";
  11392. const getFile = (url) => {
  11393. return new Promise((resolve, reject) => {
  11394. axios({
  11395. method: "get",
  11396. url,
  11397. responseType: "blob",
  11398. })
  11399. .then((data) => {
  11400. resolve({ data: data.data });
  11401. })
  11402. .catch((error) => {
  11403. resolve({ data: 1 });
  11404. // reject(error.toString());
  11405. });
  11406. });
  11407. };
  11408. export default {
  11409. components: {
  11410. EditorBar,
  11411. Time,
  11412. pdf,
  11413. AskStatic,
  11414. AskStatic2,
  11415. Mind,
  11416. Sunburst,
  11417. SeeBoard,
  11418. AnswerData2,
  11419. AnswerData,
  11420. Audio,
  11421. ImgDraw,
  11422. Table,
  11423. interVideo,
  11424. UpdateMore,
  11425. wordCloud,
  11426. onlineWrite,
  11427. },
  11428. data() {
  11429. return {
  11430. bg: null,
  11431. drawShow: false,
  11432. dialogVisible: false,
  11433. dialogVisiblePl: false,
  11434. commentDialogVisible: false,
  11435. dialogVisibleMember: false,
  11436. dialogVisibleWordCloud: false,
  11437. videoVisible: false,
  11438. isStar: false,
  11439. studentEvalDialogVisible: false,
  11440. studentEvalDialogVisibleTeacher: false,
  11441. dialogVisibleSelect: false,
  11442. dialogVisibleSelectTeacher: false,
  11443. dialogVisibleScore: false,
  11444. dialogVisibleSentence: false,
  11445. dialogVisibleSentenceTeacher: false,
  11446. dialogVisibleSentence1: false,
  11447. dialogVisibleWorks: false,
  11448. dialogVisibleTable: false,
  11449. dialogVisibleTableTeacher: false,
  11450. dialogVisibleWord: false,
  11451. dialogVisibleWordTeacher: false,
  11452. dialogVisibleTable2: false,
  11453. dialogVisibleTable3: false,
  11454. dialogVisibleGroupWork: false,
  11455. dialogVisibleUpdateGroup: false,
  11456. dialogVisibleDeleteGroup: false,
  11457. dialogVisibleSname: false,
  11458. dialogVisibleVideo: false,
  11459. dialogVisiblePickPeople: false,
  11460. worksSName: "",
  11461. classJuri: [],
  11462. uploadStudentJuri: [],
  11463. uploadCid: "",
  11464. snameWid: "",
  11465. sStudent: {},
  11466. sTool: "",
  11467. bzText: "",
  11468. commentDetail: [],
  11469. selectAnswer: [],
  11470. videoDetail: {},
  11471. selectJson: {},
  11472. eScore: { eBzText: "", eStar: [] },
  11473. id: this.$route.query.courseId,
  11474. userid: this.$route.query.userid,
  11475. classId: this.$route.query.cid,
  11476. // courseTypeLine: this.$route.query.type,
  11477. oid: this.$route.query.oid,
  11478. org: this.$route.query.org,
  11479. tType: this.$route.query.tType,
  11480. courseType: this.$route.query.type,
  11481. screenType: this.$route.query.screenType,
  11482. tcid2: this.$route.query.tcid,
  11483. tcid: "",
  11484. pptImgUrl: "",
  11485. pptImgUrl1: "",
  11486. commentText: "",
  11487. full: false,
  11488. sIsOpen: false,
  11489. IsLookOpen: false,
  11490. IsFollow: false,
  11491. pzDialog: false,
  11492. contentDialog: false,
  11493. mlDialog: false,
  11494. type: 1,
  11495. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11496. sentenceList1: [],
  11497. tableJson: [],
  11498. tableJsonO: [],
  11499. wordJson: [],
  11500. wordJsonO: [],
  11501. vedio: [],
  11502. text: [],
  11503. textList: [],
  11504. line: [],
  11505. lineList: [],
  11506. chapTools: [],
  11507. chapToolList: [],
  11508. file: [],
  11509. fileC: [],
  11510. vedioTime: [],
  11511. upToolImg: "",
  11512. preTime: 0,
  11513. rateList: {
  11514. ca: 0,
  11515. },
  11516. rateParams: [],
  11517. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11518. studyJuri: [
  11519. {
  11520. content: "",
  11521. cover: [],
  11522. upVedio: [],
  11523. upFile: [],
  11524. },
  11525. ],
  11526. isClose: 0,
  11527. plworkFile: [],
  11528. mr: require("../../assets/vedioPic.png"),
  11529. word: require("../../assets/icon/isWord.png"),
  11530. word2: require("../../assets/icon/word2.png"),
  11531. video: require("../../assets/icon/isVideo.png"),
  11532. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11533. likes: require("../../assets/icon/comment/likes.png"),
  11534. scoreImg: require("../../assets/score.png"),
  11535. courseDetail: {},
  11536. reply: "",
  11537. isSelect: false,
  11538. chapInfo: [],
  11539. chapInfoList: [],
  11540. taskCount: 0,
  11541. imgList: [],
  11542. noImgList: [],
  11543. pzList: [],
  11544. timeWorkList: [],
  11545. PlTextList: [
  11546. "Excellent!",
  11547. "nice!",
  11548. "很有创意!",
  11549. "还不错哦~",
  11550. "继续努力哦~",
  11551. ],
  11552. isClickNav: "",
  11553. navId: "",
  11554. playerOptions: {
  11555. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11556. autoplay: false, //如果true,浏览器准备好时开始回放。
  11557. muted: false, // 默认情况下将会消除任何音频。
  11558. loop: false, // 导致视频一结束就重新开始。
  11559. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11560. language: "zh-CN",
  11561. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11562. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11563. sources: [
  11564. {
  11565. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11566. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11567. },
  11568. ],
  11569. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11570. // poster: dataRes.imgUrl, //你的封面地址
  11571. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11572. controlBar: {
  11573. timeDivider: true, //当前时间和持续时间的分隔符
  11574. durationDisplay: true, //显示持续时间
  11575. remainingTimeDisplay: false, //是否显示剩余时间功能
  11576. fullscreenToggle: true, //全屏按钮
  11577. },
  11578. },
  11579. playerOptions1: {
  11580. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11581. autoplay: false, //如果true,浏览器准备好时开始回放。
  11582. muted: false, // 默认情况下将会消除任何音频。
  11583. loop: false, // 导致视频一结束就重新开始。
  11584. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11585. language: "zh-CN",
  11586. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11587. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11588. sources: [
  11589. {
  11590. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11591. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11592. },
  11593. ],
  11594. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11595. // poster: dataRes.imgUrl, //你的封面地址
  11596. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11597. controlBar: {
  11598. timeDivider: true, //当前时间和持续时间的分隔符
  11599. durationDisplay: true, //显示持续时间
  11600. remainingTimeDisplay: false, //是否显示剩余时间功能
  11601. fullscreenToggle: true, //全屏按钮
  11602. },
  11603. },
  11604. playerO: {},
  11605. noneBtnImg: false,
  11606. proVisible: false,
  11607. proVisible2: false,
  11608. progress: 0,
  11609. isFinishSize: 0,
  11610. isAllSize: 0,
  11611. questionAnswer: "",
  11612. answerQ: "", //问答标题
  11613. rateJson: [],
  11614. wbCount: 0,
  11615. wordCount: 0,
  11616. mindCount: 0,
  11617. askCount: 0,
  11618. noteCount: 0,
  11619. mindNetWorkCount: 0,
  11620. libraryCount: 0,
  11621. workCount: 0,
  11622. timeCount: 0,
  11623. answerCount: 0,
  11624. trainCount: 0,
  11625. evalCount: 0,
  11626. dialogImageUrl: "",
  11627. pictureDialog: false,
  11628. toolTypeList: [],
  11629. dialogVisible1: false,
  11630. dialogVisible2: false,
  11631. dialogVisible3: false,
  11632. dialogVisible6: false,
  11633. dialogVisible4: false,
  11634. isNoHomeWork: false,
  11635. dialogVisible5: false,
  11636. dialogVisible5Teacher: false,
  11637. dialogVisibleChoice: false,
  11638. dialogVisibleChoiceTeacher: false,
  11639. answerDialogVisible: false,
  11640. answerDialogVisibleTeacher: false,
  11641. juriVisible: false,
  11642. timeDialogVisible: false,
  11643. replyDialogVisible: false,
  11644. toolDialogVisible: false,
  11645. engDialogVisible: false,
  11646. engUpdateDialogVisible:false,
  11647. isNoUserid:false,
  11648. engListLength:0,
  11649. engWid:"",
  11650. newEnglishList:{
  11651. engTitle:"",
  11652. engText:"",
  11653. },
  11654. oldEnglishJson:{},
  11655. oldEnglishJson1:{},
  11656. englishList1:{},
  11657. englishList:{},
  11658. topHeight:0,
  11659. newEngIndex:-1,
  11660. englishToolIndex:0,
  11661. userMes:{},
  11662. englishToolIndex:0,
  11663. replyIndex: 0,
  11664. replyPid: "",
  11665. radio: [],
  11666. isAsk: false,
  11667. askJson: {
  11668. askCount: 1,
  11669. askTitle: "",
  11670. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11671. },
  11672. testJson: {},
  11673. englishList: {},
  11674. topHeight:0,
  11675. checkJson: [],
  11676. askList: [],
  11677. answerList: [],
  11678. navList: [],
  11679. addPzDialog: false,
  11680. pzConText: "",
  11681. worksStudent: [],
  11682. isCloseList: [],
  11683. workStudent: [],
  11684. groupStudent: [],
  11685. groupStudentUid: [],
  11686. noWorksS: [],
  11687. isWorksS: [],
  11688. noWorksStudent: [],
  11689. toolindex: 0,
  11690. toolDetailIndex: null,
  11691. groupIndex: 0,
  11692. workTypeB: false,
  11693. workTypeC: false,
  11694. isAnswer: false,
  11695. isHovered: false,
  11696. isHovered1: false,
  11697. isHovered2: false,
  11698. timer: null,
  11699. opertimer: null,
  11700. showType: 0,
  11701. fileType: 0,
  11702. showPDF: false,
  11703. noteName: "",
  11704. evaJuri: [],
  11705. evalua: "",
  11706. eTitle: "",
  11707. eName: "",
  11708. eJson: {},
  11709. fid: "", //一级
  11710. sid: "", //二级
  11711. tid: "", //二级
  11712. typeMode: 1,
  11713. eJSONNum: 0,
  11714. Etype: 1,
  11715. data: {
  11716. meta: {
  11717. name: "example",
  11718. author: "dd@163.com",
  11719. version: "0.2",
  11720. },
  11721. format: "node_array",
  11722. data: [{ id: "root", isroot: true, topic: "" }],
  11723. },
  11724. fullDialogVisible: false,
  11725. fulltype: "",
  11726. fullUrl: "",
  11727. commentIndexJson: {},
  11728. Stbodywidth: 0,
  11729. ispzType: 0,
  11730. pzType: 1,
  11731. wScore: 0,
  11732. scoreDetail: "",
  11733. videoStart: false,
  11734. recorder: null,
  11735. groupJson: {},
  11736. islock: false,
  11737. groupJson2: {},
  11738. dialogVisibleGroup: false,
  11739. dialogVisibleGroup2: false,
  11740. updateGroupArray: [],
  11741. updateGroupUser: {},
  11742. deleteGroupUser: [],
  11743. deleteGroupArray: {},
  11744. checkChair: "",
  11745. checkDeleteGroup: [],
  11746. inviteCode: "",
  11747. courseGroupStudent: [],
  11748. courseGroupStudentUid: [],
  11749. courseGroup: {},
  11750. isGroup: false,
  11751. toolIndex: null,
  11752. tool: {},
  11753. isWorkTool: [
  11754. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11755. ], //, 40
  11756. videoJson: {},
  11757. toolType: 0,
  11758. checktoolArray: [],
  11759. vChapterData: [],
  11760. isUpdateToolDetail: false,
  11761. isUpdateToolDetail1: false,
  11762. updateToolDetailInner: "",
  11763. checkboxList: [],
  11764. plIndex: "",
  11765. worksSName2: "",
  11766. worksSid: "",
  11767. wordCloudData: [],
  11768. isPickStudent: [],
  11769. pzStype: 1,
  11770. myAnList: {},
  11771. };
  11772. },
  11773. methods: {
  11774. setEnglishList(engList) {
  11775. this.myAnList = engList;
  11776. },
  11777. addToolChoose() {
  11778. if (!this.checktoolArray.length) {
  11779. this.$message.error("请选择要添加的任务");
  11780. return;
  11781. }
  11782. if (
  11783. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11784. this.taskCount
  11785. ].toolChoose[0].tool.length
  11786. ) {
  11787. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11788. this.taskCount
  11789. ].toolChoose[0].tool = this.checktoolArray;
  11790. } else {
  11791. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11792. this.taskCount
  11793. ].toolChoose.push({
  11794. tool: this.checktoolArray,
  11795. toolDetail: "",
  11796. toolType: 0,
  11797. askCount: 1,
  11798. askTitle: "",
  11799. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11800. });
  11801. }
  11802. let params = [
  11803. {
  11804. cid: this.id,
  11805. chapters: JSON.stringify(this.chapInfoList),
  11806. uid: this.userid,
  11807. unitIndex: this.courseType,
  11808. },
  11809. ];
  11810. this.ajax
  11811. .post(this.$store.state.api + "updateWorkNew4", params)
  11812. .then((res) => {
  11813. this.$message({
  11814. message: "添加成功",
  11815. type: "success",
  11816. });
  11817. this.checktoolArray = [];
  11818. this.getCourseDetail(2);
  11819. this.checkBz(
  11820. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11821. this.taskCount
  11822. ].toolChoose.length - 1
  11823. );
  11824. this.toolDialogVisible = false;
  11825. this.refreshCourse();
  11826. this.$forceUpdate();
  11827. })
  11828. .catch((err) => {
  11829. console.error(err);
  11830. });
  11831. },
  11832. checkBz(index) {
  11833. this.isUpdateToolDetail = false;
  11834. this.$forceUpdate();
  11835. setTimeout(() => {
  11836. document.scrollingElement.scrollTop =
  11837. document.querySelectorAll(".filebox")[index].offsetTop +
  11838. document.querySelector(".student_body").offsetTop;
  11839. }, 500);
  11840. },
  11841. updateToolDetail(i) {
  11842. this.toolDetailIndex = i;
  11843. if (!this.isUpdateToolDetail1) {
  11844. this.isUpdateToolDetail1 = true;
  11845. this.updateToolDetailInner = JSON.parse(
  11846. JSON.stringify(
  11847. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11848. this.taskCount
  11849. ].toolChoose[i].toolDetail
  11850. )
  11851. );
  11852. } else {
  11853. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11854. this.taskCount
  11855. ].toolChoose[i].toolDetail = JSON.parse(
  11856. JSON.stringify(this.updateToolDetailInner)
  11857. );
  11858. let params = [
  11859. {
  11860. cid: this.id,
  11861. chapters: JSON.stringify(this.chapInfoList),
  11862. uid: this.userid,
  11863. unitIndex: this.courseType,
  11864. },
  11865. ];
  11866. this.ajax
  11867. .post(this.$store.state.api + "updateWorkNew4", params)
  11868. .then((res) => {
  11869. this.isUpdateToolDetail1 = false;
  11870. this.$message({
  11871. message: "修改成功",
  11872. type: "success",
  11873. });
  11874. this.toolDetailIndex = null;
  11875. this.updateToolDetailInner = "";
  11876. this.getCourseDetail(2);
  11877. this.$forceUpdate();
  11878. })
  11879. .catch((err) => {
  11880. console.error(err);
  11881. });
  11882. }
  11883. },
  11884. jumpGj(i, j, k, l) {
  11885. for (var z = 0; z < this.navList.length; z++) {
  11886. for (var q = 0; q < this.navList[z].task.length; q++) {
  11887. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  11888. this.navList[z].task[q].tool[w].isTool = false;
  11889. }
  11890. }
  11891. }
  11892. console.log(this.navList);
  11893. this.navList[i].task[j].tool[k].isTool =
  11894. !this.navList[i].task[j].tool[k].isTool;
  11895. var a = document.scrollingElement;
  11896. let target = document.querySelector(`#gj${k}`);
  11897. if (target) {
  11898. target.scrollIntoView(true);
  11899. setTimeout(() => {
  11900. a.scrollTop = a.scrollTop - 150;
  11901. }, 0);
  11902. }
  11903. if (l) {
  11904. this.courseType = i;
  11905. this.navId = l;
  11906. this.taskCount = j;
  11907. this.selectPz();
  11908. this.getHomeWork();
  11909. this.getCourseDetail(2);
  11910. }
  11911. // var b = this.$refs["bz" + k][0];
  11912. // a.scrollTop = b.offsetTop;
  11913. },
  11914. addTools2(i) {
  11915. if (i == 4) {
  11916. // this.openTools2(4);
  11917. this.$message.error("暂未开放");
  11918. return;
  11919. }
  11920. if (i == 45) {
  11921. // this.openTools2(45);
  11922. this.$message.error("暂未开放");
  11923. return;
  11924. }
  11925. if (i == 47) {
  11926. // this.openTools2(47);
  11927. this.$message.error("暂未开放");
  11928. return;
  11929. }
  11930. if (i == 49) {
  11931. // this.openTools2(49);
  11932. this.$message.error("暂未开放");
  11933. return;
  11934. }
  11935. if (i == 62) {
  11936. // this.openTools(itemTaskIndex, 62, toolIndex);
  11937. this.$message.error("暂未开放");
  11938. return;
  11939. }
  11940. if (i == 15) {
  11941. // this.openTools(itemTaskIndex, 15, toolIndex);
  11942. this.$message.error("暂未开放");
  11943. return;
  11944. }
  11945. if (i == 40) {
  11946. // this.openTools(itemTaskIndex, 40, toolIndex);
  11947. this.$message.error("暂未开放");
  11948. return;
  11949. }
  11950. if (i == 41) {
  11951. // this.openTools(itemTaskIndex, 41, toolIndex);
  11952. this.$message.error("暂未开放");
  11953. return;
  11954. }
  11955. if (i == 42) {
  11956. // this.openTools(itemTaskIndex, 42, toolIndex);
  11957. this.$message.error("暂未开放");
  11958. return;
  11959. }
  11960. if (this.checktoolArray.length > 0) {
  11961. if (this.checktoolArray.indexOf(i) != -1) {
  11962. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  11963. } else {
  11964. this.checktoolArray = [];
  11965. this.checktoolArray.push(i);
  11966. }
  11967. } else {
  11968. this.checktoolArray.push(i);
  11969. }
  11970. this.$forceUpdate();
  11971. },
  11972. jump() {
  11973. window.parent.postMessage({ tools: "43" }, "*");
  11974. },
  11975. getUpdateMore(f, checkboxList, searchTN, index) {
  11976. this.dialogVisibleMember = f;
  11977. this.checkboxList = checkboxList;
  11978. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  11979. this.plIndex = index;
  11980. },
  11981. setPlname(a) {
  11982. if (this.plworkFile.length) {
  11983. this.plworkFile[this.plIndex].username = a;
  11984. } else {
  11985. this.worksSName = a;
  11986. }
  11987. this.dialogVisibleMember = false;
  11988. },
  11989. previewImg(url) {
  11990. this.$hevueImgPreview(url);
  11991. },
  11992. checkImg(list) {
  11993. if (!list.length) {
  11994. return;
  11995. }
  11996. this.$hevueImgPreview({
  11997. multiple: true, // 开启多图预览模式
  11998. imgList: list, // 需要预览的多图数组
  11999. });
  12000. },
  12001. change(val) {
  12002. console.log(val);
  12003. },
  12004. goTo(path) {
  12005. this.$router.push(path);
  12006. },
  12007. handlePictureCardPreview(url) {
  12008. this.dialogImageUrl = url;
  12009. this.pictureDialog = true;
  12010. },
  12011. clean(type) {
  12012. if (type == 1) {
  12013. this.studyJuri[0].cover.splice(0, 1);
  12014. } else if (type == 2) {
  12015. this.studyJuri[0].upVedio.splice(0, 1);
  12016. } else {
  12017. this.studyJuri[0].upFile.splice(0, 1);
  12018. }
  12019. },
  12020. clean2(index) {
  12021. this.plworkFile.splice(index, 1);
  12022. },
  12023. handleClose(done) {
  12024. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12025. this.videoDetail.sources[0].src = "";
  12026. }
  12027. this.commentIndexJson = {};
  12028. done();
  12029. },
  12030. fullTools() {
  12031. this.full = !this.full;
  12032. },
  12033. imgChange(file, fileList, type) {
  12034. if (type == 1) {
  12035. var _tmp = this.studyJuri[0].cover;
  12036. } else if (type == 2) {
  12037. var _tmp = this.studyJuri[0].upVedio;
  12038. } else {
  12039. var _tmp = this.studyJuri[0].upFile;
  12040. }
  12041. this.noneBtnImg = _tmp.length >= 1;
  12042. },
  12043. setContent(bool) {
  12044. this.contentDialog = bool;
  12045. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12046. document.querySelector(".workd_media").style.height = "650px";
  12047. } else if (document.querySelector(".workd_media")) {
  12048. document.querySelector(".workd_media").style.height = "auto";
  12049. }
  12050. },
  12051. setContent2(bool) {
  12052. this.mlDialog = bool;
  12053. if (
  12054. bool &&
  12055. this.contentDialog &&
  12056. document.querySelector(".workd_media")
  12057. ) {
  12058. document.querySelector(".workd_media").style.height = "650px";
  12059. } else if (document.querySelector(".workd_media")) {
  12060. document.querySelector(".workd_media").style.height = "auto";
  12061. }
  12062. },
  12063. openToolAll() {
  12064. this.toolDialogVisible = true;
  12065. },
  12066. addImg(e) {
  12067. var el = e.currentTarget;
  12068. // this.$message.success('触发上传')
  12069. el.getElementsByTagName("input")[0].click();
  12070. e.target.value = "";
  12071. },
  12072. addSelectAnswer() {
  12073. let params = [
  12074. {
  12075. uid: this.userid,
  12076. cid: this.id,
  12077. stage: this.courseType,
  12078. task: this.taskCount,
  12079. tool: this.toolindex,
  12080. content: this.selectAnswer.answer,
  12081. type: 7,
  12082. },
  12083. ];
  12084. this.ajax
  12085. .post(this.$store.state.api + "addCourseWorks", params)
  12086. .then((res) => {
  12087. this.$message({
  12088. message: "提交成功",
  12089. type: "success",
  12090. });
  12091. this.dialogVisibleSelect = false;
  12092. // this.selectAnswer = {};
  12093. this.selectSWorks();
  12094. this.selectStudent();
  12095. })
  12096. .catch((err) => {
  12097. this.$message.error("提交失败");
  12098. console.error(err);
  12099. });
  12100. },
  12101. addSelectAnswerTeacher() {
  12102. let params = [
  12103. {
  12104. uid: this.sStudent.userid,
  12105. cid: this.id,
  12106. stage: this.courseType,
  12107. task: this.taskCount,
  12108. tool: this.toolindex,
  12109. content: this.selectAnswer.answer,
  12110. type: 7,
  12111. },
  12112. ];
  12113. this.ajax
  12114. .post(this.$store.state.api + "addCourseWorks", params)
  12115. .then((res) => {
  12116. this.$message({
  12117. message: "提交成功",
  12118. type: "success",
  12119. });
  12120. this.dialogVisibleSelectTeacher = false;
  12121. // this.selectAnswer = {};
  12122. this.selectSWorks();
  12123. this.selectStudent();
  12124. })
  12125. .catch((err) => {
  12126. this.$message.error("提交失败");
  12127. console.error(err);
  12128. });
  12129. },
  12130. addSenWorks() {
  12131. for (var i = 0; i < this.sentenceList.length; i++) {
  12132. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12133. if (
  12134. this.sentenceList[i].chooseSenList[j] == undefined ||
  12135. this.sentenceList[i].chooseSenList[j] == ""
  12136. ) {
  12137. this.$message.error("请将答案填写完整!");
  12138. return;
  12139. }
  12140. }
  12141. }
  12142. let params = [
  12143. {
  12144. uid: this.userid,
  12145. cid: this.id,
  12146. stage: this.courseType,
  12147. task: this.taskCount,
  12148. tool: this.toolindex,
  12149. content: JSON.stringify(this.sentenceList),
  12150. type: 9,
  12151. },
  12152. ];
  12153. this.ajax
  12154. .post(this.$store.state.api + "addCourseWorks", params)
  12155. .then((res) => {
  12156. this.$message({
  12157. message: "提交成功",
  12158. type: "success",
  12159. });
  12160. this.dialogVisibleSentence = false;
  12161. // this.selectAnswer = {};
  12162. this.selectSWorks();
  12163. this.selectStudent();
  12164. })
  12165. .catch((err) => {
  12166. this.$message.error("提交失败");
  12167. console.error(err);
  12168. });
  12169. },
  12170. addSenWorksTeacher() {
  12171. for (var i = 0; i < this.sentenceList.length; i++) {
  12172. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12173. if (
  12174. this.sentenceList[i].chooseSenList[j] == undefined ||
  12175. this.sentenceList[i].chooseSenList[j] == ""
  12176. ) {
  12177. this.$message.error("请将答案填写完整!");
  12178. return;
  12179. }
  12180. }
  12181. }
  12182. let params = [
  12183. {
  12184. uid: this.sStudent.userid,
  12185. cid: this.id,
  12186. stage: this.courseType,
  12187. task: this.taskCount,
  12188. tool: this.toolindex,
  12189. content: JSON.stringify(this.sentenceList),
  12190. type: 9,
  12191. },
  12192. ];
  12193. this.ajax
  12194. .post(this.$store.state.api + "addCourseWorks", params)
  12195. .then((res) => {
  12196. this.$message({
  12197. message: "提交成功",
  12198. type: "success",
  12199. });
  12200. this.dialogVisibleSentenceTeacher = false;
  12201. // this.selectAnswer = {};
  12202. this.selectSWorks();
  12203. this.selectStudent();
  12204. })
  12205. .catch((err) => {
  12206. this.$message.error("提交失败");
  12207. console.error(err);
  12208. });
  12209. },
  12210. returnTableText() {
  12211. this.$confirm("确定还原此模板吗?", "提示", {
  12212. confirmButtonText: "确定",
  12213. cancelButtonText: "取消",
  12214. type: "warning",
  12215. })
  12216. .then(() => {
  12217. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12218. })
  12219. .catch(() => {});
  12220. },
  12221. addTableWorks() {
  12222. let params = [
  12223. {
  12224. uid: this.userid,
  12225. cid: this.id,
  12226. stage: this.courseType,
  12227. task: this.taskCount,
  12228. tool: this.toolindex,
  12229. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12230. type: 10,
  12231. },
  12232. ];
  12233. this.ajax
  12234. .post(this.$store.state.api + "addCourseWorks", params)
  12235. .then((res) => {
  12236. this.$message({
  12237. message: "提交成功",
  12238. type: "success",
  12239. });
  12240. this.dialogVisibleTable = false;
  12241. // this.selectAnswer = {};
  12242. this.selectSWorks();
  12243. this.selectStudent();
  12244. })
  12245. .catch((err) => {
  12246. this.$message.error("提交失败");
  12247. console.error(err);
  12248. });
  12249. },
  12250. tableRowClassName({ row, rowIndex }) {
  12251. if ((rowIndex + 1) % 2 === 0) {
  12252. return "even_row";
  12253. } else {
  12254. return "";
  12255. }
  12256. },
  12257. addTableWorksTeacher() {
  12258. let params = [
  12259. {
  12260. uid: this.sStudent.userid,
  12261. cid: this.id,
  12262. stage: this.courseType,
  12263. task: this.taskCount,
  12264. tool: this.toolindex,
  12265. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12266. type: 10,
  12267. },
  12268. ];
  12269. this.ajax
  12270. .post(this.$store.state.api + "addCourseWorks", params)
  12271. .then((res) => {
  12272. this.$message({
  12273. message: "提交成功",
  12274. type: "success",
  12275. });
  12276. this.dialogVisibleTableTeacher = false;
  12277. // this.selectAnswer = {};
  12278. this.selectSWorks();
  12279. this.selectStudent();
  12280. })
  12281. .catch((err) => {
  12282. this.$message.error("提交失败");
  12283. console.error(err);
  12284. });
  12285. },
  12286. returnWordText() {
  12287. this.$confirm("确定还原此模板吗?", "提示", {
  12288. confirmButtonText: "确定",
  12289. cancelButtonText: "取消",
  12290. type: "warning",
  12291. })
  12292. .then(() => {
  12293. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  12294. })
  12295. .catch(() => {});
  12296. },
  12297. addWordWorks() {
  12298. let params = [
  12299. {
  12300. uid: this.userid,
  12301. cid: this.id,
  12302. stage: this.courseType,
  12303. task: this.taskCount,
  12304. tool: this.toolindex,
  12305. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12306. type: 13,
  12307. atool: 52,
  12308. },
  12309. ];
  12310. this.ajax
  12311. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12312. .then((res) => {
  12313. this.$message({
  12314. message: "提交成功",
  12315. type: "success",
  12316. });
  12317. this.dialogVisibleWord = false;
  12318. // this.selectAnswer = {};
  12319. this.selectSWorks();
  12320. this.selectStudent();
  12321. })
  12322. .catch((err) => {
  12323. this.$message.error("提交失败");
  12324. console.error(err);
  12325. });
  12326. },
  12327. addWordWorksTeacher() {
  12328. let params = [
  12329. {
  12330. uid: this.sStudent.userid,
  12331. cid: this.id,
  12332. stage: this.courseType,
  12333. task: this.taskCount,
  12334. tool: this.toolindex,
  12335. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12336. type: 13,
  12337. atool: 52,
  12338. },
  12339. ];
  12340. this.ajax
  12341. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12342. .then((res) => {
  12343. this.$message({
  12344. message: "提交成功",
  12345. type: "success",
  12346. });
  12347. this.dialogVisibleWordTeacher = false;
  12348. // this.selectAnswer = {};
  12349. this.selectSWorks();
  12350. this.selectStudent();
  12351. })
  12352. .catch((err) => {
  12353. this.$message.error("提交失败");
  12354. console.error(err);
  12355. });
  12356. },
  12357. addCourseWorks(i) {
  12358. var typesql;
  12359. if (this.fileType === 0) {
  12360. typesql = 1;
  12361. } else if (this.fileType === 1) {
  12362. typesql = 4;
  12363. } else if (this.fileType === 2) {
  12364. typesql = 5;
  12365. } else if (this.fileType === 3) {
  12366. typesql = 12;
  12367. }
  12368. if (!this.studyJuri[0].cover[0].url) {
  12369. this.$message.error("请上传文件");
  12370. return;
  12371. }
  12372. let params = [
  12373. {
  12374. uid: this.userid,
  12375. cid: this.id,
  12376. stage: this.courseType,
  12377. task: i,
  12378. tool: this.toolindex,
  12379. content: this.studyJuri[0].cover[0].url,
  12380. type: typesql,
  12381. },
  12382. ];
  12383. this.ajax
  12384. .post(this.$store.state.api + "addCourseWorksR", params)
  12385. .then((res) => {
  12386. this.$message({
  12387. message: "提交成功",
  12388. type: "success",
  12389. });
  12390. this.studyJuri[0].cover = [];
  12391. this.dialogVisible = false;
  12392. this.getCourseDetail(2);
  12393. })
  12394. .catch((err) => {
  12395. this.$message.error("提交失败");
  12396. console.error(err);
  12397. });
  12398. },
  12399. addCourseWorksPl(i) {
  12400. let _files = this.plworkFile;
  12401. var c = 1;
  12402. for (var k = 0; k < _files.length; k++) {
  12403. if (!_files[k].username) {
  12404. c = 2;
  12405. }
  12406. }
  12407. if (c == 2) {
  12408. this.$message.error("请填写学生姓名");
  12409. return;
  12410. }
  12411. let params = [
  12412. {
  12413. ateacher: this.userid,
  12414. cid: this.id,
  12415. stage: this.courseType,
  12416. task: i,
  12417. tool: this.toolindex,
  12418. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12419. },
  12420. ];
  12421. this.ajax
  12422. .post(this.$store.state.api + "addCourseWorksPl", params)
  12423. .then((res) => {
  12424. this.$message({
  12425. message: "提交成功",
  12426. type: "success",
  12427. });
  12428. this.plworkFile = [];
  12429. this.dialogVisiblePl = false;
  12430. this.getCourseDetail(2);
  12431. })
  12432. .catch((err) => {
  12433. this.$message.error("提交失败");
  12434. console.error(err);
  12435. });
  12436. },
  12437. addCourseWorks2(i) {
  12438. var typesql;
  12439. if (this.fileType === 0) {
  12440. typesql = 0;
  12441. } else if (this.fileType === 1) {
  12442. typesql = 1;
  12443. } else if (this.fileType === 2) {
  12444. typesql = 3;
  12445. } else if (this.fileType === 3) {
  12446. typesql = 12;
  12447. }
  12448. if (!this.studyJuri[0].cover[0].url) {
  12449. this.$message.error("请上传文件");
  12450. return;
  12451. }
  12452. let params = [
  12453. {
  12454. uid: this.userid,
  12455. cid: this.id,
  12456. stage: this.courseType,
  12457. task: i,
  12458. tool: this.toolindex,
  12459. content: JSON.stringify({
  12460. type: typesql,
  12461. groupIndex: this.groupIndex,
  12462. url: this.studyJuri[0].cover[0].url,
  12463. }).replaceAll(/%/g, "%25"),
  12464. type: 11,
  12465. atool: 49,
  12466. text: "",
  12467. },
  12468. ];
  12469. this.ajax
  12470. .post(this.$store.state.api + "addCourseWorks5", params)
  12471. .then((res) => {
  12472. this.$message({
  12473. message: "提交成功",
  12474. type: "success",
  12475. });
  12476. this.studyJuri[0].cover = [];
  12477. this.dialogVisibleGroupWork = false;
  12478. this.getCourseDetail(2);
  12479. })
  12480. .catch((err) => {
  12481. this.$message.error("提交失败");
  12482. console.error(err);
  12483. });
  12484. },
  12485. addEnglishWork() {
  12486. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  12487. this.$message.error("请输入作文标题和正文!");
  12488. return;
  12489. }
  12490. let params = [
  12491. {
  12492. uid: this.userid,
  12493. cid: this.id,
  12494. stage: this.courseType,
  12495. task: this.taskCount,
  12496. tool: this.englishToolIndex,
  12497. content: JSON.stringify(this.myAnList),
  12498. type: 16,
  12499. atool: 69,
  12500. text: "",
  12501. },
  12502. ];
  12503. this.ajax
  12504. .post(this.$store.state.api + "addCourseWorks5", params)
  12505. .then((res) => {
  12506. this.$message({
  12507. message: "提交成功",
  12508. type: "success",
  12509. });
  12510. this.myAnList = {};
  12511. this.englishToolIndex = 0;
  12512. this.engDialogVisible = false;
  12513. this.selectSWorks();
  12514. this.selectStudent();
  12515. })
  12516. .catch((err) => {
  12517. this.$message.error("提交失败");
  12518. console.error(err);
  12519. });
  12520. },
  12521. addCourseWorksGong(i, data, tool) {
  12522. let params = [
  12523. {
  12524. uid: this.userid,
  12525. cid: this.id,
  12526. stage: this.courseType,
  12527. task: this.taskCount,
  12528. tool: i,
  12529. content: data,
  12530. type: 12,
  12531. atool: tool,
  12532. text: "",
  12533. },
  12534. ];
  12535. this.ajax
  12536. .post(this.$store.state.api + "addCourseWorks5", params)
  12537. .then((res) => {
  12538. this.$message({
  12539. message: "提交成功",
  12540. type: "success",
  12541. });
  12542. this.studyJuri[0].cover = [];
  12543. this.selectSWorks();
  12544. this.selectStudent();
  12545. })
  12546. .catch((err) => {
  12547. this.$message.error("提交失败");
  12548. console.error(err);
  12549. });
  12550. },
  12551. addCourseWorksGongTeacher(i, data, tool) {
  12552. let params = [
  12553. {
  12554. uid: this.sStudent.userid,
  12555. cid: this.id,
  12556. stage: this.courseType,
  12557. task: this.taskCount,
  12558. tool: i,
  12559. content: data,
  12560. type: 12,
  12561. atool: tool,
  12562. text: "",
  12563. },
  12564. ];
  12565. this.ajax
  12566. .post(this.$store.state.api + "addCourseWorks5", params)
  12567. .then((res) => {
  12568. this.$message({
  12569. message: "提交成功",
  12570. type: "success",
  12571. });
  12572. this.studyJuri[0].cover = [];
  12573. this.dialogVisibleWorks = false;
  12574. this.selectSWorks();
  12575. this.selectStudent();
  12576. })
  12577. .catch((err) => {
  12578. this.$message.error("提交失败");
  12579. console.error(err);
  12580. });
  12581. },
  12582. addCourseWorksGongPl(i, data, tool, type) {
  12583. let params = [
  12584. {
  12585. uid: this.sStudent.userid,
  12586. cid: this.id,
  12587. stage: this.courseType,
  12588. task: this.taskCount,
  12589. tool: i,
  12590. content: data,
  12591. type: type,
  12592. atool: tool,
  12593. text: "",
  12594. },
  12595. ];
  12596. this.ajax
  12597. .post(this.$store.state.api + "addCourseWorks5", params)
  12598. .then((res) => {
  12599. this.$message({
  12600. message: "提交成功",
  12601. type: "success",
  12602. });
  12603. this.studyJuri[0].cover = [];
  12604. this.dialogVisibleWorks = false;
  12605. this.selectSWorks();
  12606. this.selectStudent();
  12607. })
  12608. .catch((err) => {
  12609. this.$message.error("提交失败");
  12610. console.error(err);
  12611. });
  12612. },
  12613. addCourseWorksTeacher(i) {
  12614. var typesql;
  12615. if (this.sTool == 32) {
  12616. this.addCourseWorksGongTeacher(
  12617. this.toolindex,
  12618. this.studyJuri[0].cover[0].url,
  12619. this.sTool
  12620. );
  12621. return;
  12622. }
  12623. if (this.fileType === 0) {
  12624. typesql = 1;
  12625. } else if (this.fileType === 1) {
  12626. typesql = 4;
  12627. } else if (this.fileType === 2) {
  12628. typesql = 5;
  12629. } else if (this.fileType === 3) {
  12630. typesql = 12;
  12631. }
  12632. if (this.sTool == 50) {
  12633. this.addCourseWorksGongPl(
  12634. this.toolindex,
  12635. this.studyJuri[0].cover[0].url,
  12636. this.sTool,
  12637. typesql
  12638. );
  12639. return;
  12640. }
  12641. if (!this.studyJuri[0].cover[0].url) {
  12642. this.$message.error("请上传文件");
  12643. return;
  12644. }
  12645. let params = [
  12646. {
  12647. uid: this.sStudent.userid,
  12648. cid: this.id,
  12649. stage: this.courseType,
  12650. task: i,
  12651. tool: this.toolindex,
  12652. content: this.studyJuri[0].cover[0].url,
  12653. type: typesql,
  12654. ateacher: this.userid,
  12655. },
  12656. ];
  12657. this.ajax
  12658. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12659. .then((res) => {
  12660. this.$message({
  12661. message: "提交成功",
  12662. type: "success",
  12663. });
  12664. this.studyJuri[0].cover = [];
  12665. this.dialogVisibleWorks = false;
  12666. this.getCourseDetail(2);
  12667. })
  12668. .catch((err) => {
  12669. this.$message.error("提交失败");
  12670. console.error(err);
  12671. });
  12672. },
  12673. selectUploadStudent(type) {
  12674. const loading = this.$loading.service({
  12675. background: "rgba(255, 255, 255, 0.7)",
  12676. target: document.body,
  12677. });
  12678. let params = {
  12679. cid: this.uploadCid,
  12680. oid: this.oid,
  12681. cn: "",
  12682. };
  12683. this.ajax
  12684. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12685. .then((res) => {
  12686. loading.close();
  12687. var studentK = [];
  12688. if (this.isWorksS[this.toolindex].length > 0) {
  12689. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12690. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12691. }
  12692. studentK = studentK.join(",");
  12693. }
  12694. this.uploadStudentJuri = res.data[0].filter((el) => {
  12695. return studentK.indexOf(el.userid) == -1;
  12696. });
  12697. if (this.worksSName && this.worksSid) {
  12698. this.uploadStudentJuri.push({
  12699. userid: this.worksSid,
  12700. name: this.worksSName,
  12701. });
  12702. }
  12703. if (type == 1) {
  12704. this.plworkFile = [];
  12705. this.dialogVisibleSname = true;
  12706. } else if (type == 2) {
  12707. this.dialogVisiblePl = true;
  12708. }
  12709. })
  12710. .catch((err) => {
  12711. loading.close();
  12712. console.error(err);
  12713. });
  12714. },
  12715. selectPickStudent() {
  12716. const loading = this.$loading.service({
  12717. background: "rgba(255, 255, 255, 0.7)",
  12718. target: document.body,
  12719. });
  12720. let params = {
  12721. cid: this.uploadCid,
  12722. oid: this.oid,
  12723. cn: "",
  12724. };
  12725. this.ajax
  12726. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12727. .then((res) => {
  12728. loading.close();
  12729. this.uploadStudentJuri = res.data[0];
  12730. this.dialogVisiblePickPeople = true;
  12731. })
  12732. .catch((err) => {
  12733. loading.close();
  12734. console.error(err);
  12735. });
  12736. },
  12737. arrayToArray(arrayo, arrayt) {
  12738. let array1 = arrayo;
  12739. let array2 = arrayt;
  12740. let commonElements = [];
  12741. for (let i = 0; i < array1.length; i++) {
  12742. for (let j = 0; j < array2.length; j++) {
  12743. if (array1[i] === array2[j]) {
  12744. commonElements.push(array1[i]);
  12745. }
  12746. }
  12747. }
  12748. return commonElements;
  12749. },
  12750. selectWorksStudent() {
  12751. let params = {
  12752. oid: this.oid,
  12753. cid: this.courseDetail.juri,
  12754. };
  12755. this.ajax
  12756. .get(this.$store.state.api + "selectWorksStudent", params)
  12757. .then((res) => {
  12758. var a = res.data[0];
  12759. for (var i = 0; i < this.isWorksS.length; i++) {
  12760. this.noWorksS[i] = [];
  12761. var studentK = [];
  12762. if (this.isWorksS[i].length > 0) {
  12763. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12764. studentK.push(this.isWorksS[i][z].uid);
  12765. }
  12766. studentK = studentK.join(",");
  12767. for (var j = 0; j < a.length; j++) {
  12768. if (studentK.indexOf(a[j].userid) == -1) {
  12769. if (this.tcid) {
  12770. // a[j].classid.indexOf(this.tcid) != -1
  12771. if (
  12772. this.arrayToArray(
  12773. a[j].classid.split(","),
  12774. this.tcid.split(",")
  12775. ).length
  12776. ) {
  12777. this.noWorksS[i].push({
  12778. student: a[j].name,
  12779. userid: a[j].userid,
  12780. });
  12781. }
  12782. } else {
  12783. this.noWorksS[i].push({
  12784. student: a[j].name,
  12785. userid: a[j].userid,
  12786. });
  12787. }
  12788. }
  12789. }
  12790. } else {
  12791. for (var k = 0; k < a.length; k++) {
  12792. if (this.tcid) {
  12793. if (
  12794. this.arrayToArray(
  12795. a[k].classid.split(","),
  12796. this.tcid.split(",")
  12797. ).length
  12798. ) {
  12799. this.noWorksS[i].push({
  12800. student: a[k].name,
  12801. userid: a[k].userid,
  12802. });
  12803. }
  12804. } else {
  12805. this.noWorksS[i].push({
  12806. student: a[k].name,
  12807. userid: a[k].userid,
  12808. });
  12809. }
  12810. }
  12811. }
  12812. }
  12813. this.$forceUpdate();
  12814. if (
  12815. Object.keys(this.commentDetail).length &&
  12816. Object.keys(this.commentIndexJson).length &&
  12817. !this.dialogVisibleScore
  12818. ) {
  12819. let a = 1;
  12820. let c = this.commentIndexJson;
  12821. if (
  12822. this.commentIndexJson.gindex ||
  12823. this.commentIndexJson.gindex === 0
  12824. ) {
  12825. for (
  12826. var i = 0;
  12827. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12828. i++
  12829. ) {
  12830. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12831. groupA: for (var k = 0; k < _el.length; k++) {
  12832. let el = _el[k];
  12833. if (el.wid == this.commentDetail.wid) {
  12834. a = 2;
  12835. this.commentOther(
  12836. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12837. this.commentIndexJson.toolIndex,
  12838. k,
  12839. this.commentIndexJson.gindex
  12840. );
  12841. break groupA;
  12842. }
  12843. }
  12844. }
  12845. if (a === 1) {
  12846. this.commentDetail = [];
  12847. this.commentIndexJson = {};
  12848. this.commentDialogVisible = false;
  12849. this.$message("此作业已被删除");
  12850. }
  12851. } else {
  12852. if (this.isGroup && this.commentIndexJson.gid) {
  12853. groupA: for (
  12854. var i = 0;
  12855. i < this.courseGroup.group.length;
  12856. i++
  12857. ) {
  12858. let _group = this.courseGroup.group[i];
  12859. if (_group.id == this.commentIndexJson.gid) {
  12860. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12861. for (var k = 0; k < _el2.length; k++) {
  12862. let el2 = _el2[k];
  12863. if (el2.wid == this.commentDetail.wid) {
  12864. a = 2;
  12865. this.commentOther(
  12866. _el2[k],
  12867. this.commentIndexJson.toolIndex,
  12868. k,
  12869. null,
  12870. this.commentIndexJson.gid
  12871. );
  12872. break groupA;
  12873. }
  12874. }
  12875. }
  12876. }
  12877. }
  12878. if (a == 1) {
  12879. for (
  12880. var i = 0;
  12881. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12882. i++
  12883. ) {
  12884. let el =
  12885. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12886. if (el.wid == this.commentDetail.wid) {
  12887. a = 2;
  12888. this.commentOther(
  12889. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12890. this.commentIndexJson.toolIndex,
  12891. i
  12892. );
  12893. break;
  12894. }
  12895. }
  12896. }
  12897. if (a === 1) {
  12898. this.commentDetail = [];
  12899. this.commentIndexJson = {};
  12900. this.commentDialogVisible = false;
  12901. this.$message("此作业已被删除");
  12902. }
  12903. }
  12904. }
  12905. })
  12906. .catch((err) => {
  12907. console.error(err);
  12908. });
  12909. },
  12910. selectStudent() {
  12911. //学生查看自己作业
  12912. let params = {
  12913. uid: this.userid,
  12914. cid: this.id,
  12915. s: this.courseType,
  12916. t: this.taskCount,
  12917. };
  12918. this.ajax
  12919. .get(this.$store.state.api + "selectStudentWorks", params)
  12920. .then((res) => {
  12921. var a =
  12922. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12923. this.taskCount
  12924. ].toolChoose;
  12925. var b = res.data[0];
  12926. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12927. var y = [
  12928. "AVI",
  12929. "NAVI",
  12930. "MPEG",
  12931. "ASF",
  12932. "MOV",
  12933. "WMV",
  12934. "3GP",
  12935. "RM",
  12936. "RMVB",
  12937. "FLV",
  12938. "F4V",
  12939. "H.264",
  12940. "H.265",
  12941. "REAL VIDEO",
  12942. "MKV",
  12943. "WebM",
  12944. "HDDVD",
  12945. "MP4",
  12946. "MPG",
  12947. "M4V",
  12948. "MGV",
  12949. "OGV",
  12950. "QTM",
  12951. "STR",
  12952. "AMC",
  12953. "DVX",
  12954. "EVO",
  12955. "DAT",
  12956. "OGG",
  12957. "OGM",
  12958. ];
  12959. for (var i = 0; i < a.length; i++) {
  12960. this.workStudent[i] = [];
  12961. for (var j = 0; j < b.length; j++) {
  12962. if (i == b[j].tool) {
  12963. if (
  12964. (b[j].type == 1 ||
  12965. b[j].type == 4 ||
  12966. b[j].type == 5 ||
  12967. b[j].type == 6 ||
  12968. b[j].type == 12 ||
  12969. b[j].type == 7) &&
  12970. a[i].tool[0] != 15 &&
  12971. a[i].tool[0] != 4 &&
  12972. a[i].tool[0] != 45 &&
  12973. a[i].tool[0] != 50 &&
  12974. a[i].tool[0] != 32 &&
  12975. a[i].tool[0] != 57 &&
  12976. a[i].tool[0] != 52 &&
  12977. a[i].tool[0] != 69
  12978. ) {
  12979. if (
  12980. c.indexOf(
  12981. b[j].content
  12982. .split(".")
  12983. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  12984. ) != -1 &&
  12985. a[i].tool[0] == 16 &&
  12986. b[j].atool != 50
  12987. ) {
  12988. this.workStudent[i].push({
  12989. works: b[j].content,
  12990. sName: b[j].name,
  12991. score: b[j].score,
  12992. img: b[j].img,
  12993. type: 1,
  12994. time: b[j].time,
  12995. userid: b[j].userid,
  12996. wid: b[j].id,
  12997. });
  12998. } else if (
  12999. y.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. userid: b[j].userid,
  13009. wid: b[j].id,
  13010. works: b[j].content,
  13011. sName: b[j].name,
  13012. score: b[j].score,
  13013. img: b[j].img,
  13014. type: 3,
  13015. time: b[j].time,
  13016. });
  13017. } else if (b[j].type == 6 && b[j].atool != 50) {
  13018. this.workStudent[i].push({
  13019. userid: b[j].userid,
  13020. wid: b[j].id,
  13021. works: b[j].content,
  13022. sName: b[j].name,
  13023. score: b[j].score,
  13024. img: b[j].img,
  13025. type: 4,
  13026. time: b[j].time,
  13027. });
  13028. } else if (b[j].type == 7 && b[j].atool != 50) {
  13029. this.workStudent[i].push({
  13030. userid: b[j].userid,
  13031. wid: b[j].id,
  13032. works: b[j].content,
  13033. sName: b[j].name,
  13034. score: b[j].score,
  13035. img: b[j].img,
  13036. type: 5,
  13037. time: b[j].time,
  13038. });
  13039. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13040. this.workStudent[i].push({
  13041. works: b[j].content,
  13042. sName: b[j].name,
  13043. score: b[j].score,
  13044. img: b[j].img,
  13045. type: 12,
  13046. time: b[j].time,
  13047. userid: b[j].userid,
  13048. wid: b[j].id,
  13049. });
  13050. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13051. this.workStudent[i].push({
  13052. works: b[j].content,
  13053. sName: b[j].name,
  13054. score: b[j].score,
  13055. img: b[j].img,
  13056. type: 0,
  13057. time: b[j].time,
  13058. userid: b[j].userid,
  13059. wid: b[j].id,
  13060. });
  13061. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13062. this.workStudent[i].push({
  13063. works: b[j].content,
  13064. sName: b[j].name,
  13065. score: b[j].score,
  13066. img: b[j].img,
  13067. type: 0,
  13068. time: b[j].time,
  13069. userid: b[j].userid,
  13070. wid: b[j].id,
  13071. });
  13072. }
  13073. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13074. this.workStudent[i].push({
  13075. works: b[j].content,
  13076. sName: b[j].name,
  13077. score: b[j].score,
  13078. img: b[j].img,
  13079. type: 2,
  13080. time: b[j].time,
  13081. userid: b[j].userid,
  13082. wid: b[j].id,
  13083. });
  13084. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13085. //问卷
  13086. this.workStudent[i].push({
  13087. works: b[j].content,
  13088. sName: b[j].name,
  13089. score: b[j].score,
  13090. img: b[j].img,
  13091. type: 2,
  13092. time: b[j].time,
  13093. userid: b[j].userid,
  13094. wid: b[j].id,
  13095. });
  13096. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13097. //选择题
  13098. this.workStudent[i].push({
  13099. works: b[j].content,
  13100. sName: b[j].name,
  13101. score: b[j].score,
  13102. img: b[j].img,
  13103. type: 8,
  13104. time: b[j].time,
  13105. userid: b[j].userid,
  13106. wid: b[j].id,
  13107. });
  13108. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13109. //选择题
  13110. this.workStudent[i].push({
  13111. works: b[j].content,
  13112. sName: b[j].name,
  13113. score: b[j].score,
  13114. img: b[j].img,
  13115. type: 9,
  13116. time: b[j].time,
  13117. userid: b[j].userid,
  13118. wid: b[j].id,
  13119. });
  13120. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13121. //选择题
  13122. this.workStudent[i].push({
  13123. works: b[j].content,
  13124. sName: b[j].name,
  13125. score: b[j].score,
  13126. img: b[j].img,
  13127. type: 10,
  13128. time: b[j].time,
  13129. userid: b[j].userid,
  13130. wid: b[j].id,
  13131. });
  13132. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13133. //选择题
  13134. this.workStudent[i].push({
  13135. works: b[j].content,
  13136. sName: b[j].name,
  13137. score: b[j].score,
  13138. img: b[j].img,
  13139. type: 13,
  13140. time: b[j].time,
  13141. userid: b[j].userid,
  13142. wid: b[j].id,
  13143. });
  13144. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13145. //选择题
  13146. this.workStudent[i].push({
  13147. works: b[j].content,
  13148. sName: b[j].name,
  13149. score: b[j].score,
  13150. img: b[j].img,
  13151. type: 12,
  13152. time: b[j].time,
  13153. userid: b[j].userid,
  13154. wid: b[j].id,
  13155. });
  13156. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13157. //选择题
  13158. this.workStudent[i].push({
  13159. works: b[j].content,
  13160. sName: b[j].name,
  13161. score: b[j].score,
  13162. img: b[j].img,
  13163. type: 12,
  13164. time: b[j].time,
  13165. userid: b[j].userid,
  13166. wid: b[j].id,
  13167. });
  13168. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13169. //选择题
  13170. this.workStudent[i].push({
  13171. works: b[j].content,
  13172. sName: b[j].name,
  13173. score: b[j].score,
  13174. img: b[j].img,
  13175. type: 15,
  13176. time: b[j].time,
  13177. userid: b[j].userid,
  13178. wid: b[j].id,
  13179. });
  13180. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13181. //英语写作
  13182. this.workStudent[i].push({
  13183. works: b[j].content,
  13184. sName: b[j].name,
  13185. score: b[j].score,
  13186. img: b[j].img,
  13187. type: 16,
  13188. time: b[j].time,
  13189. userid: b[j].userid,
  13190. wid: b[j].id,
  13191. });
  13192. }
  13193. }
  13194. }
  13195. }
  13196. })
  13197. .catch((err) => {
  13198. console.error(err);
  13199. });
  13200. },
  13201. openVideo(w) {
  13202. this.videoDetail = {};
  13203. this.playerOptions1.sources[0].src = w.works;
  13204. this.videoDetail = this.playerOptions1;
  13205. this.videoVisible = true;
  13206. },
  13207. isLikes(wid, uid, t, c, isLikes) {
  13208. if (isLikes == false) {
  13209. let params = [
  13210. {
  13211. wid: wid,
  13212. lid: uid,
  13213. t: t,
  13214. c: c,
  13215. },
  13216. ];
  13217. this.ajax
  13218. .post(this.$store.state.api + "insertComment", params)
  13219. .then((res) => {
  13220. this.$message({
  13221. message: "点赞成功",
  13222. type: "success",
  13223. });
  13224. this.selectSWorks();
  13225. this.selectStudent();
  13226. })
  13227. .catch((err) => {
  13228. this.$message.error("点赞失败");
  13229. console.error(err);
  13230. });
  13231. } else {
  13232. let params = {
  13233. wid: wid,
  13234. lid: uid,
  13235. type: t,
  13236. };
  13237. this.ajax
  13238. .get(this.$store.state.api + "deleteComment", params)
  13239. .then((res) => {
  13240. this.$message({
  13241. message: "取消点赞成功",
  13242. type: "success",
  13243. });
  13244. this.selectSWorks();
  13245. this.selectStudent();
  13246. })
  13247. .catch((err) => {
  13248. console.error(err);
  13249. });
  13250. }
  13251. },
  13252. deleteComment(wid) {
  13253. this.$confirm("确定删除此评论吗?", "提示", {
  13254. confirmButtonText: "确定",
  13255. cancelButtonText: "取消",
  13256. type: "warning",
  13257. })
  13258. .then(() => {
  13259. let params = {
  13260. id: wid,
  13261. };
  13262. this.ajax
  13263. .get(this.$store.state.api + "deleteComment2", params)
  13264. .then((res) => {
  13265. this.$message({
  13266. message: "删除评论成功",
  13267. type: "success",
  13268. });
  13269. this.selectSWorks();
  13270. this.selectStudent();
  13271. })
  13272. .catch((err) => {
  13273. console.error(err);
  13274. });
  13275. })
  13276. .catch(() => {});
  13277. },
  13278. commentOther(w, toolIndex, wIndex, gindex, gid) {
  13279. this.commentIndexJson = {
  13280. toolIndex: toolIndex,
  13281. wIndex: wIndex,
  13282. gindex: gindex,
  13283. gid: gid,
  13284. };
  13285. this.commentDetail = [];
  13286. this.commentDialogVisible = true;
  13287. this.commentDetail = w;
  13288. if (w.works && w.type == 1) {
  13289. this.pptImgUrl = "";
  13290. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13291. if (
  13292. a.indexOf(
  13293. w.works
  13294. .split(".")
  13295. [w.works.split(".").length - 1].toLocaleUpperCase()
  13296. ) != -1
  13297. ) {
  13298. this.pptImgUrl =
  13299. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13300. this.showPDF = false;
  13301. } else if (
  13302. w.works
  13303. .split(".")
  13304. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13305. ) {
  13306. this.pptImgUrl = w.works;
  13307. this.showPDF = true;
  13308. }
  13309. } else if (w.works && w.type == 3) {
  13310. this.videoDetail = {};
  13311. this.playerOptions1.sources[0].src = w.works;
  13312. this.videoDetail = this.playerOptions1;
  13313. // this.videoVisible = true;
  13314. } else if (w.works && w.type == 4) {
  13315. this.eScore = JSON.parse(w.works);
  13316. this.rateJson =
  13317. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13318. this.taskCount
  13319. ].toolChoose[toolIndex].rateJson;
  13320. } else if (w.works && w.type == 10) {
  13321. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13322. } else if (w.works && w.type == 13) {
  13323. this.wordJson =
  13324. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13325. this.taskCount
  13326. ].toolChoose[toolIndex].wordJson;
  13327. }
  13328. },
  13329. openScore(w) {
  13330. this.wScore = 0;
  13331. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13332. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13333. this.commentDetail = [];
  13334. this.dialogVisibleScore = true;
  13335. this.commentDetail = w;
  13336. if (w.works && w.type == 1) {
  13337. this.pptImgUrl = "";
  13338. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13339. if (
  13340. a.indexOf(
  13341. w.works
  13342. .split(".")
  13343. [w.works.split(".").length - 1].toLocaleUpperCase()
  13344. ) != -1
  13345. ) {
  13346. this.pptImgUrl =
  13347. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13348. this.showPDF = false;
  13349. } else if (
  13350. w.works
  13351. .split(".")
  13352. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13353. ) {
  13354. this.pptImgUrl = w.works;
  13355. this.showPDF = true;
  13356. }
  13357. } else if (w.works && w.type == 3) {
  13358. this.videoDetail = {};
  13359. this.playerOptions1.sources[0].src = w.works;
  13360. this.videoDetail = this.playerOptions1;
  13361. }
  13362. },
  13363. addComment(wid, uid, t) {
  13364. if (this.commentText == "") {
  13365. this.$message.error("请输入评论");
  13366. return;
  13367. }
  13368. let params2 = [
  13369. {
  13370. wid: wid,
  13371. lid: uid,
  13372. t: t,
  13373. },
  13374. ];
  13375. this.ajax
  13376. .post(this.$store.state.api + "getComment", params2)
  13377. .then((res) => {
  13378. if (res.data[0].length > 0) {
  13379. this.$message.error("一个作业只能评论一条");
  13380. } else {
  13381. let params = [
  13382. {
  13383. wid: wid,
  13384. lid: uid,
  13385. t: t,
  13386. c: this.commentText,
  13387. },
  13388. ];
  13389. this.ajax
  13390. .post(this.$store.state.api + "insertComment", params)
  13391. .then((res) => {
  13392. this.$message({
  13393. message: "评论成功",
  13394. type: "success",
  13395. });
  13396. this.commentText = "";
  13397. this.selectSWorks();
  13398. this.selectStudent();
  13399. })
  13400. .catch((err) => {
  13401. this.$message.error("评论失败");
  13402. console.error(err);
  13403. });
  13404. }
  13405. })
  13406. .catch((err) => {
  13407. // this.$message.error("评论失败");
  13408. console.error(err);
  13409. });
  13410. },
  13411. scoreWork(wid) {
  13412. if (this.wScore == 0) {
  13413. this.$message.error("请评分");
  13414. return;
  13415. }
  13416. let params = [
  13417. {
  13418. wid: wid,
  13419. score: JSON.stringify({
  13420. wScore: this.wScore,
  13421. detail: this.scoreDetail,
  13422. }),
  13423. },
  13424. ];
  13425. this.ajax
  13426. .post(this.$store.state.api + "scoreWork", params)
  13427. .then((res) => {
  13428. this.$message({
  13429. message: "评分成功",
  13430. type: "success",
  13431. });
  13432. this.wScore = 0;
  13433. this.scoreDetail = "";
  13434. this.dialogVisibleScore = false;
  13435. this.selectSWorks();
  13436. this.selectStudent();
  13437. })
  13438. .catch((err) => {
  13439. this.$message.error("评分失败");
  13440. console.error(err);
  13441. });
  13442. },
  13443. openXz(w, i) {
  13444. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13445. .taskJson[this.taskCount].toolChoose[i].selectJson
  13446. ? JSON.parse(
  13447. JSON.stringify(
  13448. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13449. this.taskCount
  13450. ].toolChoose[i].selectJson
  13451. )
  13452. )
  13453. : { url: "", select: [], answer: [] };
  13454. var a = w.works.split(",");
  13455. for (var k = 0; k < a.length; k++) {
  13456. a[k] = parseInt(a[k]);
  13457. }
  13458. this.selectAnswer = { answer: a, stu: w.sName };
  13459. this.isSelect = true;
  13460. this.dialogVisibleSelect = true;
  13461. },
  13462. openSen(w, i) {
  13463. this.sentenceList1 = JSON.parse(w.works);
  13464. this.sentenceList1.stuName = w.sName;
  13465. this.dialogVisibleSentence1 = true;
  13466. },
  13467. openPj(w, toolindex) {
  13468. this.isStar = true;
  13469. this.eScore = JSON.parse(w);
  13470. this.rateJson =
  13471. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13472. this.taskCount
  13473. ].toolChoose[toolindex].rateJson;
  13474. this.studentEvalDialogVisible = true;
  13475. },
  13476. deleteWorks(id) {
  13477. this.$confirm("确定删除此作业吗?", "提示", {
  13478. confirmButtonText: "确定",
  13479. cancelButtonText: "取消",
  13480. type: "warning",
  13481. })
  13482. .then(() => {
  13483. let params = [
  13484. {
  13485. id: id,
  13486. },
  13487. ];
  13488. this.ajax
  13489. .post(this.$store.state.api + "deleteCourseWork", params)
  13490. .then((res) => {
  13491. this.$message({
  13492. message: "删除成功",
  13493. type: "success",
  13494. });
  13495. this.selectStudent();
  13496. this.selectSWorks();
  13497. this.selectSLook();
  13498. })
  13499. .catch((err) => {
  13500. this.$message.error("网络异常");
  13501. console.error(err);
  13502. });
  13503. })
  13504. .catch(() => {});
  13505. },
  13506. selectSWorks(gindex) {
  13507. //教师查看全部作业
  13508. let params = {
  13509. cid: this.id,
  13510. s: this.courseType,
  13511. t: this.taskCount,
  13512. };
  13513. this.ajax
  13514. .get(this.$store.state.api + "selectSWorks", params)
  13515. .then((res) => {
  13516. var a =
  13517. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13518. this.taskCount
  13519. ].toolChoose;
  13520. var b = res.data[0];
  13521. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13522. var y = [
  13523. "AVI",
  13524. "NAVI",
  13525. "MPEG",
  13526. "ASF",
  13527. "MOV",
  13528. "WMV",
  13529. "3GP",
  13530. "RM",
  13531. "RMVB",
  13532. "FLV",
  13533. "F4V",
  13534. "H.264",
  13535. "H.265",
  13536. "REAL VIDEO",
  13537. "MKV",
  13538. "WebM",
  13539. "HDDVD",
  13540. "MP4",
  13541. "MPG",
  13542. "M4V",
  13543. "MGV",
  13544. "OGV",
  13545. "QTM",
  13546. "STR",
  13547. "AMC",
  13548. "DVX",
  13549. "EVO",
  13550. "DAT",
  13551. "OGG",
  13552. "OGM",
  13553. ];
  13554. var d = res.data[1];
  13555. var e = res.data[2];
  13556. var f = res.data[3];
  13557. let _worksStudent = [];
  13558. var _worksStudent2 = [];
  13559. for (var i = 0; i < a.length; i++) {
  13560. _worksStudent[i] = [];
  13561. _worksStudent2[i] = [];
  13562. if (
  13563. !this.isCloseList[i] ||
  13564. this.isCloseList[i].isClose == undefined
  13565. ) {
  13566. this.isCloseList[i] = { isClose: 0 };
  13567. }
  13568. this.groupStudent[i] = [];
  13569. this.groupStudentUid[i] = [];
  13570. if (this.isGroup) {
  13571. for (
  13572. var groupI = 0;
  13573. groupI < this.courseGroup.group.length;
  13574. groupI++
  13575. ) {
  13576. this.courseGroup.group[groupI].works[i] = [];
  13577. }
  13578. }
  13579. this.isWorksS[i] = [];
  13580. this.checkJson[i] = [];
  13581. if (a[i].tool[0] == 49) {
  13582. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13583. this.groupStudent[i][gA] = [];
  13584. this.groupStudentUid[i][gA] = [];
  13585. _worksStudent[i][gA] = [];
  13586. _worksStudent2[i][gA] = [];
  13587. this.isCloseList[i][gA] = [];
  13588. for (var g = 0; g < f.length; g++) {
  13589. if (
  13590. f[g].ttype == 2 &&
  13591. this.tcid &&
  13592. this.arrayToArray(
  13593. f[g].classid.split(","),
  13594. this.tcid.split(",")
  13595. ).length == 0
  13596. ) {
  13597. continue;
  13598. }
  13599. if (gA == f[g].group && f[g].tool == i) {
  13600. this.groupStudent[i][gA].push(f[g]);
  13601. this.groupStudentUid[i][gA].push(f[g].userid);
  13602. }
  13603. }
  13604. }
  13605. this.$forceUpdate();
  13606. }
  13607. for (var j = 0; j < b.length; j++) {
  13608. if (
  13609. b[j].ttype == 2 &&
  13610. this.tcid &&
  13611. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13612. .length == 0
  13613. ) {
  13614. continue;
  13615. }
  13616. var likesCount = 0;
  13617. var commentCount = 0;
  13618. var isLikes = false;
  13619. var commentJson = [];
  13620. var data = b[j];
  13621. if (i == b[j].tool) {
  13622. if (data.type == 2 && a[i].tool[0] == 4) {
  13623. // if(JSON.parse(data.content)[0].anwer){
  13624. var checkL =
  13625. JSON.parse(data.content)[0].anwer instanceof Array
  13626. ? JSON.parse(data.content)[0].anwer
  13627. : JSON.parse(data.content)[0].anwer.split(",");
  13628. for (var z = 0; z < checkL.length; z++) {
  13629. if (!this.checkJson[i][z]) {
  13630. this.checkJson[i].push({
  13631. checkCount: [],
  13632. checkPerson: [],
  13633. rightPerson: [],
  13634. });
  13635. }
  13636. if (!this.checkJson[i][z].checkCount.length) {
  13637. this.checkJson[i][z].checkCount = [];
  13638. let _askItemCount = JSON.parse(data.content)[0].askJson
  13639. .askJson[z].askItem;
  13640. for (var aic = 0; aic < _askItemCount; aic++) {
  13641. this.checkJson[i][z].checkCount.push(0);
  13642. }
  13643. }
  13644. if (checkL[z] instanceof Array) {
  13645. if (
  13646. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13647. checkL[z].sort().join(",")
  13648. ) {
  13649. this.checkJson[i][z].rightPerson.push(data.name);
  13650. }
  13651. for (var q = 0; q < checkL[z].length; q++) {
  13652. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13653. ? this.checkJson[i][z].checkPerson[
  13654. parseInt(checkL[z][q])
  13655. ].push(data.name)
  13656. : (this.checkJson[i][z].checkPerson[
  13657. parseInt(checkL[z][q])
  13658. ] = [data.name]);
  13659. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13660. ? this.checkJson[i][z].checkCount[
  13661. parseInt(checkL[z][q])
  13662. ]++
  13663. : (this.checkJson[i][z].checkCount[
  13664. parseInt(checkL[z][q])
  13665. ] = 1);
  13666. }
  13667. } else {
  13668. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13669. this.checkJson[i][z].rightPerson.push(data.name);
  13670. }
  13671. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13672. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13673. ? this.checkJson[i][z].checkPerson[
  13674. parseInt(checkL[z])
  13675. ].push(data.name)
  13676. : (this.checkJson[i][z].checkPerson[
  13677. parseInt(checkL[z])
  13678. ] = [data.name]);
  13679. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13680. ? this.checkJson[i][z].checkCount[
  13681. parseInt(checkL[z])
  13682. ]++
  13683. : (this.checkJson[i][z].checkCount[
  13684. parseInt(checkL[z])
  13685. ] = 1);
  13686. }
  13687. }
  13688. }
  13689. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13690. var checkL = JSON.parse(data.content)[0].anwer;
  13691. for (var z = 0; z < checkL.length; z++) {
  13692. if (!this.checkJson[i][z]) {
  13693. this.checkJson[i].push({
  13694. checkCount: [],
  13695. checkPerson: [],
  13696. rightPerson: [],
  13697. });
  13698. }
  13699. if (!this.checkJson[i][z].checkCount.length) {
  13700. this.checkJson[i][z].checkCount = [];
  13701. let _askItemCount = JSON.parse(data.content)[0].testJson
  13702. .testJson[z].testItem;
  13703. for (var aic = 0; aic < _askItemCount; aic++) {
  13704. this.checkJson[i][z].checkCount.push(0);
  13705. }
  13706. }
  13707. if (checkL[z] instanceof Array) {
  13708. if (
  13709. JSON.parse(data.content)[0]
  13710. .testJson.testJson[z].answer.sort()
  13711. .join(",") == checkL[z].sort().join(",")
  13712. ) {
  13713. this.checkJson[i][z].rightPerson.push(data.name);
  13714. }
  13715. for (var q = 0; q < checkL[z].length; q++) {
  13716. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13717. ? this.checkJson[i][z].checkPerson[
  13718. parseInt(checkL[z][q])
  13719. ].push(data.name)
  13720. : (this.checkJson[i][z].checkPerson[
  13721. parseInt(checkL[z][q])
  13722. ] = [data.name]);
  13723. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13724. ? this.checkJson[i][z].checkCount[
  13725. parseInt(checkL[z][q])
  13726. ]++
  13727. : (this.checkJson[i][z].checkCount[
  13728. parseInt(checkL[z][q])
  13729. ] = 1);
  13730. }
  13731. } else {
  13732. if (
  13733. JSON.parse(data.content)[0].testJson.testJson[z]
  13734. .answer == checkL[z]
  13735. ) {
  13736. this.checkJson[i][z].rightPerson.push(data.name);
  13737. }
  13738. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13739. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13740. ? this.checkJson[i][z].checkPerson[
  13741. parseInt(checkL[z])
  13742. ].push(data.name)
  13743. : (this.checkJson[i][z].checkPerson[
  13744. parseInt(checkL[z])
  13745. ] = [data.name]);
  13746. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13747. ? this.checkJson[i][z].checkCount[
  13748. parseInt(checkL[z])
  13749. ]++
  13750. : (this.checkJson[i][z].checkCount[
  13751. parseInt(checkL[z])
  13752. ] = 1);
  13753. }
  13754. }
  13755. }
  13756. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13757. var checkL = JSON.parse(data.content);
  13758. for (var z = 0; z < checkL.length; z++) {
  13759. if (!this.checkJson[i][z]) {
  13760. this.checkJson[i].push({
  13761. checkCount: [],
  13762. checkPerson: [],
  13763. rightPerson: [],
  13764. });
  13765. }
  13766. this.checkJson[i][z].checkPerson.push(data.name);
  13767. if (
  13768. checkL[z].chooseSenList.toString() ==
  13769. checkL[z].rightAnswer.toString()
  13770. ) {
  13771. this.checkJson[i][z].rightPerson.push(data.name);
  13772. }
  13773. }
  13774. }
  13775. for (var k = 0; k < d.length; k++) {
  13776. //点赞
  13777. if (d[k].workId == b[j].id) {
  13778. likesCount++;
  13779. if (d[k].likesId == this.userid) {
  13780. isLikes = true;
  13781. }
  13782. }
  13783. }
  13784. for (var l = 0; l < e.length; l++) {
  13785. //评论
  13786. if (e[l].workId == b[j].id) {
  13787. if (e[l].comment != "") {
  13788. commentCount++;
  13789. commentJson.push({
  13790. commentText: e[l].comment,
  13791. commentTime: e[l].commentTime,
  13792. commentPeople: e[l].commentPeople,
  13793. userid: e[l].userid,
  13794. wid: e[l].id,
  13795. });
  13796. }
  13797. }
  13798. }
  13799. if (
  13800. (b[j].type == 1 ||
  13801. b[j].type == 4 ||
  13802. b[j].type == 5 ||
  13803. b[j].type == 6 ||
  13804. b[j].type == 12 ||
  13805. b[j].type == 7) &&
  13806. a[i].tool[0] != 15 &&
  13807. a[i].tool[0] != 4 &&
  13808. a[i].tool[0] != 45 &&
  13809. a[i].tool[0] != 50 &&
  13810. a[i].tool[0] != 32 &&
  13811. a[i].tool[0] != 57 &&
  13812. a[i].tool[0] != 52
  13813. ) {
  13814. if (
  13815. c.indexOf(
  13816. b[j].content
  13817. .split(".")
  13818. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13819. ) != -1 &&
  13820. a[i].tool[0] == 16 &&
  13821. b[j].atool != 50
  13822. ) {
  13823. let _works = {
  13824. userid: b[j].userid,
  13825. ateacher: b[j].ateacher,
  13826. wid: b[j].id,
  13827. works: b[j].content,
  13828. sName: b[j].name,
  13829. type: 1,
  13830. time: b[j].time,
  13831. score: b[j].score,
  13832. img: b[j].img,
  13833. likesCount: likesCount,
  13834. commentCount: commentCount,
  13835. isLikes: isLikes,
  13836. commentJson: commentJson,
  13837. };
  13838. if (this.isGroup) {
  13839. let isGw = 1;
  13840. for (
  13841. var groupI = 0;
  13842. groupI < this.courseGroup.group.length;
  13843. groupI++
  13844. ) {
  13845. let gid = this.courseGroup.group[groupI].id;
  13846. if (
  13847. this.courseGroupStudentUid[gid].indexOf(
  13848. b[j].userid
  13849. ) != -1
  13850. ) {
  13851. isGw = 2;
  13852. this.courseGroup.group[groupI].works[i].push(_works);
  13853. break;
  13854. }
  13855. }
  13856. if (isGw == 1) {
  13857. _worksStudent[i].push(_works);
  13858. }
  13859. } else {
  13860. _worksStudent[i].push(_works);
  13861. }
  13862. _worksStudent2[i].push(_works);
  13863. this.isWorksS[i].push({
  13864. uid: b[j].userid,
  13865. sName: b[j].name,
  13866. });
  13867. } else if (
  13868. y.indexOf(
  13869. b[j].content
  13870. .split(".")
  13871. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13872. ) != -1 &&
  13873. a[i].tool[0] == 16 &&
  13874. b[j].atool != 50
  13875. ) {
  13876. let _works = {
  13877. userid: b[j].userid,
  13878. ateacher: b[j].ateacher,
  13879. wid: b[j].id,
  13880. works: b[j].content,
  13881. sName: b[j].name,
  13882. type: 3,
  13883. time: b[j].time,
  13884. score: b[j].score,
  13885. img: b[j].img,
  13886. likesCount: likesCount,
  13887. commentCount: commentCount,
  13888. isLikes: isLikes,
  13889. commentJson: commentJson,
  13890. };
  13891. if (this.isGroup) {
  13892. let isGw = 1;
  13893. for (
  13894. var groupI = 0;
  13895. groupI < this.courseGroup.group.length;
  13896. groupI++
  13897. ) {
  13898. let gid = this.courseGroup.group[groupI].id;
  13899. if (
  13900. this.courseGroupStudentUid[gid].indexOf(
  13901. b[j].userid
  13902. ) != -1
  13903. ) {
  13904. isGw = 2;
  13905. this.courseGroup.group[groupI].works[i].push(_works);
  13906. break;
  13907. }
  13908. }
  13909. if (isGw == 1) {
  13910. _worksStudent[i].push(_works);
  13911. }
  13912. } else {
  13913. _worksStudent[i].push(_works);
  13914. }
  13915. _worksStudent2[i].push(_works);
  13916. this.isWorksS[i].push({
  13917. uid: b[j].userid,
  13918. sName: b[j].name,
  13919. });
  13920. } else if (b[j].type == 6 && b[j].atool != 50) {
  13921. let _works = {
  13922. userid: b[j].userid,
  13923. ateacher: b[j].ateacher,
  13924. wid: b[j].id,
  13925. works: b[j].content,
  13926. sName: b[j].name,
  13927. type: 4,
  13928. time: b[j].time,
  13929. score: b[j].score,
  13930. img: b[j].img,
  13931. likesCount: likesCount,
  13932. commentCount: commentCount,
  13933. isLikes: isLikes,
  13934. commentJson: commentJson,
  13935. };
  13936. _worksStudent[i].push(_works);
  13937. _worksStudent2[i].push(_works);
  13938. this.isWorksS[i].push({
  13939. uid: b[j].userid,
  13940. sName: b[j].name,
  13941. });
  13942. } else if (b[j].type == 7 && b[j].atool != 50) {
  13943. let _work = {
  13944. userid: b[j].userid,
  13945. ateacher: b[j].ateacher,
  13946. wid: b[j].id,
  13947. works: b[j].content,
  13948. sName: b[j].name,
  13949. type: 5,
  13950. time: b[j].time,
  13951. score: b[j].score,
  13952. img: b[j].img,
  13953. likesCount: likesCount,
  13954. commentCount: commentCount,
  13955. isLikes: isLikes,
  13956. commentJson: commentJson,
  13957. };
  13958. _worksStudent[i].push(_work);
  13959. _worksStudent2[i].push(_work);
  13960. this.isWorksS[i].push({
  13961. uid: b[j].userid,
  13962. sName: b[j].name,
  13963. });
  13964. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13965. let _works = {
  13966. userid: b[j].userid,
  13967. ateacher: b[j].ateacher,
  13968. wid: b[j].id,
  13969. works: b[j].content,
  13970. sName: b[j].name,
  13971. type: 12,
  13972. time: b[j].time,
  13973. score: b[j].score,
  13974. img: b[j].img,
  13975. likesCount: likesCount,
  13976. commentCount: commentCount,
  13977. isLikes: isLikes,
  13978. commentJson: commentJson,
  13979. };
  13980. if (this.isGroup) {
  13981. let isGw = 1;
  13982. for (
  13983. var groupI = 0;
  13984. groupI < this.courseGroup.group.length;
  13985. groupI++
  13986. ) {
  13987. let gid = this.courseGroup.group[groupI].id;
  13988. if (
  13989. this.courseGroupStudentUid[gid].indexOf(
  13990. b[j].userid
  13991. ) != -1
  13992. ) {
  13993. isGw = 2;
  13994. this.courseGroup.group[groupI].works[i].push(_works);
  13995. break;
  13996. }
  13997. }
  13998. if (isGw == 1) {
  13999. _worksStudent[i].push(_works);
  14000. }
  14001. } else {
  14002. _worksStudent[i].push(_works);
  14003. }
  14004. _worksStudent2[i].push(_works);
  14005. this.isWorksS[i].push({
  14006. uid: b[j].userid,
  14007. sName: b[j].name,
  14008. });
  14009. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14010. let _works = {
  14011. userid: b[j].userid,
  14012. ateacher: b[j].ateacher,
  14013. wid: b[j].id,
  14014. works: b[j].content,
  14015. sName: b[j].name,
  14016. type: 0,
  14017. time: b[j].time,
  14018. score: b[j].score,
  14019. img: b[j].img,
  14020. likesCount: likesCount,
  14021. commentCount: commentCount,
  14022. isLikes: isLikes,
  14023. commentJson: commentJson,
  14024. };
  14025. if (this.isGroup) {
  14026. let isGw = 1;
  14027. for (
  14028. var groupI = 0;
  14029. groupI < this.courseGroup.group.length;
  14030. groupI++
  14031. ) {
  14032. let gid = this.courseGroup.group[groupI].id;
  14033. if (
  14034. this.courseGroupStudentUid[gid].indexOf(
  14035. b[j].userid
  14036. ) != -1
  14037. ) {
  14038. isGw = 2;
  14039. this.courseGroup.group[groupI].works[i].push(_works);
  14040. break;
  14041. }
  14042. }
  14043. if (isGw == 1) {
  14044. _worksStudent[i].push(_works);
  14045. }
  14046. } else {
  14047. _worksStudent[i].push(_works);
  14048. }
  14049. _worksStudent2[i].push(_works);
  14050. this.isWorksS[i].push({
  14051. uid: b[j].userid,
  14052. sName: b[j].name,
  14053. });
  14054. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14055. let _works = {
  14056. userid: b[j].userid,
  14057. ateacher: b[j].ateacher,
  14058. wid: b[j].id,
  14059. works: b[j].content,
  14060. sName: b[j].name,
  14061. type: 0,
  14062. time: b[j].time,
  14063. score: b[j].score,
  14064. img: b[j].img,
  14065. likesCount: likesCount,
  14066. commentCount: commentCount,
  14067. isLikes: isLikes,
  14068. commentJson: commentJson,
  14069. };
  14070. if (this.isGroup) {
  14071. let isGw = 1;
  14072. for (
  14073. var groupI = 0;
  14074. groupI < this.courseGroup.group.length;
  14075. groupI++
  14076. ) {
  14077. let gid = this.courseGroup.group[groupI].id;
  14078. if (
  14079. this.courseGroupStudentUid[gid].indexOf(
  14080. b[j].userid
  14081. ) != -1
  14082. ) {
  14083. isGw = 2;
  14084. this.courseGroup.group[groupI].works[i].push(_works);
  14085. break;
  14086. }
  14087. }
  14088. if (isGw == 1) {
  14089. _worksStudent[i].push(_works);
  14090. }
  14091. } else {
  14092. _worksStudent[i].push(_works);
  14093. }
  14094. _worksStudent2[i].push(_works);
  14095. this.isWorksS[i].push({
  14096. uid: b[j].userid,
  14097. sName: b[j].name,
  14098. });
  14099. }
  14100. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14101. let _works = {
  14102. userid: b[j].userid,
  14103. ateacher: b[j].ateacher,
  14104. wid: b[j].id,
  14105. works: b[j].content,
  14106. sName: b[j].name,
  14107. type: 2,
  14108. time: b[j].time,
  14109. score: b[j].score,
  14110. img: b[j].img,
  14111. likesCount: likesCount,
  14112. commentCount: commentCount,
  14113. isLikes: isLikes,
  14114. commentJson: commentJson,
  14115. };
  14116. if (this.isGroup) {
  14117. let isGw = 1;
  14118. for (
  14119. var groupI = 0;
  14120. groupI < this.courseGroup.group.length;
  14121. groupI++
  14122. ) {
  14123. let gid = this.courseGroup.group[groupI].id;
  14124. if (
  14125. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14126. -1
  14127. ) {
  14128. isGw = 2;
  14129. this.courseGroup.group[groupI].works[i].push(_works);
  14130. break;
  14131. }
  14132. }
  14133. if (isGw == 1) {
  14134. _worksStudent[i].push(_works);
  14135. }
  14136. } else {
  14137. _worksStudent[i].push(_works);
  14138. }
  14139. _worksStudent2[i].push(_works);
  14140. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14141. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14142. //问卷
  14143. let _work = {
  14144. userid: b[j].userid,
  14145. ateacher: b[j].ateacher,
  14146. wid: b[j].id,
  14147. works: b[j].content,
  14148. sName: b[j].name,
  14149. type: 2,
  14150. time: b[j].time,
  14151. score: b[j].score,
  14152. img: b[j].img,
  14153. likesCount: likesCount,
  14154. commentCount: commentCount,
  14155. isLikes: isLikes,
  14156. commentJson: commentJson,
  14157. };
  14158. _worksStudent[i].push(_work);
  14159. _worksStudent2[i].push(_work);
  14160. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14161. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14162. //选择题
  14163. let _work = {
  14164. userid: b[j].userid,
  14165. ateacher: b[j].ateacher,
  14166. wid: b[j].id,
  14167. works: b[j].content,
  14168. sName: b[j].name,
  14169. type: 8,
  14170. time: b[j].time,
  14171. score: b[j].score,
  14172. img: b[j].img,
  14173. likesCount: likesCount,
  14174. commentCount: commentCount,
  14175. isLikes: isLikes,
  14176. commentJson: commentJson,
  14177. };
  14178. _worksStudent[i].push(_work);
  14179. _worksStudent2[i].push(_work);
  14180. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14181. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14182. //选择题
  14183. let _work = {
  14184. userid: b[j].userid,
  14185. ateacher: b[j].ateacher,
  14186. wid: b[j].id,
  14187. works: b[j].content,
  14188. sName: b[j].name,
  14189. type: 9,
  14190. time: b[j].time,
  14191. score: b[j].score,
  14192. img: b[j].img,
  14193. likesCount: likesCount,
  14194. commentCount: commentCount,
  14195. isLikes: isLikes,
  14196. commentJson: commentJson,
  14197. };
  14198. _worksStudent[i].push(_work);
  14199. _worksStudent2[i].push(_work);
  14200. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14201. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14202. //选择题
  14203. let _work = {
  14204. userid: b[j].userid,
  14205. ateacher: b[j].ateacher,
  14206. wid: b[j].id,
  14207. works: b[j].content,
  14208. sName: b[j].name,
  14209. type: 10,
  14210. time: b[j].time,
  14211. score: b[j].score,
  14212. img: b[j].img,
  14213. likesCount: likesCount,
  14214. commentCount: commentCount,
  14215. isLikes: isLikes,
  14216. commentJson: commentJson,
  14217. };
  14218. _worksStudent[i].push(_work);
  14219. _worksStudent2[i].push(_work);
  14220. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14221. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14222. //选择题
  14223. let _work = {
  14224. userid: b[j].userid,
  14225. ateacher: b[j].ateacher,
  14226. wid: b[j].id,
  14227. works: b[j].content,
  14228. sName: b[j].name,
  14229. type: 13,
  14230. time: b[j].time,
  14231. score: b[j].score,
  14232. img: b[j].img,
  14233. likesCount: likesCount,
  14234. commentCount: commentCount,
  14235. isLikes: isLikes,
  14236. commentJson: commentJson,
  14237. };
  14238. _worksStudent[i].push(_work);
  14239. _worksStudent2[i].push(_work);
  14240. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14241. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14242. //选择题
  14243. let _work = {
  14244. userid: b[j].userid,
  14245. ateacher: b[j].ateacher,
  14246. wid: b[j].id,
  14247. works: b[j].content,
  14248. sName: b[j].name,
  14249. type: 16,
  14250. time: b[j].time,
  14251. score: b[j].score,
  14252. img: b[j].img,
  14253. likesCount: likesCount,
  14254. commentCount: commentCount,
  14255. isLikes: isLikes,
  14256. commentJson: commentJson,
  14257. };
  14258. _worksStudent[i].push(_work);
  14259. _worksStudent2[i].push(_work);
  14260. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14261. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  14262. let _gindex = JSON.parse(b[j].content);
  14263. if (
  14264. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  14265. b[j].userid
  14266. ) != -1
  14267. ) {
  14268. let _work = {
  14269. userid: b[j].userid,
  14270. ateacher: b[j].ateacher,
  14271. wid: b[j].id,
  14272. works: _gindex.url,
  14273. sName: b[j].name,
  14274. type: _gindex.type,
  14275. time: b[j].time,
  14276. score: b[j].score,
  14277. img: b[j].img,
  14278. likesCount: likesCount,
  14279. commentCount: commentCount,
  14280. isLikes: isLikes,
  14281. commentJson: commentJson,
  14282. };
  14283. _worksStudent[i][_gindex.groupIndex].push(_work);
  14284. _worksStudent2[i][_gindex.groupIndex].push(_work);
  14285. }
  14286. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14287. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  14288. let _work = {
  14289. userid: b[j].userid,
  14290. ateacher: b[j].ateacher,
  14291. wid: b[j].id,
  14292. works: b[j].content,
  14293. sName: b[j].name ? b[j].name : b[j].userid,
  14294. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  14295. time: b[j].time,
  14296. score: b[j].score,
  14297. img: b[j].img,
  14298. likesCount: likesCount,
  14299. commentCount: commentCount,
  14300. isLikes: isLikes,
  14301. commentJson: commentJson,
  14302. };
  14303. _worksStudent[i].push(_work);
  14304. _worksStudent2[i].push(_work);
  14305. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14306. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  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: 12,
  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 (
  14326. a[i].tool[0] == 57 &&
  14327. b[j].atool == 57 &&
  14328. b[j].type == 12
  14329. ) {
  14330. let _work = {
  14331. userid: b[j].userid,
  14332. ateacher: b[j].ateacher,
  14333. wid: b[j].id,
  14334. works: b[j].content,
  14335. sName: b[j].name ? b[j].name : b[j].userid,
  14336. type: 12,
  14337. time: b[j].time,
  14338. score: b[j].score,
  14339. img: b[j].img,
  14340. likesCount: likesCount,
  14341. commentCount: commentCount,
  14342. isLikes: isLikes,
  14343. commentJson: commentJson,
  14344. };
  14345. _worksStudent[i].push(_work);
  14346. _worksStudent2[i].push(_work);
  14347. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14348. } else if (
  14349. a[i].tool[0] == 57 &&
  14350. b[j].atool == 57 &&
  14351. b[j].type == 15
  14352. ) {
  14353. let _work = {
  14354. userid: b[j].userid,
  14355. ateacher: b[j].ateacher,
  14356. wid: b[j].id,
  14357. works: b[j].content,
  14358. sName: b[j].name ? b[j].name : b[j].userid,
  14359. type: 15,
  14360. time: b[j].time,
  14361. score: b[j].score,
  14362. img: b[j].img,
  14363. likesCount: likesCount,
  14364. commentCount: commentCount,
  14365. isLikes: isLikes,
  14366. commentJson: commentJson,
  14367. };
  14368. _worksStudent[i].push(_work);
  14369. _worksStudent2[i].push(_work);
  14370. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14371. }
  14372. }
  14373. }
  14374. if (_worksStudent[i] && _worksStudent[i].length) {
  14375. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  14376. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14377. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14378. var scoreA = parseFloat(jscoreA);
  14379. var scoreB = parseFloat(jscoreB);
  14380. if (scoreA == scoreB) {
  14381. return b.likesCount - a.likesCount;
  14382. }
  14383. return scoreB - scoreA;
  14384. });
  14385. if (this.isGroup) {
  14386. for (
  14387. var groupI = 0;
  14388. groupI < this.courseGroup.group.length;
  14389. groupI++
  14390. ) {
  14391. this.courseGroup.group[groupI].works[i] =
  14392. this.courseGroup.group[groupI].works[i].sort(function (
  14393. a,
  14394. b
  14395. ) {
  14396. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14397. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14398. var scoreA = parseFloat(jscoreA);
  14399. var scoreB = parseFloat(jscoreB);
  14400. if (scoreA == scoreB) {
  14401. return b.likesCount - a.likesCount;
  14402. }
  14403. return scoreB - scoreA;
  14404. });
  14405. }
  14406. }
  14407. }
  14408. }
  14409. this.timeWorkList = _worksStudent2;
  14410. for (var i = 0; i < a.length; i++) {
  14411. for (var j = 0; j < b.length; j++) {
  14412. var data = b[j];
  14413. if (i == b[j].tool) {
  14414. if (data.type == 2 || data.type == 8) {
  14415. for (var z = 0; z < this.checkJson[i].length; z++) {
  14416. this.checkJson[i][z].checkPerent = [];
  14417. this.checkJson[i][z].right = Math.round(
  14418. (this.checkJson[i][z].rightPerson.length /
  14419. parseInt(_worksStudent[i].length)) *
  14420. 100
  14421. );
  14422. let aaaa = this.checkJson[i][z];
  14423. for (
  14424. var k = 0;
  14425. k < this.checkJson[i][z].checkCount.length;
  14426. k++
  14427. ) {
  14428. this.checkJson[i][z].checkPerent.push(
  14429. Math.round(
  14430. (this.checkJson[i][z].checkCount[k] /
  14431. parseInt(_worksStudent[i].length)) *
  14432. 100
  14433. )
  14434. );
  14435. }
  14436. }
  14437. } else if (data.type == 9) {
  14438. for (var z = 0; z < this.checkJson[i].length; z++) {
  14439. this.checkJson[i][z].checkPerent = [];
  14440. this.checkJson[i][z].right = Math.round(
  14441. (this.checkJson[i][z].rightPerson.length /
  14442. this.checkJson[i][z].checkPerson.length) *
  14443. 100
  14444. );
  14445. }
  14446. }
  14447. }
  14448. }
  14449. }
  14450. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14451. this.joinGroup(gindex);
  14452. }
  14453. this.worksStudent = _worksStudent;
  14454. this.selectWorksStudent();
  14455. })
  14456. .catch((err) => {
  14457. console.error(err);
  14458. });
  14459. },
  14460. pngToWhiteBg(file) {
  14461. const _file = file;
  14462. let read = new FileReader();
  14463. read.readAsDataURL(file); // 文件转base64
  14464. return new Promise((resolve, reject) => {
  14465. read.onload = (e) => {
  14466. let img = new Image();
  14467. img.src = e.target.result;
  14468. img.onload = async () => {
  14469. // 生成canvas
  14470. let canvas = document.createElement("canvas");
  14471. let context = canvas.getContext("2d");
  14472. // 绘制图片到canvas上
  14473. canvas.width = img.width;
  14474. canvas.height = img.height;
  14475. // 在canvas绘制前填充白色背景
  14476. context.fillStyle = "#fff";
  14477. context.fillRect(0, 0, canvas.width, canvas.height);
  14478. context.drawImage(img, 0, 0);
  14479. let base64 = canvas.toDataURL(file["type"], 1);
  14480. let newFile = this.dataUrlToFile(base64, _file);
  14481. resolve(newFile);
  14482. };
  14483. };
  14484. });
  14485. },
  14486. dataUrlToFile(dataurl, file) {
  14487. let arr = dataurl.split(","),
  14488. mime = arr[0].match(/:(.*?);/)[1],
  14489. bstr = atob(arr[1]),
  14490. n = bstr.length,
  14491. u8arr = new Uint8Array(n);
  14492. while (n--) {
  14493. u8arr[n] = bstr.charCodeAt(n);
  14494. }
  14495. // return new Blob([u8arr], { type: mime });
  14496. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14497. type: mime,
  14498. });
  14499. },
  14500. async beforeUpload1(event, type, i) {
  14501. // this.$message.success('进入上传')
  14502. var file = "";
  14503. if (type == 5) {
  14504. file = event;
  14505. } else {
  14506. file = event.target.files[0];
  14507. }
  14508. var credentials = {
  14509. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14510. secretAccessKey: "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",
  14511. }; //秘钥形式的登录上传
  14512. window.AWS.config.update(credentials);
  14513. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14514. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14515. var _this = this;
  14516. _this.progress = 0;
  14517. _this.proVisible = true;
  14518. _this.isFinishSize = 0;
  14519. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14520. var b = [
  14521. "DOC",
  14522. "DOCX",
  14523. "DOCM",
  14524. "DOTM",
  14525. "DOTX",
  14526. "PPTX",
  14527. "PPSX",
  14528. "PPT",
  14529. "PPS",
  14530. "PPTM",
  14531. "POTM",
  14532. "PPAM",
  14533. "POTX",
  14534. "PPSM",
  14535. ];
  14536. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14537. var photoA = [
  14538. "BMP",
  14539. "GIF",
  14540. "PNG",
  14541. "JPGE",
  14542. "JPEG",
  14543. "JPG",
  14544. "TIF",
  14545. "PCX",
  14546. "TGA",
  14547. "EXIF",
  14548. "FPX",
  14549. "SVG",
  14550. "APNG",
  14551. ];
  14552. // if (
  14553. // b.indexOf(
  14554. // file.name
  14555. // .split(".")
  14556. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14557. // ) != -1
  14558. // ) {
  14559. // if (file.size / 1024 / 1024 > 10) {
  14560. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14561. // return;
  14562. // }
  14563. // } else if (
  14564. // excelA.indexOf(
  14565. // file.name
  14566. // .split(".")
  14567. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14568. // ) != "-1"
  14569. // ) {
  14570. // if (file.size / 1024 / 1024 > 5) {
  14571. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14572. // return;
  14573. // }
  14574. // }
  14575. if (
  14576. photoA.indexOf(
  14577. file.name
  14578. .split(".")
  14579. [file.name.split(".").length - 1].toLocaleUpperCase()
  14580. ) != -1 &&
  14581. type != 4
  14582. ) {
  14583. // const blob = await imageConversion.compress(file, 0.8)
  14584. file = await this.pngToWhiteBg(file);
  14585. const blob = await imageConversion.compressAccurately(file, 256);
  14586. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14587. file = new File([blob], file.name, { type: file.type });
  14588. }
  14589. if (file) {
  14590. var params = {
  14591. Key:
  14592. file.name.split(".")[0] +
  14593. new Date().getTime() +
  14594. "." +
  14595. file.name.split(".")[file.name.split(".").length - 1],
  14596. ContentType: file.type,
  14597. Body: file,
  14598. "Access-Control-Allow-Credentials": "*",
  14599. ACL: "public-read",
  14600. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14601. var options = {
  14602. // partSize: 2048 * 1024 * 1024,
  14603. partSize: 1024 * 1024 * 1024,
  14604. queueSize: 2,
  14605. leavePartsOnError: true,
  14606. };
  14607. bucket
  14608. .upload(params, options)
  14609. .on("httpUploadProgress", function (evt) {
  14610. //这里可以写进度条
  14611. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14612. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14613. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14614. })
  14615. .send(function (err, data) {
  14616. _this.progress = 100;
  14617. _this.isFinishSize = _this.isAllSize;
  14618. setTimeout(() => {
  14619. _this.proVisible = false;
  14620. }, 1000);
  14621. if (err) {
  14622. var a = _this.$refs.upload1.uploadFiles;
  14623. a.splice(a.length - 1, a.length);
  14624. _this.$message.error("上传失败");
  14625. } else {
  14626. // _this.$message.success('上传成功')
  14627. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14628. var c = [
  14629. "AVI",
  14630. "NAVI",
  14631. "MPEG",
  14632. "ASF",
  14633. "MOV",
  14634. "WMV",
  14635. "3GP",
  14636. "RM",
  14637. "RMVB",
  14638. "FLV",
  14639. "F4V",
  14640. "H.264",
  14641. "H.265",
  14642. "REAL VIDEO",
  14643. "MKV",
  14644. "WebM",
  14645. "HDDVD",
  14646. "MP4",
  14647. "MPG",
  14648. "M4V",
  14649. "MGV",
  14650. "OGV",
  14651. "QTM",
  14652. "STR",
  14653. "AMC",
  14654. "DVX",
  14655. "EVO",
  14656. "DAT",
  14657. "OGG",
  14658. "OGM",
  14659. ];
  14660. if (type == 1) {
  14661. _this.studyJuri[0].cover.push({
  14662. name: file.name,
  14663. url: data.Location,
  14664. uid: file.uid,
  14665. });
  14666. if (
  14667. c.indexOf(
  14668. _this.studyJuri[0].cover[0].url
  14669. .split(".")
  14670. [
  14671. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14672. ].toLocaleUpperCase()
  14673. ) != -1
  14674. ) {
  14675. _this.fileType = 2;
  14676. } else if (
  14677. b.indexOf(
  14678. _this.studyJuri[0].cover[0].url
  14679. .split(".")
  14680. [
  14681. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14682. ].toLocaleUpperCase()
  14683. ) != -1
  14684. ) {
  14685. _this.fileType = 1;
  14686. } else if (
  14687. photoA.indexOf(
  14688. _this.studyJuri[0].cover[0].url
  14689. .split(".")
  14690. [
  14691. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14692. ].toLocaleUpperCase()
  14693. ) != -1
  14694. ) {
  14695. _this.fileType = 0;
  14696. } else {
  14697. _this.fileType = 3;
  14698. }
  14699. _this.imgChange(null, null, type);
  14700. } else if (type == 2) {
  14701. _this.upToolImg = data.Location;
  14702. _this.imgChange(null, null, type);
  14703. _this.addCourseWorks(i);
  14704. } else if (type == 4) {
  14705. _this.addPz("3", data.Location);
  14706. } else if (type == 5) {
  14707. _this.addImgDrawImG(data.Location);
  14708. } else if (type == 6) {
  14709. var _ftype = 1;
  14710. if (
  14711. c.indexOf(
  14712. data.Location.split(".")[
  14713. data.Location.split(".").length - 1
  14714. ].toLocaleUpperCase()
  14715. ) != -1
  14716. ) {
  14717. _ftype = 5;
  14718. } else if (
  14719. b.indexOf(
  14720. data.Location.split(".")[
  14721. data.Location.split(".").length - 1
  14722. ].toLocaleUpperCase()
  14723. ) != -1
  14724. ) {
  14725. _ftype = 4;
  14726. } else {
  14727. _ftype = 1;
  14728. }
  14729. _this.plworkFile.push({
  14730. name: file.name,
  14731. url: data.Location,
  14732. uid: file.uid,
  14733. fileType: _ftype,
  14734. username:
  14735. _this.plworkFile.length > 10
  14736. ? _this.plworkFile.length + 1
  14737. : "0" + (_this.plworkFile.length + 1),
  14738. });
  14739. } else if (type == 7) {
  14740. _this.addCourseWorksGong(i, data.Location, 32);
  14741. } else if (type == 8) {
  14742. _this.addCourseWorksGong(i, data.Location, 57);
  14743. }
  14744. _this.imgChange(null, null, type);
  14745. console.log(data.Location);
  14746. // _this.$message.success('上传成功'+data.Location)
  14747. }
  14748. });
  14749. }
  14750. },
  14751. async beforeUpload3(event, type, i) {
  14752. // this.$message.success('进入上传')
  14753. let file = "";
  14754. let cfindex2 = 0;
  14755. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14756. file = event.target.files[cfindex];
  14757. var credentials = {
  14758. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14759. secretAccessKey: "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",
  14760. }; //秘钥形式的登录上传
  14761. window.AWS.config.update(credentials);
  14762. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14763. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14764. var _this = this;
  14765. // _this.progress = 0;
  14766. _this.proVisible2 = true;
  14767. var b = [
  14768. "DOC",
  14769. "DOCX",
  14770. "DOCM",
  14771. "DOTM",
  14772. "DOTX",
  14773. "PPTX",
  14774. "PPSX",
  14775. "PPT",
  14776. "PPS",
  14777. "PPTM",
  14778. "POTM",
  14779. "PPAM",
  14780. "POTX",
  14781. "PPSM",
  14782. ];
  14783. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14784. var photoA = [
  14785. "BMP",
  14786. "GIF",
  14787. "PNG",
  14788. "JPGE",
  14789. "JPG",
  14790. "TIF",
  14791. "PCX",
  14792. "TGA",
  14793. "EXIF",
  14794. "FPX",
  14795. "SVG",
  14796. "APNG",
  14797. ];
  14798. if (
  14799. photoA.indexOf(
  14800. file.name
  14801. .split(".")
  14802. [file.name.split(".").length - 1].toLocaleUpperCase()
  14803. ) != -1 &&
  14804. type != 4
  14805. ) {
  14806. // const blob = await imageConversion.compress(file, 0.8)
  14807. file = await this.pngToWhiteBg(file);
  14808. const blob = await imageConversion.compressAccurately(file, 256);
  14809. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14810. file = new File([blob], file.name, { type: file.type });
  14811. }
  14812. if (file) {
  14813. var params = {
  14814. Key:
  14815. file.name.split(".")[0] +
  14816. new Date().getTime() +
  14817. "." +
  14818. file.name.split(".")[file.name.split(".").length - 1],
  14819. ContentType: file.type,
  14820. Body: file,
  14821. "Access-Control-Allow-Credentials": "*",
  14822. ACL: "public-read",
  14823. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14824. var options = {
  14825. // partSize: 2048 * 1024 * 1024,
  14826. partSize: 1024 * 1024 * 1024,
  14827. queueSize: 2,
  14828. leavePartsOnError: true,
  14829. };
  14830. bucket
  14831. .upload(params, options)
  14832. .on("httpUploadProgress", function (evt) {
  14833. //这里可以写进度条
  14834. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14835. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14836. })
  14837. .send(function (err, data) {
  14838. // _this.progress = 100;
  14839. cfindex2++;
  14840. setTimeout(() => {
  14841. if (
  14842. cfindex2 == event.target.files.length - 1 ||
  14843. cfindex2 > event.target.files.length - 1
  14844. ) {
  14845. _this.proVisible2 = false;
  14846. }
  14847. }, 1000);
  14848. if (err) {
  14849. var a = _this.$refs.upload1.uploadFiles;
  14850. a.splice(a.length - 1, a.length);
  14851. _this.$message.error("上传失败");
  14852. } else {
  14853. // _this.$message.success('上传成功')
  14854. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14855. var c = [
  14856. "AVI",
  14857. "NAVI",
  14858. "MPEG",
  14859. "ASF",
  14860. "MOV",
  14861. "WMV",
  14862. "3GP",
  14863. "RM",
  14864. "RMVB",
  14865. "FLV",
  14866. "F4V",
  14867. "H.264",
  14868. "H.265",
  14869. "REAL VIDEO",
  14870. "MKV",
  14871. "WebM",
  14872. "HDDVD",
  14873. "MP4",
  14874. "MPG",
  14875. "M4V",
  14876. "MGV",
  14877. "OGV",
  14878. "QTM",
  14879. "STR",
  14880. "AMC",
  14881. "DVX",
  14882. "EVO",
  14883. "DAT",
  14884. "OGG",
  14885. "OGM",
  14886. ];
  14887. if (type == 1) {
  14888. _this.studyJuri[0].cover.push({
  14889. name: file.name,
  14890. url: data.Location,
  14891. uid: file.uid,
  14892. });
  14893. if (
  14894. c.indexOf(
  14895. _this.studyJuri[0].cover[0].url
  14896. .split(".")
  14897. [
  14898. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14899. ].toLocaleUpperCase()
  14900. ) != -1
  14901. ) {
  14902. _this.fileType = 2;
  14903. } else if (
  14904. b.indexOf(
  14905. _this.studyJuri[0].cover[0].url
  14906. .split(".")
  14907. [
  14908. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14909. ].toLocaleUpperCase()
  14910. ) != -1
  14911. ) {
  14912. _this.fileType = 1;
  14913. } else {
  14914. _this.fileType = 0;
  14915. }
  14916. _this.imgChange(null, null, type);
  14917. } else if (type == 2) {
  14918. _this.upToolImg = data.Location;
  14919. _this.imgChange(null, null, type);
  14920. _this.addCourseWorks(i);
  14921. } else if (type == 4) {
  14922. _this.addPz("3", data.Location);
  14923. } else if (type == 5) {
  14924. _this.addImgDrawImG(data.Location);
  14925. } else if (type == 6) {
  14926. var _ftype = 1;
  14927. if (
  14928. c.indexOf(
  14929. data.Location.split(".")[
  14930. data.Location.split(".").length - 1
  14931. ].toLocaleUpperCase()
  14932. ) != -1
  14933. ) {
  14934. _ftype = 5;
  14935. } else if (
  14936. b.indexOf(
  14937. data.Location.split(".")[
  14938. data.Location.split(".").length - 1
  14939. ].toLocaleUpperCase()
  14940. ) != -1
  14941. ) {
  14942. _ftype = 4;
  14943. } else {
  14944. _ftype = 1;
  14945. }
  14946. _this.plworkFile.push({
  14947. name: file.name,
  14948. url: data.Location,
  14949. uid: file.uid,
  14950. fileType: _ftype,
  14951. username:
  14952. _this.plworkFile.length + 1 > 9
  14953. ? _this.plworkFile.length + 1
  14954. : "0" + (_this.plworkFile.length + 1),
  14955. });
  14956. }
  14957. _this.imgChange(null, null, type);
  14958. console.log(data.Location);
  14959. // _this.$message.success('上传成功'+data.Location)
  14960. }
  14961. });
  14962. }
  14963. }
  14964. },
  14965. beforeUpload2(event, type) {
  14966. var file = event.target.files[0];
  14967. var credentials = {
  14968. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14969. secretAccessKey: "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",
  14970. }; //秘钥形式的登录上传
  14971. window.AWS.config.update(credentials);
  14972. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14973. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14974. var _this = this;
  14975. _this.progress = 0;
  14976. _this.proVisible = true;
  14977. if (file) {
  14978. var params = {
  14979. Key:
  14980. file.name.split(".")[0] +
  14981. new Date().getTime() +
  14982. "." +
  14983. file.name.split(".")[file.name.split(".").length - 1],
  14984. ContentType: file.type,
  14985. Body: file,
  14986. "Access-Control-Allow-Credentials": "*",
  14987. ACL: "public-read",
  14988. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14989. var options = {
  14990. partSize: 2048 * 1024 * 1024,
  14991. queueSize: 2,
  14992. leavePartsOnError: true,
  14993. };
  14994. bucket
  14995. .upload(params, options)
  14996. .on("httpUploadProgress", function (evt) {
  14997. //这里可以写进度条
  14998. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14999. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15000. })
  15001. .send(function (err, data) {
  15002. _this.progress = 100;
  15003. setTimeout(() => {
  15004. _this.proVisible = false;
  15005. }, 1000);
  15006. if (err) {
  15007. var a = _this.$refs.upload1.uploadFiles;
  15008. a.splice(a.length - 1, a.length);
  15009. _this.$message.error("上传失败");
  15010. } else {
  15011. if (type == 2) {
  15012. _this.studyJuri[0].upVedio.push({
  15013. name: file.name,
  15014. url: data.Location,
  15015. uid: file.uid,
  15016. });
  15017. _this.imgChange(null, null, type);
  15018. } else if (type == 3) {
  15019. _this.studyJuri[0].upFile.push({
  15020. name: file.name,
  15021. url: data.Location,
  15022. uid: file.uid,
  15023. });
  15024. _this.imgChange(null, null, type);
  15025. }
  15026. console.log(data.Location);
  15027. }
  15028. });
  15029. }
  15030. },
  15031. allScrell() {
  15032. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15033. },
  15034. nextOrpreSteps(t) {
  15035. if (this.IsFollow && this.tType == 2) {
  15036. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15037. return;
  15038. }
  15039. var b = this.chapInfoList.length - 1;
  15040. if (t == 0) {
  15041. if (this.courseType == 0) {
  15042. if (this.taskCount == 0) {
  15043. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15044. if (this.IsLookOpen) {
  15045. if (
  15046. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15047. ) {
  15048. if (
  15049. this.courseDetail.userid != this.userid &&
  15050. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15051. ) {
  15052. this.$message.error("任务未解锁");
  15053. } else {
  15054. this.$message.error("上一任务未解锁");
  15055. }
  15056. return;
  15057. }
  15058. }
  15059. this.navList[this.courseType].isOpen = false;
  15060. this.courseType = b;
  15061. this.taskCount =
  15062. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15063. .length - 1;
  15064. this.navList[this.courseType].isOpen = true;
  15065. } else {
  15066. this.taskCount--;
  15067. }
  15068. } else {
  15069. if (this.taskCount == 0) {
  15070. this.navList[this.courseType].isOpen = false;
  15071. this.courseType--;
  15072. this.taskCount =
  15073. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15074. .length - 1;
  15075. this.navList[this.courseType].isOpen = true;
  15076. } else {
  15077. this.taskCount--;
  15078. }
  15079. }
  15080. } else {
  15081. if (this.courseType == b) {
  15082. if (
  15083. this.taskCount ==
  15084. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15085. 1
  15086. ) {
  15087. this.navList[this.courseType].isOpen = false;
  15088. this.courseType = 0;
  15089. this.taskCount = 0;
  15090. this.navList[this.courseType].isOpen = true;
  15091. } else {
  15092. var bbb = parseInt(this.taskCount) + 1;
  15093. if (
  15094. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15095. .isLook &&
  15096. this.courseDetail.userid != this.userid &&
  15097. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15098. this.IsLookOpen
  15099. ) {
  15100. this.$message.error("任务未解锁");
  15101. return;
  15102. }
  15103. this.taskCount++;
  15104. if (this.IsLookOpen) {
  15105. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15106. this.taskCount
  15107. ].isLook = true;
  15108. this.addCourseState(3);
  15109. }
  15110. }
  15111. } else {
  15112. if (
  15113. this.taskCount ==
  15114. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15115. 1
  15116. ) {
  15117. var bbb = parseInt(this.courseType) + 1;
  15118. if (
  15119. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  15120. this.courseDetail.userid != this.userid &&
  15121. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15122. this.IsLookOpen
  15123. ) {
  15124. this.$message.error("任务未解锁");
  15125. return;
  15126. }
  15127. this.navList[this.courseType].isOpen = false;
  15128. this.courseType++;
  15129. this.taskCount = 0;
  15130. this.navList[this.courseType].isOpen = true;
  15131. } else {
  15132. var bbb = parseInt(this.taskCount) + 1;
  15133. if (
  15134. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15135. .isLook &&
  15136. this.courseDetail.userid != this.userid &&
  15137. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15138. this.IsLookOpen
  15139. ) {
  15140. this.$message.error("任务未解锁");
  15141. return;
  15142. }
  15143. this.taskCount++;
  15144. }
  15145. if (this.IsLookOpen) {
  15146. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15147. this.taskCount
  15148. ].isLook = true;
  15149. this.addCourseState(3);
  15150. }
  15151. }
  15152. // if (
  15153. // this.taskCount ==
  15154. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  15155. // ) {
  15156. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  15157. // } else {
  15158. // this.taskCount++;
  15159. // }
  15160. }
  15161. document.scrollingElement.scrollTop = 0;
  15162. this.showType = 0;
  15163. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15164. // if (this.vedio[this.taskCount].length > 0) {
  15165. // var a =
  15166. // document.getElementsByClassName("box_course")[this.taskCount]
  15167. // .offsetHeight;
  15168. // document.getElementsByClassName("vedioList")[
  15169. // this.taskCount
  15170. // ].style.height = a + "px";
  15171. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  15172. // a - 40 + "px";
  15173. // }
  15174. this.isNoHomeWork = false;
  15175. (this.studyJuri = [
  15176. {
  15177. content: "",
  15178. cover: [],
  15179. upVedio: [],
  15180. upFile: [],
  15181. },
  15182. ]),
  15183. (this.radio = []);
  15184. this.isClickNav = "";
  15185. this.selectPz();
  15186. this.getHomeWork();
  15187. this.getCourseDetail(2);
  15188. this.$forceUpdate();
  15189. },
  15190. openTask(s, n, i) {
  15191. if (this.IsFollow && this.tType == 2) {
  15192. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15193. return;
  15194. }
  15195. if (this.IsLookOpen) {
  15196. if (
  15197. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  15198. this.courseDetail.userid != this.userid &&
  15199. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15200. ) {
  15201. this.$message.error("任务未解锁");
  15202. return;
  15203. }
  15204. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  15205. if (
  15206. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  15207. .isLook
  15208. ) {
  15209. this.$message.error("上一任务未解锁");
  15210. return;
  15211. }
  15212. } else if (s > this.courseType) {
  15213. if (n > 0) {
  15214. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  15215. this.$message.error("上一任务未解锁");
  15216. return;
  15217. }
  15218. } else {
  15219. if (
  15220. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  15221. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  15222. ].isLook
  15223. ) {
  15224. this.$message.error("上一任务未解锁");
  15225. return;
  15226. }
  15227. }
  15228. }
  15229. }
  15230. if (this.navList[s].task[n].isOpen == true) {
  15231. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  15232. return;
  15233. }
  15234. this.courseType = s;
  15235. this.navId = i;
  15236. this.taskCount = n;
  15237. this.navList[this.courseType].task[this.taskCount].isOpen =
  15238. !this.navList[this.courseType].task[this.taskCount].isOpen;
  15239. if (this.IsLookOpen) {
  15240. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15241. this.taskCount
  15242. ].isLook = true;
  15243. this.addCourseState(3);
  15244. }
  15245. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  15246. this.isCloseList[ci].isClose = 0;
  15247. }
  15248. this.showType = 0;
  15249. this.isNoHomeWork = false;
  15250. (this.studyJuri = [
  15251. {
  15252. content: "",
  15253. cover: [],
  15254. upVedio: [],
  15255. upFile: [],
  15256. },
  15257. ]),
  15258. (this.radio = []);
  15259. document.scrollingElement.scrollTop = 0;
  15260. // setTimeout(() => {
  15261. // let a = document.getElementById(i);
  15262. // if (a.offsetTop - 110 == 0) {
  15263. // window.scrollTo(0, 0);
  15264. // } else {
  15265. // window.scrollTo(0, a.offsetTop);
  15266. // }
  15267. // }, 0);
  15268. this.selectPz();
  15269. this.getHomeWork();
  15270. this.getCourseDetail(2);
  15271. },
  15272. get(i) {
  15273. if (this.IsFollow && this.tType == 2) {
  15274. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15275. return;
  15276. }
  15277. // for(var k=0;k<this.navList.length;k++){
  15278. // this.navList[k].isOpen = false;
  15279. // }
  15280. // this.navList[i].isOpen = true;
  15281. this.navList[i].isOpen = !this.navList[i].isOpen;
  15282. if (this.navList[i].isOpen) {
  15283. this.openTask(i, 0, i + "-0");
  15284. }
  15285. },
  15286. addQuestion() {
  15287. this.answerList.push({
  15288. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15289. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15290. });
  15291. let params = [
  15292. {
  15293. uid: this.userid,
  15294. cid: this.id,
  15295. stage: this.courseType,
  15296. task: this.taskCount,
  15297. tool: this.toolindex,
  15298. content: JSON.stringify(this.answerList),
  15299. type: 3,
  15300. },
  15301. ];
  15302. this.ajax
  15303. .post(this.$store.state.api + "addCourseWorks", params)
  15304. .then((res) => {
  15305. this.$message({
  15306. message: "提交成功",
  15307. type: "success",
  15308. });
  15309. this.answerList = [];
  15310. this.answerDialogVisible = false;
  15311. this.selectStudent();
  15312. this.selectSWorks();
  15313. this.selectSLook();
  15314. })
  15315. .catch((err) => {
  15316. this.$message.error("提交失败");
  15317. console.error(err);
  15318. });
  15319. },
  15320. addQuestionTeacher() {
  15321. this.answerList.push({
  15322. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15323. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15324. });
  15325. let params = [
  15326. {
  15327. uid: this.sStudent.userid,
  15328. cid: this.id,
  15329. stage: this.courseType,
  15330. task: this.taskCount,
  15331. tool: this.toolindex,
  15332. content: JSON.stringify(this.answerList),
  15333. type: 3,
  15334. ateacher: this.userid,
  15335. },
  15336. ];
  15337. this.ajax
  15338. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15339. .then((res) => {
  15340. this.$message({
  15341. message: "提交成功",
  15342. type: "success",
  15343. });
  15344. this.answerList = [];
  15345. this.questionAnswer = "";
  15346. this.answerDialogVisibleTeacher = false;
  15347. this.selectStudent();
  15348. this.selectSWorks();
  15349. this.selectSLook();
  15350. })
  15351. .catch((err) => {
  15352. this.$message.error("提交失败");
  15353. console.error(err);
  15354. });
  15355. },
  15356. refreshCourse() {
  15357. // window.location.reload();
  15358. this.navList = [];
  15359. this.getCourseDetail(1);
  15360. },
  15361. getCourseDetail(type, gindex) {
  15362. let loading;
  15363. if (type != 2) {
  15364. loading = this.$loading.service({
  15365. background: "rgba(255, 255, 255, 0.7)",
  15366. target: document.querySelector(".student_table"),
  15367. });
  15368. }
  15369. // this.navList[0].isOpen = false;
  15370. // this.navList[this.courseType].isOpen = true;
  15371. // this.courseType = this.courseTypeLine;
  15372. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15373. let params = {
  15374. courseId: this.id,
  15375. };
  15376. this.ajax
  15377. .get(this.$store.state.api + "selectCourseDetail3", params)
  15378. .then((res) => {
  15379. if (type != 2) {
  15380. loading.close();
  15381. if (
  15382. this.courseType >
  15383. JSON.parse(res.data[0][0].chapters).length - 1
  15384. ) {
  15385. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15386. }
  15387. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15388. .chapterInfo[0].taskJson;
  15389. var b = [
  15390. "AVI",
  15391. "NAVI",
  15392. "MPEG",
  15393. "ASF",
  15394. "MOV",
  15395. "WMV",
  15396. "3GP",
  15397. "RM",
  15398. "RMVB",
  15399. "FLV",
  15400. "F4V",
  15401. "H.264",
  15402. "H.265",
  15403. "REAL VIDEO",
  15404. "MKV",
  15405. "WebM",
  15406. "HDDVD",
  15407. "MP4",
  15408. "MPG",
  15409. "M4V",
  15410. "MGV",
  15411. "OGV",
  15412. "QTM",
  15413. "STR",
  15414. "AMC",
  15415. "DVX",
  15416. "EVO",
  15417. "DAT",
  15418. "OGG",
  15419. "OGM",
  15420. "MP3",
  15421. ];
  15422. let _chapterData = [];
  15423. for (var i = 0; i < a.length; i++) {
  15424. var c = a[i].chapterData;
  15425. this.vedio[i] = [];
  15426. this.textList[i] = [];
  15427. this.lineList[i] = [];
  15428. this.chapToolList[i] = [];
  15429. this.file[i] = [];
  15430. this.fileC[i] = [];
  15431. _chapterData[i] = c.filter((el) => {
  15432. return el.type != 12;
  15433. });
  15434. this.fileC[i] = c.filter((el) => {
  15435. return el.type == 12;
  15436. });
  15437. // else if (c[j].type == 12) {
  15438. // this.fileC[i].push(c[j]);
  15439. // }
  15440. for (var j = 0; j < c.length; j++) {
  15441. if (c[j].type == 7) {
  15442. this.chapToolList[i].push(c[j]);
  15443. } else if (c[j].type == 8 || c[j].type == 14) {
  15444. this.lineList[i].push(c[j]);
  15445. } else if (c[j].type == 6) {
  15446. this.textList[i].push(c[j]);
  15447. } else {
  15448. if (
  15449. b.indexOf(
  15450. c[j].url
  15451. .split(".")
  15452. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15453. ) != -1
  15454. ) {
  15455. this.vedio[i].push(c[j]);
  15456. } else {
  15457. this.file[i].push(c[j]);
  15458. }
  15459. }
  15460. }
  15461. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15462. d.sources[0].src =
  15463. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15464. this.playerO[i] = d;
  15465. }
  15466. this.courseDetail = res.data[0][0];
  15467. this.tcid = this.arrayToArray(
  15468. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15469. this.tcid2 ? this.tcid2.split(",") : []
  15470. ).join(",");
  15471. this.evalua = res.data[0][0].evaId;
  15472. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15473. this.courseType
  15474. ];
  15475. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15476. if (this.tcid && res.data[1].length) {
  15477. let _inviteA = [];
  15478. for (var ik = 0; ik < res.data[1].length; ik++) {
  15479. _inviteA.push({
  15480. cid: res.data[1][ik].classid,
  15481. ic: res.data[1][ik].code,
  15482. });
  15483. }
  15484. for (var ik = 0; ik < _inviteA.length; ik++) {
  15485. if (
  15486. this.arrayToArray(
  15487. _inviteA[ik].cid.split(","),
  15488. this.tcid.split(",")
  15489. ).length
  15490. ) {
  15491. this.inviteCode = _inviteA[ik].ic;
  15492. break;
  15493. }
  15494. }
  15495. }
  15496. for (var l = 0; l < this.chapInfoList.length; l++) {
  15497. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15498. for (var m = 0; m < w.length; m++) {
  15499. w[m].id = l + "-" + m;
  15500. }
  15501. }
  15502. let taskCount = 0;
  15503. if (
  15504. _chapterData[taskCount].length &&
  15505. _chapterData[taskCount][0].type == 2
  15506. ) {
  15507. this.showType = 0;
  15508. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  15509. } else {
  15510. if (_chapterData[taskCount].length > 0) {
  15511. let _url = _chapterData[taskCount][0].url;
  15512. if (
  15513. _chapterData[taskCount][0].type == 8 ||
  15514. _chapterData[taskCount][0].type == 14
  15515. ) {
  15516. this.showType = 2;
  15517. if (
  15518. _url.indexOf("https://") == -1 &&
  15519. _url.indexOf("http://") == -1
  15520. ) {
  15521. _url = "https://" + _url;
  15522. }
  15523. this.pptImgUrl1 = _url;
  15524. } else if (_chapterData[taskCount][0].type == 3) {
  15525. if (
  15526. _url
  15527. .split(".")
  15528. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15529. ) {
  15530. this.showType = 3;
  15531. this.pptImgUrl1 = _url;
  15532. } else if (
  15533. this.isAssetTypeAnImage(
  15534. _url
  15535. .split(".")
  15536. [_url.split(".").length - 1].toLocaleLowerCase()
  15537. )
  15538. ) {
  15539. this.showType = 4;
  15540. this.pptImgUrl1 = _url;
  15541. } else {
  15542. this.showType = 2;
  15543. this.pptImgUrl1 =
  15544. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15545. _url;
  15546. }
  15547. } else if (_chapterData[taskCount][0].type == 13) {
  15548. this.showType = 4;
  15549. this.pptImgUrl1 = _url;
  15550. } else if (_chapterData[taskCount][0].type == 6) {
  15551. this.showType = 1;
  15552. this.text = this.textList[taskCount][0];
  15553. }
  15554. }
  15555. }
  15556. this.isClickNav = 0;
  15557. if (
  15558. !_chapterData[taskCount].length ||
  15559. _chapterData[taskCount][0].type == 12
  15560. ) {
  15561. this.isClickNav = "";
  15562. this.showType = "";
  15563. }
  15564. this.vChapterData = _chapterData;
  15565. } else {
  15566. this.showType = 0;
  15567. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15568. .chapterInfo[0].taskJson;
  15569. var b = [
  15570. "AVI",
  15571. "NAVI",
  15572. "MPEG",
  15573. "ASF",
  15574. "MOV",
  15575. "WMV",
  15576. "3GP",
  15577. "RM",
  15578. "RMVB",
  15579. "FLV",
  15580. "F4V",
  15581. "H.264",
  15582. "H.265",
  15583. "REAL VIDEO",
  15584. "MKV",
  15585. "WebM",
  15586. "HDDVD",
  15587. "MP4",
  15588. "MPG",
  15589. "M4V",
  15590. "MGV",
  15591. "OGV",
  15592. "QTM",
  15593. "STR",
  15594. "AMC",
  15595. "DVX",
  15596. "EVO",
  15597. "DAT",
  15598. "OGG",
  15599. "OGM",
  15600. "MP3",
  15601. ];
  15602. let _chapterData = [];
  15603. for (var i = 0; i < a.length; i++) {
  15604. var c = a[i].chapterData;
  15605. this.vedio[i] = [];
  15606. this.textList[i] = [];
  15607. this.lineList[i] = [];
  15608. this.chapToolList[i] = [];
  15609. this.file[i] = [];
  15610. this.fileC[i] = [];
  15611. _chapterData[i] = c.filter((el) => {
  15612. return el.type != 12;
  15613. });
  15614. this.fileC[i] = c.filter((el) => {
  15615. return el.type == 12;
  15616. });
  15617. for (var j = 0; j < c.length; j++) {
  15618. if (c[j].type == 7) {
  15619. this.chapToolList[i].push(c[j]);
  15620. } else if (c[j].type == 8 || c[j].type == 14) {
  15621. this.lineList[i].push(c[j]);
  15622. } else if (c[j].type == 6) {
  15623. this.textList[i].push(c[j]);
  15624. } else {
  15625. if (
  15626. b.indexOf(
  15627. c[j].url
  15628. .split(".")
  15629. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15630. ) != -1
  15631. ) {
  15632. this.vedio[i].push(c[j]);
  15633. } else {
  15634. this.file[i].push(c[j]);
  15635. }
  15636. }
  15637. }
  15638. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15639. d.sources[0].src =
  15640. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15641. this.playerO[i] = d;
  15642. }
  15643. let taskCount = 0;
  15644. if (
  15645. _chapterData[taskCount].length &&
  15646. _chapterData[taskCount][0].type == 2
  15647. ) {
  15648. this.showType = 0;
  15649. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  15650. } else {
  15651. if (_chapterData[taskCount].length > 0) {
  15652. let _url = _chapterData[taskCount][0].url;
  15653. if (
  15654. _chapterData[taskCount][0].type == 8 ||
  15655. _chapterData[taskCount][0].type == 14
  15656. ) {
  15657. this.showType = 2;
  15658. if (
  15659. _url.indexOf("https://") == -1 &&
  15660. _url.indexOf("http://") == -1
  15661. ) {
  15662. _url = "https://" + _url;
  15663. }
  15664. this.pptImgUrl1 = _url;
  15665. } else if (_chapterData[taskCount][0].type == 3) {
  15666. if (
  15667. _url
  15668. .split(".")
  15669. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15670. ) {
  15671. this.showType = 3;
  15672. this.pptImgUrl1 = _url;
  15673. } else if (
  15674. this.isAssetTypeAnImage(
  15675. _url
  15676. .split(".")
  15677. [_url.split(".").length - 1].toLocaleLowerCase()
  15678. )
  15679. ) {
  15680. this.showType = 4;
  15681. this.pptImgUrl1 = _url;
  15682. } else {
  15683. this.showType = 2;
  15684. this.pptImgUrl1 =
  15685. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15686. _url;
  15687. }
  15688. } else if (_chapterData[taskCount][0].type == 13) {
  15689. this.showType = 4;
  15690. this.pptImgUrl1 = _url;
  15691. } else if (_chapterData[taskCount][0].type == 6) {
  15692. this.showType = 1;
  15693. this.text = this.textList[taskCount][0];
  15694. }
  15695. }
  15696. }
  15697. this.isClickNav = 0;
  15698. if (
  15699. !_chapterData[taskCount].length ||
  15700. _chapterData[taskCount][0].type == 12
  15701. ) {
  15702. this.isClickNav = "";
  15703. this.showType = "";
  15704. }
  15705. this.vChapterData = _chapterData;
  15706. this.$forceUpdate();
  15707. }
  15708. // else {
  15709. // this.courseDetail = res.data[0][0];
  15710. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15711. // }
  15712. let _this = this;
  15713. if (_this.timer) {
  15714. clearInterval(_this.timer);
  15715. _this.timer = null;
  15716. }
  15717. if (_this.tcid) {
  15718. _this.getCourseGroup(gindex);
  15719. } else {
  15720. _this.selectSWorks(gindex);
  15721. }
  15722. _this.selectStudent();
  15723. _this.selectSLook();
  15724. _this.getPick();
  15725. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15726. _this.setCTask();
  15727. }
  15728. if (_this.dialogVisibleGroup) {
  15729. _this.groupJson =
  15730. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15731. _this.taskCount
  15732. ].toolChoose[_this.toolindex].groupJson;
  15733. }
  15734. _this.$nextTick(() => {
  15735. setTimeout(() => {
  15736. _this.checkEva();
  15737. }, 1000);
  15738. });
  15739. _this.timer = setInterval(function () {
  15740. // _this.getCourseDetail(2);
  15741. if (_this.tcid) {
  15742. _this.getCourseGroup(gindex);
  15743. } else {
  15744. _this.selectSWorks(gindex);
  15745. }
  15746. _this.selectStudent();
  15747. _this.selectSLook();
  15748. _this.getPick();
  15749. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15750. _this.setCTask();
  15751. }
  15752. if (_this.dialogVisibleGroup) {
  15753. _this.groupJson =
  15754. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15755. _this.taskCount
  15756. ].toolChoose[_this.toolindex].groupJson;
  15757. }
  15758. if (_this.tType == 4 || _this.ispzType == 4) {
  15759. _this.selectPz();
  15760. }
  15761. }, 5000);
  15762. _this.$nextTick(function () {
  15763. setTimeout(() => {
  15764. // var a =
  15765. // document.getElementsByClassName("box_course")[0].offsetHeight;
  15766. // document.getElementsByClassName("vedioList")[0].style.height =
  15767. // a + "px";
  15768. // document.getElementsByClassName("navBox")[0].style.height =
  15769. // a - 40 + "px";
  15770. // if (_this.vedio[_this.taskCount].length > 0) {
  15771. // _this.vedioTime = [];
  15772. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  15773. // _this.vedioTime[i] = document.getElementsByClassName(
  15774. // "vjs-duration-display"
  15775. // )[i].textContent;
  15776. // }
  15777. // }
  15778. }, 1000);
  15779. });
  15780. })
  15781. .catch((err) => {
  15782. loading.close();
  15783. console.error(err);
  15784. });
  15785. },
  15786. getCourseGroup(gindex) {
  15787. let params = {
  15788. cid: this.id,
  15789. classid: this.tcid ? this.tcid : "1",
  15790. };
  15791. this.ajax
  15792. .get(this.$store.state.api + "getCourseGroup", params)
  15793. .then((res) => {
  15794. if (res.data && res.data[0].length) {
  15795. if (!this.isGroup) {
  15796. let courseGroup = JSON.parse(res.data[0][0].group);
  15797. courseGroup.group = courseGroup.group.filter((el) => {
  15798. el.works = [];
  15799. return el;
  15800. });
  15801. if (courseGroup.isopen == 2) {
  15802. this.isGroup = false;
  15803. this.selectSWorks(gindex);
  15804. return;
  15805. }
  15806. this.courseGroup = courseGroup;
  15807. let groupPerson = res.data[1];
  15808. let group = JSON.parse(res.data[0][0].group).group;
  15809. let courseGroupStudent = {};
  15810. let courseGroupStudentUid = {};
  15811. for (var i = 0; i < group.length; i++) {
  15812. courseGroupStudent[group[i].id] = [];
  15813. courseGroupStudentUid[group[i].id] = [];
  15814. for (var j = 0; j < groupPerson.length; j++) {
  15815. if (groupPerson[j].groupCid == group[i].id) {
  15816. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15817. courseGroupStudentUid[group[i].id].push(
  15818. groupPerson[j].userid
  15819. );
  15820. }
  15821. }
  15822. }
  15823. this.courseGroupStudent = courseGroupStudent;
  15824. this.courseGroupStudentUid = courseGroupStudentUid;
  15825. }
  15826. if (this.courseGroup.isopen == 2) {
  15827. this.isGroup = false;
  15828. } else {
  15829. this.isGroup = true;
  15830. }
  15831. this.selectSWorks(gindex);
  15832. } else {
  15833. this.selectSWorks(gindex);
  15834. this.isGroup = false;
  15835. }
  15836. })
  15837. .catch((err) => {
  15838. // this.$message.error("网络不佳");
  15839. console.error(err);
  15840. });
  15841. },
  15842. setOperationTime() {
  15843. let _this = this;
  15844. if (_this.opertimer) {
  15845. clearInterval(_this.opertimer);
  15846. _this.opertimer = null;
  15847. }
  15848. _this.opertimer = setInterval(() => {
  15849. _this.setoTime("600");
  15850. }, 600000);
  15851. },
  15852. setoTime(time) {
  15853. let params = [
  15854. {
  15855. uid: this.userid,
  15856. cid: this.id,
  15857. type: "2",
  15858. time: time,
  15859. },
  15860. ];
  15861. this.ajax
  15862. .post(this.$store.state.api + "addOperationTimeT2", params)
  15863. .then((res) => {})
  15864. .catch((err) => {
  15865. console.error(err);
  15866. });
  15867. },
  15868. addPz(type, content) {
  15869. if (type == "1" && this.pzConText == "") {
  15870. this.$message.error("批注不能为空!");
  15871. return;
  15872. }
  15873. let params = [
  15874. {
  15875. cid: this.id,
  15876. uid: this.userid,
  15877. s: this.courseType,
  15878. t: this.taskCount,
  15879. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15880. type: type,
  15881. },
  15882. ];
  15883. this.ajax
  15884. .post(this.$store.state.api + "addPz2", params)
  15885. .then((res) => {
  15886. this.$message({
  15887. message: "添加成功",
  15888. type: "success",
  15889. });
  15890. this.pzConText = "";
  15891. this.addPzDialog = false;
  15892. this.selectPz();
  15893. })
  15894. .catch((err) => {
  15895. this.$message.error("添加失败");
  15896. console.error(err);
  15897. });
  15898. },
  15899. setReplyIndex(id, i) {
  15900. this.replyIndex = i;
  15901. this.replyPid = id;
  15902. this.replyDialogVisible = true;
  15903. },
  15904. addHf() {
  15905. if (this.reply == "") {
  15906. this.$message.error("回复不能为空!");
  15907. return;
  15908. }
  15909. let params = [
  15910. {
  15911. cid: this.id,
  15912. uid: this.userid,
  15913. s: this.courseType,
  15914. t: this.taskCount,
  15915. type: "1",
  15916. ct: 2,
  15917. pid: this.replyPid,
  15918. c: this.reply.replaceAll(/%/g, "%25"),
  15919. },
  15920. ];
  15921. this.ajax
  15922. .post(this.$store.state.api + "addHf", params)
  15923. .then((res) => {
  15924. this.reply = "";
  15925. this.$message({
  15926. message: "回复成功",
  15927. type: "success",
  15928. });
  15929. this.replyDialogVisible = false;
  15930. this.selectPz();
  15931. })
  15932. .catch((err) => {
  15933. this.$message.error("回复失败");
  15934. console.error(err);
  15935. });
  15936. },
  15937. deletePz(id) {
  15938. this.$confirm("确定删除此批注吗?", "提示", {
  15939. confirmButtonText: "确定",
  15940. cancelButtonText: "取消",
  15941. type: "warning",
  15942. })
  15943. .then(() => {
  15944. let params = [
  15945. {
  15946. id: id,
  15947. },
  15948. ];
  15949. this.ajax
  15950. .post(this.$store.state.api + "deletePz", params)
  15951. .then((res) => {
  15952. this.$message({
  15953. message: "删除成功",
  15954. type: "success",
  15955. });
  15956. this.selectPz();
  15957. })
  15958. .catch((err) => {
  15959. this.$message.error("网络异常");
  15960. console.error(err);
  15961. });
  15962. })
  15963. .catch(() => {});
  15964. },
  15965. deleteReply(id) {
  15966. this.$confirm("确定删除此回复吗?", "提示", {
  15967. confirmButtonText: "确定",
  15968. cancelButtonText: "取消",
  15969. type: "warning",
  15970. })
  15971. .then(() => {
  15972. let params = [
  15973. {
  15974. id: id,
  15975. },
  15976. ];
  15977. this.ajax
  15978. .post(this.$store.state.api + "deleteReply", params)
  15979. .then((res) => {
  15980. this.$message({
  15981. message: "删除成功",
  15982. type: "success",
  15983. });
  15984. this.selectPz();
  15985. })
  15986. .catch((err) => {
  15987. this.$message.error("网络异常");
  15988. console.error(err);
  15989. });
  15990. })
  15991. .catch(() => {});
  15992. },
  15993. setPz() {
  15994. if (this.ispzType == 4) {
  15995. this.ispzType = 0;
  15996. this.pzDialog = false;
  15997. return;
  15998. }
  15999. this.ispzType = 4;
  16000. this.pzDialog = true;
  16001. this.selectPz();
  16002. },
  16003. selectPz() {
  16004. let params = {
  16005. cid: this.id,
  16006. s: this.courseType,
  16007. t: this.taskCount,
  16008. type: this.pzStype,
  16009. uid: this.userid,
  16010. };
  16011. this.ajax
  16012. .get(this.$store.state.api + "selectPzListType", params)
  16013. .then((res) => {
  16014. this.pzList = res.data[0];
  16015. var a = res.data[1];
  16016. for (var i = 0; i < a.length; i++) {
  16017. for (var j = 0; j < this.pzList.length; j++) {
  16018. if (!this.pzList[j].hfList) {
  16019. this.pzList[j].hfList = [];
  16020. }
  16021. if (a[i].pid == this.pzList[j].id) {
  16022. this.pzList[j].hfList.push(a[i]);
  16023. }
  16024. }
  16025. }
  16026. })
  16027. .catch((err) => {
  16028. console.error(err);
  16029. });
  16030. },
  16031. // selectHf() {
  16032. // let params = {
  16033. // cid: this.id,
  16034. // s: this.courseType,
  16035. // t: this.taskCount,
  16036. // };
  16037. // this.ajax
  16038. // .get(this.$store.state.api + "selectHfList", params)
  16039. // .then((res) => {
  16040. // var a = res.data[0];
  16041. // for (var i = 0; i < a.length; i++) {
  16042. // for (var j = 0; j < this.pzList.length; j++) {
  16043. // if (!this.pzList[i].hfList) {
  16044. // this.pzList[i].hfList = [];
  16045. // }
  16046. // if (a[i].pid == this.pzList[j].id) {
  16047. // this.pzList[i].hfList.push(a[i]);
  16048. // }
  16049. // }
  16050. // }
  16051. // })
  16052. // .catch((err) => {
  16053. // console.error(err);
  16054. // });
  16055. // },
  16056. updateSLook() {
  16057. let params = {
  16058. sopen: this.sIsOpen == false ? 1 : 2,
  16059. cid: this.id,
  16060. };
  16061. this.ajax
  16062. .get(this.$store.state.api + "updateCourseSLook", params)
  16063. .then((res) => {
  16064. if (this.sIsOpen == true) {
  16065. this.$message({
  16066. message: "权限设置成功",
  16067. type: "success",
  16068. });
  16069. } else {
  16070. this.$message({
  16071. message: "权限关闭成功",
  16072. type: "success",
  16073. });
  16074. }
  16075. })
  16076. .catch((err) => {
  16077. console.error(err);
  16078. });
  16079. },
  16080. updateFollow() {
  16081. let params = [
  16082. {
  16083. sopen: this.IsFollow == false ? 1 : 2,
  16084. cid: this.id,
  16085. },
  16086. ];
  16087. this.ajax
  16088. .post(this.$store.state.api + "updateCourseFollow", params)
  16089. .then((res) => {
  16090. if (this.IsFollow == true) {
  16091. this.$message({
  16092. message: "开启成功",
  16093. type: "success",
  16094. });
  16095. } else {
  16096. this.$message({
  16097. message: "关闭成功",
  16098. type: "success",
  16099. });
  16100. }
  16101. this.setCTask();
  16102. })
  16103. .catch((err) => {
  16104. console.error(err);
  16105. });
  16106. },
  16107. setCTask() {
  16108. let params = [
  16109. {
  16110. sopen: this.courseType + "-" + this.taskCount,
  16111. cid: this.id,
  16112. },
  16113. ];
  16114. this.ajax
  16115. .post(this.$store.state.api + "updateCourseFollowC", params)
  16116. .then((res) => {})
  16117. .catch((err) => {
  16118. console.error(err);
  16119. });
  16120. },
  16121. updateLookOpen() {
  16122. let params = [
  16123. {
  16124. sopen: this.IsLookOpen == false ? 1 : 2,
  16125. cid: this.id,
  16126. },
  16127. ];
  16128. this.ajax
  16129. .post(this.$store.state.api + "updateCourseLookOpen", params)
  16130. .then((res) => {
  16131. if (this.IsLookOpen == true) {
  16132. // if (this.courseType != 0 && this.taskCount != 0) {
  16133. // this.openTask(0, 0, "0-0");
  16134. // }
  16135. this.$message({
  16136. message: "权限设置成功",
  16137. type: "success",
  16138. });
  16139. } else {
  16140. this.$message({
  16141. message: "权限关闭成功",
  16142. type: "success",
  16143. });
  16144. }
  16145. this.getCourseState(2);
  16146. })
  16147. .catch((err) => {
  16148. console.error(err);
  16149. });
  16150. },
  16151. selectSLook() {
  16152. let params = {
  16153. cid: this.id,
  16154. };
  16155. this.ajax
  16156. .get(this.$store.state.api + "selectCourseSLook", params)
  16157. .then((res) => {
  16158. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  16159. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  16160. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  16161. if (!this.IsLookOpen) {
  16162. this.setNavList();
  16163. } else {
  16164. this.getCourseState(1);
  16165. }
  16166. if (this.IsFollow && this.tType == 2) {
  16167. this.setContent2(false);
  16168. let _followC = res.data[0][0].followC.split("-");
  16169. if (
  16170. this.courseType != _followC[0] ||
  16171. this.taskCount != _followC[1]
  16172. ) {
  16173. this.navList[this.courseType].isOpen = false;
  16174. this.courseType = _followC[0];
  16175. this.navList[this.courseType].isOpen = true;
  16176. this.taskCount = parseInt(_followC[1]);
  16177. this.navId = res.data[0][0].followC;
  16178. document.scrollingElement.scrollTop = 0;
  16179. this.getCourseDetail(2);
  16180. }
  16181. }
  16182. })
  16183. .catch((err) => {
  16184. console.error(err);
  16185. });
  16186. },
  16187. setNavList() {
  16188. if (this.navList.length == 0) {
  16189. this.navList = [];
  16190. var copyList = [];
  16191. for (var l = 0; l < this.chapInfoList.length; l++) {
  16192. var q = this.chapInfoList[l].dyName;
  16193. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16194. var e;
  16195. copyList.push({
  16196. dyName: q,
  16197. isOpen: l === 0 ? true : false,
  16198. task: [],
  16199. });
  16200. for (var r = 0; r < w.length; r++) {
  16201. e = w[r].task;
  16202. if (this.chapInfoList[l].easy == 1) {
  16203. copyList[l].task.push({
  16204. taskName: q,
  16205. id: l + "-" + r,
  16206. isLook: w[r].isLook,
  16207. isOpen: r === 0 ? true : false,
  16208. tool: [],
  16209. });
  16210. } else {
  16211. copyList[l].task.push({
  16212. taskName: e,
  16213. id: l + "-" + r,
  16214. isLook: w[r].isLook,
  16215. isOpen: r === 0 ? true : false,
  16216. tool: [],
  16217. });
  16218. }
  16219. var t = w[r].toolChoose;
  16220. for (var k = 0; k < t.length; k++) {
  16221. var tool = t[k].tool[0];
  16222. copyList[l].task[r].tool.push({
  16223. tool: tool,
  16224. isTool: false,
  16225. });
  16226. }
  16227. // this.navId = this.navId ? this.navId : l + "-" + r;
  16228. // this.navId = l + "-" + r;
  16229. }
  16230. }
  16231. this.navList = copyList;
  16232. this.navList[0].isOpen = false;
  16233. this.navList[this.courseType].isOpen = true;
  16234. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16235. } else {
  16236. this.setNavList2();
  16237. }
  16238. },
  16239. setNavList2() {
  16240. for (var l = 0; l < this.chapInfoList.length; l++) {
  16241. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16242. for (var r = 0; r < w.length; r++) {
  16243. this.navList[l].task[r].isLook = w[r].isLook;
  16244. }
  16245. }
  16246. if (
  16247. this.IsLookOpen &&
  16248. !this.navList[this.courseType].task[this.taskCount].isLook
  16249. ) {
  16250. this.openTask(0, 0, "0-0");
  16251. }
  16252. this.$forceUpdate();
  16253. },
  16254. getCourseState(type) {
  16255. let params = {
  16256. cid: this.id,
  16257. };
  16258. this.ajax
  16259. .get(this.$store.state.api + "getCourseState", params)
  16260. .then((res) => {
  16261. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  16262. this.chapInfoList = JSON.parse(res.data[0][0].state);
  16263. this.setNavList();
  16264. this.$forceUpdate();
  16265. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  16266. this.addCourseState(2);
  16267. } else {
  16268. this.addCourseState(1);
  16269. }
  16270. })
  16271. .catch((err) => {
  16272. console.error(err);
  16273. });
  16274. },
  16275. addCourseState(type) {
  16276. let _state = this.chapInfoList;
  16277. // this.courseType this.taskCount
  16278. if (type == 1 || type == 2) {
  16279. for (var i = 0; i < _state.length; i++) {
  16280. let el = _state[i].chapterInfo[0].taskJson;
  16281. for (var j = 0; j < el.length; j++) {
  16282. // if (i == 0 && j == 0) {
  16283. // el[j].isLook = true;
  16284. // } else {
  16285. // el[j].isLook = false;
  16286. // }
  16287. if (
  16288. this.courseType > i ||
  16289. (this.courseType == i && this.taskCount + 1 > j)
  16290. ) {
  16291. el[j].isLook = true;
  16292. } else {
  16293. el[j].isLook = false;
  16294. }
  16295. }
  16296. }
  16297. }
  16298. let params = [
  16299. {
  16300. cid: this.id,
  16301. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  16302. },
  16303. ];
  16304. this.ajax
  16305. .post(
  16306. this.$store.state.api +
  16307. (type == 1 ? "addCourseState" : "updateCourseSate"),
  16308. params
  16309. )
  16310. .then((res) => {
  16311. if (this.IsLookOpen) {
  16312. this.setNavList();
  16313. }
  16314. if (type == 3 && type == 2) {
  16315. this.getCourseState(1);
  16316. }
  16317. })
  16318. .catch((err) => {
  16319. console.error(err);
  16320. });
  16321. },
  16322. getHomeWork() {
  16323. let params = {
  16324. cid: this.id,
  16325. stage: this.courseType,
  16326. task: this.taskCount,
  16327. uid: this.userid,
  16328. };
  16329. this.ajax
  16330. .get(this.$store.state.api + "selectWork", params)
  16331. .then((res) => {
  16332. if (res.data[0].length > 0) {
  16333. this.studyJuri = JSON.parse(res.data[0][0].content);
  16334. this.isNoHomeWork = true;
  16335. }
  16336. })
  16337. .catch((err) => {
  16338. console.error(err);
  16339. });
  16340. },
  16341. isAssetTypeAnImage(ext) {
  16342. return (
  16343. [
  16344. "png",
  16345. "jpg",
  16346. "jpeg",
  16347. "bmp",
  16348. "gif",
  16349. "webp",
  16350. "psd",
  16351. "svg",
  16352. "tiff",
  16353. ].indexOf(ext) !== -1
  16354. );
  16355. },
  16356. switchVideo(media) {
  16357. this.playerO = {};
  16358. this.playerOptions.poster = "";
  16359. this.playerOptions.sources[0].src = media;
  16360. this.playerO = this.playerOptions;
  16361. },
  16362. onPlayerPlay() {},
  16363. onPlayerTimeupdate(player) {
  16364. let gklog = player.cache_.currentTime; //当前播放的秒数
  16365. let a = player.cache_.duration; //视频的总时长
  16366. let gklog2 = parseInt(gklog);
  16367. // if(gklog2 == '3'){
  16368. // player.pause()
  16369. // setTimeout(()=>{
  16370. // player.currentTime(gklog2+1)
  16371. // player.play()
  16372. // },1000)
  16373. // }
  16374. console.log(" onPlayerTimeupdate!", gklog);
  16375. console.log(" onPlayerTimeupdate!", gklog2);
  16376. },
  16377. lookVedio(u, i) {
  16378. this.isClickNav = "";
  16379. // this.playerOptions.sources[0].src = u;
  16380. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16381. d.sources[0].src = u;
  16382. this.playerO[0] = d;
  16383. this.showType = 0;
  16384. // this.isClickNav = "video" + i;
  16385. this.isClickNav = i;
  16386. this.$forceUpdate();
  16387. },
  16388. lookText(i, t) {
  16389. this.isClickNav = "";
  16390. // this.text = this.textList[i][t];
  16391. this.text = this.vChapterData[i][t];
  16392. // this.dialogVisible1 = true;
  16393. this.showType = 1;
  16394. // this.isClickNav = "text" + t;
  16395. this.isClickNav = t;
  16396. },
  16397. lookTools(i, t) {
  16398. this.chapTools = this.chapToolList[i][t];
  16399. this.dialogVisible2 = true;
  16400. },
  16401. openFile(f) {
  16402. this.pptImgUrl = "";
  16403. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  16404. if (
  16405. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  16406. -1
  16407. ) {
  16408. this.pptImgUrl =
  16409. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  16410. this.showPDF = false;
  16411. this.dialogVisible3 = true;
  16412. } else if (
  16413. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16414. ) {
  16415. this.pptImgUrl = f;
  16416. this.showPDF = true;
  16417. this.dialogVisible3 = true;
  16418. }
  16419. },
  16420. openTable(f) {
  16421. this.tableJson = JSON.parse(f.works);
  16422. this.dialogVisibleTable2 = true;
  16423. },
  16424. openWord(f) {
  16425. this.tableJson = JSON.parse(f.works);
  16426. this.dialogVisibleTable3 = true;
  16427. },
  16428. doUrl(url, i) {
  16429. this.isClickNav = "";
  16430. this.pptImgUrl1 = "";
  16431. this.showType = 2;
  16432. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16433. url = "https://" + url;
  16434. }
  16435. this.pptImgUrl1 = "";
  16436. setTimeout(() => {
  16437. this.pptImgUrl1 = url;
  16438. }, 500);
  16439. // this.isClickNav = "line" + i;
  16440. this.isClickNav = i;
  16441. this.$forceUpdate();
  16442. },
  16443. checkPhoto(f, i) {
  16444. this.showType = 4;
  16445. this.pptImgUrl1 = f.url;
  16446. this.isClickNav = i;
  16447. this.$forceUpdate();
  16448. },
  16449. downFile(f, i) {
  16450. this.isClickNav = "";
  16451. this.pptImgUrl1 = "";
  16452. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  16453. if (
  16454. a.indexOf(
  16455. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  16456. ) != -1
  16457. ) {
  16458. this.pptImgUrl1 =
  16459. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  16460. // this.dialogVisible3 = true;
  16461. this.showType = 2;
  16462. } else if (
  16463. this.isAssetTypeAnImage(
  16464. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16465. )
  16466. ) {
  16467. this.showType = 4;
  16468. this.pptImgUrl1 = f.url;
  16469. } else if (
  16470. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16471. "PDF"
  16472. ) {
  16473. this.pptImgUrl1 = f.url;
  16474. // this.dialogVisible3 = true;
  16475. this.showType = 3;
  16476. } else {
  16477. window.open(this.file[i].url);
  16478. }
  16479. // this.isClickNav = "word" + i;
  16480. this.isClickNav = i;
  16481. },
  16482. downFileList(i) {
  16483. window.open(this.noImgList[i].url);
  16484. },
  16485. openAddWork() {
  16486. this.dialogVisible = true;
  16487. },
  16488. addBzWorks() {
  16489. let params = [
  16490. {
  16491. uid: this.userid,
  16492. cid: this.id,
  16493. stage: this.courseType,
  16494. task: this.taskCount,
  16495. tool: this.toolindex,
  16496. content: JSON.stringify(this.eScore),
  16497. type: 6,
  16498. },
  16499. ];
  16500. this.ajax
  16501. .post(this.$store.state.api + "addCourseWorks", params)
  16502. .then((res) => {
  16503. this.$message({
  16504. message: "提交成功",
  16505. type: "success",
  16506. });
  16507. this.eScore = { eBzText: "", eStar: [] };
  16508. this.studentEvalDialogVisible = false;
  16509. this.selectSWorks();
  16510. })
  16511. .catch((err) => {
  16512. this.$message.error("提交失败");
  16513. console.error(err);
  16514. });
  16515. },
  16516. addBzWorksTeacher() {
  16517. let params = [
  16518. {
  16519. uid: this.sStudent.userid,
  16520. cid: this.id,
  16521. stage: this.courseType,
  16522. task: this.taskCount,
  16523. tool: this.toolindex,
  16524. content: JSON.stringify(this.eScore),
  16525. type: 6,
  16526. },
  16527. ];
  16528. this.ajax
  16529. .post(this.$store.state.api + "addCourseWorks", params)
  16530. .then((res) => {
  16531. this.$message({
  16532. message: "提交成功",
  16533. type: "success",
  16534. });
  16535. this.eScore = { eBzText: "", eStar: [] };
  16536. this.studentEvalDialogVisibleTeacher = false;
  16537. this.selectSWorks();
  16538. })
  16539. .catch((err) => {
  16540. this.$message.error("提交失败");
  16541. console.error(err);
  16542. });
  16543. },
  16544. addStudentAsk() {
  16545. if (!this.radio.length) {
  16546. this.$message.error("请选择选项");
  16547. return;
  16548. }
  16549. for (var i = 0; i < this.askJson.askCount; i++) {
  16550. if (
  16551. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16552. (this.radio[i] !== 0 && !this.radio[i])
  16553. ) {
  16554. this.$message.error("请选择选项");
  16555. return;
  16556. }
  16557. }
  16558. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16559. let params = [
  16560. {
  16561. uid: this.userid,
  16562. cid: this.id,
  16563. stage: this.courseType,
  16564. task: this.taskCount,
  16565. tool: this.toolindex,
  16566. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16567. type: 2,
  16568. },
  16569. ];
  16570. this.ajax
  16571. .post(this.$store.state.api + "addCourseWorks", params)
  16572. .then((res) => {
  16573. this.$message({
  16574. message: "提交成功",
  16575. type: "success",
  16576. });
  16577. this.askList = [];
  16578. this.dialogVisible5 = false;
  16579. this.selectStudent();
  16580. this.selectSWorks();
  16581. this.selectSLook();
  16582. })
  16583. .catch((err) => {
  16584. this.$message.error("提交失败");
  16585. console.error(err);
  16586. });
  16587. },
  16588. addStudentAskTeacher() {
  16589. if (!this.radio.length) {
  16590. this.$message.error("请选择选项");
  16591. return;
  16592. }
  16593. for (var i = 0; i < this.askJson.askCount; i++) {
  16594. if (
  16595. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16596. (this.radio[i] !== 0 && !this.radio[i])
  16597. ) {
  16598. this.$message.error("请选择选项");
  16599. return;
  16600. }
  16601. }
  16602. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16603. let params = [
  16604. {
  16605. uid: this.sStudent.userid,
  16606. cid: this.id,
  16607. stage: this.courseType,
  16608. task: this.taskCount,
  16609. tool: this.toolindex,
  16610. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16611. type: 2,
  16612. },
  16613. ];
  16614. this.ajax
  16615. .post(this.$store.state.api + "addCourseWorks", params)
  16616. .then((res) => {
  16617. this.$message({
  16618. message: "提交成功",
  16619. type: "success",
  16620. });
  16621. this.askList = [];
  16622. this.dialogVisible5Teacher = false;
  16623. this.selectStudent();
  16624. this.selectSWorks();
  16625. this.selectSLook();
  16626. })
  16627. .catch((err) => {
  16628. this.$message.error("提交失败");
  16629. console.error(err);
  16630. });
  16631. },
  16632. addStudentTest() {
  16633. if (!this.radio.length) {
  16634. this.$message.error("请选择选项");
  16635. return;
  16636. }
  16637. for (var i = 0; i < this.testJson.testCount; i++) {
  16638. if (
  16639. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16640. (this.radio[i] !== 0 && !this.radio[i])
  16641. ) {
  16642. this.$message.error("请选择选项");
  16643. return;
  16644. }
  16645. }
  16646. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16647. let params = [
  16648. {
  16649. uid: this.userid,
  16650. cid: this.id,
  16651. stage: this.courseType,
  16652. task: this.taskCount,
  16653. tool: this.toolindex,
  16654. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16655. type: 8,
  16656. },
  16657. ];
  16658. this.ajax
  16659. .post(this.$store.state.api + "addCourseWorks", params)
  16660. .then((res) => {
  16661. this.$message({
  16662. message: "提交成功",
  16663. type: "success",
  16664. });
  16665. this.askList = [];
  16666. this.dialogVisibleChoice = false;
  16667. this.selectStudent();
  16668. this.selectSWorks();
  16669. this.selectSLook();
  16670. })
  16671. .catch((err) => {
  16672. this.$message.error("提交失败");
  16673. console.error(err);
  16674. });
  16675. },
  16676. addStudentTestTeacher() {
  16677. if (!this.radio.length) {
  16678. this.$message.error("请选择选项");
  16679. return;
  16680. }
  16681. for (var i = 0; i < this.testJson.testCount; i++) {
  16682. if (
  16683. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16684. (this.radio[i] !== 0 && !this.radio[i])
  16685. ) {
  16686. this.$message.error("请选择选项");
  16687. return;
  16688. }
  16689. }
  16690. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16691. let params = [
  16692. {
  16693. uid: this.sStudent.userid,
  16694. cid: this.id,
  16695. stage: this.courseType,
  16696. task: this.taskCount,
  16697. tool: this.toolindex,
  16698. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16699. type: 8,
  16700. },
  16701. ];
  16702. this.ajax
  16703. .post(this.$store.state.api + "addCourseWorks", params)
  16704. .then((res) => {
  16705. this.$message({
  16706. message: "提交成功",
  16707. type: "success",
  16708. });
  16709. this.askList = [];
  16710. this.dialogVisibleChoiceTeacher = false;
  16711. this.selectStudent();
  16712. this.selectSWorks();
  16713. this.selectSLook();
  16714. })
  16715. .catch((err) => {
  16716. this.$message.error("提交失败");
  16717. console.error(err);
  16718. });
  16719. },
  16720. addWork() {
  16721. if (this.studyJuri[0].content == "") {
  16722. this.$message.error("请将信息填写完整");
  16723. return;
  16724. } else if (this.studyJuri[0].cover.length == 0) {
  16725. this.$message.error("请将信息填写完整");
  16726. return;
  16727. } else if (this.studyJuri[0].upVedio.length == 0) {
  16728. this.$message.error("请将信息填写完整");
  16729. return;
  16730. }
  16731. if (this.isNoHomeWork) {
  16732. this.$confirm(
  16733. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  16734. "提示",
  16735. {
  16736. confirmButtonText: "确定",
  16737. cancelButtonText: "取消",
  16738. type: "warning",
  16739. }
  16740. )
  16741. .then(() => {
  16742. let params = [
  16743. {
  16744. uid: this.userid,
  16745. cid: this.id,
  16746. stage: this.courseType,
  16747. task: this.taskCount,
  16748. content: JSON.stringify(this.studyJuri),
  16749. },
  16750. ];
  16751. this.ajax
  16752. .post(this.$store.state.api + "addWorks", params)
  16753. .then((res) => {
  16754. this.$message({
  16755. message: "提交成功",
  16756. type: "success",
  16757. });
  16758. this.isNoHomeWork = true;
  16759. this.dialogVisible = false;
  16760. })
  16761. .catch((err) => {
  16762. this.$message.error("提交失败");
  16763. console.error(err);
  16764. });
  16765. })
  16766. .catch(() => {});
  16767. } else {
  16768. let params = [
  16769. {
  16770. uid: this.userid,
  16771. cid: this.id,
  16772. stage: this.courseType,
  16773. task: this.taskCount,
  16774. content: JSON.stringify(this.studyJuri),
  16775. },
  16776. ];
  16777. this.ajax
  16778. .post(this.$store.state.api + "addWorks", params)
  16779. .then((res) => {
  16780. this.$message({
  16781. message: "提交成功",
  16782. type: "success",
  16783. });
  16784. this.isNoHomeWork = true;
  16785. this.dialogVisible = false;
  16786. })
  16787. .catch((err) => {
  16788. this.$message.error("提交失败");
  16789. console.error(err);
  16790. });
  16791. }
  16792. },
  16793. selectCount() {
  16794. let params = {
  16795. cid: this.id,
  16796. chid: this.courseType,
  16797. uid: this.userid,
  16798. };
  16799. this.ajax
  16800. .get(this.$store.state.api + "selectToolsCount", params)
  16801. .then((res) => {
  16802. for (var i = 0; i < res.data[0].length; i++) {
  16803. if (res.data[0][i].tools == 1) {
  16804. this.wbCount = res.data[0][i].count;
  16805. } else if (res.data[0][i].tools == 2) {
  16806. this.wordCount = res.data[0][i].count;
  16807. } else if (res.data[0][i].tools == 3) {
  16808. this.mindCount = res.data[0][i].count;
  16809. } else if (res.data[0][i].tools == 4) {
  16810. this.askCount = res.data[0][i].count;
  16811. } else if (res.data[0][i].tools == 6) {
  16812. this.noteCount = res.data[0][i].count;
  16813. } else if (res.data[0][i].tools == 7) {
  16814. this.mindNetWorkCount = res.data[0][i].count;
  16815. } else if (res.data[0][i].tools == 8) {
  16816. this.libraryCount = res.data[0][i].count;
  16817. } else if (res.data[0][i].tools == 16) {
  16818. this.workCount = res.data[0][i].count;
  16819. } else if (res.data[0][i].tools == 10) {
  16820. this.timeCount = res.data[0][i].count;
  16821. } else if (res.data[0][i].tools == 15) {
  16822. this.answerCount = res.data[0][i].count;
  16823. } else if (res.data[0][i].tools == 18) {
  16824. this.trainCount = res.data[0][i].count;
  16825. }
  16826. }
  16827. })
  16828. .catch((err) => {
  16829. console.error(err);
  16830. });
  16831. },
  16832. openTools(t, i, index, c, sName,id) {
  16833. var z = JSON.parse(c);
  16834. this.noteName = sName;
  16835. if (t == 4) {
  16836. this.radio = [];
  16837. this.isAnswer = false;
  16838. let b = z[0].anwer;
  16839. this.radio = b;
  16840. this.askJson = z[0].askJson;
  16841. this.isAnswer = true;
  16842. this.dialogVisible5 = true;
  16843. } else if (t == 45) {
  16844. this.radio = [];
  16845. this.isAnswer = false;
  16846. let b = z[0].anwer;
  16847. this.radio = b;
  16848. this.testJson = z[0].testJson;
  16849. this.isAnswer = true;
  16850. this.dialogVisibleChoice = true;
  16851. }else if(t == 69){
  16852. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16853. .toolChoose[i].englishList;
  16854. this.oldEnglishJson = z;
  16855. this.engWid = id;
  16856. this.newEnglishList = { engTitle:"",engText:"" }
  16857. this.selectEngC(z);
  16858. }
  16859. // else if (t == 15) {
  16860. // this.answerQ = "";
  16861. // this.questionAnswer = "";
  16862. // this.answerQ = z[0].answerTitle;
  16863. // this.questionAnswer = z[0].answer;
  16864. // this.answerDialogVisible = true;
  16865. // }
  16866. },
  16867. fastText(p, t) {
  16868. if (t == 1) {
  16869. this.commentText += p;
  16870. } else {
  16871. this.eScore.eBzText += p;
  16872. }
  16873. },
  16874. addTools(t, i, index) {
  16875. var a = 0;
  16876. // this.taskCount = index;
  16877. this.toolindex = i;
  16878. if (t == 1) {
  16879. if (this.wbCount > 0) {
  16880. this.updateCount(this.wbCount, t);
  16881. } else {
  16882. this.wbCount++;
  16883. a = this.wbCount;
  16884. this.toolsCount(a, t);
  16885. }
  16886. window.parent.postMessage(
  16887. {
  16888. tools: "1",
  16889. cid: this.id,
  16890. stage: this.courseType,
  16891. task: this.taskCount,
  16892. tool: i,
  16893. },
  16894. "*"
  16895. );
  16896. } else if (t == 2) {
  16897. if (this.wordCount > 0) {
  16898. this.updateCount(this.wordCount, t);
  16899. } else {
  16900. this.wordCount++;
  16901. a = this.wordCount;
  16902. this.toolsCount(a, t);
  16903. }
  16904. window.parent.postMessage({ tools: "2" }, "*");
  16905. } else if (t == 3) {
  16906. if (this.mindCount > 0) {
  16907. this.updateCount(this.mindCount, t);
  16908. } else {
  16909. this.mindCount++;
  16910. a = this.mindCount;
  16911. this.toolsCount(a, t);
  16912. }
  16913. window.parent.postMessage(
  16914. {
  16915. tools: "3",
  16916. cid: this.id,
  16917. stage: this.courseType,
  16918. task: this.taskCount,
  16919. tool: i,
  16920. },
  16921. "*"
  16922. );
  16923. } else if (t == 4) {
  16924. this.radio = [];
  16925. this.noteName = "";
  16926. this.isAnswer = false;
  16927. if (this.askCount > 0) {
  16928. this.updateCount(this.askCount, t);
  16929. } else {
  16930. this.askCount++;
  16931. a = this.askCount;
  16932. this.toolsCount(a, t);
  16933. }
  16934. if (!this.dialogVisible2) {
  16935. this.askJson.askJson =
  16936. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16937. index
  16938. ].toolChoose[i].askJson;
  16939. this.askJson.askTitle =
  16940. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16941. index
  16942. ].toolChoose[i].askTitle;
  16943. this.askJson.askCount =
  16944. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16945. index
  16946. ].toolChoose[i].askCount;
  16947. } else {
  16948. this.askJson.askJson = this.chapTools.askJson.askJson;
  16949. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  16950. this.askJson.askCount = this.chapTools.askJson.askCount;
  16951. }
  16952. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16953. if (this.askJson.askJson[k].type == "2") {
  16954. this.radio.push([]);
  16955. } else {
  16956. this.radio.push("");
  16957. }
  16958. }
  16959. this.dialogVisible5 = true;
  16960. // window.parent.postMessage({ tools: "4" }, "*");
  16961. } else if (t == 45) {
  16962. this.noteName = "";
  16963. this.radio = [];
  16964. this.isAnswer = false;
  16965. if (this.askCount > 0) {
  16966. this.updateCount(this.askCount, t);
  16967. } else {
  16968. this.askCount++;
  16969. a = this.askCount;
  16970. this.toolsCount(a, t);
  16971. }
  16972. this.testJson =
  16973. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16974. index
  16975. ].toolChoose[i].testJson;
  16976. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16977. if (this.testJson.testJson[k].type == "2") {
  16978. this.radio.push([]);
  16979. } else {
  16980. this.radio.push("");
  16981. }
  16982. }
  16983. this.dialogVisibleChoice = true;
  16984. // window.parent.postMessage({ tools: "4" }, "*");
  16985. } else if (t == 5) {
  16986. if (this.scoreCount > 0) {
  16987. this.updateCount(this.scoreCount, t);
  16988. } else {
  16989. this.scoreCount++;
  16990. a = this.scoreCount;
  16991. this.toolsCount(a, t);
  16992. }
  16993. this.dialogVisible4 = true;
  16994. // window.parent.postMessage({ tools: "5" }, "*");
  16995. } else if (t == 6) {
  16996. if (this.noteCount > 0) {
  16997. this.updateCount(this.noteCount, t);
  16998. } else {
  16999. this.noteCount++;
  17000. a = this.noteCount;
  17001. this.toolsCount(a, t);
  17002. }
  17003. window.parent.postMessage(
  17004. {
  17005. tools: "6",
  17006. cid: this.id,
  17007. stage: this.courseType,
  17008. task: this.taskCount,
  17009. tool: i,
  17010. },
  17011. "*"
  17012. );
  17013. } else if (t == 7) {
  17014. if (this.mindNetWorkCount > 0) {
  17015. this.updateCount(this.mindNetWorkCount, t);
  17016. } else {
  17017. this.mindNetWorkCount++;
  17018. a = this.mindNetWorkCount;
  17019. this.toolsCount(a, t);
  17020. }
  17021. window.parent.postMessage(
  17022. {
  17023. tools: "7",
  17024. cid: this.id,
  17025. stage: this.courseType,
  17026. task: this.taskCount,
  17027. tool: i,
  17028. },
  17029. "*"
  17030. );
  17031. } else if (t == 16) {
  17032. if (this.workCount > 0) {
  17033. this.updateCount(this.workCount, t);
  17034. } else {
  17035. this.workCount++;
  17036. a = this.workCount;
  17037. this.toolsCount(a, t);
  17038. }
  17039. this.dialogVisible = true;
  17040. } else if (t == 50) {
  17041. if (this.tType == 2) {
  17042. this.$message.error("不支持学生使用");
  17043. return;
  17044. }
  17045. this.plworkFile = [];
  17046. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17047. if (!this.uploadCid) {
  17048. this.$message.error(
  17049. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17050. );
  17051. return;
  17052. }
  17053. // this.uploadCid =
  17054. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17055. // index
  17056. // ].toolChoose[i].uploadJson[0];
  17057. this.selectUploadStudent(2);
  17058. } else if (t == 8) {
  17059. if (this.libraryCount > 0) {
  17060. this.updateCount(this.libraryCount, t);
  17061. } else {
  17062. this.libraryCount++;
  17063. a = this.libraryCount;
  17064. this.toolsCount(a, t);
  17065. }
  17066. window.parent.postMessage({ tools: "8" }, "*");
  17067. } else if (t == 17) {
  17068. if (this.libraryCount > 0) {
  17069. this.updateCount(this.libraryCount, t);
  17070. } else {
  17071. this.libraryCount++;
  17072. a = this.libraryCount;
  17073. this.toolsCount(a, t);
  17074. }
  17075. window.parent.postMessage({ tools: "17" }, "*");
  17076. } else if (t == 18) {
  17077. if (this.trainCount > 0) {
  17078. this.updateCount(this.trainCount, t);
  17079. } else {
  17080. this.trainCount++;
  17081. a = this.trainCount;
  17082. this.toolsCount(a, t);
  17083. }
  17084. window.parent.postMessage({ tools: "18" }, "*");
  17085. } else if (t == 10) {
  17086. if (this.timeCount > 0) {
  17087. this.updateCount(this.timeCount, t);
  17088. } else {
  17089. this.timeCount++;
  17090. a = this.timeCount;
  17091. this.toolsCount(a, t);
  17092. }
  17093. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  17094. .taskJson[index].toolChoose[i].preTime
  17095. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17096. .toolChoose[i].preTime
  17097. : "";
  17098. this.timeDialogVisible = true;
  17099. } else if (t == 15) {
  17100. this.answerQ = "";
  17101. this.questionAnswer = "";
  17102. if (this.answerCount > 0) {
  17103. this.updateCount(this.answerCount, t);
  17104. } else {
  17105. this.answerCount++;
  17106. a = this.answerCount;
  17107. this.toolsCount(a, t);
  17108. }
  17109. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17110. .taskJson[index].toolChoose[i].answerQ
  17111. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17112. .toolChoose[i].answerQ
  17113. : "";
  17114. this.answerDialogVisible = true;
  17115. } else if (t == 21) {
  17116. window.parent.postMessage({ tools: "21" }, "*");
  17117. } else if (t == 22) {
  17118. window.parent.postMessage({ tools: "22" }, "*");
  17119. } else if (t == 23) {
  17120. window.parent.postMessage({ tools: "23" }, "*");
  17121. } else if (t == 24) {
  17122. window.parent.postMessage({ tools: "24" }, "*");
  17123. } else if (t == 25) {
  17124. window.parent.postMessage({ tools: "25" }, "*");
  17125. } else if (t == 31) {
  17126. window.parent.postMessage({ tools: "31" }, "*");
  17127. } else if (t == 28) {
  17128. window.parent.postMessage({ tools: "28" }, "*");
  17129. } else if (t == 37) {
  17130. window.parent.postMessage({ tools: "37" }, "*");
  17131. } else if (t == 38) {
  17132. window.parent.postMessage({ tools: "38" }, "*");
  17133. } else if (t == 39) {
  17134. window.parent.postMessage({ tools: "39" }, "*");
  17135. } else if (t == 32) {
  17136. window.parent.postMessage({ tools: "32" }, "*");
  17137. } else if (t == 66) {
  17138. window.parent.postMessage({ tools: "66" }, "*");
  17139. } else if (t == 67) {
  17140. window.parent.postMessage({ tools: "67" }, "*");
  17141. } else if (t == 68) {
  17142. window.parent.postMessage({ tools: "68" }, "*");
  17143. } else if (t == 57) {
  17144. // window.parent.postMessage({ tools: "57" }, "*");
  17145. window.parent.postMessage(
  17146. {
  17147. tools: "57u",
  17148. cid: this.id,
  17149. stage: this.courseType,
  17150. task: this.taskCount,
  17151. tool: i,
  17152. },
  17153. "*"
  17154. );
  17155. } else if (t == 58) {
  17156. window.parent.postMessage({ tools: "58" }, "*");
  17157. } else if (t == 59) {
  17158. window.parent.postMessage({ tools: "59" }, "*");
  17159. } else if (t == 60) {
  17160. window.parent.postMessage({ tools: "60" }, "*");
  17161. } else if (t == 61) {
  17162. window.parent.postMessage({ tools: "61" }, "*");
  17163. } else if (t == 63) {
  17164. window.parent.postMessage({ tools: "63" }, "*");
  17165. } else if (t == 69) {
  17166. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  17167. .taskJson[index].toolChoose[i].englishList
  17168. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17169. .toolChoose[i].englishList
  17170. : {};
  17171. this.englishToolIndex = i;
  17172. this.engDialogVisible = true;
  17173. } else if (t == 65) {
  17174. if (this.tType == 2) {
  17175. this.$message.error("不支持学生使用");
  17176. return;
  17177. }
  17178. this.uploadCid = this.tcid;
  17179. if (!this.uploadCid) {
  17180. this.$message.error(
  17181. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  17182. );
  17183. return;
  17184. }
  17185. this.selectPickStudent();
  17186. } else if (t == 26) {
  17187. window.parent.postMessage(
  17188. {
  17189. tools: "26",
  17190. cid: this.id,
  17191. stage: this.courseType,
  17192. task: this.taskCount,
  17193. tool: i,
  17194. },
  17195. "*"
  17196. );
  17197. } else if (t == 40) {
  17198. if (this.evalCount > 0) {
  17199. this.updateCount(this.evalCount, t);
  17200. } else {
  17201. this.evalCount++;
  17202. a = this.evalCount;
  17203. this.toolsCount(a, t);
  17204. }
  17205. this.eScore = { eBzText: "", eStar: [] };
  17206. if (this.worksStudent[i].length) {
  17207. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17208. if (this.userid == this.worksStudent[i][k].userid) {
  17209. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17210. this.rateJson =
  17211. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17212. index
  17213. ].toolChoose[i].rateJson;
  17214. break;
  17215. } else {
  17216. this.rateJson =
  17217. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17218. index
  17219. ].toolChoose[i].rateJson;
  17220. }
  17221. }
  17222. } else {
  17223. this.rateJson =
  17224. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17225. index
  17226. ].toolChoose[i].rateJson;
  17227. }
  17228. this.isStar = false;
  17229. this.studentEvalDialogVisible = true;
  17230. } else if (t == 41) {
  17231. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17232. .taskJson[index].toolChoose[i].selectJson
  17233. ? JSON.parse(
  17234. JSON.stringify(
  17235. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17236. index
  17237. ].toolChoose[i].selectJson
  17238. )
  17239. )
  17240. : { url: "", select: [], answer: [] };
  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. var a = this.worksStudent[i][k].works.split(",");
  17245. for (var ki = 0; ki < a.length; ki++) {
  17246. a[ki] = parseInt(a[ki]);
  17247. }
  17248. this.selectAnswer = {
  17249. answer: a,
  17250. stu: this.worksStudent[i][k].sName,
  17251. };
  17252. break;
  17253. } else {
  17254. this.selectAnswer = { answer: [], stu: "" };
  17255. }
  17256. }
  17257. } else {
  17258. this.selectAnswer = { answer: [], stu: "" };
  17259. }
  17260. this.isSelect = false;
  17261. this.dialogVisibleSelect = true;
  17262. } else if (t == 44) {
  17263. window.parent.postMessage({ tools: "44" }, "*");
  17264. } else if (t == 47) {
  17265. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17266. .taskJson[index].toolChoose[i].sentenceList
  17267. ? JSON.parse(
  17268. JSON.stringify(
  17269. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17270. index
  17271. ].toolChoose[i].sentenceList
  17272. )
  17273. )
  17274. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17275. for (var q = 0; q < this.sentenceList.length; q++) {
  17276. this.sentenceList[q].chooseSenList = [];
  17277. this.sentenceList[q].addChangeSen = [];
  17278. this.sentenceList[q].addChangeSen = JSON.parse(
  17279. JSON.stringify(this.sentenceList[q].addSentence)
  17280. );
  17281. this.sentenceList[q].chooseSenList.length =
  17282. this.sentenceList[q].rightAnswer.length;
  17283. }
  17284. this.dialogVisibleSentence = true;
  17285. } else if (t == 48) {
  17286. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17287. .taskJson[index].toolChoose[i].tableJson
  17288. ? JSON.parse(
  17289. JSON.stringify(
  17290. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17291. index
  17292. ].toolChoose[i].tableJson
  17293. )
  17294. )
  17295. : { text: "" };
  17296. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  17297. if (this.worksStudent[i].length) {
  17298. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17299. if (this.userid == this.worksStudent[i][k].userid) {
  17300. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17301. break;
  17302. }
  17303. }
  17304. }
  17305. this.dialogVisibleTable = true;
  17306. } else if (t == 52) {
  17307. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17308. .taskJson[index].toolChoose[i].wordJson
  17309. ? JSON.parse(
  17310. JSON.stringify(
  17311. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17312. index
  17313. ].toolChoose[i].wordJson
  17314. )
  17315. )
  17316. : { text: "" };
  17317. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  17318. if (this.worksStudent[i].length) {
  17319. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17320. if (this.userid == this.worksStudent[i][k].userid) {
  17321. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17322. break;
  17323. }
  17324. }
  17325. }
  17326. this.dialogVisibleWord = true;
  17327. } else if (t == 49) {
  17328. this.groupJson =
  17329. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17330. index
  17331. ].toolChoose[i].groupJson;
  17332. this.islock = this.groupJson.islock == 1 ? true : false;
  17333. this.dialogVisibleGroup = true;
  17334. } else if (t == 62) {
  17335. this.videoJson =
  17336. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17337. index
  17338. ].toolChoose[i].videoJson;
  17339. this.dialogVisibleVideo = true;
  17340. }
  17341. },
  17342. teacherWorkSubmit(t, i, index, s) {
  17343. this.sStudent = s;
  17344. this.toolindex = i;
  17345. this.sTool = t;
  17346. if (this.tType !== "1" && this.tType !== "4") {
  17347. return;
  17348. }
  17349. if (t == 16 || t == 32 || t == 50) {
  17350. this.dialogVisibleWorks = true;
  17351. } else if (t == 15) {
  17352. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17353. .taskJson[index].toolChoose[i].answerQ
  17354. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17355. .toolChoose[i].answerQ
  17356. : "";
  17357. this.questionAnswer = "";
  17358. this.answerDialogVisibleTeacher = true; //问答
  17359. } else if (t == 52) {
  17360. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17361. .taskJson[index].toolChoose[i].wordJson
  17362. ? JSON.parse(
  17363. JSON.stringify(
  17364. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17365. index
  17366. ].toolChoose[i].wordJson
  17367. )
  17368. )
  17369. : { text: "" };
  17370. if (this.worksStudent[i].length) {
  17371. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17372. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17373. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17374. break;
  17375. }
  17376. }
  17377. }
  17378. this.dialogVisibleWordTeacher = true; //文档
  17379. } else if (t == 4) {
  17380. this.radio = [];
  17381. this.noteName = "";
  17382. this.isAnswer = false;
  17383. if (this.askCount > 0) {
  17384. this.updateCount(this.askCount, t);
  17385. } else {
  17386. this.askCount++;
  17387. a = this.askCount;
  17388. this.toolsCount(a, t);
  17389. }
  17390. if (!this.dialogVisible2) {
  17391. this.askJson.askJson =
  17392. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17393. index
  17394. ].toolChoose[i].askJson;
  17395. this.askJson.askTitle =
  17396. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17397. index
  17398. ].toolChoose[i].askTitle;
  17399. this.askJson.askCount =
  17400. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17401. index
  17402. ].toolChoose[i].askCount;
  17403. } else {
  17404. this.askJson.askJson = this.chapTools.askJson.askJson;
  17405. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17406. this.askJson.askCount = this.chapTools.askJson.askCount;
  17407. }
  17408. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17409. if (this.askJson.askJson[k].type == "2") {
  17410. this.radio.push([]);
  17411. } else {
  17412. this.radio.push("");
  17413. }
  17414. }
  17415. this.dialogVisible5Teacher = true;
  17416. } else if (t == 45) {
  17417. this.noteName = "";
  17418. this.radio = [];
  17419. this.isAnswer = false;
  17420. if (this.askCount > 0) {
  17421. this.updateCount(this.askCount, t);
  17422. } else {
  17423. this.askCount++;
  17424. a = this.askCount;
  17425. this.toolsCount(a, t);
  17426. }
  17427. this.testJson =
  17428. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17429. index
  17430. ].toolChoose[i].testJson;
  17431. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17432. if (this.testJson.testJson[k].type == "2") {
  17433. this.radio.push([]);
  17434. } else {
  17435. this.radio.push("");
  17436. }
  17437. }
  17438. this.dialogVisibleChoiceTeacher = true;
  17439. } else if (t == 41) {
  17440. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17441. .taskJson[index].toolChoose[i].selectJson
  17442. ? JSON.parse(
  17443. JSON.stringify(
  17444. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17445. index
  17446. ].toolChoose[i].selectJson
  17447. )
  17448. )
  17449. : { url: "", select: [], answer: [] };
  17450. if (this.worksStudent[i].length) {
  17451. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17452. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17453. var a = this.worksStudent[i][k].works.split(",");
  17454. for (var ki = 0; ki < a.length; ki++) {
  17455. a[ki] = parseInt(a[ki]);
  17456. }
  17457. this.selectAnswer = {
  17458. answer: a,
  17459. stu: this.worksStudent[i][k].sName,
  17460. };
  17461. break;
  17462. } else {
  17463. this.selectAnswer = { answer: [], stu: "" };
  17464. }
  17465. }
  17466. } else {
  17467. this.selectAnswer = { answer: [], stu: "" };
  17468. }
  17469. this.isSelect = false;
  17470. this.dialogVisibleSelectTeacher = true;
  17471. } else if (t == 47) {
  17472. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17473. .taskJson[index].toolChoose[i].sentenceList
  17474. ? JSON.parse(
  17475. JSON.stringify(
  17476. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17477. index
  17478. ].toolChoose[i].sentenceList
  17479. )
  17480. )
  17481. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17482. for (var q = 0; q < this.sentenceList.length; q++) {
  17483. this.sentenceList[q].chooseSenList = [];
  17484. this.sentenceList[q].addChangeSen = [];
  17485. this.sentenceList[q].addChangeSen = JSON.parse(
  17486. JSON.stringify(this.sentenceList[q].addSentence)
  17487. );
  17488. this.sentenceList[q].chooseSenList.length =
  17489. this.sentenceList[q].rightAnswer.length;
  17490. }
  17491. this.dialogVisibleSentenceTeacher = true;
  17492. } else if (t == 48) {
  17493. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17494. .taskJson[index].toolChoose[i].tableJson
  17495. ? JSON.parse(
  17496. JSON.stringify(
  17497. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17498. index
  17499. ].toolChoose[i].tableJson
  17500. )
  17501. )
  17502. : { text: "" };
  17503. if (this.worksStudent[i].length) {
  17504. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17505. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17506. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17507. break;
  17508. }
  17509. }
  17510. }
  17511. this.dialogVisibleTableTeacher = true;
  17512. } else if (t == 40) {
  17513. if (this.evalCount > 0) {
  17514. this.updateCount(this.evalCount, t);
  17515. } else {
  17516. this.evalCount++;
  17517. a = this.evalCount;
  17518. this.toolsCount(a, t);
  17519. }
  17520. this.eScore = { eBzText: "", eStar: [] };
  17521. if (this.worksStudent[i].length) {
  17522. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17523. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17524. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17525. this.rateJson =
  17526. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17527. index
  17528. ].toolChoose[i].rateJson;
  17529. break;
  17530. } else {
  17531. this.rateJson =
  17532. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17533. index
  17534. ].toolChoose[i].rateJson;
  17535. }
  17536. }
  17537. } else {
  17538. this.rateJson =
  17539. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17540. index
  17541. ].toolChoose[i].rateJson;
  17542. }
  17543. this.isStar = false;
  17544. this.studentEvalDialogVisibleTeacher = true;
  17545. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17546. window.parent.postMessage(
  17547. {
  17548. tools: t + "teacher",
  17549. cid: this.id,
  17550. stage: this.courseType,
  17551. task: this.taskCount,
  17552. tool: i,
  17553. student: this.sStudent,
  17554. },
  17555. "*"
  17556. );
  17557. }
  17558. },
  17559. openCocoPi(tool, i, uid, uname) {
  17560. let student = {
  17561. userid: uid,
  17562. student: uname,
  17563. };
  17564. if (tool == 57) {
  17565. window.parent.postMessage(
  17566. {
  17567. tools: tool + "teacher",
  17568. cid: this.id,
  17569. stage: this.courseType,
  17570. task: this.taskCount,
  17571. tool: i,
  17572. student: student,
  17573. },
  17574. "*"
  17575. );
  17576. }
  17577. },
  17578. setRightAnswer(s, i, j) {
  17579. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17580. if (
  17581. this.sentenceList[i].chooseSenList[q] == undefined ||
  17582. this.sentenceList[i].chooseSenList[q] == ""
  17583. ) {
  17584. this.sentenceList[i].chooseSenList[q] = s;
  17585. this.sentenceList[i].addChangeSen[j] = "";
  17586. break;
  17587. }
  17588. }
  17589. this.$forceUpdate();
  17590. },
  17591. returnCard(r, i, j) {
  17592. var a = this.sentenceList[i].addSentence.indexOf(r);
  17593. this.sentenceList[i].chooseSenList[j] = "";
  17594. this.sentenceList[i].addChangeSen[a] = r;
  17595. this.$forceUpdate();
  17596. },
  17597. // addSentenceTool() {
  17598. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17599. // this.taskCount
  17600. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17601. // this.sentenceList = [
  17602. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17603. // ];
  17604. // this.dialogVisibleSentence = false;
  17605. // },
  17606. toolsCount(a, t) {
  17607. let params = {
  17608. cid: this.id,
  17609. chid: this.courseType,
  17610. uid: this.userid,
  17611. tid: t,
  17612. count: a,
  17613. };
  17614. this.ajax
  17615. .get(this.$store.state.api + "insertToolsCount", params)
  17616. .then((res) => {
  17617. this.selectCount();
  17618. })
  17619. .catch((err) => {
  17620. console.error(err);
  17621. });
  17622. },
  17623. updateCount(c, t) {
  17624. c++;
  17625. let params = {
  17626. cid: this.id,
  17627. chid: this.courseType,
  17628. uid: this.userid,
  17629. tid: t,
  17630. count: c,
  17631. };
  17632. this.ajax
  17633. .get(this.$store.state.api + "updateToolsCount", params)
  17634. .then((res) => {
  17635. this.selectCount();
  17636. })
  17637. .catch((err) => {
  17638. console.error(err);
  17639. });
  17640. },
  17641. checkEva() {
  17642. if (this.evalua != "") {
  17643. for (var i = 0; i < this.evaJuri.length; i++) {
  17644. if (this.evalua == this.evaJuri[i].id) {
  17645. this.eTitle = this.evaJuri[i].title;
  17646. this.eJson = JSON.parse(this.evaJuri[i].content);
  17647. }
  17648. }
  17649. this.$forceUpdate();
  17650. setTimeout(() => {
  17651. this.setMindData();
  17652. }, 0);
  17653. }
  17654. },
  17655. selectEva() {
  17656. let params = {
  17657. oid: this.oid,
  17658. };
  17659. this.ajax
  17660. .get(this.$store.state.api + "selectAllEvaluation", params)
  17661. .then((res) => {
  17662. this.evaJuri = res.data[0];
  17663. })
  17664. .catch((err) => {
  17665. console.error(err);
  17666. });
  17667. },
  17668. setMindData() {
  17669. this.data.data = [];
  17670. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  17671. let _eJson = Object.keys(this.eJson);
  17672. let _e = this.eJson;
  17673. for (let i = 0; i < _eJson.length; i++) {
  17674. let element = _e[_eJson[i]];
  17675. this.data.data.push({
  17676. id: element.id,
  17677. parentid: "root",
  17678. topic: element.name,
  17679. });
  17680. let _eJsonc = Object.keys(element.child);
  17681. let _e2 = element.child;
  17682. for (let j = 0; j < _eJsonc.length; j++) {
  17683. let _ec = _e2[_eJsonc[j]];
  17684. this.data.data.push({
  17685. id: _ec.id,
  17686. parentid: element.id,
  17687. topic: _ec.name,
  17688. });
  17689. let _eJsonz = Object.keys(_ec.child);
  17690. let _e3 = _ec.child;
  17691. for (let z = 0; z < _eJsonz.length; z++) {
  17692. let _ez = _e3[_eJsonz[z]];
  17693. this.data.data.push({
  17694. id: _ez.id,
  17695. parentid: _ec.id,
  17696. topic: _ez.name,
  17697. });
  17698. }
  17699. }
  17700. }
  17701. this.$forceUpdate();
  17702. },
  17703. checkFileFull(type, url) {
  17704. this.fullDialogVisible = true;
  17705. this.fulltype = type;
  17706. this.fullUrl = url;
  17707. },
  17708. checkFileFull1(t, f) {
  17709. this.fullDialogVisible = true;
  17710. if (t == 6) {
  17711. this.fulltype = 1;
  17712. this.fullUrl = JSON.parse(JSON.stringify(f));
  17713. } else if (t == 8) {
  17714. this.fulltype = 2;
  17715. this.fullUrl = f.url;
  17716. } else if (
  17717. t == 3 &&
  17718. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17719. "PDF"
  17720. ) {
  17721. this.fulltype = 3;
  17722. this.fullUrl = f.url;
  17723. } else if (t == 3) {
  17724. this.fulltype = 2;
  17725. this.fullUrl =
  17726. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  17727. }
  17728. },
  17729. openSname(n, id, i, uid) {
  17730. this.snameWid = id;
  17731. this.worksSName = n;
  17732. this.worksSid = uid == n ? "" : uid;
  17733. this.toolindex = i;
  17734. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17735. if (!this.uploadCid) {
  17736. this.$message.error(
  17737. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17738. );
  17739. return;
  17740. }
  17741. this.selectUploadStudent(1);
  17742. },
  17743. updateName() {
  17744. let params = {
  17745. n: this.worksSName,
  17746. cid: this.snameWid,
  17747. };
  17748. this.ajax
  17749. .get(this.$store.state.api + "updateCourseWorksName", params)
  17750. .then((res) => {
  17751. this.$message({
  17752. message: "修改成功",
  17753. type: "success",
  17754. });
  17755. this.dialogVisibleSname = false;
  17756. this.getCourseDetail(2);
  17757. this.snameWid = "";
  17758. this.worksSName = "";
  17759. })
  17760. .catch((err) => {
  17761. console.error(err);
  17762. });
  17763. },
  17764. downloadFile2(f) {
  17765. // const loading = this.$loading.service({
  17766. // background: "rgba(255, 255, 255, 0.7)",
  17767. // target: document.body,
  17768. // text: "文件加载中...",
  17769. // });
  17770. // let url2 = f.url;
  17771. // let _url2 = "";
  17772. // if (
  17773. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17774. // ) {
  17775. // _url2 = url2.split(
  17776. // "https://view.officeapps.live.com/op/view.aspx?src="
  17777. // )[1];
  17778. // } else {
  17779. // _url2 = url2;
  17780. // }
  17781. // let params = {
  17782. // url: _url2,
  17783. // name: f.name,
  17784. // };
  17785. // this.ajax
  17786. // .get(this.$store.state.api + "download", params)
  17787. // .then((res) => {
  17788. // loading.close();
  17789. // let content = res.data.data.data;
  17790. // let ab = new ArrayBuffer(content.length);
  17791. // let view = new Uint8Array(ab);
  17792. // for (var i = 0; i < content.length; ++i) {
  17793. // view[i] = content[i];
  17794. // }
  17795. // let elink = document.createElement("a");
  17796. // elink.download = f.name;
  17797. // elink.style.display = "none";
  17798. // let blob = new Blob([ab], {
  17799. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  17800. // });
  17801. // elink.href = URL.createObjectURL(blob);
  17802. // document.body.appendChild(elink);
  17803. // elink.click();
  17804. // document.body.removeChild(elink);
  17805. // })
  17806. // .catch((err) => {
  17807. // loading.close();
  17808. // console.error(err);
  17809. // });
  17810. let url = f.url;
  17811. let _this = this;
  17812. let _url = "";
  17813. if (
  17814. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17815. ) {
  17816. _url = url.split(
  17817. "https://view.officeapps.live.com/op/view.aspx?src="
  17818. )[1];
  17819. } else {
  17820. _url = url;
  17821. }
  17822. const loading = _this.$loading.service({
  17823. background: "rgba(255, 255, 255, 0.7)",
  17824. target: document.body,
  17825. text: "文件加载中...",
  17826. });
  17827. let x = new XMLHttpRequest();
  17828. x.open("GET", _url, true);
  17829. x.responseType = "blob";
  17830. x.onload = function () {
  17831. loading.close();
  17832. let url = window.URL.createObjectURL(new Blob([x.response]));
  17833. let a = document.createElement("a");
  17834. a.name = f.name;
  17835. a.href = url;
  17836. a.download = f.name;
  17837. a.click();
  17838. };
  17839. x.send();
  17840. },
  17841. downloadFile(url) {
  17842. let _this = this;
  17843. let _url = "";
  17844. if (
  17845. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17846. ) {
  17847. _url = url.split(
  17848. "https://view.officeapps.live.com/op/view.aspx?src="
  17849. )[1];
  17850. } else {
  17851. _url = url;
  17852. }
  17853. const x = new XMLHttpRequest();
  17854. x.open("GET", _url, true);
  17855. x.responseType = "blob";
  17856. const loading = _this.$loading.service({
  17857. background: "rgba(255, 255, 255, 0.7)",
  17858. target: document.body,
  17859. text: "文件加载中...",
  17860. });
  17861. // _this.$message.success("文件下载中...");
  17862. x.onload = function (e) {
  17863. loading.close();
  17864. let content = x.response;
  17865. let elink = document.createElement("a");
  17866. elink.download = decodeURI(
  17867. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17868. );
  17869. elink.style.display = "none";
  17870. let blob = new Blob([content]);
  17871. elink.href = URL.createObjectURL(blob);
  17872. document.body.appendChild(elink);
  17873. elink.click();
  17874. document.body.removeChild(elink);
  17875. };
  17876. x.send();
  17877. },
  17878. openLine(url) {
  17879. window.open(url);
  17880. },
  17881. resize() {
  17882. if (document.getElementsByClassName("box_course").length) {
  17883. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17884. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17885. if (this.showType == 2 || this.showType == 3) {
  17886. document.getElementsByClassName("navBox")[0].style.height =
  17887. a - 40 + 46 + "px";
  17888. } else {
  17889. document.getElementsByClassName("navBox")[0].style.height =
  17890. a - 40 + "px";
  17891. }
  17892. }
  17893. this.Stbodywidth =
  17894. document.getElementsByClassName("student_body").length &&
  17895. document.getElementsByClassName("student_body")[0].offsetWidth;
  17896. },
  17897. closeDraw() {
  17898. this.bg = null;
  17899. this.drawShow = false;
  17900. },
  17901. showPicturePaint(url) {
  17902. let params = {
  17903. img: url,
  17904. };
  17905. this.ajax
  17906. .get(this.$store.state.api + "imgToBase64", params)
  17907. .then((res) => {
  17908. this.drawShow = true;
  17909. this.bg = res.data[0].img;
  17910. })
  17911. .catch((err) => {
  17912. console.error(err);
  17913. });
  17914. },
  17915. addImgDraw(base64) {
  17916. let file = { name: "批注图.png" };
  17917. let img = this.dataUrlToFile(base64, file);
  17918. this.beforeUpload1(img, 5);
  17919. },
  17920. addImgDrawImG(url) {
  17921. // console.log(url);
  17922. let params = [
  17923. {
  17924. wid: this.commentDetail.wid,
  17925. img: url,
  17926. },
  17927. ];
  17928. this.ajax
  17929. .post(this.$store.state.api + "updateCourseWorks", params)
  17930. .then((res) => {
  17931. this.$message({
  17932. message: "提交成功",
  17933. type: "success",
  17934. });
  17935. this.drawShow = false;
  17936. this.bg = "";
  17937. this.selectSWorks();
  17938. this.selectStudent();
  17939. })
  17940. .catch((err) => {
  17941. this.$message.error("提交失败");
  17942. console.error(err);
  17943. });
  17944. },
  17945. deletePicturePaint() {
  17946. this.$confirm("确定删除此批注吗?", "提示", {
  17947. confirmButtonText: "确定",
  17948. cancelButtonText: "取消",
  17949. type: "warning",
  17950. })
  17951. .then(() => {
  17952. let params = [
  17953. {
  17954. wid: this.commentDetail.wid,
  17955. img: "",
  17956. },
  17957. ];
  17958. this.ajax
  17959. .post(this.$store.state.api + "updateCourseWorks", params)
  17960. .then((res) => {
  17961. this.$message({
  17962. message: "删除成功",
  17963. type: "success",
  17964. });
  17965. this.selectSWorks();
  17966. this.selectStudent();
  17967. })
  17968. .catch((err) => {
  17969. this.$message.error("删除失败");
  17970. console.error(err);
  17971. });
  17972. })
  17973. .catch(() => {});
  17974. },
  17975. getAudioVideo(constraintsData) {
  17976. if (navigator.mediaDevices === undefined) {
  17977. navigator.mediaDevices = {};
  17978. }
  17979. if (navigator.mediaDevices.getUserMedia === undefined) {
  17980. navigator.mediaDevices.getUserMedia = function (constraints) {
  17981. // 首先,如果有getUserMedia的话,就获得它
  17982. var getUserMedia =
  17983. navigator.getUserMedia ||
  17984. navigator.webkitGetUserMedia ||
  17985. navigator.mozGetUserMedia ||
  17986. navigator.msGetUserMedia;
  17987. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  17988. if (!getUserMedia) {
  17989. return Promise.reject({ code: 404 });
  17990. }
  17991. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  17992. return new Promise(function (resolve, reject) {
  17993. getUserMedia.call(navigator, constraints, resolve, reject);
  17994. });
  17995. };
  17996. }
  17997. return navigator.mediaDevices.getUserMedia(constraintsData);
  17998. },
  17999. /**
  18000. * 开始录制
  18001. */
  18002. startRecording(callback) {
  18003. let _function = (screenStream) => {
  18004. this.addStreamStopListener(screenStream, () => {
  18005. console.log("流停止监听");
  18006. this.stopRecording();
  18007. this.$emit("streamStop", {});
  18008. // this.stopRecording();
  18009. });
  18010. var options = {
  18011. type: "video",
  18012. mimeType: "video/webm",
  18013. disableLogs: false,
  18014. getNativeBlob: false, // enable it for longer recordings
  18015. ignoreMutedMedia: false,
  18016. };
  18017. // this.video.srcObject = screenStream;
  18018. this.recorder = RecordRTC(screenStream, options);
  18019. this.recorder.startRecording();
  18020. this.recorder.screen = screenStream;
  18021. this.videoStart = true;
  18022. // callback(true);
  18023. };
  18024. this.getAudioVideo({ audio: true })
  18025. .then((res) => {
  18026. this.captureScreen(_function, true);
  18027. console.log("已点击允许,开启成功");
  18028. })
  18029. .catch((err) => {
  18030. // console.log('浏览器不支持,请更换浏览器')
  18031. // } else {
  18032. this.captureScreen(_function, false);
  18033. console.log("请检查是否存在麦克风");
  18034. });
  18035. },
  18036. /**
  18037. * 停止录制
  18038. */
  18039. stopRecording(callback) {
  18040. this.recorder.stopRecording(() => {
  18041. // this.video.src = this.video.srcObject = null;
  18042. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  18043. const url = URL.createObjectURL(this.recorder.getBlob());
  18044. const a = document.createElement("a"); //this.fileName+
  18045. let videoFile = new File(
  18046. [this.recorder.getBlob()],
  18047. this.courseDetail.title + "录屏.mp4",
  18048. {
  18049. type: "video/mp4",
  18050. }
  18051. );
  18052. let downloadUrl = URL.createObjectURL(videoFile);
  18053. document.body.appendChild(a);
  18054. a.style.display = "none";
  18055. a.href = url;
  18056. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  18057. a.click();
  18058. this.recorder.screen.stop();
  18059. this.recorder.destroy();
  18060. this.recorder = null;
  18061. this.videoStart = false;
  18062. // callback(false);
  18063. });
  18064. },
  18065. //初始化
  18066. captureScreen(callback, type) {
  18067. if (navigator.getDisplayMedia) {
  18068. //录制结束,文件下载
  18069. navigator
  18070. .getDisplayMedia({
  18071. video: true,
  18072. })
  18073. .then((screenStream) => {
  18074. if (type) {
  18075. navigator.mediaDevices
  18076. .getUserMedia({ audio: true })
  18077. .then((mic) => {
  18078. screenStream.addTrack(mic.getTracks()[0]);
  18079. callback(screenStream);
  18080. });
  18081. } else {
  18082. callback(screenStream);
  18083. }
  18084. })
  18085. .catch(function (error) {
  18086. console.log("error", error);
  18087. });
  18088. } else if (navigator.mediaDevices.getDisplayMedia) {
  18089. navigator.mediaDevices
  18090. .getDisplayMedia({
  18091. video: true,
  18092. })
  18093. .then((screenStream) => {
  18094. if (type) {
  18095. navigator.mediaDevices
  18096. .getUserMedia({ audio: true })
  18097. .then((mic) => {
  18098. screenStream.addTrack(mic.getTracks()[0]);
  18099. callback(screenStream);
  18100. });
  18101. } else {
  18102. callback(screenStream);
  18103. }
  18104. })
  18105. .catch(function (error) {
  18106. console.log("error", error);
  18107. });
  18108. } else {
  18109. var error = "getDisplayMedia API are not supported in this browser.";
  18110. console.log("error", error);
  18111. alert(error);
  18112. }
  18113. },
  18114. //流监听
  18115. addStreamStopListener(stream, callback) {
  18116. stream.addEventListener(
  18117. "ended",
  18118. function () {
  18119. callback();
  18120. callback = function () {};
  18121. },
  18122. false
  18123. );
  18124. stream.addEventListener(
  18125. "inactive",
  18126. function () {
  18127. callback();
  18128. callback = function () {};
  18129. },
  18130. false
  18131. );
  18132. stream.getTracks().forEach(function (track) {
  18133. track.addEventListener(
  18134. "ended",
  18135. function () {
  18136. callback();
  18137. callback = function () {};
  18138. },
  18139. false
  18140. );
  18141. track.addEventListener(
  18142. "inactive",
  18143. function () {
  18144. callback();
  18145. callback = function () {};
  18146. },
  18147. false
  18148. );
  18149. });
  18150. },
  18151. updateGroup() {
  18152. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18153. this.dialogVisibleGroup2 = true;
  18154. },
  18155. numberPan() {
  18156. if (
  18157. /[^\d]/.test(this.groupJson.number) ||
  18158. this.groupJson.number < 2 ||
  18159. this.groupJson.number > 10
  18160. ) {
  18161. this.$message.error("请输入2-10的数字");
  18162. this.groupJson.number = "";
  18163. }
  18164. },
  18165. updateGroupJson() {
  18166. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  18167. if (
  18168. this.groupStudentUid[this.toolindex][i].length >
  18169. this.groupJson2.number
  18170. ) {
  18171. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  18172. return;
  18173. }
  18174. }
  18175. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  18176. this.islock = this.groupJson.islock == 1 ? true : false;
  18177. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18178. this.taskCount
  18179. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  18180. let params = [
  18181. {
  18182. cid: this.id,
  18183. chapters: JSON.stringify(this.chapInfoList),
  18184. uid: this.userid,
  18185. unitIndex: this.courseType,
  18186. },
  18187. ];
  18188. this.ajax
  18189. .post(this.$store.state.api + "updateWorkNew4", params)
  18190. .then((res) => {
  18191. this.$message.success("设置成功");
  18192. this.getCourseDetail(2);
  18193. this.dialogVisibleGroup2 = false;
  18194. this.groupJson2 = {};
  18195. this.$forceUpdate();
  18196. })
  18197. .catch((err) => {
  18198. this.$message.error("网络不佳");
  18199. console.error(err);
  18200. });
  18201. },
  18202. lockChair() {
  18203. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18204. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  18205. this.updateGroupJson();
  18206. },
  18207. selectGroup(index) {
  18208. this.getCourseDetail(2, index);
  18209. },
  18210. joinGroup(index) {
  18211. if (this.groupJson.islock == 2) {
  18212. this.$message.error("位置已被锁定,无法加入");
  18213. return;
  18214. }
  18215. if (
  18216. this.groupStudent[this.toolindex][index].length >
  18217. this.groupJson.number ||
  18218. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  18219. ) {
  18220. this.$message.error("位置已满,无法加入");
  18221. return;
  18222. }
  18223. let params = [
  18224. {
  18225. cid: this.id,
  18226. stage: this.courseType,
  18227. task: this.taskCount,
  18228. tool: this.toolindex,
  18229. g: index,
  18230. uid: this.userid,
  18231. },
  18232. ];
  18233. this.ajax
  18234. .post(this.$store.state.api + "joinGroup", params)
  18235. .then((res) => {
  18236. this.$message.success("加入成功");
  18237. this.getCourseDetail(2);
  18238. })
  18239. .catch((err) => {
  18240. this.$message.error("网络不佳");
  18241. console.error(err);
  18242. });
  18243. },
  18244. exitGroup(id) {
  18245. if (this.groupJson.islock == 2) {
  18246. this.$message.error("位置已被锁定,无法退出");
  18247. return;
  18248. }
  18249. let params = [
  18250. {
  18251. gid: id,
  18252. },
  18253. ];
  18254. this.ajax
  18255. .post(this.$store.state.api + "exitGroup", params)
  18256. .then((res) => {
  18257. this.$message.success("退出成功");
  18258. this.getCourseDetail(2);
  18259. })
  18260. .catch((err) => {
  18261. this.$message.error("网络不佳");
  18262. console.error(err);
  18263. });
  18264. },
  18265. groupUpload(index, task, gindex) {
  18266. this.taskCount = task;
  18267. this.toolindex = index;
  18268. this.groupIndex = gindex;
  18269. this.dialogVisibleGroupWork = true;
  18270. },
  18271. updateGroupChair(user) {
  18272. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  18273. el.label = index;
  18274. return index != user.group;
  18275. });
  18276. this.updateGroupUser = user;
  18277. this.dialogVisibleUpdateGroup = true;
  18278. },
  18279. updateChair() {
  18280. if (
  18281. this.groupStudent[this.toolindex][this.checkChair].length >
  18282. this.groupJson.number ||
  18283. this.groupStudent[this.toolindex][this.checkChair].length ==
  18284. this.groupJson.number
  18285. ) {
  18286. this.$message.error("位置已满,无法加入");
  18287. return;
  18288. }
  18289. let params = [
  18290. {
  18291. cid: this.id,
  18292. stage: this.courseType,
  18293. task: this.taskCount,
  18294. tool: this.toolindex,
  18295. g: this.checkChair,
  18296. uid: this.updateGroupUser.userid,
  18297. },
  18298. ];
  18299. this.ajax
  18300. .post(this.$store.state.api + "joinGroup", params)
  18301. .then((res) => {
  18302. this.$message.success("修改成功");
  18303. this.updateGroupUser = {};
  18304. this.checkChair = "";
  18305. this.updateGroupArray = {};
  18306. this.dialogVisibleUpdateGroup = false;
  18307. this.getCourseDetail(2);
  18308. })
  18309. .catch((err) => {
  18310. this.$message.error("网络不佳");
  18311. console.error(err);
  18312. });
  18313. },
  18314. deleteGroupChair(gindex) {
  18315. this.checkDeleteGroup = [];
  18316. this.deleteGroupUser = JSON.parse(
  18317. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  18318. );
  18319. this.deleteGroupArray = this.groupJson.group[gindex];
  18320. this.groupIndex = gindex;
  18321. this.dialogVisibleDeleteGroup = true;
  18322. },
  18323. async deleteChair() {
  18324. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  18325. const gid =
  18326. this.groupStudent[this.toolindex][this.groupIndex][
  18327. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  18328. this.checkDeleteGroup[i]
  18329. )
  18330. ];
  18331. let params = [
  18332. {
  18333. gid: gid.id,
  18334. },
  18335. ];
  18336. var a = await this.deleteChairA(params);
  18337. if (i == this.checkDeleteGroup.length - 1) {
  18338. this.$message.success("退出成功");
  18339. this.dialogVisibleDeleteGroup = false;
  18340. this.deleteGroupUser = [];
  18341. this.deleteGroupArray = {};
  18342. this.groupIndex = "";
  18343. this.checkDeleteGroup = [];
  18344. this.getCourseDetail(2);
  18345. }
  18346. }
  18347. },
  18348. deleteChairA(params) {
  18349. return new Promise((resolve, reject) => {
  18350. this.ajax
  18351. .post(this.$store.state.api + "exitGroup", params)
  18352. .then((res) => {
  18353. resolve(1);
  18354. })
  18355. .catch((err) => {
  18356. this.$message.error("网络不佳");
  18357. console.error(err);
  18358. });
  18359. });
  18360. },
  18361. contract(i) {
  18362. if (this.isCloseList[i].isClose == 0) {
  18363. this.isCloseList[i].isClose = 1;
  18364. } else {
  18365. this.isCloseList[i].isClose = 0;
  18366. }
  18367. this.$forceUpdate();
  18368. },
  18369. openWordCloud(toolindex) {
  18370. let array = [];
  18371. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  18372. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  18373. array.push({ name: works });
  18374. }
  18375. if (this.isGroup) {
  18376. for (var i = 0; i < this.courseGroup.group.length; i++) {
  18377. let works = this.courseGroup.group[i].works[toolindex];
  18378. for (var j = 0; j < works.length; j++) {
  18379. let answer = JSON.parse(works[j].works)[0].answer;
  18380. array.push({ name: answer });
  18381. }
  18382. }
  18383. }
  18384. this.wordCloudData = array;
  18385. this.dialogVisibleWordCloud = true;
  18386. },
  18387. uploadWorks(i) {
  18388. this.$confirm("确定导出作业吗?", "提示", {
  18389. confirmButtonText: "确定",
  18390. cancelButtonText: "取消",
  18391. type: "warning",
  18392. })
  18393. .then(() => {
  18394. const loading = this.$loading.service({
  18395. background: "rgba(255, 255, 255, 0.7)",
  18396. target: document.body,
  18397. text: "文件加载中...",
  18398. });
  18399. const _worksStudent = this.worksStudent;
  18400. let url = [];
  18401. var counts = {};
  18402. for (var l = 0; l < _worksStudent[i].length; l++) {
  18403. var item = _worksStudent[i][l];
  18404. var name = item.sName;
  18405. if (!counts.hasOwnProperty(name)) {
  18406. counts[name] = 0;
  18407. } else {
  18408. counts[name]++;
  18409. }
  18410. if (counts[name] > 0) {
  18411. item.sName += " (" + counts[name] + ")";
  18412. }
  18413. }
  18414. for (var l = 0; l < _worksStudent[i].length; l++) {
  18415. var item = _worksStudent[i][l];
  18416. if (
  18417. item.works.indexOf(
  18418. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  18419. ) !== -1 &&
  18420. item.works.indexOf("img") === -1
  18421. ) {
  18422. url.push({ name: item.sName, url: item.works });
  18423. }
  18424. }
  18425. // var toolList = [
  18426. // { name: "电子白板", tool: 1 },
  18427. // { name: "思维导图", tool: 3 },
  18428. // { name: "协同文档", tool: 6 },
  18429. // { name: "思维网格", tool: 7 },
  18430. // { name: "素材库", tool: 8 },
  18431. // { name: "学习资料", tool: 17 },
  18432. // { name: "便签", tool: 2 },
  18433. // { name: "问卷调查", tool: 4 },
  18434. // { name: "选择题", tool: 45 },
  18435. // { name: "倒计时", tool: 10 },
  18436. // { name: "问答", tool: 15 },
  18437. // { name: "课程设计", tool: 26 },
  18438. // { name: "训练服务器", tool: 18 },
  18439. // { name: "作业提交", tool: 16 },
  18440. // { name: "批量上传", tool: 50 },
  18441. // { name: "AIoT Blockly", tool: 21 },
  18442. // { name: "AI Python", tool: 23 },
  18443. // { name: "AI Blockly", tool: 24 },
  18444. // { name: "目标管理", tool: 25 },
  18445. // { name: "数学画板", tool: 31 },
  18446. // { name: "翻译", tool: 28 },
  18447. // { name: "魔盒识字", tool: 37 },
  18448. // { name: "数学画板", tool: 31 },
  18449. // { name: "24点", tool: 38 },
  18450. // { name: "GeoGebra", tool: 39 },
  18451. // { name: "源码编辑", tool: 32 },
  18452. // { name: "个人评价", tool: 40 },
  18453. // { name: "选择匹配", tool: 41 },
  18454. // { name: "汉字宫", tool: 44 },
  18455. // { name: "排序", tool: 47 },
  18456. // { name: "表格", tool: 48 },
  18457. // { name: "文档", tool: 52 },
  18458. // { name: "学生分组", tool: 49 },
  18459. // { name: "CocoPi", tool: 57 },
  18460. // { name: "模拟驾驶", tool: 58 },
  18461. // { name: "路径搜索", tool: 59 },
  18462. // { name: "深度学习", tool: 60 },
  18463. // { name: "全历史", tool: 61 },
  18464. // { name: "交互视频", tool: 62 },
  18465. // { name: "海龟编程", tool: 63 },
  18466. // { name: "挑人", tool: 65 },
  18467. // { name: "公式编辑", tool: 66 },
  18468. // { name: "分子结构", tool: 67 },
  18469. // { name: "时间轴", tool: 68 },
  18470. // ];
  18471. // var toolName = "";
  18472. // for(var w = 0;w<toolList.length;w++){
  18473. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  18474. // toolName = toolList[w].name;
  18475. // }
  18476. // }
  18477. console.log(url);
  18478. this.downLoadAll(url, loading);
  18479. })
  18480. .catch(() => {});
  18481. },
  18482. downLoadAll(url, loading) {
  18483. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  18484. const zip = new JSZip();
  18485. const cache = {};
  18486. const promises = [];
  18487. data.forEach((item) => {
  18488. const promise = getFile(item.url).then((data) => {
  18489. if (data.data != 1) {
  18490. // 下载文件, 并存成ArrayBuffer对象
  18491. const file_name =
  18492. item.name +
  18493. "." +
  18494. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  18495. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  18496. cache[file_name] = data.data;
  18497. }
  18498. });
  18499. promises.push(promise);
  18500. });
  18501. Promise.all(promises).then(() => {
  18502. zip.generateAsync({ type: "blob" }).then((content) => {
  18503. // 生成二进制流
  18504. FileSaver.saveAs(
  18505. content,
  18506. this.courseDetail.title + "-" + "作业提交工具.zip"
  18507. ); // 利用file-saver保存文件 自定义文件名
  18508. setTimeout(() => {
  18509. loading.close();
  18510. }, 2000);
  18511. });
  18512. });
  18513. },
  18514. pickStudent(stu) {
  18515. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18516. return;
  18517. }
  18518. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18519. confirmButtonText: "确定",
  18520. cancelButtonText: "取消",
  18521. type: "warning",
  18522. })
  18523. .then(() => {
  18524. let params = [
  18525. {
  18526. uid: stu.userid,
  18527. cid: this.id,
  18528. stage: this.courseType,
  18529. task: this.taskCount,
  18530. tool: this.toolindex,
  18531. },
  18532. ];
  18533. this.ajax
  18534. .post(this.$store.state.api + "updateCoursePick", params)
  18535. .then((res) => {
  18536. this.$message.success("操作成功");
  18537. this.getPick();
  18538. })
  18539. .catch((err) => {
  18540. this.$message.error("网络不佳");
  18541. console.error(err);
  18542. });
  18543. })
  18544. .catch(() => {});
  18545. },
  18546. selectUser(){
  18547. let params = {
  18548. userid: this.userid,
  18549. };
  18550. this.ajax
  18551. .get(this.$store.state.api + "selectUser", params)
  18552. .then((res) => {
  18553. this.userMes = res.data[0];
  18554. })
  18555. .catch((err) => {
  18556. console.error(err);
  18557. });
  18558. },
  18559. setEngText(i){
  18560. this.newEngIndex = i;
  18561. this.$forceUpdate();
  18562. },
  18563. addCorrect(){
  18564. this.$confirm("你确定提交批改嘛?", "提示", {
  18565. confirmButtonText: "确定",
  18566. showCancelButton: false,
  18567. closeOnClickModal: false,
  18568. type: "warning",
  18569. })
  18570. .then(() => {
  18571. let params = {
  18572. cid: this.id,
  18573. s: parseInt(this.courseType),
  18574. t: this.taskCount,
  18575. tool: this.toolindex,
  18576. wid: this.engWid,
  18577. c: this.userid,
  18578. w: (this.newEngIndex == -1 && this.isNoUserid == true) ? JSON.stringify(this.oldEnglishJson1) : JSON.stringify(this.newEnglishList),
  18579. };
  18580. this.ajax
  18581. .get(this.$store.state.api + "addEngC", params)
  18582. .then((res) => {
  18583. this.$message.success("提交成功");
  18584. this.engUpdateDialogVisible = false;
  18585. this.newEngIndex = -1;
  18586. this.isNoUserid = false;
  18587. })
  18588. .catch((err) => {
  18589. console.error(err);
  18590. });
  18591. })
  18592. .catch(() => {});
  18593. },
  18594. selectEngC(z){
  18595. let params = {
  18596. cid: this.id,
  18597. s: this.courseType,
  18598. t: this.taskCount,
  18599. tool: this.toolindex,
  18600. };
  18601. this.ajax
  18602. .get(this.$store.state.api + "selectEngC", params)
  18603. .then((res) => {
  18604. if(res.data[0].length == 0){
  18605. this.newEnglishList.engTitle = z.engTitle;
  18606. this.newEnglishList.engText = z.engText;
  18607. }else{
  18608. var a = res.data[0];
  18609. if(this.userMes[0].type == 2){
  18610. for(var i = 0;i<a.length;i++){
  18611. if(this.userMes[0].userid == a[i].correct){
  18612. this.newEnglishList = JSON.parse(a[i].cWork);
  18613. }
  18614. }
  18615. }else if(this.userMes[0].type == 1){
  18616. var num = 0;
  18617. for(var w= 0;w<a.length;w++){
  18618. if(this.userMes[0].userid == a[w].correct){
  18619. num = 1;
  18620. }
  18621. }
  18622. if(num == 0){
  18623. this.isNoUserid = true;
  18624. var c = JSON.parse(JSON.stringify(z));
  18625. this.oldEnglishJson1 = c;
  18626. }
  18627. var b = a.sort((item, index) => {
  18628. if (item.correct === this.userMes[0].userid) {
  18629. return -1; // 将a移到前面
  18630. } else if (index.correct === this.userMes[0].userid) {
  18631. return 1; // 将b移到前面
  18632. } else {
  18633. return 0; // 保持默认顺序
  18634. }
  18635. });
  18636. this.newEnglishList = b;
  18637. }
  18638. }
  18639. this.engUpdateDialogVisible = true;
  18640. this.$forceUpdate();
  18641. setTimeout(() => {
  18642. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  18643. if(this.newEnglishList.length > 0){
  18644. if(this.isNoUserid == true){
  18645. this.engListLength = this.newEnglishList.length + 1;
  18646. this.newEngIndex = -1;
  18647. }else{
  18648. this.engListLength = this.newEnglishList.length;
  18649. this.newEngIndex = 0;
  18650. }
  18651. }
  18652. }, 500);
  18653. })
  18654. .catch((err) => {
  18655. console.error(err);
  18656. });
  18657. },
  18658. getPick() {
  18659. let params = {
  18660. cid: this.id,
  18661. };
  18662. this.ajax
  18663. .get(this.$store.state.api + "getPick", params)
  18664. .then((res) => {
  18665. let array = [];
  18666. for (var i = 0; i < res.data[0].length; i++) {
  18667. array.push(res.data[0][i].userid);
  18668. }
  18669. this.isPickStudent = array;
  18670. if (array.indexOf(this.userid) !== -1) {
  18671. this.$confirm("你被老师选到啦!", "提示", {
  18672. confirmButtonText: "确定",
  18673. showCancelButton: false,
  18674. closeOnClickModal: false,
  18675. type: "warning",
  18676. })
  18677. .then(() => {
  18678. let pa = [
  18679. {
  18680. uid: this.userid,
  18681. cid: this.id,
  18682. },
  18683. ];
  18684. this.ajax
  18685. .post(this.$store.state.api + "deletePick", pa)
  18686. .then((res) => {
  18687. this.getPick();
  18688. })
  18689. .catch((err) => {
  18690. this.$message.error("网络不佳");
  18691. console.error(err);
  18692. });
  18693. })
  18694. .catch(() => {});
  18695. }
  18696. })
  18697. .catch((err) => {
  18698. this.$message.error("网络不佳");
  18699. console.error(err);
  18700. });
  18701. },
  18702. },
  18703. directives: {
  18704. // 使用局部注册指令的方式
  18705. resize: {
  18706. // 指令的名称
  18707. bind(el, binding) {
  18708. // el为绑定的元素,binding为绑定给指令的对象
  18709. let width = "",
  18710. height = "";
  18711. function isReize() {
  18712. const style = document.defaultView.getComputedStyle(el);
  18713. if (width !== style.width || height !== style.height) {
  18714. binding.value(); // 关键
  18715. }
  18716. width = style.width;
  18717. height = style.height;
  18718. }
  18719. el.__vueSetInterval__ = setInterval(isReize, 300);
  18720. },
  18721. unbind(el) {
  18722. clearInterval(el.__vueSetInterval__);
  18723. },
  18724. },
  18725. },
  18726. beforeDestroy() {
  18727. window.onresize = null;
  18728. clearInterval(this.timer);
  18729. this.timer = null;
  18730. clearInterval(this.opertimer);
  18731. this.opertimer = null;
  18732. },
  18733. computed: {
  18734. getHeight(){
  18735. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  18736. },
  18737. contentConvent() {
  18738. return function (c) {
  18739. return c
  18740. ? c
  18741. .replaceAll(/\r\n/g, "<br/>")
  18742. .replaceAll(/\n/g, "<br/>")
  18743. .replaceAll(/\s/g, " &nbsp")
  18744. : "";
  18745. };
  18746. },
  18747. checkUpload() {
  18748. return function () {
  18749. var studentK = [];
  18750. if (this.plworkFile.length > 0) {
  18751. for (var z = 0; z < this.plworkFile.length; z++) {
  18752. studentK.push(this.plworkFile[z].username);
  18753. }
  18754. studentK = studentK.join(",");
  18755. }
  18756. var a = this.uploadStudentJuri.filter((el) => {
  18757. return studentK.indexOf(el.userid) == -1;
  18758. });
  18759. return a;
  18760. };
  18761. },
  18762. getSName() {
  18763. return function (name) {
  18764. var check = name;
  18765. this.uploadStudentJuri.forEach((el) => {
  18766. if (el.userid == check) {
  18767. check = el.name ? el.name : el.username;
  18768. }
  18769. });
  18770. return check;
  18771. };
  18772. },
  18773. getImgList() {
  18774. return function (val) {
  18775. let srcList = []; // 定义一个数组用来接收后面的img地址
  18776. val.replace(
  18777. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  18778. function (match, capture) {
  18779. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  18780. srcList.push(capture);
  18781. }
  18782. );
  18783. return srcList;
  18784. };
  18785. },
  18786. },
  18787. mounted() {
  18788. document.body.addEventListener("click", (e) => {
  18789. if (this.isUpdateToolDetail1) {
  18790. this.updateToolDetail(this.toolDetailIndex);
  18791. }
  18792. });
  18793. if (this.screenType == 2) {
  18794. window.parent.postMessage({ allScreen: 4 }, "*");
  18795. } else if (this.screenType == 3) {
  18796. window.parent.postMessage({ allScreen: 5 }, "*");
  18797. } else if (this.screenType == 1) {
  18798. window.parent.postMessage({ allScreen: 6 }, "*");
  18799. }
  18800. this.setOperationTime();
  18801. this.selectEva();
  18802. this.getCourseDetail();
  18803. this.selectCount();
  18804. this.getHomeWork();
  18805. this.selectUser();
  18806. this.contentDialog = true;
  18807. this.setContent2(true);
  18808. if (this.tType == 4) {
  18809. this.pzDialog = true;
  18810. this.selectPz();
  18811. }
  18812. document.scrollingElement.scrollTop = 0;
  18813. window.addEventListener("resize", () => {
  18814. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18815. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18816. if (this.showType == 2 || this.showType == 3) {
  18817. document.getElementsByClassName("navBox")[0].style.height =
  18818. a - 40 + 46 + "px";
  18819. } else {
  18820. document.getElementsByClassName("navBox")[0].style.height =
  18821. a - 40 + "px";
  18822. }
  18823. });
  18824. let _this = this;
  18825. setTimeout(() => {
  18826. // _this.vedioTime = [];
  18827. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  18828. // _this.vedioTime[i] = document.getElementsByClassName(
  18829. // "vjs-duration-display"
  18830. // )[i].textContent;
  18831. // }
  18832. }, 1000);
  18833. },
  18834. };
  18835. </script>
  18836. <style scoped>
  18837. @media screen and (max-width: 1280px) {
  18838. /* .courseIndex > div:first-child(2) {
  18839. width: 15% !important;
  18840. } */
  18841. /* .navText {
  18842. width: 120px !important;
  18843. } */
  18844. .evaCss {
  18845. flex-direction: column !important;
  18846. align-items: center !important;
  18847. }
  18848. .elist_input {
  18849. width: 90% !important;
  18850. }
  18851. .dialog_diy1 >>> .el-dialog {
  18852. width: 100% !important;
  18853. }
  18854. .rightWidthCss {
  18855. width: 100% !important;
  18856. }
  18857. .dialog_diy3 >>> .el-dialog {
  18858. width: 100% !important;
  18859. }
  18860. .addToolCss {
  18861. right: 0 !important;
  18862. width: 100% !important;
  18863. min-width: unset !important;
  18864. }
  18865. /* .textTitle >>> .el-form-item__label {
  18866. width: 150px !important;
  18867. } */
  18868. /* .stageItemTitle > div:last-child{
  18869. max-width: 50px;
  18870. } */
  18871. }
  18872. .evaCssMax {
  18873. flex-direction: column !important;
  18874. align-items: center !important;
  18875. }
  18876. .dialog_diy >>> .el-dialog {
  18877. margin-top: 10vh !important;
  18878. }
  18879. .body_student {
  18880. width: 77%;
  18881. height: 100%;
  18882. position: absolute;
  18883. left: 22%;
  18884. top: 0;
  18885. }
  18886. .student_head {
  18887. width: 100%;
  18888. margin: 20px auto 0;
  18889. padding-bottom: 20px;
  18890. display: flex;
  18891. flex-direction: column;
  18892. flex-wrap: nowrap;
  18893. align-items: flex-start;
  18894. justify-content: flex-start;
  18895. }
  18896. .pb_left {
  18897. width: 20%;
  18898. margin-right: 10px;
  18899. background: rgb(255, 255, 255);
  18900. position: fixed;
  18901. height: calc(100% - 40px);
  18902. border-radius: 20px;
  18903. padding-bottom: 15px;
  18904. box-sizing: border-box;
  18905. }
  18906. .wheel > img,
  18907. .project > img,
  18908. .star > img,
  18909. .evaluate > img,
  18910. .up_photo > img,
  18911. .chapter_add > img,
  18912. .deleteWord > img,
  18913. .question > img,
  18914. .homework > img {
  18915. width: 100%;
  18916. height: 100%;
  18917. }
  18918. .upCover > img {
  18919. width: 131px;
  18920. height: 69px;
  18921. object-fit: cover;
  18922. }
  18923. .upCover {
  18924. width: calc(100% / 3.5);
  18925. position: relative;
  18926. margin: 0 15px 10px 0;
  18927. display: flex;
  18928. flex-direction: column;
  18929. flex-wrap: nowrap;
  18930. justify-content: center;
  18931. align-content: center;
  18932. align-items: center;
  18933. height: fit-content;
  18934. }
  18935. .upCover2 {
  18936. width: 100%;
  18937. position: relative;
  18938. margin: 0 15px 10px 0;
  18939. display: flex;
  18940. flex-direction: column;
  18941. flex-wrap: nowrap;
  18942. justify-content: center;
  18943. align-content: center;
  18944. align-items: center;
  18945. }
  18946. .upCover2 > img {
  18947. width: 100%;
  18948. height: 90px;
  18949. object-fit: contain;
  18950. }
  18951. .chapter_add {
  18952. width: 120px;
  18953. position: relative;
  18954. text-align: center;
  18955. }
  18956. .isAddThings {
  18957. margin-top: 20px;
  18958. position: relative;
  18959. text-align: center;
  18960. background: #f7f8fa;
  18961. height: 90px;
  18962. width: 90px;
  18963. display: flex;
  18964. flex-direction: column;
  18965. justify-content: center;
  18966. }
  18967. .deleteWord {
  18968. width: 22px;
  18969. height: 22px;
  18970. position: absolute;
  18971. right: -5px;
  18972. top: -5px;
  18973. cursor: pointer;
  18974. }
  18975. .box_course {
  18976. /* width: 60%; */
  18977. width: calc(100% - 300px);
  18978. }
  18979. .wheel {
  18980. width: 100%;
  18981. /* height: 100%; */
  18982. height: 650px;
  18983. }
  18984. .right_box {
  18985. display: flex;
  18986. flex-direction: column;
  18987. margin-left: 30px;
  18988. justify-content: space-around;
  18989. }
  18990. .right_box_title {
  18991. font-size: 23px;
  18992. }
  18993. .people {
  18994. display: flex;
  18995. }
  18996. .student_body {
  18997. width: 100%;
  18998. margin: 0 auto;
  18999. margin-top: 10px;
  19000. padding: 0 0 20px;
  19001. }
  19002. .study_top {
  19003. margin-top: 100px;
  19004. width: 100%;
  19005. height: auto;
  19006. padding-bottom: 20px;
  19007. }
  19008. .study_top .checkbox {
  19009. display: flex;
  19010. align-items: center;
  19011. padding: 15px 0 15px 30px;
  19012. flex: 0 0 auto;
  19013. font-weight: bold;
  19014. border-bottom: 1px solid #eee;
  19015. }
  19016. .study_top .check {
  19017. padding-bottom: 5px;
  19018. text-align: center;
  19019. cursor: pointer;
  19020. height: 30px;
  19021. box-sizing: border-box;
  19022. display: flex;
  19023. }
  19024. .study_top .checked {
  19025. border-bottom: 4px solid #3fc6a0;
  19026. padding-bottom: 5px;
  19027. color: #3fc6a0;
  19028. display: flex;
  19029. height: 35px;
  19030. }
  19031. .study_top .checked > div,
  19032. .study_top .check > div {
  19033. margin-right: 5px;
  19034. }
  19035. .videoTop {
  19036. display: flex;
  19037. flex-direction: row;
  19038. justify-content: space-between;
  19039. background: #fff;
  19040. align-items: center;
  19041. width: 95%;
  19042. padding: 20px;
  19043. }
  19044. .filebox {
  19045. display: flex;
  19046. flex-wrap: wrap;
  19047. flex-direction: column;
  19048. padding: 0 0 5px;
  19049. position: relative;
  19050. }
  19051. .filebox:before {
  19052. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  19053. position: absolute;
  19054. top: 20px;
  19055. left: 13px;
  19056. border-left: 2px dotted #cad1dc;
  19057. height: calc(100% - 15px);
  19058. }
  19059. .toolHeng2 > div:last-child::before {
  19060. height: calc(100% - 43px);
  19061. }
  19062. .filebox .tooldetail {
  19063. width: calc(100% - 280px);
  19064. margin: 0px 12px;
  19065. padding: 12px 25px 0 13px;
  19066. line-height: 30px;
  19067. word-break: break-word;
  19068. background: #ffffff;
  19069. border-radius: 8px 8px 8px 8px;
  19070. opacity: 1;
  19071. border: 1px solid #cad1dc;
  19072. }
  19073. .file {
  19074. display: flex;
  19075. flex-direction: column;
  19076. align-items: center;
  19077. justify-content: center;
  19078. cursor: pointer;
  19079. width: 200px;
  19080. }
  19081. .file div {
  19082. margin-top: 10px;
  19083. width: 150px;
  19084. text-align: center;
  19085. overflow: hidden;
  19086. white-space: nowrap;
  19087. text-overflow: ellipsis;
  19088. }
  19089. .media {
  19090. display: flex;
  19091. flex-direction: column;
  19092. align-items: center;
  19093. justify-content: center;
  19094. margin: 0 20px 20px 0;
  19095. cursor: pointer;
  19096. margin: 12px 0 5px 15px;
  19097. overflow: hidden;
  19098. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  19099. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  19100. box-sizing: border-box;
  19101. }
  19102. .media img {
  19103. height: 90px;
  19104. width: 160px;
  19105. object-fit: cover;
  19106. }
  19107. .media .title {
  19108. padding: 5px;
  19109. text-align: left;
  19110. width: 100%;
  19111. box-sizing: border-box;
  19112. }
  19113. .media .btn {
  19114. width: 100%;
  19115. height: 35px;
  19116. line-height: 35px;
  19117. color: #fff;
  19118. background: #606060;
  19119. text-align: center;
  19120. overflow: hidden;
  19121. white-space: nowrap;
  19122. text-overflow: ellipsis;
  19123. }
  19124. .detail_content_top {
  19125. width: 100%;
  19126. padding: 25px 0 25px 0;
  19127. }
  19128. .detail_title {
  19129. text-align: center;
  19130. font-size: 24px;
  19131. }
  19132. .detail_time {
  19133. font-size: 13px;
  19134. padding: 15px 0 0 40px;
  19135. }
  19136. .detail_content {
  19137. line-height: 2pc;
  19138. width: 90%;
  19139. margin: 0 auto;
  19140. padding-top: 30px;
  19141. text-indent: 30px;
  19142. overflow: auto;
  19143. height: 200px;
  19144. }
  19145. .score_box >>> .el-rate {
  19146. margin-left: 10px;
  19147. }
  19148. .dialog_change >>> .el-dialog {
  19149. border-radius: 5px;
  19150. }
  19151. .dialog_change >>> .el-dialog__header {
  19152. background: #f2f2f2;
  19153. text-align: center;
  19154. }
  19155. .dialog_change >>> .el-dialog__title {
  19156. line-height: 5px;
  19157. }
  19158. .dialog_change >>> .el-dialog__body {
  19159. background: #fff;
  19160. padding: 10px 20px;
  19161. }
  19162. .score_box {
  19163. display: flex;
  19164. align-items: center;
  19165. margin-bottom: 18px;
  19166. margin-top: 20px;
  19167. }
  19168. .up_photo {
  19169. width: 120px;
  19170. cursor: pointer;
  19171. margin-top: 10px;
  19172. }
  19173. .up_photo2 {
  19174. width: 180px;
  19175. box-sizing: border-box;
  19176. min-width: 180px;
  19177. height: 180px;
  19178. max-height: 180px;
  19179. min-height: 180px;
  19180. cursor: pointer;
  19181. display: flex;
  19182. flex-direction: column;
  19183. align-items: center;
  19184. justify-content: center;
  19185. background: rgb(242, 246, 255);
  19186. /* padding: 25px; */
  19187. margin-bottom: 10px;
  19188. }
  19189. .up_photo2 img {
  19190. width: 50%;
  19191. height: auto;
  19192. }
  19193. .up_photo2 span {
  19194. color: #898989;
  19195. }
  19196. .plworkBox {
  19197. display: flex;
  19198. align-items: center;
  19199. margin-top: 10px;
  19200. flex-wrap: wrap;
  19201. }
  19202. .upload_send {
  19203. margin: 30px auto 30px;
  19204. width: 60%;
  19205. background: #3681fc;
  19206. text-align: center;
  19207. height: 35px;
  19208. line-height: 35px;
  19209. color: #fff;
  19210. border-radius: 5px;
  19211. cursor: pointer;
  19212. }
  19213. .marginT {
  19214. margin-top: 20px;
  19215. }
  19216. .cd_content_steps {
  19217. display: flex;
  19218. width: 90%;
  19219. justify-content: space-around;
  19220. border-top: 1px solid #eeeeee;
  19221. }
  19222. .cd_steps_box {
  19223. display: flex;
  19224. justify-content: center;
  19225. align-items: center;
  19226. flex-direction: column;
  19227. cursor: pointer;
  19228. }
  19229. .first {
  19230. display: flex;
  19231. align-items: center;
  19232. margin: 15px 0 20px 0;
  19233. font-size: 20px;
  19234. }
  19235. .first > div:nth-child(2) {
  19236. font-size: 16px !important;
  19237. padding-left: 10px;
  19238. line-height: 26px;
  19239. box-sizing: border-box;
  19240. }
  19241. .blue_box_one {
  19242. text-align: center;
  19243. color: #fff;
  19244. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  19245. border-radius: 7px;
  19246. margin: 10px;
  19247. cursor: pointer;
  19248. width: 95%;
  19249. height: 45px;
  19250. display: flex;
  19251. flex-direction: row;
  19252. justify-content: flex-start;
  19253. align-items: center;
  19254. }
  19255. .blue_box_one > div:nth-child(1) {
  19256. line-height: 30px;
  19257. margin: 0 5px 0 10px;
  19258. width: 30%;
  19259. min-width: 70px;
  19260. border-radius: 4px;
  19261. }
  19262. .blue_box_one > div:nth-child(2) {
  19263. white-space: nowrap;
  19264. text-overflow: ellipsis;
  19265. overflow: hidden;
  19266. word-break: break-all;
  19267. width: 70%;
  19268. text-align: left;
  19269. margin-right: 10px;
  19270. max-width: calc(100% - 85px);
  19271. }
  19272. .blue_box_one > div:nth-child(2):hover {
  19273. overflow: hidden;
  19274. text-overflow: ellipsis;
  19275. white-space: nowrap;
  19276. cursor: pointer;
  19277. }
  19278. .upFile {
  19279. margin: 0 auto;
  19280. width: 120px;
  19281. background: #3681fc;
  19282. color: #fff;
  19283. height: 30px;
  19284. text-align: center;
  19285. line-height: 30px;
  19286. border-radius: 5px;
  19287. font-size: 14px;
  19288. cursor: pointer;
  19289. }
  19290. .courseTitle {
  19291. width: 85%;
  19292. margin: 10px auto 20px auto;
  19293. display: flex;
  19294. flex-direction: row;
  19295. align-items: center;
  19296. justify-content: space-between;
  19297. text-align: center;
  19298. }
  19299. .courseTitle .ctitle {
  19300. font-size: 20px;
  19301. font-weight: bold;
  19302. color: #0e1e33;
  19303. white-space: nowrap;
  19304. overflow: hidden;
  19305. text-overflow: ellipsis;
  19306. }
  19307. .inviteBox {
  19308. font-size: 14px;
  19309. margin-top: 5px;
  19310. color: #a6cbff;
  19311. text-align: center;
  19312. }
  19313. .courseTitle >>> .el-tooltip {
  19314. width: 100%;
  19315. white-space: nowrap;
  19316. overflow: hidden;
  19317. text-overflow: ellipsis;
  19318. word-break: break-word;
  19319. }
  19320. .ml {
  19321. margin-left: 20px;
  19322. color: #5b7dba;
  19323. border-left: 3px solid #5b7dba;
  19324. padding-left: 5px;
  19325. font-weight: bold;
  19326. }
  19327. .return {
  19328. width: 2rem;
  19329. height: 2rem;
  19330. cursor: pointer;
  19331. }
  19332. .return > img {
  19333. width: 100%;
  19334. height: 100%;
  19335. }
  19336. .returnBtn {
  19337. width: 86px;
  19338. height: 36px;
  19339. background: #3681fc;
  19340. border-radius: 4px;
  19341. color: #fff;
  19342. text-align: center;
  19343. line-height: 36px;
  19344. margin-right: 20px;
  19345. cursor: pointer;
  19346. font-size: 14px;
  19347. font-weight: 400;
  19348. display: flex;
  19349. flex-direction: row;
  19350. flex-wrap: nowrap;
  19351. align-items: center;
  19352. justify-content: center;
  19353. }
  19354. .reBtnIcon,
  19355. .commentIcon,
  19356. .vedioIcon,
  19357. .vedioIcon1 {
  19358. /* width: 36px; */
  19359. height: 36px;
  19360. border-radius: 4px;
  19361. position: relative;
  19362. /* background: #e0eafb; */
  19363. background: #0061ff;
  19364. cursor: pointer;
  19365. margin-right: 12px;
  19366. display: flex;
  19367. align-items: center;
  19368. padding: 0 10px;
  19369. box-sizing: border-box;
  19370. font-size: 14px;
  19371. color: #fff;
  19372. }
  19373. .reBtnIcon::before,
  19374. .commentIcon::before,
  19375. .vedioIcon::before,
  19376. .vedioIcon1::before {
  19377. content: "";
  19378. display: block;
  19379. background-size: 100% 100%;
  19380. background-repeat: no-repeat;
  19381. width: 20px;
  19382. height: 20px;
  19383. margin-right: 5px;
  19384. /* position: absolute; */
  19385. /* top: 8px;
  19386. left: 8px; */
  19387. }
  19388. .vedioIcon1 {
  19389. background: #f63564;
  19390. }
  19391. .reBtnIcon::before {
  19392. background-image: url("../../assets/icon/newIcons/refresh.png");
  19393. }
  19394. .commentIcon::before {
  19395. background-image: url("../../assets/icon/newIcons/comment.png");
  19396. }
  19397. .vedioIcon::before {
  19398. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19399. }
  19400. .vedioIcon1::before {
  19401. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  19402. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19403. }
  19404. .tool {
  19405. display: flex;
  19406. flex-direction: column;
  19407. flex-wrap: nowrap;
  19408. width: 13%;
  19409. margin: 0 30px;
  19410. align-items: center;
  19411. position: relative;
  19412. padding: 10px 25px;
  19413. cursor: pointer;
  19414. }
  19415. .whiteBIcon {
  19416. width: 150px;
  19417. }
  19418. .whiteBIcon > img {
  19419. width: 100%;
  19420. height: 100%;
  19421. }
  19422. .mask {
  19423. background-color: rgba(0, 0, 0, 0);
  19424. position: fixed;
  19425. top: 0;
  19426. left: 0;
  19427. width: 100%;
  19428. height: 100%;
  19429. z-index: 20000;
  19430. display: flex;
  19431. align-items: center;
  19432. justify-content: center;
  19433. }
  19434. .progressBox {
  19435. width: 500px;
  19436. height: 180px;
  19437. background: #fff;
  19438. border-radius: 10px;
  19439. box-shadow: 0 0 6px 1px #bfbfbf;
  19440. display: flex;
  19441. align-items: center;
  19442. justify-content: center;
  19443. flex-direction: column;
  19444. position: relative;
  19445. color: #6c6c6c;
  19446. }
  19447. .progressBox >>> .el-progress-bar__outer {
  19448. background-color: #d1dfff !important;
  19449. }
  19450. .progressBox .lbox {
  19451. height: 50px;
  19452. font-size: 19px;
  19453. display: flex;
  19454. align-items: center;
  19455. color: #747474;
  19456. }
  19457. .progressBox .lbox img {
  19458. width: 40px;
  19459. margin-right: 20px;
  19460. }
  19461. .closeCss {
  19462. position: absolute;
  19463. top: 8px;
  19464. right: 8px;
  19465. cursor: pointer;
  19466. width: 20px;
  19467. height: 20px;
  19468. }
  19469. .closeCss > img {
  19470. width: 100%;
  19471. height: 100%;
  19472. }
  19473. .uploadVedio {
  19474. display: flex;
  19475. flex-direction: column;
  19476. flex-wrap: nowrap;
  19477. justify-content: center;
  19478. align-items: center;
  19479. margin: 0 15px 10px 0;
  19480. }
  19481. .uploadVedio > img {
  19482. width: 30px;
  19483. height: 30px;
  19484. }
  19485. .uploadVedio > span {
  19486. white-space: nowrap;
  19487. overflow: hidden;
  19488. text-overflow: ellipsis;
  19489. width: 75px;
  19490. margin-top: 7px;
  19491. }
  19492. .picName {
  19493. white-space: nowrap;
  19494. overflow: hidden;
  19495. text-overflow: ellipsis;
  19496. width: 75px;
  19497. margin-top: 7px;
  19498. }
  19499. .new_top {
  19500. display: flex;
  19501. background: #fff;
  19502. flex-direction: row;
  19503. justify-content: flex-start;
  19504. align-items: center;
  19505. height: 60px;
  19506. position: fixed;
  19507. top: 20px;
  19508. left: 22%;
  19509. width: 77%;
  19510. z-index: 999;
  19511. border-radius: 12px 12px 0 0;
  19512. border-bottom: 1px solid #cad1dc;
  19513. padding: 10px 0;
  19514. }
  19515. .new_topFixed {
  19516. width: 100%;
  19517. height: 40px;
  19518. position: fixed;
  19519. top: 0px;
  19520. display: block;
  19521. background: #f2f2f2;
  19522. z-index: 998;
  19523. }
  19524. .before {
  19525. position: absolute;
  19526. background: #c3dad4;
  19527. width: 6px;
  19528. height: 100%;
  19529. }
  19530. .courseIndex {
  19531. display: flex;
  19532. flex-direction: row;
  19533. align-items: center;
  19534. width: calc(100% - 745px);
  19535. }
  19536. .courseIndex > div:nth-child(1) {
  19537. margin: 0 0 0 10px;
  19538. font-size: 20px;
  19539. min-width: 100px;
  19540. font-weight: bold;
  19541. border-left: 4px solid #3363b9;
  19542. height: 32px;
  19543. text-align: center;
  19544. line-height: 35px;
  19545. }
  19546. .courseIndex > div:nth-child(2) {
  19547. font-size: 20px;
  19548. /* width: 300px; */
  19549. max-width: calc(100% - 105px);
  19550. white-space: nowrap;
  19551. overflow: hidden;
  19552. text-overflow: ellipsis;
  19553. }
  19554. .courseIndex > div:nth-child(3) {
  19555. border-bottom: 1px solid #d7d7d7;
  19556. padding-bottom: 5px;
  19557. background: #3681fc;
  19558. width: 55px;
  19559. min-width: 55px;
  19560. border-radius: 5px;
  19561. color: #fff;
  19562. text-align: center;
  19563. height: 20px;
  19564. line-height: 26px;
  19565. font-size: 14px;
  19566. margin: 0 0 0 10px;
  19567. }
  19568. .course_text {
  19569. padding: 20px 0 0 15px;
  19570. text-indent: 30px;
  19571. width: 80%;
  19572. min-height: 20px;
  19573. }
  19574. .vedioList {
  19575. background: #f2f2f2;
  19576. border: 1px solid #ececec;
  19577. /* width: 38.8%; */
  19578. width: 300px;
  19579. height: 445px;
  19580. border-radius: 10px;
  19581. overflow: hidden;
  19582. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  19583. }
  19584. .vedioNav {
  19585. margin: 10px 0 0 15px;
  19586. border-bottom: 1px solid #d7d7d7;
  19587. padding-bottom: 5px;
  19588. background: #3681fc;
  19589. width: 55px;
  19590. min-width: 55px;
  19591. border-radius: 5px;
  19592. color: #fff;
  19593. text-align: center;
  19594. height: 20px;
  19595. line-height: 26px;
  19596. font-size: 14px;
  19597. }
  19598. .queTop {
  19599. display: flex;
  19600. padding: 20px 0 20px 30px;
  19601. width: 100%;
  19602. flex-direction: row;
  19603. justify-content: flex-start;
  19604. align-items: center;
  19605. box-sizing: border-box;
  19606. }
  19607. .queTopTitle {
  19608. display: flex;
  19609. flex-direction: row;
  19610. flex-wrap: nowrap;
  19611. align-items: center;
  19612. font-weight: bold;
  19613. font-size: 20px;
  19614. color: rgb(14, 30, 51);
  19615. }
  19616. .queTopTitle::before {
  19617. content: "";
  19618. width: 2px;
  19619. height: 22px;
  19620. background: #3681fc;
  19621. border-radius: 3px;
  19622. display: block;
  19623. margin: 2px 6px 0 0;
  19624. }
  19625. .queTopRight {
  19626. display: flex;
  19627. flex-direction: row;
  19628. flex-wrap: nowrap;
  19629. align-items: center;
  19630. }
  19631. .queTopClose {
  19632. margin-right: 20px;
  19633. cursor: pointer;
  19634. position: relative;
  19635. display: flex;
  19636. }
  19637. .closeImg,
  19638. .openImg {
  19639. width: 25px;
  19640. height: 25px;
  19641. position: absolute;
  19642. left: -20px;
  19643. top: -1px;
  19644. }
  19645. .closeImg > img,
  19646. .openImg > img {
  19647. width: 100%;
  19648. height: 100%;
  19649. }
  19650. .question {
  19651. width: 40px;
  19652. margin-right: 10px;
  19653. margin-top: 7px;
  19654. }
  19655. .queTitle {
  19656. margin-left: 5px;
  19657. font-size: 25px;
  19658. display: flex;
  19659. align-items: center;
  19660. }
  19661. .addEditor {
  19662. width: 100px;
  19663. height: 30px;
  19664. background: #42cda6;
  19665. color: #fff;
  19666. border-radius: 5px;
  19667. text-align: center;
  19668. line-height: 30px;
  19669. box-shadow: 1px 3px 6px 1px #bfbfbf;
  19670. cursor: pointer;
  19671. }
  19672. /* .vedioName {
  19673. cursor: pointer;
  19674. margin: 0px 0px 10px 5px;
  19675. white-space: nowrap;
  19676. overflow: hidden;
  19677. text-overflow: ellipsis;
  19678. width: 100%;
  19679. } */
  19680. .vedioTime {
  19681. width: 35px;
  19682. position: absolute;
  19683. color: #fff;
  19684. bottom: 0px;
  19685. right: 0px;
  19686. text-align: center;
  19687. background: #46411f;
  19688. height: 20px;
  19689. font-size: 14px;
  19690. line-height: 20px;
  19691. }
  19692. .homework {
  19693. width: 200px;
  19694. display: flex;
  19695. flex-direction: column;
  19696. flex-wrap: nowrap;
  19697. align-items: center;
  19698. cursor: pointer;
  19699. }
  19700. .homebox {
  19701. display: flex;
  19702. flex-wrap: wrap;
  19703. flex-direction: row;
  19704. justify-content: flex-start;
  19705. align-items: center;
  19706. padding: 15px 0;
  19707. }
  19708. .isChooseActive {
  19709. color: #3681fc !important;
  19710. font-weight: bold !important;
  19711. }
  19712. .chooseWho {
  19713. display: flex;
  19714. width: 100%;
  19715. flex-direction: row;
  19716. flex-wrap: nowrap;
  19717. justify-content: flex-start;
  19718. padding-bottom: 10px;
  19719. }
  19720. .chooseWho > div {
  19721. cursor: pointer;
  19722. padding-bottom: 10px;
  19723. margin: 0 30px 0 0;
  19724. font-weight: 400;
  19725. color: #0e1e33;
  19726. }
  19727. .addPoint > div > img {
  19728. cursor: pointer;
  19729. width: 85px;
  19730. border-radius: 15px;
  19731. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  19732. }
  19733. .addPoint > div {
  19734. display: flex;
  19735. flex-direction: column;
  19736. flex-wrap: nowrap;
  19737. align-items: center;
  19738. }
  19739. .isBorder > div {
  19740. margin: 0 0 10px 0;
  19741. align-items: flex-start !important;
  19742. }
  19743. .noiframeBox {
  19744. display: flex;
  19745. flex-wrap: wrap;
  19746. }
  19747. .iframeBox iframe {
  19748. width: 100%;
  19749. height: 800px;
  19750. border: none;
  19751. margin-bottom: 20px;
  19752. border: 1px solid #ccc;
  19753. }
  19754. .upload_toolBtn {
  19755. background: #3681fc;
  19756. color: #fff;
  19757. width: 110px;
  19758. text-align: center;
  19759. height: 35px;
  19760. line-height: 35px;
  19761. font-size: 14px;
  19762. border-radius: 5px;
  19763. cursor: pointer;
  19764. position: absolute;
  19765. right: 10px;
  19766. bottom: 0;
  19767. }
  19768. .binfo_input,
  19769. .pj {
  19770. font: inherit;
  19771. color: currentColor;
  19772. width: 100%;
  19773. margin: 0;
  19774. padding: 15px 14px;
  19775. display: block;
  19776. min-width: 0;
  19777. outline: none;
  19778. box-sizing: content-box;
  19779. background: none;
  19780. -webkit-tap-highlight-color: transparent;
  19781. border: 1px solid rgba(0, 0, 0, 0.23);
  19782. border-radius: 4px;
  19783. box-sizing: border-box;
  19784. resize: none;
  19785. }
  19786. .binfo_input:focus-visible {
  19787. border: 1px solid rgba(61, 103, 188);
  19788. }
  19789. .dialog_diy >>> .el-dialog__header,
  19790. .dialog_diy1 >>> .el-dialog__header {
  19791. background: #454545 !important;
  19792. padding: 15px 20px;
  19793. }
  19794. .dialog_diy >>> .el-dialog__title,
  19795. .dialog_diy1 >>> .el-dialog__title {
  19796. color: #fff;
  19797. }
  19798. .dialog_diy >>> .el-dialog__headerbtn,
  19799. .dialog_diy1 >>> .el-dialog__headerbtn {
  19800. top: 19px;
  19801. }
  19802. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  19803. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  19804. color: #fff;
  19805. }
  19806. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  19807. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  19808. color: #fff;
  19809. }
  19810. .dialog_diy1 >>> .el-dialog__body {
  19811. padding: 0;
  19812. }
  19813. .dialog_diy >>> .el-dialog__body,
  19814. .dialog_diy >>> .el-dialog__footer,
  19815. .dialog_diy1 >>> .el-dialog__footer {
  19816. background: #fafafa;
  19817. }
  19818. .a_addBox {
  19819. padding: 0 0 0 15px;
  19820. }
  19821. .a_add_box {
  19822. padding: 10px;
  19823. background: #fff;
  19824. margin-bottom: 10px;
  19825. border-radius: 5px;
  19826. box-shadow: 0 0 5px 0 #d5d5d5;
  19827. }
  19828. .a_add_head {
  19829. display: flex;
  19830. align-items: flex-start;
  19831. /* justify-content: space-between; */
  19832. flex-direction: column;
  19833. /* flex-direction: row; */
  19834. margin: 10px 0 20px 0;
  19835. font-size: 18px;
  19836. width: 100%;
  19837. }
  19838. .askIndex {
  19839. background: #3681fc;
  19840. border-radius: 50%;
  19841. color: #fff;
  19842. width: 25px;
  19843. height: 25px;
  19844. min-width: 25px;
  19845. min-height: 25px;
  19846. text-align: center;
  19847. line-height: 25px;
  19848. margin-right: 5px;
  19849. }
  19850. .a_add_head .a_add_head_input {
  19851. width: 300px;
  19852. }
  19853. .a_add_head .a_add_head_div {
  19854. display: flex;
  19855. align-items: center;
  19856. justify-content: space-between;
  19857. }
  19858. .a_add_body {
  19859. display: flex;
  19860. align-items: center;
  19861. }
  19862. .a_add_input {
  19863. display: flex;
  19864. align-items: center;
  19865. flex-wrap: wrap;
  19866. width: 100%;
  19867. }
  19868. .a_add_input >>> .el-radio-group,
  19869. .a_add_input >>> .el-checkbox-group {
  19870. width: 100%;
  19871. }
  19872. .a_add_input >>> .el-radio,
  19873. .a_add_input >>> .el-checkbox {
  19874. display: flex;
  19875. flex-direction: row;
  19876. flex-wrap: nowrap;
  19877. align-items: center;
  19878. padding: 15px 0;
  19879. }
  19880. .a_add_input >>> .el-radio:not(:last-child),
  19881. .a_add_input >>> .el-checkbox:not(:last-child) {
  19882. width: 100%;
  19883. border-bottom: 1px solid #efefef;
  19884. }
  19885. .redioStyle >>> .el-radio__label {
  19886. font-size: 18px;
  19887. }
  19888. .redioStyle >>> .el-radio__label > span,
  19889. .redioStyle >>> .el-checkbox__label > span {
  19890. word-break: break-all;
  19891. white-space: normal;
  19892. }
  19893. .redioStyle >>> .el-checkbox__label {
  19894. font-size: 18px;
  19895. }
  19896. .toolHeng2 {
  19897. width: 100%;
  19898. padding-left: 37px;
  19899. box-sizing: border-box;
  19900. }
  19901. .workNav {
  19902. font-size: 20px;
  19903. font-weight: bold;
  19904. color: #0e1e33;
  19905. display: flex;
  19906. flex-direction: row;
  19907. flex-wrap: nowrap;
  19908. align-items: center;
  19909. padding: 15px 0 15px 0;
  19910. }
  19911. .workNav::before {
  19912. content: "";
  19913. width: 2px;
  19914. height: 22px;
  19915. background: #3681fc;
  19916. border-radius: 3px;
  19917. display: block;
  19918. margin: 2px 6px 0 0;
  19919. }
  19920. .toolHeng {
  19921. display: flex;
  19922. flex-direction: row;
  19923. flex-wrap: wrap;
  19924. justify-content: flex-start;
  19925. align-items: center;
  19926. width: 100%;
  19927. }
  19928. .toolHeng > div {
  19929. padding-left: 20px;
  19930. }
  19931. .isWidth {
  19932. width: 20%;
  19933. }
  19934. .textTitle {
  19935. display: flex;
  19936. flex-direction: row;
  19937. flex-wrap: nowrap;
  19938. align-items: center;
  19939. width: 95%;
  19940. }
  19941. .textTitle >>> .el-form-item__label {
  19942. font-size: 22px;
  19943. color: #918f8f;
  19944. width: 100px;
  19945. }
  19946. .textTitle >>> .el-form-item__content {
  19947. width: calc(100% - 100px);
  19948. }
  19949. .textCss >>> .el-dialog {
  19950. width: 800px !important;
  19951. height: 400px;
  19952. background: #fafafa;
  19953. }
  19954. .textCss >>> .el-dialog__body {
  19955. margin: 55px 8% 0 8%;
  19956. padding: 0 !important;
  19957. }
  19958. .textCss >>> .el-dialog__footer {
  19959. padding-top: 38px;
  19960. }
  19961. .toolsCss >>> .el-dialog__body {
  19962. padding: 20px;
  19963. }
  19964. .lineCss >>> .el-dialog__body {
  19965. display: flex;
  19966. flex-direction: row;
  19967. align-items: center;
  19968. justify-content: center;
  19969. }
  19970. .newNav {
  19971. display: flex;
  19972. flex-direction: row;
  19973. align-items: baseline;
  19974. justify-content: flex-start;
  19975. }
  19976. .navListItem {
  19977. width: 280px;
  19978. height: 50px;
  19979. margin: 0px auto 10px;
  19980. display: flex;
  19981. flex-direction: row;
  19982. flex-wrap: nowrap;
  19983. align-items: center;
  19984. justify-content: space-between;
  19985. background: #f0f4fa;
  19986. border-radius: 6px 6px 6px 6px;
  19987. }
  19988. .navText {
  19989. cursor: pointer;
  19990. white-space: nowrap;
  19991. overflow: hidden;
  19992. text-overflow: ellipsis;
  19993. width: 220px;
  19994. padding: 0 10px;
  19995. font-weight: 400;
  19996. color: #0e1e33;
  19997. }
  19998. .downIcon {
  19999. width: 20px;
  20000. min-width: 20px;
  20001. height: 20px;
  20002. margin-right: 15px;
  20003. cursor: pointer;
  20004. }
  20005. .downIcon > img {
  20006. width: 100%;
  20007. height: 100%;
  20008. }
  20009. .noVedio {
  20010. display: flex;
  20011. flex-direction: row;
  20012. justify-content: center;
  20013. align-content: center;
  20014. }
  20015. .noNavText {
  20016. cursor: pointer;
  20017. margin: 0px 0px 10px 5px;
  20018. width: 112px;
  20019. }
  20020. .listNoVedio {
  20021. margin: 0 0 0 30px;
  20022. width: 97%;
  20023. }
  20024. .video-player >>> .video-js {
  20025. height: 100%;
  20026. }
  20027. .hangVedioList {
  20028. width: 90% !important;
  20029. height: 150px !important;
  20030. margin: 20px 0 0 30px;
  20031. }
  20032. .hangVedio {
  20033. width: 100%;
  20034. height: 170px !important;
  20035. align-items: flex-start !important;
  20036. }
  20037. .hangHand {
  20038. height: 150px !important;
  20039. }
  20040. .twoChild {
  20041. width: 95%;
  20042. margin: 10px;
  20043. border-radius: 5px;
  20044. background: #f2f2f2;
  20045. display: flex;
  20046. flex-direction: column;
  20047. flex-wrap: nowrap;
  20048. justify-content: flex-start;
  20049. align-items: flex-start;
  20050. transition: all 0.5s;
  20051. overflow: hidden;
  20052. height: 0;
  20053. background: #e7f3ff;
  20054. }
  20055. .twoChild > div:nth-child(1) {
  20056. margin-top: 5px;
  20057. }
  20058. .navChild {
  20059. width: 100%;
  20060. cursor: pointer;
  20061. margin-bottom: 10px;
  20062. position: relative;
  20063. }
  20064. .navChild img {
  20065. position: absolute;
  20066. right: 11px;
  20067. width: 15px;
  20068. top: 50%;
  20069. transform: translateY(-50%);
  20070. }
  20071. .navActive,
  20072. .toolActive {
  20073. height: auto !important;
  20074. overflow: auto !important;
  20075. /* padding-bottom: 16px; */
  20076. }
  20077. .toolActive {
  20078. padding: 0;
  20079. }
  20080. .navTask {
  20081. display: flex;
  20082. flex-direction: row;
  20083. flex-wrap: nowrap;
  20084. align-items: center;
  20085. align-content: flex-start;
  20086. height: 40px;
  20087. justify-content: flex-start;
  20088. padding: 0 10px;
  20089. width: 100%;
  20090. box-sizing: border-box;
  20091. }
  20092. .navTaskname {
  20093. white-space: nowrap;
  20094. text-overflow: ellipsis;
  20095. overflow: hidden;
  20096. word-break: break-all;
  20097. padding-left: 5px;
  20098. }
  20099. .openTaskActive {
  20100. background-color: #e0eafb !important;
  20101. color: #0061ff;
  20102. }
  20103. .iframeName {
  20104. margin: 5px 0;
  20105. border-left: 4px solid #41c4a4;
  20106. padding-left: 4px;
  20107. }
  20108. .toolTitle {
  20109. margin: 0px 0px 20px;
  20110. font-size: 20px;
  20111. font-weight: 500;
  20112. border-left: 4px solid #41c4a4;
  20113. padding-left: 4px;
  20114. }
  20115. .cru_selectBox {
  20116. overflow: auto;
  20117. width: 95%;
  20118. margin: 17px auto 0;
  20119. height: calc(100% - 40px - 21px - 20px - 17px);
  20120. background: #fff;
  20121. border-radius: 8px;
  20122. }
  20123. .cru_selectBox::-webkit-scrollbar,
  20124. .study_top::-webkit-scrollbar,
  20125. .textContent::-webkit-scrollbar {
  20126. /*滚动条整体样式*/
  20127. width: 6px;
  20128. /*高宽分别对应横竖滚动条的尺寸*/
  20129. height: 6px;
  20130. }
  20131. /*定义滚动条轨道 内阴影+圆角*/
  20132. .cru_selectBox::-webkit-scrollbar-track,
  20133. .study_top::-webkit-scrollbar-track,
  20134. .textContent::-webkit-scrollbar {
  20135. border-radius: 10px;
  20136. background-color: #b8bdc9;
  20137. }
  20138. /*定义滑块 内阴影+圆角*/
  20139. .cru_selectBox::-webkit-scrollbar-thumb,
  20140. .study_top::-webkit-scrollbar-thumb,
  20141. .textContent::-webkit-scrollbar-thumb {
  20142. border-radius: 10px;
  20143. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  20144. background-color: #2c5ab3;
  20145. }
  20146. .vedioBox {
  20147. border-radius: 0 0 20px 20px;
  20148. background: #fff;
  20149. overflow: auto;
  20150. }
  20151. .taskBox {
  20152. width: 98%;
  20153. background: #f0f4fa;
  20154. margin: 10px auto;
  20155. padding: 0 10px;
  20156. border-radius: 4px;
  20157. box-sizing: border-box;
  20158. }
  20159. .vedioTaskBox {
  20160. width: 100%;
  20161. display: flex;
  20162. flex-direction: row;
  20163. flex-wrap: nowrap;
  20164. align-items: flex-start;
  20165. position: relative;
  20166. }
  20167. .toolBox {
  20168. margin: 15px 0 0 25px;
  20169. display: flex;
  20170. position: relative;
  20171. padding: 18px 20px;
  20172. border-top-left-radius: 5px;
  20173. border-top-right-radius: 5px;
  20174. width: 90%;
  20175. }
  20176. .btnAll {
  20177. position: absolute;
  20178. right: 0;
  20179. display: flex;
  20180. flex-direction: row;
  20181. flex-wrap: nowrap;
  20182. align-items: center;
  20183. }
  20184. .btnLeft,
  20185. .btnRight {
  20186. display: flex;
  20187. flex-direction: row;
  20188. flex-wrap: nowrap;
  20189. align-items: center;
  20190. padding: 5px 0;
  20191. }
  20192. .btnLeft {
  20193. border-right: 1px solid #cad1dc;
  20194. }
  20195. .btnLeft > .custom-tooltip {
  20196. background: #3681fc;
  20197. color: #fff;
  20198. }
  20199. .last:hover {
  20200. background: #3383fa !important;
  20201. color: #fff;
  20202. border: 1px solid #3383fa !important;
  20203. }
  20204. .last,
  20205. .returnBtn1 {
  20206. width: 90px;
  20207. height: 36px;
  20208. background: #ffffff;
  20209. border-radius: 4px;
  20210. border: 1px solid #0061ff;
  20211. color: #0061ff;
  20212. cursor: pointer;
  20213. display: flex;
  20214. flex-direction: row;
  20215. flex-wrap: nowrap;
  20216. align-items: center;
  20217. justify-content: center;
  20218. margin-left: 12px;
  20219. }
  20220. .returnBtn1 {
  20221. background: #f0f4fa;
  20222. border-radius: 4px;
  20223. border: 1px solid #cad1dc;
  20224. margin: 0 12px;
  20225. }
  20226. .lastImg {
  20227. min-width: 15px;
  20228. width: 15px;
  20229. height: 15px;
  20230. }
  20231. .lastText {
  20232. padding: 0 5px 2px 5px;
  20233. box-sizing: border-box;
  20234. font-size: 14px;
  20235. }
  20236. .lastImg > img {
  20237. width: 100%;
  20238. height: 100%;
  20239. }
  20240. /* .vedioTimeBox {
  20241. display: flex;
  20242. flex-direction: row;
  20243. align-items: center;
  20244. flex-wrap: nowrap;
  20245. position: relative;
  20246. } */
  20247. .navBox {
  20248. background: #fff;
  20249. height: calc(100% - 40px);
  20250. overflow-y: auto;
  20251. overflow-x: hidden;
  20252. }
  20253. .worksBox {
  20254. margin: 0 0 10px 25px;
  20255. border-bottom: 1px solid #eeeeee;
  20256. padding: 18px 20px;
  20257. border-radius: 4px;
  20258. width: 90%;
  20259. }
  20260. .worksBTitle {
  20261. font-size: 20px;
  20262. padding-bottom: 15px;
  20263. border-bottom: 1px solid #eeeeee;
  20264. display: flex;
  20265. align-items: center;
  20266. }
  20267. .greenBox {
  20268. width: 5px;
  20269. height: 30px;
  20270. background: #63b6fa;
  20271. margin-right: 5px;
  20272. }
  20273. .worksDetailBox {
  20274. display: flex;
  20275. width: 100%;
  20276. flex-direction: row;
  20277. flex-wrap: wrap;
  20278. align-items: flex-end;
  20279. justify-content: flex-start;
  20280. padding: 15px 0;
  20281. }
  20282. .works {
  20283. display: flex;
  20284. flex-direction: column;
  20285. flex-wrap: nowrap;
  20286. align-items: flex-start;
  20287. justify-content: flex-start;
  20288. align-content: center;
  20289. max-width: 240px;
  20290. width: calc(100% / 3 - 10px);
  20291. height: auto;
  20292. margin-right: 10px;
  20293. margin-bottom: 10px;
  20294. overflow: hidden;
  20295. height: 140px;
  20296. box-shadow: 0 0 6px 1px #dfdada;
  20297. border-radius: 15px;
  20298. }
  20299. .workImg {
  20300. width: 100%;
  20301. /* height: calc(100% - 40px); */
  20302. height: 105px;
  20303. position: relative;
  20304. }
  20305. .workImg > img {
  20306. width: 100%;
  20307. height: 100%;
  20308. object-fit: contain;
  20309. cursor: pointer;
  20310. }
  20311. .worksName {
  20312. height: 40px;
  20313. line-height: 40px;
  20314. display: flex;
  20315. width: 100%;
  20316. flex-direction: row;
  20317. flex-wrap: nowrap;
  20318. justify-content: space-between;
  20319. align-items: center;
  20320. margin: 0 0 0 10px;
  20321. }
  20322. .worksName > div:nth-child(1) {
  20323. width: 110px;
  20324. white-space: nowrap;
  20325. overflow: hidden;
  20326. text-overflow: ellipsis;
  20327. }
  20328. .worksName > div:nth-child(2) {
  20329. color: #b7b4b5;
  20330. }
  20331. .noWorksS {
  20332. padding: 15px 0;
  20333. display: flex;
  20334. flex-direction: row;
  20335. flex-wrap: wrap;
  20336. align-items: center;
  20337. justify-content: flex-start;
  20338. }
  20339. .noWorksName,
  20340. .isWorksName,
  20341. .isWorksName2 {
  20342. background: #ddebf8;
  20343. color: #000;
  20344. width: 90px;
  20345. height: 25px;
  20346. text-align: center;
  20347. line-height: 25px;
  20348. border-radius: 4px;
  20349. margin: 10px 15px 10px 0;
  20350. white-space: nowrap;
  20351. overflow: hidden;
  20352. padding: 5px;
  20353. text-overflow: ellipsis;
  20354. cursor: pointer;
  20355. border: 1px solid #ddebf8;
  20356. }
  20357. .noWorksName {
  20358. background: #fff;
  20359. color: #0061ff;
  20360. border: 1px solid #0061ff;
  20361. }
  20362. .isWorksName2 {
  20363. width: 100px;
  20364. height: 40px;
  20365. line-height: 40px;
  20366. position: relative;
  20367. background: #dae6f9;
  20368. }
  20369. .isWorksName {
  20370. background: #e7ebf1 !important;
  20371. width: 100px;
  20372. height: 40px;
  20373. line-height: 40px;
  20374. position: relative;
  20375. color: #acb4bf;
  20376. border: 1px solid #cad1dc !important;
  20377. }
  20378. .isSelectName,
  20379. .noWorksName:hover {
  20380. background: #3383fa !important;
  20381. color: #fff !important;
  20382. border: 1px solid #3383fa !important;
  20383. }
  20384. .title {
  20385. background: #1e5cc9;
  20386. /* width: 98%; */
  20387. height: 45px;
  20388. color: #fff;
  20389. line-height: 45px;
  20390. padding-left: 20px;
  20391. box-sizing: border-box;
  20392. }
  20393. .textBox {
  20394. font-size: 20px;
  20395. width: 90%;
  20396. display: flex;
  20397. flex-direction: column;
  20398. align-items: center;
  20399. margin: 20px auto 0;
  20400. max-height: calc(100% - 75px);
  20401. overflow: auto;
  20402. }
  20403. .textContent {
  20404. font-size: 18px;
  20405. width: 95%;
  20406. max-width: 95%;
  20407. }
  20408. .answerBg {
  20409. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  20410. background-size: 100% 100%;
  20411. width: 100%;
  20412. height: 100%;
  20413. color: #fff;
  20414. text-align: center;
  20415. display: flex;
  20416. flex-direction: column;
  20417. flex-wrap: nowrap;
  20418. align-items: center;
  20419. position: relative;
  20420. justify-content: center;
  20421. }
  20422. .answerBg > div:nth-child(1) {
  20423. /* font-size: 22px;
  20424. padding: 25px 0 10px; */
  20425. }
  20426. .answerContent {
  20427. width: 215px;
  20428. max-height: 60px;
  20429. word-break: break-all;
  20430. text-align: center;
  20431. /* white-space: nowrap; */
  20432. overflow: hidden;
  20433. text-overflow: ellipsis;
  20434. /* padding: 23px 0 0; */
  20435. -webkit-line-clamp: 3;
  20436. -webkit-box-orient: vertical;
  20437. display: -webkit-box;
  20438. font-size: 15px;
  20439. cursor: pointer;
  20440. }
  20441. .elist_input_box {
  20442. display: flex;
  20443. align-items: flex-start;
  20444. flex-wrap: nowrap;
  20445. padding: 10px 0 15px 30px;
  20446. flex-direction: column;
  20447. }
  20448. .elist_input {
  20449. /* width: 40%; */
  20450. width: 45%;
  20451. margin: 20px;
  20452. }
  20453. .elist_input .elist_input_box input {
  20454. font: inherit;
  20455. color: currentColor;
  20456. width: 200px;
  20457. padding: 8px 14px;
  20458. display: block;
  20459. min-width: 0;
  20460. outline: none;
  20461. border: 1px solid rgba(0, 0, 0, 0.23);
  20462. border-radius: 4px;
  20463. box-sizing: border-box;
  20464. background: #fff;
  20465. margin: 0 20px 0 0;
  20466. }
  20467. .elist_input .elist_input_box span {
  20468. height: 36px;
  20469. line-height: 36px;
  20470. color: rgb(82, 82, 82);
  20471. }
  20472. .elist_input .elist_input_box .remove {
  20473. height: 20px;
  20474. width: 20px;
  20475. background-size: 100% 100%;
  20476. background-position: unset;
  20477. margin-left: 5px;
  20478. }
  20479. .elist_input_box >>> .el-rate {
  20480. display: flex;
  20481. height: 36px;
  20482. align-items: center;
  20483. }
  20484. .elist_input_box .elist_inptu_text {
  20485. min-height: 50px;
  20486. /* width: 500px;
  20487. max-height: 150px; */
  20488. width: 100%;
  20489. line-height: 50px;
  20490. color: rgb(82, 82, 82);
  20491. overflow: auto;
  20492. text-indent: 5px;
  20493. background: #f7f6f9;
  20494. border-radius: 10px;
  20495. }
  20496. .elist_input_box .elist_inptu_text input {
  20497. width: 500px;
  20498. }
  20499. .elist_input_box >>> .el-rate__icon {
  20500. font-size: 24px;
  20501. }
  20502. .isClick {
  20503. background: #4d9def;
  20504. }
  20505. .bzBox {
  20506. display: flex;
  20507. flex-direction: row;
  20508. align-items: center;
  20509. }
  20510. .bzBox .yCss {
  20511. width: 7px;
  20512. height: 7px;
  20513. background: #fff;
  20514. margin: 0 16px 0 6px;
  20515. border-radius: 50%;
  20516. border: 5px solid #3681fc;
  20517. z-index: 99;
  20518. }
  20519. .bzBox > div:nth-child(2) {
  20520. font-size: 18px;
  20521. font-weight: bold;
  20522. color: #0e1e33;
  20523. }
  20524. .navTitile {
  20525. padding: 0 0px 0 15px;
  20526. font-size: 16px;
  20527. font-weight: bold;
  20528. color: #0e1e33;
  20529. height: 40px;
  20530. line-height: 40px;
  20531. }
  20532. .isTypeOne {
  20533. width: 240px;
  20534. height: 170px;
  20535. /* border: 1px solid #f8f8f8; */
  20536. border-radius: 10px;
  20537. box-shadow: 0 0 6px 1px #dfdada;
  20538. }
  20539. .e_add_top {
  20540. display: flex;
  20541. justify-content: space-between;
  20542. padding: 20px 20px 0 20px;
  20543. border-radius: 3px;
  20544. background: #fff;
  20545. }
  20546. .e_add_title2 {
  20547. display: flex;
  20548. align-items: center;
  20549. }
  20550. .e_add_title2 span {
  20551. width: 40px;
  20552. }
  20553. .e_add_title {
  20554. display: flex;
  20555. align-items: center;
  20556. color: #b8b8b8;
  20557. font-size: 18px;
  20558. position: relative;
  20559. height: 40px;
  20560. }
  20561. .e_add_title span {
  20562. margin-right: 10px;
  20563. }
  20564. .e_add_title .el_input {
  20565. width: 300px;
  20566. }
  20567. .e_add_title >>> .el-input__inner {
  20568. width: 400px;
  20569. }
  20570. .e_add_btn {
  20571. }
  20572. .e_add_content {
  20573. display: flex;
  20574. width: 100%;
  20575. max-width: 650px;
  20576. height: 550px;
  20577. }
  20578. .e_add_list {
  20579. background: #fff;
  20580. height: 500px;
  20581. width: 210px;
  20582. position: relative;
  20583. margin: 15px 5px 0 0;
  20584. flex-shrink: 0;
  20585. display: flex;
  20586. flex-direction: column;
  20587. }
  20588. .e_add_list_title {
  20589. font-size: 20px;
  20590. width: 100%;
  20591. box-sizing: border-box;
  20592. padding: 15px 40px;
  20593. text-align: center;
  20594. border-bottom: 1px solid #eaeaea;
  20595. position: relative;
  20596. display: flex;
  20597. align-items: center;
  20598. justify-content: center;
  20599. height: 57px;
  20600. background: #f6f6f6;
  20601. }
  20602. .e_add_list_title span {
  20603. overflow: hidden;
  20604. white-space: nowrap;
  20605. text-overflow: ellipsis;
  20606. }
  20607. .e_add_list_title img {
  20608. position: absolute;
  20609. right: 15px;
  20610. width: 25px;
  20611. cursor: pointer;
  20612. top: 50%;
  20613. transform: translateY(-50%);
  20614. }
  20615. .e_add_list_body {
  20616. height: calc(100% - 187px);
  20617. overflow: auto;
  20618. }
  20619. .e_add_list_child {
  20620. width: 100%;
  20621. display: flex;
  20622. align-items: center;
  20623. justify-content: center;
  20624. position: relative;
  20625. box-sizing: border-box;
  20626. padding: 15px 40px;
  20627. text-align: center;
  20628. }
  20629. .e_add_list_child span {
  20630. overflow: hidden;
  20631. white-space: nowrap;
  20632. text-overflow: ellipsis;
  20633. cursor: pointer;
  20634. }
  20635. .e_add_list_child img {
  20636. position: absolute;
  20637. right: 10px;
  20638. width: 21px;
  20639. cursor: pointer;
  20640. top: 50%;
  20641. transform: translateY(-50%);
  20642. }
  20643. .e_add_list_child + .e_add_list_child {
  20644. border-top: 1px solid #eaeaea;
  20645. }
  20646. .e_add_list_child .active {
  20647. color: #409eff;
  20648. }
  20649. .e_add_list_btn {
  20650. position: absolute;
  20651. bottom: 0;
  20652. height: 50px;
  20653. background: rgb(120, 120, 254);
  20654. width: 100%;
  20655. color: #fff;
  20656. font-size: 16px;
  20657. text-align: center;
  20658. line-height: 50px;
  20659. cursor: pointer;
  20660. }
  20661. .e_add_list_detail {
  20662. position: absolute;
  20663. bottom: 0;
  20664. height: 130px;
  20665. background: rgb(120, 120, 254);
  20666. width: 100%;
  20667. color: #fff;
  20668. font-size: 16px;
  20669. display: flex;
  20670. align-items: center;
  20671. justify-content: center;
  20672. }
  20673. .e_add_list_detail textarea {
  20674. height: 90%;
  20675. width: 95%;
  20676. border: none;
  20677. resize: none;
  20678. outline: none;
  20679. padding: 5px;
  20680. box-sizing: border-box;
  20681. }
  20682. .e_add_list_pbox {
  20683. width: 100%;
  20684. max-width: 650px;
  20685. /* height: 600px; */
  20686. }
  20687. .e_add_list_pbox_title {
  20688. height: 50px;
  20689. background: #fff;
  20690. display: flex;
  20691. align-items: center;
  20692. width: 100%;
  20693. box-sizing: border-box;
  20694. padding: 0 20px;
  20695. }
  20696. .type_title {
  20697. font-size: 18px;
  20698. font-weight: 700;
  20699. }
  20700. .type_content {
  20701. font-size: 16px;
  20702. margin-left: 30px;
  20703. }
  20704. .type_content span + span {
  20705. margin-left: 20px;
  20706. }
  20707. .type_content span {
  20708. cursor: pointer;
  20709. padding-bottom: 5px;
  20710. box-sizing: border-box;
  20711. }
  20712. .type_content .active {
  20713. color: #409eff;
  20714. border-bottom: 2px solid #409eff;
  20715. }
  20716. .e_add_list_pbox_content {
  20717. height: calc(100% - 50px);
  20718. display: flex;
  20719. align-items: center;
  20720. width: 100%;
  20721. background: #fff;
  20722. }
  20723. .evaCss {
  20724. display: flex;
  20725. flex-direction: row;
  20726. flex-wrap: nowrap;
  20727. align-items: flex-start;
  20728. padding: 0 0 20px;
  20729. }
  20730. .cru_line {
  20731. position: absolute;
  20732. bottom: 0px;
  20733. transition: all 0.5s;
  20734. left: 0px;
  20735. width: 125px;
  20736. margin-left: -25px;
  20737. }
  20738. .isNoMessage {
  20739. width: 20%;
  20740. margin: 25% auto 0;
  20741. }
  20742. .isNoMessage > img {
  20743. width: 100%;
  20744. height: 100%;
  20745. }
  20746. .fullStyle >>> .el-dialog__body {
  20747. height: 100% !important;
  20748. }
  20749. .fullStyle >>> .el-dialog,
  20750. .fullStyle {
  20751. width: 100% !important;
  20752. max-width: 100% !important;
  20753. height: 100% !important;
  20754. margin: 0 !important;
  20755. }
  20756. .full_diy >>> .el-dialog {
  20757. margin: 0 !important;
  20758. height: 100%;
  20759. padding: 4px;
  20760. }
  20761. .full_diy >>> .el-dialog__body {
  20762. height: calc(100% - 100px);
  20763. }
  20764. .full_diy2 >>> .el-dialog__body {
  20765. height: calc(100% - 50px);
  20766. padding: 0;
  20767. }
  20768. .switchCss {
  20769. /* width: 100%; */
  20770. display: flex;
  20771. flex-direction: row;
  20772. flex-wrap: nowrap;
  20773. align-items: center;
  20774. /* justify-content: center; */
  20775. }
  20776. .isClickNav {
  20777. /* color: #499eef; */
  20778. color: #000;
  20779. }
  20780. .commentImg {
  20781. width: 25px;
  20782. height: 25px;
  20783. cursor: pointer;
  20784. }
  20785. .commentImg > img {
  20786. width: 100%;
  20787. height: 100%;
  20788. }
  20789. .comment {
  20790. background: #f9f9f9;
  20791. border-radius: 0 0 4px 4px;
  20792. display: flex;
  20793. flex-direction: row;
  20794. flex-wrap: nowrap;
  20795. align-items: center;
  20796. justify-content: flex-end;
  20797. height: 35px;
  20798. }
  20799. .commentList {
  20800. display: flex;
  20801. flex-direction: row;
  20802. flex-wrap: nowrap;
  20803. align-items: center;
  20804. justify-content: center;
  20805. align-content: center;
  20806. /* margin-left: 15px; */
  20807. /* margin-left: 8px; */
  20808. }
  20809. .scoreImg {
  20810. width: 17px;
  20811. height: 17px;
  20812. }
  20813. .studentDetail {
  20814. display: flex;
  20815. flex-direction: row;
  20816. flex-wrap: nowrap;
  20817. /* align-items: center; */
  20818. align-items: flex-start;
  20819. }
  20820. .tx {
  20821. width: 50px;
  20822. }
  20823. .tx > img {
  20824. width: 100%;
  20825. height: 100%;
  20826. }
  20827. .nameAndTime {
  20828. display: flex;
  20829. flex-direction: column;
  20830. flex-wrap: nowrap;
  20831. align-items: flex-start;
  20832. margin-left: 10px;
  20833. }
  20834. .worksAnswer {
  20835. color: #4078dd;
  20836. margin: 10px 0;
  20837. font-size: 16px;
  20838. position: relative;
  20839. }
  20840. .worksAnswer > img {
  20841. width: 500px;
  20842. height: 300px;
  20843. object-fit: contain;
  20844. margin: 0 auto;
  20845. display: block;
  20846. }
  20847. .commentTop {
  20848. border-bottom: 1px solid #eaeaea;
  20849. padding-bottom: 10px;
  20850. }
  20851. .commentBox {
  20852. padding-top: 15px;
  20853. }
  20854. .pl {
  20855. font-size: 18px;
  20856. }
  20857. .plPerson {
  20858. width: 100%;
  20859. }
  20860. .plName {
  20861. display: flex;
  20862. flex-direction: row;
  20863. flex-wrap: nowrap;
  20864. align-items: baseline;
  20865. color: #78787a;
  20866. width: 100%;
  20867. }
  20868. .deleteComment {
  20869. cursor: pointer;
  20870. margin-left: auto;
  20871. color: #237ade;
  20872. }
  20873. .plContent {
  20874. margin-top: 5px;
  20875. }
  20876. .evalCss {
  20877. background: #fff;
  20878. font-size: 18px;
  20879. }
  20880. .nav {
  20881. color: #9d9d9d;
  20882. padding: 5px 0 15px 20px;
  20883. }
  20884. .middleBox {
  20885. padding: 5px 0 15px 20px;
  20886. }
  20887. .pfBox {
  20888. padding-bottom: 30px;
  20889. }
  20890. .nameAndrate {
  20891. display: flex;
  20892. flex-direction: row;
  20893. flex-wrap: nowrap;
  20894. align-items: center;
  20895. padding-bottom: 10px;
  20896. height: 30px;
  20897. line-height: 30px;
  20898. }
  20899. .nameAndrate > div {
  20900. margin-left: 10px;
  20901. color: #000;
  20902. height: 30px;
  20903. }
  20904. .nameAndrate >>> .el-rate__icon {
  20905. font-size: 28px !important;
  20906. }
  20907. .pfBox > div:nth-child(2) {
  20908. background: #f7f6f9;
  20909. width: 400px;
  20910. min-height: 45px;
  20911. border-radius: 10px;
  20912. font-size: 16px;
  20913. display: flex;
  20914. flex-wrap: wrap;
  20915. align-items: center;
  20916. padding: 10px 20px;
  20917. box-sizing: border-box;
  20918. color: #000;
  20919. }
  20920. .bz {
  20921. display: flex;
  20922. flex-direction: row;
  20923. flex-wrap: nowrap;
  20924. align-items: flex-start;
  20925. }
  20926. .bz > div {
  20927. padding: 0 10px;
  20928. }
  20929. .select_box2_title {
  20930. background: #fff;
  20931. border-radius: 5px;
  20932. padding: 15px 10px;
  20933. box-sizing: border-box;
  20934. margin-bottom: 10px;
  20935. display: flex;
  20936. flex-direction: row;
  20937. flex-wrap: nowrap;
  20938. align-items: center;
  20939. }
  20940. .select_box2_title > div:nth-child(2) {
  20941. margin-left: 10px;
  20942. color: #c4c4c4;
  20943. }
  20944. .select_box2_box {
  20945. display: flex;
  20946. height: 500px;
  20947. }
  20948. .select_box2_img {
  20949. width: calc(100% - 310px);
  20950. height: 100%;
  20951. overflow: auto;
  20952. background: #fff;
  20953. border-radius: 5px;
  20954. }
  20955. .select_box2_img img {
  20956. width: 100%;
  20957. }
  20958. .select_box2_answer {
  20959. background: #fff;
  20960. margin-left: 10px;
  20961. border-radius: 5px;
  20962. width: 300px;
  20963. overflow: auto;
  20964. height: 90%;
  20965. display: flex;
  20966. flex-direction: column;
  20967. align-items: flex-start;
  20968. padding-top: 10px;
  20969. box-sizing: border-box;
  20970. position: relative;
  20971. }
  20972. .select_answer_title {
  20973. padding: 0 0 15px 20px;
  20974. color: #c4c4c4;
  20975. }
  20976. .select_box2_answer_box {
  20977. margin: 0 0 10px 20px;
  20978. width: 85%;
  20979. display: flex;
  20980. flex-direction: row;
  20981. flex-wrap: nowrap;
  20982. align-items: center;
  20983. }
  20984. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  20985. color: #000;
  20986. }
  20987. .upAnswerCss {
  20988. position: absolute;
  20989. bottom: 15px;
  20990. right: 15px;
  20991. }
  20992. .upAnswerCss >>> .el-button {
  20993. width: 95px;
  20994. height: 35px;
  20995. line-height: 35px;
  20996. padding: 0;
  20997. }
  20998. .rightWidthCss {
  20999. width: 60%;
  21000. display: flex;
  21001. flex-direction: row;
  21002. align-items: flex-start;
  21003. }
  21004. .rightAnswer {
  21005. display: flex;
  21006. flex-direction: row;
  21007. flex-wrap: nowrap;
  21008. align-items: center;
  21009. color: red;
  21010. margin-bottom: 31px;
  21011. }
  21012. .rightAnswerCss {
  21013. display: flex;
  21014. flex-direction: column;
  21015. flex-wrap: nowrap;
  21016. padding-top: 60px;
  21017. }
  21018. .blueCss {
  21019. color: #767de1;
  21020. margin-left: 10px;
  21021. }
  21022. .redCss {
  21023. color: red;
  21024. }
  21025. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  21026. color: rgb(0 123 255) !important;
  21027. }
  21028. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  21029. color: rgb(0 123 255) !important;
  21030. }
  21031. .zuoyeYulan {
  21032. padding-top: 0;
  21033. font-size: 18px;
  21034. display: flex;
  21035. align-items: flex-end;
  21036. }
  21037. .buttonA {
  21038. margin-left: 10px;
  21039. padding: 0;
  21040. }
  21041. .displayBox {
  21042. margin-bottom: 10px;
  21043. display: block;
  21044. border-bottom: 3px solid #eee;
  21045. display: flex;
  21046. align-items: center;
  21047. }
  21048. .easy_comment {
  21049. width: calc(100% - 90px);
  21050. margin-left: 10px;
  21051. display: flex;
  21052. flex-wrap: wrap;
  21053. }
  21054. .easy_comment > div {
  21055. border: 1px solid #4a4a4a;
  21056. color: #666;
  21057. border-radius: 15px;
  21058. padding: 5px 10px;
  21059. font-size: 16px;
  21060. margin-bottom: 10px;
  21061. margin-right: 5px;
  21062. cursor: pointer;
  21063. }
  21064. .easy_comment div:hover {
  21065. border: 1px solid #f7ba2a;
  21066. color: #c69217;
  21067. }
  21068. .xuan_right_box {
  21069. padding: 10px 0;
  21070. background: #f0f4fa;
  21071. margin: 0 15px 0 25px;
  21072. border-bottom-left-radius: 5px;
  21073. border-bottom-right-radius: 5px;
  21074. width: 91.5%;
  21075. }
  21076. .tool_right_box {
  21077. display: flex;
  21078. align-items: center;
  21079. }
  21080. .tool_right_box + .tool_right_box {
  21081. margin-top: 10px;
  21082. }
  21083. .right_box_xuan {
  21084. background: rgb(0 123 255);
  21085. color: #fff;
  21086. border-radius: 5px;
  21087. padding: 5px;
  21088. margin-left: 10px;
  21089. min-width: 95px;
  21090. }
  21091. .pButton:hover {
  21092. opacity: 1 !important;
  21093. }
  21094. .pButton {
  21095. position: fixed;
  21096. text-align: center;
  21097. cursor: pointer;
  21098. z-index: 999;
  21099. right: 20px;
  21100. top: 110px;
  21101. width: 50px;
  21102. height: 50px;
  21103. display: flex;
  21104. align-items: center;
  21105. justify-content: center;
  21106. border-radius: 5px;
  21107. }
  21108. .pzClass {
  21109. width: calc(100% - 340px);
  21110. }
  21111. .newDialogCss {
  21112. /* position: fixed;
  21113. right: 5%;
  21114. top: 50%;
  21115. width: 340px;
  21116. transform: translateY(-50%);
  21117. height: 60%;
  21118. box-shadow: 0px 0 8px 0px #555555;
  21119. border-radius: 15px;
  21120. z-index: 999; */
  21121. position: fixed;
  21122. right: 20px;
  21123. top: 101px;
  21124. width: 330px;
  21125. height: calc(100% - 80px);
  21126. z-index: 999;
  21127. background: #fff;
  21128. border-top-right-radius: 0px;
  21129. border-bottom-right-radius: 0px;
  21130. overflow: hidden;
  21131. }
  21132. .pzTop {
  21133. color: #fff;
  21134. background: #000;
  21135. display: flex;
  21136. flex-direction: row;
  21137. flex-wrap: nowrap;
  21138. align-items: center;
  21139. justify-content: space-between;
  21140. height: 40px;
  21141. border-radius: 15px 15px 0 0;
  21142. user-select: none;
  21143. }
  21144. .pzTop2 .checkbox {
  21145. display: flex;
  21146. align-items: center;
  21147. padding: 5px 30px;
  21148. flex: 0 0 auto;
  21149. font-weight: bold;
  21150. border-bottom: 1px solid #eee;
  21151. justify-content: space-between;
  21152. }
  21153. .pzTop2 .check {
  21154. text-align: center;
  21155. cursor: pointer;
  21156. box-sizing: border-box;
  21157. display: flex;
  21158. }
  21159. .pzTop2 img {
  21160. width: 25px;
  21161. cursor: pointer;
  21162. }
  21163. .pzTop > div:nth-child(1) {
  21164. padding-left: 10px;
  21165. }
  21166. .pzTop > div:nth-child(2) {
  21167. width: 15px;
  21168. height: 15px;
  21169. padding-right: 10px;
  21170. cursor: pointer;
  21171. }
  21172. .pzTop > div:nth-child(2) > img {
  21173. width: 100%;
  21174. height: 100%;
  21175. }
  21176. .pzBox,
  21177. .noPzBox {
  21178. height: calc(100% - 60px);
  21179. /* background: #ededed; */
  21180. background: #fff;
  21181. /* border-radius: 0 0 15px 15px; */
  21182. }
  21183. .noPzBox {
  21184. display: flex;
  21185. flex-direction: column;
  21186. flex-wrap: nowrap;
  21187. justify-content: center;
  21188. align-items: center;
  21189. }
  21190. .pzList {
  21191. background: #f7f7f7;
  21192. width: 90%;
  21193. margin: 0 auto 15px;
  21194. border-radius: 5px;
  21195. }
  21196. .pzNavTop {
  21197. display: flex;
  21198. flex-direction: row;
  21199. flex-wrap: nowrap;
  21200. padding: 10px 10px 0 10px;
  21201. align-items: center;
  21202. }
  21203. .pzDelete {
  21204. cursor: pointer;
  21205. margin-left: auto;
  21206. font-size: 14px;
  21207. color: #afafaf;
  21208. }
  21209. .pzNavTop > div:nth-child(1) {
  21210. background: #3760af;
  21211. width: 35px;
  21212. height: 35px;
  21213. color: #fff;
  21214. text-align: center;
  21215. line-height: 35px;
  21216. border-radius: 50%;
  21217. font-size: 14px;
  21218. }
  21219. .pzNavTop > div:nth-child(2) {
  21220. font-size: 18px;
  21221. color: #959595;
  21222. margin-left: 5px;
  21223. }
  21224. .pzContent {
  21225. padding: 10px;
  21226. word-break: break-word;
  21227. }
  21228. .pzContent audio {
  21229. width: 100%;
  21230. }
  21231. .pzContent audio::-webkit-media-controls-panel {
  21232. background: #fff;
  21233. }
  21234. .pzContent >>> img {
  21235. max-width: 100%;
  21236. }
  21237. .pzListBox {
  21238. padding-top: 15px;
  21239. height: calc(100% - 110px);
  21240. overflow: auto;
  21241. }
  21242. .addPzButton {
  21243. position: relative;
  21244. margin-top: 3px;
  21245. width: 100%;
  21246. }
  21247. .addPzButton .img1 {
  21248. position: absolute;
  21249. top: 50%;
  21250. right: 25px;
  21251. transform: translateY(-50%);
  21252. height: 100%;
  21253. display: flex;
  21254. align-items: center;
  21255. }
  21256. .addPzButton .img1 div {
  21257. display: flex;
  21258. }
  21259. .addPzButton .img1 div img {
  21260. width: 28px;
  21261. margin-left: 10px;
  21262. cursor: pointer;
  21263. }
  21264. .addPzButton .img1 div span {
  21265. font-size: 14px;
  21266. margin: 4px 0 0 3px;
  21267. color: #afafaf;
  21268. }
  21269. .addPz {
  21270. background: #4b79ce;
  21271. width: 100px;
  21272. color: #fff;
  21273. font-size: 12px;
  21274. height: 30px;
  21275. margin: 0 auto;
  21276. text-align: center;
  21277. line-height: 30px;
  21278. border-radius: 10px;
  21279. cursor: pointer;
  21280. }
  21281. .addDialogCss {
  21282. position: fixed;
  21283. width: 600px;
  21284. height: 70%;
  21285. min-height: 450px;
  21286. box-shadow: 0px 0 8px 0px #555555;
  21287. border-radius: 15px;
  21288. z-index: 999;
  21289. left: 50%;
  21290. top: 50%;
  21291. margin: -18% 0 0 -300px;
  21292. }
  21293. .teacherPz {
  21294. display: flex;
  21295. flex-direction: row;
  21296. align-items: center;
  21297. flex-wrap: nowrap;
  21298. }
  21299. .teacherPzImg {
  21300. width: 30px;
  21301. height: 30px;
  21302. }
  21303. .teacherPzImg > img {
  21304. width: 100%;
  21305. height: 100%;
  21306. }
  21307. .addPzBox {
  21308. height: calc(100% - 40px);
  21309. background: #ededed;
  21310. border-bottom-left-radius: 15px;
  21311. border-bottom-right-radius: 15px;
  21312. }
  21313. .pzAudioClass {
  21314. margin: 15px 14px;
  21315. background: #fff;
  21316. height: 100%;
  21317. display: flex;
  21318. justify-content: center;
  21319. align-items: center;
  21320. }
  21321. .pzConText {
  21322. width: 95%;
  21323. height: 100%;
  21324. margin: 10px auto 0;
  21325. border: none;
  21326. background: #fff;
  21327. border-radius: 0px;
  21328. }
  21329. .pzConText >>> .text {
  21330. height: calc(100% - 82px);
  21331. }
  21332. .addTextCss {
  21333. background: #4b79ce;
  21334. width: 80px;
  21335. height: 30px;
  21336. text-align: center;
  21337. color: #fff;
  21338. line-height: 30px;
  21339. border-radius: 10px;
  21340. margin: 10px auto 0;
  21341. cursor: pointer;
  21342. }
  21343. .pzConText:focus-visible {
  21344. border: none !important;
  21345. }
  21346. .maxWidth {
  21347. width: 1000px;
  21348. }
  21349. .noPz {
  21350. width: 150px;
  21351. margin: 0 auto 20%;
  21352. }
  21353. .noPz > img {
  21354. width: 100%;
  21355. height: 100%;
  21356. }
  21357. .timeAndReply {
  21358. display: flex;
  21359. flex-direction: row;
  21360. flex-wrap: nowrap;
  21361. justify-content: space-between;
  21362. align-items: center;
  21363. font-size: 14px;
  21364. box-sizing: border-box;
  21365. padding: 0 10px 10px 0px;
  21366. }
  21367. .timeAndReply .time {
  21368. color: #bfbfbf;
  21369. padding: 0 0 0 10px;
  21370. box-sizing: border-box;
  21371. }
  21372. .timeAndReply > div:last-child {
  21373. cursor: pointer;
  21374. color: #777;
  21375. }
  21376. /* table 样式 */
  21377. .cont >>> table {
  21378. border-top: 1px solid #ccc;
  21379. border-left: 1px solid #ccc;
  21380. }
  21381. .cont >>> table td,
  21382. .cont >>> table th {
  21383. border-bottom: 1px solid #ccc;
  21384. border-right: 1px solid #ccc;
  21385. /* padding: 20px 5px; */
  21386. padding: 5px 10px;
  21387. max-width: 0px;
  21388. height: 30px;
  21389. vertical-align: baseline;
  21390. box-sizing: border-box;
  21391. }
  21392. .cont >>> table th {
  21393. border-bottom: 2px solid #ccc;
  21394. text-align: center;
  21395. }
  21396. /* blockquote 样式 */
  21397. .cont >>> blockquote {
  21398. display: block;
  21399. border-left: 8px solid #d0e5f2;
  21400. padding: 5px 10px;
  21401. margin: 10px 0;
  21402. line-height: 1.4;
  21403. font-size: 100%;
  21404. background-color: #f1f1f1;
  21405. }
  21406. /* code 样式 */
  21407. .cont >>> code {
  21408. display: inline-block;
  21409. /* *display: inline; */
  21410. zoom: 1;
  21411. background-color: #f1f1f1;
  21412. border-radius: 3px;
  21413. padding: 3px 5px;
  21414. margin: 0 3px;
  21415. }
  21416. .cont >>> pre code {
  21417. display: block;
  21418. }
  21419. /* ul ol 样式 */
  21420. .cont >>> ul,
  21421. ol {
  21422. margin: 10px 0 10px 20px;
  21423. }
  21424. .addPzCheck {
  21425. display: flex;
  21426. flex-direction: row;
  21427. flex-wrap: nowrap;
  21428. padding: 10px 15px 0;
  21429. }
  21430. .addPzCheck span {
  21431. cursor: pointer;
  21432. padding-bottom: 5px;
  21433. font-weight: bold;
  21434. }
  21435. .addPzCheck span + span {
  21436. margin-left: 10px;
  21437. }
  21438. .addPzCheck .isChooseActive {
  21439. color: #3e88f4;
  21440. border-bottom: 2px solid #2f80f3;
  21441. }
  21442. /* code 样式 */
  21443. .cont {
  21444. /* -webkit-user-modify: read-write; */
  21445. overflow-wrap: break-word;
  21446. -webkit-line-break: after-white-space;
  21447. }
  21448. .scoreBox,
  21449. .scoreDetailBox {
  21450. display: flex;
  21451. align-items: center;
  21452. justify-content: flex-start;
  21453. margin-top: 20px;
  21454. font-size: 18px;
  21455. width: 100%;
  21456. }
  21457. .scoreBox .t,
  21458. .scoreDetailBox .t {
  21459. margin-right: 10px;
  21460. width: 100px;
  21461. text-align: right;
  21462. }
  21463. .scoreDetailBox {
  21464. align-items: flex-start;
  21465. }
  21466. .scoreDetailBox >>> .el-textarea {
  21467. width: calc(100% - 200px);
  21468. }
  21469. .scoreBox >>> .el-input {
  21470. width: 130px;
  21471. font-size: 38px;
  21472. }
  21473. .scoreBox >>> .el-input__inner {
  21474. height: 60px;
  21475. }
  21476. .answerScore {
  21477. position: absolute;
  21478. top: 10px;
  21479. right: 10px;
  21480. background: #0000008f;
  21481. border-radius: 5px;
  21482. padding: 3px 5px;
  21483. font-size: 14px;
  21484. color: #fff;
  21485. cursor: pointer;
  21486. }
  21487. .open_box .switch_box {
  21488. width: 100%;
  21489. margin: 0 auto;
  21490. display: flex;
  21491. justify-content: space-between;
  21492. }
  21493. .open_box .switch_box + .switch_box {
  21494. margin-top: 10px;
  21495. }
  21496. .deleteImg {
  21497. width: 25px !important;
  21498. height: 25px !important;
  21499. cursor: pointer;
  21500. position: absolute;
  21501. top: 10px;
  21502. right: 10px;
  21503. }
  21504. .deleteImg2 {
  21505. width: 15px !important;
  21506. height: 15px !important;
  21507. top: 5px;
  21508. right: 5px;
  21509. }
  21510. .rightW {
  21511. right: 40px;
  21512. }
  21513. .drawPBox {
  21514. display: flex;
  21515. flex-direction: column;
  21516. position: relative;
  21517. }
  21518. .drawPBox span {
  21519. font-size: 18px;
  21520. color: #606266;
  21521. padding-bottom: 10px;
  21522. margin: 10px 0;
  21523. border-bottom: 1px solid #eaeaea;
  21524. }
  21525. .drawPBox img {
  21526. width: 500px;
  21527. height: 300px;
  21528. object-fit: contain;
  21529. cursor: pointer;
  21530. margin: 0 auto;
  21531. }
  21532. .sentenBox {
  21533. background: #fff;
  21534. height: 450px;
  21535. overflow: auto;
  21536. background-image: url("../../assets/icon/conSentences/stuBg.png");
  21537. background-position: 102%;
  21538. background-repeat: no-repeat;
  21539. background-size: 60%;
  21540. }
  21541. .addSen {
  21542. background: #409efe;
  21543. width: 90px;
  21544. color: #fff;
  21545. height: 35px;
  21546. text-align: center;
  21547. line-height: 35px;
  21548. border-radius: 5px;
  21549. float: right;
  21550. margin: 10px 20px 0 0;
  21551. cursor: pointer;
  21552. }
  21553. .sentenTop {
  21554. display: flex;
  21555. flex-direction: row;
  21556. flex-wrap: nowrap;
  21557. align-items: center;
  21558. padding: 55px 0 0 20px;
  21559. box-sizing: border-box;
  21560. }
  21561. .sentenTop > div:nth-child(2) {
  21562. width: 300px;
  21563. margin: 0 15px;
  21564. }
  21565. .sentenTop > div:nth-child(3) {
  21566. background: #409efe;
  21567. color: #fff;
  21568. width: 65px;
  21569. height: 35px;
  21570. text-align: center;
  21571. line-height: 35px;
  21572. border-radius: 5px;
  21573. cursor: pointer;
  21574. }
  21575. .cardList,
  21576. .cardList1 {
  21577. padding: 10px 0 10px 0;
  21578. display: flex;
  21579. flex-direction: row;
  21580. flex-wrap: wrap;
  21581. align-items: center;
  21582. box-sizing: border-box;
  21583. border-bottom: 1px solid #f4f4f4;
  21584. width: 98%;
  21585. margin: 0 auto;
  21586. min-width: 60%;
  21587. max-width: 85%;
  21588. }
  21589. .cardList1 {
  21590. padding: 10px 0 10px 10px !important;
  21591. margin: 0 !important;
  21592. }
  21593. .cardBox {
  21594. display: flex;
  21595. flex-direction: row;
  21596. flex-wrap: wrap;
  21597. align-items: center;
  21598. align-content: center;
  21599. }
  21600. .cardBox > div {
  21601. margin-bottom: 10px;
  21602. }
  21603. .isCard,
  21604. .isChooseCard,
  21605. .noCard,
  21606. .isCard1 {
  21607. width: 130px;
  21608. height: 60px;
  21609. text-align: center;
  21610. line-height: 60px;
  21611. font-size: 20px;
  21612. cursor: pointer;
  21613. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  21614. background-size: cover;
  21615. transition: all 2s;
  21616. margin-right: 20px;
  21617. }
  21618. .isCard > div,
  21619. .noCard > div,
  21620. .isCard1 > div {
  21621. white-space: nowrap;
  21622. overflow: hidden;
  21623. text-overflow: ellipsis;
  21624. width: 75%;
  21625. margin: 0 auto;
  21626. }
  21627. .noCard {
  21628. background-image: none;
  21629. }
  21630. .isCard1 {
  21631. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  21632. }
  21633. .isChooseCard {
  21634. background-image: none;
  21635. border: 1px dashed #b9b9b9;
  21636. border-radius: 10px;
  21637. }
  21638. .card {
  21639. width: 130px;
  21640. height: 60px;
  21641. }
  21642. .card > img {
  21643. width: 100%;
  21644. height: 100%;
  21645. }
  21646. .rightCardBox {
  21647. margin: 10px 0 0 10px;
  21648. }
  21649. .rightCardBox > div:nth-child(1) {
  21650. margin-bottom: 10px;
  21651. }
  21652. .cardCss {
  21653. display: flex;
  21654. flex-direction: column;
  21655. flex-wrap: nowrap;
  21656. align-items: center;
  21657. border-bottom: 3px solid #b4c3d3;
  21658. padding: 0 0 5px 0;
  21659. margin-right: 10px;
  21660. }
  21661. .cardCss > div:nth-child(2) {
  21662. background: #5b7b9d;
  21663. color: #fff;
  21664. width: 20px;
  21665. height: 20px;
  21666. border-radius: 50%;
  21667. text-align: center;
  21668. line-height: 20px;
  21669. }
  21670. .isWrong {
  21671. display: flex;
  21672. flex-direction: row;
  21673. flex-wrap: nowrap;
  21674. align-content: center;
  21675. align-items: center;
  21676. }
  21677. .answerRight {
  21678. width: 25%;
  21679. }
  21680. .isTj {
  21681. display: flex;
  21682. flex-direction: row;
  21683. flex-wrap: nowrap;
  21684. align-items: center;
  21685. }
  21686. .isTj > div:nth-child(2) {
  21687. color: #727070;
  21688. margin-left: 10px;
  21689. }
  21690. .isTjImg {
  21691. width: 30px;
  21692. height: 30px;
  21693. }
  21694. .isTjImg > img {
  21695. width: 100%;
  21696. height: 100%;
  21697. }
  21698. .cardAnswerBox {
  21699. font-size: 18px;
  21700. width: 97%;
  21701. border: 5px;
  21702. padding: 0;
  21703. border-radius: 5px;
  21704. margin: 10px auto;
  21705. word-break: break-word;
  21706. }
  21707. .w_name {
  21708. margin-bottom: 10px;
  21709. }
  21710. .w_name span {
  21711. font-size: 16px;
  21712. }
  21713. .w_teachert {
  21714. width: 50px !important;
  21715. position: absolute;
  21716. height: auto !important;
  21717. z-index: 10;
  21718. right: 25px;
  21719. top: -25px;
  21720. }
  21721. .group_workBox {
  21722. }
  21723. .group_workBox + .group_workBox {
  21724. margin-top: 20px;
  21725. }
  21726. .group_box {
  21727. padding-bottom: 20px;
  21728. border-bottom: 2px solid #f0f0f0;
  21729. margin-top: 10px;
  21730. }
  21731. .group_title {
  21732. display: flex;
  21733. align-items: center;
  21734. justify-content: space-between;
  21735. width: 95%;
  21736. }
  21737. .group_name {
  21738. background-image: url(../../assets/icon/groupN.png);
  21739. width: 220px;
  21740. background-size: 100% 100%;
  21741. height: 67px;
  21742. padding: 0 20px 0 43px;
  21743. box-sizing: border-box;
  21744. line-height: 63px;
  21745. color: #fff;
  21746. overflow: hidden;
  21747. white-space: nowrap;
  21748. text-overflow: ellipsis;
  21749. }
  21750. .group_work {
  21751. width: 100%;
  21752. padding: 0 10px;
  21753. box-sizing: border-box;
  21754. display: flex;
  21755. flex-wrap: wrap;
  21756. }
  21757. .g_d_box {
  21758. display: flex;
  21759. flex-flow: wrap;
  21760. justify-content: space-around;
  21761. }
  21762. .g_d_box .isChair {
  21763. background-image: url(../../assets/avatar.png) !important;
  21764. }
  21765. .g_d_group {
  21766. width: 500px;
  21767. margin-bottom: 80px;
  21768. }
  21769. .g_d_group_chair {
  21770. display: flex;
  21771. align-items: center;
  21772. justify-content: center;
  21773. }
  21774. .g_d_group_chair > div + div {
  21775. margin-left: 30px;
  21776. }
  21777. .g_d_group_chair > div,
  21778. .g_d_group_chair2 > div {
  21779. display: flex;
  21780. flex-direction: column;
  21781. align-items: center;
  21782. }
  21783. .g_d_group_chair > div > span:nth-child(1),
  21784. .g_d_group_chair2 > div > span:nth-child(1) {
  21785. background-image: url(../../assets/icon/chair.png);
  21786. width: 50px;
  21787. height: 50px;
  21788. display: block;
  21789. background-size: 100% 100%;
  21790. }
  21791. .g_d_group_tableBox {
  21792. display: flex;
  21793. align-items: center;
  21794. justify-content: center;
  21795. }
  21796. .g_d_group_chair2 {
  21797. display: flex;
  21798. flex-direction: column;
  21799. align-items: center;
  21800. justify-content: center;
  21801. }
  21802. .g_d_group_chair2 > div + div {
  21803. margin-top: 10px;
  21804. }
  21805. .g_d_group_table {
  21806. background-image: url(../../assets/icon/groupBg.png);
  21807. width: 354px;
  21808. height: 196px;
  21809. background-size: 100% 100%;
  21810. display: flex;
  21811. align-items: center;
  21812. justify-content: center;
  21813. flex-direction: column;
  21814. color: #fff;
  21815. }
  21816. .g_d_group_table > div:nth-child(1) {
  21817. font-size: 24px;
  21818. margin-bottom: 5px;
  21819. }
  21820. .g_d_group_table > div:nth-child(2) div {
  21821. cursor: pointer;
  21822. background: #2e77bf;
  21823. padding: 4px 10px;
  21824. border-radius: 5px;
  21825. }
  21826. .groupBox {
  21827. }
  21828. .groupContent + .groupContent {
  21829. margin-top: 30px;
  21830. }
  21831. .groupTitle {
  21832. font-size: 24px;
  21833. color: rgb(80, 80, 80);
  21834. margin-bottom: 20px;
  21835. }
  21836. .groupName {
  21837. display: flex;
  21838. align-items: center;
  21839. }
  21840. .groupn {
  21841. font-size: 15px;
  21842. margin-right: 10px;
  21843. }
  21844. .groupName + .groupName {
  21845. margin-top: 15px;
  21846. }
  21847. .groupBtn {
  21848. margin-left: 10px;
  21849. }
  21850. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  21851. text-align: left;
  21852. }
  21853. .g_d_btnBox {
  21854. display: flex;
  21855. justify-content: flex-end;
  21856. align-items: center;
  21857. margin-bottom: 20px;
  21858. }
  21859. .updateChair {
  21860. position: relative;
  21861. }
  21862. .updateChairBtn {
  21863. position: absolute;
  21864. width: 50px;
  21865. height: 50px;
  21866. overflow: hidden;
  21867. /* display: flex; */
  21868. align-items: center;
  21869. justify-content: center;
  21870. background: #00000087;
  21871. color: #fff;
  21872. border-radius: 50px;
  21873. display: none;
  21874. cursor: pointer;
  21875. }
  21876. .updateChair:hover .updateChairBtn {
  21877. display: flex;
  21878. }
  21879. .group_staic_box {
  21880. display: flex;
  21881. padding: 30px 40px 10px;
  21882. flex-wrap: wrap;
  21883. }
  21884. .group_staic {
  21885. /* width: 50%; */
  21886. margin-bottom: 20px;
  21887. display: flex;
  21888. align-items: center;
  21889. }
  21890. .group_staic span:nth-child(1) {
  21891. width: 150px;
  21892. text-align: right;
  21893. margin-right: 15px;
  21894. }
  21895. .group_staic span:nth-child(2) {
  21896. background: rgb(0 123 255);
  21897. color: #fff;
  21898. border-radius: 5px;
  21899. padding: 5px;
  21900. }
  21901. .codeFileBox {
  21902. height: 300px;
  21903. background: #fff;
  21904. display: flex;
  21905. align-items: center;
  21906. justify-content: center;
  21907. }
  21908. .codeFileBox img {
  21909. width: 200px;
  21910. margin: 0;
  21911. height: auto;
  21912. }
  21913. .codeFileBox div {
  21914. background: rgb(80, 142, 226);
  21915. color: #fff;
  21916. padding: 10px 20px;
  21917. border-radius: 25px;
  21918. cursor: pointer;
  21919. margin-left: 15px;
  21920. }
  21921. .radioBox {
  21922. display: flex;
  21923. flex-direction: column;
  21924. flex-wrap: nowrap;
  21925. align-items: flex-start;
  21926. }
  21927. .radioBox > div {
  21928. margin: 10px 0 0 10px;
  21929. }
  21930. /* .radioBox >>> .el-radio__input,
  21931. .radioBox >>> .el-checkbox__inner {
  21932. margin-left: 10px;
  21933. } */
  21934. .radioBox >>> .el-radio__label,
  21935. .radioBox >>> .el-checkbox__label {
  21936. display: flex;
  21937. align-items: center;
  21938. width: 100%;
  21939. }
  21940. .radioBox >>> .el-radio__label > span {
  21941. width: 100%;
  21942. display: -webkit-box;
  21943. overflow: hidden;
  21944. white-space: normal !important;
  21945. text-overflow: ellipsis;
  21946. word-wrap: break-word;
  21947. }
  21948. .inImg {
  21949. width: 100px;
  21950. cursor: pointer;
  21951. }
  21952. .inImg > img {
  21953. width: 100%;
  21954. height: 100%;
  21955. object-fit: cover;
  21956. }
  21957. .timuImgBox {
  21958. margin: 10px 0;
  21959. display: flex;
  21960. flex-direction: column;
  21961. flex-wrap: wrap;
  21962. align-items: flex-start;
  21963. }
  21964. .timuImg {
  21965. width: 150px;
  21966. margin: 5px 0;
  21967. cursor: pointer;
  21968. }
  21969. .timuImg > img {
  21970. width: 100%;
  21971. height: 100%;
  21972. object-fit: cover;
  21973. }
  21974. .worksTop {
  21975. display: flex;
  21976. flex-direction: row;
  21977. align-items: flex-end;
  21978. }
  21979. .worksTitle {
  21980. display: flex;
  21981. flex-direction: row;
  21982. flex-wrap: nowrap;
  21983. align-items: center;
  21984. }
  21985. .worksTitle::before,
  21986. .worksTop::before {
  21987. content: "";
  21988. display: block;
  21989. width: 3px;
  21990. height: 20px;
  21991. background: #0061ff;
  21992. border-radius: 3px;
  21993. margin: 0 5px 0 0;
  21994. }
  21995. .corOpen {
  21996. margin: 0 0 0 10px;
  21997. font-size: 14px;
  21998. cursor: pointer;
  21999. color: #505050;
  22000. }
  22001. .corOpen:hover {
  22002. color: #499eef;
  22003. }
  22004. .navCorOpenBox {
  22005. display: flex;
  22006. flex-direction: row;
  22007. align-items: center;
  22008. justify-content: space-between;
  22009. height: 55px;
  22010. background: #ffffff;
  22011. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  22012. border-radius: 8px 8px 0px 0px;
  22013. z-index: 9;
  22014. position: relative;
  22015. }
  22016. .navCorOpen {
  22017. padding-right: 15px;
  22018. cursor: pointer;
  22019. width: 45px;
  22020. display: flex;
  22021. }
  22022. .navCorOpen > img {
  22023. width: 100%;
  22024. height: 100%;
  22025. }
  22026. .mlImg {
  22027. width: 45px !important;
  22028. min-width: 45px;
  22029. cursor: pointer;
  22030. transform: rotate(180deg);
  22031. }
  22032. .mlImg > img {
  22033. width: 100%;
  22034. height: 100%;
  22035. }
  22036. .navLeftCss {
  22037. width: 100% !important;
  22038. left: 0 !important;
  22039. }
  22040. .isContentCss {
  22041. width: 100% !important;
  22042. }
  22043. .isAllWidth {
  22044. width: 100% !important;
  22045. }
  22046. .group_switch {
  22047. margin-right: 10px;
  22048. height: 30px;
  22049. display: flex;
  22050. align-items: center;
  22051. }
  22052. .group_switch > span {
  22053. margin-right: 5px;
  22054. }
  22055. .fileC_box {
  22056. padding-top: 15px;
  22057. }
  22058. .fileC_box > .fileC_title {
  22059. padding: 10px 5px 14px 11px;
  22060. border-top: 1px solid #cad1dc;
  22061. font-size: 14px;
  22062. font-weight: 400;
  22063. color: #cad1dc;
  22064. width: 88%;
  22065. margin: 0 auto;
  22066. }
  22067. .pl_select_box {
  22068. height: 40px;
  22069. line-height: 40px;
  22070. width: 100%;
  22071. cursor: pointer;
  22072. padding: 0 20px;
  22073. box-sizing: border-box;
  22074. border-radius: 5px;
  22075. border: 1px solid #d6d6d6;
  22076. white-space: nowrap;
  22077. overflow: hidden;
  22078. text-overflow: ellipsis;
  22079. background: #fff;
  22080. text-align: left;
  22081. }
  22082. .newButton {
  22083. width: 102px;
  22084. height: 36px;
  22085. background: #e7ebf1;
  22086. border-radius: 4px;
  22087. color: #0e1e33;
  22088. font-weight: 400;
  22089. font-size: 14px;
  22090. border: none;
  22091. float: right;
  22092. margin-left: 10px;
  22093. }
  22094. .el-table >>> .even_row {
  22095. background-color: #f0f4fa;
  22096. }
  22097. .stageBoxCss,
  22098. .stageBoxIsCss {
  22099. display: flex;
  22100. flex-direction: row;
  22101. flex-wrap: nowrap;
  22102. align-items: center;
  22103. height: 50px;
  22104. border-bottom: 1px solid #e2f5fc;
  22105. cursor: pointer;
  22106. width: 100%;
  22107. }
  22108. .stageBoxIsCss {
  22109. background: #0061ff;
  22110. color: #fff;
  22111. border-radius: 8px;
  22112. }
  22113. .stageItemTitle {
  22114. display: flex;
  22115. flex-direction: row;
  22116. flex-wrap: nowrap;
  22117. align-items: center;
  22118. margin-left: 15px;
  22119. width: calc(100% - 50px);
  22120. }
  22121. .stageItemTitle > div:first-child {
  22122. font-size: 16px;
  22123. font-weight: bold;
  22124. min-width: 55px;
  22125. }
  22126. .stageItemTitle > div:last-child {
  22127. font-size: 15px;
  22128. font-weight: 600;
  22129. max-width: 242px;
  22130. white-space: nowrap;
  22131. overflow: hidden;
  22132. text-overflow: ellipsis;
  22133. word-break: break-word;
  22134. width: calc(100% - 55px);
  22135. }
  22136. .closeTri,
  22137. .closeTri1 {
  22138. min-width: 15px;
  22139. width: 15px;
  22140. height: 15px;
  22141. }
  22142. .closeTri1 {
  22143. padding-left: 10px;
  22144. cursor: pointer;
  22145. }
  22146. .closeTri > img,
  22147. .closeTri1 > img {
  22148. width: 100%;
  22149. height: 100%;
  22150. }
  22151. .noToolBlue {
  22152. min-width: 10px;
  22153. width: 10px;
  22154. height: 10px;
  22155. background: #0061ff;
  22156. border-radius: 50%;
  22157. margin-left: 13px;
  22158. }
  22159. .stageChild,
  22160. .toolChild {
  22161. height: 0;
  22162. overflow: hidden;
  22163. transition: all 0.5s;
  22164. }
  22165. .toolChild {
  22166. margin: 0 0 0 17px;
  22167. padding: 0 0 0 20px;
  22168. border-left: 1px solid #d7d7d7;
  22169. }
  22170. .gjCss {
  22171. display: flex;
  22172. flex-direction: row;
  22173. flex-wrap: nowrap;
  22174. align-items: center;
  22175. padding: 15px 0;
  22176. box-sizing: border-box;
  22177. font-size: 14px;
  22178. cursor: pointer;
  22179. }
  22180. .toolChild > div {
  22181. position: relative;
  22182. }
  22183. .toolChild > div::before {
  22184. content: "";
  22185. width: 15px;
  22186. height: 1px;
  22187. background: #cad1dc;
  22188. position: absolute;
  22189. top: 24px;
  22190. left: -20px;
  22191. display: block;
  22192. }
  22193. .isGjCss {
  22194. color: #0061ff;
  22195. }
  22196. .navItem {
  22197. background: #ffffff;
  22198. border-radius: 4px;
  22199. width: 100%;
  22200. margin: 10px auto 0;
  22201. position: relative;
  22202. height: 40px;
  22203. display: flex;
  22204. flex-direction: row;
  22205. flex-wrap: nowrap;
  22206. align-items: center;
  22207. }
  22208. .navItemList {
  22209. display: flex;
  22210. flex-direction: row;
  22211. flex-wrap: nowrap;
  22212. align-items: center;
  22213. padding: 0 13px;
  22214. cursor: pointer;
  22215. width: calc(100% - 60px);
  22216. height: 100%;
  22217. }
  22218. .navItemList > div:first-child {
  22219. min-width: 60px;
  22220. }
  22221. .navItemList > div:last-child {
  22222. width: calc(100% - 80px);
  22223. white-space: nowrap;
  22224. overflow: hidden;
  22225. text-overflow: ellipsis;
  22226. word-break: break-word;
  22227. }
  22228. /* .isItemList > div {
  22229. color: #fff !important;
  22230. } */
  22231. .tool_work_box {
  22232. width: 100%;
  22233. padding: 0 37px 0;
  22234. box-sizing: border-box;
  22235. }
  22236. .tool_box {
  22237. width: 100%;
  22238. padding: 0 0 0 20px;
  22239. }
  22240. .tool_type_box {
  22241. display: flex;
  22242. flex-direction: row;
  22243. align-items: baseline;
  22244. flex-wrap: nowrap;
  22245. justify-content: flex-start;
  22246. position: relative;
  22247. }
  22248. .toolSort {
  22249. display: flex;
  22250. flex-direction: row;
  22251. flex-wrap: wrap;
  22252. justify-content: flex-start;
  22253. align-items: flex-start;
  22254. padding: 0 0 15px 0;
  22255. }
  22256. .toolSort > div {
  22257. margin: 0 10px 0 0;
  22258. width: 135px;
  22259. box-sizing: border-box;
  22260. border: 2px solid transparent;
  22261. }
  22262. .tools {
  22263. width: 100%;
  22264. display: flex;
  22265. flex-direction: column;
  22266. flex-wrap: nowrap;
  22267. align-items: flex-start;
  22268. }
  22269. .whiteBIcon {
  22270. width: fit-content;
  22271. cursor: pointer;
  22272. display: flex;
  22273. flex-direction: column;
  22274. flex-wrap: nowrap;
  22275. align-items: center;
  22276. font-size: 14px;
  22277. }
  22278. .tool:hover {
  22279. border: 2px solid #a5c7ff;
  22280. border-radius: 5px;
  22281. }
  22282. .whiteBIcon > img {
  22283. width: 65px;
  22284. height: 100%;
  22285. }
  22286. .whiteBIcon > img {
  22287. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  22288. border-radius: 15px;
  22289. }
  22290. .check {
  22291. /* width: 20px;
  22292. height: 20px; */
  22293. cursor: pointer;
  22294. margin: 10px 0;
  22295. position: absolute;
  22296. right: 2px;
  22297. top: -5px;
  22298. }
  22299. .noChoose,
  22300. .isChoose {
  22301. width: 15px;
  22302. height: 15px;
  22303. border-radius: 50%;
  22304. border: 1px solid #adadad;
  22305. }
  22306. .isChoose {
  22307. border: 4px solid #0363ff !important;
  22308. width: 10px;
  22309. height: 10px;
  22310. }
  22311. .isToolChoose {
  22312. border: 2px solid #5394ff !important;
  22313. border-radius: 5px;
  22314. box-shadow: 0 0 6px 0px #5394ff;
  22315. }
  22316. .checkDiv {
  22317. display: flex;
  22318. align-items: center;
  22319. }
  22320. .checkDiv span {
  22321. margin-left: 5px;
  22322. color: #858585;
  22323. }
  22324. .check img {
  22325. width: 20px;
  22326. height: 20px;
  22327. }
  22328. .lockTaskIcon {
  22329. width: 20px;
  22330. height: 20px;
  22331. position: absolute;
  22332. right: 10px;
  22333. top: 10px;
  22334. }
  22335. .lockTaskIcon > img {
  22336. width: 100%;
  22337. height: 100%;
  22338. }
  22339. .pick_box {
  22340. display: flex;
  22341. align-items: flex-start;
  22342. flex-wrap: wrap;
  22343. }
  22344. .selectBox {
  22345. width: 110px;
  22346. margin-left: 10px;
  22347. margin: 0 10px 0 auto;
  22348. }
  22349. .selectBox >>> .el-input__inner {
  22350. height: 30px;
  22351. line-height: 30px;
  22352. }
  22353. .selectBox >>> .el-input__icon {
  22354. line-height: 30px;
  22355. }
  22356. .sentenceTitle {
  22357. display: flex;
  22358. flex-direction: row;
  22359. flex-wrap: nowrap;
  22360. align-items: center;
  22361. }
  22362. .sentenceTitle::before {
  22363. content: attr(index);
  22364. background: #3681fc;
  22365. border-radius: 50%;
  22366. color: #fff;
  22367. width: 25px;
  22368. height: 25px;
  22369. min-width: 25px;
  22370. min-height: 25px;
  22371. text-align: center;
  22372. line-height: 25px;
  22373. margin-right: 5px;
  22374. }
  22375. .hfBox {
  22376. padding: 10px;
  22377. box-sizing: border-box;
  22378. }
  22379. .whoReplyWho {
  22380. display: flex;
  22381. flex-direction: row;
  22382. flex-wrap: nowrap;
  22383. align-items: baseline;
  22384. justify-content: flex-start;
  22385. }
  22386. .hfBottom {
  22387. display: flex;
  22388. flex-direction: row;
  22389. flex-wrap: nowrap;
  22390. align-items: center;
  22391. justify-content: space-between;
  22392. font-size: 14px;
  22393. }
  22394. .deleteHfItem {
  22395. cursor: pointer;
  22396. width: 20px;
  22397. height: 20px;
  22398. }
  22399. .deleteHfItem > img {
  22400. width: 100%;
  22401. height: 100%;
  22402. }
  22403. .whoReplyWho > .hfImg {
  22404. width: 12px;
  22405. height: 12px;
  22406. margin: 0 5px;
  22407. }
  22408. .whoReplyWho > .hfImg > img {
  22409. width: 100%;
  22410. height: 100%;
  22411. }
  22412. .hfContent {
  22413. padding-top: 10px;
  22414. box-sizing: border-box;
  22415. display: -webkit-box;
  22416. overflow: hidden;
  22417. white-space: normal !important;
  22418. text-overflow: ellipsis;
  22419. word-wrap: break-word;
  22420. -webkit-box-orient: vertical;
  22421. }
  22422. .hfTime {
  22423. text-align: left;
  22424. box-sizing: border-box;
  22425. padding: 10px 0 10px 0px;
  22426. color: #bfbfbf;
  22427. font-size: 14px;
  22428. }
  22429. .btnAllNT {
  22430. position: fixed;
  22431. bottom: 100px;
  22432. right: 40px;
  22433. z-index: 999;
  22434. display: flex;
  22435. flex-direction: row;
  22436. }
  22437. .btnAllNT > img {
  22438. cursor: pointer;
  22439. width: 80px;
  22440. }
  22441. .toolMask {
  22442. position: fixed;
  22443. width: 100%;
  22444. height: 100%;
  22445. background: #3f3c3c;
  22446. opacity: 0.5;
  22447. top: 0;
  22448. left: 0;
  22449. z-index: 999;
  22450. }
  22451. .addToolCss {
  22452. position: fixed;
  22453. z-index: 999;
  22454. background: #fff;
  22455. right: 5%;
  22456. bottom: 18%;
  22457. min-width: 1035px;
  22458. min-height: 300px;
  22459. border-radius: 10px;
  22460. box-shadow: 0 0 8px 1px #b2b2b2;
  22461. }
  22462. .toolTop {
  22463. display: flex;
  22464. flex-direction: row;
  22465. flex-wrap: nowrap;
  22466. justify-content: space-between;
  22467. align-items: center;
  22468. padding: 20px;
  22469. }
  22470. .toolTop > div:nth-child(2) {
  22471. width: 15px;
  22472. height: 15px;
  22473. padding-right: 10px;
  22474. cursor: pointer;
  22475. }
  22476. .toolTop > div:nth-child(2) > img {
  22477. width: 100%;
  22478. height: 100%;
  22479. }
  22480. .fullStyle>>>.el-dialog__body {
  22481. height: calc(100% - 125px) !important;
  22482. box-sizing: border-box;
  22483. padding: 30px 0 !important;
  22484. background: #fff !important;
  22485. }
  22486. .fullStyle>>>.el-dialog {
  22487. width: 100% !important;
  22488. max-width: 100% !important;
  22489. height: 100% !important;
  22490. margin: 0 !important;
  22491. }
  22492. .fullStyle {
  22493. width: 100% !important;
  22494. max-width: 100% !important;
  22495. height: 100% !important;
  22496. margin: 0 auto !important;
  22497. }
  22498. .fullStyle>>>.el-dialog__footer{
  22499. background: #fff !important;
  22500. }
  22501. .engUpBox {
  22502. width: 100%;
  22503. height: 100%;
  22504. }
  22505. .engTitle,
  22506. .engText {
  22507. display: flex;
  22508. flex-direction: row;
  22509. flex-wrap: nowrap;
  22510. align-items: flex-start;
  22511. padding: 0 20px 20px 20px;
  22512. box-sizing: border-box;
  22513. }
  22514. .engTitle > .div:first-child,
  22515. .engText > div:first-child {
  22516. min-width: 75px;
  22517. }
  22518. .correctBox{
  22519. width: 100%;
  22520. display: flex;
  22521. flex-direction: row;
  22522. flex-wrap: nowrap;
  22523. align-items: flex-start;
  22524. }
  22525. .oldBox{
  22526. width: 50%;
  22527. height: 100%;
  22528. display: flex;
  22529. flex-direction: column;
  22530. flex-wrap: nowrap;
  22531. align-items: center;
  22532. border-top: 1px solid #d9d9d9;
  22533. border-left: 1px solid #d9d9d9;
  22534. border-right: 1px solid #d9d9d9;
  22535. }
  22536. .oldBox>div:first-child{
  22537. width: 100%;
  22538. text-align: center;
  22539. background: #d9d9d9;
  22540. height: 35px;
  22541. line-height: 35px;
  22542. font-weight: bold;
  22543. }
  22544. .oldText{
  22545. width: 100%;
  22546. height: 100%;
  22547. display: flex;
  22548. flex-direction: column;
  22549. flex-wrap: nowrap;
  22550. align-content: center;
  22551. justify-content: center;
  22552. align-items: center;
  22553. }
  22554. .detailBox{
  22555. width: 50%;
  22556. padding: 10px;
  22557. background: #f6f6f6;
  22558. border-radius: 5px;
  22559. }
  22560. .oldDetail{
  22561. padding-bottom: 30px;
  22562. }
  22563. .allName{
  22564. min-width: 200px;
  22565. white-space: nowrap;
  22566. overflow: hidden;
  22567. text-overflow: ellipsis;
  22568. word-break: break-word;
  22569. cursor: pointer;
  22570. text-align: center;
  22571. border: 1px solid #bcc2cc;
  22572. box-sizing: border-box;
  22573. }
  22574. </style>