studyStudent.vue 756 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243
  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[taskCount].length > 0 ||
  450. fileC[taskCount].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="
  495. vChapterData[taskCount].length > 0 ||
  496. fileC[taskCount].length > 0
  497. "
  498. >
  499. <div class="vedioTaskBox">
  500. <div
  501. :class="
  502. contentDialog == false
  503. ? 'box_course isContentCss'
  504. : 'box_course'
  505. "
  506. v-if="
  507. vChapterData.length > 0 &&
  508. vChapterData[taskCount] &&
  509. showType !== ''
  510. "
  511. >
  512. <div class="wheel" style="height: auto" v-if="showType === 0">
  513. <div
  514. class="workd_media"
  515. style="height: 650px; width: calc(100% - 50px)"
  516. >
  517. <video-player
  518. class="video-player vjs-custom-skin"
  519. :class="contentDialog == false ? 'isAllWidth' : ''"
  520. :playsinline="true"
  521. :options="playerO[taskCount]"
  522. @play="onPlayerPlay($event)"
  523. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  524. ></video-player>
  525. </div>
  526. </div>
  527. <div
  528. class="wheel"
  529. v-if="showType == 1"
  530. style="
  531. box-shadow: 0 0 6px 1px #f2f2f2;
  532. width: 95%;
  533. margin: 0 auto;
  534. background: #f1f1f1;
  535. "
  536. >
  537. <div class="title">查看文档</div>
  538. <el-form class="textBox">
  539. <el-form-item class="textTitle">
  540. <div style="font-size: 22px">
  541. {{ text.name }}
  542. </div>
  543. </el-form-item>
  544. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  545. <div v-html="text.url" class="textContent cont"></div>
  546. </el-form>
  547. </div>
  548. <div
  549. class="wheel"
  550. v-if="
  551. pptImgUrl1.indexOf(
  552. 'https://view.officeapps.live.com/op/view.aspx?src='
  553. ) != -1 && showType == 2
  554. "
  555. style="width: 95%; margin: 0 auto"
  556. >
  557. <iframe
  558. style="width: 100%; height: 100%; border: none"
  559. :src="pptImgUrl1"
  560. ></iframe>
  561. </div>
  562. <div
  563. class="wheel"
  564. v-else-if="showType == 2"
  565. style="width: 95%; margin: 0 auto"
  566. >
  567. <iframe
  568. style="width: 100%; height: 100%; border: none"
  569. security="restricted"
  570. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  571. :src="pptImgUrl1"
  572. ></iframe>
  573. </div>
  574. <div
  575. class="wheel"
  576. v-if="showType == 3"
  577. style="width: 95%; margin: 0 auto"
  578. >
  579. <pdf
  580. :pdfUrl="pptImgUrl1"
  581. style="width: 100%; height: 100%; overflow: auto"
  582. ></pdf>
  583. </div>
  584. <div
  585. class="wheel"
  586. v-if="showType == 4"
  587. style="width: 95%; margin: 0 auto"
  588. >
  589. <el-image
  590. :src="pptImgUrl1"
  591. fit="contain"
  592. style="width: 100%; height: 100%; cursor: pointer"
  593. @click="previewImg(pptImgUrl1)"
  594. ></el-image>
  595. </div>
  596. </div>
  597. <div
  598. class="pButton"
  599. style="position: absolute; right: 20px; top: 0; z-index: 998"
  600. v-if="!contentDialog"
  601. @click="setContent(true)"
  602. >
  603. <!-- 批 -->
  604. <img
  605. src="../../assets/icon/newIcons/isLeft.png"
  606. style="width: 45px"
  607. alt=""
  608. />
  609. </div>
  610. <div
  611. v-if="contentDialog == true"
  612. :style="{
  613. width:
  614. (vChapterData[taskCount].length > 0 ||
  615. fileC[taskCount].length > 0) &&
  616. showType === ''
  617. ? 'calc(100%)'
  618. : '300px',
  619. margin:
  620. (vChapterData[taskCount].length > 0 ||
  621. fileC[taskCount].length > 0) &&
  622. showType === ''
  623. ? '0 15px'
  624. : '0 15px 0 0',
  625. }"
  626. >
  627. <div
  628. class="vedioList"
  629. v-if="
  630. vChapterData[taskCount].length > 0 ||
  631. fileC[taskCount].length > 0
  632. "
  633. style="height: 650px"
  634. >
  635. <div class="navCorOpenBox">
  636. <div class="navTitile">内容列表:</div>
  637. <div class="navCorOpen" @click="setContent(false)">
  638. <img
  639. src="../../assets/icon/newIcons/isRight.png"
  640. alt=""
  641. />
  642. </div>
  643. </div>
  644. <div class="navBox">
  645. <div
  646. v-show="
  647. vChapterData[taskCount].length > 0 ||
  648. fileC[taskCount].length > 0
  649. "
  650. style="padding: 10px 0 25px 0"
  651. >
  652. <div
  653. class="vedioTimeBox"
  654. v-for="(vitem, vindex) in vChapterData[taskCount]"
  655. :key="vindex + '1'"
  656. >
  657. <div class="navListItem" v-if="vitem.type == 2">
  658. <div
  659. @click="lookVedio(vitem.url, vindex)"
  660. class="navText"
  661. :class="isClickNav == vindex ? 'isClickNav' : ''"
  662. >
  663. <span v-if="vitem.text">{{ vitem.text }}-</span
  664. >{{ vitem.name }}
  665. </div>
  666. <div class="downIcon" @click="downloadFile2(vitem)">
  667. <img
  668. src="../../assets/icon/newIcon/down.png"
  669. alt
  670. />
  671. </div>
  672. </div>
  673. <div class="navListItem" v-if="vitem.type == 6">
  674. <div
  675. @click="lookText(taskCount, vindex)"
  676. class="navText"
  677. :class="isClickNav == vindex ? 'isClickNav' : ''"
  678. >
  679. {{ vitem.name }}.doc
  680. </div>
  681. <div
  682. class="downIcon"
  683. @click="checkFileFull1(vitem.type, vitem)"
  684. >
  685. <img
  686. src="../../assets/icon/newIcon/allScreen.png"
  687. alt
  688. />
  689. </div>
  690. </div>
  691. <div
  692. class="navListItem"
  693. v-if="vitem.type == 8 || vitem.type == 14"
  694. >
  695. <div
  696. @click="doUrl(vitem.url, vindex)"
  697. class="navText"
  698. :class="isClickNav == vindex ? 'isClickNav' : ''"
  699. >
  700. {{ vitem.title ? vitem.title : vitem.url }}
  701. </div>
  702. <div
  703. class="downIcon"
  704. @click="checkFileFull1(vitem.type, vitem)"
  705. >
  706. <img
  707. src="../../assets/icon/newIcon/allScreen.png"
  708. alt
  709. />
  710. </div>
  711. </div>
  712. <div class="navListItem" v-if="vitem.type == 3">
  713. <div
  714. @click="downFile(vitem, vindex)"
  715. class="navText"
  716. :class="isClickNav == vindex ? 'isClickNav' : ''"
  717. >
  718. <span v-if="vitem.text">{{ vitem.text }}-</span
  719. >{{ vitem.name }}
  720. </div>
  721. <div class="downIcon" @click="downloadFile2(vitem)">
  722. <img
  723. src="../../assets/icon/newIcon/down.png"
  724. alt
  725. />
  726. </div>
  727. <div
  728. class="downIcon"
  729. @click="checkFileFull1(vitem.type, vitem)"
  730. >
  731. <img
  732. src="../../assets/icon/newIcon/allScreen.png"
  733. alt
  734. />
  735. </div>
  736. </div>
  737. <div class="navListItem" v-if="vitem.type == 12">
  738. <div class="navText" @click="downloadFile2(vitem)">
  739. <span v-if="vitem.text">{{ vitem.text }}-</span
  740. >{{ vitem.name }}
  741. </div>
  742. <div class="downIcon" @click="downloadFile2(vitem)">
  743. <img
  744. src="../../assets/icon/newIcon/down.png"
  745. alt
  746. />
  747. </div>
  748. <div
  749. class="downIcon"
  750. @click="checkFileFull1(vitem.type, vitem)"
  751. >
  752. <img
  753. src="../../assets/icon/newIcon/allScreen.png"
  754. alt
  755. />
  756. </div>
  757. </div>
  758. <div class="navListItem" v-if="vitem.type == 13">
  759. <div
  760. class="navText"
  761. @click="checkPhoto(vitem, vindex)"
  762. :class="isClickNav == vindex ? 'isClickNav' : ''"
  763. >
  764. {{ vitem.name }}
  765. </div>
  766. <div class="downIcon" @click="downloadFile2(vitem)">
  767. <img
  768. src="../../assets/icon/newIcon/down.png"
  769. alt
  770. />
  771. </div>
  772. </div>
  773. </div>
  774. <div
  775. class="fileC_box"
  776. v-if="fileC[taskCount].length > 0"
  777. >
  778. <div class="fileC_title">以下文件不支持预览</div>
  779. <div
  780. class="vedioTimeBox"
  781. v-for="(vitem, vindex) in fileC[taskCount]"
  782. :key="vindex + '1'"
  783. >
  784. <div class="navListItem" v-if="vitem.type == 12">
  785. <div class="navText" style="color: #acb4bf">
  786. <span v-if="vitem.text">{{ vitem.text }}-</span
  787. >{{ vitem.name }}
  788. </div>
  789. <div
  790. class="downIcon"
  791. @click="downloadFile2(vitem)"
  792. >
  793. <img
  794. src="../../assets/icon/newIcon/down.png"
  795. alt
  796. />
  797. </div>
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. </div>
  804. </div>
  805. </div>
  806. <div style="width: calc(100% - 315px)">
  807. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  808. <!-- <el-button
  809. type="primary"
  810. class="newButton"
  811. @click="checkFileFull(showType, pptImgUrl1)"
  812. >全屏查看</el-button
  813. >
  814. <el-button
  815. type="primary"
  816. class="newButton"
  817. @click="downloadFile(pptImgUrl1)"
  818. v-if="showType != 2"
  819. >文件下载</el-button
  820. > -->
  821. <el-button
  822. class="newButton"
  823. v-if="
  824. showType == 2 &&
  825. pptImgUrl1.indexOf(
  826. 'https://view.officeapps.live.com/op/view.aspx?src='
  827. ) == -1
  828. "
  829. type="primary"
  830. @click="openLine(pptImgUrl1)"
  831. >打开链接
  832. </el-button>
  833. </div>
  834. <!-- <div
  835. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  836. v-if="showType == 1"
  837. >
  838. <el-button
  839. type="primary"
  840. class="newButton"
  841. @click="checkFileFull(showType, text)"
  842. >全屏查看</el-button
  843. >
  844. </div> -->
  845. </div>
  846. </div>
  847. </div>
  848. <div class="student_body" v-resize="resize">
  849. <div
  850. class="vedioBox"
  851. :style="{
  852. borderRadius:
  853. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  854. .taskDetail == '' &&
  855. vChapterData[taskCount].length == 0 &&
  856. fileC[taskCount].length == 0
  857. ? '0 0 20px 20px'
  858. : '20px',
  859. }"
  860. v-if="
  861. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  862. .toolChoose[0].tool &&
  863. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  864. .toolChoose[0].tool.length > 0
  865. "
  866. >
  867. <div
  868. class="toolHeng2"
  869. style="position: relative"
  870. v-if="
  871. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  872. .toolChoose[0].tool &&
  873. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  874. .toolChoose[0].tool.length &&
  875. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  876. .toolChoose[0].tool.length > 0
  877. "
  878. >
  879. <div class="workNav">工作区</div>
  880. <div
  881. class="filebox"
  882. style="flex-wrap: nowrap"
  883. v-for="(tool, toolIndex) in chapInfoList[courseType]
  884. .chapterInfo[0].taskJson[taskCount].toolChoose"
  885. :key="toolIndex"
  886. >
  887. <div class="bzBox">
  888. <div class="yCss"></div>
  889. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  890. 步骤{{ toolIndex + 1 }}
  891. </div>
  892. <div
  893. v-if="timeWorkList[toolIndex].length > 0"
  894. style="margin: 0 0 0 10px"
  895. >
  896. {{
  897. timeWorkList[toolIndex][0].time
  898. ? "时间:" + timeWorkList[toolIndex][0].time
  899. : ""
  900. }}
  901. </div>
  902. </div>
  903. <div class="toolBox">
  904. <div>
  905. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  906. :key="indexTool"-->
  907. <!-- <div class="iframeBox">
  908. <div
  909. class="addPoint isBorder"
  910. v-for="(tooC, toolCIndex) in tool.tool"
  911. :key="toolCIndex"
  912. >
  913. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  914. <div
  915. class="iframeName"
  916. >
  917. 电子白板
  918. </div>
  919. <iframe
  920. src="https://iwb.cocorobo.cn/"
  921. ref="whiteBoard"
  922. ></iframe>
  923. </div>
  924. </div>
  925. </div>-->
  926. <div class="noiframeBox">
  927. <div
  928. class="addPoint"
  929. v-for="(tooC, toolCIndex) in tool.tool"
  930. :key="toolCIndex"
  931. >
  932. <div v-if="tooC == 1">
  933. <img
  934. src="../../assets/icon/secondToolList/whiteBoard.png"
  935. alt
  936. @click="addTools(tooC, toolIndex, taskCount)"
  937. />
  938. <div style="margin: 5px 0">电子白板</div>
  939. </div>
  940. <div v-if="tooC == 3">
  941. <img
  942. src="../../assets/icon/secondToolList/mindMapping.png"
  943. alt
  944. @click="addTools(tooC, toolIndex, taskCount)"
  945. />
  946. <div style="margin: 5px 0">思维导图</div>
  947. </div>
  948. <div v-if="tooC == 6">
  949. <img
  950. src="../../assets/icon/secondToolList/doc.png"
  951. alt
  952. @click="addTools(tooC, toolIndex, taskCount)"
  953. />
  954. <div style="margin: 5px 0">协同文档</div>
  955. </div>
  956. <div v-if="tooC == 7">
  957. <img
  958. src="../../assets/icon/secondToolList/mindNetwork.png"
  959. alt
  960. @click="addTools(tooC, toolIndex, taskCount)"
  961. />
  962. <div style="margin: 5px 0">思维网格</div>
  963. </div>
  964. <div v-if="tooC == 8">
  965. <img
  966. src="../../assets/icon/secondToolList/library.png"
  967. alt
  968. @click="addTools(tooC, toolIndex, taskCount)"
  969. />
  970. <div style="margin: 5px 0">素材库</div>
  971. </div>
  972. <div v-if="tooC == 17">
  973. <img
  974. src="../../assets/icon/secondToolList/library.png"
  975. alt
  976. @click="addTools(tooC, toolIndex, taskCount)"
  977. />
  978. <div style="margin: 5px 0">学习资料</div>
  979. </div>
  980. <div v-if="tooC == 2">
  981. <img
  982. @click="addTools(tooC, toolIndex, taskCount)"
  983. src="../../assets/icon/secondToolList/note.png"
  984. alt
  985. />
  986. <div style="margin: 5px 0">便签</div>
  987. </div>
  988. <div v-if="tooC == 4">
  989. <img
  990. @click="addTools(tooC, toolIndex, taskCount)"
  991. src="../../assets/icon/thirdToolList/ask.png"
  992. alt
  993. />
  994. <div style="margin: 5px 0">问卷调查</div>
  995. </div>
  996. <div v-if="tooC == 45">
  997. <img
  998. @click="addTools(tooC, toolIndex, taskCount)"
  999. src="../../assets/icon/thirdToolList/choose.png"
  1000. alt
  1001. />
  1002. <div style="margin: 5px 0">选择题</div>
  1003. </div>
  1004. <!-- <div v-if="tooC == 5">
  1005. <img
  1006. @click="addTools(tooC, toolIndex, taskCount)"
  1007. src="../../assets/icon/thirdToolList/score.png"
  1008. alt
  1009. />
  1010. <div style="margin: 5px 0">量规评分</div>
  1011. </div> -->
  1012. <div v-if="tooC == 10">
  1013. <img
  1014. @click="addTools(tooC, toolIndex, taskCount)"
  1015. src="../../assets/icon/thirdToolList/time.png"
  1016. alt
  1017. />
  1018. <div style="margin: 5px 0">倒计时</div>
  1019. </div>
  1020. <div v-if="tooC == 15">
  1021. <img
  1022. @click="addTools(tooC, toolIndex, taskCount)"
  1023. src="../../assets/icon/thirdToolList/answer.png"
  1024. alt
  1025. />
  1026. <div style="margin: 5px 0">问答</div>
  1027. </div>
  1028. <div v-if="tooC == 26">
  1029. <img
  1030. @click="addTools(tooC, toolIndex, taskCount)"
  1031. src="../../assets/icon/thirdToolList/courseDesign.png"
  1032. alt
  1033. />
  1034. <div style="margin: 5px 0">课程设计</div>
  1035. </div>
  1036. <div v-if="tooC == 18">
  1037. <img
  1038. @click="addTools(tooC, toolIndex, taskCount)"
  1039. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1040. alt
  1041. />
  1042. <div style="margin: 5px 0">训练服务器</div>
  1043. </div>
  1044. <div v-if="tooC == 16">
  1045. <img
  1046. @click="addTools(tooC, toolIndex, taskCount)"
  1047. src="../../assets/icon/thirdToolList/work.png"
  1048. alt
  1049. />
  1050. <div style="margin: 5px 0">作业提交</div>
  1051. </div>
  1052. <div v-if="tooC == 50">
  1053. <img
  1054. @click="addTools(tooC, toolIndex, taskCount)"
  1055. src="../../assets/icon/thirdToolList/plwork.png"
  1056. alt
  1057. />
  1058. <div style="margin: 5px 0">批量上传</div>
  1059. </div>
  1060. <div v-if="tooC == 21">
  1061. <img
  1062. @click="addTools(tooC, toolIndex, taskCount)"
  1063. src="../../assets/icon/fourthToolList/program.png"
  1064. alt
  1065. />
  1066. <div style="margin: 5px 0">AIoT Blockly</div>
  1067. </div>
  1068. <!-- <div v-if="tooC == 22">
  1069. <img
  1070. @click="addTools(tooC, toolIndex, taskCount)"
  1071. src="../../assets/icon/fourthToolList/program.png"
  1072. alt
  1073. />
  1074. <div style="margin: 5px 0">AI体验</div>
  1075. </div> -->
  1076. <div v-if="tooC == 23">
  1077. <img
  1078. @click="addTools(tooC, toolIndex, taskCount)"
  1079. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1080. alt
  1081. />
  1082. <div style="margin: 5px 0">AI Python</div>
  1083. </div>
  1084. <div v-if="tooC == 24">
  1085. <img
  1086. @click="addTools(tooC, toolIndex, taskCount)"
  1087. src="../../assets/icon/fourthToolList/AIprogram.png"
  1088. alt
  1089. />
  1090. <div style="margin: 5px 0">AI Blockly</div>
  1091. </div>
  1092. <div v-if="tooC == 25">
  1093. <img
  1094. @click="addTools(tooC, toolIndex, taskCount)"
  1095. src="../../assets/icon/thirdToolList/evalua.png"
  1096. alt
  1097. />
  1098. <div style="margin: 5px 0">目标管理</div>
  1099. </div>
  1100. <div v-if="tooC == 31">
  1101. <img
  1102. @click="addTools(tooC, toolIndex, taskCount)"
  1103. src="../../assets/icon/secondToolList/networkPanel.png"
  1104. alt
  1105. />
  1106. <div style="margin: 5px 0">数学画板</div>
  1107. </div>
  1108. <div v-if="tooC == 28">
  1109. <img
  1110. @click="addTools(tooC, toolIndex, taskCount)"
  1111. src="../../assets/icon/secondToolList/translation.png"
  1112. alt
  1113. />
  1114. <div style="margin: 5px 0">翻译</div>
  1115. </div>
  1116. <div v-if="tooC == 37">
  1117. <img
  1118. @click="addTools(tooC, toolIndex, taskCount)"
  1119. src="../../assets/icon/secondToolList/mohe.png"
  1120. alt
  1121. />
  1122. <div style="margin: 5px 0">魔盒识字</div>
  1123. </div>
  1124. <div v-if="tooC == 38">
  1125. <img
  1126. @click="addTools(tooC, toolIndex, taskCount)"
  1127. src="../../assets/icon/secondToolList/24game.png"
  1128. alt
  1129. />
  1130. <div style="margin: 5px 0">24点</div>
  1131. </div>
  1132. <div v-if="tooC == 39">
  1133. <img
  1134. @click="addTools(tooC, toolIndex, taskCount)"
  1135. src="../../assets/icon/secondToolList/GeoGebra.png"
  1136. alt
  1137. />
  1138. <div style="margin: 5px 0">GeoGebra</div>
  1139. </div>
  1140. <div v-if="tooC == 32">
  1141. <img
  1142. @click="addTools(tooC, toolIndex, taskCount)"
  1143. src="../../assets/icon/thirdToolList/code.png"
  1144. alt
  1145. />
  1146. <div style="margin: 5px 0">源码编辑</div>
  1147. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1148. style="position: absolute;left: 110px;bottom: 30px;">
  1149. 上传文件
  1150. <input type="file" accept="*" style="display: none"
  1151. @change="beforeUpload1($event, 7, toolIndex)" />
  1152. </div> -->
  1153. </div>
  1154. <div v-if="tooC == 40">
  1155. <img
  1156. @click="addTools(tooC, toolIndex, taskCount)"
  1157. src="../../assets/icon/secondToolList/eval.png"
  1158. alt
  1159. />
  1160. <div style="margin: 5px 0">个人评价</div>
  1161. </div>
  1162. <div v-if="tooC == 41">
  1163. <img
  1164. @click="addTools(tooC, toolIndex, taskCount)"
  1165. src="../../assets/icon/thirdToolList/select.png"
  1166. alt
  1167. />
  1168. <div style="margin: 5px 0">选择匹配</div>
  1169. </div>
  1170. <div v-if="tooC == 44">
  1171. <img
  1172. @click="addTools(tooC, toolIndex, taskCount)"
  1173. src="../../assets/icon/thirdToolList/hanClass.png"
  1174. alt
  1175. />
  1176. <div style="margin: 5px 0">汉字宫</div>
  1177. </div>
  1178. <div v-if="tooC == 47">
  1179. <img
  1180. @click="addTools(tooC, toolIndex, taskCount)"
  1181. src="../../assets/icon/fourthToolList/conSentences.png"
  1182. alt
  1183. />
  1184. <div style="margin: 5px 0">排序</div>
  1185. </div>
  1186. <div v-if="tooC == 48">
  1187. <img
  1188. @click="addTools(tooC, toolIndex, taskCount)"
  1189. src="../../assets/icon/fourthToolList/table.png"
  1190. alt
  1191. />
  1192. <div style="margin: 5px 0">表格</div>
  1193. </div>
  1194. <div v-if="tooC == 52">
  1195. <img
  1196. @click="addTools(tooC, toolIndex, taskCount)"
  1197. src="../../assets/icon/fourthToolList/text.png"
  1198. alt
  1199. />
  1200. <div style="margin: 5px 0">文档</div>
  1201. </div>
  1202. <div v-if="tooC == 49">
  1203. <img
  1204. @click="addTools(tooC, toolIndex, taskCount)"
  1205. src="../../assets/icon/fourthToolList/group.png"
  1206. alt
  1207. />
  1208. <div style="margin: 5px 0">学生分组</div>
  1209. </div>
  1210. <div v-if="tooC == 57">
  1211. <img
  1212. @click="addTools(tooC, toolIndex, taskCount)"
  1213. src="../../assets/icon/fourthToolList/cocopi.png"
  1214. alt
  1215. />
  1216. <div style="margin: 5px 0">CocoPi</div>
  1217. </div>
  1218. <div v-if="tooC == 58">
  1219. <img
  1220. @click="addTools(tooC, toolIndex, taskCount)"
  1221. src="../../assets/icon/fourthToolList/car.png"
  1222. alt
  1223. />
  1224. <div style="margin: 5px 0">模拟驾驶</div>
  1225. </div>
  1226. <div v-if="tooC == 59">
  1227. <img
  1228. @click="addTools(tooC, toolIndex, taskCount)"
  1229. src="../../assets/icon/fourthToolList/lineSearch.png"
  1230. alt
  1231. />
  1232. <div style="margin: 5px 0">路径搜索</div>
  1233. </div>
  1234. <div v-if="tooC == 60">
  1235. <img
  1236. @click="addTools(tooC, toolIndex, taskCount)"
  1237. src="../../assets/icon/fourthToolList/deepLearning.png"
  1238. alt
  1239. />
  1240. <div style="margin: 5px 0">深度学习</div>
  1241. </div>
  1242. <div v-if="tooC == 61">
  1243. <img
  1244. @click="addTools(tooC, toolIndex, taskCount)"
  1245. src="../../assets/icon/fourthToolList/allHistory.png"
  1246. alt
  1247. />
  1248. <div style="margin: 5px 0">全历史</div>
  1249. </div>
  1250. <div v-if="tooC == 62">
  1251. <img
  1252. @click="addTools(tooC, toolIndex, taskCount)"
  1253. src="../../assets/icon/fourthToolList/interVideo.png"
  1254. alt
  1255. />
  1256. <div style="margin: 5px 0">交互视频</div>
  1257. </div>
  1258. <div v-if="tooC == 63">
  1259. <img
  1260. @click="addTools(tooC, toolIndex, taskCount)"
  1261. src="../../assets/icon/fourthToolList/Wood.png"
  1262. alt
  1263. />
  1264. <div style="margin: 5px 0">海龟编程</div>
  1265. </div>
  1266. <div v-if="tooC == 65">
  1267. <img
  1268. @click="addTools(tooC, toolIndex, taskCount)"
  1269. src="../../assets/icon/firstToolList/pickPeople.png"
  1270. alt
  1271. />
  1272. <div style="margin: 5px 0">挑人</div>
  1273. </div>
  1274. <div v-if="tooC == 66">
  1275. <img
  1276. @click="addTools(tooC, toolIndex, taskCount)"
  1277. src="../../assets/icon/secondToolList/formulaEdi.png"
  1278. alt
  1279. />
  1280. <div style="margin: 5px 0">公式编辑</div>
  1281. </div>
  1282. <div v-if="tooC == 67">
  1283. <img
  1284. @click="addTools(tooC, toolIndex, taskCount)"
  1285. src="../../assets/icon/secondToolList/molStr.png"
  1286. alt
  1287. />
  1288. <div style="margin: 5px 0">分子结构</div>
  1289. </div>
  1290. <div v-if="tooC == 68">
  1291. <img
  1292. @click="addTools(tooC, toolIndex, taskCount)"
  1293. src="../../assets/icon/secondToolList/timeAxis.png"
  1294. alt
  1295. />
  1296. <div style="margin: 5px 0">时间轴</div>
  1297. </div>
  1298. <div v-if="tooC == 69">
  1299. <img
  1300. @click="addTools(tooC, toolIndex, taskCount)"
  1301. src="../../assets/icon/secondToolList/english.png"
  1302. alt
  1303. />
  1304. <div style="margin: 5px 0">英语写作</div>
  1305. </div>
  1306. </div>
  1307. </div>
  1308. </div>
  1309. <div class="tooldetail" v-if="tool.toolDetail != ''">
  1310. <!-- <div class="toolTitle">工具描述</div> -->
  1311. <div
  1312. v-html="contentConvent(tool.toolDetail)"
  1313. v-if="toolDetailIndex != toolIndex"
  1314. @click.stop="updateToolDetail(toolIndex)"
  1315. ></div>
  1316. <div v-else @click.stop="">
  1317. <el-input
  1318. type="textarea"
  1319. :rows="3"
  1320. resize="none"
  1321. v-model="updateToolDetailInner"
  1322. placeholder="请输入任务描述"
  1323. ></el-input>
  1324. </div>
  1325. </div>
  1326. <el-button
  1327. type="primary"
  1328. v-if="tool.tool[0] == 32"
  1329. style="position: absolute; right: 30px; top: 30px"
  1330. @click="addImg($event)"
  1331. >上传作业<input
  1332. type="file"
  1333. accept="*"
  1334. style="display: none"
  1335. @change="beforeUpload1($event, 7, toolIndex)"
  1336. /></el-button>
  1337. <el-button
  1338. type="primary"
  1339. v-if="tool.tool[0] == 15"
  1340. style="position: absolute; right: 30px; top: 30px"
  1341. @click="openWordCloud(toolIndex)"
  1342. >生成词云</el-button
  1343. >
  1344. <el-button
  1345. type="primary"
  1346. v-if="
  1347. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1348. "
  1349. style="position: absolute; right: 30px; top: 30px"
  1350. @click="uploadWorks(toolIndex)"
  1351. >导出作业</el-button
  1352. >
  1353. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1354. position: absolute;
  1355. right: 30px;
  1356. transform: translateY(-130%);
  1357. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1358. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1359. </div>
  1360. <div
  1361. v-if="
  1362. tType &&
  1363. tType == 2 &&
  1364. !sIsOpen &&
  1365. tool.tool.indexOf(16) != -1
  1366. "
  1367. class="worksBox"
  1368. >
  1369. <div
  1370. class="zuoyeYulan"
  1371. v-if="workStudent[toolIndex].length > 0"
  1372. >
  1373. <span class="worksTitle">作业预览</span>
  1374. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1375. </div>
  1376. <div
  1377. class="worksDetailBox"
  1378. v-if="workStudent[toolIndex].length > 0"
  1379. >
  1380. <div
  1381. class="works"
  1382. style="
  1383. width: 200px;
  1384. height: 140px;
  1385. margin: 10px 10px 10px 0;
  1386. box-shadow: 0 0 6px 1px #dfdada;
  1387. "
  1388. v-for="(w, wIndex) in workStudent[toolIndex]"
  1389. :key="wIndex"
  1390. >
  1391. <div class="workImg" v-if="w.type == 0">
  1392. <img
  1393. :src="w.works"
  1394. @click="previewImg(w.works)"
  1395. alt
  1396. />
  1397. <div
  1398. class="answerScore"
  1399. v-if="w.score"
  1400. @click.stop="openScore(w)"
  1401. :class="{
  1402. rightW:
  1403. w.userid == userid || tType == 1 || tType == 4,
  1404. }"
  1405. >
  1406. {{ JSON.parse(w.score).wScore }}分
  1407. </div>
  1408. <div
  1409. class="answerScore"
  1410. @click.stop="openScore(w)"
  1411. v-else-if="courseDetail.userid == userid"
  1412. :class="{
  1413. rightW:
  1414. w.userid == userid || tType == 1 || tType == 4,
  1415. }"
  1416. >
  1417. 评分
  1418. </div>
  1419. <img
  1420. class="deleteImg"
  1421. src="../../assets/deleteworks.png"
  1422. v-if="
  1423. w.userid == userid || tType == 1 || tType == 4
  1424. "
  1425. @click.stop="deleteWorks(w.wid)"
  1426. alt
  1427. />
  1428. </div>
  1429. <div class="workImg" v-if="w.type == 1">
  1430. <img :src="word" @click="openFile(w.works)" alt />
  1431. <div
  1432. class="answerScore"
  1433. v-if="w.score"
  1434. @click.stop="openScore(w)"
  1435. :class="{
  1436. rightW:
  1437. w.userid == userid || tType == 1 || tType == 4,
  1438. }"
  1439. >
  1440. {{ JSON.parse(w.score).wScore }}分
  1441. </div>
  1442. <div
  1443. class="answerScore"
  1444. @click.stop="openScore(w)"
  1445. v-else-if="courseDetail.userid == userid"
  1446. :class="{
  1447. rightW:
  1448. w.userid == userid || tType == 1 || tType == 4,
  1449. }"
  1450. >
  1451. 评分
  1452. </div>
  1453. <img
  1454. class="deleteImg"
  1455. src="../../assets/deleteworks.png"
  1456. v-if="
  1457. w.userid == userid || tType == 1 || tType == 4
  1458. "
  1459. @click.stop="deleteWorks(w.wid)"
  1460. alt
  1461. />
  1462. </div>
  1463. <div class="workImg" v-if="w.type == 3">
  1464. <img
  1465. style="cursor: pointer"
  1466. :src="video"
  1467. @click="openVideo(w)"
  1468. alt
  1469. />
  1470. <div
  1471. class="answerScore"
  1472. v-if="w.score"
  1473. @click.stop="openScore(w)"
  1474. :class="{
  1475. rightW:
  1476. w.userid == userid || tType == 1 || tType == 4,
  1477. }"
  1478. >
  1479. {{ JSON.parse(w.score).wScore }}分
  1480. </div>
  1481. <div
  1482. class="answerScore"
  1483. @click.stop="openScore(w)"
  1484. v-else-if="courseDetail.userid == userid"
  1485. :class="{
  1486. rightW:
  1487. w.userid == userid || tType == 1 || tType == 4,
  1488. }"
  1489. >
  1490. 评分
  1491. </div>
  1492. <img
  1493. class="deleteImg"
  1494. src="../../assets/deleteworks.png"
  1495. v-if="
  1496. w.userid == userid || tType == 1 || tType == 4
  1497. "
  1498. @click.stop="deleteWorks(w.wid)"
  1499. alt
  1500. />
  1501. </div>
  1502. <div class="workImg" v-if="w.type == 12">
  1503. <img
  1504. style="cursor: pointer"
  1505. :src="word2"
  1506. @click="downloadFile(w.works)"
  1507. alt
  1508. />
  1509. <div
  1510. class="answerScore"
  1511. v-if="w.score"
  1512. @click.stop="openScore(w)"
  1513. :class="{
  1514. rightW:
  1515. w.userid == userid || tType == 1 || tType == 4,
  1516. }"
  1517. >
  1518. {{ JSON.parse(w.score).wScore }}分
  1519. </div>
  1520. <div
  1521. class="answerScore"
  1522. @click.stop="openScore(w)"
  1523. v-else-if="courseDetail.userid == userid"
  1524. :class="{
  1525. rightW:
  1526. w.userid == userid || tType == 1 || tType == 4,
  1527. }"
  1528. >
  1529. 评分
  1530. </div>
  1531. <img
  1532. class="deleteImg"
  1533. src="../../assets/deleteworks.png"
  1534. v-if="
  1535. w.userid == userid || tType == 1 || tType == 4
  1536. "
  1537. @click.stop="deleteWorks(w.wid)"
  1538. alt
  1539. />
  1540. </div>
  1541. <div class="worksName">
  1542. <div>{{ w.sName }}</div>
  1543. </div>
  1544. </div>
  1545. </div>
  1546. </div>
  1547. <div
  1548. v-if="
  1549. tType &&
  1550. tType == 2 &&
  1551. !sIsOpen &&
  1552. tool.tool.indexOf(32) != -1
  1553. "
  1554. class="worksBox"
  1555. >
  1556. <div
  1557. class="zuoyeYulan"
  1558. v-if="workStudent[toolIndex].length > 0"
  1559. >
  1560. <span class="worksTitle">作业预览</span>
  1561. </div>
  1562. <div
  1563. class="worksDetailBox"
  1564. v-if="workStudent[toolIndex].length > 0"
  1565. >
  1566. <div
  1567. class="works"
  1568. style="
  1569. width: 200px;
  1570. height: 140px;
  1571. margin: 10px 10px 10px 0;
  1572. box-shadow: 0 0 6px 1px #dfdada;
  1573. "
  1574. v-for="(w, wIndex) in workStudent[toolIndex]"
  1575. :key="wIndex"
  1576. >
  1577. <div class="workImg">
  1578. <img
  1579. :src="word2"
  1580. @click="downloadFile(w.works)"
  1581. alt
  1582. />
  1583. <div
  1584. class="answerScore"
  1585. v-if="w.score"
  1586. @click.stop="openScore(w)"
  1587. :class="{
  1588. rightW:
  1589. w.userid == userid || tType == 1 || tType == 4,
  1590. }"
  1591. >
  1592. {{ JSON.parse(w.score).wScore }}分
  1593. </div>
  1594. <div
  1595. class="answerScore"
  1596. @click.stop="openScore(w)"
  1597. v-else-if="courseDetail.userid == userid"
  1598. :class="{
  1599. rightW:
  1600. w.userid == userid || tType == 1 || tType == 4,
  1601. }"
  1602. >
  1603. 评分
  1604. </div>
  1605. <img
  1606. class="deleteImg"
  1607. src="../../assets/deleteworks.png"
  1608. v-if="
  1609. w.userid == userid || tType == 1 || tType == 4
  1610. "
  1611. @click.stop="deleteWorks(w.wid)"
  1612. alt
  1613. />
  1614. </div>
  1615. <div class="worksName">
  1616. <div>{{ w.sName }}</div>
  1617. </div>
  1618. </div>
  1619. </div>
  1620. </div>
  1621. <div
  1622. v-if="
  1623. tType &&
  1624. tType == 2 &&
  1625. !sIsOpen &&
  1626. tool.tool.indexOf(57) != -1
  1627. "
  1628. class="worksBox"
  1629. >
  1630. <div
  1631. class="zuoyeYulan"
  1632. v-if="workStudent[toolIndex].length > 0"
  1633. >
  1634. <span class="worksTitle">作业预览</span>
  1635. </div>
  1636. <div
  1637. class="worksDetailBox"
  1638. v-if="workStudent[toolIndex].length > 0"
  1639. >
  1640. <div
  1641. class="works"
  1642. style="
  1643. width: 200px;
  1644. height: 140px;
  1645. margin: 10px 10px 10px 0;
  1646. box-shadow: 0 0 6px 1px #dfdada;
  1647. "
  1648. v-for="(w, wIndex) in workStudent[toolIndex]"
  1649. :key="wIndex"
  1650. >
  1651. <div class="workImg">
  1652. <img
  1653. :src="word2"
  1654. @click="downloadFile(w.works)"
  1655. v-if="w.type == 12"
  1656. alt
  1657. />
  1658. <img
  1659. :src="word2"
  1660. @click="
  1661. openCocoPi(57, toolIndex, w.userid, w.sName)
  1662. "
  1663. v-else-if="w.type == 15"
  1664. alt
  1665. />
  1666. <div
  1667. class="answerScore"
  1668. v-if="w.score"
  1669. @click.stop="openScore(w)"
  1670. :class="{
  1671. rightW:
  1672. w.userid == userid || tType == 1 || tType == 4,
  1673. }"
  1674. >
  1675. {{ JSON.parse(w.score).wScore }}分
  1676. </div>
  1677. <div
  1678. class="answerScore"
  1679. @click.stop="openScore(w)"
  1680. v-else-if="courseDetail.userid == userid"
  1681. :class="{
  1682. rightW:
  1683. w.userid == userid || tType == 1 || tType == 4,
  1684. }"
  1685. >
  1686. 评分
  1687. </div>
  1688. <img
  1689. class="deleteImg"
  1690. src="../../assets/deleteworks.png"
  1691. v-if="
  1692. w.userid == userid || tType == 1 || tType == 4
  1693. "
  1694. @click.stop="deleteWorks(w.wid)"
  1695. alt
  1696. />
  1697. </div>
  1698. <div class="worksName">
  1699. <div>{{ w.sName }}</div>
  1700. </div>
  1701. </div>
  1702. </div>
  1703. </div>
  1704. <div
  1705. v-if="
  1706. tType &&
  1707. tType == 2 &&
  1708. !sIsOpen &&
  1709. tool.tool.indexOf(4) != -1
  1710. "
  1711. class="worksBox"
  1712. >
  1713. <div
  1714. class="zuoyeYulan"
  1715. v-if="workStudent[toolIndex].length > 0"
  1716. >
  1717. <span class="worksTitle">作业预览</span>
  1718. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1719. </div>
  1720. <div
  1721. class="worksDetailBox"
  1722. v-if="workStudent[toolIndex].length > 0"
  1723. >
  1724. <div
  1725. class="isWorksName2"
  1726. v-for="(w, wIndex) in workStudent[toolIndex]"
  1727. :key="wIndex"
  1728. @click="
  1729. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1730. "
  1731. >
  1732. {{ w.sName }}
  1733. <img
  1734. class="deleteImg deleteImg2"
  1735. src="../../assets/deleteworks.png"
  1736. v-if="w.userid == userid || tType == 1 || tType == 4"
  1737. @click.stop="deleteWorks(w.wid)"
  1738. alt
  1739. />
  1740. </div>
  1741. <!-- <div
  1742. class="works"
  1743. style="
  1744. width: 200px;
  1745. height: 140px;
  1746. border-radius: 10px;
  1747. box-shadow: 0 0 6px 1px #dfdada;
  1748. overflow: hidden;
  1749. "
  1750. v-for="(w, wIndex) in workStudent[toolIndex]"
  1751. :key="wIndex"
  1752. >
  1753. <div class="workImg">
  1754. <img
  1755. src="../../assets/icon/works/noImg.png"
  1756. @click="
  1757. openTools(
  1758. 4,
  1759. toolIndex,
  1760. taskCount,
  1761. w.works,
  1762. w.sName
  1763. )
  1764. "
  1765. alt
  1766. />
  1767. </div>
  1768. <div class="worksName">
  1769. <div>{{ w.sName }}</div>
  1770. <div>{{ w.time }}</div>
  1771. </div>
  1772. </div> -->
  1773. </div>
  1774. </div>
  1775. <div
  1776. v-if="
  1777. tType &&
  1778. tType == 2 &&
  1779. !sIsOpen &&
  1780. tool.tool.indexOf(45) != -1
  1781. "
  1782. class="worksBox"
  1783. >
  1784. <div
  1785. class="zuoyeYulan"
  1786. v-if="workStudent[toolIndex].length > 0"
  1787. >
  1788. <span class="worksTitle">作业预览</span>
  1789. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1790. </div>
  1791. <div
  1792. class="worksDetailBox"
  1793. v-if="workStudent[toolIndex].length > 0"
  1794. >
  1795. <div
  1796. class="isWorksName2"
  1797. v-for="(w, wIndex) in workStudent[toolIndex]"
  1798. :key="wIndex"
  1799. @click="
  1800. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1801. "
  1802. >
  1803. {{ w.sName }}
  1804. <img
  1805. class="deleteImg deleteImg2"
  1806. src="../../assets/deleteworks.png"
  1807. v-if="w.userid == userid || tType == 1 || tType == 4"
  1808. @click.stop="deleteWorks(w.wid)"
  1809. alt
  1810. />
  1811. </div>
  1812. </div>
  1813. </div>
  1814. <div
  1815. v-if="
  1816. tType &&
  1817. tType == 2 &&
  1818. !sIsOpen &&
  1819. tool.tool.indexOf(69) != -1
  1820. "
  1821. class="worksBox"
  1822. >
  1823. <div
  1824. class="zuoyeYulan"
  1825. v-if="workStudent[toolIndex].length > 0"
  1826. >
  1827. <span class="worksTitle">作业预览</span>
  1828. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1829. </div>
  1830. <div
  1831. class="worksDetailBox"
  1832. v-if="workStudent[toolIndex].length > 0"
  1833. >
  1834. <div
  1835. class="isWorksName2"
  1836. v-for="(w, wIndex) in workStudent[toolIndex]"
  1837. :key="wIndex"
  1838. @click="
  1839. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1840. "
  1841. >
  1842. {{ w.sName }}
  1843. <img
  1844. class="deleteImg deleteImg2"
  1845. src="../../assets/deleteworks.png"
  1846. v-if="w.userid == userid || tType == 1 || tType == 4"
  1847. @click.stop="deleteWorks(w.wid)"
  1848. alt
  1849. />
  1850. </div>
  1851. </div>
  1852. </div>
  1853. <div
  1854. v-if="
  1855. tType &&
  1856. tType == 2 &&
  1857. !sIsOpen &&
  1858. tool.tool.indexOf(15) != -1
  1859. "
  1860. class="worksBox"
  1861. >
  1862. <div
  1863. class="zuoyeYulan"
  1864. v-if="workStudent[toolIndex].length > 0"
  1865. >
  1866. <span class="worksTitle">作业预览</span>
  1867. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1868. </div>
  1869. <div
  1870. class="worksDetailBox"
  1871. v-if="workStudent[toolIndex].length > 0"
  1872. >
  1873. <div
  1874. class="works"
  1875. v-for="(w, wIndex) in workStudent[toolIndex]"
  1876. :key="wIndex"
  1877. >
  1878. <div class="workImg">
  1879. <!-- <img
  1880. src="../../assets/icon/works/noImg.png"
  1881. @click="openTools(15, toolIndex, taskCount, w.works)"
  1882. alt=""
  1883. />-->
  1884. <div class="answerBg">
  1885. <!-- <div>{{ w.sName }}</div> -->
  1886. <el-tooltip
  1887. class="item"
  1888. effect="light"
  1889. :content="JSON.parse(w.works)[0].answer"
  1890. placement="top"
  1891. >
  1892. <div class="answerContent">
  1893. {{ JSON.parse(w.works)[0].answer }}
  1894. </div>
  1895. </el-tooltip>
  1896. <div
  1897. class="answerScore"
  1898. v-if="w.score"
  1899. @click.stop="openScore(w)"
  1900. :class="{
  1901. rightW:
  1902. w.userid == userid ||
  1903. tType == 1 ||
  1904. tType == 4,
  1905. }"
  1906. >
  1907. {{ JSON.parse(w.score).wScore }}分
  1908. </div>
  1909. <div
  1910. class="answerScore"
  1911. @click.stop="openScore(w)"
  1912. v-else-if="courseDetail.userid == userid"
  1913. :class="{
  1914. rightW:
  1915. w.userid == userid ||
  1916. tType == 1 ||
  1917. tType == 4,
  1918. }"
  1919. >
  1920. 评分
  1921. </div>
  1922. <img
  1923. class="deleteImg"
  1924. src="../../assets/deleteworks.png"
  1925. v-if="
  1926. w.userid == userid || tType == 1 || tType == 4
  1927. "
  1928. @click.stop="deleteWorks(w.wid)"
  1929. alt
  1930. />
  1931. </div>
  1932. <div class="comment">
  1933. <div class="worksName">
  1934. <div>{{ w.sName }}</div>
  1935. </div>
  1936. </div>
  1937. </div>
  1938. </div>
  1939. </div>
  1940. </div>
  1941. <div
  1942. v-if="
  1943. tType &&
  1944. tType == 2 &&
  1945. !sIsOpen &&
  1946. tool.tool.indexOf(1) != -1
  1947. "
  1948. class="worksBox"
  1949. >
  1950. <div
  1951. class="zuoyeYulan"
  1952. v-if="workStudent[toolIndex].length > 0"
  1953. >
  1954. <span class="worksTitle">作业预览</span>
  1955. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1956. </div>
  1957. <div
  1958. class="worksDetailBox"
  1959. v-if="workStudent[toolIndex].length > 0"
  1960. >
  1961. <div
  1962. class="works"
  1963. style="
  1964. width: 200px;
  1965. height: 140px;
  1966. margin: 10px 10px 10px 0;
  1967. box-shadow: 0 0 6px 1px #dfdada;
  1968. "
  1969. v-for="(w, wIndex) in workStudent[toolIndex]"
  1970. :key="wIndex"
  1971. >
  1972. <div class="workImg">
  1973. <img
  1974. :src="w.works"
  1975. @click="previewImg(w.works)"
  1976. alt
  1977. />
  1978. <div
  1979. class="answerScore"
  1980. v-if="w.score"
  1981. @click.stop="openScore(w)"
  1982. :class="{
  1983. rightW:
  1984. w.userid == userid || tType == 1 || tType == 4,
  1985. }"
  1986. >
  1987. {{ JSON.parse(w.score).wScore }}分
  1988. </div>
  1989. <div
  1990. class="answerScore"
  1991. @click.stop="openScore(w)"
  1992. v-else-if="courseDetail.userid == userid"
  1993. :class="{
  1994. rightW:
  1995. w.userid == userid || tType == 1 || tType == 4,
  1996. }"
  1997. >
  1998. 评分
  1999. </div>
  2000. <img
  2001. class="deleteImg"
  2002. src="../../assets/deleteworks.png"
  2003. v-if="
  2004. w.userid == userid || tType == 1 || tType == 4
  2005. "
  2006. @click.stop="deleteWorks(w.wid)"
  2007. alt
  2008. />
  2009. </div>
  2010. <div class="worksName">
  2011. <div>{{ w.sName }}</div>
  2012. </div>
  2013. </div>
  2014. </div>
  2015. </div>
  2016. <div
  2017. v-if="
  2018. tType &&
  2019. tType == 2 &&
  2020. !sIsOpen &&
  2021. tool.tool.indexOf(3) != -1
  2022. "
  2023. class="worksBox"
  2024. >
  2025. <div
  2026. class="zuoyeYulan"
  2027. v-if="workStudent[toolIndex].length > 0"
  2028. >
  2029. <span class="worksTitle">作业预览</span>
  2030. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2031. </div>
  2032. <div
  2033. class="worksDetailBox"
  2034. v-if="workStudent[toolIndex].length > 0"
  2035. >
  2036. <div
  2037. class="works"
  2038. style="
  2039. width: 200px;
  2040. height: 140px;
  2041. margin: 10px 10px 10px 0;
  2042. box-shadow: 0 0 6px 1px #dfdada;
  2043. "
  2044. v-for="(w, wIndex) in workStudent[toolIndex]"
  2045. :key="wIndex"
  2046. >
  2047. <div class="workImg">
  2048. <img
  2049. :src="w.works"
  2050. @click="previewImg(w.works)"
  2051. alt
  2052. />
  2053. <div
  2054. class="answerScore"
  2055. v-if="w.score"
  2056. @click.stop="openScore(w)"
  2057. :class="{
  2058. rightW:
  2059. w.userid == userid || tType == 1 || tType == 4,
  2060. }"
  2061. >
  2062. {{ JSON.parse(w.score).wScore }}分
  2063. </div>
  2064. <div
  2065. class="answerScore"
  2066. @click.stop="openScore(w)"
  2067. v-else-if="courseDetail.userid == userid"
  2068. :class="{
  2069. rightW:
  2070. w.userid == userid || tType == 1 || tType == 4,
  2071. }"
  2072. >
  2073. 评分
  2074. </div>
  2075. <img
  2076. class="deleteImg"
  2077. src="../../assets/deleteworks.png"
  2078. v-if="
  2079. w.userid == userid || tType == 1 || tType == 4
  2080. "
  2081. @click.stop="deleteWorks(w.wid)"
  2082. alt
  2083. />
  2084. </div>
  2085. <div class="worksName">
  2086. <div>{{ w.sName }}</div>
  2087. </div>
  2088. </div>
  2089. </div>
  2090. </div>
  2091. <div
  2092. v-if="
  2093. tType &&
  2094. tType == 2 &&
  2095. !sIsOpen &&
  2096. tool.tool.indexOf(6) != -1
  2097. "
  2098. class="worksBox"
  2099. >
  2100. <div
  2101. class="zuoyeYulan"
  2102. v-if="workStudent[toolIndex].length > 0"
  2103. >
  2104. <span class="worksTitle">作业预览</span>
  2105. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2106. </div>
  2107. <div
  2108. class="worksDetailBox"
  2109. v-if="workStudent[toolIndex].length > 0"
  2110. >
  2111. <div
  2112. class="works"
  2113. style="
  2114. width: 200px;
  2115. height: 140px;
  2116. margin: 10px 10px 10px 0;
  2117. box-shadow: 0 0 6px 1px #dfdada;
  2118. "
  2119. v-for="(w, wIndex) in workStudent[toolIndex]"
  2120. :key="wIndex"
  2121. >
  2122. <div class="workImg">
  2123. <img
  2124. :src="w.works"
  2125. @click="previewImg(w.works)"
  2126. alt
  2127. />
  2128. <div
  2129. class="answerScore"
  2130. v-if="w.score"
  2131. @click.stop="openScore(w)"
  2132. :class="{
  2133. rightW:
  2134. w.userid == userid || tType == 1 || tType == 4,
  2135. }"
  2136. >
  2137. {{ JSON.parse(w.score).wScore }}分
  2138. </div>
  2139. <div
  2140. class="answerScore"
  2141. @click.stop="openScore(w)"
  2142. v-else-if="courseDetail.userid == userid"
  2143. :class="{
  2144. rightW:
  2145. w.userid == userid || tType == 1 || tType == 4,
  2146. }"
  2147. >
  2148. 评分
  2149. </div>
  2150. <img
  2151. class="deleteImg"
  2152. src="../../assets/deleteworks.png"
  2153. v-if="
  2154. w.userid == userid || tType == 1 || tType == 4
  2155. "
  2156. @click.stop="deleteWorks(w.wid)"
  2157. alt
  2158. />
  2159. </div>
  2160. <div class="worksName">
  2161. <div>{{ w.sName }}</div>
  2162. </div>
  2163. </div>
  2164. </div>
  2165. </div>
  2166. <div
  2167. v-if="
  2168. tType &&
  2169. tType == 2 &&
  2170. !sIsOpen &&
  2171. tool.tool.indexOf(7) != -1
  2172. "
  2173. class="worksBox"
  2174. >
  2175. <div
  2176. class="zuoyeYulan"
  2177. v-if="workStudent[toolIndex].length > 0"
  2178. >
  2179. <span class="worksTitle">作业预览</span>
  2180. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2181. </div>
  2182. <div
  2183. class="worksDetailBox"
  2184. v-if="workStudent[toolIndex].length > 0"
  2185. >
  2186. <div
  2187. class="works"
  2188. style="
  2189. width: 200px;
  2190. height: 140px;
  2191. margin: 10px 10px 10px 0;
  2192. box-shadow: 0 0 6px 1px #dfdada;
  2193. "
  2194. v-for="(w, wIndex) in workStudent[toolIndex]"
  2195. :key="wIndex"
  2196. >
  2197. <div class="workImg">
  2198. <img
  2199. :src="w.works"
  2200. @click="previewImg(w.works)"
  2201. alt
  2202. />
  2203. <div
  2204. class="answerScore"
  2205. v-if="w.score"
  2206. @click.stop="openScore(w)"
  2207. :class="{
  2208. rightW:
  2209. w.userid == userid || tType == 1 || tType == 4,
  2210. }"
  2211. >
  2212. {{ JSON.parse(w.score).wScore }}分
  2213. </div>
  2214. <div
  2215. class="answerScore"
  2216. @click.stop="openScore(w)"
  2217. v-else-if="courseDetail.userid == userid"
  2218. :class="{
  2219. rightW:
  2220. w.userid == userid || tType == 1 || tType == 4,
  2221. }"
  2222. >
  2223. 评分
  2224. </div>
  2225. <img
  2226. class="deleteImg"
  2227. src="../../assets/deleteworks.png"
  2228. v-if="
  2229. w.userid == userid || tType == 1 || tType == 4
  2230. "
  2231. @click.stop="deleteWorks(w.wid)"
  2232. alt
  2233. />
  2234. </div>
  2235. <div class="worksName">
  2236. <div>{{ w.sName }}</div>
  2237. </div>
  2238. </div>
  2239. </div>
  2240. </div>
  2241. <div
  2242. v-if="
  2243. tType &&
  2244. tType == 2 &&
  2245. !sIsOpen &&
  2246. tool.tool.indexOf(26) != -1
  2247. "
  2248. class="worksBox"
  2249. >
  2250. <div
  2251. class="zuoyeYulan"
  2252. v-if="workStudent[toolIndex].length > 0"
  2253. >
  2254. <span class="worksTitle">作业预览</span>
  2255. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2256. </div>
  2257. <div
  2258. class="worksDetailBox"
  2259. v-if="workStudent[toolIndex].length > 0"
  2260. >
  2261. <div
  2262. class="works"
  2263. style="
  2264. width: 200px;
  2265. height: 140px;
  2266. margin: 10px 10px 10px 0;
  2267. box-shadow: 0 0 6px 1px #dfdada;
  2268. "
  2269. v-for="(w, wIndex) in workStudent[toolIndex]"
  2270. :key="wIndex"
  2271. >
  2272. <div class="workImg">
  2273. <img
  2274. :src="w.works"
  2275. @click="previewImg(w.works)"
  2276. alt
  2277. />
  2278. <img
  2279. class="deleteImg"
  2280. src="../../assets/deleteworks.png"
  2281. v-if="
  2282. w.userid == userid || tType == 1 || tType == 4
  2283. "
  2284. @click.stop="deleteWorks(w.wid)"
  2285. alt
  2286. />
  2287. </div>
  2288. <div class="worksName">
  2289. <div>{{ w.sName }}</div>
  2290. </div>
  2291. </div>
  2292. </div>
  2293. </div>
  2294. <div
  2295. v-if="
  2296. tType &&
  2297. ((tType == 2 && sIsOpen == true) ||
  2298. tType == 1 ||
  2299. tType == 4) &&
  2300. tool.tool.indexOf(16) != -1
  2301. "
  2302. class="worksBox"
  2303. >
  2304. <div
  2305. class="zuoyeYulan"
  2306. v-if="
  2307. worksStudent.length &&
  2308. worksStudent[toolIndex].length > 0
  2309. "
  2310. >
  2311. <div class="worksTop">
  2312. <div>作业预览</div>
  2313. <div
  2314. class="corOpen"
  2315. @click="contract(toolIndex)"
  2316. v-if="
  2317. worksStudent[toolIndex].length > 6 &&
  2318. isCloseList[toolIndex].isClose == 0
  2319. "
  2320. >
  2321. 折叠
  2322. </div>
  2323. <div
  2324. class="corOpen"
  2325. @click="contract(toolIndex)"
  2326. v-if="isCloseList[toolIndex].isClose == 1"
  2327. >
  2328. 展开
  2329. </div>
  2330. </div>
  2331. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2332. </div>
  2333. <div
  2334. class="group_workBox"
  2335. v-for="(g, gindex) in courseGroup.group"
  2336. :key="gindex"
  2337. >
  2338. <div class="group_box">
  2339. <div class="group_title">
  2340. <el-tooltip
  2341. class="item"
  2342. effect="light"
  2343. :content="g.name"
  2344. placement="top"
  2345. >
  2346. <div class="group_name">{{ g.name }}</div>
  2347. </el-tooltip>
  2348. </div>
  2349. <div
  2350. class="group_work"
  2351. v-if="
  2352. g.works &&
  2353. g.works.length &&
  2354. g.works[toolIndex].length
  2355. "
  2356. >
  2357. <div
  2358. class="works"
  2359. style="
  2360. width: 200px;
  2361. height: 140px;
  2362. margin: 10px 10px 10px 0;
  2363. border-radius: 15px;
  2364. box-shadow: 0 0 6px 1px #dfdada;
  2365. "
  2366. v-for="(w, wIndex) in g.works[toolIndex]"
  2367. :key="wIndex"
  2368. :class="w.type == 1 ? 'isTypeOne' : ''"
  2369. >
  2370. <div class="workImg" v-if="w.type == 0">
  2371. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2372. <img
  2373. :src="w.works"
  2374. @click="previewImg(w.works)"
  2375. alt
  2376. />
  2377. <div
  2378. class="answerScore"
  2379. v-if="w.score"
  2380. @click.stop="openScore(w)"
  2381. :class="{
  2382. rightW:
  2383. w.userid == userid ||
  2384. tType == 1 ||
  2385. tType == 4 ||
  2386. w.ateacher == userid,
  2387. }"
  2388. >
  2389. {{ JSON.parse(w.score).wScore }}分
  2390. </div>
  2391. <div
  2392. class="answerScore"
  2393. @click.stop="openScore(w)"
  2394. v-else-if="courseDetail.userid == userid"
  2395. :class="{
  2396. rightW:
  2397. w.userid == userid ||
  2398. tType == 1 ||
  2399. tType == 4 ||
  2400. w.ateacher == userid,
  2401. }"
  2402. >
  2403. 评分
  2404. </div>
  2405. <img
  2406. class="deleteImg"
  2407. src="../../assets/deleteworks.png"
  2408. v-if="
  2409. w.userid == userid || tType == 1 || tType == 4
  2410. "
  2411. @click.stop="deleteWorks(w.wid)"
  2412. alt
  2413. />
  2414. </div>
  2415. <div class="workImg" v-if="w.type == 1">
  2416. <img :src="word" @click="openFile(w.works)" alt />
  2417. <!-- @click="openFile(w.works)" -->
  2418. <div
  2419. class="answerScore"
  2420. v-if="w.score"
  2421. @click.stop="openScore(w)"
  2422. :class="{
  2423. rightW:
  2424. w.userid == userid ||
  2425. tType == 1 ||
  2426. tType == 4 ||
  2427. w.ateacher == userid,
  2428. }"
  2429. >
  2430. {{ JSON.parse(w.score).wScore }}分
  2431. </div>
  2432. <div
  2433. class="answerScore"
  2434. @click.stop="openScore(w)"
  2435. v-else-if="courseDetail.userid == userid"
  2436. :class="{
  2437. rightW:
  2438. w.userid == userid ||
  2439. tType == 1 ||
  2440. tType == 4 ||
  2441. w.ateacher == userid,
  2442. }"
  2443. >
  2444. 评分
  2445. </div>
  2446. <img
  2447. class="deleteImg"
  2448. src="../../assets/deleteworks.png"
  2449. v-if="
  2450. w.userid == userid || tType == 1 || tType == 4
  2451. "
  2452. @click.stop="deleteWorks(w.wid)"
  2453. alt
  2454. />
  2455. </div>
  2456. <div class="workImg" v-if="w.type == 3">
  2457. <img
  2458. style="cursor: pointer"
  2459. :src="video"
  2460. @click="openVideo(w)"
  2461. alt
  2462. />
  2463. <!-- @click="openVideo(w.works)" -->
  2464. <div
  2465. class="answerScore"
  2466. v-if="w.score"
  2467. @click.stop="openScore(w)"
  2468. :class="{
  2469. rightW:
  2470. w.userid == userid ||
  2471. tType == 1 ||
  2472. tType == 4 ||
  2473. w.ateacher == userid,
  2474. }"
  2475. >
  2476. {{ JSON.parse(w.score).wScore }}分
  2477. </div>
  2478. <div
  2479. class="answerScore"
  2480. @click.stop="openScore(w)"
  2481. v-else-if="courseDetail.userid == userid"
  2482. :class="{
  2483. rightW:
  2484. w.userid == userid ||
  2485. tType == 1 ||
  2486. tType == 4 ||
  2487. w.ateacher == userid,
  2488. }"
  2489. >
  2490. 评分
  2491. </div>
  2492. <img
  2493. class="deleteImg"
  2494. src="../../assets/deleteworks.png"
  2495. v-if="
  2496. w.userid == userid || tType == 1 || tType == 4
  2497. "
  2498. @click.stop="deleteWorks(w.wid)"
  2499. alt
  2500. />
  2501. </div>
  2502. <div class="workImg" v-if="w.type == 12">
  2503. <img
  2504. style="cursor: pointer"
  2505. :src="word2"
  2506. @click="downloadFile(w.works)"
  2507. alt
  2508. />
  2509. <!-- @click="openVideo(w.works)" -->
  2510. <div
  2511. class="answerScore"
  2512. v-if="w.score"
  2513. @click.stop="openScore(w)"
  2514. :class="{
  2515. rightW:
  2516. w.userid == userid ||
  2517. tType == 1 ||
  2518. tType == 4 ||
  2519. w.ateacher == userid,
  2520. }"
  2521. >
  2522. {{ JSON.parse(w.score).wScore }}分
  2523. </div>
  2524. <div
  2525. class="answerScore"
  2526. @click.stop="openScore(w)"
  2527. v-else-if="courseDetail.userid == userid"
  2528. :class="{
  2529. rightW:
  2530. w.userid == userid ||
  2531. tType == 1 ||
  2532. tType == 4 ||
  2533. w.ateacher == userid,
  2534. }"
  2535. >
  2536. 评分
  2537. </div>
  2538. <img
  2539. class="deleteImg"
  2540. src="../../assets/deleteworks.png"
  2541. v-if="
  2542. w.userid == userid || tType == 1 || tType == 4
  2543. "
  2544. @click.stop="deleteWorks(w.wid)"
  2545. alt
  2546. />
  2547. </div>
  2548. <div class="comment" style="min-width: 200px">
  2549. <div class="worksName">
  2550. <div>{{ w.sName }}</div>
  2551. </div>
  2552. <div class="commentList">
  2553. <div class="commentList">
  2554. <div
  2555. class="commentImg"
  2556. @click="
  2557. isLikes(w.wid, userid, 1, null, w.isLikes)
  2558. "
  2559. >
  2560. <img
  2561. :src="w.isLikes == true ? likes : noLikes"
  2562. alt=""
  2563. />
  2564. </div>
  2565. <div>{{ w.likesCount }}</div>
  2566. </div>
  2567. <div
  2568. class="commentList"
  2569. style="margin-right: 15px"
  2570. >
  2571. <div
  2572. class="commentImg"
  2573. @click="
  2574. commentOther(
  2575. w,
  2576. toolIndex,
  2577. wIndex,
  2578. null,
  2579. g.id
  2580. )
  2581. "
  2582. >
  2583. <img
  2584. src="../../assets/icon/comment/comment.png"
  2585. alt=""
  2586. />
  2587. </div>
  2588. <div>{{ w.commentCount }}</div>
  2589. </div>
  2590. </div>
  2591. </div>
  2592. </div>
  2593. </div>
  2594. <div class="group_work" v-else>暂无提交作业</div>
  2595. </div>
  2596. </div>
  2597. <div
  2598. class="worksDetailBox"
  2599. v-if="
  2600. worksStudent.length &&
  2601. worksStudent[toolIndex].length > 0
  2602. "
  2603. >
  2604. <div
  2605. class="works"
  2606. style="
  2607. width: 200px;
  2608. height: 140px;
  2609. margin: 10px 10px 10px 0;
  2610. border-radius: 15px;
  2611. box-shadow: 0 0 6px 1px #dfdada;
  2612. "
  2613. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2614. 0
  2615. ? worksStudent[toolIndex]
  2616. : worksStudent[toolIndex].slice(0, 6)"
  2617. :key="wIndex"
  2618. :class="w.type == 1 ? 'isTypeOne' : ''"
  2619. >
  2620. <div class="workImg" v-if="w.type == 0">
  2621. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2622. <img
  2623. :src="w.works"
  2624. @click="previewImg(w.works)"
  2625. alt
  2626. />
  2627. <div
  2628. class="answerScore"
  2629. v-if="w.score"
  2630. @click.stop="openScore(w)"
  2631. :class="{
  2632. rightW:
  2633. w.userid == userid ||
  2634. tType == 1 ||
  2635. tType == 4 ||
  2636. w.ateacher == userid,
  2637. }"
  2638. >
  2639. {{ JSON.parse(w.score).wScore }}分
  2640. </div>
  2641. <div
  2642. class="answerScore"
  2643. @click.stop="openScore(w)"
  2644. v-else-if="courseDetail.userid == userid"
  2645. :class="{
  2646. rightW:
  2647. w.userid == userid ||
  2648. tType == 1 ||
  2649. tType == 4 ||
  2650. w.ateacher == userid,
  2651. }"
  2652. >
  2653. 评分
  2654. </div>
  2655. <img
  2656. class="deleteImg"
  2657. src="../../assets/deleteworks.png"
  2658. v-if="
  2659. w.userid == userid || tType == 1 || tType == 4
  2660. "
  2661. @click.stop="deleteWorks(w.wid)"
  2662. alt
  2663. />
  2664. </div>
  2665. <div class="workImg" v-if="w.type == 1">
  2666. <img :src="word" @click="openFile(w.works)" alt />
  2667. <!-- @click="openFile(w.works)" -->
  2668. <div
  2669. class="answerScore"
  2670. v-if="w.score"
  2671. @click.stop="openScore(w)"
  2672. :class="{
  2673. rightW:
  2674. w.userid == userid ||
  2675. tType == 1 ||
  2676. tType == 4 ||
  2677. w.ateacher == userid,
  2678. }"
  2679. >
  2680. {{ JSON.parse(w.score).wScore }}分
  2681. </div>
  2682. <div
  2683. class="answerScore"
  2684. @click.stop="openScore(w)"
  2685. v-else-if="courseDetail.userid == userid"
  2686. :class="{
  2687. rightW:
  2688. w.userid == userid ||
  2689. tType == 1 ||
  2690. tType == 4 ||
  2691. w.ateacher == userid,
  2692. }"
  2693. >
  2694. 评分
  2695. </div>
  2696. <img
  2697. class="deleteImg"
  2698. src="../../assets/deleteworks.png"
  2699. v-if="
  2700. w.userid == userid || tType == 1 || tType == 4
  2701. "
  2702. @click.stop="deleteWorks(w.wid)"
  2703. alt
  2704. />
  2705. </div>
  2706. <div class="workImg" v-if="w.type == 3">
  2707. <img
  2708. style="cursor: pointer"
  2709. :src="video"
  2710. @click="openVideo(w)"
  2711. alt
  2712. />
  2713. <!-- @click="openVideo(w.works)" -->
  2714. <div
  2715. class="answerScore"
  2716. v-if="w.score"
  2717. @click.stop="openScore(w)"
  2718. :class="{
  2719. rightW:
  2720. w.userid == userid ||
  2721. tType == 1 ||
  2722. tType == 4 ||
  2723. w.ateacher == userid,
  2724. }"
  2725. >
  2726. {{ JSON.parse(w.score).wScore }}分
  2727. </div>
  2728. <div
  2729. class="answerScore"
  2730. @click.stop="openScore(w)"
  2731. v-else-if="courseDetail.userid == userid"
  2732. :class="{
  2733. rightW:
  2734. w.userid == userid ||
  2735. tType == 1 ||
  2736. tType == 4 ||
  2737. w.ateacher == userid,
  2738. }"
  2739. >
  2740. 评分
  2741. </div>
  2742. <img
  2743. class="deleteImg"
  2744. src="../../assets/deleteworks.png"
  2745. v-if="
  2746. w.userid == userid || tType == 1 || tType == 4
  2747. "
  2748. @click.stop="deleteWorks(w.wid)"
  2749. alt
  2750. />
  2751. </div>
  2752. <div class="workImg" v-if="w.type == 12">
  2753. <img
  2754. style="cursor: pointer"
  2755. :src="word2"
  2756. @click="downloadFile(w.works)"
  2757. alt
  2758. />
  2759. <!-- @click="openVideo(w.works)" -->
  2760. <div
  2761. class="answerScore"
  2762. v-if="w.score"
  2763. @click.stop="openScore(w)"
  2764. :class="{
  2765. rightW:
  2766. w.userid == userid ||
  2767. tType == 1 ||
  2768. tType == 4 ||
  2769. w.ateacher == userid,
  2770. }"
  2771. >
  2772. {{ JSON.parse(w.score).wScore }}分
  2773. </div>
  2774. <div
  2775. class="answerScore"
  2776. @click.stop="openScore(w)"
  2777. v-else-if="courseDetail.userid == userid"
  2778. :class="{
  2779. rightW:
  2780. w.userid == userid ||
  2781. tType == 1 ||
  2782. tType == 4 ||
  2783. w.ateacher == userid,
  2784. }"
  2785. >
  2786. 评分
  2787. </div>
  2788. <img
  2789. class="deleteImg"
  2790. src="../../assets/deleteworks.png"
  2791. v-if="
  2792. w.userid == userid || tType == 1 || tType == 4
  2793. "
  2794. @click.stop="deleteWorks(w.wid)"
  2795. alt
  2796. />
  2797. </div>
  2798. <div class="comment" style="min-width: 200px">
  2799. <div class="worksName">
  2800. <div>{{ w.sName }}</div>
  2801. </div>
  2802. <div class="commentList">
  2803. <div class="commentList">
  2804. <div
  2805. class="commentImg"
  2806. @click="
  2807. isLikes(w.wid, userid, 1, null, w.isLikes)
  2808. "
  2809. >
  2810. <img
  2811. :src="w.isLikes == true ? likes : noLikes"
  2812. alt=""
  2813. />
  2814. </div>
  2815. <div>{{ w.likesCount }}</div>
  2816. </div>
  2817. <div class="commentList" style="margin-right: 15px">
  2818. <div
  2819. class="commentImg"
  2820. @click="commentOther(w, toolIndex, wIndex)"
  2821. >
  2822. <img
  2823. src="../../assets/icon/comment/comment.png"
  2824. alt=""
  2825. />
  2826. </div>
  2827. <div>{{ w.commentCount }}</div>
  2828. </div>
  2829. </div>
  2830. </div>
  2831. </div>
  2832. </div>
  2833. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2834. 未提交
  2835. </div>
  2836. <div
  2837. class="noWorksS"
  2838. v-if="noWorksS && noWorksS[toolIndex].length"
  2839. >
  2840. <div
  2841. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2842. :key="sIndex"
  2843. class="noWorksName"
  2844. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2845. >
  2846. {{ s.student }}
  2847. </div>
  2848. </div>
  2849. </div>
  2850. <div
  2851. v-if="
  2852. tType &&
  2853. ((tType == 2 && sIsOpen == true) ||
  2854. tType == 1 ||
  2855. tType == 4) &&
  2856. tool.tool.indexOf(32) != -1
  2857. "
  2858. class="worksBox"
  2859. >
  2860. <div
  2861. class="zuoyeYulan"
  2862. v-if="
  2863. worksStudent.length &&
  2864. worksStudent[toolIndex].length > 0
  2865. "
  2866. >
  2867. <div class="worksTop">
  2868. <div>作业预览</div>
  2869. <div
  2870. class="corOpen"
  2871. @click="contract(toolIndex)"
  2872. v-if="
  2873. worksStudent[toolIndex].length > 6 &&
  2874. isCloseList[toolIndex].isClose == 0
  2875. "
  2876. >
  2877. 折叠
  2878. </div>
  2879. <div
  2880. class="corOpen"
  2881. @click="contract(toolIndex)"
  2882. v-if="isCloseList[toolIndex].isClose == 1"
  2883. >
  2884. 展开
  2885. </div>
  2886. </div>
  2887. </div>
  2888. <div
  2889. class="worksDetailBox"
  2890. v-if="
  2891. worksStudent.length &&
  2892. worksStudent[toolIndex].length > 0
  2893. "
  2894. >
  2895. <div
  2896. class="works"
  2897. style="
  2898. width: 200px;
  2899. height: 140px;
  2900. margin: 10px 10px 10px 0;
  2901. border-radius: 15px;
  2902. box-shadow: 0 0 6px 1px #dfdada;
  2903. "
  2904. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2905. 0
  2906. ? worksStudent[toolIndex]
  2907. : worksStudent[toolIndex].slice(0, 6)"
  2908. :key="wIndex"
  2909. :class="w.type == 1 ? 'isTypeOne' : ''"
  2910. >
  2911. <div class="workImg">
  2912. <img
  2913. :src="word2"
  2914. @click="downloadFile(w.works)"
  2915. alt
  2916. />
  2917. <div
  2918. class="answerScore"
  2919. v-if="w.score"
  2920. @click.stop="openScore(w)"
  2921. :class="{
  2922. rightW:
  2923. w.userid == userid ||
  2924. tType == 1 ||
  2925. tType == 4 ||
  2926. w.ateacher == userid,
  2927. }"
  2928. >
  2929. {{ JSON.parse(w.score).wScore }}分
  2930. </div>
  2931. <div
  2932. class="answerScore"
  2933. @click.stop="openScore(w)"
  2934. v-else-if="courseDetail.userid == userid"
  2935. :class="{
  2936. rightW:
  2937. w.userid == userid ||
  2938. tType == 1 ||
  2939. tType == 4 ||
  2940. w.ateacher == userid,
  2941. }"
  2942. >
  2943. 评分
  2944. </div>
  2945. <img
  2946. class="deleteImg"
  2947. src="../../assets/deleteworks.png"
  2948. v-if="
  2949. w.userid == userid || tType == 1 || tType == 4
  2950. "
  2951. @click.stop="deleteWorks(w.wid)"
  2952. alt
  2953. />
  2954. </div>
  2955. <div class="comment" style="min-width: 200px">
  2956. <div class="worksName">
  2957. <div>{{ w.sName }}</div>
  2958. </div>
  2959. <div class="commentList">
  2960. <div class="commentList">
  2961. <div
  2962. class="commentImg"
  2963. @click="
  2964. isLikes(w.wid, userid, 1, null, w.isLikes)
  2965. "
  2966. >
  2967. <img
  2968. :src="w.isLikes == true ? likes : noLikes"
  2969. alt=""
  2970. />
  2971. </div>
  2972. <div>{{ w.likesCount }}</div>
  2973. </div>
  2974. <div class="commentList" style="margin-right: 15px">
  2975. <div
  2976. class="commentImg"
  2977. @click="commentOther(w, toolIndex, wIndex)"
  2978. >
  2979. <img
  2980. src="../../assets/icon/comment/comment.png"
  2981. alt=""
  2982. />
  2983. </div>
  2984. <div>{{ w.commentCount }}</div>
  2985. </div>
  2986. </div>
  2987. </div>
  2988. </div>
  2989. </div>
  2990. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2991. 未提交
  2992. </div>
  2993. <div
  2994. class="noWorksS"
  2995. v-if="noWorksS && noWorksS[toolIndex].length"
  2996. >
  2997. <div
  2998. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2999. :key="sIndex"
  3000. class="noWorksName"
  3001. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3002. >
  3003. {{ s.student }}
  3004. </div>
  3005. </div>
  3006. </div>
  3007. <div
  3008. v-if="
  3009. tType &&
  3010. ((tType == 2 && sIsOpen == true) ||
  3011. tType == 1 ||
  3012. tType == 4) &&
  3013. tool.tool.indexOf(57) != -1
  3014. "
  3015. class="worksBox"
  3016. >
  3017. <div
  3018. class="zuoyeYulan"
  3019. v-if="
  3020. worksStudent.length &&
  3021. worksStudent[toolIndex].length > 0
  3022. "
  3023. >
  3024. <div class="worksTop">
  3025. <div>作业预览</div>
  3026. <div
  3027. class="corOpen"
  3028. @click="contract(toolIndex)"
  3029. v-if="
  3030. worksStudent[toolIndex].length > 6 &&
  3031. isCloseList[toolIndex].isClose == 0
  3032. "
  3033. >
  3034. 折叠
  3035. </div>
  3036. <div
  3037. class="corOpen"
  3038. @click="contract(toolIndex)"
  3039. v-if="isCloseList[toolIndex].isClose == 1"
  3040. >
  3041. 展开
  3042. </div>
  3043. </div>
  3044. </div>
  3045. <div
  3046. class="worksDetailBox"
  3047. v-if="
  3048. worksStudent.length &&
  3049. worksStudent[toolIndex].length > 0
  3050. "
  3051. >
  3052. <div
  3053. class="works"
  3054. style="
  3055. width: 200px;
  3056. height: 140px;
  3057. margin: 10px 10px 10px 0;
  3058. border-radius: 15px;
  3059. box-shadow: 0 0 6px 1px #dfdada;
  3060. "
  3061. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3062. 0
  3063. ? worksStudent[toolIndex]
  3064. : worksStudent[toolIndex].slice(0, 6)"
  3065. :key="wIndex"
  3066. :class="w.type == 1 ? 'isTypeOne' : ''"
  3067. >
  3068. <div class="workImg">
  3069. <img
  3070. :src="word2"
  3071. @click="downloadFile(w.works)"
  3072. v-if="w.type == 12"
  3073. alt
  3074. />
  3075. <img
  3076. :src="word2"
  3077. @click="
  3078. openCocoPi(57, toolIndex, w.userid, w.sName)
  3079. "
  3080. v-else-if="w.type == 15"
  3081. alt
  3082. />
  3083. <div
  3084. class="answerScore"
  3085. v-if="w.score"
  3086. @click.stop="openScore(w)"
  3087. :class="{
  3088. rightW:
  3089. w.userid == userid ||
  3090. tType == 1 ||
  3091. tType == 4 ||
  3092. w.ateacher == userid,
  3093. }"
  3094. >
  3095. {{ JSON.parse(w.score).wScore }}分
  3096. </div>
  3097. <div
  3098. class="answerScore"
  3099. @click.stop="openScore(w)"
  3100. v-else-if="courseDetail.userid == userid"
  3101. :class="{
  3102. rightW:
  3103. w.userid == userid ||
  3104. tType == 1 ||
  3105. tType == 4 ||
  3106. w.ateacher == userid,
  3107. }"
  3108. >
  3109. 评分
  3110. </div>
  3111. <img
  3112. class="deleteImg"
  3113. src="../../assets/deleteworks.png"
  3114. v-if="
  3115. w.userid == userid || tType == 1 || tType == 4
  3116. "
  3117. @click.stop="deleteWorks(w.wid)"
  3118. alt
  3119. />
  3120. </div>
  3121. <div class="comment" style="min-width: 200px">
  3122. <div class="worksName">
  3123. <div>{{ w.sName }}</div>
  3124. </div>
  3125. <div class="commentList">
  3126. <div class="commentList">
  3127. <div
  3128. class="commentImg"
  3129. @click="
  3130. isLikes(w.wid, userid, 1, null, w.isLikes)
  3131. "
  3132. >
  3133. <img
  3134. :src="w.isLikes == true ? likes : noLikes"
  3135. alt=""
  3136. />
  3137. </div>
  3138. <div>{{ w.likesCount }}</div>
  3139. </div>
  3140. <div class="commentList" style="margin-right: 15px">
  3141. <div
  3142. class="commentImg"
  3143. @click="commentOther(w, toolIndex, wIndex)"
  3144. >
  3145. <img
  3146. src="../../assets/icon/comment/comment.png"
  3147. alt=""
  3148. />
  3149. </div>
  3150. <div>{{ w.commentCount }}</div>
  3151. </div>
  3152. </div>
  3153. </div>
  3154. </div>
  3155. </div>
  3156. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3157. 未提交
  3158. </div>
  3159. <div
  3160. class="noWorksS"
  3161. v-if="noWorksS && noWorksS[toolIndex].length"
  3162. >
  3163. <div
  3164. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3165. :key="sIndex"
  3166. class="noWorksName"
  3167. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3168. >
  3169. {{ s.student }}
  3170. </div>
  3171. </div>
  3172. </div>
  3173. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3174. <div
  3175. class="zuoyeYulan"
  3176. v-if="
  3177. worksStudent.length &&
  3178. worksStudent[toolIndex].length > 0
  3179. "
  3180. >
  3181. <span class="worksTitle">作业预览</span>
  3182. <div
  3183. class="corOpen"
  3184. @click="contract(toolIndex)"
  3185. v-if="
  3186. worksStudent[toolIndex].length > 6 &&
  3187. isCloseList[toolIndex].isClose == 0
  3188. "
  3189. >
  3190. 折叠
  3191. </div>
  3192. <div
  3193. class="corOpen"
  3194. @click="contract(toolIndex)"
  3195. v-if="isCloseList[toolIndex].isClose == 1"
  3196. >
  3197. 展开
  3198. </div>
  3199. </div>
  3200. <div
  3201. class="worksDetailBox"
  3202. v-if="
  3203. worksStudent.length &&
  3204. worksStudent[toolIndex].length > 0
  3205. "
  3206. >
  3207. <div
  3208. class="works"
  3209. style="
  3210. width: 200px;
  3211. height: 140px;
  3212. margin: 10px 10px 10px 0;
  3213. border-radius: 15px;
  3214. box-shadow: 0 0 6px 1px #dfdada;
  3215. "
  3216. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3217. 0
  3218. ? worksStudent[toolIndex]
  3219. : worksStudent[toolIndex].slice(0, 6)"
  3220. :key="wIndex"
  3221. :class="w.type == 1 ? 'isTypeOne' : ''"
  3222. >
  3223. <div class="workImg" v-if="w.type == 0">
  3224. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3225. <img
  3226. :src="w.works"
  3227. @click="previewImg(w.works)"
  3228. alt
  3229. />
  3230. <div
  3231. class="answerScore"
  3232. v-if="w.score"
  3233. @click.stop="openScore(w)"
  3234. :class="{
  3235. rightW:
  3236. w.userid == userid ||
  3237. tType == 1 ||
  3238. tType == 4 ||
  3239. w.ateacher == userid,
  3240. }"
  3241. >
  3242. {{ JSON.parse(w.score).wScore }}分
  3243. </div>
  3244. <div
  3245. class="answerScore"
  3246. @click.stop="openScore(w)"
  3247. v-else-if="courseDetail.userid == userid"
  3248. :class="{
  3249. rightW:
  3250. w.userid == userid ||
  3251. tType == 1 ||
  3252. tType == 4 ||
  3253. w.ateacher == userid,
  3254. }"
  3255. >
  3256. 评分
  3257. </div>
  3258. <img
  3259. class="deleteImg"
  3260. src="../../assets/deleteworks.png"
  3261. v-if="
  3262. w.userid == userid || tType == 1 || tType == 4
  3263. "
  3264. @click.stop="deleteWorks(w.wid)"
  3265. alt
  3266. />
  3267. </div>
  3268. <div
  3269. class="workImg"
  3270. style="cursor: pointer"
  3271. v-if="w.type == 1"
  3272. >
  3273. <img :src="word" @click="openFile(w.works)" alt />
  3274. <!-- @click="openFile(w.works)" -->
  3275. <div
  3276. class="answerScore"
  3277. v-if="w.score"
  3278. @click.stop="openScore(w)"
  3279. :class="{
  3280. rightW:
  3281. w.userid == userid ||
  3282. tType == 1 ||
  3283. tType == 4 ||
  3284. w.ateacher == userid,
  3285. }"
  3286. >
  3287. {{ JSON.parse(w.score).wScore }}分
  3288. </div>
  3289. <div
  3290. class="answerScore"
  3291. @click.stop="openScore(w)"
  3292. v-else-if="courseDetail.userid == userid"
  3293. :class="{
  3294. rightW:
  3295. w.userid == userid ||
  3296. tType == 1 ||
  3297. tType == 4 ||
  3298. w.ateacher == userid,
  3299. }"
  3300. >
  3301. 评分
  3302. </div>
  3303. <img
  3304. class="deleteImg"
  3305. src="../../assets/deleteworks.png"
  3306. v-if="
  3307. w.userid == userid || tType == 1 || tType == 4
  3308. "
  3309. @click.stop="deleteWorks(w.wid)"
  3310. alt
  3311. />
  3312. </div>
  3313. <div class="workImg" v-if="w.type == 3">
  3314. <img
  3315. style="cursor: pointer"
  3316. :src="video"
  3317. @click="openVideo(w)"
  3318. alt
  3319. />
  3320. <!-- @click="openVideo(w.works)" -->
  3321. <div
  3322. class="answerScore"
  3323. v-if="w.score"
  3324. @click.stop="openScore(w)"
  3325. :class="{
  3326. rightW:
  3327. w.userid == userid ||
  3328. tType == 1 ||
  3329. tType == 4 ||
  3330. w.ateacher == userid,
  3331. }"
  3332. >
  3333. {{ JSON.parse(w.score).wScore }}分
  3334. </div>
  3335. <div
  3336. class="answerScore"
  3337. @click.stop="openScore(w)"
  3338. v-else-if="courseDetail.userid == userid"
  3339. :class="{
  3340. rightW:
  3341. w.userid == userid ||
  3342. tType == 1 ||
  3343. tType == 4 ||
  3344. w.ateacher == userid,
  3345. }"
  3346. >
  3347. 评分
  3348. </div>
  3349. <img
  3350. class="deleteImg"
  3351. src="../../assets/deleteworks.png"
  3352. v-if="
  3353. w.userid == userid || tType == 1 || tType == 4
  3354. "
  3355. @click.stop="deleteWorks(w.wid)"
  3356. alt
  3357. />
  3358. </div>
  3359. <div class="comment" style="min-width: 200px">
  3360. <div class="worksName">
  3361. <div
  3362. style="cursor: pointer"
  3363. @click="
  3364. openSname(w.sName, w.wid, toolIndex, w.userid)
  3365. "
  3366. >
  3367. {{ w.sName }}
  3368. </div>
  3369. </div>
  3370. <div class="commentList">
  3371. <div class="commentList">
  3372. <div
  3373. class="commentImg"
  3374. @click="
  3375. isLikes(w.wid, userid, 1, null, w.isLikes)
  3376. "
  3377. >
  3378. <img
  3379. :src="w.isLikes == true ? likes : noLikes"
  3380. alt=""
  3381. />
  3382. </div>
  3383. <div>{{ w.likesCount }}</div>
  3384. </div>
  3385. <div class="commentList" style="margin-right: 15px">
  3386. <div
  3387. class="commentImg"
  3388. @click="commentOther(w, toolIndex, wIndex)"
  3389. >
  3390. <img
  3391. src="../../assets/icon/comment/comment.png"
  3392. alt=""
  3393. />
  3394. </div>
  3395. <div>{{ w.commentCount }}</div>
  3396. </div>
  3397. </div>
  3398. </div>
  3399. </div>
  3400. </div>
  3401. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3402. 未提交
  3403. </div>
  3404. <div
  3405. class="noWorksS"
  3406. v-if="noWorksS && noWorksS[toolIndex].length"
  3407. >
  3408. <div
  3409. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3410. :key="sIndex"
  3411. class="noWorksName"
  3412. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3413. >
  3414. {{ s.student }}
  3415. </div>
  3416. </div>
  3417. </div>
  3418. <div
  3419. v-if="
  3420. tType &&
  3421. ((tType == 2 && sIsOpen == true) ||
  3422. tType == 1 ||
  3423. tType == 4) &&
  3424. tool.tool.indexOf(4) != -1 &&
  3425. (tool.askJson[0].answer ||
  3426. tool.askJson[0].answer === 0) &&
  3427. checkJson[toolIndex].length
  3428. "
  3429. class="xuan_right_box"
  3430. >
  3431. <div
  3432. class="tool_right_box"
  3433. v-for="(item, index) in tool.askJson"
  3434. :key="index"
  3435. >
  3436. <div>
  3437. <span
  3438. style="word-break: break-all; white-space: normal"
  3439. >{{ index + 1 + "、" + item.askstitle }}</span
  3440. >
  3441. </div>
  3442. <div class="right_box_xuan">
  3443. <span>正确率</span>
  3444. <span>{{
  3445. (checkJson[toolIndex][index].right
  3446. ? checkJson[toolIndex][index].right
  3447. : 0) + "%"
  3448. }}</span>
  3449. </div>
  3450. </div>
  3451. </div>
  3452. <div
  3453. class="xuan_right_box"
  3454. style="background: unset; padding: 0 10px"
  3455. v-if="
  3456. tType &&
  3457. ((tType == 2 && sIsOpen == true) ||
  3458. tType == 1 ||
  3459. tType == 4) &&
  3460. tool.tool.indexOf(4) != -1
  3461. "
  3462. >
  3463. <AskStatic
  3464. v-if="
  3465. worksStudent.length &&
  3466. worksStudent[toolIndex].length > 0
  3467. "
  3468. :askJSON="tool"
  3469. :checkJson="checkJson[toolIndex]"
  3470. ></AskStatic>
  3471. </div>
  3472. <div
  3473. v-if="
  3474. tType &&
  3475. ((tType == 2 && sIsOpen == true) ||
  3476. tType == 1 ||
  3477. tType == 4) &&
  3478. tool.tool.indexOf(4) != -1
  3479. "
  3480. class="worksBox"
  3481. >
  3482. <div
  3483. class="zuoyeYulan"
  3484. v-if="
  3485. worksStudent.length &&
  3486. worksStudent[toolIndex].length > 0
  3487. "
  3488. >
  3489. <div class="worksTop">
  3490. <div>作业预览</div>
  3491. <div
  3492. class="corOpen"
  3493. @click="contract(toolIndex)"
  3494. v-if="
  3495. worksStudent[toolIndex].length > 6 &&
  3496. isCloseList[toolIndex].isClose == 0
  3497. "
  3498. >
  3499. 折叠
  3500. </div>
  3501. <div
  3502. class="corOpen"
  3503. @click="contract(toolIndex)"
  3504. v-if="isCloseList[toolIndex].isClose == 1"
  3505. >
  3506. 展开
  3507. </div>
  3508. </div>
  3509. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3510. </div>
  3511. <div>
  3512. <div
  3513. class="worksDetailBox"
  3514. v-if="
  3515. worksStudent.length &&
  3516. worksStudent[toolIndex].length > 0
  3517. "
  3518. >
  3519. <div
  3520. v-for="(w, wIndex) in isCloseList[toolIndex]
  3521. .isClose == 0
  3522. ? worksStudent[toolIndex]
  3523. : worksStudent[toolIndex].slice(0, 6)"
  3524. :key="wIndex"
  3525. class="isWorksName2"
  3526. @click="
  3527. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3528. "
  3529. >
  3530. {{ w.sName }}
  3531. <img
  3532. class="deleteImg deleteImg2"
  3533. src="../../assets/deleteworks.png"
  3534. v-if="
  3535. w.userid == userid || tType == 1 || tType == 4
  3536. "
  3537. @click.stop="deleteWorks(w.wid)"
  3538. alt
  3539. />
  3540. </div>
  3541. <!-- <div class="works" style="
  3542. width: 200px;
  3543. height: 140px;
  3544. border-radius: 10px;
  3545. box-shadow: 0 0 6px 1px #dfdada;
  3546. overflow: hidden;
  3547. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3548. <div class="workImg">
  3549. <img src="../../assets/icon/works/noImg.png" @click="
  3550. openTools(
  3551. 4,
  3552. toolIndex,
  3553. taskCount,
  3554. w.works,
  3555. w.sName
  3556. )
  3557. " alt />
  3558. </div>
  3559. <div class="worksName">
  3560. <div>{{ w.sName }}</div>
  3561. <div>{{ w.time }}</div>
  3562. </div>
  3563. </div> -->
  3564. </div>
  3565. </div>
  3566. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3567. 未提交
  3568. </div>
  3569. <div
  3570. class="noWorksS"
  3571. v-if="noWorksS && noWorksS[toolIndex].length"
  3572. >
  3573. <div
  3574. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3575. :key="sIndex"
  3576. class="noWorksName"
  3577. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3578. >
  3579. {{ s.student }}
  3580. </div>
  3581. </div>
  3582. </div>
  3583. <div
  3584. v-if="
  3585. tType &&
  3586. ((tType == 2 && sIsOpen == true) ||
  3587. tType == 1 ||
  3588. tType == 4) &&
  3589. tool.tool.indexOf(45) != -1 &&
  3590. (tool.testJson.testJson[0].answer ||
  3591. tool.testJson.testJson[0].answer === 0) &&
  3592. checkJson[toolIndex].length
  3593. "
  3594. class="xuan_right_box"
  3595. >
  3596. <div
  3597. class="tool_right_box"
  3598. v-for="(item, index) in tool.testJson.testJson"
  3599. :key="index"
  3600. >
  3601. <div class="right_box_xuan" style="margin-right: 10px">
  3602. <span>正确率</span>
  3603. <span>{{
  3604. (checkJson[toolIndex][index].right
  3605. ? checkJson[toolIndex][index].right
  3606. : 0) + "%"
  3607. }}</span>
  3608. </div>
  3609. <div>
  3610. <span
  3611. style="word-break: break-all; white-space: normal"
  3612. >{{ index + 1 + "、" + item.teststitle }}</span
  3613. >
  3614. </div>
  3615. </div>
  3616. </div>
  3617. <div
  3618. class="xuan_right_box"
  3619. style="background: unset; padding: 0 10px; width: 91.5%"
  3620. v-if="
  3621. tType &&
  3622. ((tType == 2 && sIsOpen == true) ||
  3623. tType == 1 ||
  3624. tType == 4) &&
  3625. tool.tool.indexOf(45) != -1
  3626. "
  3627. >
  3628. <AskStatic2
  3629. v-if="
  3630. worksStudent.length &&
  3631. worksStudent[toolIndex].length > 0
  3632. "
  3633. :askJSON="tool"
  3634. :checkJson="checkJson[toolIndex]"
  3635. ></AskStatic2>
  3636. </div>
  3637. <div
  3638. v-if="
  3639. tType &&
  3640. ((tType == 2 && sIsOpen == true) ||
  3641. tType == 1 ||
  3642. tType == 4) &&
  3643. tool.tool.indexOf(45) != -1
  3644. "
  3645. class="worksBox"
  3646. >
  3647. <div
  3648. class="zuoyeYulan"
  3649. v-if="
  3650. worksStudent.length &&
  3651. worksStudent[toolIndex].length > 0
  3652. "
  3653. >
  3654. <div class="worksTop">
  3655. <div>作业预览</div>
  3656. <div
  3657. class="corOpen"
  3658. @click="contract(toolIndex)"
  3659. v-if="
  3660. worksStudent[toolIndex].length > 6 &&
  3661. isCloseList[toolIndex].isClose == 0
  3662. "
  3663. >
  3664. 折叠
  3665. </div>
  3666. <div
  3667. class="corOpen"
  3668. @click="contract(toolIndex)"
  3669. v-if="isCloseList[toolIndex].isClose == 1"
  3670. >
  3671. 展开
  3672. </div>
  3673. </div>
  3674. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3675. </div>
  3676. <div>
  3677. <div
  3678. class="worksDetailBox"
  3679. v-if="
  3680. worksStudent.length &&
  3681. worksStudent[toolIndex].length > 0
  3682. "
  3683. >
  3684. <div
  3685. v-for="(w, wIndex) in isCloseList[toolIndex]
  3686. .isClose == 0
  3687. ? worksStudent[toolIndex]
  3688. : worksStudent[toolIndex].slice(0, 6)"
  3689. :key="wIndex"
  3690. class="isWorksName2"
  3691. @click="
  3692. openTools(
  3693. 45,
  3694. toolIndex,
  3695. taskCount,
  3696. w.works,
  3697. w.sName
  3698. )
  3699. "
  3700. >
  3701. {{ w.sName }}
  3702. <img
  3703. class="deleteImg deleteImg2"
  3704. src="../../assets/deleteworks.png"
  3705. v-if="
  3706. w.userid == userid || tType == 1 || tType == 4
  3707. "
  3708. @click.stop="deleteWorks(w.wid)"
  3709. alt
  3710. />
  3711. </div>
  3712. </div>
  3713. </div>
  3714. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3715. 未提交
  3716. </div>
  3717. <div
  3718. class="noWorksS"
  3719. v-if="noWorksS && noWorksS[toolIndex].length"
  3720. >
  3721. <div
  3722. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3723. :key="sIndex"
  3724. class="noWorksName"
  3725. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  3726. >
  3727. {{ s.student }}
  3728. </div>
  3729. </div>
  3730. </div>
  3731. <div
  3732. v-if="
  3733. tType &&
  3734. ((tType == 2 && sIsOpen == true) ||
  3735. tType == 1 ||
  3736. tType == 4) &&
  3737. tool.tool.indexOf(69) != -1
  3738. "
  3739. class="worksBox"
  3740. >
  3741. <div
  3742. class="zuoyeYulan"
  3743. v-if="
  3744. worksStudent.length &&
  3745. worksStudent[toolIndex].length > 0
  3746. "
  3747. >
  3748. <div class="worksTop">
  3749. <div>作业预览</div>
  3750. <div
  3751. class="corOpen"
  3752. @click="contract(toolIndex)"
  3753. v-if="
  3754. worksStudent[toolIndex].length > 6 &&
  3755. isCloseList[toolIndex].isClose == 0
  3756. "
  3757. >
  3758. 折叠
  3759. </div>
  3760. <div
  3761. class="corOpen"
  3762. @click="contract(toolIndex)"
  3763. v-if="isCloseList[toolIndex].isClose == 1"
  3764. >
  3765. 展开
  3766. </div>
  3767. </div>
  3768. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3769. </div>
  3770. <div>
  3771. <div
  3772. class="worksDetailBox"
  3773. v-if="
  3774. worksStudent.length &&
  3775. worksStudent[toolIndex].length > 0
  3776. "
  3777. >
  3778. <div
  3779. v-for="(w, wIndex) in isCloseList[toolIndex]
  3780. .isClose == 0
  3781. ? worksStudent[toolIndex]
  3782. : worksStudent[toolIndex].slice(0, 6)"
  3783. :key="wIndex"
  3784. class="isWorksName2"
  3785. @click="
  3786. openTools(
  3787. 69,
  3788. toolIndex,
  3789. taskCount,
  3790. w.works,
  3791. w.sName,
  3792. w.wid
  3793. )
  3794. "
  3795. >
  3796. {{ w.sName }}
  3797. <img
  3798. class="deleteImg deleteImg2"
  3799. src="../../assets/deleteworks.png"
  3800. v-if="
  3801. w.userid == userid || tType == 1 || tType == 4
  3802. "
  3803. @click.stop="deleteWorks(w.wid)"
  3804. alt
  3805. />
  3806. </div>
  3807. </div>
  3808. </div>
  3809. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3810. 未提交
  3811. </div>
  3812. <div
  3813. class="noWorksS"
  3814. v-if="noWorksS && noWorksS[toolIndex].length"
  3815. >
  3816. <div
  3817. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3818. :key="sIndex"
  3819. class="noWorksName"
  3820. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  3821. >
  3822. {{ s.student }}
  3823. </div>
  3824. </div>
  3825. </div>
  3826. <div
  3827. v-if="
  3828. tType &&
  3829. ((tType == 2 && sIsOpen == true) ||
  3830. tType == 1 ||
  3831. tType == 4) &&
  3832. tool.tool.indexOf(15) != -1
  3833. "
  3834. class="worksBox"
  3835. >
  3836. <div
  3837. class="zuoyeYulan"
  3838. v-if="
  3839. worksStudent.length &&
  3840. worksStudent[toolIndex].length > 0
  3841. "
  3842. >
  3843. <div class="worksTop">
  3844. <div>作业预览</div>
  3845. <div
  3846. class="corOpen"
  3847. @click="contract(toolIndex)"
  3848. v-if="
  3849. worksStudent[toolIndex].length > 6 &&
  3850. isCloseList[toolIndex].isClose == 0
  3851. "
  3852. >
  3853. 折叠
  3854. </div>
  3855. <div
  3856. class="corOpen"
  3857. @click="contract(toolIndex)"
  3858. v-if="isCloseList[toolIndex].isClose == 1"
  3859. >
  3860. 展开
  3861. </div>
  3862. </div>
  3863. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3864. </div>
  3865. <div
  3866. class="group_workBox"
  3867. v-for="(g, gindex) in courseGroup.group"
  3868. :key="gindex"
  3869. >
  3870. <div class="group_box">
  3871. <div class="group_title">
  3872. <el-tooltip
  3873. class="item"
  3874. effect="light"
  3875. :content="g.name"
  3876. placement="top"
  3877. >
  3878. <div class="group_name">{{ g.name }}</div>
  3879. </el-tooltip>
  3880. </div>
  3881. <div
  3882. class="group_work"
  3883. v-if="
  3884. g.works &&
  3885. g.works.length &&
  3886. g.works[toolIndex].length
  3887. "
  3888. >
  3889. <div
  3890. class="works"
  3891. v-for="(w, wIndex) in g.works[toolIndex]"
  3892. :key="wIndex"
  3893. >
  3894. <div
  3895. class="workImg"
  3896. style="
  3897. border-radius: 15px;
  3898. box-shadow: #eee 0px 0px 5px 5px;
  3899. "
  3900. >
  3901. <div
  3902. class="answerBg"
  3903. style="border-radius: 15px 15px 0 0"
  3904. @click="
  3905. commentOther(w, toolIndex, wIndex, null, g.id)
  3906. "
  3907. >
  3908. <div class="answerContent">
  3909. {{ JSON.parse(w.works)[0].answer }}
  3910. </div>
  3911. <div
  3912. class="answerScore"
  3913. v-if="w.score"
  3914. @click.stop="openScore(w)"
  3915. :class="{
  3916. rightW:
  3917. w.userid == userid ||
  3918. tType == 1 ||
  3919. tType == 4,
  3920. }"
  3921. >
  3922. {{ JSON.parse(w.score).wScore }}分
  3923. </div>
  3924. <div
  3925. class="answerScore"
  3926. @click.stop="openScore(w)"
  3927. v-else-if="courseDetail.userid == userid"
  3928. :class="{
  3929. rightW:
  3930. w.userid == userid ||
  3931. tType == 1 ||
  3932. tType == 4,
  3933. }"
  3934. >
  3935. 评分
  3936. </div>
  3937. <img
  3938. class="deleteImg"
  3939. src="../../assets/deleteworks.png"
  3940. v-if="
  3941. w.userid == userid ||
  3942. tType == 1 ||
  3943. tType == 4
  3944. "
  3945. @click.stop="deleteWorks(w.wid)"
  3946. alt
  3947. />
  3948. </div>
  3949. <div class="comment">
  3950. <div class="worksName">
  3951. <div>{{ w.sName }}</div>
  3952. </div>
  3953. <div class="commentList">
  3954. <div
  3955. class="commentImg"
  3956. @click="
  3957. isLikes(w.wid, userid, 1, null, w.isLikes)
  3958. "
  3959. >
  3960. <img
  3961. :src="w.isLikes == true ? likes : noLikes"
  3962. alt=""
  3963. />
  3964. </div>
  3965. <div>{{ w.likesCount }}</div>
  3966. </div>
  3967. <div
  3968. class="commentList"
  3969. style="margin-right: 15px"
  3970. >
  3971. <div
  3972. class="commentImg"
  3973. @click="
  3974. commentOther(
  3975. w,
  3976. toolIndex,
  3977. wIndex,
  3978. null,
  3979. g.id
  3980. )
  3981. "
  3982. >
  3983. <img
  3984. src="../../assets/icon/comment/comment.png"
  3985. alt=""
  3986. />
  3987. </div>
  3988. <div>{{ w.commentCount }}</div>
  3989. </div>
  3990. </div>
  3991. </div>
  3992. </div>
  3993. </div>
  3994. <div class="group_work" v-else>暂无提交作业</div>
  3995. </div>
  3996. </div>
  3997. <div
  3998. class="worksDetailBox"
  3999. v-if="
  4000. worksStudent.length &&
  4001. worksStudent[toolIndex].length > 0
  4002. "
  4003. >
  4004. <div
  4005. class="works"
  4006. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4007. 0
  4008. ? worksStudent[toolIndex]
  4009. : worksStudent[toolIndex].slice(0, 6)"
  4010. :key="wIndex"
  4011. >
  4012. <div
  4013. class="workImg"
  4014. style="
  4015. border-radius: 15px;
  4016. box-shadow: #eee 0px 0px 5px 5px;
  4017. "
  4018. >
  4019. <!-- <img
  4020. src="../../assets/icon/works/noImg.png"
  4021. @click="openTools(15, toolIndex, taskCount, w.works)"
  4022. alt=""
  4023. />-->
  4024. <div
  4025. class="answerBg"
  4026. style="border-radius: 15px 15px 0 0"
  4027. @click="commentOther(w, toolIndex, wIndex)"
  4028. >
  4029. <!-- <div>{{ w.sName }}</div> -->
  4030. <div class="answerContent">
  4031. {{ JSON.parse(w.works)[0].answer }}
  4032. </div>
  4033. <div
  4034. class="answerScore"
  4035. v-if="w.score"
  4036. @click.stop="openScore(w)"
  4037. :class="{
  4038. rightW:
  4039. w.userid == userid ||
  4040. tType == 1 ||
  4041. tType == 4,
  4042. }"
  4043. >
  4044. {{ JSON.parse(w.score).wScore }}分
  4045. </div>
  4046. <div
  4047. class="answerScore"
  4048. @click.stop="openScore(w)"
  4049. v-else-if="courseDetail.userid == userid"
  4050. :class="{
  4051. rightW:
  4052. w.userid == userid ||
  4053. tType == 1 ||
  4054. tType == 4,
  4055. }"
  4056. >
  4057. 评分
  4058. </div>
  4059. <img
  4060. class="deleteImg"
  4061. src="../../assets/deleteworks.png"
  4062. v-if="
  4063. w.userid == userid || tType == 1 || tType == 4
  4064. "
  4065. @click.stop="deleteWorks(w.wid)"
  4066. alt
  4067. />
  4068. </div>
  4069. <div class="comment">
  4070. <div class="worksName">
  4071. <div>{{ w.sName }}</div>
  4072. </div>
  4073. <div class="commentList">
  4074. <div
  4075. class="commentImg"
  4076. @click="
  4077. isLikes(w.wid, userid, 1, null, w.isLikes)
  4078. "
  4079. >
  4080. <img
  4081. :src="w.isLikes == true ? likes : noLikes"
  4082. alt=""
  4083. />
  4084. </div>
  4085. <div>{{ w.likesCount }}</div>
  4086. </div>
  4087. <div class="commentList" style="margin-right: 15px">
  4088. <div
  4089. class="commentImg"
  4090. @click="commentOther(w, toolIndex, wIndex)"
  4091. >
  4092. <img
  4093. src="../../assets/icon/comment/comment.png"
  4094. alt=""
  4095. />
  4096. </div>
  4097. <div>{{ w.commentCount }}</div>
  4098. </div>
  4099. </div>
  4100. </div>
  4101. </div>
  4102. </div>
  4103. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4104. 未提交
  4105. </div>
  4106. <div
  4107. class="noWorksS"
  4108. v-if="noWorksS && noWorksS[toolIndex].length"
  4109. >
  4110. <div
  4111. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4112. :key="sIndex"
  4113. class="noWorksName"
  4114. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4115. >
  4116. {{ s.student }}
  4117. </div>
  4118. </div>
  4119. </div>
  4120. <div
  4121. v-if="
  4122. tType &&
  4123. ((tType == 2 && sIsOpen == true) ||
  4124. tType == 1 ||
  4125. tType == 4) &&
  4126. tool.tool.indexOf(1) != -1
  4127. "
  4128. class="worksBox"
  4129. >
  4130. <div
  4131. class="zuoyeYulan"
  4132. v-if="
  4133. worksStudent.length &&
  4134. worksStudent[toolIndex].length > 0
  4135. "
  4136. >
  4137. <div class="worksTop">
  4138. <div>作业预览</div>
  4139. <div
  4140. class="corOpen"
  4141. @click="contract(toolIndex)"
  4142. v-if="
  4143. worksStudent[toolIndex].length > 6 &&
  4144. isCloseList[toolIndex].isClose == 0
  4145. "
  4146. >
  4147. 折叠
  4148. </div>
  4149. <div
  4150. class="corOpen"
  4151. @click="contract(toolIndex)"
  4152. v-if="isCloseList[toolIndex].isClose == 1"
  4153. >
  4154. 展开
  4155. </div>
  4156. </div>
  4157. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4158. </div>
  4159. <div
  4160. class="group_workBox"
  4161. v-for="(g, gindex) in courseGroup.group"
  4162. :key="gindex"
  4163. >
  4164. <div class="group_box">
  4165. <div class="group_title">
  4166. <el-tooltip
  4167. class="item"
  4168. effect="light"
  4169. :content="g.name"
  4170. placement="top"
  4171. >
  4172. <div class="group_name">{{ g.name }}</div>
  4173. </el-tooltip>
  4174. </div>
  4175. <div
  4176. class="group_work"
  4177. v-if="
  4178. g.works &&
  4179. g.works.length &&
  4180. g.works[toolIndex].length
  4181. "
  4182. >
  4183. <div
  4184. class="works"
  4185. style="
  4186. width: 200px;
  4187. height: 140px;
  4188. margin: 10px 10px 10px 0;
  4189. border-radius: 15px;
  4190. box-shadow: 0 0 6px 1px #dfdada;
  4191. "
  4192. v-for="(w, wIndex) in g.works[toolIndex]"
  4193. :key="wIndex"
  4194. :class="w.type == 1 ? 'isTypeOne' : ''"
  4195. >
  4196. <div class="workImg">
  4197. <img
  4198. :src="w.works"
  4199. @click="previewImg(w.works)"
  4200. alt
  4201. />
  4202. <div
  4203. class="answerScore"
  4204. v-if="w.score"
  4205. @click.stop="openScore(w)"
  4206. :class="{
  4207. rightW:
  4208. w.userid == userid ||
  4209. tType == 1 ||
  4210. tType == 4,
  4211. }"
  4212. >
  4213. {{ JSON.parse(w.score).wScore }}分
  4214. </div>
  4215. <div
  4216. class="answerScore"
  4217. @click.stop="openScore(w)"
  4218. v-else-if="courseDetail.userid == userid"
  4219. :class="{
  4220. rightW:
  4221. w.userid == userid ||
  4222. tType == 1 ||
  4223. tType == 4,
  4224. }"
  4225. >
  4226. 评分
  4227. </div>
  4228. <img
  4229. class="deleteImg"
  4230. src="../../assets/deleteworks.png"
  4231. v-if="
  4232. w.userid == userid || tType == 1 || tType == 4
  4233. "
  4234. @click.stop="deleteWorks(w.wid)"
  4235. alt
  4236. />
  4237. </div>
  4238. <div class="comment" style="min-width: 200px">
  4239. <div class="worksName">
  4240. <div>{{ w.sName }}</div>
  4241. </div>
  4242. <div class="commentList">
  4243. <div class="commentList">
  4244. <div
  4245. class="commentImg"
  4246. @click="
  4247. isLikes(w.wid, userid, 1, null, w.isLikes)
  4248. "
  4249. >
  4250. <img
  4251. :src="w.isLikes == true ? likes : noLikes"
  4252. alt=""
  4253. />
  4254. </div>
  4255. <div>{{ w.likesCount }}</div>
  4256. </div>
  4257. <div
  4258. class="commentList"
  4259. style="margin-right: 15px"
  4260. >
  4261. <div
  4262. class="commentImg"
  4263. @click="
  4264. commentOther(
  4265. w,
  4266. toolIndex,
  4267. wIndex,
  4268. null,
  4269. g.id
  4270. )
  4271. "
  4272. >
  4273. <img
  4274. src="../../assets/icon/comment/comment.png"
  4275. alt=""
  4276. />
  4277. </div>
  4278. <div>{{ w.commentCount }}</div>
  4279. </div>
  4280. </div>
  4281. </div>
  4282. </div>
  4283. </div>
  4284. <div class="group_work" v-else>暂无提交作业</div>
  4285. </div>
  4286. </div>
  4287. <div
  4288. class="worksDetailBox"
  4289. v-if="
  4290. worksStudent.length &&
  4291. worksStudent[toolIndex].length > 0
  4292. "
  4293. >
  4294. <div
  4295. class="works"
  4296. style="
  4297. width: 200px;
  4298. height: 140px;
  4299. margin: 10px 10px 10px 0;
  4300. border-radius: 15px;
  4301. box-shadow: 0 0 6px 1px #dfdada;
  4302. "
  4303. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4304. 0
  4305. ? worksStudent[toolIndex]
  4306. : worksStudent[toolIndex].slice(0, 6)"
  4307. :key="wIndex"
  4308. >
  4309. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4310. <div class="workImg">
  4311. <img
  4312. :src="w.works"
  4313. @click="previewImg(w.works)"
  4314. alt
  4315. />
  4316. <div
  4317. class="answerScore"
  4318. v-if="w.score"
  4319. @click.stop="openScore(w)"
  4320. :class="{
  4321. rightW:
  4322. w.userid == userid || tType == 1 || tType == 4,
  4323. }"
  4324. >
  4325. {{ JSON.parse(w.score).wScore }}分
  4326. </div>
  4327. <div
  4328. class="answerScore"
  4329. @click.stop="openScore(w)"
  4330. v-else-if="courseDetail.userid == userid"
  4331. :class="{
  4332. rightW:
  4333. w.userid == userid || tType == 1 || tType == 4,
  4334. }"
  4335. >
  4336. 评分
  4337. </div>
  4338. <img
  4339. class="deleteImg"
  4340. src="../../assets/deleteworks.png"
  4341. v-if="
  4342. w.userid == userid || tType == 1 || tType == 4
  4343. "
  4344. @click.stop="deleteWorks(w.wid)"
  4345. alt
  4346. />
  4347. </div>
  4348. <div class="comment" style="min-width: 200px">
  4349. <div class="worksName">
  4350. <div>{{ w.sName }}</div>
  4351. </div>
  4352. <div class="commentList">
  4353. <div class="commentList">
  4354. <div
  4355. class="commentImg"
  4356. @click="
  4357. isLikes(w.wid, userid, 1, null, w.isLikes)
  4358. "
  4359. >
  4360. <img
  4361. :src="w.isLikes == true ? likes : noLikes"
  4362. alt=""
  4363. />
  4364. </div>
  4365. <div>{{ w.likesCount }}</div>
  4366. </div>
  4367. <div class="commentList" style="margin-right: 15px">
  4368. <div
  4369. class="commentImg"
  4370. @click="commentOther(w, toolIndex, wIndex)"
  4371. >
  4372. <img
  4373. src="../../assets/icon/comment/comment.png"
  4374. alt=""
  4375. />
  4376. </div>
  4377. <div>{{ w.commentCount }}</div>
  4378. </div>
  4379. </div>
  4380. </div>
  4381. </div>
  4382. </div>
  4383. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4384. 未提交
  4385. </div>
  4386. <div
  4387. class="noWorksS"
  4388. v-if="noWorksS && noWorksS[toolIndex].length"
  4389. >
  4390. <div
  4391. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4392. :key="sIndex"
  4393. class="noWorksName"
  4394. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4395. >
  4396. {{ s.student }}
  4397. </div>
  4398. </div>
  4399. </div>
  4400. <div
  4401. v-if="
  4402. tType &&
  4403. ((tType == 2 && sIsOpen == true) ||
  4404. tType == 1 ||
  4405. tType == 4) &&
  4406. tool.tool.indexOf(3) != -1
  4407. "
  4408. class="worksBox"
  4409. >
  4410. <div
  4411. class="zuoyeYulan"
  4412. v-if="
  4413. worksStudent.length &&
  4414. worksStudent[toolIndex].length > 0
  4415. "
  4416. >
  4417. <div class="worksTop">
  4418. <div>作业预览</div>
  4419. <div
  4420. class="corOpen"
  4421. @click="contract(toolIndex)"
  4422. v-if="
  4423. worksStudent[toolIndex].length > 6 &&
  4424. isCloseList[toolIndex].isClose == 0
  4425. "
  4426. >
  4427. 折叠
  4428. </div>
  4429. <div
  4430. class="corOpen"
  4431. @click="contract(toolIndex)"
  4432. v-if="isCloseList[toolIndex].isClose == 1"
  4433. >
  4434. 展开
  4435. </div>
  4436. </div>
  4437. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4438. </div>
  4439. <div
  4440. class="group_workBox"
  4441. v-for="(g, gindex) in courseGroup.group"
  4442. :key="gindex"
  4443. >
  4444. <div class="group_box">
  4445. <div class="group_title">
  4446. <el-tooltip
  4447. class="item"
  4448. effect="light"
  4449. :content="g.name"
  4450. placement="top"
  4451. >
  4452. <div class="group_name">{{ g.name }}</div>
  4453. </el-tooltip>
  4454. </div>
  4455. <div
  4456. class="group_work"
  4457. v-if="
  4458. g.works &&
  4459. g.works.length &&
  4460. g.works[toolIndex].length
  4461. "
  4462. >
  4463. <div
  4464. class="works"
  4465. style="
  4466. width: 200px;
  4467. height: 140px;
  4468. margin: 10px 10px 10px 0;
  4469. border-radius: 15px;
  4470. box-shadow: 0 0 6px 1px #dfdada;
  4471. "
  4472. v-for="(w, wIndex) in g.works[toolIndex]"
  4473. :key="wIndex"
  4474. :class="w.type == 1 ? 'isTypeOne' : ''"
  4475. >
  4476. <div class="workImg">
  4477. <img
  4478. :src="w.works"
  4479. @click="previewImg(w.works)"
  4480. alt
  4481. />
  4482. <div
  4483. class="answerScore"
  4484. v-if="w.score"
  4485. @click.stop="openScore(w)"
  4486. :class="{
  4487. rightW:
  4488. w.userid == userid ||
  4489. tType == 1 ||
  4490. tType == 4,
  4491. }"
  4492. >
  4493. {{ JSON.parse(w.score).wScore }}分
  4494. </div>
  4495. <div
  4496. class="answerScore"
  4497. @click.stop="openScore(w)"
  4498. v-else-if="courseDetail.userid == userid"
  4499. :class="{
  4500. rightW:
  4501. w.userid == userid ||
  4502. tType == 1 ||
  4503. tType == 4,
  4504. }"
  4505. >
  4506. 评分
  4507. </div>
  4508. <img
  4509. class="deleteImg"
  4510. src="../../assets/deleteworks.png"
  4511. v-if="
  4512. w.userid == userid || tType == 1 || tType == 4
  4513. "
  4514. @click.stop="deleteWorks(w.wid)"
  4515. alt
  4516. />
  4517. </div>
  4518. <div class="comment" style="min-width: 200px">
  4519. <div class="worksName">
  4520. <div>{{ w.sName }}</div>
  4521. </div>
  4522. <div class="commentList">
  4523. <div class="commentList">
  4524. <div
  4525. class="commentImg"
  4526. @click="
  4527. isLikes(w.wid, userid, 1, null, w.isLikes)
  4528. "
  4529. >
  4530. <img
  4531. :src="w.isLikes == true ? likes : noLikes"
  4532. alt=""
  4533. />
  4534. </div>
  4535. <div>{{ w.likesCount }}</div>
  4536. </div>
  4537. <div
  4538. class="commentList"
  4539. style="margin-right: 15px"
  4540. >
  4541. <div
  4542. class="commentImg"
  4543. @click="
  4544. commentOther(
  4545. w,
  4546. toolIndex,
  4547. wIndex,
  4548. null,
  4549. g.id
  4550. )
  4551. "
  4552. >
  4553. <img
  4554. src="../../assets/icon/comment/comment.png"
  4555. alt=""
  4556. />
  4557. </div>
  4558. <div>{{ w.commentCount }}</div>
  4559. </div>
  4560. </div>
  4561. </div>
  4562. </div>
  4563. </div>
  4564. <div class="group_work" v-else>暂无提交作业</div>
  4565. </div>
  4566. </div>
  4567. <div
  4568. class="worksDetailBox"
  4569. v-if="
  4570. worksStudent.length &&
  4571. worksStudent[toolIndex].length > 0
  4572. "
  4573. >
  4574. <div
  4575. class="works"
  4576. style="
  4577. width: 200px;
  4578. height: 140px;
  4579. margin: 10px 10px 10px 0;
  4580. border-radius: 15px;
  4581. box-shadow: 0 0 6px 1px #dfdada;
  4582. "
  4583. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4584. 0
  4585. ? worksStudent[toolIndex]
  4586. : worksStudent[toolIndex].slice(0, 6)"
  4587. :key="wIndex"
  4588. >
  4589. <!-- @click="previewImg(w.works)" -->
  4590. <div class="workImg">
  4591. <img
  4592. :src="w.works"
  4593. @click="previewImg(w.works)"
  4594. alt
  4595. />
  4596. <div
  4597. class="answerScore"
  4598. v-if="w.score"
  4599. @click.stop="openScore(w)"
  4600. :class="{
  4601. rightW:
  4602. w.userid == userid || tType == 1 || tType == 4,
  4603. }"
  4604. >
  4605. {{ JSON.parse(w.score).wScore }}分
  4606. </div>
  4607. <div
  4608. class="answerScore"
  4609. @click.stop="openScore(w)"
  4610. v-else-if="courseDetail.userid == userid"
  4611. :class="{
  4612. rightW:
  4613. w.userid == userid || tType == 1 || tType == 4,
  4614. }"
  4615. >
  4616. 评分
  4617. </div>
  4618. <img
  4619. class="deleteImg"
  4620. src="../../assets/deleteworks.png"
  4621. v-if="
  4622. w.userid == userid || tType == 1 || tType == 4
  4623. "
  4624. @click.stop="deleteWorks(w.wid)"
  4625. alt
  4626. />
  4627. </div>
  4628. <div class="comment" style="min-width: 200px">
  4629. <div class="worksName">
  4630. <div>{{ w.sName }}</div>
  4631. </div>
  4632. <div class="commentList">
  4633. <div class="commentList">
  4634. <div
  4635. class="commentImg"
  4636. @click="
  4637. isLikes(w.wid, userid, 1, null, w.isLikes)
  4638. "
  4639. >
  4640. <img
  4641. :src="w.isLikes == true ? likes : noLikes"
  4642. alt=""
  4643. />
  4644. </div>
  4645. <div>{{ w.likesCount }}</div>
  4646. </div>
  4647. <div class="commentList" style="margin-right: 15px">
  4648. <div
  4649. class="commentImg"
  4650. @click="commentOther(w, toolIndex, wIndex)"
  4651. >
  4652. <img
  4653. src="../../assets/icon/comment/comment.png"
  4654. alt=""
  4655. />
  4656. </div>
  4657. <div>{{ w.commentCount }}</div>
  4658. </div>
  4659. </div>
  4660. </div>
  4661. </div>
  4662. </div>
  4663. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4664. 未提交
  4665. </div>
  4666. <div
  4667. class="noWorksS"
  4668. v-if="noWorksS && noWorksS[toolIndex].length"
  4669. >
  4670. <div
  4671. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4672. :key="sIndex"
  4673. class="noWorksName"
  4674. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4675. >
  4676. {{ s.student }}
  4677. </div>
  4678. </div>
  4679. </div>
  4680. <div
  4681. v-if="
  4682. tType &&
  4683. ((tType == 2 && sIsOpen == true) ||
  4684. tType == 1 ||
  4685. tType == 4) &&
  4686. tool.tool.indexOf(6) != -1
  4687. "
  4688. class="worksBox"
  4689. >
  4690. <div
  4691. class="zuoyeYulan"
  4692. v-if="
  4693. worksStudent.length &&
  4694. worksStudent[toolIndex].length > 0
  4695. "
  4696. >
  4697. <div class="worksTop">
  4698. <div>作业预览</div>
  4699. <div
  4700. class="corOpen"
  4701. @click="contract(toolIndex)"
  4702. v-if="
  4703. worksStudent[toolIndex].length > 6 &&
  4704. isCloseList[toolIndex].isClose == 0
  4705. "
  4706. >
  4707. 折叠
  4708. </div>
  4709. <div
  4710. class="corOpen"
  4711. @click="contract(toolIndex)"
  4712. v-if="isCloseList[toolIndex].isClose == 1"
  4713. >
  4714. 展开
  4715. </div>
  4716. </div>
  4717. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4718. </div>
  4719. <div
  4720. class="group_workBox"
  4721. v-for="(g, gindex) in courseGroup.group"
  4722. :key="gindex"
  4723. >
  4724. <div class="group_box">
  4725. <div class="group_title">
  4726. <el-tooltip
  4727. class="item"
  4728. effect="light"
  4729. :content="g.name"
  4730. placement="top"
  4731. >
  4732. <div class="group_name">{{ g.name }}</div>
  4733. </el-tooltip>
  4734. </div>
  4735. <div
  4736. class="group_work"
  4737. v-if="
  4738. g.works &&
  4739. g.works.length &&
  4740. g.works[toolIndex].length
  4741. "
  4742. >
  4743. <div
  4744. class="works"
  4745. style="
  4746. width: 200px;
  4747. height: 140px;
  4748. margin: 10px 10px 10px 0;
  4749. border-radius: 15px;
  4750. box-shadow: 0 0 6px 1px #dfdada;
  4751. "
  4752. v-for="(w, wIndex) in g.works[toolIndex]"
  4753. :key="wIndex"
  4754. :class="w.type == 1 ? 'isTypeOne' : ''"
  4755. >
  4756. <div class="workImg">
  4757. <img
  4758. :src="w.works"
  4759. @click="previewImg(w.works)"
  4760. alt
  4761. />
  4762. <div
  4763. class="answerScore"
  4764. v-if="w.score"
  4765. @click.stop="openScore(w)"
  4766. :class="{
  4767. rightW:
  4768. w.userid == userid ||
  4769. tType == 1 ||
  4770. tType == 4,
  4771. }"
  4772. >
  4773. {{ JSON.parse(w.score).wScore }}分
  4774. </div>
  4775. <div
  4776. class="answerScore"
  4777. @click.stop="openScore(w)"
  4778. v-else-if="courseDetail.userid == userid"
  4779. :class="{
  4780. rightW:
  4781. w.userid == userid ||
  4782. tType == 1 ||
  4783. tType == 4,
  4784. }"
  4785. >
  4786. 评分
  4787. </div>
  4788. <img
  4789. class="deleteImg"
  4790. src="../../assets/deleteworks.png"
  4791. v-if="
  4792. w.userid == userid || tType == 1 || tType == 4
  4793. "
  4794. @click.stop="deleteWorks(w.wid)"
  4795. alt
  4796. />
  4797. </div>
  4798. <div class="comment" style="min-width: 200px">
  4799. <div class="worksName">
  4800. <div>{{ w.sName }}</div>
  4801. </div>
  4802. <div class="commentList">
  4803. <div class="commentList">
  4804. <div
  4805. class="commentImg"
  4806. @click="
  4807. isLikes(w.wid, userid, 1, null, w.isLikes)
  4808. "
  4809. >
  4810. <img
  4811. :src="w.isLikes == true ? likes : noLikes"
  4812. alt=""
  4813. />
  4814. </div>
  4815. <div>{{ w.likesCount }}</div>
  4816. </div>
  4817. <div
  4818. class="commentList"
  4819. style="margin-right: 15px"
  4820. >
  4821. <div
  4822. class="commentImg"
  4823. @click="
  4824. commentOther(
  4825. w,
  4826. toolIndex,
  4827. wIndex,
  4828. null,
  4829. g.id
  4830. )
  4831. "
  4832. >
  4833. <img
  4834. src="../../assets/icon/comment/comment.png"
  4835. alt=""
  4836. />
  4837. </div>
  4838. <div>{{ w.commentCount }}</div>
  4839. </div>
  4840. </div>
  4841. </div>
  4842. </div>
  4843. </div>
  4844. <div class="group_work" v-else>暂无提交作业</div>
  4845. </div>
  4846. </div>
  4847. <div
  4848. class="worksDetailBox"
  4849. v-if="
  4850. worksStudent.length &&
  4851. worksStudent[toolIndex].length > 0
  4852. "
  4853. >
  4854. <div
  4855. class="works"
  4856. style="
  4857. width: 200px;
  4858. height: 140px;
  4859. margin: 10px 10px 10px 0;
  4860. border-radius: 15px;
  4861. box-shadow: 0 0 6px 1px #dfdada;
  4862. "
  4863. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4864. 0
  4865. ? worksStudent[toolIndex]
  4866. : worksStudent[toolIndex].slice(0, 6)"
  4867. :key="wIndex"
  4868. >
  4869. <!-- @click="previewImg(w.works)" -->
  4870. <div class="workImg">
  4871. <img
  4872. :src="w.works"
  4873. @click="previewImg(w.works)"
  4874. alt
  4875. />
  4876. <div
  4877. class="answerScore"
  4878. v-if="w.score"
  4879. @click.stop="openScore(w)"
  4880. :class="{
  4881. rightW:
  4882. w.userid == userid || tType == 1 || tType == 4,
  4883. }"
  4884. >
  4885. {{ JSON.parse(w.score).wScore }}分
  4886. </div>
  4887. <div
  4888. class="answerScore"
  4889. @click.stop="openScore(w)"
  4890. v-else-if="courseDetail.userid == userid"
  4891. :class="{
  4892. rightW:
  4893. w.userid == userid || tType == 1 || tType == 4,
  4894. }"
  4895. >
  4896. 评分
  4897. </div>
  4898. <img
  4899. class="deleteImg"
  4900. src="../../assets/deleteworks.png"
  4901. v-if="
  4902. w.userid == userid || tType == 1 || tType == 4
  4903. "
  4904. @click.stop="deleteWorks(w.wid)"
  4905. alt
  4906. />
  4907. </div>
  4908. <div class="comment" style="min-width: 200px">
  4909. <div class="worksName">
  4910. <div>{{ w.sName }}</div>
  4911. </div>
  4912. <div class="commentList">
  4913. <div class="commentList">
  4914. <div
  4915. class="commentImg"
  4916. @click="
  4917. isLikes(w.wid, userid, 1, null, w.isLikes)
  4918. "
  4919. >
  4920. <img
  4921. :src="w.isLikes == true ? likes : noLikes"
  4922. alt=""
  4923. />
  4924. </div>
  4925. <div>{{ w.likesCount }}</div>
  4926. </div>
  4927. <div class="commentList" style="margin-right: 15px">
  4928. <div
  4929. class="commentImg"
  4930. @click="commentOther(w, toolIndex, wIndex)"
  4931. >
  4932. <img
  4933. src="../../assets/icon/comment/comment.png"
  4934. alt=""
  4935. />
  4936. </div>
  4937. <div>{{ w.commentCount }}</div>
  4938. </div>
  4939. </div>
  4940. </div>
  4941. </div>
  4942. </div>
  4943. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4944. 未提交
  4945. </div>
  4946. <div
  4947. class="noWorksS"
  4948. v-if="noWorksS && noWorksS[toolIndex].length"
  4949. >
  4950. <div
  4951. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4952. :key="sIndex"
  4953. class="noWorksName"
  4954. >
  4955. {{ s.student }}
  4956. </div>
  4957. </div>
  4958. </div>
  4959. <div
  4960. v-if="
  4961. tType &&
  4962. ((tType == 2 && sIsOpen == true) ||
  4963. tType == 1 ||
  4964. tType == 4) &&
  4965. tool.tool.indexOf(7) != -1
  4966. "
  4967. class="worksBox"
  4968. >
  4969. <div
  4970. class="zuoyeYulan"
  4971. v-if="
  4972. worksStudent.length &&
  4973. worksStudent[toolIndex].length > 0
  4974. "
  4975. >
  4976. <div class="worksTop">
  4977. <div>作业预览</div>
  4978. <div
  4979. class="corOpen"
  4980. @click="contract(toolIndex)"
  4981. v-if="
  4982. worksStudent[toolIndex].length > 6 &&
  4983. isCloseList[toolIndex].isClose == 0
  4984. "
  4985. >
  4986. 折叠
  4987. </div>
  4988. <div
  4989. class="corOpen"
  4990. @click="contract(toolIndex)"
  4991. v-if="isCloseList[toolIndex].isClose == 1"
  4992. >
  4993. 展开
  4994. </div>
  4995. </div>
  4996. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4997. </div>
  4998. <div
  4999. class="group_workBox"
  5000. v-for="(g, gindex) in courseGroup.group"
  5001. :key="gindex"
  5002. >
  5003. <div class="group_box">
  5004. <div class="group_title">
  5005. <el-tooltip
  5006. class="item"
  5007. effect="light"
  5008. :content="g.name"
  5009. placement="top"
  5010. >
  5011. <div class="group_name">{{ g.name }}</div>
  5012. </el-tooltip>
  5013. </div>
  5014. <div
  5015. class="group_work"
  5016. v-if="
  5017. g.works &&
  5018. g.works.length &&
  5019. g.works[toolIndex].length
  5020. "
  5021. >
  5022. <div
  5023. class="works"
  5024. style="
  5025. width: 200px;
  5026. height: 140px;
  5027. margin: 10px 10px 10px 0;
  5028. border-radius: 15px;
  5029. box-shadow: 0 0 6px 1px #dfdada;
  5030. "
  5031. v-for="(w, wIndex) in g.works[toolIndex]"
  5032. :key="wIndex"
  5033. :class="w.type == 1 ? 'isTypeOne' : ''"
  5034. >
  5035. <div class="workImg">
  5036. <img
  5037. :src="w.works"
  5038. @click="previewImg(w.works)"
  5039. alt
  5040. />
  5041. <div
  5042. class="answerScore"
  5043. v-if="w.score"
  5044. @click.stop="openScore(w)"
  5045. :class="{
  5046. rightW:
  5047. w.userid == userid ||
  5048. tType == 1 ||
  5049. tType == 4,
  5050. }"
  5051. >
  5052. {{ JSON.parse(w.score).wScore }}分
  5053. </div>
  5054. <div
  5055. class="answerScore"
  5056. @click.stop="openScore(w)"
  5057. v-else-if="courseDetail.userid == userid"
  5058. :class="{
  5059. rightW:
  5060. w.userid == userid ||
  5061. tType == 1 ||
  5062. tType == 4,
  5063. }"
  5064. >
  5065. 评分
  5066. </div>
  5067. <img
  5068. class="deleteImg"
  5069. src="../../assets/deleteworks.png"
  5070. v-if="
  5071. w.userid == userid || tType == 1 || tType == 4
  5072. "
  5073. @click.stop="deleteWorks(w.wid)"
  5074. alt
  5075. />
  5076. </div>
  5077. <div class="comment" style="min-width: 200px">
  5078. <div class="worksName">
  5079. <div>{{ w.sName }}</div>
  5080. </div>
  5081. <div class="commentList">
  5082. <div class="commentList">
  5083. <div
  5084. class="commentImg"
  5085. @click="
  5086. isLikes(w.wid, userid, 1, null, w.isLikes)
  5087. "
  5088. >
  5089. <img
  5090. :src="w.isLikes == true ? likes : noLikes"
  5091. alt=""
  5092. />
  5093. </div>
  5094. <div>{{ w.likesCount }}</div>
  5095. </div>
  5096. <div
  5097. class="commentList"
  5098. style="margin-right: 15px"
  5099. >
  5100. <div
  5101. class="commentImg"
  5102. @click="
  5103. commentOther(
  5104. w,
  5105. toolIndex,
  5106. wIndex,
  5107. null,
  5108. g.id
  5109. )
  5110. "
  5111. >
  5112. <img
  5113. src="../../assets/icon/comment/comment.png"
  5114. alt=""
  5115. />
  5116. </div>
  5117. <div>{{ w.commentCount }}</div>
  5118. </div>
  5119. </div>
  5120. </div>
  5121. </div>
  5122. </div>
  5123. <div class="group_work" v-else>暂无提交作业</div>
  5124. </div>
  5125. </div>
  5126. <div
  5127. class="worksDetailBox"
  5128. v-if="
  5129. worksStudent.length &&
  5130. worksStudent[toolIndex].length > 0
  5131. "
  5132. >
  5133. <div
  5134. class="works"
  5135. style="
  5136. width: 200px;
  5137. height: 140px;
  5138. margin: 10px 10px 10px 0;
  5139. border-radius: 15px;
  5140. box-shadow: 0 0 6px 1px #dfdada;
  5141. "
  5142. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5143. 0
  5144. ? worksStudent[toolIndex]
  5145. : worksStudent[toolIndex].slice(0, 6)"
  5146. :key="wIndex"
  5147. >
  5148. <!-- @click="previewImg(w.works)" -->
  5149. <div class="workImg">
  5150. <img
  5151. :src="w.works"
  5152. @click="previewImg(w.works)"
  5153. alt
  5154. />
  5155. <div
  5156. class="answerScore"
  5157. v-if="w.score"
  5158. @click.stop="openScore(w)"
  5159. :class="{
  5160. rightW:
  5161. w.userid == userid || tType == 1 || tType == 4,
  5162. }"
  5163. >
  5164. {{ JSON.parse(w.score).wScore }}分
  5165. </div>
  5166. <div
  5167. class="answerScore"
  5168. @click.stop="openScore(w)"
  5169. v-else-if="courseDetail.userid == userid"
  5170. :class="{
  5171. rightW:
  5172. w.userid == userid || tType == 1 || tType == 4,
  5173. }"
  5174. >
  5175. 评分
  5176. </div>
  5177. <img
  5178. class="deleteImg"
  5179. src="../../assets/deleteworks.png"
  5180. v-if="
  5181. w.userid == userid || tType == 1 || tType == 4
  5182. "
  5183. @click.stop="deleteWorks(w.wid)"
  5184. alt
  5185. />
  5186. </div>
  5187. <div class="comment" style="min-width: 200px">
  5188. <div class="worksName">
  5189. <div>{{ w.sName }}</div>
  5190. </div>
  5191. <div class="commentList">
  5192. <div class="commentList">
  5193. <div
  5194. class="commentImg"
  5195. @click="
  5196. isLikes(w.wid, userid, 1, null, w.isLikes)
  5197. "
  5198. >
  5199. <img
  5200. :src="w.isLikes == true ? likes : noLikes"
  5201. alt=""
  5202. />
  5203. </div>
  5204. <div>{{ w.likesCount }}</div>
  5205. </div>
  5206. <div class="commentList" style="margin-right: 15px">
  5207. <div
  5208. class="commentImg"
  5209. @click="commentOther(w, toolIndex, wIndex)"
  5210. >
  5211. <img
  5212. src="../../assets/icon/comment/comment.png"
  5213. alt=""
  5214. />
  5215. </div>
  5216. <div>{{ w.commentCount }}</div>
  5217. </div>
  5218. </div>
  5219. </div>
  5220. </div>
  5221. </div>
  5222. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5223. 未提交
  5224. </div>
  5225. <div
  5226. class="noWorksS"
  5227. v-if="noWorksS && noWorksS[toolIndex].length"
  5228. >
  5229. <div
  5230. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5231. :key="sIndex"
  5232. class="noWorksName"
  5233. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5234. >
  5235. {{ s.student }}
  5236. </div>
  5237. </div>
  5238. </div>
  5239. <div
  5240. v-if="
  5241. tType &&
  5242. ((tType == 2 && sIsOpen == true) ||
  5243. tType == 1 ||
  5244. tType == 4) &&
  5245. tool.tool.indexOf(26) != -1
  5246. "
  5247. class="worksBox"
  5248. >
  5249. <div
  5250. class="zuoyeYulan"
  5251. v-if="
  5252. worksStudent.length &&
  5253. worksStudent[toolIndex].length > 0
  5254. "
  5255. >
  5256. <div class="worksTop">
  5257. <div>作业预览</div>
  5258. <div
  5259. class="corOpen"
  5260. @click="contract(toolIndex)"
  5261. v-if="
  5262. worksStudent[toolIndex].length > 6 &&
  5263. isCloseList[toolIndex].isClose == 0
  5264. "
  5265. >
  5266. 折叠
  5267. </div>
  5268. <div
  5269. class="corOpen"
  5270. @click="contract(toolIndex)"
  5271. v-if="isCloseList[toolIndex].isClose == 1"
  5272. >
  5273. 展开
  5274. </div>
  5275. </div>
  5276. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5277. </div>
  5278. <div
  5279. class="worksDetailBox"
  5280. v-if="
  5281. worksStudent.length &&
  5282. worksStudent[toolIndex].length > 0
  5283. "
  5284. >
  5285. <div
  5286. class="works"
  5287. style="width: 240px; height: 140px; overflow: hidden"
  5288. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5289. 0
  5290. ? worksStudent[toolIndex]
  5291. : worksStudent[toolIndex].slice(0, 6)"
  5292. :key="wIndex"
  5293. :class="w.type == 1 ? 'isTypeOne' : ''"
  5294. >
  5295. <div class="workImg" v-if="w.type == 0">
  5296. <img
  5297. :src="w.works"
  5298. @click="previewImg(w.works)"
  5299. alt
  5300. />
  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="workImg" v-if="w.type == 1">
  5312. <img :src="word" @click="openFile(w.works)" alt />
  5313. <img
  5314. class="deleteImg"
  5315. src="../../assets/deleteworks.png"
  5316. v-if="
  5317. w.userid == userid || tType == 1 || tType == 4
  5318. "
  5319. @click.stop="deleteWorks(w.wid)"
  5320. alt
  5321. />
  5322. </div>
  5323. <div class="worksName">
  5324. <div>{{ w.sName }}</div>
  5325. </div>
  5326. </div>
  5327. </div>
  5328. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5329. 未提交
  5330. </div>
  5331. <div
  5332. class="noWorksS"
  5333. v-if="noWorksS && noWorksS[toolIndex].length"
  5334. >
  5335. <div
  5336. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5337. :key="sIndex"
  5338. class="noWorksName"
  5339. >
  5340. {{ s.student }}
  5341. </div>
  5342. </div>
  5343. </div>
  5344. <div
  5345. v-if="
  5346. tType &&
  5347. ((tType == 2 && sIsOpen == true) ||
  5348. tType == 1 ||
  5349. tType == 4) &&
  5350. tool.tool.indexOf(40) != -1
  5351. "
  5352. class="worksBox"
  5353. >
  5354. <div
  5355. class="zuoyeYulan"
  5356. v-if="
  5357. worksStudent.length &&
  5358. worksStudent[toolIndex].length > 0
  5359. "
  5360. >
  5361. <div class="worksTop">
  5362. <div>作业预览</div>
  5363. <div
  5364. class="corOpen"
  5365. @click="contract(toolIndex)"
  5366. v-if="
  5367. worksStudent[toolIndex].length > 6 &&
  5368. isCloseList[toolIndex].isClose == 0
  5369. "
  5370. >
  5371. 折叠
  5372. </div>
  5373. <div
  5374. class="corOpen"
  5375. @click="contract(toolIndex)"
  5376. v-if="isCloseList[toolIndex].isClose == 1"
  5377. >
  5378. 展开
  5379. </div>
  5380. </div>
  5381. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5382. </div>
  5383. <div
  5384. class="worksDetailBox"
  5385. v-if="
  5386. worksStudent.length &&
  5387. worksStudent[toolIndex].length > 0
  5388. "
  5389. >
  5390. <div
  5391. class="works"
  5392. style="
  5393. width: 200px;
  5394. height: 140px;
  5395. margin: 10px 10px 10px 0;
  5396. border-radius: 15px;
  5397. box-shadow: 0 0 6px 1px #dfdada;
  5398. "
  5399. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5400. 0
  5401. ? worksStudent[toolIndex]
  5402. : worksStudent[toolIndex].slice(0, 6)"
  5403. :key="wIndex"
  5404. :class="w.type == 1 ? 'isTypeOne' : ''"
  5405. >
  5406. <div class="workImg">
  5407. <img
  5408. src="../../assets/icon/works/noImg.png"
  5409. @click="openPj(w.works, toolIndex)"
  5410. alt
  5411. />
  5412. <img
  5413. class="deleteImg"
  5414. src="../../assets/deleteworks.png"
  5415. v-if="
  5416. w.userid == userid || tType == 1 || tType == 4
  5417. "
  5418. @click.stop="deleteWorks(w.wid)"
  5419. alt
  5420. />
  5421. </div>
  5422. <div class="comment" style="min-width: 200px">
  5423. <div class="worksName">
  5424. <div>{{ w.sName }}</div>
  5425. </div>
  5426. <div class="commentList">
  5427. <div class="commentList">
  5428. <div
  5429. class="commentImg"
  5430. @click="
  5431. isLikes(w.wid, userid, 1, null, w.isLikes)
  5432. "
  5433. >
  5434. <img
  5435. :src="w.isLikes == true ? likes : noLikes"
  5436. alt=""
  5437. />
  5438. </div>
  5439. <div>{{ w.likesCount }}</div>
  5440. </div>
  5441. <div class="commentList" style="margin-right: 15px">
  5442. <div
  5443. class="commentImg"
  5444. @click="commentOther(w, toolIndex, wIndex)"
  5445. >
  5446. <img
  5447. src="../../assets/icon/comment/comment.png"
  5448. alt=""
  5449. />
  5450. </div>
  5451. <div>{{ w.commentCount }}</div>
  5452. </div>
  5453. </div>
  5454. </div>
  5455. </div>
  5456. </div>
  5457. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5458. 未提交
  5459. </div>
  5460. <div
  5461. class="noWorksS"
  5462. v-if="noWorksS && noWorksS[toolIndex].length"
  5463. >
  5464. <div
  5465. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5466. :key="sIndex"
  5467. class="noWorksName"
  5468. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5469. >
  5470. {{ s.student }}
  5471. </div>
  5472. </div>
  5473. </div>
  5474. <div
  5475. v-if="
  5476. tType &&
  5477. tType == 2 &&
  5478. !sIsOpen &&
  5479. tool.tool.indexOf(40) != -1
  5480. "
  5481. class="worksBox"
  5482. >
  5483. <div
  5484. class="zuoyeYulan"
  5485. v-if="workStudent[toolIndex].length > 0"
  5486. >
  5487. <span class="worksTitle">作业预览</span>
  5488. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5489. </div>
  5490. <div
  5491. class="worksDetailBox"
  5492. v-if="workStudent[toolIndex].length > 0"
  5493. >
  5494. <div
  5495. class="works"
  5496. style="
  5497. width: 200px;
  5498. height: 140px;
  5499. margin: 10px 10px 10px 0;
  5500. "
  5501. v-for="(w, wIndex) in workStudent[toolIndex]"
  5502. :key="wIndex"
  5503. >
  5504. <div class="workImg">
  5505. <img
  5506. src="../../assets/icon/works/noImg.png"
  5507. @click="openPj(w.works, toolIndex)"
  5508. alt
  5509. />
  5510. <img
  5511. class="deleteImg"
  5512. src="../../assets/deleteworks.png"
  5513. v-if="
  5514. w.userid == userid || tType == 1 || tType == 4
  5515. "
  5516. @click.stop="deleteWorks(w.wid)"
  5517. alt
  5518. />
  5519. </div>
  5520. <div class="worksName">
  5521. <div>{{ w.sName }}</div>
  5522. </div>
  5523. </div>
  5524. </div>
  5525. </div>
  5526. <div
  5527. v-if="
  5528. tType &&
  5529. ((tType == 2 && sIsOpen == true) ||
  5530. tType == 1 ||
  5531. tType == 4) &&
  5532. tool.tool.indexOf(41) != -1
  5533. "
  5534. >
  5535. <AnswerData2
  5536. v-if="
  5537. worksStudent.length &&
  5538. worksStudent[toolIndex].length > 0
  5539. "
  5540. :problemJson="tool.selectJson.answer"
  5541. :people="worksStudent[toolIndex]"
  5542. ></AnswerData2>
  5543. </div>
  5544. <div
  5545. v-if="
  5546. tType &&
  5547. ((tType == 2 && sIsOpen == true) ||
  5548. tType == 1 ||
  5549. tType == 4) &&
  5550. tool.tool.indexOf(41) != -1
  5551. "
  5552. class="worksBox"
  5553. >
  5554. <div
  5555. class="zuoyeYulan"
  5556. v-if="
  5557. worksStudent.length &&
  5558. worksStudent[toolIndex].length > 0
  5559. "
  5560. >
  5561. <div class="worksTop">
  5562. <div>作业预览</div>
  5563. <div
  5564. class="corOpen"
  5565. @click="contract(toolIndex)"
  5566. v-if="
  5567. worksStudent[toolIndex].length > 6 &&
  5568. isCloseList[toolIndex].isClose == 0
  5569. "
  5570. >
  5571. 折叠
  5572. </div>
  5573. <div
  5574. class="corOpen"
  5575. @click="contract(toolIndex)"
  5576. v-if="isCloseList[toolIndex].isClose == 1"
  5577. >
  5578. 展开
  5579. </div>
  5580. </div>
  5581. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5582. </div>
  5583. <div
  5584. class="worksDetailBox"
  5585. v-if="
  5586. worksStudent.length &&
  5587. worksStudent[toolIndex].length > 0
  5588. "
  5589. >
  5590. <div
  5591. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5592. 0
  5593. ? worksStudent[toolIndex]
  5594. : worksStudent[toolIndex].slice(0, 6)"
  5595. :key="wIndex"
  5596. class="isWorksName2"
  5597. @click="openXz(w, toolIndex)"
  5598. >
  5599. {{ w.sName }}
  5600. <img
  5601. class="deleteImg deleteImg2"
  5602. src="../../assets/deleteworks.png"
  5603. v-if="w.userid == userid || tType == 1 || tType == 4"
  5604. @click.stop="deleteWorks(w.wid)"
  5605. alt
  5606. />
  5607. </div>
  5608. <!-- <div
  5609. class="works"
  5610. style="
  5611. width: 200px;
  5612. height: 140px;
  5613. margin: 10px 10px 10px 0;
  5614. border-radius: 15px;
  5615. box-shadow: 0 0 6px 1px #dfdada;
  5616. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5617. :class="w.type == 5 ? 'isTypeOne' : ''">
  5618. <div class="workImg">
  5619. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5620. </div>
  5621. <div class="worksName">
  5622. <div>{{ w.sName }}</div>
  5623. </div>
  5624. </div> -->
  5625. </div>
  5626. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5627. 未提交
  5628. </div>
  5629. <div
  5630. class="noWorksS"
  5631. v-if="noWorksS && noWorksS[toolIndex].length"
  5632. >
  5633. <div
  5634. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5635. :key="sIndex"
  5636. class="noWorksName"
  5637. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5638. >
  5639. {{ s.student }}
  5640. </div>
  5641. </div>
  5642. </div>
  5643. <div
  5644. v-if="
  5645. tType &&
  5646. tType == 2 &&
  5647. !sIsOpen &&
  5648. tool.tool.indexOf(41) != -1
  5649. "
  5650. class="worksBox"
  5651. >
  5652. <div
  5653. class="zuoyeYulan"
  5654. v-if="workStudent[toolIndex].length > 0"
  5655. >
  5656. <span class="worksTitle">作业预览</span>
  5657. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5658. </div>
  5659. <div
  5660. class="worksDetailBox"
  5661. v-if="workStudent[toolIndex].length > 0"
  5662. >
  5663. <div
  5664. class="works"
  5665. style="
  5666. width: 200px;
  5667. height: 140px;
  5668. margin: 10px 10px 10px 0;
  5669. "
  5670. v-for="(w, wIndex) in workStudent[toolIndex]"
  5671. :key="wIndex"
  5672. >
  5673. <div class="workImg">
  5674. <img
  5675. src="../../assets/icon/works/noImg.png"
  5676. @click="openXz(w, toolIndex)"
  5677. alt
  5678. />
  5679. <img
  5680. class="deleteImg"
  5681. src="../../assets/deleteworks.png"
  5682. v-if="
  5683. w.userid == userid || tType == 1 || tType == 4
  5684. "
  5685. @click.stop="deleteWorks(w.wid)"
  5686. alt
  5687. />
  5688. </div>
  5689. <div class="worksName">
  5690. <div>{{ w.sName }}</div>
  5691. </div>
  5692. </div>
  5693. </div>
  5694. </div>
  5695. <div v-if="false" class="xuan_right_box">
  5696. <div
  5697. class="tool_right_box"
  5698. v-for="(item, index) in tool.sentenceList"
  5699. :key="index"
  5700. >
  5701. <div>
  5702. <span
  5703. style="word-break: break-all; white-space: normal"
  5704. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  5705. >
  5706. </div>
  5707. <div class="right_box_xuan">
  5708. <span>正确率</span>
  5709. <span>{{
  5710. (checkJson[toolIndex][index].right
  5711. ? checkJson[toolIndex][index].right
  5712. : 0) + "%"
  5713. }}</span>
  5714. </div>
  5715. <div class="right_box_xuan">
  5716. <span>答对人数</span>
  5717. <span>{{
  5718. checkJson[toolIndex][index].rightPerson.length
  5719. }}</span>
  5720. </div>
  5721. </div>
  5722. </div>
  5723. <div
  5724. v-if="
  5725. tType &&
  5726. ((tType == 2 && sIsOpen == true) ||
  5727. tType == 1 ||
  5728. tType == 4) &&
  5729. tool.tool.indexOf(47) != -1
  5730. "
  5731. >
  5732. <AnswerData
  5733. v-if="
  5734. checkJson[toolIndex].length &&
  5735. (tool.sentenceList || tool.sentenceList.length > 0)
  5736. "
  5737. :people="checkJson[toolIndex]"
  5738. ></AnswerData>
  5739. </div>
  5740. <div
  5741. v-if="
  5742. tType &&
  5743. tType == 2 &&
  5744. !sIsOpen &&
  5745. tool.tool.indexOf(47) != -1
  5746. "
  5747. class="worksBox"
  5748. >
  5749. <div
  5750. class="zuoyeYulan"
  5751. v-if="workStudent[toolIndex].length > 0"
  5752. >
  5753. <span class="worksTitle">作业预览</span>
  5754. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5755. </div>
  5756. <div
  5757. class="worksDetailBox"
  5758. v-if="workStudent[toolIndex].length > 0"
  5759. >
  5760. <div
  5761. class="works"
  5762. style="
  5763. width: 200px;
  5764. height: 140px;
  5765. margin: 10px 10px 10px 0;
  5766. "
  5767. v-for="(w, wIndex) in workStudent[toolIndex]"
  5768. :key="wIndex"
  5769. >
  5770. <!-- @click="openXz(w, toolIndex)" -->
  5771. <div class="workImg" @click="openSen(w, toolIndex)">
  5772. <img src="../../assets/icon/works/noImg.png" alt />
  5773. <img
  5774. class="deleteImg"
  5775. src="../../assets/deleteworks.png"
  5776. v-if="
  5777. w.userid == userid || tType == 1 || tType == 4
  5778. "
  5779. @click.stop="deleteWorks(w.wid)"
  5780. alt
  5781. />
  5782. </div>
  5783. <div class="worksName">
  5784. <div>
  5785. {{ w.sName }}
  5786. </div>
  5787. </div>
  5788. </div>
  5789. </div>
  5790. </div>
  5791. <div
  5792. v-if="
  5793. tType &&
  5794. ((tType == 2 && sIsOpen == true) ||
  5795. tType == 1 ||
  5796. tType == 4) &&
  5797. tool.tool.indexOf(47) != -1
  5798. "
  5799. class="worksBox"
  5800. >
  5801. <div
  5802. class="zuoyeYulan"
  5803. v-if="
  5804. worksStudent.length &&
  5805. worksStudent[toolIndex].length > 0
  5806. "
  5807. >
  5808. <div class="worksTop">
  5809. <div>作业预览</div>
  5810. <div
  5811. class="corOpen"
  5812. @click="contract(toolIndex)"
  5813. v-if="
  5814. worksStudent[toolIndex].length > 6 &&
  5815. isCloseList[toolIndex].isClose == 0
  5816. "
  5817. >
  5818. 折叠
  5819. </div>
  5820. <div
  5821. class="corOpen"
  5822. @click="contract(toolIndex)"
  5823. v-if="isCloseList[toolIndex].isClose == 1"
  5824. >
  5825. 展开
  5826. </div>
  5827. </div>
  5828. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5829. </div>
  5830. <div
  5831. class="worksDetailBox"
  5832. v-if="
  5833. worksStudent.length &&
  5834. worksStudent[toolIndex].length > 0
  5835. "
  5836. >
  5837. <!-- @click="openXz(w, toolIndex)" -->
  5838. <div
  5839. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5840. 0
  5841. ? worksStudent[toolIndex]
  5842. : worksStudent[toolIndex].slice(0, 6)"
  5843. :key="wIndex"
  5844. class="isWorksName2"
  5845. @click="openSen(w, toolIndex)"
  5846. >
  5847. {{ w.sName }}
  5848. <img
  5849. class="deleteImg deleteImg2"
  5850. src="../../assets/deleteworks.png"
  5851. v-if="w.userid == userid || tType == 1 || tType == 4"
  5852. @click.stop="deleteWorks(w.wid)"
  5853. alt
  5854. />
  5855. </div>
  5856. </div>
  5857. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5858. 未提交
  5859. </div>
  5860. <div
  5861. class="noWorksS"
  5862. v-if="noWorksS && noWorksS[toolIndex].length"
  5863. >
  5864. <div
  5865. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5866. :key="sIndex"
  5867. class="noWorksName"
  5868. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5869. >
  5870. {{ s.student }}
  5871. </div>
  5872. </div>
  5873. </div>
  5874. <div
  5875. v-if="
  5876. tType &&
  5877. ((tType == 2 && sIsOpen == true) ||
  5878. tType == 1 ||
  5879. tType == 4) &&
  5880. tool.tool.indexOf(48) != -1
  5881. "
  5882. class="worksBox"
  5883. >
  5884. <div
  5885. class="zuoyeYulan"
  5886. v-if="
  5887. worksStudent.length &&
  5888. worksStudent[toolIndex].length > 0
  5889. "
  5890. >
  5891. <div class="worksTop">
  5892. <div>作业预览</div>
  5893. <div
  5894. class="corOpen"
  5895. @click="contract(toolIndex)"
  5896. v-if="
  5897. worksStudent[toolIndex].length > 6 &&
  5898. isCloseList[toolIndex].isClose == 0
  5899. "
  5900. >
  5901. 折叠
  5902. </div>
  5903. <div
  5904. class="corOpen"
  5905. @click="contract(toolIndex)"
  5906. v-if="isCloseList[toolIndex].isClose == 1"
  5907. >
  5908. 展开
  5909. </div>
  5910. </div>
  5911. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5912. </div>
  5913. <div
  5914. class="worksDetailBox"
  5915. v-if="
  5916. worksStudent.length &&
  5917. worksStudent[toolIndex].length > 0
  5918. "
  5919. >
  5920. <div
  5921. class="works"
  5922. style="
  5923. width: 200px;
  5924. height: 140px;
  5925. margin: 10px 10px 10px 0;
  5926. border-radius: 15px;
  5927. box-shadow: 0 0 6px 1px #dfdada;
  5928. "
  5929. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5930. 0
  5931. ? worksStudent[toolIndex]
  5932. : worksStudent[toolIndex].slice(0, 6)"
  5933. :key="wIndex"
  5934. :class="w.type == 1 ? 'isTypeOne' : ''"
  5935. >
  5936. <div class="workImg">
  5937. <img :src="word" @click="openTable(w)" alt />
  5938. <!-- @click="openFile(w.works)" -->
  5939. <div
  5940. class="answerScore"
  5941. v-if="w.score"
  5942. @click.stop="openScore(w)"
  5943. :class="{
  5944. rightW:
  5945. w.userid == userid ||
  5946. tType == 1 ||
  5947. tType == 4 ||
  5948. w.ateacher == userid,
  5949. }"
  5950. >
  5951. {{ JSON.parse(w.score).wScore }}分
  5952. </div>
  5953. <div
  5954. class="answerScore"
  5955. @click.stop="openScore(w)"
  5956. v-else-if="courseDetail.userid == userid"
  5957. :class="{
  5958. rightW:
  5959. w.userid == userid ||
  5960. tType == 1 ||
  5961. tType == 4 ||
  5962. w.ateacher == userid,
  5963. }"
  5964. >
  5965. 评分
  5966. </div>
  5967. <img
  5968. class="deleteImg"
  5969. src="../../assets/deleteworks.png"
  5970. v-if="
  5971. w.userid == userid || tType == 1 || tType == 4
  5972. "
  5973. @click.stop="deleteWorks(w.wid)"
  5974. alt
  5975. />
  5976. </div>
  5977. <div class="comment" style="min-width: 200px">
  5978. <div class="worksName">
  5979. <div>{{ w.sName }}</div>
  5980. </div>
  5981. <div class="commentList">
  5982. <div class="commentList">
  5983. <div
  5984. class="commentImg"
  5985. @click="
  5986. isLikes(w.wid, userid, 1, null, w.isLikes)
  5987. "
  5988. >
  5989. <img
  5990. :src="w.isLikes == true ? likes : noLikes"
  5991. alt=""
  5992. />
  5993. </div>
  5994. <div>{{ w.likesCount }}</div>
  5995. </div>
  5996. <div class="commentList" style="margin-right: 15px">
  5997. <div
  5998. class="commentImg"
  5999. @click="commentOther(w, toolIndex, wIndex)"
  6000. >
  6001. <img
  6002. src="../../assets/icon/comment/comment.png"
  6003. alt=""
  6004. />
  6005. </div>
  6006. <div>{{ w.commentCount }}</div>
  6007. </div>
  6008. </div>
  6009. </div>
  6010. </div>
  6011. </div>
  6012. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6013. 未提交
  6014. </div>
  6015. <div
  6016. class="noWorksS"
  6017. v-if="noWorksS && noWorksS[toolIndex].length"
  6018. >
  6019. <div
  6020. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6021. :key="sIndex"
  6022. class="noWorksName"
  6023. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6024. >
  6025. {{ s.student }}
  6026. </div>
  6027. </div>
  6028. </div>
  6029. <div
  6030. v-if="
  6031. tType &&
  6032. tType == 2 &&
  6033. !sIsOpen &&
  6034. tool.tool.indexOf(48) != -1
  6035. "
  6036. class="worksBox"
  6037. >
  6038. <div
  6039. class="zuoyeYulan"
  6040. v-if="workStudent[toolIndex].length > 0"
  6041. >
  6042. <span class="worksTitle">作业预览</span>
  6043. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6044. </div>
  6045. <div
  6046. class="worksDetailBox"
  6047. v-if="workStudent[toolIndex].length > 0"
  6048. >
  6049. <div
  6050. class="works"
  6051. style="
  6052. width: 200px;
  6053. height: 140px;
  6054. margin: 10px 10px 10px 0;
  6055. box-shadow: 0 0 6px 1px #dfdada;
  6056. "
  6057. v-for="(w, wIndex) in workStudent[toolIndex]"
  6058. :key="wIndex"
  6059. >
  6060. <div class="workImg">
  6061. <img :src="word" @click="openTable(w)" alt />
  6062. <div
  6063. class="answerScore"
  6064. v-if="w.score"
  6065. @click.stop="openScore(w)"
  6066. :class="{
  6067. rightW:
  6068. w.userid == userid || tType == 1 || tType == 4,
  6069. }"
  6070. >
  6071. {{ JSON.parse(w.score).wScore }}分
  6072. </div>
  6073. <div
  6074. class="answerScore"
  6075. @click.stop="openScore(w)"
  6076. v-else-if="courseDetail.userid == userid"
  6077. :class="{
  6078. rightW:
  6079. w.userid == userid || tType == 1 || tType == 4,
  6080. }"
  6081. >
  6082. 评分
  6083. </div>
  6084. <img
  6085. class="deleteImg"
  6086. src="../../assets/deleteworks.png"
  6087. v-if="
  6088. w.userid == userid || tType == 1 || tType == 4
  6089. "
  6090. @click.stop="deleteWorks(w.wid)"
  6091. alt
  6092. />
  6093. </div>
  6094. <div class="worksName">
  6095. <div>{{ w.sName }}</div>
  6096. </div>
  6097. </div>
  6098. </div>
  6099. </div>
  6100. <div
  6101. v-if="
  6102. tType &&
  6103. ((tType == 2 && sIsOpen == true) ||
  6104. tType == 1 ||
  6105. tType == 4) &&
  6106. tool.tool.indexOf(52) != -1
  6107. "
  6108. class="worksBox"
  6109. >
  6110. <div
  6111. class="zuoyeYulan"
  6112. v-if="
  6113. worksStudent.length &&
  6114. worksStudent[toolIndex].length > 0
  6115. "
  6116. >
  6117. <div class="worksTop">
  6118. <div>作业预览</div>
  6119. <div
  6120. class="corOpen"
  6121. @click="contract(toolIndex)"
  6122. v-if="
  6123. worksStudent[toolIndex].length > 6 &&
  6124. isCloseList[toolIndex].isClose == 0
  6125. "
  6126. >
  6127. 折叠
  6128. </div>
  6129. <div
  6130. class="corOpen"
  6131. @click="contract(toolIndex)"
  6132. v-if="isCloseList[toolIndex].isClose == 1"
  6133. >
  6134. 展开
  6135. </div>
  6136. </div>
  6137. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6138. </div>
  6139. <div
  6140. class="worksDetailBox"
  6141. v-if="
  6142. worksStudent.length &&
  6143. worksStudent[toolIndex].length > 0
  6144. "
  6145. >
  6146. <div
  6147. class="works"
  6148. style="
  6149. width: 200px;
  6150. height: 140px;
  6151. margin: 10px 10px 10px 0;
  6152. border-radius: 15px;
  6153. box-shadow: 0 0 6px 1px #dfdada;
  6154. "
  6155. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6156. 0
  6157. ? worksStudent[toolIndex]
  6158. : worksStudent[toolIndex].slice(0, 6)"
  6159. :key="wIndex"
  6160. :class="w.type == 1 ? 'isTypeOne' : ''"
  6161. >
  6162. <div class="workImg">
  6163. <img :src="word" @click="openWord(w)" alt />
  6164. <!-- @click="openFile(w.works)" -->
  6165. <div
  6166. class="answerScore"
  6167. v-if="w.score"
  6168. @click.stop="openScore(w)"
  6169. :class="{
  6170. rightW:
  6171. w.userid == userid ||
  6172. tType == 1 ||
  6173. tType == 4 ||
  6174. w.ateacher == userid,
  6175. }"
  6176. >
  6177. {{ JSON.parse(w.score).wScore }}分
  6178. </div>
  6179. <div
  6180. class="answerScore"
  6181. @click.stop="openScore(w)"
  6182. v-else-if="courseDetail.userid == userid"
  6183. :class="{
  6184. rightW:
  6185. w.userid == userid ||
  6186. tType == 1 ||
  6187. tType == 4 ||
  6188. w.ateacher == userid,
  6189. }"
  6190. >
  6191. 评分
  6192. </div>
  6193. <img
  6194. class="deleteImg"
  6195. src="../../assets/deleteworks.png"
  6196. v-if="
  6197. w.userid == userid || tType == 1 || tType == 4
  6198. "
  6199. @click.stop="deleteWorks(w.wid)"
  6200. alt
  6201. />
  6202. </div>
  6203. <div class="comment" style="min-width: 200px">
  6204. <div class="worksName">
  6205. <div>{{ w.sName }}</div>
  6206. </div>
  6207. <div class="commentList">
  6208. <div class="commentList">
  6209. <div
  6210. class="commentImg"
  6211. @click="
  6212. isLikes(w.wid, userid, 1, null, w.isLikes)
  6213. "
  6214. >
  6215. <img
  6216. :src="w.isLikes == true ? likes : noLikes"
  6217. alt=""
  6218. />
  6219. </div>
  6220. <div>{{ w.likesCount }}</div>
  6221. </div>
  6222. <div class="commentList" style="margin-right: 15px">
  6223. <div
  6224. class="commentImg"
  6225. @click="commentOther(w, toolIndex, wIndex)"
  6226. >
  6227. <img
  6228. src="../../assets/icon/comment/comment.png"
  6229. alt=""
  6230. />
  6231. </div>
  6232. <div>{{ w.commentCount }}</div>
  6233. </div>
  6234. </div>
  6235. </div>
  6236. </div>
  6237. </div>
  6238. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6239. 未提交
  6240. </div>
  6241. <div
  6242. class="noWorksS"
  6243. v-if="noWorksS && noWorksS[toolIndex].length"
  6244. >
  6245. <div
  6246. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6247. :key="sIndex"
  6248. class="noWorksName"
  6249. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6250. >
  6251. {{ s.student }}
  6252. </div>
  6253. </div>
  6254. </div>
  6255. <div
  6256. v-if="
  6257. tType &&
  6258. tType == 2 &&
  6259. !sIsOpen &&
  6260. tool.tool.indexOf(52) != -1
  6261. "
  6262. class="worksBox"
  6263. >
  6264. <div
  6265. class="zuoyeYulan"
  6266. v-if="workStudent[toolIndex].length > 0"
  6267. >
  6268. <span class="worksTitle">作业预览</span>
  6269. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6270. </div>
  6271. <div
  6272. class="worksDetailBox"
  6273. v-if="workStudent[toolIndex].length > 0"
  6274. >
  6275. <div
  6276. class="works"
  6277. style="
  6278. width: 200px;
  6279. height: 140px;
  6280. margin: 10px 10px 10px 0;
  6281. box-shadow: 0 0 6px 1px #dfdada;
  6282. "
  6283. v-for="(w, wIndex) in workStudent[toolIndex]"
  6284. :key="wIndex"
  6285. >
  6286. <div class="workImg">
  6287. <img :src="word" @click="openWord(w)" alt />
  6288. <div
  6289. class="answerScore"
  6290. v-if="w.score"
  6291. @click.stop="openScore(w)"
  6292. :class="{
  6293. rightW:
  6294. w.userid == userid || tType == 1 || tType == 4,
  6295. }"
  6296. >
  6297. {{ JSON.parse(w.score).wScore }}分
  6298. </div>
  6299. <div
  6300. class="answerScore"
  6301. @click.stop="openScore(w)"
  6302. v-else-if="courseDetail.userid == userid"
  6303. :class="{
  6304. rightW:
  6305. w.userid == userid || tType == 1 || tType == 4,
  6306. }"
  6307. >
  6308. 评分
  6309. </div>
  6310. <img
  6311. class="deleteImg"
  6312. src="../../assets/deleteworks.png"
  6313. v-if="
  6314. w.userid == userid || tType == 1 || tType == 4
  6315. "
  6316. @click.stop="deleteWorks(w.wid)"
  6317. alt
  6318. />
  6319. </div>
  6320. <div class="worksName">
  6321. <div>{{ w.sName }}</div>
  6322. </div>
  6323. </div>
  6324. </div>
  6325. </div>
  6326. <div
  6327. v-if="tool.tool.indexOf(49) != -1"
  6328. class="xuan_right_box"
  6329. style="margin: 0 15px 0 25px; width: 93%"
  6330. >
  6331. <div
  6332. v-if="courseDetail.userid == userid"
  6333. style="
  6334. display: flex;
  6335. justify-content: flex-end;
  6336. margin-right: 10px;
  6337. "
  6338. >
  6339. <el-button
  6340. type="primary"
  6341. size="small"
  6342. @click="addTools(49, toolIndex, taskCount)"
  6343. >分组设置</el-button
  6344. >
  6345. </div>
  6346. <div
  6347. v-if="groupStudentUid[toolIndex]"
  6348. class="group_staic_box"
  6349. >
  6350. <div
  6351. v-for="(gp, gd) in tool.groupJson.group"
  6352. :key="gd"
  6353. class="group_staic"
  6354. >
  6355. <span> {{ gp.name }}</span>
  6356. <span>
  6357. 目前人数{{
  6358. groupStudentUid[toolIndex][gd].length
  6359. }}人</span
  6360. >
  6361. </div>
  6362. </div>
  6363. </div>
  6364. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6365. <div
  6366. class="zuoyeYulan"
  6367. v-if="
  6368. worksStudent.length &&
  6369. worksStudent[toolIndex].length > 0
  6370. "
  6371. >
  6372. <span class="worksTitle">作业预览</span>
  6373. </div>
  6374. <div>
  6375. <div
  6376. class="group_workBox"
  6377. v-for="(g, gindex) in tool.groupJson.group"
  6378. :key="gindex"
  6379. >
  6380. <div
  6381. class="group_box"
  6382. v-if="
  6383. groupStudentUid[toolIndex] &&
  6384. worksStudent[toolIndex] &&
  6385. (worksStudent[toolIndex][gindex].length ||
  6386. groupStudentUid[toolIndex][gindex].indexOf(
  6387. userid
  6388. ) != -1)
  6389. "
  6390. >
  6391. <div class="group_title">
  6392. <el-tooltip
  6393. class="item"
  6394. effect="light"
  6395. :content="g.name"
  6396. placement="top"
  6397. >
  6398. <div class="group_name">{{ g.name }}</div>
  6399. </el-tooltip>
  6400. <el-button
  6401. type="primary"
  6402. v-if="
  6403. groupStudentUid[toolIndex][gindex].indexOf(
  6404. userid
  6405. ) != -1
  6406. "
  6407. @click="groupUpload(toolIndex, taskCount, gindex)"
  6408. >上传作业</el-button
  6409. >
  6410. </div>
  6411. <div class="group_work">
  6412. <div
  6413. class="works"
  6414. style="
  6415. width: 200px;
  6416. height: 140px;
  6417. margin: 10px 10px 10px 0;
  6418. border-radius: 15px;
  6419. box-shadow: 0 0 6px 1px #dfdada;
  6420. "
  6421. v-for="(w, wIndex) in worksStudent[toolIndex][
  6422. gindex
  6423. ]"
  6424. :key="wIndex"
  6425. :class="w.type == 1 ? 'isTypeOne' : ''"
  6426. >
  6427. <div class="workImg" v-if="w.type == 0">
  6428. <img
  6429. :src="w.works"
  6430. @click="previewImg(w.works)"
  6431. alt
  6432. />
  6433. <div
  6434. class="answerScore"
  6435. v-if="w.score"
  6436. @click.stop="openScore(w)"
  6437. :class="{
  6438. rightW:
  6439. w.userid == userid ||
  6440. tType == 1 ||
  6441. tType == 4 ||
  6442. w.ateacher == userid,
  6443. }"
  6444. >
  6445. {{ JSON.parse(w.score).wScore }}分
  6446. </div>
  6447. <div
  6448. class="answerScore"
  6449. @click.stop="openScore(w)"
  6450. v-else-if="courseDetail.userid == userid"
  6451. :class="{
  6452. rightW:
  6453. w.userid == userid ||
  6454. tType == 1 ||
  6455. tType == 4 ||
  6456. w.ateacher == userid,
  6457. }"
  6458. >
  6459. 评分
  6460. </div>
  6461. <img
  6462. class="deleteImg"
  6463. src="../../assets/deleteworks.png"
  6464. v-if="
  6465. w.userid == userid ||
  6466. tType == 1 ||
  6467. tType == 4
  6468. "
  6469. @click.stop="deleteWorks(w.wid)"
  6470. alt
  6471. />
  6472. </div>
  6473. <div class="workImg" v-if="w.type == 1">
  6474. <img
  6475. :src="word"
  6476. @click="openFile(w.works)"
  6477. alt
  6478. />
  6479. <!-- @click="openFile(w.works)" -->
  6480. <div
  6481. class="answerScore"
  6482. v-if="w.score"
  6483. @click.stop="openScore(w)"
  6484. :class="{
  6485. rightW:
  6486. w.userid == userid ||
  6487. tType == 1 ||
  6488. tType == 4 ||
  6489. w.ateacher == userid,
  6490. }"
  6491. >
  6492. {{ JSON.parse(w.score).wScore }}分
  6493. </div>
  6494. <div
  6495. class="answerScore"
  6496. @click.stop="openScore(w)"
  6497. v-else-if="courseDetail.userid == userid"
  6498. :class="{
  6499. rightW:
  6500. w.userid == userid ||
  6501. tType == 1 ||
  6502. tType == 4 ||
  6503. w.ateacher == userid,
  6504. }"
  6505. >
  6506. 评分
  6507. </div>
  6508. <img
  6509. class="deleteImg"
  6510. src="../../assets/deleteworks.png"
  6511. v-if="
  6512. w.userid == userid ||
  6513. tType == 1 ||
  6514. tType == 4
  6515. "
  6516. @click.stop="deleteWorks(w.wid)"
  6517. alt
  6518. />
  6519. </div>
  6520. <div class="workImg" v-if="w.type == 3">
  6521. <img
  6522. style="cursor: pointer"
  6523. :src="video"
  6524. @click="openVideo(w)"
  6525. alt
  6526. />
  6527. <!-- @click="openVideo(w.works)" -->
  6528. <div
  6529. class="answerScore"
  6530. v-if="w.score"
  6531. @click.stop="openScore(w)"
  6532. :class="{
  6533. rightW:
  6534. w.userid == userid ||
  6535. tType == 1 ||
  6536. tType == 4 ||
  6537. w.ateacher == userid,
  6538. }"
  6539. >
  6540. {{ JSON.parse(w.score).wScore }}分
  6541. </div>
  6542. <div
  6543. class="answerScore"
  6544. @click.stop="openScore(w)"
  6545. v-else-if="courseDetail.userid == userid"
  6546. :class="{
  6547. rightW:
  6548. w.userid == userid ||
  6549. tType == 1 ||
  6550. tType == 4 ||
  6551. w.ateacher == userid,
  6552. }"
  6553. >
  6554. 评分
  6555. </div>
  6556. <img
  6557. class="deleteImg"
  6558. src="../../assets/deleteworks.png"
  6559. v-if="
  6560. w.userid == userid ||
  6561. tType == 1 ||
  6562. tType == 4
  6563. "
  6564. @click.stop="deleteWorks(w.wid)"
  6565. alt
  6566. />
  6567. </div>
  6568. <div class="workImg" v-if="w.type == 12">
  6569. <img
  6570. style="cursor: pointer"
  6571. :src="word2"
  6572. @click="downloadFile(w.works)"
  6573. alt
  6574. />
  6575. <!-- @click="openVideo(w.works)" -->
  6576. <div
  6577. class="answerScore"
  6578. v-if="w.score"
  6579. @click.stop="openScore(w)"
  6580. :class="{
  6581. rightW:
  6582. w.userid == userid ||
  6583. tType == 1 ||
  6584. tType == 4 ||
  6585. w.ateacher == userid,
  6586. }"
  6587. >
  6588. {{ JSON.parse(w.score).wScore }}分
  6589. </div>
  6590. <div
  6591. class="answerScore"
  6592. @click.stop="openScore(w)"
  6593. v-else-if="courseDetail.userid == userid"
  6594. :class="{
  6595. rightW:
  6596. w.userid == userid ||
  6597. tType == 1 ||
  6598. tType == 4 ||
  6599. w.ateacher == userid,
  6600. }"
  6601. >
  6602. 评分
  6603. </div>
  6604. <img
  6605. class="deleteImg"
  6606. src="../../assets/deleteworks.png"
  6607. v-if="
  6608. w.userid == userid ||
  6609. tType == 1 ||
  6610. tType == 4
  6611. "
  6612. @click.stop="deleteWorks(w.wid)"
  6613. alt
  6614. />
  6615. </div>
  6616. <div class="comment" style="min-width: 200px">
  6617. <div class="worksName">
  6618. <div>{{ w.sName }}</div>
  6619. </div>
  6620. <div class="commentList">
  6621. <div class="commentList">
  6622. <div
  6623. class="commentImg"
  6624. @click="
  6625. isLikes(
  6626. w.wid,
  6627. userid,
  6628. 1,
  6629. null,
  6630. w.isLikes
  6631. )
  6632. "
  6633. >
  6634. <img
  6635. :src="
  6636. w.isLikes == true ? likes : noLikes
  6637. "
  6638. alt=""
  6639. />
  6640. </div>
  6641. <div>{{ w.likesCount }}</div>
  6642. </div>
  6643. <div
  6644. class="commentList"
  6645. style="margin-right: 15px"
  6646. >
  6647. <div
  6648. class="commentImg"
  6649. @click="
  6650. commentOther(
  6651. w,
  6652. toolIndex,
  6653. wIndex,
  6654. gindex
  6655. )
  6656. "
  6657. >
  6658. <img
  6659. src="../../assets/icon/comment/comment.png"
  6660. alt=""
  6661. />
  6662. </div>
  6663. <div>{{ w.commentCount }}</div>
  6664. </div>
  6665. </div>
  6666. </div>
  6667. </div>
  6668. </div>
  6669. </div>
  6670. </div>
  6671. </div>
  6672. </div>
  6673. </div>
  6674. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6675. 上传文件
  6676. <input
  6677. type="file"
  6678. accept="image/png, image/gif, image/jpeg"
  6679. style="display: none"
  6680. @change="beforeUpload1($event, 2, index)"
  6681. />
  6682. </div>-->
  6683. </div>
  6684. </div>
  6685. <!-- <div
  6686. class="vedioBox"
  6687. style="margin-top: 10px"
  6688. v-if="
  6689. courseDetail.userid == userid ||
  6690. (courseDetail.course_teacher &&
  6691. courseDetail.course_teacher.indexOf(userid) != -1)
  6692. "
  6693. :style="{
  6694. borderRadius:
  6695. !(
  6696. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6697. .toolChoose[0].tool &&
  6698. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6699. .toolChoose[0].tool.length > 0
  6700. ) &&
  6701. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6702. .taskDetail == '' &&
  6703. vChapterData[taskCount].length == 0 &&
  6704. fileC[taskCount].length == 0
  6705. ? '0 0 20px 20px'
  6706. : '20px',
  6707. }"
  6708. >
  6709. <div
  6710. class="queTop"
  6711. @click="isClose = !isClose"
  6712. style="
  6713. padding: 15px 0 15px 37px;
  6714. justify-content: space-between;
  6715. "
  6716. >
  6717. <div class="queTopTitle">新增工具</div>
  6718. <div class="queTopRight">
  6719. <div class="queTopClose" v-if="isClose == 0">
  6720. 展开
  6721. <div class="closeImg">
  6722. <img src="../../assets/icon/newIcon/close.png" alt="" />
  6723. </div>
  6724. </div>
  6725. <div class="queTopClose" v-if="isClose == 1">
  6726. 折叠
  6727. <div class="openImg">
  6728. <img src="../../assets/icon/newIcon/open.png" alt="" />
  6729. </div>
  6730. </div>
  6731. <el-button
  6732. style="margin: 0 30px 0 auto"
  6733. type="primary"
  6734. size="small"
  6735. v-if="isClose == 1 && checktoolArray.length > 0"
  6736. @click.stop="addToolChoose"
  6737. >确定</el-button
  6738. >
  6739. </div>
  6740. </div>
  6741. <div
  6742. class="tool_work_box"
  6743. :style="isClose == 0 ? 'display:none' : 'display:block'"
  6744. >
  6745. <div class="tool_box">
  6746. <div class="tool_type_box">
  6747. <div class="chooseWho">
  6748. <div
  6749. :class="toolType == 0 ? 'isChooseActive' : ''"
  6750. @click="(toolType = 0), $forceUpdate()"
  6751. >
  6752. 互动类
  6753. </div>
  6754. <div
  6755. :class="toolType == 1 ? 'isChooseActive' : ''"
  6756. @click="(toolType = 1), $forceUpdate()"
  6757. >
  6758. 思维类
  6759. </div>
  6760. <div
  6761. :class="toolType == 2 ? 'isChooseActive' : ''"
  6762. @click="(toolType = 2), $forceUpdate()"
  6763. >
  6764. 测评类
  6765. </div>
  6766. <div
  6767. :class="toolType == 3 ? 'isChooseActive' : ''"
  6768. @click="(toolType = 3), $forceUpdate()"
  6769. >
  6770. 编程类
  6771. </div>
  6772. <div
  6773. :class="toolType == 5 ? 'isChooseActive' : ''"
  6774. @click="(toolType = 5), $forceUpdate()"
  6775. >
  6776. 学科类
  6777. </div>
  6778. </div>
  6779. </div>
  6780. <div>
  6781. <div class="toolSort" v-if="toolType == 0">
  6782. <div class="tool">
  6783. <div class="whiteBIcon" @click="addTools2(10)">
  6784. <img
  6785. src="../../assets/icon/thirdToolList/time.png"
  6786. alt
  6787. />
  6788. <div style="margin: 5px 0">倒计时</div>
  6789. </div>
  6790. <div class="check" @click="addTools2(10)">
  6791. <img
  6792. src="../../assets/icon/checkNo.png"
  6793. alt
  6794. v-if="checktoolArray.indexOf(10) == -1"
  6795. />
  6796. <div class="checkDiv" v-else>
  6797. <img src="../../assets/icon/checkedIs.png" alt /><span
  6798. >已选择</span
  6799. >
  6800. </div>
  6801. </div>
  6802. </div>
  6803. <div class="tool">
  6804. <div class="whiteBIcon" @click="addTools2(65)">
  6805. <img
  6806. src="../../assets/icon/firstToolList/pickPeople.png"
  6807. alt
  6808. />
  6809. <div style="margin: 5px 0">挑人</div>
  6810. </div>
  6811. <div class="check" @click="addTools2(65)">
  6812. <img
  6813. src="../../assets/icon/checkNo.png"
  6814. alt
  6815. v-if="checktoolArray.indexOf(65) == -1"
  6816. />
  6817. <div class="checkDiv" v-else>
  6818. <img src="../../assets/icon/checkedIs.png" alt /><span
  6819. >已选择</span
  6820. >
  6821. </div>
  6822. </div>
  6823. </div>
  6824. </div>
  6825. <div class="toolSort" v-if="toolType == 1">
  6826. <div class="tool">
  6827. <div class="whiteBIcon" @click="addTools2(7)">
  6828. <img
  6829. src="../../assets/icon/secondToolList/mindNetwork.png"
  6830. alt
  6831. />
  6832. <div style="margin: 5px 0">思维网格</div>
  6833. </div>
  6834. <div class="check" @click="addTools2(7)">
  6835. <img
  6836. src="../../assets/icon/checkNo.png"
  6837. alt
  6838. v-if="checktoolArray.indexOf(7) == -1"
  6839. />
  6840. <div class="checkDiv" v-else>
  6841. <img src="../../assets/icon/checkedIs.png" alt /><span
  6842. >已选择</span
  6843. >
  6844. </div>
  6845. </div>
  6846. </div>
  6847. <div class="tool">
  6848. <div class="whiteBIcon" @click="addTools2(1)">
  6849. <img
  6850. src="../../assets/icon/secondToolList/whiteBoard.png"
  6851. alt
  6852. />
  6853. <div style="margin: 5px 0">电子白板</div>
  6854. </div>
  6855. <div class="check" @click="addTools2(1)">
  6856. <img
  6857. src="../../assets/icon/checkNo.png"
  6858. alt
  6859. v-if="checktoolArray.indexOf(1) == -1"
  6860. />
  6861. <div class="checkDiv" v-else>
  6862. <img src="../../assets/icon/checkedIs.png" alt /><span
  6863. >已选择</span
  6864. >
  6865. </div>
  6866. </div>
  6867. </div>
  6868. <div class="tool">
  6869. <div class="whiteBIcon" @click="addTools2(52)">
  6870. <img
  6871. src="../../assets/icon/fourthToolList/text.png"
  6872. alt
  6873. />
  6874. <div style="margin: 5px 0">文档</div>
  6875. </div>
  6876. <div class="check" @click="addTools2(52)">
  6877. <img
  6878. src="../../assets/icon/checkNo.png"
  6879. alt
  6880. v-if="checktoolArray.indexOf(52) == -1"
  6881. />
  6882. <div class="checkDiv" v-else>
  6883. <img src="../../assets/icon/checkedIs.png" alt /><span
  6884. >已选择</span
  6885. >
  6886. </div>
  6887. </div>
  6888. </div>
  6889. <div class="tool">
  6890. <div class="whiteBIcon" @click="addTools2(3)">
  6891. <img
  6892. src="../../assets/icon/secondToolList/mindMapping.png"
  6893. alt
  6894. />
  6895. <div style="margin: 5px 0">思维导图</div>
  6896. </div>
  6897. <div class="check" @click="addTools2(3)">
  6898. <img
  6899. src="../../assets/icon/checkNo.png"
  6900. alt
  6901. v-if="checktoolArray.indexOf(3) == -1"
  6902. />
  6903. <div class="checkDiv" v-else>
  6904. <img src="../../assets/icon/checkedIs.png" alt /><span
  6905. >已选择</span
  6906. >
  6907. </div>
  6908. </div>
  6909. </div>
  6910. <div class="tool">
  6911. <div class="whiteBIcon" @click="addTools2(48)">
  6912. <img
  6913. src="../../assets/icon/fourthToolList/table.png"
  6914. alt
  6915. />
  6916. <div style="margin: 5px 0">表格</div>
  6917. </div>
  6918. <div class="check" @click="addTools2(48)">
  6919. <img
  6920. src="../../assets/icon/checkNo.png"
  6921. alt
  6922. v-if="checktoolArray.indexOf(48) == -1"
  6923. />
  6924. <div class="checkDiv" v-else>
  6925. <img src="../../assets/icon/checkedIs.png" alt /><span
  6926. >已选择</span
  6927. >
  6928. </div>
  6929. </div>
  6930. </div>
  6931. </div>
  6932. <div class="toolSort" v-if="toolType == 6">
  6933. <div v-show="tooC == 49">
  6934. <img
  6935. @click="addTools(tooC, toolIndex, taskCount)"
  6936. src="../../assets/icon/fourthToolList/group.png"
  6937. alt
  6938. />
  6939. <div style="margin: 5px 0">学生分组</div>
  6940. </div>
  6941. </div>
  6942. <div class="toolSort" v-if="toolType == 2">
  6943. <div class="tool">
  6944. <div class="whiteBIcon" @click="addTools2(16)">
  6945. <img
  6946. src="../../assets/icon/thirdToolList/work.png"
  6947. alt
  6948. />
  6949. <div style="margin: 5px 0">作业提交</div>
  6950. </div>
  6951. <div class="check" @click="addTools2(16)">
  6952. <img
  6953. src="../../assets/icon/checkNo.png"
  6954. alt
  6955. v-if="checktoolArray.indexOf(16) == -1"
  6956. />
  6957. <div class="checkDiv" v-else>
  6958. <img src="../../assets/icon/checkedIs.png" alt /><span
  6959. >已选择</span
  6960. >
  6961. </div>
  6962. </div>
  6963. </div>
  6964. <div class="tool">
  6965. <div class="whiteBIcon" @click="addTools2(50)">
  6966. <img
  6967. src="../../assets/icon/thirdToolList/plwork.png"
  6968. alt
  6969. />
  6970. <div style="margin: 5px 0">批量上传</div>
  6971. </div>
  6972. <div class="check" @click="addTools2(50)">
  6973. <img
  6974. src="../../assets/icon/checkNo.png"
  6975. alt
  6976. v-if="checktoolArray.indexOf(50) == -1"
  6977. />
  6978. <div class="checkDiv" v-else>
  6979. <img src="../../assets/icon/checkedIs.png" alt /><span
  6980. >已选择</span
  6981. >
  6982. </div>
  6983. </div>
  6984. </div>
  6985. </div>
  6986. <div class="toolSort" v-if="toolType == 3">
  6987. <div class="tool">
  6988. <div class="whiteBIcon" @click="addTools2(18)">
  6989. <img
  6990. src="../../assets/icon/thirdToolList/trainPlatform.png"
  6991. alt
  6992. />
  6993. <div style="margin: 5px 0">训练平台</div>
  6994. </div>
  6995. <div class="check" @click="addTools2(18)">
  6996. <img
  6997. src="../../assets/icon/checkNo.png"
  6998. alt
  6999. v-if="checktoolArray.indexOf(18) == -1"
  7000. />
  7001. <div class="checkDiv" v-else>
  7002. <img src="../../assets/icon/checkedIs.png" alt /><span
  7003. >已选择</span
  7004. >
  7005. </div>
  7006. </div>
  7007. </div>
  7008. <div class="tool">
  7009. <div class="whiteBIcon" @click="addTools2(21)">
  7010. <img
  7011. src="../../assets/icon/fourthToolList/program.png"
  7012. alt
  7013. />
  7014. <div style="margin: 5px 0">AIoT Blockly</div>
  7015. </div>
  7016. <div class="check" @click="addTools2(21)">
  7017. <img
  7018. src="../../assets/icon/checkNo.png"
  7019. alt
  7020. v-if="checktoolArray.indexOf(21) == -1"
  7021. />
  7022. <div class="checkDiv" v-else>
  7023. <img src="../../assets/icon/checkedIs.png" alt /><span
  7024. >已选择</span
  7025. >
  7026. </div>
  7027. </div>
  7028. </div>
  7029. <div class="tool">
  7030. <div class="whiteBIcon" @click="addTools2(23)">
  7031. <img
  7032. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7033. alt
  7034. />
  7035. <div style="margin: 5px 0">AI Python</div>
  7036. </div>
  7037. <div class="check" @click="addTools2(23)">
  7038. <img
  7039. src="../../assets/icon/checkNo.png"
  7040. alt
  7041. v-if="checktoolArray.indexOf(23) == -1"
  7042. />
  7043. <div class="checkDiv" v-else>
  7044. <img src="../../assets/icon/checkedIs.png" alt /><span
  7045. >已选择</span
  7046. >
  7047. </div>
  7048. </div>
  7049. </div>
  7050. <div class="tool">
  7051. <div class="whiteBIcon" @click="addTools2(24)">
  7052. <img
  7053. src="../../assets/icon/fourthToolList/AIprogram.png"
  7054. alt
  7055. />
  7056. <div style="margin: 5px 0">AI Blockly</div>
  7057. </div>
  7058. <div class="check" @click="addTools2(24)">
  7059. <img
  7060. src="../../assets/icon/checkNo.png"
  7061. alt
  7062. v-if="checktoolArray.indexOf(24) == -1"
  7063. />
  7064. <div class="checkDiv" v-else>
  7065. <img src="../../assets/icon/checkedIs.png" alt /><span
  7066. >已选择</span
  7067. >
  7068. </div>
  7069. </div>
  7070. </div>
  7071. <div class="tool">
  7072. <div class="whiteBIcon" @click="addTools2(32)">
  7073. <img
  7074. src="../../assets/icon/thirdToolList/code.png"
  7075. alt
  7076. />
  7077. <div style="margin: 5px 0">源码编辑</div>
  7078. </div>
  7079. <div class="check" @click="addTools2(32)">
  7080. <img
  7081. src="../../assets/icon/checkNo.png"
  7082. alt
  7083. v-if="checktoolArray.indexOf(32) == -1"
  7084. />
  7085. <div class="checkDiv" v-else>
  7086. <img src="../../assets/icon/checkedIs.png" alt /><span
  7087. >已选择</span
  7088. >
  7089. </div>
  7090. </div>
  7091. </div>
  7092. <div class="tool">
  7093. <div class="whiteBIcon" @click="addTools2(57)">
  7094. <img
  7095. src="../../assets/icon/fourthToolList/cocopi.png"
  7096. alt
  7097. />
  7098. <div style="margin: 5px 0">CocoPi</div>
  7099. </div>
  7100. <div class="check" @click="addTools2(57)">
  7101. <img
  7102. src="../../assets/icon/checkNo.png"
  7103. alt
  7104. v-if="checktoolArray.indexOf(57) == -1"
  7105. />
  7106. <div class="checkDiv" v-else>
  7107. <img src="../../assets/icon/checkedIs.png" alt /><span
  7108. >已选择</span
  7109. >
  7110. </div>
  7111. </div>
  7112. </div>
  7113. <div class="tool">
  7114. <div class="whiteBIcon" @click="addTools2(63)">
  7115. <img
  7116. src="../../assets/icon/fourthToolList/Wood.png"
  7117. alt
  7118. />
  7119. <div style="margin: 5px 0">海龟编程</div>
  7120. </div>
  7121. <div class="check" @click="addTools2(63)">
  7122. <img
  7123. src="../../assets/icon/checkNo.png"
  7124. alt
  7125. v-if="checktoolArray.indexOf(63) == -1"
  7126. />
  7127. <div class="checkDiv" v-else>
  7128. <img src="../../assets/icon/checkedIs.png" alt /><span
  7129. >已选择</span
  7130. >
  7131. </div>
  7132. </div>
  7133. </div>
  7134. </div>
  7135. <div class="toolSort" v-if="toolType == 5">
  7136. <div class="tool">
  7137. <div class="whiteBIcon" @click="addTools2(28)">
  7138. <img
  7139. src="../../assets/icon/secondToolList/translation.png"
  7140. alt
  7141. />
  7142. <div style="margin: 5px 0">翻译</div>
  7143. </div>
  7144. <div class="check" @click="addTools2(28)">
  7145. <img
  7146. src="../../assets/icon/checkNo.png"
  7147. alt
  7148. v-if="checktoolArray.indexOf(28) == -1"
  7149. />
  7150. <div class="checkDiv" v-else>
  7151. <img src="../../assets/icon/checkedIs.png" alt /><span
  7152. >已选择</span
  7153. >
  7154. </div>
  7155. </div>
  7156. </div>
  7157. <div class="tool">
  7158. <div class="whiteBIcon" @click="addTools2(31)">
  7159. <img
  7160. src="../../assets/icon/secondToolList/networkPanel.png"
  7161. alt
  7162. />
  7163. <div style="margin: 5px 0">数字画板</div>
  7164. </div>
  7165. <div class="check" @click="addTools2(31)">
  7166. <img
  7167. src="../../assets/icon/checkNo.png"
  7168. alt
  7169. v-if="checktoolArray.indexOf(31) == -1"
  7170. />
  7171. <div class="checkDiv" v-else>
  7172. <img src="../../assets/icon/checkedIs.png" alt /><span
  7173. >已选择</span
  7174. >
  7175. </div>
  7176. </div>
  7177. </div>
  7178. <div class="tool">
  7179. <div class="whiteBIcon" @click="addTools2(39)">
  7180. <img
  7181. src="../../assets/icon/secondToolList/GeoGebra.png"
  7182. alt
  7183. />
  7184. <div style="margin: 5px 0">GeoGebra</div>
  7185. </div>
  7186. <div class="check" @click="addTools2(39)">
  7187. <img
  7188. src="../../assets/icon/checkNo.png"
  7189. alt
  7190. v-if="checktoolArray.indexOf(39) == -1"
  7191. />
  7192. <div class="checkDiv" v-else>
  7193. <img src="../../assets/icon/checkedIs.png" alt /><span
  7194. >已选择</span
  7195. >
  7196. </div>
  7197. </div>
  7198. </div>
  7199. <div class="tool">
  7200. <div class="whiteBIcon" @click="addTools2(66)">
  7201. <img
  7202. src="../../assets/icon/secondToolList/formulaEdi.png"
  7203. alt
  7204. />
  7205. <div style="margin: 5px 0">公式编辑</div>
  7206. </div>
  7207. <div class="check" @click="addTools2(66)">
  7208. <img
  7209. src="../../assets/icon/checkNo.png"
  7210. alt
  7211. v-if="checktoolArray.indexOf(66) == -1"
  7212. />
  7213. <div class="checkDiv" v-else>
  7214. <img src="../../assets/icon/checkedIs.png" alt /><span
  7215. >已选择</span
  7216. >
  7217. </div>
  7218. </div>
  7219. </div>
  7220. <div class="tool">
  7221. <div class="whiteBIcon" @click="addTools2(67)">
  7222. <img
  7223. src="../../assets/icon/secondToolList/molStr.png"
  7224. alt
  7225. />
  7226. <div style="margin: 5px 0">分子结构</div>
  7227. </div>
  7228. <div class="check" @click="addTools2(67)">
  7229. <img
  7230. src="../../assets/icon/checkNo.png"
  7231. alt
  7232. v-if="checktoolArray.indexOf(67) == -1"
  7233. />
  7234. <div class="checkDiv" v-else>
  7235. <img src="../../assets/icon/checkedIs.png" alt /><span
  7236. >已选择</span
  7237. >
  7238. </div>
  7239. </div>
  7240. </div>
  7241. <div class="tool">
  7242. <div class="whiteBIcon" @click="addTools2(68)">
  7243. <img
  7244. src="../../assets/icon/secondToolList/timeAxis.png"
  7245. alt
  7246. />
  7247. <div style="margin: 5px 0">时间轴</div>
  7248. </div>
  7249. <div class="check" @click="addTools2(68)">
  7250. <img
  7251. src="../../assets/icon/checkNo.png"
  7252. alt
  7253. v-if="checktoolArray.indexOf(68) == -1"
  7254. />
  7255. <div class="checkDiv" v-else>
  7256. <img src="../../assets/icon/checkedIs.png" alt /><span
  7257. >已选择</span
  7258. >
  7259. </div>
  7260. </div>
  7261. </div>
  7262. </div>
  7263. <div class="toolSort" v-if="toolType == 7">
  7264. <div class="tool">
  7265. <div class="whiteBIcon" @click="addTools2(40)">
  7266. <img
  7267. src="../../assets/icon/secondToolList/eval.png"
  7268. alt
  7269. />
  7270. <div style="margin: 5px 0">个人评价</div>
  7271. </div>
  7272. <div class="check" @click="addTools2(40)">
  7273. <img
  7274. src="../../assets/icon/checkNo.png"
  7275. alt
  7276. v-if="checktoolArray.indexOf(40) == -1"
  7277. />
  7278. <div class="checkDiv" v-else>
  7279. <img src="../../assets/icon/checkedIs.png" alt /><span
  7280. >已选择</span
  7281. >
  7282. </div>
  7283. </div>
  7284. </div>
  7285. </div>
  7286. <div class="toolSort" v-if="toolType == 4">
  7287. <div class="tool">
  7288. <div class="whiteBIcon" @click="addTools2(26)">
  7289. <img
  7290. src="../../assets/icon/thirdToolList/courseDesign.png"
  7291. alt
  7292. />
  7293. <div style="margin: 5px 0">课程设计</div>
  7294. </div>
  7295. <div class="check" @click="addTools2(26)">
  7296. <img
  7297. src="../../assets/icon/checkNo.png"
  7298. alt
  7299. v-if="checktoolArray.indexOf(26) == -1"
  7300. />
  7301. <div class="checkDiv" v-else>
  7302. <img src="../../assets/icon/checkedIs.png" alt /><span
  7303. >已选择</span
  7304. >
  7305. </div>
  7306. </div>
  7307. </div>
  7308. <div class="tool">
  7309. <div class="whiteBIcon" @click="addTools2(25)">
  7310. <img
  7311. src="../../assets/icon/thirdToolList/evalua.png"
  7312. alt
  7313. />
  7314. <div style="margin: 5px 0">目标管理</div>
  7315. </div>
  7316. <div class="check" @click="addTools2(25)">
  7317. <img
  7318. src="../../assets/icon/checkNo.png"
  7319. alt
  7320. v-if="checktoolArray.indexOf(25) == -1"
  7321. />
  7322. <div class="checkDiv" v-else>
  7323. <img src="../../assets/icon/checkedIs.png" alt /><span
  7324. >已选择</span
  7325. >
  7326. </div>
  7327. </div>
  7328. </div>
  7329. </div>
  7330. </div>
  7331. </div>
  7332. </div>
  7333. </div> -->
  7334. <div
  7335. class="vedioBox"
  7336. style="margin-top: 10px; border-radius: 20px"
  7337. v-if="
  7338. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7339. .eList &&
  7340. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7341. .eList.length &&
  7342. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7343. .eList.length > 0 &&
  7344. tType != 2
  7345. "
  7346. >
  7347. <div
  7348. class="queTop"
  7349. style="
  7350. font-size: 20px;
  7351. padding: 15px 0 15px 37px;
  7352. font-weight: bold;
  7353. "
  7354. >
  7355. <!-- <div class="question" style="width: 30px">
  7356. <img src="../../assets/icon/toolIcon.png" alt />
  7357. </div>
  7358. <div class="queTitle">
  7359. <div>工具</div>
  7360. </div>-->
  7361. 评一评
  7362. </div>
  7363. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7364. <div class="elist_input">
  7365. <el-table
  7366. :data="
  7367. chapInfoList[courseType].chapterInfo[0].taskJson[
  7368. taskCount
  7369. ].eList
  7370. "
  7371. :header-cell-style="{ background: '#F0F4FA' }"
  7372. :row-class-name="tableRowClassName"
  7373. border
  7374. stripe
  7375. style="width: 100%"
  7376. >
  7377. <el-table-column
  7378. label="评价名称"
  7379. width="180"
  7380. align="center"
  7381. >
  7382. <template slot-scope="scope"
  7383. ><div>{{ scope.row.value }}</div></template
  7384. >
  7385. </el-table-column>
  7386. <el-table-column
  7387. label="评价描述"
  7388. width="180"
  7389. align="center"
  7390. >
  7391. <template slot-scope="scope"
  7392. ><div>
  7393. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7394. </div></template
  7395. >
  7396. </el-table-column>
  7397. <el-table-column label="目标" align="center">
  7398. <template slot-scope="scope"
  7399. ><div>
  7400. {{
  7401. scope.row.target
  7402. ? scope.row.target[scope.row.target.length - 1]
  7403. : "-"
  7404. }}
  7405. </div></template
  7406. ></el-table-column
  7407. >
  7408. </el-table>
  7409. <!-- <div
  7410. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7411. .chapterInfo[0].taskJson[taskCount].eList"
  7412. :key="eIndex"
  7413. class="elist_input_box"
  7414. >
  7415. <div style="width: 95%">
  7416. <div
  7417. style="
  7418. display: flex;
  7419. flex-direction: row;
  7420. flex-wrap: nowrap;
  7421. align-items: center;
  7422. "
  7423. >
  7424. <div style="max-width: calc(100% - 285px)">
  7425. <span>{{ eItem.value }}</span>
  7426. </div>
  7427. <div
  7428. style="
  7429. padding-left: 25px;
  7430. display: flex;
  7431. flex-direction: row;
  7432. align-items: center;
  7433. "
  7434. >
  7435. <el-rate
  7436. v-model="eItem.score"
  7437. :colors="colors"
  7438. disabled
  7439. ></el-rate>
  7440. </div>
  7441. </div>
  7442. <div class="elist_inptu_text" style="padding-left: 10px">
  7443. <span v-if="eItem.detail != ''">{{
  7444. eItem.detail
  7445. }}</span>
  7446. <span v-else style="color: #b2b1b3; font-size: 14px"
  7447. >暂无描述...</span
  7448. >
  7449. </div>
  7450. </div>
  7451. </div> -->
  7452. </div>
  7453. <div
  7454. v-if="evalua"
  7455. style="
  7456. border: 1px solid #e5e5e5;
  7457. max-width: 650px;
  7458. width: 100%;
  7459. margin-top: 20px;
  7460. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7461. "
  7462. >
  7463. <div class="e_add_top">
  7464. <div class="e_add_title">
  7465. <span>目标管理名称</span>
  7466. <span>{{ eTitle }}</span>
  7467. <img
  7468. src="../../assets/line.png"
  7469. class="cru_line"
  7470. style="
  7471. width: 125px;
  7472. height: 20px;
  7473. bottom: -10px;
  7474. left: 120px;
  7475. "
  7476. />
  7477. <!-- <el-input
  7478. v-model="eTitle"
  7479. placeholder="请输入名称"
  7480. @change="setMindData"
  7481. ></el-input>-->
  7482. </div>
  7483. </div>
  7484. <div class="e_add_content">
  7485. <div class="e_add_list_pbox">
  7486. <div class="e_add_list_pbox_title">
  7487. <span class="type_title">切换模式</span>
  7488. <div class="type_content">
  7489. <span
  7490. :class="{ active: typeMode == 1 }"
  7491. @click="typeMode = 1"
  7492. >目标树</span
  7493. >
  7494. <span
  7495. :class="{ active: typeMode == 2 }"
  7496. @click="typeMode = 2"
  7497. >目标罗盘</span
  7498. >
  7499. <span
  7500. :class="{ active: typeMode == 3 }"
  7501. @click="typeMode = 3"
  7502. >目标看板</span
  7503. >
  7504. </div>
  7505. </div>
  7506. <div class="e_add_list_pbox_content">
  7507. <Mind
  7508. :showBar="false"
  7509. :mindData="data"
  7510. style="width: 100%"
  7511. v-show="typeMode == 1"
  7512. ></Mind>
  7513. <Sunburst
  7514. :Josn="eJson"
  7515. :num="eJSONNum"
  7516. style="width: 100%"
  7517. v-if="typeMode == 2"
  7518. ></Sunburst>
  7519. <SeeBoard
  7520. :Josn="eJson"
  7521. :num="eJSONNum"
  7522. :ename="eTitle"
  7523. style="width: 100%"
  7524. v-if="typeMode == 3"
  7525. >
  7526. </SeeBoard>
  7527. </div>
  7528. </div>
  7529. </div>
  7530. </div>
  7531. </div>
  7532. </div>
  7533. <!-- <div
  7534. class="project_box"
  7535. style="margin-top: 15px; padding-bottom: 30px"
  7536. >
  7537. <div
  7538. style="
  7539. display: flex;
  7540. flex-wrap: nowrap;
  7541. flex-direction: column;
  7542. position: relative;
  7543. "
  7544. >
  7545. <div class="queTop">
  7546. <div class="question">
  7547. <img src="../../assets/icon/homeWork.png" alt="" />
  7548. </div>
  7549. <div class="queTitle">
  7550. <div>作业提交<span>(提交图文视频等)</span></div>
  7551. <div>:任务:{{ task.task }}</div>
  7552. </div>
  7553. </div>
  7554. <div class="ediBottom">
  7555. <div
  7556. class="addEditor"
  7557. style="margin-top: 23px"
  7558. @click="openAddWork"
  7559. v-if="!isNoHomeWork"
  7560. >
  7561. 选择文件
  7562. </div>
  7563. <div
  7564. class="addEditor"
  7565. style="margin-top: 23px"
  7566. @click="openAddWork"
  7567. v-else
  7568. >
  7569. 已提交
  7570. </div>
  7571. </div>
  7572. </div>
  7573. </div>-->
  7574. </div>
  7575. </div>
  7576. <el-dialog
  7577. title="作业提交"
  7578. :visible.sync="dialogVisible"
  7579. :append-to-body="true"
  7580. width="500px"
  7581. :before-close="handleClose"
  7582. class="dialog_change"
  7583. >
  7584. <div class="marginT">
  7585. <div>上传文件</div>
  7586. <div
  7587. class="chapter_add"
  7588. @click="addImg($event)"
  7589. v-if="studyJuri[0].cover.length == 0"
  7590. >
  7591. <div class="up_photo">
  7592. <img src="../../assets/icon/uploadImg.png" alt />
  7593. </div>
  7594. <!-- <input
  7595. type="file"
  7596. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7597. style="display: none"
  7598. @change="beforeUpload1($event, 1)"
  7599. /> -->
  7600. <input
  7601. type="file"
  7602. accept="*"
  7603. style="display: none"
  7604. @change="beforeUpload1($event, 1)"
  7605. />
  7606. <!-- <input
  7607. type="file"
  7608. accept="image/*"
  7609. capture="camera"
  7610. style="display: none"
  7611. @change="beforeUpload1($event, 1)"
  7612. /> -->
  7613. </div>
  7614. <div
  7615. class="chapter_add"
  7616. style="
  7617. display: flex;
  7618. width: 100%;
  7619. flex-direction: row;
  7620. flex-wrap: wrap;
  7621. justify-content: flex-start;
  7622. padding: 15px 0;
  7623. "
  7624. v-if="studyJuri[0].cover.length > 0"
  7625. >
  7626. <div class="upCover">
  7627. <img
  7628. :src="studyJuri[0].cover[0].url"
  7629. alt
  7630. v-if="fileType == 0"
  7631. />
  7632. <img :src="word" alt v-else-if="fileType == 1" />
  7633. <img :src="video" alt v-else-if="fileType == 2" />
  7634. <img :src="word2" alt v-else-if="fileType == 3" />
  7635. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7636. <div class="deleteWord" @click="clean(1)">
  7637. <img src="../../assets/icon/deleteWorks.png" alt />
  7638. </div>
  7639. </div>
  7640. </div>
  7641. </div>
  7642. <div
  7643. class="upload_send"
  7644. @click="addCourseWorks(taskCount)"
  7645. v-if="!proVisible"
  7646. >
  7647. 提交
  7648. </div>
  7649. </el-dialog>
  7650. </div>
  7651. </div>
  7652. <div
  7653. class="pButton"
  7654. @click="(pzDialog = true), selectPz()"
  7655. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7656. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  7657. >
  7658. <!-- 批 -->
  7659. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  7660. </div>
  7661. <div v-if="pzDialog == true" class="newDialogCss">
  7662. <div class="pzTop2">
  7663. <!-- <div>批注</div>
  7664. <div @click="pzDialog = false">
  7665. <img src="../../assets/close1.png" alt="" />
  7666. </div> -->
  7667. <div class="checkbox">
  7668. <div class="check" style="font-size: 25px; position: unset">
  7669. 评课笔记
  7670. </div>
  7671. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  7672. <el-option label="时间降序" :value="1"></el-option>
  7673. <el-option label="时间升序" :value="2"></el-option>
  7674. <el-option label="我的评课" :value="3"></el-option>
  7675. </el-select>
  7676. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7677. </div>
  7678. </div>
  7679. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7680. <div class="pzListBox" v-if="pzList && pzList.length">
  7681. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7682. <div class="pzNavTop">
  7683. <div>批</div>
  7684. <div>
  7685. {{
  7686. pz.username && pz.username.length > 5
  7687. ? pz.username.substring(0, 5) + "..."
  7688. : pz.username
  7689. }}的批注
  7690. </div>
  7691. <div
  7692. class="pzDelete"
  7693. v-if="pz.userid == userid"
  7694. @click="deletePz(pz.id)"
  7695. >
  7696. 删除
  7697. </div>
  7698. </div>
  7699. <div
  7700. @click="checkImg(getImgList(pz.content))"
  7701. class="pzContent cont"
  7702. v-html="pz.content"
  7703. v-if="pz.type == '1'"
  7704. ></div>
  7705. <div class="pzContent" v-if="pz.type == '2'">
  7706. <audio :src="pz.content" controls="controls" ref="audio">
  7707. Your browser does not support the audio element.
  7708. </audio>
  7709. </div>
  7710. <div class="pzContent" v-if="pz.type == '3'">
  7711. <img
  7712. :src="pz.content"
  7713. style="width: 90%; margin: 0 auto; display: block"
  7714. @click="previewImg(pz.content)"
  7715. />
  7716. </div>
  7717. <div class="timeAndReply">
  7718. <div class="time">
  7719. {{ pz.time }}
  7720. </div>
  7721. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  7722. </div>
  7723. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  7724. <div
  7725. v-for="(h, hIndex) in pz.hfList"
  7726. :key="hIndex"
  7727. class="hfItem"
  7728. >
  7729. <div class="whoReplyWho">
  7730. <div class="hfName">{{ h.username }}</div>
  7731. <div class="hfImg">
  7732. <img src="../../assets/icon/newIcons/right.png" alt="" />
  7733. </div>
  7734. <div class="hfName">{{ pz.username }}</div>
  7735. </div>
  7736. <div class="hfContent" v-html="h.content"></div>
  7737. <div class="hfBottom">
  7738. <div class="hfTime">{{ h.time }}</div>
  7739. <div
  7740. class="deleteHfItem"
  7741. @click="deleteReply(h.id)"
  7742. v-if="userid == h.userid"
  7743. >
  7744. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  7745. </div>
  7746. </div>
  7747. </div>
  7748. </div>
  7749. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  7750. <div class="replyInput">
  7751. <el-input v-model="reply[pzIndex]"></el-input>
  7752. </div>
  7753. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  7754. </div> -->
  7755. </div>
  7756. </div>
  7757. <div class="noPz" v-else>
  7758. <img src="../../assets/icon/noPz.png" alt="" />
  7759. </div>
  7760. <div class="addPzButton">
  7761. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7762. 添加批注
  7763. </div>
  7764. <!-- <div class="img1">
  7765. <div @click="(addPzDialog = true), (pzType = 2)">
  7766. <img src="../../assets/audio.png" /><span>音频</span>
  7767. </div>
  7768. </div> -->
  7769. </div>
  7770. </div>
  7771. </div>
  7772. <div
  7773. v-if="toolDialogVisible == true"
  7774. class="toolMask"
  7775. @click="toolDialogVisible = false"
  7776. ></div>
  7777. <div v-if="toolDialogVisible == true" class="addToolCss">
  7778. <div class="toolTop">
  7779. <div style="font-weight: bold">新增工具</div>
  7780. <div @click="toolDialogVisible = false">
  7781. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  7782. </div>
  7783. </div>
  7784. <div class="tool_box">
  7785. <div class="tool_type_box">
  7786. <div class="chooseWho">
  7787. <div
  7788. :class="toolType == 0 ? 'isChooseActive' : ''"
  7789. @click="(toolType = 0), $forceUpdate()"
  7790. >
  7791. 互动类
  7792. </div>
  7793. <div
  7794. :class="toolType == 1 ? 'isChooseActive' : ''"
  7795. @click="(toolType = 1), $forceUpdate()"
  7796. >
  7797. 思维类
  7798. </div>
  7799. <div
  7800. :class="toolType == 2 ? 'isChooseActive' : ''"
  7801. @click="(toolType = 2), $forceUpdate()"
  7802. >
  7803. 测评类
  7804. </div>
  7805. <div
  7806. :class="toolType == 3 ? 'isChooseActive' : ''"
  7807. @click="(toolType = 3), $forceUpdate()"
  7808. >
  7809. 编程类
  7810. </div>
  7811. <div
  7812. :class="toolType == 5 ? 'isChooseActive' : ''"
  7813. @click="(toolType = 5), $forceUpdate()"
  7814. >
  7815. 学科类
  7816. </div>
  7817. </div>
  7818. </div>
  7819. <div>
  7820. <div class="toolSort" v-if="toolType == 0">
  7821. <div
  7822. class="tool"
  7823. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  7824. @click="addTools2(10)"
  7825. >
  7826. <div class="whiteBIcon">
  7827. <img src="../../assets/icon/thirdToolList/time.png" alt />
  7828. <div style="margin: 5px 0">倒计时</div>
  7829. </div>
  7830. <div class="check">
  7831. <div
  7832. v-if="checktoolArray.indexOf(10) == -1"
  7833. class="noChoose"
  7834. ></div>
  7835. <div v-else class="isChoose"></div>
  7836. </div>
  7837. </div>
  7838. <div
  7839. class="tool"
  7840. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  7841. @click="addTools2(65)"
  7842. >
  7843. <div class="whiteBIcon">
  7844. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  7845. <div style="margin: 5px 0">挑人</div>
  7846. </div>
  7847. <div class="check">
  7848. <div
  7849. v-if="checktoolArray.indexOf(65) == -1"
  7850. class="noChoose"
  7851. ></div>
  7852. <div v-else class="isChoose"></div>
  7853. </div>
  7854. </div>
  7855. </div>
  7856. <div class="toolSort" v-if="toolType == 1">
  7857. <div
  7858. class="tool"
  7859. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  7860. @click="addTools2(7)"
  7861. >
  7862. <div class="whiteBIcon">
  7863. <img
  7864. src="../../assets/icon/secondToolList/mindNetwork.png"
  7865. alt
  7866. />
  7867. <div style="margin: 5px 0">思维网格</div>
  7868. </div>
  7869. <div class="check">
  7870. <div
  7871. v-if="checktoolArray.indexOf(7) == -1"
  7872. class="noChoose"
  7873. ></div>
  7874. <div v-else class="isChoose"></div>
  7875. </div>
  7876. </div>
  7877. <div
  7878. class="tool"
  7879. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  7880. @click="addTools2(1)"
  7881. >
  7882. <div class="whiteBIcon">
  7883. <img
  7884. src="../../assets/icon/secondToolList/whiteBoard.png"
  7885. alt
  7886. />
  7887. <div style="margin: 5px 0">电子白板</div>
  7888. </div>
  7889. <div class="check">
  7890. <div
  7891. v-if="checktoolArray.indexOf(1) == -1"
  7892. class="noChoose"
  7893. ></div>
  7894. <div v-else class="isChoose"></div>
  7895. </div>
  7896. </div>
  7897. <div
  7898. class="tool"
  7899. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  7900. @click="addTools2(52)"
  7901. >
  7902. <div class="whiteBIcon">
  7903. <img src="../../assets/icon/fourthToolList/text.png" alt />
  7904. <div style="margin: 5px 0">文档</div>
  7905. </div>
  7906. <div class="check">
  7907. <div
  7908. v-if="checktoolArray.indexOf(52) == -1"
  7909. class="noChoose"
  7910. ></div>
  7911. <div v-else class="isChoose"></div>
  7912. </div>
  7913. </div>
  7914. <div
  7915. class="tool"
  7916. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  7917. @click="addTools2(3)"
  7918. >
  7919. <div class="whiteBIcon">
  7920. <img
  7921. src="../../assets/icon/secondToolList/mindMapping.png"
  7922. alt
  7923. />
  7924. <div style="margin: 5px 0">思维导图</div>
  7925. </div>
  7926. <div class="check">
  7927. <div
  7928. v-if="checktoolArray.indexOf(3) == -1"
  7929. class="noChoose"
  7930. ></div>
  7931. <div v-else class="isChoose"></div>
  7932. </div>
  7933. </div>
  7934. <div
  7935. class="tool"
  7936. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  7937. @click="addTools2(48)"
  7938. >
  7939. <div class="whiteBIcon">
  7940. <img src="../../assets/icon/fourthToolList/table.png" alt />
  7941. <div style="margin: 5px 0">表格</div>
  7942. </div>
  7943. <div class="check">
  7944. <div
  7945. v-if="checktoolArray.indexOf(48) == -1"
  7946. class="noChoose"
  7947. ></div>
  7948. <div v-else class="isChoose"></div>
  7949. </div>
  7950. </div>
  7951. </div>
  7952. <div class="toolSort" v-if="toolType == 6">
  7953. <div v-show="tooC == 49">
  7954. <img
  7955. @click="addTools(tooC, toolIndex, taskCount)"
  7956. src="../../assets/icon/fourthToolList/group.png"
  7957. alt
  7958. />
  7959. <div style="margin: 5px 0">学生分组</div>
  7960. </div>
  7961. </div>
  7962. <div class="toolSort" v-if="toolType == 2">
  7963. <div
  7964. class="tool"
  7965. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  7966. @click="addTools2(16)"
  7967. >
  7968. <div class="whiteBIcon">
  7969. <img src="../../assets/icon/thirdToolList/work.png" alt />
  7970. <div style="margin: 5px 0">作业提交</div>
  7971. </div>
  7972. <div class="check">
  7973. <div
  7974. v-if="checktoolArray.indexOf(16) == -1"
  7975. class="noChoose"
  7976. ></div>
  7977. <div v-else class="isChoose"></div>
  7978. </div>
  7979. </div>
  7980. <div
  7981. class="tool"
  7982. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  7983. @click="addTools2(50)"
  7984. >
  7985. <div class="whiteBIcon">
  7986. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  7987. <div style="margin: 5px 0">批量上传</div>
  7988. </div>
  7989. <div class="check">
  7990. <div
  7991. v-if="checktoolArray.indexOf(50) == -1"
  7992. class="noChoose"
  7993. ></div>
  7994. <div v-else class="isChoose"></div>
  7995. </div>
  7996. </div>
  7997. </div>
  7998. <div class="toolSort" v-if="toolType == 3">
  7999. <div
  8000. class="tool"
  8001. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8002. @click="addTools2(18)"
  8003. >
  8004. <div class="whiteBIcon">
  8005. <img
  8006. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8007. alt
  8008. />
  8009. <div style="margin: 5px 0">训练平台</div>
  8010. </div>
  8011. <div class="check">
  8012. <div
  8013. v-if="checktoolArray.indexOf(18) == -1"
  8014. class="noChoose"
  8015. ></div>
  8016. <div v-else class="isChoose"></div>
  8017. </div>
  8018. </div>
  8019. <div
  8020. class="tool"
  8021. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8022. @click="addTools2(21)"
  8023. >
  8024. <div class="whiteBIcon">
  8025. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8026. <div style="margin: 5px 0">AIoT Blockly</div>
  8027. </div>
  8028. <div class="check">
  8029. <div
  8030. v-if="checktoolArray.indexOf(21) == -1"
  8031. class="noChoose"
  8032. ></div>
  8033. <div v-else class="isChoose"></div>
  8034. </div>
  8035. </div>
  8036. <div
  8037. class="tool"
  8038. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8039. @click="addTools2(23)"
  8040. >
  8041. <div class="whiteBIcon">
  8042. <img
  8043. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8044. alt
  8045. />
  8046. <div style="margin: 5px 0">AI Python</div>
  8047. </div>
  8048. <div class="check">
  8049. <div
  8050. v-if="checktoolArray.indexOf(23) == -1"
  8051. class="noChoose"
  8052. ></div>
  8053. <div v-else class="isChoose"></div>
  8054. </div>
  8055. </div>
  8056. <div
  8057. class="tool"
  8058. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8059. @click="addTools2(24)"
  8060. >
  8061. <div class="whiteBIcon">
  8062. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8063. <div style="margin: 5px 0">AI Blockly</div>
  8064. </div>
  8065. <div class="check">
  8066. <div
  8067. v-if="checktoolArray.indexOf(24) == -1"
  8068. class="noChoose"
  8069. ></div>
  8070. <div v-else class="isChoose"></div>
  8071. </div>
  8072. </div>
  8073. <div
  8074. class="tool"
  8075. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8076. @click="addTools2(32)"
  8077. >
  8078. <div class="whiteBIcon">
  8079. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8080. <div style="margin: 5px 0">源码编辑</div>
  8081. </div>
  8082. <div class="check">
  8083. <div
  8084. v-if="checktoolArray.indexOf(32) == -1"
  8085. class="noChoose"
  8086. ></div>
  8087. <div v-else class="isChoose"></div>
  8088. </div>
  8089. </div>
  8090. <div
  8091. class="tool"
  8092. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8093. @click="addTools2(57)"
  8094. >
  8095. <div class="whiteBIcon">
  8096. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8097. <div style="margin: 5px 0">CocoPi</div>
  8098. </div>
  8099. <div class="check">
  8100. <div
  8101. v-if="checktoolArray.indexOf(57) == -1"
  8102. class="noChoose"
  8103. ></div>
  8104. <div v-else class="isChoose"></div>
  8105. </div>
  8106. </div>
  8107. <div
  8108. class="tool"
  8109. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8110. @click="addTools2(63)"
  8111. >
  8112. <div class="whiteBIcon">
  8113. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8114. <div style="margin: 5px 0">海龟编程</div>
  8115. </div>
  8116. <div class="check">
  8117. <div
  8118. v-if="checktoolArray.indexOf(63) == -1"
  8119. class="noChoose"
  8120. ></div>
  8121. <div v-else class="isChoose"></div>
  8122. </div>
  8123. </div>
  8124. </div>
  8125. <div class="toolSort" v-if="toolType == 7">
  8126. <div
  8127. class="tool"
  8128. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8129. @click="addTools2(40)"
  8130. >
  8131. <div class="whiteBIcon">
  8132. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8133. <div style="margin: 5px 0">个人评价</div>
  8134. </div>
  8135. <div class="check">
  8136. <div
  8137. v-if="checktoolArray.indexOf(40) == -1"
  8138. class="noChoose"
  8139. ></div>
  8140. <div v-else class="isChoose"></div>
  8141. </div>
  8142. </div>
  8143. </div>
  8144. <div class="toolSort" v-if="toolType == 5">
  8145. <div
  8146. class="tool"
  8147. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8148. @click="addTools2(28)"
  8149. >
  8150. <div class="whiteBIcon">
  8151. <img
  8152. src="../../assets/icon/secondToolList/translation.png"
  8153. alt
  8154. />
  8155. <div style="margin: 5px 0">翻译</div>
  8156. </div>
  8157. <div class="check">
  8158. <div
  8159. v-if="checktoolArray.indexOf(28) == -1"
  8160. class="noChoose"
  8161. ></div>
  8162. <div v-else class="isChoose"></div>
  8163. </div>
  8164. </div>
  8165. <div
  8166. class="tool"
  8167. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8168. @click="addTools2(31)"
  8169. >
  8170. <div class="whiteBIcon">
  8171. <img
  8172. src="../../assets/icon/secondToolList/networkPanel.png"
  8173. alt
  8174. />
  8175. <div style="margin: 5px 0">数字画板</div>
  8176. </div>
  8177. <div class="check">
  8178. <div
  8179. v-if="checktoolArray.indexOf(31) == -1"
  8180. class="noChoose"
  8181. ></div>
  8182. <div v-else class="isChoose"></div>
  8183. </div>
  8184. </div>
  8185. <div
  8186. class="tool"
  8187. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8188. @click="addTools2(39)"
  8189. >
  8190. <div class="whiteBIcon">
  8191. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8192. <div style="margin: 5px 0">GeoGebra</div>
  8193. </div>
  8194. <div class="check">
  8195. <div
  8196. v-if="checktoolArray.indexOf(39) == -1"
  8197. class="noChoose"
  8198. ></div>
  8199. <div v-else class="isChoose"></div>
  8200. </div>
  8201. </div>
  8202. <div
  8203. class="tool"
  8204. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8205. @click="addTools2(66)"
  8206. >
  8207. <div class="whiteBIcon">
  8208. <img
  8209. src="../../assets/icon/secondToolList/formulaEdi.png"
  8210. alt
  8211. />
  8212. <div style="margin: 5px 0">公式编辑</div>
  8213. </div>
  8214. <div class="check">
  8215. <div
  8216. v-if="checktoolArray.indexOf(66) == -1"
  8217. class="noChoose"
  8218. ></div>
  8219. <div v-else class="isChoose"></div>
  8220. </div>
  8221. </div>
  8222. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8223. <div class="whiteBIcon" @click="addTools2(67)">
  8224. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8225. <div style="margin: 5px 0">分子结构</div>
  8226. </div>
  8227. <div class="check" @click="addTools2(67)">
  8228. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8229. <div v-else class="isChoose"></div>
  8230. </div>
  8231. </div> -->
  8232. <div
  8233. class="tool"
  8234. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8235. @click="addTools2(68)"
  8236. >
  8237. <div class="whiteBIcon">
  8238. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8239. <div style="margin: 5px 0">时间轴</div>
  8240. </div>
  8241. <div class="check">
  8242. <div
  8243. v-if="checktoolArray.indexOf(68) == -1"
  8244. class="noChoose"
  8245. ></div>
  8246. <div v-else class="isChoose"></div>
  8247. </div>
  8248. </div>
  8249. <!-- <div
  8250. class="tool"
  8251. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8252. @click="addTools2(69)"
  8253. >
  8254. <div class="whiteBIcon">
  8255. <img src="../../assets/icon/secondToolList/english.png" alt />
  8256. <div style="margin: 5px 0">英语写作</div>
  8257. </div>
  8258. <div class="check">
  8259. <div
  8260. v-if="checktoolArray.indexOf(69) == -1"
  8261. class="noChoose"
  8262. ></div>
  8263. <div v-else class="isChoose"></div>
  8264. </div>
  8265. </div> -->
  8266. </div>
  8267. <div class="toolSort" v-if="toolType == 4">
  8268. <div
  8269. class="tool"
  8270. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8271. @click="addTools2(26)"
  8272. >
  8273. <div class="whiteBIcon">
  8274. <img
  8275. src="../../assets/icon/thirdToolList/courseDesign.png"
  8276. alt
  8277. />
  8278. <div style="margin: 5px 0">课程设计</div>
  8279. </div>
  8280. <div class="check">
  8281. <div
  8282. v-if="checktoolArray.indexOf(26) == -1"
  8283. class="noChoose"
  8284. ></div>
  8285. <div v-else class="isChoose"></div>
  8286. </div>
  8287. </div>
  8288. <div
  8289. class="tool"
  8290. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8291. @click="addTools2(25)"
  8292. >
  8293. <div class="whiteBIcon">
  8294. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8295. <div style="margin: 5px 0">目标管理</div>
  8296. </div>
  8297. <div class="check">
  8298. <div
  8299. v-if="checktoolArray.indexOf(25) == -1"
  8300. class="noChoose"
  8301. ></div>
  8302. <div v-else class="isChoose"></div>
  8303. </div>
  8304. </div>
  8305. </div>
  8306. </div>
  8307. </div>
  8308. <span
  8309. slot="footer"
  8310. class="dialog-footer"
  8311. style="display: block; text-align: center; padding: 0 0 10px 0"
  8312. >
  8313. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8314. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8315. </span>
  8316. </div>
  8317. <div
  8318. v-if="replyDialogVisible == true"
  8319. class="addDialogCss"
  8320. v-el-drag-dialog
  8321. >
  8322. <div class="pzTop">
  8323. <div class="teacherPz">
  8324. <div class="teacherPzImg">
  8325. <img src="../../assets/icon/teacherPz.png" alt="" />
  8326. </div>
  8327. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8328. </div>
  8329. <div @click="replyDialogVisible = false">
  8330. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8331. </div>
  8332. </div>
  8333. <div class="addPzBox">
  8334. <!-- <div class="addPzCheck">
  8335. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8336. >文本</span
  8337. >
  8338. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8339. >音频</span
  8340. >
  8341. </div> -->
  8342. <div style="height: calc(100% - 50px)">
  8343. <editor-bar
  8344. class="binfo_input pzConText"
  8345. style="width: 100% !important; margin: 0 auto"
  8346. placeholder="请输入回复描述"
  8347. v-model="reply"
  8348. @change="change"
  8349. ></editor-bar>
  8350. </div>
  8351. <div class="addTextCss" @click="addHf">确定</div>
  8352. </div>
  8353. </div>
  8354. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8355. <div class="pzTop">
  8356. <div class="teacherPz">
  8357. <div class="teacherPzImg">
  8358. <img src="../../assets/icon/teacherPz.png" alt="" />
  8359. </div>
  8360. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8361. </div>
  8362. <div @click="addPzDialog = false">
  8363. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8364. </div>
  8365. </div>
  8366. <div class="addPzBox">
  8367. <div class="addPzCheck">
  8368. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8369. >文本</span
  8370. >
  8371. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8372. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8373. >音频</span
  8374. >
  8375. </div>
  8376. <div style="height: calc(100% - 95px)">
  8377. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8378. v-if="pzType == 1"></textarea> -->
  8379. <editor-bar
  8380. class="binfo_input pzConText"
  8381. style="width: 100% !important"
  8382. placeholder="请输入任务描述"
  8383. v-model="pzConText"
  8384. @change="change"
  8385. v-if="pzType == 1"
  8386. ></editor-bar>
  8387. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8388. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8389. <div @click="addImg($event)">
  8390. <el-button type="primary">上传图片</el-button>
  8391. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8392. @change="beforeUpload1($event, 4)" />
  8393. </div>
  8394. </div> -->
  8395. </div>
  8396. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8397. 确定
  8398. </div>
  8399. </div>
  8400. </div>
  8401. <div v-if="proVisible" class="mask">
  8402. <div class="progressBox">
  8403. <!-- <div id="closePro" class="closeCss">
  8404. <img src="../../assets/icon/close.png" alt />
  8405. </div> -->
  8406. <div class="lbox">
  8407. <img src="../../assets/loading.gif" />上传中,请稍后
  8408. </div>
  8409. <div style="margin-bottom: 10px">
  8410. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8411. </div>
  8412. <el-progress
  8413. :text-inside="true"
  8414. :stroke-width="20"
  8415. :percentage="progress"
  8416. style="width: 80%"
  8417. ></el-progress>
  8418. </div>
  8419. </div>
  8420. <div v-if="proVisible2" class="mask">
  8421. <div class="progressBox">
  8422. <div class="lbox">
  8423. <img src="../../assets/loading.gif" />上传中,请稍后
  8424. </div>
  8425. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8426. </div>
  8427. </div>
  8428. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8429. <img width="100%" :src="dialogImageUrl" alt />
  8430. </el-dialog>
  8431. <el-dialog
  8432. :title="noteName != '' ? noteName : '查看问卷'"
  8433. :visible.sync="dialogVisible5"
  8434. :append-to-body="true"
  8435. width="1000px"
  8436. :before-close="handleClose"
  8437. class="dialog_diy dialog_diy3"
  8438. >
  8439. <div>
  8440. <div
  8441. class="a_add_title"
  8442. style="
  8443. display: flex;
  8444. flex-direction: row;
  8445. align-items: center;
  8446. justify-content: center;
  8447. "
  8448. >
  8449. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8450. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8451. </div>
  8452. <div class="a_addBox">
  8453. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8454. 题目内容
  8455. </div>
  8456. <div
  8457. class="a_add_box"
  8458. v-for="(item1, index1) in askJson.askCount"
  8459. :key="index1"
  8460. >
  8461. <div class="a_add_head">
  8462. <div style="display: flex">
  8463. <span class="askIndex"> {{ index1 + 1 }}</span>
  8464. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8465. </div>
  8466. <img
  8467. v-if="askJson.askJson[index1].img"
  8468. :src="askJson.askJson[index1].img"
  8469. style="height: 300px; margin-top: 10px; max-width: 100%"
  8470. />
  8471. </div>
  8472. <div class="a_add_body">
  8473. <div class="a_add_input">
  8474. <el-radio-group
  8475. v-model="radio[index1]"
  8476. v-if="
  8477. askJson.askJson[index1].type == '1' ||
  8478. !askJson.askJson[index1].type
  8479. "
  8480. >
  8481. <el-radio
  8482. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8483. .checkList"
  8484. :key="checkIndex"
  8485. :label="checkIndex"
  8486. :disabled="isAnswer"
  8487. class="redioStyle"
  8488. ><span v-html="item2"></span
  8489. ></el-radio>
  8490. </el-radio-group>
  8491. <el-checkbox-group
  8492. v-model="radio[index1]"
  8493. v-if="askJson.askJson[index1].type == '2'"
  8494. >
  8495. <el-checkbox
  8496. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8497. .checkList"
  8498. :key="checkIndex1"
  8499. :label="checkIndex1"
  8500. :disabled="isAnswer"
  8501. class="redioStyle"
  8502. ><span v-html="item2"></span>
  8503. </el-checkbox>
  8504. </el-checkbox-group>
  8505. </div>
  8506. </div>
  8507. </div>
  8508. </div>
  8509. </div>
  8510. <span slot="footer" class="dialog-footer">
  8511. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8512. >取 消</el-button
  8513. >
  8514. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8515. >确 定</el-button
  8516. >
  8517. </span>
  8518. </el-dialog>
  8519. <el-dialog
  8520. :title="noteName != '' ? noteName : '查看问卷'"
  8521. :visible.sync="dialogVisible5Teacher"
  8522. :append-to-body="true"
  8523. width="1000px"
  8524. :before-close="handleClose"
  8525. class="dialog_diy dialog_diy3"
  8526. >
  8527. <div>
  8528. <div class="w_name">
  8529. 学生姓名:<span>{{ sStudent.student }}</span>
  8530. </div>
  8531. <div
  8532. class="a_add_title"
  8533. style="
  8534. display: flex;
  8535. flex-direction: row;
  8536. align-items: center;
  8537. justify-content: center;
  8538. "
  8539. >
  8540. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8541. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8542. </div>
  8543. <div class="a_addBox">
  8544. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8545. 题目内容
  8546. </div>
  8547. <div
  8548. class="a_add_box"
  8549. v-for="(item1, index1) in askJson.askCount"
  8550. :key="index1"
  8551. >
  8552. <div class="a_add_head">
  8553. <div style="display: flex">
  8554. <span class="askIndex">{{ index1 + 1 }}</span>
  8555. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8556. </div>
  8557. <img
  8558. v-if="askJson.askJson[index1].img"
  8559. :src="askJson.askJson[index1].img"
  8560. style="height: 300px; margin-top: 10px; max-width: 100%"
  8561. />
  8562. </div>
  8563. <div class="a_add_body">
  8564. <div class="a_add_input">
  8565. <el-radio-group
  8566. v-model="radio[index1]"
  8567. v-if="
  8568. askJson.askJson[index1].type == '1' ||
  8569. !askJson.askJson[index1].type
  8570. "
  8571. >
  8572. <el-radio
  8573. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8574. .checkList"
  8575. :key="checkIndex"
  8576. :label="checkIndex"
  8577. :disabled="isAnswer"
  8578. class="redioStyle"
  8579. ><span v-html="item2"></span
  8580. ></el-radio>
  8581. </el-radio-group>
  8582. <el-checkbox-group
  8583. v-model="radio[index1]"
  8584. v-if="askJson.askJson[index1].type == '2'"
  8585. >
  8586. <el-checkbox
  8587. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8588. .checkList"
  8589. :key="checkIndex1"
  8590. :label="checkIndex1"
  8591. :disabled="isAnswer"
  8592. class="redioStyle"
  8593. ><span v-html="item2"></span>
  8594. </el-checkbox>
  8595. </el-checkbox-group>
  8596. </div>
  8597. </div>
  8598. </div>
  8599. </div>
  8600. </div>
  8601. <span slot="footer" class="dialog-footer">
  8602. <el-button
  8603. @click="dialogVisible5Teacher = false"
  8604. v-show="noteName == ''"
  8605. >取 消</el-button
  8606. >
  8607. <el-button
  8608. type="primary"
  8609. @click="addStudentAskTeacher"
  8610. v-show="noteName == ''"
  8611. >确 定</el-button
  8612. >
  8613. </span>
  8614. </el-dialog>
  8615. <el-dialog
  8616. :title="noteName != '' ? noteName : '查看选择题'"
  8617. :visible.sync="dialogVisibleChoice"
  8618. :append-to-body="true"
  8619. width="1000px"
  8620. :before-close="handleClose"
  8621. class="dialog_diy dialog_diy3"
  8622. >
  8623. <div>
  8624. <!-- <div class="a_add_title" style="
  8625. display: flex;
  8626. flex-direction: row;
  8627. align-items: center;
  8628. justify-content: center;
  8629. ">
  8630. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8631. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  8632. </div> -->
  8633. <div class="a_addBox">
  8634. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8635. 题目内容
  8636. </div>
  8637. <div
  8638. class="a_add_box"
  8639. v-for="(item1, index1) in testJson.testCount"
  8640. :key="index1"
  8641. >
  8642. <div class="a_add_head">
  8643. <div style="display: flex">
  8644. <span class="askIndex">{{ index1 + 1 }}</span>
  8645. <div
  8646. v-if="testJson.testJson[index1].type == '1'"
  8647. style="margin-right: 5px; min-width: 70px"
  8648. >
  8649. (单选题)
  8650. </div>
  8651. <div
  8652. v-if="testJson.testJson[index1].type == '2'"
  8653. style="margin-right: 5px; min-width: 70px"
  8654. >
  8655. (多选题)
  8656. </div>
  8657. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8658. </div>
  8659. <img
  8660. v-if="testJson.testJson[index1].img"
  8661. :src="testJson.testJson[index1].img"
  8662. style="height: 300px; margin-top: 10px; max-width: 100%"
  8663. />
  8664. </div>
  8665. <div
  8666. class="timuImgBox"
  8667. v-if="
  8668. testJson.testJson[index1].timuList &&
  8669. testJson.testJson[index1].timuList.length
  8670. "
  8671. >
  8672. <div
  8673. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8674. :key="tIndex"
  8675. class="timuImg"
  8676. @click.stop="previewImg(timg.src)"
  8677. >
  8678. <img :src="timg.src" alt="" />
  8679. </div>
  8680. </div>
  8681. <div class="a_add_body">
  8682. <div class="a_add_input">
  8683. <el-radio-group
  8684. v-model="radio[index1]"
  8685. v-if="testJson.testJson[index1].type == '1'"
  8686. >
  8687. <div class="radioBox">
  8688. <el-radio
  8689. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8690. .checkList"
  8691. :key="checkIndex"
  8692. :label="checkIndex"
  8693. :disabled="isAnswer"
  8694. class="redioStyle"
  8695. >
  8696. <div
  8697. style="margin-right: 10px"
  8698. v-if="item2 && item2.imgType && item2.imgType == 1"
  8699. >
  8700. <div class="inImg" @click.stop="previewImg(item2.src)">
  8701. <img :src="item2.src" alt="" />
  8702. </div>
  8703. </div>
  8704. <span v-else v-html="item2"></span>
  8705. </el-radio>
  8706. </div>
  8707. </el-radio-group>
  8708. <el-checkbox-group
  8709. v-model="radio[index1]"
  8710. v-if="testJson.testJson[index1].type == '2'"
  8711. >
  8712. <div class="radioBox">
  8713. <el-checkbox
  8714. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8715. .checkList"
  8716. :key="checkIndex"
  8717. :label="checkIndex"
  8718. :disabled="isAnswer"
  8719. class="redioStyle"
  8720. >
  8721. <div
  8722. style="margin-right: 10px"
  8723. v-if="item2 && item2.imgType && item2.imgType == 1"
  8724. >
  8725. <div class="inImg" @click.stop="previewImg(item2.src)">
  8726. <img :src="item2.src" alt="" />
  8727. </div>
  8728. </div>
  8729. <span v-else v-html="item2"></span>
  8730. </el-checkbox>
  8731. </div>
  8732. </el-checkbox-group>
  8733. </div>
  8734. </div>
  8735. </div>
  8736. </div>
  8737. </div>
  8738. <span slot="footer" class="dialog-footer">
  8739. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  8740. >取 消</el-button
  8741. >
  8742. <el-button
  8743. type="primary"
  8744. @click="addStudentTest"
  8745. v-show="noteName == ''"
  8746. >确 定</el-button
  8747. >
  8748. </span>
  8749. </el-dialog>
  8750. <el-dialog
  8751. :title="noteName != '' ? noteName : '查看选择题'"
  8752. :visible.sync="dialogVisibleChoiceTeacher"
  8753. :append-to-body="true"
  8754. width="1000px"
  8755. :before-close="handleClose"
  8756. class="dialog_diy dialog_diy3"
  8757. >
  8758. <div>
  8759. <div class="w_name">
  8760. 学生姓名:<span>{{ sStudent.student }}</span>
  8761. </div>
  8762. <div class="a_addBox">
  8763. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8764. 题目内容
  8765. </div>
  8766. <div
  8767. class="a_add_box"
  8768. v-for="(item1, index1) in testJson.testCount"
  8769. :key="index1"
  8770. >
  8771. <div class="a_add_head">
  8772. <div style="display: flex">
  8773. <span class="askIndex">{{ index1 + 1 }}</span>
  8774. <div
  8775. v-if="testJson.testJson[index1].type == '1'"
  8776. style="margin-right: 5px; min-width: 70px"
  8777. >
  8778. (单选题)
  8779. </div>
  8780. <div
  8781. v-if="testJson.testJson[index1].type == '2'"
  8782. style="margin-right: 5px; min-width: 70px"
  8783. >
  8784. (多选题)
  8785. </div>
  8786. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8787. </div>
  8788. <img
  8789. v-if="testJson.testJson[index1].img"
  8790. :src="testJson.testJson[index1].img"
  8791. style="height: 300px; margin-top: 10px; max-width: 100%"
  8792. />
  8793. </div>
  8794. <div
  8795. class="timuImgBox"
  8796. v-if="
  8797. testJson.testJson[index1].timuList &&
  8798. testJson.testJson[index1].timuList.length
  8799. "
  8800. >
  8801. <div
  8802. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8803. :key="tIndex"
  8804. class="timuImg"
  8805. @click.stop="previewImg(timg.src)"
  8806. >
  8807. <img :src="timg.src" alt="" />
  8808. </div>
  8809. </div>
  8810. <div class="a_add_body">
  8811. <div class="a_add_input">
  8812. <el-radio-group
  8813. v-model="radio[index1]"
  8814. v-if="testJson.testJson[index1].type == '1'"
  8815. >
  8816. <div class="radioBox">
  8817. <el-radio
  8818. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8819. .checkList"
  8820. :key="checkIndex"
  8821. :label="checkIndex"
  8822. :disabled="isAnswer"
  8823. class="redioStyle"
  8824. >
  8825. <div
  8826. style="margin-right: 10px"
  8827. v-if="item2 && item2.imgType && item2.imgType == 1"
  8828. >
  8829. <div class="inImg" @click.stop="previewImg(item2.src)">
  8830. <img :src="item2.src" alt="" />
  8831. </div>
  8832. </div>
  8833. <span v-else v-html="item2"></span>
  8834. </el-radio>
  8835. </div>
  8836. </el-radio-group>
  8837. <el-checkbox-group
  8838. v-model="radio[index1]"
  8839. v-if="testJson.testJson[index1].type == '2'"
  8840. >
  8841. <div class="radioBox">
  8842. <el-checkbox
  8843. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8844. .checkList"
  8845. :key="checkIndex"
  8846. :label="checkIndex"
  8847. :disabled="isAnswer"
  8848. class="redioStyle"
  8849. >
  8850. <div
  8851. style="margin-right: 10px"
  8852. v-if="item2 && item2.imgType && item2.imgType == 1"
  8853. >
  8854. <div class="inImg" @click.stop="previewImg(item2.src)">
  8855. <img :src="item2.src" alt="" />
  8856. </div>
  8857. </div>
  8858. <span v-else v-html="item2"></span>
  8859. </el-checkbox>
  8860. </div>
  8861. </el-checkbox-group>
  8862. </div>
  8863. </div>
  8864. </div>
  8865. </div>
  8866. </div>
  8867. <span slot="footer" class="dialog-footer">
  8868. <el-button
  8869. @click="dialogVisibleChoiceTeacher = false"
  8870. v-show="noteName == ''"
  8871. >取 消</el-button
  8872. >
  8873. <el-button
  8874. type="primary"
  8875. @click="addStudentTestTeacher"
  8876. v-show="noteName == ''"
  8877. >确 定</el-button
  8878. >
  8879. </span>
  8880. </el-dialog>
  8881. <el-dialog
  8882. title="查看富文本"
  8883. :visible.sync="dialogVisible1"
  8884. :append-to-body="true"
  8885. width="500px"
  8886. :before-close="handleClose"
  8887. class="dialog_diy textCss"
  8888. >
  8889. <el-form style="font-size: 20px">
  8890. <el-form-item label="文本标题" class="textTitle">
  8891. <div style="font-size: 20px">{{ text.name }}</div>
  8892. </el-form-item>
  8893. <div>富文本内容</div>
  8894. <div
  8895. v-html="text.url"
  8896. style="font-size: 18px; padding: 40px 0 0 0"
  8897. ></div>
  8898. </el-form>
  8899. <span slot="footer" class="dialog-footer">
  8900. <el-button type="primary" @click="dialogVisible1 = false"
  8901. >确定</el-button
  8902. >
  8903. </span>
  8904. </el-dialog>
  8905. <el-dialog
  8906. title="文件预览"
  8907. :visible.sync="dialogVisible3"
  8908. width="50%"
  8909. :before-close="handleClose"
  8910. class="dialog_diy"
  8911. :class="{ fullStyle: full }"
  8912. >
  8913. <div slot="title" class="header-title">
  8914. <div style="color: #fff">文件预览</div>
  8915. <div style="position: absolute; top: 19px; right: 50px">
  8916. <img
  8917. src="../../assets/full.png"
  8918. style="height: 16px; cursor: pointer"
  8919. alt=""
  8920. @click="fullTools"
  8921. />
  8922. </div>
  8923. </div>
  8924. <pdf
  8925. v-if="showPDF"
  8926. :pdfUrl="pptImgUrl"
  8927. style="width: 100%; height: 520px; overflow: auto"
  8928. :class="{ fullStyle: full }"
  8929. ></pdf>
  8930. <iframe
  8931. v-else
  8932. :src="pptImgUrl"
  8933. frameborder="0"
  8934. width="100%"
  8935. height="600"
  8936. :class="{ fullStyle: full }"
  8937. ></iframe>
  8938. </el-dialog>
  8939. <el-dialog
  8940. title="文件预览"
  8941. :visible.sync="dialogVisible6"
  8942. width="50%"
  8943. :before-close="handleClose"
  8944. class="dialog_diy"
  8945. >
  8946. <iframe
  8947. :src="pptImgUrl1"
  8948. frameborder="0"
  8949. width="100%"
  8950. height="600"
  8951. ></iframe>
  8952. </el-dialog>
  8953. <el-dialog
  8954. title="提示"
  8955. :visible.sync="dialogVisible4"
  8956. :append-to-body="true"
  8957. width="800px"
  8958. :before-close="handleClose"
  8959. class="dialog_diy notice"
  8960. >
  8961. <div>此功能暂未开放!</div>
  8962. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  8963. </el-dialog>
  8964. <el-dialog
  8965. title="问答"
  8966. :visible.sync="answerDialogVisible"
  8967. :append-to-body="true"
  8968. width="800px"
  8969. :before-close="handleClose"
  8970. class="dialog_diy"
  8971. >
  8972. <div>
  8973. <div
  8974. style="
  8975. display: flex;
  8976. flex-wrap: nowrap;
  8977. flex-direction: column;
  8978. position: relative;
  8979. "
  8980. >
  8981. <div class="queTop" style="padding: 20px 0 20px 0">
  8982. <div class="question">
  8983. <img src="../../assets/icon/question.png" alt />
  8984. </div>
  8985. <div class="queTitle">
  8986. <div style="width: 90px; min-width: 90px">提问:</div>
  8987. <div>{{ answerQ }}</div>
  8988. </div>
  8989. </div>
  8990. <div class="ediBottom">
  8991. <textarea
  8992. rows="6"
  8993. class="binfo_input"
  8994. cols
  8995. style="width: 95%; height: 120px"
  8996. v-model="questionAnswer"
  8997. ></textarea>
  8998. </div>
  8999. </div>
  9000. </div>
  9001. <div slot="footer">
  9002. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9003. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9004. </div>
  9005. </el-dialog>
  9006. <el-dialog
  9007. title="问答"
  9008. :visible.sync="answerDialogVisibleTeacher"
  9009. :append-to-body="true"
  9010. width="800px"
  9011. :before-close="handleClose"
  9012. class="dialog_diy"
  9013. >
  9014. <div>
  9015. <div class="w_name">
  9016. 学生姓名:<span>{{ sStudent.student }}</span>
  9017. </div>
  9018. <div
  9019. style="
  9020. display: flex;
  9021. flex-wrap: nowrap;
  9022. flex-direction: column;
  9023. position: relative;
  9024. "
  9025. >
  9026. <div class="queTop" style="padding: 20px 0 20px 0">
  9027. <div class="question">
  9028. <img src="../../assets/icon/question.png" alt />
  9029. </div>
  9030. <div class="queTitle">
  9031. <div style="width: 90px; min-width: 90px">提问:</div>
  9032. <div>{{ answerQ }}</div>
  9033. </div>
  9034. </div>
  9035. <div class="ediBottom">
  9036. <textarea
  9037. rows="6"
  9038. class="binfo_input"
  9039. cols
  9040. style="width: 95%; height: 120px"
  9041. v-model="questionAnswer"
  9042. ></textarea>
  9043. </div>
  9044. </div>
  9045. </div>
  9046. <div slot="footer">
  9047. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9048. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9049. </div>
  9050. </el-dialog>
  9051. <el-dialog
  9052. title="倒计时"
  9053. :visible.sync="timeDialogVisible"
  9054. :append-to-body="true"
  9055. width="800px"
  9056. :before-close="handleClose"
  9057. class="dialog_diy"
  9058. >
  9059. <div>
  9060. <div style="margin-bottom: 20px; color: #999">
  9061. 提示:点击“+”或“-”修改倒计时时长。
  9062. </div>
  9063. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9064. </div>
  9065. <div slot="footer">
  9066. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9067. </div>
  9068. </el-dialog>
  9069. <el-dialog
  9070. title="权限设置"
  9071. :visible.sync="juriVisible"
  9072. :append-to-body="true"
  9073. width="400px"
  9074. :before-close="handleClose"
  9075. class="dialog_diy"
  9076. >
  9077. <div>
  9078. <div class="open_box">
  9079. <div class="switch_box">
  9080. <span>允许学生查看所有作业</span>
  9081. <el-switch
  9082. v-model="sIsOpen"
  9083. active-text=""
  9084. class="switchCss"
  9085. @change="updateSLook"
  9086. ></el-switch>
  9087. </div>
  9088. <div
  9089. class="switch_box"
  9090. v-if="
  9091. courseDetail.userid == userid ||
  9092. (courseDetail.course_teacher &&
  9093. courseDetail.course_teacher.indexOf(userid) != -1)
  9094. "
  9095. >
  9096. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9097. <span>禁止学生查看所有阶段</span>
  9098. <el-switch
  9099. v-model="IsLookOpen"
  9100. active-text=""
  9101. class="switchCss"
  9102. @change="updateLookOpen"
  9103. ></el-switch>
  9104. </div>
  9105. <div class="switch_box" v-if="courseDetail.userid == userid">
  9106. <span>开启跟随模式</span>
  9107. <el-switch
  9108. v-model="IsFollow"
  9109. active-text=""
  9110. class="switchCss"
  9111. @change="updateFollow"
  9112. ></el-switch>
  9113. </div>
  9114. </div>
  9115. </div>
  9116. <div slot="footer">
  9117. <el-button
  9118. style="background: #409efe; color: #fff"
  9119. @click="juriVisible = false"
  9120. >关 闭</el-button
  9121. >
  9122. </div>
  9123. </el-dialog>
  9124. <el-dialog
  9125. title="查看视频"
  9126. :visible.sync="videoVisible"
  9127. :append-to-body="true"
  9128. width="1000px"
  9129. :before-close="handleClose"
  9130. class="dialog_diy1"
  9131. >
  9132. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9133. <video-player
  9134. class="video-player vjs-custom-skin"
  9135. :playsinline="true"
  9136. :options="videoDetail"
  9137. @play="onPlayerPlay($event)"
  9138. style="width: 100%; height: 100%"
  9139. ></video-player>
  9140. </div>
  9141. <div slot="footer">
  9142. <el-button
  9143. style="background: #409efe; color: #fff"
  9144. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9145. >
  9146. 关 闭</el-button
  9147. >
  9148. </div>
  9149. </el-dialog>
  9150. <el-dialog
  9151. title="查看详情"
  9152. :visible.sync="commentDialogVisible"
  9153. :append-to-body="true"
  9154. width="800px"
  9155. :before-close="handleClose"
  9156. class="dialog_diy"
  9157. >
  9158. <div class="commentTop">
  9159. <div class="studentDetail">
  9160. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9161. <div class="nameAndTime">
  9162. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9163. <div>{{ commentDetail.time }}</div>
  9164. </div>
  9165. <div
  9166. class="returnBtn"
  9167. style="margin-left: auto; width: 80px"
  9168. v-if="
  9169. commentDetail.works &&
  9170. commentDetail.type == 0 &&
  9171. (tType == 1 || tType == 4)
  9172. "
  9173. @click="
  9174. showPicturePaint(
  9175. commentDetail.img ? commentDetail.img : commentDetail.works
  9176. )
  9177. "
  9178. >
  9179. 教师批注
  9180. </div>
  9181. </div>
  9182. <div
  9183. class="worksAnswer"
  9184. v-if="commentDetail.works && commentDetail.type == 2"
  9185. >
  9186. {{ JSON.parse(commentDetail.works)[0].answer }}
  9187. </div>
  9188. <div
  9189. class="worksAnswer"
  9190. v-if="commentDetail.works && commentDetail.type == 1"
  9191. >
  9192. <img
  9193. src="../../assets/teacherWork.png"
  9194. v-if="commentDetail.ateacher"
  9195. class="w_teachert"
  9196. />
  9197. <pdf
  9198. v-if="showPDF"
  9199. :pdfUrl="pptImgUrl"
  9200. style="width: 100%; height: 520px; overflow: auto"
  9201. :class="{ fullStyle: full }"
  9202. ></pdf>
  9203. <iframe
  9204. v-else
  9205. :src="pptImgUrl"
  9206. frameborder="0"
  9207. width="100%"
  9208. height="600"
  9209. :class="{ fullStyle: full }"
  9210. ></iframe>
  9211. </div>
  9212. <div
  9213. class="worksAnswer"
  9214. v-if="commentDetail.works && commentDetail.type == 0"
  9215. >
  9216. <img
  9217. src="../../assets/teacherWork.png"
  9218. v-if="commentDetail.ateacher"
  9219. class="w_teachert"
  9220. style="right: 105px"
  9221. />
  9222. <img
  9223. :src="commentDetail.works"
  9224. alt=""
  9225. @click="previewImg(commentDetail.works)"
  9226. />
  9227. </div>
  9228. <div
  9229. class="worksAnswer"
  9230. v-if="commentDetail.works && commentDetail.type == 3"
  9231. >
  9232. <img
  9233. src="../../assets/teacherWork.png"
  9234. v-if="commentDetail.ateacher"
  9235. class="w_teachert"
  9236. />
  9237. <video-player
  9238. class="video-player vjs-custom-skin"
  9239. :playsinline="true"
  9240. :options="videoDetail"
  9241. @play="onPlayerPlay($event)"
  9242. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9243. ></video-player>
  9244. </div>
  9245. <div
  9246. class="worksAnswer"
  9247. v-if="commentDetail.works && commentDetail.type == 10"
  9248. >
  9249. <div class="cont" v-html="commentDetail.works.text"></div>
  9250. </div>
  9251. <div
  9252. class="worksAnswer codeFileBox"
  9253. v-if="commentDetail.works && commentDetail.type == 12"
  9254. @click="downloadFile(commentDetail.works)"
  9255. >
  9256. <img src="../../assets/icon/codeFile.png" />
  9257. <div>点击下载文件</div>
  9258. </div>
  9259. <div
  9260. class="worksAnswer codeFileBox"
  9261. v-if="commentDetail.works && commentDetail.type == 15"
  9262. @click="
  9263. openCocoPi(
  9264. 57,
  9265. commentIndexJson.toolIndex,
  9266. commentDetail.userid,
  9267. commentDetail.sName
  9268. )
  9269. "
  9270. >
  9271. <img src="../../assets/icon/codeFile.png" />
  9272. <div>点击打开CocoPi</div>
  9273. </div>
  9274. <div
  9275. class="worksAnswer"
  9276. v-if="commentDetail.works && commentDetail.type == 13"
  9277. >
  9278. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9279. </div>
  9280. <div
  9281. class="worksAnswer"
  9282. v-if="commentDetail.works && commentDetail.type == 4"
  9283. >
  9284. <div class="evalCss">
  9285. <div class="nav">请选择星星进行评分</div>
  9286. <div class="middleBox" v-if="eScore.eStar">
  9287. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9288. <div class="nameAndrate">
  9289. <div>{{ e.value }}</div>
  9290. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9291. </div>
  9292. <div v-if="e.detail">{{ e.detail }}</div>
  9293. </div>
  9294. <div class="bz">
  9295. <textarea
  9296. disabled
  9297. rows="4"
  9298. class="pj"
  9299. style="
  9300. padding: 10px 5px;
  9301. width: 70%;
  9302. background: #f7f6f9;
  9303. font-size: 14px;
  9304. text-indent: 10px;
  9305. color: #000;
  9306. "
  9307. cols
  9308. v-model="eScore.eBzText"
  9309. placeholder="请输入评价内容..."
  9310. ></textarea>
  9311. </div>
  9312. </div>
  9313. </div>
  9314. </div>
  9315. <div class="comment">
  9316. <div class="commentList">
  9317. <div class="commentImg">
  9318. <img
  9319. @click="
  9320. isLikes(
  9321. commentDetail.wid,
  9322. userid,
  9323. 1,
  9324. null,
  9325. commentDetail.isLikes
  9326. )
  9327. "
  9328. :src="commentDetail.isLikes == true ? likes : noLikes"
  9329. alt=""
  9330. />
  9331. </div>
  9332. <div>{{ commentDetail.likesCount }}</div>
  9333. </div>
  9334. <div class="commentList">
  9335. <div class="commentImg">
  9336. <img src="../../assets/icon/comment/comment.png" alt="" />
  9337. </div>
  9338. <div>{{ commentDetail.commentCount }}</div>
  9339. </div>
  9340. </div>
  9341. <div class="drawPBox" v-if="commentDetail.img">
  9342. <span>教师批注</span>
  9343. <img
  9344. :src="commentDetail.img"
  9345. alt=""
  9346. @click="previewImg(commentDetail.img)"
  9347. />
  9348. <span
  9349. class="deleteImg"
  9350. v-if="tType == 1 || tType == 4"
  9351. @click.stop="deletePicturePaint(commentDetail.wid)"
  9352. style="
  9353. font-size: 14px;
  9354. width: auto !important;
  9355. color: #b4b4b4;
  9356. top: unset;
  9357. bottom: 0;
  9358. border: none;
  9359. padding: 0;
  9360. height: auto !important;
  9361. margin: 0;
  9362. "
  9363. >删除</span
  9364. >
  9365. </div>
  9366. </div>
  9367. <div class="commentBox">
  9368. <div class="pl">评论:</div>
  9369. <div style="max-height: 200px; overflow: auto">
  9370. <div
  9371. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9372. style="padding: 10px 0 0 0"
  9373. >
  9374. <div
  9375. class="studentDetail"
  9376. style="padding-top: 10px"
  9377. v-for="(co, coIndex) in commentDetail.commentJson"
  9378. :key="coIndex"
  9379. >
  9380. <div class="tx" style="min-width: 50px">
  9381. <img src="../../assets/avatar.png" alt="" />
  9382. </div>
  9383. <div class="plPerson">
  9384. <div class="plName">
  9385. <div>{{ co.commentPeople }}</div>
  9386. <div style="margin-left: 5px">
  9387. {{ co.commentTime }}
  9388. </div>
  9389. <div
  9390. class="deleteComment"
  9391. v-if="userid == co.userid"
  9392. @click="deleteComment(co.wid)"
  9393. >
  9394. 删除
  9395. </div>
  9396. </div>
  9397. <div class="plContent">{{ co.commentText }}</div>
  9398. </div>
  9399. </div>
  9400. </div>
  9401. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9402. </div>
  9403. </div>
  9404. <div style="margin-top: 10px">
  9405. <div class="displayBox">
  9406. <div
  9407. style="
  9408. color: #556db4;
  9409. font-size: 14px;
  9410. font-weight: bold;
  9411. padding-bottom: 10px;
  9412. "
  9413. >
  9414. 评价
  9415. </div>
  9416. <div class="easy_comment" v-if="false">
  9417. <div
  9418. v-for="(p, pIndex) in PlTextList"
  9419. :key="pIndex"
  9420. @click="fastText(p, 1)"
  9421. >
  9422. {{ p }}
  9423. </div>
  9424. </div>
  9425. </div>
  9426. <div>
  9427. <textarea
  9428. rows="3"
  9429. class="pj"
  9430. style="padding: 10px 5px"
  9431. cols
  9432. v-model="commentText"
  9433. placeholder="请输入评论"
  9434. ></textarea>
  9435. </div>
  9436. </div>
  9437. <div slot="footer">
  9438. <el-button
  9439. @click="
  9440. (commentDialogVisible = false),
  9441. (commentIndexJson = {}),
  9442. videoDetail.sources && videoDetail.sources[0]
  9443. ? (videoDetail.sources[0].src = '')
  9444. : ''
  9445. "
  9446. >取 消</el-button
  9447. >
  9448. <el-button
  9449. type="primary"
  9450. @click="addComment(commentDetail.wid, userid, 2)"
  9451. >确 定</el-button
  9452. >
  9453. </div>
  9454. </el-dialog>
  9455. <el-dialog
  9456. title="查看文档"
  9457. :visible.sync="fullDialogVisible"
  9458. :append-to-body="true"
  9459. width="100%"
  9460. :before-close="handleClose"
  9461. :show-close="false"
  9462. class="dialog_diy full_diy"
  9463. :class="{ full_diy2: fulltype == 3 }"
  9464. >
  9465. <div slot="title" class="header-title">
  9466. <div style="color: #fff">查看文档</div>
  9467. <div
  9468. @click="fullDialogVisible = false"
  9469. style="
  9470. cursor: pointer;
  9471. position: absolute;
  9472. top: 20px;
  9473. right: 20px;
  9474. color: #fff;
  9475. "
  9476. >
  9477. 退出全屏
  9478. </div>
  9479. </div>
  9480. <div style="height: 100%">
  9481. <div
  9482. class="wheel"
  9483. v-if="
  9484. fulltype == 2 &&
  9485. fullUrl.indexOf(
  9486. 'https://view.officeapps.live.com/op/view.aspx?src='
  9487. ) != -1
  9488. "
  9489. style="width: 95%; margin: 0 auto"
  9490. >
  9491. <iframe
  9492. style="width: 100%; height: 100%; border: none"
  9493. :src="fullUrl"
  9494. ></iframe>
  9495. </div>
  9496. <iframe
  9497. v-else-if="fulltype == 2"
  9498. style="width: 100%; height: 100%; border: none"
  9499. :src="fullUrl"
  9500. security="restricted"
  9501. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9502. ></iframe>
  9503. <pdf
  9504. v-else-if="fulltype == 3"
  9505. :pdfUrl="fullUrl"
  9506. style="width: 100%; height: 100%; overflow: auto"
  9507. ></pdf>
  9508. <div
  9509. class="wheel"
  9510. v-if="fulltype == 1"
  9511. style="
  9512. box-shadow: 0 0 6px 1px #f2f2f2;
  9513. width: 100%;
  9514. background: #f1f1f1;
  9515. "
  9516. >
  9517. <div class="title" style="width: 100%; box-sizing: border-box">
  9518. 查看文档
  9519. </div>
  9520. <el-form class="textBox" style="height: 90%">
  9521. <el-form-item class="textTitle">
  9522. <div style="font-size: 22px">
  9523. {{ fullUrl.name }}
  9524. </div>
  9525. </el-form-item>
  9526. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9527. <div
  9528. v-html="fullUrl.url"
  9529. class="textContent"
  9530. style="height: auto"
  9531. ></div>
  9532. </el-form>
  9533. </div>
  9534. </div>
  9535. <!-- <div slot="footer">
  9536. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9537. </div> -->
  9538. </el-dialog>
  9539. <el-dialog
  9540. title="个人评价"
  9541. :visible.sync="studentEvalDialogVisible"
  9542. :append-to-body="true"
  9543. width="800px"
  9544. :before-close="handleClose"
  9545. class="dialog_diy"
  9546. >
  9547. <div class="evalCss">
  9548. <div class="nav">请选择星星进行评分</div>
  9549. <div class="middleBox" v-if="eScore.eStar">
  9550. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9551. <div class="nameAndrate">
  9552. <div>{{ e.value }}</div>
  9553. <el-rate
  9554. v-model="eScore.eStar[eIndex]"
  9555. :disabled="isStar"
  9556. ></el-rate>
  9557. </div>
  9558. <div v-if="e.detail">{{ e.detail }}</div>
  9559. </div>
  9560. <div class="easy_comment" v-if="false">
  9561. <div
  9562. v-for="(p, pIndex) in PlTextList"
  9563. :key="pIndex"
  9564. @click="fastText(p, 2)"
  9565. >
  9566. {{ p }}
  9567. </div>
  9568. </div>
  9569. <div class="bz">
  9570. <textarea
  9571. :disabled="isStar"
  9572. rows="4"
  9573. class="pj"
  9574. style="
  9575. padding: 10px 5px;
  9576. width: 70%;
  9577. background: #f7f6f9;
  9578. font-size: 14px;
  9579. text-indent: 10px;
  9580. "
  9581. cols
  9582. v-model="eScore.eBzText"
  9583. placeholder="请输入评价内容..."
  9584. ></textarea>
  9585. </div>
  9586. </div>
  9587. </div>
  9588. <div slot="footer">
  9589. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9590. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9591. >确 定</el-button
  9592. >
  9593. </div>
  9594. </el-dialog>
  9595. <el-dialog
  9596. title="个人评价"
  9597. :visible.sync="studentEvalDialogVisibleTeacher"
  9598. :append-to-body="true"
  9599. width="800px"
  9600. :before-close="handleClose"
  9601. class="dialog_diy"
  9602. >
  9603. <div class="w_name">
  9604. 学生姓名:<span>{{ sStudent.student }}</span>
  9605. </div>
  9606. <div class="evalCss">
  9607. <div class="nav">请选择星星进行评分</div>
  9608. <div class="middleBox" v-if="eScore.eStar">
  9609. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9610. <div class="nameAndrate">
  9611. <div>{{ e.value }}</div>
  9612. <el-rate
  9613. v-model="eScore.eStar[eIndex]"
  9614. :disabled="isStar"
  9615. ></el-rate>
  9616. </div>
  9617. <div v-if="e.detail">{{ e.detail }}</div>
  9618. </div>
  9619. <div class="easy_comment" v-if="false">
  9620. <div
  9621. v-for="(p, pIndex) in PlTextList"
  9622. :key="pIndex"
  9623. @click="fastText(p, 2)"
  9624. >
  9625. {{ p }}
  9626. </div>
  9627. </div>
  9628. <div class="bz">
  9629. <textarea
  9630. :disabled="isStar"
  9631. rows="4"
  9632. class="pj"
  9633. style="
  9634. padding: 10px 5px;
  9635. width: 70%;
  9636. background: #f7f6f9;
  9637. font-size: 14px;
  9638. text-indent: 10px;
  9639. "
  9640. cols
  9641. v-model="eScore.eBzText"
  9642. placeholder="请输入评价内容..."
  9643. ></textarea>
  9644. </div>
  9645. </div>
  9646. </div>
  9647. <div slot="footer">
  9648. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9649. >取 消</el-button
  9650. >
  9651. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9652. >确 定</el-button
  9653. >
  9654. </div>
  9655. </el-dialog>
  9656. <el-dialog
  9657. title="选择匹配"
  9658. :visible.sync="dialogVisibleSelect"
  9659. :append-to-body="true"
  9660. width="90%"
  9661. :before-close="handleClose"
  9662. class="dialog_diy dialog_diy3"
  9663. >
  9664. <div v-if="selectJson">
  9665. <div class="select_box2">
  9666. <div class="select_box2_title">
  9667. <div>选择匹配</div>
  9668. <div>请选择对应的答案进行答题!</div>
  9669. </div>
  9670. <div class="select_box2_box">
  9671. <div class="select_box2_img">
  9672. <img
  9673. :src="selectJson.url"
  9674. @click="previewImg(selectJson.url)"
  9675. alt=""
  9676. />
  9677. </div>
  9678. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9679. <div style="padding-top: 15px">
  9680. <div class="select_answer_title" v-if="isSelect">
  9681. {{ selectAnswer.stu }}
  9682. </div>
  9683. <div class="select_answer_title" v-else>
  9684. 根据题目选择对应答案
  9685. </div>
  9686. <div
  9687. class="select_box2_answer_box"
  9688. v-for="(item2, checkIndex) in selectJson.select"
  9689. :key="checkIndex"
  9690. >
  9691. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9692. <el-select
  9693. :disabled="isSelect"
  9694. v-model="selectAnswer.answer[checkIndex]"
  9695. placeholder="请选择正确答案"
  9696. >
  9697. <el-option
  9698. v-for="(e, eIndex) in selectJson.select"
  9699. :key="eIndex"
  9700. :label="e"
  9701. :value="eIndex"
  9702. >
  9703. </el-option>
  9704. </el-select>
  9705. </div>
  9706. </div>
  9707. <div
  9708. class="rightAnswerCss"
  9709. v-if="isSelect && (tType == 1 || tType == 4)"
  9710. >
  9711. <div
  9712. v-for="(a, aIndex) in selectJson.answer"
  9713. :key="aIndex"
  9714. class="rightAnswer"
  9715. >
  9716. <div
  9717. v-if="selectAnswer.answer[aIndex] === a"
  9718. style="color: #767de1"
  9719. >
  9720. 回答正确
  9721. </div>
  9722. <div v-else>回答错误</div>
  9723. <div
  9724. style="margin-left: 10px"
  9725. v-if="selectAnswer.answer[aIndex] !== a"
  9726. >
  9727. 正确答案:
  9728. </div>
  9729. <div
  9730. :class="
  9731. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9732. "
  9733. >
  9734. {{ selectJson.select[a] }}
  9735. </div>
  9736. </div>
  9737. </div>
  9738. </div>
  9739. <div class="upAnswerCss">
  9740. <el-button
  9741. type="primary"
  9742. @click="addSelectAnswer"
  9743. v-if="!isSelect"
  9744. >提交答案</el-button
  9745. >
  9746. </div>
  9747. </div>
  9748. </div>
  9749. </div>
  9750. </el-dialog>
  9751. <el-dialog
  9752. title="选择匹配"
  9753. :visible.sync="dialogVisibleSelectTeacher"
  9754. :append-to-body="true"
  9755. width="90%"
  9756. :before-close="handleClose"
  9757. class="dialog_diy dialog_diy3"
  9758. >
  9759. <div v-if="selectJson">
  9760. <div class="w_name">
  9761. 学生姓名:<span>{{ sStudent.student }}</span>
  9762. </div>
  9763. <div class="select_box2">
  9764. <div class="select_box2_title">
  9765. <div>选择匹配</div>
  9766. <div>请选择对应的答案进行答题!</div>
  9767. </div>
  9768. <div class="select_box2_box">
  9769. <div class="select_box2_img">
  9770. <img
  9771. :src="selectJson.url"
  9772. @click="previewImg(selectJson.url)"
  9773. alt=""
  9774. />
  9775. </div>
  9776. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9777. <div style="padding-top: 15px">
  9778. <div class="select_answer_title" v-if="isSelect">
  9779. {{ selectAnswer.stu }}
  9780. </div>
  9781. <div class="select_answer_title" v-else>
  9782. 根据题目选择对应答案
  9783. </div>
  9784. <div
  9785. class="select_box2_answer_box"
  9786. v-for="(item2, checkIndex) in selectJson.select"
  9787. :key="checkIndex"
  9788. >
  9789. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9790. <el-select
  9791. :disabled="isSelect"
  9792. v-model="selectAnswer.answer[checkIndex]"
  9793. placeholder="请选择正确答案"
  9794. >
  9795. <el-option
  9796. v-for="(e, eIndex) in selectJson.select"
  9797. :key="eIndex"
  9798. :label="e"
  9799. :value="eIndex"
  9800. >
  9801. </el-option>
  9802. </el-select>
  9803. </div>
  9804. </div>
  9805. <div
  9806. class="rightAnswerCss"
  9807. v-if="isSelect && (tType == 1 || tType == 4)"
  9808. >
  9809. <div
  9810. v-for="(a, aIndex) in selectJson.answer"
  9811. :key="aIndex"
  9812. class="rightAnswer"
  9813. >
  9814. <div
  9815. v-if="selectAnswer.answer[aIndex] === a"
  9816. style="color: #767de1"
  9817. >
  9818. 回答正确
  9819. </div>
  9820. <div v-else>回答错误</div>
  9821. <div
  9822. style="margin-left: 10px"
  9823. v-if="selectAnswer.answer[aIndex] !== a"
  9824. >
  9825. 正确答案:
  9826. </div>
  9827. <div
  9828. :class="
  9829. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9830. "
  9831. >
  9832. {{ selectJson.select[a] }}
  9833. </div>
  9834. </div>
  9835. </div>
  9836. </div>
  9837. <div class="upAnswerCss">
  9838. <el-button
  9839. type="primary"
  9840. @click="addSelectAnswerTeacher"
  9841. v-if="!isSelect"
  9842. >提交答案</el-button
  9843. >
  9844. </div>
  9845. </div>
  9846. </div>
  9847. </div>
  9848. </el-dialog>
  9849. <el-dialog
  9850. title="教师评分"
  9851. :visible.sync="dialogVisibleScore"
  9852. :append-to-body="true"
  9853. width="800px"
  9854. :before-close="handleClose"
  9855. class="dialog_diy"
  9856. >
  9857. <div>
  9858. <div class="studentDetail">
  9859. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9860. <div class="nameAndTime">
  9861. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9862. <div>{{ commentDetail.time }}</div>
  9863. </div>
  9864. </div>
  9865. <div
  9866. class="worksAnswer"
  9867. v-if="commentDetail.works && commentDetail.type == 2"
  9868. >
  9869. {{ JSON.parse(commentDetail.works)[0].answer }}
  9870. </div>
  9871. <div
  9872. class="worksAnswer"
  9873. v-if="commentDetail.works && commentDetail.type == 1"
  9874. >
  9875. <pdf
  9876. v-if="showPDF"
  9877. :pdfUrl="pptImgUrl"
  9878. style="width: 100%; height: 520px; overflow: auto"
  9879. :class="{ fullStyle: full }"
  9880. ></pdf>
  9881. <iframe
  9882. v-else
  9883. :src="pptImgUrl"
  9884. frameborder="0"
  9885. width="100%"
  9886. height="600"
  9887. :class="{ fullStyle: full }"
  9888. ></iframe>
  9889. </div>
  9890. <div
  9891. class="worksAnswer"
  9892. v-if="commentDetail.works && commentDetail.type == 0"
  9893. >
  9894. <img
  9895. :src="commentDetail.works"
  9896. alt=""
  9897. @click="previewImg(commentDetail.works)"
  9898. />
  9899. </div>
  9900. <div
  9901. class="worksAnswer"
  9902. v-if="commentDetail.works && commentDetail.type == 3"
  9903. >
  9904. <video-player
  9905. class="video-player vjs-custom-skin"
  9906. :playsinline="true"
  9907. :options="videoDetail"
  9908. @play="onPlayerPlay($event)"
  9909. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9910. ></video-player>
  9911. </div>
  9912. <div
  9913. class="worksAnswer codeFileBox"
  9914. v-if="commentDetail.works && commentDetail.type == 12"
  9915. @click="downloadFile(commentDetail.works)"
  9916. >
  9917. <img src="../../assets/icon/codeFile.png" />
  9918. <div>点击下载文件</div>
  9919. </div>
  9920. <div
  9921. class="worksAnswer codeFileBox"
  9922. v-if="commentDetail.works && commentDetail.type == 15"
  9923. @click="
  9924. openCocoPi(
  9925. 57,
  9926. commentIndexJson.toolIndex,
  9927. commentDetail.userid,
  9928. commentDetail.sName
  9929. )
  9930. "
  9931. >
  9932. <img src="../../assets/icon/codeFile.png" />
  9933. <div>点击打开CocoPi</div>
  9934. </div>
  9935. <div
  9936. class="worksAnswer"
  9937. v-if="commentDetail.works && commentDetail.type == 13"
  9938. >
  9939. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9940. </div>
  9941. <div class="scoreBox">
  9942. <span class="t">请输入分数</span>
  9943. <el-input-number
  9944. :disabled="courseDetail.userid != userid"
  9945. v-model="wScore"
  9946. :controls="false"
  9947. :min="0"
  9948. :max="100"
  9949. ></el-input-number>
  9950. </div>
  9951. <div class="scoreDetailBox">
  9952. <span class="t">评分评论</span>
  9953. <el-input
  9954. type="textarea"
  9955. :rows="5"
  9956. :disabled="courseDetail.userid != userid"
  9957. resize="none"
  9958. v-model="scoreDetail"
  9959. placeholder="请输入对学生的评价"
  9960. >
  9961. </el-input>
  9962. </div>
  9963. </div>
  9964. <span slot="footer" class="dialog-footer">
  9965. <el-button
  9966. @click="
  9967. (dialogVisibleScore = false),
  9968. (commentIndexJson = {}),
  9969. videoDetail.sources && videoDetail.sources[0]
  9970. ? (videoDetail.sources[0].src = '')
  9971. : ''
  9972. "
  9973. >取 消</el-button
  9974. >
  9975. <el-button
  9976. type="primary"
  9977. v-if="courseDetail.userid == userid"
  9978. @click="scoreWork(commentDetail.wid)"
  9979. >确 定
  9980. </el-button>
  9981. </span>
  9982. </el-dialog>
  9983. <el-dialog
  9984. title="排序"
  9985. :visible.sync="dialogVisibleSentence"
  9986. :append-to-body="true"
  9987. width="1000px"
  9988. :before-close="handleClose"
  9989. class="dialog_diy dialog_diy3"
  9990. >
  9991. <div>
  9992. <div class="sentenBox">
  9993. <div
  9994. v-for="(st, stIndex) in sentenceList"
  9995. :key="stIndex"
  9996. style="padding-bottom: 20px"
  9997. >
  9998. <div
  9999. style="padding: 15px 0 10px 20px"
  10000. class="sentenceTitle"
  10001. :index="stIndex + 1"
  10002. >
  10003. 题目{{ stIndex + 1 }}:请选择正确顺序
  10004. </div>
  10005. <div class="cardList" v-if="st.chooseSenList">
  10006. <div class="cardBox">
  10007. <div
  10008. v-for="(r, rIndex) in st.chooseSenList"
  10009. :key="rIndex"
  10010. @click="returnCard(r, stIndex, rIndex)"
  10011. >
  10012. <el-tooltip
  10013. class="item"
  10014. effect="light"
  10015. :content="r"
  10016. placement="top"
  10017. v-if="r != '' && r != undefined"
  10018. >
  10019. <div
  10020. :class="{
  10021. isCard: r,
  10022. isChooseCard: r == '' || r == undefined,
  10023. }"
  10024. >
  10025. <div>{{ r }}</div>
  10026. </div>
  10027. </el-tooltip>
  10028. <div
  10029. :class="{
  10030. isCard: r,
  10031. isChooseCard: r == '' || r == undefined,
  10032. }"
  10033. v-else
  10034. >
  10035. <div>{{ r }}</div>
  10036. </div>
  10037. </div>
  10038. </div>
  10039. </div>
  10040. <div class="cardList" v-if="st.addChangeSen">
  10041. <div class="cardBox">
  10042. <div
  10043. v-for="(s, sIndex) in st.addChangeSen"
  10044. :key="sIndex"
  10045. @click="setRightAnswer(s, stIndex, sIndex)"
  10046. >
  10047. <el-tooltip
  10048. class="item"
  10049. effect="light"
  10050. :content="s"
  10051. placement="top"
  10052. v-if="s != '' && s != undefined"
  10053. >
  10054. <div
  10055. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10056. >
  10057. <div>{{ s }}</div>
  10058. </div>
  10059. </el-tooltip>
  10060. <div
  10061. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10062. v-else
  10063. >
  10064. <div>{{ s }}</div>
  10065. </div>
  10066. </div>
  10067. </div>
  10068. </div>
  10069. </div>
  10070. </div>
  10071. </div>
  10072. <span slot="footer" class="dialog-footer">
  10073. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10074. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10075. </span>
  10076. </el-dialog>
  10077. <el-dialog
  10078. title="排序"
  10079. :visible.sync="dialogVisibleSentenceTeacher"
  10080. :append-to-body="true"
  10081. width="1000px"
  10082. :before-close="handleClose"
  10083. class="dialog_diy dialog_diy3"
  10084. >
  10085. <div>
  10086. <div class="w_name">
  10087. 学生姓名:<span>{{ sStudent.student }}</span>
  10088. </div>
  10089. <div class="sentenBox">
  10090. <div
  10091. v-for="(st, stIndex) in sentenceList"
  10092. :key="stIndex"
  10093. style="padding-bottom: 20px"
  10094. >
  10095. <div
  10096. style="padding: 15px 0 10px 20px"
  10097. class="sentenceTitle"
  10098. :index="stIndex + 1"
  10099. >
  10100. 题目{{ stIndex + 1 }}:请选择正确顺序
  10101. </div>
  10102. <div class="cardList" v-if="st.chooseSenList">
  10103. <div class="cardBox">
  10104. <div
  10105. v-for="(r, rIndex) in st.chooseSenList"
  10106. :key="rIndex"
  10107. @click="returnCard(r, stIndex, rIndex)"
  10108. >
  10109. <el-tooltip
  10110. class="item"
  10111. effect="light"
  10112. :content="r"
  10113. placement="top"
  10114. v-if="r != '' && r != undefined"
  10115. >
  10116. <div
  10117. :class="{
  10118. isCard: r,
  10119. isChooseCard: r == '' || r == undefined,
  10120. }"
  10121. >
  10122. <div>{{ r }}</div>
  10123. </div>
  10124. </el-tooltip>
  10125. <div
  10126. :class="{
  10127. isCard: r,
  10128. isChooseCard: r == '' || r == undefined,
  10129. }"
  10130. v-else
  10131. >
  10132. <div>{{ r }}</div>
  10133. </div>
  10134. </div>
  10135. </div>
  10136. </div>
  10137. <div class="cardList" v-if="st.addChangeSen">
  10138. <div class="cardBox">
  10139. <div
  10140. v-for="(s, sIndex) in st.addChangeSen"
  10141. :key="sIndex"
  10142. @click="setRightAnswer(s, stIndex, sIndex)"
  10143. >
  10144. <el-tooltip
  10145. class="item"
  10146. effect="light"
  10147. :content="s"
  10148. placement="top"
  10149. v-if="s != '' && s != undefined"
  10150. >
  10151. <div
  10152. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10153. >
  10154. <div>{{ s }}</div>
  10155. </div>
  10156. </el-tooltip>
  10157. <div
  10158. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10159. v-else
  10160. >
  10161. <div>{{ s }}</div>
  10162. </div>
  10163. </div>
  10164. </div>
  10165. </div>
  10166. </div>
  10167. </div>
  10168. </div>
  10169. <span slot="footer" class="dialog-footer">
  10170. <el-button @click="dialogVisibleSentenceTeacher = false"
  10171. >取 消</el-button
  10172. >
  10173. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10174. </span>
  10175. </el-dialog>
  10176. <el-dialog
  10177. title="排序"
  10178. :visible.sync="dialogVisibleSentence1"
  10179. :append-to-body="true"
  10180. width="1000px"
  10181. :before-close="handleClose"
  10182. class="dialog_diy dialog_diy3"
  10183. >
  10184. <div>
  10185. <div class="sentenBox">
  10186. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10187. {{ sentenceList1.stuName }}的作业
  10188. </div>
  10189. <div
  10190. v-for="(st, stIndex) in sentenceList1"
  10191. :key="stIndex"
  10192. style="padding-bottom: 20px"
  10193. >
  10194. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10195. 第{{ stIndex + 1 }}题
  10196. </div>
  10197. <div class="isWrong">
  10198. <div class="cardList1" v-if="st.chooseSenList">
  10199. <div class="cardBox">
  10200. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10201. <el-tooltip
  10202. class="item"
  10203. effect="light"
  10204. :content="s"
  10205. placement="top"
  10206. >
  10207. <div class="isCard">
  10208. <div>{{ s }}</div>
  10209. </div>
  10210. </el-tooltip>
  10211. </div>
  10212. </div>
  10213. <div class="cardAnswerBox">
  10214. 组成句子:{{ st.chooseSenList.join(" ") }}
  10215. </div>
  10216. </div>
  10217. <div v-if="tType == 2" class="isTj">
  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/right.png" alt="" />
  10232. </div>
  10233. <div>回答正确</div>
  10234. </div>
  10235. <div
  10236. class="answerRight isTj"
  10237. v-if="
  10238. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10239. (tType == 1 || tType == 4)
  10240. "
  10241. >
  10242. <div class="isTjImg">
  10243. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10244. </div>
  10245. <div>回答错误</div>
  10246. </div>
  10247. </div>
  10248. <div
  10249. v-if="
  10250. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10251. (tType == 1 || tType == 4)
  10252. "
  10253. >
  10254. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10255. <div
  10256. class="cardList"
  10257. v-if="st.rightAnswer"
  10258. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10259. >
  10260. <div class="cardBox">
  10261. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10262. <el-tooltip
  10263. class="item"
  10264. effect="light"
  10265. :content="r"
  10266. placement="top"
  10267. >
  10268. <div class="isCard1">
  10269. <div>{{ r }}</div>
  10270. </div>
  10271. </el-tooltip>
  10272. </div>
  10273. </div>
  10274. <div class="cardAnswerBox">
  10275. 组成句子:{{ st.rightAnswer.join(" ") }}
  10276. </div>
  10277. </div>
  10278. </div>
  10279. </div>
  10280. </div>
  10281. </div>
  10282. <span slot="footer" class="dialog-footer">
  10283. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10284. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10285. >确 定</el-button
  10286. >
  10287. </span>
  10288. </el-dialog>
  10289. <el-dialog
  10290. title="教师提交作业"
  10291. :visible.sync="dialogVisibleWorks"
  10292. :append-to-body="true"
  10293. width="500px"
  10294. :before-close="handleClose"
  10295. class="dialog_change"
  10296. >
  10297. <div class="marginT">
  10298. <div class="w_name">
  10299. 学生姓名:<span>{{ sStudent.student }}</span>
  10300. </div>
  10301. <div>上传文件</div>
  10302. <div
  10303. class="chapter_add"
  10304. @click="addImg($event)"
  10305. v-if="studyJuri[0].cover.length == 0"
  10306. >
  10307. <div class="up_photo">
  10308. <img src="../../assets/uploadImg2.png" alt />
  10309. </div>
  10310. <!-- <input
  10311. type="file"
  10312. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10313. style="display: none"
  10314. @change="beforeUpload1($event, 1)"
  10315. /> -->
  10316. <input
  10317. type="file"
  10318. accept="*"
  10319. style="display: none"
  10320. @change="beforeUpload1($event, 1)"
  10321. />
  10322. </div>
  10323. <!-- capture="camera" -->
  10324. <div
  10325. class="chapter_add"
  10326. style="
  10327. display: flex;
  10328. width: 100%;
  10329. flex-direction: row;
  10330. flex-wrap: wrap;
  10331. justify-content: flex-start;
  10332. padding: 15px 0;
  10333. "
  10334. v-if="studyJuri[0].cover.length > 0"
  10335. >
  10336. <div class="upCover">
  10337. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10338. <img :src="word" alt v-else-if="fileType == 1" />
  10339. <img :src="video" alt v-else-if="fileType == 2" />
  10340. <img :src="word2" alt v-else-if="fileType == 3" />
  10341. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10342. <div class="deleteWord" @click="clean(1)">
  10343. <img src="../../assets/icon/deleteWorks.png" alt />
  10344. </div>
  10345. </div>
  10346. </div>
  10347. </div>
  10348. <div
  10349. class="upload_send"
  10350. @click="addCourseWorksTeacher(taskCount)"
  10351. v-if="!proVisible"
  10352. >
  10353. 提交
  10354. </div>
  10355. </el-dialog>
  10356. <ImgDraw
  10357. :drawShow="drawShow"
  10358. @closeDraw="closeDraw"
  10359. @addImgDraw="addImgDraw"
  10360. :bg="bg"
  10361. ></ImgDraw>
  10362. <el-dialog
  10363. title="表格"
  10364. :visible.sync="dialogVisibleTable"
  10365. :append-to-body="true"
  10366. width="95%"
  10367. :before-close="handleClose"
  10368. class="dialog_diy"
  10369. >
  10370. <el-form>
  10371. <div
  10372. style="
  10373. display: flex;
  10374. align-items: center;
  10375. justify-content: space-between;
  10376. "
  10377. >
  10378. <span>表格内容</span>
  10379. <el-button type="primary" size="small" @click="returnTableText"
  10380. >还原模板</el-button
  10381. >
  10382. </div>
  10383. <Table
  10384. v-model="tableJson.text"
  10385. @change="change"
  10386. v-if="dialogVisibleTable"
  10387. ></Table>
  10388. </el-form>
  10389. <span slot="footer" class="dialog-footer">
  10390. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10391. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10392. </span>
  10393. </el-dialog>
  10394. <el-dialog
  10395. title="表格"
  10396. :visible.sync="dialogVisibleTableTeacher"
  10397. :append-to-body="true"
  10398. width="95%"
  10399. :before-close="handleClose"
  10400. class="dialog_diy"
  10401. >
  10402. <el-form>
  10403. <div class="w_name">
  10404. 学生姓名:<span>{{ sStudent.student }}</span>
  10405. </div>
  10406. <div>表格内容</div>
  10407. <Table
  10408. v-model="tableJson.text"
  10409. @change="change"
  10410. v-if="dialogVisibleTableTeacher"
  10411. ></Table>
  10412. </el-form>
  10413. <span slot="footer" class="dialog-footer">
  10414. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10415. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10416. </span>
  10417. </el-dialog>
  10418. <el-dialog
  10419. title="文档"
  10420. :visible.sync="dialogVisibleWord"
  10421. :append-to-body="true"
  10422. width="95%"
  10423. :before-close="handleClose"
  10424. class="dialog_diy"
  10425. >
  10426. <el-form>
  10427. <div
  10428. style="
  10429. display: flex;
  10430. align-items: center;
  10431. justify-content: space-between;
  10432. "
  10433. >
  10434. <span>文档内容</span>
  10435. <el-button type="primary" size="small" @click="returnWordText"
  10436. >还原模板</el-button
  10437. >
  10438. </div>
  10439. <editor-bar
  10440. v-model="wordJson.text"
  10441. v-if="dialogVisibleWord"
  10442. ></editor-bar>
  10443. </el-form>
  10444. <span slot="footer" class="dialog-footer">
  10445. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10446. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10447. </span>
  10448. </el-dialog>
  10449. <el-dialog
  10450. title="文档"
  10451. :visible.sync="dialogVisibleWordTeacher"
  10452. :append-to-body="true"
  10453. width="95%"
  10454. :before-close="handleClose"
  10455. class="dialog_diy"
  10456. >
  10457. <el-form>
  10458. <div class="w_name">
  10459. 学生姓名:<span>{{ sStudent.student }}</span>
  10460. </div>
  10461. <div>文档内容</div>
  10462. <editor-bar
  10463. v-model="wordJson.text"
  10464. v-if="dialogVisibleWordTeacher"
  10465. ></editor-bar>
  10466. </el-form>
  10467. <span slot="footer" class="dialog-footer">
  10468. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10469. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10470. </span>
  10471. </el-dialog>
  10472. <el-dialog
  10473. title="表格"
  10474. :visible.sync="dialogVisibleTable2"
  10475. :append-to-body="true"
  10476. width="95%"
  10477. :before-close="handleClose"
  10478. class="dialog_diy"
  10479. >
  10480. <el-form>
  10481. <div class="cont" v-html="tableJson.text"></div>
  10482. </el-form>
  10483. <span slot="footer" class="dialog-footer">
  10484. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10485. </span>
  10486. </el-dialog>
  10487. <el-dialog
  10488. title="文档"
  10489. :visible.sync="dialogVisibleTable3"
  10490. :append-to-body="true"
  10491. width="95%"
  10492. :before-close="handleClose"
  10493. class="dialog_diy"
  10494. >
  10495. <el-form>
  10496. <div class="cont" v-html="tableJson.text"></div>
  10497. </el-form>
  10498. <span slot="footer" class="dialog-footer">
  10499. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10500. </span>
  10501. </el-dialog>
  10502. <el-dialog
  10503. title="分组设置"
  10504. :visible.sync="dialogVisibleGroup"
  10505. :append-to-body="true"
  10506. width="95%"
  10507. :before-close="handleClose"
  10508. class="dialog_diy"
  10509. >
  10510. <div v-if="dialogVisibleGroup">
  10511. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10512. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10513. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10514. </div>
  10515. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10516. @click="lockChair">
  10517. 锁定位置
  10518. </div>
  10519. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10520. 解锁位置
  10521. </div> -->
  10522. <div class="group_switch">
  10523. <span>开放选座</span>
  10524. <el-switch
  10525. v-model="islock"
  10526. active-text=""
  10527. class="switchCss"
  10528. @change="lockChair"
  10529. ></el-switch>
  10530. </div>
  10531. <div
  10532. type="primary"
  10533. @click="updateGroup"
  10534. class="returnBtn"
  10535. style="background-color: #225bc7"
  10536. >
  10537. 分组设置
  10538. </div>
  10539. </div>
  10540. <div>
  10541. <div
  10542. class="g_d_box"
  10543. v-if="groupJson.group && groupStudent[toolindex]"
  10544. >
  10545. <div
  10546. class="g_d_group"
  10547. v-for="(g, gindex) in groupJson.group"
  10548. :key="gindex"
  10549. >
  10550. <div class="g_d_group_chair">
  10551. <div v-if="groupJson.number > 1">
  10552. <span
  10553. :class="{
  10554. isChair:
  10555. groupStudent[toolindex][gindex] &&
  10556. groupStudent[toolindex][gindex][0],
  10557. updateChair:
  10558. courseDetail.userid == userid &&
  10559. groupStudent[toolindex][gindex] &&
  10560. groupStudent[toolindex][gindex][0] &&
  10561. groupJson.islock == 2,
  10562. }"
  10563. ><span
  10564. class="updateChairBtn"
  10565. @click="
  10566. updateGroupChair(
  10567. groupStudent[toolindex][gindex] &&
  10568. groupStudent[toolindex][gindex][0]
  10569. )
  10570. "
  10571. >修改</span
  10572. ></span
  10573. ><span>{{
  10574. groupStudent[toolindex][gindex] &&
  10575. groupStudent[toolindex][gindex][0]
  10576. ? groupStudent[toolindex][gindex] &&
  10577. groupStudent[toolindex][gindex][0].name
  10578. : "空位置"
  10579. }}</span>
  10580. </div>
  10581. <div v-if="groupJson.number > 4">
  10582. <span
  10583. :class="{
  10584. isChair:
  10585. groupStudent[toolindex][gindex] &&
  10586. groupStudent[toolindex][gindex][4],
  10587. updateChair:
  10588. courseDetail.userid == userid &&
  10589. groupStudent[toolindex][gindex] &&
  10590. groupStudent[toolindex][gindex][4] &&
  10591. groupJson.islock == 2,
  10592. }"
  10593. ><span
  10594. class="updateChairBtn"
  10595. @click="
  10596. updateGroupChair(
  10597. groupStudent[toolindex][gindex] &&
  10598. groupStudent[toolindex][gindex][4]
  10599. )
  10600. "
  10601. >修改</span
  10602. ></span
  10603. ><span>{{
  10604. groupStudent[toolindex][gindex] &&
  10605. groupStudent[toolindex][gindex][4]
  10606. ? groupStudent[toolindex][gindex] &&
  10607. groupStudent[toolindex][gindex][4].name
  10608. : "空位置"
  10609. }}</span>
  10610. </div>
  10611. <div v-if="groupJson.number > 8">
  10612. <span
  10613. :class="{
  10614. isChair:
  10615. groupStudent[toolindex][gindex] &&
  10616. groupStudent[toolindex][gindex][8],
  10617. updateChair:
  10618. courseDetail.userid == userid &&
  10619. groupStudent[toolindex][gindex] &&
  10620. groupStudent[toolindex][gindex][8] &&
  10621. groupJson.islock == 2,
  10622. }"
  10623. ><span
  10624. class="updateChairBtn"
  10625. @click="
  10626. updateGroupChair(
  10627. groupStudent[toolindex][gindex] &&
  10628. groupStudent[toolindex][gindex][8]
  10629. )
  10630. "
  10631. >修改</span
  10632. ></span
  10633. ><span>{{
  10634. groupStudent[toolindex][gindex] &&
  10635. groupStudent[toolindex][gindex][8]
  10636. ? groupStudent[toolindex][gindex] &&
  10637. groupStudent[toolindex][gindex][8].name
  10638. : "空位置"
  10639. }}</span>
  10640. </div>
  10641. </div>
  10642. <div class="g_d_group_tableBox">
  10643. <div class="g_d_group_chair2">
  10644. <div v-if="groupJson.number > 2">
  10645. <span
  10646. :class="{
  10647. isChair:
  10648. groupStudent[toolindex][gindex] &&
  10649. groupStudent[toolindex][gindex][2],
  10650. updateChair:
  10651. courseDetail.userid == userid &&
  10652. groupStudent[toolindex][gindex] &&
  10653. groupStudent[toolindex][gindex][2] &&
  10654. groupJson.islock == 2,
  10655. }"
  10656. ><span
  10657. class="updateChairBtn"
  10658. @click="
  10659. updateGroupChair(
  10660. groupStudent[toolindex][gindex] &&
  10661. groupStudent[toolindex][gindex][2]
  10662. )
  10663. "
  10664. >修改</span
  10665. ></span
  10666. ><span>{{
  10667. groupStudent[toolindex][gindex] &&
  10668. groupStudent[toolindex][gindex][2]
  10669. ? groupStudent[toolindex][gindex] &&
  10670. groupStudent[toolindex][gindex][2].name
  10671. : "空位置"
  10672. }}</span>
  10673. </div>
  10674. <div v-if="groupJson.number > 6">
  10675. <span
  10676. :class="{
  10677. isChair:
  10678. groupStudent[toolindex][gindex] &&
  10679. groupStudent[toolindex][gindex][6],
  10680. updateChair:
  10681. courseDetail.userid == userid &&
  10682. groupStudent[toolindex][gindex] &&
  10683. groupStudent[toolindex][gindex][6] &&
  10684. groupJson.islock == 2,
  10685. }"
  10686. ><span
  10687. class="updateChairBtn"
  10688. @click="
  10689. updateGroupChair(
  10690. groupStudent[toolindex][gindex] &&
  10691. groupStudent[toolindex][gindex][6]
  10692. )
  10693. "
  10694. >修改</span
  10695. ></span
  10696. ><span>{{
  10697. groupStudent[toolindex][gindex] &&
  10698. groupStudent[toolindex][gindex][6]
  10699. ? groupStudent[toolindex][gindex] &&
  10700. groupStudent[toolindex][gindex][6].name
  10701. : "空位置"
  10702. }}</span>
  10703. </div>
  10704. </div>
  10705. <div class="g_d_group_table">
  10706. <div>
  10707. {{ g.name }}
  10708. </div>
  10709. <div>
  10710. <div
  10711. v-if="
  10712. courseDetail.userid == userid && groupJson.islock == 2
  10713. "
  10714. @click="deleteGroupChair(gindex)"
  10715. >
  10716. 移除组员
  10717. </div>
  10718. <div
  10719. @click="selectGroup(gindex)"
  10720. v-else-if="
  10721. groupStudentUid[toolindex] &&
  10722. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  10723. "
  10724. >
  10725. 加入分组
  10726. </div>
  10727. <div
  10728. @click="
  10729. exitGroup(
  10730. groupStudent[toolindex][gindex] &&
  10731. groupStudent[toolindex][gindex][
  10732. groupStudentUid[toolindex][gindex].indexOf(userid)
  10733. ].id
  10734. )
  10735. "
  10736. v-else-if="
  10737. groupStudentUid[toolindex] &&
  10738. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  10739. "
  10740. >
  10741. 退出分组
  10742. </div>
  10743. </div>
  10744. </div>
  10745. <div class="g_d_group_chair2">
  10746. <div v-if="groupJson.number > 3">
  10747. <span
  10748. :class="{
  10749. isChair:
  10750. groupStudent[toolindex][gindex] &&
  10751. groupStudent[toolindex][gindex][3],
  10752. updateChair:
  10753. courseDetail.userid == userid &&
  10754. groupStudent[toolindex][gindex] &&
  10755. groupStudent[toolindex][gindex][3] &&
  10756. groupJson.islock == 2,
  10757. }"
  10758. ><span
  10759. class="updateChairBtn"
  10760. @click="
  10761. updateGroupChair(
  10762. groupStudent[toolindex][gindex] &&
  10763. groupStudent[toolindex][gindex][3]
  10764. )
  10765. "
  10766. >修改</span
  10767. ></span
  10768. ><span>{{
  10769. groupStudent[toolindex][gindex] &&
  10770. groupStudent[toolindex][gindex][3]
  10771. ? groupStudent[toolindex][gindex] &&
  10772. groupStudent[toolindex][gindex][3].name
  10773. : "空位置"
  10774. }}</span>
  10775. </div>
  10776. <div v-if="groupJson.number > 7">
  10777. <span
  10778. :class="{
  10779. isChair:
  10780. groupStudent[toolindex][gindex] &&
  10781. groupStudent[toolindex][gindex][7],
  10782. updateChair:
  10783. courseDetail.userid == userid &&
  10784. groupStudent[toolindex][gindex] &&
  10785. groupStudent[toolindex][gindex][7] &&
  10786. groupJson.islock == 2,
  10787. }"
  10788. ><span
  10789. class="updateChairBtn"
  10790. @click="
  10791. updateGroupChair(
  10792. groupStudent[toolindex][gindex] &&
  10793. groupStudent[toolindex][gindex][7]
  10794. )
  10795. "
  10796. >修改</span
  10797. ></span
  10798. ><span>{{
  10799. groupStudent[toolindex][gindex] &&
  10800. groupStudent[toolindex][gindex][7]
  10801. ? groupStudent[toolindex][gindex] &&
  10802. groupStudent[toolindex][gindex][7].name
  10803. : "空位置"
  10804. }}</span>
  10805. </div>
  10806. </div>
  10807. </div>
  10808. <div class="g_d_group_chair">
  10809. <div v-if="groupJson.number > 1">
  10810. <span
  10811. :class="{
  10812. isChair:
  10813. groupStudent[toolindex][gindex] &&
  10814. groupStudent[toolindex][gindex][1],
  10815. updateChair:
  10816. courseDetail.userid == userid &&
  10817. groupStudent[toolindex][gindex] &&
  10818. groupStudent[toolindex][gindex][1] &&
  10819. groupJson.islock == 2,
  10820. }"
  10821. ><span
  10822. class="updateChairBtn"
  10823. @click="
  10824. updateGroupChair(
  10825. groupStudent[toolindex][gindex] &&
  10826. groupStudent[toolindex][gindex][1]
  10827. )
  10828. "
  10829. >修改</span
  10830. ></span
  10831. ><span>{{
  10832. groupStudent[toolindex][gindex] &&
  10833. groupStudent[toolindex][gindex][1]
  10834. ? groupStudent[toolindex][gindex] &&
  10835. groupStudent[toolindex][gindex][1].name
  10836. : "空位置"
  10837. }}</span>
  10838. </div>
  10839. <div v-if="groupJson.number > 5">
  10840. <span
  10841. :class="{
  10842. isChair:
  10843. groupStudent[toolindex][gindex] &&
  10844. groupStudent[toolindex][gindex][5],
  10845. updateChair:
  10846. courseDetail.userid == userid &&
  10847. groupStudent[toolindex][gindex] &&
  10848. groupStudent[toolindex][gindex][5] &&
  10849. groupJson.islock == 2,
  10850. }"
  10851. ><span
  10852. class="updateChairBtn"
  10853. @click="
  10854. updateGroupChair(
  10855. groupStudent[toolindex][gindex] &&
  10856. groupStudent[toolindex][gindex][5]
  10857. )
  10858. "
  10859. >修改</span
  10860. ></span
  10861. ><span>{{
  10862. groupStudent[toolindex][gindex] &&
  10863. groupStudent[toolindex][gindex][5]
  10864. ? groupStudent[toolindex][gindex] &&
  10865. groupStudent[toolindex][gindex][5].name
  10866. : "空位置"
  10867. }}</span>
  10868. </div>
  10869. <div v-if="groupJson.number > 9">
  10870. <span
  10871. :class="{
  10872. isChair:
  10873. groupStudent[toolindex][gindex] &&
  10874. groupStudent[toolindex][gindex][9],
  10875. updateChair:
  10876. courseDetail.userid == userid &&
  10877. groupStudent[toolindex][gindex] &&
  10878. groupStudent[toolindex][gindex][9] &&
  10879. groupJson.islock == 2,
  10880. }"
  10881. ><span
  10882. class="updateChairBtn"
  10883. @click="
  10884. updateGroupChair(
  10885. groupStudent[toolindex][gindex] &&
  10886. groupStudent[toolindex][gindex][9]
  10887. )
  10888. "
  10889. >修改</span
  10890. ></span
  10891. ><span>{{
  10892. groupStudent[toolindex][gindex] &&
  10893. groupStudent[toolindex][gindex][9]
  10894. ? groupStudent[toolindex][gindex] &&
  10895. groupStudent[toolindex][gindex][9].name
  10896. : "空位置"
  10897. }}</span>
  10898. </div>
  10899. </div>
  10900. </div>
  10901. </div>
  10902. </div>
  10903. </div>
  10904. <span slot="footer" class="dialog-footer">
  10905. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  10906. </span>
  10907. </el-dialog>
  10908. <el-dialog
  10909. title="分组设置"
  10910. :visible.sync="dialogVisibleGroup2"
  10911. :append-to-body="true"
  10912. width="650px"
  10913. :before-close="handleClose"
  10914. class="dialog_diy"
  10915. >
  10916. <div class="groupBox">
  10917. <div v-if="groupJson2.group" class="groupContent">
  10918. <div class="groupTitle">请设置小组数量及名称</div>
  10919. <div
  10920. v-for="(item, index) in groupJson2.group"
  10921. :key="index"
  10922. class="groupName"
  10923. >
  10924. <span class="groupn">第{{ index + 1 }}组名称:</span>
  10925. <el-input
  10926. v-model="item.name"
  10927. placeholder="请输入名称..."
  10928. style="width: 250px"
  10929. ></el-input>
  10930. <!-- <div class="groupBtn">
  10931. <el-button type="primary" size="small" @click="addGroup(index)">
  10932. 添加</el-button>
  10933. <el-button type="primary" size="small" @click="deleteGroup(index)"
  10934. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  10935. </div> -->
  10936. </div>
  10937. </div>
  10938. <div class="groupContent">
  10939. <div class="groupTitle">请设置每组人数</div>
  10940. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  10941. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  10942. <el-input
  10943. v-model="groupJson.number"
  10944. style="width: 150px"
  10945. placeholder="请输入2-10的数字"
  10946. @change="numberPan"
  10947. ></el-input>
  10948. </div>
  10949. </div>
  10950. <span slot="footer" class="dialog-footer">
  10951. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  10952. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  10953. </span>
  10954. </el-dialog>
  10955. <el-dialog
  10956. title="作业提交"
  10957. :visible.sync="dialogVisibleGroupWork"
  10958. :append-to-body="true"
  10959. width="500px"
  10960. :before-close="handleClose"
  10961. class="dialog_change"
  10962. >
  10963. <div class="marginT">
  10964. <div>上传文件</div>
  10965. <div
  10966. class="chapter_add"
  10967. @click="addImg($event)"
  10968. v-if="studyJuri[0].cover.length == 0"
  10969. >
  10970. <div class="up_photo">
  10971. <img src="../../assets/icon/uploadImg.png" alt />
  10972. </div>
  10973. <!-- <input
  10974. type="file"
  10975. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10976. style="display: none"
  10977. @change="beforeUpload1($event, 1)"
  10978. /> -->
  10979. <input
  10980. type="file"
  10981. accept="*"
  10982. style="display: none"
  10983. @change="beforeUpload1($event, 1)"
  10984. />
  10985. </div>
  10986. <!-- capture="camera" -->
  10987. <div
  10988. class="chapter_add"
  10989. style="
  10990. display: flex;
  10991. width: 100%;
  10992. flex-direction: row;
  10993. flex-wrap: wrap;
  10994. justify-content: flex-start;
  10995. padding: 15px 0;
  10996. "
  10997. v-if="studyJuri[0].cover.length > 0"
  10998. >
  10999. <div class="upCover">
  11000. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11001. <img :src="word" alt v-else-if="fileType == 1" />
  11002. <img :src="video" alt v-else-if="fileType == 2" />
  11003. <img :src="word2" alt v-else-if="fileType == 3" />
  11004. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11005. <div class="deleteWord" @click="clean(1)">
  11006. <img src="../../assets/icon/deleteWorks.png" alt />
  11007. </div>
  11008. </div>
  11009. </div>
  11010. </div>
  11011. <div
  11012. class="upload_send"
  11013. @click="addCourseWorks2(taskCount)"
  11014. v-if="!proVisible"
  11015. >
  11016. 提交
  11017. </div>
  11018. </el-dialog>
  11019. <el-dialog
  11020. title="修改分组"
  11021. :visible.sync="dialogVisibleUpdateGroup"
  11022. :append-to-body="true"
  11023. width="350px"
  11024. :before-close="handleClose"
  11025. class="dialog_diy"
  11026. >
  11027. <div>
  11028. <h2>
  11029. {{ this.updateGroupUser.name }}
  11030. </h2>
  11031. <div style="color: rgb(171 171 171); margin-top: 10px">
  11032. 请选择要进入的分组
  11033. </div>
  11034. <el-radio-group v-model="checkChair">
  11035. <el-radio
  11036. style="display: block; margin-top: 20px"
  11037. v-for="(item, index) in updateGroupArray"
  11038. :label="item.label"
  11039. :key="index"
  11040. >{{ item.name }}</el-radio
  11041. >
  11042. </el-radio-group>
  11043. </div>
  11044. <span slot="footer" class="dialog-footer">
  11045. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11046. <el-button type="primary" @click="updateChair">确定</el-button>
  11047. </span>
  11048. </el-dialog>
  11049. <el-dialog
  11050. title="移除组员"
  11051. :visible.sync="dialogVisibleDeleteGroup"
  11052. :append-to-body="true"
  11053. width="350px"
  11054. :before-close="handleClose"
  11055. class="dialog_diy"
  11056. >
  11057. <div>
  11058. <h2>
  11059. {{ this.deleteGroupArray.name }}
  11060. </h2>
  11061. <div style="color: rgb(171 171 171); margin-top: 10px">
  11062. 请选择要删除的组员
  11063. </div>
  11064. <el-checkbox-group v-model="checkDeleteGroup">
  11065. <el-checkbox
  11066. style="display: flex; margin-top: 20px"
  11067. v-for="(item, index) in deleteGroupUser"
  11068. :label="item.userid"
  11069. :key="index"
  11070. >{{ item.name }}</el-checkbox
  11071. >
  11072. </el-checkbox-group>
  11073. </div>
  11074. <span slot="footer" class="dialog-footer">
  11075. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11076. <el-button type="primary" @click="deleteChair">确定</el-button>
  11077. </span>
  11078. </el-dialog>
  11079. <el-dialog
  11080. title="批量上传"
  11081. :visible.sync="dialogVisiblePl"
  11082. :append-to-body="true"
  11083. width="700px"
  11084. :before-close="handleClose"
  11085. class="dialog_change"
  11086. >
  11087. <div class="marginT">
  11088. <div class="plworkBox">
  11089. <div
  11090. class="chapter_add"
  11091. style="
  11092. display: flex;
  11093. width: 150px;
  11094. flex-direction: row;
  11095. flex-wrap: wrap;
  11096. justify-content: flex-start;
  11097. margin: 0 10px 10px 0;
  11098. "
  11099. v-for="(item, index) in plworkFile"
  11100. :key="index"
  11101. >
  11102. <div class="upCover2">
  11103. <img
  11104. :src="item.url"
  11105. alt
  11106. v-if="item.fileType == 1"
  11107. @click="previewImg(item.url)"
  11108. />
  11109. <img :src="word" alt v-else-if="item.fileType == 4" />
  11110. <img :src="video" alt v-else />
  11111. <!-- <span class="picName">{{ item.name }}</span> -->
  11112. <!-- <el-input
  11113. v-model="item.username"
  11114. placeholder="请输入学生名字"
  11115. style="margin-top: 10px"
  11116. ></el-input> -->
  11117. <div
  11118. class="pl_select_box"
  11119. @click="
  11120. getUpdateMore(true, checkUpload(), item.username, index)
  11121. "
  11122. >
  11123. {{ getSName(item.username) }}
  11124. </div>
  11125. <!-- <el-select
  11126. style="margin-top: 10px"
  11127. v-model="item.username"
  11128. filterable
  11129. allow-create
  11130. placeholder="请选择学生"
  11131. >
  11132. <el-option
  11133. v-for="item1 in checkUpload()"
  11134. :key="item1.userid"
  11135. :label="item1.name ? item1.name : item1.username"
  11136. :value="item1.userid"
  11137. >
  11138. </el-option>
  11139. </el-select> -->
  11140. <div class="deleteWord" @click="clean2(index)">
  11141. <img src="../../assets/icon/deleteWorks.png" alt />
  11142. </div>
  11143. </div>
  11144. </div>
  11145. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11146. <div class="up_photo2">
  11147. <img src="../../assets/icon/plwork.png" alt />
  11148. <span>点击上传文件</span>
  11149. </div>
  11150. <input
  11151. type="file"
  11152. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11153. multiple="multiple"
  11154. style="display: none"
  11155. @change="beforeUpload3($event, 6)"
  11156. />
  11157. </div>
  11158. </div>
  11159. </div>
  11160. <!-- capture="camera" -->
  11161. <div
  11162. class="upload_send"
  11163. @click="addCourseWorksPl(taskCount)"
  11164. v-if="!proVisible2"
  11165. >
  11166. 提交
  11167. </div>
  11168. </el-dialog>
  11169. <el-dialog
  11170. title="修改名称"
  11171. :visible.sync="dialogVisibleSname"
  11172. width="500px"
  11173. :before-close="handleClose"
  11174. class="dialog_diy"
  11175. center
  11176. >
  11177. <div
  11178. style="
  11179. text-align: center;
  11180. display: flex;
  11181. align-items: center;
  11182. justify-content: center;
  11183. "
  11184. >
  11185. <span class="tian1">名称</span>
  11186. <div
  11187. class="pl_select_box"
  11188. style="margin-left: 10px; width: 200px"
  11189. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11190. >
  11191. {{ getSName(worksSName) }}
  11192. </div>
  11193. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11194. placeholder="请选择学生">
  11195. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11196. :value="item.userid">
  11197. </el-option>
  11198. </el-select> -->
  11199. <!-- <el-input
  11200. v-model="worksSName"
  11201. style="width: 250px; margin: 15px 0px"
  11202. ></el-input> -->
  11203. </div>
  11204. <span slot="footer" class="dialog-footer">
  11205. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11206. <el-button type="primary" @click="updateName">确 定</el-button>
  11207. </span>
  11208. </el-dialog>
  11209. <el-dialog
  11210. title="英语写作"
  11211. :visible.sync="engDialogVisible"
  11212. :append-to-body="true"
  11213. width="800px"
  11214. :before-close="handleClose"
  11215. class="dialog_diy"
  11216. >
  11217. <onlineWrite
  11218. v-if="engDialogVisible"
  11219. @setEnglish="setEnglishList"
  11220. :englishList="englishList"
  11221. :myAnswerList1="myAnswerList1"
  11222. ></onlineWrite>
  11223. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11224. <el-button @click="engDialogVisible = false">取 消</el-button>
  11225. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11226. </span>
  11227. </el-dialog>
  11228. <el-dialog
  11229. title="英语写作"
  11230. :visible.sync="engUpdateDialogVisible"
  11231. :append-to-body="true"
  11232. width="800px"
  11233. :before-close="handleClose"
  11234. class="dialog_diy fullStyle"
  11235. >
  11236. <div class="engUpBox">
  11237. <div class="engUpTop">
  11238. <div class="engTitle">
  11239. <div>作文题目:</div>
  11240. <div>{{ englishList1.engTitle }}</div>
  11241. </div>
  11242. <div class="engText">
  11243. <div>作文题目:</div>
  11244. <div v-html="englishList1.englishText"></div>
  11245. </div>
  11246. </div>
  11247. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11248. <div class="oldBox">
  11249. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11250. <div class="oldText">
  11251. <div class="detailBox">
  11252. <div class="oldDetail">
  11253. <div>标题:</div>
  11254. <div>{{ oldEnglishJson.engTitle }} </div>
  11255. </div>
  11256. <div class="oldDetail">
  11257. <div>正文:</div>
  11258. <div v-html="oldEnglishJson.engText"></div>
  11259. </div>
  11260. </div>
  11261. </div>
  11262. </div>
  11263. <div class="oldBox" v-if="userMes[0].type == 2">
  11264. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11265. <div class="oldText">
  11266. <div class="detailBox">
  11267. <div class="oldDetail">
  11268. <div>标题:</div>
  11269. <el-input v-model="newEnglishList.engTitle" />
  11270. </div>
  11271. <div class="oldDetail">
  11272. <div>正文:</div>
  11273. <el-input type="textarea"
  11274. :rows="10"
  11275. resize="none" v-model="newEnglishList.engText" />
  11276. </div>
  11277. </div>
  11278. </div>
  11279. </div>
  11280. <div class="oldBox" v-else-if="userMes[0].type == 1">
  11281. <div class="oldMes" style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;" v-if="newEnglishList1.length > 0">
  11282. <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>
  11283. <div v-for="(item,index) in newEnglishList1" :key="index" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: index == newEngIndex ? '#aacaff' : ''}" @click="setEngText(index)">{{ item.username }}</div>
  11284. </div>
  11285. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11286. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11287. <div class="detailBox">
  11288. <div class="oldDetail">
  11289. <div>标题:</div>
  11290. <el-input v-model="oldEnglishJson1.engTitle" />
  11291. </div>
  11292. <div class="oldDetail">
  11293. <div>正文:</div>
  11294. <el-input type="textarea"
  11295. :rows="10"
  11296. resize="none" v-model="oldEnglishJson1.engText" />
  11297. </div>
  11298. </div>
  11299. </div>
  11300. <div class="oldText" v-else-if="newEngIndex == -1">
  11301. <div class="detailBox">
  11302. <div class="oldDetail">
  11303. <div>标题:</div>
  11304. <el-input v-model="newEnglishList.engTitle" />
  11305. </div>
  11306. <div class="oldDetail">
  11307. <div>正文:</div>
  11308. <el-input type="textarea"
  11309. :rows="10"
  11310. resize="none" v-model="newEnglishList.engText" />
  11311. </div>
  11312. </div>
  11313. </div>
  11314. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11315. <div class="detailBox">
  11316. <div class="oldDetail">
  11317. <div>标题:</div>
  11318. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="JSON.parse(newEnglishList1[newEngIndex].cWork).engTitle"></div>
  11319. <el-input v-else v-model="JSON.parse(newEnglishList1[newEngIndex].cWork).engTitle" />
  11320. </div>
  11321. <div class="oldDetail">
  11322. <div>正文:</div>
  11323. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="JSON.parse(newEnglishList1[newEngIndex].cWork).engText"></div>
  11324. <el-input v-else type="textarea"
  11325. :rows="10"
  11326. resize="none" v-model="JSON.parse(newEnglishList1[newEngIndex].cWork).engText" />
  11327. </div>
  11328. </div>
  11329. </div>
  11330. </div>
  11331. </div>
  11332. </div>
  11333. <span slot="footer" class="dialog-footer">
  11334. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11335. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11336. </span>
  11337. </el-dialog>
  11338. <interVideo
  11339. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11340. :videoJson="videoJson"
  11341. :userid="userid"
  11342. :id="id"
  11343. :courseType="courseType"
  11344. :taskCount="taskCount"
  11345. :toolindex="toolindex"
  11346. ></interVideo>
  11347. <UpdateMore
  11348. :dialogVisibleMember.sync="dialogVisibleMember"
  11349. :cList="uploadStudentJuri"
  11350. :userid="userid"
  11351. :searchTN="worksSName2"
  11352. @setPlname="setPlname"
  11353. ></UpdateMore>
  11354. <wordCloud
  11355. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11356. :data="wordCloudData"
  11357. ></wordCloud>
  11358. <el-dialog
  11359. title="挑人"
  11360. :visible.sync="dialogVisiblePickPeople"
  11361. width="650px"
  11362. :before-close="handleClose"
  11363. class="dialog_diy"
  11364. center
  11365. >
  11366. <div class="pick_box">
  11367. <div
  11368. class="noWorksName"
  11369. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11370. v-for="(item, index) in uploadStudentJuri"
  11371. :key="index"
  11372. @click="pickStudent(item)"
  11373. >
  11374. {{ item.name }}
  11375. </div>
  11376. </div>
  11377. </el-dialog>
  11378. </div>
  11379. </template>
  11380. <script>
  11381. import "../../common/aws-sdk-2.235.1.min.js";
  11382. // import pdf from "../components/pdf3";
  11383. import pdf from "../components/vpdf";
  11384. import AskStatic from "../components/askStatic";
  11385. import AskStatic2 from "../components/askStatic2";
  11386. import AnswerData2 from "../components/answerData2";
  11387. import AnswerData from "../components/answerData";
  11388. import EditorBar from "../tools/wangEnduit.vue";
  11389. import Table from "../tools/table.vue";
  11390. import Time from "../tools/time.vue";
  11391. import Mind from "../tools/jsmind.vue";
  11392. import Sunburst from "../tools/sunburst";
  11393. import SeeBoard from "../tools/seeBoard";
  11394. import * as imageConversion from "image-conversion";
  11395. import Audio from "../components/audio.vue";
  11396. import ImgDraw from "../tools/imgDraw/imgDraw";
  11397. import { Empty } from "element-ui";
  11398. import RecordRTC from "recordrtc";
  11399. import interVideo from "../interVideo/index.vue";
  11400. import UpdateMore from "../updateMore/updateMore.vue";
  11401. import wordCloud from "../wordCloud/index.vue";
  11402. import axios from "axios";
  11403. import JSZip from "jszip";
  11404. import FileSaver from "file-saver";
  11405. import onlineWrite from "./commpont/onlineWrite";
  11406. const getFile = (url) => {
  11407. return new Promise((resolve, reject) => {
  11408. axios({
  11409. method: "get",
  11410. url,
  11411. responseType: "blob",
  11412. })
  11413. .then((data) => {
  11414. resolve({ data: data.data });
  11415. })
  11416. .catch((error) => {
  11417. resolve({ data: 1 });
  11418. // reject(error.toString());
  11419. });
  11420. });
  11421. };
  11422. export default {
  11423. components: {
  11424. EditorBar,
  11425. Time,
  11426. pdf,
  11427. AskStatic,
  11428. AskStatic2,
  11429. Mind,
  11430. Sunburst,
  11431. SeeBoard,
  11432. AnswerData2,
  11433. AnswerData,
  11434. Audio,
  11435. ImgDraw,
  11436. Table,
  11437. interVideo,
  11438. UpdateMore,
  11439. wordCloud,
  11440. onlineWrite,
  11441. },
  11442. data() {
  11443. return {
  11444. bg: null,
  11445. drawShow: false,
  11446. dialogVisible: false,
  11447. dialogVisiblePl: false,
  11448. commentDialogVisible: false,
  11449. dialogVisibleMember: false,
  11450. dialogVisibleWordCloud: false,
  11451. videoVisible: false,
  11452. isStar: false,
  11453. studentEvalDialogVisible: false,
  11454. studentEvalDialogVisibleTeacher: false,
  11455. dialogVisibleSelect: false,
  11456. dialogVisibleSelectTeacher: false,
  11457. dialogVisibleScore: false,
  11458. dialogVisibleSentence: false,
  11459. dialogVisibleSentenceTeacher: false,
  11460. dialogVisibleSentence1: false,
  11461. dialogVisibleWorks: false,
  11462. dialogVisibleTable: false,
  11463. dialogVisibleTableTeacher: false,
  11464. dialogVisibleWord: false,
  11465. dialogVisibleWordTeacher: false,
  11466. dialogVisibleTable2: false,
  11467. dialogVisibleTable3: false,
  11468. dialogVisibleGroupWork: false,
  11469. dialogVisibleUpdateGroup: false,
  11470. dialogVisibleDeleteGroup: false,
  11471. dialogVisibleSname: false,
  11472. dialogVisibleVideo: false,
  11473. dialogVisiblePickPeople: false,
  11474. engDialogVisible: false,
  11475. engUpdateDialogVisible:false,
  11476. isNoUserid:false,
  11477. engListLength:0,
  11478. engWid:"",
  11479. newEnglishList:{
  11480. engTitle:"",
  11481. engText:"",
  11482. },
  11483. newEnglishList1:[],
  11484. oldEnglishJson:{},
  11485. oldEnglishJson1:{},
  11486. englishList1:{},
  11487. englishList:{},
  11488. myAnswerList1:{},
  11489. topHeight:0,
  11490. newEngIndex:-1,
  11491. englishToolIndex:0,
  11492. userMes:{},
  11493. englishToolIndex:0,
  11494. worksSName: "",
  11495. classJuri: [],
  11496. uploadStudentJuri: [],
  11497. uploadCid: "",
  11498. snameWid: "",
  11499. sStudent: {},
  11500. sTool: "",
  11501. bzText: "",
  11502. commentDetail: [],
  11503. selectAnswer: [],
  11504. videoDetail: {},
  11505. selectJson: {},
  11506. englishList: {},
  11507. topHeight:0,
  11508. eScore: { eBzText: "", eStar: [] },
  11509. id: this.$route.query.courseId,
  11510. userid: this.$route.query.userid,
  11511. classId: this.$route.query.cid,
  11512. // courseTypeLine: this.$route.query.type,
  11513. oid: this.$route.query.oid,
  11514. org: this.$route.query.org,
  11515. tType: this.$route.query.tType,
  11516. courseType: this.$route.query.type,
  11517. screenType: this.$route.query.screenType,
  11518. tcid2: this.$route.query.tcid,
  11519. tcid: "",
  11520. pptImgUrl: "",
  11521. pptImgUrl1: "",
  11522. commentText: "",
  11523. full: false,
  11524. sIsOpen: false,
  11525. IsLookOpen: false,
  11526. IsFollow: false,
  11527. pzDialog: false,
  11528. contentDialog: false,
  11529. mlDialog: false,
  11530. type: 1,
  11531. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11532. sentenceList1: [],
  11533. tableJson: [],
  11534. tableJsonO: [],
  11535. wordJson: [],
  11536. wordJsonO: [],
  11537. vedio: [],
  11538. text: [],
  11539. textList: [],
  11540. line: [],
  11541. lineList: [],
  11542. chapTools: [],
  11543. chapToolList: [],
  11544. file: [],
  11545. fileC: [],
  11546. vedioTime: [],
  11547. upToolImg: "",
  11548. preTime: 0,
  11549. rateList: {
  11550. ca: 0,
  11551. },
  11552. rateParams: [],
  11553. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11554. studyJuri: [
  11555. {
  11556. content: "",
  11557. cover: [],
  11558. upVedio: [],
  11559. upFile: [],
  11560. },
  11561. ],
  11562. isClose: 0,
  11563. plworkFile: [],
  11564. mr: require("../../assets/vedioPic.png"),
  11565. word: require("../../assets/icon/isWord.png"),
  11566. word2: require("../../assets/icon/word2.png"),
  11567. video: require("../../assets/icon/isVideo.png"),
  11568. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11569. likes: require("../../assets/icon/comment/likes.png"),
  11570. scoreImg: require("../../assets/score.png"),
  11571. courseDetail: {},
  11572. reply: "",
  11573. isSelect: false,
  11574. chapInfo: [],
  11575. chapInfoList: [],
  11576. taskCount: 0,
  11577. imgList: [],
  11578. noImgList: [],
  11579. pzList: [],
  11580. timeWorkList: [],
  11581. PlTextList: [
  11582. "Excellent!",
  11583. "nice!",
  11584. "很有创意!",
  11585. "还不错哦~",
  11586. "继续努力哦~",
  11587. ],
  11588. isClickNav: "",
  11589. navId: "",
  11590. playerOptions: {
  11591. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11592. autoplay: false, //如果true,浏览器准备好时开始回放。
  11593. muted: false, // 默认情况下将会消除任何音频。
  11594. loop: false, // 导致视频一结束就重新开始。
  11595. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11596. language: "zh-CN",
  11597. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11598. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11599. sources: [
  11600. {
  11601. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11602. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11603. },
  11604. ],
  11605. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11606. // poster: dataRes.imgUrl, //你的封面地址
  11607. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11608. controlBar: {
  11609. timeDivider: true, //当前时间和持续时间的分隔符
  11610. durationDisplay: true, //显示持续时间
  11611. remainingTimeDisplay: false, //是否显示剩余时间功能
  11612. fullscreenToggle: true, //全屏按钮
  11613. },
  11614. },
  11615. playerOptions1: {
  11616. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11617. autoplay: false, //如果true,浏览器准备好时开始回放。
  11618. muted: false, // 默认情况下将会消除任何音频。
  11619. loop: false, // 导致视频一结束就重新开始。
  11620. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11621. language: "zh-CN",
  11622. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11623. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11624. sources: [
  11625. {
  11626. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11627. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11628. },
  11629. ],
  11630. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11631. // poster: dataRes.imgUrl, //你的封面地址
  11632. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11633. controlBar: {
  11634. timeDivider: true, //当前时间和持续时间的分隔符
  11635. durationDisplay: true, //显示持续时间
  11636. remainingTimeDisplay: false, //是否显示剩余时间功能
  11637. fullscreenToggle: true, //全屏按钮
  11638. },
  11639. },
  11640. playerO: {},
  11641. noneBtnImg: false,
  11642. proVisible: false,
  11643. proVisible2: false,
  11644. progress: 0,
  11645. isFinishSize: 0,
  11646. isAllSize: 0,
  11647. questionAnswer: "",
  11648. answerQ: "", //问答标题
  11649. rateJson: [],
  11650. wbCount: 0,
  11651. wordCount: 0,
  11652. mindCount: 0,
  11653. askCount: 0,
  11654. noteCount: 0,
  11655. mindNetWorkCount: 0,
  11656. libraryCount: 0,
  11657. workCount: 0,
  11658. timeCount: 0,
  11659. answerCount: 0,
  11660. trainCount: 0,
  11661. evalCount: 0,
  11662. dialogImageUrl: "",
  11663. pictureDialog: false,
  11664. toolTypeList: [],
  11665. dialogVisible1: false,
  11666. dialogVisible2: false,
  11667. dialogVisible3: false,
  11668. dialogVisible6: false,
  11669. dialogVisible4: false,
  11670. isNoHomeWork: false,
  11671. dialogVisible5: false,
  11672. dialogVisible5Teacher: false,
  11673. dialogVisibleChoice: false,
  11674. dialogVisibleChoiceTeacher: false,
  11675. answerDialogVisible: false,
  11676. answerDialogVisibleTeacher: false,
  11677. juriVisible: false,
  11678. timeDialogVisible: false,
  11679. replyDialogVisible: false,
  11680. toolDialogVisible: false,
  11681. replyIndex: 0,
  11682. replyPid: "",
  11683. radio: [],
  11684. isAsk: false,
  11685. askJson: {
  11686. askCount: 1,
  11687. askTitle: "",
  11688. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11689. },
  11690. testJson: {},
  11691. checkJson: [],
  11692. askList: [],
  11693. answerList: [],
  11694. navList: [],
  11695. addPzDialog: false,
  11696. pzConText: "",
  11697. worksStudent: [],
  11698. isCloseList: [],
  11699. workStudent: [],
  11700. groupStudent: [],
  11701. groupStudentUid: [],
  11702. noWorksS: [],
  11703. isWorksS: [],
  11704. noWorksStudent: [],
  11705. toolindex: 0,
  11706. toolDetailIndex: null,
  11707. groupIndex: 0,
  11708. workTypeB: false,
  11709. workTypeC: false,
  11710. isAnswer: false,
  11711. isHovered: false,
  11712. isHovered1: false,
  11713. isHovered2: false,
  11714. timer: null,
  11715. opertimer: null,
  11716. showType: 0,
  11717. fileType: 0,
  11718. showPDF: false,
  11719. noteName: "",
  11720. evaJuri: [],
  11721. evalua: "",
  11722. eTitle: "",
  11723. eName: "",
  11724. eJson: {},
  11725. fid: "", //一级
  11726. sid: "", //二级
  11727. tid: "", //二级
  11728. typeMode: 1,
  11729. eJSONNum: 0,
  11730. Etype: 1,
  11731. data: {
  11732. meta: {
  11733. name: "example",
  11734. author: "dd@163.com",
  11735. version: "0.2",
  11736. },
  11737. format: "node_array",
  11738. data: [{ id: "root", isroot: true, topic: "" }],
  11739. },
  11740. fullDialogVisible: false,
  11741. fulltype: "",
  11742. fullUrl: "",
  11743. commentIndexJson: {},
  11744. Stbodywidth: 0,
  11745. ispzType: 0,
  11746. pzType: 1,
  11747. wScore: 0,
  11748. scoreDetail: "",
  11749. videoStart: false,
  11750. recorder: null,
  11751. groupJson: {},
  11752. islock: false,
  11753. groupJson2: {},
  11754. dialogVisibleGroup: false,
  11755. dialogVisibleGroup2: false,
  11756. updateGroupArray: [],
  11757. updateGroupUser: {},
  11758. deleteGroupUser: [],
  11759. deleteGroupArray: {},
  11760. checkChair: "",
  11761. checkDeleteGroup: [],
  11762. inviteCode: "",
  11763. courseGroupStudent: [],
  11764. courseGroupStudentUid: [],
  11765. courseGroup: {},
  11766. isGroup: false,
  11767. toolIndex: null,
  11768. tool: {},
  11769. isWorkTool: [
  11770. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11771. ], //, 40
  11772. videoJson: {},
  11773. toolType: 0,
  11774. checktoolArray: [],
  11775. vChapterData: [],
  11776. isUpdateToolDetail: false,
  11777. isUpdateToolDetail1: false,
  11778. updateToolDetailInner: "",
  11779. checkboxList: [],
  11780. plIndex: "",
  11781. worksSName2: "",
  11782. worksSid: "",
  11783. wordCloudData: [],
  11784. isPickStudent: [],
  11785. pzStype: 1,
  11786. };
  11787. },
  11788. methods: {
  11789. setEnglishList(engList) {
  11790. this.myAnList = engList;
  11791. },
  11792. addToolChoose() {
  11793. if (!this.checktoolArray.length) {
  11794. this.$message.error("请选择要添加的任务");
  11795. return;
  11796. }
  11797. if (
  11798. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11799. this.taskCount
  11800. ].toolChoose[0].tool.length
  11801. ) {
  11802. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11803. this.taskCount
  11804. ].toolChoose[0].tool = this.checktoolArray;
  11805. } else {
  11806. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11807. this.taskCount
  11808. ].toolChoose.push({
  11809. tool: this.checktoolArray,
  11810. toolDetail: "",
  11811. toolType: 0,
  11812. askCount: 1,
  11813. askTitle: "",
  11814. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11815. });
  11816. }
  11817. let params = [
  11818. {
  11819. cid: this.id,
  11820. chapters: JSON.stringify(this.chapInfoList),
  11821. uid: this.userid,
  11822. unitIndex: this.courseType,
  11823. },
  11824. ];
  11825. this.ajax
  11826. .post(this.$store.state.api + "updateWorkNew4", params)
  11827. .then((res) => {
  11828. this.$message({
  11829. message: "添加成功",
  11830. type: "success",
  11831. });
  11832. this.checktoolArray = [];
  11833. this.getCourseDetail(2);
  11834. this.checkBz(
  11835. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11836. this.taskCount
  11837. ].toolChoose.length - 1
  11838. );
  11839. this.toolDialogVisible = false;
  11840. this.refreshCourse();
  11841. this.$forceUpdate();
  11842. })
  11843. .catch((err) => {
  11844. console.error(err);
  11845. });
  11846. },
  11847. checkBz(index) {
  11848. this.isUpdateToolDetail = false;
  11849. this.$forceUpdate();
  11850. setTimeout(() => {
  11851. document.scrollingElement.scrollTop =
  11852. document.querySelectorAll(".filebox")[index].offsetTop +
  11853. document.querySelector(".student_body").offsetTop;
  11854. }, 500);
  11855. },
  11856. updateToolDetail(i) {
  11857. this.toolDetailIndex = i;
  11858. if (!this.isUpdateToolDetail1) {
  11859. this.isUpdateToolDetail1 = true;
  11860. this.updateToolDetailInner = JSON.parse(
  11861. JSON.stringify(
  11862. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11863. this.taskCount
  11864. ].toolChoose[i].toolDetail
  11865. )
  11866. );
  11867. } else {
  11868. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11869. this.taskCount
  11870. ].toolChoose[i].toolDetail = JSON.parse(
  11871. JSON.stringify(this.updateToolDetailInner)
  11872. );
  11873. let params = [
  11874. {
  11875. cid: this.id,
  11876. chapters: JSON.stringify(this.chapInfoList),
  11877. uid: this.userid,
  11878. unitIndex: this.courseType,
  11879. },
  11880. ];
  11881. this.ajax
  11882. .post(this.$store.state.api + "updateWorkNew4", params)
  11883. .then((res) => {
  11884. this.isUpdateToolDetail1 = false;
  11885. this.$message({
  11886. message: "修改成功",
  11887. type: "success",
  11888. });
  11889. this.toolDetailIndex = null;
  11890. this.updateToolDetailInner = "";
  11891. this.getCourseDetail(2);
  11892. this.$forceUpdate();
  11893. })
  11894. .catch((err) => {
  11895. console.error(err);
  11896. });
  11897. }
  11898. },
  11899. jumpGj(i, j, k, l) {
  11900. for (var z = 0; z < this.navList.length; z++) {
  11901. for (var q = 0; q < this.navList[z].task.length; q++) {
  11902. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  11903. this.navList[z].task[q].tool[w].isTool = false;
  11904. }
  11905. }
  11906. }
  11907. this.navList[i].task[j].tool[k].isTool =
  11908. !this.navList[i].task[j].tool[k].isTool;
  11909. var a = document.scrollingElement;
  11910. let target = document.querySelector(`#gj${k}`);
  11911. if (target) {
  11912. target.scrollIntoView(true);
  11913. setTimeout(() => {
  11914. a.scrollTop = a.scrollTop - 150;
  11915. }, 0);
  11916. }
  11917. if (l) {
  11918. this.courseType = i;
  11919. this.navId = l;
  11920. this.taskCount = j;
  11921. this.selectPz();
  11922. this.getHomeWork();
  11923. this.getCourseDetail(2);
  11924. }
  11925. // var b = this.$refs["bz" + k][0];
  11926. // a.scrollTop = b.offsetTop;
  11927. },
  11928. addTools2(i) {
  11929. if (i == 4) {
  11930. // this.openTools2(4);
  11931. this.$message.error("暂未开放");
  11932. return;
  11933. }
  11934. if (i == 45) {
  11935. // this.openTools2(45);
  11936. this.$message.error("暂未开放");
  11937. return;
  11938. }
  11939. if (i == 47) {
  11940. // this.openTools2(47);
  11941. this.$message.error("暂未开放");
  11942. return;
  11943. }
  11944. if (i == 49) {
  11945. // this.openTools2(49);
  11946. this.$message.error("暂未开放");
  11947. return;
  11948. }
  11949. if (i == 62) {
  11950. // this.openTools(itemTaskIndex, 62, toolIndex);
  11951. this.$message.error("暂未开放");
  11952. return;
  11953. }
  11954. if (i == 15) {
  11955. // this.openTools(itemTaskIndex, 15, toolIndex);
  11956. this.$message.error("暂未开放");
  11957. return;
  11958. }
  11959. if (i == 40) {
  11960. // this.openTools(itemTaskIndex, 40, toolIndex);
  11961. this.$message.error("暂未开放");
  11962. return;
  11963. }
  11964. if (i == 41) {
  11965. // this.openTools(itemTaskIndex, 41, toolIndex);
  11966. this.$message.error("暂未开放");
  11967. return;
  11968. }
  11969. if (i == 42) {
  11970. // this.openTools(itemTaskIndex, 42, toolIndex);
  11971. this.$message.error("暂未开放");
  11972. return;
  11973. }
  11974. if (this.checktoolArray.length > 0) {
  11975. if (this.checktoolArray.indexOf(i) != -1) {
  11976. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  11977. } else {
  11978. this.checktoolArray = [];
  11979. this.checktoolArray.push(i);
  11980. }
  11981. } else {
  11982. this.checktoolArray.push(i);
  11983. }
  11984. this.$forceUpdate();
  11985. },
  11986. jump() {
  11987. window.parent.postMessage({ tools: "43" }, "*");
  11988. },
  11989. getUpdateMore(f, checkboxList, searchTN, index) {
  11990. this.dialogVisibleMember = f;
  11991. this.checkboxList = checkboxList;
  11992. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  11993. this.plIndex = index;
  11994. },
  11995. setPlname(a) {
  11996. if (this.plworkFile.length) {
  11997. this.plworkFile[this.plIndex].username = a;
  11998. } else {
  11999. this.worksSName = a;
  12000. }
  12001. this.dialogVisibleMember = false;
  12002. },
  12003. previewImg(url) {
  12004. this.$hevueImgPreview(url);
  12005. },
  12006. checkImg(list) {
  12007. if (!list.length) {
  12008. return;
  12009. }
  12010. this.$hevueImgPreview({
  12011. multiple: true, // 开启多图预览模式
  12012. imgList: list, // 需要预览的多图数组
  12013. });
  12014. },
  12015. change(val) {
  12016. console.log(val);
  12017. },
  12018. goTo(path) {
  12019. this.$router.push(path);
  12020. },
  12021. handlePictureCardPreview(url) {
  12022. this.dialogImageUrl = url;
  12023. this.pictureDialog = true;
  12024. },
  12025. clean(type) {
  12026. if (type == 1) {
  12027. this.studyJuri[0].cover.splice(0, 1);
  12028. } else if (type == 2) {
  12029. this.studyJuri[0].upVedio.splice(0, 1);
  12030. } else {
  12031. this.studyJuri[0].upFile.splice(0, 1);
  12032. }
  12033. },
  12034. clean2(index) {
  12035. this.plworkFile.splice(index, 1);
  12036. },
  12037. handleClose(done) {
  12038. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12039. this.videoDetail.sources[0].src = "";
  12040. }
  12041. this.commentIndexJson = {};
  12042. done();
  12043. },
  12044. fullTools() {
  12045. this.full = !this.full;
  12046. },
  12047. imgChange(file, fileList, type) {
  12048. if (type == 1) {
  12049. var _tmp = this.studyJuri[0].cover;
  12050. } else if (type == 2) {
  12051. var _tmp = this.studyJuri[0].upVedio;
  12052. } else {
  12053. var _tmp = this.studyJuri[0].upFile;
  12054. }
  12055. this.noneBtnImg = _tmp.length >= 1;
  12056. },
  12057. setContent(bool) {
  12058. this.contentDialog = bool;
  12059. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12060. document.querySelector(".workd_media").style.height = "650px";
  12061. } else if (document.querySelector(".workd_media")) {
  12062. document.querySelector(".workd_media").style.height = "auto";
  12063. }
  12064. },
  12065. setContent2(bool) {
  12066. this.mlDialog = bool;
  12067. if (
  12068. bool &&
  12069. this.contentDialog &&
  12070. document.querySelector(".workd_media")
  12071. ) {
  12072. document.querySelector(".workd_media").style.height = "650px";
  12073. } else if (document.querySelector(".workd_media")) {
  12074. document.querySelector(".workd_media").style.height = "auto";
  12075. }
  12076. },
  12077. openToolAll() {
  12078. this.toolDialogVisible = true;
  12079. },
  12080. addImg(e) {
  12081. var el = e.currentTarget;
  12082. // this.$message.success('触发上传')
  12083. el.getElementsByTagName("input")[0].click();
  12084. e.target.value = "";
  12085. },
  12086. addSelectAnswer() {
  12087. let params = [
  12088. {
  12089. uid: this.userid,
  12090. cid: this.id,
  12091. stage: this.courseType,
  12092. task: this.taskCount,
  12093. tool: this.toolindex,
  12094. content: this.selectAnswer.answer,
  12095. type: 7,
  12096. },
  12097. ];
  12098. this.ajax
  12099. .post(this.$store.state.api + "addCourseWorks", params)
  12100. .then((res) => {
  12101. this.$message({
  12102. message: "提交成功",
  12103. type: "success",
  12104. });
  12105. this.dialogVisibleSelect = false;
  12106. // this.selectAnswer = {};
  12107. this.selectSWorks();
  12108. this.selectStudent();
  12109. })
  12110. .catch((err) => {
  12111. this.$message.error("提交失败");
  12112. console.error(err);
  12113. });
  12114. },
  12115. addSelectAnswerTeacher() {
  12116. let params = [
  12117. {
  12118. uid: this.sStudent.userid,
  12119. cid: this.id,
  12120. stage: this.courseType,
  12121. task: this.taskCount,
  12122. tool: this.toolindex,
  12123. content: this.selectAnswer.answer,
  12124. type: 7,
  12125. },
  12126. ];
  12127. this.ajax
  12128. .post(this.$store.state.api + "addCourseWorks", params)
  12129. .then((res) => {
  12130. this.$message({
  12131. message: "提交成功",
  12132. type: "success",
  12133. });
  12134. this.dialogVisibleSelectTeacher = false;
  12135. // this.selectAnswer = {};
  12136. this.selectSWorks();
  12137. this.selectStudent();
  12138. })
  12139. .catch((err) => {
  12140. this.$message.error("提交失败");
  12141. console.error(err);
  12142. });
  12143. },
  12144. addSenWorks() {
  12145. for (var i = 0; i < this.sentenceList.length; i++) {
  12146. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12147. if (
  12148. this.sentenceList[i].chooseSenList[j] == undefined ||
  12149. this.sentenceList[i].chooseSenList[j] == ""
  12150. ) {
  12151. this.$message.error("请将答案填写完整!");
  12152. return;
  12153. }
  12154. }
  12155. }
  12156. let params = [
  12157. {
  12158. uid: this.userid,
  12159. cid: this.id,
  12160. stage: this.courseType,
  12161. task: this.taskCount,
  12162. tool: this.toolindex,
  12163. content: JSON.stringify(this.sentenceList),
  12164. type: 9,
  12165. },
  12166. ];
  12167. this.ajax
  12168. .post(this.$store.state.api + "addCourseWorks", params)
  12169. .then((res) => {
  12170. this.$message({
  12171. message: "提交成功",
  12172. type: "success",
  12173. });
  12174. this.dialogVisibleSentence = false;
  12175. // this.selectAnswer = {};
  12176. this.selectSWorks();
  12177. this.selectStudent();
  12178. })
  12179. .catch((err) => {
  12180. this.$message.error("提交失败");
  12181. console.error(err);
  12182. });
  12183. },
  12184. addSenWorksTeacher() {
  12185. for (var i = 0; i < this.sentenceList.length; i++) {
  12186. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12187. if (
  12188. this.sentenceList[i].chooseSenList[j] == undefined ||
  12189. this.sentenceList[i].chooseSenList[j] == ""
  12190. ) {
  12191. this.$message.error("请将答案填写完整!");
  12192. return;
  12193. }
  12194. }
  12195. }
  12196. let params = [
  12197. {
  12198. uid: this.sStudent.userid,
  12199. cid: this.id,
  12200. stage: this.courseType,
  12201. task: this.taskCount,
  12202. tool: this.toolindex,
  12203. content: JSON.stringify(this.sentenceList),
  12204. type: 9,
  12205. },
  12206. ];
  12207. this.ajax
  12208. .post(this.$store.state.api + "addCourseWorks", params)
  12209. .then((res) => {
  12210. this.$message({
  12211. message: "提交成功",
  12212. type: "success",
  12213. });
  12214. this.dialogVisibleSentenceTeacher = false;
  12215. // this.selectAnswer = {};
  12216. this.selectSWorks();
  12217. this.selectStudent();
  12218. })
  12219. .catch((err) => {
  12220. this.$message.error("提交失败");
  12221. console.error(err);
  12222. });
  12223. },
  12224. returnTableText() {
  12225. this.$confirm("确定还原此模板吗?", "提示", {
  12226. confirmButtonText: "确定",
  12227. cancelButtonText: "取消",
  12228. type: "warning",
  12229. })
  12230. .then(() => {
  12231. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12232. })
  12233. .catch(() => {});
  12234. },
  12235. addTableWorks() {
  12236. let params = [
  12237. {
  12238. uid: this.userid,
  12239. cid: this.id,
  12240. stage: this.courseType,
  12241. task: this.taskCount,
  12242. tool: this.toolindex,
  12243. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12244. type: 10,
  12245. },
  12246. ];
  12247. this.ajax
  12248. .post(this.$store.state.api + "addCourseWorks", params)
  12249. .then((res) => {
  12250. this.$message({
  12251. message: "提交成功",
  12252. type: "success",
  12253. });
  12254. this.dialogVisibleTable = false;
  12255. // this.selectAnswer = {};
  12256. this.selectSWorks();
  12257. this.selectStudent();
  12258. })
  12259. .catch((err) => {
  12260. this.$message.error("提交失败");
  12261. console.error(err);
  12262. });
  12263. },
  12264. tableRowClassName({ row, rowIndex }) {
  12265. if ((rowIndex + 1) % 2 === 0) {
  12266. return "even_row";
  12267. } else {
  12268. return "";
  12269. }
  12270. },
  12271. addTableWorksTeacher() {
  12272. let params = [
  12273. {
  12274. uid: this.sStudent.userid,
  12275. cid: this.id,
  12276. stage: this.courseType,
  12277. task: this.taskCount,
  12278. tool: this.toolindex,
  12279. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12280. type: 10,
  12281. },
  12282. ];
  12283. this.ajax
  12284. .post(this.$store.state.api + "addCourseWorks", params)
  12285. .then((res) => {
  12286. this.$message({
  12287. message: "提交成功",
  12288. type: "success",
  12289. });
  12290. this.dialogVisibleTableTeacher = false;
  12291. // this.selectAnswer = {};
  12292. this.selectSWorks();
  12293. this.selectStudent();
  12294. })
  12295. .catch((err) => {
  12296. this.$message.error("提交失败");
  12297. console.error(err);
  12298. });
  12299. },
  12300. returnWordText() {
  12301. this.$confirm("确定还原此模板吗?", "提示", {
  12302. confirmButtonText: "确定",
  12303. cancelButtonText: "取消",
  12304. type: "warning",
  12305. })
  12306. .then(() => {
  12307. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  12308. })
  12309. .catch(() => {});
  12310. },
  12311. addWordWorks() {
  12312. let params = [
  12313. {
  12314. uid: this.userid,
  12315. cid: this.id,
  12316. stage: this.courseType,
  12317. task: this.taskCount,
  12318. tool: this.toolindex,
  12319. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12320. type: 13,
  12321. atool: 52,
  12322. },
  12323. ];
  12324. this.ajax
  12325. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12326. .then((res) => {
  12327. this.$message({
  12328. message: "提交成功",
  12329. type: "success",
  12330. });
  12331. this.dialogVisibleWord = false;
  12332. // this.selectAnswer = {};
  12333. this.selectSWorks();
  12334. this.selectStudent();
  12335. })
  12336. .catch((err) => {
  12337. this.$message.error("提交失败");
  12338. console.error(err);
  12339. });
  12340. },
  12341. addWordWorksTeacher() {
  12342. let params = [
  12343. {
  12344. uid: this.sStudent.userid,
  12345. cid: this.id,
  12346. stage: this.courseType,
  12347. task: this.taskCount,
  12348. tool: this.toolindex,
  12349. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12350. type: 13,
  12351. atool: 52,
  12352. },
  12353. ];
  12354. this.ajax
  12355. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12356. .then((res) => {
  12357. this.$message({
  12358. message: "提交成功",
  12359. type: "success",
  12360. });
  12361. this.dialogVisibleWordTeacher = false;
  12362. // this.selectAnswer = {};
  12363. this.selectSWorks();
  12364. this.selectStudent();
  12365. })
  12366. .catch((err) => {
  12367. this.$message.error("提交失败");
  12368. console.error(err);
  12369. });
  12370. },
  12371. addCourseWorks(i) {
  12372. var typesql;
  12373. if (this.fileType === 0) {
  12374. typesql = 1;
  12375. } else if (this.fileType === 1) {
  12376. typesql = 4;
  12377. } else if (this.fileType === 2) {
  12378. typesql = 5;
  12379. } else if (this.fileType === 3) {
  12380. typesql = 12;
  12381. }
  12382. if (!this.studyJuri[0].cover[0].url) {
  12383. this.$message.error("请上传文件");
  12384. return;
  12385. }
  12386. let params = [
  12387. {
  12388. uid: this.userid,
  12389. cid: this.id,
  12390. stage: this.courseType,
  12391. task: i,
  12392. tool: this.toolindex,
  12393. content: this.studyJuri[0].cover[0].url,
  12394. type: typesql,
  12395. },
  12396. ];
  12397. this.ajax
  12398. .post(this.$store.state.api + "addCourseWorksR", params)
  12399. .then((res) => {
  12400. this.$message({
  12401. message: "提交成功",
  12402. type: "success",
  12403. });
  12404. this.studyJuri[0].cover = [];
  12405. this.dialogVisible = false;
  12406. this.getCourseDetail(2);
  12407. })
  12408. .catch((err) => {
  12409. this.$message.error("提交失败");
  12410. console.error(err);
  12411. });
  12412. },
  12413. addCourseWorksPl(i) {
  12414. let _files = this.plworkFile;
  12415. var c = 1;
  12416. for (var k = 0; k < _files.length; k++) {
  12417. if (!_files[k].username) {
  12418. c = 2;
  12419. }
  12420. }
  12421. if (c == 2) {
  12422. this.$message.error("请填写学生姓名");
  12423. return;
  12424. }
  12425. let params = [
  12426. {
  12427. ateacher: this.userid,
  12428. cid: this.id,
  12429. stage: this.courseType,
  12430. task: i,
  12431. tool: this.toolindex,
  12432. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12433. },
  12434. ];
  12435. this.ajax
  12436. .post(this.$store.state.api + "addCourseWorksPl", params)
  12437. .then((res) => {
  12438. this.$message({
  12439. message: "提交成功",
  12440. type: "success",
  12441. });
  12442. this.plworkFile = [];
  12443. this.dialogVisiblePl = false;
  12444. this.getCourseDetail(2);
  12445. })
  12446. .catch((err) => {
  12447. this.$message.error("提交失败");
  12448. console.error(err);
  12449. });
  12450. },
  12451. addCourseWorks2(i) {
  12452. var typesql;
  12453. if (this.fileType === 0) {
  12454. typesql = 0;
  12455. } else if (this.fileType === 1) {
  12456. typesql = 1;
  12457. } else if (this.fileType === 2) {
  12458. typesql = 3;
  12459. } else if (this.fileType === 3) {
  12460. typesql = 12;
  12461. }
  12462. if (!this.studyJuri[0].cover[0].url) {
  12463. this.$message.error("请上传文件");
  12464. return;
  12465. }
  12466. let params = [
  12467. {
  12468. uid: this.userid,
  12469. cid: this.id,
  12470. stage: this.courseType,
  12471. task: i,
  12472. tool: this.toolindex,
  12473. content: JSON.stringify({
  12474. type: typesql,
  12475. groupIndex: this.groupIndex,
  12476. url: this.studyJuri[0].cover[0].url,
  12477. }).replaceAll(/%/g, "%25"),
  12478. type: 11,
  12479. atool: 49,
  12480. text: "",
  12481. },
  12482. ];
  12483. this.ajax
  12484. .post(this.$store.state.api + "addCourseWorks5", params)
  12485. .then((res) => {
  12486. this.$message({
  12487. message: "提交成功",
  12488. type: "success",
  12489. });
  12490. this.studyJuri[0].cover = [];
  12491. this.dialogVisibleGroupWork = false;
  12492. this.getCourseDetail(2);
  12493. })
  12494. .catch((err) => {
  12495. this.$message.error("提交失败");
  12496. console.error(err);
  12497. });
  12498. },
  12499. addEnglishWork() {
  12500. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  12501. this.$message.error("请输入作文标题和正文!");
  12502. return;
  12503. }
  12504. let params = [
  12505. {
  12506. uid: this.userid,
  12507. cid: this.id,
  12508. stage: this.courseType,
  12509. task: this.taskCount,
  12510. tool: this.englishToolIndex,
  12511. content: JSON.stringify(this.myAnList),
  12512. type: 16,
  12513. atool: 69,
  12514. text: "",
  12515. },
  12516. ];
  12517. this.ajax
  12518. .post(this.$store.state.api + "addCourseWorks5", params)
  12519. .then((res) => {
  12520. this.$message({
  12521. message: "提交成功",
  12522. type: "success",
  12523. });
  12524. this.myAnList = {};
  12525. this.englishList = {};
  12526. this.englishToolIndex = 0;
  12527. this.engDialogVisible = false;
  12528. this.selectSWorks();
  12529. this.selectStudent();
  12530. })
  12531. .catch((err) => {
  12532. this.$message.error("提交失败");
  12533. console.error(err);
  12534. });
  12535. },
  12536. addCourseWorksGong(i, data, tool) {
  12537. let params = [
  12538. {
  12539. uid: this.userid,
  12540. cid: this.id,
  12541. stage: this.courseType,
  12542. task: this.taskCount,
  12543. tool: i,
  12544. content: data,
  12545. type: 12,
  12546. atool: tool,
  12547. text: "",
  12548. },
  12549. ];
  12550. this.ajax
  12551. .post(this.$store.state.api + "addCourseWorks5", params)
  12552. .then((res) => {
  12553. this.$message({
  12554. message: "提交成功",
  12555. type: "success",
  12556. });
  12557. this.studyJuri[0].cover = [];
  12558. this.selectSWorks();
  12559. this.selectStudent();
  12560. })
  12561. .catch((err) => {
  12562. this.$message.error("提交失败");
  12563. console.error(err);
  12564. });
  12565. },
  12566. addCourseWorksGongTeacher(i, data, tool) {
  12567. let params = [
  12568. {
  12569. uid: this.sStudent.userid,
  12570. cid: this.id,
  12571. stage: this.courseType,
  12572. task: this.taskCount,
  12573. tool: i,
  12574. content: data,
  12575. type: 12,
  12576. atool: tool,
  12577. text: "",
  12578. },
  12579. ];
  12580. this.ajax
  12581. .post(this.$store.state.api + "addCourseWorks5", params)
  12582. .then((res) => {
  12583. this.$message({
  12584. message: "提交成功",
  12585. type: "success",
  12586. });
  12587. this.studyJuri[0].cover = [];
  12588. this.dialogVisibleWorks = false;
  12589. this.selectSWorks();
  12590. this.selectStudent();
  12591. })
  12592. .catch((err) => {
  12593. this.$message.error("提交失败");
  12594. console.error(err);
  12595. });
  12596. },
  12597. addCourseWorksGongPl(i, data, tool, type) {
  12598. let params = [
  12599. {
  12600. uid: this.sStudent.userid,
  12601. cid: this.id,
  12602. stage: this.courseType,
  12603. task: this.taskCount,
  12604. tool: i,
  12605. content: data,
  12606. type: type,
  12607. atool: tool,
  12608. text: "",
  12609. },
  12610. ];
  12611. this.ajax
  12612. .post(this.$store.state.api + "addCourseWorks5", params)
  12613. .then((res) => {
  12614. this.$message({
  12615. message: "提交成功",
  12616. type: "success",
  12617. });
  12618. this.studyJuri[0].cover = [];
  12619. this.dialogVisibleWorks = false;
  12620. this.selectSWorks();
  12621. this.selectStudent();
  12622. })
  12623. .catch((err) => {
  12624. this.$message.error("提交失败");
  12625. console.error(err);
  12626. });
  12627. },
  12628. addCourseWorksTeacher(i) {
  12629. var typesql;
  12630. if (this.sTool == 32) {
  12631. this.addCourseWorksGongTeacher(
  12632. this.toolindex,
  12633. this.studyJuri[0].cover[0].url,
  12634. this.sTool
  12635. );
  12636. return;
  12637. }
  12638. if (this.fileType === 0) {
  12639. typesql = 1;
  12640. } else if (this.fileType === 1) {
  12641. typesql = 4;
  12642. } else if (this.fileType === 2) {
  12643. typesql = 5;
  12644. } else if (this.fileType === 3) {
  12645. typesql = 12;
  12646. }
  12647. if (this.sTool == 50) {
  12648. this.addCourseWorksGongPl(
  12649. this.toolindex,
  12650. this.studyJuri[0].cover[0].url,
  12651. this.sTool,
  12652. typesql
  12653. );
  12654. return;
  12655. }
  12656. if (!this.studyJuri[0].cover[0].url) {
  12657. this.$message.error("请上传文件");
  12658. return;
  12659. }
  12660. let params = [
  12661. {
  12662. uid: this.sStudent.userid,
  12663. cid: this.id,
  12664. stage: this.courseType,
  12665. task: i,
  12666. tool: this.toolindex,
  12667. content: this.studyJuri[0].cover[0].url,
  12668. type: typesql,
  12669. ateacher: this.userid,
  12670. },
  12671. ];
  12672. this.ajax
  12673. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12674. .then((res) => {
  12675. this.$message({
  12676. message: "提交成功",
  12677. type: "success",
  12678. });
  12679. this.studyJuri[0].cover = [];
  12680. this.dialogVisibleWorks = false;
  12681. this.getCourseDetail(2);
  12682. })
  12683. .catch((err) => {
  12684. this.$message.error("提交失败");
  12685. console.error(err);
  12686. });
  12687. },
  12688. selectUploadStudent(type) {
  12689. const loading = this.$loading.service({
  12690. background: "rgba(255, 255, 255, 0.7)",
  12691. target: document.body,
  12692. });
  12693. let params = {
  12694. cid: this.uploadCid,
  12695. oid: this.oid,
  12696. cn: "",
  12697. };
  12698. this.ajax
  12699. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12700. .then((res) => {
  12701. loading.close();
  12702. var studentK = [];
  12703. if (this.isWorksS[this.toolindex].length > 0) {
  12704. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12705. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12706. }
  12707. studentK = studentK.join(",");
  12708. }
  12709. this.uploadStudentJuri = res.data[0].filter((el) => {
  12710. return studentK.indexOf(el.userid) == -1;
  12711. });
  12712. if (this.worksSName && this.worksSid) {
  12713. this.uploadStudentJuri.push({
  12714. userid: this.worksSid,
  12715. name: this.worksSName,
  12716. });
  12717. }
  12718. if (type == 1) {
  12719. this.plworkFile = [];
  12720. this.dialogVisibleSname = true;
  12721. } else if (type == 2) {
  12722. this.dialogVisiblePl = true;
  12723. }
  12724. })
  12725. .catch((err) => {
  12726. loading.close();
  12727. console.error(err);
  12728. });
  12729. },
  12730. selectPickStudent() {
  12731. const loading = this.$loading.service({
  12732. background: "rgba(255, 255, 255, 0.7)",
  12733. target: document.body,
  12734. });
  12735. let params = {
  12736. cid: this.uploadCid,
  12737. oid: this.oid,
  12738. cn: "",
  12739. };
  12740. this.ajax
  12741. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12742. .then((res) => {
  12743. loading.close();
  12744. this.uploadStudentJuri = res.data[0];
  12745. this.dialogVisiblePickPeople = true;
  12746. })
  12747. .catch((err) => {
  12748. loading.close();
  12749. console.error(err);
  12750. });
  12751. },
  12752. arrayToArray(arrayo, arrayt) {
  12753. let array1 = arrayo;
  12754. let array2 = arrayt;
  12755. let commonElements = [];
  12756. for (let i = 0; i < array1.length; i++) {
  12757. for (let j = 0; j < array2.length; j++) {
  12758. if (array1[i] === array2[j]) {
  12759. commonElements.push(array1[i]);
  12760. }
  12761. }
  12762. }
  12763. return commonElements;
  12764. },
  12765. selectWorksStudent() {
  12766. let params = {
  12767. oid: this.oid,
  12768. cid: this.courseDetail.juri,
  12769. };
  12770. this.ajax
  12771. .get(this.$store.state.api + "selectWorksStudent", params)
  12772. .then((res) => {
  12773. var a = res.data[0];
  12774. for (var i = 0; i < this.isWorksS.length; i++) {
  12775. this.noWorksS[i] = [];
  12776. var studentK = [];
  12777. if (this.isWorksS[i].length > 0) {
  12778. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12779. studentK.push(this.isWorksS[i][z].uid);
  12780. }
  12781. studentK = studentK.join(",");
  12782. for (var j = 0; j < a.length; j++) {
  12783. if (studentK.indexOf(a[j].userid) == -1) {
  12784. if (this.tcid) {
  12785. // a[j].classid.indexOf(this.tcid) != -1
  12786. if (
  12787. this.arrayToArray(
  12788. a[j].classid.split(","),
  12789. this.tcid.split(",")
  12790. ).length
  12791. ) {
  12792. this.noWorksS[i].push({
  12793. student: a[j].name,
  12794. userid: a[j].userid,
  12795. });
  12796. }
  12797. } else {
  12798. this.noWorksS[i].push({
  12799. student: a[j].name,
  12800. userid: a[j].userid,
  12801. });
  12802. }
  12803. }
  12804. }
  12805. } else {
  12806. for (var k = 0; k < a.length; k++) {
  12807. if (this.tcid) {
  12808. if (
  12809. this.arrayToArray(
  12810. a[k].classid.split(","),
  12811. this.tcid.split(",")
  12812. ).length
  12813. ) {
  12814. this.noWorksS[i].push({
  12815. student: a[k].name,
  12816. userid: a[k].userid,
  12817. });
  12818. }
  12819. } else {
  12820. this.noWorksS[i].push({
  12821. student: a[k].name,
  12822. userid: a[k].userid,
  12823. });
  12824. }
  12825. }
  12826. }
  12827. }
  12828. this.$forceUpdate();
  12829. if (
  12830. Object.keys(this.commentDetail).length &&
  12831. Object.keys(this.commentIndexJson).length &&
  12832. !this.dialogVisibleScore
  12833. ) {
  12834. let a = 1;
  12835. let c = this.commentIndexJson;
  12836. if (
  12837. this.commentIndexJson.gindex ||
  12838. this.commentIndexJson.gindex === 0
  12839. ) {
  12840. for (
  12841. var i = 0;
  12842. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12843. i++
  12844. ) {
  12845. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12846. groupA: for (var k = 0; k < _el.length; k++) {
  12847. let el = _el[k];
  12848. if (el.wid == this.commentDetail.wid) {
  12849. a = 2;
  12850. this.commentOther(
  12851. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12852. this.commentIndexJson.toolIndex,
  12853. k,
  12854. this.commentIndexJson.gindex
  12855. );
  12856. break groupA;
  12857. }
  12858. }
  12859. }
  12860. if (a === 1) {
  12861. this.commentDetail = [];
  12862. this.commentIndexJson = {};
  12863. this.commentDialogVisible = false;
  12864. this.$message("此作业已被删除");
  12865. }
  12866. } else {
  12867. if (this.isGroup && this.commentIndexJson.gid) {
  12868. groupA: for (
  12869. var i = 0;
  12870. i < this.courseGroup.group.length;
  12871. i++
  12872. ) {
  12873. let _group = this.courseGroup.group[i];
  12874. if (_group.id == this.commentIndexJson.gid) {
  12875. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12876. for (var k = 0; k < _el2.length; k++) {
  12877. let el2 = _el2[k];
  12878. if (el2.wid == this.commentDetail.wid) {
  12879. a = 2;
  12880. this.commentOther(
  12881. _el2[k],
  12882. this.commentIndexJson.toolIndex,
  12883. k,
  12884. null,
  12885. this.commentIndexJson.gid
  12886. );
  12887. break groupA;
  12888. }
  12889. }
  12890. }
  12891. }
  12892. }
  12893. if (a == 1) {
  12894. for (
  12895. var i = 0;
  12896. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12897. i++
  12898. ) {
  12899. let el =
  12900. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12901. if (el.wid == this.commentDetail.wid) {
  12902. a = 2;
  12903. this.commentOther(
  12904. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12905. this.commentIndexJson.toolIndex,
  12906. i
  12907. );
  12908. break;
  12909. }
  12910. }
  12911. }
  12912. if (a === 1) {
  12913. this.commentDetail = [];
  12914. this.commentIndexJson = {};
  12915. this.commentDialogVisible = false;
  12916. this.$message("此作业已被删除");
  12917. }
  12918. }
  12919. }
  12920. })
  12921. .catch((err) => {
  12922. console.error(err);
  12923. });
  12924. },
  12925. selectStudent() {
  12926. //学生查看自己作业
  12927. let params = {
  12928. uid: this.userid,
  12929. cid: this.id,
  12930. s: this.courseType,
  12931. t: this.taskCount,
  12932. };
  12933. this.ajax
  12934. .get(this.$store.state.api + "selectStudentWorks", params)
  12935. .then((res) => {
  12936. var a =
  12937. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12938. this.taskCount
  12939. ].toolChoose;
  12940. var b = res.data[0];
  12941. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12942. var y = [
  12943. "AVI",
  12944. "NAVI",
  12945. "MPEG",
  12946. "ASF",
  12947. "MOV",
  12948. "WMV",
  12949. "3GP",
  12950. "RM",
  12951. "RMVB",
  12952. "FLV",
  12953. "F4V",
  12954. "H.264",
  12955. "H.265",
  12956. "REAL VIDEO",
  12957. "MKV",
  12958. "WebM",
  12959. "HDDVD",
  12960. "MP4",
  12961. "MPG",
  12962. "M4V",
  12963. "MGV",
  12964. "OGV",
  12965. "QTM",
  12966. "STR",
  12967. "AMC",
  12968. "DVX",
  12969. "EVO",
  12970. "DAT",
  12971. "OGG",
  12972. "OGM",
  12973. ];
  12974. for (var i = 0; i < a.length; i++) {
  12975. this.workStudent[i] = [];
  12976. for (var j = 0; j < b.length; j++) {
  12977. if (i == b[j].tool) {
  12978. if (
  12979. (b[j].type == 1 ||
  12980. b[j].type == 4 ||
  12981. b[j].type == 5 ||
  12982. b[j].type == 6 ||
  12983. b[j].type == 12 ||
  12984. b[j].type == 7) &&
  12985. a[i].tool[0] != 15 &&
  12986. a[i].tool[0] != 4 &&
  12987. a[i].tool[0] != 45 &&
  12988. a[i].tool[0] != 50 &&
  12989. a[i].tool[0] != 32 &&
  12990. a[i].tool[0] != 57 &&
  12991. a[i].tool[0] != 52 &&
  12992. a[i].tool[0] != 69
  12993. ) {
  12994. if (
  12995. c.indexOf(
  12996. b[j].content
  12997. .split(".")
  12998. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  12999. ) != -1 &&
  13000. a[i].tool[0] == 16 &&
  13001. b[j].atool != 50
  13002. ) {
  13003. this.workStudent[i].push({
  13004. works: b[j].content,
  13005. sName: b[j].name,
  13006. score: b[j].score,
  13007. img: b[j].img,
  13008. type: 1,
  13009. time: b[j].time,
  13010. userid: b[j].userid,
  13011. wid: b[j].id,
  13012. });
  13013. } else if (
  13014. y.indexOf(
  13015. b[j].content
  13016. .split(".")
  13017. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13018. ) != -1 &&
  13019. a[i].tool[0] == 16 &&
  13020. b[j].atool != 50
  13021. ) {
  13022. this.workStudent[i].push({
  13023. userid: b[j].userid,
  13024. wid: b[j].id,
  13025. works: b[j].content,
  13026. sName: b[j].name,
  13027. score: b[j].score,
  13028. img: b[j].img,
  13029. type: 3,
  13030. time: b[j].time,
  13031. });
  13032. } else if (b[j].type == 6 && b[j].atool != 50) {
  13033. this.workStudent[i].push({
  13034. userid: b[j].userid,
  13035. wid: b[j].id,
  13036. works: b[j].content,
  13037. sName: b[j].name,
  13038. score: b[j].score,
  13039. img: b[j].img,
  13040. type: 4,
  13041. time: b[j].time,
  13042. });
  13043. } else if (b[j].type == 7 && b[j].atool != 50) {
  13044. this.workStudent[i].push({
  13045. userid: b[j].userid,
  13046. wid: b[j].id,
  13047. works: b[j].content,
  13048. sName: b[j].name,
  13049. score: b[j].score,
  13050. img: b[j].img,
  13051. type: 5,
  13052. time: b[j].time,
  13053. });
  13054. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13055. this.workStudent[i].push({
  13056. works: b[j].content,
  13057. sName: b[j].name,
  13058. score: b[j].score,
  13059. img: b[j].img,
  13060. type: 12,
  13061. time: b[j].time,
  13062. userid: b[j].userid,
  13063. wid: b[j].id,
  13064. });
  13065. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13066. this.workStudent[i].push({
  13067. works: b[j].content,
  13068. sName: b[j].name,
  13069. score: b[j].score,
  13070. img: b[j].img,
  13071. type: 0,
  13072. time: b[j].time,
  13073. userid: b[j].userid,
  13074. wid: b[j].id,
  13075. });
  13076. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13077. this.workStudent[i].push({
  13078. works: b[j].content,
  13079. sName: b[j].name,
  13080. score: b[j].score,
  13081. img: b[j].img,
  13082. type: 0,
  13083. time: b[j].time,
  13084. userid: b[j].userid,
  13085. wid: b[j].id,
  13086. });
  13087. }
  13088. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13089. this.workStudent[i].push({
  13090. works: b[j].content,
  13091. sName: b[j].name,
  13092. score: b[j].score,
  13093. img: b[j].img,
  13094. type: 2,
  13095. time: b[j].time,
  13096. userid: b[j].userid,
  13097. wid: b[j].id,
  13098. });
  13099. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13100. //问卷
  13101. this.workStudent[i].push({
  13102. works: b[j].content,
  13103. sName: b[j].name,
  13104. score: b[j].score,
  13105. img: b[j].img,
  13106. type: 2,
  13107. time: b[j].time,
  13108. userid: b[j].userid,
  13109. wid: b[j].id,
  13110. });
  13111. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13112. //选择题
  13113. this.workStudent[i].push({
  13114. works: b[j].content,
  13115. sName: b[j].name,
  13116. score: b[j].score,
  13117. img: b[j].img,
  13118. type: 8,
  13119. time: b[j].time,
  13120. userid: b[j].userid,
  13121. wid: b[j].id,
  13122. });
  13123. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13124. //选择题
  13125. this.workStudent[i].push({
  13126. works: b[j].content,
  13127. sName: b[j].name,
  13128. score: b[j].score,
  13129. img: b[j].img,
  13130. type: 9,
  13131. time: b[j].time,
  13132. userid: b[j].userid,
  13133. wid: b[j].id,
  13134. });
  13135. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13136. //选择题
  13137. this.workStudent[i].push({
  13138. works: b[j].content,
  13139. sName: b[j].name,
  13140. score: b[j].score,
  13141. img: b[j].img,
  13142. type: 10,
  13143. time: b[j].time,
  13144. userid: b[j].userid,
  13145. wid: b[j].id,
  13146. });
  13147. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13148. //选择题
  13149. this.workStudent[i].push({
  13150. works: b[j].content,
  13151. sName: b[j].name,
  13152. score: b[j].score,
  13153. img: b[j].img,
  13154. type: 13,
  13155. time: b[j].time,
  13156. userid: b[j].userid,
  13157. wid: b[j].id,
  13158. });
  13159. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13160. //选择题
  13161. this.workStudent[i].push({
  13162. works: b[j].content,
  13163. sName: b[j].name,
  13164. score: b[j].score,
  13165. img: b[j].img,
  13166. type: 12,
  13167. time: b[j].time,
  13168. userid: b[j].userid,
  13169. wid: b[j].id,
  13170. });
  13171. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13172. //选择题
  13173. this.workStudent[i].push({
  13174. works: b[j].content,
  13175. sName: b[j].name,
  13176. score: b[j].score,
  13177. img: b[j].img,
  13178. type: 12,
  13179. time: b[j].time,
  13180. userid: b[j].userid,
  13181. wid: b[j].id,
  13182. });
  13183. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13184. //选择题
  13185. this.workStudent[i].push({
  13186. works: b[j].content,
  13187. sName: b[j].name,
  13188. score: b[j].score,
  13189. img: b[j].img,
  13190. type: 15,
  13191. time: b[j].time,
  13192. userid: b[j].userid,
  13193. wid: b[j].id,
  13194. });
  13195. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13196. //英语写作
  13197. this.workStudent[i].push({
  13198. works: b[j].content,
  13199. sName: b[j].name,
  13200. score: b[j].score,
  13201. img: b[j].img,
  13202. type: 16,
  13203. time: b[j].time,
  13204. userid: b[j].userid,
  13205. wid: b[j].id,
  13206. });
  13207. }
  13208. }
  13209. }
  13210. }
  13211. })
  13212. .catch((err) => {
  13213. console.error(err);
  13214. });
  13215. },
  13216. openVideo(w) {
  13217. this.videoDetail = {};
  13218. this.playerOptions1.sources[0].src = w.works;
  13219. this.videoDetail = this.playerOptions1;
  13220. this.videoVisible = true;
  13221. },
  13222. isLikes(wid, uid, t, c, isLikes) {
  13223. if (isLikes == false) {
  13224. let params = [
  13225. {
  13226. wid: wid,
  13227. lid: uid,
  13228. t: t,
  13229. c: c,
  13230. },
  13231. ];
  13232. this.ajax
  13233. .post(this.$store.state.api + "insertComment", params)
  13234. .then((res) => {
  13235. this.$message({
  13236. message: "点赞成功",
  13237. type: "success",
  13238. });
  13239. this.selectSWorks();
  13240. this.selectStudent();
  13241. })
  13242. .catch((err) => {
  13243. this.$message.error("点赞失败");
  13244. console.error(err);
  13245. });
  13246. } else {
  13247. let params = {
  13248. wid: wid,
  13249. lid: uid,
  13250. type: t,
  13251. };
  13252. this.ajax
  13253. .get(this.$store.state.api + "deleteComment", params)
  13254. .then((res) => {
  13255. this.$message({
  13256. message: "取消点赞成功",
  13257. type: "success",
  13258. });
  13259. this.selectSWorks();
  13260. this.selectStudent();
  13261. })
  13262. .catch((err) => {
  13263. console.error(err);
  13264. });
  13265. }
  13266. },
  13267. deleteComment(wid) {
  13268. this.$confirm("确定删除此评论吗?", "提示", {
  13269. confirmButtonText: "确定",
  13270. cancelButtonText: "取消",
  13271. type: "warning",
  13272. })
  13273. .then(() => {
  13274. let params = {
  13275. id: wid,
  13276. };
  13277. this.ajax
  13278. .get(this.$store.state.api + "deleteComment2", params)
  13279. .then((res) => {
  13280. this.$message({
  13281. message: "删除评论成功",
  13282. type: "success",
  13283. });
  13284. this.selectSWorks();
  13285. this.selectStudent();
  13286. })
  13287. .catch((err) => {
  13288. console.error(err);
  13289. });
  13290. })
  13291. .catch(() => {});
  13292. },
  13293. commentOther(w, toolIndex, wIndex, gindex, gid) {
  13294. this.commentIndexJson = {
  13295. toolIndex: toolIndex,
  13296. wIndex: wIndex,
  13297. gindex: gindex,
  13298. gid: gid,
  13299. };
  13300. this.commentDetail = [];
  13301. this.commentDialogVisible = true;
  13302. this.commentDetail = w;
  13303. if (w.works && w.type == 1) {
  13304. this.pptImgUrl = "";
  13305. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13306. if (
  13307. a.indexOf(
  13308. w.works
  13309. .split(".")
  13310. [w.works.split(".").length - 1].toLocaleUpperCase()
  13311. ) != -1
  13312. ) {
  13313. this.pptImgUrl =
  13314. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13315. this.showPDF = false;
  13316. } else if (
  13317. w.works
  13318. .split(".")
  13319. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13320. ) {
  13321. this.pptImgUrl = w.works;
  13322. this.showPDF = true;
  13323. }
  13324. } else if (w.works && w.type == 3) {
  13325. this.videoDetail = {};
  13326. this.playerOptions1.sources[0].src = w.works;
  13327. this.videoDetail = this.playerOptions1;
  13328. // this.videoVisible = true;
  13329. } else if (w.works && w.type == 4) {
  13330. this.eScore = JSON.parse(w.works);
  13331. this.rateJson =
  13332. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13333. this.taskCount
  13334. ].toolChoose[toolIndex].rateJson;
  13335. } else if (w.works && w.type == 10) {
  13336. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13337. } else if (w.works && w.type == 13) {
  13338. this.wordJson =
  13339. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13340. this.taskCount
  13341. ].toolChoose[toolIndex].wordJson;
  13342. }
  13343. },
  13344. openScore(w) {
  13345. this.wScore = 0;
  13346. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13347. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13348. this.commentDetail = [];
  13349. this.dialogVisibleScore = true;
  13350. this.commentDetail = w;
  13351. if (w.works && w.type == 1) {
  13352. this.pptImgUrl = "";
  13353. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13354. if (
  13355. a.indexOf(
  13356. w.works
  13357. .split(".")
  13358. [w.works.split(".").length - 1].toLocaleUpperCase()
  13359. ) != -1
  13360. ) {
  13361. this.pptImgUrl =
  13362. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13363. this.showPDF = false;
  13364. } else if (
  13365. w.works
  13366. .split(".")
  13367. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13368. ) {
  13369. this.pptImgUrl = w.works;
  13370. this.showPDF = true;
  13371. }
  13372. } else if (w.works && w.type == 3) {
  13373. this.videoDetail = {};
  13374. this.playerOptions1.sources[0].src = w.works;
  13375. this.videoDetail = this.playerOptions1;
  13376. }
  13377. },
  13378. addComment(wid, uid, t) {
  13379. if (this.commentText == "") {
  13380. this.$message.error("请输入评论");
  13381. return;
  13382. }
  13383. let params2 = [
  13384. {
  13385. wid: wid,
  13386. lid: uid,
  13387. t: t,
  13388. },
  13389. ];
  13390. this.ajax
  13391. .post(this.$store.state.api + "getComment", params2)
  13392. .then((res) => {
  13393. if (res.data[0].length > 0) {
  13394. this.$message.error("一个作业只能评论一条");
  13395. } else {
  13396. let params = [
  13397. {
  13398. wid: wid,
  13399. lid: uid,
  13400. t: t,
  13401. c: this.commentText,
  13402. },
  13403. ];
  13404. this.ajax
  13405. .post(this.$store.state.api + "insertComment", params)
  13406. .then((res) => {
  13407. this.$message({
  13408. message: "评论成功",
  13409. type: "success",
  13410. });
  13411. this.commentText = "";
  13412. this.selectSWorks();
  13413. this.selectStudent();
  13414. })
  13415. .catch((err) => {
  13416. this.$message.error("评论失败");
  13417. console.error(err);
  13418. });
  13419. }
  13420. })
  13421. .catch((err) => {
  13422. // this.$message.error("评论失败");
  13423. console.error(err);
  13424. });
  13425. },
  13426. scoreWork(wid) {
  13427. if (this.wScore == 0) {
  13428. this.$message.error("请评分");
  13429. return;
  13430. }
  13431. let params = [
  13432. {
  13433. wid: wid,
  13434. score: JSON.stringify({
  13435. wScore: this.wScore,
  13436. detail: this.scoreDetail,
  13437. }),
  13438. },
  13439. ];
  13440. this.ajax
  13441. .post(this.$store.state.api + "scoreWork", params)
  13442. .then((res) => {
  13443. this.$message({
  13444. message: "评分成功",
  13445. type: "success",
  13446. });
  13447. this.wScore = 0;
  13448. this.scoreDetail = "";
  13449. this.dialogVisibleScore = false;
  13450. this.selectSWorks();
  13451. this.selectStudent();
  13452. })
  13453. .catch((err) => {
  13454. this.$message.error("评分失败");
  13455. console.error(err);
  13456. });
  13457. },
  13458. openXz(w, i) {
  13459. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13460. .taskJson[this.taskCount].toolChoose[i].selectJson
  13461. ? JSON.parse(
  13462. JSON.stringify(
  13463. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13464. this.taskCount
  13465. ].toolChoose[i].selectJson
  13466. )
  13467. )
  13468. : { url: "", select: [], answer: [] };
  13469. var a = w.works.split(",");
  13470. for (var k = 0; k < a.length; k++) {
  13471. a[k] = parseInt(a[k]);
  13472. }
  13473. this.selectAnswer = { answer: a, stu: w.sName };
  13474. this.isSelect = true;
  13475. this.dialogVisibleSelect = true;
  13476. },
  13477. openSen(w, i) {
  13478. this.sentenceList1 = JSON.parse(w.works);
  13479. this.sentenceList1.stuName = w.sName;
  13480. this.dialogVisibleSentence1 = true;
  13481. },
  13482. openPj(w, toolindex) {
  13483. this.isStar = true;
  13484. this.eScore = JSON.parse(w);
  13485. this.rateJson =
  13486. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13487. this.taskCount
  13488. ].toolChoose[toolindex].rateJson;
  13489. this.studentEvalDialogVisible = true;
  13490. },
  13491. deleteWorks(id) {
  13492. this.$confirm("确定删除此作业吗?", "提示", {
  13493. confirmButtonText: "确定",
  13494. cancelButtonText: "取消",
  13495. type: "warning",
  13496. })
  13497. .then(() => {
  13498. let params = [
  13499. {
  13500. id: id,
  13501. },
  13502. ];
  13503. this.ajax
  13504. .post(this.$store.state.api + "deleteCourseWork", params)
  13505. .then((res) => {
  13506. this.$message({
  13507. message: "删除成功",
  13508. type: "success",
  13509. });
  13510. this.selectStudent();
  13511. this.selectSWorks();
  13512. this.selectSLook();
  13513. })
  13514. .catch((err) => {
  13515. this.$message.error("网络异常");
  13516. console.error(err);
  13517. });
  13518. })
  13519. .catch(() => {});
  13520. },
  13521. selectSWorks(gindex) {
  13522. //教师查看全部作业
  13523. let params = {
  13524. cid: this.id,
  13525. s: this.courseType,
  13526. t: this.taskCount,
  13527. };
  13528. this.ajax
  13529. .get(this.$store.state.api + "selectSWorks", params)
  13530. .then((res) => {
  13531. var a =
  13532. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13533. this.taskCount
  13534. ].toolChoose;
  13535. var b = res.data[0];
  13536. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13537. var y = [
  13538. "AVI",
  13539. "NAVI",
  13540. "MPEG",
  13541. "ASF",
  13542. "MOV",
  13543. "WMV",
  13544. "3GP",
  13545. "RM",
  13546. "RMVB",
  13547. "FLV",
  13548. "F4V",
  13549. "H.264",
  13550. "H.265",
  13551. "REAL VIDEO",
  13552. "MKV",
  13553. "WebM",
  13554. "HDDVD",
  13555. "MP4",
  13556. "MPG",
  13557. "M4V",
  13558. "MGV",
  13559. "OGV",
  13560. "QTM",
  13561. "STR",
  13562. "AMC",
  13563. "DVX",
  13564. "EVO",
  13565. "DAT",
  13566. "OGG",
  13567. "OGM",
  13568. ];
  13569. var d = res.data[1];
  13570. var e = res.data[2];
  13571. var f = res.data[3];
  13572. let _worksStudent = [];
  13573. var _worksStudent2 = [];
  13574. for (var i = 0; i < a.length; i++) {
  13575. _worksStudent[i] = [];
  13576. _worksStudent2[i] = [];
  13577. if (
  13578. !this.isCloseList[i] ||
  13579. this.isCloseList[i].isClose == undefined
  13580. ) {
  13581. this.isCloseList[i] = { isClose: 0 };
  13582. }
  13583. this.groupStudent[i] = [];
  13584. this.groupStudentUid[i] = [];
  13585. if (this.isGroup) {
  13586. for (
  13587. var groupI = 0;
  13588. groupI < this.courseGroup.group.length;
  13589. groupI++
  13590. ) {
  13591. this.courseGroup.group[groupI].works[i] = [];
  13592. }
  13593. }
  13594. this.isWorksS[i] = [];
  13595. this.checkJson[i] = [];
  13596. if (a[i].tool[0] == 49) {
  13597. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13598. this.groupStudent[i][gA] = [];
  13599. this.groupStudentUid[i][gA] = [];
  13600. _worksStudent[i][gA] = [];
  13601. _worksStudent2[i][gA] = [];
  13602. this.isCloseList[i][gA] = [];
  13603. for (var g = 0; g < f.length; g++) {
  13604. if (
  13605. f[g].ttype == 2 &&
  13606. this.tcid &&
  13607. this.arrayToArray(
  13608. f[g].classid.split(","),
  13609. this.tcid.split(",")
  13610. ).length == 0
  13611. ) {
  13612. continue;
  13613. }
  13614. if (gA == f[g].group && f[g].tool == i) {
  13615. this.groupStudent[i][gA].push(f[g]);
  13616. this.groupStudentUid[i][gA].push(f[g].userid);
  13617. }
  13618. }
  13619. }
  13620. this.$forceUpdate();
  13621. }
  13622. for (var j = 0; j < b.length; j++) {
  13623. if (
  13624. b[j].ttype == 2 &&
  13625. this.tcid &&
  13626. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13627. .length == 0
  13628. ) {
  13629. continue;
  13630. }
  13631. var likesCount = 0;
  13632. var commentCount = 0;
  13633. var isLikes = false;
  13634. var commentJson = [];
  13635. var data = b[j];
  13636. if (i == b[j].tool) {
  13637. if (data.type == 2 && a[i].tool[0] == 4) {
  13638. // if(JSON.parse(data.content)[0].anwer){
  13639. var checkL =
  13640. JSON.parse(data.content)[0].anwer instanceof Array
  13641. ? JSON.parse(data.content)[0].anwer
  13642. : JSON.parse(data.content)[0].anwer.split(",");
  13643. for (var z = 0; z < checkL.length; z++) {
  13644. if (!this.checkJson[i][z]) {
  13645. this.checkJson[i].push({
  13646. checkCount: [],
  13647. checkPerson: [],
  13648. rightPerson: [],
  13649. });
  13650. }
  13651. if (!this.checkJson[i][z].checkCount.length) {
  13652. this.checkJson[i][z].checkCount = [];
  13653. let _askItemCount = JSON.parse(data.content)[0].askJson
  13654. .askJson[z].askItem;
  13655. for (var aic = 0; aic < _askItemCount; aic++) {
  13656. this.checkJson[i][z].checkCount.push(0);
  13657. }
  13658. }
  13659. if (checkL[z] instanceof Array) {
  13660. if (
  13661. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13662. checkL[z].sort().join(",")
  13663. ) {
  13664. this.checkJson[i][z].rightPerson.push(data.name);
  13665. }
  13666. for (var q = 0; q < checkL[z].length; q++) {
  13667. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13668. ? this.checkJson[i][z].checkPerson[
  13669. parseInt(checkL[z][q])
  13670. ].push(data.name)
  13671. : (this.checkJson[i][z].checkPerson[
  13672. parseInt(checkL[z][q])
  13673. ] = [data.name]);
  13674. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13675. ? this.checkJson[i][z].checkCount[
  13676. parseInt(checkL[z][q])
  13677. ]++
  13678. : (this.checkJson[i][z].checkCount[
  13679. parseInt(checkL[z][q])
  13680. ] = 1);
  13681. }
  13682. } else {
  13683. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13684. this.checkJson[i][z].rightPerson.push(data.name);
  13685. }
  13686. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13687. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13688. ? this.checkJson[i][z].checkPerson[
  13689. parseInt(checkL[z])
  13690. ].push(data.name)
  13691. : (this.checkJson[i][z].checkPerson[
  13692. parseInt(checkL[z])
  13693. ] = [data.name]);
  13694. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13695. ? this.checkJson[i][z].checkCount[
  13696. parseInt(checkL[z])
  13697. ]++
  13698. : (this.checkJson[i][z].checkCount[
  13699. parseInt(checkL[z])
  13700. ] = 1);
  13701. }
  13702. }
  13703. }
  13704. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13705. var checkL = JSON.parse(data.content)[0].anwer;
  13706. for (var z = 0; z < checkL.length; z++) {
  13707. if (!this.checkJson[i][z]) {
  13708. this.checkJson[i].push({
  13709. checkCount: [],
  13710. checkPerson: [],
  13711. rightPerson: [],
  13712. });
  13713. }
  13714. if (!this.checkJson[i][z].checkCount.length) {
  13715. this.checkJson[i][z].checkCount = [];
  13716. let _askItemCount = JSON.parse(data.content)[0].testJson
  13717. .testJson[z].testItem;
  13718. for (var aic = 0; aic < _askItemCount; aic++) {
  13719. this.checkJson[i][z].checkCount.push(0);
  13720. }
  13721. }
  13722. if (checkL[z] instanceof Array) {
  13723. if (
  13724. JSON.parse(data.content)[0]
  13725. .testJson.testJson[z].answer.sort()
  13726. .join(",") == checkL[z].sort().join(",")
  13727. ) {
  13728. this.checkJson[i][z].rightPerson.push(data.name);
  13729. }
  13730. for (var q = 0; q < checkL[z].length; q++) {
  13731. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13732. ? this.checkJson[i][z].checkPerson[
  13733. parseInt(checkL[z][q])
  13734. ].push(data.name)
  13735. : (this.checkJson[i][z].checkPerson[
  13736. parseInt(checkL[z][q])
  13737. ] = [data.name]);
  13738. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13739. ? this.checkJson[i][z].checkCount[
  13740. parseInt(checkL[z][q])
  13741. ]++
  13742. : (this.checkJson[i][z].checkCount[
  13743. parseInt(checkL[z][q])
  13744. ] = 1);
  13745. }
  13746. } else {
  13747. if (
  13748. JSON.parse(data.content)[0].testJson.testJson[z]
  13749. .answer == checkL[z]
  13750. ) {
  13751. this.checkJson[i][z].rightPerson.push(data.name);
  13752. }
  13753. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13754. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13755. ? this.checkJson[i][z].checkPerson[
  13756. parseInt(checkL[z])
  13757. ].push(data.name)
  13758. : (this.checkJson[i][z].checkPerson[
  13759. parseInt(checkL[z])
  13760. ] = [data.name]);
  13761. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13762. ? this.checkJson[i][z].checkCount[
  13763. parseInt(checkL[z])
  13764. ]++
  13765. : (this.checkJson[i][z].checkCount[
  13766. parseInt(checkL[z])
  13767. ] = 1);
  13768. }
  13769. }
  13770. }
  13771. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13772. var checkL = JSON.parse(data.content);
  13773. for (var z = 0; z < checkL.length; z++) {
  13774. if (!this.checkJson[i][z]) {
  13775. this.checkJson[i].push({
  13776. checkCount: [],
  13777. checkPerson: [],
  13778. rightPerson: [],
  13779. });
  13780. }
  13781. this.checkJson[i][z].checkPerson.push(data.name);
  13782. if (
  13783. checkL[z].chooseSenList.toString() ==
  13784. checkL[z].rightAnswer.toString()
  13785. ) {
  13786. this.checkJson[i][z].rightPerson.push(data.name);
  13787. }
  13788. }
  13789. }
  13790. for (var k = 0; k < d.length; k++) {
  13791. //点赞
  13792. if (d[k].workId == b[j].id) {
  13793. likesCount++;
  13794. if (d[k].likesId == this.userid) {
  13795. isLikes = true;
  13796. }
  13797. }
  13798. }
  13799. for (var l = 0; l < e.length; l++) {
  13800. //评论
  13801. if (e[l].workId == b[j].id) {
  13802. if (e[l].comment != "") {
  13803. commentCount++;
  13804. commentJson.push({
  13805. commentText: e[l].comment,
  13806. commentTime: e[l].commentTime,
  13807. commentPeople: e[l].commentPeople,
  13808. userid: e[l].userid,
  13809. wid: e[l].id,
  13810. });
  13811. }
  13812. }
  13813. }
  13814. if (
  13815. (b[j].type == 1 ||
  13816. b[j].type == 4 ||
  13817. b[j].type == 5 ||
  13818. b[j].type == 6 ||
  13819. b[j].type == 12 ||
  13820. b[j].type == 7) &&
  13821. a[i].tool[0] != 15 &&
  13822. a[i].tool[0] != 4 &&
  13823. a[i].tool[0] != 45 &&
  13824. a[i].tool[0] != 50 &&
  13825. a[i].tool[0] != 32 &&
  13826. a[i].tool[0] != 57 &&
  13827. a[i].tool[0] != 52
  13828. ) {
  13829. if (
  13830. c.indexOf(
  13831. b[j].content
  13832. .split(".")
  13833. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13834. ) != -1 &&
  13835. a[i].tool[0] == 16 &&
  13836. b[j].atool != 50
  13837. ) {
  13838. let _works = {
  13839. userid: b[j].userid,
  13840. ateacher: b[j].ateacher,
  13841. wid: b[j].id,
  13842. works: b[j].content,
  13843. sName: b[j].name,
  13844. type: 1,
  13845. time: b[j].time,
  13846. score: b[j].score,
  13847. img: b[j].img,
  13848. likesCount: likesCount,
  13849. commentCount: commentCount,
  13850. isLikes: isLikes,
  13851. commentJson: commentJson,
  13852. };
  13853. if (this.isGroup) {
  13854. let isGw = 1;
  13855. for (
  13856. var groupI = 0;
  13857. groupI < this.courseGroup.group.length;
  13858. groupI++
  13859. ) {
  13860. let gid = this.courseGroup.group[groupI].id;
  13861. if (
  13862. this.courseGroupStudentUid[gid].indexOf(
  13863. b[j].userid
  13864. ) != -1
  13865. ) {
  13866. isGw = 2;
  13867. this.courseGroup.group[groupI].works[i].push(_works);
  13868. break;
  13869. }
  13870. }
  13871. if (isGw == 1) {
  13872. _worksStudent[i].push(_works);
  13873. }
  13874. } else {
  13875. _worksStudent[i].push(_works);
  13876. }
  13877. _worksStudent2[i].push(_works);
  13878. this.isWorksS[i].push({
  13879. uid: b[j].userid,
  13880. sName: b[j].name,
  13881. });
  13882. } else if (
  13883. y.indexOf(
  13884. b[j].content
  13885. .split(".")
  13886. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13887. ) != -1 &&
  13888. a[i].tool[0] == 16 &&
  13889. b[j].atool != 50
  13890. ) {
  13891. let _works = {
  13892. userid: b[j].userid,
  13893. ateacher: b[j].ateacher,
  13894. wid: b[j].id,
  13895. works: b[j].content,
  13896. sName: b[j].name,
  13897. type: 3,
  13898. time: b[j].time,
  13899. score: b[j].score,
  13900. img: b[j].img,
  13901. likesCount: likesCount,
  13902. commentCount: commentCount,
  13903. isLikes: isLikes,
  13904. commentJson: commentJson,
  13905. };
  13906. if (this.isGroup) {
  13907. let isGw = 1;
  13908. for (
  13909. var groupI = 0;
  13910. groupI < this.courseGroup.group.length;
  13911. groupI++
  13912. ) {
  13913. let gid = this.courseGroup.group[groupI].id;
  13914. if (
  13915. this.courseGroupStudentUid[gid].indexOf(
  13916. b[j].userid
  13917. ) != -1
  13918. ) {
  13919. isGw = 2;
  13920. this.courseGroup.group[groupI].works[i].push(_works);
  13921. break;
  13922. }
  13923. }
  13924. if (isGw == 1) {
  13925. _worksStudent[i].push(_works);
  13926. }
  13927. } else {
  13928. _worksStudent[i].push(_works);
  13929. }
  13930. _worksStudent2[i].push(_works);
  13931. this.isWorksS[i].push({
  13932. uid: b[j].userid,
  13933. sName: b[j].name,
  13934. });
  13935. } else if (b[j].type == 6 && b[j].atool != 50) {
  13936. let _works = {
  13937. userid: b[j].userid,
  13938. ateacher: b[j].ateacher,
  13939. wid: b[j].id,
  13940. works: b[j].content,
  13941. sName: b[j].name,
  13942. type: 4,
  13943. time: b[j].time,
  13944. score: b[j].score,
  13945. img: b[j].img,
  13946. likesCount: likesCount,
  13947. commentCount: commentCount,
  13948. isLikes: isLikes,
  13949. commentJson: commentJson,
  13950. };
  13951. _worksStudent[i].push(_works);
  13952. _worksStudent2[i].push(_works);
  13953. this.isWorksS[i].push({
  13954. uid: b[j].userid,
  13955. sName: b[j].name,
  13956. });
  13957. } else if (b[j].type == 7 && b[j].atool != 50) {
  13958. let _work = {
  13959. userid: b[j].userid,
  13960. ateacher: b[j].ateacher,
  13961. wid: b[j].id,
  13962. works: b[j].content,
  13963. sName: b[j].name,
  13964. type: 5,
  13965. time: b[j].time,
  13966. score: b[j].score,
  13967. img: b[j].img,
  13968. likesCount: likesCount,
  13969. commentCount: commentCount,
  13970. isLikes: isLikes,
  13971. commentJson: commentJson,
  13972. };
  13973. _worksStudent[i].push(_work);
  13974. _worksStudent2[i].push(_work);
  13975. this.isWorksS[i].push({
  13976. uid: b[j].userid,
  13977. sName: b[j].name,
  13978. });
  13979. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13980. let _works = {
  13981. userid: b[j].userid,
  13982. ateacher: b[j].ateacher,
  13983. wid: b[j].id,
  13984. works: b[j].content,
  13985. sName: b[j].name,
  13986. type: 12,
  13987. time: b[j].time,
  13988. score: b[j].score,
  13989. img: b[j].img,
  13990. likesCount: likesCount,
  13991. commentCount: commentCount,
  13992. isLikes: isLikes,
  13993. commentJson: commentJson,
  13994. };
  13995. if (this.isGroup) {
  13996. let isGw = 1;
  13997. for (
  13998. var groupI = 0;
  13999. groupI < this.courseGroup.group.length;
  14000. groupI++
  14001. ) {
  14002. let gid = this.courseGroup.group[groupI].id;
  14003. if (
  14004. this.courseGroupStudentUid[gid].indexOf(
  14005. b[j].userid
  14006. ) != -1
  14007. ) {
  14008. isGw = 2;
  14009. this.courseGroup.group[groupI].works[i].push(_works);
  14010. break;
  14011. }
  14012. }
  14013. if (isGw == 1) {
  14014. _worksStudent[i].push(_works);
  14015. }
  14016. } else {
  14017. _worksStudent[i].push(_works);
  14018. }
  14019. _worksStudent2[i].push(_works);
  14020. this.isWorksS[i].push({
  14021. uid: b[j].userid,
  14022. sName: b[j].name,
  14023. });
  14024. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14025. let _works = {
  14026. userid: b[j].userid,
  14027. ateacher: b[j].ateacher,
  14028. wid: b[j].id,
  14029. works: b[j].content,
  14030. sName: b[j].name,
  14031. type: 0,
  14032. time: b[j].time,
  14033. score: b[j].score,
  14034. img: b[j].img,
  14035. likesCount: likesCount,
  14036. commentCount: commentCount,
  14037. isLikes: isLikes,
  14038. commentJson: commentJson,
  14039. };
  14040. if (this.isGroup) {
  14041. let isGw = 1;
  14042. for (
  14043. var groupI = 0;
  14044. groupI < this.courseGroup.group.length;
  14045. groupI++
  14046. ) {
  14047. let gid = this.courseGroup.group[groupI].id;
  14048. if (
  14049. this.courseGroupStudentUid[gid].indexOf(
  14050. b[j].userid
  14051. ) != -1
  14052. ) {
  14053. isGw = 2;
  14054. this.courseGroup.group[groupI].works[i].push(_works);
  14055. break;
  14056. }
  14057. }
  14058. if (isGw == 1) {
  14059. _worksStudent[i].push(_works);
  14060. }
  14061. } else {
  14062. _worksStudent[i].push(_works);
  14063. }
  14064. _worksStudent2[i].push(_works);
  14065. this.isWorksS[i].push({
  14066. uid: b[j].userid,
  14067. sName: b[j].name,
  14068. });
  14069. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14070. let _works = {
  14071. userid: b[j].userid,
  14072. ateacher: b[j].ateacher,
  14073. wid: b[j].id,
  14074. works: b[j].content,
  14075. sName: b[j].name,
  14076. type: 0,
  14077. time: b[j].time,
  14078. score: b[j].score,
  14079. img: b[j].img,
  14080. likesCount: likesCount,
  14081. commentCount: commentCount,
  14082. isLikes: isLikes,
  14083. commentJson: commentJson,
  14084. };
  14085. if (this.isGroup) {
  14086. let isGw = 1;
  14087. for (
  14088. var groupI = 0;
  14089. groupI < this.courseGroup.group.length;
  14090. groupI++
  14091. ) {
  14092. let gid = this.courseGroup.group[groupI].id;
  14093. if (
  14094. this.courseGroupStudentUid[gid].indexOf(
  14095. b[j].userid
  14096. ) != -1
  14097. ) {
  14098. isGw = 2;
  14099. this.courseGroup.group[groupI].works[i].push(_works);
  14100. break;
  14101. }
  14102. }
  14103. if (isGw == 1) {
  14104. _worksStudent[i].push(_works);
  14105. }
  14106. } else {
  14107. _worksStudent[i].push(_works);
  14108. }
  14109. _worksStudent2[i].push(_works);
  14110. this.isWorksS[i].push({
  14111. uid: b[j].userid,
  14112. sName: b[j].name,
  14113. });
  14114. }
  14115. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14116. let _works = {
  14117. userid: b[j].userid,
  14118. ateacher: b[j].ateacher,
  14119. wid: b[j].id,
  14120. works: b[j].content,
  14121. sName: b[j].name,
  14122. type: 2,
  14123. time: b[j].time,
  14124. score: b[j].score,
  14125. img: b[j].img,
  14126. likesCount: likesCount,
  14127. commentCount: commentCount,
  14128. isLikes: isLikes,
  14129. commentJson: commentJson,
  14130. };
  14131. if (this.isGroup) {
  14132. let isGw = 1;
  14133. for (
  14134. var groupI = 0;
  14135. groupI < this.courseGroup.group.length;
  14136. groupI++
  14137. ) {
  14138. let gid = this.courseGroup.group[groupI].id;
  14139. if (
  14140. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14141. -1
  14142. ) {
  14143. isGw = 2;
  14144. this.courseGroup.group[groupI].works[i].push(_works);
  14145. break;
  14146. }
  14147. }
  14148. if (isGw == 1) {
  14149. _worksStudent[i].push(_works);
  14150. }
  14151. } else {
  14152. _worksStudent[i].push(_works);
  14153. }
  14154. _worksStudent2[i].push(_works);
  14155. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14156. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14157. //问卷
  14158. let _work = {
  14159. userid: b[j].userid,
  14160. ateacher: b[j].ateacher,
  14161. wid: b[j].id,
  14162. works: b[j].content,
  14163. sName: b[j].name,
  14164. type: 2,
  14165. time: b[j].time,
  14166. score: b[j].score,
  14167. img: b[j].img,
  14168. likesCount: likesCount,
  14169. commentCount: commentCount,
  14170. isLikes: isLikes,
  14171. commentJson: commentJson,
  14172. };
  14173. _worksStudent[i].push(_work);
  14174. _worksStudent2[i].push(_work);
  14175. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14176. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14177. //选择题
  14178. let _work = {
  14179. userid: b[j].userid,
  14180. ateacher: b[j].ateacher,
  14181. wid: b[j].id,
  14182. works: b[j].content,
  14183. sName: b[j].name,
  14184. type: 8,
  14185. time: b[j].time,
  14186. score: b[j].score,
  14187. img: b[j].img,
  14188. likesCount: likesCount,
  14189. commentCount: commentCount,
  14190. isLikes: isLikes,
  14191. commentJson: commentJson,
  14192. };
  14193. _worksStudent[i].push(_work);
  14194. _worksStudent2[i].push(_work);
  14195. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14196. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14197. //选择题
  14198. let _work = {
  14199. userid: b[j].userid,
  14200. ateacher: b[j].ateacher,
  14201. wid: b[j].id,
  14202. works: b[j].content,
  14203. sName: b[j].name,
  14204. type: 9,
  14205. time: b[j].time,
  14206. score: b[j].score,
  14207. img: b[j].img,
  14208. likesCount: likesCount,
  14209. commentCount: commentCount,
  14210. isLikes: isLikes,
  14211. commentJson: commentJson,
  14212. };
  14213. _worksStudent[i].push(_work);
  14214. _worksStudent2[i].push(_work);
  14215. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14216. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14217. //选择题
  14218. let _work = {
  14219. userid: b[j].userid,
  14220. ateacher: b[j].ateacher,
  14221. wid: b[j].id,
  14222. works: b[j].content,
  14223. sName: b[j].name,
  14224. type: 10,
  14225. time: b[j].time,
  14226. score: b[j].score,
  14227. img: b[j].img,
  14228. likesCount: likesCount,
  14229. commentCount: commentCount,
  14230. isLikes: isLikes,
  14231. commentJson: commentJson,
  14232. };
  14233. _worksStudent[i].push(_work);
  14234. _worksStudent2[i].push(_work);
  14235. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14236. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14237. //选择题
  14238. let _work = {
  14239. userid: b[j].userid,
  14240. ateacher: b[j].ateacher,
  14241. wid: b[j].id,
  14242. works: b[j].content,
  14243. sName: b[j].name,
  14244. type: 13,
  14245. time: b[j].time,
  14246. score: b[j].score,
  14247. img: b[j].img,
  14248. likesCount: likesCount,
  14249. commentCount: commentCount,
  14250. isLikes: isLikes,
  14251. commentJson: commentJson,
  14252. };
  14253. _worksStudent[i].push(_work);
  14254. _worksStudent2[i].push(_work);
  14255. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14256. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14257. //选择题
  14258. let _work = {
  14259. userid: b[j].userid,
  14260. ateacher: b[j].ateacher,
  14261. wid: b[j].id,
  14262. works: b[j].content,
  14263. sName: b[j].name,
  14264. type: 16,
  14265. time: b[j].time,
  14266. score: b[j].score,
  14267. img: b[j].img,
  14268. likesCount: likesCount,
  14269. commentCount: commentCount,
  14270. isLikes: isLikes,
  14271. commentJson: commentJson,
  14272. };
  14273. _worksStudent[i].push(_work);
  14274. _worksStudent2[i].push(_work);
  14275. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14276. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  14277. let _gindex = JSON.parse(b[j].content);
  14278. if (
  14279. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  14280. b[j].userid
  14281. ) != -1
  14282. ) {
  14283. let _work = {
  14284. userid: b[j].userid,
  14285. ateacher: b[j].ateacher,
  14286. wid: b[j].id,
  14287. works: _gindex.url,
  14288. sName: b[j].name,
  14289. type: _gindex.type,
  14290. time: b[j].time,
  14291. score: b[j].score,
  14292. img: b[j].img,
  14293. likesCount: likesCount,
  14294. commentCount: commentCount,
  14295. isLikes: isLikes,
  14296. commentJson: commentJson,
  14297. };
  14298. _worksStudent[i][_gindex.groupIndex].push(_work);
  14299. _worksStudent2[i][_gindex.groupIndex].push(_work);
  14300. }
  14301. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14302. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  14303. let _work = {
  14304. userid: b[j].userid,
  14305. ateacher: b[j].ateacher,
  14306. wid: b[j].id,
  14307. works: b[j].content,
  14308. sName: b[j].name ? b[j].name : b[j].userid,
  14309. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  14310. time: b[j].time,
  14311. score: b[j].score,
  14312. img: b[j].img,
  14313. likesCount: likesCount,
  14314. commentCount: commentCount,
  14315. isLikes: isLikes,
  14316. commentJson: commentJson,
  14317. };
  14318. _worksStudent[i].push(_work);
  14319. _worksStudent2[i].push(_work);
  14320. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14321. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  14322. let _work = {
  14323. userid: b[j].userid,
  14324. ateacher: b[j].ateacher,
  14325. wid: b[j].id,
  14326. works: b[j].content,
  14327. sName: b[j].name ? b[j].name : b[j].userid,
  14328. type: 12,
  14329. time: b[j].time,
  14330. score: b[j].score,
  14331. img: b[j].img,
  14332. likesCount: likesCount,
  14333. commentCount: commentCount,
  14334. isLikes: isLikes,
  14335. commentJson: commentJson,
  14336. };
  14337. _worksStudent[i].push(_work);
  14338. _worksStudent2[i].push(_work);
  14339. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14340. } else if (
  14341. a[i].tool[0] == 57 &&
  14342. b[j].atool == 57 &&
  14343. b[j].type == 12
  14344. ) {
  14345. let _work = {
  14346. userid: b[j].userid,
  14347. ateacher: b[j].ateacher,
  14348. wid: b[j].id,
  14349. works: b[j].content,
  14350. sName: b[j].name ? b[j].name : b[j].userid,
  14351. type: 12,
  14352. time: b[j].time,
  14353. score: b[j].score,
  14354. img: b[j].img,
  14355. likesCount: likesCount,
  14356. commentCount: commentCount,
  14357. isLikes: isLikes,
  14358. commentJson: commentJson,
  14359. };
  14360. _worksStudent[i].push(_work);
  14361. _worksStudent2[i].push(_work);
  14362. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14363. } else if (
  14364. a[i].tool[0] == 57 &&
  14365. b[j].atool == 57 &&
  14366. b[j].type == 15
  14367. ) {
  14368. let _work = {
  14369. userid: b[j].userid,
  14370. ateacher: b[j].ateacher,
  14371. wid: b[j].id,
  14372. works: b[j].content,
  14373. sName: b[j].name ? b[j].name : b[j].userid,
  14374. type: 15,
  14375. time: b[j].time,
  14376. score: b[j].score,
  14377. img: b[j].img,
  14378. likesCount: likesCount,
  14379. commentCount: commentCount,
  14380. isLikes: isLikes,
  14381. commentJson: commentJson,
  14382. };
  14383. _worksStudent[i].push(_work);
  14384. _worksStudent2[i].push(_work);
  14385. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14386. }
  14387. }
  14388. }
  14389. if (_worksStudent[i] && _worksStudent[i].length) {
  14390. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  14391. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14392. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14393. var scoreA = parseFloat(jscoreA);
  14394. var scoreB = parseFloat(jscoreB);
  14395. if (scoreA == scoreB) {
  14396. return b.likesCount - a.likesCount;
  14397. }
  14398. return scoreB - scoreA;
  14399. });
  14400. if (this.isGroup) {
  14401. for (
  14402. var groupI = 0;
  14403. groupI < this.courseGroup.group.length;
  14404. groupI++
  14405. ) {
  14406. this.courseGroup.group[groupI].works[i] =
  14407. this.courseGroup.group[groupI].works[i].sort(function (
  14408. a,
  14409. b
  14410. ) {
  14411. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14412. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14413. var scoreA = parseFloat(jscoreA);
  14414. var scoreB = parseFloat(jscoreB);
  14415. if (scoreA == scoreB) {
  14416. return b.likesCount - a.likesCount;
  14417. }
  14418. return scoreB - scoreA;
  14419. });
  14420. }
  14421. }
  14422. }
  14423. }
  14424. this.timeWorkList = _worksStudent2;
  14425. for (var i = 0; i < a.length; i++) {
  14426. for (var j = 0; j < b.length; j++) {
  14427. var data = b[j];
  14428. if (i == b[j].tool) {
  14429. if (data.type == 2 || data.type == 8) {
  14430. for (var z = 0; z < this.checkJson[i].length; z++) {
  14431. this.checkJson[i][z].checkPerent = [];
  14432. this.checkJson[i][z].right = Math.round(
  14433. (this.checkJson[i][z].rightPerson.length /
  14434. parseInt(_worksStudent[i].length)) *
  14435. 100
  14436. );
  14437. let aaaa = this.checkJson[i][z];
  14438. for (
  14439. var k = 0;
  14440. k < this.checkJson[i][z].checkCount.length;
  14441. k++
  14442. ) {
  14443. this.checkJson[i][z].checkPerent.push(
  14444. Math.round(
  14445. (this.checkJson[i][z].checkCount[k] /
  14446. parseInt(_worksStudent[i].length)) *
  14447. 100
  14448. )
  14449. );
  14450. }
  14451. }
  14452. } else if (data.type == 9) {
  14453. for (var z = 0; z < this.checkJson[i].length; z++) {
  14454. this.checkJson[i][z].checkPerent = [];
  14455. this.checkJson[i][z].right = Math.round(
  14456. (this.checkJson[i][z].rightPerson.length /
  14457. this.checkJson[i][z].checkPerson.length) *
  14458. 100
  14459. );
  14460. }
  14461. }
  14462. }
  14463. }
  14464. }
  14465. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14466. this.joinGroup(gindex);
  14467. }
  14468. this.worksStudent = _worksStudent;
  14469. this.selectWorksStudent();
  14470. })
  14471. .catch((err) => {
  14472. console.error(err);
  14473. });
  14474. },
  14475. pngToWhiteBg(file) {
  14476. const _file = file;
  14477. let read = new FileReader();
  14478. read.readAsDataURL(file); // 文件转base64
  14479. return new Promise((resolve, reject) => {
  14480. read.onload = (e) => {
  14481. let img = new Image();
  14482. img.src = e.target.result;
  14483. img.onload = async () => {
  14484. // 生成canvas
  14485. let canvas = document.createElement("canvas");
  14486. let context = canvas.getContext("2d");
  14487. // 绘制图片到canvas上
  14488. canvas.width = img.width;
  14489. canvas.height = img.height;
  14490. // 在canvas绘制前填充白色背景
  14491. context.fillStyle = "#fff";
  14492. context.fillRect(0, 0, canvas.width, canvas.height);
  14493. context.drawImage(img, 0, 0);
  14494. let base64 = canvas.toDataURL(file["type"], 1);
  14495. let newFile = this.dataUrlToFile(base64, _file);
  14496. resolve(newFile);
  14497. };
  14498. };
  14499. });
  14500. },
  14501. dataUrlToFile(dataurl, file) {
  14502. let arr = dataurl.split(","),
  14503. mime = arr[0].match(/:(.*?);/)[1],
  14504. bstr = atob(arr[1]),
  14505. n = bstr.length,
  14506. u8arr = new Uint8Array(n);
  14507. while (n--) {
  14508. u8arr[n] = bstr.charCodeAt(n);
  14509. }
  14510. // return new Blob([u8arr], { type: mime });
  14511. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14512. type: mime,
  14513. });
  14514. },
  14515. async beforeUpload1(event, type, i) {
  14516. // this.$message.success('进入上传')
  14517. var file = "";
  14518. if (type == 5) {
  14519. file = event;
  14520. } else {
  14521. file = event.target.files[0];
  14522. }
  14523. var credentials = {
  14524. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14525. secretAccessKey: "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",
  14526. }; //秘钥形式的登录上传
  14527. window.AWS.config.update(credentials);
  14528. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14529. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14530. var _this = this;
  14531. _this.progress = 0;
  14532. _this.proVisible = true;
  14533. _this.isFinishSize = 0;
  14534. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14535. var b = [
  14536. "DOC",
  14537. "DOCX",
  14538. "DOCM",
  14539. "DOTM",
  14540. "DOTX",
  14541. "PPTX",
  14542. "PPSX",
  14543. "PPT",
  14544. "PPS",
  14545. "PPTM",
  14546. "POTM",
  14547. "PPAM",
  14548. "POTX",
  14549. "PPSM",
  14550. ];
  14551. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14552. var photoA = [
  14553. "BMP",
  14554. "GIF",
  14555. "PNG",
  14556. "JPGE",
  14557. "JPEG",
  14558. "JPG",
  14559. "TIF",
  14560. "PCX",
  14561. "TGA",
  14562. "EXIF",
  14563. "FPX",
  14564. "SVG",
  14565. "APNG",
  14566. ];
  14567. // if (
  14568. // b.indexOf(
  14569. // file.name
  14570. // .split(".")
  14571. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14572. // ) != -1
  14573. // ) {
  14574. // if (file.size / 1024 / 1024 > 10) {
  14575. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14576. // return;
  14577. // }
  14578. // } else if (
  14579. // excelA.indexOf(
  14580. // file.name
  14581. // .split(".")
  14582. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14583. // ) != "-1"
  14584. // ) {
  14585. // if (file.size / 1024 / 1024 > 5) {
  14586. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14587. // return;
  14588. // }
  14589. // }
  14590. if (
  14591. photoA.indexOf(
  14592. file.name
  14593. .split(".")
  14594. [file.name.split(".").length - 1].toLocaleUpperCase()
  14595. ) != -1 &&
  14596. type != 4
  14597. ) {
  14598. // const blob = await imageConversion.compress(file, 0.8)
  14599. file = await this.pngToWhiteBg(file);
  14600. const blob = await imageConversion.compressAccurately(file, 256);
  14601. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14602. file = new File([blob], file.name, { type: file.type });
  14603. }
  14604. if (file) {
  14605. var params = {
  14606. Key:
  14607. file.name.split(".")[0] +
  14608. new Date().getTime() +
  14609. "." +
  14610. file.name.split(".")[file.name.split(".").length - 1],
  14611. ContentType: file.type,
  14612. Body: file,
  14613. "Access-Control-Allow-Credentials": "*",
  14614. ACL: "public-read",
  14615. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14616. var options = {
  14617. // partSize: 2048 * 1024 * 1024,
  14618. partSize: 1024 * 1024 * 1024,
  14619. queueSize: 2,
  14620. leavePartsOnError: true,
  14621. };
  14622. bucket
  14623. .upload(params, options)
  14624. .on("httpUploadProgress", function (evt) {
  14625. //这里可以写进度条
  14626. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14627. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14628. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14629. })
  14630. .send(function (err, data) {
  14631. _this.progress = 100;
  14632. _this.isFinishSize = _this.isAllSize;
  14633. setTimeout(() => {
  14634. _this.proVisible = false;
  14635. }, 1000);
  14636. if (err) {
  14637. var a = _this.$refs.upload1.uploadFiles;
  14638. a.splice(a.length - 1, a.length);
  14639. _this.$message.error("上传失败");
  14640. } else {
  14641. // _this.$message.success('上传成功')
  14642. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14643. var c = [
  14644. "AVI",
  14645. "NAVI",
  14646. "MPEG",
  14647. "ASF",
  14648. "MOV",
  14649. "WMV",
  14650. "3GP",
  14651. "RM",
  14652. "RMVB",
  14653. "FLV",
  14654. "F4V",
  14655. "H.264",
  14656. "H.265",
  14657. "REAL VIDEO",
  14658. "MKV",
  14659. "WebM",
  14660. "HDDVD",
  14661. "MP4",
  14662. "MPG",
  14663. "M4V",
  14664. "MGV",
  14665. "OGV",
  14666. "QTM",
  14667. "STR",
  14668. "AMC",
  14669. "DVX",
  14670. "EVO",
  14671. "DAT",
  14672. "OGG",
  14673. "OGM",
  14674. ];
  14675. if (type == 1) {
  14676. _this.studyJuri[0].cover.push({
  14677. name: file.name,
  14678. url: data.Location,
  14679. uid: file.uid,
  14680. });
  14681. if (
  14682. c.indexOf(
  14683. _this.studyJuri[0].cover[0].url
  14684. .split(".")
  14685. [
  14686. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14687. ].toLocaleUpperCase()
  14688. ) != -1
  14689. ) {
  14690. _this.fileType = 2;
  14691. } else if (
  14692. b.indexOf(
  14693. _this.studyJuri[0].cover[0].url
  14694. .split(".")
  14695. [
  14696. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14697. ].toLocaleUpperCase()
  14698. ) != -1
  14699. ) {
  14700. _this.fileType = 1;
  14701. } else if (
  14702. photoA.indexOf(
  14703. _this.studyJuri[0].cover[0].url
  14704. .split(".")
  14705. [
  14706. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14707. ].toLocaleUpperCase()
  14708. ) != -1
  14709. ) {
  14710. _this.fileType = 0;
  14711. } else {
  14712. _this.fileType = 3;
  14713. }
  14714. _this.imgChange(null, null, type);
  14715. } else if (type == 2) {
  14716. _this.upToolImg = data.Location;
  14717. _this.imgChange(null, null, type);
  14718. _this.addCourseWorks(i);
  14719. } else if (type == 4) {
  14720. _this.addPz("3", data.Location);
  14721. } else if (type == 5) {
  14722. _this.addImgDrawImG(data.Location);
  14723. } else if (type == 6) {
  14724. var _ftype = 1;
  14725. if (
  14726. c.indexOf(
  14727. data.Location.split(".")[
  14728. data.Location.split(".").length - 1
  14729. ].toLocaleUpperCase()
  14730. ) != -1
  14731. ) {
  14732. _ftype = 5;
  14733. } else if (
  14734. b.indexOf(
  14735. data.Location.split(".")[
  14736. data.Location.split(".").length - 1
  14737. ].toLocaleUpperCase()
  14738. ) != -1
  14739. ) {
  14740. _ftype = 4;
  14741. } else {
  14742. _ftype = 1;
  14743. }
  14744. _this.plworkFile.push({
  14745. name: file.name,
  14746. url: data.Location,
  14747. uid: file.uid,
  14748. fileType: _ftype,
  14749. username:
  14750. _this.plworkFile.length > 10
  14751. ? _this.plworkFile.length + 1
  14752. : "0" + (_this.plworkFile.length + 1),
  14753. });
  14754. } else if (type == 7) {
  14755. _this.addCourseWorksGong(i, data.Location, 32);
  14756. } else if (type == 8) {
  14757. _this.addCourseWorksGong(i, data.Location, 57);
  14758. }
  14759. _this.imgChange(null, null, type);
  14760. console.log(data.Location);
  14761. // _this.$message.success('上传成功'+data.Location)
  14762. }
  14763. });
  14764. }
  14765. },
  14766. async beforeUpload3(event, type, i) {
  14767. // this.$message.success('进入上传')
  14768. let file = "";
  14769. let cfindex2 = 0;
  14770. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14771. file = event.target.files[cfindex];
  14772. var credentials = {
  14773. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14774. secretAccessKey: "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",
  14775. }; //秘钥形式的登录上传
  14776. window.AWS.config.update(credentials);
  14777. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14778. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14779. var _this = this;
  14780. // _this.progress = 0;
  14781. _this.proVisible2 = true;
  14782. var b = [
  14783. "DOC",
  14784. "DOCX",
  14785. "DOCM",
  14786. "DOTM",
  14787. "DOTX",
  14788. "PPTX",
  14789. "PPSX",
  14790. "PPT",
  14791. "PPS",
  14792. "PPTM",
  14793. "POTM",
  14794. "PPAM",
  14795. "POTX",
  14796. "PPSM",
  14797. ];
  14798. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14799. var photoA = [
  14800. "BMP",
  14801. "GIF",
  14802. "PNG",
  14803. "JPGE",
  14804. "JPG",
  14805. "TIF",
  14806. "PCX",
  14807. "TGA",
  14808. "EXIF",
  14809. "FPX",
  14810. "SVG",
  14811. "APNG",
  14812. ];
  14813. if (
  14814. photoA.indexOf(
  14815. file.name
  14816. .split(".")
  14817. [file.name.split(".").length - 1].toLocaleUpperCase()
  14818. ) != -1 &&
  14819. type != 4
  14820. ) {
  14821. // const blob = await imageConversion.compress(file, 0.8)
  14822. file = await this.pngToWhiteBg(file);
  14823. const blob = await imageConversion.compressAccurately(file, 256);
  14824. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14825. file = new File([blob], file.name, { type: file.type });
  14826. }
  14827. if (file) {
  14828. var params = {
  14829. Key:
  14830. file.name.split(".")[0] +
  14831. new Date().getTime() +
  14832. "." +
  14833. file.name.split(".")[file.name.split(".").length - 1],
  14834. ContentType: file.type,
  14835. Body: file,
  14836. "Access-Control-Allow-Credentials": "*",
  14837. ACL: "public-read",
  14838. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14839. var options = {
  14840. // partSize: 2048 * 1024 * 1024,
  14841. partSize: 1024 * 1024 * 1024,
  14842. queueSize: 2,
  14843. leavePartsOnError: true,
  14844. };
  14845. bucket
  14846. .upload(params, options)
  14847. .on("httpUploadProgress", function (evt) {
  14848. //这里可以写进度条
  14849. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14850. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14851. })
  14852. .send(function (err, data) {
  14853. // _this.progress = 100;
  14854. cfindex2++;
  14855. setTimeout(() => {
  14856. if (
  14857. cfindex2 == event.target.files.length - 1 ||
  14858. cfindex2 > event.target.files.length - 1
  14859. ) {
  14860. _this.proVisible2 = false;
  14861. }
  14862. }, 1000);
  14863. if (err) {
  14864. var a = _this.$refs.upload1.uploadFiles;
  14865. a.splice(a.length - 1, a.length);
  14866. _this.$message.error("上传失败");
  14867. } else {
  14868. // _this.$message.success('上传成功')
  14869. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14870. var c = [
  14871. "AVI",
  14872. "NAVI",
  14873. "MPEG",
  14874. "ASF",
  14875. "MOV",
  14876. "WMV",
  14877. "3GP",
  14878. "RM",
  14879. "RMVB",
  14880. "FLV",
  14881. "F4V",
  14882. "H.264",
  14883. "H.265",
  14884. "REAL VIDEO",
  14885. "MKV",
  14886. "WebM",
  14887. "HDDVD",
  14888. "MP4",
  14889. "MPG",
  14890. "M4V",
  14891. "MGV",
  14892. "OGV",
  14893. "QTM",
  14894. "STR",
  14895. "AMC",
  14896. "DVX",
  14897. "EVO",
  14898. "DAT",
  14899. "OGG",
  14900. "OGM",
  14901. ];
  14902. if (type == 1) {
  14903. _this.studyJuri[0].cover.push({
  14904. name: file.name,
  14905. url: data.Location,
  14906. uid: file.uid,
  14907. });
  14908. if (
  14909. c.indexOf(
  14910. _this.studyJuri[0].cover[0].url
  14911. .split(".")
  14912. [
  14913. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14914. ].toLocaleUpperCase()
  14915. ) != -1
  14916. ) {
  14917. _this.fileType = 2;
  14918. } else if (
  14919. b.indexOf(
  14920. _this.studyJuri[0].cover[0].url
  14921. .split(".")
  14922. [
  14923. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14924. ].toLocaleUpperCase()
  14925. ) != -1
  14926. ) {
  14927. _this.fileType = 1;
  14928. } else {
  14929. _this.fileType = 0;
  14930. }
  14931. _this.imgChange(null, null, type);
  14932. } else if (type == 2) {
  14933. _this.upToolImg = data.Location;
  14934. _this.imgChange(null, null, type);
  14935. _this.addCourseWorks(i);
  14936. } else if (type == 4) {
  14937. _this.addPz("3", data.Location);
  14938. } else if (type == 5) {
  14939. _this.addImgDrawImG(data.Location);
  14940. } else if (type == 6) {
  14941. var _ftype = 1;
  14942. if (
  14943. c.indexOf(
  14944. data.Location.split(".")[
  14945. data.Location.split(".").length - 1
  14946. ].toLocaleUpperCase()
  14947. ) != -1
  14948. ) {
  14949. _ftype = 5;
  14950. } else if (
  14951. b.indexOf(
  14952. data.Location.split(".")[
  14953. data.Location.split(".").length - 1
  14954. ].toLocaleUpperCase()
  14955. ) != -1
  14956. ) {
  14957. _ftype = 4;
  14958. } else {
  14959. _ftype = 1;
  14960. }
  14961. _this.plworkFile.push({
  14962. name: file.name,
  14963. url: data.Location,
  14964. uid: file.uid,
  14965. fileType: _ftype,
  14966. username:
  14967. _this.plworkFile.length + 1 > 9
  14968. ? _this.plworkFile.length + 1
  14969. : "0" + (_this.plworkFile.length + 1),
  14970. });
  14971. }
  14972. _this.imgChange(null, null, type);
  14973. console.log(data.Location);
  14974. // _this.$message.success('上传成功'+data.Location)
  14975. }
  14976. });
  14977. }
  14978. }
  14979. },
  14980. beforeUpload2(event, type) {
  14981. var file = event.target.files[0];
  14982. var credentials = {
  14983. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14984. secretAccessKey: "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",
  14985. }; //秘钥形式的登录上传
  14986. window.AWS.config.update(credentials);
  14987. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14988. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14989. var _this = this;
  14990. _this.progress = 0;
  14991. _this.proVisible = true;
  14992. if (file) {
  14993. var params = {
  14994. Key:
  14995. file.name.split(".")[0] +
  14996. new Date().getTime() +
  14997. "." +
  14998. file.name.split(".")[file.name.split(".").length - 1],
  14999. ContentType: file.type,
  15000. Body: file,
  15001. "Access-Control-Allow-Credentials": "*",
  15002. ACL: "public-read",
  15003. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15004. var options = {
  15005. partSize: 2048 * 1024 * 1024,
  15006. queueSize: 2,
  15007. leavePartsOnError: true,
  15008. };
  15009. bucket
  15010. .upload(params, options)
  15011. .on("httpUploadProgress", function (evt) {
  15012. //这里可以写进度条
  15013. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15014. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15015. })
  15016. .send(function (err, data) {
  15017. _this.progress = 100;
  15018. setTimeout(() => {
  15019. _this.proVisible = false;
  15020. }, 1000);
  15021. if (err) {
  15022. var a = _this.$refs.upload1.uploadFiles;
  15023. a.splice(a.length - 1, a.length);
  15024. _this.$message.error("上传失败");
  15025. } else {
  15026. if (type == 2) {
  15027. _this.studyJuri[0].upVedio.push({
  15028. name: file.name,
  15029. url: data.Location,
  15030. uid: file.uid,
  15031. });
  15032. _this.imgChange(null, null, type);
  15033. } else if (type == 3) {
  15034. _this.studyJuri[0].upFile.push({
  15035. name: file.name,
  15036. url: data.Location,
  15037. uid: file.uid,
  15038. });
  15039. _this.imgChange(null, null, type);
  15040. }
  15041. console.log(data.Location);
  15042. }
  15043. });
  15044. }
  15045. },
  15046. allScrell() {
  15047. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15048. },
  15049. nextOrpreSteps(t) {
  15050. if (this.IsFollow && this.tType == 2) {
  15051. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15052. return;
  15053. }
  15054. var b = this.chapInfoList.length - 1;
  15055. if (t == 0) {
  15056. if (this.courseType == 0) {
  15057. if (this.taskCount == 0) {
  15058. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15059. if (this.IsLookOpen) {
  15060. if (
  15061. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15062. ) {
  15063. if (
  15064. this.courseDetail.userid != this.userid &&
  15065. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15066. ) {
  15067. this.$message.error("任务未解锁");
  15068. } else {
  15069. this.$message.error("上一任务未解锁");
  15070. }
  15071. return;
  15072. }
  15073. }
  15074. this.navList[this.courseType].isOpen = false;
  15075. this.courseType = b;
  15076. this.taskCount =
  15077. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15078. .length - 1;
  15079. this.navList[this.courseType].isOpen = true;
  15080. } else {
  15081. this.taskCount--;
  15082. }
  15083. } else {
  15084. if (this.taskCount == 0) {
  15085. this.navList[this.courseType].isOpen = false;
  15086. this.courseType--;
  15087. this.taskCount =
  15088. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15089. .length - 1;
  15090. this.navList[this.courseType].isOpen = true;
  15091. } else {
  15092. this.taskCount--;
  15093. }
  15094. }
  15095. } else {
  15096. if (this.courseType == b) {
  15097. if (
  15098. this.taskCount ==
  15099. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15100. 1
  15101. ) {
  15102. this.navList[this.courseType].isOpen = false;
  15103. this.courseType = 0;
  15104. this.taskCount = 0;
  15105. this.navList[this.courseType].isOpen = true;
  15106. } else {
  15107. var bbb = parseInt(this.taskCount) + 1;
  15108. if (
  15109. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15110. .isLook &&
  15111. this.courseDetail.userid != this.userid &&
  15112. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15113. this.IsLookOpen
  15114. ) {
  15115. this.$message.error("任务未解锁");
  15116. return;
  15117. }
  15118. this.taskCount++;
  15119. if (this.IsLookOpen) {
  15120. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15121. this.taskCount
  15122. ].isLook = true;
  15123. this.addCourseState(3);
  15124. }
  15125. }
  15126. } else {
  15127. if (
  15128. this.taskCount ==
  15129. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15130. 1
  15131. ) {
  15132. var bbb = parseInt(this.courseType) + 1;
  15133. if (
  15134. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  15135. this.courseDetail.userid != this.userid &&
  15136. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15137. this.IsLookOpen
  15138. ) {
  15139. this.$message.error("任务未解锁");
  15140. return;
  15141. }
  15142. this.navList[this.courseType].isOpen = false;
  15143. this.courseType++;
  15144. this.taskCount = 0;
  15145. this.navList[this.courseType].isOpen = true;
  15146. } else {
  15147. var bbb = parseInt(this.taskCount) + 1;
  15148. if (
  15149. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15150. .isLook &&
  15151. this.courseDetail.userid != this.userid &&
  15152. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15153. this.IsLookOpen
  15154. ) {
  15155. this.$message.error("任务未解锁");
  15156. return;
  15157. }
  15158. this.taskCount++;
  15159. }
  15160. if (this.IsLookOpen) {
  15161. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15162. this.taskCount
  15163. ].isLook = true;
  15164. this.addCourseState(3);
  15165. }
  15166. }
  15167. // if (
  15168. // this.taskCount ==
  15169. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  15170. // ) {
  15171. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  15172. // } else {
  15173. // this.taskCount++;
  15174. // }
  15175. }
  15176. document.scrollingElement.scrollTop = 0;
  15177. this.showType = 0;
  15178. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15179. // if (this.vedio[this.taskCount].length > 0) {
  15180. // var a =
  15181. // document.getElementsByClassName("box_course")[this.taskCount]
  15182. // .offsetHeight;
  15183. // document.getElementsByClassName("vedioList")[
  15184. // this.taskCount
  15185. // ].style.height = a + "px";
  15186. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  15187. // a - 40 + "px";
  15188. // }
  15189. this.isNoHomeWork = false;
  15190. (this.studyJuri = [
  15191. {
  15192. content: "",
  15193. cover: [],
  15194. upVedio: [],
  15195. upFile: [],
  15196. },
  15197. ]),
  15198. (this.radio = []);
  15199. this.isClickNav = "";
  15200. this.selectPz();
  15201. this.getHomeWork();
  15202. this.getCourseDetail(2);
  15203. this.$forceUpdate();
  15204. },
  15205. openTask(s, n, i) {
  15206. if (this.IsFollow && this.tType == 2) {
  15207. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15208. return;
  15209. }
  15210. if (this.IsLookOpen) {
  15211. if (
  15212. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  15213. this.courseDetail.userid != this.userid &&
  15214. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15215. ) {
  15216. this.$message.error("任务未解锁");
  15217. return;
  15218. }
  15219. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  15220. if (
  15221. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  15222. .isLook
  15223. ) {
  15224. this.$message.error("上一任务未解锁");
  15225. return;
  15226. }
  15227. } else if (s > this.courseType) {
  15228. if (n > 0) {
  15229. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  15230. this.$message.error("上一任务未解锁");
  15231. return;
  15232. }
  15233. } else {
  15234. if (
  15235. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  15236. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  15237. ].isLook
  15238. ) {
  15239. this.$message.error("上一任务未解锁");
  15240. return;
  15241. }
  15242. }
  15243. }
  15244. }
  15245. if (this.navList[s].task[n].isOpen == true) {
  15246. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  15247. return;
  15248. }
  15249. this.courseType = s;
  15250. this.navId = i;
  15251. this.taskCount = n;
  15252. this.navList[this.courseType].task[this.taskCount].isOpen =
  15253. !this.navList[this.courseType].task[this.taskCount].isOpen;
  15254. if (this.IsLookOpen) {
  15255. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15256. this.taskCount
  15257. ].isLook = true;
  15258. this.addCourseState(3);
  15259. }
  15260. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  15261. this.isCloseList[ci].isClose = 0;
  15262. }
  15263. this.showType = 0;
  15264. this.isNoHomeWork = false;
  15265. (this.studyJuri = [
  15266. {
  15267. content: "",
  15268. cover: [],
  15269. upVedio: [],
  15270. upFile: [],
  15271. },
  15272. ]),
  15273. (this.radio = []);
  15274. document.scrollingElement.scrollTop = 0;
  15275. // setTimeout(() => {
  15276. // let a = document.getElementById(i);
  15277. // if (a.offsetTop - 110 == 0) {
  15278. // window.scrollTo(0, 0);
  15279. // } else {
  15280. // window.scrollTo(0, a.offsetTop);
  15281. // }
  15282. // }, 0);
  15283. this.selectPz();
  15284. this.getHomeWork();
  15285. this.getCourseDetail(2);
  15286. },
  15287. get(i) {
  15288. if (this.IsFollow && this.tType == 2) {
  15289. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15290. return;
  15291. }
  15292. // for(var k=0;k<this.navList.length;k++){
  15293. // this.navList[k].isOpen = false;
  15294. // }
  15295. // this.navList[i].isOpen = true;
  15296. this.navList[i].isOpen = !this.navList[i].isOpen;
  15297. if (this.navList[i].isOpen) {
  15298. this.openTask(i, 0, i + "-0");
  15299. }
  15300. },
  15301. addQuestion() {
  15302. this.answerList.push({
  15303. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15304. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15305. });
  15306. let params = [
  15307. {
  15308. uid: this.userid,
  15309. cid: this.id,
  15310. stage: this.courseType,
  15311. task: this.taskCount,
  15312. tool: this.toolindex,
  15313. content: JSON.stringify(this.answerList),
  15314. type: 3,
  15315. },
  15316. ];
  15317. this.ajax
  15318. .post(this.$store.state.api + "addCourseWorks", params)
  15319. .then((res) => {
  15320. this.$message({
  15321. message: "提交成功",
  15322. type: "success",
  15323. });
  15324. this.answerList = [];
  15325. this.answerDialogVisible = false;
  15326. this.selectStudent();
  15327. this.selectSWorks();
  15328. this.selectSLook();
  15329. })
  15330. .catch((err) => {
  15331. this.$message.error("提交失败");
  15332. console.error(err);
  15333. });
  15334. },
  15335. addQuestionTeacher() {
  15336. this.answerList.push({
  15337. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15338. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15339. });
  15340. let params = [
  15341. {
  15342. uid: this.sStudent.userid,
  15343. cid: this.id,
  15344. stage: this.courseType,
  15345. task: this.taskCount,
  15346. tool: this.toolindex,
  15347. content: JSON.stringify(this.answerList),
  15348. type: 3,
  15349. ateacher: this.userid,
  15350. },
  15351. ];
  15352. this.ajax
  15353. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15354. .then((res) => {
  15355. this.$message({
  15356. message: "提交成功",
  15357. type: "success",
  15358. });
  15359. this.answerList = [];
  15360. this.questionAnswer = "";
  15361. this.answerDialogVisibleTeacher = false;
  15362. this.selectStudent();
  15363. this.selectSWorks();
  15364. this.selectSLook();
  15365. })
  15366. .catch((err) => {
  15367. this.$message.error("提交失败");
  15368. console.error(err);
  15369. });
  15370. },
  15371. refreshCourse() {
  15372. // window.location.reload();
  15373. this.navList = [];
  15374. this.getCourseDetail(1);
  15375. },
  15376. getCourseDetail(type, gindex) {
  15377. let loading;
  15378. if (type != 2) {
  15379. loading = this.$loading.service({
  15380. background: "rgba(255, 255, 255, 0.7)",
  15381. target: document.querySelector(".student_table"),
  15382. });
  15383. }
  15384. // this.navList[0].isOpen = false;
  15385. // this.navList[this.courseType].isOpen = true;
  15386. // this.courseType = this.courseTypeLine;
  15387. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15388. let params = {
  15389. courseId: this.id,
  15390. };
  15391. this.ajax
  15392. .get(this.$store.state.api + "selectCourseDetail3", params)
  15393. .then((res) => {
  15394. if (type != 2) {
  15395. loading.close();
  15396. if (
  15397. this.courseType >
  15398. JSON.parse(res.data[0][0].chapters).length - 1
  15399. ) {
  15400. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15401. }
  15402. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15403. .chapterInfo[0].taskJson;
  15404. var b = [
  15405. "AVI",
  15406. "NAVI",
  15407. "MPEG",
  15408. "ASF",
  15409. "MOV",
  15410. "WMV",
  15411. "3GP",
  15412. "RM",
  15413. "RMVB",
  15414. "FLV",
  15415. "F4V",
  15416. "H.264",
  15417. "H.265",
  15418. "REAL VIDEO",
  15419. "MKV",
  15420. "WebM",
  15421. "HDDVD",
  15422. "MP4",
  15423. "MPG",
  15424. "M4V",
  15425. "MGV",
  15426. "OGV",
  15427. "QTM",
  15428. "STR",
  15429. "AMC",
  15430. "DVX",
  15431. "EVO",
  15432. "DAT",
  15433. "OGG",
  15434. "OGM",
  15435. "MP3",
  15436. ];
  15437. let _chapterData = [];
  15438. for (var i = 0; i < a.length; i++) {
  15439. var c = a[i].chapterData;
  15440. this.vedio[i] = [];
  15441. this.textList[i] = [];
  15442. this.lineList[i] = [];
  15443. this.chapToolList[i] = [];
  15444. this.file[i] = [];
  15445. this.fileC[i] = [];
  15446. _chapterData[i] = c.filter((el) => {
  15447. return el.type != 12;
  15448. });
  15449. this.fileC[i] = c.filter((el) => {
  15450. return el.type == 12;
  15451. });
  15452. // else if (c[j].type == 12) {
  15453. // this.fileC[i].push(c[j]);
  15454. // }
  15455. for (var j = 0; j < c.length; j++) {
  15456. if (c[j].type == 7) {
  15457. this.chapToolList[i].push(c[j]);
  15458. } else if (c[j].type == 8 || c[j].type == 14) {
  15459. this.lineList[i].push(c[j]);
  15460. } else if (c[j].type == 6) {
  15461. this.textList[i].push(c[j]);
  15462. } else {
  15463. if (
  15464. b.indexOf(
  15465. c[j].url
  15466. .split(".")
  15467. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15468. ) != -1
  15469. ) {
  15470. this.vedio[i].push(c[j]);
  15471. } else {
  15472. this.file[i].push(c[j]);
  15473. }
  15474. }
  15475. }
  15476. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15477. d.sources[0].src =
  15478. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15479. this.playerO[i] = d;
  15480. }
  15481. this.courseDetail = res.data[0][0];
  15482. this.tcid = this.arrayToArray(
  15483. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15484. this.tcid2 ? this.tcid2.split(",") : []
  15485. ).join(",");
  15486. this.evalua = res.data[0][0].evaId;
  15487. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15488. this.courseType
  15489. ];
  15490. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15491. if (this.tcid && res.data[1].length) {
  15492. let _inviteA = [];
  15493. for (var ik = 0; ik < res.data[1].length; ik++) {
  15494. _inviteA.push({
  15495. cid: res.data[1][ik].classid,
  15496. ic: res.data[1][ik].code,
  15497. });
  15498. }
  15499. for (var ik = 0; ik < _inviteA.length; ik++) {
  15500. if (
  15501. this.arrayToArray(
  15502. _inviteA[ik].cid.split(","),
  15503. this.tcid.split(",")
  15504. ).length
  15505. ) {
  15506. this.inviteCode = _inviteA[ik].ic;
  15507. break;
  15508. }
  15509. }
  15510. }
  15511. for (var l = 0; l < this.chapInfoList.length; l++) {
  15512. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15513. for (var m = 0; m < w.length; m++) {
  15514. w[m].id = l + "-" + m;
  15515. }
  15516. }
  15517. if (
  15518. _chapterData[this.taskCount].length &&
  15519. _chapterData[this.taskCount][0].type == 2
  15520. ) {
  15521. this.showType = 0;
  15522. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  15523. } else {
  15524. if (_chapterData[this.taskCount].length > 0) {
  15525. let _url = _chapterData[this.taskCount][0].url;
  15526. if (
  15527. _chapterData[this.taskCount][0].type == 8 ||
  15528. _chapterData[this.taskCount][0].type == 14
  15529. ) {
  15530. this.showType = 2;
  15531. if (
  15532. _url.indexOf("https://") == -1 &&
  15533. _url.indexOf("http://") == -1
  15534. ) {
  15535. _url = "https://" + _url;
  15536. }
  15537. this.pptImgUrl1 = _url;
  15538. } else if (_chapterData[this.taskCount][0].type == 3) {
  15539. if (
  15540. _url
  15541. .split(".")
  15542. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15543. ) {
  15544. this.showType = 3;
  15545. this.pptImgUrl1 = _url;
  15546. } else if (
  15547. this.isAssetTypeAnImage(
  15548. _url
  15549. .split(".")
  15550. [_url.split(".").length - 1].toLocaleLowerCase()
  15551. )
  15552. ) {
  15553. this.showType = 4;
  15554. this.pptImgUrl1 = _url;
  15555. } else {
  15556. this.showType = 2;
  15557. this.pptImgUrl1 =
  15558. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15559. _url;
  15560. }
  15561. } else if (_chapterData[this.taskCount][0].type == 13) {
  15562. this.showType = 4;
  15563. this.pptImgUrl1 = _url;
  15564. } else if (_chapterData[this.taskCount][0].type == 6) {
  15565. this.showType = 1;
  15566. this.text = this.textList[this.taskCount][0];
  15567. }
  15568. }
  15569. }
  15570. this.isClickNav = 0;
  15571. if (
  15572. !_chapterData[this.taskCount].length ||
  15573. _chapterData[this.taskCount][0].type == 12
  15574. ) {
  15575. this.isClickNav = "";
  15576. this.showType = "";
  15577. }
  15578. this.vChapterData = _chapterData;
  15579. } else {
  15580. this.showType = 0;
  15581. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15582. .chapterInfo[0].taskJson;
  15583. var b = [
  15584. "AVI",
  15585. "NAVI",
  15586. "MPEG",
  15587. "ASF",
  15588. "MOV",
  15589. "WMV",
  15590. "3GP",
  15591. "RM",
  15592. "RMVB",
  15593. "FLV",
  15594. "F4V",
  15595. "H.264",
  15596. "H.265",
  15597. "REAL VIDEO",
  15598. "MKV",
  15599. "WebM",
  15600. "HDDVD",
  15601. "MP4",
  15602. "MPG",
  15603. "M4V",
  15604. "MGV",
  15605. "OGV",
  15606. "QTM",
  15607. "STR",
  15608. "AMC",
  15609. "DVX",
  15610. "EVO",
  15611. "DAT",
  15612. "OGG",
  15613. "OGM",
  15614. "MP3",
  15615. ];
  15616. let _chapterData = [];
  15617. for (var i = 0; i < a.length; i++) {
  15618. var c = a[i].chapterData;
  15619. this.vedio[i] = [];
  15620. this.textList[i] = [];
  15621. this.lineList[i] = [];
  15622. this.chapToolList[i] = [];
  15623. this.file[i] = [];
  15624. this.fileC[i] = [];
  15625. _chapterData[i] = c.filter((el) => {
  15626. return el.type != 12;
  15627. });
  15628. this.fileC[i] = c.filter((el) => {
  15629. return el.type == 12;
  15630. });
  15631. for (var j = 0; j < c.length; j++) {
  15632. if (c[j].type == 7) {
  15633. this.chapToolList[i].push(c[j]);
  15634. } else if (c[j].type == 8 || c[j].type == 14) {
  15635. this.lineList[i].push(c[j]);
  15636. } else if (c[j].type == 6) {
  15637. this.textList[i].push(c[j]);
  15638. } else {
  15639. if (
  15640. b.indexOf(
  15641. c[j].url
  15642. .split(".")
  15643. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15644. ) != -1
  15645. ) {
  15646. this.vedio[i].push(c[j]);
  15647. } else {
  15648. this.file[i].push(c[j]);
  15649. }
  15650. }
  15651. }
  15652. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15653. d.sources[0].src =
  15654. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15655. this.playerO[i] = d;
  15656. }
  15657. if (
  15658. _chapterData[this.taskCount].length &&
  15659. _chapterData[this.taskCount][0].type == 2
  15660. ) {
  15661. this.showType = 0;
  15662. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  15663. } else {
  15664. if (_chapterData[this.taskCount].length > 0) {
  15665. let _url = _chapterData[this.taskCount][0].url;
  15666. if (
  15667. _chapterData[this.taskCount][0].type == 8 ||
  15668. _chapterData[this.taskCount][0].type == 14
  15669. ) {
  15670. this.showType = 2;
  15671. if (
  15672. _url.indexOf("https://") == -1 &&
  15673. _url.indexOf("http://") == -1
  15674. ) {
  15675. _url = "https://" + _url;
  15676. }
  15677. this.pptImgUrl1 = _url;
  15678. } else if (_chapterData[this.taskCount][0].type == 3) {
  15679. if (
  15680. _url
  15681. .split(".")
  15682. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15683. ) {
  15684. this.showType = 3;
  15685. this.pptImgUrl1 = _url;
  15686. } else if (
  15687. this.isAssetTypeAnImage(
  15688. _url
  15689. .split(".")
  15690. [_url.split(".").length - 1].toLocaleLowerCase()
  15691. )
  15692. ) {
  15693. this.showType = 4;
  15694. this.pptImgUrl1 = _url;
  15695. } else {
  15696. this.showType = 2;
  15697. this.pptImgUrl1 =
  15698. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15699. _url;
  15700. }
  15701. } else if (_chapterData[this.taskCount][0].type == 13) {
  15702. this.showType = 4;
  15703. this.pptImgUrl1 = _url;
  15704. } else if (_chapterData[this.taskCount][0].type == 6) {
  15705. this.showType = 1;
  15706. this.text = this.textList[this.taskCount][0];
  15707. }
  15708. }
  15709. }
  15710. this.isClickNav = 0;
  15711. if (
  15712. !_chapterData[this.taskCount].length ||
  15713. _chapterData[this.taskCount][0].type == 12
  15714. ) {
  15715. this.isClickNav = "";
  15716. this.showType = "";
  15717. }
  15718. this.vChapterData = _chapterData;
  15719. this.$forceUpdate();
  15720. }
  15721. // else {
  15722. // this.courseDetail = res.data[0][0];
  15723. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15724. // }
  15725. let _this = this;
  15726. if (_this.timer) {
  15727. clearInterval(_this.timer);
  15728. _this.timer = null;
  15729. }
  15730. if (_this.tcid) {
  15731. _this.getCourseGroup(gindex);
  15732. } else {
  15733. _this.selectSWorks(gindex);
  15734. }
  15735. _this.selectStudent();
  15736. _this.selectSLook();
  15737. _this.getPick();
  15738. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15739. _this.setCTask();
  15740. }
  15741. if (_this.dialogVisibleGroup) {
  15742. _this.groupJson =
  15743. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15744. _this.taskCount
  15745. ].toolChoose[_this.toolindex].groupJson;
  15746. }
  15747. _this.$nextTick(() => {
  15748. setTimeout(() => {
  15749. _this.checkEva();
  15750. }, 1000);
  15751. });
  15752. _this.timer = setInterval(function () {
  15753. // _this.getCourseDetail(2);
  15754. if (_this.tcid) {
  15755. _this.getCourseGroup(gindex);
  15756. } else {
  15757. _this.selectSWorks(gindex);
  15758. }
  15759. _this.selectStudent();
  15760. _this.selectSLook();
  15761. _this.getPick();
  15762. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15763. _this.setCTask();
  15764. }
  15765. if (_this.dialogVisibleGroup) {
  15766. _this.groupJson =
  15767. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15768. _this.taskCount
  15769. ].toolChoose[_this.toolindex].groupJson;
  15770. }
  15771. if (_this.tType == 4 || _this.ispzType == 4) {
  15772. _this.selectPz();
  15773. }
  15774. }, 5000);
  15775. _this.$nextTick(function () {
  15776. setTimeout(() => {
  15777. // var a =
  15778. // document.getElementsByClassName("box_course")[0].offsetHeight;
  15779. // document.getElementsByClassName("vedioList")[0].style.height =
  15780. // a + "px";
  15781. // document.getElementsByClassName("navBox")[0].style.height =
  15782. // a - 40 + "px";
  15783. // if (_this.vedio[_this.taskCount].length > 0) {
  15784. // _this.vedioTime = [];
  15785. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  15786. // _this.vedioTime[i] = document.getElementsByClassName(
  15787. // "vjs-duration-display"
  15788. // )[i].textContent;
  15789. // }
  15790. // }
  15791. }, 1000);
  15792. });
  15793. })
  15794. .catch((err) => {
  15795. loading.close();
  15796. console.error(err);
  15797. });
  15798. },
  15799. getCourseGroup(gindex) {
  15800. let params = {
  15801. cid: this.id,
  15802. classid: this.tcid ? this.tcid : "1",
  15803. };
  15804. this.ajax
  15805. .get(this.$store.state.api + "getCourseGroup", params)
  15806. .then((res) => {
  15807. if (res.data && res.data[0].length) {
  15808. if (!this.isGroup) {
  15809. let courseGroup = JSON.parse(res.data[0][0].group);
  15810. courseGroup.group = courseGroup.group.filter((el) => {
  15811. el.works = [];
  15812. return el;
  15813. });
  15814. if (courseGroup.isopen == 2) {
  15815. this.isGroup = false;
  15816. this.selectSWorks(gindex);
  15817. return;
  15818. }
  15819. this.courseGroup = courseGroup;
  15820. let groupPerson = res.data[1];
  15821. let group = JSON.parse(res.data[0][0].group).group;
  15822. let courseGroupStudent = {};
  15823. let courseGroupStudentUid = {};
  15824. for (var i = 0; i < group.length; i++) {
  15825. courseGroupStudent[group[i].id] = [];
  15826. courseGroupStudentUid[group[i].id] = [];
  15827. for (var j = 0; j < groupPerson.length; j++) {
  15828. if (groupPerson[j].groupCid == group[i].id) {
  15829. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15830. courseGroupStudentUid[group[i].id].push(
  15831. groupPerson[j].userid
  15832. );
  15833. }
  15834. }
  15835. }
  15836. this.courseGroupStudent = courseGroupStudent;
  15837. this.courseGroupStudentUid = courseGroupStudentUid;
  15838. }
  15839. if (this.courseGroup.isopen == 2) {
  15840. this.isGroup = false;
  15841. } else {
  15842. this.isGroup = true;
  15843. }
  15844. this.selectSWorks(gindex);
  15845. } else {
  15846. this.selectSWorks(gindex);
  15847. this.isGroup = false;
  15848. }
  15849. })
  15850. .catch((err) => {
  15851. // this.$message.error("网络不佳");
  15852. console.error(err);
  15853. });
  15854. },
  15855. setOperationTime() {
  15856. let _this = this;
  15857. if (_this.opertimer) {
  15858. clearInterval(_this.opertimer);
  15859. _this.opertimer = null;
  15860. }
  15861. _this.opertimer = setInterval(() => {
  15862. _this.setoTime("600");
  15863. }, 600000);
  15864. },
  15865. setoTime(time) {
  15866. let params = [
  15867. {
  15868. uid: this.userid,
  15869. cid: this.id,
  15870. type: "2",
  15871. time: time,
  15872. },
  15873. ];
  15874. this.ajax
  15875. .post(this.$store.state.api + "addOperationTimeT2", params)
  15876. .then((res) => {})
  15877. .catch((err) => {
  15878. console.error(err);
  15879. });
  15880. },
  15881. addPz(type, content) {
  15882. if (type == "1" && this.pzConText == "") {
  15883. this.$message.error("批注不能为空!");
  15884. return;
  15885. }
  15886. let params = [
  15887. {
  15888. cid: this.id,
  15889. uid: this.userid,
  15890. s: this.courseType,
  15891. t: this.taskCount,
  15892. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15893. type: type,
  15894. },
  15895. ];
  15896. this.ajax
  15897. .post(this.$store.state.api + "addPz2", params)
  15898. .then((res) => {
  15899. this.$message({
  15900. message: "添加成功",
  15901. type: "success",
  15902. });
  15903. this.pzConText = "";
  15904. this.addPzDialog = false;
  15905. this.selectPz();
  15906. })
  15907. .catch((err) => {
  15908. this.$message.error("添加失败");
  15909. console.error(err);
  15910. });
  15911. },
  15912. setReplyIndex(id, i) {
  15913. this.replyIndex = i;
  15914. this.replyPid = id;
  15915. this.replyDialogVisible = true;
  15916. },
  15917. addHf() {
  15918. if (this.reply == "") {
  15919. this.$message.error("回复不能为空!");
  15920. return;
  15921. }
  15922. let params = [
  15923. {
  15924. cid: this.id,
  15925. uid: this.userid,
  15926. s: this.courseType,
  15927. t: this.taskCount,
  15928. type: "1",
  15929. ct: 2,
  15930. pid: this.replyPid,
  15931. c: this.reply.replaceAll(/%/g, "%25"),
  15932. },
  15933. ];
  15934. this.ajax
  15935. .post(this.$store.state.api + "addHf", params)
  15936. .then((res) => {
  15937. this.reply = "";
  15938. this.$message({
  15939. message: "回复成功",
  15940. type: "success",
  15941. });
  15942. this.replyDialogVisible = false;
  15943. this.selectPz();
  15944. })
  15945. .catch((err) => {
  15946. this.$message.error("回复失败");
  15947. console.error(err);
  15948. });
  15949. },
  15950. deletePz(id) {
  15951. this.$confirm("确定删除此批注吗?", "提示", {
  15952. confirmButtonText: "确定",
  15953. cancelButtonText: "取消",
  15954. type: "warning",
  15955. })
  15956. .then(() => {
  15957. let params = [
  15958. {
  15959. id: id,
  15960. },
  15961. ];
  15962. this.ajax
  15963. .post(this.$store.state.api + "deletePz", params)
  15964. .then((res) => {
  15965. this.$message({
  15966. message: "删除成功",
  15967. type: "success",
  15968. });
  15969. this.selectPz();
  15970. })
  15971. .catch((err) => {
  15972. this.$message.error("网络异常");
  15973. console.error(err);
  15974. });
  15975. })
  15976. .catch(() => {});
  15977. },
  15978. deleteReply(id) {
  15979. this.$confirm("确定删除此回复吗?", "提示", {
  15980. confirmButtonText: "确定",
  15981. cancelButtonText: "取消",
  15982. type: "warning",
  15983. })
  15984. .then(() => {
  15985. let params = [
  15986. {
  15987. id: id,
  15988. },
  15989. ];
  15990. this.ajax
  15991. .post(this.$store.state.api + "deleteReply", params)
  15992. .then((res) => {
  15993. this.$message({
  15994. message: "删除成功",
  15995. type: "success",
  15996. });
  15997. this.selectPz();
  15998. })
  15999. .catch((err) => {
  16000. this.$message.error("网络异常");
  16001. console.error(err);
  16002. });
  16003. })
  16004. .catch(() => {});
  16005. },
  16006. setPz() {
  16007. if (this.ispzType == 4) {
  16008. this.ispzType = 0;
  16009. this.pzDialog = false;
  16010. return;
  16011. }
  16012. this.ispzType = 4;
  16013. this.pzDialog = true;
  16014. this.selectPz();
  16015. },
  16016. selectPz() {
  16017. let params = {
  16018. cid: this.id,
  16019. s: this.courseType,
  16020. t: this.taskCount,
  16021. type: this.pzStype,
  16022. uid: this.userid,
  16023. };
  16024. this.ajax
  16025. .get(this.$store.state.api + "selectPzListType", params)
  16026. .then((res) => {
  16027. this.pzList = res.data[0];
  16028. var a = res.data[1];
  16029. for (var i = 0; i < a.length; i++) {
  16030. for (var j = 0; j < this.pzList.length; j++) {
  16031. if (!this.pzList[j].hfList) {
  16032. this.pzList[j].hfList = [];
  16033. }
  16034. if (a[i].pid == this.pzList[j].id) {
  16035. this.pzList[j].hfList.push(a[i]);
  16036. }
  16037. }
  16038. }
  16039. })
  16040. .catch((err) => {
  16041. console.error(err);
  16042. });
  16043. },
  16044. // selectHf() {
  16045. // let params = {
  16046. // cid: this.id,
  16047. // s: this.courseType,
  16048. // t: this.taskCount,
  16049. // };
  16050. // this.ajax
  16051. // .get(this.$store.state.api + "selectHfList", params)
  16052. // .then((res) => {
  16053. // var a = res.data[0];
  16054. // for (var i = 0; i < a.length; i++) {
  16055. // for (var j = 0; j < this.pzList.length; j++) {
  16056. // if (!this.pzList[i].hfList) {
  16057. // this.pzList[i].hfList = [];
  16058. // }
  16059. // if (a[i].pid == this.pzList[j].id) {
  16060. // this.pzList[i].hfList.push(a[i]);
  16061. // }
  16062. // }
  16063. // }
  16064. // })
  16065. // .catch((err) => {
  16066. // console.error(err);
  16067. // });
  16068. // },
  16069. updateSLook() {
  16070. let params = {
  16071. sopen: this.sIsOpen == false ? 1 : 2,
  16072. cid: this.id,
  16073. };
  16074. this.ajax
  16075. .get(this.$store.state.api + "updateCourseSLook", params)
  16076. .then((res) => {
  16077. if (this.sIsOpen == true) {
  16078. this.$message({
  16079. message: "权限设置成功",
  16080. type: "success",
  16081. });
  16082. } else {
  16083. this.$message({
  16084. message: "权限关闭成功",
  16085. type: "success",
  16086. });
  16087. }
  16088. })
  16089. .catch((err) => {
  16090. console.error(err);
  16091. });
  16092. },
  16093. updateFollow() {
  16094. let params = [
  16095. {
  16096. sopen: this.IsFollow == false ? 1 : 2,
  16097. cid: this.id,
  16098. },
  16099. ];
  16100. this.ajax
  16101. .post(this.$store.state.api + "updateCourseFollow", params)
  16102. .then((res) => {
  16103. if (this.IsFollow == true) {
  16104. this.$message({
  16105. message: "开启成功",
  16106. type: "success",
  16107. });
  16108. } else {
  16109. this.$message({
  16110. message: "关闭成功",
  16111. type: "success",
  16112. });
  16113. }
  16114. this.setCTask();
  16115. })
  16116. .catch((err) => {
  16117. console.error(err);
  16118. });
  16119. },
  16120. setCTask() {
  16121. let params = [
  16122. {
  16123. sopen: this.courseType + "-" + this.taskCount,
  16124. cid: this.id,
  16125. },
  16126. ];
  16127. this.ajax
  16128. .post(this.$store.state.api + "updateCourseFollowC", params)
  16129. .then((res) => {})
  16130. .catch((err) => {
  16131. console.error(err);
  16132. });
  16133. },
  16134. updateLookOpen() {
  16135. let params = [
  16136. {
  16137. sopen: this.IsLookOpen == false ? 1 : 2,
  16138. cid: this.id,
  16139. },
  16140. ];
  16141. this.ajax
  16142. .post(this.$store.state.api + "updateCourseLookOpen", params)
  16143. .then((res) => {
  16144. if (this.IsLookOpen == true) {
  16145. // if (this.courseType != 0 && this.taskCount != 0) {
  16146. // this.openTask(0, 0, "0-0");
  16147. // }
  16148. this.$message({
  16149. message: "权限设置成功",
  16150. type: "success",
  16151. });
  16152. } else {
  16153. this.$message({
  16154. message: "权限关闭成功",
  16155. type: "success",
  16156. });
  16157. }
  16158. this.getCourseState(2);
  16159. })
  16160. .catch((err) => {
  16161. console.error(err);
  16162. });
  16163. },
  16164. selectSLook() {
  16165. let params = {
  16166. cid: this.id,
  16167. };
  16168. this.ajax
  16169. .get(this.$store.state.api + "selectCourseSLook", params)
  16170. .then((res) => {
  16171. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  16172. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  16173. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  16174. if (!this.IsLookOpen) {
  16175. this.setNavList();
  16176. } else {
  16177. this.getCourseState(1);
  16178. }
  16179. if (this.IsFollow && this.tType == 2) {
  16180. this.setContent2(false);
  16181. let _followC = res.data[0][0].followC.split("-");
  16182. if (
  16183. this.courseType != _followC[0] ||
  16184. this.taskCount != _followC[1]
  16185. ) {
  16186. this.navList[this.courseType].isOpen = false;
  16187. this.courseType = _followC[0];
  16188. this.navList[this.courseType].isOpen = true;
  16189. this.taskCount = parseInt(_followC[1]);
  16190. this.navId = res.data[0][0].followC;
  16191. document.scrollingElement.scrollTop = 0;
  16192. this.getCourseDetail(2);
  16193. }
  16194. }
  16195. })
  16196. .catch((err) => {
  16197. console.error(err);
  16198. });
  16199. },
  16200. setNavList() {
  16201. if (this.navList.length == 0) {
  16202. this.navList = [];
  16203. var copyList = [];
  16204. for (var l = 0; l < this.chapInfoList.length; l++) {
  16205. var q = this.chapInfoList[l].dyName;
  16206. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16207. var e;
  16208. copyList.push({
  16209. dyName: q,
  16210. isOpen: l === 0 ? true : false,
  16211. task: [],
  16212. });
  16213. for (var r = 0; r < w.length; r++) {
  16214. e = w[r].task;
  16215. if (this.chapInfoList[l].easy == 1) {
  16216. copyList[l].task.push({
  16217. taskName: q,
  16218. id: l + "-" + r,
  16219. isLook: w[r].isLook,
  16220. isOpen: r === 0 ? true : false,
  16221. tool: [],
  16222. });
  16223. } else {
  16224. copyList[l].task.push({
  16225. taskName: e,
  16226. id: l + "-" + r,
  16227. isLook: w[r].isLook,
  16228. isOpen: r === 0 ? true : false,
  16229. tool: [],
  16230. });
  16231. }
  16232. var t = w[r].toolChoose;
  16233. for (var k = 0; k < t.length; k++) {
  16234. var tool = t[k].tool[0];
  16235. copyList[l].task[r].tool.push({
  16236. tool: tool,
  16237. isTool: false,
  16238. });
  16239. }
  16240. // this.navId = this.navId ? this.navId : l + "-" + r;
  16241. // this.navId = l + "-" + r;
  16242. }
  16243. }
  16244. this.navList = copyList;
  16245. this.navList[0].isOpen = false;
  16246. this.navList[this.courseType].isOpen = true;
  16247. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16248. } else {
  16249. this.setNavList2();
  16250. }
  16251. },
  16252. setNavList2() {
  16253. for (var l = 0; l < this.chapInfoList.length; l++) {
  16254. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16255. for (var r = 0; r < w.length; r++) {
  16256. this.navList[l].task[r].isLook = w[r].isLook;
  16257. }
  16258. }
  16259. if (
  16260. this.IsLookOpen &&
  16261. !this.navList[this.courseType].task[this.taskCount].isLook
  16262. ) {
  16263. this.openTask(0, 0, "0-0");
  16264. }
  16265. this.$forceUpdate();
  16266. },
  16267. getCourseState(type) {
  16268. let params = {
  16269. cid: this.id,
  16270. };
  16271. this.ajax
  16272. .get(this.$store.state.api + "getCourseState", params)
  16273. .then((res) => {
  16274. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  16275. this.chapInfoList = JSON.parse(res.data[0][0].state);
  16276. this.setNavList();
  16277. this.$forceUpdate();
  16278. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  16279. this.addCourseState(2);
  16280. } else {
  16281. this.addCourseState(1);
  16282. }
  16283. })
  16284. .catch((err) => {
  16285. console.error(err);
  16286. });
  16287. },
  16288. addCourseState(type) {
  16289. let _state = this.chapInfoList;
  16290. // this.courseType this.taskCount
  16291. if (type == 1 || type == 2) {
  16292. for (var i = 0; i < _state.length; i++) {
  16293. let el = _state[i].chapterInfo[0].taskJson;
  16294. for (var j = 0; j < el.length; j++) {
  16295. // if (i == 0 && j == 0) {
  16296. // el[j].isLook = true;
  16297. // } else {
  16298. // el[j].isLook = false;
  16299. // }
  16300. if (
  16301. this.courseType > i ||
  16302. (this.courseType == i && this.taskCount + 1 > j)
  16303. ) {
  16304. el[j].isLook = true;
  16305. } else {
  16306. el[j].isLook = false;
  16307. }
  16308. }
  16309. }
  16310. }
  16311. let params = [
  16312. {
  16313. cid: this.id,
  16314. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  16315. },
  16316. ];
  16317. this.ajax
  16318. .post(
  16319. this.$store.state.api +
  16320. (type == 1 ? "addCourseState" : "updateCourseSate"),
  16321. params
  16322. )
  16323. .then((res) => {
  16324. if (this.IsLookOpen) {
  16325. this.setNavList();
  16326. }
  16327. if (type == 3 && type == 2) {
  16328. this.getCourseState(1);
  16329. }
  16330. })
  16331. .catch((err) => {
  16332. console.error(err);
  16333. });
  16334. },
  16335. getHomeWork() {
  16336. let params = {
  16337. cid: this.id,
  16338. stage: this.courseType,
  16339. task: this.taskCount,
  16340. uid: this.userid,
  16341. };
  16342. this.ajax
  16343. .get(this.$store.state.api + "selectWork", params)
  16344. .then((res) => {
  16345. if (res.data[0].length > 0) {
  16346. this.studyJuri = JSON.parse(res.data[0][0].content);
  16347. this.isNoHomeWork = true;
  16348. }
  16349. })
  16350. .catch((err) => {
  16351. console.error(err);
  16352. });
  16353. },
  16354. isAssetTypeAnImage(ext) {
  16355. return (
  16356. [
  16357. "png",
  16358. "jpg",
  16359. "jpeg",
  16360. "bmp",
  16361. "gif",
  16362. "webp",
  16363. "psd",
  16364. "svg",
  16365. "tiff",
  16366. ].indexOf(ext) !== -1
  16367. );
  16368. },
  16369. switchVideo(media) {
  16370. this.playerO = {};
  16371. this.playerOptions.poster = "";
  16372. this.playerOptions.sources[0].src = media;
  16373. this.playerO = this.playerOptions;
  16374. },
  16375. onPlayerPlay() {},
  16376. onPlayerTimeupdate(player) {
  16377. let gklog = player.cache_.currentTime; //当前播放的秒数
  16378. let a = player.cache_.duration; //视频的总时长
  16379. let gklog2 = parseInt(gklog);
  16380. // if(gklog2 == '3'){
  16381. // player.pause()
  16382. // setTimeout(()=>{
  16383. // player.currentTime(gklog2+1)
  16384. // player.play()
  16385. // },1000)
  16386. // }
  16387. console.log(" onPlayerTimeupdate!", gklog);
  16388. console.log(" onPlayerTimeupdate!", gklog2);
  16389. },
  16390. lookVedio(u, i) {
  16391. this.isClickNav = "";
  16392. // this.playerOptions.sources[0].src = u;
  16393. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16394. d.sources[0].src = u;
  16395. this.playerO[this.taskCount] = d;
  16396. this.showType = 0;
  16397. // this.isClickNav = "video" + i;
  16398. this.isClickNav = i;
  16399. this.$forceUpdate();
  16400. },
  16401. lookText(i, t) {
  16402. this.isClickNav = "";
  16403. // this.text = this.textList[i][t];
  16404. this.text = this.vChapterData[i][t];
  16405. // this.dialogVisible1 = true;
  16406. this.showType = 1;
  16407. // this.isClickNav = "text" + t;
  16408. this.isClickNav = t;
  16409. },
  16410. lookTools(i, t) {
  16411. this.chapTools = this.chapToolList[i][t];
  16412. this.dialogVisible2 = true;
  16413. },
  16414. openFile(f) {
  16415. this.pptImgUrl = "";
  16416. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  16417. if (
  16418. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  16419. -1
  16420. ) {
  16421. this.pptImgUrl =
  16422. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  16423. this.showPDF = false;
  16424. this.dialogVisible3 = true;
  16425. } else if (
  16426. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16427. ) {
  16428. this.pptImgUrl = f;
  16429. this.showPDF = true;
  16430. this.dialogVisible3 = true;
  16431. }
  16432. },
  16433. openTable(f) {
  16434. this.tableJson = JSON.parse(f.works);
  16435. this.dialogVisibleTable2 = true;
  16436. },
  16437. openWord(f) {
  16438. this.tableJson = JSON.parse(f.works);
  16439. this.dialogVisibleTable3 = true;
  16440. },
  16441. doUrl(url, i) {
  16442. this.isClickNav = "";
  16443. this.pptImgUrl1 = "";
  16444. this.showType = 2;
  16445. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16446. url = "https://" + url;
  16447. }
  16448. this.pptImgUrl1 = "";
  16449. setTimeout(() => {
  16450. this.pptImgUrl1 = url;
  16451. }, 500);
  16452. // this.isClickNav = "line" + i;
  16453. this.isClickNav = i;
  16454. this.$forceUpdate();
  16455. },
  16456. checkPhoto(f, i) {
  16457. this.showType = 4;
  16458. this.pptImgUrl1 = f.url;
  16459. this.isClickNav = i;
  16460. this.$forceUpdate();
  16461. },
  16462. downFile(f, i) {
  16463. this.isClickNav = "";
  16464. this.pptImgUrl1 = "";
  16465. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  16466. if (
  16467. a.indexOf(
  16468. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  16469. ) != -1
  16470. ) {
  16471. this.pptImgUrl1 =
  16472. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  16473. // this.dialogVisible3 = true;
  16474. this.showType = 2;
  16475. } else if (
  16476. this.isAssetTypeAnImage(
  16477. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16478. )
  16479. ) {
  16480. this.showType = 4;
  16481. this.pptImgUrl1 = f.url;
  16482. } else if (
  16483. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16484. "PDF"
  16485. ) {
  16486. this.pptImgUrl1 = f.url;
  16487. // this.dialogVisible3 = true;
  16488. this.showType = 3;
  16489. } else {
  16490. window.open(this.file[i].url);
  16491. }
  16492. // this.isClickNav = "word" + i;
  16493. this.isClickNav = i;
  16494. },
  16495. downFileList(i) {
  16496. window.open(this.noImgList[i].url);
  16497. },
  16498. openAddWork() {
  16499. this.dialogVisible = true;
  16500. },
  16501. addBzWorks() {
  16502. let params = [
  16503. {
  16504. uid: this.userid,
  16505. cid: this.id,
  16506. stage: this.courseType,
  16507. task: this.taskCount,
  16508. tool: this.toolindex,
  16509. content: JSON.stringify(this.eScore),
  16510. type: 6,
  16511. },
  16512. ];
  16513. this.ajax
  16514. .post(this.$store.state.api + "addCourseWorks", params)
  16515. .then((res) => {
  16516. this.$message({
  16517. message: "提交成功",
  16518. type: "success",
  16519. });
  16520. this.eScore = { eBzText: "", eStar: [] };
  16521. this.studentEvalDialogVisible = false;
  16522. this.selectSWorks();
  16523. })
  16524. .catch((err) => {
  16525. this.$message.error("提交失败");
  16526. console.error(err);
  16527. });
  16528. },
  16529. addBzWorksTeacher() {
  16530. let params = [
  16531. {
  16532. uid: this.sStudent.userid,
  16533. cid: this.id,
  16534. stage: this.courseType,
  16535. task: this.taskCount,
  16536. tool: this.toolindex,
  16537. content: JSON.stringify(this.eScore),
  16538. type: 6,
  16539. },
  16540. ];
  16541. this.ajax
  16542. .post(this.$store.state.api + "addCourseWorks", params)
  16543. .then((res) => {
  16544. this.$message({
  16545. message: "提交成功",
  16546. type: "success",
  16547. });
  16548. this.eScore = { eBzText: "", eStar: [] };
  16549. this.studentEvalDialogVisibleTeacher = false;
  16550. this.selectSWorks();
  16551. })
  16552. .catch((err) => {
  16553. this.$message.error("提交失败");
  16554. console.error(err);
  16555. });
  16556. },
  16557. addStudentAsk() {
  16558. if (!this.radio.length) {
  16559. this.$message.error("请选择选项");
  16560. return;
  16561. }
  16562. for (var i = 0; i < this.askJson.askCount; i++) {
  16563. if (
  16564. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16565. (this.radio[i] !== 0 && !this.radio[i])
  16566. ) {
  16567. this.$message.error("请选择选项");
  16568. return;
  16569. }
  16570. }
  16571. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16572. let params = [
  16573. {
  16574. uid: this.userid,
  16575. cid: this.id,
  16576. stage: this.courseType,
  16577. task: this.taskCount,
  16578. tool: this.toolindex,
  16579. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16580. type: 2,
  16581. },
  16582. ];
  16583. this.ajax
  16584. .post(this.$store.state.api + "addCourseWorks", params)
  16585. .then((res) => {
  16586. this.$message({
  16587. message: "提交成功",
  16588. type: "success",
  16589. });
  16590. this.askList = [];
  16591. this.dialogVisible5 = false;
  16592. this.selectStudent();
  16593. this.selectSWorks();
  16594. this.selectSLook();
  16595. })
  16596. .catch((err) => {
  16597. this.$message.error("提交失败");
  16598. console.error(err);
  16599. });
  16600. },
  16601. addStudentAskTeacher() {
  16602. if (!this.radio.length) {
  16603. this.$message.error("请选择选项");
  16604. return;
  16605. }
  16606. for (var i = 0; i < this.askJson.askCount; i++) {
  16607. if (
  16608. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16609. (this.radio[i] !== 0 && !this.radio[i])
  16610. ) {
  16611. this.$message.error("请选择选项");
  16612. return;
  16613. }
  16614. }
  16615. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16616. let params = [
  16617. {
  16618. uid: this.sStudent.userid,
  16619. cid: this.id,
  16620. stage: this.courseType,
  16621. task: this.taskCount,
  16622. tool: this.toolindex,
  16623. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16624. type: 2,
  16625. },
  16626. ];
  16627. this.ajax
  16628. .post(this.$store.state.api + "addCourseWorks", params)
  16629. .then((res) => {
  16630. this.$message({
  16631. message: "提交成功",
  16632. type: "success",
  16633. });
  16634. this.askList = [];
  16635. this.dialogVisible5Teacher = false;
  16636. this.selectStudent();
  16637. this.selectSWorks();
  16638. this.selectSLook();
  16639. })
  16640. .catch((err) => {
  16641. this.$message.error("提交失败");
  16642. console.error(err);
  16643. });
  16644. },
  16645. addStudentTest() {
  16646. if (!this.radio.length) {
  16647. this.$message.error("请选择选项");
  16648. return;
  16649. }
  16650. for (var i = 0; i < this.testJson.testCount; i++) {
  16651. if (
  16652. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16653. (this.radio[i] !== 0 && !this.radio[i])
  16654. ) {
  16655. this.$message.error("请选择选项");
  16656. return;
  16657. }
  16658. }
  16659. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16660. let params = [
  16661. {
  16662. uid: this.userid,
  16663. cid: this.id,
  16664. stage: this.courseType,
  16665. task: this.taskCount,
  16666. tool: this.toolindex,
  16667. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16668. type: 8,
  16669. },
  16670. ];
  16671. this.ajax
  16672. .post(this.$store.state.api + "addCourseWorks", params)
  16673. .then((res) => {
  16674. this.$message({
  16675. message: "提交成功",
  16676. type: "success",
  16677. });
  16678. this.askList = [];
  16679. this.dialogVisibleChoice = false;
  16680. this.selectStudent();
  16681. this.selectSWorks();
  16682. this.selectSLook();
  16683. })
  16684. .catch((err) => {
  16685. this.$message.error("提交失败");
  16686. console.error(err);
  16687. });
  16688. },
  16689. addStudentTestTeacher() {
  16690. if (!this.radio.length) {
  16691. this.$message.error("请选择选项");
  16692. return;
  16693. }
  16694. for (var i = 0; i < this.testJson.testCount; i++) {
  16695. if (
  16696. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16697. (this.radio[i] !== 0 && !this.radio[i])
  16698. ) {
  16699. this.$message.error("请选择选项");
  16700. return;
  16701. }
  16702. }
  16703. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16704. let params = [
  16705. {
  16706. uid: this.sStudent.userid,
  16707. cid: this.id,
  16708. stage: this.courseType,
  16709. task: this.taskCount,
  16710. tool: this.toolindex,
  16711. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16712. type: 8,
  16713. },
  16714. ];
  16715. this.ajax
  16716. .post(this.$store.state.api + "addCourseWorks", params)
  16717. .then((res) => {
  16718. this.$message({
  16719. message: "提交成功",
  16720. type: "success",
  16721. });
  16722. this.askList = [];
  16723. this.dialogVisibleChoiceTeacher = false;
  16724. this.selectStudent();
  16725. this.selectSWorks();
  16726. this.selectSLook();
  16727. })
  16728. .catch((err) => {
  16729. this.$message.error("提交失败");
  16730. console.error(err);
  16731. });
  16732. },
  16733. addWork() {
  16734. if (this.studyJuri[0].content == "") {
  16735. this.$message.error("请将信息填写完整");
  16736. return;
  16737. } else if (this.studyJuri[0].cover.length == 0) {
  16738. this.$message.error("请将信息填写完整");
  16739. return;
  16740. } else if (this.studyJuri[0].upVedio.length == 0) {
  16741. this.$message.error("请将信息填写完整");
  16742. return;
  16743. }
  16744. if (this.isNoHomeWork) {
  16745. this.$confirm(
  16746. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  16747. "提示",
  16748. {
  16749. confirmButtonText: "确定",
  16750. cancelButtonText: "取消",
  16751. type: "warning",
  16752. }
  16753. )
  16754. .then(() => {
  16755. let params = [
  16756. {
  16757. uid: this.userid,
  16758. cid: this.id,
  16759. stage: this.courseType,
  16760. task: this.taskCount,
  16761. content: JSON.stringify(this.studyJuri),
  16762. },
  16763. ];
  16764. this.ajax
  16765. .post(this.$store.state.api + "addWorks", params)
  16766. .then((res) => {
  16767. this.$message({
  16768. message: "提交成功",
  16769. type: "success",
  16770. });
  16771. this.isNoHomeWork = true;
  16772. this.dialogVisible = false;
  16773. })
  16774. .catch((err) => {
  16775. this.$message.error("提交失败");
  16776. console.error(err);
  16777. });
  16778. })
  16779. .catch(() => {});
  16780. } else {
  16781. let params = [
  16782. {
  16783. uid: this.userid,
  16784. cid: this.id,
  16785. stage: this.courseType,
  16786. task: this.taskCount,
  16787. content: JSON.stringify(this.studyJuri),
  16788. },
  16789. ];
  16790. this.ajax
  16791. .post(this.$store.state.api + "addWorks", params)
  16792. .then((res) => {
  16793. this.$message({
  16794. message: "提交成功",
  16795. type: "success",
  16796. });
  16797. this.isNoHomeWork = true;
  16798. this.dialogVisible = false;
  16799. })
  16800. .catch((err) => {
  16801. this.$message.error("提交失败");
  16802. console.error(err);
  16803. });
  16804. }
  16805. },
  16806. selectCount() {
  16807. let params = {
  16808. cid: this.id,
  16809. chid: this.courseType,
  16810. uid: this.userid,
  16811. };
  16812. this.ajax
  16813. .get(this.$store.state.api + "selectToolsCount", params)
  16814. .then((res) => {
  16815. for (var i = 0; i < res.data[0].length; i++) {
  16816. if (res.data[0][i].tools == 1) {
  16817. this.wbCount = res.data[0][i].count;
  16818. } else if (res.data[0][i].tools == 2) {
  16819. this.wordCount = res.data[0][i].count;
  16820. } else if (res.data[0][i].tools == 3) {
  16821. this.mindCount = res.data[0][i].count;
  16822. } else if (res.data[0][i].tools == 4) {
  16823. this.askCount = res.data[0][i].count;
  16824. } else if (res.data[0][i].tools == 6) {
  16825. this.noteCount = res.data[0][i].count;
  16826. } else if (res.data[0][i].tools == 7) {
  16827. this.mindNetWorkCount = res.data[0][i].count;
  16828. } else if (res.data[0][i].tools == 8) {
  16829. this.libraryCount = res.data[0][i].count;
  16830. } else if (res.data[0][i].tools == 16) {
  16831. this.workCount = res.data[0][i].count;
  16832. } else if (res.data[0][i].tools == 10) {
  16833. this.timeCount = res.data[0][i].count;
  16834. } else if (res.data[0][i].tools == 15) {
  16835. this.answerCount = res.data[0][i].count;
  16836. } else if (res.data[0][i].tools == 18) {
  16837. this.trainCount = res.data[0][i].count;
  16838. }
  16839. }
  16840. })
  16841. .catch((err) => {
  16842. console.error(err);
  16843. });
  16844. },
  16845. openTools(t, i, index, c, sName,id) {
  16846. var z = JSON.parse(c);
  16847. this.noteName = sName;
  16848. if (t == 4) {
  16849. this.radio = [];
  16850. this.isAnswer = false;
  16851. let b = z[0].anwer;
  16852. this.radio = b;
  16853. this.askJson = z[0].askJson;
  16854. this.isAnswer = true;
  16855. this.dialogVisible5 = true;
  16856. } else if (t == 45) {
  16857. this.radio = [];
  16858. this.isAnswer = false;
  16859. let b = z[0].anwer;
  16860. this.radio = b;
  16861. this.testJson = z[0].testJson;
  16862. this.isAnswer = true;
  16863. this.dialogVisibleChoice = true;
  16864. }else if(t == 69){
  16865. this.oldEnglishJson1 = {}
  16866. this.oldEnglishJson = {}
  16867. this.englishList1 = {}
  16868. this.newEngIndex = -1;
  16869. this.isNoUserid = false;
  16870. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16871. .toolChoose[i].englishList;
  16872. this.oldEnglishJson = z;
  16873. this.engWid = id;
  16874. this.newEnglishList = { engTitle:"",engText:"" }
  16875. this.newEnglishList1 = []
  16876. this.selectEngC(id,z);
  16877. }
  16878. // else if (t == 15) {
  16879. // this.answerQ = "";
  16880. // this.questionAnswer = "";
  16881. // this.answerQ = z[0].answerTitle;
  16882. // this.questionAnswer = z[0].answer;
  16883. // this.answerDialogVisible = true;
  16884. // }
  16885. },
  16886. fastText(p, t) {
  16887. if (t == 1) {
  16888. this.commentText += p;
  16889. } else {
  16890. this.eScore.eBzText += p;
  16891. }
  16892. },
  16893. addTools(t, i, index) {
  16894. var a = 0;
  16895. // this.taskCount = index;
  16896. this.toolindex = i;
  16897. if (t == 1) {
  16898. if (this.wbCount > 0) {
  16899. this.updateCount(this.wbCount, t);
  16900. } else {
  16901. this.wbCount++;
  16902. a = this.wbCount;
  16903. this.toolsCount(a, t);
  16904. }
  16905. window.parent.postMessage(
  16906. {
  16907. tools: "1",
  16908. cid: this.id,
  16909. stage: this.courseType,
  16910. task: this.taskCount,
  16911. tool: i,
  16912. },
  16913. "*"
  16914. );
  16915. } else if (t == 2) {
  16916. if (this.wordCount > 0) {
  16917. this.updateCount(this.wordCount, t);
  16918. } else {
  16919. this.wordCount++;
  16920. a = this.wordCount;
  16921. this.toolsCount(a, t);
  16922. }
  16923. window.parent.postMessage({ tools: "2" }, "*");
  16924. } else if (t == 3) {
  16925. if (this.mindCount > 0) {
  16926. this.updateCount(this.mindCount, t);
  16927. } else {
  16928. this.mindCount++;
  16929. a = this.mindCount;
  16930. this.toolsCount(a, t);
  16931. }
  16932. window.parent.postMessage(
  16933. {
  16934. tools: "3",
  16935. cid: this.id,
  16936. stage: this.courseType,
  16937. task: this.taskCount,
  16938. tool: i,
  16939. },
  16940. "*"
  16941. );
  16942. } else if (t == 4) {
  16943. this.radio = [];
  16944. this.noteName = "";
  16945. this.isAnswer = false;
  16946. if (this.askCount > 0) {
  16947. this.updateCount(this.askCount, t);
  16948. } else {
  16949. this.askCount++;
  16950. a = this.askCount;
  16951. this.toolsCount(a, t);
  16952. }
  16953. if (!this.dialogVisible2) {
  16954. this.askJson.askJson =
  16955. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16956. index
  16957. ].toolChoose[i].askJson;
  16958. this.askJson.askTitle =
  16959. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16960. index
  16961. ].toolChoose[i].askTitle;
  16962. this.askJson.askCount =
  16963. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16964. index
  16965. ].toolChoose[i].askCount;
  16966. } else {
  16967. this.askJson.askJson = this.chapTools.askJson.askJson;
  16968. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  16969. this.askJson.askCount = this.chapTools.askJson.askCount;
  16970. }
  16971. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16972. if (this.askJson.askJson[k].type == "2") {
  16973. this.radio.push([]);
  16974. } else {
  16975. this.radio.push("");
  16976. }
  16977. }
  16978. this.dialogVisible5 = true;
  16979. // window.parent.postMessage({ tools: "4" }, "*");
  16980. } else if (t == 45) {
  16981. this.noteName = "";
  16982. this.radio = [];
  16983. this.isAnswer = false;
  16984. if (this.askCount > 0) {
  16985. this.updateCount(this.askCount, t);
  16986. } else {
  16987. this.askCount++;
  16988. a = this.askCount;
  16989. this.toolsCount(a, t);
  16990. }
  16991. this.testJson =
  16992. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16993. index
  16994. ].toolChoose[i].testJson;
  16995. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16996. if (this.testJson.testJson[k].type == "2") {
  16997. this.radio.push([]);
  16998. } else {
  16999. this.radio.push("");
  17000. }
  17001. }
  17002. this.dialogVisibleChoice = true;
  17003. // window.parent.postMessage({ tools: "4" }, "*");
  17004. } else if (t == 5) {
  17005. if (this.scoreCount > 0) {
  17006. this.updateCount(this.scoreCount, t);
  17007. } else {
  17008. this.scoreCount++;
  17009. a = this.scoreCount;
  17010. this.toolsCount(a, t);
  17011. }
  17012. this.dialogVisible4 = true;
  17013. // window.parent.postMessage({ tools: "5" }, "*");
  17014. } else if (t == 6) {
  17015. if (this.noteCount > 0) {
  17016. this.updateCount(this.noteCount, t);
  17017. } else {
  17018. this.noteCount++;
  17019. a = this.noteCount;
  17020. this.toolsCount(a, t);
  17021. }
  17022. window.parent.postMessage(
  17023. {
  17024. tools: "6",
  17025. cid: this.id,
  17026. stage: this.courseType,
  17027. task: this.taskCount,
  17028. tool: i,
  17029. },
  17030. "*"
  17031. );
  17032. } else if (t == 7) {
  17033. if (this.mindNetWorkCount > 0) {
  17034. this.updateCount(this.mindNetWorkCount, t);
  17035. } else {
  17036. this.mindNetWorkCount++;
  17037. a = this.mindNetWorkCount;
  17038. this.toolsCount(a, t);
  17039. }
  17040. window.parent.postMessage(
  17041. {
  17042. tools: "7",
  17043. cid: this.id,
  17044. stage: this.courseType,
  17045. task: this.taskCount,
  17046. tool: i,
  17047. },
  17048. "*"
  17049. );
  17050. } else if (t == 16) {
  17051. if (this.workCount > 0) {
  17052. this.updateCount(this.workCount, t);
  17053. } else {
  17054. this.workCount++;
  17055. a = this.workCount;
  17056. this.toolsCount(a, t);
  17057. }
  17058. this.dialogVisible = true;
  17059. } else if (t == 50) {
  17060. if (this.tType == 2) {
  17061. this.$message.error("不支持学生使用");
  17062. return;
  17063. }
  17064. this.plworkFile = [];
  17065. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17066. if (!this.uploadCid) {
  17067. this.$message.error(
  17068. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17069. );
  17070. return;
  17071. }
  17072. // this.uploadCid =
  17073. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17074. // index
  17075. // ].toolChoose[i].uploadJson[0];
  17076. this.selectUploadStudent(2);
  17077. } else if (t == 8) {
  17078. if (this.libraryCount > 0) {
  17079. this.updateCount(this.libraryCount, t);
  17080. } else {
  17081. this.libraryCount++;
  17082. a = this.libraryCount;
  17083. this.toolsCount(a, t);
  17084. }
  17085. window.parent.postMessage({ tools: "8" }, "*");
  17086. } else if (t == 17) {
  17087. if (this.libraryCount > 0) {
  17088. this.updateCount(this.libraryCount, t);
  17089. } else {
  17090. this.libraryCount++;
  17091. a = this.libraryCount;
  17092. this.toolsCount(a, t);
  17093. }
  17094. window.parent.postMessage({ tools: "17" }, "*");
  17095. } else if (t == 18) {
  17096. if (this.trainCount > 0) {
  17097. this.updateCount(this.trainCount, t);
  17098. } else {
  17099. this.trainCount++;
  17100. a = this.trainCount;
  17101. this.toolsCount(a, t);
  17102. }
  17103. window.parent.postMessage({ tools: "18" }, "*");
  17104. } else if (t == 10) {
  17105. if (this.timeCount > 0) {
  17106. this.updateCount(this.timeCount, t);
  17107. } else {
  17108. this.timeCount++;
  17109. a = this.timeCount;
  17110. this.toolsCount(a, t);
  17111. }
  17112. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  17113. .taskJson[index].toolChoose[i].preTime
  17114. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17115. .toolChoose[i].preTime
  17116. : "";
  17117. this.timeDialogVisible = true;
  17118. } else if (t == 15) {
  17119. this.answerQ = "";
  17120. this.questionAnswer = "";
  17121. if (this.answerCount > 0) {
  17122. this.updateCount(this.answerCount, t);
  17123. } else {
  17124. this.answerCount++;
  17125. a = this.answerCount;
  17126. this.toolsCount(a, t);
  17127. }
  17128. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17129. .taskJson[index].toolChoose[i].answerQ
  17130. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17131. .toolChoose[i].answerQ
  17132. : "";
  17133. this.answerDialogVisible = true;
  17134. } else if (t == 21) {
  17135. window.parent.postMessage({ tools: "21" }, "*");
  17136. } else if (t == 22) {
  17137. window.parent.postMessage({ tools: "22" }, "*");
  17138. } else if (t == 23) {
  17139. window.parent.postMessage({ tools: "23" }, "*");
  17140. } else if (t == 24) {
  17141. window.parent.postMessage({ tools: "24" }, "*");
  17142. } else if (t == 25) {
  17143. window.parent.postMessage({ tools: "25" }, "*");
  17144. } else if (t == 31) {
  17145. window.parent.postMessage({ tools: "31" }, "*");
  17146. } else if (t == 28) {
  17147. window.parent.postMessage({ tools: "28" }, "*");
  17148. } else if (t == 37) {
  17149. window.parent.postMessage({ tools: "37" }, "*");
  17150. } else if (t == 38) {
  17151. window.parent.postMessage({ tools: "38" }, "*");
  17152. } else if (t == 39) {
  17153. window.parent.postMessage({ tools: "39" }, "*");
  17154. } else if (t == 32) {
  17155. window.parent.postMessage({ tools: "32" }, "*");
  17156. } else if (t == 66) {
  17157. window.parent.postMessage({ tools: "66" }, "*");
  17158. } else if (t == 67) {
  17159. window.parent.postMessage({ tools: "67" }, "*");
  17160. } else if (t == 68) {
  17161. window.parent.postMessage({ tools: "68" }, "*");
  17162. } else if (t == 57) {
  17163. // window.parent.postMessage({ tools: "57" }, "*");
  17164. window.parent.postMessage(
  17165. {
  17166. tools: "57u",
  17167. cid: this.id,
  17168. stage: this.courseType,
  17169. task: this.taskCount,
  17170. tool: i,
  17171. },
  17172. "*"
  17173. );
  17174. } else if (t == 58) {
  17175. window.parent.postMessage({ tools: "58" }, "*");
  17176. } else if (t == 59) {
  17177. window.parent.postMessage({ tools: "59" }, "*");
  17178. } else if (t == 60) {
  17179. window.parent.postMessage({ tools: "60" }, "*");
  17180. } else if (t == 61) {
  17181. window.parent.postMessage({ tools: "61" }, "*");
  17182. } else if (t == 63) {
  17183. window.parent.postMessage({ tools: "63" }, "*");
  17184. } else if (t == 69) {
  17185. if (this.worksStudent[i].length) {
  17186. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17187. if (this.userid == this.worksStudent[i][k].userid) {
  17188. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  17189. break;
  17190. } else {
  17191. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17192. }
  17193. }
  17194. } else {
  17195. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17196. }
  17197. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  17198. .taskJson[index].toolChoose[i].englishList
  17199. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17200. .toolChoose[i].englishList
  17201. : {};
  17202. this.englishToolIndex = i;
  17203. this.engDialogVisible = true;
  17204. } else if (t == 65) {
  17205. if (this.tType == 2) {
  17206. this.$message.error("不支持学生使用");
  17207. return;
  17208. }
  17209. this.uploadCid = this.tcid;
  17210. if (!this.uploadCid) {
  17211. this.$message.error(
  17212. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  17213. );
  17214. return;
  17215. }
  17216. this.selectPickStudent();
  17217. } else if (t == 26) {
  17218. window.parent.postMessage(
  17219. {
  17220. tools: "26",
  17221. cid: this.id,
  17222. stage: this.courseType,
  17223. task: this.taskCount,
  17224. tool: i,
  17225. },
  17226. "*"
  17227. );
  17228. } else if (t == 40) {
  17229. if (this.evalCount > 0) {
  17230. this.updateCount(this.evalCount, t);
  17231. } else {
  17232. this.evalCount++;
  17233. a = this.evalCount;
  17234. this.toolsCount(a, t);
  17235. }
  17236. this.eScore = { eBzText: "", eStar: [] };
  17237. if (this.worksStudent[i].length) {
  17238. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17239. if (this.userid == this.worksStudent[i][k].userid) {
  17240. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17241. this.rateJson =
  17242. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17243. index
  17244. ].toolChoose[i].rateJson;
  17245. break;
  17246. } else {
  17247. this.rateJson =
  17248. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17249. index
  17250. ].toolChoose[i].rateJson;
  17251. }
  17252. }
  17253. } else {
  17254. this.rateJson =
  17255. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17256. index
  17257. ].toolChoose[i].rateJson;
  17258. }
  17259. this.isStar = false;
  17260. this.studentEvalDialogVisible = true;
  17261. } else if (t == 41) {
  17262. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17263. .taskJson[index].toolChoose[i].selectJson
  17264. ? JSON.parse(
  17265. JSON.stringify(
  17266. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17267. index
  17268. ].toolChoose[i].selectJson
  17269. )
  17270. )
  17271. : { url: "", select: [], answer: [] };
  17272. if (this.worksStudent[i].length) {
  17273. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17274. if (this.userid == this.worksStudent[i][k].userid) {
  17275. var a = this.worksStudent[i][k].works.split(",");
  17276. for (var ki = 0; ki < a.length; ki++) {
  17277. a[ki] = parseInt(a[ki]);
  17278. }
  17279. this.selectAnswer = {
  17280. answer: a,
  17281. stu: this.worksStudent[i][k].sName,
  17282. };
  17283. break;
  17284. } else {
  17285. this.selectAnswer = { answer: [], stu: "" };
  17286. }
  17287. }
  17288. } else {
  17289. this.selectAnswer = { answer: [], stu: "" };
  17290. }
  17291. this.isSelect = false;
  17292. this.dialogVisibleSelect = true;
  17293. } else if (t == 44) {
  17294. window.parent.postMessage({ tools: "44" }, "*");
  17295. } else if (t == 47) {
  17296. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17297. .taskJson[index].toolChoose[i].sentenceList
  17298. ? JSON.parse(
  17299. JSON.stringify(
  17300. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17301. index
  17302. ].toolChoose[i].sentenceList
  17303. )
  17304. )
  17305. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17306. for (var q = 0; q < this.sentenceList.length; q++) {
  17307. this.sentenceList[q].chooseSenList = [];
  17308. this.sentenceList[q].addChangeSen = [];
  17309. this.sentenceList[q].addChangeSen = JSON.parse(
  17310. JSON.stringify(this.sentenceList[q].addSentence)
  17311. );
  17312. this.sentenceList[q].chooseSenList.length =
  17313. this.sentenceList[q].rightAnswer.length;
  17314. }
  17315. this.dialogVisibleSentence = true;
  17316. } else if (t == 48) {
  17317. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17318. .taskJson[index].toolChoose[i].tableJson
  17319. ? JSON.parse(
  17320. JSON.stringify(
  17321. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17322. index
  17323. ].toolChoose[i].tableJson
  17324. )
  17325. )
  17326. : { text: "" };
  17327. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  17328. if (this.worksStudent[i].length) {
  17329. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17330. if (this.userid == this.worksStudent[i][k].userid) {
  17331. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17332. break;
  17333. }
  17334. }
  17335. }
  17336. this.dialogVisibleTable = true;
  17337. } else if (t == 52) {
  17338. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17339. .taskJson[index].toolChoose[i].wordJson
  17340. ? JSON.parse(
  17341. JSON.stringify(
  17342. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17343. index
  17344. ].toolChoose[i].wordJson
  17345. )
  17346. )
  17347. : { text: "" };
  17348. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  17349. if (this.worksStudent[i].length) {
  17350. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17351. if (this.userid == this.worksStudent[i][k].userid) {
  17352. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17353. break;
  17354. }
  17355. }
  17356. }
  17357. this.dialogVisibleWord = true;
  17358. } else if (t == 49) {
  17359. this.groupJson =
  17360. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17361. index
  17362. ].toolChoose[i].groupJson;
  17363. this.islock = this.groupJson.islock == 1 ? true : false;
  17364. this.dialogVisibleGroup = true;
  17365. } else if (t == 62) {
  17366. this.videoJson =
  17367. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17368. index
  17369. ].toolChoose[i].videoJson;
  17370. this.dialogVisibleVideo = true;
  17371. }
  17372. },
  17373. teacherWorkSubmit(t, i, index, s) {
  17374. this.sStudent = s;
  17375. this.toolindex = i;
  17376. this.sTool = t;
  17377. if (this.tType !== "1" && this.tType !== "4") {
  17378. return;
  17379. }
  17380. if (t == 16 || t == 32 || t == 50) {
  17381. this.dialogVisibleWorks = true;
  17382. } else if (t == 15) {
  17383. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17384. .taskJson[index].toolChoose[i].answerQ
  17385. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17386. .toolChoose[i].answerQ
  17387. : "";
  17388. this.questionAnswer = "";
  17389. this.answerDialogVisibleTeacher = true; //问答
  17390. } else if (t == 52) {
  17391. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17392. .taskJson[index].toolChoose[i].wordJson
  17393. ? JSON.parse(
  17394. JSON.stringify(
  17395. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17396. index
  17397. ].toolChoose[i].wordJson
  17398. )
  17399. )
  17400. : { text: "" };
  17401. if (this.worksStudent[i].length) {
  17402. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17403. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17404. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17405. break;
  17406. }
  17407. }
  17408. }
  17409. this.dialogVisibleWordTeacher = true; //文档
  17410. } else if (t == 4) {
  17411. this.radio = [];
  17412. this.noteName = "";
  17413. this.isAnswer = false;
  17414. if (this.askCount > 0) {
  17415. this.updateCount(this.askCount, t);
  17416. } else {
  17417. this.askCount++;
  17418. a = this.askCount;
  17419. this.toolsCount(a, t);
  17420. }
  17421. if (!this.dialogVisible2) {
  17422. this.askJson.askJson =
  17423. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17424. index
  17425. ].toolChoose[i].askJson;
  17426. this.askJson.askTitle =
  17427. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17428. index
  17429. ].toolChoose[i].askTitle;
  17430. this.askJson.askCount =
  17431. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17432. index
  17433. ].toolChoose[i].askCount;
  17434. } else {
  17435. this.askJson.askJson = this.chapTools.askJson.askJson;
  17436. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17437. this.askJson.askCount = this.chapTools.askJson.askCount;
  17438. }
  17439. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17440. if (this.askJson.askJson[k].type == "2") {
  17441. this.radio.push([]);
  17442. } else {
  17443. this.radio.push("");
  17444. }
  17445. }
  17446. this.dialogVisible5Teacher = true;
  17447. } else if (t == 45) {
  17448. this.noteName = "";
  17449. this.radio = [];
  17450. this.isAnswer = false;
  17451. if (this.askCount > 0) {
  17452. this.updateCount(this.askCount, t);
  17453. } else {
  17454. this.askCount++;
  17455. a = this.askCount;
  17456. this.toolsCount(a, t);
  17457. }
  17458. this.testJson =
  17459. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17460. index
  17461. ].toolChoose[i].testJson;
  17462. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17463. if (this.testJson.testJson[k].type == "2") {
  17464. this.radio.push([]);
  17465. } else {
  17466. this.radio.push("");
  17467. }
  17468. }
  17469. this.dialogVisibleChoiceTeacher = true;
  17470. } else if (t == 41) {
  17471. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17472. .taskJson[index].toolChoose[i].selectJson
  17473. ? JSON.parse(
  17474. JSON.stringify(
  17475. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17476. index
  17477. ].toolChoose[i].selectJson
  17478. )
  17479. )
  17480. : { url: "", select: [], answer: [] };
  17481. if (this.worksStudent[i].length) {
  17482. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17483. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17484. var a = this.worksStudent[i][k].works.split(",");
  17485. for (var ki = 0; ki < a.length; ki++) {
  17486. a[ki] = parseInt(a[ki]);
  17487. }
  17488. this.selectAnswer = {
  17489. answer: a,
  17490. stu: this.worksStudent[i][k].sName,
  17491. };
  17492. break;
  17493. } else {
  17494. this.selectAnswer = { answer: [], stu: "" };
  17495. }
  17496. }
  17497. } else {
  17498. this.selectAnswer = { answer: [], stu: "" };
  17499. }
  17500. this.isSelect = false;
  17501. this.dialogVisibleSelectTeacher = true;
  17502. } else if (t == 47) {
  17503. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17504. .taskJson[index].toolChoose[i].sentenceList
  17505. ? JSON.parse(
  17506. JSON.stringify(
  17507. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17508. index
  17509. ].toolChoose[i].sentenceList
  17510. )
  17511. )
  17512. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17513. for (var q = 0; q < this.sentenceList.length; q++) {
  17514. this.sentenceList[q].chooseSenList = [];
  17515. this.sentenceList[q].addChangeSen = [];
  17516. this.sentenceList[q].addChangeSen = JSON.parse(
  17517. JSON.stringify(this.sentenceList[q].addSentence)
  17518. );
  17519. this.sentenceList[q].chooseSenList.length =
  17520. this.sentenceList[q].rightAnswer.length;
  17521. }
  17522. this.dialogVisibleSentenceTeacher = true;
  17523. } else if (t == 48) {
  17524. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17525. .taskJson[index].toolChoose[i].tableJson
  17526. ? JSON.parse(
  17527. JSON.stringify(
  17528. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17529. index
  17530. ].toolChoose[i].tableJson
  17531. )
  17532. )
  17533. : { text: "" };
  17534. if (this.worksStudent[i].length) {
  17535. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17536. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17537. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17538. break;
  17539. }
  17540. }
  17541. }
  17542. this.dialogVisibleTableTeacher = true;
  17543. } else if (t == 40) {
  17544. if (this.evalCount > 0) {
  17545. this.updateCount(this.evalCount, t);
  17546. } else {
  17547. this.evalCount++;
  17548. a = this.evalCount;
  17549. this.toolsCount(a, t);
  17550. }
  17551. this.eScore = { eBzText: "", eStar: [] };
  17552. if (this.worksStudent[i].length) {
  17553. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17554. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17555. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17556. this.rateJson =
  17557. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17558. index
  17559. ].toolChoose[i].rateJson;
  17560. break;
  17561. } else {
  17562. this.rateJson =
  17563. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17564. index
  17565. ].toolChoose[i].rateJson;
  17566. }
  17567. }
  17568. } else {
  17569. this.rateJson =
  17570. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17571. index
  17572. ].toolChoose[i].rateJson;
  17573. }
  17574. this.isStar = false;
  17575. this.studentEvalDialogVisibleTeacher = true;
  17576. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17577. window.parent.postMessage(
  17578. {
  17579. tools: t + "teacher",
  17580. cid: this.id,
  17581. stage: this.courseType,
  17582. task: this.taskCount,
  17583. tool: i,
  17584. student: this.sStudent,
  17585. },
  17586. "*"
  17587. );
  17588. }
  17589. },
  17590. openCocoPi(tool, i, uid, uname) {
  17591. let student = {
  17592. userid: uid,
  17593. student: uname,
  17594. };
  17595. if (tool == 57) {
  17596. window.parent.postMessage(
  17597. {
  17598. tools: tool + "teacher",
  17599. cid: this.id,
  17600. stage: this.courseType,
  17601. task: this.taskCount,
  17602. tool: i,
  17603. student: student,
  17604. },
  17605. "*"
  17606. );
  17607. }
  17608. },
  17609. setRightAnswer(s, i, j) {
  17610. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17611. if (
  17612. this.sentenceList[i].chooseSenList[q] == undefined ||
  17613. this.sentenceList[i].chooseSenList[q] == ""
  17614. ) {
  17615. this.sentenceList[i].chooseSenList[q] = s;
  17616. this.sentenceList[i].addChangeSen[j] = "";
  17617. break;
  17618. }
  17619. }
  17620. this.$forceUpdate();
  17621. },
  17622. returnCard(r, i, j) {
  17623. var a = this.sentenceList[i].addSentence.indexOf(r);
  17624. this.sentenceList[i].chooseSenList[j] = "";
  17625. this.sentenceList[i].addChangeSen[a] = r;
  17626. this.$forceUpdate();
  17627. },
  17628. // addSentenceTool() {
  17629. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17630. // this.taskCount
  17631. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17632. // this.sentenceList = [
  17633. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17634. // ];
  17635. // this.dialogVisibleSentence = false;
  17636. // },
  17637. toolsCount(a, t) {
  17638. let params = {
  17639. cid: this.id,
  17640. chid: this.courseType,
  17641. uid: this.userid,
  17642. tid: t,
  17643. count: a,
  17644. };
  17645. this.ajax
  17646. .get(this.$store.state.api + "insertToolsCount", params)
  17647. .then((res) => {
  17648. this.selectCount();
  17649. })
  17650. .catch((err) => {
  17651. console.error(err);
  17652. });
  17653. },
  17654. updateCount(c, t) {
  17655. c++;
  17656. let params = {
  17657. cid: this.id,
  17658. chid: this.courseType,
  17659. uid: this.userid,
  17660. tid: t,
  17661. count: c,
  17662. };
  17663. this.ajax
  17664. .get(this.$store.state.api + "updateToolsCount", params)
  17665. .then((res) => {
  17666. this.selectCount();
  17667. })
  17668. .catch((err) => {
  17669. console.error(err);
  17670. });
  17671. },
  17672. checkEva() {
  17673. if (this.evalua != "") {
  17674. for (var i = 0; i < this.evaJuri.length; i++) {
  17675. if (this.evalua == this.evaJuri[i].id) {
  17676. this.eTitle = this.evaJuri[i].title;
  17677. this.eJson = JSON.parse(this.evaJuri[i].content);
  17678. }
  17679. }
  17680. this.$forceUpdate();
  17681. setTimeout(() => {
  17682. this.setMindData();
  17683. }, 0);
  17684. }
  17685. },
  17686. selectEva() {
  17687. let params = {
  17688. oid: this.oid,
  17689. };
  17690. this.ajax
  17691. .get(this.$store.state.api + "selectAllEvaluation", params)
  17692. .then((res) => {
  17693. this.evaJuri = res.data[0];
  17694. })
  17695. .catch((err) => {
  17696. console.error(err);
  17697. });
  17698. },
  17699. setMindData() {
  17700. this.data.data = [];
  17701. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  17702. let _eJson = Object.keys(this.eJson);
  17703. let _e = this.eJson;
  17704. for (let i = 0; i < _eJson.length; i++) {
  17705. let element = _e[_eJson[i]];
  17706. this.data.data.push({
  17707. id: element.id,
  17708. parentid: "root",
  17709. topic: element.name,
  17710. });
  17711. let _eJsonc = Object.keys(element.child);
  17712. let _e2 = element.child;
  17713. for (let j = 0; j < _eJsonc.length; j++) {
  17714. let _ec = _e2[_eJsonc[j]];
  17715. this.data.data.push({
  17716. id: _ec.id,
  17717. parentid: element.id,
  17718. topic: _ec.name,
  17719. });
  17720. let _eJsonz = Object.keys(_ec.child);
  17721. let _e3 = _ec.child;
  17722. for (let z = 0; z < _eJsonz.length; z++) {
  17723. let _ez = _e3[_eJsonz[z]];
  17724. this.data.data.push({
  17725. id: _ez.id,
  17726. parentid: _ec.id,
  17727. topic: _ez.name,
  17728. });
  17729. }
  17730. }
  17731. }
  17732. this.$forceUpdate();
  17733. },
  17734. checkFileFull(type, url) {
  17735. this.fullDialogVisible = true;
  17736. this.fulltype = type;
  17737. this.fullUrl = url;
  17738. },
  17739. checkFileFull1(t, f) {
  17740. this.fullDialogVisible = true;
  17741. if (t == 6) {
  17742. this.fulltype = 1;
  17743. this.fullUrl = JSON.parse(JSON.stringify(f));
  17744. } else if (t == 8) {
  17745. this.fulltype = 2;
  17746. this.fullUrl = f.url;
  17747. } else if (
  17748. t == 3 &&
  17749. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17750. "PDF"
  17751. ) {
  17752. this.fulltype = 3;
  17753. this.fullUrl = f.url;
  17754. } else if (t == 3) {
  17755. this.fulltype = 2;
  17756. this.fullUrl =
  17757. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  17758. }
  17759. },
  17760. openSname(n, id, i, uid) {
  17761. this.snameWid = id;
  17762. this.worksSName = n;
  17763. this.worksSid = uid == n ? "" : uid;
  17764. this.toolindex = i;
  17765. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17766. if (!this.uploadCid) {
  17767. this.$message.error(
  17768. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17769. );
  17770. return;
  17771. }
  17772. this.selectUploadStudent(1);
  17773. },
  17774. updateName() {
  17775. let params = {
  17776. n: this.worksSName,
  17777. cid: this.snameWid,
  17778. };
  17779. this.ajax
  17780. .get(this.$store.state.api + "updateCourseWorksName", params)
  17781. .then((res) => {
  17782. this.$message({
  17783. message: "修改成功",
  17784. type: "success",
  17785. });
  17786. this.dialogVisibleSname = false;
  17787. this.getCourseDetail(2);
  17788. this.snameWid = "";
  17789. this.worksSName = "";
  17790. })
  17791. .catch((err) => {
  17792. console.error(err);
  17793. });
  17794. },
  17795. downloadFile2(f) {
  17796. // const loading = this.$loading.service({
  17797. // background: "rgba(255, 255, 255, 0.7)",
  17798. // target: document.body,
  17799. // text: "文件加载中...",
  17800. // });
  17801. // let url2 = f.url;
  17802. // let _url2 = "";
  17803. // if (
  17804. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17805. // ) {
  17806. // _url2 = url2.split(
  17807. // "https://view.officeapps.live.com/op/view.aspx?src="
  17808. // )[1];
  17809. // } else {
  17810. // _url2 = url2;
  17811. // }
  17812. // let params = {
  17813. // url: _url2,
  17814. // name: f.name,
  17815. // };
  17816. // this.ajax
  17817. // .get(this.$store.state.api + "download", params)
  17818. // .then((res) => {
  17819. // loading.close();
  17820. // let content = res.data.data.data;
  17821. // let ab = new ArrayBuffer(content.length);
  17822. // let view = new Uint8Array(ab);
  17823. // for (var i = 0; i < content.length; ++i) {
  17824. // view[i] = content[i];
  17825. // }
  17826. // let elink = document.createElement("a");
  17827. // elink.download = f.name;
  17828. // elink.style.display = "none";
  17829. // let blob = new Blob([ab], {
  17830. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  17831. // });
  17832. // elink.href = URL.createObjectURL(blob);
  17833. // document.body.appendChild(elink);
  17834. // elink.click();
  17835. // document.body.removeChild(elink);
  17836. // })
  17837. // .catch((err) => {
  17838. // loading.close();
  17839. // console.error(err);
  17840. // });
  17841. let url = f.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 loading = _this.$loading.service({
  17854. background: "rgba(255, 255, 255, 0.7)",
  17855. target: document.body,
  17856. text: "文件加载中...",
  17857. });
  17858. let x = new XMLHttpRequest();
  17859. x.open("GET", _url, true);
  17860. x.responseType = "blob";
  17861. x.onload = function () {
  17862. loading.close();
  17863. let url = window.URL.createObjectURL(new Blob([x.response]));
  17864. let a = document.createElement("a");
  17865. a.name = f.name;
  17866. a.href = url;
  17867. a.download = f.name;
  17868. a.click();
  17869. };
  17870. x.send();
  17871. },
  17872. downloadFile(url) {
  17873. let _this = this;
  17874. let _url = "";
  17875. if (
  17876. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17877. ) {
  17878. _url = url.split(
  17879. "https://view.officeapps.live.com/op/view.aspx?src="
  17880. )[1];
  17881. } else {
  17882. _url = url;
  17883. }
  17884. const x = new XMLHttpRequest();
  17885. x.open("GET", _url, true);
  17886. x.responseType = "blob";
  17887. const loading = _this.$loading.service({
  17888. background: "rgba(255, 255, 255, 0.7)",
  17889. target: document.body,
  17890. text: "文件加载中...",
  17891. });
  17892. // _this.$message.success("文件下载中...");
  17893. x.onload = function (e) {
  17894. loading.close();
  17895. let content = x.response;
  17896. let elink = document.createElement("a");
  17897. elink.download = decodeURI(
  17898. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17899. );
  17900. elink.style.display = "none";
  17901. let blob = new Blob([content]);
  17902. elink.href = URL.createObjectURL(blob);
  17903. document.body.appendChild(elink);
  17904. elink.click();
  17905. document.body.removeChild(elink);
  17906. };
  17907. x.send();
  17908. },
  17909. openLine(url) {
  17910. window.open(url);
  17911. },
  17912. resize() {
  17913. if (document.getElementsByClassName("box_course").length) {
  17914. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17915. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17916. if (this.showType == 2 || this.showType == 3) {
  17917. document.getElementsByClassName("navBox")[0].style.height =
  17918. a - 40 + 46 + "px";
  17919. } else {
  17920. document.getElementsByClassName("navBox")[0].style.height =
  17921. a - 40 + "px";
  17922. }
  17923. }
  17924. this.Stbodywidth =
  17925. document.getElementsByClassName("student_body").length &&
  17926. document.getElementsByClassName("student_body")[0].offsetWidth;
  17927. },
  17928. closeDraw() {
  17929. this.bg = null;
  17930. this.drawShow = false;
  17931. },
  17932. showPicturePaint(url) {
  17933. let params = {
  17934. img: url,
  17935. };
  17936. this.ajax
  17937. .get(this.$store.state.api + "imgToBase64", params)
  17938. .then((res) => {
  17939. this.drawShow = true;
  17940. this.bg = res.data[0].img;
  17941. })
  17942. .catch((err) => {
  17943. console.error(err);
  17944. });
  17945. },
  17946. addImgDraw(base64) {
  17947. let file = { name: "批注图.png" };
  17948. let img = this.dataUrlToFile(base64, file);
  17949. this.beforeUpload1(img, 5);
  17950. },
  17951. addImgDrawImG(url) {
  17952. // console.log(url);
  17953. let params = [
  17954. {
  17955. wid: this.commentDetail.wid,
  17956. img: url,
  17957. },
  17958. ];
  17959. this.ajax
  17960. .post(this.$store.state.api + "updateCourseWorks", params)
  17961. .then((res) => {
  17962. this.$message({
  17963. message: "提交成功",
  17964. type: "success",
  17965. });
  17966. this.drawShow = false;
  17967. this.bg = "";
  17968. this.selectSWorks();
  17969. this.selectStudent();
  17970. })
  17971. .catch((err) => {
  17972. this.$message.error("提交失败");
  17973. console.error(err);
  17974. });
  17975. },
  17976. deletePicturePaint() {
  17977. this.$confirm("确定删除此批注吗?", "提示", {
  17978. confirmButtonText: "确定",
  17979. cancelButtonText: "取消",
  17980. type: "warning",
  17981. })
  17982. .then(() => {
  17983. let params = [
  17984. {
  17985. wid: this.commentDetail.wid,
  17986. img: "",
  17987. },
  17988. ];
  17989. this.ajax
  17990. .post(this.$store.state.api + "updateCourseWorks", params)
  17991. .then((res) => {
  17992. this.$message({
  17993. message: "删除成功",
  17994. type: "success",
  17995. });
  17996. this.selectSWorks();
  17997. this.selectStudent();
  17998. })
  17999. .catch((err) => {
  18000. this.$message.error("删除失败");
  18001. console.error(err);
  18002. });
  18003. })
  18004. .catch(() => {});
  18005. },
  18006. getAudioVideo(constraintsData) {
  18007. if (navigator.mediaDevices === undefined) {
  18008. navigator.mediaDevices = {};
  18009. }
  18010. if (navigator.mediaDevices.getUserMedia === undefined) {
  18011. navigator.mediaDevices.getUserMedia = function (constraints) {
  18012. // 首先,如果有getUserMedia的话,就获得它
  18013. var getUserMedia =
  18014. navigator.getUserMedia ||
  18015. navigator.webkitGetUserMedia ||
  18016. navigator.mozGetUserMedia ||
  18017. navigator.msGetUserMedia;
  18018. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  18019. if (!getUserMedia) {
  18020. return Promise.reject({ code: 404 });
  18021. }
  18022. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  18023. return new Promise(function (resolve, reject) {
  18024. getUserMedia.call(navigator, constraints, resolve, reject);
  18025. });
  18026. };
  18027. }
  18028. return navigator.mediaDevices.getUserMedia(constraintsData);
  18029. },
  18030. /**
  18031. * 开始录制
  18032. */
  18033. startRecording(callback) {
  18034. let _function = (screenStream) => {
  18035. this.addStreamStopListener(screenStream, () => {
  18036. console.log("流停止监听");
  18037. this.stopRecording();
  18038. this.$emit("streamStop", {});
  18039. // this.stopRecording();
  18040. });
  18041. var options = {
  18042. type: "video",
  18043. mimeType: "video/webm",
  18044. disableLogs: false,
  18045. getNativeBlob: false, // enable it for longer recordings
  18046. ignoreMutedMedia: false,
  18047. };
  18048. // this.video.srcObject = screenStream;
  18049. this.recorder = RecordRTC(screenStream, options);
  18050. this.recorder.startRecording();
  18051. this.recorder.screen = screenStream;
  18052. this.videoStart = true;
  18053. // callback(true);
  18054. };
  18055. this.getAudioVideo({ audio: true })
  18056. .then((res) => {
  18057. this.captureScreen(_function, true);
  18058. console.log("已点击允许,开启成功");
  18059. })
  18060. .catch((err) => {
  18061. // console.log('浏览器不支持,请更换浏览器')
  18062. // } else {
  18063. this.captureScreen(_function, false);
  18064. console.log("请检查是否存在麦克风");
  18065. });
  18066. },
  18067. /**
  18068. * 停止录制
  18069. */
  18070. stopRecording(callback) {
  18071. this.recorder.stopRecording(() => {
  18072. // this.video.src = this.video.srcObject = null;
  18073. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  18074. const url = URL.createObjectURL(this.recorder.getBlob());
  18075. const a = document.createElement("a"); //this.fileName+
  18076. let videoFile = new File(
  18077. [this.recorder.getBlob()],
  18078. this.courseDetail.title + "录屏.mp4",
  18079. {
  18080. type: "video/mp4",
  18081. }
  18082. );
  18083. let downloadUrl = URL.createObjectURL(videoFile);
  18084. document.body.appendChild(a);
  18085. a.style.display = "none";
  18086. a.href = url;
  18087. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  18088. a.click();
  18089. this.recorder.screen.stop();
  18090. this.recorder.destroy();
  18091. this.recorder = null;
  18092. this.videoStart = false;
  18093. // callback(false);
  18094. });
  18095. },
  18096. //初始化
  18097. captureScreen(callback, type) {
  18098. if (navigator.getDisplayMedia) {
  18099. //录制结束,文件下载
  18100. navigator
  18101. .getDisplayMedia({
  18102. video: true,
  18103. })
  18104. .then((screenStream) => {
  18105. if (type) {
  18106. navigator.mediaDevices
  18107. .getUserMedia({ audio: true })
  18108. .then((mic) => {
  18109. screenStream.addTrack(mic.getTracks()[0]);
  18110. callback(screenStream);
  18111. });
  18112. } else {
  18113. callback(screenStream);
  18114. }
  18115. })
  18116. .catch(function (error) {
  18117. console.log("error", error);
  18118. });
  18119. } else if (navigator.mediaDevices.getDisplayMedia) {
  18120. navigator.mediaDevices
  18121. .getDisplayMedia({
  18122. video: true,
  18123. })
  18124. .then((screenStream) => {
  18125. if (type) {
  18126. navigator.mediaDevices
  18127. .getUserMedia({ audio: true })
  18128. .then((mic) => {
  18129. screenStream.addTrack(mic.getTracks()[0]);
  18130. callback(screenStream);
  18131. });
  18132. } else {
  18133. callback(screenStream);
  18134. }
  18135. })
  18136. .catch(function (error) {
  18137. console.log("error", error);
  18138. });
  18139. } else {
  18140. var error = "getDisplayMedia API are not supported in this browser.";
  18141. console.log("error", error);
  18142. alert(error);
  18143. }
  18144. },
  18145. //流监听
  18146. addStreamStopListener(stream, callback) {
  18147. stream.addEventListener(
  18148. "ended",
  18149. function () {
  18150. callback();
  18151. callback = function () {};
  18152. },
  18153. false
  18154. );
  18155. stream.addEventListener(
  18156. "inactive",
  18157. function () {
  18158. callback();
  18159. callback = function () {};
  18160. },
  18161. false
  18162. );
  18163. stream.getTracks().forEach(function (track) {
  18164. track.addEventListener(
  18165. "ended",
  18166. function () {
  18167. callback();
  18168. callback = function () {};
  18169. },
  18170. false
  18171. );
  18172. track.addEventListener(
  18173. "inactive",
  18174. function () {
  18175. callback();
  18176. callback = function () {};
  18177. },
  18178. false
  18179. );
  18180. });
  18181. },
  18182. updateGroup() {
  18183. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18184. this.dialogVisibleGroup2 = true;
  18185. },
  18186. numberPan() {
  18187. if (
  18188. /[^\d]/.test(this.groupJson.number) ||
  18189. this.groupJson.number < 2 ||
  18190. this.groupJson.number > 10
  18191. ) {
  18192. this.$message.error("请输入2-10的数字");
  18193. this.groupJson.number = "";
  18194. }
  18195. },
  18196. updateGroupJson() {
  18197. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  18198. if (
  18199. this.groupStudentUid[this.toolindex][i].length >
  18200. this.groupJson2.number
  18201. ) {
  18202. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  18203. return;
  18204. }
  18205. }
  18206. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  18207. this.islock = this.groupJson.islock == 1 ? true : false;
  18208. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18209. this.taskCount
  18210. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  18211. let params = [
  18212. {
  18213. cid: this.id,
  18214. chapters: JSON.stringify(this.chapInfoList),
  18215. uid: this.userid,
  18216. unitIndex: this.courseType,
  18217. },
  18218. ];
  18219. this.ajax
  18220. .post(this.$store.state.api + "updateWorkNew4", params)
  18221. .then((res) => {
  18222. this.$message.success("设置成功");
  18223. this.getCourseDetail(2);
  18224. this.dialogVisibleGroup2 = false;
  18225. this.groupJson2 = {};
  18226. this.$forceUpdate();
  18227. })
  18228. .catch((err) => {
  18229. this.$message.error("网络不佳");
  18230. console.error(err);
  18231. });
  18232. },
  18233. lockChair() {
  18234. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18235. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  18236. this.updateGroupJson();
  18237. },
  18238. selectGroup(index) {
  18239. this.getCourseDetail(2, index);
  18240. },
  18241. joinGroup(index) {
  18242. if (this.groupJson.islock == 2) {
  18243. this.$message.error("位置已被锁定,无法加入");
  18244. return;
  18245. }
  18246. if (
  18247. this.groupStudent[this.toolindex][index].length >
  18248. this.groupJson.number ||
  18249. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  18250. ) {
  18251. this.$message.error("位置已满,无法加入");
  18252. return;
  18253. }
  18254. let params = [
  18255. {
  18256. cid: this.id,
  18257. stage: this.courseType,
  18258. task: this.taskCount,
  18259. tool: this.toolindex,
  18260. g: index,
  18261. uid: this.userid,
  18262. },
  18263. ];
  18264. this.ajax
  18265. .post(this.$store.state.api + "joinGroup", params)
  18266. .then((res) => {
  18267. this.$message.success("加入成功");
  18268. this.getCourseDetail(2);
  18269. })
  18270. .catch((err) => {
  18271. this.$message.error("网络不佳");
  18272. console.error(err);
  18273. });
  18274. },
  18275. exitGroup(id) {
  18276. if (this.groupJson.islock == 2) {
  18277. this.$message.error("位置已被锁定,无法退出");
  18278. return;
  18279. }
  18280. let params = [
  18281. {
  18282. gid: id,
  18283. },
  18284. ];
  18285. this.ajax
  18286. .post(this.$store.state.api + "exitGroup", params)
  18287. .then((res) => {
  18288. this.$message.success("退出成功");
  18289. this.getCourseDetail(2);
  18290. })
  18291. .catch((err) => {
  18292. this.$message.error("网络不佳");
  18293. console.error(err);
  18294. });
  18295. },
  18296. groupUpload(index, task, gindex) {
  18297. this.taskCount = task;
  18298. this.toolindex = index;
  18299. this.groupIndex = gindex;
  18300. this.dialogVisibleGroupWork = true;
  18301. },
  18302. updateGroupChair(user) {
  18303. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  18304. el.label = index;
  18305. return index != user.group;
  18306. });
  18307. this.updateGroupUser = user;
  18308. this.dialogVisibleUpdateGroup = true;
  18309. },
  18310. updateChair() {
  18311. if (
  18312. this.groupStudent[this.toolindex][this.checkChair].length >
  18313. this.groupJson.number ||
  18314. this.groupStudent[this.toolindex][this.checkChair].length ==
  18315. this.groupJson.number
  18316. ) {
  18317. this.$message.error("位置已满,无法加入");
  18318. return;
  18319. }
  18320. let params = [
  18321. {
  18322. cid: this.id,
  18323. stage: this.courseType,
  18324. task: this.taskCount,
  18325. tool: this.toolindex,
  18326. g: this.checkChair,
  18327. uid: this.updateGroupUser.userid,
  18328. },
  18329. ];
  18330. this.ajax
  18331. .post(this.$store.state.api + "joinGroup", params)
  18332. .then((res) => {
  18333. this.$message.success("修改成功");
  18334. this.updateGroupUser = {};
  18335. this.checkChair = "";
  18336. this.updateGroupArray = {};
  18337. this.dialogVisibleUpdateGroup = false;
  18338. this.getCourseDetail(2);
  18339. })
  18340. .catch((err) => {
  18341. this.$message.error("网络不佳");
  18342. console.error(err);
  18343. });
  18344. },
  18345. deleteGroupChair(gindex) {
  18346. this.checkDeleteGroup = [];
  18347. this.deleteGroupUser = JSON.parse(
  18348. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  18349. );
  18350. this.deleteGroupArray = this.groupJson.group[gindex];
  18351. this.groupIndex = gindex;
  18352. this.dialogVisibleDeleteGroup = true;
  18353. },
  18354. async deleteChair() {
  18355. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  18356. const gid =
  18357. this.groupStudent[this.toolindex][this.groupIndex][
  18358. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  18359. this.checkDeleteGroup[i]
  18360. )
  18361. ];
  18362. let params = [
  18363. {
  18364. gid: gid.id,
  18365. },
  18366. ];
  18367. var a = await this.deleteChairA(params);
  18368. if (i == this.checkDeleteGroup.length - 1) {
  18369. this.$message.success("退出成功");
  18370. this.dialogVisibleDeleteGroup = false;
  18371. this.deleteGroupUser = [];
  18372. this.deleteGroupArray = {};
  18373. this.groupIndex = "";
  18374. this.checkDeleteGroup = [];
  18375. this.getCourseDetail(2);
  18376. }
  18377. }
  18378. },
  18379. deleteChairA(params) {
  18380. return new Promise((resolve, reject) => {
  18381. this.ajax
  18382. .post(this.$store.state.api + "exitGroup", params)
  18383. .then((res) => {
  18384. resolve(1);
  18385. })
  18386. .catch((err) => {
  18387. this.$message.error("网络不佳");
  18388. console.error(err);
  18389. });
  18390. });
  18391. },
  18392. contract(i) {
  18393. if (this.isCloseList[i].isClose == 0) {
  18394. this.isCloseList[i].isClose = 1;
  18395. } else {
  18396. this.isCloseList[i].isClose = 0;
  18397. }
  18398. this.$forceUpdate();
  18399. },
  18400. openWordCloud(toolindex) {
  18401. let array = [];
  18402. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  18403. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  18404. array.push({ name: works });
  18405. }
  18406. if (this.isGroup) {
  18407. for (var i = 0; i < this.courseGroup.group.length; i++) {
  18408. let works = this.courseGroup.group[i].works[toolindex];
  18409. for (var j = 0; j < works.length; j++) {
  18410. let answer = JSON.parse(works[j].works)[0].answer;
  18411. array.push({ name: answer });
  18412. }
  18413. }
  18414. }
  18415. this.wordCloudData = array;
  18416. this.dialogVisibleWordCloud = true;
  18417. },
  18418. openTips(i) {
  18419. this.tipsIndex = i;
  18420. this.downDialogVisible = true;
  18421. },
  18422. uploadWorks() {
  18423. this.$confirm("确定导出作业吗?", "提示", {
  18424. confirmButtonText: "确定",
  18425. cancelButtonText: "取消",
  18426. type: "warning",
  18427. })
  18428. .then(() => {
  18429. const loading = this.$loading.service({
  18430. background: "rgba(255, 255, 255, 0.7)",
  18431. target: document.body,
  18432. text: "文件加载中...",
  18433. });
  18434. const _worksStudent = this.worksStudent;
  18435. let url = [];
  18436. var counts = {};
  18437. for (var l = 0; l < _worksStudent[i].length; l++) {
  18438. var item = _worksStudent[i][l];
  18439. var name = item.sName;
  18440. if (!counts.hasOwnProperty(name)) {
  18441. counts[name] = 0;
  18442. } else {
  18443. counts[name]++;
  18444. }
  18445. if (counts[name] > 0) {
  18446. item.sName += " (" + counts[name] + ")";
  18447. }
  18448. }
  18449. for (var l = 0; l < _worksStudent[i].length; l++) {
  18450. var item = _worksStudent[i][l];
  18451. if (
  18452. item.works.indexOf(
  18453. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  18454. ) !== -1 &&
  18455. item.works.indexOf("img") === -1
  18456. ) {
  18457. url.push({ name: item.sName, url: item.works });
  18458. }
  18459. }
  18460. // var toolList = [
  18461. // { name: "电子白板", tool: 1 },
  18462. // { name: "思维导图", tool: 3 },
  18463. // { name: "协同文档", tool: 6 },
  18464. // { name: "思维网格", tool: 7 },
  18465. // { name: "素材库", tool: 8 },
  18466. // { name: "学习资料", tool: 17 },
  18467. // { name: "便签", tool: 2 },
  18468. // { name: "问卷调查", tool: 4 },
  18469. // { name: "选择题", tool: 45 },
  18470. // { name: "倒计时", tool: 10 },
  18471. // { name: "问答", tool: 15 },
  18472. // { name: "课程设计", tool: 26 },
  18473. // { name: "训练服务器", tool: 18 },
  18474. // { name: "作业提交", tool: 16 },
  18475. // { name: "批量上传", tool: 50 },
  18476. // { name: "AIoT Blockly", tool: 21 },
  18477. // { name: "AI Python", tool: 23 },
  18478. // { name: "AI Blockly", tool: 24 },
  18479. // { name: "目标管理", tool: 25 },
  18480. // { name: "数学画板", tool: 31 },
  18481. // { name: "翻译", tool: 28 },
  18482. // { name: "魔盒识字", tool: 37 },
  18483. // { name: "数学画板", tool: 31 },
  18484. // { name: "24点", tool: 38 },
  18485. // { name: "GeoGebra", tool: 39 },
  18486. // { name: "源码编辑", tool: 32 },
  18487. // { name: "个人评价", tool: 40 },
  18488. // { name: "选择匹配", tool: 41 },
  18489. // { name: "汉字宫", tool: 44 },
  18490. // { name: "排序", tool: 47 },
  18491. // { name: "表格", tool: 48 },
  18492. // { name: "文档", tool: 52 },
  18493. // { name: "学生分组", tool: 49 },
  18494. // { name: "CocoPi", tool: 57 },
  18495. // { name: "模拟驾驶", tool: 58 },
  18496. // { name: "路径搜索", tool: 59 },
  18497. // { name: "深度学习", tool: 60 },
  18498. // { name: "全历史", tool: 61 },
  18499. // { name: "交互视频", tool: 62 },
  18500. // { name: "海龟编程", tool: 63 },
  18501. // { name: "挑人", tool: 65 },
  18502. // { name: "公式编辑", tool: 66 },
  18503. // { name: "分子结构", tool: 67 },
  18504. // { name: "时间轴", tool: 68 },
  18505. // ];
  18506. // var toolName = "";
  18507. // for(var w = 0;w<toolList.length;w++){
  18508. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  18509. // toolName = toolList[w].name;
  18510. // }
  18511. // }
  18512. console.log(url);
  18513. this.downLoadAll(url, loading);
  18514. })
  18515. .catch(() => {});
  18516. },
  18517. downLoadAll(url, loading) {
  18518. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  18519. const zip = new JSZip();
  18520. const cache = {};
  18521. const promises = [];
  18522. data.forEach((item) => {
  18523. const promise = getFile(item.url).then((data) => {
  18524. if (data.data != 1) {
  18525. // 下载文件, 并存成ArrayBuffer对象
  18526. const file_name =
  18527. item.name +
  18528. "." +
  18529. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  18530. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  18531. cache[file_name] = data.data;
  18532. }
  18533. });
  18534. promises.push(promise);
  18535. });
  18536. Promise.all(promises).then(() => {
  18537. zip.generateAsync({ type: "blob" }).then((content) => {
  18538. // 生成二进制流
  18539. FileSaver.saveAs(
  18540. content,
  18541. this.courseDetail.title + "-" + "作业提交工具.zip"
  18542. ); // 利用file-saver保存文件 自定义文件名
  18543. setTimeout(() => {
  18544. loading.close();
  18545. }, 2000);
  18546. });
  18547. });
  18548. },
  18549. pickStudent(stu) {
  18550. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18551. return;
  18552. }
  18553. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18554. confirmButtonText: "确定",
  18555. cancelButtonText: "取消",
  18556. type: "warning",
  18557. })
  18558. .then(() => {
  18559. let params = [
  18560. {
  18561. uid: stu.userid,
  18562. cid: this.id,
  18563. stage: this.courseType,
  18564. task: this.taskCount,
  18565. tool: this.toolindex,
  18566. },
  18567. ];
  18568. this.ajax
  18569. .post(this.$store.state.api + "updateCoursePick", params)
  18570. .then((res) => {
  18571. this.$message.success("操作成功");
  18572. this.getPick();
  18573. })
  18574. .catch((err) => {
  18575. this.$message.error("网络不佳");
  18576. console.error(err);
  18577. });
  18578. })
  18579. .catch(() => {});
  18580. },
  18581. selectUser(){
  18582. let params = {
  18583. userid: this.userid,
  18584. };
  18585. this.ajax
  18586. .get(this.$store.state.api + "selectUser", params)
  18587. .then((res) => {
  18588. this.userMes = res.data[0];
  18589. })
  18590. .catch((err) => {
  18591. console.error(err);
  18592. });
  18593. },
  18594. setEngText(i){
  18595. this.newEngIndex = i;
  18596. this.$forceUpdate();
  18597. },
  18598. addCorrect(){
  18599. this.$confirm("你确定提交批改嘛?", "提示", {
  18600. confirmButtonText: "确定",
  18601. showCancelButton: false,
  18602. closeOnClickModal: false,
  18603. type: "warning",
  18604. })
  18605. .then(() => {
  18606. let params = {
  18607. cid: this.id,
  18608. s: parseInt(this.courseType),
  18609. t: this.taskCount,
  18610. tool: this.toolindex,
  18611. wid: this.engWid,
  18612. c: this.userid,
  18613. w: (this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length) ? JSON.stringify(this.oldEnglishJson1) : JSON.stringify(this.newEnglishList),
  18614. };
  18615. this.ajax
  18616. .get(this.$store.state.api + "addEngC", params)
  18617. .then((res) => {
  18618. this.$message.success("提交成功");
  18619. this.engUpdateDialogVisible = false;
  18620. })
  18621. .catch((err) => {
  18622. console.error(err);
  18623. });
  18624. })
  18625. .catch(() => {});
  18626. },
  18627. selectEngC(id,z){
  18628. let params = {
  18629. workid: id,
  18630. };
  18631. this.ajax
  18632. .get(this.$store.state.api + "selectEngC", params)
  18633. .then((res) => {
  18634. if(res.data[0].length == 0){
  18635. this.newEnglishList.engTitle = z.engTitle;
  18636. this.newEnglishList.engText = z.engText;
  18637. }else{
  18638. var a = res.data[0];
  18639. if(this.userMes[0].type == 2){
  18640. for(var i = 0;i<a.length;i++){
  18641. if(this.userMes[0].userid == a[i].correct){
  18642. this.newEnglishList = JSON.parse(a[i].cWork);
  18643. }
  18644. }
  18645. }else if(this.userMes[0].type == 1){
  18646. var num = 0;
  18647. for(var w= 0;w<a.length;w++){
  18648. if(this.userMes[0].userid == a[w].correct){
  18649. num = 1;
  18650. }
  18651. }
  18652. if(num == 0){
  18653. this.isNoUserid = true;
  18654. var c = JSON.parse(JSON.stringify(z));
  18655. this.oldEnglishJson1 = c;
  18656. }else{
  18657. this.isNoUserid = false;
  18658. }
  18659. var b = a.sort((item, index) => {
  18660. if (item.correct === this.userMes[0].userid) {
  18661. return -1; // 将a移到前面
  18662. } else if (index.correct === this.userMes[0].userid) {
  18663. return 1; // 将b移到前面
  18664. } else {
  18665. return 0; // 保持默认顺序
  18666. }
  18667. });
  18668. this.newEnglishList1 = b;
  18669. }
  18670. }
  18671. this.engUpdateDialogVisible = true;
  18672. this.$forceUpdate();
  18673. setTimeout(() => {
  18674. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  18675. if(this.newEnglishList1.length > 0){
  18676. if(this.isNoUserid == true){
  18677. this.engListLength = this.newEnglishList1.length + 1;
  18678. this.newEngIndex = -1;
  18679. }else{
  18680. this.engListLength = this.newEnglishList1.length;
  18681. this.newEngIndex = 0;
  18682. }
  18683. }
  18684. }, 500);
  18685. })
  18686. .catch((err) => {
  18687. console.error(err);
  18688. });
  18689. },
  18690. getPick() {
  18691. let params = {
  18692. cid: this.id,
  18693. };
  18694. this.ajax
  18695. .get(this.$store.state.api + "getPick", params)
  18696. .then((res) => {
  18697. let array = [];
  18698. for (var i = 0; i < res.data[0].length; i++) {
  18699. array.push(res.data[0][i].userid);
  18700. }
  18701. this.isPickStudent = array;
  18702. if (array.indexOf(this.userid) !== -1) {
  18703. this.$confirm("你被老师选到啦!", "提示", {
  18704. confirmButtonText: "确定",
  18705. showCancelButton: false,
  18706. closeOnClickModal: false,
  18707. type: "warning",
  18708. })
  18709. .then(() => {
  18710. let pa = [
  18711. {
  18712. uid: this.userid,
  18713. cid: this.id,
  18714. },
  18715. ];
  18716. this.ajax
  18717. .post(this.$store.state.api + "deletePick", pa)
  18718. .then((res) => {
  18719. this.getPick();
  18720. })
  18721. .catch((err) => {
  18722. this.$message.error("网络不佳");
  18723. console.error(err);
  18724. });
  18725. })
  18726. .catch(() => {});
  18727. }
  18728. })
  18729. .catch((err) => {
  18730. this.$message.error("网络不佳");
  18731. console.error(err);
  18732. });
  18733. },
  18734. },
  18735. directives: {
  18736. // 使用局部注册指令的方式
  18737. resize: {
  18738. // 指令的名称
  18739. bind(el, binding) {
  18740. // el为绑定的元素,binding为绑定给指令的对象
  18741. let width = "",
  18742. height = "";
  18743. function isReize() {
  18744. const style = document.defaultView.getComputedStyle(el);
  18745. if (width !== style.width || height !== style.height) {
  18746. binding.value(); // 关键
  18747. }
  18748. width = style.width;
  18749. height = style.height;
  18750. }
  18751. el.__vueSetInterval__ = setInterval(isReize, 300);
  18752. },
  18753. unbind(el) {
  18754. clearInterval(el.__vueSetInterval__);
  18755. },
  18756. },
  18757. },
  18758. beforeDestroy() {
  18759. window.onresize = null;
  18760. clearInterval(this.timer);
  18761. this.timer = null;
  18762. clearInterval(this.opertimer);
  18763. this.opertimer = null;
  18764. },
  18765. computed: {
  18766. getHeight(){
  18767. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  18768. },
  18769. contentConvent() {
  18770. return function (c) {
  18771. return c
  18772. ? c
  18773. .replaceAll(/\r\n/g, "<br/>")
  18774. .replaceAll(/\n/g, "<br/>")
  18775. .replaceAll(/\s/g, " &nbsp")
  18776. : "";
  18777. };
  18778. },
  18779. checkUpload() {
  18780. return function () {
  18781. var studentK = [];
  18782. if (this.plworkFile.length > 0) {
  18783. for (var z = 0; z < this.plworkFile.length; z++) {
  18784. studentK.push(this.plworkFile[z].username);
  18785. }
  18786. studentK = studentK.join(",");
  18787. }
  18788. var a = this.uploadStudentJuri.filter((el) => {
  18789. return studentK.indexOf(el.userid) == -1;
  18790. });
  18791. return a;
  18792. };
  18793. },
  18794. getSName() {
  18795. return function (name) {
  18796. var check = name;
  18797. this.uploadStudentJuri.forEach((el) => {
  18798. if (el.userid == check) {
  18799. check = el.name ? el.name : el.username;
  18800. }
  18801. });
  18802. return check;
  18803. };
  18804. },
  18805. getImgList() {
  18806. return function (val) {
  18807. let srcList = []; // 定义一个数组用来接收后面的img地址
  18808. val.replace(
  18809. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  18810. function (match, capture) {
  18811. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  18812. srcList.push(capture);
  18813. }
  18814. );
  18815. return srcList;
  18816. };
  18817. },
  18818. },
  18819. mounted() {
  18820. document.body.addEventListener("click", (e) => {
  18821. if (this.isUpdateToolDetail1) {
  18822. this.updateToolDetail(this.toolDetailIndex);
  18823. }
  18824. });
  18825. if (this.screenType == 2) {
  18826. window.parent.postMessage({ allScreen: 4 }, "*");
  18827. } else if (this.screenType == 3) {
  18828. window.parent.postMessage({ allScreen: 5 }, "*");
  18829. } else if (this.screenType == 1) {
  18830. window.parent.postMessage({ allScreen: 6 }, "*");
  18831. }
  18832. this.setOperationTime();
  18833. this.selectEva();
  18834. this.getCourseDetail();
  18835. this.selectCount();
  18836. this.getHomeWork();
  18837. this.selectUser();
  18838. this.contentDialog = true;
  18839. this.setContent2(true);
  18840. if (this.tType == 4) {
  18841. this.pzDialog = true;
  18842. this.selectPz();
  18843. }
  18844. document.scrollingElement.scrollTop = 0;
  18845. window.addEventListener("resize", () => {
  18846. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18847. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18848. if (this.showType == 2 || this.showType == 3) {
  18849. document.getElementsByClassName("navBox")[0].style.height =
  18850. a - 40 + 46 + "px";
  18851. } else {
  18852. document.getElementsByClassName("navBox")[0].style.height =
  18853. a - 40 + "px";
  18854. }
  18855. });
  18856. let _this = this;
  18857. setTimeout(() => {
  18858. // _this.vedioTime = [];
  18859. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  18860. // _this.vedioTime[i] = document.getElementsByClassName(
  18861. // "vjs-duration-display"
  18862. // )[i].textContent;
  18863. // }
  18864. }, 1000);
  18865. },
  18866. };
  18867. </script>
  18868. <style scoped>
  18869. @media screen and (max-width: 1280px) {
  18870. /* .courseIndex > div:first-child(2) {
  18871. width: 15% !important;
  18872. } */
  18873. /* .navText {
  18874. width: 120px !important;
  18875. } */
  18876. .evaCss {
  18877. flex-direction: column !important;
  18878. align-items: center !important;
  18879. }
  18880. .elist_input {
  18881. width: 90% !important;
  18882. }
  18883. .dialog_diy1 >>> .el-dialog {
  18884. width: 100% !important;
  18885. }
  18886. .rightWidthCss {
  18887. width: 100% !important;
  18888. }
  18889. .dialog_diy3 >>> .el-dialog {
  18890. width: 100% !important;
  18891. }
  18892. .addToolCss {
  18893. right: 0 !important;
  18894. width: 100% !important;
  18895. min-width: unset !important;
  18896. }
  18897. /* .textTitle >>> .el-form-item__label {
  18898. width: 150px !important;
  18899. } */
  18900. /* .stageItemTitle > div:last-child{
  18901. max-width: 50px;
  18902. } */
  18903. }
  18904. .evaCssMax {
  18905. flex-direction: column !important;
  18906. align-items: center !important;
  18907. }
  18908. .dialog_diy >>> .el-dialog {
  18909. margin-top: 10vh !important;
  18910. }
  18911. .body_student {
  18912. width: 77%;
  18913. height: 100%;
  18914. position: absolute;
  18915. left: 22%;
  18916. top: 0;
  18917. }
  18918. .student_head {
  18919. width: 100%;
  18920. margin: 20px auto 0;
  18921. padding-bottom: 20px;
  18922. display: flex;
  18923. flex-direction: column;
  18924. flex-wrap: nowrap;
  18925. align-items: flex-start;
  18926. justify-content: flex-start;
  18927. }
  18928. .pb_left {
  18929. width: 20%;
  18930. margin-right: 10px;
  18931. background: rgb(255, 255, 255);
  18932. position: fixed;
  18933. height: calc(100% - 40px);
  18934. border-radius: 20px;
  18935. padding-bottom: 15px;
  18936. box-sizing: border-box;
  18937. }
  18938. .wheel > img,
  18939. .project > img,
  18940. .star > img,
  18941. .evaluate > img,
  18942. .up_photo > img,
  18943. .chapter_add > img,
  18944. .deleteWord > img,
  18945. .question > img,
  18946. .homework > img {
  18947. width: 100%;
  18948. height: 100%;
  18949. }
  18950. .upCover > img {
  18951. width: 131px;
  18952. height: 69px;
  18953. object-fit: cover;
  18954. }
  18955. .upCover {
  18956. width: calc(100% / 3.5);
  18957. position: relative;
  18958. margin: 0 15px 10px 0;
  18959. display: flex;
  18960. flex-direction: column;
  18961. flex-wrap: nowrap;
  18962. justify-content: center;
  18963. align-content: center;
  18964. align-items: center;
  18965. height: fit-content;
  18966. }
  18967. .upCover2 {
  18968. width: 100%;
  18969. position: relative;
  18970. margin: 0 15px 10px 0;
  18971. display: flex;
  18972. flex-direction: column;
  18973. flex-wrap: nowrap;
  18974. justify-content: center;
  18975. align-content: center;
  18976. align-items: center;
  18977. }
  18978. .upCover2 > img {
  18979. width: 100%;
  18980. height: 90px;
  18981. object-fit: contain;
  18982. }
  18983. .chapter_add {
  18984. width: 120px;
  18985. position: relative;
  18986. text-align: center;
  18987. }
  18988. .isAddThings {
  18989. margin-top: 20px;
  18990. position: relative;
  18991. text-align: center;
  18992. background: #f7f8fa;
  18993. height: 90px;
  18994. width: 90px;
  18995. display: flex;
  18996. flex-direction: column;
  18997. justify-content: center;
  18998. }
  18999. .deleteWord {
  19000. width: 22px;
  19001. height: 22px;
  19002. position: absolute;
  19003. right: -5px;
  19004. top: -5px;
  19005. cursor: pointer;
  19006. }
  19007. .box_course {
  19008. /* width: 60%; */
  19009. width: calc(100% - 300px);
  19010. }
  19011. .wheel {
  19012. width: 100%;
  19013. /* height: 100%; */
  19014. height: 650px;
  19015. }
  19016. .right_box {
  19017. display: flex;
  19018. flex-direction: column;
  19019. margin-left: 30px;
  19020. justify-content: space-around;
  19021. }
  19022. .right_box_title {
  19023. font-size: 23px;
  19024. }
  19025. .people {
  19026. display: flex;
  19027. }
  19028. .student_body {
  19029. width: 100%;
  19030. margin: 0 auto;
  19031. margin-top: 10px;
  19032. padding: 0 0 20px;
  19033. }
  19034. .study_top {
  19035. margin-top: 100px;
  19036. width: 100%;
  19037. height: auto;
  19038. padding-bottom: 20px;
  19039. }
  19040. .study_top .checkbox {
  19041. display: flex;
  19042. align-items: center;
  19043. padding: 15px 0 15px 30px;
  19044. flex: 0 0 auto;
  19045. font-weight: bold;
  19046. border-bottom: 1px solid #eee;
  19047. }
  19048. .study_top .check {
  19049. padding-bottom: 5px;
  19050. text-align: center;
  19051. cursor: pointer;
  19052. height: 30px;
  19053. box-sizing: border-box;
  19054. display: flex;
  19055. }
  19056. .study_top .checked {
  19057. border-bottom: 4px solid #3fc6a0;
  19058. padding-bottom: 5px;
  19059. color: #3fc6a0;
  19060. display: flex;
  19061. height: 35px;
  19062. }
  19063. .study_top .checked > div,
  19064. .study_top .check > div {
  19065. margin-right: 5px;
  19066. }
  19067. .videoTop {
  19068. display: flex;
  19069. flex-direction: row;
  19070. justify-content: space-between;
  19071. background: #fff;
  19072. align-items: center;
  19073. width: 95%;
  19074. padding: 20px;
  19075. }
  19076. .filebox {
  19077. display: flex;
  19078. flex-wrap: wrap;
  19079. flex-direction: column;
  19080. padding: 0 0 5px;
  19081. position: relative;
  19082. }
  19083. .filebox:before {
  19084. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  19085. position: absolute;
  19086. top: 20px;
  19087. left: 13px;
  19088. border-left: 2px dotted #cad1dc;
  19089. height: calc(100% - 15px);
  19090. }
  19091. .toolHeng2 > div:last-child::before {
  19092. height: calc(100% - 43px);
  19093. }
  19094. .filebox .tooldetail {
  19095. width: calc(100% - 280px);
  19096. margin: 0px 12px;
  19097. padding: 12px 25px 0 13px;
  19098. line-height: 30px;
  19099. word-break: break-word;
  19100. background: #ffffff;
  19101. border-radius: 8px 8px 8px 8px;
  19102. opacity: 1;
  19103. border: 1px solid #cad1dc;
  19104. }
  19105. .file {
  19106. display: flex;
  19107. flex-direction: column;
  19108. align-items: center;
  19109. justify-content: center;
  19110. cursor: pointer;
  19111. width: 200px;
  19112. }
  19113. .file div {
  19114. margin-top: 10px;
  19115. width: 150px;
  19116. text-align: center;
  19117. overflow: hidden;
  19118. white-space: nowrap;
  19119. text-overflow: ellipsis;
  19120. }
  19121. .media {
  19122. display: flex;
  19123. flex-direction: column;
  19124. align-items: center;
  19125. justify-content: center;
  19126. margin: 0 20px 20px 0;
  19127. cursor: pointer;
  19128. margin: 12px 0 5px 15px;
  19129. overflow: hidden;
  19130. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  19131. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  19132. box-sizing: border-box;
  19133. }
  19134. .media img {
  19135. height: 90px;
  19136. width: 160px;
  19137. object-fit: cover;
  19138. }
  19139. .media .title {
  19140. padding: 5px;
  19141. text-align: left;
  19142. width: 100%;
  19143. box-sizing: border-box;
  19144. }
  19145. .media .btn {
  19146. width: 100%;
  19147. height: 35px;
  19148. line-height: 35px;
  19149. color: #fff;
  19150. background: #606060;
  19151. text-align: center;
  19152. overflow: hidden;
  19153. white-space: nowrap;
  19154. text-overflow: ellipsis;
  19155. }
  19156. .detail_content_top {
  19157. width: 100%;
  19158. padding: 25px 0 25px 0;
  19159. }
  19160. .detail_title {
  19161. text-align: center;
  19162. font-size: 24px;
  19163. }
  19164. .detail_time {
  19165. font-size: 13px;
  19166. padding: 15px 0 0 40px;
  19167. }
  19168. .detail_content {
  19169. line-height: 2pc;
  19170. width: 90%;
  19171. margin: 0 auto;
  19172. padding-top: 30px;
  19173. text-indent: 30px;
  19174. overflow: auto;
  19175. height: 200px;
  19176. }
  19177. .score_box >>> .el-rate {
  19178. margin-left: 10px;
  19179. }
  19180. .dialog_change >>> .el-dialog {
  19181. border-radius: 5px;
  19182. }
  19183. .dialog_change >>> .el-dialog__header {
  19184. background: #f2f2f2;
  19185. text-align: center;
  19186. }
  19187. .dialog_change >>> .el-dialog__title {
  19188. line-height: 5px;
  19189. }
  19190. .dialog_change >>> .el-dialog__body {
  19191. background: #fff;
  19192. padding: 10px 20px;
  19193. }
  19194. .score_box {
  19195. display: flex;
  19196. align-items: center;
  19197. margin-bottom: 18px;
  19198. margin-top: 20px;
  19199. }
  19200. .up_photo {
  19201. width: 120px;
  19202. cursor: pointer;
  19203. margin-top: 10px;
  19204. }
  19205. .up_photo2 {
  19206. width: 180px;
  19207. box-sizing: border-box;
  19208. min-width: 180px;
  19209. height: 180px;
  19210. max-height: 180px;
  19211. min-height: 180px;
  19212. cursor: pointer;
  19213. display: flex;
  19214. flex-direction: column;
  19215. align-items: center;
  19216. justify-content: center;
  19217. background: rgb(242, 246, 255);
  19218. /* padding: 25px; */
  19219. margin-bottom: 10px;
  19220. }
  19221. .up_photo2 img {
  19222. width: 50%;
  19223. height: auto;
  19224. }
  19225. .up_photo2 span {
  19226. color: #898989;
  19227. }
  19228. .plworkBox {
  19229. display: flex;
  19230. align-items: center;
  19231. margin-top: 10px;
  19232. flex-wrap: wrap;
  19233. }
  19234. .upload_send {
  19235. margin: 30px auto 30px;
  19236. width: 60%;
  19237. background: #3681fc;
  19238. text-align: center;
  19239. height: 35px;
  19240. line-height: 35px;
  19241. color: #fff;
  19242. border-radius: 5px;
  19243. cursor: pointer;
  19244. }
  19245. .marginT {
  19246. margin-top: 20px;
  19247. }
  19248. .cd_content_steps {
  19249. display: flex;
  19250. width: 90%;
  19251. justify-content: space-around;
  19252. border-top: 1px solid #eeeeee;
  19253. }
  19254. .cd_steps_box {
  19255. display: flex;
  19256. justify-content: center;
  19257. align-items: center;
  19258. flex-direction: column;
  19259. cursor: pointer;
  19260. }
  19261. .first {
  19262. display: flex;
  19263. align-items: center;
  19264. margin: 15px 0 20px 0;
  19265. font-size: 20px;
  19266. }
  19267. .first > div:nth-child(2) {
  19268. font-size: 16px !important;
  19269. padding-left: 10px;
  19270. line-height: 26px;
  19271. box-sizing: border-box;
  19272. }
  19273. .blue_box_one {
  19274. text-align: center;
  19275. color: #fff;
  19276. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  19277. border-radius: 7px;
  19278. margin: 10px;
  19279. cursor: pointer;
  19280. width: 95%;
  19281. height: 45px;
  19282. display: flex;
  19283. flex-direction: row;
  19284. justify-content: flex-start;
  19285. align-items: center;
  19286. }
  19287. .blue_box_one > div:nth-child(1) {
  19288. line-height: 30px;
  19289. margin: 0 5px 0 10px;
  19290. width: 30%;
  19291. min-width: 70px;
  19292. border-radius: 4px;
  19293. }
  19294. .blue_box_one > div:nth-child(2) {
  19295. white-space: nowrap;
  19296. text-overflow: ellipsis;
  19297. overflow: hidden;
  19298. word-break: break-all;
  19299. width: 70%;
  19300. text-align: left;
  19301. margin-right: 10px;
  19302. max-width: calc(100% - 85px);
  19303. }
  19304. .blue_box_one > div:nth-child(2):hover {
  19305. overflow: hidden;
  19306. text-overflow: ellipsis;
  19307. white-space: nowrap;
  19308. cursor: pointer;
  19309. }
  19310. .upFile {
  19311. margin: 0 auto;
  19312. width: 120px;
  19313. background: #3681fc;
  19314. color: #fff;
  19315. height: 30px;
  19316. text-align: center;
  19317. line-height: 30px;
  19318. border-radius: 5px;
  19319. font-size: 14px;
  19320. cursor: pointer;
  19321. }
  19322. .courseTitle {
  19323. width: 85%;
  19324. margin: 10px auto 20px auto;
  19325. display: flex;
  19326. flex-direction: row;
  19327. align-items: center;
  19328. justify-content: space-between;
  19329. text-align: center;
  19330. }
  19331. .courseTitle .ctitle {
  19332. font-size: 20px;
  19333. font-weight: bold;
  19334. color: #0e1e33;
  19335. white-space: nowrap;
  19336. overflow: hidden;
  19337. text-overflow: ellipsis;
  19338. }
  19339. .inviteBox {
  19340. font-size: 14px;
  19341. margin-top: 5px;
  19342. color: #a6cbff;
  19343. text-align: center;
  19344. }
  19345. .courseTitle >>> .el-tooltip {
  19346. width: 100%;
  19347. white-space: nowrap;
  19348. overflow: hidden;
  19349. text-overflow: ellipsis;
  19350. word-break: break-word;
  19351. }
  19352. .ml {
  19353. margin-left: 20px;
  19354. color: #5b7dba;
  19355. border-left: 3px solid #5b7dba;
  19356. padding-left: 5px;
  19357. font-weight: bold;
  19358. }
  19359. .return {
  19360. width: 2rem;
  19361. height: 2rem;
  19362. cursor: pointer;
  19363. }
  19364. .return > img {
  19365. width: 100%;
  19366. height: 100%;
  19367. }
  19368. .returnBtn {
  19369. width: 86px;
  19370. height: 36px;
  19371. background: #3681fc;
  19372. border-radius: 4px;
  19373. color: #fff;
  19374. text-align: center;
  19375. line-height: 36px;
  19376. margin-right: 20px;
  19377. cursor: pointer;
  19378. font-size: 14px;
  19379. font-weight: 400;
  19380. display: flex;
  19381. flex-direction: row;
  19382. flex-wrap: nowrap;
  19383. align-items: center;
  19384. justify-content: center;
  19385. }
  19386. .reBtnIcon,
  19387. .commentIcon,
  19388. .vedioIcon,
  19389. .vedioIcon1 {
  19390. /* width: 36px; */
  19391. height: 36px;
  19392. border-radius: 4px;
  19393. position: relative;
  19394. /* background: #e0eafb; */
  19395. background: #0061ff;
  19396. cursor: pointer;
  19397. margin-right: 12px;
  19398. display: flex;
  19399. align-items: center;
  19400. padding: 0 10px;
  19401. box-sizing: border-box;
  19402. font-size: 14px;
  19403. color: #fff;
  19404. }
  19405. .reBtnIcon::before,
  19406. .commentIcon::before,
  19407. .vedioIcon::before,
  19408. .vedioIcon1::before {
  19409. content: "";
  19410. display: block;
  19411. background-size: 100% 100%;
  19412. background-repeat: no-repeat;
  19413. width: 20px;
  19414. height: 20px;
  19415. margin-right: 5px;
  19416. /* position: absolute; */
  19417. /* top: 8px;
  19418. left: 8px; */
  19419. }
  19420. .vedioIcon1 {
  19421. background: #f63564;
  19422. }
  19423. .reBtnIcon::before {
  19424. background-image: url("../../assets/icon/newIcons/refresh.png");
  19425. }
  19426. .commentIcon::before {
  19427. background-image: url("../../assets/icon/newIcons/comment.png");
  19428. }
  19429. .vedioIcon::before {
  19430. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19431. }
  19432. .vedioIcon1::before {
  19433. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  19434. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19435. }
  19436. .tool {
  19437. display: flex;
  19438. flex-direction: column;
  19439. flex-wrap: nowrap;
  19440. width: 13%;
  19441. margin: 0 30px;
  19442. align-items: center;
  19443. position: relative;
  19444. padding: 10px 25px;
  19445. cursor: pointer;
  19446. }
  19447. .whiteBIcon {
  19448. width: 150px;
  19449. }
  19450. .whiteBIcon > img {
  19451. width: 100%;
  19452. height: 100%;
  19453. }
  19454. .mask {
  19455. background-color: rgba(0, 0, 0, 0);
  19456. position: fixed;
  19457. top: 0;
  19458. left: 0;
  19459. width: 100%;
  19460. height: 100%;
  19461. z-index: 20000;
  19462. display: flex;
  19463. align-items: center;
  19464. justify-content: center;
  19465. }
  19466. .progressBox {
  19467. width: 500px;
  19468. height: 180px;
  19469. background: #fff;
  19470. border-radius: 10px;
  19471. box-shadow: 0 0 6px 1px #bfbfbf;
  19472. display: flex;
  19473. align-items: center;
  19474. justify-content: center;
  19475. flex-direction: column;
  19476. position: relative;
  19477. color: #6c6c6c;
  19478. }
  19479. .progressBox >>> .el-progress-bar__outer {
  19480. background-color: #d1dfff !important;
  19481. }
  19482. .progressBox .lbox {
  19483. height: 50px;
  19484. font-size: 19px;
  19485. display: flex;
  19486. align-items: center;
  19487. color: #747474;
  19488. }
  19489. .progressBox .lbox img {
  19490. width: 40px;
  19491. margin-right: 20px;
  19492. }
  19493. .closeCss {
  19494. position: absolute;
  19495. top: 8px;
  19496. right: 8px;
  19497. cursor: pointer;
  19498. width: 20px;
  19499. height: 20px;
  19500. }
  19501. .closeCss > img {
  19502. width: 100%;
  19503. height: 100%;
  19504. }
  19505. .uploadVedio {
  19506. display: flex;
  19507. flex-direction: column;
  19508. flex-wrap: nowrap;
  19509. justify-content: center;
  19510. align-items: center;
  19511. margin: 0 15px 10px 0;
  19512. }
  19513. .uploadVedio > img {
  19514. width: 30px;
  19515. height: 30px;
  19516. }
  19517. .uploadVedio > span {
  19518. white-space: nowrap;
  19519. overflow: hidden;
  19520. text-overflow: ellipsis;
  19521. width: 75px;
  19522. margin-top: 7px;
  19523. }
  19524. .picName {
  19525. white-space: nowrap;
  19526. overflow: hidden;
  19527. text-overflow: ellipsis;
  19528. width: 75px;
  19529. margin-top: 7px;
  19530. }
  19531. .new_top {
  19532. display: flex;
  19533. background: #fff;
  19534. flex-direction: row;
  19535. justify-content: flex-start;
  19536. align-items: center;
  19537. height: 60px;
  19538. position: fixed;
  19539. top: 20px;
  19540. left: 22%;
  19541. width: 77%;
  19542. z-index: 999;
  19543. border-radius: 12px 12px 0 0;
  19544. border-bottom: 1px solid #cad1dc;
  19545. padding: 10px 0;
  19546. }
  19547. .new_topFixed {
  19548. width: 100%;
  19549. height: 40px;
  19550. position: fixed;
  19551. top: 0px;
  19552. display: block;
  19553. background: #f2f2f2;
  19554. z-index: 998;
  19555. }
  19556. .before {
  19557. position: absolute;
  19558. background: #c3dad4;
  19559. width: 6px;
  19560. height: 100%;
  19561. }
  19562. .courseIndex {
  19563. display: flex;
  19564. flex-direction: row;
  19565. align-items: center;
  19566. width: calc(100% - 745px);
  19567. }
  19568. .courseIndex > div:nth-child(1) {
  19569. margin: 0 0 0 10px;
  19570. font-size: 20px;
  19571. min-width: 100px;
  19572. font-weight: bold;
  19573. border-left: 4px solid #3363b9;
  19574. height: 32px;
  19575. text-align: center;
  19576. line-height: 35px;
  19577. }
  19578. .courseIndex > div:nth-child(2) {
  19579. font-size: 20px;
  19580. /* width: 300px; */
  19581. max-width: calc(100% - 105px);
  19582. white-space: nowrap;
  19583. overflow: hidden;
  19584. text-overflow: ellipsis;
  19585. }
  19586. .courseIndex > div:nth-child(3) {
  19587. border-bottom: 1px solid #d7d7d7;
  19588. padding-bottom: 5px;
  19589. background: #3681fc;
  19590. width: 55px;
  19591. min-width: 55px;
  19592. border-radius: 5px;
  19593. color: #fff;
  19594. text-align: center;
  19595. height: 20px;
  19596. line-height: 26px;
  19597. font-size: 14px;
  19598. margin: 0 0 0 10px;
  19599. }
  19600. .course_text {
  19601. padding: 20px 0 0 15px;
  19602. text-indent: 30px;
  19603. width: 80%;
  19604. min-height: 20px;
  19605. }
  19606. .vedioList {
  19607. background: #f2f2f2;
  19608. border: 1px solid #ececec;
  19609. /* width: 38.8%; */
  19610. width: 300px;
  19611. height: 445px;
  19612. border-radius: 10px;
  19613. overflow: hidden;
  19614. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  19615. }
  19616. .vedioNav {
  19617. margin: 10px 0 0 15px;
  19618. border-bottom: 1px solid #d7d7d7;
  19619. padding-bottom: 5px;
  19620. background: #3681fc;
  19621. width: 55px;
  19622. min-width: 55px;
  19623. border-radius: 5px;
  19624. color: #fff;
  19625. text-align: center;
  19626. height: 20px;
  19627. line-height: 26px;
  19628. font-size: 14px;
  19629. }
  19630. .queTop {
  19631. display: flex;
  19632. padding: 20px 0 20px 30px;
  19633. width: 100%;
  19634. flex-direction: row;
  19635. justify-content: flex-start;
  19636. align-items: center;
  19637. box-sizing: border-box;
  19638. }
  19639. .queTopTitle {
  19640. display: flex;
  19641. flex-direction: row;
  19642. flex-wrap: nowrap;
  19643. align-items: center;
  19644. font-weight: bold;
  19645. font-size: 20px;
  19646. color: rgb(14, 30, 51);
  19647. }
  19648. .queTopTitle::before {
  19649. content: "";
  19650. width: 2px;
  19651. height: 22px;
  19652. background: #3681fc;
  19653. border-radius: 3px;
  19654. display: block;
  19655. margin: 2px 6px 0 0;
  19656. }
  19657. .queTopRight {
  19658. display: flex;
  19659. flex-direction: row;
  19660. flex-wrap: nowrap;
  19661. align-items: center;
  19662. }
  19663. .queTopClose {
  19664. margin-right: 20px;
  19665. cursor: pointer;
  19666. position: relative;
  19667. display: flex;
  19668. }
  19669. .closeImg,
  19670. .openImg {
  19671. width: 25px;
  19672. height: 25px;
  19673. position: absolute;
  19674. left: -20px;
  19675. top: -1px;
  19676. }
  19677. .closeImg > img,
  19678. .openImg > img {
  19679. width: 100%;
  19680. height: 100%;
  19681. }
  19682. .question {
  19683. width: 40px;
  19684. margin-right: 10px;
  19685. margin-top: 7px;
  19686. }
  19687. .queTitle {
  19688. margin-left: 5px;
  19689. font-size: 25px;
  19690. display: flex;
  19691. align-items: center;
  19692. }
  19693. .addEditor {
  19694. width: 100px;
  19695. height: 30px;
  19696. background: #42cda6;
  19697. color: #fff;
  19698. border-radius: 5px;
  19699. text-align: center;
  19700. line-height: 30px;
  19701. box-shadow: 1px 3px 6px 1px #bfbfbf;
  19702. cursor: pointer;
  19703. }
  19704. /* .vedioName {
  19705. cursor: pointer;
  19706. margin: 0px 0px 10px 5px;
  19707. white-space: nowrap;
  19708. overflow: hidden;
  19709. text-overflow: ellipsis;
  19710. width: 100%;
  19711. } */
  19712. .vedioTime {
  19713. width: 35px;
  19714. position: absolute;
  19715. color: #fff;
  19716. bottom: 0px;
  19717. right: 0px;
  19718. text-align: center;
  19719. background: #46411f;
  19720. height: 20px;
  19721. font-size: 14px;
  19722. line-height: 20px;
  19723. }
  19724. .homework {
  19725. width: 200px;
  19726. display: flex;
  19727. flex-direction: column;
  19728. flex-wrap: nowrap;
  19729. align-items: center;
  19730. cursor: pointer;
  19731. }
  19732. .homebox {
  19733. display: flex;
  19734. flex-wrap: wrap;
  19735. flex-direction: row;
  19736. justify-content: flex-start;
  19737. align-items: center;
  19738. padding: 15px 0;
  19739. }
  19740. .isChooseActive {
  19741. color: #3681fc !important;
  19742. font-weight: bold !important;
  19743. }
  19744. .chooseWho {
  19745. display: flex;
  19746. width: 100%;
  19747. flex-direction: row;
  19748. flex-wrap: nowrap;
  19749. justify-content: flex-start;
  19750. padding-bottom: 10px;
  19751. }
  19752. .chooseWho > div {
  19753. cursor: pointer;
  19754. padding-bottom: 10px;
  19755. margin: 0 30px 0 0;
  19756. font-weight: 400;
  19757. color: #0e1e33;
  19758. }
  19759. .addPoint > div > img {
  19760. cursor: pointer;
  19761. width: 85px;
  19762. border-radius: 15px;
  19763. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  19764. }
  19765. .addPoint > div {
  19766. display: flex;
  19767. flex-direction: column;
  19768. flex-wrap: nowrap;
  19769. align-items: center;
  19770. }
  19771. .isBorder > div {
  19772. margin: 0 0 10px 0;
  19773. align-items: flex-start !important;
  19774. }
  19775. .noiframeBox {
  19776. display: flex;
  19777. flex-wrap: wrap;
  19778. }
  19779. .iframeBox iframe {
  19780. width: 100%;
  19781. height: 800px;
  19782. border: none;
  19783. margin-bottom: 20px;
  19784. border: 1px solid #ccc;
  19785. }
  19786. .upload_toolBtn {
  19787. background: #3681fc;
  19788. color: #fff;
  19789. width: 110px;
  19790. text-align: center;
  19791. height: 35px;
  19792. line-height: 35px;
  19793. font-size: 14px;
  19794. border-radius: 5px;
  19795. cursor: pointer;
  19796. position: absolute;
  19797. right: 10px;
  19798. bottom: 0;
  19799. }
  19800. .binfo_input,
  19801. .pj {
  19802. font: inherit;
  19803. color: currentColor;
  19804. width: 100%;
  19805. margin: 0;
  19806. padding: 15px 14px;
  19807. display: block;
  19808. min-width: 0;
  19809. outline: none;
  19810. box-sizing: content-box;
  19811. background: none;
  19812. -webkit-tap-highlight-color: transparent;
  19813. border: 1px solid rgba(0, 0, 0, 0.23);
  19814. border-radius: 4px;
  19815. box-sizing: border-box;
  19816. resize: none;
  19817. }
  19818. .binfo_input:focus-visible {
  19819. border: 1px solid rgba(61, 103, 188);
  19820. }
  19821. .dialog_diy >>> .el-dialog__header,
  19822. .dialog_diy1 >>> .el-dialog__header {
  19823. background: #454545 !important;
  19824. padding: 15px 20px;
  19825. }
  19826. .dialog_diy >>> .el-dialog__title,
  19827. .dialog_diy1 >>> .el-dialog__title {
  19828. color: #fff;
  19829. }
  19830. .dialog_diy >>> .el-dialog__headerbtn,
  19831. .dialog_diy1 >>> .el-dialog__headerbtn {
  19832. top: 19px;
  19833. }
  19834. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  19835. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  19836. color: #fff;
  19837. }
  19838. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  19839. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  19840. color: #fff;
  19841. }
  19842. .dialog_diy1 >>> .el-dialog__body {
  19843. padding: 0;
  19844. }
  19845. .dialog_diy >>> .el-dialog__body,
  19846. .dialog_diy >>> .el-dialog__footer,
  19847. .dialog_diy1 >>> .el-dialog__footer {
  19848. background: #fafafa;
  19849. }
  19850. .a_addBox {
  19851. padding: 0 0 0 15px;
  19852. }
  19853. .a_add_box {
  19854. padding: 10px;
  19855. background: #fff;
  19856. margin-bottom: 10px;
  19857. border-radius: 5px;
  19858. box-shadow: 0 0 5px 0 #d5d5d5;
  19859. }
  19860. .a_add_head {
  19861. display: flex;
  19862. align-items: flex-start;
  19863. /* justify-content: space-between; */
  19864. flex-direction: column;
  19865. /* flex-direction: row; */
  19866. margin: 10px 0 20px 0;
  19867. font-size: 18px;
  19868. width: 100%;
  19869. }
  19870. .askIndex {
  19871. background: #3681fc;
  19872. border-radius: 50%;
  19873. color: #fff;
  19874. width: 25px;
  19875. height: 25px;
  19876. min-width: 25px;
  19877. min-height: 25px;
  19878. text-align: center;
  19879. line-height: 25px;
  19880. margin-right: 5px;
  19881. }
  19882. .a_add_head .a_add_head_input {
  19883. width: 300px;
  19884. }
  19885. .a_add_head .a_add_head_div {
  19886. display: flex;
  19887. align-items: center;
  19888. justify-content: space-between;
  19889. }
  19890. .a_add_body {
  19891. display: flex;
  19892. align-items: center;
  19893. }
  19894. .a_add_input {
  19895. display: flex;
  19896. align-items: center;
  19897. flex-wrap: wrap;
  19898. width: 100%;
  19899. }
  19900. .a_add_input >>> .el-radio-group,
  19901. .a_add_input >>> .el-checkbox-group {
  19902. width: 100%;
  19903. }
  19904. .a_add_input >>> .el-radio,
  19905. .a_add_input >>> .el-checkbox {
  19906. display: flex;
  19907. flex-direction: row;
  19908. flex-wrap: nowrap;
  19909. align-items: center;
  19910. padding: 15px 0;
  19911. }
  19912. .a_add_input >>> .el-radio:not(:last-child),
  19913. .a_add_input >>> .el-checkbox:not(:last-child) {
  19914. width: 100%;
  19915. border-bottom: 1px solid #efefef;
  19916. }
  19917. .redioStyle >>> .el-radio__label {
  19918. font-size: 18px;
  19919. }
  19920. .redioStyle >>> .el-radio__label > span,
  19921. .redioStyle >>> .el-checkbox__label > span {
  19922. word-break: break-all;
  19923. white-space: normal;
  19924. }
  19925. .redioStyle >>> .el-checkbox__label {
  19926. font-size: 18px;
  19927. }
  19928. .toolHeng2 {
  19929. width: 100%;
  19930. padding-left: 37px;
  19931. box-sizing: border-box;
  19932. }
  19933. .workNav {
  19934. font-size: 20px;
  19935. font-weight: bold;
  19936. color: #0e1e33;
  19937. display: flex;
  19938. flex-direction: row;
  19939. flex-wrap: nowrap;
  19940. align-items: center;
  19941. padding: 15px 0 15px 0;
  19942. }
  19943. .workNav::before {
  19944. content: "";
  19945. width: 2px;
  19946. height: 22px;
  19947. background: #3681fc;
  19948. border-radius: 3px;
  19949. display: block;
  19950. margin: 2px 6px 0 0;
  19951. }
  19952. .toolHeng {
  19953. display: flex;
  19954. flex-direction: row;
  19955. flex-wrap: wrap;
  19956. justify-content: flex-start;
  19957. align-items: center;
  19958. width: 100%;
  19959. }
  19960. .toolHeng > div {
  19961. padding-left: 20px;
  19962. }
  19963. .isWidth {
  19964. width: 20%;
  19965. }
  19966. .textTitle {
  19967. display: flex;
  19968. flex-direction: row;
  19969. flex-wrap: nowrap;
  19970. align-items: center;
  19971. width: 95%;
  19972. }
  19973. .textTitle >>> .el-form-item__label {
  19974. font-size: 22px;
  19975. color: #918f8f;
  19976. width: 100px;
  19977. }
  19978. .textTitle >>> .el-form-item__content {
  19979. width: calc(100% - 100px);
  19980. }
  19981. .textCss >>> .el-dialog {
  19982. width: 800px !important;
  19983. height: 400px;
  19984. background: #fafafa;
  19985. }
  19986. .textCss >>> .el-dialog__body {
  19987. margin: 55px 8% 0 8%;
  19988. padding: 0 !important;
  19989. }
  19990. .textCss >>> .el-dialog__footer {
  19991. padding-top: 38px;
  19992. }
  19993. .toolsCss >>> .el-dialog__body {
  19994. padding: 20px;
  19995. }
  19996. .lineCss >>> .el-dialog__body {
  19997. display: flex;
  19998. flex-direction: row;
  19999. align-items: center;
  20000. justify-content: center;
  20001. }
  20002. .newNav {
  20003. display: flex;
  20004. flex-direction: row;
  20005. align-items: baseline;
  20006. justify-content: flex-start;
  20007. }
  20008. .navListItem {
  20009. width: 280px;
  20010. height: 50px;
  20011. margin: 0px auto 10px;
  20012. display: flex;
  20013. flex-direction: row;
  20014. flex-wrap: nowrap;
  20015. align-items: center;
  20016. justify-content: space-between;
  20017. background: #f0f4fa;
  20018. border-radius: 6px 6px 6px 6px;
  20019. }
  20020. .navText {
  20021. cursor: pointer;
  20022. white-space: nowrap;
  20023. overflow: hidden;
  20024. text-overflow: ellipsis;
  20025. width: 220px;
  20026. padding: 0 10px;
  20027. font-weight: 400;
  20028. color: #0e1e33;
  20029. }
  20030. .downIcon {
  20031. width: 20px;
  20032. min-width: 20px;
  20033. height: 20px;
  20034. margin-right: 15px;
  20035. cursor: pointer;
  20036. }
  20037. .downIcon > img {
  20038. width: 100%;
  20039. height: 100%;
  20040. }
  20041. .noVedio {
  20042. display: flex;
  20043. flex-direction: row;
  20044. justify-content: center;
  20045. align-content: center;
  20046. }
  20047. .noNavText {
  20048. cursor: pointer;
  20049. margin: 0px 0px 10px 5px;
  20050. width: 112px;
  20051. }
  20052. .listNoVedio {
  20053. margin: 0 0 0 30px;
  20054. width: 97%;
  20055. }
  20056. .video-player >>> .video-js {
  20057. height: 100%;
  20058. }
  20059. .hangVedioList {
  20060. width: 90% !important;
  20061. height: 150px !important;
  20062. margin: 20px 0 0 30px;
  20063. }
  20064. .hangVedio {
  20065. width: 100%;
  20066. height: 170px !important;
  20067. align-items: flex-start !important;
  20068. }
  20069. .hangHand {
  20070. height: 150px !important;
  20071. }
  20072. .twoChild {
  20073. width: 95%;
  20074. margin: 10px;
  20075. border-radius: 5px;
  20076. background: #f2f2f2;
  20077. display: flex;
  20078. flex-direction: column;
  20079. flex-wrap: nowrap;
  20080. justify-content: flex-start;
  20081. align-items: flex-start;
  20082. transition: all 0.5s;
  20083. overflow: hidden;
  20084. height: 0;
  20085. background: #e7f3ff;
  20086. }
  20087. .twoChild > div:nth-child(1) {
  20088. margin-top: 5px;
  20089. }
  20090. .navChild {
  20091. width: 100%;
  20092. cursor: pointer;
  20093. margin-bottom: 10px;
  20094. position: relative;
  20095. }
  20096. .navChild img {
  20097. position: absolute;
  20098. right: 11px;
  20099. width: 15px;
  20100. top: 50%;
  20101. transform: translateY(-50%);
  20102. }
  20103. .navActive,
  20104. .toolActive {
  20105. height: auto !important;
  20106. overflow: auto !important;
  20107. /* // padding-bottom: 16px; */
  20108. }
  20109. .toolActive {
  20110. padding: 0;
  20111. }
  20112. .navTask {
  20113. display: flex;
  20114. flex-direction: row;
  20115. flex-wrap: nowrap;
  20116. align-items: center;
  20117. align-content: flex-start;
  20118. height: 40px;
  20119. justify-content: flex-start;
  20120. padding: 0 10px;
  20121. width: 100%;
  20122. box-sizing: border-box;
  20123. }
  20124. .navTaskname {
  20125. white-space: nowrap;
  20126. text-overflow: ellipsis;
  20127. overflow: hidden;
  20128. word-break: break-all;
  20129. padding-left: 5px;
  20130. }
  20131. .openTaskActive {
  20132. background-color: #e0eafb !important;
  20133. color: #0061ff;
  20134. }
  20135. .iframeName {
  20136. margin: 5px 0;
  20137. border-left: 4px solid #41c4a4;
  20138. padding-left: 4px;
  20139. }
  20140. .toolTitle {
  20141. margin: 0px 0px 20px;
  20142. font-size: 20px;
  20143. font-weight: 500;
  20144. border-left: 4px solid #41c4a4;
  20145. padding-left: 4px;
  20146. }
  20147. .cru_selectBox {
  20148. overflow: auto;
  20149. width: 95%;
  20150. margin: 17px auto 0;
  20151. height: calc(100% - 40px - 21px - 20px - 17px);
  20152. background: #fff;
  20153. border-radius: 8px;
  20154. }
  20155. .cru_selectBox::-webkit-scrollbar,
  20156. .study_top::-webkit-scrollbar,
  20157. .textContent::-webkit-scrollbar {
  20158. /*滚动条整体样式*/
  20159. width: 6px;
  20160. /*高宽分别对应横竖滚动条的尺寸*/
  20161. height: 6px;
  20162. }
  20163. /*定义滚动条轨道 内阴影+圆角*/
  20164. .cru_selectBox::-webkit-scrollbar-track,
  20165. .study_top::-webkit-scrollbar-track,
  20166. .textContent::-webkit-scrollbar {
  20167. border-radius: 10px;
  20168. background-color: #b8bdc9;
  20169. }
  20170. /*定义滑块 内阴影+圆角*/
  20171. .cru_selectBox::-webkit-scrollbar-thumb,
  20172. .study_top::-webkit-scrollbar-thumb,
  20173. .textContent::-webkit-scrollbar-thumb {
  20174. border-radius: 10px;
  20175. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  20176. background-color: #2c5ab3;
  20177. }
  20178. .vedioBox {
  20179. border-radius: 0 0 20px 20px;
  20180. background: #fff;
  20181. overflow: auto;
  20182. }
  20183. .taskBox {
  20184. width: 98%;
  20185. background: #f0f4fa;
  20186. margin: 10px auto;
  20187. padding: 0 10px;
  20188. border-radius: 4px;
  20189. box-sizing: border-box;
  20190. }
  20191. .vedioTaskBox {
  20192. width: 100%;
  20193. display: flex;
  20194. flex-direction: row;
  20195. flex-wrap: nowrap;
  20196. align-items: flex-start;
  20197. position: relative;
  20198. }
  20199. .toolBox {
  20200. margin: 15px 0 0 25px;
  20201. display: flex;
  20202. position: relative;
  20203. padding: 18px 20px;
  20204. border-top-left-radius: 5px;
  20205. border-top-right-radius: 5px;
  20206. width: 90%;
  20207. }
  20208. .btnAll {
  20209. position: absolute;
  20210. right: 0;
  20211. display: flex;
  20212. flex-direction: row;
  20213. flex-wrap: nowrap;
  20214. align-items: center;
  20215. }
  20216. .btnLeft,
  20217. .btnRight {
  20218. display: flex;
  20219. flex-direction: row;
  20220. flex-wrap: nowrap;
  20221. align-items: center;
  20222. padding: 5px 0;
  20223. }
  20224. .btnLeft {
  20225. border-right: 1px solid #cad1dc;
  20226. }
  20227. .btnLeft > .custom-tooltip {
  20228. background: #3681fc;
  20229. color: #fff;
  20230. }
  20231. .last:hover {
  20232. background: #3383fa !important;
  20233. color: #fff;
  20234. border: 1px solid #3383fa !important;
  20235. }
  20236. .last,
  20237. .returnBtn1 {
  20238. width: 90px;
  20239. height: 36px;
  20240. background: #ffffff;
  20241. border-radius: 4px;
  20242. border: 1px solid #0061ff;
  20243. color: #0061ff;
  20244. cursor: pointer;
  20245. display: flex;
  20246. flex-direction: row;
  20247. flex-wrap: nowrap;
  20248. align-items: center;
  20249. justify-content: center;
  20250. margin-left: 12px;
  20251. }
  20252. .returnBtn1 {
  20253. background: #f0f4fa;
  20254. border-radius: 4px;
  20255. border: 1px solid #cad1dc;
  20256. margin: 0 12px;
  20257. }
  20258. .lastImg {
  20259. min-width: 15px;
  20260. width: 15px;
  20261. height: 15px;
  20262. }
  20263. .lastText {
  20264. padding: 0 5px 2px 5px;
  20265. box-sizing: border-box;
  20266. font-size: 14px;
  20267. }
  20268. .lastImg > img {
  20269. width: 100%;
  20270. height: 100%;
  20271. }
  20272. /* .vedioTimeBox {
  20273. display: flex;
  20274. flex-direction: row;
  20275. align-items: center;
  20276. flex-wrap: nowrap;
  20277. position: relative;
  20278. } */
  20279. .navBox {
  20280. background: #fff;
  20281. height: calc(100% - 40px);
  20282. overflow-y: auto;
  20283. overflow-x: hidden;
  20284. }
  20285. .worksBox {
  20286. margin: 0 0 10px 25px;
  20287. border-bottom: 1px solid #eeeeee;
  20288. padding: 18px 20px;
  20289. border-radius: 4px;
  20290. width: 90%;
  20291. }
  20292. .worksBTitle {
  20293. font-size: 20px;
  20294. padding-bottom: 15px;
  20295. border-bottom: 1px solid #eeeeee;
  20296. display: flex;
  20297. align-items: center;
  20298. }
  20299. .greenBox {
  20300. width: 5px;
  20301. height: 30px;
  20302. background: #63b6fa;
  20303. margin-right: 5px;
  20304. }
  20305. .worksDetailBox {
  20306. display: flex;
  20307. width: 100%;
  20308. flex-direction: row;
  20309. flex-wrap: wrap;
  20310. align-items: flex-end;
  20311. justify-content: flex-start;
  20312. padding: 15px 0;
  20313. }
  20314. .works {
  20315. display: flex;
  20316. flex-direction: column;
  20317. flex-wrap: nowrap;
  20318. align-items: flex-start;
  20319. justify-content: flex-start;
  20320. align-content: center;
  20321. max-width: 240px;
  20322. width: calc(100% / 3 - 10px);
  20323. height: auto;
  20324. margin-right: 10px;
  20325. margin-bottom: 10px;
  20326. overflow: hidden;
  20327. height: 140px;
  20328. box-shadow: 0 0 6px 1px #dfdada;
  20329. border-radius: 15px;
  20330. }
  20331. .workImg {
  20332. width: 100%;
  20333. /* height: calc(100% - 40px); */
  20334. height: 105px;
  20335. position: relative;
  20336. }
  20337. .workImg > img {
  20338. width: 100%;
  20339. height: 100%;
  20340. object-fit: contain;
  20341. cursor: pointer;
  20342. }
  20343. .worksName {
  20344. height: 40px;
  20345. line-height: 40px;
  20346. display: flex;
  20347. width: 100%;
  20348. flex-direction: row;
  20349. flex-wrap: nowrap;
  20350. justify-content: space-between;
  20351. align-items: center;
  20352. margin: 0 0 0 10px;
  20353. }
  20354. .worksName > div:nth-child(1) {
  20355. width: 110px;
  20356. white-space: nowrap;
  20357. overflow: hidden;
  20358. text-overflow: ellipsis;
  20359. }
  20360. .worksName > div:nth-child(2) {
  20361. color: #b7b4b5;
  20362. }
  20363. .noWorksS {
  20364. padding: 15px 0;
  20365. display: flex;
  20366. flex-direction: row;
  20367. flex-wrap: wrap;
  20368. align-items: center;
  20369. justify-content: flex-start;
  20370. }
  20371. .noWorksName,
  20372. .isWorksName,
  20373. .isWorksName2 {
  20374. background: #ddebf8;
  20375. color: #000;
  20376. width: 90px;
  20377. height: 25px;
  20378. text-align: center;
  20379. line-height: 25px;
  20380. border-radius: 4px;
  20381. margin: 10px 15px 10px 0;
  20382. white-space: nowrap;
  20383. overflow: hidden;
  20384. padding: 5px;
  20385. text-overflow: ellipsis;
  20386. cursor: pointer;
  20387. border: 1px solid #ddebf8;
  20388. }
  20389. .noWorksName {
  20390. background: #fff;
  20391. color: #0061ff;
  20392. border: 1px solid #0061ff;
  20393. }
  20394. .isWorksName2 {
  20395. width: 100px;
  20396. height: 40px;
  20397. line-height: 40px;
  20398. position: relative;
  20399. background: #dae6f9;
  20400. }
  20401. .isWorksName {
  20402. background: #e7ebf1 !important;
  20403. width: 100px;
  20404. height: 40px;
  20405. line-height: 40px;
  20406. position: relative;
  20407. color: #acb4bf;
  20408. border: 1px solid #cad1dc !important;
  20409. }
  20410. .isSelectName,
  20411. .noWorksName:hover {
  20412. background: #3383fa !important;
  20413. color: #fff !important;
  20414. border: 1px solid #3383fa !important;
  20415. }
  20416. .title {
  20417. background: #1e5cc9;
  20418. /* width: 98%; */
  20419. height: 45px;
  20420. color: #fff;
  20421. line-height: 45px;
  20422. padding-left: 20px;
  20423. box-sizing: border-box;
  20424. }
  20425. .textBox {
  20426. font-size: 20px;
  20427. width: 90%;
  20428. display: flex;
  20429. flex-direction: column;
  20430. align-items: center;
  20431. margin: 20px auto 0;
  20432. max-height: calc(100% - 75px);
  20433. overflow: auto;
  20434. }
  20435. .textContent {
  20436. font-size: 18px;
  20437. width: 95%;
  20438. max-width: 95%;
  20439. }
  20440. .answerBg {
  20441. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  20442. background-size: 100% 100%;
  20443. width: 100%;
  20444. height: 100%;
  20445. color: #fff;
  20446. text-align: center;
  20447. display: flex;
  20448. flex-direction: column;
  20449. flex-wrap: nowrap;
  20450. align-items: center;
  20451. position: relative;
  20452. justify-content: center;
  20453. }
  20454. .answerBg > div:nth-child(1) {
  20455. /* font-size: 22px;
  20456. padding: 25px 0 10px; */
  20457. }
  20458. .answerContent {
  20459. width: 215px;
  20460. max-height: 60px;
  20461. word-break: break-all;
  20462. text-align: center;
  20463. /* white-space: nowrap; */
  20464. overflow: hidden;
  20465. text-overflow: ellipsis;
  20466. /* padding: 23px 0 0; */
  20467. -webkit-line-clamp: 3;
  20468. -webkit-box-orient: vertical;
  20469. display: -webkit-box;
  20470. font-size: 15px;
  20471. cursor: pointer;
  20472. }
  20473. .elist_input_box {
  20474. display: flex;
  20475. align-items: flex-start;
  20476. flex-wrap: nowrap;
  20477. padding: 10px 0 15px 30px;
  20478. flex-direction: column;
  20479. }
  20480. .elist_input {
  20481. /* width: 40%; */
  20482. width: 45%;
  20483. margin: 20px;
  20484. }
  20485. .elist_input .elist_input_box input {
  20486. font: inherit;
  20487. color: currentColor;
  20488. width: 200px;
  20489. padding: 8px 14px;
  20490. display: block;
  20491. min-width: 0;
  20492. outline: none;
  20493. border: 1px solid rgba(0, 0, 0, 0.23);
  20494. border-radius: 4px;
  20495. box-sizing: border-box;
  20496. background: #fff;
  20497. margin: 0 20px 0 0;
  20498. }
  20499. .elist_input .elist_input_box span {
  20500. height: 36px;
  20501. line-height: 36px;
  20502. color: rgb(82, 82, 82);
  20503. }
  20504. .elist_input .elist_input_box .remove {
  20505. height: 20px;
  20506. width: 20px;
  20507. background-size: 100% 100%;
  20508. background-position: unset;
  20509. margin-left: 5px;
  20510. }
  20511. .elist_input_box >>> .el-rate {
  20512. display: flex;
  20513. height: 36px;
  20514. align-items: center;
  20515. }
  20516. .elist_input_box .elist_inptu_text {
  20517. min-height: 50px;
  20518. /* width: 500px;
  20519. max-height: 150px; */
  20520. width: 100%;
  20521. line-height: 50px;
  20522. color: rgb(82, 82, 82);
  20523. overflow: auto;
  20524. text-indent: 5px;
  20525. background: #f7f6f9;
  20526. border-radius: 10px;
  20527. }
  20528. .elist_input_box .elist_inptu_text input {
  20529. width: 500px;
  20530. }
  20531. .elist_input_box >>> .el-rate__icon {
  20532. font-size: 24px;
  20533. }
  20534. .isClick {
  20535. background: #4d9def;
  20536. }
  20537. .bzBox {
  20538. display: flex;
  20539. flex-direction: row;
  20540. align-items: center;
  20541. }
  20542. .bzBox .yCss {
  20543. width: 7px;
  20544. height: 7px;
  20545. background: #fff;
  20546. margin: 0 16px 0 6px;
  20547. border-radius: 50%;
  20548. border: 5px solid #3681fc;
  20549. z-index: 99;
  20550. }
  20551. .bzBox > div:nth-child(2) {
  20552. font-size: 18px;
  20553. font-weight: bold;
  20554. color: #0e1e33;
  20555. }
  20556. .navTitile {
  20557. padding: 0 0px 0 15px;
  20558. font-size: 16px;
  20559. font-weight: bold;
  20560. color: #0e1e33;
  20561. height: 40px;
  20562. line-height: 40px;
  20563. }
  20564. .isTypeOne {
  20565. width: 240px;
  20566. height: 170px;
  20567. /* border: 1px solid #f8f8f8; */
  20568. border-radius: 10px;
  20569. box-shadow: 0 0 6px 1px #dfdada;
  20570. }
  20571. .e_add_top {
  20572. display: flex;
  20573. justify-content: space-between;
  20574. padding: 20px 20px 0 20px;
  20575. border-radius: 3px;
  20576. background: #fff;
  20577. }
  20578. .e_add_title2 {
  20579. display: flex;
  20580. align-items: center;
  20581. }
  20582. .e_add_title2 span {
  20583. width: 40px;
  20584. }
  20585. .e_add_title {
  20586. display: flex;
  20587. align-items: center;
  20588. color: #b8b8b8;
  20589. font-size: 18px;
  20590. position: relative;
  20591. height: 40px;
  20592. }
  20593. .e_add_title span {
  20594. margin-right: 10px;
  20595. }
  20596. .e_add_title .el_input {
  20597. width: 300px;
  20598. }
  20599. .e_add_title >>> .el-input__inner {
  20600. width: 400px;
  20601. }
  20602. .e_add_btn {
  20603. }
  20604. .e_add_content {
  20605. display: flex;
  20606. width: 100%;
  20607. max-width: 650px;
  20608. height: 550px;
  20609. }
  20610. .e_add_list {
  20611. background: #fff;
  20612. height: 500px;
  20613. width: 210px;
  20614. position: relative;
  20615. margin: 15px 5px 0 0;
  20616. flex-shrink: 0;
  20617. display: flex;
  20618. flex-direction: column;
  20619. }
  20620. .e_add_list_title {
  20621. font-size: 20px;
  20622. width: 100%;
  20623. box-sizing: border-box;
  20624. padding: 15px 40px;
  20625. text-align: center;
  20626. border-bottom: 1px solid #eaeaea;
  20627. position: relative;
  20628. display: flex;
  20629. align-items: center;
  20630. justify-content: center;
  20631. height: 57px;
  20632. background: #f6f6f6;
  20633. }
  20634. .e_add_list_title span {
  20635. overflow: hidden;
  20636. white-space: nowrap;
  20637. text-overflow: ellipsis;
  20638. }
  20639. .e_add_list_title img {
  20640. position: absolute;
  20641. right: 15px;
  20642. width: 25px;
  20643. cursor: pointer;
  20644. top: 50%;
  20645. transform: translateY(-50%);
  20646. }
  20647. .e_add_list_body {
  20648. height: calc(100% - 187px);
  20649. overflow: auto;
  20650. }
  20651. .e_add_list_child {
  20652. width: 100%;
  20653. display: flex;
  20654. align-items: center;
  20655. justify-content: center;
  20656. position: relative;
  20657. box-sizing: border-box;
  20658. padding: 15px 40px;
  20659. text-align: center;
  20660. }
  20661. .e_add_list_child span {
  20662. overflow: hidden;
  20663. white-space: nowrap;
  20664. text-overflow: ellipsis;
  20665. cursor: pointer;
  20666. }
  20667. .e_add_list_child img {
  20668. position: absolute;
  20669. right: 10px;
  20670. width: 21px;
  20671. cursor: pointer;
  20672. top: 50%;
  20673. transform: translateY(-50%);
  20674. }
  20675. .e_add_list_child + .e_add_list_child {
  20676. border-top: 1px solid #eaeaea;
  20677. }
  20678. .e_add_list_child .active {
  20679. color: #409eff;
  20680. }
  20681. .e_add_list_btn {
  20682. position: absolute;
  20683. bottom: 0;
  20684. height: 50px;
  20685. background: rgb(120, 120, 254);
  20686. width: 100%;
  20687. color: #fff;
  20688. font-size: 16px;
  20689. text-align: center;
  20690. line-height: 50px;
  20691. cursor: pointer;
  20692. }
  20693. .e_add_list_detail {
  20694. position: absolute;
  20695. bottom: 0;
  20696. height: 130px;
  20697. background: rgb(120, 120, 254);
  20698. width: 100%;
  20699. color: #fff;
  20700. font-size: 16px;
  20701. display: flex;
  20702. align-items: center;
  20703. justify-content: center;
  20704. }
  20705. .e_add_list_detail textarea {
  20706. height: 90%;
  20707. width: 95%;
  20708. border: none;
  20709. resize: none;
  20710. outline: none;
  20711. padding: 5px;
  20712. box-sizing: border-box;
  20713. }
  20714. .e_add_list_pbox {
  20715. width: 100%;
  20716. max-width: 650px;
  20717. /* height: 600px; */
  20718. }
  20719. .e_add_list_pbox_title {
  20720. height: 50px;
  20721. background: #fff;
  20722. display: flex;
  20723. align-items: center;
  20724. width: 100%;
  20725. box-sizing: border-box;
  20726. padding: 0 20px;
  20727. }
  20728. .type_title {
  20729. font-size: 18px;
  20730. font-weight: 700;
  20731. }
  20732. .type_content {
  20733. font-size: 16px;
  20734. margin-left: 30px;
  20735. }
  20736. .type_content span + span {
  20737. margin-left: 20px;
  20738. }
  20739. .type_content span {
  20740. cursor: pointer;
  20741. padding-bottom: 5px;
  20742. box-sizing: border-box;
  20743. }
  20744. .type_content .active {
  20745. color: #409eff;
  20746. border-bottom: 2px solid #409eff;
  20747. }
  20748. .e_add_list_pbox_content {
  20749. height: calc(100% - 50px);
  20750. display: flex;
  20751. align-items: center;
  20752. width: 100%;
  20753. background: #fff;
  20754. }
  20755. .evaCss {
  20756. display: flex;
  20757. flex-direction: row;
  20758. flex-wrap: nowrap;
  20759. align-items: flex-start;
  20760. padding: 0 0 20px;
  20761. }
  20762. .cru_line {
  20763. position: absolute;
  20764. bottom: 0px;
  20765. transition: all 0.5s;
  20766. left: 0px;
  20767. width: 125px;
  20768. margin-left: -25px;
  20769. }
  20770. .isNoMessage {
  20771. width: 20%;
  20772. margin: 25% auto 0;
  20773. }
  20774. .isNoMessage > img {
  20775. width: 100%;
  20776. height: 100%;
  20777. }
  20778. .fullStyle >>> .el-dialog__body {
  20779. height: 100% !important;
  20780. }
  20781. .fullStyle >>> .el-dialog,
  20782. .fullStyle {
  20783. width: 100% !important;
  20784. max-width: 100% !important;
  20785. height: 100% !important;
  20786. margin: 0 !important;
  20787. }
  20788. .full_diy >>> .el-dialog {
  20789. margin: 0 !important;
  20790. height: 100%;
  20791. padding: 4px;
  20792. }
  20793. .full_diy >>> .el-dialog__body {
  20794. height: calc(100% - 100px);
  20795. }
  20796. .full_diy2 >>> .el-dialog__body {
  20797. height: calc(100% - 50px);
  20798. padding: 0;
  20799. }
  20800. .switchCss {
  20801. /* width: 100%; */
  20802. display: flex;
  20803. flex-direction: row;
  20804. flex-wrap: nowrap;
  20805. align-items: center;
  20806. /* justify-content: center; */
  20807. }
  20808. .isClickNav {
  20809. /* color: #499eef; */
  20810. color: #000;
  20811. }
  20812. .commentImg {
  20813. width: 25px;
  20814. height: 25px;
  20815. cursor: pointer;
  20816. }
  20817. .commentImg > img {
  20818. width: 100%;
  20819. height: 100%;
  20820. }
  20821. .comment {
  20822. background: #f9f9f9;
  20823. border-radius: 0 0 4px 4px;
  20824. display: flex;
  20825. flex-direction: row;
  20826. flex-wrap: nowrap;
  20827. align-items: center;
  20828. justify-content: flex-end;
  20829. height: 35px;
  20830. }
  20831. .commentList {
  20832. display: flex;
  20833. flex-direction: row;
  20834. flex-wrap: nowrap;
  20835. align-items: center;
  20836. justify-content: center;
  20837. align-content: center;
  20838. /* margin-left: 15px; */
  20839. /* margin-left: 8px; */
  20840. }
  20841. .scoreImg {
  20842. width: 17px;
  20843. height: 17px;
  20844. }
  20845. .studentDetail {
  20846. display: flex;
  20847. flex-direction: row;
  20848. flex-wrap: nowrap;
  20849. /* align-items: center; */
  20850. align-items: flex-start;
  20851. }
  20852. .tx {
  20853. width: 50px;
  20854. }
  20855. .tx > img {
  20856. width: 100%;
  20857. height: 100%;
  20858. }
  20859. .nameAndTime {
  20860. display: flex;
  20861. flex-direction: column;
  20862. flex-wrap: nowrap;
  20863. align-items: flex-start;
  20864. margin-left: 10px;
  20865. }
  20866. .worksAnswer {
  20867. color: #4078dd;
  20868. margin: 10px 0;
  20869. font-size: 16px;
  20870. position: relative;
  20871. }
  20872. .worksAnswer > img {
  20873. width: 500px;
  20874. height: 300px;
  20875. object-fit: contain;
  20876. margin: 0 auto;
  20877. display: block;
  20878. }
  20879. .commentTop {
  20880. border-bottom: 1px solid #eaeaea;
  20881. padding-bottom: 10px;
  20882. }
  20883. .commentBox {
  20884. padding-top: 15px;
  20885. }
  20886. .pl {
  20887. font-size: 18px;
  20888. }
  20889. .plPerson {
  20890. width: 100%;
  20891. }
  20892. .plName {
  20893. display: flex;
  20894. flex-direction: row;
  20895. flex-wrap: nowrap;
  20896. align-items: baseline;
  20897. color: #78787a;
  20898. width: 100%;
  20899. }
  20900. .deleteComment {
  20901. cursor: pointer;
  20902. margin-left: auto;
  20903. color: #237ade;
  20904. }
  20905. .plContent {
  20906. margin-top: 5px;
  20907. }
  20908. .evalCss {
  20909. background: #fff;
  20910. font-size: 18px;
  20911. }
  20912. .nav {
  20913. color: #9d9d9d;
  20914. padding: 5px 0 15px 20px;
  20915. }
  20916. .middleBox {
  20917. padding: 5px 0 15px 20px;
  20918. }
  20919. .pfBox {
  20920. padding-bottom: 30px;
  20921. }
  20922. .nameAndrate {
  20923. display: flex;
  20924. flex-direction: row;
  20925. flex-wrap: nowrap;
  20926. align-items: center;
  20927. padding-bottom: 10px;
  20928. height: 30px;
  20929. line-height: 30px;
  20930. }
  20931. .nameAndrate > div {
  20932. margin-left: 10px;
  20933. color: #000;
  20934. height: 30px;
  20935. }
  20936. .nameAndrate >>> .el-rate__icon {
  20937. font-size: 28px !important;
  20938. }
  20939. .pfBox > div:nth-child(2) {
  20940. background: #f7f6f9;
  20941. width: 400px;
  20942. min-height: 45px;
  20943. border-radius: 10px;
  20944. font-size: 16px;
  20945. display: flex;
  20946. flex-wrap: wrap;
  20947. align-items: center;
  20948. padding: 10px 20px;
  20949. box-sizing: border-box;
  20950. color: #000;
  20951. }
  20952. .bz {
  20953. display: flex;
  20954. flex-direction: row;
  20955. flex-wrap: nowrap;
  20956. align-items: flex-start;
  20957. }
  20958. .bz > div {
  20959. padding: 0 10px;
  20960. }
  20961. .select_box2_title {
  20962. background: #fff;
  20963. border-radius: 5px;
  20964. padding: 15px 10px;
  20965. box-sizing: border-box;
  20966. margin-bottom: 10px;
  20967. display: flex;
  20968. flex-direction: row;
  20969. flex-wrap: nowrap;
  20970. align-items: center;
  20971. }
  20972. .select_box2_title > div:nth-child(2) {
  20973. margin-left: 10px;
  20974. color: #c4c4c4;
  20975. }
  20976. .select_box2_box {
  20977. display: flex;
  20978. height: 500px;
  20979. }
  20980. .select_box2_img {
  20981. width: calc(100% - 310px);
  20982. height: 100%;
  20983. overflow: auto;
  20984. background: #fff;
  20985. border-radius: 5px;
  20986. }
  20987. .select_box2_img img {
  20988. width: 100%;
  20989. }
  20990. .select_box2_answer {
  20991. background: #fff;
  20992. margin-left: 10px;
  20993. border-radius: 5px;
  20994. width: 300px;
  20995. overflow: auto;
  20996. height: 90%;
  20997. display: flex;
  20998. flex-direction: column;
  20999. align-items: flex-start;
  21000. padding-top: 10px;
  21001. box-sizing: border-box;
  21002. position: relative;
  21003. }
  21004. .select_answer_title {
  21005. padding: 0 0 15px 20px;
  21006. color: #c4c4c4;
  21007. }
  21008. .select_box2_answer_box {
  21009. margin: 0 0 10px 20px;
  21010. width: 85%;
  21011. display: flex;
  21012. flex-direction: row;
  21013. flex-wrap: nowrap;
  21014. align-items: center;
  21015. }
  21016. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  21017. color: #000;
  21018. }
  21019. .upAnswerCss {
  21020. position: absolute;
  21021. bottom: 15px;
  21022. right: 15px;
  21023. }
  21024. .upAnswerCss >>> .el-button {
  21025. width: 95px;
  21026. height: 35px;
  21027. line-height: 35px;
  21028. padding: 0;
  21029. }
  21030. .rightWidthCss {
  21031. width: 60%;
  21032. display: flex;
  21033. flex-direction: row;
  21034. align-items: flex-start;
  21035. }
  21036. .rightAnswer {
  21037. display: flex;
  21038. flex-direction: row;
  21039. flex-wrap: nowrap;
  21040. align-items: center;
  21041. color: red;
  21042. margin-bottom: 31px;
  21043. }
  21044. .rightAnswerCss {
  21045. display: flex;
  21046. flex-direction: column;
  21047. flex-wrap: nowrap;
  21048. padding-top: 60px;
  21049. }
  21050. .blueCss {
  21051. color: #767de1;
  21052. margin-left: 10px;
  21053. }
  21054. .redCss {
  21055. color: red;
  21056. }
  21057. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  21058. color: rgb(0 123 255) !important;
  21059. }
  21060. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  21061. color: rgb(0 123 255) !important;
  21062. }
  21063. .zuoyeYulan {
  21064. padding-top: 0;
  21065. font-size: 18px;
  21066. display: flex;
  21067. align-items: flex-end;
  21068. }
  21069. .buttonA {
  21070. margin-left: 10px;
  21071. padding: 0;
  21072. }
  21073. .displayBox {
  21074. margin-bottom: 10px;
  21075. display: block;
  21076. border-bottom: 3px solid #eee;
  21077. display: flex;
  21078. align-items: center;
  21079. }
  21080. .easy_comment {
  21081. width: calc(100% - 90px);
  21082. margin-left: 10px;
  21083. display: flex;
  21084. flex-wrap: wrap;
  21085. }
  21086. .easy_comment > div {
  21087. border: 1px solid #4a4a4a;
  21088. color: #666;
  21089. border-radius: 15px;
  21090. padding: 5px 10px;
  21091. font-size: 16px;
  21092. margin-bottom: 10px;
  21093. margin-right: 5px;
  21094. cursor: pointer;
  21095. }
  21096. .easy_comment div:hover {
  21097. border: 1px solid #f7ba2a;
  21098. color: #c69217;
  21099. }
  21100. .xuan_right_box {
  21101. padding: 10px 0;
  21102. background: #f0f4fa;
  21103. margin: 0 15px 0 25px;
  21104. border-bottom-left-radius: 5px;
  21105. border-bottom-right-radius: 5px;
  21106. width: 91.5%;
  21107. }
  21108. .tool_right_box {
  21109. display: flex;
  21110. align-items: center;
  21111. }
  21112. .tool_right_box + .tool_right_box {
  21113. margin-top: 10px;
  21114. }
  21115. .right_box_xuan {
  21116. background: rgb(0 123 255);
  21117. color: #fff;
  21118. border-radius: 5px;
  21119. padding: 5px;
  21120. margin-left: 10px;
  21121. min-width: 95px;
  21122. }
  21123. .pButton:hover {
  21124. opacity: 1 !important;
  21125. }
  21126. .pButton {
  21127. position: fixed;
  21128. text-align: center;
  21129. cursor: pointer;
  21130. z-index: 999;
  21131. right: 20px;
  21132. top: 110px;
  21133. width: 50px;
  21134. height: 50px;
  21135. display: flex;
  21136. align-items: center;
  21137. justify-content: center;
  21138. border-radius: 5px;
  21139. }
  21140. .pzClass {
  21141. width: calc(100% - 340px);
  21142. }
  21143. .newDialogCss {
  21144. /* position: fixed;
  21145. right: 5%;
  21146. top: 50%;
  21147. width: 340px;
  21148. transform: translateY(-50%);
  21149. height: 60%;
  21150. box-shadow: 0px 0 8px 0px #555555;
  21151. border-radius: 15px;
  21152. z-index: 999; */
  21153. position: fixed;
  21154. right: 20px;
  21155. top: 101px;
  21156. width: 330px;
  21157. height: calc(100% - 80px);
  21158. z-index: 999;
  21159. background: #fff;
  21160. border-top-right-radius: 0px;
  21161. border-bottom-right-radius: 0px;
  21162. overflow: hidden;
  21163. }
  21164. .pzTop {
  21165. color: #fff;
  21166. background: #000;
  21167. display: flex;
  21168. flex-direction: row;
  21169. flex-wrap: nowrap;
  21170. align-items: center;
  21171. justify-content: space-between;
  21172. height: 40px;
  21173. border-radius: 15px 15px 0 0;
  21174. user-select: none;
  21175. }
  21176. .pzTop2 .checkbox {
  21177. display: flex;
  21178. align-items: center;
  21179. padding: 5px 30px;
  21180. flex: 0 0 auto;
  21181. font-weight: bold;
  21182. border-bottom: 1px solid #eee;
  21183. justify-content: space-between;
  21184. }
  21185. .pzTop2 .check {
  21186. text-align: center;
  21187. cursor: pointer;
  21188. box-sizing: border-box;
  21189. display: flex;
  21190. }
  21191. .pzTop2 img {
  21192. width: 25px;
  21193. cursor: pointer;
  21194. }
  21195. .pzTop > div:nth-child(1) {
  21196. padding-left: 10px;
  21197. }
  21198. .pzTop > div:nth-child(2) {
  21199. width: 15px;
  21200. height: 15px;
  21201. padding-right: 10px;
  21202. cursor: pointer;
  21203. }
  21204. .pzTop > div:nth-child(2) > img {
  21205. width: 100%;
  21206. height: 100%;
  21207. }
  21208. .pzBox,
  21209. .noPzBox {
  21210. height: calc(100% - 60px);
  21211. /* background: #ededed; */
  21212. background: #fff;
  21213. /* border-radius: 0 0 15px 15px; */
  21214. }
  21215. .noPzBox {
  21216. display: flex;
  21217. flex-direction: column;
  21218. flex-wrap: nowrap;
  21219. justify-content: center;
  21220. align-items: center;
  21221. }
  21222. .pzList {
  21223. background: #f7f7f7;
  21224. width: 90%;
  21225. margin: 0 auto 15px;
  21226. border-radius: 5px;
  21227. }
  21228. .pzNavTop {
  21229. display: flex;
  21230. flex-direction: row;
  21231. flex-wrap: nowrap;
  21232. padding: 10px 10px 0 10px;
  21233. align-items: center;
  21234. }
  21235. .pzDelete {
  21236. cursor: pointer;
  21237. margin-left: auto;
  21238. font-size: 14px;
  21239. color: #afafaf;
  21240. }
  21241. .pzNavTop > div:nth-child(1) {
  21242. background: #3760af;
  21243. width: 35px;
  21244. height: 35px;
  21245. color: #fff;
  21246. text-align: center;
  21247. line-height: 35px;
  21248. border-radius: 50%;
  21249. font-size: 14px;
  21250. }
  21251. .pzNavTop > div:nth-child(2) {
  21252. font-size: 18px;
  21253. color: #959595;
  21254. margin-left: 5px;
  21255. }
  21256. .pzContent {
  21257. padding: 10px;
  21258. word-break: break-word;
  21259. }
  21260. .pzContent audio {
  21261. width: 100%;
  21262. }
  21263. .pzContent audio::-webkit-media-controls-panel {
  21264. background: #fff;
  21265. }
  21266. .pzContent >>> img {
  21267. max-width: 100%;
  21268. }
  21269. .pzListBox {
  21270. padding-top: 15px;
  21271. height: calc(100% - 110px);
  21272. overflow: auto;
  21273. }
  21274. .addPzButton {
  21275. position: relative;
  21276. margin-top: 3px;
  21277. width: 100%;
  21278. }
  21279. .addPzButton .img1 {
  21280. position: absolute;
  21281. top: 50%;
  21282. right: 25px;
  21283. transform: translateY(-50%);
  21284. height: 100%;
  21285. display: flex;
  21286. align-items: center;
  21287. }
  21288. .addPzButton .img1 div {
  21289. display: flex;
  21290. }
  21291. .addPzButton .img1 div img {
  21292. width: 28px;
  21293. margin-left: 10px;
  21294. cursor: pointer;
  21295. }
  21296. .addPzButton .img1 div span {
  21297. font-size: 14px;
  21298. margin: 4px 0 0 3px;
  21299. color: #afafaf;
  21300. }
  21301. .addPz {
  21302. background: #4b79ce;
  21303. width: 100px;
  21304. color: #fff;
  21305. font-size: 12px;
  21306. height: 30px;
  21307. margin: 0 auto;
  21308. text-align: center;
  21309. line-height: 30px;
  21310. border-radius: 10px;
  21311. cursor: pointer;
  21312. }
  21313. .addDialogCss {
  21314. position: fixed;
  21315. width: 600px;
  21316. height: 70%;
  21317. min-height: 450px;
  21318. box-shadow: 0px 0 8px 0px #555555;
  21319. border-radius: 15px;
  21320. z-index: 999;
  21321. left: 50%;
  21322. top: 50%;
  21323. margin: -18% 0 0 -300px;
  21324. }
  21325. .teacherPz {
  21326. display: flex;
  21327. flex-direction: row;
  21328. align-items: center;
  21329. flex-wrap: nowrap;
  21330. }
  21331. .teacherPzImg {
  21332. width: 30px;
  21333. height: 30px;
  21334. }
  21335. .teacherPzImg > img {
  21336. width: 100%;
  21337. height: 100%;
  21338. }
  21339. .addPzBox {
  21340. height: calc(100% - 40px);
  21341. background: #ededed;
  21342. border-bottom-left-radius: 15px;
  21343. border-bottom-right-radius: 15px;
  21344. }
  21345. .pzAudioClass {
  21346. margin: 15px 14px;
  21347. background: #fff;
  21348. height: 100%;
  21349. display: flex;
  21350. justify-content: center;
  21351. align-items: center;
  21352. }
  21353. .pzConText {
  21354. width: 95%;
  21355. height: 100%;
  21356. margin: 10px auto 0;
  21357. border: none;
  21358. background: #fff;
  21359. border-radius: 0px;
  21360. }
  21361. .pzConText >>> .text {
  21362. height: calc(100% - 82px);
  21363. }
  21364. .addTextCss {
  21365. background: #4b79ce;
  21366. width: 80px;
  21367. height: 30px;
  21368. text-align: center;
  21369. color: #fff;
  21370. line-height: 30px;
  21371. border-radius: 10px;
  21372. margin: 10px auto 0;
  21373. cursor: pointer;
  21374. }
  21375. .pzConText:focus-visible {
  21376. border: none !important;
  21377. }
  21378. .maxWidth {
  21379. width: 1000px;
  21380. }
  21381. .noPz {
  21382. width: 150px;
  21383. margin: 0 auto 20%;
  21384. }
  21385. .noPz > img {
  21386. width: 100%;
  21387. height: 100%;
  21388. }
  21389. .timeAndReply {
  21390. display: flex;
  21391. flex-direction: row;
  21392. flex-wrap: nowrap;
  21393. justify-content: space-between;
  21394. align-items: center;
  21395. font-size: 14px;
  21396. box-sizing: border-box;
  21397. padding: 0 10px 10px 0px;
  21398. }
  21399. .timeAndReply .time {
  21400. color: #bfbfbf;
  21401. padding: 0 0 0 10px;
  21402. box-sizing: border-box;
  21403. }
  21404. .timeAndReply > div:last-child {
  21405. cursor: pointer;
  21406. color: #777;
  21407. }
  21408. /* table 样式 */
  21409. .cont >>> table {
  21410. border-top: 1px solid #ccc;
  21411. border-left: 1px solid #ccc;
  21412. }
  21413. .cont >>> table td,
  21414. .cont >>> table th {
  21415. border-bottom: 1px solid #ccc;
  21416. border-right: 1px solid #ccc;
  21417. /* padding: 20px 5px; */
  21418. padding: 5px 10px;
  21419. max-width: 0px;
  21420. height: 30px;
  21421. vertical-align: baseline;
  21422. box-sizing: border-box;
  21423. }
  21424. .cont >>> table th {
  21425. border-bottom: 2px solid #ccc;
  21426. text-align: center;
  21427. }
  21428. /* blockquote 样式 */
  21429. .cont >>> blockquote {
  21430. display: block;
  21431. border-left: 8px solid #d0e5f2;
  21432. padding: 5px 10px;
  21433. margin: 10px 0;
  21434. line-height: 1.4;
  21435. font-size: 100%;
  21436. background-color: #f1f1f1;
  21437. }
  21438. /* code 样式 */
  21439. .cont >>> code {
  21440. display: inline-block;
  21441. /* *display: inline; */
  21442. zoom: 1;
  21443. background-color: #f1f1f1;
  21444. border-radius: 3px;
  21445. padding: 3px 5px;
  21446. margin: 0 3px;
  21447. }
  21448. .cont >>> pre code {
  21449. display: block;
  21450. }
  21451. /* ul ol 样式 */
  21452. .cont >>> ul,
  21453. ol {
  21454. margin: 10px 0 10px 20px;
  21455. }
  21456. .addPzCheck {
  21457. display: flex;
  21458. flex-direction: row;
  21459. flex-wrap: nowrap;
  21460. padding: 10px 15px 0;
  21461. }
  21462. .addPzCheck span {
  21463. cursor: pointer;
  21464. padding-bottom: 5px;
  21465. font-weight: bold;
  21466. }
  21467. .addPzCheck span + span {
  21468. margin-left: 10px;
  21469. }
  21470. .addPzCheck .isChooseActive {
  21471. color: #3e88f4;
  21472. border-bottom: 2px solid #2f80f3;
  21473. }
  21474. /* code 样式 */
  21475. .cont {
  21476. /* -webkit-user-modify: read-write; */
  21477. overflow-wrap: break-word;
  21478. -webkit-line-break: after-white-space;
  21479. }
  21480. .scoreBox,
  21481. .scoreDetailBox {
  21482. display: flex;
  21483. align-items: center;
  21484. justify-content: flex-start;
  21485. margin-top: 20px;
  21486. font-size: 18px;
  21487. width: 100%;
  21488. }
  21489. .scoreBox .t,
  21490. .scoreDetailBox .t {
  21491. margin-right: 10px;
  21492. width: 100px;
  21493. text-align: right;
  21494. }
  21495. .scoreDetailBox {
  21496. align-items: flex-start;
  21497. }
  21498. .scoreDetailBox >>> .el-textarea {
  21499. width: calc(100% - 200px);
  21500. }
  21501. .scoreBox >>> .el-input {
  21502. width: 130px;
  21503. font-size: 38px;
  21504. }
  21505. .scoreBox >>> .el-input__inner {
  21506. height: 60px;
  21507. }
  21508. .answerScore {
  21509. position: absolute;
  21510. top: 10px;
  21511. right: 10px;
  21512. background: #0000008f;
  21513. border-radius: 5px;
  21514. padding: 3px 5px;
  21515. font-size: 14px;
  21516. color: #fff;
  21517. cursor: pointer;
  21518. }
  21519. .open_box .switch_box {
  21520. width: 100%;
  21521. margin: 0 auto;
  21522. display: flex;
  21523. justify-content: space-between;
  21524. }
  21525. .open_box .switch_box + .switch_box {
  21526. margin-top: 10px;
  21527. }
  21528. .deleteImg {
  21529. width: 25px !important;
  21530. height: 25px !important;
  21531. cursor: pointer;
  21532. position: absolute;
  21533. top: 10px;
  21534. right: 10px;
  21535. }
  21536. .deleteImg2 {
  21537. width: 15px !important;
  21538. height: 15px !important;
  21539. top: 5px;
  21540. right: 5px;
  21541. }
  21542. .rightW {
  21543. right: 40px;
  21544. }
  21545. .drawPBox {
  21546. display: flex;
  21547. flex-direction: column;
  21548. position: relative;
  21549. }
  21550. .drawPBox span {
  21551. font-size: 18px;
  21552. color: #606266;
  21553. padding-bottom: 10px;
  21554. margin: 10px 0;
  21555. border-bottom: 1px solid #eaeaea;
  21556. }
  21557. .drawPBox img {
  21558. width: 500px;
  21559. height: 300px;
  21560. object-fit: contain;
  21561. cursor: pointer;
  21562. margin: 0 auto;
  21563. }
  21564. .sentenBox {
  21565. background: #fff;
  21566. height: 450px;
  21567. overflow: auto;
  21568. background-image: url("../../assets/icon/conSentences/stuBg.png");
  21569. background-position: 102%;
  21570. background-repeat: no-repeat;
  21571. background-size: 60%;
  21572. }
  21573. .addSen {
  21574. background: #409efe;
  21575. width: 90px;
  21576. color: #fff;
  21577. height: 35px;
  21578. text-align: center;
  21579. line-height: 35px;
  21580. border-radius: 5px;
  21581. float: right;
  21582. margin: 10px 20px 0 0;
  21583. cursor: pointer;
  21584. }
  21585. .sentenTop {
  21586. display: flex;
  21587. flex-direction: row;
  21588. flex-wrap: nowrap;
  21589. align-items: center;
  21590. padding: 55px 0 0 20px;
  21591. box-sizing: border-box;
  21592. }
  21593. .sentenTop > div:nth-child(2) {
  21594. width: 300px;
  21595. margin: 0 15px;
  21596. }
  21597. .sentenTop > div:nth-child(3) {
  21598. background: #409efe;
  21599. color: #fff;
  21600. width: 65px;
  21601. height: 35px;
  21602. text-align: center;
  21603. line-height: 35px;
  21604. border-radius: 5px;
  21605. cursor: pointer;
  21606. }
  21607. .cardList,
  21608. .cardList1 {
  21609. padding: 10px 0 10px 0;
  21610. display: flex;
  21611. flex-direction: row;
  21612. flex-wrap: wrap;
  21613. align-items: center;
  21614. box-sizing: border-box;
  21615. border-bottom: 1px solid #f4f4f4;
  21616. width: 98%;
  21617. margin: 0 auto;
  21618. min-width: 60%;
  21619. max-width: 85%;
  21620. }
  21621. .cardList1 {
  21622. padding: 10px 0 10px 10px !important;
  21623. margin: 0 !important;
  21624. }
  21625. .cardBox {
  21626. display: flex;
  21627. flex-direction: row;
  21628. flex-wrap: wrap;
  21629. align-items: center;
  21630. align-content: center;
  21631. }
  21632. .cardBox > div {
  21633. margin-bottom: 10px;
  21634. }
  21635. .isCard,
  21636. .isChooseCard,
  21637. .noCard,
  21638. .isCard1 {
  21639. width: 130px;
  21640. height: 60px;
  21641. text-align: center;
  21642. line-height: 60px;
  21643. font-size: 20px;
  21644. cursor: pointer;
  21645. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  21646. background-size: cover;
  21647. transition: all 2s;
  21648. margin-right: 20px;
  21649. }
  21650. .isCard > div,
  21651. .noCard > div,
  21652. .isCard1 > div {
  21653. white-space: nowrap;
  21654. overflow: hidden;
  21655. text-overflow: ellipsis;
  21656. width: 75%;
  21657. margin: 0 auto;
  21658. }
  21659. .noCard {
  21660. background-image: none;
  21661. }
  21662. .isCard1 {
  21663. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  21664. }
  21665. .isChooseCard {
  21666. background-image: none;
  21667. border: 1px dashed #b9b9b9;
  21668. border-radius: 10px;
  21669. }
  21670. .card {
  21671. width: 130px;
  21672. height: 60px;
  21673. }
  21674. .card > img {
  21675. width: 100%;
  21676. height: 100%;
  21677. }
  21678. .rightCardBox {
  21679. margin: 10px 0 0 10px;
  21680. }
  21681. .rightCardBox > div:nth-child(1) {
  21682. margin-bottom: 10px;
  21683. }
  21684. .cardCss {
  21685. display: flex;
  21686. flex-direction: column;
  21687. flex-wrap: nowrap;
  21688. align-items: center;
  21689. border-bottom: 3px solid #b4c3d3;
  21690. padding: 0 0 5px 0;
  21691. margin-right: 10px;
  21692. }
  21693. .cardCss > div:nth-child(2) {
  21694. background: #5b7b9d;
  21695. color: #fff;
  21696. width: 20px;
  21697. height: 20px;
  21698. border-radius: 50%;
  21699. text-align: center;
  21700. line-height: 20px;
  21701. }
  21702. .isWrong {
  21703. display: flex;
  21704. flex-direction: row;
  21705. flex-wrap: nowrap;
  21706. align-content: center;
  21707. align-items: center;
  21708. }
  21709. .answerRight {
  21710. width: 25%;
  21711. }
  21712. .isTj {
  21713. display: flex;
  21714. flex-direction: row;
  21715. flex-wrap: nowrap;
  21716. align-items: center;
  21717. }
  21718. .isTj > div:nth-child(2) {
  21719. color: #727070;
  21720. margin-left: 10px;
  21721. }
  21722. .isTjImg {
  21723. width: 30px;
  21724. height: 30px;
  21725. }
  21726. .isTjImg > img {
  21727. width: 100%;
  21728. height: 100%;
  21729. }
  21730. .cardAnswerBox {
  21731. font-size: 18px;
  21732. width: 97%;
  21733. border: 5px;
  21734. padding: 0;
  21735. border-radius: 5px;
  21736. margin: 10px auto;
  21737. word-break: break-word;
  21738. }
  21739. .w_name {
  21740. margin-bottom: 10px;
  21741. }
  21742. .w_name span {
  21743. font-size: 16px;
  21744. }
  21745. .w_teachert {
  21746. width: 50px !important;
  21747. position: absolute;
  21748. height: auto !important;
  21749. z-index: 10;
  21750. right: 25px;
  21751. top: -25px;
  21752. }
  21753. .group_workBox {
  21754. }
  21755. .group_workBox + .group_workBox {
  21756. margin-top: 20px;
  21757. }
  21758. .group_box {
  21759. padding-bottom: 20px;
  21760. border-bottom: 2px solid #f0f0f0;
  21761. margin-top: 10px;
  21762. }
  21763. .group_title {
  21764. display: flex;
  21765. align-items: center;
  21766. justify-content: space-between;
  21767. width: 95%;
  21768. }
  21769. .group_name {
  21770. background-image: url(../../assets/icon/groupN.png);
  21771. width: 220px;
  21772. background-size: 100% 100%;
  21773. height: 67px;
  21774. padding: 0 20px 0 43px;
  21775. box-sizing: border-box;
  21776. line-height: 63px;
  21777. color: #fff;
  21778. overflow: hidden;
  21779. white-space: nowrap;
  21780. text-overflow: ellipsis;
  21781. }
  21782. .group_work {
  21783. width: 100%;
  21784. padding: 0 10px;
  21785. box-sizing: border-box;
  21786. display: flex;
  21787. flex-wrap: wrap;
  21788. }
  21789. .g_d_box {
  21790. display: flex;
  21791. flex-flow: wrap;
  21792. justify-content: space-around;
  21793. }
  21794. .g_d_box .isChair {
  21795. background-image: url(../../assets/avatar.png) !important;
  21796. }
  21797. .g_d_group {
  21798. width: 500px;
  21799. margin-bottom: 80px;
  21800. }
  21801. .g_d_group_chair {
  21802. display: flex;
  21803. align-items: center;
  21804. justify-content: center;
  21805. }
  21806. .g_d_group_chair > div + div {
  21807. margin-left: 30px;
  21808. }
  21809. .g_d_group_chair > div,
  21810. .g_d_group_chair2 > div {
  21811. display: flex;
  21812. flex-direction: column;
  21813. align-items: center;
  21814. }
  21815. .g_d_group_chair > div > span:nth-child(1),
  21816. .g_d_group_chair2 > div > span:nth-child(1) {
  21817. background-image: url(../../assets/icon/chair.png);
  21818. width: 50px;
  21819. height: 50px;
  21820. display: block;
  21821. background-size: 100% 100%;
  21822. }
  21823. .g_d_group_tableBox {
  21824. display: flex;
  21825. align-items: center;
  21826. justify-content: center;
  21827. }
  21828. .g_d_group_chair2 {
  21829. display: flex;
  21830. flex-direction: column;
  21831. align-items: center;
  21832. justify-content: center;
  21833. }
  21834. .g_d_group_chair2 > div + div {
  21835. margin-top: 10px;
  21836. }
  21837. .g_d_group_table {
  21838. background-image: url(../../assets/icon/groupBg.png);
  21839. width: 354px;
  21840. height: 196px;
  21841. background-size: 100% 100%;
  21842. display: flex;
  21843. align-items: center;
  21844. justify-content: center;
  21845. flex-direction: column;
  21846. color: #fff;
  21847. }
  21848. .g_d_group_table > div:nth-child(1) {
  21849. font-size: 24px;
  21850. margin-bottom: 5px;
  21851. }
  21852. .g_d_group_table > div:nth-child(2) div {
  21853. cursor: pointer;
  21854. background: #2e77bf;
  21855. padding: 4px 10px;
  21856. border-radius: 5px;
  21857. }
  21858. .groupBox {
  21859. }
  21860. .groupContent + .groupContent {
  21861. margin-top: 30px;
  21862. }
  21863. .groupTitle {
  21864. font-size: 24px;
  21865. color: rgb(80, 80, 80);
  21866. margin-bottom: 20px;
  21867. }
  21868. .groupName {
  21869. display: flex;
  21870. align-items: center;
  21871. }
  21872. .groupn {
  21873. font-size: 15px;
  21874. margin-right: 10px;
  21875. }
  21876. .groupName + .groupName {
  21877. margin-top: 15px;
  21878. }
  21879. .groupBtn {
  21880. margin-left: 10px;
  21881. }
  21882. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  21883. text-align: left;
  21884. }
  21885. .g_d_btnBox {
  21886. display: flex;
  21887. justify-content: flex-end;
  21888. align-items: center;
  21889. margin-bottom: 20px;
  21890. }
  21891. .updateChair {
  21892. position: relative;
  21893. }
  21894. .updateChairBtn {
  21895. position: absolute;
  21896. width: 50px;
  21897. height: 50px;
  21898. overflow: hidden;
  21899. /* display: flex; */
  21900. align-items: center;
  21901. justify-content: center;
  21902. background: #00000087;
  21903. color: #fff;
  21904. border-radius: 50px;
  21905. display: none;
  21906. cursor: pointer;
  21907. }
  21908. .updateChair:hover .updateChairBtn {
  21909. display: flex;
  21910. }
  21911. .group_staic_box {
  21912. display: flex;
  21913. padding: 30px 40px 10px;
  21914. flex-wrap: wrap;
  21915. }
  21916. .group_staic {
  21917. /* width: 50%; */
  21918. margin-bottom: 20px;
  21919. display: flex;
  21920. align-items: center;
  21921. }
  21922. .group_staic span:nth-child(1) {
  21923. width: 150px;
  21924. text-align: right;
  21925. margin-right: 15px;
  21926. }
  21927. .group_staic span:nth-child(2) {
  21928. background: rgb(0 123 255);
  21929. color: #fff;
  21930. border-radius: 5px;
  21931. padding: 5px;
  21932. }
  21933. .codeFileBox {
  21934. height: 300px;
  21935. background: #fff;
  21936. display: flex;
  21937. align-items: center;
  21938. justify-content: center;
  21939. }
  21940. .codeFileBox img {
  21941. width: 200px;
  21942. margin: 0;
  21943. height: auto;
  21944. }
  21945. .codeFileBox div {
  21946. background: rgb(80, 142, 226);
  21947. color: #fff;
  21948. padding: 10px 20px;
  21949. border-radius: 25px;
  21950. cursor: pointer;
  21951. margin-left: 15px;
  21952. }
  21953. .radioBox {
  21954. display: flex;
  21955. flex-direction: column;
  21956. flex-wrap: nowrap;
  21957. align-items: flex-start;
  21958. }
  21959. .radioBox > div {
  21960. margin: 10px 0 0 10px;
  21961. }
  21962. /* .radioBox >>> .el-radio__input,
  21963. .radioBox >>> .el-checkbox__inner {
  21964. margin-left: 10px;
  21965. } */
  21966. .radioBox >>> .el-radio__label,
  21967. .radioBox >>> .el-checkbox__label {
  21968. display: flex;
  21969. align-items: center;
  21970. width: 100%;
  21971. }
  21972. .radioBox >>> .el-radio__label > span {
  21973. width: 100%;
  21974. display: -webkit-box;
  21975. overflow: hidden;
  21976. white-space: normal !important;
  21977. text-overflow: ellipsis;
  21978. word-wrap: break-word;
  21979. }
  21980. .inImg {
  21981. width: 100px;
  21982. cursor: pointer;
  21983. }
  21984. .inImg > img {
  21985. width: 100%;
  21986. height: 100%;
  21987. object-fit: cover;
  21988. }
  21989. .timuImgBox {
  21990. margin: 10px 0;
  21991. display: flex;
  21992. flex-direction: column;
  21993. flex-wrap: wrap;
  21994. align-items: flex-start;
  21995. }
  21996. .timuImg {
  21997. width: 150px;
  21998. margin: 5px 0;
  21999. cursor: pointer;
  22000. }
  22001. .timuImg > img {
  22002. width: 100%;
  22003. height: 100%;
  22004. object-fit: cover;
  22005. }
  22006. .worksTop {
  22007. display: flex;
  22008. flex-direction: row;
  22009. align-items: flex-end;
  22010. }
  22011. .worksTitle{
  22012. display: flex;
  22013. flex-direction: row;
  22014. flex-wrap: nowrap;
  22015. align-items: center;
  22016. }
  22017. .worksTitle::before,.worksTop::before{
  22018. content: '';
  22019. display: block;
  22020. width: 3px;
  22021. height: 20px;
  22022. background: #0061FF;
  22023. border-radius: 3px;
  22024. margin: 0 5px 0 0;
  22025. }
  22026. .corOpen {
  22027. margin: 0 0 0 10px;
  22028. font-size: 14px;
  22029. cursor: pointer;
  22030. color: #505050;
  22031. }
  22032. .corOpen:hover {
  22033. color: #499eef;
  22034. }
  22035. .navCorOpenBox {
  22036. display: flex;
  22037. flex-direction: row;
  22038. align-items: center;
  22039. justify-content: space-between;
  22040. height: 55px;
  22041. background: #ffffff;
  22042. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  22043. border-radius: 8px 8px 0px 0px;
  22044. z-index: 9;
  22045. position: relative;
  22046. }
  22047. .navCorOpen {
  22048. padding-right: 15px;
  22049. cursor: pointer;
  22050. width: 45px;
  22051. display: flex;
  22052. }
  22053. .navCorOpen > img {
  22054. width: 100%;
  22055. height: 100%;
  22056. }
  22057. .mlImg {
  22058. width: 45px !important;
  22059. min-width: 45px;
  22060. cursor: pointer;
  22061. transform: rotate(180deg);
  22062. }
  22063. .mlImg > img {
  22064. width: 100%;
  22065. height: 100%;
  22066. }
  22067. .navLeftCss {
  22068. width: 100% !important;
  22069. left: 0 !important;
  22070. }
  22071. .isContentCss {
  22072. width: 100% !important;
  22073. }
  22074. .isAllWidth {
  22075. width: 100% !important;
  22076. }
  22077. .group_switch {
  22078. margin-right: 10px;
  22079. height: 30px;
  22080. display: flex;
  22081. align-items: center;
  22082. }
  22083. .group_switch > span {
  22084. margin-right: 5px;
  22085. }
  22086. .fileC_box {
  22087. padding-top: 15px;
  22088. }
  22089. .fileC_box > .fileC_title {
  22090. padding: 10px 5px 14px 11px;
  22091. border-top: 1px solid #cad1dc;
  22092. font-size: 14px;
  22093. font-weight: 400;
  22094. color: #cad1dc;
  22095. width: 88%;
  22096. margin: 0 auto;
  22097. }
  22098. .pl_select_box {
  22099. height: 40px;
  22100. line-height: 40px;
  22101. width: 100%;
  22102. cursor: pointer;
  22103. padding: 0 20px;
  22104. box-sizing: border-box;
  22105. border-radius: 5px;
  22106. border: 1px solid #d6d6d6;
  22107. white-space: nowrap;
  22108. overflow: hidden;
  22109. text-overflow: ellipsis;
  22110. background: #fff;
  22111. text-align: left;
  22112. }
  22113. .newButton {
  22114. width: 102px;
  22115. height: 36px;
  22116. background: #e7ebf1;
  22117. border-radius: 4px;
  22118. color: #0e1e33;
  22119. font-weight: 400;
  22120. font-size: 14px;
  22121. border: none;
  22122. float: right;
  22123. margin-left: 10px;
  22124. }
  22125. .el-table >>> .even_row {
  22126. background-color: #f0f4fa;
  22127. }
  22128. .stageBoxCss,
  22129. .stageBoxIsCss {
  22130. display: flex;
  22131. flex-direction: row;
  22132. flex-wrap: nowrap;
  22133. align-items: center;
  22134. height: 50px;
  22135. border-bottom: 1px solid #e2f5fc;
  22136. cursor: pointer;
  22137. width: 100%;
  22138. }
  22139. .stageBoxIsCss {
  22140. background: #0061ff;
  22141. color: #fff;
  22142. border-radius: 8px;
  22143. }
  22144. .stageItemTitle {
  22145. display: flex;
  22146. flex-direction: row;
  22147. flex-wrap: nowrap;
  22148. align-items: center;
  22149. margin-left: 15px;
  22150. width: calc(100% - 50px);
  22151. }
  22152. .stageItemTitle > div:first-child {
  22153. font-size: 16px;
  22154. font-weight: bold;
  22155. min-width: 55px;
  22156. }
  22157. .stageItemTitle > div:last-child {
  22158. font-size: 15px;
  22159. font-weight: 600;
  22160. max-width: 242px;
  22161. white-space: nowrap;
  22162. overflow: hidden;
  22163. text-overflow: ellipsis;
  22164. word-break: break-word;
  22165. width: calc(100% - 55px);
  22166. }
  22167. .closeTri,
  22168. .closeTri1 {
  22169. min-width: 15px;
  22170. width: 15px;
  22171. height: 15px;
  22172. }
  22173. .closeTri1 {
  22174. padding-left: 10px;
  22175. cursor: pointer;
  22176. }
  22177. .closeTri > img,
  22178. .closeTri1 > img {
  22179. width: 100%;
  22180. height: 100%;
  22181. }
  22182. .noToolBlue {
  22183. min-width: 10px;
  22184. width: 10px;
  22185. height: 10px;
  22186. background: #0061ff;
  22187. border-radius: 50%;
  22188. margin-left: 13px;
  22189. }
  22190. .stageChild,
  22191. .toolChild {
  22192. height: 0;
  22193. overflow: hidden;
  22194. transition: all 0.5s;
  22195. }
  22196. .toolChild {
  22197. margin: 0 0 0 17px;
  22198. padding: 0 0 0 20px;
  22199. border-left: 1px solid #d7d7d7;
  22200. }
  22201. .gjCss {
  22202. display: flex;
  22203. flex-direction: row;
  22204. flex-wrap: nowrap;
  22205. align-items: center;
  22206. padding: 15px 0;
  22207. box-sizing: border-box;
  22208. font-size: 14px;
  22209. cursor: pointer;
  22210. }
  22211. .toolChild > div {
  22212. position: relative;
  22213. }
  22214. .toolChild > div::before {
  22215. content: "";
  22216. width: 15px;
  22217. height: 1px;
  22218. background: #cad1dc;
  22219. position: absolute;
  22220. top: 24px;
  22221. left: -20px;
  22222. display: block;
  22223. }
  22224. .isGjCss {
  22225. color: #0061ff;
  22226. }
  22227. .navItem {
  22228. background: #ffffff;
  22229. border-radius: 4px;
  22230. width: 100%;
  22231. margin: 10px auto 0;
  22232. position: relative;
  22233. height: 40px;
  22234. display: flex;
  22235. flex-direction: row;
  22236. flex-wrap: nowrap;
  22237. align-items: center;
  22238. }
  22239. .navItemList {
  22240. display: flex;
  22241. flex-direction: row;
  22242. flex-wrap: nowrap;
  22243. align-items: center;
  22244. padding: 0 13px;
  22245. cursor: pointer;
  22246. width: calc(100% - 60px);
  22247. height: 100%;
  22248. }
  22249. .navItemList > div:first-child {
  22250. min-width: 60px;
  22251. }
  22252. .navItemList > div:last-child {
  22253. width: calc(100% - 80px);
  22254. white-space: nowrap;
  22255. overflow: hidden;
  22256. text-overflow: ellipsis;
  22257. word-break: break-word;
  22258. }
  22259. /* .isItemList > div {
  22260. color: #fff !important;
  22261. } */
  22262. .tool_work_box {
  22263. width: 100%;
  22264. padding: 0 37px 0;
  22265. box-sizing: border-box;
  22266. }
  22267. .tool_box {
  22268. width: 100%;
  22269. padding: 0 0 0 20px;
  22270. }
  22271. .tool_type_box {
  22272. display: flex;
  22273. flex-direction: row;
  22274. align-items: baseline;
  22275. flex-wrap: nowrap;
  22276. justify-content: flex-start;
  22277. position: relative;
  22278. }
  22279. .toolSort {
  22280. display: flex;
  22281. flex-direction: row;
  22282. flex-wrap: wrap;
  22283. justify-content: flex-start;
  22284. align-items: flex-start;
  22285. padding: 0 0 15px 0;
  22286. }
  22287. .toolSort > div {
  22288. margin: 0 10px 0 0;
  22289. width: 135px;
  22290. box-sizing: border-box;
  22291. border: 2px solid transparent;
  22292. }
  22293. .tools {
  22294. width: 100%;
  22295. display: flex;
  22296. flex-direction: column;
  22297. flex-wrap: nowrap;
  22298. align-items: flex-start;
  22299. }
  22300. .whiteBIcon {
  22301. width: fit-content;
  22302. cursor: pointer;
  22303. display: flex;
  22304. flex-direction: column;
  22305. flex-wrap: nowrap;
  22306. align-items: center;
  22307. font-size: 14px;
  22308. }
  22309. .tool:hover {
  22310. border: 2px solid #a5c7ff;
  22311. border-radius: 5px;
  22312. }
  22313. .whiteBIcon > img {
  22314. width: 65px;
  22315. height: 100%;
  22316. }
  22317. .whiteBIcon > img {
  22318. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  22319. border-radius: 15px;
  22320. }
  22321. .check {
  22322. /* width: 20px;
  22323. height: 20px; */
  22324. cursor: pointer;
  22325. margin: 10px 0;
  22326. position: absolute;
  22327. right: 2px;
  22328. top: -5px;
  22329. }
  22330. .noChoose,
  22331. .isChoose {
  22332. width: 15px;
  22333. height: 15px;
  22334. border-radius: 50%;
  22335. border: 1px solid #adadad;
  22336. }
  22337. .isChoose {
  22338. border: 4px solid #0363ff !important;
  22339. width: 10px;
  22340. height: 10px;
  22341. }
  22342. .isToolChoose {
  22343. border: 2px solid #5394ff !important;
  22344. border-radius: 5px;
  22345. box-shadow: 0 0 6px 0px #5394ff;
  22346. }
  22347. .checkDiv {
  22348. display: flex;
  22349. align-items: center;
  22350. }
  22351. .checkDiv span {
  22352. margin-left: 5px;
  22353. color: #858585;
  22354. }
  22355. .check img {
  22356. width: 20px;
  22357. height: 20px;
  22358. }
  22359. .lockTaskIcon {
  22360. width: 20px;
  22361. height: 20px;
  22362. position: absolute;
  22363. right: 10px;
  22364. top: 10px;
  22365. }
  22366. .lockTaskIcon > img {
  22367. width: 100%;
  22368. height: 100%;
  22369. }
  22370. .pick_box {
  22371. display: flex;
  22372. align-items: flex-start;
  22373. flex-wrap: wrap;
  22374. }
  22375. .selectBox {
  22376. width: 110px;
  22377. margin-left: 10px;
  22378. margin: 0 10px 0 auto;
  22379. }
  22380. .selectBox >>> .el-input__inner {
  22381. height: 30px;
  22382. line-height: 30px;
  22383. }
  22384. .selectBox >>> .el-input__icon {
  22385. line-height: 30px;
  22386. }
  22387. .sentenceTitle {
  22388. display: flex;
  22389. flex-direction: row;
  22390. flex-wrap: nowrap;
  22391. align-items: center;
  22392. }
  22393. .sentenceTitle::before {
  22394. content: attr(index);
  22395. background: #3681fc;
  22396. border-radius: 50%;
  22397. color: #fff;
  22398. width: 25px;
  22399. height: 25px;
  22400. min-width: 25px;
  22401. min-height: 25px;
  22402. text-align: center;
  22403. line-height: 25px;
  22404. margin-right: 5px;
  22405. }
  22406. .hfBox {
  22407. padding: 10px;
  22408. box-sizing: border-box;
  22409. }
  22410. .whoReplyWho {
  22411. display: flex;
  22412. flex-direction: row;
  22413. flex-wrap: nowrap;
  22414. align-items: baseline;
  22415. justify-content: flex-start;
  22416. }
  22417. .hfBottom {
  22418. display: flex;
  22419. flex-direction: row;
  22420. flex-wrap: nowrap;
  22421. align-items: center;
  22422. justify-content: space-between;
  22423. font-size: 14px;
  22424. }
  22425. .deleteHfItem {
  22426. cursor: pointer;
  22427. width: 20px;
  22428. height: 20px;
  22429. }
  22430. .deleteHfItem > img {
  22431. width: 100%;
  22432. height: 100%;
  22433. }
  22434. .whoReplyWho > .hfImg {
  22435. width: 12px;
  22436. height: 12px;
  22437. margin: 0 5px;
  22438. }
  22439. .whoReplyWho > .hfImg > img {
  22440. width: 100%;
  22441. height: 100%;
  22442. }
  22443. .hfContent {
  22444. padding-top: 10px;
  22445. box-sizing: border-box;
  22446. display: -webkit-box;
  22447. overflow: hidden;
  22448. white-space: normal !important;
  22449. text-overflow: ellipsis;
  22450. word-wrap: break-word;
  22451. -webkit-box-orient: vertical;
  22452. }
  22453. .hfTime {
  22454. text-align: left;
  22455. box-sizing: border-box;
  22456. padding: 10px 0 10px 0px;
  22457. color: #bfbfbf;
  22458. font-size: 14px;
  22459. }
  22460. .btnAllNT {
  22461. position: fixed;
  22462. bottom: 100px;
  22463. right: 40px;
  22464. z-index: 999;
  22465. display: flex;
  22466. flex-direction: row;
  22467. }
  22468. .btnAllNT > img {
  22469. cursor: pointer;
  22470. width: 80px;
  22471. }
  22472. .toolMask {
  22473. position: fixed;
  22474. width: 100%;
  22475. height: 100%;
  22476. background: #3f3c3c;
  22477. opacity: 0.5;
  22478. top: 0;
  22479. left: 0;
  22480. z-index: 999;
  22481. }
  22482. .addToolCss {
  22483. position: fixed;
  22484. z-index: 999;
  22485. background: #fff;
  22486. right: 5%;
  22487. bottom: 18%;
  22488. min-width: 1035px;
  22489. min-height: 300px;
  22490. border-radius: 10px;
  22491. box-shadow: 0 0 8px 1px #b2b2b2;
  22492. }
  22493. .toolTop {
  22494. display: flex;
  22495. flex-direction: row;
  22496. flex-wrap: nowrap;
  22497. justify-content: space-between;
  22498. align-items: center;
  22499. padding: 20px;
  22500. }
  22501. .toolTop > div:nth-child(2) {
  22502. width: 15px;
  22503. height: 15px;
  22504. padding-right: 10px;
  22505. cursor: pointer;
  22506. }
  22507. .toolTop > div:nth-child(2) > img {
  22508. width: 100%;
  22509. height: 100%;
  22510. }
  22511. .fullStyle>>>.el-dialog__body {
  22512. height: calc(100% - 125px) !important;
  22513. box-sizing: border-box;
  22514. padding: 30px 0 !important;
  22515. background: #fff !important;
  22516. }
  22517. .fullStyle>>>.el-dialog {
  22518. width: 100% !important;
  22519. max-width: 100% !important;
  22520. height: 100% !important;
  22521. margin: 0 !important;
  22522. }
  22523. .fullStyle {
  22524. width: 100% !important;
  22525. max-width: 100% !important;
  22526. height: 100% !important;
  22527. margin: 0 auto !important;
  22528. }
  22529. .fullStyle>>>.el-dialog__footer{
  22530. background: #fff !important;
  22531. }
  22532. .engUpBox {
  22533. width: 100%;
  22534. height: 100%;
  22535. }
  22536. .engTitle,
  22537. .engText {
  22538. display: flex;
  22539. flex-direction: row;
  22540. flex-wrap: nowrap;
  22541. align-items: flex-start;
  22542. padding: 0 20px 20px 20px;
  22543. box-sizing: border-box;
  22544. }
  22545. .engTitle > .div:first-child,
  22546. .engText > div:first-child {
  22547. min-width: 75px;
  22548. }
  22549. .correctBox{
  22550. width: 100%;
  22551. display: flex;
  22552. flex-direction: row;
  22553. flex-wrap: nowrap;
  22554. align-items: flex-start;
  22555. }
  22556. .oldBox{
  22557. width: 50%;
  22558. height: 100%;
  22559. display: flex;
  22560. flex-direction: column;
  22561. flex-wrap: nowrap;
  22562. align-items: center;
  22563. border-top: 1px solid #d9d9d9;
  22564. border-left: 1px solid #d9d9d9;
  22565. border-right: 1px solid #d9d9d9;
  22566. }
  22567. .oldBox>div:first-child{
  22568. width: 100%;
  22569. text-align: center;
  22570. background: #d9d9d9;
  22571. height: 35px;
  22572. line-height: 35px;
  22573. font-weight: bold;
  22574. }
  22575. .oldText{
  22576. width: 100%;
  22577. height: 100%;
  22578. display: flex;
  22579. flex-direction: column;
  22580. flex-wrap: nowrap;
  22581. align-content: center;
  22582. justify-content: center;
  22583. align-items: center;
  22584. }
  22585. .detailBox{
  22586. width: 50%;
  22587. padding: 10px;
  22588. background: #f6f6f6;
  22589. border-radius: 5px;
  22590. }
  22591. .oldDetail{
  22592. padding-bottom: 30px;
  22593. }
  22594. .allName{
  22595. min-width: 200px;
  22596. white-space: nowrap;
  22597. overflow: hidden;
  22598. text-overflow: ellipsis;
  22599. word-break: break-word;
  22600. cursor: pointer;
  22601. text-align: center;
  22602. border: 1px solid #bcc2cc;
  22603. box-sizing: border-box;
  22604. }
  22605. </style>