studyStudent.vue 757 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <div class="btnAllNT">
  14. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  15. <img
  16. v-if="
  17. courseDetail.userid == userid ||
  18. (courseDetail.course_teacher &&
  19. courseDetail.course_teacher.indexOf(userid) != -1)
  20. "
  21. src="../assets/icon/learn/addTool.png"
  22. @click="openToolAll"
  23. style="position: relative"
  24. />
  25. </div>
  26. <div
  27. class="pButton"
  28. style="left: 0; top: 140px"
  29. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  30. @click="setContent2(true)"
  31. >
  32. <!-- 批 , getCourseDetail()-->
  33. <img
  34. src="../assets/icon/newIcons/isRight.png"
  35. style="width: 45px"
  36. alt=""
  37. />
  38. </div>
  39. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  40. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  41. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  42. <div class="courseTitle">
  43. <div
  44. style="
  45. max-width: calc(100% - 40px);
  46. width: auto;
  47. white-space: nowrap;
  48. overflow: hidden;
  49. text-overflow: ellipsis;
  50. word-break: break-word;
  51. display: block;
  52. "
  53. >
  54. <el-tooltip
  55. effect="light"
  56. :content="courseDetail.title"
  57. placement="top"
  58. >
  59. <div class="ctitle">
  60. {{ courseDetail.title }}
  61. </div>
  62. </el-tooltip>
  63. </div>
  64. <el-tooltip effect="light" content="收缩" placement="top">
  65. <div class="mlImg" @click="setContent2(false)">
  66. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  67. </div>
  68. </el-tooltip>
  69. </div>
  70. <div
  71. class="inviteBox"
  72. v-if="tcid && inviteCode"
  73. style="padding: 0 0 15px 0"
  74. >
  75. <div>
  76. <span>随机码:{{ inviteCode }}</span>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="cru_selectBox">
  81. <div
  82. style="background: #fff; margin: 0 10px; border-radius: 8px"
  83. v-for="(item, stageIndex) in navList"
  84. :key="stageIndex"
  85. >
  86. <div
  87. class="stageBoxCss"
  88. @click="get(stageIndex)"
  89. :class="{ stageBoxIsCss: item.isOpen }"
  90. >
  91. <div class="stageItemTitle">
  92. <div>阶段{{ stageIndex + 1 }}</div>
  93. <el-tooltip
  94. effect="light"
  95. :content="item.dyName"
  96. placement="top"
  97. >
  98. <div>
  99. {{ item.dyName }}
  100. </div>
  101. </el-tooltip>
  102. </div>
  103. <div class="closeTri" v-if="item.isOpen">
  104. <img src="../assets/icon/newIcons/downC.png" alt />
  105. </div>
  106. <div class="closeTri" v-else>
  107. <img src="../assets/icon/newIcons/right.png" alt />
  108. </div>
  109. </div>
  110. <div class="stageChild" :class="{ navActive: item.isOpen }">
  111. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  112. <div
  113. class="navItem"
  114. :class="{
  115. openTaskActive:
  116. navIndex == taskCount &&
  117. nav.id == navId &&
  118. stageIndex == courseType,
  119. }"
  120. >
  121. <div v-if="nav.tool[0].tool != undefined">
  122. <div
  123. class="closeTri1"
  124. v-if="nav.isOpen"
  125. @click="openTask(stageIndex, navIndex, nav.id)"
  126. >
  127. <img src="../assets/icon/newIcons/bDown.png" alt />
  128. </div>
  129. <div
  130. class="closeTri1"
  131. v-else
  132. @click="openTask(stageIndex, navIndex, nav.id)"
  133. >
  134. <img src="../assets/icon/newIcons/right.png" alt />
  135. </div>
  136. </div>
  137. <div v-else class="noToolBlue"></div>
  138. <div
  139. @click="openTask(stageIndex, navIndex, nav.id)"
  140. class="navItemList"
  141. :class="{
  142. isItemList:
  143. navIndex == taskCount &&
  144. nav.id == navId &&
  145. stageIndex == courseType,
  146. }"
  147. >
  148. <div>任务{{ navIndex + 1 }}:</div>
  149. <el-tooltip
  150. effect="light"
  151. :content="nav.taskName"
  152. placement="top"
  153. >
  154. <div
  155. :style="{
  156. width:
  157. IsLookOpen &&
  158. !(
  159. navIndex == taskCount &&
  160. nav.id == navId &&
  161. stageIndex == courseType
  162. )
  163. ? 'calc(100% - 75px)'
  164. : 'auto',
  165. }"
  166. >
  167. {{ nav.taskName }}
  168. </div>
  169. </el-tooltip>
  170. </div>
  171. <div class="lockTaskIcon">
  172. <img
  173. src="../assets/lock.png"
  174. v-if="IsLookOpen && !nav.isLook"
  175. alt=""
  176. />
  177. </div>
  178. </div>
  179. <div
  180. v-if="nav.tool[0].tool != undefined"
  181. class="toolChild"
  182. :class="{ toolActive: nav.isOpen }"
  183. >
  184. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  185. <div
  186. class="gjCss"
  187. :class="{ isGjCss: t.isTool }"
  188. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  189. >
  190. <div>工具{{ toolIndex + 1 }}:</div>
  191. <div v-if="t.tool == 58">模拟驾驶</div>
  192. <div v-if="t.tool == 59">路径搜索</div>
  193. <div v-if="t.tool == 60">深度学习</div>
  194. <div v-if="t.tool == 10">倒计时</div>
  195. <div v-if="t.tool == 65">挑人</div>
  196. <div v-if="t.tool == 7">思维网格</div>
  197. <div v-if="t.tool == 1">电子白板</div>
  198. <div v-if="t.tool == 52">文档</div>
  199. <div v-if="t.tool == 3">思维导图</div>
  200. <div v-if="t.tool == 48">表格</div>
  201. <div v-if="t.tool == 49">学生分组</div>
  202. <div v-if="t.tool == 4">问卷调查</div>
  203. <div v-if="t.tool == 45">选择题</div>
  204. <div v-if="t.tool == 15">问答</div>
  205. <div v-if="t.tool == 16">作业提交</div>
  206. <div v-if="t.tool == 50">批量上传</div>
  207. <div v-if="t.tool == 41">选择匹配</div>
  208. <div v-if="t.tool == 47">排序</div>
  209. <div v-if="t.tool == 40">个人评价</div>
  210. <div v-if="t.tool == 18">训练平台</div>
  211. <div v-if="t.tool == 21">AIoT Blockly</div>
  212. <div v-if="t.tool == 23">AI Python</div>
  213. <div v-if="t.tool == 24">AI Blockly</div>
  214. <div v-if="t.tool == 32">源码编辑</div>
  215. <div v-if="t.tool == 57">CocoPi</div>
  216. <div v-if="t.tool == 63">海龟编程</div>
  217. <div v-if="t.tool == 28">翻译</div>
  218. <div v-if="t.tool == 31">数字画板</div>
  219. <div v-if="t.tool == 39">GeoGebra</div>
  220. <div v-if="t.tool == 66">公式编辑</div>
  221. <div v-if="t.tool == 67">分子结构</div>
  222. <div v-if="t.tool == 68">时间轴</div>
  223. <div v-if="t.tool == 69">英语写作</div>
  224. <div v-if="t.tool == 25">目标管理</div>
  225. <div v-if="t.tool == 26">课程设计</div>
  226. <div v-if="t.tool == 62">交互视频</div>
  227. </div>
  228. </div>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  236. <div class="new_topFixed"></div>
  237. <div class="new_top" :class="{ navLeftCss: !mlDialog }">
  238. <div class="courseIndex">
  239. <div>任务{{ taskCount + 1 }}</div>
  240. <el-tooltip
  241. effect="light"
  242. :content="
  243. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  244. "
  245. placement="top"
  246. >
  247. <div>
  248. {{
  249. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  250. .task
  251. }}
  252. </div>
  253. </el-tooltip>
  254. </div>
  255. <div class="btnAll">
  256. <div class="btnLeft">
  257. <el-tooltip effect="light" content="刷新" placement="top">
  258. <div class="reBtnIcon" @click="refreshCourse">
  259. <span>刷新</span>
  260. </div>
  261. </el-tooltip>
  262. <el-tooltip effect="light" content="评论" placement="top">
  263. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  264. <span>评论</span>
  265. </div>
  266. </el-tooltip>
  267. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  268. <el-tooltip effect="light" content="录制" placement="top">
  269. <div class="vedioIcon" @click="startRecording">
  270. <span>录制</span>
  271. </div>
  272. </el-tooltip>
  273. </div>
  274. <div v-else-if="tType == 1 || tType == 4">
  275. <el-tooltip effect="light" content="下载" placement="top">
  276. <div class="vedioIcon1" @click="stopRecording">
  277. <span>下载</span>
  278. </div>
  279. </el-tooltip>
  280. </div>
  281. </div>
  282. <div class="btnRight">
  283. <div
  284. class="last"
  285. @click="nextOrpreSteps(0)"
  286. v-if="!(IsFollow && tType == 2)"
  287. @mouseover="isHovered = true"
  288. @mouseout="isHovered = false"
  289. >
  290. <div class="lastImg">
  291. <img
  292. :src="
  293. isHovered
  294. ? require('../assets/icon/newIcons/whiteLast.png')
  295. : require('../assets/icon/newIcons/last.png')
  296. "
  297. alt=""
  298. />
  299. </div>
  300. <div class="lastText">上一步</div>
  301. </div>
  302. <div
  303. class="last"
  304. @click="nextOrpreSteps(1)"
  305. v-if="!(IsFollow && tType == 2)"
  306. @mouseover="isHovered1 = true"
  307. @mouseout="isHovered1 = false"
  308. >
  309. <div class="lastText">下一步</div>
  310. <div class="lastImg">
  311. <img
  312. :src="
  313. isHovered1
  314. ? require('../assets/icon/newIcons/whiteNext.png')
  315. : require('../assets/icon/newIcons/next.png')
  316. "
  317. alt=""
  318. />
  319. </div>
  320. </div>
  321. <div
  322. class="last"
  323. @click="juriVisible = true"
  324. v-if="tType == 1"
  325. @mouseover="isHovered2 = true"
  326. @mouseout="isHovered2 = false"
  327. >
  328. <div class="lastImg">
  329. <img
  330. :src="
  331. isHovered2
  332. ? require('../assets/icon/newIcons/whiteLock.png')
  333. : require('../assets/icon/newIcons/lock.png')
  334. "
  335. alt=""
  336. />
  337. </div>
  338. <div class="lastText">权限</div>
  339. </div>
  340. <div
  341. class="returnBtn1 returnIcon"
  342. @click.stop="
  343. goTo(
  344. '/courseDetail?userid=' +
  345. userid +
  346. '&oid=' +
  347. oid +
  348. '&org=' +
  349. org +
  350. '&cid=' +
  351. classId +
  352. '&courseId=' +
  353. id +
  354. '&tType=' +
  355. tType +
  356. '&screenType=' +
  357. screenType
  358. )
  359. "
  360. >
  361. <div class="lastImg">
  362. <img src="../assets/icon/newIcon/return.png" alt="" />
  363. </div>
  364. <div class="lastText" style="color: #000">返回</div>
  365. </div>
  366. </div>
  367. <!-- <div
  368. class="returnBtn lockIcon"
  369. @click="juriVisible = true"
  370. v-if="tType == 1"
  371. >
  372. 权限
  373. </div>
  374. <div
  375. class="returnBtn vedioIcon"
  376. @click="startRecording"
  377. v-if="!videoStart && (tType == 1 || tType == 4)"
  378. >
  379. 录制
  380. </div>
  381. <div
  382. class="returnBtn"
  383. @click="stopRecording"
  384. v-else-if="tType == 1 || tType == 4"
  385. style="background: #ee5255"
  386. >
  387. 下载
  388. </div>
  389. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  390. 评论
  391. </div>
  392. <div
  393. class="returnBtn"
  394. @click="nextOrpreSteps(0)"
  395. v-if="!(IsFollow && tType == 2)"
  396. >
  397. 上一步
  398. </div>
  399. <div
  400. class="returnBtn"
  401. @click="nextOrpreSteps(1)"
  402. v-if="!(IsFollow && tType == 2)"
  403. >
  404. 下一步
  405. </div>
  406. <div class="returnBtn" @click="refreshCourse">刷新</div>
  407. <div
  408. class="returnBtn returnIcon"
  409. @click.stop="
  410. goTo(
  411. '/courseDetail?userid=' +
  412. userid +
  413. '&oid=' +
  414. oid +
  415. '&org=' +
  416. org +
  417. '&cid=' +
  418. classId +
  419. '&courseId=' +
  420. id +
  421. '&tType=' +
  422. tType +
  423. '&screenType=' +
  424. screenType
  425. )
  426. "
  427. >
  428. 返回
  429. </div> -->
  430. </div>
  431. </div>
  432. <div
  433. class="isNoMessage"
  434. v-if="
  435. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  436. .chapterData.length == 0 &&
  437. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  438. .toolChoose[0].tool.length == 0 &&
  439. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  440. .taskDetail == '' &&
  441. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  442. .eList &&
  443. !(
  444. courseDetail.userid == userid ||
  445. (courseDetail.course_teacher &&
  446. courseDetail.course_teacher.indexOf(userid) != -1)
  447. )
  448. "
  449. >
  450. <img src="../assets/icon/isNoMessage.png" alt />
  451. </div>
  452. <div class="study_top" :class="{ pzClass: pzDialog }">
  453. <div
  454. class="vedioBox"
  455. v-if="
  456. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  457. .taskDetail != '' ||
  458. vChapterData[taskCount].length > 0 ||
  459. fileC[taskCount].length > 0
  460. "
  461. style="border-radius: 0 0 20px 20px"
  462. >
  463. <div
  464. class="taskBox"
  465. v-if="
  466. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  467. .taskDetail != ''
  468. "
  469. >
  470. <div
  471. style="
  472. display: flex;
  473. flex-wrap: nowrap;
  474. flex-direction: column;
  475. position: relative;
  476. "
  477. >
  478. <div
  479. style="
  480. padding: 15px 0;
  481. line-height: 29px;
  482. font-size: 18px;
  483. color: #0e1e33;
  484. "
  485. class="cont"
  486. v-if="
  487. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  488. .taskDetail != ''
  489. "
  490. v-html="
  491. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  492. .taskDetail
  493. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  494. taskCount
  495. ].taskDetail
  496. : '暂无描述'
  497. "
  498. ></div>
  499. </div>
  500. </div>
  501. <div
  502. class="student_head"
  503. v-if="
  504. vChapterData[taskCount].length > 0 ||
  505. fileC[taskCount].length > 0
  506. "
  507. >
  508. <div class="vedioTaskBox">
  509. <div
  510. :class="
  511. contentDialog == false
  512. ? 'box_course isContentCss'
  513. : 'box_course'
  514. "
  515. v-if="
  516. vChapterData.length > 0 &&
  517. vChapterData[taskCount] &&
  518. showType !== ''
  519. "
  520. >
  521. <div class="wheel" style="height: auto" v-if="showType === 0">
  522. <div
  523. class="workd_media"
  524. style="height: 650px; width: calc(100% - 50px)"
  525. >
  526. <video-player
  527. class="video-player vjs-custom-skin"
  528. :class="contentDialog == false ? 'isAllWidth' : ''"
  529. :playsinline="true"
  530. :options="playerO[taskCount]"
  531. @play="onPlayerPlay($event)"
  532. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  533. ></video-player>
  534. </div>
  535. </div>
  536. <div
  537. class="wheel"
  538. v-if="showType == 1"
  539. style="
  540. box-shadow: 0 0 6px 1px #f2f2f2;
  541. width: 95%;
  542. margin: 0 auto;
  543. background: #f1f1f1;
  544. "
  545. >
  546. <div class="title">查看文档</div>
  547. <el-form class="textBox">
  548. <el-form-item class="textTitle">
  549. <div style="font-size: 22px">
  550. {{ text.name }}
  551. </div>
  552. </el-form-item>
  553. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  554. <div v-html="text.url" class="textContent cont"></div>
  555. </el-form>
  556. </div>
  557. <div
  558. class="wheel"
  559. v-if="
  560. pptImgUrl1.indexOf(
  561. 'https://view.officeapps.live.com/op/view.aspx?src='
  562. ) != -1 && showType == 2
  563. "
  564. style="width: 95%; margin: 0 auto"
  565. >
  566. <iframe
  567. style="width: 100%; height: 100%; border: none"
  568. :src="pptImgUrl1"
  569. ></iframe>
  570. </div>
  571. <div
  572. class="wheel"
  573. v-else-if="showType == 2"
  574. style="width: 95%; margin: 0 auto"
  575. >
  576. <iframe
  577. style="width: 100%; height: 100%; border: none"
  578. security="restricted"
  579. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  580. :src="pptImgUrl1"
  581. ></iframe>
  582. </div>
  583. <div
  584. class="wheel"
  585. v-if="showType == 3"
  586. style="width: 95%; margin: 0 auto"
  587. >
  588. <pdf
  589. :pdfUrl="pptImgUrl1"
  590. style="width: 100%; height: 100%; overflow: auto"
  591. ></pdf>
  592. </div>
  593. <div
  594. class="wheel"
  595. v-if="showType == 4"
  596. style="width: 95%; margin: 0 auto"
  597. >
  598. <el-image
  599. :src="pptImgUrl1"
  600. fit="contain"
  601. style="width: 100%; height: 100%; cursor: pointer"
  602. @click="previewImg(pptImgUrl1)"
  603. ></el-image>
  604. </div>
  605. </div>
  606. <div
  607. class="pButton"
  608. style="position: absolute; right: 20px; top: 0; z-index: 998"
  609. v-if="!contentDialog"
  610. @click="setContent(true)"
  611. >
  612. <!-- 批 -->
  613. <img
  614. src="../assets/icon/newIcons/isLeft.png"
  615. style="width: 45px"
  616. alt=""
  617. />
  618. </div>
  619. <div
  620. v-if="contentDialog == true"
  621. :style="{
  622. width:
  623. (vChapterData[taskCount].length > 0 ||
  624. fileC[taskCount].length > 0) &&
  625. showType === ''
  626. ? 'calc(100%)'
  627. : '300px',
  628. margin:
  629. (vChapterData[taskCount].length > 0 ||
  630. fileC[taskCount].length > 0) &&
  631. showType === ''
  632. ? '0 15px'
  633. : '0 15px 0 0',
  634. }"
  635. >
  636. <div
  637. class="vedioList"
  638. v-if="
  639. vChapterData[taskCount].length > 0 ||
  640. fileC[taskCount].length > 0
  641. "
  642. style="height: 650px"
  643. >
  644. <div class="navCorOpenBox">
  645. <div class="navTitile">内容列表:</div>
  646. <div class="navCorOpen" @click="setContent(false)">
  647. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  648. </div>
  649. </div>
  650. <div class="navBox">
  651. <div
  652. v-show="
  653. vChapterData[taskCount].length > 0 ||
  654. fileC[taskCount].length > 0
  655. "
  656. style="padding: 10px 0 25px 0"
  657. >
  658. <div
  659. class="vedioTimeBox"
  660. v-for="(vitem, vindex) in vChapterData[taskCount]"
  661. :key="vindex + '1'"
  662. >
  663. <div class="navListItem" v-if="vitem.type == 2">
  664. <div
  665. @click="lookVedio(vitem.url, vindex)"
  666. class="navText"
  667. :class="isClickNav == vindex ? 'isClickNav' : ''"
  668. >
  669. <span v-if="vitem.text">{{ vitem.text }}-</span
  670. >{{ vitem.name }}
  671. </div>
  672. <div class="downIcon" @click="downloadFile2(vitem)">
  673. <img src="../assets/icon/newIcon/down.png" alt />
  674. </div>
  675. </div>
  676. <div class="navListItem" v-if="vitem.type == 6">
  677. <div
  678. @click="lookText(taskCount, vindex)"
  679. class="navText"
  680. :class="isClickNav == vindex ? 'isClickNav' : ''"
  681. >
  682. {{ vitem.name }}.doc
  683. </div>
  684. <div
  685. class="downIcon"
  686. @click="checkFileFull1(vitem.type, vitem)"
  687. >
  688. <img
  689. src="../assets/icon/newIcon/allScreen.png"
  690. alt
  691. />
  692. </div>
  693. </div>
  694. <div
  695. class="navListItem"
  696. v-if="vitem.type == 8 || vitem.type == 14"
  697. >
  698. <div
  699. @click="doUrl(vitem.url, vindex)"
  700. class="navText"
  701. :class="isClickNav == vindex ? 'isClickNav' : ''"
  702. >
  703. {{ vitem.title ? vitem.title : vitem.url }}
  704. </div>
  705. <div
  706. class="downIcon"
  707. @click="checkFileFull1(vitem.type, vitem)"
  708. >
  709. <img
  710. src="../assets/icon/newIcon/allScreen.png"
  711. alt
  712. />
  713. </div>
  714. </div>
  715. <div class="navListItem" v-if="vitem.type == 3">
  716. <div
  717. @click="downFile(vitem, vindex)"
  718. class="navText"
  719. :class="isClickNav == vindex ? 'isClickNav' : ''"
  720. >
  721. <span v-if="vitem.text">{{ vitem.text }}-</span
  722. >{{ vitem.name }}
  723. </div>
  724. <div class="downIcon" @click="downloadFile2(vitem)">
  725. <img src="../assets/icon/newIcon/down.png" alt />
  726. </div>
  727. <div
  728. class="downIcon"
  729. @click="checkFileFull1(vitem.type, vitem)"
  730. >
  731. <img
  732. src="../assets/icon/newIcon/allScreen.png"
  733. alt
  734. />
  735. </div>
  736. </div>
  737. <div class="navListItem" v-if="vitem.type == 12">
  738. <div class="navText" @click="downloadFile2(vitem)">
  739. <span v-if="vitem.text">{{ vitem.text }}-</span
  740. >{{ vitem.name }}
  741. </div>
  742. <div class="downIcon" @click="downloadFile2(vitem)">
  743. <img src="../assets/icon/newIcon/down.png" alt />
  744. </div>
  745. <div
  746. class="downIcon"
  747. @click="checkFileFull1(vitem.type, vitem)"
  748. >
  749. <img
  750. src="../assets/icon/newIcon/allScreen.png"
  751. alt
  752. />
  753. </div>
  754. </div>
  755. <div class="navListItem" v-if="vitem.type == 13">
  756. <div
  757. class="navText"
  758. @click="checkPhoto(vitem, vindex)"
  759. :class="isClickNav == vindex ? 'isClickNav' : ''"
  760. >
  761. {{ vitem.name }}
  762. </div>
  763. <div class="downIcon" @click="downloadFile2(vitem)">
  764. <img src="../assets/icon/newIcon/down.png" alt />
  765. </div>
  766. </div>
  767. </div>
  768. <div
  769. class="fileC_box"
  770. v-if="fileC[taskCount].length > 0"
  771. >
  772. <div class="fileC_title">以下文件不支持预览</div>
  773. <div
  774. class="vedioTimeBox"
  775. v-for="(vitem, vindex) in fileC[taskCount]"
  776. :key="vindex + '1'"
  777. >
  778. <div class="navListItem" v-if="vitem.type == 12">
  779. <div class="navText" style="color: #acb4bf">
  780. <span v-if="vitem.text">{{ vitem.text }}-</span
  781. >{{ vitem.name }}
  782. </div>
  783. <div
  784. class="downIcon"
  785. @click="downloadFile2(vitem)"
  786. >
  787. <img
  788. src="../assets/icon/newIcon/down.png"
  789. alt
  790. />
  791. </div>
  792. </div>
  793. </div>
  794. </div>
  795. </div>
  796. </div>
  797. </div>
  798. </div>
  799. </div>
  800. <div style="width: calc(100% - 315px)">
  801. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  802. <!-- <el-button
  803. type="primary"
  804. class="newButton"
  805. @click="checkFileFull(showType, pptImgUrl1)"
  806. >全屏查看</el-button
  807. >
  808. <el-button
  809. type="primary"
  810. class="newButton"
  811. @click="downloadFile(pptImgUrl1)"
  812. v-if="showType != 2"
  813. >文件下载</el-button
  814. > -->
  815. <el-button
  816. class="newButton"
  817. v-if="
  818. showType == 2 &&
  819. pptImgUrl1.indexOf(
  820. 'https://view.officeapps.live.com/op/view.aspx?src='
  821. ) == -1
  822. "
  823. type="primary"
  824. @click="openLine(pptImgUrl1)"
  825. >打开链接
  826. </el-button>
  827. </div>
  828. <!-- <div
  829. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  830. v-if="showType == 1"
  831. >
  832. <el-button
  833. type="primary"
  834. class="newButton"
  835. @click="checkFileFull(showType, text)"
  836. >全屏查看</el-button
  837. >
  838. </div> -->
  839. </div>
  840. </div>
  841. </div>
  842. <div class="student_body" v-resize="resize">
  843. <div
  844. class="vedioBox"
  845. :style="{
  846. borderRadius:
  847. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  848. .taskDetail == '' &&
  849. vChapterData[taskCount].length == 0 &&
  850. fileC[taskCount].length == 0
  851. ? '0 0 20px 20px'
  852. : '20px',
  853. }"
  854. v-if="
  855. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  856. .toolChoose[0].tool &&
  857. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  858. .toolChoose[0].tool.length > 0
  859. "
  860. >
  861. <div
  862. class="toolHeng2"
  863. style="position: relative"
  864. v-if="
  865. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  866. .toolChoose[0].tool &&
  867. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  868. .toolChoose[0].tool.length &&
  869. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  870. .toolChoose[0].tool.length > 0
  871. "
  872. >
  873. <div class="workNav">工作区</div>
  874. <div
  875. class="filebox"
  876. style="flex-wrap: nowrap"
  877. v-for="(tool, toolIndex) in chapInfoList[courseType]
  878. .chapterInfo[0].taskJson[taskCount].toolChoose"
  879. :key="toolIndex"
  880. >
  881. <div class="bzBox">
  882. <div class="yCss"></div>
  883. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  884. 步骤{{ toolIndex + 1 }}
  885. </div>
  886. <div
  887. v-if="timeWorkList[toolIndex].length > 0"
  888. style="margin: 0 0 0 10px"
  889. >
  890. {{
  891. timeWorkList[toolIndex][0].time
  892. ? "时间:" + timeWorkList[toolIndex][0].time
  893. : ""
  894. }}
  895. </div>
  896. </div>
  897. <div class="toolBox">
  898. <div>
  899. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  900. :key="indexTool"-->
  901. <!-- <div class="iframeBox">
  902. <div
  903. class="addPoint isBorder"
  904. v-for="(tooC, toolCIndex) in tool.tool"
  905. :key="toolCIndex"
  906. >
  907. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  908. <div
  909. class="iframeName"
  910. >
  911. 电子白板
  912. </div>
  913. <iframe
  914. src="https://iwb.cocorobo.cn/"
  915. ref="whiteBoard"
  916. ></iframe>
  917. </div>
  918. </div>
  919. </div>-->
  920. <div class="noiframeBox">
  921. <div
  922. class="addPoint"
  923. v-for="(tooC, toolCIndex) in tool.tool"
  924. :key="toolCIndex"
  925. >
  926. <div v-if="tooC == 1">
  927. <img
  928. src="../assets/icon/secondToolList/whiteBoard.png"
  929. alt
  930. @click="addTools(tooC, toolIndex, taskCount)"
  931. />
  932. <div style="margin: 5px 0">电子白板</div>
  933. </div>
  934. <div v-if="tooC == 3">
  935. <img
  936. src="../assets/icon/secondToolList/mindMapping.png"
  937. alt
  938. @click="addTools(tooC, toolIndex, taskCount)"
  939. />
  940. <div style="margin: 5px 0">思维导图</div>
  941. </div>
  942. <div v-if="tooC == 6">
  943. <img
  944. src="../assets/icon/secondToolList/doc.png"
  945. alt
  946. @click="addTools(tooC, toolIndex, taskCount)"
  947. />
  948. <div style="margin: 5px 0">协同文档</div>
  949. </div>
  950. <div v-if="tooC == 7">
  951. <img
  952. src="../assets/icon/secondToolList/mindNetwork.png"
  953. alt
  954. @click="addTools(tooC, toolIndex, taskCount)"
  955. />
  956. <div style="margin: 5px 0">思维网格</div>
  957. </div>
  958. <div v-if="tooC == 8">
  959. <img
  960. src="../assets/icon/secondToolList/library.png"
  961. alt
  962. @click="addTools(tooC, toolIndex, taskCount)"
  963. />
  964. <div style="margin: 5px 0">素材库</div>
  965. </div>
  966. <div v-if="tooC == 17">
  967. <img
  968. src="../assets/icon/secondToolList/library.png"
  969. alt
  970. @click="addTools(tooC, toolIndex, taskCount)"
  971. />
  972. <div style="margin: 5px 0">学习资料</div>
  973. </div>
  974. <div v-if="tooC == 2">
  975. <img
  976. @click="addTools(tooC, toolIndex, taskCount)"
  977. src="../assets/icon/secondToolList/note.png"
  978. alt
  979. />
  980. <div style="margin: 5px 0">便签</div>
  981. </div>
  982. <div v-if="tooC == 4">
  983. <img
  984. @click="addTools(tooC, toolIndex, taskCount)"
  985. src="../assets/icon/thirdToolList/ask.png"
  986. alt
  987. />
  988. <div style="margin: 5px 0">问卷调查</div>
  989. </div>
  990. <div v-if="tooC == 45">
  991. <img
  992. @click="addTools(tooC, toolIndex, taskCount)"
  993. src="../assets/icon/thirdToolList/choose.png"
  994. alt
  995. />
  996. <div style="margin: 5px 0">选择题</div>
  997. </div>
  998. <!-- <div v-if="tooC == 5">
  999. <img
  1000. @click="addTools(tooC, toolIndex, taskCount)"
  1001. src="../assets/icon/thirdToolList/score.png"
  1002. alt
  1003. />
  1004. <div style="margin: 5px 0">量规评分</div>
  1005. </div> -->
  1006. <div v-if="tooC == 10">
  1007. <img
  1008. @click="addTools(tooC, toolIndex, taskCount)"
  1009. src="../assets/icon/thirdToolList/time.png"
  1010. alt
  1011. />
  1012. <div style="margin: 5px 0">倒计时</div>
  1013. </div>
  1014. <div v-if="tooC == 15">
  1015. <img
  1016. @click="addTools(tooC, toolIndex, taskCount)"
  1017. src="../assets/icon/thirdToolList/answer.png"
  1018. alt
  1019. />
  1020. <div style="margin: 5px 0">问答</div>
  1021. </div>
  1022. <div v-if="tooC == 26">
  1023. <img
  1024. @click="addTools(tooC, toolIndex, taskCount)"
  1025. src="../assets/icon/thirdToolList/courseDesign.png"
  1026. alt
  1027. />
  1028. <div style="margin: 5px 0">课程设计</div>
  1029. </div>
  1030. <div v-if="tooC == 18">
  1031. <img
  1032. @click="addTools(tooC, toolIndex, taskCount)"
  1033. src="../assets/icon/thirdToolList/trainPlatform.png"
  1034. alt
  1035. />
  1036. <div style="margin: 5px 0">训练服务器</div>
  1037. </div>
  1038. <div v-if="tooC == 16">
  1039. <img
  1040. @click="addTools(tooC, toolIndex, taskCount)"
  1041. src="../assets/icon/thirdToolList/work.png"
  1042. alt
  1043. />
  1044. <div style="margin: 5px 0">作业提交</div>
  1045. </div>
  1046. <div v-if="tooC == 50">
  1047. <img
  1048. @click="addTools(tooC, toolIndex, taskCount)"
  1049. src="../assets/icon/thirdToolList/plwork.png"
  1050. alt
  1051. />
  1052. <div style="margin: 5px 0">批量上传</div>
  1053. </div>
  1054. <div v-if="tooC == 21">
  1055. <img
  1056. @click="addTools(tooC, toolIndex, taskCount)"
  1057. src="../assets/icon/fourthToolList/program.png"
  1058. alt
  1059. />
  1060. <div style="margin: 5px 0">AIoT Blockly</div>
  1061. </div>
  1062. <!-- <div v-if="tooC == 22">
  1063. <img
  1064. @click="addTools(tooC, toolIndex, taskCount)"
  1065. src="../assets/icon/fourthToolList/program.png"
  1066. alt
  1067. />
  1068. <div style="margin: 5px 0">AI体验</div>
  1069. </div> -->
  1070. <div v-if="tooC == 23">
  1071. <img
  1072. @click="addTools(tooC, toolIndex, taskCount)"
  1073. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1074. alt
  1075. />
  1076. <div style="margin: 5px 0">AI Python</div>
  1077. </div>
  1078. <div v-if="tooC == 24">
  1079. <img
  1080. @click="addTools(tooC, toolIndex, taskCount)"
  1081. src="../assets/icon/fourthToolList/AIprogram.png"
  1082. alt
  1083. />
  1084. <div style="margin: 5px 0">AI Blockly</div>
  1085. </div>
  1086. <div v-if="tooC == 25">
  1087. <img
  1088. @click="addTools(tooC, toolIndex, taskCount)"
  1089. src="../assets/icon/thirdToolList/evalua.png"
  1090. alt
  1091. />
  1092. <div style="margin: 5px 0">目标管理</div>
  1093. </div>
  1094. <div v-if="tooC == 31">
  1095. <img
  1096. @click="addTools(tooC, toolIndex, taskCount)"
  1097. src="../assets/icon/secondToolList/networkPanel.png"
  1098. alt
  1099. />
  1100. <div style="margin: 5px 0">数学画板</div>
  1101. </div>
  1102. <div v-if="tooC == 28">
  1103. <img
  1104. @click="addTools(tooC, toolIndex, taskCount)"
  1105. src="../assets/icon/secondToolList/translation.png"
  1106. alt
  1107. />
  1108. <div style="margin: 5px 0">翻译</div>
  1109. </div>
  1110. <div v-if="tooC == 37">
  1111. <img
  1112. @click="addTools(tooC, toolIndex, taskCount)"
  1113. src="../assets/icon/secondToolList/mohe.png"
  1114. alt
  1115. />
  1116. <div style="margin: 5px 0">魔盒识字</div>
  1117. </div>
  1118. <div v-if="tooC == 38">
  1119. <img
  1120. @click="addTools(tooC, toolIndex, taskCount)"
  1121. src="../assets/icon/secondToolList/24game.png"
  1122. alt
  1123. />
  1124. <div style="margin: 5px 0">24点</div>
  1125. </div>
  1126. <div v-if="tooC == 39">
  1127. <img
  1128. @click="addTools(tooC, toolIndex, taskCount)"
  1129. src="../assets/icon/secondToolList/GeoGebra.png"
  1130. alt
  1131. />
  1132. <div style="margin: 5px 0">GeoGebra</div>
  1133. </div>
  1134. <div v-if="tooC == 32">
  1135. <img
  1136. @click="addTools(tooC, toolIndex, taskCount)"
  1137. src="../assets/icon/thirdToolList/code.png"
  1138. alt
  1139. />
  1140. <div style="margin: 5px 0">源码编辑</div>
  1141. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1142. style="position: absolute;left: 110px;bottom: 30px;">
  1143. 上传文件
  1144. <input type="file" accept="*" style="display: none"
  1145. @change="beforeUpload1($event, 7, toolIndex)" />
  1146. </div> -->
  1147. </div>
  1148. <div v-if="tooC == 40">
  1149. <img
  1150. @click="addTools(tooC, toolIndex, taskCount)"
  1151. src="../assets/icon/secondToolList/eval.png"
  1152. alt
  1153. />
  1154. <div style="margin: 5px 0">个人评价</div>
  1155. </div>
  1156. <div v-if="tooC == 41">
  1157. <img
  1158. @click="addTools(tooC, toolIndex, taskCount)"
  1159. src="../assets/icon/thirdToolList/select.png"
  1160. alt
  1161. />
  1162. <div style="margin: 5px 0">选择匹配</div>
  1163. </div>
  1164. <div v-if="tooC == 44">
  1165. <img
  1166. @click="addTools(tooC, toolIndex, taskCount)"
  1167. src="../assets/icon/thirdToolList/hanClass.png"
  1168. alt
  1169. />
  1170. <div style="margin: 5px 0">汉字宫</div>
  1171. </div>
  1172. <div v-if="tooC == 47">
  1173. <img
  1174. @click="addTools(tooC, toolIndex, taskCount)"
  1175. src="../assets/icon/fourthToolList/conSentences.png"
  1176. alt
  1177. />
  1178. <div style="margin: 5px 0">排序</div>
  1179. </div>
  1180. <div v-if="tooC == 48">
  1181. <img
  1182. @click="addTools(tooC, toolIndex, taskCount)"
  1183. src="../assets/icon/fourthToolList/table.png"
  1184. alt
  1185. />
  1186. <div style="margin: 5px 0">表格</div>
  1187. </div>
  1188. <div v-if="tooC == 52">
  1189. <img
  1190. @click="addTools(tooC, toolIndex, taskCount)"
  1191. src="../assets/icon/fourthToolList/text.png"
  1192. alt
  1193. />
  1194. <div style="margin: 5px 0">文档</div>
  1195. </div>
  1196. <div v-if="tooC == 49">
  1197. <img
  1198. @click="addTools(tooC, toolIndex, taskCount)"
  1199. src="../assets/icon/fourthToolList/group.png"
  1200. alt
  1201. />
  1202. <div style="margin: 5px 0">学生分组</div>
  1203. </div>
  1204. <div v-if="tooC == 57">
  1205. <img
  1206. @click="addTools(tooC, toolIndex, taskCount)"
  1207. src="../assets/icon/fourthToolList/cocopi.png"
  1208. alt
  1209. />
  1210. <div style="margin: 5px 0">CocoPi</div>
  1211. </div>
  1212. <div v-if="tooC == 58">
  1213. <img
  1214. @click="addTools(tooC, toolIndex, taskCount)"
  1215. src="../assets/icon/fourthToolList/car.png"
  1216. alt
  1217. />
  1218. <div style="margin: 5px 0">模拟驾驶</div>
  1219. </div>
  1220. <div v-if="tooC == 59">
  1221. <img
  1222. @click="addTools(tooC, toolIndex, taskCount)"
  1223. src="../assets/icon/fourthToolList/lineSearch.png"
  1224. alt
  1225. />
  1226. <div style="margin: 5px 0">路径搜索</div>
  1227. </div>
  1228. <div v-if="tooC == 60">
  1229. <img
  1230. @click="addTools(tooC, toolIndex, taskCount)"
  1231. src="../assets/icon/fourthToolList/deepLearning.png"
  1232. alt
  1233. />
  1234. <div style="margin: 5px 0">深度学习</div>
  1235. </div>
  1236. <div v-if="tooC == 61">
  1237. <img
  1238. @click="addTools(tooC, toolIndex, taskCount)"
  1239. src="../assets/icon/fourthToolList/allHistory.png"
  1240. alt
  1241. />
  1242. <div style="margin: 5px 0">全历史</div>
  1243. </div>
  1244. <div v-if="tooC == 62">
  1245. <img
  1246. @click="addTools(tooC, toolIndex, taskCount)"
  1247. src="../assets/icon/fourthToolList/interVideo.png"
  1248. alt
  1249. />
  1250. <div style="margin: 5px 0">交互视频</div>
  1251. </div>
  1252. <div v-if="tooC == 63">
  1253. <img
  1254. @click="addTools(tooC, toolIndex, taskCount)"
  1255. src="../assets/icon/fourthToolList/Wood.png"
  1256. alt
  1257. />
  1258. <div style="margin: 5px 0">海龟编程</div>
  1259. </div>
  1260. <div v-if="tooC == 65">
  1261. <img
  1262. @click="addTools(tooC, toolIndex, taskCount)"
  1263. src="../assets/icon/firstToolList/pickPeople.png"
  1264. alt
  1265. />
  1266. <div style="margin: 5px 0">挑人</div>
  1267. </div>
  1268. <div v-if="tooC == 66">
  1269. <img
  1270. @click="addTools(tooC, toolIndex, taskCount)"
  1271. src="../assets/icon/secondToolList/formulaEdi.png"
  1272. alt
  1273. />
  1274. <div style="margin: 5px 0">公式编辑</div>
  1275. </div>
  1276. <div v-if="tooC == 67">
  1277. <img
  1278. @click="addTools(tooC, toolIndex, taskCount)"
  1279. src="../assets/icon/secondToolList/molStr.png"
  1280. alt
  1281. />
  1282. <div style="margin: 5px 0">分子结构</div>
  1283. </div>
  1284. <div v-if="tooC == 68">
  1285. <img
  1286. @click="addTools(tooC, toolIndex, taskCount)"
  1287. src="../assets/icon/secondToolList/timeAxis.png"
  1288. alt
  1289. />
  1290. <div style="margin: 5px 0">时间轴</div>
  1291. </div>
  1292. <div v-if="tooC == 69">
  1293. <img
  1294. @click="addTools(tooC, toolIndex, taskCount)"
  1295. src="../assets/icon/secondToolList/english.png"
  1296. alt
  1297. />
  1298. <div style="margin: 5px 0">英语写作</div>
  1299. </div>
  1300. </div>
  1301. </div>
  1302. </div>
  1303. <div class="tooldetail" v-if="tool.toolDetail != ''">
  1304. <!-- <div class="toolTitle">工具描述</div> -->
  1305. <div
  1306. v-html="contentConvent(tool.toolDetail)"
  1307. v-if="toolDetailIndex != toolIndex"
  1308. @click.stop="updateToolDetail(toolIndex)"
  1309. ></div>
  1310. <div v-else @click.stop="">
  1311. <el-input
  1312. type="textarea"
  1313. :rows="3"
  1314. resize="none"
  1315. v-model="updateToolDetailInner"
  1316. placeholder="请输入任务描述"
  1317. ></el-input>
  1318. </div>
  1319. </div>
  1320. <el-button
  1321. type="primary"
  1322. v-if="tool.tool[0] == 32"
  1323. style="position: absolute; right: 30px; top: 30px"
  1324. @click="addImg($event)"
  1325. >上传作业<input
  1326. type="file"
  1327. accept="*"
  1328. style="display: none"
  1329. @change="beforeUpload1($event, 7, toolIndex)"
  1330. /></el-button>
  1331. <el-button
  1332. type="primary"
  1333. v-if="tool.tool[0] == 15"
  1334. style="position: absolute; right: 30px; top: 30px"
  1335. @click="openWordCloud(toolIndex)"
  1336. >生成词云</el-button
  1337. >
  1338. <el-button
  1339. type="primary"
  1340. v-if="
  1341. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1342. "
  1343. style="position: absolute; right: 30px; top: 30px"
  1344. @click="uploadWorks(toolIndex)"
  1345. >导出作业</el-button
  1346. >
  1347. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1348. position: absolute;
  1349. right: 30px;
  1350. transform: translateY(-130%);
  1351. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1352. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1353. </div>
  1354. <div
  1355. v-if="
  1356. tType &&
  1357. tType == 2 &&
  1358. !sIsOpen &&
  1359. tool.tool.indexOf(16) != -1
  1360. "
  1361. class="worksBox"
  1362. >
  1363. <div
  1364. class="zuoyeYulan"
  1365. v-if="workStudent[toolIndex].length > 0"
  1366. >
  1367. <span class="worksTitle">作业预览</span>
  1368. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1369. </div>
  1370. <div
  1371. class="worksDetailBox"
  1372. v-if="workStudent[toolIndex].length > 0"
  1373. >
  1374. <div
  1375. class="works"
  1376. style="
  1377. width: 200px;
  1378. height: 140px;
  1379. margin: 10px 10px 10px 0;
  1380. box-shadow: 0 0 6px 1px #dfdada;
  1381. "
  1382. v-for="(w, wIndex) in workStudent[toolIndex]"
  1383. :key="wIndex"
  1384. >
  1385. <div class="workImg" v-if="w.type == 0">
  1386. <img
  1387. :src="w.works"
  1388. @click="previewImg(w.works)"
  1389. alt
  1390. />
  1391. <div
  1392. class="answerScore"
  1393. v-if="w.score"
  1394. @click.stop="openScore(w)"
  1395. :class="{
  1396. rightW:
  1397. w.userid == userid || tType == 1 || tType == 4,
  1398. }"
  1399. >
  1400. {{ JSON.parse(w.score).wScore }}分
  1401. </div>
  1402. <div
  1403. class="answerScore"
  1404. @click.stop="openScore(w)"
  1405. v-else-if="courseDetail.userid == userid"
  1406. :class="{
  1407. rightW:
  1408. w.userid == userid || tType == 1 || tType == 4,
  1409. }"
  1410. >
  1411. 评分
  1412. </div>
  1413. <img
  1414. class="deleteImg"
  1415. src="../assets/deleteworks.png"
  1416. v-if="
  1417. w.userid == userid || tType == 1 || tType == 4
  1418. "
  1419. @click.stop="deleteWorks(w.wid)"
  1420. alt
  1421. />
  1422. </div>
  1423. <div class="workImg" v-if="w.type == 1">
  1424. <img :src="word" @click="openFile(w.works)" alt />
  1425. <div
  1426. class="answerScore"
  1427. v-if="w.score"
  1428. @click.stop="openScore(w)"
  1429. :class="{
  1430. rightW:
  1431. w.userid == userid || tType == 1 || tType == 4,
  1432. }"
  1433. >
  1434. {{ JSON.parse(w.score).wScore }}分
  1435. </div>
  1436. <div
  1437. class="answerScore"
  1438. @click.stop="openScore(w)"
  1439. v-else-if="courseDetail.userid == userid"
  1440. :class="{
  1441. rightW:
  1442. w.userid == userid || tType == 1 || tType == 4,
  1443. }"
  1444. >
  1445. 评分
  1446. </div>
  1447. <img
  1448. class="deleteImg"
  1449. src="../assets/deleteworks.png"
  1450. v-if="
  1451. w.userid == userid || tType == 1 || tType == 4
  1452. "
  1453. @click.stop="deleteWorks(w.wid)"
  1454. alt
  1455. />
  1456. </div>
  1457. <div class="workImg" v-if="w.type == 3">
  1458. <img
  1459. style="cursor: pointer"
  1460. :src="video"
  1461. @click="openVideo(w)"
  1462. alt
  1463. />
  1464. <div
  1465. class="answerScore"
  1466. v-if="w.score"
  1467. @click.stop="openScore(w)"
  1468. :class="{
  1469. rightW:
  1470. w.userid == userid || tType == 1 || tType == 4,
  1471. }"
  1472. >
  1473. {{ JSON.parse(w.score).wScore }}分
  1474. </div>
  1475. <div
  1476. class="answerScore"
  1477. @click.stop="openScore(w)"
  1478. v-else-if="courseDetail.userid == userid"
  1479. :class="{
  1480. rightW:
  1481. w.userid == userid || tType == 1 || tType == 4,
  1482. }"
  1483. >
  1484. 评分
  1485. </div>
  1486. <img
  1487. class="deleteImg"
  1488. src="../assets/deleteworks.png"
  1489. v-if="
  1490. w.userid == userid || tType == 1 || tType == 4
  1491. "
  1492. @click.stop="deleteWorks(w.wid)"
  1493. alt
  1494. />
  1495. </div>
  1496. <div class="workImg" v-if="w.type == 12">
  1497. <img
  1498. style="cursor: pointer"
  1499. :src="word2"
  1500. @click="downloadFile(w.works)"
  1501. alt
  1502. />
  1503. <div
  1504. class="answerScore"
  1505. v-if="w.score"
  1506. @click.stop="openScore(w)"
  1507. :class="{
  1508. rightW:
  1509. w.userid == userid || tType == 1 || tType == 4,
  1510. }"
  1511. >
  1512. {{ JSON.parse(w.score).wScore }}分
  1513. </div>
  1514. <div
  1515. class="answerScore"
  1516. @click.stop="openScore(w)"
  1517. v-else-if="courseDetail.userid == userid"
  1518. :class="{
  1519. rightW:
  1520. w.userid == userid || tType == 1 || tType == 4,
  1521. }"
  1522. >
  1523. 评分
  1524. </div>
  1525. <img
  1526. class="deleteImg"
  1527. src="../assets/deleteworks.png"
  1528. v-if="
  1529. w.userid == userid || tType == 1 || tType == 4
  1530. "
  1531. @click.stop="deleteWorks(w.wid)"
  1532. alt
  1533. />
  1534. </div>
  1535. <div class="worksName">
  1536. <div>{{ w.sName }}</div>
  1537. </div>
  1538. </div>
  1539. </div>
  1540. </div>
  1541. <div
  1542. v-if="
  1543. tType &&
  1544. tType == 2 &&
  1545. !sIsOpen &&
  1546. tool.tool.indexOf(32) != -1
  1547. "
  1548. class="worksBox"
  1549. >
  1550. <div
  1551. class="zuoyeYulan"
  1552. v-if="workStudent[toolIndex].length > 0"
  1553. >
  1554. <span class="worksTitle">作业预览</span>
  1555. </div>
  1556. <div
  1557. class="worksDetailBox"
  1558. v-if="workStudent[toolIndex].length > 0"
  1559. >
  1560. <div
  1561. class="works"
  1562. style="
  1563. width: 200px;
  1564. height: 140px;
  1565. margin: 10px 10px 10px 0;
  1566. box-shadow: 0 0 6px 1px #dfdada;
  1567. "
  1568. v-for="(w, wIndex) in workStudent[toolIndex]"
  1569. :key="wIndex"
  1570. >
  1571. <div class="workImg">
  1572. <img
  1573. :src="word2"
  1574. @click="downloadFile(w.works)"
  1575. alt
  1576. />
  1577. <div
  1578. class="answerScore"
  1579. v-if="w.score"
  1580. @click.stop="openScore(w)"
  1581. :class="{
  1582. rightW:
  1583. w.userid == userid || tType == 1 || tType == 4,
  1584. }"
  1585. >
  1586. {{ JSON.parse(w.score).wScore }}分
  1587. </div>
  1588. <div
  1589. class="answerScore"
  1590. @click.stop="openScore(w)"
  1591. v-else-if="courseDetail.userid == userid"
  1592. :class="{
  1593. rightW:
  1594. w.userid == userid || tType == 1 || tType == 4,
  1595. }"
  1596. >
  1597. 评分
  1598. </div>
  1599. <img
  1600. class="deleteImg"
  1601. src="../assets/deleteworks.png"
  1602. v-if="
  1603. w.userid == userid || tType == 1 || tType == 4
  1604. "
  1605. @click.stop="deleteWorks(w.wid)"
  1606. alt
  1607. />
  1608. </div>
  1609. <div class="worksName">
  1610. <div>{{ w.sName }}</div>
  1611. </div>
  1612. </div>
  1613. </div>
  1614. </div>
  1615. <div
  1616. v-if="
  1617. tType &&
  1618. tType == 2 &&
  1619. !sIsOpen &&
  1620. tool.tool.indexOf(57) != -1
  1621. "
  1622. class="worksBox"
  1623. >
  1624. <div
  1625. class="zuoyeYulan"
  1626. v-if="workStudent[toolIndex].length > 0"
  1627. >
  1628. <span class="worksTitle">作业预览</span>
  1629. </div>
  1630. <div
  1631. class="worksDetailBox"
  1632. v-if="workStudent[toolIndex].length > 0"
  1633. >
  1634. <div
  1635. class="works"
  1636. style="
  1637. width: 200px;
  1638. height: 140px;
  1639. margin: 10px 10px 10px 0;
  1640. box-shadow: 0 0 6px 1px #dfdada;
  1641. "
  1642. v-for="(w, wIndex) in workStudent[toolIndex]"
  1643. :key="wIndex"
  1644. >
  1645. <div class="workImg">
  1646. <img
  1647. :src="word2"
  1648. @click="downloadFile(w.works)"
  1649. v-if="w.type == 12"
  1650. alt
  1651. />
  1652. <img
  1653. :src="word2"
  1654. @click="
  1655. openCocoPi(57, toolIndex, w.userid, w.sName)
  1656. "
  1657. v-else-if="w.type == 15"
  1658. alt
  1659. />
  1660. <div
  1661. class="answerScore"
  1662. v-if="w.score"
  1663. @click.stop="openScore(w)"
  1664. :class="{
  1665. rightW:
  1666. w.userid == userid || tType == 1 || tType == 4,
  1667. }"
  1668. >
  1669. {{ JSON.parse(w.score).wScore }}分
  1670. </div>
  1671. <div
  1672. class="answerScore"
  1673. @click.stop="openScore(w)"
  1674. v-else-if="courseDetail.userid == userid"
  1675. :class="{
  1676. rightW:
  1677. w.userid == userid || tType == 1 || tType == 4,
  1678. }"
  1679. >
  1680. 评分
  1681. </div>
  1682. <img
  1683. class="deleteImg"
  1684. src="../assets/deleteworks.png"
  1685. v-if="
  1686. w.userid == userid || tType == 1 || tType == 4
  1687. "
  1688. @click.stop="deleteWorks(w.wid)"
  1689. alt
  1690. />
  1691. </div>
  1692. <div class="worksName">
  1693. <div>{{ w.sName }}</div>
  1694. </div>
  1695. </div>
  1696. </div>
  1697. </div>
  1698. <div
  1699. v-if="
  1700. tType &&
  1701. tType == 2 &&
  1702. !sIsOpen &&
  1703. tool.tool.indexOf(4) != -1
  1704. "
  1705. class="worksBox"
  1706. >
  1707. <div
  1708. class="zuoyeYulan"
  1709. v-if="workStudent[toolIndex].length > 0"
  1710. >
  1711. <span class="worksTitle">作业预览</span>
  1712. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1713. </div>
  1714. <div
  1715. class="worksDetailBox"
  1716. v-if="workStudent[toolIndex].length > 0"
  1717. >
  1718. <div
  1719. class="isWorksName2"
  1720. v-for="(w, wIndex) in workStudent[toolIndex]"
  1721. :key="wIndex"
  1722. @click="
  1723. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1724. "
  1725. >
  1726. {{ w.sName }}
  1727. <img
  1728. class="deleteImg deleteImg2"
  1729. src="../assets/deleteworks.png"
  1730. v-if="w.userid == userid || tType == 1 || tType == 4"
  1731. @click.stop="deleteWorks(w.wid)"
  1732. alt
  1733. />
  1734. </div>
  1735. <!-- <div
  1736. class="works"
  1737. style="
  1738. width: 200px;
  1739. height: 140px;
  1740. border-radius: 10px;
  1741. box-shadow: 0 0 6px 1px #dfdada;
  1742. overflow: hidden;
  1743. "
  1744. v-for="(w, wIndex) in workStudent[toolIndex]"
  1745. :key="wIndex"
  1746. >
  1747. <div class="workImg">
  1748. <img
  1749. src="../assets/icon/works/noImg.png"
  1750. @click="
  1751. openTools(
  1752. 4,
  1753. toolIndex,
  1754. taskCount,
  1755. w.works,
  1756. w.sName
  1757. )
  1758. "
  1759. alt
  1760. />
  1761. </div>
  1762. <div class="worksName">
  1763. <div>{{ w.sName }}</div>
  1764. <div>{{ w.time }}</div>
  1765. </div>
  1766. </div> -->
  1767. </div>
  1768. </div>
  1769. <div
  1770. v-if="
  1771. tType &&
  1772. tType == 2 &&
  1773. !sIsOpen &&
  1774. tool.tool.indexOf(45) != -1
  1775. "
  1776. class="worksBox"
  1777. >
  1778. <div
  1779. class="zuoyeYulan"
  1780. v-if="workStudent[toolIndex].length > 0"
  1781. >
  1782. <span class="worksTitle">作业预览</span>
  1783. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1784. </div>
  1785. <div
  1786. class="worksDetailBox"
  1787. v-if="workStudent[toolIndex].length > 0"
  1788. >
  1789. <div
  1790. class="isWorksName2"
  1791. v-for="(w, wIndex) in workStudent[toolIndex]"
  1792. :key="wIndex"
  1793. @click="
  1794. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1795. "
  1796. >
  1797. {{ w.sName }}
  1798. <img
  1799. class="deleteImg deleteImg2"
  1800. src="../assets/deleteworks.png"
  1801. v-if="w.userid == userid || tType == 1 || tType == 4"
  1802. @click.stop="deleteWorks(w.wid)"
  1803. alt
  1804. />
  1805. </div>
  1806. </div>
  1807. </div>
  1808. <div
  1809. v-if="
  1810. tType &&
  1811. tType == 2 &&
  1812. !sIsOpen &&
  1813. tool.tool.indexOf(69) != -1
  1814. "
  1815. class="worksBox"
  1816. >
  1817. <div
  1818. class="zuoyeYulan"
  1819. v-if="workStudent[toolIndex].length > 0"
  1820. >
  1821. <span class="worksTitle">作业预览</span>
  1822. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1823. </div>
  1824. <div
  1825. class="worksDetailBox"
  1826. v-if="workStudent[toolIndex].length > 0"
  1827. >
  1828. <div
  1829. class="isWorksName2"
  1830. v-for="(w, wIndex) in workStudent[toolIndex]"
  1831. :key="wIndex"
  1832. @click="
  1833. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1834. "
  1835. >
  1836. {{ w.sName }}
  1837. <img
  1838. class="deleteImg deleteImg2"
  1839. src="../assets/deleteworks.png"
  1840. v-if="w.userid == userid || tType == 1 || tType == 4"
  1841. @click.stop="deleteWorks(w.wid)"
  1842. alt
  1843. />
  1844. </div>
  1845. </div>
  1846. </div>
  1847. <div
  1848. v-if="
  1849. tType &&
  1850. tType == 2 &&
  1851. !sIsOpen &&
  1852. tool.tool.indexOf(15) != -1
  1853. "
  1854. class="worksBox"
  1855. >
  1856. <div
  1857. class="zuoyeYulan"
  1858. v-if="workStudent[toolIndex].length > 0"
  1859. >
  1860. <span class="worksTitle">作业预览</span>
  1861. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1862. </div>
  1863. <div
  1864. class="worksDetailBox"
  1865. v-if="workStudent[toolIndex].length > 0"
  1866. >
  1867. <div
  1868. class="works"
  1869. v-for="(w, wIndex) in workStudent[toolIndex]"
  1870. :key="wIndex"
  1871. >
  1872. <div class="workImg">
  1873. <!-- <img
  1874. src="../assets/icon/works/noImg.png"
  1875. @click="openTools(15, toolIndex, taskCount, w.works)"
  1876. alt=""
  1877. />-->
  1878. <div class="answerBg">
  1879. <!-- <div>{{ w.sName }}</div> -->
  1880. <el-tooltip
  1881. class="item"
  1882. effect="light"
  1883. :content="JSON.parse(w.works)[0].answer"
  1884. placement="top"
  1885. >
  1886. <div class="answerContent">
  1887. {{ JSON.parse(w.works)[0].answer }}
  1888. </div>
  1889. </el-tooltip>
  1890. <div
  1891. class="answerScore"
  1892. v-if="w.score"
  1893. @click.stop="openScore(w)"
  1894. :class="{
  1895. rightW:
  1896. w.userid == userid ||
  1897. tType == 1 ||
  1898. tType == 4,
  1899. }"
  1900. >
  1901. {{ JSON.parse(w.score).wScore }}分
  1902. </div>
  1903. <div
  1904. class="answerScore"
  1905. @click.stop="openScore(w)"
  1906. v-else-if="courseDetail.userid == userid"
  1907. :class="{
  1908. rightW:
  1909. w.userid == userid ||
  1910. tType == 1 ||
  1911. tType == 4,
  1912. }"
  1913. >
  1914. 评分
  1915. </div>
  1916. <img
  1917. class="deleteImg"
  1918. src="../assets/deleteworks.png"
  1919. v-if="
  1920. w.userid == userid || tType == 1 || tType == 4
  1921. "
  1922. @click.stop="deleteWorks(w.wid)"
  1923. alt
  1924. />
  1925. </div>
  1926. <div class="comment">
  1927. <div class="worksName">
  1928. <div>{{ w.sName }}</div>
  1929. </div>
  1930. </div>
  1931. </div>
  1932. </div>
  1933. </div>
  1934. </div>
  1935. <div
  1936. v-if="
  1937. tType &&
  1938. tType == 2 &&
  1939. !sIsOpen &&
  1940. tool.tool.indexOf(1) != -1
  1941. "
  1942. class="worksBox"
  1943. >
  1944. <div
  1945. class="zuoyeYulan"
  1946. v-if="workStudent[toolIndex].length > 0"
  1947. >
  1948. <span class="worksTitle">作业预览</span>
  1949. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1950. </div>
  1951. <div
  1952. class="worksDetailBox"
  1953. v-if="workStudent[toolIndex].length > 0"
  1954. >
  1955. <div
  1956. class="works"
  1957. style="
  1958. width: 200px;
  1959. height: 140px;
  1960. margin: 10px 10px 10px 0;
  1961. box-shadow: 0 0 6px 1px #dfdada;
  1962. "
  1963. v-for="(w, wIndex) in workStudent[toolIndex]"
  1964. :key="wIndex"
  1965. >
  1966. <div class="workImg">
  1967. <img
  1968. :src="w.works"
  1969. @click="previewImg(w.works)"
  1970. alt
  1971. />
  1972. <div
  1973. class="answerScore"
  1974. v-if="w.score"
  1975. @click.stop="openScore(w)"
  1976. :class="{
  1977. rightW:
  1978. w.userid == userid || tType == 1 || tType == 4,
  1979. }"
  1980. >
  1981. {{ JSON.parse(w.score).wScore }}分
  1982. </div>
  1983. <div
  1984. class="answerScore"
  1985. @click.stop="openScore(w)"
  1986. v-else-if="courseDetail.userid == userid"
  1987. :class="{
  1988. rightW:
  1989. w.userid == userid || tType == 1 || tType == 4,
  1990. }"
  1991. >
  1992. 评分
  1993. </div>
  1994. <img
  1995. class="deleteImg"
  1996. src="../assets/deleteworks.png"
  1997. v-if="
  1998. w.userid == userid || tType == 1 || tType == 4
  1999. "
  2000. @click.stop="deleteWorks(w.wid)"
  2001. alt
  2002. />
  2003. </div>
  2004. <div class="worksName">
  2005. <div>{{ w.sName }}</div>
  2006. </div>
  2007. </div>
  2008. </div>
  2009. </div>
  2010. <div
  2011. v-if="
  2012. tType &&
  2013. tType == 2 &&
  2014. !sIsOpen &&
  2015. tool.tool.indexOf(3) != -1
  2016. "
  2017. class="worksBox"
  2018. >
  2019. <div
  2020. class="zuoyeYulan"
  2021. v-if="workStudent[toolIndex].length > 0"
  2022. >
  2023. <span class="worksTitle">作业预览</span>
  2024. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2025. </div>
  2026. <div
  2027. class="worksDetailBox"
  2028. v-if="workStudent[toolIndex].length > 0"
  2029. >
  2030. <div
  2031. class="works"
  2032. style="
  2033. width: 200px;
  2034. height: 140px;
  2035. margin: 10px 10px 10px 0;
  2036. box-shadow: 0 0 6px 1px #dfdada;
  2037. "
  2038. v-for="(w, wIndex) in workStudent[toolIndex]"
  2039. :key="wIndex"
  2040. >
  2041. <div class="workImg">
  2042. <img
  2043. :src="w.works"
  2044. @click="previewImg(w.works)"
  2045. alt
  2046. />
  2047. <div
  2048. class="answerScore"
  2049. v-if="w.score"
  2050. @click.stop="openScore(w)"
  2051. :class="{
  2052. rightW:
  2053. w.userid == userid || tType == 1 || tType == 4,
  2054. }"
  2055. >
  2056. {{ JSON.parse(w.score).wScore }}分
  2057. </div>
  2058. <div
  2059. class="answerScore"
  2060. @click.stop="openScore(w)"
  2061. v-else-if="courseDetail.userid == userid"
  2062. :class="{
  2063. rightW:
  2064. w.userid == userid || tType == 1 || tType == 4,
  2065. }"
  2066. >
  2067. 评分
  2068. </div>
  2069. <img
  2070. class="deleteImg"
  2071. src="../assets/deleteworks.png"
  2072. v-if="
  2073. w.userid == userid || tType == 1 || tType == 4
  2074. "
  2075. @click.stop="deleteWorks(w.wid)"
  2076. alt
  2077. />
  2078. </div>
  2079. <div class="worksName">
  2080. <div>{{ w.sName }}</div>
  2081. </div>
  2082. </div>
  2083. </div>
  2084. </div>
  2085. <div
  2086. v-if="
  2087. tType &&
  2088. tType == 2 &&
  2089. !sIsOpen &&
  2090. tool.tool.indexOf(6) != -1
  2091. "
  2092. class="worksBox"
  2093. >
  2094. <div
  2095. class="zuoyeYulan"
  2096. v-if="workStudent[toolIndex].length > 0"
  2097. >
  2098. <span class="worksTitle">作业预览</span>
  2099. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2100. </div>
  2101. <div
  2102. class="worksDetailBox"
  2103. v-if="workStudent[toolIndex].length > 0"
  2104. >
  2105. <div
  2106. class="works"
  2107. style="
  2108. width: 200px;
  2109. height: 140px;
  2110. margin: 10px 10px 10px 0;
  2111. box-shadow: 0 0 6px 1px #dfdada;
  2112. "
  2113. v-for="(w, wIndex) in workStudent[toolIndex]"
  2114. :key="wIndex"
  2115. >
  2116. <div class="workImg">
  2117. <img
  2118. :src="w.works"
  2119. @click="previewImg(w.works)"
  2120. alt
  2121. />
  2122. <div
  2123. class="answerScore"
  2124. v-if="w.score"
  2125. @click.stop="openScore(w)"
  2126. :class="{
  2127. rightW:
  2128. w.userid == userid || tType == 1 || tType == 4,
  2129. }"
  2130. >
  2131. {{ JSON.parse(w.score).wScore }}分
  2132. </div>
  2133. <div
  2134. class="answerScore"
  2135. @click.stop="openScore(w)"
  2136. v-else-if="courseDetail.userid == userid"
  2137. :class="{
  2138. rightW:
  2139. w.userid == userid || tType == 1 || tType == 4,
  2140. }"
  2141. >
  2142. 评分
  2143. </div>
  2144. <img
  2145. class="deleteImg"
  2146. src="../assets/deleteworks.png"
  2147. v-if="
  2148. w.userid == userid || tType == 1 || tType == 4
  2149. "
  2150. @click.stop="deleteWorks(w.wid)"
  2151. alt
  2152. />
  2153. </div>
  2154. <div class="worksName">
  2155. <div>{{ w.sName }}</div>
  2156. </div>
  2157. </div>
  2158. </div>
  2159. </div>
  2160. <div
  2161. v-if="
  2162. tType &&
  2163. tType == 2 &&
  2164. !sIsOpen &&
  2165. tool.tool.indexOf(7) != -1
  2166. "
  2167. class="worksBox"
  2168. >
  2169. <div
  2170. class="zuoyeYulan"
  2171. v-if="workStudent[toolIndex].length > 0"
  2172. >
  2173. <span class="worksTitle">作业预览</span>
  2174. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2175. </div>
  2176. <div
  2177. class="worksDetailBox"
  2178. v-if="workStudent[toolIndex].length > 0"
  2179. >
  2180. <div
  2181. class="works"
  2182. style="
  2183. width: 200px;
  2184. height: 140px;
  2185. margin: 10px 10px 10px 0;
  2186. box-shadow: 0 0 6px 1px #dfdada;
  2187. "
  2188. v-for="(w, wIndex) in workStudent[toolIndex]"
  2189. :key="wIndex"
  2190. >
  2191. <div class="workImg">
  2192. <img
  2193. :src="w.works"
  2194. @click="previewImg(w.works)"
  2195. alt
  2196. />
  2197. <div
  2198. class="answerScore"
  2199. v-if="w.score"
  2200. @click.stop="openScore(w)"
  2201. :class="{
  2202. rightW:
  2203. w.userid == userid || tType == 1 || tType == 4,
  2204. }"
  2205. >
  2206. {{ JSON.parse(w.score).wScore }}分
  2207. </div>
  2208. <div
  2209. class="answerScore"
  2210. @click.stop="openScore(w)"
  2211. v-else-if="courseDetail.userid == userid"
  2212. :class="{
  2213. rightW:
  2214. w.userid == userid || tType == 1 || tType == 4,
  2215. }"
  2216. >
  2217. 评分
  2218. </div>
  2219. <img
  2220. class="deleteImg"
  2221. src="../assets/deleteworks.png"
  2222. v-if="
  2223. w.userid == userid || tType == 1 || tType == 4
  2224. "
  2225. @click.stop="deleteWorks(w.wid)"
  2226. alt
  2227. />
  2228. </div>
  2229. <div class="worksName">
  2230. <div>{{ w.sName }}</div>
  2231. </div>
  2232. </div>
  2233. </div>
  2234. </div>
  2235. <div
  2236. v-if="
  2237. tType &&
  2238. tType == 2 &&
  2239. !sIsOpen &&
  2240. tool.tool.indexOf(26) != -1
  2241. "
  2242. class="worksBox"
  2243. >
  2244. <div
  2245. class="zuoyeYulan"
  2246. v-if="workStudent[toolIndex].length > 0"
  2247. >
  2248. <span class="worksTitle">作业预览</span>
  2249. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2250. </div>
  2251. <div
  2252. class="worksDetailBox"
  2253. v-if="workStudent[toolIndex].length > 0"
  2254. >
  2255. <div
  2256. class="works"
  2257. style="
  2258. width: 200px;
  2259. height: 140px;
  2260. margin: 10px 10px 10px 0;
  2261. box-shadow: 0 0 6px 1px #dfdada;
  2262. "
  2263. v-for="(w, wIndex) in workStudent[toolIndex]"
  2264. :key="wIndex"
  2265. >
  2266. <div class="workImg">
  2267. <img
  2268. :src="w.works"
  2269. @click="previewImg(w.works)"
  2270. alt
  2271. />
  2272. <img
  2273. class="deleteImg"
  2274. src="../assets/deleteworks.png"
  2275. v-if="
  2276. w.userid == userid || tType == 1 || tType == 4
  2277. "
  2278. @click.stop="deleteWorks(w.wid)"
  2279. alt
  2280. />
  2281. </div>
  2282. <div class="worksName">
  2283. <div>{{ w.sName }}</div>
  2284. </div>
  2285. </div>
  2286. </div>
  2287. </div>
  2288. <div
  2289. v-if="
  2290. tType &&
  2291. ((tType == 2 && sIsOpen == true) ||
  2292. tType == 1 ||
  2293. tType == 4) &&
  2294. tool.tool.indexOf(16) != -1
  2295. "
  2296. class="worksBox"
  2297. >
  2298. <div
  2299. class="zuoyeYulan"
  2300. v-if="
  2301. worksStudent.length &&
  2302. worksStudent[toolIndex].length > 0
  2303. "
  2304. >
  2305. <div class="worksTop">
  2306. <div>作业预览</div>
  2307. <div
  2308. class="corOpen"
  2309. @click="contract(toolIndex)"
  2310. v-if="
  2311. worksStudent[toolIndex].length > 6 &&
  2312. isCloseList[toolIndex].isClose == 0
  2313. "
  2314. >
  2315. 折叠
  2316. </div>
  2317. <div
  2318. class="corOpen"
  2319. @click="contract(toolIndex)"
  2320. v-if="isCloseList[toolIndex].isClose == 1"
  2321. >
  2322. 展开
  2323. </div>
  2324. </div>
  2325. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2326. </div>
  2327. <div
  2328. class="group_workBox"
  2329. v-for="(g, gindex) in courseGroup.group"
  2330. :key="gindex"
  2331. >
  2332. <div class="group_box">
  2333. <div class="group_title">
  2334. <el-tooltip
  2335. class="item"
  2336. effect="light"
  2337. :content="g.name"
  2338. placement="top"
  2339. >
  2340. <div class="group_name">{{ g.name }}</div>
  2341. </el-tooltip>
  2342. </div>
  2343. <div
  2344. class="group_work"
  2345. v-if="
  2346. g.works &&
  2347. g.works.length &&
  2348. g.works[toolIndex].length
  2349. "
  2350. >
  2351. <div
  2352. class="works"
  2353. style="
  2354. width: 200px;
  2355. height: 140px;
  2356. margin: 10px 10px 10px 0;
  2357. border-radius: 15px;
  2358. box-shadow: 0 0 6px 1px #dfdada;
  2359. "
  2360. v-for="(w, wIndex) in g.works[toolIndex]"
  2361. :key="wIndex"
  2362. :class="w.type == 1 ? 'isTypeOne' : ''"
  2363. >
  2364. <div class="workImg" v-if="w.type == 0">
  2365. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2366. <img
  2367. :src="w.works"
  2368. @click="previewImg(w.works)"
  2369. alt
  2370. />
  2371. <div
  2372. class="answerScore"
  2373. v-if="w.score"
  2374. @click.stop="openScore(w)"
  2375. :class="{
  2376. rightW:
  2377. w.userid == userid ||
  2378. tType == 1 ||
  2379. tType == 4 ||
  2380. w.ateacher == userid,
  2381. }"
  2382. >
  2383. {{ JSON.parse(w.score).wScore }}分
  2384. </div>
  2385. <div
  2386. class="answerScore"
  2387. @click.stop="openScore(w)"
  2388. v-else-if="courseDetail.userid == userid"
  2389. :class="{
  2390. rightW:
  2391. w.userid == userid ||
  2392. tType == 1 ||
  2393. tType == 4 ||
  2394. w.ateacher == userid,
  2395. }"
  2396. >
  2397. 评分
  2398. </div>
  2399. <img
  2400. class="deleteImg"
  2401. src="../assets/deleteworks.png"
  2402. v-if="
  2403. w.userid == userid || tType == 1 || tType == 4
  2404. "
  2405. @click.stop="deleteWorks(w.wid)"
  2406. alt
  2407. />
  2408. </div>
  2409. <div class="workImg" v-if="w.type == 1">
  2410. <img :src="word" @click="openFile(w.works)" alt />
  2411. <!-- @click="openFile(w.works)" -->
  2412. <div
  2413. class="answerScore"
  2414. v-if="w.score"
  2415. @click.stop="openScore(w)"
  2416. :class="{
  2417. rightW:
  2418. w.userid == userid ||
  2419. tType == 1 ||
  2420. tType == 4 ||
  2421. w.ateacher == userid,
  2422. }"
  2423. >
  2424. {{ JSON.parse(w.score).wScore }}分
  2425. </div>
  2426. <div
  2427. class="answerScore"
  2428. @click.stop="openScore(w)"
  2429. v-else-if="courseDetail.userid == userid"
  2430. :class="{
  2431. rightW:
  2432. w.userid == userid ||
  2433. tType == 1 ||
  2434. tType == 4 ||
  2435. w.ateacher == userid,
  2436. }"
  2437. >
  2438. 评分
  2439. </div>
  2440. <img
  2441. class="deleteImg"
  2442. src="../assets/deleteworks.png"
  2443. v-if="
  2444. w.userid == userid || tType == 1 || tType == 4
  2445. "
  2446. @click.stop="deleteWorks(w.wid)"
  2447. alt
  2448. />
  2449. </div>
  2450. <div class="workImg" v-if="w.type == 3">
  2451. <img
  2452. style="cursor: pointer"
  2453. :src="video"
  2454. @click="openVideo(w)"
  2455. alt
  2456. />
  2457. <!-- @click="openVideo(w.works)" -->
  2458. <div
  2459. class="answerScore"
  2460. v-if="w.score"
  2461. @click.stop="openScore(w)"
  2462. :class="{
  2463. rightW:
  2464. w.userid == userid ||
  2465. tType == 1 ||
  2466. tType == 4 ||
  2467. w.ateacher == userid,
  2468. }"
  2469. >
  2470. {{ JSON.parse(w.score).wScore }}分
  2471. </div>
  2472. <div
  2473. class="answerScore"
  2474. @click.stop="openScore(w)"
  2475. v-else-if="courseDetail.userid == userid"
  2476. :class="{
  2477. rightW:
  2478. w.userid == userid ||
  2479. tType == 1 ||
  2480. tType == 4 ||
  2481. w.ateacher == userid,
  2482. }"
  2483. >
  2484. 评分
  2485. </div>
  2486. <img
  2487. class="deleteImg"
  2488. src="../assets/deleteworks.png"
  2489. v-if="
  2490. w.userid == userid || tType == 1 || tType == 4
  2491. "
  2492. @click.stop="deleteWorks(w.wid)"
  2493. alt
  2494. />
  2495. </div>
  2496. <div class="workImg" v-if="w.type == 12">
  2497. <img
  2498. style="cursor: pointer"
  2499. :src="word2"
  2500. @click="downloadFile(w.works)"
  2501. alt
  2502. />
  2503. <!-- @click="openVideo(w.works)" -->
  2504. <div
  2505. class="answerScore"
  2506. v-if="w.score"
  2507. @click.stop="openScore(w)"
  2508. :class="{
  2509. rightW:
  2510. w.userid == userid ||
  2511. tType == 1 ||
  2512. tType == 4 ||
  2513. w.ateacher == userid,
  2514. }"
  2515. >
  2516. {{ JSON.parse(w.score).wScore }}分
  2517. </div>
  2518. <div
  2519. class="answerScore"
  2520. @click.stop="openScore(w)"
  2521. v-else-if="courseDetail.userid == userid"
  2522. :class="{
  2523. rightW:
  2524. w.userid == userid ||
  2525. tType == 1 ||
  2526. tType == 4 ||
  2527. w.ateacher == userid,
  2528. }"
  2529. >
  2530. 评分
  2531. </div>
  2532. <img
  2533. class="deleteImg"
  2534. src="../assets/deleteworks.png"
  2535. v-if="
  2536. w.userid == userid || tType == 1 || tType == 4
  2537. "
  2538. @click.stop="deleteWorks(w.wid)"
  2539. alt
  2540. />
  2541. </div>
  2542. <div class="comment" style="min-width: 200px">
  2543. <div class="worksName">
  2544. <div>{{ w.sName }}</div>
  2545. </div>
  2546. <div class="commentList">
  2547. <div class="commentList">
  2548. <div
  2549. class="commentImg"
  2550. @click="
  2551. isLikes(w.wid, userid, 1, null, w.isLikes)
  2552. "
  2553. >
  2554. <img
  2555. :src="w.isLikes == true ? likes : noLikes"
  2556. alt=""
  2557. />
  2558. </div>
  2559. <div>{{ w.likesCount }}</div>
  2560. </div>
  2561. <div
  2562. class="commentList"
  2563. style="margin-right: 15px"
  2564. >
  2565. <div
  2566. class="commentImg"
  2567. @click="
  2568. commentOther(
  2569. w,
  2570. toolIndex,
  2571. wIndex,
  2572. null,
  2573. g.id
  2574. )
  2575. "
  2576. >
  2577. <img
  2578. src="../assets/icon/comment/comment.png"
  2579. alt=""
  2580. />
  2581. </div>
  2582. <div>{{ w.commentCount }}</div>
  2583. </div>
  2584. </div>
  2585. </div>
  2586. </div>
  2587. </div>
  2588. <div class="group_work" v-else>暂无提交作业</div>
  2589. </div>
  2590. </div>
  2591. <div
  2592. class="worksDetailBox"
  2593. v-if="
  2594. worksStudent.length &&
  2595. worksStudent[toolIndex].length > 0
  2596. "
  2597. >
  2598. <div
  2599. class="works"
  2600. style="
  2601. width: 200px;
  2602. height: 140px;
  2603. margin: 10px 10px 10px 0;
  2604. border-radius: 15px;
  2605. box-shadow: 0 0 6px 1px #dfdada;
  2606. "
  2607. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2608. 0
  2609. ? worksStudent[toolIndex]
  2610. : worksStudent[toolIndex].slice(0, 6)"
  2611. :key="wIndex"
  2612. :class="w.type == 1 ? 'isTypeOne' : ''"
  2613. >
  2614. <div class="workImg" v-if="w.type == 0">
  2615. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2616. <img
  2617. :src="w.works"
  2618. @click="previewImg(w.works)"
  2619. alt
  2620. />
  2621. <div
  2622. class="answerScore"
  2623. v-if="w.score"
  2624. @click.stop="openScore(w)"
  2625. :class="{
  2626. rightW:
  2627. w.userid == userid ||
  2628. tType == 1 ||
  2629. tType == 4 ||
  2630. w.ateacher == userid,
  2631. }"
  2632. >
  2633. {{ JSON.parse(w.score).wScore }}分
  2634. </div>
  2635. <div
  2636. class="answerScore"
  2637. @click.stop="openScore(w)"
  2638. v-else-if="courseDetail.userid == userid"
  2639. :class="{
  2640. rightW:
  2641. w.userid == userid ||
  2642. tType == 1 ||
  2643. tType == 4 ||
  2644. w.ateacher == userid,
  2645. }"
  2646. >
  2647. 评分
  2648. </div>
  2649. <img
  2650. class="deleteImg"
  2651. src="../assets/deleteworks.png"
  2652. v-if="
  2653. w.userid == userid || tType == 1 || tType == 4
  2654. "
  2655. @click.stop="deleteWorks(w.wid)"
  2656. alt
  2657. />
  2658. </div>
  2659. <div class="workImg" v-if="w.type == 1">
  2660. <img :src="word" @click="openFile(w.works)" alt />
  2661. <!-- @click="openFile(w.works)" -->
  2662. <div
  2663. class="answerScore"
  2664. v-if="w.score"
  2665. @click.stop="openScore(w)"
  2666. :class="{
  2667. rightW:
  2668. w.userid == userid ||
  2669. tType == 1 ||
  2670. tType == 4 ||
  2671. w.ateacher == userid,
  2672. }"
  2673. >
  2674. {{ JSON.parse(w.score).wScore }}分
  2675. </div>
  2676. <div
  2677. class="answerScore"
  2678. @click.stop="openScore(w)"
  2679. v-else-if="courseDetail.userid == userid"
  2680. :class="{
  2681. rightW:
  2682. w.userid == userid ||
  2683. tType == 1 ||
  2684. tType == 4 ||
  2685. w.ateacher == userid,
  2686. }"
  2687. >
  2688. 评分
  2689. </div>
  2690. <img
  2691. class="deleteImg"
  2692. src="../assets/deleteworks.png"
  2693. v-if="
  2694. w.userid == userid || tType == 1 || tType == 4
  2695. "
  2696. @click.stop="deleteWorks(w.wid)"
  2697. alt
  2698. />
  2699. </div>
  2700. <div class="workImg" v-if="w.type == 3">
  2701. <img
  2702. style="cursor: pointer"
  2703. :src="video"
  2704. @click="openVideo(w)"
  2705. alt
  2706. />
  2707. <!-- @click="openVideo(w.works)" -->
  2708. <div
  2709. class="answerScore"
  2710. v-if="w.score"
  2711. @click.stop="openScore(w)"
  2712. :class="{
  2713. rightW:
  2714. w.userid == userid ||
  2715. tType == 1 ||
  2716. tType == 4 ||
  2717. w.ateacher == userid,
  2718. }"
  2719. >
  2720. {{ JSON.parse(w.score).wScore }}分
  2721. </div>
  2722. <div
  2723. class="answerScore"
  2724. @click.stop="openScore(w)"
  2725. v-else-if="courseDetail.userid == userid"
  2726. :class="{
  2727. rightW:
  2728. w.userid == userid ||
  2729. tType == 1 ||
  2730. tType == 4 ||
  2731. w.ateacher == userid,
  2732. }"
  2733. >
  2734. 评分
  2735. </div>
  2736. <img
  2737. class="deleteImg"
  2738. src="../assets/deleteworks.png"
  2739. v-if="
  2740. w.userid == userid || tType == 1 || tType == 4
  2741. "
  2742. @click.stop="deleteWorks(w.wid)"
  2743. alt
  2744. />
  2745. </div>
  2746. <div class="workImg" v-if="w.type == 12">
  2747. <img
  2748. style="cursor: pointer"
  2749. :src="word2"
  2750. @click="downloadFile(w.works)"
  2751. alt
  2752. />
  2753. <!-- @click="openVideo(w.works)" -->
  2754. <div
  2755. class="answerScore"
  2756. v-if="w.score"
  2757. @click.stop="openScore(w)"
  2758. :class="{
  2759. rightW:
  2760. w.userid == userid ||
  2761. tType == 1 ||
  2762. tType == 4 ||
  2763. w.ateacher == userid,
  2764. }"
  2765. >
  2766. {{ JSON.parse(w.score).wScore }}分
  2767. </div>
  2768. <div
  2769. class="answerScore"
  2770. @click.stop="openScore(w)"
  2771. v-else-if="courseDetail.userid == userid"
  2772. :class="{
  2773. rightW:
  2774. w.userid == userid ||
  2775. tType == 1 ||
  2776. tType == 4 ||
  2777. w.ateacher == userid,
  2778. }"
  2779. >
  2780. 评分
  2781. </div>
  2782. <img
  2783. class="deleteImg"
  2784. src="../assets/deleteworks.png"
  2785. v-if="
  2786. w.userid == userid || tType == 1 || tType == 4
  2787. "
  2788. @click.stop="deleteWorks(w.wid)"
  2789. alt
  2790. />
  2791. </div>
  2792. <div class="comment" style="min-width: 200px">
  2793. <div class="worksName">
  2794. <div>{{ w.sName }}</div>
  2795. </div>
  2796. <div class="commentList">
  2797. <div class="commentList">
  2798. <div
  2799. class="commentImg"
  2800. @click="
  2801. isLikes(w.wid, userid, 1, null, w.isLikes)
  2802. "
  2803. >
  2804. <img
  2805. :src="w.isLikes == true ? likes : noLikes"
  2806. alt=""
  2807. />
  2808. </div>
  2809. <div>{{ w.likesCount }}</div>
  2810. </div>
  2811. <div class="commentList" style="margin-right: 15px">
  2812. <div
  2813. class="commentImg"
  2814. @click="commentOther(w, toolIndex, wIndex)"
  2815. >
  2816. <img
  2817. src="../assets/icon/comment/comment.png"
  2818. alt=""
  2819. />
  2820. </div>
  2821. <div>{{ w.commentCount }}</div>
  2822. </div>
  2823. </div>
  2824. </div>
  2825. </div>
  2826. </div>
  2827. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2828. 未提交
  2829. </div>
  2830. <div
  2831. class="noWorksS"
  2832. v-if="noWorksS && noWorksS[toolIndex].length"
  2833. >
  2834. <div
  2835. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2836. :key="sIndex"
  2837. class="noWorksName"
  2838. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2839. >
  2840. {{ s.student }}
  2841. </div>
  2842. </div>
  2843. </div>
  2844. <div
  2845. v-if="
  2846. tType &&
  2847. ((tType == 2 && sIsOpen == true) ||
  2848. tType == 1 ||
  2849. tType == 4) &&
  2850. tool.tool.indexOf(32) != -1
  2851. "
  2852. class="worksBox"
  2853. >
  2854. <div
  2855. class="zuoyeYulan"
  2856. v-if="
  2857. worksStudent.length &&
  2858. worksStudent[toolIndex].length > 0
  2859. "
  2860. >
  2861. <div class="worksTop">
  2862. <div>作业预览</div>
  2863. <div
  2864. class="corOpen"
  2865. @click="contract(toolIndex)"
  2866. v-if="
  2867. worksStudent[toolIndex].length > 6 &&
  2868. isCloseList[toolIndex].isClose == 0
  2869. "
  2870. >
  2871. 折叠
  2872. </div>
  2873. <div
  2874. class="corOpen"
  2875. @click="contract(toolIndex)"
  2876. v-if="isCloseList[toolIndex].isClose == 1"
  2877. >
  2878. 展开
  2879. </div>
  2880. </div>
  2881. </div>
  2882. <div
  2883. class="worksDetailBox"
  2884. v-if="
  2885. worksStudent.length &&
  2886. worksStudent[toolIndex].length > 0
  2887. "
  2888. >
  2889. <div
  2890. class="works"
  2891. style="
  2892. width: 200px;
  2893. height: 140px;
  2894. margin: 10px 10px 10px 0;
  2895. border-radius: 15px;
  2896. box-shadow: 0 0 6px 1px #dfdada;
  2897. "
  2898. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2899. 0
  2900. ? worksStudent[toolIndex]
  2901. : worksStudent[toolIndex].slice(0, 6)"
  2902. :key="wIndex"
  2903. :class="w.type == 1 ? 'isTypeOne' : ''"
  2904. >
  2905. <div class="workImg">
  2906. <img
  2907. :src="word2"
  2908. @click="downloadFile(w.works)"
  2909. alt
  2910. />
  2911. <div
  2912. class="answerScore"
  2913. v-if="w.score"
  2914. @click.stop="openScore(w)"
  2915. :class="{
  2916. rightW:
  2917. w.userid == userid ||
  2918. tType == 1 ||
  2919. tType == 4 ||
  2920. w.ateacher == userid,
  2921. }"
  2922. >
  2923. {{ JSON.parse(w.score).wScore }}分
  2924. </div>
  2925. <div
  2926. class="answerScore"
  2927. @click.stop="openScore(w)"
  2928. v-else-if="courseDetail.userid == userid"
  2929. :class="{
  2930. rightW:
  2931. w.userid == userid ||
  2932. tType == 1 ||
  2933. tType == 4 ||
  2934. w.ateacher == userid,
  2935. }"
  2936. >
  2937. 评分
  2938. </div>
  2939. <img
  2940. class="deleteImg"
  2941. src="../assets/deleteworks.png"
  2942. v-if="
  2943. w.userid == userid || tType == 1 || tType == 4
  2944. "
  2945. @click.stop="deleteWorks(w.wid)"
  2946. alt
  2947. />
  2948. </div>
  2949. <div class="comment" style="min-width: 200px">
  2950. <div class="worksName">
  2951. <div>{{ w.sName }}</div>
  2952. </div>
  2953. <div class="commentList">
  2954. <div class="commentList">
  2955. <div
  2956. class="commentImg"
  2957. @click="
  2958. isLikes(w.wid, userid, 1, null, w.isLikes)
  2959. "
  2960. >
  2961. <img
  2962. :src="w.isLikes == true ? likes : noLikes"
  2963. alt=""
  2964. />
  2965. </div>
  2966. <div>{{ w.likesCount }}</div>
  2967. </div>
  2968. <div class="commentList" style="margin-right: 15px">
  2969. <div
  2970. class="commentImg"
  2971. @click="commentOther(w, toolIndex, wIndex)"
  2972. >
  2973. <img
  2974. src="../assets/icon/comment/comment.png"
  2975. alt=""
  2976. />
  2977. </div>
  2978. <div>{{ w.commentCount }}</div>
  2979. </div>
  2980. </div>
  2981. </div>
  2982. </div>
  2983. </div>
  2984. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2985. 未提交
  2986. </div>
  2987. <div
  2988. class="noWorksS"
  2989. v-if="noWorksS && noWorksS[toolIndex].length"
  2990. >
  2991. <div
  2992. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2993. :key="sIndex"
  2994. class="noWorksName"
  2995. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  2996. >
  2997. {{ s.student }}
  2998. </div>
  2999. </div>
  3000. </div>
  3001. <div
  3002. v-if="
  3003. tType &&
  3004. ((tType == 2 && sIsOpen == true) ||
  3005. tType == 1 ||
  3006. tType == 4) &&
  3007. tool.tool.indexOf(57) != -1
  3008. "
  3009. class="worksBox"
  3010. >
  3011. <div
  3012. class="zuoyeYulan"
  3013. v-if="
  3014. worksStudent.length &&
  3015. worksStudent[toolIndex].length > 0
  3016. "
  3017. >
  3018. <div class="worksTop">
  3019. <div>作业预览</div>
  3020. <div
  3021. class="corOpen"
  3022. @click="contract(toolIndex)"
  3023. v-if="
  3024. worksStudent[toolIndex].length > 6 &&
  3025. isCloseList[toolIndex].isClose == 0
  3026. "
  3027. >
  3028. 折叠
  3029. </div>
  3030. <div
  3031. class="corOpen"
  3032. @click="contract(toolIndex)"
  3033. v-if="isCloseList[toolIndex].isClose == 1"
  3034. >
  3035. 展开
  3036. </div>
  3037. </div>
  3038. </div>
  3039. <div
  3040. class="worksDetailBox"
  3041. v-if="
  3042. worksStudent.length &&
  3043. worksStudent[toolIndex].length > 0
  3044. "
  3045. >
  3046. <div
  3047. class="works"
  3048. style="
  3049. width: 200px;
  3050. height: 140px;
  3051. margin: 10px 10px 10px 0;
  3052. border-radius: 15px;
  3053. box-shadow: 0 0 6px 1px #dfdada;
  3054. "
  3055. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3056. 0
  3057. ? worksStudent[toolIndex]
  3058. : worksStudent[toolIndex].slice(0, 6)"
  3059. :key="wIndex"
  3060. :class="w.type == 1 ? 'isTypeOne' : ''"
  3061. >
  3062. <div class="workImg">
  3063. <img
  3064. :src="word2"
  3065. @click="downloadFile(w.works)"
  3066. v-if="w.type == 12"
  3067. alt
  3068. />
  3069. <img
  3070. :src="word2"
  3071. @click="
  3072. openCocoPi(57, toolIndex, w.userid, w.sName)
  3073. "
  3074. v-else-if="w.type == 15"
  3075. alt
  3076. />
  3077. <div
  3078. class="answerScore"
  3079. v-if="w.score"
  3080. @click.stop="openScore(w)"
  3081. :class="{
  3082. rightW:
  3083. w.userid == userid ||
  3084. tType == 1 ||
  3085. tType == 4 ||
  3086. w.ateacher == userid,
  3087. }"
  3088. >
  3089. {{ JSON.parse(w.score).wScore }}分
  3090. </div>
  3091. <div
  3092. class="answerScore"
  3093. @click.stop="openScore(w)"
  3094. v-else-if="courseDetail.userid == userid"
  3095. :class="{
  3096. rightW:
  3097. w.userid == userid ||
  3098. tType == 1 ||
  3099. tType == 4 ||
  3100. w.ateacher == userid,
  3101. }"
  3102. >
  3103. 评分
  3104. </div>
  3105. <img
  3106. class="deleteImg"
  3107. src="../assets/deleteworks.png"
  3108. v-if="
  3109. w.userid == userid || tType == 1 || tType == 4
  3110. "
  3111. @click.stop="deleteWorks(w.wid)"
  3112. alt
  3113. />
  3114. </div>
  3115. <div class="comment" style="min-width: 200px">
  3116. <div class="worksName">
  3117. <div>{{ w.sName }}</div>
  3118. </div>
  3119. <div class="commentList">
  3120. <div class="commentList">
  3121. <div
  3122. class="commentImg"
  3123. @click="
  3124. isLikes(w.wid, userid, 1, null, w.isLikes)
  3125. "
  3126. >
  3127. <img
  3128. :src="w.isLikes == true ? likes : noLikes"
  3129. alt=""
  3130. />
  3131. </div>
  3132. <div>{{ w.likesCount }}</div>
  3133. </div>
  3134. <div class="commentList" style="margin-right: 15px">
  3135. <div
  3136. class="commentImg"
  3137. @click="commentOther(w, toolIndex, wIndex)"
  3138. >
  3139. <img
  3140. src="../assets/icon/comment/comment.png"
  3141. alt=""
  3142. />
  3143. </div>
  3144. <div>{{ w.commentCount }}</div>
  3145. </div>
  3146. </div>
  3147. </div>
  3148. </div>
  3149. </div>
  3150. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3151. 未提交
  3152. </div>
  3153. <div
  3154. class="noWorksS"
  3155. v-if="noWorksS && noWorksS[toolIndex].length"
  3156. >
  3157. <div
  3158. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3159. :key="sIndex"
  3160. class="noWorksName"
  3161. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3162. >
  3163. {{ s.student }}
  3164. </div>
  3165. </div>
  3166. </div>
  3167. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3168. <div
  3169. class="zuoyeYulan"
  3170. v-if="
  3171. worksStudent.length &&
  3172. worksStudent[toolIndex].length > 0
  3173. "
  3174. >
  3175. <span class="worksTitle">作业预览</span>
  3176. <div
  3177. class="corOpen"
  3178. @click="contract(toolIndex)"
  3179. v-if="
  3180. worksStudent[toolIndex].length > 6 &&
  3181. isCloseList[toolIndex].isClose == 0
  3182. "
  3183. >
  3184. 折叠
  3185. </div>
  3186. <div
  3187. class="corOpen"
  3188. @click="contract(toolIndex)"
  3189. v-if="isCloseList[toolIndex].isClose == 1"
  3190. >
  3191. 展开
  3192. </div>
  3193. </div>
  3194. <div
  3195. class="worksDetailBox"
  3196. v-if="
  3197. worksStudent.length &&
  3198. worksStudent[toolIndex].length > 0
  3199. "
  3200. >
  3201. <div
  3202. class="works"
  3203. style="
  3204. width: 200px;
  3205. height: 140px;
  3206. margin: 10px 10px 10px 0;
  3207. border-radius: 15px;
  3208. box-shadow: 0 0 6px 1px #dfdada;
  3209. "
  3210. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3211. 0
  3212. ? worksStudent[toolIndex]
  3213. : worksStudent[toolIndex].slice(0, 6)"
  3214. :key="wIndex"
  3215. :class="w.type == 1 ? 'isTypeOne' : ''"
  3216. >
  3217. <div class="workImg" v-if="w.type == 0">
  3218. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3219. <img
  3220. :src="w.works"
  3221. @click="previewImg(w.works)"
  3222. alt
  3223. />
  3224. <div
  3225. class="answerScore"
  3226. v-if="w.score"
  3227. @click.stop="openScore(w)"
  3228. :class="{
  3229. rightW:
  3230. w.userid == userid ||
  3231. tType == 1 ||
  3232. tType == 4 ||
  3233. w.ateacher == userid,
  3234. }"
  3235. >
  3236. {{ JSON.parse(w.score).wScore }}分
  3237. </div>
  3238. <div
  3239. class="answerScore"
  3240. @click.stop="openScore(w)"
  3241. v-else-if="courseDetail.userid == userid"
  3242. :class="{
  3243. rightW:
  3244. w.userid == userid ||
  3245. tType == 1 ||
  3246. tType == 4 ||
  3247. w.ateacher == userid,
  3248. }"
  3249. >
  3250. 评分
  3251. </div>
  3252. <img
  3253. class="deleteImg"
  3254. src="../assets/deleteworks.png"
  3255. v-if="
  3256. w.userid == userid || tType == 1 || tType == 4
  3257. "
  3258. @click.stop="deleteWorks(w.wid)"
  3259. alt
  3260. />
  3261. </div>
  3262. <div
  3263. class="workImg"
  3264. style="cursor: pointer"
  3265. v-if="w.type == 1"
  3266. >
  3267. <img :src="word" @click="openFile(w.works)" alt />
  3268. <!-- @click="openFile(w.works)" -->
  3269. <div
  3270. class="answerScore"
  3271. v-if="w.score"
  3272. @click.stop="openScore(w)"
  3273. :class="{
  3274. rightW:
  3275. w.userid == userid ||
  3276. tType == 1 ||
  3277. tType == 4 ||
  3278. w.ateacher == userid,
  3279. }"
  3280. >
  3281. {{ JSON.parse(w.score).wScore }}分
  3282. </div>
  3283. <div
  3284. class="answerScore"
  3285. @click.stop="openScore(w)"
  3286. v-else-if="courseDetail.userid == userid"
  3287. :class="{
  3288. rightW:
  3289. w.userid == userid ||
  3290. tType == 1 ||
  3291. tType == 4 ||
  3292. w.ateacher == userid,
  3293. }"
  3294. >
  3295. 评分
  3296. </div>
  3297. <img
  3298. class="deleteImg"
  3299. src="../assets/deleteworks.png"
  3300. v-if="
  3301. w.userid == userid || tType == 1 || tType == 4
  3302. "
  3303. @click.stop="deleteWorks(w.wid)"
  3304. alt
  3305. />
  3306. </div>
  3307. <div class="workImg" v-if="w.type == 3">
  3308. <img
  3309. style="cursor: pointer"
  3310. :src="video"
  3311. @click="openVideo(w)"
  3312. alt
  3313. />
  3314. <!-- @click="openVideo(w.works)" -->
  3315. <div
  3316. class="answerScore"
  3317. v-if="w.score"
  3318. @click.stop="openScore(w)"
  3319. :class="{
  3320. rightW:
  3321. w.userid == userid ||
  3322. tType == 1 ||
  3323. tType == 4 ||
  3324. w.ateacher == userid,
  3325. }"
  3326. >
  3327. {{ JSON.parse(w.score).wScore }}分
  3328. </div>
  3329. <div
  3330. class="answerScore"
  3331. @click.stop="openScore(w)"
  3332. v-else-if="courseDetail.userid == userid"
  3333. :class="{
  3334. rightW:
  3335. w.userid == userid ||
  3336. tType == 1 ||
  3337. tType == 4 ||
  3338. w.ateacher == userid,
  3339. }"
  3340. >
  3341. 评分
  3342. </div>
  3343. <img
  3344. class="deleteImg"
  3345. src="../assets/deleteworks.png"
  3346. v-if="
  3347. w.userid == userid || tType == 1 || tType == 4
  3348. "
  3349. @click.stop="deleteWorks(w.wid)"
  3350. alt
  3351. />
  3352. </div>
  3353. <div class="comment" style="min-width: 200px">
  3354. <div class="worksName">
  3355. <div
  3356. style="cursor: pointer"
  3357. @click="
  3358. openSname(w.sName, w.wid, toolIndex, w.userid)
  3359. "
  3360. >
  3361. {{ w.sName }}
  3362. </div>
  3363. </div>
  3364. <div class="commentList">
  3365. <div class="commentList">
  3366. <div
  3367. class="commentImg"
  3368. @click="
  3369. isLikes(w.wid, userid, 1, null, w.isLikes)
  3370. "
  3371. >
  3372. <img
  3373. :src="w.isLikes == true ? likes : noLikes"
  3374. alt=""
  3375. />
  3376. </div>
  3377. <div>{{ w.likesCount }}</div>
  3378. </div>
  3379. <div class="commentList" style="margin-right: 15px">
  3380. <div
  3381. class="commentImg"
  3382. @click="commentOther(w, toolIndex, wIndex)"
  3383. >
  3384. <img
  3385. src="../assets/icon/comment/comment.png"
  3386. alt=""
  3387. />
  3388. </div>
  3389. <div>{{ w.commentCount }}</div>
  3390. </div>
  3391. </div>
  3392. </div>
  3393. </div>
  3394. </div>
  3395. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3396. 未提交
  3397. </div>
  3398. <div
  3399. class="noWorksS"
  3400. v-if="noWorksS && noWorksS[toolIndex].length"
  3401. >
  3402. <div
  3403. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3404. :key="sIndex"
  3405. class="noWorksName"
  3406. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3407. >
  3408. {{ s.student }}
  3409. </div>
  3410. </div>
  3411. </div>
  3412. <div
  3413. v-if="
  3414. tType &&
  3415. ((tType == 2 && sIsOpen == true) ||
  3416. tType == 1 ||
  3417. tType == 4) &&
  3418. tool.tool.indexOf(4) != -1 &&
  3419. (tool.askJson[0].answer ||
  3420. tool.askJson[0].answer === 0) &&
  3421. checkJson[toolIndex].length
  3422. "
  3423. class="xuan_right_box"
  3424. >
  3425. <div
  3426. class="tool_right_box"
  3427. v-for="(item, index) in tool.askJson"
  3428. :key="index"
  3429. >
  3430. <div style="width: calc(100% - 30px);">
  3431. <el-tooltip
  3432. effect="light"
  3433. :content="index + 1 + '、' + item.askstitle"
  3434. placement="top"
  3435. popper-class="text_tooltip"
  3436. >
  3437. <div
  3438. style="
  3439. width: calc(100% - 130px);
  3440. display: block;
  3441. white-space: nowrap;
  3442. overflow: hidden;
  3443. text-overflow: ellipsis;
  3444. word-break: break-word;
  3445. cursor: pointer;
  3446. "
  3447. >
  3448. {{ index + 1 + "、" + item.askstitle }}
  3449. </div>
  3450. </el-tooltip>
  3451. </div>
  3452. <div class="right_box_xuan">
  3453. <span>正确率</span>
  3454. <span>{{
  3455. (checkJson[toolIndex][index].right
  3456. ? checkJson[toolIndex][index].right
  3457. : 0) + "%"
  3458. }}</span>
  3459. </div>
  3460. </div>
  3461. </div>
  3462. <div
  3463. class="xuan_right_box"
  3464. style="background: unset; padding: 0 10px"
  3465. v-if="
  3466. tType &&
  3467. ((tType == 2 && sIsOpen == true) ||
  3468. tType == 1 ||
  3469. tType == 4) &&
  3470. tool.tool.indexOf(4) != -1
  3471. "
  3472. >
  3473. <AskStatic
  3474. v-if="
  3475. worksStudent.length &&
  3476. worksStudent[toolIndex].length > 0
  3477. "
  3478. :askJSON="tool"
  3479. :checkJson="checkJson[toolIndex]"
  3480. ></AskStatic>
  3481. </div>
  3482. <div
  3483. v-if="
  3484. tType &&
  3485. ((tType == 2 && sIsOpen == true) ||
  3486. tType == 1 ||
  3487. tType == 4) &&
  3488. tool.tool.indexOf(4) != -1
  3489. "
  3490. class="worksBox"
  3491. >
  3492. <div
  3493. class="zuoyeYulan"
  3494. v-if="
  3495. worksStudent.length &&
  3496. worksStudent[toolIndex].length > 0
  3497. "
  3498. >
  3499. <div class="worksTop">
  3500. <div>作业预览</div>
  3501. <div
  3502. class="corOpen"
  3503. @click="contract(toolIndex)"
  3504. v-if="
  3505. worksStudent[toolIndex].length > 6 &&
  3506. isCloseList[toolIndex].isClose == 0
  3507. "
  3508. >
  3509. 折叠
  3510. </div>
  3511. <div
  3512. class="corOpen"
  3513. @click="contract(toolIndex)"
  3514. v-if="isCloseList[toolIndex].isClose == 1"
  3515. >
  3516. 展开
  3517. </div>
  3518. </div>
  3519. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3520. </div>
  3521. <div>
  3522. <div
  3523. class="worksDetailBox"
  3524. v-if="
  3525. worksStudent.length &&
  3526. worksStudent[toolIndex].length > 0
  3527. "
  3528. >
  3529. <div
  3530. v-for="(w, wIndex) in isCloseList[toolIndex]
  3531. .isClose == 0
  3532. ? worksStudent[toolIndex]
  3533. : worksStudent[toolIndex].slice(0, 6)"
  3534. :key="wIndex"
  3535. class="isWorksName2"
  3536. @click="
  3537. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3538. "
  3539. >
  3540. {{ w.sName }}
  3541. <img
  3542. class="deleteImg deleteImg2"
  3543. src="../assets/deleteworks.png"
  3544. v-if="
  3545. w.userid == userid || tType == 1 || tType == 4
  3546. "
  3547. @click.stop="deleteWorks(w.wid)"
  3548. alt
  3549. />
  3550. </div>
  3551. <!-- <div class="works" style="
  3552. width: 200px;
  3553. height: 140px;
  3554. border-radius: 10px;
  3555. box-shadow: 0 0 6px 1px #dfdada;
  3556. overflow: hidden;
  3557. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3558. <div class="workImg">
  3559. <img src="../assets/icon/works/noImg.png" @click="
  3560. openTools(
  3561. 4,
  3562. toolIndex,
  3563. taskCount,
  3564. w.works,
  3565. w.sName
  3566. )
  3567. " alt />
  3568. </div>
  3569. <div class="worksName">
  3570. <div>{{ w.sName }}</div>
  3571. <div>{{ w.time }}</div>
  3572. </div>
  3573. </div> -->
  3574. </div>
  3575. </div>
  3576. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3577. 未提交
  3578. </div>
  3579. <div
  3580. class="noWorksS"
  3581. v-if="noWorksS && noWorksS[toolIndex].length"
  3582. >
  3583. <div
  3584. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3585. :key="sIndex"
  3586. class="noWorksName"
  3587. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3588. >
  3589. {{ s.student }}
  3590. </div>
  3591. </div>
  3592. </div>
  3593. <div
  3594. v-if="
  3595. tType &&
  3596. ((tType == 2 && sIsOpen == true) ||
  3597. tType == 1 ||
  3598. tType == 4) &&
  3599. tool.tool.indexOf(45) != -1 &&
  3600. (tool.testJson.testJson[0].answer ||
  3601. tool.testJson.testJson[0].answer === 0) &&
  3602. checkJson[toolIndex].length
  3603. "
  3604. class="xuan_right_box"
  3605. >
  3606. <div
  3607. class="tool_right_box"
  3608. v-for="(item, index) in tool.testJson.testJson"
  3609. :key="index"
  3610. >
  3611. <div class="right_box_xuan" style="margin-right: 10px">
  3612. <span>正确率</span>
  3613. <span>{{
  3614. (checkJson[toolIndex][index].right
  3615. ? checkJson[toolIndex][index].right
  3616. : 0) + "%"
  3617. }}</span>
  3618. </div>
  3619. <div style="width: calc(100% - 30px);">
  3620. <el-tooltip
  3621. effect="light"
  3622. :content="index + 1 + '、' + item.teststitle"
  3623. placement="top"
  3624. popper-class="text_tooltip"
  3625. >
  3626. <div
  3627. style="
  3628. width: calc(100% - 130px);
  3629. display: block;
  3630. white-space: nowrap;
  3631. overflow: hidden;
  3632. text-overflow: ellipsis;
  3633. word-break: break-word;
  3634. cursor: pointer;
  3635. "
  3636. >
  3637. {{ index + 1 + "、" + item.teststitle }}
  3638. </div>
  3639. </el-tooltip>
  3640. </div>
  3641. </div>
  3642. </div>
  3643. <div
  3644. class="xuan_right_box"
  3645. style="background: unset; padding: 0 10px; width: 91.5%"
  3646. v-if="
  3647. tType &&
  3648. ((tType == 2 && sIsOpen == true) ||
  3649. tType == 1 ||
  3650. tType == 4) &&
  3651. tool.tool.indexOf(45) != -1
  3652. "
  3653. >
  3654. <AskStatic2
  3655. v-if="
  3656. worksStudent.length &&
  3657. worksStudent[toolIndex].length > 0
  3658. "
  3659. :askJSON="tool"
  3660. :checkJson="checkJson[toolIndex]"
  3661. ></AskStatic2>
  3662. </div>
  3663. <div
  3664. v-if="
  3665. tType &&
  3666. ((tType == 2 && sIsOpen == true) ||
  3667. tType == 1 ||
  3668. tType == 4) &&
  3669. tool.tool.indexOf(45) != -1
  3670. "
  3671. class="worksBox"
  3672. >
  3673. <div
  3674. class="zuoyeYulan"
  3675. v-if="
  3676. worksStudent.length &&
  3677. worksStudent[toolIndex].length > 0
  3678. "
  3679. >
  3680. <div class="worksTop">
  3681. <div>作业预览</div>
  3682. <div
  3683. class="corOpen"
  3684. @click="contract(toolIndex)"
  3685. v-if="
  3686. worksStudent[toolIndex].length > 6 &&
  3687. isCloseList[toolIndex].isClose == 0
  3688. "
  3689. >
  3690. 折叠
  3691. </div>
  3692. <div
  3693. class="corOpen"
  3694. @click="contract(toolIndex)"
  3695. v-if="isCloseList[toolIndex].isClose == 1"
  3696. >
  3697. 展开
  3698. </div>
  3699. </div>
  3700. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3701. </div>
  3702. <div>
  3703. <div
  3704. class="worksDetailBox"
  3705. v-if="
  3706. worksStudent.length &&
  3707. worksStudent[toolIndex].length > 0
  3708. "
  3709. >
  3710. <div
  3711. v-for="(w, wIndex) in isCloseList[toolIndex]
  3712. .isClose == 0
  3713. ? worksStudent[toolIndex]
  3714. : worksStudent[toolIndex].slice(0, 6)"
  3715. :key="wIndex"
  3716. class="isWorksName2"
  3717. @click="
  3718. openTools(
  3719. 45,
  3720. toolIndex,
  3721. taskCount,
  3722. w.works,
  3723. w.sName
  3724. )
  3725. "
  3726. >
  3727. {{ w.sName }}
  3728. <img
  3729. class="deleteImg deleteImg2"
  3730. src="../assets/deleteworks.png"
  3731. v-if="
  3732. w.userid == userid || tType == 1 || tType == 4
  3733. "
  3734. @click.stop="deleteWorks(w.wid)"
  3735. alt
  3736. />
  3737. </div>
  3738. </div>
  3739. </div>
  3740. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3741. 未提交
  3742. </div>
  3743. <div
  3744. class="noWorksS"
  3745. v-if="noWorksS && noWorksS[toolIndex].length"
  3746. >
  3747. <div
  3748. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3749. :key="sIndex"
  3750. class="noWorksName"
  3751. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  3752. >
  3753. {{ s.student }}
  3754. </div>
  3755. </div>
  3756. </div>
  3757. <div
  3758. v-if="
  3759. tType &&
  3760. ((tType == 2 && sIsOpen == true) ||
  3761. tType == 1 ||
  3762. tType == 4) &&
  3763. tool.tool.indexOf(69) != -1
  3764. "
  3765. class="worksBox"
  3766. >
  3767. <div
  3768. class="zuoyeYulan"
  3769. v-if="
  3770. worksStudent.length &&
  3771. worksStudent[toolIndex].length > 0
  3772. "
  3773. >
  3774. <div class="worksTop">
  3775. <div>作业预览</div>
  3776. <div
  3777. class="corOpen"
  3778. @click="contract(toolIndex)"
  3779. v-if="
  3780. worksStudent[toolIndex].length > 6 &&
  3781. isCloseList[toolIndex].isClose == 0
  3782. "
  3783. >
  3784. 折叠
  3785. </div>
  3786. <div
  3787. class="corOpen"
  3788. @click="contract(toolIndex)"
  3789. v-if="isCloseList[toolIndex].isClose == 1"
  3790. >
  3791. 展开
  3792. </div>
  3793. </div>
  3794. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3795. </div>
  3796. <div>
  3797. <div
  3798. class="worksDetailBox"
  3799. v-if="
  3800. worksStudent.length &&
  3801. worksStudent[toolIndex].length > 0
  3802. "
  3803. >
  3804. <div
  3805. v-for="(w, wIndex) in isCloseList[toolIndex]
  3806. .isClose == 0
  3807. ? worksStudent[toolIndex]
  3808. : worksStudent[toolIndex].slice(0, 6)"
  3809. :key="wIndex"
  3810. class="isWorksName2"
  3811. @click="
  3812. openTools(
  3813. 69,
  3814. toolIndex,
  3815. taskCount,
  3816. w.works,
  3817. w.sName,
  3818. w.wid
  3819. )
  3820. "
  3821. >
  3822. {{ w.sName }}
  3823. <img
  3824. class="deleteImg deleteImg2"
  3825. src="../assets/deleteworks.png"
  3826. v-if="
  3827. w.userid == userid || tType == 1 || tType == 4
  3828. "
  3829. @click.stop="deleteWorks(w.wid)"
  3830. alt
  3831. />
  3832. </div>
  3833. </div>
  3834. </div>
  3835. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3836. 未提交
  3837. </div>
  3838. <div
  3839. class="noWorksS"
  3840. v-if="noWorksS && noWorksS[toolIndex].length"
  3841. >
  3842. <div
  3843. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3844. :key="sIndex"
  3845. class="noWorksName"
  3846. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  3847. >
  3848. {{ s.student }}
  3849. </div>
  3850. </div>
  3851. </div>
  3852. <div
  3853. v-if="
  3854. tType &&
  3855. ((tType == 2 && sIsOpen == true) ||
  3856. tType == 1 ||
  3857. tType == 4) &&
  3858. tool.tool.indexOf(15) != -1
  3859. "
  3860. class="worksBox"
  3861. >
  3862. <div
  3863. class="zuoyeYulan"
  3864. v-if="
  3865. worksStudent.length &&
  3866. worksStudent[toolIndex].length > 0
  3867. "
  3868. >
  3869. <div class="worksTop">
  3870. <div>作业预览</div>
  3871. <div
  3872. class="corOpen"
  3873. @click="contract(toolIndex)"
  3874. v-if="
  3875. worksStudent[toolIndex].length > 6 &&
  3876. isCloseList[toolIndex].isClose == 0
  3877. "
  3878. >
  3879. 折叠
  3880. </div>
  3881. <div
  3882. class="corOpen"
  3883. @click="contract(toolIndex)"
  3884. v-if="isCloseList[toolIndex].isClose == 1"
  3885. >
  3886. 展开
  3887. </div>
  3888. </div>
  3889. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3890. </div>
  3891. <div
  3892. class="group_workBox"
  3893. v-for="(g, gindex) in courseGroup.group"
  3894. :key="gindex"
  3895. >
  3896. <div class="group_box">
  3897. <div class="group_title">
  3898. <el-tooltip
  3899. class="item"
  3900. effect="light"
  3901. :content="g.name"
  3902. placement="top"
  3903. >
  3904. <div class="group_name">{{ g.name }}</div>
  3905. </el-tooltip>
  3906. </div>
  3907. <div
  3908. class="group_work"
  3909. v-if="
  3910. g.works &&
  3911. g.works.length &&
  3912. g.works[toolIndex].length
  3913. "
  3914. >
  3915. <div
  3916. class="works"
  3917. v-for="(w, wIndex) in g.works[toolIndex]"
  3918. :key="wIndex"
  3919. >
  3920. <div
  3921. class="workImg"
  3922. style="
  3923. border-radius: 15px;
  3924. box-shadow: #eee 0px 0px 5px 5px;
  3925. "
  3926. >
  3927. <div
  3928. class="answerBg"
  3929. style="border-radius: 15px 15px 0 0"
  3930. @click="
  3931. commentOther(w, toolIndex, wIndex, null, g.id)
  3932. "
  3933. >
  3934. <div class="answerContent">
  3935. {{ JSON.parse(w.works)[0].answer }}
  3936. </div>
  3937. <div
  3938. class="answerScore"
  3939. v-if="w.score"
  3940. @click.stop="openScore(w)"
  3941. :class="{
  3942. rightW:
  3943. w.userid == userid ||
  3944. tType == 1 ||
  3945. tType == 4,
  3946. }"
  3947. >
  3948. {{ JSON.parse(w.score).wScore }}分
  3949. </div>
  3950. <div
  3951. class="answerScore"
  3952. @click.stop="openScore(w)"
  3953. v-else-if="courseDetail.userid == userid"
  3954. :class="{
  3955. rightW:
  3956. w.userid == userid ||
  3957. tType == 1 ||
  3958. tType == 4,
  3959. }"
  3960. >
  3961. 评分
  3962. </div>
  3963. <img
  3964. class="deleteImg"
  3965. src="../assets/deleteworks.png"
  3966. v-if="
  3967. w.userid == userid ||
  3968. tType == 1 ||
  3969. tType == 4
  3970. "
  3971. @click.stop="deleteWorks(w.wid)"
  3972. alt
  3973. />
  3974. </div>
  3975. <div class="comment">
  3976. <div class="worksName">
  3977. <div>{{ w.sName }}</div>
  3978. </div>
  3979. <div class="commentList">
  3980. <div
  3981. class="commentImg"
  3982. @click="
  3983. isLikes(w.wid, userid, 1, null, w.isLikes)
  3984. "
  3985. >
  3986. <img
  3987. :src="w.isLikes == true ? likes : noLikes"
  3988. alt=""
  3989. />
  3990. </div>
  3991. <div>{{ w.likesCount }}</div>
  3992. </div>
  3993. <div
  3994. class="commentList"
  3995. style="margin-right: 15px"
  3996. >
  3997. <div
  3998. class="commentImg"
  3999. @click="
  4000. commentOther(
  4001. w,
  4002. toolIndex,
  4003. wIndex,
  4004. null,
  4005. g.id
  4006. )
  4007. "
  4008. >
  4009. <img
  4010. src="../assets/icon/comment/comment.png"
  4011. alt=""
  4012. />
  4013. </div>
  4014. <div>{{ w.commentCount }}</div>
  4015. </div>
  4016. </div>
  4017. </div>
  4018. </div>
  4019. </div>
  4020. <div class="group_work" v-else>暂无提交作业</div>
  4021. </div>
  4022. </div>
  4023. <div
  4024. class="worksDetailBox"
  4025. v-if="
  4026. worksStudent.length &&
  4027. worksStudent[toolIndex].length > 0
  4028. "
  4029. >
  4030. <div
  4031. class="works"
  4032. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4033. 0
  4034. ? worksStudent[toolIndex]
  4035. : worksStudent[toolIndex].slice(0, 6)"
  4036. :key="wIndex"
  4037. >
  4038. <div
  4039. class="workImg"
  4040. style="
  4041. border-radius: 15px;
  4042. box-shadow: #eee 0px 0px 5px 5px;
  4043. "
  4044. >
  4045. <!-- <img
  4046. src="../assets/icon/works/noImg.png"
  4047. @click="openTools(15, toolIndex, taskCount, w.works)"
  4048. alt=""
  4049. />-->
  4050. <div
  4051. class="answerBg"
  4052. style="border-radius: 15px 15px 0 0"
  4053. @click="commentOther(w, toolIndex, wIndex)"
  4054. >
  4055. <!-- <div>{{ w.sName }}</div> -->
  4056. <div class="answerContent">
  4057. {{ JSON.parse(w.works)[0].answer }}
  4058. </div>
  4059. <div
  4060. class="answerScore"
  4061. v-if="w.score"
  4062. @click.stop="openScore(w)"
  4063. :class="{
  4064. rightW:
  4065. w.userid == userid ||
  4066. tType == 1 ||
  4067. tType == 4,
  4068. }"
  4069. >
  4070. {{ JSON.parse(w.score).wScore }}分
  4071. </div>
  4072. <div
  4073. class="answerScore"
  4074. @click.stop="openScore(w)"
  4075. v-else-if="courseDetail.userid == userid"
  4076. :class="{
  4077. rightW:
  4078. w.userid == userid ||
  4079. tType == 1 ||
  4080. tType == 4,
  4081. }"
  4082. >
  4083. 评分
  4084. </div>
  4085. <img
  4086. class="deleteImg"
  4087. src="../assets/deleteworks.png"
  4088. v-if="
  4089. w.userid == userid || tType == 1 || tType == 4
  4090. "
  4091. @click.stop="deleteWorks(w.wid)"
  4092. alt
  4093. />
  4094. </div>
  4095. <div class="comment">
  4096. <div class="worksName">
  4097. <div>{{ w.sName }}</div>
  4098. </div>
  4099. <div class="commentList">
  4100. <div
  4101. class="commentImg"
  4102. @click="
  4103. isLikes(w.wid, userid, 1, null, w.isLikes)
  4104. "
  4105. >
  4106. <img
  4107. :src="w.isLikes == true ? likes : noLikes"
  4108. alt=""
  4109. />
  4110. </div>
  4111. <div>{{ w.likesCount }}</div>
  4112. </div>
  4113. <div class="commentList" style="margin-right: 15px">
  4114. <div
  4115. class="commentImg"
  4116. @click="commentOther(w, toolIndex, wIndex)"
  4117. >
  4118. <img
  4119. src="../assets/icon/comment/comment.png"
  4120. alt=""
  4121. />
  4122. </div>
  4123. <div>{{ w.commentCount }}</div>
  4124. </div>
  4125. </div>
  4126. </div>
  4127. </div>
  4128. </div>
  4129. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4130. 未提交
  4131. </div>
  4132. <div
  4133. class="noWorksS"
  4134. v-if="noWorksS && noWorksS[toolIndex].length"
  4135. >
  4136. <div
  4137. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4138. :key="sIndex"
  4139. class="noWorksName"
  4140. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4141. >
  4142. {{ s.student }}
  4143. </div>
  4144. </div>
  4145. </div>
  4146. <div
  4147. v-if="
  4148. tType &&
  4149. ((tType == 2 && sIsOpen == true) ||
  4150. tType == 1 ||
  4151. tType == 4) &&
  4152. tool.tool.indexOf(1) != -1
  4153. "
  4154. class="worksBox"
  4155. >
  4156. <div
  4157. class="zuoyeYulan"
  4158. v-if="
  4159. worksStudent.length &&
  4160. worksStudent[toolIndex].length > 0
  4161. "
  4162. >
  4163. <div class="worksTop">
  4164. <div>作业预览</div>
  4165. <div
  4166. class="corOpen"
  4167. @click="contract(toolIndex)"
  4168. v-if="
  4169. worksStudent[toolIndex].length > 6 &&
  4170. isCloseList[toolIndex].isClose == 0
  4171. "
  4172. >
  4173. 折叠
  4174. </div>
  4175. <div
  4176. class="corOpen"
  4177. @click="contract(toolIndex)"
  4178. v-if="isCloseList[toolIndex].isClose == 1"
  4179. >
  4180. 展开
  4181. </div>
  4182. </div>
  4183. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4184. </div>
  4185. <div
  4186. class="group_workBox"
  4187. v-for="(g, gindex) in courseGroup.group"
  4188. :key="gindex"
  4189. >
  4190. <div class="group_box">
  4191. <div class="group_title">
  4192. <el-tooltip
  4193. class="item"
  4194. effect="light"
  4195. :content="g.name"
  4196. placement="top"
  4197. >
  4198. <div class="group_name">{{ g.name }}</div>
  4199. </el-tooltip>
  4200. </div>
  4201. <div
  4202. class="group_work"
  4203. v-if="
  4204. g.works &&
  4205. g.works.length &&
  4206. g.works[toolIndex].length
  4207. "
  4208. >
  4209. <div
  4210. class="works"
  4211. style="
  4212. width: 200px;
  4213. height: 140px;
  4214. margin: 10px 10px 10px 0;
  4215. border-radius: 15px;
  4216. box-shadow: 0 0 6px 1px #dfdada;
  4217. "
  4218. v-for="(w, wIndex) in g.works[toolIndex]"
  4219. :key="wIndex"
  4220. :class="w.type == 1 ? 'isTypeOne' : ''"
  4221. >
  4222. <div class="workImg">
  4223. <img
  4224. :src="w.works"
  4225. @click="previewImg(w.works)"
  4226. alt
  4227. />
  4228. <div
  4229. class="answerScore"
  4230. v-if="w.score"
  4231. @click.stop="openScore(w)"
  4232. :class="{
  4233. rightW:
  4234. w.userid == userid ||
  4235. tType == 1 ||
  4236. tType == 4,
  4237. }"
  4238. >
  4239. {{ JSON.parse(w.score).wScore }}分
  4240. </div>
  4241. <div
  4242. class="answerScore"
  4243. @click.stop="openScore(w)"
  4244. v-else-if="courseDetail.userid == userid"
  4245. :class="{
  4246. rightW:
  4247. w.userid == userid ||
  4248. tType == 1 ||
  4249. tType == 4,
  4250. }"
  4251. >
  4252. 评分
  4253. </div>
  4254. <img
  4255. class="deleteImg"
  4256. src="../assets/deleteworks.png"
  4257. v-if="
  4258. w.userid == userid || tType == 1 || tType == 4
  4259. "
  4260. @click.stop="deleteWorks(w.wid)"
  4261. alt
  4262. />
  4263. </div>
  4264. <div class="comment" style="min-width: 200px">
  4265. <div class="worksName">
  4266. <div>{{ w.sName }}</div>
  4267. </div>
  4268. <div class="commentList">
  4269. <div class="commentList">
  4270. <div
  4271. class="commentImg"
  4272. @click="
  4273. isLikes(w.wid, userid, 1, null, w.isLikes)
  4274. "
  4275. >
  4276. <img
  4277. :src="w.isLikes == true ? likes : noLikes"
  4278. alt=""
  4279. />
  4280. </div>
  4281. <div>{{ w.likesCount }}</div>
  4282. </div>
  4283. <div
  4284. class="commentList"
  4285. style="margin-right: 15px"
  4286. >
  4287. <div
  4288. class="commentImg"
  4289. @click="
  4290. commentOther(
  4291. w,
  4292. toolIndex,
  4293. wIndex,
  4294. null,
  4295. g.id
  4296. )
  4297. "
  4298. >
  4299. <img
  4300. src="../assets/icon/comment/comment.png"
  4301. alt=""
  4302. />
  4303. </div>
  4304. <div>{{ w.commentCount }}</div>
  4305. </div>
  4306. </div>
  4307. </div>
  4308. </div>
  4309. </div>
  4310. <div class="group_work" v-else>暂无提交作业</div>
  4311. </div>
  4312. </div>
  4313. <div
  4314. class="worksDetailBox"
  4315. v-if="
  4316. worksStudent.length &&
  4317. worksStudent[toolIndex].length > 0
  4318. "
  4319. >
  4320. <div
  4321. class="works"
  4322. style="
  4323. width: 200px;
  4324. height: 140px;
  4325. margin: 10px 10px 10px 0;
  4326. border-radius: 15px;
  4327. box-shadow: 0 0 6px 1px #dfdada;
  4328. "
  4329. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4330. 0
  4331. ? worksStudent[toolIndex]
  4332. : worksStudent[toolIndex].slice(0, 6)"
  4333. :key="wIndex"
  4334. >
  4335. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4336. <div class="workImg">
  4337. <img
  4338. :src="w.works"
  4339. @click="previewImg(w.works)"
  4340. alt
  4341. />
  4342. <div
  4343. class="answerScore"
  4344. v-if="w.score"
  4345. @click.stop="openScore(w)"
  4346. :class="{
  4347. rightW:
  4348. w.userid == userid || tType == 1 || tType == 4,
  4349. }"
  4350. >
  4351. {{ JSON.parse(w.score).wScore }}分
  4352. </div>
  4353. <div
  4354. class="answerScore"
  4355. @click.stop="openScore(w)"
  4356. v-else-if="courseDetail.userid == userid"
  4357. :class="{
  4358. rightW:
  4359. w.userid == userid || tType == 1 || tType == 4,
  4360. }"
  4361. >
  4362. 评分
  4363. </div>
  4364. <img
  4365. class="deleteImg"
  4366. src="../assets/deleteworks.png"
  4367. v-if="
  4368. w.userid == userid || tType == 1 || tType == 4
  4369. "
  4370. @click.stop="deleteWorks(w.wid)"
  4371. alt
  4372. />
  4373. </div>
  4374. <div class="comment" style="min-width: 200px">
  4375. <div class="worksName">
  4376. <div>{{ w.sName }}</div>
  4377. </div>
  4378. <div class="commentList">
  4379. <div class="commentList">
  4380. <div
  4381. class="commentImg"
  4382. @click="
  4383. isLikes(w.wid, userid, 1, null, w.isLikes)
  4384. "
  4385. >
  4386. <img
  4387. :src="w.isLikes == true ? likes : noLikes"
  4388. alt=""
  4389. />
  4390. </div>
  4391. <div>{{ w.likesCount }}</div>
  4392. </div>
  4393. <div class="commentList" style="margin-right: 15px">
  4394. <div
  4395. class="commentImg"
  4396. @click="commentOther(w, toolIndex, wIndex)"
  4397. >
  4398. <img
  4399. src="../assets/icon/comment/comment.png"
  4400. alt=""
  4401. />
  4402. </div>
  4403. <div>{{ w.commentCount }}</div>
  4404. </div>
  4405. </div>
  4406. </div>
  4407. </div>
  4408. </div>
  4409. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4410. 未提交
  4411. </div>
  4412. <div
  4413. class="noWorksS"
  4414. v-if="noWorksS && noWorksS[toolIndex].length"
  4415. >
  4416. <div
  4417. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4418. :key="sIndex"
  4419. class="noWorksName"
  4420. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4421. >
  4422. {{ s.student }}
  4423. </div>
  4424. </div>
  4425. </div>
  4426. <div
  4427. v-if="
  4428. tType &&
  4429. ((tType == 2 && sIsOpen == true) ||
  4430. tType == 1 ||
  4431. tType == 4) &&
  4432. tool.tool.indexOf(3) != -1
  4433. "
  4434. class="worksBox"
  4435. >
  4436. <div
  4437. class="zuoyeYulan"
  4438. v-if="
  4439. worksStudent.length &&
  4440. worksStudent[toolIndex].length > 0
  4441. "
  4442. >
  4443. <div class="worksTop">
  4444. <div>作业预览</div>
  4445. <div
  4446. class="corOpen"
  4447. @click="contract(toolIndex)"
  4448. v-if="
  4449. worksStudent[toolIndex].length > 6 &&
  4450. isCloseList[toolIndex].isClose == 0
  4451. "
  4452. >
  4453. 折叠
  4454. </div>
  4455. <div
  4456. class="corOpen"
  4457. @click="contract(toolIndex)"
  4458. v-if="isCloseList[toolIndex].isClose == 1"
  4459. >
  4460. 展开
  4461. </div>
  4462. </div>
  4463. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4464. </div>
  4465. <div
  4466. class="group_workBox"
  4467. v-for="(g, gindex) in courseGroup.group"
  4468. :key="gindex"
  4469. >
  4470. <div class="group_box">
  4471. <div class="group_title">
  4472. <el-tooltip
  4473. class="item"
  4474. effect="light"
  4475. :content="g.name"
  4476. placement="top"
  4477. >
  4478. <div class="group_name">{{ g.name }}</div>
  4479. </el-tooltip>
  4480. </div>
  4481. <div
  4482. class="group_work"
  4483. v-if="
  4484. g.works &&
  4485. g.works.length &&
  4486. g.works[toolIndex].length
  4487. "
  4488. >
  4489. <div
  4490. class="works"
  4491. style="
  4492. width: 200px;
  4493. height: 140px;
  4494. margin: 10px 10px 10px 0;
  4495. border-radius: 15px;
  4496. box-shadow: 0 0 6px 1px #dfdada;
  4497. "
  4498. v-for="(w, wIndex) in g.works[toolIndex]"
  4499. :key="wIndex"
  4500. :class="w.type == 1 ? 'isTypeOne' : ''"
  4501. >
  4502. <div class="workImg">
  4503. <img
  4504. :src="w.works"
  4505. @click="previewImg(w.works)"
  4506. alt
  4507. />
  4508. <div
  4509. class="answerScore"
  4510. v-if="w.score"
  4511. @click.stop="openScore(w)"
  4512. :class="{
  4513. rightW:
  4514. w.userid == userid ||
  4515. tType == 1 ||
  4516. tType == 4,
  4517. }"
  4518. >
  4519. {{ JSON.parse(w.score).wScore }}分
  4520. </div>
  4521. <div
  4522. class="answerScore"
  4523. @click.stop="openScore(w)"
  4524. v-else-if="courseDetail.userid == userid"
  4525. :class="{
  4526. rightW:
  4527. w.userid == userid ||
  4528. tType == 1 ||
  4529. tType == 4,
  4530. }"
  4531. >
  4532. 评分
  4533. </div>
  4534. <img
  4535. class="deleteImg"
  4536. src="../assets/deleteworks.png"
  4537. v-if="
  4538. w.userid == userid || tType == 1 || tType == 4
  4539. "
  4540. @click.stop="deleteWorks(w.wid)"
  4541. alt
  4542. />
  4543. </div>
  4544. <div class="comment" style="min-width: 200px">
  4545. <div class="worksName">
  4546. <div>{{ w.sName }}</div>
  4547. </div>
  4548. <div class="commentList">
  4549. <div class="commentList">
  4550. <div
  4551. class="commentImg"
  4552. @click="
  4553. isLikes(w.wid, userid, 1, null, w.isLikes)
  4554. "
  4555. >
  4556. <img
  4557. :src="w.isLikes == true ? likes : noLikes"
  4558. alt=""
  4559. />
  4560. </div>
  4561. <div>{{ w.likesCount }}</div>
  4562. </div>
  4563. <div
  4564. class="commentList"
  4565. style="margin-right: 15px"
  4566. >
  4567. <div
  4568. class="commentImg"
  4569. @click="
  4570. commentOther(
  4571. w,
  4572. toolIndex,
  4573. wIndex,
  4574. null,
  4575. g.id
  4576. )
  4577. "
  4578. >
  4579. <img
  4580. src="../assets/icon/comment/comment.png"
  4581. alt=""
  4582. />
  4583. </div>
  4584. <div>{{ w.commentCount }}</div>
  4585. </div>
  4586. </div>
  4587. </div>
  4588. </div>
  4589. </div>
  4590. <div class="group_work" v-else>暂无提交作业</div>
  4591. </div>
  4592. </div>
  4593. <div
  4594. class="worksDetailBox"
  4595. v-if="
  4596. worksStudent.length &&
  4597. worksStudent[toolIndex].length > 0
  4598. "
  4599. >
  4600. <div
  4601. class="works"
  4602. style="
  4603. width: 200px;
  4604. height: 140px;
  4605. margin: 10px 10px 10px 0;
  4606. border-radius: 15px;
  4607. box-shadow: 0 0 6px 1px #dfdada;
  4608. "
  4609. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4610. 0
  4611. ? worksStudent[toolIndex]
  4612. : worksStudent[toolIndex].slice(0, 6)"
  4613. :key="wIndex"
  4614. >
  4615. <!-- @click="previewImg(w.works)" -->
  4616. <div class="workImg">
  4617. <img
  4618. :src="w.works"
  4619. @click="previewImg(w.works)"
  4620. alt
  4621. />
  4622. <div
  4623. class="answerScore"
  4624. v-if="w.score"
  4625. @click.stop="openScore(w)"
  4626. :class="{
  4627. rightW:
  4628. w.userid == userid || tType == 1 || tType == 4,
  4629. }"
  4630. >
  4631. {{ JSON.parse(w.score).wScore }}分
  4632. </div>
  4633. <div
  4634. class="answerScore"
  4635. @click.stop="openScore(w)"
  4636. v-else-if="courseDetail.userid == userid"
  4637. :class="{
  4638. rightW:
  4639. w.userid == userid || tType == 1 || tType == 4,
  4640. }"
  4641. >
  4642. 评分
  4643. </div>
  4644. <img
  4645. class="deleteImg"
  4646. src="../assets/deleteworks.png"
  4647. v-if="
  4648. w.userid == userid || tType == 1 || tType == 4
  4649. "
  4650. @click.stop="deleteWorks(w.wid)"
  4651. alt
  4652. />
  4653. </div>
  4654. <div class="comment" style="min-width: 200px">
  4655. <div class="worksName">
  4656. <div>{{ w.sName }}</div>
  4657. </div>
  4658. <div class="commentList">
  4659. <div class="commentList">
  4660. <div
  4661. class="commentImg"
  4662. @click="
  4663. isLikes(w.wid, userid, 1, null, w.isLikes)
  4664. "
  4665. >
  4666. <img
  4667. :src="w.isLikes == true ? likes : noLikes"
  4668. alt=""
  4669. />
  4670. </div>
  4671. <div>{{ w.likesCount }}</div>
  4672. </div>
  4673. <div class="commentList" style="margin-right: 15px">
  4674. <div
  4675. class="commentImg"
  4676. @click="commentOther(w, toolIndex, wIndex)"
  4677. >
  4678. <img
  4679. src="../assets/icon/comment/comment.png"
  4680. alt=""
  4681. />
  4682. </div>
  4683. <div>{{ w.commentCount }}</div>
  4684. </div>
  4685. </div>
  4686. </div>
  4687. </div>
  4688. </div>
  4689. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4690. 未提交
  4691. </div>
  4692. <div
  4693. class="noWorksS"
  4694. v-if="noWorksS && noWorksS[toolIndex].length"
  4695. >
  4696. <div
  4697. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4698. :key="sIndex"
  4699. class="noWorksName"
  4700. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4701. >
  4702. {{ s.student }}
  4703. </div>
  4704. </div>
  4705. </div>
  4706. <div
  4707. v-if="
  4708. tType &&
  4709. ((tType == 2 && sIsOpen == true) ||
  4710. tType == 1 ||
  4711. tType == 4) &&
  4712. tool.tool.indexOf(6) != -1
  4713. "
  4714. class="worksBox"
  4715. >
  4716. <div
  4717. class="zuoyeYulan"
  4718. v-if="
  4719. worksStudent.length &&
  4720. worksStudent[toolIndex].length > 0
  4721. "
  4722. >
  4723. <div class="worksTop">
  4724. <div>作业预览</div>
  4725. <div
  4726. class="corOpen"
  4727. @click="contract(toolIndex)"
  4728. v-if="
  4729. worksStudent[toolIndex].length > 6 &&
  4730. isCloseList[toolIndex].isClose == 0
  4731. "
  4732. >
  4733. 折叠
  4734. </div>
  4735. <div
  4736. class="corOpen"
  4737. @click="contract(toolIndex)"
  4738. v-if="isCloseList[toolIndex].isClose == 1"
  4739. >
  4740. 展开
  4741. </div>
  4742. </div>
  4743. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4744. </div>
  4745. <div
  4746. class="group_workBox"
  4747. v-for="(g, gindex) in courseGroup.group"
  4748. :key="gindex"
  4749. >
  4750. <div class="group_box">
  4751. <div class="group_title">
  4752. <el-tooltip
  4753. class="item"
  4754. effect="light"
  4755. :content="g.name"
  4756. placement="top"
  4757. >
  4758. <div class="group_name">{{ g.name }}</div>
  4759. </el-tooltip>
  4760. </div>
  4761. <div
  4762. class="group_work"
  4763. v-if="
  4764. g.works &&
  4765. g.works.length &&
  4766. g.works[toolIndex].length
  4767. "
  4768. >
  4769. <div
  4770. class="works"
  4771. style="
  4772. width: 200px;
  4773. height: 140px;
  4774. margin: 10px 10px 10px 0;
  4775. border-radius: 15px;
  4776. box-shadow: 0 0 6px 1px #dfdada;
  4777. "
  4778. v-for="(w, wIndex) in g.works[toolIndex]"
  4779. :key="wIndex"
  4780. :class="w.type == 1 ? 'isTypeOne' : ''"
  4781. >
  4782. <div class="workImg">
  4783. <img
  4784. :src="w.works"
  4785. @click="previewImg(w.works)"
  4786. alt
  4787. />
  4788. <div
  4789. class="answerScore"
  4790. v-if="w.score"
  4791. @click.stop="openScore(w)"
  4792. :class="{
  4793. rightW:
  4794. w.userid == userid ||
  4795. tType == 1 ||
  4796. tType == 4,
  4797. }"
  4798. >
  4799. {{ JSON.parse(w.score).wScore }}分
  4800. </div>
  4801. <div
  4802. class="answerScore"
  4803. @click.stop="openScore(w)"
  4804. v-else-if="courseDetail.userid == userid"
  4805. :class="{
  4806. rightW:
  4807. w.userid == userid ||
  4808. tType == 1 ||
  4809. tType == 4,
  4810. }"
  4811. >
  4812. 评分
  4813. </div>
  4814. <img
  4815. class="deleteImg"
  4816. src="../assets/deleteworks.png"
  4817. v-if="
  4818. w.userid == userid || tType == 1 || tType == 4
  4819. "
  4820. @click.stop="deleteWorks(w.wid)"
  4821. alt
  4822. />
  4823. </div>
  4824. <div class="comment" style="min-width: 200px">
  4825. <div class="worksName">
  4826. <div>{{ w.sName }}</div>
  4827. </div>
  4828. <div class="commentList">
  4829. <div class="commentList">
  4830. <div
  4831. class="commentImg"
  4832. @click="
  4833. isLikes(w.wid, userid, 1, null, w.isLikes)
  4834. "
  4835. >
  4836. <img
  4837. :src="w.isLikes == true ? likes : noLikes"
  4838. alt=""
  4839. />
  4840. </div>
  4841. <div>{{ w.likesCount }}</div>
  4842. </div>
  4843. <div
  4844. class="commentList"
  4845. style="margin-right: 15px"
  4846. >
  4847. <div
  4848. class="commentImg"
  4849. @click="
  4850. commentOther(
  4851. w,
  4852. toolIndex,
  4853. wIndex,
  4854. null,
  4855. g.id
  4856. )
  4857. "
  4858. >
  4859. <img
  4860. src="../assets/icon/comment/comment.png"
  4861. alt=""
  4862. />
  4863. </div>
  4864. <div>{{ w.commentCount }}</div>
  4865. </div>
  4866. </div>
  4867. </div>
  4868. </div>
  4869. </div>
  4870. <div class="group_work" v-else>暂无提交作业</div>
  4871. </div>
  4872. </div>
  4873. <div
  4874. class="worksDetailBox"
  4875. v-if="
  4876. worksStudent.length &&
  4877. worksStudent[toolIndex].length > 0
  4878. "
  4879. >
  4880. <div
  4881. class="works"
  4882. style="
  4883. width: 200px;
  4884. height: 140px;
  4885. margin: 10px 10px 10px 0;
  4886. border-radius: 15px;
  4887. box-shadow: 0 0 6px 1px #dfdada;
  4888. "
  4889. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4890. 0
  4891. ? worksStudent[toolIndex]
  4892. : worksStudent[toolIndex].slice(0, 6)"
  4893. :key="wIndex"
  4894. >
  4895. <!-- @click="previewImg(w.works)" -->
  4896. <div class="workImg">
  4897. <img
  4898. :src="w.works"
  4899. @click="previewImg(w.works)"
  4900. alt
  4901. />
  4902. <div
  4903. class="answerScore"
  4904. v-if="w.score"
  4905. @click.stop="openScore(w)"
  4906. :class="{
  4907. rightW:
  4908. w.userid == userid || tType == 1 || tType == 4,
  4909. }"
  4910. >
  4911. {{ JSON.parse(w.score).wScore }}分
  4912. </div>
  4913. <div
  4914. class="answerScore"
  4915. @click.stop="openScore(w)"
  4916. v-else-if="courseDetail.userid == userid"
  4917. :class="{
  4918. rightW:
  4919. w.userid == userid || tType == 1 || tType == 4,
  4920. }"
  4921. >
  4922. 评分
  4923. </div>
  4924. <img
  4925. class="deleteImg"
  4926. src="../assets/deleteworks.png"
  4927. v-if="
  4928. w.userid == userid || tType == 1 || tType == 4
  4929. "
  4930. @click.stop="deleteWorks(w.wid)"
  4931. alt
  4932. />
  4933. </div>
  4934. <div class="comment" style="min-width: 200px">
  4935. <div class="worksName">
  4936. <div>{{ w.sName }}</div>
  4937. </div>
  4938. <div class="commentList">
  4939. <div class="commentList">
  4940. <div
  4941. class="commentImg"
  4942. @click="
  4943. isLikes(w.wid, userid, 1, null, w.isLikes)
  4944. "
  4945. >
  4946. <img
  4947. :src="w.isLikes == true ? likes : noLikes"
  4948. alt=""
  4949. />
  4950. </div>
  4951. <div>{{ w.likesCount }}</div>
  4952. </div>
  4953. <div class="commentList" style="margin-right: 15px">
  4954. <div
  4955. class="commentImg"
  4956. @click="commentOther(w, toolIndex, wIndex)"
  4957. >
  4958. <img
  4959. src="../assets/icon/comment/comment.png"
  4960. alt=""
  4961. />
  4962. </div>
  4963. <div>{{ w.commentCount }}</div>
  4964. </div>
  4965. </div>
  4966. </div>
  4967. </div>
  4968. </div>
  4969. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4970. 未提交
  4971. </div>
  4972. <div
  4973. class="noWorksS"
  4974. v-if="noWorksS && noWorksS[toolIndex].length"
  4975. >
  4976. <div
  4977. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4978. :key="sIndex"
  4979. class="noWorksName"
  4980. >
  4981. {{ s.student }}
  4982. </div>
  4983. </div>
  4984. </div>
  4985. <div
  4986. v-if="
  4987. tType &&
  4988. ((tType == 2 && sIsOpen == true) ||
  4989. tType == 1 ||
  4990. tType == 4) &&
  4991. tool.tool.indexOf(7) != -1
  4992. "
  4993. class="worksBox"
  4994. >
  4995. <div
  4996. class="zuoyeYulan"
  4997. v-if="
  4998. worksStudent.length &&
  4999. worksStudent[toolIndex].length > 0
  5000. "
  5001. >
  5002. <div class="worksTop">
  5003. <div>作业预览</div>
  5004. <div
  5005. class="corOpen"
  5006. @click="contract(toolIndex)"
  5007. v-if="
  5008. worksStudent[toolIndex].length > 6 &&
  5009. isCloseList[toolIndex].isClose == 0
  5010. "
  5011. >
  5012. 折叠
  5013. </div>
  5014. <div
  5015. class="corOpen"
  5016. @click="contract(toolIndex)"
  5017. v-if="isCloseList[toolIndex].isClose == 1"
  5018. >
  5019. 展开
  5020. </div>
  5021. </div>
  5022. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5023. </div>
  5024. <div
  5025. class="group_workBox"
  5026. v-for="(g, gindex) in courseGroup.group"
  5027. :key="gindex"
  5028. >
  5029. <div class="group_box">
  5030. <div class="group_title">
  5031. <el-tooltip
  5032. class="item"
  5033. effect="light"
  5034. :content="g.name"
  5035. placement="top"
  5036. >
  5037. <div class="group_name">{{ g.name }}</div>
  5038. </el-tooltip>
  5039. </div>
  5040. <div
  5041. class="group_work"
  5042. v-if="
  5043. g.works &&
  5044. g.works.length &&
  5045. g.works[toolIndex].length
  5046. "
  5047. >
  5048. <div
  5049. class="works"
  5050. style="
  5051. width: 200px;
  5052. height: 140px;
  5053. margin: 10px 10px 10px 0;
  5054. border-radius: 15px;
  5055. box-shadow: 0 0 6px 1px #dfdada;
  5056. "
  5057. v-for="(w, wIndex) in g.works[toolIndex]"
  5058. :key="wIndex"
  5059. :class="w.type == 1 ? 'isTypeOne' : ''"
  5060. >
  5061. <div class="workImg">
  5062. <img
  5063. :src="w.works"
  5064. @click="previewImg(w.works)"
  5065. alt
  5066. />
  5067. <div
  5068. class="answerScore"
  5069. v-if="w.score"
  5070. @click.stop="openScore(w)"
  5071. :class="{
  5072. rightW:
  5073. w.userid == userid ||
  5074. tType == 1 ||
  5075. tType == 4,
  5076. }"
  5077. >
  5078. {{ JSON.parse(w.score).wScore }}分
  5079. </div>
  5080. <div
  5081. class="answerScore"
  5082. @click.stop="openScore(w)"
  5083. v-else-if="courseDetail.userid == userid"
  5084. :class="{
  5085. rightW:
  5086. w.userid == userid ||
  5087. tType == 1 ||
  5088. tType == 4,
  5089. }"
  5090. >
  5091. 评分
  5092. </div>
  5093. <img
  5094. class="deleteImg"
  5095. src="../assets/deleteworks.png"
  5096. v-if="
  5097. w.userid == userid || tType == 1 || tType == 4
  5098. "
  5099. @click.stop="deleteWorks(w.wid)"
  5100. alt
  5101. />
  5102. </div>
  5103. <div class="comment" style="min-width: 200px">
  5104. <div class="worksName">
  5105. <div>{{ w.sName }}</div>
  5106. </div>
  5107. <div class="commentList">
  5108. <div class="commentList">
  5109. <div
  5110. class="commentImg"
  5111. @click="
  5112. isLikes(w.wid, userid, 1, null, w.isLikes)
  5113. "
  5114. >
  5115. <img
  5116. :src="w.isLikes == true ? likes : noLikes"
  5117. alt=""
  5118. />
  5119. </div>
  5120. <div>{{ w.likesCount }}</div>
  5121. </div>
  5122. <div
  5123. class="commentList"
  5124. style="margin-right: 15px"
  5125. >
  5126. <div
  5127. class="commentImg"
  5128. @click="
  5129. commentOther(
  5130. w,
  5131. toolIndex,
  5132. wIndex,
  5133. null,
  5134. g.id
  5135. )
  5136. "
  5137. >
  5138. <img
  5139. src="../assets/icon/comment/comment.png"
  5140. alt=""
  5141. />
  5142. </div>
  5143. <div>{{ w.commentCount }}</div>
  5144. </div>
  5145. </div>
  5146. </div>
  5147. </div>
  5148. </div>
  5149. <div class="group_work" v-else>暂无提交作业</div>
  5150. </div>
  5151. </div>
  5152. <div
  5153. class="worksDetailBox"
  5154. v-if="
  5155. worksStudent.length &&
  5156. worksStudent[toolIndex].length > 0
  5157. "
  5158. >
  5159. <div
  5160. class="works"
  5161. style="
  5162. width: 200px;
  5163. height: 140px;
  5164. margin: 10px 10px 10px 0;
  5165. border-radius: 15px;
  5166. box-shadow: 0 0 6px 1px #dfdada;
  5167. "
  5168. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5169. 0
  5170. ? worksStudent[toolIndex]
  5171. : worksStudent[toolIndex].slice(0, 6)"
  5172. :key="wIndex"
  5173. >
  5174. <!-- @click="previewImg(w.works)" -->
  5175. <div class="workImg">
  5176. <img
  5177. :src="w.works"
  5178. @click="previewImg(w.works)"
  5179. alt
  5180. />
  5181. <div
  5182. class="answerScore"
  5183. v-if="w.score"
  5184. @click.stop="openScore(w)"
  5185. :class="{
  5186. rightW:
  5187. w.userid == userid || tType == 1 || tType == 4,
  5188. }"
  5189. >
  5190. {{ JSON.parse(w.score).wScore }}分
  5191. </div>
  5192. <div
  5193. class="answerScore"
  5194. @click.stop="openScore(w)"
  5195. v-else-if="courseDetail.userid == userid"
  5196. :class="{
  5197. rightW:
  5198. w.userid == userid || tType == 1 || tType == 4,
  5199. }"
  5200. >
  5201. 评分
  5202. </div>
  5203. <img
  5204. class="deleteImg"
  5205. src="../assets/deleteworks.png"
  5206. v-if="
  5207. w.userid == userid || tType == 1 || tType == 4
  5208. "
  5209. @click.stop="deleteWorks(w.wid)"
  5210. alt
  5211. />
  5212. </div>
  5213. <div class="comment" style="min-width: 200px">
  5214. <div class="worksName">
  5215. <div>{{ w.sName }}</div>
  5216. </div>
  5217. <div class="commentList">
  5218. <div class="commentList">
  5219. <div
  5220. class="commentImg"
  5221. @click="
  5222. isLikes(w.wid, userid, 1, null, w.isLikes)
  5223. "
  5224. >
  5225. <img
  5226. :src="w.isLikes == true ? likes : noLikes"
  5227. alt=""
  5228. />
  5229. </div>
  5230. <div>{{ w.likesCount }}</div>
  5231. </div>
  5232. <div class="commentList" style="margin-right: 15px">
  5233. <div
  5234. class="commentImg"
  5235. @click="commentOther(w, toolIndex, wIndex)"
  5236. >
  5237. <img
  5238. src="../assets/icon/comment/comment.png"
  5239. alt=""
  5240. />
  5241. </div>
  5242. <div>{{ w.commentCount }}</div>
  5243. </div>
  5244. </div>
  5245. </div>
  5246. </div>
  5247. </div>
  5248. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5249. 未提交
  5250. </div>
  5251. <div
  5252. class="noWorksS"
  5253. v-if="noWorksS && noWorksS[toolIndex].length"
  5254. >
  5255. <div
  5256. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5257. :key="sIndex"
  5258. class="noWorksName"
  5259. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5260. >
  5261. {{ s.student }}
  5262. </div>
  5263. </div>
  5264. </div>
  5265. <div
  5266. v-if="
  5267. tType &&
  5268. ((tType == 2 && sIsOpen == true) ||
  5269. tType == 1 ||
  5270. tType == 4) &&
  5271. tool.tool.indexOf(26) != -1
  5272. "
  5273. class="worksBox"
  5274. >
  5275. <div
  5276. class="zuoyeYulan"
  5277. v-if="
  5278. worksStudent.length &&
  5279. worksStudent[toolIndex].length > 0
  5280. "
  5281. >
  5282. <div class="worksTop">
  5283. <div>作业预览</div>
  5284. <div
  5285. class="corOpen"
  5286. @click="contract(toolIndex)"
  5287. v-if="
  5288. worksStudent[toolIndex].length > 6 &&
  5289. isCloseList[toolIndex].isClose == 0
  5290. "
  5291. >
  5292. 折叠
  5293. </div>
  5294. <div
  5295. class="corOpen"
  5296. @click="contract(toolIndex)"
  5297. v-if="isCloseList[toolIndex].isClose == 1"
  5298. >
  5299. 展开
  5300. </div>
  5301. </div>
  5302. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5303. </div>
  5304. <div
  5305. class="worksDetailBox"
  5306. v-if="
  5307. worksStudent.length &&
  5308. worksStudent[toolIndex].length > 0
  5309. "
  5310. >
  5311. <div
  5312. class="works"
  5313. style="width: 240px; height: 140px; overflow: hidden"
  5314. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5315. 0
  5316. ? worksStudent[toolIndex]
  5317. : worksStudent[toolIndex].slice(0, 6)"
  5318. :key="wIndex"
  5319. :class="w.type == 1 ? 'isTypeOne' : ''"
  5320. >
  5321. <div class="workImg" v-if="w.type == 0">
  5322. <img
  5323. :src="w.works"
  5324. @click="previewImg(w.works)"
  5325. alt
  5326. />
  5327. <img
  5328. class="deleteImg"
  5329. src="../assets/deleteworks.png"
  5330. v-if="
  5331. w.userid == userid || tType == 1 || tType == 4
  5332. "
  5333. @click.stop="deleteWorks(w.wid)"
  5334. alt
  5335. />
  5336. </div>
  5337. <div class="workImg" v-if="w.type == 1">
  5338. <img :src="word" @click="openFile(w.works)" alt />
  5339. <img
  5340. class="deleteImg"
  5341. src="../assets/deleteworks.png"
  5342. v-if="
  5343. w.userid == userid || tType == 1 || tType == 4
  5344. "
  5345. @click.stop="deleteWorks(w.wid)"
  5346. alt
  5347. />
  5348. </div>
  5349. <div class="worksName">
  5350. <div>{{ w.sName }}</div>
  5351. </div>
  5352. </div>
  5353. </div>
  5354. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5355. 未提交
  5356. </div>
  5357. <div
  5358. class="noWorksS"
  5359. v-if="noWorksS && noWorksS[toolIndex].length"
  5360. >
  5361. <div
  5362. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5363. :key="sIndex"
  5364. class="noWorksName"
  5365. >
  5366. {{ s.student }}
  5367. </div>
  5368. </div>
  5369. </div>
  5370. <div
  5371. v-if="
  5372. tType &&
  5373. ((tType == 2 && sIsOpen == true) ||
  5374. tType == 1 ||
  5375. tType == 4) &&
  5376. tool.tool.indexOf(40) != -1
  5377. "
  5378. class="worksBox"
  5379. >
  5380. <div
  5381. class="zuoyeYulan"
  5382. v-if="
  5383. worksStudent.length &&
  5384. worksStudent[toolIndex].length > 0
  5385. "
  5386. >
  5387. <div class="worksTop">
  5388. <div>作业预览</div>
  5389. <div
  5390. class="corOpen"
  5391. @click="contract(toolIndex)"
  5392. v-if="
  5393. worksStudent[toolIndex].length > 6 &&
  5394. isCloseList[toolIndex].isClose == 0
  5395. "
  5396. >
  5397. 折叠
  5398. </div>
  5399. <div
  5400. class="corOpen"
  5401. @click="contract(toolIndex)"
  5402. v-if="isCloseList[toolIndex].isClose == 1"
  5403. >
  5404. 展开
  5405. </div>
  5406. </div>
  5407. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5408. </div>
  5409. <div
  5410. class="worksDetailBox"
  5411. v-if="
  5412. worksStudent.length &&
  5413. worksStudent[toolIndex].length > 0
  5414. "
  5415. >
  5416. <div
  5417. class="works"
  5418. style="
  5419. width: 200px;
  5420. height: 140px;
  5421. margin: 10px 10px 10px 0;
  5422. border-radius: 15px;
  5423. box-shadow: 0 0 6px 1px #dfdada;
  5424. "
  5425. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5426. 0
  5427. ? worksStudent[toolIndex]
  5428. : worksStudent[toolIndex].slice(0, 6)"
  5429. :key="wIndex"
  5430. :class="w.type == 1 ? 'isTypeOne' : ''"
  5431. >
  5432. <div class="workImg">
  5433. <img
  5434. src="../assets/icon/works/noImg.png"
  5435. @click="openPj(w.works, toolIndex)"
  5436. alt
  5437. />
  5438. <img
  5439. class="deleteImg"
  5440. src="../assets/deleteworks.png"
  5441. v-if="
  5442. w.userid == userid || tType == 1 || tType == 4
  5443. "
  5444. @click.stop="deleteWorks(w.wid)"
  5445. alt
  5446. />
  5447. </div>
  5448. <div class="comment" style="min-width: 200px">
  5449. <div class="worksName">
  5450. <div>{{ w.sName }}</div>
  5451. </div>
  5452. <div class="commentList">
  5453. <div class="commentList">
  5454. <div
  5455. class="commentImg"
  5456. @click="
  5457. isLikes(w.wid, userid, 1, null, w.isLikes)
  5458. "
  5459. >
  5460. <img
  5461. :src="w.isLikes == true ? likes : noLikes"
  5462. alt=""
  5463. />
  5464. </div>
  5465. <div>{{ w.likesCount }}</div>
  5466. </div>
  5467. <div class="commentList" style="margin-right: 15px">
  5468. <div
  5469. class="commentImg"
  5470. @click="commentOther(w, toolIndex, wIndex)"
  5471. >
  5472. <img
  5473. src="../assets/icon/comment/comment.png"
  5474. alt=""
  5475. />
  5476. </div>
  5477. <div>{{ w.commentCount }}</div>
  5478. </div>
  5479. </div>
  5480. </div>
  5481. </div>
  5482. </div>
  5483. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5484. 未提交
  5485. </div>
  5486. <div
  5487. class="noWorksS"
  5488. v-if="noWorksS && noWorksS[toolIndex].length"
  5489. >
  5490. <div
  5491. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5492. :key="sIndex"
  5493. class="noWorksName"
  5494. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5495. >
  5496. {{ s.student }}
  5497. </div>
  5498. </div>
  5499. </div>
  5500. <div
  5501. v-if="
  5502. tType &&
  5503. tType == 2 &&
  5504. !sIsOpen &&
  5505. tool.tool.indexOf(40) != -1
  5506. "
  5507. class="worksBox"
  5508. >
  5509. <div
  5510. class="zuoyeYulan"
  5511. v-if="workStudent[toolIndex].length > 0"
  5512. >
  5513. <span class="worksTitle">作业预览</span>
  5514. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5515. </div>
  5516. <div
  5517. class="worksDetailBox"
  5518. v-if="workStudent[toolIndex].length > 0"
  5519. >
  5520. <div
  5521. class="works"
  5522. style="
  5523. width: 200px;
  5524. height: 140px;
  5525. margin: 10px 10px 10px 0;
  5526. "
  5527. v-for="(w, wIndex) in workStudent[toolIndex]"
  5528. :key="wIndex"
  5529. >
  5530. <div class="workImg">
  5531. <img
  5532. src="../assets/icon/works/noImg.png"
  5533. @click="openPj(w.works, toolIndex)"
  5534. alt
  5535. />
  5536. <img
  5537. class="deleteImg"
  5538. src="../assets/deleteworks.png"
  5539. v-if="
  5540. w.userid == userid || tType == 1 || tType == 4
  5541. "
  5542. @click.stop="deleteWorks(w.wid)"
  5543. alt
  5544. />
  5545. </div>
  5546. <div class="worksName">
  5547. <div>{{ w.sName }}</div>
  5548. </div>
  5549. </div>
  5550. </div>
  5551. </div>
  5552. <div
  5553. v-if="
  5554. tType &&
  5555. ((tType == 2 && sIsOpen == true) ||
  5556. tType == 1 ||
  5557. tType == 4) &&
  5558. tool.tool.indexOf(41) != -1
  5559. "
  5560. >
  5561. <AnswerData2
  5562. v-if="
  5563. worksStudent.length &&
  5564. worksStudent[toolIndex].length > 0
  5565. "
  5566. :problemJson="tool.selectJson.answer"
  5567. :people="worksStudent[toolIndex]"
  5568. ></AnswerData2>
  5569. </div>
  5570. <div
  5571. v-if="
  5572. tType &&
  5573. ((tType == 2 && sIsOpen == true) ||
  5574. tType == 1 ||
  5575. tType == 4) &&
  5576. tool.tool.indexOf(41) != -1
  5577. "
  5578. class="worksBox"
  5579. >
  5580. <div
  5581. class="zuoyeYulan"
  5582. v-if="
  5583. worksStudent.length &&
  5584. worksStudent[toolIndex].length > 0
  5585. "
  5586. >
  5587. <div class="worksTop">
  5588. <div>作业预览</div>
  5589. <div
  5590. class="corOpen"
  5591. @click="contract(toolIndex)"
  5592. v-if="
  5593. worksStudent[toolIndex].length > 6 &&
  5594. isCloseList[toolIndex].isClose == 0
  5595. "
  5596. >
  5597. 折叠
  5598. </div>
  5599. <div
  5600. class="corOpen"
  5601. @click="contract(toolIndex)"
  5602. v-if="isCloseList[toolIndex].isClose == 1"
  5603. >
  5604. 展开
  5605. </div>
  5606. </div>
  5607. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5608. </div>
  5609. <div
  5610. class="worksDetailBox"
  5611. v-if="
  5612. worksStudent.length &&
  5613. worksStudent[toolIndex].length > 0
  5614. "
  5615. >
  5616. <div
  5617. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5618. 0
  5619. ? worksStudent[toolIndex]
  5620. : worksStudent[toolIndex].slice(0, 6)"
  5621. :key="wIndex"
  5622. class="isWorksName2"
  5623. @click="openXz(w, toolIndex)"
  5624. >
  5625. {{ w.sName }}
  5626. <img
  5627. class="deleteImg deleteImg2"
  5628. src="../assets/deleteworks.png"
  5629. v-if="w.userid == userid || tType == 1 || tType == 4"
  5630. @click.stop="deleteWorks(w.wid)"
  5631. alt
  5632. />
  5633. </div>
  5634. <!-- <div
  5635. class="works"
  5636. style="
  5637. width: 200px;
  5638. height: 140px;
  5639. margin: 10px 10px 10px 0;
  5640. border-radius: 15px;
  5641. box-shadow: 0 0 6px 1px #dfdada;
  5642. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5643. :class="w.type == 5 ? 'isTypeOne' : ''">
  5644. <div class="workImg">
  5645. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5646. </div>
  5647. <div class="worksName">
  5648. <div>{{ w.sName }}</div>
  5649. </div>
  5650. </div> -->
  5651. </div>
  5652. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5653. 未提交
  5654. </div>
  5655. <div
  5656. class="noWorksS"
  5657. v-if="noWorksS && noWorksS[toolIndex].length"
  5658. >
  5659. <div
  5660. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5661. :key="sIndex"
  5662. class="noWorksName"
  5663. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5664. >
  5665. {{ s.student }}
  5666. </div>
  5667. </div>
  5668. </div>
  5669. <div
  5670. v-if="
  5671. tType &&
  5672. tType == 2 &&
  5673. !sIsOpen &&
  5674. tool.tool.indexOf(41) != -1
  5675. "
  5676. class="worksBox"
  5677. >
  5678. <div
  5679. class="zuoyeYulan"
  5680. v-if="workStudent[toolIndex].length > 0"
  5681. >
  5682. <span class="worksTitle">作业预览</span>
  5683. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5684. </div>
  5685. <div
  5686. class="worksDetailBox"
  5687. v-if="workStudent[toolIndex].length > 0"
  5688. >
  5689. <div
  5690. class="works"
  5691. style="
  5692. width: 200px;
  5693. height: 140px;
  5694. margin: 10px 10px 10px 0;
  5695. "
  5696. v-for="(w, wIndex) in workStudent[toolIndex]"
  5697. :key="wIndex"
  5698. >
  5699. <div class="workImg">
  5700. <img
  5701. src="../assets/icon/works/noImg.png"
  5702. @click="openXz(w, toolIndex)"
  5703. alt
  5704. />
  5705. <img
  5706. class="deleteImg"
  5707. src="../assets/deleteworks.png"
  5708. v-if="
  5709. w.userid == userid || tType == 1 || tType == 4
  5710. "
  5711. @click.stop="deleteWorks(w.wid)"
  5712. alt
  5713. />
  5714. </div>
  5715. <div class="worksName">
  5716. <div>{{ w.sName }}</div>
  5717. </div>
  5718. </div>
  5719. </div>
  5720. </div>
  5721. <div v-if="false" class="xuan_right_box">
  5722. <div
  5723. class="tool_right_box"
  5724. v-for="(item, index) in tool.sentenceList"
  5725. :key="index"
  5726. >
  5727. <div>
  5728. <span
  5729. style="word-break: break-all; white-space: normal"
  5730. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  5731. >
  5732. </div>
  5733. <div class="right_box_xuan">
  5734. <span>正确率</span>
  5735. <span>{{
  5736. (checkJson[toolIndex][index].right
  5737. ? checkJson[toolIndex][index].right
  5738. : 0) + "%"
  5739. }}</span>
  5740. </div>
  5741. <div class="right_box_xuan">
  5742. <span>答对人数</span>
  5743. <span>{{
  5744. checkJson[toolIndex][index].rightPerson.length
  5745. }}</span>
  5746. </div>
  5747. </div>
  5748. </div>
  5749. <div
  5750. v-if="
  5751. tType &&
  5752. ((tType == 2 && sIsOpen == true) ||
  5753. tType == 1 ||
  5754. tType == 4) &&
  5755. tool.tool.indexOf(47) != -1
  5756. "
  5757. >
  5758. <AnswerData
  5759. v-if="
  5760. checkJson[toolIndex].length &&
  5761. (tool.sentenceList || tool.sentenceList.length > 0)
  5762. "
  5763. :people="checkJson[toolIndex]"
  5764. ></AnswerData>
  5765. </div>
  5766. <div
  5767. v-if="
  5768. tType &&
  5769. tType == 2 &&
  5770. !sIsOpen &&
  5771. tool.tool.indexOf(47) != -1
  5772. "
  5773. class="worksBox"
  5774. >
  5775. <div
  5776. class="zuoyeYulan"
  5777. v-if="workStudent[toolIndex].length > 0"
  5778. >
  5779. <span class="worksTitle">作业预览</span>
  5780. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5781. </div>
  5782. <div
  5783. class="worksDetailBox"
  5784. v-if="workStudent[toolIndex].length > 0"
  5785. >
  5786. <div
  5787. class="works"
  5788. style="
  5789. width: 200px;
  5790. height: 140px;
  5791. margin: 10px 10px 10px 0;
  5792. "
  5793. v-for="(w, wIndex) in workStudent[toolIndex]"
  5794. :key="wIndex"
  5795. >
  5796. <!-- @click="openXz(w, toolIndex)" -->
  5797. <div class="workImg" @click="openSen(w, toolIndex)">
  5798. <img src="../assets/icon/works/noImg.png" alt />
  5799. <img
  5800. class="deleteImg"
  5801. src="../assets/deleteworks.png"
  5802. v-if="
  5803. w.userid == userid || tType == 1 || tType == 4
  5804. "
  5805. @click.stop="deleteWorks(w.wid)"
  5806. alt
  5807. />
  5808. </div>
  5809. <div class="worksName">
  5810. <div>
  5811. {{ w.sName }}
  5812. </div>
  5813. </div>
  5814. </div>
  5815. </div>
  5816. </div>
  5817. <div
  5818. v-if="
  5819. tType &&
  5820. ((tType == 2 && sIsOpen == true) ||
  5821. tType == 1 ||
  5822. tType == 4) &&
  5823. tool.tool.indexOf(47) != -1
  5824. "
  5825. class="worksBox"
  5826. >
  5827. <div
  5828. class="zuoyeYulan"
  5829. v-if="
  5830. worksStudent.length &&
  5831. worksStudent[toolIndex].length > 0
  5832. "
  5833. >
  5834. <div class="worksTop">
  5835. <div>作业预览</div>
  5836. <div
  5837. class="corOpen"
  5838. @click="contract(toolIndex)"
  5839. v-if="
  5840. worksStudent[toolIndex].length > 6 &&
  5841. isCloseList[toolIndex].isClose == 0
  5842. "
  5843. >
  5844. 折叠
  5845. </div>
  5846. <div
  5847. class="corOpen"
  5848. @click="contract(toolIndex)"
  5849. v-if="isCloseList[toolIndex].isClose == 1"
  5850. >
  5851. 展开
  5852. </div>
  5853. </div>
  5854. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5855. </div>
  5856. <div
  5857. class="worksDetailBox"
  5858. v-if="
  5859. worksStudent.length &&
  5860. worksStudent[toolIndex].length > 0
  5861. "
  5862. >
  5863. <!-- @click="openXz(w, toolIndex)" -->
  5864. <div
  5865. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5866. 0
  5867. ? worksStudent[toolIndex]
  5868. : worksStudent[toolIndex].slice(0, 6)"
  5869. :key="wIndex"
  5870. class="isWorksName2"
  5871. @click="openSen(w, toolIndex)"
  5872. >
  5873. {{ w.sName }}
  5874. <img
  5875. class="deleteImg deleteImg2"
  5876. src="../assets/deleteworks.png"
  5877. v-if="w.userid == userid || tType == 1 || tType == 4"
  5878. @click.stop="deleteWorks(w.wid)"
  5879. alt
  5880. />
  5881. </div>
  5882. </div>
  5883. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5884. 未提交
  5885. </div>
  5886. <div
  5887. class="noWorksS"
  5888. v-if="noWorksS && noWorksS[toolIndex].length"
  5889. >
  5890. <div
  5891. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5892. :key="sIndex"
  5893. class="noWorksName"
  5894. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5895. >
  5896. {{ s.student }}
  5897. </div>
  5898. </div>
  5899. </div>
  5900. <div
  5901. v-if="
  5902. tType &&
  5903. ((tType == 2 && sIsOpen == true) ||
  5904. tType == 1 ||
  5905. tType == 4) &&
  5906. tool.tool.indexOf(48) != -1
  5907. "
  5908. class="worksBox"
  5909. >
  5910. <div
  5911. class="zuoyeYulan"
  5912. v-if="
  5913. worksStudent.length &&
  5914. worksStudent[toolIndex].length > 0
  5915. "
  5916. >
  5917. <div class="worksTop">
  5918. <div>作业预览</div>
  5919. <div
  5920. class="corOpen"
  5921. @click="contract(toolIndex)"
  5922. v-if="
  5923. worksStudent[toolIndex].length > 6 &&
  5924. isCloseList[toolIndex].isClose == 0
  5925. "
  5926. >
  5927. 折叠
  5928. </div>
  5929. <div
  5930. class="corOpen"
  5931. @click="contract(toolIndex)"
  5932. v-if="isCloseList[toolIndex].isClose == 1"
  5933. >
  5934. 展开
  5935. </div>
  5936. </div>
  5937. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5938. </div>
  5939. <div
  5940. class="worksDetailBox"
  5941. v-if="
  5942. worksStudent.length &&
  5943. worksStudent[toolIndex].length > 0
  5944. "
  5945. >
  5946. <div
  5947. class="works"
  5948. style="
  5949. width: 200px;
  5950. height: 140px;
  5951. margin: 10px 10px 10px 0;
  5952. border-radius: 15px;
  5953. box-shadow: 0 0 6px 1px #dfdada;
  5954. "
  5955. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5956. 0
  5957. ? worksStudent[toolIndex]
  5958. : worksStudent[toolIndex].slice(0, 6)"
  5959. :key="wIndex"
  5960. :class="w.type == 1 ? 'isTypeOne' : ''"
  5961. >
  5962. <div class="workImg">
  5963. <img :src="word" @click="openTable(w)" alt />
  5964. <!-- @click="openFile(w.works)" -->
  5965. <div
  5966. class="answerScore"
  5967. v-if="w.score"
  5968. @click.stop="openScore(w)"
  5969. :class="{
  5970. rightW:
  5971. w.userid == userid ||
  5972. tType == 1 ||
  5973. tType == 4 ||
  5974. w.ateacher == userid,
  5975. }"
  5976. >
  5977. {{ JSON.parse(w.score).wScore }}分
  5978. </div>
  5979. <div
  5980. class="answerScore"
  5981. @click.stop="openScore(w)"
  5982. v-else-if="courseDetail.userid == userid"
  5983. :class="{
  5984. rightW:
  5985. w.userid == userid ||
  5986. tType == 1 ||
  5987. tType == 4 ||
  5988. w.ateacher == userid,
  5989. }"
  5990. >
  5991. 评分
  5992. </div>
  5993. <img
  5994. class="deleteImg"
  5995. src="../assets/deleteworks.png"
  5996. v-if="
  5997. w.userid == userid || tType == 1 || tType == 4
  5998. "
  5999. @click.stop="deleteWorks(w.wid)"
  6000. alt
  6001. />
  6002. </div>
  6003. <div class="comment" style="min-width: 200px">
  6004. <div class="worksName">
  6005. <div>{{ w.sName }}</div>
  6006. </div>
  6007. <div class="commentList">
  6008. <div class="commentList">
  6009. <div
  6010. class="commentImg"
  6011. @click="
  6012. isLikes(w.wid, userid, 1, null, w.isLikes)
  6013. "
  6014. >
  6015. <img
  6016. :src="w.isLikes == true ? likes : noLikes"
  6017. alt=""
  6018. />
  6019. </div>
  6020. <div>{{ w.likesCount }}</div>
  6021. </div>
  6022. <div class="commentList" style="margin-right: 15px">
  6023. <div
  6024. class="commentImg"
  6025. @click="commentOther(w, toolIndex, wIndex)"
  6026. >
  6027. <img
  6028. src="../assets/icon/comment/comment.png"
  6029. alt=""
  6030. />
  6031. </div>
  6032. <div>{{ w.commentCount }}</div>
  6033. </div>
  6034. </div>
  6035. </div>
  6036. </div>
  6037. </div>
  6038. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6039. 未提交
  6040. </div>
  6041. <div
  6042. class="noWorksS"
  6043. v-if="noWorksS && noWorksS[toolIndex].length"
  6044. >
  6045. <div
  6046. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6047. :key="sIndex"
  6048. class="noWorksName"
  6049. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6050. >
  6051. {{ s.student }}
  6052. </div>
  6053. </div>
  6054. </div>
  6055. <div
  6056. v-if="
  6057. tType &&
  6058. tType == 2 &&
  6059. !sIsOpen &&
  6060. tool.tool.indexOf(48) != -1
  6061. "
  6062. class="worksBox"
  6063. >
  6064. <div
  6065. class="zuoyeYulan"
  6066. v-if="workStudent[toolIndex].length > 0"
  6067. >
  6068. <span class="worksTitle">作业预览</span>
  6069. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6070. </div>
  6071. <div
  6072. class="worksDetailBox"
  6073. v-if="workStudent[toolIndex].length > 0"
  6074. >
  6075. <div
  6076. class="works"
  6077. style="
  6078. width: 200px;
  6079. height: 140px;
  6080. margin: 10px 10px 10px 0;
  6081. box-shadow: 0 0 6px 1px #dfdada;
  6082. "
  6083. v-for="(w, wIndex) in workStudent[toolIndex]"
  6084. :key="wIndex"
  6085. >
  6086. <div class="workImg">
  6087. <img :src="word" @click="openTable(w)" alt />
  6088. <div
  6089. class="answerScore"
  6090. v-if="w.score"
  6091. @click.stop="openScore(w)"
  6092. :class="{
  6093. rightW:
  6094. w.userid == userid || tType == 1 || tType == 4,
  6095. }"
  6096. >
  6097. {{ JSON.parse(w.score).wScore }}分
  6098. </div>
  6099. <div
  6100. class="answerScore"
  6101. @click.stop="openScore(w)"
  6102. v-else-if="courseDetail.userid == userid"
  6103. :class="{
  6104. rightW:
  6105. w.userid == userid || tType == 1 || tType == 4,
  6106. }"
  6107. >
  6108. 评分
  6109. </div>
  6110. <img
  6111. class="deleteImg"
  6112. src="../assets/deleteworks.png"
  6113. v-if="
  6114. w.userid == userid || tType == 1 || tType == 4
  6115. "
  6116. @click.stop="deleteWorks(w.wid)"
  6117. alt
  6118. />
  6119. </div>
  6120. <div class="worksName">
  6121. <div>{{ w.sName }}</div>
  6122. </div>
  6123. </div>
  6124. </div>
  6125. </div>
  6126. <div
  6127. v-if="
  6128. tType &&
  6129. ((tType == 2 && sIsOpen == true) ||
  6130. tType == 1 ||
  6131. tType == 4) &&
  6132. tool.tool.indexOf(52) != -1
  6133. "
  6134. class="worksBox"
  6135. >
  6136. <div
  6137. class="zuoyeYulan"
  6138. v-if="
  6139. worksStudent.length &&
  6140. worksStudent[toolIndex].length > 0
  6141. "
  6142. >
  6143. <div class="worksTop">
  6144. <div>作业预览</div>
  6145. <div
  6146. class="corOpen"
  6147. @click="contract(toolIndex)"
  6148. v-if="
  6149. worksStudent[toolIndex].length > 6 &&
  6150. isCloseList[toolIndex].isClose == 0
  6151. "
  6152. >
  6153. 折叠
  6154. </div>
  6155. <div
  6156. class="corOpen"
  6157. @click="contract(toolIndex)"
  6158. v-if="isCloseList[toolIndex].isClose == 1"
  6159. >
  6160. 展开
  6161. </div>
  6162. </div>
  6163. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6164. </div>
  6165. <div
  6166. class="worksDetailBox"
  6167. v-if="
  6168. worksStudent.length &&
  6169. worksStudent[toolIndex].length > 0
  6170. "
  6171. >
  6172. <div
  6173. class="works"
  6174. style="
  6175. width: 200px;
  6176. height: 140px;
  6177. margin: 10px 10px 10px 0;
  6178. border-radius: 15px;
  6179. box-shadow: 0 0 6px 1px #dfdada;
  6180. "
  6181. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6182. 0
  6183. ? worksStudent[toolIndex]
  6184. : worksStudent[toolIndex].slice(0, 6)"
  6185. :key="wIndex"
  6186. :class="w.type == 1 ? 'isTypeOne' : ''"
  6187. >
  6188. <div class="workImg">
  6189. <img :src="word" @click="openWord(w)" alt />
  6190. <!-- @click="openFile(w.works)" -->
  6191. <div
  6192. class="answerScore"
  6193. v-if="w.score"
  6194. @click.stop="openScore(w)"
  6195. :class="{
  6196. rightW:
  6197. w.userid == userid ||
  6198. tType == 1 ||
  6199. tType == 4 ||
  6200. w.ateacher == userid,
  6201. }"
  6202. >
  6203. {{ JSON.parse(w.score).wScore }}分
  6204. </div>
  6205. <div
  6206. class="answerScore"
  6207. @click.stop="openScore(w)"
  6208. v-else-if="courseDetail.userid == userid"
  6209. :class="{
  6210. rightW:
  6211. w.userid == userid ||
  6212. tType == 1 ||
  6213. tType == 4 ||
  6214. w.ateacher == userid,
  6215. }"
  6216. >
  6217. 评分
  6218. </div>
  6219. <img
  6220. class="deleteImg"
  6221. src="../assets/deleteworks.png"
  6222. v-if="
  6223. w.userid == userid || tType == 1 || tType == 4
  6224. "
  6225. @click.stop="deleteWorks(w.wid)"
  6226. alt
  6227. />
  6228. </div>
  6229. <div class="comment" style="min-width: 200px">
  6230. <div class="worksName">
  6231. <div>{{ w.sName }}</div>
  6232. </div>
  6233. <div class="commentList">
  6234. <div class="commentList">
  6235. <div
  6236. class="commentImg"
  6237. @click="
  6238. isLikes(w.wid, userid, 1, null, w.isLikes)
  6239. "
  6240. >
  6241. <img
  6242. :src="w.isLikes == true ? likes : noLikes"
  6243. alt=""
  6244. />
  6245. </div>
  6246. <div>{{ w.likesCount }}</div>
  6247. </div>
  6248. <div class="commentList" style="margin-right: 15px">
  6249. <div
  6250. class="commentImg"
  6251. @click="commentOther(w, toolIndex, wIndex)"
  6252. >
  6253. <img
  6254. src="../assets/icon/comment/comment.png"
  6255. alt=""
  6256. />
  6257. </div>
  6258. <div>{{ w.commentCount }}</div>
  6259. </div>
  6260. </div>
  6261. </div>
  6262. </div>
  6263. </div>
  6264. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6265. 未提交
  6266. </div>
  6267. <div
  6268. class="noWorksS"
  6269. v-if="noWorksS && noWorksS[toolIndex].length"
  6270. >
  6271. <div
  6272. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6273. :key="sIndex"
  6274. class="noWorksName"
  6275. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6276. >
  6277. {{ s.student }}
  6278. </div>
  6279. </div>
  6280. </div>
  6281. <div
  6282. v-if="
  6283. tType &&
  6284. tType == 2 &&
  6285. !sIsOpen &&
  6286. tool.tool.indexOf(52) != -1
  6287. "
  6288. class="worksBox"
  6289. >
  6290. <div
  6291. class="zuoyeYulan"
  6292. v-if="workStudent[toolIndex].length > 0"
  6293. >
  6294. <span class="worksTitle">作业预览</span>
  6295. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6296. </div>
  6297. <div
  6298. class="worksDetailBox"
  6299. v-if="workStudent[toolIndex].length > 0"
  6300. >
  6301. <div
  6302. class="works"
  6303. style="
  6304. width: 200px;
  6305. height: 140px;
  6306. margin: 10px 10px 10px 0;
  6307. box-shadow: 0 0 6px 1px #dfdada;
  6308. "
  6309. v-for="(w, wIndex) in workStudent[toolIndex]"
  6310. :key="wIndex"
  6311. >
  6312. <div class="workImg">
  6313. <img :src="word" @click="openWord(w)" alt />
  6314. <div
  6315. class="answerScore"
  6316. v-if="w.score"
  6317. @click.stop="openScore(w)"
  6318. :class="{
  6319. rightW:
  6320. w.userid == userid || tType == 1 || tType == 4,
  6321. }"
  6322. >
  6323. {{ JSON.parse(w.score).wScore }}分
  6324. </div>
  6325. <div
  6326. class="answerScore"
  6327. @click.stop="openScore(w)"
  6328. v-else-if="courseDetail.userid == userid"
  6329. :class="{
  6330. rightW:
  6331. w.userid == userid || tType == 1 || tType == 4,
  6332. }"
  6333. >
  6334. 评分
  6335. </div>
  6336. <img
  6337. class="deleteImg"
  6338. src="../assets/deleteworks.png"
  6339. v-if="
  6340. w.userid == userid || tType == 1 || tType == 4
  6341. "
  6342. @click.stop="deleteWorks(w.wid)"
  6343. alt
  6344. />
  6345. </div>
  6346. <div class="worksName">
  6347. <div>{{ w.sName }}</div>
  6348. </div>
  6349. </div>
  6350. </div>
  6351. </div>
  6352. <div
  6353. v-if="tool.tool.indexOf(49) != -1"
  6354. class="xuan_right_box"
  6355. style="margin: 0 15px 0 25px; width: 93%"
  6356. >
  6357. <div
  6358. v-if="courseDetail.userid == userid"
  6359. style="
  6360. display: flex;
  6361. justify-content: flex-end;
  6362. margin-right: 10px;
  6363. "
  6364. >
  6365. <el-button
  6366. type="primary"
  6367. size="small"
  6368. @click="addTools(49, toolIndex, taskCount)"
  6369. >分组设置</el-button
  6370. >
  6371. </div>
  6372. <div
  6373. v-if="groupStudentUid[toolIndex]"
  6374. class="group_staic_box"
  6375. >
  6376. <div
  6377. v-for="(gp, gd) in tool.groupJson.group"
  6378. :key="gd"
  6379. class="group_staic"
  6380. >
  6381. <span> {{ gp.name }}</span>
  6382. <span>
  6383. 目前人数{{
  6384. groupStudentUid[toolIndex][gd].length
  6385. }}人</span
  6386. >
  6387. </div>
  6388. </div>
  6389. </div>
  6390. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6391. <div
  6392. class="zuoyeYulan"
  6393. v-if="
  6394. worksStudent.length &&
  6395. worksStudent[toolIndex].length > 0
  6396. "
  6397. >
  6398. <span class="worksTitle">作业预览</span>
  6399. </div>
  6400. <div>
  6401. <div
  6402. class="group_workBox"
  6403. v-for="(g, gindex) in tool.groupJson.group"
  6404. :key="gindex"
  6405. >
  6406. <div
  6407. class="group_box"
  6408. v-if="
  6409. groupStudentUid[toolIndex] &&
  6410. worksStudent[toolIndex] &&
  6411. (worksStudent[toolIndex][gindex].length ||
  6412. groupStudentUid[toolIndex][gindex].indexOf(
  6413. userid
  6414. ) != -1)
  6415. "
  6416. >
  6417. <div class="group_title">
  6418. <el-tooltip
  6419. class="item"
  6420. effect="light"
  6421. :content="g.name"
  6422. placement="top"
  6423. >
  6424. <div class="group_name">{{ g.name }}</div>
  6425. </el-tooltip>
  6426. <el-button
  6427. type="primary"
  6428. v-if="
  6429. groupStudentUid[toolIndex][gindex].indexOf(
  6430. userid
  6431. ) != -1
  6432. "
  6433. @click="groupUpload(toolIndex, taskCount, gindex)"
  6434. >上传作业</el-button
  6435. >
  6436. </div>
  6437. <div class="group_work">
  6438. <div
  6439. class="works"
  6440. style="
  6441. width: 200px;
  6442. height: 140px;
  6443. margin: 10px 10px 10px 0;
  6444. border-radius: 15px;
  6445. box-shadow: 0 0 6px 1px #dfdada;
  6446. "
  6447. v-for="(w, wIndex) in worksStudent[toolIndex][
  6448. gindex
  6449. ]"
  6450. :key="wIndex"
  6451. :class="w.type == 1 ? 'isTypeOne' : ''"
  6452. >
  6453. <div class="workImg" v-if="w.type == 0">
  6454. <img
  6455. :src="w.works"
  6456. @click="previewImg(w.works)"
  6457. alt
  6458. />
  6459. <div
  6460. class="answerScore"
  6461. v-if="w.score"
  6462. @click.stop="openScore(w)"
  6463. :class="{
  6464. rightW:
  6465. w.userid == userid ||
  6466. tType == 1 ||
  6467. tType == 4 ||
  6468. w.ateacher == userid,
  6469. }"
  6470. >
  6471. {{ JSON.parse(w.score).wScore }}分
  6472. </div>
  6473. <div
  6474. class="answerScore"
  6475. @click.stop="openScore(w)"
  6476. v-else-if="courseDetail.userid == userid"
  6477. :class="{
  6478. rightW:
  6479. w.userid == userid ||
  6480. tType == 1 ||
  6481. tType == 4 ||
  6482. w.ateacher == userid,
  6483. }"
  6484. >
  6485. 评分
  6486. </div>
  6487. <img
  6488. class="deleteImg"
  6489. src="../assets/deleteworks.png"
  6490. v-if="
  6491. w.userid == userid ||
  6492. tType == 1 ||
  6493. tType == 4
  6494. "
  6495. @click.stop="deleteWorks(w.wid)"
  6496. alt
  6497. />
  6498. </div>
  6499. <div class="workImg" v-if="w.type == 1">
  6500. <img
  6501. :src="word"
  6502. @click="openFile(w.works)"
  6503. alt
  6504. />
  6505. <!-- @click="openFile(w.works)" -->
  6506. <div
  6507. class="answerScore"
  6508. v-if="w.score"
  6509. @click.stop="openScore(w)"
  6510. :class="{
  6511. rightW:
  6512. w.userid == userid ||
  6513. tType == 1 ||
  6514. tType == 4 ||
  6515. w.ateacher == userid,
  6516. }"
  6517. >
  6518. {{ JSON.parse(w.score).wScore }}分
  6519. </div>
  6520. <div
  6521. class="answerScore"
  6522. @click.stop="openScore(w)"
  6523. v-else-if="courseDetail.userid == userid"
  6524. :class="{
  6525. rightW:
  6526. w.userid == userid ||
  6527. tType == 1 ||
  6528. tType == 4 ||
  6529. w.ateacher == userid,
  6530. }"
  6531. >
  6532. 评分
  6533. </div>
  6534. <img
  6535. class="deleteImg"
  6536. src="../assets/deleteworks.png"
  6537. v-if="
  6538. w.userid == userid ||
  6539. tType == 1 ||
  6540. tType == 4
  6541. "
  6542. @click.stop="deleteWorks(w.wid)"
  6543. alt
  6544. />
  6545. </div>
  6546. <div class="workImg" v-if="w.type == 3">
  6547. <img
  6548. style="cursor: pointer"
  6549. :src="video"
  6550. @click="openVideo(w)"
  6551. alt
  6552. />
  6553. <!-- @click="openVideo(w.works)" -->
  6554. <div
  6555. class="answerScore"
  6556. v-if="w.score"
  6557. @click.stop="openScore(w)"
  6558. :class="{
  6559. rightW:
  6560. w.userid == userid ||
  6561. tType == 1 ||
  6562. tType == 4 ||
  6563. w.ateacher == userid,
  6564. }"
  6565. >
  6566. {{ JSON.parse(w.score).wScore }}分
  6567. </div>
  6568. <div
  6569. class="answerScore"
  6570. @click.stop="openScore(w)"
  6571. v-else-if="courseDetail.userid == userid"
  6572. :class="{
  6573. rightW:
  6574. w.userid == userid ||
  6575. tType == 1 ||
  6576. tType == 4 ||
  6577. w.ateacher == userid,
  6578. }"
  6579. >
  6580. 评分
  6581. </div>
  6582. <img
  6583. class="deleteImg"
  6584. src="../assets/deleteworks.png"
  6585. v-if="
  6586. w.userid == userid ||
  6587. tType == 1 ||
  6588. tType == 4
  6589. "
  6590. @click.stop="deleteWorks(w.wid)"
  6591. alt
  6592. />
  6593. </div>
  6594. <div class="workImg" v-if="w.type == 12">
  6595. <img
  6596. style="cursor: pointer"
  6597. :src="word2"
  6598. @click="downloadFile(w.works)"
  6599. alt
  6600. />
  6601. <!-- @click="openVideo(w.works)" -->
  6602. <div
  6603. class="answerScore"
  6604. v-if="w.score"
  6605. @click.stop="openScore(w)"
  6606. :class="{
  6607. rightW:
  6608. w.userid == userid ||
  6609. tType == 1 ||
  6610. tType == 4 ||
  6611. w.ateacher == userid,
  6612. }"
  6613. >
  6614. {{ JSON.parse(w.score).wScore }}分
  6615. </div>
  6616. <div
  6617. class="answerScore"
  6618. @click.stop="openScore(w)"
  6619. v-else-if="courseDetail.userid == userid"
  6620. :class="{
  6621. rightW:
  6622. w.userid == userid ||
  6623. tType == 1 ||
  6624. tType == 4 ||
  6625. w.ateacher == userid,
  6626. }"
  6627. >
  6628. 评分
  6629. </div>
  6630. <img
  6631. class="deleteImg"
  6632. src="../assets/deleteworks.png"
  6633. v-if="
  6634. w.userid == userid ||
  6635. tType == 1 ||
  6636. tType == 4
  6637. "
  6638. @click.stop="deleteWorks(w.wid)"
  6639. alt
  6640. />
  6641. </div>
  6642. <div class="comment" style="min-width: 200px">
  6643. <div class="worksName">
  6644. <div>{{ w.sName }}</div>
  6645. </div>
  6646. <div class="commentList">
  6647. <div class="commentList">
  6648. <div
  6649. class="commentImg"
  6650. @click="
  6651. isLikes(
  6652. w.wid,
  6653. userid,
  6654. 1,
  6655. null,
  6656. w.isLikes
  6657. )
  6658. "
  6659. >
  6660. <img
  6661. :src="
  6662. w.isLikes == true ? likes : noLikes
  6663. "
  6664. alt=""
  6665. />
  6666. </div>
  6667. <div>{{ w.likesCount }}</div>
  6668. </div>
  6669. <div
  6670. class="commentList"
  6671. style="margin-right: 15px"
  6672. >
  6673. <div
  6674. class="commentImg"
  6675. @click="
  6676. commentOther(
  6677. w,
  6678. toolIndex,
  6679. wIndex,
  6680. gindex
  6681. )
  6682. "
  6683. >
  6684. <img
  6685. src="../assets/icon/comment/comment.png"
  6686. alt=""
  6687. />
  6688. </div>
  6689. <div>{{ w.commentCount }}</div>
  6690. </div>
  6691. </div>
  6692. </div>
  6693. </div>
  6694. </div>
  6695. </div>
  6696. </div>
  6697. </div>
  6698. </div>
  6699. </div>
  6700. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6701. 上传文件
  6702. <input
  6703. type="file"
  6704. accept="image/png, image/gif, image/jpeg"
  6705. style="display: none"
  6706. @change="beforeUpload1($event, 2, index)"
  6707. />
  6708. </div>-->
  6709. </div>
  6710. </div>
  6711. <!-- <div
  6712. class="vedioBox"
  6713. style="margin-top: 10px"
  6714. v-if="
  6715. courseDetail.userid == userid ||
  6716. (courseDetail.course_teacher &&
  6717. courseDetail.course_teacher.indexOf(userid) != -1)
  6718. "
  6719. :style="{
  6720. borderRadius:
  6721. !(
  6722. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6723. .toolChoose[0].tool &&
  6724. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6725. .toolChoose[0].tool.length > 0
  6726. ) &&
  6727. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6728. .taskDetail == '' &&
  6729. vChapterData[taskCount].length == 0 &&
  6730. fileC[taskCount].length == 0
  6731. ? '0 0 20px 20px'
  6732. : '20px',
  6733. }"
  6734. >
  6735. <div
  6736. class="queTop"
  6737. @click="isClose = !isClose"
  6738. style="
  6739. padding: 15px 0 15px 37px;
  6740. justify-content: space-between;
  6741. "
  6742. >
  6743. <div class="queTopTitle">新增工具</div>
  6744. <div class="queTopRight">
  6745. <div class="queTopClose" v-if="isClose == 0">
  6746. 展开
  6747. <div class="closeImg">
  6748. <img src="../assets/icon/newIcon/close.png" alt="" />
  6749. </div>
  6750. </div>
  6751. <div class="queTopClose" v-if="isClose == 1">
  6752. 折叠
  6753. <div class="openImg">
  6754. <img src="../assets/icon/newIcon/open.png" alt="" />
  6755. </div>
  6756. </div>
  6757. <el-button
  6758. style="margin: 0 30px 0 auto"
  6759. type="primary"
  6760. size="small"
  6761. v-if="isClose == 1 && checktoolArray.length > 0"
  6762. @click.stop="addToolChoose"
  6763. >确定</el-button
  6764. >
  6765. </div>
  6766. </div>
  6767. <div
  6768. class="tool_work_box"
  6769. :style="isClose == 0 ? 'display:none' : 'display:block'"
  6770. >
  6771. <div class="tool_box">
  6772. <div class="tool_type_box">
  6773. <div class="chooseWho">
  6774. <div
  6775. :class="toolType == 0 ? 'isChooseActive' : ''"
  6776. @click="(toolType = 0), $forceUpdate()"
  6777. >
  6778. 互动类
  6779. </div>
  6780. <div
  6781. :class="toolType == 1 ? 'isChooseActive' : ''"
  6782. @click="(toolType = 1), $forceUpdate()"
  6783. >
  6784. 思维类
  6785. </div>
  6786. <div
  6787. :class="toolType == 2 ? 'isChooseActive' : ''"
  6788. @click="(toolType = 2), $forceUpdate()"
  6789. >
  6790. 测评类
  6791. </div>
  6792. <div
  6793. :class="toolType == 3 ? 'isChooseActive' : ''"
  6794. @click="(toolType = 3), $forceUpdate()"
  6795. >
  6796. 编程类
  6797. </div>
  6798. <div
  6799. :class="toolType == 5 ? 'isChooseActive' : ''"
  6800. @click="(toolType = 5), $forceUpdate()"
  6801. >
  6802. 学科类
  6803. </div>
  6804. </div>
  6805. </div>
  6806. <div>
  6807. <div class="toolSort" v-if="toolType == 0">
  6808. <div class="tool">
  6809. <div class="whiteBIcon" @click="addTools2(10)">
  6810. <img
  6811. src="../assets/icon/thirdToolList/time.png"
  6812. alt
  6813. />
  6814. <div style="margin: 5px 0">倒计时</div>
  6815. </div>
  6816. <div class="check" @click="addTools2(10)">
  6817. <img
  6818. src="../assets/icon/checkNo.png"
  6819. alt
  6820. v-if="checktoolArray.indexOf(10) == -1"
  6821. />
  6822. <div class="checkDiv" v-else>
  6823. <img src="../assets/icon/checkedIs.png" alt /><span
  6824. >已选择</span
  6825. >
  6826. </div>
  6827. </div>
  6828. </div>
  6829. <div class="tool">
  6830. <div class="whiteBIcon" @click="addTools2(65)">
  6831. <img
  6832. src="../assets/icon/firstToolList/pickPeople.png"
  6833. alt
  6834. />
  6835. <div style="margin: 5px 0">挑人</div>
  6836. </div>
  6837. <div class="check" @click="addTools2(65)">
  6838. <img
  6839. src="../assets/icon/checkNo.png"
  6840. alt
  6841. v-if="checktoolArray.indexOf(65) == -1"
  6842. />
  6843. <div class="checkDiv" v-else>
  6844. <img src="../assets/icon/checkedIs.png" alt /><span
  6845. >已选择</span
  6846. >
  6847. </div>
  6848. </div>
  6849. </div>
  6850. </div>
  6851. <div class="toolSort" v-if="toolType == 1">
  6852. <div class="tool">
  6853. <div class="whiteBIcon" @click="addTools2(7)">
  6854. <img
  6855. src="../assets/icon/secondToolList/mindNetwork.png"
  6856. alt
  6857. />
  6858. <div style="margin: 5px 0">思维网格</div>
  6859. </div>
  6860. <div class="check" @click="addTools2(7)">
  6861. <img
  6862. src="../assets/icon/checkNo.png"
  6863. alt
  6864. v-if="checktoolArray.indexOf(7) == -1"
  6865. />
  6866. <div class="checkDiv" v-else>
  6867. <img src="../assets/icon/checkedIs.png" alt /><span
  6868. >已选择</span
  6869. >
  6870. </div>
  6871. </div>
  6872. </div>
  6873. <div class="tool">
  6874. <div class="whiteBIcon" @click="addTools2(1)">
  6875. <img
  6876. src="../assets/icon/secondToolList/whiteBoard.png"
  6877. alt
  6878. />
  6879. <div style="margin: 5px 0">电子白板</div>
  6880. </div>
  6881. <div class="check" @click="addTools2(1)">
  6882. <img
  6883. src="../assets/icon/checkNo.png"
  6884. alt
  6885. v-if="checktoolArray.indexOf(1) == -1"
  6886. />
  6887. <div class="checkDiv" v-else>
  6888. <img src="../assets/icon/checkedIs.png" alt /><span
  6889. >已选择</span
  6890. >
  6891. </div>
  6892. </div>
  6893. </div>
  6894. <div class="tool">
  6895. <div class="whiteBIcon" @click="addTools2(52)">
  6896. <img
  6897. src="../assets/icon/fourthToolList/text.png"
  6898. alt
  6899. />
  6900. <div style="margin: 5px 0">文档</div>
  6901. </div>
  6902. <div class="check" @click="addTools2(52)">
  6903. <img
  6904. src="../assets/icon/checkNo.png"
  6905. alt
  6906. v-if="checktoolArray.indexOf(52) == -1"
  6907. />
  6908. <div class="checkDiv" v-else>
  6909. <img src="../assets/icon/checkedIs.png" alt /><span
  6910. >已选择</span
  6911. >
  6912. </div>
  6913. </div>
  6914. </div>
  6915. <div class="tool">
  6916. <div class="whiteBIcon" @click="addTools2(3)">
  6917. <img
  6918. src="../assets/icon/secondToolList/mindMapping.png"
  6919. alt
  6920. />
  6921. <div style="margin: 5px 0">思维导图</div>
  6922. </div>
  6923. <div class="check" @click="addTools2(3)">
  6924. <img
  6925. src="../assets/icon/checkNo.png"
  6926. alt
  6927. v-if="checktoolArray.indexOf(3) == -1"
  6928. />
  6929. <div class="checkDiv" v-else>
  6930. <img src="../assets/icon/checkedIs.png" alt /><span
  6931. >已选择</span
  6932. >
  6933. </div>
  6934. </div>
  6935. </div>
  6936. <div class="tool">
  6937. <div class="whiteBIcon" @click="addTools2(48)">
  6938. <img
  6939. src="../assets/icon/fourthToolList/table.png"
  6940. alt
  6941. />
  6942. <div style="margin: 5px 0">表格</div>
  6943. </div>
  6944. <div class="check" @click="addTools2(48)">
  6945. <img
  6946. src="../assets/icon/checkNo.png"
  6947. alt
  6948. v-if="checktoolArray.indexOf(48) == -1"
  6949. />
  6950. <div class="checkDiv" v-else>
  6951. <img src="../assets/icon/checkedIs.png" alt /><span
  6952. >已选择</span
  6953. >
  6954. </div>
  6955. </div>
  6956. </div>
  6957. </div>
  6958. <div class="toolSort" v-if="toolType == 6">
  6959. <div v-show="tooC == 49">
  6960. <img
  6961. @click="addTools(tooC, toolIndex, taskCount)"
  6962. src="../assets/icon/fourthToolList/group.png"
  6963. alt
  6964. />
  6965. <div style="margin: 5px 0">学生分组</div>
  6966. </div>
  6967. </div>
  6968. <div class="toolSort" v-if="toolType == 2">
  6969. <div class="tool">
  6970. <div class="whiteBIcon" @click="addTools2(16)">
  6971. <img
  6972. src="../assets/icon/thirdToolList/work.png"
  6973. alt
  6974. />
  6975. <div style="margin: 5px 0">作业提交</div>
  6976. </div>
  6977. <div class="check" @click="addTools2(16)">
  6978. <img
  6979. src="../assets/icon/checkNo.png"
  6980. alt
  6981. v-if="checktoolArray.indexOf(16) == -1"
  6982. />
  6983. <div class="checkDiv" v-else>
  6984. <img src="../assets/icon/checkedIs.png" alt /><span
  6985. >已选择</span
  6986. >
  6987. </div>
  6988. </div>
  6989. </div>
  6990. <div class="tool">
  6991. <div class="whiteBIcon" @click="addTools2(50)">
  6992. <img
  6993. src="../assets/icon/thirdToolList/plwork.png"
  6994. alt
  6995. />
  6996. <div style="margin: 5px 0">批量上传</div>
  6997. </div>
  6998. <div class="check" @click="addTools2(50)">
  6999. <img
  7000. src="../assets/icon/checkNo.png"
  7001. alt
  7002. v-if="checktoolArray.indexOf(50) == -1"
  7003. />
  7004. <div class="checkDiv" v-else>
  7005. <img src="../assets/icon/checkedIs.png" alt /><span
  7006. >已选择</span
  7007. >
  7008. </div>
  7009. </div>
  7010. </div>
  7011. </div>
  7012. <div class="toolSort" v-if="toolType == 3">
  7013. <div class="tool">
  7014. <div class="whiteBIcon" @click="addTools2(18)">
  7015. <img
  7016. src="../assets/icon/thirdToolList/trainPlatform.png"
  7017. alt
  7018. />
  7019. <div style="margin: 5px 0">训练平台</div>
  7020. </div>
  7021. <div class="check" @click="addTools2(18)">
  7022. <img
  7023. src="../assets/icon/checkNo.png"
  7024. alt
  7025. v-if="checktoolArray.indexOf(18) == -1"
  7026. />
  7027. <div class="checkDiv" v-else>
  7028. <img src="../assets/icon/checkedIs.png" alt /><span
  7029. >已选择</span
  7030. >
  7031. </div>
  7032. </div>
  7033. </div>
  7034. <div class="tool">
  7035. <div class="whiteBIcon" @click="addTools2(21)">
  7036. <img
  7037. src="../assets/icon/fourthToolList/program.png"
  7038. alt
  7039. />
  7040. <div style="margin: 5px 0">AIoT Blockly</div>
  7041. </div>
  7042. <div class="check" @click="addTools2(21)">
  7043. <img
  7044. src="../assets/icon/checkNo.png"
  7045. alt
  7046. v-if="checktoolArray.indexOf(21) == -1"
  7047. />
  7048. <div class="checkDiv" v-else>
  7049. <img src="../assets/icon/checkedIs.png" alt /><span
  7050. >已选择</span
  7051. >
  7052. </div>
  7053. </div>
  7054. </div>
  7055. <div class="tool">
  7056. <div class="whiteBIcon" @click="addTools2(23)">
  7057. <img
  7058. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7059. alt
  7060. />
  7061. <div style="margin: 5px 0">AI Python</div>
  7062. </div>
  7063. <div class="check" @click="addTools2(23)">
  7064. <img
  7065. src="../assets/icon/checkNo.png"
  7066. alt
  7067. v-if="checktoolArray.indexOf(23) == -1"
  7068. />
  7069. <div class="checkDiv" v-else>
  7070. <img src="../assets/icon/checkedIs.png" alt /><span
  7071. >已选择</span
  7072. >
  7073. </div>
  7074. </div>
  7075. </div>
  7076. <div class="tool">
  7077. <div class="whiteBIcon" @click="addTools2(24)">
  7078. <img
  7079. src="../assets/icon/fourthToolList/AIprogram.png"
  7080. alt
  7081. />
  7082. <div style="margin: 5px 0">AI Blockly</div>
  7083. </div>
  7084. <div class="check" @click="addTools2(24)">
  7085. <img
  7086. src="../assets/icon/checkNo.png"
  7087. alt
  7088. v-if="checktoolArray.indexOf(24) == -1"
  7089. />
  7090. <div class="checkDiv" v-else>
  7091. <img src="../assets/icon/checkedIs.png" alt /><span
  7092. >已选择</span
  7093. >
  7094. </div>
  7095. </div>
  7096. </div>
  7097. <div class="tool">
  7098. <div class="whiteBIcon" @click="addTools2(32)">
  7099. <img
  7100. src="../assets/icon/thirdToolList/code.png"
  7101. alt
  7102. />
  7103. <div style="margin: 5px 0">源码编辑</div>
  7104. </div>
  7105. <div class="check" @click="addTools2(32)">
  7106. <img
  7107. src="../assets/icon/checkNo.png"
  7108. alt
  7109. v-if="checktoolArray.indexOf(32) == -1"
  7110. />
  7111. <div class="checkDiv" v-else>
  7112. <img src="../assets/icon/checkedIs.png" alt /><span
  7113. >已选择</span
  7114. >
  7115. </div>
  7116. </div>
  7117. </div>
  7118. <div class="tool">
  7119. <div class="whiteBIcon" @click="addTools2(57)">
  7120. <img
  7121. src="../assets/icon/fourthToolList/cocopi.png"
  7122. alt
  7123. />
  7124. <div style="margin: 5px 0">CocoPi</div>
  7125. </div>
  7126. <div class="check" @click="addTools2(57)">
  7127. <img
  7128. src="../assets/icon/checkNo.png"
  7129. alt
  7130. v-if="checktoolArray.indexOf(57) == -1"
  7131. />
  7132. <div class="checkDiv" v-else>
  7133. <img src="../assets/icon/checkedIs.png" alt /><span
  7134. >已选择</span
  7135. >
  7136. </div>
  7137. </div>
  7138. </div>
  7139. <div class="tool">
  7140. <div class="whiteBIcon" @click="addTools2(63)">
  7141. <img
  7142. src="../assets/icon/fourthToolList/Wood.png"
  7143. alt
  7144. />
  7145. <div style="margin: 5px 0">海龟编程</div>
  7146. </div>
  7147. <div class="check" @click="addTools2(63)">
  7148. <img
  7149. src="../assets/icon/checkNo.png"
  7150. alt
  7151. v-if="checktoolArray.indexOf(63) == -1"
  7152. />
  7153. <div class="checkDiv" v-else>
  7154. <img src="../assets/icon/checkedIs.png" alt /><span
  7155. >已选择</span
  7156. >
  7157. </div>
  7158. </div>
  7159. </div>
  7160. </div>
  7161. <div class="toolSort" v-if="toolType == 5">
  7162. <div class="tool">
  7163. <div class="whiteBIcon" @click="addTools2(28)">
  7164. <img
  7165. src="../assets/icon/secondToolList/translation.png"
  7166. alt
  7167. />
  7168. <div style="margin: 5px 0">翻译</div>
  7169. </div>
  7170. <div class="check" @click="addTools2(28)">
  7171. <img
  7172. src="../assets/icon/checkNo.png"
  7173. alt
  7174. v-if="checktoolArray.indexOf(28) == -1"
  7175. />
  7176. <div class="checkDiv" v-else>
  7177. <img src="../assets/icon/checkedIs.png" alt /><span
  7178. >已选择</span
  7179. >
  7180. </div>
  7181. </div>
  7182. </div>
  7183. <div class="tool">
  7184. <div class="whiteBIcon" @click="addTools2(31)">
  7185. <img
  7186. src="../assets/icon/secondToolList/networkPanel.png"
  7187. alt
  7188. />
  7189. <div style="margin: 5px 0">数字画板</div>
  7190. </div>
  7191. <div class="check" @click="addTools2(31)">
  7192. <img
  7193. src="../assets/icon/checkNo.png"
  7194. alt
  7195. v-if="checktoolArray.indexOf(31) == -1"
  7196. />
  7197. <div class="checkDiv" v-else>
  7198. <img src="../assets/icon/checkedIs.png" alt /><span
  7199. >已选择</span
  7200. >
  7201. </div>
  7202. </div>
  7203. </div>
  7204. <div class="tool">
  7205. <div class="whiteBIcon" @click="addTools2(39)">
  7206. <img
  7207. src="../assets/icon/secondToolList/GeoGebra.png"
  7208. alt
  7209. />
  7210. <div style="margin: 5px 0">GeoGebra</div>
  7211. </div>
  7212. <div class="check" @click="addTools2(39)">
  7213. <img
  7214. src="../assets/icon/checkNo.png"
  7215. alt
  7216. v-if="checktoolArray.indexOf(39) == -1"
  7217. />
  7218. <div class="checkDiv" v-else>
  7219. <img src="../assets/icon/checkedIs.png" alt /><span
  7220. >已选择</span
  7221. >
  7222. </div>
  7223. </div>
  7224. </div>
  7225. <div class="tool">
  7226. <div class="whiteBIcon" @click="addTools2(66)">
  7227. <img
  7228. src="../assets/icon/secondToolList/formulaEdi.png"
  7229. alt
  7230. />
  7231. <div style="margin: 5px 0">公式编辑</div>
  7232. </div>
  7233. <div class="check" @click="addTools2(66)">
  7234. <img
  7235. src="../assets/icon/checkNo.png"
  7236. alt
  7237. v-if="checktoolArray.indexOf(66) == -1"
  7238. />
  7239. <div class="checkDiv" v-else>
  7240. <img src="../assets/icon/checkedIs.png" alt /><span
  7241. >已选择</span
  7242. >
  7243. </div>
  7244. </div>
  7245. </div>
  7246. <div class="tool">
  7247. <div class="whiteBIcon" @click="addTools2(67)">
  7248. <img
  7249. src="../assets/icon/secondToolList/molStr.png"
  7250. alt
  7251. />
  7252. <div style="margin: 5px 0">分子结构</div>
  7253. </div>
  7254. <div class="check" @click="addTools2(67)">
  7255. <img
  7256. src="../assets/icon/checkNo.png"
  7257. alt
  7258. v-if="checktoolArray.indexOf(67) == -1"
  7259. />
  7260. <div class="checkDiv" v-else>
  7261. <img src="../assets/icon/checkedIs.png" alt /><span
  7262. >已选择</span
  7263. >
  7264. </div>
  7265. </div>
  7266. </div>
  7267. <div class="tool">
  7268. <div class="whiteBIcon" @click="addTools2(68)">
  7269. <img
  7270. src="../assets/icon/secondToolList/timeAxis.png"
  7271. alt
  7272. />
  7273. <div style="margin: 5px 0">时间轴</div>
  7274. </div>
  7275. <div class="check" @click="addTools2(68)">
  7276. <img
  7277. src="../assets/icon/checkNo.png"
  7278. alt
  7279. v-if="checktoolArray.indexOf(68) == -1"
  7280. />
  7281. <div class="checkDiv" v-else>
  7282. <img src="../assets/icon/checkedIs.png" alt /><span
  7283. >已选择</span
  7284. >
  7285. </div>
  7286. </div>
  7287. </div>
  7288. </div>
  7289. <div class="toolSort" v-if="toolType == 7">
  7290. <div class="tool">
  7291. <div class="whiteBIcon" @click="addTools2(40)">
  7292. <img
  7293. src="../assets/icon/secondToolList/eval.png"
  7294. alt
  7295. />
  7296. <div style="margin: 5px 0">个人评价</div>
  7297. </div>
  7298. <div class="check" @click="addTools2(40)">
  7299. <img
  7300. src="../assets/icon/checkNo.png"
  7301. alt
  7302. v-if="checktoolArray.indexOf(40) == -1"
  7303. />
  7304. <div class="checkDiv" v-else>
  7305. <img src="../assets/icon/checkedIs.png" alt /><span
  7306. >已选择</span
  7307. >
  7308. </div>
  7309. </div>
  7310. </div>
  7311. </div>
  7312. <div class="toolSort" v-if="toolType == 4">
  7313. <div class="tool">
  7314. <div class="whiteBIcon" @click="addTools2(26)">
  7315. <img
  7316. src="../assets/icon/thirdToolList/courseDesign.png"
  7317. alt
  7318. />
  7319. <div style="margin: 5px 0">课程设计</div>
  7320. </div>
  7321. <div class="check" @click="addTools2(26)">
  7322. <img
  7323. src="../assets/icon/checkNo.png"
  7324. alt
  7325. v-if="checktoolArray.indexOf(26) == -1"
  7326. />
  7327. <div class="checkDiv" v-else>
  7328. <img src="../assets/icon/checkedIs.png" alt /><span
  7329. >已选择</span
  7330. >
  7331. </div>
  7332. </div>
  7333. </div>
  7334. <div class="tool">
  7335. <div class="whiteBIcon" @click="addTools2(25)">
  7336. <img
  7337. src="../assets/icon/thirdToolList/evalua.png"
  7338. alt
  7339. />
  7340. <div style="margin: 5px 0">目标管理</div>
  7341. </div>
  7342. <div class="check" @click="addTools2(25)">
  7343. <img
  7344. src="../assets/icon/checkNo.png"
  7345. alt
  7346. v-if="checktoolArray.indexOf(25) == -1"
  7347. />
  7348. <div class="checkDiv" v-else>
  7349. <img src="../assets/icon/checkedIs.png" alt /><span
  7350. >已选择</span
  7351. >
  7352. </div>
  7353. </div>
  7354. </div>
  7355. </div>
  7356. </div>
  7357. </div>
  7358. </div>
  7359. </div> -->
  7360. <div
  7361. class="vedioBox"
  7362. style="margin-top: 10px; border-radius: 20px"
  7363. v-if="
  7364. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7365. .eList &&
  7366. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7367. .eList.length &&
  7368. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7369. .eList.length > 0 &&
  7370. tType != 2
  7371. "
  7372. >
  7373. <div
  7374. class="queTop"
  7375. style="
  7376. font-size: 20px;
  7377. padding: 15px 0 15px 37px;
  7378. font-weight: bold;
  7379. "
  7380. >
  7381. <!-- <div class="question" style="width: 30px">
  7382. <img src="../assets/icon/toolIcon.png" alt />
  7383. </div>
  7384. <div class="queTitle">
  7385. <div>工具</div>
  7386. </div>-->
  7387. 评一评
  7388. </div>
  7389. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7390. <div class="elist_input">
  7391. <el-table
  7392. :data="
  7393. chapInfoList[courseType].chapterInfo[0].taskJson[
  7394. taskCount
  7395. ].eList
  7396. "
  7397. :header-cell-style="{ background: '#F0F4FA' }"
  7398. :row-class-name="tableRowClassName"
  7399. border
  7400. stripe
  7401. style="width: 100%"
  7402. >
  7403. <el-table-column
  7404. label="评价名称"
  7405. width="180"
  7406. align="center"
  7407. >
  7408. <template slot-scope="scope"
  7409. ><div>{{ scope.row.value }}</div></template
  7410. >
  7411. </el-table-column>
  7412. <el-table-column
  7413. label="评价描述"
  7414. width="180"
  7415. align="center"
  7416. >
  7417. <template slot-scope="scope"
  7418. ><div>
  7419. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7420. </div></template
  7421. >
  7422. </el-table-column>
  7423. <el-table-column label="目标" align="center">
  7424. <template slot-scope="scope"
  7425. ><div>
  7426. {{
  7427. scope.row.target
  7428. ? scope.row.target[scope.row.target.length - 1]
  7429. : "-"
  7430. }}
  7431. </div></template
  7432. ></el-table-column
  7433. >
  7434. </el-table>
  7435. <!-- <div
  7436. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7437. .chapterInfo[0].taskJson[taskCount].eList"
  7438. :key="eIndex"
  7439. class="elist_input_box"
  7440. >
  7441. <div style="width: 95%">
  7442. <div
  7443. style="
  7444. display: flex;
  7445. flex-direction: row;
  7446. flex-wrap: nowrap;
  7447. align-items: center;
  7448. "
  7449. >
  7450. <div style="max-width: calc(100% - 285px)">
  7451. <span>{{ eItem.value }}</span>
  7452. </div>
  7453. <div
  7454. style="
  7455. padding-left: 25px;
  7456. display: flex;
  7457. flex-direction: row;
  7458. align-items: center;
  7459. "
  7460. >
  7461. <el-rate
  7462. v-model="eItem.score"
  7463. :colors="colors"
  7464. disabled
  7465. ></el-rate>
  7466. </div>
  7467. </div>
  7468. <div class="elist_inptu_text" style="padding-left: 10px">
  7469. <span v-if="eItem.detail != ''">{{
  7470. eItem.detail
  7471. }}</span>
  7472. <span v-else style="color: #b2b1b3; font-size: 14px"
  7473. >暂无描述...</span
  7474. >
  7475. </div>
  7476. </div>
  7477. </div> -->
  7478. </div>
  7479. <div
  7480. v-if="evalua"
  7481. style="
  7482. border: 1px solid #e5e5e5;
  7483. max-width: 650px;
  7484. width: 100%;
  7485. margin-top: 20px;
  7486. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7487. "
  7488. >
  7489. <div class="e_add_top">
  7490. <div class="e_add_title">
  7491. <span>目标管理名称</span>
  7492. <span>{{ eTitle }}</span>
  7493. <img
  7494. src="../assets/line.png"
  7495. class="cru_line"
  7496. style="
  7497. width: 125px;
  7498. height: 20px;
  7499. bottom: -10px;
  7500. left: 120px;
  7501. "
  7502. />
  7503. <!-- <el-input
  7504. v-model="eTitle"
  7505. placeholder="请输入名称"
  7506. @change="setMindData"
  7507. ></el-input>-->
  7508. </div>
  7509. </div>
  7510. <div class="e_add_content">
  7511. <div class="e_add_list_pbox">
  7512. <div class="e_add_list_pbox_title">
  7513. <span class="type_title">切换模式</span>
  7514. <div class="type_content">
  7515. <span
  7516. :class="{ active: typeMode == 1 }"
  7517. @click="typeMode = 1"
  7518. >目标树</span
  7519. >
  7520. <span
  7521. :class="{ active: typeMode == 2 }"
  7522. @click="typeMode = 2"
  7523. >目标罗盘</span
  7524. >
  7525. <!-- <span
  7526. :class="{ active: typeMode == 3 }"
  7527. @click="typeMode = 3"
  7528. >目标看板</span
  7529. > -->
  7530. </div>
  7531. </div>
  7532. <div class="e_add_list_pbox_content">
  7533. <Mind
  7534. :showBar="false"
  7535. :mindData="data"
  7536. style="width: 100%"
  7537. v-show="typeMode == 1"
  7538. ></Mind>
  7539. <Sunburst
  7540. :Josn="eJson"
  7541. :num="eJSONNum"
  7542. style="width: 100%"
  7543. v-if="typeMode == 2"
  7544. ></Sunburst>
  7545. <SeeBoard
  7546. :Josn="eJson"
  7547. :num="eJSONNum"
  7548. :ename="eTitle"
  7549. style="width: 100%"
  7550. v-if="typeMode == 3"
  7551. >
  7552. </SeeBoard>
  7553. </div>
  7554. </div>
  7555. </div>
  7556. </div>
  7557. </div>
  7558. </div>
  7559. <!-- <div
  7560. class="project_box"
  7561. style="margin-top: 15px; padding-bottom: 30px"
  7562. >
  7563. <div
  7564. style="
  7565. display: flex;
  7566. flex-wrap: nowrap;
  7567. flex-direction: column;
  7568. position: relative;
  7569. "
  7570. >
  7571. <div class="queTop">
  7572. <div class="question">
  7573. <img src="../assets/icon/homeWork.png" alt="" />
  7574. </div>
  7575. <div class="queTitle">
  7576. <div>作业提交<span>(提交图文视频等)</span></div>
  7577. <div>:任务:{{ task.task }}</div>
  7578. </div>
  7579. </div>
  7580. <div class="ediBottom">
  7581. <div
  7582. class="addEditor"
  7583. style="margin-top: 23px"
  7584. @click="openAddWork"
  7585. v-if="!isNoHomeWork"
  7586. >
  7587. 选择文件
  7588. </div>
  7589. <div
  7590. class="addEditor"
  7591. style="margin-top: 23px"
  7592. @click="openAddWork"
  7593. v-else
  7594. >
  7595. 已提交
  7596. </div>
  7597. </div>
  7598. </div>
  7599. </div>-->
  7600. </div>
  7601. </div>
  7602. <el-dialog
  7603. title="作业提交"
  7604. :visible.sync="dialogVisible"
  7605. :append-to-body="true"
  7606. width="500px"
  7607. :before-close="handleClose"
  7608. class="dialog_change"
  7609. >
  7610. <div class="marginT">
  7611. <div>上传文件</div>
  7612. <div
  7613. class="chapter_add"
  7614. @click="addImg($event)"
  7615. v-if="studyJuri[0].cover.length == 0"
  7616. >
  7617. <div class="up_photo">
  7618. <img src="../assets/icon/uploadImg.png" alt />
  7619. </div>
  7620. <!-- <input
  7621. type="file"
  7622. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7623. style="display: none"
  7624. @change="beforeUpload1($event, 1)"
  7625. /> -->
  7626. <input
  7627. type="file"
  7628. accept="*"
  7629. style="display: none"
  7630. @change="beforeUpload1($event, 1)"
  7631. />
  7632. <!-- <input
  7633. type="file"
  7634. accept="image/*"
  7635. capture="camera"
  7636. style="display: none"
  7637. @change="beforeUpload1($event, 1)"
  7638. /> -->
  7639. </div>
  7640. <div
  7641. class="chapter_add"
  7642. style="
  7643. display: flex;
  7644. width: 100%;
  7645. flex-direction: row;
  7646. flex-wrap: wrap;
  7647. justify-content: flex-start;
  7648. padding: 15px 0;
  7649. "
  7650. v-if="studyJuri[0].cover.length > 0"
  7651. >
  7652. <div class="upCover">
  7653. <img
  7654. :src="studyJuri[0].cover[0].url"
  7655. alt
  7656. v-if="fileType == 0"
  7657. />
  7658. <img :src="word" alt v-else-if="fileType == 1" />
  7659. <img :src="video" alt v-else-if="fileType == 2" />
  7660. <img :src="word2" alt v-else-if="fileType == 3" />
  7661. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7662. <div class="deleteWord" @click="clean(1)">
  7663. <img src="../assets/icon/deleteWorks.png" alt />
  7664. </div>
  7665. </div>
  7666. </div>
  7667. </div>
  7668. <div
  7669. class="upload_send"
  7670. @click="addCourseWorks(taskCount)"
  7671. v-if="!proVisible"
  7672. >
  7673. 提交
  7674. </div>
  7675. </el-dialog>
  7676. </div>
  7677. </div>
  7678. <div
  7679. class="pButton"
  7680. @click="(pzDialog = true), selectPz()"
  7681. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7682. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  7683. >
  7684. <!-- 批 -->
  7685. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  7686. </div>
  7687. <div v-if="pzDialog == true" class="newDialogCss">
  7688. <div class="pzTop2">
  7689. <!-- <div>批注</div>
  7690. <div @click="pzDialog = false">
  7691. <img src="../assets/close1.png" alt="" />
  7692. </div> -->
  7693. <div class="checkbox">
  7694. <div class="check" style="font-size: 25px; position: unset">
  7695. 评课笔记
  7696. </div>
  7697. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  7698. <el-option label="时间降序" :value="1"></el-option>
  7699. <el-option label="时间升序" :value="2"></el-option>
  7700. <el-option label="我的评课" :value="3"></el-option>
  7701. </el-select>
  7702. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7703. </div>
  7704. </div>
  7705. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7706. <div class="pzListBox" v-if="pzList && pzList.length">
  7707. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7708. <div class="pzNavTop">
  7709. <div>批</div>
  7710. <div>
  7711. {{
  7712. pz.username && pz.username.length > 5
  7713. ? pz.username.substring(0, 5) + "..."
  7714. : pz.username
  7715. }}的批注
  7716. </div>
  7717. <div
  7718. class="pzDelete"
  7719. v-if="pz.userid == userid"
  7720. @click="deletePz(pz.id)"
  7721. >
  7722. 删除
  7723. </div>
  7724. </div>
  7725. <div
  7726. @click="checkImg(getImgList(pz.content))"
  7727. class="pzContent cont"
  7728. v-html="pz.content"
  7729. v-if="pz.type == '1'"
  7730. ></div>
  7731. <div class="pzContent" v-if="pz.type == '2'">
  7732. <audio :src="pz.content" controls="controls" ref="audio">
  7733. Your browser does not support the audio element.
  7734. </audio>
  7735. </div>
  7736. <div class="pzContent" v-if="pz.type == '3'">
  7737. <img
  7738. :src="pz.content"
  7739. style="width: 90%; margin: 0 auto; display: block"
  7740. @click="previewImg(pz.content)"
  7741. />
  7742. </div>
  7743. <div class="timeAndReply">
  7744. <div class="time">
  7745. {{ pz.time }}
  7746. </div>
  7747. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  7748. </div>
  7749. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  7750. <div
  7751. v-for="(h, hIndex) in pz.hfList"
  7752. :key="hIndex"
  7753. class="hfItem"
  7754. >
  7755. <div class="whoReplyWho">
  7756. <div class="hfName">{{ h.username }}</div>
  7757. <div class="hfImg">
  7758. <img src="../assets/icon/newIcons/right.png" alt="" />
  7759. </div>
  7760. <div class="hfName">{{ pz.username }}</div>
  7761. </div>
  7762. <div class="hfContent" v-html="h.content"></div>
  7763. <div class="hfBottom">
  7764. <div class="hfTime">{{ h.time }}</div>
  7765. <div
  7766. class="deleteHfItem"
  7767. @click="deleteReply(h.id)"
  7768. v-if="userid == h.userid"
  7769. >
  7770. <img src="../assets/icon/newIcons/delete.png" alt="" />
  7771. </div>
  7772. </div>
  7773. </div>
  7774. </div>
  7775. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  7776. <div class="replyInput">
  7777. <el-input v-model="reply[pzIndex]"></el-input>
  7778. </div>
  7779. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  7780. </div> -->
  7781. </div>
  7782. </div>
  7783. <div class="noPz" v-else>
  7784. <img src="../assets/icon/noPz.png" alt="" />
  7785. </div>
  7786. <div class="addPzButton">
  7787. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7788. 添加批注
  7789. </div>
  7790. <!-- <div class="img1">
  7791. <div @click="(addPzDialog = true), (pzType = 2)">
  7792. <img src="../assets/audio.png" /><span>音频</span>
  7793. </div>
  7794. </div> -->
  7795. </div>
  7796. </div>
  7797. </div>
  7798. <div
  7799. v-if="toolDialogVisible == true"
  7800. class="toolMask"
  7801. @click="toolDialogVisible = false"
  7802. ></div>
  7803. <div v-if="toolDialogVisible == true" class="addToolCss">
  7804. <div class="toolTop">
  7805. <div style="font-weight: bold">新增工具</div>
  7806. <div @click="toolDialogVisible = false">
  7807. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  7808. </div>
  7809. </div>
  7810. <div class="tool_box">
  7811. <div class="tool_type_box">
  7812. <div class="chooseWho">
  7813. <div
  7814. :class="toolType == 0 ? 'isChooseActive' : ''"
  7815. @click="(toolType = 0), $forceUpdate()"
  7816. >
  7817. 互动类
  7818. </div>
  7819. <div
  7820. :class="toolType == 1 ? 'isChooseActive' : ''"
  7821. @click="(toolType = 1), $forceUpdate()"
  7822. >
  7823. 思维类
  7824. </div>
  7825. <div
  7826. :class="toolType == 2 ? 'isChooseActive' : ''"
  7827. @click="(toolType = 2), $forceUpdate()"
  7828. >
  7829. 测评类
  7830. </div>
  7831. <div
  7832. :class="toolType == 3 ? 'isChooseActive' : ''"
  7833. @click="(toolType = 3), $forceUpdate()"
  7834. >
  7835. 编程类
  7836. </div>
  7837. <div
  7838. :class="toolType == 5 ? 'isChooseActive' : ''"
  7839. @click="(toolType = 5), $forceUpdate()"
  7840. >
  7841. 学科类
  7842. </div>
  7843. </div>
  7844. </div>
  7845. <div>
  7846. <div class="toolSort" v-if="toolType == 0">
  7847. <div
  7848. class="tool"
  7849. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  7850. @click="addTools2(10)"
  7851. >
  7852. <div class="whiteBIcon">
  7853. <img src="../assets/icon/thirdToolList/time.png" alt />
  7854. <div style="margin: 5px 0">倒计时</div>
  7855. </div>
  7856. <div class="check">
  7857. <div
  7858. v-if="checktoolArray.indexOf(10) == -1"
  7859. class="noChoose"
  7860. ></div>
  7861. <div v-else class="isChoose"></div>
  7862. </div>
  7863. </div>
  7864. <div
  7865. class="tool"
  7866. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  7867. @click="addTools2(65)"
  7868. >
  7869. <div class="whiteBIcon">
  7870. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  7871. <div style="margin: 5px 0">挑人</div>
  7872. </div>
  7873. <div class="check">
  7874. <div
  7875. v-if="checktoolArray.indexOf(65) == -1"
  7876. class="noChoose"
  7877. ></div>
  7878. <div v-else class="isChoose"></div>
  7879. </div>
  7880. </div>
  7881. </div>
  7882. <div class="toolSort" v-if="toolType == 1">
  7883. <div
  7884. class="tool"
  7885. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  7886. @click="addTools2(7)"
  7887. >
  7888. <div class="whiteBIcon">
  7889. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  7890. <div style="margin: 5px 0">思维网格</div>
  7891. </div>
  7892. <div class="check">
  7893. <div
  7894. v-if="checktoolArray.indexOf(7) == -1"
  7895. class="noChoose"
  7896. ></div>
  7897. <div v-else class="isChoose"></div>
  7898. </div>
  7899. </div>
  7900. <div
  7901. class="tool"
  7902. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  7903. @click="addTools2(1)"
  7904. >
  7905. <div class="whiteBIcon">
  7906. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  7907. <div style="margin: 5px 0">电子白板</div>
  7908. </div>
  7909. <div class="check">
  7910. <div
  7911. v-if="checktoolArray.indexOf(1) == -1"
  7912. class="noChoose"
  7913. ></div>
  7914. <div v-else class="isChoose"></div>
  7915. </div>
  7916. </div>
  7917. <div
  7918. class="tool"
  7919. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  7920. @click="addTools2(52)"
  7921. >
  7922. <div class="whiteBIcon">
  7923. <img src="../assets/icon/fourthToolList/text.png" alt />
  7924. <div style="margin: 5px 0">文档</div>
  7925. </div>
  7926. <div class="check">
  7927. <div
  7928. v-if="checktoolArray.indexOf(52) == -1"
  7929. class="noChoose"
  7930. ></div>
  7931. <div v-else class="isChoose"></div>
  7932. </div>
  7933. </div>
  7934. <div
  7935. class="tool"
  7936. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  7937. @click="addTools2(3)"
  7938. >
  7939. <div class="whiteBIcon">
  7940. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  7941. <div style="margin: 5px 0">思维导图</div>
  7942. </div>
  7943. <div class="check">
  7944. <div
  7945. v-if="checktoolArray.indexOf(3) == -1"
  7946. class="noChoose"
  7947. ></div>
  7948. <div v-else class="isChoose"></div>
  7949. </div>
  7950. </div>
  7951. <div
  7952. class="tool"
  7953. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  7954. @click="addTools2(48)"
  7955. >
  7956. <div class="whiteBIcon">
  7957. <img src="../assets/icon/fourthToolList/table.png" alt />
  7958. <div style="margin: 5px 0">表格</div>
  7959. </div>
  7960. <div class="check">
  7961. <div
  7962. v-if="checktoolArray.indexOf(48) == -1"
  7963. class="noChoose"
  7964. ></div>
  7965. <div v-else class="isChoose"></div>
  7966. </div>
  7967. </div>
  7968. </div>
  7969. <div class="toolSort" v-if="toolType == 6">
  7970. <div v-show="tooC == 49">
  7971. <img
  7972. @click="addTools(tooC, toolIndex, taskCount)"
  7973. src="../assets/icon/fourthToolList/group.png"
  7974. alt
  7975. />
  7976. <div style="margin: 5px 0">学生分组</div>
  7977. </div>
  7978. </div>
  7979. <div class="toolSort" v-if="toolType == 2">
  7980. <div
  7981. class="tool"
  7982. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  7983. @click="addTools2(16)"
  7984. >
  7985. <div class="whiteBIcon">
  7986. <img src="../assets/icon/thirdToolList/work.png" alt />
  7987. <div style="margin: 5px 0">作业提交</div>
  7988. </div>
  7989. <div class="check">
  7990. <div
  7991. v-if="checktoolArray.indexOf(16) == -1"
  7992. class="noChoose"
  7993. ></div>
  7994. <div v-else class="isChoose"></div>
  7995. </div>
  7996. </div>
  7997. <div
  7998. class="tool"
  7999. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8000. @click="addTools2(50)"
  8001. >
  8002. <div class="whiteBIcon">
  8003. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8004. <div style="margin: 5px 0">批量上传</div>
  8005. </div>
  8006. <div class="check">
  8007. <div
  8008. v-if="checktoolArray.indexOf(50) == -1"
  8009. class="noChoose"
  8010. ></div>
  8011. <div v-else class="isChoose"></div>
  8012. </div>
  8013. </div>
  8014. </div>
  8015. <div class="toolSort" v-if="toolType == 3">
  8016. <div
  8017. class="tool"
  8018. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8019. @click="addTools2(18)"
  8020. >
  8021. <div class="whiteBIcon">
  8022. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8023. <div style="margin: 5px 0">训练平台</div>
  8024. </div>
  8025. <div class="check">
  8026. <div
  8027. v-if="checktoolArray.indexOf(18) == -1"
  8028. class="noChoose"
  8029. ></div>
  8030. <div v-else class="isChoose"></div>
  8031. </div>
  8032. </div>
  8033. <div
  8034. class="tool"
  8035. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8036. @click="addTools2(21)"
  8037. >
  8038. <div class="whiteBIcon">
  8039. <img src="../assets/icon/fourthToolList/program.png" alt />
  8040. <div style="margin: 5px 0">AIoT Blockly</div>
  8041. </div>
  8042. <div class="check">
  8043. <div
  8044. v-if="checktoolArray.indexOf(21) == -1"
  8045. class="noChoose"
  8046. ></div>
  8047. <div v-else class="isChoose"></div>
  8048. </div>
  8049. </div>
  8050. <div
  8051. class="tool"
  8052. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8053. @click="addTools2(23)"
  8054. >
  8055. <div class="whiteBIcon">
  8056. <img
  8057. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8058. alt
  8059. />
  8060. <div style="margin: 5px 0">AI Python</div>
  8061. </div>
  8062. <div class="check">
  8063. <div
  8064. v-if="checktoolArray.indexOf(23) == -1"
  8065. class="noChoose"
  8066. ></div>
  8067. <div v-else class="isChoose"></div>
  8068. </div>
  8069. </div>
  8070. <div
  8071. class="tool"
  8072. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8073. @click="addTools2(24)"
  8074. >
  8075. <div class="whiteBIcon">
  8076. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8077. <div style="margin: 5px 0">AI Blockly</div>
  8078. </div>
  8079. <div class="check">
  8080. <div
  8081. v-if="checktoolArray.indexOf(24) == -1"
  8082. class="noChoose"
  8083. ></div>
  8084. <div v-else class="isChoose"></div>
  8085. </div>
  8086. </div>
  8087. <div
  8088. class="tool"
  8089. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8090. @click="addTools2(32)"
  8091. >
  8092. <div class="whiteBIcon">
  8093. <img src="../assets/icon/thirdToolList/code.png" alt />
  8094. <div style="margin: 5px 0">源码编辑</div>
  8095. </div>
  8096. <div class="check">
  8097. <div
  8098. v-if="checktoolArray.indexOf(32) == -1"
  8099. class="noChoose"
  8100. ></div>
  8101. <div v-else class="isChoose"></div>
  8102. </div>
  8103. </div>
  8104. <div
  8105. class="tool"
  8106. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8107. @click="addTools2(57)"
  8108. >
  8109. <div class="whiteBIcon">
  8110. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8111. <div style="margin: 5px 0">CocoPi</div>
  8112. </div>
  8113. <div class="check">
  8114. <div
  8115. v-if="checktoolArray.indexOf(57) == -1"
  8116. class="noChoose"
  8117. ></div>
  8118. <div v-else class="isChoose"></div>
  8119. </div>
  8120. </div>
  8121. <div
  8122. class="tool"
  8123. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8124. @click="addTools2(63)"
  8125. >
  8126. <div class="whiteBIcon">
  8127. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8128. <div style="margin: 5px 0">海龟编程</div>
  8129. </div>
  8130. <div class="check">
  8131. <div
  8132. v-if="checktoolArray.indexOf(63) == -1"
  8133. class="noChoose"
  8134. ></div>
  8135. <div v-else class="isChoose"></div>
  8136. </div>
  8137. </div>
  8138. </div>
  8139. <div class="toolSort" v-if="toolType == 7">
  8140. <div
  8141. class="tool"
  8142. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8143. @click="addTools2(40)"
  8144. >
  8145. <div class="whiteBIcon">
  8146. <img src="../assets/icon/secondToolList/eval.png" alt />
  8147. <div style="margin: 5px 0">个人评价</div>
  8148. </div>
  8149. <div class="check">
  8150. <div
  8151. v-if="checktoolArray.indexOf(40) == -1"
  8152. class="noChoose"
  8153. ></div>
  8154. <div v-else class="isChoose"></div>
  8155. </div>
  8156. </div>
  8157. </div>
  8158. <div class="toolSort" v-if="toolType == 5">
  8159. <div
  8160. class="tool"
  8161. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8162. @click="addTools2(28)"
  8163. >
  8164. <div class="whiteBIcon">
  8165. <img src="../assets/icon/secondToolList/translation.png" alt />
  8166. <div style="margin: 5px 0">翻译</div>
  8167. </div>
  8168. <div class="check">
  8169. <div
  8170. v-if="checktoolArray.indexOf(28) == -1"
  8171. class="noChoose"
  8172. ></div>
  8173. <div v-else class="isChoose"></div>
  8174. </div>
  8175. </div>
  8176. <div
  8177. class="tool"
  8178. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8179. @click="addTools2(31)"
  8180. >
  8181. <div class="whiteBIcon">
  8182. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8183. <div style="margin: 5px 0">数字画板</div>
  8184. </div>
  8185. <div class="check">
  8186. <div
  8187. v-if="checktoolArray.indexOf(31) == -1"
  8188. class="noChoose"
  8189. ></div>
  8190. <div v-else class="isChoose"></div>
  8191. </div>
  8192. </div>
  8193. <div
  8194. class="tool"
  8195. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8196. @click="addTools2(39)"
  8197. >
  8198. <div class="whiteBIcon">
  8199. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8200. <div style="margin: 5px 0">GeoGebra</div>
  8201. </div>
  8202. <div class="check">
  8203. <div
  8204. v-if="checktoolArray.indexOf(39) == -1"
  8205. class="noChoose"
  8206. ></div>
  8207. <div v-else class="isChoose"></div>
  8208. </div>
  8209. </div>
  8210. <div
  8211. class="tool"
  8212. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8213. @click="addTools2(66)"
  8214. >
  8215. <div class="whiteBIcon">
  8216. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8217. <div style="margin: 5px 0">公式编辑</div>
  8218. </div>
  8219. <div class="check">
  8220. <div
  8221. v-if="checktoolArray.indexOf(66) == -1"
  8222. class="noChoose"
  8223. ></div>
  8224. <div v-else class="isChoose"></div>
  8225. </div>
  8226. </div>
  8227. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8228. <div class="whiteBIcon" @click="addTools2(67)">
  8229. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8230. <div style="margin: 5px 0">分子结构</div>
  8231. </div>
  8232. <div class="check" @click="addTools2(67)">
  8233. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8234. <div v-else class="isChoose"></div>
  8235. </div>
  8236. </div> -->
  8237. <div
  8238. class="tool"
  8239. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8240. @click="addTools2(68)"
  8241. >
  8242. <div class="whiteBIcon">
  8243. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8244. <div style="margin: 5px 0">时间轴</div>
  8245. </div>
  8246. <div class="check">
  8247. <div
  8248. v-if="checktoolArray.indexOf(68) == -1"
  8249. class="noChoose"
  8250. ></div>
  8251. <div v-else class="isChoose"></div>
  8252. </div>
  8253. </div>
  8254. <!-- <div
  8255. class="tool"
  8256. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8257. @click="addTools2(69)"
  8258. >
  8259. <div class="whiteBIcon">
  8260. <img src="../assets/icon/secondToolList/english.png" alt />
  8261. <div style="margin: 5px 0">英语写作</div>
  8262. </div>
  8263. <div class="check">
  8264. <div
  8265. v-if="checktoolArray.indexOf(69) == -1"
  8266. class="noChoose"
  8267. ></div>
  8268. <div v-else class="isChoose"></div>
  8269. </div>
  8270. </div> -->
  8271. </div>
  8272. <div class="toolSort" v-if="toolType == 4">
  8273. <div
  8274. class="tool"
  8275. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8276. @click="addTools2(26)"
  8277. >
  8278. <div class="whiteBIcon">
  8279. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8280. <div style="margin: 5px 0">课程设计</div>
  8281. </div>
  8282. <div class="check">
  8283. <div
  8284. v-if="checktoolArray.indexOf(26) == -1"
  8285. class="noChoose"
  8286. ></div>
  8287. <div v-else class="isChoose"></div>
  8288. </div>
  8289. </div>
  8290. <div
  8291. class="tool"
  8292. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8293. @click="addTools2(25)"
  8294. >
  8295. <div class="whiteBIcon">
  8296. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8297. <div style="margin: 5px 0">目标管理</div>
  8298. </div>
  8299. <div class="check">
  8300. <div
  8301. v-if="checktoolArray.indexOf(25) == -1"
  8302. class="noChoose"
  8303. ></div>
  8304. <div v-else class="isChoose"></div>
  8305. </div>
  8306. </div>
  8307. </div>
  8308. </div>
  8309. </div>
  8310. <span
  8311. slot="footer"
  8312. class="dialog-footer"
  8313. style="display: block; text-align: center; padding: 0 0 10px 0"
  8314. >
  8315. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8316. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8317. </span>
  8318. </div>
  8319. <div
  8320. v-if="replyDialogVisible == true"
  8321. class="addDialogCss"
  8322. v-el-drag-dialog
  8323. >
  8324. <div class="pzTop">
  8325. <div class="teacherPz">
  8326. <div class="teacherPzImg">
  8327. <img src="../assets/icon/teacherPz.png" alt="" />
  8328. </div>
  8329. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8330. </div>
  8331. <div @click="replyDialogVisible = false">
  8332. <img src="../assets/close1.png" class="pzClose" alt="" />
  8333. </div>
  8334. </div>
  8335. <div class="addPzBox">
  8336. <!-- <div class="addPzCheck">
  8337. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8338. >文本</span
  8339. >
  8340. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8341. >音频</span
  8342. >
  8343. </div> -->
  8344. <div style="height: calc(100% - 50px)">
  8345. <editor-bar
  8346. class="binfo_input pzConText"
  8347. style="width: 100% !important; margin: 0 auto"
  8348. placeholder="请输入回复描述"
  8349. v-model="reply"
  8350. @change="change"
  8351. ></editor-bar>
  8352. </div>
  8353. <div class="addTextCss" @click="addHf">确定</div>
  8354. </div>
  8355. </div>
  8356. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8357. <div class="pzTop">
  8358. <div class="teacherPz">
  8359. <div class="teacherPzImg">
  8360. <img src="../assets/icon/teacherPz.png" alt="" />
  8361. </div>
  8362. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8363. </div>
  8364. <div @click="addPzDialog = false">
  8365. <img src="../assets/close1.png" class="pzClose" alt="" />
  8366. </div>
  8367. </div>
  8368. <div class="addPzBox">
  8369. <div class="addPzCheck">
  8370. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8371. >文本</span
  8372. >
  8373. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8374. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8375. >音频</span
  8376. >
  8377. </div>
  8378. <div style="height: calc(100% - 95px)">
  8379. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8380. v-if="pzType == 1"></textarea> -->
  8381. <editor-bar
  8382. class="binfo_input pzConText"
  8383. style="width: 100% !important"
  8384. placeholder="请输入任务描述"
  8385. v-model="pzConText"
  8386. @change="change"
  8387. v-if="pzType == 1"
  8388. ></editor-bar>
  8389. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8390. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8391. <div @click="addImg($event)">
  8392. <el-button type="primary">上传图片</el-button>
  8393. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8394. @change="beforeUpload1($event, 4)" />
  8395. </div>
  8396. </div> -->
  8397. </div>
  8398. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8399. 确定
  8400. </div>
  8401. </div>
  8402. </div>
  8403. <div v-if="proVisible" class="mask">
  8404. <div class="progressBox">
  8405. <!-- <div id="closePro" class="closeCss">
  8406. <img src="../assets/icon/close.png" alt />
  8407. </div> -->
  8408. <div class="lbox">
  8409. <img src="../assets/loading.gif" />上传中,请稍后
  8410. </div>
  8411. <div style="margin-bottom: 10px">
  8412. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8413. </div>
  8414. <el-progress
  8415. :text-inside="true"
  8416. :stroke-width="20"
  8417. :percentage="progress"
  8418. style="width: 80%"
  8419. ></el-progress>
  8420. </div>
  8421. </div>
  8422. <div v-if="proVisible2" class="mask">
  8423. <div class="progressBox">
  8424. <div class="lbox">
  8425. <img src="../assets/loading.gif" />上传中,请稍后
  8426. </div>
  8427. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8428. </div>
  8429. </div>
  8430. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8431. <img width="100%" :src="dialogImageUrl" alt />
  8432. </el-dialog>
  8433. <el-dialog
  8434. :title="noteName != '' ? noteName : '查看问卷'"
  8435. :visible.sync="dialogVisible5"
  8436. :append-to-body="true"
  8437. width="1000px"
  8438. :before-close="handleClose"
  8439. class="dialog_diy dialog_diy3"
  8440. >
  8441. <div>
  8442. <div
  8443. class="a_add_title"
  8444. style="
  8445. display: flex;
  8446. flex-direction: row;
  8447. align-items: center;
  8448. justify-content: center;
  8449. "
  8450. >
  8451. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8452. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8453. </div>
  8454. <div class="a_addBox">
  8455. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8456. 题目内容
  8457. </div>
  8458. <div
  8459. class="a_add_box"
  8460. v-for="(item1, index1) in askJson.askCount"
  8461. :key="index1"
  8462. >
  8463. <div class="a_add_head">
  8464. <div style="display: flex">
  8465. <span class="askIndex"> {{ index1 + 1 }}</span>
  8466. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8467. </div>
  8468. <img
  8469. v-if="askJson.askJson[index1].img"
  8470. :src="askJson.askJson[index1].img"
  8471. style="height: 300px; margin-top: 10px; max-width: 100%"
  8472. />
  8473. </div>
  8474. <div class="a_add_body">
  8475. <div class="a_add_input">
  8476. <el-radio-group
  8477. v-model="radio[index1]"
  8478. v-if="
  8479. askJson.askJson[index1].type == '1' ||
  8480. !askJson.askJson[index1].type
  8481. "
  8482. >
  8483. <el-radio
  8484. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8485. .checkList"
  8486. :key="checkIndex"
  8487. :label="checkIndex"
  8488. :disabled="isAnswer"
  8489. class="redioStyle"
  8490. ><span v-html="item2"></span
  8491. ></el-radio>
  8492. </el-radio-group>
  8493. <el-checkbox-group
  8494. v-model="radio[index1]"
  8495. v-if="askJson.askJson[index1].type == '2'"
  8496. >
  8497. <el-checkbox
  8498. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8499. .checkList"
  8500. :key="checkIndex1"
  8501. :label="checkIndex1"
  8502. :disabled="isAnswer"
  8503. class="redioStyle"
  8504. ><span v-html="item2"></span>
  8505. </el-checkbox>
  8506. </el-checkbox-group>
  8507. </div>
  8508. </div>
  8509. </div>
  8510. </div>
  8511. </div>
  8512. <span slot="footer" class="dialog-footer">
  8513. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8514. >取 消</el-button
  8515. >
  8516. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8517. >确 定</el-button
  8518. >
  8519. </span>
  8520. </el-dialog>
  8521. <el-dialog
  8522. :title="noteName != '' ? noteName : '查看问卷'"
  8523. :visible.sync="dialogVisible5Teacher"
  8524. :append-to-body="true"
  8525. width="1000px"
  8526. :before-close="handleClose"
  8527. class="dialog_diy dialog_diy3"
  8528. >
  8529. <div>
  8530. <div class="w_name">
  8531. 学生姓名:<span>{{ sStudent.student }}</span>
  8532. </div>
  8533. <div
  8534. class="a_add_title"
  8535. style="
  8536. display: flex;
  8537. flex-direction: row;
  8538. align-items: center;
  8539. justify-content: center;
  8540. "
  8541. >
  8542. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8543. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8544. </div>
  8545. <div class="a_addBox">
  8546. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8547. 题目内容
  8548. </div>
  8549. <div
  8550. class="a_add_box"
  8551. v-for="(item1, index1) in askJson.askCount"
  8552. :key="index1"
  8553. >
  8554. <div class="a_add_head">
  8555. <div style="display: flex">
  8556. <span class="askIndex">{{ index1 + 1 }}</span>
  8557. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8558. </div>
  8559. <img
  8560. v-if="askJson.askJson[index1].img"
  8561. :src="askJson.askJson[index1].img"
  8562. style="height: 300px; margin-top: 10px; max-width: 100%"
  8563. />
  8564. </div>
  8565. <div class="a_add_body">
  8566. <div class="a_add_input">
  8567. <el-radio-group
  8568. v-model="radio[index1]"
  8569. v-if="
  8570. askJson.askJson[index1].type == '1' ||
  8571. !askJson.askJson[index1].type
  8572. "
  8573. >
  8574. <el-radio
  8575. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8576. .checkList"
  8577. :key="checkIndex"
  8578. :label="checkIndex"
  8579. :disabled="isAnswer"
  8580. class="redioStyle"
  8581. ><span v-html="item2"></span
  8582. ></el-radio>
  8583. </el-radio-group>
  8584. <el-checkbox-group
  8585. v-model="radio[index1]"
  8586. v-if="askJson.askJson[index1].type == '2'"
  8587. >
  8588. <el-checkbox
  8589. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8590. .checkList"
  8591. :key="checkIndex1"
  8592. :label="checkIndex1"
  8593. :disabled="isAnswer"
  8594. class="redioStyle"
  8595. ><span v-html="item2"></span>
  8596. </el-checkbox>
  8597. </el-checkbox-group>
  8598. </div>
  8599. </div>
  8600. </div>
  8601. </div>
  8602. </div>
  8603. <span slot="footer" class="dialog-footer">
  8604. <el-button
  8605. @click="dialogVisible5Teacher = false"
  8606. v-show="noteName == ''"
  8607. >取 消</el-button
  8608. >
  8609. <el-button
  8610. type="primary"
  8611. @click="addStudentAskTeacher"
  8612. v-show="noteName == ''"
  8613. >确 定</el-button
  8614. >
  8615. </span>
  8616. </el-dialog>
  8617. <el-dialog
  8618. :title="noteName != '' ? noteName : '查看选择题'"
  8619. :visible.sync="dialogVisibleChoice"
  8620. :append-to-body="true"
  8621. width="1000px"
  8622. :before-close="handleClose"
  8623. class="dialog_diy dialog_diy3"
  8624. >
  8625. <div>
  8626. <!-- <div class="a_add_title" style="
  8627. display: flex;
  8628. flex-direction: row;
  8629. align-items: center;
  8630. justify-content: center;
  8631. ">
  8632. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8633. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  8634. </div> -->
  8635. <div class="a_addBox">
  8636. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8637. 题目内容
  8638. </div>
  8639. <div
  8640. class="a_add_box"
  8641. v-for="(item1, index1) in testJson.testCount"
  8642. :key="index1"
  8643. >
  8644. <div class="a_add_head">
  8645. <div style="display: flex">
  8646. <span class="askIndex">{{ index1 + 1 }}</span>
  8647. <div
  8648. v-if="testJson.testJson[index1].type == '1'"
  8649. style="margin-right: 5px; min-width: 70px"
  8650. >
  8651. (单选题)
  8652. </div>
  8653. <div
  8654. v-if="testJson.testJson[index1].type == '2'"
  8655. style="margin-right: 5px; min-width: 70px"
  8656. >
  8657. (多选题)
  8658. </div>
  8659. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8660. </div>
  8661. <img
  8662. v-if="testJson.testJson[index1].img"
  8663. :src="testJson.testJson[index1].img"
  8664. style="height: 300px; margin-top: 10px; max-width: 100%"
  8665. />
  8666. </div>
  8667. <div
  8668. class="timuImgBox"
  8669. v-if="
  8670. testJson.testJson[index1].timuList &&
  8671. testJson.testJson[index1].timuList.length
  8672. "
  8673. >
  8674. <div
  8675. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8676. :key="tIndex"
  8677. class="timuImg"
  8678. @click.stop="previewImg(timg.src)"
  8679. >
  8680. <img :src="timg.src" alt="" />
  8681. </div>
  8682. </div>
  8683. <div class="a_add_body">
  8684. <div class="a_add_input">
  8685. <el-radio-group
  8686. v-model="radio[index1]"
  8687. v-if="testJson.testJson[index1].type == '1'"
  8688. >
  8689. <div class="radioBox">
  8690. <el-radio
  8691. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8692. .checkList"
  8693. :key="checkIndex"
  8694. :label="checkIndex"
  8695. :disabled="isAnswer"
  8696. class="redioStyle"
  8697. >
  8698. <div
  8699. style="margin-right: 10px"
  8700. v-if="item2 && item2.imgType && item2.imgType == 1"
  8701. >
  8702. <div class="inImg" @click.stop="previewImg(item2.src)">
  8703. <img :src="item2.src" alt="" />
  8704. </div>
  8705. </div>
  8706. <span v-else v-html="item2"></span>
  8707. </el-radio>
  8708. </div>
  8709. </el-radio-group>
  8710. <el-checkbox-group
  8711. v-model="radio[index1]"
  8712. v-if="testJson.testJson[index1].type == '2'"
  8713. >
  8714. <div class="radioBox">
  8715. <el-checkbox
  8716. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8717. .checkList"
  8718. :key="checkIndex"
  8719. :label="checkIndex"
  8720. :disabled="isAnswer"
  8721. class="redioStyle"
  8722. >
  8723. <div
  8724. style="margin-right: 10px"
  8725. v-if="item2 && item2.imgType && item2.imgType == 1"
  8726. >
  8727. <div class="inImg" @click.stop="previewImg(item2.src)">
  8728. <img :src="item2.src" alt="" />
  8729. </div>
  8730. </div>
  8731. <span v-else v-html="item2"></span>
  8732. </el-checkbox>
  8733. </div>
  8734. </el-checkbox-group>
  8735. </div>
  8736. </div>
  8737. </div>
  8738. </div>
  8739. </div>
  8740. <span slot="footer" class="dialog-footer">
  8741. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  8742. >取 消</el-button
  8743. >
  8744. <el-button
  8745. type="primary"
  8746. @click="addStudentTest"
  8747. v-show="noteName == ''"
  8748. >确 定</el-button
  8749. >
  8750. </span>
  8751. </el-dialog>
  8752. <el-dialog
  8753. :title="noteName != '' ? noteName : '查看选择题'"
  8754. :visible.sync="dialogVisibleChoiceTeacher"
  8755. :append-to-body="true"
  8756. width="1000px"
  8757. :before-close="handleClose"
  8758. class="dialog_diy dialog_diy3"
  8759. >
  8760. <div>
  8761. <div class="w_name">
  8762. 学生姓名:<span>{{ sStudent.student }}</span>
  8763. </div>
  8764. <div class="a_addBox">
  8765. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8766. 题目内容
  8767. </div>
  8768. <div
  8769. class="a_add_box"
  8770. v-for="(item1, index1) in testJson.testCount"
  8771. :key="index1"
  8772. >
  8773. <div class="a_add_head">
  8774. <div style="display: flex">
  8775. <span class="askIndex">{{ index1 + 1 }}</span>
  8776. <div
  8777. v-if="testJson.testJson[index1].type == '1'"
  8778. style="margin-right: 5px; min-width: 70px"
  8779. >
  8780. (单选题)
  8781. </div>
  8782. <div
  8783. v-if="testJson.testJson[index1].type == '2'"
  8784. style="margin-right: 5px; min-width: 70px"
  8785. >
  8786. (多选题)
  8787. </div>
  8788. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8789. </div>
  8790. <img
  8791. v-if="testJson.testJson[index1].img"
  8792. :src="testJson.testJson[index1].img"
  8793. style="height: 300px; margin-top: 10px; max-width: 100%"
  8794. />
  8795. </div>
  8796. <div
  8797. class="timuImgBox"
  8798. v-if="
  8799. testJson.testJson[index1].timuList &&
  8800. testJson.testJson[index1].timuList.length
  8801. "
  8802. >
  8803. <div
  8804. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8805. :key="tIndex"
  8806. class="timuImg"
  8807. @click.stop="previewImg(timg.src)"
  8808. >
  8809. <img :src="timg.src" alt="" />
  8810. </div>
  8811. </div>
  8812. <div class="a_add_body">
  8813. <div class="a_add_input">
  8814. <el-radio-group
  8815. v-model="radio[index1]"
  8816. v-if="testJson.testJson[index1].type == '1'"
  8817. >
  8818. <div class="radioBox">
  8819. <el-radio
  8820. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8821. .checkList"
  8822. :key="checkIndex"
  8823. :label="checkIndex"
  8824. :disabled="isAnswer"
  8825. class="redioStyle"
  8826. >
  8827. <div
  8828. style="margin-right: 10px"
  8829. v-if="item2 && item2.imgType && item2.imgType == 1"
  8830. >
  8831. <div class="inImg" @click.stop="previewImg(item2.src)">
  8832. <img :src="item2.src" alt="" />
  8833. </div>
  8834. </div>
  8835. <span v-else v-html="item2"></span>
  8836. </el-radio>
  8837. </div>
  8838. </el-radio-group>
  8839. <el-checkbox-group
  8840. v-model="radio[index1]"
  8841. v-if="testJson.testJson[index1].type == '2'"
  8842. >
  8843. <div class="radioBox">
  8844. <el-checkbox
  8845. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8846. .checkList"
  8847. :key="checkIndex"
  8848. :label="checkIndex"
  8849. :disabled="isAnswer"
  8850. class="redioStyle"
  8851. >
  8852. <div
  8853. style="margin-right: 10px"
  8854. v-if="item2 && item2.imgType && item2.imgType == 1"
  8855. >
  8856. <div class="inImg" @click.stop="previewImg(item2.src)">
  8857. <img :src="item2.src" alt="" />
  8858. </div>
  8859. </div>
  8860. <span v-else v-html="item2"></span>
  8861. </el-checkbox>
  8862. </div>
  8863. </el-checkbox-group>
  8864. </div>
  8865. </div>
  8866. </div>
  8867. </div>
  8868. </div>
  8869. <span slot="footer" class="dialog-footer">
  8870. <el-button
  8871. @click="dialogVisibleChoiceTeacher = false"
  8872. v-show="noteName == ''"
  8873. >取 消</el-button
  8874. >
  8875. <el-button
  8876. type="primary"
  8877. @click="addStudentTestTeacher"
  8878. v-show="noteName == ''"
  8879. >确 定</el-button
  8880. >
  8881. </span>
  8882. </el-dialog>
  8883. <el-dialog
  8884. title="查看富文本"
  8885. :visible.sync="dialogVisible1"
  8886. :append-to-body="true"
  8887. width="500px"
  8888. :before-close="handleClose"
  8889. class="dialog_diy textCss"
  8890. >
  8891. <el-form style="font-size: 20px">
  8892. <el-form-item label="文本标题" class="textTitle">
  8893. <div style="font-size: 20px">{{ text.name }}</div>
  8894. </el-form-item>
  8895. <div>富文本内容</div>
  8896. <div
  8897. v-html="text.url"
  8898. style="font-size: 18px; padding: 40px 0 0 0"
  8899. ></div>
  8900. </el-form>
  8901. <span slot="footer" class="dialog-footer">
  8902. <el-button type="primary" @click="dialogVisible1 = false"
  8903. >确定</el-button
  8904. >
  8905. </span>
  8906. </el-dialog>
  8907. <el-dialog
  8908. title="文件预览"
  8909. :visible.sync="dialogVisible3"
  8910. width="50%"
  8911. :before-close="handleClose"
  8912. class="dialog_diy"
  8913. :class="{ fullStyle: full }"
  8914. >
  8915. <div slot="title" class="header-title">
  8916. <div style="color: #fff">文件预览</div>
  8917. <div style="position: absolute; top: 19px; right: 50px">
  8918. <img
  8919. src="../assets/full.png"
  8920. style="height: 16px; cursor: pointer"
  8921. alt=""
  8922. @click="fullTools"
  8923. />
  8924. </div>
  8925. </div>
  8926. <pdf
  8927. v-if="showPDF"
  8928. :pdfUrl="pptImgUrl"
  8929. style="width: 100%; height: 520px; overflow: auto"
  8930. :class="{ fullStyle: full }"
  8931. ></pdf>
  8932. <iframe
  8933. v-else
  8934. :src="pptImgUrl"
  8935. frameborder="0"
  8936. width="100%"
  8937. height="600"
  8938. :class="{ fullStyle: full }"
  8939. ></iframe>
  8940. </el-dialog>
  8941. <el-dialog
  8942. title="文件预览"
  8943. :visible.sync="dialogVisible6"
  8944. width="50%"
  8945. :before-close="handleClose"
  8946. class="dialog_diy"
  8947. >
  8948. <iframe
  8949. :src="pptImgUrl1"
  8950. frameborder="0"
  8951. width="100%"
  8952. height="600"
  8953. ></iframe>
  8954. </el-dialog>
  8955. <el-dialog
  8956. title="提示"
  8957. :visible.sync="dialogVisible4"
  8958. :append-to-body="true"
  8959. width="800px"
  8960. :before-close="handleClose"
  8961. class="dialog_diy notice"
  8962. >
  8963. <div>此功能暂未开放!</div>
  8964. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  8965. </el-dialog>
  8966. <el-dialog
  8967. title="问答"
  8968. :visible.sync="answerDialogVisible"
  8969. :append-to-body="true"
  8970. width="800px"
  8971. :before-close="handleClose"
  8972. class="dialog_diy"
  8973. >
  8974. <div>
  8975. <div
  8976. style="
  8977. display: flex;
  8978. flex-wrap: nowrap;
  8979. flex-direction: column;
  8980. position: relative;
  8981. "
  8982. >
  8983. <div class="queTop" style="padding: 20px 0 20px 0">
  8984. <div class="question">
  8985. <img src="../assets/icon/question.png" alt />
  8986. </div>
  8987. <div class="queTitle">
  8988. <div style="width: 90px; min-width: 90px">提问:</div>
  8989. <div>{{ answerQ }}</div>
  8990. </div>
  8991. </div>
  8992. <div class="ediBottom">
  8993. <textarea
  8994. rows="6"
  8995. class="binfo_input"
  8996. cols
  8997. style="width: 95%; height: 120px"
  8998. v-model="questionAnswer"
  8999. ></textarea>
  9000. </div>
  9001. </div>
  9002. </div>
  9003. <div slot="footer">
  9004. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9005. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9006. </div>
  9007. </el-dialog>
  9008. <el-dialog
  9009. title="问答"
  9010. :visible.sync="answerDialogVisibleTeacher"
  9011. :append-to-body="true"
  9012. width="800px"
  9013. :before-close="handleClose"
  9014. class="dialog_diy"
  9015. >
  9016. <div>
  9017. <div class="w_name">
  9018. 学生姓名:<span>{{ sStudent.student }}</span>
  9019. </div>
  9020. <div
  9021. style="
  9022. display: flex;
  9023. flex-wrap: nowrap;
  9024. flex-direction: column;
  9025. position: relative;
  9026. "
  9027. >
  9028. <div class="queTop" style="padding: 20px 0 20px 0">
  9029. <div class="question">
  9030. <img src="../assets/icon/question.png" alt />
  9031. </div>
  9032. <div class="queTitle">
  9033. <div style="width: 90px; min-width: 90px">提问:</div>
  9034. <div>{{ answerQ }}</div>
  9035. </div>
  9036. </div>
  9037. <div class="ediBottom">
  9038. <textarea
  9039. rows="6"
  9040. class="binfo_input"
  9041. cols
  9042. style="width: 95%; height: 120px"
  9043. v-model="questionAnswer"
  9044. ></textarea>
  9045. </div>
  9046. </div>
  9047. </div>
  9048. <div slot="footer">
  9049. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9050. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9051. </div>
  9052. </el-dialog>
  9053. <el-dialog
  9054. title="倒计时"
  9055. :visible.sync="timeDialogVisible"
  9056. :append-to-body="true"
  9057. width="800px"
  9058. :before-close="handleClose"
  9059. class="dialog_diy"
  9060. >
  9061. <div>
  9062. <div style="margin-bottom: 20px; color: #999">
  9063. 提示:点击“+”或“-”修改倒计时时长。
  9064. </div>
  9065. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9066. </div>
  9067. <div slot="footer">
  9068. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9069. </div>
  9070. </el-dialog>
  9071. <el-dialog
  9072. title="权限设置"
  9073. :visible.sync="juriVisible"
  9074. :append-to-body="true"
  9075. width="400px"
  9076. :before-close="handleClose"
  9077. class="dialog_diy"
  9078. >
  9079. <div>
  9080. <div class="open_box">
  9081. <div class="switch_box">
  9082. <span>允许学生查看所有作业</span>
  9083. <el-switch
  9084. v-model="sIsOpen"
  9085. active-text=""
  9086. class="switchCss"
  9087. @change="updateSLook"
  9088. ></el-switch>
  9089. </div>
  9090. <div
  9091. class="switch_box"
  9092. v-if="
  9093. courseDetail.userid == userid ||
  9094. (courseDetail.course_teacher &&
  9095. courseDetail.course_teacher.indexOf(userid) != -1)
  9096. "
  9097. >
  9098. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9099. <span>禁止学生查看所有阶段</span>
  9100. <el-switch
  9101. v-model="IsLookOpen"
  9102. active-text=""
  9103. class="switchCss"
  9104. @change="updateLookOpen"
  9105. ></el-switch>
  9106. </div>
  9107. <div class="switch_box" v-if="courseDetail.userid == userid">
  9108. <span>开启跟随模式</span>
  9109. <el-switch
  9110. v-model="IsFollow"
  9111. active-text=""
  9112. class="switchCss"
  9113. @change="updateFollow"
  9114. ></el-switch>
  9115. </div>
  9116. </div>
  9117. </div>
  9118. <div slot="footer">
  9119. <el-button
  9120. style="background: #409efe; color: #fff"
  9121. @click="juriVisible = false"
  9122. >关 闭</el-button
  9123. >
  9124. </div>
  9125. </el-dialog>
  9126. <el-dialog
  9127. title="查看视频"
  9128. :visible.sync="videoVisible"
  9129. :append-to-body="true"
  9130. width="1000px"
  9131. :before-close="handleClose"
  9132. class="dialog_diy1"
  9133. >
  9134. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9135. <video-player
  9136. class="video-player vjs-custom-skin"
  9137. :playsinline="true"
  9138. :options="videoDetail"
  9139. @play="onPlayerPlay($event)"
  9140. style="width: 100%; height: 100%"
  9141. ></video-player>
  9142. </div>
  9143. <div slot="footer">
  9144. <el-button
  9145. style="background: #409efe; color: #fff"
  9146. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9147. >
  9148. 关 闭</el-button
  9149. >
  9150. </div>
  9151. </el-dialog>
  9152. <el-dialog
  9153. title="查看详情"
  9154. :visible.sync="commentDialogVisible"
  9155. :append-to-body="true"
  9156. width="800px"
  9157. :before-close="handleClose"
  9158. class="dialog_diy"
  9159. >
  9160. <div class="commentTop">
  9161. <div class="studentDetail">
  9162. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9163. <div class="nameAndTime">
  9164. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9165. <div>{{ commentDetail.time }}</div>
  9166. </div>
  9167. <div
  9168. class="returnBtn"
  9169. style="margin-left: auto; width: 80px"
  9170. v-if="
  9171. commentDetail.works &&
  9172. commentDetail.type == 0 &&
  9173. (tType == 1 || tType == 4)
  9174. "
  9175. @click="
  9176. showPicturePaint(
  9177. commentDetail.img ? commentDetail.img : commentDetail.works
  9178. )
  9179. "
  9180. >
  9181. 教师批注
  9182. </div>
  9183. </div>
  9184. <div
  9185. class="worksAnswer"
  9186. v-if="commentDetail.works && commentDetail.type == 2"
  9187. >
  9188. {{ JSON.parse(commentDetail.works)[0].answer }}
  9189. </div>
  9190. <div
  9191. class="worksAnswer"
  9192. v-if="commentDetail.works && commentDetail.type == 1"
  9193. >
  9194. <img
  9195. src="../assets/teacherWork.png"
  9196. v-if="commentDetail.ateacher"
  9197. class="w_teachert"
  9198. />
  9199. <pdf
  9200. v-if="showPDF"
  9201. :pdfUrl="pptImgUrl"
  9202. style="width: 100%; height: 520px; overflow: auto"
  9203. :class="{ fullStyle: full }"
  9204. ></pdf>
  9205. <iframe
  9206. v-else
  9207. :src="pptImgUrl"
  9208. frameborder="0"
  9209. width="100%"
  9210. height="600"
  9211. :class="{ fullStyle: full }"
  9212. ></iframe>
  9213. </div>
  9214. <div
  9215. class="worksAnswer"
  9216. v-if="commentDetail.works && commentDetail.type == 0"
  9217. >
  9218. <img
  9219. src="../assets/teacherWork.png"
  9220. v-if="commentDetail.ateacher"
  9221. class="w_teachert"
  9222. style="right: 105px"
  9223. />
  9224. <img
  9225. :src="commentDetail.works"
  9226. alt=""
  9227. @click="previewImg(commentDetail.works)"
  9228. />
  9229. </div>
  9230. <div
  9231. class="worksAnswer"
  9232. v-if="commentDetail.works && commentDetail.type == 3"
  9233. >
  9234. <img
  9235. src="../assets/teacherWork.png"
  9236. v-if="commentDetail.ateacher"
  9237. class="w_teachert"
  9238. />
  9239. <video-player
  9240. class="video-player vjs-custom-skin"
  9241. :playsinline="true"
  9242. :options="videoDetail"
  9243. @play="onPlayerPlay($event)"
  9244. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9245. ></video-player>
  9246. </div>
  9247. <div
  9248. class="worksAnswer"
  9249. v-if="commentDetail.works && commentDetail.type == 10"
  9250. >
  9251. <div class="cont" v-html="commentDetail.works.text"></div>
  9252. </div>
  9253. <div
  9254. class="worksAnswer codeFileBox"
  9255. v-if="commentDetail.works && commentDetail.type == 12"
  9256. @click="downloadFile(commentDetail.works)"
  9257. >
  9258. <img src="../assets/icon/codeFile.png" />
  9259. <div>点击下载文件</div>
  9260. </div>
  9261. <div
  9262. class="worksAnswer codeFileBox"
  9263. v-if="commentDetail.works && commentDetail.type == 15"
  9264. @click="
  9265. openCocoPi(
  9266. 57,
  9267. commentIndexJson.toolIndex,
  9268. commentDetail.userid,
  9269. commentDetail.sName
  9270. )
  9271. "
  9272. >
  9273. <img src="../assets/icon/codeFile.png" />
  9274. <div>点击打开CocoPi</div>
  9275. </div>
  9276. <div
  9277. class="worksAnswer"
  9278. v-if="commentDetail.works && commentDetail.type == 13"
  9279. >
  9280. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9281. </div>
  9282. <div
  9283. class="worksAnswer"
  9284. v-if="commentDetail.works && commentDetail.type == 4"
  9285. >
  9286. <div class="evalCss">
  9287. <div class="nav">请选择星星进行评分</div>
  9288. <div class="middleBox" v-if="eScore.eStar">
  9289. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9290. <div class="nameAndrate">
  9291. <div>{{ e.value }}</div>
  9292. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9293. </div>
  9294. <div v-if="e.detail">{{ e.detail }}</div>
  9295. </div>
  9296. <div class="bz">
  9297. <textarea
  9298. disabled
  9299. rows="4"
  9300. class="pj"
  9301. style="
  9302. padding: 10px 5px;
  9303. width: 70%;
  9304. background: #f7f6f9;
  9305. font-size: 14px;
  9306. text-indent: 10px;
  9307. color: #000;
  9308. "
  9309. cols
  9310. v-model="eScore.eBzText"
  9311. placeholder="请输入评价内容..."
  9312. ></textarea>
  9313. </div>
  9314. </div>
  9315. </div>
  9316. </div>
  9317. <div class="comment">
  9318. <div class="commentList">
  9319. <div class="commentImg">
  9320. <img
  9321. @click="
  9322. isLikes(
  9323. commentDetail.wid,
  9324. userid,
  9325. 1,
  9326. null,
  9327. commentDetail.isLikes
  9328. )
  9329. "
  9330. :src="commentDetail.isLikes == true ? likes : noLikes"
  9331. alt=""
  9332. />
  9333. </div>
  9334. <div>{{ commentDetail.likesCount }}</div>
  9335. </div>
  9336. <div class="commentList">
  9337. <div class="commentImg">
  9338. <img src="../assets/icon/comment/comment.png" alt="" />
  9339. </div>
  9340. <div>{{ commentDetail.commentCount }}</div>
  9341. </div>
  9342. </div>
  9343. <div class="drawPBox" v-if="commentDetail.img">
  9344. <span>教师批注</span>
  9345. <img
  9346. :src="commentDetail.img"
  9347. alt=""
  9348. @click="previewImg(commentDetail.img)"
  9349. />
  9350. <span
  9351. class="deleteImg"
  9352. v-if="tType == 1 || tType == 4"
  9353. @click.stop="deletePicturePaint(commentDetail.wid)"
  9354. style="
  9355. font-size: 14px;
  9356. width: auto !important;
  9357. color: #b4b4b4;
  9358. top: unset;
  9359. bottom: 0;
  9360. border: none;
  9361. padding: 0;
  9362. height: auto !important;
  9363. margin: 0;
  9364. "
  9365. >删除</span
  9366. >
  9367. </div>
  9368. </div>
  9369. <div class="commentBox">
  9370. <div class="pl">评论:</div>
  9371. <div style="max-height: 200px; overflow: auto">
  9372. <div
  9373. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9374. style="padding: 10px 0 0 0"
  9375. >
  9376. <div
  9377. class="studentDetail"
  9378. style="padding-top: 10px"
  9379. v-for="(co, coIndex) in commentDetail.commentJson"
  9380. :key="coIndex"
  9381. >
  9382. <div class="tx" style="min-width: 50px">
  9383. <img src="../assets/avatar.png" alt="" />
  9384. </div>
  9385. <div class="plPerson">
  9386. <div class="plName">
  9387. <div>{{ co.commentPeople }}</div>
  9388. <div style="margin-left: 5px">
  9389. {{ co.commentTime }}
  9390. </div>
  9391. <div
  9392. class="deleteComment"
  9393. v-if="userid == co.userid"
  9394. @click="deleteComment(co.wid)"
  9395. >
  9396. 删除
  9397. </div>
  9398. </div>
  9399. <div class="plContent">{{ co.commentText }}</div>
  9400. </div>
  9401. </div>
  9402. </div>
  9403. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9404. </div>
  9405. </div>
  9406. <div style="margin-top: 10px">
  9407. <div class="displayBox">
  9408. <div
  9409. style="
  9410. color: #556db4;
  9411. font-size: 14px;
  9412. font-weight: bold;
  9413. padding-bottom: 10px;
  9414. "
  9415. >
  9416. 评价
  9417. </div>
  9418. <div class="easy_comment" v-if="false">
  9419. <div
  9420. v-for="(p, pIndex) in PlTextList"
  9421. :key="pIndex"
  9422. @click="fastText(p, 1)"
  9423. >
  9424. {{ p }}
  9425. </div>
  9426. </div>
  9427. </div>
  9428. <div>
  9429. <textarea
  9430. rows="3"
  9431. class="pj"
  9432. style="padding: 10px 5px"
  9433. cols
  9434. v-model="commentText"
  9435. placeholder="请输入评论"
  9436. ></textarea>
  9437. </div>
  9438. </div>
  9439. <div slot="footer">
  9440. <el-button
  9441. @click="
  9442. (commentDialogVisible = false),
  9443. (commentIndexJson = {}),
  9444. videoDetail.sources && videoDetail.sources[0]
  9445. ? (videoDetail.sources[0].src = '')
  9446. : ''
  9447. "
  9448. >取 消</el-button
  9449. >
  9450. <el-button
  9451. type="primary"
  9452. @click="addComment(commentDetail.wid, userid, 2)"
  9453. >确 定</el-button
  9454. >
  9455. </div>
  9456. </el-dialog>
  9457. <el-dialog
  9458. title="查看文档"
  9459. :visible.sync="fullDialogVisible"
  9460. :append-to-body="true"
  9461. width="100%"
  9462. :before-close="handleClose"
  9463. :show-close="false"
  9464. class="dialog_diy full_diy"
  9465. :class="{ full_diy2: fulltype == 3 }"
  9466. >
  9467. <div slot="title" class="header-title">
  9468. <div style="color: #fff">查看文档</div>
  9469. <div
  9470. @click="fullDialogVisible = false"
  9471. style="
  9472. cursor: pointer;
  9473. position: absolute;
  9474. top: 20px;
  9475. right: 20px;
  9476. color: #fff;
  9477. "
  9478. >
  9479. 退出全屏
  9480. </div>
  9481. </div>
  9482. <div style="height: 100%">
  9483. <div
  9484. class="wheel"
  9485. v-if="
  9486. fulltype == 2 &&
  9487. fullUrl.indexOf(
  9488. 'https://view.officeapps.live.com/op/view.aspx?src='
  9489. ) != -1
  9490. "
  9491. style="width: 95%; margin: 0 auto"
  9492. >
  9493. <iframe
  9494. style="width: 100%; height: 100%; border: none"
  9495. :src="fullUrl"
  9496. ></iframe>
  9497. </div>
  9498. <iframe
  9499. v-else-if="fulltype == 2"
  9500. style="width: 100%; height: 100%; border: none"
  9501. :src="fullUrl"
  9502. security="restricted"
  9503. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9504. ></iframe>
  9505. <pdf
  9506. v-else-if="fulltype == 3"
  9507. :pdfUrl="fullUrl"
  9508. style="width: 100%; height: 100%; overflow: auto"
  9509. ></pdf>
  9510. <div
  9511. class="wheel"
  9512. v-if="fulltype == 1"
  9513. style="
  9514. box-shadow: 0 0 6px 1px #f2f2f2;
  9515. width: 100%;
  9516. background: #f1f1f1;
  9517. "
  9518. >
  9519. <div class="title" style="width: 100%; box-sizing: border-box">
  9520. 查看文档
  9521. </div>
  9522. <el-form class="textBox" style="height: 90%">
  9523. <el-form-item class="textTitle">
  9524. <div style="font-size: 22px">
  9525. {{ fullUrl.name }}
  9526. </div>
  9527. </el-form-item>
  9528. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9529. <div
  9530. v-html="fullUrl.url"
  9531. class="textContent"
  9532. style="height: auto"
  9533. ></div>
  9534. </el-form>
  9535. </div>
  9536. </div>
  9537. <!-- <div slot="footer">
  9538. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9539. </div> -->
  9540. </el-dialog>
  9541. <el-dialog
  9542. title="个人评价"
  9543. :visible.sync="studentEvalDialogVisible"
  9544. :append-to-body="true"
  9545. width="800px"
  9546. :before-close="handleClose"
  9547. class="dialog_diy"
  9548. >
  9549. <div class="evalCss">
  9550. <div class="nav">请选择星星进行评分</div>
  9551. <div class="middleBox" v-if="eScore.eStar">
  9552. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9553. <div class="nameAndrate">
  9554. <div>{{ e.value }}</div>
  9555. <el-rate
  9556. v-model="eScore.eStar[eIndex]"
  9557. :disabled="isStar"
  9558. ></el-rate>
  9559. </div>
  9560. <div v-if="e.detail">{{ e.detail }}</div>
  9561. </div>
  9562. <div class="easy_comment" v-if="false">
  9563. <div
  9564. v-for="(p, pIndex) in PlTextList"
  9565. :key="pIndex"
  9566. @click="fastText(p, 2)"
  9567. >
  9568. {{ p }}
  9569. </div>
  9570. </div>
  9571. <div class="bz">
  9572. <textarea
  9573. :disabled="isStar"
  9574. rows="4"
  9575. class="pj"
  9576. style="
  9577. padding: 10px 5px;
  9578. width: 70%;
  9579. background: #f7f6f9;
  9580. font-size: 14px;
  9581. text-indent: 10px;
  9582. "
  9583. cols
  9584. v-model="eScore.eBzText"
  9585. placeholder="请输入评价内容..."
  9586. ></textarea>
  9587. </div>
  9588. </div>
  9589. </div>
  9590. <div slot="footer">
  9591. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9592. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9593. >确 定</el-button
  9594. >
  9595. </div>
  9596. </el-dialog>
  9597. <el-dialog
  9598. title="个人评价"
  9599. :visible.sync="studentEvalDialogVisibleTeacher"
  9600. :append-to-body="true"
  9601. width="800px"
  9602. :before-close="handleClose"
  9603. class="dialog_diy"
  9604. >
  9605. <div class="w_name">
  9606. 学生姓名:<span>{{ sStudent.student }}</span>
  9607. </div>
  9608. <div class="evalCss">
  9609. <div class="nav">请选择星星进行评分</div>
  9610. <div class="middleBox" v-if="eScore.eStar">
  9611. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9612. <div class="nameAndrate">
  9613. <div>{{ e.value }}</div>
  9614. <el-rate
  9615. v-model="eScore.eStar[eIndex]"
  9616. :disabled="isStar"
  9617. ></el-rate>
  9618. </div>
  9619. <div v-if="e.detail">{{ e.detail }}</div>
  9620. </div>
  9621. <div class="easy_comment" v-if="false">
  9622. <div
  9623. v-for="(p, pIndex) in PlTextList"
  9624. :key="pIndex"
  9625. @click="fastText(p, 2)"
  9626. >
  9627. {{ p }}
  9628. </div>
  9629. </div>
  9630. <div class="bz">
  9631. <textarea
  9632. :disabled="isStar"
  9633. rows="4"
  9634. class="pj"
  9635. style="
  9636. padding: 10px 5px;
  9637. width: 70%;
  9638. background: #f7f6f9;
  9639. font-size: 14px;
  9640. text-indent: 10px;
  9641. "
  9642. cols
  9643. v-model="eScore.eBzText"
  9644. placeholder="请输入评价内容..."
  9645. ></textarea>
  9646. </div>
  9647. </div>
  9648. </div>
  9649. <div slot="footer">
  9650. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9651. >取 消</el-button
  9652. >
  9653. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9654. >确 定</el-button
  9655. >
  9656. </div>
  9657. </el-dialog>
  9658. <el-dialog
  9659. title="选择匹配"
  9660. :visible.sync="dialogVisibleSelect"
  9661. :append-to-body="true"
  9662. width="90%"
  9663. :before-close="handleClose"
  9664. class="dialog_diy dialog_diy3"
  9665. >
  9666. <div v-if="selectJson">
  9667. <div class="select_box2">
  9668. <div class="select_box2_title">
  9669. <div>选择匹配</div>
  9670. <div>请选择对应的答案进行答题!</div>
  9671. </div>
  9672. <div class="select_box2_box">
  9673. <div class="select_box2_img">
  9674. <img
  9675. :src="selectJson.url"
  9676. @click="previewImg(selectJson.url)"
  9677. alt=""
  9678. />
  9679. </div>
  9680. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9681. <div style="padding-top: 15px">
  9682. <div class="select_answer_title" v-if="isSelect">
  9683. {{ selectAnswer.stu }}
  9684. </div>
  9685. <div class="select_answer_title" v-else>
  9686. 根据题目选择对应答案
  9687. </div>
  9688. <div
  9689. class="select_box2_answer_box"
  9690. v-for="(item2, checkIndex) in selectJson.select"
  9691. :key="checkIndex"
  9692. >
  9693. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9694. <el-select
  9695. :disabled="isSelect"
  9696. v-model="selectAnswer.answer[checkIndex]"
  9697. placeholder="请选择正确答案"
  9698. >
  9699. <el-option
  9700. v-for="(e, eIndex) in selectJson.select"
  9701. :key="eIndex"
  9702. :label="e"
  9703. :value="eIndex"
  9704. >
  9705. </el-option>
  9706. </el-select>
  9707. </div>
  9708. </div>
  9709. <div
  9710. class="rightAnswerCss"
  9711. v-if="isSelect && (tType == 1 || tType == 4)"
  9712. >
  9713. <div
  9714. v-for="(a, aIndex) in selectJson.answer"
  9715. :key="aIndex"
  9716. class="rightAnswer"
  9717. >
  9718. <div
  9719. v-if="selectAnswer.answer[aIndex] === a"
  9720. style="color: #767de1"
  9721. >
  9722. 回答正确
  9723. </div>
  9724. <div v-else>回答错误</div>
  9725. <div
  9726. style="margin-left: 10px"
  9727. v-if="selectAnswer.answer[aIndex] !== a"
  9728. >
  9729. 正确答案:
  9730. </div>
  9731. <div
  9732. :class="
  9733. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9734. "
  9735. >
  9736. {{ selectJson.select[a] }}
  9737. </div>
  9738. </div>
  9739. </div>
  9740. </div>
  9741. <div class="upAnswerCss">
  9742. <el-button
  9743. type="primary"
  9744. @click="addSelectAnswer"
  9745. v-if="!isSelect"
  9746. >提交答案</el-button
  9747. >
  9748. </div>
  9749. </div>
  9750. </div>
  9751. </div>
  9752. </el-dialog>
  9753. <el-dialog
  9754. title="选择匹配"
  9755. :visible.sync="dialogVisibleSelectTeacher"
  9756. :append-to-body="true"
  9757. width="90%"
  9758. :before-close="handleClose"
  9759. class="dialog_diy dialog_diy3"
  9760. >
  9761. <div v-if="selectJson">
  9762. <div class="w_name">
  9763. 学生姓名:<span>{{ sStudent.student }}</span>
  9764. </div>
  9765. <div class="select_box2">
  9766. <div class="select_box2_title">
  9767. <div>选择匹配</div>
  9768. <div>请选择对应的答案进行答题!</div>
  9769. </div>
  9770. <div class="select_box2_box">
  9771. <div class="select_box2_img">
  9772. <img
  9773. :src="selectJson.url"
  9774. @click="previewImg(selectJson.url)"
  9775. alt=""
  9776. />
  9777. </div>
  9778. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9779. <div style="padding-top: 15px">
  9780. <div class="select_answer_title" v-if="isSelect">
  9781. {{ selectAnswer.stu }}
  9782. </div>
  9783. <div class="select_answer_title" v-else>
  9784. 根据题目选择对应答案
  9785. </div>
  9786. <div
  9787. class="select_box2_answer_box"
  9788. v-for="(item2, checkIndex) in selectJson.select"
  9789. :key="checkIndex"
  9790. >
  9791. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9792. <el-select
  9793. :disabled="isSelect"
  9794. v-model="selectAnswer.answer[checkIndex]"
  9795. placeholder="请选择正确答案"
  9796. >
  9797. <el-option
  9798. v-for="(e, eIndex) in selectJson.select"
  9799. :key="eIndex"
  9800. :label="e"
  9801. :value="eIndex"
  9802. >
  9803. </el-option>
  9804. </el-select>
  9805. </div>
  9806. </div>
  9807. <div
  9808. class="rightAnswerCss"
  9809. v-if="isSelect && (tType == 1 || tType == 4)"
  9810. >
  9811. <div
  9812. v-for="(a, aIndex) in selectJson.answer"
  9813. :key="aIndex"
  9814. class="rightAnswer"
  9815. >
  9816. <div
  9817. v-if="selectAnswer.answer[aIndex] === a"
  9818. style="color: #767de1"
  9819. >
  9820. 回答正确
  9821. </div>
  9822. <div v-else>回答错误</div>
  9823. <div
  9824. style="margin-left: 10px"
  9825. v-if="selectAnswer.answer[aIndex] !== a"
  9826. >
  9827. 正确答案:
  9828. </div>
  9829. <div
  9830. :class="
  9831. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9832. "
  9833. >
  9834. {{ selectJson.select[a] }}
  9835. </div>
  9836. </div>
  9837. </div>
  9838. </div>
  9839. <div class="upAnswerCss">
  9840. <el-button
  9841. type="primary"
  9842. @click="addSelectAnswerTeacher"
  9843. v-if="!isSelect"
  9844. >提交答案</el-button
  9845. >
  9846. </div>
  9847. </div>
  9848. </div>
  9849. </div>
  9850. </el-dialog>
  9851. <el-dialog
  9852. title="教师评分"
  9853. :visible.sync="dialogVisibleScore"
  9854. :append-to-body="true"
  9855. width="800px"
  9856. :before-close="handleClose"
  9857. class="dialog_diy"
  9858. >
  9859. <div>
  9860. <div class="studentDetail">
  9861. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9862. <div class="nameAndTime">
  9863. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9864. <div>{{ commentDetail.time }}</div>
  9865. </div>
  9866. </div>
  9867. <div
  9868. class="worksAnswer"
  9869. v-if="commentDetail.works && commentDetail.type == 2"
  9870. >
  9871. {{ JSON.parse(commentDetail.works)[0].answer }}
  9872. </div>
  9873. <div
  9874. class="worksAnswer"
  9875. v-if="commentDetail.works && commentDetail.type == 1"
  9876. >
  9877. <pdf
  9878. v-if="showPDF"
  9879. :pdfUrl="pptImgUrl"
  9880. style="width: 100%; height: 520px; overflow: auto"
  9881. :class="{ fullStyle: full }"
  9882. ></pdf>
  9883. <iframe
  9884. v-else
  9885. :src="pptImgUrl"
  9886. frameborder="0"
  9887. width="100%"
  9888. height="600"
  9889. :class="{ fullStyle: full }"
  9890. ></iframe>
  9891. </div>
  9892. <div
  9893. class="worksAnswer"
  9894. v-if="commentDetail.works && commentDetail.type == 0"
  9895. >
  9896. <img
  9897. :src="commentDetail.works"
  9898. alt=""
  9899. @click="previewImg(commentDetail.works)"
  9900. />
  9901. </div>
  9902. <div
  9903. class="worksAnswer"
  9904. v-if="commentDetail.works && commentDetail.type == 3"
  9905. >
  9906. <video-player
  9907. class="video-player vjs-custom-skin"
  9908. :playsinline="true"
  9909. :options="videoDetail"
  9910. @play="onPlayerPlay($event)"
  9911. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9912. ></video-player>
  9913. </div>
  9914. <div
  9915. class="worksAnswer codeFileBox"
  9916. v-if="commentDetail.works && commentDetail.type == 12"
  9917. @click="downloadFile(commentDetail.works)"
  9918. >
  9919. <img src="../assets/icon/codeFile.png" />
  9920. <div>点击下载文件</div>
  9921. </div>
  9922. <div
  9923. class="worksAnswer codeFileBox"
  9924. v-if="commentDetail.works && commentDetail.type == 15"
  9925. @click="
  9926. openCocoPi(
  9927. 57,
  9928. commentIndexJson.toolIndex,
  9929. commentDetail.userid,
  9930. commentDetail.sName
  9931. )
  9932. "
  9933. >
  9934. <img src="../assets/icon/codeFile.png" />
  9935. <div>点击打开CocoPi</div>
  9936. </div>
  9937. <div
  9938. class="worksAnswer"
  9939. v-if="commentDetail.works && commentDetail.type == 13"
  9940. >
  9941. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9942. </div>
  9943. <div class="scoreBox">
  9944. <span class="t">请输入分数</span>
  9945. <el-input-number
  9946. :disabled="courseDetail.userid != userid"
  9947. v-model="wScore"
  9948. :controls="false"
  9949. :min="0"
  9950. :max="100"
  9951. ></el-input-number>
  9952. </div>
  9953. <div class="scoreDetailBox">
  9954. <span class="t">评分评论</span>
  9955. <el-input
  9956. type="textarea"
  9957. :rows="5"
  9958. :disabled="courseDetail.userid != userid"
  9959. resize="none"
  9960. v-model="scoreDetail"
  9961. placeholder="请输入对学生的评价"
  9962. >
  9963. </el-input>
  9964. </div>
  9965. </div>
  9966. <span slot="footer" class="dialog-footer">
  9967. <el-button
  9968. @click="
  9969. (dialogVisibleScore = false),
  9970. (commentIndexJson = {}),
  9971. videoDetail.sources && videoDetail.sources[0]
  9972. ? (videoDetail.sources[0].src = '')
  9973. : ''
  9974. "
  9975. >取 消</el-button
  9976. >
  9977. <el-button
  9978. type="primary"
  9979. v-if="courseDetail.userid == userid"
  9980. @click="scoreWork(commentDetail.wid)"
  9981. >确 定
  9982. </el-button>
  9983. </span>
  9984. </el-dialog>
  9985. <el-dialog
  9986. title="排序"
  9987. :visible.sync="dialogVisibleSentence"
  9988. :append-to-body="true"
  9989. width="1000px"
  9990. :before-close="handleClose"
  9991. class="dialog_diy dialog_diy3"
  9992. >
  9993. <div>
  9994. <div class="sentenBox">
  9995. <div
  9996. v-for="(st, stIndex) in sentenceList"
  9997. :key="stIndex"
  9998. style="padding-bottom: 20px"
  9999. >
  10000. <div
  10001. style="padding: 15px 0 10px 20px"
  10002. class="sentenceTitle"
  10003. :index="stIndex + 1"
  10004. >
  10005. 题目{{ stIndex + 1 }}:请选择正确顺序
  10006. </div>
  10007. <div class="cardList" v-if="st.chooseSenList">
  10008. <div class="cardBox">
  10009. <div
  10010. v-for="(r, rIndex) in st.chooseSenList"
  10011. :key="rIndex"
  10012. @click="returnCard(r, stIndex, rIndex)"
  10013. >
  10014. <el-tooltip
  10015. class="item"
  10016. effect="light"
  10017. :content="r"
  10018. placement="top"
  10019. v-if="r != '' && r != undefined"
  10020. >
  10021. <div
  10022. :class="{
  10023. isCard: r,
  10024. isChooseCard: r == '' || r == undefined,
  10025. }"
  10026. >
  10027. <div>{{ r }}</div>
  10028. </div>
  10029. </el-tooltip>
  10030. <div
  10031. :class="{
  10032. isCard: r,
  10033. isChooseCard: r == '' || r == undefined,
  10034. }"
  10035. v-else
  10036. >
  10037. <div>{{ r }}</div>
  10038. </div>
  10039. </div>
  10040. </div>
  10041. </div>
  10042. <div class="cardList" v-if="st.addChangeSen">
  10043. <div class="cardBox">
  10044. <div
  10045. v-for="(s, sIndex) in st.addChangeSen"
  10046. :key="sIndex"
  10047. @click="setRightAnswer(s, stIndex, sIndex)"
  10048. >
  10049. <el-tooltip
  10050. class="item"
  10051. effect="light"
  10052. :content="s"
  10053. placement="top"
  10054. v-if="s != '' && s != undefined"
  10055. >
  10056. <div
  10057. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10058. >
  10059. <div>{{ s }}</div>
  10060. </div>
  10061. </el-tooltip>
  10062. <div
  10063. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10064. v-else
  10065. >
  10066. <div>{{ s }}</div>
  10067. </div>
  10068. </div>
  10069. </div>
  10070. </div>
  10071. </div>
  10072. </div>
  10073. </div>
  10074. <span slot="footer" class="dialog-footer">
  10075. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10076. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10077. </span>
  10078. </el-dialog>
  10079. <el-dialog
  10080. title="排序"
  10081. :visible.sync="dialogVisibleSentenceTeacher"
  10082. :append-to-body="true"
  10083. width="1000px"
  10084. :before-close="handleClose"
  10085. class="dialog_diy dialog_diy3"
  10086. >
  10087. <div>
  10088. <div class="w_name">
  10089. 学生姓名:<span>{{ sStudent.student }}</span>
  10090. </div>
  10091. <div class="sentenBox">
  10092. <div
  10093. v-for="(st, stIndex) in sentenceList"
  10094. :key="stIndex"
  10095. style="padding-bottom: 20px"
  10096. >
  10097. <div
  10098. style="padding: 15px 0 10px 20px"
  10099. class="sentenceTitle"
  10100. :index="stIndex + 1"
  10101. >
  10102. 题目{{ stIndex + 1 }}:请选择正确顺序
  10103. </div>
  10104. <div class="cardList" v-if="st.chooseSenList">
  10105. <div class="cardBox">
  10106. <div
  10107. v-for="(r, rIndex) in st.chooseSenList"
  10108. :key="rIndex"
  10109. @click="returnCard(r, stIndex, rIndex)"
  10110. >
  10111. <el-tooltip
  10112. class="item"
  10113. effect="light"
  10114. :content="r"
  10115. placement="top"
  10116. v-if="r != '' && r != undefined"
  10117. >
  10118. <div
  10119. :class="{
  10120. isCard: r,
  10121. isChooseCard: r == '' || r == undefined,
  10122. }"
  10123. >
  10124. <div>{{ r }}</div>
  10125. </div>
  10126. </el-tooltip>
  10127. <div
  10128. :class="{
  10129. isCard: r,
  10130. isChooseCard: r == '' || r == undefined,
  10131. }"
  10132. v-else
  10133. >
  10134. <div>{{ r }}</div>
  10135. </div>
  10136. </div>
  10137. </div>
  10138. </div>
  10139. <div class="cardList" v-if="st.addChangeSen">
  10140. <div class="cardBox">
  10141. <div
  10142. v-for="(s, sIndex) in st.addChangeSen"
  10143. :key="sIndex"
  10144. @click="setRightAnswer(s, stIndex, sIndex)"
  10145. >
  10146. <el-tooltip
  10147. class="item"
  10148. effect="light"
  10149. :content="s"
  10150. placement="top"
  10151. v-if="s != '' && s != undefined"
  10152. >
  10153. <div
  10154. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10155. >
  10156. <div>{{ s }}</div>
  10157. </div>
  10158. </el-tooltip>
  10159. <div
  10160. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10161. v-else
  10162. >
  10163. <div>{{ s }}</div>
  10164. </div>
  10165. </div>
  10166. </div>
  10167. </div>
  10168. </div>
  10169. </div>
  10170. </div>
  10171. <span slot="footer" class="dialog-footer">
  10172. <el-button @click="dialogVisibleSentenceTeacher = false"
  10173. >取 消</el-button
  10174. >
  10175. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10176. </span>
  10177. </el-dialog>
  10178. <el-dialog
  10179. title="排序"
  10180. :visible.sync="dialogVisibleSentence1"
  10181. :append-to-body="true"
  10182. width="1000px"
  10183. :before-close="handleClose"
  10184. class="dialog_diy dialog_diy3"
  10185. >
  10186. <div>
  10187. <div class="sentenBox">
  10188. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10189. {{ sentenceList1.stuName }}的作业
  10190. </div>
  10191. <div
  10192. v-for="(st, stIndex) in sentenceList1"
  10193. :key="stIndex"
  10194. style="padding-bottom: 20px"
  10195. >
  10196. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10197. 第{{ stIndex + 1 }}题
  10198. </div>
  10199. <div class="isWrong">
  10200. <div class="cardList1" v-if="st.chooseSenList">
  10201. <div class="cardBox">
  10202. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10203. <el-tooltip
  10204. class="item"
  10205. effect="light"
  10206. :content="s"
  10207. placement="top"
  10208. >
  10209. <div class="isCard">
  10210. <div>{{ s }}</div>
  10211. </div>
  10212. </el-tooltip>
  10213. </div>
  10214. </div>
  10215. <div class="cardAnswerBox">
  10216. 组成句子:{{ st.chooseSenList.join(" ") }}
  10217. </div>
  10218. </div>
  10219. <div v-if="tType == 2" class="isTj">
  10220. <div class="isTjImg">
  10221. <img src="../assets/icon/conSentences/right.png" alt="" />
  10222. </div>
  10223. <div>已提交</div>
  10224. </div>
  10225. <div
  10226. class="answerRight isTj"
  10227. v-if="
  10228. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10229. (tType == 1 || tType == 4)
  10230. "
  10231. >
  10232. <div class="isTjImg">
  10233. <img src="../assets/icon/conSentences/right.png" alt="" />
  10234. </div>
  10235. <div>回答正确</div>
  10236. </div>
  10237. <div
  10238. class="answerRight isTj"
  10239. v-if="
  10240. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10241. (tType == 1 || tType == 4)
  10242. "
  10243. >
  10244. <div class="isTjImg">
  10245. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10246. </div>
  10247. <div>回答错误</div>
  10248. </div>
  10249. </div>
  10250. <div
  10251. v-if="
  10252. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10253. (tType == 1 || tType == 4)
  10254. "
  10255. >
  10256. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10257. <div
  10258. class="cardList"
  10259. v-if="st.rightAnswer"
  10260. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10261. >
  10262. <div class="cardBox">
  10263. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10264. <el-tooltip
  10265. class="item"
  10266. effect="light"
  10267. :content="r"
  10268. placement="top"
  10269. >
  10270. <div class="isCard1">
  10271. <div>{{ r }}</div>
  10272. </div>
  10273. </el-tooltip>
  10274. </div>
  10275. </div>
  10276. <div class="cardAnswerBox">
  10277. 组成句子:{{ st.rightAnswer.join(" ") }}
  10278. </div>
  10279. </div>
  10280. </div>
  10281. </div>
  10282. </div>
  10283. </div>
  10284. <span slot="footer" class="dialog-footer">
  10285. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10286. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10287. >确 定</el-button
  10288. >
  10289. </span>
  10290. </el-dialog>
  10291. <el-dialog
  10292. title="教师提交作业"
  10293. :visible.sync="dialogVisibleWorks"
  10294. :append-to-body="true"
  10295. width="500px"
  10296. :before-close="handleClose"
  10297. class="dialog_change"
  10298. >
  10299. <div class="marginT">
  10300. <div class="w_name">
  10301. 学生姓名:<span>{{ sStudent.student }}</span>
  10302. </div>
  10303. <div>上传文件</div>
  10304. <div
  10305. class="chapter_add"
  10306. @click="addImg($event)"
  10307. v-if="studyJuri[0].cover.length == 0"
  10308. >
  10309. <div class="up_photo">
  10310. <img src="../assets/uploadImg2.png" alt />
  10311. </div>
  10312. <!-- <input
  10313. type="file"
  10314. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10315. style="display: none"
  10316. @change="beforeUpload1($event, 1)"
  10317. /> -->
  10318. <input
  10319. type="file"
  10320. accept="*"
  10321. style="display: none"
  10322. @change="beforeUpload1($event, 1)"
  10323. />
  10324. </div>
  10325. <!-- capture="camera" -->
  10326. <div
  10327. class="chapter_add"
  10328. style="
  10329. display: flex;
  10330. width: 100%;
  10331. flex-direction: row;
  10332. flex-wrap: wrap;
  10333. justify-content: flex-start;
  10334. padding: 15px 0;
  10335. "
  10336. v-if="studyJuri[0].cover.length > 0"
  10337. >
  10338. <div class="upCover">
  10339. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10340. <img :src="word" alt v-else-if="fileType == 1" />
  10341. <img :src="video" alt v-else-if="fileType == 2" />
  10342. <img :src="word2" alt v-else-if="fileType == 3" />
  10343. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10344. <div class="deleteWord" @click="clean(1)">
  10345. <img src="../assets/icon/deleteWorks.png" alt />
  10346. </div>
  10347. </div>
  10348. </div>
  10349. </div>
  10350. <div
  10351. class="upload_send"
  10352. @click="addCourseWorksTeacher(taskCount)"
  10353. v-if="!proVisible"
  10354. >
  10355. 提交
  10356. </div>
  10357. </el-dialog>
  10358. <ImgDraw
  10359. :drawShow="drawShow"
  10360. @closeDraw="closeDraw"
  10361. @addImgDraw="addImgDraw"
  10362. :bg="bg"
  10363. ></ImgDraw>
  10364. <el-dialog
  10365. title="表格"
  10366. :visible.sync="dialogVisibleTable"
  10367. :append-to-body="true"
  10368. width="95%"
  10369. :before-close="handleClose"
  10370. class="dialog_diy"
  10371. >
  10372. <el-form>
  10373. <div
  10374. style="
  10375. display: flex;
  10376. align-items: center;
  10377. justify-content: space-between;
  10378. "
  10379. >
  10380. <span>表格内容</span>
  10381. <el-button type="primary" size="small" @click="returnTableText"
  10382. >还原模板</el-button
  10383. >
  10384. </div>
  10385. <Table
  10386. v-model="tableJson.text"
  10387. @change="change"
  10388. v-if="dialogVisibleTable"
  10389. ></Table>
  10390. </el-form>
  10391. <span slot="footer" class="dialog-footer">
  10392. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10393. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10394. </span>
  10395. </el-dialog>
  10396. <el-dialog
  10397. title="表格"
  10398. :visible.sync="dialogVisibleTableTeacher"
  10399. :append-to-body="true"
  10400. width="95%"
  10401. :before-close="handleClose"
  10402. class="dialog_diy"
  10403. >
  10404. <el-form>
  10405. <div class="w_name">
  10406. 学生姓名:<span>{{ sStudent.student }}</span>
  10407. </div>
  10408. <div>表格内容</div>
  10409. <Table
  10410. v-model="tableJson.text"
  10411. @change="change"
  10412. v-if="dialogVisibleTableTeacher"
  10413. ></Table>
  10414. </el-form>
  10415. <span slot="footer" class="dialog-footer">
  10416. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10417. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10418. </span>
  10419. </el-dialog>
  10420. <el-dialog
  10421. title="文档"
  10422. :visible.sync="dialogVisibleWord"
  10423. :append-to-body="true"
  10424. width="95%"
  10425. :before-close="handleClose"
  10426. class="dialog_diy"
  10427. >
  10428. <el-form>
  10429. <div
  10430. style="
  10431. display: flex;
  10432. align-items: center;
  10433. justify-content: space-between;
  10434. "
  10435. >
  10436. <span>文档内容</span>
  10437. <el-button type="primary" size="small" @click="returnWordText"
  10438. >还原模板</el-button
  10439. >
  10440. </div>
  10441. <editor-bar
  10442. v-model="wordJson.text"
  10443. v-if="dialogVisibleWord"
  10444. ></editor-bar>
  10445. </el-form>
  10446. <span slot="footer" class="dialog-footer">
  10447. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10448. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10449. </span>
  10450. </el-dialog>
  10451. <el-dialog
  10452. title="文档"
  10453. :visible.sync="dialogVisibleWordTeacher"
  10454. :append-to-body="true"
  10455. width="95%"
  10456. :before-close="handleClose"
  10457. class="dialog_diy"
  10458. >
  10459. <el-form>
  10460. <div class="w_name">
  10461. 学生姓名:<span>{{ sStudent.student }}</span>
  10462. </div>
  10463. <div>文档内容</div>
  10464. <editor-bar
  10465. v-model="wordJson.text"
  10466. v-if="dialogVisibleWordTeacher"
  10467. ></editor-bar>
  10468. </el-form>
  10469. <span slot="footer" class="dialog-footer">
  10470. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10471. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10472. </span>
  10473. </el-dialog>
  10474. <el-dialog
  10475. title="表格"
  10476. :visible.sync="dialogVisibleTable2"
  10477. :append-to-body="true"
  10478. width="95%"
  10479. :before-close="handleClose"
  10480. class="dialog_diy"
  10481. >
  10482. <el-form>
  10483. <div class="cont" v-html="tableJson.text"></div>
  10484. </el-form>
  10485. <span slot="footer" class="dialog-footer">
  10486. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10487. </span>
  10488. </el-dialog>
  10489. <el-dialog
  10490. title="文档"
  10491. :visible.sync="dialogVisibleTable3"
  10492. :append-to-body="true"
  10493. width="95%"
  10494. :before-close="handleClose"
  10495. class="dialog_diy"
  10496. >
  10497. <el-form>
  10498. <div class="cont" v-html="tableJson.text"></div>
  10499. </el-form>
  10500. <span slot="footer" class="dialog-footer">
  10501. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10502. </span>
  10503. </el-dialog>
  10504. <el-dialog
  10505. title="分组设置"
  10506. :visible.sync="dialogVisibleGroup"
  10507. :append-to-body="true"
  10508. width="95%"
  10509. :before-close="handleClose"
  10510. class="dialog_diy"
  10511. >
  10512. <div v-if="dialogVisibleGroup">
  10513. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10514. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10515. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10516. </div>
  10517. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10518. @click="lockChair">
  10519. 锁定位置
  10520. </div>
  10521. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10522. 解锁位置
  10523. </div> -->
  10524. <div class="group_switch">
  10525. <span>开放选座</span>
  10526. <el-switch
  10527. v-model="islock"
  10528. active-text=""
  10529. class="switchCss"
  10530. @change="lockChair"
  10531. ></el-switch>
  10532. </div>
  10533. <div
  10534. type="primary"
  10535. @click="updateGroup"
  10536. class="returnBtn"
  10537. style="background-color: #225bc7"
  10538. >
  10539. 分组设置
  10540. </div>
  10541. </div>
  10542. <div>
  10543. <div
  10544. class="g_d_box"
  10545. v-if="groupJson.group && groupStudent[toolindex]"
  10546. >
  10547. <div
  10548. class="g_d_group"
  10549. v-for="(g, gindex) in groupJson.group"
  10550. :key="gindex"
  10551. >
  10552. <div class="g_d_group_chair">
  10553. <div v-if="groupJson.number > 1">
  10554. <span
  10555. :class="{
  10556. isChair:
  10557. groupStudent[toolindex][gindex] &&
  10558. groupStudent[toolindex][gindex][0],
  10559. updateChair:
  10560. courseDetail.userid == userid &&
  10561. groupStudent[toolindex][gindex] &&
  10562. groupStudent[toolindex][gindex][0] &&
  10563. groupJson.islock == 2,
  10564. }"
  10565. ><span
  10566. class="updateChairBtn"
  10567. @click="
  10568. updateGroupChair(
  10569. groupStudent[toolindex][gindex] &&
  10570. groupStudent[toolindex][gindex][0]
  10571. )
  10572. "
  10573. >修改</span
  10574. ></span
  10575. ><span>{{
  10576. groupStudent[toolindex][gindex] &&
  10577. groupStudent[toolindex][gindex][0]
  10578. ? groupStudent[toolindex][gindex] &&
  10579. groupStudent[toolindex][gindex][0].name
  10580. : "空位置"
  10581. }}</span>
  10582. </div>
  10583. <div v-if="groupJson.number > 4">
  10584. <span
  10585. :class="{
  10586. isChair:
  10587. groupStudent[toolindex][gindex] &&
  10588. groupStudent[toolindex][gindex][4],
  10589. updateChair:
  10590. courseDetail.userid == userid &&
  10591. groupStudent[toolindex][gindex] &&
  10592. groupStudent[toolindex][gindex][4] &&
  10593. groupJson.islock == 2,
  10594. }"
  10595. ><span
  10596. class="updateChairBtn"
  10597. @click="
  10598. updateGroupChair(
  10599. groupStudent[toolindex][gindex] &&
  10600. groupStudent[toolindex][gindex][4]
  10601. )
  10602. "
  10603. >修改</span
  10604. ></span
  10605. ><span>{{
  10606. groupStudent[toolindex][gindex] &&
  10607. groupStudent[toolindex][gindex][4]
  10608. ? groupStudent[toolindex][gindex] &&
  10609. groupStudent[toolindex][gindex][4].name
  10610. : "空位置"
  10611. }}</span>
  10612. </div>
  10613. <div v-if="groupJson.number > 8">
  10614. <span
  10615. :class="{
  10616. isChair:
  10617. groupStudent[toolindex][gindex] &&
  10618. groupStudent[toolindex][gindex][8],
  10619. updateChair:
  10620. courseDetail.userid == userid &&
  10621. groupStudent[toolindex][gindex] &&
  10622. groupStudent[toolindex][gindex][8] &&
  10623. groupJson.islock == 2,
  10624. }"
  10625. ><span
  10626. class="updateChairBtn"
  10627. @click="
  10628. updateGroupChair(
  10629. groupStudent[toolindex][gindex] &&
  10630. groupStudent[toolindex][gindex][8]
  10631. )
  10632. "
  10633. >修改</span
  10634. ></span
  10635. ><span>{{
  10636. groupStudent[toolindex][gindex] &&
  10637. groupStudent[toolindex][gindex][8]
  10638. ? groupStudent[toolindex][gindex] &&
  10639. groupStudent[toolindex][gindex][8].name
  10640. : "空位置"
  10641. }}</span>
  10642. </div>
  10643. </div>
  10644. <div class="g_d_group_tableBox">
  10645. <div class="g_d_group_chair2">
  10646. <div v-if="groupJson.number > 2">
  10647. <span
  10648. :class="{
  10649. isChair:
  10650. groupStudent[toolindex][gindex] &&
  10651. groupStudent[toolindex][gindex][2],
  10652. updateChair:
  10653. courseDetail.userid == userid &&
  10654. groupStudent[toolindex][gindex] &&
  10655. groupStudent[toolindex][gindex][2] &&
  10656. groupJson.islock == 2,
  10657. }"
  10658. ><span
  10659. class="updateChairBtn"
  10660. @click="
  10661. updateGroupChair(
  10662. groupStudent[toolindex][gindex] &&
  10663. groupStudent[toolindex][gindex][2]
  10664. )
  10665. "
  10666. >修改</span
  10667. ></span
  10668. ><span>{{
  10669. groupStudent[toolindex][gindex] &&
  10670. groupStudent[toolindex][gindex][2]
  10671. ? groupStudent[toolindex][gindex] &&
  10672. groupStudent[toolindex][gindex][2].name
  10673. : "空位置"
  10674. }}</span>
  10675. </div>
  10676. <div v-if="groupJson.number > 6">
  10677. <span
  10678. :class="{
  10679. isChair:
  10680. groupStudent[toolindex][gindex] &&
  10681. groupStudent[toolindex][gindex][6],
  10682. updateChair:
  10683. courseDetail.userid == userid &&
  10684. groupStudent[toolindex][gindex] &&
  10685. groupStudent[toolindex][gindex][6] &&
  10686. groupJson.islock == 2,
  10687. }"
  10688. ><span
  10689. class="updateChairBtn"
  10690. @click="
  10691. updateGroupChair(
  10692. groupStudent[toolindex][gindex] &&
  10693. groupStudent[toolindex][gindex][6]
  10694. )
  10695. "
  10696. >修改</span
  10697. ></span
  10698. ><span>{{
  10699. groupStudent[toolindex][gindex] &&
  10700. groupStudent[toolindex][gindex][6]
  10701. ? groupStudent[toolindex][gindex] &&
  10702. groupStudent[toolindex][gindex][6].name
  10703. : "空位置"
  10704. }}</span>
  10705. </div>
  10706. </div>
  10707. <div class="g_d_group_table">
  10708. <div>
  10709. {{ g.name }}
  10710. </div>
  10711. <div>
  10712. <div
  10713. v-if="
  10714. courseDetail.userid == userid && groupJson.islock == 2
  10715. "
  10716. @click="deleteGroupChair(gindex)"
  10717. >
  10718. 移除组员
  10719. </div>
  10720. <div
  10721. @click="selectGroup(gindex)"
  10722. v-else-if="
  10723. groupStudentUid[toolindex] &&
  10724. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  10725. "
  10726. >
  10727. 加入分组
  10728. </div>
  10729. <div
  10730. @click="
  10731. exitGroup(
  10732. groupStudent[toolindex][gindex] &&
  10733. groupStudent[toolindex][gindex][
  10734. groupStudentUid[toolindex][gindex].indexOf(userid)
  10735. ].id
  10736. )
  10737. "
  10738. v-else-if="
  10739. groupStudentUid[toolindex] &&
  10740. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  10741. "
  10742. >
  10743. 退出分组
  10744. </div>
  10745. </div>
  10746. </div>
  10747. <div class="g_d_group_chair2">
  10748. <div v-if="groupJson.number > 3">
  10749. <span
  10750. :class="{
  10751. isChair:
  10752. groupStudent[toolindex][gindex] &&
  10753. groupStudent[toolindex][gindex][3],
  10754. updateChair:
  10755. courseDetail.userid == userid &&
  10756. groupStudent[toolindex][gindex] &&
  10757. groupStudent[toolindex][gindex][3] &&
  10758. groupJson.islock == 2,
  10759. }"
  10760. ><span
  10761. class="updateChairBtn"
  10762. @click="
  10763. updateGroupChair(
  10764. groupStudent[toolindex][gindex] &&
  10765. groupStudent[toolindex][gindex][3]
  10766. )
  10767. "
  10768. >修改</span
  10769. ></span
  10770. ><span>{{
  10771. groupStudent[toolindex][gindex] &&
  10772. groupStudent[toolindex][gindex][3]
  10773. ? groupStudent[toolindex][gindex] &&
  10774. groupStudent[toolindex][gindex][3].name
  10775. : "空位置"
  10776. }}</span>
  10777. </div>
  10778. <div v-if="groupJson.number > 7">
  10779. <span
  10780. :class="{
  10781. isChair:
  10782. groupStudent[toolindex][gindex] &&
  10783. groupStudent[toolindex][gindex][7],
  10784. updateChair:
  10785. courseDetail.userid == userid &&
  10786. groupStudent[toolindex][gindex] &&
  10787. groupStudent[toolindex][gindex][7] &&
  10788. groupJson.islock == 2,
  10789. }"
  10790. ><span
  10791. class="updateChairBtn"
  10792. @click="
  10793. updateGroupChair(
  10794. groupStudent[toolindex][gindex] &&
  10795. groupStudent[toolindex][gindex][7]
  10796. )
  10797. "
  10798. >修改</span
  10799. ></span
  10800. ><span>{{
  10801. groupStudent[toolindex][gindex] &&
  10802. groupStudent[toolindex][gindex][7]
  10803. ? groupStudent[toolindex][gindex] &&
  10804. groupStudent[toolindex][gindex][7].name
  10805. : "空位置"
  10806. }}</span>
  10807. </div>
  10808. </div>
  10809. </div>
  10810. <div class="g_d_group_chair">
  10811. <div v-if="groupJson.number > 1">
  10812. <span
  10813. :class="{
  10814. isChair:
  10815. groupStudent[toolindex][gindex] &&
  10816. groupStudent[toolindex][gindex][1],
  10817. updateChair:
  10818. courseDetail.userid == userid &&
  10819. groupStudent[toolindex][gindex] &&
  10820. groupStudent[toolindex][gindex][1] &&
  10821. groupJson.islock == 2,
  10822. }"
  10823. ><span
  10824. class="updateChairBtn"
  10825. @click="
  10826. updateGroupChair(
  10827. groupStudent[toolindex][gindex] &&
  10828. groupStudent[toolindex][gindex][1]
  10829. )
  10830. "
  10831. >修改</span
  10832. ></span
  10833. ><span>{{
  10834. groupStudent[toolindex][gindex] &&
  10835. groupStudent[toolindex][gindex][1]
  10836. ? groupStudent[toolindex][gindex] &&
  10837. groupStudent[toolindex][gindex][1].name
  10838. : "空位置"
  10839. }}</span>
  10840. </div>
  10841. <div v-if="groupJson.number > 5">
  10842. <span
  10843. :class="{
  10844. isChair:
  10845. groupStudent[toolindex][gindex] &&
  10846. groupStudent[toolindex][gindex][5],
  10847. updateChair:
  10848. courseDetail.userid == userid &&
  10849. groupStudent[toolindex][gindex] &&
  10850. groupStudent[toolindex][gindex][5] &&
  10851. groupJson.islock == 2,
  10852. }"
  10853. ><span
  10854. class="updateChairBtn"
  10855. @click="
  10856. updateGroupChair(
  10857. groupStudent[toolindex][gindex] &&
  10858. groupStudent[toolindex][gindex][5]
  10859. )
  10860. "
  10861. >修改</span
  10862. ></span
  10863. ><span>{{
  10864. groupStudent[toolindex][gindex] &&
  10865. groupStudent[toolindex][gindex][5]
  10866. ? groupStudent[toolindex][gindex] &&
  10867. groupStudent[toolindex][gindex][5].name
  10868. : "空位置"
  10869. }}</span>
  10870. </div>
  10871. <div v-if="groupJson.number > 9">
  10872. <span
  10873. :class="{
  10874. isChair:
  10875. groupStudent[toolindex][gindex] &&
  10876. groupStudent[toolindex][gindex][9],
  10877. updateChair:
  10878. courseDetail.userid == userid &&
  10879. groupStudent[toolindex][gindex] &&
  10880. groupStudent[toolindex][gindex][9] &&
  10881. groupJson.islock == 2,
  10882. }"
  10883. ><span
  10884. class="updateChairBtn"
  10885. @click="
  10886. updateGroupChair(
  10887. groupStudent[toolindex][gindex] &&
  10888. groupStudent[toolindex][gindex][9]
  10889. )
  10890. "
  10891. >修改</span
  10892. ></span
  10893. ><span>{{
  10894. groupStudent[toolindex][gindex] &&
  10895. groupStudent[toolindex][gindex][9]
  10896. ? groupStudent[toolindex][gindex] &&
  10897. groupStudent[toolindex][gindex][9].name
  10898. : "空位置"
  10899. }}</span>
  10900. </div>
  10901. </div>
  10902. </div>
  10903. </div>
  10904. </div>
  10905. </div>
  10906. <span slot="footer" class="dialog-footer">
  10907. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  10908. </span>
  10909. </el-dialog>
  10910. <el-dialog
  10911. title="分组设置"
  10912. :visible.sync="dialogVisibleGroup2"
  10913. :append-to-body="true"
  10914. width="650px"
  10915. :before-close="handleClose"
  10916. class="dialog_diy"
  10917. >
  10918. <div class="groupBox">
  10919. <div v-if="groupJson2.group" class="groupContent">
  10920. <div class="groupTitle">请设置小组数量及名称</div>
  10921. <div
  10922. v-for="(item, index) in groupJson2.group"
  10923. :key="index"
  10924. class="groupName"
  10925. >
  10926. <span class="groupn">第{{ index + 1 }}组名称:</span>
  10927. <el-input
  10928. v-model="item.name"
  10929. placeholder="请输入名称..."
  10930. style="width: 250px"
  10931. ></el-input>
  10932. <!-- <div class="groupBtn">
  10933. <el-button type="primary" size="small" @click="addGroup(index)">
  10934. 添加</el-button>
  10935. <el-button type="primary" size="small" @click="deleteGroup(index)"
  10936. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  10937. </div> -->
  10938. </div>
  10939. </div>
  10940. <div class="groupContent">
  10941. <div class="groupTitle">请设置每组人数</div>
  10942. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  10943. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  10944. <el-input
  10945. v-model="groupJson.number"
  10946. style="width: 150px"
  10947. placeholder="请输入2-10的数字"
  10948. @change="numberPan"
  10949. ></el-input>
  10950. </div>
  10951. </div>
  10952. <span slot="footer" class="dialog-footer">
  10953. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  10954. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  10955. </span>
  10956. </el-dialog>
  10957. <el-dialog
  10958. title="作业提交"
  10959. :visible.sync="dialogVisibleGroupWork"
  10960. :append-to-body="true"
  10961. width="500px"
  10962. :before-close="handleClose"
  10963. class="dialog_change"
  10964. >
  10965. <div class="marginT">
  10966. <div>上传文件</div>
  10967. <div
  10968. class="chapter_add"
  10969. @click="addImg($event)"
  10970. v-if="studyJuri[0].cover.length == 0"
  10971. >
  10972. <div class="up_photo">
  10973. <img src="../assets/icon/uploadImg.png" alt />
  10974. </div>
  10975. <!-- <input
  10976. type="file"
  10977. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10978. style="display: none"
  10979. @change="beforeUpload1($event, 1)"
  10980. /> -->
  10981. <input
  10982. type="file"
  10983. accept="*"
  10984. style="display: none"
  10985. @change="beforeUpload1($event, 1)"
  10986. />
  10987. </div>
  10988. <!-- capture="camera" -->
  10989. <div
  10990. class="chapter_add"
  10991. style="
  10992. display: flex;
  10993. width: 100%;
  10994. flex-direction: row;
  10995. flex-wrap: wrap;
  10996. justify-content: flex-start;
  10997. padding: 15px 0;
  10998. "
  10999. v-if="studyJuri[0].cover.length > 0"
  11000. >
  11001. <div class="upCover">
  11002. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11003. <img :src="word" alt v-else-if="fileType == 1" />
  11004. <img :src="video" alt v-else-if="fileType == 2" />
  11005. <img :src="word2" alt v-else-if="fileType == 3" />
  11006. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11007. <div class="deleteWord" @click="clean(1)">
  11008. <img src="../assets/icon/deleteWorks.png" alt />
  11009. </div>
  11010. </div>
  11011. </div>
  11012. </div>
  11013. <div
  11014. class="upload_send"
  11015. @click="addCourseWorks2(taskCount)"
  11016. v-if="!proVisible"
  11017. >
  11018. 提交
  11019. </div>
  11020. </el-dialog>
  11021. <el-dialog
  11022. title="修改分组"
  11023. :visible.sync="dialogVisibleUpdateGroup"
  11024. :append-to-body="true"
  11025. width="350px"
  11026. :before-close="handleClose"
  11027. class="dialog_diy"
  11028. >
  11029. <div>
  11030. <h2>
  11031. {{ this.updateGroupUser.name }}
  11032. </h2>
  11033. <div style="color: rgb(171 171 171); margin-top: 10px">
  11034. 请选择要进入的分组
  11035. </div>
  11036. <el-radio-group v-model="checkChair">
  11037. <el-radio
  11038. style="display: block; margin-top: 20px"
  11039. v-for="(item, index) in updateGroupArray"
  11040. :label="item.label"
  11041. :key="index"
  11042. >{{ item.name }}</el-radio
  11043. >
  11044. </el-radio-group>
  11045. </div>
  11046. <span slot="footer" class="dialog-footer">
  11047. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11048. <el-button type="primary" @click="updateChair">确定</el-button>
  11049. </span>
  11050. </el-dialog>
  11051. <el-dialog
  11052. title="移除组员"
  11053. :visible.sync="dialogVisibleDeleteGroup"
  11054. :append-to-body="true"
  11055. width="350px"
  11056. :before-close="handleClose"
  11057. class="dialog_diy"
  11058. >
  11059. <div>
  11060. <h2>
  11061. {{ this.deleteGroupArray.name }}
  11062. </h2>
  11063. <div style="color: rgb(171 171 171); margin-top: 10px">
  11064. 请选择要删除的组员
  11065. </div>
  11066. <el-checkbox-group v-model="checkDeleteGroup">
  11067. <el-checkbox
  11068. style="display: flex; margin-top: 20px"
  11069. v-for="(item, index) in deleteGroupUser"
  11070. :label="item.userid"
  11071. :key="index"
  11072. >{{ item.name }}</el-checkbox
  11073. >
  11074. </el-checkbox-group>
  11075. </div>
  11076. <span slot="footer" class="dialog-footer">
  11077. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11078. <el-button type="primary" @click="deleteChair">确定</el-button>
  11079. </span>
  11080. </el-dialog>
  11081. <el-dialog
  11082. title="批量上传"
  11083. :visible.sync="dialogVisiblePl"
  11084. :append-to-body="true"
  11085. width="700px"
  11086. :before-close="handleClose"
  11087. class="dialog_change"
  11088. >
  11089. <div class="marginT">
  11090. <div class="plworkBox">
  11091. <div
  11092. class="chapter_add"
  11093. style="
  11094. display: flex;
  11095. width: 150px;
  11096. flex-direction: row;
  11097. flex-wrap: wrap;
  11098. justify-content: flex-start;
  11099. margin: 0 10px 10px 0;
  11100. "
  11101. v-for="(item, index) in plworkFile"
  11102. :key="index"
  11103. >
  11104. <div class="upCover2">
  11105. <img
  11106. :src="item.url"
  11107. alt
  11108. v-if="item.fileType == 1"
  11109. @click="previewImg(item.url)"
  11110. />
  11111. <img :src="word" alt v-else-if="item.fileType == 4" />
  11112. <img :src="video" alt v-else />
  11113. <!-- <span class="picName">{{ item.name }}</span> -->
  11114. <!-- <el-input
  11115. v-model="item.username"
  11116. placeholder="请输入学生名字"
  11117. style="margin-top: 10px"
  11118. ></el-input> -->
  11119. <div
  11120. class="pl_select_box"
  11121. @click="
  11122. getUpdateMore(true, checkUpload(), item.username, index)
  11123. "
  11124. >
  11125. {{ getSName(item.username) }}
  11126. </div>
  11127. <!-- <el-select
  11128. style="margin-top: 10px"
  11129. v-model="item.username"
  11130. filterable
  11131. allow-create
  11132. placeholder="请选择学生"
  11133. >
  11134. <el-option
  11135. v-for="item1 in checkUpload()"
  11136. :key="item1.userid"
  11137. :label="item1.name ? item1.name : item1.username"
  11138. :value="item1.userid"
  11139. >
  11140. </el-option>
  11141. </el-select> -->
  11142. <div class="deleteWord" @click="clean2(index)">
  11143. <img src="../assets/icon/deleteWorks.png" alt />
  11144. </div>
  11145. </div>
  11146. </div>
  11147. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11148. <div class="up_photo2">
  11149. <img src="../assets/icon/plwork.png" alt />
  11150. <span>点击上传文件</span>
  11151. </div>
  11152. <input
  11153. type="file"
  11154. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11155. multiple="multiple"
  11156. style="display: none"
  11157. @change="beforeUpload3($event, 6)"
  11158. />
  11159. </div>
  11160. </div>
  11161. </div>
  11162. <!-- capture="camera" -->
  11163. <div
  11164. class="upload_send"
  11165. @click="addCourseWorksPl(taskCount)"
  11166. v-if="!proVisible2"
  11167. >
  11168. 提交
  11169. </div>
  11170. </el-dialog>
  11171. <el-dialog
  11172. title="修改名称"
  11173. :visible.sync="dialogVisibleSname"
  11174. width="500px"
  11175. :before-close="handleClose"
  11176. class="dialog_diy"
  11177. center
  11178. >
  11179. <div
  11180. style="
  11181. text-align: center;
  11182. display: flex;
  11183. align-items: center;
  11184. justify-content: center;
  11185. "
  11186. >
  11187. <span class="tian1">名称</span>
  11188. <div
  11189. class="pl_select_box"
  11190. style="margin-left: 10px; width: 200px"
  11191. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11192. >
  11193. {{ getSName(worksSName) }}
  11194. </div>
  11195. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11196. placeholder="请选择学生">
  11197. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11198. :value="item.userid">
  11199. </el-option>
  11200. </el-select> -->
  11201. <!-- <el-input
  11202. v-model="worksSName"
  11203. style="width: 250px; margin: 15px 0px"
  11204. ></el-input> -->
  11205. </div>
  11206. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11207. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11208. <el-button type="primary" @click="updateName">确 定</el-button>
  11209. </span>
  11210. </el-dialog>
  11211. <el-dialog
  11212. title="英语写作"
  11213. :visible.sync="engDialogVisible"
  11214. :append-to-body="true"
  11215. width="800px"
  11216. :before-close="handleClose"
  11217. class="dialog_diy"
  11218. >
  11219. <onlineWrite
  11220. v-if="engDialogVisible"
  11221. @setEnglish="setEnglishList"
  11222. :englishList="englishList"
  11223. :myAnswerList1="myAnswerList1"
  11224. ></onlineWrite>
  11225. <span slot="footer" class="dialog-footer">
  11226. <el-button @click="engDialogVisible = false">取 消</el-button>
  11227. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11228. </span>
  11229. </el-dialog>
  11230. <el-dialog
  11231. title="英语写作"
  11232. :visible.sync="engUpdateDialogVisible"
  11233. :append-to-body="true"
  11234. width="800px"
  11235. :before-close="handleClose"
  11236. class="dialog_diy fullStyle"
  11237. >
  11238. <div class="engUpBox">
  11239. <div class="engUpTop">
  11240. <div class="engTitle">
  11241. <div>作文题目:</div>
  11242. <div>{{ englishList1.engTitle }}</div>
  11243. </div>
  11244. <div class="engText">
  11245. <div>作文题目:</div>
  11246. <div class="cont" v-html="englishList1.englishText"></div>
  11247. </div>
  11248. </div>
  11249. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11250. <div class="oldBox">
  11251. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11252. <div class="oldText">
  11253. <div class="detailBox">
  11254. <div class="oldDetail">
  11255. <div>标题:</div>
  11256. <div>{{ oldEnglishJson.engTitle }} </div>
  11257. </div>
  11258. <div class="oldDetail">
  11259. <div>正文:</div>
  11260. <div v-html="oldEnglishJson.engText"></div>
  11261. </div>
  11262. </div>
  11263. </div>
  11264. </div>
  11265. <div class="oldBox" v-if="userMes[0].type == 2">
  11266. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11267. <div class="oldText">
  11268. <div class="detailBox">
  11269. <div class="oldDetail">
  11270. <div>标题:</div>
  11271. <el-input v-model="newEnglishList.engTitle" />
  11272. </div>
  11273. <div class="oldDetail">
  11274. <div>正文:</div>
  11275. <el-input type="textarea"
  11276. :rows="10"
  11277. resize="none" v-model="newEnglishList.engText" />
  11278. </div>
  11279. </div>
  11280. </div>
  11281. </div>
  11282. <div class="oldBox" v-else-if="userMes[0].type == 1">
  11283. <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">
  11284. <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>
  11285. <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>
  11286. </div>
  11287. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11288. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11289. <div class="detailBox">
  11290. <div class="oldDetail">
  11291. <div>标题:</div>
  11292. <el-input v-model="oldEnglishJson1.engTitle" />
  11293. </div>
  11294. <div class="oldDetail">
  11295. <div>正文:</div>
  11296. <el-input type="textarea"
  11297. :rows="10"
  11298. resize="none" v-model="oldEnglishJson1.engText" />
  11299. </div>
  11300. </div>
  11301. </div>
  11302. <div class="oldText" v-else-if="newEngIndex == -1">
  11303. <div class="detailBox">
  11304. <div class="oldDetail">
  11305. <div>标题:</div>
  11306. <el-input v-model="newEnglishList.engTitle" />
  11307. </div>
  11308. <div class="oldDetail">
  11309. <div>正文:</div>
  11310. <el-input type="textarea"
  11311. :rows="10"
  11312. resize="none" v-model="newEnglishList.engText" />
  11313. </div>
  11314. </div>
  11315. </div>
  11316. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11317. <div class="detailBox">
  11318. <div class="oldDetail">
  11319. <div>标题:</div>
  11320. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="JSON.parse(newEnglishList1[newEngIndex].cWork).engTitle"></div>
  11321. <el-input v-else v-model="JSON.parse(newEnglishList1[newEngIndex].cWork).engTitle" />
  11322. </div>
  11323. <div class="oldDetail">
  11324. <div>正文:</div>
  11325. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="JSON.parse(newEnglishList1[newEngIndex].cWork).engText"></div>
  11326. <el-input v-else type="textarea"
  11327. :rows="10"
  11328. resize="none" v-model="JSON.parse(newEnglishList1[newEngIndex].cWork).engText" />
  11329. </div>
  11330. </div>
  11331. </div>
  11332. </div>
  11333. </div>
  11334. </div>
  11335. <span slot="footer" class="dialog-footer">
  11336. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11337. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11338. </span>
  11339. </el-dialog>
  11340. <interVideo
  11341. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11342. :videoJson="videoJson"
  11343. :userid="userid"
  11344. :id="id"
  11345. :courseType="courseType"
  11346. :taskCount="taskCount"
  11347. :toolindex="toolindex"
  11348. ></interVideo>
  11349. <UpdateMore
  11350. :dialogVisibleMember.sync="dialogVisibleMember"
  11351. :cList="uploadStudentJuri"
  11352. :userid="userid"
  11353. :searchTN="worksSName2"
  11354. @setPlname="setPlname"
  11355. ></UpdateMore>
  11356. <wordCloud
  11357. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11358. :data="wordCloudData"
  11359. ></wordCloud>
  11360. <el-dialog
  11361. title="挑人"
  11362. :visible.sync="dialogVisiblePickPeople"
  11363. width="650px"
  11364. :before-close="handleClose"
  11365. class="dialog_diy"
  11366. center
  11367. >
  11368. <div class="pick_box">
  11369. <div
  11370. class="noWorksName"
  11371. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11372. v-for="(item, index) in uploadStudentJuri"
  11373. :key="index"
  11374. @click="pickStudent(item)"
  11375. >
  11376. {{ item.name }}
  11377. </div>
  11378. </div>
  11379. </el-dialog>
  11380. </div>
  11381. </template>
  11382. <script>
  11383. import "../common/aws-sdk-2.235.1.min.js";
  11384. // import pdf from "./components/pdf3";
  11385. import pdf from "./components/vpdf";
  11386. import AskStatic from "./components/askStatic";
  11387. import AskStatic2 from "./components/askStatic2";
  11388. import AnswerData2 from "./components/answerData2";
  11389. import AnswerData from "./components/answerData";
  11390. import EditorBar from "./tools/wangEnduit.vue";
  11391. import Table from "./tools/table.vue";
  11392. import Time from "./tools/time.vue";
  11393. import Mind from "./tools/jsmind.vue";
  11394. import Sunburst from "./tools/sunburst";
  11395. import SeeBoard from "./tools/seeBoard";
  11396. import * as imageConversion from "image-conversion";
  11397. import Audio from "./components/audio.vue";
  11398. import ImgDraw from "./tools/imgDraw/imgDraw";
  11399. import { Empty } from "element-ui";
  11400. import RecordRTC from "recordrtc";
  11401. import interVideo from "./interVideo/index.vue";
  11402. import UpdateMore from "./updateMore/updateMore.vue";
  11403. import wordCloud from "./wordCloud/index.vue";
  11404. import axios from "axios";
  11405. import JSZip from "jszip";
  11406. import FileSaver from "file-saver";
  11407. import onlineWrite from "./components/onlineWrite";
  11408. const getFile = (url) => {
  11409. return new Promise((resolve, reject) => {
  11410. axios({
  11411. method: "get",
  11412. url,
  11413. responseType: "blob",
  11414. })
  11415. .then((data) => {
  11416. resolve({ data: data.data });
  11417. })
  11418. .catch((error) => {
  11419. resolve({ data: 1 });
  11420. // reject(error.toString());
  11421. });
  11422. });
  11423. };
  11424. export default {
  11425. components: {
  11426. EditorBar,
  11427. Time,
  11428. pdf,
  11429. AskStatic,
  11430. AskStatic2,
  11431. Mind,
  11432. Sunburst,
  11433. SeeBoard,
  11434. AnswerData2,
  11435. AnswerData,
  11436. Audio,
  11437. ImgDraw,
  11438. Table,
  11439. interVideo,
  11440. UpdateMore,
  11441. wordCloud,
  11442. onlineWrite,
  11443. },
  11444. data() {
  11445. return {
  11446. bg: null,
  11447. drawShow: false,
  11448. dialogVisible: false,
  11449. dialogVisiblePl: false,
  11450. commentDialogVisible: false,
  11451. dialogVisibleMember: false,
  11452. dialogVisibleWordCloud: false,
  11453. videoVisible: false,
  11454. isStar: false,
  11455. studentEvalDialogVisible: false,
  11456. studentEvalDialogVisibleTeacher: false,
  11457. dialogVisibleSelect: false,
  11458. dialogVisibleSelectTeacher: false,
  11459. dialogVisibleScore: false,
  11460. dialogVisibleSentence: false,
  11461. dialogVisibleSentenceTeacher: false,
  11462. dialogVisibleSentence1: false,
  11463. dialogVisibleWorks: false,
  11464. dialogVisibleTable: false,
  11465. dialogVisibleTableTeacher: false,
  11466. dialogVisibleWord: false,
  11467. dialogVisibleWordTeacher: false,
  11468. dialogVisibleTable2: false,
  11469. dialogVisibleTable3: false,
  11470. dialogVisibleGroupWork: false,
  11471. dialogVisibleUpdateGroup: false,
  11472. dialogVisibleDeleteGroup: false,
  11473. dialogVisibleSname: false,
  11474. dialogVisibleVideo: false,
  11475. dialogVisiblePickPeople: false,
  11476. engDialogVisible: false,
  11477. engUpdateDialogVisible:false,
  11478. isNoUserid:false,
  11479. engListLength:0,
  11480. engWid:"",
  11481. newEnglishList:{
  11482. engTitle:"",
  11483. engText:"",
  11484. },
  11485. newEnglishList1:[],
  11486. oldEnglishJson:{},
  11487. oldEnglishJson1:{},
  11488. englishList1:{},
  11489. englishList:{},
  11490. myAnswerList1:{},
  11491. topHeight:0,
  11492. newEngIndex:-1,
  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. eScore: { eBzText: "", eStar: [] },
  11507. id: this.$route.query.courseId,
  11508. userid: this.$route.query.userid,
  11509. classId: this.$route.query.cid,
  11510. // courseTypeLine: this.$route.query.type,
  11511. oid: this.$route.query.oid,
  11512. org: this.$route.query.org,
  11513. tType: this.$route.query.tType,
  11514. courseType: this.$route.query.type,
  11515. screenType: this.$route.query.screenType,
  11516. tcid2: this.$route.query.tcid,
  11517. tcid: "",
  11518. pptImgUrl: "",
  11519. pptImgUrl1: "",
  11520. commentText: "",
  11521. full: false,
  11522. sIsOpen: false,
  11523. IsLookOpen: false,
  11524. IsFollow: false,
  11525. pzDialog: false,
  11526. contentDialog: false,
  11527. mlDialog: false,
  11528. type: 1,
  11529. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11530. sentenceList1: [],
  11531. tableJson: [],
  11532. tableJsonO: [],
  11533. wordJson: [],
  11534. wordJsonO: [],
  11535. vedio: [],
  11536. text: [],
  11537. textList: [],
  11538. line: [],
  11539. lineList: [],
  11540. chapTools: [],
  11541. chapToolList: [],
  11542. file: [],
  11543. fileC: [],
  11544. vedioTime: [],
  11545. upToolImg: "",
  11546. preTime: 0,
  11547. rateList: {
  11548. ca: 0,
  11549. },
  11550. rateParams: [],
  11551. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11552. studyJuri: [
  11553. {
  11554. content: "",
  11555. cover: [],
  11556. upVedio: [],
  11557. upFile: [],
  11558. },
  11559. ],
  11560. isClose: 0,
  11561. plworkFile: [],
  11562. mr: require("../assets/vedioPic.png"),
  11563. word: require("../assets/icon/isWord.png"),
  11564. word2: require("../assets/icon/word2.png"),
  11565. video: require("../assets/icon/isVideo.png"),
  11566. noLikes: require("../assets/icon/comment/noLikes.png"),
  11567. likes: require("../assets/icon/comment/likes.png"),
  11568. scoreImg: require("../assets/score.png"),
  11569. courseDetail: {},
  11570. reply: "",
  11571. isSelect: false,
  11572. chapInfo: [],
  11573. chapInfoList: [],
  11574. taskCount: 0,
  11575. imgList: [],
  11576. noImgList: [],
  11577. pzList: [],
  11578. timeWorkList: [],
  11579. PlTextList: [
  11580. "Excellent!",
  11581. "nice!",
  11582. "很有创意!",
  11583. "还不错哦~",
  11584. "继续努力哦~",
  11585. ],
  11586. isClickNav: "",
  11587. navId: "",
  11588. playerOptions: {
  11589. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11590. autoplay: false, //如果true,浏览器准备好时开始回放。
  11591. muted: false, // 默认情况下将会消除任何音频。
  11592. loop: false, // 导致视频一结束就重新开始。
  11593. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11594. language: "zh-CN",
  11595. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11596. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11597. sources: [
  11598. {
  11599. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11600. src: "", //url地址require("../../assets/media/aaa.mp4")
  11601. },
  11602. ],
  11603. // poster: require("../../assets/tu31.png"), //你的封面地址
  11604. // poster: dataRes.imgUrl, //你的封面地址
  11605. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11606. controlBar: {
  11607. timeDivider: true, //当前时间和持续时间的分隔符
  11608. durationDisplay: true, //显示持续时间
  11609. remainingTimeDisplay: false, //是否显示剩余时间功能
  11610. fullscreenToggle: true, //全屏按钮
  11611. },
  11612. },
  11613. playerOptions1: {
  11614. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11615. autoplay: false, //如果true,浏览器准备好时开始回放。
  11616. muted: false, // 默认情况下将会消除任何音频。
  11617. loop: false, // 导致视频一结束就重新开始。
  11618. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11619. language: "zh-CN",
  11620. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11621. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11622. sources: [
  11623. {
  11624. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11625. src: "", //url地址require("../../assets/media/aaa.mp4")
  11626. },
  11627. ],
  11628. // poster: require("../../assets/tu31.png"), //你的封面地址
  11629. // poster: dataRes.imgUrl, //你的封面地址
  11630. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11631. controlBar: {
  11632. timeDivider: true, //当前时间和持续时间的分隔符
  11633. durationDisplay: true, //显示持续时间
  11634. remainingTimeDisplay: false, //是否显示剩余时间功能
  11635. fullscreenToggle: true, //全屏按钮
  11636. },
  11637. },
  11638. playerO: {},
  11639. noneBtnImg: false,
  11640. proVisible: false,
  11641. proVisible2: false,
  11642. progress: 0,
  11643. isFinishSize: 0,
  11644. isAllSize: 0,
  11645. questionAnswer: "",
  11646. answerQ: "", //问答标题
  11647. rateJson: [],
  11648. wbCount: 0,
  11649. wordCount: 0,
  11650. mindCount: 0,
  11651. askCount: 0,
  11652. noteCount: 0,
  11653. mindNetWorkCount: 0,
  11654. libraryCount: 0,
  11655. workCount: 0,
  11656. timeCount: 0,
  11657. answerCount: 0,
  11658. trainCount: 0,
  11659. evalCount: 0,
  11660. dialogImageUrl: "",
  11661. pictureDialog: false,
  11662. toolTypeList: [],
  11663. dialogVisible1: false,
  11664. dialogVisible2: false,
  11665. dialogVisible3: false,
  11666. dialogVisible6: false,
  11667. dialogVisible4: false,
  11668. isNoHomeWork: false,
  11669. dialogVisible5: false,
  11670. dialogVisible5Teacher: false,
  11671. dialogVisibleChoice: false,
  11672. dialogVisibleChoiceTeacher: false,
  11673. answerDialogVisible: false,
  11674. answerDialogVisibleTeacher: false,
  11675. juriVisible: false,
  11676. timeDialogVisible: false,
  11677. replyDialogVisible: false,
  11678. toolDialogVisible: false,
  11679. replyIndex: 0,
  11680. replyPid: "",
  11681. radio: [],
  11682. isAsk: false,
  11683. askJson: {
  11684. askCount: 1,
  11685. askTitle: "",
  11686. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11687. },
  11688. testJson: {},
  11689. checkJson: [],
  11690. askList: [],
  11691. answerList: [],
  11692. navList: [],
  11693. addPzDialog: false,
  11694. pzConText: "",
  11695. worksStudent: [],
  11696. isCloseList: [],
  11697. workStudent: [],
  11698. groupStudent: [],
  11699. groupStudentUid: [],
  11700. noWorksS: [],
  11701. isWorksS: [],
  11702. noWorksStudent: [],
  11703. toolindex: 0,
  11704. toolDetailIndex: null,
  11705. groupIndex: 0,
  11706. workTypeB: false,
  11707. workTypeC: false,
  11708. isAnswer: false,
  11709. isHovered: false,
  11710. isHovered1: false,
  11711. isHovered2: false,
  11712. timer: null,
  11713. opertimer: null,
  11714. showType: 0,
  11715. fileType: 0,
  11716. showPDF: false,
  11717. noteName: "",
  11718. evaJuri: [],
  11719. evalua: "",
  11720. eTitle: "",
  11721. eName: "",
  11722. eJson: {},
  11723. fid: "", //一级
  11724. sid: "", //二级
  11725. tid: "", //二级
  11726. typeMode: 1,
  11727. eJSONNum: 0,
  11728. Etype: 1,
  11729. data: {
  11730. meta: {
  11731. name: "example",
  11732. author: "dd@163.com",
  11733. version: "0.2",
  11734. },
  11735. format: "node_array",
  11736. data: [{ id: "root", isroot: true, topic: "" }],
  11737. },
  11738. fullDialogVisible: false,
  11739. fulltype: "",
  11740. fullUrl: "",
  11741. commentIndexJson: {},
  11742. Stbodywidth: 0,
  11743. ispzType: 0,
  11744. pzType: 1,
  11745. wScore: 0,
  11746. scoreDetail: "",
  11747. videoStart: false,
  11748. recorder: null,
  11749. groupJson: {},
  11750. islock: false,
  11751. groupJson2: {},
  11752. dialogVisibleGroup: false,
  11753. dialogVisibleGroup2: false,
  11754. updateGroupArray: [],
  11755. updateGroupUser: {},
  11756. deleteGroupUser: [],
  11757. deleteGroupArray: {},
  11758. checkChair: "",
  11759. checkDeleteGroup: [],
  11760. inviteCode: "",
  11761. courseGroupStudent: [],
  11762. courseGroupStudentUid: [],
  11763. courseGroup: {},
  11764. isGroup: false,
  11765. // toolIndex: null,
  11766. tool: {},
  11767. isWorkTool: [
  11768. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11769. ], //, 40
  11770. videoJson: {},
  11771. toolType: 0,
  11772. checktoolArray: [],
  11773. vChapterData: [],
  11774. isUpdateToolDetail: false,
  11775. isUpdateToolDetail1: false,
  11776. updateToolDetailInner: "",
  11777. checkboxList: [],
  11778. plIndex: "",
  11779. worksSName2: "",
  11780. worksSid: "",
  11781. wordCloudData: [],
  11782. isPickStudent: [],
  11783. pzStype: 1,
  11784. myAnList: {},
  11785. userMes:{},
  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. uploadWorks(i) {
  18419. this.$confirm("确定导出作业吗?", "提示", {
  18420. confirmButtonText: "确定",
  18421. cancelButtonText: "取消",
  18422. type: "warning",
  18423. })
  18424. .then(() => {
  18425. const loading = this.$loading.service({
  18426. background: "rgba(255, 255, 255, 0.7)",
  18427. target: document.body,
  18428. text: "文件加载中...",
  18429. });
  18430. const _worksStudent = this.worksStudent;
  18431. let url = [];
  18432. var counts = {};
  18433. for (var l = 0; l < _worksStudent[i].length; l++) {
  18434. var item = _worksStudent[i][l];
  18435. var name = item.sName;
  18436. if (!counts.hasOwnProperty(name)) {
  18437. counts[name] = 0;
  18438. } else {
  18439. counts[name]++;
  18440. }
  18441. if (counts[name] > 0) {
  18442. item.sName += " (" + counts[name] + ")";
  18443. }
  18444. }
  18445. for (var l = 0; l < _worksStudent[i].length; l++) {
  18446. var item = _worksStudent[i][l];
  18447. if (
  18448. item.works.indexOf(
  18449. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  18450. ) !== -1 &&
  18451. item.works.indexOf("img") === -1
  18452. ) {
  18453. url.push({ name: item.sName, url: item.works });
  18454. }
  18455. }
  18456. // var toolList = [
  18457. // { name: "电子白板", tool: 1 },
  18458. // { name: "思维导图", tool: 3 },
  18459. // { name: "协同文档", tool: 6 },
  18460. // { name: "思维网格", tool: 7 },
  18461. // { name: "素材库", tool: 8 },
  18462. // { name: "学习资料", tool: 17 },
  18463. // { name: "便签", tool: 2 },
  18464. // { name: "问卷调查", tool: 4 },
  18465. // { name: "选择题", tool: 45 },
  18466. // { name: "倒计时", tool: 10 },
  18467. // { name: "问答", tool: 15 },
  18468. // { name: "课程设计", tool: 26 },
  18469. // { name: "训练服务器", tool: 18 },
  18470. // { name: "作业提交", tool: 16 },
  18471. // { name: "批量上传", tool: 50 },
  18472. // { name: "AIoT Blockly", tool: 21 },
  18473. // { name: "AI Python", tool: 23 },
  18474. // { name: "AI Blockly", tool: 24 },
  18475. // { name: "目标管理", tool: 25 },
  18476. // { name: "数学画板", tool: 31 },
  18477. // { name: "翻译", tool: 28 },
  18478. // { name: "魔盒识字", tool: 37 },
  18479. // { name: "数学画板", tool: 31 },
  18480. // { name: "24点", tool: 38 },
  18481. // { name: "GeoGebra", tool: 39 },
  18482. // { name: "源码编辑", tool: 32 },
  18483. // { name: "个人评价", tool: 40 },
  18484. // { name: "选择匹配", tool: 41 },
  18485. // { name: "汉字宫", tool: 44 },
  18486. // { name: "排序", tool: 47 },
  18487. // { name: "表格", tool: 48 },
  18488. // { name: "文档", tool: 52 },
  18489. // { name: "学生分组", tool: 49 },
  18490. // { name: "CocoPi", tool: 57 },
  18491. // { name: "模拟驾驶", tool: 58 },
  18492. // { name: "路径搜索", tool: 59 },
  18493. // { name: "深度学习", tool: 60 },
  18494. // { name: "全历史", tool: 61 },
  18495. // { name: "交互视频", tool: 62 },
  18496. // { name: "海龟编程", tool: 63 },
  18497. // { name: "挑人", tool: 65 },
  18498. // { name: "公式编辑", tool: 66 },
  18499. // { name: "分子结构", tool: 67 },
  18500. // { name: "时间轴", tool: 68 },
  18501. // ];
  18502. // var toolName = "";
  18503. // for(var w = 0;w<toolList.length;w++){
  18504. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  18505. // toolName = toolList[w].name;
  18506. // }
  18507. // }
  18508. console.log(url);
  18509. this.downLoadAll(url, loading);
  18510. })
  18511. .catch(() => {});
  18512. },
  18513. downLoadAll(url, loading) {
  18514. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  18515. const zip = new JSZip();
  18516. const cache = {};
  18517. const promises = [];
  18518. data.forEach((item) => {
  18519. const promise = getFile(item.url).then((data) => {
  18520. if (data.data != 1) {
  18521. // 下载文件, 并存成ArrayBuffer对象
  18522. const file_name =
  18523. item.name +
  18524. "." +
  18525. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  18526. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  18527. cache[file_name] = data.data;
  18528. }
  18529. });
  18530. promises.push(promise);
  18531. });
  18532. Promise.all(promises).then(() => {
  18533. zip.generateAsync({ type: "blob" }).then((content) => {
  18534. // 生成二进制流
  18535. FileSaver.saveAs(
  18536. content,
  18537. this.courseDetail.title + "-" + "作业提交工具.zip"
  18538. ); // 利用file-saver保存文件 自定义文件名
  18539. setTimeout(() => {
  18540. loading.close();
  18541. }, 2000);
  18542. });
  18543. });
  18544. },
  18545. pickStudent(stu) {
  18546. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18547. return;
  18548. }
  18549. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18550. confirmButtonText: "确定",
  18551. cancelButtonText: "取消",
  18552. type: "warning",
  18553. })
  18554. .then(() => {
  18555. let params = [
  18556. {
  18557. uid: stu.userid,
  18558. cid: this.id,
  18559. stage: this.courseType,
  18560. task: this.taskCount,
  18561. tool: this.toolindex,
  18562. },
  18563. ];
  18564. this.ajax
  18565. .post(this.$store.state.api + "updateCoursePick", params)
  18566. .then((res) => {
  18567. this.$message.success("操作成功");
  18568. this.getPick();
  18569. })
  18570. .catch((err) => {
  18571. this.$message.error("网络不佳");
  18572. console.error(err);
  18573. });
  18574. })
  18575. .catch(() => {});
  18576. },
  18577. selectUser(){
  18578. let params = {
  18579. userid: this.userid,
  18580. };
  18581. this.ajax
  18582. .get(this.$store.state.api + "selectUser", params)
  18583. .then((res) => {
  18584. this.userMes = res.data[0];
  18585. })
  18586. .catch((err) => {
  18587. console.error(err);
  18588. });
  18589. },
  18590. setEngText(i){
  18591. this.newEngIndex = i;
  18592. this.$forceUpdate();
  18593. },
  18594. addCorrect(){
  18595. this.$confirm("你确定提交批改嘛?", "提示", {
  18596. confirmButtonText: "确定",
  18597. showCancelButton: false,
  18598. closeOnClickModal: false,
  18599. type: "warning",
  18600. })
  18601. .then(() => {
  18602. let params = {
  18603. cid: this.id,
  18604. s: parseInt(this.courseType),
  18605. t: this.taskCount,
  18606. tool: this.toolindex,
  18607. wid: this.engWid,
  18608. c: this.userid,
  18609. w: (this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length) ? JSON.stringify(this.oldEnglishJson1) : JSON.stringify(this.newEnglishList),
  18610. };
  18611. this.ajax
  18612. .get(this.$store.state.api + "addEngC", params)
  18613. .then((res) => {
  18614. this.$message.success("提交成功");
  18615. this.engUpdateDialogVisible = false;
  18616. })
  18617. .catch((err) => {
  18618. console.error(err);
  18619. });
  18620. })
  18621. .catch(() => {});
  18622. },
  18623. selectEngC(id,z){
  18624. let params = {
  18625. workid: id,
  18626. };
  18627. this.ajax
  18628. .get(this.$store.state.api + "selectEngC", params)
  18629. .then((res) => {
  18630. if(res.data[0].length == 0){
  18631. this.newEnglishList.engTitle = z.engTitle;
  18632. this.newEnglishList.engText = z.engText;
  18633. }else{
  18634. var a = res.data[0];
  18635. if(this.userMes[0].type == 2){
  18636. var snum = 0;
  18637. for(var i = 0;i<a.length;i++){
  18638. if(this.userMes[0].userid == a[i].correct){
  18639. this.newEnglishList = JSON.parse(a[i].cWork);
  18640. snum = 1;
  18641. }
  18642. }
  18643. if(snum == 0){
  18644. this.newEnglishList = { engTitle:"",engText:"" };
  18645. this.newEnglishList.engTitle = z.engTitle;
  18646. this.newEnglishList.engText = z.engText;
  18647. }
  18648. }else if(this.userMes[0].type == 1){
  18649. var num = 0;
  18650. for(var w= 0;w<a.length;w++){
  18651. if(this.userMes[0].userid == a[w].correct){
  18652. num = 1;
  18653. }
  18654. }
  18655. if(num == 0){
  18656. this.isNoUserid = true;
  18657. var c = JSON.parse(JSON.stringify(z));
  18658. this.oldEnglishJson1 = c;
  18659. }else{
  18660. this.isNoUserid = false;
  18661. }
  18662. var b = a.sort((item, index) => {
  18663. if (item.correct === this.userMes[0].userid) {
  18664. return -1; // 将a移到前面
  18665. } else if (index.correct === this.userMes[0].userid) {
  18666. return 1; // 将b移到前面
  18667. } else {
  18668. return 0; // 保持默认顺序
  18669. }
  18670. });
  18671. this.newEnglishList1 = b;
  18672. }
  18673. }
  18674. this.engUpdateDialogVisible = true;
  18675. this.$forceUpdate();
  18676. setTimeout(() => {
  18677. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  18678. if(this.newEnglishList1.length > 0){
  18679. if(this.isNoUserid == true){
  18680. this.engListLength = this.newEnglishList1.length + 1;
  18681. this.newEngIndex = -1;
  18682. }else{
  18683. this.engListLength = this.newEnglishList1.length;
  18684. this.newEngIndex = 0;
  18685. }
  18686. }
  18687. }, 500);
  18688. })
  18689. .catch((err) => {
  18690. console.error(err);
  18691. });
  18692. },
  18693. getPick() {
  18694. let params = {
  18695. cid: this.id,
  18696. };
  18697. this.ajax
  18698. .get(this.$store.state.api + "getPick", params)
  18699. .then((res) => {
  18700. let array = [];
  18701. for (var i = 0; i < res.data[0].length; i++) {
  18702. array.push(res.data[0][i].userid);
  18703. }
  18704. this.isPickStudent = array;
  18705. if (array.indexOf(this.userid) !== -1) {
  18706. this.$confirm("你被老师选到啦!", "提示", {
  18707. confirmButtonText: "确定",
  18708. showCancelButton: false,
  18709. closeOnClickModal: false,
  18710. type: "warning",
  18711. })
  18712. .then(() => {
  18713. let pa = [
  18714. {
  18715. uid: this.userid,
  18716. cid: this.id,
  18717. },
  18718. ];
  18719. this.ajax
  18720. .post(this.$store.state.api + "deletePick", pa)
  18721. .then((res) => {
  18722. this.getPick();
  18723. })
  18724. .catch((err) => {
  18725. this.$message.error("网络不佳");
  18726. console.error(err);
  18727. });
  18728. })
  18729. .catch(() => {});
  18730. }
  18731. })
  18732. .catch((err) => {
  18733. this.$message.error("网络不佳");
  18734. console.error(err);
  18735. });
  18736. },
  18737. },
  18738. directives: {
  18739. // 使用局部注册指令的方式
  18740. resize: {
  18741. // 指令的名称
  18742. bind(el, binding) {
  18743. // el为绑定的元素,binding为绑定给指令的对象
  18744. let width = "",
  18745. height = "";
  18746. function isReize() {
  18747. const style = document.defaultView.getComputedStyle(el);
  18748. if (width !== style.width || height !== style.height) {
  18749. binding.value(); // 关键
  18750. }
  18751. width = style.width;
  18752. height = style.height;
  18753. }
  18754. el.__vueSetInterval__ = setInterval(isReize, 300);
  18755. },
  18756. unbind(el) {
  18757. clearInterval(el.__vueSetInterval__);
  18758. },
  18759. },
  18760. },
  18761. beforeDestroy() {
  18762. window.onresize = null;
  18763. clearInterval(this.timer);
  18764. this.timer = null;
  18765. clearInterval(this.opertimer);
  18766. this.opertimer = null;
  18767. },
  18768. computed: {
  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: 5px;
  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. .engUpTop{
  22606. max-height: 300px;
  22607. overflow: auto;
  22608. }
  22609. </style>