studyStudent.vue 723 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352
  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="
  108. navIndex == taskCount &&
  109. nav.id == navId &&
  110. stageIndex == courseType
  111. "
  112. @click="openTask(stageIndex, navIndex, nav.id)"
  113. >
  114. <img src="../../assets/icon/newIcons/bDown.png" alt />
  115. </div>
  116. <div
  117. class="closeTri1"
  118. v-else
  119. @click="openTask(stageIndex, navIndex, nav.id)"
  120. >
  121. <img src="../../assets/icon/newIcons/right.png" alt />
  122. </div>
  123. </div>
  124. <div
  125. @click="openTask(stageIndex, navIndex, nav.id)"
  126. class="navItemList"
  127. :class="{
  128. isItemList:
  129. navIndex == taskCount &&
  130. nav.id == navId &&
  131. stageIndex == courseType,
  132. }"
  133. >
  134. <div>任务{{ navIndex + 1 }}:</div>
  135. <el-tooltip
  136. effect="light"
  137. :content="nav.taskName"
  138. placement="top"
  139. >
  140. <div
  141. :style="{
  142. width:
  143. IsLookOpen && !nav.isLook
  144. ? 'calc(100% - 75px)'
  145. : 'auto',
  146. }"
  147. >
  148. {{ nav.taskName }}
  149. </div>
  150. </el-tooltip>
  151. </div>
  152. </div>
  153. <div
  154. v-if="nav.tool[0].tool != undefined"
  155. class="toolChild"
  156. :class="{
  157. toolActive:
  158. navIndex == taskCount &&
  159. nav.id == navId &&
  160. stageIndex == courseType,
  161. }"
  162. >
  163. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  164. <div
  165. class="gjCss"
  166. :class="{ isGjCss: toolIndex == toolIndex2 }"
  167. @click="checkBz(toolIndex2)"
  168. >
  169. <div>工具{{ toolIndex2 + 1 }}:</div>
  170. <div v-if="t.tool == 58">模拟驾驶</div>
  171. <div v-if="t.tool == 59">路径搜索</div>
  172. <div v-if="t.tool == 60">深度学习</div>
  173. <div v-if="t.tool == 10">倒计时</div>
  174. <div v-if="t.tool == 65">挑人</div>
  175. <div v-if="t.tool == 7">思维网格</div>
  176. <div v-if="t.tool == 1">电子白板</div>
  177. <div v-if="t.tool == 52">文档</div>
  178. <div v-if="t.tool == 3">思维导图</div>
  179. <div v-if="t.tool == 48">表格</div>
  180. <div v-if="t.tool == 49">学生分组</div>
  181. <div v-if="t.tool == 4">问卷调查</div>
  182. <div v-if="t.tool == 45">选择题</div>
  183. <div v-if="t.tool == 15">问答</div>
  184. <div v-if="t.tool == 16">作业提交</div>
  185. <div v-if="t.tool == 50">批量上传</div>
  186. <div v-if="t.tool == 41">选择匹配</div>
  187. <div v-if="t.tool == 47">排序</div>
  188. <div v-if="t.tool == 40">个人评价</div>
  189. <div v-if="t.tool == 18">训练平台</div>
  190. <div v-if="t.tool == 21">AIoT Blockly</div>
  191. <div v-if="t.tool == 23">AI Python</div>
  192. <div v-if="t.tool == 24">AI Blockly</div>
  193. <div v-if="t.tool == 32">源码编辑</div>
  194. <div v-if="t.tool == 57">CocoPi</div>
  195. <div v-if="t.tool == 63">海龟编程</div>
  196. <div v-if="t.tool == 28">翻译</div>
  197. <div v-if="t.tool == 31">数字画板</div>
  198. <div v-if="t.tool == 39">GeoGebra</div>
  199. <div v-if="t.tool == 66">公式编辑</div>
  200. <div v-if="t.tool == 67">分子结构</div>
  201. <div v-if="t.tool == 68">时间轴</div>
  202. <div v-if="t.tool == 25">目标管理</div>
  203. <div v-if="t.tool == 26">课程设计</div>
  204. <div v-if="t.tool == 62">交互视频</div>
  205. </div>
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. </div>
  213. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  214. <div class="new_topFixed"></div>
  215. <div class="new_top" :class="{ navLeftCss: !mlDialog }">
  216. <div class="courseIndex">
  217. <div>任务{{ taskCount + 1 }}</div>
  218. <el-tooltip
  219. effect="light"
  220. :content="
  221. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  222. "
  223. placement="top"
  224. >
  225. <div>
  226. {{
  227. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  228. .task
  229. }}
  230. </div>
  231. </el-tooltip>
  232. </div>
  233. <div class="btnAll">
  234. <div class="btnLeft">
  235. <el-tooltip effect="light" content="刷新" placement="top">
  236. <div class="reBtnIcon" @click="refreshCourse"></div>
  237. </el-tooltip>
  238. <el-tooltip effect="light" content="评论" placement="top">
  239. <div class="commentIcon" @click="setPz" v-if="tType == 1"></div>
  240. </el-tooltip>
  241. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  242. <el-tooltip effect="light" content="录制" placement="top">
  243. <div class="vedioIcon" @click="startRecording"></div>
  244. </el-tooltip>
  245. </div>
  246. <div v-else-if="tType == 1 || tType == 4">
  247. <el-tooltip effect="light" content="下载" placement="top">
  248. <div class="vedioIcon1" @click="stopRecording"></div>
  249. </el-tooltip>
  250. </div>
  251. </div>
  252. <div class="btnRight">
  253. <div class="last" @click="nextOrpreSteps(0)">
  254. <div class="lastImg">
  255. <img src="../../assets/icon/newIcons/last.png" alt="" />
  256. </div>
  257. <div class="lastText">上一步</div>
  258. </div>
  259. <div class="last" @click="nextOrpreSteps(1)">
  260. <div class="lastText">下一步</div>
  261. <div class="lastImg">
  262. <img src="../../assets/icon/newIcons/next.png" alt="" />
  263. </div>
  264. </div>
  265. <!-- <div class="last" @click="juriVisible = true" v-if="tType == 1">
  266. <div class="lastImg">
  267. <img src="../../assets/icon/newIcons/lock.png" alt="" />
  268. </div>
  269. <div class="lastText">权限</div>
  270. </div> -->
  271. <div
  272. class="returnBtn1 returnIcon"
  273. @click.stop="
  274. goTo(
  275. '/courseDetail?userid=' +
  276. userid +
  277. '&oid=' +
  278. oid +
  279. '&org=' +
  280. org +
  281. '&cid=' +
  282. classId +
  283. '&courseId=' +
  284. id +
  285. '&tType=' +
  286. tType +
  287. '&screenType=' +
  288. screenType
  289. )
  290. "
  291. >
  292. <div class="lastImg">
  293. <img src="../../assets/icon/newIcon/return.png" alt="" />
  294. </div>
  295. <div class="lastText" style="color: #000">返回</div>
  296. </div>
  297. </div>
  298. <!-- <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  299. 评论
  300. </div>
  301. <div class="returnBtn vedioIcon" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  302. 录制
  303. </div>
  304. <div class="returnBtn" @click="refreshCourse">刷新</div>
  305. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  306. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  307. <div class="returnBtn returnIcon" @click.stop="
  308. goTo(
  309. '/courseDetail?userid=' +
  310. userid +
  311. '&oid=' +
  312. oid +
  313. '&org=' +
  314. org +
  315. '&cid=' +
  316. classId +
  317. '&courseId=' +
  318. id +
  319. '&tType=' +
  320. tType +
  321. '&screenType=' +
  322. screenType
  323. )
  324. ">
  325. 返回
  326. </div> -->
  327. </div>
  328. </div>
  329. <div
  330. class="isNoMessage"
  331. v-if="
  332. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  333. .chapterData.length == 0 &&
  334. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  335. .toolChoose[0].tool.length == 0 &&
  336. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  337. .taskDetail == '' &&
  338. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  339. .eList &&
  340. !(
  341. courseDetail.userid == userid ||
  342. (courseDetail.course_teacher &&
  343. courseDetail.course_teacher.indexOf(userid) != -1)
  344. )
  345. "
  346. >
  347. <img src="../../assets/icon/isNoMessage.png" alt />
  348. </div>
  349. <div class="study_top" :class="{ pzClass: pzDialog }">
  350. <div
  351. class="vedioBox"
  352. v-if="
  353. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  354. .taskDetail != '' ||
  355. vChapterData[taskCount].length > 0 ||
  356. fileC[taskCount].length > 0
  357. "
  358. >
  359. <div
  360. class="taskBox"
  361. v-if="
  362. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  363. .taskDetail != ''
  364. "
  365. >
  366. <div
  367. style="
  368. display: flex;
  369. flex-wrap: nowrap;
  370. flex-direction: column;
  371. position: relative;
  372. "
  373. >
  374. <div
  375. style="
  376. padding: 20px 0px 15px 0;
  377. line-height: 29px;
  378. font-size: 18px;
  379. color: #0e1e33;
  380. "
  381. class="cont"
  382. v-if="
  383. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  384. .taskDetail != ''
  385. "
  386. v-html="
  387. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  388. .taskDetail
  389. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  390. taskCount
  391. ].taskDetail
  392. : '暂无描述'
  393. "
  394. ></div>
  395. </div>
  396. </div>
  397. <div
  398. class="student_head"
  399. v-if="
  400. vChapterData[taskCount].length > 0 ||
  401. fileC[taskCount].length > 0
  402. "
  403. >
  404. <div class="vedioTaskBox">
  405. <div
  406. :class="
  407. contentDialog == false
  408. ? 'box_course isContentCss'
  409. : 'box_course'
  410. "
  411. v-if="
  412. vChapterData.length > 0 &&
  413. vChapterData[taskCount] &&
  414. showType !== ''
  415. "
  416. >
  417. <div class="wheel" style="height: auto" v-if="showType === 0">
  418. <div
  419. class="workd_media"
  420. style="height: 650px; width: calc(100% - 50px)"
  421. >
  422. <video-player
  423. class="video-player vjs-custom-skin"
  424. :class="contentDialog == false ? 'isAllWidth' : ''"
  425. :playsinline="true"
  426. :options="playerO[taskCount]"
  427. @play="onPlayerPlay($event)"
  428. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  429. ></video-player>
  430. </div>
  431. </div>
  432. <div
  433. class="wheel"
  434. v-if="showType == 1"
  435. style="
  436. box-shadow: 0 0 6px 1px #f2f2f2;
  437. width: 95%;
  438. margin: 0 auto;
  439. background: #f1f1f1;
  440. "
  441. >
  442. <div class="title">查看文档</div>
  443. <el-form class="textBox">
  444. <el-form-item class="textTitle">
  445. <div style="font-size: 22px">
  446. {{ text.name }}
  447. </div>
  448. </el-form-item>
  449. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  450. <div v-html="text.url" class="textContent cont"></div>
  451. </el-form>
  452. </div>
  453. <div
  454. class="wheel"
  455. v-if="
  456. pptImgUrl1.indexOf(
  457. 'https://view.officeapps.live.com/op/view.aspx?src='
  458. ) != -1 && showType == 2
  459. "
  460. style="width: 95%; margin: 0 auto"
  461. >
  462. <iframe
  463. style="width: 100%; height: 100%; border: none"
  464. :src="pptImgUrl1"
  465. ></iframe>
  466. </div>
  467. <div
  468. class="wheel"
  469. v-else-if="showType == 2"
  470. style="width: 95%; margin: 0 auto"
  471. >
  472. <iframe
  473. style="width: 100%; height: 100%; border: none"
  474. security="restricted"
  475. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  476. :src="pptImgUrl1"
  477. ></iframe>
  478. </div>
  479. <div
  480. class="wheel"
  481. v-if="showType == 3"
  482. style="width: 95%; margin: 0 auto"
  483. >
  484. <pdf
  485. :pdfUrl="pptImgUrl1"
  486. style="width: 100%; height: 100%; overflow: auto"
  487. ></pdf>
  488. </div>
  489. <div
  490. class="wheel"
  491. v-if="showType == 4"
  492. style="width: 95%; margin: 0 auto"
  493. >
  494. <el-image
  495. :src="pptImgUrl1"
  496. fit="contain"
  497. style="width: 100%; height: 100%; cursor: pointer"
  498. @click="previewImg(pptImgUrl1)"
  499. ></el-image>
  500. </div>
  501. </div>
  502. <div
  503. class="pButton"
  504. style="position: absolute; right: 20px; top: 0; z-index: 998"
  505. v-if="!contentDialog"
  506. @click="setContent(true)"
  507. >
  508. <!-- 批 -->
  509. <img
  510. src="../../assets/icon/newIcons/isLeft.png"
  511. style="width: 45px"
  512. alt=""
  513. />
  514. </div>
  515. <div
  516. v-if="contentDialog == true"
  517. :style="{
  518. width:
  519. (vChapterData[taskCount].length > 0 ||
  520. fileC[taskCount].length > 0) &&
  521. showType === ''
  522. ? 'calc(100%)'
  523. : '300px',
  524. margin:
  525. (vChapterData[taskCount].length > 0 ||
  526. fileC[taskCount].length > 0) &&
  527. showType === ''
  528. ? '0 15px'
  529. : '0 15px 0 0',
  530. }"
  531. >
  532. <div
  533. class="vedioList"
  534. v-if="
  535. vChapterData[taskCount].length > 0 ||
  536. fileC[taskCount].length > 0
  537. "
  538. style="height: 650px"
  539. >
  540. <div class="navCorOpenBox">
  541. <div class="navTitile">内容列表:</div>
  542. <div class="navCorOpen" @click="setContent(false)">
  543. <img
  544. src="../../assets/icon/newIcons/isRight.png"
  545. alt=""
  546. />
  547. </div>
  548. </div>
  549. <div class="navBox">
  550. <div
  551. v-show="
  552. vChapterData[taskCount].length > 0 ||
  553. fileC[taskCount].length > 0
  554. "
  555. style="padding: 10px 0 25px 0"
  556. >
  557. <div
  558. class="vedioTimeBox"
  559. v-for="(vitem, vindex) in vChapterData[taskCount]"
  560. :key="vindex + '1'"
  561. >
  562. <div class="navListItem" v-if="vitem.type == 2">
  563. <div
  564. @click="lookVedio(vitem.url, vindex)"
  565. class="navText"
  566. :class="isClickNav == vindex ? 'isClickNav' : ''"
  567. >
  568. <span v-if="vitem.text">{{ vitem.text }}-</span
  569. >{{ vitem.name }}
  570. </div>
  571. <div class="downIcon" @click="downloadFile2(vitem)">
  572. <img
  573. src="../../assets/icon/newIcon/down.png"
  574. alt
  575. />
  576. </div>
  577. </div>
  578. <div class="navListItem" v-if="vitem.type == 6">
  579. <div
  580. @click="lookText(taskCount, vindex)"
  581. class="navText"
  582. :class="isClickNav == vindex ? 'isClickNav' : ''"
  583. >
  584. {{ vitem.name }}.doc
  585. </div>
  586. <div
  587. class="downIcon"
  588. @click="checkFileFull1(vitem.type, vitem)"
  589. >
  590. <img
  591. src="../../assets/icon/newIcon/allScreen.png"
  592. alt
  593. />
  594. </div>
  595. </div>
  596. <div
  597. class="navListItem"
  598. v-if="vitem.type == 8 || vitem.type == 14"
  599. >
  600. <div
  601. @click="doUrl(vitem.url, vindex)"
  602. class="navText"
  603. :class="isClickNav == vindex ? 'isClickNav' : ''"
  604. >
  605. {{ vitem.title ? vitem.title : vitem.url }}
  606. </div>
  607. <div
  608. class="downIcon"
  609. @click="checkFileFull1(vitem.type, vitem)"
  610. >
  611. <img
  612. src="../../assets/icon/newIcon/allScreen.png"
  613. alt
  614. />
  615. </div>
  616. </div>
  617. <div class="navListItem" v-if="vitem.type == 3">
  618. <div
  619. @click="downFile(vitem, vindex)"
  620. class="navText"
  621. :class="isClickNav == vindex ? 'isClickNav' : ''"
  622. >
  623. <span v-if="vitem.text">{{ vitem.text }}-</span
  624. >{{ vitem.name }}
  625. </div>
  626. <div class="downIcon" @click="downloadFile2(vitem)">
  627. <img
  628. src="../../assets/icon/newIcon/down.png"
  629. alt
  630. />
  631. </div>
  632. <div
  633. class="downIcon"
  634. @click="checkFileFull1(vitem.type, vitem)"
  635. >
  636. <img
  637. src="../../assets/icon/newIcon/allScreen.png"
  638. alt
  639. />
  640. </div>
  641. </div>
  642. <div class="navListItem" v-if="vitem.type == 12">
  643. <div class="navText" @click="downloadFile2(vitem)">
  644. <span v-if="vitem.text">{{ vitem.text }}-</span
  645. >{{ vitem.name }}
  646. </div>
  647. <div class="downIcon" @click="downloadFile2(vitem)">
  648. <img
  649. src="../../assets/icon/newIcon/down.png"
  650. alt
  651. />
  652. </div>
  653. <div
  654. class="downIcon"
  655. @click="checkFileFull1(vitem.type, vitem)"
  656. >
  657. <img
  658. src="../../assets/icon/newIcon/allScreen.png"
  659. alt
  660. />
  661. </div>
  662. </div>
  663. <div class="navListItem" v-if="vitem.type == 13">
  664. <div
  665. class="navText"
  666. @click="checkPhoto(vitem, vindex)"
  667. :class="isClickNav == vindex ? 'isClickNav' : ''"
  668. >
  669. {{ vitem.name }}
  670. </div>
  671. <div class="downIcon" @click="downloadFile2(vitem)">
  672. <img
  673. src="../../assets/icon/newIcon/down.png"
  674. alt
  675. />
  676. </div>
  677. </div>
  678. </div>
  679. <div
  680. class="fileC_box"
  681. v-if="fileC[taskCount].length > 0"
  682. >
  683. <div class="fileC_title">以下文件不支持预览</div>
  684. <div
  685. class="vedioTimeBox"
  686. v-for="(vitem, vindex) in fileC[taskCount]"
  687. :key="vindex + '1'"
  688. >
  689. <div class="navListItem" v-if="vitem.type == 12">
  690. <div class="navText" style="color: #acb4bf">
  691. <span v-if="vitem.text">{{ vitem.text }}-</span
  692. >{{ vitem.name }}
  693. </div>
  694. <div
  695. class="downIcon"
  696. @click="downloadFile2(vitem)"
  697. >
  698. <img
  699. src="../../assets/icon/newIcon/down.png"
  700. alt
  701. />
  702. </div>
  703. </div>
  704. </div>
  705. </div>
  706. </div>
  707. </div>
  708. </div>
  709. </div>
  710. </div>
  711. <div style="width: calc(100% - 315px)">
  712. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  713. <!-- <el-button
  714. type="primary"
  715. class="newButton"
  716. @click="checkFileFull(showType, pptImgUrl1)"
  717. >全屏查看</el-button
  718. >
  719. <el-button
  720. type="primary"
  721. class="newButton"
  722. @click="downloadFile(pptImgUrl1)"
  723. v-if="showType != 2"
  724. >文件下载</el-button
  725. > -->
  726. <el-button
  727. v-if="
  728. showType == 2 &&
  729. pptImgUrl1.indexOf(
  730. 'https://view.officeapps.live.com/op/view.aspx?src='
  731. ) == -1
  732. "
  733. type="primary"
  734. class="newButton"
  735. @click="openLine(pptImgUrl1)"
  736. >打开链接
  737. </el-button>
  738. </div>
  739. <!-- <div
  740. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  741. v-if="showType == 1"
  742. >
  743. <el-button
  744. type="primary"
  745. class="newButton"
  746. @click="checkFileFull(showType, text)"
  747. >全屏查看</el-button
  748. >
  749. </div> -->
  750. </div>
  751. </div>
  752. </div>
  753. <div
  754. class="student_body"
  755. v-resize="resize"
  756. v-if="
  757. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  758. .toolChoose[0].tool &&
  759. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  760. .toolChoose[0].tool.length > 0
  761. "
  762. >
  763. <div
  764. class="vedioBox"
  765. v-if="
  766. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  767. .toolChoose[0].tool &&
  768. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  769. .toolChoose[0].tool.length &&
  770. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  771. .toolChoose[0].tool.length > 0
  772. "
  773. style="padding: 0 37px"
  774. :style="{
  775. borderRadius:
  776. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  777. .taskDetail == '' &&
  778. vChapterData[taskCount].length == 0 &&
  779. fileC[taskCount].length == 0
  780. ? arrayToArray(tool.tool, isWorkTool).length &&
  781. (noWorksS[toolIndex].length ||
  782. worksStudent[toolIndex].length)
  783. ? '0 0 0 0'
  784. : '0 0 20px 20px'
  785. : arrayToArray(tool.tool, isWorkTool).length &&
  786. (noWorksS[toolIndex].length ||
  787. worksStudent[toolIndex].length)
  788. ? '20px 20px 0 0'
  789. : '20px',
  790. }"
  791. >
  792. <div
  793. class="queTop"
  794. style="
  795. font-size: 20px;
  796. padding: 15px 0 15px 0;
  797. font-weight: bold;
  798. "
  799. >
  800. 工作区
  801. </div>
  802. <div
  803. class="toolHeng2"
  804. style="
  805. position: relative;
  806. /* border-bottom: 1px solid rgb(215, 219, 225); */
  807. "
  808. >
  809. <div
  810. class="filebox"
  811. style="flex-wrap: nowrap"
  812. v-if="
  813. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  814. .toolChoose.length
  815. "
  816. >
  817. <div class="choiceBox">
  818. <div class="bzChild" style="margin-right: 20px">
  819. <span>步骤选择:</span>
  820. </div>
  821. <div class="bzTypeBox">
  822. <div
  823. class="bzChild"
  824. v-for="(bz, bzIndex) in chapInfoList[courseType]
  825. .chapterInfo[0].taskJson[taskCount].toolChoose"
  826. :key="bzIndex"
  827. :class="{ active: toolIndex == bzIndex }"
  828. @click="checkBz(bzIndex)"
  829. >
  830. <span>步骤{{ bzIndex + 1 }}</span>
  831. </div>
  832. </div>
  833. </div>
  834. <div class="bzBox">
  835. <!-- <div class="yCss"></div>
  836. <div>步骤{{ toolIndex + 1 }}</div> -->
  837. <div
  838. style="margin: 0 72px 20px auto"
  839. v-if="tool.tool[0] == 15"
  840. >
  841. <el-button
  842. type="primary"
  843. size="mini"
  844. @click="openWordCloud(toolIndex)"
  845. v-if="tool.tool[0] == 15"
  846. >生成词云</el-button
  847. >
  848. <!-- courseDetail.userid == userid || -->
  849. <!-- <el-button
  850. v-if="courseDetail.userid == userid"
  851. type="primary"
  852. size="mini"
  853. @click="updateToolDetail"
  854. >{{
  855. !isUpdateToolDetail ? "编辑" : "确认修改"
  856. }}</el-button
  857. > -->
  858. </div>
  859. </div>
  860. <div class="toolBox">
  861. <div class="toolBoxSteps" @click="nextToolindex('last')">
  862. <img src="../../assets/icon/leftIcon.png" />
  863. </div>
  864. <div class="toolBoxSteps" @click="nextToolindex('next')">
  865. <img src="../../assets/icon/rightIcon.png" />
  866. </div>
  867. <div>
  868. <div class="noiframeBox">
  869. <div
  870. class="addPoint"
  871. v-for="(tooC, toolCIndex) in tool.tool"
  872. :key="toolCIndex"
  873. >
  874. <div v-show="tooC == 1">
  875. <img
  876. src="../../assets/icon/secondToolList/whiteBoard.png"
  877. alt
  878. @click="addTools(tooC, toolIndex, taskCount)"
  879. />
  880. <div style="margin: 5px 0">电子白板</div>
  881. </div>
  882. <div v-show="tooC == 3">
  883. <img
  884. src="../../assets/icon/secondToolList/mindMapping.png"
  885. alt
  886. @click="addTools(tooC, toolIndex, taskCount)"
  887. />
  888. <div style="margin: 5px 0">思维导图</div>
  889. </div>
  890. <div v-show="tooC == 6">
  891. <img
  892. src="../../assets/icon/secondToolList/doc.png"
  893. alt
  894. @click="addTools(tooC, toolIndex, taskCount)"
  895. />
  896. <div style="margin: 5px 0">协同文档</div>
  897. </div>
  898. <div v-show="tooC == 7">
  899. <img
  900. src="../../assets/icon/secondToolList/mindNetwork.png"
  901. alt
  902. @click="addTools(tooC, toolIndex, taskCount)"
  903. />
  904. <div style="margin: 5px 0">思维网格</div>
  905. </div>
  906. <div v-show="tooC == 8">
  907. <img
  908. src="../../assets/icon/secondToolList/library.png"
  909. alt
  910. @click="addTools(tooC, toolIndex, taskCount)"
  911. />
  912. <div style="margin: 5px 0">素材库</div>
  913. </div>
  914. <div v-show="tooC == 17">
  915. <img
  916. src="../../assets/icon/secondToolList/library.png"
  917. alt
  918. @click="addTools(tooC, toolIndex, taskCount)"
  919. />
  920. <div style="margin: 5px 0">学习资料</div>
  921. </div>
  922. <div v-show="tooC == 2">
  923. <img
  924. @click="addTools(tooC, toolIndex, taskCount)"
  925. src="../../assets/icon/secondToolList/note.png"
  926. alt
  927. />
  928. <div style="margin: 5px 0">便签</div>
  929. </div>
  930. <div v-show="tooC == 4">
  931. <img
  932. @click="addTools(tooC, toolIndex, taskCount)"
  933. src="../../assets/icon/thirdToolList/ask.png"
  934. alt
  935. />
  936. <div style="margin: 5px 0">问卷调查</div>
  937. </div>
  938. <div v-show="tooC == 45">
  939. <img
  940. @click="addTools(tooC, toolIndex, taskCount)"
  941. src="../../assets/icon/thirdToolList/choose.png"
  942. alt
  943. />
  944. <div style="margin: 5px 0">选择题</div>
  945. </div>
  946. <!-- <div v-show="tooC == 5">
  947. <img
  948. @click="addTools(tooC, toolIndex, taskCount)"
  949. src="../../assets/icon/thirdToolList/score.png"
  950. alt
  951. />
  952. <div style="margin: 5px 0">量规评分</div>
  953. </div> -->
  954. <div v-show="tooC == 10">
  955. <img
  956. @click="addTools(tooC, toolIndex, taskCount)"
  957. src="../../assets/icon/thirdToolList/time.png"
  958. alt
  959. />
  960. <div style="margin: 5px 0">倒计时</div>
  961. </div>
  962. <div v-show="tooC == 15">
  963. <img
  964. @click="addTools(tooC, toolIndex, taskCount)"
  965. src="../../assets/icon/thirdToolList/answer.png"
  966. alt
  967. />
  968. <div style="margin: 5px 0">问答</div>
  969. </div>
  970. <div v-show="tooC == 26">
  971. <img
  972. @click="addTools(tooC, toolIndex, taskCount)"
  973. src="../../assets/icon/thirdToolList/courseDesign.png"
  974. alt
  975. />
  976. <div style="margin: 5px 0">课程设计</div>
  977. </div>
  978. <div v-show="tooC == 18">
  979. <img
  980. @click="addTools(tooC, toolIndex, taskCount)"
  981. src="../../assets/icon/thirdToolList/trainPlatform.png"
  982. alt
  983. />
  984. <div style="margin: 5px 0">训练服务器</div>
  985. </div>
  986. <div v-show="tooC == 16">
  987. <img
  988. @click="addTools(tooC, toolIndex, taskCount)"
  989. src="../../assets/icon/thirdToolList/work.png"
  990. alt
  991. />
  992. <div style="margin: 5px 0">作业提交</div>
  993. </div>
  994. <div v-show="tooC == 50">
  995. <img
  996. @click="addTools(tooC, toolIndex, taskCount)"
  997. src="../../assets/icon/thirdToolList/plwork.png"
  998. alt
  999. />
  1000. <div style="margin: 5px 0">批量上传</div>
  1001. </div>
  1002. <div v-show="tooC == 21">
  1003. <img
  1004. @click="addTools(tooC, toolIndex, taskCount)"
  1005. src="../../assets/icon/fourthToolList/program.png"
  1006. alt
  1007. />
  1008. <div style="margin: 5px 0">AIoT Blockly</div>
  1009. </div>
  1010. <!-- <div v-show="tooC == 22">
  1011. <img
  1012. @click="addTools(tooC, toolIndex, taskCount)"
  1013. src="../../assets/icon/fourthToolList/program.png"
  1014. alt
  1015. />
  1016. <div style="margin: 5px 0">AI体验</div>
  1017. </div> -->
  1018. <div v-show="tooC == 23">
  1019. <img
  1020. @click="addTools(tooC, toolIndex, taskCount)"
  1021. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1022. alt
  1023. />
  1024. <div style="margin: 5px 0">AI Python</div>
  1025. </div>
  1026. <div v-show="tooC == 24">
  1027. <img
  1028. @click="addTools(tooC, toolIndex, taskCount)"
  1029. src="../../assets/icon/fourthToolList/AIprogram.png"
  1030. alt
  1031. />
  1032. <div style="margin: 5px 0">AI Blockly</div>
  1033. </div>
  1034. <div v-show="tooC == 25">
  1035. <img
  1036. @click="addTools(tooC, toolIndex, taskCount)"
  1037. src="../../assets/icon/thirdToolList/evalua.png"
  1038. alt
  1039. />
  1040. <div style="margin: 5px 0">目标管理</div>
  1041. </div>
  1042. <div v-show="tooC == 31">
  1043. <img
  1044. @click="addTools(tooC, toolIndex, taskCount)"
  1045. src="../../assets/icon/secondToolList/networkPanel.png"
  1046. alt
  1047. />
  1048. <div style="margin: 5px 0">数学画板</div>
  1049. </div>
  1050. <div v-show="tooC == 28">
  1051. <img
  1052. @click="addTools(tooC, toolIndex, taskCount)"
  1053. src="../../assets/icon/secondToolList/translation.png"
  1054. alt
  1055. />
  1056. <div style="margin: 5px 0">翻译</div>
  1057. </div>
  1058. <div v-show="tooC == 37">
  1059. <img
  1060. @click="addTools(tooC, toolIndex, taskCount)"
  1061. src="../../assets/icon/secondToolList/mohe.png"
  1062. alt
  1063. />
  1064. <div style="margin: 5px 0">魔盒识字</div>
  1065. </div>
  1066. <div v-show="tooC == 38">
  1067. <img
  1068. @click="addTools(tooC, toolIndex, taskCount)"
  1069. src="../../assets/icon/secondToolList/24game.png"
  1070. alt
  1071. />
  1072. <div style="margin: 5px 0">24点</div>
  1073. </div>
  1074. <div v-show="tooC == 39">
  1075. <img
  1076. @click="addTools(tooC, toolIndex, taskCount)"
  1077. src="../../assets/icon/secondToolList/GeoGebra.png"
  1078. alt
  1079. />
  1080. <div style="margin: 5px 0">GeoGebra</div>
  1081. </div>
  1082. <div v-show="tooC == 32">
  1083. <img
  1084. @click="addTools(tooC, toolIndex, taskCount)"
  1085. src="../../assets/icon/thirdToolList/code.png"
  1086. alt
  1087. />
  1088. <div style="margin: 5px 0">源码编辑</div>
  1089. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1090. style="position: absolute;left: 110px;bottom: 30px;">
  1091. 上传文件
  1092. <input type="file" accept="*" style="display: none"
  1093. @change="beforeUpload1($event, 7, toolIndex)" />
  1094. </div> -->
  1095. </div>
  1096. <!-- <div v-show="tooC == 40">
  1097. <img
  1098. @click="addTools(tooC, toolIndex, taskCount)"
  1099. src="../../assets/icon/secondToolList/eval.png"
  1100. alt
  1101. />
  1102. <div style="margin: 5px 0">个人评价</div>
  1103. </div> -->
  1104. <div v-show="tooC == 41">
  1105. <img
  1106. @click="addTools(tooC, toolIndex, taskCount)"
  1107. src="../../assets/icon/thirdToolList/select.png"
  1108. alt
  1109. />
  1110. <div style="margin: 5px 0">选择匹配</div>
  1111. </div>
  1112. <div v-show="tooC == 44">
  1113. <img
  1114. @click="addTools(tooC, toolIndex, taskCount)"
  1115. src="../../assets/icon/thirdToolList/hanClass.png"
  1116. alt
  1117. />
  1118. <div style="margin: 5px 0">汉字宫</div>
  1119. </div>
  1120. <div v-show="tooC == 47">
  1121. <img
  1122. @click="addTools(tooC, toolIndex, taskCount)"
  1123. src="../../assets/icon/fourthToolList/conSentences.png"
  1124. alt
  1125. />
  1126. <div style="margin: 5px 0">排序</div>
  1127. </div>
  1128. <div v-show="tooC == 48">
  1129. <img
  1130. @click="addTools(tooC, toolIndex, taskCount)"
  1131. src="../../assets/icon/fourthToolList/table.png"
  1132. alt
  1133. />
  1134. <div style="margin: 5px 0">表格</div>
  1135. </div>
  1136. <div v-show="tooC == 52">
  1137. <img
  1138. @click="addTools(tooC, toolIndex, taskCount)"
  1139. src="../../assets/icon/fourthToolList/text.png"
  1140. alt
  1141. />
  1142. <div style="margin: 5px 0">文档</div>
  1143. </div>
  1144. <!-- <div v-show="tooC == 49">
  1145. <img @click="addTools(tooC, toolIndex, taskCount)"
  1146. src="../../assets/icon/fourthToolList/group.png" alt />
  1147. <div style="margin: 5px 0">学生分组</div>
  1148. </div> -->
  1149. <div v-show="tooC == 57">
  1150. <img
  1151. @click="addTools(tooC, toolIndex, taskCount)"
  1152. src="../../assets/icon/fourthToolList/cocopi.png"
  1153. alt
  1154. />
  1155. <div style="margin: 5px 0">CocoPi</div>
  1156. </div>
  1157. <div v-show="tooC == 58">
  1158. <img
  1159. @click="addTools(tooC, toolIndex, taskCount)"
  1160. src="../../assets/icon/fourthToolList/car.png"
  1161. alt
  1162. />
  1163. <div style="margin: 5px 0">模拟驾驶</div>
  1164. </div>
  1165. <div v-show="tooC == 59">
  1166. <img
  1167. @click="addTools(tooC, toolIndex, taskCount)"
  1168. src="../../assets/icon/fourthToolList/lineSearch.png"
  1169. alt
  1170. />
  1171. <div style="margin: 5px 0">路径搜索</div>
  1172. </div>
  1173. <div v-show="tooC == 60">
  1174. <img
  1175. @click="addTools(tooC, toolIndex, taskCount)"
  1176. src="../../assets/icon/fourthToolList/deepLearning.png"
  1177. alt
  1178. />
  1179. <div style="margin: 5px 0">深度学习</div>
  1180. </div>
  1181. <div v-show="tooC == 61">
  1182. <img
  1183. @click="addTools(tooC, toolIndex, taskCount)"
  1184. src="../../assets/icon/fourthToolList/allHistory.png"
  1185. alt
  1186. />
  1187. <div style="margin: 5px 0">全历史</div>
  1188. </div>
  1189. <div v-show="tooC == 62">
  1190. <img
  1191. @click="addTools(tooC, toolIndex, taskCount)"
  1192. src="../../assets/icon/fourthToolList/interVideo.png"
  1193. alt
  1194. />
  1195. <div style="margin: 5px 0">交互视频</div>
  1196. </div>
  1197. <div v-show="tooC == 63">
  1198. <img
  1199. @click="addTools(tooC, toolIndex, taskCount)"
  1200. src="../../assets/icon/fourthToolList/Wood.png"
  1201. alt
  1202. />
  1203. <div style="margin: 5px 0">海龟编程</div>
  1204. </div>
  1205. <div v-if="tooC == 65">
  1206. <img
  1207. @click="addTools(tooC, toolIndex, taskCount)"
  1208. src="../../assets/icon/firstToolList/pickPeople.png"
  1209. alt
  1210. />
  1211. <div style="margin: 5px 0">挑人</div>
  1212. </div>
  1213. <div v-if="tooC == 66">
  1214. <img
  1215. @click="addTools(tooC, toolIndex, taskCount)"
  1216. src="../../assets/icon/secondToolList/formulaEdi.png"
  1217. alt
  1218. />
  1219. <div style="margin: 5px 0">公式编辑</div>
  1220. </div>
  1221. <div v-if="tooC == 67">
  1222. <img
  1223. @click="addTools(tooC, toolIndex, taskCount)"
  1224. src="../../assets/icon/secondToolList/molStr.png"
  1225. alt
  1226. />
  1227. <div style="margin: 5px 0">分子结构</div>
  1228. </div>
  1229. <div v-if="tooC == 68">
  1230. <img
  1231. @click="addTools(tooC, toolIndex, taskCount)"
  1232. src="../../assets/icon/secondToolList/timeAxis.png"
  1233. alt
  1234. />
  1235. <div style="margin: 5px 0">时间轴</div>
  1236. </div>
  1237. </div>
  1238. </div>
  1239. </div>
  1240. <div class="tooldetail">
  1241. <!-- <div class="toolTitle">工具描述</div> -->
  1242. <div
  1243. style="height: 100%"
  1244. v-html="
  1245. contentConvent(
  1246. tool.toolDetail ? tool.toolDetail : '暂无描述'
  1247. )
  1248. "
  1249. v-if="!isUpdateToolDetail"
  1250. @click.stop="updateToolDetail"
  1251. ></div>
  1252. <div v-else @click.stop="">
  1253. <el-input
  1254. type="textarea"
  1255. :rows="3"
  1256. resize="none"
  1257. v-model="updateToolDetailInner"
  1258. placeholder="请输入任务描述"
  1259. ></el-input>
  1260. </div>
  1261. </div>
  1262. <el-button
  1263. type="primary"
  1264. v-if="tool.tool[0] == 32"
  1265. style="
  1266. position: absolute;
  1267. right: 30px;
  1268. transform: translateY(-130%);
  1269. "
  1270. @click="addImg($event)"
  1271. >上传作业<input
  1272. type="file"
  1273. accept="*"
  1274. style="display: none"
  1275. @change="beforeUpload1($event, 7, toolIndex)"
  1276. /></el-button>
  1277. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1278. position: absolute;
  1279. right: 30px;
  1280. transform: translateY(-130%);
  1281. " @click="addImg($event)">上传作业<input type="file" accept="*"
  1282. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1283. </div>
  1284. </div>
  1285. </div>
  1286. </div>
  1287. <div
  1288. class="vedioBox"
  1289. v-if="
  1290. arrayToArray(tool.tool, isWorkTool).length &&
  1291. worksTeacher.length &&
  1292. worksTeacher[toolIndex].length &&
  1293. false
  1294. "
  1295. >
  1296. <div
  1297. class="queTop"
  1298. style="
  1299. font-size: 20px;
  1300. padding: 15px 0 15px 30px;
  1301. font-weight: bold;
  1302. "
  1303. >
  1304. 教师工作区
  1305. </div>
  1306. <div class="tool_work_box">
  1307. <div
  1308. v-if="
  1309. tType &&
  1310. ((tType == 2 && sIsOpen == true) ||
  1311. tType == 1 ||
  1312. tType == 4) &&
  1313. tool.tool.indexOf(16) != -1
  1314. "
  1315. class="worksBox"
  1316. >
  1317. <div
  1318. class="zuoyeYulan"
  1319. v-if="
  1320. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1321. "
  1322. >
  1323. <div class="worksTop">
  1324. <div>作业预览</div>
  1325. </div>
  1326. </div>
  1327. <div
  1328. class="worksDetailBox"
  1329. v-if="
  1330. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1331. "
  1332. >
  1333. <div
  1334. class="works"
  1335. style="
  1336. width: 200px;
  1337. height: 140px;
  1338. margin: 10px 10px 10px 0;
  1339. border-radius: 15px;
  1340. box-shadow: 0 0 6px 1px #dfdada;
  1341. "
  1342. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1343. :key="wIndex"
  1344. :class="w.type == 1 ? 'isTypeOne' : ''"
  1345. >
  1346. <div class="workImg" v-if="w.type == 0">
  1347. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1348. <img :src="w.works" @click="previewImg(w.works)" alt />
  1349. <div
  1350. class="answerScore"
  1351. v-if="w.score"
  1352. @click.stop="openScore(w)"
  1353. :class="{
  1354. rightW:
  1355. w.userid == userid ||
  1356. tType == 1 ||
  1357. tType == 4 ||
  1358. w.ateacher == userid,
  1359. }"
  1360. >
  1361. {{ JSON.parse(w.score).wScore }}分
  1362. </div>
  1363. <div
  1364. class="answerScore"
  1365. @click.stop="openScore(w)"
  1366. v-else-if="courseDetail.userid == userid"
  1367. :class="{
  1368. rightW:
  1369. w.userid == userid ||
  1370. tType == 1 ||
  1371. tType == 4 ||
  1372. w.ateacher == userid,
  1373. }"
  1374. >
  1375. 评分
  1376. </div>
  1377. <img
  1378. class="deleteImg"
  1379. src="../../assets/deleteworks.png"
  1380. v-if="w.userid == userid || tType == 1 || tType == 4"
  1381. @click.stop="deleteWorks(w.wid)"
  1382. alt
  1383. />
  1384. </div>
  1385. <div class="workImg" v-if="w.type == 1">
  1386. <img :src="word" @click="openFile(w.works)" alt />
  1387. <!-- @click="openFile(w.works)" -->
  1388. <div
  1389. class="answerScore"
  1390. v-if="w.score"
  1391. @click.stop="openScore(w)"
  1392. :class="{
  1393. rightW:
  1394. w.userid == userid ||
  1395. tType == 1 ||
  1396. tType == 4 ||
  1397. w.ateacher == userid,
  1398. }"
  1399. >
  1400. {{ JSON.parse(w.score).wScore }}分
  1401. </div>
  1402. <div
  1403. class="answerScore"
  1404. @click.stop="openScore(w)"
  1405. v-else-if="courseDetail.userid == userid"
  1406. :class="{
  1407. rightW:
  1408. w.userid == userid ||
  1409. tType == 1 ||
  1410. tType == 4 ||
  1411. w.ateacher == userid,
  1412. }"
  1413. >
  1414. 评分
  1415. </div>
  1416. <img
  1417. class="deleteImg"
  1418. src="../../assets/deleteworks.png"
  1419. v-if="w.userid == userid || tType == 1 || tType == 4"
  1420. @click.stop="deleteWorks(w.wid)"
  1421. alt
  1422. />
  1423. </div>
  1424. <div class="workImg" v-if="w.type == 3">
  1425. <img
  1426. style="cursor: pointer"
  1427. :src="video"
  1428. @click="openVideo(w)"
  1429. alt
  1430. />
  1431. <!-- @click="openVideo(w.works)" -->
  1432. <div
  1433. class="answerScore"
  1434. v-if="w.score"
  1435. @click.stop="openScore(w)"
  1436. :class="{
  1437. rightW:
  1438. w.userid == userid ||
  1439. tType == 1 ||
  1440. tType == 4 ||
  1441. w.ateacher == userid,
  1442. }"
  1443. >
  1444. {{ JSON.parse(w.score).wScore }}分
  1445. </div>
  1446. <div
  1447. class="answerScore"
  1448. @click.stop="openScore(w)"
  1449. v-else-if="courseDetail.userid == userid"
  1450. :class="{
  1451. rightW:
  1452. w.userid == userid ||
  1453. tType == 1 ||
  1454. tType == 4 ||
  1455. w.ateacher == userid,
  1456. }"
  1457. >
  1458. 评分
  1459. </div>
  1460. <img
  1461. class="deleteImg"
  1462. src="../../assets/deleteworks.png"
  1463. v-if="w.userid == userid || tType == 1 || tType == 4"
  1464. @click.stop="deleteWorks(w.wid)"
  1465. alt
  1466. />
  1467. </div>
  1468. <div class="workImg" v-if="w.type == 12">
  1469. <img
  1470. style="cursor: pointer"
  1471. :src="word2"
  1472. @click="downloadFile(w.works)"
  1473. alt
  1474. />
  1475. <!-- @click="openVideo(w.works)" -->
  1476. <div
  1477. class="answerScore"
  1478. v-if="w.score"
  1479. @click.stop="openScore(w)"
  1480. :class="{
  1481. rightW:
  1482. w.userid == userid ||
  1483. tType == 1 ||
  1484. tType == 4 ||
  1485. w.ateacher == userid,
  1486. }"
  1487. >
  1488. {{ JSON.parse(w.score).wScore }}分
  1489. </div>
  1490. <div
  1491. class="answerScore"
  1492. @click.stop="openScore(w)"
  1493. v-else-if="courseDetail.userid == userid"
  1494. :class="{
  1495. rightW:
  1496. w.userid == userid ||
  1497. tType == 1 ||
  1498. tType == 4 ||
  1499. w.ateacher == userid,
  1500. }"
  1501. >
  1502. 评分
  1503. </div>
  1504. <img
  1505. class="deleteImg"
  1506. src="../../assets/deleteworks.png"
  1507. v-if="w.userid == userid || tType == 1 || tType == 4"
  1508. @click.stop="deleteWorks(w.wid)"
  1509. alt
  1510. />
  1511. </div>
  1512. <div class="comment" style="min-width: 200px">
  1513. <div class="worksName">
  1514. <div>{{ w.sName }}</div>
  1515. </div>
  1516. <div class="commentList">
  1517. <div class="commentList">
  1518. <div
  1519. class="commentImg"
  1520. @click="
  1521. isLikes(w.wid, userid, 1, null, w.isLikes)
  1522. "
  1523. >
  1524. <img
  1525. :src="w.isLikes == true ? likes : noLikes"
  1526. alt=""
  1527. />
  1528. </div>
  1529. <div>{{ w.likesCount }}</div>
  1530. </div>
  1531. <div class="commentList" style="margin-right: 15px">
  1532. <div
  1533. class="commentImg"
  1534. @click="commentOther(w, toolIndex, wIndex)"
  1535. >
  1536. <img
  1537. src="../../assets/icon/comment/comment.png"
  1538. alt=""
  1539. />
  1540. </div>
  1541. <div>{{ w.commentCount }}</div>
  1542. </div>
  1543. </div>
  1544. </div>
  1545. </div>
  1546. </div>
  1547. </div>
  1548. <div
  1549. v-if="
  1550. tType &&
  1551. ((tType == 2 && sIsOpen == true) ||
  1552. tType == 1 ||
  1553. tType == 4) &&
  1554. tool.tool.indexOf(32) != -1
  1555. "
  1556. class="worksBox"
  1557. >
  1558. <div
  1559. class="zuoyeYulan"
  1560. v-if="
  1561. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1562. "
  1563. >
  1564. <div class="worksTop">
  1565. <div>作业预览</div>
  1566. </div>
  1567. </div>
  1568. <div
  1569. class="worksDetailBox"
  1570. v-if="
  1571. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1572. "
  1573. >
  1574. <div
  1575. class="works"
  1576. style="
  1577. width: 200px;
  1578. height: 140px;
  1579. margin: 10px 10px 10px 0;
  1580. border-radius: 15px;
  1581. box-shadow: 0 0 6px 1px #dfdada;
  1582. "
  1583. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1584. :key="wIndex"
  1585. :class="w.type == 1 ? 'isTypeOne' : ''"
  1586. >
  1587. <div class="workImg">
  1588. <img :src="word2" @click="downloadFile(w.works)" alt />
  1589. <div
  1590. class="answerScore"
  1591. v-if="w.score"
  1592. @click.stop="openScore(w)"
  1593. :class="{
  1594. rightW:
  1595. w.userid == userid ||
  1596. tType == 1 ||
  1597. tType == 4 ||
  1598. w.ateacher == userid,
  1599. }"
  1600. >
  1601. {{ JSON.parse(w.score).wScore }}分
  1602. </div>
  1603. <div
  1604. class="answerScore"
  1605. @click.stop="openScore(w)"
  1606. v-else-if="courseDetail.userid == userid"
  1607. :class="{
  1608. rightW:
  1609. w.userid == userid ||
  1610. tType == 1 ||
  1611. tType == 4 ||
  1612. w.ateacher == userid,
  1613. }"
  1614. >
  1615. 评分
  1616. </div>
  1617. <img
  1618. class="deleteImg"
  1619. src="../../assets/deleteworks.png"
  1620. v-if="w.userid == userid || tType == 1 || tType == 4"
  1621. @click.stop="deleteWorks(w.wid)"
  1622. alt
  1623. />
  1624. </div>
  1625. <div class="comment" style="min-width: 200px">
  1626. <div class="worksName">
  1627. <div>{{ w.sName }}</div>
  1628. </div>
  1629. <div class="commentList">
  1630. <div class="commentList">
  1631. <div
  1632. class="commentImg"
  1633. @click="
  1634. isLikes(w.wid, userid, 1, null, w.isLikes)
  1635. "
  1636. >
  1637. <img
  1638. :src="w.isLikes == true ? likes : noLikes"
  1639. alt=""
  1640. />
  1641. </div>
  1642. <div>{{ w.likesCount }}</div>
  1643. </div>
  1644. <div class="commentList" style="margin-right: 15px">
  1645. <div
  1646. class="commentImg"
  1647. @click="commentOther(w, toolIndex, wIndex)"
  1648. >
  1649. <img
  1650. src="../../assets/icon/comment/comment.png"
  1651. alt=""
  1652. />
  1653. </div>
  1654. <div>{{ w.commentCount }}</div>
  1655. </div>
  1656. </div>
  1657. </div>
  1658. </div>
  1659. </div>
  1660. </div>
  1661. <div
  1662. v-if="
  1663. tType &&
  1664. ((tType == 2 && sIsOpen == true) ||
  1665. tType == 1 ||
  1666. tType == 4) &&
  1667. tool.tool.indexOf(57) != -1
  1668. "
  1669. class="worksBox"
  1670. >
  1671. <div
  1672. class="zuoyeYulan"
  1673. v-if="
  1674. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1675. "
  1676. >
  1677. <div class="worksTop">
  1678. <div>作业预览</div>
  1679. </div>
  1680. </div>
  1681. <div
  1682. class="worksDetailBox"
  1683. v-if="
  1684. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1685. "
  1686. >
  1687. <div
  1688. class="works"
  1689. style="
  1690. width: 200px;
  1691. height: 140px;
  1692. margin: 10px 10px 10px 0;
  1693. border-radius: 15px;
  1694. box-shadow: 0 0 6px 1px #dfdada;
  1695. "
  1696. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1697. :key="wIndex"
  1698. :class="w.type == 1 ? 'isTypeOne' : ''"
  1699. >
  1700. <div class="workImg">
  1701. <img
  1702. :src="word2"
  1703. @click="downloadFile(w.works)"
  1704. v-if="w.type == 12"
  1705. alt
  1706. />
  1707. <img
  1708. :src="word2"
  1709. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  1710. v-else-if="w.type == 15"
  1711. alt
  1712. />
  1713. <div
  1714. class="answerScore"
  1715. v-if="w.score"
  1716. @click.stop="openScore(w)"
  1717. :class="{
  1718. rightW:
  1719. w.userid == userid ||
  1720. tType == 1 ||
  1721. tType == 4 ||
  1722. w.ateacher == userid,
  1723. }"
  1724. >
  1725. {{ JSON.parse(w.score).wScore }}分
  1726. </div>
  1727. <div
  1728. class="answerScore"
  1729. @click.stop="openScore(w)"
  1730. v-else-if="courseDetail.userid == userid"
  1731. :class="{
  1732. rightW:
  1733. w.userid == userid ||
  1734. tType == 1 ||
  1735. tType == 4 ||
  1736. w.ateacher == userid,
  1737. }"
  1738. >
  1739. 评分
  1740. </div>
  1741. <img
  1742. class="deleteImg"
  1743. src="../../assets/deleteworks.png"
  1744. v-if="w.userid == userid || tType == 1 || tType == 4"
  1745. @click.stop="deleteWorks(w.wid)"
  1746. alt
  1747. />
  1748. </div>
  1749. <div class="comment" style="min-width: 200px">
  1750. <div class="worksName">
  1751. <div>{{ w.sName }}</div>
  1752. </div>
  1753. <div class="commentList">
  1754. <div class="commentList">
  1755. <div
  1756. class="commentImg"
  1757. @click="
  1758. isLikes(w.wid, userid, 1, null, w.isLikes)
  1759. "
  1760. >
  1761. <img
  1762. :src="w.isLikes == true ? likes : noLikes"
  1763. alt=""
  1764. />
  1765. </div>
  1766. <div>{{ w.likesCount }}</div>
  1767. </div>
  1768. <div class="commentList" style="margin-right: 15px">
  1769. <div
  1770. class="commentImg"
  1771. @click="commentOther(w, toolIndex, wIndex)"
  1772. >
  1773. <img
  1774. src="../../assets/icon/comment/comment.png"
  1775. alt=""
  1776. />
  1777. </div>
  1778. <div>{{ w.commentCount }}</div>
  1779. </div>
  1780. </div>
  1781. </div>
  1782. </div>
  1783. </div>
  1784. </div>
  1785. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  1786. <div
  1787. class="zuoyeYulan"
  1788. v-if="
  1789. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1790. "
  1791. >
  1792. <span>作业预览</span>
  1793. </div>
  1794. <div
  1795. class="worksDetailBox"
  1796. v-if="
  1797. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1798. "
  1799. >
  1800. <div
  1801. class="works"
  1802. style="
  1803. width: 200px;
  1804. height: 140px;
  1805. margin: 10px 10px 10px 0;
  1806. border-radius: 15px;
  1807. box-shadow: 0 0 6px 1px #dfdada;
  1808. "
  1809. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1810. :key="wIndex"
  1811. :class="w.type == 1 ? 'isTypeOne' : ''"
  1812. >
  1813. <div class="workImg" v-if="w.type == 0">
  1814. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1815. <img :src="w.works" @click="previewImg(w.works)" alt />
  1816. <div
  1817. class="answerScore"
  1818. v-if="w.score"
  1819. @click.stop="openScore(w)"
  1820. :class="{
  1821. rightW:
  1822. w.userid == userid ||
  1823. tType == 1 ||
  1824. tType == 4 ||
  1825. w.ateacher == userid,
  1826. }"
  1827. >
  1828. {{ JSON.parse(w.score).wScore }}分
  1829. </div>
  1830. <div
  1831. class="answerScore"
  1832. @click.stop="openScore(w)"
  1833. v-else-if="courseDetail.userid == userid"
  1834. :class="{
  1835. rightW:
  1836. w.userid == userid ||
  1837. tType == 1 ||
  1838. tType == 4 ||
  1839. w.ateacher == userid,
  1840. }"
  1841. >
  1842. 评分
  1843. </div>
  1844. <img
  1845. class="deleteImg"
  1846. src="../../assets/deleteworks.png"
  1847. v-if="w.userid == userid || tType == 1 || tType == 4"
  1848. @click.stop="deleteWorks(w.wid)"
  1849. alt
  1850. />
  1851. </div>
  1852. <div
  1853. class="workImg"
  1854. style="cursor: pointer"
  1855. v-if="w.type == 1"
  1856. >
  1857. <img :src="word" @click="openFile(w.works)" alt />
  1858. <!-- @click="openFile(w.works)" -->
  1859. <div
  1860. class="answerScore"
  1861. v-if="w.score"
  1862. @click.stop="openScore(w)"
  1863. :class="{
  1864. rightW:
  1865. w.userid == userid ||
  1866. tType == 1 ||
  1867. tType == 4 ||
  1868. w.ateacher == userid,
  1869. }"
  1870. >
  1871. {{ JSON.parse(w.score).wScore }}分
  1872. </div>
  1873. <div
  1874. class="answerScore"
  1875. @click.stop="openScore(w)"
  1876. v-else-if="courseDetail.userid == userid"
  1877. :class="{
  1878. rightW:
  1879. w.userid == userid ||
  1880. tType == 1 ||
  1881. tType == 4 ||
  1882. w.ateacher == userid,
  1883. }"
  1884. >
  1885. 评分
  1886. </div>
  1887. <img
  1888. class="deleteImg"
  1889. src="../../assets/deleteworks.png"
  1890. v-if="w.userid == userid || tType == 1 || tType == 4"
  1891. @click.stop="deleteWorks(w.wid)"
  1892. alt
  1893. />
  1894. </div>
  1895. <div class="workImg" v-if="w.type == 3">
  1896. <img
  1897. style="cursor: pointer"
  1898. :src="video"
  1899. @click="openVideo(w)"
  1900. alt
  1901. />
  1902. <!-- @click="openVideo(w.works)" -->
  1903. <div
  1904. class="answerScore"
  1905. v-if="w.score"
  1906. @click.stop="openScore(w)"
  1907. :class="{
  1908. rightW:
  1909. w.userid == userid ||
  1910. tType == 1 ||
  1911. tType == 4 ||
  1912. w.ateacher == userid,
  1913. }"
  1914. >
  1915. {{ JSON.parse(w.score).wScore }}分
  1916. </div>
  1917. <div
  1918. class="answerScore"
  1919. @click.stop="openScore(w)"
  1920. v-else-if="courseDetail.userid == userid"
  1921. :class="{
  1922. rightW:
  1923. w.userid == userid ||
  1924. tType == 1 ||
  1925. tType == 4 ||
  1926. w.ateacher == userid,
  1927. }"
  1928. >
  1929. 评分
  1930. </div>
  1931. <img
  1932. class="deleteImg"
  1933. src="../../assets/deleteworks.png"
  1934. v-if="w.userid == userid || tType == 1 || tType == 4"
  1935. @click.stop="deleteWorks(w.wid)"
  1936. alt
  1937. />
  1938. </div>
  1939. <div class="comment" style="min-width: 200px">
  1940. <div class="worksName">
  1941. <div
  1942. style="cursor: pointer"
  1943. @click="
  1944. openSname(w.sName, w.wid, toolIndex, w.userid)
  1945. "
  1946. >
  1947. {{ w.sName }}
  1948. </div>
  1949. </div>
  1950. <div class="commentList">
  1951. <div class="commentList">
  1952. <div
  1953. class="commentImg"
  1954. @click="
  1955. isLikes(w.wid, userid, 1, null, w.isLikes)
  1956. "
  1957. >
  1958. <img
  1959. :src="w.isLikes == true ? likes : noLikes"
  1960. alt=""
  1961. />
  1962. </div>
  1963. <div>{{ w.likesCount }}</div>
  1964. </div>
  1965. <div class="commentList" style="margin-right: 15px">
  1966. <div
  1967. class="commentImg"
  1968. @click="commentOther(w, toolIndex, wIndex)"
  1969. >
  1970. <img
  1971. src="../../assets/icon/comment/comment.png"
  1972. alt=""
  1973. />
  1974. </div>
  1975. <div>{{ w.commentCount }}</div>
  1976. </div>
  1977. </div>
  1978. </div>
  1979. </div>
  1980. </div>
  1981. </div>
  1982. <div
  1983. v-if="
  1984. tType &&
  1985. ((tType == 2 && sIsOpen == true) ||
  1986. tType == 1 ||
  1987. tType == 4) &&
  1988. tool.tool.indexOf(4) != -1
  1989. "
  1990. class="worksBox"
  1991. >
  1992. <div
  1993. class="zuoyeYulan"
  1994. v-if="
  1995. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1996. "
  1997. >
  1998. <div class="worksTop">
  1999. <div>作业预览</div>
  2000. </div>
  2001. </div>
  2002. <div>
  2003. <div
  2004. class="worksDetailBox"
  2005. v-if="
  2006. worksTeacher.length &&
  2007. worksTeacher[toolIndex].length > 0
  2008. "
  2009. >
  2010. <div
  2011. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2012. :key="wIndex"
  2013. class="isWorksName2"
  2014. @click="
  2015. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2016. "
  2017. >
  2018. {{ w.sName }}
  2019. <img
  2020. class="deleteImg deleteImg2"
  2021. src="../../assets/deleteworks.png"
  2022. v-if="w.userid == userid || tType == 1 || tType == 4"
  2023. @click.stop="deleteWorks(w.wid)"
  2024. alt
  2025. />
  2026. </div>
  2027. </div>
  2028. </div>
  2029. </div>
  2030. <div
  2031. v-if="
  2032. tType &&
  2033. ((tType == 2 && sIsOpen == true) ||
  2034. tType == 1 ||
  2035. tType == 4) &&
  2036. tool.tool.indexOf(45) != -1
  2037. "
  2038. class="worksBox"
  2039. >
  2040. <div
  2041. class="zuoyeYulan"
  2042. v-if="
  2043. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2044. "
  2045. >
  2046. <div class="worksTop">
  2047. <div>作业预览</div>
  2048. </div>
  2049. </div>
  2050. <div>
  2051. <div
  2052. class="worksDetailBox"
  2053. v-if="
  2054. worksTeacher.length &&
  2055. worksTeacher[toolIndex].length > 0
  2056. "
  2057. >
  2058. <div
  2059. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2060. :key="wIndex"
  2061. class="isWorksName2"
  2062. @click="
  2063. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2064. "
  2065. >
  2066. {{ w.sName }}
  2067. <img
  2068. class="deleteImg deleteImg2"
  2069. src="../../assets/deleteworks.png"
  2070. v-if="w.userid == userid || tType == 1 || tType == 4"
  2071. @click.stop="deleteWorks(w.wid)"
  2072. alt
  2073. />
  2074. </div>
  2075. </div>
  2076. </div>
  2077. </div>
  2078. <div
  2079. v-if="
  2080. tType &&
  2081. ((tType == 2 && sIsOpen == true) ||
  2082. tType == 1 ||
  2083. tType == 4) &&
  2084. tool.tool.indexOf(15) != -1
  2085. "
  2086. class="worksBox"
  2087. >
  2088. <div
  2089. class="zuoyeYulan"
  2090. v-if="
  2091. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2092. "
  2093. >
  2094. <div class="worksTop">
  2095. <div>作业预览</div>
  2096. </div>
  2097. </div>
  2098. <div
  2099. class="worksDetailBox"
  2100. v-if="
  2101. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2102. "
  2103. >
  2104. <div
  2105. class="works"
  2106. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2107. :key="wIndex"
  2108. >
  2109. <div
  2110. class="workImg"
  2111. style="
  2112. border-radius: 15px;
  2113. box-shadow: #eee 0px 0px 5px 5px;
  2114. "
  2115. >
  2116. <!-- <img
  2117. src="../../assets/icon/works/noImg.png"
  2118. @click="openTools(15, toolIndex, taskCount, w.works)"
  2119. alt=""
  2120. />-->
  2121. <div
  2122. class="answerBg"
  2123. style="border-radius: 15px 15px 0 0"
  2124. @click="commentOther(w, toolIndex, wIndex)"
  2125. >
  2126. <!-- <div>{{ w.sName }}</div> -->
  2127. <div class="answerContent">
  2128. {{ JSON.parse(w.works)[0].answer }}
  2129. </div>
  2130. <div
  2131. class="answerScore"
  2132. v-if="w.score"
  2133. @click.stop="openScore(w)"
  2134. :class="{
  2135. rightW:
  2136. w.userid == userid || tType == 1 || tType == 4,
  2137. }"
  2138. >
  2139. {{ JSON.parse(w.score).wScore }}分
  2140. </div>
  2141. <div
  2142. class="answerScore"
  2143. @click.stop="openScore(w)"
  2144. v-else-if="courseDetail.userid == userid"
  2145. :class="{
  2146. rightW:
  2147. w.userid == userid || tType == 1 || tType == 4,
  2148. }"
  2149. >
  2150. 评分
  2151. </div>
  2152. <img
  2153. class="deleteImg"
  2154. src="../../assets/deleteworks.png"
  2155. v-if="
  2156. w.userid == userid || tType == 1 || tType == 4
  2157. "
  2158. @click.stop="deleteWorks(w.wid)"
  2159. alt
  2160. />
  2161. </div>
  2162. <div class="comment">
  2163. <div class="worksName">
  2164. <div>{{ w.sName }}</div>
  2165. </div>
  2166. <div class="commentList">
  2167. <div
  2168. class="commentImg"
  2169. @click="
  2170. isLikes(w.wid, userid, 1, null, w.isLikes)
  2171. "
  2172. >
  2173. <img
  2174. :src="w.isLikes == true ? likes : noLikes"
  2175. alt=""
  2176. />
  2177. </div>
  2178. <div>{{ w.likesCount }}</div>
  2179. </div>
  2180. <div class="commentList" style="margin-right: 15px">
  2181. <div
  2182. class="commentImg"
  2183. @click="commentOther(w, toolIndex, wIndex)"
  2184. >
  2185. <img
  2186. src="../../assets/icon/comment/comment.png"
  2187. alt=""
  2188. />
  2189. </div>
  2190. <div>{{ w.commentCount }}</div>
  2191. </div>
  2192. </div>
  2193. </div>
  2194. </div>
  2195. </div>
  2196. </div>
  2197. <div
  2198. v-if="
  2199. tType &&
  2200. ((tType == 2 && sIsOpen == true) ||
  2201. tType == 1 ||
  2202. tType == 4) &&
  2203. tool.tool.indexOf(1) != -1
  2204. "
  2205. class="worksBox"
  2206. >
  2207. <div
  2208. class="zuoyeYulan"
  2209. v-if="
  2210. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2211. "
  2212. >
  2213. <div class="worksTop">
  2214. <div>作业预览</div>
  2215. </div>
  2216. </div>
  2217. <div
  2218. class="worksDetailBox"
  2219. v-if="
  2220. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2221. "
  2222. >
  2223. <div
  2224. class="works"
  2225. style="
  2226. width: 200px;
  2227. height: 140px;
  2228. margin: 10px 10px 10px 0;
  2229. border-radius: 15px;
  2230. box-shadow: 0 0 6px 1px #dfdada;
  2231. "
  2232. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2233. :key="wIndex"
  2234. >
  2235. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2236. <div class="workImg">
  2237. <img :src="w.works" @click="previewImg(w.works)" alt />
  2238. <div
  2239. class="answerScore"
  2240. v-if="w.score"
  2241. @click.stop="openScore(w)"
  2242. :class="{
  2243. rightW:
  2244. w.userid == userid || tType == 1 || tType == 4,
  2245. }"
  2246. >
  2247. {{ JSON.parse(w.score).wScore }}分
  2248. </div>
  2249. <div
  2250. class="answerScore"
  2251. @click.stop="openScore(w)"
  2252. v-else-if="courseDetail.userid == userid"
  2253. :class="{
  2254. rightW:
  2255. w.userid == userid || tType == 1 || tType == 4,
  2256. }"
  2257. >
  2258. 评分
  2259. </div>
  2260. <img
  2261. class="deleteImg"
  2262. src="../../assets/deleteworks.png"
  2263. v-if="w.userid == userid || tType == 1 || tType == 4"
  2264. @click.stop="deleteWorks(w.wid)"
  2265. alt
  2266. />
  2267. </div>
  2268. <div class="comment" style="min-width: 200px">
  2269. <div class="worksName">
  2270. <div>{{ w.sName }}</div>
  2271. </div>
  2272. <div class="commentList">
  2273. <div class="commentList">
  2274. <div
  2275. class="commentImg"
  2276. @click="
  2277. isLikes(w.wid, userid, 1, null, w.isLikes)
  2278. "
  2279. >
  2280. <img
  2281. :src="w.isLikes == true ? likes : noLikes"
  2282. alt=""
  2283. />
  2284. </div>
  2285. <div>{{ w.likesCount }}</div>
  2286. </div>
  2287. <div class="commentList" style="margin-right: 15px">
  2288. <div
  2289. class="commentImg"
  2290. @click="commentOther(w, toolIndex, wIndex)"
  2291. >
  2292. <img
  2293. src="../../assets/icon/comment/comment.png"
  2294. alt=""
  2295. />
  2296. </div>
  2297. <div>{{ w.commentCount }}</div>
  2298. </div>
  2299. </div>
  2300. </div>
  2301. </div>
  2302. </div>
  2303. </div>
  2304. <div
  2305. v-if="
  2306. tType &&
  2307. ((tType == 2 && sIsOpen == true) ||
  2308. tType == 1 ||
  2309. tType == 4) &&
  2310. tool.tool.indexOf(3) != -1
  2311. "
  2312. class="worksBox"
  2313. >
  2314. <div
  2315. class="zuoyeYulan"
  2316. v-if="
  2317. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2318. "
  2319. >
  2320. <div class="worksTop">
  2321. <div>作业预览</div>
  2322. </div>
  2323. </div>
  2324. <div
  2325. class="worksDetailBox"
  2326. v-if="
  2327. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2328. "
  2329. >
  2330. <div
  2331. class="works"
  2332. style="
  2333. width: 200px;
  2334. height: 140px;
  2335. margin: 10px 10px 10px 0;
  2336. border-radius: 15px;
  2337. box-shadow: 0 0 6px 1px #dfdada;
  2338. "
  2339. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2340. :key="wIndex"
  2341. >
  2342. <!-- @click="previewImg(w.works)" -->
  2343. <div class="workImg">
  2344. <img :src="w.works" @click="previewImg(w.works)" alt />
  2345. <div
  2346. class="answerScore"
  2347. v-if="w.score"
  2348. @click.stop="openScore(w)"
  2349. :class="{
  2350. rightW:
  2351. w.userid == userid || tType == 1 || tType == 4,
  2352. }"
  2353. >
  2354. {{ JSON.parse(w.score).wScore }}分
  2355. </div>
  2356. <div
  2357. class="answerScore"
  2358. @click.stop="openScore(w)"
  2359. v-else-if="courseDetail.userid == userid"
  2360. :class="{
  2361. rightW:
  2362. w.userid == userid || tType == 1 || tType == 4,
  2363. }"
  2364. >
  2365. 评分
  2366. </div>
  2367. <img
  2368. class="deleteImg"
  2369. src="../../assets/deleteworks.png"
  2370. v-if="w.userid == userid || tType == 1 || tType == 4"
  2371. @click.stop="deleteWorks(w.wid)"
  2372. alt
  2373. />
  2374. </div>
  2375. <div class="comment" style="min-width: 200px">
  2376. <div class="worksName">
  2377. <div>{{ w.sName }}</div>
  2378. </div>
  2379. <div class="commentList">
  2380. <div class="commentList">
  2381. <div
  2382. class="commentImg"
  2383. @click="
  2384. isLikes(w.wid, userid, 1, null, w.isLikes)
  2385. "
  2386. >
  2387. <img
  2388. :src="w.isLikes == true ? likes : noLikes"
  2389. alt=""
  2390. />
  2391. </div>
  2392. <div>{{ w.likesCount }}</div>
  2393. </div>
  2394. <div class="commentList" style="margin-right: 15px">
  2395. <div
  2396. class="commentImg"
  2397. @click="commentOther(w, toolIndex, wIndex)"
  2398. >
  2399. <img
  2400. src="../../assets/icon/comment/comment.png"
  2401. alt=""
  2402. />
  2403. </div>
  2404. <div>{{ w.commentCount }}</div>
  2405. </div>
  2406. </div>
  2407. </div>
  2408. </div>
  2409. </div>
  2410. </div>
  2411. <div
  2412. v-if="
  2413. tType &&
  2414. ((tType == 2 && sIsOpen == true) ||
  2415. tType == 1 ||
  2416. tType == 4) &&
  2417. tool.tool.indexOf(6) != -1
  2418. "
  2419. class="worksBox"
  2420. >
  2421. <div
  2422. class="zuoyeYulan"
  2423. v-if="
  2424. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2425. "
  2426. >
  2427. <div class="worksTop">
  2428. <div>作业预览</div>
  2429. </div>
  2430. </div>
  2431. <div
  2432. class="worksDetailBox"
  2433. v-if="
  2434. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2435. "
  2436. >
  2437. <div
  2438. class="works"
  2439. style="
  2440. width: 200px;
  2441. height: 140px;
  2442. margin: 10px 10px 10px 0;
  2443. border-radius: 15px;
  2444. box-shadow: 0 0 6px 1px #dfdada;
  2445. "
  2446. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2447. :key="wIndex"
  2448. >
  2449. <!-- @click="previewImg(w.works)" -->
  2450. <div class="workImg">
  2451. <img :src="w.works" @click="previewImg(w.works)" alt />
  2452. <div
  2453. class="answerScore"
  2454. v-if="w.score"
  2455. @click.stop="openScore(w)"
  2456. :class="{
  2457. rightW:
  2458. w.userid == userid || tType == 1 || tType == 4,
  2459. }"
  2460. >
  2461. {{ JSON.parse(w.score).wScore }}分
  2462. </div>
  2463. <div
  2464. class="answerScore"
  2465. @click.stop="openScore(w)"
  2466. v-else-if="courseDetail.userid == userid"
  2467. :class="{
  2468. rightW:
  2469. w.userid == userid || tType == 1 || tType == 4,
  2470. }"
  2471. >
  2472. 评分
  2473. </div>
  2474. <img
  2475. class="deleteImg"
  2476. src="../../assets/deleteworks.png"
  2477. v-if="w.userid == userid || tType == 1 || tType == 4"
  2478. @click.stop="deleteWorks(w.wid)"
  2479. alt
  2480. />
  2481. </div>
  2482. <div class="comment" style="min-width: 200px">
  2483. <div class="worksName">
  2484. <div>{{ w.sName }}</div>
  2485. </div>
  2486. <div class="commentList">
  2487. <div class="commentList">
  2488. <div
  2489. class="commentImg"
  2490. @click="
  2491. isLikes(w.wid, userid, 1, null, w.isLikes)
  2492. "
  2493. >
  2494. <img
  2495. :src="w.isLikes == true ? likes : noLikes"
  2496. alt=""
  2497. />
  2498. </div>
  2499. <div>{{ w.likesCount }}</div>
  2500. </div>
  2501. <div class="commentList" style="margin-right: 15px">
  2502. <div
  2503. class="commentImg"
  2504. @click="commentOther(w, toolIndex, wIndex)"
  2505. >
  2506. <img
  2507. src="../../assets/icon/comment/comment.png"
  2508. alt=""
  2509. />
  2510. </div>
  2511. <div>{{ w.commentCount }}</div>
  2512. </div>
  2513. </div>
  2514. </div>
  2515. </div>
  2516. </div>
  2517. </div>
  2518. <div
  2519. v-if="
  2520. tType &&
  2521. ((tType == 2 && sIsOpen == true) ||
  2522. tType == 1 ||
  2523. tType == 4) &&
  2524. tool.tool.indexOf(7) != -1
  2525. "
  2526. class="worksBox"
  2527. >
  2528. <div
  2529. class="zuoyeYulan"
  2530. v-if="
  2531. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2532. "
  2533. >
  2534. <div class="worksTop">
  2535. <div>作业预览</div>
  2536. </div>
  2537. </div>
  2538. <div
  2539. class="worksDetailBox"
  2540. v-if="
  2541. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2542. "
  2543. >
  2544. <div
  2545. class="works"
  2546. style="
  2547. width: 200px;
  2548. height: 140px;
  2549. margin: 10px 10px 10px 0;
  2550. border-radius: 15px;
  2551. box-shadow: 0 0 6px 1px #dfdada;
  2552. "
  2553. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2554. :key="wIndex"
  2555. >
  2556. <!-- @click="previewImg(w.works)" -->
  2557. <div class="workImg">
  2558. <img :src="w.works" @click="previewImg(w.works)" alt />
  2559. <div
  2560. class="answerScore"
  2561. v-if="w.score"
  2562. @click.stop="openScore(w)"
  2563. :class="{
  2564. rightW:
  2565. w.userid == userid || tType == 1 || tType == 4,
  2566. }"
  2567. >
  2568. {{ JSON.parse(w.score).wScore }}分
  2569. </div>
  2570. <div
  2571. class="answerScore"
  2572. @click.stop="openScore(w)"
  2573. v-else-if="courseDetail.userid == userid"
  2574. :class="{
  2575. rightW:
  2576. w.userid == userid || tType == 1 || tType == 4,
  2577. }"
  2578. >
  2579. 评分
  2580. </div>
  2581. <img
  2582. class="deleteImg"
  2583. src="../../assets/deleteworks.png"
  2584. v-if="w.userid == userid || tType == 1 || tType == 4"
  2585. @click.stop="deleteWorks(w.wid)"
  2586. alt
  2587. />
  2588. </div>
  2589. <div class="comment" style="min-width: 200px">
  2590. <div class="worksName">
  2591. <div>{{ w.sName }}</div>
  2592. </div>
  2593. <div class="commentList">
  2594. <div class="commentList">
  2595. <div
  2596. class="commentImg"
  2597. @click="
  2598. isLikes(w.wid, userid, 1, null, w.isLikes)
  2599. "
  2600. >
  2601. <img
  2602. :src="w.isLikes == true ? likes : noLikes"
  2603. alt=""
  2604. />
  2605. </div>
  2606. <div>{{ w.likesCount }}</div>
  2607. </div>
  2608. <div class="commentList" style="margin-right: 15px">
  2609. <div
  2610. class="commentImg"
  2611. @click="commentOther(w, toolIndex, wIndex)"
  2612. >
  2613. <img
  2614. src="../../assets/icon/comment/comment.png"
  2615. alt=""
  2616. />
  2617. </div>
  2618. <div>{{ w.commentCount }}</div>
  2619. </div>
  2620. </div>
  2621. </div>
  2622. </div>
  2623. </div>
  2624. </div>
  2625. <div
  2626. v-if="
  2627. tType &&
  2628. ((tType == 2 && sIsOpen == true) ||
  2629. tType == 1 ||
  2630. tType == 4) &&
  2631. tool.tool.indexOf(26) != -1
  2632. "
  2633. class="worksBox"
  2634. >
  2635. <div
  2636. class="zuoyeYulan"
  2637. v-if="
  2638. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2639. "
  2640. >
  2641. <div class="worksTop">
  2642. <div>作业预览</div>
  2643. </div>
  2644. </div>
  2645. <div
  2646. class="worksDetailBox"
  2647. v-if="
  2648. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2649. "
  2650. >
  2651. <div
  2652. class="works"
  2653. style="width: 240px; height: 140px; overflow: hidden"
  2654. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2655. :key="wIndex"
  2656. :class="w.type == 1 ? 'isTypeOne' : ''"
  2657. >
  2658. <div class="workImg" v-if="w.type == 0">
  2659. <img :src="w.works" @click="previewImg(w.works)" alt />
  2660. <img
  2661. class="deleteImg"
  2662. src="../../assets/deleteworks.png"
  2663. v-if="w.userid == userid || tType == 1 || tType == 4"
  2664. @click.stop="deleteWorks(w.wid)"
  2665. alt
  2666. />
  2667. </div>
  2668. <div class="workImg" v-if="w.type == 1">
  2669. <img :src="word" @click="openFile(w.works)" alt />
  2670. <img
  2671. class="deleteImg"
  2672. src="../../assets/deleteworks.png"
  2673. v-if="w.userid == userid || tType == 1 || tType == 4"
  2674. @click.stop="deleteWorks(w.wid)"
  2675. alt
  2676. />
  2677. </div>
  2678. <div class="worksName">
  2679. <div>{{ w.sName }}</div>
  2680. </div>
  2681. </div>
  2682. </div>
  2683. </div>
  2684. <div
  2685. v-if="
  2686. tType &&
  2687. ((tType == 2 && sIsOpen == true) ||
  2688. tType == 1 ||
  2689. tType == 4) &&
  2690. tool.tool.indexOf(40) != -1
  2691. "
  2692. class="worksBox"
  2693. >
  2694. <div
  2695. class="zuoyeYulan"
  2696. v-if="
  2697. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2698. "
  2699. >
  2700. <div class="worksTop">
  2701. <div>作业预览</div>
  2702. </div>
  2703. </div>
  2704. <div
  2705. class="worksDetailBox"
  2706. v-if="
  2707. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2708. "
  2709. >
  2710. <div
  2711. class="works"
  2712. style="
  2713. width: 200px;
  2714. height: 140px;
  2715. margin: 10px 10px 10px 0;
  2716. border-radius: 15px;
  2717. box-shadow: 0 0 6px 1px #dfdada;
  2718. "
  2719. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2720. :key="wIndex"
  2721. :class="w.type == 1 ? 'isTypeOne' : ''"
  2722. >
  2723. <div class="workImg">
  2724. <img
  2725. src="../../assets/icon/works/noImg.png"
  2726. @click="openPj(w.works, toolIndex)"
  2727. alt
  2728. />
  2729. <img
  2730. class="deleteImg"
  2731. src="../../assets/deleteworks.png"
  2732. v-if="w.userid == userid || tType == 1 || tType == 4"
  2733. @click.stop="deleteWorks(w.wid)"
  2734. alt
  2735. />
  2736. </div>
  2737. <div class="comment" style="min-width: 200px">
  2738. <div class="worksName">
  2739. <div>{{ w.sName }}</div>
  2740. </div>
  2741. <div class="commentList">
  2742. <div class="commentList">
  2743. <div
  2744. class="commentImg"
  2745. @click="
  2746. isLikes(w.wid, userid, 1, null, w.isLikes)
  2747. "
  2748. >
  2749. <img
  2750. :src="w.isLikes == true ? likes : noLikes"
  2751. alt=""
  2752. />
  2753. </div>
  2754. <div>{{ w.likesCount }}</div>
  2755. </div>
  2756. <div class="commentList" style="margin-right: 15px">
  2757. <div
  2758. class="commentImg"
  2759. @click="commentOther(w, toolIndex, wIndex)"
  2760. >
  2761. <img
  2762. src="../../assets/icon/comment/comment.png"
  2763. alt=""
  2764. />
  2765. </div>
  2766. <div>{{ w.commentCount }}</div>
  2767. </div>
  2768. </div>
  2769. </div>
  2770. </div>
  2771. </div>
  2772. </div>
  2773. <div
  2774. v-if="
  2775. tType &&
  2776. ((tType == 2 && sIsOpen == true) ||
  2777. tType == 1 ||
  2778. tType == 4) &&
  2779. tool.tool.indexOf(41) != -1
  2780. "
  2781. class="worksBox"
  2782. >
  2783. <div
  2784. class="zuoyeYulan"
  2785. v-if="
  2786. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2787. "
  2788. >
  2789. <div class="worksTop">
  2790. <div>作业预览</div>
  2791. </div>
  2792. </div>
  2793. <div
  2794. class="worksDetailBox"
  2795. v-if="
  2796. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2797. "
  2798. >
  2799. <div
  2800. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2801. :key="wIndex"
  2802. class="isWorksName2"
  2803. @click="openXz(w, toolIndex)"
  2804. >
  2805. {{ w.sName }}
  2806. <img
  2807. class="deleteImg deleteImg2"
  2808. src="../../assets/deleteworks.png"
  2809. v-if="w.userid == userid || tType == 1 || tType == 4"
  2810. @click.stop="deleteWorks(w.wid)"
  2811. alt
  2812. />
  2813. </div>
  2814. </div>
  2815. </div>
  2816. <div
  2817. v-if="
  2818. tType &&
  2819. ((tType == 2 && sIsOpen == true) ||
  2820. tType == 1 ||
  2821. tType == 4) &&
  2822. tool.tool.indexOf(47) != -1
  2823. "
  2824. class="worksBox"
  2825. >
  2826. <div
  2827. class="zuoyeYulan"
  2828. v-if="
  2829. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2830. "
  2831. >
  2832. <div class="worksTop">
  2833. <div>作业预览</div>
  2834. </div>
  2835. </div>
  2836. <div
  2837. class="worksDetailBox"
  2838. v-if="
  2839. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2840. "
  2841. >
  2842. <!-- @click="openXz(w, toolIndex)" -->
  2843. <div
  2844. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2845. :key="wIndex"
  2846. class="isWorksName2"
  2847. @click="openSen(w, toolIndex)"
  2848. >
  2849. {{ w.sName }}
  2850. <img
  2851. class="deleteImg deleteImg2"
  2852. src="../../assets/deleteworks.png"
  2853. v-if="w.userid == userid || tType == 1 || tType == 4"
  2854. @click.stop="deleteWorks(w.wid)"
  2855. alt
  2856. />
  2857. </div>
  2858. </div>
  2859. </div>
  2860. <div
  2861. v-if="
  2862. tType &&
  2863. ((tType == 2 && sIsOpen == true) ||
  2864. tType == 1 ||
  2865. tType == 4) &&
  2866. tool.tool.indexOf(48) != -1
  2867. "
  2868. class="worksBox"
  2869. >
  2870. <div
  2871. class="zuoyeYulan"
  2872. v-if="
  2873. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2874. "
  2875. >
  2876. <div class="worksTop">
  2877. <div>作业预览</div>
  2878. </div>
  2879. </div>
  2880. <div
  2881. class="worksDetailBox"
  2882. v-if="
  2883. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2884. "
  2885. >
  2886. <div
  2887. class="works"
  2888. style="
  2889. width: 200px;
  2890. height: 140px;
  2891. margin: 10px 10px 10px 0;
  2892. border-radius: 15px;
  2893. box-shadow: 0 0 6px 1px #dfdada;
  2894. "
  2895. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2896. :key="wIndex"
  2897. :class="w.type == 1 ? 'isTypeOne' : ''"
  2898. >
  2899. <div class="workImg">
  2900. <img :src="word" @click="openTable(w)" alt />
  2901. <!-- @click="openFile(w.works)" -->
  2902. <div
  2903. class="answerScore"
  2904. v-if="w.score"
  2905. @click.stop="openScore(w)"
  2906. :class="{
  2907. rightW:
  2908. w.userid == userid ||
  2909. tType == 1 ||
  2910. tType == 4 ||
  2911. w.ateacher == userid,
  2912. }"
  2913. >
  2914. {{ JSON.parse(w.score).wScore }}分
  2915. </div>
  2916. <div
  2917. class="answerScore"
  2918. @click.stop="openScore(w)"
  2919. v-else-if="courseDetail.userid == userid"
  2920. :class="{
  2921. rightW:
  2922. w.userid == userid ||
  2923. tType == 1 ||
  2924. tType == 4 ||
  2925. w.ateacher == userid,
  2926. }"
  2927. >
  2928. 评分
  2929. </div>
  2930. <img
  2931. class="deleteImg"
  2932. src="../../assets/deleteworks.png"
  2933. v-if="w.userid == userid || tType == 1 || tType == 4"
  2934. @click.stop="deleteWorks(w.wid)"
  2935. alt
  2936. />
  2937. </div>
  2938. <div class="comment" style="min-width: 200px">
  2939. <div class="worksName">
  2940. <div>{{ w.sName }}</div>
  2941. </div>
  2942. <div class="commentList">
  2943. <div class="commentList">
  2944. <div
  2945. class="commentImg"
  2946. @click="
  2947. isLikes(w.wid, userid, 1, null, w.isLikes)
  2948. "
  2949. >
  2950. <img
  2951. :src="w.isLikes == true ? likes : noLikes"
  2952. alt=""
  2953. />
  2954. </div>
  2955. <div>{{ w.likesCount }}</div>
  2956. </div>
  2957. <div class="commentList" style="margin-right: 15px">
  2958. <div
  2959. class="commentImg"
  2960. @click="commentOther(w, toolIndex, wIndex)"
  2961. >
  2962. <img
  2963. src="../../assets/icon/comment/comment.png"
  2964. alt=""
  2965. />
  2966. </div>
  2967. <div>{{ w.commentCount }}</div>
  2968. </div>
  2969. </div>
  2970. </div>
  2971. </div>
  2972. </div>
  2973. </div>
  2974. <div
  2975. v-if="
  2976. tType &&
  2977. ((tType == 2 && sIsOpen == true) ||
  2978. tType == 1 ||
  2979. tType == 4) &&
  2980. tool.tool.indexOf(52) != -1
  2981. "
  2982. class="worksBox"
  2983. >
  2984. <div
  2985. class="zuoyeYulan"
  2986. v-if="
  2987. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2988. "
  2989. >
  2990. <div class="worksTop">
  2991. <div>作业预览</div>
  2992. </div>
  2993. </div>
  2994. <div
  2995. class="worksDetailBox"
  2996. v-if="
  2997. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2998. "
  2999. >
  3000. <div
  3001. class="works"
  3002. style="
  3003. width: 200px;
  3004. height: 140px;
  3005. margin: 10px 10px 10px 0;
  3006. border-radius: 15px;
  3007. box-shadow: 0 0 6px 1px #dfdada;
  3008. "
  3009. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3010. :key="wIndex"
  3011. :class="w.type == 1 ? 'isTypeOne' : ''"
  3012. >
  3013. <div class="workImg">
  3014. <img :src="word" @click="openWord(w)" alt />
  3015. <!-- @click="openFile(w.works)" -->
  3016. <div
  3017. class="answerScore"
  3018. v-if="w.score"
  3019. @click.stop="openScore(w)"
  3020. :class="{
  3021. rightW:
  3022. w.userid == userid ||
  3023. tType == 1 ||
  3024. tType == 4 ||
  3025. w.ateacher == userid,
  3026. }"
  3027. >
  3028. {{ JSON.parse(w.score).wScore }}分
  3029. </div>
  3030. <div
  3031. class="answerScore"
  3032. @click.stop="openScore(w)"
  3033. v-else-if="courseDetail.userid == userid"
  3034. :class="{
  3035. rightW:
  3036. w.userid == userid ||
  3037. tType == 1 ||
  3038. tType == 4 ||
  3039. w.ateacher == userid,
  3040. }"
  3041. >
  3042. 评分
  3043. </div>
  3044. <img
  3045. class="deleteImg"
  3046. src="../../assets/deleteworks.png"
  3047. v-if="w.userid == userid || tType == 1 || tType == 4"
  3048. @click.stop="deleteWorks(w.wid)"
  3049. alt
  3050. />
  3051. </div>
  3052. <div class="comment" style="min-width: 200px">
  3053. <div class="worksName">
  3054. <div>{{ w.sName }}</div>
  3055. </div>
  3056. <div class="commentList">
  3057. <div class="commentList">
  3058. <div
  3059. class="commentImg"
  3060. @click="
  3061. isLikes(w.wid, userid, 1, null, w.isLikes)
  3062. "
  3063. >
  3064. <img
  3065. :src="w.isLikes == true ? likes : noLikes"
  3066. alt=""
  3067. />
  3068. </div>
  3069. <div>{{ w.likesCount }}</div>
  3070. </div>
  3071. <div class="commentList" style="margin-right: 15px">
  3072. <div
  3073. class="commentImg"
  3074. @click="commentOther(w, toolIndex, wIndex)"
  3075. >
  3076. <img
  3077. src="../../assets/icon/comment/comment.png"
  3078. alt=""
  3079. />
  3080. </div>
  3081. <div>{{ w.commentCount }}</div>
  3082. </div>
  3083. </div>
  3084. </div>
  3085. </div>
  3086. </div>
  3087. </div>
  3088. </div>
  3089. </div>
  3090. <div class="vedioBox">
  3091. <div
  3092. v-if="
  3093. tType &&
  3094. ((tType == 2 && sIsOpen == true) ||
  3095. tType == 1 ||
  3096. tType == 4) &&
  3097. tool.tool.indexOf(4) != -1 &&
  3098. worksStudent.length &&
  3099. worksStudent[toolIndex].length &&
  3100. (tool.askJson[0].answer || tool.askJson[0].answer === 0) &&
  3101. checkJson[toolIndex].length
  3102. "
  3103. class="xuan_right_box"
  3104. >
  3105. <div
  3106. class="tool_right_box"
  3107. v-for="(item, index) in tool.askJson"
  3108. :key="index"
  3109. >
  3110. <div>
  3111. <span style="word-break: break-all; white-space: normal">{{
  3112. index + 1 + "、" + item.askstitle
  3113. }}</span>
  3114. </div>
  3115. <div class="right_box_xuan">
  3116. <span>正确率</span>
  3117. <span>{{
  3118. (checkJson[toolIndex][index].right
  3119. ? checkJson[toolIndex][index].right
  3120. : 0) + "%"
  3121. }}</span>
  3122. </div>
  3123. </div>
  3124. </div>
  3125. <div
  3126. class="xuan_right_box"
  3127. style="background: unset; padding: 0 10px"
  3128. v-if="
  3129. tType &&
  3130. ((tType == 2 && sIsOpen == true) ||
  3131. tType == 1 ||
  3132. tType == 4) &&
  3133. tool.tool.indexOf(4) != -1 &&
  3134. worksStudent.length &&
  3135. worksStudent[toolIndex].length
  3136. "
  3137. >
  3138. <AskStatic
  3139. v-if="
  3140. worksStudent.length && worksStudent[toolIndex].length > 0
  3141. "
  3142. :askJSON="tool"
  3143. :checkJson="checkJson[toolIndex]"
  3144. ></AskStatic>
  3145. </div>
  3146. <div
  3147. v-if="
  3148. tType &&
  3149. ((tType == 2 && sIsOpen == true) ||
  3150. tType == 1 ||
  3151. tType == 4) &&
  3152. tool.tool.indexOf(45) != -1 &&
  3153. worksStudent.length &&
  3154. worksStudent[toolIndex].length &&
  3155. (tool.testJson.testJson[0].answer ||
  3156. tool.testJson.testJson[0].answer === 0) &&
  3157. checkJson[toolIndex].length
  3158. "
  3159. class="xuan_right_box"
  3160. >
  3161. <div
  3162. class="tool_right_box"
  3163. v-for="(item, index) in tool.testJson.testJson"
  3164. :key="index"
  3165. >
  3166. <div class="right_box_xuan" style="margin-right: 10px">
  3167. <span>正确率</span>
  3168. <span>{{
  3169. (checkJson[toolIndex][index].right
  3170. ? checkJson[toolIndex][index].right
  3171. : 0) + "%"
  3172. }}</span>
  3173. </div>
  3174. <div>
  3175. <span style="word-break: break-all; white-space: normal">{{
  3176. index + 1 + "、" + item.teststitle
  3177. }}</span>
  3178. </div>
  3179. </div>
  3180. </div>
  3181. <div
  3182. class="xuan_right_box"
  3183. style="background: unset; padding: 0 10px"
  3184. v-if="
  3185. tType &&
  3186. ((tType == 2 && sIsOpen == true) ||
  3187. tType == 1 ||
  3188. tType == 4) &&
  3189. tool.tool.indexOf(45) != -1 &&
  3190. worksStudent.length &&
  3191. worksStudent[toolIndex].length
  3192. "
  3193. >
  3194. <AskStatic2
  3195. v-if="
  3196. worksStudent.length && worksStudent[toolIndex].length > 0
  3197. "
  3198. :askJSON="tool"
  3199. :checkJson="checkJson[toolIndex]"
  3200. ></AskStatic2>
  3201. </div>
  3202. <div
  3203. v-if="
  3204. tType &&
  3205. ((tType == 2 && sIsOpen == true) ||
  3206. tType == 1 ||
  3207. tType == 4) &&
  3208. tool.tool.indexOf(41) != -1
  3209. "
  3210. >
  3211. <AnswerData2
  3212. v-if="
  3213. worksStudent.length && worksStudent[toolIndex].length > 0
  3214. "
  3215. :problemJson="tool.selectJson.answer"
  3216. :people="worksStudent[toolIndex]"
  3217. ></AnswerData2>
  3218. </div>
  3219. <div
  3220. v-if="
  3221. tType &&
  3222. ((tType == 2 && sIsOpen == true) ||
  3223. tType == 1 ||
  3224. tType == 4) &&
  3225. tool.tool.indexOf(47) != -1
  3226. "
  3227. >
  3228. <AnswerData
  3229. v-if="
  3230. checkJson[toolIndex].length &&
  3231. (tool.sentenceList || tool.sentenceList.length > 0)
  3232. "
  3233. :people="checkJson[toolIndex]"
  3234. ></AnswerData>
  3235. </div>
  3236. </div>
  3237. <div
  3238. class="vedioBox"
  3239. v-if="
  3240. noWorksS[toolIndex].length &&
  3241. arrayToArray(tool.tool, isWorkTool).length &&
  3242. false
  3243. "
  3244. >
  3245. <div
  3246. class="queTop"
  3247. style="
  3248. font-size: 20px;
  3249. padding: 15px 0 15px 30px;
  3250. font-weight: bold;
  3251. "
  3252. >
  3253. 学生工作区
  3254. </div>
  3255. <div class="tool_work_box">
  3256. <div
  3257. v-if="
  3258. tType &&
  3259. ((tType == 2 && sIsOpen == true) ||
  3260. tType == 1 ||
  3261. tType == 4) &&
  3262. tool.tool.indexOf(16) != -1
  3263. "
  3264. class="worksBox"
  3265. >
  3266. <div
  3267. class="zuoyeYulan"
  3268. v-if="
  3269. worksStudent2.length &&
  3270. worksStudent2[toolIndex].length > 0
  3271. "
  3272. >
  3273. <div class="worksTop">
  3274. <div>作业预览</div>
  3275. <div
  3276. class="corOpen"
  3277. @click="contract(toolIndex)"
  3278. v-if="
  3279. worksStudent2[toolIndex].length > 6 &&
  3280. isCloseList[toolIndex].isClose == 0
  3281. "
  3282. >
  3283. 收缩
  3284. </div>
  3285. <div
  3286. class="corOpen"
  3287. @click="contract(toolIndex)"
  3288. v-if="isCloseList[toolIndex].isClose == 1"
  3289. >
  3290. 展开
  3291. </div>
  3292. </div>
  3293. </div>
  3294. <div
  3295. class="worksDetailBox"
  3296. v-if="
  3297. worksStudent2.length &&
  3298. worksStudent2[toolIndex].length > 0
  3299. "
  3300. >
  3301. <div
  3302. class="works"
  3303. style="
  3304. width: 200px;
  3305. height: 140px;
  3306. margin: 10px 10px 10px 0;
  3307. border-radius: 15px;
  3308. box-shadow: 0 0 6px 1px #dfdada;
  3309. "
  3310. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3311. ? worksStudent2[toolIndex]
  3312. : worksStudent2[toolIndex].slice(0, 6)"
  3313. :key="wIndex"
  3314. :class="w.type == 1 ? 'isTypeOne' : ''"
  3315. >
  3316. <div class="workImg" v-if="w.type == 0">
  3317. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3318. <img :src="w.works" @click="previewImg(w.works)" alt />
  3319. <div
  3320. class="answerScore"
  3321. v-if="w.score"
  3322. @click.stop="openScore(w)"
  3323. :class="{
  3324. rightW:
  3325. w.userid == userid ||
  3326. tType == 1 ||
  3327. tType == 4 ||
  3328. w.ateacher == userid,
  3329. }"
  3330. >
  3331. {{ JSON.parse(w.score).wScore }}分
  3332. </div>
  3333. <div
  3334. class="answerScore"
  3335. @click.stop="openScore(w)"
  3336. v-else-if="courseDetail.userid == userid"
  3337. :class="{
  3338. rightW:
  3339. w.userid == userid ||
  3340. tType == 1 ||
  3341. tType == 4 ||
  3342. w.ateacher == userid,
  3343. }"
  3344. >
  3345. 评分
  3346. </div>
  3347. <img
  3348. class="deleteImg"
  3349. src="../../assets/deleteworks.png"
  3350. v-if="w.userid == userid || tType == 1 || tType == 4"
  3351. @click.stop="deleteWorks(w.wid)"
  3352. alt
  3353. />
  3354. </div>
  3355. <div class="workImg" v-if="w.type == 1">
  3356. <img :src="word" @click="openFile(w.works)" alt />
  3357. <!-- @click="openFile(w.works)" -->
  3358. <div
  3359. class="answerScore"
  3360. v-if="w.score"
  3361. @click.stop="openScore(w)"
  3362. :class="{
  3363. rightW:
  3364. w.userid == userid ||
  3365. tType == 1 ||
  3366. tType == 4 ||
  3367. w.ateacher == userid,
  3368. }"
  3369. >
  3370. {{ JSON.parse(w.score).wScore }}分
  3371. </div>
  3372. <div
  3373. class="answerScore"
  3374. @click.stop="openScore(w)"
  3375. v-else-if="courseDetail.userid == userid"
  3376. :class="{
  3377. rightW:
  3378. w.userid == userid ||
  3379. tType == 1 ||
  3380. tType == 4 ||
  3381. w.ateacher == userid,
  3382. }"
  3383. >
  3384. 评分
  3385. </div>
  3386. <img
  3387. class="deleteImg"
  3388. src="../../assets/deleteworks.png"
  3389. v-if="w.userid == userid || tType == 1 || tType == 4"
  3390. @click.stop="deleteWorks(w.wid)"
  3391. alt
  3392. />
  3393. </div>
  3394. <div class="workImg" v-if="w.type == 3">
  3395. <img
  3396. style="cursor: pointer"
  3397. :src="video"
  3398. @click="openVideo(w)"
  3399. alt
  3400. />
  3401. <!-- @click="openVideo(w.works)" -->
  3402. <div
  3403. class="answerScore"
  3404. v-if="w.score"
  3405. @click.stop="openScore(w)"
  3406. :class="{
  3407. rightW:
  3408. w.userid == userid ||
  3409. tType == 1 ||
  3410. tType == 4 ||
  3411. w.ateacher == userid,
  3412. }"
  3413. >
  3414. {{ JSON.parse(w.score).wScore }}分
  3415. </div>
  3416. <div
  3417. class="answerScore"
  3418. @click.stop="openScore(w)"
  3419. v-else-if="courseDetail.userid == userid"
  3420. :class="{
  3421. rightW:
  3422. w.userid == userid ||
  3423. tType == 1 ||
  3424. tType == 4 ||
  3425. w.ateacher == userid,
  3426. }"
  3427. >
  3428. 评分
  3429. </div>
  3430. <img
  3431. class="deleteImg"
  3432. src="../../assets/deleteworks.png"
  3433. v-if="w.userid == userid || tType == 1 || tType == 4"
  3434. @click.stop="deleteWorks(w.wid)"
  3435. alt
  3436. />
  3437. </div>
  3438. <div class="workImg" v-if="w.type == 12">
  3439. <img
  3440. style="cursor: pointer"
  3441. :src="word2"
  3442. @click="downloadFile(w.works)"
  3443. alt
  3444. />
  3445. <!-- @click="openVideo(w.works)" -->
  3446. <div
  3447. class="answerScore"
  3448. v-if="w.score"
  3449. @click.stop="openScore(w)"
  3450. :class="{
  3451. rightW:
  3452. w.userid == userid ||
  3453. tType == 1 ||
  3454. tType == 4 ||
  3455. w.ateacher == userid,
  3456. }"
  3457. >
  3458. {{ JSON.parse(w.score).wScore }}分
  3459. </div>
  3460. <div
  3461. class="answerScore"
  3462. @click.stop="openScore(w)"
  3463. v-else-if="courseDetail.userid == userid"
  3464. :class="{
  3465. rightW:
  3466. w.userid == userid ||
  3467. tType == 1 ||
  3468. tType == 4 ||
  3469. w.ateacher == userid,
  3470. }"
  3471. >
  3472. 评分
  3473. </div>
  3474. <img
  3475. class="deleteImg"
  3476. src="../../assets/deleteworks.png"
  3477. v-if="w.userid == userid || tType == 1 || tType == 4"
  3478. @click.stop="deleteWorks(w.wid)"
  3479. alt
  3480. />
  3481. </div>
  3482. <div class="comment" style="min-width: 200px">
  3483. <div class="worksName">
  3484. <div>{{ w.sName }}</div>
  3485. </div>
  3486. <div class="commentList">
  3487. <div class="commentList">
  3488. <div
  3489. class="commentImg"
  3490. @click="
  3491. isLikes(w.wid, userid, 1, null, w.isLikes)
  3492. "
  3493. >
  3494. <img
  3495. :src="w.isLikes == true ? likes : noLikes"
  3496. alt=""
  3497. />
  3498. </div>
  3499. <div>{{ w.likesCount }}</div>
  3500. </div>
  3501. <div class="commentList" style="margin-right: 15px">
  3502. <div
  3503. class="commentImg"
  3504. @click="commentOther(w, toolIndex, wIndex)"
  3505. >
  3506. <img
  3507. src="../../assets/icon/comment/comment.png"
  3508. alt=""
  3509. />
  3510. </div>
  3511. <div>{{ w.commentCount }}</div>
  3512. </div>
  3513. </div>
  3514. </div>
  3515. </div>
  3516. </div>
  3517. <div class="noWorksS">
  3518. <div
  3519. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3520. :key="sIndex"
  3521. class="noWorksName"
  3522. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3523. :class="{ isWork: s.type == '2' }"
  3524. >
  3525. {{ s.student }}
  3526. </div>
  3527. </div>
  3528. </div>
  3529. <div
  3530. v-if="
  3531. tType &&
  3532. ((tType == 2 && sIsOpen == true) ||
  3533. tType == 1 ||
  3534. tType == 4) &&
  3535. tool.tool.indexOf(32) != -1
  3536. "
  3537. class="worksBox"
  3538. >
  3539. <div
  3540. class="zuoyeYulan"
  3541. v-if="
  3542. worksStudent2.length &&
  3543. worksStudent2[toolIndex].length > 0
  3544. "
  3545. >
  3546. <div class="worksTop">
  3547. <div>作业预览</div>
  3548. <div
  3549. class="corOpen"
  3550. @click="contract(toolIndex)"
  3551. v-if="
  3552. worksStudent2[toolIndex].length > 6 &&
  3553. isCloseList[toolIndex].isClose == 0
  3554. "
  3555. >
  3556. 收缩
  3557. </div>
  3558. <div
  3559. class="corOpen"
  3560. @click="contract(toolIndex)"
  3561. v-if="isCloseList[toolIndex].isClose == 1"
  3562. >
  3563. 展开
  3564. </div>
  3565. </div>
  3566. </div>
  3567. <div
  3568. class="worksDetailBox"
  3569. v-if="
  3570. worksStudent2.length &&
  3571. worksStudent2[toolIndex].length > 0
  3572. "
  3573. >
  3574. <div
  3575. class="works"
  3576. style="
  3577. width: 200px;
  3578. height: 140px;
  3579. margin: 10px 10px 10px 0;
  3580. border-radius: 15px;
  3581. box-shadow: 0 0 6px 1px #dfdada;
  3582. "
  3583. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3584. ? worksStudent2[toolIndex]
  3585. : worksStudent2[toolIndex].slice(0, 6)"
  3586. :key="wIndex"
  3587. :class="w.type == 1 ? 'isTypeOne' : ''"
  3588. >
  3589. <div class="workImg">
  3590. <img :src="word2" @click="downloadFile(w.works)" alt />
  3591. <div
  3592. class="answerScore"
  3593. v-if="w.score"
  3594. @click.stop="openScore(w)"
  3595. :class="{
  3596. rightW:
  3597. w.userid == userid ||
  3598. tType == 1 ||
  3599. tType == 4 ||
  3600. w.ateacher == userid,
  3601. }"
  3602. >
  3603. {{ JSON.parse(w.score).wScore }}分
  3604. </div>
  3605. <div
  3606. class="answerScore"
  3607. @click.stop="openScore(w)"
  3608. v-else-if="courseDetail.userid == userid"
  3609. :class="{
  3610. rightW:
  3611. w.userid == userid ||
  3612. tType == 1 ||
  3613. tType == 4 ||
  3614. w.ateacher == userid,
  3615. }"
  3616. >
  3617. 评分
  3618. </div>
  3619. <img
  3620. class="deleteImg"
  3621. src="../../assets/deleteworks.png"
  3622. v-if="w.userid == userid || tType == 1 || tType == 4"
  3623. @click.stop="deleteWorks(w.wid)"
  3624. alt
  3625. />
  3626. </div>
  3627. <div class="comment" style="min-width: 200px">
  3628. <div class="worksName">
  3629. <div>{{ w.sName }}</div>
  3630. </div>
  3631. <div class="commentList">
  3632. <div class="commentList">
  3633. <div
  3634. class="commentImg"
  3635. @click="
  3636. isLikes(w.wid, userid, 1, null, w.isLikes)
  3637. "
  3638. >
  3639. <img
  3640. :src="w.isLikes == true ? likes : noLikes"
  3641. alt=""
  3642. />
  3643. </div>
  3644. <div>{{ w.likesCount }}</div>
  3645. </div>
  3646. <div class="commentList" style="margin-right: 15px">
  3647. <div
  3648. class="commentImg"
  3649. @click="commentOther(w, toolIndex, wIndex)"
  3650. >
  3651. <img
  3652. src="../../assets/icon/comment/comment.png"
  3653. alt=""
  3654. />
  3655. </div>
  3656. <div>{{ w.commentCount }}</div>
  3657. </div>
  3658. </div>
  3659. </div>
  3660. </div>
  3661. </div>
  3662. <div class="noWorksS">
  3663. <div
  3664. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3665. :key="sIndex"
  3666. class="noWorksName"
  3667. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3668. :class="{ isWork: s.type == '2' }"
  3669. >
  3670. {{ s.student }}
  3671. </div>
  3672. </div>
  3673. </div>
  3674. <div
  3675. v-if="
  3676. tType &&
  3677. ((tType == 2 && sIsOpen == true) ||
  3678. tType == 1 ||
  3679. tType == 4) &&
  3680. tool.tool.indexOf(57) != -1
  3681. "
  3682. class="worksBox"
  3683. >
  3684. <div
  3685. class="zuoyeYulan"
  3686. v-if="
  3687. worksStudent2.length &&
  3688. worksStudent2[toolIndex].length > 0
  3689. "
  3690. >
  3691. <div class="worksTop">
  3692. <div>作业预览</div>
  3693. <div
  3694. class="corOpen"
  3695. @click="contract(toolIndex)"
  3696. v-if="
  3697. worksStudent2[toolIndex].length > 6 &&
  3698. isCloseList[toolIndex].isClose == 0
  3699. "
  3700. >
  3701. 收缩
  3702. </div>
  3703. <div
  3704. class="corOpen"
  3705. @click="contract(toolIndex)"
  3706. v-if="isCloseList[toolIndex].isClose == 1"
  3707. >
  3708. 展开
  3709. </div>
  3710. </div>
  3711. </div>
  3712. <div
  3713. class="worksDetailBox"
  3714. v-if="
  3715. worksStudent2.length &&
  3716. worksStudent2[toolIndex].length > 0
  3717. "
  3718. >
  3719. <div
  3720. class="works"
  3721. style="
  3722. width: 200px;
  3723. height: 140px;
  3724. margin: 10px 10px 10px 0;
  3725. border-radius: 15px;
  3726. box-shadow: 0 0 6px 1px #dfdada;
  3727. "
  3728. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3729. ? worksStudent2[toolIndex]
  3730. : worksStudent2[toolIndex].slice(0, 6)"
  3731. :key="wIndex"
  3732. :class="w.type == 1 ? 'isTypeOne' : ''"
  3733. >
  3734. <div class="workImg">
  3735. <img
  3736. :src="word2"
  3737. @click="downloadFile(w.works)"
  3738. v-if="w.type == 12"
  3739. alt
  3740. />
  3741. <img
  3742. :src="word2"
  3743. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  3744. v-else-if="w.type == 15"
  3745. alt
  3746. />
  3747. <div
  3748. class="answerScore"
  3749. v-if="w.score"
  3750. @click.stop="openScore(w)"
  3751. :class="{
  3752. rightW:
  3753. w.userid == userid ||
  3754. tType == 1 ||
  3755. tType == 4 ||
  3756. w.ateacher == userid,
  3757. }"
  3758. >
  3759. {{ JSON.parse(w.score).wScore }}分
  3760. </div>
  3761. <div
  3762. class="answerScore"
  3763. @click.stop="openScore(w)"
  3764. v-else-if="courseDetail.userid == userid"
  3765. :class="{
  3766. rightW:
  3767. w.userid == userid ||
  3768. tType == 1 ||
  3769. tType == 4 ||
  3770. w.ateacher == userid,
  3771. }"
  3772. >
  3773. 评分
  3774. </div>
  3775. <img
  3776. class="deleteImg"
  3777. src="../../assets/deleteworks.png"
  3778. v-if="w.userid == userid || tType == 1 || tType == 4"
  3779. @click.stop="deleteWorks(w.wid)"
  3780. alt
  3781. />
  3782. </div>
  3783. <div class="comment" style="min-width: 200px">
  3784. <div class="worksName">
  3785. <div>{{ w.sName }}</div>
  3786. </div>
  3787. <div class="commentList">
  3788. <div class="commentList">
  3789. <div
  3790. class="commentImg"
  3791. @click="
  3792. isLikes(w.wid, userid, 1, null, w.isLikes)
  3793. "
  3794. >
  3795. <img
  3796. :src="w.isLikes == true ? likes : noLikes"
  3797. alt=""
  3798. />
  3799. </div>
  3800. <div>{{ w.likesCount }}</div>
  3801. </div>
  3802. <div class="commentList" style="margin-right: 15px">
  3803. <div
  3804. class="commentImg"
  3805. @click="commentOther(w, toolIndex, wIndex)"
  3806. >
  3807. <img
  3808. src="../../assets/icon/comment/comment.png"
  3809. alt=""
  3810. />
  3811. </div>
  3812. <div>{{ w.commentCount }}</div>
  3813. </div>
  3814. </div>
  3815. </div>
  3816. </div>
  3817. </div>
  3818. <div class="noWorksS">
  3819. <div
  3820. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3821. :key="sIndex"
  3822. class="noWorksName"
  3823. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3824. :class="{ isWork: s.type == '2' }"
  3825. >
  3826. {{ s.student }}
  3827. </div>
  3828. </div>
  3829. </div>
  3830. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3831. <div
  3832. class="zuoyeYulan"
  3833. v-if="
  3834. worksStudent2.length &&
  3835. worksStudent2[toolIndex].length > 0
  3836. "
  3837. >
  3838. <span>作业预览</span>
  3839. <div
  3840. class="corOpen"
  3841. @click="contract(toolIndex)"
  3842. v-if="
  3843. worksStudent2[toolIndex].length > 6 &&
  3844. isCloseList[toolIndex].isClose == 0
  3845. "
  3846. >
  3847. 收缩
  3848. </div>
  3849. <div
  3850. class="corOpen"
  3851. @click="contract(toolIndex)"
  3852. v-if="isCloseList[toolIndex].isClose == 1"
  3853. >
  3854. 展开
  3855. </div>
  3856. </div>
  3857. <div
  3858. class="worksDetailBox"
  3859. v-if="
  3860. worksStudent2.length &&
  3861. worksStudent2[toolIndex].length > 0
  3862. "
  3863. >
  3864. <div
  3865. class="works"
  3866. style="
  3867. width: 200px;
  3868. height: 140px;
  3869. margin: 10px 10px 10px 0;
  3870. border-radius: 15px;
  3871. box-shadow: 0 0 6px 1px #dfdada;
  3872. "
  3873. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3874. ? worksStudent2[toolIndex]
  3875. : worksStudent2[toolIndex].slice(0, 6)"
  3876. :key="wIndex"
  3877. :class="w.type == 1 ? 'isTypeOne' : ''"
  3878. >
  3879. <div class="workImg" v-if="w.type == 0">
  3880. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3881. <img :src="w.works" @click="previewImg(w.works)" alt />
  3882. <div
  3883. class="answerScore"
  3884. v-if="w.score"
  3885. @click.stop="openScore(w)"
  3886. :class="{
  3887. rightW:
  3888. w.userid == userid ||
  3889. tType == 1 ||
  3890. tType == 4 ||
  3891. w.ateacher == userid,
  3892. }"
  3893. >
  3894. {{ JSON.parse(w.score).wScore }}分
  3895. </div>
  3896. <div
  3897. class="answerScore"
  3898. @click.stop="openScore(w)"
  3899. v-else-if="courseDetail.userid == userid"
  3900. :class="{
  3901. rightW:
  3902. w.userid == userid ||
  3903. tType == 1 ||
  3904. tType == 4 ||
  3905. w.ateacher == userid,
  3906. }"
  3907. >
  3908. 评分
  3909. </div>
  3910. <img
  3911. class="deleteImg"
  3912. src="../../assets/deleteworks.png"
  3913. v-if="w.userid == userid || tType == 1 || tType == 4"
  3914. @click.stop="deleteWorks(w.wid)"
  3915. alt
  3916. />
  3917. </div>
  3918. <div
  3919. class="workImg"
  3920. style="cursor: pointer"
  3921. v-if="w.type == 1"
  3922. >
  3923. <img :src="word" @click="openFile(w.works)" alt />
  3924. <!-- @click="openFile(w.works)" -->
  3925. <div
  3926. class="answerScore"
  3927. v-if="w.score"
  3928. @click.stop="openScore(w)"
  3929. :class="{
  3930. rightW:
  3931. w.userid == userid ||
  3932. tType == 1 ||
  3933. tType == 4 ||
  3934. w.ateacher == userid,
  3935. }"
  3936. >
  3937. {{ JSON.parse(w.score).wScore }}分
  3938. </div>
  3939. <div
  3940. class="answerScore"
  3941. @click.stop="openScore(w)"
  3942. v-else-if="courseDetail.userid == userid"
  3943. :class="{
  3944. rightW:
  3945. w.userid == userid ||
  3946. tType == 1 ||
  3947. tType == 4 ||
  3948. w.ateacher == userid,
  3949. }"
  3950. >
  3951. 评分
  3952. </div>
  3953. <img
  3954. class="deleteImg"
  3955. src="../../assets/deleteworks.png"
  3956. v-if="w.userid == userid || tType == 1 || tType == 4"
  3957. @click.stop="deleteWorks(w.wid)"
  3958. alt
  3959. />
  3960. </div>
  3961. <div class="workImg" v-if="w.type == 3">
  3962. <img
  3963. style="cursor: pointer"
  3964. :src="video"
  3965. @click="openVideo(w)"
  3966. alt
  3967. />
  3968. <!-- @click="openVideo(w.works)" -->
  3969. <div
  3970. class="answerScore"
  3971. v-if="w.score"
  3972. @click.stop="openScore(w)"
  3973. :class="{
  3974. rightW:
  3975. w.userid == userid ||
  3976. tType == 1 ||
  3977. tType == 4 ||
  3978. w.ateacher == userid,
  3979. }"
  3980. >
  3981. {{ JSON.parse(w.score).wScore }}分
  3982. </div>
  3983. <div
  3984. class="answerScore"
  3985. @click.stop="openScore(w)"
  3986. v-else-if="courseDetail.userid == userid"
  3987. :class="{
  3988. rightW:
  3989. w.userid == userid ||
  3990. tType == 1 ||
  3991. tType == 4 ||
  3992. w.ateacher == userid,
  3993. }"
  3994. >
  3995. 评分
  3996. </div>
  3997. <img
  3998. class="deleteImg"
  3999. src="../../assets/deleteworks.png"
  4000. v-if="w.userid == userid || tType == 1 || tType == 4"
  4001. @click.stop="deleteWorks(w.wid)"
  4002. alt
  4003. />
  4004. </div>
  4005. <div class="comment" style="min-width: 200px">
  4006. <div class="worksName">
  4007. <div
  4008. style="cursor: pointer"
  4009. @click="
  4010. openSname(w.sName, w.wid, toolIndex, w.userid)
  4011. "
  4012. >
  4013. {{ w.sName }}
  4014. </div>
  4015. </div>
  4016. <div class="commentList">
  4017. <div class="commentList">
  4018. <div
  4019. class="commentImg"
  4020. @click="
  4021. isLikes(w.wid, userid, 1, null, w.isLikes)
  4022. "
  4023. >
  4024. <img
  4025. :src="w.isLikes == true ? likes : noLikes"
  4026. alt=""
  4027. />
  4028. </div>
  4029. <div>{{ w.likesCount }}</div>
  4030. </div>
  4031. <div class="commentList" style="margin-right: 15px">
  4032. <div
  4033. class="commentImg"
  4034. @click="commentOther(w, toolIndex, wIndex)"
  4035. >
  4036. <img
  4037. src="../../assets/icon/comment/comment.png"
  4038. alt=""
  4039. />
  4040. </div>
  4041. <div>{{ w.commentCount }}</div>
  4042. </div>
  4043. </div>
  4044. </div>
  4045. </div>
  4046. </div>
  4047. <div class="noWorksS">
  4048. <div
  4049. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4050. :key="sIndex"
  4051. class="noWorksName"
  4052. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4053. :class="{ isWork: s.type == '2' }"
  4054. >
  4055. {{ s.student }}
  4056. </div>
  4057. </div>
  4058. </div>
  4059. <div
  4060. v-if="
  4061. tType &&
  4062. ((tType == 2 && sIsOpen == true) ||
  4063. tType == 1 ||
  4064. tType == 4) &&
  4065. tool.tool.indexOf(4) != -1
  4066. "
  4067. class="worksBox"
  4068. >
  4069. <div
  4070. class="zuoyeYulan"
  4071. v-if="
  4072. worksStudent2.length &&
  4073. worksStudent2[toolIndex].length > 0
  4074. "
  4075. >
  4076. <div class="worksTop">
  4077. <div>作业预览</div>
  4078. <div
  4079. class="corOpen"
  4080. @click="contract(toolIndex)"
  4081. v-if="
  4082. worksStudent2[toolIndex].length > 6 &&
  4083. isCloseList[toolIndex].isClose == 0
  4084. "
  4085. >
  4086. 收缩
  4087. </div>
  4088. <div
  4089. class="corOpen"
  4090. @click="contract(toolIndex)"
  4091. v-if="isCloseList[toolIndex].isClose == 1"
  4092. >
  4093. 展开
  4094. </div>
  4095. </div>
  4096. </div>
  4097. <div>
  4098. <div
  4099. class="worksDetailBox"
  4100. v-if="
  4101. worksStudent2.length &&
  4102. worksStudent2[toolIndex].length > 0
  4103. "
  4104. >
  4105. <div
  4106. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4107. 0
  4108. ? worksStudent2[toolIndex]
  4109. : worksStudent2[toolIndex].slice(0, 6)"
  4110. :key="wIndex"
  4111. class="isWorksName2"
  4112. @click="
  4113. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4114. "
  4115. >
  4116. {{ w.sName }}
  4117. <img
  4118. class="deleteImg deleteImg2"
  4119. src="../../assets/deleteworks.png"
  4120. v-if="w.userid == userid || tType == 1 || tType == 4"
  4121. @click.stop="deleteWorks(w.wid)"
  4122. alt
  4123. />
  4124. </div>
  4125. </div>
  4126. </div>
  4127. <div class="noWorksS">
  4128. <div
  4129. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4130. :key="sIndex"
  4131. class="noWorksName"
  4132. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4133. :class="{ isWork: s.type == '2' }"
  4134. >
  4135. {{ s.student }}
  4136. </div>
  4137. </div>
  4138. </div>
  4139. <div
  4140. v-if="
  4141. tType &&
  4142. ((tType == 2 && sIsOpen == true) ||
  4143. tType == 1 ||
  4144. tType == 4) &&
  4145. tool.tool.indexOf(45) != -1
  4146. "
  4147. class="worksBox"
  4148. >
  4149. <div
  4150. class="zuoyeYulan"
  4151. v-if="
  4152. worksStudent2.length &&
  4153. worksStudent2[toolIndex].length > 0
  4154. "
  4155. >
  4156. <div class="worksTop">
  4157. <div>作业预览</div>
  4158. <div
  4159. class="corOpen"
  4160. @click="contract(toolIndex)"
  4161. v-if="
  4162. worksStudent2[toolIndex].length > 6 &&
  4163. isCloseList[toolIndex].isClose == 0
  4164. "
  4165. >
  4166. 收缩
  4167. </div>
  4168. <div
  4169. class="corOpen"
  4170. @click="contract(toolIndex)"
  4171. v-if="isCloseList[toolIndex].isClose == 1"
  4172. >
  4173. 展开
  4174. </div>
  4175. </div>
  4176. </div>
  4177. <div>
  4178. <div
  4179. class="worksDetailBox"
  4180. v-if="
  4181. worksStudent2.length &&
  4182. worksStudent2[toolIndex].length > 0
  4183. "
  4184. >
  4185. <div
  4186. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4187. 0
  4188. ? worksStudent2[toolIndex]
  4189. : worksStudent2[toolIndex].slice(0, 6)"
  4190. :key="wIndex"
  4191. class="isWorksName2"
  4192. @click="
  4193. openTools(45, toolIndex, taskCount, w.works, w.sName)
  4194. "
  4195. >
  4196. {{ w.sName }}
  4197. <img
  4198. class="deleteImg deleteImg2"
  4199. src="../../assets/deleteworks.png"
  4200. v-if="w.userid == userid || tType == 1 || tType == 4"
  4201. @click.stop="deleteWorks(w.wid)"
  4202. alt
  4203. />
  4204. </div>
  4205. </div>
  4206. </div>
  4207. <div class="noWorksS">
  4208. <div
  4209. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4210. :key="sIndex"
  4211. class="noWorksName"
  4212. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4213. :class="{ isWork: s.type == '2' }"
  4214. >
  4215. {{ s.student }}
  4216. </div>
  4217. </div>
  4218. </div>
  4219. <div
  4220. v-if="
  4221. tType &&
  4222. ((tType == 2 && sIsOpen == true) ||
  4223. tType == 1 ||
  4224. tType == 4) &&
  4225. tool.tool.indexOf(15) != -1
  4226. "
  4227. class="worksBox"
  4228. >
  4229. <div
  4230. class="zuoyeYulan"
  4231. v-if="
  4232. worksStudent2.length &&
  4233. worksStudent2[toolIndex].length > 0
  4234. "
  4235. >
  4236. <div class="worksTop">
  4237. <div>作业预览</div>
  4238. <div
  4239. class="corOpen"
  4240. @click="contract(toolIndex)"
  4241. v-if="
  4242. worksStudent2[toolIndex].length > 6 &&
  4243. isCloseList[toolIndex].isClose == 0
  4244. "
  4245. >
  4246. 收缩
  4247. </div>
  4248. <div
  4249. class="corOpen"
  4250. @click="contract(toolIndex)"
  4251. v-if="isCloseList[toolIndex].isClose == 1"
  4252. >
  4253. 展开
  4254. </div>
  4255. </div>
  4256. </div>
  4257. <div
  4258. class="worksDetailBox"
  4259. v-if="
  4260. worksStudent2.length &&
  4261. worksStudent2[toolIndex].length > 0
  4262. "
  4263. >
  4264. <div
  4265. class="works"
  4266. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4267. ? worksStudent2[toolIndex]
  4268. : worksStudent2[toolIndex].slice(0, 6)"
  4269. :key="wIndex"
  4270. >
  4271. <div
  4272. class="workImg"
  4273. style="
  4274. border-radius: 15px;
  4275. box-shadow: #eee 0px 0px 5px 5px;
  4276. "
  4277. >
  4278. <!-- <img
  4279. src="../../assets/icon/works/noImg.png"
  4280. @click="openTools(15, toolIndex, taskCount, w.works)"
  4281. alt=""
  4282. />-->
  4283. <div
  4284. class="answerBg"
  4285. style="border-radius: 15px 15px 0 0"
  4286. @click="commentOther(w, toolIndex, wIndex)"
  4287. >
  4288. <!-- <div>{{ w.sName }}</div> -->
  4289. <div class="answerContent">
  4290. {{ JSON.parse(w.works)[0].answer }}
  4291. </div>
  4292. <div
  4293. class="answerScore"
  4294. v-if="w.score"
  4295. @click.stop="openScore(w)"
  4296. :class="{
  4297. rightW:
  4298. w.userid == userid || tType == 1 || tType == 4,
  4299. }"
  4300. >
  4301. {{ JSON.parse(w.score).wScore }}分
  4302. </div>
  4303. <div
  4304. class="answerScore"
  4305. @click.stop="openScore(w)"
  4306. v-else-if="courseDetail.userid == userid"
  4307. :class="{
  4308. rightW:
  4309. w.userid == userid || tType == 1 || tType == 4,
  4310. }"
  4311. >
  4312. 评分
  4313. </div>
  4314. <img
  4315. class="deleteImg"
  4316. src="../../assets/deleteworks.png"
  4317. v-if="
  4318. w.userid == userid || tType == 1 || tType == 4
  4319. "
  4320. @click.stop="deleteWorks(w.wid)"
  4321. alt
  4322. />
  4323. </div>
  4324. <div class="comment">
  4325. <div class="worksName">
  4326. <div>{{ w.sName }}</div>
  4327. </div>
  4328. <div class="commentList">
  4329. <div
  4330. class="commentImg"
  4331. @click="
  4332. isLikes(w.wid, userid, 1, null, w.isLikes)
  4333. "
  4334. >
  4335. <img
  4336. :src="w.isLikes == true ? likes : noLikes"
  4337. alt=""
  4338. />
  4339. </div>
  4340. <div>{{ w.likesCount }}</div>
  4341. </div>
  4342. <div class="commentList" style="margin-right: 15px">
  4343. <div
  4344. class="commentImg"
  4345. @click="commentOther(w, toolIndex, wIndex)"
  4346. >
  4347. <img
  4348. src="../../assets/icon/comment/comment.png"
  4349. alt=""
  4350. />
  4351. </div>
  4352. <div>{{ w.commentCount }}</div>
  4353. </div>
  4354. </div>
  4355. </div>
  4356. </div>
  4357. </div>
  4358. <div class="noWorksS">
  4359. <div
  4360. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4361. :key="sIndex"
  4362. class="noWorksName"
  4363. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4364. :class="{ isWork: s.type == '2' }"
  4365. >
  4366. {{ s.student }}
  4367. </div>
  4368. </div>
  4369. </div>
  4370. <div
  4371. v-if="
  4372. tType &&
  4373. ((tType == 2 && sIsOpen == true) ||
  4374. tType == 1 ||
  4375. tType == 4) &&
  4376. tool.tool.indexOf(1) != -1
  4377. "
  4378. class="worksBox"
  4379. >
  4380. <div
  4381. class="zuoyeYulan"
  4382. v-if="
  4383. worksStudent2.length &&
  4384. worksStudent2[toolIndex].length > 0
  4385. "
  4386. >
  4387. <div class="worksTop">
  4388. <div>作业预览</div>
  4389. <div
  4390. class="corOpen"
  4391. @click="contract(toolIndex)"
  4392. v-if="
  4393. worksStudent2[toolIndex].length > 6 &&
  4394. isCloseList[toolIndex].isClose == 0
  4395. "
  4396. >
  4397. 收缩
  4398. </div>
  4399. <div
  4400. class="corOpen"
  4401. @click="contract(toolIndex)"
  4402. v-if="isCloseList[toolIndex].isClose == 1"
  4403. >
  4404. 展开
  4405. </div>
  4406. </div>
  4407. </div>
  4408. <div
  4409. class="worksDetailBox"
  4410. v-if="
  4411. worksStudent2.length &&
  4412. worksStudent2[toolIndex].length > 0
  4413. "
  4414. >
  4415. <div
  4416. class="works"
  4417. style="
  4418. width: 200px;
  4419. height: 140px;
  4420. margin: 10px 10px 10px 0;
  4421. border-radius: 15px;
  4422. box-shadow: 0 0 6px 1px #dfdada;
  4423. "
  4424. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4425. ? worksStudent2[toolIndex]
  4426. : worksStudent2[toolIndex].slice(0, 6)"
  4427. :key="wIndex"
  4428. >
  4429. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4430. <div class="workImg">
  4431. <img :src="w.works" @click="previewImg(w.works)" alt />
  4432. <div
  4433. class="answerScore"
  4434. v-if="w.score"
  4435. @click.stop="openScore(w)"
  4436. :class="{
  4437. rightW:
  4438. w.userid == userid || tType == 1 || tType == 4,
  4439. }"
  4440. >
  4441. {{ JSON.parse(w.score).wScore }}分
  4442. </div>
  4443. <div
  4444. class="answerScore"
  4445. @click.stop="openScore(w)"
  4446. v-else-if="courseDetail.userid == userid"
  4447. :class="{
  4448. rightW:
  4449. w.userid == userid || tType == 1 || tType == 4,
  4450. }"
  4451. >
  4452. 评分
  4453. </div>
  4454. <img
  4455. class="deleteImg"
  4456. src="../../assets/deleteworks.png"
  4457. v-if="w.userid == userid || tType == 1 || tType == 4"
  4458. @click.stop="deleteWorks(w.wid)"
  4459. alt
  4460. />
  4461. </div>
  4462. <div class="comment" style="min-width: 200px">
  4463. <div class="worksName">
  4464. <div>{{ w.sName }}</div>
  4465. </div>
  4466. <div class="commentList">
  4467. <div class="commentList">
  4468. <div
  4469. class="commentImg"
  4470. @click="
  4471. isLikes(w.wid, userid, 1, null, w.isLikes)
  4472. "
  4473. >
  4474. <img
  4475. :src="w.isLikes == true ? likes : noLikes"
  4476. alt=""
  4477. />
  4478. </div>
  4479. <div>{{ w.likesCount }}</div>
  4480. </div>
  4481. <div class="commentList" style="margin-right: 15px">
  4482. <div
  4483. class="commentImg"
  4484. @click="commentOther(w, toolIndex, wIndex)"
  4485. >
  4486. <img
  4487. src="../../assets/icon/comment/comment.png"
  4488. alt=""
  4489. />
  4490. </div>
  4491. <div>{{ w.commentCount }}</div>
  4492. </div>
  4493. </div>
  4494. </div>
  4495. </div>
  4496. </div>
  4497. <div class="noWorksS">
  4498. <div
  4499. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4500. :key="sIndex"
  4501. class="noWorksName"
  4502. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4503. :class="{ isWork: s.type == '2' }"
  4504. >
  4505. {{ s.student }}
  4506. </div>
  4507. </div>
  4508. </div>
  4509. <div
  4510. v-if="
  4511. tType &&
  4512. ((tType == 2 && sIsOpen == true) ||
  4513. tType == 1 ||
  4514. tType == 4) &&
  4515. tool.tool.indexOf(3) != -1
  4516. "
  4517. class="worksBox"
  4518. >
  4519. <div
  4520. class="zuoyeYulan"
  4521. v-if="
  4522. worksStudent2.length &&
  4523. worksStudent2[toolIndex].length > 0
  4524. "
  4525. >
  4526. <div class="worksTop">
  4527. <div>作业预览</div>
  4528. <div
  4529. class="corOpen"
  4530. @click="contract(toolIndex)"
  4531. v-if="
  4532. worksStudent2[toolIndex].length > 6 &&
  4533. isCloseList[toolIndex].isClose == 0
  4534. "
  4535. >
  4536. 收缩
  4537. </div>
  4538. <div
  4539. class="corOpen"
  4540. @click="contract(toolIndex)"
  4541. v-if="isCloseList[toolIndex].isClose == 1"
  4542. >
  4543. 展开
  4544. </div>
  4545. </div>
  4546. </div>
  4547. <div
  4548. class="worksDetailBox"
  4549. v-if="
  4550. worksStudent2.length &&
  4551. worksStudent2[toolIndex].length > 0
  4552. "
  4553. >
  4554. <div
  4555. class="works"
  4556. style="
  4557. width: 200px;
  4558. height: 140px;
  4559. margin: 10px 10px 10px 0;
  4560. border-radius: 15px;
  4561. box-shadow: 0 0 6px 1px #dfdada;
  4562. "
  4563. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4564. ? worksStudent2[toolIndex]
  4565. : worksStudent2[toolIndex].slice(0, 6)"
  4566. :key="wIndex"
  4567. >
  4568. <!-- @click="previewImg(w.works)" -->
  4569. <div class="workImg">
  4570. <img :src="w.works" @click="previewImg(w.works)" alt />
  4571. <div
  4572. class="answerScore"
  4573. v-if="w.score"
  4574. @click.stop="openScore(w)"
  4575. :class="{
  4576. rightW:
  4577. w.userid == userid || tType == 1 || tType == 4,
  4578. }"
  4579. >
  4580. {{ JSON.parse(w.score).wScore }}分
  4581. </div>
  4582. <div
  4583. class="answerScore"
  4584. @click.stop="openScore(w)"
  4585. v-else-if="courseDetail.userid == userid"
  4586. :class="{
  4587. rightW:
  4588. w.userid == userid || tType == 1 || tType == 4,
  4589. }"
  4590. >
  4591. 评分
  4592. </div>
  4593. <img
  4594. class="deleteImg"
  4595. src="../../assets/deleteworks.png"
  4596. v-if="w.userid == userid || tType == 1 || tType == 4"
  4597. @click.stop="deleteWorks(w.wid)"
  4598. alt
  4599. />
  4600. </div>
  4601. <div class="comment" style="min-width: 200px">
  4602. <div class="worksName">
  4603. <div>{{ w.sName }}</div>
  4604. </div>
  4605. <div class="commentList">
  4606. <div class="commentList">
  4607. <div
  4608. class="commentImg"
  4609. @click="
  4610. isLikes(w.wid, userid, 1, null, w.isLikes)
  4611. "
  4612. >
  4613. <img
  4614. :src="w.isLikes == true ? likes : noLikes"
  4615. alt=""
  4616. />
  4617. </div>
  4618. <div>{{ w.likesCount }}</div>
  4619. </div>
  4620. <div class="commentList" style="margin-right: 15px">
  4621. <div
  4622. class="commentImg"
  4623. @click="commentOther(w, toolIndex, wIndex)"
  4624. >
  4625. <img
  4626. src="../../assets/icon/comment/comment.png"
  4627. alt=""
  4628. />
  4629. </div>
  4630. <div>{{ w.commentCount }}</div>
  4631. </div>
  4632. </div>
  4633. </div>
  4634. </div>
  4635. </div>
  4636. <div class="noWorksS">
  4637. <div
  4638. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4639. :key="sIndex"
  4640. class="noWorksName"
  4641. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4642. :class="{ isWork: s.type == '2' }"
  4643. >
  4644. {{ s.student }}
  4645. </div>
  4646. </div>
  4647. </div>
  4648. <div
  4649. v-if="
  4650. tType &&
  4651. ((tType == 2 && sIsOpen == true) ||
  4652. tType == 1 ||
  4653. tType == 4) &&
  4654. tool.tool.indexOf(6) != -1
  4655. "
  4656. class="worksBox"
  4657. >
  4658. <div
  4659. class="zuoyeYulan"
  4660. v-if="
  4661. worksStudent2.length &&
  4662. worksStudent2[toolIndex].length > 0
  4663. "
  4664. >
  4665. <div class="worksTop">
  4666. <div>作业预览</div>
  4667. <div
  4668. class="corOpen"
  4669. @click="contract(toolIndex)"
  4670. v-if="
  4671. worksStudent[toolIndex].length > 6 &&
  4672. isCloseList[toolIndex].isClose == 0
  4673. "
  4674. >
  4675. 收缩
  4676. </div>
  4677. <div
  4678. class="corOpen"
  4679. @click="contract(toolIndex)"
  4680. v-if="isCloseList[toolIndex].isClose == 1"
  4681. >
  4682. 展开
  4683. </div>
  4684. </div>
  4685. </div>
  4686. <div
  4687. class="worksDetailBox"
  4688. v-if="
  4689. worksStudent2.length &&
  4690. worksStudent2[toolIndex].length > 0
  4691. "
  4692. >
  4693. <div
  4694. class="works"
  4695. style="
  4696. width: 200px;
  4697. height: 140px;
  4698. margin: 10px 10px 10px 0;
  4699. border-radius: 15px;
  4700. box-shadow: 0 0 6px 1px #dfdada;
  4701. "
  4702. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4703. ? worksStudent2[toolIndex]
  4704. : worksStudent2[toolIndex].slice(0, 6)"
  4705. :key="wIndex"
  4706. >
  4707. <!-- @click="previewImg(w.works)" -->
  4708. <div class="workImg">
  4709. <img :src="w.works" @click="previewImg(w.works)" alt />
  4710. <div
  4711. class="answerScore"
  4712. v-if="w.score"
  4713. @click.stop="openScore(w)"
  4714. :class="{
  4715. rightW:
  4716. w.userid == userid || tType == 1 || tType == 4,
  4717. }"
  4718. >
  4719. {{ JSON.parse(w.score).wScore }}分
  4720. </div>
  4721. <div
  4722. class="answerScore"
  4723. @click.stop="openScore(w)"
  4724. v-else-if="courseDetail.userid == userid"
  4725. :class="{
  4726. rightW:
  4727. w.userid == userid || tType == 1 || tType == 4,
  4728. }"
  4729. >
  4730. 评分
  4731. </div>
  4732. <img
  4733. class="deleteImg"
  4734. src="../../assets/deleteworks.png"
  4735. v-if="w.userid == userid || tType == 1 || tType == 4"
  4736. @click.stop="deleteWorks(w.wid)"
  4737. alt
  4738. />
  4739. </div>
  4740. <div class="comment" style="min-width: 200px">
  4741. <div class="worksName">
  4742. <div>{{ w.sName }}</div>
  4743. </div>
  4744. <div class="commentList">
  4745. <div class="commentList">
  4746. <div
  4747. class="commentImg"
  4748. @click="
  4749. isLikes(w.wid, userid, 1, null, w.isLikes)
  4750. "
  4751. >
  4752. <img
  4753. :src="w.isLikes == true ? likes : noLikes"
  4754. alt=""
  4755. />
  4756. </div>
  4757. <div>{{ w.likesCount }}</div>
  4758. </div>
  4759. <div class="commentList" style="margin-right: 15px">
  4760. <div
  4761. class="commentImg"
  4762. @click="commentOther(w, toolIndex, wIndex)"
  4763. >
  4764. <img
  4765. src="../../assets/icon/comment/comment.png"
  4766. alt=""
  4767. />
  4768. </div>
  4769. <div>{{ w.commentCount }}</div>
  4770. </div>
  4771. </div>
  4772. </div>
  4773. </div>
  4774. </div>
  4775. <div class="noWorksS">
  4776. <div
  4777. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4778. :key="sIndex"
  4779. class="noWorksName"
  4780. :class="{ isWork: s.type == '2' }"
  4781. >
  4782. {{ s.student }}
  4783. </div>
  4784. </div>
  4785. </div>
  4786. <div
  4787. v-if="
  4788. tType &&
  4789. ((tType == 2 && sIsOpen == true) ||
  4790. tType == 1 ||
  4791. tType == 4) &&
  4792. tool.tool.indexOf(7) != -1
  4793. "
  4794. class="worksBox"
  4795. >
  4796. <div
  4797. class="zuoyeYulan"
  4798. v-if="
  4799. worksStudent2.length &&
  4800. worksStudent2[toolIndex].length > 0
  4801. "
  4802. >
  4803. <div class="worksTop">
  4804. <div>作业预览</div>
  4805. <div
  4806. class="corOpen"
  4807. @click="contract(toolIndex)"
  4808. v-if="
  4809. worksStudent2[toolIndex].length > 6 &&
  4810. isCloseList[toolIndex].isClose == 0
  4811. "
  4812. >
  4813. 收缩
  4814. </div>
  4815. <div
  4816. class="corOpen"
  4817. @click="contract(toolIndex)"
  4818. v-if="isCloseList[toolIndex].isClose == 1"
  4819. >
  4820. 展开
  4821. </div>
  4822. </div>
  4823. </div>
  4824. <div
  4825. class="worksDetailBox"
  4826. v-if="
  4827. worksStudent2.length &&
  4828. worksStudent2[toolIndex].length > 0
  4829. "
  4830. >
  4831. <div
  4832. class="works"
  4833. style="
  4834. width: 200px;
  4835. height: 140px;
  4836. margin: 10px 10px 10px 0;
  4837. border-radius: 15px;
  4838. box-shadow: 0 0 6px 1px #dfdada;
  4839. "
  4840. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4841. ? worksStudent2[toolIndex]
  4842. : worksStudent2[toolIndex].slice(0, 6)"
  4843. :key="wIndex"
  4844. >
  4845. <!-- @click="previewImg(w.works)" -->
  4846. <div class="workImg">
  4847. <img :src="w.works" @click="previewImg(w.works)" alt />
  4848. <div
  4849. class="answerScore"
  4850. v-if="w.score"
  4851. @click.stop="openScore(w)"
  4852. :class="{
  4853. rightW:
  4854. w.userid == userid || tType == 1 || tType == 4,
  4855. }"
  4856. >
  4857. {{ JSON.parse(w.score).wScore }}分
  4858. </div>
  4859. <div
  4860. class="answerScore"
  4861. @click.stop="openScore(w)"
  4862. v-else-if="courseDetail.userid == userid"
  4863. :class="{
  4864. rightW:
  4865. w.userid == userid || tType == 1 || tType == 4,
  4866. }"
  4867. >
  4868. 评分
  4869. </div>
  4870. <img
  4871. class="deleteImg"
  4872. src="../../assets/deleteworks.png"
  4873. v-if="w.userid == userid || tType == 1 || tType == 4"
  4874. @click.stop="deleteWorks(w.wid)"
  4875. alt
  4876. />
  4877. </div>
  4878. <div class="comment" style="min-width: 200px">
  4879. <div class="worksName">
  4880. <div>{{ w.sName }}</div>
  4881. </div>
  4882. <div class="commentList">
  4883. <div class="commentList">
  4884. <div
  4885. class="commentImg"
  4886. @click="
  4887. isLikes(w.wid, userid, 1, null, w.isLikes)
  4888. "
  4889. >
  4890. <img
  4891. :src="w.isLikes == true ? likes : noLikes"
  4892. alt=""
  4893. />
  4894. </div>
  4895. <div>{{ w.likesCount }}</div>
  4896. </div>
  4897. <div class="commentList" style="margin-right: 15px">
  4898. <div
  4899. class="commentImg"
  4900. @click="commentOther(w, toolIndex, wIndex)"
  4901. >
  4902. <img
  4903. src="../../assets/icon/comment/comment.png"
  4904. alt=""
  4905. />
  4906. </div>
  4907. <div>{{ w.commentCount }}</div>
  4908. </div>
  4909. </div>
  4910. </div>
  4911. </div>
  4912. </div>
  4913. <div class="noWorksS">
  4914. <div
  4915. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4916. :key="sIndex"
  4917. class="noWorksName"
  4918. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  4919. :class="{ isWork: s.type == '2' }"
  4920. >
  4921. {{ s.student }}
  4922. </div>
  4923. </div>
  4924. </div>
  4925. <div
  4926. v-if="
  4927. tType &&
  4928. ((tType == 2 && sIsOpen == true) ||
  4929. tType == 1 ||
  4930. tType == 4) &&
  4931. tool.tool.indexOf(26) != -1
  4932. "
  4933. class="worksBox"
  4934. >
  4935. <div
  4936. class="zuoyeYulan"
  4937. v-if="
  4938. worksStudent2.length &&
  4939. worksStudent2[toolIndex].length > 0
  4940. "
  4941. >
  4942. <div class="worksTop">
  4943. <div>作业预览</div>
  4944. <div
  4945. class="corOpen"
  4946. @click="contract(toolIndex)"
  4947. v-if="
  4948. worksStudent2[toolIndex].length > 6 &&
  4949. isCloseList[toolIndex].isClose == 0
  4950. "
  4951. >
  4952. 收缩
  4953. </div>
  4954. <div
  4955. class="corOpen"
  4956. @click="contract(toolIndex)"
  4957. v-if="isCloseList[toolIndex].isClose == 1"
  4958. >
  4959. 展开
  4960. </div>
  4961. </div>
  4962. </div>
  4963. <div
  4964. class="worksDetailBox"
  4965. v-if="
  4966. worksStudent2.length &&
  4967. worksStudent2[toolIndex].length > 0
  4968. "
  4969. >
  4970. <div
  4971. class="works"
  4972. style="width: 240px; height: 140px; overflow: hidden"
  4973. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4974. ? worksStudent2[toolIndex]
  4975. : worksStudent2[toolIndex].slice(0, 6)"
  4976. :key="wIndex"
  4977. :class="w.type == 1 ? 'isTypeOne' : ''"
  4978. >
  4979. <div class="workImg" v-if="w.type == 0">
  4980. <img :src="w.works" @click="previewImg(w.works)" alt />
  4981. <img
  4982. class="deleteImg"
  4983. src="../../assets/deleteworks.png"
  4984. v-if="w.userid == userid || tType == 1 || tType == 4"
  4985. @click.stop="deleteWorks(w.wid)"
  4986. alt
  4987. />
  4988. </div>
  4989. <div class="workImg" v-if="w.type == 1">
  4990. <img :src="word" @click="openFile(w.works)" alt />
  4991. <img
  4992. class="deleteImg"
  4993. src="../../assets/deleteworks.png"
  4994. v-if="w.userid == userid || tType == 1 || tType == 4"
  4995. @click.stop="deleteWorks(w.wid)"
  4996. alt
  4997. />
  4998. </div>
  4999. <div class="worksName">
  5000. <div>{{ w.sName }}</div>
  5001. </div>
  5002. </div>
  5003. </div>
  5004. <div class="noWorksS">
  5005. <div
  5006. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5007. :key="sIndex"
  5008. class="noWorksName"
  5009. :class="{ isWork: s.type == '2' }"
  5010. >
  5011. {{ s.student }}
  5012. </div>
  5013. </div>
  5014. </div>
  5015. <div
  5016. v-if="
  5017. tType &&
  5018. ((tType == 2 && sIsOpen == true) ||
  5019. tType == 1 ||
  5020. tType == 4) &&
  5021. tool.tool.indexOf(40) != -1
  5022. "
  5023. class="worksBox"
  5024. >
  5025. <div
  5026. class="zuoyeYulan"
  5027. v-if="
  5028. worksStudent2.length &&
  5029. worksStudent2[toolIndex].length > 0
  5030. "
  5031. >
  5032. <div class="worksTop">
  5033. <div>作业预览</div>
  5034. <div
  5035. class="corOpen"
  5036. @click="contract(toolIndex)"
  5037. v-if="
  5038. worksStudent2[toolIndex].length > 6 &&
  5039. isCloseList[toolIndex].isClose == 0
  5040. "
  5041. >
  5042. 收缩
  5043. </div>
  5044. <div
  5045. class="corOpen"
  5046. @click="contract(toolIndex)"
  5047. v-if="isCloseList[toolIndex].isClose == 1"
  5048. >
  5049. 展开
  5050. </div>
  5051. </div>
  5052. </div>
  5053. <div
  5054. class="worksDetailBox"
  5055. v-if="
  5056. worksStudent2.length &&
  5057. worksStudent2[toolIndex].length > 0
  5058. "
  5059. >
  5060. <div
  5061. class="works"
  5062. style="
  5063. width: 200px;
  5064. height: 140px;
  5065. margin: 10px 10px 10px 0;
  5066. border-radius: 15px;
  5067. box-shadow: 0 0 6px 1px #dfdada;
  5068. "
  5069. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5070. ? worksStudent2[toolIndex]
  5071. : worksStudent2[toolIndex].slice(0, 6)"
  5072. :key="wIndex"
  5073. :class="w.type == 1 ? 'isTypeOne' : ''"
  5074. >
  5075. <div class="workImg">
  5076. <img
  5077. src="../../assets/icon/works/noImg.png"
  5078. @click="openPj(w.works, toolIndex)"
  5079. alt
  5080. />
  5081. <img
  5082. class="deleteImg"
  5083. src="../../assets/deleteworks.png"
  5084. v-if="w.userid == userid || tType == 1 || tType == 4"
  5085. @click.stop="deleteWorks(w.wid)"
  5086. alt
  5087. />
  5088. </div>
  5089. <div class="comment" style="min-width: 200px">
  5090. <div class="worksName">
  5091. <div>{{ w.sName }}</div>
  5092. </div>
  5093. <div class="commentList">
  5094. <div class="commentList">
  5095. <div
  5096. class="commentImg"
  5097. @click="
  5098. isLikes(w.wid, userid, 1, null, w.isLikes)
  5099. "
  5100. >
  5101. <img
  5102. :src="w.isLikes == true ? likes : noLikes"
  5103. alt=""
  5104. />
  5105. </div>
  5106. <div>{{ w.likesCount }}</div>
  5107. </div>
  5108. <div class="commentList" style="margin-right: 15px">
  5109. <div
  5110. class="commentImg"
  5111. @click="commentOther(w, toolIndex, wIndex)"
  5112. >
  5113. <img
  5114. src="../../assets/icon/comment/comment.png"
  5115. alt=""
  5116. />
  5117. </div>
  5118. <div>{{ w.commentCount }}</div>
  5119. </div>
  5120. </div>
  5121. </div>
  5122. </div>
  5123. </div>
  5124. <div class="noWorksS">
  5125. <div
  5126. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5127. :key="sIndex"
  5128. class="noWorksName"
  5129. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5130. :class="{ isWork: s.type == '2' }"
  5131. >
  5132. {{ s.student }}
  5133. </div>
  5134. </div>
  5135. </div>
  5136. <div
  5137. v-if="
  5138. tType &&
  5139. ((tType == 2 && sIsOpen == true) ||
  5140. tType == 1 ||
  5141. tType == 4) &&
  5142. tool.tool.indexOf(41) != -1
  5143. "
  5144. class="worksBox"
  5145. >
  5146. <div class="noWorksS">
  5147. <div
  5148. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5149. :key="sIndex"
  5150. class="noWorksName"
  5151. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5152. :class="{ isWork: s.type == '2' }"
  5153. >
  5154. {{ s.student }}
  5155. </div>
  5156. </div>
  5157. <div
  5158. class="zuoyeYulan"
  5159. v-if="
  5160. worksStudent2.length &&
  5161. worksStudent2[toolIndex].length > 0
  5162. "
  5163. >
  5164. <div class="worksTop">
  5165. <div>作业预览</div>
  5166. <div
  5167. class="corOpen"
  5168. @click="contract(toolIndex)"
  5169. v-if="
  5170. worksStudent2[toolIndex].length > 6 &&
  5171. isCloseList[toolIndex].isClose == 0
  5172. "
  5173. >
  5174. 收缩
  5175. </div>
  5176. <div
  5177. class="corOpen"
  5178. @click="contract(toolIndex)"
  5179. v-if="isCloseList[toolIndex].isClose == 1"
  5180. >
  5181. 展开
  5182. </div>
  5183. </div>
  5184. </div>
  5185. <div
  5186. class="worksDetailBox"
  5187. v-if="
  5188. worksStudent2.length &&
  5189. worksStudent2[toolIndex].length > 0
  5190. "
  5191. >
  5192. <div
  5193. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5194. ? worksStudent2[toolIndex]
  5195. : worksStudent2[toolIndex].slice(0, 6)"
  5196. :key="wIndex"
  5197. class="isWorksName2"
  5198. @click="openXz(w, toolIndex)"
  5199. >
  5200. {{ w.sName }}
  5201. <img
  5202. class="deleteImg deleteImg2"
  5203. src="../../assets/deleteworks.png"
  5204. v-if="w.userid == userid || tType == 1 || tType == 4"
  5205. @click.stop="deleteWorks(w.wid)"
  5206. alt
  5207. />
  5208. </div>
  5209. </div>
  5210. </div>
  5211. <div
  5212. v-if="
  5213. tType &&
  5214. ((tType == 2 && sIsOpen == true) ||
  5215. tType == 1 ||
  5216. tType == 4) &&
  5217. tool.tool.indexOf(47) != -1
  5218. "
  5219. class="worksBox"
  5220. >
  5221. <div class="noWorksS">
  5222. <div
  5223. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5224. :key="sIndex"
  5225. class="noWorksName"
  5226. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5227. :class="{ isWork: s.type == '2' }"
  5228. >
  5229. {{ s.student }}
  5230. </div>
  5231. </div>
  5232. <div
  5233. class="zuoyeYulan"
  5234. v-if="
  5235. worksStudent2.length &&
  5236. worksStudent2[toolIndex].length > 0
  5237. "
  5238. >
  5239. <div class="worksTop">
  5240. <div>作业预览</div>
  5241. <div
  5242. class="corOpen"
  5243. @click="contract(toolIndex)"
  5244. v-if="
  5245. worksStudent2[toolIndex].length > 6 &&
  5246. isCloseList[toolIndex].isClose == 0
  5247. "
  5248. >
  5249. 收缩
  5250. </div>
  5251. <div
  5252. class="corOpen"
  5253. @click="contract(toolIndex)"
  5254. v-if="isCloseList[toolIndex].isClose == 1"
  5255. >
  5256. 展开
  5257. </div>
  5258. </div>
  5259. </div>
  5260. <div
  5261. class="worksDetailBox"
  5262. v-if="
  5263. worksStudent2.length &&
  5264. worksStudent2[toolIndex].length > 0
  5265. "
  5266. >
  5267. <!-- @click="openXz(w, toolIndex)" -->
  5268. <div
  5269. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5270. ? worksStudent2[toolIndex]
  5271. : worksStudent2[toolIndex].slice(0, 6)"
  5272. :key="wIndex"
  5273. class="isWorksName2"
  5274. @click="openSen(w, toolIndex)"
  5275. >
  5276. {{ w.sName }}
  5277. <img
  5278. class="deleteImg deleteImg2"
  5279. src="../../assets/deleteworks.png"
  5280. v-if="w.userid == userid || tType == 1 || tType == 4"
  5281. @click.stop="deleteWorks(w.wid)"
  5282. alt
  5283. />
  5284. </div>
  5285. </div>
  5286. </div>
  5287. <div
  5288. v-if="
  5289. tType &&
  5290. ((tType == 2 && sIsOpen == true) ||
  5291. tType == 1 ||
  5292. tType == 4) &&
  5293. tool.tool.indexOf(48) != -1
  5294. "
  5295. class="worksBox"
  5296. >
  5297. <div
  5298. class="zuoyeYulan"
  5299. v-if="
  5300. worksStudent2.length &&
  5301. worksStudent2[toolIndex].length > 0
  5302. "
  5303. >
  5304. <div class="worksTop">
  5305. <div>作业预览</div>
  5306. <div
  5307. class="corOpen"
  5308. @click="contract(toolIndex)"
  5309. v-if="
  5310. worksStudent2[toolIndex].length > 6 &&
  5311. isCloseList[toolIndex].isClose == 0
  5312. "
  5313. >
  5314. 收缩
  5315. </div>
  5316. <div
  5317. class="corOpen"
  5318. @click="contract(toolIndex)"
  5319. v-if="isCloseList[toolIndex].isClose == 1"
  5320. >
  5321. 展开
  5322. </div>
  5323. </div>
  5324. </div>
  5325. <div
  5326. class="worksDetailBox"
  5327. v-if="
  5328. worksStudent2.length &&
  5329. worksStudent2[toolIndex].length > 0
  5330. "
  5331. >
  5332. <div
  5333. class="works"
  5334. style="
  5335. width: 200px;
  5336. height: 140px;
  5337. margin: 10px 10px 10px 0;
  5338. border-radius: 15px;
  5339. box-shadow: 0 0 6px 1px #dfdada;
  5340. "
  5341. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5342. ? worksStudent2[toolIndex]
  5343. : worksStudent2[toolIndex].slice(0, 6)"
  5344. :key="wIndex"
  5345. :class="w.type == 1 ? 'isTypeOne' : ''"
  5346. >
  5347. <div class="workImg">
  5348. <img :src="word" @click="openTable(w)" alt />
  5349. <!-- @click="openFile(w.works)" -->
  5350. <div
  5351. class="answerScore"
  5352. v-if="w.score"
  5353. @click.stop="openScore(w)"
  5354. :class="{
  5355. rightW:
  5356. w.userid == userid ||
  5357. tType == 1 ||
  5358. tType == 4 ||
  5359. w.ateacher == userid,
  5360. }"
  5361. >
  5362. {{ JSON.parse(w.score).wScore }}分
  5363. </div>
  5364. <div
  5365. class="answerScore"
  5366. @click.stop="openScore(w)"
  5367. v-else-if="courseDetail.userid == userid"
  5368. :class="{
  5369. rightW:
  5370. w.userid == userid ||
  5371. tType == 1 ||
  5372. tType == 4 ||
  5373. w.ateacher == userid,
  5374. }"
  5375. >
  5376. 评分
  5377. </div>
  5378. <img
  5379. class="deleteImg"
  5380. src="../../assets/deleteworks.png"
  5381. v-if="w.userid == userid || tType == 1 || tType == 4"
  5382. @click.stop="deleteWorks(w.wid)"
  5383. alt
  5384. />
  5385. </div>
  5386. <div class="comment" style="min-width: 200px">
  5387. <div class="worksName">
  5388. <div>{{ w.sName }}</div>
  5389. </div>
  5390. <div class="commentList">
  5391. <div class="commentList">
  5392. <div
  5393. class="commentImg"
  5394. @click="
  5395. isLikes(w.wid, userid, 1, null, w.isLikes)
  5396. "
  5397. >
  5398. <img
  5399. :src="w.isLikes == true ? likes : noLikes"
  5400. alt=""
  5401. />
  5402. </div>
  5403. <div>{{ w.likesCount }}</div>
  5404. </div>
  5405. <div class="commentList" style="margin-right: 15px">
  5406. <div
  5407. class="commentImg"
  5408. @click="commentOther(w, toolIndex, wIndex)"
  5409. >
  5410. <img
  5411. src="../../assets/icon/comment/comment.png"
  5412. alt=""
  5413. />
  5414. </div>
  5415. <div>{{ w.commentCount }}</div>
  5416. </div>
  5417. </div>
  5418. </div>
  5419. </div>
  5420. </div>
  5421. <div class="noWorksS">
  5422. <div
  5423. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5424. :key="sIndex"
  5425. class="noWorksName"
  5426. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  5427. :class="{ isWork: s.type == '2' }"
  5428. >
  5429. {{ s.student }}
  5430. </div>
  5431. </div>
  5432. </div>
  5433. <div
  5434. v-if="
  5435. tType &&
  5436. ((tType == 2 && sIsOpen == true) ||
  5437. tType == 1 ||
  5438. tType == 4) &&
  5439. tool.tool.indexOf(52) != -1
  5440. "
  5441. class="worksBox"
  5442. >
  5443. <div
  5444. class="zuoyeYulan"
  5445. v-if="
  5446. worksStudent2.length &&
  5447. worksStudent2[toolIndex].length > 0
  5448. "
  5449. >
  5450. <div class="worksTop">
  5451. <div>作业预览</div>
  5452. <div
  5453. class="corOpen"
  5454. @click="contract(toolIndex)"
  5455. v-if="
  5456. worksStudent2[toolIndex].length > 6 &&
  5457. isCloseList[toolIndex].isClose == 0
  5458. "
  5459. >
  5460. 收缩
  5461. </div>
  5462. <div
  5463. class="corOpen"
  5464. @click="contract(toolIndex)"
  5465. v-if="isCloseList[toolIndex].isClose == 1"
  5466. >
  5467. 展开
  5468. </div>
  5469. </div>
  5470. </div>
  5471. <div
  5472. class="worksDetailBox"
  5473. v-if="
  5474. worksStudent2.length &&
  5475. worksStudent2[toolIndex].length > 0
  5476. "
  5477. >
  5478. <div
  5479. class="works"
  5480. style="
  5481. width: 200px;
  5482. height: 140px;
  5483. margin: 10px 10px 10px 0;
  5484. border-radius: 15px;
  5485. box-shadow: 0 0 6px 1px #dfdada;
  5486. "
  5487. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5488. ? worksStudent2[toolIndex]
  5489. : worksStudent2[toolIndex].slice(0, 6)"
  5490. :key="wIndex"
  5491. :class="w.type == 1 ? 'isTypeOne' : ''"
  5492. >
  5493. <div class="workImg">
  5494. <img :src="word" @click="openWord(w)" alt />
  5495. <!-- @click="openFile(w.works)" -->
  5496. <div
  5497. class="answerScore"
  5498. v-if="w.score"
  5499. @click.stop="openScore(w)"
  5500. :class="{
  5501. rightW:
  5502. w.userid == userid ||
  5503. tType == 1 ||
  5504. tType == 4 ||
  5505. w.ateacher == userid,
  5506. }"
  5507. >
  5508. {{ JSON.parse(w.score).wScore }}分
  5509. </div>
  5510. <div
  5511. class="answerScore"
  5512. @click.stop="openScore(w)"
  5513. v-else-if="courseDetail.userid == userid"
  5514. :class="{
  5515. rightW:
  5516. w.userid == userid ||
  5517. tType == 1 ||
  5518. tType == 4 ||
  5519. w.ateacher == userid,
  5520. }"
  5521. >
  5522. 评分
  5523. </div>
  5524. <img
  5525. class="deleteImg"
  5526. src="../../assets/deleteworks.png"
  5527. v-if="w.userid == userid || tType == 1 || tType == 4"
  5528. @click.stop="deleteWorks(w.wid)"
  5529. alt
  5530. />
  5531. </div>
  5532. <div class="comment" style="min-width: 200px">
  5533. <div class="worksName">
  5534. <div>{{ w.sName }}</div>
  5535. </div>
  5536. <div class="commentList">
  5537. <div class="commentList">
  5538. <div
  5539. class="commentImg"
  5540. @click="
  5541. isLikes(w.wid, userid, 1, null, w.isLikes)
  5542. "
  5543. >
  5544. <img
  5545. :src="w.isLikes == true ? likes : noLikes"
  5546. alt=""
  5547. />
  5548. </div>
  5549. <div>{{ w.likesCount }}</div>
  5550. </div>
  5551. <div class="commentList" style="margin-right: 15px">
  5552. <div
  5553. class="commentImg"
  5554. @click="commentOther(w, toolIndex, wIndex)"
  5555. >
  5556. <img
  5557. src="../../assets/icon/comment/comment.png"
  5558. alt=""
  5559. />
  5560. </div>
  5561. <div>{{ w.commentCount }}</div>
  5562. </div>
  5563. </div>
  5564. </div>
  5565. </div>
  5566. </div>
  5567. <div class="noWorksS">
  5568. <div
  5569. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5570. :key="sIndex"
  5571. class="noWorksName"
  5572. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  5573. :class="{ isWork: s.type == '2' }"
  5574. >
  5575. {{ s.student }}
  5576. </div>
  5577. </div>
  5578. </div>
  5579. </div>
  5580. </div>
  5581. <div
  5582. class="vedioBox"
  5583. style="border-radius: 0 0 20px 20px"
  5584. v-if="
  5585. arrayToArray(tool.tool, isWorkTool).length &&
  5586. (noWorksS[toolIndex].length || worksStudent[toolIndex].length)
  5587. "
  5588. >
  5589. <!-- <div
  5590. class="queTop"
  5591. style="
  5592. font-size: 20px;
  5593. padding: 15px 0 15px 30px;
  5594. font-weight: bold;
  5595. "
  5596. >
  5597. 工作区
  5598. </div> -->
  5599. <div class="tool_work_box">
  5600. <div
  5601. v-if="
  5602. tType &&
  5603. ((tType == 2 && sIsOpen == true) ||
  5604. tType == 1 ||
  5605. tType == 4) &&
  5606. tool.tool.indexOf(16) != -1
  5607. "
  5608. class="worksBox"
  5609. >
  5610. <div
  5611. class="zuoyeYulan"
  5612. v-if="
  5613. worksStudent.length && worksStudent[toolIndex].length > 0
  5614. "
  5615. >
  5616. <div class="worksTop">
  5617. <div>作业预览</div>
  5618. <div
  5619. class="corOpen"
  5620. @click="contract(toolIndex)"
  5621. v-if="
  5622. worksStudent[toolIndex].length > 6 &&
  5623. isCloseList[toolIndex].isClose == 0
  5624. "
  5625. >
  5626. 收缩
  5627. </div>
  5628. <div
  5629. class="corOpen"
  5630. @click="contract(toolIndex)"
  5631. v-if="isCloseList[toolIndex].isClose == 1"
  5632. >
  5633. 展开
  5634. </div>
  5635. </div>
  5636. </div>
  5637. <div
  5638. class="worksDetailBox"
  5639. v-if="
  5640. worksStudent.length && worksStudent[toolIndex].length > 0
  5641. "
  5642. >
  5643. <div
  5644. class="works"
  5645. style="
  5646. width: 200px;
  5647. height: 140px;
  5648. margin: 10px 10px 10px 0;
  5649. border-radius: 15px;
  5650. box-shadow: 0 0 6px 1px #dfdada;
  5651. "
  5652. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5653. ? worksStudent[toolIndex]
  5654. : worksStudent[toolIndex].slice(0, 6)"
  5655. :key="wIndex"
  5656. :class="w.type == 1 ? 'isTypeOne' : ''"
  5657. >
  5658. <div class="workImg" v-if="w.type == 0">
  5659. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  5660. <img :src="w.works" @click="previewImg(w.works)" alt />
  5661. <div
  5662. class="answerScore"
  5663. v-if="w.score"
  5664. @click.stop="openScore(w)"
  5665. :class="{
  5666. rightW:
  5667. w.userid == userid ||
  5668. tType == 1 ||
  5669. tType == 4 ||
  5670. w.ateacher == userid,
  5671. }"
  5672. >
  5673. {{ JSON.parse(w.score).wScore }}分
  5674. </div>
  5675. <div
  5676. class="answerScore"
  5677. @click.stop="openScore(w)"
  5678. v-else-if="courseDetail.userid == userid"
  5679. :class="{
  5680. rightW:
  5681. w.userid == userid ||
  5682. tType == 1 ||
  5683. tType == 4 ||
  5684. w.ateacher == userid,
  5685. }"
  5686. >
  5687. 评分
  5688. </div>
  5689. <img
  5690. class="deleteImg"
  5691. src="../../assets/deleteworks.png"
  5692. v-if="w.userid == userid || tType == 1 || tType == 4"
  5693. @click.stop="deleteWorks(w.wid)"
  5694. alt
  5695. />
  5696. </div>
  5697. <div class="workImg" v-if="w.type == 1">
  5698. <img :src="word" @click="openFile(w.works)" alt />
  5699. <!-- @click="openFile(w.works)" -->
  5700. <div
  5701. class="answerScore"
  5702. v-if="w.score"
  5703. @click.stop="openScore(w)"
  5704. :class="{
  5705. rightW:
  5706. w.userid == userid ||
  5707. tType == 1 ||
  5708. tType == 4 ||
  5709. w.ateacher == userid,
  5710. }"
  5711. >
  5712. {{ JSON.parse(w.score).wScore }}分
  5713. </div>
  5714. <div
  5715. class="answerScore"
  5716. @click.stop="openScore(w)"
  5717. v-else-if="courseDetail.userid == userid"
  5718. :class="{
  5719. rightW:
  5720. w.userid == userid ||
  5721. tType == 1 ||
  5722. tType == 4 ||
  5723. w.ateacher == userid,
  5724. }"
  5725. >
  5726. 评分
  5727. </div>
  5728. <img
  5729. class="deleteImg"
  5730. src="../../assets/deleteworks.png"
  5731. v-if="w.userid == userid || tType == 1 || tType == 4"
  5732. @click.stop="deleteWorks(w.wid)"
  5733. alt
  5734. />
  5735. </div>
  5736. <div class="workImg" v-if="w.type == 3">
  5737. <img
  5738. style="cursor: pointer"
  5739. :src="video"
  5740. @click="openVideo(w)"
  5741. alt
  5742. />
  5743. <!-- @click="openVideo(w.works)" -->
  5744. <div
  5745. class="answerScore"
  5746. v-if="w.score"
  5747. @click.stop="openScore(w)"
  5748. :class="{
  5749. rightW:
  5750. w.userid == userid ||
  5751. tType == 1 ||
  5752. tType == 4 ||
  5753. w.ateacher == userid,
  5754. }"
  5755. >
  5756. {{ JSON.parse(w.score).wScore }}分
  5757. </div>
  5758. <div
  5759. class="answerScore"
  5760. @click.stop="openScore(w)"
  5761. v-else-if="courseDetail.userid == userid"
  5762. :class="{
  5763. rightW:
  5764. w.userid == userid ||
  5765. tType == 1 ||
  5766. tType == 4 ||
  5767. w.ateacher == userid,
  5768. }"
  5769. >
  5770. 评分
  5771. </div>
  5772. <img
  5773. class="deleteImg"
  5774. src="../../assets/deleteworks.png"
  5775. v-if="w.userid == userid || tType == 1 || tType == 4"
  5776. @click.stop="deleteWorks(w.wid)"
  5777. alt
  5778. />
  5779. </div>
  5780. <div class="workImg" v-if="w.type == 12">
  5781. <img
  5782. style="cursor: pointer"
  5783. :src="word2"
  5784. @click="downloadFile(w.works)"
  5785. alt
  5786. />
  5787. <!-- @click="openVideo(w.works)" -->
  5788. <div
  5789. class="answerScore"
  5790. v-if="w.score"
  5791. @click.stop="openScore(w)"
  5792. :class="{
  5793. rightW:
  5794. w.userid == userid ||
  5795. tType == 1 ||
  5796. tType == 4 ||
  5797. w.ateacher == userid,
  5798. }"
  5799. >
  5800. {{ JSON.parse(w.score).wScore }}分
  5801. </div>
  5802. <div
  5803. class="answerScore"
  5804. @click.stop="openScore(w)"
  5805. v-else-if="courseDetail.userid == userid"
  5806. :class="{
  5807. rightW:
  5808. w.userid == userid ||
  5809. tType == 1 ||
  5810. tType == 4 ||
  5811. w.ateacher == userid,
  5812. }"
  5813. >
  5814. 评分
  5815. </div>
  5816. <img
  5817. class="deleteImg"
  5818. src="../../assets/deleteworks.png"
  5819. v-if="w.userid == userid || tType == 1 || tType == 4"
  5820. @click.stop="deleteWorks(w.wid)"
  5821. alt
  5822. />
  5823. </div>
  5824. <div class="comment" style="min-width: 200px">
  5825. <div class="worksName">
  5826. <div>{{ w.sName }}</div>
  5827. </div>
  5828. <div class="commentList">
  5829. <div class="commentList">
  5830. <div
  5831. class="commentImg"
  5832. @click="
  5833. isLikes(w.wid, userid, 1, null, w.isLikes)
  5834. "
  5835. >
  5836. <img
  5837. :src="w.isLikes == true ? likes : noLikes"
  5838. alt=""
  5839. />
  5840. </div>
  5841. <div>{{ w.likesCount }}</div>
  5842. </div>
  5843. <div class="commentList" style="margin-right: 15px">
  5844. <div
  5845. class="commentImg"
  5846. @click="commentOther(w, toolIndex, wIndex)"
  5847. >
  5848. <img
  5849. src="../../assets/icon/comment/comment.png"
  5850. alt=""
  5851. />
  5852. </div>
  5853. <div>{{ w.commentCount }}</div>
  5854. </div>
  5855. </div>
  5856. </div>
  5857. </div>
  5858. </div>
  5859. <div class="noWorksS">
  5860. <div
  5861. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5862. :key="sIndex"
  5863. class="noWorksName"
  5864. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  5865. :class="{ isWork: s.type == '2' }"
  5866. >
  5867. {{ s.student }}
  5868. </div>
  5869. </div>
  5870. </div>
  5871. <div
  5872. v-if="
  5873. tType &&
  5874. ((tType == 2 && sIsOpen == true) ||
  5875. tType == 1 ||
  5876. tType == 4) &&
  5877. tool.tool.indexOf(32) != -1
  5878. "
  5879. class="worksBox"
  5880. >
  5881. <div
  5882. class="zuoyeYulan"
  5883. v-if="
  5884. worksStudent.length && worksStudent[toolIndex].length > 0
  5885. "
  5886. >
  5887. <div class="worksTop">
  5888. <div>作业预览</div>
  5889. <div
  5890. class="corOpen"
  5891. @click="contract(toolIndex)"
  5892. v-if="
  5893. worksStudent[toolIndex].length > 6 &&
  5894. isCloseList[toolIndex].isClose == 0
  5895. "
  5896. >
  5897. 收缩
  5898. </div>
  5899. <div
  5900. class="corOpen"
  5901. @click="contract(toolIndex)"
  5902. v-if="isCloseList[toolIndex].isClose == 1"
  5903. >
  5904. 展开
  5905. </div>
  5906. </div>
  5907. </div>
  5908. <div
  5909. class="worksDetailBox"
  5910. v-if="
  5911. worksStudent.length && worksStudent[toolIndex].length > 0
  5912. "
  5913. >
  5914. <div
  5915. class="works"
  5916. style="
  5917. width: 200px;
  5918. height: 140px;
  5919. margin: 10px 10px 10px 0;
  5920. border-radius: 15px;
  5921. box-shadow: 0 0 6px 1px #dfdada;
  5922. "
  5923. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5924. ? worksStudent[toolIndex]
  5925. : worksStudent[toolIndex].slice(0, 6)"
  5926. :key="wIndex"
  5927. :class="w.type == 1 ? 'isTypeOne' : ''"
  5928. >
  5929. <div class="workImg">
  5930. <img :src="word2" @click="downloadFile(w.works)" alt />
  5931. <div
  5932. class="answerScore"
  5933. v-if="w.score"
  5934. @click.stop="openScore(w)"
  5935. :class="{
  5936. rightW:
  5937. w.userid == userid ||
  5938. tType == 1 ||
  5939. tType == 4 ||
  5940. w.ateacher == userid,
  5941. }"
  5942. >
  5943. {{ JSON.parse(w.score).wScore }}分
  5944. </div>
  5945. <div
  5946. class="answerScore"
  5947. @click.stop="openScore(w)"
  5948. v-else-if="courseDetail.userid == userid"
  5949. :class="{
  5950. rightW:
  5951. w.userid == userid ||
  5952. tType == 1 ||
  5953. tType == 4 ||
  5954. w.ateacher == userid,
  5955. }"
  5956. >
  5957. 评分
  5958. </div>
  5959. <img
  5960. class="deleteImg"
  5961. src="../../assets/deleteworks.png"
  5962. v-if="w.userid == userid || tType == 1 || tType == 4"
  5963. @click.stop="deleteWorks(w.wid)"
  5964. alt
  5965. />
  5966. </div>
  5967. <div class="comment" style="min-width: 200px">
  5968. <div class="worksName">
  5969. <div>{{ w.sName }}</div>
  5970. </div>
  5971. <div class="commentList">
  5972. <div class="commentList">
  5973. <div
  5974. class="commentImg"
  5975. @click="
  5976. isLikes(w.wid, userid, 1, null, w.isLikes)
  5977. "
  5978. >
  5979. <img
  5980. :src="w.isLikes == true ? likes : noLikes"
  5981. alt=""
  5982. />
  5983. </div>
  5984. <div>{{ w.likesCount }}</div>
  5985. </div>
  5986. <div class="commentList" style="margin-right: 15px">
  5987. <div
  5988. class="commentImg"
  5989. @click="commentOther(w, toolIndex, wIndex)"
  5990. >
  5991. <img
  5992. src="../../assets/icon/comment/comment.png"
  5993. alt=""
  5994. />
  5995. </div>
  5996. <div>{{ w.commentCount }}</div>
  5997. </div>
  5998. </div>
  5999. </div>
  6000. </div>
  6001. </div>
  6002. <div class="noWorksS">
  6003. <div
  6004. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6005. :key="sIndex"
  6006. class="noWorksName"
  6007. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  6008. :class="{ isWork: s.type == '2' }"
  6009. >
  6010. {{ s.student }}
  6011. </div>
  6012. </div>
  6013. </div>
  6014. <div
  6015. v-if="
  6016. tType &&
  6017. ((tType == 2 && sIsOpen == true) ||
  6018. tType == 1 ||
  6019. tType == 4) &&
  6020. tool.tool.indexOf(57) != -1
  6021. "
  6022. class="worksBox"
  6023. >
  6024. <div
  6025. class="zuoyeYulan"
  6026. v-if="
  6027. worksStudent.length && worksStudent[toolIndex].length > 0
  6028. "
  6029. >
  6030. <div class="worksTop">
  6031. <div>作业预览</div>
  6032. <div
  6033. class="corOpen"
  6034. @click="contract(toolIndex)"
  6035. v-if="
  6036. worksStudent[toolIndex].length > 6 &&
  6037. isCloseList[toolIndex].isClose == 0
  6038. "
  6039. >
  6040. 收缩
  6041. </div>
  6042. <div
  6043. class="corOpen"
  6044. @click="contract(toolIndex)"
  6045. v-if="isCloseList[toolIndex].isClose == 1"
  6046. >
  6047. 展开
  6048. </div>
  6049. </div>
  6050. </div>
  6051. <div
  6052. class="worksDetailBox"
  6053. v-if="
  6054. worksStudent.length && worksStudent[toolIndex].length > 0
  6055. "
  6056. >
  6057. <div
  6058. class="works"
  6059. style="
  6060. width: 200px;
  6061. height: 140px;
  6062. margin: 10px 10px 10px 0;
  6063. border-radius: 15px;
  6064. box-shadow: 0 0 6px 1px #dfdada;
  6065. "
  6066. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6067. ? worksStudent[toolIndex]
  6068. : worksStudent[toolIndex].slice(0, 6)"
  6069. :key="wIndex"
  6070. :class="w.type == 1 ? 'isTypeOne' : ''"
  6071. >
  6072. <div class="workImg">
  6073. <img
  6074. :src="word2"
  6075. @click="downloadFile(w.works)"
  6076. v-if="w.type == 12"
  6077. alt
  6078. />
  6079. <img
  6080. :src="word2"
  6081. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  6082. v-else-if="w.type == 15"
  6083. alt
  6084. />
  6085. <div
  6086. class="answerScore"
  6087. v-if="w.score"
  6088. @click.stop="openScore(w)"
  6089. :class="{
  6090. rightW:
  6091. w.userid == userid ||
  6092. tType == 1 ||
  6093. tType == 4 ||
  6094. w.ateacher == userid,
  6095. }"
  6096. >
  6097. {{ JSON.parse(w.score).wScore }}分
  6098. </div>
  6099. <div
  6100. class="answerScore"
  6101. @click.stop="openScore(w)"
  6102. v-else-if="courseDetail.userid == userid"
  6103. :class="{
  6104. rightW:
  6105. w.userid == userid ||
  6106. tType == 1 ||
  6107. tType == 4 ||
  6108. w.ateacher == userid,
  6109. }"
  6110. >
  6111. 评分
  6112. </div>
  6113. <img
  6114. class="deleteImg"
  6115. src="../../assets/deleteworks.png"
  6116. v-if="w.userid == userid || tType == 1 || tType == 4"
  6117. @click.stop="deleteWorks(w.wid)"
  6118. alt
  6119. />
  6120. </div>
  6121. <div class="comment" style="min-width: 200px">
  6122. <div class="worksName">
  6123. <div>{{ w.sName }}</div>
  6124. </div>
  6125. <div class="commentList">
  6126. <div class="commentList">
  6127. <div
  6128. class="commentImg"
  6129. @click="
  6130. isLikes(w.wid, userid, 1, null, w.isLikes)
  6131. "
  6132. >
  6133. <img
  6134. :src="w.isLikes == true ? likes : noLikes"
  6135. alt=""
  6136. />
  6137. </div>
  6138. <div>{{ w.likesCount }}</div>
  6139. </div>
  6140. <div class="commentList" style="margin-right: 15px">
  6141. <div
  6142. class="commentImg"
  6143. @click="commentOther(w, toolIndex, wIndex)"
  6144. >
  6145. <img
  6146. src="../../assets/icon/comment/comment.png"
  6147. alt=""
  6148. />
  6149. </div>
  6150. <div>{{ w.commentCount }}</div>
  6151. </div>
  6152. </div>
  6153. </div>
  6154. </div>
  6155. </div>
  6156. <div class="noWorksS">
  6157. <div
  6158. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6159. :key="sIndex"
  6160. class="noWorksName"
  6161. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  6162. :class="{ isWork: s.type == '2' }"
  6163. >
  6164. {{ s.student }}
  6165. </div>
  6166. </div>
  6167. </div>
  6168. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  6169. <div
  6170. class="zuoyeYulan"
  6171. v-if="
  6172. worksStudent.length && worksStudent[toolIndex].length > 0
  6173. "
  6174. >
  6175. <span>作业预览</span>
  6176. <div
  6177. class="corOpen"
  6178. @click="contract(toolIndex)"
  6179. v-if="
  6180. worksStudent[toolIndex].length > 6 &&
  6181. isCloseList[toolIndex].isClose == 0
  6182. "
  6183. >
  6184. 收缩
  6185. </div>
  6186. <div
  6187. class="corOpen"
  6188. @click="contract(toolIndex)"
  6189. v-if="isCloseList[toolIndex].isClose == 1"
  6190. >
  6191. 展开
  6192. </div>
  6193. </div>
  6194. <div
  6195. class="worksDetailBox"
  6196. v-if="
  6197. worksStudent.length && worksStudent[toolIndex].length > 0
  6198. "
  6199. >
  6200. <div
  6201. class="works"
  6202. style="
  6203. width: 200px;
  6204. height: 140px;
  6205. margin: 10px 10px 10px 0;
  6206. border-radius: 15px;
  6207. box-shadow: 0 0 6px 1px #dfdada;
  6208. "
  6209. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6210. ? worksStudent[toolIndex]
  6211. : worksStudent[toolIndex].slice(0, 6)"
  6212. :key="wIndex"
  6213. :class="w.type == 1 ? 'isTypeOne' : ''"
  6214. >
  6215. <div class="workImg" v-if="w.type == 0">
  6216. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6217. <img :src="w.works" @click="previewImg(w.works)" alt />
  6218. <div
  6219. class="answerScore"
  6220. v-if="w.score"
  6221. @click.stop="openScore(w)"
  6222. :class="{
  6223. rightW:
  6224. w.userid == userid ||
  6225. tType == 1 ||
  6226. tType == 4 ||
  6227. w.ateacher == userid,
  6228. }"
  6229. >
  6230. {{ JSON.parse(w.score).wScore }}分
  6231. </div>
  6232. <div
  6233. class="answerScore"
  6234. @click.stop="openScore(w)"
  6235. v-else-if="courseDetail.userid == userid"
  6236. :class="{
  6237. rightW:
  6238. w.userid == userid ||
  6239. tType == 1 ||
  6240. tType == 4 ||
  6241. w.ateacher == userid,
  6242. }"
  6243. >
  6244. 评分
  6245. </div>
  6246. <img
  6247. class="deleteImg"
  6248. src="../../assets/deleteworks.png"
  6249. v-if="w.userid == userid || tType == 1 || tType == 4"
  6250. @click.stop="deleteWorks(w.wid)"
  6251. alt
  6252. />
  6253. </div>
  6254. <div
  6255. class="workImg"
  6256. style="cursor: pointer"
  6257. v-if="w.type == 1"
  6258. >
  6259. <img :src="word" @click="openFile(w.works)" alt />
  6260. <!-- @click="openFile(w.works)" -->
  6261. <div
  6262. class="answerScore"
  6263. v-if="w.score"
  6264. @click.stop="openScore(w)"
  6265. :class="{
  6266. rightW:
  6267. w.userid == userid ||
  6268. tType == 1 ||
  6269. tType == 4 ||
  6270. w.ateacher == userid,
  6271. }"
  6272. >
  6273. {{ JSON.parse(w.score).wScore }}分
  6274. </div>
  6275. <div
  6276. class="answerScore"
  6277. @click.stop="openScore(w)"
  6278. v-else-if="courseDetail.userid == userid"
  6279. :class="{
  6280. rightW:
  6281. w.userid == userid ||
  6282. tType == 1 ||
  6283. tType == 4 ||
  6284. w.ateacher == userid,
  6285. }"
  6286. >
  6287. 评分
  6288. </div>
  6289. <img
  6290. class="deleteImg"
  6291. src="../../assets/deleteworks.png"
  6292. v-if="w.userid == userid || tType == 1 || tType == 4"
  6293. @click.stop="deleteWorks(w.wid)"
  6294. alt
  6295. />
  6296. </div>
  6297. <div class="workImg" v-if="w.type == 3">
  6298. <img
  6299. style="cursor: pointer"
  6300. :src="video"
  6301. @click="openVideo(w)"
  6302. alt
  6303. />
  6304. <!-- @click="openVideo(w.works)" -->
  6305. <div
  6306. class="answerScore"
  6307. v-if="w.score"
  6308. @click.stop="openScore(w)"
  6309. :class="{
  6310. rightW:
  6311. w.userid == userid ||
  6312. tType == 1 ||
  6313. tType == 4 ||
  6314. w.ateacher == userid,
  6315. }"
  6316. >
  6317. {{ JSON.parse(w.score).wScore }}分
  6318. </div>
  6319. <div
  6320. class="answerScore"
  6321. @click.stop="openScore(w)"
  6322. v-else-if="courseDetail.userid == userid"
  6323. :class="{
  6324. rightW:
  6325. w.userid == userid ||
  6326. tType == 1 ||
  6327. tType == 4 ||
  6328. w.ateacher == userid,
  6329. }"
  6330. >
  6331. 评分
  6332. </div>
  6333. <img
  6334. class="deleteImg"
  6335. src="../../assets/deleteworks.png"
  6336. v-if="w.userid == userid || tType == 1 || tType == 4"
  6337. @click.stop="deleteWorks(w.wid)"
  6338. alt
  6339. />
  6340. </div>
  6341. <div class="comment" style="min-width: 200px">
  6342. <div class="worksName">
  6343. <div
  6344. style="cursor: pointer"
  6345. @click="
  6346. openSname(w.sName, w.wid, toolIndex, w.userid)
  6347. "
  6348. >
  6349. {{ w.sName }}
  6350. </div>
  6351. </div>
  6352. <div class="commentList">
  6353. <div class="commentList">
  6354. <div
  6355. class="commentImg"
  6356. @click="
  6357. isLikes(w.wid, userid, 1, null, w.isLikes)
  6358. "
  6359. >
  6360. <img
  6361. :src="w.isLikes == true ? likes : noLikes"
  6362. alt=""
  6363. />
  6364. </div>
  6365. <div>{{ w.likesCount }}</div>
  6366. </div>
  6367. <div class="commentList" style="margin-right: 15px">
  6368. <div
  6369. class="commentImg"
  6370. @click="commentOther(w, toolIndex, wIndex)"
  6371. >
  6372. <img
  6373. src="../../assets/icon/comment/comment.png"
  6374. alt=""
  6375. />
  6376. </div>
  6377. <div>{{ w.commentCount }}</div>
  6378. </div>
  6379. </div>
  6380. </div>
  6381. </div>
  6382. </div>
  6383. <div class="noWorksS">
  6384. <div
  6385. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6386. :key="sIndex"
  6387. class="noWorksName"
  6388. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  6389. :class="{ isWork: s.type == '2' }"
  6390. >
  6391. {{ s.student }}
  6392. </div>
  6393. </div>
  6394. </div>
  6395. <div
  6396. v-if="
  6397. tType &&
  6398. ((tType == 2 && sIsOpen == true) ||
  6399. tType == 1 ||
  6400. tType == 4) &&
  6401. tool.tool.indexOf(4) != -1
  6402. "
  6403. class="worksBox"
  6404. >
  6405. <div
  6406. class="zuoyeYulan"
  6407. v-if="
  6408. worksStudent.length && worksStudent[toolIndex].length > 0
  6409. "
  6410. >
  6411. <div class="worksTop">
  6412. <div>作业预览</div>
  6413. <div
  6414. class="corOpen"
  6415. @click="contract(toolIndex)"
  6416. v-if="
  6417. worksStudent[toolIndex].length > 6 &&
  6418. isCloseList[toolIndex].isClose == 0
  6419. "
  6420. >
  6421. 收缩
  6422. </div>
  6423. <div
  6424. class="corOpen"
  6425. @click="contract(toolIndex)"
  6426. v-if="isCloseList[toolIndex].isClose == 1"
  6427. >
  6428. 展开
  6429. </div>
  6430. </div>
  6431. </div>
  6432. <div>
  6433. <div
  6434. class="worksDetailBox"
  6435. v-if="
  6436. worksStudent.length &&
  6437. worksStudent[toolIndex].length > 0
  6438. "
  6439. >
  6440. <div
  6441. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6442. 0
  6443. ? worksStudent[toolIndex]
  6444. : worksStudent[toolIndex].slice(0, 6)"
  6445. :key="wIndex"
  6446. class="isWorksName2"
  6447. @click="
  6448. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6449. "
  6450. >
  6451. {{ w.sName }}
  6452. <img
  6453. class="deleteImg deleteImg2"
  6454. src="../../assets/deleteworks.png"
  6455. v-if="w.userid == userid || tType == 1 || tType == 4"
  6456. @click.stop="deleteWorks(w.wid)"
  6457. alt
  6458. />
  6459. </div>
  6460. </div>
  6461. </div>
  6462. <div class="noWorksS">
  6463. <div
  6464. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6465. :key="sIndex"
  6466. class="noWorksName"
  6467. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6468. :class="{ isWork: s.type == '2' }"
  6469. >
  6470. {{ s.student }}
  6471. </div>
  6472. </div>
  6473. </div>
  6474. <div
  6475. v-if="
  6476. tType &&
  6477. ((tType == 2 && sIsOpen == true) ||
  6478. tType == 1 ||
  6479. tType == 4) &&
  6480. tool.tool.indexOf(45) != -1
  6481. "
  6482. class="worksBox"
  6483. >
  6484. <div
  6485. class="zuoyeYulan"
  6486. v-if="
  6487. worksStudent.length && worksStudent[toolIndex].length > 0
  6488. "
  6489. >
  6490. <div class="worksTop">
  6491. <div>作业预览</div>
  6492. <div
  6493. class="corOpen"
  6494. @click="contract(toolIndex)"
  6495. v-if="
  6496. worksStudent[toolIndex].length > 6 &&
  6497. isCloseList[toolIndex].isClose == 0
  6498. "
  6499. >
  6500. 收缩
  6501. </div>
  6502. <div
  6503. class="corOpen"
  6504. @click="contract(toolIndex)"
  6505. v-if="isCloseList[toolIndex].isClose == 1"
  6506. >
  6507. 展开
  6508. </div>
  6509. </div>
  6510. </div>
  6511. <div>
  6512. <div
  6513. class="worksDetailBox"
  6514. v-if="
  6515. worksStudent.length &&
  6516. worksStudent[toolIndex].length > 0
  6517. "
  6518. >
  6519. <div
  6520. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6521. 0
  6522. ? worksStudent[toolIndex]
  6523. : worksStudent[toolIndex].slice(0, 6)"
  6524. :key="wIndex"
  6525. class="isWorksName2"
  6526. @click="
  6527. openTools(45, toolIndex, taskCount, w.works, w.sName)
  6528. "
  6529. >
  6530. {{ w.sName }}
  6531. <img
  6532. class="deleteImg deleteImg2"
  6533. src="../../assets/deleteworks.png"
  6534. v-if="w.userid == userid || tType == 1 || tType == 4"
  6535. @click.stop="deleteWorks(w.wid)"
  6536. alt
  6537. />
  6538. </div>
  6539. </div>
  6540. </div>
  6541. <div class="noWorksS">
  6542. <div
  6543. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6544. :key="sIndex"
  6545. class="noWorksName"
  6546. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  6547. :class="{ isWork: s.type == '2' }"
  6548. >
  6549. {{ s.student }}
  6550. </div>
  6551. </div>
  6552. </div>
  6553. <div
  6554. v-if="
  6555. tType &&
  6556. ((tType == 2 && sIsOpen == true) ||
  6557. tType == 1 ||
  6558. tType == 4) &&
  6559. tool.tool.indexOf(15) != -1
  6560. "
  6561. class="worksBox"
  6562. >
  6563. <div
  6564. class="zuoyeYulan"
  6565. v-if="
  6566. worksStudent.length && worksStudent[toolIndex].length > 0
  6567. "
  6568. >
  6569. <div class="worksTop">
  6570. <div>作业预览</div>
  6571. <div
  6572. class="corOpen"
  6573. @click="contract(toolIndex)"
  6574. v-if="
  6575. worksStudent[toolIndex].length > 6 &&
  6576. isCloseList[toolIndex].isClose == 0
  6577. "
  6578. >
  6579. 收缩
  6580. </div>
  6581. <div
  6582. class="corOpen"
  6583. @click="contract(toolIndex)"
  6584. v-if="isCloseList[toolIndex].isClose == 1"
  6585. >
  6586. 展开
  6587. </div>
  6588. </div>
  6589. </div>
  6590. <div
  6591. class="worksDetailBox"
  6592. v-if="
  6593. worksStudent.length && worksStudent[toolIndex].length > 0
  6594. "
  6595. >
  6596. <div
  6597. class="works"
  6598. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6599. ? worksStudent[toolIndex]
  6600. : worksStudent[toolIndex].slice(0, 6)"
  6601. :key="wIndex"
  6602. >
  6603. <div
  6604. class="workImg"
  6605. style="
  6606. border-radius: 15px;
  6607. box-shadow: #eee 0px 0px 5px 5px;
  6608. "
  6609. >
  6610. <!-- <img
  6611. src="../../assets/icon/works/noImg.png"
  6612. @click="openTools(15, toolIndex, taskCount, w.works)"
  6613. alt=""
  6614. />-->
  6615. <div
  6616. class="answerBg"
  6617. style="border-radius: 15px 15px 0 0"
  6618. @click="commentOther(w, toolIndex, wIndex)"
  6619. >
  6620. <!-- <div>{{ w.sName }}</div> -->
  6621. <div class="answerContent">
  6622. {{ JSON.parse(w.works)[0].answer }}
  6623. </div>
  6624. <div
  6625. class="answerScore"
  6626. v-if="w.score"
  6627. @click.stop="openScore(w)"
  6628. :class="{
  6629. rightW:
  6630. w.userid == userid || tType == 1 || tType == 4,
  6631. }"
  6632. >
  6633. {{ JSON.parse(w.score).wScore }}分
  6634. </div>
  6635. <div
  6636. class="answerScore"
  6637. @click.stop="openScore(w)"
  6638. v-else-if="courseDetail.userid == userid"
  6639. :class="{
  6640. rightW:
  6641. w.userid == userid || tType == 1 || tType == 4,
  6642. }"
  6643. >
  6644. 评分
  6645. </div>
  6646. <img
  6647. class="deleteImg"
  6648. src="../../assets/deleteworks.png"
  6649. v-if="
  6650. w.userid == userid || tType == 1 || tType == 4
  6651. "
  6652. @click.stop="deleteWorks(w.wid)"
  6653. alt
  6654. />
  6655. </div>
  6656. <div class="comment">
  6657. <div class="worksName">
  6658. <div>{{ w.sName }}</div>
  6659. </div>
  6660. <div class="commentList">
  6661. <div
  6662. class="commentImg"
  6663. @click="
  6664. isLikes(w.wid, userid, 1, null, w.isLikes)
  6665. "
  6666. >
  6667. <img
  6668. :src="w.isLikes == true ? likes : noLikes"
  6669. alt=""
  6670. />
  6671. </div>
  6672. <div>{{ w.likesCount }}</div>
  6673. </div>
  6674. <div class="commentList" style="margin-right: 15px">
  6675. <div
  6676. class="commentImg"
  6677. @click="commentOther(w, toolIndex, wIndex)"
  6678. >
  6679. <img
  6680. src="../../assets/icon/comment/comment.png"
  6681. alt=""
  6682. />
  6683. </div>
  6684. <div>{{ w.commentCount }}</div>
  6685. </div>
  6686. </div>
  6687. </div>
  6688. </div>
  6689. </div>
  6690. <div class="noWorksS">
  6691. <div
  6692. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6693. :key="sIndex"
  6694. class="noWorksName"
  6695. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6696. :class="{ isWork: s.type == '2' }"
  6697. >
  6698. {{ s.student }}
  6699. </div>
  6700. </div>
  6701. </div>
  6702. <div
  6703. v-if="
  6704. tType &&
  6705. ((tType == 2 && sIsOpen == true) ||
  6706. tType == 1 ||
  6707. tType == 4) &&
  6708. tool.tool.indexOf(1) != -1
  6709. "
  6710. class="worksBox"
  6711. >
  6712. <div
  6713. class="zuoyeYulan"
  6714. v-if="
  6715. worksStudent.length && worksStudent[toolIndex].length > 0
  6716. "
  6717. >
  6718. <div class="worksTop">
  6719. <div>作业预览</div>
  6720. <div
  6721. class="corOpen"
  6722. @click="contract(toolIndex)"
  6723. v-if="
  6724. worksStudent[toolIndex].length > 6 &&
  6725. isCloseList[toolIndex].isClose == 0
  6726. "
  6727. >
  6728. 收缩
  6729. </div>
  6730. <div
  6731. class="corOpen"
  6732. @click="contract(toolIndex)"
  6733. v-if="isCloseList[toolIndex].isClose == 1"
  6734. >
  6735. 展开
  6736. </div>
  6737. </div>
  6738. </div>
  6739. <div
  6740. class="worksDetailBox"
  6741. v-if="
  6742. worksStudent.length && worksStudent[toolIndex].length > 0
  6743. "
  6744. >
  6745. <div
  6746. class="works"
  6747. style="
  6748. width: 200px;
  6749. height: 140px;
  6750. margin: 10px 10px 10px 0;
  6751. border-radius: 15px;
  6752. box-shadow: 0 0 6px 1px #dfdada;
  6753. "
  6754. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6755. ? worksStudent[toolIndex]
  6756. : worksStudent[toolIndex].slice(0, 6)"
  6757. :key="wIndex"
  6758. >
  6759. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  6760. <div class="workImg">
  6761. <img :src="w.works" @click="previewImg(w.works)" alt />
  6762. <div
  6763. class="answerScore"
  6764. v-if="w.score"
  6765. @click.stop="openScore(w)"
  6766. :class="{
  6767. rightW:
  6768. w.userid == userid || tType == 1 || tType == 4,
  6769. }"
  6770. >
  6771. {{ JSON.parse(w.score).wScore }}分
  6772. </div>
  6773. <div
  6774. class="answerScore"
  6775. @click.stop="openScore(w)"
  6776. v-else-if="courseDetail.userid == userid"
  6777. :class="{
  6778. rightW:
  6779. w.userid == userid || tType == 1 || tType == 4,
  6780. }"
  6781. >
  6782. 评分
  6783. </div>
  6784. <img
  6785. class="deleteImg"
  6786. src="../../assets/deleteworks.png"
  6787. v-if="w.userid == userid || tType == 1 || tType == 4"
  6788. @click.stop="deleteWorks(w.wid)"
  6789. alt
  6790. />
  6791. </div>
  6792. <div class="comment" style="min-width: 200px">
  6793. <div class="worksName">
  6794. <div>{{ w.sName }}</div>
  6795. </div>
  6796. <div class="commentList">
  6797. <div class="commentList">
  6798. <div
  6799. class="commentImg"
  6800. @click="
  6801. isLikes(w.wid, userid, 1, null, w.isLikes)
  6802. "
  6803. >
  6804. <img
  6805. :src="w.isLikes == true ? likes : noLikes"
  6806. alt=""
  6807. />
  6808. </div>
  6809. <div>{{ w.likesCount }}</div>
  6810. </div>
  6811. <div class="commentList" style="margin-right: 15px">
  6812. <div
  6813. class="commentImg"
  6814. @click="commentOther(w, toolIndex, wIndex)"
  6815. >
  6816. <img
  6817. src="../../assets/icon/comment/comment.png"
  6818. alt=""
  6819. />
  6820. </div>
  6821. <div>{{ w.commentCount }}</div>
  6822. </div>
  6823. </div>
  6824. </div>
  6825. </div>
  6826. </div>
  6827. <div class="noWorksS">
  6828. <div
  6829. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6830. :key="sIndex"
  6831. class="noWorksName"
  6832. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  6833. :class="{ isWork: s.type == '2' }"
  6834. >
  6835. {{ s.student }}
  6836. </div>
  6837. </div>
  6838. </div>
  6839. <div
  6840. v-if="
  6841. tType &&
  6842. ((tType == 2 && sIsOpen == true) ||
  6843. tType == 1 ||
  6844. tType == 4) &&
  6845. tool.tool.indexOf(3) != -1
  6846. "
  6847. class="worksBox"
  6848. >
  6849. <div
  6850. class="zuoyeYulan"
  6851. v-if="
  6852. worksStudent.length && worksStudent[toolIndex].length > 0
  6853. "
  6854. >
  6855. <div class="worksTop">
  6856. <div>作业预览</div>
  6857. <div
  6858. class="corOpen"
  6859. @click="contract(toolIndex)"
  6860. v-if="
  6861. worksStudent[toolIndex].length > 6 &&
  6862. isCloseList[toolIndex].isClose == 0
  6863. "
  6864. >
  6865. 收缩
  6866. </div>
  6867. <div
  6868. class="corOpen"
  6869. @click="contract(toolIndex)"
  6870. v-if="isCloseList[toolIndex].isClose == 1"
  6871. >
  6872. 展开
  6873. </div>
  6874. </div>
  6875. </div>
  6876. <div
  6877. class="worksDetailBox"
  6878. v-if="
  6879. worksStudent.length && worksStudent[toolIndex].length > 0
  6880. "
  6881. >
  6882. <div
  6883. class="works"
  6884. style="
  6885. width: 200px;
  6886. height: 140px;
  6887. margin: 10px 10px 10px 0;
  6888. border-radius: 15px;
  6889. box-shadow: 0 0 6px 1px #dfdada;
  6890. "
  6891. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6892. ? worksStudent[toolIndex]
  6893. : worksStudent[toolIndex].slice(0, 6)"
  6894. :key="wIndex"
  6895. >
  6896. <!-- @click="previewImg(w.works)" -->
  6897. <div class="workImg">
  6898. <img :src="w.works" @click="previewImg(w.works)" alt />
  6899. <div
  6900. class="answerScore"
  6901. v-if="w.score"
  6902. @click.stop="openScore(w)"
  6903. :class="{
  6904. rightW:
  6905. w.userid == userid || tType == 1 || tType == 4,
  6906. }"
  6907. >
  6908. {{ JSON.parse(w.score).wScore }}分
  6909. </div>
  6910. <div
  6911. class="answerScore"
  6912. @click.stop="openScore(w)"
  6913. v-else-if="courseDetail.userid == userid"
  6914. :class="{
  6915. rightW:
  6916. w.userid == userid || tType == 1 || tType == 4,
  6917. }"
  6918. >
  6919. 评分
  6920. </div>
  6921. <img
  6922. class="deleteImg"
  6923. src="../../assets/deleteworks.png"
  6924. v-if="w.userid == userid || tType == 1 || tType == 4"
  6925. @click.stop="deleteWorks(w.wid)"
  6926. alt
  6927. />
  6928. </div>
  6929. <div class="comment" style="min-width: 200px">
  6930. <div class="worksName">
  6931. <div>{{ w.sName }}</div>
  6932. </div>
  6933. <div class="commentList">
  6934. <div class="commentList">
  6935. <div
  6936. class="commentImg"
  6937. @click="
  6938. isLikes(w.wid, userid, 1, null, w.isLikes)
  6939. "
  6940. >
  6941. <img
  6942. :src="w.isLikes == true ? likes : noLikes"
  6943. alt=""
  6944. />
  6945. </div>
  6946. <div>{{ w.likesCount }}</div>
  6947. </div>
  6948. <div class="commentList" style="margin-right: 15px">
  6949. <div
  6950. class="commentImg"
  6951. @click="commentOther(w, toolIndex, wIndex)"
  6952. >
  6953. <img
  6954. src="../../assets/icon/comment/comment.png"
  6955. alt=""
  6956. />
  6957. </div>
  6958. <div>{{ w.commentCount }}</div>
  6959. </div>
  6960. </div>
  6961. </div>
  6962. </div>
  6963. </div>
  6964. <div class="noWorksS">
  6965. <div
  6966. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6967. :key="sIndex"
  6968. class="noWorksName"
  6969. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  6970. :class="{ isWork: s.type == '2' }"
  6971. >
  6972. {{ s.student }}
  6973. </div>
  6974. </div>
  6975. </div>
  6976. <div
  6977. v-if="
  6978. tType &&
  6979. ((tType == 2 && sIsOpen == true) ||
  6980. tType == 1 ||
  6981. tType == 4) &&
  6982. tool.tool.indexOf(6) != -1
  6983. "
  6984. class="worksBox"
  6985. >
  6986. <div
  6987. class="zuoyeYulan"
  6988. v-if="
  6989. worksStudent.length && worksStudent[toolIndex].length > 0
  6990. "
  6991. >
  6992. <div class="worksTop">
  6993. <div>作业预览</div>
  6994. <div
  6995. class="corOpen"
  6996. @click="contract(toolIndex)"
  6997. v-if="
  6998. worksStudent[toolIndex].length > 6 &&
  6999. isCloseList[toolIndex].isClose == 0
  7000. "
  7001. >
  7002. 收缩
  7003. </div>
  7004. <div
  7005. class="corOpen"
  7006. @click="contract(toolIndex)"
  7007. v-if="isCloseList[toolIndex].isClose == 1"
  7008. >
  7009. 展开
  7010. </div>
  7011. </div>
  7012. </div>
  7013. <div
  7014. class="worksDetailBox"
  7015. v-if="
  7016. worksStudent.length && worksStudent[toolIndex].length > 0
  7017. "
  7018. >
  7019. <div
  7020. class="works"
  7021. style="
  7022. width: 200px;
  7023. height: 140px;
  7024. margin: 10px 10px 10px 0;
  7025. border-radius: 15px;
  7026. box-shadow: 0 0 6px 1px #dfdada;
  7027. "
  7028. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7029. ? worksStudent[toolIndex]
  7030. : worksStudent[toolIndex].slice(0, 6)"
  7031. :key="wIndex"
  7032. >
  7033. <!-- @click="previewImg(w.works)" -->
  7034. <div class="workImg">
  7035. <img :src="w.works" @click="previewImg(w.works)" alt />
  7036. <div
  7037. class="answerScore"
  7038. v-if="w.score"
  7039. @click.stop="openScore(w)"
  7040. :class="{
  7041. rightW:
  7042. w.userid == userid || tType == 1 || tType == 4,
  7043. }"
  7044. >
  7045. {{ JSON.parse(w.score).wScore }}分
  7046. </div>
  7047. <div
  7048. class="answerScore"
  7049. @click.stop="openScore(w)"
  7050. v-else-if="courseDetail.userid == userid"
  7051. :class="{
  7052. rightW:
  7053. w.userid == userid || tType == 1 || tType == 4,
  7054. }"
  7055. >
  7056. 评分
  7057. </div>
  7058. <img
  7059. class="deleteImg"
  7060. src="../../assets/deleteworks.png"
  7061. v-if="w.userid == userid || tType == 1 || tType == 4"
  7062. @click.stop="deleteWorks(w.wid)"
  7063. alt
  7064. />
  7065. </div>
  7066. <div class="comment" style="min-width: 200px">
  7067. <div class="worksName">
  7068. <div>{{ w.sName }}</div>
  7069. </div>
  7070. <div class="commentList">
  7071. <div class="commentList">
  7072. <div
  7073. class="commentImg"
  7074. @click="
  7075. isLikes(w.wid, userid, 1, null, w.isLikes)
  7076. "
  7077. >
  7078. <img
  7079. :src="w.isLikes == true ? likes : noLikes"
  7080. alt=""
  7081. />
  7082. </div>
  7083. <div>{{ w.likesCount }}</div>
  7084. </div>
  7085. <div class="commentList" style="margin-right: 15px">
  7086. <div
  7087. class="commentImg"
  7088. @click="commentOther(w, toolIndex, wIndex)"
  7089. >
  7090. <img
  7091. src="../../assets/icon/comment/comment.png"
  7092. alt=""
  7093. />
  7094. </div>
  7095. <div>{{ w.commentCount }}</div>
  7096. </div>
  7097. </div>
  7098. </div>
  7099. </div>
  7100. </div>
  7101. <div class="noWorksS">
  7102. <div
  7103. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7104. :key="sIndex"
  7105. class="noWorksName"
  7106. :class="{ isWork: s.type == '2' }"
  7107. >
  7108. {{ s.student }}
  7109. </div>
  7110. </div>
  7111. </div>
  7112. <div
  7113. v-if="
  7114. tType &&
  7115. ((tType == 2 && sIsOpen == true) ||
  7116. tType == 1 ||
  7117. tType == 4) &&
  7118. tool.tool.indexOf(7) != -1
  7119. "
  7120. class="worksBox"
  7121. >
  7122. <div
  7123. class="zuoyeYulan"
  7124. v-if="
  7125. worksStudent.length && worksStudent[toolIndex].length > 0
  7126. "
  7127. >
  7128. <div class="worksTop">
  7129. <div>作业预览</div>
  7130. <div
  7131. class="corOpen"
  7132. @click="contract(toolIndex)"
  7133. v-if="
  7134. worksStudent[toolIndex].length > 6 &&
  7135. isCloseList[toolIndex].isClose == 0
  7136. "
  7137. >
  7138. 收缩
  7139. </div>
  7140. <div
  7141. class="corOpen"
  7142. @click="contract(toolIndex)"
  7143. v-if="isCloseList[toolIndex].isClose == 1"
  7144. >
  7145. 展开
  7146. </div>
  7147. </div>
  7148. </div>
  7149. <div
  7150. class="worksDetailBox"
  7151. v-if="
  7152. worksStudent.length && worksStudent[toolIndex].length > 0
  7153. "
  7154. >
  7155. <div
  7156. class="works"
  7157. style="
  7158. width: 200px;
  7159. height: 140px;
  7160. margin: 10px 10px 10px 0;
  7161. border-radius: 15px;
  7162. box-shadow: 0 0 6px 1px #dfdada;
  7163. "
  7164. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7165. ? worksStudent[toolIndex]
  7166. : worksStudent[toolIndex].slice(0, 6)"
  7167. :key="wIndex"
  7168. >
  7169. <!-- @click="previewImg(w.works)" -->
  7170. <div class="workImg">
  7171. <img :src="w.works" @click="previewImg(w.works)" alt />
  7172. <div
  7173. class="answerScore"
  7174. v-if="w.score"
  7175. @click.stop="openScore(w)"
  7176. :class="{
  7177. rightW:
  7178. w.userid == userid || tType == 1 || tType == 4,
  7179. }"
  7180. >
  7181. {{ JSON.parse(w.score).wScore }}分
  7182. </div>
  7183. <div
  7184. class="answerScore"
  7185. @click.stop="openScore(w)"
  7186. v-else-if="courseDetail.userid == userid"
  7187. :class="{
  7188. rightW:
  7189. w.userid == userid || tType == 1 || tType == 4,
  7190. }"
  7191. >
  7192. 评分
  7193. </div>
  7194. <img
  7195. class="deleteImg"
  7196. src="../../assets/deleteworks.png"
  7197. v-if="w.userid == userid || tType == 1 || tType == 4"
  7198. @click.stop="deleteWorks(w.wid)"
  7199. alt
  7200. />
  7201. </div>
  7202. <div class="comment" style="min-width: 200px">
  7203. <div class="worksName">
  7204. <div>{{ w.sName }}</div>
  7205. </div>
  7206. <div class="commentList">
  7207. <div class="commentList">
  7208. <div
  7209. class="commentImg"
  7210. @click="
  7211. isLikes(w.wid, userid, 1, null, w.isLikes)
  7212. "
  7213. >
  7214. <img
  7215. :src="w.isLikes == true ? likes : noLikes"
  7216. alt=""
  7217. />
  7218. </div>
  7219. <div>{{ w.likesCount }}</div>
  7220. </div>
  7221. <div class="commentList" style="margin-right: 15px">
  7222. <div
  7223. class="commentImg"
  7224. @click="commentOther(w, toolIndex, wIndex)"
  7225. >
  7226. <img
  7227. src="../../assets/icon/comment/comment.png"
  7228. alt=""
  7229. />
  7230. </div>
  7231. <div>{{ w.commentCount }}</div>
  7232. </div>
  7233. </div>
  7234. </div>
  7235. </div>
  7236. </div>
  7237. <div class="noWorksS">
  7238. <div
  7239. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7240. :key="sIndex"
  7241. class="noWorksName"
  7242. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  7243. :class="{ isWork: s.type == '2' }"
  7244. >
  7245. {{ s.student }}
  7246. </div>
  7247. </div>
  7248. </div>
  7249. <div
  7250. v-if="
  7251. tType &&
  7252. ((tType == 2 && sIsOpen == true) ||
  7253. tType == 1 ||
  7254. tType == 4) &&
  7255. tool.tool.indexOf(26) != -1
  7256. "
  7257. class="worksBox"
  7258. >
  7259. <div
  7260. class="zuoyeYulan"
  7261. v-if="
  7262. worksStudent.length && worksStudent[toolIndex].length > 0
  7263. "
  7264. >
  7265. <div class="worksTop">
  7266. <div>作业预览</div>
  7267. <div
  7268. class="corOpen"
  7269. @click="contract(toolIndex)"
  7270. v-if="
  7271. worksStudent[toolIndex].length > 6 &&
  7272. isCloseList[toolIndex].isClose == 0
  7273. "
  7274. >
  7275. 收缩
  7276. </div>
  7277. <div
  7278. class="corOpen"
  7279. @click="contract(toolIndex)"
  7280. v-if="isCloseList[toolIndex].isClose == 1"
  7281. >
  7282. 展开
  7283. </div>
  7284. </div>
  7285. </div>
  7286. <div
  7287. class="worksDetailBox"
  7288. v-if="
  7289. worksStudent.length && worksStudent[toolIndex].length > 0
  7290. "
  7291. >
  7292. <div
  7293. class="works"
  7294. style="width: 240px; height: 140px; overflow: hidden"
  7295. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7296. ? worksStudent[toolIndex]
  7297. : worksStudent[toolIndex].slice(0, 6)"
  7298. :key="wIndex"
  7299. :class="w.type == 1 ? 'isTypeOne' : ''"
  7300. >
  7301. <div class="workImg" v-if="w.type == 0">
  7302. <img :src="w.works" @click="previewImg(w.works)" alt />
  7303. <img
  7304. class="deleteImg"
  7305. src="../../assets/deleteworks.png"
  7306. v-if="w.userid == userid || tType == 1 || tType == 4"
  7307. @click.stop="deleteWorks(w.wid)"
  7308. alt
  7309. />
  7310. </div>
  7311. <div class="workImg" v-if="w.type == 1">
  7312. <img :src="word" @click="openFile(w.works)" alt />
  7313. <img
  7314. class="deleteImg"
  7315. src="../../assets/deleteworks.png"
  7316. v-if="w.userid == userid || tType == 1 || tType == 4"
  7317. @click.stop="deleteWorks(w.wid)"
  7318. alt
  7319. />
  7320. </div>
  7321. <div class="worksName">
  7322. <div>{{ w.sName }}</div>
  7323. </div>
  7324. </div>
  7325. </div>
  7326. <div class="noWorksS">
  7327. <div
  7328. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7329. :key="sIndex"
  7330. class="noWorksName"
  7331. :class="{ isWork: s.type == '2' }"
  7332. >
  7333. {{ s.student }}
  7334. </div>
  7335. </div>
  7336. </div>
  7337. <div
  7338. v-if="
  7339. tType &&
  7340. ((tType == 2 && sIsOpen == true) ||
  7341. tType == 1 ||
  7342. tType == 4) &&
  7343. tool.tool.indexOf(40) != -1
  7344. "
  7345. class="worksBox"
  7346. >
  7347. <div
  7348. class="zuoyeYulan"
  7349. v-if="
  7350. worksStudent.length && worksStudent[toolIndex].length > 0
  7351. "
  7352. >
  7353. <div class="worksTop">
  7354. <div>作业预览</div>
  7355. <div
  7356. class="corOpen"
  7357. @click="contract(toolIndex)"
  7358. v-if="
  7359. worksStudent[toolIndex].length > 6 &&
  7360. isCloseList[toolIndex].isClose == 0
  7361. "
  7362. >
  7363. 收缩
  7364. </div>
  7365. <div
  7366. class="corOpen"
  7367. @click="contract(toolIndex)"
  7368. v-if="isCloseList[toolIndex].isClose == 1"
  7369. >
  7370. 展开
  7371. </div>
  7372. </div>
  7373. </div>
  7374. <div
  7375. class="worksDetailBox"
  7376. v-if="
  7377. worksStudent.length && worksStudent[toolIndex].length > 0
  7378. "
  7379. >
  7380. <div
  7381. class="works"
  7382. style="
  7383. width: 200px;
  7384. height: 140px;
  7385. margin: 10px 10px 10px 0;
  7386. border-radius: 15px;
  7387. box-shadow: 0 0 6px 1px #dfdada;
  7388. "
  7389. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7390. ? worksStudent[toolIndex]
  7391. : worksStudent[toolIndex].slice(0, 6)"
  7392. :key="wIndex"
  7393. :class="w.type == 1 ? 'isTypeOne' : ''"
  7394. >
  7395. <div class="workImg">
  7396. <img
  7397. src="../../assets/icon/works/noImg.png"
  7398. @click="openPj(w.works, toolIndex)"
  7399. alt
  7400. />
  7401. <img
  7402. class="deleteImg"
  7403. src="../../assets/deleteworks.png"
  7404. v-if="w.userid == userid || tType == 1 || tType == 4"
  7405. @click.stop="deleteWorks(w.wid)"
  7406. alt
  7407. />
  7408. </div>
  7409. <div class="comment" style="min-width: 200px">
  7410. <div class="worksName">
  7411. <div>{{ w.sName }}</div>
  7412. </div>
  7413. <div class="commentList">
  7414. <div class="commentList">
  7415. <div
  7416. class="commentImg"
  7417. @click="
  7418. isLikes(w.wid, userid, 1, null, w.isLikes)
  7419. "
  7420. >
  7421. <img
  7422. :src="w.isLikes == true ? likes : noLikes"
  7423. alt=""
  7424. />
  7425. </div>
  7426. <div>{{ w.likesCount }}</div>
  7427. </div>
  7428. <div class="commentList" style="margin-right: 15px">
  7429. <div
  7430. class="commentImg"
  7431. @click="commentOther(w, toolIndex, wIndex)"
  7432. >
  7433. <img
  7434. src="../../assets/icon/comment/comment.png"
  7435. alt=""
  7436. />
  7437. </div>
  7438. <div>{{ w.commentCount }}</div>
  7439. </div>
  7440. </div>
  7441. </div>
  7442. </div>
  7443. </div>
  7444. <div class="noWorksS">
  7445. <div
  7446. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7447. :key="sIndex"
  7448. class="noWorksName"
  7449. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  7450. :class="{ isWork: s.type == '2' }"
  7451. >
  7452. {{ s.student }}
  7453. </div>
  7454. </div>
  7455. </div>
  7456. <div
  7457. v-if="
  7458. tType &&
  7459. ((tType == 2 && sIsOpen == true) ||
  7460. tType == 1 ||
  7461. tType == 4) &&
  7462. tool.tool.indexOf(41) != -1
  7463. "
  7464. class="worksBox"
  7465. >
  7466. <div class="noWorksS">
  7467. <div
  7468. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7469. :key="sIndex"
  7470. class="noWorksName"
  7471. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  7472. :class="{ isWork: s.type == '2' }"
  7473. >
  7474. {{ s.student }}
  7475. </div>
  7476. </div>
  7477. <div
  7478. class="zuoyeYulan"
  7479. v-if="
  7480. worksStudent.length && worksStudent[toolIndex].length > 0
  7481. "
  7482. >
  7483. <div class="worksTop">
  7484. <div>作业预览</div>
  7485. <div
  7486. class="corOpen"
  7487. @click="contract(toolIndex)"
  7488. v-if="
  7489. worksStudent[toolIndex].length > 6 &&
  7490. isCloseList[toolIndex].isClose == 0
  7491. "
  7492. >
  7493. 收缩
  7494. </div>
  7495. <div
  7496. class="corOpen"
  7497. @click="contract(toolIndex)"
  7498. v-if="isCloseList[toolIndex].isClose == 1"
  7499. >
  7500. 展开
  7501. </div>
  7502. </div>
  7503. </div>
  7504. <div
  7505. class="worksDetailBox"
  7506. v-if="
  7507. worksStudent.length && worksStudent[toolIndex].length > 0
  7508. "
  7509. >
  7510. <div
  7511. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7512. ? worksStudent[toolIndex]
  7513. : worksStudent[toolIndex].slice(0, 6)"
  7514. :key="wIndex"
  7515. class="isWorksName2"
  7516. @click="openXz(w, toolIndex)"
  7517. >
  7518. {{ w.sName }}
  7519. <img
  7520. class="deleteImg deleteImg2"
  7521. src="../../assets/deleteworks.png"
  7522. v-if="w.userid == userid || tType == 1 || tType == 4"
  7523. @click.stop="deleteWorks(w.wid)"
  7524. alt
  7525. />
  7526. </div>
  7527. </div>
  7528. </div>
  7529. <div
  7530. v-if="
  7531. tType &&
  7532. ((tType == 2 && sIsOpen == true) ||
  7533. tType == 1 ||
  7534. tType == 4) &&
  7535. tool.tool.indexOf(47) != -1
  7536. "
  7537. class="worksBox"
  7538. >
  7539. <div class="noWorksS">
  7540. <div
  7541. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7542. :key="sIndex"
  7543. class="noWorksName"
  7544. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  7545. :class="{ isWork: s.type == '2' }"
  7546. >
  7547. {{ s.student }}
  7548. </div>
  7549. </div>
  7550. <div
  7551. class="zuoyeYulan"
  7552. v-if="
  7553. worksStudent.length && worksStudent[toolIndex].length > 0
  7554. "
  7555. >
  7556. <div class="worksTop">
  7557. <div>作业预览</div>
  7558. <div
  7559. class="corOpen"
  7560. @click="contract(toolIndex)"
  7561. v-if="
  7562. worksStudent[toolIndex].length > 6 &&
  7563. isCloseList[toolIndex].isClose == 0
  7564. "
  7565. >
  7566. 收缩
  7567. </div>
  7568. <div
  7569. class="corOpen"
  7570. @click="contract(toolIndex)"
  7571. v-if="isCloseList[toolIndex].isClose == 1"
  7572. >
  7573. 展开
  7574. </div>
  7575. </div>
  7576. </div>
  7577. <div
  7578. class="worksDetailBox"
  7579. v-if="
  7580. worksStudent.length && worksStudent[toolIndex].length > 0
  7581. "
  7582. >
  7583. <!-- @click="openXz(w, toolIndex)" -->
  7584. <div
  7585. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7586. ? worksStudent[toolIndex]
  7587. : worksStudent[toolIndex].slice(0, 6)"
  7588. :key="wIndex"
  7589. class="isWorksName2"
  7590. @click="openSen(w, toolIndex)"
  7591. >
  7592. {{ w.sName }}
  7593. <img
  7594. class="deleteImg deleteImg2"
  7595. src="../../assets/deleteworks.png"
  7596. v-if="w.userid == userid || tType == 1 || tType == 4"
  7597. @click.stop="deleteWorks(w.wid)"
  7598. alt
  7599. />
  7600. </div>
  7601. </div>
  7602. </div>
  7603. <div
  7604. v-if="
  7605. tType &&
  7606. ((tType == 2 && sIsOpen == true) ||
  7607. tType == 1 ||
  7608. tType == 4) &&
  7609. tool.tool.indexOf(48) != -1
  7610. "
  7611. class="worksBox"
  7612. >
  7613. <div
  7614. class="zuoyeYulan"
  7615. v-if="
  7616. worksStudent.length && worksStudent[toolIndex].length > 0
  7617. "
  7618. >
  7619. <div class="worksTop">
  7620. <div>作业预览</div>
  7621. <div
  7622. class="corOpen"
  7623. @click="contract(toolIndex)"
  7624. v-if="
  7625. worksStudent[toolIndex].length > 6 &&
  7626. isCloseList[toolIndex].isClose == 0
  7627. "
  7628. >
  7629. 收缩
  7630. </div>
  7631. <div
  7632. class="corOpen"
  7633. @click="contract(toolIndex)"
  7634. v-if="isCloseList[toolIndex].isClose == 1"
  7635. >
  7636. 展开
  7637. </div>
  7638. </div>
  7639. </div>
  7640. <div
  7641. class="worksDetailBox"
  7642. v-if="
  7643. worksStudent.length && worksStudent[toolIndex].length > 0
  7644. "
  7645. >
  7646. <div
  7647. class="works"
  7648. style="
  7649. width: 200px;
  7650. height: 140px;
  7651. margin: 10px 10px 10px 0;
  7652. border-radius: 15px;
  7653. box-shadow: 0 0 6px 1px #dfdada;
  7654. "
  7655. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7656. ? worksStudent[toolIndex]
  7657. : worksStudent[toolIndex].slice(0, 6)"
  7658. :key="wIndex"
  7659. :class="w.type == 1 ? 'isTypeOne' : ''"
  7660. >
  7661. <div class="workImg">
  7662. <img :src="word" @click="openTable(w)" alt />
  7663. <!-- @click="openFile(w.works)" -->
  7664. <div
  7665. class="answerScore"
  7666. v-if="w.score"
  7667. @click.stop="openScore(w)"
  7668. :class="{
  7669. rightW:
  7670. w.userid == userid ||
  7671. tType == 1 ||
  7672. tType == 4 ||
  7673. w.ateacher == userid,
  7674. }"
  7675. >
  7676. {{ JSON.parse(w.score).wScore }}分
  7677. </div>
  7678. <div
  7679. class="answerScore"
  7680. @click.stop="openScore(w)"
  7681. v-else-if="courseDetail.userid == userid"
  7682. :class="{
  7683. rightW:
  7684. w.userid == userid ||
  7685. tType == 1 ||
  7686. tType == 4 ||
  7687. w.ateacher == userid,
  7688. }"
  7689. >
  7690. 评分
  7691. </div>
  7692. <img
  7693. class="deleteImg"
  7694. src="../../assets/deleteworks.png"
  7695. v-if="w.userid == userid || tType == 1 || tType == 4"
  7696. @click.stop="deleteWorks(w.wid)"
  7697. alt
  7698. />
  7699. </div>
  7700. <div class="comment" style="min-width: 200px">
  7701. <div class="worksName">
  7702. <div>{{ w.sName }}</div>
  7703. </div>
  7704. <div class="commentList">
  7705. <div class="commentList">
  7706. <div
  7707. class="commentImg"
  7708. @click="
  7709. isLikes(w.wid, userid, 1, null, w.isLikes)
  7710. "
  7711. >
  7712. <img
  7713. :src="w.isLikes == true ? likes : noLikes"
  7714. alt=""
  7715. />
  7716. </div>
  7717. <div>{{ w.likesCount }}</div>
  7718. </div>
  7719. <div class="commentList" style="margin-right: 15px">
  7720. <div
  7721. class="commentImg"
  7722. @click="commentOther(w, toolIndex, wIndex)"
  7723. >
  7724. <img
  7725. src="../../assets/icon/comment/comment.png"
  7726. alt=""
  7727. />
  7728. </div>
  7729. <div>{{ w.commentCount }}</div>
  7730. </div>
  7731. </div>
  7732. </div>
  7733. </div>
  7734. </div>
  7735. <div class="noWorksS">
  7736. <div
  7737. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7738. :key="sIndex"
  7739. class="noWorksName"
  7740. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  7741. :class="{ isWork: s.type == '2' }"
  7742. >
  7743. {{ s.student }}
  7744. </div>
  7745. </div>
  7746. </div>
  7747. <div
  7748. v-if="
  7749. tType &&
  7750. ((tType == 2 && sIsOpen == true) ||
  7751. tType == 1 ||
  7752. tType == 4) &&
  7753. tool.tool.indexOf(52) != -1
  7754. "
  7755. class="worksBox"
  7756. >
  7757. <div
  7758. class="zuoyeYulan"
  7759. v-if="
  7760. worksStudent.length && worksStudent[toolIndex].length > 0
  7761. "
  7762. >
  7763. <div class="worksTop">
  7764. <div>作业预览</div>
  7765. <div
  7766. class="corOpen"
  7767. @click="contract(toolIndex)"
  7768. v-if="
  7769. worksStudent[toolIndex].length > 6 &&
  7770. isCloseList[toolIndex].isClose == 0
  7771. "
  7772. >
  7773. 收缩
  7774. </div>
  7775. <div
  7776. class="corOpen"
  7777. @click="contract(toolIndex)"
  7778. v-if="isCloseList[toolIndex].isClose == 1"
  7779. >
  7780. 展开
  7781. </div>
  7782. </div>
  7783. </div>
  7784. <div
  7785. class="worksDetailBox"
  7786. v-if="
  7787. worksStudent.length && worksStudent[toolIndex].length > 0
  7788. "
  7789. >
  7790. <div
  7791. class="works"
  7792. style="
  7793. width: 200px;
  7794. height: 140px;
  7795. margin: 10px 10px 10px 0;
  7796. border-radius: 15px;
  7797. box-shadow: 0 0 6px 1px #dfdada;
  7798. "
  7799. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7800. ? worksStudent[toolIndex]
  7801. : worksStudent[toolIndex].slice(0, 6)"
  7802. :key="wIndex"
  7803. :class="w.type == 1 ? 'isTypeOne' : ''"
  7804. >
  7805. <div class="workImg">
  7806. <img :src="word" @click="openWord(w)" alt />
  7807. <!-- @click="openFile(w.works)" -->
  7808. <div
  7809. class="answerScore"
  7810. v-if="w.score"
  7811. @click.stop="openScore(w)"
  7812. :class="{
  7813. rightW:
  7814. w.userid == userid ||
  7815. tType == 1 ||
  7816. tType == 4 ||
  7817. w.ateacher == userid,
  7818. }"
  7819. >
  7820. {{ JSON.parse(w.score).wScore }}分
  7821. </div>
  7822. <div
  7823. class="answerScore"
  7824. @click.stop="openScore(w)"
  7825. v-else-if="courseDetail.userid == userid"
  7826. :class="{
  7827. rightW:
  7828. w.userid == userid ||
  7829. tType == 1 ||
  7830. tType == 4 ||
  7831. w.ateacher == userid,
  7832. }"
  7833. >
  7834. 评分
  7835. </div>
  7836. <img
  7837. class="deleteImg"
  7838. src="../../assets/deleteworks.png"
  7839. v-if="w.userid == userid || tType == 1 || tType == 4"
  7840. @click.stop="deleteWorks(w.wid)"
  7841. alt
  7842. />
  7843. </div>
  7844. <div class="comment" style="min-width: 200px">
  7845. <div class="worksName">
  7846. <div>{{ w.sName }}</div>
  7847. </div>
  7848. <div class="commentList">
  7849. <div class="commentList">
  7850. <div
  7851. class="commentImg"
  7852. @click="
  7853. isLikes(w.wid, userid, 1, null, w.isLikes)
  7854. "
  7855. >
  7856. <img
  7857. :src="w.isLikes == true ? likes : noLikes"
  7858. alt=""
  7859. />
  7860. </div>
  7861. <div>{{ w.likesCount }}</div>
  7862. </div>
  7863. <div class="commentList" style="margin-right: 15px">
  7864. <div
  7865. class="commentImg"
  7866. @click="commentOther(w, toolIndex, wIndex)"
  7867. >
  7868. <img
  7869. src="../../assets/icon/comment/comment.png"
  7870. alt=""
  7871. />
  7872. </div>
  7873. <div>{{ w.commentCount }}</div>
  7874. </div>
  7875. </div>
  7876. </div>
  7877. </div>
  7878. </div>
  7879. <div class="noWorksS">
  7880. <div
  7881. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7882. :key="sIndex"
  7883. class="noWorksName"
  7884. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7885. :class="{ isWork: s.type == '2' }"
  7886. >
  7887. {{ s.student }}
  7888. </div>
  7889. </div>
  7890. </div>
  7891. </div>
  7892. </div>
  7893. <div class="vedioBox" style="margin-top: 10px" v-if="false">
  7894. <div
  7895. class="queTop"
  7896. style="
  7897. font-size: 20px;
  7898. padding: 15px 0 15px 30px;
  7899. font-weight: bold;
  7900. "
  7901. >
  7902. 评一评
  7903. </div>
  7904. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7905. <div class="elist_input">
  7906. <div
  7907. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7908. .chapterInfo[0].taskJson[taskCount].eList"
  7909. :key="eIndex"
  7910. class="elist_input_box"
  7911. >
  7912. <div style="width: 95%">
  7913. <div
  7914. style="
  7915. display: flex;
  7916. flex-direction: row;
  7917. flex-wrap: nowrap;
  7918. align-items: center;
  7919. "
  7920. >
  7921. <div style="max-width: calc(100% - 285px)">
  7922. <span>{{ eItem.value }}</span>
  7923. </div>
  7924. <div
  7925. style="
  7926. padding-left: 25px;
  7927. display: flex;
  7928. flex-direction: row;
  7929. align-items: center;
  7930. "
  7931. >
  7932. <el-rate
  7933. v-model="eItem.score"
  7934. :colors="colors"
  7935. disabled
  7936. ></el-rate>
  7937. </div>
  7938. </div>
  7939. <div class="elist_inptu_text" style="padding-left: 10px">
  7940. <span v-if="eItem.detail != ''">{{
  7941. eItem.detail
  7942. }}</span>
  7943. <span v-else style="color: #b2b1b3; font-size: 14px"
  7944. >暂无描述...</span
  7945. >
  7946. </div>
  7947. </div>
  7948. </div>
  7949. </div>
  7950. <div
  7951. v-if="evalua"
  7952. style="
  7953. border: 1px solid #e5e5e5;
  7954. max-width: 650px;
  7955. width: 100%;
  7956. margin-top: 20px;
  7957. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7958. "
  7959. >
  7960. <div class="e_add_top">
  7961. <div class="e_add_title">
  7962. <span>目标管理名称</span>
  7963. <span>{{ eTitle }}</span>
  7964. <img
  7965. src="../../assets/line.png"
  7966. class="cru_line"
  7967. style="
  7968. width: 125px;
  7969. height: 20px;
  7970. bottom: -10px;
  7971. left: 120px;
  7972. "
  7973. />
  7974. <!-- <el-input
  7975. v-model="eTitle"
  7976. placeholder="请输入名称"
  7977. @change="setMindData"
  7978. ></el-input>-->
  7979. </div>
  7980. </div>
  7981. <div class="e_add_content">
  7982. <div class="e_add_list_pbox">
  7983. <div class="e_add_list_pbox_title">
  7984. <span class="type_title">切换模式</span>
  7985. <div class="type_content">
  7986. <span
  7987. :class="{ active: typeMode == 1 }"
  7988. @click="typeMode = 1"
  7989. >目标树</span
  7990. >
  7991. <span
  7992. :class="{ active: typeMode == 2 }"
  7993. @click="typeMode = 2"
  7994. >目标罗盘</span
  7995. >
  7996. <span
  7997. :class="{ active: typeMode == 3 }"
  7998. @click="typeMode = 3"
  7999. >目标看板</span
  8000. >
  8001. </div>
  8002. </div>
  8003. <div class="e_add_list_pbox_content">
  8004. <Mind
  8005. :showBar="false"
  8006. :mindData="data"
  8007. style="width: 100%"
  8008. v-show="typeMode == 1"
  8009. ></Mind>
  8010. <Sunburst
  8011. :Josn="eJson"
  8012. :num="eJSONNum"
  8013. style="width: 100%"
  8014. v-if="typeMode == 2"
  8015. ></Sunburst>
  8016. <SeeBoard
  8017. :Josn="eJson"
  8018. :num="eJSONNum"
  8019. :ename="eTitle"
  8020. style="width: 100%"
  8021. v-if="typeMode == 3"
  8022. >
  8023. </SeeBoard>
  8024. </div>
  8025. </div>
  8026. </div>
  8027. </div>
  8028. </div>
  8029. </div>
  8030. </div>
  8031. <div
  8032. class="vedioBox"
  8033. style="margin-top: 10px"
  8034. :style="{
  8035. borderRadius:
  8036. !(
  8037. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8038. .toolChoose[0].tool &&
  8039. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8040. .toolChoose[0].tool.length > 0
  8041. ) &&
  8042. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8043. .taskDetail == '' &&
  8044. vChapterData[taskCount].length == 0 &&
  8045. fileC[taskCount].length == 0
  8046. ? '0 0 20px 20px'
  8047. : '20px',
  8048. }"
  8049. v-if="
  8050. courseDetail.userid == userid ||
  8051. (courseDetail.course_teacher &&
  8052. courseDetail.course_teacher.indexOf(userid) != -1)
  8053. "
  8054. >
  8055. <div
  8056. class="queTop"
  8057. @click="isClose = !isClose"
  8058. style="padding: 15px 0 15px 37px; justify-content: space-between"
  8059. >
  8060. <div class="queTopTitle">新增工具</div>
  8061. <div class="queTopRight">
  8062. <div class="queTopClose" v-if="isClose == 0">
  8063. 展开
  8064. <div class="closeImg">
  8065. <img src="../../assets/icon/newIcon/close.png" alt="" />
  8066. </div>
  8067. </div>
  8068. <div class="queTopClose" v-if="isClose == 1">
  8069. 收缩
  8070. <div class="openImg">
  8071. <img src="../../assets/icon/newIcon/open.png" alt="" />
  8072. </div>
  8073. </div>
  8074. <el-button
  8075. style="margin: 0 30px 0 auto"
  8076. type="primary"
  8077. size="small"
  8078. v-if="isClose == 1 && checktoolArray.length > 0"
  8079. @click.stop="addToolChoose"
  8080. >确定</el-button
  8081. >
  8082. </div>
  8083. </div>
  8084. <div
  8085. class="tool_work_box"
  8086. :style="isClose == 0 ? 'display:none' : 'display:block'"
  8087. >
  8088. <div class="tool_box">
  8089. <div class="tool_type_box">
  8090. <div class="chooseWho">
  8091. <div
  8092. :class="toolType == 0 ? 'isChooseActive' : ''"
  8093. @click="(toolType = 0), $forceUpdate()"
  8094. >
  8095. 互动类
  8096. </div>
  8097. <div
  8098. :class="toolType == 1 ? 'isChooseActive' : ''"
  8099. @click="(toolType = 1), $forceUpdate()"
  8100. >
  8101. 思维类
  8102. </div>
  8103. <!-- <div
  8104. :class="toolType == 6 ? 'isChooseActive' : ''"
  8105. @click="(toolType = 6), $forceUpdate()"
  8106. >
  8107. 协作类
  8108. </div> -->
  8109. <div
  8110. :class="toolType == 2 ? 'isChooseActive' : ''"
  8111. @click="(toolType = 2), $forceUpdate()"
  8112. >
  8113. 测评类
  8114. </div>
  8115. <!-- <div
  8116. :class="toolType == 7 ? 'isChooseActive' : ''"
  8117. @click="(toolType = 7), $forceUpdate()"
  8118. >
  8119. 评价类
  8120. </div> -->
  8121. <div
  8122. :class="toolType == 3 ? 'isChooseActive' : ''"
  8123. @click="(toolType = 3), $forceUpdate()"
  8124. >
  8125. 编程类
  8126. </div>
  8127. <div
  8128. :class="toolType == 5 ? 'isChooseActive' : ''"
  8129. @click="(toolType = 5), $forceUpdate()"
  8130. >
  8131. 学科类
  8132. </div>
  8133. <!-- <div :class="toolType == 5 ? 'isChooseActive' : ''
  8134. " @click="(toolType = 5), $forceUpdate()">
  8135. 学科类
  8136. </div>
  8137. <div :class="toolType == 4 ? 'isChooseActive' : ''
  8138. " @click="(toolType = 4), $forceUpdate()">
  8139. 其他
  8140. </div> -->
  8141. </div>
  8142. </div>
  8143. <div>
  8144. <div class="toolSort" v-if="toolType == 0">
  8145. <div class="tool">
  8146. <div class="whiteBIcon" @click="addTools2(10)">
  8147. <img
  8148. src="../../assets/icon/thirdToolList/time.png"
  8149. alt
  8150. />
  8151. <div style="margin: 5px 0">倒计时</div>
  8152. </div>
  8153. <div class="check" @click="addTools2(10)">
  8154. <img
  8155. src="../../assets/icon/checkNo.png"
  8156. alt
  8157. v-if="checktoolArray.indexOf(10) == -1"
  8158. />
  8159. <div class="checkDiv" v-else>
  8160. <img src="../../assets/icon/checkedIs.png" alt /><span
  8161. >已选择</span
  8162. >
  8163. </div>
  8164. </div>
  8165. </div>
  8166. <div class="tool">
  8167. <div class="whiteBIcon" @click="addTools2(65)">
  8168. <img
  8169. src="../../assets/icon/firstToolList/pickPeople.png"
  8170. alt
  8171. />
  8172. <div style="margin: 5px 0">挑人</div>
  8173. </div>
  8174. <div class="check" @click="addTools2(65)">
  8175. <img
  8176. src="../../assets/icon/checkNo.png"
  8177. alt
  8178. v-if="checktoolArray.indexOf(65) == -1"
  8179. />
  8180. <div class="checkDiv" v-else>
  8181. <img src="../../assets/icon/checkedIs.png" alt /><span
  8182. >已选择</span
  8183. >
  8184. </div>
  8185. </div>
  8186. </div>
  8187. </div>
  8188. <div class="toolSort" v-if="toolType == 1">
  8189. <div class="tool">
  8190. <div class="whiteBIcon" @click="addTools2(7)">
  8191. <img
  8192. src="../../assets/icon/secondToolList/mindNetwork.png"
  8193. alt
  8194. />
  8195. <div style="margin: 5px 0">思维网格</div>
  8196. </div>
  8197. <div class="check" @click="addTools2(7)">
  8198. <img
  8199. src="../../assets/icon/checkNo.png"
  8200. alt
  8201. v-if="checktoolArray.indexOf(7) == -1"
  8202. />
  8203. <div class="checkDiv" v-else>
  8204. <img src="../../assets/icon/checkedIs.png" alt /><span
  8205. >已选择</span
  8206. >
  8207. </div>
  8208. </div>
  8209. </div>
  8210. <div class="tool">
  8211. <div class="whiteBIcon" @click="addTools2(1)">
  8212. <img
  8213. src="../../assets/icon/secondToolList/whiteBoard.png"
  8214. alt
  8215. />
  8216. <div style="margin: 5px 0">电子白板</div>
  8217. </div>
  8218. <div class="check" @click="addTools2(1)">
  8219. <img
  8220. src="../../assets/icon/checkNo.png"
  8221. alt
  8222. v-if="checktoolArray.indexOf(1) == -1"
  8223. />
  8224. <div class="checkDiv" v-else>
  8225. <img src="../../assets/icon/checkedIs.png" alt /><span
  8226. >已选择</span
  8227. >
  8228. </div>
  8229. </div>
  8230. </div>
  8231. <div class="tool">
  8232. <div class="whiteBIcon" @click="addTools2(52)">
  8233. <img
  8234. src="../../assets/icon/fourthToolList/text.png"
  8235. alt
  8236. />
  8237. <div style="margin: 5px 0">文档</div>
  8238. </div>
  8239. <div class="check" @click="addTools2(52)">
  8240. <img
  8241. src="../../assets/icon/checkNo.png"
  8242. alt
  8243. v-if="checktoolArray.indexOf(52) == -1"
  8244. />
  8245. <div class="checkDiv" v-else>
  8246. <img src="../../assets/icon/checkedIs.png" alt /><span
  8247. >已选择</span
  8248. >
  8249. </div>
  8250. </div>
  8251. </div>
  8252. <div class="tool">
  8253. <div class="whiteBIcon" @click="addTools2(3)">
  8254. <img
  8255. src="../../assets/icon/secondToolList/mindMapping.png"
  8256. alt
  8257. />
  8258. <div style="margin: 5px 0">思维导图</div>
  8259. </div>
  8260. <div class="check" @click="addTools2(3)">
  8261. <img
  8262. src="../../assets/icon/checkNo.png"
  8263. alt
  8264. v-if="checktoolArray.indexOf(3) == -1"
  8265. />
  8266. <div class="checkDiv" v-else>
  8267. <img src="../../assets/icon/checkedIs.png" alt /><span
  8268. >已选择</span
  8269. >
  8270. </div>
  8271. </div>
  8272. </div>
  8273. <div class="tool">
  8274. <div class="whiteBIcon" @click="addTools2(48)">
  8275. <img
  8276. src="../../assets/icon/fourthToolList/table.png"
  8277. alt
  8278. />
  8279. <div style="margin: 5px 0">表格</div>
  8280. </div>
  8281. <div class="check" @click="addTools2(48)">
  8282. <img
  8283. src="../../assets/icon/checkNo.png"
  8284. alt
  8285. v-if="checktoolArray.indexOf(48) == -1"
  8286. />
  8287. <div class="checkDiv" v-else>
  8288. <img src="../../assets/icon/checkedIs.png" alt /><span
  8289. >已选择</span
  8290. >
  8291. </div>
  8292. </div>
  8293. </div>
  8294. </div>
  8295. <div class="toolSort" v-if="toolType == 6">
  8296. <div v-show="tooC == 49">
  8297. <img
  8298. @click="addTools(tooC, toolIndex, taskCount)"
  8299. src="../../assets/icon/fourthToolList/group.png"
  8300. alt
  8301. />
  8302. <div style="margin: 5px 0">学生分组</div>
  8303. </div>
  8304. </div>
  8305. <div class="toolSort" v-if="toolType == 2">
  8306. <div class="tool">
  8307. <div class="whiteBIcon" @click="addTools2(16)">
  8308. <img
  8309. src="../../assets/icon/thirdToolList/work.png"
  8310. alt
  8311. />
  8312. <div style="margin: 5px 0">作业提交</div>
  8313. </div>
  8314. <div class="check" @click="addTools2(16)">
  8315. <img
  8316. src="../../assets/icon/checkNo.png"
  8317. alt
  8318. v-if="checktoolArray.indexOf(16) == -1"
  8319. />
  8320. <div class="checkDiv" v-else>
  8321. <img src="../../assets/icon/checkedIs.png" alt /><span
  8322. >已选择</span
  8323. >
  8324. </div>
  8325. </div>
  8326. </div>
  8327. <div class="tool">
  8328. <div class="whiteBIcon" @click="addTools2(50)">
  8329. <img
  8330. src="../../assets/icon/thirdToolList/plwork.png"
  8331. alt
  8332. />
  8333. <div style="margin: 5px 0">批量上传</div>
  8334. </div>
  8335. <div class="check" @click="addTools2(50)">
  8336. <img
  8337. src="../../assets/icon/checkNo.png"
  8338. alt
  8339. v-if="checktoolArray.indexOf(50) == -1"
  8340. />
  8341. <div class="checkDiv" v-else>
  8342. <img src="../../assets/icon/checkedIs.png" alt /><span
  8343. >已选择</span
  8344. >
  8345. </div>
  8346. </div>
  8347. </div>
  8348. </div>
  8349. <div class="toolSort" v-if="toolType == 3">
  8350. <div class="tool">
  8351. <div class="whiteBIcon" @click="addTools2(18)">
  8352. <img
  8353. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8354. alt
  8355. />
  8356. <div style="margin: 5px 0">训练平台</div>
  8357. </div>
  8358. <div class="check" @click="addTools2(18)">
  8359. <img
  8360. src="../../assets/icon/checkNo.png"
  8361. alt
  8362. v-if="checktoolArray.indexOf(18) == -1"
  8363. />
  8364. <div class="checkDiv" v-else>
  8365. <img src="../../assets/icon/checkedIs.png" alt /><span
  8366. >已选择</span
  8367. >
  8368. </div>
  8369. </div>
  8370. </div>
  8371. <div class="tool">
  8372. <div class="whiteBIcon" @click="addTools2(21)">
  8373. <img
  8374. src="../../assets/icon/fourthToolList/program.png"
  8375. alt
  8376. />
  8377. <div style="margin: 5px 0">AIoT Blockly</div>
  8378. </div>
  8379. <div class="check" @click="addTools2(21)">
  8380. <img
  8381. src="../../assets/icon/checkNo.png"
  8382. alt
  8383. v-if="checktoolArray.indexOf(21) == -1"
  8384. />
  8385. <div class="checkDiv" v-else>
  8386. <img src="../../assets/icon/checkedIs.png" alt /><span
  8387. >已选择</span
  8388. >
  8389. </div>
  8390. </div>
  8391. </div>
  8392. <!-- <div class="tool">
  8393. <div class="whiteBIcon" @click="addTools2(22)">
  8394. <img
  8395. src="../../assets/icon/fourthToolList/AIprogram2.png"
  8396. alt
  8397. />
  8398. <div style="margin: 5px 0">AI体验</div>
  8399. </div>
  8400. <div class="check" @click="addTools2(22)">
  8401. <img
  8402. src="../../assets/icon/checkNo.png"
  8403. alt
  8404. v-if="checktoolArray.indexOf(22) == -1"
  8405. />
  8406. <div class="checkDiv" v-else>
  8407. <img
  8408. src="../../assets/icon/checkedIs.png"
  8409. alt
  8410. /><span>已选择</span>
  8411. </div>
  8412. </div>
  8413. </div> -->
  8414. <div class="tool">
  8415. <div class="whiteBIcon" @click="addTools2(23)">
  8416. <img
  8417. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8418. alt
  8419. />
  8420. <div style="margin: 5px 0">AI Python</div>
  8421. </div>
  8422. <div class="check" @click="addTools2(23)">
  8423. <img
  8424. src="../../assets/icon/checkNo.png"
  8425. alt
  8426. v-if="checktoolArray.indexOf(23) == -1"
  8427. />
  8428. <div class="checkDiv" v-else>
  8429. <img src="../../assets/icon/checkedIs.png" alt /><span
  8430. >已选择</span
  8431. >
  8432. </div>
  8433. </div>
  8434. </div>
  8435. <div class="tool">
  8436. <div class="whiteBIcon" @click="addTools2(24)">
  8437. <img
  8438. src="../../assets/icon/fourthToolList/AIprogram.png"
  8439. alt
  8440. />
  8441. <div style="margin: 5px 0">AI Blockly</div>
  8442. </div>
  8443. <div class="check" @click="addTools2(24)">
  8444. <img
  8445. src="../../assets/icon/checkNo.png"
  8446. alt
  8447. v-if="checktoolArray.indexOf(24) == -1"
  8448. />
  8449. <div class="checkDiv" v-else>
  8450. <img src="../../assets/icon/checkedIs.png" alt /><span
  8451. >已选择</span
  8452. >
  8453. </div>
  8454. </div>
  8455. </div>
  8456. <div class="tool">
  8457. <div class="whiteBIcon" @click="addTools2(32)">
  8458. <img
  8459. src="../../assets/icon/thirdToolList/code.png"
  8460. alt
  8461. />
  8462. <div style="margin: 5px 0">源码编辑</div>
  8463. </div>
  8464. <div class="check" @click="addTools2(32)">
  8465. <img
  8466. src="../../assets/icon/checkNo.png"
  8467. alt
  8468. v-if="checktoolArray.indexOf(32) == -1"
  8469. />
  8470. <div class="checkDiv" v-else>
  8471. <img src="../../assets/icon/checkedIs.png" alt /><span
  8472. >已选择</span
  8473. >
  8474. </div>
  8475. </div>
  8476. </div>
  8477. <div class="tool">
  8478. <div class="whiteBIcon" @click="addTools2(57)">
  8479. <img
  8480. src="../../assets/icon/fourthToolList/cocopi.png"
  8481. alt
  8482. />
  8483. <div style="margin: 5px 0">CocoPi</div>
  8484. </div>
  8485. <div class="check" @click="addTools2(57)">
  8486. <img
  8487. src="../../assets/icon/checkNo.png"
  8488. alt
  8489. v-if="checktoolArray.indexOf(57) == -1"
  8490. />
  8491. <div class="checkDiv" v-else>
  8492. <img src="../../assets/icon/checkedIs.png" alt /><span
  8493. >已选择</span
  8494. >
  8495. </div>
  8496. </div>
  8497. </div>
  8498. <div class="tool">
  8499. <div class="whiteBIcon" @click="addTools2(63)">
  8500. <img
  8501. src="../../assets/icon/fourthToolList/Wood.png"
  8502. alt
  8503. />
  8504. <div style="margin: 5px 0">海龟编程</div>
  8505. </div>
  8506. <div class="check" @click="addTools2(63)">
  8507. <img
  8508. src="../../assets/icon/checkNo.png"
  8509. alt
  8510. v-if="checktoolArray.indexOf(63) == -1"
  8511. />
  8512. <div class="checkDiv" v-else>
  8513. <img src="../../assets/icon/checkedIs.png" alt /><span
  8514. >已选择</span
  8515. >
  8516. </div>
  8517. </div>
  8518. </div>
  8519. </div>
  8520. <div class="toolSort" v-if="toolType == 7">
  8521. <div class="tool">
  8522. <div class="whiteBIcon" @click="addTools2(40)">
  8523. <img
  8524. src="../../assets/icon/secondToolList/eval.png"
  8525. alt
  8526. />
  8527. <div style="margin: 5px 0">个人评价</div>
  8528. </div>
  8529. <div class="check" @click="addTools2(40)">
  8530. <img
  8531. src="../../assets/icon/checkNo.png"
  8532. alt
  8533. v-if="checktoolArray.indexOf(40) == -1"
  8534. />
  8535. <div class="checkDiv" v-else>
  8536. <img src="../../assets/icon/checkedIs.png" alt /><span
  8537. >已选择</span
  8538. >
  8539. </div>
  8540. </div>
  8541. </div>
  8542. </div>
  8543. <div class="toolSort" v-if="toolType == 5">
  8544. <div class="tool">
  8545. <div class="whiteBIcon" @click="addTools2(28)">
  8546. <img
  8547. src="../../assets/icon/secondToolList/translation.png"
  8548. alt
  8549. />
  8550. <div style="margin: 5px 0">翻译</div>
  8551. </div>
  8552. <div class="check" @click="addTools2(28)">
  8553. <img
  8554. src="../../assets/icon/checkNo.png"
  8555. alt
  8556. v-if="checktoolArray.indexOf(28) == -1"
  8557. />
  8558. <div class="checkDiv" v-else>
  8559. <img src="../../assets/icon/checkedIs.png" alt /><span
  8560. >已选择</span
  8561. >
  8562. </div>
  8563. </div>
  8564. </div>
  8565. <div class="tool">
  8566. <div class="whiteBIcon" @click="addTools2(31)">
  8567. <img
  8568. src="../../assets/icon/secondToolList/networkPanel.png"
  8569. alt
  8570. />
  8571. <div style="margin: 5px 0">数字画板</div>
  8572. </div>
  8573. <div class="check" @click="addTools2(31)">
  8574. <img
  8575. src="../../assets/icon/checkNo.png"
  8576. alt
  8577. v-if="checktoolArray.indexOf(31) == -1"
  8578. />
  8579. <div class="checkDiv" v-else>
  8580. <img src="../../assets/icon/checkedIs.png" alt /><span
  8581. >已选择</span
  8582. >
  8583. </div>
  8584. </div>
  8585. </div>
  8586. <div class="tool">
  8587. <div class="whiteBIcon" @click="addTools2(39)">
  8588. <img
  8589. src="../../assets/icon/secondToolList/GeoGebra.png"
  8590. alt
  8591. />
  8592. <div style="margin: 5px 0">GeoGebra</div>
  8593. </div>
  8594. <div class="check" @click="addTools2(39)">
  8595. <img
  8596. src="../../assets/icon/checkNo.png"
  8597. alt
  8598. v-if="checktoolArray.indexOf(39) == -1"
  8599. />
  8600. <div class="checkDiv" v-else>
  8601. <img src="../../assets/icon/checkedIs.png" alt /><span
  8602. >已选择</span
  8603. >
  8604. </div>
  8605. </div>
  8606. </div>
  8607. <div class="tool">
  8608. <div class="whiteBIcon" @click="addTools2(66)">
  8609. <img
  8610. src="../../assets/icon/secondToolList/formulaEdi.png"
  8611. alt
  8612. />
  8613. <div style="margin: 5px 0">公式编辑</div>
  8614. </div>
  8615. <div class="check" @click="addTools2(66)">
  8616. <img
  8617. src="../../assets/icon/checkNo.png"
  8618. alt
  8619. v-if="checktoolArray.indexOf(66) == -1"
  8620. />
  8621. <div class="checkDiv" v-else>
  8622. <img src="../../assets/icon/checkedIs.png" alt /><span
  8623. >已选择</span
  8624. >
  8625. </div>
  8626. </div>
  8627. </div>
  8628. <div class="tool">
  8629. <div class="whiteBIcon" @click="addTools2(67)">
  8630. <img
  8631. src="../../assets/icon/secondToolList/molStr.png"
  8632. alt
  8633. />
  8634. <div style="margin: 5px 0">分子结构</div>
  8635. </div>
  8636. <div class="check" @click="addTools2(67)">
  8637. <img
  8638. src="../../assets/icon/checkNo.png"
  8639. alt
  8640. v-if="checktoolArray.indexOf(67) == -1"
  8641. />
  8642. <div class="checkDiv" v-else>
  8643. <img src="../../assets/icon/checkedIs.png" alt /><span
  8644. >已选择</span
  8645. >
  8646. </div>
  8647. </div>
  8648. </div>
  8649. <div class="tool">
  8650. <div class="whiteBIcon" @click="addTools2(68)">
  8651. <img
  8652. src="../../assets/icon/secondToolList/timeAxis.png"
  8653. alt
  8654. />
  8655. <div style="margin: 5px 0">时间轴</div>
  8656. </div>
  8657. <div class="check" @click="addTools2(68)">
  8658. <img
  8659. src="../../assets/icon/checkNo.png"
  8660. alt
  8661. v-if="checktoolArray.indexOf(68) == -1"
  8662. />
  8663. <div class="checkDiv" v-else>
  8664. <img src="../../assets/icon/checkedIs.png" alt /><span
  8665. >已选择</span
  8666. >
  8667. </div>
  8668. </div>
  8669. </div>
  8670. </div>
  8671. <div class="toolSort" v-if="toolType == 4">
  8672. <div class="tool">
  8673. <div class="whiteBIcon" @click="addTools2(26)">
  8674. <img
  8675. src="../../assets/icon/thirdToolList/courseDesign.png"
  8676. alt
  8677. />
  8678. <div style="margin: 5px 0">课程设计</div>
  8679. </div>
  8680. <div class="check" @click="addTools2(26)">
  8681. <img
  8682. src="../../assets/icon/checkNo.png"
  8683. alt
  8684. v-if="checktoolArray.indexOf(26) == -1"
  8685. />
  8686. <div class="checkDiv" v-else>
  8687. <img src="../../assets/icon/checkedIs.png" alt /><span
  8688. >已选择</span
  8689. >
  8690. </div>
  8691. </div>
  8692. </div>
  8693. <div class="tool">
  8694. <div class="whiteBIcon" @click="addTools2(25)">
  8695. <img
  8696. src="../../assets/icon/thirdToolList/evalua.png"
  8697. alt
  8698. />
  8699. <div style="margin: 5px 0">目标管理</div>
  8700. </div>
  8701. <div class="check" @click="addTools2(25)">
  8702. <img
  8703. src="../../assets/icon/checkNo.png"
  8704. alt
  8705. v-if="checktoolArray.indexOf(25) == -1"
  8706. />
  8707. <div class="checkDiv" v-else>
  8708. <img src="../../assets/icon/checkedIs.png" alt /><span
  8709. >已选择</span
  8710. >
  8711. </div>
  8712. </div>
  8713. </div>
  8714. </div>
  8715. </div>
  8716. </div>
  8717. </div>
  8718. </div>
  8719. </div>
  8720. <el-dialog
  8721. title="作业提交"
  8722. :visible.sync="dialogVisible"
  8723. :append-to-body="true"
  8724. width="500px"
  8725. :before-close="handleClose"
  8726. class="dialog_change"
  8727. >
  8728. <div class="marginT">
  8729. <div>上传文件</div>
  8730. <div
  8731. class="chapter_add"
  8732. @click="addImg($event)"
  8733. v-if="studyJuri[0].cover.length == 0"
  8734. >
  8735. <div class="up_photo">
  8736. <img src="../../assets/icon/uploadImg.png" alt />
  8737. </div>
  8738. <!-- <input
  8739. type="file"
  8740. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8741. style="display: none"
  8742. @change="beforeUpload1($event, 1)"
  8743. /> -->
  8744. <input
  8745. type="file"
  8746. accept="*"
  8747. style="display: none"
  8748. @change="beforeUpload1($event, 1)"
  8749. />
  8750. <!-- <input
  8751. type="file"
  8752. accept="image/*"
  8753. capture="camera"
  8754. style="display: none"
  8755. @change="beforeUpload1($event, 1)"
  8756. /> -->
  8757. </div>
  8758. <div
  8759. class="chapter_add"
  8760. style="
  8761. display: flex;
  8762. width: 100%;
  8763. flex-direction: row;
  8764. flex-wrap: wrap;
  8765. justify-content: flex-start;
  8766. padding: 15px 0;
  8767. "
  8768. v-if="studyJuri[0].cover.length > 0"
  8769. >
  8770. <div class="upCover">
  8771. <img
  8772. :src="studyJuri[0].cover[0].url"
  8773. alt
  8774. v-if="fileType == 0"
  8775. />
  8776. <img :src="word" alt v-else-if="fileType == 1" />
  8777. <img :src="video" alt v-else-if="fileType == 2" />
  8778. <img :src="word2" alt v-else-if="fileType == 3" />
  8779. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8780. <div class="deleteWord" @click="clean(1)">
  8781. <img src="../../assets/icon/deleteWorks.png" alt />
  8782. </div>
  8783. </div>
  8784. </div>
  8785. </div>
  8786. <div
  8787. class="upload_send"
  8788. @click="addCourseWorks(taskCount)"
  8789. v-if="!proVisible"
  8790. >
  8791. 提交
  8792. </div>
  8793. </el-dialog>
  8794. </div>
  8795. </div>
  8796. <div
  8797. class="pButton"
  8798. @click="(pzDialog = true), selectPz()"
  8799. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8800. >
  8801. <!-- 批 -->
  8802. <img src="../../assets/pzBtn2.png" style="width: 25px" alt="" />
  8803. </div>
  8804. <div v-if="pzDialog == true" class="newDialogCss">
  8805. <div class="pzTop2">
  8806. <!-- <div>批注</div>
  8807. <div @click="pzDialog = false">
  8808. <img src="../../assets/close1.png" alt="" />
  8809. </div> -->
  8810. <div class="checkbox">
  8811. <div class="check" style="font-size: 25px">评课笔记</div>
  8812. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  8813. <el-option label="时间降序" :value="1"></el-option>
  8814. <el-option label="时间升序" :value="2"></el-option>
  8815. <el-option label="我的评课" :value="3"></el-option>
  8816. </el-select>
  8817. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8818. </div>
  8819. </div>
  8820. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  8821. <div class="pzListBox" v-if="pzList && pzList.length">
  8822. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8823. <div class="pzNavTop">
  8824. <div>批</div>
  8825. <div>
  8826. {{
  8827. pz.username && pz.username.length > 5
  8828. ? pz.username.substring(0, 5) + "..."
  8829. : pz.username
  8830. }}的批注
  8831. </div>
  8832. <div
  8833. class="pzDelete"
  8834. v-if="pz.userid == userid"
  8835. @click="deletePz(pz.id)"
  8836. >
  8837. 删除
  8838. </div>
  8839. </div>
  8840. <div
  8841. @click="checkImg(getImgList(pz.content))"
  8842. class="pzContent cont"
  8843. v-html="pz.content"
  8844. v-if="pz.type == '1'"
  8845. ></div>
  8846. <div class="pzContent" v-if="pz.type == '2'">
  8847. <audio :src="pz.content" controls="controls" ref="audio">
  8848. Your browser does not support the audio element.
  8849. </audio>
  8850. </div>
  8851. <div class="pzContent" v-if="pz.type == '3'">
  8852. <img
  8853. :src="pz.content"
  8854. style="width: 90%; margin: 0 auto; display: block"
  8855. @click="previewImg(pz.content)"
  8856. />
  8857. </div>
  8858. <div class="time">
  8859. {{ pz.time }}
  8860. </div>
  8861. </div>
  8862. </div>
  8863. <div class="noPz" v-else>
  8864. <img src="../../assets/icon/noPz.png" alt="" />
  8865. </div>
  8866. <div class="addPzButton">
  8867. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8868. 添加批注
  8869. </div>
  8870. <!-- <div class="img1">
  8871. <div @click="(addPzDialog = true), (pzType = 2)">
  8872. <img src="../../assets/audio.png" /><span>音频</span>
  8873. </div>
  8874. </div> -->
  8875. </div>
  8876. </div>
  8877. </div>
  8878. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8879. <div class="pzTop">
  8880. <div class="teacherPz">
  8881. <div class="teacherPzImg">
  8882. <img src="../../assets/icon/teacherPz.png" alt="" />
  8883. </div>
  8884. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8885. </div>
  8886. <div @click="addPzDialog = false">
  8887. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8888. </div>
  8889. </div>
  8890. <div class="addPzBox">
  8891. <div class="addPzCheck">
  8892. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8893. >文本</span
  8894. >
  8895. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8896. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8897. >音频</span
  8898. >
  8899. </div>
  8900. <div style="height: calc(100% - 95px)">
  8901. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8902. v-if="pzType == 1"></textarea> -->
  8903. <editor-bar
  8904. class="binfo_input pzConText"
  8905. style="width: 100% !important"
  8906. placeholder="请输入任务描述"
  8907. v-model="pzConText"
  8908. @change="change"
  8909. v-if="pzType == 1"
  8910. ></editor-bar>
  8911. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8912. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8913. <div @click="addImg($event)">
  8914. <el-button type="primary">上传图片</el-button>
  8915. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8916. @change="beforeUpload1($event, 4)" />
  8917. </div>
  8918. </div> -->
  8919. </div>
  8920. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8921. 确定
  8922. </div>
  8923. </div>
  8924. </div>
  8925. <div v-if="proVisible" class="mask">
  8926. <div class="progressBox">
  8927. <!-- <div id="closePro" class="closeCss">
  8928. <img src="../../assets/icon/close.png" alt />
  8929. </div> -->
  8930. <div class="lbox">
  8931. <img src="../../assets/loading.gif" />上传中,请稍后
  8932. </div>
  8933. <div style="margin-bottom: 10px">
  8934. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8935. </div>
  8936. <el-progress
  8937. :text-inside="true"
  8938. :stroke-width="20"
  8939. :percentage="progress"
  8940. style="width: 80%"
  8941. ></el-progress>
  8942. </div>
  8943. </div>
  8944. <div v-if="proVisible2" class="mask">
  8945. <div class="progressBox">
  8946. <div class="lbox">
  8947. <img src="../../assets/loading.gif" />上传中,请稍后
  8948. </div>
  8949. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8950. </div>
  8951. </div>
  8952. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8953. <img width="100%" :src="dialogImageUrl" alt />
  8954. </el-dialog>
  8955. <el-dialog
  8956. :title="noteName != '' ? noteName : '查看问卷'"
  8957. :visible.sync="dialogVisible5"
  8958. :append-to-body="true"
  8959. width="1000px"
  8960. :before-close="handleClose"
  8961. class="dialog_diy dialog_diy3"
  8962. >
  8963. <div>
  8964. <div
  8965. class="a_add_title"
  8966. style="
  8967. display: flex;
  8968. flex-direction: row;
  8969. align-items: center;
  8970. justify-content: center;
  8971. "
  8972. >
  8973. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8974. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8975. </div>
  8976. <div class="a_addBox">
  8977. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8978. 题目内容
  8979. </div>
  8980. <div
  8981. class="a_add_box"
  8982. v-for="(item1, index1) in askJson.askCount"
  8983. :key="index1"
  8984. >
  8985. <div class="a_add_head">
  8986. <div style="display: flex">
  8987. <span class="askIndex"> {{ index1 + 1 }}</span>
  8988. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8989. </div>
  8990. <img
  8991. v-if="askJson.askJson[index1].img"
  8992. :src="askJson.askJson[index1].img"
  8993. style="height: 300px; margin-top: 10px; max-width: 100%"
  8994. />
  8995. </div>
  8996. <div class="a_add_body">
  8997. <div class="a_add_input">
  8998. <el-radio-group
  8999. v-model="radio[index1]"
  9000. v-if="
  9001. askJson.askJson[index1].type == '1' ||
  9002. !askJson.askJson[index1].type
  9003. "
  9004. >
  9005. <el-radio
  9006. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9007. .checkList"
  9008. :key="checkIndex"
  9009. :label="checkIndex"
  9010. :disabled="isAnswer"
  9011. class="redioStyle"
  9012. ><span v-html="item2"></span
  9013. ></el-radio>
  9014. </el-radio-group>
  9015. <el-checkbox-group
  9016. v-model="radio[index1]"
  9017. v-if="askJson.askJson[index1].type == '2'"
  9018. >
  9019. <el-checkbox
  9020. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9021. .checkList"
  9022. :key="checkIndex1"
  9023. :label="checkIndex1"
  9024. :disabled="isAnswer"
  9025. class="redioStyle"
  9026. ><span v-html="item2"></span>
  9027. </el-checkbox>
  9028. </el-checkbox-group>
  9029. </div>
  9030. </div>
  9031. </div>
  9032. </div>
  9033. </div>
  9034. <span slot="footer" class="dialog-footer">
  9035. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9036. >取 消</el-button
  9037. >
  9038. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9039. >确 定</el-button
  9040. >
  9041. </span>
  9042. </el-dialog>
  9043. <el-dialog
  9044. :title="noteName != '' ? noteName : '查看问卷'"
  9045. :visible.sync="dialogVisible5Teacher"
  9046. :append-to-body="true"
  9047. width="1000px"
  9048. :before-close="handleClose"
  9049. class="dialog_diy dialog_diy3"
  9050. >
  9051. <div>
  9052. <div class="w_name">
  9053. 学生姓名:<span>{{ sStudent.student }}</span>
  9054. </div>
  9055. <div
  9056. class="a_add_title"
  9057. style="
  9058. display: flex;
  9059. flex-direction: row;
  9060. align-items: center;
  9061. justify-content: center;
  9062. "
  9063. >
  9064. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9065. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9066. </div>
  9067. <div class="a_addBox">
  9068. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9069. 题目内容
  9070. </div>
  9071. <div
  9072. class="a_add_box"
  9073. v-for="(item1, index1) in askJson.askCount"
  9074. :key="index1"
  9075. >
  9076. <div class="a_add_head">
  9077. <div style="display: flex">
  9078. <span class="askIndex"> {{ index1 + 1 }}</span>
  9079. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9080. </div>
  9081. <img
  9082. v-if="askJson.askJson[index1].img"
  9083. :src="askJson.askJson[index1].img"
  9084. style="height: 300px; margin-top: 10px; max-width: 100%"
  9085. />
  9086. </div>
  9087. <div class="a_add_body">
  9088. <div class="a_add_input">
  9089. <el-radio-group
  9090. v-model="radio[index1]"
  9091. v-if="
  9092. askJson.askJson[index1].type == '1' ||
  9093. !askJson.askJson[index1].type
  9094. "
  9095. >
  9096. <el-radio
  9097. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9098. .checkList"
  9099. :key="checkIndex"
  9100. :label="checkIndex"
  9101. :disabled="isAnswer"
  9102. class="redioStyle"
  9103. ><span v-html="item2"></span
  9104. ></el-radio>
  9105. </el-radio-group>
  9106. <el-checkbox-group
  9107. v-model="radio[index1]"
  9108. v-if="askJson.askJson[index1].type == '2'"
  9109. >
  9110. <el-checkbox
  9111. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9112. .checkList"
  9113. :key="checkIndex1"
  9114. :label="checkIndex1"
  9115. :disabled="isAnswer"
  9116. class="redioStyle"
  9117. ><span v-html="item2"></span>
  9118. </el-checkbox>
  9119. </el-checkbox-group>
  9120. </div>
  9121. </div>
  9122. </div>
  9123. </div>
  9124. </div>
  9125. <span slot="footer" class="dialog-footer">
  9126. <el-button
  9127. @click="dialogVisible5Teacher = false"
  9128. v-show="noteName == ''"
  9129. >取 消</el-button
  9130. >
  9131. <el-button
  9132. type="primary"
  9133. @click="addStudentAskTeacher"
  9134. v-show="noteName == ''"
  9135. >确 定</el-button
  9136. >
  9137. </span>
  9138. </el-dialog>
  9139. <el-dialog
  9140. :title="noteName != '' ? noteName : '查看选择题'"
  9141. :visible.sync="dialogVisibleChoice"
  9142. :append-to-body="true"
  9143. width="1000px"
  9144. :before-close="handleClose"
  9145. class="dialog_diy dialog_diy3"
  9146. >
  9147. <div>
  9148. <div class="a_addBox">
  9149. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9150. 题目内容
  9151. </div>
  9152. <div
  9153. class="a_add_box"
  9154. v-for="(item1, index1) in testJson.testCount"
  9155. :key="index1"
  9156. >
  9157. <div class="a_add_head">
  9158. <div style="display: flex">
  9159. <span class="askIndex"> {{ index1 + 1 }}</span>
  9160. <div
  9161. v-if="testJson.testJson[index1].type == '1'"
  9162. style="margin-right: 5px; min-width: 70px"
  9163. >
  9164. (单选题)
  9165. </div>
  9166. <div
  9167. v-if="testJson.testJson[index1].type == '2'"
  9168. style="margin-right: 5px; min-width: 70px"
  9169. >
  9170. (多选题)
  9171. </div>
  9172. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9173. </div>
  9174. <img
  9175. v-if="testJson.testJson[index1].img"
  9176. :src="testJson.testJson[index1].img"
  9177. style="height: 300px; margin-top: 10px; max-width: 100%"
  9178. />
  9179. </div>
  9180. <div
  9181. class="timuImgBox"
  9182. v-if="
  9183. testJson.testJson[index1].timuList &&
  9184. testJson.testJson[index1].timuList.length
  9185. "
  9186. >
  9187. <div
  9188. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9189. :key="tIndex"
  9190. class="timuImg"
  9191. @click.stop="previewImg(timg.src)"
  9192. >
  9193. <img :src="timg.src" alt="" />
  9194. </div>
  9195. </div>
  9196. <div class="a_add_body">
  9197. <div class="a_add_input">
  9198. <el-radio-group
  9199. v-model="radio[index1]"
  9200. v-if="testJson.testJson[index1].type == '1'"
  9201. >
  9202. <div class="radioBox">
  9203. <el-radio
  9204. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9205. .checkList"
  9206. :key="checkIndex"
  9207. :label="checkIndex"
  9208. :disabled="isAnswer"
  9209. class="redioStyle"
  9210. >
  9211. <div
  9212. style="margin-right: 10px"
  9213. v-if="item2 && item2.imgType && item2.imgType == 1"
  9214. >
  9215. <div class="inImg" @click.stop="previewImg(item2.src)">
  9216. <img :src="item2.src" alt="" />
  9217. </div>
  9218. </div>
  9219. <span v-else v-html="item2"></span>
  9220. </el-radio>
  9221. </div>
  9222. </el-radio-group>
  9223. <el-checkbox-group
  9224. v-model="radio[index1]"
  9225. v-if="testJson.testJson[index1].type == '2'"
  9226. >
  9227. <div class="radioBox">
  9228. <el-checkbox
  9229. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9230. .checkList"
  9231. :key="checkIndex"
  9232. :label="checkIndex"
  9233. :disabled="isAnswer"
  9234. class="redioStyle"
  9235. >
  9236. <div
  9237. style="margin-right: 10px"
  9238. v-if="item2 && item2.imgType && item2.imgType == 1"
  9239. >
  9240. <div class="inImg" @click.stop="previewImg(item2.src)">
  9241. <img :src="item2.src" alt="" />
  9242. </div>
  9243. </div>
  9244. <span v-else v-html="item2"></span>
  9245. </el-checkbox>
  9246. </div>
  9247. </el-checkbox-group>
  9248. </div>
  9249. </div>
  9250. </div>
  9251. </div>
  9252. </div>
  9253. <span slot="footer" class="dialog-footer">
  9254. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9255. >取 消</el-button
  9256. >
  9257. <el-button
  9258. type="primary"
  9259. @click="addStudentTest"
  9260. v-show="noteName == ''"
  9261. >确 定</el-button
  9262. >
  9263. </span>
  9264. </el-dialog>
  9265. <el-dialog
  9266. :title="noteName != '' ? noteName : '查看选择题'"
  9267. :visible.sync="dialogVisibleChoiceTeacher"
  9268. :append-to-body="true"
  9269. width="1000px"
  9270. :before-close="handleClose"
  9271. class="dialog_diy dialog_diy3"
  9272. >
  9273. <div>
  9274. <div class="w_name">
  9275. 学生姓名:<span>{{ sStudent.student }}</span>
  9276. </div>
  9277. <div class="a_addBox">
  9278. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9279. 题目内容
  9280. </div>
  9281. <div
  9282. class="a_add_box"
  9283. v-for="(item1, index1) in testJson.testCount"
  9284. :key="index1"
  9285. >
  9286. <div class="a_add_head">
  9287. <div style="display: flex">
  9288. <span class="askIndex"> {{ index1 + 1 }}</span>
  9289. <div
  9290. v-if="testJson.testJson[index1].type == '1'"
  9291. style="margin-right: 5px; min-width: 70px"
  9292. >
  9293. (单选题)
  9294. </div>
  9295. <div
  9296. v-if="testJson.testJson[index1].type == '2'"
  9297. style="margin-right: 5px; min-width: 70px"
  9298. >
  9299. (多选题)
  9300. </div>
  9301. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9302. </div>
  9303. <img
  9304. v-if="testJson.testJson[index1].img"
  9305. :src="testJson.testJson[index1].img"
  9306. style="height: 300px; margin-top: 10px; max-width: 100%"
  9307. />
  9308. </div>
  9309. <div
  9310. class="timuImgBox"
  9311. v-if="
  9312. testJson.testJson[index1].timuList &&
  9313. testJson.testJson[index1].timuList.length
  9314. "
  9315. >
  9316. <div
  9317. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9318. :key="tIndex"
  9319. class="timuImg"
  9320. @click.stop="previewImg(timg.src)"
  9321. >
  9322. <img :src="timg.src" alt="" />
  9323. </div>
  9324. </div>
  9325. <div class="a_add_body">
  9326. <div class="a_add_input">
  9327. <el-radio-group
  9328. v-model="radio[index1]"
  9329. v-if="testJson.testJson[index1].type == '1'"
  9330. >
  9331. <div class="radioBox">
  9332. <el-radio
  9333. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9334. .checkList"
  9335. :key="checkIndex"
  9336. :label="checkIndex"
  9337. :disabled="isAnswer"
  9338. class="redioStyle"
  9339. >
  9340. <div
  9341. style="margin-right: 10px"
  9342. v-if="item2 && item2.imgType && item2.imgType == 1"
  9343. >
  9344. <div class="inImg" @click.stop="previewImg(item2.src)">
  9345. <img :src="item2.src" alt="" />
  9346. </div>
  9347. </div>
  9348. <span v-else v-html="item2"></span>
  9349. </el-radio>
  9350. </div>
  9351. </el-radio-group>
  9352. <el-checkbox-group
  9353. v-model="radio[index1]"
  9354. v-if="testJson.testJson[index1].type == '2'"
  9355. >
  9356. <div class="radioBox">
  9357. <el-checkbox
  9358. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9359. .checkList"
  9360. :key="checkIndex"
  9361. :label="checkIndex"
  9362. :disabled="isAnswer"
  9363. class="redioStyle"
  9364. >
  9365. <div
  9366. style="margin-right: 10px"
  9367. v-if="item2 && item2.imgType && item2.imgType == 1"
  9368. >
  9369. <div class="inImg" @click.stop="previewImg(item2.src)">
  9370. <img :src="item2.src" alt="" />
  9371. </div>
  9372. </div>
  9373. <span v-else v-html="item2"></span>
  9374. </el-checkbox>
  9375. </div>
  9376. </el-checkbox-group>
  9377. </div>
  9378. </div>
  9379. </div>
  9380. </div>
  9381. </div>
  9382. <span slot="footer" class="dialog-footer">
  9383. <el-button
  9384. @click="dialogVisibleChoiceTeacher = false"
  9385. v-show="noteName == ''"
  9386. >取 消</el-button
  9387. >
  9388. <el-button
  9389. type="primary"
  9390. @click="addStudentTestTeacher"
  9391. v-show="noteName == ''"
  9392. >确 定</el-button
  9393. >
  9394. </span>
  9395. </el-dialog>
  9396. <el-dialog
  9397. title="查看富文本"
  9398. :visible.sync="dialogVisible1"
  9399. :append-to-body="true"
  9400. width="500px"
  9401. :before-close="handleClose"
  9402. class="dialog_diy textCss"
  9403. >
  9404. <el-form style="font-size: 20px">
  9405. <el-form-item label="文本标题" class="textTitle">
  9406. <div style="font-size: 20px">{{ text.name }}</div>
  9407. </el-form-item>
  9408. <div>富文本内容</div>
  9409. <div
  9410. v-html="text.url"
  9411. style="font-size: 18px; padding: 40px 0 0 0"
  9412. ></div>
  9413. </el-form>
  9414. <span slot="footer" class="dialog-footer">
  9415. <el-button type="primary" @click="dialogVisible1 = false"
  9416. >确定</el-button
  9417. >
  9418. </span>
  9419. </el-dialog>
  9420. <el-dialog
  9421. title="文件预览"
  9422. :visible.sync="dialogVisible3"
  9423. width="50%"
  9424. :before-close="handleClose"
  9425. class="dialog_diy"
  9426. :class="{ fullStyle: full }"
  9427. >
  9428. <div slot="title" class="header-title">
  9429. <div style="color: #fff">文件预览</div>
  9430. <div style="position: absolute; top: 19px; right: 50px">
  9431. <img
  9432. src="../../assets/full.png"
  9433. style="height: 16px; cursor: pointer"
  9434. alt=""
  9435. @click="fullTools"
  9436. />
  9437. </div>
  9438. </div>
  9439. <pdf
  9440. v-if="showPDF"
  9441. :pdfUrl="pptImgUrl"
  9442. style="width: 100%; height: 520px; overflow: auto"
  9443. :class="{ fullStyle: full }"
  9444. ></pdf>
  9445. <iframe
  9446. v-else
  9447. :src="pptImgUrl"
  9448. frameborder="0"
  9449. width="100%"
  9450. height="600"
  9451. :class="{ fullStyle: full }"
  9452. ></iframe>
  9453. </el-dialog>
  9454. <el-dialog
  9455. title="文件预览"
  9456. :visible.sync="dialogVisible6"
  9457. width="50%"
  9458. :before-close="handleClose"
  9459. class="dialog_diy"
  9460. >
  9461. <iframe
  9462. :src="pptImgUrl1"
  9463. frameborder="0"
  9464. width="100%"
  9465. height="600"
  9466. ></iframe>
  9467. </el-dialog>
  9468. <el-dialog
  9469. title="提示"
  9470. :visible.sync="dialogVisible4"
  9471. :append-to-body="true"
  9472. width="800px"
  9473. :before-close="handleClose"
  9474. class="dialog_diy notice"
  9475. >
  9476. <div>此功能暂未开放!</div>
  9477. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9478. </el-dialog>
  9479. <el-dialog
  9480. title="问答"
  9481. :visible.sync="answerDialogVisible"
  9482. :append-to-body="true"
  9483. width="800px"
  9484. :before-close="handleClose"
  9485. class="dialog_diy"
  9486. >
  9487. <div>
  9488. <div
  9489. style="
  9490. display: flex;
  9491. flex-wrap: nowrap;
  9492. flex-direction: column;
  9493. position: relative;
  9494. "
  9495. >
  9496. <div class="queTop" style="padding: 20px 0 20px 0">
  9497. <div class="question">
  9498. <img src="../../assets/icon/question.png" alt />
  9499. </div>
  9500. <div class="queTitle">
  9501. <div style="width: 90px; min-width: 90px">提问:</div>
  9502. <div>{{ answerQ }}</div>
  9503. </div>
  9504. </div>
  9505. <div class="ediBottom">
  9506. <textarea
  9507. rows="6"
  9508. class="binfo_input"
  9509. cols
  9510. style="width: 95%; height: 120px"
  9511. v-model="questionAnswer"
  9512. ></textarea>
  9513. </div>
  9514. </div>
  9515. </div>
  9516. <div slot="footer">
  9517. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9518. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9519. </div>
  9520. </el-dialog>
  9521. <el-dialog
  9522. title="倒计时"
  9523. :visible.sync="timeDialogVisible"
  9524. :append-to-body="true"
  9525. width="800px"
  9526. :before-close="handleClose"
  9527. class="dialog_diy"
  9528. >
  9529. <div>
  9530. <div style="margin-bottom: 20px; color: #999">
  9531. 提示:点击“+”或“-”修改倒计时时长。
  9532. </div>
  9533. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9534. </div>
  9535. <div slot="footer">
  9536. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9537. </div>
  9538. </el-dialog>
  9539. <el-dialog
  9540. title="权限设置"
  9541. :visible.sync="juriVisible"
  9542. :append-to-body="true"
  9543. width="400px"
  9544. :before-close="handleClose"
  9545. class="dialog_diy"
  9546. >
  9547. <div>
  9548. <div class="open_box">
  9549. <div class="switch_box">
  9550. <span>允许学生查看所有作业</span>
  9551. <el-switch
  9552. v-model="sIsOpen"
  9553. active-text=""
  9554. class="switchCss"
  9555. @change="updateSLook"
  9556. ></el-switch>
  9557. </div>
  9558. <div
  9559. class="switch_box"
  9560. v-if="
  9561. courseDetail.userid == userid ||
  9562. (courseDetail.course_teacher &&
  9563. courseDetail.course_teacher.indexOf(userid) != -1)
  9564. "
  9565. >
  9566. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9567. <span>禁止学生查看所有阶段</span>
  9568. <el-switch
  9569. v-model="IsLookOpen"
  9570. active-text=""
  9571. class="switchCss"
  9572. @change="updateLookOpen"
  9573. ></el-switch>
  9574. </div>
  9575. <div class="switch_box" v-if="courseDetail.userid == userid">
  9576. <span>开启跟随模式</span>
  9577. <el-switch
  9578. v-model="IsFollow"
  9579. active-text=""
  9580. class="switchCss"
  9581. @change="updateFollow"
  9582. ></el-switch>
  9583. </div>
  9584. </div>
  9585. </div>
  9586. <div slot="footer">
  9587. <el-button
  9588. style="background: #409efe; color: #fff"
  9589. @click="juriVisible = false"
  9590. >关 闭</el-button
  9591. >
  9592. </div>
  9593. </el-dialog>
  9594. <el-dialog
  9595. title="查看视频"
  9596. :visible.sync="videoVisible"
  9597. :append-to-body="true"
  9598. width="1000px"
  9599. :before-close="handleClose"
  9600. class="dialog_diy1"
  9601. >
  9602. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9603. <video-player
  9604. class="video-player vjs-custom-skin"
  9605. :playsinline="true"
  9606. :options="videoDetail"
  9607. @play="onPlayerPlay($event)"
  9608. style="width: 100%; height: 100%"
  9609. ></video-player>
  9610. </div>
  9611. <div slot="footer">
  9612. <el-button
  9613. style="background: #409efe; color: #fff"
  9614. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9615. >
  9616. 关 闭</el-button
  9617. >
  9618. </div>
  9619. </el-dialog>
  9620. <el-dialog
  9621. title="查看详情"
  9622. :visible.sync="commentDialogVisible"
  9623. :append-to-body="true"
  9624. width="800px"
  9625. :before-close="handleClose"
  9626. class="dialog_diy"
  9627. >
  9628. <div class="commentTop">
  9629. <div class="studentDetail">
  9630. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9631. <div class="nameAndTime">
  9632. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9633. <div>{{ commentDetail.time }}</div>
  9634. </div>
  9635. <div
  9636. class="returnBtn"
  9637. style="margin-left: auto; width: 80px"
  9638. v-if="
  9639. commentDetail.works &&
  9640. commentDetail.type == 0 &&
  9641. (tType == 1 || tType == 4)
  9642. "
  9643. @click="
  9644. showPicturePaint(
  9645. commentDetail.img ? commentDetail.img : commentDetail.works
  9646. )
  9647. "
  9648. >
  9649. 教师批注
  9650. </div>
  9651. </div>
  9652. <div
  9653. class="worksAnswer"
  9654. v-if="commentDetail.works && commentDetail.type == 2"
  9655. >
  9656. {{ JSON.parse(commentDetail.works)[0].answer }}
  9657. </div>
  9658. <div
  9659. class="worksAnswer"
  9660. v-if="commentDetail.works && commentDetail.type == 1"
  9661. >
  9662. <img
  9663. src="../../assets/teacherWork.png"
  9664. v-if="commentDetail.ateacher"
  9665. class="w_teachert"
  9666. />
  9667. <pdf
  9668. v-if="showPDF"
  9669. :pdfUrl="pptImgUrl"
  9670. style="width: 100%; height: 520px; overflow: auto"
  9671. :class="{ fullStyle: full }"
  9672. ></pdf>
  9673. <iframe
  9674. v-else
  9675. :src="pptImgUrl"
  9676. frameborder="0"
  9677. width="100%"
  9678. height="600"
  9679. :class="{ fullStyle: full }"
  9680. ></iframe>
  9681. </div>
  9682. <div
  9683. class="worksAnswer"
  9684. v-if="commentDetail.works && commentDetail.type == 0"
  9685. >
  9686. <img
  9687. src="../../assets/teacherWork.png"
  9688. v-if="commentDetail.ateacher"
  9689. class="w_teachert"
  9690. style="right: 105px"
  9691. />
  9692. <img
  9693. :src="commentDetail.works"
  9694. alt=""
  9695. @click="previewImg(commentDetail.works)"
  9696. />
  9697. </div>
  9698. <div
  9699. class="worksAnswer"
  9700. v-if="commentDetail.works && commentDetail.type == 3"
  9701. >
  9702. <img
  9703. src="../../assets/teacherWork.png"
  9704. v-if="commentDetail.ateacher"
  9705. class="w_teachert"
  9706. />
  9707. <video-player
  9708. class="video-player vjs-custom-skin"
  9709. :playsinline="true"
  9710. :options="videoDetail"
  9711. @play="onPlayerPlay($event)"
  9712. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9713. ></video-player>
  9714. </div>
  9715. <div
  9716. class="worksAnswer"
  9717. v-if="commentDetail.works && commentDetail.type == 10"
  9718. >
  9719. <div class="cont" v-html="commentDetail.works.text"></div>
  9720. </div>
  9721. <div
  9722. class="worksAnswer codeFileBox"
  9723. v-if="commentDetail.works && commentDetail.type == 12"
  9724. @click="downloadFile(commentDetail.works)"
  9725. >
  9726. <img src="../../assets/icon/codeFile.png" />
  9727. <div>点击下载文件</div>
  9728. </div>
  9729. <div
  9730. class="worksAnswer codeFileBox"
  9731. v-if="commentDetail.works && commentDetail.type == 15"
  9732. @click="
  9733. openCocoPi(
  9734. 57,
  9735. commentIndexJson.toolIndex,
  9736. commentDetail.userid,
  9737. commentDetail.sName
  9738. )
  9739. "
  9740. >
  9741. <img src="../../assets/icon/codeFile.png" />
  9742. <div>点击打开CocoPi</div>
  9743. </div>
  9744. <div
  9745. class="worksAnswer"
  9746. v-if="commentDetail.works && commentDetail.type == 13"
  9747. >
  9748. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9749. </div>
  9750. <div
  9751. class="worksAnswer"
  9752. v-if="commentDetail.works && commentDetail.type == 4"
  9753. >
  9754. <div class="evalCss">
  9755. <div class="nav">请选择星星进行评分</div>
  9756. <div class="middleBox" v-if="eScore.eStar">
  9757. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9758. <div class="nameAndrate">
  9759. <div>{{ e.value }}</div>
  9760. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9761. </div>
  9762. <div v-if="e.detail">{{ e.detail }}</div>
  9763. </div>
  9764. <div class="bz">
  9765. <textarea
  9766. disabled
  9767. rows="4"
  9768. class="pj"
  9769. style="
  9770. padding: 10px 5px;
  9771. width: 70%;
  9772. background: #f7f6f9;
  9773. font-size: 14px;
  9774. text-indent: 10px;
  9775. color: #000;
  9776. "
  9777. cols
  9778. v-model="eScore.eBzText"
  9779. placeholder="请输入评价内容..."
  9780. ></textarea>
  9781. </div>
  9782. </div>
  9783. </div>
  9784. </div>
  9785. <div class="comment">
  9786. <div class="commentList">
  9787. <div class="commentImg">
  9788. <img
  9789. @click="
  9790. isLikes(
  9791. commentDetail.wid,
  9792. userid,
  9793. 1,
  9794. null,
  9795. commentDetail.isLikes
  9796. )
  9797. "
  9798. :src="commentDetail.isLikes == true ? likes : noLikes"
  9799. alt=""
  9800. />
  9801. </div>
  9802. <div>{{ commentDetail.likesCount }}</div>
  9803. </div>
  9804. <div class="commentList">
  9805. <div class="commentImg">
  9806. <img src="../../assets/icon/comment/comment.png" alt="" />
  9807. </div>
  9808. <div>{{ commentDetail.commentCount }}</div>
  9809. </div>
  9810. </div>
  9811. <div class="drawPBox" v-if="commentDetail.img">
  9812. <span>教师批注</span>
  9813. <img
  9814. :src="commentDetail.img"
  9815. alt=""
  9816. @click="previewImg(commentDetail.img)"
  9817. />
  9818. <span
  9819. class="deleteImg"
  9820. v-if="tType == 1 || tType == 4"
  9821. @click.stop="deletePicturePaint(commentDetail.wid)"
  9822. style="
  9823. font-size: 14px;
  9824. width: auto !important;
  9825. color: #b4b4b4;
  9826. top: unset;
  9827. bottom: 0;
  9828. border: none;
  9829. padding: 0;
  9830. height: auto !important;
  9831. margin: 0;
  9832. "
  9833. >删除</span
  9834. >
  9835. </div>
  9836. </div>
  9837. <div class="commentBox">
  9838. <div class="pl">评论:</div>
  9839. <div style="max-height: 200px; overflow: auto">
  9840. <div
  9841. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9842. style="padding: 10px 0 0 0"
  9843. >
  9844. <div
  9845. class="studentDetail"
  9846. style="padding-top: 10px"
  9847. v-for="(co, coIndex) in commentDetail.commentJson"
  9848. :key="coIndex"
  9849. >
  9850. <div class="tx" style="min-width: 50px">
  9851. <img src="../../assets/avatar.png" alt="" />
  9852. </div>
  9853. <div class="plPerson">
  9854. <div class="plName">
  9855. <div>{{ co.commentPeople }}</div>
  9856. <div style="margin-left: 5px">
  9857. {{ co.commentTime }}
  9858. </div>
  9859. <div
  9860. class="deleteComment"
  9861. v-if="userid == co.userid"
  9862. @click="deleteComment(co.wid)"
  9863. >
  9864. 删除
  9865. </div>
  9866. </div>
  9867. <div class="plContent">{{ co.commentText }}</div>
  9868. </div>
  9869. </div>
  9870. </div>
  9871. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9872. </div>
  9873. </div>
  9874. <div style="margin-top: 10px">
  9875. <div class="displayBox">
  9876. <div
  9877. style="
  9878. color: #556db4;
  9879. font-size: 14px;
  9880. font-weight: bold;
  9881. padding-bottom: 10px;
  9882. "
  9883. >
  9884. 评价
  9885. </div>
  9886. <div class="easy_comment" v-if="false">
  9887. <div
  9888. v-for="(p, pIndex) in PlTextList"
  9889. :key="pIndex"
  9890. @click="fastText(p, 1)"
  9891. >
  9892. {{ p }}
  9893. </div>
  9894. </div>
  9895. </div>
  9896. <div>
  9897. <textarea
  9898. rows="3"
  9899. class="pj"
  9900. style="padding: 10px 5px"
  9901. cols
  9902. v-model="commentText"
  9903. placeholder="请输入评论"
  9904. ></textarea>
  9905. </div>
  9906. </div>
  9907. <div slot="footer">
  9908. <el-button
  9909. @click="
  9910. (commentDialogVisible = false),
  9911. (commentIndexJson = {}),
  9912. videoDetail.sources && videoDetail.sources[0]
  9913. ? (videoDetail.sources[0].src = '')
  9914. : ''
  9915. "
  9916. >取 消</el-button
  9917. >
  9918. <el-button
  9919. type="primary"
  9920. @click="addComment(commentDetail.wid, userid, 2)"
  9921. >确 定</el-button
  9922. >
  9923. </div>
  9924. </el-dialog>
  9925. <el-dialog
  9926. title="查看文档"
  9927. :visible.sync="fullDialogVisible"
  9928. :append-to-body="true"
  9929. width="100%"
  9930. :before-close="handleClose"
  9931. :show-close="false"
  9932. class="dialog_diy full_diy"
  9933. :class="{ full_diy2: fulltype == 3 }"
  9934. >
  9935. <div slot="title" class="header-title">
  9936. <div style="color: #fff">查看文档</div>
  9937. <div
  9938. @click="fullDialogVisible = false"
  9939. style="
  9940. cursor: pointer;
  9941. position: absolute;
  9942. top: 20px;
  9943. right: 20px;
  9944. color: #fff;
  9945. "
  9946. >
  9947. 退出全屏
  9948. </div>
  9949. </div>
  9950. <div style="height: 100%">
  9951. <div
  9952. class="wheel"
  9953. v-if="
  9954. fulltype == 2 &&
  9955. fullUrl.indexOf(
  9956. 'https://view.officeapps.live.com/op/view.aspx?src='
  9957. ) != -1
  9958. "
  9959. style="width: 95%; margin: 0 auto"
  9960. >
  9961. <iframe
  9962. style="width: 100%; height: 100%; border: none"
  9963. :src="fullUrl"
  9964. ></iframe>
  9965. </div>
  9966. <iframe
  9967. v-else-if="fulltype == 2"
  9968. style="width: 100%; height: 100%; border: none"
  9969. :src="fullUrl"
  9970. security="restricted"
  9971. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9972. ></iframe>
  9973. <pdf
  9974. v-else-if="fulltype == 3"
  9975. :pdfUrl="fullUrl"
  9976. style="width: 100%; height: 100%; overflow: auto"
  9977. ></pdf>
  9978. <div
  9979. class="wheel"
  9980. v-if="fulltype == 1"
  9981. style="
  9982. box-shadow: 0 0 6px 1px #f2f2f2;
  9983. width: 100%;
  9984. background: #f1f1f1;
  9985. "
  9986. >
  9987. <div class="title" style="width: 100%; box-sizing: border-box">
  9988. 查看文档
  9989. </div>
  9990. <el-form class="textBox" style="height: 90%">
  9991. <el-form-item class="textTitle">
  9992. <div style="font-size: 22px">
  9993. {{ fullUrl.name }}
  9994. </div>
  9995. </el-form-item>
  9996. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9997. <div
  9998. v-html="fullUrl.url"
  9999. class="textContent"
  10000. style="height: auto"
  10001. ></div>
  10002. </el-form>
  10003. </div>
  10004. </div>
  10005. <!-- <div slot="footer">
  10006. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10007. </div> -->
  10008. </el-dialog>
  10009. <el-dialog
  10010. title="个人评价"
  10011. :visible.sync="studentEvalDialogVisible"
  10012. :append-to-body="true"
  10013. width="800px"
  10014. :before-close="handleClose"
  10015. class="dialog_diy"
  10016. >
  10017. <div class="evalCss">
  10018. <div class="nav">请选择星星进行评分</div>
  10019. <div class="middleBox" v-if="eScore.eStar">
  10020. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10021. <div class="nameAndrate">
  10022. <div>{{ e.value }}</div>
  10023. <el-rate
  10024. v-model="eScore.eStar[eIndex]"
  10025. :disabled="isStar"
  10026. ></el-rate>
  10027. </div>
  10028. <div v-if="e.detail">{{ e.detail }}</div>
  10029. </div>
  10030. <div class="easy_comment" v-if="false">
  10031. <div
  10032. v-for="(p, pIndex) in PlTextList"
  10033. :key="pIndex"
  10034. @click="fastText(p, 2)"
  10035. >
  10036. {{ p }}
  10037. </div>
  10038. </div>
  10039. <div class="bz">
  10040. <textarea
  10041. :disabled="isStar"
  10042. rows="4"
  10043. class="pj"
  10044. style="
  10045. padding: 10px 5px;
  10046. width: 70%;
  10047. background: #f7f6f9;
  10048. font-size: 14px;
  10049. text-indent: 10px;
  10050. "
  10051. cols
  10052. v-model="eScore.eBzText"
  10053. placeholder="请输入评价内容..."
  10054. ></textarea>
  10055. </div>
  10056. </div>
  10057. </div>
  10058. <div slot="footer">
  10059. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10060. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10061. >确 定</el-button
  10062. >
  10063. </div>
  10064. </el-dialog>
  10065. <el-dialog
  10066. title="个人评价"
  10067. :visible.sync="studentEvalDialogVisibleTeacher"
  10068. :append-to-body="true"
  10069. width="800px"
  10070. :before-close="handleClose"
  10071. class="dialog_diy"
  10072. >
  10073. <div class="w_name">
  10074. 学生姓名:<span>{{ sStudent.student }}</span>
  10075. </div>
  10076. <div class="evalCss">
  10077. <div class="nav">请选择星星进行评分</div>
  10078. <div class="middleBox" v-if="eScore.eStar">
  10079. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10080. <div class="nameAndrate">
  10081. <div>{{ e.value }}</div>
  10082. <el-rate
  10083. v-model="eScore.eStar[eIndex]"
  10084. :disabled="isStar"
  10085. ></el-rate>
  10086. </div>
  10087. <div v-if="e.detail">{{ e.detail }}</div>
  10088. </div>
  10089. <div class="easy_comment" v-if="false">
  10090. <div
  10091. v-for="(p, pIndex) in PlTextList"
  10092. :key="pIndex"
  10093. @click="fastText(p, 2)"
  10094. >
  10095. {{ p }}
  10096. </div>
  10097. </div>
  10098. <div class="bz">
  10099. <textarea
  10100. :disabled="isStar"
  10101. rows="4"
  10102. class="pj"
  10103. style="
  10104. padding: 10px 5px;
  10105. width: 70%;
  10106. background: #f7f6f9;
  10107. font-size: 14px;
  10108. text-indent: 10px;
  10109. "
  10110. cols
  10111. v-model="eScore.eBzText"
  10112. placeholder="请输入评价内容..."
  10113. ></textarea>
  10114. </div>
  10115. </div>
  10116. </div>
  10117. <div slot="footer">
  10118. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10119. >取 消</el-button
  10120. >
  10121. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10122. >确 定</el-button
  10123. >
  10124. </div>
  10125. </el-dialog>
  10126. <el-dialog
  10127. title="选择匹配"
  10128. :visible.sync="dialogVisibleSelect"
  10129. :append-to-body="true"
  10130. width="90%"
  10131. :before-close="handleClose"
  10132. class="dialog_diy dialog_diy3"
  10133. >
  10134. <div v-if="selectJson">
  10135. <div class="select_box2">
  10136. <div class="select_box2_title">
  10137. <div>选择匹配</div>
  10138. <div>请选择对应的答案进行答题!</div>
  10139. </div>
  10140. <div class="select_box2_box">
  10141. <div class="select_box2_img">
  10142. <img
  10143. :src="selectJson.url"
  10144. @click="previewImg(selectJson.url)"
  10145. alt=""
  10146. />
  10147. </div>
  10148. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10149. <div style="padding-top: 15px">
  10150. <div class="select_answer_title" v-if="isSelect">
  10151. {{ selectAnswer.stu }}
  10152. </div>
  10153. <div class="select_answer_title" v-else>
  10154. 根据题目选择对应答案
  10155. </div>
  10156. <div
  10157. class="select_box2_answer_box"
  10158. v-for="(item2, checkIndex) in selectJson.select"
  10159. :key="checkIndex"
  10160. >
  10161. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10162. <el-select
  10163. :disabled="isSelect"
  10164. v-model="selectAnswer.answer[checkIndex]"
  10165. placeholder="请选择正确答案"
  10166. >
  10167. <el-option
  10168. v-for="(e, eIndex) in selectJson.select"
  10169. :key="eIndex"
  10170. :label="e"
  10171. :value="eIndex"
  10172. >
  10173. </el-option>
  10174. </el-select>
  10175. </div>
  10176. </div>
  10177. <div
  10178. class="rightAnswerCss"
  10179. v-if="isSelect && (tType == 1 || tType == 4)"
  10180. >
  10181. <div
  10182. v-for="(a, aIndex) in selectJson.answer"
  10183. :key="aIndex"
  10184. class="rightAnswer"
  10185. >
  10186. <div
  10187. v-if="selectAnswer.answer[aIndex] === a"
  10188. style="color: #767de1"
  10189. >
  10190. 回答正确
  10191. </div>
  10192. <div v-else>回答错误</div>
  10193. <div
  10194. style="margin-left: 10px"
  10195. v-if="selectAnswer.answer[aIndex] !== a"
  10196. >
  10197. 正确答案:
  10198. </div>
  10199. <div
  10200. :class="
  10201. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10202. "
  10203. >
  10204. {{ selectJson.select[a] }}
  10205. </div>
  10206. </div>
  10207. </div>
  10208. </div>
  10209. <div class="upAnswerCss">
  10210. <el-button
  10211. type="primary"
  10212. @click="addSelectAnswer"
  10213. v-if="!isSelect"
  10214. >提交答案</el-button
  10215. >
  10216. </div>
  10217. </div>
  10218. </div>
  10219. </div>
  10220. </el-dialog>
  10221. <el-dialog
  10222. title="选择匹配"
  10223. :visible.sync="dialogVisibleSelectTeacher"
  10224. :append-to-body="true"
  10225. width="90%"
  10226. :before-close="handleClose"
  10227. class="dialog_diy dialog_diy3"
  10228. >
  10229. <div v-if="selectJson">
  10230. <div class="w_name">
  10231. 学生姓名:<span>{{ sStudent.student }}</span>
  10232. </div>
  10233. <div class="select_box2">
  10234. <div class="select_box2_title">
  10235. <div>选择匹配</div>
  10236. <div>请选择对应的答案进行答题!</div>
  10237. </div>
  10238. <div class="select_box2_box">
  10239. <div class="select_box2_img">
  10240. <img
  10241. :src="selectJson.url"
  10242. @click="previewImg(selectJson.url)"
  10243. alt=""
  10244. />
  10245. </div>
  10246. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10247. <div style="padding-top: 15px">
  10248. <div class="select_answer_title" v-if="isSelect">
  10249. {{ selectAnswer.stu }}
  10250. </div>
  10251. <div class="select_answer_title" v-else>
  10252. 根据题目选择对应答案
  10253. </div>
  10254. <div
  10255. class="select_box2_answer_box"
  10256. v-for="(item2, checkIndex) in selectJson.select"
  10257. :key="checkIndex"
  10258. >
  10259. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10260. <el-select
  10261. :disabled="isSelect"
  10262. v-model="selectAnswer.answer[checkIndex]"
  10263. placeholder="请选择正确答案"
  10264. >
  10265. <el-option
  10266. v-for="(e, eIndex) in selectJson.select"
  10267. :key="eIndex"
  10268. :label="e"
  10269. :value="eIndex"
  10270. >
  10271. </el-option>
  10272. </el-select>
  10273. </div>
  10274. </div>
  10275. <div
  10276. class="rightAnswerCss"
  10277. v-if="isSelect && (tType == 1 || tType == 4)"
  10278. >
  10279. <div
  10280. v-for="(a, aIndex) in selectJson.answer"
  10281. :key="aIndex"
  10282. class="rightAnswer"
  10283. >
  10284. <div
  10285. v-if="selectAnswer.answer[aIndex] === a"
  10286. style="color: #767de1"
  10287. >
  10288. 回答正确
  10289. </div>
  10290. <div v-else>回答错误</div>
  10291. <div
  10292. style="margin-left: 10px"
  10293. v-if="selectAnswer.answer[aIndex] !== a"
  10294. >
  10295. 正确答案:
  10296. </div>
  10297. <div
  10298. :class="
  10299. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10300. "
  10301. >
  10302. {{ selectJson.select[a] }}
  10303. </div>
  10304. </div>
  10305. </div>
  10306. </div>
  10307. <div class="upAnswerCss">
  10308. <el-button
  10309. type="primary"
  10310. @click="addSelectAnswerTeacher"
  10311. v-if="!isSelect"
  10312. >提交答案</el-button
  10313. >
  10314. </div>
  10315. </div>
  10316. </div>
  10317. </div>
  10318. </el-dialog>
  10319. <el-dialog
  10320. title="教师评分"
  10321. :visible.sync="dialogVisibleScore"
  10322. :append-to-body="true"
  10323. width="800px"
  10324. :before-close="handleClose"
  10325. class="dialog_diy"
  10326. >
  10327. <div>
  10328. <div class="studentDetail">
  10329. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10330. <div class="nameAndTime">
  10331. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10332. <div>{{ commentDetail.time }}</div>
  10333. </div>
  10334. </div>
  10335. <div
  10336. class="worksAnswer"
  10337. v-if="commentDetail.works && commentDetail.type == 2"
  10338. >
  10339. {{ JSON.parse(commentDetail.works)[0].answer }}
  10340. </div>
  10341. <div
  10342. class="worksAnswer"
  10343. v-if="commentDetail.works && commentDetail.type == 1"
  10344. >
  10345. <pdf
  10346. v-if="showPDF"
  10347. :pdfUrl="pptImgUrl"
  10348. style="width: 100%; height: 520px; overflow: auto"
  10349. :class="{ fullStyle: full }"
  10350. ></pdf>
  10351. <iframe
  10352. v-else
  10353. :src="pptImgUrl"
  10354. frameborder="0"
  10355. width="100%"
  10356. height="600"
  10357. :class="{ fullStyle: full }"
  10358. ></iframe>
  10359. </div>
  10360. <div
  10361. class="worksAnswer"
  10362. v-if="commentDetail.works && commentDetail.type == 0"
  10363. >
  10364. <img
  10365. :src="commentDetail.works"
  10366. alt=""
  10367. @click="previewImg(commentDetail.works)"
  10368. />
  10369. </div>
  10370. <div
  10371. class="worksAnswer"
  10372. v-if="commentDetail.works && commentDetail.type == 3"
  10373. >
  10374. <video-player
  10375. class="video-player vjs-custom-skin"
  10376. :playsinline="true"
  10377. :options="videoDetail"
  10378. @play="onPlayerPlay($event)"
  10379. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10380. ></video-player>
  10381. </div>
  10382. <div
  10383. class="worksAnswer codeFileBox"
  10384. v-if="commentDetail.works && commentDetail.type == 12"
  10385. @click="downloadFile(commentDetail.works)"
  10386. >
  10387. <img src="../../assets/icon/codeFile.png" />
  10388. <div>点击下载文件</div>
  10389. </div>
  10390. <div
  10391. class="worksAnswer codeFileBox"
  10392. v-if="commentDetail.works && commentDetail.type == 15"
  10393. @click="
  10394. openCocoPi(
  10395. 57,
  10396. commentIndexJson.toolIndex,
  10397. commentDetail.userid,
  10398. commentDetail.sName
  10399. )
  10400. "
  10401. >
  10402. <img src="../../assets/icon/codeFile.png" />
  10403. <div>点击打开CocoPi</div>
  10404. </div>
  10405. <div
  10406. class="worksAnswer"
  10407. v-if="commentDetail.works && commentDetail.type == 13"
  10408. >
  10409. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10410. </div>
  10411. <div class="scoreBox">
  10412. <span class="t">请输入分数</span>
  10413. <el-input-number
  10414. :disabled="courseDetail.userid != userid"
  10415. v-model="wScore"
  10416. :controls="false"
  10417. :min="0"
  10418. :max="100"
  10419. ></el-input-number>
  10420. </div>
  10421. <div class="scoreDetailBox">
  10422. <span class="t">评分评论</span>
  10423. <el-input
  10424. type="textarea"
  10425. :rows="5"
  10426. :disabled="courseDetail.userid != userid"
  10427. resize="none"
  10428. v-model="scoreDetail"
  10429. placeholder="请输入对学生的评价"
  10430. >
  10431. </el-input>
  10432. </div>
  10433. </div>
  10434. <span slot="footer" class="dialog-footer">
  10435. <el-button
  10436. @click="
  10437. (dialogVisibleScore = false),
  10438. (commentIndexJson = {}),
  10439. videoDetail.sources && videoDetail.sources[0]
  10440. ? (videoDetail.sources[0].src = '')
  10441. : ''
  10442. "
  10443. >取 消</el-button
  10444. >
  10445. <el-button
  10446. type="primary"
  10447. v-if="courseDetail.userid == userid"
  10448. @click="scoreWork(commentDetail.wid)"
  10449. >确 定
  10450. </el-button>
  10451. </span>
  10452. </el-dialog>
  10453. <el-dialog
  10454. title="排序"
  10455. :visible.sync="dialogVisibleSentence"
  10456. :append-to-body="true"
  10457. width="1000px"
  10458. :before-close="handleClose"
  10459. class="dialog_diy dialog_diy3"
  10460. >
  10461. <div>
  10462. <div class="sentenBox">
  10463. <div
  10464. v-for="(st, stIndex) in sentenceList"
  10465. :key="stIndex"
  10466. style="padding-bottom: 20px"
  10467. >
  10468. <div
  10469. style="padding: 15px 0 10px 20px"
  10470. class="sentenceTitle"
  10471. :index="stIndex + 1"
  10472. >
  10473. 题目{{ stIndex + 1 }}:请选择正确顺序
  10474. </div>
  10475. <div class="cardList" v-if="st.chooseSenList">
  10476. <div class="cardBox">
  10477. <div
  10478. v-for="(r, rIndex) in st.chooseSenList"
  10479. :key="rIndex"
  10480. @click="returnCard(r, stIndex, rIndex)"
  10481. >
  10482. <el-tooltip
  10483. class="item"
  10484. effect="light"
  10485. :content="r"
  10486. placement="top"
  10487. v-if="r != '' && r != undefined"
  10488. >
  10489. <div
  10490. :class="{
  10491. isCard: r,
  10492. isChooseCard: r == '' || r == undefined,
  10493. }"
  10494. >
  10495. <div>{{ r }}</div>
  10496. </div>
  10497. </el-tooltip>
  10498. <div
  10499. :class="{
  10500. isCard: r,
  10501. isChooseCard: r == '' || r == undefined,
  10502. }"
  10503. v-else
  10504. >
  10505. <div>{{ r }}</div>
  10506. </div>
  10507. </div>
  10508. </div>
  10509. </div>
  10510. <div class="cardList" v-if="st.addChangeSen">
  10511. <div class="cardBox">
  10512. <div
  10513. v-for="(s, sIndex) in st.addChangeSen"
  10514. :key="sIndex"
  10515. @click="setRightAnswer(s, stIndex, sIndex)"
  10516. >
  10517. <el-tooltip
  10518. class="item"
  10519. effect="light"
  10520. :content="s"
  10521. placement="top"
  10522. v-if="s != '' && s != undefined"
  10523. >
  10524. <div
  10525. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10526. >
  10527. <div>{{ s }}</div>
  10528. </div>
  10529. </el-tooltip>
  10530. <div
  10531. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10532. v-else
  10533. >
  10534. <div>{{ s }}</div>
  10535. </div>
  10536. </div>
  10537. </div>
  10538. </div>
  10539. </div>
  10540. </div>
  10541. </div>
  10542. <span slot="footer" class="dialog-footer">
  10543. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10544. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10545. </span>
  10546. </el-dialog>
  10547. <el-dialog
  10548. title="排序"
  10549. :visible.sync="dialogVisibleSentenceTeacher"
  10550. :append-to-body="true"
  10551. width="1000px"
  10552. :before-close="handleClose"
  10553. class="dialog_diy dialog_diy3"
  10554. >
  10555. <div>
  10556. <div class="w_name">
  10557. 学生姓名:<span>{{ sStudent.student }}</span>
  10558. </div>
  10559. <div class="sentenBox">
  10560. <div
  10561. v-for="(st, stIndex) in sentenceList"
  10562. :key="stIndex"
  10563. style="padding-bottom: 20px"
  10564. >
  10565. <div
  10566. style="padding: 15px 0 10px 20px"
  10567. class="sentenceTitle"
  10568. :index="stIndex + 1"
  10569. >
  10570. 题目{{ stIndex + 1 }}:请选择正确顺序
  10571. </div>
  10572. <div class="cardList" v-if="st.chooseSenList">
  10573. <div class="cardBox">
  10574. <div
  10575. v-for="(r, rIndex) in st.chooseSenList"
  10576. :key="rIndex"
  10577. @click="returnCard(r, stIndex, rIndex)"
  10578. >
  10579. <el-tooltip
  10580. class="item"
  10581. effect="light"
  10582. :content="r"
  10583. placement="top"
  10584. v-if="r != '' && r != undefined"
  10585. >
  10586. <div
  10587. :class="{
  10588. isCard: r,
  10589. isChooseCard: r == '' || r == undefined,
  10590. }"
  10591. >
  10592. <div>{{ r }}</div>
  10593. </div>
  10594. </el-tooltip>
  10595. <div
  10596. :class="{
  10597. isCard: r,
  10598. isChooseCard: r == '' || r == undefined,
  10599. }"
  10600. v-else
  10601. >
  10602. <div>{{ r }}</div>
  10603. </div>
  10604. </div>
  10605. </div>
  10606. </div>
  10607. <div class="cardList" v-if="st.addChangeSen">
  10608. <div class="cardBox">
  10609. <div
  10610. v-for="(s, sIndex) in st.addChangeSen"
  10611. :key="sIndex"
  10612. @click="setRightAnswer(s, stIndex, sIndex)"
  10613. >
  10614. <el-tooltip
  10615. class="item"
  10616. effect="light"
  10617. :content="s"
  10618. placement="top"
  10619. v-if="s != '' && s != undefined"
  10620. >
  10621. <div
  10622. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10623. >
  10624. <div>{{ s }}</div>
  10625. </div>
  10626. </el-tooltip>
  10627. <div
  10628. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10629. v-else
  10630. >
  10631. <div>{{ s }}</div>
  10632. </div>
  10633. </div>
  10634. </div>
  10635. </div>
  10636. </div>
  10637. </div>
  10638. </div>
  10639. <span slot="footer" class="dialog-footer">
  10640. <el-button @click="dialogVisibleSentenceTeacher = false"
  10641. >取 消</el-button
  10642. >
  10643. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10644. </span>
  10645. </el-dialog>
  10646. <el-dialog
  10647. title="排序"
  10648. :visible.sync="dialogVisibleSentence1"
  10649. :append-to-body="true"
  10650. width="1000px"
  10651. :before-close="handleClose"
  10652. class="dialog_diy dialog_diy3"
  10653. >
  10654. <div>
  10655. <div class="sentenBox">
  10656. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10657. {{ sentenceList1.stuName }}的作业
  10658. </div>
  10659. <div
  10660. v-for="(st, stIndex) in sentenceList1"
  10661. :key="stIndex"
  10662. style="padding-bottom: 20px"
  10663. >
  10664. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10665. 第{{ stIndex + 1 }}题
  10666. </div>
  10667. <div class="isWrong">
  10668. <div class="cardList1" v-if="st.chooseSenList">
  10669. <div class="cardBox">
  10670. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10671. <el-tooltip
  10672. class="item"
  10673. effect="light"
  10674. :content="s"
  10675. placement="top"
  10676. >
  10677. <div class="isCard">
  10678. <div>{{ s }}</div>
  10679. </div>
  10680. </el-tooltip>
  10681. </div>
  10682. </div>
  10683. <div class="cardAnswerBox">
  10684. 组成句子:{{ st.chooseSenList.join(" ") }}
  10685. </div>
  10686. </div>
  10687. <div
  10688. class="answerRight isTj"
  10689. v-if="
  10690. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10691. (tType == 1 || tType == 4)
  10692. "
  10693. >
  10694. <div class="isTjImg">
  10695. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10696. </div>
  10697. <div>回答正确</div>
  10698. </div>
  10699. <div
  10700. class="answerRight isTj"
  10701. v-if="
  10702. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10703. (tType == 1 || tType == 4)
  10704. "
  10705. >
  10706. <div class="isTjImg">
  10707. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10708. </div>
  10709. <div>回答错误</div>
  10710. </div>
  10711. </div>
  10712. <div
  10713. v-if="
  10714. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10715. (tType == 1 || tType == 4)
  10716. "
  10717. >
  10718. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10719. <div
  10720. class="cardList"
  10721. v-if="st.rightAnswer"
  10722. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10723. >
  10724. <div class="cardBox">
  10725. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10726. <el-tooltip
  10727. class="item"
  10728. effect="light"
  10729. :content="r"
  10730. placement="top"
  10731. >
  10732. <div class="isCard1">
  10733. <div>{{ r }}</div>
  10734. </div>
  10735. </el-tooltip>
  10736. </div>
  10737. </div>
  10738. <div class="cardAnswerBox">
  10739. 组成句子:{{ st.rightAnswer.join(" ") }}
  10740. </div>
  10741. </div>
  10742. </div>
  10743. </div>
  10744. </div>
  10745. </div>
  10746. <span slot="footer" class="dialog-footer">
  10747. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10748. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10749. >确 定</el-button
  10750. >
  10751. </span>
  10752. </el-dialog>
  10753. <el-dialog
  10754. title="提交作业"
  10755. :visible.sync="dialogVisibleWorks"
  10756. :append-to-body="true"
  10757. width="500px"
  10758. :before-close="handleClose"
  10759. class="dialog_change"
  10760. >
  10761. <div class="marginT">
  10762. <div class="w_name">
  10763. 学生姓名:<span>{{ sStudent.student }}</span>
  10764. </div>
  10765. <div>上传文件</div>
  10766. <div
  10767. class="chapter_add"
  10768. @click="addImg($event)"
  10769. v-if="studyJuri[0].cover.length == 0"
  10770. >
  10771. <div class="up_photo">
  10772. <img src="../../assets/uploadImg2.png" alt />
  10773. </div>
  10774. <!-- <input
  10775. type="file"
  10776. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10777. style="display: none"
  10778. @change="beforeUpload1($event, 1)"
  10779. /> -->
  10780. <input
  10781. type="file"
  10782. accept="*"
  10783. style="display: none"
  10784. @change="beforeUpload1($event, 1)"
  10785. />
  10786. </div>
  10787. <!-- capture="camera" -->
  10788. <div
  10789. class="chapter_add"
  10790. style="
  10791. display: flex;
  10792. width: 100%;
  10793. flex-direction: row;
  10794. flex-wrap: wrap;
  10795. justify-content: flex-start;
  10796. padding: 15px 0;
  10797. "
  10798. v-if="studyJuri[0].cover.length > 0"
  10799. >
  10800. <div class="upCover">
  10801. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10802. <img :src="word" alt v-else-if="fileType == 1" />
  10803. <img :src="video" alt v-else-if="fileType == 2" />
  10804. <img :src="word2" alt v-else-if="fileType == 3" />
  10805. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10806. <div class="deleteWord" @click="clean(1)">
  10807. <img src="../../assets/icon/deleteWorks.png" alt />
  10808. </div>
  10809. </div>
  10810. </div>
  10811. </div>
  10812. <div
  10813. class="upload_send"
  10814. @click="addCourseWorksTeacher(taskCount)"
  10815. v-if="!proVisible"
  10816. >
  10817. 提交
  10818. </div>
  10819. </el-dialog>
  10820. <el-dialog
  10821. title="问答"
  10822. :visible.sync="answerDialogVisibleTeacher"
  10823. :append-to-body="true"
  10824. width="800px"
  10825. :before-close="handleClose"
  10826. class="dialog_diy"
  10827. >
  10828. <div>
  10829. <div class="w_name">
  10830. 学生姓名:<span>{{ sStudent.student }}</span>
  10831. </div>
  10832. <div
  10833. style="
  10834. display: flex;
  10835. flex-wrap: nowrap;
  10836. flex-direction: column;
  10837. position: relative;
  10838. "
  10839. >
  10840. <div class="queTop" style="padding: 20px 0 20px 0">
  10841. <div class="question">
  10842. <img src="../../assets/icon/question.png" alt />
  10843. </div>
  10844. <div class="queTitle">
  10845. <div style="width: 90px; min-width: 90px">提问:</div>
  10846. <div>{{ answerQ }}</div>
  10847. </div>
  10848. </div>
  10849. <div class="ediBottom">
  10850. <textarea
  10851. rows="6"
  10852. class="binfo_input"
  10853. cols
  10854. style="width: 95%; height: 120px"
  10855. v-model="questionAnswer"
  10856. ></textarea>
  10857. </div>
  10858. </div>
  10859. </div>
  10860. <div slot="footer">
  10861. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10862. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10863. </div>
  10864. </el-dialog>
  10865. <ImgDraw
  10866. :drawShow="drawShow"
  10867. @closeDraw="closeDraw"
  10868. @addImgDraw="addImgDraw"
  10869. :bg="bg"
  10870. ></ImgDraw>
  10871. <el-dialog
  10872. title="表格"
  10873. :visible.sync="dialogVisibleTable"
  10874. :append-to-body="true"
  10875. width="95%"
  10876. :before-close="handleClose"
  10877. class="dialog_diy"
  10878. >
  10879. <el-form>
  10880. <div>表格内容</div>
  10881. <Table
  10882. v-model="tableJson.text"
  10883. @change="change"
  10884. v-if="dialogVisibleTable"
  10885. ></Table>
  10886. </el-form>
  10887. <span slot="footer" class="dialog-footer">
  10888. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10889. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10890. </span>
  10891. </el-dialog>
  10892. <el-dialog
  10893. title="表格"
  10894. :visible.sync="dialogVisibleTableTeacher"
  10895. :append-to-body="true"
  10896. width="95%"
  10897. :before-close="handleClose"
  10898. class="dialog_diy"
  10899. >
  10900. <el-form>
  10901. <div class="w_name">
  10902. 学生姓名:<span>{{ sStudent.student }}</span>
  10903. </div>
  10904. <div>表格内容</div>
  10905. <Table
  10906. v-model="tableJson.text"
  10907. @change="change"
  10908. v-if="dialogVisibleTableTeacher"
  10909. ></Table>
  10910. </el-form>
  10911. <span slot="footer" class="dialog-footer">
  10912. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10913. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10914. </span>
  10915. </el-dialog>
  10916. <el-dialog
  10917. title="文档"
  10918. :visible.sync="dialogVisibleWord"
  10919. :append-to-body="true"
  10920. width="95%"
  10921. :before-close="handleClose"
  10922. class="dialog_diy"
  10923. >
  10924. <el-form>
  10925. <div>文档内容</div>
  10926. <editor-bar
  10927. v-model="wordJson.text"
  10928. v-if="dialogVisibleWord"
  10929. ></editor-bar>
  10930. </el-form>
  10931. <span slot="footer" class="dialog-footer">
  10932. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10933. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10934. </span>
  10935. </el-dialog>
  10936. <el-dialog
  10937. title="文档"
  10938. :visible.sync="dialogVisibleWordTeacher"
  10939. :append-to-body="true"
  10940. width="95%"
  10941. :before-close="handleClose"
  10942. class="dialog_diy"
  10943. >
  10944. <el-form>
  10945. <div class="w_name">
  10946. 学生姓名:<span>{{ sStudent.student }}</span>
  10947. </div>
  10948. <div>文档内容</div>
  10949. <editor-bar
  10950. v-model="wordJson.text"
  10951. v-if="dialogVisibleWordTeacher"
  10952. ></editor-bar>
  10953. </el-form>
  10954. <span slot="footer" class="dialog-footer">
  10955. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10956. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10957. </span>
  10958. </el-dialog>
  10959. <el-dialog
  10960. title="表格"
  10961. :visible.sync="dialogVisibleTable2"
  10962. :append-to-body="true"
  10963. width="95%"
  10964. :before-close="handleClose"
  10965. class="dialog_diy"
  10966. >
  10967. <el-form>
  10968. <div class="cont" v-html="tableJson.text"></div>
  10969. </el-form>
  10970. <span slot="footer" class="dialog-footer">
  10971. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10972. </span>
  10973. </el-dialog>
  10974. <el-dialog
  10975. title="文档"
  10976. :visible.sync="dialogVisibleTable3"
  10977. :append-to-body="true"
  10978. width="95%"
  10979. :before-close="handleClose"
  10980. class="dialog_diy"
  10981. >
  10982. <el-form>
  10983. <div class="cont" v-html="tableJson.text"></div>
  10984. </el-form>
  10985. <span slot="footer" class="dialog-footer">
  10986. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10987. </span>
  10988. </el-dialog>
  10989. <el-dialog
  10990. title="分组设置"
  10991. :visible.sync="dialogVisibleGroup"
  10992. :append-to-body="true"
  10993. width="95%"
  10994. :before-close="handleClose"
  10995. class="dialog_diy"
  10996. >
  10997. <div v-if="dialogVisibleGroup">
  10998. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10999. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11000. 提示:需要锁定位置,才能点击头像修改座位。
  11001. </div>
  11002. <div
  11003. type="primary"
  11004. v-if="groupJson.islock == 1"
  11005. class="returnBtn"
  11006. style="background-color: #225bc7"
  11007. @click="lockChair"
  11008. >
  11009. 锁定位置
  11010. </div>
  11011. <div
  11012. type="primary"
  11013. v-else
  11014. class="returnBtn"
  11015. style="background-color: #225bc7"
  11016. @click="lockChair"
  11017. >
  11018. 解锁位置
  11019. </div>
  11020. <div
  11021. type="primary"
  11022. @click="updateGroup"
  11023. class="returnBtn"
  11024. style="background-color: #225bc7"
  11025. >
  11026. 分组设置
  11027. </div>
  11028. </div>
  11029. <div>
  11030. <div
  11031. class="g_d_box"
  11032. v-if="groupJson.group && groupStudent[toolindex]"
  11033. >
  11034. <div
  11035. class="g_d_group"
  11036. v-for="(g, gindex) in groupJson.group"
  11037. :key="gindex"
  11038. >
  11039. <div class="g_d_group_chair">
  11040. <div v-if="groupJson.number > 1">
  11041. <span
  11042. :class="{
  11043. isChair:
  11044. groupStudent[toolindex][gindex] &&
  11045. groupStudent[toolindex][gindex][0],
  11046. updateChair:
  11047. courseDetail.userid == userid &&
  11048. groupStudent[toolindex][gindex] &&
  11049. groupStudent[toolindex][gindex][0] &&
  11050. groupJson.islock == 2,
  11051. }"
  11052. ><span
  11053. class="updateChairBtn"
  11054. @click="
  11055. updateGroupChair(
  11056. groupStudent[toolindex][gindex] &&
  11057. groupStudent[toolindex][gindex][0]
  11058. )
  11059. "
  11060. >修改</span
  11061. ></span
  11062. ><span>{{
  11063. groupStudent[toolindex][gindex] &&
  11064. groupStudent[toolindex][gindex][0]
  11065. ? groupStudent[toolindex][gindex] &&
  11066. groupStudent[toolindex][gindex][0].name
  11067. : "空位置"
  11068. }}</span>
  11069. </div>
  11070. <div v-if="groupJson.number > 4">
  11071. <span
  11072. :class="{
  11073. isChair:
  11074. groupStudent[toolindex][gindex] &&
  11075. groupStudent[toolindex][gindex][4],
  11076. updateChair:
  11077. courseDetail.userid == userid &&
  11078. groupStudent[toolindex][gindex] &&
  11079. groupStudent[toolindex][gindex][4] &&
  11080. groupJson.islock == 2,
  11081. }"
  11082. ><span
  11083. class="updateChairBtn"
  11084. @click="
  11085. updateGroupChair(
  11086. groupStudent[toolindex][gindex] &&
  11087. groupStudent[toolindex][gindex][4]
  11088. )
  11089. "
  11090. >修改</span
  11091. ></span
  11092. ><span>{{
  11093. groupStudent[toolindex][gindex] &&
  11094. groupStudent[toolindex][gindex][4]
  11095. ? groupStudent[toolindex][gindex] &&
  11096. groupStudent[toolindex][gindex][4].name
  11097. : "空位置"
  11098. }}</span>
  11099. </div>
  11100. <div v-if="groupJson.number > 8">
  11101. <span
  11102. :class="{
  11103. isChair:
  11104. groupStudent[toolindex][gindex] &&
  11105. groupStudent[toolindex][gindex][8],
  11106. updateChair:
  11107. courseDetail.userid == userid &&
  11108. groupStudent[toolindex][gindex] &&
  11109. groupStudent[toolindex][gindex][8] &&
  11110. groupJson.islock == 2,
  11111. }"
  11112. ><span
  11113. class="updateChairBtn"
  11114. @click="
  11115. updateGroupChair(
  11116. groupStudent[toolindex][gindex] &&
  11117. groupStudent[toolindex][gindex][8]
  11118. )
  11119. "
  11120. >修改</span
  11121. ></span
  11122. ><span>{{
  11123. groupStudent[toolindex][gindex] &&
  11124. groupStudent[toolindex][gindex][8]
  11125. ? groupStudent[toolindex][gindex] &&
  11126. groupStudent[toolindex][gindex][8].name
  11127. : "空位置"
  11128. }}</span>
  11129. </div>
  11130. </div>
  11131. <div class="g_d_group_tableBox">
  11132. <div class="g_d_group_chair2">
  11133. <div v-if="groupJson.number > 2">
  11134. <span
  11135. :class="{
  11136. isChair:
  11137. groupStudent[toolindex][gindex] &&
  11138. groupStudent[toolindex][gindex][2],
  11139. updateChair:
  11140. courseDetail.userid == userid &&
  11141. groupStudent[toolindex][gindex] &&
  11142. groupStudent[toolindex][gindex][2] &&
  11143. groupJson.islock == 2,
  11144. }"
  11145. ><span
  11146. class="updateChairBtn"
  11147. @click="
  11148. updateGroupChair(
  11149. groupStudent[toolindex][gindex] &&
  11150. groupStudent[toolindex][gindex][2]
  11151. )
  11152. "
  11153. >修改</span
  11154. ></span
  11155. ><span>{{
  11156. groupStudent[toolindex][gindex] &&
  11157. groupStudent[toolindex][gindex][2]
  11158. ? groupStudent[toolindex][gindex] &&
  11159. groupStudent[toolindex][gindex][2].name
  11160. : "空位置"
  11161. }}</span>
  11162. </div>
  11163. <div v-if="groupJson.number > 6">
  11164. <span
  11165. :class="{
  11166. isChair:
  11167. groupStudent[toolindex][gindex] &&
  11168. groupStudent[toolindex][gindex][6],
  11169. updateChair:
  11170. courseDetail.userid == userid &&
  11171. groupStudent[toolindex][gindex] &&
  11172. groupStudent[toolindex][gindex][6] &&
  11173. groupJson.islock == 2,
  11174. }"
  11175. ><span
  11176. class="updateChairBtn"
  11177. @click="
  11178. updateGroupChair(
  11179. groupStudent[toolindex][gindex] &&
  11180. groupStudent[toolindex][gindex][6]
  11181. )
  11182. "
  11183. >修改</span
  11184. ></span
  11185. ><span>{{
  11186. groupStudent[toolindex][gindex] &&
  11187. groupStudent[toolindex][gindex][6]
  11188. ? groupStudent[toolindex][gindex] &&
  11189. groupStudent[toolindex][gindex][6].name
  11190. : "空位置"
  11191. }}</span>
  11192. </div>
  11193. </div>
  11194. <div class="g_d_group_table">
  11195. <div>
  11196. {{ g.name }}
  11197. </div>
  11198. <div>
  11199. <div
  11200. v-if="
  11201. courseDetail.userid == userid && groupJson.islock == 2
  11202. "
  11203. @click="deleteGroupChair(gindex)"
  11204. >
  11205. 移除组员
  11206. </div>
  11207. <div
  11208. @click="selectGroup(gindex)"
  11209. v-else-if="
  11210. groupStudentUid[toolindex] &&
  11211. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11212. "
  11213. >
  11214. 加入分组
  11215. </div>
  11216. <div
  11217. @click="
  11218. exitGroup(
  11219. groupStudent[toolindex][gindex] &&
  11220. groupStudent[toolindex][gindex][
  11221. groupStudentUid[toolindex][gindex].indexOf(userid)
  11222. ].id
  11223. )
  11224. "
  11225. v-else-if="
  11226. groupStudentUid[toolindex] &&
  11227. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11228. "
  11229. >
  11230. 退出分组
  11231. </div>
  11232. </div>
  11233. </div>
  11234. <div class="g_d_group_chair2">
  11235. <div v-if="groupJson.number > 3">
  11236. <span
  11237. :class="{
  11238. isChair:
  11239. groupStudent[toolindex][gindex] &&
  11240. groupStudent[toolindex][gindex][3],
  11241. updateChair:
  11242. courseDetail.userid == userid &&
  11243. groupStudent[toolindex][gindex] &&
  11244. groupStudent[toolindex][gindex][3] &&
  11245. groupJson.islock == 2,
  11246. }"
  11247. ><span
  11248. class="updateChairBtn"
  11249. @click="
  11250. updateGroupChair(
  11251. groupStudent[toolindex][gindex] &&
  11252. groupStudent[toolindex][gindex][3]
  11253. )
  11254. "
  11255. >修改</span
  11256. ></span
  11257. ><span>{{
  11258. groupStudent[toolindex][gindex] &&
  11259. groupStudent[toolindex][gindex][3]
  11260. ? groupStudent[toolindex][gindex] &&
  11261. groupStudent[toolindex][gindex][3].name
  11262. : "空位置"
  11263. }}</span>
  11264. </div>
  11265. <div v-if="groupJson.number > 7">
  11266. <span
  11267. :class="{
  11268. isChair:
  11269. groupStudent[toolindex][gindex] &&
  11270. groupStudent[toolindex][gindex][7],
  11271. updateChair:
  11272. courseDetail.userid == userid &&
  11273. groupStudent[toolindex][gindex] &&
  11274. groupStudent[toolindex][gindex][7] &&
  11275. groupJson.islock == 2,
  11276. }"
  11277. ><span
  11278. class="updateChairBtn"
  11279. @click="
  11280. updateGroupChair(
  11281. groupStudent[toolindex][gindex] &&
  11282. groupStudent[toolindex][gindex][7]
  11283. )
  11284. "
  11285. >修改</span
  11286. ></span
  11287. ><span>{{
  11288. groupStudent[toolindex][gindex] &&
  11289. groupStudent[toolindex][gindex][7]
  11290. ? groupStudent[toolindex][gindex] &&
  11291. groupStudent[toolindex][gindex][7].name
  11292. : "空位置"
  11293. }}</span>
  11294. </div>
  11295. </div>
  11296. </div>
  11297. <div class="g_d_group_chair">
  11298. <div v-if="groupJson.number > 1">
  11299. <span
  11300. :class="{
  11301. isChair:
  11302. groupStudent[toolindex][gindex] &&
  11303. groupStudent[toolindex][gindex][1],
  11304. updateChair:
  11305. courseDetail.userid == userid &&
  11306. groupStudent[toolindex][gindex] &&
  11307. groupStudent[toolindex][gindex][1] &&
  11308. groupJson.islock == 2,
  11309. }"
  11310. ><span
  11311. class="updateChairBtn"
  11312. @click="
  11313. updateGroupChair(
  11314. groupStudent[toolindex][gindex] &&
  11315. groupStudent[toolindex][gindex][1]
  11316. )
  11317. "
  11318. >修改</span
  11319. ></span
  11320. ><span>{{
  11321. groupStudent[toolindex][gindex] &&
  11322. groupStudent[toolindex][gindex][1]
  11323. ? groupStudent[toolindex][gindex] &&
  11324. groupStudent[toolindex][gindex][1].name
  11325. : "空位置"
  11326. }}</span>
  11327. </div>
  11328. <div v-if="groupJson.number > 5">
  11329. <span
  11330. :class="{
  11331. isChair:
  11332. groupStudent[toolindex][gindex] &&
  11333. groupStudent[toolindex][gindex][5],
  11334. updateChair:
  11335. courseDetail.userid == userid &&
  11336. groupStudent[toolindex][gindex] &&
  11337. groupStudent[toolindex][gindex][5] &&
  11338. groupJson.islock == 2,
  11339. }"
  11340. ><span
  11341. class="updateChairBtn"
  11342. @click="
  11343. updateGroupChair(
  11344. groupStudent[toolindex][gindex] &&
  11345. groupStudent[toolindex][gindex][5]
  11346. )
  11347. "
  11348. >修改</span
  11349. ></span
  11350. ><span>{{
  11351. groupStudent[toolindex][gindex] &&
  11352. groupStudent[toolindex][gindex][5]
  11353. ? groupStudent[toolindex][gindex] &&
  11354. groupStudent[toolindex][gindex][5].name
  11355. : "空位置"
  11356. }}</span>
  11357. </div>
  11358. <div v-if="groupJson.number > 9">
  11359. <span
  11360. :class="{
  11361. isChair:
  11362. groupStudent[toolindex][gindex] &&
  11363. groupStudent[toolindex][gindex][9],
  11364. updateChair:
  11365. courseDetail.userid == userid &&
  11366. groupStudent[toolindex][gindex] &&
  11367. groupStudent[toolindex][gindex][9] &&
  11368. groupJson.islock == 2,
  11369. }"
  11370. ><span
  11371. class="updateChairBtn"
  11372. @click="
  11373. updateGroupChair(
  11374. groupStudent[toolindex][gindex] &&
  11375. groupStudent[toolindex][gindex][9]
  11376. )
  11377. "
  11378. >修改</span
  11379. ></span
  11380. ><span>{{
  11381. groupStudent[toolindex][gindex] &&
  11382. groupStudent[toolindex][gindex][9]
  11383. ? groupStudent[toolindex][gindex] &&
  11384. groupStudent[toolindex][gindex][9].name
  11385. : "空位置"
  11386. }}</span>
  11387. </div>
  11388. </div>
  11389. </div>
  11390. </div>
  11391. </div>
  11392. </div>
  11393. <span slot="footer" class="dialog-footer">
  11394. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11395. </span>
  11396. </el-dialog>
  11397. <el-dialog
  11398. title="分组设置"
  11399. :visible.sync="dialogVisibleGroup2"
  11400. :append-to-body="true"
  11401. width="650px"
  11402. :before-close="handleClose"
  11403. class="dialog_diy"
  11404. >
  11405. <div class="groupBox">
  11406. <div v-if="groupJson2.group" class="groupContent">
  11407. <div class="groupTitle">请设置小组数量及名称</div>
  11408. <div
  11409. v-for="(item, index) in groupJson2.group"
  11410. :key="index"
  11411. class="groupName"
  11412. >
  11413. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11414. <el-input
  11415. v-model="item.name"
  11416. placeholder="请输入名称..."
  11417. style="width: 250px"
  11418. ></el-input>
  11419. <!-- <div class="groupBtn">
  11420. <el-button type="primary" size="small" @click="addGroup(index)">
  11421. 添加</el-button>
  11422. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11423. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11424. </div> -->
  11425. </div>
  11426. </div>
  11427. <div class="groupContent">
  11428. <div class="groupTitle">请设置每组人数</div>
  11429. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11430. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11431. <el-input
  11432. v-model="groupJson.number"
  11433. style="width: 150px"
  11434. placeholder="请输入2-10的数字"
  11435. @change="numberPan"
  11436. ></el-input>
  11437. </div>
  11438. </div>
  11439. <span slot="footer" class="dialog-footer">
  11440. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11441. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11442. </span>
  11443. </el-dialog>
  11444. <el-dialog
  11445. title="作业提交"
  11446. :visible.sync="dialogVisibleGroupWork"
  11447. :append-to-body="true"
  11448. width="500px"
  11449. :before-close="handleClose"
  11450. class="dialog_change"
  11451. >
  11452. <div class="marginT">
  11453. <div>上传文件</div>
  11454. <div
  11455. class="chapter_add"
  11456. @click="addImg($event)"
  11457. v-if="studyJuri[0].cover.length == 0"
  11458. >
  11459. <div class="up_photo">
  11460. <img src="../../assets/icon/uploadImg.png" alt />
  11461. </div>
  11462. <!-- <input
  11463. type="file"
  11464. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11465. style="display: none"
  11466. @change="beforeUpload1($event, 1)"
  11467. /> -->
  11468. <input
  11469. type="file"
  11470. accept="*"
  11471. style="display: none"
  11472. @change="beforeUpload1($event, 1)"
  11473. />
  11474. </div>
  11475. <!-- capture="camera" -->
  11476. <div
  11477. class="chapter_add"
  11478. style="
  11479. display: flex;
  11480. width: 100%;
  11481. flex-direction: row;
  11482. flex-wrap: wrap;
  11483. justify-content: flex-start;
  11484. padding: 15px 0;
  11485. "
  11486. v-if="studyJuri[0].cover.length > 0"
  11487. >
  11488. <div class="upCover">
  11489. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11490. <img :src="word" alt v-else-if="fileType == 1" />
  11491. <img :src="video" alt v-else-if="fileType == 2" />
  11492. <img :src="word2" alt v-else-if="fileType == 3" />
  11493. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11494. <div class="deleteWord" @click="clean(1)">
  11495. <img src="../../assets/icon/deleteWorks.png" alt />
  11496. </div>
  11497. </div>
  11498. </div>
  11499. </div>
  11500. <div
  11501. class="upload_send"
  11502. @click="addCourseWorks2(taskCount)"
  11503. v-if="!proVisible"
  11504. >
  11505. 提交
  11506. </div>
  11507. </el-dialog>
  11508. <el-dialog
  11509. title="修改分组"
  11510. :visible.sync="dialogVisibleUpdateGroup"
  11511. :append-to-body="true"
  11512. width="350px"
  11513. :before-close="handleClose"
  11514. class="dialog_diy"
  11515. >
  11516. <div>
  11517. <h2>
  11518. {{ this.updateGroupUser.name }}
  11519. </h2>
  11520. <div style="color: rgb(171 171 171); margin-top: 10px">
  11521. 请选择要进入的分组
  11522. </div>
  11523. <el-radio-group v-model="checkChair">
  11524. <el-radio
  11525. style="display: block; margin-top: 20px"
  11526. v-for="(item, index) in updateGroupArray"
  11527. :label="item.label"
  11528. :key="index"
  11529. >{{ item.name }}</el-radio
  11530. >
  11531. </el-radio-group>
  11532. </div>
  11533. <span slot="footer" class="dialog-footer">
  11534. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11535. <el-button type="primary" @click="updateChair">确定</el-button>
  11536. </span>
  11537. </el-dialog>
  11538. <el-dialog
  11539. title="移除组员"
  11540. :visible.sync="dialogVisibleDeleteGroup"
  11541. :append-to-body="true"
  11542. width="350px"
  11543. :before-close="handleClose"
  11544. class="dialog_diy"
  11545. >
  11546. <div>
  11547. <h2>
  11548. {{ this.deleteGroupArray.name }}
  11549. </h2>
  11550. <div style="color: rgb(171 171 171); margin-top: 10px">
  11551. 请选择要删除的组员
  11552. </div>
  11553. <el-checkbox-group v-model="checkDeleteGroup">
  11554. <el-checkbox
  11555. style="display: block; margin-top: 20px"
  11556. v-for="(item, index) in deleteGroupUser"
  11557. :label="item.userid"
  11558. :key="index"
  11559. >{{ item.name }}</el-checkbox
  11560. >
  11561. </el-checkbox-group>
  11562. </div>
  11563. <span slot="footer" class="dialog-footer">
  11564. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11565. <el-button type="primary" @click="deleteChair">确定</el-button>
  11566. </span>
  11567. </el-dialog>
  11568. <el-dialog
  11569. title="批量上传"
  11570. :visible.sync="dialogVisiblePl"
  11571. :append-to-body="true"
  11572. width="700px"
  11573. :before-close="handleClose"
  11574. class="dialog_change"
  11575. >
  11576. <div class="marginT">
  11577. <div class="plworkBox">
  11578. <div
  11579. class="chapter_add"
  11580. style="
  11581. display: flex;
  11582. width: 150px;
  11583. flex-direction: row;
  11584. flex-wrap: wrap;
  11585. justify-content: flex-start;
  11586. margin: 0 10px 10px 0;
  11587. "
  11588. v-for="(item, index) in plworkFile"
  11589. :key="index"
  11590. >
  11591. <div class="upCover2">
  11592. <img
  11593. :src="item.url"
  11594. alt
  11595. v-if="item.fileType == 1"
  11596. @click="previewImg(item.url)"
  11597. />
  11598. <img :src="word" alt v-else-if="item.fileType == 4" />
  11599. <img :src="video" alt v-else />
  11600. <!-- <span class="picName">{{ item.name }}</span> -->
  11601. <!-- <el-input
  11602. v-model="item.username"
  11603. placeholder="请输入学生名字"
  11604. style="margin-top: 10px"
  11605. ></el-input> -->
  11606. <div
  11607. class="pl_select_box"
  11608. @click="
  11609. getUpdateMore(true, checkUpload(), item.username, index)
  11610. "
  11611. >
  11612. {{ getSName(item.username) }}
  11613. </div>
  11614. <!-- <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  11615. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  11616. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  11617. </el-option>
  11618. </el-select> -->
  11619. <div class="deleteWord" @click="clean2(index)">
  11620. <img src="../../assets/icon/deleteWorks.png" alt />
  11621. </div>
  11622. </div>
  11623. </div>
  11624. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11625. <div class="up_photo2">
  11626. <img src="../../assets/icon/plwork.png" alt />
  11627. <span>点击上传文件</span>
  11628. </div>
  11629. <input
  11630. type="file"
  11631. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11632. multiple="multiple"
  11633. style="display: none"
  11634. @change="beforeUpload3($event, 6)"
  11635. />
  11636. </div>
  11637. </div>
  11638. </div>
  11639. <!-- capture="camera" -->
  11640. <div
  11641. class="upload_send"
  11642. @click="addCourseWorksPl(taskCount)"
  11643. v-if="!proVisible2"
  11644. >
  11645. 提交
  11646. </div>
  11647. </el-dialog>
  11648. <el-dialog
  11649. title="修改名称"
  11650. :visible.sync="dialogVisibleSname"
  11651. width="500px"
  11652. :before-close="handleClose"
  11653. class="dialog_diy"
  11654. center
  11655. >
  11656. <div
  11657. style="
  11658. text-align: center;
  11659. display: flex;
  11660. align-items: center;
  11661. justify-content: center;
  11662. "
  11663. >
  11664. <span class="tian1">名称</span>
  11665. <div
  11666. class="pl_select_box"
  11667. style="margin-left: 10px; width: 200px"
  11668. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11669. >
  11670. {{ getSName(worksSName) }}
  11671. </div>
  11672. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11673. placeholder="请选择学生">
  11674. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11675. :value="item.userid">
  11676. </el-option>
  11677. </el-select> -->
  11678. <!-- <el-input
  11679. v-model="worksSName"
  11680. style="width: 250px; margin: 15px 0px"
  11681. ></el-input> -->
  11682. </div>
  11683. <span slot="footer" class="dialog-footer">
  11684. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11685. <el-button type="primary" @click="updateName">确 定</el-button>
  11686. </span>
  11687. </el-dialog>
  11688. <interVideo
  11689. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11690. :videoJson="videoJson"
  11691. :userid="userid"
  11692. :id="id"
  11693. :courseType="courseType"
  11694. :taskCount="taskCount"
  11695. :toolindex="toolindex"
  11696. ></interVideo>
  11697. <UpdateMore
  11698. :dialogVisibleMember.sync="dialogVisibleMember"
  11699. :cList="uploadStudentJuri"
  11700. :userid="userid"
  11701. :searchTN="worksSName2"
  11702. @setPlname="setPlname"
  11703. ></UpdateMore>
  11704. <wordCloud
  11705. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11706. :data="wordCloudData"
  11707. ></wordCloud>
  11708. <el-dialog
  11709. title="挑人"
  11710. :visible.sync="dialogVisiblePickPeople"
  11711. width="650px"
  11712. :before-close="handleClose"
  11713. class="dialog_diy"
  11714. center
  11715. >
  11716. <div class="pick_box">
  11717. <div
  11718. class="noWorksName"
  11719. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11720. v-for="(item, index) in uploadStudentJuri"
  11721. :key="index"
  11722. @click="pickStudent(item)"
  11723. >
  11724. {{ item.name }}
  11725. </div>
  11726. </div>
  11727. </el-dialog>
  11728. </div>
  11729. </template>
  11730. <script>
  11731. import "../../common/aws-sdk-2.235.1.min.js";
  11732. // import pdf from "../components/pdf3";
  11733. import pdf from "../components/vpdf";
  11734. import AskStatic from "../components/askStatic";
  11735. import AskStatic2 from "../components/askStatic2";
  11736. import AnswerData2 from "../components/answerData2";
  11737. import AnswerData from "../components/answerData";
  11738. import EditorBar from "../tools/wangEnduit.vue";
  11739. import Table from "../tools/table.vue";
  11740. import Time from "../tools/time.vue";
  11741. import Mind from "../tools/jsmind.vue";
  11742. import Sunburst from "../tools/sunburst";
  11743. import SeeBoard from "../tools/seeBoard";
  11744. import * as imageConversion from "image-conversion";
  11745. import Audio from "../components/audio.vue";
  11746. import ImgDraw from "../tools/imgDraw/imgDraw";
  11747. import { Empty } from "element-ui";
  11748. import RecordRTC from "recordrtc";
  11749. import interVideo from "../interVideo/index.vue";
  11750. import UpdateMore from "../updateMore/updateMore.vue";
  11751. import wordCloud from "../wordCloud/index.vue";
  11752. export default {
  11753. components: {
  11754. EditorBar,
  11755. Time,
  11756. pdf,
  11757. AskStatic,
  11758. AskStatic2,
  11759. Mind,
  11760. Sunburst,
  11761. SeeBoard,
  11762. AnswerData2,
  11763. AnswerData,
  11764. Audio,
  11765. ImgDraw,
  11766. Table,
  11767. interVideo,
  11768. UpdateMore,
  11769. wordCloud,
  11770. },
  11771. data() {
  11772. return {
  11773. bg: null,
  11774. drawShow: false,
  11775. dialogVisible: false,
  11776. dialogVisiblePl: false,
  11777. commentDialogVisible: false,
  11778. videoVisible: false,
  11779. isStar: false,
  11780. studentEvalDialogVisible: false,
  11781. studentEvalDialogVisibleTeacher: false,
  11782. dialogVisibleSelect: false,
  11783. dialogVisibleSelectTeacher: false,
  11784. dialogVisibleScore: false,
  11785. dialogVisibleSentence: false,
  11786. dialogVisibleSentenceTeacher: false,
  11787. dialogVisibleSentence1: false,
  11788. dialogVisibleWorks: false,
  11789. answerDialogVisibleTeacher: false,
  11790. dialogVisibleTable: false,
  11791. dialogVisibleTableTeacher: false,
  11792. dialogVisibleWord: false,
  11793. dialogVisibleWordTeacher: false,
  11794. dialogVisibleTable2: false,
  11795. dialogVisibleTable3: false,
  11796. dialogVisibleGroupWork: false,
  11797. dialogVisibleUpdateGroup: false,
  11798. dialogVisibleDeleteGroup: false,
  11799. dialogVisibleSname: false,
  11800. dialogVisibleVideo: false,
  11801. dialogVisiblePickPeople: false,
  11802. worksSName: "",
  11803. classJuri: [],
  11804. uploadStudentJuri: [],
  11805. uploadCid: "",
  11806. snameWid: "",
  11807. sStudent: {},
  11808. sTool: "",
  11809. bzText: "",
  11810. commentDetail: [],
  11811. selectAnswer: [],
  11812. videoDetail: {},
  11813. selectJson: {},
  11814. eScore: { eBzText: "", eStar: [] },
  11815. id: this.$route.query.courseId,
  11816. userid: this.$route.query.userid,
  11817. classId: this.$route.query.cid,
  11818. // courseTypeLine: this.$route.query.type,
  11819. oid: this.$route.query.oid,
  11820. org: this.$route.query.org,
  11821. tType: this.$route.query.tType,
  11822. courseType: this.$route.query.type,
  11823. screenType: this.$route.query.screenType,
  11824. tcid2: this.$route.query.tcid,
  11825. tcid: "",
  11826. pptImgUrl: "",
  11827. pptImgUrl1: "",
  11828. commentText: "",
  11829. full: false,
  11830. sIsOpen: false,
  11831. IsLookOpen: false,
  11832. IsFollow: false,
  11833. pzDialog: false,
  11834. contentDialog: false,
  11835. mlDialog: false,
  11836. type: 1,
  11837. isClose: 0,
  11838. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11839. sentenceList1: [],
  11840. tableJson: [],
  11841. wordJson: [],
  11842. vedio: [],
  11843. text: [],
  11844. textList: [],
  11845. line: [],
  11846. lineList: [],
  11847. chapTools: [],
  11848. chapToolList: [],
  11849. file: [],
  11850. fileC: [],
  11851. vedioTime: [],
  11852. upToolImg: "",
  11853. preTime: 0,
  11854. rateList: {
  11855. ca: 0,
  11856. },
  11857. rateParams: [],
  11858. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11859. studyJuri: [
  11860. {
  11861. content: "",
  11862. cover: [],
  11863. upVedio: [],
  11864. upFile: [],
  11865. },
  11866. ],
  11867. plworkFile: [],
  11868. mr: require("../../assets/vedioPic.png"),
  11869. word: require("../../assets/icon/isWord.png"),
  11870. word2: require("../../assets/icon/word2.png"),
  11871. video: require("../../assets/icon/isVideo.png"),
  11872. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11873. likes: require("../../assets/icon/comment/likes.png"),
  11874. scoreImg: require("../../assets/score.png"),
  11875. courseDetail: {},
  11876. isSelect: false,
  11877. chapInfo: [],
  11878. chapInfoList: [],
  11879. taskCount: 0,
  11880. imgList: [],
  11881. noImgList: [],
  11882. pzList: [],
  11883. PlTextList: [
  11884. "Excellent!",
  11885. "nice!",
  11886. "很有创意!",
  11887. "还不错哦~",
  11888. "继续努力哦~",
  11889. ],
  11890. isClickNav: "",
  11891. navId: "",
  11892. playerOptions: {
  11893. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11894. autoplay: false, //如果true,浏览器准备好时开始回放。
  11895. muted: false, // 默认情况下将会消除任何音频。
  11896. loop: false, // 导致视频一结束就重新开始。
  11897. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11898. language: "zh-CN",
  11899. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11900. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11901. sources: [
  11902. {
  11903. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11904. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11905. },
  11906. ],
  11907. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11908. // poster: dataRes.imgUrl, //你的封面地址
  11909. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11910. controlBar: {
  11911. timeDivider: true, //当前时间和持续时间的分隔符
  11912. durationDisplay: true, //显示持续时间
  11913. remainingTimeDisplay: false, //是否显示剩余时间功能
  11914. fullscreenToggle: true, //全屏按钮
  11915. },
  11916. },
  11917. playerOptions1: {
  11918. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11919. autoplay: false, //如果true,浏览器准备好时开始回放。
  11920. muted: false, // 默认情况下将会消除任何音频。
  11921. loop: false, // 导致视频一结束就重新开始。
  11922. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11923. language: "zh-CN",
  11924. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11925. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11926. sources: [
  11927. {
  11928. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11929. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11930. },
  11931. ],
  11932. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11933. // poster: dataRes.imgUrl, //你的封面地址
  11934. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11935. controlBar: {
  11936. timeDivider: true, //当前时间和持续时间的分隔符
  11937. durationDisplay: true, //显示持续时间
  11938. remainingTimeDisplay: false, //是否显示剩余时间功能
  11939. fullscreenToggle: true, //全屏按钮
  11940. },
  11941. },
  11942. playerO: {},
  11943. noneBtnImg: false,
  11944. proVisible: false,
  11945. proVisible2: false,
  11946. progress: 0,
  11947. isFinishSize: 0,
  11948. isAllSize: 0,
  11949. questionAnswer: "",
  11950. answerQ: "", //问答标题
  11951. rateJson: [],
  11952. wbCount: 0,
  11953. wordCount: 0,
  11954. mindCount: 0,
  11955. askCount: 0,
  11956. noteCount: 0,
  11957. mindNetWorkCount: 0,
  11958. libraryCount: 0,
  11959. workCount: 0,
  11960. timeCount: 0,
  11961. answerCount: 0,
  11962. trainCount: 0,
  11963. evalCount: 0,
  11964. dialogImageUrl: "",
  11965. pictureDialog: false,
  11966. toolTypeList: [],
  11967. dialogVisible1: false,
  11968. dialogVisible2: false,
  11969. dialogVisible3: false,
  11970. dialogVisible6: false,
  11971. dialogVisible4: false,
  11972. isNoHomeWork: false,
  11973. dialogVisible5: false,
  11974. dialogVisible5Teacher: false,
  11975. dialogVisibleChoice: false,
  11976. dialogVisibleChoiceTeacher: false,
  11977. answerDialogVisible: false,
  11978. juriVisible: false,
  11979. timeDialogVisible: false,
  11980. radio: [],
  11981. isAsk: false,
  11982. askJson: {
  11983. askCount: 1,
  11984. askTitle: "",
  11985. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11986. },
  11987. testJson: {},
  11988. checkJson: [],
  11989. askList: [],
  11990. answerList: [],
  11991. navList: [],
  11992. addPzDialog: false,
  11993. ispzType: 1,
  11994. pzConText: "",
  11995. worksStudent: [],
  11996. worksStudent2: [],
  11997. worksTeacher: [],
  11998. isCloseList: [],
  11999. workStudent: [],
  12000. groupStudent: [],
  12001. groupStudentUid: [],
  12002. noWorksS: [],
  12003. isWorksS: [],
  12004. noWorksStudent: [],
  12005. toolindex: 0,
  12006. groupIndex: 0,
  12007. workTypeB: false,
  12008. workTypeC: false,
  12009. isAnswer: false,
  12010. timer: null,
  12011. opertimer: null,
  12012. showType: 0,
  12013. fileType: 0,
  12014. showPDF: false,
  12015. noteName: "",
  12016. evaJuri: [],
  12017. evalua: "",
  12018. eTitle: "",
  12019. eName: "",
  12020. eJson: {},
  12021. fid: "", //一级
  12022. sid: "", //二级
  12023. tid: "", //二级
  12024. typeMode: 1,
  12025. eJSONNum: 0,
  12026. Etype: 1,
  12027. data: {
  12028. meta: {
  12029. name: "example",
  12030. author: "dd@163.com",
  12031. version: "0.2",
  12032. },
  12033. format: "node_array",
  12034. data: [{ id: "root", isroot: true, topic: "" }],
  12035. },
  12036. fullDialogVisible: false,
  12037. fulltype: "",
  12038. fullUrl: "",
  12039. commentIndexJson: {},
  12040. Stbodywidth: 0,
  12041. pzType: 1,
  12042. wScore: 0,
  12043. scoreDetail: "",
  12044. videoStart: false,
  12045. recorder: null,
  12046. groupJson: {},
  12047. groupJson2: {},
  12048. dialogVisibleGroup: false,
  12049. dialogVisibleGroup2: false,
  12050. updateGroupArray: [],
  12051. updateGroupUser: {},
  12052. deleteGroupUser: [],
  12053. deleteGroupArray: {},
  12054. checkChair: "",
  12055. checkDeleteGroup: [],
  12056. inviteCode: "",
  12057. courseGroupStudent: [],
  12058. courseGroupStudentUid: [],
  12059. courseGroup: {},
  12060. isGroup: false,
  12061. toolIndex: null,
  12062. tool: {},
  12063. isWorkTool: [
  12064. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12065. ], //, 40
  12066. videoJson: {},
  12067. toolType: 0,
  12068. checktoolArray: [],
  12069. vChapterData: [],
  12070. isUpdateToolDetail: false,
  12071. updateToolDetailInner: "",
  12072. plIndex: "",
  12073. worksSName2: "",
  12074. worksSid: "",
  12075. dialogVisibleWordCloud: false,
  12076. wordCloudData: [],
  12077. isPickStudent: [],
  12078. pzStype: 1,
  12079. };
  12080. },
  12081. methods: {
  12082. jump() {
  12083. window.parent.postMessage({ tools: "43" }, "*");
  12084. },
  12085. getUpdateMore(f, checkboxList, searchTN, index) {
  12086. this.dialogVisibleMember = f;
  12087. this.checkboxList = checkboxList;
  12088. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12089. this.plIndex = index;
  12090. },
  12091. setPlname(a) {
  12092. if (this.plworkFile.length) {
  12093. this.plworkFile[this.plIndex].username = a;
  12094. } else {
  12095. this.worksSName = a;
  12096. }
  12097. this.dialogVisibleMember = false;
  12098. },
  12099. previewImg(url) {
  12100. this.$hevueImgPreview(url);
  12101. },
  12102. checkImg(list) {
  12103. if (!list.length) {
  12104. return;
  12105. }
  12106. this.$hevueImgPreview({
  12107. multiple: true, // 开启多图预览模式
  12108. imgList: list, // 需要预览的多图数组
  12109. });
  12110. },
  12111. change(val) {
  12112. console.log(val);
  12113. },
  12114. goTo(path) {
  12115. this.$router.push(path);
  12116. },
  12117. handlePictureCardPreview(url) {
  12118. this.dialogImageUrl = url;
  12119. this.pictureDialog = true;
  12120. },
  12121. clean(type) {
  12122. if (type == 1) {
  12123. this.studyJuri[0].cover.splice(0, 1);
  12124. } else if (type == 2) {
  12125. this.studyJuri[0].upVedio.splice(0, 1);
  12126. } else {
  12127. this.studyJuri[0].upFile.splice(0, 1);
  12128. }
  12129. },
  12130. clean2(index) {
  12131. this.plworkFile.splice(index, 1);
  12132. },
  12133. handleClose(done) {
  12134. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12135. this.videoDetail.sources[0].src = "";
  12136. }
  12137. this.commentIndexJson = {};
  12138. done();
  12139. },
  12140. fullTools() {
  12141. this.full = !this.full;
  12142. },
  12143. imgChange(file, fileList, type) {
  12144. if (type == 1) {
  12145. var _tmp = this.studyJuri[0].cover;
  12146. } else if (type == 2) {
  12147. var _tmp = this.studyJuri[0].upVedio;
  12148. } else {
  12149. var _tmp = this.studyJuri[0].upFile;
  12150. }
  12151. this.noneBtnImg = _tmp.length >= 1;
  12152. },
  12153. setContent(bool) {
  12154. this.contentDialog = bool;
  12155. if (bool && this.mlDialog) {
  12156. document.querySelector(".workd_media").style.height = "650px";
  12157. } else {
  12158. document.querySelector(".workd_media").style.height = "auto";
  12159. }
  12160. },
  12161. setContent2(bool) {
  12162. this.mlDialog = bool;
  12163. if (bool && this.contentDialog) {
  12164. document.querySelector(".workd_media").style.height = "650px";
  12165. } else {
  12166. document.querySelector(".workd_media").style.height = "auto";
  12167. }
  12168. },
  12169. addImg(e) {
  12170. var el = e.currentTarget;
  12171. // this.$message.success('触发上传')
  12172. el.getElementsByTagName("input")[0].click();
  12173. e.target.value = "";
  12174. },
  12175. addSelectAnswer() {
  12176. let params = [
  12177. {
  12178. uid: this.userid,
  12179. cid: this.id,
  12180. stage: this.courseType,
  12181. task: this.taskCount,
  12182. tool: this.toolindex,
  12183. content: this.selectAnswer.answer,
  12184. type: 7,
  12185. },
  12186. ];
  12187. this.ajax
  12188. .post(this.$store.state.api + "addCourseWorks", params)
  12189. .then((res) => {
  12190. this.$message({
  12191. message: "提交成功",
  12192. type: "success",
  12193. });
  12194. this.dialogVisibleSelect = false;
  12195. // this.selectAnswer = {};
  12196. this.selectSWorks();
  12197. this.selectStudent();
  12198. })
  12199. .catch((err) => {
  12200. this.$message.error("提交失败");
  12201. console.error(err);
  12202. });
  12203. },
  12204. addSelectAnswerTeacher() {
  12205. let params = [
  12206. {
  12207. uid: this.sStudent.userid,
  12208. cid: this.id,
  12209. stage: this.courseType,
  12210. task: this.taskCount,
  12211. tool: this.toolindex,
  12212. content: this.selectAnswer.answer,
  12213. type: 7,
  12214. },
  12215. ];
  12216. this.ajax
  12217. .post(this.$store.state.api + "addCourseWorks", params)
  12218. .then((res) => {
  12219. this.$message({
  12220. message: "提交成功",
  12221. type: "success",
  12222. });
  12223. this.dialogVisibleSelectTeacher = false;
  12224. // this.selectAnswer = {};
  12225. this.selectSWorks();
  12226. this.selectStudent();
  12227. })
  12228. .catch((err) => {
  12229. this.$message.error("提交失败");
  12230. console.error(err);
  12231. });
  12232. },
  12233. addSenWorks() {
  12234. for (var i = 0; i < this.sentenceList.length; i++) {
  12235. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12236. if (
  12237. this.sentenceList[i].chooseSenList[j] == undefined ||
  12238. this.sentenceList[i].chooseSenList[j] == ""
  12239. ) {
  12240. this.$message.error("请将答案填写完整!");
  12241. return;
  12242. }
  12243. }
  12244. }
  12245. let params = [
  12246. {
  12247. uid: this.userid,
  12248. cid: this.id,
  12249. stage: this.courseType,
  12250. task: this.taskCount,
  12251. tool: this.toolindex,
  12252. content: JSON.stringify(this.sentenceList),
  12253. type: 9,
  12254. },
  12255. ];
  12256. this.ajax
  12257. .post(this.$store.state.api + "addCourseWorks", params)
  12258. .then((res) => {
  12259. this.$message({
  12260. message: "提交成功",
  12261. type: "success",
  12262. });
  12263. this.dialogVisibleSentence = false;
  12264. // this.selectAnswer = {};
  12265. this.selectSWorks();
  12266. this.selectStudent();
  12267. })
  12268. .catch((err) => {
  12269. this.$message.error("提交失败");
  12270. console.error(err);
  12271. });
  12272. },
  12273. addSenWorksTeacher() {
  12274. for (var i = 0; i < this.sentenceList.length; i++) {
  12275. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12276. if (
  12277. this.sentenceList[i].chooseSenList[j] == undefined ||
  12278. this.sentenceList[i].chooseSenList[j] == ""
  12279. ) {
  12280. this.$message.error("请将答案填写完整!");
  12281. return;
  12282. }
  12283. }
  12284. }
  12285. let params = [
  12286. {
  12287. uid: this.sStudent.userid,
  12288. cid: this.id,
  12289. stage: this.courseType,
  12290. task: this.taskCount,
  12291. tool: this.toolindex,
  12292. content: JSON.stringify(this.sentenceList),
  12293. type: 9,
  12294. },
  12295. ];
  12296. this.ajax
  12297. .post(this.$store.state.api + "addCourseWorks", params)
  12298. .then((res) => {
  12299. this.$message({
  12300. message: "提交成功",
  12301. type: "success",
  12302. });
  12303. this.dialogVisibleSentenceTeacher = false;
  12304. // this.selectAnswer = {};
  12305. this.selectSWorks();
  12306. this.selectStudent();
  12307. })
  12308. .catch((err) => {
  12309. this.$message.error("提交失败");
  12310. console.error(err);
  12311. });
  12312. },
  12313. addTableWorks() {
  12314. let params = [
  12315. {
  12316. uid: this.userid,
  12317. cid: this.id,
  12318. stage: this.courseType,
  12319. task: this.taskCount,
  12320. tool: this.toolindex,
  12321. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12322. type: 10,
  12323. },
  12324. ];
  12325. this.ajax
  12326. .post(this.$store.state.api + "addCourseWorks", params)
  12327. .then((res) => {
  12328. this.$message({
  12329. message: "提交成功",
  12330. type: "success",
  12331. });
  12332. this.dialogVisibleTable = false;
  12333. // this.selectAnswer = {};
  12334. this.selectSWorks();
  12335. this.selectStudent();
  12336. })
  12337. .catch((err) => {
  12338. this.$message.error("提交失败");
  12339. console.error(err);
  12340. });
  12341. },
  12342. addTableWorksTeacher() {
  12343. let params = [
  12344. {
  12345. uid: this.sStudent.userid,
  12346. cid: this.id,
  12347. stage: this.courseType,
  12348. task: this.taskCount,
  12349. tool: this.toolindex,
  12350. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12351. type: 10,
  12352. },
  12353. ];
  12354. this.ajax
  12355. .post(this.$store.state.api + "addCourseWorks", params)
  12356. .then((res) => {
  12357. this.$message({
  12358. message: "提交成功",
  12359. type: "success",
  12360. });
  12361. this.dialogVisibleTableTeacher = false;
  12362. // this.selectAnswer = {};
  12363. this.selectSWorks();
  12364. this.selectStudent();
  12365. })
  12366. .catch((err) => {
  12367. this.$message.error("提交失败");
  12368. console.error(err);
  12369. });
  12370. },
  12371. addWordWorks() {
  12372. let params = [
  12373. {
  12374. uid: this.userid,
  12375. cid: this.id,
  12376. stage: this.courseType,
  12377. task: this.taskCount,
  12378. tool: this.toolindex,
  12379. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12380. type: 13,
  12381. atool: 52,
  12382. },
  12383. ];
  12384. console.log(params);
  12385. this.ajax
  12386. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12387. .then((res) => {
  12388. this.$message({
  12389. message: "提交成功",
  12390. type: "success",
  12391. });
  12392. this.dialogVisibleWord = false;
  12393. // this.selectAnswer = {};
  12394. this.selectSWorks();
  12395. this.selectStudent();
  12396. })
  12397. .catch((err) => {
  12398. this.$message.error("提交失败");
  12399. console.error(err);
  12400. });
  12401. },
  12402. addWordWorksTeacher() {
  12403. let params = [
  12404. {
  12405. uid: this.sStudent.userid,
  12406. cid: this.id,
  12407. stage: this.courseType,
  12408. task: this.taskCount,
  12409. tool: this.toolindex,
  12410. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12411. type: 13,
  12412. atool: 52,
  12413. },
  12414. ];
  12415. console.log(params);
  12416. this.ajax
  12417. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12418. .then((res) => {
  12419. this.$message({
  12420. message: "提交成功",
  12421. type: "success",
  12422. });
  12423. this.dialogVisibleWordTeacher = false;
  12424. // this.selectAnswer = {};
  12425. this.selectSWorks();
  12426. this.selectStudent();
  12427. })
  12428. .catch((err) => {
  12429. this.$message.error("提交失败");
  12430. console.error(err);
  12431. });
  12432. },
  12433. addCourseWorks(i) {
  12434. var typesql;
  12435. if (this.fileType === 0) {
  12436. typesql = 1;
  12437. } else if (this.fileType === 1) {
  12438. typesql = 4;
  12439. } else if (this.fileType === 2) {
  12440. typesql = 5;
  12441. } else if (this.fileType === 3) {
  12442. typesql = 12;
  12443. }
  12444. if (!this.studyJuri[0].cover[0].url) {
  12445. this.$message.error("请上传文件");
  12446. return;
  12447. }
  12448. let params = [
  12449. {
  12450. uid: this.userid,
  12451. cid: this.id,
  12452. stage: this.courseType,
  12453. task: i,
  12454. tool: this.toolindex,
  12455. content: this.studyJuri[0].cover[0].url,
  12456. type: typesql,
  12457. },
  12458. ];
  12459. this.ajax
  12460. .post(this.$store.state.api + "addCourseWorksR", params)
  12461. .then((res) => {
  12462. this.$message({
  12463. message: "提交成功",
  12464. type: "success",
  12465. });
  12466. this.studyJuri[0].cover = [];
  12467. this.dialogVisible = false;
  12468. this.getCourseDetail();
  12469. })
  12470. .catch((err) => {
  12471. this.$message.error("提交失败");
  12472. console.error(err);
  12473. });
  12474. },
  12475. addCourseWorksPl(i) {
  12476. let _files = this.plworkFile;
  12477. var c = 1;
  12478. for (var k = 0; k < _files.length; k++) {
  12479. if (!_files[k].username) {
  12480. c = 2;
  12481. }
  12482. }
  12483. if (c == 2) {
  12484. this.$message.error("请填写学生姓名");
  12485. return;
  12486. }
  12487. let params = [
  12488. {
  12489. ateacher: this.userid,
  12490. cid: this.id,
  12491. stage: this.courseType,
  12492. task: i,
  12493. tool: this.toolindex,
  12494. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12495. },
  12496. ];
  12497. this.ajax
  12498. .post(this.$store.state.api + "addCourseWorksPl", params)
  12499. .then((res) => {
  12500. this.$message({
  12501. message: "提交成功",
  12502. type: "success",
  12503. });
  12504. this.plworkFile = [];
  12505. this.dialogVisiblePl = false;
  12506. this.getCourseDetail();
  12507. })
  12508. .catch((err) => {
  12509. this.$message.error("提交失败");
  12510. console.error(err);
  12511. });
  12512. },
  12513. addCourseWorks2(i) {
  12514. var typesql;
  12515. if (this.fileType === 0) {
  12516. typesql = 0;
  12517. } else if (this.fileType === 1) {
  12518. typesql = 1;
  12519. } else if (this.fileType === 2) {
  12520. typesql = 3;
  12521. } else if (this.fileType === 3) {
  12522. typesql = 12;
  12523. }
  12524. if (!this.studyJuri[0].cover[0].url) {
  12525. this.$message.error("请上传文件");
  12526. return;
  12527. }
  12528. let params = [
  12529. {
  12530. uid: this.userid,
  12531. cid: this.id,
  12532. stage: this.courseType,
  12533. task: i,
  12534. tool: this.toolindex,
  12535. content: JSON.stringify({
  12536. type: typesql,
  12537. groupIndex: this.groupIndex,
  12538. url: this.studyJuri[0].cover[0].url,
  12539. }).replaceAll(/%/g, "%25"),
  12540. type: 11,
  12541. atool: 49,
  12542. text: "",
  12543. },
  12544. ];
  12545. this.ajax
  12546. .post(this.$store.state.api + "addCourseWorks5", params)
  12547. .then((res) => {
  12548. this.$message({
  12549. message: "提交成功",
  12550. type: "success",
  12551. });
  12552. this.studyJuri[0].cover = [];
  12553. this.dialogVisibleGroupWork = false;
  12554. this.getCourseDetail();
  12555. })
  12556. .catch((err) => {
  12557. this.$message.error("提交失败");
  12558. console.error(err);
  12559. });
  12560. },
  12561. addCourseWorksGong(i, data, tool) {
  12562. let params = [
  12563. {
  12564. uid: this.userid,
  12565. cid: this.id,
  12566. stage: this.courseType,
  12567. task: this.taskCount,
  12568. tool: i,
  12569. content: data,
  12570. type: 12,
  12571. atool: tool,
  12572. text: "",
  12573. },
  12574. ];
  12575. this.ajax
  12576. .post(this.$store.state.api + "addCourseWorks5", params)
  12577. .then((res) => {
  12578. this.$message({
  12579. message: "提交成功",
  12580. type: "success",
  12581. });
  12582. this.studyJuri[0].cover = [];
  12583. this.selectSWorks();
  12584. this.selectStudent();
  12585. })
  12586. .catch((err) => {
  12587. this.$message.error("提交失败");
  12588. console.error(err);
  12589. });
  12590. },
  12591. addCourseWorksGongTeacher(i, data, tool) {
  12592. let params = [
  12593. {
  12594. uid: this.sStudent.userid,
  12595. cid: this.id,
  12596. stage: this.courseType,
  12597. task: this.taskCount,
  12598. tool: i,
  12599. content: data,
  12600. type: 12,
  12601. atool: tool,
  12602. text: "",
  12603. },
  12604. ];
  12605. this.ajax
  12606. .post(this.$store.state.api + "addCourseWorks5", params)
  12607. .then((res) => {
  12608. this.$message({
  12609. message: "提交成功",
  12610. type: "success",
  12611. });
  12612. this.studyJuri[0].cover = [];
  12613. this.dialogVisibleWorks = false;
  12614. this.selectSWorks();
  12615. this.selectStudent();
  12616. })
  12617. .catch((err) => {
  12618. this.$message.error("提交失败");
  12619. console.error(err);
  12620. });
  12621. },
  12622. addCourseWorksGongPl(i, data, tool, type) {
  12623. let params = [
  12624. {
  12625. uid: this.sStudent.userid,
  12626. cid: this.id,
  12627. stage: this.courseType,
  12628. task: this.taskCount,
  12629. tool: i,
  12630. content: data,
  12631. type: type,
  12632. atool: tool,
  12633. text: "",
  12634. },
  12635. ];
  12636. this.ajax
  12637. .post(this.$store.state.api + "addCourseWorks5", params)
  12638. .then((res) => {
  12639. this.$message({
  12640. message: "提交成功",
  12641. type: "success",
  12642. });
  12643. this.studyJuri[0].cover = [];
  12644. this.dialogVisibleWorks = false;
  12645. this.selectSWorks();
  12646. this.selectStudent();
  12647. })
  12648. .catch((err) => {
  12649. this.$message.error("提交失败");
  12650. console.error(err);
  12651. });
  12652. },
  12653. addCourseWorksTeacher(i) {
  12654. var typesql;
  12655. if (this.sTool == 32) {
  12656. this.addCourseWorksGongTeacher(
  12657. this.toolindex,
  12658. this.studyJuri[0].cover[0].url,
  12659. this.sTool
  12660. );
  12661. return;
  12662. }
  12663. if (this.fileType === 0) {
  12664. typesql = 1;
  12665. } else if (this.fileType === 1) {
  12666. typesql = 4;
  12667. } else if (this.fileType === 2) {
  12668. typesql = 5;
  12669. } else if (this.fileType === 3) {
  12670. typesql = 12;
  12671. }
  12672. if (this.sTool == 50) {
  12673. this.addCourseWorksGongPl(
  12674. this.toolindex,
  12675. this.studyJuri[0].cover[0].url,
  12676. this.sTool,
  12677. typesql
  12678. );
  12679. return;
  12680. }
  12681. if (!this.studyJuri[0].cover[0].url) {
  12682. this.$message.error("请上传文件");
  12683. return;
  12684. }
  12685. let params = [
  12686. {
  12687. uid: this.sStudent.userid,
  12688. cid: this.id,
  12689. stage: this.courseType,
  12690. task: i,
  12691. tool: this.toolindex,
  12692. content: this.studyJuri[0].cover[0].url,
  12693. type: typesql,
  12694. ateacher: this.userid,
  12695. },
  12696. ];
  12697. this.ajax
  12698. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12699. .then((res) => {
  12700. this.$message({
  12701. message: "提交成功",
  12702. type: "success",
  12703. });
  12704. this.studyJuri[0].cover = [];
  12705. this.dialogVisibleWorks = false;
  12706. this.getCourseDetail();
  12707. })
  12708. .catch((err) => {
  12709. this.$message.error("提交失败");
  12710. console.error(err);
  12711. });
  12712. },
  12713. selectUploadStudent(type) {
  12714. const loading = this.$loading.service({
  12715. background: "rgba(255, 255, 255, 0.7)",
  12716. target: document.body,
  12717. });
  12718. let params = {
  12719. cid: this.uploadCid,
  12720. oid: this.oid,
  12721. cn: "",
  12722. };
  12723. this.ajax
  12724. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12725. .then((res) => {
  12726. loading.close();
  12727. var studentK = [];
  12728. if (this.isWorksS[this.toolindex].length > 0) {
  12729. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12730. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12731. }
  12732. studentK = studentK.join(",");
  12733. }
  12734. this.uploadStudentJuri = res.data[0].filter((el) => {
  12735. return studentK.indexOf(el.userid) == -1;
  12736. });
  12737. if (this.worksSName && this.worksSid) {
  12738. this.uploadStudentJuri.push({
  12739. userid: this.worksSid,
  12740. name: this.worksSName,
  12741. });
  12742. }
  12743. if (type == 1) {
  12744. this.plworkFile = [];
  12745. this.dialogVisibleSname = true;
  12746. } else if (type == 2) {
  12747. this.dialogVisiblePl = true;
  12748. }
  12749. })
  12750. .catch((err) => {
  12751. loading.close();
  12752. console.error(err);
  12753. });
  12754. },
  12755. selectPickStudent() {
  12756. const loading = this.$loading.service({
  12757. background: "rgba(255, 255, 255, 0.7)",
  12758. target: document.body,
  12759. });
  12760. let params = {
  12761. cid: this.uploadCid,
  12762. oid: this.oid,
  12763. cn: "",
  12764. };
  12765. this.ajax
  12766. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12767. .then((res) => {
  12768. loading.close();
  12769. this.uploadStudentJuri = res.data[0];
  12770. this.dialogVisiblePickPeople = true;
  12771. })
  12772. .catch((err) => {
  12773. loading.close();
  12774. console.error(err);
  12775. });
  12776. },
  12777. arrayToArray(arrayo, arrayt) {
  12778. let array1 = arrayo;
  12779. let array2 = arrayt;
  12780. let commonElements = [];
  12781. for (let i = 0; i < array1.length; i++) {
  12782. for (let j = 0; j < array2.length; j++) {
  12783. if (array1[i] === array2[j]) {
  12784. commonElements.push(array1[i]);
  12785. }
  12786. }
  12787. }
  12788. return commonElements;
  12789. },
  12790. selectWorksStudent() {
  12791. let params = {
  12792. oid: this.oid,
  12793. cid: this.courseDetail.juri,
  12794. };
  12795. this.ajax
  12796. .get(this.$store.state.api + "selectWorksStudent", params)
  12797. .then((res) => {
  12798. var a = res.data[0];
  12799. for (var i = 0; i < this.isWorksS.length; i++) {
  12800. this.noWorksS[i] = [];
  12801. var studentK = [];
  12802. if (this.isWorksS[i].length > 0) {
  12803. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12804. studentK.push(this.isWorksS[i][z].uid);
  12805. }
  12806. studentK = studentK.join(",");
  12807. for (var j = 0; j < a.length; j++) {
  12808. // if (studentK.indexOf(a[j].userid) == -1) {
  12809. if (this.tcid) {
  12810. // a[j].classid.indexOf(this.tcid) != -1
  12811. if (
  12812. this.arrayToArray(
  12813. a[j].classid.split(","),
  12814. this.tcid.split(",")
  12815. ).length
  12816. ) {
  12817. this.noWorksS[i].push({
  12818. student: a[j].name,
  12819. userid: a[j].userid,
  12820. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12821. });
  12822. }
  12823. } else {
  12824. this.noWorksS[i].push({
  12825. student: a[j].name,
  12826. userid: a[j].userid,
  12827. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12828. });
  12829. }
  12830. // }
  12831. }
  12832. } else {
  12833. for (var k = 0; k < a.length; k++) {
  12834. if (this.tcid) {
  12835. if (
  12836. this.arrayToArray(
  12837. a[k].classid.split(","),
  12838. this.tcid.split(",")
  12839. ).length
  12840. ) {
  12841. this.noWorksS[i].push({
  12842. student: a[k].name,
  12843. userid: a[k].userid,
  12844. type: "1",
  12845. });
  12846. }
  12847. } else {
  12848. this.noWorksS[i].push({
  12849. student: a[k].name,
  12850. userid: a[k].userid,
  12851. type: "1",
  12852. });
  12853. }
  12854. }
  12855. }
  12856. // this.noWorksS[i] = this.noWorksS[i].sort(function (a, b) {
  12857. // let jscoreA = parseInt(a.type);
  12858. // let jscoreB = parseInt(b.type);
  12859. // return jscoreB - jscoreA;
  12860. // });
  12861. }
  12862. this.$forceUpdate();
  12863. if (
  12864. Object.keys(this.commentDetail).length &&
  12865. Object.keys(this.commentIndexJson).length &&
  12866. !this.dialogVisibleScore
  12867. ) {
  12868. let a = 1;
  12869. let c = this.commentIndexJson;
  12870. console.log(c);
  12871. if (
  12872. this.commentIndexJson.gindex ||
  12873. this.commentIndexJson.gindex === 0
  12874. ) {
  12875. for (
  12876. var i = 0;
  12877. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12878. i++
  12879. ) {
  12880. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12881. groupA: for (var k = 0; k < _el.length; k++) {
  12882. let el = _el[k];
  12883. if (el.wid == this.commentDetail.wid) {
  12884. a = 2;
  12885. this.commentOther(
  12886. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12887. this.commentIndexJson.toolIndex,
  12888. k,
  12889. this.commentIndexJson.gindex
  12890. );
  12891. break groupA;
  12892. }
  12893. }
  12894. }
  12895. if (a === 1) {
  12896. this.commentDetail = [];
  12897. this.commentIndexJson = {};
  12898. this.commentDialogVisible = false;
  12899. this.$message("此作业已被删除");
  12900. }
  12901. } else {
  12902. if (this.isGroup && this.commentIndexJson.gid) {
  12903. groupA: for (
  12904. var i = 0;
  12905. i < this.courseGroup.group.length;
  12906. i++
  12907. ) {
  12908. let _group = this.courseGroup.group[i];
  12909. if (_group.id == this.commentIndexJson.gid) {
  12910. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12911. for (var k = 0; k < _el2.length; k++) {
  12912. let el2 = _el2[k];
  12913. if (el2.wid == this.commentDetail.wid) {
  12914. a = 2;
  12915. this.commentOther(
  12916. _el2[k],
  12917. this.commentIndexJson.toolIndex,
  12918. k,
  12919. null,
  12920. this.commentIndexJson.gid
  12921. );
  12922. break groupA;
  12923. }
  12924. }
  12925. }
  12926. }
  12927. }
  12928. if (a == 1) {
  12929. for (
  12930. var i = 0;
  12931. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12932. i++
  12933. ) {
  12934. let el =
  12935. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12936. if (el.wid == this.commentDetail.wid) {
  12937. a = 2;
  12938. this.commentOther(
  12939. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12940. this.commentIndexJson.toolIndex,
  12941. i
  12942. );
  12943. break;
  12944. }
  12945. }
  12946. }
  12947. if (a === 1) {
  12948. this.commentDetail = [];
  12949. this.commentIndexJson = {};
  12950. this.commentDialogVisible = false;
  12951. this.$message("此作业已被删除");
  12952. }
  12953. }
  12954. }
  12955. })
  12956. .catch((err) => {
  12957. console.error(err);
  12958. });
  12959. },
  12960. selectStudent() {},
  12961. openVideo(w) {
  12962. this.videoDetail = {};
  12963. this.playerOptions1.sources[0].src = w.works;
  12964. this.videoDetail = this.playerOptions1;
  12965. this.videoVisible = true;
  12966. },
  12967. isLikes(wid, uid, t, c, isLikes) {
  12968. if (isLikes == false) {
  12969. let params = [
  12970. {
  12971. wid: wid,
  12972. lid: uid,
  12973. t: t,
  12974. c: c,
  12975. },
  12976. ];
  12977. this.ajax
  12978. .post(this.$store.state.api + "insertComment", params)
  12979. .then((res) => {
  12980. this.$message({
  12981. message: "点赞成功",
  12982. type: "success",
  12983. });
  12984. this.selectSWorks();
  12985. this.selectStudent();
  12986. })
  12987. .catch((err) => {
  12988. this.$message.error("点赞失败");
  12989. console.error(err);
  12990. });
  12991. } else {
  12992. let params = {
  12993. wid: wid,
  12994. lid: uid,
  12995. type: t,
  12996. };
  12997. this.ajax
  12998. .get(this.$store.state.api + "deleteComment", params)
  12999. .then((res) => {
  13000. this.$message({
  13001. message: "取消点赞成功",
  13002. type: "success",
  13003. });
  13004. this.selectSWorks();
  13005. this.selectStudent();
  13006. })
  13007. .catch((err) => {
  13008. console.error(err);
  13009. });
  13010. }
  13011. },
  13012. deleteComment(wid) {
  13013. this.$confirm("确定删除此评论吗?", "提示", {
  13014. confirmButtonText: "确定",
  13015. cancelButtonText: "取消",
  13016. type: "warning",
  13017. })
  13018. .then(() => {
  13019. let params = {
  13020. id: wid,
  13021. };
  13022. this.ajax
  13023. .get(this.$store.state.api + "deleteComment2", params)
  13024. .then((res) => {
  13025. this.$message({
  13026. message: "删除评论成功",
  13027. type: "success",
  13028. });
  13029. this.selectSWorks();
  13030. this.selectStudent();
  13031. })
  13032. .catch((err) => {
  13033. console.error(err);
  13034. });
  13035. })
  13036. .catch(() => {});
  13037. },
  13038. commentOther(w, toolIndex, wIndex, gindex, gid) {
  13039. this.commentIndexJson = {
  13040. toolIndex: toolIndex,
  13041. wIndex: wIndex,
  13042. gindex: gindex,
  13043. gid: gid,
  13044. };
  13045. this.commentDetail = [];
  13046. this.commentDialogVisible = true;
  13047. this.commentDetail = w;
  13048. if (w.works && w.type == 1) {
  13049. this.pptImgUrl = "";
  13050. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13051. if (
  13052. a.indexOf(
  13053. w.works
  13054. .split(".")
  13055. [w.works.split(".").length - 1].toLocaleUpperCase()
  13056. ) != -1
  13057. ) {
  13058. this.pptImgUrl =
  13059. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13060. this.showPDF = false;
  13061. } else if (
  13062. w.works
  13063. .split(".")
  13064. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13065. ) {
  13066. this.pptImgUrl = w.works;
  13067. this.showPDF = true;
  13068. }
  13069. } else if (w.works && w.type == 3) {
  13070. this.videoDetail = {};
  13071. this.playerOptions1.sources[0].src = w.works;
  13072. this.videoDetail = this.playerOptions1;
  13073. // this.videoVisible = true;
  13074. } else if (w.works && w.type == 4) {
  13075. this.eScore = JSON.parse(w.works);
  13076. this.rateJson =
  13077. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13078. this.taskCount
  13079. ].toolChoose[toolIndex].rateJson;
  13080. } else if (w.works && w.type == 10) {
  13081. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13082. } else if (w.works && w.type == 13) {
  13083. this.wordJson =
  13084. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13085. this.taskCount
  13086. ].toolChoose[toolIndex].wordJson;
  13087. }
  13088. },
  13089. openScore(w) {
  13090. this.wScore = 0;
  13091. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13092. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13093. this.commentDetail = [];
  13094. this.dialogVisibleScore = true;
  13095. this.commentDetail = w;
  13096. if (w.works && w.type == 1) {
  13097. this.pptImgUrl = "";
  13098. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13099. if (
  13100. a.indexOf(
  13101. w.works
  13102. .split(".")
  13103. [w.works.split(".").length - 1].toLocaleUpperCase()
  13104. ) != -1
  13105. ) {
  13106. this.pptImgUrl =
  13107. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13108. this.showPDF = false;
  13109. } else if (
  13110. w.works
  13111. .split(".")
  13112. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13113. ) {
  13114. this.pptImgUrl = w.works;
  13115. this.showPDF = true;
  13116. }
  13117. } else if (w.works && w.type == 3) {
  13118. this.videoDetail = {};
  13119. this.playerOptions1.sources[0].src = w.works;
  13120. this.videoDetail = this.playerOptions1;
  13121. }
  13122. },
  13123. addComment(wid, uid, t) {
  13124. if (this.commentText == "") {
  13125. this.$message.error("请输入评论");
  13126. return;
  13127. }
  13128. let params2 = [
  13129. {
  13130. wid: wid,
  13131. lid: uid,
  13132. t: t,
  13133. },
  13134. ];
  13135. this.ajax
  13136. .post(this.$store.state.api + "getComment", params2)
  13137. .then((res) => {
  13138. if (res.data[0].length > 0) {
  13139. this.$message.error("一个作业只能评论一条");
  13140. } else {
  13141. let params = [
  13142. {
  13143. wid: wid,
  13144. lid: uid,
  13145. t: t,
  13146. c: this.commentText,
  13147. },
  13148. ];
  13149. this.ajax
  13150. .post(this.$store.state.api + "insertComment", params)
  13151. .then((res) => {
  13152. this.$message({
  13153. message: "评论成功",
  13154. type: "success",
  13155. });
  13156. this.commentText = "";
  13157. this.selectSWorks();
  13158. this.selectStudent();
  13159. })
  13160. .catch((err) => {
  13161. this.$message.error("评论失败");
  13162. console.error(err);
  13163. });
  13164. }
  13165. })
  13166. .catch((err) => {
  13167. // this.$message.error("评论失败");
  13168. console.error(err);
  13169. });
  13170. },
  13171. scoreWork(wid) {
  13172. if (this.wScore == 0) {
  13173. this.$message.error("请评分");
  13174. return;
  13175. }
  13176. let params = [
  13177. {
  13178. wid: wid,
  13179. score: JSON.stringify({
  13180. wScore: this.wScore,
  13181. detail: this.scoreDetail,
  13182. }),
  13183. },
  13184. ];
  13185. this.ajax
  13186. .post(this.$store.state.api + "scoreWork", params)
  13187. .then((res) => {
  13188. this.$message({
  13189. message: "评分成功",
  13190. type: "success",
  13191. });
  13192. this.wScore = 0;
  13193. this.scoreDetail = "";
  13194. this.dialogVisibleScore = false;
  13195. this.selectSWorks();
  13196. this.selectStudent();
  13197. })
  13198. .catch((err) => {
  13199. this.$message.error("评分失败");
  13200. console.error(err);
  13201. });
  13202. },
  13203. openXz(w, i) {
  13204. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13205. .taskJson[this.taskCount].toolChoose[i].selectJson
  13206. ? JSON.parse(
  13207. JSON.stringify(
  13208. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13209. this.taskCount
  13210. ].toolChoose[i].selectJson
  13211. )
  13212. )
  13213. : { url: "", select: [], answer: [] };
  13214. var a = w.works.split(",");
  13215. for (var k = 0; k < a.length; k++) {
  13216. a[k] = parseInt(a[k]);
  13217. }
  13218. this.selectAnswer = { answer: a, stu: w.sName };
  13219. this.isSelect = true;
  13220. this.dialogVisibleSelect = true;
  13221. },
  13222. openSen(w, i) {
  13223. this.sentenceList1 = JSON.parse(w.works);
  13224. this.sentenceList1.stuName = w.sName;
  13225. this.dialogVisibleSentence1 = true;
  13226. },
  13227. openPj(w, toolindex) {
  13228. this.isStar = true;
  13229. this.eScore = JSON.parse(w);
  13230. this.rateJson =
  13231. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13232. this.taskCount
  13233. ].toolChoose[toolindex].rateJson;
  13234. this.studentEvalDialogVisible = true;
  13235. },
  13236. deleteWorks(id) {
  13237. this.$confirm("确定删除此作业吗?", "提示", {
  13238. confirmButtonText: "确定",
  13239. cancelButtonText: "取消",
  13240. type: "warning",
  13241. })
  13242. .then(() => {
  13243. let params = [
  13244. {
  13245. id: id,
  13246. },
  13247. ];
  13248. this.ajax
  13249. .post(this.$store.state.api + "deleteCourseWork", params)
  13250. .then((res) => {
  13251. this.$message({
  13252. message: "删除成功",
  13253. type: "success",
  13254. });
  13255. this.selectStudent();
  13256. this.selectSWorks();
  13257. this.selectSLook();
  13258. })
  13259. .catch((err) => {
  13260. this.$message.error("网络异常");
  13261. console.error(err);
  13262. });
  13263. })
  13264. .catch(() => {});
  13265. },
  13266. selectSWorks(gindex) {
  13267. //教师查看全部作业
  13268. let params = {
  13269. cid: this.id,
  13270. s: this.courseType,
  13271. t: this.taskCount,
  13272. };
  13273. this.ajax
  13274. .get(this.$store.state.api + "selectSWorks", params)
  13275. .then((res) => {
  13276. var a =
  13277. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13278. this.taskCount
  13279. ].toolChoose;
  13280. var b = res.data[0];
  13281. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13282. var y = [
  13283. "AVI",
  13284. "NAVI",
  13285. "MPEG",
  13286. "ASF",
  13287. "MOV",
  13288. "WMV",
  13289. "3GP",
  13290. "RM",
  13291. "RMVB",
  13292. "FLV",
  13293. "F4V",
  13294. "H.264",
  13295. "H.265",
  13296. "REAL VIDEO",
  13297. "MKV",
  13298. "WebM",
  13299. "HDDVD",
  13300. "MP4",
  13301. "MPG",
  13302. "M4V",
  13303. "MGV",
  13304. "OGV",
  13305. "QTM",
  13306. "STR",
  13307. "AMC",
  13308. "DVX",
  13309. "EVO",
  13310. "DAT",
  13311. "OGG",
  13312. "OGM",
  13313. ];
  13314. var d = res.data[1];
  13315. var e = res.data[2];
  13316. var f = res.data[3];
  13317. for (var i = 0; i < a.length; i++) {
  13318. this.worksStudent[i] = [];
  13319. this.worksTeacher[i] = [];
  13320. this.worksStudent2[i] = [];
  13321. if (
  13322. !this.isCloseList[i] ||
  13323. this.isCloseList[i].isClose == undefined
  13324. ) {
  13325. this.isCloseList[i] = { isClose: 0 };
  13326. }
  13327. this.groupStudent[i] = [];
  13328. this.groupStudentUid[i] = [];
  13329. this.isWorksS[i] = [];
  13330. this.checkJson[i] = [];
  13331. if (a[i].tool[0] == 49) {
  13332. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13333. this.groupStudent[i][gA] = [];
  13334. this.groupStudentUid[i][gA] = [];
  13335. this.worksStudent[i][gA] = [];
  13336. this.isCloseList[i][gA] = [];
  13337. for (var g = 0; g < f.length; g++) {
  13338. if (
  13339. f[g].ttype == 2 &&
  13340. this.tcid &&
  13341. this.arrayToArray(
  13342. f[g].classid.split(","),
  13343. this.tcid.split(",")
  13344. ).length == 0
  13345. ) {
  13346. continue;
  13347. }
  13348. if (gA == f[g].group && f[g].tool == i) {
  13349. this.groupStudent[i][gA].push(f[g]);
  13350. this.groupStudentUid[i][gA].push(f[g].userid);
  13351. }
  13352. }
  13353. }
  13354. this.$forceUpdate();
  13355. }
  13356. for (var j = 0; j < b.length; j++) {
  13357. if (
  13358. b[j].ttype == 2 &&
  13359. this.tcid &&
  13360. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13361. .length == 0
  13362. ) {
  13363. continue;
  13364. }
  13365. var likesCount = 0;
  13366. var commentCount = 0;
  13367. var isLikes = false;
  13368. var commentJson = [];
  13369. var data = b[j];
  13370. if (i == b[j].tool) {
  13371. if (data.type == 2 && a[i].tool[0] == 4) {
  13372. // if(JSON.parse(data.content)[0].anwer){
  13373. var checkL =
  13374. JSON.parse(data.content)[0].anwer instanceof Array
  13375. ? JSON.parse(data.content)[0].anwer
  13376. : JSON.parse(data.content)[0].anwer.split(",");
  13377. for (var z = 0; z < checkL.length; z++) {
  13378. if (!this.checkJson[i][z]) {
  13379. this.checkJson[i].push({
  13380. checkCount: [],
  13381. checkPerson: [],
  13382. rightPerson: [],
  13383. });
  13384. }
  13385. if (!this.checkJson[i][z].checkCount.length) {
  13386. this.checkJson[i][z].checkCount = [];
  13387. let _askItemCount = JSON.parse(data.content)[0].askJson
  13388. .askJson[z].askItem;
  13389. for (var aic = 0; aic < _askItemCount; aic++) {
  13390. this.checkJson[i][z].checkCount.push(0);
  13391. }
  13392. }
  13393. if (checkL[z] instanceof Array) {
  13394. if (
  13395. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13396. checkL[z].sort().join(",")
  13397. ) {
  13398. this.checkJson[i][z].rightPerson.push(data.name);
  13399. }
  13400. for (var q = 0; q < checkL[z].length; q++) {
  13401. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13402. ? this.checkJson[i][z].checkPerson[
  13403. parseInt(checkL[z][q])
  13404. ].push(data.name)
  13405. : (this.checkJson[i][z].checkPerson[
  13406. parseInt(checkL[z][q])
  13407. ] = [data.name]);
  13408. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13409. ? this.checkJson[i][z].checkCount[
  13410. parseInt(checkL[z][q])
  13411. ]++
  13412. : (this.checkJson[i][z].checkCount[
  13413. parseInt(checkL[z][q])
  13414. ] = 1);
  13415. }
  13416. } else {
  13417. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13418. this.checkJson[i][z].rightPerson.push(data.name);
  13419. }
  13420. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13421. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13422. ? this.checkJson[i][z].checkPerson[
  13423. parseInt(checkL[z])
  13424. ].push(data.name)
  13425. : (this.checkJson[i][z].checkPerson[
  13426. parseInt(checkL[z])
  13427. ] = [data.name]);
  13428. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13429. ? this.checkJson[i][z].checkCount[
  13430. parseInt(checkL[z])
  13431. ]++
  13432. : (this.checkJson[i][z].checkCount[
  13433. parseInt(checkL[z])
  13434. ] = 1);
  13435. }
  13436. }
  13437. }
  13438. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13439. var checkL = JSON.parse(data.content)[0].anwer;
  13440. for (var z = 0; z < checkL.length; z++) {
  13441. if (!this.checkJson[i][z]) {
  13442. this.checkJson[i].push({
  13443. checkCount: [],
  13444. checkPerson: [],
  13445. rightPerson: [],
  13446. });
  13447. }
  13448. if (!this.checkJson[i][z].checkCount.length) {
  13449. this.checkJson[i][z].checkCount = [];
  13450. let _askItemCount = JSON.parse(data.content)[0].testJson
  13451. .testJson[z].testItem;
  13452. console.log(_askItemCount);
  13453. for (var aic = 0; aic < _askItemCount; aic++) {
  13454. this.checkJson[i][z].checkCount.push(0);
  13455. }
  13456. }
  13457. if (checkL[z] instanceof Array) {
  13458. if (
  13459. JSON.parse(data.content)[0]
  13460. .testJson.testJson[z].answer.sort()
  13461. .join(",") == 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 (
  13483. JSON.parse(data.content)[0].testJson.testJson[z]
  13484. .answer == checkL[z]
  13485. ) {
  13486. this.checkJson[i][z].rightPerson.push(data.name);
  13487. }
  13488. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13489. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13490. ? this.checkJson[i][z].checkPerson[
  13491. parseInt(checkL[z])
  13492. ].push(data.name)
  13493. : (this.checkJson[i][z].checkPerson[
  13494. parseInt(checkL[z])
  13495. ] = [data.name]);
  13496. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13497. ? this.checkJson[i][z].checkCount[
  13498. parseInt(checkL[z])
  13499. ]++
  13500. : (this.checkJson[i][z].checkCount[
  13501. parseInt(checkL[z])
  13502. ] = 1);
  13503. }
  13504. }
  13505. }
  13506. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13507. var checkL = JSON.parse(data.content);
  13508. for (var z = 0; z < checkL.length; z++) {
  13509. if (!this.checkJson[i][z]) {
  13510. this.checkJson[i].push({
  13511. checkCount: [],
  13512. checkPerson: [],
  13513. rightPerson: [],
  13514. });
  13515. }
  13516. this.checkJson[i][z].checkPerson.push(data.name);
  13517. if (
  13518. checkL[z].chooseSenList.toString() ==
  13519. checkL[z].rightAnswer.toString()
  13520. ) {
  13521. this.checkJson[i][z].rightPerson.push(data.name);
  13522. }
  13523. }
  13524. }
  13525. for (var k = 0; k < d.length; k++) {
  13526. //点赞
  13527. if (d[k].workId == b[j].id) {
  13528. likesCount++;
  13529. if (d[k].likesId == this.userid) {
  13530. isLikes = true;
  13531. }
  13532. }
  13533. }
  13534. for (var l = 0; l < e.length; l++) {
  13535. //评论
  13536. if (e[l].workId == b[j].id) {
  13537. if (e[l].comment != "") {
  13538. commentCount++;
  13539. commentJson.push({
  13540. commentText: e[l].comment,
  13541. commentTime: e[l].commentTime,
  13542. commentPeople: e[l].commentPeople,
  13543. userid: e[l].userid,
  13544. wid: e[l].id,
  13545. });
  13546. }
  13547. }
  13548. }
  13549. if (
  13550. (b[j].type == 1 ||
  13551. b[j].type == 4 ||
  13552. b[j].type == 5 ||
  13553. b[j].type == 6 ||
  13554. b[j].type == 12 ||
  13555. b[j].type == 7) &&
  13556. a[i].tool[0] != 15 &&
  13557. a[i].tool[0] != 4 &&
  13558. a[i].tool[0] != 45 &&
  13559. a[i].tool[0] != 50 &&
  13560. a[i].tool[0] != 32 &&
  13561. a[i].tool[0] != 57 &&
  13562. a[i].tool[0] != 52
  13563. ) {
  13564. if (
  13565. c.indexOf(
  13566. b[j].content
  13567. .split(".")
  13568. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13569. ) != -1 &&
  13570. a[i].tool[0] == 16 &&
  13571. b[j].atool != 50
  13572. ) {
  13573. let _works = {
  13574. userid: b[j].userid,
  13575. ateacher: b[j].ateacher,
  13576. wid: b[j].id,
  13577. works: b[j].content,
  13578. sName: b[j].name,
  13579. type: 1,
  13580. time: b[j].time,
  13581. score: b[j].score,
  13582. img: b[j].img,
  13583. likesCount: likesCount,
  13584. commentCount: commentCount,
  13585. isLikes: isLikes,
  13586. commentJson: commentJson,
  13587. };
  13588. if (b[j].ttype == 1) {
  13589. this.worksTeacher[i].push(_works);
  13590. } else {
  13591. this.worksStudent2[i].push(_works);
  13592. }
  13593. this.worksStudent[i].push(_works);
  13594. this.isWorksS[i].push({
  13595. uid: b[j].userid,
  13596. sName: b[j].name,
  13597. });
  13598. } else if (
  13599. y.indexOf(
  13600. b[j].content
  13601. .split(".")
  13602. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13603. ) != -1 &&
  13604. a[i].tool[0] == 16 &&
  13605. b[j].atool != 50
  13606. ) {
  13607. let _works = {
  13608. userid: b[j].userid,
  13609. ateacher: b[j].ateacher,
  13610. wid: b[j].id,
  13611. works: b[j].content,
  13612. sName: b[j].name,
  13613. type: 3,
  13614. time: b[j].time,
  13615. score: b[j].score,
  13616. img: b[j].img,
  13617. likesCount: likesCount,
  13618. commentCount: commentCount,
  13619. isLikes: isLikes,
  13620. commentJson: commentJson,
  13621. };
  13622. if (b[j].ttype == 1) {
  13623. this.worksTeacher[i].push(_works);
  13624. } else {
  13625. this.worksStudent2[i].push(_works);
  13626. }
  13627. this.worksStudent[i].push(_works);
  13628. this.isWorksS[i].push({
  13629. uid: b[j].userid,
  13630. sName: b[j].name,
  13631. });
  13632. } else if (b[j].type == 6 && b[j].atool != 50) {
  13633. let _works = {
  13634. userid: b[j].userid,
  13635. ateacher: b[j].ateacher,
  13636. wid: b[j].id,
  13637. works: b[j].content,
  13638. sName: b[j].name,
  13639. type: 4,
  13640. time: b[j].time,
  13641. score: b[j].score,
  13642. img: b[j].img,
  13643. likesCount: likesCount,
  13644. commentCount: commentCount,
  13645. isLikes: isLikes,
  13646. commentJson: commentJson,
  13647. };
  13648. if (b[j].ttype == 1) {
  13649. this.worksTeacher[i].push(_works);
  13650. } else {
  13651. this.worksStudent2[i].push(_works);
  13652. }
  13653. this.worksStudent[i].push(_works);
  13654. this.isWorksS[i].push({
  13655. uid: b[j].userid,
  13656. sName: b[j].name,
  13657. });
  13658. } else if (b[j].type == 7 && b[j].atool != 50) {
  13659. let _works = {
  13660. userid: b[j].userid,
  13661. ateacher: b[j].ateacher,
  13662. wid: b[j].id,
  13663. works: b[j].content,
  13664. sName: b[j].name,
  13665. type: 5,
  13666. time: b[j].time,
  13667. score: b[j].score,
  13668. img: b[j].img,
  13669. likesCount: likesCount,
  13670. commentCount: commentCount,
  13671. isLikes: isLikes,
  13672. commentJson: commentJson,
  13673. };
  13674. if (b[j].ttype == 1) {
  13675. this.worksTeacher[i].push(_works);
  13676. } else {
  13677. this.worksStudent2[i].push(_works);
  13678. }
  13679. this.worksStudent[i].push(_works);
  13680. this.isWorksS[i].push({
  13681. uid: b[j].userid,
  13682. sName: b[j].name,
  13683. });
  13684. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13685. let _works = {
  13686. userid: b[j].userid,
  13687. ateacher: b[j].ateacher,
  13688. wid: b[j].id,
  13689. works: b[j].content,
  13690. sName: b[j].name,
  13691. type: 12,
  13692. time: b[j].time,
  13693. score: b[j].score,
  13694. img: b[j].img,
  13695. likesCount: likesCount,
  13696. commentCount: commentCount,
  13697. isLikes: isLikes,
  13698. commentJson: commentJson,
  13699. };
  13700. if (b[j].ttype == 1) {
  13701. this.worksTeacher[i].push(_works);
  13702. } else {
  13703. this.worksStudent2[i].push(_works);
  13704. }
  13705. this.worksStudent[i].push(_works);
  13706. this.isWorksS[i].push({
  13707. uid: b[j].userid,
  13708. sName: b[j].name,
  13709. });
  13710. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13711. let _works = {
  13712. userid: b[j].userid,
  13713. ateacher: b[j].ateacher,
  13714. wid: b[j].id,
  13715. works: b[j].content,
  13716. sName: b[j].name,
  13717. type: 0,
  13718. time: b[j].time,
  13719. score: b[j].score,
  13720. img: b[j].img,
  13721. likesCount: likesCount,
  13722. commentCount: commentCount,
  13723. isLikes: isLikes,
  13724. commentJson: commentJson,
  13725. };
  13726. if (b[j].ttype == 1) {
  13727. this.worksTeacher[i].push(_works);
  13728. } else {
  13729. this.worksStudent2[i].push(_works);
  13730. }
  13731. this.worksStudent[i].push(_works);
  13732. this.isWorksS[i].push({
  13733. uid: b[j].userid,
  13734. sName: b[j].name,
  13735. });
  13736. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13737. let _works = {
  13738. userid: b[j].userid,
  13739. ateacher: b[j].ateacher,
  13740. wid: b[j].id,
  13741. works: b[j].content,
  13742. sName: b[j].name,
  13743. type: 0,
  13744. time: b[j].time,
  13745. score: b[j].score,
  13746. img: b[j].img,
  13747. likesCount: likesCount,
  13748. commentCount: commentCount,
  13749. isLikes: isLikes,
  13750. commentJson: commentJson,
  13751. };
  13752. if (b[j].ttype == 1) {
  13753. this.worksTeacher[i].push(_works);
  13754. } else {
  13755. this.worksStudent2[i].push(_works);
  13756. }
  13757. this.worksStudent[i].push(_works);
  13758. this.isWorksS[i].push({
  13759. uid: b[j].userid,
  13760. sName: b[j].name,
  13761. });
  13762. }
  13763. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13764. let _works = {
  13765. userid: b[j].userid,
  13766. ateacher: b[j].ateacher,
  13767. wid: b[j].id,
  13768. works: b[j].content,
  13769. sName: b[j].name,
  13770. type: 2,
  13771. time: b[j].time,
  13772. score: b[j].score,
  13773. img: b[j].img,
  13774. likesCount: likesCount,
  13775. commentCount: commentCount,
  13776. isLikes: isLikes,
  13777. commentJson: commentJson,
  13778. };
  13779. if (b[j].ttype == 1) {
  13780. this.worksTeacher[i].push(_works);
  13781. } else {
  13782. this.worksStudent2[i].push(_works);
  13783. }
  13784. this.worksStudent[i].push(_works);
  13785. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13786. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13787. //问卷
  13788. let _works = {
  13789. userid: b[j].userid,
  13790. ateacher: b[j].ateacher,
  13791. wid: b[j].id,
  13792. works: b[j].content,
  13793. sName: b[j].name,
  13794. type: 2,
  13795. time: b[j].time,
  13796. score: b[j].score,
  13797. img: b[j].img,
  13798. likesCount: likesCount,
  13799. commentCount: commentCount,
  13800. isLikes: isLikes,
  13801. commentJson: commentJson,
  13802. };
  13803. if (b[j].ttype == 1) {
  13804. this.worksTeacher[i].push(_works);
  13805. } else {
  13806. this.worksStudent2[i].push(_works);
  13807. }
  13808. this.worksStudent[i].push(_works);
  13809. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13810. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13811. //选择题
  13812. let _works = {
  13813. userid: b[j].userid,
  13814. ateacher: b[j].ateacher,
  13815. wid: b[j].id,
  13816. works: b[j].content,
  13817. sName: b[j].name,
  13818. type: 8,
  13819. time: b[j].time,
  13820. score: b[j].score,
  13821. img: b[j].img,
  13822. likesCount: likesCount,
  13823. commentCount: commentCount,
  13824. isLikes: isLikes,
  13825. commentJson: commentJson,
  13826. };
  13827. if (b[j].ttype == 1) {
  13828. this.worksTeacher[i].push(_works);
  13829. } else {
  13830. this.worksStudent2[i].push(_works);
  13831. }
  13832. this.worksStudent[i].push(_works);
  13833. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13834. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13835. //选择题
  13836. let _works = {
  13837. userid: b[j].userid,
  13838. ateacher: b[j].ateacher,
  13839. wid: b[j].id,
  13840. works: b[j].content,
  13841. sName: b[j].name,
  13842. type: 9,
  13843. time: b[j].time,
  13844. score: b[j].score,
  13845. img: b[j].img,
  13846. likesCount: likesCount,
  13847. commentCount: commentCount,
  13848. isLikes: isLikes,
  13849. commentJson: commentJson,
  13850. };
  13851. if (b[j].ttype == 1) {
  13852. this.worksTeacher[i].push(_works);
  13853. } else {
  13854. this.worksStudent2[i].push(_works);
  13855. }
  13856. this.worksStudent[i].push(_works);
  13857. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13858. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13859. //选择题
  13860. let _works = {
  13861. userid: b[j].userid,
  13862. ateacher: b[j].ateacher,
  13863. wid: b[j].id,
  13864. works: b[j].content,
  13865. sName: b[j].name,
  13866. type: 10,
  13867. time: b[j].time,
  13868. score: b[j].score,
  13869. img: b[j].img,
  13870. likesCount: likesCount,
  13871. commentCount: commentCount,
  13872. isLikes: isLikes,
  13873. commentJson: commentJson,
  13874. };
  13875. if (b[j].ttype == 1) {
  13876. this.worksTeacher[i].push(_works);
  13877. } else {
  13878. this.worksStudent2[i].push(_works);
  13879. }
  13880. this.worksStudent[i].push(_works);
  13881. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13882. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13883. //选择题
  13884. let _works = {
  13885. userid: b[j].userid,
  13886. ateacher: b[j].ateacher,
  13887. wid: b[j].id,
  13888. works: b[j].content,
  13889. sName: b[j].name,
  13890. type: 13,
  13891. time: b[j].time,
  13892. score: b[j].score,
  13893. img: b[j].img,
  13894. likesCount: likesCount,
  13895. commentCount: commentCount,
  13896. isLikes: isLikes,
  13897. commentJson: commentJson,
  13898. };
  13899. if (b[j].ttype == 1) {
  13900. this.worksTeacher[i].push(_works);
  13901. } else {
  13902. this.worksStudent2[i].push(_works);
  13903. }
  13904. this.worksStudent[i].push(_works);
  13905. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13906. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  13907. let _gindex = JSON.parse(b[j].content);
  13908. if (
  13909. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  13910. b[j].userid
  13911. ) != -1
  13912. ) {
  13913. this.worksStudent[i][_gindex.groupIndex].push({
  13914. userid: b[j].userid,
  13915. ateacher: b[j].ateacher,
  13916. wid: b[j].id,
  13917. works: _gindex.url,
  13918. sName: b[j].name,
  13919. type: _gindex.type,
  13920. time: b[j].time,
  13921. score: b[j].score,
  13922. img: b[j].img,
  13923. likesCount: likesCount,
  13924. commentCount: commentCount,
  13925. isLikes: isLikes,
  13926. commentJson: commentJson,
  13927. });
  13928. }
  13929. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13930. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  13931. let _works = {
  13932. userid: b[j].userid,
  13933. ateacher: b[j].ateacher,
  13934. wid: b[j].id,
  13935. works: b[j].content,
  13936. sName: b[j].name ? b[j].name : b[j].userid,
  13937. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  13938. time: b[j].time,
  13939. score: b[j].score,
  13940. img: b[j].img,
  13941. likesCount: likesCount,
  13942. commentCount: commentCount,
  13943. isLikes: isLikes,
  13944. commentJson: commentJson,
  13945. };
  13946. if (b[j].ttype == 1) {
  13947. this.worksTeacher[i].push(_works);
  13948. } else {
  13949. this.worksStudent2[i].push(_works);
  13950. }
  13951. this.worksStudent[i].push(_works);
  13952. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13953. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  13954. let _works = {
  13955. userid: b[j].userid,
  13956. ateacher: b[j].ateacher,
  13957. wid: b[j].id,
  13958. works: b[j].content,
  13959. sName: b[j].name ? b[j].name : b[j].userid,
  13960. type: 12,
  13961. time: b[j].time,
  13962. score: b[j].score,
  13963. img: b[j].img,
  13964. likesCount: likesCount,
  13965. commentCount: commentCount,
  13966. isLikes: isLikes,
  13967. commentJson: commentJson,
  13968. };
  13969. if (b[j].ttype == 1) {
  13970. this.worksTeacher[i].push(_works);
  13971. } else {
  13972. this.worksStudent2[i].push(_works);
  13973. }
  13974. this.worksStudent[i].push(_works);
  13975. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13976. } else if (
  13977. a[i].tool[0] == 57 &&
  13978. b[j].atool == 57 &&
  13979. b[j].type == 12
  13980. ) {
  13981. let _works = {
  13982. userid: b[j].userid,
  13983. ateacher: b[j].ateacher,
  13984. wid: b[j].id,
  13985. works: b[j].content,
  13986. sName: b[j].name ? b[j].name : b[j].userid,
  13987. type: 12,
  13988. time: b[j].time,
  13989. score: b[j].score,
  13990. img: b[j].img,
  13991. likesCount: likesCount,
  13992. commentCount: commentCount,
  13993. isLikes: isLikes,
  13994. commentJson: commentJson,
  13995. };
  13996. if (b[j].ttype == 1) {
  13997. this.worksTeacher[i].push(_works);
  13998. } else {
  13999. this.worksStudent2[i].push(_works);
  14000. }
  14001. this.worksStudent[i].push(_works);
  14002. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14003. } else if (
  14004. a[i].tool[0] == 57 &&
  14005. b[j].atool == 57 &&
  14006. b[j].type == 15
  14007. ) {
  14008. let _works = {
  14009. userid: b[j].userid,
  14010. ateacher: b[j].ateacher,
  14011. wid: b[j].id,
  14012. works: b[j].content,
  14013. sName: b[j].name ? b[j].name : b[j].userid,
  14014. type: 15,
  14015. time: b[j].time,
  14016. score: b[j].score,
  14017. img: b[j].img,
  14018. likesCount: likesCount,
  14019. commentCount: commentCount,
  14020. isLikes: isLikes,
  14021. commentJson: commentJson,
  14022. };
  14023. if (b[j].ttype == 1) {
  14024. this.worksTeacher[i].push(_works);
  14025. } else {
  14026. this.worksStudent2[i].push(_works);
  14027. }
  14028. this.worksStudent[i].push(_works);
  14029. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14030. }
  14031. }
  14032. }
  14033. if (this.worksStudent[i] && this.worksStudent[i].length) {
  14034. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  14035. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14036. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14037. var scoreA = parseFloat(jscoreA);
  14038. var scoreB = parseFloat(jscoreB);
  14039. if (scoreA == scoreB) {
  14040. return b.likesCount - a.likesCount;
  14041. }
  14042. return scoreB - scoreA;
  14043. });
  14044. }
  14045. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  14046. this.worksStudent2[i] = this.worksStudent2[i].sort(function (
  14047. a,
  14048. b
  14049. ) {
  14050. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14051. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14052. var scoreA = parseFloat(jscoreA);
  14053. var scoreB = parseFloat(jscoreB);
  14054. if (scoreA == scoreB) {
  14055. return b.likesCount - a.likesCount;
  14056. }
  14057. return scoreB - scoreA;
  14058. });
  14059. }
  14060. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  14061. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  14062. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14063. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14064. var scoreA = parseFloat(jscoreA);
  14065. var scoreB = parseFloat(jscoreB);
  14066. if (scoreA == scoreB) {
  14067. return b.likesCount - a.likesCount;
  14068. }
  14069. return scoreB - scoreA;
  14070. });
  14071. }
  14072. }
  14073. for (var i = 0; i < a.length; i++) {
  14074. for (var j = 0; j < b.length; j++) {
  14075. var data = b[j];
  14076. if (i == b[j].tool) {
  14077. if (data.type == 2 || data.type == 8) {
  14078. for (var z = 0; z < this.checkJson[i].length; z++) {
  14079. this.checkJson[i][z].checkPerent = [];
  14080. this.checkJson[i][z].right = Math.round(
  14081. (this.checkJson[i][z].rightPerson.length /
  14082. parseInt(this.worksStudent[i].length)) *
  14083. 100
  14084. );
  14085. let aaaa = this.checkJson[i][z];
  14086. console.log(aaaa);
  14087. for (
  14088. var k = 0;
  14089. k < this.checkJson[i][z].checkCount.length;
  14090. k++
  14091. ) {
  14092. this.checkJson[i][z].checkPerent.push(
  14093. Math.round(
  14094. (this.checkJson[i][z].checkCount[k] /
  14095. parseInt(this.worksStudent[i].length)) *
  14096. 100
  14097. )
  14098. );
  14099. }
  14100. }
  14101. } else if (data.type == 9) {
  14102. for (var z = 0; z < this.checkJson[i].length; z++) {
  14103. this.checkJson[i][z].checkPerent = [];
  14104. this.checkJson[i][z].right = Math.round(
  14105. (this.checkJson[i][z].rightPerson.length /
  14106. this.checkJson[i][z].checkPerson.length) *
  14107. 100
  14108. );
  14109. }
  14110. }
  14111. }
  14112. }
  14113. }
  14114. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14115. this.joinGroup(gindex);
  14116. }
  14117. this.selectWorksStudent();
  14118. })
  14119. .catch((err) => {
  14120. console.error(err);
  14121. });
  14122. },
  14123. pngToWhiteBg(file) {
  14124. const _file = file;
  14125. let read = new FileReader();
  14126. read.readAsDataURL(file); // 文件转base64
  14127. return new Promise((resolve, reject) => {
  14128. read.onload = (e) => {
  14129. let img = new Image();
  14130. img.src = e.target.result;
  14131. img.onload = async () => {
  14132. // 生成canvas
  14133. let canvas = document.createElement("canvas");
  14134. let context = canvas.getContext("2d");
  14135. // 绘制图片到canvas上
  14136. canvas.width = img.width;
  14137. canvas.height = img.height;
  14138. // 在canvas绘制前填充白色背景
  14139. context.fillStyle = "#fff";
  14140. context.fillRect(0, 0, canvas.width, canvas.height);
  14141. context.drawImage(img, 0, 0);
  14142. let base64 = canvas.toDataURL(file["type"], 1);
  14143. let newFile = this.dataUrlToFile(base64, _file);
  14144. resolve(newFile);
  14145. };
  14146. };
  14147. });
  14148. },
  14149. dataUrlToFile(dataurl, file) {
  14150. let arr = dataurl.split(","),
  14151. mime = arr[0].match(/:(.*?);/)[1],
  14152. bstr = atob(arr[1]),
  14153. n = bstr.length,
  14154. u8arr = new Uint8Array(n);
  14155. while (n--) {
  14156. u8arr[n] = bstr.charCodeAt(n);
  14157. }
  14158. // return new Blob([u8arr], { type: mime });
  14159. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14160. type: mime,
  14161. });
  14162. },
  14163. async beforeUpload1(event, type, i) {
  14164. // this.$message.success('进入上传')
  14165. var file = "";
  14166. if (type == 5) {
  14167. file = event;
  14168. } else {
  14169. file = event.target.files[0];
  14170. }
  14171. var credentials = {
  14172. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14173. secretAccessKey: "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",
  14174. }; //秘钥形式的登录上传
  14175. window.AWS.config.update(credentials);
  14176. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14177. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14178. var _this = this;
  14179. _this.progress = 0;
  14180. _this.proVisible = true;
  14181. _this.isFinishSize = 0;
  14182. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14183. var b = [
  14184. "DOC",
  14185. "DOCX",
  14186. "DOCM",
  14187. "DOTM",
  14188. "DOTX",
  14189. "PPTX",
  14190. "PPSX",
  14191. "PPT",
  14192. "PPS",
  14193. "PPTM",
  14194. "POTM",
  14195. "PPAM",
  14196. "POTX",
  14197. "PPSM",
  14198. ];
  14199. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14200. var photoA = [
  14201. "BMP",
  14202. "GIF",
  14203. "PNG",
  14204. "JPGE",
  14205. "JPG",
  14206. "TIF",
  14207. "PCX",
  14208. "TGA",
  14209. "EXIF",
  14210. "FPX",
  14211. "SVG",
  14212. "APNG",
  14213. ];
  14214. // if (
  14215. // b.indexOf(
  14216. // file.name
  14217. // .split(".")
  14218. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14219. // ) != -1
  14220. // ) {
  14221. // if (file.size / 1024 / 1024 > 10) {
  14222. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14223. // return;
  14224. // }
  14225. // } else if (
  14226. // excelA.indexOf(
  14227. // file.name
  14228. // .split(".")
  14229. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14230. // ) != "-1"
  14231. // ) {
  14232. // if (file.size / 1024 / 1024 > 5) {
  14233. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14234. // return;
  14235. // }
  14236. // }
  14237. if (
  14238. photoA.indexOf(
  14239. file.name
  14240. .split(".")
  14241. [file.name.split(".").length - 1].toLocaleUpperCase()
  14242. ) != -1 &&
  14243. type != 4
  14244. ) {
  14245. // const blob = await imageConversion.compress(file, 0.8)
  14246. file = await this.pngToWhiteBg(file);
  14247. const blob = await imageConversion.compressAccurately(file, 256);
  14248. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14249. file = new File([blob], file.name, { type: file.type });
  14250. }
  14251. if (file) {
  14252. var params = {
  14253. Key:
  14254. file.name.split(".")[0] +
  14255. new Date().getTime() +
  14256. "." +
  14257. file.name.split(".")[file.name.split(".").length - 1],
  14258. ContentType: file.type,
  14259. Body: file,
  14260. "Access-Control-Allow-Credentials": "*",
  14261. ACL: "public-read",
  14262. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14263. var options = {
  14264. // partSize: 2048 * 1024 * 1024,
  14265. partSize: 1024 * 1024 * 1024,
  14266. queueSize: 2,
  14267. leavePartsOnError: true,
  14268. };
  14269. bucket
  14270. .upload(params, options)
  14271. .on("httpUploadProgress", function (evt) {
  14272. //这里可以写进度条
  14273. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14274. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14275. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14276. })
  14277. .send(function (err, data) {
  14278. _this.progress = 100;
  14279. _this.isFinishSize = _this.isAllSize;
  14280. setTimeout(() => {
  14281. _this.proVisible = false;
  14282. }, 1000);
  14283. if (err) {
  14284. var a = _this.$refs.upload1.uploadFiles;
  14285. a.splice(a.length - 1, a.length);
  14286. _this.$message.error("上传失败");
  14287. } else {
  14288. // _this.$message.success('上传成功')
  14289. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14290. var c = [
  14291. "AVI",
  14292. "NAVI",
  14293. "MPEG",
  14294. "ASF",
  14295. "MOV",
  14296. "WMV",
  14297. "3GP",
  14298. "RM",
  14299. "RMVB",
  14300. "FLV",
  14301. "F4V",
  14302. "H.264",
  14303. "H.265",
  14304. "REAL VIDEO",
  14305. "MKV",
  14306. "WebM",
  14307. "HDDVD",
  14308. "MP4",
  14309. "MPG",
  14310. "M4V",
  14311. "MGV",
  14312. "OGV",
  14313. "QTM",
  14314. "STR",
  14315. "AMC",
  14316. "DVX",
  14317. "EVO",
  14318. "DAT",
  14319. "OGG",
  14320. "OGM",
  14321. ];
  14322. if (type == 1) {
  14323. _this.studyJuri[0].cover.push({
  14324. name: file.name,
  14325. url: data.Location,
  14326. uid: file.uid,
  14327. });
  14328. if (
  14329. c.indexOf(
  14330. _this.studyJuri[0].cover[0].url
  14331. .split(".")
  14332. [
  14333. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14334. ].toLocaleUpperCase()
  14335. ) != -1
  14336. ) {
  14337. _this.fileType = 2;
  14338. } else if (
  14339. b.indexOf(
  14340. _this.studyJuri[0].cover[0].url
  14341. .split(".")
  14342. [
  14343. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14344. ].toLocaleUpperCase()
  14345. ) != -1
  14346. ) {
  14347. _this.fileType = 1;
  14348. } else if (
  14349. photoA.indexOf(
  14350. _this.studyJuri[0].cover[0].url
  14351. .split(".")
  14352. [
  14353. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14354. ].toLocaleUpperCase()
  14355. ) != -1
  14356. ) {
  14357. _this.fileType = 0;
  14358. } else {
  14359. _this.fileType = 3;
  14360. }
  14361. _this.imgChange(null, null, type);
  14362. } else if (type == 2) {
  14363. _this.upToolImg = data.Location;
  14364. _this.imgChange(null, null, type);
  14365. _this.addCourseWorks(i);
  14366. } else if (type == 4) {
  14367. _this.addPz("3", data.Location);
  14368. } else if (type == 5) {
  14369. _this.addImgDrawImG(data.Location);
  14370. } else if (type == 6) {
  14371. var _ftype = 1;
  14372. if (
  14373. c.indexOf(
  14374. data.Location.split(".")[
  14375. data.Location.split(".").length - 1
  14376. ].toLocaleUpperCase()
  14377. ) != -1
  14378. ) {
  14379. _ftype = 5;
  14380. } else if (
  14381. b.indexOf(
  14382. data.Location.split(".")[
  14383. data.Location.split(".").length - 1
  14384. ].toLocaleUpperCase()
  14385. ) != -1
  14386. ) {
  14387. _ftype = 4;
  14388. } else {
  14389. _ftype = 1;
  14390. }
  14391. _this.plworkFile.push({
  14392. name: file.name,
  14393. url: data.Location,
  14394. uid: file.uid,
  14395. fileType: _ftype,
  14396. username:
  14397. _this.plworkFile.length + 1 > 10
  14398. ? _this.plworkFile.length + 1
  14399. : "0" + (_this.plworkFile.length + 1),
  14400. });
  14401. } else if (type == 7) {
  14402. _this.addCourseWorksGong(i, data.Location, 32);
  14403. } else if (type == 8) {
  14404. _this.addCourseWorksGong(i, data.Location, 57);
  14405. }
  14406. _this.imgChange(null, null, type);
  14407. console.log(data.Location);
  14408. // _this.$message.success('上传成功'+data.Location)
  14409. }
  14410. });
  14411. }
  14412. },
  14413. async beforeUpload3(event, type, i) {
  14414. // this.$message.success('进入上传')
  14415. let file = "";
  14416. let cfindex2 = 0;
  14417. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14418. file = event.target.files[cfindex];
  14419. var credentials = {
  14420. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14421. secretAccessKey: "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",
  14422. }; //秘钥形式的登录上传
  14423. window.AWS.config.update(credentials);
  14424. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14425. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14426. var _this = this;
  14427. // _this.progress = 0;
  14428. _this.proVisible2 = true;
  14429. var b = [
  14430. "DOC",
  14431. "DOCX",
  14432. "DOCM",
  14433. "DOTM",
  14434. "DOTX",
  14435. "PPTX",
  14436. "PPSX",
  14437. "PPT",
  14438. "PPS",
  14439. "PPTM",
  14440. "POTM",
  14441. "PPAM",
  14442. "POTX",
  14443. "PPSM",
  14444. ];
  14445. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14446. var photoA = [
  14447. "BMP",
  14448. "GIF",
  14449. "PNG",
  14450. "JPGE",
  14451. "JPG",
  14452. "TIF",
  14453. "PCX",
  14454. "TGA",
  14455. "EXIF",
  14456. "FPX",
  14457. "SVG",
  14458. "APNG",
  14459. ];
  14460. if (
  14461. photoA.indexOf(
  14462. file.name
  14463. .split(".")
  14464. [file.name.split(".").length - 1].toLocaleUpperCase()
  14465. ) != -1 &&
  14466. type != 4
  14467. ) {
  14468. // const blob = await imageConversion.compress(file, 0.8)
  14469. file = await this.pngToWhiteBg(file);
  14470. const blob = await imageConversion.compressAccurately(file, 256);
  14471. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14472. file = new File([blob], file.name, { type: file.type });
  14473. }
  14474. if (file) {
  14475. var params = {
  14476. Key:
  14477. file.name.split(".")[0] +
  14478. new Date().getTime() +
  14479. "." +
  14480. file.name.split(".")[file.name.split(".").length - 1],
  14481. ContentType: file.type,
  14482. Body: file,
  14483. "Access-Control-Allow-Credentials": "*",
  14484. ACL: "public-read",
  14485. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14486. var options = {
  14487. // partSize: 2048 * 1024 * 1024,
  14488. partSize: 1024 * 1024 * 1024,
  14489. queueSize: 2,
  14490. leavePartsOnError: true,
  14491. };
  14492. bucket
  14493. .upload(params, options)
  14494. .on("httpUploadProgress", function (evt) {
  14495. //这里可以写进度条
  14496. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14497. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14498. })
  14499. .send(function (err, data) {
  14500. // _this.progress = 100;
  14501. cfindex2++;
  14502. setTimeout(() => {
  14503. if (
  14504. cfindex2 == event.target.files.length - 1 ||
  14505. cfindex2 > event.target.files.length - 1
  14506. ) {
  14507. _this.proVisible2 = false;
  14508. }
  14509. }, 1000);
  14510. if (err) {
  14511. var a = _this.$refs.upload1.uploadFiles;
  14512. a.splice(a.length - 1, a.length);
  14513. _this.$message.error("上传失败");
  14514. } else {
  14515. // _this.$message.success('上传成功')
  14516. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14517. var c = [
  14518. "AVI",
  14519. "NAVI",
  14520. "MPEG",
  14521. "ASF",
  14522. "MOV",
  14523. "WMV",
  14524. "3GP",
  14525. "RM",
  14526. "RMVB",
  14527. "FLV",
  14528. "F4V",
  14529. "H.264",
  14530. "H.265",
  14531. "REAL VIDEO",
  14532. "MKV",
  14533. "WebM",
  14534. "HDDVD",
  14535. "MP4",
  14536. "MPG",
  14537. "M4V",
  14538. "MGV",
  14539. "OGV",
  14540. "QTM",
  14541. "STR",
  14542. "AMC",
  14543. "DVX",
  14544. "EVO",
  14545. "DAT",
  14546. "OGG",
  14547. "OGM",
  14548. ];
  14549. if (type == 1) {
  14550. _this.studyJuri[0].cover.push({
  14551. name: file.name,
  14552. url: data.Location,
  14553. uid: file.uid,
  14554. });
  14555. if (
  14556. c.indexOf(
  14557. _this.studyJuri[0].cover[0].url
  14558. .split(".")
  14559. [
  14560. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14561. ].toLocaleUpperCase()
  14562. ) != -1
  14563. ) {
  14564. _this.fileType = 2;
  14565. } else if (
  14566. b.indexOf(
  14567. _this.studyJuri[0].cover[0].url
  14568. .split(".")
  14569. [
  14570. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14571. ].toLocaleUpperCase()
  14572. ) != -1
  14573. ) {
  14574. _this.fileType = 1;
  14575. } else {
  14576. _this.fileType = 0;
  14577. }
  14578. _this.imgChange(null, null, type);
  14579. } else if (type == 2) {
  14580. _this.upToolImg = data.Location;
  14581. _this.imgChange(null, null, type);
  14582. _this.addCourseWorks(i);
  14583. } else if (type == 4) {
  14584. _this.addPz("3", data.Location);
  14585. } else if (type == 5) {
  14586. _this.addImgDrawImG(data.Location);
  14587. } else if (type == 6) {
  14588. var _ftype = 1;
  14589. if (
  14590. c.indexOf(
  14591. data.Location.split(".")[
  14592. data.Location.split(".").length - 1
  14593. ].toLocaleUpperCase()
  14594. ) != -1
  14595. ) {
  14596. _ftype = 5;
  14597. } else if (
  14598. b.indexOf(
  14599. data.Location.split(".")[
  14600. data.Location.split(".").length - 1
  14601. ].toLocaleUpperCase()
  14602. ) != -1
  14603. ) {
  14604. _ftype = 4;
  14605. } else {
  14606. _ftype = 1;
  14607. }
  14608. _this.plworkFile.push({
  14609. name: file.name,
  14610. url: data.Location,
  14611. uid: file.uid,
  14612. fileType: _ftype,
  14613. username:
  14614. _this.plworkFile.length + 1 > 9
  14615. ? _this.plworkFile.length + 1
  14616. : "0" + (_this.plworkFile.length + 1),
  14617. });
  14618. }
  14619. _this.imgChange(null, null, type);
  14620. console.log(data.Location);
  14621. // _this.$message.success('上传成功'+data.Location)
  14622. }
  14623. });
  14624. }
  14625. }
  14626. },
  14627. beforeUpload2(event, type) {
  14628. var file = event.target.files[0];
  14629. var credentials = {
  14630. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14631. secretAccessKey: "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",
  14632. }; //秘钥形式的登录上传
  14633. window.AWS.config.update(credentials);
  14634. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14635. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14636. var _this = this;
  14637. _this.progress = 0;
  14638. _this.proVisible = true;
  14639. if (file) {
  14640. var params = {
  14641. Key:
  14642. file.name.split(".")[0] +
  14643. new Date().getTime() +
  14644. "." +
  14645. file.name.split(".")[file.name.split(".").length - 1],
  14646. ContentType: file.type,
  14647. Body: file,
  14648. "Access-Control-Allow-Credentials": "*",
  14649. ACL: "public-read",
  14650. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14651. var options = {
  14652. partSize: 2048 * 1024 * 1024,
  14653. queueSize: 2,
  14654. leavePartsOnError: true,
  14655. };
  14656. bucket
  14657. .upload(params, options)
  14658. .on("httpUploadProgress", function (evt) {
  14659. //这里可以写进度条
  14660. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14661. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14662. })
  14663. .send(function (err, data) {
  14664. _this.progress = 100;
  14665. setTimeout(() => {
  14666. _this.proVisible = false;
  14667. }, 1000);
  14668. if (err) {
  14669. var a = _this.$refs.upload1.uploadFiles;
  14670. a.splice(a.length - 1, a.length);
  14671. _this.$message.error("上传失败");
  14672. } else {
  14673. if (type == 2) {
  14674. _this.studyJuri[0].upVedio.push({
  14675. name: file.name,
  14676. url: data.Location,
  14677. uid: file.uid,
  14678. });
  14679. _this.imgChange(null, null, type);
  14680. } else if (type == 3) {
  14681. _this.studyJuri[0].upFile.push({
  14682. name: file.name,
  14683. url: data.Location,
  14684. uid: file.uid,
  14685. });
  14686. _this.imgChange(null, null, type);
  14687. }
  14688. console.log(data.Location);
  14689. }
  14690. });
  14691. }
  14692. },
  14693. allScrell() {
  14694. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  14695. },
  14696. nextToolindex(type) {
  14697. if (type == "last") {
  14698. if (this.toolIndex == 0) {
  14699. this.$message.error("已经是第一个步骤");
  14700. return;
  14701. }
  14702. this.toolIndex = this.toolIndex - 1;
  14703. this.tool =
  14704. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14705. this.taskCount
  14706. ].toolChoose[this.toolIndex];
  14707. } else if (type == "next") {
  14708. if (
  14709. this.toolIndex ==
  14710. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14711. this.taskCount
  14712. ].toolChoose.length -
  14713. 1
  14714. ) {
  14715. this.$message.error("已经是最后一个步骤");
  14716. return;
  14717. }
  14718. this.toolIndex = this.toolIndex + 1;
  14719. this.tool =
  14720. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14721. this.taskCount
  14722. ].toolChoose[this.toolIndex];
  14723. }
  14724. this.$forceUpdate();
  14725. },
  14726. checkBz(index) {
  14727. this.toolIndex = index;
  14728. this.tool =
  14729. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14730. this.taskCount
  14731. ].toolChoose[this.toolIndex];
  14732. this.isUpdateToolDetail = false;
  14733. this.$forceUpdate();
  14734. },
  14735. jumpGj(i, j, k) {
  14736. // for (var z = 0; z < this.navList.length; z++) {
  14737. // for (var q = 0; q < this.navList[z].task.length; q++) {
  14738. // for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  14739. // this.navList[z].task[q].tool[w].isTool = false;
  14740. // }
  14741. // }
  14742. // }
  14743. this.navList[i].task[j].tool[k].isTool =
  14744. !this.navList[i].task[j].tool[k].isTool;
  14745. // var a = document.getElementsByClassName("study_top")[0];
  14746. // var b = this.$refs["bz" + k][0];
  14747. // a.scrollTop = b.offsetTop;
  14748. },
  14749. nextOrpreSteps(t) {
  14750. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14751. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14752. return;
  14753. }
  14754. var b = this.chapInfoList.length - 1;
  14755. if (t == 0) {
  14756. if (this.courseType == 0) {
  14757. if (this.taskCount == 0) {
  14758. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  14759. if (this.IsLookOpen) {
  14760. if (
  14761. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  14762. ) {
  14763. if (
  14764. this.courseDetail.userid != this.userid &&
  14765. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14766. ) {
  14767. this.$message.error("任务未解锁");
  14768. } else {
  14769. this.$message.error("上一任务未解锁");
  14770. }
  14771. return;
  14772. }
  14773. }
  14774. this.navList[this.courseType].isOpen = false;
  14775. this.courseType = b;
  14776. this.taskCount =
  14777. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14778. .length - 1;
  14779. this.navList[this.courseType].isOpen = true;
  14780. } else {
  14781. this.taskCount--;
  14782. }
  14783. } else {
  14784. if (this.taskCount == 0) {
  14785. this.navList[this.courseType].isOpen = false;
  14786. this.courseType--;
  14787. this.taskCount =
  14788. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14789. .length - 1;
  14790. this.navList[this.courseType].isOpen = true;
  14791. } else {
  14792. this.taskCount--;
  14793. }
  14794. }
  14795. } else {
  14796. if (this.courseType == b) {
  14797. if (
  14798. this.taskCount ==
  14799. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14800. 1
  14801. ) {
  14802. this.navList[this.courseType].isOpen = false;
  14803. this.courseType = 0;
  14804. this.taskCount = 0;
  14805. this.navList[this.courseType].isOpen = true;
  14806. } else {
  14807. var bbb = parseInt(this.taskCount) + 1;
  14808. if (
  14809. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14810. .isLook &&
  14811. this.courseDetail.userid != this.userid &&
  14812. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14813. this.IsLookOpen
  14814. ) {
  14815. this.$message.error("任务未解锁");
  14816. return;
  14817. }
  14818. this.taskCount++;
  14819. if (this.IsLookOpen) {
  14820. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14821. this.taskCount
  14822. ].isLook = true;
  14823. this.addCourseState(3);
  14824. }
  14825. }
  14826. } else {
  14827. if (
  14828. this.taskCount ==
  14829. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14830. 1
  14831. ) {
  14832. var bbb = parseInt(this.courseType) + 1;
  14833. if (
  14834. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  14835. this.courseDetail.userid != this.userid &&
  14836. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14837. this.IsLookOpen
  14838. ) {
  14839. this.$message.error("任务未解锁");
  14840. return;
  14841. }
  14842. this.navList[this.courseType].isOpen = false;
  14843. this.courseType++;
  14844. this.taskCount = 0;
  14845. this.navList[this.courseType].isOpen = true;
  14846. } else {
  14847. var bbb = parseInt(this.taskCount) + 1;
  14848. if (
  14849. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14850. .isLook &&
  14851. this.courseDetail.userid != this.userid &&
  14852. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14853. this.IsLookOpen
  14854. ) {
  14855. this.$message.error("任务未解锁");
  14856. return;
  14857. }
  14858. this.taskCount++;
  14859. }
  14860. if (this.IsLookOpen) {
  14861. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14862. this.taskCount
  14863. ].isLook = true;
  14864. this.addCourseState(3);
  14865. }
  14866. }
  14867. }
  14868. document.scrollingElement.scrollTop = 0;
  14869. this.showType = 0;
  14870. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14871. this.toolIndex = null;
  14872. this.isNoHomeWork = false;
  14873. (this.studyJuri = [
  14874. {
  14875. content: "",
  14876. cover: [],
  14877. upVedio: [],
  14878. upFile: [],
  14879. },
  14880. ]),
  14881. (this.radio = []);
  14882. this.isClickNav = "";
  14883. this.selectPz();
  14884. this.getHomeWork();
  14885. this.getCourseDetail();
  14886. this.$forceUpdate();
  14887. },
  14888. openTask(s, n, i) {
  14889. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14890. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14891. return;
  14892. }
  14893. if (this.IsLookOpen) {
  14894. if (
  14895. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  14896. this.courseDetail.userid != this.userid &&
  14897. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14898. ) {
  14899. this.$message.error("任务未解锁");
  14900. return;
  14901. }
  14902. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  14903. if (
  14904. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  14905. .isLook
  14906. ) {
  14907. this.$message.error("上一任务未解锁");
  14908. return;
  14909. }
  14910. } else if (s > this.courseType) {
  14911. if (n > 0) {
  14912. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  14913. this.$message.error("上一任务未解锁");
  14914. return;
  14915. }
  14916. } else {
  14917. if (
  14918. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  14919. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  14920. ].isLook
  14921. ) {
  14922. this.$message.error("上一任务未解锁");
  14923. return;
  14924. }
  14925. }
  14926. }
  14927. }
  14928. this.courseType = s;
  14929. this.navId = i;
  14930. this.taskCount = n;
  14931. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14932. this.taskCount
  14933. ].isLook =
  14934. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14935. this.taskCount
  14936. ].isLook;
  14937. if (this.IsLookOpen) {
  14938. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14939. this.taskCount
  14940. ].isLook = true;
  14941. this.addCourseState(3);
  14942. }
  14943. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  14944. this.isCloseList[ci].isClose = 0;
  14945. }
  14946. this.showType = 0;
  14947. this.isNoHomeWork = false;
  14948. (this.studyJuri = [
  14949. {
  14950. content: "",
  14951. cover: [],
  14952. upVedio: [],
  14953. upFile: [],
  14954. },
  14955. ]),
  14956. (this.radio = []);
  14957. document.scrollingElement.scrollTop = 0;
  14958. this.toolIndex = null;
  14959. // setTimeout(() => {
  14960. // let a = document.getElementById(i);
  14961. // if (a.offsetTop - 110 == 0) {
  14962. // window.scrollTo(0, 0);
  14963. // } else {
  14964. // window.scrollTo(0, a.offsetTop);
  14965. // }
  14966. // }, 0);
  14967. this.selectPz();
  14968. this.getHomeWork();
  14969. this.getCourseDetail();
  14970. },
  14971. get(i) {
  14972. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14973. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14974. return;
  14975. }
  14976. this.navList[i].isOpen = !this.navList[i].isOpen;
  14977. },
  14978. addQuestion() {
  14979. this.answerList.push({
  14980. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14981. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14982. });
  14983. let params = [
  14984. {
  14985. uid: this.userid,
  14986. cid: this.id,
  14987. stage: this.courseType,
  14988. task: this.taskCount,
  14989. tool: this.toolindex,
  14990. content: JSON.stringify(this.answerList),
  14991. type: 3,
  14992. },
  14993. ];
  14994. this.ajax
  14995. .post(this.$store.state.api + "addCourseWorks", params)
  14996. .then((res) => {
  14997. this.$message({
  14998. message: "提交成功",
  14999. type: "success",
  15000. });
  15001. this.answerList = [];
  15002. this.questionAnswer = "";
  15003. this.answerDialogVisible = false;
  15004. this.selectStudent();
  15005. this.selectSWorks();
  15006. this.selectSLook();
  15007. })
  15008. .catch((err) => {
  15009. this.$message.error("提交失败");
  15010. console.error(err);
  15011. });
  15012. },
  15013. addQuestionTeacher() {
  15014. this.answerList.push({
  15015. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15016. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15017. });
  15018. let params = [
  15019. {
  15020. uid: this.sStudent.userid,
  15021. cid: this.id,
  15022. stage: this.courseType,
  15023. task: this.taskCount,
  15024. tool: this.toolindex,
  15025. content: JSON.stringify(this.answerList),
  15026. type: 3,
  15027. ateacher: this.userid,
  15028. },
  15029. ];
  15030. this.ajax
  15031. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15032. .then((res) => {
  15033. this.$message({
  15034. message: "提交成功",
  15035. type: "success",
  15036. });
  15037. this.answerList = [];
  15038. this.questionAnswer = "";
  15039. this.answerDialogVisibleTeacher = false;
  15040. this.selectStudent();
  15041. this.selectSWorks();
  15042. this.selectSLook();
  15043. })
  15044. .catch((err) => {
  15045. this.$message.error("提交失败");
  15046. console.error(err);
  15047. });
  15048. },
  15049. refreshCourse() {
  15050. this.navList = [];
  15051. this.getCourseDetail(1);
  15052. },
  15053. setPz() {
  15054. if (this.ispzType == 4) {
  15055. this.ispzType = 0;
  15056. this.pzDialog = false;
  15057. return;
  15058. }
  15059. this.ispzType = 4;
  15060. this.pzDialog = true;
  15061. this.selectPz();
  15062. },
  15063. getCourseDetail(type, gindex) {
  15064. let loading;
  15065. if (type != 2 && type != 3) {
  15066. loading = this.$loading.service({
  15067. background: "rgba(255, 255, 255, 0.7)",
  15068. target: document.querySelector(".student_table"),
  15069. });
  15070. }
  15071. let params = {
  15072. courseId: this.id,
  15073. };
  15074. this.ajax
  15075. .get(this.$store.state.api + "selectCourseDetail3", params)
  15076. .then((res) => {
  15077. if (type != 2 && type != 3) {
  15078. loading.close();
  15079. if (
  15080. this.courseType >
  15081. JSON.parse(res.data[0][0].chapters).length - 1
  15082. ) {
  15083. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15084. }
  15085. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15086. .chapterInfo[0].taskJson;
  15087. var b = [
  15088. "AVI",
  15089. "NAVI",
  15090. "MPEG",
  15091. "ASF",
  15092. "MOV",
  15093. "WMV",
  15094. "3GP",
  15095. "RM",
  15096. "RMVB",
  15097. "FLV",
  15098. "F4V",
  15099. "H.264",
  15100. "H.265",
  15101. "REAL VIDEO",
  15102. "MKV",
  15103. "WebM",
  15104. "HDDVD",
  15105. "MP4",
  15106. "MPG",
  15107. "M4V",
  15108. "MGV",
  15109. "OGV",
  15110. "QTM",
  15111. "STR",
  15112. "AMC",
  15113. "DVX",
  15114. "EVO",
  15115. "DAT",
  15116. "OGG",
  15117. "OGM",
  15118. "MP3",
  15119. ];
  15120. let _chapterData = [];
  15121. for (var i = 0; i < a.length; i++) {
  15122. var c = a[i].chapterData;
  15123. this.vedio[i] = [];
  15124. this.textList[i] = [];
  15125. this.lineList[i] = [];
  15126. this.chapToolList[i] = [];
  15127. this.file[i] = [];
  15128. this.fileC[i] = [];
  15129. _chapterData[i] = c.filter((el) => {
  15130. return el.type != 12;
  15131. });
  15132. this.fileC[i] = c.filter((el) => {
  15133. return el.type == 12;
  15134. });
  15135. for (var j = 0; j < c.length; j++) {
  15136. if (c[j].type == 7) {
  15137. this.chapToolList[i].push(c[j]);
  15138. } else if (c[j].type == 8 || c[j].type == 14) {
  15139. this.lineList[i].push(c[j]);
  15140. } else if (c[j].type == 6) {
  15141. this.textList[i].push(c[j]);
  15142. } else {
  15143. if (
  15144. b.indexOf(
  15145. c[j].url
  15146. .split(".")
  15147. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15148. ) != -1
  15149. ) {
  15150. this.vedio[i].push(c[j]);
  15151. } else {
  15152. this.file[i].push(c[j]);
  15153. }
  15154. }
  15155. }
  15156. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15157. d.sources[0].src =
  15158. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15159. this.playerO[i] = d;
  15160. }
  15161. this.courseDetail = res.data[0][0];
  15162. this.tcid = this.arrayToArray(
  15163. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15164. this.tcid2 ? this.tcid2.split(",") : []
  15165. ).join(",");
  15166. console.log(this.tcid);
  15167. this.evalua = res.data[0][0].evaId;
  15168. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15169. this.courseType
  15170. ];
  15171. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15172. if (this.tcid && res.data[1].length) {
  15173. let _inviteA = [];
  15174. for (var ik = 0; ik < res.data[1].length; ik++) {
  15175. _inviteA.push({
  15176. cid: res.data[1][ik].classid,
  15177. ic: res.data[1][ik].code,
  15178. });
  15179. }
  15180. for (var ik = 0; ik < _inviteA.length; ik++) {
  15181. if (
  15182. this.arrayToArray(
  15183. _inviteA[ik].cid.split(","),
  15184. this.tcid.split(",")
  15185. ).length
  15186. ) {
  15187. this.inviteCode = _inviteA[ik].ic;
  15188. break;
  15189. }
  15190. }
  15191. }
  15192. for (var l = 0; l < this.chapInfoList.length; l++) {
  15193. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15194. for (var m = 0; m < w.length; m++) {
  15195. w[m].id = l + "-" + m;
  15196. }
  15197. }
  15198. if (
  15199. _chapterData[this.taskCount].length &&
  15200. _chapterData[this.taskCount][0].type == 2
  15201. ) {
  15202. this.showType = 0;
  15203. } else {
  15204. if (_chapterData[this.taskCount].length > 0) {
  15205. let _url = _chapterData[this.taskCount][0].url;
  15206. if (
  15207. _chapterData[this.taskCount][0].type == 8 ||
  15208. _chapterData[this.taskCount][0].type == 14
  15209. ) {
  15210. this.showType = 2;
  15211. if (
  15212. _url.indexOf("https://") == -1 &&
  15213. _url.indexOf("http://") == -1
  15214. ) {
  15215. _url = "https://" + _url;
  15216. }
  15217. this.pptImgUrl1 = _url;
  15218. } else if (_chapterData[this.taskCount][0].type == 3) {
  15219. if (
  15220. _url
  15221. .split(".")
  15222. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15223. ) {
  15224. this.showType = 3;
  15225. this.pptImgUrl1 = _url;
  15226. } else if (
  15227. this.isAssetTypeAnImage(
  15228. _url
  15229. .split(".")
  15230. [_url.split(".").length - 1].toLocaleLowerCase()
  15231. )
  15232. ) {
  15233. this.showType = 4;
  15234. this.pptImgUrl1 = _url;
  15235. } else {
  15236. this.showType = 2;
  15237. this.pptImgUrl1 =
  15238. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15239. _url;
  15240. }
  15241. } else if (_chapterData[this.taskCount][0].type == 13) {
  15242. this.showType = 4;
  15243. this.pptImgUrl1 = _url;
  15244. } else if (_chapterData[this.taskCount][0].type == 6) {
  15245. this.showType = 1;
  15246. this.text = this.textList[this.taskCount][0];
  15247. }
  15248. }
  15249. }
  15250. this.isClickNav = 0;
  15251. if (
  15252. !_chapterData[this.taskCount].length ||
  15253. _chapterData[this.taskCount][0].type == 12
  15254. ) {
  15255. this.isClickNav = "";
  15256. this.showType = "";
  15257. }
  15258. this.vChapterData = _chapterData;
  15259. if (
  15260. this.toolIndex == null &&
  15261. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15262. this.taskCount
  15263. ].toolChoose.length
  15264. ) {
  15265. this.toolIndex = 0;
  15266. this.tool =
  15267. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15268. this.taskCount
  15269. ].toolChoose[this.toolIndex];
  15270. }
  15271. } else if (type != 3) {
  15272. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15273. .chapterInfo[0].taskJson;
  15274. var b = [
  15275. "AVI",
  15276. "NAVI",
  15277. "MPEG",
  15278. "ASF",
  15279. "MOV",
  15280. "WMV",
  15281. "3GP",
  15282. "RM",
  15283. "RMVB",
  15284. "FLV",
  15285. "F4V",
  15286. "H.264",
  15287. "H.265",
  15288. "REAL VIDEO",
  15289. "MKV",
  15290. "WebM",
  15291. "HDDVD",
  15292. "MP4",
  15293. "MPG",
  15294. "M4V",
  15295. "MGV",
  15296. "OGV",
  15297. "QTM",
  15298. "STR",
  15299. "AMC",
  15300. "DVX",
  15301. "EVO",
  15302. "DAT",
  15303. "OGG",
  15304. "OGM",
  15305. "MP3",
  15306. ];
  15307. let _chapterData = [];
  15308. for (var i = 0; i < a.length; i++) {
  15309. var c = a[i].chapterData;
  15310. this.vedio[i] = [];
  15311. this.textList[i] = [];
  15312. this.lineList[i] = [];
  15313. this.chapToolList[i] = [];
  15314. this.file[i] = [];
  15315. this.fileC[i] = [];
  15316. _chapterData[i] = c.filter((el) => {
  15317. return el.type != 12;
  15318. });
  15319. this.fileC[i] = c.filter((el) => {
  15320. return el.type == 12;
  15321. });
  15322. for (var j = 0; j < c.length; j++) {
  15323. if (c[j].type == 7) {
  15324. this.chapToolList[i].push(c[j]);
  15325. } else if (c[j].type == 8 || c[j].type == 14) {
  15326. this.lineList[i].push(c[j]);
  15327. } else if (c[j].type == 6) {
  15328. this.textList[i].push(c[j]);
  15329. } else {
  15330. if (
  15331. b.indexOf(
  15332. c[j].url
  15333. .split(".")
  15334. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15335. ) != -1
  15336. ) {
  15337. this.vedio[i].push(c[j]);
  15338. } else {
  15339. this.file[i].push(c[j]);
  15340. }
  15341. }
  15342. }
  15343. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15344. d.sources[0].src =
  15345. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15346. this.playerO[i] = d;
  15347. }
  15348. if (
  15349. _chapterData[this.taskCount].length &&
  15350. _chapterData[this.taskCount][0].type == 2
  15351. ) {
  15352. this.showType = 0;
  15353. } else {
  15354. if (_chapterData[this.taskCount].length > 0) {
  15355. let _url = _chapterData[this.taskCount][0].url;
  15356. if (
  15357. _chapterData[this.taskCount][0].type == 8 ||
  15358. _chapterData[this.taskCount][0].type == 14
  15359. ) {
  15360. this.showType = 2;
  15361. if (
  15362. _url.indexOf("https://") == -1 &&
  15363. _url.indexOf("http://") == -1
  15364. ) {
  15365. _url = "https://" + _url;
  15366. }
  15367. this.pptImgUrl1 = _url;
  15368. } else if (_chapterData[this.taskCount][0].type == 3) {
  15369. if (
  15370. _url
  15371. .split(".")
  15372. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15373. ) {
  15374. this.showType = 3;
  15375. this.pptImgUrl1 = _url;
  15376. } else if (
  15377. this.isAssetTypeAnImage(
  15378. _url
  15379. .split(".")
  15380. [_url.split(".").length - 1].toLocaleLowerCase()
  15381. )
  15382. ) {
  15383. this.showType = 4;
  15384. this.pptImgUrl1 = _url;
  15385. } else {
  15386. this.showType = 2;
  15387. this.pptImgUrl1 =
  15388. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15389. _url;
  15390. }
  15391. } else if (_chapterData[this.taskCount][0].type == 13) {
  15392. this.showType = 4;
  15393. this.pptImgUrl1 = _url;
  15394. } else if (_chapterData[this.taskCount][0].type == 6) {
  15395. this.showType = 1;
  15396. this.text = this.textList[this.taskCount][0];
  15397. }
  15398. }
  15399. }
  15400. this.isClickNav = 0;
  15401. if (
  15402. !_chapterData[this.taskCount].length ||
  15403. _chapterData[this.taskCount][0].type == 12
  15404. ) {
  15405. this.isClickNav = "";
  15406. this.showType = "";
  15407. }
  15408. this.vChapterData = _chapterData;
  15409. this.$forceUpdate();
  15410. }
  15411. this.isUpdateToolDetail = false;
  15412. this.$nextTick(() => {
  15413. setTimeout(() => {
  15414. this.checkEva();
  15415. }, 1000);
  15416. });
  15417. let _this = this;
  15418. if (_this.timer) {
  15419. clearInterval(_this.timer);
  15420. _this.timer = null;
  15421. }
  15422. _this.selectSWorks(gindex);
  15423. _this.selectStudent();
  15424. _this.selectSLook();
  15425. _this.getPick();
  15426. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15427. _this.setCTask();
  15428. }
  15429. if (_this.dialogVisibleGroup) {
  15430. _this.groupJson =
  15431. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15432. _this.taskCount
  15433. ].toolChoose[_this.toolindex].groupJson;
  15434. }
  15435. _this.timer = setInterval(function () {
  15436. if (_this.tcid) {
  15437. _this.getCourseGroup(gindex);
  15438. } else {
  15439. _this.selectSWorks(gindex);
  15440. }
  15441. _this.selectStudent();
  15442. _this.selectSLook();
  15443. _this.getPick();
  15444. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15445. _this.setCTask();
  15446. }
  15447. if (_this.dialogVisibleGroup) {
  15448. _this.groupJson =
  15449. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15450. _this.taskCount
  15451. ].toolChoose[_this.toolindex].groupJson;
  15452. }
  15453. if (_this.tType == 4 || _this.ispzType == 4) {
  15454. _this.selectPz();
  15455. }
  15456. }, 5000);
  15457. })
  15458. .catch((err) => {
  15459. loading.close();
  15460. console.error(err);
  15461. });
  15462. },
  15463. getCourseGroup(gindex) {
  15464. let params = {
  15465. cid: this.id,
  15466. classid: this.tcid ? this.tcid : "1",
  15467. };
  15468. this.ajax
  15469. .get(this.$store.state.api + "getCourseGroup", params)
  15470. .then((res) => {
  15471. if (res.data && res.data[0].length) {
  15472. if (!this.isGroup) {
  15473. let courseGroup = JSON.parse(res.data[0][0].group);
  15474. courseGroup.group = courseGroup.group.filter((el) => {
  15475. el.works = [];
  15476. return el;
  15477. });
  15478. this.courseGroup = courseGroup;
  15479. let groupPerson = res.data[1];
  15480. let group = JSON.parse(res.data[0][0].group).group;
  15481. let courseGroupStudent = {};
  15482. let courseGroupStudentUid = {};
  15483. for (var i = 0; i < group.length; i++) {
  15484. courseGroupStudent[group[i].id] = [];
  15485. courseGroupStudentUid[group[i].id] = [];
  15486. for (var j = 0; j < groupPerson.length; j++) {
  15487. if (groupPerson[j].groupCid == group[i].id) {
  15488. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15489. courseGroupStudentUid[group[i].id].push(
  15490. groupPerson[j].userid
  15491. );
  15492. }
  15493. }
  15494. }
  15495. this.courseGroupStudent = courseGroupStudent;
  15496. this.courseGroupStudentUid = courseGroupStudentUid;
  15497. }
  15498. this.isGroup = true;
  15499. this.selectSWorks(gindex);
  15500. } else {
  15501. this.selectSWorks(gindex);
  15502. this.isGroup = false;
  15503. }
  15504. })
  15505. .catch((err) => {
  15506. // this.$message.error("网络不佳");
  15507. console.error(err);
  15508. });
  15509. },
  15510. setOperationTime() {
  15511. let _this = this;
  15512. if (_this.opertimer) {
  15513. clearInterval(_this.opertimer);
  15514. _this.opertimer = null;
  15515. }
  15516. _this.opertimer = setInterval(() => {
  15517. _this.setoTime("600");
  15518. }, 600000);
  15519. },
  15520. setoTime(time) {
  15521. let params = [
  15522. {
  15523. uid: this.userid,
  15524. cid: this.id,
  15525. type: "2",
  15526. time: time,
  15527. },
  15528. ];
  15529. this.ajax
  15530. .post(this.$store.state.api + "addOperationTimeT2", params)
  15531. .then((res) => {})
  15532. .catch((err) => {
  15533. console.error(err);
  15534. });
  15535. },
  15536. addPz(type, content) {
  15537. if (type == "1" && this.pzConText == "") {
  15538. this.$message.error("批注不能为空!");
  15539. return;
  15540. }
  15541. let params = [
  15542. {
  15543. cid: this.id,
  15544. uid: this.userid,
  15545. s: this.courseType,
  15546. t: this.taskCount,
  15547. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15548. type: type,
  15549. },
  15550. ];
  15551. this.ajax
  15552. .post(this.$store.state.api + "addPz2", params)
  15553. .then((res) => {
  15554. this.$message({
  15555. message: "添加成功",
  15556. type: "success",
  15557. });
  15558. this.pzConText = "";
  15559. this.addPzDialog = false;
  15560. this.selectPz();
  15561. })
  15562. .catch((err) => {
  15563. this.$message.error("添加失败");
  15564. console.error(err);
  15565. });
  15566. },
  15567. deletePz(id) {
  15568. this.$confirm("确定删除此批注吗?", "提示", {
  15569. confirmButtonText: "确定",
  15570. cancelButtonText: "取消",
  15571. type: "warning",
  15572. })
  15573. .then(() => {
  15574. let params = [
  15575. {
  15576. id: id,
  15577. },
  15578. ];
  15579. this.ajax
  15580. .post(this.$store.state.api + "deletePz", params)
  15581. .then((res) => {
  15582. this.$message({
  15583. message: "删除成功",
  15584. type: "success",
  15585. });
  15586. this.selectPz();
  15587. })
  15588. .catch((err) => {
  15589. this.$message.error("网络异常");
  15590. console.error(err);
  15591. });
  15592. })
  15593. .catch(() => {});
  15594. },
  15595. selectPz() {
  15596. let params = {
  15597. cid: this.id,
  15598. s: this.courseType,
  15599. t: this.taskCount,
  15600. type: this.pzStype,
  15601. uid: this.userid,
  15602. };
  15603. this.ajax
  15604. .get(this.$store.state.api + "selectPzListType", params)
  15605. .then((res) => {
  15606. this.pzList = res.data[0];
  15607. })
  15608. .catch((err) => {
  15609. console.error(err);
  15610. });
  15611. },
  15612. updateSLook() {
  15613. let params = {
  15614. sopen: this.sIsOpen == false ? 1 : 2,
  15615. cid: this.id,
  15616. };
  15617. this.ajax
  15618. .get(this.$store.state.api + "updateCourseSLook", params)
  15619. .then((res) => {
  15620. if (this.sIsOpen == true) {
  15621. this.$message({
  15622. message: "权限设置成功",
  15623. type: "success",
  15624. });
  15625. } else {
  15626. this.$message({
  15627. message: "权限关闭成功",
  15628. type: "success",
  15629. });
  15630. }
  15631. })
  15632. .catch((err) => {
  15633. console.error(err);
  15634. });
  15635. },
  15636. updateFollow() {
  15637. let params = [
  15638. {
  15639. sopen: this.IsFollow == false ? 1 : 2,
  15640. cid: this.id,
  15641. },
  15642. ];
  15643. this.ajax
  15644. .post(this.$store.state.api + "updateCourseFollow", params)
  15645. .then((res) => {
  15646. if (this.IsFollow == true) {
  15647. this.$message({
  15648. message: "开启成功",
  15649. type: "success",
  15650. });
  15651. } else {
  15652. this.$message({
  15653. message: "关闭成功",
  15654. type: "success",
  15655. });
  15656. }
  15657. this.setCTask();
  15658. })
  15659. .catch((err) => {
  15660. console.error(err);
  15661. });
  15662. },
  15663. setCTask() {
  15664. let params = [
  15665. {
  15666. sopen: this.courseType + "-" + this.taskCount,
  15667. cid: this.id,
  15668. },
  15669. ];
  15670. this.ajax
  15671. .post(this.$store.state.api + "updateCourseFollowC", params)
  15672. .then((res) => {})
  15673. .catch((err) => {
  15674. console.error(err);
  15675. });
  15676. },
  15677. updateLookOpen() {
  15678. let params = [
  15679. {
  15680. sopen: this.IsLookOpen == false ? 1 : 2,
  15681. cid: this.id,
  15682. },
  15683. ];
  15684. this.ajax
  15685. .post(this.$store.state.api + "updateCourseLookOpen", params)
  15686. .then((res) => {
  15687. if (this.IsLookOpen == true) {
  15688. // if (this.courseType != 0 && this.taskCount != 0) {
  15689. // this.openTask(0, 0, "0-0");
  15690. // }
  15691. this.$message({
  15692. message: "权限设置成功",
  15693. type: "success",
  15694. });
  15695. } else {
  15696. this.$message({
  15697. message: "权限关闭成功",
  15698. type: "success",
  15699. });
  15700. }
  15701. this.getCourseState(2);
  15702. })
  15703. .catch((err) => {
  15704. console.error(err);
  15705. });
  15706. },
  15707. selectSLook() {
  15708. let params = {
  15709. cid: this.id,
  15710. };
  15711. this.ajax
  15712. .get(this.$store.state.api + "selectCourseSLook", params)
  15713. .then((res) => {
  15714. // this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  15715. this.sIsOpen = true;
  15716. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  15717. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  15718. if (!this.IsLookOpen) {
  15719. this.setNavList();
  15720. } else {
  15721. this.getCourseState(1);
  15722. }
  15723. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  15724. let _followC = res.data[0][0].followC.split("-");
  15725. if (
  15726. this.courseType != _followC[0] ||
  15727. this.taskCount != _followC[1]
  15728. ) {
  15729. this.navList[this.courseType].isOpen = false;
  15730. this.courseType = _followC[0];
  15731. this.navList[this.courseType].isOpen = true;
  15732. this.taskCount = parseInt(_followC[1]);
  15733. this.navId = res.data[0][0].followC;
  15734. this.getCourseDetail();
  15735. }
  15736. }
  15737. })
  15738. .catch((err) => {
  15739. console.error(err);
  15740. });
  15741. },
  15742. setNavList() {
  15743. if (this.navList.length == 0) {
  15744. this.navList = [];
  15745. var copyList = [];
  15746. for (var l = 0; l < this.chapInfoList.length; l++) {
  15747. var q = this.chapInfoList[l].dyName;
  15748. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15749. var e;
  15750. copyList.push({
  15751. dyName: q,
  15752. isOpen: l === 0 ? true : false,
  15753. task: [],
  15754. });
  15755. for (var r = 0; r < w.length; r++) {
  15756. e = w[r].task;
  15757. if (this.chapInfoList[l].easy == 1) {
  15758. copyList[l].task.push({
  15759. taskName: q,
  15760. id: l + "-" + r,
  15761. isLook: r === 0 ? true : false,
  15762. tool: [],
  15763. });
  15764. } else {
  15765. copyList[l].task.push({
  15766. taskName: e,
  15767. id: l + "-" + r,
  15768. isLook: r === 0 ? true : false,
  15769. tool: [],
  15770. });
  15771. }
  15772. var t = w[r].toolChoose;
  15773. for (var k = 0; k < t.length; k++) {
  15774. var tool = t[k].tool[0];
  15775. copyList[l].task[r].tool.push({
  15776. tool: tool,
  15777. isTool: false,
  15778. });
  15779. }
  15780. // this.navId = this.navId ? this.navId : l + "-" + r;
  15781. // this.navId = l + "-" + r;
  15782. }
  15783. }
  15784. this.navList = copyList;
  15785. this.navList[0].isOpen = false;
  15786. this.navList[this.courseType].isOpen = true;
  15787. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15788. } else {
  15789. this.setNavList2();
  15790. }
  15791. },
  15792. setNavList2() {
  15793. for (var l = 0; l < this.chapInfoList.length; l++) {
  15794. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15795. for (var r = 0; r < w.length; r++) {
  15796. this.navList[l].task[r].isLook = w[r].isLook;
  15797. }
  15798. }
  15799. if (
  15800. this.IsLookOpen &&
  15801. !this.navList[this.courseType].task[this.taskCount].isLook
  15802. ) {
  15803. this.openTask(0, 0, "0-0");
  15804. }
  15805. this.$forceUpdate();
  15806. },
  15807. getCourseState(type) {
  15808. let params = {
  15809. cid: this.id,
  15810. };
  15811. this.ajax
  15812. .get(this.$store.state.api + "getCourseState", params)
  15813. .then((res) => {
  15814. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  15815. this.chapInfoList = JSON.parse(res.data[0][0].state);
  15816. this.setNavList();
  15817. this.$forceUpdate();
  15818. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  15819. this.addCourseState(2);
  15820. } else {
  15821. this.addCourseState(1);
  15822. }
  15823. })
  15824. .catch((err) => {
  15825. console.error(err);
  15826. });
  15827. },
  15828. addCourseState(type) {
  15829. let _state = this.chapInfoList;
  15830. // this.courseType this.taskCount
  15831. if (type == 1 || type == 2) {
  15832. for (var i = 0; i < _state.length; i++) {
  15833. let el = _state[i].chapterInfo[0].taskJson;
  15834. for (var j = 0; j < el.length; j++) {
  15835. // if (i == 0 && j == 0) {
  15836. // el[j].isLook = true;
  15837. // } else {
  15838. // el[j].isLook = false;
  15839. // }
  15840. if (
  15841. this.courseType > i ||
  15842. (this.courseType == i && this.taskCount + 1 > j)
  15843. ) {
  15844. el[j].isLook = true;
  15845. } else {
  15846. el[j].isLook = false;
  15847. }
  15848. }
  15849. }
  15850. }
  15851. let params = [
  15852. {
  15853. cid: this.id,
  15854. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  15855. },
  15856. ];
  15857. this.ajax
  15858. .post(
  15859. this.$store.state.api +
  15860. (type == 1 ? "addCourseState" : "updateCourseSate"),
  15861. params
  15862. )
  15863. .then((res) => {
  15864. if (this.IsLookOpen) {
  15865. this.setNavList();
  15866. }
  15867. if (type == 3 && type == 2) {
  15868. this.getCourseState(1);
  15869. }
  15870. })
  15871. .catch((err) => {
  15872. console.error(err);
  15873. });
  15874. },
  15875. getHomeWork() {
  15876. let params = {
  15877. cid: this.id,
  15878. stage: this.courseType,
  15879. task: this.taskCount,
  15880. uid: this.userid,
  15881. };
  15882. this.ajax
  15883. .get(this.$store.state.api + "selectWork", params)
  15884. .then((res) => {
  15885. if (res.data[0].length > 0) {
  15886. this.studyJuri = JSON.parse(res.data[0][0].content);
  15887. this.isNoHomeWork = true;
  15888. }
  15889. })
  15890. .catch((err) => {
  15891. console.error(err);
  15892. });
  15893. },
  15894. isAssetTypeAnImage(ext) {
  15895. return (
  15896. [
  15897. "png",
  15898. "jpg",
  15899. "jpeg",
  15900. "bmp",
  15901. "gif",
  15902. "webp",
  15903. "psd",
  15904. "svg",
  15905. "tiff",
  15906. ].indexOf(ext) !== -1
  15907. );
  15908. },
  15909. switchVideo(media) {
  15910. this.playerO = {};
  15911. this.playerOptions.poster = "";
  15912. this.playerOptions.sources[0].src = media;
  15913. this.playerO = this.playerOptions;
  15914. },
  15915. onPlayerPlay() {},
  15916. lookVedio(u, i) {
  15917. this.isClickNav = "";
  15918. // this.playerOptions.sources[0].src = u;
  15919. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15920. d.sources[0].src = u;
  15921. this.playerO[this.taskCount] = d;
  15922. this.showType = 0;
  15923. // this.isClickNav = "video" + i;
  15924. this.isClickNav = i;
  15925. this.$forceUpdate();
  15926. },
  15927. lookText(i, t) {
  15928. this.isClickNav = "";
  15929. // this.text = this.textList[i][t];
  15930. this.text = this.vChapterData[i][t];
  15931. // this.dialogVisible1 = true;
  15932. this.showType = 1;
  15933. // this.isClickNav = "text" + t;
  15934. this.isClickNav = t;
  15935. },
  15936. lookTools(i, t) {
  15937. this.chapTools = this.chapToolList[i][t];
  15938. this.dialogVisible2 = true;
  15939. },
  15940. openFile(f) {
  15941. this.pptImgUrl = "";
  15942. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15943. if (
  15944. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  15945. -1
  15946. ) {
  15947. this.pptImgUrl =
  15948. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  15949. this.showPDF = false;
  15950. this.dialogVisible3 = true;
  15951. } else if (
  15952. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15953. ) {
  15954. this.pptImgUrl = f;
  15955. this.showPDF = true;
  15956. this.dialogVisible3 = true;
  15957. }
  15958. },
  15959. openTable(f) {
  15960. this.tableJson = JSON.parse(f.works);
  15961. this.$forceUpdate();
  15962. this.dialogVisibleTable2 = true;
  15963. },
  15964. openWord(f) {
  15965. this.tableJson = JSON.parse(f.works);
  15966. this.$forceUpdate();
  15967. this.dialogVisibleTable3 = true;
  15968. },
  15969. doUrl(url, i) {
  15970. this.isClickNav = "";
  15971. this.pptImgUrl1 = "";
  15972. this.showType = 2;
  15973. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  15974. url = "https://" + url;
  15975. }
  15976. this.pptImgUrl1 = url;
  15977. // this.isClickNav = "line" + i;
  15978. this.isClickNav = i;
  15979. },
  15980. checkPhoto(f, i) {
  15981. this.showType = 4;
  15982. this.pptImgUrl1 = f.url;
  15983. this.isClickNav = i;
  15984. this.$forceUpdate();
  15985. },
  15986. downFile(f, i) {
  15987. this.isClickNav = "";
  15988. this.pptImgUrl1 = "";
  15989. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  15990. if (
  15991. a.indexOf(
  15992. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  15993. ) != -1
  15994. ) {
  15995. this.pptImgUrl1 =
  15996. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  15997. // this.dialogVisible3 = true;
  15998. this.showType = 2;
  15999. } else if (
  16000. this.isAssetTypeAnImage(
  16001. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16002. )
  16003. ) {
  16004. this.showType = 4;
  16005. this.pptImgUrl1 = f.url;
  16006. } else if (
  16007. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16008. "PDF"
  16009. ) {
  16010. this.pptImgUrl1 = f.url;
  16011. // this.dialogVisible3 = true;
  16012. this.showType = 3;
  16013. } else {
  16014. window.open(this.file[i].url);
  16015. }
  16016. // this.isClickNav = "word" + i;
  16017. this.isClickNav = i;
  16018. },
  16019. downFileList(i) {
  16020. window.open(this.noImgList[i].url);
  16021. },
  16022. openAddWork() {
  16023. this.dialogVisible = true;
  16024. },
  16025. addBzWorks() {
  16026. let params = [
  16027. {
  16028. uid: this.userid,
  16029. cid: this.id,
  16030. stage: this.courseType,
  16031. task: this.taskCount,
  16032. tool: this.toolindex,
  16033. content: JSON.stringify(this.eScore),
  16034. type: 6,
  16035. },
  16036. ];
  16037. this.ajax
  16038. .post(this.$store.state.api + "addCourseWorks", params)
  16039. .then((res) => {
  16040. this.$message({
  16041. message: "提交成功",
  16042. type: "success",
  16043. });
  16044. this.eScore = { eBzText: "", eStar: [] };
  16045. this.studentEvalDialogVisible = false;
  16046. this.selectSWorks();
  16047. })
  16048. .catch((err) => {
  16049. this.$message.error("提交失败");
  16050. console.error(err);
  16051. });
  16052. },
  16053. addBzWorksTeacher() {
  16054. let params = [
  16055. {
  16056. uid: this.sStudent.userid,
  16057. cid: this.id,
  16058. stage: this.courseType,
  16059. task: this.taskCount,
  16060. tool: this.toolindex,
  16061. content: JSON.stringify(this.eScore),
  16062. type: 6,
  16063. },
  16064. ];
  16065. this.ajax
  16066. .post(this.$store.state.api + "addCourseWorks", params)
  16067. .then((res) => {
  16068. this.$message({
  16069. message: "提交成功",
  16070. type: "success",
  16071. });
  16072. this.eScore = { eBzText: "", eStar: [] };
  16073. this.studentEvalDialogVisibleTeacher = false;
  16074. this.selectSWorks();
  16075. })
  16076. .catch((err) => {
  16077. this.$message.error("提交失败");
  16078. console.error(err);
  16079. });
  16080. },
  16081. addStudentAsk() {
  16082. if (!this.radio.length) {
  16083. this.$message.error("请选择选项");
  16084. return;
  16085. }
  16086. for (var i = 0; i < this.askJson.askCount; i++) {
  16087. if (
  16088. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16089. (this.radio[i] !== 0 && !this.radio[i])
  16090. ) {
  16091. this.$message.error("请选择选项");
  16092. return;
  16093. }
  16094. }
  16095. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16096. let params = [
  16097. {
  16098. uid: this.userid,
  16099. cid: this.id,
  16100. stage: this.courseType,
  16101. task: this.taskCount,
  16102. tool: this.toolindex,
  16103. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16104. type: 2,
  16105. },
  16106. ];
  16107. this.ajax
  16108. .post(this.$store.state.api + "addCourseWorks", params)
  16109. .then((res) => {
  16110. this.$message({
  16111. message: "提交成功",
  16112. type: "success",
  16113. });
  16114. this.askList = [];
  16115. this.dialogVisible5 = false;
  16116. this.selectStudent();
  16117. this.selectSWorks();
  16118. this.selectSLook();
  16119. })
  16120. .catch((err) => {
  16121. this.$message.error("提交失败");
  16122. console.error(err);
  16123. });
  16124. },
  16125. addStudentAskTeacher() {
  16126. if (!this.radio.length) {
  16127. this.$message.error("请选择选项");
  16128. return;
  16129. }
  16130. for (var i = 0; i < this.askJson.askCount; i++) {
  16131. if (
  16132. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16133. (this.radio[i] !== 0 && !this.radio[i])
  16134. ) {
  16135. this.$message.error("请选择选项");
  16136. return;
  16137. }
  16138. }
  16139. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16140. let params = [
  16141. {
  16142. uid: this.sStudent.userid,
  16143. cid: this.id,
  16144. stage: this.courseType,
  16145. task: this.taskCount,
  16146. tool: this.toolindex,
  16147. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16148. type: 2,
  16149. },
  16150. ];
  16151. this.ajax
  16152. .post(this.$store.state.api + "addCourseWorks", params)
  16153. .then((res) => {
  16154. this.$message({
  16155. message: "提交成功",
  16156. type: "success",
  16157. });
  16158. this.askList = [];
  16159. this.dialogVisible5Teacher = false;
  16160. this.selectStudent();
  16161. this.selectSWorks();
  16162. this.selectSLook();
  16163. })
  16164. .catch((err) => {
  16165. this.$message.error("提交失败");
  16166. console.error(err);
  16167. });
  16168. },
  16169. addStudentTest() {
  16170. if (!this.radio.length) {
  16171. this.$message.error("请选择选项");
  16172. return;
  16173. }
  16174. for (var i = 0; i < this.testJson.testCount; i++) {
  16175. if (
  16176. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16177. (this.radio[i] !== 0 && !this.radio[i])
  16178. ) {
  16179. this.$message.error("请选择选项");
  16180. return;
  16181. }
  16182. }
  16183. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16184. let params = [
  16185. {
  16186. uid: this.userid,
  16187. cid: this.id,
  16188. stage: this.courseType,
  16189. task: this.taskCount,
  16190. tool: this.toolindex,
  16191. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16192. type: 8,
  16193. },
  16194. ];
  16195. this.ajax
  16196. .post(this.$store.state.api + "addCourseWorks", params)
  16197. .then((res) => {
  16198. this.$message({
  16199. message: "提交成功",
  16200. type: "success",
  16201. });
  16202. this.askList = [];
  16203. this.dialogVisibleChoice = false;
  16204. this.selectStudent();
  16205. this.selectSWorks();
  16206. this.selectSLook();
  16207. })
  16208. .catch((err) => {
  16209. this.$message.error("提交失败");
  16210. console.error(err);
  16211. });
  16212. },
  16213. addStudentTestTeacher() {
  16214. if (!this.radio.length) {
  16215. this.$message.error("请选择选项");
  16216. return;
  16217. }
  16218. for (var i = 0; i < this.testJson.testCount; i++) {
  16219. if (
  16220. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16221. (this.radio[i] !== 0 && !this.radio[i])
  16222. ) {
  16223. this.$message.error("请选择选项");
  16224. return;
  16225. }
  16226. }
  16227. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16228. let params = [
  16229. {
  16230. uid: this.sStudent.userid,
  16231. cid: this.id,
  16232. stage: this.courseType,
  16233. task: this.taskCount,
  16234. tool: this.toolindex,
  16235. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16236. type: 8,
  16237. },
  16238. ];
  16239. this.ajax
  16240. .post(this.$store.state.api + "addCourseWorks", params)
  16241. .then((res) => {
  16242. this.$message({
  16243. message: "提交成功",
  16244. type: "success",
  16245. });
  16246. this.askList = [];
  16247. this.dialogVisibleChoiceTeacher = false;
  16248. this.selectStudent();
  16249. this.selectSWorks();
  16250. this.selectSLook();
  16251. })
  16252. .catch((err) => {
  16253. this.$message.error("提交失败");
  16254. console.error(err);
  16255. });
  16256. },
  16257. addWork() {
  16258. if (this.studyJuri[0].content == "") {
  16259. this.$message.error("请将信息填写完整");
  16260. return;
  16261. } else if (this.studyJuri[0].cover.length == 0) {
  16262. this.$message.error("请将信息填写完整");
  16263. return;
  16264. } else if (this.studyJuri[0].upVedio.length == 0) {
  16265. this.$message.error("请将信息填写完整");
  16266. return;
  16267. }
  16268. if (this.isNoHomeWork) {
  16269. this.$confirm(
  16270. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  16271. "提示",
  16272. {
  16273. confirmButtonText: "确定",
  16274. cancelButtonText: "取消",
  16275. type: "warning",
  16276. }
  16277. )
  16278. .then(() => {
  16279. let params = [
  16280. {
  16281. uid: this.userid,
  16282. cid: this.id,
  16283. stage: this.courseType,
  16284. task: this.taskCount,
  16285. content: JSON.stringify(this.studyJuri),
  16286. },
  16287. ];
  16288. this.ajax
  16289. .post(this.$store.state.api + "addWorks", params)
  16290. .then((res) => {
  16291. this.$message({
  16292. message: "提交成功",
  16293. type: "success",
  16294. });
  16295. this.isNoHomeWork = true;
  16296. this.dialogVisible = false;
  16297. })
  16298. .catch((err) => {
  16299. this.$message.error("提交失败");
  16300. console.error(err);
  16301. });
  16302. })
  16303. .catch(() => {});
  16304. } else {
  16305. let params = [
  16306. {
  16307. uid: this.userid,
  16308. cid: this.id,
  16309. stage: this.courseType,
  16310. task: this.taskCount,
  16311. content: JSON.stringify(this.studyJuri),
  16312. },
  16313. ];
  16314. this.ajax
  16315. .post(this.$store.state.api + "addWorks", params)
  16316. .then((res) => {
  16317. this.$message({
  16318. message: "提交成功",
  16319. type: "success",
  16320. });
  16321. this.isNoHomeWork = true;
  16322. this.dialogVisible = false;
  16323. })
  16324. .catch((err) => {
  16325. this.$message.error("提交失败");
  16326. console.error(err);
  16327. });
  16328. }
  16329. },
  16330. selectCount() {
  16331. let params = {
  16332. cid: this.id,
  16333. chid: this.courseType,
  16334. uid: this.userid,
  16335. };
  16336. this.ajax
  16337. .get(this.$store.state.api + "selectToolsCount", params)
  16338. .then((res) => {
  16339. for (var i = 0; i < res.data[0].length; i++) {
  16340. if (res.data[0][i].tools == 1) {
  16341. this.wbCount = res.data[0][i].count;
  16342. } else if (res.data[0][i].tools == 2) {
  16343. this.wordCount = res.data[0][i].count;
  16344. } else if (res.data[0][i].tools == 3) {
  16345. this.mindCount = res.data[0][i].count;
  16346. } else if (res.data[0][i].tools == 4) {
  16347. this.askCount = res.data[0][i].count;
  16348. } else if (res.data[0][i].tools == 6) {
  16349. this.noteCount = res.data[0][i].count;
  16350. } else if (res.data[0][i].tools == 7) {
  16351. this.mindNetWorkCount = res.data[0][i].count;
  16352. } else if (res.data[0][i].tools == 8) {
  16353. this.libraryCount = res.data[0][i].count;
  16354. } else if (res.data[0][i].tools == 16) {
  16355. this.workCount = res.data[0][i].count;
  16356. } else if (res.data[0][i].tools == 10) {
  16357. this.timeCount = res.data[0][i].count;
  16358. } else if (res.data[0][i].tools == 15) {
  16359. this.answerCount = res.data[0][i].count;
  16360. } else if (res.data[0][i].tools == 18) {
  16361. this.trainCount = res.data[0][i].count;
  16362. }
  16363. }
  16364. })
  16365. .catch((err) => {
  16366. console.error(err);
  16367. });
  16368. },
  16369. openTools(t, i, index, c, sName) {
  16370. var z = JSON.parse(c);
  16371. this.noteName = sName;
  16372. if (t == 4) {
  16373. this.radio = [];
  16374. this.isAnswer = false;
  16375. let b = z[0].anwer;
  16376. this.radio = b;
  16377. this.askJson = z[0].askJson;
  16378. this.isAnswer = true;
  16379. this.dialogVisible5 = true;
  16380. } else if (t == 45) {
  16381. this.radio = [];
  16382. this.isAnswer = false;
  16383. let b = z[0].anwer;
  16384. this.radio = b;
  16385. this.testJson = z[0].testJson;
  16386. this.isAnswer = true;
  16387. this.dialogVisibleChoice = true;
  16388. }
  16389. // else if (t == 15) {
  16390. // this.answerQ = "";
  16391. // this.questionAnswer = "";
  16392. // this.answerQ = z[0].answerTitle;
  16393. // this.questionAnswer = z[0].answer;
  16394. // this.answerDialogVisible = true;
  16395. // }
  16396. },
  16397. fastText(p, t) {
  16398. if (t == 1) {
  16399. this.commentText += p;
  16400. } else {
  16401. this.eScore.eBzText += p;
  16402. }
  16403. },
  16404. addTools(t, i, index) {
  16405. var a = 0;
  16406. // this.taskCount = index;
  16407. this.toolindex = i;
  16408. if (t == 1) {
  16409. if (this.wbCount > 0) {
  16410. this.updateCount(this.wbCount, t);
  16411. } else {
  16412. this.wbCount++;
  16413. a = this.wbCount;
  16414. this.toolsCount(a, t);
  16415. }
  16416. window.parent.postMessage(
  16417. {
  16418. tools: "1",
  16419. cid: this.id,
  16420. stage: this.courseType,
  16421. task: this.taskCount,
  16422. tool: i,
  16423. },
  16424. "*"
  16425. );
  16426. } else if (t == 2) {
  16427. if (this.wordCount > 0) {
  16428. this.updateCount(this.wordCount, t);
  16429. } else {
  16430. this.wordCount++;
  16431. a = this.wordCount;
  16432. this.toolsCount(a, t);
  16433. }
  16434. window.parent.postMessage({ tools: "2" }, "*");
  16435. } else if (t == 3) {
  16436. if (this.mindCount > 0) {
  16437. this.updateCount(this.mindCount, t);
  16438. } else {
  16439. this.mindCount++;
  16440. a = this.mindCount;
  16441. this.toolsCount(a, t);
  16442. }
  16443. window.parent.postMessage(
  16444. {
  16445. tools: "3",
  16446. cid: this.id,
  16447. stage: this.courseType,
  16448. task: this.taskCount,
  16449. tool: i,
  16450. },
  16451. "*"
  16452. );
  16453. } else if (t == 4) {
  16454. this.radio = [];
  16455. this.noteName = "";
  16456. this.isAnswer = false;
  16457. if (this.askCount > 0) {
  16458. this.updateCount(this.askCount, t);
  16459. } else {
  16460. this.askCount++;
  16461. a = this.askCount;
  16462. this.toolsCount(a, t);
  16463. }
  16464. this.askJson.askJson =
  16465. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16466. index
  16467. ].toolChoose[i].askJson;
  16468. this.askJson.askTitle =
  16469. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16470. index
  16471. ].toolChoose[i].askTitle;
  16472. this.askJson.askCount =
  16473. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16474. index
  16475. ].toolChoose[i].askCount;
  16476. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16477. if (this.askJson.askJson[k].type == "2") {
  16478. this.radio.push([]);
  16479. } else {
  16480. this.radio.push("");
  16481. }
  16482. }
  16483. this.dialogVisible5 = true;
  16484. // window.parent.postMessage({ tools: "4" }, "*");
  16485. } else if (t == 45) {
  16486. this.noteName = "";
  16487. this.radio = [];
  16488. this.isAnswer = false;
  16489. if (this.askCount > 0) {
  16490. this.updateCount(this.askCount, t);
  16491. } else {
  16492. this.askCount++;
  16493. a = this.askCount;
  16494. this.toolsCount(a, t);
  16495. }
  16496. this.testJson =
  16497. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16498. index
  16499. ].toolChoose[i].testJson;
  16500. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16501. if (this.testJson.testJson[k].type == "2") {
  16502. this.radio.push([]);
  16503. } else {
  16504. this.radio.push("");
  16505. }
  16506. }
  16507. this.dialogVisibleChoice = true;
  16508. // window.parent.postMessage({ tools: "4" }, "*");
  16509. } else if (t == 5) {
  16510. if (this.scoreCount > 0) {
  16511. this.updateCount(this.scoreCount, t);
  16512. } else {
  16513. this.scoreCount++;
  16514. a = this.scoreCount;
  16515. this.toolsCount(a, t);
  16516. }
  16517. this.dialogVisible4 = true;
  16518. // window.parent.postMessage({ tools: "5" }, "*");
  16519. } else if (t == 6) {
  16520. if (this.noteCount > 0) {
  16521. this.updateCount(this.noteCount, t);
  16522. } else {
  16523. this.noteCount++;
  16524. a = this.noteCount;
  16525. this.toolsCount(a, t);
  16526. }
  16527. window.parent.postMessage(
  16528. {
  16529. tools: "6",
  16530. cid: this.id,
  16531. stage: this.courseType,
  16532. task: this.taskCount,
  16533. tool: i,
  16534. },
  16535. "*"
  16536. );
  16537. } else if (t == 7) {
  16538. if (this.mindNetWorkCount > 0) {
  16539. this.updateCount(this.mindNetWorkCount, t);
  16540. } else {
  16541. this.mindNetWorkCount++;
  16542. a = this.mindNetWorkCount;
  16543. this.toolsCount(a, t);
  16544. }
  16545. window.parent.postMessage(
  16546. {
  16547. tools: "7",
  16548. cid: this.id,
  16549. stage: this.courseType,
  16550. task: this.taskCount,
  16551. tool: i,
  16552. },
  16553. "*"
  16554. );
  16555. } else if (t == 16) {
  16556. if (this.workCount > 0) {
  16557. this.updateCount(this.workCount, t);
  16558. } else {
  16559. this.workCount++;
  16560. a = this.workCount;
  16561. this.toolsCount(a, t);
  16562. }
  16563. this.dialogVisible = true;
  16564. } else if (t == 50) {
  16565. if (this.tType == 2) {
  16566. this.$message.error("不支持学生使用");
  16567. return;
  16568. }
  16569. this.plworkFile = [];
  16570. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16571. if (!this.uploadCid) {
  16572. this.$message.error(
  16573. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16574. );
  16575. return;
  16576. }
  16577. this.selectUploadStudent(2);
  16578. } else if (t == 8) {
  16579. if (this.libraryCount > 0) {
  16580. this.updateCount(this.libraryCount, t);
  16581. } else {
  16582. this.libraryCount++;
  16583. a = this.libraryCount;
  16584. this.toolsCount(a, t);
  16585. }
  16586. window.parent.postMessage({ tools: "8" }, "*");
  16587. } else if (t == 17) {
  16588. if (this.libraryCount > 0) {
  16589. this.updateCount(this.libraryCount, t);
  16590. } else {
  16591. this.libraryCount++;
  16592. a = this.libraryCount;
  16593. this.toolsCount(a, t);
  16594. }
  16595. window.parent.postMessage({ tools: "17" }, "*");
  16596. } else if (t == 18) {
  16597. if (this.trainCount > 0) {
  16598. this.updateCount(this.trainCount, t);
  16599. } else {
  16600. this.trainCount++;
  16601. a = this.trainCount;
  16602. this.toolsCount(a, t);
  16603. }
  16604. window.parent.postMessage({ tools: "18" }, "*");
  16605. } else if (t == 10) {
  16606. if (this.timeCount > 0) {
  16607. this.updateCount(this.timeCount, t);
  16608. } else {
  16609. this.timeCount++;
  16610. a = this.timeCount;
  16611. this.toolsCount(a, t);
  16612. }
  16613. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  16614. .taskJson[index].toolChoose[i].preTime
  16615. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16616. .toolChoose[i].preTime
  16617. : "";
  16618. this.timeDialogVisible = true;
  16619. } else if (t == 15) {
  16620. this.answerQ = "";
  16621. this.questionAnswer = "";
  16622. if (this.answerCount > 0) {
  16623. this.updateCount(this.answerCount, t);
  16624. } else {
  16625. this.answerCount++;
  16626. a = this.answerCount;
  16627. this.toolsCount(a, t);
  16628. }
  16629. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16630. .taskJson[index].toolChoose[i].answerQ
  16631. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16632. .toolChoose[i].answerQ
  16633. : "";
  16634. this.answerDialogVisible = true;
  16635. } else if (t == 21) {
  16636. window.parent.postMessage({ tools: "21" }, "*");
  16637. } else if (t == 22) {
  16638. window.parent.postMessage({ tools: "22" }, "*");
  16639. } else if (t == 23) {
  16640. window.parent.postMessage({ tools: "23" }, "*");
  16641. } else if (t == 24) {
  16642. window.parent.postMessage({ tools: "24" }, "*");
  16643. } else if (t == 25) {
  16644. window.parent.postMessage({ tools: "25" }, "*");
  16645. } else if (t == 31) {
  16646. window.parent.postMessage({ tools: "31" }, "*");
  16647. } else if (t == 28) {
  16648. window.parent.postMessage({ tools: "28" }, "*");
  16649. } else if (t == 37) {
  16650. window.parent.postMessage({ tools: "37" }, "*");
  16651. } else if (t == 38) {
  16652. window.parent.postMessage({ tools: "38" }, "*");
  16653. } else if (t == 39) {
  16654. window.parent.postMessage({ tools: "39" }, "*");
  16655. } else if (t == 32) {
  16656. window.parent.postMessage({ tools: "32" }, "*");
  16657. } else if (t == 66) {
  16658. window.parent.postMessage({ tools: "66" }, "*");
  16659. } else if (t == 67) {
  16660. window.parent.postMessage({ tools: "67" }, "*");
  16661. } else if (t == 68) {
  16662. window.parent.postMessage({ tools: "68" }, "*");
  16663. } else if (t == 57) {
  16664. // window.parent.postMessage({ tools: "57" }, "*");
  16665. window.parent.postMessage(
  16666. {
  16667. tools: "57u",
  16668. cid: this.id,
  16669. stage: this.courseType,
  16670. task: this.taskCount,
  16671. tool: i,
  16672. },
  16673. "*"
  16674. );
  16675. } else if (t == 58) {
  16676. window.parent.postMessage({ tools: "58" }, "*");
  16677. } else if (t == 59) {
  16678. window.parent.postMessage({ tools: "59" }, "*");
  16679. } else if (t == 60) {
  16680. window.parent.postMessage({ tools: "60" }, "*");
  16681. } else if (t == 61) {
  16682. window.parent.postMessage({ tools: "61" }, "*");
  16683. } else if (t == 63) {
  16684. window.parent.postMessage({ tools: "63" }, "*");
  16685. } else if (t == 65) {
  16686. if (this.tType == 2) {
  16687. this.$message.error("不支持学生使用");
  16688. return;
  16689. }
  16690. this.uploadCid = this.tcid;
  16691. if (!this.uploadCid) {
  16692. this.$message.error(
  16693. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  16694. );
  16695. return;
  16696. }
  16697. this.selectPickStudent();
  16698. } else if (t == 26) {
  16699. window.parent.postMessage(
  16700. {
  16701. tools: "26",
  16702. cid: this.id,
  16703. stage: this.courseType,
  16704. task: this.taskCount,
  16705. tool: i,
  16706. },
  16707. "*"
  16708. );
  16709. } else if (t == 40) {
  16710. if (this.evalCount > 0) {
  16711. this.updateCount(this.evalCount, t);
  16712. } else {
  16713. this.evalCount++;
  16714. a = this.evalCount;
  16715. this.toolsCount(a, t);
  16716. }
  16717. this.eScore = { eBzText: "", eStar: [] };
  16718. if (this.worksStudent[i].length) {
  16719. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16720. if (this.userid == this.worksStudent[i][k].userid) {
  16721. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16722. this.rateJson =
  16723. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16724. index
  16725. ].toolChoose[i].rateJson;
  16726. break;
  16727. } else {
  16728. this.rateJson =
  16729. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16730. index
  16731. ].toolChoose[i].rateJson;
  16732. }
  16733. }
  16734. } else {
  16735. this.rateJson =
  16736. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16737. index
  16738. ].toolChoose[i].rateJson;
  16739. }
  16740. this.isStar = false;
  16741. this.studentEvalDialogVisible = true;
  16742. } else if (t == 41) {
  16743. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16744. .taskJson[index].toolChoose[i].selectJson
  16745. ? JSON.parse(
  16746. JSON.stringify(
  16747. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16748. index
  16749. ].toolChoose[i].selectJson
  16750. )
  16751. )
  16752. : { url: "", select: [], answer: [] };
  16753. if (this.worksStudent[i].length) {
  16754. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16755. if (this.userid == this.worksStudent[i][k].userid) {
  16756. var a = this.worksStudent[i][k].works.split(",");
  16757. for (var ki = 0; ki < a.length; ki++) {
  16758. a[ki] = parseInt(a[ki]);
  16759. }
  16760. this.selectAnswer = {
  16761. answer: a,
  16762. stu: this.worksStudent[i][k].sName,
  16763. };
  16764. break;
  16765. } else {
  16766. this.selectAnswer = { answer: [], stu: "" };
  16767. }
  16768. }
  16769. } else {
  16770. this.selectAnswer = { answer: [], stu: "" };
  16771. }
  16772. this.isSelect = false;
  16773. this.dialogVisibleSelect = true;
  16774. } else if (t == 44) {
  16775. window.parent.postMessage({ tools: "44" }, "*");
  16776. } else if (t == 47) {
  16777. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16778. .taskJson[index].toolChoose[i].sentenceList
  16779. ? JSON.parse(
  16780. JSON.stringify(
  16781. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16782. index
  16783. ].toolChoose[i].sentenceList
  16784. )
  16785. )
  16786. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16787. for (var q = 0; q < this.sentenceList.length; q++) {
  16788. this.sentenceList[q].chooseSenList = [];
  16789. this.sentenceList[q].addChangeSen = [];
  16790. this.sentenceList[q].addChangeSen = JSON.parse(
  16791. JSON.stringify(this.sentenceList[q].addSentence)
  16792. );
  16793. this.sentenceList[q].chooseSenList.length =
  16794. this.sentenceList[q].rightAnswer.length;
  16795. }
  16796. this.dialogVisibleSentence = true;
  16797. } else if (t == 48) {
  16798. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16799. .taskJson[index].toolChoose[i].tableJson
  16800. ? JSON.parse(
  16801. JSON.stringify(
  16802. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16803. index
  16804. ].toolChoose[i].tableJson
  16805. )
  16806. )
  16807. : { text: "" };
  16808. if (this.worksStudent[i].length) {
  16809. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16810. if (this.userid == this.worksStudent[i][k].userid) {
  16811. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16812. break;
  16813. }
  16814. }
  16815. }
  16816. this.dialogVisibleTable = true;
  16817. } else if (t == 52) {
  16818. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16819. .taskJson[index].toolChoose[i].wordJson
  16820. ? JSON.parse(
  16821. JSON.stringify(
  16822. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16823. index
  16824. ].toolChoose[i].wordJson
  16825. )
  16826. )
  16827. : { text: "" };
  16828. if (this.worksStudent[i].length) {
  16829. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16830. if (this.userid == this.worksStudent[i][k].userid) {
  16831. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  16832. break;
  16833. }
  16834. }
  16835. }
  16836. this.dialogVisibleWord = true;
  16837. } else if (t == 49) {
  16838. this.groupJson =
  16839. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16840. index
  16841. ].toolChoose[i].groupJson;
  16842. this.dialogVisibleGroup = true;
  16843. } else if (t == 62) {
  16844. this.videoJson =
  16845. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16846. index
  16847. ].toolChoose[i].videoJson;
  16848. this.dialogVisibleVideo = true;
  16849. }
  16850. },
  16851. teacherWorkSubmit(t, i, index, s) {
  16852. this.sStudent = s;
  16853. this.sTool = t;
  16854. this.toolindex = i;
  16855. if (this.tType !== "1" && this.tType !== "4") {
  16856. return;
  16857. }
  16858. if (t == 16 || t == 32 || t == 50) {
  16859. this.dialogVisibleWorks = true; //作业提交
  16860. } else if (t == 15) {
  16861. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16862. .taskJson[index].toolChoose[i].answerQ
  16863. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16864. .toolChoose[i].answerQ
  16865. : "";
  16866. this.questionAnswer = "";
  16867. this.answerDialogVisibleTeacher = true; //问答
  16868. } else if (t == 52) {
  16869. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16870. .taskJson[index].toolChoose[i].wordJson
  16871. ? JSON.parse(
  16872. JSON.stringify(
  16873. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16874. index
  16875. ].toolChoose[i].wordJson
  16876. )
  16877. )
  16878. : { text: "" };
  16879. if (this.worksStudent[i].length) {
  16880. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16881. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16882. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  16883. break;
  16884. }
  16885. }
  16886. }
  16887. this.dialogVisibleWordTeacher = true; //文档
  16888. } else if (t == 4) {
  16889. this.radio = [];
  16890. this.noteName = "";
  16891. this.isAnswer = false;
  16892. if (this.askCount > 0) {
  16893. this.updateCount(this.askCount, t);
  16894. } else {
  16895. this.askCount++;
  16896. a = this.askCount;
  16897. this.toolsCount(a, t);
  16898. }
  16899. if (!this.dialogVisible2) {
  16900. this.askJson.askJson =
  16901. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16902. index
  16903. ].toolChoose[i].askJson;
  16904. this.askJson.askTitle =
  16905. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16906. index
  16907. ].toolChoose[i].askTitle;
  16908. this.askJson.askCount =
  16909. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16910. index
  16911. ].toolChoose[i].askCount;
  16912. } else {
  16913. this.askJson.askJson = this.chapTools.askJson.askJson;
  16914. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  16915. this.askJson.askCount = this.chapTools.askJson.askCount;
  16916. }
  16917. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16918. if (this.askJson.askJson[k].type == "2") {
  16919. this.radio.push([]);
  16920. } else {
  16921. this.radio.push("");
  16922. }
  16923. }
  16924. this.dialogVisible5Teacher = true;
  16925. } else if (t == 45) {
  16926. this.noteName = "";
  16927. this.radio = [];
  16928. this.isAnswer = false;
  16929. if (this.askCount > 0) {
  16930. this.updateCount(this.askCount, t);
  16931. } else {
  16932. this.askCount++;
  16933. a = this.askCount;
  16934. this.toolsCount(a, t);
  16935. }
  16936. this.testJson =
  16937. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16938. index
  16939. ].toolChoose[i].testJson;
  16940. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16941. if (this.testJson.testJson[k].type == "2") {
  16942. this.radio.push([]);
  16943. } else {
  16944. this.radio.push("");
  16945. }
  16946. }
  16947. this.dialogVisibleChoiceTeacher = true;
  16948. } else if (t == 41) {
  16949. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16950. .taskJson[index].toolChoose[i].selectJson
  16951. ? JSON.parse(
  16952. JSON.stringify(
  16953. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16954. index
  16955. ].toolChoose[i].selectJson
  16956. )
  16957. )
  16958. : { url: "", select: [], answer: [] };
  16959. if (this.worksStudent[i].length) {
  16960. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16961. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16962. var a = this.worksStudent[i][k].works.split(",");
  16963. for (var ki = 0; ki < a.length; ki++) {
  16964. a[ki] = parseInt(a[ki]);
  16965. }
  16966. this.selectAnswer = {
  16967. answer: a,
  16968. stu: this.worksStudent[i][k].sName,
  16969. };
  16970. break;
  16971. } else {
  16972. this.selectAnswer = { answer: [], stu: "" };
  16973. }
  16974. }
  16975. } else {
  16976. this.selectAnswer = { answer: [], stu: "" };
  16977. }
  16978. this.isSelect = false;
  16979. this.dialogVisibleSelectTeacher = true;
  16980. } else if (t == 47) {
  16981. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16982. .taskJson[index].toolChoose[i].sentenceList
  16983. ? JSON.parse(
  16984. JSON.stringify(
  16985. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16986. index
  16987. ].toolChoose[i].sentenceList
  16988. )
  16989. )
  16990. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16991. for (var q = 0; q < this.sentenceList.length; q++) {
  16992. this.sentenceList[q].chooseSenList = [];
  16993. this.sentenceList[q].addChangeSen = [];
  16994. this.sentenceList[q].addChangeSen = JSON.parse(
  16995. JSON.stringify(this.sentenceList[q].addSentence)
  16996. );
  16997. this.sentenceList[q].chooseSenList.length =
  16998. this.sentenceList[q].rightAnswer.length;
  16999. }
  17000. this.dialogVisibleSentenceTeacher = true;
  17001. } else if (t == 48) {
  17002. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17003. .taskJson[index].toolChoose[i].tableJson
  17004. ? JSON.parse(
  17005. JSON.stringify(
  17006. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17007. index
  17008. ].toolChoose[i].tableJson
  17009. )
  17010. )
  17011. : { text: "" };
  17012. if (this.worksStudent[i].length) {
  17013. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17014. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17015. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17016. break;
  17017. }
  17018. }
  17019. }
  17020. this.dialogVisibleTableTeacher = true;
  17021. } else if (t == 40) {
  17022. if (this.evalCount > 0) {
  17023. this.updateCount(this.evalCount, t);
  17024. } else {
  17025. this.evalCount++;
  17026. a = this.evalCount;
  17027. this.toolsCount(a, t);
  17028. }
  17029. this.eScore = { eBzText: "", eStar: [] };
  17030. if (this.worksStudent[i].length) {
  17031. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17032. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17033. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17034. this.rateJson =
  17035. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17036. index
  17037. ].toolChoose[i].rateJson;
  17038. break;
  17039. } else {
  17040. this.rateJson =
  17041. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17042. index
  17043. ].toolChoose[i].rateJson;
  17044. }
  17045. }
  17046. } else {
  17047. this.rateJson =
  17048. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17049. index
  17050. ].toolChoose[i].rateJson;
  17051. }
  17052. this.isStar = false;
  17053. this.studentEvalDialogVisibleTeacher = true;
  17054. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17055. window.parent.postMessage(
  17056. {
  17057. tools: t + "teacher",
  17058. cid: this.id,
  17059. stage: this.courseType,
  17060. task: this.taskCount,
  17061. tool: i,
  17062. student: this.sStudent,
  17063. },
  17064. "*"
  17065. );
  17066. }
  17067. },
  17068. openCocoPi(tool, i, uid, uname) {
  17069. let student = {
  17070. userid: uid,
  17071. student: uname,
  17072. };
  17073. if (tool == 57) {
  17074. window.parent.postMessage(
  17075. {
  17076. tools: tool + "teacher",
  17077. cid: this.id,
  17078. stage: this.courseType,
  17079. task: this.taskCount,
  17080. tool: i,
  17081. student: student,
  17082. },
  17083. "*"
  17084. );
  17085. }
  17086. },
  17087. setRightAnswer(s, i, j) {
  17088. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17089. if (
  17090. this.sentenceList[i].chooseSenList[q] == undefined ||
  17091. this.sentenceList[i].chooseSenList[q] == ""
  17092. ) {
  17093. this.sentenceList[i].chooseSenList[q] = s;
  17094. this.sentenceList[i].addChangeSen[j] = "";
  17095. break;
  17096. }
  17097. }
  17098. this.$forceUpdate();
  17099. },
  17100. returnCard(r, i, j) {
  17101. var a = this.sentenceList[i].addSentence.indexOf(r);
  17102. this.sentenceList[i].chooseSenList[j] = "";
  17103. this.sentenceList[i].addChangeSen[a] = r;
  17104. this.$forceUpdate();
  17105. },
  17106. // addSentenceTool() {
  17107. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17108. // this.taskCount
  17109. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17110. // this.sentenceList = [
  17111. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17112. // ];
  17113. // this.dialogVisibleSentence = false;
  17114. // },
  17115. toolsCount(a, t) {
  17116. let params = {
  17117. cid: this.id,
  17118. chid: this.courseType,
  17119. uid: this.userid,
  17120. tid: t,
  17121. count: a,
  17122. };
  17123. this.ajax
  17124. .get(this.$store.state.api + "insertToolsCount", params)
  17125. .then((res) => {
  17126. this.selectCount();
  17127. })
  17128. .catch((err) => {
  17129. console.error(err);
  17130. });
  17131. },
  17132. updateCount(c, t) {
  17133. c++;
  17134. let params = {
  17135. cid: this.id,
  17136. chid: this.courseType,
  17137. uid: this.userid,
  17138. tid: t,
  17139. count: c,
  17140. };
  17141. this.ajax
  17142. .get(this.$store.state.api + "updateToolsCount", params)
  17143. .then((res) => {
  17144. this.selectCount();
  17145. })
  17146. .catch((err) => {
  17147. console.error(err);
  17148. });
  17149. },
  17150. checkEva() {
  17151. if (this.evalua != "") {
  17152. for (var i = 0; i < this.evaJuri.length; i++) {
  17153. if (this.evalua == this.evaJuri[i].id) {
  17154. this.eTitle = this.evaJuri[i].title;
  17155. this.eJson = JSON.parse(this.evaJuri[i].content);
  17156. }
  17157. }
  17158. this.$forceUpdate();
  17159. setTimeout(() => {
  17160. this.setMindData();
  17161. }, 0);
  17162. }
  17163. },
  17164. selectEva() {
  17165. let params = {
  17166. oid: this.oid,
  17167. };
  17168. this.ajax
  17169. .get(this.$store.state.api + "selectAllEvaluation", params)
  17170. .then((res) => {
  17171. this.evaJuri = res.data[0];
  17172. })
  17173. .catch((err) => {
  17174. console.error(err);
  17175. });
  17176. },
  17177. setMindData() {
  17178. this.data.data = [];
  17179. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  17180. let _eJson = Object.keys(this.eJson);
  17181. let _e = this.eJson;
  17182. for (let i = 0; i < _eJson.length; i++) {
  17183. let element = _e[_eJson[i]];
  17184. this.data.data.push({
  17185. id: element.id,
  17186. parentid: "root",
  17187. topic: element.name,
  17188. });
  17189. let _eJsonc = Object.keys(element.child);
  17190. let _e2 = element.child;
  17191. for (let j = 0; j < _eJsonc.length; j++) {
  17192. let _ec = _e2[_eJsonc[j]];
  17193. this.data.data.push({
  17194. id: _ec.id,
  17195. parentid: element.id,
  17196. topic: _ec.name,
  17197. });
  17198. let _eJsonz = Object.keys(_ec.child);
  17199. let _e3 = _ec.child;
  17200. for (let z = 0; z < _eJsonz.length; z++) {
  17201. let _ez = _e3[_eJsonz[z]];
  17202. this.data.data.push({
  17203. id: _ez.id,
  17204. parentid: _ec.id,
  17205. topic: _ez.name,
  17206. });
  17207. }
  17208. }
  17209. }
  17210. this.$forceUpdate();
  17211. },
  17212. checkFileFull(type, url) {
  17213. this.fullDialogVisible = true;
  17214. this.fulltype = type;
  17215. this.fullUrl = url;
  17216. },
  17217. checkFileFull1(t, f) {
  17218. this.fullDialogVisible = true;
  17219. if (t == 6) {
  17220. this.fulltype = 1;
  17221. this.fullUrl = JSON.parse(JSON.stringify(f));
  17222. } else if (t == 8) {
  17223. this.fulltype = 2;
  17224. this.fullUrl = f.url;
  17225. } else if (
  17226. t == 3 &&
  17227. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17228. "PDF"
  17229. ) {
  17230. this.fulltype = 3;
  17231. this.fullUrl = f.url;
  17232. } else if (t == 3) {
  17233. this.fulltype = 2;
  17234. this.fullUrl =
  17235. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  17236. }
  17237. },
  17238. openSname(n, id, i, uid) {
  17239. this.snameWid = id;
  17240. this.worksSName = n;
  17241. this.worksSid = uid == n ? "" : uid;
  17242. this.toolindex = i;
  17243. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17244. if (!this.uploadCid) {
  17245. this.$message.error(
  17246. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17247. );
  17248. return;
  17249. }
  17250. this.selectUploadStudent(1);
  17251. },
  17252. updateName() {
  17253. let params = {
  17254. n: this.worksSName,
  17255. cid: this.snameWid,
  17256. };
  17257. this.ajax
  17258. .get(this.$store.state.api + "updateCourseWorksName", params)
  17259. .then((res) => {
  17260. this.$message({
  17261. message: "修改成功",
  17262. type: "success",
  17263. });
  17264. this.dialogVisibleSname = false;
  17265. this.getCourseDetail();
  17266. this.snameWid = "";
  17267. this.worksSName = "";
  17268. })
  17269. .catch((err) => {
  17270. console.error(err);
  17271. });
  17272. },
  17273. downloadFile2(f) {
  17274. // const loading = this.$loading.service({
  17275. // background: "rgba(255, 255, 255, 0.7)",
  17276. // target: document.body,
  17277. // text: "文件加载中...",
  17278. // });
  17279. // let url2 = f.url;
  17280. // let _url2 = "";
  17281. // if (
  17282. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17283. // ) {
  17284. // _url2 = url2.split(
  17285. // "https://view.officeapps.live.com/op/view.aspx?src="
  17286. // )[1];
  17287. // } else {
  17288. // _url2 = url2;
  17289. // }
  17290. // let params = {
  17291. // url: _url2,
  17292. // name: f.name,
  17293. // };
  17294. // this.ajax
  17295. // .get(this.$store.state.api + "download", params)
  17296. // .then((res) => {
  17297. // console.log(res);
  17298. // loading.close();
  17299. // let content = res.data.data.data;
  17300. // let ab = new ArrayBuffer(content.length);
  17301. // let view = new Uint8Array(ab);
  17302. // for (var i = 0; i < content.length; ++i) {
  17303. // view[i] = content[i];
  17304. // }
  17305. // let elink = document.createElement("a");
  17306. // elink.download = f.name;
  17307. // elink.style.display = "none";
  17308. // let blob = new Blob([ab], {
  17309. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  17310. // });
  17311. // elink.href = URL.createObjectURL(blob);
  17312. // document.body.appendChild(elink);
  17313. // elink.click();
  17314. // document.body.removeChild(elink);
  17315. // })
  17316. // .catch((err) => {
  17317. // loading.close();
  17318. // console.error(err);
  17319. // });
  17320. let url = f.url;
  17321. let _this = this;
  17322. let _url = "";
  17323. if (
  17324. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17325. ) {
  17326. _url = url.split(
  17327. "https://view.officeapps.live.com/op/view.aspx?src="
  17328. )[1];
  17329. } else {
  17330. _url = url;
  17331. }
  17332. const loading = _this.$loading.service({
  17333. background: "rgba(255, 255, 255, 0.7)",
  17334. target: document.body,
  17335. text: "文件加载中...",
  17336. });
  17337. let x = new XMLHttpRequest();
  17338. x.open("GET", _url, true);
  17339. x.responseType = "blob";
  17340. x.onload = function () {
  17341. loading.close();
  17342. let url = window.URL.createObjectURL(new Blob([x.response]));
  17343. let a = document.createElement("a");
  17344. a.name = f.name;
  17345. a.href = url;
  17346. a.download = f.name;
  17347. a.click();
  17348. };
  17349. x.send();
  17350. },
  17351. downloadFile(url) {
  17352. let _this = this;
  17353. let _url = "";
  17354. if (
  17355. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17356. ) {
  17357. _url = url.split(
  17358. "https://view.officeapps.live.com/op/view.aspx?src="
  17359. )[1];
  17360. } else {
  17361. _url = url;
  17362. }
  17363. const x = new XMLHttpRequest();
  17364. x.open("GET", _url, true);
  17365. x.responseType = "blob";
  17366. const loading = _this.$loading.service({
  17367. background: "rgba(255, 255, 255, 0.7)",
  17368. target: document.body,
  17369. text: "文件加载中...",
  17370. });
  17371. // _this.$message.success("文件下载中...");
  17372. x.onload = function (e) {
  17373. loading.close();
  17374. // const url = window.URL.createObjectURL(x.response);
  17375. // const a = document.createElement("a");
  17376. // a.href = url;
  17377. // a.target = "_blank";
  17378. // a.download = url;
  17379. // a.click();
  17380. // a.remove();
  17381. let content = x.response;
  17382. let elink = document.createElement("a");
  17383. elink.download = decodeURI(
  17384. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17385. );
  17386. elink.style.display = "none";
  17387. let blob = new Blob([content]);
  17388. elink.href = URL.createObjectURL(blob);
  17389. document.body.appendChild(elink);
  17390. elink.click();
  17391. document.body.removeChild(elink);
  17392. };
  17393. x.send();
  17394. },
  17395. openLine(url) {
  17396. window.open(url);
  17397. },
  17398. resize() {
  17399. if (document.getElementsByClassName("box_course").length) {
  17400. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17401. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17402. if (this.showType == 2 || this.showType == 3) {
  17403. document.getElementsByClassName("navBox")[0].style.height =
  17404. a - 40 + 46 + "px";
  17405. } else {
  17406. document.getElementsByClassName("navBox")[0].style.height =
  17407. a - 40 + "px";
  17408. }
  17409. }
  17410. this.Stbodywidth =
  17411. document.getElementsByClassName("student_body").length &&
  17412. document.getElementsByClassName("student_body")[0].offsetWidth;
  17413. },
  17414. closeDraw() {
  17415. this.bg = null;
  17416. this.drawShow = false;
  17417. },
  17418. showPicturePaint(url) {
  17419. let params = {
  17420. img: url,
  17421. };
  17422. this.ajax
  17423. .get(this.$store.state.api + "imgToBase64", params)
  17424. .then((res) => {
  17425. console.log(res);
  17426. this.drawShow = true;
  17427. this.bg = res.data[0].img;
  17428. })
  17429. .catch((err) => {
  17430. console.error(err);
  17431. });
  17432. },
  17433. addImgDraw(base64) {
  17434. let file = { name: "批注图.png" };
  17435. let img = this.dataUrlToFile(base64, file);
  17436. this.beforeUpload1(img, 5);
  17437. },
  17438. addImgDrawImG(url) {
  17439. // console.log(url);
  17440. let params = [
  17441. {
  17442. wid: this.commentDetail.wid,
  17443. img: url,
  17444. },
  17445. ];
  17446. this.ajax
  17447. .post(this.$store.state.api + "updateCourseWorks", params)
  17448. .then((res) => {
  17449. this.$message({
  17450. message: "提交成功",
  17451. type: "success",
  17452. });
  17453. this.drawShow = false;
  17454. this.bg = "";
  17455. this.selectSWorks();
  17456. this.selectStudent();
  17457. })
  17458. .catch((err) => {
  17459. this.$message.error("提交失败");
  17460. console.error(err);
  17461. });
  17462. },
  17463. deletePicturePaint() {
  17464. this.$confirm("确定删除此批注吗?", "提示", {
  17465. confirmButtonText: "确定",
  17466. cancelButtonText: "取消",
  17467. type: "warning",
  17468. })
  17469. .then(() => {
  17470. let params = [
  17471. {
  17472. wid: this.commentDetail.wid,
  17473. img: "",
  17474. },
  17475. ];
  17476. this.ajax
  17477. .post(this.$store.state.api + "updateCourseWorks", params)
  17478. .then((res) => {
  17479. this.$message({
  17480. message: "删除成功",
  17481. type: "success",
  17482. });
  17483. this.selectSWorks();
  17484. this.selectStudent();
  17485. })
  17486. .catch((err) => {
  17487. this.$message.error("删除失败");
  17488. console.error(err);
  17489. });
  17490. })
  17491. .catch(() => {});
  17492. },
  17493. getAudioVideo(constraintsData) {
  17494. if (navigator.mediaDevices === undefined) {
  17495. navigator.mediaDevices = {};
  17496. }
  17497. if (navigator.mediaDevices.getUserMedia === undefined) {
  17498. navigator.mediaDevices.getUserMedia = function (constraints) {
  17499. // 首先,如果有getUserMedia的话,就获得它
  17500. var getUserMedia =
  17501. navigator.getUserMedia ||
  17502. navigator.webkitGetUserMedia ||
  17503. navigator.mozGetUserMedia ||
  17504. navigator.msGetUserMedia;
  17505. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  17506. if (!getUserMedia) {
  17507. return Promise.reject({ code: 404 });
  17508. }
  17509. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  17510. return new Promise(function (resolve, reject) {
  17511. getUserMedia.call(navigator, constraints, resolve, reject);
  17512. });
  17513. };
  17514. }
  17515. return navigator.mediaDevices.getUserMedia(constraintsData);
  17516. },
  17517. /**
  17518. * 开始录制
  17519. */
  17520. startRecording(callback) {
  17521. let _function = (screenStream) => {
  17522. this.addStreamStopListener(screenStream, () => {
  17523. console.log("流停止监听");
  17524. this.stopRecording();
  17525. this.$emit("streamStop", {});
  17526. // this.stopRecording();
  17527. });
  17528. var options = {
  17529. type: "video",
  17530. mimeType: "video/webm",
  17531. disableLogs: false,
  17532. getNativeBlob: false, // enable it for longer recordings
  17533. ignoreMutedMedia: false,
  17534. };
  17535. // this.video.srcObject = screenStream;
  17536. this.recorder = RecordRTC(screenStream, options);
  17537. this.recorder.startRecording();
  17538. this.recorder.screen = screenStream;
  17539. this.videoStart = true;
  17540. // callback(true);
  17541. };
  17542. this.getAudioVideo({ audio: true })
  17543. .then((res) => {
  17544. this.captureScreen(_function, true);
  17545. console.log("已点击允许,开启成功");
  17546. })
  17547. .catch((err) => {
  17548. // console.log('浏览器不支持,请更换浏览器')
  17549. // } else {
  17550. this.captureScreen(_function, false);
  17551. console.log("请检查是否存在麦克风");
  17552. });
  17553. },
  17554. /**
  17555. * 停止录制
  17556. */
  17557. stopRecording(callback) {
  17558. this.recorder.stopRecording(() => {
  17559. // this.video.src = this.video.srcObject = null;
  17560. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  17561. const url = URL.createObjectURL(this.recorder.getBlob());
  17562. const a = document.createElement("a"); //this.fileName+
  17563. let videoFile = new File(
  17564. [this.recorder.getBlob()],
  17565. this.courseDetail.title + "录屏.mp4",
  17566. {
  17567. type: "video/mp4",
  17568. }
  17569. );
  17570. let downloadUrl = URL.createObjectURL(videoFile);
  17571. document.body.appendChild(a);
  17572. a.style.display = "none";
  17573. a.href = url;
  17574. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  17575. a.click();
  17576. this.recorder.screen.stop();
  17577. this.recorder.destroy();
  17578. this.recorder = null;
  17579. this.videoStart = false;
  17580. // callback(false);
  17581. });
  17582. },
  17583. //初始化
  17584. captureScreen(callback, type) {
  17585. if (navigator.getDisplayMedia) {
  17586. //录制结束,文件下载
  17587. navigator
  17588. .getDisplayMedia({
  17589. video: true,
  17590. })
  17591. .then((screenStream) => {
  17592. if (type) {
  17593. navigator.mediaDevices
  17594. .getUserMedia({ audio: true })
  17595. .then((mic) => {
  17596. screenStream.addTrack(mic.getTracks()[0]);
  17597. callback(screenStream);
  17598. });
  17599. } else {
  17600. callback(screenStream);
  17601. }
  17602. })
  17603. .catch(function (error) {
  17604. console.log("error", error);
  17605. });
  17606. } else if (navigator.mediaDevices.getDisplayMedia) {
  17607. navigator.mediaDevices
  17608. .getDisplayMedia({
  17609. video: true,
  17610. })
  17611. .then((screenStream) => {
  17612. if (type) {
  17613. navigator.mediaDevices
  17614. .getUserMedia({ audio: true })
  17615. .then((mic) => {
  17616. screenStream.addTrack(mic.getTracks()[0]);
  17617. callback(screenStream);
  17618. });
  17619. } else {
  17620. callback(screenStream);
  17621. }
  17622. })
  17623. .catch(function (error) {
  17624. console.log("error", error);
  17625. });
  17626. } else {
  17627. var error = "getDisplayMedia API are not supported in this browser.";
  17628. console.log("error", error);
  17629. alert(error);
  17630. }
  17631. },
  17632. //流监听
  17633. addStreamStopListener(stream, callback) {
  17634. stream.addEventListener(
  17635. "ended",
  17636. function () {
  17637. callback();
  17638. callback = function () {};
  17639. },
  17640. false
  17641. );
  17642. stream.addEventListener(
  17643. "inactive",
  17644. function () {
  17645. callback();
  17646. callback = function () {};
  17647. },
  17648. false
  17649. );
  17650. stream.getTracks().forEach(function (track) {
  17651. track.addEventListener(
  17652. "ended",
  17653. function () {
  17654. callback();
  17655. callback = function () {};
  17656. },
  17657. false
  17658. );
  17659. track.addEventListener(
  17660. "inactive",
  17661. function () {
  17662. callback();
  17663. callback = function () {};
  17664. },
  17665. false
  17666. );
  17667. });
  17668. },
  17669. updateGroup() {
  17670. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17671. this.dialogVisibleGroup2 = true;
  17672. },
  17673. numberPan() {
  17674. if (
  17675. /[^\d]/.test(this.groupJson.number) ||
  17676. this.groupJson.number < 2 ||
  17677. this.groupJson.number > 10
  17678. ) {
  17679. this.$message.error("请输入2-10的数字");
  17680. this.groupJson.number = "";
  17681. }
  17682. },
  17683. updateGroupJson() {
  17684. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  17685. if (
  17686. this.groupStudentUid[this.toolindex][i].length >
  17687. this.groupJson2.number
  17688. ) {
  17689. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  17690. return;
  17691. }
  17692. }
  17693. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  17694. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17695. this.taskCount
  17696. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  17697. let params = [
  17698. {
  17699. cid: this.id,
  17700. chapters: JSON.stringify(this.chapInfoList),
  17701. uid: this.userid,
  17702. unitIndex: this.courseType,
  17703. },
  17704. ];
  17705. this.ajax
  17706. .post(this.$store.state.api + "updateWorkNew4", params)
  17707. .then((res) => {
  17708. this.$message.success("设置成功");
  17709. this.getCourseDetail(2);
  17710. this.dialogVisibleGroup2 = false;
  17711. this.groupJson2 = {};
  17712. this.$forceUpdate();
  17713. })
  17714. .catch((err) => {
  17715. this.$message.error("网络不佳");
  17716. console.error(err);
  17717. });
  17718. },
  17719. lockChair() {
  17720. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17721. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  17722. this.updateGroupJson();
  17723. },
  17724. selectGroup(index) {
  17725. this.getCourseDetail(2, index);
  17726. },
  17727. joinGroup(index) {
  17728. if (this.groupJson.islock == 2) {
  17729. this.$message.error("位置已被锁定,无法加入");
  17730. return;
  17731. }
  17732. if (
  17733. this.groupStudent[this.toolindex][index].length >
  17734. this.groupJson.number ||
  17735. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  17736. ) {
  17737. this.$message.error("位置已满,无法加入");
  17738. return;
  17739. }
  17740. let params = [
  17741. {
  17742. cid: this.id,
  17743. stage: this.courseType,
  17744. task: this.taskCount,
  17745. tool: this.toolindex,
  17746. g: index,
  17747. uid: this.userid,
  17748. },
  17749. ];
  17750. this.ajax
  17751. .post(this.$store.state.api + "joinGroup", params)
  17752. .then((res) => {
  17753. this.$message.success("加入成功");
  17754. this.getCourseDetail();
  17755. })
  17756. .catch((err) => {
  17757. this.$message.error("网络不佳");
  17758. console.error(err);
  17759. });
  17760. },
  17761. exitGroup(id) {
  17762. if (this.groupJson.islock == 2) {
  17763. this.$message.error("位置已被锁定,无法退出");
  17764. return;
  17765. }
  17766. let params = [
  17767. {
  17768. gid: id,
  17769. },
  17770. ];
  17771. this.ajax
  17772. .post(this.$store.state.api + "exitGroup", params)
  17773. .then((res) => {
  17774. this.$message.success("退出成功");
  17775. this.getCourseDetail();
  17776. })
  17777. .catch((err) => {
  17778. this.$message.error("网络不佳");
  17779. console.error(err);
  17780. });
  17781. },
  17782. groupUpload(index, task, gindex) {
  17783. this.taskCount = task;
  17784. this.toolindex = index;
  17785. this.groupIndex = gindex;
  17786. this.dialogVisibleGroupWork = true;
  17787. },
  17788. updateGroupChair(user) {
  17789. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  17790. el.label = index;
  17791. return index != user.group;
  17792. });
  17793. this.updateGroupUser = user;
  17794. this.dialogVisibleUpdateGroup = true;
  17795. },
  17796. updateChair() {
  17797. if (
  17798. this.groupStudent[this.toolindex][this.checkChair].length >
  17799. this.groupJson.number ||
  17800. this.groupStudent[this.toolindex][this.checkChair].length ==
  17801. this.groupJson.number
  17802. ) {
  17803. this.$message.error("位置已满,无法加入");
  17804. return;
  17805. }
  17806. let params = [
  17807. {
  17808. cid: this.id,
  17809. stage: this.courseType,
  17810. task: this.taskCount,
  17811. tool: this.toolindex,
  17812. g: this.checkChair,
  17813. uid: this.updateGroupUser.userid,
  17814. },
  17815. ];
  17816. this.ajax
  17817. .post(this.$store.state.api + "joinGroup", params)
  17818. .then((res) => {
  17819. this.$message.success("修改成功");
  17820. this.updateGroupUser = {};
  17821. this.checkChair = "";
  17822. this.updateGroupArray = {};
  17823. this.dialogVisibleUpdateGroup = false;
  17824. this.getCourseDetail();
  17825. })
  17826. .catch((err) => {
  17827. this.$message.error("网络不佳");
  17828. console.error(err);
  17829. });
  17830. },
  17831. deleteGroupChair(gindex) {
  17832. this.checkDeleteGroup = [];
  17833. this.deleteGroupUser = JSON.parse(
  17834. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  17835. );
  17836. this.deleteGroupArray = this.groupJson.group[gindex];
  17837. this.groupIndex = gindex;
  17838. this.dialogVisibleDeleteGroup = true;
  17839. },
  17840. async deleteChair() {
  17841. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  17842. const gid =
  17843. this.groupStudent[this.toolindex][this.groupIndex][
  17844. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  17845. this.checkDeleteGroup[i]
  17846. )
  17847. ];
  17848. let params = [
  17849. {
  17850. gid: gid.id,
  17851. },
  17852. ];
  17853. var a = await this.deleteChairA(params);
  17854. if (i == this.checkDeleteGroup.length - 1) {
  17855. this.$message.success("退出成功");
  17856. this.dialogVisibleDeleteGroup = false;
  17857. this.deleteGroupUser = [];
  17858. this.deleteGroupArray = {};
  17859. this.groupIndex = "";
  17860. this.checkDeleteGroup = [];
  17861. this.getCourseDetail();
  17862. }
  17863. }
  17864. },
  17865. deleteChairA(params) {
  17866. return new Promise((resolve, reject) => {
  17867. this.ajax
  17868. .post(this.$store.state.api + "exitGroup", params)
  17869. .then((res) => {
  17870. resolve(1);
  17871. })
  17872. .catch((err) => {
  17873. this.$message.error("网络不佳");
  17874. console.error(err);
  17875. });
  17876. });
  17877. },
  17878. contract(i) {
  17879. if (this.isCloseList[i].isClose == 0) {
  17880. this.isCloseList[i].isClose = 1;
  17881. } else {
  17882. this.isCloseList[i].isClose = 0;
  17883. }
  17884. this.$forceUpdate();
  17885. },
  17886. openTools2(i) {
  17887. this.$message.error("暂未开放");
  17888. return;
  17889. },
  17890. addTools2(i) {
  17891. if (i == 4) {
  17892. // this.openTools2(4);
  17893. this.$message.error("暂未开放");
  17894. return;
  17895. }
  17896. if (i == 45) {
  17897. // this.openTools2(45);
  17898. this.$message.error("暂未开放");
  17899. return;
  17900. }
  17901. if (i == 47) {
  17902. // this.openTools2(47);
  17903. this.$message.error("暂未开放");
  17904. return;
  17905. }
  17906. if (i == 49) {
  17907. // this.openTools2(49);
  17908. this.$message.error("暂未开放");
  17909. return;
  17910. }
  17911. if (i == 62) {
  17912. // this.openTools(itemTaskIndex, 62, toolIndex);
  17913. this.$message.error("暂未开放");
  17914. return;
  17915. }
  17916. if (i == 15) {
  17917. // this.openTools(itemTaskIndex, 15, toolIndex);
  17918. this.$message.error("暂未开放");
  17919. return;
  17920. }
  17921. if (i == 40) {
  17922. // this.openTools(itemTaskIndex, 40, toolIndex);
  17923. this.$message.error("暂未开放");
  17924. return;
  17925. }
  17926. if (i == 41) {
  17927. // this.openTools(itemTaskIndex, 41, toolIndex);
  17928. this.$message.error("暂未开放");
  17929. return;
  17930. }
  17931. if (i == 42) {
  17932. // this.openTools(itemTaskIndex, 42, toolIndex);
  17933. this.$message.error("暂未开放");
  17934. return;
  17935. }
  17936. if (this.checktoolArray.length > 0) {
  17937. if (this.checktoolArray.indexOf(i) != -1) {
  17938. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17939. } else {
  17940. this.checktoolArray = [];
  17941. this.checktoolArray.push(i);
  17942. }
  17943. } else {
  17944. this.checktoolArray.push(i);
  17945. }
  17946. this.$forceUpdate();
  17947. },
  17948. addToolChoose() {
  17949. if (!this.checktoolArray.length) {
  17950. this.$message.error("请选择要添加的任务");
  17951. return;
  17952. }
  17953. if (
  17954. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17955. this.taskCount
  17956. ].toolChoose[0].tool.length
  17957. ) {
  17958. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17959. this.taskCount
  17960. ].toolChoose[0].tool = this.checktoolArray;
  17961. } else {
  17962. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17963. this.taskCount
  17964. ].toolChoose.push({
  17965. tool: this.checktoolArray,
  17966. toolDetail: "",
  17967. toolType: 0,
  17968. askCount: 1,
  17969. askTitle: "",
  17970. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  17971. });
  17972. }
  17973. let params = [
  17974. {
  17975. cid: this.id,
  17976. chapters: JSON.stringify(this.chapInfoList),
  17977. uid: this.userid,
  17978. unitIndex: this.courseType,
  17979. },
  17980. ];
  17981. this.ajax
  17982. .post(this.$store.state.api + "updateWorkNew4", params)
  17983. .then((res) => {
  17984. this.$message({
  17985. message: "添加成功",
  17986. type: "success",
  17987. });
  17988. this.checktoolArray = [];
  17989. this.getCourseDetail(3);
  17990. this.checkBz(
  17991. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17992. this.taskCount
  17993. ].toolChoose.length - 1
  17994. );
  17995. this.$forceUpdate();
  17996. })
  17997. .catch((err) => {
  17998. console.error(err);
  17999. });
  18000. },
  18001. updateToolDetail() {
  18002. if (!this.isUpdateToolDetail) {
  18003. this.isUpdateToolDetail = true;
  18004. this.updateToolDetailInner = JSON.parse(
  18005. JSON.stringify(this.tool.toolDetail)
  18006. );
  18007. } else {
  18008. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18009. this.taskCount
  18010. ].toolChoose[this.toolIndex].toolDetail = JSON.parse(
  18011. JSON.stringify(this.updateToolDetailInner)
  18012. );
  18013. let params = [
  18014. {
  18015. cid: this.id,
  18016. chapters: JSON.stringify(this.chapInfoList),
  18017. uid: this.userid,
  18018. unitIndex: this.courseType,
  18019. },
  18020. ];
  18021. this.ajax
  18022. .post(this.$store.state.api + "updateWorkNew4", params)
  18023. .then((res) => {
  18024. this.isUpdateToolDetail = false;
  18025. this.$message({
  18026. message: "修改成功",
  18027. type: "success",
  18028. });
  18029. this.updateToolDetailInner = "";
  18030. this.getCourseDetail(3);
  18031. this.$forceUpdate();
  18032. this.checkBz(this.toolIndex);
  18033. })
  18034. .catch((err) => {
  18035. console.error(err);
  18036. });
  18037. }
  18038. },
  18039. openWordCloud(toolindex) {
  18040. let array = [];
  18041. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  18042. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  18043. array.push({ name: works });
  18044. }
  18045. if (this.isGroup) {
  18046. for (var i = 0; i < this.courseGroup.group.length; i++) {
  18047. let works = this.courseGroup.group[i].works[toolindex];
  18048. for (var j = 0; j < works.length; j++) {
  18049. let answer = JSON.parse(works[j].works)[0].answer;
  18050. array.push({ name: answer });
  18051. }
  18052. }
  18053. }
  18054. this.wordCloudData = array;
  18055. this.dialogVisibleWordCloud = true;
  18056. },
  18057. pickStudent(stu) {
  18058. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18059. return;
  18060. }
  18061. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18062. confirmButtonText: "确定",
  18063. cancelButtonText: "取消",
  18064. type: "warning",
  18065. })
  18066. .then(() => {
  18067. let params = [
  18068. {
  18069. uid: stu.userid,
  18070. cid: this.id,
  18071. stage: this.courseType,
  18072. task: this.taskCount,
  18073. tool: this.toolindex,
  18074. },
  18075. ];
  18076. this.ajax
  18077. .post(this.$store.state.api + "updateCoursePick", params)
  18078. .then((res) => {
  18079. this.$message.success("操作成功");
  18080. this.getPick();
  18081. })
  18082. .catch((err) => {
  18083. this.$message.error("网络不佳");
  18084. console.error(err);
  18085. });
  18086. })
  18087. .catch(() => {});
  18088. },
  18089. getPick() {
  18090. let params = {
  18091. cid: this.id,
  18092. };
  18093. this.ajax
  18094. .get(this.$store.state.api + "getPick", params)
  18095. .then((res) => {
  18096. let array = [];
  18097. for (var i = 0; i < res.data[0].length; i++) {
  18098. array.push(res.data[0][i].userid);
  18099. }
  18100. this.isPickStudent = array;
  18101. if (array.indexOf(this.userid) !== -1) {
  18102. this.$confirm("你被老师选到啦!", "提示", {
  18103. confirmButtonText: "确定",
  18104. showCancelButton: false,
  18105. closeOnClickModal: false,
  18106. type: "warning",
  18107. })
  18108. .then(() => {
  18109. let pa = [
  18110. {
  18111. uid: this.userid,
  18112. cid: this.id,
  18113. },
  18114. ];
  18115. this.ajax
  18116. .post(this.$store.state.api + "deletePick", pa)
  18117. .then((res) => {
  18118. this.getPick();
  18119. })
  18120. .catch((err) => {
  18121. this.$message.error("网络不佳");
  18122. console.error(err);
  18123. });
  18124. })
  18125. .catch(() => {});
  18126. }
  18127. })
  18128. .catch((err) => {
  18129. this.$message.error("网络不佳");
  18130. console.error(err);
  18131. });
  18132. },
  18133. },
  18134. directives: {
  18135. // 使用局部注册指令的方式
  18136. resize: {
  18137. // 指令的名称
  18138. bind(el, binding) {
  18139. // el为绑定的元素,binding为绑定给指令的对象
  18140. let width = "",
  18141. height = "";
  18142. function isReize() {
  18143. const style = document.defaultView.getComputedStyle(el);
  18144. if (width !== style.width || height !== style.height) {
  18145. binding.value(); // 关键
  18146. }
  18147. width = style.width;
  18148. height = style.height;
  18149. }
  18150. el.__vueSetInterval__ = setInterval(isReize, 300);
  18151. },
  18152. unbind(el) {
  18153. clearInterval(el.__vueSetInterval__);
  18154. },
  18155. },
  18156. },
  18157. beforeDestroy() {
  18158. window.onresize = null;
  18159. clearInterval(this.timer);
  18160. this.timer = null;
  18161. clearInterval(this.opertimer);
  18162. this.opertimer = null;
  18163. },
  18164. computed: {
  18165. contentConvent() {
  18166. return function (c) {
  18167. return c
  18168. ? c
  18169. .replaceAll(/\r\n/g, "<br/>")
  18170. .replaceAll(/\n/g, "<br/>")
  18171. .replaceAll(/\s/g, " &nbsp")
  18172. : "";
  18173. };
  18174. },
  18175. checkUpload() {
  18176. return function () {
  18177. var studentK = [];
  18178. if (this.plworkFile.length > 0) {
  18179. for (var z = 0; z < this.plworkFile.length; z++) {
  18180. studentK.push(this.plworkFile[z].username);
  18181. }
  18182. studentK = studentK.join(",");
  18183. }
  18184. var a = this.uploadStudentJuri.filter((el) => {
  18185. return studentK.indexOf(el.userid) == -1;
  18186. });
  18187. return a;
  18188. };
  18189. },
  18190. getSName() {
  18191. return function (name) {
  18192. var check = name;
  18193. this.uploadStudentJuri.forEach((el) => {
  18194. if (el.userid == check) {
  18195. check = el.name ? el.name : el.username;
  18196. }
  18197. });
  18198. return check;
  18199. };
  18200. },
  18201. getImgList() {
  18202. return function (val) {
  18203. let srcList = []; // 定义一个数组用来接收后面的img地址
  18204. val.replace(
  18205. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  18206. function (match, capture) {
  18207. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  18208. srcList.push(capture);
  18209. }
  18210. );
  18211. return srcList;
  18212. };
  18213. },
  18214. },
  18215. mounted() {
  18216. document.body.addEventListener("click", (e) => {
  18217. if (this.isUpdateToolDetail) {
  18218. this.updateToolDetail();
  18219. }
  18220. });
  18221. if (this.screenType == 2) {
  18222. window.parent.postMessage({ allScreen: 4 }, "*");
  18223. } else if (this.screenType == 3) {
  18224. window.parent.postMessage({ allScreen: 5 }, "*");
  18225. } else if (this.screenType == 1) {
  18226. window.parent.postMessage({ allScreen: 6 }, "*");
  18227. }
  18228. this.setOperationTime();
  18229. this.selectEva();
  18230. this.getCourseDetail();
  18231. this.selectCount();
  18232. this.getHomeWork();
  18233. this.toolIndex = null;
  18234. this.contentDialog = true;
  18235. this.setContent2(true);
  18236. if (this.tType == 4) {
  18237. this.pzDialog = true;
  18238. this.selectPz();
  18239. }
  18240. document.scrollingElement.scrollTop = 0;
  18241. window.addEventListener("resize", () => {
  18242. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18243. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18244. if (this.showType == 2 || this.showType == 3) {
  18245. document.getElementsByClassName("navBox")[0].style.height =
  18246. a - 40 + 46 + "px";
  18247. } else {
  18248. document.getElementsByClassName("navBox")[0].style.height =
  18249. a - 40 + "px";
  18250. }
  18251. });
  18252. let _this = this;
  18253. setTimeout(() => {
  18254. // _this.vedioTime = [];
  18255. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  18256. // _this.vedioTime[i] = document.getElementsByClassName(
  18257. // "vjs-duration-display"
  18258. // )[i].textContent;
  18259. // }
  18260. }, 1000);
  18261. },
  18262. };
  18263. </script>
  18264. <style scoped>
  18265. @media screen and (max-width: 1280px) {
  18266. /* .courseIndex > div:first-child(2) {
  18267. width: 15% !important;
  18268. } */
  18269. /* .navText {
  18270. width: 120px !important;
  18271. } */
  18272. .evaCss {
  18273. flex-direction: column !important;
  18274. align-items: center !important;
  18275. }
  18276. .dialog_diy1 >>> .el-dialog {
  18277. width: 100% !important;
  18278. }
  18279. .rightWidthCss {
  18280. width: 100% !important;
  18281. }
  18282. .dialog_diy3 >>> .el-dialog {
  18283. width: 100% !important;
  18284. }
  18285. /* .textTitle >>> .el-form-item__label {
  18286. width: 150px !important;
  18287. } */
  18288. }
  18289. .evaCssMax {
  18290. flex-direction: column !important;
  18291. align-items: center !important;
  18292. }
  18293. .dialog_diy >>> .el-dialog {
  18294. margin-top: 10vh !important;
  18295. }
  18296. .body_student {
  18297. width: 77%;
  18298. height: 100%;
  18299. position: absolute;
  18300. left: 22%;
  18301. top: 0;
  18302. }
  18303. .student_head {
  18304. width: 100%;
  18305. margin: 20px auto 0;
  18306. padding-bottom: 20px;
  18307. display: flex;
  18308. flex-direction: column;
  18309. flex-wrap: nowrap;
  18310. align-items: flex-start;
  18311. justify-content: flex-start;
  18312. }
  18313. .pb_left {
  18314. width: 20%;
  18315. margin-right: 10px;
  18316. background: rgb(255, 255, 255);
  18317. position: fixed;
  18318. height: calc(100% - 40px);
  18319. border-radius: 20px;
  18320. padding-bottom: 15px;
  18321. box-sizing: border-box;
  18322. }
  18323. .wheel > img,
  18324. .project > img,
  18325. .star > img,
  18326. .evaluate > img,
  18327. .up_photo > img,
  18328. .chapter_add > img,
  18329. .deleteWord > img,
  18330. .question > img,
  18331. .homework > img {
  18332. width: 100%;
  18333. height: 100%;
  18334. }
  18335. .upCover > img {
  18336. width: 131px;
  18337. height: 69px;
  18338. object-fit: cover;
  18339. }
  18340. .upCover {
  18341. width: calc(100% / 3.5);
  18342. position: relative;
  18343. margin: 0 15px 10px 0;
  18344. display: flex;
  18345. flex-direction: column;
  18346. flex-wrap: nowrap;
  18347. justify-content: center;
  18348. align-content: center;
  18349. align-items: center;
  18350. height: fit-content;
  18351. }
  18352. .upCover2 {
  18353. width: 100%;
  18354. position: relative;
  18355. margin: 0 15px 10px 0;
  18356. display: flex;
  18357. flex-direction: column;
  18358. flex-wrap: nowrap;
  18359. justify-content: center;
  18360. align-content: center;
  18361. align-items: center;
  18362. }
  18363. .upCover2 > img {
  18364. width: 100%;
  18365. height: 90px;
  18366. object-fit: contain;
  18367. }
  18368. .chapter_add {
  18369. width: 120px;
  18370. position: relative;
  18371. text-align: center;
  18372. }
  18373. .isAddThings {
  18374. margin-top: 20px;
  18375. position: relative;
  18376. text-align: center;
  18377. background: #f7f8fa;
  18378. height: 90px;
  18379. width: 90px;
  18380. display: flex;
  18381. flex-direction: column;
  18382. justify-content: center;
  18383. }
  18384. .deleteWord {
  18385. width: 22px;
  18386. height: 22px;
  18387. position: absolute;
  18388. right: -5px;
  18389. top: -5px;
  18390. cursor: pointer;
  18391. }
  18392. .box_course {
  18393. /* width: 60%; */
  18394. width: calc(100% - 300px);
  18395. }
  18396. .wheel {
  18397. width: 100%;
  18398. /* height: 100%; */
  18399. height: 650px;
  18400. }
  18401. .right_box {
  18402. display: flex;
  18403. flex-direction: column;
  18404. margin-left: 30px;
  18405. justify-content: space-around;
  18406. }
  18407. .right_box_title {
  18408. font-size: 23px;
  18409. }
  18410. .people {
  18411. display: flex;
  18412. }
  18413. .student_body {
  18414. width: 100%;
  18415. margin: 0 auto;
  18416. margin-top: 10px;
  18417. padding: 0 0 20px;
  18418. border-radius: 20px;
  18419. background: #fff;
  18420. }
  18421. .study_top {
  18422. margin-top: 100px;
  18423. width: 100%;
  18424. /* overflow: auto; */
  18425. height: auto;
  18426. padding-bottom: 20px;
  18427. }
  18428. .study_top .checkbox {
  18429. display: flex;
  18430. align-items: center;
  18431. padding: 15px 0 15px 30px;
  18432. flex: 0 0 auto;
  18433. font-weight: bold;
  18434. border-bottom: 1px solid #eee;
  18435. }
  18436. .study_top .check {
  18437. padding-bottom: 5px;
  18438. text-align: center;
  18439. cursor: pointer;
  18440. height: 30px;
  18441. box-sizing: border-box;
  18442. display: flex;
  18443. }
  18444. .study_top .checked {
  18445. border-bottom: 4px solid #3fc6a0;
  18446. padding-bottom: 5px;
  18447. color: #3fc6a0;
  18448. display: flex;
  18449. height: 35px;
  18450. }
  18451. .study_top .checked > div,
  18452. .study_top .check > div {
  18453. margin-right: 5px;
  18454. }
  18455. .videoTop {
  18456. display: flex;
  18457. flex-direction: row;
  18458. justify-content: space-between;
  18459. background: #fff;
  18460. align-items: center;
  18461. width: 95%;
  18462. padding: 20px;
  18463. }
  18464. .upbtn {
  18465. margin: 25px;
  18466. background: #70afdb;
  18467. color: #fff;
  18468. width: 120px;
  18469. text-align: center;
  18470. height: 30px;
  18471. line-height: 30px;
  18472. font-size: 13px;
  18473. border-radius: 5px;
  18474. cursor: pointer;
  18475. }
  18476. .filebox {
  18477. display: flex;
  18478. flex-wrap: wrap;
  18479. flex-direction: column;
  18480. padding: 0 0 5px;
  18481. }
  18482. .filebox .tooldetail {
  18483. width: 100%;
  18484. margin: 0px 12px;
  18485. background: rgb(247, 247, 247);
  18486. padding: 20px;
  18487. line-height: 30px;
  18488. word-break: break-word;
  18489. }
  18490. .file {
  18491. display: flex;
  18492. flex-direction: column;
  18493. align-items: center;
  18494. justify-content: center;
  18495. cursor: pointer;
  18496. width: 200px;
  18497. }
  18498. .file div {
  18499. margin-top: 10px;
  18500. width: 150px;
  18501. text-align: center;
  18502. overflow: hidden;
  18503. white-space: nowrap;
  18504. text-overflow: ellipsis;
  18505. }
  18506. .media {
  18507. display: flex;
  18508. flex-direction: column;
  18509. align-items: center;
  18510. justify-content: center;
  18511. margin: 0 20px 20px 0;
  18512. cursor: pointer;
  18513. margin: 12px 0 5px 15px;
  18514. overflow: hidden;
  18515. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  18516. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  18517. box-sizing: border-box;
  18518. }
  18519. .media img {
  18520. height: 90px;
  18521. width: 160px;
  18522. object-fit: cover;
  18523. }
  18524. .media .title {
  18525. padding: 5px;
  18526. text-align: left;
  18527. width: 100%;
  18528. box-sizing: border-box;
  18529. }
  18530. .media .btn {
  18531. width: 100%;
  18532. height: 35px;
  18533. line-height: 35px;
  18534. color: #fff;
  18535. background: #606060;
  18536. text-align: center;
  18537. overflow: hidden;
  18538. white-space: nowrap;
  18539. text-overflow: ellipsis;
  18540. }
  18541. .detail_content_top {
  18542. width: 100%;
  18543. padding: 25px 0 25px 0;
  18544. }
  18545. .detail_title {
  18546. text-align: center;
  18547. font-size: 24px;
  18548. }
  18549. .detail_time {
  18550. font-size: 13px;
  18551. padding: 15px 0 0 40px;
  18552. }
  18553. .detail_content {
  18554. line-height: 2pc;
  18555. width: 90%;
  18556. margin: 0 auto;
  18557. padding-top: 30px;
  18558. text-indent: 30px;
  18559. overflow: auto;
  18560. height: 200px;
  18561. }
  18562. .score_box >>> .el-rate {
  18563. margin-left: 10px;
  18564. }
  18565. .dialog_change >>> .el-dialog {
  18566. border-radius: 5px;
  18567. }
  18568. .dialog_change >>> .el-dialog__header {
  18569. background: #f2f2f2;
  18570. text-align: center;
  18571. }
  18572. .dialog_change >>> .el-dialog__title {
  18573. line-height: 5px;
  18574. }
  18575. .dialog_change >>> .el-dialog__body {
  18576. background: #fff;
  18577. padding: 10px 20px;
  18578. }
  18579. .score_box {
  18580. display: flex;
  18581. align-items: center;
  18582. margin-bottom: 18px;
  18583. margin-top: 20px;
  18584. }
  18585. .up_photo {
  18586. width: 120px;
  18587. cursor: pointer;
  18588. margin-top: 10px;
  18589. }
  18590. .up_photo2 {
  18591. width: 180px;
  18592. box-sizing: border-box;
  18593. min-width: 180px;
  18594. height: 180px;
  18595. max-height: 180px;
  18596. min-height: 180px;
  18597. cursor: pointer;
  18598. display: flex;
  18599. flex-direction: column;
  18600. align-items: center;
  18601. justify-content: center;
  18602. background: rgb(242, 246, 255);
  18603. /* padding: 25px; */
  18604. margin-bottom: 10px;
  18605. }
  18606. .up_photo2 img {
  18607. width: 50%;
  18608. height: auto;
  18609. }
  18610. .up_photo2 span {
  18611. color: #898989;
  18612. }
  18613. .plworkBox {
  18614. display: flex;
  18615. align-items: center;
  18616. margin-top: 10px;
  18617. flex-wrap: wrap;
  18618. }
  18619. .upload_send {
  18620. margin: 30px auto 30px;
  18621. width: 60%;
  18622. background: #169bd6;
  18623. text-align: center;
  18624. height: 35px;
  18625. line-height: 35px;
  18626. color: #fff;
  18627. border-radius: 5px;
  18628. cursor: pointer;
  18629. }
  18630. .marginT {
  18631. margin-top: 20px;
  18632. }
  18633. .cd_content_steps {
  18634. display: flex;
  18635. width: 90%;
  18636. justify-content: space-around;
  18637. border-top: 1px solid #eeeeee;
  18638. }
  18639. .cd_steps_box {
  18640. display: flex;
  18641. justify-content: center;
  18642. align-items: center;
  18643. flex-direction: column;
  18644. cursor: pointer;
  18645. }
  18646. .first {
  18647. display: flex;
  18648. align-items: center;
  18649. margin: 15px 0 20px 0;
  18650. font-size: 20px;
  18651. }
  18652. .first > div:nth-child(2) {
  18653. font-size: 16px !important;
  18654. padding-left: 10px;
  18655. line-height: 26px;
  18656. box-sizing: border-box;
  18657. }
  18658. .blue_box_one {
  18659. text-align: center;
  18660. color: #fff;
  18661. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  18662. border-radius: 7px;
  18663. margin: 10px;
  18664. cursor: pointer;
  18665. width: 95%;
  18666. height: 45px;
  18667. display: flex;
  18668. flex-direction: row;
  18669. justify-content: flex-start;
  18670. align-items: center;
  18671. }
  18672. .blue_box_one > div:nth-child(1) {
  18673. line-height: 30px;
  18674. margin: 0 5px 0 10px;
  18675. width: 30%;
  18676. min-width: 70px;
  18677. border-radius: 4px;
  18678. }
  18679. .blue_box_one > div:nth-child(2) {
  18680. white-space: nowrap;
  18681. text-overflow: ellipsis;
  18682. overflow: hidden;
  18683. word-break: break-all;
  18684. width: 70%;
  18685. text-align: left;
  18686. margin-right: 10px;
  18687. max-width: calc(100% - 85px);
  18688. }
  18689. .blue_box_one > div:nth-child(2):hover {
  18690. overflow: hidden;
  18691. text-overflow: ellipsis;
  18692. white-space: nowrap;
  18693. cursor: pointer;
  18694. }
  18695. .upFile {
  18696. margin: 0 auto;
  18697. width: 120px;
  18698. background: #70afdb;
  18699. color: #fff;
  18700. height: 30px;
  18701. text-align: center;
  18702. line-height: 30px;
  18703. border-radius: 5px;
  18704. font-size: 14px;
  18705. cursor: pointer;
  18706. }
  18707. .courseTitle {
  18708. width: 85%;
  18709. margin: 10px auto;
  18710. display: flex;
  18711. flex-direction: row;
  18712. align-items: center;
  18713. justify-content: space-between;
  18714. text-align: center;
  18715. }
  18716. .courseTitle .ctitle {
  18717. font-size: 20px;
  18718. font-weight: bold;
  18719. color: #0e1e33;
  18720. white-space: nowrap;
  18721. overflow: hidden;
  18722. text-overflow: ellipsis;
  18723. }
  18724. .courseTitle .inviteBox {
  18725. font-size: 14px;
  18726. margin-top: 5px;
  18727. color: #a6cbff;
  18728. }
  18729. .courseTitle >>> .el-tooltip {
  18730. width: 100%;
  18731. white-space: nowrap;
  18732. overflow: hidden;
  18733. text-overflow: ellipsis;
  18734. word-break: break-word;
  18735. }
  18736. .ml {
  18737. margin-left: 20px;
  18738. color: #5b7dba;
  18739. border-left: 3px solid #5b7dba;
  18740. padding-left: 5px;
  18741. font-weight: bold;
  18742. }
  18743. .return {
  18744. width: 2rem;
  18745. height: 2rem;
  18746. cursor: pointer;
  18747. }
  18748. .return > img {
  18749. width: 100%;
  18750. height: 100%;
  18751. }
  18752. .returnBtn {
  18753. width: 86px;
  18754. height: 36px;
  18755. background: #3681fc;
  18756. border-radius: 4px;
  18757. color: #fff;
  18758. text-align: center;
  18759. line-height: 36px;
  18760. margin-right: 20px;
  18761. cursor: pointer;
  18762. font-size: 14px;
  18763. font-weight: 400;
  18764. display: flex;
  18765. flex-direction: row;
  18766. flex-wrap: nowrap;
  18767. align-items: center;
  18768. justify-content: center;
  18769. }
  18770. .tool {
  18771. display: flex;
  18772. flex-direction: column;
  18773. flex-wrap: nowrap;
  18774. width: 13%;
  18775. margin: 0 30px;
  18776. align-items: center;
  18777. }
  18778. .whiteBIcon {
  18779. width: 150px;
  18780. cursor: pointer;
  18781. }
  18782. .whiteBIcon > img {
  18783. width: 100%;
  18784. height: 100%;
  18785. }
  18786. .mask {
  18787. background-color: rgba(0, 0, 0, 0);
  18788. position: fixed;
  18789. top: 0;
  18790. left: 0;
  18791. width: 100%;
  18792. height: 100%;
  18793. z-index: 20000;
  18794. display: flex;
  18795. align-items: center;
  18796. justify-content: center;
  18797. }
  18798. .progressBox {
  18799. width: 500px;
  18800. height: 180px;
  18801. background: #fff;
  18802. border-radius: 10px;
  18803. box-shadow: 0 0 6px 1px #bfbfbf;
  18804. display: flex;
  18805. align-items: center;
  18806. justify-content: center;
  18807. flex-direction: column;
  18808. position: relative;
  18809. color: #6c6c6c;
  18810. }
  18811. .progressBox >>> .el-progress-bar__outer {
  18812. background-color: #d1dfff !important;
  18813. }
  18814. .progressBox .lbox {
  18815. height: 50px;
  18816. font-size: 19px;
  18817. display: flex;
  18818. align-items: center;
  18819. color: #747474;
  18820. }
  18821. .progressBox .lbox img {
  18822. width: 40px;
  18823. margin-right: 20px;
  18824. }
  18825. .closeCss {
  18826. position: absolute;
  18827. top: 8px;
  18828. right: 8px;
  18829. cursor: pointer;
  18830. width: 20px;
  18831. height: 20px;
  18832. }
  18833. .closeCss > img {
  18834. width: 100%;
  18835. height: 100%;
  18836. }
  18837. .uploadVedio {
  18838. display: flex;
  18839. flex-direction: column;
  18840. flex-wrap: nowrap;
  18841. justify-content: center;
  18842. align-items: center;
  18843. margin: 0 15px 10px 0;
  18844. }
  18845. .uploadVedio > img {
  18846. width: 30px;
  18847. height: 30px;
  18848. }
  18849. .uploadVedio > span {
  18850. white-space: nowrap;
  18851. overflow: hidden;
  18852. text-overflow: ellipsis;
  18853. width: 75px;
  18854. margin-top: 7px;
  18855. }
  18856. .picName {
  18857. white-space: nowrap;
  18858. overflow: hidden;
  18859. text-overflow: ellipsis;
  18860. width: 75px;
  18861. margin-top: 7px;
  18862. }
  18863. .new_top {
  18864. display: flex;
  18865. background: #fff;
  18866. flex-direction: row;
  18867. justify-content: flex-start;
  18868. align-items: center;
  18869. height: 60px;
  18870. position: fixed;
  18871. top: 20px;
  18872. left: 22%;
  18873. width: 77%;
  18874. z-index: 999;
  18875. border-radius: 12px 12px 0 0;
  18876. border-bottom: 1px solid #cad1dc;
  18877. padding: 10px 0;
  18878. }
  18879. .new_topFixed {
  18880. width: 100%;
  18881. height: 40px;
  18882. position: fixed;
  18883. top: 0px;
  18884. display: block;
  18885. background: #f2f2f2;
  18886. z-index: 998;
  18887. }
  18888. .before {
  18889. position: absolute;
  18890. background: #c3dad4;
  18891. width: 6px;
  18892. height: 100%;
  18893. }
  18894. .courseIndex {
  18895. display: flex;
  18896. flex-direction: row;
  18897. align-items: center;
  18898. width: calc(100% - 745px);
  18899. }
  18900. .courseIndex > div:nth-child(1) {
  18901. margin: 0 0 0 10px;
  18902. font-size: 20px;
  18903. min-width: 100px;
  18904. font-weight: bold;
  18905. border-left: 4px solid #3363b9;
  18906. height: 32px;
  18907. text-align: center;
  18908. line-height: 35px;
  18909. }
  18910. .courseIndex > div:nth-child(2) {
  18911. font-size: 20px;
  18912. /* width: 300px; */
  18913. max-width: calc(100% - 105px);
  18914. white-space: nowrap;
  18915. overflow: hidden;
  18916. text-overflow: ellipsis;
  18917. }
  18918. .courseIndex > div:nth-child(3) {
  18919. border-bottom: 1px solid #d7d7d7;
  18920. padding-bottom: 5px;
  18921. background: #49a0f0;
  18922. width: 55px;
  18923. min-width: 55px;
  18924. border-radius: 5px;
  18925. color: #fff;
  18926. text-align: center;
  18927. height: 20px;
  18928. line-height: 26px;
  18929. font-size: 14px;
  18930. margin: 0 0 0 10px;
  18931. }
  18932. .course_text {
  18933. padding: 20px 0 0 15px;
  18934. text-indent: 30px;
  18935. width: 80%;
  18936. min-height: 20px;
  18937. }
  18938. .vedioList {
  18939. background: #f2f2f2;
  18940. border: 1px solid #ececec;
  18941. /* width: 38.8%; */
  18942. width: 300px;
  18943. height: 445px;
  18944. border-radius: 10px;
  18945. overflow: hidden;
  18946. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  18947. }
  18948. .vedioNav {
  18949. margin: 10px 0 0 15px;
  18950. border-bottom: 1px solid #d7d7d7;
  18951. padding-bottom: 5px;
  18952. background: #96d1ff;
  18953. width: 55px;
  18954. min-width: 55px;
  18955. border-radius: 5px;
  18956. color: #fff;
  18957. text-align: center;
  18958. height: 20px;
  18959. line-height: 26px;
  18960. font-size: 14px;
  18961. }
  18962. .queTop {
  18963. display: flex;
  18964. padding: 20px 0 20px 30px;
  18965. width: 100%;
  18966. flex-direction: row;
  18967. justify-content: flex-start;
  18968. align-items: center;
  18969. box-sizing: border-box;
  18970. }
  18971. .queTopTitle {
  18972. display: flex;
  18973. flex-direction: row;
  18974. flex-wrap: nowrap;
  18975. align-items: center;
  18976. font-weight: bold;
  18977. font-size: 20px;
  18978. color: rgb(14, 30, 51);
  18979. }
  18980. .queTopTitle::before {
  18981. content: "";
  18982. width: 2px;
  18983. height: 22px;
  18984. background: #3681fc;
  18985. border-radius: 3px;
  18986. display: block;
  18987. margin: 2px 6px 0 0;
  18988. }
  18989. .queTopRight {
  18990. display: flex;
  18991. flex-direction: row;
  18992. flex-wrap: nowrap;
  18993. align-items: center;
  18994. }
  18995. .queTopClose {
  18996. margin-right: 20px;
  18997. cursor: pointer;
  18998. position: relative;
  18999. display: flex;
  19000. }
  19001. .closeImg,
  19002. .openImg {
  19003. width: 25px;
  19004. height: 25px;
  19005. position: absolute;
  19006. left: -20px;
  19007. top: -1px;
  19008. }
  19009. .closeImg > img,
  19010. .openImg > img {
  19011. width: 100%;
  19012. height: 100%;
  19013. }
  19014. .question {
  19015. width: 40px;
  19016. margin-right: 10px;
  19017. margin-top: 7px;
  19018. }
  19019. .queTitle {
  19020. margin-left: 5px;
  19021. font-size: 25px;
  19022. display: flex;
  19023. align-items: center;
  19024. }
  19025. .addEditor {
  19026. width: 100px;
  19027. height: 30px;
  19028. background: #42cda6;
  19029. color: #fff;
  19030. border-radius: 5px;
  19031. text-align: center;
  19032. line-height: 30px;
  19033. box-shadow: 1px 3px 6px 1px #bfbfbf;
  19034. cursor: pointer;
  19035. }
  19036. .vedioName {
  19037. /* text-overflow: ellipsis;
  19038. top: 8px;
  19039. font-size: 14px;
  19040. overflow: hidden;
  19041. width: 100%;
  19042. word-break: break-all;
  19043. white-space: nowrap; */
  19044. cursor: pointer;
  19045. margin: 0px 0px 10px 5px;
  19046. white-space: nowrap;
  19047. overflow: hidden;
  19048. text-overflow: ellipsis;
  19049. width: 100%;
  19050. }
  19051. .vedioTime {
  19052. width: 35px;
  19053. position: absolute;
  19054. color: #fff;
  19055. bottom: 0px;
  19056. right: 0px;
  19057. text-align: center;
  19058. background: #46411f;
  19059. height: 20px;
  19060. font-size: 14px;
  19061. line-height: 20px;
  19062. }
  19063. .homework {
  19064. width: 200px;
  19065. display: flex;
  19066. flex-direction: column;
  19067. flex-wrap: nowrap;
  19068. align-items: center;
  19069. cursor: pointer;
  19070. }
  19071. .homebox {
  19072. display: flex;
  19073. flex-wrap: wrap;
  19074. flex-direction: row;
  19075. justify-content: flex-start;
  19076. align-items: center;
  19077. padding: 15px 0;
  19078. }
  19079. .isChooseActive {
  19080. color: #3e88f4;
  19081. border-bottom: 2px solid #2f80f3;
  19082. }
  19083. .chooseWho {
  19084. display: flex;
  19085. width: 100%;
  19086. flex-direction: row;
  19087. flex-wrap: nowrap;
  19088. justify-content: flex-start;
  19089. padding-bottom: 10px;
  19090. }
  19091. .chooseWho > div {
  19092. cursor: pointer;
  19093. padding-bottom: 10px;
  19094. margin: 0 30px 0 0;
  19095. font-weight: 400;
  19096. color: #0e1e33;
  19097. }
  19098. .addPoint > div > img {
  19099. cursor: pointer;
  19100. margin: 0 10px;
  19101. width: 85px;
  19102. border-radius: 15px;
  19103. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  19104. }
  19105. .addPoint > div {
  19106. display: flex;
  19107. flex-direction: column;
  19108. flex-wrap: nowrap;
  19109. align-items: center;
  19110. }
  19111. .isBorder > div {
  19112. margin: 0 0 10px 0;
  19113. align-items: flex-start !important;
  19114. }
  19115. .noiframeBox {
  19116. display: flex;
  19117. flex-wrap: wrap;
  19118. }
  19119. .iframeBox iframe {
  19120. width: 100%;
  19121. height: 800px;
  19122. border: none;
  19123. margin-bottom: 20px;
  19124. border: 1px solid #ccc;
  19125. }
  19126. .upload_toolBtn {
  19127. background: #6b92c9;
  19128. color: #fff;
  19129. width: 110px;
  19130. text-align: center;
  19131. height: 35px;
  19132. line-height: 35px;
  19133. font-size: 14px;
  19134. border-radius: 5px;
  19135. cursor: pointer;
  19136. position: absolute;
  19137. right: 10px;
  19138. bottom: 0;
  19139. }
  19140. .binfo_input,
  19141. .pj {
  19142. font: inherit;
  19143. color: currentColor;
  19144. width: 100%;
  19145. margin: 0;
  19146. padding: 15px 14px;
  19147. display: block;
  19148. min-width: 0;
  19149. outline: none;
  19150. box-sizing: content-box;
  19151. background: none;
  19152. -webkit-tap-highlight-color: transparent;
  19153. border: 1px solid rgba(0, 0, 0, 0.23);
  19154. border-radius: 4px;
  19155. box-sizing: border-box;
  19156. resize: none;
  19157. }
  19158. .binfo_input:focus-visible {
  19159. border: 1px solid rgba(61, 103, 188);
  19160. }
  19161. .dialog_diy >>> .el-dialog__header,
  19162. .dialog_diy1 >>> .el-dialog__header {
  19163. background: #454545 !important;
  19164. padding: 15px 20px;
  19165. }
  19166. .dialog_diy >>> .el-dialog__title,
  19167. .dialog_diy1 >>> .el-dialog__title {
  19168. color: #fff;
  19169. }
  19170. .dialog_diy >>> .el-dialog__headerbtn,
  19171. .dialog_diy1 >>> .el-dialog__headerbtn {
  19172. top: 19px;
  19173. }
  19174. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  19175. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  19176. color: #fff;
  19177. }
  19178. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  19179. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  19180. color: #fff;
  19181. }
  19182. .dialog_diy1 >>> .el-dialog__body {
  19183. padding: 0;
  19184. }
  19185. .dialog_diy >>> .el-dialog__body,
  19186. .dialog_diy >>> .el-dialog__footer,
  19187. .dialog_diy1 >>> .el-dialog__footer {
  19188. background: #fafafa;
  19189. }
  19190. .a_addBox {
  19191. padding: 0 0 0 15px;
  19192. }
  19193. .a_add_box {
  19194. padding: 10px;
  19195. background: #fff;
  19196. margin-bottom: 10px;
  19197. border-radius: 5px;
  19198. box-shadow: 0 0 5px 0 #d5d5d5;
  19199. }
  19200. .askIndex {
  19201. background: #3681fc;
  19202. border-radius: 50%;
  19203. color: #fff;
  19204. width: 25px;
  19205. height: 25px;
  19206. min-width: 25px;
  19207. min-height: 25px;
  19208. text-align: center;
  19209. line-height: 25px;
  19210. margin-right: 5px;
  19211. }
  19212. .a_add_head {
  19213. display: flex;
  19214. align-items: flex-start;
  19215. /* justify-content: space-between; */
  19216. flex-direction: column;
  19217. /* flex-direction: row; */
  19218. margin: 10px 0 20px 0;
  19219. font-size: 18px;
  19220. width: 100%;
  19221. }
  19222. .a_add_head .a_add_head_input {
  19223. width: 300px;
  19224. }
  19225. .a_add_head .a_add_head_div {
  19226. display: flex;
  19227. align-items: center;
  19228. justify-content: space-between;
  19229. }
  19230. .a_add_body {
  19231. display: flex;
  19232. align-items: center;
  19233. }
  19234. .a_add_input {
  19235. display: flex;
  19236. align-items: center;
  19237. flex-wrap: wrap;
  19238. width: 100%;
  19239. }
  19240. .a_add_input >>> .el-radio-group,
  19241. .a_add_input >>> .el-checkbox-group {
  19242. width: 100%;
  19243. }
  19244. .a_add_input >>> .el-radio,
  19245. .a_add_input >>> .el-checkbox {
  19246. display: flex;
  19247. flex-direction: row;
  19248. flex-wrap: nowrap;
  19249. align-items: center;
  19250. padding: 15px 0;
  19251. }
  19252. .a_add_input >>> .el-radio:not(:last-child),
  19253. .a_add_input >>> .el-checkbox:not(:last-child) {
  19254. width: 100%;
  19255. border-bottom: 1px solid #efefef;
  19256. }
  19257. .redioStyle >>> .el-radio__label {
  19258. font-size: 18px;
  19259. }
  19260. .redioStyle >>> .el-radio__label > span,
  19261. .redioStyle >>> .el-checkbox__label > span {
  19262. word-break: break-all;
  19263. white-space: normal;
  19264. }
  19265. .redioStyle >>> .el-checkbox__label {
  19266. font-size: 18px;
  19267. }
  19268. .toolHeng2 {
  19269. width: 100%;
  19270. box-sizing: border-box;
  19271. }
  19272. .toolHeng {
  19273. display: flex;
  19274. flex-direction: row;
  19275. flex-wrap: wrap;
  19276. justify-content: flex-start;
  19277. align-items: center;
  19278. width: 100%;
  19279. }
  19280. .toolHeng > div {
  19281. padding-left: 20px;
  19282. }
  19283. .isWidth {
  19284. width: 20%;
  19285. }
  19286. .textTitle {
  19287. display: flex;
  19288. flex-direction: row;
  19289. flex-wrap: nowrap;
  19290. align-items: center;
  19291. width: 95%;
  19292. }
  19293. .textTitle >>> .el-form-item__label {
  19294. font-size: 22px;
  19295. color: #918f8f;
  19296. width: 100px;
  19297. }
  19298. .textTitle >>> .el-form-item__content {
  19299. width: calc(100% - 100px);
  19300. }
  19301. .textCss >>> .el-dialog {
  19302. width: 800px !important;
  19303. height: 400px;
  19304. background: #fafafa;
  19305. }
  19306. .textCss >>> .el-dialog__body {
  19307. margin: 55px 8% 0 8%;
  19308. padding: 0 !important;
  19309. }
  19310. .textCss >>> .el-dialog__footer {
  19311. padding-top: 38px;
  19312. }
  19313. .toolsCss >>> .el-dialog__body {
  19314. padding: 20px;
  19315. }
  19316. .lineCss >>> .el-dialog__body {
  19317. display: flex;
  19318. flex-direction: row;
  19319. align-items: center;
  19320. justify-content: center;
  19321. }
  19322. .newNav {
  19323. display: flex;
  19324. flex-direction: row;
  19325. align-items: baseline;
  19326. justify-content: flex-start;
  19327. }
  19328. .navText {
  19329. cursor: pointer;
  19330. white-space: nowrap;
  19331. overflow: hidden;
  19332. text-overflow: ellipsis;
  19333. width: 220px;
  19334. padding: 0 10px;
  19335. font-weight: 400;
  19336. color: #0e1e33;
  19337. }
  19338. .noVedio {
  19339. display: flex;
  19340. flex-direction: row;
  19341. justify-content: center;
  19342. align-content: center;
  19343. }
  19344. .noNavText {
  19345. cursor: pointer;
  19346. margin: 0px 0px 10px 5px;
  19347. width: 112px;
  19348. }
  19349. .listNoVedio {
  19350. margin: 0 0 0 30px;
  19351. width: 97%;
  19352. }
  19353. .video-player >>> .video-js {
  19354. height: 100%;
  19355. }
  19356. .hangVedioList {
  19357. width: 90% !important;
  19358. height: 150px !important;
  19359. margin: 20px 0 0 30px;
  19360. }
  19361. .hangVedio {
  19362. width: 100%;
  19363. height: 170px !important;
  19364. align-items: flex-start !important;
  19365. }
  19366. .hangHand {
  19367. height: 150px !important;
  19368. }
  19369. .twoChild {
  19370. width: 95%;
  19371. margin: 10px;
  19372. border-radius: 5px;
  19373. background: #f2f2f2;
  19374. display: flex;
  19375. flex-direction: column;
  19376. flex-wrap: nowrap;
  19377. justify-content: flex-start;
  19378. align-items: flex-start;
  19379. transition: all 0.5s;
  19380. overflow: hidden;
  19381. height: 0;
  19382. background: #e7f3ff;
  19383. }
  19384. .twoChild > div:nth-child(1) {
  19385. margin-top: 5px;
  19386. }
  19387. .navChild {
  19388. width: 100%;
  19389. cursor: pointer;
  19390. margin-bottom: 10px;
  19391. position: relative;
  19392. }
  19393. .navChild img {
  19394. position: absolute;
  19395. right: 11px;
  19396. width: 15px;
  19397. top: 50%;
  19398. transform: translateY(-50%);
  19399. }
  19400. .navActive,
  19401. .toolActive {
  19402. height: auto !important;
  19403. overflow: auto !important;
  19404. padding-bottom: 16px;
  19405. }
  19406. .toolActive {
  19407. padding: 0;
  19408. }
  19409. .navTask {
  19410. display: flex;
  19411. flex-direction: row;
  19412. flex-wrap: nowrap;
  19413. align-items: center;
  19414. align-content: flex-start;
  19415. height: 40px;
  19416. justify-content: flex-start;
  19417. padding: 0 10px;
  19418. width: 100%;
  19419. box-sizing: border-box;
  19420. }
  19421. .navTaskname {
  19422. white-space: nowrap;
  19423. text-overflow: ellipsis;
  19424. overflow: hidden;
  19425. word-break: break-all;
  19426. padding-left: 5px;
  19427. }
  19428. .openTaskActive {
  19429. background-color: #e0eafb !important;
  19430. color: #0061ff;
  19431. }
  19432. .iframeName {
  19433. margin: 5px 0;
  19434. border-left: 4px solid #41c4a4;
  19435. padding-left: 4px;
  19436. }
  19437. .toolTitle {
  19438. margin: 0px 0px 20px;
  19439. font-size: 20px;
  19440. font-weight: 500;
  19441. border-left: 4px solid #41c4a4;
  19442. padding-left: 4px;
  19443. }
  19444. .cru_selectBox {
  19445. overflow: auto;
  19446. width: 95%;
  19447. margin: 17px auto 0;
  19448. height: calc(100% - 40px - 21px - 20px - 17px);
  19449. }
  19450. .cru_selectBox::-webkit-scrollbar,
  19451. .study_top::-webkit-scrollbar,
  19452. .textContent::-webkit-scrollbar {
  19453. /*滚动条整体样式*/
  19454. width: 6px;
  19455. /*高宽分别对应横竖滚动条的尺寸*/
  19456. height: 6px;
  19457. }
  19458. /*定义滚动条轨道 内阴影+圆角*/
  19459. .cru_selectBox::-webkit-scrollbar-track,
  19460. .study_top::-webkit-scrollbar-track,
  19461. .textContent::-webkit-scrollbar {
  19462. border-radius: 10px;
  19463. background-color: #b8bdc9;
  19464. }
  19465. /*定义滑块 内阴影+圆角*/
  19466. .cru_selectBox::-webkit-scrollbar-thumb,
  19467. .study_top::-webkit-scrollbar-thumb,
  19468. .textContent::-webkit-scrollbar-thumb {
  19469. border-radius: 10px;
  19470. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  19471. background-color: #2c5ab3;
  19472. }
  19473. .vedioBox {
  19474. border-radius: 0 0 20px 20px;
  19475. background: #fff;
  19476. overflow: auto;
  19477. }
  19478. .taskBox {
  19479. width: 98%;
  19480. background: #f0f4fa;
  19481. margin: 10px auto;
  19482. padding: 0 10px;
  19483. border-radius: 4px;
  19484. box-sizing: border-box;
  19485. }
  19486. .vedioTaskBox {
  19487. width: 100%;
  19488. display: flex;
  19489. flex-direction: row;
  19490. flex-wrap: nowrap;
  19491. align-items: flex-start;
  19492. position: relative;
  19493. }
  19494. .toolBox {
  19495. padding: 0 60px 0;
  19496. display: flex;
  19497. position: relative;
  19498. }
  19499. .btnAll {
  19500. position: absolute;
  19501. right: 0;
  19502. display: flex;
  19503. flex-direction: row;
  19504. flex-wrap: nowrap;
  19505. align-items: center;
  19506. }
  19507. .btnLeft,
  19508. .btnRight {
  19509. display: flex;
  19510. flex-direction: row;
  19511. flex-wrap: nowrap;
  19512. align-items: center;
  19513. padding: 5px 0;
  19514. }
  19515. .btnLeft {
  19516. border-right: 1px solid #cad1dc;
  19517. }
  19518. .btnLeft > .custom-tooltip {
  19519. background: #3681fc;
  19520. color: #fff;
  19521. }
  19522. .last,
  19523. .returnBtn1 {
  19524. width: 90px;
  19525. height: 36px;
  19526. background: #ffffff;
  19527. border-radius: 4px;
  19528. border: 1px solid #0061ff;
  19529. cursor: pointer;
  19530. display: flex;
  19531. flex-direction: row;
  19532. flex-wrap: nowrap;
  19533. align-items: center;
  19534. justify-content: center;
  19535. margin-left: 12px;
  19536. }
  19537. .returnBtn1 {
  19538. background: #f0f4fa;
  19539. border-radius: 4px;
  19540. border: 1px solid #cad1dc;
  19541. margin: 0 12px;
  19542. }
  19543. .lastImg {
  19544. min-width: 15px;
  19545. width: 15px;
  19546. height: 15px;
  19547. }
  19548. .lastText {
  19549. padding: 0 5px 2px 5px;
  19550. box-sizing: border-box;
  19551. color: #0061ff;
  19552. font-size: 14px;
  19553. }
  19554. .lastImg > img {
  19555. width: 100%;
  19556. height: 100%;
  19557. }
  19558. .reBtnIcon,
  19559. .commentIcon,
  19560. .vedioIcon,
  19561. .vedioIcon1 {
  19562. width: 36px;
  19563. height: 36px;
  19564. border-radius: 4px;
  19565. position: relative;
  19566. background: #e0eafb;
  19567. cursor: pointer;
  19568. margin-right: 12px;
  19569. }
  19570. .reBtnIcon::before,
  19571. .commentIcon::before,
  19572. .vedioIcon::before,
  19573. .vedioIcon::before {
  19574. content: "";
  19575. display: block;
  19576. background-size: 100% 100%;
  19577. background-repeat: no-repeat;
  19578. width: 20px;
  19579. height: 20px;
  19580. position: absolute;
  19581. top: 8px;
  19582. left: 8px;
  19583. }
  19584. .reBtnIcon::before {
  19585. background-image: url("../../assets/icon/newIcons/refresh.png");
  19586. }
  19587. .commentIcon::before {
  19588. background-image: url("../../assets/icon/newIcons/comment.png");
  19589. }
  19590. .vedioIcon::before {
  19591. background-image: url("../../assets/icon/newIcons/transcribe.png");
  19592. }
  19593. .vedioIcon1::before {
  19594. background-image: url("../../assets/icon/newIcons/istranscribe.png");
  19595. }
  19596. .btnAllNT {
  19597. position: fixed;
  19598. bottom: 100px;
  19599. right: 40px;
  19600. z-index: 999;
  19601. display: flex;
  19602. flex-direction: row;
  19603. }
  19604. .btnAllNT > img {
  19605. cursor: pointer;
  19606. width: 80px;
  19607. }
  19608. /* .vedioTimeBox {
  19609. display: flex;
  19610. flex-direction: row;
  19611. align-items: center;
  19612. flex-wrap: nowrap;
  19613. position: relative;
  19614. } */
  19615. .navBox {
  19616. background: #fff;
  19617. height: calc(100% - 40px);
  19618. overflow-y: auto;
  19619. overflow-x: hidden;
  19620. }
  19621. .tool_work_box {
  19622. width: 100%;
  19623. padding: 0 37px 0;
  19624. box-sizing: border-box;
  19625. }
  19626. .worksBox {
  19627. padding: 5px 0;
  19628. border-bottom: 1px solid #eeeeee;
  19629. }
  19630. .worksBTitle {
  19631. font-size: 20px;
  19632. padding-bottom: 15px;
  19633. border-bottom: 1px solid #eeeeee;
  19634. display: flex;
  19635. align-items: center;
  19636. }
  19637. .greenBox {
  19638. width: 5px;
  19639. height: 30px;
  19640. background: #63b6fa;
  19641. margin-right: 5px;
  19642. }
  19643. .worksDetailBox {
  19644. display: flex;
  19645. width: 100%;
  19646. flex-direction: row;
  19647. flex-wrap: wrap;
  19648. align-items: flex-end;
  19649. justify-content: flex-start;
  19650. padding: 15px 0;
  19651. }
  19652. .works {
  19653. display: flex;
  19654. flex-direction: column;
  19655. flex-wrap: nowrap;
  19656. align-items: flex-start;
  19657. justify-content: flex-start;
  19658. align-content: center;
  19659. max-width: 240px;
  19660. width: calc(100% / 3 - 10px);
  19661. height: auto;
  19662. margin-right: 10px;
  19663. margin-bottom: 10px;
  19664. overflow: hidden;
  19665. height: 140px;
  19666. box-shadow: 0 0 6px 1px #dfdada;
  19667. border-radius: 15px;
  19668. }
  19669. .workImg {
  19670. width: 100%;
  19671. /* height: calc(100% - 40px); */
  19672. height: 105px;
  19673. position: relative;
  19674. }
  19675. .workImg > img {
  19676. width: 100%;
  19677. height: 100%;
  19678. object-fit: contain;
  19679. cursor: pointer;
  19680. }
  19681. .worksName {
  19682. height: 40px;
  19683. line-height: 40px;
  19684. display: flex;
  19685. width: 100%;
  19686. flex-direction: row;
  19687. flex-wrap: nowrap;
  19688. justify-content: space-between;
  19689. align-items: center;
  19690. margin: 0 0 0 10px;
  19691. }
  19692. .worksName > div:nth-child(1) {
  19693. width: 110px;
  19694. white-space: nowrap;
  19695. overflow: hidden;
  19696. text-overflow: ellipsis;
  19697. }
  19698. .worksName > div:nth-child(2) {
  19699. color: #b7b4b5;
  19700. }
  19701. .noWorksS {
  19702. padding: 15px 0 0;
  19703. display: flex;
  19704. flex-direction: row;
  19705. flex-wrap: wrap;
  19706. align-items: center;
  19707. justify-content: flex-start;
  19708. }
  19709. .noWorksS > div {
  19710. cursor: pointer;
  19711. }
  19712. .noWorksName,
  19713. .isWorksName,
  19714. .isWorksName2 {
  19715. background: #ddebf8;
  19716. color: #000;
  19717. width: 90px;
  19718. height: 25px;
  19719. text-align: center;
  19720. line-height: 25px;
  19721. border-radius: 4px;
  19722. margin: 10px 15px 10px 0;
  19723. white-space: nowrap;
  19724. overflow: hidden;
  19725. padding: 5px;
  19726. text-overflow: ellipsis;
  19727. cursor: pointer;
  19728. border: 1px solid #ddebf8;
  19729. }
  19730. .noWorksName{
  19731. background: #fff;
  19732. color: #0061FF;
  19733. border: 1px solid #0061FF;
  19734. }
  19735. .isWorksName2 {
  19736. width: 100px;
  19737. height: 40px;
  19738. line-height: 40px;
  19739. position: relative;
  19740. }
  19741. .noWorksName.isWork {
  19742. background: #e7ebf1 !important;
  19743. border: 1px solid #cad1dc !important;
  19744. color: #acb4bf !important;
  19745. }
  19746. .isWorksName {
  19747. cursor: pointer;
  19748. background: #46a1eb !important;
  19749. width: 100px;
  19750. height: 40px;
  19751. line-height: 40px;
  19752. position: relative;
  19753. }
  19754. .isSelectName,
  19755. .noWorksName:hover {
  19756. background: #3383fa;
  19757. color: #fff;
  19758. border: 1px solid #3383fa;
  19759. }
  19760. .title {
  19761. background: #1e5cc9;
  19762. /* width: 98%; */
  19763. height: 45px;
  19764. color: #fff;
  19765. line-height: 45px;
  19766. padding-left: 20px;
  19767. box-sizing: border-box;
  19768. }
  19769. .textBox {
  19770. font-size: 20px;
  19771. width: 90%;
  19772. display: flex;
  19773. flex-direction: column;
  19774. align-items: center;
  19775. margin: 20px auto 0;
  19776. max-height: calc(100% - 75px);
  19777. overflow: auto;
  19778. }
  19779. .textContent {
  19780. font-size: 18px;
  19781. width: 95%;
  19782. max-width: 95%;
  19783. }
  19784. .answerBg {
  19785. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  19786. background-size: 100% 100%;
  19787. width: 100%;
  19788. height: 100%;
  19789. color: #fff;
  19790. text-align: center;
  19791. display: flex;
  19792. flex-direction: column;
  19793. flex-wrap: nowrap;
  19794. align-items: center;
  19795. position: relative;
  19796. justify-content: center;
  19797. }
  19798. .answerBg > div:nth-child(1) {
  19799. /* font-size: 22px;
  19800. padding: 25px 0 10px; */
  19801. }
  19802. .answerContent {
  19803. width: 215px;
  19804. max-height: 60px;
  19805. word-break: break-all;
  19806. text-align: center;
  19807. /* white-space: nowrap; */
  19808. overflow: hidden;
  19809. text-overflow: ellipsis;
  19810. /* padding: 23px 0 0; */
  19811. -webkit-line-clamp: 3;
  19812. -webkit-box-orient: vertical;
  19813. display: -webkit-box;
  19814. font-size: 15px;
  19815. cursor: pointer;
  19816. }
  19817. .elist_input_box {
  19818. display: flex;
  19819. align-items: flex-start;
  19820. flex-wrap: nowrap;
  19821. padding: 10px 0 15px 30px;
  19822. flex-direction: column;
  19823. }
  19824. .elist_input {
  19825. /* width: 40%; */
  19826. width: 100%;
  19827. margin: 20px;
  19828. }
  19829. .elist_input .elist_input_box input {
  19830. font: inherit;
  19831. color: currentColor;
  19832. width: 200px;
  19833. padding: 8px 14px;
  19834. display: block;
  19835. min-width: 0;
  19836. outline: none;
  19837. border: 1px solid rgba(0, 0, 0, 0.23);
  19838. border-radius: 4px;
  19839. box-sizing: border-box;
  19840. background: #fff;
  19841. margin: 0 20px 0 0;
  19842. }
  19843. .elist_input .elist_input_box span {
  19844. height: 36px;
  19845. line-height: 36px;
  19846. color: rgb(82, 82, 82);
  19847. }
  19848. .elist_input .elist_input_box .remove {
  19849. height: 20px;
  19850. width: 20px;
  19851. background-size: 100% 100%;
  19852. background-position: unset;
  19853. margin-left: 5px;
  19854. }
  19855. .elist_input_box >>> .el-rate {
  19856. display: flex;
  19857. height: 36px;
  19858. align-items: center;
  19859. }
  19860. .elist_input_box .elist_inptu_text {
  19861. min-height: 50px;
  19862. /* width: 500px;
  19863. max-height: 150px; */
  19864. width: 100%;
  19865. line-height: 50px;
  19866. color: rgb(82, 82, 82);
  19867. overflow: auto;
  19868. text-indent: 5px;
  19869. background: #f7f6f9;
  19870. border-radius: 10px;
  19871. }
  19872. .elist_input_box .elist_inptu_text input {
  19873. width: 500px;
  19874. }
  19875. .elist_input_box >>> .el-rate__icon {
  19876. font-size: 24px;
  19877. }
  19878. .isClick {
  19879. background: #4d9def;
  19880. }
  19881. /*定义滚动条轨道 内阴影+圆角*/
  19882. .bzTypeBox::-webkit-scrollbar {
  19883. /*滚动条整体样式*/
  19884. width: 6px;
  19885. /*高宽分别对应横竖滚动条的尺寸*/
  19886. height: 6px;
  19887. }
  19888. /*定义滚动条轨道 内阴影+圆角*/
  19889. .bzTypeBox::-webkit-scrollbar-track {
  19890. border-radius: 10px;
  19891. background-color: rgba(0, 0, 0, 0.1);
  19892. }
  19893. /*定义滑块 内阴影+圆角*/
  19894. .bzTypeBox::-webkit-scrollbar-thumb {
  19895. border-radius: 10px;
  19896. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  19897. background-color: rgba(0, 0, 0, 0.1);
  19898. }
  19899. .choiceBox {
  19900. display: flex;
  19901. margin: 20px 0;
  19902. width: 100%;
  19903. }
  19904. .bzTypeBox {
  19905. display: flex;
  19906. width: 100%;
  19907. overflow: auto;
  19908. white-space: nowrap;
  19909. }
  19910. .bzChild {
  19911. cursor: pointer;
  19912. box-sizing: border-box;
  19913. padding-bottom: 10px;
  19914. font-weight: bold;
  19915. min-width: fit-content;
  19916. }
  19917. .bzChild.active {
  19918. color: #3e88f4;
  19919. border-bottom: 2px solid #2f80f3;
  19920. }
  19921. .bzChild + .bzChild {
  19922. margin-left: 25px;
  19923. }
  19924. .bzBox {
  19925. display: flex;
  19926. flex-direction: row;
  19927. align-items: center;
  19928. }
  19929. .bzBox .yCss {
  19930. width: 14px;
  19931. height: 14px;
  19932. background: #3681fc;
  19933. margin: 0 16px 0 7px;
  19934. border-radius: 50%;
  19935. }
  19936. .bzBox > div:nth-child(2) {
  19937. font-size: 18px;
  19938. font-weight: bold;
  19939. color: #0e1e33;
  19940. }
  19941. .navTitile {
  19942. padding: 0 0px 0 15px;
  19943. font-size: 16px;
  19944. font-weight: bold;
  19945. color: #0e1e33;
  19946. height: 40px;
  19947. line-height: 40px;
  19948. }
  19949. .isTypeOne {
  19950. width: 240px;
  19951. height: 170px;
  19952. /* border: 1px solid #f8f8f8; */
  19953. border-radius: 10px;
  19954. box-shadow: 0 0 6px 1px #dfdada;
  19955. }
  19956. .e_add_top {
  19957. display: flex;
  19958. justify-content: space-between;
  19959. padding: 20px 20px 0 20px;
  19960. border-radius: 3px;
  19961. background: #fff;
  19962. }
  19963. .e_add_title2 {
  19964. display: flex;
  19965. align-items: center;
  19966. }
  19967. .e_add_title2 span {
  19968. width: 40px;
  19969. }
  19970. .e_add_title {
  19971. display: flex;
  19972. align-items: center;
  19973. color: #b8b8b8;
  19974. font-size: 18px;
  19975. position: relative;
  19976. height: 40px;
  19977. }
  19978. .e_add_title span {
  19979. margin-right: 10px;
  19980. }
  19981. .e_add_title .el_input {
  19982. width: 300px;
  19983. }
  19984. .e_add_title >>> .el-input__inner {
  19985. width: 400px;
  19986. }
  19987. .e_add_btn {
  19988. }
  19989. .e_add_content {
  19990. display: flex;
  19991. width: 100%;
  19992. max-width: 650px;
  19993. height: 550px;
  19994. }
  19995. .e_add_list {
  19996. background: #fff;
  19997. height: 500px;
  19998. width: 210px;
  19999. position: relative;
  20000. margin: 15px 5px 0 0;
  20001. flex-shrink: 0;
  20002. display: flex;
  20003. flex-direction: column;
  20004. }
  20005. .e_add_list_title {
  20006. font-size: 20px;
  20007. width: 100%;
  20008. box-sizing: border-box;
  20009. padding: 15px 40px;
  20010. text-align: center;
  20011. border-bottom: 1px solid #eaeaea;
  20012. position: relative;
  20013. display: flex;
  20014. align-items: center;
  20015. justify-content: center;
  20016. height: 57px;
  20017. background: #f6f6f6;
  20018. }
  20019. .e_add_list_title span {
  20020. overflow: hidden;
  20021. white-space: nowrap;
  20022. text-overflow: ellipsis;
  20023. }
  20024. .e_add_list_title img {
  20025. position: absolute;
  20026. right: 15px;
  20027. width: 25px;
  20028. cursor: pointer;
  20029. top: 50%;
  20030. transform: translateY(-50%);
  20031. }
  20032. .e_add_list_body {
  20033. height: calc(100% - 187px);
  20034. overflow: auto;
  20035. }
  20036. .e_add_list_child {
  20037. width: 100%;
  20038. display: flex;
  20039. align-items: center;
  20040. justify-content: center;
  20041. position: relative;
  20042. box-sizing: border-box;
  20043. padding: 15px 40px;
  20044. text-align: center;
  20045. }
  20046. .e_add_list_child span {
  20047. overflow: hidden;
  20048. white-space: nowrap;
  20049. text-overflow: ellipsis;
  20050. cursor: pointer;
  20051. }
  20052. .e_add_list_child img {
  20053. position: absolute;
  20054. right: 10px;
  20055. width: 21px;
  20056. cursor: pointer;
  20057. top: 50%;
  20058. transform: translateY(-50%);
  20059. }
  20060. .e_add_list_child + .e_add_list_child {
  20061. border-top: 1px solid #eaeaea;
  20062. }
  20063. .e_add_list_child .active {
  20064. color: #409eff;
  20065. }
  20066. .e_add_list_btn {
  20067. position: absolute;
  20068. bottom: 0;
  20069. height: 50px;
  20070. background: rgb(120, 120, 254);
  20071. width: 100%;
  20072. color: #fff;
  20073. font-size: 16px;
  20074. text-align: center;
  20075. line-height: 50px;
  20076. cursor: pointer;
  20077. }
  20078. .e_add_list_detail {
  20079. position: absolute;
  20080. bottom: 0;
  20081. height: 130px;
  20082. background: rgb(120, 120, 254);
  20083. width: 100%;
  20084. color: #fff;
  20085. font-size: 16px;
  20086. display: flex;
  20087. align-items: center;
  20088. justify-content: center;
  20089. }
  20090. .e_add_list_detail textarea {
  20091. height: 90%;
  20092. width: 95%;
  20093. border: none;
  20094. resize: none;
  20095. outline: none;
  20096. padding: 5px;
  20097. box-sizing: border-box;
  20098. }
  20099. .e_add_list_pbox {
  20100. width: 100%;
  20101. max-width: 650px;
  20102. /* height: 600px; */
  20103. }
  20104. .e_add_list_pbox_title {
  20105. height: 50px;
  20106. background: #fff;
  20107. display: flex;
  20108. align-items: center;
  20109. width: 100%;
  20110. box-sizing: border-box;
  20111. padding: 0 20px;
  20112. }
  20113. .type_title {
  20114. font-size: 18px;
  20115. font-weight: 700;
  20116. }
  20117. .type_content {
  20118. font-size: 16px;
  20119. margin-left: 30px;
  20120. }
  20121. .type_content span + span {
  20122. margin-left: 20px;
  20123. }
  20124. .type_content span {
  20125. cursor: pointer;
  20126. padding-bottom: 5px;
  20127. box-sizing: border-box;
  20128. }
  20129. .type_content .active {
  20130. color: #409eff;
  20131. border-bottom: 2px solid #409eff;
  20132. }
  20133. .e_add_list_pbox_content {
  20134. height: calc(100% - 50px);
  20135. display: flex;
  20136. align-items: center;
  20137. width: 100%;
  20138. background: #fff;
  20139. }
  20140. .evaCss {
  20141. display: flex;
  20142. flex-direction: row;
  20143. flex-wrap: nowrap;
  20144. align-items: flex-start;
  20145. }
  20146. .cru_line {
  20147. position: absolute;
  20148. bottom: 0px;
  20149. transition: all 0.5s;
  20150. left: 0px;
  20151. width: 125px;
  20152. margin-left: -25px;
  20153. }
  20154. .isNoMessage {
  20155. width: 20%;
  20156. margin: 25% auto 0;
  20157. }
  20158. .isNoMessage > img {
  20159. width: 100%;
  20160. height: 100%;
  20161. }
  20162. .fullStyle >>> .el-dialog__body {
  20163. height: 100% !important;
  20164. }
  20165. .fullStyle >>> .el-dialog,
  20166. .fullStyle {
  20167. width: 100% !important;
  20168. max-width: 100% !important;
  20169. height: 100% !important;
  20170. margin: 0 !important;
  20171. }
  20172. .full_diy >>> .el-dialog {
  20173. margin: 0 !important;
  20174. height: 100%;
  20175. padding: 4px;
  20176. }
  20177. .full_diy >>> .el-dialog__body {
  20178. height: calc(100% - 100px);
  20179. }
  20180. .full_diy2 >>> .el-dialog__body {
  20181. height: calc(100% - 50px);
  20182. padding: 0;
  20183. }
  20184. .switchCss {
  20185. /* width: 100%; */
  20186. display: flex;
  20187. flex-direction: row;
  20188. flex-wrap: nowrap;
  20189. align-items: center;
  20190. /* justify-content: center; */
  20191. }
  20192. .isClickNav {
  20193. color: #000;
  20194. /* color: #499eef; */
  20195. }
  20196. .commentImg {
  20197. width: 25px;
  20198. height: 25px;
  20199. cursor: pointer;
  20200. }
  20201. .commentImg > img {
  20202. width: 100%;
  20203. height: 100%;
  20204. }
  20205. .comment {
  20206. background: #f9f9f9;
  20207. border-radius: 0 0 15px 15px;
  20208. display: flex;
  20209. flex-direction: row;
  20210. flex-wrap: nowrap;
  20211. align-items: center;
  20212. justify-content: flex-end;
  20213. height: 35px;
  20214. }
  20215. .commentList {
  20216. display: flex;
  20217. flex-direction: row;
  20218. flex-wrap: nowrap;
  20219. align-items: center;
  20220. justify-content: center;
  20221. align-content: center;
  20222. /* margin-left: 15px; */
  20223. /* margin-left: 8px; */
  20224. }
  20225. .scoreImg {
  20226. width: 17px;
  20227. height: 17px;
  20228. }
  20229. .studentDetail {
  20230. display: flex;
  20231. flex-direction: row;
  20232. flex-wrap: nowrap;
  20233. /* align-items: center; */
  20234. align-items: flex-start;
  20235. }
  20236. .tx {
  20237. width: 50px;
  20238. }
  20239. .tx > img {
  20240. width: 100%;
  20241. height: 100%;
  20242. }
  20243. .nameAndTime {
  20244. display: flex;
  20245. flex-direction: column;
  20246. flex-wrap: nowrap;
  20247. align-items: flex-start;
  20248. margin-left: 10px;
  20249. }
  20250. .worksAnswer {
  20251. color: #4078dd;
  20252. margin: 10px 0;
  20253. font-size: 16px;
  20254. position: relative;
  20255. }
  20256. .worksAnswer > img {
  20257. width: 500px;
  20258. height: 300px;
  20259. object-fit: contain;
  20260. margin: 0 auto;
  20261. display: block;
  20262. }
  20263. .commentTop {
  20264. border-bottom: 1px solid #eaeaea;
  20265. padding-bottom: 10px;
  20266. }
  20267. .commentBox {
  20268. padding-top: 15px;
  20269. }
  20270. .pl {
  20271. font-size: 18px;
  20272. }
  20273. .plPerson {
  20274. width: 100%;
  20275. }
  20276. .plName {
  20277. display: flex;
  20278. flex-direction: row;
  20279. flex-wrap: nowrap;
  20280. align-items: baseline;
  20281. color: #78787a;
  20282. width: 100%;
  20283. }
  20284. .deleteComment {
  20285. cursor: pointer;
  20286. margin-left: auto;
  20287. color: #237ade;
  20288. }
  20289. .plContent {
  20290. margin-top: 5px;
  20291. }
  20292. .evalCss {
  20293. background: #fff;
  20294. font-size: 18px;
  20295. }
  20296. .nav {
  20297. color: #9d9d9d;
  20298. padding: 5px 0 15px 20px;
  20299. }
  20300. .middleBox {
  20301. padding: 5px 0 15px 20px;
  20302. }
  20303. .pfBox {
  20304. padding-bottom: 30px;
  20305. }
  20306. .nameAndrate {
  20307. display: flex;
  20308. flex-direction: row;
  20309. flex-wrap: nowrap;
  20310. align-items: center;
  20311. padding-bottom: 10px;
  20312. height: 30px;
  20313. line-height: 30px;
  20314. }
  20315. .nameAndrate > div {
  20316. margin-left: 10px;
  20317. color: #000;
  20318. height: 30px;
  20319. }
  20320. .nameAndrate >>> .el-rate__icon {
  20321. font-size: 28px !important;
  20322. }
  20323. .pfBox > div:nth-child(2) {
  20324. background: #f7f6f9;
  20325. width: 400px;
  20326. min-height: 45px;
  20327. border-radius: 10px;
  20328. font-size: 16px;
  20329. display: flex;
  20330. flex-wrap: wrap;
  20331. align-items: center;
  20332. padding: 10px 20px;
  20333. box-sizing: border-box;
  20334. color: #000;
  20335. }
  20336. .bz {
  20337. display: flex;
  20338. flex-direction: row;
  20339. flex-wrap: nowrap;
  20340. align-items: flex-start;
  20341. }
  20342. .bz > div {
  20343. padding: 0 10px;
  20344. }
  20345. .select_box2_title {
  20346. background: #fff;
  20347. border-radius: 5px;
  20348. padding: 15px 10px;
  20349. box-sizing: border-box;
  20350. margin-bottom: 10px;
  20351. display: flex;
  20352. flex-direction: row;
  20353. flex-wrap: nowrap;
  20354. align-items: center;
  20355. }
  20356. .select_box2_title > div:nth-child(2) {
  20357. margin-left: 10px;
  20358. color: #c4c4c4;
  20359. }
  20360. .select_box2_box {
  20361. display: flex;
  20362. height: 500px;
  20363. }
  20364. .select_box2_img {
  20365. width: calc(100% - 310px);
  20366. height: 100%;
  20367. overflow: auto;
  20368. background: #fff;
  20369. border-radius: 5px;
  20370. }
  20371. .select_box2_img img {
  20372. width: 100%;
  20373. }
  20374. .select_box2_answer {
  20375. background: #fff;
  20376. margin-left: 10px;
  20377. border-radius: 5px;
  20378. width: 300px;
  20379. overflow: auto;
  20380. height: 90%;
  20381. display: flex;
  20382. flex-direction: column;
  20383. align-items: flex-start;
  20384. padding-top: 10px;
  20385. box-sizing: border-box;
  20386. position: relative;
  20387. }
  20388. .select_answer_title {
  20389. padding: 0 0 15px 20px;
  20390. color: #c4c4c4;
  20391. }
  20392. .select_box2_answer_box {
  20393. margin: 0 0 10px 20px;
  20394. width: 85%;
  20395. display: flex;
  20396. flex-direction: row;
  20397. flex-wrap: nowrap;
  20398. align-items: center;
  20399. }
  20400. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  20401. color: #000;
  20402. }
  20403. .upAnswerCss {
  20404. position: absolute;
  20405. bottom: 15px;
  20406. right: 15px;
  20407. }
  20408. .upAnswerCss >>> .el-button {
  20409. width: 95px;
  20410. height: 35px;
  20411. line-height: 35px;
  20412. padding: 0;
  20413. }
  20414. .rightWidthCss {
  20415. width: 60%;
  20416. display: flex;
  20417. flex-direction: row;
  20418. align-items: flex-start;
  20419. }
  20420. .rightAnswer {
  20421. display: flex;
  20422. flex-direction: row;
  20423. flex-wrap: nowrap;
  20424. align-items: center;
  20425. color: red;
  20426. margin-bottom: 31px;
  20427. }
  20428. .rightAnswerCss {
  20429. display: flex;
  20430. flex-direction: column;
  20431. flex-wrap: nowrap;
  20432. padding-top: 60px;
  20433. }
  20434. .blueCss {
  20435. color: #767de1;
  20436. margin-left: 10px;
  20437. }
  20438. .redCss {
  20439. color: red;
  20440. }
  20441. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  20442. color: rgb(0 123 255) !important;
  20443. }
  20444. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  20445. color: rgb(0 123 255) !important;
  20446. }
  20447. .zuoyeYulan {
  20448. padding-top: 0;
  20449. font-size: 18px;
  20450. display: flex;
  20451. align-items: flex-end;
  20452. }
  20453. .buttonA {
  20454. margin-left: 10px;
  20455. padding: 0;
  20456. }
  20457. .displayBox {
  20458. margin-bottom: 10px;
  20459. display: block;
  20460. border-bottom: 3px solid #eee;
  20461. display: flex;
  20462. align-items: center;
  20463. }
  20464. .easy_comment {
  20465. width: calc(100% - 90px);
  20466. margin-left: 10px;
  20467. display: flex;
  20468. flex-wrap: wrap;
  20469. }
  20470. .easy_comment > div {
  20471. border: 1px solid #4a4a4a;
  20472. color: #666;
  20473. border-radius: 15px;
  20474. padding: 5px 10px;
  20475. font-size: 16px;
  20476. margin-bottom: 10px;
  20477. margin-right: 5px;
  20478. cursor: pointer;
  20479. }
  20480. .easy_comment div:hover {
  20481. border: 1px solid #f7ba2a;
  20482. color: #c69217;
  20483. }
  20484. .xuan_right_box {
  20485. padding: 10px;
  20486. background: rgb(247, 247, 247);
  20487. margin: 0 12px;
  20488. border-radius: 5px;
  20489. }
  20490. .tool_right_box {
  20491. display: flex;
  20492. align-items: center;
  20493. }
  20494. .tool_right_box + .tool_right_box {
  20495. margin-top: 10px;
  20496. }
  20497. .right_box_xuan {
  20498. background: rgb(0 123 255);
  20499. color: #fff;
  20500. border-radius: 5px;
  20501. padding: 5px;
  20502. margin-left: 10px;
  20503. min-width: 95px;
  20504. }
  20505. .pButton:hover {
  20506. opacity: 1 !important;
  20507. }
  20508. .pButton {
  20509. position: fixed;
  20510. text-align: center;
  20511. cursor: pointer;
  20512. z-index: 999;
  20513. right: 20px;
  20514. top: 110px;
  20515. width: 50px;
  20516. height: 50px;
  20517. display: flex;
  20518. align-items: center;
  20519. justify-content: center;
  20520. border-radius: 5px;
  20521. }
  20522. .pzClass {
  20523. width: calc(100% - 340px);
  20524. }
  20525. .newDialogCss {
  20526. /* position: fixed;
  20527. right: 5%;
  20528. top: 50%;
  20529. width: 340px;
  20530. transform: translateY(-50%);
  20531. height: 60%;
  20532. box-shadow: 0px 0 8px 0px #555555;
  20533. border-radius: 15px;
  20534. z-index: 999; */
  20535. position: fixed;
  20536. right: 20px;
  20537. top: 101px;
  20538. width: 330px;
  20539. height: calc(100% - 80px);
  20540. z-index: 999;
  20541. background: #fff;
  20542. border-top-right-radius: 0px;
  20543. border-bottom-right-radius: 0px;
  20544. overflow: hidden;
  20545. }
  20546. .pzTop {
  20547. color: #fff;
  20548. background: #000;
  20549. display: flex;
  20550. flex-direction: row;
  20551. flex-wrap: nowrap;
  20552. align-items: center;
  20553. justify-content: space-between;
  20554. height: 40px;
  20555. border-radius: 15px 15px 0 0;
  20556. user-select: none;
  20557. }
  20558. .pzTop2 .checkbox {
  20559. display: flex;
  20560. align-items: center;
  20561. padding: 5px 30px;
  20562. flex: 0 0 auto;
  20563. font-weight: bold;
  20564. border-bottom: 1px solid #eee;
  20565. justify-content: space-between;
  20566. }
  20567. .pzTop2 .check {
  20568. text-align: center;
  20569. cursor: pointer;
  20570. box-sizing: border-box;
  20571. display: flex;
  20572. }
  20573. .pzTop2 img {
  20574. width: 25px;
  20575. cursor: pointer;
  20576. }
  20577. .pzTop > div:nth-child(1) {
  20578. padding-left: 10px;
  20579. }
  20580. .pzTop > div:nth-child(2) {
  20581. width: 15px;
  20582. height: 15px;
  20583. padding-right: 10px;
  20584. cursor: pointer;
  20585. }
  20586. .pzTop > div:nth-child(2) > img {
  20587. width: 100%;
  20588. height: 100%;
  20589. }
  20590. .pzBox,
  20591. .noPzBox {
  20592. height: calc(100% - 60px);
  20593. /* background: #ededed; */
  20594. background: #fff;
  20595. /* border-radius: 0 0 15px 15px; */
  20596. }
  20597. .noPzBox {
  20598. display: flex;
  20599. flex-direction: column;
  20600. flex-wrap: nowrap;
  20601. justify-content: center;
  20602. align-items: center;
  20603. }
  20604. .pzList {
  20605. background: #f7f7f7;
  20606. width: 90%;
  20607. margin: 0 auto 15px;
  20608. border-radius: 5px;
  20609. }
  20610. .pzNavTop {
  20611. display: flex;
  20612. flex-direction: row;
  20613. flex-wrap: nowrap;
  20614. padding: 10px 10px 0 10px;
  20615. align-items: center;
  20616. }
  20617. .pzDelete {
  20618. cursor: pointer;
  20619. margin-left: auto;
  20620. font-size: 14px;
  20621. color: #afafaf;
  20622. }
  20623. .pzNavTop > div:nth-child(1) {
  20624. background: #3760af;
  20625. width: 35px;
  20626. height: 35px;
  20627. color: #fff;
  20628. text-align: center;
  20629. line-height: 35px;
  20630. border-radius: 50%;
  20631. font-size: 14px;
  20632. }
  20633. .pzNavTop > div:nth-child(2) {
  20634. font-size: 18px;
  20635. color: #959595;
  20636. margin-left: 5px;
  20637. }
  20638. .pzContent {
  20639. padding: 10px;
  20640. word-break: break-word;
  20641. }
  20642. .pzContent audio {
  20643. width: 100%;
  20644. }
  20645. .pzContent audio::-webkit-media-controls-panel {
  20646. background: #fff;
  20647. }
  20648. .pzContent >>> img {
  20649. max-width: 100%;
  20650. }
  20651. .pzListBox {
  20652. padding-top: 15px;
  20653. height: calc(100% - 110px);
  20654. overflow: auto;
  20655. }
  20656. .addPzButton {
  20657. position: relative;
  20658. margin-top: 3px;
  20659. width: 100%;
  20660. }
  20661. .addPzButton .img1 {
  20662. position: absolute;
  20663. top: 50%;
  20664. right: 25px;
  20665. transform: translateY(-50%);
  20666. height: 100%;
  20667. display: flex;
  20668. align-items: center;
  20669. }
  20670. .addPzButton .img1 div {
  20671. display: flex;
  20672. }
  20673. .addPzButton .img1 div img {
  20674. width: 28px;
  20675. margin-left: 10px;
  20676. cursor: pointer;
  20677. }
  20678. .addPzButton .img1 div span {
  20679. font-size: 14px;
  20680. margin: 4px 0 0 3px;
  20681. color: #afafaf;
  20682. }
  20683. .addPz {
  20684. background: #4b79ce;
  20685. width: 100px;
  20686. color: #fff;
  20687. font-size: 12px;
  20688. height: 30px;
  20689. margin: 0 auto;
  20690. text-align: center;
  20691. line-height: 30px;
  20692. border-radius: 10px;
  20693. cursor: pointer;
  20694. }
  20695. .addDialogCss {
  20696. position: fixed;
  20697. width: 600px;
  20698. height: 70%;
  20699. min-height: 450px;
  20700. box-shadow: 0px 0 8px 0px #555555;
  20701. border-radius: 15px;
  20702. z-index: 999;
  20703. left: 50%;
  20704. top: 50%;
  20705. margin: -18% 0 0 -300px;
  20706. }
  20707. .teacherPz {
  20708. display: flex;
  20709. flex-direction: row;
  20710. align-items: center;
  20711. flex-wrap: nowrap;
  20712. }
  20713. .teacherPzImg {
  20714. width: 30px;
  20715. height: 30px;
  20716. }
  20717. .teacherPzImg > img {
  20718. width: 100%;
  20719. height: 100%;
  20720. }
  20721. .addPzBox {
  20722. height: calc(100% - 40px);
  20723. background: #ededed;
  20724. }
  20725. .pzAudioClass {
  20726. margin: 15px 14px;
  20727. background: #fff;
  20728. height: 100%;
  20729. display: flex;
  20730. justify-content: center;
  20731. align-items: center;
  20732. }
  20733. .pzConText {
  20734. width: 95%;
  20735. height: 100%;
  20736. margin: 10px auto 0;
  20737. border: none;
  20738. background: #fff;
  20739. border-radius: 0px;
  20740. }
  20741. .pzConText >>> .text {
  20742. height: calc(100% - 82px);
  20743. }
  20744. .addTextCss {
  20745. background: #4b79ce;
  20746. width: 80px;
  20747. height: 30px;
  20748. text-align: center;
  20749. color: #fff;
  20750. line-height: 30px;
  20751. border-radius: 10px;
  20752. margin: 10px auto 0;
  20753. cursor: pointer;
  20754. }
  20755. .pzConText:focus-visible {
  20756. border: none !important;
  20757. }
  20758. .maxWidth {
  20759. width: 1000px;
  20760. }
  20761. .noPz {
  20762. width: 150px;
  20763. margin: 0 auto 20%;
  20764. }
  20765. .noPz > img {
  20766. width: 100%;
  20767. height: 100%;
  20768. }
  20769. .pzList .time {
  20770. text-align: right;
  20771. box-sizing: border-box;
  20772. padding: 0 10px 10px 0px;
  20773. color: #949494;
  20774. font-size: 14px;
  20775. }
  20776. /* code 样式 */
  20777. .cont {
  20778. /* -webkit-user-modify: read-write; */
  20779. overflow-wrap: break-word;
  20780. -webkit-line-break: after-white-space;
  20781. }
  20782. /* table 样式 */
  20783. .cont >>> table {
  20784. border-top: 1px solid #ccc;
  20785. border-left: 1px solid #ccc;
  20786. }
  20787. .cont >>> table td,
  20788. .cont >>> table th {
  20789. border-bottom: 1px solid #ccc;
  20790. border-right: 1px solid #ccc;
  20791. /* padding: 20px 5px; */
  20792. padding: 5px 10px;
  20793. max-width: 0px;
  20794. height: 30px;
  20795. vertical-align: baseline;
  20796. box-sizing: border-box;
  20797. }
  20798. .cont >>> table th {
  20799. border-bottom: 2px solid #ccc;
  20800. text-align: center;
  20801. }
  20802. /* blockquote 样式 */
  20803. .cont >>> blockquote {
  20804. display: block;
  20805. border-left: 8px solid #d0e5f2;
  20806. padding: 5px 10px;
  20807. margin: 10px 0;
  20808. line-height: 1.4;
  20809. font-size: 100%;
  20810. background-color: #f1f1f1;
  20811. }
  20812. /* code 样式 */
  20813. .cont >>> code {
  20814. display: inline-block;
  20815. /* *display: inline; */
  20816. zoom: 1;
  20817. background-color: #f1f1f1;
  20818. border-radius: 3px;
  20819. padding: 3px 5px;
  20820. margin: 0 3px;
  20821. }
  20822. .cont >>> pre code {
  20823. display: block;
  20824. }
  20825. /* ul ol 样式 */
  20826. .cont >>> ul,
  20827. ol {
  20828. margin: 10px 0 10px 20px;
  20829. }
  20830. .addPzCheck {
  20831. display: flex;
  20832. flex-direction: row;
  20833. flex-wrap: nowrap;
  20834. padding: 10px 15px 0;
  20835. }
  20836. .addPzCheck span {
  20837. cursor: pointer;
  20838. padding-bottom: 5px;
  20839. font-weight: bold;
  20840. }
  20841. .addPzCheck span + span {
  20842. margin-left: 10px;
  20843. }
  20844. .addPzCheck .isChooseActive {
  20845. color: #3e88f4;
  20846. border-bottom: 2px solid #2f80f3;
  20847. }
  20848. .scoreBox,
  20849. .scoreDetailBox {
  20850. display: flex;
  20851. align-items: center;
  20852. justify-content: flex-start;
  20853. margin-top: 20px;
  20854. font-size: 18px;
  20855. width: 100%;
  20856. }
  20857. .scoreBox .t,
  20858. .scoreDetailBox .t {
  20859. margin-right: 10px;
  20860. width: 100px;
  20861. text-align: right;
  20862. }
  20863. .scoreDetailBox {
  20864. align-items: flex-start;
  20865. }
  20866. .scoreDetailBox >>> .el-textarea {
  20867. width: calc(100% - 200px);
  20868. }
  20869. .scoreBox >>> .el-input {
  20870. width: 130px;
  20871. font-size: 38px;
  20872. }
  20873. .scoreBox >>> .el-input__inner {
  20874. height: 60px;
  20875. }
  20876. .answerScore {
  20877. position: absolute;
  20878. top: 10px;
  20879. right: 10px;
  20880. background: #0000008f;
  20881. border-radius: 5px;
  20882. padding: 3px 5px;
  20883. font-size: 14px;
  20884. color: #fff;
  20885. cursor: pointer;
  20886. }
  20887. .open_box .switch_box {
  20888. width: 100%;
  20889. margin: 0 auto;
  20890. display: flex;
  20891. justify-content: space-between;
  20892. }
  20893. .open_box .switch_box + .switch_box {
  20894. margin-top: 10px;
  20895. }
  20896. .deleteImg {
  20897. width: 25px !important;
  20898. height: 25px !important;
  20899. cursor: pointer;
  20900. position: absolute;
  20901. top: 10px;
  20902. right: 10px;
  20903. }
  20904. .deleteImg2 {
  20905. width: 15px !important;
  20906. height: 15px !important;
  20907. top: 5px;
  20908. right: 5px;
  20909. }
  20910. .rightW {
  20911. right: 40px;
  20912. }
  20913. .drawPBox {
  20914. display: flex;
  20915. flex-direction: column;
  20916. position: relative;
  20917. }
  20918. .drawPBox span {
  20919. font-size: 18px;
  20920. color: #606266;
  20921. padding-bottom: 10px;
  20922. margin: 10px 0;
  20923. border-bottom: 1px solid #eaeaea;
  20924. }
  20925. .drawPBox img {
  20926. width: 500px;
  20927. height: 300px;
  20928. object-fit: contain;
  20929. cursor: pointer;
  20930. margin: 0 auto;
  20931. }
  20932. .sentenBox {
  20933. background: #fff;
  20934. height: 450px;
  20935. overflow: auto;
  20936. background-image: url("../../assets/icon/conSentences/stuBg.png");
  20937. background-position: 102%;
  20938. background-repeat: no-repeat;
  20939. background-size: 60%;
  20940. }
  20941. .addSen {
  20942. background: #409efe;
  20943. width: 90px;
  20944. color: #fff;
  20945. height: 35px;
  20946. text-align: center;
  20947. line-height: 35px;
  20948. border-radius: 5px;
  20949. float: right;
  20950. margin: 10px 20px 0 0;
  20951. cursor: pointer;
  20952. }
  20953. .sentenTop {
  20954. display: flex;
  20955. flex-direction: row;
  20956. flex-wrap: nowrap;
  20957. align-items: center;
  20958. padding: 55px 0 0 20px;
  20959. box-sizing: border-box;
  20960. }
  20961. .sentenTop > div:nth-child(2) {
  20962. width: 300px;
  20963. margin: 0 15px;
  20964. }
  20965. .sentenTop > div:nth-child(3) {
  20966. background: #409efe;
  20967. color: #fff;
  20968. width: 65px;
  20969. height: 35px;
  20970. text-align: center;
  20971. line-height: 35px;
  20972. border-radius: 5px;
  20973. cursor: pointer;
  20974. }
  20975. .cardList,
  20976. .cardList1 {
  20977. padding: 10px 0 10px 0;
  20978. display: flex;
  20979. flex-direction: row;
  20980. flex-wrap: wrap;
  20981. align-items: center;
  20982. box-sizing: border-box;
  20983. border-bottom: 1px solid #f4f4f4;
  20984. width: 98%;
  20985. margin: 0 auto;
  20986. min-width: 60%;
  20987. max-width: 85%;
  20988. }
  20989. .cardList1 {
  20990. padding: 10px 0 10px 10px !important;
  20991. margin: 0 !important;
  20992. }
  20993. .cardBox {
  20994. display: flex;
  20995. flex-direction: row;
  20996. flex-wrap: wrap;
  20997. align-items: center;
  20998. align-content: center;
  20999. }
  21000. .cardBox > div {
  21001. margin-bottom: 10px;
  21002. }
  21003. .isCard,
  21004. .isChooseCard,
  21005. .noCard,
  21006. .isCard1 {
  21007. width: 130px;
  21008. height: 60px;
  21009. text-align: center;
  21010. line-height: 60px;
  21011. font-size: 20px;
  21012. cursor: pointer;
  21013. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  21014. background-size: cover;
  21015. transition: all 2s;
  21016. margin-right: 20px;
  21017. }
  21018. .isCard > div,
  21019. .noCard > div,
  21020. .isCard1 > div {
  21021. white-space: nowrap;
  21022. overflow: hidden;
  21023. text-overflow: ellipsis;
  21024. width: 75%;
  21025. margin: 0 auto;
  21026. }
  21027. .noCard {
  21028. background-image: none;
  21029. }
  21030. .isCard1 {
  21031. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  21032. }
  21033. .isChooseCard {
  21034. background-image: none;
  21035. border: 1px dashed #b9b9b9;
  21036. border-radius: 10px;
  21037. }
  21038. .card {
  21039. width: 130px;
  21040. height: 60px;
  21041. }
  21042. .card > img {
  21043. width: 100%;
  21044. height: 100%;
  21045. }
  21046. .rightCardBox {
  21047. margin: 10px 0 0 10px;
  21048. }
  21049. .rightCardBox > div:nth-child(1) {
  21050. margin-bottom: 10px;
  21051. }
  21052. .cardCss {
  21053. display: flex;
  21054. flex-direction: column;
  21055. flex-wrap: nowrap;
  21056. align-items: center;
  21057. border-bottom: 3px solid #b4c3d3;
  21058. padding: 0 0 5px 0;
  21059. margin-right: 10px;
  21060. }
  21061. .cardCss > div:nth-child(2) {
  21062. background: #5b7b9d;
  21063. color: #fff;
  21064. width: 20px;
  21065. height: 20px;
  21066. border-radius: 50%;
  21067. text-align: center;
  21068. line-height: 20px;
  21069. }
  21070. .isWrong {
  21071. display: flex;
  21072. flex-direction: row;
  21073. flex-wrap: nowrap;
  21074. align-content: center;
  21075. align-items: center;
  21076. }
  21077. .answerRight {
  21078. width: 25%;
  21079. }
  21080. .isTj {
  21081. display: flex;
  21082. flex-direction: row;
  21083. flex-wrap: nowrap;
  21084. align-items: center;
  21085. }
  21086. .isTj > div:nth-child(2) {
  21087. color: #727070;
  21088. margin-left: 10px;
  21089. }
  21090. .isTjImg {
  21091. width: 30px;
  21092. height: 30px;
  21093. }
  21094. .isTjImg > img {
  21095. width: 100%;
  21096. height: 100%;
  21097. }
  21098. .cardAnswerBox {
  21099. font-size: 18px;
  21100. width: 97%;
  21101. border: 5px;
  21102. padding: 0;
  21103. border-radius: 5px;
  21104. margin: 10px auto;
  21105. word-break: break-word;
  21106. }
  21107. .w_name {
  21108. margin-bottom: 10px;
  21109. }
  21110. .w_name span {
  21111. font-size: 16px;
  21112. }
  21113. .w_teachert {
  21114. width: 50px !important;
  21115. position: absolute;
  21116. height: auto !important;
  21117. z-index: 10;
  21118. right: 25px;
  21119. top: -25px;
  21120. }
  21121. .group_workBox {
  21122. }
  21123. .group_workBox + .group_workBox {
  21124. margin-top: 20px;
  21125. }
  21126. .group_box {
  21127. padding-bottom: 20px;
  21128. border-bottom: 2px solid #f0f0f0;
  21129. }
  21130. .group_title {
  21131. display: flex;
  21132. align-items: center;
  21133. justify-content: space-between;
  21134. }
  21135. .group_name {
  21136. background-image: url(../../assets/icon/groupN.png);
  21137. width: 220px;
  21138. background-size: 100% 100%;
  21139. height: 67px;
  21140. padding: 0 20px 0 43px;
  21141. box-sizing: border-box;
  21142. line-height: 63px;
  21143. color: #fff;
  21144. overflow: hidden;
  21145. white-space: nowrap;
  21146. text-overflow: ellipsis;
  21147. }
  21148. .group_work {
  21149. width: 100%;
  21150. padding: 0 10px;
  21151. box-sizing: border-box;
  21152. display: flex;
  21153. flex-wrap: wrap;
  21154. }
  21155. .g_d_box {
  21156. display: flex;
  21157. flex-flow: wrap;
  21158. justify-content: space-around;
  21159. }
  21160. .g_d_box .isChair {
  21161. background-image: url(../../assets/avatar.png) !important;
  21162. }
  21163. .g_d_group {
  21164. width: 500px;
  21165. margin-bottom: 80px;
  21166. }
  21167. .g_d_group_chair {
  21168. display: flex;
  21169. align-items: center;
  21170. justify-content: center;
  21171. }
  21172. .g_d_group_chair > div + div {
  21173. margin-left: 30px;
  21174. }
  21175. .g_d_group_chair > div,
  21176. .g_d_group_chair2 > div {
  21177. display: flex;
  21178. flex-direction: column;
  21179. align-items: center;
  21180. }
  21181. .g_d_group_chair > div > span:nth-child(1),
  21182. .g_d_group_chair2 > div > span:nth-child(1) {
  21183. background-image: url(../../assets/icon/chair.png);
  21184. width: 50px;
  21185. height: 50px;
  21186. display: block;
  21187. background-size: 100% 100%;
  21188. }
  21189. .g_d_group_tableBox {
  21190. display: flex;
  21191. align-items: center;
  21192. justify-content: center;
  21193. }
  21194. .g_d_group_chair2 {
  21195. display: flex;
  21196. flex-direction: column;
  21197. align-items: center;
  21198. justify-content: center;
  21199. }
  21200. .g_d_group_chair2 > div + div {
  21201. margin-top: 10px;
  21202. }
  21203. .g_d_group_table {
  21204. background-image: url(../../assets/icon/groupBg.png);
  21205. width: 354px;
  21206. height: 196px;
  21207. background-size: 100% 100%;
  21208. display: flex;
  21209. align-items: center;
  21210. justify-content: center;
  21211. flex-direction: column;
  21212. color: #fff;
  21213. }
  21214. .g_d_group_table > div:nth-child(1) {
  21215. font-size: 24px;
  21216. margin-bottom: 5px;
  21217. }
  21218. .g_d_group_table > div:nth-child(2) div {
  21219. cursor: pointer;
  21220. background: #2e77bf;
  21221. padding: 4px 10px;
  21222. border-radius: 5px;
  21223. }
  21224. .groupBox {
  21225. }
  21226. .groupContent + .groupContent {
  21227. margin-top: 30px;
  21228. }
  21229. .groupTitle {
  21230. font-size: 24px;
  21231. color: rgb(80, 80, 80);
  21232. margin-bottom: 20px;
  21233. }
  21234. .groupName {
  21235. display: flex;
  21236. align-items: center;
  21237. }
  21238. .groupn {
  21239. font-size: 15px;
  21240. margin-right: 10px;
  21241. }
  21242. .groupName + .groupName {
  21243. margin-top: 15px;
  21244. }
  21245. .groupBtn {
  21246. margin-left: 10px;
  21247. }
  21248. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  21249. text-align: left;
  21250. }
  21251. .g_d_btnBox {
  21252. display: flex;
  21253. justify-content: flex-end;
  21254. align-items: flex-end;
  21255. margin-bottom: 20px;
  21256. }
  21257. .updateChair {
  21258. position: relative;
  21259. }
  21260. .updateChairBtn {
  21261. position: absolute;
  21262. width: 50px;
  21263. height: 50px;
  21264. overflow: hidden;
  21265. /* display: flex; */
  21266. align-items: center;
  21267. justify-content: center;
  21268. background: #00000087;
  21269. color: #fff;
  21270. border-radius: 50px;
  21271. display: none;
  21272. cursor: pointer;
  21273. }
  21274. .updateChair:hover .updateChairBtn {
  21275. display: flex;
  21276. }
  21277. .group_staic_box {
  21278. display: flex;
  21279. padding: 30px 40px 10px;
  21280. flex-wrap: wrap;
  21281. }
  21282. .group_staic {
  21283. /* width: 50%; */
  21284. margin-bottom: 20px;
  21285. display: flex;
  21286. align-items: center;
  21287. }
  21288. .group_staic span:nth-child(1) {
  21289. width: 150px;
  21290. text-align: right;
  21291. margin-right: 15px;
  21292. }
  21293. .group_staic span:nth-child(2) {
  21294. background: rgb(0 123 255);
  21295. color: #fff;
  21296. border-radius: 5px;
  21297. padding: 5px;
  21298. }
  21299. .codeFileBox {
  21300. height: 300px;
  21301. background: #fff;
  21302. display: flex;
  21303. align-items: center;
  21304. justify-content: center;
  21305. }
  21306. .codeFileBox img {
  21307. width: 200px;
  21308. margin: 0;
  21309. height: auto;
  21310. }
  21311. .codeFileBox div {
  21312. background: rgb(80, 142, 226);
  21313. color: #fff;
  21314. padding: 10px 20px;
  21315. border-radius: 25px;
  21316. cursor: pointer;
  21317. margin-left: 15px;
  21318. }
  21319. .radioBox {
  21320. display: flex;
  21321. flex-direction: column;
  21322. flex-wrap: nowrap;
  21323. align-items: flex-start;
  21324. }
  21325. .radioBox > div {
  21326. margin: 10px 0 0 10px;
  21327. }
  21328. /* .radioBox >>> .el-radio__input,
  21329. .radioBox >>> .el-checkbox__inner {
  21330. margin-left: 10px;
  21331. } */
  21332. .radioBox >>> .el-radio__label,
  21333. .radioBox >>> .el-checkbox__label {
  21334. display: flex;
  21335. align-items: center;
  21336. }
  21337. .radioBox >>> .el-radio__label > span {
  21338. width: 100%;
  21339. display: -webkit-box;
  21340. overflow: hidden;
  21341. white-space: normal !important;
  21342. text-overflow: ellipsis;
  21343. word-wrap: break-word;
  21344. }
  21345. .inImg {
  21346. width: 100px;
  21347. cursor: pointer;
  21348. }
  21349. .inImg > img {
  21350. width: 100%;
  21351. height: 100%;
  21352. object-fit: cover;
  21353. }
  21354. .timuImgBox {
  21355. margin: 10px 0;
  21356. display: flex;
  21357. flex-direction: column;
  21358. flex-wrap: wrap;
  21359. align-items: flex-start;
  21360. }
  21361. .timuImg {
  21362. width: 150px;
  21363. margin: 5px 0;
  21364. cursor: pointer;
  21365. }
  21366. .timuImg > img {
  21367. width: 100%;
  21368. height: 100%;
  21369. object-fit: cover;
  21370. }
  21371. .worksTop {
  21372. display: flex;
  21373. flex-direction: row;
  21374. align-items: flex-end;
  21375. }
  21376. .corOpen {
  21377. margin: 0 0 0 10px;
  21378. font-size: 14px;
  21379. cursor: pointer;
  21380. color: #505050;
  21381. }
  21382. .corOpen:hover {
  21383. color: #499eef;
  21384. }
  21385. .navCorOpenBox {
  21386. display: flex;
  21387. flex-direction: row;
  21388. align-items: center;
  21389. justify-content: space-between;
  21390. height: 55px;
  21391. background: #ffffff;
  21392. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  21393. border-radius: 8px 8px 0px 0px;
  21394. z-index: 9;
  21395. position: relative;
  21396. }
  21397. .navCorOpen {
  21398. padding-right: 15px;
  21399. cursor: pointer;
  21400. width: 45px;
  21401. display: flex;
  21402. }
  21403. .navCorOpen > img {
  21404. width: 100%;
  21405. height: 100%;
  21406. }
  21407. .mlImg {
  21408. width: 45px !important;
  21409. min-width: 45px;
  21410. cursor: pointer;
  21411. margin-top: 5px;
  21412. }
  21413. .mlImg > img {
  21414. width: 100%;
  21415. height: 100%;
  21416. }
  21417. .navLeftCss {
  21418. width: 100% !important;
  21419. left: 0 !important;
  21420. }
  21421. .isContentCss {
  21422. width: 100% !important;
  21423. }
  21424. .isAllWidth {
  21425. width: 100% !important;
  21426. }
  21427. .toolBoxSteps {
  21428. position: absolute;
  21429. top: 50%;
  21430. transform: translateY(-50%);
  21431. cursor: pointer;
  21432. width: 60px;
  21433. display: flex;
  21434. align-items: center;
  21435. justify-content: center;
  21436. }
  21437. .toolBoxSteps:nth-child(1) > img,
  21438. .toolBoxSteps:nth-child(2) > img {
  21439. width: 24px;
  21440. }
  21441. .toolBoxSteps:nth-child(1) {
  21442. left: 0;
  21443. }
  21444. .toolBoxSteps:nth-child(2) {
  21445. right: 0;
  21446. }
  21447. .isChooseActive {
  21448. color: #3681fc !important;
  21449. font-weight: bold !important;
  21450. }
  21451. .tool_box {
  21452. width: 100%;
  21453. }
  21454. .tool_type_box {
  21455. display: flex;
  21456. flex-direction: row;
  21457. align-items: baseline;
  21458. flex-wrap: nowrap;
  21459. justify-content: flex-start;
  21460. position: relative;
  21461. }
  21462. .toolSort {
  21463. display: flex;
  21464. flex-direction: row;
  21465. flex-wrap: wrap;
  21466. justify-content: flex-start;
  21467. align-items: flex-start;
  21468. }
  21469. .toolSort > div {
  21470. margin: 0 45px 0 0;
  21471. width: auto;
  21472. }
  21473. .tools {
  21474. width: 100%;
  21475. display: flex;
  21476. flex-direction: column;
  21477. flex-wrap: nowrap;
  21478. align-items: flex-start;
  21479. }
  21480. .whiteBIcon {
  21481. width: 80px;
  21482. cursor: pointer;
  21483. display: flex;
  21484. flex-direction: column;
  21485. flex-wrap: nowrap;
  21486. align-items: center;
  21487. font-size: 14px;
  21488. }
  21489. .whiteBIcon > img {
  21490. width: 100%;
  21491. height: 100%;
  21492. }
  21493. .whiteBIcon > img {
  21494. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  21495. border-radius: 15px;
  21496. }
  21497. .dia_tool_box {
  21498. display: flex;
  21499. flex-wrap: wrap;
  21500. width: 100%;
  21501. }
  21502. .dia_tool_box > div {
  21503. margin-right: 40px;
  21504. }
  21505. .check {
  21506. /* width: 20px;
  21507. height: 20px; */
  21508. cursor: pointer;
  21509. margin: 10px 0;
  21510. }
  21511. .checkDiv {
  21512. display: flex;
  21513. align-items: center;
  21514. }
  21515. .checkDiv span {
  21516. margin-left: 5px;
  21517. color: #858585;
  21518. }
  21519. .check img {
  21520. width: 20px;
  21521. height: 20px;
  21522. }
  21523. .fileC_box > .fileC_title {
  21524. padding: 10px 5px;
  21525. border-top: 1px solid #cdcdcd;
  21526. font-size: 14px;
  21527. color: #868686;
  21528. width: 88%;
  21529. margin: 0 auto;
  21530. }
  21531. .pl_select_box {
  21532. height: 40px;
  21533. line-height: 40px;
  21534. width: 100%;
  21535. cursor: pointer;
  21536. padding: 0 20px;
  21537. box-sizing: border-box;
  21538. border-radius: 5px;
  21539. border: 1px solid #d6d6d6;
  21540. white-space: nowrap;
  21541. overflow: hidden;
  21542. text-overflow: ellipsis;
  21543. background: #fff;
  21544. text-align: left;
  21545. }
  21546. .stageBoxCss {
  21547. display: flex;
  21548. flex-direction: row;
  21549. flex-wrap: nowrap;
  21550. align-items: center;
  21551. height: 50px;
  21552. border-bottom: 1px solid #e2f5fc;
  21553. cursor: pointer;
  21554. }
  21555. .stageChild,
  21556. .toolChild {
  21557. height: 0;
  21558. overflow: hidden;
  21559. transition: all 0.5s;
  21560. }
  21561. .toolChild {
  21562. margin: 0 0 0 17px;
  21563. padding: 0 0 0 20px;
  21564. border-left: 1px solid #d7d7d7;
  21565. }
  21566. .gjCss {
  21567. display: flex;
  21568. flex-direction: row;
  21569. flex-wrap: nowrap;
  21570. align-items: center;
  21571. padding: 15px 0;
  21572. box-sizing: border-box;
  21573. font-size: 14px;
  21574. cursor: pointer;
  21575. }
  21576. .toolChild > div {
  21577. position: relative;
  21578. }
  21579. .toolChild > div::before {
  21580. content: "";
  21581. width: 15px;
  21582. height: 1px;
  21583. background: #cad1dc;
  21584. position: absolute;
  21585. top: 24px;
  21586. left: -20px;
  21587. display: block;
  21588. }
  21589. .isGjCss {
  21590. color: #0061ff;
  21591. }
  21592. .navItem {
  21593. background: #ffffff;
  21594. border-radius: 4px;
  21595. width: 100%;
  21596. margin: 10px auto 0;
  21597. position: relative;
  21598. height: 48px;
  21599. display: flex;
  21600. flex-direction: row;
  21601. flex-wrap: nowrap;
  21602. align-items: center;
  21603. }
  21604. .navItemList {
  21605. display: flex;
  21606. flex-direction: row;
  21607. flex-wrap: nowrap;
  21608. align-items: center;
  21609. padding: 18px 13px;
  21610. cursor: pointer;
  21611. font-size: 16px;
  21612. font-weight: 400;
  21613. color: #0e1e33;
  21614. justify-content: flex-start;
  21615. width: 100%;
  21616. border-radius: 8px;
  21617. }
  21618. .navItemList > div {
  21619. font-size: 16px;
  21620. font-weight: 400;
  21621. }
  21622. .navItemList > div:first-child {
  21623. min-width: 60px;
  21624. }
  21625. .navItemList > div:last-child {
  21626. display: -webkit-box;
  21627. overflow: hidden;
  21628. white-space: normal !important;
  21629. text-overflow: ellipsis;
  21630. word-wrap: break-word;
  21631. -webkit-line-clamp: 2;
  21632. -webkit-box-orient: vertical;
  21633. }
  21634. /* .isItemList {
  21635. background: #3681fc;
  21636. }
  21637. .isItemList>div {
  21638. color: #fff;
  21639. } */
  21640. .isItemList{
  21641. color: #0061ff !important;
  21642. }
  21643. .navListItem {
  21644. width: 280px;
  21645. height: 50px;
  21646. margin: 0px auto 10px;
  21647. display: flex;
  21648. flex-direction: row;
  21649. flex-wrap: nowrap;
  21650. align-items: center;
  21651. justify-content: space-between;
  21652. background: #f0f4fa;
  21653. border-radius: 6px 6px 6px 6px;
  21654. }
  21655. .downIcon {
  21656. width: 20px;
  21657. min-width: 20px;
  21658. height: 20px;
  21659. margin-right: 15px;
  21660. cursor: pointer;
  21661. }
  21662. .downIcon > img {
  21663. width: 100%;
  21664. height: 100%;
  21665. }
  21666. .newButton {
  21667. width: 102px;
  21668. height: 36px;
  21669. background: #e7ebf1;
  21670. border-radius: 4px;
  21671. color: #0e1e33;
  21672. font-weight: 400;
  21673. font-size: 14px;
  21674. border: none;
  21675. float: right;
  21676. margin-left: 10px;
  21677. }
  21678. .pick_box {
  21679. display: flex;
  21680. align-items: flex-start;
  21681. flex-wrap: wrap;
  21682. }
  21683. .selectBox {
  21684. width: 110px;
  21685. margin-left: 10px;
  21686. margin: 0 10px 0 auto;
  21687. }
  21688. .selectBox >>> .el-input__inner {
  21689. height: 30px;
  21690. line-height: 30px;
  21691. }
  21692. .selectBox >>> .el-input__icon {
  21693. line-height: 30px;
  21694. }
  21695. .sentenceTitle {
  21696. display: flex;
  21697. flex-direction: row;
  21698. flex-wrap: nowrap;
  21699. align-items: center;
  21700. }
  21701. .sentenceTitle::before {
  21702. content: attr(index);
  21703. background: #3681fc;
  21704. border-radius: 50%;
  21705. color: #fff;
  21706. width: 25px;
  21707. height: 25px;
  21708. min-width: 25px;
  21709. min-height: 25px;
  21710. text-align: center;
  21711. line-height: 25px;
  21712. margin-right: 5px;
  21713. }
  21714. .closeTri1 {
  21715. min-width: 15px;
  21716. width: 15px;
  21717. height: 15px;
  21718. }
  21719. .closeTri1 {
  21720. padding-left: 10px;
  21721. cursor: pointer;
  21722. }
  21723. .closeTri1 > img {
  21724. width: 100%;
  21725. height: 100%;
  21726. }
  21727. </style>