studyStudent.vue 729 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <!-- 任务模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 900px;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. "
  13. >
  14. <div class="btnAllNT">
  15. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  16. <img
  17. src="../../assets/icon/learn/last.png"
  18. @click="nextOrpreSteps(0)"
  19. />
  20. <img
  21. src="../../assets/icon/learn/next.png"
  22. @click="nextOrpreSteps(1)"
  23. />
  24. <img
  25. src="../../assets/icon/learn/return.png"
  26. @click.stop="
  27. goTo(
  28. '/courseDetail?userid=' +
  29. userid +
  30. '&oid=' +
  31. oid +
  32. '&org=' +
  33. org +
  34. '&cid=' +
  35. classId +
  36. '&courseId=' +
  37. id +
  38. '&tType=' +
  39. tType +
  40. '&screenType=' +
  41. screenType
  42. )
  43. "
  44. />
  45. </div>
  46. <div
  47. class="pButton"
  48. style="left: 0; top: 140px"
  49. v-if="mlDialog == false"
  50. @click="setContent2(true)"
  51. >
  52. <!-- 批 , getCourseDetail()-->
  53. <img
  54. src="../../assets/icon/newIcons/isRight.png"
  55. style="width: 45px"
  56. alt=""
  57. />
  58. </div>
  59. <div class="pb_left" v-else>
  60. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  61. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  62. <div class="courseTitle">
  63. <div
  64. style="
  65. max-width: calc(100% - 40px);
  66. width: auto;
  67. white-space: nowrap;
  68. overflow: hidden;
  69. text-overflow: ellipsis;
  70. word-break: break-word;
  71. display: block;
  72. "
  73. >
  74. <el-tooltip
  75. effect="light"
  76. :content="courseDetail.title"
  77. placement="top"
  78. >
  79. <div class="ctitle">
  80. {{ courseDetail.title }}
  81. </div>
  82. </el-tooltip>
  83. </div>
  84. <el-tooltip effect="light" content="收缩" placement="top">
  85. <div class="mlImg" @click="setContent2(false)">
  86. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  87. </div>
  88. </el-tooltip>
  89. </div>
  90. </div>
  91. <div class="cru_selectBox">
  92. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  93. <div class="stageChild" :class="{ navActive: item.isOpen }">
  94. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  95. <div
  96. class="navItem"
  97. :class="{
  98. openTaskActive:
  99. navIndex == taskCount &&
  100. nav.id == navId &&
  101. stageIndex == courseType,
  102. }"
  103. >
  104. <div v-if="nav.tool[0].tool != undefined">
  105. <div
  106. class="closeTri1"
  107. v-if="nav.isOpen"
  108. @click="openTask(stageIndex, navIndex, nav.id)"
  109. >
  110. <img src="../../assets/icon/newIcons/bDown.png" alt />
  111. </div>
  112. <div
  113. class="closeTri1"
  114. v-else
  115. @click="openTask(stageIndex, navIndex, nav.id)"
  116. >
  117. <img src="../../assets/icon/newIcons/right.png" alt />
  118. </div>
  119. </div>
  120. <div
  121. @click="openTask(stageIndex, navIndex, nav.id)"
  122. class="navItemList"
  123. :class="{
  124. isItemList:
  125. navIndex == taskCount &&
  126. nav.id == navId &&
  127. stageIndex == courseType,
  128. }"
  129. >
  130. <div>任务{{ navIndex + 1 }}:</div>
  131. <el-tooltip
  132. effect="light"
  133. :content="nav.taskName"
  134. placement="top"
  135. >
  136. <div
  137. :style="{
  138. width:
  139. IsLookOpen && !nav.isLook
  140. ? 'calc(100% - 75px)'
  141. : 'auto',
  142. }"
  143. >
  144. {{ nav.taskName }}
  145. </div>
  146. </el-tooltip>
  147. </div>
  148. </div>
  149. <div
  150. v-if="nav.tool[0].tool != undefined"
  151. class="toolChild"
  152. :class="{ toolActive: nav.isOpen }"
  153. >
  154. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  155. <div
  156. class="gjCss"
  157. :class="{ isGjCss: navIndex == taskCount &&
  158. nav.id == navId &&
  159. stageIndex == courseType && toolIndex == toolIndex2 }"
  160. @click="checkBz1(stageIndex, navIndex, toolIndex2, nav.id)"
  161. >
  162. <div>工具{{ toolIndex2 + 1 }}:</div>
  163. <div v-if="t.tool == 58">模拟驾驶</div>
  164. <div v-if="t.tool == 59">路径搜索</div>
  165. <div v-if="t.tool == 60">深度学习</div>
  166. <div v-if="t.tool == 10">倒计时</div>
  167. <div v-if="t.tool == 65">挑人</div>
  168. <div v-if="t.tool == 7">思维网格</div>
  169. <div v-if="t.tool == 1">电子白板</div>
  170. <div v-if="t.tool == 52">文档</div>
  171. <div v-if="t.tool == 3">思维导图</div>
  172. <div v-if="t.tool == 48">表格</div>
  173. <div v-if="t.tool == 49">学生分组</div>
  174. <div v-if="t.tool == 4">问卷调查</div>
  175. <div v-if="t.tool == 45">选择题</div>
  176. <div v-if="t.tool == 15">问答</div>
  177. <div v-if="t.tool == 16">作业提交</div>
  178. <div v-if="t.tool == 50">批量上传</div>
  179. <div v-if="t.tool == 41">选择匹配</div>
  180. <div v-if="t.tool == 47">排序</div>
  181. <div v-if="t.tool == 40">个人评价</div>
  182. <div v-if="t.tool == 18">训练平台</div>
  183. <div v-if="t.tool == 21">AIoT Blockly</div>
  184. <div v-if="t.tool == 23">AI Python</div>
  185. <div v-if="t.tool == 24">AI Blockly</div>
  186. <div v-if="t.tool == 32">源码编辑</div>
  187. <div v-if="t.tool == 57">CocoPi</div>
  188. <div v-if="t.tool == 63">海龟编程</div>
  189. <div v-if="t.tool == 28">翻译</div>
  190. <div v-if="t.tool == 31">数字画板</div>
  191. <div v-if="t.tool == 39">GeoGebra</div>
  192. <div v-if="t.tool == 66">公式编辑</div>
  193. <div v-if="t.tool == 67">分子结构</div>
  194. <div v-if="t.tool == 68">时间轴</div>
  195. <div v-if="t.tool == 25">目标管理</div>
  196. <div v-if="t.tool == 26">课程设计</div>
  197. <div v-if="t.tool == 62">交互视频</div>
  198. </div>
  199. </div>
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. </div>
  206. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  207. <div class="new_topFixed"></div>
  208. <div class="new_top" :class="{ navLeftCss: !mlDialog }">
  209. <div class="courseIndex">
  210. <div>任务{{ taskCount + 1 }}</div>
  211. <el-tooltip
  212. effect="light"
  213. :content="
  214. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  215. "
  216. placement="top"
  217. >
  218. <div>
  219. {{
  220. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  221. .task
  222. }}
  223. </div>
  224. </el-tooltip>
  225. </div>
  226. <div class="btnAll">
  227. <div class="btnLeft">
  228. <el-tooltip effect="light" content="刷新" placement="top">
  229. <div class="reBtnIcon" @click="refreshCourse"></div>
  230. </el-tooltip>
  231. <el-tooltip effect="light" content="评论" placement="top">
  232. <div class="commentIcon" @click="setPz" v-if="tType == 1"></div>
  233. </el-tooltip>
  234. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  235. <el-tooltip effect="light" content="录制" placement="top">
  236. <div class="vedioIcon" @click="startRecording"></div>
  237. </el-tooltip>
  238. </div>
  239. <div v-else-if="tType == 1 || tType == 4">
  240. <el-tooltip effect="light" content="下载" placement="top">
  241. <div class="vedioIcon1" @click="stopRecording"></div>
  242. </el-tooltip>
  243. </div>
  244. </div>
  245. <div class="btnRight">
  246. <div class="last" @click="nextOrpreSteps(0)" @mouseover="isHovered = true"
  247. @mouseout="isHovered = false">
  248. <div class="lastImg">
  249. <img :src="
  250. isHovered
  251. ? require('../../assets/icon/newIcons/whiteLast.png')
  252. : require('../../assets/icon/newIcons/last.png')
  253. " alt="" />
  254. </div>
  255. <div class="lastText">上一步</div>
  256. </div>
  257. <div class="last" @click="nextOrpreSteps(1)" @mouseover="isHovered1 = true"
  258. @mouseout="isHovered1 = false">
  259. <div class="lastText">下一步</div>
  260. <div class="lastImg">
  261. <img :src="
  262. isHovered1
  263. ? require('../../assets/icon/newIcons/whiteNext.png')
  264. : require('../../assets/icon/newIcons/next.png')
  265. " alt="" />
  266. </div>
  267. </div>
  268. <!-- <div class="last" @click="juriVisible = true" v-if="tType == 1">
  269. <div class="lastImg">
  270. <img src="../../assets/icon/newIcons/lock.png" alt="" />
  271. </div>
  272. <div class="lastText">权限</div>
  273. </div> -->
  274. <div
  275. class="returnBtn1 returnIcon"
  276. @click.stop="
  277. goTo(
  278. '/courseDetail?userid=' +
  279. userid +
  280. '&oid=' +
  281. oid +
  282. '&org=' +
  283. org +
  284. '&cid=' +
  285. classId +
  286. '&courseId=' +
  287. id +
  288. '&tType=' +
  289. tType +
  290. '&screenType=' +
  291. screenType
  292. )
  293. "
  294. >
  295. <div class="lastImg">
  296. <img src="../../assets/icon/newIcon/return.png" alt="" />
  297. </div>
  298. <div class="lastText" style="color: #000">返回</div>
  299. </div>
  300. </div>
  301. <!-- <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  302. 评论
  303. </div>
  304. <div class="returnBtn vedioIcon" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  305. 录制
  306. </div>
  307. <div class="returnBtn" @click="refreshCourse">刷新</div>
  308. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  309. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  310. <div class="returnBtn returnIcon" @click.stop="
  311. goTo(
  312. '/courseDetail?userid=' +
  313. userid +
  314. '&oid=' +
  315. oid +
  316. '&org=' +
  317. org +
  318. '&cid=' +
  319. classId +
  320. '&courseId=' +
  321. id +
  322. '&tType=' +
  323. tType +
  324. '&screenType=' +
  325. screenType
  326. )
  327. ">
  328. 返回
  329. </div> -->
  330. </div>
  331. </div>
  332. <div
  333. class="isNoMessage"
  334. v-if="
  335. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  336. .chapterData.length == 0 &&
  337. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  338. .toolChoose[0].tool.length == 0 &&
  339. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  340. .taskDetail == '' &&
  341. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  342. .eList &&
  343. !(
  344. courseDetail.userid == userid ||
  345. (courseDetail.course_teacher &&
  346. courseDetail.course_teacher.indexOf(userid) != -1)
  347. )
  348. "
  349. >
  350. <img src="../../assets/icon/isNoMessage.png" alt />
  351. </div>
  352. <div class="study_top" :class="{ pzClass: pzDialog }">
  353. <div
  354. class="vedioBox"
  355. v-if="
  356. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  357. .taskDetail != '' ||
  358. vChapterData[taskCount].length > 0 ||
  359. fileC[taskCount].length > 0
  360. "
  361. >
  362. <div
  363. class="taskBox"
  364. v-if="
  365. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  366. .taskDetail != ''
  367. "
  368. >
  369. <div
  370. style="
  371. display: flex;
  372. flex-wrap: nowrap;
  373. flex-direction: column;
  374. position: relative;
  375. "
  376. >
  377. <div
  378. style="
  379. padding: 20px 0px 15px 0;
  380. line-height: 29px;
  381. font-size: 18px;
  382. color: #0e1e33;
  383. "
  384. class="cont"
  385. v-if="
  386. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  387. .taskDetail != ''
  388. "
  389. v-html="
  390. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  391. .taskDetail
  392. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  393. taskCount
  394. ].taskDetail
  395. : '暂无描述'
  396. "
  397. ></div>
  398. </div>
  399. </div>
  400. <div
  401. class="student_head"
  402. v-if="
  403. vChapterData[taskCount].length > 0 ||
  404. fileC[taskCount].length > 0
  405. "
  406. >
  407. <div class="vedioTaskBox">
  408. <div
  409. :class="
  410. contentDialog == false
  411. ? 'box_course isContentCss'
  412. : 'box_course'
  413. "
  414. v-if="
  415. vChapterData.length > 0 &&
  416. vChapterData[taskCount] &&
  417. showType !== ''
  418. "
  419. >
  420. <div class="wheel" style="height: auto" v-if="showType === 0">
  421. <div
  422. class="workd_media"
  423. style="height: 650px; width: calc(100% - 50px)"
  424. >
  425. <video-player
  426. class="video-player vjs-custom-skin"
  427. :class="contentDialog == false ? 'isAllWidth' : ''"
  428. :playsinline="true"
  429. :options="playerO[taskCount]"
  430. @play="onPlayerPlay($event)"
  431. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  432. ></video-player>
  433. </div>
  434. </div>
  435. <div
  436. class="wheel"
  437. v-if="showType == 1"
  438. style="
  439. box-shadow: 0 0 6px 1px #f2f2f2;
  440. width: 95%;
  441. margin: 0 auto;
  442. background: #f1f1f1;
  443. "
  444. >
  445. <div class="title">查看文档</div>
  446. <el-form class="textBox">
  447. <el-form-item class="textTitle">
  448. <div style="font-size: 22px">
  449. {{ text.name }}
  450. </div>
  451. </el-form-item>
  452. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  453. <div v-html="text.url" class="textContent cont"></div>
  454. </el-form>
  455. </div>
  456. <div
  457. class="wheel"
  458. v-if="
  459. pptImgUrl1.indexOf(
  460. 'https://view.officeapps.live.com/op/view.aspx?src='
  461. ) != -1 && showType == 2
  462. "
  463. style="width: 95%; margin: 0 auto"
  464. >
  465. <iframe
  466. style="width: 100%; height: 100%; border: none"
  467. :src="pptImgUrl1"
  468. ></iframe>
  469. </div>
  470. <div
  471. class="wheel"
  472. v-else-if="showType == 2"
  473. style="width: 95%; margin: 0 auto"
  474. >
  475. <iframe
  476. style="width: 100%; height: 100%; border: none"
  477. security="restricted"
  478. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  479. :src="pptImgUrl1"
  480. ></iframe>
  481. </div>
  482. <div
  483. class="wheel"
  484. v-if="showType == 3"
  485. style="width: 95%; margin: 0 auto"
  486. >
  487. <pdf
  488. :pdfUrl="pptImgUrl1"
  489. style="width: 100%; height: 100%; overflow: auto"
  490. ></pdf>
  491. </div>
  492. <div
  493. class="wheel"
  494. v-if="showType == 4"
  495. style="width: 95%; margin: 0 auto"
  496. >
  497. <el-image
  498. :src="pptImgUrl1"
  499. fit="contain"
  500. style="width: 100%; height: 100%; cursor: pointer"
  501. @click="previewImg(pptImgUrl1)"
  502. ></el-image>
  503. </div>
  504. </div>
  505. <div
  506. class="pButton"
  507. style="position: absolute; right: 20px; top: 0; z-index: 998"
  508. v-if="!contentDialog"
  509. @click="setContent(true)"
  510. >
  511. <!-- 批 -->
  512. <img
  513. src="../../assets/icon/newIcons/isLeft.png"
  514. style="width: 45px"
  515. alt=""
  516. />
  517. </div>
  518. <div
  519. v-if="contentDialog == true"
  520. :style="{
  521. width:
  522. (vChapterData[taskCount].length > 0 ||
  523. fileC[taskCount].length > 0) &&
  524. showType === ''
  525. ? 'calc(100%)'
  526. : '300px',
  527. margin:
  528. (vChapterData[taskCount].length > 0 ||
  529. fileC[taskCount].length > 0) &&
  530. showType === ''
  531. ? '0 15px'
  532. : '0 15px 0 0',
  533. }"
  534. >
  535. <div
  536. class="vedioList"
  537. v-if="
  538. vChapterData[taskCount].length > 0 ||
  539. fileC[taskCount].length > 0
  540. "
  541. style="height: 650px"
  542. >
  543. <div class="navCorOpenBox">
  544. <div class="navTitile">内容列表:</div>
  545. <div class="navCorOpen" @click="setContent(false)">
  546. <img
  547. src="../../assets/icon/newIcons/isRight.png"
  548. alt=""
  549. />
  550. </div>
  551. </div>
  552. <div class="navBox">
  553. <div
  554. v-show="
  555. vChapterData[taskCount].length > 0 ||
  556. fileC[taskCount].length > 0
  557. "
  558. style="padding: 10px 0 25px 0"
  559. >
  560. <div
  561. class="vedioTimeBox"
  562. v-for="(vitem, vindex) in vChapterData[taskCount]"
  563. :key="vindex + '1'"
  564. >
  565. <div class="navListItem" v-if="vitem.type == 2">
  566. <div
  567. @click="lookVedio(vitem.url, vindex)"
  568. class="navText"
  569. :class="isClickNav == vindex ? 'isClickNav' : ''"
  570. >
  571. <span v-if="vitem.text">{{ vitem.text }}-</span
  572. >{{ vitem.name }}
  573. </div>
  574. <div class="downIcon" @click="downloadFile2(vitem)">
  575. <img
  576. src="../../assets/icon/newIcon/down.png"
  577. alt
  578. />
  579. </div>
  580. </div>
  581. <div class="navListItem" v-if="vitem.type == 6">
  582. <div
  583. @click="lookText(taskCount, vindex)"
  584. class="navText"
  585. :class="isClickNav == vindex ? 'isClickNav' : ''"
  586. >
  587. {{ vitem.name }}.doc
  588. </div>
  589. <div
  590. class="downIcon"
  591. @click="checkFileFull1(vitem.type, vitem)"
  592. >
  593. <img
  594. src="../../assets/icon/newIcon/allScreen.png"
  595. alt
  596. />
  597. </div>
  598. </div>
  599. <div
  600. class="navListItem"
  601. v-if="vitem.type == 8 || vitem.type == 14"
  602. >
  603. <div
  604. @click="doUrl(vitem.url, vindex)"
  605. class="navText"
  606. :class="isClickNav == vindex ? 'isClickNav' : ''"
  607. >
  608. {{ vitem.title ? vitem.title : vitem.url }}
  609. </div>
  610. <div
  611. class="downIcon"
  612. @click="checkFileFull1(vitem.type, vitem)"
  613. >
  614. <img
  615. src="../../assets/icon/newIcon/allScreen.png"
  616. alt
  617. />
  618. </div>
  619. </div>
  620. <div class="navListItem" v-if="vitem.type == 3">
  621. <div
  622. @click="downFile(vitem, vindex)"
  623. class="navText"
  624. :class="isClickNav == vindex ? 'isClickNav' : ''"
  625. >
  626. <span v-if="vitem.text">{{ vitem.text }}-</span
  627. >{{ vitem.name }}
  628. </div>
  629. <div class="downIcon" @click="downloadFile2(vitem)">
  630. <img
  631. src="../../assets/icon/newIcon/down.png"
  632. alt
  633. />
  634. </div>
  635. <div
  636. class="downIcon"
  637. @click="checkFileFull1(vitem.type, vitem)"
  638. >
  639. <img
  640. src="../../assets/icon/newIcon/allScreen.png"
  641. alt
  642. />
  643. </div>
  644. </div>
  645. <div class="navListItem" v-if="vitem.type == 12">
  646. <div class="navText" @click="downloadFile2(vitem)">
  647. <span v-if="vitem.text">{{ vitem.text }}-</span
  648. >{{ vitem.name }}
  649. </div>
  650. <div class="downIcon" @click="downloadFile2(vitem)">
  651. <img
  652. src="../../assets/icon/newIcon/down.png"
  653. alt
  654. />
  655. </div>
  656. <div
  657. class="downIcon"
  658. @click="checkFileFull1(vitem.type, vitem)"
  659. >
  660. <img
  661. src="../../assets/icon/newIcon/allScreen.png"
  662. alt
  663. />
  664. </div>
  665. </div>
  666. <div class="navListItem" v-if="vitem.type == 13">
  667. <div
  668. class="navText"
  669. @click="checkPhoto(vitem, vindex)"
  670. :class="isClickNav == vindex ? 'isClickNav' : ''"
  671. >
  672. {{ vitem.name }}
  673. </div>
  674. <div class="downIcon" @click="downloadFile2(vitem)">
  675. <img
  676. src="../../assets/icon/newIcon/down.png"
  677. alt
  678. />
  679. </div>
  680. </div>
  681. </div>
  682. <div
  683. class="fileC_box"
  684. v-if="fileC[taskCount].length > 0"
  685. >
  686. <div class="fileC_title">以下文件不支持预览</div>
  687. <div
  688. class="vedioTimeBox"
  689. v-for="(vitem, vindex) in fileC[taskCount]"
  690. :key="vindex + '1'"
  691. >
  692. <div class="navListItem" v-if="vitem.type == 12">
  693. <div class="navText" style="color: #acb4bf">
  694. <span v-if="vitem.text">{{ vitem.text }}-</span
  695. >{{ vitem.name }}
  696. </div>
  697. <div
  698. class="downIcon"
  699. @click="downloadFile2(vitem)"
  700. >
  701. <img
  702. src="../../assets/icon/newIcon/down.png"
  703. alt
  704. />
  705. </div>
  706. </div>
  707. </div>
  708. </div>
  709. </div>
  710. </div>
  711. </div>
  712. </div>
  713. </div>
  714. <div style="width: calc(100% - 315px)">
  715. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  716. <!-- <el-button
  717. type="primary"
  718. class="newButton"
  719. @click="checkFileFull(showType, pptImgUrl1)"
  720. >全屏查看</el-button
  721. >
  722. <el-button
  723. type="primary"
  724. class="newButton"
  725. @click="downloadFile(pptImgUrl1)"
  726. v-if="showType != 2"
  727. >文件下载</el-button
  728. > -->
  729. <el-button
  730. v-if="
  731. showType == 2 &&
  732. pptImgUrl1.indexOf(
  733. 'https://view.officeapps.live.com/op/view.aspx?src='
  734. ) == -1
  735. "
  736. type="primary"
  737. class="newButton"
  738. @click="openLine(pptImgUrl1)"
  739. >打开链接
  740. </el-button>
  741. </div>
  742. <!-- <div
  743. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  744. v-if="showType == 1"
  745. >
  746. <el-button
  747. type="primary"
  748. class="newButton"
  749. @click="checkFileFull(showType, text)"
  750. >全屏查看</el-button
  751. >
  752. </div> -->
  753. </div>
  754. </div>
  755. </div>
  756. <div
  757. class="student_body"
  758. v-resize="resize"
  759. v-if="
  760. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  761. .toolChoose[0].tool &&
  762. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  763. .toolChoose[0].tool.length > 0
  764. "
  765. >
  766. <div
  767. class="vedioBox"
  768. v-if="
  769. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  770. .toolChoose[0].tool &&
  771. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  772. .toolChoose[0].tool.length &&
  773. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  774. .toolChoose[0].tool.length > 0
  775. "
  776. style="padding: 0 37px"
  777. :style="{
  778. borderRadius:
  779. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  780. .taskDetail == '' &&
  781. vChapterData[taskCount].length == 0 &&
  782. fileC[taskCount].length == 0
  783. ? arrayToArray(tool.tool, isWorkTool).length &&
  784. (noWorksS[toolIndex].length ||
  785. worksStudent[toolIndex].length)
  786. ? '0 0 0 0'
  787. : '0 0 20px 20px'
  788. : arrayToArray(tool.tool, isWorkTool).length &&
  789. (noWorksS[toolIndex].length ||
  790. worksStudent[toolIndex].length)
  791. ? '20px 20px 0 0'
  792. : '20px',
  793. }"
  794. >
  795. <div
  796. class="queTop"
  797. style="
  798. font-size: 20px;
  799. padding: 15px 0 15px 0;
  800. font-weight: bold;
  801. "
  802. >
  803. 工作区
  804. </div>
  805. <div
  806. class="toolHeng2"
  807. style="
  808. position: relative;
  809. /* border-bottom: 1px solid rgb(215, 219, 225); */
  810. "
  811. >
  812. <div
  813. class="filebox"
  814. style="flex-wrap: nowrap"
  815. v-if="
  816. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  817. .toolChoose.length
  818. "
  819. >
  820. <div class="choiceBox">
  821. <div class="bzChild" style="margin-right: 20px">
  822. <span>步骤选择:</span>
  823. </div>
  824. <div class="bzTypeBox">
  825. <div
  826. class="bzChild"
  827. v-for="(bz, bzIndex) in chapInfoList[courseType]
  828. .chapterInfo[0].taskJson[taskCount].toolChoose"
  829. :key="bzIndex"
  830. :class="{ active: toolIndex == bzIndex }"
  831. @click="checkBz(bzIndex)"
  832. >
  833. <span>步骤{{ bzIndex + 1 }}</span>
  834. </div>
  835. </div>
  836. </div>
  837. <div class="bzBox">
  838. <!-- <div class="yCss"></div>
  839. <div>步骤{{ toolIndex + 1 }}</div> -->
  840. <div
  841. style="margin: 0 72px 20px auto"
  842. v-if="tool.tool[0] == 15"
  843. >
  844. <el-button
  845. type="primary"
  846. size="mini"
  847. @click="openWordCloud(toolIndex)"
  848. v-if="tool.tool[0] == 15"
  849. >生成词云</el-button
  850. >
  851. <!-- courseDetail.userid == userid || -->
  852. <!-- <el-button
  853. v-if="courseDetail.userid == userid"
  854. type="primary"
  855. size="mini"
  856. @click="updateToolDetail"
  857. >{{
  858. !isUpdateToolDetail ? "编辑" : "确认修改"
  859. }}</el-button
  860. > -->
  861. </div>
  862. </div>
  863. <div class="toolBox">
  864. <div class="toolBoxSteps" @click="nextToolindex('last')">
  865. <img src="../../assets/icon/leftIcon.png" />
  866. </div>
  867. <div class="toolBoxSteps" @click="nextToolindex('next')">
  868. <img src="../../assets/icon/rightIcon.png" />
  869. </div>
  870. <div>
  871. <div class="noiframeBox">
  872. <div
  873. class="addPoint"
  874. v-for="(tooC, toolCIndex) in tool.tool"
  875. :key="toolCIndex"
  876. >
  877. <div v-show="tooC == 1">
  878. <img
  879. src="../../assets/icon/secondToolList/whiteBoard.png"
  880. alt
  881. @click="addTools(tooC, toolIndex, taskCount)"
  882. />
  883. <div style="margin: 5px 0">电子白板</div>
  884. </div>
  885. <div v-show="tooC == 3">
  886. <img
  887. src="../../assets/icon/secondToolList/mindMapping.png"
  888. alt
  889. @click="addTools(tooC, toolIndex, taskCount)"
  890. />
  891. <div style="margin: 5px 0">思维导图</div>
  892. </div>
  893. <div v-show="tooC == 6">
  894. <img
  895. src="../../assets/icon/secondToolList/doc.png"
  896. alt
  897. @click="addTools(tooC, toolIndex, taskCount)"
  898. />
  899. <div style="margin: 5px 0">协同文档</div>
  900. </div>
  901. <div v-show="tooC == 7">
  902. <img
  903. src="../../assets/icon/secondToolList/mindNetwork.png"
  904. alt
  905. @click="addTools(tooC, toolIndex, taskCount)"
  906. />
  907. <div style="margin: 5px 0">思维网格</div>
  908. </div>
  909. <div v-show="tooC == 8">
  910. <img
  911. src="../../assets/icon/secondToolList/library.png"
  912. alt
  913. @click="addTools(tooC, toolIndex, taskCount)"
  914. />
  915. <div style="margin: 5px 0">素材库</div>
  916. </div>
  917. <div v-show="tooC == 17">
  918. <img
  919. src="../../assets/icon/secondToolList/library.png"
  920. alt
  921. @click="addTools(tooC, toolIndex, taskCount)"
  922. />
  923. <div style="margin: 5px 0">学习资料</div>
  924. </div>
  925. <div v-show="tooC == 2">
  926. <img
  927. @click="addTools(tooC, toolIndex, taskCount)"
  928. src="../../assets/icon/secondToolList/note.png"
  929. alt
  930. />
  931. <div style="margin: 5px 0">便签</div>
  932. </div>
  933. <div v-show="tooC == 4">
  934. <img
  935. @click="addTools(tooC, toolIndex, taskCount)"
  936. src="../../assets/icon/thirdToolList/ask.png"
  937. alt
  938. />
  939. <div style="margin: 5px 0">问卷调查</div>
  940. </div>
  941. <div v-show="tooC == 45">
  942. <img
  943. @click="addTools(tooC, toolIndex, taskCount)"
  944. src="../../assets/icon/thirdToolList/choose.png"
  945. alt
  946. />
  947. <div style="margin: 5px 0">选择题</div>
  948. </div>
  949. <!-- <div v-show="tooC == 5">
  950. <img
  951. @click="addTools(tooC, toolIndex, taskCount)"
  952. src="../../assets/icon/thirdToolList/score.png"
  953. alt
  954. />
  955. <div style="margin: 5px 0">量规评分</div>
  956. </div> -->
  957. <div v-show="tooC == 10">
  958. <img
  959. @click="addTools(tooC, toolIndex, taskCount)"
  960. src="../../assets/icon/thirdToolList/time.png"
  961. alt
  962. />
  963. <div style="margin: 5px 0">倒计时</div>
  964. </div>
  965. <div v-show="tooC == 15">
  966. <img
  967. @click="addTools(tooC, toolIndex, taskCount)"
  968. src="../../assets/icon/thirdToolList/answer.png"
  969. alt
  970. />
  971. <div style="margin: 5px 0">问答</div>
  972. </div>
  973. <div v-show="tooC == 26">
  974. <img
  975. @click="addTools(tooC, toolIndex, taskCount)"
  976. src="../../assets/icon/thirdToolList/courseDesign.png"
  977. alt
  978. />
  979. <div style="margin: 5px 0">课程设计</div>
  980. </div>
  981. <div v-show="tooC == 18">
  982. <img
  983. @click="addTools(tooC, toolIndex, taskCount)"
  984. src="../../assets/icon/thirdToolList/trainPlatform.png"
  985. alt
  986. />
  987. <div style="margin: 5px 0">训练服务器</div>
  988. </div>
  989. <div v-show="tooC == 16">
  990. <img
  991. @click="addTools(tooC, toolIndex, taskCount)"
  992. src="../../assets/icon/thirdToolList/work.png"
  993. alt
  994. />
  995. <div style="margin: 5px 0">作业提交</div>
  996. </div>
  997. <div v-show="tooC == 50">
  998. <img
  999. @click="addTools(tooC, toolIndex, taskCount)"
  1000. src="../../assets/icon/thirdToolList/plwork.png"
  1001. alt
  1002. />
  1003. <div style="margin: 5px 0">批量上传</div>
  1004. </div>
  1005. <div v-show="tooC == 21">
  1006. <img
  1007. @click="addTools(tooC, toolIndex, taskCount)"
  1008. src="../../assets/icon/fourthToolList/program.png"
  1009. alt
  1010. />
  1011. <div style="margin: 5px 0">AIoT Blockly</div>
  1012. </div>
  1013. <!-- <div v-show="tooC == 22">
  1014. <img
  1015. @click="addTools(tooC, toolIndex, taskCount)"
  1016. src="../../assets/icon/fourthToolList/program.png"
  1017. alt
  1018. />
  1019. <div style="margin: 5px 0">AI体验</div>
  1020. </div> -->
  1021. <div v-show="tooC == 23">
  1022. <img
  1023. @click="addTools(tooC, toolIndex, taskCount)"
  1024. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1025. alt
  1026. />
  1027. <div style="margin: 5px 0">AI Python</div>
  1028. </div>
  1029. <div v-show="tooC == 24">
  1030. <img
  1031. @click="addTools(tooC, toolIndex, taskCount)"
  1032. src="../../assets/icon/fourthToolList/AIprogram.png"
  1033. alt
  1034. />
  1035. <div style="margin: 5px 0">AI Blockly</div>
  1036. </div>
  1037. <div v-show="tooC == 25">
  1038. <img
  1039. @click="addTools(tooC, toolIndex, taskCount)"
  1040. src="../../assets/icon/thirdToolList/evalua.png"
  1041. alt
  1042. />
  1043. <div style="margin: 5px 0">目标管理</div>
  1044. </div>
  1045. <div v-show="tooC == 31">
  1046. <img
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. src="../../assets/icon/secondToolList/networkPanel.png"
  1049. alt
  1050. />
  1051. <div style="margin: 5px 0">数学画板</div>
  1052. </div>
  1053. <div v-show="tooC == 28">
  1054. <img
  1055. @click="addTools(tooC, toolIndex, taskCount)"
  1056. src="../../assets/icon/secondToolList/translation.png"
  1057. alt
  1058. />
  1059. <div style="margin: 5px 0">翻译</div>
  1060. </div>
  1061. <div v-show="tooC == 37">
  1062. <img
  1063. @click="addTools(tooC, toolIndex, taskCount)"
  1064. src="../../assets/icon/secondToolList/mohe.png"
  1065. alt
  1066. />
  1067. <div style="margin: 5px 0">魔盒识字</div>
  1068. </div>
  1069. <div v-show="tooC == 38">
  1070. <img
  1071. @click="addTools(tooC, toolIndex, taskCount)"
  1072. src="../../assets/icon/secondToolList/24game.png"
  1073. alt
  1074. />
  1075. <div style="margin: 5px 0">24点</div>
  1076. </div>
  1077. <div v-show="tooC == 39">
  1078. <img
  1079. @click="addTools(tooC, toolIndex, taskCount)"
  1080. src="../../assets/icon/secondToolList/GeoGebra.png"
  1081. alt
  1082. />
  1083. <div style="margin: 5px 0">GeoGebra</div>
  1084. </div>
  1085. <div v-show="tooC == 32">
  1086. <img
  1087. @click="addTools(tooC, toolIndex, taskCount)"
  1088. src="../../assets/icon/thirdToolList/code.png"
  1089. alt
  1090. />
  1091. <div style="margin: 5px 0">源码编辑</div>
  1092. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1093. style="position: absolute;left: 110px;bottom: 30px;">
  1094. 上传文件
  1095. <input type="file" accept="*" style="display: none"
  1096. @change="beforeUpload1($event, 7, toolIndex)" />
  1097. </div> -->
  1098. </div>
  1099. <!-- <div v-show="tooC == 40">
  1100. <img
  1101. @click="addTools(tooC, toolIndex, taskCount)"
  1102. src="../../assets/icon/secondToolList/eval.png"
  1103. alt
  1104. />
  1105. <div style="margin: 5px 0">个人评价</div>
  1106. </div> -->
  1107. <div v-show="tooC == 41">
  1108. <img
  1109. @click="addTools(tooC, toolIndex, taskCount)"
  1110. src="../../assets/icon/thirdToolList/select.png"
  1111. alt
  1112. />
  1113. <div style="margin: 5px 0">选择匹配</div>
  1114. </div>
  1115. <div v-show="tooC == 44">
  1116. <img
  1117. @click="addTools(tooC, toolIndex, taskCount)"
  1118. src="../../assets/icon/thirdToolList/hanClass.png"
  1119. alt
  1120. />
  1121. <div style="margin: 5px 0">汉字宫</div>
  1122. </div>
  1123. <div v-show="tooC == 47">
  1124. <img
  1125. @click="addTools(tooC, toolIndex, taskCount)"
  1126. src="../../assets/icon/fourthToolList/conSentences.png"
  1127. alt
  1128. />
  1129. <div style="margin: 5px 0">排序</div>
  1130. </div>
  1131. <div v-show="tooC == 48">
  1132. <img
  1133. @click="addTools(tooC, toolIndex, taskCount)"
  1134. src="../../assets/icon/fourthToolList/table.png"
  1135. alt
  1136. />
  1137. <div style="margin: 5px 0">表格</div>
  1138. </div>
  1139. <div v-show="tooC == 52">
  1140. <img
  1141. @click="addTools(tooC, toolIndex, taskCount)"
  1142. src="../../assets/icon/fourthToolList/text.png"
  1143. alt
  1144. />
  1145. <div style="margin: 5px 0">文档</div>
  1146. </div>
  1147. <!-- <div v-show="tooC == 49">
  1148. <img @click="addTools(tooC, toolIndex, taskCount)"
  1149. src="../../assets/icon/fourthToolList/group.png" alt />
  1150. <div style="margin: 5px 0">学生分组</div>
  1151. </div> -->
  1152. <div v-show="tooC == 57">
  1153. <img
  1154. @click="addTools(tooC, toolIndex, taskCount)"
  1155. src="../../assets/icon/fourthToolList/cocopi.png"
  1156. alt
  1157. />
  1158. <div style="margin: 5px 0">CocoPi</div>
  1159. </div>
  1160. <div v-show="tooC == 58">
  1161. <img
  1162. @click="addTools(tooC, toolIndex, taskCount)"
  1163. src="../../assets/icon/fourthToolList/car.png"
  1164. alt
  1165. />
  1166. <div style="margin: 5px 0">模拟驾驶</div>
  1167. </div>
  1168. <div v-show="tooC == 59">
  1169. <img
  1170. @click="addTools(tooC, toolIndex, taskCount)"
  1171. src="../../assets/icon/fourthToolList/lineSearch.png"
  1172. alt
  1173. />
  1174. <div style="margin: 5px 0">路径搜索</div>
  1175. </div>
  1176. <div v-show="tooC == 60">
  1177. <img
  1178. @click="addTools(tooC, toolIndex, taskCount)"
  1179. src="../../assets/icon/fourthToolList/deepLearning.png"
  1180. alt
  1181. />
  1182. <div style="margin: 5px 0">深度学习</div>
  1183. </div>
  1184. <div v-show="tooC == 61">
  1185. <img
  1186. @click="addTools(tooC, toolIndex, taskCount)"
  1187. src="../../assets/icon/fourthToolList/allHistory.png"
  1188. alt
  1189. />
  1190. <div style="margin: 5px 0">全历史</div>
  1191. </div>
  1192. <div v-show="tooC == 62">
  1193. <img
  1194. @click="addTools(tooC, toolIndex, taskCount)"
  1195. src="../../assets/icon/fourthToolList/interVideo.png"
  1196. alt
  1197. />
  1198. <div style="margin: 5px 0">交互视频</div>
  1199. </div>
  1200. <div v-show="tooC == 63">
  1201. <img
  1202. @click="addTools(tooC, toolIndex, taskCount)"
  1203. src="../../assets/icon/fourthToolList/Wood.png"
  1204. alt
  1205. />
  1206. <div style="margin: 5px 0">海龟编程</div>
  1207. </div>
  1208. <div v-if="tooC == 65">
  1209. <img
  1210. @click="addTools(tooC, toolIndex, taskCount)"
  1211. src="../../assets/icon/firstToolList/pickPeople.png"
  1212. alt
  1213. />
  1214. <div style="margin: 5px 0">挑人</div>
  1215. </div>
  1216. <div v-if="tooC == 66">
  1217. <img
  1218. @click="addTools(tooC, toolIndex, taskCount)"
  1219. src="../../assets/icon/secondToolList/formulaEdi.png"
  1220. alt
  1221. />
  1222. <div style="margin: 5px 0">公式编辑</div>
  1223. </div>
  1224. <div v-if="tooC == 67">
  1225. <img
  1226. @click="addTools(tooC, toolIndex, taskCount)"
  1227. src="../../assets/icon/secondToolList/molStr.png"
  1228. alt
  1229. />
  1230. <div style="margin: 5px 0">分子结构</div>
  1231. </div>
  1232. <div v-if="tooC == 68">
  1233. <img
  1234. @click="addTools(tooC, toolIndex, taskCount)"
  1235. src="../../assets/icon/secondToolList/timeAxis.png"
  1236. alt
  1237. />
  1238. <div style="margin: 5px 0">时间轴</div>
  1239. </div>
  1240. </div>
  1241. </div>
  1242. </div>
  1243. <div class="tooldetail">
  1244. <!-- <div class="toolTitle">工具描述</div> -->
  1245. <div
  1246. style="height: 100%"
  1247. v-html="
  1248. contentConvent(
  1249. tool.toolDetail ? tool.toolDetail : '暂无描述'
  1250. )
  1251. "
  1252. v-if="!isUpdateToolDetail"
  1253. @click.stop="updateToolDetail"
  1254. ></div>
  1255. <div v-else @click.stop="">
  1256. <el-input
  1257. type="textarea"
  1258. :rows="3"
  1259. resize="none"
  1260. v-model="updateToolDetailInner"
  1261. placeholder="请输入任务描述"
  1262. ></el-input>
  1263. </div>
  1264. </div>
  1265. <el-button
  1266. type="primary"
  1267. v-if="tool.tool[0] == 32"
  1268. style="
  1269. position: absolute;
  1270. right: 30px;
  1271. transform: translateY(-130%);
  1272. "
  1273. @click="addImg($event)"
  1274. >上传作业<input
  1275. type="file"
  1276. accept="*"
  1277. style="display: none"
  1278. @change="beforeUpload1($event, 7, toolIndex)"
  1279. /></el-button>
  1280. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1281. position: absolute;
  1282. right: 30px;
  1283. transform: translateY(-130%);
  1284. " @click="addImg($event)">上传作业<input type="file" accept="*"
  1285. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1286. </div>
  1287. </div>
  1288. </div>
  1289. </div>
  1290. <div
  1291. class="vedioBox"
  1292. v-if="
  1293. arrayToArray(tool.tool, isWorkTool).length &&
  1294. worksTeacher.length &&
  1295. worksTeacher[toolIndex].length &&
  1296. false
  1297. "
  1298. >
  1299. <div
  1300. class="queTop"
  1301. style="
  1302. font-size: 20px;
  1303. padding: 15px 0 15px 30px;
  1304. font-weight: bold;
  1305. "
  1306. >
  1307. 教师工作区
  1308. </div>
  1309. <div class="tool_work_box">
  1310. <div
  1311. v-if="
  1312. tType &&
  1313. ((tType == 2 && sIsOpen == true) ||
  1314. tType == 1 ||
  1315. tType == 4) &&
  1316. tool.tool.indexOf(16) != -1
  1317. "
  1318. class="worksBox"
  1319. >
  1320. <div
  1321. class="zuoyeYulan"
  1322. v-if="
  1323. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1324. "
  1325. >
  1326. <div class="worksTop">
  1327. <div>作业预览</div>
  1328. </div>
  1329. </div>
  1330. <div
  1331. class="worksDetailBox"
  1332. v-if="
  1333. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1334. "
  1335. >
  1336. <div
  1337. class="works"
  1338. style="
  1339. width: 200px;
  1340. height: 140px;
  1341. margin: 10px 10px 10px 0;
  1342. border-radius: 15px;
  1343. box-shadow: 0 0 6px 1px #dfdada;
  1344. "
  1345. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1346. :key="wIndex"
  1347. :class="w.type == 1 ? 'isTypeOne' : ''"
  1348. >
  1349. <div class="workImg" v-if="w.type == 0">
  1350. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1351. <img :src="w.works" @click="previewImg(w.works)" alt />
  1352. <div
  1353. class="answerScore"
  1354. v-if="w.score"
  1355. @click.stop="openScore(w)"
  1356. :class="{
  1357. rightW:
  1358. w.userid == userid ||
  1359. tType == 1 ||
  1360. tType == 4 ||
  1361. w.ateacher == userid,
  1362. }"
  1363. >
  1364. {{ JSON.parse(w.score).wScore }}分
  1365. </div>
  1366. <div
  1367. class="answerScore"
  1368. @click.stop="openScore(w)"
  1369. v-else-if="courseDetail.userid == userid"
  1370. :class="{
  1371. rightW:
  1372. w.userid == userid ||
  1373. tType == 1 ||
  1374. tType == 4 ||
  1375. w.ateacher == userid,
  1376. }"
  1377. >
  1378. 评分
  1379. </div>
  1380. <img
  1381. class="deleteImg"
  1382. src="../../assets/deleteworks.png"
  1383. v-if="w.userid == userid || tType == 1 || tType == 4"
  1384. @click.stop="deleteWorks(w.wid)"
  1385. alt
  1386. />
  1387. </div>
  1388. <div class="workImg" v-if="w.type == 1">
  1389. <img :src="word" @click="openFile(w.works)" alt />
  1390. <!-- @click="openFile(w.works)" -->
  1391. <div
  1392. class="answerScore"
  1393. v-if="w.score"
  1394. @click.stop="openScore(w)"
  1395. :class="{
  1396. rightW:
  1397. w.userid == userid ||
  1398. tType == 1 ||
  1399. tType == 4 ||
  1400. w.ateacher == userid,
  1401. }"
  1402. >
  1403. {{ JSON.parse(w.score).wScore }}分
  1404. </div>
  1405. <div
  1406. class="answerScore"
  1407. @click.stop="openScore(w)"
  1408. v-else-if="courseDetail.userid == userid"
  1409. :class="{
  1410. rightW:
  1411. w.userid == userid ||
  1412. tType == 1 ||
  1413. tType == 4 ||
  1414. w.ateacher == userid,
  1415. }"
  1416. >
  1417. 评分
  1418. </div>
  1419. <img
  1420. class="deleteImg"
  1421. src="../../assets/deleteworks.png"
  1422. v-if="w.userid == userid || tType == 1 || tType == 4"
  1423. @click.stop="deleteWorks(w.wid)"
  1424. alt
  1425. />
  1426. </div>
  1427. <div class="workImg" v-if="w.type == 3">
  1428. <img
  1429. style="cursor: pointer"
  1430. :src="video"
  1431. @click="openVideo(w)"
  1432. alt
  1433. />
  1434. <!-- @click="openVideo(w.works)" -->
  1435. <div
  1436. class="answerScore"
  1437. v-if="w.score"
  1438. @click.stop="openScore(w)"
  1439. :class="{
  1440. rightW:
  1441. w.userid == userid ||
  1442. tType == 1 ||
  1443. tType == 4 ||
  1444. w.ateacher == userid,
  1445. }"
  1446. >
  1447. {{ JSON.parse(w.score).wScore }}分
  1448. </div>
  1449. <div
  1450. class="answerScore"
  1451. @click.stop="openScore(w)"
  1452. v-else-if="courseDetail.userid == userid"
  1453. :class="{
  1454. rightW:
  1455. w.userid == userid ||
  1456. tType == 1 ||
  1457. tType == 4 ||
  1458. w.ateacher == userid,
  1459. }"
  1460. >
  1461. 评分
  1462. </div>
  1463. <img
  1464. class="deleteImg"
  1465. src="../../assets/deleteworks.png"
  1466. v-if="w.userid == userid || tType == 1 || tType == 4"
  1467. @click.stop="deleteWorks(w.wid)"
  1468. alt
  1469. />
  1470. </div>
  1471. <div class="workImg" v-if="w.type == 12">
  1472. <img
  1473. style="cursor: pointer"
  1474. :src="word2"
  1475. @click="downloadFile(w.works)"
  1476. alt
  1477. />
  1478. <!-- @click="openVideo(w.works)" -->
  1479. <div
  1480. class="answerScore"
  1481. v-if="w.score"
  1482. @click.stop="openScore(w)"
  1483. :class="{
  1484. rightW:
  1485. w.userid == userid ||
  1486. tType == 1 ||
  1487. tType == 4 ||
  1488. w.ateacher == userid,
  1489. }"
  1490. >
  1491. {{ JSON.parse(w.score).wScore }}分
  1492. </div>
  1493. <div
  1494. class="answerScore"
  1495. @click.stop="openScore(w)"
  1496. v-else-if="courseDetail.userid == userid"
  1497. :class="{
  1498. rightW:
  1499. w.userid == userid ||
  1500. tType == 1 ||
  1501. tType == 4 ||
  1502. w.ateacher == userid,
  1503. }"
  1504. >
  1505. 评分
  1506. </div>
  1507. <img
  1508. class="deleteImg"
  1509. src="../../assets/deleteworks.png"
  1510. v-if="w.userid == userid || tType == 1 || tType == 4"
  1511. @click.stop="deleteWorks(w.wid)"
  1512. alt
  1513. />
  1514. </div>
  1515. <div class="comment" style="min-width: 200px">
  1516. <div class="worksName">
  1517. <div>{{ w.sName }}</div>
  1518. </div>
  1519. <div class="commentList">
  1520. <div class="commentList">
  1521. <div
  1522. class="commentImg"
  1523. @click="
  1524. isLikes(w.wid, userid, 1, null, w.isLikes)
  1525. "
  1526. >
  1527. <img
  1528. :src="w.isLikes == true ? likes : noLikes"
  1529. alt=""
  1530. />
  1531. </div>
  1532. <div>{{ w.likesCount }}</div>
  1533. </div>
  1534. <div class="commentList" style="margin-right: 15px">
  1535. <div
  1536. class="commentImg"
  1537. @click="commentOther(w, toolIndex, wIndex)"
  1538. >
  1539. <img
  1540. src="../../assets/icon/comment/comment.png"
  1541. alt=""
  1542. />
  1543. </div>
  1544. <div>{{ w.commentCount }}</div>
  1545. </div>
  1546. </div>
  1547. </div>
  1548. </div>
  1549. </div>
  1550. </div>
  1551. <div
  1552. v-if="
  1553. tType &&
  1554. ((tType == 2 && sIsOpen == true) ||
  1555. tType == 1 ||
  1556. tType == 4) &&
  1557. tool.tool.indexOf(32) != -1
  1558. "
  1559. class="worksBox"
  1560. >
  1561. <div
  1562. class="zuoyeYulan"
  1563. v-if="
  1564. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1565. "
  1566. >
  1567. <div class="worksTop">
  1568. <div>作业预览</div>
  1569. </div>
  1570. </div>
  1571. <div
  1572. class="worksDetailBox"
  1573. v-if="
  1574. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1575. "
  1576. >
  1577. <div
  1578. class="works"
  1579. style="
  1580. width: 200px;
  1581. height: 140px;
  1582. margin: 10px 10px 10px 0;
  1583. border-radius: 15px;
  1584. box-shadow: 0 0 6px 1px #dfdada;
  1585. "
  1586. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1587. :key="wIndex"
  1588. :class="w.type == 1 ? 'isTypeOne' : ''"
  1589. >
  1590. <div class="workImg">
  1591. <img :src="word2" @click="downloadFile(w.works)" alt />
  1592. <div
  1593. class="answerScore"
  1594. v-if="w.score"
  1595. @click.stop="openScore(w)"
  1596. :class="{
  1597. rightW:
  1598. w.userid == userid ||
  1599. tType == 1 ||
  1600. tType == 4 ||
  1601. w.ateacher == userid,
  1602. }"
  1603. >
  1604. {{ JSON.parse(w.score).wScore }}分
  1605. </div>
  1606. <div
  1607. class="answerScore"
  1608. @click.stop="openScore(w)"
  1609. v-else-if="courseDetail.userid == userid"
  1610. :class="{
  1611. rightW:
  1612. w.userid == userid ||
  1613. tType == 1 ||
  1614. tType == 4 ||
  1615. w.ateacher == userid,
  1616. }"
  1617. >
  1618. 评分
  1619. </div>
  1620. <img
  1621. class="deleteImg"
  1622. src="../../assets/deleteworks.png"
  1623. v-if="w.userid == userid || tType == 1 || tType == 4"
  1624. @click.stop="deleteWorks(w.wid)"
  1625. alt
  1626. />
  1627. </div>
  1628. <div class="comment" style="min-width: 200px">
  1629. <div class="worksName">
  1630. <div>{{ w.sName }}</div>
  1631. </div>
  1632. <div class="commentList">
  1633. <div class="commentList">
  1634. <div
  1635. class="commentImg"
  1636. @click="
  1637. isLikes(w.wid, userid, 1, null, w.isLikes)
  1638. "
  1639. >
  1640. <img
  1641. :src="w.isLikes == true ? likes : noLikes"
  1642. alt=""
  1643. />
  1644. </div>
  1645. <div>{{ w.likesCount }}</div>
  1646. </div>
  1647. <div class="commentList" style="margin-right: 15px">
  1648. <div
  1649. class="commentImg"
  1650. @click="commentOther(w, toolIndex, wIndex)"
  1651. >
  1652. <img
  1653. src="../../assets/icon/comment/comment.png"
  1654. alt=""
  1655. />
  1656. </div>
  1657. <div>{{ w.commentCount }}</div>
  1658. </div>
  1659. </div>
  1660. </div>
  1661. </div>
  1662. </div>
  1663. </div>
  1664. <div
  1665. v-if="
  1666. tType &&
  1667. ((tType == 2 && sIsOpen == true) ||
  1668. tType == 1 ||
  1669. tType == 4) &&
  1670. tool.tool.indexOf(57) != -1
  1671. "
  1672. class="worksBox"
  1673. >
  1674. <div
  1675. class="zuoyeYulan"
  1676. v-if="
  1677. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1678. "
  1679. >
  1680. <div class="worksTop">
  1681. <div>作业预览</div>
  1682. </div>
  1683. </div>
  1684. <div
  1685. class="worksDetailBox"
  1686. v-if="
  1687. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1688. "
  1689. >
  1690. <div
  1691. class="works"
  1692. style="
  1693. width: 200px;
  1694. height: 140px;
  1695. margin: 10px 10px 10px 0;
  1696. border-radius: 15px;
  1697. box-shadow: 0 0 6px 1px #dfdada;
  1698. "
  1699. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1700. :key="wIndex"
  1701. :class="w.type == 1 ? 'isTypeOne' : ''"
  1702. >
  1703. <div class="workImg">
  1704. <img
  1705. :src="word2"
  1706. @click="downloadFile(w.works)"
  1707. v-if="w.type == 12"
  1708. alt
  1709. />
  1710. <img
  1711. :src="word2"
  1712. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  1713. v-else-if="w.type == 15"
  1714. alt
  1715. />
  1716. <div
  1717. class="answerScore"
  1718. v-if="w.score"
  1719. @click.stop="openScore(w)"
  1720. :class="{
  1721. rightW:
  1722. w.userid == userid ||
  1723. tType == 1 ||
  1724. tType == 4 ||
  1725. w.ateacher == userid,
  1726. }"
  1727. >
  1728. {{ JSON.parse(w.score).wScore }}分
  1729. </div>
  1730. <div
  1731. class="answerScore"
  1732. @click.stop="openScore(w)"
  1733. v-else-if="courseDetail.userid == userid"
  1734. :class="{
  1735. rightW:
  1736. w.userid == userid ||
  1737. tType == 1 ||
  1738. tType == 4 ||
  1739. w.ateacher == userid,
  1740. }"
  1741. >
  1742. 评分
  1743. </div>
  1744. <img
  1745. class="deleteImg"
  1746. src="../../assets/deleteworks.png"
  1747. v-if="w.userid == userid || tType == 1 || tType == 4"
  1748. @click.stop="deleteWorks(w.wid)"
  1749. alt
  1750. />
  1751. </div>
  1752. <div class="comment" style="min-width: 200px">
  1753. <div class="worksName">
  1754. <div>{{ w.sName }}</div>
  1755. </div>
  1756. <div class="commentList">
  1757. <div class="commentList">
  1758. <div
  1759. class="commentImg"
  1760. @click="
  1761. isLikes(w.wid, userid, 1, null, w.isLikes)
  1762. "
  1763. >
  1764. <img
  1765. :src="w.isLikes == true ? likes : noLikes"
  1766. alt=""
  1767. />
  1768. </div>
  1769. <div>{{ w.likesCount }}</div>
  1770. </div>
  1771. <div class="commentList" style="margin-right: 15px">
  1772. <div
  1773. class="commentImg"
  1774. @click="commentOther(w, toolIndex, wIndex)"
  1775. >
  1776. <img
  1777. src="../../assets/icon/comment/comment.png"
  1778. alt=""
  1779. />
  1780. </div>
  1781. <div>{{ w.commentCount }}</div>
  1782. </div>
  1783. </div>
  1784. </div>
  1785. </div>
  1786. </div>
  1787. </div>
  1788. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  1789. <div
  1790. class="zuoyeYulan"
  1791. v-if="
  1792. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1793. "
  1794. >
  1795. <span>作业预览</span>
  1796. </div>
  1797. <div
  1798. class="worksDetailBox"
  1799. v-if="
  1800. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1801. "
  1802. >
  1803. <div
  1804. class="works"
  1805. style="
  1806. width: 200px;
  1807. height: 140px;
  1808. margin: 10px 10px 10px 0;
  1809. border-radius: 15px;
  1810. box-shadow: 0 0 6px 1px #dfdada;
  1811. "
  1812. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1813. :key="wIndex"
  1814. :class="w.type == 1 ? 'isTypeOne' : ''"
  1815. >
  1816. <div class="workImg" v-if="w.type == 0">
  1817. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1818. <img :src="w.works" @click="previewImg(w.works)" alt />
  1819. <div
  1820. class="answerScore"
  1821. v-if="w.score"
  1822. @click.stop="openScore(w)"
  1823. :class="{
  1824. rightW:
  1825. w.userid == userid ||
  1826. tType == 1 ||
  1827. tType == 4 ||
  1828. w.ateacher == userid,
  1829. }"
  1830. >
  1831. {{ JSON.parse(w.score).wScore }}分
  1832. </div>
  1833. <div
  1834. class="answerScore"
  1835. @click.stop="openScore(w)"
  1836. v-else-if="courseDetail.userid == userid"
  1837. :class="{
  1838. rightW:
  1839. w.userid == userid ||
  1840. tType == 1 ||
  1841. tType == 4 ||
  1842. w.ateacher == userid,
  1843. }"
  1844. >
  1845. 评分
  1846. </div>
  1847. <img
  1848. class="deleteImg"
  1849. src="../../assets/deleteworks.png"
  1850. v-if="w.userid == userid || tType == 1 || tType == 4"
  1851. @click.stop="deleteWorks(w.wid)"
  1852. alt
  1853. />
  1854. </div>
  1855. <div
  1856. class="workImg"
  1857. style="cursor: pointer"
  1858. v-if="w.type == 1"
  1859. >
  1860. <img :src="word" @click="openFile(w.works)" alt />
  1861. <!-- @click="openFile(w.works)" -->
  1862. <div
  1863. class="answerScore"
  1864. v-if="w.score"
  1865. @click.stop="openScore(w)"
  1866. :class="{
  1867. rightW:
  1868. w.userid == userid ||
  1869. tType == 1 ||
  1870. tType == 4 ||
  1871. w.ateacher == userid,
  1872. }"
  1873. >
  1874. {{ JSON.parse(w.score).wScore }}分
  1875. </div>
  1876. <div
  1877. class="answerScore"
  1878. @click.stop="openScore(w)"
  1879. v-else-if="courseDetail.userid == userid"
  1880. :class="{
  1881. rightW:
  1882. w.userid == userid ||
  1883. tType == 1 ||
  1884. tType == 4 ||
  1885. w.ateacher == userid,
  1886. }"
  1887. >
  1888. 评分
  1889. </div>
  1890. <img
  1891. class="deleteImg"
  1892. src="../../assets/deleteworks.png"
  1893. v-if="w.userid == userid || tType == 1 || tType == 4"
  1894. @click.stop="deleteWorks(w.wid)"
  1895. alt
  1896. />
  1897. </div>
  1898. <div class="workImg" v-if="w.type == 3">
  1899. <img
  1900. style="cursor: pointer"
  1901. :src="video"
  1902. @click="openVideo(w)"
  1903. alt
  1904. />
  1905. <!-- @click="openVideo(w.works)" -->
  1906. <div
  1907. class="answerScore"
  1908. v-if="w.score"
  1909. @click.stop="openScore(w)"
  1910. :class="{
  1911. rightW:
  1912. w.userid == userid ||
  1913. tType == 1 ||
  1914. tType == 4 ||
  1915. w.ateacher == userid,
  1916. }"
  1917. >
  1918. {{ JSON.parse(w.score).wScore }}分
  1919. </div>
  1920. <div
  1921. class="answerScore"
  1922. @click.stop="openScore(w)"
  1923. v-else-if="courseDetail.userid == userid"
  1924. :class="{
  1925. rightW:
  1926. w.userid == userid ||
  1927. tType == 1 ||
  1928. tType == 4 ||
  1929. w.ateacher == userid,
  1930. }"
  1931. >
  1932. 评分
  1933. </div>
  1934. <img
  1935. class="deleteImg"
  1936. src="../../assets/deleteworks.png"
  1937. v-if="w.userid == userid || tType == 1 || tType == 4"
  1938. @click.stop="deleteWorks(w.wid)"
  1939. alt
  1940. />
  1941. </div>
  1942. <div class="comment" style="min-width: 200px">
  1943. <div class="worksName">
  1944. <div
  1945. style="cursor: pointer"
  1946. @click="
  1947. openSname(w.sName, w.wid, toolIndex, w.userid)
  1948. "
  1949. >
  1950. {{ w.sName }}
  1951. </div>
  1952. </div>
  1953. <div class="commentList">
  1954. <div class="commentList">
  1955. <div
  1956. class="commentImg"
  1957. @click="
  1958. isLikes(w.wid, userid, 1, null, w.isLikes)
  1959. "
  1960. >
  1961. <img
  1962. :src="w.isLikes == true ? likes : noLikes"
  1963. alt=""
  1964. />
  1965. </div>
  1966. <div>{{ w.likesCount }}</div>
  1967. </div>
  1968. <div class="commentList" style="margin-right: 15px">
  1969. <div
  1970. class="commentImg"
  1971. @click="commentOther(w, toolIndex, wIndex)"
  1972. >
  1973. <img
  1974. src="../../assets/icon/comment/comment.png"
  1975. alt=""
  1976. />
  1977. </div>
  1978. <div>{{ w.commentCount }}</div>
  1979. </div>
  1980. </div>
  1981. </div>
  1982. </div>
  1983. </div>
  1984. </div>
  1985. <div
  1986. v-if="
  1987. tType &&
  1988. ((tType == 2 && sIsOpen == true) ||
  1989. tType == 1 ||
  1990. tType == 4) &&
  1991. tool.tool.indexOf(4) != -1
  1992. "
  1993. class="worksBox"
  1994. >
  1995. <div
  1996. class="zuoyeYulan"
  1997. v-if="
  1998. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1999. "
  2000. >
  2001. <div class="worksTop">
  2002. <div>作业预览</div>
  2003. </div>
  2004. </div>
  2005. <div>
  2006. <div
  2007. class="worksDetailBox"
  2008. v-if="
  2009. worksTeacher.length &&
  2010. worksTeacher[toolIndex].length > 0
  2011. "
  2012. >
  2013. <div
  2014. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2015. :key="wIndex"
  2016. class="isWorksName2"
  2017. @click="
  2018. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2019. "
  2020. >
  2021. {{ w.sName }}
  2022. <img
  2023. class="deleteImg deleteImg2"
  2024. src="../../assets/deleteworks.png"
  2025. v-if="w.userid == userid || tType == 1 || tType == 4"
  2026. @click.stop="deleteWorks(w.wid)"
  2027. alt
  2028. />
  2029. </div>
  2030. </div>
  2031. </div>
  2032. </div>
  2033. <div
  2034. v-if="
  2035. tType &&
  2036. ((tType == 2 && sIsOpen == true) ||
  2037. tType == 1 ||
  2038. tType == 4) &&
  2039. tool.tool.indexOf(45) != -1
  2040. "
  2041. class="worksBox"
  2042. >
  2043. <div
  2044. class="zuoyeYulan"
  2045. v-if="
  2046. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2047. "
  2048. >
  2049. <div class="worksTop">
  2050. <div>作业预览</div>
  2051. </div>
  2052. </div>
  2053. <div>
  2054. <div
  2055. class="worksDetailBox"
  2056. v-if="
  2057. worksTeacher.length &&
  2058. worksTeacher[toolIndex].length > 0
  2059. "
  2060. >
  2061. <div
  2062. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2063. :key="wIndex"
  2064. class="isWorksName2"
  2065. @click="
  2066. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2067. "
  2068. >
  2069. {{ w.sName }}
  2070. <img
  2071. class="deleteImg deleteImg2"
  2072. src="../../assets/deleteworks.png"
  2073. v-if="w.userid == userid || tType == 1 || tType == 4"
  2074. @click.stop="deleteWorks(w.wid)"
  2075. alt
  2076. />
  2077. </div>
  2078. </div>
  2079. </div>
  2080. </div>
  2081. <div
  2082. v-if="
  2083. tType &&
  2084. ((tType == 2 && sIsOpen == true) ||
  2085. tType == 1 ||
  2086. tType == 4) &&
  2087. tool.tool.indexOf(15) != -1
  2088. "
  2089. class="worksBox"
  2090. >
  2091. <div
  2092. class="zuoyeYulan"
  2093. v-if="
  2094. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2095. "
  2096. >
  2097. <div class="worksTop">
  2098. <div>作业预览</div>
  2099. </div>
  2100. </div>
  2101. <div
  2102. class="worksDetailBox"
  2103. v-if="
  2104. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2105. "
  2106. >
  2107. <div
  2108. class="works"
  2109. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2110. :key="wIndex"
  2111. >
  2112. <div
  2113. class="workImg"
  2114. style="
  2115. border-radius: 15px;
  2116. box-shadow: #eee 0px 0px 5px 5px;
  2117. "
  2118. >
  2119. <!-- <img
  2120. src="../../assets/icon/works/noImg.png"
  2121. @click="openTools(15, toolIndex, taskCount, w.works)"
  2122. alt=""
  2123. />-->
  2124. <div
  2125. class="answerBg"
  2126. style="border-radius: 15px 15px 0 0"
  2127. @click="commentOther(w, toolIndex, wIndex)"
  2128. >
  2129. <!-- <div>{{ w.sName }}</div> -->
  2130. <div class="answerContent">
  2131. {{ JSON.parse(w.works)[0].answer }}
  2132. </div>
  2133. <div
  2134. class="answerScore"
  2135. v-if="w.score"
  2136. @click.stop="openScore(w)"
  2137. :class="{
  2138. rightW:
  2139. w.userid == userid || tType == 1 || tType == 4,
  2140. }"
  2141. >
  2142. {{ JSON.parse(w.score).wScore }}分
  2143. </div>
  2144. <div
  2145. class="answerScore"
  2146. @click.stop="openScore(w)"
  2147. v-else-if="courseDetail.userid == userid"
  2148. :class="{
  2149. rightW:
  2150. w.userid == userid || tType == 1 || tType == 4,
  2151. }"
  2152. >
  2153. 评分
  2154. </div>
  2155. <img
  2156. class="deleteImg"
  2157. src="../../assets/deleteworks.png"
  2158. v-if="
  2159. w.userid == userid || tType == 1 || tType == 4
  2160. "
  2161. @click.stop="deleteWorks(w.wid)"
  2162. alt
  2163. />
  2164. </div>
  2165. <div class="comment">
  2166. <div class="worksName">
  2167. <div>{{ w.sName }}</div>
  2168. </div>
  2169. <div class="commentList">
  2170. <div
  2171. class="commentImg"
  2172. @click="
  2173. isLikes(w.wid, userid, 1, null, w.isLikes)
  2174. "
  2175. >
  2176. <img
  2177. :src="w.isLikes == true ? likes : noLikes"
  2178. alt=""
  2179. />
  2180. </div>
  2181. <div>{{ w.likesCount }}</div>
  2182. </div>
  2183. <div class="commentList" style="margin-right: 15px">
  2184. <div
  2185. class="commentImg"
  2186. @click="commentOther(w, toolIndex, wIndex)"
  2187. >
  2188. <img
  2189. src="../../assets/icon/comment/comment.png"
  2190. alt=""
  2191. />
  2192. </div>
  2193. <div>{{ w.commentCount }}</div>
  2194. </div>
  2195. </div>
  2196. </div>
  2197. </div>
  2198. </div>
  2199. </div>
  2200. <div
  2201. v-if="
  2202. tType &&
  2203. ((tType == 2 && sIsOpen == true) ||
  2204. tType == 1 ||
  2205. tType == 4) &&
  2206. tool.tool.indexOf(1) != -1
  2207. "
  2208. class="worksBox"
  2209. >
  2210. <div
  2211. class="zuoyeYulan"
  2212. v-if="
  2213. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2214. "
  2215. >
  2216. <div class="worksTop">
  2217. <div>作业预览</div>
  2218. </div>
  2219. </div>
  2220. <div
  2221. class="worksDetailBox"
  2222. v-if="
  2223. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2224. "
  2225. >
  2226. <div
  2227. class="works"
  2228. style="
  2229. width: 200px;
  2230. height: 140px;
  2231. margin: 10px 10px 10px 0;
  2232. border-radius: 15px;
  2233. box-shadow: 0 0 6px 1px #dfdada;
  2234. "
  2235. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2236. :key="wIndex"
  2237. >
  2238. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2239. <div class="workImg">
  2240. <img :src="w.works" @click="previewImg(w.works)" alt />
  2241. <div
  2242. class="answerScore"
  2243. v-if="w.score"
  2244. @click.stop="openScore(w)"
  2245. :class="{
  2246. rightW:
  2247. w.userid == userid || tType == 1 || tType == 4,
  2248. }"
  2249. >
  2250. {{ JSON.parse(w.score).wScore }}分
  2251. </div>
  2252. <div
  2253. class="answerScore"
  2254. @click.stop="openScore(w)"
  2255. v-else-if="courseDetail.userid == userid"
  2256. :class="{
  2257. rightW:
  2258. w.userid == userid || tType == 1 || tType == 4,
  2259. }"
  2260. >
  2261. 评分
  2262. </div>
  2263. <img
  2264. class="deleteImg"
  2265. src="../../assets/deleteworks.png"
  2266. v-if="w.userid == userid || tType == 1 || tType == 4"
  2267. @click.stop="deleteWorks(w.wid)"
  2268. alt
  2269. />
  2270. </div>
  2271. <div class="comment" style="min-width: 200px">
  2272. <div class="worksName">
  2273. <div>{{ w.sName }}</div>
  2274. </div>
  2275. <div class="commentList">
  2276. <div class="commentList">
  2277. <div
  2278. class="commentImg"
  2279. @click="
  2280. isLikes(w.wid, userid, 1, null, w.isLikes)
  2281. "
  2282. >
  2283. <img
  2284. :src="w.isLikes == true ? likes : noLikes"
  2285. alt=""
  2286. />
  2287. </div>
  2288. <div>{{ w.likesCount }}</div>
  2289. </div>
  2290. <div class="commentList" style="margin-right: 15px">
  2291. <div
  2292. class="commentImg"
  2293. @click="commentOther(w, toolIndex, wIndex)"
  2294. >
  2295. <img
  2296. src="../../assets/icon/comment/comment.png"
  2297. alt=""
  2298. />
  2299. </div>
  2300. <div>{{ w.commentCount }}</div>
  2301. </div>
  2302. </div>
  2303. </div>
  2304. </div>
  2305. </div>
  2306. </div>
  2307. <div
  2308. v-if="
  2309. tType &&
  2310. ((tType == 2 && sIsOpen == true) ||
  2311. tType == 1 ||
  2312. tType == 4) &&
  2313. tool.tool.indexOf(3) != -1
  2314. "
  2315. class="worksBox"
  2316. >
  2317. <div
  2318. class="zuoyeYulan"
  2319. v-if="
  2320. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2321. "
  2322. >
  2323. <div class="worksTop">
  2324. <div>作业预览</div>
  2325. </div>
  2326. </div>
  2327. <div
  2328. class="worksDetailBox"
  2329. v-if="
  2330. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2331. "
  2332. >
  2333. <div
  2334. class="works"
  2335. style="
  2336. width: 200px;
  2337. height: 140px;
  2338. margin: 10px 10px 10px 0;
  2339. border-radius: 15px;
  2340. box-shadow: 0 0 6px 1px #dfdada;
  2341. "
  2342. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2343. :key="wIndex"
  2344. >
  2345. <!-- @click="previewImg(w.works)" -->
  2346. <div class="workImg">
  2347. <img :src="w.works" @click="previewImg(w.works)" alt />
  2348. <div
  2349. class="answerScore"
  2350. v-if="w.score"
  2351. @click.stop="openScore(w)"
  2352. :class="{
  2353. rightW:
  2354. w.userid == userid || tType == 1 || tType == 4,
  2355. }"
  2356. >
  2357. {{ JSON.parse(w.score).wScore }}分
  2358. </div>
  2359. <div
  2360. class="answerScore"
  2361. @click.stop="openScore(w)"
  2362. v-else-if="courseDetail.userid == userid"
  2363. :class="{
  2364. rightW:
  2365. w.userid == userid || tType == 1 || tType == 4,
  2366. }"
  2367. >
  2368. 评分
  2369. </div>
  2370. <img
  2371. class="deleteImg"
  2372. src="../../assets/deleteworks.png"
  2373. v-if="w.userid == userid || tType == 1 || tType == 4"
  2374. @click.stop="deleteWorks(w.wid)"
  2375. alt
  2376. />
  2377. </div>
  2378. <div class="comment" style="min-width: 200px">
  2379. <div class="worksName">
  2380. <div>{{ w.sName }}</div>
  2381. </div>
  2382. <div class="commentList">
  2383. <div class="commentList">
  2384. <div
  2385. class="commentImg"
  2386. @click="
  2387. isLikes(w.wid, userid, 1, null, w.isLikes)
  2388. "
  2389. >
  2390. <img
  2391. :src="w.isLikes == true ? likes : noLikes"
  2392. alt=""
  2393. />
  2394. </div>
  2395. <div>{{ w.likesCount }}</div>
  2396. </div>
  2397. <div class="commentList" style="margin-right: 15px">
  2398. <div
  2399. class="commentImg"
  2400. @click="commentOther(w, toolIndex, wIndex)"
  2401. >
  2402. <img
  2403. src="../../assets/icon/comment/comment.png"
  2404. alt=""
  2405. />
  2406. </div>
  2407. <div>{{ w.commentCount }}</div>
  2408. </div>
  2409. </div>
  2410. </div>
  2411. </div>
  2412. </div>
  2413. </div>
  2414. <div
  2415. v-if="
  2416. tType &&
  2417. ((tType == 2 && sIsOpen == true) ||
  2418. tType == 1 ||
  2419. tType == 4) &&
  2420. tool.tool.indexOf(6) != -1
  2421. "
  2422. class="worksBox"
  2423. >
  2424. <div
  2425. class="zuoyeYulan"
  2426. v-if="
  2427. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2428. "
  2429. >
  2430. <div class="worksTop">
  2431. <div>作业预览</div>
  2432. </div>
  2433. </div>
  2434. <div
  2435. class="worksDetailBox"
  2436. v-if="
  2437. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2438. "
  2439. >
  2440. <div
  2441. class="works"
  2442. style="
  2443. width: 200px;
  2444. height: 140px;
  2445. margin: 10px 10px 10px 0;
  2446. border-radius: 15px;
  2447. box-shadow: 0 0 6px 1px #dfdada;
  2448. "
  2449. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2450. :key="wIndex"
  2451. >
  2452. <!-- @click="previewImg(w.works)" -->
  2453. <div class="workImg">
  2454. <img :src="w.works" @click="previewImg(w.works)" alt />
  2455. <div
  2456. class="answerScore"
  2457. v-if="w.score"
  2458. @click.stop="openScore(w)"
  2459. :class="{
  2460. rightW:
  2461. w.userid == userid || tType == 1 || tType == 4,
  2462. }"
  2463. >
  2464. {{ JSON.parse(w.score).wScore }}分
  2465. </div>
  2466. <div
  2467. class="answerScore"
  2468. @click.stop="openScore(w)"
  2469. v-else-if="courseDetail.userid == userid"
  2470. :class="{
  2471. rightW:
  2472. w.userid == userid || tType == 1 || tType == 4,
  2473. }"
  2474. >
  2475. 评分
  2476. </div>
  2477. <img
  2478. class="deleteImg"
  2479. src="../../assets/deleteworks.png"
  2480. v-if="w.userid == userid || tType == 1 || tType == 4"
  2481. @click.stop="deleteWorks(w.wid)"
  2482. alt
  2483. />
  2484. </div>
  2485. <div class="comment" style="min-width: 200px">
  2486. <div class="worksName">
  2487. <div>{{ w.sName }}</div>
  2488. </div>
  2489. <div class="commentList">
  2490. <div class="commentList">
  2491. <div
  2492. class="commentImg"
  2493. @click="
  2494. isLikes(w.wid, userid, 1, null, w.isLikes)
  2495. "
  2496. >
  2497. <img
  2498. :src="w.isLikes == true ? likes : noLikes"
  2499. alt=""
  2500. />
  2501. </div>
  2502. <div>{{ w.likesCount }}</div>
  2503. </div>
  2504. <div class="commentList" style="margin-right: 15px">
  2505. <div
  2506. class="commentImg"
  2507. @click="commentOther(w, toolIndex, wIndex)"
  2508. >
  2509. <img
  2510. src="../../assets/icon/comment/comment.png"
  2511. alt=""
  2512. />
  2513. </div>
  2514. <div>{{ w.commentCount }}</div>
  2515. </div>
  2516. </div>
  2517. </div>
  2518. </div>
  2519. </div>
  2520. </div>
  2521. <div
  2522. v-if="
  2523. tType &&
  2524. ((tType == 2 && sIsOpen == true) ||
  2525. tType == 1 ||
  2526. tType == 4) &&
  2527. tool.tool.indexOf(7) != -1
  2528. "
  2529. class="worksBox"
  2530. >
  2531. <div
  2532. class="zuoyeYulan"
  2533. v-if="
  2534. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2535. "
  2536. >
  2537. <div class="worksTop">
  2538. <div>作业预览</div>
  2539. </div>
  2540. </div>
  2541. <div
  2542. class="worksDetailBox"
  2543. v-if="
  2544. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2545. "
  2546. >
  2547. <div
  2548. class="works"
  2549. style="
  2550. width: 200px;
  2551. height: 140px;
  2552. margin: 10px 10px 10px 0;
  2553. border-radius: 15px;
  2554. box-shadow: 0 0 6px 1px #dfdada;
  2555. "
  2556. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2557. :key="wIndex"
  2558. >
  2559. <!-- @click="previewImg(w.works)" -->
  2560. <div class="workImg">
  2561. <img :src="w.works" @click="previewImg(w.works)" alt />
  2562. <div
  2563. class="answerScore"
  2564. v-if="w.score"
  2565. @click.stop="openScore(w)"
  2566. :class="{
  2567. rightW:
  2568. w.userid == userid || tType == 1 || tType == 4,
  2569. }"
  2570. >
  2571. {{ JSON.parse(w.score).wScore }}分
  2572. </div>
  2573. <div
  2574. class="answerScore"
  2575. @click.stop="openScore(w)"
  2576. v-else-if="courseDetail.userid == userid"
  2577. :class="{
  2578. rightW:
  2579. w.userid == userid || tType == 1 || tType == 4,
  2580. }"
  2581. >
  2582. 评分
  2583. </div>
  2584. <img
  2585. class="deleteImg"
  2586. src="../../assets/deleteworks.png"
  2587. v-if="w.userid == userid || tType == 1 || tType == 4"
  2588. @click.stop="deleteWorks(w.wid)"
  2589. alt
  2590. />
  2591. </div>
  2592. <div class="comment" style="min-width: 200px">
  2593. <div class="worksName">
  2594. <div>{{ w.sName }}</div>
  2595. </div>
  2596. <div class="commentList">
  2597. <div class="commentList">
  2598. <div
  2599. class="commentImg"
  2600. @click="
  2601. isLikes(w.wid, userid, 1, null, w.isLikes)
  2602. "
  2603. >
  2604. <img
  2605. :src="w.isLikes == true ? likes : noLikes"
  2606. alt=""
  2607. />
  2608. </div>
  2609. <div>{{ w.likesCount }}</div>
  2610. </div>
  2611. <div class="commentList" style="margin-right: 15px">
  2612. <div
  2613. class="commentImg"
  2614. @click="commentOther(w, toolIndex, wIndex)"
  2615. >
  2616. <img
  2617. src="../../assets/icon/comment/comment.png"
  2618. alt=""
  2619. />
  2620. </div>
  2621. <div>{{ w.commentCount }}</div>
  2622. </div>
  2623. </div>
  2624. </div>
  2625. </div>
  2626. </div>
  2627. </div>
  2628. <div
  2629. v-if="
  2630. tType &&
  2631. ((tType == 2 && sIsOpen == true) ||
  2632. tType == 1 ||
  2633. tType == 4) &&
  2634. tool.tool.indexOf(26) != -1
  2635. "
  2636. class="worksBox"
  2637. >
  2638. <div
  2639. class="zuoyeYulan"
  2640. v-if="
  2641. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2642. "
  2643. >
  2644. <div class="worksTop">
  2645. <div>作业预览</div>
  2646. </div>
  2647. </div>
  2648. <div
  2649. class="worksDetailBox"
  2650. v-if="
  2651. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2652. "
  2653. >
  2654. <div
  2655. class="works"
  2656. style="width: 240px; height: 140px; overflow: hidden"
  2657. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2658. :key="wIndex"
  2659. :class="w.type == 1 ? 'isTypeOne' : ''"
  2660. >
  2661. <div class="workImg" v-if="w.type == 0">
  2662. <img :src="w.works" @click="previewImg(w.works)" alt />
  2663. <img
  2664. class="deleteImg"
  2665. src="../../assets/deleteworks.png"
  2666. v-if="w.userid == userid || tType == 1 || tType == 4"
  2667. @click.stop="deleteWorks(w.wid)"
  2668. alt
  2669. />
  2670. </div>
  2671. <div class="workImg" v-if="w.type == 1">
  2672. <img :src="word" @click="openFile(w.works)" alt />
  2673. <img
  2674. class="deleteImg"
  2675. src="../../assets/deleteworks.png"
  2676. v-if="w.userid == userid || tType == 1 || tType == 4"
  2677. @click.stop="deleteWorks(w.wid)"
  2678. alt
  2679. />
  2680. </div>
  2681. <div class="worksName">
  2682. <div>{{ w.sName }}</div>
  2683. </div>
  2684. </div>
  2685. </div>
  2686. </div>
  2687. <div
  2688. v-if="
  2689. tType &&
  2690. ((tType == 2 && sIsOpen == true) ||
  2691. tType == 1 ||
  2692. tType == 4) &&
  2693. tool.tool.indexOf(40) != -1
  2694. "
  2695. class="worksBox"
  2696. >
  2697. <div
  2698. class="zuoyeYulan"
  2699. v-if="
  2700. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2701. "
  2702. >
  2703. <div class="worksTop">
  2704. <div>作业预览</div>
  2705. </div>
  2706. </div>
  2707. <div
  2708. class="worksDetailBox"
  2709. v-if="
  2710. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2711. "
  2712. >
  2713. <div
  2714. class="works"
  2715. style="
  2716. width: 200px;
  2717. height: 140px;
  2718. margin: 10px 10px 10px 0;
  2719. border-radius: 15px;
  2720. box-shadow: 0 0 6px 1px #dfdada;
  2721. "
  2722. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2723. :key="wIndex"
  2724. :class="w.type == 1 ? 'isTypeOne' : ''"
  2725. >
  2726. <div class="workImg">
  2727. <img
  2728. src="../../assets/icon/works/noImg.png"
  2729. @click="openPj(w.works, toolIndex)"
  2730. alt
  2731. />
  2732. <img
  2733. class="deleteImg"
  2734. src="../../assets/deleteworks.png"
  2735. v-if="w.userid == userid || tType == 1 || tType == 4"
  2736. @click.stop="deleteWorks(w.wid)"
  2737. alt
  2738. />
  2739. </div>
  2740. <div class="comment" style="min-width: 200px">
  2741. <div class="worksName">
  2742. <div>{{ w.sName }}</div>
  2743. </div>
  2744. <div class="commentList">
  2745. <div class="commentList">
  2746. <div
  2747. class="commentImg"
  2748. @click="
  2749. isLikes(w.wid, userid, 1, null, w.isLikes)
  2750. "
  2751. >
  2752. <img
  2753. :src="w.isLikes == true ? likes : noLikes"
  2754. alt=""
  2755. />
  2756. </div>
  2757. <div>{{ w.likesCount }}</div>
  2758. </div>
  2759. <div class="commentList" style="margin-right: 15px">
  2760. <div
  2761. class="commentImg"
  2762. @click="commentOther(w, toolIndex, wIndex)"
  2763. >
  2764. <img
  2765. src="../../assets/icon/comment/comment.png"
  2766. alt=""
  2767. />
  2768. </div>
  2769. <div>{{ w.commentCount }}</div>
  2770. </div>
  2771. </div>
  2772. </div>
  2773. </div>
  2774. </div>
  2775. </div>
  2776. <div
  2777. v-if="
  2778. tType &&
  2779. ((tType == 2 && sIsOpen == true) ||
  2780. tType == 1 ||
  2781. tType == 4) &&
  2782. tool.tool.indexOf(41) != -1
  2783. "
  2784. class="worksBox"
  2785. >
  2786. <div
  2787. class="zuoyeYulan"
  2788. v-if="
  2789. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2790. "
  2791. >
  2792. <div class="worksTop">
  2793. <div>作业预览</div>
  2794. </div>
  2795. </div>
  2796. <div
  2797. class="worksDetailBox"
  2798. v-if="
  2799. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2800. "
  2801. >
  2802. <div
  2803. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2804. :key="wIndex"
  2805. class="isWorksName2"
  2806. @click="openXz(w, toolIndex)"
  2807. >
  2808. {{ w.sName }}
  2809. <img
  2810. class="deleteImg deleteImg2"
  2811. src="../../assets/deleteworks.png"
  2812. v-if="w.userid == userid || tType == 1 || tType == 4"
  2813. @click.stop="deleteWorks(w.wid)"
  2814. alt
  2815. />
  2816. </div>
  2817. </div>
  2818. </div>
  2819. <div
  2820. v-if="
  2821. tType &&
  2822. ((tType == 2 && sIsOpen == true) ||
  2823. tType == 1 ||
  2824. tType == 4) &&
  2825. tool.tool.indexOf(47) != -1
  2826. "
  2827. class="worksBox"
  2828. >
  2829. <div
  2830. class="zuoyeYulan"
  2831. v-if="
  2832. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2833. "
  2834. >
  2835. <div class="worksTop">
  2836. <div>作业预览</div>
  2837. </div>
  2838. </div>
  2839. <div
  2840. class="worksDetailBox"
  2841. v-if="
  2842. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2843. "
  2844. >
  2845. <!-- @click="openXz(w, toolIndex)" -->
  2846. <div
  2847. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2848. :key="wIndex"
  2849. class="isWorksName2"
  2850. @click="openSen(w, toolIndex)"
  2851. >
  2852. {{ w.sName }}
  2853. <img
  2854. class="deleteImg deleteImg2"
  2855. src="../../assets/deleteworks.png"
  2856. v-if="w.userid == userid || tType == 1 || tType == 4"
  2857. @click.stop="deleteWorks(w.wid)"
  2858. alt
  2859. />
  2860. </div>
  2861. </div>
  2862. </div>
  2863. <div
  2864. v-if="
  2865. tType &&
  2866. ((tType == 2 && sIsOpen == true) ||
  2867. tType == 1 ||
  2868. tType == 4) &&
  2869. tool.tool.indexOf(48) != -1
  2870. "
  2871. class="worksBox"
  2872. >
  2873. <div
  2874. class="zuoyeYulan"
  2875. v-if="
  2876. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2877. "
  2878. >
  2879. <div class="worksTop">
  2880. <div>作业预览</div>
  2881. </div>
  2882. </div>
  2883. <div
  2884. class="worksDetailBox"
  2885. v-if="
  2886. worksTeacher.length && worksTeacher[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 worksTeacher[toolIndex]"
  2899. :key="wIndex"
  2900. :class="w.type == 1 ? 'isTypeOne' : ''"
  2901. >
  2902. <div class="workImg">
  2903. <img :src="word" @click="openTable(w)" alt />
  2904. <!-- @click="openFile(w.works)" -->
  2905. <div
  2906. class="answerScore"
  2907. v-if="w.score"
  2908. @click.stop="openScore(w)"
  2909. :class="{
  2910. rightW:
  2911. w.userid == userid ||
  2912. tType == 1 ||
  2913. tType == 4 ||
  2914. w.ateacher == userid,
  2915. }"
  2916. >
  2917. {{ JSON.parse(w.score).wScore }}分
  2918. </div>
  2919. <div
  2920. class="answerScore"
  2921. @click.stop="openScore(w)"
  2922. v-else-if="courseDetail.userid == userid"
  2923. :class="{
  2924. rightW:
  2925. w.userid == userid ||
  2926. tType == 1 ||
  2927. tType == 4 ||
  2928. w.ateacher == userid,
  2929. }"
  2930. >
  2931. 评分
  2932. </div>
  2933. <img
  2934. class="deleteImg"
  2935. src="../../assets/deleteworks.png"
  2936. v-if="w.userid == userid || tType == 1 || tType == 4"
  2937. @click.stop="deleteWorks(w.wid)"
  2938. alt
  2939. />
  2940. </div>
  2941. <div class="comment" style="min-width: 200px">
  2942. <div class="worksName">
  2943. <div>{{ w.sName }}</div>
  2944. </div>
  2945. <div class="commentList">
  2946. <div class="commentList">
  2947. <div
  2948. class="commentImg"
  2949. @click="
  2950. isLikes(w.wid, userid, 1, null, w.isLikes)
  2951. "
  2952. >
  2953. <img
  2954. :src="w.isLikes == true ? likes : noLikes"
  2955. alt=""
  2956. />
  2957. </div>
  2958. <div>{{ w.likesCount }}</div>
  2959. </div>
  2960. <div class="commentList" style="margin-right: 15px">
  2961. <div
  2962. class="commentImg"
  2963. @click="commentOther(w, toolIndex, wIndex)"
  2964. >
  2965. <img
  2966. src="../../assets/icon/comment/comment.png"
  2967. alt=""
  2968. />
  2969. </div>
  2970. <div>{{ w.commentCount }}</div>
  2971. </div>
  2972. </div>
  2973. </div>
  2974. </div>
  2975. </div>
  2976. </div>
  2977. <div
  2978. v-if="
  2979. tType &&
  2980. ((tType == 2 && sIsOpen == true) ||
  2981. tType == 1 ||
  2982. tType == 4) &&
  2983. tool.tool.indexOf(52) != -1
  2984. "
  2985. class="worksBox"
  2986. >
  2987. <div
  2988. class="zuoyeYulan"
  2989. v-if="
  2990. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2991. "
  2992. >
  2993. <div class="worksTop">
  2994. <div>作业预览</div>
  2995. </div>
  2996. </div>
  2997. <div
  2998. class="worksDetailBox"
  2999. v-if="
  3000. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3001. "
  3002. >
  3003. <div
  3004. class="works"
  3005. style="
  3006. width: 200px;
  3007. height: 140px;
  3008. margin: 10px 10px 10px 0;
  3009. border-radius: 15px;
  3010. box-shadow: 0 0 6px 1px #dfdada;
  3011. "
  3012. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3013. :key="wIndex"
  3014. :class="w.type == 1 ? 'isTypeOne' : ''"
  3015. >
  3016. <div class="workImg">
  3017. <img :src="word" @click="openWord(w)" alt />
  3018. <!-- @click="openFile(w.works)" -->
  3019. <div
  3020. class="answerScore"
  3021. v-if="w.score"
  3022. @click.stop="openScore(w)"
  3023. :class="{
  3024. rightW:
  3025. w.userid == userid ||
  3026. tType == 1 ||
  3027. tType == 4 ||
  3028. w.ateacher == userid,
  3029. }"
  3030. >
  3031. {{ JSON.parse(w.score).wScore }}分
  3032. </div>
  3033. <div
  3034. class="answerScore"
  3035. @click.stop="openScore(w)"
  3036. v-else-if="courseDetail.userid == userid"
  3037. :class="{
  3038. rightW:
  3039. w.userid == userid ||
  3040. tType == 1 ||
  3041. tType == 4 ||
  3042. w.ateacher == userid,
  3043. }"
  3044. >
  3045. 评分
  3046. </div>
  3047. <img
  3048. class="deleteImg"
  3049. src="../../assets/deleteworks.png"
  3050. v-if="w.userid == userid || tType == 1 || tType == 4"
  3051. @click.stop="deleteWorks(w.wid)"
  3052. alt
  3053. />
  3054. </div>
  3055. <div class="comment" style="min-width: 200px">
  3056. <div class="worksName">
  3057. <div>{{ w.sName }}</div>
  3058. </div>
  3059. <div class="commentList">
  3060. <div class="commentList">
  3061. <div
  3062. class="commentImg"
  3063. @click="
  3064. isLikes(w.wid, userid, 1, null, w.isLikes)
  3065. "
  3066. >
  3067. <img
  3068. :src="w.isLikes == true ? likes : noLikes"
  3069. alt=""
  3070. />
  3071. </div>
  3072. <div>{{ w.likesCount }}</div>
  3073. </div>
  3074. <div class="commentList" style="margin-right: 15px">
  3075. <div
  3076. class="commentImg"
  3077. @click="commentOther(w, toolIndex, wIndex)"
  3078. >
  3079. <img
  3080. src="../../assets/icon/comment/comment.png"
  3081. alt=""
  3082. />
  3083. </div>
  3084. <div>{{ w.commentCount }}</div>
  3085. </div>
  3086. </div>
  3087. </div>
  3088. </div>
  3089. </div>
  3090. </div>
  3091. </div>
  3092. </div>
  3093. <div class="vedioBox">
  3094. <div
  3095. v-if="
  3096. tType &&
  3097. ((tType == 2 && sIsOpen == true) ||
  3098. tType == 1 ||
  3099. tType == 4) &&
  3100. tool.tool.indexOf(4) != -1 &&
  3101. worksStudent.length &&
  3102. worksStudent[toolIndex].length &&
  3103. (tool.askJson[0].answer || tool.askJson[0].answer === 0) &&
  3104. checkJson[toolIndex].length
  3105. "
  3106. class="xuan_right_box"
  3107. >
  3108. <div
  3109. class="tool_right_box"
  3110. v-for="(item, index) in tool.askJson"
  3111. :key="index"
  3112. >
  3113. <div>
  3114. <span style="word-break: break-all; white-space: normal">{{
  3115. index + 1 + "、" + item.askstitle
  3116. }}</span>
  3117. </div>
  3118. <div class="right_box_xuan">
  3119. <span>正确率</span>
  3120. <span>{{
  3121. (checkJson[toolIndex][index].right
  3122. ? checkJson[toolIndex][index].right
  3123. : 0) + "%"
  3124. }}</span>
  3125. </div>
  3126. </div>
  3127. </div>
  3128. <div
  3129. class="xuan_right_box"
  3130. style="background: unset; padding: 0 10px"
  3131. v-if="
  3132. tType &&
  3133. ((tType == 2 && sIsOpen == true) ||
  3134. tType == 1 ||
  3135. tType == 4) &&
  3136. tool.tool.indexOf(4) != -1 &&
  3137. worksStudent.length &&
  3138. worksStudent[toolIndex].length
  3139. "
  3140. >
  3141. <AskStatic
  3142. v-if="
  3143. worksStudent.length && worksStudent[toolIndex].length > 0
  3144. "
  3145. :askJSON="tool"
  3146. :checkJson="checkJson[toolIndex]"
  3147. ></AskStatic>
  3148. </div>
  3149. <div
  3150. v-if="
  3151. tType &&
  3152. ((tType == 2 && sIsOpen == true) ||
  3153. tType == 1 ||
  3154. tType == 4) &&
  3155. tool.tool.indexOf(45) != -1 &&
  3156. worksStudent.length &&
  3157. worksStudent[toolIndex].length &&
  3158. (tool.testJson.testJson[0].answer ||
  3159. tool.testJson.testJson[0].answer === 0) &&
  3160. checkJson[toolIndex].length
  3161. "
  3162. class="xuan_right_box"
  3163. >
  3164. <div
  3165. class="tool_right_box"
  3166. v-for="(item, index) in tool.testJson.testJson"
  3167. :key="index"
  3168. >
  3169. <div class="right_box_xuan" style="margin-right: 10px">
  3170. <span>正确率</span>
  3171. <span>{{
  3172. (checkJson[toolIndex][index].right
  3173. ? checkJson[toolIndex][index].right
  3174. : 0) + "%"
  3175. }}</span>
  3176. </div>
  3177. <div>
  3178. <span style="word-break: break-all; white-space: normal">{{
  3179. index + 1 + "、" + item.teststitle
  3180. }}</span>
  3181. </div>
  3182. </div>
  3183. </div>
  3184. <div
  3185. class="xuan_right_box"
  3186. style="background: unset; padding: 0 10px"
  3187. v-if="
  3188. tType &&
  3189. ((tType == 2 && sIsOpen == true) ||
  3190. tType == 1 ||
  3191. tType == 4) &&
  3192. tool.tool.indexOf(45) != -1 &&
  3193. worksStudent.length &&
  3194. worksStudent[toolIndex].length
  3195. "
  3196. >
  3197. <AskStatic2
  3198. v-if="
  3199. worksStudent.length && worksStudent[toolIndex].length > 0
  3200. "
  3201. :askJSON="tool"
  3202. :checkJson="checkJson[toolIndex]"
  3203. ></AskStatic2>
  3204. </div>
  3205. <div
  3206. v-if="
  3207. tType &&
  3208. ((tType == 2 && sIsOpen == true) ||
  3209. tType == 1 ||
  3210. tType == 4) &&
  3211. tool.tool.indexOf(41) != -1
  3212. "
  3213. >
  3214. <AnswerData2
  3215. v-if="
  3216. worksStudent.length && worksStudent[toolIndex].length > 0
  3217. "
  3218. :problemJson="tool.selectJson.answer"
  3219. :people="worksStudent[toolIndex]"
  3220. ></AnswerData2>
  3221. </div>
  3222. <div
  3223. v-if="
  3224. tType &&
  3225. ((tType == 2 && sIsOpen == true) ||
  3226. tType == 1 ||
  3227. tType == 4) &&
  3228. tool.tool.indexOf(47) != -1
  3229. "
  3230. >
  3231. <AnswerData
  3232. v-if="
  3233. checkJson[toolIndex].length &&
  3234. (tool.sentenceList || tool.sentenceList.length > 0)
  3235. "
  3236. :people="checkJson[toolIndex]"
  3237. ></AnswerData>
  3238. </div>
  3239. </div>
  3240. <div
  3241. class="vedioBox"
  3242. v-if="
  3243. noWorksS[toolIndex].length &&
  3244. arrayToArray(tool.tool, isWorkTool).length &&
  3245. false
  3246. "
  3247. >
  3248. <div
  3249. class="queTop"
  3250. style="
  3251. font-size: 20px;
  3252. padding: 15px 0 15px 30px;
  3253. font-weight: bold;
  3254. "
  3255. >
  3256. 学生工作区
  3257. </div>
  3258. <div class="tool_work_box">
  3259. <div
  3260. v-if="
  3261. tType &&
  3262. ((tType == 2 && sIsOpen == true) ||
  3263. tType == 1 ||
  3264. tType == 4) &&
  3265. tool.tool.indexOf(16) != -1
  3266. "
  3267. class="worksBox"
  3268. >
  3269. <div
  3270. class="zuoyeYulan"
  3271. v-if="
  3272. worksStudent2.length &&
  3273. worksStudent2[toolIndex].length > 0
  3274. "
  3275. >
  3276. <div class="worksTop">
  3277. <div>作业预览</div>
  3278. <div
  3279. class="corOpen"
  3280. @click="contract(toolIndex)"
  3281. v-if="
  3282. worksStudent2[toolIndex].length > 6 &&
  3283. isCloseList[toolIndex].isClose == 0
  3284. "
  3285. >
  3286. 收缩
  3287. </div>
  3288. <div
  3289. class="corOpen"
  3290. @click="contract(toolIndex)"
  3291. v-if="isCloseList[toolIndex].isClose == 1"
  3292. >
  3293. 展开
  3294. </div>
  3295. </div>
  3296. </div>
  3297. <div
  3298. class="worksDetailBox"
  3299. v-if="
  3300. worksStudent2.length &&
  3301. worksStudent2[toolIndex].length > 0
  3302. "
  3303. >
  3304. <div
  3305. class="works"
  3306. style="
  3307. width: 200px;
  3308. height: 140px;
  3309. margin: 10px 10px 10px 0;
  3310. border-radius: 15px;
  3311. box-shadow: 0 0 6px 1px #dfdada;
  3312. "
  3313. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3314. ? worksStudent2[toolIndex]
  3315. : worksStudent2[toolIndex].slice(0, 6)"
  3316. :key="wIndex"
  3317. :class="w.type == 1 ? 'isTypeOne' : ''"
  3318. >
  3319. <div class="workImg" v-if="w.type == 0">
  3320. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3321. <img :src="w.works" @click="previewImg(w.works)" alt />
  3322. <div
  3323. class="answerScore"
  3324. v-if="w.score"
  3325. @click.stop="openScore(w)"
  3326. :class="{
  3327. rightW:
  3328. w.userid == userid ||
  3329. tType == 1 ||
  3330. tType == 4 ||
  3331. w.ateacher == userid,
  3332. }"
  3333. >
  3334. {{ JSON.parse(w.score).wScore }}分
  3335. </div>
  3336. <div
  3337. class="answerScore"
  3338. @click.stop="openScore(w)"
  3339. v-else-if="courseDetail.userid == userid"
  3340. :class="{
  3341. rightW:
  3342. w.userid == userid ||
  3343. tType == 1 ||
  3344. tType == 4 ||
  3345. w.ateacher == userid,
  3346. }"
  3347. >
  3348. 评分
  3349. </div>
  3350. <img
  3351. class="deleteImg"
  3352. src="../../assets/deleteworks.png"
  3353. v-if="w.userid == userid || tType == 1 || tType == 4"
  3354. @click.stop="deleteWorks(w.wid)"
  3355. alt
  3356. />
  3357. </div>
  3358. <div class="workImg" v-if="w.type == 1">
  3359. <img :src="word" @click="openFile(w.works)" alt />
  3360. <!-- @click="openFile(w.works)" -->
  3361. <div
  3362. class="answerScore"
  3363. v-if="w.score"
  3364. @click.stop="openScore(w)"
  3365. :class="{
  3366. rightW:
  3367. w.userid == userid ||
  3368. tType == 1 ||
  3369. tType == 4 ||
  3370. w.ateacher == userid,
  3371. }"
  3372. >
  3373. {{ JSON.parse(w.score).wScore }}分
  3374. </div>
  3375. <div
  3376. class="answerScore"
  3377. @click.stop="openScore(w)"
  3378. v-else-if="courseDetail.userid == userid"
  3379. :class="{
  3380. rightW:
  3381. w.userid == userid ||
  3382. tType == 1 ||
  3383. tType == 4 ||
  3384. w.ateacher == userid,
  3385. }"
  3386. >
  3387. 评分
  3388. </div>
  3389. <img
  3390. class="deleteImg"
  3391. src="../../assets/deleteworks.png"
  3392. v-if="w.userid == userid || tType == 1 || tType == 4"
  3393. @click.stop="deleteWorks(w.wid)"
  3394. alt
  3395. />
  3396. </div>
  3397. <div class="workImg" v-if="w.type == 3">
  3398. <img
  3399. style="cursor: pointer"
  3400. :src="video"
  3401. @click="openVideo(w)"
  3402. alt
  3403. />
  3404. <!-- @click="openVideo(w.works)" -->
  3405. <div
  3406. class="answerScore"
  3407. v-if="w.score"
  3408. @click.stop="openScore(w)"
  3409. :class="{
  3410. rightW:
  3411. w.userid == userid ||
  3412. tType == 1 ||
  3413. tType == 4 ||
  3414. w.ateacher == userid,
  3415. }"
  3416. >
  3417. {{ JSON.parse(w.score).wScore }}分
  3418. </div>
  3419. <div
  3420. class="answerScore"
  3421. @click.stop="openScore(w)"
  3422. v-else-if="courseDetail.userid == userid"
  3423. :class="{
  3424. rightW:
  3425. w.userid == userid ||
  3426. tType == 1 ||
  3427. tType == 4 ||
  3428. w.ateacher == userid,
  3429. }"
  3430. >
  3431. 评分
  3432. </div>
  3433. <img
  3434. class="deleteImg"
  3435. src="../../assets/deleteworks.png"
  3436. v-if="w.userid == userid || tType == 1 || tType == 4"
  3437. @click.stop="deleteWorks(w.wid)"
  3438. alt
  3439. />
  3440. </div>
  3441. <div class="workImg" v-if="w.type == 12">
  3442. <img
  3443. style="cursor: pointer"
  3444. :src="word2"
  3445. @click="downloadFile(w.works)"
  3446. alt
  3447. />
  3448. <!-- @click="openVideo(w.works)" -->
  3449. <div
  3450. class="answerScore"
  3451. v-if="w.score"
  3452. @click.stop="openScore(w)"
  3453. :class="{
  3454. rightW:
  3455. w.userid == userid ||
  3456. tType == 1 ||
  3457. tType == 4 ||
  3458. w.ateacher == userid,
  3459. }"
  3460. >
  3461. {{ JSON.parse(w.score).wScore }}分
  3462. </div>
  3463. <div
  3464. class="answerScore"
  3465. @click.stop="openScore(w)"
  3466. v-else-if="courseDetail.userid == userid"
  3467. :class="{
  3468. rightW:
  3469. w.userid == userid ||
  3470. tType == 1 ||
  3471. tType == 4 ||
  3472. w.ateacher == userid,
  3473. }"
  3474. >
  3475. 评分
  3476. </div>
  3477. <img
  3478. class="deleteImg"
  3479. src="../../assets/deleteworks.png"
  3480. v-if="w.userid == userid || tType == 1 || tType == 4"
  3481. @click.stop="deleteWorks(w.wid)"
  3482. alt
  3483. />
  3484. </div>
  3485. <div class="comment" style="min-width: 200px">
  3486. <div class="worksName">
  3487. <div>{{ w.sName }}</div>
  3488. </div>
  3489. <div class="commentList">
  3490. <div class="commentList">
  3491. <div
  3492. class="commentImg"
  3493. @click="
  3494. isLikes(w.wid, userid, 1, null, w.isLikes)
  3495. "
  3496. >
  3497. <img
  3498. :src="w.isLikes == true ? likes : noLikes"
  3499. alt=""
  3500. />
  3501. </div>
  3502. <div>{{ w.likesCount }}</div>
  3503. </div>
  3504. <div class="commentList" style="margin-right: 15px">
  3505. <div
  3506. class="commentImg"
  3507. @click="commentOther(w, toolIndex, wIndex)"
  3508. >
  3509. <img
  3510. src="../../assets/icon/comment/comment.png"
  3511. alt=""
  3512. />
  3513. </div>
  3514. <div>{{ w.commentCount }}</div>
  3515. </div>
  3516. </div>
  3517. </div>
  3518. </div>
  3519. </div>
  3520. <div class="noWorksS">
  3521. <div
  3522. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3523. :key="sIndex"
  3524. class="noWorksName"
  3525. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3526. :class="{ isWork: s.type == '2' }"
  3527. >
  3528. {{ s.student }}
  3529. </div>
  3530. </div>
  3531. </div>
  3532. <div
  3533. v-if="
  3534. tType &&
  3535. ((tType == 2 && sIsOpen == true) ||
  3536. tType == 1 ||
  3537. tType == 4) &&
  3538. tool.tool.indexOf(32) != -1
  3539. "
  3540. class="worksBox"
  3541. >
  3542. <div
  3543. class="zuoyeYulan"
  3544. v-if="
  3545. worksStudent2.length &&
  3546. worksStudent2[toolIndex].length > 0
  3547. "
  3548. >
  3549. <div class="worksTop">
  3550. <div>作业预览</div>
  3551. <div
  3552. class="corOpen"
  3553. @click="contract(toolIndex)"
  3554. v-if="
  3555. worksStudent2[toolIndex].length > 6 &&
  3556. isCloseList[toolIndex].isClose == 0
  3557. "
  3558. >
  3559. 收缩
  3560. </div>
  3561. <div
  3562. class="corOpen"
  3563. @click="contract(toolIndex)"
  3564. v-if="isCloseList[toolIndex].isClose == 1"
  3565. >
  3566. 展开
  3567. </div>
  3568. </div>
  3569. </div>
  3570. <div
  3571. class="worksDetailBox"
  3572. v-if="
  3573. worksStudent2.length &&
  3574. worksStudent2[toolIndex].length > 0
  3575. "
  3576. >
  3577. <div
  3578. class="works"
  3579. style="
  3580. width: 200px;
  3581. height: 140px;
  3582. margin: 10px 10px 10px 0;
  3583. border-radius: 15px;
  3584. box-shadow: 0 0 6px 1px #dfdada;
  3585. "
  3586. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3587. ? worksStudent2[toolIndex]
  3588. : worksStudent2[toolIndex].slice(0, 6)"
  3589. :key="wIndex"
  3590. :class="w.type == 1 ? 'isTypeOne' : ''"
  3591. >
  3592. <div class="workImg">
  3593. <img :src="word2" @click="downloadFile(w.works)" alt />
  3594. <div
  3595. class="answerScore"
  3596. v-if="w.score"
  3597. @click.stop="openScore(w)"
  3598. :class="{
  3599. rightW:
  3600. w.userid == userid ||
  3601. tType == 1 ||
  3602. tType == 4 ||
  3603. w.ateacher == userid,
  3604. }"
  3605. >
  3606. {{ JSON.parse(w.score).wScore }}分
  3607. </div>
  3608. <div
  3609. class="answerScore"
  3610. @click.stop="openScore(w)"
  3611. v-else-if="courseDetail.userid == userid"
  3612. :class="{
  3613. rightW:
  3614. w.userid == userid ||
  3615. tType == 1 ||
  3616. tType == 4 ||
  3617. w.ateacher == userid,
  3618. }"
  3619. >
  3620. 评分
  3621. </div>
  3622. <img
  3623. class="deleteImg"
  3624. src="../../assets/deleteworks.png"
  3625. v-if="w.userid == userid || tType == 1 || tType == 4"
  3626. @click.stop="deleteWorks(w.wid)"
  3627. alt
  3628. />
  3629. </div>
  3630. <div class="comment" style="min-width: 200px">
  3631. <div class="worksName">
  3632. <div>{{ w.sName }}</div>
  3633. </div>
  3634. <div class="commentList">
  3635. <div class="commentList">
  3636. <div
  3637. class="commentImg"
  3638. @click="
  3639. isLikes(w.wid, userid, 1, null, w.isLikes)
  3640. "
  3641. >
  3642. <img
  3643. :src="w.isLikes == true ? likes : noLikes"
  3644. alt=""
  3645. />
  3646. </div>
  3647. <div>{{ w.likesCount }}</div>
  3648. </div>
  3649. <div class="commentList" style="margin-right: 15px">
  3650. <div
  3651. class="commentImg"
  3652. @click="commentOther(w, toolIndex, wIndex)"
  3653. >
  3654. <img
  3655. src="../../assets/icon/comment/comment.png"
  3656. alt=""
  3657. />
  3658. </div>
  3659. <div>{{ w.commentCount }}</div>
  3660. </div>
  3661. </div>
  3662. </div>
  3663. </div>
  3664. </div>
  3665. <div class="noWorksS">
  3666. <div
  3667. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3668. :key="sIndex"
  3669. class="noWorksName"
  3670. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3671. :class="{ isWork: s.type == '2' }"
  3672. >
  3673. {{ s.student }}
  3674. </div>
  3675. </div>
  3676. </div>
  3677. <div
  3678. v-if="
  3679. tType &&
  3680. ((tType == 2 && sIsOpen == true) ||
  3681. tType == 1 ||
  3682. tType == 4) &&
  3683. tool.tool.indexOf(57) != -1
  3684. "
  3685. class="worksBox"
  3686. >
  3687. <div
  3688. class="zuoyeYulan"
  3689. v-if="
  3690. worksStudent2.length &&
  3691. worksStudent2[toolIndex].length > 0
  3692. "
  3693. >
  3694. <div class="worksTop">
  3695. <div>作业预览</div>
  3696. <div
  3697. class="corOpen"
  3698. @click="contract(toolIndex)"
  3699. v-if="
  3700. worksStudent2[toolIndex].length > 6 &&
  3701. isCloseList[toolIndex].isClose == 0
  3702. "
  3703. >
  3704. 收缩
  3705. </div>
  3706. <div
  3707. class="corOpen"
  3708. @click="contract(toolIndex)"
  3709. v-if="isCloseList[toolIndex].isClose == 1"
  3710. >
  3711. 展开
  3712. </div>
  3713. </div>
  3714. </div>
  3715. <div
  3716. class="worksDetailBox"
  3717. v-if="
  3718. worksStudent2.length &&
  3719. worksStudent2[toolIndex].length > 0
  3720. "
  3721. >
  3722. <div
  3723. class="works"
  3724. style="
  3725. width: 200px;
  3726. height: 140px;
  3727. margin: 10px 10px 10px 0;
  3728. border-radius: 15px;
  3729. box-shadow: 0 0 6px 1px #dfdada;
  3730. "
  3731. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3732. ? worksStudent2[toolIndex]
  3733. : worksStudent2[toolIndex].slice(0, 6)"
  3734. :key="wIndex"
  3735. :class="w.type == 1 ? 'isTypeOne' : ''"
  3736. >
  3737. <div class="workImg">
  3738. <img
  3739. :src="word2"
  3740. @click="downloadFile(w.works)"
  3741. v-if="w.type == 12"
  3742. alt
  3743. />
  3744. <img
  3745. :src="word2"
  3746. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  3747. v-else-if="w.type == 15"
  3748. alt
  3749. />
  3750. <div
  3751. class="answerScore"
  3752. v-if="w.score"
  3753. @click.stop="openScore(w)"
  3754. :class="{
  3755. rightW:
  3756. w.userid == userid ||
  3757. tType == 1 ||
  3758. tType == 4 ||
  3759. w.ateacher == userid,
  3760. }"
  3761. >
  3762. {{ JSON.parse(w.score).wScore }}分
  3763. </div>
  3764. <div
  3765. class="answerScore"
  3766. @click.stop="openScore(w)"
  3767. v-else-if="courseDetail.userid == userid"
  3768. :class="{
  3769. rightW:
  3770. w.userid == userid ||
  3771. tType == 1 ||
  3772. tType == 4 ||
  3773. w.ateacher == userid,
  3774. }"
  3775. >
  3776. 评分
  3777. </div>
  3778. <img
  3779. class="deleteImg"
  3780. src="../../assets/deleteworks.png"
  3781. v-if="w.userid == userid || tType == 1 || tType == 4"
  3782. @click.stop="deleteWorks(w.wid)"
  3783. alt
  3784. />
  3785. </div>
  3786. <div class="comment" style="min-width: 200px">
  3787. <div class="worksName">
  3788. <div>{{ w.sName }}</div>
  3789. </div>
  3790. <div class="commentList">
  3791. <div class="commentList">
  3792. <div
  3793. class="commentImg"
  3794. @click="
  3795. isLikes(w.wid, userid, 1, null, w.isLikes)
  3796. "
  3797. >
  3798. <img
  3799. :src="w.isLikes == true ? likes : noLikes"
  3800. alt=""
  3801. />
  3802. </div>
  3803. <div>{{ w.likesCount }}</div>
  3804. </div>
  3805. <div class="commentList" style="margin-right: 15px">
  3806. <div
  3807. class="commentImg"
  3808. @click="commentOther(w, toolIndex, wIndex)"
  3809. >
  3810. <img
  3811. src="../../assets/icon/comment/comment.png"
  3812. alt=""
  3813. />
  3814. </div>
  3815. <div>{{ w.commentCount }}</div>
  3816. </div>
  3817. </div>
  3818. </div>
  3819. </div>
  3820. </div>
  3821. <div class="noWorksS">
  3822. <div
  3823. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3824. :key="sIndex"
  3825. class="noWorksName"
  3826. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3827. :class="{ isWork: s.type == '2' }"
  3828. >
  3829. {{ s.student }}
  3830. </div>
  3831. </div>
  3832. </div>
  3833. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3834. <div
  3835. class="zuoyeYulan"
  3836. v-if="
  3837. worksStudent2.length &&
  3838. worksStudent2[toolIndex].length > 0
  3839. "
  3840. >
  3841. <span>作业预览</span>
  3842. <div
  3843. class="corOpen"
  3844. @click="contract(toolIndex)"
  3845. v-if="
  3846. worksStudent2[toolIndex].length > 6 &&
  3847. isCloseList[toolIndex].isClose == 0
  3848. "
  3849. >
  3850. 收缩
  3851. </div>
  3852. <div
  3853. class="corOpen"
  3854. @click="contract(toolIndex)"
  3855. v-if="isCloseList[toolIndex].isClose == 1"
  3856. >
  3857. 展开
  3858. </div>
  3859. </div>
  3860. <div
  3861. class="worksDetailBox"
  3862. v-if="
  3863. worksStudent2.length &&
  3864. worksStudent2[toolIndex].length > 0
  3865. "
  3866. >
  3867. <div
  3868. class="works"
  3869. style="
  3870. width: 200px;
  3871. height: 140px;
  3872. margin: 10px 10px 10px 0;
  3873. border-radius: 15px;
  3874. box-shadow: 0 0 6px 1px #dfdada;
  3875. "
  3876. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3877. ? worksStudent2[toolIndex]
  3878. : worksStudent2[toolIndex].slice(0, 6)"
  3879. :key="wIndex"
  3880. :class="w.type == 1 ? 'isTypeOne' : ''"
  3881. >
  3882. <div class="workImg" v-if="w.type == 0">
  3883. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3884. <img :src="w.works" @click="previewImg(w.works)" alt />
  3885. <div
  3886. class="answerScore"
  3887. v-if="w.score"
  3888. @click.stop="openScore(w)"
  3889. :class="{
  3890. rightW:
  3891. w.userid == userid ||
  3892. tType == 1 ||
  3893. tType == 4 ||
  3894. w.ateacher == userid,
  3895. }"
  3896. >
  3897. {{ JSON.parse(w.score).wScore }}分
  3898. </div>
  3899. <div
  3900. class="answerScore"
  3901. @click.stop="openScore(w)"
  3902. v-else-if="courseDetail.userid == userid"
  3903. :class="{
  3904. rightW:
  3905. w.userid == userid ||
  3906. tType == 1 ||
  3907. tType == 4 ||
  3908. w.ateacher == userid,
  3909. }"
  3910. >
  3911. 评分
  3912. </div>
  3913. <img
  3914. class="deleteImg"
  3915. src="../../assets/deleteworks.png"
  3916. v-if="w.userid == userid || tType == 1 || tType == 4"
  3917. @click.stop="deleteWorks(w.wid)"
  3918. alt
  3919. />
  3920. </div>
  3921. <div
  3922. class="workImg"
  3923. style="cursor: pointer"
  3924. v-if="w.type == 1"
  3925. >
  3926. <img :src="word" @click="openFile(w.works)" alt />
  3927. <!-- @click="openFile(w.works)" -->
  3928. <div
  3929. class="answerScore"
  3930. v-if="w.score"
  3931. @click.stop="openScore(w)"
  3932. :class="{
  3933. rightW:
  3934. w.userid == userid ||
  3935. tType == 1 ||
  3936. tType == 4 ||
  3937. w.ateacher == userid,
  3938. }"
  3939. >
  3940. {{ JSON.parse(w.score).wScore }}分
  3941. </div>
  3942. <div
  3943. class="answerScore"
  3944. @click.stop="openScore(w)"
  3945. v-else-if="courseDetail.userid == userid"
  3946. :class="{
  3947. rightW:
  3948. w.userid == userid ||
  3949. tType == 1 ||
  3950. tType == 4 ||
  3951. w.ateacher == userid,
  3952. }"
  3953. >
  3954. 评分
  3955. </div>
  3956. <img
  3957. class="deleteImg"
  3958. src="../../assets/deleteworks.png"
  3959. v-if="w.userid == userid || tType == 1 || tType == 4"
  3960. @click.stop="deleteWorks(w.wid)"
  3961. alt
  3962. />
  3963. </div>
  3964. <div class="workImg" v-if="w.type == 3">
  3965. <img
  3966. style="cursor: pointer"
  3967. :src="video"
  3968. @click="openVideo(w)"
  3969. alt
  3970. />
  3971. <!-- @click="openVideo(w.works)" -->
  3972. <div
  3973. class="answerScore"
  3974. v-if="w.score"
  3975. @click.stop="openScore(w)"
  3976. :class="{
  3977. rightW:
  3978. w.userid == userid ||
  3979. tType == 1 ||
  3980. tType == 4 ||
  3981. w.ateacher == userid,
  3982. }"
  3983. >
  3984. {{ JSON.parse(w.score).wScore }}分
  3985. </div>
  3986. <div
  3987. class="answerScore"
  3988. @click.stop="openScore(w)"
  3989. v-else-if="courseDetail.userid == userid"
  3990. :class="{
  3991. rightW:
  3992. w.userid == userid ||
  3993. tType == 1 ||
  3994. tType == 4 ||
  3995. w.ateacher == userid,
  3996. }"
  3997. >
  3998. 评分
  3999. </div>
  4000. <img
  4001. class="deleteImg"
  4002. src="../../assets/deleteworks.png"
  4003. v-if="w.userid == userid || tType == 1 || tType == 4"
  4004. @click.stop="deleteWorks(w.wid)"
  4005. alt
  4006. />
  4007. </div>
  4008. <div class="comment" style="min-width: 200px">
  4009. <div class="worksName">
  4010. <div
  4011. style="cursor: pointer"
  4012. @click="
  4013. openSname(w.sName, w.wid, toolIndex, w.userid)
  4014. "
  4015. >
  4016. {{ w.sName }}
  4017. </div>
  4018. </div>
  4019. <div class="commentList">
  4020. <div class="commentList">
  4021. <div
  4022. class="commentImg"
  4023. @click="
  4024. isLikes(w.wid, userid, 1, null, w.isLikes)
  4025. "
  4026. >
  4027. <img
  4028. :src="w.isLikes == true ? likes : noLikes"
  4029. alt=""
  4030. />
  4031. </div>
  4032. <div>{{ w.likesCount }}</div>
  4033. </div>
  4034. <div class="commentList" style="margin-right: 15px">
  4035. <div
  4036. class="commentImg"
  4037. @click="commentOther(w, toolIndex, wIndex)"
  4038. >
  4039. <img
  4040. src="../../assets/icon/comment/comment.png"
  4041. alt=""
  4042. />
  4043. </div>
  4044. <div>{{ w.commentCount }}</div>
  4045. </div>
  4046. </div>
  4047. </div>
  4048. </div>
  4049. </div>
  4050. <div class="noWorksS">
  4051. <div
  4052. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4053. :key="sIndex"
  4054. class="noWorksName"
  4055. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4056. :class="{ isWork: s.type == '2' }"
  4057. >
  4058. {{ s.student }}
  4059. </div>
  4060. </div>
  4061. </div>
  4062. <div
  4063. v-if="
  4064. tType &&
  4065. ((tType == 2 && sIsOpen == true) ||
  4066. tType == 1 ||
  4067. tType == 4) &&
  4068. tool.tool.indexOf(4) != -1
  4069. "
  4070. class="worksBox"
  4071. >
  4072. <div
  4073. class="zuoyeYulan"
  4074. v-if="
  4075. worksStudent2.length &&
  4076. worksStudent2[toolIndex].length > 0
  4077. "
  4078. >
  4079. <div class="worksTop">
  4080. <div>作业预览</div>
  4081. <div
  4082. class="corOpen"
  4083. @click="contract(toolIndex)"
  4084. v-if="
  4085. worksStudent2[toolIndex].length > 6 &&
  4086. isCloseList[toolIndex].isClose == 0
  4087. "
  4088. >
  4089. 收缩
  4090. </div>
  4091. <div
  4092. class="corOpen"
  4093. @click="contract(toolIndex)"
  4094. v-if="isCloseList[toolIndex].isClose == 1"
  4095. >
  4096. 展开
  4097. </div>
  4098. </div>
  4099. </div>
  4100. <div>
  4101. <div
  4102. class="worksDetailBox"
  4103. v-if="
  4104. worksStudent2.length &&
  4105. worksStudent2[toolIndex].length > 0
  4106. "
  4107. >
  4108. <div
  4109. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4110. 0
  4111. ? worksStudent2[toolIndex]
  4112. : worksStudent2[toolIndex].slice(0, 6)"
  4113. :key="wIndex"
  4114. class="isWorksName2"
  4115. @click="
  4116. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4117. "
  4118. >
  4119. {{ w.sName }}
  4120. <img
  4121. class="deleteImg deleteImg2"
  4122. src="../../assets/deleteworks.png"
  4123. v-if="w.userid == userid || tType == 1 || tType == 4"
  4124. @click.stop="deleteWorks(w.wid)"
  4125. alt
  4126. />
  4127. </div>
  4128. </div>
  4129. </div>
  4130. <div class="noWorksS">
  4131. <div
  4132. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4133. :key="sIndex"
  4134. class="noWorksName"
  4135. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4136. :class="{ isWork: s.type == '2' }"
  4137. >
  4138. {{ s.student }}
  4139. </div>
  4140. </div>
  4141. </div>
  4142. <div
  4143. v-if="
  4144. tType &&
  4145. ((tType == 2 && sIsOpen == true) ||
  4146. tType == 1 ||
  4147. tType == 4) &&
  4148. tool.tool.indexOf(45) != -1
  4149. "
  4150. class="worksBox"
  4151. >
  4152. <div
  4153. class="zuoyeYulan"
  4154. v-if="
  4155. worksStudent2.length &&
  4156. worksStudent2[toolIndex].length > 0
  4157. "
  4158. >
  4159. <div class="worksTop">
  4160. <div>作业预览</div>
  4161. <div
  4162. class="corOpen"
  4163. @click="contract(toolIndex)"
  4164. v-if="
  4165. worksStudent2[toolIndex].length > 6 &&
  4166. isCloseList[toolIndex].isClose == 0
  4167. "
  4168. >
  4169. 收缩
  4170. </div>
  4171. <div
  4172. class="corOpen"
  4173. @click="contract(toolIndex)"
  4174. v-if="isCloseList[toolIndex].isClose == 1"
  4175. >
  4176. 展开
  4177. </div>
  4178. </div>
  4179. </div>
  4180. <div>
  4181. <div
  4182. class="worksDetailBox"
  4183. v-if="
  4184. worksStudent2.length &&
  4185. worksStudent2[toolIndex].length > 0
  4186. "
  4187. >
  4188. <div
  4189. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4190. 0
  4191. ? worksStudent2[toolIndex]
  4192. : worksStudent2[toolIndex].slice(0, 6)"
  4193. :key="wIndex"
  4194. class="isWorksName2"
  4195. @click="
  4196. openTools(45, toolIndex, taskCount, w.works, w.sName)
  4197. "
  4198. >
  4199. {{ w.sName }}
  4200. <img
  4201. class="deleteImg deleteImg2"
  4202. src="../../assets/deleteworks.png"
  4203. v-if="w.userid == userid || tType == 1 || tType == 4"
  4204. @click.stop="deleteWorks(w.wid)"
  4205. alt
  4206. />
  4207. </div>
  4208. </div>
  4209. </div>
  4210. <div class="noWorksS">
  4211. <div
  4212. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4213. :key="sIndex"
  4214. class="noWorksName"
  4215. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4216. :class="{ isWork: s.type == '2' }"
  4217. >
  4218. {{ s.student }}
  4219. </div>
  4220. </div>
  4221. </div>
  4222. <div
  4223. v-if="
  4224. tType &&
  4225. ((tType == 2 && sIsOpen == true) ||
  4226. tType == 1 ||
  4227. tType == 4) &&
  4228. tool.tool.indexOf(15) != -1
  4229. "
  4230. class="worksBox"
  4231. >
  4232. <div
  4233. class="zuoyeYulan"
  4234. v-if="
  4235. worksStudent2.length &&
  4236. worksStudent2[toolIndex].length > 0
  4237. "
  4238. >
  4239. <div class="worksTop">
  4240. <div>作业预览</div>
  4241. <div
  4242. class="corOpen"
  4243. @click="contract(toolIndex)"
  4244. v-if="
  4245. worksStudent2[toolIndex].length > 6 &&
  4246. isCloseList[toolIndex].isClose == 0
  4247. "
  4248. >
  4249. 收缩
  4250. </div>
  4251. <div
  4252. class="corOpen"
  4253. @click="contract(toolIndex)"
  4254. v-if="isCloseList[toolIndex].isClose == 1"
  4255. >
  4256. 展开
  4257. </div>
  4258. </div>
  4259. </div>
  4260. <div
  4261. class="worksDetailBox"
  4262. v-if="
  4263. worksStudent2.length &&
  4264. worksStudent2[toolIndex].length > 0
  4265. "
  4266. >
  4267. <div
  4268. class="works"
  4269. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4270. ? worksStudent2[toolIndex]
  4271. : worksStudent2[toolIndex].slice(0, 6)"
  4272. :key="wIndex"
  4273. >
  4274. <div
  4275. class="workImg"
  4276. style="
  4277. border-radius: 15px;
  4278. box-shadow: #eee 0px 0px 5px 5px;
  4279. "
  4280. >
  4281. <!-- <img
  4282. src="../../assets/icon/works/noImg.png"
  4283. @click="openTools(15, toolIndex, taskCount, w.works)"
  4284. alt=""
  4285. />-->
  4286. <div
  4287. class="answerBg"
  4288. style="border-radius: 15px 15px 0 0"
  4289. @click="commentOther(w, toolIndex, wIndex)"
  4290. >
  4291. <!-- <div>{{ w.sName }}</div> -->
  4292. <div class="answerContent">
  4293. {{ JSON.parse(w.works)[0].answer }}
  4294. </div>
  4295. <div
  4296. class="answerScore"
  4297. v-if="w.score"
  4298. @click.stop="openScore(w)"
  4299. :class="{
  4300. rightW:
  4301. w.userid == userid || tType == 1 || tType == 4,
  4302. }"
  4303. >
  4304. {{ JSON.parse(w.score).wScore }}分
  4305. </div>
  4306. <div
  4307. class="answerScore"
  4308. @click.stop="openScore(w)"
  4309. v-else-if="courseDetail.userid == userid"
  4310. :class="{
  4311. rightW:
  4312. w.userid == userid || tType == 1 || tType == 4,
  4313. }"
  4314. >
  4315. 评分
  4316. </div>
  4317. <img
  4318. class="deleteImg"
  4319. src="../../assets/deleteworks.png"
  4320. v-if="
  4321. w.userid == userid || tType == 1 || tType == 4
  4322. "
  4323. @click.stop="deleteWorks(w.wid)"
  4324. alt
  4325. />
  4326. </div>
  4327. <div class="comment">
  4328. <div class="worksName">
  4329. <div>{{ w.sName }}</div>
  4330. </div>
  4331. <div class="commentList">
  4332. <div
  4333. class="commentImg"
  4334. @click="
  4335. isLikes(w.wid, userid, 1, null, w.isLikes)
  4336. "
  4337. >
  4338. <img
  4339. :src="w.isLikes == true ? likes : noLikes"
  4340. alt=""
  4341. />
  4342. </div>
  4343. <div>{{ w.likesCount }}</div>
  4344. </div>
  4345. <div class="commentList" style="margin-right: 15px">
  4346. <div
  4347. class="commentImg"
  4348. @click="commentOther(w, toolIndex, wIndex)"
  4349. >
  4350. <img
  4351. src="../../assets/icon/comment/comment.png"
  4352. alt=""
  4353. />
  4354. </div>
  4355. <div>{{ w.commentCount }}</div>
  4356. </div>
  4357. </div>
  4358. </div>
  4359. </div>
  4360. </div>
  4361. <div class="noWorksS">
  4362. <div
  4363. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4364. :key="sIndex"
  4365. class="noWorksName"
  4366. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4367. :class="{ isWork: s.type == '2' }"
  4368. >
  4369. {{ s.student }}
  4370. </div>
  4371. </div>
  4372. </div>
  4373. <div
  4374. v-if="
  4375. tType &&
  4376. ((tType == 2 && sIsOpen == true) ||
  4377. tType == 1 ||
  4378. tType == 4) &&
  4379. tool.tool.indexOf(1) != -1
  4380. "
  4381. class="worksBox"
  4382. >
  4383. <div
  4384. class="zuoyeYulan"
  4385. v-if="
  4386. worksStudent2.length &&
  4387. worksStudent2[toolIndex].length > 0
  4388. "
  4389. >
  4390. <div class="worksTop">
  4391. <div>作业预览</div>
  4392. <div
  4393. class="corOpen"
  4394. @click="contract(toolIndex)"
  4395. v-if="
  4396. worksStudent2[toolIndex].length > 6 &&
  4397. isCloseList[toolIndex].isClose == 0
  4398. "
  4399. >
  4400. 收缩
  4401. </div>
  4402. <div
  4403. class="corOpen"
  4404. @click="contract(toolIndex)"
  4405. v-if="isCloseList[toolIndex].isClose == 1"
  4406. >
  4407. 展开
  4408. </div>
  4409. </div>
  4410. </div>
  4411. <div
  4412. class="worksDetailBox"
  4413. v-if="
  4414. worksStudent2.length &&
  4415. worksStudent2[toolIndex].length > 0
  4416. "
  4417. >
  4418. <div
  4419. class="works"
  4420. style="
  4421. width: 200px;
  4422. height: 140px;
  4423. margin: 10px 10px 10px 0;
  4424. border-radius: 15px;
  4425. box-shadow: 0 0 6px 1px #dfdada;
  4426. "
  4427. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4428. ? worksStudent2[toolIndex]
  4429. : worksStudent2[toolIndex].slice(0, 6)"
  4430. :key="wIndex"
  4431. >
  4432. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4433. <div class="workImg">
  4434. <img :src="w.works" @click="previewImg(w.works)" alt />
  4435. <div
  4436. class="answerScore"
  4437. v-if="w.score"
  4438. @click.stop="openScore(w)"
  4439. :class="{
  4440. rightW:
  4441. w.userid == userid || tType == 1 || tType == 4,
  4442. }"
  4443. >
  4444. {{ JSON.parse(w.score).wScore }}分
  4445. </div>
  4446. <div
  4447. class="answerScore"
  4448. @click.stop="openScore(w)"
  4449. v-else-if="courseDetail.userid == userid"
  4450. :class="{
  4451. rightW:
  4452. w.userid == userid || tType == 1 || tType == 4,
  4453. }"
  4454. >
  4455. 评分
  4456. </div>
  4457. <img
  4458. class="deleteImg"
  4459. src="../../assets/deleteworks.png"
  4460. v-if="w.userid == userid || tType == 1 || tType == 4"
  4461. @click.stop="deleteWorks(w.wid)"
  4462. alt
  4463. />
  4464. </div>
  4465. <div class="comment" style="min-width: 200px">
  4466. <div class="worksName">
  4467. <div>{{ w.sName }}</div>
  4468. </div>
  4469. <div class="commentList">
  4470. <div class="commentList">
  4471. <div
  4472. class="commentImg"
  4473. @click="
  4474. isLikes(w.wid, userid, 1, null, w.isLikes)
  4475. "
  4476. >
  4477. <img
  4478. :src="w.isLikes == true ? likes : noLikes"
  4479. alt=""
  4480. />
  4481. </div>
  4482. <div>{{ w.likesCount }}</div>
  4483. </div>
  4484. <div class="commentList" style="margin-right: 15px">
  4485. <div
  4486. class="commentImg"
  4487. @click="commentOther(w, toolIndex, wIndex)"
  4488. >
  4489. <img
  4490. src="../../assets/icon/comment/comment.png"
  4491. alt=""
  4492. />
  4493. </div>
  4494. <div>{{ w.commentCount }}</div>
  4495. </div>
  4496. </div>
  4497. </div>
  4498. </div>
  4499. </div>
  4500. <div class="noWorksS">
  4501. <div
  4502. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4503. :key="sIndex"
  4504. class="noWorksName"
  4505. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4506. :class="{ isWork: s.type == '2' }"
  4507. >
  4508. {{ s.student }}
  4509. </div>
  4510. </div>
  4511. </div>
  4512. <div
  4513. v-if="
  4514. tType &&
  4515. ((tType == 2 && sIsOpen == true) ||
  4516. tType == 1 ||
  4517. tType == 4) &&
  4518. tool.tool.indexOf(3) != -1
  4519. "
  4520. class="worksBox"
  4521. >
  4522. <div
  4523. class="zuoyeYulan"
  4524. v-if="
  4525. worksStudent2.length &&
  4526. worksStudent2[toolIndex].length > 0
  4527. "
  4528. >
  4529. <div class="worksTop">
  4530. <div>作业预览</div>
  4531. <div
  4532. class="corOpen"
  4533. @click="contract(toolIndex)"
  4534. v-if="
  4535. worksStudent2[toolIndex].length > 6 &&
  4536. isCloseList[toolIndex].isClose == 0
  4537. "
  4538. >
  4539. 收缩
  4540. </div>
  4541. <div
  4542. class="corOpen"
  4543. @click="contract(toolIndex)"
  4544. v-if="isCloseList[toolIndex].isClose == 1"
  4545. >
  4546. 展开
  4547. </div>
  4548. </div>
  4549. </div>
  4550. <div
  4551. class="worksDetailBox"
  4552. v-if="
  4553. worksStudent2.length &&
  4554. worksStudent2[toolIndex].length > 0
  4555. "
  4556. >
  4557. <div
  4558. class="works"
  4559. style="
  4560. width: 200px;
  4561. height: 140px;
  4562. margin: 10px 10px 10px 0;
  4563. border-radius: 15px;
  4564. box-shadow: 0 0 6px 1px #dfdada;
  4565. "
  4566. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4567. ? worksStudent2[toolIndex]
  4568. : worksStudent2[toolIndex].slice(0, 6)"
  4569. :key="wIndex"
  4570. >
  4571. <!-- @click="previewImg(w.works)" -->
  4572. <div class="workImg">
  4573. <img :src="w.works" @click="previewImg(w.works)" alt />
  4574. <div
  4575. class="answerScore"
  4576. v-if="w.score"
  4577. @click.stop="openScore(w)"
  4578. :class="{
  4579. rightW:
  4580. w.userid == userid || tType == 1 || tType == 4,
  4581. }"
  4582. >
  4583. {{ JSON.parse(w.score).wScore }}分
  4584. </div>
  4585. <div
  4586. class="answerScore"
  4587. @click.stop="openScore(w)"
  4588. v-else-if="courseDetail.userid == userid"
  4589. :class="{
  4590. rightW:
  4591. w.userid == userid || tType == 1 || tType == 4,
  4592. }"
  4593. >
  4594. 评分
  4595. </div>
  4596. <img
  4597. class="deleteImg"
  4598. src="../../assets/deleteworks.png"
  4599. v-if="w.userid == userid || tType == 1 || tType == 4"
  4600. @click.stop="deleteWorks(w.wid)"
  4601. alt
  4602. />
  4603. </div>
  4604. <div class="comment" style="min-width: 200px">
  4605. <div class="worksName">
  4606. <div>{{ w.sName }}</div>
  4607. </div>
  4608. <div class="commentList">
  4609. <div class="commentList">
  4610. <div
  4611. class="commentImg"
  4612. @click="
  4613. isLikes(w.wid, userid, 1, null, w.isLikes)
  4614. "
  4615. >
  4616. <img
  4617. :src="w.isLikes == true ? likes : noLikes"
  4618. alt=""
  4619. />
  4620. </div>
  4621. <div>{{ w.likesCount }}</div>
  4622. </div>
  4623. <div class="commentList" style="margin-right: 15px">
  4624. <div
  4625. class="commentImg"
  4626. @click="commentOther(w, toolIndex, wIndex)"
  4627. >
  4628. <img
  4629. src="../../assets/icon/comment/comment.png"
  4630. alt=""
  4631. />
  4632. </div>
  4633. <div>{{ w.commentCount }}</div>
  4634. </div>
  4635. </div>
  4636. </div>
  4637. </div>
  4638. </div>
  4639. <div class="noWorksS">
  4640. <div
  4641. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4642. :key="sIndex"
  4643. class="noWorksName"
  4644. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4645. :class="{ isWork: s.type == '2' }"
  4646. >
  4647. {{ s.student }}
  4648. </div>
  4649. </div>
  4650. </div>
  4651. <div
  4652. v-if="
  4653. tType &&
  4654. ((tType == 2 && sIsOpen == true) ||
  4655. tType == 1 ||
  4656. tType == 4) &&
  4657. tool.tool.indexOf(6) != -1
  4658. "
  4659. class="worksBox"
  4660. >
  4661. <div
  4662. class="zuoyeYulan"
  4663. v-if="
  4664. worksStudent2.length &&
  4665. worksStudent2[toolIndex].length > 0
  4666. "
  4667. >
  4668. <div class="worksTop">
  4669. <div>作业预览</div>
  4670. <div
  4671. class="corOpen"
  4672. @click="contract(toolIndex)"
  4673. v-if="
  4674. worksStudent[toolIndex].length > 6 &&
  4675. isCloseList[toolIndex].isClose == 0
  4676. "
  4677. >
  4678. 收缩
  4679. </div>
  4680. <div
  4681. class="corOpen"
  4682. @click="contract(toolIndex)"
  4683. v-if="isCloseList[toolIndex].isClose == 1"
  4684. >
  4685. 展开
  4686. </div>
  4687. </div>
  4688. </div>
  4689. <div
  4690. class="worksDetailBox"
  4691. v-if="
  4692. worksStudent2.length &&
  4693. worksStudent2[toolIndex].length > 0
  4694. "
  4695. >
  4696. <div
  4697. class="works"
  4698. style="
  4699. width: 200px;
  4700. height: 140px;
  4701. margin: 10px 10px 10px 0;
  4702. border-radius: 15px;
  4703. box-shadow: 0 0 6px 1px #dfdada;
  4704. "
  4705. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4706. ? worksStudent2[toolIndex]
  4707. : worksStudent2[toolIndex].slice(0, 6)"
  4708. :key="wIndex"
  4709. >
  4710. <!-- @click="previewImg(w.works)" -->
  4711. <div class="workImg">
  4712. <img :src="w.works" @click="previewImg(w.works)" alt />
  4713. <div
  4714. class="answerScore"
  4715. v-if="w.score"
  4716. @click.stop="openScore(w)"
  4717. :class="{
  4718. rightW:
  4719. w.userid == userid || tType == 1 || tType == 4,
  4720. }"
  4721. >
  4722. {{ JSON.parse(w.score).wScore }}分
  4723. </div>
  4724. <div
  4725. class="answerScore"
  4726. @click.stop="openScore(w)"
  4727. v-else-if="courseDetail.userid == userid"
  4728. :class="{
  4729. rightW:
  4730. w.userid == userid || tType == 1 || tType == 4,
  4731. }"
  4732. >
  4733. 评分
  4734. </div>
  4735. <img
  4736. class="deleteImg"
  4737. src="../../assets/deleteworks.png"
  4738. v-if="w.userid == userid || tType == 1 || tType == 4"
  4739. @click.stop="deleteWorks(w.wid)"
  4740. alt
  4741. />
  4742. </div>
  4743. <div class="comment" style="min-width: 200px">
  4744. <div class="worksName">
  4745. <div>{{ w.sName }}</div>
  4746. </div>
  4747. <div class="commentList">
  4748. <div class="commentList">
  4749. <div
  4750. class="commentImg"
  4751. @click="
  4752. isLikes(w.wid, userid, 1, null, w.isLikes)
  4753. "
  4754. >
  4755. <img
  4756. :src="w.isLikes == true ? likes : noLikes"
  4757. alt=""
  4758. />
  4759. </div>
  4760. <div>{{ w.likesCount }}</div>
  4761. </div>
  4762. <div class="commentList" style="margin-right: 15px">
  4763. <div
  4764. class="commentImg"
  4765. @click="commentOther(w, toolIndex, wIndex)"
  4766. >
  4767. <img
  4768. src="../../assets/icon/comment/comment.png"
  4769. alt=""
  4770. />
  4771. </div>
  4772. <div>{{ w.commentCount }}</div>
  4773. </div>
  4774. </div>
  4775. </div>
  4776. </div>
  4777. </div>
  4778. <div class="noWorksS">
  4779. <div
  4780. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4781. :key="sIndex"
  4782. class="noWorksName"
  4783. :class="{ isWork: s.type == '2' }"
  4784. >
  4785. {{ s.student }}
  4786. </div>
  4787. </div>
  4788. </div>
  4789. <div
  4790. v-if="
  4791. tType &&
  4792. ((tType == 2 && sIsOpen == true) ||
  4793. tType == 1 ||
  4794. tType == 4) &&
  4795. tool.tool.indexOf(7) != -1
  4796. "
  4797. class="worksBox"
  4798. >
  4799. <div
  4800. class="zuoyeYulan"
  4801. v-if="
  4802. worksStudent2.length &&
  4803. worksStudent2[toolIndex].length > 0
  4804. "
  4805. >
  4806. <div class="worksTop">
  4807. <div>作业预览</div>
  4808. <div
  4809. class="corOpen"
  4810. @click="contract(toolIndex)"
  4811. v-if="
  4812. worksStudent2[toolIndex].length > 6 &&
  4813. isCloseList[toolIndex].isClose == 0
  4814. "
  4815. >
  4816. 收缩
  4817. </div>
  4818. <div
  4819. class="corOpen"
  4820. @click="contract(toolIndex)"
  4821. v-if="isCloseList[toolIndex].isClose == 1"
  4822. >
  4823. 展开
  4824. </div>
  4825. </div>
  4826. </div>
  4827. <div
  4828. class="worksDetailBox"
  4829. v-if="
  4830. worksStudent2.length &&
  4831. worksStudent2[toolIndex].length > 0
  4832. "
  4833. >
  4834. <div
  4835. class="works"
  4836. style="
  4837. width: 200px;
  4838. height: 140px;
  4839. margin: 10px 10px 10px 0;
  4840. border-radius: 15px;
  4841. box-shadow: 0 0 6px 1px #dfdada;
  4842. "
  4843. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4844. ? worksStudent2[toolIndex]
  4845. : worksStudent2[toolIndex].slice(0, 6)"
  4846. :key="wIndex"
  4847. >
  4848. <!-- @click="previewImg(w.works)" -->
  4849. <div class="workImg">
  4850. <img :src="w.works" @click="previewImg(w.works)" alt />
  4851. <div
  4852. class="answerScore"
  4853. v-if="w.score"
  4854. @click.stop="openScore(w)"
  4855. :class="{
  4856. rightW:
  4857. w.userid == userid || tType == 1 || tType == 4,
  4858. }"
  4859. >
  4860. {{ JSON.parse(w.score).wScore }}分
  4861. </div>
  4862. <div
  4863. class="answerScore"
  4864. @click.stop="openScore(w)"
  4865. v-else-if="courseDetail.userid == userid"
  4866. :class="{
  4867. rightW:
  4868. w.userid == userid || tType == 1 || tType == 4,
  4869. }"
  4870. >
  4871. 评分
  4872. </div>
  4873. <img
  4874. class="deleteImg"
  4875. src="../../assets/deleteworks.png"
  4876. v-if="w.userid == userid || tType == 1 || tType == 4"
  4877. @click.stop="deleteWorks(w.wid)"
  4878. alt
  4879. />
  4880. </div>
  4881. <div class="comment" style="min-width: 200px">
  4882. <div class="worksName">
  4883. <div>{{ w.sName }}</div>
  4884. </div>
  4885. <div class="commentList">
  4886. <div class="commentList">
  4887. <div
  4888. class="commentImg"
  4889. @click="
  4890. isLikes(w.wid, userid, 1, null, w.isLikes)
  4891. "
  4892. >
  4893. <img
  4894. :src="w.isLikes == true ? likes : noLikes"
  4895. alt=""
  4896. />
  4897. </div>
  4898. <div>{{ w.likesCount }}</div>
  4899. </div>
  4900. <div class="commentList" style="margin-right: 15px">
  4901. <div
  4902. class="commentImg"
  4903. @click="commentOther(w, toolIndex, wIndex)"
  4904. >
  4905. <img
  4906. src="../../assets/icon/comment/comment.png"
  4907. alt=""
  4908. />
  4909. </div>
  4910. <div>{{ w.commentCount }}</div>
  4911. </div>
  4912. </div>
  4913. </div>
  4914. </div>
  4915. </div>
  4916. <div class="noWorksS">
  4917. <div
  4918. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4919. :key="sIndex"
  4920. class="noWorksName"
  4921. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  4922. :class="{ isWork: s.type == '2' }"
  4923. >
  4924. {{ s.student }}
  4925. </div>
  4926. </div>
  4927. </div>
  4928. <div
  4929. v-if="
  4930. tType &&
  4931. ((tType == 2 && sIsOpen == true) ||
  4932. tType == 1 ||
  4933. tType == 4) &&
  4934. tool.tool.indexOf(26) != -1
  4935. "
  4936. class="worksBox"
  4937. >
  4938. <div
  4939. class="zuoyeYulan"
  4940. v-if="
  4941. worksStudent2.length &&
  4942. worksStudent2[toolIndex].length > 0
  4943. "
  4944. >
  4945. <div class="worksTop">
  4946. <div>作业预览</div>
  4947. <div
  4948. class="corOpen"
  4949. @click="contract(toolIndex)"
  4950. v-if="
  4951. worksStudent2[toolIndex].length > 6 &&
  4952. isCloseList[toolIndex].isClose == 0
  4953. "
  4954. >
  4955. 收缩
  4956. </div>
  4957. <div
  4958. class="corOpen"
  4959. @click="contract(toolIndex)"
  4960. v-if="isCloseList[toolIndex].isClose == 1"
  4961. >
  4962. 展开
  4963. </div>
  4964. </div>
  4965. </div>
  4966. <div
  4967. class="worksDetailBox"
  4968. v-if="
  4969. worksStudent2.length &&
  4970. worksStudent2[toolIndex].length > 0
  4971. "
  4972. >
  4973. <div
  4974. class="works"
  4975. style="width: 240px; height: 140px; overflow: hidden"
  4976. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4977. ? worksStudent2[toolIndex]
  4978. : worksStudent2[toolIndex].slice(0, 6)"
  4979. :key="wIndex"
  4980. :class="w.type == 1 ? 'isTypeOne' : ''"
  4981. >
  4982. <div class="workImg" v-if="w.type == 0">
  4983. <img :src="w.works" @click="previewImg(w.works)" alt />
  4984. <img
  4985. class="deleteImg"
  4986. src="../../assets/deleteworks.png"
  4987. v-if="w.userid == userid || tType == 1 || tType == 4"
  4988. @click.stop="deleteWorks(w.wid)"
  4989. alt
  4990. />
  4991. </div>
  4992. <div class="workImg" v-if="w.type == 1">
  4993. <img :src="word" @click="openFile(w.works)" alt />
  4994. <img
  4995. class="deleteImg"
  4996. src="../../assets/deleteworks.png"
  4997. v-if="w.userid == userid || tType == 1 || tType == 4"
  4998. @click.stop="deleteWorks(w.wid)"
  4999. alt
  5000. />
  5001. </div>
  5002. <div class="worksName">
  5003. <div>{{ w.sName }}</div>
  5004. </div>
  5005. </div>
  5006. </div>
  5007. <div class="noWorksS">
  5008. <div
  5009. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5010. :key="sIndex"
  5011. class="noWorksName"
  5012. :class="{ isWork: s.type == '2' }"
  5013. >
  5014. {{ s.student }}
  5015. </div>
  5016. </div>
  5017. </div>
  5018. <div
  5019. v-if="
  5020. tType &&
  5021. ((tType == 2 && sIsOpen == true) ||
  5022. tType == 1 ||
  5023. tType == 4) &&
  5024. tool.tool.indexOf(40) != -1
  5025. "
  5026. class="worksBox"
  5027. >
  5028. <div
  5029. class="zuoyeYulan"
  5030. v-if="
  5031. worksStudent2.length &&
  5032. worksStudent2[toolIndex].length > 0
  5033. "
  5034. >
  5035. <div class="worksTop">
  5036. <div>作业预览</div>
  5037. <div
  5038. class="corOpen"
  5039. @click="contract(toolIndex)"
  5040. v-if="
  5041. worksStudent2[toolIndex].length > 6 &&
  5042. isCloseList[toolIndex].isClose == 0
  5043. "
  5044. >
  5045. 收缩
  5046. </div>
  5047. <div
  5048. class="corOpen"
  5049. @click="contract(toolIndex)"
  5050. v-if="isCloseList[toolIndex].isClose == 1"
  5051. >
  5052. 展开
  5053. </div>
  5054. </div>
  5055. </div>
  5056. <div
  5057. class="worksDetailBox"
  5058. v-if="
  5059. worksStudent2.length &&
  5060. worksStudent2[toolIndex].length > 0
  5061. "
  5062. >
  5063. <div
  5064. class="works"
  5065. style="
  5066. width: 200px;
  5067. height: 140px;
  5068. margin: 10px 10px 10px 0;
  5069. border-radius: 15px;
  5070. box-shadow: 0 0 6px 1px #dfdada;
  5071. "
  5072. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5073. ? worksStudent2[toolIndex]
  5074. : worksStudent2[toolIndex].slice(0, 6)"
  5075. :key="wIndex"
  5076. :class="w.type == 1 ? 'isTypeOne' : ''"
  5077. >
  5078. <div class="workImg">
  5079. <img
  5080. src="../../assets/icon/works/noImg.png"
  5081. @click="openPj(w.works, toolIndex)"
  5082. alt
  5083. />
  5084. <img
  5085. class="deleteImg"
  5086. src="../../assets/deleteworks.png"
  5087. v-if="w.userid == userid || tType == 1 || tType == 4"
  5088. @click.stop="deleteWorks(w.wid)"
  5089. alt
  5090. />
  5091. </div>
  5092. <div class="comment" style="min-width: 200px">
  5093. <div class="worksName">
  5094. <div>{{ w.sName }}</div>
  5095. </div>
  5096. <div class="commentList">
  5097. <div class="commentList">
  5098. <div
  5099. class="commentImg"
  5100. @click="
  5101. isLikes(w.wid, userid, 1, null, w.isLikes)
  5102. "
  5103. >
  5104. <img
  5105. :src="w.isLikes == true ? likes : noLikes"
  5106. alt=""
  5107. />
  5108. </div>
  5109. <div>{{ w.likesCount }}</div>
  5110. </div>
  5111. <div class="commentList" style="margin-right: 15px">
  5112. <div
  5113. class="commentImg"
  5114. @click="commentOther(w, toolIndex, wIndex)"
  5115. >
  5116. <img
  5117. src="../../assets/icon/comment/comment.png"
  5118. alt=""
  5119. />
  5120. </div>
  5121. <div>{{ w.commentCount }}</div>
  5122. </div>
  5123. </div>
  5124. </div>
  5125. </div>
  5126. </div>
  5127. <div class="noWorksS">
  5128. <div
  5129. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5130. :key="sIndex"
  5131. class="noWorksName"
  5132. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5133. :class="{ isWork: s.type == '2' }"
  5134. >
  5135. {{ s.student }}
  5136. </div>
  5137. </div>
  5138. </div>
  5139. <div
  5140. v-if="
  5141. tType &&
  5142. ((tType == 2 && sIsOpen == true) ||
  5143. tType == 1 ||
  5144. tType == 4) &&
  5145. tool.tool.indexOf(41) != -1
  5146. "
  5147. class="worksBox"
  5148. >
  5149. <div class="noWorksS">
  5150. <div
  5151. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5152. :key="sIndex"
  5153. class="noWorksName"
  5154. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5155. :class="{ isWork: s.type == '2' }"
  5156. >
  5157. {{ s.student }}
  5158. </div>
  5159. </div>
  5160. <div
  5161. class="zuoyeYulan"
  5162. v-if="
  5163. worksStudent2.length &&
  5164. worksStudent2[toolIndex].length > 0
  5165. "
  5166. >
  5167. <div class="worksTop">
  5168. <div>作业预览</div>
  5169. <div
  5170. class="corOpen"
  5171. @click="contract(toolIndex)"
  5172. v-if="
  5173. worksStudent2[toolIndex].length > 6 &&
  5174. isCloseList[toolIndex].isClose == 0
  5175. "
  5176. >
  5177. 收缩
  5178. </div>
  5179. <div
  5180. class="corOpen"
  5181. @click="contract(toolIndex)"
  5182. v-if="isCloseList[toolIndex].isClose == 1"
  5183. >
  5184. 展开
  5185. </div>
  5186. </div>
  5187. </div>
  5188. <div
  5189. class="worksDetailBox"
  5190. v-if="
  5191. worksStudent2.length &&
  5192. worksStudent2[toolIndex].length > 0
  5193. "
  5194. >
  5195. <div
  5196. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5197. ? worksStudent2[toolIndex]
  5198. : worksStudent2[toolIndex].slice(0, 6)"
  5199. :key="wIndex"
  5200. class="isWorksName2"
  5201. @click="openXz(w, toolIndex)"
  5202. >
  5203. {{ w.sName }}
  5204. <img
  5205. class="deleteImg deleteImg2"
  5206. src="../../assets/deleteworks.png"
  5207. v-if="w.userid == userid || tType == 1 || tType == 4"
  5208. @click.stop="deleteWorks(w.wid)"
  5209. alt
  5210. />
  5211. </div>
  5212. </div>
  5213. </div>
  5214. <div
  5215. v-if="
  5216. tType &&
  5217. ((tType == 2 && sIsOpen == true) ||
  5218. tType == 1 ||
  5219. tType == 4) &&
  5220. tool.tool.indexOf(47) != -1
  5221. "
  5222. class="worksBox"
  5223. >
  5224. <div class="noWorksS">
  5225. <div
  5226. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5227. :key="sIndex"
  5228. class="noWorksName"
  5229. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5230. :class="{ isWork: s.type == '2' }"
  5231. >
  5232. {{ s.student }}
  5233. </div>
  5234. </div>
  5235. <div
  5236. class="zuoyeYulan"
  5237. v-if="
  5238. worksStudent2.length &&
  5239. worksStudent2[toolIndex].length > 0
  5240. "
  5241. >
  5242. <div class="worksTop">
  5243. <div>作业预览</div>
  5244. <div
  5245. class="corOpen"
  5246. @click="contract(toolIndex)"
  5247. v-if="
  5248. worksStudent2[toolIndex].length > 6 &&
  5249. isCloseList[toolIndex].isClose == 0
  5250. "
  5251. >
  5252. 收缩
  5253. </div>
  5254. <div
  5255. class="corOpen"
  5256. @click="contract(toolIndex)"
  5257. v-if="isCloseList[toolIndex].isClose == 1"
  5258. >
  5259. 展开
  5260. </div>
  5261. </div>
  5262. </div>
  5263. <div
  5264. class="worksDetailBox"
  5265. v-if="
  5266. worksStudent2.length &&
  5267. worksStudent2[toolIndex].length > 0
  5268. "
  5269. >
  5270. <!-- @click="openXz(w, toolIndex)" -->
  5271. <div
  5272. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5273. ? worksStudent2[toolIndex]
  5274. : worksStudent2[toolIndex].slice(0, 6)"
  5275. :key="wIndex"
  5276. class="isWorksName2"
  5277. @click="openSen(w, toolIndex)"
  5278. >
  5279. {{ w.sName }}
  5280. <img
  5281. class="deleteImg deleteImg2"
  5282. src="../../assets/deleteworks.png"
  5283. v-if="w.userid == userid || tType == 1 || tType == 4"
  5284. @click.stop="deleteWorks(w.wid)"
  5285. alt
  5286. />
  5287. </div>
  5288. </div>
  5289. </div>
  5290. <div
  5291. v-if="
  5292. tType &&
  5293. ((tType == 2 && sIsOpen == true) ||
  5294. tType == 1 ||
  5295. tType == 4) &&
  5296. tool.tool.indexOf(48) != -1
  5297. "
  5298. class="worksBox"
  5299. >
  5300. <div
  5301. class="zuoyeYulan"
  5302. v-if="
  5303. worksStudent2.length &&
  5304. worksStudent2[toolIndex].length > 0
  5305. "
  5306. >
  5307. <div class="worksTop">
  5308. <div>作业预览</div>
  5309. <div
  5310. class="corOpen"
  5311. @click="contract(toolIndex)"
  5312. v-if="
  5313. worksStudent2[toolIndex].length > 6 &&
  5314. isCloseList[toolIndex].isClose == 0
  5315. "
  5316. >
  5317. 收缩
  5318. </div>
  5319. <div
  5320. class="corOpen"
  5321. @click="contract(toolIndex)"
  5322. v-if="isCloseList[toolIndex].isClose == 1"
  5323. >
  5324. 展开
  5325. </div>
  5326. </div>
  5327. </div>
  5328. <div
  5329. class="worksDetailBox"
  5330. v-if="
  5331. worksStudent2.length &&
  5332. worksStudent2[toolIndex].length > 0
  5333. "
  5334. >
  5335. <div
  5336. class="works"
  5337. style="
  5338. width: 200px;
  5339. height: 140px;
  5340. margin: 10px 10px 10px 0;
  5341. border-radius: 15px;
  5342. box-shadow: 0 0 6px 1px #dfdada;
  5343. "
  5344. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5345. ? worksStudent2[toolIndex]
  5346. : worksStudent2[toolIndex].slice(0, 6)"
  5347. :key="wIndex"
  5348. :class="w.type == 1 ? 'isTypeOne' : ''"
  5349. >
  5350. <div class="workImg">
  5351. <img :src="word" @click="openTable(w)" alt />
  5352. <!-- @click="openFile(w.works)" -->
  5353. <div
  5354. class="answerScore"
  5355. v-if="w.score"
  5356. @click.stop="openScore(w)"
  5357. :class="{
  5358. rightW:
  5359. w.userid == userid ||
  5360. tType == 1 ||
  5361. tType == 4 ||
  5362. w.ateacher == userid,
  5363. }"
  5364. >
  5365. {{ JSON.parse(w.score).wScore }}分
  5366. </div>
  5367. <div
  5368. class="answerScore"
  5369. @click.stop="openScore(w)"
  5370. v-else-if="courseDetail.userid == userid"
  5371. :class="{
  5372. rightW:
  5373. w.userid == userid ||
  5374. tType == 1 ||
  5375. tType == 4 ||
  5376. w.ateacher == userid,
  5377. }"
  5378. >
  5379. 评分
  5380. </div>
  5381. <img
  5382. class="deleteImg"
  5383. src="../../assets/deleteworks.png"
  5384. v-if="w.userid == userid || tType == 1 || tType == 4"
  5385. @click.stop="deleteWorks(w.wid)"
  5386. alt
  5387. />
  5388. </div>
  5389. <div class="comment" style="min-width: 200px">
  5390. <div class="worksName">
  5391. <div>{{ w.sName }}</div>
  5392. </div>
  5393. <div class="commentList">
  5394. <div class="commentList">
  5395. <div
  5396. class="commentImg"
  5397. @click="
  5398. isLikes(w.wid, userid, 1, null, w.isLikes)
  5399. "
  5400. >
  5401. <img
  5402. :src="w.isLikes == true ? likes : noLikes"
  5403. alt=""
  5404. />
  5405. </div>
  5406. <div>{{ w.likesCount }}</div>
  5407. </div>
  5408. <div class="commentList" style="margin-right: 15px">
  5409. <div
  5410. class="commentImg"
  5411. @click="commentOther(w, toolIndex, wIndex)"
  5412. >
  5413. <img
  5414. src="../../assets/icon/comment/comment.png"
  5415. alt=""
  5416. />
  5417. </div>
  5418. <div>{{ w.commentCount }}</div>
  5419. </div>
  5420. </div>
  5421. </div>
  5422. </div>
  5423. </div>
  5424. <div class="noWorksS">
  5425. <div
  5426. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5427. :key="sIndex"
  5428. class="noWorksName"
  5429. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  5430. :class="{ isWork: s.type == '2' }"
  5431. >
  5432. {{ s.student }}
  5433. </div>
  5434. </div>
  5435. </div>
  5436. <div
  5437. v-if="
  5438. tType &&
  5439. ((tType == 2 && sIsOpen == true) ||
  5440. tType == 1 ||
  5441. tType == 4) &&
  5442. tool.tool.indexOf(52) != -1
  5443. "
  5444. class="worksBox"
  5445. >
  5446. <div
  5447. class="zuoyeYulan"
  5448. v-if="
  5449. worksStudent2.length &&
  5450. worksStudent2[toolIndex].length > 0
  5451. "
  5452. >
  5453. <div class="worksTop">
  5454. <div>作业预览</div>
  5455. <div
  5456. class="corOpen"
  5457. @click="contract(toolIndex)"
  5458. v-if="
  5459. worksStudent2[toolIndex].length > 6 &&
  5460. isCloseList[toolIndex].isClose == 0
  5461. "
  5462. >
  5463. 收缩
  5464. </div>
  5465. <div
  5466. class="corOpen"
  5467. @click="contract(toolIndex)"
  5468. v-if="isCloseList[toolIndex].isClose == 1"
  5469. >
  5470. 展开
  5471. </div>
  5472. </div>
  5473. </div>
  5474. <div
  5475. class="worksDetailBox"
  5476. v-if="
  5477. worksStudent2.length &&
  5478. worksStudent2[toolIndex].length > 0
  5479. "
  5480. >
  5481. <div
  5482. class="works"
  5483. style="
  5484. width: 200px;
  5485. height: 140px;
  5486. margin: 10px 10px 10px 0;
  5487. border-radius: 15px;
  5488. box-shadow: 0 0 6px 1px #dfdada;
  5489. "
  5490. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5491. ? worksStudent2[toolIndex]
  5492. : worksStudent2[toolIndex].slice(0, 6)"
  5493. :key="wIndex"
  5494. :class="w.type == 1 ? 'isTypeOne' : ''"
  5495. >
  5496. <div class="workImg">
  5497. <img :src="word" @click="openWord(w)" alt />
  5498. <!-- @click="openFile(w.works)" -->
  5499. <div
  5500. class="answerScore"
  5501. v-if="w.score"
  5502. @click.stop="openScore(w)"
  5503. :class="{
  5504. rightW:
  5505. w.userid == userid ||
  5506. tType == 1 ||
  5507. tType == 4 ||
  5508. w.ateacher == userid,
  5509. }"
  5510. >
  5511. {{ JSON.parse(w.score).wScore }}分
  5512. </div>
  5513. <div
  5514. class="answerScore"
  5515. @click.stop="openScore(w)"
  5516. v-else-if="courseDetail.userid == userid"
  5517. :class="{
  5518. rightW:
  5519. w.userid == userid ||
  5520. tType == 1 ||
  5521. tType == 4 ||
  5522. w.ateacher == userid,
  5523. }"
  5524. >
  5525. 评分
  5526. </div>
  5527. <img
  5528. class="deleteImg"
  5529. src="../../assets/deleteworks.png"
  5530. v-if="w.userid == userid || tType == 1 || tType == 4"
  5531. @click.stop="deleteWorks(w.wid)"
  5532. alt
  5533. />
  5534. </div>
  5535. <div class="comment" style="min-width: 200px">
  5536. <div class="worksName">
  5537. <div>{{ w.sName }}</div>
  5538. </div>
  5539. <div class="commentList">
  5540. <div class="commentList">
  5541. <div
  5542. class="commentImg"
  5543. @click="
  5544. isLikes(w.wid, userid, 1, null, w.isLikes)
  5545. "
  5546. >
  5547. <img
  5548. :src="w.isLikes == true ? likes : noLikes"
  5549. alt=""
  5550. />
  5551. </div>
  5552. <div>{{ w.likesCount }}</div>
  5553. </div>
  5554. <div class="commentList" style="margin-right: 15px">
  5555. <div
  5556. class="commentImg"
  5557. @click="commentOther(w, toolIndex, wIndex)"
  5558. >
  5559. <img
  5560. src="../../assets/icon/comment/comment.png"
  5561. alt=""
  5562. />
  5563. </div>
  5564. <div>{{ w.commentCount }}</div>
  5565. </div>
  5566. </div>
  5567. </div>
  5568. </div>
  5569. </div>
  5570. <div class="noWorksS">
  5571. <div
  5572. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5573. :key="sIndex"
  5574. class="noWorksName"
  5575. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  5576. :class="{ isWork: s.type == '2' }"
  5577. >
  5578. {{ s.student }}
  5579. </div>
  5580. </div>
  5581. </div>
  5582. </div>
  5583. </div>
  5584. <div
  5585. class="vedioBox"
  5586. style="border-radius: 0 0 20px 20px"
  5587. v-if="
  5588. arrayToArray(tool.tool, isWorkTool).length &&
  5589. (noWorksS[toolIndex].length || worksStudent[toolIndex].length)
  5590. "
  5591. >
  5592. <!-- <div
  5593. class="queTop"
  5594. style="
  5595. font-size: 20px;
  5596. padding: 15px 0 15px 30px;
  5597. font-weight: bold;
  5598. "
  5599. >
  5600. 工作区
  5601. </div> -->
  5602. <div class="tool_work_box">
  5603. <div
  5604. v-if="
  5605. tType &&
  5606. ((tType == 2 && sIsOpen == true) ||
  5607. tType == 1 ||
  5608. tType == 4) &&
  5609. tool.tool.indexOf(16) != -1
  5610. "
  5611. class="worksBox"
  5612. >
  5613. <div
  5614. class="zuoyeYulan"
  5615. v-if="
  5616. worksStudent.length && worksStudent[toolIndex].length > 0
  5617. "
  5618. >
  5619. <div class="worksTop">
  5620. <div>作业预览</div>
  5621. <div
  5622. class="corOpen"
  5623. @click="contract(toolIndex)"
  5624. v-if="
  5625. worksStudent[toolIndex].length > 6 &&
  5626. isCloseList[toolIndex].isClose == 0
  5627. "
  5628. >
  5629. 收缩
  5630. </div>
  5631. <div
  5632. class="corOpen"
  5633. @click="contract(toolIndex)"
  5634. v-if="isCloseList[toolIndex].isClose == 1"
  5635. >
  5636. 展开
  5637. </div>
  5638. </div>
  5639. </div>
  5640. <div
  5641. class="worksDetailBox"
  5642. v-if="
  5643. worksStudent.length && worksStudent[toolIndex].length > 0
  5644. "
  5645. >
  5646. <div
  5647. class="works"
  5648. style="
  5649. width: 200px;
  5650. height: 140px;
  5651. margin: 10px 10px 10px 0;
  5652. border-radius: 15px;
  5653. box-shadow: 0 0 6px 1px #dfdada;
  5654. "
  5655. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5656. ? worksStudent[toolIndex]
  5657. : worksStudent[toolIndex].slice(0, 6)"
  5658. :key="wIndex"
  5659. :class="w.type == 1 ? 'isTypeOne' : ''"
  5660. >
  5661. <div class="workImg" v-if="w.type == 0">
  5662. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  5663. <img :src="w.works" @click="previewImg(w.works)" alt />
  5664. <div
  5665. class="answerScore"
  5666. v-if="w.score"
  5667. @click.stop="openScore(w)"
  5668. :class="{
  5669. rightW:
  5670. w.userid == userid ||
  5671. tType == 1 ||
  5672. tType == 4 ||
  5673. w.ateacher == userid,
  5674. }"
  5675. >
  5676. {{ JSON.parse(w.score).wScore }}分
  5677. </div>
  5678. <div
  5679. class="answerScore"
  5680. @click.stop="openScore(w)"
  5681. v-else-if="courseDetail.userid == userid"
  5682. :class="{
  5683. rightW:
  5684. w.userid == userid ||
  5685. tType == 1 ||
  5686. tType == 4 ||
  5687. w.ateacher == userid,
  5688. }"
  5689. >
  5690. 评分
  5691. </div>
  5692. <img
  5693. class="deleteImg"
  5694. src="../../assets/deleteworks.png"
  5695. v-if="w.userid == userid || tType == 1 || tType == 4"
  5696. @click.stop="deleteWorks(w.wid)"
  5697. alt
  5698. />
  5699. </div>
  5700. <div class="workImg" v-if="w.type == 1">
  5701. <img :src="word" @click="openFile(w.works)" alt />
  5702. <!-- @click="openFile(w.works)" -->
  5703. <div
  5704. class="answerScore"
  5705. v-if="w.score"
  5706. @click.stop="openScore(w)"
  5707. :class="{
  5708. rightW:
  5709. w.userid == userid ||
  5710. tType == 1 ||
  5711. tType == 4 ||
  5712. w.ateacher == userid,
  5713. }"
  5714. >
  5715. {{ JSON.parse(w.score).wScore }}分
  5716. </div>
  5717. <div
  5718. class="answerScore"
  5719. @click.stop="openScore(w)"
  5720. v-else-if="courseDetail.userid == userid"
  5721. :class="{
  5722. rightW:
  5723. w.userid == userid ||
  5724. tType == 1 ||
  5725. tType == 4 ||
  5726. w.ateacher == userid,
  5727. }"
  5728. >
  5729. 评分
  5730. </div>
  5731. <img
  5732. class="deleteImg"
  5733. src="../../assets/deleteworks.png"
  5734. v-if="w.userid == userid || tType == 1 || tType == 4"
  5735. @click.stop="deleteWorks(w.wid)"
  5736. alt
  5737. />
  5738. </div>
  5739. <div class="workImg" v-if="w.type == 3">
  5740. <img
  5741. style="cursor: pointer"
  5742. :src="video"
  5743. @click="openVideo(w)"
  5744. alt
  5745. />
  5746. <!-- @click="openVideo(w.works)" -->
  5747. <div
  5748. class="answerScore"
  5749. v-if="w.score"
  5750. @click.stop="openScore(w)"
  5751. :class="{
  5752. rightW:
  5753. w.userid == userid ||
  5754. tType == 1 ||
  5755. tType == 4 ||
  5756. w.ateacher == userid,
  5757. }"
  5758. >
  5759. {{ JSON.parse(w.score).wScore }}分
  5760. </div>
  5761. <div
  5762. class="answerScore"
  5763. @click.stop="openScore(w)"
  5764. v-else-if="courseDetail.userid == userid"
  5765. :class="{
  5766. rightW:
  5767. w.userid == userid ||
  5768. tType == 1 ||
  5769. tType == 4 ||
  5770. w.ateacher == userid,
  5771. }"
  5772. >
  5773. 评分
  5774. </div>
  5775. <img
  5776. class="deleteImg"
  5777. src="../../assets/deleteworks.png"
  5778. v-if="w.userid == userid || tType == 1 || tType == 4"
  5779. @click.stop="deleteWorks(w.wid)"
  5780. alt
  5781. />
  5782. </div>
  5783. <div class="workImg" v-if="w.type == 12">
  5784. <img
  5785. style="cursor: pointer"
  5786. :src="word2"
  5787. @click="downloadFile(w.works)"
  5788. alt
  5789. />
  5790. <!-- @click="openVideo(w.works)" -->
  5791. <div
  5792. class="answerScore"
  5793. v-if="w.score"
  5794. @click.stop="openScore(w)"
  5795. :class="{
  5796. rightW:
  5797. w.userid == userid ||
  5798. tType == 1 ||
  5799. tType == 4 ||
  5800. w.ateacher == userid,
  5801. }"
  5802. >
  5803. {{ JSON.parse(w.score).wScore }}分
  5804. </div>
  5805. <div
  5806. class="answerScore"
  5807. @click.stop="openScore(w)"
  5808. v-else-if="courseDetail.userid == userid"
  5809. :class="{
  5810. rightW:
  5811. w.userid == userid ||
  5812. tType == 1 ||
  5813. tType == 4 ||
  5814. w.ateacher == userid,
  5815. }"
  5816. >
  5817. 评分
  5818. </div>
  5819. <img
  5820. class="deleteImg"
  5821. src="../../assets/deleteworks.png"
  5822. v-if="w.userid == userid || tType == 1 || tType == 4"
  5823. @click.stop="deleteWorks(w.wid)"
  5824. alt
  5825. />
  5826. </div>
  5827. <div class="comment" style="min-width: 200px">
  5828. <div class="worksName">
  5829. <div>{{ w.sName }}</div>
  5830. </div>
  5831. <div class="commentList">
  5832. <div class="commentList">
  5833. <div
  5834. class="commentImg"
  5835. @click="
  5836. isLikes(w.wid, userid, 1, null, w.isLikes)
  5837. "
  5838. >
  5839. <img
  5840. :src="w.isLikes == true ? likes : noLikes"
  5841. alt=""
  5842. />
  5843. </div>
  5844. <div>{{ w.likesCount }}</div>
  5845. </div>
  5846. <div class="commentList" style="margin-right: 15px">
  5847. <div
  5848. class="commentImg"
  5849. @click="commentOther(w, toolIndex, wIndex)"
  5850. >
  5851. <img
  5852. src="../../assets/icon/comment/comment.png"
  5853. alt=""
  5854. />
  5855. </div>
  5856. <div>{{ w.commentCount }}</div>
  5857. </div>
  5858. </div>
  5859. </div>
  5860. </div>
  5861. </div>
  5862. <div class="noWorksS">
  5863. <div
  5864. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5865. :key="sIndex"
  5866. class="noWorksName"
  5867. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  5868. :class="{ isWork: s.type == '2' }"
  5869. >
  5870. {{ s.student }}
  5871. </div>
  5872. </div>
  5873. </div>
  5874. <div
  5875. v-if="
  5876. tType &&
  5877. ((tType == 2 && sIsOpen == true) ||
  5878. tType == 1 ||
  5879. tType == 4) &&
  5880. tool.tool.indexOf(32) != -1
  5881. "
  5882. class="worksBox"
  5883. >
  5884. <div
  5885. class="zuoyeYulan"
  5886. v-if="
  5887. worksStudent.length && worksStudent[toolIndex].length > 0
  5888. "
  5889. >
  5890. <div class="worksTop">
  5891. <div>作业预览</div>
  5892. <div
  5893. class="corOpen"
  5894. @click="contract(toolIndex)"
  5895. v-if="
  5896. worksStudent[toolIndex].length > 6 &&
  5897. isCloseList[toolIndex].isClose == 0
  5898. "
  5899. >
  5900. 收缩
  5901. </div>
  5902. <div
  5903. class="corOpen"
  5904. @click="contract(toolIndex)"
  5905. v-if="isCloseList[toolIndex].isClose == 1"
  5906. >
  5907. 展开
  5908. </div>
  5909. </div>
  5910. </div>
  5911. <div
  5912. class="worksDetailBox"
  5913. v-if="
  5914. worksStudent.length && worksStudent[toolIndex].length > 0
  5915. "
  5916. >
  5917. <div
  5918. class="works"
  5919. style="
  5920. width: 200px;
  5921. height: 140px;
  5922. margin: 10px 10px 10px 0;
  5923. border-radius: 15px;
  5924. box-shadow: 0 0 6px 1px #dfdada;
  5925. "
  5926. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5927. ? worksStudent[toolIndex]
  5928. : worksStudent[toolIndex].slice(0, 6)"
  5929. :key="wIndex"
  5930. :class="w.type == 1 ? 'isTypeOne' : ''"
  5931. >
  5932. <div class="workImg">
  5933. <img :src="word2" @click="downloadFile(w.works)" alt />
  5934. <div
  5935. class="answerScore"
  5936. v-if="w.score"
  5937. @click.stop="openScore(w)"
  5938. :class="{
  5939. rightW:
  5940. w.userid == userid ||
  5941. tType == 1 ||
  5942. tType == 4 ||
  5943. w.ateacher == userid,
  5944. }"
  5945. >
  5946. {{ JSON.parse(w.score).wScore }}分
  5947. </div>
  5948. <div
  5949. class="answerScore"
  5950. @click.stop="openScore(w)"
  5951. v-else-if="courseDetail.userid == userid"
  5952. :class="{
  5953. rightW:
  5954. w.userid == userid ||
  5955. tType == 1 ||
  5956. tType == 4 ||
  5957. w.ateacher == userid,
  5958. }"
  5959. >
  5960. 评分
  5961. </div>
  5962. <img
  5963. class="deleteImg"
  5964. src="../../assets/deleteworks.png"
  5965. v-if="w.userid == userid || tType == 1 || tType == 4"
  5966. @click.stop="deleteWorks(w.wid)"
  5967. alt
  5968. />
  5969. </div>
  5970. <div class="comment" style="min-width: 200px">
  5971. <div class="worksName">
  5972. <div>{{ w.sName }}</div>
  5973. </div>
  5974. <div class="commentList">
  5975. <div class="commentList">
  5976. <div
  5977. class="commentImg"
  5978. @click="
  5979. isLikes(w.wid, userid, 1, null, w.isLikes)
  5980. "
  5981. >
  5982. <img
  5983. :src="w.isLikes == true ? likes : noLikes"
  5984. alt=""
  5985. />
  5986. </div>
  5987. <div>{{ w.likesCount }}</div>
  5988. </div>
  5989. <div class="commentList" style="margin-right: 15px">
  5990. <div
  5991. class="commentImg"
  5992. @click="commentOther(w, toolIndex, wIndex)"
  5993. >
  5994. <img
  5995. src="../../assets/icon/comment/comment.png"
  5996. alt=""
  5997. />
  5998. </div>
  5999. <div>{{ w.commentCount }}</div>
  6000. </div>
  6001. </div>
  6002. </div>
  6003. </div>
  6004. </div>
  6005. <div class="noWorksS">
  6006. <div
  6007. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6008. :key="sIndex"
  6009. class="noWorksName"
  6010. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  6011. :class="{ isWork: s.type == '2' }"
  6012. >
  6013. {{ s.student }}
  6014. </div>
  6015. </div>
  6016. </div>
  6017. <div
  6018. v-if="
  6019. tType &&
  6020. ((tType == 2 && sIsOpen == true) ||
  6021. tType == 1 ||
  6022. tType == 4) &&
  6023. tool.tool.indexOf(57) != -1
  6024. "
  6025. class="worksBox"
  6026. >
  6027. <div
  6028. class="zuoyeYulan"
  6029. v-if="
  6030. worksStudent.length && worksStudent[toolIndex].length > 0
  6031. "
  6032. >
  6033. <div class="worksTop">
  6034. <div>作业预览</div>
  6035. <div
  6036. class="corOpen"
  6037. @click="contract(toolIndex)"
  6038. v-if="
  6039. worksStudent[toolIndex].length > 6 &&
  6040. isCloseList[toolIndex].isClose == 0
  6041. "
  6042. >
  6043. 收缩
  6044. </div>
  6045. <div
  6046. class="corOpen"
  6047. @click="contract(toolIndex)"
  6048. v-if="isCloseList[toolIndex].isClose == 1"
  6049. >
  6050. 展开
  6051. </div>
  6052. </div>
  6053. </div>
  6054. <div
  6055. class="worksDetailBox"
  6056. v-if="
  6057. worksStudent.length && worksStudent[toolIndex].length > 0
  6058. "
  6059. >
  6060. <div
  6061. class="works"
  6062. style="
  6063. width: 200px;
  6064. height: 140px;
  6065. margin: 10px 10px 10px 0;
  6066. border-radius: 15px;
  6067. box-shadow: 0 0 6px 1px #dfdada;
  6068. "
  6069. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6070. ? worksStudent[toolIndex]
  6071. : worksStudent[toolIndex].slice(0, 6)"
  6072. :key="wIndex"
  6073. :class="w.type == 1 ? 'isTypeOne' : ''"
  6074. >
  6075. <div class="workImg">
  6076. <img
  6077. :src="word2"
  6078. @click="downloadFile(w.works)"
  6079. v-if="w.type == 12"
  6080. alt
  6081. />
  6082. <img
  6083. :src="word2"
  6084. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  6085. v-else-if="w.type == 15"
  6086. alt
  6087. />
  6088. <div
  6089. class="answerScore"
  6090. v-if="w.score"
  6091. @click.stop="openScore(w)"
  6092. :class="{
  6093. rightW:
  6094. w.userid == userid ||
  6095. tType == 1 ||
  6096. tType == 4 ||
  6097. w.ateacher == userid,
  6098. }"
  6099. >
  6100. {{ JSON.parse(w.score).wScore }}分
  6101. </div>
  6102. <div
  6103. class="answerScore"
  6104. @click.stop="openScore(w)"
  6105. v-else-if="courseDetail.userid == userid"
  6106. :class="{
  6107. rightW:
  6108. w.userid == userid ||
  6109. tType == 1 ||
  6110. tType == 4 ||
  6111. w.ateacher == userid,
  6112. }"
  6113. >
  6114. 评分
  6115. </div>
  6116. <img
  6117. class="deleteImg"
  6118. src="../../assets/deleteworks.png"
  6119. v-if="w.userid == userid || tType == 1 || tType == 4"
  6120. @click.stop="deleteWorks(w.wid)"
  6121. alt
  6122. />
  6123. </div>
  6124. <div class="comment" style="min-width: 200px">
  6125. <div class="worksName">
  6126. <div>{{ w.sName }}</div>
  6127. </div>
  6128. <div class="commentList">
  6129. <div class="commentList">
  6130. <div
  6131. class="commentImg"
  6132. @click="
  6133. isLikes(w.wid, userid, 1, null, w.isLikes)
  6134. "
  6135. >
  6136. <img
  6137. :src="w.isLikes == true ? likes : noLikes"
  6138. alt=""
  6139. />
  6140. </div>
  6141. <div>{{ w.likesCount }}</div>
  6142. </div>
  6143. <div class="commentList" style="margin-right: 15px">
  6144. <div
  6145. class="commentImg"
  6146. @click="commentOther(w, toolIndex, wIndex)"
  6147. >
  6148. <img
  6149. src="../../assets/icon/comment/comment.png"
  6150. alt=""
  6151. />
  6152. </div>
  6153. <div>{{ w.commentCount }}</div>
  6154. </div>
  6155. </div>
  6156. </div>
  6157. </div>
  6158. </div>
  6159. <div class="noWorksS">
  6160. <div
  6161. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6162. :key="sIndex"
  6163. class="noWorksName"
  6164. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  6165. :class="{ isWork: s.type == '2' }"
  6166. >
  6167. {{ s.student }}
  6168. </div>
  6169. </div>
  6170. </div>
  6171. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  6172. <div
  6173. class="zuoyeYulan"
  6174. v-if="
  6175. worksStudent.length && worksStudent[toolIndex].length > 0
  6176. "
  6177. >
  6178. <span>作业预览</span>
  6179. <div
  6180. class="corOpen"
  6181. @click="contract(toolIndex)"
  6182. v-if="
  6183. worksStudent[toolIndex].length > 6 &&
  6184. isCloseList[toolIndex].isClose == 0
  6185. "
  6186. >
  6187. 收缩
  6188. </div>
  6189. <div
  6190. class="corOpen"
  6191. @click="contract(toolIndex)"
  6192. v-if="isCloseList[toolIndex].isClose == 1"
  6193. >
  6194. 展开
  6195. </div>
  6196. </div>
  6197. <div
  6198. class="worksDetailBox"
  6199. v-if="
  6200. worksStudent.length && worksStudent[toolIndex].length > 0
  6201. "
  6202. >
  6203. <div
  6204. class="works"
  6205. style="
  6206. width: 200px;
  6207. height: 140px;
  6208. margin: 10px 10px 10px 0;
  6209. border-radius: 15px;
  6210. box-shadow: 0 0 6px 1px #dfdada;
  6211. "
  6212. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6213. ? worksStudent[toolIndex]
  6214. : worksStudent[toolIndex].slice(0, 6)"
  6215. :key="wIndex"
  6216. :class="w.type == 1 ? 'isTypeOne' : ''"
  6217. >
  6218. <div class="workImg" v-if="w.type == 0">
  6219. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6220. <img :src="w.works" @click="previewImg(w.works)" alt />
  6221. <div
  6222. class="answerScore"
  6223. v-if="w.score"
  6224. @click.stop="openScore(w)"
  6225. :class="{
  6226. rightW:
  6227. w.userid == userid ||
  6228. tType == 1 ||
  6229. tType == 4 ||
  6230. w.ateacher == userid,
  6231. }"
  6232. >
  6233. {{ JSON.parse(w.score).wScore }}分
  6234. </div>
  6235. <div
  6236. class="answerScore"
  6237. @click.stop="openScore(w)"
  6238. v-else-if="courseDetail.userid == userid"
  6239. :class="{
  6240. rightW:
  6241. w.userid == userid ||
  6242. tType == 1 ||
  6243. tType == 4 ||
  6244. w.ateacher == userid,
  6245. }"
  6246. >
  6247. 评分
  6248. </div>
  6249. <img
  6250. class="deleteImg"
  6251. src="../../assets/deleteworks.png"
  6252. v-if="w.userid == userid || tType == 1 || tType == 4"
  6253. @click.stop="deleteWorks(w.wid)"
  6254. alt
  6255. />
  6256. </div>
  6257. <div
  6258. class="workImg"
  6259. style="cursor: pointer"
  6260. v-if="w.type == 1"
  6261. >
  6262. <img :src="word" @click="openFile(w.works)" alt />
  6263. <!-- @click="openFile(w.works)" -->
  6264. <div
  6265. class="answerScore"
  6266. v-if="w.score"
  6267. @click.stop="openScore(w)"
  6268. :class="{
  6269. rightW:
  6270. w.userid == userid ||
  6271. tType == 1 ||
  6272. tType == 4 ||
  6273. w.ateacher == userid,
  6274. }"
  6275. >
  6276. {{ JSON.parse(w.score).wScore }}分
  6277. </div>
  6278. <div
  6279. class="answerScore"
  6280. @click.stop="openScore(w)"
  6281. v-else-if="courseDetail.userid == userid"
  6282. :class="{
  6283. rightW:
  6284. w.userid == userid ||
  6285. tType == 1 ||
  6286. tType == 4 ||
  6287. w.ateacher == userid,
  6288. }"
  6289. >
  6290. 评分
  6291. </div>
  6292. <img
  6293. class="deleteImg"
  6294. src="../../assets/deleteworks.png"
  6295. v-if="w.userid == userid || tType == 1 || tType == 4"
  6296. @click.stop="deleteWorks(w.wid)"
  6297. alt
  6298. />
  6299. </div>
  6300. <div class="workImg" v-if="w.type == 3">
  6301. <img
  6302. style="cursor: pointer"
  6303. :src="video"
  6304. @click="openVideo(w)"
  6305. alt
  6306. />
  6307. <!-- @click="openVideo(w.works)" -->
  6308. <div
  6309. class="answerScore"
  6310. v-if="w.score"
  6311. @click.stop="openScore(w)"
  6312. :class="{
  6313. rightW:
  6314. w.userid == userid ||
  6315. tType == 1 ||
  6316. tType == 4 ||
  6317. w.ateacher == userid,
  6318. }"
  6319. >
  6320. {{ JSON.parse(w.score).wScore }}分
  6321. </div>
  6322. <div
  6323. class="answerScore"
  6324. @click.stop="openScore(w)"
  6325. v-else-if="courseDetail.userid == userid"
  6326. :class="{
  6327. rightW:
  6328. w.userid == userid ||
  6329. tType == 1 ||
  6330. tType == 4 ||
  6331. w.ateacher == userid,
  6332. }"
  6333. >
  6334. 评分
  6335. </div>
  6336. <img
  6337. class="deleteImg"
  6338. src="../../assets/deleteworks.png"
  6339. v-if="w.userid == userid || tType == 1 || tType == 4"
  6340. @click.stop="deleteWorks(w.wid)"
  6341. alt
  6342. />
  6343. </div>
  6344. <div class="comment" style="min-width: 200px">
  6345. <div class="worksName">
  6346. <div
  6347. style="cursor: pointer"
  6348. @click="
  6349. openSname(w.sName, w.wid, toolIndex, w.userid)
  6350. "
  6351. >
  6352. {{ w.sName }}
  6353. </div>
  6354. </div>
  6355. <div class="commentList">
  6356. <div class="commentList">
  6357. <div
  6358. class="commentImg"
  6359. @click="
  6360. isLikes(w.wid, userid, 1, null, w.isLikes)
  6361. "
  6362. >
  6363. <img
  6364. :src="w.isLikes == true ? likes : noLikes"
  6365. alt=""
  6366. />
  6367. </div>
  6368. <div>{{ w.likesCount }}</div>
  6369. </div>
  6370. <div class="commentList" style="margin-right: 15px">
  6371. <div
  6372. class="commentImg"
  6373. @click="commentOther(w, toolIndex, wIndex)"
  6374. >
  6375. <img
  6376. src="../../assets/icon/comment/comment.png"
  6377. alt=""
  6378. />
  6379. </div>
  6380. <div>{{ w.commentCount }}</div>
  6381. </div>
  6382. </div>
  6383. </div>
  6384. </div>
  6385. </div>
  6386. <div class="noWorksS">
  6387. <div
  6388. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6389. :key="sIndex"
  6390. class="noWorksName"
  6391. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  6392. :class="{ isWork: s.type == '2' }"
  6393. >
  6394. {{ s.student }}
  6395. </div>
  6396. </div>
  6397. </div>
  6398. <div
  6399. v-if="
  6400. tType &&
  6401. ((tType == 2 && sIsOpen == true) ||
  6402. tType == 1 ||
  6403. tType == 4) &&
  6404. tool.tool.indexOf(4) != -1
  6405. "
  6406. class="worksBox"
  6407. >
  6408. <div
  6409. class="zuoyeYulan"
  6410. v-if="
  6411. worksStudent.length && worksStudent[toolIndex].length > 0
  6412. "
  6413. >
  6414. <div class="worksTop">
  6415. <div>作业预览</div>
  6416. <div
  6417. class="corOpen"
  6418. @click="contract(toolIndex)"
  6419. v-if="
  6420. worksStudent[toolIndex].length > 6 &&
  6421. isCloseList[toolIndex].isClose == 0
  6422. "
  6423. >
  6424. 收缩
  6425. </div>
  6426. <div
  6427. class="corOpen"
  6428. @click="contract(toolIndex)"
  6429. v-if="isCloseList[toolIndex].isClose == 1"
  6430. >
  6431. 展开
  6432. </div>
  6433. </div>
  6434. </div>
  6435. <div>
  6436. <div
  6437. class="worksDetailBox"
  6438. v-if="
  6439. worksStudent.length &&
  6440. worksStudent[toolIndex].length > 0
  6441. "
  6442. >
  6443. <div
  6444. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6445. 0
  6446. ? worksStudent[toolIndex]
  6447. : worksStudent[toolIndex].slice(0, 6)"
  6448. :key="wIndex"
  6449. class="isWorksName2"
  6450. @click="
  6451. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6452. "
  6453. >
  6454. {{ w.sName }}
  6455. <img
  6456. class="deleteImg deleteImg2"
  6457. src="../../assets/deleteworks.png"
  6458. v-if="w.userid == userid || tType == 1 || tType == 4"
  6459. @click.stop="deleteWorks(w.wid)"
  6460. alt
  6461. />
  6462. </div>
  6463. </div>
  6464. </div>
  6465. <div class="noWorksS">
  6466. <div
  6467. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6468. :key="sIndex"
  6469. class="noWorksName"
  6470. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6471. :class="{ isWork: s.type == '2' }"
  6472. >
  6473. {{ s.student }}
  6474. </div>
  6475. </div>
  6476. </div>
  6477. <div
  6478. v-if="
  6479. tType &&
  6480. ((tType == 2 && sIsOpen == true) ||
  6481. tType == 1 ||
  6482. tType == 4) &&
  6483. tool.tool.indexOf(45) != -1
  6484. "
  6485. class="worksBox"
  6486. >
  6487. <div
  6488. class="zuoyeYulan"
  6489. v-if="
  6490. worksStudent.length && worksStudent[toolIndex].length > 0
  6491. "
  6492. >
  6493. <div class="worksTop">
  6494. <div>作业预览</div>
  6495. <div
  6496. class="corOpen"
  6497. @click="contract(toolIndex)"
  6498. v-if="
  6499. worksStudent[toolIndex].length > 6 &&
  6500. isCloseList[toolIndex].isClose == 0
  6501. "
  6502. >
  6503. 收缩
  6504. </div>
  6505. <div
  6506. class="corOpen"
  6507. @click="contract(toolIndex)"
  6508. v-if="isCloseList[toolIndex].isClose == 1"
  6509. >
  6510. 展开
  6511. </div>
  6512. </div>
  6513. </div>
  6514. <div>
  6515. <div
  6516. class="worksDetailBox"
  6517. v-if="
  6518. worksStudent.length &&
  6519. worksStudent[toolIndex].length > 0
  6520. "
  6521. >
  6522. <div
  6523. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6524. 0
  6525. ? worksStudent[toolIndex]
  6526. : worksStudent[toolIndex].slice(0, 6)"
  6527. :key="wIndex"
  6528. class="isWorksName2"
  6529. @click="
  6530. openTools(45, toolIndex, taskCount, w.works, w.sName)
  6531. "
  6532. >
  6533. {{ w.sName }}
  6534. <img
  6535. class="deleteImg deleteImg2"
  6536. src="../../assets/deleteworks.png"
  6537. v-if="w.userid == userid || tType == 1 || tType == 4"
  6538. @click.stop="deleteWorks(w.wid)"
  6539. alt
  6540. />
  6541. </div>
  6542. </div>
  6543. </div>
  6544. <div class="noWorksS">
  6545. <div
  6546. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6547. :key="sIndex"
  6548. class="noWorksName"
  6549. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  6550. :class="{ isWork: s.type == '2' }"
  6551. >
  6552. {{ s.student }}
  6553. </div>
  6554. </div>
  6555. </div>
  6556. <div
  6557. v-if="
  6558. tType &&
  6559. ((tType == 2 && sIsOpen == true) ||
  6560. tType == 1 ||
  6561. tType == 4) &&
  6562. tool.tool.indexOf(15) != -1
  6563. "
  6564. class="worksBox"
  6565. >
  6566. <div
  6567. class="zuoyeYulan"
  6568. v-if="
  6569. worksStudent.length && worksStudent[toolIndex].length > 0
  6570. "
  6571. >
  6572. <div class="worksTop">
  6573. <div>作业预览</div>
  6574. <div
  6575. class="corOpen"
  6576. @click="contract(toolIndex)"
  6577. v-if="
  6578. worksStudent[toolIndex].length > 6 &&
  6579. isCloseList[toolIndex].isClose == 0
  6580. "
  6581. >
  6582. 收缩
  6583. </div>
  6584. <div
  6585. class="corOpen"
  6586. @click="contract(toolIndex)"
  6587. v-if="isCloseList[toolIndex].isClose == 1"
  6588. >
  6589. 展开
  6590. </div>
  6591. </div>
  6592. </div>
  6593. <div
  6594. class="worksDetailBox"
  6595. v-if="
  6596. worksStudent.length && worksStudent[toolIndex].length > 0
  6597. "
  6598. >
  6599. <div
  6600. class="works"
  6601. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6602. ? worksStudent[toolIndex]
  6603. : worksStudent[toolIndex].slice(0, 6)"
  6604. :key="wIndex"
  6605. >
  6606. <div
  6607. class="workImg"
  6608. style="
  6609. border-radius: 15px;
  6610. box-shadow: #eee 0px 0px 5px 5px;
  6611. "
  6612. >
  6613. <!-- <img
  6614. src="../../assets/icon/works/noImg.png"
  6615. @click="openTools(15, toolIndex, taskCount, w.works)"
  6616. alt=""
  6617. />-->
  6618. <div
  6619. class="answerBg"
  6620. style="border-radius: 15px 15px 0 0"
  6621. @click="commentOther(w, toolIndex, wIndex)"
  6622. >
  6623. <!-- <div>{{ w.sName }}</div> -->
  6624. <div class="answerContent">
  6625. {{ JSON.parse(w.works)[0].answer }}
  6626. </div>
  6627. <div
  6628. class="answerScore"
  6629. v-if="w.score"
  6630. @click.stop="openScore(w)"
  6631. :class="{
  6632. rightW:
  6633. w.userid == userid || tType == 1 || tType == 4,
  6634. }"
  6635. >
  6636. {{ JSON.parse(w.score).wScore }}分
  6637. </div>
  6638. <div
  6639. class="answerScore"
  6640. @click.stop="openScore(w)"
  6641. v-else-if="courseDetail.userid == userid"
  6642. :class="{
  6643. rightW:
  6644. w.userid == userid || tType == 1 || tType == 4,
  6645. }"
  6646. >
  6647. 评分
  6648. </div>
  6649. <img
  6650. class="deleteImg"
  6651. src="../../assets/deleteworks.png"
  6652. v-if="
  6653. w.userid == userid || tType == 1 || tType == 4
  6654. "
  6655. @click.stop="deleteWorks(w.wid)"
  6656. alt
  6657. />
  6658. </div>
  6659. <div class="comment">
  6660. <div class="worksName">
  6661. <div>{{ w.sName }}</div>
  6662. </div>
  6663. <div class="commentList">
  6664. <div
  6665. class="commentImg"
  6666. @click="
  6667. isLikes(w.wid, userid, 1, null, w.isLikes)
  6668. "
  6669. >
  6670. <img
  6671. :src="w.isLikes == true ? likes : noLikes"
  6672. alt=""
  6673. />
  6674. </div>
  6675. <div>{{ w.likesCount }}</div>
  6676. </div>
  6677. <div class="commentList" style="margin-right: 15px">
  6678. <div
  6679. class="commentImg"
  6680. @click="commentOther(w, toolIndex, wIndex)"
  6681. >
  6682. <img
  6683. src="../../assets/icon/comment/comment.png"
  6684. alt=""
  6685. />
  6686. </div>
  6687. <div>{{ w.commentCount }}</div>
  6688. </div>
  6689. </div>
  6690. </div>
  6691. </div>
  6692. </div>
  6693. <div class="noWorksS">
  6694. <div
  6695. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6696. :key="sIndex"
  6697. class="noWorksName"
  6698. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6699. :class="{ isWork: s.type == '2' }"
  6700. >
  6701. {{ s.student }}
  6702. </div>
  6703. </div>
  6704. </div>
  6705. <div
  6706. v-if="
  6707. tType &&
  6708. ((tType == 2 && sIsOpen == true) ||
  6709. tType == 1 ||
  6710. tType == 4) &&
  6711. tool.tool.indexOf(1) != -1
  6712. "
  6713. class="worksBox"
  6714. >
  6715. <div
  6716. class="zuoyeYulan"
  6717. v-if="
  6718. worksStudent.length && worksStudent[toolIndex].length > 0
  6719. "
  6720. >
  6721. <div class="worksTop">
  6722. <div>作业预览</div>
  6723. <div
  6724. class="corOpen"
  6725. @click="contract(toolIndex)"
  6726. v-if="
  6727. worksStudent[toolIndex].length > 6 &&
  6728. isCloseList[toolIndex].isClose == 0
  6729. "
  6730. >
  6731. 收缩
  6732. </div>
  6733. <div
  6734. class="corOpen"
  6735. @click="contract(toolIndex)"
  6736. v-if="isCloseList[toolIndex].isClose == 1"
  6737. >
  6738. 展开
  6739. </div>
  6740. </div>
  6741. </div>
  6742. <div
  6743. class="worksDetailBox"
  6744. v-if="
  6745. worksStudent.length && worksStudent[toolIndex].length > 0
  6746. "
  6747. >
  6748. <div
  6749. class="works"
  6750. style="
  6751. width: 200px;
  6752. height: 140px;
  6753. margin: 10px 10px 10px 0;
  6754. border-radius: 15px;
  6755. box-shadow: 0 0 6px 1px #dfdada;
  6756. "
  6757. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6758. ? worksStudent[toolIndex]
  6759. : worksStudent[toolIndex].slice(0, 6)"
  6760. :key="wIndex"
  6761. >
  6762. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  6763. <div class="workImg">
  6764. <img :src="w.works" @click="previewImg(w.works)" alt />
  6765. <div
  6766. class="answerScore"
  6767. v-if="w.score"
  6768. @click.stop="openScore(w)"
  6769. :class="{
  6770. rightW:
  6771. w.userid == userid || tType == 1 || tType == 4,
  6772. }"
  6773. >
  6774. {{ JSON.parse(w.score).wScore }}分
  6775. </div>
  6776. <div
  6777. class="answerScore"
  6778. @click.stop="openScore(w)"
  6779. v-else-if="courseDetail.userid == userid"
  6780. :class="{
  6781. rightW:
  6782. w.userid == userid || tType == 1 || tType == 4,
  6783. }"
  6784. >
  6785. 评分
  6786. </div>
  6787. <img
  6788. class="deleteImg"
  6789. src="../../assets/deleteworks.png"
  6790. v-if="w.userid == userid || tType == 1 || tType == 4"
  6791. @click.stop="deleteWorks(w.wid)"
  6792. alt
  6793. />
  6794. </div>
  6795. <div class="comment" style="min-width: 200px">
  6796. <div class="worksName">
  6797. <div>{{ w.sName }}</div>
  6798. </div>
  6799. <div class="commentList">
  6800. <div class="commentList">
  6801. <div
  6802. class="commentImg"
  6803. @click="
  6804. isLikes(w.wid, userid, 1, null, w.isLikes)
  6805. "
  6806. >
  6807. <img
  6808. :src="w.isLikes == true ? likes : noLikes"
  6809. alt=""
  6810. />
  6811. </div>
  6812. <div>{{ w.likesCount }}</div>
  6813. </div>
  6814. <div class="commentList" style="margin-right: 15px">
  6815. <div
  6816. class="commentImg"
  6817. @click="commentOther(w, toolIndex, wIndex)"
  6818. >
  6819. <img
  6820. src="../../assets/icon/comment/comment.png"
  6821. alt=""
  6822. />
  6823. </div>
  6824. <div>{{ w.commentCount }}</div>
  6825. </div>
  6826. </div>
  6827. </div>
  6828. </div>
  6829. </div>
  6830. <div class="noWorksS">
  6831. <div
  6832. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6833. :key="sIndex"
  6834. class="noWorksName"
  6835. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  6836. :class="{ isWork: s.type == '2' }"
  6837. >
  6838. {{ s.student }}
  6839. </div>
  6840. </div>
  6841. </div>
  6842. <div
  6843. v-if="
  6844. tType &&
  6845. ((tType == 2 && sIsOpen == true) ||
  6846. tType == 1 ||
  6847. tType == 4) &&
  6848. tool.tool.indexOf(3) != -1
  6849. "
  6850. class="worksBox"
  6851. >
  6852. <div
  6853. class="zuoyeYulan"
  6854. v-if="
  6855. worksStudent.length && worksStudent[toolIndex].length > 0
  6856. "
  6857. >
  6858. <div class="worksTop">
  6859. <div>作业预览</div>
  6860. <div
  6861. class="corOpen"
  6862. @click="contract(toolIndex)"
  6863. v-if="
  6864. worksStudent[toolIndex].length > 6 &&
  6865. isCloseList[toolIndex].isClose == 0
  6866. "
  6867. >
  6868. 收缩
  6869. </div>
  6870. <div
  6871. class="corOpen"
  6872. @click="contract(toolIndex)"
  6873. v-if="isCloseList[toolIndex].isClose == 1"
  6874. >
  6875. 展开
  6876. </div>
  6877. </div>
  6878. </div>
  6879. <div
  6880. class="worksDetailBox"
  6881. v-if="
  6882. worksStudent.length && worksStudent[toolIndex].length > 0
  6883. "
  6884. >
  6885. <div
  6886. class="works"
  6887. style="
  6888. width: 200px;
  6889. height: 140px;
  6890. margin: 10px 10px 10px 0;
  6891. border-radius: 15px;
  6892. box-shadow: 0 0 6px 1px #dfdada;
  6893. "
  6894. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6895. ? worksStudent[toolIndex]
  6896. : worksStudent[toolIndex].slice(0, 6)"
  6897. :key="wIndex"
  6898. >
  6899. <!-- @click="previewImg(w.works)" -->
  6900. <div class="workImg">
  6901. <img :src="w.works" @click="previewImg(w.works)" alt />
  6902. <div
  6903. class="answerScore"
  6904. v-if="w.score"
  6905. @click.stop="openScore(w)"
  6906. :class="{
  6907. rightW:
  6908. w.userid == userid || tType == 1 || tType == 4,
  6909. }"
  6910. >
  6911. {{ JSON.parse(w.score).wScore }}分
  6912. </div>
  6913. <div
  6914. class="answerScore"
  6915. @click.stop="openScore(w)"
  6916. v-else-if="courseDetail.userid == userid"
  6917. :class="{
  6918. rightW:
  6919. w.userid == userid || tType == 1 || tType == 4,
  6920. }"
  6921. >
  6922. 评分
  6923. </div>
  6924. <img
  6925. class="deleteImg"
  6926. src="../../assets/deleteworks.png"
  6927. v-if="w.userid == userid || tType == 1 || tType == 4"
  6928. @click.stop="deleteWorks(w.wid)"
  6929. alt
  6930. />
  6931. </div>
  6932. <div class="comment" style="min-width: 200px">
  6933. <div class="worksName">
  6934. <div>{{ w.sName }}</div>
  6935. </div>
  6936. <div class="commentList">
  6937. <div class="commentList">
  6938. <div
  6939. class="commentImg"
  6940. @click="
  6941. isLikes(w.wid, userid, 1, null, w.isLikes)
  6942. "
  6943. >
  6944. <img
  6945. :src="w.isLikes == true ? likes : noLikes"
  6946. alt=""
  6947. />
  6948. </div>
  6949. <div>{{ w.likesCount }}</div>
  6950. </div>
  6951. <div class="commentList" style="margin-right: 15px">
  6952. <div
  6953. class="commentImg"
  6954. @click="commentOther(w, toolIndex, wIndex)"
  6955. >
  6956. <img
  6957. src="../../assets/icon/comment/comment.png"
  6958. alt=""
  6959. />
  6960. </div>
  6961. <div>{{ w.commentCount }}</div>
  6962. </div>
  6963. </div>
  6964. </div>
  6965. </div>
  6966. </div>
  6967. <div class="noWorksS">
  6968. <div
  6969. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6970. :key="sIndex"
  6971. class="noWorksName"
  6972. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  6973. :class="{ isWork: s.type == '2' }"
  6974. >
  6975. {{ s.student }}
  6976. </div>
  6977. </div>
  6978. </div>
  6979. <div
  6980. v-if="
  6981. tType &&
  6982. ((tType == 2 && sIsOpen == true) ||
  6983. tType == 1 ||
  6984. tType == 4) &&
  6985. tool.tool.indexOf(6) != -1
  6986. "
  6987. class="worksBox"
  6988. >
  6989. <div
  6990. class="zuoyeYulan"
  6991. v-if="
  6992. worksStudent.length && worksStudent[toolIndex].length > 0
  6993. "
  6994. >
  6995. <div class="worksTop">
  6996. <div>作业预览</div>
  6997. <div
  6998. class="corOpen"
  6999. @click="contract(toolIndex)"
  7000. v-if="
  7001. worksStudent[toolIndex].length > 6 &&
  7002. isCloseList[toolIndex].isClose == 0
  7003. "
  7004. >
  7005. 收缩
  7006. </div>
  7007. <div
  7008. class="corOpen"
  7009. @click="contract(toolIndex)"
  7010. v-if="isCloseList[toolIndex].isClose == 1"
  7011. >
  7012. 展开
  7013. </div>
  7014. </div>
  7015. </div>
  7016. <div
  7017. class="worksDetailBox"
  7018. v-if="
  7019. worksStudent.length && worksStudent[toolIndex].length > 0
  7020. "
  7021. >
  7022. <div
  7023. class="works"
  7024. style="
  7025. width: 200px;
  7026. height: 140px;
  7027. margin: 10px 10px 10px 0;
  7028. border-radius: 15px;
  7029. box-shadow: 0 0 6px 1px #dfdada;
  7030. "
  7031. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7032. ? worksStudent[toolIndex]
  7033. : worksStudent[toolIndex].slice(0, 6)"
  7034. :key="wIndex"
  7035. >
  7036. <!-- @click="previewImg(w.works)" -->
  7037. <div class="workImg">
  7038. <img :src="w.works" @click="previewImg(w.works)" alt />
  7039. <div
  7040. class="answerScore"
  7041. v-if="w.score"
  7042. @click.stop="openScore(w)"
  7043. :class="{
  7044. rightW:
  7045. w.userid == userid || tType == 1 || tType == 4,
  7046. }"
  7047. >
  7048. {{ JSON.parse(w.score).wScore }}分
  7049. </div>
  7050. <div
  7051. class="answerScore"
  7052. @click.stop="openScore(w)"
  7053. v-else-if="courseDetail.userid == userid"
  7054. :class="{
  7055. rightW:
  7056. w.userid == userid || tType == 1 || tType == 4,
  7057. }"
  7058. >
  7059. 评分
  7060. </div>
  7061. <img
  7062. class="deleteImg"
  7063. src="../../assets/deleteworks.png"
  7064. v-if="w.userid == userid || tType == 1 || tType == 4"
  7065. @click.stop="deleteWorks(w.wid)"
  7066. alt
  7067. />
  7068. </div>
  7069. <div class="comment" style="min-width: 200px">
  7070. <div class="worksName">
  7071. <div>{{ w.sName }}</div>
  7072. </div>
  7073. <div class="commentList">
  7074. <div class="commentList">
  7075. <div
  7076. class="commentImg"
  7077. @click="
  7078. isLikes(w.wid, userid, 1, null, w.isLikes)
  7079. "
  7080. >
  7081. <img
  7082. :src="w.isLikes == true ? likes : noLikes"
  7083. alt=""
  7084. />
  7085. </div>
  7086. <div>{{ w.likesCount }}</div>
  7087. </div>
  7088. <div class="commentList" style="margin-right: 15px">
  7089. <div
  7090. class="commentImg"
  7091. @click="commentOther(w, toolIndex, wIndex)"
  7092. >
  7093. <img
  7094. src="../../assets/icon/comment/comment.png"
  7095. alt=""
  7096. />
  7097. </div>
  7098. <div>{{ w.commentCount }}</div>
  7099. </div>
  7100. </div>
  7101. </div>
  7102. </div>
  7103. </div>
  7104. <div class="noWorksS">
  7105. <div
  7106. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7107. :key="sIndex"
  7108. class="noWorksName"
  7109. :class="{ isWork: s.type == '2' }"
  7110. >
  7111. {{ s.student }}
  7112. </div>
  7113. </div>
  7114. </div>
  7115. <div
  7116. v-if="
  7117. tType &&
  7118. ((tType == 2 && sIsOpen == true) ||
  7119. tType == 1 ||
  7120. tType == 4) &&
  7121. tool.tool.indexOf(7) != -1
  7122. "
  7123. class="worksBox"
  7124. >
  7125. <div
  7126. class="zuoyeYulan"
  7127. v-if="
  7128. worksStudent.length && worksStudent[toolIndex].length > 0
  7129. "
  7130. >
  7131. <div class="worksTop">
  7132. <div>作业预览</div>
  7133. <div
  7134. class="corOpen"
  7135. @click="contract(toolIndex)"
  7136. v-if="
  7137. worksStudent[toolIndex].length > 6 &&
  7138. isCloseList[toolIndex].isClose == 0
  7139. "
  7140. >
  7141. 收缩
  7142. </div>
  7143. <div
  7144. class="corOpen"
  7145. @click="contract(toolIndex)"
  7146. v-if="isCloseList[toolIndex].isClose == 1"
  7147. >
  7148. 展开
  7149. </div>
  7150. </div>
  7151. </div>
  7152. <div
  7153. class="worksDetailBox"
  7154. v-if="
  7155. worksStudent.length && worksStudent[toolIndex].length > 0
  7156. "
  7157. >
  7158. <div
  7159. class="works"
  7160. style="
  7161. width: 200px;
  7162. height: 140px;
  7163. margin: 10px 10px 10px 0;
  7164. border-radius: 15px;
  7165. box-shadow: 0 0 6px 1px #dfdada;
  7166. "
  7167. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7168. ? worksStudent[toolIndex]
  7169. : worksStudent[toolIndex].slice(0, 6)"
  7170. :key="wIndex"
  7171. >
  7172. <!-- @click="previewImg(w.works)" -->
  7173. <div class="workImg">
  7174. <img :src="w.works" @click="previewImg(w.works)" alt />
  7175. <div
  7176. class="answerScore"
  7177. v-if="w.score"
  7178. @click.stop="openScore(w)"
  7179. :class="{
  7180. rightW:
  7181. w.userid == userid || tType == 1 || tType == 4,
  7182. }"
  7183. >
  7184. {{ JSON.parse(w.score).wScore }}分
  7185. </div>
  7186. <div
  7187. class="answerScore"
  7188. @click.stop="openScore(w)"
  7189. v-else-if="courseDetail.userid == userid"
  7190. :class="{
  7191. rightW:
  7192. w.userid == userid || tType == 1 || tType == 4,
  7193. }"
  7194. >
  7195. 评分
  7196. </div>
  7197. <img
  7198. class="deleteImg"
  7199. src="../../assets/deleteworks.png"
  7200. v-if="w.userid == userid || tType == 1 || tType == 4"
  7201. @click.stop="deleteWorks(w.wid)"
  7202. alt
  7203. />
  7204. </div>
  7205. <div class="comment" style="min-width: 200px">
  7206. <div class="worksName">
  7207. <div>{{ w.sName }}</div>
  7208. </div>
  7209. <div class="commentList">
  7210. <div class="commentList">
  7211. <div
  7212. class="commentImg"
  7213. @click="
  7214. isLikes(w.wid, userid, 1, null, w.isLikes)
  7215. "
  7216. >
  7217. <img
  7218. :src="w.isLikes == true ? likes : noLikes"
  7219. alt=""
  7220. />
  7221. </div>
  7222. <div>{{ w.likesCount }}</div>
  7223. </div>
  7224. <div class="commentList" style="margin-right: 15px">
  7225. <div
  7226. class="commentImg"
  7227. @click="commentOther(w, toolIndex, wIndex)"
  7228. >
  7229. <img
  7230. src="../../assets/icon/comment/comment.png"
  7231. alt=""
  7232. />
  7233. </div>
  7234. <div>{{ w.commentCount }}</div>
  7235. </div>
  7236. </div>
  7237. </div>
  7238. </div>
  7239. </div>
  7240. <div class="noWorksS">
  7241. <div
  7242. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7243. :key="sIndex"
  7244. class="noWorksName"
  7245. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  7246. :class="{ isWork: s.type == '2' }"
  7247. >
  7248. {{ s.student }}
  7249. </div>
  7250. </div>
  7251. </div>
  7252. <div
  7253. v-if="
  7254. tType &&
  7255. ((tType == 2 && sIsOpen == true) ||
  7256. tType == 1 ||
  7257. tType == 4) &&
  7258. tool.tool.indexOf(26) != -1
  7259. "
  7260. class="worksBox"
  7261. >
  7262. <div
  7263. class="zuoyeYulan"
  7264. v-if="
  7265. worksStudent.length && worksStudent[toolIndex].length > 0
  7266. "
  7267. >
  7268. <div class="worksTop">
  7269. <div>作业预览</div>
  7270. <div
  7271. class="corOpen"
  7272. @click="contract(toolIndex)"
  7273. v-if="
  7274. worksStudent[toolIndex].length > 6 &&
  7275. isCloseList[toolIndex].isClose == 0
  7276. "
  7277. >
  7278. 收缩
  7279. </div>
  7280. <div
  7281. class="corOpen"
  7282. @click="contract(toolIndex)"
  7283. v-if="isCloseList[toolIndex].isClose == 1"
  7284. >
  7285. 展开
  7286. </div>
  7287. </div>
  7288. </div>
  7289. <div
  7290. class="worksDetailBox"
  7291. v-if="
  7292. worksStudent.length && worksStudent[toolIndex].length > 0
  7293. "
  7294. >
  7295. <div
  7296. class="works"
  7297. style="width: 240px; height: 140px; overflow: hidden"
  7298. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7299. ? worksStudent[toolIndex]
  7300. : worksStudent[toolIndex].slice(0, 6)"
  7301. :key="wIndex"
  7302. :class="w.type == 1 ? 'isTypeOne' : ''"
  7303. >
  7304. <div class="workImg" v-if="w.type == 0">
  7305. <img :src="w.works" @click="previewImg(w.works)" alt />
  7306. <img
  7307. class="deleteImg"
  7308. src="../../assets/deleteworks.png"
  7309. v-if="w.userid == userid || tType == 1 || tType == 4"
  7310. @click.stop="deleteWorks(w.wid)"
  7311. alt
  7312. />
  7313. </div>
  7314. <div class="workImg" v-if="w.type == 1">
  7315. <img :src="word" @click="openFile(w.works)" alt />
  7316. <img
  7317. class="deleteImg"
  7318. src="../../assets/deleteworks.png"
  7319. v-if="w.userid == userid || tType == 1 || tType == 4"
  7320. @click.stop="deleteWorks(w.wid)"
  7321. alt
  7322. />
  7323. </div>
  7324. <div class="worksName">
  7325. <div>{{ w.sName }}</div>
  7326. </div>
  7327. </div>
  7328. </div>
  7329. <div class="noWorksS">
  7330. <div
  7331. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7332. :key="sIndex"
  7333. class="noWorksName"
  7334. :class="{ isWork: s.type == '2' }"
  7335. >
  7336. {{ s.student }}
  7337. </div>
  7338. </div>
  7339. </div>
  7340. <div
  7341. v-if="
  7342. tType &&
  7343. ((tType == 2 && sIsOpen == true) ||
  7344. tType == 1 ||
  7345. tType == 4) &&
  7346. tool.tool.indexOf(40) != -1
  7347. "
  7348. class="worksBox"
  7349. >
  7350. <div
  7351. class="zuoyeYulan"
  7352. v-if="
  7353. worksStudent.length && worksStudent[toolIndex].length > 0
  7354. "
  7355. >
  7356. <div class="worksTop">
  7357. <div>作业预览</div>
  7358. <div
  7359. class="corOpen"
  7360. @click="contract(toolIndex)"
  7361. v-if="
  7362. worksStudent[toolIndex].length > 6 &&
  7363. isCloseList[toolIndex].isClose == 0
  7364. "
  7365. >
  7366. 收缩
  7367. </div>
  7368. <div
  7369. class="corOpen"
  7370. @click="contract(toolIndex)"
  7371. v-if="isCloseList[toolIndex].isClose == 1"
  7372. >
  7373. 展开
  7374. </div>
  7375. </div>
  7376. </div>
  7377. <div
  7378. class="worksDetailBox"
  7379. v-if="
  7380. worksStudent.length && worksStudent[toolIndex].length > 0
  7381. "
  7382. >
  7383. <div
  7384. class="works"
  7385. style="
  7386. width: 200px;
  7387. height: 140px;
  7388. margin: 10px 10px 10px 0;
  7389. border-radius: 15px;
  7390. box-shadow: 0 0 6px 1px #dfdada;
  7391. "
  7392. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7393. ? worksStudent[toolIndex]
  7394. : worksStudent[toolIndex].slice(0, 6)"
  7395. :key="wIndex"
  7396. :class="w.type == 1 ? 'isTypeOne' : ''"
  7397. >
  7398. <div class="workImg">
  7399. <img
  7400. src="../../assets/icon/works/noImg.png"
  7401. @click="openPj(w.works, toolIndex)"
  7402. alt
  7403. />
  7404. <img
  7405. class="deleteImg"
  7406. src="../../assets/deleteworks.png"
  7407. v-if="w.userid == userid || tType == 1 || tType == 4"
  7408. @click.stop="deleteWorks(w.wid)"
  7409. alt
  7410. />
  7411. </div>
  7412. <div class="comment" style="min-width: 200px">
  7413. <div class="worksName">
  7414. <div>{{ w.sName }}</div>
  7415. </div>
  7416. <div class="commentList">
  7417. <div class="commentList">
  7418. <div
  7419. class="commentImg"
  7420. @click="
  7421. isLikes(w.wid, userid, 1, null, w.isLikes)
  7422. "
  7423. >
  7424. <img
  7425. :src="w.isLikes == true ? likes : noLikes"
  7426. alt=""
  7427. />
  7428. </div>
  7429. <div>{{ w.likesCount }}</div>
  7430. </div>
  7431. <div class="commentList" style="margin-right: 15px">
  7432. <div
  7433. class="commentImg"
  7434. @click="commentOther(w, toolIndex, wIndex)"
  7435. >
  7436. <img
  7437. src="../../assets/icon/comment/comment.png"
  7438. alt=""
  7439. />
  7440. </div>
  7441. <div>{{ w.commentCount }}</div>
  7442. </div>
  7443. </div>
  7444. </div>
  7445. </div>
  7446. </div>
  7447. <div class="noWorksS">
  7448. <div
  7449. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7450. :key="sIndex"
  7451. class="noWorksName"
  7452. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  7453. :class="{ isWork: s.type == '2' }"
  7454. >
  7455. {{ s.student }}
  7456. </div>
  7457. </div>
  7458. </div>
  7459. <div
  7460. v-if="
  7461. tType &&
  7462. ((tType == 2 && sIsOpen == true) ||
  7463. tType == 1 ||
  7464. tType == 4) &&
  7465. tool.tool.indexOf(41) != -1
  7466. "
  7467. class="worksBox"
  7468. >
  7469. <div class="noWorksS">
  7470. <div
  7471. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7472. :key="sIndex"
  7473. class="noWorksName"
  7474. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  7475. :class="{ isWork: s.type == '2' }"
  7476. >
  7477. {{ s.student }}
  7478. </div>
  7479. </div>
  7480. <div
  7481. class="zuoyeYulan"
  7482. v-if="
  7483. worksStudent.length && worksStudent[toolIndex].length > 0
  7484. "
  7485. >
  7486. <div class="worksTop">
  7487. <div>作业预览</div>
  7488. <div
  7489. class="corOpen"
  7490. @click="contract(toolIndex)"
  7491. v-if="
  7492. worksStudent[toolIndex].length > 6 &&
  7493. isCloseList[toolIndex].isClose == 0
  7494. "
  7495. >
  7496. 收缩
  7497. </div>
  7498. <div
  7499. class="corOpen"
  7500. @click="contract(toolIndex)"
  7501. v-if="isCloseList[toolIndex].isClose == 1"
  7502. >
  7503. 展开
  7504. </div>
  7505. </div>
  7506. </div>
  7507. <div
  7508. class="worksDetailBox"
  7509. v-if="
  7510. worksStudent.length && worksStudent[toolIndex].length > 0
  7511. "
  7512. >
  7513. <div
  7514. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7515. ? worksStudent[toolIndex]
  7516. : worksStudent[toolIndex].slice(0, 6)"
  7517. :key="wIndex"
  7518. class="isWorksName2"
  7519. @click="openXz(w, toolIndex)"
  7520. >
  7521. {{ w.sName }}
  7522. <img
  7523. class="deleteImg deleteImg2"
  7524. src="../../assets/deleteworks.png"
  7525. v-if="w.userid == userid || tType == 1 || tType == 4"
  7526. @click.stop="deleteWorks(w.wid)"
  7527. alt
  7528. />
  7529. </div>
  7530. </div>
  7531. </div>
  7532. <div
  7533. v-if="
  7534. tType &&
  7535. ((tType == 2 && sIsOpen == true) ||
  7536. tType == 1 ||
  7537. tType == 4) &&
  7538. tool.tool.indexOf(47) != -1
  7539. "
  7540. class="worksBox"
  7541. >
  7542. <div class="noWorksS">
  7543. <div
  7544. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7545. :key="sIndex"
  7546. class="noWorksName"
  7547. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  7548. :class="{ isWork: s.type == '2' }"
  7549. >
  7550. {{ s.student }}
  7551. </div>
  7552. </div>
  7553. <div
  7554. class="zuoyeYulan"
  7555. v-if="
  7556. worksStudent.length && worksStudent[toolIndex].length > 0
  7557. "
  7558. >
  7559. <div class="worksTop">
  7560. <div>作业预览</div>
  7561. <div
  7562. class="corOpen"
  7563. @click="contract(toolIndex)"
  7564. v-if="
  7565. worksStudent[toolIndex].length > 6 &&
  7566. isCloseList[toolIndex].isClose == 0
  7567. "
  7568. >
  7569. 收缩
  7570. </div>
  7571. <div
  7572. class="corOpen"
  7573. @click="contract(toolIndex)"
  7574. v-if="isCloseList[toolIndex].isClose == 1"
  7575. >
  7576. 展开
  7577. </div>
  7578. </div>
  7579. </div>
  7580. <div
  7581. class="worksDetailBox"
  7582. v-if="
  7583. worksStudent.length && worksStudent[toolIndex].length > 0
  7584. "
  7585. >
  7586. <!-- @click="openXz(w, toolIndex)" -->
  7587. <div
  7588. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7589. ? worksStudent[toolIndex]
  7590. : worksStudent[toolIndex].slice(0, 6)"
  7591. :key="wIndex"
  7592. class="isWorksName2"
  7593. @click="openSen(w, toolIndex)"
  7594. >
  7595. {{ w.sName }}
  7596. <img
  7597. class="deleteImg deleteImg2"
  7598. src="../../assets/deleteworks.png"
  7599. v-if="w.userid == userid || tType == 1 || tType == 4"
  7600. @click.stop="deleteWorks(w.wid)"
  7601. alt
  7602. />
  7603. </div>
  7604. </div>
  7605. </div>
  7606. <div
  7607. v-if="
  7608. tType &&
  7609. ((tType == 2 && sIsOpen == true) ||
  7610. tType == 1 ||
  7611. tType == 4) &&
  7612. tool.tool.indexOf(48) != -1
  7613. "
  7614. class="worksBox"
  7615. >
  7616. <div
  7617. class="zuoyeYulan"
  7618. v-if="
  7619. worksStudent.length && worksStudent[toolIndex].length > 0
  7620. "
  7621. >
  7622. <div class="worksTop">
  7623. <div>作业预览</div>
  7624. <div
  7625. class="corOpen"
  7626. @click="contract(toolIndex)"
  7627. v-if="
  7628. worksStudent[toolIndex].length > 6 &&
  7629. isCloseList[toolIndex].isClose == 0
  7630. "
  7631. >
  7632. 收缩
  7633. </div>
  7634. <div
  7635. class="corOpen"
  7636. @click="contract(toolIndex)"
  7637. v-if="isCloseList[toolIndex].isClose == 1"
  7638. >
  7639. 展开
  7640. </div>
  7641. </div>
  7642. </div>
  7643. <div
  7644. class="worksDetailBox"
  7645. v-if="
  7646. worksStudent.length && worksStudent[toolIndex].length > 0
  7647. "
  7648. >
  7649. <div
  7650. class="works"
  7651. style="
  7652. width: 200px;
  7653. height: 140px;
  7654. margin: 10px 10px 10px 0;
  7655. border-radius: 15px;
  7656. box-shadow: 0 0 6px 1px #dfdada;
  7657. "
  7658. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7659. ? worksStudent[toolIndex]
  7660. : worksStudent[toolIndex].slice(0, 6)"
  7661. :key="wIndex"
  7662. :class="w.type == 1 ? 'isTypeOne' : ''"
  7663. >
  7664. <div class="workImg">
  7665. <img :src="word" @click="openTable(w)" alt />
  7666. <!-- @click="openFile(w.works)" -->
  7667. <div
  7668. class="answerScore"
  7669. v-if="w.score"
  7670. @click.stop="openScore(w)"
  7671. :class="{
  7672. rightW:
  7673. w.userid == userid ||
  7674. tType == 1 ||
  7675. tType == 4 ||
  7676. w.ateacher == userid,
  7677. }"
  7678. >
  7679. {{ JSON.parse(w.score).wScore }}分
  7680. </div>
  7681. <div
  7682. class="answerScore"
  7683. @click.stop="openScore(w)"
  7684. v-else-if="courseDetail.userid == userid"
  7685. :class="{
  7686. rightW:
  7687. w.userid == userid ||
  7688. tType == 1 ||
  7689. tType == 4 ||
  7690. w.ateacher == userid,
  7691. }"
  7692. >
  7693. 评分
  7694. </div>
  7695. <img
  7696. class="deleteImg"
  7697. src="../../assets/deleteworks.png"
  7698. v-if="w.userid == userid || tType == 1 || tType == 4"
  7699. @click.stop="deleteWorks(w.wid)"
  7700. alt
  7701. />
  7702. </div>
  7703. <div class="comment" style="min-width: 200px">
  7704. <div class="worksName">
  7705. <div>{{ w.sName }}</div>
  7706. </div>
  7707. <div class="commentList">
  7708. <div class="commentList">
  7709. <div
  7710. class="commentImg"
  7711. @click="
  7712. isLikes(w.wid, userid, 1, null, w.isLikes)
  7713. "
  7714. >
  7715. <img
  7716. :src="w.isLikes == true ? likes : noLikes"
  7717. alt=""
  7718. />
  7719. </div>
  7720. <div>{{ w.likesCount }}</div>
  7721. </div>
  7722. <div class="commentList" style="margin-right: 15px">
  7723. <div
  7724. class="commentImg"
  7725. @click="commentOther(w, toolIndex, wIndex)"
  7726. >
  7727. <img
  7728. src="../../assets/icon/comment/comment.png"
  7729. alt=""
  7730. />
  7731. </div>
  7732. <div>{{ w.commentCount }}</div>
  7733. </div>
  7734. </div>
  7735. </div>
  7736. </div>
  7737. </div>
  7738. <div class="noWorksS">
  7739. <div
  7740. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7741. :key="sIndex"
  7742. class="noWorksName"
  7743. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  7744. :class="{ isWork: s.type == '2' }"
  7745. >
  7746. {{ s.student }}
  7747. </div>
  7748. </div>
  7749. </div>
  7750. <div
  7751. v-if="
  7752. tType &&
  7753. ((tType == 2 && sIsOpen == true) ||
  7754. tType == 1 ||
  7755. tType == 4) &&
  7756. tool.tool.indexOf(52) != -1
  7757. "
  7758. class="worksBox"
  7759. >
  7760. <div
  7761. class="zuoyeYulan"
  7762. v-if="
  7763. worksStudent.length && worksStudent[toolIndex].length > 0
  7764. "
  7765. >
  7766. <div class="worksTop">
  7767. <div>作业预览</div>
  7768. <div
  7769. class="corOpen"
  7770. @click="contract(toolIndex)"
  7771. v-if="
  7772. worksStudent[toolIndex].length > 6 &&
  7773. isCloseList[toolIndex].isClose == 0
  7774. "
  7775. >
  7776. 收缩
  7777. </div>
  7778. <div
  7779. class="corOpen"
  7780. @click="contract(toolIndex)"
  7781. v-if="isCloseList[toolIndex].isClose == 1"
  7782. >
  7783. 展开
  7784. </div>
  7785. </div>
  7786. </div>
  7787. <div
  7788. class="worksDetailBox"
  7789. v-if="
  7790. worksStudent.length && worksStudent[toolIndex].length > 0
  7791. "
  7792. >
  7793. <div
  7794. class="works"
  7795. style="
  7796. width: 200px;
  7797. height: 140px;
  7798. margin: 10px 10px 10px 0;
  7799. border-radius: 15px;
  7800. box-shadow: 0 0 6px 1px #dfdada;
  7801. "
  7802. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7803. ? worksStudent[toolIndex]
  7804. : worksStudent[toolIndex].slice(0, 6)"
  7805. :key="wIndex"
  7806. :class="w.type == 1 ? 'isTypeOne' : ''"
  7807. >
  7808. <div class="workImg">
  7809. <img :src="word" @click="openWord(w)" alt />
  7810. <!-- @click="openFile(w.works)" -->
  7811. <div
  7812. class="answerScore"
  7813. v-if="w.score"
  7814. @click.stop="openScore(w)"
  7815. :class="{
  7816. rightW:
  7817. w.userid == userid ||
  7818. tType == 1 ||
  7819. tType == 4 ||
  7820. w.ateacher == userid,
  7821. }"
  7822. >
  7823. {{ JSON.parse(w.score).wScore }}分
  7824. </div>
  7825. <div
  7826. class="answerScore"
  7827. @click.stop="openScore(w)"
  7828. v-else-if="courseDetail.userid == userid"
  7829. :class="{
  7830. rightW:
  7831. w.userid == userid ||
  7832. tType == 1 ||
  7833. tType == 4 ||
  7834. w.ateacher == userid,
  7835. }"
  7836. >
  7837. 评分
  7838. </div>
  7839. <img
  7840. class="deleteImg"
  7841. src="../../assets/deleteworks.png"
  7842. v-if="w.userid == userid || tType == 1 || tType == 4"
  7843. @click.stop="deleteWorks(w.wid)"
  7844. alt
  7845. />
  7846. </div>
  7847. <div class="comment" style="min-width: 200px">
  7848. <div class="worksName">
  7849. <div>{{ w.sName }}</div>
  7850. </div>
  7851. <div class="commentList">
  7852. <div class="commentList">
  7853. <div
  7854. class="commentImg"
  7855. @click="
  7856. isLikes(w.wid, userid, 1, null, w.isLikes)
  7857. "
  7858. >
  7859. <img
  7860. :src="w.isLikes == true ? likes : noLikes"
  7861. alt=""
  7862. />
  7863. </div>
  7864. <div>{{ w.likesCount }}</div>
  7865. </div>
  7866. <div class="commentList" style="margin-right: 15px">
  7867. <div
  7868. class="commentImg"
  7869. @click="commentOther(w, toolIndex, wIndex)"
  7870. >
  7871. <img
  7872. src="../../assets/icon/comment/comment.png"
  7873. alt=""
  7874. />
  7875. </div>
  7876. <div>{{ w.commentCount }}</div>
  7877. </div>
  7878. </div>
  7879. </div>
  7880. </div>
  7881. </div>
  7882. <div class="noWorksS">
  7883. <div
  7884. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7885. :key="sIndex"
  7886. class="noWorksName"
  7887. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7888. :class="{ isWork: s.type == '2' }"
  7889. >
  7890. {{ s.student }}
  7891. </div>
  7892. </div>
  7893. </div>
  7894. </div>
  7895. </div>
  7896. <div class="vedioBox" style="margin-top: 10px" v-if="false">
  7897. <div
  7898. class="queTop"
  7899. style="
  7900. font-size: 20px;
  7901. padding: 15px 0 15px 30px;
  7902. font-weight: bold;
  7903. "
  7904. >
  7905. 评一评
  7906. </div>
  7907. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7908. <div class="elist_input">
  7909. <div
  7910. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7911. .chapterInfo[0].taskJson[taskCount].eList"
  7912. :key="eIndex"
  7913. class="elist_input_box"
  7914. >
  7915. <div style="width: 95%">
  7916. <div
  7917. style="
  7918. display: flex;
  7919. flex-direction: row;
  7920. flex-wrap: nowrap;
  7921. align-items: center;
  7922. "
  7923. >
  7924. <div style="max-width: calc(100% - 285px)">
  7925. <span>{{ eItem.value }}</span>
  7926. </div>
  7927. <div
  7928. style="
  7929. padding-left: 25px;
  7930. display: flex;
  7931. flex-direction: row;
  7932. align-items: center;
  7933. "
  7934. >
  7935. <el-rate
  7936. v-model="eItem.score"
  7937. :colors="colors"
  7938. disabled
  7939. ></el-rate>
  7940. </div>
  7941. </div>
  7942. <div class="elist_inptu_text" style="padding-left: 10px">
  7943. <span v-if="eItem.detail != ''">{{
  7944. eItem.detail
  7945. }}</span>
  7946. <span v-else style="color: #b2b1b3; font-size: 14px"
  7947. >暂无描述...</span
  7948. >
  7949. </div>
  7950. </div>
  7951. </div>
  7952. </div>
  7953. <div
  7954. v-if="evalua"
  7955. style="
  7956. border: 1px solid #e5e5e5;
  7957. max-width: 650px;
  7958. width: 100%;
  7959. margin-top: 20px;
  7960. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7961. "
  7962. >
  7963. <div class="e_add_top">
  7964. <div class="e_add_title">
  7965. <span>目标管理名称</span>
  7966. <span>{{ eTitle }}</span>
  7967. <img
  7968. src="../../assets/line.png"
  7969. class="cru_line"
  7970. style="
  7971. width: 125px;
  7972. height: 20px;
  7973. bottom: -10px;
  7974. left: 120px;
  7975. "
  7976. />
  7977. <!-- <el-input
  7978. v-model="eTitle"
  7979. placeholder="请输入名称"
  7980. @change="setMindData"
  7981. ></el-input>-->
  7982. </div>
  7983. </div>
  7984. <div class="e_add_content">
  7985. <div class="e_add_list_pbox">
  7986. <div class="e_add_list_pbox_title">
  7987. <span class="type_title">切换模式</span>
  7988. <div class="type_content">
  7989. <span
  7990. :class="{ active: typeMode == 1 }"
  7991. @click="typeMode = 1"
  7992. >目标树</span
  7993. >
  7994. <span
  7995. :class="{ active: typeMode == 2 }"
  7996. @click="typeMode = 2"
  7997. >目标罗盘</span
  7998. >
  7999. <span
  8000. :class="{ active: typeMode == 3 }"
  8001. @click="typeMode = 3"
  8002. >目标看板</span
  8003. >
  8004. </div>
  8005. </div>
  8006. <div class="e_add_list_pbox_content">
  8007. <Mind
  8008. :showBar="false"
  8009. :mindData="data"
  8010. style="width: 100%"
  8011. v-show="typeMode == 1"
  8012. ></Mind>
  8013. <Sunburst
  8014. :Josn="eJson"
  8015. :num="eJSONNum"
  8016. style="width: 100%"
  8017. v-if="typeMode == 2"
  8018. ></Sunburst>
  8019. <SeeBoard
  8020. :Josn="eJson"
  8021. :num="eJSONNum"
  8022. :ename="eTitle"
  8023. style="width: 100%"
  8024. v-if="typeMode == 3"
  8025. >
  8026. </SeeBoard>
  8027. </div>
  8028. </div>
  8029. </div>
  8030. </div>
  8031. </div>
  8032. </div>
  8033. </div>
  8034. <div
  8035. class="vedioBox"
  8036. style="margin-top: 10px"
  8037. :style="{
  8038. borderRadius:
  8039. !(
  8040. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8041. .toolChoose[0].tool &&
  8042. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8043. .toolChoose[0].tool.length > 0
  8044. ) &&
  8045. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8046. .taskDetail == '' &&
  8047. vChapterData[taskCount].length == 0 &&
  8048. fileC[taskCount].length == 0
  8049. ? '0 0 20px 20px'
  8050. : '20px',
  8051. }"
  8052. v-if="
  8053. courseDetail.userid == userid ||
  8054. (courseDetail.course_teacher &&
  8055. courseDetail.course_teacher.indexOf(userid) != -1)
  8056. "
  8057. >
  8058. <div
  8059. class="queTop"
  8060. @click="isClose = !isClose"
  8061. style="padding: 15px 0 15px 37px; justify-content: space-between"
  8062. >
  8063. <div class="queTopTitle">新增工具</div>
  8064. <div class="queTopRight">
  8065. <div class="queTopClose" v-if="isClose == 0">
  8066. 展开
  8067. <div class="closeImg">
  8068. <img src="../../assets/icon/newIcon/close.png" alt="" />
  8069. </div>
  8070. </div>
  8071. <div class="queTopClose" v-if="isClose == 1">
  8072. 收缩
  8073. <div class="openImg">
  8074. <img src="../../assets/icon/newIcon/open.png" alt="" />
  8075. </div>
  8076. </div>
  8077. <el-button
  8078. style="margin: 0 30px 0 auto"
  8079. type="primary"
  8080. size="small"
  8081. v-if="isClose == 1 && checktoolArray.length > 0"
  8082. @click.stop="addToolChoose"
  8083. >确定</el-button
  8084. >
  8085. </div>
  8086. </div>
  8087. <div
  8088. class="tool_work_box"
  8089. :style="isClose == 0 ? 'display:none' : 'display:block'"
  8090. >
  8091. <div class="tool_box">
  8092. <div class="tool_type_box">
  8093. <div class="chooseWho">
  8094. <div
  8095. :class="toolType == 0 ? 'isChooseActive' : ''"
  8096. @click="(toolType = 0), $forceUpdate()"
  8097. >
  8098. 互动类
  8099. </div>
  8100. <div
  8101. :class="toolType == 1 ? 'isChooseActive' : ''"
  8102. @click="(toolType = 1), $forceUpdate()"
  8103. >
  8104. 思维类
  8105. </div>
  8106. <!-- <div
  8107. :class="toolType == 6 ? 'isChooseActive' : ''"
  8108. @click="(toolType = 6), $forceUpdate()"
  8109. >
  8110. 协作类
  8111. </div> -->
  8112. <div
  8113. :class="toolType == 2 ? 'isChooseActive' : ''"
  8114. @click="(toolType = 2), $forceUpdate()"
  8115. >
  8116. 测评类
  8117. </div>
  8118. <!-- <div
  8119. :class="toolType == 7 ? 'isChooseActive' : ''"
  8120. @click="(toolType = 7), $forceUpdate()"
  8121. >
  8122. 评价类
  8123. </div> -->
  8124. <div
  8125. :class="toolType == 3 ? 'isChooseActive' : ''"
  8126. @click="(toolType = 3), $forceUpdate()"
  8127. >
  8128. 编程类
  8129. </div>
  8130. <div
  8131. :class="toolType == 5 ? 'isChooseActive' : ''"
  8132. @click="(toolType = 5), $forceUpdate()"
  8133. >
  8134. 学科类
  8135. </div>
  8136. <!-- <div :class="toolType == 5 ? 'isChooseActive' : ''
  8137. " @click="(toolType = 5), $forceUpdate()">
  8138. 学科类
  8139. </div>
  8140. <div :class="toolType == 4 ? 'isChooseActive' : ''
  8141. " @click="(toolType = 4), $forceUpdate()">
  8142. 其他
  8143. </div> -->
  8144. </div>
  8145. </div>
  8146. <div>
  8147. <div class="toolSort" v-if="toolType == 0">
  8148. <div class="tool">
  8149. <div class="whiteBIcon" @click="addTools2(10)">
  8150. <img
  8151. src="../../assets/icon/thirdToolList/time.png"
  8152. alt
  8153. />
  8154. <div style="margin: 5px 0">倒计时</div>
  8155. </div>
  8156. <div class="check" @click="addTools2(10)">
  8157. <img
  8158. src="../../assets/icon/checkNo.png"
  8159. alt
  8160. v-if="checktoolArray.indexOf(10) == -1"
  8161. />
  8162. <div class="checkDiv" v-else>
  8163. <img src="../../assets/icon/checkedIs.png" alt /><span
  8164. >已选择</span
  8165. >
  8166. </div>
  8167. </div>
  8168. </div>
  8169. <div class="tool">
  8170. <div class="whiteBIcon" @click="addTools2(65)">
  8171. <img
  8172. src="../../assets/icon/firstToolList/pickPeople.png"
  8173. alt
  8174. />
  8175. <div style="margin: 5px 0">挑人</div>
  8176. </div>
  8177. <div class="check" @click="addTools2(65)">
  8178. <img
  8179. src="../../assets/icon/checkNo.png"
  8180. alt
  8181. v-if="checktoolArray.indexOf(65) == -1"
  8182. />
  8183. <div class="checkDiv" v-else>
  8184. <img src="../../assets/icon/checkedIs.png" alt /><span
  8185. >已选择</span
  8186. >
  8187. </div>
  8188. </div>
  8189. </div>
  8190. </div>
  8191. <div class="toolSort" v-if="toolType == 1">
  8192. <div class="tool">
  8193. <div class="whiteBIcon" @click="addTools2(7)">
  8194. <img
  8195. src="../../assets/icon/secondToolList/mindNetwork.png"
  8196. alt
  8197. />
  8198. <div style="margin: 5px 0">思维网格</div>
  8199. </div>
  8200. <div class="check" @click="addTools2(7)">
  8201. <img
  8202. src="../../assets/icon/checkNo.png"
  8203. alt
  8204. v-if="checktoolArray.indexOf(7) == -1"
  8205. />
  8206. <div class="checkDiv" v-else>
  8207. <img src="../../assets/icon/checkedIs.png" alt /><span
  8208. >已选择</span
  8209. >
  8210. </div>
  8211. </div>
  8212. </div>
  8213. <div class="tool">
  8214. <div class="whiteBIcon" @click="addTools2(1)">
  8215. <img
  8216. src="../../assets/icon/secondToolList/whiteBoard.png"
  8217. alt
  8218. />
  8219. <div style="margin: 5px 0">电子白板</div>
  8220. </div>
  8221. <div class="check" @click="addTools2(1)">
  8222. <img
  8223. src="../../assets/icon/checkNo.png"
  8224. alt
  8225. v-if="checktoolArray.indexOf(1) == -1"
  8226. />
  8227. <div class="checkDiv" v-else>
  8228. <img src="../../assets/icon/checkedIs.png" alt /><span
  8229. >已选择</span
  8230. >
  8231. </div>
  8232. </div>
  8233. </div>
  8234. <div class="tool">
  8235. <div class="whiteBIcon" @click="addTools2(52)">
  8236. <img
  8237. src="../../assets/icon/fourthToolList/text.png"
  8238. alt
  8239. />
  8240. <div style="margin: 5px 0">文档</div>
  8241. </div>
  8242. <div class="check" @click="addTools2(52)">
  8243. <img
  8244. src="../../assets/icon/checkNo.png"
  8245. alt
  8246. v-if="checktoolArray.indexOf(52) == -1"
  8247. />
  8248. <div class="checkDiv" v-else>
  8249. <img src="../../assets/icon/checkedIs.png" alt /><span
  8250. >已选择</span
  8251. >
  8252. </div>
  8253. </div>
  8254. </div>
  8255. <div class="tool">
  8256. <div class="whiteBIcon" @click="addTools2(3)">
  8257. <img
  8258. src="../../assets/icon/secondToolList/mindMapping.png"
  8259. alt
  8260. />
  8261. <div style="margin: 5px 0">思维导图</div>
  8262. </div>
  8263. <div class="check" @click="addTools2(3)">
  8264. <img
  8265. src="../../assets/icon/checkNo.png"
  8266. alt
  8267. v-if="checktoolArray.indexOf(3) == -1"
  8268. />
  8269. <div class="checkDiv" v-else>
  8270. <img src="../../assets/icon/checkedIs.png" alt /><span
  8271. >已选择</span
  8272. >
  8273. </div>
  8274. </div>
  8275. </div>
  8276. <div class="tool">
  8277. <div class="whiteBIcon" @click="addTools2(48)">
  8278. <img
  8279. src="../../assets/icon/fourthToolList/table.png"
  8280. alt
  8281. />
  8282. <div style="margin: 5px 0">表格</div>
  8283. </div>
  8284. <div class="check" @click="addTools2(48)">
  8285. <img
  8286. src="../../assets/icon/checkNo.png"
  8287. alt
  8288. v-if="checktoolArray.indexOf(48) == -1"
  8289. />
  8290. <div class="checkDiv" v-else>
  8291. <img src="../../assets/icon/checkedIs.png" alt /><span
  8292. >已选择</span
  8293. >
  8294. </div>
  8295. </div>
  8296. </div>
  8297. </div>
  8298. <div class="toolSort" v-if="toolType == 6">
  8299. <div v-show="tooC == 49">
  8300. <img
  8301. @click="addTools(tooC, toolIndex, taskCount)"
  8302. src="../../assets/icon/fourthToolList/group.png"
  8303. alt
  8304. />
  8305. <div style="margin: 5px 0">学生分组</div>
  8306. </div>
  8307. </div>
  8308. <div class="toolSort" v-if="toolType == 2">
  8309. <div class="tool">
  8310. <div class="whiteBIcon" @click="addTools2(16)">
  8311. <img
  8312. src="../../assets/icon/thirdToolList/work.png"
  8313. alt
  8314. />
  8315. <div style="margin: 5px 0">作业提交</div>
  8316. </div>
  8317. <div class="check" @click="addTools2(16)">
  8318. <img
  8319. src="../../assets/icon/checkNo.png"
  8320. alt
  8321. v-if="checktoolArray.indexOf(16) == -1"
  8322. />
  8323. <div class="checkDiv" v-else>
  8324. <img src="../../assets/icon/checkedIs.png" alt /><span
  8325. >已选择</span
  8326. >
  8327. </div>
  8328. </div>
  8329. </div>
  8330. <div class="tool">
  8331. <div class="whiteBIcon" @click="addTools2(50)">
  8332. <img
  8333. src="../../assets/icon/thirdToolList/plwork.png"
  8334. alt
  8335. />
  8336. <div style="margin: 5px 0">批量上传</div>
  8337. </div>
  8338. <div class="check" @click="addTools2(50)">
  8339. <img
  8340. src="../../assets/icon/checkNo.png"
  8341. alt
  8342. v-if="checktoolArray.indexOf(50) == -1"
  8343. />
  8344. <div class="checkDiv" v-else>
  8345. <img src="../../assets/icon/checkedIs.png" alt /><span
  8346. >已选择</span
  8347. >
  8348. </div>
  8349. </div>
  8350. </div>
  8351. </div>
  8352. <div class="toolSort" v-if="toolType == 3">
  8353. <div class="tool">
  8354. <div class="whiteBIcon" @click="addTools2(18)">
  8355. <img
  8356. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8357. alt
  8358. />
  8359. <div style="margin: 5px 0">训练平台</div>
  8360. </div>
  8361. <div class="check" @click="addTools2(18)">
  8362. <img
  8363. src="../../assets/icon/checkNo.png"
  8364. alt
  8365. v-if="checktoolArray.indexOf(18) == -1"
  8366. />
  8367. <div class="checkDiv" v-else>
  8368. <img src="../../assets/icon/checkedIs.png" alt /><span
  8369. >已选择</span
  8370. >
  8371. </div>
  8372. </div>
  8373. </div>
  8374. <div class="tool">
  8375. <div class="whiteBIcon" @click="addTools2(21)">
  8376. <img
  8377. src="../../assets/icon/fourthToolList/program.png"
  8378. alt
  8379. />
  8380. <div style="margin: 5px 0">AIoT Blockly</div>
  8381. </div>
  8382. <div class="check" @click="addTools2(21)">
  8383. <img
  8384. src="../../assets/icon/checkNo.png"
  8385. alt
  8386. v-if="checktoolArray.indexOf(21) == -1"
  8387. />
  8388. <div class="checkDiv" v-else>
  8389. <img src="../../assets/icon/checkedIs.png" alt /><span
  8390. >已选择</span
  8391. >
  8392. </div>
  8393. </div>
  8394. </div>
  8395. <!-- <div class="tool">
  8396. <div class="whiteBIcon" @click="addTools2(22)">
  8397. <img
  8398. src="../../assets/icon/fourthToolList/AIprogram2.png"
  8399. alt
  8400. />
  8401. <div style="margin: 5px 0">AI体验</div>
  8402. </div>
  8403. <div class="check" @click="addTools2(22)">
  8404. <img
  8405. src="../../assets/icon/checkNo.png"
  8406. alt
  8407. v-if="checktoolArray.indexOf(22) == -1"
  8408. />
  8409. <div class="checkDiv" v-else>
  8410. <img
  8411. src="../../assets/icon/checkedIs.png"
  8412. alt
  8413. /><span>已选择</span>
  8414. </div>
  8415. </div>
  8416. </div> -->
  8417. <div class="tool">
  8418. <div class="whiteBIcon" @click="addTools2(23)">
  8419. <img
  8420. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8421. alt
  8422. />
  8423. <div style="margin: 5px 0">AI Python</div>
  8424. </div>
  8425. <div class="check" @click="addTools2(23)">
  8426. <img
  8427. src="../../assets/icon/checkNo.png"
  8428. alt
  8429. v-if="checktoolArray.indexOf(23) == -1"
  8430. />
  8431. <div class="checkDiv" v-else>
  8432. <img src="../../assets/icon/checkedIs.png" alt /><span
  8433. >已选择</span
  8434. >
  8435. </div>
  8436. </div>
  8437. </div>
  8438. <div class="tool">
  8439. <div class="whiteBIcon" @click="addTools2(24)">
  8440. <img
  8441. src="../../assets/icon/fourthToolList/AIprogram.png"
  8442. alt
  8443. />
  8444. <div style="margin: 5px 0">AI Blockly</div>
  8445. </div>
  8446. <div class="check" @click="addTools2(24)">
  8447. <img
  8448. src="../../assets/icon/checkNo.png"
  8449. alt
  8450. v-if="checktoolArray.indexOf(24) == -1"
  8451. />
  8452. <div class="checkDiv" v-else>
  8453. <img src="../../assets/icon/checkedIs.png" alt /><span
  8454. >已选择</span
  8455. >
  8456. </div>
  8457. </div>
  8458. </div>
  8459. <div class="tool">
  8460. <div class="whiteBIcon" @click="addTools2(32)">
  8461. <img
  8462. src="../../assets/icon/thirdToolList/code.png"
  8463. alt
  8464. />
  8465. <div style="margin: 5px 0">源码编辑</div>
  8466. </div>
  8467. <div class="check" @click="addTools2(32)">
  8468. <img
  8469. src="../../assets/icon/checkNo.png"
  8470. alt
  8471. v-if="checktoolArray.indexOf(32) == -1"
  8472. />
  8473. <div class="checkDiv" v-else>
  8474. <img src="../../assets/icon/checkedIs.png" alt /><span
  8475. >已选择</span
  8476. >
  8477. </div>
  8478. </div>
  8479. </div>
  8480. <div class="tool">
  8481. <div class="whiteBIcon" @click="addTools2(57)">
  8482. <img
  8483. src="../../assets/icon/fourthToolList/cocopi.png"
  8484. alt
  8485. />
  8486. <div style="margin: 5px 0">CocoPi</div>
  8487. </div>
  8488. <div class="check" @click="addTools2(57)">
  8489. <img
  8490. src="../../assets/icon/checkNo.png"
  8491. alt
  8492. v-if="checktoolArray.indexOf(57) == -1"
  8493. />
  8494. <div class="checkDiv" v-else>
  8495. <img src="../../assets/icon/checkedIs.png" alt /><span
  8496. >已选择</span
  8497. >
  8498. </div>
  8499. </div>
  8500. </div>
  8501. <div class="tool">
  8502. <div class="whiteBIcon" @click="addTools2(63)">
  8503. <img
  8504. src="../../assets/icon/fourthToolList/Wood.png"
  8505. alt
  8506. />
  8507. <div style="margin: 5px 0">海龟编程</div>
  8508. </div>
  8509. <div class="check" @click="addTools2(63)">
  8510. <img
  8511. src="../../assets/icon/checkNo.png"
  8512. alt
  8513. v-if="checktoolArray.indexOf(63) == -1"
  8514. />
  8515. <div class="checkDiv" v-else>
  8516. <img src="../../assets/icon/checkedIs.png" alt /><span
  8517. >已选择</span
  8518. >
  8519. </div>
  8520. </div>
  8521. </div>
  8522. </div>
  8523. <div class="toolSort" v-if="toolType == 7">
  8524. <div class="tool">
  8525. <div class="whiteBIcon" @click="addTools2(40)">
  8526. <img
  8527. src="../../assets/icon/secondToolList/eval.png"
  8528. alt
  8529. />
  8530. <div style="margin: 5px 0">个人评价</div>
  8531. </div>
  8532. <div class="check" @click="addTools2(40)">
  8533. <img
  8534. src="../../assets/icon/checkNo.png"
  8535. alt
  8536. v-if="checktoolArray.indexOf(40) == -1"
  8537. />
  8538. <div class="checkDiv" v-else>
  8539. <img src="../../assets/icon/checkedIs.png" alt /><span
  8540. >已选择</span
  8541. >
  8542. </div>
  8543. </div>
  8544. </div>
  8545. </div>
  8546. <div class="toolSort" v-if="toolType == 5">
  8547. <div class="tool">
  8548. <div class="whiteBIcon" @click="addTools2(28)">
  8549. <img
  8550. src="../../assets/icon/secondToolList/translation.png"
  8551. alt
  8552. />
  8553. <div style="margin: 5px 0">翻译</div>
  8554. </div>
  8555. <div class="check" @click="addTools2(28)">
  8556. <img
  8557. src="../../assets/icon/checkNo.png"
  8558. alt
  8559. v-if="checktoolArray.indexOf(28) == -1"
  8560. />
  8561. <div class="checkDiv" v-else>
  8562. <img src="../../assets/icon/checkedIs.png" alt /><span
  8563. >已选择</span
  8564. >
  8565. </div>
  8566. </div>
  8567. </div>
  8568. <div class="tool">
  8569. <div class="whiteBIcon" @click="addTools2(31)">
  8570. <img
  8571. src="../../assets/icon/secondToolList/networkPanel.png"
  8572. alt
  8573. />
  8574. <div style="margin: 5px 0">数字画板</div>
  8575. </div>
  8576. <div class="check" @click="addTools2(31)">
  8577. <img
  8578. src="../../assets/icon/checkNo.png"
  8579. alt
  8580. v-if="checktoolArray.indexOf(31) == -1"
  8581. />
  8582. <div class="checkDiv" v-else>
  8583. <img src="../../assets/icon/checkedIs.png" alt /><span
  8584. >已选择</span
  8585. >
  8586. </div>
  8587. </div>
  8588. </div>
  8589. <div class="tool">
  8590. <div class="whiteBIcon" @click="addTools2(39)">
  8591. <img
  8592. src="../../assets/icon/secondToolList/GeoGebra.png"
  8593. alt
  8594. />
  8595. <div style="margin: 5px 0">GeoGebra</div>
  8596. </div>
  8597. <div class="check" @click="addTools2(39)">
  8598. <img
  8599. src="../../assets/icon/checkNo.png"
  8600. alt
  8601. v-if="checktoolArray.indexOf(39) == -1"
  8602. />
  8603. <div class="checkDiv" v-else>
  8604. <img src="../../assets/icon/checkedIs.png" alt /><span
  8605. >已选择</span
  8606. >
  8607. </div>
  8608. </div>
  8609. </div>
  8610. <div class="tool">
  8611. <div class="whiteBIcon" @click="addTools2(66)">
  8612. <img
  8613. src="../../assets/icon/secondToolList/formulaEdi.png"
  8614. alt
  8615. />
  8616. <div style="margin: 5px 0">公式编辑</div>
  8617. </div>
  8618. <div class="check" @click="addTools2(66)">
  8619. <img
  8620. src="../../assets/icon/checkNo.png"
  8621. alt
  8622. v-if="checktoolArray.indexOf(66) == -1"
  8623. />
  8624. <div class="checkDiv" v-else>
  8625. <img src="../../assets/icon/checkedIs.png" alt /><span
  8626. >已选择</span
  8627. >
  8628. </div>
  8629. </div>
  8630. </div>
  8631. <div class="tool">
  8632. <div class="whiteBIcon" @click="addTools2(67)">
  8633. <img
  8634. src="../../assets/icon/secondToolList/molStr.png"
  8635. alt
  8636. />
  8637. <div style="margin: 5px 0">分子结构</div>
  8638. </div>
  8639. <div class="check" @click="addTools2(67)">
  8640. <img
  8641. src="../../assets/icon/checkNo.png"
  8642. alt
  8643. v-if="checktoolArray.indexOf(67) == -1"
  8644. />
  8645. <div class="checkDiv" v-else>
  8646. <img src="../../assets/icon/checkedIs.png" alt /><span
  8647. >已选择</span
  8648. >
  8649. </div>
  8650. </div>
  8651. </div>
  8652. <div class="tool">
  8653. <div class="whiteBIcon" @click="addTools2(68)">
  8654. <img
  8655. src="../../assets/icon/secondToolList/timeAxis.png"
  8656. alt
  8657. />
  8658. <div style="margin: 5px 0">时间轴</div>
  8659. </div>
  8660. <div class="check" @click="addTools2(68)">
  8661. <img
  8662. src="../../assets/icon/checkNo.png"
  8663. alt
  8664. v-if="checktoolArray.indexOf(68) == -1"
  8665. />
  8666. <div class="checkDiv" v-else>
  8667. <img src="../../assets/icon/checkedIs.png" alt /><span
  8668. >已选择</span
  8669. >
  8670. </div>
  8671. </div>
  8672. </div>
  8673. </div>
  8674. <div class="toolSort" v-if="toolType == 4">
  8675. <div class="tool">
  8676. <div class="whiteBIcon" @click="addTools2(26)">
  8677. <img
  8678. src="../../assets/icon/thirdToolList/courseDesign.png"
  8679. alt
  8680. />
  8681. <div style="margin: 5px 0">课程设计</div>
  8682. </div>
  8683. <div class="check" @click="addTools2(26)">
  8684. <img
  8685. src="../../assets/icon/checkNo.png"
  8686. alt
  8687. v-if="checktoolArray.indexOf(26) == -1"
  8688. />
  8689. <div class="checkDiv" v-else>
  8690. <img src="../../assets/icon/checkedIs.png" alt /><span
  8691. >已选择</span
  8692. >
  8693. </div>
  8694. </div>
  8695. </div>
  8696. <div class="tool">
  8697. <div class="whiteBIcon" @click="addTools2(25)">
  8698. <img
  8699. src="../../assets/icon/thirdToolList/evalua.png"
  8700. alt
  8701. />
  8702. <div style="margin: 5px 0">目标管理</div>
  8703. </div>
  8704. <div class="check" @click="addTools2(25)">
  8705. <img
  8706. src="../../assets/icon/checkNo.png"
  8707. alt
  8708. v-if="checktoolArray.indexOf(25) == -1"
  8709. />
  8710. <div class="checkDiv" v-else>
  8711. <img src="../../assets/icon/checkedIs.png" alt /><span
  8712. >已选择</span
  8713. >
  8714. </div>
  8715. </div>
  8716. </div>
  8717. </div>
  8718. </div>
  8719. </div>
  8720. </div>
  8721. </div>
  8722. </div>
  8723. <el-dialog
  8724. title="作业提交"
  8725. :visible.sync="dialogVisible"
  8726. :append-to-body="true"
  8727. width="500px"
  8728. :before-close="handleClose"
  8729. class="dialog_change"
  8730. >
  8731. <div class="marginT">
  8732. <div>上传文件</div>
  8733. <div
  8734. class="chapter_add"
  8735. @click="addImg($event)"
  8736. v-if="studyJuri[0].cover.length == 0"
  8737. >
  8738. <div class="up_photo">
  8739. <img src="../../assets/icon/uploadImg.png" alt />
  8740. </div>
  8741. <!-- <input
  8742. type="file"
  8743. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8744. style="display: none"
  8745. @change="beforeUpload1($event, 1)"
  8746. /> -->
  8747. <input
  8748. type="file"
  8749. accept="*"
  8750. style="display: none"
  8751. @change="beforeUpload1($event, 1)"
  8752. />
  8753. <!-- <input
  8754. type="file"
  8755. accept="image/*"
  8756. capture="camera"
  8757. style="display: none"
  8758. @change="beforeUpload1($event, 1)"
  8759. /> -->
  8760. </div>
  8761. <div
  8762. class="chapter_add"
  8763. style="
  8764. display: flex;
  8765. width: 100%;
  8766. flex-direction: row;
  8767. flex-wrap: wrap;
  8768. justify-content: flex-start;
  8769. padding: 15px 0;
  8770. "
  8771. v-if="studyJuri[0].cover.length > 0"
  8772. >
  8773. <div class="upCover">
  8774. <img
  8775. :src="studyJuri[0].cover[0].url"
  8776. alt
  8777. v-if="fileType == 0"
  8778. />
  8779. <img :src="word" alt v-else-if="fileType == 1" />
  8780. <img :src="video" alt v-else-if="fileType == 2" />
  8781. <img :src="word2" alt v-else-if="fileType == 3" />
  8782. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8783. <div class="deleteWord" @click="clean(1)">
  8784. <img src="../../assets/icon/deleteWorks.png" alt />
  8785. </div>
  8786. </div>
  8787. </div>
  8788. </div>
  8789. <div
  8790. class="upload_send"
  8791. @click="addCourseWorks(taskCount)"
  8792. v-if="!proVisible"
  8793. >
  8794. 提交
  8795. </div>
  8796. </el-dialog>
  8797. </div>
  8798. </div>
  8799. <div
  8800. class="pButton"
  8801. @click="(pzDialog = true), selectPz()"
  8802. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8803. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc);"
  8804. >
  8805. <!-- 批 -->
  8806. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8807. </div>
  8808. <div v-if="pzDialog == true" class="newDialogCss">
  8809. <div class="pzTop2">
  8810. <!-- <div>批注</div>
  8811. <div @click="pzDialog = false">
  8812. <img src="../../assets/close1.png" alt="" />
  8813. </div> -->
  8814. <div class="checkbox">
  8815. <div class="check" style="font-size: 25px">评课笔记</div>
  8816. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  8817. <el-option label="时间降序" :value="1"></el-option>
  8818. <el-option label="时间升序" :value="2"></el-option>
  8819. <el-option label="我的评课" :value="3"></el-option>
  8820. </el-select>
  8821. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8822. </div>
  8823. </div>
  8824. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  8825. <div class="pzListBox" v-if="pzList && pzList.length">
  8826. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8827. <div class="pzNavTop">
  8828. <div>批</div>
  8829. <div>
  8830. {{
  8831. pz.username && pz.username.length > 5
  8832. ? pz.username.substring(0, 5) + "..."
  8833. : pz.username
  8834. }}的批注
  8835. </div>
  8836. <div
  8837. class="pzDelete"
  8838. v-if="pz.userid == userid"
  8839. @click="deletePz(pz.id)"
  8840. >
  8841. 删除
  8842. </div>
  8843. </div>
  8844. <div
  8845. @click="checkImg(getImgList(pz.content))"
  8846. class="pzContent cont"
  8847. v-html="pz.content"
  8848. v-if="pz.type == '1'"
  8849. ></div>
  8850. <div class="pzContent" v-if="pz.type == '2'">
  8851. <audio :src="pz.content" controls="controls" ref="audio">
  8852. Your browser does not support the audio element.
  8853. </audio>
  8854. </div>
  8855. <div class="pzContent" v-if="pz.type == '3'">
  8856. <img
  8857. :src="pz.content"
  8858. style="width: 90%; margin: 0 auto; display: block"
  8859. @click="previewImg(pz.content)"
  8860. />
  8861. </div>
  8862. <div class="timeAndReply">
  8863. <div class="time">
  8864. {{ pz.time }}
  8865. </div>
  8866. <div @click="setReplyIndex(pz.id,pzIndex)">回复</div>
  8867. </div>
  8868. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8869. <div
  8870. v-for="(h, hIndex) in pz.hfList"
  8871. :key="hIndex"
  8872. class="hfItem"
  8873. >
  8874. <div class="whoReplyWho">
  8875. <div class="hfName">{{ h.username }}</div>
  8876. <div class="hfImg"><img src="../../assets/icon/newIcons/right.png" alt="" /></div>
  8877. <div class="hfName">{{ pz.username }}</div>
  8878. </div>
  8879. <div class="hfContent" v-html="h.content"></div>
  8880. <div class="hfBottom">
  8881. <div class="hfTime">{{ h.time }}</div>
  8882. <div @click="deleteReply(h.id)" v-if="userid == h.userid">删除</div>
  8883. </div>
  8884. </div>
  8885. </div>
  8886. </div>
  8887. </div>
  8888. <div class="noPz" v-else>
  8889. <img src="../../assets/icon/noPz.png" alt="" />
  8890. </div>
  8891. <div class="addPzButton">
  8892. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8893. 添加批注
  8894. </div>
  8895. <!-- <div class="img1">
  8896. <div @click="(addPzDialog = true), (pzType = 2)">
  8897. <img src="../../assets/audio.png" /><span>音频</span>
  8898. </div>
  8899. </div> -->
  8900. </div>
  8901. </div>
  8902. </div>
  8903. <div v-if="replyDialogVisible == true" class="addDialogCss" v-el-drag-dialog>
  8904. <div class="pzTop">
  8905. <div class="teacherPz">
  8906. <div class="teacherPzImg">
  8907. <img src="../../assets/icon/teacherPz.png" alt="" />
  8908. </div>
  8909. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8910. </div>
  8911. <div @click="replyDialogVisible = false">
  8912. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8913. </div>
  8914. </div>
  8915. <div class="addPzBox">
  8916. <!-- <div class="addPzCheck">
  8917. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8918. >文本</span
  8919. >
  8920. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8921. >音频</span
  8922. >
  8923. </div> -->
  8924. <div style="height: calc(100% - 95px)">
  8925. <editor-bar
  8926. class="binfo_input pzConText"
  8927. style="width: 100% !important;margin: 0 auto"
  8928. placeholder="请输入回复描述"
  8929. v-model="reply"
  8930. @change="change"
  8931. ></editor-bar>
  8932. </div>
  8933. <div class="addTextCss" @click="addHf">
  8934. 确定
  8935. </div>
  8936. </div>
  8937. </div>
  8938. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8939. <div class="pzTop">
  8940. <div class="teacherPz">
  8941. <div class="teacherPzImg">
  8942. <img src="../../assets/icon/teacherPz.png" alt="" />
  8943. </div>
  8944. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8945. </div>
  8946. <div @click="addPzDialog = false">
  8947. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8948. </div>
  8949. </div>
  8950. <div class="addPzBox">
  8951. <div class="addPzCheck">
  8952. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8953. >文本</span
  8954. >
  8955. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8956. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8957. >音频</span
  8958. >
  8959. </div>
  8960. <div style="height: calc(100% - 95px)">
  8961. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8962. v-if="pzType == 1"></textarea> -->
  8963. <editor-bar
  8964. class="binfo_input pzConText"
  8965. style="width: 100% !important"
  8966. placeholder="请输入任务描述"
  8967. v-model="pzConText"
  8968. @change="change"
  8969. v-if="pzType == 1"
  8970. ></editor-bar>
  8971. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8972. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8973. <div @click="addImg($event)">
  8974. <el-button type="primary">上传图片</el-button>
  8975. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8976. @change="beforeUpload1($event, 4)" />
  8977. </div>
  8978. </div> -->
  8979. </div>
  8980. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8981. 确定
  8982. </div>
  8983. </div>
  8984. </div>
  8985. <div v-if="proVisible" class="mask">
  8986. <div class="progressBox">
  8987. <!-- <div id="closePro" class="closeCss">
  8988. <img src="../../assets/icon/close.png" alt />
  8989. </div> -->
  8990. <div class="lbox">
  8991. <img src="../../assets/loading.gif" />上传中,请稍后
  8992. </div>
  8993. <div style="margin-bottom: 10px">
  8994. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8995. </div>
  8996. <el-progress
  8997. :text-inside="true"
  8998. :stroke-width="20"
  8999. :percentage="progress"
  9000. style="width: 80%"
  9001. ></el-progress>
  9002. </div>
  9003. </div>
  9004. <div v-if="proVisible2" class="mask">
  9005. <div class="progressBox">
  9006. <div class="lbox">
  9007. <img src="../../assets/loading.gif" />上传中,请稍后
  9008. </div>
  9009. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9010. </div>
  9011. </div>
  9012. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9013. <img width="100%" :src="dialogImageUrl" alt />
  9014. </el-dialog>
  9015. <el-dialog
  9016. :title="noteName != '' ? noteName : '查看问卷'"
  9017. :visible.sync="dialogVisible5"
  9018. :append-to-body="true"
  9019. width="1000px"
  9020. :before-close="handleClose"
  9021. class="dialog_diy dialog_diy3"
  9022. >
  9023. <div>
  9024. <div
  9025. class="a_add_title"
  9026. style="
  9027. display: flex;
  9028. flex-direction: row;
  9029. align-items: center;
  9030. justify-content: center;
  9031. "
  9032. >
  9033. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9034. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9035. </div>
  9036. <div class="a_addBox">
  9037. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9038. 题目内容
  9039. </div>
  9040. <div
  9041. class="a_add_box"
  9042. v-for="(item1, index1) in askJson.askCount"
  9043. :key="index1"
  9044. >
  9045. <div class="a_add_head">
  9046. <div style="display: flex">
  9047. <span class="askIndex"> {{ index1 + 1 }}</span>
  9048. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9049. </div>
  9050. <img
  9051. v-if="askJson.askJson[index1].img"
  9052. :src="askJson.askJson[index1].img"
  9053. style="height: 300px; margin-top: 10px; max-width: 100%"
  9054. />
  9055. </div>
  9056. <div class="a_add_body">
  9057. <div class="a_add_input">
  9058. <el-radio-group
  9059. v-model="radio[index1]"
  9060. v-if="
  9061. askJson.askJson[index1].type == '1' ||
  9062. !askJson.askJson[index1].type
  9063. "
  9064. >
  9065. <el-radio
  9066. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9067. .checkList"
  9068. :key="checkIndex"
  9069. :label="checkIndex"
  9070. :disabled="isAnswer"
  9071. class="redioStyle"
  9072. ><span v-html="item2"></span
  9073. ></el-radio>
  9074. </el-radio-group>
  9075. <el-checkbox-group
  9076. v-model="radio[index1]"
  9077. v-if="askJson.askJson[index1].type == '2'"
  9078. >
  9079. <el-checkbox
  9080. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9081. .checkList"
  9082. :key="checkIndex1"
  9083. :label="checkIndex1"
  9084. :disabled="isAnswer"
  9085. class="redioStyle"
  9086. ><span v-html="item2"></span>
  9087. </el-checkbox>
  9088. </el-checkbox-group>
  9089. </div>
  9090. </div>
  9091. </div>
  9092. </div>
  9093. </div>
  9094. <span slot="footer" class="dialog-footer">
  9095. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9096. >取 消</el-button
  9097. >
  9098. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9099. >确 定</el-button
  9100. >
  9101. </span>
  9102. </el-dialog>
  9103. <el-dialog
  9104. :title="noteName != '' ? noteName : '查看问卷'"
  9105. :visible.sync="dialogVisible5Teacher"
  9106. :append-to-body="true"
  9107. width="1000px"
  9108. :before-close="handleClose"
  9109. class="dialog_diy dialog_diy3"
  9110. >
  9111. <div>
  9112. <div class="w_name">
  9113. 学生姓名:<span>{{ sStudent.student }}</span>
  9114. </div>
  9115. <div
  9116. class="a_add_title"
  9117. style="
  9118. display: flex;
  9119. flex-direction: row;
  9120. align-items: center;
  9121. justify-content: center;
  9122. "
  9123. >
  9124. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9125. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9126. </div>
  9127. <div class="a_addBox">
  9128. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9129. 题目内容
  9130. </div>
  9131. <div
  9132. class="a_add_box"
  9133. v-for="(item1, index1) in askJson.askCount"
  9134. :key="index1"
  9135. >
  9136. <div class="a_add_head">
  9137. <div style="display: flex">
  9138. <span class="askIndex"> {{ index1 + 1 }}</span>
  9139. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9140. </div>
  9141. <img
  9142. v-if="askJson.askJson[index1].img"
  9143. :src="askJson.askJson[index1].img"
  9144. style="height: 300px; margin-top: 10px; max-width: 100%"
  9145. />
  9146. </div>
  9147. <div class="a_add_body">
  9148. <div class="a_add_input">
  9149. <el-radio-group
  9150. v-model="radio[index1]"
  9151. v-if="
  9152. askJson.askJson[index1].type == '1' ||
  9153. !askJson.askJson[index1].type
  9154. "
  9155. >
  9156. <el-radio
  9157. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9158. .checkList"
  9159. :key="checkIndex"
  9160. :label="checkIndex"
  9161. :disabled="isAnswer"
  9162. class="redioStyle"
  9163. ><span v-html="item2"></span
  9164. ></el-radio>
  9165. </el-radio-group>
  9166. <el-checkbox-group
  9167. v-model="radio[index1]"
  9168. v-if="askJson.askJson[index1].type == '2'"
  9169. >
  9170. <el-checkbox
  9171. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9172. .checkList"
  9173. :key="checkIndex1"
  9174. :label="checkIndex1"
  9175. :disabled="isAnswer"
  9176. class="redioStyle"
  9177. ><span v-html="item2"></span>
  9178. </el-checkbox>
  9179. </el-checkbox-group>
  9180. </div>
  9181. </div>
  9182. </div>
  9183. </div>
  9184. </div>
  9185. <span slot="footer" class="dialog-footer">
  9186. <el-button
  9187. @click="dialogVisible5Teacher = false"
  9188. v-show="noteName == ''"
  9189. >取 消</el-button
  9190. >
  9191. <el-button
  9192. type="primary"
  9193. @click="addStudentAskTeacher"
  9194. v-show="noteName == ''"
  9195. >确 定</el-button
  9196. >
  9197. </span>
  9198. </el-dialog>
  9199. <el-dialog
  9200. :title="noteName != '' ? noteName : '查看选择题'"
  9201. :visible.sync="dialogVisibleChoice"
  9202. :append-to-body="true"
  9203. width="1000px"
  9204. :before-close="handleClose"
  9205. class="dialog_diy dialog_diy3"
  9206. >
  9207. <div>
  9208. <div class="a_addBox">
  9209. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9210. 题目内容
  9211. </div>
  9212. <div
  9213. class="a_add_box"
  9214. v-for="(item1, index1) in testJson.testCount"
  9215. :key="index1"
  9216. >
  9217. <div class="a_add_head">
  9218. <div style="display: flex">
  9219. <span class="askIndex"> {{ index1 + 1 }}</span>
  9220. <div
  9221. v-if="testJson.testJson[index1].type == '1'"
  9222. style="margin-right: 5px; min-width: 70px"
  9223. >
  9224. (单选题)
  9225. </div>
  9226. <div
  9227. v-if="testJson.testJson[index1].type == '2'"
  9228. style="margin-right: 5px; min-width: 70px"
  9229. >
  9230. (多选题)
  9231. </div>
  9232. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9233. </div>
  9234. <img
  9235. v-if="testJson.testJson[index1].img"
  9236. :src="testJson.testJson[index1].img"
  9237. style="height: 300px; margin-top: 10px; max-width: 100%"
  9238. />
  9239. </div>
  9240. <div
  9241. class="timuImgBox"
  9242. v-if="
  9243. testJson.testJson[index1].timuList &&
  9244. testJson.testJson[index1].timuList.length
  9245. "
  9246. >
  9247. <div
  9248. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9249. :key="tIndex"
  9250. class="timuImg"
  9251. @click.stop="previewImg(timg.src)"
  9252. >
  9253. <img :src="timg.src" alt="" />
  9254. </div>
  9255. </div>
  9256. <div class="a_add_body">
  9257. <div class="a_add_input">
  9258. <el-radio-group
  9259. v-model="radio[index1]"
  9260. v-if="testJson.testJson[index1].type == '1'"
  9261. >
  9262. <div class="radioBox">
  9263. <el-radio
  9264. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9265. .checkList"
  9266. :key="checkIndex"
  9267. :label="checkIndex"
  9268. :disabled="isAnswer"
  9269. class="redioStyle"
  9270. >
  9271. <div
  9272. style="margin-right: 10px"
  9273. v-if="item2 && item2.imgType && item2.imgType == 1"
  9274. >
  9275. <div class="inImg" @click.stop="previewImg(item2.src)">
  9276. <img :src="item2.src" alt="" />
  9277. </div>
  9278. </div>
  9279. <span v-else v-html="item2"></span>
  9280. </el-radio>
  9281. </div>
  9282. </el-radio-group>
  9283. <el-checkbox-group
  9284. v-model="radio[index1]"
  9285. v-if="testJson.testJson[index1].type == '2'"
  9286. >
  9287. <div class="radioBox">
  9288. <el-checkbox
  9289. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9290. .checkList"
  9291. :key="checkIndex"
  9292. :label="checkIndex"
  9293. :disabled="isAnswer"
  9294. class="redioStyle"
  9295. >
  9296. <div
  9297. style="margin-right: 10px"
  9298. v-if="item2 && item2.imgType && item2.imgType == 1"
  9299. >
  9300. <div class="inImg" @click.stop="previewImg(item2.src)">
  9301. <img :src="item2.src" alt="" />
  9302. </div>
  9303. </div>
  9304. <span v-else v-html="item2"></span>
  9305. </el-checkbox>
  9306. </div>
  9307. </el-checkbox-group>
  9308. </div>
  9309. </div>
  9310. </div>
  9311. </div>
  9312. </div>
  9313. <span slot="footer" class="dialog-footer">
  9314. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9315. >取 消</el-button
  9316. >
  9317. <el-button
  9318. type="primary"
  9319. @click="addStudentTest"
  9320. v-show="noteName == ''"
  9321. >确 定</el-button
  9322. >
  9323. </span>
  9324. </el-dialog>
  9325. <el-dialog
  9326. :title="noteName != '' ? noteName : '查看选择题'"
  9327. :visible.sync="dialogVisibleChoiceTeacher"
  9328. :append-to-body="true"
  9329. width="1000px"
  9330. :before-close="handleClose"
  9331. class="dialog_diy dialog_diy3"
  9332. >
  9333. <div>
  9334. <div class="w_name">
  9335. 学生姓名:<span>{{ sStudent.student }}</span>
  9336. </div>
  9337. <div class="a_addBox">
  9338. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9339. 题目内容
  9340. </div>
  9341. <div
  9342. class="a_add_box"
  9343. v-for="(item1, index1) in testJson.testCount"
  9344. :key="index1"
  9345. >
  9346. <div class="a_add_head">
  9347. <div style="display: flex">
  9348. <span class="askIndex"> {{ index1 + 1 }}</span>
  9349. <div
  9350. v-if="testJson.testJson[index1].type == '1'"
  9351. style="margin-right: 5px; min-width: 70px"
  9352. >
  9353. (单选题)
  9354. </div>
  9355. <div
  9356. v-if="testJson.testJson[index1].type == '2'"
  9357. style="margin-right: 5px; min-width: 70px"
  9358. >
  9359. (多选题)
  9360. </div>
  9361. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9362. </div>
  9363. <img
  9364. v-if="testJson.testJson[index1].img"
  9365. :src="testJson.testJson[index1].img"
  9366. style="height: 300px; margin-top: 10px; max-width: 100%"
  9367. />
  9368. </div>
  9369. <div
  9370. class="timuImgBox"
  9371. v-if="
  9372. testJson.testJson[index1].timuList &&
  9373. testJson.testJson[index1].timuList.length
  9374. "
  9375. >
  9376. <div
  9377. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9378. :key="tIndex"
  9379. class="timuImg"
  9380. @click.stop="previewImg(timg.src)"
  9381. >
  9382. <img :src="timg.src" alt="" />
  9383. </div>
  9384. </div>
  9385. <div class="a_add_body">
  9386. <div class="a_add_input">
  9387. <el-radio-group
  9388. v-model="radio[index1]"
  9389. v-if="testJson.testJson[index1].type == '1'"
  9390. >
  9391. <div class="radioBox">
  9392. <el-radio
  9393. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9394. .checkList"
  9395. :key="checkIndex"
  9396. :label="checkIndex"
  9397. :disabled="isAnswer"
  9398. class="redioStyle"
  9399. >
  9400. <div
  9401. style="margin-right: 10px"
  9402. v-if="item2 && item2.imgType && item2.imgType == 1"
  9403. >
  9404. <div class="inImg" @click.stop="previewImg(item2.src)">
  9405. <img :src="item2.src" alt="" />
  9406. </div>
  9407. </div>
  9408. <span v-else v-html="item2"></span>
  9409. </el-radio>
  9410. </div>
  9411. </el-radio-group>
  9412. <el-checkbox-group
  9413. v-model="radio[index1]"
  9414. v-if="testJson.testJson[index1].type == '2'"
  9415. >
  9416. <div class="radioBox">
  9417. <el-checkbox
  9418. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9419. .checkList"
  9420. :key="checkIndex"
  9421. :label="checkIndex"
  9422. :disabled="isAnswer"
  9423. class="redioStyle"
  9424. >
  9425. <div
  9426. style="margin-right: 10px"
  9427. v-if="item2 && item2.imgType && item2.imgType == 1"
  9428. >
  9429. <div class="inImg" @click.stop="previewImg(item2.src)">
  9430. <img :src="item2.src" alt="" />
  9431. </div>
  9432. </div>
  9433. <span v-else v-html="item2"></span>
  9434. </el-checkbox>
  9435. </div>
  9436. </el-checkbox-group>
  9437. </div>
  9438. </div>
  9439. </div>
  9440. </div>
  9441. </div>
  9442. <span slot="footer" class="dialog-footer">
  9443. <el-button
  9444. @click="dialogVisibleChoiceTeacher = false"
  9445. v-show="noteName == ''"
  9446. >取 消</el-button
  9447. >
  9448. <el-button
  9449. type="primary"
  9450. @click="addStudentTestTeacher"
  9451. v-show="noteName == ''"
  9452. >确 定</el-button
  9453. >
  9454. </span>
  9455. </el-dialog>
  9456. <el-dialog
  9457. title="查看富文本"
  9458. :visible.sync="dialogVisible1"
  9459. :append-to-body="true"
  9460. width="500px"
  9461. :before-close="handleClose"
  9462. class="dialog_diy textCss"
  9463. >
  9464. <el-form style="font-size: 20px">
  9465. <el-form-item label="文本标题" class="textTitle">
  9466. <div style="font-size: 20px">{{ text.name }}</div>
  9467. </el-form-item>
  9468. <div>富文本内容</div>
  9469. <div
  9470. v-html="text.url"
  9471. style="font-size: 18px; padding: 40px 0 0 0"
  9472. ></div>
  9473. </el-form>
  9474. <span slot="footer" class="dialog-footer">
  9475. <el-button type="primary" @click="dialogVisible1 = false"
  9476. >确定</el-button
  9477. >
  9478. </span>
  9479. </el-dialog>
  9480. <el-dialog
  9481. title="文件预览"
  9482. :visible.sync="dialogVisible3"
  9483. width="50%"
  9484. :before-close="handleClose"
  9485. class="dialog_diy"
  9486. :class="{ fullStyle: full }"
  9487. >
  9488. <div slot="title" class="header-title">
  9489. <div style="color: #fff">文件预览</div>
  9490. <div style="position: absolute; top: 19px; right: 50px">
  9491. <img
  9492. src="../../assets/full.png"
  9493. style="height: 16px; cursor: pointer"
  9494. alt=""
  9495. @click="fullTools"
  9496. />
  9497. </div>
  9498. </div>
  9499. <pdf
  9500. v-if="showPDF"
  9501. :pdfUrl="pptImgUrl"
  9502. style="width: 100%; height: 520px; overflow: auto"
  9503. :class="{ fullStyle: full }"
  9504. ></pdf>
  9505. <iframe
  9506. v-else
  9507. :src="pptImgUrl"
  9508. frameborder="0"
  9509. width="100%"
  9510. height="600"
  9511. :class="{ fullStyle: full }"
  9512. ></iframe>
  9513. </el-dialog>
  9514. <el-dialog
  9515. title="文件预览"
  9516. :visible.sync="dialogVisible6"
  9517. width="50%"
  9518. :before-close="handleClose"
  9519. class="dialog_diy"
  9520. >
  9521. <iframe
  9522. :src="pptImgUrl1"
  9523. frameborder="0"
  9524. width="100%"
  9525. height="600"
  9526. ></iframe>
  9527. </el-dialog>
  9528. <el-dialog
  9529. title="提示"
  9530. :visible.sync="dialogVisible4"
  9531. :append-to-body="true"
  9532. width="800px"
  9533. :before-close="handleClose"
  9534. class="dialog_diy notice"
  9535. >
  9536. <div>此功能暂未开放!</div>
  9537. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9538. </el-dialog>
  9539. <el-dialog
  9540. title="问答"
  9541. :visible.sync="answerDialogVisible"
  9542. :append-to-body="true"
  9543. width="800px"
  9544. :before-close="handleClose"
  9545. class="dialog_diy"
  9546. >
  9547. <div>
  9548. <div
  9549. style="
  9550. display: flex;
  9551. flex-wrap: nowrap;
  9552. flex-direction: column;
  9553. position: relative;
  9554. "
  9555. >
  9556. <div class="queTop" style="padding: 20px 0 20px 0">
  9557. <div class="question">
  9558. <img src="../../assets/icon/question.png" alt />
  9559. </div>
  9560. <div class="queTitle">
  9561. <div style="width: 90px; min-width: 90px">提问:</div>
  9562. <div>{{ answerQ }}</div>
  9563. </div>
  9564. </div>
  9565. <div class="ediBottom">
  9566. <textarea
  9567. rows="6"
  9568. class="binfo_input"
  9569. cols
  9570. style="width: 95%; height: 120px"
  9571. v-model="questionAnswer"
  9572. ></textarea>
  9573. </div>
  9574. </div>
  9575. </div>
  9576. <div slot="footer">
  9577. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9578. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9579. </div>
  9580. </el-dialog>
  9581. <el-dialog
  9582. title="倒计时"
  9583. :visible.sync="timeDialogVisible"
  9584. :append-to-body="true"
  9585. width="800px"
  9586. :before-close="handleClose"
  9587. class="dialog_diy"
  9588. >
  9589. <div>
  9590. <div style="margin-bottom: 20px; color: #999">
  9591. 提示:点击“+”或“-”修改倒计时时长。
  9592. </div>
  9593. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9594. </div>
  9595. <div slot="footer">
  9596. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9597. </div>
  9598. </el-dialog>
  9599. <el-dialog
  9600. title="权限设置"
  9601. :visible.sync="juriVisible"
  9602. :append-to-body="true"
  9603. width="400px"
  9604. :before-close="handleClose"
  9605. class="dialog_diy"
  9606. >
  9607. <div>
  9608. <div class="open_box">
  9609. <div class="switch_box">
  9610. <span>允许学生查看所有作业</span>
  9611. <el-switch
  9612. v-model="sIsOpen"
  9613. active-text=""
  9614. class="switchCss"
  9615. @change="updateSLook"
  9616. ></el-switch>
  9617. </div>
  9618. <div
  9619. class="switch_box"
  9620. v-if="
  9621. courseDetail.userid == userid ||
  9622. (courseDetail.course_teacher &&
  9623. courseDetail.course_teacher.indexOf(userid) != -1)
  9624. "
  9625. >
  9626. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9627. <span>禁止学生查看所有阶段</span>
  9628. <el-switch
  9629. v-model="IsLookOpen"
  9630. active-text=""
  9631. class="switchCss"
  9632. @change="updateLookOpen"
  9633. ></el-switch>
  9634. </div>
  9635. <div class="switch_box" v-if="courseDetail.userid == userid">
  9636. <span>开启跟随模式</span>
  9637. <el-switch
  9638. v-model="IsFollow"
  9639. active-text=""
  9640. class="switchCss"
  9641. @change="updateFollow"
  9642. ></el-switch>
  9643. </div>
  9644. </div>
  9645. </div>
  9646. <div slot="footer">
  9647. <el-button
  9648. style="background: #409efe; color: #fff"
  9649. @click="juriVisible = false"
  9650. >关 闭</el-button
  9651. >
  9652. </div>
  9653. </el-dialog>
  9654. <el-dialog
  9655. title="查看视频"
  9656. :visible.sync="videoVisible"
  9657. :append-to-body="true"
  9658. width="1000px"
  9659. :before-close="handleClose"
  9660. class="dialog_diy1"
  9661. >
  9662. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9663. <video-player
  9664. class="video-player vjs-custom-skin"
  9665. :playsinline="true"
  9666. :options="videoDetail"
  9667. @play="onPlayerPlay($event)"
  9668. style="width: 100%; height: 100%"
  9669. ></video-player>
  9670. </div>
  9671. <div slot="footer">
  9672. <el-button
  9673. style="background: #409efe; color: #fff"
  9674. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9675. >
  9676. 关 闭</el-button
  9677. >
  9678. </div>
  9679. </el-dialog>
  9680. <el-dialog
  9681. title="查看详情"
  9682. :visible.sync="commentDialogVisible"
  9683. :append-to-body="true"
  9684. width="800px"
  9685. :before-close="handleClose"
  9686. class="dialog_diy"
  9687. >
  9688. <div class="commentTop">
  9689. <div class="studentDetail">
  9690. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9691. <div class="nameAndTime">
  9692. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9693. <div>{{ commentDetail.time }}</div>
  9694. </div>
  9695. <div
  9696. class="returnBtn"
  9697. style="margin-left: auto; width: 80px"
  9698. v-if="
  9699. commentDetail.works &&
  9700. commentDetail.type == 0 &&
  9701. (tType == 1 || tType == 4)
  9702. "
  9703. @click="
  9704. showPicturePaint(
  9705. commentDetail.img ? commentDetail.img : commentDetail.works
  9706. )
  9707. "
  9708. >
  9709. 教师批注
  9710. </div>
  9711. </div>
  9712. <div
  9713. class="worksAnswer"
  9714. v-if="commentDetail.works && commentDetail.type == 2"
  9715. >
  9716. {{ JSON.parse(commentDetail.works)[0].answer }}
  9717. </div>
  9718. <div
  9719. class="worksAnswer"
  9720. v-if="commentDetail.works && commentDetail.type == 1"
  9721. >
  9722. <img
  9723. src="../../assets/teacherWork.png"
  9724. v-if="commentDetail.ateacher"
  9725. class="w_teachert"
  9726. />
  9727. <pdf
  9728. v-if="showPDF"
  9729. :pdfUrl="pptImgUrl"
  9730. style="width: 100%; height: 520px; overflow: auto"
  9731. :class="{ fullStyle: full }"
  9732. ></pdf>
  9733. <iframe
  9734. v-else
  9735. :src="pptImgUrl"
  9736. frameborder="0"
  9737. width="100%"
  9738. height="600"
  9739. :class="{ fullStyle: full }"
  9740. ></iframe>
  9741. </div>
  9742. <div
  9743. class="worksAnswer"
  9744. v-if="commentDetail.works && commentDetail.type == 0"
  9745. >
  9746. <img
  9747. src="../../assets/teacherWork.png"
  9748. v-if="commentDetail.ateacher"
  9749. class="w_teachert"
  9750. style="right: 105px"
  9751. />
  9752. <img
  9753. :src="commentDetail.works"
  9754. alt=""
  9755. @click="previewImg(commentDetail.works)"
  9756. />
  9757. </div>
  9758. <div
  9759. class="worksAnswer"
  9760. v-if="commentDetail.works && commentDetail.type == 3"
  9761. >
  9762. <img
  9763. src="../../assets/teacherWork.png"
  9764. v-if="commentDetail.ateacher"
  9765. class="w_teachert"
  9766. />
  9767. <video-player
  9768. class="video-player vjs-custom-skin"
  9769. :playsinline="true"
  9770. :options="videoDetail"
  9771. @play="onPlayerPlay($event)"
  9772. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9773. ></video-player>
  9774. </div>
  9775. <div
  9776. class="worksAnswer"
  9777. v-if="commentDetail.works && commentDetail.type == 10"
  9778. >
  9779. <div class="cont" v-html="commentDetail.works.text"></div>
  9780. </div>
  9781. <div
  9782. class="worksAnswer codeFileBox"
  9783. v-if="commentDetail.works && commentDetail.type == 12"
  9784. @click="downloadFile(commentDetail.works)"
  9785. >
  9786. <img src="../../assets/icon/codeFile.png" />
  9787. <div>点击下载文件</div>
  9788. </div>
  9789. <div
  9790. class="worksAnswer codeFileBox"
  9791. v-if="commentDetail.works && commentDetail.type == 15"
  9792. @click="
  9793. openCocoPi(
  9794. 57,
  9795. commentIndexJson.toolIndex,
  9796. commentDetail.userid,
  9797. commentDetail.sName
  9798. )
  9799. "
  9800. >
  9801. <img src="../../assets/icon/codeFile.png" />
  9802. <div>点击打开CocoPi</div>
  9803. </div>
  9804. <div
  9805. class="worksAnswer"
  9806. v-if="commentDetail.works && commentDetail.type == 13"
  9807. >
  9808. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9809. </div>
  9810. <div
  9811. class="worksAnswer"
  9812. v-if="commentDetail.works && commentDetail.type == 4"
  9813. >
  9814. <div class="evalCss">
  9815. <div class="nav">请选择星星进行评分</div>
  9816. <div class="middleBox" v-if="eScore.eStar">
  9817. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9818. <div class="nameAndrate">
  9819. <div>{{ e.value }}</div>
  9820. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9821. </div>
  9822. <div v-if="e.detail">{{ e.detail }}</div>
  9823. </div>
  9824. <div class="bz">
  9825. <textarea
  9826. disabled
  9827. rows="4"
  9828. class="pj"
  9829. style="
  9830. padding: 10px 5px;
  9831. width: 70%;
  9832. background: #f7f6f9;
  9833. font-size: 14px;
  9834. text-indent: 10px;
  9835. color: #000;
  9836. "
  9837. cols
  9838. v-model="eScore.eBzText"
  9839. placeholder="请输入评价内容..."
  9840. ></textarea>
  9841. </div>
  9842. </div>
  9843. </div>
  9844. </div>
  9845. <div class="comment">
  9846. <div class="commentList">
  9847. <div class="commentImg">
  9848. <img
  9849. @click="
  9850. isLikes(
  9851. commentDetail.wid,
  9852. userid,
  9853. 1,
  9854. null,
  9855. commentDetail.isLikes
  9856. )
  9857. "
  9858. :src="commentDetail.isLikes == true ? likes : noLikes"
  9859. alt=""
  9860. />
  9861. </div>
  9862. <div>{{ commentDetail.likesCount }}</div>
  9863. </div>
  9864. <div class="commentList">
  9865. <div class="commentImg">
  9866. <img src="../../assets/icon/comment/comment.png" alt="" />
  9867. </div>
  9868. <div>{{ commentDetail.commentCount }}</div>
  9869. </div>
  9870. </div>
  9871. <div class="drawPBox" v-if="commentDetail.img">
  9872. <span>教师批注</span>
  9873. <img
  9874. :src="commentDetail.img"
  9875. alt=""
  9876. @click="previewImg(commentDetail.img)"
  9877. />
  9878. <span
  9879. class="deleteImg"
  9880. v-if="tType == 1 || tType == 4"
  9881. @click.stop="deletePicturePaint(commentDetail.wid)"
  9882. style="
  9883. font-size: 14px;
  9884. width: auto !important;
  9885. color: #b4b4b4;
  9886. top: unset;
  9887. bottom: 0;
  9888. border: none;
  9889. padding: 0;
  9890. height: auto !important;
  9891. margin: 0;
  9892. "
  9893. >删除</span
  9894. >
  9895. </div>
  9896. </div>
  9897. <div class="commentBox">
  9898. <div class="pl">评论:</div>
  9899. <div style="max-height: 200px; overflow: auto">
  9900. <div
  9901. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9902. style="padding: 10px 0 0 0"
  9903. >
  9904. <div
  9905. class="studentDetail"
  9906. style="padding-top: 10px"
  9907. v-for="(co, coIndex) in commentDetail.commentJson"
  9908. :key="coIndex"
  9909. >
  9910. <div class="tx" style="min-width: 50px">
  9911. <img src="../../assets/avatar.png" alt="" />
  9912. </div>
  9913. <div class="plPerson">
  9914. <div class="plName">
  9915. <div>{{ co.commentPeople }}</div>
  9916. <div style="margin-left: 5px">
  9917. {{ co.commentTime }}
  9918. </div>
  9919. <div
  9920. class="deleteComment"
  9921. v-if="userid == co.userid"
  9922. @click="deleteComment(co.wid)"
  9923. >
  9924. 删除
  9925. </div>
  9926. </div>
  9927. <div class="plContent">{{ co.commentText }}</div>
  9928. </div>
  9929. </div>
  9930. </div>
  9931. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9932. </div>
  9933. </div>
  9934. <div style="margin-top: 10px">
  9935. <div class="displayBox">
  9936. <div
  9937. style="
  9938. color: #556db4;
  9939. font-size: 14px;
  9940. font-weight: bold;
  9941. padding-bottom: 10px;
  9942. "
  9943. >
  9944. 评价
  9945. </div>
  9946. <div class="easy_comment" v-if="false">
  9947. <div
  9948. v-for="(p, pIndex) in PlTextList"
  9949. :key="pIndex"
  9950. @click="fastText(p, 1)"
  9951. >
  9952. {{ p }}
  9953. </div>
  9954. </div>
  9955. </div>
  9956. <div>
  9957. <textarea
  9958. rows="3"
  9959. class="pj"
  9960. style="padding: 10px 5px"
  9961. cols
  9962. v-model="commentText"
  9963. placeholder="请输入评论"
  9964. ></textarea>
  9965. </div>
  9966. </div>
  9967. <div slot="footer">
  9968. <el-button
  9969. @click="
  9970. (commentDialogVisible = false),
  9971. (commentIndexJson = {}),
  9972. videoDetail.sources && videoDetail.sources[0]
  9973. ? (videoDetail.sources[0].src = '')
  9974. : ''
  9975. "
  9976. >取 消</el-button
  9977. >
  9978. <el-button
  9979. type="primary"
  9980. @click="addComment(commentDetail.wid, userid, 2)"
  9981. >确 定</el-button
  9982. >
  9983. </div>
  9984. </el-dialog>
  9985. <el-dialog
  9986. title="查看文档"
  9987. :visible.sync="fullDialogVisible"
  9988. :append-to-body="true"
  9989. width="100%"
  9990. :before-close="handleClose"
  9991. :show-close="false"
  9992. class="dialog_diy full_diy"
  9993. :class="{ full_diy2: fulltype == 3 }"
  9994. >
  9995. <div slot="title" class="header-title">
  9996. <div style="color: #fff">查看文档</div>
  9997. <div
  9998. @click="fullDialogVisible = false"
  9999. style="
  10000. cursor: pointer;
  10001. position: absolute;
  10002. top: 20px;
  10003. right: 20px;
  10004. color: #fff;
  10005. "
  10006. >
  10007. 退出全屏
  10008. </div>
  10009. </div>
  10010. <div style="height: 100%">
  10011. <div
  10012. class="wheel"
  10013. v-if="
  10014. fulltype == 2 &&
  10015. fullUrl.indexOf(
  10016. 'https://view.officeapps.live.com/op/view.aspx?src='
  10017. ) != -1
  10018. "
  10019. style="width: 95%; margin: 0 auto"
  10020. >
  10021. <iframe
  10022. style="width: 100%; height: 100%; border: none"
  10023. :src="fullUrl"
  10024. ></iframe>
  10025. </div>
  10026. <iframe
  10027. v-else-if="fulltype == 2"
  10028. style="width: 100%; height: 100%; border: none"
  10029. :src="fullUrl"
  10030. security="restricted"
  10031. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10032. ></iframe>
  10033. <pdf
  10034. v-else-if="fulltype == 3"
  10035. :pdfUrl="fullUrl"
  10036. style="width: 100%; height: 100%; overflow: auto"
  10037. ></pdf>
  10038. <div
  10039. class="wheel"
  10040. v-if="fulltype == 1"
  10041. style="
  10042. box-shadow: 0 0 6px 1px #f2f2f2;
  10043. width: 100%;
  10044. background: #f1f1f1;
  10045. "
  10046. >
  10047. <div class="title" style="width: 100%; box-sizing: border-box">
  10048. 查看文档
  10049. </div>
  10050. <el-form class="textBox" style="height: 90%">
  10051. <el-form-item class="textTitle">
  10052. <div style="font-size: 22px">
  10053. {{ fullUrl.name }}
  10054. </div>
  10055. </el-form-item>
  10056. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10057. <div
  10058. v-html="fullUrl.url"
  10059. class="textContent"
  10060. style="height: auto"
  10061. ></div>
  10062. </el-form>
  10063. </div>
  10064. </div>
  10065. <!-- <div slot="footer">
  10066. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10067. </div> -->
  10068. </el-dialog>
  10069. <el-dialog
  10070. title="个人评价"
  10071. :visible.sync="studentEvalDialogVisible"
  10072. :append-to-body="true"
  10073. width="800px"
  10074. :before-close="handleClose"
  10075. class="dialog_diy"
  10076. >
  10077. <div class="evalCss">
  10078. <div class="nav">请选择星星进行评分</div>
  10079. <div class="middleBox" v-if="eScore.eStar">
  10080. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10081. <div class="nameAndrate">
  10082. <div>{{ e.value }}</div>
  10083. <el-rate
  10084. v-model="eScore.eStar[eIndex]"
  10085. :disabled="isStar"
  10086. ></el-rate>
  10087. </div>
  10088. <div v-if="e.detail">{{ e.detail }}</div>
  10089. </div>
  10090. <div class="easy_comment" v-if="false">
  10091. <div
  10092. v-for="(p, pIndex) in PlTextList"
  10093. :key="pIndex"
  10094. @click="fastText(p, 2)"
  10095. >
  10096. {{ p }}
  10097. </div>
  10098. </div>
  10099. <div class="bz">
  10100. <textarea
  10101. :disabled="isStar"
  10102. rows="4"
  10103. class="pj"
  10104. style="
  10105. padding: 10px 5px;
  10106. width: 70%;
  10107. background: #f7f6f9;
  10108. font-size: 14px;
  10109. text-indent: 10px;
  10110. "
  10111. cols
  10112. v-model="eScore.eBzText"
  10113. placeholder="请输入评价内容..."
  10114. ></textarea>
  10115. </div>
  10116. </div>
  10117. </div>
  10118. <div slot="footer">
  10119. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10120. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10121. >确 定</el-button
  10122. >
  10123. </div>
  10124. </el-dialog>
  10125. <el-dialog
  10126. title="个人评价"
  10127. :visible.sync="studentEvalDialogVisibleTeacher"
  10128. :append-to-body="true"
  10129. width="800px"
  10130. :before-close="handleClose"
  10131. class="dialog_diy"
  10132. >
  10133. <div class="w_name">
  10134. 学生姓名:<span>{{ sStudent.student }}</span>
  10135. </div>
  10136. <div class="evalCss">
  10137. <div class="nav">请选择星星进行评分</div>
  10138. <div class="middleBox" v-if="eScore.eStar">
  10139. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10140. <div class="nameAndrate">
  10141. <div>{{ e.value }}</div>
  10142. <el-rate
  10143. v-model="eScore.eStar[eIndex]"
  10144. :disabled="isStar"
  10145. ></el-rate>
  10146. </div>
  10147. <div v-if="e.detail">{{ e.detail }}</div>
  10148. </div>
  10149. <div class="easy_comment" v-if="false">
  10150. <div
  10151. v-for="(p, pIndex) in PlTextList"
  10152. :key="pIndex"
  10153. @click="fastText(p, 2)"
  10154. >
  10155. {{ p }}
  10156. </div>
  10157. </div>
  10158. <div class="bz">
  10159. <textarea
  10160. :disabled="isStar"
  10161. rows="4"
  10162. class="pj"
  10163. style="
  10164. padding: 10px 5px;
  10165. width: 70%;
  10166. background: #f7f6f9;
  10167. font-size: 14px;
  10168. text-indent: 10px;
  10169. "
  10170. cols
  10171. v-model="eScore.eBzText"
  10172. placeholder="请输入评价内容..."
  10173. ></textarea>
  10174. </div>
  10175. </div>
  10176. </div>
  10177. <div slot="footer">
  10178. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10179. >取 消</el-button
  10180. >
  10181. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10182. >确 定</el-button
  10183. >
  10184. </div>
  10185. </el-dialog>
  10186. <el-dialog
  10187. title="选择匹配"
  10188. :visible.sync="dialogVisibleSelect"
  10189. :append-to-body="true"
  10190. width="90%"
  10191. :before-close="handleClose"
  10192. class="dialog_diy dialog_diy3"
  10193. >
  10194. <div v-if="selectJson">
  10195. <div class="select_box2">
  10196. <div class="select_box2_title">
  10197. <div>选择匹配</div>
  10198. <div>请选择对应的答案进行答题!</div>
  10199. </div>
  10200. <div class="select_box2_box">
  10201. <div class="select_box2_img">
  10202. <img
  10203. :src="selectJson.url"
  10204. @click="previewImg(selectJson.url)"
  10205. alt=""
  10206. />
  10207. </div>
  10208. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10209. <div style="padding-top: 15px">
  10210. <div class="select_answer_title" v-if="isSelect">
  10211. {{ selectAnswer.stu }}
  10212. </div>
  10213. <div class="select_answer_title" v-else>
  10214. 根据题目选择对应答案
  10215. </div>
  10216. <div
  10217. class="select_box2_answer_box"
  10218. v-for="(item2, checkIndex) in selectJson.select"
  10219. :key="checkIndex"
  10220. >
  10221. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10222. <el-select
  10223. :disabled="isSelect"
  10224. v-model="selectAnswer.answer[checkIndex]"
  10225. placeholder="请选择正确答案"
  10226. >
  10227. <el-option
  10228. v-for="(e, eIndex) in selectJson.select"
  10229. :key="eIndex"
  10230. :label="e"
  10231. :value="eIndex"
  10232. >
  10233. </el-option>
  10234. </el-select>
  10235. </div>
  10236. </div>
  10237. <div
  10238. class="rightAnswerCss"
  10239. v-if="isSelect && (tType == 1 || tType == 4)"
  10240. >
  10241. <div
  10242. v-for="(a, aIndex) in selectJson.answer"
  10243. :key="aIndex"
  10244. class="rightAnswer"
  10245. >
  10246. <div
  10247. v-if="selectAnswer.answer[aIndex] === a"
  10248. style="color: #767de1"
  10249. >
  10250. 回答正确
  10251. </div>
  10252. <div v-else>回答错误</div>
  10253. <div
  10254. style="margin-left: 10px"
  10255. v-if="selectAnswer.answer[aIndex] !== a"
  10256. >
  10257. 正确答案:
  10258. </div>
  10259. <div
  10260. :class="
  10261. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10262. "
  10263. >
  10264. {{ selectJson.select[a] }}
  10265. </div>
  10266. </div>
  10267. </div>
  10268. </div>
  10269. <div class="upAnswerCss">
  10270. <el-button
  10271. type="primary"
  10272. @click="addSelectAnswer"
  10273. v-if="!isSelect"
  10274. >提交答案</el-button
  10275. >
  10276. </div>
  10277. </div>
  10278. </div>
  10279. </div>
  10280. </el-dialog>
  10281. <el-dialog
  10282. title="选择匹配"
  10283. :visible.sync="dialogVisibleSelectTeacher"
  10284. :append-to-body="true"
  10285. width="90%"
  10286. :before-close="handleClose"
  10287. class="dialog_diy dialog_diy3"
  10288. >
  10289. <div v-if="selectJson">
  10290. <div class="w_name">
  10291. 学生姓名:<span>{{ sStudent.student }}</span>
  10292. </div>
  10293. <div class="select_box2">
  10294. <div class="select_box2_title">
  10295. <div>选择匹配</div>
  10296. <div>请选择对应的答案进行答题!</div>
  10297. </div>
  10298. <div class="select_box2_box">
  10299. <div class="select_box2_img">
  10300. <img
  10301. :src="selectJson.url"
  10302. @click="previewImg(selectJson.url)"
  10303. alt=""
  10304. />
  10305. </div>
  10306. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10307. <div style="padding-top: 15px">
  10308. <div class="select_answer_title" v-if="isSelect">
  10309. {{ selectAnswer.stu }}
  10310. </div>
  10311. <div class="select_answer_title" v-else>
  10312. 根据题目选择对应答案
  10313. </div>
  10314. <div
  10315. class="select_box2_answer_box"
  10316. v-for="(item2, checkIndex) in selectJson.select"
  10317. :key="checkIndex"
  10318. >
  10319. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10320. <el-select
  10321. :disabled="isSelect"
  10322. v-model="selectAnswer.answer[checkIndex]"
  10323. placeholder="请选择正确答案"
  10324. >
  10325. <el-option
  10326. v-for="(e, eIndex) in selectJson.select"
  10327. :key="eIndex"
  10328. :label="e"
  10329. :value="eIndex"
  10330. >
  10331. </el-option>
  10332. </el-select>
  10333. </div>
  10334. </div>
  10335. <div
  10336. class="rightAnswerCss"
  10337. v-if="isSelect && (tType == 1 || tType == 4)"
  10338. >
  10339. <div
  10340. v-for="(a, aIndex) in selectJson.answer"
  10341. :key="aIndex"
  10342. class="rightAnswer"
  10343. >
  10344. <div
  10345. v-if="selectAnswer.answer[aIndex] === a"
  10346. style="color: #767de1"
  10347. >
  10348. 回答正确
  10349. </div>
  10350. <div v-else>回答错误</div>
  10351. <div
  10352. style="margin-left: 10px"
  10353. v-if="selectAnswer.answer[aIndex] !== a"
  10354. >
  10355. 正确答案:
  10356. </div>
  10357. <div
  10358. :class="
  10359. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10360. "
  10361. >
  10362. {{ selectJson.select[a] }}
  10363. </div>
  10364. </div>
  10365. </div>
  10366. </div>
  10367. <div class="upAnswerCss">
  10368. <el-button
  10369. type="primary"
  10370. @click="addSelectAnswerTeacher"
  10371. v-if="!isSelect"
  10372. >提交答案</el-button
  10373. >
  10374. </div>
  10375. </div>
  10376. </div>
  10377. </div>
  10378. </el-dialog>
  10379. <el-dialog
  10380. title="教师评分"
  10381. :visible.sync="dialogVisibleScore"
  10382. :append-to-body="true"
  10383. width="800px"
  10384. :before-close="handleClose"
  10385. class="dialog_diy"
  10386. >
  10387. <div>
  10388. <div class="studentDetail">
  10389. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10390. <div class="nameAndTime">
  10391. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10392. <div>{{ commentDetail.time }}</div>
  10393. </div>
  10394. </div>
  10395. <div
  10396. class="worksAnswer"
  10397. v-if="commentDetail.works && commentDetail.type == 2"
  10398. >
  10399. {{ JSON.parse(commentDetail.works)[0].answer }}
  10400. </div>
  10401. <div
  10402. class="worksAnswer"
  10403. v-if="commentDetail.works && commentDetail.type == 1"
  10404. >
  10405. <pdf
  10406. v-if="showPDF"
  10407. :pdfUrl="pptImgUrl"
  10408. style="width: 100%; height: 520px; overflow: auto"
  10409. :class="{ fullStyle: full }"
  10410. ></pdf>
  10411. <iframe
  10412. v-else
  10413. :src="pptImgUrl"
  10414. frameborder="0"
  10415. width="100%"
  10416. height="600"
  10417. :class="{ fullStyle: full }"
  10418. ></iframe>
  10419. </div>
  10420. <div
  10421. class="worksAnswer"
  10422. v-if="commentDetail.works && commentDetail.type == 0"
  10423. >
  10424. <img
  10425. :src="commentDetail.works"
  10426. alt=""
  10427. @click="previewImg(commentDetail.works)"
  10428. />
  10429. </div>
  10430. <div
  10431. class="worksAnswer"
  10432. v-if="commentDetail.works && commentDetail.type == 3"
  10433. >
  10434. <video-player
  10435. class="video-player vjs-custom-skin"
  10436. :playsinline="true"
  10437. :options="videoDetail"
  10438. @play="onPlayerPlay($event)"
  10439. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10440. ></video-player>
  10441. </div>
  10442. <div
  10443. class="worksAnswer codeFileBox"
  10444. v-if="commentDetail.works && commentDetail.type == 12"
  10445. @click="downloadFile(commentDetail.works)"
  10446. >
  10447. <img src="../../assets/icon/codeFile.png" />
  10448. <div>点击下载文件</div>
  10449. </div>
  10450. <div
  10451. class="worksAnswer codeFileBox"
  10452. v-if="commentDetail.works && commentDetail.type == 15"
  10453. @click="
  10454. openCocoPi(
  10455. 57,
  10456. commentIndexJson.toolIndex,
  10457. commentDetail.userid,
  10458. commentDetail.sName
  10459. )
  10460. "
  10461. >
  10462. <img src="../../assets/icon/codeFile.png" />
  10463. <div>点击打开CocoPi</div>
  10464. </div>
  10465. <div
  10466. class="worksAnswer"
  10467. v-if="commentDetail.works && commentDetail.type == 13"
  10468. >
  10469. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10470. </div>
  10471. <div class="scoreBox">
  10472. <span class="t">请输入分数</span>
  10473. <el-input-number
  10474. :disabled="courseDetail.userid != userid"
  10475. v-model="wScore"
  10476. :controls="false"
  10477. :min="0"
  10478. :max="100"
  10479. ></el-input-number>
  10480. </div>
  10481. <div class="scoreDetailBox">
  10482. <span class="t">评分评论</span>
  10483. <el-input
  10484. type="textarea"
  10485. :rows="5"
  10486. :disabled="courseDetail.userid != userid"
  10487. resize="none"
  10488. v-model="scoreDetail"
  10489. placeholder="请输入对学生的评价"
  10490. >
  10491. </el-input>
  10492. </div>
  10493. </div>
  10494. <span slot="footer" class="dialog-footer">
  10495. <el-button
  10496. @click="
  10497. (dialogVisibleScore = false),
  10498. (commentIndexJson = {}),
  10499. videoDetail.sources && videoDetail.sources[0]
  10500. ? (videoDetail.sources[0].src = '')
  10501. : ''
  10502. "
  10503. >取 消</el-button
  10504. >
  10505. <el-button
  10506. type="primary"
  10507. v-if="courseDetail.userid == userid"
  10508. @click="scoreWork(commentDetail.wid)"
  10509. >确 定
  10510. </el-button>
  10511. </span>
  10512. </el-dialog>
  10513. <el-dialog
  10514. title="排序"
  10515. :visible.sync="dialogVisibleSentence"
  10516. :append-to-body="true"
  10517. width="1000px"
  10518. :before-close="handleClose"
  10519. class="dialog_diy dialog_diy3"
  10520. >
  10521. <div>
  10522. <div class="sentenBox">
  10523. <div
  10524. v-for="(st, stIndex) in sentenceList"
  10525. :key="stIndex"
  10526. style="padding-bottom: 20px"
  10527. >
  10528. <div
  10529. style="padding: 15px 0 10px 20px"
  10530. class="sentenceTitle"
  10531. :index="stIndex + 1"
  10532. >
  10533. 题目{{ stIndex + 1 }}:请选择正确顺序
  10534. </div>
  10535. <div class="cardList" v-if="st.chooseSenList">
  10536. <div class="cardBox">
  10537. <div
  10538. v-for="(r, rIndex) in st.chooseSenList"
  10539. :key="rIndex"
  10540. @click="returnCard(r, stIndex, rIndex)"
  10541. >
  10542. <el-tooltip
  10543. class="item"
  10544. effect="light"
  10545. :content="r"
  10546. placement="top"
  10547. v-if="r != '' && r != undefined"
  10548. >
  10549. <div
  10550. :class="{
  10551. isCard: r,
  10552. isChooseCard: r == '' || r == undefined,
  10553. }"
  10554. >
  10555. <div>{{ r }}</div>
  10556. </div>
  10557. </el-tooltip>
  10558. <div
  10559. :class="{
  10560. isCard: r,
  10561. isChooseCard: r == '' || r == undefined,
  10562. }"
  10563. v-else
  10564. >
  10565. <div>{{ r }}</div>
  10566. </div>
  10567. </div>
  10568. </div>
  10569. </div>
  10570. <div class="cardList" v-if="st.addChangeSen">
  10571. <div class="cardBox">
  10572. <div
  10573. v-for="(s, sIndex) in st.addChangeSen"
  10574. :key="sIndex"
  10575. @click="setRightAnswer(s, stIndex, sIndex)"
  10576. >
  10577. <el-tooltip
  10578. class="item"
  10579. effect="light"
  10580. :content="s"
  10581. placement="top"
  10582. v-if="s != '' && s != undefined"
  10583. >
  10584. <div
  10585. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10586. >
  10587. <div>{{ s }}</div>
  10588. </div>
  10589. </el-tooltip>
  10590. <div
  10591. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10592. v-else
  10593. >
  10594. <div>{{ s }}</div>
  10595. </div>
  10596. </div>
  10597. </div>
  10598. </div>
  10599. </div>
  10600. </div>
  10601. </div>
  10602. <span slot="footer" class="dialog-footer">
  10603. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10604. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10605. </span>
  10606. </el-dialog>
  10607. <el-dialog
  10608. title="排序"
  10609. :visible.sync="dialogVisibleSentenceTeacher"
  10610. :append-to-body="true"
  10611. width="1000px"
  10612. :before-close="handleClose"
  10613. class="dialog_diy dialog_diy3"
  10614. >
  10615. <div>
  10616. <div class="w_name">
  10617. 学生姓名:<span>{{ sStudent.student }}</span>
  10618. </div>
  10619. <div class="sentenBox">
  10620. <div
  10621. v-for="(st, stIndex) in sentenceList"
  10622. :key="stIndex"
  10623. style="padding-bottom: 20px"
  10624. >
  10625. <div
  10626. style="padding: 15px 0 10px 20px"
  10627. class="sentenceTitle"
  10628. :index="stIndex + 1"
  10629. >
  10630. 题目{{ stIndex + 1 }}:请选择正确顺序
  10631. </div>
  10632. <div class="cardList" v-if="st.chooseSenList">
  10633. <div class="cardBox">
  10634. <div
  10635. v-for="(r, rIndex) in st.chooseSenList"
  10636. :key="rIndex"
  10637. @click="returnCard(r, stIndex, rIndex)"
  10638. >
  10639. <el-tooltip
  10640. class="item"
  10641. effect="light"
  10642. :content="r"
  10643. placement="top"
  10644. v-if="r != '' && r != undefined"
  10645. >
  10646. <div
  10647. :class="{
  10648. isCard: r,
  10649. isChooseCard: r == '' || r == undefined,
  10650. }"
  10651. >
  10652. <div>{{ r }}</div>
  10653. </div>
  10654. </el-tooltip>
  10655. <div
  10656. :class="{
  10657. isCard: r,
  10658. isChooseCard: r == '' || r == undefined,
  10659. }"
  10660. v-else
  10661. >
  10662. <div>{{ r }}</div>
  10663. </div>
  10664. </div>
  10665. </div>
  10666. </div>
  10667. <div class="cardList" v-if="st.addChangeSen">
  10668. <div class="cardBox">
  10669. <div
  10670. v-for="(s, sIndex) in st.addChangeSen"
  10671. :key="sIndex"
  10672. @click="setRightAnswer(s, stIndex, sIndex)"
  10673. >
  10674. <el-tooltip
  10675. class="item"
  10676. effect="light"
  10677. :content="s"
  10678. placement="top"
  10679. v-if="s != '' && s != undefined"
  10680. >
  10681. <div
  10682. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10683. >
  10684. <div>{{ s }}</div>
  10685. </div>
  10686. </el-tooltip>
  10687. <div
  10688. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10689. v-else
  10690. >
  10691. <div>{{ s }}</div>
  10692. </div>
  10693. </div>
  10694. </div>
  10695. </div>
  10696. </div>
  10697. </div>
  10698. </div>
  10699. <span slot="footer" class="dialog-footer">
  10700. <el-button @click="dialogVisibleSentenceTeacher = false"
  10701. >取 消</el-button
  10702. >
  10703. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10704. </span>
  10705. </el-dialog>
  10706. <el-dialog
  10707. title="排序"
  10708. :visible.sync="dialogVisibleSentence1"
  10709. :append-to-body="true"
  10710. width="1000px"
  10711. :before-close="handleClose"
  10712. class="dialog_diy dialog_diy3"
  10713. >
  10714. <div>
  10715. <div class="sentenBox">
  10716. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10717. {{ sentenceList1.stuName }}的作业
  10718. </div>
  10719. <div
  10720. v-for="(st, stIndex) in sentenceList1"
  10721. :key="stIndex"
  10722. style="padding-bottom: 20px"
  10723. >
  10724. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10725. 第{{ stIndex + 1 }}题
  10726. </div>
  10727. <div class="isWrong">
  10728. <div class="cardList1" v-if="st.chooseSenList">
  10729. <div class="cardBox">
  10730. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10731. <el-tooltip
  10732. class="item"
  10733. effect="light"
  10734. :content="s"
  10735. placement="top"
  10736. >
  10737. <div class="isCard">
  10738. <div>{{ s }}</div>
  10739. </div>
  10740. </el-tooltip>
  10741. </div>
  10742. </div>
  10743. <div class="cardAnswerBox">
  10744. 组成句子:{{ st.chooseSenList.join(" ") }}
  10745. </div>
  10746. </div>
  10747. <div
  10748. class="answerRight isTj"
  10749. v-if="
  10750. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10751. (tType == 1 || tType == 4)
  10752. "
  10753. >
  10754. <div class="isTjImg">
  10755. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10756. </div>
  10757. <div>回答正确</div>
  10758. </div>
  10759. <div
  10760. class="answerRight isTj"
  10761. v-if="
  10762. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10763. (tType == 1 || tType == 4)
  10764. "
  10765. >
  10766. <div class="isTjImg">
  10767. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10768. </div>
  10769. <div>回答错误</div>
  10770. </div>
  10771. </div>
  10772. <div
  10773. v-if="
  10774. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10775. (tType == 1 || tType == 4)
  10776. "
  10777. >
  10778. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10779. <div
  10780. class="cardList"
  10781. v-if="st.rightAnswer"
  10782. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10783. >
  10784. <div class="cardBox">
  10785. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10786. <el-tooltip
  10787. class="item"
  10788. effect="light"
  10789. :content="r"
  10790. placement="top"
  10791. >
  10792. <div class="isCard1">
  10793. <div>{{ r }}</div>
  10794. </div>
  10795. </el-tooltip>
  10796. </div>
  10797. </div>
  10798. <div class="cardAnswerBox">
  10799. 组成句子:{{ st.rightAnswer.join(" ") }}
  10800. </div>
  10801. </div>
  10802. </div>
  10803. </div>
  10804. </div>
  10805. </div>
  10806. <span slot="footer" class="dialog-footer">
  10807. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10808. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10809. >确 定</el-button
  10810. >
  10811. </span>
  10812. </el-dialog>
  10813. <el-dialog
  10814. title="提交作业"
  10815. :visible.sync="dialogVisibleWorks"
  10816. :append-to-body="true"
  10817. width="500px"
  10818. :before-close="handleClose"
  10819. class="dialog_change"
  10820. >
  10821. <div class="marginT">
  10822. <div class="w_name">
  10823. 学生姓名:<span>{{ sStudent.student }}</span>
  10824. </div>
  10825. <div>上传文件</div>
  10826. <div
  10827. class="chapter_add"
  10828. @click="addImg($event)"
  10829. v-if="studyJuri[0].cover.length == 0"
  10830. >
  10831. <div class="up_photo">
  10832. <img src="../../assets/uploadImg2.png" alt />
  10833. </div>
  10834. <!-- <input
  10835. type="file"
  10836. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10837. style="display: none"
  10838. @change="beforeUpload1($event, 1)"
  10839. /> -->
  10840. <input
  10841. type="file"
  10842. accept="*"
  10843. style="display: none"
  10844. @change="beforeUpload1($event, 1)"
  10845. />
  10846. </div>
  10847. <!-- capture="camera" -->
  10848. <div
  10849. class="chapter_add"
  10850. style="
  10851. display: flex;
  10852. width: 100%;
  10853. flex-direction: row;
  10854. flex-wrap: wrap;
  10855. justify-content: flex-start;
  10856. padding: 15px 0;
  10857. "
  10858. v-if="studyJuri[0].cover.length > 0"
  10859. >
  10860. <div class="upCover">
  10861. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10862. <img :src="word" alt v-else-if="fileType == 1" />
  10863. <img :src="video" alt v-else-if="fileType == 2" />
  10864. <img :src="word2" alt v-else-if="fileType == 3" />
  10865. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10866. <div class="deleteWord" @click="clean(1)">
  10867. <img src="../../assets/icon/deleteWorks.png" alt />
  10868. </div>
  10869. </div>
  10870. </div>
  10871. </div>
  10872. <div
  10873. class="upload_send"
  10874. @click="addCourseWorksTeacher(taskCount)"
  10875. v-if="!proVisible"
  10876. >
  10877. 提交
  10878. </div>
  10879. </el-dialog>
  10880. <el-dialog
  10881. title="问答"
  10882. :visible.sync="answerDialogVisibleTeacher"
  10883. :append-to-body="true"
  10884. width="800px"
  10885. :before-close="handleClose"
  10886. class="dialog_diy"
  10887. >
  10888. <div>
  10889. <div class="w_name">
  10890. 学生姓名:<span>{{ sStudent.student }}</span>
  10891. </div>
  10892. <div
  10893. style="
  10894. display: flex;
  10895. flex-wrap: nowrap;
  10896. flex-direction: column;
  10897. position: relative;
  10898. "
  10899. >
  10900. <div class="queTop" style="padding: 20px 0 20px 0">
  10901. <div class="question">
  10902. <img src="../../assets/icon/question.png" alt />
  10903. </div>
  10904. <div class="queTitle">
  10905. <div style="width: 90px; min-width: 90px">提问:</div>
  10906. <div>{{ answerQ }}</div>
  10907. </div>
  10908. </div>
  10909. <div class="ediBottom">
  10910. <textarea
  10911. rows="6"
  10912. class="binfo_input"
  10913. cols
  10914. style="width: 95%; height: 120px"
  10915. v-model="questionAnswer"
  10916. ></textarea>
  10917. </div>
  10918. </div>
  10919. </div>
  10920. <div slot="footer">
  10921. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10922. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10923. </div>
  10924. </el-dialog>
  10925. <ImgDraw
  10926. :drawShow="drawShow"
  10927. @closeDraw="closeDraw"
  10928. @addImgDraw="addImgDraw"
  10929. :bg="bg"
  10930. ></ImgDraw>
  10931. <el-dialog
  10932. title="表格"
  10933. :visible.sync="dialogVisibleTable"
  10934. :append-to-body="true"
  10935. width="95%"
  10936. :before-close="handleClose"
  10937. class="dialog_diy"
  10938. >
  10939. <el-form>
  10940. <div>表格内容</div>
  10941. <Table
  10942. v-model="tableJson.text"
  10943. @change="change"
  10944. v-if="dialogVisibleTable"
  10945. ></Table>
  10946. </el-form>
  10947. <span slot="footer" class="dialog-footer">
  10948. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10949. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10950. </span>
  10951. </el-dialog>
  10952. <el-dialog
  10953. title="表格"
  10954. :visible.sync="dialogVisibleTableTeacher"
  10955. :append-to-body="true"
  10956. width="95%"
  10957. :before-close="handleClose"
  10958. class="dialog_diy"
  10959. >
  10960. <el-form>
  10961. <div class="w_name">
  10962. 学生姓名:<span>{{ sStudent.student }}</span>
  10963. </div>
  10964. <div>表格内容</div>
  10965. <Table
  10966. v-model="tableJson.text"
  10967. @change="change"
  10968. v-if="dialogVisibleTableTeacher"
  10969. ></Table>
  10970. </el-form>
  10971. <span slot="footer" class="dialog-footer">
  10972. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10973. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10974. </span>
  10975. </el-dialog>
  10976. <el-dialog
  10977. title="文档"
  10978. :visible.sync="dialogVisibleWord"
  10979. :append-to-body="true"
  10980. width="95%"
  10981. :before-close="handleClose"
  10982. class="dialog_diy"
  10983. >
  10984. <el-form>
  10985. <div>文档内容</div>
  10986. <editor-bar
  10987. v-model="wordJson.text"
  10988. v-if="dialogVisibleWord"
  10989. ></editor-bar>
  10990. </el-form>
  10991. <span slot="footer" class="dialog-footer">
  10992. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10993. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10994. </span>
  10995. </el-dialog>
  10996. <el-dialog
  10997. title="文档"
  10998. :visible.sync="dialogVisibleWordTeacher"
  10999. :append-to-body="true"
  11000. width="95%"
  11001. :before-close="handleClose"
  11002. class="dialog_diy"
  11003. >
  11004. <el-form>
  11005. <div class="w_name">
  11006. 学生姓名:<span>{{ sStudent.student }}</span>
  11007. </div>
  11008. <div>文档内容</div>
  11009. <editor-bar
  11010. v-model="wordJson.text"
  11011. v-if="dialogVisibleWordTeacher"
  11012. ></editor-bar>
  11013. </el-form>
  11014. <span slot="footer" class="dialog-footer">
  11015. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11016. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11017. </span>
  11018. </el-dialog>
  11019. <el-dialog
  11020. title="表格"
  11021. :visible.sync="dialogVisibleTable2"
  11022. :append-to-body="true"
  11023. width="95%"
  11024. :before-close="handleClose"
  11025. class="dialog_diy"
  11026. >
  11027. <el-form>
  11028. <div class="cont" v-html="tableJson.text"></div>
  11029. </el-form>
  11030. <span slot="footer" class="dialog-footer">
  11031. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11032. </span>
  11033. </el-dialog>
  11034. <el-dialog
  11035. title="文档"
  11036. :visible.sync="dialogVisibleTable3"
  11037. :append-to-body="true"
  11038. width="95%"
  11039. :before-close="handleClose"
  11040. class="dialog_diy"
  11041. >
  11042. <el-form>
  11043. <div class="cont" v-html="tableJson.text"></div>
  11044. </el-form>
  11045. <span slot="footer" class="dialog-footer">
  11046. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11047. </span>
  11048. </el-dialog>
  11049. <el-dialog
  11050. title="分组设置"
  11051. :visible.sync="dialogVisibleGroup"
  11052. :append-to-body="true"
  11053. width="95%"
  11054. :before-close="handleClose"
  11055. class="dialog_diy"
  11056. >
  11057. <div v-if="dialogVisibleGroup">
  11058. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11059. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11060. 提示:需要锁定位置,才能点击头像修改座位。
  11061. </div>
  11062. <div
  11063. type="primary"
  11064. v-if="groupJson.islock == 1"
  11065. class="returnBtn"
  11066. style="background-color: #225bc7"
  11067. @click="lockChair"
  11068. >
  11069. 锁定位置
  11070. </div>
  11071. <div
  11072. type="primary"
  11073. v-else
  11074. class="returnBtn"
  11075. style="background-color: #225bc7"
  11076. @click="lockChair"
  11077. >
  11078. 解锁位置
  11079. </div>
  11080. <div
  11081. type="primary"
  11082. @click="updateGroup"
  11083. class="returnBtn"
  11084. style="background-color: #225bc7"
  11085. >
  11086. 分组设置
  11087. </div>
  11088. </div>
  11089. <div>
  11090. <div
  11091. class="g_d_box"
  11092. v-if="groupJson.group && groupStudent[toolindex]"
  11093. >
  11094. <div
  11095. class="g_d_group"
  11096. v-for="(g, gindex) in groupJson.group"
  11097. :key="gindex"
  11098. >
  11099. <div class="g_d_group_chair">
  11100. <div v-if="groupJson.number > 1">
  11101. <span
  11102. :class="{
  11103. isChair:
  11104. groupStudent[toolindex][gindex] &&
  11105. groupStudent[toolindex][gindex][0],
  11106. updateChair:
  11107. courseDetail.userid == userid &&
  11108. groupStudent[toolindex][gindex] &&
  11109. groupStudent[toolindex][gindex][0] &&
  11110. groupJson.islock == 2,
  11111. }"
  11112. ><span
  11113. class="updateChairBtn"
  11114. @click="
  11115. updateGroupChair(
  11116. groupStudent[toolindex][gindex] &&
  11117. groupStudent[toolindex][gindex][0]
  11118. )
  11119. "
  11120. >修改</span
  11121. ></span
  11122. ><span>{{
  11123. groupStudent[toolindex][gindex] &&
  11124. groupStudent[toolindex][gindex][0]
  11125. ? groupStudent[toolindex][gindex] &&
  11126. groupStudent[toolindex][gindex][0].name
  11127. : "空位置"
  11128. }}</span>
  11129. </div>
  11130. <div v-if="groupJson.number > 4">
  11131. <span
  11132. :class="{
  11133. isChair:
  11134. groupStudent[toolindex][gindex] &&
  11135. groupStudent[toolindex][gindex][4],
  11136. updateChair:
  11137. courseDetail.userid == userid &&
  11138. groupStudent[toolindex][gindex] &&
  11139. groupStudent[toolindex][gindex][4] &&
  11140. groupJson.islock == 2,
  11141. }"
  11142. ><span
  11143. class="updateChairBtn"
  11144. @click="
  11145. updateGroupChair(
  11146. groupStudent[toolindex][gindex] &&
  11147. groupStudent[toolindex][gindex][4]
  11148. )
  11149. "
  11150. >修改</span
  11151. ></span
  11152. ><span>{{
  11153. groupStudent[toolindex][gindex] &&
  11154. groupStudent[toolindex][gindex][4]
  11155. ? groupStudent[toolindex][gindex] &&
  11156. groupStudent[toolindex][gindex][4].name
  11157. : "空位置"
  11158. }}</span>
  11159. </div>
  11160. <div v-if="groupJson.number > 8">
  11161. <span
  11162. :class="{
  11163. isChair:
  11164. groupStudent[toolindex][gindex] &&
  11165. groupStudent[toolindex][gindex][8],
  11166. updateChair:
  11167. courseDetail.userid == userid &&
  11168. groupStudent[toolindex][gindex] &&
  11169. groupStudent[toolindex][gindex][8] &&
  11170. groupJson.islock == 2,
  11171. }"
  11172. ><span
  11173. class="updateChairBtn"
  11174. @click="
  11175. updateGroupChair(
  11176. groupStudent[toolindex][gindex] &&
  11177. groupStudent[toolindex][gindex][8]
  11178. )
  11179. "
  11180. >修改</span
  11181. ></span
  11182. ><span>{{
  11183. groupStudent[toolindex][gindex] &&
  11184. groupStudent[toolindex][gindex][8]
  11185. ? groupStudent[toolindex][gindex] &&
  11186. groupStudent[toolindex][gindex][8].name
  11187. : "空位置"
  11188. }}</span>
  11189. </div>
  11190. </div>
  11191. <div class="g_d_group_tableBox">
  11192. <div class="g_d_group_chair2">
  11193. <div v-if="groupJson.number > 2">
  11194. <span
  11195. :class="{
  11196. isChair:
  11197. groupStudent[toolindex][gindex] &&
  11198. groupStudent[toolindex][gindex][2],
  11199. updateChair:
  11200. courseDetail.userid == userid &&
  11201. groupStudent[toolindex][gindex] &&
  11202. groupStudent[toolindex][gindex][2] &&
  11203. groupJson.islock == 2,
  11204. }"
  11205. ><span
  11206. class="updateChairBtn"
  11207. @click="
  11208. updateGroupChair(
  11209. groupStudent[toolindex][gindex] &&
  11210. groupStudent[toolindex][gindex][2]
  11211. )
  11212. "
  11213. >修改</span
  11214. ></span
  11215. ><span>{{
  11216. groupStudent[toolindex][gindex] &&
  11217. groupStudent[toolindex][gindex][2]
  11218. ? groupStudent[toolindex][gindex] &&
  11219. groupStudent[toolindex][gindex][2].name
  11220. : "空位置"
  11221. }}</span>
  11222. </div>
  11223. <div v-if="groupJson.number > 6">
  11224. <span
  11225. :class="{
  11226. isChair:
  11227. groupStudent[toolindex][gindex] &&
  11228. groupStudent[toolindex][gindex][6],
  11229. updateChair:
  11230. courseDetail.userid == userid &&
  11231. groupStudent[toolindex][gindex] &&
  11232. groupStudent[toolindex][gindex][6] &&
  11233. groupJson.islock == 2,
  11234. }"
  11235. ><span
  11236. class="updateChairBtn"
  11237. @click="
  11238. updateGroupChair(
  11239. groupStudent[toolindex][gindex] &&
  11240. groupStudent[toolindex][gindex][6]
  11241. )
  11242. "
  11243. >修改</span
  11244. ></span
  11245. ><span>{{
  11246. groupStudent[toolindex][gindex] &&
  11247. groupStudent[toolindex][gindex][6]
  11248. ? groupStudent[toolindex][gindex] &&
  11249. groupStudent[toolindex][gindex][6].name
  11250. : "空位置"
  11251. }}</span>
  11252. </div>
  11253. </div>
  11254. <div class="g_d_group_table">
  11255. <div>
  11256. {{ g.name }}
  11257. </div>
  11258. <div>
  11259. <div
  11260. v-if="
  11261. courseDetail.userid == userid && groupJson.islock == 2
  11262. "
  11263. @click="deleteGroupChair(gindex)"
  11264. >
  11265. 移除组员
  11266. </div>
  11267. <div
  11268. @click="selectGroup(gindex)"
  11269. v-else-if="
  11270. groupStudentUid[toolindex] &&
  11271. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11272. "
  11273. >
  11274. 加入分组
  11275. </div>
  11276. <div
  11277. @click="
  11278. exitGroup(
  11279. groupStudent[toolindex][gindex] &&
  11280. groupStudent[toolindex][gindex][
  11281. groupStudentUid[toolindex][gindex].indexOf(userid)
  11282. ].id
  11283. )
  11284. "
  11285. v-else-if="
  11286. groupStudentUid[toolindex] &&
  11287. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11288. "
  11289. >
  11290. 退出分组
  11291. </div>
  11292. </div>
  11293. </div>
  11294. <div class="g_d_group_chair2">
  11295. <div v-if="groupJson.number > 3">
  11296. <span
  11297. :class="{
  11298. isChair:
  11299. groupStudent[toolindex][gindex] &&
  11300. groupStudent[toolindex][gindex][3],
  11301. updateChair:
  11302. courseDetail.userid == userid &&
  11303. groupStudent[toolindex][gindex] &&
  11304. groupStudent[toolindex][gindex][3] &&
  11305. groupJson.islock == 2,
  11306. }"
  11307. ><span
  11308. class="updateChairBtn"
  11309. @click="
  11310. updateGroupChair(
  11311. groupStudent[toolindex][gindex] &&
  11312. groupStudent[toolindex][gindex][3]
  11313. )
  11314. "
  11315. >修改</span
  11316. ></span
  11317. ><span>{{
  11318. groupStudent[toolindex][gindex] &&
  11319. groupStudent[toolindex][gindex][3]
  11320. ? groupStudent[toolindex][gindex] &&
  11321. groupStudent[toolindex][gindex][3].name
  11322. : "空位置"
  11323. }}</span>
  11324. </div>
  11325. <div v-if="groupJson.number > 7">
  11326. <span
  11327. :class="{
  11328. isChair:
  11329. groupStudent[toolindex][gindex] &&
  11330. groupStudent[toolindex][gindex][7],
  11331. updateChair:
  11332. courseDetail.userid == userid &&
  11333. groupStudent[toolindex][gindex] &&
  11334. groupStudent[toolindex][gindex][7] &&
  11335. groupJson.islock == 2,
  11336. }"
  11337. ><span
  11338. class="updateChairBtn"
  11339. @click="
  11340. updateGroupChair(
  11341. groupStudent[toolindex][gindex] &&
  11342. groupStudent[toolindex][gindex][7]
  11343. )
  11344. "
  11345. >修改</span
  11346. ></span
  11347. ><span>{{
  11348. groupStudent[toolindex][gindex] &&
  11349. groupStudent[toolindex][gindex][7]
  11350. ? groupStudent[toolindex][gindex] &&
  11351. groupStudent[toolindex][gindex][7].name
  11352. : "空位置"
  11353. }}</span>
  11354. </div>
  11355. </div>
  11356. </div>
  11357. <div class="g_d_group_chair">
  11358. <div v-if="groupJson.number > 1">
  11359. <span
  11360. :class="{
  11361. isChair:
  11362. groupStudent[toolindex][gindex] &&
  11363. groupStudent[toolindex][gindex][1],
  11364. updateChair:
  11365. courseDetail.userid == userid &&
  11366. groupStudent[toolindex][gindex] &&
  11367. groupStudent[toolindex][gindex][1] &&
  11368. groupJson.islock == 2,
  11369. }"
  11370. ><span
  11371. class="updateChairBtn"
  11372. @click="
  11373. updateGroupChair(
  11374. groupStudent[toolindex][gindex] &&
  11375. groupStudent[toolindex][gindex][1]
  11376. )
  11377. "
  11378. >修改</span
  11379. ></span
  11380. ><span>{{
  11381. groupStudent[toolindex][gindex] &&
  11382. groupStudent[toolindex][gindex][1]
  11383. ? groupStudent[toolindex][gindex] &&
  11384. groupStudent[toolindex][gindex][1].name
  11385. : "空位置"
  11386. }}</span>
  11387. </div>
  11388. <div v-if="groupJson.number > 5">
  11389. <span
  11390. :class="{
  11391. isChair:
  11392. groupStudent[toolindex][gindex] &&
  11393. groupStudent[toolindex][gindex][5],
  11394. updateChair:
  11395. courseDetail.userid == userid &&
  11396. groupStudent[toolindex][gindex] &&
  11397. groupStudent[toolindex][gindex][5] &&
  11398. groupJson.islock == 2,
  11399. }"
  11400. ><span
  11401. class="updateChairBtn"
  11402. @click="
  11403. updateGroupChair(
  11404. groupStudent[toolindex][gindex] &&
  11405. groupStudent[toolindex][gindex][5]
  11406. )
  11407. "
  11408. >修改</span
  11409. ></span
  11410. ><span>{{
  11411. groupStudent[toolindex][gindex] &&
  11412. groupStudent[toolindex][gindex][5]
  11413. ? groupStudent[toolindex][gindex] &&
  11414. groupStudent[toolindex][gindex][5].name
  11415. : "空位置"
  11416. }}</span>
  11417. </div>
  11418. <div v-if="groupJson.number > 9">
  11419. <span
  11420. :class="{
  11421. isChair:
  11422. groupStudent[toolindex][gindex] &&
  11423. groupStudent[toolindex][gindex][9],
  11424. updateChair:
  11425. courseDetail.userid == userid &&
  11426. groupStudent[toolindex][gindex] &&
  11427. groupStudent[toolindex][gindex][9] &&
  11428. groupJson.islock == 2,
  11429. }"
  11430. ><span
  11431. class="updateChairBtn"
  11432. @click="
  11433. updateGroupChair(
  11434. groupStudent[toolindex][gindex] &&
  11435. groupStudent[toolindex][gindex][9]
  11436. )
  11437. "
  11438. >修改</span
  11439. ></span
  11440. ><span>{{
  11441. groupStudent[toolindex][gindex] &&
  11442. groupStudent[toolindex][gindex][9]
  11443. ? groupStudent[toolindex][gindex] &&
  11444. groupStudent[toolindex][gindex][9].name
  11445. : "空位置"
  11446. }}</span>
  11447. </div>
  11448. </div>
  11449. </div>
  11450. </div>
  11451. </div>
  11452. </div>
  11453. <span slot="footer" class="dialog-footer">
  11454. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11455. </span>
  11456. </el-dialog>
  11457. <el-dialog
  11458. title="分组设置"
  11459. :visible.sync="dialogVisibleGroup2"
  11460. :append-to-body="true"
  11461. width="650px"
  11462. :before-close="handleClose"
  11463. class="dialog_diy"
  11464. >
  11465. <div class="groupBox">
  11466. <div v-if="groupJson2.group" class="groupContent">
  11467. <div class="groupTitle">请设置小组数量及名称</div>
  11468. <div
  11469. v-for="(item, index) in groupJson2.group"
  11470. :key="index"
  11471. class="groupName"
  11472. >
  11473. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11474. <el-input
  11475. v-model="item.name"
  11476. placeholder="请输入名称..."
  11477. style="width: 250px"
  11478. ></el-input>
  11479. <!-- <div class="groupBtn">
  11480. <el-button type="primary" size="small" @click="addGroup(index)">
  11481. 添加</el-button>
  11482. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11483. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11484. </div> -->
  11485. </div>
  11486. </div>
  11487. <div class="groupContent">
  11488. <div class="groupTitle">请设置每组人数</div>
  11489. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11490. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11491. <el-input
  11492. v-model="groupJson.number"
  11493. style="width: 150px"
  11494. placeholder="请输入2-10的数字"
  11495. @change="numberPan"
  11496. ></el-input>
  11497. </div>
  11498. </div>
  11499. <span slot="footer" class="dialog-footer">
  11500. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11501. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11502. </span>
  11503. </el-dialog>
  11504. <el-dialog
  11505. title="作业提交"
  11506. :visible.sync="dialogVisibleGroupWork"
  11507. :append-to-body="true"
  11508. width="500px"
  11509. :before-close="handleClose"
  11510. class="dialog_change"
  11511. >
  11512. <div class="marginT">
  11513. <div>上传文件</div>
  11514. <div
  11515. class="chapter_add"
  11516. @click="addImg($event)"
  11517. v-if="studyJuri[0].cover.length == 0"
  11518. >
  11519. <div class="up_photo">
  11520. <img src="../../assets/icon/uploadImg.png" alt />
  11521. </div>
  11522. <!-- <input
  11523. type="file"
  11524. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11525. style="display: none"
  11526. @change="beforeUpload1($event, 1)"
  11527. /> -->
  11528. <input
  11529. type="file"
  11530. accept="*"
  11531. style="display: none"
  11532. @change="beforeUpload1($event, 1)"
  11533. />
  11534. </div>
  11535. <!-- capture="camera" -->
  11536. <div
  11537. class="chapter_add"
  11538. style="
  11539. display: flex;
  11540. width: 100%;
  11541. flex-direction: row;
  11542. flex-wrap: wrap;
  11543. justify-content: flex-start;
  11544. padding: 15px 0;
  11545. "
  11546. v-if="studyJuri[0].cover.length > 0"
  11547. >
  11548. <div class="upCover">
  11549. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11550. <img :src="word" alt v-else-if="fileType == 1" />
  11551. <img :src="video" alt v-else-if="fileType == 2" />
  11552. <img :src="word2" alt v-else-if="fileType == 3" />
  11553. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11554. <div class="deleteWord" @click="clean(1)">
  11555. <img src="../../assets/icon/deleteWorks.png" alt />
  11556. </div>
  11557. </div>
  11558. </div>
  11559. </div>
  11560. <div
  11561. class="upload_send"
  11562. @click="addCourseWorks2(taskCount)"
  11563. v-if="!proVisible"
  11564. >
  11565. 提交
  11566. </div>
  11567. </el-dialog>
  11568. <el-dialog
  11569. title="修改分组"
  11570. :visible.sync="dialogVisibleUpdateGroup"
  11571. :append-to-body="true"
  11572. width="350px"
  11573. :before-close="handleClose"
  11574. class="dialog_diy"
  11575. >
  11576. <div>
  11577. <h2>
  11578. {{ this.updateGroupUser.name }}
  11579. </h2>
  11580. <div style="color: rgb(171 171 171); margin-top: 10px">
  11581. 请选择要进入的分组
  11582. </div>
  11583. <el-radio-group v-model="checkChair">
  11584. <el-radio
  11585. style="display: block; margin-top: 20px"
  11586. v-for="(item, index) in updateGroupArray"
  11587. :label="item.label"
  11588. :key="index"
  11589. >{{ item.name }}</el-radio
  11590. >
  11591. </el-radio-group>
  11592. </div>
  11593. <span slot="footer" class="dialog-footer">
  11594. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11595. <el-button type="primary" @click="updateChair">确定</el-button>
  11596. </span>
  11597. </el-dialog>
  11598. <el-dialog
  11599. title="移除组员"
  11600. :visible.sync="dialogVisibleDeleteGroup"
  11601. :append-to-body="true"
  11602. width="350px"
  11603. :before-close="handleClose"
  11604. class="dialog_diy"
  11605. >
  11606. <div>
  11607. <h2>
  11608. {{ this.deleteGroupArray.name }}
  11609. </h2>
  11610. <div style="color: rgb(171 171 171); margin-top: 10px">
  11611. 请选择要删除的组员
  11612. </div>
  11613. <el-checkbox-group v-model="checkDeleteGroup">
  11614. <el-checkbox
  11615. style="display: block; margin-top: 20px"
  11616. v-for="(item, index) in deleteGroupUser"
  11617. :label="item.userid"
  11618. :key="index"
  11619. >{{ item.name }}</el-checkbox
  11620. >
  11621. </el-checkbox-group>
  11622. </div>
  11623. <span slot="footer" class="dialog-footer">
  11624. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11625. <el-button type="primary" @click="deleteChair">确定</el-button>
  11626. </span>
  11627. </el-dialog>
  11628. <el-dialog
  11629. title="批量上传"
  11630. :visible.sync="dialogVisiblePl"
  11631. :append-to-body="true"
  11632. width="700px"
  11633. :before-close="handleClose"
  11634. class="dialog_change"
  11635. >
  11636. <div class="marginT">
  11637. <div class="plworkBox">
  11638. <div
  11639. class="chapter_add"
  11640. style="
  11641. display: flex;
  11642. width: 150px;
  11643. flex-direction: row;
  11644. flex-wrap: wrap;
  11645. justify-content: flex-start;
  11646. margin: 0 10px 10px 0;
  11647. "
  11648. v-for="(item, index) in plworkFile"
  11649. :key="index"
  11650. >
  11651. <div class="upCover2">
  11652. <img
  11653. :src="item.url"
  11654. alt
  11655. v-if="item.fileType == 1"
  11656. @click="previewImg(item.url)"
  11657. />
  11658. <img :src="word" alt v-else-if="item.fileType == 4" />
  11659. <img :src="video" alt v-else />
  11660. <!-- <span class="picName">{{ item.name }}</span> -->
  11661. <!-- <el-input
  11662. v-model="item.username"
  11663. placeholder="请输入学生名字"
  11664. style="margin-top: 10px"
  11665. ></el-input> -->
  11666. <div
  11667. class="pl_select_box"
  11668. @click="
  11669. getUpdateMore(true, checkUpload(), item.username, index)
  11670. "
  11671. >
  11672. {{ getSName(item.username) }}
  11673. </div>
  11674. <!-- <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  11675. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  11676. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  11677. </el-option>
  11678. </el-select> -->
  11679. <div class="deleteWord" @click="clean2(index)">
  11680. <img src="../../assets/icon/deleteWorks.png" alt />
  11681. </div>
  11682. </div>
  11683. </div>
  11684. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11685. <div class="up_photo2">
  11686. <img src="../../assets/icon/plwork.png" alt />
  11687. <span>点击上传文件</span>
  11688. </div>
  11689. <input
  11690. type="file"
  11691. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11692. multiple="multiple"
  11693. style="display: none"
  11694. @change="beforeUpload3($event, 6)"
  11695. />
  11696. </div>
  11697. </div>
  11698. </div>
  11699. <!-- capture="camera" -->
  11700. <div
  11701. class="upload_send"
  11702. @click="addCourseWorksPl(taskCount)"
  11703. v-if="!proVisible2"
  11704. >
  11705. 提交
  11706. </div>
  11707. </el-dialog>
  11708. <el-dialog
  11709. title="修改名称"
  11710. :visible.sync="dialogVisibleSname"
  11711. width="500px"
  11712. :before-close="handleClose"
  11713. class="dialog_diy"
  11714. center
  11715. >
  11716. <div
  11717. style="
  11718. text-align: center;
  11719. display: flex;
  11720. align-items: center;
  11721. justify-content: center;
  11722. "
  11723. >
  11724. <span class="tian1">名称</span>
  11725. <div
  11726. class="pl_select_box"
  11727. style="margin-left: 10px; width: 200px"
  11728. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11729. >
  11730. {{ getSName(worksSName) }}
  11731. </div>
  11732. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11733. placeholder="请选择学生">
  11734. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11735. :value="item.userid">
  11736. </el-option>
  11737. </el-select> -->
  11738. <!-- <el-input
  11739. v-model="worksSName"
  11740. style="width: 250px; margin: 15px 0px"
  11741. ></el-input> -->
  11742. </div>
  11743. <span slot="footer" class="dialog-footer">
  11744. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11745. <el-button type="primary" @click="updateName">确 定</el-button>
  11746. </span>
  11747. </el-dialog>
  11748. <interVideo
  11749. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11750. :videoJson="videoJson"
  11751. :userid="userid"
  11752. :id="id"
  11753. :courseType="courseType"
  11754. :taskCount="taskCount"
  11755. :toolindex="toolindex"
  11756. ></interVideo>
  11757. <UpdateMore
  11758. :dialogVisibleMember.sync="dialogVisibleMember"
  11759. :cList="uploadStudentJuri"
  11760. :userid="userid"
  11761. :searchTN="worksSName2"
  11762. @setPlname="setPlname"
  11763. ></UpdateMore>
  11764. <wordCloud
  11765. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11766. :data="wordCloudData"
  11767. ></wordCloud>
  11768. <el-dialog
  11769. title="挑人"
  11770. :visible.sync="dialogVisiblePickPeople"
  11771. width="650px"
  11772. :before-close="handleClose"
  11773. class="dialog_diy"
  11774. center
  11775. >
  11776. <div class="pick_box">
  11777. <div
  11778. class="noWorksName"
  11779. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11780. v-for="(item, index) in uploadStudentJuri"
  11781. :key="index"
  11782. @click="pickStudent(item)"
  11783. >
  11784. {{ item.name }}
  11785. </div>
  11786. </div>
  11787. </el-dialog>
  11788. </div>
  11789. </template>
  11790. <script>
  11791. import "../../common/aws-sdk-2.235.1.min.js";
  11792. // import pdf from "../components/pdf3";
  11793. import pdf from "../components/vpdf";
  11794. import AskStatic from "../components/askStatic";
  11795. import AskStatic2 from "../components/askStatic2";
  11796. import AnswerData2 from "../components/answerData2";
  11797. import AnswerData from "../components/answerData";
  11798. import EditorBar from "../tools/wangEnduit.vue";
  11799. import Table from "../tools/table.vue";
  11800. import Time from "../tools/time.vue";
  11801. import Mind from "../tools/jsmind.vue";
  11802. import Sunburst from "../tools/sunburst";
  11803. import SeeBoard from "../tools/seeBoard";
  11804. import * as imageConversion from "image-conversion";
  11805. import Audio from "../components/audio.vue";
  11806. import ImgDraw from "../tools/imgDraw/imgDraw";
  11807. import { Empty } from "element-ui";
  11808. import RecordRTC from "recordrtc";
  11809. import interVideo from "../interVideo/index.vue";
  11810. import UpdateMore from "../updateMore/updateMore.vue";
  11811. import wordCloud from "../wordCloud/index.vue";
  11812. export default {
  11813. components: {
  11814. EditorBar,
  11815. Time,
  11816. pdf,
  11817. AskStatic,
  11818. AskStatic2,
  11819. Mind,
  11820. Sunburst,
  11821. SeeBoard,
  11822. AnswerData2,
  11823. AnswerData,
  11824. Audio,
  11825. ImgDraw,
  11826. Table,
  11827. interVideo,
  11828. UpdateMore,
  11829. wordCloud,
  11830. },
  11831. data() {
  11832. return {
  11833. bg: null,
  11834. drawShow: false,
  11835. dialogVisible: false,
  11836. dialogVisiblePl: false,
  11837. commentDialogVisible: false,
  11838. videoVisible: false,
  11839. isStar: false,
  11840. studentEvalDialogVisible: false,
  11841. studentEvalDialogVisibleTeacher: false,
  11842. dialogVisibleSelect: false,
  11843. dialogVisibleSelectTeacher: false,
  11844. dialogVisibleScore: false,
  11845. dialogVisibleSentence: false,
  11846. dialogVisibleSentenceTeacher: false,
  11847. dialogVisibleSentence1: false,
  11848. dialogVisibleWorks: false,
  11849. answerDialogVisibleTeacher: false,
  11850. dialogVisibleTable: false,
  11851. dialogVisibleTableTeacher: false,
  11852. dialogVisibleWord: false,
  11853. dialogVisibleWordTeacher: false,
  11854. dialogVisibleTable2: false,
  11855. dialogVisibleTable3: false,
  11856. dialogVisibleGroupWork: false,
  11857. dialogVisibleUpdateGroup: false,
  11858. dialogVisibleDeleteGroup: false,
  11859. dialogVisibleSname: false,
  11860. dialogVisibleVideo: false,
  11861. dialogVisiblePickPeople: false,
  11862. worksSName: "",
  11863. classJuri: [],
  11864. uploadStudentJuri: [],
  11865. uploadCid: "",
  11866. snameWid: "",
  11867. sStudent: {},
  11868. sTool: "",
  11869. bzText: "",
  11870. commentDetail: [],
  11871. selectAnswer: [],
  11872. videoDetail: {},
  11873. selectJson: {},
  11874. eScore: { eBzText: "", eStar: [] },
  11875. id: this.$route.query.courseId,
  11876. userid: this.$route.query.userid,
  11877. classId: this.$route.query.cid,
  11878. // courseTypeLine: this.$route.query.type,
  11879. oid: this.$route.query.oid,
  11880. org: this.$route.query.org,
  11881. tType: this.$route.query.tType,
  11882. courseType: this.$route.query.type,
  11883. screenType: this.$route.query.screenType,
  11884. tcid2: this.$route.query.tcid,
  11885. tcid: "",
  11886. pptImgUrl: "",
  11887. pptImgUrl1: "",
  11888. commentText: "",
  11889. full: false,
  11890. sIsOpen: false,
  11891. IsLookOpen: false,
  11892. IsFollow: false,
  11893. pzDialog: false,
  11894. contentDialog: false,
  11895. mlDialog: false,
  11896. type: 1,
  11897. isClose: 0,
  11898. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11899. sentenceList1: [],
  11900. tableJson: [],
  11901. wordJson: [],
  11902. vedio: [],
  11903. text: [],
  11904. textList: [],
  11905. line: [],
  11906. lineList: [],
  11907. chapTools: [],
  11908. chapToolList: [],
  11909. file: [],
  11910. fileC: [],
  11911. vedioTime: [],
  11912. upToolImg: "",
  11913. preTime: 0,
  11914. rateList: {
  11915. ca: 0,
  11916. },
  11917. rateParams: [],
  11918. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11919. studyJuri: [
  11920. {
  11921. content: "",
  11922. cover: [],
  11923. upVedio: [],
  11924. upFile: [],
  11925. },
  11926. ],
  11927. plworkFile: [],
  11928. mr: require("../../assets/vedioPic.png"),
  11929. word: require("../../assets/icon/isWord.png"),
  11930. word2: require("../../assets/icon/word2.png"),
  11931. video: require("../../assets/icon/isVideo.png"),
  11932. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11933. likes: require("../../assets/icon/comment/likes.png"),
  11934. scoreImg: require("../../assets/score.png"),
  11935. courseDetail: {},
  11936. isSelect: false,
  11937. chapInfo: [],
  11938. chapInfoList: [],
  11939. taskCount: 0,
  11940. imgList: [],
  11941. noImgList: [],
  11942. pzList: [],
  11943. PlTextList: [
  11944. "Excellent!",
  11945. "nice!",
  11946. "很有创意!",
  11947. "还不错哦~",
  11948. "继续努力哦~",
  11949. ],
  11950. isClickNav: "",
  11951. navId: "",
  11952. playerOptions: {
  11953. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11954. autoplay: false, //如果true,浏览器准备好时开始回放。
  11955. muted: false, // 默认情况下将会消除任何音频。
  11956. loop: false, // 导致视频一结束就重新开始。
  11957. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11958. language: "zh-CN",
  11959. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11960. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11961. sources: [
  11962. {
  11963. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11964. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11965. },
  11966. ],
  11967. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11968. // poster: dataRes.imgUrl, //你的封面地址
  11969. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11970. controlBar: {
  11971. timeDivider: true, //当前时间和持续时间的分隔符
  11972. durationDisplay: true, //显示持续时间
  11973. remainingTimeDisplay: false, //是否显示剩余时间功能
  11974. fullscreenToggle: true, //全屏按钮
  11975. },
  11976. },
  11977. playerOptions1: {
  11978. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11979. autoplay: false, //如果true,浏览器准备好时开始回放。
  11980. muted: false, // 默认情况下将会消除任何音频。
  11981. loop: false, // 导致视频一结束就重新开始。
  11982. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11983. language: "zh-CN",
  11984. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11985. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11986. sources: [
  11987. {
  11988. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11989. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11990. },
  11991. ],
  11992. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11993. // poster: dataRes.imgUrl, //你的封面地址
  11994. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11995. controlBar: {
  11996. timeDivider: true, //当前时间和持续时间的分隔符
  11997. durationDisplay: true, //显示持续时间
  11998. remainingTimeDisplay: false, //是否显示剩余时间功能
  11999. fullscreenToggle: true, //全屏按钮
  12000. },
  12001. },
  12002. playerO: {},
  12003. noneBtnImg: false,
  12004. proVisible: false,
  12005. proVisible2: false,
  12006. progress: 0,
  12007. isFinishSize: 0,
  12008. isAllSize: 0,
  12009. questionAnswer: "",
  12010. answerQ: "", //问答标题
  12011. rateJson: [],
  12012. wbCount: 0,
  12013. wordCount: 0,
  12014. mindCount: 0,
  12015. askCount: 0,
  12016. noteCount: 0,
  12017. mindNetWorkCount: 0,
  12018. libraryCount: 0,
  12019. workCount: 0,
  12020. timeCount: 0,
  12021. answerCount: 0,
  12022. trainCount: 0,
  12023. evalCount: 0,
  12024. dialogImageUrl: "",
  12025. pictureDialog: false,
  12026. toolTypeList: [],
  12027. dialogVisible1: false,
  12028. dialogVisible2: false,
  12029. dialogVisible3: false,
  12030. dialogVisible6: false,
  12031. dialogVisible4: false,
  12032. isNoHomeWork: false,
  12033. dialogVisible5: false,
  12034. dialogVisible5Teacher: false,
  12035. dialogVisibleChoice: false,
  12036. dialogVisibleChoiceTeacher: false,
  12037. answerDialogVisible: false,
  12038. juriVisible: false,
  12039. timeDialogVisible: false,
  12040. replyDialogVisible: false,
  12041. replyIndex: 0,
  12042. replyPid: "",
  12043. radio: [],
  12044. isAsk: false,
  12045. askJson: {
  12046. askCount: 1,
  12047. askTitle: "",
  12048. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12049. },
  12050. testJson: {},
  12051. checkJson: [],
  12052. askList: [],
  12053. answerList: [],
  12054. navList: [],
  12055. addPzDialog: false,
  12056. ispzType: 1,
  12057. pzConText: "",
  12058. worksStudent: [],
  12059. worksStudent2: [],
  12060. worksTeacher: [],
  12061. isCloseList: [],
  12062. workStudent: [],
  12063. groupStudent: [],
  12064. groupStudentUid: [],
  12065. noWorksS: [],
  12066. isWorksS: [],
  12067. noWorksStudent: [],
  12068. toolindex: 0,
  12069. groupIndex: 0,
  12070. workTypeB: false,
  12071. workTypeC: false,
  12072. isAnswer: false,
  12073. isHovered: false,
  12074. isHovered1: false,
  12075. timer: null,
  12076. opertimer: null,
  12077. showType: 0,
  12078. fileType: 0,
  12079. showPDF: false,
  12080. noteName: "",
  12081. evaJuri: [],
  12082. evalua: "",
  12083. eTitle: "",
  12084. eName: "",
  12085. eJson: {},
  12086. fid: "", //一级
  12087. sid: "", //二级
  12088. tid: "", //二级
  12089. typeMode: 1,
  12090. eJSONNum: 0,
  12091. Etype: 1,
  12092. data: {
  12093. meta: {
  12094. name: "example",
  12095. author: "dd@163.com",
  12096. version: "0.2",
  12097. },
  12098. format: "node_array",
  12099. data: [{ id: "root", isroot: true, topic: "" }],
  12100. },
  12101. fullDialogVisible: false,
  12102. fulltype: "",
  12103. fullUrl: "",
  12104. commentIndexJson: {},
  12105. Stbodywidth: 0,
  12106. pzType: 1,
  12107. wScore: 0,
  12108. scoreDetail: "",
  12109. videoStart: false,
  12110. recorder: null,
  12111. groupJson: {},
  12112. groupJson2: {},
  12113. dialogVisibleGroup: false,
  12114. dialogVisibleGroup2: false,
  12115. updateGroupArray: [],
  12116. updateGroupUser: {},
  12117. deleteGroupUser: [],
  12118. deleteGroupArray: {},
  12119. checkChair: "",
  12120. checkDeleteGroup: [],
  12121. inviteCode: "",
  12122. courseGroupStudent: [],
  12123. courseGroupStudentUid: [],
  12124. courseGroup: {},
  12125. isGroup: false,
  12126. toolIndex: null,
  12127. tool: {},
  12128. isWorkTool: [
  12129. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12130. ], //, 40
  12131. videoJson: {},
  12132. toolType: 0,
  12133. checktoolArray: [],
  12134. vChapterData: [],
  12135. isUpdateToolDetail: false,
  12136. updateToolDetailInner: "",
  12137. plIndex: "",
  12138. worksSName2: "",
  12139. worksSid: "",
  12140. dialogVisibleWordCloud: false,
  12141. wordCloudData: [],
  12142. isPickStudent: [],
  12143. pzStype: 1,
  12144. };
  12145. },
  12146. methods: {
  12147. jump() {
  12148. window.parent.postMessage({ tools: "43" }, "*");
  12149. },
  12150. getUpdateMore(f, checkboxList, searchTN, index) {
  12151. this.dialogVisibleMember = f;
  12152. this.checkboxList = checkboxList;
  12153. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12154. this.plIndex = index;
  12155. },
  12156. setPlname(a) {
  12157. if (this.plworkFile.length) {
  12158. this.plworkFile[this.plIndex].username = a;
  12159. } else {
  12160. this.worksSName = a;
  12161. }
  12162. this.dialogVisibleMember = false;
  12163. },
  12164. previewImg(url) {
  12165. this.$hevueImgPreview(url);
  12166. },
  12167. checkImg(list) {
  12168. if (!list.length) {
  12169. return;
  12170. }
  12171. this.$hevueImgPreview({
  12172. multiple: true, // 开启多图预览模式
  12173. imgList: list, // 需要预览的多图数组
  12174. });
  12175. },
  12176. change(val) {
  12177. console.log(val);
  12178. },
  12179. goTo(path) {
  12180. this.$router.push(path);
  12181. },
  12182. handlePictureCardPreview(url) {
  12183. this.dialogImageUrl = url;
  12184. this.pictureDialog = true;
  12185. },
  12186. clean(type) {
  12187. if (type == 1) {
  12188. this.studyJuri[0].cover.splice(0, 1);
  12189. } else if (type == 2) {
  12190. this.studyJuri[0].upVedio.splice(0, 1);
  12191. } else {
  12192. this.studyJuri[0].upFile.splice(0, 1);
  12193. }
  12194. },
  12195. clean2(index) {
  12196. this.plworkFile.splice(index, 1);
  12197. },
  12198. handleClose(done) {
  12199. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12200. this.videoDetail.sources[0].src = "";
  12201. }
  12202. this.commentIndexJson = {};
  12203. done();
  12204. },
  12205. fullTools() {
  12206. this.full = !this.full;
  12207. },
  12208. imgChange(file, fileList, type) {
  12209. if (type == 1) {
  12210. var _tmp = this.studyJuri[0].cover;
  12211. } else if (type == 2) {
  12212. var _tmp = this.studyJuri[0].upVedio;
  12213. } else {
  12214. var _tmp = this.studyJuri[0].upFile;
  12215. }
  12216. this.noneBtnImg = _tmp.length >= 1;
  12217. },
  12218. setContent(bool) {
  12219. this.contentDialog = bool;
  12220. if (bool && this.mlDialog) {
  12221. document.querySelector(".workd_media").style.height = "650px";
  12222. } else {
  12223. document.querySelector(".workd_media").style.height = "auto";
  12224. }
  12225. },
  12226. setContent2(bool) {
  12227. this.mlDialog = bool;
  12228. if (bool && this.contentDialog) {
  12229. document.querySelector(".workd_media").style.height = "650px";
  12230. } else {
  12231. document.querySelector(".workd_media").style.height = "auto";
  12232. }
  12233. },
  12234. addImg(e) {
  12235. var el = e.currentTarget;
  12236. // this.$message.success('触发上传')
  12237. el.getElementsByTagName("input")[0].click();
  12238. e.target.value = "";
  12239. },
  12240. addSelectAnswer() {
  12241. let params = [
  12242. {
  12243. uid: this.userid,
  12244. cid: this.id,
  12245. stage: this.courseType,
  12246. task: this.taskCount,
  12247. tool: this.toolindex,
  12248. content: this.selectAnswer.answer,
  12249. type: 7,
  12250. },
  12251. ];
  12252. this.ajax
  12253. .post(this.$store.state.api + "addCourseWorks", params)
  12254. .then((res) => {
  12255. this.$message({
  12256. message: "提交成功",
  12257. type: "success",
  12258. });
  12259. this.dialogVisibleSelect = false;
  12260. // this.selectAnswer = {};
  12261. this.selectSWorks();
  12262. this.selectStudent();
  12263. })
  12264. .catch((err) => {
  12265. this.$message.error("提交失败");
  12266. console.error(err);
  12267. });
  12268. },
  12269. addSelectAnswerTeacher() {
  12270. let params = [
  12271. {
  12272. uid: this.sStudent.userid,
  12273. cid: this.id,
  12274. stage: this.courseType,
  12275. task: this.taskCount,
  12276. tool: this.toolindex,
  12277. content: this.selectAnswer.answer,
  12278. type: 7,
  12279. },
  12280. ];
  12281. this.ajax
  12282. .post(this.$store.state.api + "addCourseWorks", params)
  12283. .then((res) => {
  12284. this.$message({
  12285. message: "提交成功",
  12286. type: "success",
  12287. });
  12288. this.dialogVisibleSelectTeacher = false;
  12289. // this.selectAnswer = {};
  12290. this.selectSWorks();
  12291. this.selectStudent();
  12292. })
  12293. .catch((err) => {
  12294. this.$message.error("提交失败");
  12295. console.error(err);
  12296. });
  12297. },
  12298. addSenWorks() {
  12299. for (var i = 0; i < this.sentenceList.length; i++) {
  12300. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12301. if (
  12302. this.sentenceList[i].chooseSenList[j] == undefined ||
  12303. this.sentenceList[i].chooseSenList[j] == ""
  12304. ) {
  12305. this.$message.error("请将答案填写完整!");
  12306. return;
  12307. }
  12308. }
  12309. }
  12310. let params = [
  12311. {
  12312. uid: this.userid,
  12313. cid: this.id,
  12314. stage: this.courseType,
  12315. task: this.taskCount,
  12316. tool: this.toolindex,
  12317. content: JSON.stringify(this.sentenceList),
  12318. type: 9,
  12319. },
  12320. ];
  12321. this.ajax
  12322. .post(this.$store.state.api + "addCourseWorks", params)
  12323. .then((res) => {
  12324. this.$message({
  12325. message: "提交成功",
  12326. type: "success",
  12327. });
  12328. this.dialogVisibleSentence = false;
  12329. // this.selectAnswer = {};
  12330. this.selectSWorks();
  12331. this.selectStudent();
  12332. })
  12333. .catch((err) => {
  12334. this.$message.error("提交失败");
  12335. console.error(err);
  12336. });
  12337. },
  12338. addSenWorksTeacher() {
  12339. for (var i = 0; i < this.sentenceList.length; i++) {
  12340. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12341. if (
  12342. this.sentenceList[i].chooseSenList[j] == undefined ||
  12343. this.sentenceList[i].chooseSenList[j] == ""
  12344. ) {
  12345. this.$message.error("请将答案填写完整!");
  12346. return;
  12347. }
  12348. }
  12349. }
  12350. let params = [
  12351. {
  12352. uid: this.sStudent.userid,
  12353. cid: this.id,
  12354. stage: this.courseType,
  12355. task: this.taskCount,
  12356. tool: this.toolindex,
  12357. content: JSON.stringify(this.sentenceList),
  12358. type: 9,
  12359. },
  12360. ];
  12361. this.ajax
  12362. .post(this.$store.state.api + "addCourseWorks", params)
  12363. .then((res) => {
  12364. this.$message({
  12365. message: "提交成功",
  12366. type: "success",
  12367. });
  12368. this.dialogVisibleSentenceTeacher = false;
  12369. // this.selectAnswer = {};
  12370. this.selectSWorks();
  12371. this.selectStudent();
  12372. })
  12373. .catch((err) => {
  12374. this.$message.error("提交失败");
  12375. console.error(err);
  12376. });
  12377. },
  12378. addTableWorks() {
  12379. let params = [
  12380. {
  12381. uid: this.userid,
  12382. cid: this.id,
  12383. stage: this.courseType,
  12384. task: this.taskCount,
  12385. tool: this.toolindex,
  12386. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12387. type: 10,
  12388. },
  12389. ];
  12390. this.ajax
  12391. .post(this.$store.state.api + "addCourseWorks", params)
  12392. .then((res) => {
  12393. this.$message({
  12394. message: "提交成功",
  12395. type: "success",
  12396. });
  12397. this.dialogVisibleTable = false;
  12398. // this.selectAnswer = {};
  12399. this.selectSWorks();
  12400. this.selectStudent();
  12401. })
  12402. .catch((err) => {
  12403. this.$message.error("提交失败");
  12404. console.error(err);
  12405. });
  12406. },
  12407. addTableWorksTeacher() {
  12408. let params = [
  12409. {
  12410. uid: this.sStudent.userid,
  12411. cid: this.id,
  12412. stage: this.courseType,
  12413. task: this.taskCount,
  12414. tool: this.toolindex,
  12415. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12416. type: 10,
  12417. },
  12418. ];
  12419. this.ajax
  12420. .post(this.$store.state.api + "addCourseWorks", params)
  12421. .then((res) => {
  12422. this.$message({
  12423. message: "提交成功",
  12424. type: "success",
  12425. });
  12426. this.dialogVisibleTableTeacher = false;
  12427. // this.selectAnswer = {};
  12428. this.selectSWorks();
  12429. this.selectStudent();
  12430. })
  12431. .catch((err) => {
  12432. this.$message.error("提交失败");
  12433. console.error(err);
  12434. });
  12435. },
  12436. addWordWorks() {
  12437. let params = [
  12438. {
  12439. uid: this.userid,
  12440. cid: this.id,
  12441. stage: this.courseType,
  12442. task: this.taskCount,
  12443. tool: this.toolindex,
  12444. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12445. type: 13,
  12446. atool: 52,
  12447. },
  12448. ];
  12449. console.log(params);
  12450. this.ajax
  12451. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12452. .then((res) => {
  12453. this.$message({
  12454. message: "提交成功",
  12455. type: "success",
  12456. });
  12457. this.dialogVisibleWord = false;
  12458. // this.selectAnswer = {};
  12459. this.selectSWorks();
  12460. this.selectStudent();
  12461. })
  12462. .catch((err) => {
  12463. this.$message.error("提交失败");
  12464. console.error(err);
  12465. });
  12466. },
  12467. addWordWorksTeacher() {
  12468. let params = [
  12469. {
  12470. uid: this.sStudent.userid,
  12471. cid: this.id,
  12472. stage: this.courseType,
  12473. task: this.taskCount,
  12474. tool: this.toolindex,
  12475. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12476. type: 13,
  12477. atool: 52,
  12478. },
  12479. ];
  12480. console.log(params);
  12481. this.ajax
  12482. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12483. .then((res) => {
  12484. this.$message({
  12485. message: "提交成功",
  12486. type: "success",
  12487. });
  12488. this.dialogVisibleWordTeacher = false;
  12489. // this.selectAnswer = {};
  12490. this.selectSWorks();
  12491. this.selectStudent();
  12492. })
  12493. .catch((err) => {
  12494. this.$message.error("提交失败");
  12495. console.error(err);
  12496. });
  12497. },
  12498. addCourseWorks(i) {
  12499. var typesql;
  12500. if (this.fileType === 0) {
  12501. typesql = 1;
  12502. } else if (this.fileType === 1) {
  12503. typesql = 4;
  12504. } else if (this.fileType === 2) {
  12505. typesql = 5;
  12506. } else if (this.fileType === 3) {
  12507. typesql = 12;
  12508. }
  12509. if (!this.studyJuri[0].cover[0].url) {
  12510. this.$message.error("请上传文件");
  12511. return;
  12512. }
  12513. let params = [
  12514. {
  12515. uid: this.userid,
  12516. cid: this.id,
  12517. stage: this.courseType,
  12518. task: i,
  12519. tool: this.toolindex,
  12520. content: this.studyJuri[0].cover[0].url,
  12521. type: typesql,
  12522. },
  12523. ];
  12524. this.ajax
  12525. .post(this.$store.state.api + "addCourseWorksR", params)
  12526. .then((res) => {
  12527. this.$message({
  12528. message: "提交成功",
  12529. type: "success",
  12530. });
  12531. this.studyJuri[0].cover = [];
  12532. this.dialogVisible = false;
  12533. this.getCourseDetail();
  12534. })
  12535. .catch((err) => {
  12536. this.$message.error("提交失败");
  12537. console.error(err);
  12538. });
  12539. },
  12540. addCourseWorksPl(i) {
  12541. let _files = this.plworkFile;
  12542. var c = 1;
  12543. for (var k = 0; k < _files.length; k++) {
  12544. if (!_files[k].username) {
  12545. c = 2;
  12546. }
  12547. }
  12548. if (c == 2) {
  12549. this.$message.error("请填写学生姓名");
  12550. return;
  12551. }
  12552. let params = [
  12553. {
  12554. ateacher: this.userid,
  12555. cid: this.id,
  12556. stage: this.courseType,
  12557. task: i,
  12558. tool: this.toolindex,
  12559. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12560. },
  12561. ];
  12562. this.ajax
  12563. .post(this.$store.state.api + "addCourseWorksPl", params)
  12564. .then((res) => {
  12565. this.$message({
  12566. message: "提交成功",
  12567. type: "success",
  12568. });
  12569. this.plworkFile = [];
  12570. this.dialogVisiblePl = false;
  12571. this.getCourseDetail();
  12572. })
  12573. .catch((err) => {
  12574. this.$message.error("提交失败");
  12575. console.error(err);
  12576. });
  12577. },
  12578. addCourseWorks2(i) {
  12579. var typesql;
  12580. if (this.fileType === 0) {
  12581. typesql = 0;
  12582. } else if (this.fileType === 1) {
  12583. typesql = 1;
  12584. } else if (this.fileType === 2) {
  12585. typesql = 3;
  12586. } else if (this.fileType === 3) {
  12587. typesql = 12;
  12588. }
  12589. if (!this.studyJuri[0].cover[0].url) {
  12590. this.$message.error("请上传文件");
  12591. return;
  12592. }
  12593. let params = [
  12594. {
  12595. uid: this.userid,
  12596. cid: this.id,
  12597. stage: this.courseType,
  12598. task: i,
  12599. tool: this.toolindex,
  12600. content: JSON.stringify({
  12601. type: typesql,
  12602. groupIndex: this.groupIndex,
  12603. url: this.studyJuri[0].cover[0].url,
  12604. }).replaceAll(/%/g, "%25"),
  12605. type: 11,
  12606. atool: 49,
  12607. text: "",
  12608. },
  12609. ];
  12610. this.ajax
  12611. .post(this.$store.state.api + "addCourseWorks5", params)
  12612. .then((res) => {
  12613. this.$message({
  12614. message: "提交成功",
  12615. type: "success",
  12616. });
  12617. this.studyJuri[0].cover = [];
  12618. this.dialogVisibleGroupWork = false;
  12619. this.getCourseDetail();
  12620. })
  12621. .catch((err) => {
  12622. this.$message.error("提交失败");
  12623. console.error(err);
  12624. });
  12625. },
  12626. addCourseWorksGong(i, data, tool) {
  12627. let params = [
  12628. {
  12629. uid: this.userid,
  12630. cid: this.id,
  12631. stage: this.courseType,
  12632. task: this.taskCount,
  12633. tool: i,
  12634. content: data,
  12635. type: 12,
  12636. atool: tool,
  12637. text: "",
  12638. },
  12639. ];
  12640. this.ajax
  12641. .post(this.$store.state.api + "addCourseWorks5", params)
  12642. .then((res) => {
  12643. this.$message({
  12644. message: "提交成功",
  12645. type: "success",
  12646. });
  12647. this.studyJuri[0].cover = [];
  12648. this.selectSWorks();
  12649. this.selectStudent();
  12650. })
  12651. .catch((err) => {
  12652. this.$message.error("提交失败");
  12653. console.error(err);
  12654. });
  12655. },
  12656. addCourseWorksGongTeacher(i, data, tool) {
  12657. let params = [
  12658. {
  12659. uid: this.sStudent.userid,
  12660. cid: this.id,
  12661. stage: this.courseType,
  12662. task: this.taskCount,
  12663. tool: i,
  12664. content: data,
  12665. type: 12,
  12666. atool: tool,
  12667. text: "",
  12668. },
  12669. ];
  12670. this.ajax
  12671. .post(this.$store.state.api + "addCourseWorks5", params)
  12672. .then((res) => {
  12673. this.$message({
  12674. message: "提交成功",
  12675. type: "success",
  12676. });
  12677. this.studyJuri[0].cover = [];
  12678. this.dialogVisibleWorks = false;
  12679. this.selectSWorks();
  12680. this.selectStudent();
  12681. })
  12682. .catch((err) => {
  12683. this.$message.error("提交失败");
  12684. console.error(err);
  12685. });
  12686. },
  12687. addCourseWorksGongPl(i, data, tool, type) {
  12688. let params = [
  12689. {
  12690. uid: this.sStudent.userid,
  12691. cid: this.id,
  12692. stage: this.courseType,
  12693. task: this.taskCount,
  12694. tool: i,
  12695. content: data,
  12696. type: type,
  12697. atool: tool,
  12698. text: "",
  12699. },
  12700. ];
  12701. this.ajax
  12702. .post(this.$store.state.api + "addCourseWorks5", params)
  12703. .then((res) => {
  12704. this.$message({
  12705. message: "提交成功",
  12706. type: "success",
  12707. });
  12708. this.studyJuri[0].cover = [];
  12709. this.dialogVisibleWorks = false;
  12710. this.selectSWorks();
  12711. this.selectStudent();
  12712. })
  12713. .catch((err) => {
  12714. this.$message.error("提交失败");
  12715. console.error(err);
  12716. });
  12717. },
  12718. addCourseWorksTeacher(i) {
  12719. var typesql;
  12720. if (this.sTool == 32) {
  12721. this.addCourseWorksGongTeacher(
  12722. this.toolindex,
  12723. this.studyJuri[0].cover[0].url,
  12724. this.sTool
  12725. );
  12726. return;
  12727. }
  12728. if (this.fileType === 0) {
  12729. typesql = 1;
  12730. } else if (this.fileType === 1) {
  12731. typesql = 4;
  12732. } else if (this.fileType === 2) {
  12733. typesql = 5;
  12734. } else if (this.fileType === 3) {
  12735. typesql = 12;
  12736. }
  12737. if (this.sTool == 50) {
  12738. this.addCourseWorksGongPl(
  12739. this.toolindex,
  12740. this.studyJuri[0].cover[0].url,
  12741. this.sTool,
  12742. typesql
  12743. );
  12744. return;
  12745. }
  12746. if (!this.studyJuri[0].cover[0].url) {
  12747. this.$message.error("请上传文件");
  12748. return;
  12749. }
  12750. let params = [
  12751. {
  12752. uid: this.sStudent.userid,
  12753. cid: this.id,
  12754. stage: this.courseType,
  12755. task: i,
  12756. tool: this.toolindex,
  12757. content: this.studyJuri[0].cover[0].url,
  12758. type: typesql,
  12759. ateacher: this.userid,
  12760. },
  12761. ];
  12762. this.ajax
  12763. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12764. .then((res) => {
  12765. this.$message({
  12766. message: "提交成功",
  12767. type: "success",
  12768. });
  12769. this.studyJuri[0].cover = [];
  12770. this.dialogVisibleWorks = false;
  12771. this.getCourseDetail();
  12772. })
  12773. .catch((err) => {
  12774. this.$message.error("提交失败");
  12775. console.error(err);
  12776. });
  12777. },
  12778. selectUploadStudent(type) {
  12779. const loading = this.$loading.service({
  12780. background: "rgba(255, 255, 255, 0.7)",
  12781. target: document.body,
  12782. });
  12783. let params = {
  12784. cid: this.uploadCid,
  12785. oid: this.oid,
  12786. cn: "",
  12787. };
  12788. this.ajax
  12789. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12790. .then((res) => {
  12791. loading.close();
  12792. var studentK = [];
  12793. if (this.isWorksS[this.toolindex].length > 0) {
  12794. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12795. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12796. }
  12797. studentK = studentK.join(",");
  12798. }
  12799. this.uploadStudentJuri = res.data[0].filter((el) => {
  12800. return studentK.indexOf(el.userid) == -1;
  12801. });
  12802. if (this.worksSName && this.worksSid) {
  12803. this.uploadStudentJuri.push({
  12804. userid: this.worksSid,
  12805. name: this.worksSName,
  12806. });
  12807. }
  12808. if (type == 1) {
  12809. this.plworkFile = [];
  12810. this.dialogVisibleSname = true;
  12811. } else if (type == 2) {
  12812. this.dialogVisiblePl = true;
  12813. }
  12814. })
  12815. .catch((err) => {
  12816. loading.close();
  12817. console.error(err);
  12818. });
  12819. },
  12820. selectPickStudent() {
  12821. const loading = this.$loading.service({
  12822. background: "rgba(255, 255, 255, 0.7)",
  12823. target: document.body,
  12824. });
  12825. let params = {
  12826. cid: this.uploadCid,
  12827. oid: this.oid,
  12828. cn: "",
  12829. };
  12830. this.ajax
  12831. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12832. .then((res) => {
  12833. loading.close();
  12834. this.uploadStudentJuri = res.data[0];
  12835. this.dialogVisiblePickPeople = true;
  12836. })
  12837. .catch((err) => {
  12838. loading.close();
  12839. console.error(err);
  12840. });
  12841. },
  12842. arrayToArray(arrayo, arrayt) {
  12843. let array1 = arrayo;
  12844. let array2 = arrayt;
  12845. let commonElements = [];
  12846. for (let i = 0; i < array1.length; i++) {
  12847. for (let j = 0; j < array2.length; j++) {
  12848. if (array1[i] === array2[j]) {
  12849. commonElements.push(array1[i]);
  12850. }
  12851. }
  12852. }
  12853. return commonElements;
  12854. },
  12855. selectWorksStudent() {
  12856. let params = {
  12857. oid: this.oid,
  12858. cid: this.courseDetail.juri,
  12859. };
  12860. this.ajax
  12861. .get(this.$store.state.api + "selectWorksStudent", params)
  12862. .then((res) => {
  12863. var a = res.data[0];
  12864. for (var i = 0; i < this.isWorksS.length; i++) {
  12865. this.noWorksS[i] = [];
  12866. var studentK = [];
  12867. if (this.isWorksS[i].length > 0) {
  12868. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12869. studentK.push(this.isWorksS[i][z].uid);
  12870. }
  12871. studentK = studentK.join(",");
  12872. for (var j = 0; j < a.length; j++) {
  12873. // if (studentK.indexOf(a[j].userid) == -1) {
  12874. if (this.tcid) {
  12875. // a[j].classid.indexOf(this.tcid) != -1
  12876. if (
  12877. this.arrayToArray(
  12878. a[j].classid.split(","),
  12879. this.tcid.split(",")
  12880. ).length
  12881. ) {
  12882. this.noWorksS[i].push({
  12883. student: a[j].name,
  12884. userid: a[j].userid,
  12885. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12886. });
  12887. }
  12888. } else {
  12889. this.noWorksS[i].push({
  12890. student: a[j].name,
  12891. userid: a[j].userid,
  12892. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12893. });
  12894. }
  12895. // }
  12896. }
  12897. } else {
  12898. for (var k = 0; k < a.length; k++) {
  12899. if (this.tcid) {
  12900. if (
  12901. this.arrayToArray(
  12902. a[k].classid.split(","),
  12903. this.tcid.split(",")
  12904. ).length
  12905. ) {
  12906. this.noWorksS[i].push({
  12907. student: a[k].name,
  12908. userid: a[k].userid,
  12909. type: "1",
  12910. });
  12911. }
  12912. } else {
  12913. this.noWorksS[i].push({
  12914. student: a[k].name,
  12915. userid: a[k].userid,
  12916. type: "1",
  12917. });
  12918. }
  12919. }
  12920. }
  12921. // this.noWorksS[i] = this.noWorksS[i].sort(function (a, b) {
  12922. // let jscoreA = parseInt(a.type);
  12923. // let jscoreB = parseInt(b.type);
  12924. // return jscoreB - jscoreA;
  12925. // });
  12926. }
  12927. this.$forceUpdate();
  12928. if (
  12929. Object.keys(this.commentDetail).length &&
  12930. Object.keys(this.commentIndexJson).length &&
  12931. !this.dialogVisibleScore
  12932. ) {
  12933. let a = 1;
  12934. let c = this.commentIndexJson;
  12935. console.log(c);
  12936. if (
  12937. this.commentIndexJson.gindex ||
  12938. this.commentIndexJson.gindex === 0
  12939. ) {
  12940. for (
  12941. var i = 0;
  12942. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12943. i++
  12944. ) {
  12945. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12946. groupA: for (var k = 0; k < _el.length; k++) {
  12947. let el = _el[k];
  12948. if (el.wid == this.commentDetail.wid) {
  12949. a = 2;
  12950. this.commentOther(
  12951. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12952. this.commentIndexJson.toolIndex,
  12953. k,
  12954. this.commentIndexJson.gindex
  12955. );
  12956. break groupA;
  12957. }
  12958. }
  12959. }
  12960. if (a === 1) {
  12961. this.commentDetail = [];
  12962. this.commentIndexJson = {};
  12963. this.commentDialogVisible = false;
  12964. this.$message("此作业已被删除");
  12965. }
  12966. } else {
  12967. if (this.isGroup && this.commentIndexJson.gid) {
  12968. groupA: for (
  12969. var i = 0;
  12970. i < this.courseGroup.group.length;
  12971. i++
  12972. ) {
  12973. let _group = this.courseGroup.group[i];
  12974. if (_group.id == this.commentIndexJson.gid) {
  12975. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12976. for (var k = 0; k < _el2.length; k++) {
  12977. let el2 = _el2[k];
  12978. if (el2.wid == this.commentDetail.wid) {
  12979. a = 2;
  12980. this.commentOther(
  12981. _el2[k],
  12982. this.commentIndexJson.toolIndex,
  12983. k,
  12984. null,
  12985. this.commentIndexJson.gid
  12986. );
  12987. break groupA;
  12988. }
  12989. }
  12990. }
  12991. }
  12992. }
  12993. if (a == 1) {
  12994. for (
  12995. var i = 0;
  12996. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12997. i++
  12998. ) {
  12999. let el =
  13000. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13001. if (el.wid == this.commentDetail.wid) {
  13002. a = 2;
  13003. this.commentOther(
  13004. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13005. this.commentIndexJson.toolIndex,
  13006. i
  13007. );
  13008. break;
  13009. }
  13010. }
  13011. }
  13012. if (a === 1) {
  13013. this.commentDetail = [];
  13014. this.commentIndexJson = {};
  13015. this.commentDialogVisible = false;
  13016. this.$message("此作业已被删除");
  13017. }
  13018. }
  13019. }
  13020. })
  13021. .catch((err) => {
  13022. console.error(err);
  13023. });
  13024. },
  13025. selectStudent() {},
  13026. openVideo(w) {
  13027. this.videoDetail = {};
  13028. this.playerOptions1.sources[0].src = w.works;
  13029. this.videoDetail = this.playerOptions1;
  13030. this.videoVisible = true;
  13031. },
  13032. isLikes(wid, uid, t, c, isLikes) {
  13033. if (isLikes == false) {
  13034. let params = [
  13035. {
  13036. wid: wid,
  13037. lid: uid,
  13038. t: t,
  13039. c: c,
  13040. },
  13041. ];
  13042. this.ajax
  13043. .post(this.$store.state.api + "insertComment", params)
  13044. .then((res) => {
  13045. this.$message({
  13046. message: "点赞成功",
  13047. type: "success",
  13048. });
  13049. this.selectSWorks();
  13050. this.selectStudent();
  13051. })
  13052. .catch((err) => {
  13053. this.$message.error("点赞失败");
  13054. console.error(err);
  13055. });
  13056. } else {
  13057. let params = {
  13058. wid: wid,
  13059. lid: uid,
  13060. type: t,
  13061. };
  13062. this.ajax
  13063. .get(this.$store.state.api + "deleteComment", params)
  13064. .then((res) => {
  13065. this.$message({
  13066. message: "取消点赞成功",
  13067. type: "success",
  13068. });
  13069. this.selectSWorks();
  13070. this.selectStudent();
  13071. })
  13072. .catch((err) => {
  13073. console.error(err);
  13074. });
  13075. }
  13076. },
  13077. deleteComment(wid) {
  13078. this.$confirm("确定删除此评论吗?", "提示", {
  13079. confirmButtonText: "确定",
  13080. cancelButtonText: "取消",
  13081. type: "warning",
  13082. })
  13083. .then(() => {
  13084. let params = {
  13085. id: wid,
  13086. };
  13087. this.ajax
  13088. .get(this.$store.state.api + "deleteComment2", params)
  13089. .then((res) => {
  13090. this.$message({
  13091. message: "删除评论成功",
  13092. type: "success",
  13093. });
  13094. this.selectSWorks();
  13095. this.selectStudent();
  13096. })
  13097. .catch((err) => {
  13098. console.error(err);
  13099. });
  13100. })
  13101. .catch(() => {});
  13102. },
  13103. commentOther(w, toolIndex, wIndex, gindex, gid) {
  13104. this.commentIndexJson = {
  13105. toolIndex: toolIndex,
  13106. wIndex: wIndex,
  13107. gindex: gindex,
  13108. gid: gid,
  13109. };
  13110. this.commentDetail = [];
  13111. this.commentDialogVisible = true;
  13112. this.commentDetail = w;
  13113. if (w.works && w.type == 1) {
  13114. this.pptImgUrl = "";
  13115. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13116. if (
  13117. a.indexOf(
  13118. w.works
  13119. .split(".")
  13120. [w.works.split(".").length - 1].toLocaleUpperCase()
  13121. ) != -1
  13122. ) {
  13123. this.pptImgUrl =
  13124. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13125. this.showPDF = false;
  13126. } else if (
  13127. w.works
  13128. .split(".")
  13129. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13130. ) {
  13131. this.pptImgUrl = w.works;
  13132. this.showPDF = true;
  13133. }
  13134. } else if (w.works && w.type == 3) {
  13135. this.videoDetail = {};
  13136. this.playerOptions1.sources[0].src = w.works;
  13137. this.videoDetail = this.playerOptions1;
  13138. // this.videoVisible = true;
  13139. } else if (w.works && w.type == 4) {
  13140. this.eScore = JSON.parse(w.works);
  13141. this.rateJson =
  13142. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13143. this.taskCount
  13144. ].toolChoose[toolIndex].rateJson;
  13145. } else if (w.works && w.type == 10) {
  13146. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13147. } else if (w.works && w.type == 13) {
  13148. this.wordJson =
  13149. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13150. this.taskCount
  13151. ].toolChoose[toolIndex].wordJson;
  13152. }
  13153. },
  13154. openScore(w) {
  13155. this.wScore = 0;
  13156. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13157. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13158. this.commentDetail = [];
  13159. this.dialogVisibleScore = true;
  13160. this.commentDetail = w;
  13161. if (w.works && w.type == 1) {
  13162. this.pptImgUrl = "";
  13163. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13164. if (
  13165. a.indexOf(
  13166. w.works
  13167. .split(".")
  13168. [w.works.split(".").length - 1].toLocaleUpperCase()
  13169. ) != -1
  13170. ) {
  13171. this.pptImgUrl =
  13172. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13173. this.showPDF = false;
  13174. } else if (
  13175. w.works
  13176. .split(".")
  13177. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13178. ) {
  13179. this.pptImgUrl = w.works;
  13180. this.showPDF = true;
  13181. }
  13182. } else if (w.works && w.type == 3) {
  13183. this.videoDetail = {};
  13184. this.playerOptions1.sources[0].src = w.works;
  13185. this.videoDetail = this.playerOptions1;
  13186. }
  13187. },
  13188. addComment(wid, uid, t) {
  13189. if (this.commentText == "") {
  13190. this.$message.error("请输入评论");
  13191. return;
  13192. }
  13193. let params2 = [
  13194. {
  13195. wid: wid,
  13196. lid: uid,
  13197. t: t,
  13198. },
  13199. ];
  13200. this.ajax
  13201. .post(this.$store.state.api + "getComment", params2)
  13202. .then((res) => {
  13203. if (res.data[0].length > 0) {
  13204. this.$message.error("一个作业只能评论一条");
  13205. } else {
  13206. let params = [
  13207. {
  13208. wid: wid,
  13209. lid: uid,
  13210. t: t,
  13211. c: this.commentText,
  13212. },
  13213. ];
  13214. this.ajax
  13215. .post(this.$store.state.api + "insertComment", params)
  13216. .then((res) => {
  13217. this.$message({
  13218. message: "评论成功",
  13219. type: "success",
  13220. });
  13221. this.commentText = "";
  13222. this.selectSWorks();
  13223. this.selectStudent();
  13224. })
  13225. .catch((err) => {
  13226. this.$message.error("评论失败");
  13227. console.error(err);
  13228. });
  13229. }
  13230. })
  13231. .catch((err) => {
  13232. // this.$message.error("评论失败");
  13233. console.error(err);
  13234. });
  13235. },
  13236. scoreWork(wid) {
  13237. if (this.wScore == 0) {
  13238. this.$message.error("请评分");
  13239. return;
  13240. }
  13241. let params = [
  13242. {
  13243. wid: wid,
  13244. score: JSON.stringify({
  13245. wScore: this.wScore,
  13246. detail: this.scoreDetail,
  13247. }),
  13248. },
  13249. ];
  13250. this.ajax
  13251. .post(this.$store.state.api + "scoreWork", params)
  13252. .then((res) => {
  13253. this.$message({
  13254. message: "评分成功",
  13255. type: "success",
  13256. });
  13257. this.wScore = 0;
  13258. this.scoreDetail = "";
  13259. this.dialogVisibleScore = false;
  13260. this.selectSWorks();
  13261. this.selectStudent();
  13262. })
  13263. .catch((err) => {
  13264. this.$message.error("评分失败");
  13265. console.error(err);
  13266. });
  13267. },
  13268. openXz(w, i) {
  13269. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13270. .taskJson[this.taskCount].toolChoose[i].selectJson
  13271. ? JSON.parse(
  13272. JSON.stringify(
  13273. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13274. this.taskCount
  13275. ].toolChoose[i].selectJson
  13276. )
  13277. )
  13278. : { url: "", select: [], answer: [] };
  13279. var a = w.works.split(",");
  13280. for (var k = 0; k < a.length; k++) {
  13281. a[k] = parseInt(a[k]);
  13282. }
  13283. this.selectAnswer = { answer: a, stu: w.sName };
  13284. this.isSelect = true;
  13285. this.dialogVisibleSelect = true;
  13286. },
  13287. openSen(w, i) {
  13288. this.sentenceList1 = JSON.parse(w.works);
  13289. this.sentenceList1.stuName = w.sName;
  13290. this.dialogVisibleSentence1 = true;
  13291. },
  13292. openPj(w, toolindex) {
  13293. this.isStar = true;
  13294. this.eScore = JSON.parse(w);
  13295. this.rateJson =
  13296. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13297. this.taskCount
  13298. ].toolChoose[toolindex].rateJson;
  13299. this.studentEvalDialogVisible = true;
  13300. },
  13301. deleteWorks(id) {
  13302. this.$confirm("确定删除此作业吗?", "提示", {
  13303. confirmButtonText: "确定",
  13304. cancelButtonText: "取消",
  13305. type: "warning",
  13306. })
  13307. .then(() => {
  13308. let params = [
  13309. {
  13310. id: id,
  13311. },
  13312. ];
  13313. this.ajax
  13314. .post(this.$store.state.api + "deleteCourseWork", params)
  13315. .then((res) => {
  13316. this.$message({
  13317. message: "删除成功",
  13318. type: "success",
  13319. });
  13320. this.selectStudent();
  13321. this.selectSWorks();
  13322. this.selectSLook();
  13323. })
  13324. .catch((err) => {
  13325. this.$message.error("网络异常");
  13326. console.error(err);
  13327. });
  13328. })
  13329. .catch(() => {});
  13330. },
  13331. selectSWorks(gindex) {
  13332. //教师查看全部作业
  13333. let params = {
  13334. cid: this.id,
  13335. s: this.courseType,
  13336. t: this.taskCount,
  13337. };
  13338. this.ajax
  13339. .get(this.$store.state.api + "selectSWorks", params)
  13340. .then((res) => {
  13341. var a =
  13342. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13343. this.taskCount
  13344. ].toolChoose;
  13345. var b = res.data[0];
  13346. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13347. var y = [
  13348. "AVI",
  13349. "NAVI",
  13350. "MPEG",
  13351. "ASF",
  13352. "MOV",
  13353. "WMV",
  13354. "3GP",
  13355. "RM",
  13356. "RMVB",
  13357. "FLV",
  13358. "F4V",
  13359. "H.264",
  13360. "H.265",
  13361. "REAL VIDEO",
  13362. "MKV",
  13363. "WebM",
  13364. "HDDVD",
  13365. "MP4",
  13366. "MPG",
  13367. "M4V",
  13368. "MGV",
  13369. "OGV",
  13370. "QTM",
  13371. "STR",
  13372. "AMC",
  13373. "DVX",
  13374. "EVO",
  13375. "DAT",
  13376. "OGG",
  13377. "OGM",
  13378. ];
  13379. var d = res.data[1];
  13380. var e = res.data[2];
  13381. var f = res.data[3];
  13382. for (var i = 0; i < a.length; i++) {
  13383. this.worksStudent[i] = [];
  13384. this.worksTeacher[i] = [];
  13385. this.worksStudent2[i] = [];
  13386. if (
  13387. !this.isCloseList[i] ||
  13388. this.isCloseList[i].isClose == undefined
  13389. ) {
  13390. this.isCloseList[i] = { isClose: 0 };
  13391. }
  13392. this.groupStudent[i] = [];
  13393. this.groupStudentUid[i] = [];
  13394. this.isWorksS[i] = [];
  13395. this.checkJson[i] = [];
  13396. if (a[i].tool[0] == 49) {
  13397. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13398. this.groupStudent[i][gA] = [];
  13399. this.groupStudentUid[i][gA] = [];
  13400. this.worksStudent[i][gA] = [];
  13401. this.isCloseList[i][gA] = [];
  13402. for (var g = 0; g < f.length; g++) {
  13403. if (
  13404. f[g].ttype == 2 &&
  13405. this.tcid &&
  13406. this.arrayToArray(
  13407. f[g].classid.split(","),
  13408. this.tcid.split(",")
  13409. ).length == 0
  13410. ) {
  13411. continue;
  13412. }
  13413. if (gA == f[g].group && f[g].tool == i) {
  13414. this.groupStudent[i][gA].push(f[g]);
  13415. this.groupStudentUid[i][gA].push(f[g].userid);
  13416. }
  13417. }
  13418. }
  13419. this.$forceUpdate();
  13420. }
  13421. for (var j = 0; j < b.length; j++) {
  13422. if (
  13423. b[j].ttype == 2 &&
  13424. this.tcid &&
  13425. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13426. .length == 0
  13427. ) {
  13428. continue;
  13429. }
  13430. var likesCount = 0;
  13431. var commentCount = 0;
  13432. var isLikes = false;
  13433. var commentJson = [];
  13434. var data = b[j];
  13435. if (i == b[j].tool) {
  13436. if (data.type == 2 && a[i].tool[0] == 4) {
  13437. // if(JSON.parse(data.content)[0].anwer){
  13438. var checkL =
  13439. JSON.parse(data.content)[0].anwer instanceof Array
  13440. ? JSON.parse(data.content)[0].anwer
  13441. : JSON.parse(data.content)[0].anwer.split(",");
  13442. for (var z = 0; z < checkL.length; z++) {
  13443. if (!this.checkJson[i][z]) {
  13444. this.checkJson[i].push({
  13445. checkCount: [],
  13446. checkPerson: [],
  13447. rightPerson: [],
  13448. });
  13449. }
  13450. if (!this.checkJson[i][z].checkCount.length) {
  13451. this.checkJson[i][z].checkCount = [];
  13452. let _askItemCount = JSON.parse(data.content)[0].askJson
  13453. .askJson[z].askItem;
  13454. for (var aic = 0; aic < _askItemCount; aic++) {
  13455. this.checkJson[i][z].checkCount.push(0);
  13456. }
  13457. }
  13458. if (checkL[z] instanceof Array) {
  13459. if (
  13460. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13461. checkL[z].sort().join(",")
  13462. ) {
  13463. this.checkJson[i][z].rightPerson.push(data.name);
  13464. }
  13465. for (var q = 0; q < checkL[z].length; q++) {
  13466. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13467. ? this.checkJson[i][z].checkPerson[
  13468. parseInt(checkL[z][q])
  13469. ].push(data.name)
  13470. : (this.checkJson[i][z].checkPerson[
  13471. parseInt(checkL[z][q])
  13472. ] = [data.name]);
  13473. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13474. ? this.checkJson[i][z].checkCount[
  13475. parseInt(checkL[z][q])
  13476. ]++
  13477. : (this.checkJson[i][z].checkCount[
  13478. parseInt(checkL[z][q])
  13479. ] = 1);
  13480. }
  13481. } else {
  13482. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13483. this.checkJson[i][z].rightPerson.push(data.name);
  13484. }
  13485. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13486. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13487. ? this.checkJson[i][z].checkPerson[
  13488. parseInt(checkL[z])
  13489. ].push(data.name)
  13490. : (this.checkJson[i][z].checkPerson[
  13491. parseInt(checkL[z])
  13492. ] = [data.name]);
  13493. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13494. ? this.checkJson[i][z].checkCount[
  13495. parseInt(checkL[z])
  13496. ]++
  13497. : (this.checkJson[i][z].checkCount[
  13498. parseInt(checkL[z])
  13499. ] = 1);
  13500. }
  13501. }
  13502. }
  13503. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13504. var checkL = JSON.parse(data.content)[0].anwer;
  13505. for (var z = 0; z < checkL.length; z++) {
  13506. if (!this.checkJson[i][z]) {
  13507. this.checkJson[i].push({
  13508. checkCount: [],
  13509. checkPerson: [],
  13510. rightPerson: [],
  13511. });
  13512. }
  13513. if (!this.checkJson[i][z].checkCount.length) {
  13514. this.checkJson[i][z].checkCount = [];
  13515. let _askItemCount = JSON.parse(data.content)[0].testJson
  13516. .testJson[z].testItem;
  13517. console.log(_askItemCount);
  13518. for (var aic = 0; aic < _askItemCount; aic++) {
  13519. this.checkJson[i][z].checkCount.push(0);
  13520. }
  13521. }
  13522. if (checkL[z] instanceof Array) {
  13523. if (
  13524. JSON.parse(data.content)[0]
  13525. .testJson.testJson[z].answer.sort()
  13526. .join(",") == checkL[z].sort().join(",")
  13527. ) {
  13528. this.checkJson[i][z].rightPerson.push(data.name);
  13529. }
  13530. for (var q = 0; q < checkL[z].length; q++) {
  13531. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13532. ? this.checkJson[i][z].checkPerson[
  13533. parseInt(checkL[z][q])
  13534. ].push(data.name)
  13535. : (this.checkJson[i][z].checkPerson[
  13536. parseInt(checkL[z][q])
  13537. ] = [data.name]);
  13538. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13539. ? this.checkJson[i][z].checkCount[
  13540. parseInt(checkL[z][q])
  13541. ]++
  13542. : (this.checkJson[i][z].checkCount[
  13543. parseInt(checkL[z][q])
  13544. ] = 1);
  13545. }
  13546. } else {
  13547. if (
  13548. JSON.parse(data.content)[0].testJson.testJson[z]
  13549. .answer == checkL[z]
  13550. ) {
  13551. this.checkJson[i][z].rightPerson.push(data.name);
  13552. }
  13553. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13554. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13555. ? this.checkJson[i][z].checkPerson[
  13556. parseInt(checkL[z])
  13557. ].push(data.name)
  13558. : (this.checkJson[i][z].checkPerson[
  13559. parseInt(checkL[z])
  13560. ] = [data.name]);
  13561. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13562. ? this.checkJson[i][z].checkCount[
  13563. parseInt(checkL[z])
  13564. ]++
  13565. : (this.checkJson[i][z].checkCount[
  13566. parseInt(checkL[z])
  13567. ] = 1);
  13568. }
  13569. }
  13570. }
  13571. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13572. var checkL = JSON.parse(data.content);
  13573. for (var z = 0; z < checkL.length; z++) {
  13574. if (!this.checkJson[i][z]) {
  13575. this.checkJson[i].push({
  13576. checkCount: [],
  13577. checkPerson: [],
  13578. rightPerson: [],
  13579. });
  13580. }
  13581. this.checkJson[i][z].checkPerson.push(data.name);
  13582. if (
  13583. checkL[z].chooseSenList.toString() ==
  13584. checkL[z].rightAnswer.toString()
  13585. ) {
  13586. this.checkJson[i][z].rightPerson.push(data.name);
  13587. }
  13588. }
  13589. }
  13590. for (var k = 0; k < d.length; k++) {
  13591. //点赞
  13592. if (d[k].workId == b[j].id) {
  13593. likesCount++;
  13594. if (d[k].likesId == this.userid) {
  13595. isLikes = true;
  13596. }
  13597. }
  13598. }
  13599. for (var l = 0; l < e.length; l++) {
  13600. //评论
  13601. if (e[l].workId == b[j].id) {
  13602. if (e[l].comment != "") {
  13603. commentCount++;
  13604. commentJson.push({
  13605. commentText: e[l].comment,
  13606. commentTime: e[l].commentTime,
  13607. commentPeople: e[l].commentPeople,
  13608. userid: e[l].userid,
  13609. wid: e[l].id,
  13610. });
  13611. }
  13612. }
  13613. }
  13614. if (
  13615. (b[j].type == 1 ||
  13616. b[j].type == 4 ||
  13617. b[j].type == 5 ||
  13618. b[j].type == 6 ||
  13619. b[j].type == 12 ||
  13620. b[j].type == 7) &&
  13621. a[i].tool[0] != 15 &&
  13622. a[i].tool[0] != 4 &&
  13623. a[i].tool[0] != 45 &&
  13624. a[i].tool[0] != 50 &&
  13625. a[i].tool[0] != 32 &&
  13626. a[i].tool[0] != 57 &&
  13627. a[i].tool[0] != 52
  13628. ) {
  13629. if (
  13630. c.indexOf(
  13631. b[j].content
  13632. .split(".")
  13633. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13634. ) != -1 &&
  13635. a[i].tool[0] == 16 &&
  13636. b[j].atool != 50
  13637. ) {
  13638. let _works = {
  13639. userid: b[j].userid,
  13640. ateacher: b[j].ateacher,
  13641. wid: b[j].id,
  13642. works: b[j].content,
  13643. sName: b[j].name,
  13644. type: 1,
  13645. time: b[j].time,
  13646. score: b[j].score,
  13647. img: b[j].img,
  13648. likesCount: likesCount,
  13649. commentCount: commentCount,
  13650. isLikes: isLikes,
  13651. commentJson: commentJson,
  13652. };
  13653. if (b[j].ttype == 1) {
  13654. this.worksTeacher[i].push(_works);
  13655. } else {
  13656. this.worksStudent2[i].push(_works);
  13657. }
  13658. this.worksStudent[i].push(_works);
  13659. this.isWorksS[i].push({
  13660. uid: b[j].userid,
  13661. sName: b[j].name,
  13662. });
  13663. } else if (
  13664. y.indexOf(
  13665. b[j].content
  13666. .split(".")
  13667. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13668. ) != -1 &&
  13669. a[i].tool[0] == 16 &&
  13670. b[j].atool != 50
  13671. ) {
  13672. let _works = {
  13673. userid: b[j].userid,
  13674. ateacher: b[j].ateacher,
  13675. wid: b[j].id,
  13676. works: b[j].content,
  13677. sName: b[j].name,
  13678. type: 3,
  13679. time: b[j].time,
  13680. score: b[j].score,
  13681. img: b[j].img,
  13682. likesCount: likesCount,
  13683. commentCount: commentCount,
  13684. isLikes: isLikes,
  13685. commentJson: commentJson,
  13686. };
  13687. if (b[j].ttype == 1) {
  13688. this.worksTeacher[i].push(_works);
  13689. } else {
  13690. this.worksStudent2[i].push(_works);
  13691. }
  13692. this.worksStudent[i].push(_works);
  13693. this.isWorksS[i].push({
  13694. uid: b[j].userid,
  13695. sName: b[j].name,
  13696. });
  13697. } else if (b[j].type == 6 && b[j].atool != 50) {
  13698. let _works = {
  13699. userid: b[j].userid,
  13700. ateacher: b[j].ateacher,
  13701. wid: b[j].id,
  13702. works: b[j].content,
  13703. sName: b[j].name,
  13704. type: 4,
  13705. time: b[j].time,
  13706. score: b[j].score,
  13707. img: b[j].img,
  13708. likesCount: likesCount,
  13709. commentCount: commentCount,
  13710. isLikes: isLikes,
  13711. commentJson: commentJson,
  13712. };
  13713. if (b[j].ttype == 1) {
  13714. this.worksTeacher[i].push(_works);
  13715. } else {
  13716. this.worksStudent2[i].push(_works);
  13717. }
  13718. this.worksStudent[i].push(_works);
  13719. this.isWorksS[i].push({
  13720. uid: b[j].userid,
  13721. sName: b[j].name,
  13722. });
  13723. } else if (b[j].type == 7 && b[j].atool != 50) {
  13724. let _works = {
  13725. userid: b[j].userid,
  13726. ateacher: b[j].ateacher,
  13727. wid: b[j].id,
  13728. works: b[j].content,
  13729. sName: b[j].name,
  13730. type: 5,
  13731. time: b[j].time,
  13732. score: b[j].score,
  13733. img: b[j].img,
  13734. likesCount: likesCount,
  13735. commentCount: commentCount,
  13736. isLikes: isLikes,
  13737. commentJson: commentJson,
  13738. };
  13739. if (b[j].ttype == 1) {
  13740. this.worksTeacher[i].push(_works);
  13741. } else {
  13742. this.worksStudent2[i].push(_works);
  13743. }
  13744. this.worksStudent[i].push(_works);
  13745. this.isWorksS[i].push({
  13746. uid: b[j].userid,
  13747. sName: b[j].name,
  13748. });
  13749. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13750. let _works = {
  13751. userid: b[j].userid,
  13752. ateacher: b[j].ateacher,
  13753. wid: b[j].id,
  13754. works: b[j].content,
  13755. sName: b[j].name,
  13756. type: 12,
  13757. time: b[j].time,
  13758. score: b[j].score,
  13759. img: b[j].img,
  13760. likesCount: likesCount,
  13761. commentCount: commentCount,
  13762. isLikes: isLikes,
  13763. commentJson: commentJson,
  13764. };
  13765. if (b[j].ttype == 1) {
  13766. this.worksTeacher[i].push(_works);
  13767. } else {
  13768. this.worksStudent2[i].push(_works);
  13769. }
  13770. this.worksStudent[i].push(_works);
  13771. this.isWorksS[i].push({
  13772. uid: b[j].userid,
  13773. sName: b[j].name,
  13774. });
  13775. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13776. let _works = {
  13777. userid: b[j].userid,
  13778. ateacher: b[j].ateacher,
  13779. wid: b[j].id,
  13780. works: b[j].content,
  13781. sName: b[j].name,
  13782. type: 0,
  13783. time: b[j].time,
  13784. score: b[j].score,
  13785. img: b[j].img,
  13786. likesCount: likesCount,
  13787. commentCount: commentCount,
  13788. isLikes: isLikes,
  13789. commentJson: commentJson,
  13790. };
  13791. if (b[j].ttype == 1) {
  13792. this.worksTeacher[i].push(_works);
  13793. } else {
  13794. this.worksStudent2[i].push(_works);
  13795. }
  13796. this.worksStudent[i].push(_works);
  13797. this.isWorksS[i].push({
  13798. uid: b[j].userid,
  13799. sName: b[j].name,
  13800. });
  13801. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13802. let _works = {
  13803. userid: b[j].userid,
  13804. ateacher: b[j].ateacher,
  13805. wid: b[j].id,
  13806. works: b[j].content,
  13807. sName: b[j].name,
  13808. type: 0,
  13809. time: b[j].time,
  13810. score: b[j].score,
  13811. img: b[j].img,
  13812. likesCount: likesCount,
  13813. commentCount: commentCount,
  13814. isLikes: isLikes,
  13815. commentJson: commentJson,
  13816. };
  13817. if (b[j].ttype == 1) {
  13818. this.worksTeacher[i].push(_works);
  13819. } else {
  13820. this.worksStudent2[i].push(_works);
  13821. }
  13822. this.worksStudent[i].push(_works);
  13823. this.isWorksS[i].push({
  13824. uid: b[j].userid,
  13825. sName: b[j].name,
  13826. });
  13827. }
  13828. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13829. let _works = {
  13830. userid: b[j].userid,
  13831. ateacher: b[j].ateacher,
  13832. wid: b[j].id,
  13833. works: b[j].content,
  13834. sName: b[j].name,
  13835. type: 2,
  13836. time: b[j].time,
  13837. score: b[j].score,
  13838. img: b[j].img,
  13839. likesCount: likesCount,
  13840. commentCount: commentCount,
  13841. isLikes: isLikes,
  13842. commentJson: commentJson,
  13843. };
  13844. if (b[j].ttype == 1) {
  13845. this.worksTeacher[i].push(_works);
  13846. } else {
  13847. this.worksStudent2[i].push(_works);
  13848. }
  13849. this.worksStudent[i].push(_works);
  13850. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13851. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13852. //问卷
  13853. let _works = {
  13854. userid: b[j].userid,
  13855. ateacher: b[j].ateacher,
  13856. wid: b[j].id,
  13857. works: b[j].content,
  13858. sName: b[j].name,
  13859. type: 2,
  13860. time: b[j].time,
  13861. score: b[j].score,
  13862. img: b[j].img,
  13863. likesCount: likesCount,
  13864. commentCount: commentCount,
  13865. isLikes: isLikes,
  13866. commentJson: commentJson,
  13867. };
  13868. if (b[j].ttype == 1) {
  13869. this.worksTeacher[i].push(_works);
  13870. } else {
  13871. this.worksStudent2[i].push(_works);
  13872. }
  13873. this.worksStudent[i].push(_works);
  13874. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13875. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13876. //选择题
  13877. let _works = {
  13878. userid: b[j].userid,
  13879. ateacher: b[j].ateacher,
  13880. wid: b[j].id,
  13881. works: b[j].content,
  13882. sName: b[j].name,
  13883. type: 8,
  13884. time: b[j].time,
  13885. score: b[j].score,
  13886. img: b[j].img,
  13887. likesCount: likesCount,
  13888. commentCount: commentCount,
  13889. isLikes: isLikes,
  13890. commentJson: commentJson,
  13891. };
  13892. if (b[j].ttype == 1) {
  13893. this.worksTeacher[i].push(_works);
  13894. } else {
  13895. this.worksStudent2[i].push(_works);
  13896. }
  13897. this.worksStudent[i].push(_works);
  13898. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13899. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13900. //选择题
  13901. let _works = {
  13902. userid: b[j].userid,
  13903. ateacher: b[j].ateacher,
  13904. wid: b[j].id,
  13905. works: b[j].content,
  13906. sName: b[j].name,
  13907. type: 9,
  13908. time: b[j].time,
  13909. score: b[j].score,
  13910. img: b[j].img,
  13911. likesCount: likesCount,
  13912. commentCount: commentCount,
  13913. isLikes: isLikes,
  13914. commentJson: commentJson,
  13915. };
  13916. if (b[j].ttype == 1) {
  13917. this.worksTeacher[i].push(_works);
  13918. } else {
  13919. this.worksStudent2[i].push(_works);
  13920. }
  13921. this.worksStudent[i].push(_works);
  13922. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13923. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13924. //选择题
  13925. let _works = {
  13926. userid: b[j].userid,
  13927. ateacher: b[j].ateacher,
  13928. wid: b[j].id,
  13929. works: b[j].content,
  13930. sName: b[j].name,
  13931. type: 10,
  13932. time: b[j].time,
  13933. score: b[j].score,
  13934. img: b[j].img,
  13935. likesCount: likesCount,
  13936. commentCount: commentCount,
  13937. isLikes: isLikes,
  13938. commentJson: commentJson,
  13939. };
  13940. if (b[j].ttype == 1) {
  13941. this.worksTeacher[i].push(_works);
  13942. } else {
  13943. this.worksStudent2[i].push(_works);
  13944. }
  13945. this.worksStudent[i].push(_works);
  13946. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13947. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13948. //选择题
  13949. let _works = {
  13950. userid: b[j].userid,
  13951. ateacher: b[j].ateacher,
  13952. wid: b[j].id,
  13953. works: b[j].content,
  13954. sName: b[j].name,
  13955. type: 13,
  13956. time: b[j].time,
  13957. score: b[j].score,
  13958. img: b[j].img,
  13959. likesCount: likesCount,
  13960. commentCount: commentCount,
  13961. isLikes: isLikes,
  13962. commentJson: commentJson,
  13963. };
  13964. if (b[j].ttype == 1) {
  13965. this.worksTeacher[i].push(_works);
  13966. } else {
  13967. this.worksStudent2[i].push(_works);
  13968. }
  13969. this.worksStudent[i].push(_works);
  13970. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13971. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  13972. let _gindex = JSON.parse(b[j].content);
  13973. if (
  13974. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  13975. b[j].userid
  13976. ) != -1
  13977. ) {
  13978. this.worksStudent[i][_gindex.groupIndex].push({
  13979. userid: b[j].userid,
  13980. ateacher: b[j].ateacher,
  13981. wid: b[j].id,
  13982. works: _gindex.url,
  13983. sName: b[j].name,
  13984. type: _gindex.type,
  13985. time: b[j].time,
  13986. score: b[j].score,
  13987. img: b[j].img,
  13988. likesCount: likesCount,
  13989. commentCount: commentCount,
  13990. isLikes: isLikes,
  13991. commentJson: commentJson,
  13992. });
  13993. }
  13994. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13995. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  13996. let _works = {
  13997. userid: b[j].userid,
  13998. ateacher: b[j].ateacher,
  13999. wid: b[j].id,
  14000. works: b[j].content,
  14001. sName: b[j].name ? b[j].name : b[j].userid,
  14002. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  14003. time: b[j].time,
  14004. score: b[j].score,
  14005. img: b[j].img,
  14006. likesCount: likesCount,
  14007. commentCount: commentCount,
  14008. isLikes: isLikes,
  14009. commentJson: commentJson,
  14010. };
  14011. if (b[j].ttype == 1) {
  14012. this.worksTeacher[i].push(_works);
  14013. } else {
  14014. this.worksStudent2[i].push(_works);
  14015. }
  14016. this.worksStudent[i].push(_works);
  14017. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14018. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  14019. let _works = {
  14020. userid: b[j].userid,
  14021. ateacher: b[j].ateacher,
  14022. wid: b[j].id,
  14023. works: b[j].content,
  14024. sName: b[j].name ? b[j].name : b[j].userid,
  14025. type: 12,
  14026. time: b[j].time,
  14027. score: b[j].score,
  14028. img: b[j].img,
  14029. likesCount: likesCount,
  14030. commentCount: commentCount,
  14031. isLikes: isLikes,
  14032. commentJson: commentJson,
  14033. };
  14034. if (b[j].ttype == 1) {
  14035. this.worksTeacher[i].push(_works);
  14036. } else {
  14037. this.worksStudent2[i].push(_works);
  14038. }
  14039. this.worksStudent[i].push(_works);
  14040. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14041. } else if (
  14042. a[i].tool[0] == 57 &&
  14043. b[j].atool == 57 &&
  14044. b[j].type == 12
  14045. ) {
  14046. let _works = {
  14047. userid: b[j].userid,
  14048. ateacher: b[j].ateacher,
  14049. wid: b[j].id,
  14050. works: b[j].content,
  14051. sName: b[j].name ? b[j].name : b[j].userid,
  14052. type: 12,
  14053. time: b[j].time,
  14054. score: b[j].score,
  14055. img: b[j].img,
  14056. likesCount: likesCount,
  14057. commentCount: commentCount,
  14058. isLikes: isLikes,
  14059. commentJson: commentJson,
  14060. };
  14061. if (b[j].ttype == 1) {
  14062. this.worksTeacher[i].push(_works);
  14063. } else {
  14064. this.worksStudent2[i].push(_works);
  14065. }
  14066. this.worksStudent[i].push(_works);
  14067. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14068. } else if (
  14069. a[i].tool[0] == 57 &&
  14070. b[j].atool == 57 &&
  14071. b[j].type == 15
  14072. ) {
  14073. let _works = {
  14074. userid: b[j].userid,
  14075. ateacher: b[j].ateacher,
  14076. wid: b[j].id,
  14077. works: b[j].content,
  14078. sName: b[j].name ? b[j].name : b[j].userid,
  14079. type: 15,
  14080. time: b[j].time,
  14081. score: b[j].score,
  14082. img: b[j].img,
  14083. likesCount: likesCount,
  14084. commentCount: commentCount,
  14085. isLikes: isLikes,
  14086. commentJson: commentJson,
  14087. };
  14088. if (b[j].ttype == 1) {
  14089. this.worksTeacher[i].push(_works);
  14090. } else {
  14091. this.worksStudent2[i].push(_works);
  14092. }
  14093. this.worksStudent[i].push(_works);
  14094. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14095. }
  14096. }
  14097. }
  14098. if (this.worksStudent[i] && this.worksStudent[i].length) {
  14099. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  14100. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14101. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14102. var scoreA = parseFloat(jscoreA);
  14103. var scoreB = parseFloat(jscoreB);
  14104. if (scoreA == scoreB) {
  14105. return b.likesCount - a.likesCount;
  14106. }
  14107. return scoreB - scoreA;
  14108. });
  14109. }
  14110. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  14111. this.worksStudent2[i] = this.worksStudent2[i].sort(function (
  14112. a,
  14113. b
  14114. ) {
  14115. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14116. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14117. var scoreA = parseFloat(jscoreA);
  14118. var scoreB = parseFloat(jscoreB);
  14119. if (scoreA == scoreB) {
  14120. return b.likesCount - a.likesCount;
  14121. }
  14122. return scoreB - scoreA;
  14123. });
  14124. }
  14125. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  14126. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  14127. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14128. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14129. var scoreA = parseFloat(jscoreA);
  14130. var scoreB = parseFloat(jscoreB);
  14131. if (scoreA == scoreB) {
  14132. return b.likesCount - a.likesCount;
  14133. }
  14134. return scoreB - scoreA;
  14135. });
  14136. }
  14137. }
  14138. for (var i = 0; i < a.length; i++) {
  14139. for (var j = 0; j < b.length; j++) {
  14140. var data = b[j];
  14141. if (i == b[j].tool) {
  14142. if (data.type == 2 || data.type == 8) {
  14143. for (var z = 0; z < this.checkJson[i].length; z++) {
  14144. this.checkJson[i][z].checkPerent = [];
  14145. this.checkJson[i][z].right = Math.round(
  14146. (this.checkJson[i][z].rightPerson.length /
  14147. parseInt(this.worksStudent[i].length)) *
  14148. 100
  14149. );
  14150. let aaaa = this.checkJson[i][z];
  14151. console.log(aaaa);
  14152. for (
  14153. var k = 0;
  14154. k < this.checkJson[i][z].checkCount.length;
  14155. k++
  14156. ) {
  14157. this.checkJson[i][z].checkPerent.push(
  14158. Math.round(
  14159. (this.checkJson[i][z].checkCount[k] /
  14160. parseInt(this.worksStudent[i].length)) *
  14161. 100
  14162. )
  14163. );
  14164. }
  14165. }
  14166. } else if (data.type == 9) {
  14167. for (var z = 0; z < this.checkJson[i].length; z++) {
  14168. this.checkJson[i][z].checkPerent = [];
  14169. this.checkJson[i][z].right = Math.round(
  14170. (this.checkJson[i][z].rightPerson.length /
  14171. this.checkJson[i][z].checkPerson.length) *
  14172. 100
  14173. );
  14174. }
  14175. }
  14176. }
  14177. }
  14178. }
  14179. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14180. this.joinGroup(gindex);
  14181. }
  14182. this.selectWorksStudent();
  14183. })
  14184. .catch((err) => {
  14185. console.error(err);
  14186. });
  14187. },
  14188. pngToWhiteBg(file) {
  14189. const _file = file;
  14190. let read = new FileReader();
  14191. read.readAsDataURL(file); // 文件转base64
  14192. return new Promise((resolve, reject) => {
  14193. read.onload = (e) => {
  14194. let img = new Image();
  14195. img.src = e.target.result;
  14196. img.onload = async () => {
  14197. // 生成canvas
  14198. let canvas = document.createElement("canvas");
  14199. let context = canvas.getContext("2d");
  14200. // 绘制图片到canvas上
  14201. canvas.width = img.width;
  14202. canvas.height = img.height;
  14203. // 在canvas绘制前填充白色背景
  14204. context.fillStyle = "#fff";
  14205. context.fillRect(0, 0, canvas.width, canvas.height);
  14206. context.drawImage(img, 0, 0);
  14207. let base64 = canvas.toDataURL(file["type"], 1);
  14208. let newFile = this.dataUrlToFile(base64, _file);
  14209. resolve(newFile);
  14210. };
  14211. };
  14212. });
  14213. },
  14214. dataUrlToFile(dataurl, file) {
  14215. let arr = dataurl.split(","),
  14216. mime = arr[0].match(/:(.*?);/)[1],
  14217. bstr = atob(arr[1]),
  14218. n = bstr.length,
  14219. u8arr = new Uint8Array(n);
  14220. while (n--) {
  14221. u8arr[n] = bstr.charCodeAt(n);
  14222. }
  14223. // return new Blob([u8arr], { type: mime });
  14224. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14225. type: mime,
  14226. });
  14227. },
  14228. async beforeUpload1(event, type, i) {
  14229. // this.$message.success('进入上传')
  14230. var file = "";
  14231. if (type == 5) {
  14232. file = event;
  14233. } else {
  14234. file = event.target.files[0];
  14235. }
  14236. var credentials = {
  14237. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14238. secretAccessKey: "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",
  14239. }; //秘钥形式的登录上传
  14240. window.AWS.config.update(credentials);
  14241. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14242. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14243. var _this = this;
  14244. _this.progress = 0;
  14245. _this.proVisible = true;
  14246. _this.isFinishSize = 0;
  14247. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14248. var b = [
  14249. "DOC",
  14250. "DOCX",
  14251. "DOCM",
  14252. "DOTM",
  14253. "DOTX",
  14254. "PPTX",
  14255. "PPSX",
  14256. "PPT",
  14257. "PPS",
  14258. "PPTM",
  14259. "POTM",
  14260. "PPAM",
  14261. "POTX",
  14262. "PPSM",
  14263. ];
  14264. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14265. var photoA = [
  14266. "BMP",
  14267. "GIF",
  14268. "PNG",
  14269. "JPGE",
  14270. "JPG",
  14271. "TIF",
  14272. "PCX",
  14273. "TGA",
  14274. "EXIF",
  14275. "FPX",
  14276. "SVG",
  14277. "APNG",
  14278. ];
  14279. // if (
  14280. // b.indexOf(
  14281. // file.name
  14282. // .split(".")
  14283. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14284. // ) != -1
  14285. // ) {
  14286. // if (file.size / 1024 / 1024 > 10) {
  14287. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14288. // return;
  14289. // }
  14290. // } else if (
  14291. // excelA.indexOf(
  14292. // file.name
  14293. // .split(".")
  14294. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14295. // ) != "-1"
  14296. // ) {
  14297. // if (file.size / 1024 / 1024 > 5) {
  14298. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14299. // return;
  14300. // }
  14301. // }
  14302. if (
  14303. photoA.indexOf(
  14304. file.name
  14305. .split(".")
  14306. [file.name.split(".").length - 1].toLocaleUpperCase()
  14307. ) != -1 &&
  14308. type != 4
  14309. ) {
  14310. // const blob = await imageConversion.compress(file, 0.8)
  14311. file = await this.pngToWhiteBg(file);
  14312. const blob = await imageConversion.compressAccurately(file, 256);
  14313. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14314. file = new File([blob], file.name, { type: file.type });
  14315. }
  14316. if (file) {
  14317. var params = {
  14318. Key:
  14319. file.name.split(".")[0] +
  14320. new Date().getTime() +
  14321. "." +
  14322. file.name.split(".")[file.name.split(".").length - 1],
  14323. ContentType: file.type,
  14324. Body: file,
  14325. "Access-Control-Allow-Credentials": "*",
  14326. ACL: "public-read",
  14327. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14328. var options = {
  14329. // partSize: 2048 * 1024 * 1024,
  14330. partSize: 1024 * 1024 * 1024,
  14331. queueSize: 2,
  14332. leavePartsOnError: true,
  14333. };
  14334. bucket
  14335. .upload(params, options)
  14336. .on("httpUploadProgress", function (evt) {
  14337. //这里可以写进度条
  14338. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14339. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14340. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14341. })
  14342. .send(function (err, data) {
  14343. _this.progress = 100;
  14344. _this.isFinishSize = _this.isAllSize;
  14345. setTimeout(() => {
  14346. _this.proVisible = false;
  14347. }, 1000);
  14348. if (err) {
  14349. var a = _this.$refs.upload1.uploadFiles;
  14350. a.splice(a.length - 1, a.length);
  14351. _this.$message.error("上传失败");
  14352. } else {
  14353. // _this.$message.success('上传成功')
  14354. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14355. var c = [
  14356. "AVI",
  14357. "NAVI",
  14358. "MPEG",
  14359. "ASF",
  14360. "MOV",
  14361. "WMV",
  14362. "3GP",
  14363. "RM",
  14364. "RMVB",
  14365. "FLV",
  14366. "F4V",
  14367. "H.264",
  14368. "H.265",
  14369. "REAL VIDEO",
  14370. "MKV",
  14371. "WebM",
  14372. "HDDVD",
  14373. "MP4",
  14374. "MPG",
  14375. "M4V",
  14376. "MGV",
  14377. "OGV",
  14378. "QTM",
  14379. "STR",
  14380. "AMC",
  14381. "DVX",
  14382. "EVO",
  14383. "DAT",
  14384. "OGG",
  14385. "OGM",
  14386. ];
  14387. if (type == 1) {
  14388. _this.studyJuri[0].cover.push({
  14389. name: file.name,
  14390. url: data.Location,
  14391. uid: file.uid,
  14392. });
  14393. if (
  14394. c.indexOf(
  14395. _this.studyJuri[0].cover[0].url
  14396. .split(".")
  14397. [
  14398. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14399. ].toLocaleUpperCase()
  14400. ) != -1
  14401. ) {
  14402. _this.fileType = 2;
  14403. } else if (
  14404. b.indexOf(
  14405. _this.studyJuri[0].cover[0].url
  14406. .split(".")
  14407. [
  14408. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14409. ].toLocaleUpperCase()
  14410. ) != -1
  14411. ) {
  14412. _this.fileType = 1;
  14413. } else if (
  14414. photoA.indexOf(
  14415. _this.studyJuri[0].cover[0].url
  14416. .split(".")
  14417. [
  14418. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14419. ].toLocaleUpperCase()
  14420. ) != -1
  14421. ) {
  14422. _this.fileType = 0;
  14423. } else {
  14424. _this.fileType = 3;
  14425. }
  14426. _this.imgChange(null, null, type);
  14427. } else if (type == 2) {
  14428. _this.upToolImg = data.Location;
  14429. _this.imgChange(null, null, type);
  14430. _this.addCourseWorks(i);
  14431. } else if (type == 4) {
  14432. _this.addPz("3", data.Location);
  14433. } else if (type == 5) {
  14434. _this.addImgDrawImG(data.Location);
  14435. } else if (type == 6) {
  14436. var _ftype = 1;
  14437. if (
  14438. c.indexOf(
  14439. data.Location.split(".")[
  14440. data.Location.split(".").length - 1
  14441. ].toLocaleUpperCase()
  14442. ) != -1
  14443. ) {
  14444. _ftype = 5;
  14445. } else if (
  14446. b.indexOf(
  14447. data.Location.split(".")[
  14448. data.Location.split(".").length - 1
  14449. ].toLocaleUpperCase()
  14450. ) != -1
  14451. ) {
  14452. _ftype = 4;
  14453. } else {
  14454. _ftype = 1;
  14455. }
  14456. _this.plworkFile.push({
  14457. name: file.name,
  14458. url: data.Location,
  14459. uid: file.uid,
  14460. fileType: _ftype,
  14461. username:
  14462. _this.plworkFile.length + 1 > 10
  14463. ? _this.plworkFile.length + 1
  14464. : "0" + (_this.plworkFile.length + 1),
  14465. });
  14466. } else if (type == 7) {
  14467. _this.addCourseWorksGong(i, data.Location, 32);
  14468. } else if (type == 8) {
  14469. _this.addCourseWorksGong(i, data.Location, 57);
  14470. }
  14471. _this.imgChange(null, null, type);
  14472. console.log(data.Location);
  14473. // _this.$message.success('上传成功'+data.Location)
  14474. }
  14475. });
  14476. }
  14477. },
  14478. async beforeUpload3(event, type, i) {
  14479. // this.$message.success('进入上传')
  14480. let file = "";
  14481. let cfindex2 = 0;
  14482. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14483. file = event.target.files[cfindex];
  14484. var credentials = {
  14485. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14486. secretAccessKey: "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",
  14487. }; //秘钥形式的登录上传
  14488. window.AWS.config.update(credentials);
  14489. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14490. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14491. var _this = this;
  14492. // _this.progress = 0;
  14493. _this.proVisible2 = true;
  14494. var b = [
  14495. "DOC",
  14496. "DOCX",
  14497. "DOCM",
  14498. "DOTM",
  14499. "DOTX",
  14500. "PPTX",
  14501. "PPSX",
  14502. "PPT",
  14503. "PPS",
  14504. "PPTM",
  14505. "POTM",
  14506. "PPAM",
  14507. "POTX",
  14508. "PPSM",
  14509. ];
  14510. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14511. var photoA = [
  14512. "BMP",
  14513. "GIF",
  14514. "PNG",
  14515. "JPGE",
  14516. "JPG",
  14517. "TIF",
  14518. "PCX",
  14519. "TGA",
  14520. "EXIF",
  14521. "FPX",
  14522. "SVG",
  14523. "APNG",
  14524. ];
  14525. if (
  14526. photoA.indexOf(
  14527. file.name
  14528. .split(".")
  14529. [file.name.split(".").length - 1].toLocaleUpperCase()
  14530. ) != -1 &&
  14531. type != 4
  14532. ) {
  14533. // const blob = await imageConversion.compress(file, 0.8)
  14534. file = await this.pngToWhiteBg(file);
  14535. const blob = await imageConversion.compressAccurately(file, 256);
  14536. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14537. file = new File([blob], file.name, { type: file.type });
  14538. }
  14539. if (file) {
  14540. var params = {
  14541. Key:
  14542. file.name.split(".")[0] +
  14543. new Date().getTime() +
  14544. "." +
  14545. file.name.split(".")[file.name.split(".").length - 1],
  14546. ContentType: file.type,
  14547. Body: file,
  14548. "Access-Control-Allow-Credentials": "*",
  14549. ACL: "public-read",
  14550. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14551. var options = {
  14552. // partSize: 2048 * 1024 * 1024,
  14553. partSize: 1024 * 1024 * 1024,
  14554. queueSize: 2,
  14555. leavePartsOnError: true,
  14556. };
  14557. bucket
  14558. .upload(params, options)
  14559. .on("httpUploadProgress", function (evt) {
  14560. //这里可以写进度条
  14561. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14562. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14563. })
  14564. .send(function (err, data) {
  14565. // _this.progress = 100;
  14566. cfindex2++;
  14567. setTimeout(() => {
  14568. if (
  14569. cfindex2 == event.target.files.length - 1 ||
  14570. cfindex2 > event.target.files.length - 1
  14571. ) {
  14572. _this.proVisible2 = false;
  14573. }
  14574. }, 1000);
  14575. if (err) {
  14576. var a = _this.$refs.upload1.uploadFiles;
  14577. a.splice(a.length - 1, a.length);
  14578. _this.$message.error("上传失败");
  14579. } else {
  14580. // _this.$message.success('上传成功')
  14581. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14582. var c = [
  14583. "AVI",
  14584. "NAVI",
  14585. "MPEG",
  14586. "ASF",
  14587. "MOV",
  14588. "WMV",
  14589. "3GP",
  14590. "RM",
  14591. "RMVB",
  14592. "FLV",
  14593. "F4V",
  14594. "H.264",
  14595. "H.265",
  14596. "REAL VIDEO",
  14597. "MKV",
  14598. "WebM",
  14599. "HDDVD",
  14600. "MP4",
  14601. "MPG",
  14602. "M4V",
  14603. "MGV",
  14604. "OGV",
  14605. "QTM",
  14606. "STR",
  14607. "AMC",
  14608. "DVX",
  14609. "EVO",
  14610. "DAT",
  14611. "OGG",
  14612. "OGM",
  14613. ];
  14614. if (type == 1) {
  14615. _this.studyJuri[0].cover.push({
  14616. name: file.name,
  14617. url: data.Location,
  14618. uid: file.uid,
  14619. });
  14620. if (
  14621. c.indexOf(
  14622. _this.studyJuri[0].cover[0].url
  14623. .split(".")
  14624. [
  14625. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14626. ].toLocaleUpperCase()
  14627. ) != -1
  14628. ) {
  14629. _this.fileType = 2;
  14630. } else if (
  14631. b.indexOf(
  14632. _this.studyJuri[0].cover[0].url
  14633. .split(".")
  14634. [
  14635. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14636. ].toLocaleUpperCase()
  14637. ) != -1
  14638. ) {
  14639. _this.fileType = 1;
  14640. } else {
  14641. _this.fileType = 0;
  14642. }
  14643. _this.imgChange(null, null, type);
  14644. } else if (type == 2) {
  14645. _this.upToolImg = data.Location;
  14646. _this.imgChange(null, null, type);
  14647. _this.addCourseWorks(i);
  14648. } else if (type == 4) {
  14649. _this.addPz("3", data.Location);
  14650. } else if (type == 5) {
  14651. _this.addImgDrawImG(data.Location);
  14652. } else if (type == 6) {
  14653. var _ftype = 1;
  14654. if (
  14655. c.indexOf(
  14656. data.Location.split(".")[
  14657. data.Location.split(".").length - 1
  14658. ].toLocaleUpperCase()
  14659. ) != -1
  14660. ) {
  14661. _ftype = 5;
  14662. } else if (
  14663. b.indexOf(
  14664. data.Location.split(".")[
  14665. data.Location.split(".").length - 1
  14666. ].toLocaleUpperCase()
  14667. ) != -1
  14668. ) {
  14669. _ftype = 4;
  14670. } else {
  14671. _ftype = 1;
  14672. }
  14673. _this.plworkFile.push({
  14674. name: file.name,
  14675. url: data.Location,
  14676. uid: file.uid,
  14677. fileType: _ftype,
  14678. username:
  14679. _this.plworkFile.length + 1 > 9
  14680. ? _this.plworkFile.length + 1
  14681. : "0" + (_this.plworkFile.length + 1),
  14682. });
  14683. }
  14684. _this.imgChange(null, null, type);
  14685. console.log(data.Location);
  14686. // _this.$message.success('上传成功'+data.Location)
  14687. }
  14688. });
  14689. }
  14690. }
  14691. },
  14692. beforeUpload2(event, type) {
  14693. var file = event.target.files[0];
  14694. var credentials = {
  14695. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14696. secretAccessKey: "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",
  14697. }; //秘钥形式的登录上传
  14698. window.AWS.config.update(credentials);
  14699. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14700. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14701. var _this = this;
  14702. _this.progress = 0;
  14703. _this.proVisible = true;
  14704. if (file) {
  14705. var params = {
  14706. Key:
  14707. file.name.split(".")[0] +
  14708. new Date().getTime() +
  14709. "." +
  14710. file.name.split(".")[file.name.split(".").length - 1],
  14711. ContentType: file.type,
  14712. Body: file,
  14713. "Access-Control-Allow-Credentials": "*",
  14714. ACL: "public-read",
  14715. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14716. var options = {
  14717. partSize: 2048 * 1024 * 1024,
  14718. queueSize: 2,
  14719. leavePartsOnError: true,
  14720. };
  14721. bucket
  14722. .upload(params, options)
  14723. .on("httpUploadProgress", function (evt) {
  14724. //这里可以写进度条
  14725. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14726. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14727. })
  14728. .send(function (err, data) {
  14729. _this.progress = 100;
  14730. setTimeout(() => {
  14731. _this.proVisible = false;
  14732. }, 1000);
  14733. if (err) {
  14734. var a = _this.$refs.upload1.uploadFiles;
  14735. a.splice(a.length - 1, a.length);
  14736. _this.$message.error("上传失败");
  14737. } else {
  14738. if (type == 2) {
  14739. _this.studyJuri[0].upVedio.push({
  14740. name: file.name,
  14741. url: data.Location,
  14742. uid: file.uid,
  14743. });
  14744. _this.imgChange(null, null, type);
  14745. } else if (type == 3) {
  14746. _this.studyJuri[0].upFile.push({
  14747. name: file.name,
  14748. url: data.Location,
  14749. uid: file.uid,
  14750. });
  14751. _this.imgChange(null, null, type);
  14752. }
  14753. console.log(data.Location);
  14754. }
  14755. });
  14756. }
  14757. },
  14758. allScrell() {
  14759. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  14760. },
  14761. nextToolindex(type) {
  14762. if (type == "last") {
  14763. if (this.toolIndex == 0) {
  14764. this.$message.error("已经是第一个步骤");
  14765. return;
  14766. }
  14767. this.toolIndex = this.toolIndex - 1;
  14768. this.tool =
  14769. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14770. this.taskCount
  14771. ].toolChoose[this.toolIndex];
  14772. } else if (type == "next") {
  14773. if (
  14774. this.toolIndex ==
  14775. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14776. this.taskCount
  14777. ].toolChoose.length -
  14778. 1
  14779. ) {
  14780. this.$message.error("已经是最后一个步骤");
  14781. return;
  14782. }
  14783. this.toolIndex = this.toolIndex + 1;
  14784. this.tool =
  14785. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14786. this.taskCount
  14787. ].toolChoose[this.toolIndex];
  14788. }
  14789. this.$forceUpdate();
  14790. },
  14791. checkBz(index) {
  14792. this.toolIndex = index;
  14793. this.tool =
  14794. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14795. this.taskCount
  14796. ].toolChoose[this.toolIndex];
  14797. this.isUpdateToolDetail = false;
  14798. this.$forceUpdate();
  14799. },
  14800. checkBz1(i, j, k, l){
  14801. this.courseType = i;
  14802. this.navId = l;
  14803. this.taskCount = j;
  14804. this.toolIndex = k;
  14805. this.tool =
  14806. this.chapInfoList[i].chapterInfo[0].taskJson[j].toolChoose[k];
  14807. this.isUpdateToolDetail = false;
  14808. this.selectPz();
  14809. this.getHomeWork();
  14810. this.getCourseDetail(2);
  14811. this.$forceUpdate();
  14812. },
  14813. nextOrpreSteps(t) {
  14814. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14815. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14816. return;
  14817. }
  14818. var b = this.chapInfoList.length - 1;
  14819. if (t == 0) {
  14820. if (this.courseType == 0) {
  14821. if (this.taskCount == 0) {
  14822. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  14823. if (this.IsLookOpen) {
  14824. if (
  14825. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  14826. ) {
  14827. if (
  14828. this.courseDetail.userid != this.userid &&
  14829. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14830. ) {
  14831. this.$message.error("任务未解锁");
  14832. } else {
  14833. this.$message.error("上一任务未解锁");
  14834. }
  14835. return;
  14836. }
  14837. }
  14838. this.navList[this.courseType].isOpen = false;
  14839. this.courseType = b;
  14840. this.taskCount =
  14841. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14842. .length - 1;
  14843. this.navList[this.courseType].isOpen = true;
  14844. } else {
  14845. this.taskCount--;
  14846. }
  14847. } else {
  14848. if (this.taskCount == 0) {
  14849. this.navList[this.courseType].isOpen = false;
  14850. this.courseType--;
  14851. this.taskCount =
  14852. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14853. .length - 1;
  14854. this.navList[this.courseType].isOpen = true;
  14855. } else {
  14856. this.taskCount--;
  14857. }
  14858. }
  14859. } else {
  14860. if (this.courseType == b) {
  14861. if (
  14862. this.taskCount ==
  14863. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14864. 1
  14865. ) {
  14866. this.navList[this.courseType].isOpen = false;
  14867. this.courseType = 0;
  14868. this.taskCount = 0;
  14869. this.navList[this.courseType].isOpen = true;
  14870. } else {
  14871. var bbb = parseInt(this.taskCount) + 1;
  14872. if (
  14873. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14874. .isLook &&
  14875. this.courseDetail.userid != this.userid &&
  14876. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14877. this.IsLookOpen
  14878. ) {
  14879. this.$message.error("任务未解锁");
  14880. return;
  14881. }
  14882. this.taskCount++;
  14883. if (this.IsLookOpen) {
  14884. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14885. this.taskCount
  14886. ].isLook = true;
  14887. this.addCourseState(3);
  14888. }
  14889. }
  14890. } else {
  14891. if (
  14892. this.taskCount ==
  14893. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14894. 1
  14895. ) {
  14896. var bbb = parseInt(this.courseType) + 1;
  14897. if (
  14898. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  14899. this.courseDetail.userid != this.userid &&
  14900. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14901. this.IsLookOpen
  14902. ) {
  14903. this.$message.error("任务未解锁");
  14904. return;
  14905. }
  14906. this.navList[this.courseType].isOpen = false;
  14907. this.courseType++;
  14908. this.taskCount = 0;
  14909. this.navList[this.courseType].isOpen = true;
  14910. } else {
  14911. var bbb = parseInt(this.taskCount) + 1;
  14912. if (
  14913. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14914. .isLook &&
  14915. this.courseDetail.userid != this.userid &&
  14916. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14917. this.IsLookOpen
  14918. ) {
  14919. this.$message.error("任务未解锁");
  14920. return;
  14921. }
  14922. this.taskCount++;
  14923. }
  14924. if (this.IsLookOpen) {
  14925. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14926. this.taskCount
  14927. ].isLook = true;
  14928. this.addCourseState(3);
  14929. }
  14930. }
  14931. }
  14932. document.scrollingElement.scrollTop = 0;
  14933. this.showType = 0;
  14934. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14935. this.toolIndex = null;
  14936. this.isNoHomeWork = false;
  14937. (this.studyJuri = [
  14938. {
  14939. content: "",
  14940. cover: [],
  14941. upVedio: [],
  14942. upFile: [],
  14943. },
  14944. ]),
  14945. (this.radio = []);
  14946. this.isClickNav = "";
  14947. this.selectPz();
  14948. this.getHomeWork();
  14949. this.getCourseDetail();
  14950. this.$forceUpdate();
  14951. },
  14952. openTask(s, n, i) {
  14953. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14954. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14955. return;
  14956. }
  14957. if (this.IsLookOpen) {
  14958. if (
  14959. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  14960. this.courseDetail.userid != this.userid &&
  14961. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14962. ) {
  14963. this.$message.error("任务未解锁");
  14964. return;
  14965. }
  14966. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  14967. if (
  14968. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  14969. .isLook
  14970. ) {
  14971. this.$message.error("上一任务未解锁");
  14972. return;
  14973. }
  14974. } else if (s > this.courseType) {
  14975. if (n > 0) {
  14976. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  14977. this.$message.error("上一任务未解锁");
  14978. return;
  14979. }
  14980. } else {
  14981. if (
  14982. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  14983. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  14984. ].isLook
  14985. ) {
  14986. this.$message.error("上一任务未解锁");
  14987. return;
  14988. }
  14989. }
  14990. }
  14991. }
  14992. if(this.navList[s].task[n].isOpen == true){
  14993. this.navList[s].task[n].isOpen =
  14994. !this.navList[s].task[n].isOpen;
  14995. return;
  14996. }
  14997. this.courseType = s;
  14998. this.navId = i;
  14999. this.taskCount = n;
  15000. this.navList[this.courseType].task[this.taskCount].isOpen =
  15001. !this.navList[this.courseType].task[this.taskCount].isOpen;
  15002. if (this.IsLookOpen) {
  15003. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15004. this.taskCount
  15005. ].isLook = true;
  15006. this.addCourseState(3);
  15007. }
  15008. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  15009. this.isCloseList[ci].isClose = 0;
  15010. }
  15011. this.showType = 0;
  15012. this.isNoHomeWork = false;
  15013. (this.studyJuri = [
  15014. {
  15015. content: "",
  15016. cover: [],
  15017. upVedio: [],
  15018. upFile: [],
  15019. },
  15020. ]),
  15021. (this.radio = []);
  15022. document.scrollingElement.scrollTop = 0;
  15023. this.toolIndex = null;
  15024. // setTimeout(() => {
  15025. // let a = document.getElementById(i);
  15026. // if (a.offsetTop - 110 == 0) {
  15027. // window.scrollTo(0, 0);
  15028. // } else {
  15029. // window.scrollTo(0, a.offsetTop);
  15030. // }
  15031. // }, 0);
  15032. this.selectPz();
  15033. this.getHomeWork();
  15034. this.getCourseDetail();
  15035. },
  15036. get(i) {
  15037. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  15038. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15039. return;
  15040. }
  15041. this.navList[i].isOpen = !this.navList[i].isOpen;
  15042. },
  15043. addQuestion() {
  15044. this.answerList.push({
  15045. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15046. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15047. });
  15048. let params = [
  15049. {
  15050. uid: this.userid,
  15051. cid: this.id,
  15052. stage: this.courseType,
  15053. task: this.taskCount,
  15054. tool: this.toolindex,
  15055. content: JSON.stringify(this.answerList),
  15056. type: 3,
  15057. },
  15058. ];
  15059. this.ajax
  15060. .post(this.$store.state.api + "addCourseWorks", params)
  15061. .then((res) => {
  15062. this.$message({
  15063. message: "提交成功",
  15064. type: "success",
  15065. });
  15066. this.answerList = [];
  15067. this.questionAnswer = "";
  15068. this.answerDialogVisible = false;
  15069. this.selectStudent();
  15070. this.selectSWorks();
  15071. this.selectSLook();
  15072. })
  15073. .catch((err) => {
  15074. this.$message.error("提交失败");
  15075. console.error(err);
  15076. });
  15077. },
  15078. addQuestionTeacher() {
  15079. this.answerList.push({
  15080. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15081. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15082. });
  15083. let params = [
  15084. {
  15085. uid: this.sStudent.userid,
  15086. cid: this.id,
  15087. stage: this.courseType,
  15088. task: this.taskCount,
  15089. tool: this.toolindex,
  15090. content: JSON.stringify(this.answerList),
  15091. type: 3,
  15092. ateacher: this.userid,
  15093. },
  15094. ];
  15095. this.ajax
  15096. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15097. .then((res) => {
  15098. this.$message({
  15099. message: "提交成功",
  15100. type: "success",
  15101. });
  15102. this.answerList = [];
  15103. this.questionAnswer = "";
  15104. this.answerDialogVisibleTeacher = false;
  15105. this.selectStudent();
  15106. this.selectSWorks();
  15107. this.selectSLook();
  15108. })
  15109. .catch((err) => {
  15110. this.$message.error("提交失败");
  15111. console.error(err);
  15112. });
  15113. },
  15114. refreshCourse() {
  15115. this.navList = [];
  15116. this.getCourseDetail(1);
  15117. },
  15118. setPz() {
  15119. if (this.ispzType == 4) {
  15120. this.ispzType = 0;
  15121. this.pzDialog = false;
  15122. return;
  15123. }
  15124. this.ispzType = 4;
  15125. this.pzDialog = true;
  15126. this.selectPz();
  15127. },
  15128. getCourseDetail(type, gindex) {
  15129. let loading;
  15130. if (type != 2 && type != 3) {
  15131. loading = this.$loading.service({
  15132. background: "rgba(255, 255, 255, 0.7)",
  15133. target: document.querySelector(".student_table"),
  15134. });
  15135. }
  15136. let params = {
  15137. courseId: this.id,
  15138. };
  15139. this.ajax
  15140. .get(this.$store.state.api + "selectCourseDetail3", params)
  15141. .then((res) => {
  15142. if (type != 2 && type != 3) {
  15143. loading.close();
  15144. if (
  15145. this.courseType >
  15146. JSON.parse(res.data[0][0].chapters).length - 1
  15147. ) {
  15148. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15149. }
  15150. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15151. .chapterInfo[0].taskJson;
  15152. var b = [
  15153. "AVI",
  15154. "NAVI",
  15155. "MPEG",
  15156. "ASF",
  15157. "MOV",
  15158. "WMV",
  15159. "3GP",
  15160. "RM",
  15161. "RMVB",
  15162. "FLV",
  15163. "F4V",
  15164. "H.264",
  15165. "H.265",
  15166. "REAL VIDEO",
  15167. "MKV",
  15168. "WebM",
  15169. "HDDVD",
  15170. "MP4",
  15171. "MPG",
  15172. "M4V",
  15173. "MGV",
  15174. "OGV",
  15175. "QTM",
  15176. "STR",
  15177. "AMC",
  15178. "DVX",
  15179. "EVO",
  15180. "DAT",
  15181. "OGG",
  15182. "OGM",
  15183. "MP3",
  15184. ];
  15185. let _chapterData = [];
  15186. for (var i = 0; i < a.length; i++) {
  15187. var c = a[i].chapterData;
  15188. this.vedio[i] = [];
  15189. this.textList[i] = [];
  15190. this.lineList[i] = [];
  15191. this.chapToolList[i] = [];
  15192. this.file[i] = [];
  15193. this.fileC[i] = [];
  15194. _chapterData[i] = c.filter((el) => {
  15195. return el.type != 12;
  15196. });
  15197. this.fileC[i] = c.filter((el) => {
  15198. return el.type == 12;
  15199. });
  15200. for (var j = 0; j < c.length; j++) {
  15201. if (c[j].type == 7) {
  15202. this.chapToolList[i].push(c[j]);
  15203. } else if (c[j].type == 8 || c[j].type == 14) {
  15204. this.lineList[i].push(c[j]);
  15205. } else if (c[j].type == 6) {
  15206. this.textList[i].push(c[j]);
  15207. } else {
  15208. if (
  15209. b.indexOf(
  15210. c[j].url
  15211. .split(".")
  15212. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15213. ) != -1
  15214. ) {
  15215. this.vedio[i].push(c[j]);
  15216. } else {
  15217. this.file[i].push(c[j]);
  15218. }
  15219. }
  15220. }
  15221. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15222. d.sources[0].src =
  15223. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15224. this.playerO[i] = d;
  15225. }
  15226. this.courseDetail = res.data[0][0];
  15227. this.tcid = this.arrayToArray(
  15228. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15229. this.tcid2 ? this.tcid2.split(",") : []
  15230. ).join(",");
  15231. console.log(this.tcid);
  15232. this.evalua = res.data[0][0].evaId;
  15233. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15234. this.courseType
  15235. ];
  15236. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15237. if (this.tcid && res.data[1].length) {
  15238. let _inviteA = [];
  15239. for (var ik = 0; ik < res.data[1].length; ik++) {
  15240. _inviteA.push({
  15241. cid: res.data[1][ik].classid,
  15242. ic: res.data[1][ik].code,
  15243. });
  15244. }
  15245. for (var ik = 0; ik < _inviteA.length; ik++) {
  15246. if (
  15247. this.arrayToArray(
  15248. _inviteA[ik].cid.split(","),
  15249. this.tcid.split(",")
  15250. ).length
  15251. ) {
  15252. this.inviteCode = _inviteA[ik].ic;
  15253. break;
  15254. }
  15255. }
  15256. }
  15257. for (var l = 0; l < this.chapInfoList.length; l++) {
  15258. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15259. for (var m = 0; m < w.length; m++) {
  15260. w[m].id = l + "-" + m;
  15261. }
  15262. }
  15263. if (
  15264. _chapterData[this.taskCount].length &&
  15265. _chapterData[this.taskCount][0].type == 2
  15266. ) {
  15267. this.showType = 0;
  15268. } else {
  15269. if (_chapterData[this.taskCount].length > 0) {
  15270. let _url = _chapterData[this.taskCount][0].url;
  15271. if (
  15272. _chapterData[this.taskCount][0].type == 8 ||
  15273. _chapterData[this.taskCount][0].type == 14
  15274. ) {
  15275. this.showType = 2;
  15276. if (
  15277. _url.indexOf("https://") == -1 &&
  15278. _url.indexOf("http://") == -1
  15279. ) {
  15280. _url = "https://" + _url;
  15281. }
  15282. this.pptImgUrl1 = _url;
  15283. } else if (_chapterData[this.taskCount][0].type == 3) {
  15284. if (
  15285. _url
  15286. .split(".")
  15287. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15288. ) {
  15289. this.showType = 3;
  15290. this.pptImgUrl1 = _url;
  15291. } else if (
  15292. this.isAssetTypeAnImage(
  15293. _url
  15294. .split(".")
  15295. [_url.split(".").length - 1].toLocaleLowerCase()
  15296. )
  15297. ) {
  15298. this.showType = 4;
  15299. this.pptImgUrl1 = _url;
  15300. } else {
  15301. this.showType = 2;
  15302. this.pptImgUrl1 =
  15303. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15304. _url;
  15305. }
  15306. } else if (_chapterData[this.taskCount][0].type == 13) {
  15307. this.showType = 4;
  15308. this.pptImgUrl1 = _url;
  15309. } else if (_chapterData[this.taskCount][0].type == 6) {
  15310. this.showType = 1;
  15311. this.text = this.textList[this.taskCount][0];
  15312. }
  15313. }
  15314. }
  15315. this.isClickNav = 0;
  15316. if (
  15317. !_chapterData[this.taskCount].length ||
  15318. _chapterData[this.taskCount][0].type == 12
  15319. ) {
  15320. this.isClickNav = "";
  15321. this.showType = "";
  15322. }
  15323. this.vChapterData = _chapterData;
  15324. if (
  15325. this.toolIndex == null &&
  15326. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15327. this.taskCount
  15328. ].toolChoose.length
  15329. ) {
  15330. this.toolIndex = 0;
  15331. this.tool =
  15332. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15333. this.taskCount
  15334. ].toolChoose[this.toolIndex];
  15335. }
  15336. } else if (type != 3) {
  15337. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15338. .chapterInfo[0].taskJson;
  15339. var b = [
  15340. "AVI",
  15341. "NAVI",
  15342. "MPEG",
  15343. "ASF",
  15344. "MOV",
  15345. "WMV",
  15346. "3GP",
  15347. "RM",
  15348. "RMVB",
  15349. "FLV",
  15350. "F4V",
  15351. "H.264",
  15352. "H.265",
  15353. "REAL VIDEO",
  15354. "MKV",
  15355. "WebM",
  15356. "HDDVD",
  15357. "MP4",
  15358. "MPG",
  15359. "M4V",
  15360. "MGV",
  15361. "OGV",
  15362. "QTM",
  15363. "STR",
  15364. "AMC",
  15365. "DVX",
  15366. "EVO",
  15367. "DAT",
  15368. "OGG",
  15369. "OGM",
  15370. "MP3",
  15371. ];
  15372. let _chapterData = [];
  15373. for (var i = 0; i < a.length; i++) {
  15374. var c = a[i].chapterData;
  15375. this.vedio[i] = [];
  15376. this.textList[i] = [];
  15377. this.lineList[i] = [];
  15378. this.chapToolList[i] = [];
  15379. this.file[i] = [];
  15380. this.fileC[i] = [];
  15381. _chapterData[i] = c.filter((el) => {
  15382. return el.type != 12;
  15383. });
  15384. this.fileC[i] = c.filter((el) => {
  15385. return el.type == 12;
  15386. });
  15387. for (var j = 0; j < c.length; j++) {
  15388. if (c[j].type == 7) {
  15389. this.chapToolList[i].push(c[j]);
  15390. } else if (c[j].type == 8 || c[j].type == 14) {
  15391. this.lineList[i].push(c[j]);
  15392. } else if (c[j].type == 6) {
  15393. this.textList[i].push(c[j]);
  15394. } else {
  15395. if (
  15396. b.indexOf(
  15397. c[j].url
  15398. .split(".")
  15399. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15400. ) != -1
  15401. ) {
  15402. this.vedio[i].push(c[j]);
  15403. } else {
  15404. this.file[i].push(c[j]);
  15405. }
  15406. }
  15407. }
  15408. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15409. d.sources[0].src =
  15410. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15411. this.playerO[i] = d;
  15412. }
  15413. if (
  15414. _chapterData[this.taskCount].length &&
  15415. _chapterData[this.taskCount][0].type == 2
  15416. ) {
  15417. this.showType = 0;
  15418. } else {
  15419. if (_chapterData[this.taskCount].length > 0) {
  15420. let _url = _chapterData[this.taskCount][0].url;
  15421. if (
  15422. _chapterData[this.taskCount][0].type == 8 ||
  15423. _chapterData[this.taskCount][0].type == 14
  15424. ) {
  15425. this.showType = 2;
  15426. if (
  15427. _url.indexOf("https://") == -1 &&
  15428. _url.indexOf("http://") == -1
  15429. ) {
  15430. _url = "https://" + _url;
  15431. }
  15432. this.pptImgUrl1 = _url;
  15433. } else if (_chapterData[this.taskCount][0].type == 3) {
  15434. if (
  15435. _url
  15436. .split(".")
  15437. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15438. ) {
  15439. this.showType = 3;
  15440. this.pptImgUrl1 = _url;
  15441. } else if (
  15442. this.isAssetTypeAnImage(
  15443. _url
  15444. .split(".")
  15445. [_url.split(".").length - 1].toLocaleLowerCase()
  15446. )
  15447. ) {
  15448. this.showType = 4;
  15449. this.pptImgUrl1 = _url;
  15450. } else {
  15451. this.showType = 2;
  15452. this.pptImgUrl1 =
  15453. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15454. _url;
  15455. }
  15456. } else if (_chapterData[this.taskCount][0].type == 13) {
  15457. this.showType = 4;
  15458. this.pptImgUrl1 = _url;
  15459. } else if (_chapterData[this.taskCount][0].type == 6) {
  15460. this.showType = 1;
  15461. this.text = this.textList[this.taskCount][0];
  15462. }
  15463. }
  15464. }
  15465. this.isClickNav = 0;
  15466. if (
  15467. !_chapterData[this.taskCount].length ||
  15468. _chapterData[this.taskCount][0].type == 12
  15469. ) {
  15470. this.isClickNav = "";
  15471. this.showType = "";
  15472. }
  15473. this.vChapterData = _chapterData;
  15474. this.$forceUpdate();
  15475. }
  15476. this.isUpdateToolDetail = false;
  15477. this.$nextTick(() => {
  15478. setTimeout(() => {
  15479. this.checkEva();
  15480. }, 1000);
  15481. });
  15482. let _this = this;
  15483. if (_this.timer) {
  15484. clearInterval(_this.timer);
  15485. _this.timer = null;
  15486. }
  15487. _this.selectSWorks(gindex);
  15488. _this.selectStudent();
  15489. _this.selectSLook();
  15490. _this.getPick();
  15491. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15492. _this.setCTask();
  15493. }
  15494. if (_this.dialogVisibleGroup) {
  15495. _this.groupJson =
  15496. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15497. _this.taskCount
  15498. ].toolChoose[_this.toolindex].groupJson;
  15499. }
  15500. _this.timer = setInterval(function () {
  15501. if (_this.tcid) {
  15502. _this.getCourseGroup(gindex);
  15503. } else {
  15504. _this.selectSWorks(gindex);
  15505. }
  15506. _this.selectStudent();
  15507. _this.selectSLook();
  15508. _this.getPick();
  15509. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15510. _this.setCTask();
  15511. }
  15512. if (_this.dialogVisibleGroup) {
  15513. _this.groupJson =
  15514. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15515. _this.taskCount
  15516. ].toolChoose[_this.toolindex].groupJson;
  15517. }
  15518. if (_this.tType == 4 || _this.ispzType == 4) {
  15519. _this.selectPz();
  15520. }
  15521. }, 5000);
  15522. })
  15523. .catch((err) => {
  15524. loading.close();
  15525. console.error(err);
  15526. });
  15527. },
  15528. getCourseGroup(gindex) {
  15529. let params = {
  15530. cid: this.id,
  15531. classid: this.tcid ? this.tcid : "1",
  15532. };
  15533. this.ajax
  15534. .get(this.$store.state.api + "getCourseGroup", params)
  15535. .then((res) => {
  15536. if (res.data && res.data[0].length) {
  15537. if (!this.isGroup) {
  15538. let courseGroup = JSON.parse(res.data[0][0].group);
  15539. courseGroup.group = courseGroup.group.filter((el) => {
  15540. el.works = [];
  15541. return el;
  15542. });
  15543. this.courseGroup = courseGroup;
  15544. let groupPerson = res.data[1];
  15545. let group = JSON.parse(res.data[0][0].group).group;
  15546. let courseGroupStudent = {};
  15547. let courseGroupStudentUid = {};
  15548. for (var i = 0; i < group.length; i++) {
  15549. courseGroupStudent[group[i].id] = [];
  15550. courseGroupStudentUid[group[i].id] = [];
  15551. for (var j = 0; j < groupPerson.length; j++) {
  15552. if (groupPerson[j].groupCid == group[i].id) {
  15553. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15554. courseGroupStudentUid[group[i].id].push(
  15555. groupPerson[j].userid
  15556. );
  15557. }
  15558. }
  15559. }
  15560. this.courseGroupStudent = courseGroupStudent;
  15561. this.courseGroupStudentUid = courseGroupStudentUid;
  15562. }
  15563. this.isGroup = true;
  15564. this.selectSWorks(gindex);
  15565. } else {
  15566. this.selectSWorks(gindex);
  15567. this.isGroup = false;
  15568. }
  15569. })
  15570. .catch((err) => {
  15571. // this.$message.error("网络不佳");
  15572. console.error(err);
  15573. });
  15574. },
  15575. setOperationTime() {
  15576. let _this = this;
  15577. if (_this.opertimer) {
  15578. clearInterval(_this.opertimer);
  15579. _this.opertimer = null;
  15580. }
  15581. _this.opertimer = setInterval(() => {
  15582. _this.setoTime("600");
  15583. }, 600000);
  15584. },
  15585. setoTime(time) {
  15586. let params = [
  15587. {
  15588. uid: this.userid,
  15589. cid: this.id,
  15590. type: "2",
  15591. time: time,
  15592. },
  15593. ];
  15594. this.ajax
  15595. .post(this.$store.state.api + "addOperationTimeT2", params)
  15596. .then((res) => {})
  15597. .catch((err) => {
  15598. console.error(err);
  15599. });
  15600. },
  15601. addPz(type, content) {
  15602. if (type == "1" && this.pzConText == "") {
  15603. this.$message.error("批注不能为空!");
  15604. return;
  15605. }
  15606. let params = [
  15607. {
  15608. cid: this.id,
  15609. uid: this.userid,
  15610. s: this.courseType,
  15611. t: this.taskCount,
  15612. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15613. type: type,
  15614. },
  15615. ];
  15616. this.ajax
  15617. .post(this.$store.state.api + "addPz2", params)
  15618. .then((res) => {
  15619. this.$message({
  15620. message: "添加成功",
  15621. type: "success",
  15622. });
  15623. this.pzConText = "";
  15624. this.addPzDialog = false;
  15625. this.selectPz();
  15626. })
  15627. .catch((err) => {
  15628. this.$message.error("添加失败");
  15629. console.error(err);
  15630. });
  15631. },
  15632. setReplyIndex(id,i){
  15633. this.replyIndex = i;
  15634. this.replyPid = id;
  15635. this.replyDialogVisible = true;
  15636. },
  15637. addHf() {
  15638. if (this.reply == "") {
  15639. this.$message.error("回复不能为空!");
  15640. return;
  15641. }
  15642. let params = [
  15643. {
  15644. cid: this.id,
  15645. uid: this.userid,
  15646. s: this.courseType,
  15647. t: this.taskCount,
  15648. type: "1",
  15649. ct: 2,
  15650. pid: this.replyPid,
  15651. c: this.reply.replaceAll(/%/g, "%25"),
  15652. },
  15653. ];
  15654. this.ajax
  15655. .post(this.$store.state.api + "addHf", params)
  15656. .then((res) => {
  15657. this.reply = "";
  15658. this.$message({
  15659. message: "回复成功",
  15660. type: "success",
  15661. });
  15662. this.replyDialogVisible = false;
  15663. this.selectPz();
  15664. })
  15665. .catch((err) => {
  15666. this.$message.error("回复失败");
  15667. console.error(err);
  15668. });
  15669. },
  15670. deletePz(id) {
  15671. this.$confirm("确定删除此批注吗?", "提示", {
  15672. confirmButtonText: "确定",
  15673. cancelButtonText: "取消",
  15674. type: "warning",
  15675. })
  15676. .then(() => {
  15677. let params = [
  15678. {
  15679. id: id,
  15680. },
  15681. ];
  15682. this.ajax
  15683. .post(this.$store.state.api + "deletePz", params)
  15684. .then((res) => {
  15685. this.$message({
  15686. message: "删除成功",
  15687. type: "success",
  15688. });
  15689. this.selectPz();
  15690. })
  15691. .catch((err) => {
  15692. this.$message.error("网络异常");
  15693. console.error(err);
  15694. });
  15695. })
  15696. .catch(() => {});
  15697. },
  15698. deleteReply(id){
  15699. this.$confirm("确定删除此回复吗?", "提示", {
  15700. confirmButtonText: "确定",
  15701. cancelButtonText: "取消",
  15702. type: "warning",
  15703. })
  15704. .then(() => {
  15705. let params = [
  15706. {
  15707. id: id,
  15708. },
  15709. ];
  15710. this.ajax
  15711. .post(this.$store.state.api + "deleteReply", params)
  15712. .then((res) => {
  15713. this.$message({
  15714. message: "删除成功",
  15715. type: "success",
  15716. });
  15717. this.selectPz();
  15718. })
  15719. .catch((err) => {
  15720. this.$message.error("网络异常");
  15721. console.error(err);
  15722. });
  15723. })
  15724. .catch(() => {});
  15725. },
  15726. selectPz() {
  15727. let params = {
  15728. cid: this.id,
  15729. s: this.courseType,
  15730. t: this.taskCount,
  15731. type: this.pzStype,
  15732. uid: this.userid,
  15733. };
  15734. this.ajax
  15735. .get(this.$store.state.api + "selectPzListType", params)
  15736. .then((res) => {
  15737. this.pzList = res.data[0];
  15738. var a = res.data[1];
  15739. for (var i = 0; i < a.length; i++) {
  15740. for (var j = 0; j < this.pzList.length; j++) {
  15741. if (!this.pzList[j].hfList) {
  15742. this.pzList[j].hfList = [];
  15743. }
  15744. if (a[i].pid == this.pzList[j].id) {
  15745. this.pzList[j].hfList.push(a[i]);
  15746. }
  15747. }
  15748. }
  15749. })
  15750. .catch((err) => {
  15751. console.error(err);
  15752. });
  15753. },
  15754. updateSLook() {
  15755. let params = {
  15756. sopen: this.sIsOpen == false ? 1 : 2,
  15757. cid: this.id,
  15758. };
  15759. this.ajax
  15760. .get(this.$store.state.api + "updateCourseSLook", params)
  15761. .then((res) => {
  15762. if (this.sIsOpen == true) {
  15763. this.$message({
  15764. message: "权限设置成功",
  15765. type: "success",
  15766. });
  15767. } else {
  15768. this.$message({
  15769. message: "权限关闭成功",
  15770. type: "success",
  15771. });
  15772. }
  15773. })
  15774. .catch((err) => {
  15775. console.error(err);
  15776. });
  15777. },
  15778. updateFollow() {
  15779. let params = [
  15780. {
  15781. sopen: this.IsFollow == false ? 1 : 2,
  15782. cid: this.id,
  15783. },
  15784. ];
  15785. this.ajax
  15786. .post(this.$store.state.api + "updateCourseFollow", params)
  15787. .then((res) => {
  15788. if (this.IsFollow == true) {
  15789. this.$message({
  15790. message: "开启成功",
  15791. type: "success",
  15792. });
  15793. } else {
  15794. this.$message({
  15795. message: "关闭成功",
  15796. type: "success",
  15797. });
  15798. }
  15799. this.setCTask();
  15800. })
  15801. .catch((err) => {
  15802. console.error(err);
  15803. });
  15804. },
  15805. setCTask() {
  15806. let params = [
  15807. {
  15808. sopen: this.courseType + "-" + this.taskCount,
  15809. cid: this.id,
  15810. },
  15811. ];
  15812. this.ajax
  15813. .post(this.$store.state.api + "updateCourseFollowC", params)
  15814. .then((res) => {})
  15815. .catch((err) => {
  15816. console.error(err);
  15817. });
  15818. },
  15819. updateLookOpen() {
  15820. let params = [
  15821. {
  15822. sopen: this.IsLookOpen == false ? 1 : 2,
  15823. cid: this.id,
  15824. },
  15825. ];
  15826. this.ajax
  15827. .post(this.$store.state.api + "updateCourseLookOpen", params)
  15828. .then((res) => {
  15829. if (this.IsLookOpen == true) {
  15830. // if (this.courseType != 0 && this.taskCount != 0) {
  15831. // this.openTask(0, 0, "0-0");
  15832. // }
  15833. this.$message({
  15834. message: "权限设置成功",
  15835. type: "success",
  15836. });
  15837. } else {
  15838. this.$message({
  15839. message: "权限关闭成功",
  15840. type: "success",
  15841. });
  15842. }
  15843. this.getCourseState(2);
  15844. })
  15845. .catch((err) => {
  15846. console.error(err);
  15847. });
  15848. },
  15849. selectSLook() {
  15850. let params = {
  15851. cid: this.id,
  15852. };
  15853. this.ajax
  15854. .get(this.$store.state.api + "selectCourseSLook", params)
  15855. .then((res) => {
  15856. // this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  15857. this.sIsOpen = true;
  15858. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  15859. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  15860. if (!this.IsLookOpen) {
  15861. this.setNavList();
  15862. } else {
  15863. this.getCourseState(1);
  15864. }
  15865. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  15866. let _followC = res.data[0][0].followC.split("-");
  15867. if (
  15868. this.courseType != _followC[0] ||
  15869. this.taskCount != _followC[1]
  15870. ) {
  15871. this.navList[this.courseType].isOpen = false;
  15872. this.courseType = _followC[0];
  15873. this.navList[this.courseType].isOpen = true;
  15874. this.taskCount = parseInt(_followC[1]);
  15875. this.navId = res.data[0][0].followC;
  15876. this.getCourseDetail();
  15877. }
  15878. }
  15879. })
  15880. .catch((err) => {
  15881. console.error(err);
  15882. });
  15883. },
  15884. setNavList() {
  15885. if (this.navList.length == 0) {
  15886. this.navList = [];
  15887. var copyList = [];
  15888. for (var l = 0; l < this.chapInfoList.length; l++) {
  15889. var q = this.chapInfoList[l].dyName;
  15890. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15891. var e;
  15892. copyList.push({
  15893. dyName: q,
  15894. isOpen: l === 0 ? true : false,
  15895. task: [],
  15896. });
  15897. for (var r = 0; r < w.length; r++) {
  15898. e = w[r].task;
  15899. if (this.chapInfoList[l].easy == 1) {
  15900. copyList[l].task.push({
  15901. taskName: q,
  15902. id: l + "-" + r,
  15903. isLook: r === 0 ? true : false,
  15904. isOpen: r === 0 ? true : false,
  15905. tool: [],
  15906. });
  15907. } else {
  15908. copyList[l].task.push({
  15909. taskName: e,
  15910. id: l + "-" + r,
  15911. isLook: r === 0 ? true : false,
  15912. isOpen: r === 0 ? true : false,
  15913. tool: [],
  15914. });
  15915. }
  15916. var t = w[r].toolChoose;
  15917. for (var k = 0; k < t.length; k++) {
  15918. var tool = t[k].tool[0];
  15919. copyList[l].task[r].tool.push({
  15920. tool: tool,
  15921. isTool: false,
  15922. });
  15923. }
  15924. // this.navId = this.navId ? this.navId : l + "-" + r;
  15925. // this.navId = l + "-" + r;
  15926. }
  15927. }
  15928. this.navList = copyList;
  15929. this.navList[0].isOpen = false;
  15930. this.navList[this.courseType].isOpen = true;
  15931. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15932. } else {
  15933. this.setNavList2();
  15934. }
  15935. },
  15936. setNavList2() {
  15937. for (var l = 0; l < this.chapInfoList.length; l++) {
  15938. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15939. for (var r = 0; r < w.length; r++) {
  15940. this.navList[l].task[r].isLook = w[r].isLook;
  15941. }
  15942. }
  15943. if (
  15944. this.IsLookOpen &&
  15945. !this.navList[this.courseType].task[this.taskCount].isLook
  15946. ) {
  15947. this.openTask(0, 0, "0-0");
  15948. }
  15949. this.$forceUpdate();
  15950. },
  15951. getCourseState(type) {
  15952. let params = {
  15953. cid: this.id,
  15954. };
  15955. this.ajax
  15956. .get(this.$store.state.api + "getCourseState", params)
  15957. .then((res) => {
  15958. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  15959. this.chapInfoList = JSON.parse(res.data[0][0].state);
  15960. this.setNavList();
  15961. this.$forceUpdate();
  15962. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  15963. this.addCourseState(2);
  15964. } else {
  15965. this.addCourseState(1);
  15966. }
  15967. })
  15968. .catch((err) => {
  15969. console.error(err);
  15970. });
  15971. },
  15972. addCourseState(type) {
  15973. let _state = this.chapInfoList;
  15974. // this.courseType this.taskCount
  15975. if (type == 1 || type == 2) {
  15976. for (var i = 0; i < _state.length; i++) {
  15977. let el = _state[i].chapterInfo[0].taskJson;
  15978. for (var j = 0; j < el.length; j++) {
  15979. // if (i == 0 && j == 0) {
  15980. // el[j].isLook = true;
  15981. // } else {
  15982. // el[j].isLook = false;
  15983. // }
  15984. if (
  15985. this.courseType > i ||
  15986. (this.courseType == i && this.taskCount + 1 > j)
  15987. ) {
  15988. el[j].isLook = true;
  15989. } else {
  15990. el[j].isLook = false;
  15991. }
  15992. }
  15993. }
  15994. }
  15995. let params = [
  15996. {
  15997. cid: this.id,
  15998. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  15999. },
  16000. ];
  16001. this.ajax
  16002. .post(
  16003. this.$store.state.api +
  16004. (type == 1 ? "addCourseState" : "updateCourseSate"),
  16005. params
  16006. )
  16007. .then((res) => {
  16008. if (this.IsLookOpen) {
  16009. this.setNavList();
  16010. }
  16011. if (type == 3 && type == 2) {
  16012. this.getCourseState(1);
  16013. }
  16014. })
  16015. .catch((err) => {
  16016. console.error(err);
  16017. });
  16018. },
  16019. getHomeWork() {
  16020. let params = {
  16021. cid: this.id,
  16022. stage: this.courseType,
  16023. task: this.taskCount,
  16024. uid: this.userid,
  16025. };
  16026. this.ajax
  16027. .get(this.$store.state.api + "selectWork", params)
  16028. .then((res) => {
  16029. if (res.data[0].length > 0) {
  16030. this.studyJuri = JSON.parse(res.data[0][0].content);
  16031. this.isNoHomeWork = true;
  16032. }
  16033. })
  16034. .catch((err) => {
  16035. console.error(err);
  16036. });
  16037. },
  16038. isAssetTypeAnImage(ext) {
  16039. return (
  16040. [
  16041. "png",
  16042. "jpg",
  16043. "jpeg",
  16044. "bmp",
  16045. "gif",
  16046. "webp",
  16047. "psd",
  16048. "svg",
  16049. "tiff",
  16050. ].indexOf(ext) !== -1
  16051. );
  16052. },
  16053. switchVideo(media) {
  16054. this.playerO = {};
  16055. this.playerOptions.poster = "";
  16056. this.playerOptions.sources[0].src = media;
  16057. this.playerO = this.playerOptions;
  16058. },
  16059. onPlayerPlay() {},
  16060. lookVedio(u, i) {
  16061. this.isClickNav = "";
  16062. // this.playerOptions.sources[0].src = u;
  16063. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16064. d.sources[0].src = u;
  16065. this.playerO[this.taskCount] = d;
  16066. this.showType = 0;
  16067. // this.isClickNav = "video" + i;
  16068. this.isClickNav = i;
  16069. this.$forceUpdate();
  16070. },
  16071. lookText(i, t) {
  16072. this.isClickNav = "";
  16073. // this.text = this.textList[i][t];
  16074. this.text = this.vChapterData[i][t];
  16075. // this.dialogVisible1 = true;
  16076. this.showType = 1;
  16077. // this.isClickNav = "text" + t;
  16078. this.isClickNav = t;
  16079. },
  16080. lookTools(i, t) {
  16081. this.chapTools = this.chapToolList[i][t];
  16082. this.dialogVisible2 = true;
  16083. },
  16084. openFile(f) {
  16085. this.pptImgUrl = "";
  16086. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  16087. if (
  16088. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  16089. -1
  16090. ) {
  16091. this.pptImgUrl =
  16092. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  16093. this.showPDF = false;
  16094. this.dialogVisible3 = true;
  16095. } else if (
  16096. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16097. ) {
  16098. this.pptImgUrl = f;
  16099. this.showPDF = true;
  16100. this.dialogVisible3 = true;
  16101. }
  16102. },
  16103. openTable(f) {
  16104. this.tableJson = JSON.parse(f.works);
  16105. this.$forceUpdate();
  16106. this.dialogVisibleTable2 = true;
  16107. },
  16108. openWord(f) {
  16109. this.tableJson = JSON.parse(f.works);
  16110. this.$forceUpdate();
  16111. this.dialogVisibleTable3 = true;
  16112. },
  16113. doUrl(url, i) {
  16114. this.isClickNav = "";
  16115. this.pptImgUrl1 = "";
  16116. this.showType = 2;
  16117. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16118. url = "https://" + url;
  16119. }
  16120. this.pptImgUrl1 = url;
  16121. // this.isClickNav = "line" + i;
  16122. this.isClickNav = i;
  16123. },
  16124. checkPhoto(f, i) {
  16125. this.showType = 4;
  16126. this.pptImgUrl1 = f.url;
  16127. this.isClickNav = i;
  16128. this.$forceUpdate();
  16129. },
  16130. downFile(f, i) {
  16131. this.isClickNav = "";
  16132. this.pptImgUrl1 = "";
  16133. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  16134. if (
  16135. a.indexOf(
  16136. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  16137. ) != -1
  16138. ) {
  16139. this.pptImgUrl1 =
  16140. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  16141. // this.dialogVisible3 = true;
  16142. this.showType = 2;
  16143. } else if (
  16144. this.isAssetTypeAnImage(
  16145. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16146. )
  16147. ) {
  16148. this.showType = 4;
  16149. this.pptImgUrl1 = f.url;
  16150. } else if (
  16151. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16152. "PDF"
  16153. ) {
  16154. this.pptImgUrl1 = f.url;
  16155. // this.dialogVisible3 = true;
  16156. this.showType = 3;
  16157. } else {
  16158. window.open(this.file[i].url);
  16159. }
  16160. // this.isClickNav = "word" + i;
  16161. this.isClickNav = i;
  16162. },
  16163. downFileList(i) {
  16164. window.open(this.noImgList[i].url);
  16165. },
  16166. openAddWork() {
  16167. this.dialogVisible = true;
  16168. },
  16169. addBzWorks() {
  16170. let params = [
  16171. {
  16172. uid: this.userid,
  16173. cid: this.id,
  16174. stage: this.courseType,
  16175. task: this.taskCount,
  16176. tool: this.toolindex,
  16177. content: JSON.stringify(this.eScore),
  16178. type: 6,
  16179. },
  16180. ];
  16181. this.ajax
  16182. .post(this.$store.state.api + "addCourseWorks", params)
  16183. .then((res) => {
  16184. this.$message({
  16185. message: "提交成功",
  16186. type: "success",
  16187. });
  16188. this.eScore = { eBzText: "", eStar: [] };
  16189. this.studentEvalDialogVisible = false;
  16190. this.selectSWorks();
  16191. })
  16192. .catch((err) => {
  16193. this.$message.error("提交失败");
  16194. console.error(err);
  16195. });
  16196. },
  16197. addBzWorksTeacher() {
  16198. let params = [
  16199. {
  16200. uid: this.sStudent.userid,
  16201. cid: this.id,
  16202. stage: this.courseType,
  16203. task: this.taskCount,
  16204. tool: this.toolindex,
  16205. content: JSON.stringify(this.eScore),
  16206. type: 6,
  16207. },
  16208. ];
  16209. this.ajax
  16210. .post(this.$store.state.api + "addCourseWorks", params)
  16211. .then((res) => {
  16212. this.$message({
  16213. message: "提交成功",
  16214. type: "success",
  16215. });
  16216. this.eScore = { eBzText: "", eStar: [] };
  16217. this.studentEvalDialogVisibleTeacher = false;
  16218. this.selectSWorks();
  16219. })
  16220. .catch((err) => {
  16221. this.$message.error("提交失败");
  16222. console.error(err);
  16223. });
  16224. },
  16225. addStudentAsk() {
  16226. if (!this.radio.length) {
  16227. this.$message.error("请选择选项");
  16228. return;
  16229. }
  16230. for (var i = 0; i < this.askJson.askCount; i++) {
  16231. if (
  16232. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16233. (this.radio[i] !== 0 && !this.radio[i])
  16234. ) {
  16235. this.$message.error("请选择选项");
  16236. return;
  16237. }
  16238. }
  16239. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16240. let params = [
  16241. {
  16242. uid: this.userid,
  16243. cid: this.id,
  16244. stage: this.courseType,
  16245. task: this.taskCount,
  16246. tool: this.toolindex,
  16247. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16248. type: 2,
  16249. },
  16250. ];
  16251. this.ajax
  16252. .post(this.$store.state.api + "addCourseWorks", params)
  16253. .then((res) => {
  16254. this.$message({
  16255. message: "提交成功",
  16256. type: "success",
  16257. });
  16258. this.askList = [];
  16259. this.dialogVisible5 = false;
  16260. this.selectStudent();
  16261. this.selectSWorks();
  16262. this.selectSLook();
  16263. })
  16264. .catch((err) => {
  16265. this.$message.error("提交失败");
  16266. console.error(err);
  16267. });
  16268. },
  16269. addStudentAskTeacher() {
  16270. if (!this.radio.length) {
  16271. this.$message.error("请选择选项");
  16272. return;
  16273. }
  16274. for (var i = 0; i < this.askJson.askCount; i++) {
  16275. if (
  16276. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16277. (this.radio[i] !== 0 && !this.radio[i])
  16278. ) {
  16279. this.$message.error("请选择选项");
  16280. return;
  16281. }
  16282. }
  16283. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16284. let params = [
  16285. {
  16286. uid: this.sStudent.userid,
  16287. cid: this.id,
  16288. stage: this.courseType,
  16289. task: this.taskCount,
  16290. tool: this.toolindex,
  16291. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16292. type: 2,
  16293. },
  16294. ];
  16295. this.ajax
  16296. .post(this.$store.state.api + "addCourseWorks", params)
  16297. .then((res) => {
  16298. this.$message({
  16299. message: "提交成功",
  16300. type: "success",
  16301. });
  16302. this.askList = [];
  16303. this.dialogVisible5Teacher = false;
  16304. this.selectStudent();
  16305. this.selectSWorks();
  16306. this.selectSLook();
  16307. })
  16308. .catch((err) => {
  16309. this.$message.error("提交失败");
  16310. console.error(err);
  16311. });
  16312. },
  16313. addStudentTest() {
  16314. if (!this.radio.length) {
  16315. this.$message.error("请选择选项");
  16316. return;
  16317. }
  16318. for (var i = 0; i < this.testJson.testCount; i++) {
  16319. if (
  16320. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16321. (this.radio[i] !== 0 && !this.radio[i])
  16322. ) {
  16323. this.$message.error("请选择选项");
  16324. return;
  16325. }
  16326. }
  16327. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16328. let params = [
  16329. {
  16330. uid: this.userid,
  16331. cid: this.id,
  16332. stage: this.courseType,
  16333. task: this.taskCount,
  16334. tool: this.toolindex,
  16335. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16336. type: 8,
  16337. },
  16338. ];
  16339. this.ajax
  16340. .post(this.$store.state.api + "addCourseWorks", params)
  16341. .then((res) => {
  16342. this.$message({
  16343. message: "提交成功",
  16344. type: "success",
  16345. });
  16346. this.askList = [];
  16347. this.dialogVisibleChoice = false;
  16348. this.selectStudent();
  16349. this.selectSWorks();
  16350. this.selectSLook();
  16351. })
  16352. .catch((err) => {
  16353. this.$message.error("提交失败");
  16354. console.error(err);
  16355. });
  16356. },
  16357. addStudentTestTeacher() {
  16358. if (!this.radio.length) {
  16359. this.$message.error("请选择选项");
  16360. return;
  16361. }
  16362. for (var i = 0; i < this.testJson.testCount; i++) {
  16363. if (
  16364. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16365. (this.radio[i] !== 0 && !this.radio[i])
  16366. ) {
  16367. this.$message.error("请选择选项");
  16368. return;
  16369. }
  16370. }
  16371. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16372. let params = [
  16373. {
  16374. uid: this.sStudent.userid,
  16375. cid: this.id,
  16376. stage: this.courseType,
  16377. task: this.taskCount,
  16378. tool: this.toolindex,
  16379. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16380. type: 8,
  16381. },
  16382. ];
  16383. this.ajax
  16384. .post(this.$store.state.api + "addCourseWorks", params)
  16385. .then((res) => {
  16386. this.$message({
  16387. message: "提交成功",
  16388. type: "success",
  16389. });
  16390. this.askList = [];
  16391. this.dialogVisibleChoiceTeacher = false;
  16392. this.selectStudent();
  16393. this.selectSWorks();
  16394. this.selectSLook();
  16395. })
  16396. .catch((err) => {
  16397. this.$message.error("提交失败");
  16398. console.error(err);
  16399. });
  16400. },
  16401. addWork() {
  16402. if (this.studyJuri[0].content == "") {
  16403. this.$message.error("请将信息填写完整");
  16404. return;
  16405. } else if (this.studyJuri[0].cover.length == 0) {
  16406. this.$message.error("请将信息填写完整");
  16407. return;
  16408. } else if (this.studyJuri[0].upVedio.length == 0) {
  16409. this.$message.error("请将信息填写完整");
  16410. return;
  16411. }
  16412. if (this.isNoHomeWork) {
  16413. this.$confirm(
  16414. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  16415. "提示",
  16416. {
  16417. confirmButtonText: "确定",
  16418. cancelButtonText: "取消",
  16419. type: "warning",
  16420. }
  16421. )
  16422. .then(() => {
  16423. let params = [
  16424. {
  16425. uid: this.userid,
  16426. cid: this.id,
  16427. stage: this.courseType,
  16428. task: this.taskCount,
  16429. content: JSON.stringify(this.studyJuri),
  16430. },
  16431. ];
  16432. this.ajax
  16433. .post(this.$store.state.api + "addWorks", params)
  16434. .then((res) => {
  16435. this.$message({
  16436. message: "提交成功",
  16437. type: "success",
  16438. });
  16439. this.isNoHomeWork = true;
  16440. this.dialogVisible = false;
  16441. })
  16442. .catch((err) => {
  16443. this.$message.error("提交失败");
  16444. console.error(err);
  16445. });
  16446. })
  16447. .catch(() => {});
  16448. } else {
  16449. let params = [
  16450. {
  16451. uid: this.userid,
  16452. cid: this.id,
  16453. stage: this.courseType,
  16454. task: this.taskCount,
  16455. content: JSON.stringify(this.studyJuri),
  16456. },
  16457. ];
  16458. this.ajax
  16459. .post(this.$store.state.api + "addWorks", params)
  16460. .then((res) => {
  16461. this.$message({
  16462. message: "提交成功",
  16463. type: "success",
  16464. });
  16465. this.isNoHomeWork = true;
  16466. this.dialogVisible = false;
  16467. })
  16468. .catch((err) => {
  16469. this.$message.error("提交失败");
  16470. console.error(err);
  16471. });
  16472. }
  16473. },
  16474. selectCount() {
  16475. let params = {
  16476. cid: this.id,
  16477. chid: this.courseType,
  16478. uid: this.userid,
  16479. };
  16480. this.ajax
  16481. .get(this.$store.state.api + "selectToolsCount", params)
  16482. .then((res) => {
  16483. for (var i = 0; i < res.data[0].length; i++) {
  16484. if (res.data[0][i].tools == 1) {
  16485. this.wbCount = res.data[0][i].count;
  16486. } else if (res.data[0][i].tools == 2) {
  16487. this.wordCount = res.data[0][i].count;
  16488. } else if (res.data[0][i].tools == 3) {
  16489. this.mindCount = res.data[0][i].count;
  16490. } else if (res.data[0][i].tools == 4) {
  16491. this.askCount = res.data[0][i].count;
  16492. } else if (res.data[0][i].tools == 6) {
  16493. this.noteCount = res.data[0][i].count;
  16494. } else if (res.data[0][i].tools == 7) {
  16495. this.mindNetWorkCount = res.data[0][i].count;
  16496. } else if (res.data[0][i].tools == 8) {
  16497. this.libraryCount = res.data[0][i].count;
  16498. } else if (res.data[0][i].tools == 16) {
  16499. this.workCount = res.data[0][i].count;
  16500. } else if (res.data[0][i].tools == 10) {
  16501. this.timeCount = res.data[0][i].count;
  16502. } else if (res.data[0][i].tools == 15) {
  16503. this.answerCount = res.data[0][i].count;
  16504. } else if (res.data[0][i].tools == 18) {
  16505. this.trainCount = res.data[0][i].count;
  16506. }
  16507. }
  16508. })
  16509. .catch((err) => {
  16510. console.error(err);
  16511. });
  16512. },
  16513. openTools(t, i, index, c, sName) {
  16514. var z = JSON.parse(c);
  16515. this.noteName = sName;
  16516. if (t == 4) {
  16517. this.radio = [];
  16518. this.isAnswer = false;
  16519. let b = z[0].anwer;
  16520. this.radio = b;
  16521. this.askJson = z[0].askJson;
  16522. this.isAnswer = true;
  16523. this.dialogVisible5 = true;
  16524. } else if (t == 45) {
  16525. this.radio = [];
  16526. this.isAnswer = false;
  16527. let b = z[0].anwer;
  16528. this.radio = b;
  16529. this.testJson = z[0].testJson;
  16530. this.isAnswer = true;
  16531. this.dialogVisibleChoice = true;
  16532. }
  16533. // else if (t == 15) {
  16534. // this.answerQ = "";
  16535. // this.questionAnswer = "";
  16536. // this.answerQ = z[0].answerTitle;
  16537. // this.questionAnswer = z[0].answer;
  16538. // this.answerDialogVisible = true;
  16539. // }
  16540. },
  16541. fastText(p, t) {
  16542. if (t == 1) {
  16543. this.commentText += p;
  16544. } else {
  16545. this.eScore.eBzText += p;
  16546. }
  16547. },
  16548. addTools(t, i, index) {
  16549. var a = 0;
  16550. // this.taskCount = index;
  16551. this.toolindex = i;
  16552. if (t == 1) {
  16553. if (this.wbCount > 0) {
  16554. this.updateCount(this.wbCount, t);
  16555. } else {
  16556. this.wbCount++;
  16557. a = this.wbCount;
  16558. this.toolsCount(a, t);
  16559. }
  16560. window.parent.postMessage(
  16561. {
  16562. tools: "1",
  16563. cid: this.id,
  16564. stage: this.courseType,
  16565. task: this.taskCount,
  16566. tool: i,
  16567. },
  16568. "*"
  16569. );
  16570. } else if (t == 2) {
  16571. if (this.wordCount > 0) {
  16572. this.updateCount(this.wordCount, t);
  16573. } else {
  16574. this.wordCount++;
  16575. a = this.wordCount;
  16576. this.toolsCount(a, t);
  16577. }
  16578. window.parent.postMessage({ tools: "2" }, "*");
  16579. } else if (t == 3) {
  16580. if (this.mindCount > 0) {
  16581. this.updateCount(this.mindCount, t);
  16582. } else {
  16583. this.mindCount++;
  16584. a = this.mindCount;
  16585. this.toolsCount(a, t);
  16586. }
  16587. window.parent.postMessage(
  16588. {
  16589. tools: "3",
  16590. cid: this.id,
  16591. stage: this.courseType,
  16592. task: this.taskCount,
  16593. tool: i,
  16594. },
  16595. "*"
  16596. );
  16597. } else if (t == 4) {
  16598. this.radio = [];
  16599. this.noteName = "";
  16600. this.isAnswer = false;
  16601. if (this.askCount > 0) {
  16602. this.updateCount(this.askCount, t);
  16603. } else {
  16604. this.askCount++;
  16605. a = this.askCount;
  16606. this.toolsCount(a, t);
  16607. }
  16608. this.askJson.askJson =
  16609. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16610. index
  16611. ].toolChoose[i].askJson;
  16612. this.askJson.askTitle =
  16613. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16614. index
  16615. ].toolChoose[i].askTitle;
  16616. this.askJson.askCount =
  16617. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16618. index
  16619. ].toolChoose[i].askCount;
  16620. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16621. if (this.askJson.askJson[k].type == "2") {
  16622. this.radio.push([]);
  16623. } else {
  16624. this.radio.push("");
  16625. }
  16626. }
  16627. this.dialogVisible5 = true;
  16628. // window.parent.postMessage({ tools: "4" }, "*");
  16629. } else if (t == 45) {
  16630. this.noteName = "";
  16631. this.radio = [];
  16632. this.isAnswer = false;
  16633. if (this.askCount > 0) {
  16634. this.updateCount(this.askCount, t);
  16635. } else {
  16636. this.askCount++;
  16637. a = this.askCount;
  16638. this.toolsCount(a, t);
  16639. }
  16640. this.testJson =
  16641. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16642. index
  16643. ].toolChoose[i].testJson;
  16644. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16645. if (this.testJson.testJson[k].type == "2") {
  16646. this.radio.push([]);
  16647. } else {
  16648. this.radio.push("");
  16649. }
  16650. }
  16651. this.dialogVisibleChoice = true;
  16652. // window.parent.postMessage({ tools: "4" }, "*");
  16653. } else if (t == 5) {
  16654. if (this.scoreCount > 0) {
  16655. this.updateCount(this.scoreCount, t);
  16656. } else {
  16657. this.scoreCount++;
  16658. a = this.scoreCount;
  16659. this.toolsCount(a, t);
  16660. }
  16661. this.dialogVisible4 = true;
  16662. // window.parent.postMessage({ tools: "5" }, "*");
  16663. } else if (t == 6) {
  16664. if (this.noteCount > 0) {
  16665. this.updateCount(this.noteCount, t);
  16666. } else {
  16667. this.noteCount++;
  16668. a = this.noteCount;
  16669. this.toolsCount(a, t);
  16670. }
  16671. window.parent.postMessage(
  16672. {
  16673. tools: "6",
  16674. cid: this.id,
  16675. stage: this.courseType,
  16676. task: this.taskCount,
  16677. tool: i,
  16678. },
  16679. "*"
  16680. );
  16681. } else if (t == 7) {
  16682. if (this.mindNetWorkCount > 0) {
  16683. this.updateCount(this.mindNetWorkCount, t);
  16684. } else {
  16685. this.mindNetWorkCount++;
  16686. a = this.mindNetWorkCount;
  16687. this.toolsCount(a, t);
  16688. }
  16689. window.parent.postMessage(
  16690. {
  16691. tools: "7",
  16692. cid: this.id,
  16693. stage: this.courseType,
  16694. task: this.taskCount,
  16695. tool: i,
  16696. },
  16697. "*"
  16698. );
  16699. } else if (t == 16) {
  16700. if (this.workCount > 0) {
  16701. this.updateCount(this.workCount, t);
  16702. } else {
  16703. this.workCount++;
  16704. a = this.workCount;
  16705. this.toolsCount(a, t);
  16706. }
  16707. this.dialogVisible = true;
  16708. } else if (t == 50) {
  16709. if (this.tType == 2) {
  16710. this.$message.error("不支持学生使用");
  16711. return;
  16712. }
  16713. this.plworkFile = [];
  16714. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16715. if (!this.uploadCid) {
  16716. this.$message.error(
  16717. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16718. );
  16719. return;
  16720. }
  16721. this.selectUploadStudent(2);
  16722. } else if (t == 8) {
  16723. if (this.libraryCount > 0) {
  16724. this.updateCount(this.libraryCount, t);
  16725. } else {
  16726. this.libraryCount++;
  16727. a = this.libraryCount;
  16728. this.toolsCount(a, t);
  16729. }
  16730. window.parent.postMessage({ tools: "8" }, "*");
  16731. } else if (t == 17) {
  16732. if (this.libraryCount > 0) {
  16733. this.updateCount(this.libraryCount, t);
  16734. } else {
  16735. this.libraryCount++;
  16736. a = this.libraryCount;
  16737. this.toolsCount(a, t);
  16738. }
  16739. window.parent.postMessage({ tools: "17" }, "*");
  16740. } else if (t == 18) {
  16741. if (this.trainCount > 0) {
  16742. this.updateCount(this.trainCount, t);
  16743. } else {
  16744. this.trainCount++;
  16745. a = this.trainCount;
  16746. this.toolsCount(a, t);
  16747. }
  16748. window.parent.postMessage({ tools: "18" }, "*");
  16749. } else if (t == 10) {
  16750. if (this.timeCount > 0) {
  16751. this.updateCount(this.timeCount, t);
  16752. } else {
  16753. this.timeCount++;
  16754. a = this.timeCount;
  16755. this.toolsCount(a, t);
  16756. }
  16757. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  16758. .taskJson[index].toolChoose[i].preTime
  16759. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16760. .toolChoose[i].preTime
  16761. : "";
  16762. this.timeDialogVisible = true;
  16763. } else if (t == 15) {
  16764. this.answerQ = "";
  16765. this.questionAnswer = "";
  16766. if (this.answerCount > 0) {
  16767. this.updateCount(this.answerCount, t);
  16768. } else {
  16769. this.answerCount++;
  16770. a = this.answerCount;
  16771. this.toolsCount(a, t);
  16772. }
  16773. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16774. .taskJson[index].toolChoose[i].answerQ
  16775. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16776. .toolChoose[i].answerQ
  16777. : "";
  16778. this.answerDialogVisible = true;
  16779. } else if (t == 21) {
  16780. window.parent.postMessage({ tools: "21" }, "*");
  16781. } else if (t == 22) {
  16782. window.parent.postMessage({ tools: "22" }, "*");
  16783. } else if (t == 23) {
  16784. window.parent.postMessage({ tools: "23" }, "*");
  16785. } else if (t == 24) {
  16786. window.parent.postMessage({ tools: "24" }, "*");
  16787. } else if (t == 25) {
  16788. window.parent.postMessage({ tools: "25" }, "*");
  16789. } else if (t == 31) {
  16790. window.parent.postMessage({ tools: "31" }, "*");
  16791. } else if (t == 28) {
  16792. window.parent.postMessage({ tools: "28" }, "*");
  16793. } else if (t == 37) {
  16794. window.parent.postMessage({ tools: "37" }, "*");
  16795. } else if (t == 38) {
  16796. window.parent.postMessage({ tools: "38" }, "*");
  16797. } else if (t == 39) {
  16798. window.parent.postMessage({ tools: "39" }, "*");
  16799. } else if (t == 32) {
  16800. window.parent.postMessage({ tools: "32" }, "*");
  16801. } else if (t == 66) {
  16802. window.parent.postMessage({ tools: "66" }, "*");
  16803. } else if (t == 67) {
  16804. window.parent.postMessage({ tools: "67" }, "*");
  16805. } else if (t == 68) {
  16806. window.parent.postMessage({ tools: "68" }, "*");
  16807. } else if (t == 57) {
  16808. // window.parent.postMessage({ tools: "57" }, "*");
  16809. window.parent.postMessage(
  16810. {
  16811. tools: "57u",
  16812. cid: this.id,
  16813. stage: this.courseType,
  16814. task: this.taskCount,
  16815. tool: i,
  16816. },
  16817. "*"
  16818. );
  16819. } else if (t == 58) {
  16820. window.parent.postMessage({ tools: "58" }, "*");
  16821. } else if (t == 59) {
  16822. window.parent.postMessage({ tools: "59" }, "*");
  16823. } else if (t == 60) {
  16824. window.parent.postMessage({ tools: "60" }, "*");
  16825. } else if (t == 61) {
  16826. window.parent.postMessage({ tools: "61" }, "*");
  16827. } else if (t == 63) {
  16828. window.parent.postMessage({ tools: "63" }, "*");
  16829. } else if (t == 65) {
  16830. if (this.tType == 2) {
  16831. this.$message.error("不支持学生使用");
  16832. return;
  16833. }
  16834. this.uploadCid = this.tcid;
  16835. if (!this.uploadCid) {
  16836. this.$message.error(
  16837. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  16838. );
  16839. return;
  16840. }
  16841. this.selectPickStudent();
  16842. } else if (t == 26) {
  16843. window.parent.postMessage(
  16844. {
  16845. tools: "26",
  16846. cid: this.id,
  16847. stage: this.courseType,
  16848. task: this.taskCount,
  16849. tool: i,
  16850. },
  16851. "*"
  16852. );
  16853. } else if (t == 40) {
  16854. if (this.evalCount > 0) {
  16855. this.updateCount(this.evalCount, t);
  16856. } else {
  16857. this.evalCount++;
  16858. a = this.evalCount;
  16859. this.toolsCount(a, t);
  16860. }
  16861. this.eScore = { eBzText: "", eStar: [] };
  16862. if (this.worksStudent[i].length) {
  16863. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16864. if (this.userid == this.worksStudent[i][k].userid) {
  16865. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16866. this.rateJson =
  16867. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16868. index
  16869. ].toolChoose[i].rateJson;
  16870. break;
  16871. } else {
  16872. this.rateJson =
  16873. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16874. index
  16875. ].toolChoose[i].rateJson;
  16876. }
  16877. }
  16878. } else {
  16879. this.rateJson =
  16880. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16881. index
  16882. ].toolChoose[i].rateJson;
  16883. }
  16884. this.isStar = false;
  16885. this.studentEvalDialogVisible = true;
  16886. } else if (t == 41) {
  16887. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16888. .taskJson[index].toolChoose[i].selectJson
  16889. ? JSON.parse(
  16890. JSON.stringify(
  16891. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16892. index
  16893. ].toolChoose[i].selectJson
  16894. )
  16895. )
  16896. : { url: "", select: [], answer: [] };
  16897. if (this.worksStudent[i].length) {
  16898. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16899. if (this.userid == this.worksStudent[i][k].userid) {
  16900. var a = this.worksStudent[i][k].works.split(",");
  16901. for (var ki = 0; ki < a.length; ki++) {
  16902. a[ki] = parseInt(a[ki]);
  16903. }
  16904. this.selectAnswer = {
  16905. answer: a,
  16906. stu: this.worksStudent[i][k].sName,
  16907. };
  16908. break;
  16909. } else {
  16910. this.selectAnswer = { answer: [], stu: "" };
  16911. }
  16912. }
  16913. } else {
  16914. this.selectAnswer = { answer: [], stu: "" };
  16915. }
  16916. this.isSelect = false;
  16917. this.dialogVisibleSelect = true;
  16918. } else if (t == 44) {
  16919. window.parent.postMessage({ tools: "44" }, "*");
  16920. } else if (t == 47) {
  16921. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16922. .taskJson[index].toolChoose[i].sentenceList
  16923. ? JSON.parse(
  16924. JSON.stringify(
  16925. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16926. index
  16927. ].toolChoose[i].sentenceList
  16928. )
  16929. )
  16930. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16931. for (var q = 0; q < this.sentenceList.length; q++) {
  16932. this.sentenceList[q].chooseSenList = [];
  16933. this.sentenceList[q].addChangeSen = [];
  16934. this.sentenceList[q].addChangeSen = JSON.parse(
  16935. JSON.stringify(this.sentenceList[q].addSentence)
  16936. );
  16937. this.sentenceList[q].chooseSenList.length =
  16938. this.sentenceList[q].rightAnswer.length;
  16939. }
  16940. this.dialogVisibleSentence = true;
  16941. } else if (t == 48) {
  16942. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16943. .taskJson[index].toolChoose[i].tableJson
  16944. ? JSON.parse(
  16945. JSON.stringify(
  16946. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16947. index
  16948. ].toolChoose[i].tableJson
  16949. )
  16950. )
  16951. : { text: "" };
  16952. if (this.worksStudent[i].length) {
  16953. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16954. if (this.userid == this.worksStudent[i][k].userid) {
  16955. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16956. break;
  16957. }
  16958. }
  16959. }
  16960. this.dialogVisibleTable = true;
  16961. } else if (t == 52) {
  16962. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16963. .taskJson[index].toolChoose[i].wordJson
  16964. ? JSON.parse(
  16965. JSON.stringify(
  16966. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16967. index
  16968. ].toolChoose[i].wordJson
  16969. )
  16970. )
  16971. : { text: "" };
  16972. if (this.worksStudent[i].length) {
  16973. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16974. if (this.userid == this.worksStudent[i][k].userid) {
  16975. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  16976. break;
  16977. }
  16978. }
  16979. }
  16980. this.dialogVisibleWord = true;
  16981. } else if (t == 49) {
  16982. this.groupJson =
  16983. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16984. index
  16985. ].toolChoose[i].groupJson;
  16986. this.dialogVisibleGroup = true;
  16987. } else if (t == 62) {
  16988. this.videoJson =
  16989. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16990. index
  16991. ].toolChoose[i].videoJson;
  16992. this.dialogVisibleVideo = true;
  16993. }
  16994. },
  16995. teacherWorkSubmit(t, i, index, s) {
  16996. this.sStudent = s;
  16997. this.sTool = t;
  16998. this.toolindex = i;
  16999. if (this.tType !== "1" && this.tType !== "4") {
  17000. return;
  17001. }
  17002. if (t == 16 || t == 32 || t == 50) {
  17003. this.dialogVisibleWorks = true; //作业提交
  17004. } else if (t == 15) {
  17005. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17006. .taskJson[index].toolChoose[i].answerQ
  17007. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17008. .toolChoose[i].answerQ
  17009. : "";
  17010. this.questionAnswer = "";
  17011. this.answerDialogVisibleTeacher = true; //问答
  17012. } else if (t == 52) {
  17013. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17014. .taskJson[index].toolChoose[i].wordJson
  17015. ? JSON.parse(
  17016. JSON.stringify(
  17017. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17018. index
  17019. ].toolChoose[i].wordJson
  17020. )
  17021. )
  17022. : { text: "" };
  17023. if (this.worksStudent[i].length) {
  17024. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17025. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17026. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17027. break;
  17028. }
  17029. }
  17030. }
  17031. this.dialogVisibleWordTeacher = true; //文档
  17032. } else if (t == 4) {
  17033. this.radio = [];
  17034. this.noteName = "";
  17035. this.isAnswer = false;
  17036. if (this.askCount > 0) {
  17037. this.updateCount(this.askCount, t);
  17038. } else {
  17039. this.askCount++;
  17040. a = this.askCount;
  17041. this.toolsCount(a, t);
  17042. }
  17043. if (!this.dialogVisible2) {
  17044. this.askJson.askJson =
  17045. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17046. index
  17047. ].toolChoose[i].askJson;
  17048. this.askJson.askTitle =
  17049. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17050. index
  17051. ].toolChoose[i].askTitle;
  17052. this.askJson.askCount =
  17053. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17054. index
  17055. ].toolChoose[i].askCount;
  17056. } else {
  17057. this.askJson.askJson = this.chapTools.askJson.askJson;
  17058. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17059. this.askJson.askCount = this.chapTools.askJson.askCount;
  17060. }
  17061. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17062. if (this.askJson.askJson[k].type == "2") {
  17063. this.radio.push([]);
  17064. } else {
  17065. this.radio.push("");
  17066. }
  17067. }
  17068. this.dialogVisible5Teacher = true;
  17069. } else if (t == 45) {
  17070. this.noteName = "";
  17071. this.radio = [];
  17072. this.isAnswer = false;
  17073. if (this.askCount > 0) {
  17074. this.updateCount(this.askCount, t);
  17075. } else {
  17076. this.askCount++;
  17077. a = this.askCount;
  17078. this.toolsCount(a, t);
  17079. }
  17080. this.testJson =
  17081. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17082. index
  17083. ].toolChoose[i].testJson;
  17084. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17085. if (this.testJson.testJson[k].type == "2") {
  17086. this.radio.push([]);
  17087. } else {
  17088. this.radio.push("");
  17089. }
  17090. }
  17091. this.dialogVisibleChoiceTeacher = true;
  17092. } else if (t == 41) {
  17093. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17094. .taskJson[index].toolChoose[i].selectJson
  17095. ? JSON.parse(
  17096. JSON.stringify(
  17097. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17098. index
  17099. ].toolChoose[i].selectJson
  17100. )
  17101. )
  17102. : { url: "", select: [], answer: [] };
  17103. if (this.worksStudent[i].length) {
  17104. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17105. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17106. var a = this.worksStudent[i][k].works.split(",");
  17107. for (var ki = 0; ki < a.length; ki++) {
  17108. a[ki] = parseInt(a[ki]);
  17109. }
  17110. this.selectAnswer = {
  17111. answer: a,
  17112. stu: this.worksStudent[i][k].sName,
  17113. };
  17114. break;
  17115. } else {
  17116. this.selectAnswer = { answer: [], stu: "" };
  17117. }
  17118. }
  17119. } else {
  17120. this.selectAnswer = { answer: [], stu: "" };
  17121. }
  17122. this.isSelect = false;
  17123. this.dialogVisibleSelectTeacher = true;
  17124. } else if (t == 47) {
  17125. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17126. .taskJson[index].toolChoose[i].sentenceList
  17127. ? JSON.parse(
  17128. JSON.stringify(
  17129. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17130. index
  17131. ].toolChoose[i].sentenceList
  17132. )
  17133. )
  17134. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17135. for (var q = 0; q < this.sentenceList.length; q++) {
  17136. this.sentenceList[q].chooseSenList = [];
  17137. this.sentenceList[q].addChangeSen = [];
  17138. this.sentenceList[q].addChangeSen = JSON.parse(
  17139. JSON.stringify(this.sentenceList[q].addSentence)
  17140. );
  17141. this.sentenceList[q].chooseSenList.length =
  17142. this.sentenceList[q].rightAnswer.length;
  17143. }
  17144. this.dialogVisibleSentenceTeacher = true;
  17145. } else if (t == 48) {
  17146. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17147. .taskJson[index].toolChoose[i].tableJson
  17148. ? JSON.parse(
  17149. JSON.stringify(
  17150. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17151. index
  17152. ].toolChoose[i].tableJson
  17153. )
  17154. )
  17155. : { text: "" };
  17156. if (this.worksStudent[i].length) {
  17157. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17158. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17159. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17160. break;
  17161. }
  17162. }
  17163. }
  17164. this.dialogVisibleTableTeacher = true;
  17165. } else if (t == 40) {
  17166. if (this.evalCount > 0) {
  17167. this.updateCount(this.evalCount, t);
  17168. } else {
  17169. this.evalCount++;
  17170. a = this.evalCount;
  17171. this.toolsCount(a, t);
  17172. }
  17173. this.eScore = { eBzText: "", eStar: [] };
  17174. if (this.worksStudent[i].length) {
  17175. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17176. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17177. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17178. this.rateJson =
  17179. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17180. index
  17181. ].toolChoose[i].rateJson;
  17182. break;
  17183. } else {
  17184. this.rateJson =
  17185. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17186. index
  17187. ].toolChoose[i].rateJson;
  17188. }
  17189. }
  17190. } else {
  17191. this.rateJson =
  17192. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17193. index
  17194. ].toolChoose[i].rateJson;
  17195. }
  17196. this.isStar = false;
  17197. this.studentEvalDialogVisibleTeacher = true;
  17198. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17199. window.parent.postMessage(
  17200. {
  17201. tools: t + "teacher",
  17202. cid: this.id,
  17203. stage: this.courseType,
  17204. task: this.taskCount,
  17205. tool: i,
  17206. student: this.sStudent,
  17207. },
  17208. "*"
  17209. );
  17210. }
  17211. },
  17212. openCocoPi(tool, i, uid, uname) {
  17213. let student = {
  17214. userid: uid,
  17215. student: uname,
  17216. };
  17217. if (tool == 57) {
  17218. window.parent.postMessage(
  17219. {
  17220. tools: tool + "teacher",
  17221. cid: this.id,
  17222. stage: this.courseType,
  17223. task: this.taskCount,
  17224. tool: i,
  17225. student: student,
  17226. },
  17227. "*"
  17228. );
  17229. }
  17230. },
  17231. setRightAnswer(s, i, j) {
  17232. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17233. if (
  17234. this.sentenceList[i].chooseSenList[q] == undefined ||
  17235. this.sentenceList[i].chooseSenList[q] == ""
  17236. ) {
  17237. this.sentenceList[i].chooseSenList[q] = s;
  17238. this.sentenceList[i].addChangeSen[j] = "";
  17239. break;
  17240. }
  17241. }
  17242. this.$forceUpdate();
  17243. },
  17244. returnCard(r, i, j) {
  17245. var a = this.sentenceList[i].addSentence.indexOf(r);
  17246. this.sentenceList[i].chooseSenList[j] = "";
  17247. this.sentenceList[i].addChangeSen[a] = r;
  17248. this.$forceUpdate();
  17249. },
  17250. // addSentenceTool() {
  17251. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17252. // this.taskCount
  17253. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17254. // this.sentenceList = [
  17255. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17256. // ];
  17257. // this.dialogVisibleSentence = false;
  17258. // },
  17259. toolsCount(a, t) {
  17260. let params = {
  17261. cid: this.id,
  17262. chid: this.courseType,
  17263. uid: this.userid,
  17264. tid: t,
  17265. count: a,
  17266. };
  17267. this.ajax
  17268. .get(this.$store.state.api + "insertToolsCount", params)
  17269. .then((res) => {
  17270. this.selectCount();
  17271. })
  17272. .catch((err) => {
  17273. console.error(err);
  17274. });
  17275. },
  17276. updateCount(c, t) {
  17277. c++;
  17278. let params = {
  17279. cid: this.id,
  17280. chid: this.courseType,
  17281. uid: this.userid,
  17282. tid: t,
  17283. count: c,
  17284. };
  17285. this.ajax
  17286. .get(this.$store.state.api + "updateToolsCount", params)
  17287. .then((res) => {
  17288. this.selectCount();
  17289. })
  17290. .catch((err) => {
  17291. console.error(err);
  17292. });
  17293. },
  17294. checkEva() {
  17295. if (this.evalua != "") {
  17296. for (var i = 0; i < this.evaJuri.length; i++) {
  17297. if (this.evalua == this.evaJuri[i].id) {
  17298. this.eTitle = this.evaJuri[i].title;
  17299. this.eJson = JSON.parse(this.evaJuri[i].content);
  17300. }
  17301. }
  17302. this.$forceUpdate();
  17303. setTimeout(() => {
  17304. this.setMindData();
  17305. }, 0);
  17306. }
  17307. },
  17308. selectEva() {
  17309. let params = {
  17310. oid: this.oid,
  17311. };
  17312. this.ajax
  17313. .get(this.$store.state.api + "selectAllEvaluation", params)
  17314. .then((res) => {
  17315. this.evaJuri = res.data[0];
  17316. })
  17317. .catch((err) => {
  17318. console.error(err);
  17319. });
  17320. },
  17321. setMindData() {
  17322. this.data.data = [];
  17323. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  17324. let _eJson = Object.keys(this.eJson);
  17325. let _e = this.eJson;
  17326. for (let i = 0; i < _eJson.length; i++) {
  17327. let element = _e[_eJson[i]];
  17328. this.data.data.push({
  17329. id: element.id,
  17330. parentid: "root",
  17331. topic: element.name,
  17332. });
  17333. let _eJsonc = Object.keys(element.child);
  17334. let _e2 = element.child;
  17335. for (let j = 0; j < _eJsonc.length; j++) {
  17336. let _ec = _e2[_eJsonc[j]];
  17337. this.data.data.push({
  17338. id: _ec.id,
  17339. parentid: element.id,
  17340. topic: _ec.name,
  17341. });
  17342. let _eJsonz = Object.keys(_ec.child);
  17343. let _e3 = _ec.child;
  17344. for (let z = 0; z < _eJsonz.length; z++) {
  17345. let _ez = _e3[_eJsonz[z]];
  17346. this.data.data.push({
  17347. id: _ez.id,
  17348. parentid: _ec.id,
  17349. topic: _ez.name,
  17350. });
  17351. }
  17352. }
  17353. }
  17354. this.$forceUpdate();
  17355. },
  17356. checkFileFull(type, url) {
  17357. this.fullDialogVisible = true;
  17358. this.fulltype = type;
  17359. this.fullUrl = url;
  17360. },
  17361. checkFileFull1(t, f) {
  17362. this.fullDialogVisible = true;
  17363. if (t == 6) {
  17364. this.fulltype = 1;
  17365. this.fullUrl = JSON.parse(JSON.stringify(f));
  17366. } else if (t == 8) {
  17367. this.fulltype = 2;
  17368. this.fullUrl = f.url;
  17369. } else if (
  17370. t == 3 &&
  17371. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17372. "PDF"
  17373. ) {
  17374. this.fulltype = 3;
  17375. this.fullUrl = f.url;
  17376. } else if (t == 3) {
  17377. this.fulltype = 2;
  17378. this.fullUrl =
  17379. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  17380. }
  17381. },
  17382. openSname(n, id, i, uid) {
  17383. this.snameWid = id;
  17384. this.worksSName = n;
  17385. this.worksSid = uid == n ? "" : uid;
  17386. this.toolindex = i;
  17387. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17388. if (!this.uploadCid) {
  17389. this.$message.error(
  17390. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17391. );
  17392. return;
  17393. }
  17394. this.selectUploadStudent(1);
  17395. },
  17396. updateName() {
  17397. let params = {
  17398. n: this.worksSName,
  17399. cid: this.snameWid,
  17400. };
  17401. this.ajax
  17402. .get(this.$store.state.api + "updateCourseWorksName", params)
  17403. .then((res) => {
  17404. this.$message({
  17405. message: "修改成功",
  17406. type: "success",
  17407. });
  17408. this.dialogVisibleSname = false;
  17409. this.getCourseDetail();
  17410. this.snameWid = "";
  17411. this.worksSName = "";
  17412. })
  17413. .catch((err) => {
  17414. console.error(err);
  17415. });
  17416. },
  17417. downloadFile2(f) {
  17418. // const loading = this.$loading.service({
  17419. // background: "rgba(255, 255, 255, 0.7)",
  17420. // target: document.body,
  17421. // text: "文件加载中...",
  17422. // });
  17423. // let url2 = f.url;
  17424. // let _url2 = "";
  17425. // if (
  17426. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17427. // ) {
  17428. // _url2 = url2.split(
  17429. // "https://view.officeapps.live.com/op/view.aspx?src="
  17430. // )[1];
  17431. // } else {
  17432. // _url2 = url2;
  17433. // }
  17434. // let params = {
  17435. // url: _url2,
  17436. // name: f.name,
  17437. // };
  17438. // this.ajax
  17439. // .get(this.$store.state.api + "download", params)
  17440. // .then((res) => {
  17441. // console.log(res);
  17442. // loading.close();
  17443. // let content = res.data.data.data;
  17444. // let ab = new ArrayBuffer(content.length);
  17445. // let view = new Uint8Array(ab);
  17446. // for (var i = 0; i < content.length; ++i) {
  17447. // view[i] = content[i];
  17448. // }
  17449. // let elink = document.createElement("a");
  17450. // elink.download = f.name;
  17451. // elink.style.display = "none";
  17452. // let blob = new Blob([ab], {
  17453. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  17454. // });
  17455. // elink.href = URL.createObjectURL(blob);
  17456. // document.body.appendChild(elink);
  17457. // elink.click();
  17458. // document.body.removeChild(elink);
  17459. // })
  17460. // .catch((err) => {
  17461. // loading.close();
  17462. // console.error(err);
  17463. // });
  17464. let url = f.url;
  17465. let _this = this;
  17466. let _url = "";
  17467. if (
  17468. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17469. ) {
  17470. _url = url.split(
  17471. "https://view.officeapps.live.com/op/view.aspx?src="
  17472. )[1];
  17473. } else {
  17474. _url = url;
  17475. }
  17476. const loading = _this.$loading.service({
  17477. background: "rgba(255, 255, 255, 0.7)",
  17478. target: document.body,
  17479. text: "文件加载中...",
  17480. });
  17481. let x = new XMLHttpRequest();
  17482. x.open("GET", _url, true);
  17483. x.responseType = "blob";
  17484. x.onload = function () {
  17485. loading.close();
  17486. let url = window.URL.createObjectURL(new Blob([x.response]));
  17487. let a = document.createElement("a");
  17488. a.name = f.name;
  17489. a.href = url;
  17490. a.download = f.name;
  17491. a.click();
  17492. };
  17493. x.send();
  17494. },
  17495. downloadFile(url) {
  17496. let _this = this;
  17497. let _url = "";
  17498. if (
  17499. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17500. ) {
  17501. _url = url.split(
  17502. "https://view.officeapps.live.com/op/view.aspx?src="
  17503. )[1];
  17504. } else {
  17505. _url = url;
  17506. }
  17507. const x = new XMLHttpRequest();
  17508. x.open("GET", _url, true);
  17509. x.responseType = "blob";
  17510. const loading = _this.$loading.service({
  17511. background: "rgba(255, 255, 255, 0.7)",
  17512. target: document.body,
  17513. text: "文件加载中...",
  17514. });
  17515. // _this.$message.success("文件下载中...");
  17516. x.onload = function (e) {
  17517. loading.close();
  17518. // const url = window.URL.createObjectURL(x.response);
  17519. // const a = document.createElement("a");
  17520. // a.href = url;
  17521. // a.target = "_blank";
  17522. // a.download = url;
  17523. // a.click();
  17524. // a.remove();
  17525. let content = x.response;
  17526. let elink = document.createElement("a");
  17527. elink.download = decodeURI(
  17528. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17529. );
  17530. elink.style.display = "none";
  17531. let blob = new Blob([content]);
  17532. elink.href = URL.createObjectURL(blob);
  17533. document.body.appendChild(elink);
  17534. elink.click();
  17535. document.body.removeChild(elink);
  17536. };
  17537. x.send();
  17538. },
  17539. openLine(url) {
  17540. window.open(url);
  17541. },
  17542. resize() {
  17543. if (document.getElementsByClassName("box_course").length) {
  17544. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17545. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17546. if (this.showType == 2 || this.showType == 3) {
  17547. document.getElementsByClassName("navBox")[0].style.height =
  17548. a - 40 + 46 + "px";
  17549. } else {
  17550. document.getElementsByClassName("navBox")[0].style.height =
  17551. a - 40 + "px";
  17552. }
  17553. }
  17554. this.Stbodywidth =
  17555. document.getElementsByClassName("student_body").length &&
  17556. document.getElementsByClassName("student_body")[0].offsetWidth;
  17557. },
  17558. closeDraw() {
  17559. this.bg = null;
  17560. this.drawShow = false;
  17561. },
  17562. showPicturePaint(url) {
  17563. let params = {
  17564. img: url,
  17565. };
  17566. this.ajax
  17567. .get(this.$store.state.api + "imgToBase64", params)
  17568. .then((res) => {
  17569. console.log(res);
  17570. this.drawShow = true;
  17571. this.bg = res.data[0].img;
  17572. })
  17573. .catch((err) => {
  17574. console.error(err);
  17575. });
  17576. },
  17577. addImgDraw(base64) {
  17578. let file = { name: "批注图.png" };
  17579. let img = this.dataUrlToFile(base64, file);
  17580. this.beforeUpload1(img, 5);
  17581. },
  17582. addImgDrawImG(url) {
  17583. // console.log(url);
  17584. let params = [
  17585. {
  17586. wid: this.commentDetail.wid,
  17587. img: url,
  17588. },
  17589. ];
  17590. this.ajax
  17591. .post(this.$store.state.api + "updateCourseWorks", params)
  17592. .then((res) => {
  17593. this.$message({
  17594. message: "提交成功",
  17595. type: "success",
  17596. });
  17597. this.drawShow = false;
  17598. this.bg = "";
  17599. this.selectSWorks();
  17600. this.selectStudent();
  17601. })
  17602. .catch((err) => {
  17603. this.$message.error("提交失败");
  17604. console.error(err);
  17605. });
  17606. },
  17607. deletePicturePaint() {
  17608. this.$confirm("确定删除此批注吗?", "提示", {
  17609. confirmButtonText: "确定",
  17610. cancelButtonText: "取消",
  17611. type: "warning",
  17612. })
  17613. .then(() => {
  17614. let params = [
  17615. {
  17616. wid: this.commentDetail.wid,
  17617. img: "",
  17618. },
  17619. ];
  17620. this.ajax
  17621. .post(this.$store.state.api + "updateCourseWorks", params)
  17622. .then((res) => {
  17623. this.$message({
  17624. message: "删除成功",
  17625. type: "success",
  17626. });
  17627. this.selectSWorks();
  17628. this.selectStudent();
  17629. })
  17630. .catch((err) => {
  17631. this.$message.error("删除失败");
  17632. console.error(err);
  17633. });
  17634. })
  17635. .catch(() => {});
  17636. },
  17637. getAudioVideo(constraintsData) {
  17638. if (navigator.mediaDevices === undefined) {
  17639. navigator.mediaDevices = {};
  17640. }
  17641. if (navigator.mediaDevices.getUserMedia === undefined) {
  17642. navigator.mediaDevices.getUserMedia = function (constraints) {
  17643. // 首先,如果有getUserMedia的话,就获得它
  17644. var getUserMedia =
  17645. navigator.getUserMedia ||
  17646. navigator.webkitGetUserMedia ||
  17647. navigator.mozGetUserMedia ||
  17648. navigator.msGetUserMedia;
  17649. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  17650. if (!getUserMedia) {
  17651. return Promise.reject({ code: 404 });
  17652. }
  17653. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  17654. return new Promise(function (resolve, reject) {
  17655. getUserMedia.call(navigator, constraints, resolve, reject);
  17656. });
  17657. };
  17658. }
  17659. return navigator.mediaDevices.getUserMedia(constraintsData);
  17660. },
  17661. /**
  17662. * 开始录制
  17663. */
  17664. startRecording(callback) {
  17665. let _function = (screenStream) => {
  17666. this.addStreamStopListener(screenStream, () => {
  17667. console.log("流停止监听");
  17668. this.stopRecording();
  17669. this.$emit("streamStop", {});
  17670. // this.stopRecording();
  17671. });
  17672. var options = {
  17673. type: "video",
  17674. mimeType: "video/webm",
  17675. disableLogs: false,
  17676. getNativeBlob: false, // enable it for longer recordings
  17677. ignoreMutedMedia: false,
  17678. };
  17679. // this.video.srcObject = screenStream;
  17680. this.recorder = RecordRTC(screenStream, options);
  17681. this.recorder.startRecording();
  17682. this.recorder.screen = screenStream;
  17683. this.videoStart = true;
  17684. // callback(true);
  17685. };
  17686. this.getAudioVideo({ audio: true })
  17687. .then((res) => {
  17688. this.captureScreen(_function, true);
  17689. console.log("已点击允许,开启成功");
  17690. })
  17691. .catch((err) => {
  17692. // console.log('浏览器不支持,请更换浏览器')
  17693. // } else {
  17694. this.captureScreen(_function, false);
  17695. console.log("请检查是否存在麦克风");
  17696. });
  17697. },
  17698. /**
  17699. * 停止录制
  17700. */
  17701. stopRecording(callback) {
  17702. this.recorder.stopRecording(() => {
  17703. // this.video.src = this.video.srcObject = null;
  17704. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  17705. const url = URL.createObjectURL(this.recorder.getBlob());
  17706. const a = document.createElement("a"); //this.fileName+
  17707. let videoFile = new File(
  17708. [this.recorder.getBlob()],
  17709. this.courseDetail.title + "录屏.mp4",
  17710. {
  17711. type: "video/mp4",
  17712. }
  17713. );
  17714. let downloadUrl = URL.createObjectURL(videoFile);
  17715. document.body.appendChild(a);
  17716. a.style.display = "none";
  17717. a.href = url;
  17718. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  17719. a.click();
  17720. this.recorder.screen.stop();
  17721. this.recorder.destroy();
  17722. this.recorder = null;
  17723. this.videoStart = false;
  17724. // callback(false);
  17725. });
  17726. },
  17727. //初始化
  17728. captureScreen(callback, type) {
  17729. if (navigator.getDisplayMedia) {
  17730. //录制结束,文件下载
  17731. navigator
  17732. .getDisplayMedia({
  17733. video: true,
  17734. })
  17735. .then((screenStream) => {
  17736. if (type) {
  17737. navigator.mediaDevices
  17738. .getUserMedia({ audio: true })
  17739. .then((mic) => {
  17740. screenStream.addTrack(mic.getTracks()[0]);
  17741. callback(screenStream);
  17742. });
  17743. } else {
  17744. callback(screenStream);
  17745. }
  17746. })
  17747. .catch(function (error) {
  17748. console.log("error", error);
  17749. });
  17750. } else if (navigator.mediaDevices.getDisplayMedia) {
  17751. navigator.mediaDevices
  17752. .getDisplayMedia({
  17753. video: true,
  17754. })
  17755. .then((screenStream) => {
  17756. if (type) {
  17757. navigator.mediaDevices
  17758. .getUserMedia({ audio: true })
  17759. .then((mic) => {
  17760. screenStream.addTrack(mic.getTracks()[0]);
  17761. callback(screenStream);
  17762. });
  17763. } else {
  17764. callback(screenStream);
  17765. }
  17766. })
  17767. .catch(function (error) {
  17768. console.log("error", error);
  17769. });
  17770. } else {
  17771. var error = "getDisplayMedia API are not supported in this browser.";
  17772. console.log("error", error);
  17773. alert(error);
  17774. }
  17775. },
  17776. //流监听
  17777. addStreamStopListener(stream, callback) {
  17778. stream.addEventListener(
  17779. "ended",
  17780. function () {
  17781. callback();
  17782. callback = function () {};
  17783. },
  17784. false
  17785. );
  17786. stream.addEventListener(
  17787. "inactive",
  17788. function () {
  17789. callback();
  17790. callback = function () {};
  17791. },
  17792. false
  17793. );
  17794. stream.getTracks().forEach(function (track) {
  17795. track.addEventListener(
  17796. "ended",
  17797. function () {
  17798. callback();
  17799. callback = function () {};
  17800. },
  17801. false
  17802. );
  17803. track.addEventListener(
  17804. "inactive",
  17805. function () {
  17806. callback();
  17807. callback = function () {};
  17808. },
  17809. false
  17810. );
  17811. });
  17812. },
  17813. updateGroup() {
  17814. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17815. this.dialogVisibleGroup2 = true;
  17816. },
  17817. numberPan() {
  17818. if (
  17819. /[^\d]/.test(this.groupJson.number) ||
  17820. this.groupJson.number < 2 ||
  17821. this.groupJson.number > 10
  17822. ) {
  17823. this.$message.error("请输入2-10的数字");
  17824. this.groupJson.number = "";
  17825. }
  17826. },
  17827. updateGroupJson() {
  17828. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  17829. if (
  17830. this.groupStudentUid[this.toolindex][i].length >
  17831. this.groupJson2.number
  17832. ) {
  17833. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  17834. return;
  17835. }
  17836. }
  17837. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  17838. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17839. this.taskCount
  17840. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  17841. let params = [
  17842. {
  17843. cid: this.id,
  17844. chapters: JSON.stringify(this.chapInfoList),
  17845. uid: this.userid,
  17846. unitIndex: this.courseType,
  17847. },
  17848. ];
  17849. this.ajax
  17850. .post(this.$store.state.api + "updateWorkNew4", params)
  17851. .then((res) => {
  17852. this.$message.success("设置成功");
  17853. this.getCourseDetail(2);
  17854. this.dialogVisibleGroup2 = false;
  17855. this.groupJson2 = {};
  17856. this.$forceUpdate();
  17857. })
  17858. .catch((err) => {
  17859. this.$message.error("网络不佳");
  17860. console.error(err);
  17861. });
  17862. },
  17863. lockChair() {
  17864. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17865. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  17866. this.updateGroupJson();
  17867. },
  17868. selectGroup(index) {
  17869. this.getCourseDetail(2, index);
  17870. },
  17871. joinGroup(index) {
  17872. if (this.groupJson.islock == 2) {
  17873. this.$message.error("位置已被锁定,无法加入");
  17874. return;
  17875. }
  17876. if (
  17877. this.groupStudent[this.toolindex][index].length >
  17878. this.groupJson.number ||
  17879. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  17880. ) {
  17881. this.$message.error("位置已满,无法加入");
  17882. return;
  17883. }
  17884. let params = [
  17885. {
  17886. cid: this.id,
  17887. stage: this.courseType,
  17888. task: this.taskCount,
  17889. tool: this.toolindex,
  17890. g: index,
  17891. uid: this.userid,
  17892. },
  17893. ];
  17894. this.ajax
  17895. .post(this.$store.state.api + "joinGroup", params)
  17896. .then((res) => {
  17897. this.$message.success("加入成功");
  17898. this.getCourseDetail();
  17899. })
  17900. .catch((err) => {
  17901. this.$message.error("网络不佳");
  17902. console.error(err);
  17903. });
  17904. },
  17905. exitGroup(id) {
  17906. if (this.groupJson.islock == 2) {
  17907. this.$message.error("位置已被锁定,无法退出");
  17908. return;
  17909. }
  17910. let params = [
  17911. {
  17912. gid: id,
  17913. },
  17914. ];
  17915. this.ajax
  17916. .post(this.$store.state.api + "exitGroup", params)
  17917. .then((res) => {
  17918. this.$message.success("退出成功");
  17919. this.getCourseDetail();
  17920. })
  17921. .catch((err) => {
  17922. this.$message.error("网络不佳");
  17923. console.error(err);
  17924. });
  17925. },
  17926. groupUpload(index, task, gindex) {
  17927. this.taskCount = task;
  17928. this.toolindex = index;
  17929. this.groupIndex = gindex;
  17930. this.dialogVisibleGroupWork = true;
  17931. },
  17932. updateGroupChair(user) {
  17933. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  17934. el.label = index;
  17935. return index != user.group;
  17936. });
  17937. this.updateGroupUser = user;
  17938. this.dialogVisibleUpdateGroup = true;
  17939. },
  17940. updateChair() {
  17941. if (
  17942. this.groupStudent[this.toolindex][this.checkChair].length >
  17943. this.groupJson.number ||
  17944. this.groupStudent[this.toolindex][this.checkChair].length ==
  17945. this.groupJson.number
  17946. ) {
  17947. this.$message.error("位置已满,无法加入");
  17948. return;
  17949. }
  17950. let params = [
  17951. {
  17952. cid: this.id,
  17953. stage: this.courseType,
  17954. task: this.taskCount,
  17955. tool: this.toolindex,
  17956. g: this.checkChair,
  17957. uid: this.updateGroupUser.userid,
  17958. },
  17959. ];
  17960. this.ajax
  17961. .post(this.$store.state.api + "joinGroup", params)
  17962. .then((res) => {
  17963. this.$message.success("修改成功");
  17964. this.updateGroupUser = {};
  17965. this.checkChair = "";
  17966. this.updateGroupArray = {};
  17967. this.dialogVisibleUpdateGroup = false;
  17968. this.getCourseDetail();
  17969. })
  17970. .catch((err) => {
  17971. this.$message.error("网络不佳");
  17972. console.error(err);
  17973. });
  17974. },
  17975. deleteGroupChair(gindex) {
  17976. this.checkDeleteGroup = [];
  17977. this.deleteGroupUser = JSON.parse(
  17978. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  17979. );
  17980. this.deleteGroupArray = this.groupJson.group[gindex];
  17981. this.groupIndex = gindex;
  17982. this.dialogVisibleDeleteGroup = true;
  17983. },
  17984. async deleteChair() {
  17985. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  17986. const gid =
  17987. this.groupStudent[this.toolindex][this.groupIndex][
  17988. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  17989. this.checkDeleteGroup[i]
  17990. )
  17991. ];
  17992. let params = [
  17993. {
  17994. gid: gid.id,
  17995. },
  17996. ];
  17997. var a = await this.deleteChairA(params);
  17998. if (i == this.checkDeleteGroup.length - 1) {
  17999. this.$message.success("退出成功");
  18000. this.dialogVisibleDeleteGroup = false;
  18001. this.deleteGroupUser = [];
  18002. this.deleteGroupArray = {};
  18003. this.groupIndex = "";
  18004. this.checkDeleteGroup = [];
  18005. this.getCourseDetail();
  18006. }
  18007. }
  18008. },
  18009. deleteChairA(params) {
  18010. return new Promise((resolve, reject) => {
  18011. this.ajax
  18012. .post(this.$store.state.api + "exitGroup", params)
  18013. .then((res) => {
  18014. resolve(1);
  18015. })
  18016. .catch((err) => {
  18017. this.$message.error("网络不佳");
  18018. console.error(err);
  18019. });
  18020. });
  18021. },
  18022. contract(i) {
  18023. if (this.isCloseList[i].isClose == 0) {
  18024. this.isCloseList[i].isClose = 1;
  18025. } else {
  18026. this.isCloseList[i].isClose = 0;
  18027. }
  18028. this.$forceUpdate();
  18029. },
  18030. openTools2(i) {
  18031. this.$message.error("暂未开放");
  18032. return;
  18033. },
  18034. addTools2(i) {
  18035. if (i == 4) {
  18036. // this.openTools2(4);
  18037. this.$message.error("暂未开放");
  18038. return;
  18039. }
  18040. if (i == 45) {
  18041. // this.openTools2(45);
  18042. this.$message.error("暂未开放");
  18043. return;
  18044. }
  18045. if (i == 47) {
  18046. // this.openTools2(47);
  18047. this.$message.error("暂未开放");
  18048. return;
  18049. }
  18050. if (i == 49) {
  18051. // this.openTools2(49);
  18052. this.$message.error("暂未开放");
  18053. return;
  18054. }
  18055. if (i == 62) {
  18056. // this.openTools(itemTaskIndex, 62, toolIndex);
  18057. this.$message.error("暂未开放");
  18058. return;
  18059. }
  18060. if (i == 15) {
  18061. // this.openTools(itemTaskIndex, 15, toolIndex);
  18062. this.$message.error("暂未开放");
  18063. return;
  18064. }
  18065. if (i == 40) {
  18066. // this.openTools(itemTaskIndex, 40, toolIndex);
  18067. this.$message.error("暂未开放");
  18068. return;
  18069. }
  18070. if (i == 41) {
  18071. // this.openTools(itemTaskIndex, 41, toolIndex);
  18072. this.$message.error("暂未开放");
  18073. return;
  18074. }
  18075. if (i == 42) {
  18076. // this.openTools(itemTaskIndex, 42, toolIndex);
  18077. this.$message.error("暂未开放");
  18078. return;
  18079. }
  18080. if (this.checktoolArray.length > 0) {
  18081. if (this.checktoolArray.indexOf(i) != -1) {
  18082. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  18083. } else {
  18084. this.checktoolArray = [];
  18085. this.checktoolArray.push(i);
  18086. }
  18087. } else {
  18088. this.checktoolArray.push(i);
  18089. }
  18090. this.$forceUpdate();
  18091. },
  18092. addToolChoose() {
  18093. if (!this.checktoolArray.length) {
  18094. this.$message.error("请选择要添加的任务");
  18095. return;
  18096. }
  18097. if (
  18098. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18099. this.taskCount
  18100. ].toolChoose[0].tool.length
  18101. ) {
  18102. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18103. this.taskCount
  18104. ].toolChoose[0].tool = this.checktoolArray;
  18105. } else {
  18106. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18107. this.taskCount
  18108. ].toolChoose.push({
  18109. tool: this.checktoolArray,
  18110. toolDetail: "",
  18111. toolType: 0,
  18112. askCount: 1,
  18113. askTitle: "",
  18114. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  18115. });
  18116. }
  18117. let params = [
  18118. {
  18119. cid: this.id,
  18120. chapters: JSON.stringify(this.chapInfoList),
  18121. uid: this.userid,
  18122. unitIndex: this.courseType,
  18123. },
  18124. ];
  18125. this.ajax
  18126. .post(this.$store.state.api + "updateWorkNew4", params)
  18127. .then((res) => {
  18128. this.$message({
  18129. message: "添加成功",
  18130. type: "success",
  18131. });
  18132. this.checktoolArray = [];
  18133. this.getCourseDetail(3);
  18134. this.checkBz(
  18135. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18136. this.taskCount
  18137. ].toolChoose.length - 1
  18138. );
  18139. this.$forceUpdate();
  18140. })
  18141. .catch((err) => {
  18142. console.error(err);
  18143. });
  18144. },
  18145. updateToolDetail() {
  18146. if (!this.isUpdateToolDetail) {
  18147. this.isUpdateToolDetail = true;
  18148. this.updateToolDetailInner = JSON.parse(
  18149. JSON.stringify(this.tool.toolDetail)
  18150. );
  18151. } else {
  18152. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18153. this.taskCount
  18154. ].toolChoose[this.toolIndex].toolDetail = JSON.parse(
  18155. JSON.stringify(this.updateToolDetailInner)
  18156. );
  18157. let params = [
  18158. {
  18159. cid: this.id,
  18160. chapters: JSON.stringify(this.chapInfoList),
  18161. uid: this.userid,
  18162. unitIndex: this.courseType,
  18163. },
  18164. ];
  18165. this.ajax
  18166. .post(this.$store.state.api + "updateWorkNew4", params)
  18167. .then((res) => {
  18168. this.isUpdateToolDetail = false;
  18169. this.$message({
  18170. message: "修改成功",
  18171. type: "success",
  18172. });
  18173. this.updateToolDetailInner = "";
  18174. this.getCourseDetail(3);
  18175. this.$forceUpdate();
  18176. this.checkBz(this.toolIndex);
  18177. })
  18178. .catch((err) => {
  18179. console.error(err);
  18180. });
  18181. }
  18182. },
  18183. openWordCloud(toolindex) {
  18184. let array = [];
  18185. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  18186. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  18187. array.push({ name: works });
  18188. }
  18189. if (this.isGroup) {
  18190. for (var i = 0; i < this.courseGroup.group.length; i++) {
  18191. let works = this.courseGroup.group[i].works[toolindex];
  18192. for (var j = 0; j < works.length; j++) {
  18193. let answer = JSON.parse(works[j].works)[0].answer;
  18194. array.push({ name: answer });
  18195. }
  18196. }
  18197. }
  18198. this.wordCloudData = array;
  18199. this.dialogVisibleWordCloud = true;
  18200. },
  18201. pickStudent(stu) {
  18202. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18203. return;
  18204. }
  18205. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18206. confirmButtonText: "确定",
  18207. cancelButtonText: "取消",
  18208. type: "warning",
  18209. })
  18210. .then(() => {
  18211. let params = [
  18212. {
  18213. uid: stu.userid,
  18214. cid: this.id,
  18215. stage: this.courseType,
  18216. task: this.taskCount,
  18217. tool: this.toolindex,
  18218. },
  18219. ];
  18220. this.ajax
  18221. .post(this.$store.state.api + "updateCoursePick", params)
  18222. .then((res) => {
  18223. this.$message.success("操作成功");
  18224. this.getPick();
  18225. })
  18226. .catch((err) => {
  18227. this.$message.error("网络不佳");
  18228. console.error(err);
  18229. });
  18230. })
  18231. .catch(() => {});
  18232. },
  18233. getPick() {
  18234. let params = {
  18235. cid: this.id,
  18236. };
  18237. this.ajax
  18238. .get(this.$store.state.api + "getPick", params)
  18239. .then((res) => {
  18240. let array = [];
  18241. for (var i = 0; i < res.data[0].length; i++) {
  18242. array.push(res.data[0][i].userid);
  18243. }
  18244. this.isPickStudent = array;
  18245. if (array.indexOf(this.userid) !== -1) {
  18246. this.$confirm("你被老师选到啦!", "提示", {
  18247. confirmButtonText: "确定",
  18248. showCancelButton: false,
  18249. closeOnClickModal: false,
  18250. type: "warning",
  18251. })
  18252. .then(() => {
  18253. let pa = [
  18254. {
  18255. uid: this.userid,
  18256. cid: this.id,
  18257. },
  18258. ];
  18259. this.ajax
  18260. .post(this.$store.state.api + "deletePick", pa)
  18261. .then((res) => {
  18262. this.getPick();
  18263. })
  18264. .catch((err) => {
  18265. this.$message.error("网络不佳");
  18266. console.error(err);
  18267. });
  18268. })
  18269. .catch(() => {});
  18270. }
  18271. })
  18272. .catch((err) => {
  18273. this.$message.error("网络不佳");
  18274. console.error(err);
  18275. });
  18276. },
  18277. },
  18278. directives: {
  18279. // 使用局部注册指令的方式
  18280. resize: {
  18281. // 指令的名称
  18282. bind(el, binding) {
  18283. // el为绑定的元素,binding为绑定给指令的对象
  18284. let width = "",
  18285. height = "";
  18286. function isReize() {
  18287. const style = document.defaultView.getComputedStyle(el);
  18288. if (width !== style.width || height !== style.height) {
  18289. binding.value(); // 关键
  18290. }
  18291. width = style.width;
  18292. height = style.height;
  18293. }
  18294. el.__vueSetInterval__ = setInterval(isReize, 300);
  18295. },
  18296. unbind(el) {
  18297. clearInterval(el.__vueSetInterval__);
  18298. },
  18299. },
  18300. },
  18301. beforeDestroy() {
  18302. window.onresize = null;
  18303. clearInterval(this.timer);
  18304. this.timer = null;
  18305. clearInterval(this.opertimer);
  18306. this.opertimer = null;
  18307. },
  18308. computed: {
  18309. contentConvent() {
  18310. return function (c) {
  18311. return c
  18312. ? c
  18313. .replaceAll(/\r\n/g, "<br/>")
  18314. .replaceAll(/\n/g, "<br/>")
  18315. .replaceAll(/\s/g, " &nbsp")
  18316. : "";
  18317. };
  18318. },
  18319. checkUpload() {
  18320. return function () {
  18321. var studentK = [];
  18322. if (this.plworkFile.length > 0) {
  18323. for (var z = 0; z < this.plworkFile.length; z++) {
  18324. studentK.push(this.plworkFile[z].username);
  18325. }
  18326. studentK = studentK.join(",");
  18327. }
  18328. var a = this.uploadStudentJuri.filter((el) => {
  18329. return studentK.indexOf(el.userid) == -1;
  18330. });
  18331. return a;
  18332. };
  18333. },
  18334. getSName() {
  18335. return function (name) {
  18336. var check = name;
  18337. this.uploadStudentJuri.forEach((el) => {
  18338. if (el.userid == check) {
  18339. check = el.name ? el.name : el.username;
  18340. }
  18341. });
  18342. return check;
  18343. };
  18344. },
  18345. getImgList() {
  18346. return function (val) {
  18347. let srcList = []; // 定义一个数组用来接收后面的img地址
  18348. val.replace(
  18349. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  18350. function (match, capture) {
  18351. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  18352. srcList.push(capture);
  18353. }
  18354. );
  18355. return srcList;
  18356. };
  18357. },
  18358. },
  18359. mounted() {
  18360. document.body.addEventListener("click", (e) => {
  18361. if (this.isUpdateToolDetail) {
  18362. this.updateToolDetail();
  18363. }
  18364. });
  18365. if (this.screenType == 2) {
  18366. window.parent.postMessage({ allScreen: 4 }, "*");
  18367. } else if (this.screenType == 3) {
  18368. window.parent.postMessage({ allScreen: 5 }, "*");
  18369. } else if (this.screenType == 1) {
  18370. window.parent.postMessage({ allScreen: 6 }, "*");
  18371. }
  18372. this.setOperationTime();
  18373. this.selectEva();
  18374. this.getCourseDetail();
  18375. this.selectCount();
  18376. this.getHomeWork();
  18377. this.toolIndex = null;
  18378. this.contentDialog = true;
  18379. this.setContent2(true);
  18380. if (this.tType == 4) {
  18381. this.pzDialog = true;
  18382. this.selectPz();
  18383. }
  18384. document.scrollingElement.scrollTop = 0;
  18385. window.addEventListener("resize", () => {
  18386. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18387. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18388. if (this.showType == 2 || this.showType == 3) {
  18389. document.getElementsByClassName("navBox")[0].style.height =
  18390. a - 40 + 46 + "px";
  18391. } else {
  18392. document.getElementsByClassName("navBox")[0].style.height =
  18393. a - 40 + "px";
  18394. }
  18395. });
  18396. let _this = this;
  18397. setTimeout(() => {
  18398. // _this.vedioTime = [];
  18399. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  18400. // _this.vedioTime[i] = document.getElementsByClassName(
  18401. // "vjs-duration-display"
  18402. // )[i].textContent;
  18403. // }
  18404. }, 1000);
  18405. },
  18406. };
  18407. </script>
  18408. <style scoped>
  18409. @media screen and (max-width: 1280px) {
  18410. /* .courseIndex > div:first-child(2) {
  18411. width: 15% !important;
  18412. } */
  18413. /* .navText {
  18414. width: 120px !important;
  18415. } */
  18416. .evaCss {
  18417. flex-direction: column !important;
  18418. align-items: center !important;
  18419. }
  18420. .dialog_diy1 >>> .el-dialog {
  18421. width: 100% !important;
  18422. }
  18423. .rightWidthCss {
  18424. width: 100% !important;
  18425. }
  18426. .dialog_diy3 >>> .el-dialog {
  18427. width: 100% !important;
  18428. }
  18429. /* .textTitle >>> .el-form-item__label {
  18430. width: 150px !important;
  18431. } */
  18432. }
  18433. .evaCssMax {
  18434. flex-direction: column !important;
  18435. align-items: center !important;
  18436. }
  18437. .dialog_diy >>> .el-dialog {
  18438. margin-top: 10vh !important;
  18439. }
  18440. .body_student {
  18441. width: 77%;
  18442. height: 100%;
  18443. position: absolute;
  18444. left: 22%;
  18445. top: 0;
  18446. }
  18447. .student_head {
  18448. width: 100%;
  18449. margin: 20px auto 0;
  18450. padding-bottom: 20px;
  18451. display: flex;
  18452. flex-direction: column;
  18453. flex-wrap: nowrap;
  18454. align-items: flex-start;
  18455. justify-content: flex-start;
  18456. }
  18457. .pb_left {
  18458. width: 20%;
  18459. margin-right: 10px;
  18460. background: rgb(255, 255, 255);
  18461. position: fixed;
  18462. height: calc(100% - 40px);
  18463. border-radius: 20px;
  18464. padding-bottom: 15px;
  18465. box-sizing: border-box;
  18466. }
  18467. .wheel > img,
  18468. .project > img,
  18469. .star > img,
  18470. .evaluate > img,
  18471. .up_photo > img,
  18472. .chapter_add > img,
  18473. .deleteWord > img,
  18474. .question > img,
  18475. .homework > img {
  18476. width: 100%;
  18477. height: 100%;
  18478. }
  18479. .upCover > img {
  18480. width: 131px;
  18481. height: 69px;
  18482. object-fit: cover;
  18483. }
  18484. .upCover {
  18485. width: calc(100% / 3.5);
  18486. position: relative;
  18487. margin: 0 15px 10px 0;
  18488. display: flex;
  18489. flex-direction: column;
  18490. flex-wrap: nowrap;
  18491. justify-content: center;
  18492. align-content: center;
  18493. align-items: center;
  18494. height: fit-content;
  18495. }
  18496. .upCover2 {
  18497. width: 100%;
  18498. position: relative;
  18499. margin: 0 15px 10px 0;
  18500. display: flex;
  18501. flex-direction: column;
  18502. flex-wrap: nowrap;
  18503. justify-content: center;
  18504. align-content: center;
  18505. align-items: center;
  18506. }
  18507. .upCover2 > img {
  18508. width: 100%;
  18509. height: 90px;
  18510. object-fit: contain;
  18511. }
  18512. .chapter_add {
  18513. width: 120px;
  18514. position: relative;
  18515. text-align: center;
  18516. }
  18517. .isAddThings {
  18518. margin-top: 20px;
  18519. position: relative;
  18520. text-align: center;
  18521. background: #f7f8fa;
  18522. height: 90px;
  18523. width: 90px;
  18524. display: flex;
  18525. flex-direction: column;
  18526. justify-content: center;
  18527. }
  18528. .deleteWord {
  18529. width: 22px;
  18530. height: 22px;
  18531. position: absolute;
  18532. right: -5px;
  18533. top: -5px;
  18534. cursor: pointer;
  18535. }
  18536. .box_course {
  18537. /* width: 60%; */
  18538. width: calc(100% - 300px);
  18539. }
  18540. .wheel {
  18541. width: 100%;
  18542. /* height: 100%; */
  18543. height: 650px;
  18544. }
  18545. .right_box {
  18546. display: flex;
  18547. flex-direction: column;
  18548. margin-left: 30px;
  18549. justify-content: space-around;
  18550. }
  18551. .right_box_title {
  18552. font-size: 23px;
  18553. }
  18554. .people {
  18555. display: flex;
  18556. }
  18557. .student_body {
  18558. width: 100%;
  18559. margin: 0 auto;
  18560. margin-top: 10px;
  18561. padding: 0 0 20px;
  18562. border-radius: 20px;
  18563. background: #fff;
  18564. }
  18565. .study_top {
  18566. margin-top: 100px;
  18567. width: 100%;
  18568. /* overflow: auto; */
  18569. height: auto;
  18570. padding-bottom: 20px;
  18571. }
  18572. .study_top .checkbox {
  18573. display: flex;
  18574. align-items: center;
  18575. padding: 15px 0 15px 30px;
  18576. flex: 0 0 auto;
  18577. font-weight: bold;
  18578. border-bottom: 1px solid #eee;
  18579. }
  18580. .study_top .check {
  18581. padding-bottom: 5px;
  18582. text-align: center;
  18583. cursor: pointer;
  18584. height: 30px;
  18585. box-sizing: border-box;
  18586. display: flex;
  18587. }
  18588. .study_top .checked {
  18589. border-bottom: 4px solid #3fc6a0;
  18590. padding-bottom: 5px;
  18591. color: #3fc6a0;
  18592. display: flex;
  18593. height: 35px;
  18594. }
  18595. .study_top .checked > div,
  18596. .study_top .check > div {
  18597. margin-right: 5px;
  18598. }
  18599. .videoTop {
  18600. display: flex;
  18601. flex-direction: row;
  18602. justify-content: space-between;
  18603. background: #fff;
  18604. align-items: center;
  18605. width: 95%;
  18606. padding: 20px;
  18607. }
  18608. .upbtn {
  18609. margin: 25px;
  18610. background: #70afdb;
  18611. color: #fff;
  18612. width: 120px;
  18613. text-align: center;
  18614. height: 30px;
  18615. line-height: 30px;
  18616. font-size: 13px;
  18617. border-radius: 5px;
  18618. cursor: pointer;
  18619. }
  18620. .filebox {
  18621. display: flex;
  18622. flex-wrap: wrap;
  18623. flex-direction: column;
  18624. padding: 0 0 5px;
  18625. }
  18626. .filebox .tooldetail {
  18627. width: 100%;
  18628. margin: 0px 12px;
  18629. background: rgb(247, 247, 247);
  18630. padding: 20px;
  18631. line-height: 30px;
  18632. word-break: break-word;
  18633. }
  18634. .file {
  18635. display: flex;
  18636. flex-direction: column;
  18637. align-items: center;
  18638. justify-content: center;
  18639. cursor: pointer;
  18640. width: 200px;
  18641. }
  18642. .file div {
  18643. margin-top: 10px;
  18644. width: 150px;
  18645. text-align: center;
  18646. overflow: hidden;
  18647. white-space: nowrap;
  18648. text-overflow: ellipsis;
  18649. }
  18650. .media {
  18651. display: flex;
  18652. flex-direction: column;
  18653. align-items: center;
  18654. justify-content: center;
  18655. margin: 0 20px 20px 0;
  18656. cursor: pointer;
  18657. margin: 12px 0 5px 15px;
  18658. overflow: hidden;
  18659. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  18660. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  18661. box-sizing: border-box;
  18662. }
  18663. .media img {
  18664. height: 90px;
  18665. width: 160px;
  18666. object-fit: cover;
  18667. }
  18668. .media .title {
  18669. padding: 5px;
  18670. text-align: left;
  18671. width: 100%;
  18672. box-sizing: border-box;
  18673. }
  18674. .media .btn {
  18675. width: 100%;
  18676. height: 35px;
  18677. line-height: 35px;
  18678. color: #fff;
  18679. background: #606060;
  18680. text-align: center;
  18681. overflow: hidden;
  18682. white-space: nowrap;
  18683. text-overflow: ellipsis;
  18684. }
  18685. .detail_content_top {
  18686. width: 100%;
  18687. padding: 25px 0 25px 0;
  18688. }
  18689. .detail_title {
  18690. text-align: center;
  18691. font-size: 24px;
  18692. }
  18693. .detail_time {
  18694. font-size: 13px;
  18695. padding: 15px 0 0 40px;
  18696. }
  18697. .detail_content {
  18698. line-height: 2pc;
  18699. width: 90%;
  18700. margin: 0 auto;
  18701. padding-top: 30px;
  18702. text-indent: 30px;
  18703. overflow: auto;
  18704. height: 200px;
  18705. }
  18706. .score_box >>> .el-rate {
  18707. margin-left: 10px;
  18708. }
  18709. .dialog_change >>> .el-dialog {
  18710. border-radius: 5px;
  18711. }
  18712. .dialog_change >>> .el-dialog__header {
  18713. background: #f2f2f2;
  18714. text-align: center;
  18715. }
  18716. .dialog_change >>> .el-dialog__title {
  18717. line-height: 5px;
  18718. }
  18719. .dialog_change >>> .el-dialog__body {
  18720. background: #fff;
  18721. padding: 10px 20px;
  18722. }
  18723. .score_box {
  18724. display: flex;
  18725. align-items: center;
  18726. margin-bottom: 18px;
  18727. margin-top: 20px;
  18728. }
  18729. .up_photo {
  18730. width: 120px;
  18731. cursor: pointer;
  18732. margin-top: 10px;
  18733. }
  18734. .up_photo2 {
  18735. width: 180px;
  18736. box-sizing: border-box;
  18737. min-width: 180px;
  18738. height: 180px;
  18739. max-height: 180px;
  18740. min-height: 180px;
  18741. cursor: pointer;
  18742. display: flex;
  18743. flex-direction: column;
  18744. align-items: center;
  18745. justify-content: center;
  18746. background: rgb(242, 246, 255);
  18747. /* padding: 25px; */
  18748. margin-bottom: 10px;
  18749. }
  18750. .up_photo2 img {
  18751. width: 50%;
  18752. height: auto;
  18753. }
  18754. .up_photo2 span {
  18755. color: #898989;
  18756. }
  18757. .plworkBox {
  18758. display: flex;
  18759. align-items: center;
  18760. margin-top: 10px;
  18761. flex-wrap: wrap;
  18762. }
  18763. .upload_send {
  18764. margin: 30px auto 30px;
  18765. width: 60%;
  18766. background: #169bd6;
  18767. text-align: center;
  18768. height: 35px;
  18769. line-height: 35px;
  18770. color: #fff;
  18771. border-radius: 5px;
  18772. cursor: pointer;
  18773. }
  18774. .marginT {
  18775. margin-top: 20px;
  18776. }
  18777. .cd_content_steps {
  18778. display: flex;
  18779. width: 90%;
  18780. justify-content: space-around;
  18781. border-top: 1px solid #eeeeee;
  18782. }
  18783. .cd_steps_box {
  18784. display: flex;
  18785. justify-content: center;
  18786. align-items: center;
  18787. flex-direction: column;
  18788. cursor: pointer;
  18789. }
  18790. .first {
  18791. display: flex;
  18792. align-items: center;
  18793. margin: 15px 0 20px 0;
  18794. font-size: 20px;
  18795. }
  18796. .first > div:nth-child(2) {
  18797. font-size: 16px !important;
  18798. padding-left: 10px;
  18799. line-height: 26px;
  18800. box-sizing: border-box;
  18801. }
  18802. .blue_box_one {
  18803. text-align: center;
  18804. color: #fff;
  18805. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  18806. border-radius: 7px;
  18807. margin: 10px;
  18808. cursor: pointer;
  18809. width: 95%;
  18810. height: 45px;
  18811. display: flex;
  18812. flex-direction: row;
  18813. justify-content: flex-start;
  18814. align-items: center;
  18815. }
  18816. .blue_box_one > div:nth-child(1) {
  18817. line-height: 30px;
  18818. margin: 0 5px 0 10px;
  18819. width: 30%;
  18820. min-width: 70px;
  18821. border-radius: 4px;
  18822. }
  18823. .blue_box_one > div:nth-child(2) {
  18824. white-space: nowrap;
  18825. text-overflow: ellipsis;
  18826. overflow: hidden;
  18827. word-break: break-all;
  18828. width: 70%;
  18829. text-align: left;
  18830. margin-right: 10px;
  18831. max-width: calc(100% - 85px);
  18832. }
  18833. .blue_box_one > div:nth-child(2):hover {
  18834. overflow: hidden;
  18835. text-overflow: ellipsis;
  18836. white-space: nowrap;
  18837. cursor: pointer;
  18838. }
  18839. .upFile {
  18840. margin: 0 auto;
  18841. width: 120px;
  18842. background: #70afdb;
  18843. color: #fff;
  18844. height: 30px;
  18845. text-align: center;
  18846. line-height: 30px;
  18847. border-radius: 5px;
  18848. font-size: 14px;
  18849. cursor: pointer;
  18850. }
  18851. .courseTitle {
  18852. width: 85%;
  18853. margin: 10px auto;
  18854. display: flex;
  18855. flex-direction: row;
  18856. align-items: center;
  18857. justify-content: space-between;
  18858. text-align: center;
  18859. }
  18860. .courseTitle .ctitle {
  18861. font-size: 20px;
  18862. font-weight: bold;
  18863. color: #0e1e33;
  18864. white-space: nowrap;
  18865. overflow: hidden;
  18866. text-overflow: ellipsis;
  18867. }
  18868. .courseTitle .inviteBox {
  18869. font-size: 14px;
  18870. margin-top: 5px;
  18871. color: #a6cbff;
  18872. }
  18873. .courseTitle >>> .el-tooltip {
  18874. width: 100%;
  18875. white-space: nowrap;
  18876. overflow: hidden;
  18877. text-overflow: ellipsis;
  18878. word-break: break-word;
  18879. }
  18880. .ml {
  18881. margin-left: 20px;
  18882. color: #5b7dba;
  18883. border-left: 3px solid #5b7dba;
  18884. padding-left: 5px;
  18885. font-weight: bold;
  18886. }
  18887. .return {
  18888. width: 2rem;
  18889. height: 2rem;
  18890. cursor: pointer;
  18891. }
  18892. .return > img {
  18893. width: 100%;
  18894. height: 100%;
  18895. }
  18896. .returnBtn {
  18897. width: 86px;
  18898. height: 36px;
  18899. background: #3681fc;
  18900. border-radius: 4px;
  18901. color: #fff;
  18902. text-align: center;
  18903. line-height: 36px;
  18904. margin-right: 20px;
  18905. cursor: pointer;
  18906. font-size: 14px;
  18907. font-weight: 400;
  18908. display: flex;
  18909. flex-direction: row;
  18910. flex-wrap: nowrap;
  18911. align-items: center;
  18912. justify-content: center;
  18913. }
  18914. .tool {
  18915. display: flex;
  18916. flex-direction: column;
  18917. flex-wrap: nowrap;
  18918. width: 13%;
  18919. margin: 0 30px;
  18920. align-items: center;
  18921. }
  18922. .whiteBIcon {
  18923. width: 150px;
  18924. cursor: pointer;
  18925. }
  18926. .whiteBIcon > img {
  18927. width: 100%;
  18928. height: 100%;
  18929. }
  18930. .mask {
  18931. background-color: rgba(0, 0, 0, 0);
  18932. position: fixed;
  18933. top: 0;
  18934. left: 0;
  18935. width: 100%;
  18936. height: 100%;
  18937. z-index: 20000;
  18938. display: flex;
  18939. align-items: center;
  18940. justify-content: center;
  18941. }
  18942. .progressBox {
  18943. width: 500px;
  18944. height: 180px;
  18945. background: #fff;
  18946. border-radius: 10px;
  18947. box-shadow: 0 0 6px 1px #bfbfbf;
  18948. display: flex;
  18949. align-items: center;
  18950. justify-content: center;
  18951. flex-direction: column;
  18952. position: relative;
  18953. color: #6c6c6c;
  18954. }
  18955. .progressBox >>> .el-progress-bar__outer {
  18956. background-color: #d1dfff !important;
  18957. }
  18958. .progressBox .lbox {
  18959. height: 50px;
  18960. font-size: 19px;
  18961. display: flex;
  18962. align-items: center;
  18963. color: #747474;
  18964. }
  18965. .progressBox .lbox img {
  18966. width: 40px;
  18967. margin-right: 20px;
  18968. }
  18969. .closeCss {
  18970. position: absolute;
  18971. top: 8px;
  18972. right: 8px;
  18973. cursor: pointer;
  18974. width: 20px;
  18975. height: 20px;
  18976. }
  18977. .closeCss > img {
  18978. width: 100%;
  18979. height: 100%;
  18980. }
  18981. .uploadVedio {
  18982. display: flex;
  18983. flex-direction: column;
  18984. flex-wrap: nowrap;
  18985. justify-content: center;
  18986. align-items: center;
  18987. margin: 0 15px 10px 0;
  18988. }
  18989. .uploadVedio > img {
  18990. width: 30px;
  18991. height: 30px;
  18992. }
  18993. .uploadVedio > span {
  18994. white-space: nowrap;
  18995. overflow: hidden;
  18996. text-overflow: ellipsis;
  18997. width: 75px;
  18998. margin-top: 7px;
  18999. }
  19000. .picName {
  19001. white-space: nowrap;
  19002. overflow: hidden;
  19003. text-overflow: ellipsis;
  19004. width: 75px;
  19005. margin-top: 7px;
  19006. }
  19007. .new_top {
  19008. display: flex;
  19009. background: #fff;
  19010. flex-direction: row;
  19011. justify-content: flex-start;
  19012. align-items: center;
  19013. height: 60px;
  19014. position: fixed;
  19015. top: 20px;
  19016. left: 22%;
  19017. width: 77%;
  19018. z-index: 999;
  19019. border-radius: 12px 12px 0 0;
  19020. border-bottom: 1px solid #cad1dc;
  19021. padding: 10px 0;
  19022. }
  19023. .new_topFixed {
  19024. width: 100%;
  19025. height: 40px;
  19026. position: fixed;
  19027. top: 0px;
  19028. display: block;
  19029. background: #f2f2f2;
  19030. z-index: 998;
  19031. }
  19032. .before {
  19033. position: absolute;
  19034. background: #c3dad4;
  19035. width: 6px;
  19036. height: 100%;
  19037. }
  19038. .courseIndex {
  19039. display: flex;
  19040. flex-direction: row;
  19041. align-items: center;
  19042. width: calc(100% - 745px);
  19043. }
  19044. .courseIndex > div:nth-child(1) {
  19045. margin: 0 0 0 10px;
  19046. font-size: 20px;
  19047. min-width: 100px;
  19048. font-weight: bold;
  19049. border-left: 4px solid #3363b9;
  19050. height: 32px;
  19051. text-align: center;
  19052. line-height: 35px;
  19053. }
  19054. .courseIndex > div:nth-child(2) {
  19055. font-size: 20px;
  19056. /* width: 300px; */
  19057. max-width: calc(100% - 105px);
  19058. white-space: nowrap;
  19059. overflow: hidden;
  19060. text-overflow: ellipsis;
  19061. }
  19062. .courseIndex > div:nth-child(3) {
  19063. border-bottom: 1px solid #d7d7d7;
  19064. padding-bottom: 5px;
  19065. background: #49a0f0;
  19066. width: 55px;
  19067. min-width: 55px;
  19068. border-radius: 5px;
  19069. color: #fff;
  19070. text-align: center;
  19071. height: 20px;
  19072. line-height: 26px;
  19073. font-size: 14px;
  19074. margin: 0 0 0 10px;
  19075. }
  19076. .course_text {
  19077. padding: 20px 0 0 15px;
  19078. text-indent: 30px;
  19079. width: 80%;
  19080. min-height: 20px;
  19081. }
  19082. .vedioList {
  19083. background: #f2f2f2;
  19084. border: 1px solid #ececec;
  19085. /* width: 38.8%; */
  19086. width: 300px;
  19087. height: 445px;
  19088. border-radius: 10px;
  19089. overflow: hidden;
  19090. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  19091. }
  19092. .vedioNav {
  19093. margin: 10px 0 0 15px;
  19094. border-bottom: 1px solid #d7d7d7;
  19095. padding-bottom: 5px;
  19096. background: #96d1ff;
  19097. width: 55px;
  19098. min-width: 55px;
  19099. border-radius: 5px;
  19100. color: #fff;
  19101. text-align: center;
  19102. height: 20px;
  19103. line-height: 26px;
  19104. font-size: 14px;
  19105. }
  19106. .queTop {
  19107. display: flex;
  19108. padding: 20px 0 20px 30px;
  19109. width: 100%;
  19110. flex-direction: row;
  19111. justify-content: flex-start;
  19112. align-items: center;
  19113. box-sizing: border-box;
  19114. }
  19115. .queTopTitle {
  19116. display: flex;
  19117. flex-direction: row;
  19118. flex-wrap: nowrap;
  19119. align-items: center;
  19120. font-weight: bold;
  19121. font-size: 20px;
  19122. color: rgb(14, 30, 51);
  19123. }
  19124. .queTopTitle::before {
  19125. content: "";
  19126. width: 2px;
  19127. height: 22px;
  19128. background: #3681fc;
  19129. border-radius: 3px;
  19130. display: block;
  19131. margin: 2px 6px 0 0;
  19132. }
  19133. .queTopRight {
  19134. display: flex;
  19135. flex-direction: row;
  19136. flex-wrap: nowrap;
  19137. align-items: center;
  19138. }
  19139. .queTopClose {
  19140. margin-right: 20px;
  19141. cursor: pointer;
  19142. position: relative;
  19143. display: flex;
  19144. }
  19145. .closeImg,
  19146. .openImg {
  19147. width: 25px;
  19148. height: 25px;
  19149. position: absolute;
  19150. left: -20px;
  19151. top: -1px;
  19152. }
  19153. .closeImg > img,
  19154. .openImg > img {
  19155. width: 100%;
  19156. height: 100%;
  19157. }
  19158. .question {
  19159. width: 40px;
  19160. margin-right: 10px;
  19161. margin-top: 7px;
  19162. }
  19163. .queTitle {
  19164. margin-left: 5px;
  19165. font-size: 25px;
  19166. display: flex;
  19167. align-items: center;
  19168. }
  19169. .addEditor {
  19170. width: 100px;
  19171. height: 30px;
  19172. background: #42cda6;
  19173. color: #fff;
  19174. border-radius: 5px;
  19175. text-align: center;
  19176. line-height: 30px;
  19177. box-shadow: 1px 3px 6px 1px #bfbfbf;
  19178. cursor: pointer;
  19179. }
  19180. .vedioName {
  19181. /* text-overflow: ellipsis;
  19182. top: 8px;
  19183. font-size: 14px;
  19184. overflow: hidden;
  19185. width: 100%;
  19186. word-break: break-all;
  19187. white-space: nowrap; */
  19188. cursor: pointer;
  19189. margin: 0px 0px 10px 5px;
  19190. white-space: nowrap;
  19191. overflow: hidden;
  19192. text-overflow: ellipsis;
  19193. width: 100%;
  19194. }
  19195. .vedioTime {
  19196. width: 35px;
  19197. position: absolute;
  19198. color: #fff;
  19199. bottom: 0px;
  19200. right: 0px;
  19201. text-align: center;
  19202. background: #46411f;
  19203. height: 20px;
  19204. font-size: 14px;
  19205. line-height: 20px;
  19206. }
  19207. .homework {
  19208. width: 200px;
  19209. display: flex;
  19210. flex-direction: column;
  19211. flex-wrap: nowrap;
  19212. align-items: center;
  19213. cursor: pointer;
  19214. }
  19215. .homebox {
  19216. display: flex;
  19217. flex-wrap: wrap;
  19218. flex-direction: row;
  19219. justify-content: flex-start;
  19220. align-items: center;
  19221. padding: 15px 0;
  19222. }
  19223. .isChooseActive {
  19224. color: #3e88f4;
  19225. border-bottom: 2px solid #2f80f3;
  19226. }
  19227. .chooseWho {
  19228. display: flex;
  19229. width: 100%;
  19230. flex-direction: row;
  19231. flex-wrap: nowrap;
  19232. justify-content: flex-start;
  19233. padding-bottom: 10px;
  19234. }
  19235. .chooseWho > div {
  19236. cursor: pointer;
  19237. padding-bottom: 10px;
  19238. margin: 0 30px 0 0;
  19239. font-weight: 400;
  19240. color: #0e1e33;
  19241. }
  19242. .addPoint > div > img {
  19243. cursor: pointer;
  19244. margin: 0 10px;
  19245. width: 85px;
  19246. border-radius: 15px;
  19247. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  19248. }
  19249. .addPoint > div {
  19250. display: flex;
  19251. flex-direction: column;
  19252. flex-wrap: nowrap;
  19253. align-items: center;
  19254. }
  19255. .isBorder > div {
  19256. margin: 0 0 10px 0;
  19257. align-items: flex-start !important;
  19258. }
  19259. .noiframeBox {
  19260. display: flex;
  19261. flex-wrap: wrap;
  19262. }
  19263. .iframeBox iframe {
  19264. width: 100%;
  19265. height: 800px;
  19266. border: none;
  19267. margin-bottom: 20px;
  19268. border: 1px solid #ccc;
  19269. }
  19270. .upload_toolBtn {
  19271. background: #6b92c9;
  19272. color: #fff;
  19273. width: 110px;
  19274. text-align: center;
  19275. height: 35px;
  19276. line-height: 35px;
  19277. font-size: 14px;
  19278. border-radius: 5px;
  19279. cursor: pointer;
  19280. position: absolute;
  19281. right: 10px;
  19282. bottom: 0;
  19283. }
  19284. .binfo_input,
  19285. .pj {
  19286. font: inherit;
  19287. color: currentColor;
  19288. width: 100%;
  19289. margin: 0;
  19290. padding: 15px 14px;
  19291. display: block;
  19292. min-width: 0;
  19293. outline: none;
  19294. box-sizing: content-box;
  19295. background: none;
  19296. -webkit-tap-highlight-color: transparent;
  19297. border: 1px solid rgba(0, 0, 0, 0.23);
  19298. border-radius: 4px;
  19299. box-sizing: border-box;
  19300. resize: none;
  19301. }
  19302. .binfo_input:focus-visible {
  19303. border: 1px solid rgba(61, 103, 188);
  19304. }
  19305. .dialog_diy >>> .el-dialog__header,
  19306. .dialog_diy1 >>> .el-dialog__header {
  19307. background: #454545 !important;
  19308. padding: 15px 20px;
  19309. }
  19310. .dialog_diy >>> .el-dialog__title,
  19311. .dialog_diy1 >>> .el-dialog__title {
  19312. color: #fff;
  19313. }
  19314. .dialog_diy >>> .el-dialog__headerbtn,
  19315. .dialog_diy1 >>> .el-dialog__headerbtn {
  19316. top: 19px;
  19317. }
  19318. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  19319. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  19320. color: #fff;
  19321. }
  19322. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  19323. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  19324. color: #fff;
  19325. }
  19326. .dialog_diy1 >>> .el-dialog__body {
  19327. padding: 0;
  19328. }
  19329. .dialog_diy >>> .el-dialog__body,
  19330. .dialog_diy >>> .el-dialog__footer,
  19331. .dialog_diy1 >>> .el-dialog__footer {
  19332. background: #fafafa;
  19333. }
  19334. .a_addBox {
  19335. padding: 0 0 0 15px;
  19336. }
  19337. .a_add_box {
  19338. padding: 10px;
  19339. background: #fff;
  19340. margin-bottom: 10px;
  19341. border-radius: 5px;
  19342. box-shadow: 0 0 5px 0 #d5d5d5;
  19343. }
  19344. .askIndex {
  19345. background: #3681fc;
  19346. border-radius: 50%;
  19347. color: #fff;
  19348. width: 25px;
  19349. height: 25px;
  19350. min-width: 25px;
  19351. min-height: 25px;
  19352. text-align: center;
  19353. line-height: 25px;
  19354. margin-right: 5px;
  19355. }
  19356. .a_add_head {
  19357. display: flex;
  19358. align-items: flex-start;
  19359. /* justify-content: space-between; */
  19360. flex-direction: column;
  19361. /* flex-direction: row; */
  19362. margin: 10px 0 20px 0;
  19363. font-size: 18px;
  19364. width: 100%;
  19365. }
  19366. .a_add_head .a_add_head_input {
  19367. width: 300px;
  19368. }
  19369. .a_add_head .a_add_head_div {
  19370. display: flex;
  19371. align-items: center;
  19372. justify-content: space-between;
  19373. }
  19374. .a_add_body {
  19375. display: flex;
  19376. align-items: center;
  19377. }
  19378. .a_add_input {
  19379. display: flex;
  19380. align-items: center;
  19381. flex-wrap: wrap;
  19382. width: 100%;
  19383. }
  19384. .a_add_input >>> .el-radio-group,
  19385. .a_add_input >>> .el-checkbox-group {
  19386. width: 100%;
  19387. }
  19388. .a_add_input >>> .el-radio,
  19389. .a_add_input >>> .el-checkbox {
  19390. display: flex;
  19391. flex-direction: row;
  19392. flex-wrap: nowrap;
  19393. align-items: center;
  19394. padding: 15px 0;
  19395. }
  19396. .a_add_input >>> .el-radio:not(:last-child),
  19397. .a_add_input >>> .el-checkbox:not(:last-child) {
  19398. width: 100%;
  19399. border-bottom: 1px solid #efefef;
  19400. }
  19401. .redioStyle >>> .el-radio__label {
  19402. font-size: 18px;
  19403. }
  19404. .redioStyle >>> .el-radio__label > span,
  19405. .redioStyle >>> .el-checkbox__label > span {
  19406. word-break: break-all;
  19407. white-space: normal;
  19408. }
  19409. .redioStyle >>> .el-checkbox__label {
  19410. font-size: 18px;
  19411. }
  19412. .toolHeng2 {
  19413. width: 100%;
  19414. box-sizing: border-box;
  19415. }
  19416. .toolHeng {
  19417. display: flex;
  19418. flex-direction: row;
  19419. flex-wrap: wrap;
  19420. justify-content: flex-start;
  19421. align-items: center;
  19422. width: 100%;
  19423. }
  19424. .toolHeng > div {
  19425. padding-left: 20px;
  19426. }
  19427. .isWidth {
  19428. width: 20%;
  19429. }
  19430. .textTitle {
  19431. display: flex;
  19432. flex-direction: row;
  19433. flex-wrap: nowrap;
  19434. align-items: center;
  19435. width: 95%;
  19436. }
  19437. .textTitle >>> .el-form-item__label {
  19438. font-size: 22px;
  19439. color: #918f8f;
  19440. width: 100px;
  19441. }
  19442. .textTitle >>> .el-form-item__content {
  19443. width: calc(100% - 100px);
  19444. }
  19445. .textCss >>> .el-dialog {
  19446. width: 800px !important;
  19447. height: 400px;
  19448. background: #fafafa;
  19449. }
  19450. .textCss >>> .el-dialog__body {
  19451. margin: 55px 8% 0 8%;
  19452. padding: 0 !important;
  19453. }
  19454. .textCss >>> .el-dialog__footer {
  19455. padding-top: 38px;
  19456. }
  19457. .toolsCss >>> .el-dialog__body {
  19458. padding: 20px;
  19459. }
  19460. .lineCss >>> .el-dialog__body {
  19461. display: flex;
  19462. flex-direction: row;
  19463. align-items: center;
  19464. justify-content: center;
  19465. }
  19466. .newNav {
  19467. display: flex;
  19468. flex-direction: row;
  19469. align-items: baseline;
  19470. justify-content: flex-start;
  19471. }
  19472. .navText {
  19473. cursor: pointer;
  19474. white-space: nowrap;
  19475. overflow: hidden;
  19476. text-overflow: ellipsis;
  19477. width: 220px;
  19478. padding: 0 10px;
  19479. font-weight: 400;
  19480. color: #0e1e33;
  19481. }
  19482. .noVedio {
  19483. display: flex;
  19484. flex-direction: row;
  19485. justify-content: center;
  19486. align-content: center;
  19487. }
  19488. .noNavText {
  19489. cursor: pointer;
  19490. margin: 0px 0px 10px 5px;
  19491. width: 112px;
  19492. }
  19493. .listNoVedio {
  19494. margin: 0 0 0 30px;
  19495. width: 97%;
  19496. }
  19497. .video-player >>> .video-js {
  19498. height: 100%;
  19499. }
  19500. .hangVedioList {
  19501. width: 90% !important;
  19502. height: 150px !important;
  19503. margin: 20px 0 0 30px;
  19504. }
  19505. .hangVedio {
  19506. width: 100%;
  19507. height: 170px !important;
  19508. align-items: flex-start !important;
  19509. }
  19510. .hangHand {
  19511. height: 150px !important;
  19512. }
  19513. .twoChild {
  19514. width: 95%;
  19515. margin: 10px;
  19516. border-radius: 5px;
  19517. background: #f2f2f2;
  19518. display: flex;
  19519. flex-direction: column;
  19520. flex-wrap: nowrap;
  19521. justify-content: flex-start;
  19522. align-items: flex-start;
  19523. transition: all 0.5s;
  19524. overflow: hidden;
  19525. height: 0;
  19526. background: #e7f3ff;
  19527. }
  19528. .twoChild > div:nth-child(1) {
  19529. margin-top: 5px;
  19530. }
  19531. .navChild {
  19532. width: 100%;
  19533. cursor: pointer;
  19534. margin-bottom: 10px;
  19535. position: relative;
  19536. }
  19537. .navChild img {
  19538. position: absolute;
  19539. right: 11px;
  19540. width: 15px;
  19541. top: 50%;
  19542. transform: translateY(-50%);
  19543. }
  19544. .navActive,
  19545. .toolActive {
  19546. height: auto !important;
  19547. overflow: auto !important;
  19548. padding-bottom: 16px;
  19549. }
  19550. .toolActive {
  19551. padding: 0;
  19552. }
  19553. .navTask {
  19554. display: flex;
  19555. flex-direction: row;
  19556. flex-wrap: nowrap;
  19557. align-items: center;
  19558. align-content: flex-start;
  19559. height: 40px;
  19560. justify-content: flex-start;
  19561. padding: 0 10px;
  19562. width: 100%;
  19563. box-sizing: border-box;
  19564. }
  19565. .navTaskname {
  19566. white-space: nowrap;
  19567. text-overflow: ellipsis;
  19568. overflow: hidden;
  19569. word-break: break-all;
  19570. padding-left: 5px;
  19571. }
  19572. .openTaskActive {
  19573. background-color: #e0eafb !important;
  19574. color: #0061ff;
  19575. }
  19576. .iframeName {
  19577. margin: 5px 0;
  19578. border-left: 4px solid #41c4a4;
  19579. padding-left: 4px;
  19580. }
  19581. .toolTitle {
  19582. margin: 0px 0px 20px;
  19583. font-size: 20px;
  19584. font-weight: 500;
  19585. border-left: 4px solid #41c4a4;
  19586. padding-left: 4px;
  19587. }
  19588. .cru_selectBox {
  19589. overflow: auto;
  19590. width: 95%;
  19591. margin: 17px auto 0;
  19592. height: calc(100% - 40px - 21px - 20px - 17px);
  19593. }
  19594. .cru_selectBox::-webkit-scrollbar,
  19595. .study_top::-webkit-scrollbar,
  19596. .textContent::-webkit-scrollbar {
  19597. /*滚动条整体样式*/
  19598. width: 6px;
  19599. /*高宽分别对应横竖滚动条的尺寸*/
  19600. height: 6px;
  19601. }
  19602. /*定义滚动条轨道 内阴影+圆角*/
  19603. .cru_selectBox::-webkit-scrollbar-track,
  19604. .study_top::-webkit-scrollbar-track,
  19605. .textContent::-webkit-scrollbar {
  19606. border-radius: 10px;
  19607. background-color: #b8bdc9;
  19608. }
  19609. /*定义滑块 内阴影+圆角*/
  19610. .cru_selectBox::-webkit-scrollbar-thumb,
  19611. .study_top::-webkit-scrollbar-thumb,
  19612. .textContent::-webkit-scrollbar-thumb {
  19613. border-radius: 10px;
  19614. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  19615. background-color: #2c5ab3;
  19616. }
  19617. .vedioBox {
  19618. border-radius: 0 0 20px 20px;
  19619. background: #fff;
  19620. overflow: auto;
  19621. }
  19622. .taskBox {
  19623. width: 98%;
  19624. background: #f0f4fa;
  19625. margin: 10px auto;
  19626. padding: 0 10px;
  19627. border-radius: 4px;
  19628. box-sizing: border-box;
  19629. }
  19630. .vedioTaskBox {
  19631. width: 100%;
  19632. display: flex;
  19633. flex-direction: row;
  19634. flex-wrap: nowrap;
  19635. align-items: flex-start;
  19636. position: relative;
  19637. }
  19638. .toolBox {
  19639. padding: 0 60px 0;
  19640. display: flex;
  19641. position: relative;
  19642. }
  19643. .btnAll {
  19644. position: absolute;
  19645. right: 0;
  19646. display: flex;
  19647. flex-direction: row;
  19648. flex-wrap: nowrap;
  19649. align-items: center;
  19650. }
  19651. .btnLeft,
  19652. .btnRight {
  19653. display: flex;
  19654. flex-direction: row;
  19655. flex-wrap: nowrap;
  19656. align-items: center;
  19657. padding: 5px 0;
  19658. }
  19659. .btnLeft {
  19660. border-right: 1px solid #cad1dc;
  19661. }
  19662. .btnLeft > .custom-tooltip {
  19663. background: #3681fc;
  19664. color: #fff;
  19665. }
  19666. .last:hover {
  19667. background: #3383fa !important;
  19668. color: #fff;
  19669. border: 1px solid #3383fa !important;
  19670. }
  19671. .last,
  19672. .returnBtn1 {
  19673. width: 90px;
  19674. height: 36px;
  19675. background: #ffffff;
  19676. border-radius: 4px;
  19677. border: 1px solid #0061ff;
  19678. color: #0061ff;
  19679. cursor: pointer;
  19680. display: flex;
  19681. flex-direction: row;
  19682. flex-wrap: nowrap;
  19683. align-items: center;
  19684. justify-content: center;
  19685. margin-left: 12px;
  19686. }
  19687. .returnBtn1 {
  19688. background: #f0f4fa;
  19689. border-radius: 4px;
  19690. border: 1px solid #cad1dc;
  19691. margin: 0 12px;
  19692. }
  19693. .lastImg {
  19694. min-width: 15px;
  19695. width: 15px;
  19696. height: 15px;
  19697. }
  19698. .lastText {
  19699. padding: 0 5px 2px 5px;
  19700. box-sizing: border-box;
  19701. font-size: 14px;
  19702. }
  19703. .lastImg > img {
  19704. width: 100%;
  19705. height: 100%;
  19706. }
  19707. .reBtnIcon,
  19708. .commentIcon,
  19709. .vedioIcon,
  19710. .vedioIcon1 {
  19711. width: 36px;
  19712. height: 36px;
  19713. border-radius: 4px;
  19714. position: relative;
  19715. background: #e0eafb;
  19716. cursor: pointer;
  19717. margin-right: 12px;
  19718. }
  19719. .reBtnIcon::before,
  19720. .commentIcon::before,
  19721. .vedioIcon::before,
  19722. .vedioIcon::before {
  19723. content: "";
  19724. display: block;
  19725. background-size: 100% 100%;
  19726. background-repeat: no-repeat;
  19727. width: 20px;
  19728. height: 20px;
  19729. position: absolute;
  19730. top: 8px;
  19731. left: 8px;
  19732. }
  19733. .reBtnIcon::before {
  19734. background-image: url("../../assets/icon/newIcons/refresh.png");
  19735. }
  19736. .commentIcon::before {
  19737. background-image: url("../../assets/icon/newIcons/comment.png");
  19738. }
  19739. .vedioIcon::before {
  19740. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19741. }
  19742. .vedioIcon1::before {
  19743. background-image: url("../../assets/icon/newIcons/istranscribe.png");
  19744. }
  19745. .btnAllNT {
  19746. position: fixed;
  19747. bottom: 100px;
  19748. right: 40px;
  19749. z-index: 999;
  19750. display: flex;
  19751. flex-direction: row;
  19752. }
  19753. .btnAllNT > img {
  19754. cursor: pointer;
  19755. width: 80px;
  19756. }
  19757. /* .vedioTimeBox {
  19758. display: flex;
  19759. flex-direction: row;
  19760. align-items: center;
  19761. flex-wrap: nowrap;
  19762. position: relative;
  19763. } */
  19764. .navBox {
  19765. background: #fff;
  19766. height: calc(100% - 40px);
  19767. overflow-y: auto;
  19768. overflow-x: hidden;
  19769. }
  19770. .tool_work_box {
  19771. width: 100%;
  19772. padding: 0 37px 0;
  19773. box-sizing: border-box;
  19774. }
  19775. .worksBox {
  19776. padding: 5px 0;
  19777. border-bottom: 1px solid #eeeeee;
  19778. }
  19779. .worksBTitle {
  19780. font-size: 20px;
  19781. padding-bottom: 15px;
  19782. border-bottom: 1px solid #eeeeee;
  19783. display: flex;
  19784. align-items: center;
  19785. }
  19786. .greenBox {
  19787. width: 5px;
  19788. height: 30px;
  19789. background: #63b6fa;
  19790. margin-right: 5px;
  19791. }
  19792. .worksDetailBox {
  19793. display: flex;
  19794. width: 100%;
  19795. flex-direction: row;
  19796. flex-wrap: wrap;
  19797. align-items: flex-end;
  19798. justify-content: flex-start;
  19799. padding: 15px 0;
  19800. }
  19801. .works {
  19802. display: flex;
  19803. flex-direction: column;
  19804. flex-wrap: nowrap;
  19805. align-items: flex-start;
  19806. justify-content: flex-start;
  19807. align-content: center;
  19808. max-width: 240px;
  19809. width: calc(100% / 3 - 10px);
  19810. height: auto;
  19811. margin-right: 10px;
  19812. margin-bottom: 10px;
  19813. overflow: hidden;
  19814. height: 140px;
  19815. box-shadow: 0 0 6px 1px #dfdada;
  19816. border-radius: 15px;
  19817. }
  19818. .workImg {
  19819. width: 100%;
  19820. /* height: calc(100% - 40px); */
  19821. height: 105px;
  19822. position: relative;
  19823. }
  19824. .workImg > img {
  19825. width: 100%;
  19826. height: 100%;
  19827. object-fit: contain;
  19828. cursor: pointer;
  19829. }
  19830. .worksName {
  19831. height: 40px;
  19832. line-height: 40px;
  19833. display: flex;
  19834. width: 100%;
  19835. flex-direction: row;
  19836. flex-wrap: nowrap;
  19837. justify-content: space-between;
  19838. align-items: center;
  19839. margin: 0 0 0 10px;
  19840. }
  19841. .worksName > div:nth-child(1) {
  19842. width: 110px;
  19843. white-space: nowrap;
  19844. overflow: hidden;
  19845. text-overflow: ellipsis;
  19846. }
  19847. .worksName > div:nth-child(2) {
  19848. color: #b7b4b5;
  19849. }
  19850. .noWorksS {
  19851. padding: 15px 0 0;
  19852. display: flex;
  19853. flex-direction: row;
  19854. flex-wrap: wrap;
  19855. align-items: center;
  19856. justify-content: flex-start;
  19857. }
  19858. .noWorksS > div {
  19859. cursor: pointer;
  19860. }
  19861. .noWorksName,
  19862. .isWorksName,
  19863. .isWorksName2 {
  19864. background: #ddebf8;
  19865. color: #000;
  19866. width: 90px;
  19867. height: 25px;
  19868. text-align: center;
  19869. line-height: 25px;
  19870. border-radius: 4px;
  19871. margin: 10px 15px 10px 0;
  19872. white-space: nowrap;
  19873. overflow: hidden;
  19874. padding: 5px;
  19875. text-overflow: ellipsis;
  19876. cursor: pointer;
  19877. border: 1px solid #ddebf8;
  19878. }
  19879. .noWorksName{
  19880. background: #fff;
  19881. color: #0061FF;
  19882. border: 1px solid #0061FF;
  19883. }
  19884. .isWorksName2 {
  19885. width: 100px;
  19886. height: 40px;
  19887. line-height: 40px;
  19888. position: relative;
  19889. background: #dae6f9;
  19890. }
  19891. .noWorksName.isWork {
  19892. background: #e7ebf1 !important;
  19893. border: 1px solid #cad1dc !important;
  19894. color: #acb4bf !important;
  19895. }
  19896. .isWorksName {
  19897. cursor: pointer;
  19898. background: #46a1eb !important;
  19899. width: 100px;
  19900. height: 40px;
  19901. line-height: 40px;
  19902. position: relative;
  19903. }
  19904. .isSelectName,
  19905. .noWorksName:hover {
  19906. background: #3383fa;
  19907. color: #fff;
  19908. border: 1px solid #3383fa;
  19909. }
  19910. .title {
  19911. background: #1e5cc9;
  19912. /* width: 98%; */
  19913. height: 45px;
  19914. color: #fff;
  19915. line-height: 45px;
  19916. padding-left: 20px;
  19917. box-sizing: border-box;
  19918. }
  19919. .textBox {
  19920. font-size: 20px;
  19921. width: 90%;
  19922. display: flex;
  19923. flex-direction: column;
  19924. align-items: center;
  19925. margin: 20px auto 0;
  19926. max-height: calc(100% - 75px);
  19927. overflow: auto;
  19928. }
  19929. .textContent {
  19930. font-size: 18px;
  19931. width: 95%;
  19932. max-width: 95%;
  19933. }
  19934. .answerBg {
  19935. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  19936. background-size: 100% 100%;
  19937. width: 100%;
  19938. height: 100%;
  19939. color: #fff;
  19940. text-align: center;
  19941. display: flex;
  19942. flex-direction: column;
  19943. flex-wrap: nowrap;
  19944. align-items: center;
  19945. position: relative;
  19946. justify-content: center;
  19947. }
  19948. .answerBg > div:nth-child(1) {
  19949. /* font-size: 22px;
  19950. padding: 25px 0 10px; */
  19951. }
  19952. .answerContent {
  19953. width: 215px;
  19954. max-height: 60px;
  19955. word-break: break-all;
  19956. text-align: center;
  19957. /* white-space: nowrap; */
  19958. overflow: hidden;
  19959. text-overflow: ellipsis;
  19960. /* padding: 23px 0 0; */
  19961. -webkit-line-clamp: 3;
  19962. -webkit-box-orient: vertical;
  19963. display: -webkit-box;
  19964. font-size: 15px;
  19965. cursor: pointer;
  19966. }
  19967. .elist_input_box {
  19968. display: flex;
  19969. align-items: flex-start;
  19970. flex-wrap: nowrap;
  19971. padding: 10px 0 15px 30px;
  19972. flex-direction: column;
  19973. }
  19974. .elist_input {
  19975. /* width: 40%; */
  19976. width: 100%;
  19977. margin: 20px;
  19978. }
  19979. .elist_input .elist_input_box input {
  19980. font: inherit;
  19981. color: currentColor;
  19982. width: 200px;
  19983. padding: 8px 14px;
  19984. display: block;
  19985. min-width: 0;
  19986. outline: none;
  19987. border: 1px solid rgba(0, 0, 0, 0.23);
  19988. border-radius: 4px;
  19989. box-sizing: border-box;
  19990. background: #fff;
  19991. margin: 0 20px 0 0;
  19992. }
  19993. .elist_input .elist_input_box span {
  19994. height: 36px;
  19995. line-height: 36px;
  19996. color: rgb(82, 82, 82);
  19997. }
  19998. .elist_input .elist_input_box .remove {
  19999. height: 20px;
  20000. width: 20px;
  20001. background-size: 100% 100%;
  20002. background-position: unset;
  20003. margin-left: 5px;
  20004. }
  20005. .elist_input_box >>> .el-rate {
  20006. display: flex;
  20007. height: 36px;
  20008. align-items: center;
  20009. }
  20010. .elist_input_box .elist_inptu_text {
  20011. min-height: 50px;
  20012. /* width: 500px;
  20013. max-height: 150px; */
  20014. width: 100%;
  20015. line-height: 50px;
  20016. color: rgb(82, 82, 82);
  20017. overflow: auto;
  20018. text-indent: 5px;
  20019. background: #f7f6f9;
  20020. border-radius: 10px;
  20021. }
  20022. .elist_input_box .elist_inptu_text input {
  20023. width: 500px;
  20024. }
  20025. .elist_input_box >>> .el-rate__icon {
  20026. font-size: 24px;
  20027. }
  20028. .isClick {
  20029. background: #4d9def;
  20030. }
  20031. /*定义滚动条轨道 内阴影+圆角*/
  20032. .bzTypeBox::-webkit-scrollbar {
  20033. /*滚动条整体样式*/
  20034. width: 6px;
  20035. /*高宽分别对应横竖滚动条的尺寸*/
  20036. height: 6px;
  20037. }
  20038. /*定义滚动条轨道 内阴影+圆角*/
  20039. .bzTypeBox::-webkit-scrollbar-track {
  20040. border-radius: 10px;
  20041. background-color: rgba(0, 0, 0, 0.1);
  20042. }
  20043. /*定义滑块 内阴影+圆角*/
  20044. .bzTypeBox::-webkit-scrollbar-thumb {
  20045. border-radius: 10px;
  20046. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  20047. background-color: rgba(0, 0, 0, 0.1);
  20048. }
  20049. .choiceBox {
  20050. display: flex;
  20051. margin: 20px 0;
  20052. width: 100%;
  20053. }
  20054. .bzTypeBox {
  20055. display: flex;
  20056. width: 100%;
  20057. overflow: auto;
  20058. white-space: nowrap;
  20059. }
  20060. .bzChild {
  20061. cursor: pointer;
  20062. box-sizing: border-box;
  20063. padding-bottom: 10px;
  20064. font-weight: bold;
  20065. min-width: fit-content;
  20066. }
  20067. .bzChild.active {
  20068. color: #3e88f4;
  20069. border-bottom: 2px solid #2f80f3;
  20070. }
  20071. .bzChild + .bzChild {
  20072. margin-left: 25px;
  20073. }
  20074. .bzBox {
  20075. display: flex;
  20076. flex-direction: row;
  20077. align-items: center;
  20078. }
  20079. .bzBox .yCss {
  20080. width: 14px;
  20081. height: 14px;
  20082. background: #3681fc;
  20083. margin: 0 16px 0 7px;
  20084. border-radius: 50%;
  20085. }
  20086. .bzBox > div:nth-child(2) {
  20087. font-size: 18px;
  20088. font-weight: bold;
  20089. color: #0e1e33;
  20090. }
  20091. .navTitile {
  20092. padding: 0 0px 0 15px;
  20093. font-size: 16px;
  20094. font-weight: bold;
  20095. color: #0e1e33;
  20096. height: 40px;
  20097. line-height: 40px;
  20098. }
  20099. .isTypeOne {
  20100. width: 240px;
  20101. height: 170px;
  20102. /* border: 1px solid #f8f8f8; */
  20103. border-radius: 10px;
  20104. box-shadow: 0 0 6px 1px #dfdada;
  20105. }
  20106. .e_add_top {
  20107. display: flex;
  20108. justify-content: space-between;
  20109. padding: 20px 20px 0 20px;
  20110. border-radius: 3px;
  20111. background: #fff;
  20112. }
  20113. .e_add_title2 {
  20114. display: flex;
  20115. align-items: center;
  20116. }
  20117. .e_add_title2 span {
  20118. width: 40px;
  20119. }
  20120. .e_add_title {
  20121. display: flex;
  20122. align-items: center;
  20123. color: #b8b8b8;
  20124. font-size: 18px;
  20125. position: relative;
  20126. height: 40px;
  20127. }
  20128. .e_add_title span {
  20129. margin-right: 10px;
  20130. }
  20131. .e_add_title .el_input {
  20132. width: 300px;
  20133. }
  20134. .e_add_title >>> .el-input__inner {
  20135. width: 400px;
  20136. }
  20137. .e_add_btn {
  20138. }
  20139. .e_add_content {
  20140. display: flex;
  20141. width: 100%;
  20142. max-width: 650px;
  20143. height: 550px;
  20144. }
  20145. .e_add_list {
  20146. background: #fff;
  20147. height: 500px;
  20148. width: 210px;
  20149. position: relative;
  20150. margin: 15px 5px 0 0;
  20151. flex-shrink: 0;
  20152. display: flex;
  20153. flex-direction: column;
  20154. }
  20155. .e_add_list_title {
  20156. font-size: 20px;
  20157. width: 100%;
  20158. box-sizing: border-box;
  20159. padding: 15px 40px;
  20160. text-align: center;
  20161. border-bottom: 1px solid #eaeaea;
  20162. position: relative;
  20163. display: flex;
  20164. align-items: center;
  20165. justify-content: center;
  20166. height: 57px;
  20167. background: #f6f6f6;
  20168. }
  20169. .e_add_list_title span {
  20170. overflow: hidden;
  20171. white-space: nowrap;
  20172. text-overflow: ellipsis;
  20173. }
  20174. .e_add_list_title img {
  20175. position: absolute;
  20176. right: 15px;
  20177. width: 25px;
  20178. cursor: pointer;
  20179. top: 50%;
  20180. transform: translateY(-50%);
  20181. }
  20182. .e_add_list_body {
  20183. height: calc(100% - 187px);
  20184. overflow: auto;
  20185. }
  20186. .e_add_list_child {
  20187. width: 100%;
  20188. display: flex;
  20189. align-items: center;
  20190. justify-content: center;
  20191. position: relative;
  20192. box-sizing: border-box;
  20193. padding: 15px 40px;
  20194. text-align: center;
  20195. }
  20196. .e_add_list_child span {
  20197. overflow: hidden;
  20198. white-space: nowrap;
  20199. text-overflow: ellipsis;
  20200. cursor: pointer;
  20201. }
  20202. .e_add_list_child img {
  20203. position: absolute;
  20204. right: 10px;
  20205. width: 21px;
  20206. cursor: pointer;
  20207. top: 50%;
  20208. transform: translateY(-50%);
  20209. }
  20210. .e_add_list_child + .e_add_list_child {
  20211. border-top: 1px solid #eaeaea;
  20212. }
  20213. .e_add_list_child .active {
  20214. color: #409eff;
  20215. }
  20216. .e_add_list_btn {
  20217. position: absolute;
  20218. bottom: 0;
  20219. height: 50px;
  20220. background: rgb(120, 120, 254);
  20221. width: 100%;
  20222. color: #fff;
  20223. font-size: 16px;
  20224. text-align: center;
  20225. line-height: 50px;
  20226. cursor: pointer;
  20227. }
  20228. .e_add_list_detail {
  20229. position: absolute;
  20230. bottom: 0;
  20231. height: 130px;
  20232. background: rgb(120, 120, 254);
  20233. width: 100%;
  20234. color: #fff;
  20235. font-size: 16px;
  20236. display: flex;
  20237. align-items: center;
  20238. justify-content: center;
  20239. }
  20240. .e_add_list_detail textarea {
  20241. height: 90%;
  20242. width: 95%;
  20243. border: none;
  20244. resize: none;
  20245. outline: none;
  20246. padding: 5px;
  20247. box-sizing: border-box;
  20248. }
  20249. .e_add_list_pbox {
  20250. width: 100%;
  20251. max-width: 650px;
  20252. /* height: 600px; */
  20253. }
  20254. .e_add_list_pbox_title {
  20255. height: 50px;
  20256. background: #fff;
  20257. display: flex;
  20258. align-items: center;
  20259. width: 100%;
  20260. box-sizing: border-box;
  20261. padding: 0 20px;
  20262. }
  20263. .type_title {
  20264. font-size: 18px;
  20265. font-weight: 700;
  20266. }
  20267. .type_content {
  20268. font-size: 16px;
  20269. margin-left: 30px;
  20270. }
  20271. .type_content span + span {
  20272. margin-left: 20px;
  20273. }
  20274. .type_content span {
  20275. cursor: pointer;
  20276. padding-bottom: 5px;
  20277. box-sizing: border-box;
  20278. }
  20279. .type_content .active {
  20280. color: #409eff;
  20281. border-bottom: 2px solid #409eff;
  20282. }
  20283. .e_add_list_pbox_content {
  20284. height: calc(100% - 50px);
  20285. display: flex;
  20286. align-items: center;
  20287. width: 100%;
  20288. background: #fff;
  20289. }
  20290. .evaCss {
  20291. display: flex;
  20292. flex-direction: row;
  20293. flex-wrap: nowrap;
  20294. align-items: flex-start;
  20295. }
  20296. .cru_line {
  20297. position: absolute;
  20298. bottom: 0px;
  20299. transition: all 0.5s;
  20300. left: 0px;
  20301. width: 125px;
  20302. margin-left: -25px;
  20303. }
  20304. .isNoMessage {
  20305. width: 20%;
  20306. margin: 25% auto 0;
  20307. }
  20308. .isNoMessage > img {
  20309. width: 100%;
  20310. height: 100%;
  20311. }
  20312. .fullStyle >>> .el-dialog__body {
  20313. height: 100% !important;
  20314. }
  20315. .fullStyle >>> .el-dialog,
  20316. .fullStyle {
  20317. width: 100% !important;
  20318. max-width: 100% !important;
  20319. height: 100% !important;
  20320. margin: 0 !important;
  20321. }
  20322. .full_diy >>> .el-dialog {
  20323. margin: 0 !important;
  20324. height: 100%;
  20325. padding: 4px;
  20326. }
  20327. .full_diy >>> .el-dialog__body {
  20328. height: calc(100% - 100px);
  20329. }
  20330. .full_diy2 >>> .el-dialog__body {
  20331. height: calc(100% - 50px);
  20332. padding: 0;
  20333. }
  20334. .switchCss {
  20335. /* width: 100%; */
  20336. display: flex;
  20337. flex-direction: row;
  20338. flex-wrap: nowrap;
  20339. align-items: center;
  20340. /* justify-content: center; */
  20341. }
  20342. .isClickNav {
  20343. color: #000;
  20344. /* color: #499eef; */
  20345. }
  20346. .commentImg {
  20347. width: 25px;
  20348. height: 25px;
  20349. cursor: pointer;
  20350. }
  20351. .commentImg > img {
  20352. width: 100%;
  20353. height: 100%;
  20354. }
  20355. .comment {
  20356. background: #f9f9f9;
  20357. border-radius: 0 0 15px 15px;
  20358. display: flex;
  20359. flex-direction: row;
  20360. flex-wrap: nowrap;
  20361. align-items: center;
  20362. justify-content: flex-end;
  20363. height: 35px;
  20364. }
  20365. .commentList {
  20366. display: flex;
  20367. flex-direction: row;
  20368. flex-wrap: nowrap;
  20369. align-items: center;
  20370. justify-content: center;
  20371. align-content: center;
  20372. /* margin-left: 15px; */
  20373. /* margin-left: 8px; */
  20374. }
  20375. .scoreImg {
  20376. width: 17px;
  20377. height: 17px;
  20378. }
  20379. .studentDetail {
  20380. display: flex;
  20381. flex-direction: row;
  20382. flex-wrap: nowrap;
  20383. /* align-items: center; */
  20384. align-items: flex-start;
  20385. }
  20386. .tx {
  20387. width: 50px;
  20388. }
  20389. .tx > img {
  20390. width: 100%;
  20391. height: 100%;
  20392. }
  20393. .nameAndTime {
  20394. display: flex;
  20395. flex-direction: column;
  20396. flex-wrap: nowrap;
  20397. align-items: flex-start;
  20398. margin-left: 10px;
  20399. }
  20400. .worksAnswer {
  20401. color: #4078dd;
  20402. margin: 10px 0;
  20403. font-size: 16px;
  20404. position: relative;
  20405. }
  20406. .worksAnswer > img {
  20407. width: 500px;
  20408. height: 300px;
  20409. object-fit: contain;
  20410. margin: 0 auto;
  20411. display: block;
  20412. }
  20413. .commentTop {
  20414. border-bottom: 1px solid #eaeaea;
  20415. padding-bottom: 10px;
  20416. }
  20417. .commentBox {
  20418. padding-top: 15px;
  20419. }
  20420. .pl {
  20421. font-size: 18px;
  20422. }
  20423. .plPerson {
  20424. width: 100%;
  20425. }
  20426. .plName {
  20427. display: flex;
  20428. flex-direction: row;
  20429. flex-wrap: nowrap;
  20430. align-items: baseline;
  20431. color: #78787a;
  20432. width: 100%;
  20433. }
  20434. .deleteComment {
  20435. cursor: pointer;
  20436. margin-left: auto;
  20437. color: #237ade;
  20438. }
  20439. .plContent {
  20440. margin-top: 5px;
  20441. }
  20442. .evalCss {
  20443. background: #fff;
  20444. font-size: 18px;
  20445. }
  20446. .nav {
  20447. color: #9d9d9d;
  20448. padding: 5px 0 15px 20px;
  20449. }
  20450. .middleBox {
  20451. padding: 5px 0 15px 20px;
  20452. }
  20453. .pfBox {
  20454. padding-bottom: 30px;
  20455. }
  20456. .nameAndrate {
  20457. display: flex;
  20458. flex-direction: row;
  20459. flex-wrap: nowrap;
  20460. align-items: center;
  20461. padding-bottom: 10px;
  20462. height: 30px;
  20463. line-height: 30px;
  20464. }
  20465. .nameAndrate > div {
  20466. margin-left: 10px;
  20467. color: #000;
  20468. height: 30px;
  20469. }
  20470. .nameAndrate >>> .el-rate__icon {
  20471. font-size: 28px !important;
  20472. }
  20473. .pfBox > div:nth-child(2) {
  20474. background: #f7f6f9;
  20475. width: 400px;
  20476. min-height: 45px;
  20477. border-radius: 10px;
  20478. font-size: 16px;
  20479. display: flex;
  20480. flex-wrap: wrap;
  20481. align-items: center;
  20482. padding: 10px 20px;
  20483. box-sizing: border-box;
  20484. color: #000;
  20485. }
  20486. .bz {
  20487. display: flex;
  20488. flex-direction: row;
  20489. flex-wrap: nowrap;
  20490. align-items: flex-start;
  20491. }
  20492. .bz > div {
  20493. padding: 0 10px;
  20494. }
  20495. .select_box2_title {
  20496. background: #fff;
  20497. border-radius: 5px;
  20498. padding: 15px 10px;
  20499. box-sizing: border-box;
  20500. margin-bottom: 10px;
  20501. display: flex;
  20502. flex-direction: row;
  20503. flex-wrap: nowrap;
  20504. align-items: center;
  20505. }
  20506. .select_box2_title > div:nth-child(2) {
  20507. margin-left: 10px;
  20508. color: #c4c4c4;
  20509. }
  20510. .select_box2_box {
  20511. display: flex;
  20512. height: 500px;
  20513. }
  20514. .select_box2_img {
  20515. width: calc(100% - 310px);
  20516. height: 100%;
  20517. overflow: auto;
  20518. background: #fff;
  20519. border-radius: 5px;
  20520. }
  20521. .select_box2_img img {
  20522. width: 100%;
  20523. }
  20524. .select_box2_answer {
  20525. background: #fff;
  20526. margin-left: 10px;
  20527. border-radius: 5px;
  20528. width: 300px;
  20529. overflow: auto;
  20530. height: 90%;
  20531. display: flex;
  20532. flex-direction: column;
  20533. align-items: flex-start;
  20534. padding-top: 10px;
  20535. box-sizing: border-box;
  20536. position: relative;
  20537. }
  20538. .select_answer_title {
  20539. padding: 0 0 15px 20px;
  20540. color: #c4c4c4;
  20541. }
  20542. .select_box2_answer_box {
  20543. margin: 0 0 10px 20px;
  20544. width: 85%;
  20545. display: flex;
  20546. flex-direction: row;
  20547. flex-wrap: nowrap;
  20548. align-items: center;
  20549. }
  20550. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  20551. color: #000;
  20552. }
  20553. .upAnswerCss {
  20554. position: absolute;
  20555. bottom: 15px;
  20556. right: 15px;
  20557. }
  20558. .upAnswerCss >>> .el-button {
  20559. width: 95px;
  20560. height: 35px;
  20561. line-height: 35px;
  20562. padding: 0;
  20563. }
  20564. .rightWidthCss {
  20565. width: 60%;
  20566. display: flex;
  20567. flex-direction: row;
  20568. align-items: flex-start;
  20569. }
  20570. .rightAnswer {
  20571. display: flex;
  20572. flex-direction: row;
  20573. flex-wrap: nowrap;
  20574. align-items: center;
  20575. color: red;
  20576. margin-bottom: 31px;
  20577. }
  20578. .rightAnswerCss {
  20579. display: flex;
  20580. flex-direction: column;
  20581. flex-wrap: nowrap;
  20582. padding-top: 60px;
  20583. }
  20584. .blueCss {
  20585. color: #767de1;
  20586. margin-left: 10px;
  20587. }
  20588. .redCss {
  20589. color: red;
  20590. }
  20591. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  20592. color: rgb(0 123 255) !important;
  20593. }
  20594. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  20595. color: rgb(0 123 255) !important;
  20596. }
  20597. .zuoyeYulan {
  20598. padding-top: 0;
  20599. font-size: 18px;
  20600. display: flex;
  20601. align-items: flex-end;
  20602. }
  20603. .buttonA {
  20604. margin-left: 10px;
  20605. padding: 0;
  20606. }
  20607. .displayBox {
  20608. margin-bottom: 10px;
  20609. display: block;
  20610. border-bottom: 3px solid #eee;
  20611. display: flex;
  20612. align-items: center;
  20613. }
  20614. .easy_comment {
  20615. width: calc(100% - 90px);
  20616. margin-left: 10px;
  20617. display: flex;
  20618. flex-wrap: wrap;
  20619. }
  20620. .easy_comment > div {
  20621. border: 1px solid #4a4a4a;
  20622. color: #666;
  20623. border-radius: 15px;
  20624. padding: 5px 10px;
  20625. font-size: 16px;
  20626. margin-bottom: 10px;
  20627. margin-right: 5px;
  20628. cursor: pointer;
  20629. }
  20630. .easy_comment div:hover {
  20631. border: 1px solid #f7ba2a;
  20632. color: #c69217;
  20633. }
  20634. .xuan_right_box {
  20635. padding: 10px;
  20636. background: rgb(247, 247, 247);
  20637. margin: 0 12px;
  20638. border-radius: 5px;
  20639. }
  20640. .tool_right_box {
  20641. display: flex;
  20642. align-items: center;
  20643. }
  20644. .tool_right_box + .tool_right_box {
  20645. margin-top: 10px;
  20646. }
  20647. .right_box_xuan {
  20648. background: rgb(0 123 255);
  20649. color: #fff;
  20650. border-radius: 5px;
  20651. padding: 5px;
  20652. margin-left: 10px;
  20653. min-width: 95px;
  20654. }
  20655. .pButton:hover {
  20656. opacity: 1 !important;
  20657. }
  20658. .pButton {
  20659. position: fixed;
  20660. text-align: center;
  20661. cursor: pointer;
  20662. z-index: 999;
  20663. right: 20px;
  20664. top: 110px;
  20665. width: 50px;
  20666. height: 50px;
  20667. display: flex;
  20668. align-items: center;
  20669. justify-content: center;
  20670. border-radius: 5px;
  20671. }
  20672. .pzClass {
  20673. width: calc(100% - 340px);
  20674. }
  20675. .newDialogCss {
  20676. /* position: fixed;
  20677. right: 5%;
  20678. top: 50%;
  20679. width: 340px;
  20680. transform: translateY(-50%);
  20681. height: 60%;
  20682. box-shadow: 0px 0 8px 0px #555555;
  20683. border-radius: 15px;
  20684. z-index: 999; */
  20685. position: fixed;
  20686. right: 20px;
  20687. top: 101px;
  20688. width: 330px;
  20689. height: calc(100% - 80px);
  20690. z-index: 999;
  20691. background: #fff;
  20692. border-top-right-radius: 0px;
  20693. border-bottom-right-radius: 0px;
  20694. overflow: hidden;
  20695. }
  20696. .pzTop {
  20697. color: #fff;
  20698. background: #000;
  20699. display: flex;
  20700. flex-direction: row;
  20701. flex-wrap: nowrap;
  20702. align-items: center;
  20703. justify-content: space-between;
  20704. height: 40px;
  20705. border-radius: 15px 15px 0 0;
  20706. user-select: none;
  20707. }
  20708. .pzTop2 .checkbox {
  20709. display: flex;
  20710. align-items: center;
  20711. padding: 5px 30px;
  20712. flex: 0 0 auto;
  20713. font-weight: bold;
  20714. border-bottom: 1px solid #eee;
  20715. justify-content: space-between;
  20716. }
  20717. .pzTop2 .check {
  20718. text-align: center;
  20719. cursor: pointer;
  20720. box-sizing: border-box;
  20721. display: flex;
  20722. }
  20723. .pzTop2 img {
  20724. width: 25px;
  20725. cursor: pointer;
  20726. }
  20727. .pzTop > div:nth-child(1) {
  20728. padding-left: 10px;
  20729. }
  20730. .pzTop > div:nth-child(2) {
  20731. width: 15px;
  20732. height: 15px;
  20733. padding-right: 10px;
  20734. cursor: pointer;
  20735. }
  20736. .pzTop > div:nth-child(2) > img {
  20737. width: 100%;
  20738. height: 100%;
  20739. }
  20740. .pzBox,
  20741. .noPzBox {
  20742. height: calc(100% - 60px);
  20743. /* background: #ededed; */
  20744. background: #fff;
  20745. /* border-radius: 0 0 15px 15px; */
  20746. }
  20747. .noPzBox {
  20748. display: flex;
  20749. flex-direction: column;
  20750. flex-wrap: nowrap;
  20751. justify-content: center;
  20752. align-items: center;
  20753. }
  20754. .pzList {
  20755. background: #f7f7f7;
  20756. width: 90%;
  20757. margin: 0 auto 15px;
  20758. border-radius: 5px;
  20759. }
  20760. .pzNavTop {
  20761. display: flex;
  20762. flex-direction: row;
  20763. flex-wrap: nowrap;
  20764. padding: 10px 10px 0 10px;
  20765. align-items: center;
  20766. }
  20767. .pzDelete {
  20768. cursor: pointer;
  20769. margin-left: auto;
  20770. font-size: 14px;
  20771. color: #afafaf;
  20772. }
  20773. .pzNavTop > div:nth-child(1) {
  20774. background: #3760af;
  20775. width: 35px;
  20776. height: 35px;
  20777. color: #fff;
  20778. text-align: center;
  20779. line-height: 35px;
  20780. border-radius: 50%;
  20781. font-size: 14px;
  20782. }
  20783. .pzNavTop > div:nth-child(2) {
  20784. font-size: 18px;
  20785. color: #959595;
  20786. margin-left: 5px;
  20787. }
  20788. .pzContent {
  20789. padding: 10px;
  20790. word-break: break-word;
  20791. }
  20792. .pzContent audio {
  20793. width: 100%;
  20794. }
  20795. .pzContent audio::-webkit-media-controls-panel {
  20796. background: #fff;
  20797. }
  20798. .pzContent >>> img {
  20799. max-width: 100%;
  20800. }
  20801. .pzListBox {
  20802. padding-top: 15px;
  20803. height: calc(100% - 110px);
  20804. overflow: auto;
  20805. }
  20806. .addPzButton {
  20807. position: relative;
  20808. margin-top: 3px;
  20809. width: 100%;
  20810. }
  20811. .addPzButton .img1 {
  20812. position: absolute;
  20813. top: 50%;
  20814. right: 25px;
  20815. transform: translateY(-50%);
  20816. height: 100%;
  20817. display: flex;
  20818. align-items: center;
  20819. }
  20820. .addPzButton .img1 div {
  20821. display: flex;
  20822. }
  20823. .addPzButton .img1 div img {
  20824. width: 28px;
  20825. margin-left: 10px;
  20826. cursor: pointer;
  20827. }
  20828. .addPzButton .img1 div span {
  20829. font-size: 14px;
  20830. margin: 4px 0 0 3px;
  20831. color: #afafaf;
  20832. }
  20833. .addPz {
  20834. background: #4b79ce;
  20835. width: 100px;
  20836. color: #fff;
  20837. font-size: 12px;
  20838. height: 30px;
  20839. margin: 0 auto;
  20840. text-align: center;
  20841. line-height: 30px;
  20842. border-radius: 10px;
  20843. cursor: pointer;
  20844. }
  20845. .addDialogCss {
  20846. position: fixed;
  20847. width: 600px;
  20848. height: 70%;
  20849. min-height: 450px;
  20850. box-shadow: 0px 0 8px 0px #555555;
  20851. border-radius: 15px;
  20852. z-index: 999;
  20853. left: 50%;
  20854. top: 50%;
  20855. margin: -18% 0 0 -300px;
  20856. }
  20857. .teacherPz {
  20858. display: flex;
  20859. flex-direction: row;
  20860. align-items: center;
  20861. flex-wrap: nowrap;
  20862. }
  20863. .teacherPzImg {
  20864. width: 30px;
  20865. height: 30px;
  20866. }
  20867. .teacherPzImg > img {
  20868. width: 100%;
  20869. height: 100%;
  20870. }
  20871. .addPzBox {
  20872. height: calc(100% - 50px);
  20873. background: #ededed;
  20874. border-radius: 15px;
  20875. }
  20876. .pzAudioClass {
  20877. margin: 15px 14px;
  20878. background: #fff;
  20879. height: 100%;
  20880. display: flex;
  20881. justify-content: center;
  20882. align-items: center;
  20883. }
  20884. .pzConText {
  20885. width: 95%;
  20886. height: 100%;
  20887. margin: 10px auto 0;
  20888. border: none;
  20889. background: #fff;
  20890. border-radius: 0px;
  20891. }
  20892. .pzConText >>> .text {
  20893. height: calc(100% - 82px);
  20894. }
  20895. .addTextCss {
  20896. background: #4b79ce;
  20897. width: 80px;
  20898. height: 30px;
  20899. text-align: center;
  20900. color: #fff;
  20901. line-height: 30px;
  20902. border-radius: 10px;
  20903. margin: 10px auto 0;
  20904. cursor: pointer;
  20905. }
  20906. .pzConText:focus-visible {
  20907. border: none !important;
  20908. }
  20909. .maxWidth {
  20910. width: 1000px;
  20911. }
  20912. .noPz {
  20913. width: 150px;
  20914. margin: 0 auto 20%;
  20915. }
  20916. .noPz > img {
  20917. width: 100%;
  20918. height: 100%;
  20919. }
  20920. .pzList .time {
  20921. text-align: right;
  20922. box-sizing: border-box;
  20923. padding: 0 10px 10px 0px;
  20924. color: #949494;
  20925. font-size: 14px;
  20926. }
  20927. /* code 样式 */
  20928. .cont {
  20929. /* -webkit-user-modify: read-write; */
  20930. overflow-wrap: break-word;
  20931. -webkit-line-break: after-white-space;
  20932. }
  20933. /* table 样式 */
  20934. .cont >>> table {
  20935. border-top: 1px solid #ccc;
  20936. border-left: 1px solid #ccc;
  20937. }
  20938. .cont >>> table td,
  20939. .cont >>> table th {
  20940. border-bottom: 1px solid #ccc;
  20941. border-right: 1px solid #ccc;
  20942. /* padding: 20px 5px; */
  20943. padding: 5px 10px;
  20944. max-width: 0px;
  20945. height: 30px;
  20946. vertical-align: baseline;
  20947. box-sizing: border-box;
  20948. }
  20949. .cont >>> table th {
  20950. border-bottom: 2px solid #ccc;
  20951. text-align: center;
  20952. }
  20953. /* blockquote 样式 */
  20954. .cont >>> blockquote {
  20955. display: block;
  20956. border-left: 8px solid #d0e5f2;
  20957. padding: 5px 10px;
  20958. margin: 10px 0;
  20959. line-height: 1.4;
  20960. font-size: 100%;
  20961. background-color: #f1f1f1;
  20962. }
  20963. /* code 样式 */
  20964. .cont >>> code {
  20965. display: inline-block;
  20966. /* *display: inline; */
  20967. zoom: 1;
  20968. background-color: #f1f1f1;
  20969. border-radius: 3px;
  20970. padding: 3px 5px;
  20971. margin: 0 3px;
  20972. }
  20973. .cont >>> pre code {
  20974. display: block;
  20975. }
  20976. /* ul ol 样式 */
  20977. .cont >>> ul,
  20978. ol {
  20979. margin: 10px 0 10px 20px;
  20980. }
  20981. .addPzCheck {
  20982. display: flex;
  20983. flex-direction: row;
  20984. flex-wrap: nowrap;
  20985. padding: 10px 15px 0;
  20986. }
  20987. .addPzCheck span {
  20988. cursor: pointer;
  20989. padding-bottom: 5px;
  20990. font-weight: bold;
  20991. }
  20992. .addPzCheck span + span {
  20993. margin-left: 10px;
  20994. }
  20995. .addPzCheck .isChooseActive {
  20996. color: #3e88f4;
  20997. border-bottom: 2px solid #2f80f3;
  20998. }
  20999. .scoreBox,
  21000. .scoreDetailBox {
  21001. display: flex;
  21002. align-items: center;
  21003. justify-content: flex-start;
  21004. margin-top: 20px;
  21005. font-size: 18px;
  21006. width: 100%;
  21007. }
  21008. .scoreBox .t,
  21009. .scoreDetailBox .t {
  21010. margin-right: 10px;
  21011. width: 100px;
  21012. text-align: right;
  21013. }
  21014. .scoreDetailBox {
  21015. align-items: flex-start;
  21016. }
  21017. .scoreDetailBox >>> .el-textarea {
  21018. width: calc(100% - 200px);
  21019. }
  21020. .scoreBox >>> .el-input {
  21021. width: 130px;
  21022. font-size: 38px;
  21023. }
  21024. .scoreBox >>> .el-input__inner {
  21025. height: 60px;
  21026. }
  21027. .answerScore {
  21028. position: absolute;
  21029. top: 10px;
  21030. right: 10px;
  21031. background: #0000008f;
  21032. border-radius: 5px;
  21033. padding: 3px 5px;
  21034. font-size: 14px;
  21035. color: #fff;
  21036. cursor: pointer;
  21037. }
  21038. .open_box .switch_box {
  21039. width: 100%;
  21040. margin: 0 auto;
  21041. display: flex;
  21042. justify-content: space-between;
  21043. }
  21044. .open_box .switch_box + .switch_box {
  21045. margin-top: 10px;
  21046. }
  21047. .deleteImg {
  21048. width: 25px !important;
  21049. height: 25px !important;
  21050. cursor: pointer;
  21051. position: absolute;
  21052. top: 10px;
  21053. right: 10px;
  21054. }
  21055. .deleteImg2 {
  21056. width: 15px !important;
  21057. height: 15px !important;
  21058. top: 5px;
  21059. right: 5px;
  21060. }
  21061. .rightW {
  21062. right: 40px;
  21063. }
  21064. .drawPBox {
  21065. display: flex;
  21066. flex-direction: column;
  21067. position: relative;
  21068. }
  21069. .drawPBox span {
  21070. font-size: 18px;
  21071. color: #606266;
  21072. padding-bottom: 10px;
  21073. margin: 10px 0;
  21074. border-bottom: 1px solid #eaeaea;
  21075. }
  21076. .drawPBox img {
  21077. width: 500px;
  21078. height: 300px;
  21079. object-fit: contain;
  21080. cursor: pointer;
  21081. margin: 0 auto;
  21082. }
  21083. .sentenBox {
  21084. background: #fff;
  21085. height: 450px;
  21086. overflow: auto;
  21087. background-image: url("../../assets/icon/conSentences/stuBg.png");
  21088. background-position: 102%;
  21089. background-repeat: no-repeat;
  21090. background-size: 60%;
  21091. }
  21092. .addSen {
  21093. background: #409efe;
  21094. width: 90px;
  21095. color: #fff;
  21096. height: 35px;
  21097. text-align: center;
  21098. line-height: 35px;
  21099. border-radius: 5px;
  21100. float: right;
  21101. margin: 10px 20px 0 0;
  21102. cursor: pointer;
  21103. }
  21104. .sentenTop {
  21105. display: flex;
  21106. flex-direction: row;
  21107. flex-wrap: nowrap;
  21108. align-items: center;
  21109. padding: 55px 0 0 20px;
  21110. box-sizing: border-box;
  21111. }
  21112. .sentenTop > div:nth-child(2) {
  21113. width: 300px;
  21114. margin: 0 15px;
  21115. }
  21116. .sentenTop > div:nth-child(3) {
  21117. background: #409efe;
  21118. color: #fff;
  21119. width: 65px;
  21120. height: 35px;
  21121. text-align: center;
  21122. line-height: 35px;
  21123. border-radius: 5px;
  21124. cursor: pointer;
  21125. }
  21126. .cardList,
  21127. .cardList1 {
  21128. padding: 10px 0 10px 0;
  21129. display: flex;
  21130. flex-direction: row;
  21131. flex-wrap: wrap;
  21132. align-items: center;
  21133. box-sizing: border-box;
  21134. border-bottom: 1px solid #f4f4f4;
  21135. width: 98%;
  21136. margin: 0 auto;
  21137. min-width: 60%;
  21138. max-width: 85%;
  21139. }
  21140. .cardList1 {
  21141. padding: 10px 0 10px 10px !important;
  21142. margin: 0 !important;
  21143. }
  21144. .cardBox {
  21145. display: flex;
  21146. flex-direction: row;
  21147. flex-wrap: wrap;
  21148. align-items: center;
  21149. align-content: center;
  21150. }
  21151. .cardBox > div {
  21152. margin-bottom: 10px;
  21153. }
  21154. .isCard,
  21155. .isChooseCard,
  21156. .noCard,
  21157. .isCard1 {
  21158. width: 130px;
  21159. height: 60px;
  21160. text-align: center;
  21161. line-height: 60px;
  21162. font-size: 20px;
  21163. cursor: pointer;
  21164. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  21165. background-size: cover;
  21166. transition: all 2s;
  21167. margin-right: 20px;
  21168. }
  21169. .isCard > div,
  21170. .noCard > div,
  21171. .isCard1 > div {
  21172. white-space: nowrap;
  21173. overflow: hidden;
  21174. text-overflow: ellipsis;
  21175. width: 75%;
  21176. margin: 0 auto;
  21177. }
  21178. .noCard {
  21179. background-image: none;
  21180. }
  21181. .isCard1 {
  21182. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  21183. }
  21184. .isChooseCard {
  21185. background-image: none;
  21186. border: 1px dashed #b9b9b9;
  21187. border-radius: 10px;
  21188. }
  21189. .card {
  21190. width: 130px;
  21191. height: 60px;
  21192. }
  21193. .card > img {
  21194. width: 100%;
  21195. height: 100%;
  21196. }
  21197. .rightCardBox {
  21198. margin: 10px 0 0 10px;
  21199. }
  21200. .rightCardBox > div:nth-child(1) {
  21201. margin-bottom: 10px;
  21202. }
  21203. .cardCss {
  21204. display: flex;
  21205. flex-direction: column;
  21206. flex-wrap: nowrap;
  21207. align-items: center;
  21208. border-bottom: 3px solid #b4c3d3;
  21209. padding: 0 0 5px 0;
  21210. margin-right: 10px;
  21211. }
  21212. .cardCss > div:nth-child(2) {
  21213. background: #5b7b9d;
  21214. color: #fff;
  21215. width: 20px;
  21216. height: 20px;
  21217. border-radius: 50%;
  21218. text-align: center;
  21219. line-height: 20px;
  21220. }
  21221. .isWrong {
  21222. display: flex;
  21223. flex-direction: row;
  21224. flex-wrap: nowrap;
  21225. align-content: center;
  21226. align-items: center;
  21227. }
  21228. .answerRight {
  21229. width: 25%;
  21230. }
  21231. .isTj {
  21232. display: flex;
  21233. flex-direction: row;
  21234. flex-wrap: nowrap;
  21235. align-items: center;
  21236. }
  21237. .isTj > div:nth-child(2) {
  21238. color: #727070;
  21239. margin-left: 10px;
  21240. }
  21241. .isTjImg {
  21242. width: 30px;
  21243. height: 30px;
  21244. }
  21245. .isTjImg > img {
  21246. width: 100%;
  21247. height: 100%;
  21248. }
  21249. .cardAnswerBox {
  21250. font-size: 18px;
  21251. width: 97%;
  21252. border: 5px;
  21253. padding: 0;
  21254. border-radius: 5px;
  21255. margin: 10px auto;
  21256. word-break: break-word;
  21257. }
  21258. .w_name {
  21259. margin-bottom: 10px;
  21260. }
  21261. .w_name span {
  21262. font-size: 16px;
  21263. }
  21264. .w_teachert {
  21265. width: 50px !important;
  21266. position: absolute;
  21267. height: auto !important;
  21268. z-index: 10;
  21269. right: 25px;
  21270. top: -25px;
  21271. }
  21272. .group_workBox {
  21273. }
  21274. .group_workBox + .group_workBox {
  21275. margin-top: 20px;
  21276. }
  21277. .group_box {
  21278. padding-bottom: 20px;
  21279. border-bottom: 2px solid #f0f0f0;
  21280. }
  21281. .group_title {
  21282. display: flex;
  21283. align-items: center;
  21284. justify-content: space-between;
  21285. }
  21286. .group_name {
  21287. background-image: url(../../assets/icon/groupN.png);
  21288. width: 220px;
  21289. background-size: 100% 100%;
  21290. height: 67px;
  21291. padding: 0 20px 0 43px;
  21292. box-sizing: border-box;
  21293. line-height: 63px;
  21294. color: #fff;
  21295. overflow: hidden;
  21296. white-space: nowrap;
  21297. text-overflow: ellipsis;
  21298. }
  21299. .group_work {
  21300. width: 100%;
  21301. padding: 0 10px;
  21302. box-sizing: border-box;
  21303. display: flex;
  21304. flex-wrap: wrap;
  21305. }
  21306. .g_d_box {
  21307. display: flex;
  21308. flex-flow: wrap;
  21309. justify-content: space-around;
  21310. }
  21311. .g_d_box .isChair {
  21312. background-image: url(../../assets/avatar.png) !important;
  21313. }
  21314. .g_d_group {
  21315. width: 500px;
  21316. margin-bottom: 80px;
  21317. }
  21318. .g_d_group_chair {
  21319. display: flex;
  21320. align-items: center;
  21321. justify-content: center;
  21322. }
  21323. .g_d_group_chair > div + div {
  21324. margin-left: 30px;
  21325. }
  21326. .g_d_group_chair > div,
  21327. .g_d_group_chair2 > div {
  21328. display: flex;
  21329. flex-direction: column;
  21330. align-items: center;
  21331. }
  21332. .g_d_group_chair > div > span:nth-child(1),
  21333. .g_d_group_chair2 > div > span:nth-child(1) {
  21334. background-image: url(../../assets/icon/chair.png);
  21335. width: 50px;
  21336. height: 50px;
  21337. display: block;
  21338. background-size: 100% 100%;
  21339. }
  21340. .g_d_group_tableBox {
  21341. display: flex;
  21342. align-items: center;
  21343. justify-content: center;
  21344. }
  21345. .g_d_group_chair2 {
  21346. display: flex;
  21347. flex-direction: column;
  21348. align-items: center;
  21349. justify-content: center;
  21350. }
  21351. .g_d_group_chair2 > div + div {
  21352. margin-top: 10px;
  21353. }
  21354. .g_d_group_table {
  21355. background-image: url(../../assets/icon/groupBg.png);
  21356. width: 354px;
  21357. height: 196px;
  21358. background-size: 100% 100%;
  21359. display: flex;
  21360. align-items: center;
  21361. justify-content: center;
  21362. flex-direction: column;
  21363. color: #fff;
  21364. }
  21365. .g_d_group_table > div:nth-child(1) {
  21366. font-size: 24px;
  21367. margin-bottom: 5px;
  21368. }
  21369. .g_d_group_table > div:nth-child(2) div {
  21370. cursor: pointer;
  21371. background: #2e77bf;
  21372. padding: 4px 10px;
  21373. border-radius: 5px;
  21374. }
  21375. .groupBox {
  21376. }
  21377. .groupContent + .groupContent {
  21378. margin-top: 30px;
  21379. }
  21380. .groupTitle {
  21381. font-size: 24px;
  21382. color: rgb(80, 80, 80);
  21383. margin-bottom: 20px;
  21384. }
  21385. .groupName {
  21386. display: flex;
  21387. align-items: center;
  21388. }
  21389. .groupn {
  21390. font-size: 15px;
  21391. margin-right: 10px;
  21392. }
  21393. .groupName + .groupName {
  21394. margin-top: 15px;
  21395. }
  21396. .groupBtn {
  21397. margin-left: 10px;
  21398. }
  21399. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  21400. text-align: left;
  21401. }
  21402. .g_d_btnBox {
  21403. display: flex;
  21404. justify-content: flex-end;
  21405. align-items: flex-end;
  21406. margin-bottom: 20px;
  21407. }
  21408. .updateChair {
  21409. position: relative;
  21410. }
  21411. .updateChairBtn {
  21412. position: absolute;
  21413. width: 50px;
  21414. height: 50px;
  21415. overflow: hidden;
  21416. /* display: flex; */
  21417. align-items: center;
  21418. justify-content: center;
  21419. background: #00000087;
  21420. color: #fff;
  21421. border-radius: 50px;
  21422. display: none;
  21423. cursor: pointer;
  21424. }
  21425. .updateChair:hover .updateChairBtn {
  21426. display: flex;
  21427. }
  21428. .group_staic_box {
  21429. display: flex;
  21430. padding: 30px 40px 10px;
  21431. flex-wrap: wrap;
  21432. }
  21433. .group_staic {
  21434. /* width: 50%; */
  21435. margin-bottom: 20px;
  21436. display: flex;
  21437. align-items: center;
  21438. }
  21439. .group_staic span:nth-child(1) {
  21440. width: 150px;
  21441. text-align: right;
  21442. margin-right: 15px;
  21443. }
  21444. .group_staic span:nth-child(2) {
  21445. background: rgb(0 123 255);
  21446. color: #fff;
  21447. border-radius: 5px;
  21448. padding: 5px;
  21449. }
  21450. .codeFileBox {
  21451. height: 300px;
  21452. background: #fff;
  21453. display: flex;
  21454. align-items: center;
  21455. justify-content: center;
  21456. }
  21457. .codeFileBox img {
  21458. width: 200px;
  21459. margin: 0;
  21460. height: auto;
  21461. }
  21462. .codeFileBox div {
  21463. background: rgb(80, 142, 226);
  21464. color: #fff;
  21465. padding: 10px 20px;
  21466. border-radius: 25px;
  21467. cursor: pointer;
  21468. margin-left: 15px;
  21469. }
  21470. .radioBox {
  21471. display: flex;
  21472. flex-direction: column;
  21473. flex-wrap: nowrap;
  21474. align-items: flex-start;
  21475. }
  21476. .radioBox > div {
  21477. margin: 10px 0 0 10px;
  21478. }
  21479. /* .radioBox >>> .el-radio__input,
  21480. .radioBox >>> .el-checkbox__inner {
  21481. margin-left: 10px;
  21482. } */
  21483. .radioBox >>> .el-radio__label,
  21484. .radioBox >>> .el-checkbox__label {
  21485. display: flex;
  21486. align-items: center;
  21487. }
  21488. .radioBox >>> .el-radio__label > span {
  21489. width: 100%;
  21490. display: -webkit-box;
  21491. overflow: hidden;
  21492. white-space: normal !important;
  21493. text-overflow: ellipsis;
  21494. word-wrap: break-word;
  21495. }
  21496. .inImg {
  21497. width: 100px;
  21498. cursor: pointer;
  21499. }
  21500. .inImg > img {
  21501. width: 100%;
  21502. height: 100%;
  21503. object-fit: cover;
  21504. }
  21505. .timuImgBox {
  21506. margin: 10px 0;
  21507. display: flex;
  21508. flex-direction: column;
  21509. flex-wrap: wrap;
  21510. align-items: flex-start;
  21511. }
  21512. .timuImg {
  21513. width: 150px;
  21514. margin: 5px 0;
  21515. cursor: pointer;
  21516. }
  21517. .timuImg > img {
  21518. width: 100%;
  21519. height: 100%;
  21520. object-fit: cover;
  21521. }
  21522. .worksTop {
  21523. display: flex;
  21524. flex-direction: row;
  21525. align-items: flex-end;
  21526. }
  21527. .corOpen {
  21528. margin: 0 0 0 10px;
  21529. font-size: 14px;
  21530. cursor: pointer;
  21531. color: #505050;
  21532. }
  21533. .corOpen:hover {
  21534. color: #499eef;
  21535. }
  21536. .navCorOpenBox {
  21537. display: flex;
  21538. flex-direction: row;
  21539. align-items: center;
  21540. justify-content: space-between;
  21541. height: 55px;
  21542. background: #ffffff;
  21543. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  21544. border-radius: 8px 8px 0px 0px;
  21545. z-index: 9;
  21546. position: relative;
  21547. }
  21548. .navCorOpen {
  21549. padding-right: 15px;
  21550. cursor: pointer;
  21551. width: 45px;
  21552. display: flex;
  21553. }
  21554. .navCorOpen > img {
  21555. width: 100%;
  21556. height: 100%;
  21557. }
  21558. .mlImg {
  21559. width: 45px !important;
  21560. min-width: 45px;
  21561. cursor: pointer;
  21562. margin-top: 5px;
  21563. }
  21564. .mlImg > img {
  21565. width: 100%;
  21566. height: 100%;
  21567. }
  21568. .navLeftCss {
  21569. width: 100% !important;
  21570. left: 0 !important;
  21571. }
  21572. .isContentCss {
  21573. width: 100% !important;
  21574. }
  21575. .isAllWidth {
  21576. width: 100% !important;
  21577. }
  21578. .toolBoxSteps {
  21579. position: absolute;
  21580. top: 50%;
  21581. transform: translateY(-50%);
  21582. cursor: pointer;
  21583. width: 60px;
  21584. display: flex;
  21585. align-items: center;
  21586. justify-content: center;
  21587. }
  21588. .toolBoxSteps:nth-child(1) > img,
  21589. .toolBoxSteps:nth-child(2) > img {
  21590. width: 24px;
  21591. }
  21592. .toolBoxSteps:nth-child(1) {
  21593. left: 0;
  21594. }
  21595. .toolBoxSteps:nth-child(2) {
  21596. right: 0;
  21597. }
  21598. .isChooseActive {
  21599. color: #3681fc !important;
  21600. font-weight: bold !important;
  21601. }
  21602. .tool_box {
  21603. width: 100%;
  21604. }
  21605. .tool_type_box {
  21606. display: flex;
  21607. flex-direction: row;
  21608. align-items: baseline;
  21609. flex-wrap: nowrap;
  21610. justify-content: flex-start;
  21611. position: relative;
  21612. }
  21613. .toolSort {
  21614. display: flex;
  21615. flex-direction: row;
  21616. flex-wrap: wrap;
  21617. justify-content: flex-start;
  21618. align-items: flex-start;
  21619. }
  21620. .toolSort > div {
  21621. margin: 0 45px 0 0;
  21622. width: auto;
  21623. }
  21624. .tools {
  21625. width: 100%;
  21626. display: flex;
  21627. flex-direction: column;
  21628. flex-wrap: nowrap;
  21629. align-items: flex-start;
  21630. }
  21631. .whiteBIcon {
  21632. width: 80px;
  21633. cursor: pointer;
  21634. display: flex;
  21635. flex-direction: column;
  21636. flex-wrap: nowrap;
  21637. align-items: center;
  21638. font-size: 14px;
  21639. }
  21640. .whiteBIcon > img {
  21641. width: 100%;
  21642. height: 100%;
  21643. }
  21644. .whiteBIcon > img {
  21645. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  21646. border-radius: 15px;
  21647. }
  21648. .dia_tool_box {
  21649. display: flex;
  21650. flex-wrap: wrap;
  21651. width: 100%;
  21652. }
  21653. .dia_tool_box > div {
  21654. margin-right: 40px;
  21655. }
  21656. .check {
  21657. /* width: 20px;
  21658. height: 20px; */
  21659. cursor: pointer;
  21660. margin: 10px 0;
  21661. }
  21662. .checkDiv {
  21663. display: flex;
  21664. align-items: center;
  21665. }
  21666. .checkDiv span {
  21667. margin-left: 5px;
  21668. color: #858585;
  21669. }
  21670. .check img {
  21671. width: 20px;
  21672. height: 20px;
  21673. }
  21674. .fileC_box > .fileC_title {
  21675. padding: 10px 5px;
  21676. border-top: 1px solid #cdcdcd;
  21677. font-size: 14px;
  21678. color: #868686;
  21679. width: 88%;
  21680. margin: 0 auto;
  21681. }
  21682. .pl_select_box {
  21683. height: 40px;
  21684. line-height: 40px;
  21685. width: 100%;
  21686. cursor: pointer;
  21687. padding: 0 20px;
  21688. box-sizing: border-box;
  21689. border-radius: 5px;
  21690. border: 1px solid #d6d6d6;
  21691. white-space: nowrap;
  21692. overflow: hidden;
  21693. text-overflow: ellipsis;
  21694. background: #fff;
  21695. text-align: left;
  21696. }
  21697. .stageBoxCss {
  21698. display: flex;
  21699. flex-direction: row;
  21700. flex-wrap: nowrap;
  21701. align-items: center;
  21702. height: 50px;
  21703. border-bottom: 1px solid #e2f5fc;
  21704. cursor: pointer;
  21705. }
  21706. .stageChild,
  21707. .toolChild {
  21708. height: 0;
  21709. overflow: hidden;
  21710. transition: all 0.5s;
  21711. }
  21712. .toolChild {
  21713. margin: 0 0 0 17px;
  21714. padding: 0 0 0 20px;
  21715. border-left: 1px solid #d7d7d7;
  21716. }
  21717. .gjCss {
  21718. display: flex;
  21719. flex-direction: row;
  21720. flex-wrap: nowrap;
  21721. align-items: center;
  21722. padding: 15px 0;
  21723. box-sizing: border-box;
  21724. font-size: 14px;
  21725. cursor: pointer;
  21726. }
  21727. .toolChild > div {
  21728. position: relative;
  21729. }
  21730. .toolChild > div::before {
  21731. content: "";
  21732. width: 15px;
  21733. height: 1px;
  21734. background: #cad1dc;
  21735. position: absolute;
  21736. top: 24px;
  21737. left: -20px;
  21738. display: block;
  21739. }
  21740. .isGjCss {
  21741. color: #0061ff;
  21742. }
  21743. .navItem {
  21744. background: #ffffff;
  21745. border-radius: 4px;
  21746. width: 100%;
  21747. margin: 10px auto 0;
  21748. position: relative;
  21749. height: 48px;
  21750. display: flex;
  21751. flex-direction: row;
  21752. flex-wrap: nowrap;
  21753. align-items: center;
  21754. }
  21755. .navItemList {
  21756. display: flex;
  21757. flex-direction: row;
  21758. flex-wrap: nowrap;
  21759. align-items: center;
  21760. padding: 18px 13px;
  21761. cursor: pointer;
  21762. font-size: 16px;
  21763. font-weight: 400;
  21764. color: #0e1e33;
  21765. justify-content: flex-start;
  21766. width: 100%;
  21767. border-radius: 8px;
  21768. }
  21769. .navItemList > div {
  21770. font-size: 16px;
  21771. font-weight: 400;
  21772. }
  21773. .navItemList > div:first-child {
  21774. min-width: 60px;
  21775. }
  21776. .navItemList > div:last-child {
  21777. display: -webkit-box;
  21778. overflow: hidden;
  21779. white-space: normal !important;
  21780. text-overflow: ellipsis;
  21781. word-wrap: break-word;
  21782. -webkit-line-clamp: 2;
  21783. -webkit-box-orient: vertical;
  21784. }
  21785. /* .isItemList {
  21786. background: #3681fc;
  21787. }
  21788. .isItemList>div {
  21789. color: #fff;
  21790. } */
  21791. .isItemList{
  21792. color: #0061ff !important;
  21793. }
  21794. .navListItem {
  21795. width: 280px;
  21796. height: 50px;
  21797. margin: 0px auto 10px;
  21798. display: flex;
  21799. flex-direction: row;
  21800. flex-wrap: nowrap;
  21801. align-items: center;
  21802. justify-content: space-between;
  21803. background: #f0f4fa;
  21804. border-radius: 6px 6px 6px 6px;
  21805. }
  21806. .downIcon {
  21807. width: 20px;
  21808. min-width: 20px;
  21809. height: 20px;
  21810. margin-right: 15px;
  21811. cursor: pointer;
  21812. }
  21813. .downIcon > img {
  21814. width: 100%;
  21815. height: 100%;
  21816. }
  21817. .newButton {
  21818. width: 102px;
  21819. height: 36px;
  21820. background: #e7ebf1;
  21821. border-radius: 4px;
  21822. color: #0e1e33;
  21823. font-weight: 400;
  21824. font-size: 14px;
  21825. border: none;
  21826. float: right;
  21827. margin-left: 10px;
  21828. }
  21829. .pick_box {
  21830. display: flex;
  21831. align-items: flex-start;
  21832. flex-wrap: wrap;
  21833. }
  21834. .selectBox {
  21835. width: 110px;
  21836. margin-left: 10px;
  21837. margin: 0 10px 0 auto;
  21838. }
  21839. .selectBox >>> .el-input__inner {
  21840. height: 30px;
  21841. line-height: 30px;
  21842. }
  21843. .selectBox >>> .el-input__icon {
  21844. line-height: 30px;
  21845. }
  21846. .sentenceTitle {
  21847. display: flex;
  21848. flex-direction: row;
  21849. flex-wrap: nowrap;
  21850. align-items: center;
  21851. }
  21852. .sentenceTitle::before {
  21853. content: attr(index);
  21854. background: #3681fc;
  21855. border-radius: 50%;
  21856. color: #fff;
  21857. width: 25px;
  21858. height: 25px;
  21859. min-width: 25px;
  21860. min-height: 25px;
  21861. text-align: center;
  21862. line-height: 25px;
  21863. margin-right: 5px;
  21864. }
  21865. .closeTri1 {
  21866. min-width: 15px;
  21867. width: 15px;
  21868. height: 15px;
  21869. }
  21870. .closeTri1 {
  21871. padding-left: 10px;
  21872. cursor: pointer;
  21873. }
  21874. .closeTri1 > img {
  21875. width: 100%;
  21876. height: 100%;
  21877. }
  21878. .timeAndReply{
  21879. display: flex;
  21880. flex-direction: row;
  21881. flex-wrap: nowrap;
  21882. justify-content: space-between;
  21883. align-items: center;
  21884. font-size: 14px;
  21885. box-sizing: border-box;
  21886. padding: 0 10px 10px 0px;
  21887. }
  21888. .timeAndReply .time {
  21889. color: #bfbfbf;
  21890. padding: 0 0 0 10px;
  21891. box-sizing: border-box;
  21892. }
  21893. .timeAndReply>div:last-child{
  21894. cursor: pointer;
  21895. color: #777;
  21896. }
  21897. .hfBox{
  21898. padding: 10px;
  21899. box-sizing: border-box;
  21900. }
  21901. .whoReplyWho{
  21902. display: flex;
  21903. flex-direction: row;
  21904. flex-wrap: nowrap;
  21905. align-items: baseline;
  21906. justify-content: flex-start;
  21907. }
  21908. .hfBottom{
  21909. display: flex;
  21910. flex-direction: row;
  21911. flex-wrap: nowrap;
  21912. align-items: baseline;
  21913. justify-content: space-between;
  21914. font-size: 14px;
  21915. }
  21916. .hfBottom>div:last-child{
  21917. cursor: pointer;
  21918. color: #777;
  21919. }
  21920. .whoReplyWho>.hfImg{
  21921. width: 12px;
  21922. height: 12px;
  21923. margin: 0 5px;
  21924. }
  21925. .whoReplyWho>.hfImg>img{
  21926. width: 100%;
  21927. height: 100%;
  21928. }
  21929. .hfContent{
  21930. padding-top: 10px;
  21931. box-sizing: border-box;
  21932. }
  21933. .hfTime{
  21934. text-align: left;
  21935. box-sizing: border-box;
  21936. padding: 10px 0 10px 0px;
  21937. color: #bfbfbf;
  21938. font-size: 14px;
  21939. }
  21940. </style>