studyStudent.vue 733 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <div class="btnAllNT">
  14. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  15. <img
  16. src="../assets/icon/learn/addTool.png"
  17. @click="openToolAll"
  18. style="position: relative"
  19. />
  20. </div>
  21. <div
  22. class="pButton"
  23. style="left: 0; top: 140px"
  24. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  25. @click="setContent2(true)"
  26. >
  27. <!-- 批 , getCourseDetail()-->
  28. <img
  29. src="../assets/icon/newIcons/isRight.png"
  30. style="width: 45px"
  31. alt=""
  32. />
  33. </div>
  34. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  35. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  36. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  37. <div class="courseTitle">
  38. <div
  39. style="
  40. max-width: calc(100% - 40px);
  41. width: auto;
  42. white-space: nowrap;
  43. overflow: hidden;
  44. text-overflow: ellipsis;
  45. word-break: break-word;
  46. display: block;
  47. "
  48. >
  49. <el-tooltip
  50. effect="light"
  51. :content="courseDetail.title"
  52. placement="top"
  53. >
  54. <div class="ctitle">
  55. {{ courseDetail.title }}
  56. </div>
  57. </el-tooltip>
  58. </div>
  59. <el-tooltip effect="light" content="收缩" placement="top">
  60. <div class="mlImg" @click="setContent2(false)">
  61. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  62. </div>
  63. </el-tooltip>
  64. </div>
  65. <div
  66. class="inviteBox"
  67. v-if="tcid && inviteCode"
  68. style="padding: 0 0 15px 0"
  69. >
  70. <div>
  71. <span>随机码:{{ inviteCode }}</span>
  72. </div>
  73. </div>
  74. </div>
  75. <div class="cru_selectBox">
  76. <div
  77. style="background: #fff; margin: 0 10px; border-radius: 8px"
  78. v-for="(item, stageIndex) in navList"
  79. :key="stageIndex"
  80. >
  81. <div
  82. class="stageBoxCss"
  83. @click="get(stageIndex)"
  84. :class="{ stageBoxIsCss: item.isOpen }"
  85. >
  86. <div class="stageItemTitle">
  87. <div>阶段{{ stageIndex + 1 }}</div>
  88. <el-tooltip
  89. effect="light"
  90. :content="item.dyName"
  91. placement="top"
  92. >
  93. <div>
  94. {{ item.dyName }}
  95. </div>
  96. </el-tooltip>
  97. </div>
  98. <div class="closeTri" v-if="item.isOpen">
  99. <img src="../assets/icon/newIcons/downC.png" alt />
  100. </div>
  101. <div class="closeTri" v-else>
  102. <img src="../assets/icon/newIcons/right.png" alt />
  103. </div>
  104. </div>
  105. <div class="stageChild" :class="{ navActive: item.isOpen }">
  106. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  107. <div
  108. class="navItem"
  109. :class="{
  110. openTaskActive:
  111. navIndex == taskCount &&
  112. nav.id == navId &&
  113. stageIndex == courseType,
  114. }"
  115. >
  116. <div v-if="nav.tool[0].tool != undefined">
  117. <div
  118. class="closeTri1"
  119. v-if="nav.isOpen"
  120. @click="openTask(stageIndex, navIndex, nav.id)"
  121. >
  122. <img src="../assets/icon/newIcons/bDown.png" alt />
  123. </div>
  124. <div
  125. class="closeTri1"
  126. v-else
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img src="../assets/icon/newIcons/right.png" alt />
  130. </div>
  131. </div>
  132. <div v-else class="noToolBlue"></div>
  133. <div
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. class="navItemList"
  136. :class="{
  137. isItemList:
  138. navIndex == taskCount &&
  139. nav.id == navId &&
  140. stageIndex == courseType,
  141. }"
  142. >
  143. <div>任务{{ navIndex + 1 }}:</div>
  144. <el-tooltip
  145. effect="light"
  146. :content="nav.taskName"
  147. placement="top"
  148. >
  149. <div
  150. :style="{
  151. width:
  152. IsLookOpen &&
  153. !(
  154. navIndex == taskCount &&
  155. nav.id == navId &&
  156. stageIndex == courseType
  157. )
  158. ? 'calc(100% - 75px)'
  159. : 'auto',
  160. }"
  161. >
  162. {{ nav.taskName }}
  163. </div>
  164. </el-tooltip>
  165. </div>
  166. <div class="lockTaskIcon">
  167. <img
  168. src="../assets/lock.png"
  169. v-if="IsLookOpen && !nav.isLook"
  170. alt=""
  171. />
  172. </div>
  173. </div>
  174. <div
  175. v-if="nav.tool[0].tool != undefined"
  176. class="toolChild"
  177. :class="{ toolActive: nav.isOpen }"
  178. >
  179. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  180. <div
  181. class="gjCss"
  182. :class="{ isGjCss: t.isTool }"
  183. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  184. >
  185. <div>工具{{ toolIndex + 1 }}:</div>
  186. <div v-if="t.tool == 58">模拟驾驶</div>
  187. <div v-if="t.tool == 59">路径搜索</div>
  188. <div v-if="t.tool == 60">深度学习</div>
  189. <div v-if="t.tool == 10">倒计时</div>
  190. <div v-if="t.tool == 65">挑人</div>
  191. <div v-if="t.tool == 7">思维网格</div>
  192. <div v-if="t.tool == 1">电子白板</div>
  193. <div v-if="t.tool == 52">文档</div>
  194. <div v-if="t.tool == 3">思维导图</div>
  195. <div v-if="t.tool == 48">表格</div>
  196. <div v-if="t.tool == 49">学生分组</div>
  197. <div v-if="t.tool == 4">问卷调查</div>
  198. <div v-if="t.tool == 45">选择题</div>
  199. <div v-if="t.tool == 15">问答</div>
  200. <div v-if="t.tool == 16">作业提交</div>
  201. <div v-if="t.tool == 50">批量上传</div>
  202. <div v-if="t.tool == 41">选择匹配</div>
  203. <div v-if="t.tool == 47">排序</div>
  204. <div v-if="t.tool == 40">个人评价</div>
  205. <div v-if="t.tool == 18">训练平台</div>
  206. <div v-if="t.tool == 21">AIoT Blockly</div>
  207. <div v-if="t.tool == 23">AI Python</div>
  208. <div v-if="t.tool == 24">AI Blockly</div>
  209. <div v-if="t.tool == 32">源码编辑</div>
  210. <div v-if="t.tool == 57">CocoPi</div>
  211. <div v-if="t.tool == 63">海龟编程</div>
  212. <div v-if="t.tool == 28">翻译</div>
  213. <div v-if="t.tool == 31">数字画板</div>
  214. <div v-if="t.tool == 39">GeoGebra</div>
  215. <div v-if="t.tool == 66">公式编辑</div>
  216. <div v-if="t.tool == 67">分子结构</div>
  217. <div v-if="t.tool == 68">时间轴</div>
  218. <div v-if="t.tool == 25">目标管理</div>
  219. <div v-if="t.tool == 26">课程设计</div>
  220. <div v-if="t.tool == 62">交互视频</div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. </div>
  228. </div>
  229. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  230. <div class="new_topFixed"></div>
  231. <div class="new_top" :class="{ navLeftCss: !mlDialog }">
  232. <div class="courseIndex">
  233. <div>任务{{ taskCount + 1 }}</div>
  234. <el-tooltip
  235. effect="light"
  236. :content="
  237. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  238. "
  239. placement="top"
  240. >
  241. <div>
  242. {{
  243. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  244. .task
  245. }}
  246. </div>
  247. </el-tooltip>
  248. </div>
  249. <div class="btnAll">
  250. <div class="btnLeft">
  251. <el-tooltip effect="light" content="刷新" placement="top">
  252. <div class="reBtnIcon" @click="refreshCourse">
  253. <span>刷新</span>
  254. </div>
  255. </el-tooltip>
  256. <el-tooltip effect="light" content="评论" placement="top">
  257. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  258. <span>评论</span>
  259. </div>
  260. </el-tooltip>
  261. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  262. <el-tooltip effect="light" content="录制" placement="top">
  263. <div class="vedioIcon" @click="startRecording">
  264. <span>录制</span>
  265. </div>
  266. </el-tooltip>
  267. </div>
  268. <div v-else-if="tType == 1 || tType == 4">
  269. <el-tooltip effect="light" content="下载" placement="top">
  270. <div class="vedioIcon1" @click="stopRecording">
  271. <span>下载</span>
  272. </div>
  273. </el-tooltip>
  274. </div>
  275. </div>
  276. <div class="btnRight">
  277. <div
  278. class="last"
  279. @click="nextOrpreSteps(0)"
  280. v-if="!(IsFollow && tType == 2)"
  281. @mouseover="isHovered = true"
  282. @mouseout="isHovered = false"
  283. >
  284. <div class="lastImg">
  285. <img
  286. :src="
  287. isHovered
  288. ? require('../assets/icon/newIcons/whiteLast.png')
  289. : require('../assets/icon/newIcons/last.png')
  290. "
  291. alt=""
  292. />
  293. </div>
  294. <div class="lastText">上一步</div>
  295. </div>
  296. <div
  297. class="last"
  298. @click="nextOrpreSteps(1)"
  299. v-if="!(IsFollow && tType == 2)"
  300. @mouseover="isHovered1 = true"
  301. @mouseout="isHovered1 = false"
  302. >
  303. <div class="lastText">下一步</div>
  304. <div class="lastImg">
  305. <img
  306. :src="
  307. isHovered1
  308. ? require('../assets/icon/newIcons/whiteNext.png')
  309. : require('../assets/icon/newIcons/next.png')
  310. "
  311. alt=""
  312. />
  313. </div>
  314. </div>
  315. <div
  316. class="last"
  317. @click="juriVisible = true"
  318. v-if="tType == 1"
  319. @mouseover="isHovered2 = true"
  320. @mouseout="isHovered2 = false"
  321. >
  322. <div class="lastImg">
  323. <img
  324. :src="
  325. isHovered2
  326. ? require('../assets/icon/newIcons/whiteLock.png')
  327. : require('../assets/icon/newIcons/lock.png')
  328. "
  329. alt=""
  330. />
  331. </div>
  332. <div class="lastText">权限</div>
  333. </div>
  334. <div
  335. class="returnBtn1 returnIcon"
  336. @click.stop="
  337. goTo(
  338. '/courseDetail?userid=' +
  339. userid +
  340. '&oid=' +
  341. oid +
  342. '&org=' +
  343. org +
  344. '&cid=' +
  345. classId +
  346. '&courseId=' +
  347. id +
  348. '&tType=' +
  349. tType +
  350. '&screenType=' +
  351. screenType
  352. )
  353. "
  354. >
  355. <div class="lastImg">
  356. <img src="../assets/icon/newIcon/return.png" alt="" />
  357. </div>
  358. <div class="lastText" style="color: #000">返回</div>
  359. </div>
  360. </div>
  361. <!-- <div
  362. class="returnBtn lockIcon"
  363. @click="juriVisible = true"
  364. v-if="tType == 1"
  365. >
  366. 权限
  367. </div>
  368. <div
  369. class="returnBtn vedioIcon"
  370. @click="startRecording"
  371. v-if="!videoStart && (tType == 1 || tType == 4)"
  372. >
  373. 录制
  374. </div>
  375. <div
  376. class="returnBtn"
  377. @click="stopRecording"
  378. v-else-if="tType == 1 || tType == 4"
  379. style="background: #ee5255"
  380. >
  381. 下载
  382. </div>
  383. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  384. 评论
  385. </div>
  386. <div
  387. class="returnBtn"
  388. @click="nextOrpreSteps(0)"
  389. v-if="!(IsFollow && tType == 2)"
  390. >
  391. 上一步
  392. </div>
  393. <div
  394. class="returnBtn"
  395. @click="nextOrpreSteps(1)"
  396. v-if="!(IsFollow && tType == 2)"
  397. >
  398. 下一步
  399. </div>
  400. <div class="returnBtn" @click="refreshCourse">刷新</div>
  401. <div
  402. class="returnBtn returnIcon"
  403. @click.stop="
  404. goTo(
  405. '/courseDetail?userid=' +
  406. userid +
  407. '&oid=' +
  408. oid +
  409. '&org=' +
  410. org +
  411. '&cid=' +
  412. classId +
  413. '&courseId=' +
  414. id +
  415. '&tType=' +
  416. tType +
  417. '&screenType=' +
  418. screenType
  419. )
  420. "
  421. >
  422. 返回
  423. </div> -->
  424. </div>
  425. </div>
  426. <div
  427. class="isNoMessage"
  428. v-if="
  429. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  430. .chapterData.length == 0 &&
  431. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  432. .toolChoose[0].tool.length == 0 &&
  433. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  434. .taskDetail == '' &&
  435. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  436. .eList &&
  437. !(
  438. courseDetail.userid == userid ||
  439. (courseDetail.course_teacher &&
  440. courseDetail.course_teacher.indexOf(userid) != -1)
  441. )
  442. "
  443. >
  444. <img src="../assets/icon/isNoMessage.png" alt />
  445. </div>
  446. <div class="study_top" :class="{ pzClass: pzDialog }">
  447. <div
  448. class="vedioBox"
  449. v-if="
  450. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  451. .taskDetail != '' ||
  452. vChapterData[taskCount].length > 0 ||
  453. fileC[taskCount].length > 0
  454. "
  455. style="border-radius: 0 0 20px 20px"
  456. >
  457. <div
  458. class="taskBox"
  459. v-if="
  460. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  461. .taskDetail != ''
  462. "
  463. >
  464. <div
  465. style="
  466. display: flex;
  467. flex-wrap: nowrap;
  468. flex-direction: column;
  469. position: relative;
  470. "
  471. >
  472. <div
  473. style="
  474. padding: 15px 0;
  475. line-height: 29px;
  476. font-size: 18px;
  477. color: #0e1e33;
  478. "
  479. class="cont"
  480. v-if="
  481. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  482. .taskDetail != ''
  483. "
  484. v-html="
  485. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  486. .taskDetail
  487. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  488. taskCount
  489. ].taskDetail
  490. : '暂无描述'
  491. "
  492. ></div>
  493. </div>
  494. </div>
  495. <div
  496. class="student_head"
  497. v-if="
  498. vChapterData[taskCount].length > 0 ||
  499. fileC[taskCount].length > 0
  500. "
  501. >
  502. <div class="vedioTaskBox">
  503. <div
  504. :class="
  505. contentDialog == false
  506. ? 'box_course isContentCss'
  507. : 'box_course'
  508. "
  509. v-if="
  510. vChapterData.length > 0 &&
  511. vChapterData[taskCount] &&
  512. showType !== ''
  513. "
  514. >
  515. <div class="wheel" style="height: auto" v-if="showType === 0">
  516. <div
  517. class="workd_media"
  518. style="height: 650px; width: calc(100% - 50px)"
  519. >
  520. <video-player
  521. class="video-player vjs-custom-skin"
  522. :class="contentDialog == false ? 'isAllWidth' : ''"
  523. :playsinline="true"
  524. :options="playerO[taskCount]"
  525. @play="onPlayerPlay($event)"
  526. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  527. ></video-player>
  528. </div>
  529. </div>
  530. <div
  531. class="wheel"
  532. v-if="showType == 1"
  533. style="
  534. box-shadow: 0 0 6px 1px #f2f2f2;
  535. width: 95%;
  536. margin: 0 auto;
  537. background: #f1f1f1;
  538. "
  539. >
  540. <div class="title">查看文档</div>
  541. <el-form class="textBox">
  542. <el-form-item class="textTitle">
  543. <div style="font-size: 22px">
  544. {{ text.name }}
  545. </div>
  546. </el-form-item>
  547. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  548. <div v-html="text.url" class="textContent cont"></div>
  549. </el-form>
  550. </div>
  551. <div
  552. class="wheel"
  553. v-if="
  554. pptImgUrl1.indexOf(
  555. 'https://view.officeapps.live.com/op/view.aspx?src='
  556. ) != -1 && showType == 2
  557. "
  558. style="width: 95%; margin: 0 auto"
  559. >
  560. <iframe
  561. style="width: 100%; height: 100%; border: none"
  562. :src="pptImgUrl1"
  563. ></iframe>
  564. </div>
  565. <div
  566. class="wheel"
  567. v-else-if="showType == 2"
  568. style="width: 95%; margin: 0 auto"
  569. >
  570. <iframe
  571. style="width: 100%; height: 100%; border: none"
  572. security="restricted"
  573. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  574. :src="pptImgUrl1"
  575. ></iframe>
  576. </div>
  577. <div
  578. class="wheel"
  579. v-if="showType == 3"
  580. style="width: 95%; margin: 0 auto"
  581. >
  582. <pdf
  583. :pdfUrl="pptImgUrl1"
  584. style="width: 100%; height: 100%; overflow: auto"
  585. ></pdf>
  586. </div>
  587. <div
  588. class="wheel"
  589. v-if="showType == 4"
  590. style="width: 95%; margin: 0 auto"
  591. >
  592. <el-image
  593. :src="pptImgUrl1"
  594. fit="contain"
  595. style="width: 100%; height: 100%; cursor: pointer"
  596. @click="previewImg(pptImgUrl1)"
  597. ></el-image>
  598. </div>
  599. </div>
  600. <div
  601. class="pButton"
  602. style="position: absolute; right: 20px; top: 0; z-index: 998"
  603. v-if="!contentDialog"
  604. @click="setContent(true)"
  605. >
  606. <!-- 批 -->
  607. <img
  608. src="../assets/icon/newIcons/isLeft.png"
  609. style="width: 45px"
  610. alt=""
  611. />
  612. </div>
  613. <div
  614. v-if="contentDialog == true"
  615. :style="{
  616. width:
  617. (vChapterData[taskCount].length > 0 ||
  618. fileC[taskCount].length > 0) &&
  619. showType === ''
  620. ? 'calc(100%)'
  621. : '300px',
  622. margin:
  623. (vChapterData[taskCount].length > 0 ||
  624. fileC[taskCount].length > 0) &&
  625. showType === ''
  626. ? '0 15px'
  627. : '0 15px 0 0',
  628. }"
  629. >
  630. <div
  631. class="vedioList"
  632. v-if="
  633. vChapterData[taskCount].length > 0 ||
  634. fileC[taskCount].length > 0
  635. "
  636. style="height: 650px"
  637. >
  638. <div class="navCorOpenBox">
  639. <div class="navTitile">内容列表:</div>
  640. <div class="navCorOpen" @click="setContent(false)">
  641. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  642. </div>
  643. </div>
  644. <div class="navBox">
  645. <div
  646. v-show="
  647. vChapterData[taskCount].length > 0 ||
  648. fileC[taskCount].length > 0
  649. "
  650. style="padding: 10px 0 25px 0"
  651. >
  652. <div
  653. class="vedioTimeBox"
  654. v-for="(vitem, vindex) in vChapterData[taskCount]"
  655. :key="vindex + '1'"
  656. >
  657. <div class="navListItem" v-if="vitem.type == 2">
  658. <div
  659. @click="lookVedio(vitem.url, vindex)"
  660. class="navText"
  661. :class="isClickNav == vindex ? 'isClickNav' : ''"
  662. >
  663. <span v-if="vitem.text">{{ vitem.text }}-</span
  664. >{{ vitem.name }}
  665. </div>
  666. <div class="downIcon" @click="downloadFile2(vitem)">
  667. <img src="../assets/icon/newIcon/down.png" alt />
  668. </div>
  669. </div>
  670. <div class="navListItem" v-if="vitem.type == 6">
  671. <div
  672. @click="lookText(taskCount, vindex)"
  673. class="navText"
  674. :class="isClickNav == vindex ? 'isClickNav' : ''"
  675. >
  676. {{ vitem.name }}.doc
  677. </div>
  678. <div
  679. class="downIcon"
  680. @click="checkFileFull1(vitem.type, vitem)"
  681. >
  682. <img
  683. src="../assets/icon/newIcon/allScreen.png"
  684. alt
  685. />
  686. </div>
  687. </div>
  688. <div
  689. class="navListItem"
  690. v-if="vitem.type == 8 || vitem.type == 14"
  691. >
  692. <div
  693. @click="doUrl(vitem.url, vindex)"
  694. class="navText"
  695. :class="isClickNav == vindex ? 'isClickNav' : ''"
  696. >
  697. {{ vitem.title ? vitem.title : vitem.url }}
  698. </div>
  699. <div
  700. class="downIcon"
  701. @click="checkFileFull1(vitem.type, vitem)"
  702. >
  703. <img
  704. src="../assets/icon/newIcon/allScreen.png"
  705. alt
  706. />
  707. </div>
  708. </div>
  709. <div class="navListItem" v-if="vitem.type == 3">
  710. <div
  711. @click="downFile(vitem, vindex)"
  712. class="navText"
  713. :class="isClickNav == vindex ? 'isClickNav' : ''"
  714. >
  715. <span v-if="vitem.text">{{ vitem.text }}-</span
  716. >{{ vitem.name }}
  717. </div>
  718. <div class="downIcon" @click="downloadFile2(vitem)">
  719. <img src="../assets/icon/newIcon/down.png" alt />
  720. </div>
  721. <div
  722. class="downIcon"
  723. @click="checkFileFull1(vitem.type, vitem)"
  724. >
  725. <img
  726. src="../assets/icon/newIcon/allScreen.png"
  727. alt
  728. />
  729. </div>
  730. </div>
  731. <div class="navListItem" v-if="vitem.type == 12">
  732. <div class="navText" @click="downloadFile2(vitem)">
  733. <span v-if="vitem.text">{{ vitem.text }}-</span
  734. >{{ vitem.name }}
  735. </div>
  736. <div class="downIcon" @click="downloadFile2(vitem)">
  737. <img src="../assets/icon/newIcon/down.png" alt />
  738. </div>
  739. <div
  740. class="downIcon"
  741. @click="checkFileFull1(vitem.type, vitem)"
  742. >
  743. <img
  744. src="../assets/icon/newIcon/allScreen.png"
  745. alt
  746. />
  747. </div>
  748. </div>
  749. <div class="navListItem" v-if="vitem.type == 13">
  750. <div
  751. class="navText"
  752. @click="checkPhoto(vitem, vindex)"
  753. :class="isClickNav == vindex ? 'isClickNav' : ''"
  754. >
  755. {{ vitem.name }}
  756. </div>
  757. <div class="downIcon" @click="downloadFile2(vitem)">
  758. <img src="../assets/icon/newIcon/down.png" alt />
  759. </div>
  760. </div>
  761. </div>
  762. <div
  763. class="fileC_box"
  764. v-if="fileC[taskCount].length > 0"
  765. >
  766. <div class="fileC_title">以下文件不支持预览</div>
  767. <div
  768. class="vedioTimeBox"
  769. v-for="(vitem, vindex) in fileC[taskCount]"
  770. :key="vindex + '1'"
  771. >
  772. <div class="navListItem" v-if="vitem.type == 12">
  773. <div class="navText" style="color: #acb4bf">
  774. <span v-if="vitem.text">{{ vitem.text }}-</span
  775. >{{ vitem.name }}
  776. </div>
  777. <div
  778. class="downIcon"
  779. @click="downloadFile2(vitem)"
  780. >
  781. <img
  782. src="../assets/icon/newIcon/down.png"
  783. alt
  784. />
  785. </div>
  786. </div>
  787. </div>
  788. </div>
  789. </div>
  790. </div>
  791. </div>
  792. </div>
  793. </div>
  794. <div style="width: calc(100% - 315px)">
  795. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  796. <!-- <el-button
  797. type="primary"
  798. class="newButton"
  799. @click="checkFileFull(showType, pptImgUrl1)"
  800. >全屏查看</el-button
  801. >
  802. <el-button
  803. type="primary"
  804. class="newButton"
  805. @click="downloadFile(pptImgUrl1)"
  806. v-if="showType != 2"
  807. >文件下载</el-button
  808. > -->
  809. <el-button
  810. class="newButton"
  811. v-if="
  812. showType == 2 &&
  813. pptImgUrl1.indexOf(
  814. 'https://view.officeapps.live.com/op/view.aspx?src='
  815. ) == -1
  816. "
  817. type="primary"
  818. @click="openLine(pptImgUrl1)"
  819. >打开链接
  820. </el-button>
  821. </div>
  822. <!-- <div
  823. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  824. v-if="showType == 1"
  825. >
  826. <el-button
  827. type="primary"
  828. class="newButton"
  829. @click="checkFileFull(showType, text)"
  830. >全屏查看</el-button
  831. >
  832. </div> -->
  833. </div>
  834. </div>
  835. </div>
  836. <div class="student_body" v-resize="resize">
  837. <div
  838. class="vedioBox"
  839. :style="{
  840. borderRadius:
  841. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  842. .taskDetail == '' &&
  843. vChapterData[taskCount].length == 0 &&
  844. fileC[taskCount].length == 0
  845. ? '0 0 20px 20px'
  846. : '20px',
  847. }"
  848. v-if="
  849. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  850. .toolChoose[0].tool &&
  851. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  852. .toolChoose[0].tool.length > 0
  853. "
  854. >
  855. <div
  856. class="toolHeng2"
  857. style="position: relative"
  858. v-if="
  859. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  860. .toolChoose[0].tool &&
  861. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  862. .toolChoose[0].tool.length &&
  863. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  864. .toolChoose[0].tool.length > 0
  865. "
  866. >
  867. <div class="workNav">工作区</div>
  868. <div
  869. class="filebox"
  870. style="flex-wrap: nowrap"
  871. v-for="(tool, toolIndex) in chapInfoList[courseType]
  872. .chapterInfo[0].taskJson[taskCount].toolChoose"
  873. :key="toolIndex"
  874. >
  875. <div class="bzBox">
  876. <div class="yCss"></div>
  877. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  878. 步骤{{ toolIndex + 1 }}
  879. </div>
  880. <div
  881. v-if="timeWorkList[toolIndex].length > 0"
  882. style="margin: 0 0 0 10px"
  883. >
  884. {{
  885. timeWorkList[toolIndex][0].time
  886. ? "时间:" + timeWorkList[toolIndex][0].time
  887. : ""
  888. }}
  889. </div>
  890. </div>
  891. <div class="toolBox">
  892. <div>
  893. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  894. :key="indexTool"-->
  895. <!-- <div class="iframeBox">
  896. <div
  897. class="addPoint isBorder"
  898. v-for="(tooC, toolCIndex) in tool.tool"
  899. :key="toolCIndex"
  900. >
  901. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  902. <div
  903. class="iframeName"
  904. >
  905. 电子白板
  906. </div>
  907. <iframe
  908. src="https://iwb.cocorobo.cn/"
  909. ref="whiteBoard"
  910. ></iframe>
  911. </div>
  912. </div>
  913. </div>-->
  914. <div class="noiframeBox">
  915. <div
  916. class="addPoint"
  917. v-for="(tooC, toolCIndex) in tool.tool"
  918. :key="toolCIndex"
  919. >
  920. <div v-if="tooC == 1">
  921. <img
  922. src="../assets/icon/secondToolList/whiteBoard.png"
  923. alt
  924. @click="addTools(tooC, toolIndex, taskCount)"
  925. />
  926. <div style="margin: 5px 0">电子白板</div>
  927. </div>
  928. <div v-if="tooC == 3">
  929. <img
  930. src="../assets/icon/secondToolList/mindMapping.png"
  931. alt
  932. @click="addTools(tooC, toolIndex, taskCount)"
  933. />
  934. <div style="margin: 5px 0">思维导图</div>
  935. </div>
  936. <div v-if="tooC == 6">
  937. <img
  938. src="../assets/icon/secondToolList/doc.png"
  939. alt
  940. @click="addTools(tooC, toolIndex, taskCount)"
  941. />
  942. <div style="margin: 5px 0">协同文档</div>
  943. </div>
  944. <div v-if="tooC == 7">
  945. <img
  946. src="../assets/icon/secondToolList/mindNetwork.png"
  947. alt
  948. @click="addTools(tooC, toolIndex, taskCount)"
  949. />
  950. <div style="margin: 5px 0">思维网格</div>
  951. </div>
  952. <div v-if="tooC == 8">
  953. <img
  954. src="../assets/icon/secondToolList/library.png"
  955. alt
  956. @click="addTools(tooC, toolIndex, taskCount)"
  957. />
  958. <div style="margin: 5px 0">素材库</div>
  959. </div>
  960. <div v-if="tooC == 17">
  961. <img
  962. src="../assets/icon/secondToolList/library.png"
  963. alt
  964. @click="addTools(tooC, toolIndex, taskCount)"
  965. />
  966. <div style="margin: 5px 0">学习资料</div>
  967. </div>
  968. <div v-if="tooC == 2">
  969. <img
  970. @click="addTools(tooC, toolIndex, taskCount)"
  971. src="../assets/icon/secondToolList/note.png"
  972. alt
  973. />
  974. <div style="margin: 5px 0">便签</div>
  975. </div>
  976. <div v-if="tooC == 4">
  977. <img
  978. @click="addTools(tooC, toolIndex, taskCount)"
  979. src="../assets/icon/thirdToolList/ask.png"
  980. alt
  981. />
  982. <div style="margin: 5px 0">问卷调查</div>
  983. </div>
  984. <div v-if="tooC == 45">
  985. <img
  986. @click="addTools(tooC, toolIndex, taskCount)"
  987. src="../assets/icon/thirdToolList/choose.png"
  988. alt
  989. />
  990. <div style="margin: 5px 0">选择题</div>
  991. </div>
  992. <!-- <div v-if="tooC == 5">
  993. <img
  994. @click="addTools(tooC, toolIndex, taskCount)"
  995. src="../assets/icon/thirdToolList/score.png"
  996. alt
  997. />
  998. <div style="margin: 5px 0">量规评分</div>
  999. </div> -->
  1000. <div v-if="tooC == 10">
  1001. <img
  1002. @click="addTools(tooC, toolIndex, taskCount)"
  1003. src="../assets/icon/thirdToolList/time.png"
  1004. alt
  1005. />
  1006. <div style="margin: 5px 0">倒计时</div>
  1007. </div>
  1008. <div v-if="tooC == 15">
  1009. <img
  1010. @click="addTools(tooC, toolIndex, taskCount)"
  1011. src="../assets/icon/thirdToolList/answer.png"
  1012. alt
  1013. />
  1014. <div style="margin: 5px 0">问答</div>
  1015. </div>
  1016. <div v-if="tooC == 26">
  1017. <img
  1018. @click="addTools(tooC, toolIndex, taskCount)"
  1019. src="../assets/icon/thirdToolList/courseDesign.png"
  1020. alt
  1021. />
  1022. <div style="margin: 5px 0">课程设计</div>
  1023. </div>
  1024. <div v-if="tooC == 18">
  1025. <img
  1026. @click="addTools(tooC, toolIndex, taskCount)"
  1027. src="../assets/icon/thirdToolList/trainPlatform.png"
  1028. alt
  1029. />
  1030. <div style="margin: 5px 0">训练服务器</div>
  1031. </div>
  1032. <div v-if="tooC == 16">
  1033. <img
  1034. @click="addTools(tooC, toolIndex, taskCount)"
  1035. src="../assets/icon/thirdToolList/work.png"
  1036. alt
  1037. />
  1038. <div style="margin: 5px 0">作业提交</div>
  1039. </div>
  1040. <div v-if="tooC == 50">
  1041. <img
  1042. @click="addTools(tooC, toolIndex, taskCount)"
  1043. src="../assets/icon/thirdToolList/plwork.png"
  1044. alt
  1045. />
  1046. <div style="margin: 5px 0">批量上传</div>
  1047. </div>
  1048. <div v-if="tooC == 21">
  1049. <img
  1050. @click="addTools(tooC, toolIndex, taskCount)"
  1051. src="../assets/icon/fourthToolList/program.png"
  1052. alt
  1053. />
  1054. <div style="margin: 5px 0">AIoT Blockly</div>
  1055. </div>
  1056. <!-- <div v-if="tooC == 22">
  1057. <img
  1058. @click="addTools(tooC, toolIndex, taskCount)"
  1059. src="../assets/icon/fourthToolList/program.png"
  1060. alt
  1061. />
  1062. <div style="margin: 5px 0">AI体验</div>
  1063. </div> -->
  1064. <div v-if="tooC == 23">
  1065. <img
  1066. @click="addTools(tooC, toolIndex, taskCount)"
  1067. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1068. alt
  1069. />
  1070. <div style="margin: 5px 0">AI Python</div>
  1071. </div>
  1072. <div v-if="tooC == 24">
  1073. <img
  1074. @click="addTools(tooC, toolIndex, taskCount)"
  1075. src="../assets/icon/fourthToolList/AIprogram.png"
  1076. alt
  1077. />
  1078. <div style="margin: 5px 0">AI Blockly</div>
  1079. </div>
  1080. <div v-if="tooC == 25">
  1081. <img
  1082. @click="addTools(tooC, toolIndex, taskCount)"
  1083. src="../assets/icon/thirdToolList/evalua.png"
  1084. alt
  1085. />
  1086. <div style="margin: 5px 0">目标管理</div>
  1087. </div>
  1088. <div v-if="tooC == 31">
  1089. <img
  1090. @click="addTools(tooC, toolIndex, taskCount)"
  1091. src="../assets/icon/secondToolList/networkPanel.png"
  1092. alt
  1093. />
  1094. <div style="margin: 5px 0">数学画板</div>
  1095. </div>
  1096. <div v-if="tooC == 28">
  1097. <img
  1098. @click="addTools(tooC, toolIndex, taskCount)"
  1099. src="../assets/icon/secondToolList/translation.png"
  1100. alt
  1101. />
  1102. <div style="margin: 5px 0">翻译</div>
  1103. </div>
  1104. <div v-if="tooC == 37">
  1105. <img
  1106. @click="addTools(tooC, toolIndex, taskCount)"
  1107. src="../assets/icon/secondToolList/mohe.png"
  1108. alt
  1109. />
  1110. <div style="margin: 5px 0">魔盒识字</div>
  1111. </div>
  1112. <div v-if="tooC == 38">
  1113. <img
  1114. @click="addTools(tooC, toolIndex, taskCount)"
  1115. src="../assets/icon/secondToolList/24game.png"
  1116. alt
  1117. />
  1118. <div style="margin: 5px 0">24点</div>
  1119. </div>
  1120. <div v-if="tooC == 39">
  1121. <img
  1122. @click="addTools(tooC, toolIndex, taskCount)"
  1123. src="../assets/icon/secondToolList/GeoGebra.png"
  1124. alt
  1125. />
  1126. <div style="margin: 5px 0">GeoGebra</div>
  1127. </div>
  1128. <div v-if="tooC == 32">
  1129. <img
  1130. @click="addTools(tooC, toolIndex, taskCount)"
  1131. src="../assets/icon/thirdToolList/code.png"
  1132. alt
  1133. />
  1134. <div style="margin: 5px 0">源码编辑</div>
  1135. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1136. style="position: absolute;left: 110px;bottom: 30px;">
  1137. 上传文件
  1138. <input type="file" accept="*" style="display: none"
  1139. @change="beforeUpload1($event, 7, toolIndex)" />
  1140. </div> -->
  1141. </div>
  1142. <div v-if="tooC == 40">
  1143. <img
  1144. @click="addTools(tooC, toolIndex, taskCount)"
  1145. src="../assets/icon/secondToolList/eval.png"
  1146. alt
  1147. />
  1148. <div style="margin: 5px 0">个人评价</div>
  1149. </div>
  1150. <div v-if="tooC == 41">
  1151. <img
  1152. @click="addTools(tooC, toolIndex, taskCount)"
  1153. src="../assets/icon/thirdToolList/select.png"
  1154. alt
  1155. />
  1156. <div style="margin: 5px 0">选择匹配</div>
  1157. </div>
  1158. <div v-if="tooC == 44">
  1159. <img
  1160. @click="addTools(tooC, toolIndex, taskCount)"
  1161. src="../assets/icon/thirdToolList/hanClass.png"
  1162. alt
  1163. />
  1164. <div style="margin: 5px 0">汉字宫</div>
  1165. </div>
  1166. <div v-if="tooC == 47">
  1167. <img
  1168. @click="addTools(tooC, toolIndex, taskCount)"
  1169. src="../assets/icon/fourthToolList/conSentences.png"
  1170. alt
  1171. />
  1172. <div style="margin: 5px 0">排序</div>
  1173. </div>
  1174. <div v-if="tooC == 48">
  1175. <img
  1176. @click="addTools(tooC, toolIndex, taskCount)"
  1177. src="../assets/icon/fourthToolList/table.png"
  1178. alt
  1179. />
  1180. <div style="margin: 5px 0">表格</div>
  1181. </div>
  1182. <div v-if="tooC == 52">
  1183. <img
  1184. @click="addTools(tooC, toolIndex, taskCount)"
  1185. src="../assets/icon/fourthToolList/text.png"
  1186. alt
  1187. />
  1188. <div style="margin: 5px 0">文档</div>
  1189. </div>
  1190. <div v-if="tooC == 49">
  1191. <img
  1192. @click="addTools(tooC, toolIndex, taskCount)"
  1193. src="../assets/icon/fourthToolList/group.png"
  1194. alt
  1195. />
  1196. <div style="margin: 5px 0">学生分组</div>
  1197. </div>
  1198. <div v-if="tooC == 57">
  1199. <img
  1200. @click="addTools(tooC, toolIndex, taskCount)"
  1201. src="../assets/icon/fourthToolList/cocopi.png"
  1202. alt
  1203. />
  1204. <div style="margin: 5px 0">CocoPi</div>
  1205. </div>
  1206. <div v-if="tooC == 58">
  1207. <img
  1208. @click="addTools(tooC, toolIndex, taskCount)"
  1209. src="../assets/icon/fourthToolList/car.png"
  1210. alt
  1211. />
  1212. <div style="margin: 5px 0">模拟驾驶</div>
  1213. </div>
  1214. <div v-if="tooC == 59">
  1215. <img
  1216. @click="addTools(tooC, toolIndex, taskCount)"
  1217. src="../assets/icon/fourthToolList/lineSearch.png"
  1218. alt
  1219. />
  1220. <div style="margin: 5px 0">路径搜索</div>
  1221. </div>
  1222. <div v-if="tooC == 60">
  1223. <img
  1224. @click="addTools(tooC, toolIndex, taskCount)"
  1225. src="../assets/icon/fourthToolList/deepLearning.png"
  1226. alt
  1227. />
  1228. <div style="margin: 5px 0">深度学习</div>
  1229. </div>
  1230. <div v-if="tooC == 61">
  1231. <img
  1232. @click="addTools(tooC, toolIndex, taskCount)"
  1233. src="../assets/icon/fourthToolList/allHistory.png"
  1234. alt
  1235. />
  1236. <div style="margin: 5px 0">全历史</div>
  1237. </div>
  1238. <div v-if="tooC == 62">
  1239. <img
  1240. @click="addTools(tooC, toolIndex, taskCount)"
  1241. src="../assets/icon/fourthToolList/interVideo.png"
  1242. alt
  1243. />
  1244. <div style="margin: 5px 0">交互视频</div>
  1245. </div>
  1246. <div v-if="tooC == 63">
  1247. <img
  1248. @click="addTools(tooC, toolIndex, taskCount)"
  1249. src="../assets/icon/fourthToolList/Wood.png"
  1250. alt
  1251. />
  1252. <div style="margin: 5px 0">海龟编程</div>
  1253. </div>
  1254. <div v-if="tooC == 65">
  1255. <img
  1256. @click="addTools(tooC, toolIndex, taskCount)"
  1257. src="../assets/icon/firstToolList/pickPeople.png"
  1258. alt
  1259. />
  1260. <div style="margin: 5px 0">挑人</div>
  1261. </div>
  1262. <div v-if="tooC == 66">
  1263. <img
  1264. @click="addTools(tooC, toolIndex, taskCount)"
  1265. src="../assets/icon/secondToolList/formulaEdi.png"
  1266. alt
  1267. />
  1268. <div style="margin: 5px 0">公式编辑</div>
  1269. </div>
  1270. <div v-if="tooC == 67">
  1271. <img
  1272. @click="addTools(tooC, toolIndex, taskCount)"
  1273. src="../assets/icon/secondToolList/molStr.png"
  1274. alt
  1275. />
  1276. <div style="margin: 5px 0">分子结构</div>
  1277. </div>
  1278. <div v-if="tooC == 68">
  1279. <img
  1280. @click="addTools(tooC, toolIndex, taskCount)"
  1281. src="../assets/icon/secondToolList/timeAxis.png"
  1282. alt
  1283. />
  1284. <div style="margin: 5px 0">时间轴</div>
  1285. </div>
  1286. </div>
  1287. </div>
  1288. </div>
  1289. <div class="tooldetail" v-if="tool.toolDetail != ''">
  1290. <!-- <div class="toolTitle">工具描述</div> -->
  1291. <div
  1292. v-html="contentConvent(tool.toolDetail)"
  1293. v-if="toolDetailIndex != toolIndex"
  1294. @click.stop="updateToolDetail(toolIndex)"
  1295. ></div>
  1296. <div v-else @click.stop="">
  1297. <el-input
  1298. type="textarea"
  1299. :rows="3"
  1300. resize="none"
  1301. v-model="updateToolDetailInner"
  1302. placeholder="请输入任务描述"
  1303. ></el-input>
  1304. </div>
  1305. </div>
  1306. <el-button
  1307. type="primary"
  1308. v-if="tool.tool[0] == 32"
  1309. style="position: absolute; right: 30px; top: 30px"
  1310. @click="addImg($event)"
  1311. >上传作业<input
  1312. type="file"
  1313. accept="*"
  1314. style="display: none"
  1315. @change="beforeUpload1($event, 7, toolIndex)"
  1316. /></el-button>
  1317. <el-button
  1318. type="primary"
  1319. v-if="tool.tool[0] == 15"
  1320. style="position: absolute; right: 30px; top: 30px"
  1321. @click="openWordCloud(toolIndex)"
  1322. >生成词云</el-button
  1323. >
  1324. <el-button
  1325. type="primary"
  1326. v-if="
  1327. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1328. "
  1329. style="position: absolute; right: 30px; top: 30px"
  1330. @click="uploadWorks(toolIndex)"
  1331. >导出作业</el-button
  1332. >
  1333. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1334. position: absolute;
  1335. right: 30px;
  1336. transform: translateY(-130%);
  1337. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1338. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1339. </div>
  1340. <div
  1341. v-if="
  1342. tType &&
  1343. tType == 2 &&
  1344. !sIsOpen &&
  1345. tool.tool.indexOf(16) != -1
  1346. "
  1347. class="worksBox"
  1348. >
  1349. <div
  1350. class="zuoyeYulan"
  1351. v-if="workStudent[toolIndex].length > 0"
  1352. >
  1353. <span class="worksTitle">作业预览</span>
  1354. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1355. </div>
  1356. <div
  1357. class="worksDetailBox"
  1358. v-if="workStudent[toolIndex].length > 0"
  1359. >
  1360. <div
  1361. class="works"
  1362. style="
  1363. width: 200px;
  1364. height: 140px;
  1365. margin: 10px 10px 10px 0;
  1366. box-shadow: 0 0 6px 1px #dfdada;
  1367. "
  1368. v-for="(w, wIndex) in workStudent[toolIndex]"
  1369. :key="wIndex"
  1370. >
  1371. <div class="workImg" v-if="w.type == 0">
  1372. <img
  1373. :src="w.works"
  1374. @click="previewImg(w.works)"
  1375. alt
  1376. />
  1377. <div
  1378. class="answerScore"
  1379. v-if="w.score"
  1380. @click.stop="openScore(w)"
  1381. :class="{
  1382. rightW:
  1383. w.userid == userid || tType == 1 || tType == 4,
  1384. }"
  1385. >
  1386. {{ JSON.parse(w.score).wScore }}分
  1387. </div>
  1388. <div
  1389. class="answerScore"
  1390. @click.stop="openScore(w)"
  1391. v-else-if="courseDetail.userid == userid"
  1392. :class="{
  1393. rightW:
  1394. w.userid == userid || tType == 1 || tType == 4,
  1395. }"
  1396. >
  1397. 评分
  1398. </div>
  1399. <img
  1400. class="deleteImg"
  1401. src="../assets/deleteworks.png"
  1402. v-if="
  1403. w.userid == userid || tType == 1 || tType == 4
  1404. "
  1405. @click.stop="deleteWorks(w.wid)"
  1406. alt
  1407. />
  1408. </div>
  1409. <div class="workImg" v-if="w.type == 1">
  1410. <img :src="word" @click="openFile(w.works)" alt />
  1411. <div
  1412. class="answerScore"
  1413. v-if="w.score"
  1414. @click.stop="openScore(w)"
  1415. :class="{
  1416. rightW:
  1417. w.userid == userid || tType == 1 || tType == 4,
  1418. }"
  1419. >
  1420. {{ JSON.parse(w.score).wScore }}分
  1421. </div>
  1422. <div
  1423. class="answerScore"
  1424. @click.stop="openScore(w)"
  1425. v-else-if="courseDetail.userid == userid"
  1426. :class="{
  1427. rightW:
  1428. w.userid == userid || tType == 1 || tType == 4,
  1429. }"
  1430. >
  1431. 评分
  1432. </div>
  1433. <img
  1434. class="deleteImg"
  1435. src="../assets/deleteworks.png"
  1436. v-if="
  1437. w.userid == userid || tType == 1 || tType == 4
  1438. "
  1439. @click.stop="deleteWorks(w.wid)"
  1440. alt
  1441. />
  1442. </div>
  1443. <div class="workImg" v-if="w.type == 3">
  1444. <img
  1445. style="cursor: pointer"
  1446. :src="video"
  1447. @click="openVideo(w)"
  1448. alt
  1449. />
  1450. <div
  1451. class="answerScore"
  1452. v-if="w.score"
  1453. @click.stop="openScore(w)"
  1454. :class="{
  1455. rightW:
  1456. w.userid == userid || tType == 1 || tType == 4,
  1457. }"
  1458. >
  1459. {{ JSON.parse(w.score).wScore }}分
  1460. </div>
  1461. <div
  1462. class="answerScore"
  1463. @click.stop="openScore(w)"
  1464. v-else-if="courseDetail.userid == userid"
  1465. :class="{
  1466. rightW:
  1467. w.userid == userid || tType == 1 || tType == 4,
  1468. }"
  1469. >
  1470. 评分
  1471. </div>
  1472. <img
  1473. class="deleteImg"
  1474. src="../assets/deleteworks.png"
  1475. v-if="
  1476. w.userid == userid || tType == 1 || tType == 4
  1477. "
  1478. @click.stop="deleteWorks(w.wid)"
  1479. alt
  1480. />
  1481. </div>
  1482. <div class="workImg" v-if="w.type == 12">
  1483. <img
  1484. style="cursor: pointer"
  1485. :src="word2"
  1486. @click="downloadFile(w.works)"
  1487. alt
  1488. />
  1489. <div
  1490. class="answerScore"
  1491. v-if="w.score"
  1492. @click.stop="openScore(w)"
  1493. :class="{
  1494. rightW:
  1495. w.userid == userid || tType == 1 || tType == 4,
  1496. }"
  1497. >
  1498. {{ JSON.parse(w.score).wScore }}分
  1499. </div>
  1500. <div
  1501. class="answerScore"
  1502. @click.stop="openScore(w)"
  1503. v-else-if="courseDetail.userid == userid"
  1504. :class="{
  1505. rightW:
  1506. w.userid == userid || tType == 1 || tType == 4,
  1507. }"
  1508. >
  1509. 评分
  1510. </div>
  1511. <img
  1512. class="deleteImg"
  1513. src="../assets/deleteworks.png"
  1514. v-if="
  1515. w.userid == userid || tType == 1 || tType == 4
  1516. "
  1517. @click.stop="deleteWorks(w.wid)"
  1518. alt
  1519. />
  1520. </div>
  1521. <div class="worksName">
  1522. <div>{{ w.sName }}</div>
  1523. </div>
  1524. </div>
  1525. </div>
  1526. </div>
  1527. <div
  1528. v-if="
  1529. tType &&
  1530. tType == 2 &&
  1531. !sIsOpen &&
  1532. tool.tool.indexOf(32) != -1
  1533. "
  1534. class="worksBox"
  1535. >
  1536. <div
  1537. class="zuoyeYulan"
  1538. v-if="workStudent[toolIndex].length > 0"
  1539. >
  1540. <span class="worksTitle">作业预览</span>
  1541. </div>
  1542. <div
  1543. class="worksDetailBox"
  1544. v-if="workStudent[toolIndex].length > 0"
  1545. >
  1546. <div
  1547. class="works"
  1548. style="
  1549. width: 200px;
  1550. height: 140px;
  1551. margin: 10px 10px 10px 0;
  1552. box-shadow: 0 0 6px 1px #dfdada;
  1553. "
  1554. v-for="(w, wIndex) in workStudent[toolIndex]"
  1555. :key="wIndex"
  1556. >
  1557. <div class="workImg">
  1558. <img
  1559. :src="word2"
  1560. @click="downloadFile(w.works)"
  1561. alt
  1562. />
  1563. <div
  1564. class="answerScore"
  1565. v-if="w.score"
  1566. @click.stop="openScore(w)"
  1567. :class="{
  1568. rightW:
  1569. w.userid == userid || tType == 1 || tType == 4,
  1570. }"
  1571. >
  1572. {{ JSON.parse(w.score).wScore }}分
  1573. </div>
  1574. <div
  1575. class="answerScore"
  1576. @click.stop="openScore(w)"
  1577. v-else-if="courseDetail.userid == userid"
  1578. :class="{
  1579. rightW:
  1580. w.userid == userid || tType == 1 || tType == 4,
  1581. }"
  1582. >
  1583. 评分
  1584. </div>
  1585. <img
  1586. class="deleteImg"
  1587. src="../assets/deleteworks.png"
  1588. v-if="
  1589. w.userid == userid || tType == 1 || tType == 4
  1590. "
  1591. @click.stop="deleteWorks(w.wid)"
  1592. alt
  1593. />
  1594. </div>
  1595. <div class="worksName">
  1596. <div>{{ w.sName }}</div>
  1597. </div>
  1598. </div>
  1599. </div>
  1600. </div>
  1601. <div
  1602. v-if="
  1603. tType &&
  1604. tType == 2 &&
  1605. !sIsOpen &&
  1606. tool.tool.indexOf(57) != -1
  1607. "
  1608. class="worksBox"
  1609. >
  1610. <div
  1611. class="zuoyeYulan"
  1612. v-if="workStudent[toolIndex].length > 0"
  1613. >
  1614. <span class="worksTitle">作业预览</span>
  1615. </div>
  1616. <div
  1617. class="worksDetailBox"
  1618. v-if="workStudent[toolIndex].length > 0"
  1619. >
  1620. <div
  1621. class="works"
  1622. style="
  1623. width: 200px;
  1624. height: 140px;
  1625. margin: 10px 10px 10px 0;
  1626. box-shadow: 0 0 6px 1px #dfdada;
  1627. "
  1628. v-for="(w, wIndex) in workStudent[toolIndex]"
  1629. :key="wIndex"
  1630. >
  1631. <div class="workImg">
  1632. <img
  1633. :src="word2"
  1634. @click="downloadFile(w.works)"
  1635. v-if="w.type == 12"
  1636. alt
  1637. />
  1638. <img
  1639. :src="word2"
  1640. @click="
  1641. openCocoPi(57, toolIndex, w.userid, w.sName)
  1642. "
  1643. v-else-if="w.type == 15"
  1644. alt
  1645. />
  1646. <div
  1647. class="answerScore"
  1648. v-if="w.score"
  1649. @click.stop="openScore(w)"
  1650. :class="{
  1651. rightW:
  1652. w.userid == userid || tType == 1 || tType == 4,
  1653. }"
  1654. >
  1655. {{ JSON.parse(w.score).wScore }}分
  1656. </div>
  1657. <div
  1658. class="answerScore"
  1659. @click.stop="openScore(w)"
  1660. v-else-if="courseDetail.userid == userid"
  1661. :class="{
  1662. rightW:
  1663. w.userid == userid || tType == 1 || tType == 4,
  1664. }"
  1665. >
  1666. 评分
  1667. </div>
  1668. <img
  1669. class="deleteImg"
  1670. src="../assets/deleteworks.png"
  1671. v-if="
  1672. w.userid == userid || tType == 1 || tType == 4
  1673. "
  1674. @click.stop="deleteWorks(w.wid)"
  1675. alt
  1676. />
  1677. </div>
  1678. <div class="worksName">
  1679. <div>{{ w.sName }}</div>
  1680. </div>
  1681. </div>
  1682. </div>
  1683. </div>
  1684. <div
  1685. v-if="
  1686. tType &&
  1687. tType == 2 &&
  1688. !sIsOpen &&
  1689. tool.tool.indexOf(4) != -1
  1690. "
  1691. class="worksBox"
  1692. >
  1693. <div
  1694. class="zuoyeYulan"
  1695. v-if="workStudent[toolIndex].length > 0"
  1696. >
  1697. <span class="worksTitle">作业预览</span>
  1698. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1699. </div>
  1700. <div
  1701. class="worksDetailBox"
  1702. v-if="workStudent[toolIndex].length > 0"
  1703. >
  1704. <div
  1705. class="isWorksName2"
  1706. v-for="(w, wIndex) in workStudent[toolIndex]"
  1707. :key="wIndex"
  1708. @click="
  1709. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1710. "
  1711. >
  1712. {{ w.sName }}
  1713. <img
  1714. class="deleteImg deleteImg2"
  1715. src="../assets/deleteworks.png"
  1716. v-if="w.userid == userid || tType == 1 || tType == 4"
  1717. @click.stop="deleteWorks(w.wid)"
  1718. alt
  1719. />
  1720. </div>
  1721. <!-- <div
  1722. class="works"
  1723. style="
  1724. width: 200px;
  1725. height: 140px;
  1726. border-radius: 10px;
  1727. box-shadow: 0 0 6px 1px #dfdada;
  1728. overflow: hidden;
  1729. "
  1730. v-for="(w, wIndex) in workStudent[toolIndex]"
  1731. :key="wIndex"
  1732. >
  1733. <div class="workImg">
  1734. <img
  1735. src="../assets/icon/works/noImg.png"
  1736. @click="
  1737. openTools(
  1738. 4,
  1739. toolIndex,
  1740. taskCount,
  1741. w.works,
  1742. w.sName
  1743. )
  1744. "
  1745. alt
  1746. />
  1747. </div>
  1748. <div class="worksName">
  1749. <div>{{ w.sName }}</div>
  1750. <div>{{ w.time }}</div>
  1751. </div>
  1752. </div> -->
  1753. </div>
  1754. </div>
  1755. <div
  1756. v-if="
  1757. tType &&
  1758. tType == 2 &&
  1759. !sIsOpen &&
  1760. tool.tool.indexOf(45) != -1
  1761. "
  1762. class="worksBox"
  1763. >
  1764. <div
  1765. class="zuoyeYulan"
  1766. v-if="workStudent[toolIndex].length > 0"
  1767. >
  1768. <span class="worksTitle">作业预览</span>
  1769. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1770. </div>
  1771. <div
  1772. class="worksDetailBox"
  1773. v-if="workStudent[toolIndex].length > 0"
  1774. >
  1775. <div
  1776. class="isWorksName2"
  1777. v-for="(w, wIndex) in workStudent[toolIndex]"
  1778. :key="wIndex"
  1779. @click="
  1780. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1781. "
  1782. >
  1783. {{ w.sName }}
  1784. <img
  1785. class="deleteImg deleteImg2"
  1786. src="../assets/deleteworks.png"
  1787. v-if="w.userid == userid || tType == 1 || tType == 4"
  1788. @click.stop="deleteWorks(w.wid)"
  1789. alt
  1790. />
  1791. </div>
  1792. </div>
  1793. </div>
  1794. <div
  1795. v-if="
  1796. tType &&
  1797. tType == 2 &&
  1798. !sIsOpen &&
  1799. tool.tool.indexOf(15) != -1
  1800. "
  1801. class="worksBox"
  1802. >
  1803. <div
  1804. class="zuoyeYulan"
  1805. v-if="workStudent[toolIndex].length > 0"
  1806. >
  1807. <span class="worksTitle">作业预览</span>
  1808. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1809. </div>
  1810. <div
  1811. class="worksDetailBox"
  1812. v-if="workStudent[toolIndex].length > 0"
  1813. >
  1814. <div
  1815. class="works"
  1816. v-for="(w, wIndex) in workStudent[toolIndex]"
  1817. :key="wIndex"
  1818. >
  1819. <div class="workImg">
  1820. <!-- <img
  1821. src="../assets/icon/works/noImg.png"
  1822. @click="openTools(15, toolIndex, taskCount, w.works)"
  1823. alt=""
  1824. />-->
  1825. <div class="answerBg">
  1826. <!-- <div>{{ w.sName }}</div> -->
  1827. <el-tooltip
  1828. class="item"
  1829. effect="light"
  1830. :content="JSON.parse(w.works)[0].answer"
  1831. placement="top"
  1832. >
  1833. <div class="answerContent">
  1834. {{ JSON.parse(w.works)[0].answer }}
  1835. </div>
  1836. </el-tooltip>
  1837. <div
  1838. class="answerScore"
  1839. v-if="w.score"
  1840. @click.stop="openScore(w)"
  1841. :class="{
  1842. rightW:
  1843. w.userid == userid ||
  1844. tType == 1 ||
  1845. tType == 4,
  1846. }"
  1847. >
  1848. {{ JSON.parse(w.score).wScore }}分
  1849. </div>
  1850. <div
  1851. class="answerScore"
  1852. @click.stop="openScore(w)"
  1853. v-else-if="courseDetail.userid == userid"
  1854. :class="{
  1855. rightW:
  1856. w.userid == userid ||
  1857. tType == 1 ||
  1858. tType == 4,
  1859. }"
  1860. >
  1861. 评分
  1862. </div>
  1863. <img
  1864. class="deleteImg"
  1865. src="../assets/deleteworks.png"
  1866. v-if="
  1867. w.userid == userid || tType == 1 || tType == 4
  1868. "
  1869. @click.stop="deleteWorks(w.wid)"
  1870. alt
  1871. />
  1872. </div>
  1873. <div class="comment">
  1874. <div class="worksName">
  1875. <div>{{ w.sName }}</div>
  1876. </div>
  1877. </div>
  1878. </div>
  1879. </div>
  1880. </div>
  1881. </div>
  1882. <div
  1883. v-if="
  1884. tType &&
  1885. tType == 2 &&
  1886. !sIsOpen &&
  1887. tool.tool.indexOf(1) != -1
  1888. "
  1889. class="worksBox"
  1890. >
  1891. <div
  1892. class="zuoyeYulan"
  1893. v-if="workStudent[toolIndex].length > 0"
  1894. >
  1895. <span class="worksTitle">作业预览</span>
  1896. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1897. </div>
  1898. <div
  1899. class="worksDetailBox"
  1900. v-if="workStudent[toolIndex].length > 0"
  1901. >
  1902. <div
  1903. class="works"
  1904. style="
  1905. width: 200px;
  1906. height: 140px;
  1907. margin: 10px 10px 10px 0;
  1908. box-shadow: 0 0 6px 1px #dfdada;
  1909. "
  1910. v-for="(w, wIndex) in workStudent[toolIndex]"
  1911. :key="wIndex"
  1912. >
  1913. <div class="workImg">
  1914. <img
  1915. :src="w.works"
  1916. @click="previewImg(w.works)"
  1917. alt
  1918. />
  1919. <div
  1920. class="answerScore"
  1921. v-if="w.score"
  1922. @click.stop="openScore(w)"
  1923. :class="{
  1924. rightW:
  1925. w.userid == userid || tType == 1 || tType == 4,
  1926. }"
  1927. >
  1928. {{ JSON.parse(w.score).wScore }}分
  1929. </div>
  1930. <div
  1931. class="answerScore"
  1932. @click.stop="openScore(w)"
  1933. v-else-if="courseDetail.userid == userid"
  1934. :class="{
  1935. rightW:
  1936. w.userid == userid || tType == 1 || tType == 4,
  1937. }"
  1938. >
  1939. 评分
  1940. </div>
  1941. <img
  1942. class="deleteImg"
  1943. src="../assets/deleteworks.png"
  1944. v-if="
  1945. w.userid == userid || tType == 1 || tType == 4
  1946. "
  1947. @click.stop="deleteWorks(w.wid)"
  1948. alt
  1949. />
  1950. </div>
  1951. <div class="worksName">
  1952. <div>{{ w.sName }}</div>
  1953. </div>
  1954. </div>
  1955. </div>
  1956. </div>
  1957. <div
  1958. v-if="
  1959. tType &&
  1960. tType == 2 &&
  1961. !sIsOpen &&
  1962. tool.tool.indexOf(3) != -1
  1963. "
  1964. class="worksBox"
  1965. >
  1966. <div
  1967. class="zuoyeYulan"
  1968. v-if="workStudent[toolIndex].length > 0"
  1969. >
  1970. <span class="worksTitle">作业预览</span>
  1971. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1972. </div>
  1973. <div
  1974. class="worksDetailBox"
  1975. v-if="workStudent[toolIndex].length > 0"
  1976. >
  1977. <div
  1978. class="works"
  1979. style="
  1980. width: 200px;
  1981. height: 140px;
  1982. margin: 10px 10px 10px 0;
  1983. box-shadow: 0 0 6px 1px #dfdada;
  1984. "
  1985. v-for="(w, wIndex) in workStudent[toolIndex]"
  1986. :key="wIndex"
  1987. >
  1988. <div class="workImg">
  1989. <img
  1990. :src="w.works"
  1991. @click="previewImg(w.works)"
  1992. alt
  1993. />
  1994. <div
  1995. class="answerScore"
  1996. v-if="w.score"
  1997. @click.stop="openScore(w)"
  1998. :class="{
  1999. rightW:
  2000. w.userid == userid || tType == 1 || tType == 4,
  2001. }"
  2002. >
  2003. {{ JSON.parse(w.score).wScore }}分
  2004. </div>
  2005. <div
  2006. class="answerScore"
  2007. @click.stop="openScore(w)"
  2008. v-else-if="courseDetail.userid == userid"
  2009. :class="{
  2010. rightW:
  2011. w.userid == userid || tType == 1 || tType == 4,
  2012. }"
  2013. >
  2014. 评分
  2015. </div>
  2016. <img
  2017. class="deleteImg"
  2018. src="../assets/deleteworks.png"
  2019. v-if="
  2020. w.userid == userid || tType == 1 || tType == 4
  2021. "
  2022. @click.stop="deleteWorks(w.wid)"
  2023. alt
  2024. />
  2025. </div>
  2026. <div class="worksName">
  2027. <div>{{ w.sName }}</div>
  2028. </div>
  2029. </div>
  2030. </div>
  2031. </div>
  2032. <div
  2033. v-if="
  2034. tType &&
  2035. tType == 2 &&
  2036. !sIsOpen &&
  2037. tool.tool.indexOf(6) != -1
  2038. "
  2039. class="worksBox"
  2040. >
  2041. <div
  2042. class="zuoyeYulan"
  2043. v-if="workStudent[toolIndex].length > 0"
  2044. >
  2045. <span class="worksTitle">作业预览</span>
  2046. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2047. </div>
  2048. <div
  2049. class="worksDetailBox"
  2050. v-if="workStudent[toolIndex].length > 0"
  2051. >
  2052. <div
  2053. class="works"
  2054. style="
  2055. width: 200px;
  2056. height: 140px;
  2057. margin: 10px 10px 10px 0;
  2058. box-shadow: 0 0 6px 1px #dfdada;
  2059. "
  2060. v-for="(w, wIndex) in workStudent[toolIndex]"
  2061. :key="wIndex"
  2062. >
  2063. <div class="workImg">
  2064. <img
  2065. :src="w.works"
  2066. @click="previewImg(w.works)"
  2067. alt
  2068. />
  2069. <div
  2070. class="answerScore"
  2071. v-if="w.score"
  2072. @click.stop="openScore(w)"
  2073. :class="{
  2074. rightW:
  2075. w.userid == userid || tType == 1 || tType == 4,
  2076. }"
  2077. >
  2078. {{ JSON.parse(w.score).wScore }}分
  2079. </div>
  2080. <div
  2081. class="answerScore"
  2082. @click.stop="openScore(w)"
  2083. v-else-if="courseDetail.userid == userid"
  2084. :class="{
  2085. rightW:
  2086. w.userid == userid || tType == 1 || tType == 4,
  2087. }"
  2088. >
  2089. 评分
  2090. </div>
  2091. <img
  2092. class="deleteImg"
  2093. src="../assets/deleteworks.png"
  2094. v-if="
  2095. w.userid == userid || tType == 1 || tType == 4
  2096. "
  2097. @click.stop="deleteWorks(w.wid)"
  2098. alt
  2099. />
  2100. </div>
  2101. <div class="worksName">
  2102. <div>{{ w.sName }}</div>
  2103. </div>
  2104. </div>
  2105. </div>
  2106. </div>
  2107. <div
  2108. v-if="
  2109. tType &&
  2110. tType == 2 &&
  2111. !sIsOpen &&
  2112. tool.tool.indexOf(7) != -1
  2113. "
  2114. class="worksBox"
  2115. >
  2116. <div
  2117. class="zuoyeYulan"
  2118. v-if="workStudent[toolIndex].length > 0"
  2119. >
  2120. <span class="worksTitle">作业预览</span>
  2121. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2122. </div>
  2123. <div
  2124. class="worksDetailBox"
  2125. v-if="workStudent[toolIndex].length > 0"
  2126. >
  2127. <div
  2128. class="works"
  2129. style="
  2130. width: 200px;
  2131. height: 140px;
  2132. margin: 10px 10px 10px 0;
  2133. box-shadow: 0 0 6px 1px #dfdada;
  2134. "
  2135. v-for="(w, wIndex) in workStudent[toolIndex]"
  2136. :key="wIndex"
  2137. >
  2138. <div class="workImg">
  2139. <img
  2140. :src="w.works"
  2141. @click="previewImg(w.works)"
  2142. alt
  2143. />
  2144. <div
  2145. class="answerScore"
  2146. v-if="w.score"
  2147. @click.stop="openScore(w)"
  2148. :class="{
  2149. rightW:
  2150. w.userid == userid || tType == 1 || tType == 4,
  2151. }"
  2152. >
  2153. {{ JSON.parse(w.score).wScore }}分
  2154. </div>
  2155. <div
  2156. class="answerScore"
  2157. @click.stop="openScore(w)"
  2158. v-else-if="courseDetail.userid == userid"
  2159. :class="{
  2160. rightW:
  2161. w.userid == userid || tType == 1 || tType == 4,
  2162. }"
  2163. >
  2164. 评分
  2165. </div>
  2166. <img
  2167. class="deleteImg"
  2168. src="../assets/deleteworks.png"
  2169. v-if="
  2170. w.userid == userid || tType == 1 || tType == 4
  2171. "
  2172. @click.stop="deleteWorks(w.wid)"
  2173. alt
  2174. />
  2175. </div>
  2176. <div class="worksName">
  2177. <div>{{ w.sName }}</div>
  2178. </div>
  2179. </div>
  2180. </div>
  2181. </div>
  2182. <div
  2183. v-if="
  2184. tType &&
  2185. tType == 2 &&
  2186. !sIsOpen &&
  2187. tool.tool.indexOf(26) != -1
  2188. "
  2189. class="worksBox"
  2190. >
  2191. <div
  2192. class="zuoyeYulan"
  2193. v-if="workStudent[toolIndex].length > 0"
  2194. >
  2195. <span class="worksTitle">作业预览</span>
  2196. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2197. </div>
  2198. <div
  2199. class="worksDetailBox"
  2200. v-if="workStudent[toolIndex].length > 0"
  2201. >
  2202. <div
  2203. class="works"
  2204. style="
  2205. width: 200px;
  2206. height: 140px;
  2207. margin: 10px 10px 10px 0;
  2208. box-shadow: 0 0 6px 1px #dfdada;
  2209. "
  2210. v-for="(w, wIndex) in workStudent[toolIndex]"
  2211. :key="wIndex"
  2212. >
  2213. <div class="workImg">
  2214. <img
  2215. :src="w.works"
  2216. @click="previewImg(w.works)"
  2217. alt
  2218. />
  2219. <img
  2220. class="deleteImg"
  2221. src="../assets/deleteworks.png"
  2222. v-if="
  2223. w.userid == userid || tType == 1 || tType == 4
  2224. "
  2225. @click.stop="deleteWorks(w.wid)"
  2226. alt
  2227. />
  2228. </div>
  2229. <div class="worksName">
  2230. <div>{{ w.sName }}</div>
  2231. </div>
  2232. </div>
  2233. </div>
  2234. </div>
  2235. <div
  2236. v-if="
  2237. tType &&
  2238. ((tType == 2 && sIsOpen == true) ||
  2239. tType == 1 ||
  2240. tType == 4) &&
  2241. tool.tool.indexOf(16) != -1
  2242. "
  2243. class="worksBox"
  2244. >
  2245. <div
  2246. class="zuoyeYulan"
  2247. v-if="
  2248. worksStudent.length &&
  2249. worksStudent[toolIndex].length > 0
  2250. "
  2251. >
  2252. <div class="worksTop">
  2253. <div>作业预览</div>
  2254. <div
  2255. class="corOpen"
  2256. @click="contract(toolIndex)"
  2257. v-if="
  2258. worksStudent[toolIndex].length > 6 &&
  2259. isCloseList[toolIndex].isClose == 0
  2260. "
  2261. >
  2262. 收缩
  2263. </div>
  2264. <div
  2265. class="corOpen"
  2266. @click="contract(toolIndex)"
  2267. v-if="isCloseList[toolIndex].isClose == 1"
  2268. >
  2269. 展开
  2270. </div>
  2271. </div>
  2272. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2273. </div>
  2274. <div
  2275. class="group_workBox"
  2276. v-for="(g, gindex) in courseGroup.group"
  2277. :key="gindex"
  2278. >
  2279. <div class="group_box">
  2280. <div class="group_title">
  2281. <el-tooltip
  2282. class="item"
  2283. effect="light"
  2284. :content="g.name"
  2285. placement="top"
  2286. >
  2287. <div class="group_name">{{ g.name }}</div>
  2288. </el-tooltip>
  2289. </div>
  2290. <div
  2291. class="group_work"
  2292. v-if="
  2293. g.works &&
  2294. g.works.length &&
  2295. g.works[toolIndex].length
  2296. "
  2297. >
  2298. <div
  2299. class="works"
  2300. style="
  2301. width: 200px;
  2302. height: 140px;
  2303. margin: 10px 10px 10px 0;
  2304. border-radius: 15px;
  2305. box-shadow: 0 0 6px 1px #dfdada;
  2306. "
  2307. v-for="(w, wIndex) in g.works[toolIndex]"
  2308. :key="wIndex"
  2309. :class="w.type == 1 ? 'isTypeOne' : ''"
  2310. >
  2311. <div class="workImg" v-if="w.type == 0">
  2312. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2313. <img
  2314. :src="w.works"
  2315. @click="previewImg(w.works)"
  2316. alt
  2317. />
  2318. <div
  2319. class="answerScore"
  2320. v-if="w.score"
  2321. @click.stop="openScore(w)"
  2322. :class="{
  2323. rightW:
  2324. w.userid == userid ||
  2325. tType == 1 ||
  2326. tType == 4 ||
  2327. w.ateacher == userid,
  2328. }"
  2329. >
  2330. {{ JSON.parse(w.score).wScore }}分
  2331. </div>
  2332. <div
  2333. class="answerScore"
  2334. @click.stop="openScore(w)"
  2335. v-else-if="courseDetail.userid == userid"
  2336. :class="{
  2337. rightW:
  2338. w.userid == userid ||
  2339. tType == 1 ||
  2340. tType == 4 ||
  2341. w.ateacher == userid,
  2342. }"
  2343. >
  2344. 评分
  2345. </div>
  2346. <img
  2347. class="deleteImg"
  2348. src="../assets/deleteworks.png"
  2349. v-if="
  2350. w.userid == userid || tType == 1 || tType == 4
  2351. "
  2352. @click.stop="deleteWorks(w.wid)"
  2353. alt
  2354. />
  2355. </div>
  2356. <div class="workImg" v-if="w.type == 1">
  2357. <img :src="word" @click="openFile(w.works)" alt />
  2358. <!-- @click="openFile(w.works)" -->
  2359. <div
  2360. class="answerScore"
  2361. v-if="w.score"
  2362. @click.stop="openScore(w)"
  2363. :class="{
  2364. rightW:
  2365. w.userid == userid ||
  2366. tType == 1 ||
  2367. tType == 4 ||
  2368. w.ateacher == userid,
  2369. }"
  2370. >
  2371. {{ JSON.parse(w.score).wScore }}分
  2372. </div>
  2373. <div
  2374. class="answerScore"
  2375. @click.stop="openScore(w)"
  2376. v-else-if="courseDetail.userid == userid"
  2377. :class="{
  2378. rightW:
  2379. w.userid == userid ||
  2380. tType == 1 ||
  2381. tType == 4 ||
  2382. w.ateacher == userid,
  2383. }"
  2384. >
  2385. 评分
  2386. </div>
  2387. <img
  2388. class="deleteImg"
  2389. src="../assets/deleteworks.png"
  2390. v-if="
  2391. w.userid == userid || tType == 1 || tType == 4
  2392. "
  2393. @click.stop="deleteWorks(w.wid)"
  2394. alt
  2395. />
  2396. </div>
  2397. <div class="workImg" v-if="w.type == 3">
  2398. <img
  2399. style="cursor: pointer"
  2400. :src="video"
  2401. @click="openVideo(w)"
  2402. alt
  2403. />
  2404. <!-- @click="openVideo(w.works)" -->
  2405. <div
  2406. class="answerScore"
  2407. v-if="w.score"
  2408. @click.stop="openScore(w)"
  2409. :class="{
  2410. rightW:
  2411. w.userid == userid ||
  2412. tType == 1 ||
  2413. tType == 4 ||
  2414. w.ateacher == userid,
  2415. }"
  2416. >
  2417. {{ JSON.parse(w.score).wScore }}分
  2418. </div>
  2419. <div
  2420. class="answerScore"
  2421. @click.stop="openScore(w)"
  2422. v-else-if="courseDetail.userid == userid"
  2423. :class="{
  2424. rightW:
  2425. w.userid == userid ||
  2426. tType == 1 ||
  2427. tType == 4 ||
  2428. w.ateacher == userid,
  2429. }"
  2430. >
  2431. 评分
  2432. </div>
  2433. <img
  2434. class="deleteImg"
  2435. src="../assets/deleteworks.png"
  2436. v-if="
  2437. w.userid == userid || tType == 1 || tType == 4
  2438. "
  2439. @click.stop="deleteWorks(w.wid)"
  2440. alt
  2441. />
  2442. </div>
  2443. <div class="workImg" v-if="w.type == 12">
  2444. <img
  2445. style="cursor: pointer"
  2446. :src="word2"
  2447. @click="downloadFile(w.works)"
  2448. alt
  2449. />
  2450. <!-- @click="openVideo(w.works)" -->
  2451. <div
  2452. class="answerScore"
  2453. v-if="w.score"
  2454. @click.stop="openScore(w)"
  2455. :class="{
  2456. rightW:
  2457. w.userid == userid ||
  2458. tType == 1 ||
  2459. tType == 4 ||
  2460. w.ateacher == userid,
  2461. }"
  2462. >
  2463. {{ JSON.parse(w.score).wScore }}分
  2464. </div>
  2465. <div
  2466. class="answerScore"
  2467. @click.stop="openScore(w)"
  2468. v-else-if="courseDetail.userid == userid"
  2469. :class="{
  2470. rightW:
  2471. w.userid == userid ||
  2472. tType == 1 ||
  2473. tType == 4 ||
  2474. w.ateacher == userid,
  2475. }"
  2476. >
  2477. 评分
  2478. </div>
  2479. <img
  2480. class="deleteImg"
  2481. src="../assets/deleteworks.png"
  2482. v-if="
  2483. w.userid == userid || tType == 1 || tType == 4
  2484. "
  2485. @click.stop="deleteWorks(w.wid)"
  2486. alt
  2487. />
  2488. </div>
  2489. <div class="comment" style="min-width: 200px">
  2490. <div class="worksName">
  2491. <div>{{ w.sName }}</div>
  2492. </div>
  2493. <div class="commentList">
  2494. <div class="commentList">
  2495. <div
  2496. class="commentImg"
  2497. @click="
  2498. isLikes(w.wid, userid, 1, null, w.isLikes)
  2499. "
  2500. >
  2501. <img
  2502. :src="w.isLikes == true ? likes : noLikes"
  2503. alt=""
  2504. />
  2505. </div>
  2506. <div>{{ w.likesCount }}</div>
  2507. </div>
  2508. <div
  2509. class="commentList"
  2510. style="margin-right: 15px"
  2511. >
  2512. <div
  2513. class="commentImg"
  2514. @click="
  2515. commentOther(
  2516. w,
  2517. toolIndex,
  2518. wIndex,
  2519. null,
  2520. g.id
  2521. )
  2522. "
  2523. >
  2524. <img
  2525. src="../assets/icon/comment/comment.png"
  2526. alt=""
  2527. />
  2528. </div>
  2529. <div>{{ w.commentCount }}</div>
  2530. </div>
  2531. </div>
  2532. </div>
  2533. </div>
  2534. </div>
  2535. <div class="group_work" v-else>暂无提交作业</div>
  2536. </div>
  2537. </div>
  2538. <div
  2539. class="worksDetailBox"
  2540. v-if="
  2541. worksStudent.length &&
  2542. worksStudent[toolIndex].length > 0
  2543. "
  2544. >
  2545. <div
  2546. class="works"
  2547. style="
  2548. width: 200px;
  2549. height: 140px;
  2550. margin: 10px 10px 10px 0;
  2551. border-radius: 15px;
  2552. box-shadow: 0 0 6px 1px #dfdada;
  2553. "
  2554. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2555. 0
  2556. ? worksStudent[toolIndex]
  2557. : worksStudent[toolIndex].slice(0, 6)"
  2558. :key="wIndex"
  2559. :class="w.type == 1 ? 'isTypeOne' : ''"
  2560. >
  2561. <div class="workImg" v-if="w.type == 0">
  2562. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2563. <img
  2564. :src="w.works"
  2565. @click="previewImg(w.works)"
  2566. alt
  2567. />
  2568. <div
  2569. class="answerScore"
  2570. v-if="w.score"
  2571. @click.stop="openScore(w)"
  2572. :class="{
  2573. rightW:
  2574. w.userid == userid ||
  2575. tType == 1 ||
  2576. tType == 4 ||
  2577. w.ateacher == userid,
  2578. }"
  2579. >
  2580. {{ JSON.parse(w.score).wScore }}分
  2581. </div>
  2582. <div
  2583. class="answerScore"
  2584. @click.stop="openScore(w)"
  2585. v-else-if="courseDetail.userid == userid"
  2586. :class="{
  2587. rightW:
  2588. w.userid == userid ||
  2589. tType == 1 ||
  2590. tType == 4 ||
  2591. w.ateacher == userid,
  2592. }"
  2593. >
  2594. 评分
  2595. </div>
  2596. <img
  2597. class="deleteImg"
  2598. src="../assets/deleteworks.png"
  2599. v-if="
  2600. w.userid == userid || tType == 1 || tType == 4
  2601. "
  2602. @click.stop="deleteWorks(w.wid)"
  2603. alt
  2604. />
  2605. </div>
  2606. <div class="workImg" v-if="w.type == 1">
  2607. <img :src="word" @click="openFile(w.works)" alt />
  2608. <!-- @click="openFile(w.works)" -->
  2609. <div
  2610. class="answerScore"
  2611. v-if="w.score"
  2612. @click.stop="openScore(w)"
  2613. :class="{
  2614. rightW:
  2615. w.userid == userid ||
  2616. tType == 1 ||
  2617. tType == 4 ||
  2618. w.ateacher == userid,
  2619. }"
  2620. >
  2621. {{ JSON.parse(w.score).wScore }}分
  2622. </div>
  2623. <div
  2624. class="answerScore"
  2625. @click.stop="openScore(w)"
  2626. v-else-if="courseDetail.userid == userid"
  2627. :class="{
  2628. rightW:
  2629. w.userid == userid ||
  2630. tType == 1 ||
  2631. tType == 4 ||
  2632. w.ateacher == userid,
  2633. }"
  2634. >
  2635. 评分
  2636. </div>
  2637. <img
  2638. class="deleteImg"
  2639. src="../assets/deleteworks.png"
  2640. v-if="
  2641. w.userid == userid || tType == 1 || tType == 4
  2642. "
  2643. @click.stop="deleteWorks(w.wid)"
  2644. alt
  2645. />
  2646. </div>
  2647. <div class="workImg" v-if="w.type == 3">
  2648. <img
  2649. style="cursor: pointer"
  2650. :src="video"
  2651. @click="openVideo(w)"
  2652. alt
  2653. />
  2654. <!-- @click="openVideo(w.works)" -->
  2655. <div
  2656. class="answerScore"
  2657. v-if="w.score"
  2658. @click.stop="openScore(w)"
  2659. :class="{
  2660. rightW:
  2661. w.userid == userid ||
  2662. tType == 1 ||
  2663. tType == 4 ||
  2664. w.ateacher == userid,
  2665. }"
  2666. >
  2667. {{ JSON.parse(w.score).wScore }}分
  2668. </div>
  2669. <div
  2670. class="answerScore"
  2671. @click.stop="openScore(w)"
  2672. v-else-if="courseDetail.userid == userid"
  2673. :class="{
  2674. rightW:
  2675. w.userid == userid ||
  2676. tType == 1 ||
  2677. tType == 4 ||
  2678. w.ateacher == userid,
  2679. }"
  2680. >
  2681. 评分
  2682. </div>
  2683. <img
  2684. class="deleteImg"
  2685. src="../assets/deleteworks.png"
  2686. v-if="
  2687. w.userid == userid || tType == 1 || tType == 4
  2688. "
  2689. @click.stop="deleteWorks(w.wid)"
  2690. alt
  2691. />
  2692. </div>
  2693. <div class="workImg" v-if="w.type == 12">
  2694. <img
  2695. style="cursor: pointer"
  2696. :src="word2"
  2697. @click="downloadFile(w.works)"
  2698. alt
  2699. />
  2700. <!-- @click="openVideo(w.works)" -->
  2701. <div
  2702. class="answerScore"
  2703. v-if="w.score"
  2704. @click.stop="openScore(w)"
  2705. :class="{
  2706. rightW:
  2707. w.userid == userid ||
  2708. tType == 1 ||
  2709. tType == 4 ||
  2710. w.ateacher == userid,
  2711. }"
  2712. >
  2713. {{ JSON.parse(w.score).wScore }}分
  2714. </div>
  2715. <div
  2716. class="answerScore"
  2717. @click.stop="openScore(w)"
  2718. v-else-if="courseDetail.userid == userid"
  2719. :class="{
  2720. rightW:
  2721. w.userid == userid ||
  2722. tType == 1 ||
  2723. tType == 4 ||
  2724. w.ateacher == userid,
  2725. }"
  2726. >
  2727. 评分
  2728. </div>
  2729. <img
  2730. class="deleteImg"
  2731. src="../assets/deleteworks.png"
  2732. v-if="
  2733. w.userid == userid || tType == 1 || tType == 4
  2734. "
  2735. @click.stop="deleteWorks(w.wid)"
  2736. alt
  2737. />
  2738. </div>
  2739. <div class="comment" style="min-width: 200px">
  2740. <div class="worksName">
  2741. <div>{{ w.sName }}</div>
  2742. </div>
  2743. <div class="commentList">
  2744. <div class="commentList">
  2745. <div
  2746. class="commentImg"
  2747. @click="
  2748. isLikes(w.wid, userid, 1, null, w.isLikes)
  2749. "
  2750. >
  2751. <img
  2752. :src="w.isLikes == true ? likes : noLikes"
  2753. alt=""
  2754. />
  2755. </div>
  2756. <div>{{ w.likesCount }}</div>
  2757. </div>
  2758. <div class="commentList" style="margin-right: 15px">
  2759. <div
  2760. class="commentImg"
  2761. @click="commentOther(w, toolIndex, wIndex)"
  2762. >
  2763. <img
  2764. src="../assets/icon/comment/comment.png"
  2765. alt=""
  2766. />
  2767. </div>
  2768. <div>{{ w.commentCount }}</div>
  2769. </div>
  2770. </div>
  2771. </div>
  2772. </div>
  2773. </div>
  2774. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2775. 未提交
  2776. </div>
  2777. <div
  2778. class="noWorksS"
  2779. v-if="noWorksS && noWorksS[toolIndex].length"
  2780. >
  2781. <div
  2782. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2783. :key="sIndex"
  2784. class="noWorksName"
  2785. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2786. >
  2787. {{ s.student }}
  2788. </div>
  2789. </div>
  2790. </div>
  2791. <div
  2792. v-if="
  2793. tType &&
  2794. ((tType == 2 && sIsOpen == true) ||
  2795. tType == 1 ||
  2796. tType == 4) &&
  2797. tool.tool.indexOf(32) != -1
  2798. "
  2799. class="worksBox"
  2800. >
  2801. <div
  2802. class="zuoyeYulan"
  2803. v-if="
  2804. worksStudent.length &&
  2805. worksStudent[toolIndex].length > 0
  2806. "
  2807. >
  2808. <div class="worksTop">
  2809. <div>作业预览</div>
  2810. <div
  2811. class="corOpen"
  2812. @click="contract(toolIndex)"
  2813. v-if="
  2814. worksStudent[toolIndex].length > 6 &&
  2815. isCloseList[toolIndex].isClose == 0
  2816. "
  2817. >
  2818. 收缩
  2819. </div>
  2820. <div
  2821. class="corOpen"
  2822. @click="contract(toolIndex)"
  2823. v-if="isCloseList[toolIndex].isClose == 1"
  2824. >
  2825. 展开
  2826. </div>
  2827. </div>
  2828. </div>
  2829. <div
  2830. class="worksDetailBox"
  2831. v-if="
  2832. worksStudent.length &&
  2833. worksStudent[toolIndex].length > 0
  2834. "
  2835. >
  2836. <div
  2837. class="works"
  2838. style="
  2839. width: 200px;
  2840. height: 140px;
  2841. margin: 10px 10px 10px 0;
  2842. border-radius: 15px;
  2843. box-shadow: 0 0 6px 1px #dfdada;
  2844. "
  2845. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2846. 0
  2847. ? worksStudent[toolIndex]
  2848. : worksStudent[toolIndex].slice(0, 6)"
  2849. :key="wIndex"
  2850. :class="w.type == 1 ? 'isTypeOne' : ''"
  2851. >
  2852. <div class="workImg">
  2853. <img
  2854. :src="word2"
  2855. @click="downloadFile(w.works)"
  2856. alt
  2857. />
  2858. <div
  2859. class="answerScore"
  2860. v-if="w.score"
  2861. @click.stop="openScore(w)"
  2862. :class="{
  2863. rightW:
  2864. w.userid == userid ||
  2865. tType == 1 ||
  2866. tType == 4 ||
  2867. w.ateacher == userid,
  2868. }"
  2869. >
  2870. {{ JSON.parse(w.score).wScore }}分
  2871. </div>
  2872. <div
  2873. class="answerScore"
  2874. @click.stop="openScore(w)"
  2875. v-else-if="courseDetail.userid == userid"
  2876. :class="{
  2877. rightW:
  2878. w.userid == userid ||
  2879. tType == 1 ||
  2880. tType == 4 ||
  2881. w.ateacher == userid,
  2882. }"
  2883. >
  2884. 评分
  2885. </div>
  2886. <img
  2887. class="deleteImg"
  2888. src="../assets/deleteworks.png"
  2889. v-if="
  2890. w.userid == userid || tType == 1 || tType == 4
  2891. "
  2892. @click.stop="deleteWorks(w.wid)"
  2893. alt
  2894. />
  2895. </div>
  2896. <div class="comment" style="min-width: 200px">
  2897. <div class="worksName">
  2898. <div>{{ w.sName }}</div>
  2899. </div>
  2900. <div class="commentList">
  2901. <div class="commentList">
  2902. <div
  2903. class="commentImg"
  2904. @click="
  2905. isLikes(w.wid, userid, 1, null, w.isLikes)
  2906. "
  2907. >
  2908. <img
  2909. :src="w.isLikes == true ? likes : noLikes"
  2910. alt=""
  2911. />
  2912. </div>
  2913. <div>{{ w.likesCount }}</div>
  2914. </div>
  2915. <div class="commentList" style="margin-right: 15px">
  2916. <div
  2917. class="commentImg"
  2918. @click="commentOther(w, toolIndex, wIndex)"
  2919. >
  2920. <img
  2921. src="../assets/icon/comment/comment.png"
  2922. alt=""
  2923. />
  2924. </div>
  2925. <div>{{ w.commentCount }}</div>
  2926. </div>
  2927. </div>
  2928. </div>
  2929. </div>
  2930. </div>
  2931. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2932. 未提交
  2933. </div>
  2934. <div
  2935. class="noWorksS"
  2936. v-if="noWorksS && noWorksS[toolIndex].length"
  2937. >
  2938. <div
  2939. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2940. :key="sIndex"
  2941. class="noWorksName"
  2942. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  2943. >
  2944. {{ s.student }}
  2945. </div>
  2946. </div>
  2947. </div>
  2948. <div
  2949. v-if="
  2950. tType &&
  2951. ((tType == 2 && sIsOpen == true) ||
  2952. tType == 1 ||
  2953. tType == 4) &&
  2954. tool.tool.indexOf(57) != -1
  2955. "
  2956. class="worksBox"
  2957. >
  2958. <div
  2959. class="zuoyeYulan"
  2960. v-if="
  2961. worksStudent.length &&
  2962. worksStudent[toolIndex].length > 0
  2963. "
  2964. >
  2965. <div class="worksTop">
  2966. <div>作业预览</div>
  2967. <div
  2968. class="corOpen"
  2969. @click="contract(toolIndex)"
  2970. v-if="
  2971. worksStudent[toolIndex].length > 6 &&
  2972. isCloseList[toolIndex].isClose == 0
  2973. "
  2974. >
  2975. 收缩
  2976. </div>
  2977. <div
  2978. class="corOpen"
  2979. @click="contract(toolIndex)"
  2980. v-if="isCloseList[toolIndex].isClose == 1"
  2981. >
  2982. 展开
  2983. </div>
  2984. </div>
  2985. </div>
  2986. <div
  2987. class="worksDetailBox"
  2988. v-if="
  2989. worksStudent.length &&
  2990. worksStudent[toolIndex].length > 0
  2991. "
  2992. >
  2993. <div
  2994. class="works"
  2995. style="
  2996. width: 200px;
  2997. height: 140px;
  2998. margin: 10px 10px 10px 0;
  2999. border-radius: 15px;
  3000. box-shadow: 0 0 6px 1px #dfdada;
  3001. "
  3002. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3003. 0
  3004. ? worksStudent[toolIndex]
  3005. : worksStudent[toolIndex].slice(0, 6)"
  3006. :key="wIndex"
  3007. :class="w.type == 1 ? 'isTypeOne' : ''"
  3008. >
  3009. <div class="workImg">
  3010. <img
  3011. :src="word2"
  3012. @click="downloadFile(w.works)"
  3013. v-if="w.type == 12"
  3014. alt
  3015. />
  3016. <img
  3017. :src="word2"
  3018. @click="
  3019. openCocoPi(57, toolIndex, w.userid, w.sName)
  3020. "
  3021. v-else-if="w.type == 15"
  3022. alt
  3023. />
  3024. <div
  3025. class="answerScore"
  3026. v-if="w.score"
  3027. @click.stop="openScore(w)"
  3028. :class="{
  3029. rightW:
  3030. w.userid == userid ||
  3031. tType == 1 ||
  3032. tType == 4 ||
  3033. w.ateacher == userid,
  3034. }"
  3035. >
  3036. {{ JSON.parse(w.score).wScore }}分
  3037. </div>
  3038. <div
  3039. class="answerScore"
  3040. @click.stop="openScore(w)"
  3041. v-else-if="courseDetail.userid == userid"
  3042. :class="{
  3043. rightW:
  3044. w.userid == userid ||
  3045. tType == 1 ||
  3046. tType == 4 ||
  3047. w.ateacher == userid,
  3048. }"
  3049. >
  3050. 评分
  3051. </div>
  3052. <img
  3053. class="deleteImg"
  3054. src="../assets/deleteworks.png"
  3055. v-if="
  3056. w.userid == userid || tType == 1 || tType == 4
  3057. "
  3058. @click.stop="deleteWorks(w.wid)"
  3059. alt
  3060. />
  3061. </div>
  3062. <div class="comment" style="min-width: 200px">
  3063. <div class="worksName">
  3064. <div>{{ w.sName }}</div>
  3065. </div>
  3066. <div class="commentList">
  3067. <div class="commentList">
  3068. <div
  3069. class="commentImg"
  3070. @click="
  3071. isLikes(w.wid, userid, 1, null, w.isLikes)
  3072. "
  3073. >
  3074. <img
  3075. :src="w.isLikes == true ? likes : noLikes"
  3076. alt=""
  3077. />
  3078. </div>
  3079. <div>{{ w.likesCount }}</div>
  3080. </div>
  3081. <div class="commentList" style="margin-right: 15px">
  3082. <div
  3083. class="commentImg"
  3084. @click="commentOther(w, toolIndex, wIndex)"
  3085. >
  3086. <img
  3087. src="../assets/icon/comment/comment.png"
  3088. alt=""
  3089. />
  3090. </div>
  3091. <div>{{ w.commentCount }}</div>
  3092. </div>
  3093. </div>
  3094. </div>
  3095. </div>
  3096. </div>
  3097. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3098. 未提交
  3099. </div>
  3100. <div
  3101. class="noWorksS"
  3102. v-if="noWorksS && noWorksS[toolIndex].length"
  3103. >
  3104. <div
  3105. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3106. :key="sIndex"
  3107. class="noWorksName"
  3108. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3109. >
  3110. {{ s.student }}
  3111. </div>
  3112. </div>
  3113. </div>
  3114. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3115. <div
  3116. class="zuoyeYulan"
  3117. v-if="
  3118. worksStudent.length &&
  3119. worksStudent[toolIndex].length > 0
  3120. "
  3121. >
  3122. <span class="worksTitle">作业预览</span>
  3123. <div
  3124. class="corOpen"
  3125. @click="contract(toolIndex)"
  3126. v-if="
  3127. worksStudent[toolIndex].length > 6 &&
  3128. isCloseList[toolIndex].isClose == 0
  3129. "
  3130. >
  3131. 收缩
  3132. </div>
  3133. <div
  3134. class="corOpen"
  3135. @click="contract(toolIndex)"
  3136. v-if="isCloseList[toolIndex].isClose == 1"
  3137. >
  3138. 展开
  3139. </div>
  3140. </div>
  3141. <div
  3142. class="worksDetailBox"
  3143. v-if="
  3144. worksStudent.length &&
  3145. worksStudent[toolIndex].length > 0
  3146. "
  3147. >
  3148. <div
  3149. class="works"
  3150. style="
  3151. width: 200px;
  3152. height: 140px;
  3153. margin: 10px 10px 10px 0;
  3154. border-radius: 15px;
  3155. box-shadow: 0 0 6px 1px #dfdada;
  3156. "
  3157. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3158. 0
  3159. ? worksStudent[toolIndex]
  3160. : worksStudent[toolIndex].slice(0, 6)"
  3161. :key="wIndex"
  3162. :class="w.type == 1 ? 'isTypeOne' : ''"
  3163. >
  3164. <div class="workImg" v-if="w.type == 0">
  3165. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3166. <img
  3167. :src="w.works"
  3168. @click="previewImg(w.works)"
  3169. alt
  3170. />
  3171. <div
  3172. class="answerScore"
  3173. v-if="w.score"
  3174. @click.stop="openScore(w)"
  3175. :class="{
  3176. rightW:
  3177. w.userid == userid ||
  3178. tType == 1 ||
  3179. tType == 4 ||
  3180. w.ateacher == userid,
  3181. }"
  3182. >
  3183. {{ JSON.parse(w.score).wScore }}分
  3184. </div>
  3185. <div
  3186. class="answerScore"
  3187. @click.stop="openScore(w)"
  3188. v-else-if="courseDetail.userid == userid"
  3189. :class="{
  3190. rightW:
  3191. w.userid == userid ||
  3192. tType == 1 ||
  3193. tType == 4 ||
  3194. w.ateacher == userid,
  3195. }"
  3196. >
  3197. 评分
  3198. </div>
  3199. <img
  3200. class="deleteImg"
  3201. src="../assets/deleteworks.png"
  3202. v-if="
  3203. w.userid == userid || tType == 1 || tType == 4
  3204. "
  3205. @click.stop="deleteWorks(w.wid)"
  3206. alt
  3207. />
  3208. </div>
  3209. <div
  3210. class="workImg"
  3211. style="cursor: pointer"
  3212. v-if="w.type == 1"
  3213. >
  3214. <img :src="word" @click="openFile(w.works)" alt />
  3215. <!-- @click="openFile(w.works)" -->
  3216. <div
  3217. class="answerScore"
  3218. v-if="w.score"
  3219. @click.stop="openScore(w)"
  3220. :class="{
  3221. rightW:
  3222. w.userid == userid ||
  3223. tType == 1 ||
  3224. tType == 4 ||
  3225. w.ateacher == userid,
  3226. }"
  3227. >
  3228. {{ JSON.parse(w.score).wScore }}分
  3229. </div>
  3230. <div
  3231. class="answerScore"
  3232. @click.stop="openScore(w)"
  3233. v-else-if="courseDetail.userid == userid"
  3234. :class="{
  3235. rightW:
  3236. w.userid == userid ||
  3237. tType == 1 ||
  3238. tType == 4 ||
  3239. w.ateacher == userid,
  3240. }"
  3241. >
  3242. 评分
  3243. </div>
  3244. <img
  3245. class="deleteImg"
  3246. src="../assets/deleteworks.png"
  3247. v-if="
  3248. w.userid == userid || tType == 1 || tType == 4
  3249. "
  3250. @click.stop="deleteWorks(w.wid)"
  3251. alt
  3252. />
  3253. </div>
  3254. <div class="workImg" v-if="w.type == 3">
  3255. <img
  3256. style="cursor: pointer"
  3257. :src="video"
  3258. @click="openVideo(w)"
  3259. alt
  3260. />
  3261. <!-- @click="openVideo(w.works)" -->
  3262. <div
  3263. class="answerScore"
  3264. v-if="w.score"
  3265. @click.stop="openScore(w)"
  3266. :class="{
  3267. rightW:
  3268. w.userid == userid ||
  3269. tType == 1 ||
  3270. tType == 4 ||
  3271. w.ateacher == userid,
  3272. }"
  3273. >
  3274. {{ JSON.parse(w.score).wScore }}分
  3275. </div>
  3276. <div
  3277. class="answerScore"
  3278. @click.stop="openScore(w)"
  3279. v-else-if="courseDetail.userid == userid"
  3280. :class="{
  3281. rightW:
  3282. w.userid == userid ||
  3283. tType == 1 ||
  3284. tType == 4 ||
  3285. w.ateacher == userid,
  3286. }"
  3287. >
  3288. 评分
  3289. </div>
  3290. <img
  3291. class="deleteImg"
  3292. src="../assets/deleteworks.png"
  3293. v-if="
  3294. w.userid == userid || tType == 1 || tType == 4
  3295. "
  3296. @click.stop="deleteWorks(w.wid)"
  3297. alt
  3298. />
  3299. </div>
  3300. <div class="comment" style="min-width: 200px">
  3301. <div class="worksName">
  3302. <div
  3303. style="cursor: pointer"
  3304. @click="
  3305. openSname(w.sName, w.wid, toolIndex, w.userid)
  3306. "
  3307. >
  3308. {{ w.sName }}
  3309. </div>
  3310. </div>
  3311. <div class="commentList">
  3312. <div class="commentList">
  3313. <div
  3314. class="commentImg"
  3315. @click="
  3316. isLikes(w.wid, userid, 1, null, w.isLikes)
  3317. "
  3318. >
  3319. <img
  3320. :src="w.isLikes == true ? likes : noLikes"
  3321. alt=""
  3322. />
  3323. </div>
  3324. <div>{{ w.likesCount }}</div>
  3325. </div>
  3326. <div class="commentList" style="margin-right: 15px">
  3327. <div
  3328. class="commentImg"
  3329. @click="commentOther(w, toolIndex, wIndex)"
  3330. >
  3331. <img
  3332. src="../assets/icon/comment/comment.png"
  3333. alt=""
  3334. />
  3335. </div>
  3336. <div>{{ w.commentCount }}</div>
  3337. </div>
  3338. </div>
  3339. </div>
  3340. </div>
  3341. </div>
  3342. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3343. 未提交
  3344. </div>
  3345. <div
  3346. class="noWorksS"
  3347. v-if="noWorksS && noWorksS[toolIndex].length"
  3348. >
  3349. <div
  3350. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3351. :key="sIndex"
  3352. class="noWorksName"
  3353. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3354. >
  3355. {{ s.student }}
  3356. </div>
  3357. </div>
  3358. </div>
  3359. <div
  3360. v-if="
  3361. tType &&
  3362. ((tType == 2 && sIsOpen == true) ||
  3363. tType == 1 ||
  3364. tType == 4) &&
  3365. tool.tool.indexOf(4) != -1 &&
  3366. (tool.askJson[0].answer ||
  3367. tool.askJson[0].answer === 0) &&
  3368. checkJson[toolIndex].length
  3369. "
  3370. class="xuan_right_box"
  3371. >
  3372. <div
  3373. class="tool_right_box"
  3374. v-for="(item, index) in tool.askJson"
  3375. :key="index"
  3376. >
  3377. <div>
  3378. <span
  3379. style="word-break: break-all; white-space: normal"
  3380. >{{ index + 1 + "、" + item.askstitle }}</span
  3381. >
  3382. </div>
  3383. <div class="right_box_xuan">
  3384. <span>正确率</span>
  3385. <span>{{
  3386. (checkJson[toolIndex][index].right
  3387. ? checkJson[toolIndex][index].right
  3388. : 0) + "%"
  3389. }}</span>
  3390. </div>
  3391. </div>
  3392. </div>
  3393. <div
  3394. class="xuan_right_box"
  3395. style="background: unset; padding: 0 10px"
  3396. v-if="
  3397. tType &&
  3398. ((tType == 2 && sIsOpen == true) ||
  3399. tType == 1 ||
  3400. tType == 4) &&
  3401. tool.tool.indexOf(4) != -1
  3402. "
  3403. >
  3404. <AskStatic
  3405. v-if="
  3406. worksStudent.length &&
  3407. worksStudent[toolIndex].length > 0
  3408. "
  3409. :askJSON="tool"
  3410. :checkJson="checkJson[toolIndex]"
  3411. ></AskStatic>
  3412. </div>
  3413. <div
  3414. v-if="
  3415. tType &&
  3416. ((tType == 2 && sIsOpen == true) ||
  3417. tType == 1 ||
  3418. tType == 4) &&
  3419. tool.tool.indexOf(4) != -1
  3420. "
  3421. class="worksBox"
  3422. >
  3423. <div
  3424. class="zuoyeYulan"
  3425. v-if="
  3426. worksStudent.length &&
  3427. worksStudent[toolIndex].length > 0
  3428. "
  3429. >
  3430. <div class="worksTop">
  3431. <div>作业预览</div>
  3432. <div
  3433. class="corOpen"
  3434. @click="contract(toolIndex)"
  3435. v-if="
  3436. worksStudent[toolIndex].length > 6 &&
  3437. isCloseList[toolIndex].isClose == 0
  3438. "
  3439. >
  3440. 收缩
  3441. </div>
  3442. <div
  3443. class="corOpen"
  3444. @click="contract(toolIndex)"
  3445. v-if="isCloseList[toolIndex].isClose == 1"
  3446. >
  3447. 展开
  3448. </div>
  3449. </div>
  3450. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3451. </div>
  3452. <div>
  3453. <div
  3454. class="worksDetailBox"
  3455. v-if="
  3456. worksStudent.length &&
  3457. worksStudent[toolIndex].length > 0
  3458. "
  3459. >
  3460. <div
  3461. v-for="(w, wIndex) in isCloseList[toolIndex]
  3462. .isClose == 0
  3463. ? worksStudent[toolIndex]
  3464. : worksStudent[toolIndex].slice(0, 6)"
  3465. :key="wIndex"
  3466. class="isWorksName2"
  3467. @click="
  3468. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3469. "
  3470. >
  3471. {{ w.sName }}
  3472. <img
  3473. class="deleteImg deleteImg2"
  3474. src="../assets/deleteworks.png"
  3475. v-if="
  3476. w.userid == userid || tType == 1 || tType == 4
  3477. "
  3478. @click.stop="deleteWorks(w.wid)"
  3479. alt
  3480. />
  3481. </div>
  3482. <!-- <div class="works" style="
  3483. width: 200px;
  3484. height: 140px;
  3485. border-radius: 10px;
  3486. box-shadow: 0 0 6px 1px #dfdada;
  3487. overflow: hidden;
  3488. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3489. <div class="workImg">
  3490. <img src="../assets/icon/works/noImg.png" @click="
  3491. openTools(
  3492. 4,
  3493. toolIndex,
  3494. taskCount,
  3495. w.works,
  3496. w.sName
  3497. )
  3498. " alt />
  3499. </div>
  3500. <div class="worksName">
  3501. <div>{{ w.sName }}</div>
  3502. <div>{{ w.time }}</div>
  3503. </div>
  3504. </div> -->
  3505. </div>
  3506. </div>
  3507. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3508. 未提交
  3509. </div>
  3510. <div
  3511. class="noWorksS"
  3512. v-if="noWorksS && noWorksS[toolIndex].length"
  3513. >
  3514. <div
  3515. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3516. :key="sIndex"
  3517. class="noWorksName"
  3518. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3519. >
  3520. {{ s.student }}
  3521. </div>
  3522. </div>
  3523. </div>
  3524. <div
  3525. v-if="
  3526. tType &&
  3527. ((tType == 2 && sIsOpen == true) ||
  3528. tType == 1 ||
  3529. tType == 4) &&
  3530. tool.tool.indexOf(45) != -1 &&
  3531. (tool.testJson.testJson[0].answer ||
  3532. tool.testJson.testJson[0].answer === 0) &&
  3533. checkJson[toolIndex].length
  3534. "
  3535. class="xuan_right_box"
  3536. >
  3537. <div
  3538. class="tool_right_box"
  3539. v-for="(item, index) in tool.testJson.testJson"
  3540. :key="index"
  3541. >
  3542. <div class="right_box_xuan" style="margin-right: 10px">
  3543. <span>正确率</span>
  3544. <span>{{
  3545. (checkJson[toolIndex][index].right
  3546. ? checkJson[toolIndex][index].right
  3547. : 0) + "%"
  3548. }}</span>
  3549. </div>
  3550. <div>
  3551. <span
  3552. style="word-break: break-all; white-space: normal"
  3553. >{{ index + 1 + "、" + item.teststitle }}</span
  3554. >
  3555. </div>
  3556. </div>
  3557. </div>
  3558. <div
  3559. class="xuan_right_box"
  3560. style="background: unset; padding: 0 10px; width: 91.5%"
  3561. v-if="
  3562. tType &&
  3563. ((tType == 2 && sIsOpen == true) ||
  3564. tType == 1 ||
  3565. tType == 4) &&
  3566. tool.tool.indexOf(45) != -1
  3567. "
  3568. >
  3569. <AskStatic2
  3570. v-if="
  3571. worksStudent.length &&
  3572. worksStudent[toolIndex].length > 0
  3573. "
  3574. :askJSON="tool"
  3575. :checkJson="checkJson[toolIndex]"
  3576. ></AskStatic2>
  3577. </div>
  3578. <div
  3579. v-if="
  3580. tType &&
  3581. ((tType == 2 && sIsOpen == true) ||
  3582. tType == 1 ||
  3583. tType == 4) &&
  3584. tool.tool.indexOf(45) != -1
  3585. "
  3586. class="worksBox"
  3587. >
  3588. <div
  3589. class="zuoyeYulan"
  3590. v-if="
  3591. worksStudent.length &&
  3592. worksStudent[toolIndex].length > 0
  3593. "
  3594. >
  3595. <div class="worksTop">
  3596. <div>作业预览</div>
  3597. <div
  3598. class="corOpen"
  3599. @click="contract(toolIndex)"
  3600. v-if="
  3601. worksStudent[toolIndex].length > 6 &&
  3602. isCloseList[toolIndex].isClose == 0
  3603. "
  3604. >
  3605. 收缩
  3606. </div>
  3607. <div
  3608. class="corOpen"
  3609. @click="contract(toolIndex)"
  3610. v-if="isCloseList[toolIndex].isClose == 1"
  3611. >
  3612. 展开
  3613. </div>
  3614. </div>
  3615. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3616. </div>
  3617. <div>
  3618. <div
  3619. class="worksDetailBox"
  3620. v-if="
  3621. worksStudent.length &&
  3622. worksStudent[toolIndex].length > 0
  3623. "
  3624. >
  3625. <div
  3626. v-for="(w, wIndex) in isCloseList[toolIndex]
  3627. .isClose == 0
  3628. ? worksStudent[toolIndex]
  3629. : worksStudent[toolIndex].slice(0, 6)"
  3630. :key="wIndex"
  3631. class="isWorksName2"
  3632. @click="
  3633. openTools(
  3634. 45,
  3635. toolIndex,
  3636. taskCount,
  3637. w.works,
  3638. w.sName
  3639. )
  3640. "
  3641. >
  3642. {{ w.sName }}
  3643. <img
  3644. class="deleteImg deleteImg2"
  3645. src="../assets/deleteworks.png"
  3646. v-if="
  3647. w.userid == userid || tType == 1 || tType == 4
  3648. "
  3649. @click.stop="deleteWorks(w.wid)"
  3650. alt
  3651. />
  3652. </div>
  3653. </div>
  3654. </div>
  3655. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3656. 未提交
  3657. </div>
  3658. <div
  3659. class="noWorksS"
  3660. v-if="noWorksS && noWorksS[toolIndex].length"
  3661. >
  3662. <div
  3663. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3664. :key="sIndex"
  3665. class="noWorksName"
  3666. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  3667. >
  3668. {{ s.student }}
  3669. </div>
  3670. </div>
  3671. </div>
  3672. <div
  3673. v-if="
  3674. tType &&
  3675. ((tType == 2 && sIsOpen == true) ||
  3676. tType == 1 ||
  3677. tType == 4) &&
  3678. tool.tool.indexOf(15) != -1
  3679. "
  3680. class="worksBox"
  3681. >
  3682. <div
  3683. class="zuoyeYulan"
  3684. v-if="
  3685. worksStudent.length &&
  3686. worksStudent[toolIndex].length > 0
  3687. "
  3688. >
  3689. <div class="worksTop">
  3690. <div>作业预览</div>
  3691. <div
  3692. class="corOpen"
  3693. @click="contract(toolIndex)"
  3694. v-if="
  3695. worksStudent[toolIndex].length > 6 &&
  3696. isCloseList[toolIndex].isClose == 0
  3697. "
  3698. >
  3699. 收缩
  3700. </div>
  3701. <div
  3702. class="corOpen"
  3703. @click="contract(toolIndex)"
  3704. v-if="isCloseList[toolIndex].isClose == 1"
  3705. >
  3706. 展开
  3707. </div>
  3708. </div>
  3709. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3710. </div>
  3711. <div
  3712. class="group_workBox"
  3713. v-for="(g, gindex) in courseGroup.group"
  3714. :key="gindex"
  3715. >
  3716. <div class="group_box">
  3717. <div class="group_title">
  3718. <el-tooltip
  3719. class="item"
  3720. effect="light"
  3721. :content="g.name"
  3722. placement="top"
  3723. >
  3724. <div class="group_name">{{ g.name }}</div>
  3725. </el-tooltip>
  3726. </div>
  3727. <div
  3728. class="group_work"
  3729. v-if="
  3730. g.works &&
  3731. g.works.length &&
  3732. g.works[toolIndex].length
  3733. "
  3734. >
  3735. <div
  3736. class="works"
  3737. v-for="(w, wIndex) in g.works[toolIndex]"
  3738. :key="wIndex"
  3739. >
  3740. <div
  3741. class="workImg"
  3742. style="
  3743. border-radius: 15px;
  3744. box-shadow: #eee 0px 0px 5px 5px;
  3745. "
  3746. >
  3747. <div
  3748. class="answerBg"
  3749. style="border-radius: 15px 15px 0 0"
  3750. @click="
  3751. commentOther(w, toolIndex, wIndex, null, g.id)
  3752. "
  3753. >
  3754. <div class="answerContent">
  3755. {{ JSON.parse(w.works)[0].answer }}
  3756. </div>
  3757. <div
  3758. class="answerScore"
  3759. v-if="w.score"
  3760. @click.stop="openScore(w)"
  3761. :class="{
  3762. rightW:
  3763. w.userid == userid ||
  3764. tType == 1 ||
  3765. tType == 4,
  3766. }"
  3767. >
  3768. {{ JSON.parse(w.score).wScore }}分
  3769. </div>
  3770. <div
  3771. class="answerScore"
  3772. @click.stop="openScore(w)"
  3773. v-else-if="courseDetail.userid == userid"
  3774. :class="{
  3775. rightW:
  3776. w.userid == userid ||
  3777. tType == 1 ||
  3778. tType == 4,
  3779. }"
  3780. >
  3781. 评分
  3782. </div>
  3783. <img
  3784. class="deleteImg"
  3785. src="../assets/deleteworks.png"
  3786. v-if="
  3787. w.userid == userid ||
  3788. tType == 1 ||
  3789. tType == 4
  3790. "
  3791. @click.stop="deleteWorks(w.wid)"
  3792. alt
  3793. />
  3794. </div>
  3795. <div class="comment">
  3796. <div class="worksName">
  3797. <div>{{ w.sName }}</div>
  3798. </div>
  3799. <div class="commentList">
  3800. <div
  3801. class="commentImg"
  3802. @click="
  3803. isLikes(w.wid, userid, 1, null, w.isLikes)
  3804. "
  3805. >
  3806. <img
  3807. :src="w.isLikes == true ? likes : noLikes"
  3808. alt=""
  3809. />
  3810. </div>
  3811. <div>{{ w.likesCount }}</div>
  3812. </div>
  3813. <div
  3814. class="commentList"
  3815. style="margin-right: 15px"
  3816. >
  3817. <div
  3818. class="commentImg"
  3819. @click="
  3820. commentOther(
  3821. w,
  3822. toolIndex,
  3823. wIndex,
  3824. null,
  3825. g.id
  3826. )
  3827. "
  3828. >
  3829. <img
  3830. src="../assets/icon/comment/comment.png"
  3831. alt=""
  3832. />
  3833. </div>
  3834. <div>{{ w.commentCount }}</div>
  3835. </div>
  3836. </div>
  3837. </div>
  3838. </div>
  3839. </div>
  3840. <div class="group_work" v-else>暂无提交作业</div>
  3841. </div>
  3842. </div>
  3843. <div
  3844. class="worksDetailBox"
  3845. v-if="
  3846. worksStudent.length &&
  3847. worksStudent[toolIndex].length > 0
  3848. "
  3849. >
  3850. <div
  3851. class="works"
  3852. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3853. 0
  3854. ? worksStudent[toolIndex]
  3855. : worksStudent[toolIndex].slice(0, 6)"
  3856. :key="wIndex"
  3857. >
  3858. <div
  3859. class="workImg"
  3860. style="
  3861. border-radius: 15px;
  3862. box-shadow: #eee 0px 0px 5px 5px;
  3863. "
  3864. >
  3865. <!-- <img
  3866. src="../assets/icon/works/noImg.png"
  3867. @click="openTools(15, toolIndex, taskCount, w.works)"
  3868. alt=""
  3869. />-->
  3870. <div
  3871. class="answerBg"
  3872. style="border-radius: 15px 15px 0 0"
  3873. @click="commentOther(w, toolIndex, wIndex)"
  3874. >
  3875. <!-- <div>{{ w.sName }}</div> -->
  3876. <div class="answerContent">
  3877. {{ JSON.parse(w.works)[0].answer }}
  3878. </div>
  3879. <div
  3880. class="answerScore"
  3881. v-if="w.score"
  3882. @click.stop="openScore(w)"
  3883. :class="{
  3884. rightW:
  3885. w.userid == userid ||
  3886. tType == 1 ||
  3887. tType == 4,
  3888. }"
  3889. >
  3890. {{ JSON.parse(w.score).wScore }}分
  3891. </div>
  3892. <div
  3893. class="answerScore"
  3894. @click.stop="openScore(w)"
  3895. v-else-if="courseDetail.userid == userid"
  3896. :class="{
  3897. rightW:
  3898. w.userid == userid ||
  3899. tType == 1 ||
  3900. tType == 4,
  3901. }"
  3902. >
  3903. 评分
  3904. </div>
  3905. <img
  3906. class="deleteImg"
  3907. src="../assets/deleteworks.png"
  3908. v-if="
  3909. w.userid == userid || tType == 1 || tType == 4
  3910. "
  3911. @click.stop="deleteWorks(w.wid)"
  3912. alt
  3913. />
  3914. </div>
  3915. <div class="comment">
  3916. <div class="worksName">
  3917. <div>{{ w.sName }}</div>
  3918. </div>
  3919. <div class="commentList">
  3920. <div
  3921. class="commentImg"
  3922. @click="
  3923. isLikes(w.wid, userid, 1, null, w.isLikes)
  3924. "
  3925. >
  3926. <img
  3927. :src="w.isLikes == true ? likes : noLikes"
  3928. alt=""
  3929. />
  3930. </div>
  3931. <div>{{ w.likesCount }}</div>
  3932. </div>
  3933. <div class="commentList" style="margin-right: 15px">
  3934. <div
  3935. class="commentImg"
  3936. @click="commentOther(w, toolIndex, wIndex)"
  3937. >
  3938. <img
  3939. src="../assets/icon/comment/comment.png"
  3940. alt=""
  3941. />
  3942. </div>
  3943. <div>{{ w.commentCount }}</div>
  3944. </div>
  3945. </div>
  3946. </div>
  3947. </div>
  3948. </div>
  3949. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3950. 未提交
  3951. </div>
  3952. <div
  3953. class="noWorksS"
  3954. v-if="noWorksS && noWorksS[toolIndex].length"
  3955. >
  3956. <div
  3957. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3958. :key="sIndex"
  3959. class="noWorksName"
  3960. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  3961. >
  3962. {{ s.student }}
  3963. </div>
  3964. </div>
  3965. </div>
  3966. <div
  3967. v-if="
  3968. tType &&
  3969. ((tType == 2 && sIsOpen == true) ||
  3970. tType == 1 ||
  3971. tType == 4) &&
  3972. tool.tool.indexOf(1) != -1
  3973. "
  3974. class="worksBox"
  3975. >
  3976. <div
  3977. class="zuoyeYulan"
  3978. v-if="
  3979. worksStudent.length &&
  3980. worksStudent[toolIndex].length > 0
  3981. "
  3982. >
  3983. <div class="worksTop">
  3984. <div>作业预览</div>
  3985. <div
  3986. class="corOpen"
  3987. @click="contract(toolIndex)"
  3988. v-if="
  3989. worksStudent[toolIndex].length > 6 &&
  3990. isCloseList[toolIndex].isClose == 0
  3991. "
  3992. >
  3993. 收缩
  3994. </div>
  3995. <div
  3996. class="corOpen"
  3997. @click="contract(toolIndex)"
  3998. v-if="isCloseList[toolIndex].isClose == 1"
  3999. >
  4000. 展开
  4001. </div>
  4002. </div>
  4003. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4004. </div>
  4005. <div
  4006. class="group_workBox"
  4007. v-for="(g, gindex) in courseGroup.group"
  4008. :key="gindex"
  4009. >
  4010. <div class="group_box">
  4011. <div class="group_title">
  4012. <el-tooltip
  4013. class="item"
  4014. effect="light"
  4015. :content="g.name"
  4016. placement="top"
  4017. >
  4018. <div class="group_name">{{ g.name }}</div>
  4019. </el-tooltip>
  4020. </div>
  4021. <div
  4022. class="group_work"
  4023. v-if="
  4024. g.works &&
  4025. g.works.length &&
  4026. g.works[toolIndex].length
  4027. "
  4028. >
  4029. <div
  4030. class="works"
  4031. style="
  4032. width: 200px;
  4033. height: 140px;
  4034. margin: 10px 10px 10px 0;
  4035. border-radius: 15px;
  4036. box-shadow: 0 0 6px 1px #dfdada;
  4037. "
  4038. v-for="(w, wIndex) in g.works[toolIndex]"
  4039. :key="wIndex"
  4040. :class="w.type == 1 ? 'isTypeOne' : ''"
  4041. >
  4042. <div class="workImg">
  4043. <img
  4044. :src="w.works"
  4045. @click="previewImg(w.works)"
  4046. alt
  4047. />
  4048. <div
  4049. class="answerScore"
  4050. v-if="w.score"
  4051. @click.stop="openScore(w)"
  4052. :class="{
  4053. rightW:
  4054. w.userid == userid ||
  4055. tType == 1 ||
  4056. tType == 4,
  4057. }"
  4058. >
  4059. {{ JSON.parse(w.score).wScore }}分
  4060. </div>
  4061. <div
  4062. class="answerScore"
  4063. @click.stop="openScore(w)"
  4064. v-else-if="courseDetail.userid == userid"
  4065. :class="{
  4066. rightW:
  4067. w.userid == userid ||
  4068. tType == 1 ||
  4069. tType == 4,
  4070. }"
  4071. >
  4072. 评分
  4073. </div>
  4074. <img
  4075. class="deleteImg"
  4076. src="../assets/deleteworks.png"
  4077. v-if="
  4078. w.userid == userid || tType == 1 || tType == 4
  4079. "
  4080. @click.stop="deleteWorks(w.wid)"
  4081. alt
  4082. />
  4083. </div>
  4084. <div class="comment" style="min-width: 200px">
  4085. <div class="worksName">
  4086. <div>{{ w.sName }}</div>
  4087. </div>
  4088. <div class="commentList">
  4089. <div class="commentList">
  4090. <div
  4091. class="commentImg"
  4092. @click="
  4093. isLikes(w.wid, userid, 1, null, w.isLikes)
  4094. "
  4095. >
  4096. <img
  4097. :src="w.isLikes == true ? likes : noLikes"
  4098. alt=""
  4099. />
  4100. </div>
  4101. <div>{{ w.likesCount }}</div>
  4102. </div>
  4103. <div
  4104. class="commentList"
  4105. style="margin-right: 15px"
  4106. >
  4107. <div
  4108. class="commentImg"
  4109. @click="
  4110. commentOther(
  4111. w,
  4112. toolIndex,
  4113. wIndex,
  4114. null,
  4115. g.id
  4116. )
  4117. "
  4118. >
  4119. <img
  4120. src="../assets/icon/comment/comment.png"
  4121. alt=""
  4122. />
  4123. </div>
  4124. <div>{{ w.commentCount }}</div>
  4125. </div>
  4126. </div>
  4127. </div>
  4128. </div>
  4129. </div>
  4130. <div class="group_work" v-else>暂无提交作业</div>
  4131. </div>
  4132. </div>
  4133. <div
  4134. class="worksDetailBox"
  4135. v-if="
  4136. worksStudent.length &&
  4137. worksStudent[toolIndex].length > 0
  4138. "
  4139. >
  4140. <div
  4141. class="works"
  4142. style="
  4143. width: 200px;
  4144. height: 140px;
  4145. margin: 10px 10px 10px 0;
  4146. border-radius: 15px;
  4147. box-shadow: 0 0 6px 1px #dfdada;
  4148. "
  4149. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4150. 0
  4151. ? worksStudent[toolIndex]
  4152. : worksStudent[toolIndex].slice(0, 6)"
  4153. :key="wIndex"
  4154. >
  4155. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4156. <div class="workImg">
  4157. <img
  4158. :src="w.works"
  4159. @click="previewImg(w.works)"
  4160. alt
  4161. />
  4162. <div
  4163. class="answerScore"
  4164. v-if="w.score"
  4165. @click.stop="openScore(w)"
  4166. :class="{
  4167. rightW:
  4168. w.userid == userid || tType == 1 || tType == 4,
  4169. }"
  4170. >
  4171. {{ JSON.parse(w.score).wScore }}分
  4172. </div>
  4173. <div
  4174. class="answerScore"
  4175. @click.stop="openScore(w)"
  4176. v-else-if="courseDetail.userid == userid"
  4177. :class="{
  4178. rightW:
  4179. w.userid == userid || tType == 1 || tType == 4,
  4180. }"
  4181. >
  4182. 评分
  4183. </div>
  4184. <img
  4185. class="deleteImg"
  4186. src="../assets/deleteworks.png"
  4187. v-if="
  4188. w.userid == userid || tType == 1 || tType == 4
  4189. "
  4190. @click.stop="deleteWorks(w.wid)"
  4191. alt
  4192. />
  4193. </div>
  4194. <div class="comment" style="min-width: 200px">
  4195. <div class="worksName">
  4196. <div>{{ w.sName }}</div>
  4197. </div>
  4198. <div class="commentList">
  4199. <div class="commentList">
  4200. <div
  4201. class="commentImg"
  4202. @click="
  4203. isLikes(w.wid, userid, 1, null, w.isLikes)
  4204. "
  4205. >
  4206. <img
  4207. :src="w.isLikes == true ? likes : noLikes"
  4208. alt=""
  4209. />
  4210. </div>
  4211. <div>{{ w.likesCount }}</div>
  4212. </div>
  4213. <div class="commentList" style="margin-right: 15px">
  4214. <div
  4215. class="commentImg"
  4216. @click="commentOther(w, toolIndex, wIndex)"
  4217. >
  4218. <img
  4219. src="../assets/icon/comment/comment.png"
  4220. alt=""
  4221. />
  4222. </div>
  4223. <div>{{ w.commentCount }}</div>
  4224. </div>
  4225. </div>
  4226. </div>
  4227. </div>
  4228. </div>
  4229. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4230. 未提交
  4231. </div>
  4232. <div
  4233. class="noWorksS"
  4234. v-if="noWorksS && noWorksS[toolIndex].length"
  4235. >
  4236. <div
  4237. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4238. :key="sIndex"
  4239. class="noWorksName"
  4240. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4241. >
  4242. {{ s.student }}
  4243. </div>
  4244. </div>
  4245. </div>
  4246. <div
  4247. v-if="
  4248. tType &&
  4249. ((tType == 2 && sIsOpen == true) ||
  4250. tType == 1 ||
  4251. tType == 4) &&
  4252. tool.tool.indexOf(3) != -1
  4253. "
  4254. class="worksBox"
  4255. >
  4256. <div
  4257. class="zuoyeYulan"
  4258. v-if="
  4259. worksStudent.length &&
  4260. worksStudent[toolIndex].length > 0
  4261. "
  4262. >
  4263. <div class="worksTop">
  4264. <div>作业预览</div>
  4265. <div
  4266. class="corOpen"
  4267. @click="contract(toolIndex)"
  4268. v-if="
  4269. worksStudent[toolIndex].length > 6 &&
  4270. isCloseList[toolIndex].isClose == 0
  4271. "
  4272. >
  4273. 收缩
  4274. </div>
  4275. <div
  4276. class="corOpen"
  4277. @click="contract(toolIndex)"
  4278. v-if="isCloseList[toolIndex].isClose == 1"
  4279. >
  4280. 展开
  4281. </div>
  4282. </div>
  4283. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4284. </div>
  4285. <div
  4286. class="group_workBox"
  4287. v-for="(g, gindex) in courseGroup.group"
  4288. :key="gindex"
  4289. >
  4290. <div class="group_box">
  4291. <div class="group_title">
  4292. <el-tooltip
  4293. class="item"
  4294. effect="light"
  4295. :content="g.name"
  4296. placement="top"
  4297. >
  4298. <div class="group_name">{{ g.name }}</div>
  4299. </el-tooltip>
  4300. </div>
  4301. <div
  4302. class="group_work"
  4303. v-if="
  4304. g.works &&
  4305. g.works.length &&
  4306. g.works[toolIndex].length
  4307. "
  4308. >
  4309. <div
  4310. class="works"
  4311. style="
  4312. width: 200px;
  4313. height: 140px;
  4314. margin: 10px 10px 10px 0;
  4315. border-radius: 15px;
  4316. box-shadow: 0 0 6px 1px #dfdada;
  4317. "
  4318. v-for="(w, wIndex) in g.works[toolIndex]"
  4319. :key="wIndex"
  4320. :class="w.type == 1 ? 'isTypeOne' : ''"
  4321. >
  4322. <div class="workImg">
  4323. <img
  4324. :src="w.works"
  4325. @click="previewImg(w.works)"
  4326. alt
  4327. />
  4328. <div
  4329. class="answerScore"
  4330. v-if="w.score"
  4331. @click.stop="openScore(w)"
  4332. :class="{
  4333. rightW:
  4334. w.userid == userid ||
  4335. tType == 1 ||
  4336. tType == 4,
  4337. }"
  4338. >
  4339. {{ JSON.parse(w.score).wScore }}分
  4340. </div>
  4341. <div
  4342. class="answerScore"
  4343. @click.stop="openScore(w)"
  4344. v-else-if="courseDetail.userid == userid"
  4345. :class="{
  4346. rightW:
  4347. w.userid == userid ||
  4348. tType == 1 ||
  4349. tType == 4,
  4350. }"
  4351. >
  4352. 评分
  4353. </div>
  4354. <img
  4355. class="deleteImg"
  4356. src="../assets/deleteworks.png"
  4357. v-if="
  4358. w.userid == userid || tType == 1 || tType == 4
  4359. "
  4360. @click.stop="deleteWorks(w.wid)"
  4361. alt
  4362. />
  4363. </div>
  4364. <div class="comment" style="min-width: 200px">
  4365. <div class="worksName">
  4366. <div>{{ w.sName }}</div>
  4367. </div>
  4368. <div class="commentList">
  4369. <div class="commentList">
  4370. <div
  4371. class="commentImg"
  4372. @click="
  4373. isLikes(w.wid, userid, 1, null, w.isLikes)
  4374. "
  4375. >
  4376. <img
  4377. :src="w.isLikes == true ? likes : noLikes"
  4378. alt=""
  4379. />
  4380. </div>
  4381. <div>{{ w.likesCount }}</div>
  4382. </div>
  4383. <div
  4384. class="commentList"
  4385. style="margin-right: 15px"
  4386. >
  4387. <div
  4388. class="commentImg"
  4389. @click="
  4390. commentOther(
  4391. w,
  4392. toolIndex,
  4393. wIndex,
  4394. null,
  4395. g.id
  4396. )
  4397. "
  4398. >
  4399. <img
  4400. src="../assets/icon/comment/comment.png"
  4401. alt=""
  4402. />
  4403. </div>
  4404. <div>{{ w.commentCount }}</div>
  4405. </div>
  4406. </div>
  4407. </div>
  4408. </div>
  4409. </div>
  4410. <div class="group_work" v-else>暂无提交作业</div>
  4411. </div>
  4412. </div>
  4413. <div
  4414. class="worksDetailBox"
  4415. v-if="
  4416. worksStudent.length &&
  4417. worksStudent[toolIndex].length > 0
  4418. "
  4419. >
  4420. <div
  4421. class="works"
  4422. style="
  4423. width: 200px;
  4424. height: 140px;
  4425. margin: 10px 10px 10px 0;
  4426. border-radius: 15px;
  4427. box-shadow: 0 0 6px 1px #dfdada;
  4428. "
  4429. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4430. 0
  4431. ? worksStudent[toolIndex]
  4432. : worksStudent[toolIndex].slice(0, 6)"
  4433. :key="wIndex"
  4434. >
  4435. <!-- @click="previewImg(w.works)" -->
  4436. <div class="workImg">
  4437. <img
  4438. :src="w.works"
  4439. @click="previewImg(w.works)"
  4440. alt
  4441. />
  4442. <div
  4443. class="answerScore"
  4444. v-if="w.score"
  4445. @click.stop="openScore(w)"
  4446. :class="{
  4447. rightW:
  4448. w.userid == userid || tType == 1 || tType == 4,
  4449. }"
  4450. >
  4451. {{ JSON.parse(w.score).wScore }}分
  4452. </div>
  4453. <div
  4454. class="answerScore"
  4455. @click.stop="openScore(w)"
  4456. v-else-if="courseDetail.userid == userid"
  4457. :class="{
  4458. rightW:
  4459. w.userid == userid || tType == 1 || tType == 4,
  4460. }"
  4461. >
  4462. 评分
  4463. </div>
  4464. <img
  4465. class="deleteImg"
  4466. src="../assets/deleteworks.png"
  4467. v-if="
  4468. w.userid == userid || tType == 1 || tType == 4
  4469. "
  4470. @click.stop="deleteWorks(w.wid)"
  4471. alt
  4472. />
  4473. </div>
  4474. <div class="comment" style="min-width: 200px">
  4475. <div class="worksName">
  4476. <div>{{ w.sName }}</div>
  4477. </div>
  4478. <div class="commentList">
  4479. <div class="commentList">
  4480. <div
  4481. class="commentImg"
  4482. @click="
  4483. isLikes(w.wid, userid, 1, null, w.isLikes)
  4484. "
  4485. >
  4486. <img
  4487. :src="w.isLikes == true ? likes : noLikes"
  4488. alt=""
  4489. />
  4490. </div>
  4491. <div>{{ w.likesCount }}</div>
  4492. </div>
  4493. <div class="commentList" style="margin-right: 15px">
  4494. <div
  4495. class="commentImg"
  4496. @click="commentOther(w, toolIndex, wIndex)"
  4497. >
  4498. <img
  4499. src="../assets/icon/comment/comment.png"
  4500. alt=""
  4501. />
  4502. </div>
  4503. <div>{{ w.commentCount }}</div>
  4504. </div>
  4505. </div>
  4506. </div>
  4507. </div>
  4508. </div>
  4509. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4510. 未提交
  4511. </div>
  4512. <div
  4513. class="noWorksS"
  4514. v-if="noWorksS && noWorksS[toolIndex].length"
  4515. >
  4516. <div
  4517. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4518. :key="sIndex"
  4519. class="noWorksName"
  4520. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4521. >
  4522. {{ s.student }}
  4523. </div>
  4524. </div>
  4525. </div>
  4526. <div
  4527. v-if="
  4528. tType &&
  4529. ((tType == 2 && sIsOpen == true) ||
  4530. tType == 1 ||
  4531. tType == 4) &&
  4532. tool.tool.indexOf(6) != -1
  4533. "
  4534. class="worksBox"
  4535. >
  4536. <div
  4537. class="zuoyeYulan"
  4538. v-if="
  4539. worksStudent.length &&
  4540. worksStudent[toolIndex].length > 0
  4541. "
  4542. >
  4543. <div class="worksTop">
  4544. <div>作业预览</div>
  4545. <div
  4546. class="corOpen"
  4547. @click="contract(toolIndex)"
  4548. v-if="
  4549. worksStudent[toolIndex].length > 6 &&
  4550. isCloseList[toolIndex].isClose == 0
  4551. "
  4552. >
  4553. 收缩
  4554. </div>
  4555. <div
  4556. class="corOpen"
  4557. @click="contract(toolIndex)"
  4558. v-if="isCloseList[toolIndex].isClose == 1"
  4559. >
  4560. 展开
  4561. </div>
  4562. </div>
  4563. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4564. </div>
  4565. <div
  4566. class="group_workBox"
  4567. v-for="(g, gindex) in courseGroup.group"
  4568. :key="gindex"
  4569. >
  4570. <div class="group_box">
  4571. <div class="group_title">
  4572. <el-tooltip
  4573. class="item"
  4574. effect="light"
  4575. :content="g.name"
  4576. placement="top"
  4577. >
  4578. <div class="group_name">{{ g.name }}</div>
  4579. </el-tooltip>
  4580. </div>
  4581. <div
  4582. class="group_work"
  4583. v-if="
  4584. g.works &&
  4585. g.works.length &&
  4586. g.works[toolIndex].length
  4587. "
  4588. >
  4589. <div
  4590. class="works"
  4591. style="
  4592. width: 200px;
  4593. height: 140px;
  4594. margin: 10px 10px 10px 0;
  4595. border-radius: 15px;
  4596. box-shadow: 0 0 6px 1px #dfdada;
  4597. "
  4598. v-for="(w, wIndex) in g.works[toolIndex]"
  4599. :key="wIndex"
  4600. :class="w.type == 1 ? 'isTypeOne' : ''"
  4601. >
  4602. <div class="workImg">
  4603. <img
  4604. :src="w.works"
  4605. @click="previewImg(w.works)"
  4606. alt
  4607. />
  4608. <div
  4609. class="answerScore"
  4610. v-if="w.score"
  4611. @click.stop="openScore(w)"
  4612. :class="{
  4613. rightW:
  4614. w.userid == userid ||
  4615. tType == 1 ||
  4616. tType == 4,
  4617. }"
  4618. >
  4619. {{ JSON.parse(w.score).wScore }}分
  4620. </div>
  4621. <div
  4622. class="answerScore"
  4623. @click.stop="openScore(w)"
  4624. v-else-if="courseDetail.userid == userid"
  4625. :class="{
  4626. rightW:
  4627. w.userid == userid ||
  4628. tType == 1 ||
  4629. tType == 4,
  4630. }"
  4631. >
  4632. 评分
  4633. </div>
  4634. <img
  4635. class="deleteImg"
  4636. src="../assets/deleteworks.png"
  4637. v-if="
  4638. w.userid == userid || tType == 1 || tType == 4
  4639. "
  4640. @click.stop="deleteWorks(w.wid)"
  4641. alt
  4642. />
  4643. </div>
  4644. <div class="comment" style="min-width: 200px">
  4645. <div class="worksName">
  4646. <div>{{ w.sName }}</div>
  4647. </div>
  4648. <div class="commentList">
  4649. <div class="commentList">
  4650. <div
  4651. class="commentImg"
  4652. @click="
  4653. isLikes(w.wid, userid, 1, null, w.isLikes)
  4654. "
  4655. >
  4656. <img
  4657. :src="w.isLikes == true ? likes : noLikes"
  4658. alt=""
  4659. />
  4660. </div>
  4661. <div>{{ w.likesCount }}</div>
  4662. </div>
  4663. <div
  4664. class="commentList"
  4665. style="margin-right: 15px"
  4666. >
  4667. <div
  4668. class="commentImg"
  4669. @click="
  4670. commentOther(
  4671. w,
  4672. toolIndex,
  4673. wIndex,
  4674. null,
  4675. g.id
  4676. )
  4677. "
  4678. >
  4679. <img
  4680. src="../assets/icon/comment/comment.png"
  4681. alt=""
  4682. />
  4683. </div>
  4684. <div>{{ w.commentCount }}</div>
  4685. </div>
  4686. </div>
  4687. </div>
  4688. </div>
  4689. </div>
  4690. <div class="group_work" v-else>暂无提交作业</div>
  4691. </div>
  4692. </div>
  4693. <div
  4694. class="worksDetailBox"
  4695. v-if="
  4696. worksStudent.length &&
  4697. worksStudent[toolIndex].length > 0
  4698. "
  4699. >
  4700. <div
  4701. class="works"
  4702. style="
  4703. width: 200px;
  4704. height: 140px;
  4705. margin: 10px 10px 10px 0;
  4706. border-radius: 15px;
  4707. box-shadow: 0 0 6px 1px #dfdada;
  4708. "
  4709. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4710. 0
  4711. ? worksStudent[toolIndex]
  4712. : worksStudent[toolIndex].slice(0, 6)"
  4713. :key="wIndex"
  4714. >
  4715. <!-- @click="previewImg(w.works)" -->
  4716. <div class="workImg">
  4717. <img
  4718. :src="w.works"
  4719. @click="previewImg(w.works)"
  4720. alt
  4721. />
  4722. <div
  4723. class="answerScore"
  4724. v-if="w.score"
  4725. @click.stop="openScore(w)"
  4726. :class="{
  4727. rightW:
  4728. w.userid == userid || tType == 1 || tType == 4,
  4729. }"
  4730. >
  4731. {{ JSON.parse(w.score).wScore }}分
  4732. </div>
  4733. <div
  4734. class="answerScore"
  4735. @click.stop="openScore(w)"
  4736. v-else-if="courseDetail.userid == userid"
  4737. :class="{
  4738. rightW:
  4739. w.userid == userid || tType == 1 || tType == 4,
  4740. }"
  4741. >
  4742. 评分
  4743. </div>
  4744. <img
  4745. class="deleteImg"
  4746. src="../assets/deleteworks.png"
  4747. v-if="
  4748. w.userid == userid || tType == 1 || tType == 4
  4749. "
  4750. @click.stop="deleteWorks(w.wid)"
  4751. alt
  4752. />
  4753. </div>
  4754. <div class="comment" style="min-width: 200px">
  4755. <div class="worksName">
  4756. <div>{{ w.sName }}</div>
  4757. </div>
  4758. <div class="commentList">
  4759. <div class="commentList">
  4760. <div
  4761. class="commentImg"
  4762. @click="
  4763. isLikes(w.wid, userid, 1, null, w.isLikes)
  4764. "
  4765. >
  4766. <img
  4767. :src="w.isLikes == true ? likes : noLikes"
  4768. alt=""
  4769. />
  4770. </div>
  4771. <div>{{ w.likesCount }}</div>
  4772. </div>
  4773. <div class="commentList" style="margin-right: 15px">
  4774. <div
  4775. class="commentImg"
  4776. @click="commentOther(w, toolIndex, wIndex)"
  4777. >
  4778. <img
  4779. src="../assets/icon/comment/comment.png"
  4780. alt=""
  4781. />
  4782. </div>
  4783. <div>{{ w.commentCount }}</div>
  4784. </div>
  4785. </div>
  4786. </div>
  4787. </div>
  4788. </div>
  4789. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4790. 未提交
  4791. </div>
  4792. <div
  4793. class="noWorksS"
  4794. v-if="noWorksS && noWorksS[toolIndex].length"
  4795. >
  4796. <div
  4797. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4798. :key="sIndex"
  4799. class="noWorksName"
  4800. >
  4801. {{ s.student }}
  4802. </div>
  4803. </div>
  4804. </div>
  4805. <div
  4806. v-if="
  4807. tType &&
  4808. ((tType == 2 && sIsOpen == true) ||
  4809. tType == 1 ||
  4810. tType == 4) &&
  4811. tool.tool.indexOf(7) != -1
  4812. "
  4813. class="worksBox"
  4814. >
  4815. <div
  4816. class="zuoyeYulan"
  4817. v-if="
  4818. worksStudent.length &&
  4819. worksStudent[toolIndex].length > 0
  4820. "
  4821. >
  4822. <div class="worksTop">
  4823. <div>作业预览</div>
  4824. <div
  4825. class="corOpen"
  4826. @click="contract(toolIndex)"
  4827. v-if="
  4828. worksStudent[toolIndex].length > 6 &&
  4829. isCloseList[toolIndex].isClose == 0
  4830. "
  4831. >
  4832. 收缩
  4833. </div>
  4834. <div
  4835. class="corOpen"
  4836. @click="contract(toolIndex)"
  4837. v-if="isCloseList[toolIndex].isClose == 1"
  4838. >
  4839. 展开
  4840. </div>
  4841. </div>
  4842. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4843. </div>
  4844. <div
  4845. class="group_workBox"
  4846. v-for="(g, gindex) in courseGroup.group"
  4847. :key="gindex"
  4848. >
  4849. <div class="group_box">
  4850. <div class="group_title">
  4851. <el-tooltip
  4852. class="item"
  4853. effect="light"
  4854. :content="g.name"
  4855. placement="top"
  4856. >
  4857. <div class="group_name">{{ g.name }}</div>
  4858. </el-tooltip>
  4859. </div>
  4860. <div
  4861. class="group_work"
  4862. v-if="
  4863. g.works &&
  4864. g.works.length &&
  4865. g.works[toolIndex].length
  4866. "
  4867. >
  4868. <div
  4869. class="works"
  4870. style="
  4871. width: 200px;
  4872. height: 140px;
  4873. margin: 10px 10px 10px 0;
  4874. border-radius: 15px;
  4875. box-shadow: 0 0 6px 1px #dfdada;
  4876. "
  4877. v-for="(w, wIndex) in g.works[toolIndex]"
  4878. :key="wIndex"
  4879. :class="w.type == 1 ? 'isTypeOne' : ''"
  4880. >
  4881. <div class="workImg">
  4882. <img
  4883. :src="w.works"
  4884. @click="previewImg(w.works)"
  4885. alt
  4886. />
  4887. <div
  4888. class="answerScore"
  4889. v-if="w.score"
  4890. @click.stop="openScore(w)"
  4891. :class="{
  4892. rightW:
  4893. w.userid == userid ||
  4894. tType == 1 ||
  4895. tType == 4,
  4896. }"
  4897. >
  4898. {{ JSON.parse(w.score).wScore }}分
  4899. </div>
  4900. <div
  4901. class="answerScore"
  4902. @click.stop="openScore(w)"
  4903. v-else-if="courseDetail.userid == userid"
  4904. :class="{
  4905. rightW:
  4906. w.userid == userid ||
  4907. tType == 1 ||
  4908. tType == 4,
  4909. }"
  4910. >
  4911. 评分
  4912. </div>
  4913. <img
  4914. class="deleteImg"
  4915. src="../assets/deleteworks.png"
  4916. v-if="
  4917. w.userid == userid || tType == 1 || tType == 4
  4918. "
  4919. @click.stop="deleteWorks(w.wid)"
  4920. alt
  4921. />
  4922. </div>
  4923. <div class="comment" style="min-width: 200px">
  4924. <div class="worksName">
  4925. <div>{{ w.sName }}</div>
  4926. </div>
  4927. <div class="commentList">
  4928. <div class="commentList">
  4929. <div
  4930. class="commentImg"
  4931. @click="
  4932. isLikes(w.wid, userid, 1, null, w.isLikes)
  4933. "
  4934. >
  4935. <img
  4936. :src="w.isLikes == true ? likes : noLikes"
  4937. alt=""
  4938. />
  4939. </div>
  4940. <div>{{ w.likesCount }}</div>
  4941. </div>
  4942. <div
  4943. class="commentList"
  4944. style="margin-right: 15px"
  4945. >
  4946. <div
  4947. class="commentImg"
  4948. @click="
  4949. commentOther(
  4950. w,
  4951. toolIndex,
  4952. wIndex,
  4953. null,
  4954. g.id
  4955. )
  4956. "
  4957. >
  4958. <img
  4959. src="../assets/icon/comment/comment.png"
  4960. alt=""
  4961. />
  4962. </div>
  4963. <div>{{ w.commentCount }}</div>
  4964. </div>
  4965. </div>
  4966. </div>
  4967. </div>
  4968. </div>
  4969. <div class="group_work" v-else>暂无提交作业</div>
  4970. </div>
  4971. </div>
  4972. <div
  4973. class="worksDetailBox"
  4974. v-if="
  4975. worksStudent.length &&
  4976. worksStudent[toolIndex].length > 0
  4977. "
  4978. >
  4979. <div
  4980. class="works"
  4981. style="
  4982. width: 200px;
  4983. height: 140px;
  4984. margin: 10px 10px 10px 0;
  4985. border-radius: 15px;
  4986. box-shadow: 0 0 6px 1px #dfdada;
  4987. "
  4988. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4989. 0
  4990. ? worksStudent[toolIndex]
  4991. : worksStudent[toolIndex].slice(0, 6)"
  4992. :key="wIndex"
  4993. >
  4994. <!-- @click="previewImg(w.works)" -->
  4995. <div class="workImg">
  4996. <img
  4997. :src="w.works"
  4998. @click="previewImg(w.works)"
  4999. alt
  5000. />
  5001. <div
  5002. class="answerScore"
  5003. v-if="w.score"
  5004. @click.stop="openScore(w)"
  5005. :class="{
  5006. rightW:
  5007. w.userid == userid || tType == 1 || tType == 4,
  5008. }"
  5009. >
  5010. {{ JSON.parse(w.score).wScore }}分
  5011. </div>
  5012. <div
  5013. class="answerScore"
  5014. @click.stop="openScore(w)"
  5015. v-else-if="courseDetail.userid == userid"
  5016. :class="{
  5017. rightW:
  5018. w.userid == userid || tType == 1 || tType == 4,
  5019. }"
  5020. >
  5021. 评分
  5022. </div>
  5023. <img
  5024. class="deleteImg"
  5025. src="../assets/deleteworks.png"
  5026. v-if="
  5027. w.userid == userid || tType == 1 || tType == 4
  5028. "
  5029. @click.stop="deleteWorks(w.wid)"
  5030. alt
  5031. />
  5032. </div>
  5033. <div class="comment" style="min-width: 200px">
  5034. <div class="worksName">
  5035. <div>{{ w.sName }}</div>
  5036. </div>
  5037. <div class="commentList">
  5038. <div class="commentList">
  5039. <div
  5040. class="commentImg"
  5041. @click="
  5042. isLikes(w.wid, userid, 1, null, w.isLikes)
  5043. "
  5044. >
  5045. <img
  5046. :src="w.isLikes == true ? likes : noLikes"
  5047. alt=""
  5048. />
  5049. </div>
  5050. <div>{{ w.likesCount }}</div>
  5051. </div>
  5052. <div class="commentList" style="margin-right: 15px">
  5053. <div
  5054. class="commentImg"
  5055. @click="commentOther(w, toolIndex, wIndex)"
  5056. >
  5057. <img
  5058. src="../assets/icon/comment/comment.png"
  5059. alt=""
  5060. />
  5061. </div>
  5062. <div>{{ w.commentCount }}</div>
  5063. </div>
  5064. </div>
  5065. </div>
  5066. </div>
  5067. </div>
  5068. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5069. 未提交
  5070. </div>
  5071. <div
  5072. class="noWorksS"
  5073. v-if="noWorksS && noWorksS[toolIndex].length"
  5074. >
  5075. <div
  5076. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5077. :key="sIndex"
  5078. class="noWorksName"
  5079. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5080. >
  5081. {{ s.student }}
  5082. </div>
  5083. </div>
  5084. </div>
  5085. <div
  5086. v-if="
  5087. tType &&
  5088. ((tType == 2 && sIsOpen == true) ||
  5089. tType == 1 ||
  5090. tType == 4) &&
  5091. tool.tool.indexOf(26) != -1
  5092. "
  5093. class="worksBox"
  5094. >
  5095. <div
  5096. class="zuoyeYulan"
  5097. v-if="
  5098. worksStudent.length &&
  5099. worksStudent[toolIndex].length > 0
  5100. "
  5101. >
  5102. <div class="worksTop">
  5103. <div>作业预览</div>
  5104. <div
  5105. class="corOpen"
  5106. @click="contract(toolIndex)"
  5107. v-if="
  5108. worksStudent[toolIndex].length > 6 &&
  5109. isCloseList[toolIndex].isClose == 0
  5110. "
  5111. >
  5112. 收缩
  5113. </div>
  5114. <div
  5115. class="corOpen"
  5116. @click="contract(toolIndex)"
  5117. v-if="isCloseList[toolIndex].isClose == 1"
  5118. >
  5119. 展开
  5120. </div>
  5121. </div>
  5122. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5123. </div>
  5124. <div
  5125. class="worksDetailBox"
  5126. v-if="
  5127. worksStudent.length &&
  5128. worksStudent[toolIndex].length > 0
  5129. "
  5130. >
  5131. <div
  5132. class="works"
  5133. style="width: 240px; height: 140px; overflow: hidden"
  5134. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5135. 0
  5136. ? worksStudent[toolIndex]
  5137. : worksStudent[toolIndex].slice(0, 6)"
  5138. :key="wIndex"
  5139. :class="w.type == 1 ? 'isTypeOne' : ''"
  5140. >
  5141. <div class="workImg" v-if="w.type == 0">
  5142. <img
  5143. :src="w.works"
  5144. @click="previewImg(w.works)"
  5145. alt
  5146. />
  5147. <img
  5148. class="deleteImg"
  5149. src="../assets/deleteworks.png"
  5150. v-if="
  5151. w.userid == userid || tType == 1 || tType == 4
  5152. "
  5153. @click.stop="deleteWorks(w.wid)"
  5154. alt
  5155. />
  5156. </div>
  5157. <div class="workImg" v-if="w.type == 1">
  5158. <img :src="word" @click="openFile(w.works)" alt />
  5159. <img
  5160. class="deleteImg"
  5161. src="../assets/deleteworks.png"
  5162. v-if="
  5163. w.userid == userid || tType == 1 || tType == 4
  5164. "
  5165. @click.stop="deleteWorks(w.wid)"
  5166. alt
  5167. />
  5168. </div>
  5169. <div class="worksName">
  5170. <div>{{ w.sName }}</div>
  5171. </div>
  5172. </div>
  5173. </div>
  5174. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5175. 未提交
  5176. </div>
  5177. <div
  5178. class="noWorksS"
  5179. v-if="noWorksS && noWorksS[toolIndex].length"
  5180. >
  5181. <div
  5182. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5183. :key="sIndex"
  5184. class="noWorksName"
  5185. >
  5186. {{ s.student }}
  5187. </div>
  5188. </div>
  5189. </div>
  5190. <div
  5191. v-if="
  5192. tType &&
  5193. ((tType == 2 && sIsOpen == true) ||
  5194. tType == 1 ||
  5195. tType == 4) &&
  5196. tool.tool.indexOf(40) != -1
  5197. "
  5198. class="worksBox"
  5199. >
  5200. <div
  5201. class="zuoyeYulan"
  5202. v-if="
  5203. worksStudent.length &&
  5204. worksStudent[toolIndex].length > 0
  5205. "
  5206. >
  5207. <div class="worksTop">
  5208. <div>作业预览</div>
  5209. <div
  5210. class="corOpen"
  5211. @click="contract(toolIndex)"
  5212. v-if="
  5213. worksStudent[toolIndex].length > 6 &&
  5214. isCloseList[toolIndex].isClose == 0
  5215. "
  5216. >
  5217. 收缩
  5218. </div>
  5219. <div
  5220. class="corOpen"
  5221. @click="contract(toolIndex)"
  5222. v-if="isCloseList[toolIndex].isClose == 1"
  5223. >
  5224. 展开
  5225. </div>
  5226. </div>
  5227. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5228. </div>
  5229. <div
  5230. class="worksDetailBox"
  5231. v-if="
  5232. worksStudent.length &&
  5233. worksStudent[toolIndex].length > 0
  5234. "
  5235. >
  5236. <div
  5237. class="works"
  5238. style="
  5239. width: 200px;
  5240. height: 140px;
  5241. margin: 10px 10px 10px 0;
  5242. border-radius: 15px;
  5243. box-shadow: 0 0 6px 1px #dfdada;
  5244. "
  5245. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5246. 0
  5247. ? worksStudent[toolIndex]
  5248. : worksStudent[toolIndex].slice(0, 6)"
  5249. :key="wIndex"
  5250. :class="w.type == 1 ? 'isTypeOne' : ''"
  5251. >
  5252. <div class="workImg">
  5253. <img
  5254. src="../assets/icon/works/noImg.png"
  5255. @click="openPj(w.works, toolIndex)"
  5256. alt
  5257. />
  5258. <img
  5259. class="deleteImg"
  5260. src="../assets/deleteworks.png"
  5261. v-if="
  5262. w.userid == userid || tType == 1 || tType == 4
  5263. "
  5264. @click.stop="deleteWorks(w.wid)"
  5265. alt
  5266. />
  5267. </div>
  5268. <div class="comment" style="min-width: 200px">
  5269. <div class="worksName">
  5270. <div>{{ w.sName }}</div>
  5271. </div>
  5272. <div class="commentList">
  5273. <div class="commentList">
  5274. <div
  5275. class="commentImg"
  5276. @click="
  5277. isLikes(w.wid, userid, 1, null, w.isLikes)
  5278. "
  5279. >
  5280. <img
  5281. :src="w.isLikes == true ? likes : noLikes"
  5282. alt=""
  5283. />
  5284. </div>
  5285. <div>{{ w.likesCount }}</div>
  5286. </div>
  5287. <div class="commentList" style="margin-right: 15px">
  5288. <div
  5289. class="commentImg"
  5290. @click="commentOther(w, toolIndex, wIndex)"
  5291. >
  5292. <img
  5293. src="../assets/icon/comment/comment.png"
  5294. alt=""
  5295. />
  5296. </div>
  5297. <div>{{ w.commentCount }}</div>
  5298. </div>
  5299. </div>
  5300. </div>
  5301. </div>
  5302. </div>
  5303. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5304. 未提交
  5305. </div>
  5306. <div
  5307. class="noWorksS"
  5308. v-if="noWorksS && noWorksS[toolIndex].length"
  5309. >
  5310. <div
  5311. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5312. :key="sIndex"
  5313. class="noWorksName"
  5314. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5315. >
  5316. {{ s.student }}
  5317. </div>
  5318. </div>
  5319. </div>
  5320. <div
  5321. v-if="
  5322. tType &&
  5323. tType == 2 &&
  5324. !sIsOpen &&
  5325. tool.tool.indexOf(40) != -1
  5326. "
  5327. class="worksBox"
  5328. >
  5329. <div
  5330. class="zuoyeYulan"
  5331. v-if="workStudent[toolIndex].length > 0"
  5332. >
  5333. <span class="worksTitle">作业预览</span>
  5334. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5335. </div>
  5336. <div
  5337. class="worksDetailBox"
  5338. v-if="workStudent[toolIndex].length > 0"
  5339. >
  5340. <div
  5341. class="works"
  5342. style="
  5343. width: 200px;
  5344. height: 140px;
  5345. margin: 10px 10px 10px 0;
  5346. "
  5347. v-for="(w, wIndex) in workStudent[toolIndex]"
  5348. :key="wIndex"
  5349. >
  5350. <div class="workImg">
  5351. <img
  5352. src="../assets/icon/works/noImg.png"
  5353. @click="openPj(w.works, toolIndex)"
  5354. alt
  5355. />
  5356. <img
  5357. class="deleteImg"
  5358. src="../assets/deleteworks.png"
  5359. v-if="
  5360. w.userid == userid || tType == 1 || tType == 4
  5361. "
  5362. @click.stop="deleteWorks(w.wid)"
  5363. alt
  5364. />
  5365. </div>
  5366. <div class="worksName">
  5367. <div>{{ w.sName }}</div>
  5368. </div>
  5369. </div>
  5370. </div>
  5371. </div>
  5372. <div
  5373. v-if="
  5374. tType &&
  5375. ((tType == 2 && sIsOpen == true) ||
  5376. tType == 1 ||
  5377. tType == 4) &&
  5378. tool.tool.indexOf(41) != -1
  5379. "
  5380. >
  5381. <AnswerData2
  5382. v-if="
  5383. worksStudent.length &&
  5384. worksStudent[toolIndex].length > 0
  5385. "
  5386. :problemJson="tool.selectJson.answer"
  5387. :people="worksStudent[toolIndex]"
  5388. ></AnswerData2>
  5389. </div>
  5390. <div
  5391. v-if="
  5392. tType &&
  5393. ((tType == 2 && sIsOpen == true) ||
  5394. tType == 1 ||
  5395. tType == 4) &&
  5396. tool.tool.indexOf(41) != -1
  5397. "
  5398. class="worksBox"
  5399. >
  5400. <div
  5401. class="zuoyeYulan"
  5402. v-if="
  5403. worksStudent.length &&
  5404. worksStudent[toolIndex].length > 0
  5405. "
  5406. >
  5407. <div class="worksTop">
  5408. <div>作业预览</div>
  5409. <div
  5410. class="corOpen"
  5411. @click="contract(toolIndex)"
  5412. v-if="
  5413. worksStudent[toolIndex].length > 6 &&
  5414. isCloseList[toolIndex].isClose == 0
  5415. "
  5416. >
  5417. 收缩
  5418. </div>
  5419. <div
  5420. class="corOpen"
  5421. @click="contract(toolIndex)"
  5422. v-if="isCloseList[toolIndex].isClose == 1"
  5423. >
  5424. 展开
  5425. </div>
  5426. </div>
  5427. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5428. </div>
  5429. <div
  5430. class="worksDetailBox"
  5431. v-if="
  5432. worksStudent.length &&
  5433. worksStudent[toolIndex].length > 0
  5434. "
  5435. >
  5436. <div
  5437. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5438. 0
  5439. ? worksStudent[toolIndex]
  5440. : worksStudent[toolIndex].slice(0, 6)"
  5441. :key="wIndex"
  5442. class="isWorksName2"
  5443. @click="openXz(w, toolIndex)"
  5444. >
  5445. {{ w.sName }}
  5446. <img
  5447. class="deleteImg deleteImg2"
  5448. src="../assets/deleteworks.png"
  5449. v-if="w.userid == userid || tType == 1 || tType == 4"
  5450. @click.stop="deleteWorks(w.wid)"
  5451. alt
  5452. />
  5453. </div>
  5454. <!-- <div
  5455. class="works"
  5456. style="
  5457. width: 200px;
  5458. height: 140px;
  5459. margin: 10px 10px 10px 0;
  5460. border-radius: 15px;
  5461. box-shadow: 0 0 6px 1px #dfdada;
  5462. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5463. :class="w.type == 5 ? 'isTypeOne' : ''">
  5464. <div class="workImg">
  5465. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5466. </div>
  5467. <div class="worksName">
  5468. <div>{{ w.sName }}</div>
  5469. </div>
  5470. </div> -->
  5471. </div>
  5472. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5473. 未提交
  5474. </div>
  5475. <div
  5476. class="noWorksS"
  5477. v-if="noWorksS && noWorksS[toolIndex].length"
  5478. >
  5479. <div
  5480. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5481. :key="sIndex"
  5482. class="noWorksName"
  5483. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5484. >
  5485. {{ s.student }}
  5486. </div>
  5487. </div>
  5488. </div>
  5489. <div
  5490. v-if="
  5491. tType &&
  5492. tType == 2 &&
  5493. !sIsOpen &&
  5494. tool.tool.indexOf(41) != -1
  5495. "
  5496. class="worksBox"
  5497. >
  5498. <div
  5499. class="zuoyeYulan"
  5500. v-if="workStudent[toolIndex].length > 0"
  5501. >
  5502. <span class="worksTitle">作业预览</span>
  5503. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5504. </div>
  5505. <div
  5506. class="worksDetailBox"
  5507. v-if="workStudent[toolIndex].length > 0"
  5508. >
  5509. <div
  5510. class="works"
  5511. style="
  5512. width: 200px;
  5513. height: 140px;
  5514. margin: 10px 10px 10px 0;
  5515. "
  5516. v-for="(w, wIndex) in workStudent[toolIndex]"
  5517. :key="wIndex"
  5518. >
  5519. <div class="workImg">
  5520. <img
  5521. src="../assets/icon/works/noImg.png"
  5522. @click="openXz(w, toolIndex)"
  5523. alt
  5524. />
  5525. <img
  5526. class="deleteImg"
  5527. src="../assets/deleteworks.png"
  5528. v-if="
  5529. w.userid == userid || tType == 1 || tType == 4
  5530. "
  5531. @click.stop="deleteWorks(w.wid)"
  5532. alt
  5533. />
  5534. </div>
  5535. <div class="worksName">
  5536. <div>{{ w.sName }}</div>
  5537. </div>
  5538. </div>
  5539. </div>
  5540. </div>
  5541. <div v-if="false" class="xuan_right_box">
  5542. <div
  5543. class="tool_right_box"
  5544. v-for="(item, index) in tool.sentenceList"
  5545. :key="index"
  5546. >
  5547. <div>
  5548. <span
  5549. style="word-break: break-all; white-space: normal"
  5550. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  5551. >
  5552. </div>
  5553. <div class="right_box_xuan">
  5554. <span>正确率</span>
  5555. <span>{{
  5556. (checkJson[toolIndex][index].right
  5557. ? checkJson[toolIndex][index].right
  5558. : 0) + "%"
  5559. }}</span>
  5560. </div>
  5561. <div class="right_box_xuan">
  5562. <span>答对人数</span>
  5563. <span>{{
  5564. checkJson[toolIndex][index].rightPerson.length
  5565. }}</span>
  5566. </div>
  5567. </div>
  5568. </div>
  5569. <div
  5570. v-if="
  5571. tType &&
  5572. ((tType == 2 && sIsOpen == true) ||
  5573. tType == 1 ||
  5574. tType == 4) &&
  5575. tool.tool.indexOf(47) != -1
  5576. "
  5577. >
  5578. <AnswerData
  5579. v-if="
  5580. checkJson[toolIndex].length &&
  5581. (tool.sentenceList || tool.sentenceList.length > 0)
  5582. "
  5583. :people="checkJson[toolIndex]"
  5584. ></AnswerData>
  5585. </div>
  5586. <div
  5587. v-if="
  5588. tType &&
  5589. tType == 2 &&
  5590. !sIsOpen &&
  5591. tool.tool.indexOf(47) != -1
  5592. "
  5593. class="worksBox"
  5594. >
  5595. <div
  5596. class="zuoyeYulan"
  5597. v-if="workStudent[toolIndex].length > 0"
  5598. >
  5599. <span class="worksTitle">作业预览</span>
  5600. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5601. </div>
  5602. <div
  5603. class="worksDetailBox"
  5604. v-if="workStudent[toolIndex].length > 0"
  5605. >
  5606. <div
  5607. class="works"
  5608. style="
  5609. width: 200px;
  5610. height: 140px;
  5611. margin: 10px 10px 10px 0;
  5612. "
  5613. v-for="(w, wIndex) in workStudent[toolIndex]"
  5614. :key="wIndex"
  5615. >
  5616. <!-- @click="openXz(w, toolIndex)" -->
  5617. <div class="workImg" @click="openSen(w, toolIndex)">
  5618. <img src="../assets/icon/works/noImg.png" alt />
  5619. <img
  5620. class="deleteImg"
  5621. src="../assets/deleteworks.png"
  5622. v-if="
  5623. w.userid == userid || tType == 1 || tType == 4
  5624. "
  5625. @click.stop="deleteWorks(w.wid)"
  5626. alt
  5627. />
  5628. </div>
  5629. <div class="worksName">
  5630. <div>
  5631. {{ w.sName }}
  5632. </div>
  5633. </div>
  5634. </div>
  5635. </div>
  5636. </div>
  5637. <div
  5638. v-if="
  5639. tType &&
  5640. ((tType == 2 && sIsOpen == true) ||
  5641. tType == 1 ||
  5642. tType == 4) &&
  5643. tool.tool.indexOf(47) != -1
  5644. "
  5645. class="worksBox"
  5646. >
  5647. <div
  5648. class="zuoyeYulan"
  5649. v-if="
  5650. worksStudent.length &&
  5651. worksStudent[toolIndex].length > 0
  5652. "
  5653. >
  5654. <div class="worksTop">
  5655. <div>作业预览</div>
  5656. <div
  5657. class="corOpen"
  5658. @click="contract(toolIndex)"
  5659. v-if="
  5660. worksStudent[toolIndex].length > 6 &&
  5661. isCloseList[toolIndex].isClose == 0
  5662. "
  5663. >
  5664. 收缩
  5665. </div>
  5666. <div
  5667. class="corOpen"
  5668. @click="contract(toolIndex)"
  5669. v-if="isCloseList[toolIndex].isClose == 1"
  5670. >
  5671. 展开
  5672. </div>
  5673. </div>
  5674. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5675. </div>
  5676. <div
  5677. class="worksDetailBox"
  5678. v-if="
  5679. worksStudent.length &&
  5680. worksStudent[toolIndex].length > 0
  5681. "
  5682. >
  5683. <!-- @click="openXz(w, toolIndex)" -->
  5684. <div
  5685. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5686. 0
  5687. ? worksStudent[toolIndex]
  5688. : worksStudent[toolIndex].slice(0, 6)"
  5689. :key="wIndex"
  5690. class="isWorksName2"
  5691. @click="openSen(w, toolIndex)"
  5692. >
  5693. {{ w.sName }}
  5694. <img
  5695. class="deleteImg deleteImg2"
  5696. src="../assets/deleteworks.png"
  5697. v-if="w.userid == userid || tType == 1 || tType == 4"
  5698. @click.stop="deleteWorks(w.wid)"
  5699. alt
  5700. />
  5701. </div>
  5702. </div>
  5703. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5704. 未提交
  5705. </div>
  5706. <div
  5707. class="noWorksS"
  5708. v-if="noWorksS && noWorksS[toolIndex].length"
  5709. >
  5710. <div
  5711. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5712. :key="sIndex"
  5713. class="noWorksName"
  5714. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5715. >
  5716. {{ s.student }}
  5717. </div>
  5718. </div>
  5719. </div>
  5720. <div
  5721. v-if="
  5722. tType &&
  5723. ((tType == 2 && sIsOpen == true) ||
  5724. tType == 1 ||
  5725. tType == 4) &&
  5726. tool.tool.indexOf(48) != -1
  5727. "
  5728. class="worksBox"
  5729. >
  5730. <div
  5731. class="zuoyeYulan"
  5732. v-if="
  5733. worksStudent.length &&
  5734. worksStudent[toolIndex].length > 0
  5735. "
  5736. >
  5737. <div class="worksTop">
  5738. <div>作业预览</div>
  5739. <div
  5740. class="corOpen"
  5741. @click="contract(toolIndex)"
  5742. v-if="
  5743. worksStudent[toolIndex].length > 6 &&
  5744. isCloseList[toolIndex].isClose == 0
  5745. "
  5746. >
  5747. 收缩
  5748. </div>
  5749. <div
  5750. class="corOpen"
  5751. @click="contract(toolIndex)"
  5752. v-if="isCloseList[toolIndex].isClose == 1"
  5753. >
  5754. 展开
  5755. </div>
  5756. </div>
  5757. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5758. </div>
  5759. <div
  5760. class="worksDetailBox"
  5761. v-if="
  5762. worksStudent.length &&
  5763. worksStudent[toolIndex].length > 0
  5764. "
  5765. >
  5766. <div
  5767. class="works"
  5768. style="
  5769. width: 200px;
  5770. height: 140px;
  5771. margin: 10px 10px 10px 0;
  5772. border-radius: 15px;
  5773. box-shadow: 0 0 6px 1px #dfdada;
  5774. "
  5775. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5776. 0
  5777. ? worksStudent[toolIndex]
  5778. : worksStudent[toolIndex].slice(0, 6)"
  5779. :key="wIndex"
  5780. :class="w.type == 1 ? 'isTypeOne' : ''"
  5781. >
  5782. <div class="workImg">
  5783. <img :src="word" @click="openTable(w)" alt />
  5784. <!-- @click="openFile(w.works)" -->
  5785. <div
  5786. class="answerScore"
  5787. v-if="w.score"
  5788. @click.stop="openScore(w)"
  5789. :class="{
  5790. rightW:
  5791. w.userid == userid ||
  5792. tType == 1 ||
  5793. tType == 4 ||
  5794. w.ateacher == userid,
  5795. }"
  5796. >
  5797. {{ JSON.parse(w.score).wScore }}分
  5798. </div>
  5799. <div
  5800. class="answerScore"
  5801. @click.stop="openScore(w)"
  5802. v-else-if="courseDetail.userid == userid"
  5803. :class="{
  5804. rightW:
  5805. w.userid == userid ||
  5806. tType == 1 ||
  5807. tType == 4 ||
  5808. w.ateacher == userid,
  5809. }"
  5810. >
  5811. 评分
  5812. </div>
  5813. <img
  5814. class="deleteImg"
  5815. src="../assets/deleteworks.png"
  5816. v-if="
  5817. w.userid == userid || tType == 1 || tType == 4
  5818. "
  5819. @click.stop="deleteWorks(w.wid)"
  5820. alt
  5821. />
  5822. </div>
  5823. <div class="comment" style="min-width: 200px">
  5824. <div class="worksName">
  5825. <div>{{ w.sName }}</div>
  5826. </div>
  5827. <div class="commentList">
  5828. <div class="commentList">
  5829. <div
  5830. class="commentImg"
  5831. @click="
  5832. isLikes(w.wid, userid, 1, null, w.isLikes)
  5833. "
  5834. >
  5835. <img
  5836. :src="w.isLikes == true ? likes : noLikes"
  5837. alt=""
  5838. />
  5839. </div>
  5840. <div>{{ w.likesCount }}</div>
  5841. </div>
  5842. <div class="commentList" style="margin-right: 15px">
  5843. <div
  5844. class="commentImg"
  5845. @click="commentOther(w, toolIndex, wIndex)"
  5846. >
  5847. <img
  5848. src="../assets/icon/comment/comment.png"
  5849. alt=""
  5850. />
  5851. </div>
  5852. <div>{{ w.commentCount }}</div>
  5853. </div>
  5854. </div>
  5855. </div>
  5856. </div>
  5857. </div>
  5858. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5859. 未提交
  5860. </div>
  5861. <div
  5862. class="noWorksS"
  5863. v-if="noWorksS && noWorksS[toolIndex].length"
  5864. >
  5865. <div
  5866. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5867. :key="sIndex"
  5868. class="noWorksName"
  5869. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  5870. >
  5871. {{ s.student }}
  5872. </div>
  5873. </div>
  5874. </div>
  5875. <div
  5876. v-if="
  5877. tType &&
  5878. tType == 2 &&
  5879. !sIsOpen &&
  5880. tool.tool.indexOf(48) != -1
  5881. "
  5882. class="worksBox"
  5883. >
  5884. <div
  5885. class="zuoyeYulan"
  5886. v-if="workStudent[toolIndex].length > 0"
  5887. >
  5888. <span class="worksTitle">作业预览</span>
  5889. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5890. </div>
  5891. <div
  5892. class="worksDetailBox"
  5893. v-if="workStudent[toolIndex].length > 0"
  5894. >
  5895. <div
  5896. class="works"
  5897. style="
  5898. width: 200px;
  5899. height: 140px;
  5900. margin: 10px 10px 10px 0;
  5901. box-shadow: 0 0 6px 1px #dfdada;
  5902. "
  5903. v-for="(w, wIndex) in workStudent[toolIndex]"
  5904. :key="wIndex"
  5905. >
  5906. <div class="workImg">
  5907. <img :src="word" @click="openTable(w)" alt />
  5908. <div
  5909. class="answerScore"
  5910. v-if="w.score"
  5911. @click.stop="openScore(w)"
  5912. :class="{
  5913. rightW:
  5914. w.userid == userid || tType == 1 || tType == 4,
  5915. }"
  5916. >
  5917. {{ JSON.parse(w.score).wScore }}分
  5918. </div>
  5919. <div
  5920. class="answerScore"
  5921. @click.stop="openScore(w)"
  5922. v-else-if="courseDetail.userid == userid"
  5923. :class="{
  5924. rightW:
  5925. w.userid == userid || tType == 1 || tType == 4,
  5926. }"
  5927. >
  5928. 评分
  5929. </div>
  5930. <img
  5931. class="deleteImg"
  5932. src="../assets/deleteworks.png"
  5933. v-if="
  5934. w.userid == userid || tType == 1 || tType == 4
  5935. "
  5936. @click.stop="deleteWorks(w.wid)"
  5937. alt
  5938. />
  5939. </div>
  5940. <div class="worksName">
  5941. <div>{{ w.sName }}</div>
  5942. </div>
  5943. </div>
  5944. </div>
  5945. </div>
  5946. <div
  5947. v-if="
  5948. tType &&
  5949. ((tType == 2 && sIsOpen == true) ||
  5950. tType == 1 ||
  5951. tType == 4) &&
  5952. tool.tool.indexOf(52) != -1
  5953. "
  5954. class="worksBox"
  5955. >
  5956. <div
  5957. class="zuoyeYulan"
  5958. v-if="
  5959. worksStudent.length &&
  5960. worksStudent[toolIndex].length > 0
  5961. "
  5962. >
  5963. <div class="worksTop">
  5964. <div>作业预览</div>
  5965. <div
  5966. class="corOpen"
  5967. @click="contract(toolIndex)"
  5968. v-if="
  5969. worksStudent[toolIndex].length > 6 &&
  5970. isCloseList[toolIndex].isClose == 0
  5971. "
  5972. >
  5973. 收缩
  5974. </div>
  5975. <div
  5976. class="corOpen"
  5977. @click="contract(toolIndex)"
  5978. v-if="isCloseList[toolIndex].isClose == 1"
  5979. >
  5980. 展开
  5981. </div>
  5982. </div>
  5983. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5984. </div>
  5985. <div
  5986. class="worksDetailBox"
  5987. v-if="
  5988. worksStudent.length &&
  5989. worksStudent[toolIndex].length > 0
  5990. "
  5991. >
  5992. <div
  5993. class="works"
  5994. style="
  5995. width: 200px;
  5996. height: 140px;
  5997. margin: 10px 10px 10px 0;
  5998. border-radius: 15px;
  5999. box-shadow: 0 0 6px 1px #dfdada;
  6000. "
  6001. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6002. 0
  6003. ? worksStudent[toolIndex]
  6004. : worksStudent[toolIndex].slice(0, 6)"
  6005. :key="wIndex"
  6006. :class="w.type == 1 ? 'isTypeOne' : ''"
  6007. >
  6008. <div class="workImg">
  6009. <img :src="word" @click="openWord(w)" alt />
  6010. <!-- @click="openFile(w.works)" -->
  6011. <div
  6012. class="answerScore"
  6013. v-if="w.score"
  6014. @click.stop="openScore(w)"
  6015. :class="{
  6016. rightW:
  6017. w.userid == userid ||
  6018. tType == 1 ||
  6019. tType == 4 ||
  6020. w.ateacher == userid,
  6021. }"
  6022. >
  6023. {{ JSON.parse(w.score).wScore }}分
  6024. </div>
  6025. <div
  6026. class="answerScore"
  6027. @click.stop="openScore(w)"
  6028. v-else-if="courseDetail.userid == userid"
  6029. :class="{
  6030. rightW:
  6031. w.userid == userid ||
  6032. tType == 1 ||
  6033. tType == 4 ||
  6034. w.ateacher == userid,
  6035. }"
  6036. >
  6037. 评分
  6038. </div>
  6039. <img
  6040. class="deleteImg"
  6041. src="../assets/deleteworks.png"
  6042. v-if="
  6043. w.userid == userid || tType == 1 || tType == 4
  6044. "
  6045. @click.stop="deleteWorks(w.wid)"
  6046. alt
  6047. />
  6048. </div>
  6049. <div class="comment" style="min-width: 200px">
  6050. <div class="worksName">
  6051. <div>{{ w.sName }}</div>
  6052. </div>
  6053. <div class="commentList">
  6054. <div class="commentList">
  6055. <div
  6056. class="commentImg"
  6057. @click="
  6058. isLikes(w.wid, userid, 1, null, w.isLikes)
  6059. "
  6060. >
  6061. <img
  6062. :src="w.isLikes == true ? likes : noLikes"
  6063. alt=""
  6064. />
  6065. </div>
  6066. <div>{{ w.likesCount }}</div>
  6067. </div>
  6068. <div class="commentList" style="margin-right: 15px">
  6069. <div
  6070. class="commentImg"
  6071. @click="commentOther(w, toolIndex, wIndex)"
  6072. >
  6073. <img
  6074. src="../assets/icon/comment/comment.png"
  6075. alt=""
  6076. />
  6077. </div>
  6078. <div>{{ w.commentCount }}</div>
  6079. </div>
  6080. </div>
  6081. </div>
  6082. </div>
  6083. </div>
  6084. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6085. 未提交
  6086. </div>
  6087. <div
  6088. class="noWorksS"
  6089. v-if="noWorksS && noWorksS[toolIndex].length"
  6090. >
  6091. <div
  6092. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6093. :key="sIndex"
  6094. class="noWorksName"
  6095. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6096. >
  6097. {{ s.student }}
  6098. </div>
  6099. </div>
  6100. </div>
  6101. <div
  6102. v-if="
  6103. tType &&
  6104. tType == 2 &&
  6105. !sIsOpen &&
  6106. tool.tool.indexOf(52) != -1
  6107. "
  6108. class="worksBox"
  6109. >
  6110. <div
  6111. class="zuoyeYulan"
  6112. v-if="workStudent[toolIndex].length > 0"
  6113. >
  6114. <span class="worksTitle">作业预览</span>
  6115. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6116. </div>
  6117. <div
  6118. class="worksDetailBox"
  6119. v-if="workStudent[toolIndex].length > 0"
  6120. >
  6121. <div
  6122. class="works"
  6123. style="
  6124. width: 200px;
  6125. height: 140px;
  6126. margin: 10px 10px 10px 0;
  6127. box-shadow: 0 0 6px 1px #dfdada;
  6128. "
  6129. v-for="(w, wIndex) in workStudent[toolIndex]"
  6130. :key="wIndex"
  6131. >
  6132. <div class="workImg">
  6133. <img :src="word" @click="openWord(w)" alt />
  6134. <div
  6135. class="answerScore"
  6136. v-if="w.score"
  6137. @click.stop="openScore(w)"
  6138. :class="{
  6139. rightW:
  6140. w.userid == userid || tType == 1 || tType == 4,
  6141. }"
  6142. >
  6143. {{ JSON.parse(w.score).wScore }}分
  6144. </div>
  6145. <div
  6146. class="answerScore"
  6147. @click.stop="openScore(w)"
  6148. v-else-if="courseDetail.userid == userid"
  6149. :class="{
  6150. rightW:
  6151. w.userid == userid || tType == 1 || tType == 4,
  6152. }"
  6153. >
  6154. 评分
  6155. </div>
  6156. <img
  6157. class="deleteImg"
  6158. src="../assets/deleteworks.png"
  6159. v-if="
  6160. w.userid == userid || tType == 1 || tType == 4
  6161. "
  6162. @click.stop="deleteWorks(w.wid)"
  6163. alt
  6164. />
  6165. </div>
  6166. <div class="worksName">
  6167. <div>{{ w.sName }}</div>
  6168. </div>
  6169. </div>
  6170. </div>
  6171. </div>
  6172. <div
  6173. v-if="tool.tool.indexOf(49) != -1"
  6174. class="xuan_right_box"
  6175. style="margin: 0 15px 0 25px; width: 93%"
  6176. >
  6177. <div
  6178. v-if="courseDetail.userid == userid"
  6179. style="
  6180. display: flex;
  6181. justify-content: flex-end;
  6182. margin-right: 10px;
  6183. "
  6184. >
  6185. <el-button
  6186. type="primary"
  6187. size="small"
  6188. @click="addTools(49, toolIndex, taskCount)"
  6189. >分组设置</el-button
  6190. >
  6191. </div>
  6192. <div
  6193. v-if="groupStudentUid[toolIndex]"
  6194. class="group_staic_box"
  6195. >
  6196. <div
  6197. v-for="(gp, gd) in tool.groupJson.group"
  6198. :key="gd"
  6199. class="group_staic"
  6200. >
  6201. <span> {{ gp.name }}</span>
  6202. <span>
  6203. 目前人数{{
  6204. groupStudentUid[toolIndex][gd].length
  6205. }}人</span
  6206. >
  6207. </div>
  6208. </div>
  6209. </div>
  6210. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6211. <div
  6212. class="zuoyeYulan"
  6213. v-if="
  6214. worksStudent.length &&
  6215. worksStudent[toolIndex].length > 0
  6216. "
  6217. >
  6218. <span class="worksTitle">作业预览</span>
  6219. </div>
  6220. <div>
  6221. <div
  6222. class="group_workBox"
  6223. v-for="(g, gindex) in tool.groupJson.group"
  6224. :key="gindex"
  6225. >
  6226. <div
  6227. class="group_box"
  6228. v-if="
  6229. groupStudentUid[toolIndex] &&
  6230. worksStudent[toolIndex] &&
  6231. (worksStudent[toolIndex][gindex].length ||
  6232. groupStudentUid[toolIndex][gindex].indexOf(
  6233. userid
  6234. ) != -1)
  6235. "
  6236. >
  6237. <div class="group_title">
  6238. <el-tooltip
  6239. class="item"
  6240. effect="light"
  6241. :content="g.name"
  6242. placement="top"
  6243. >
  6244. <div class="group_name">{{ g.name }}</div>
  6245. </el-tooltip>
  6246. <el-button
  6247. type="primary"
  6248. v-if="
  6249. groupStudentUid[toolIndex][gindex].indexOf(
  6250. userid
  6251. ) != -1
  6252. "
  6253. @click="groupUpload(toolIndex, taskCount, gindex)"
  6254. >上传作业</el-button
  6255. >
  6256. </div>
  6257. <div class="group_work">
  6258. <div
  6259. class="works"
  6260. style="
  6261. width: 200px;
  6262. height: 140px;
  6263. margin: 10px 10px 10px 0;
  6264. border-radius: 15px;
  6265. box-shadow: 0 0 6px 1px #dfdada;
  6266. "
  6267. v-for="(w, wIndex) in worksStudent[toolIndex][
  6268. gindex
  6269. ]"
  6270. :key="wIndex"
  6271. :class="w.type == 1 ? 'isTypeOne' : ''"
  6272. >
  6273. <div class="workImg" v-if="w.type == 0">
  6274. <img
  6275. :src="w.works"
  6276. @click="previewImg(w.works)"
  6277. alt
  6278. />
  6279. <div
  6280. class="answerScore"
  6281. v-if="w.score"
  6282. @click.stop="openScore(w)"
  6283. :class="{
  6284. rightW:
  6285. w.userid == userid ||
  6286. tType == 1 ||
  6287. tType == 4 ||
  6288. w.ateacher == userid,
  6289. }"
  6290. >
  6291. {{ JSON.parse(w.score).wScore }}分
  6292. </div>
  6293. <div
  6294. class="answerScore"
  6295. @click.stop="openScore(w)"
  6296. v-else-if="courseDetail.userid == userid"
  6297. :class="{
  6298. rightW:
  6299. w.userid == userid ||
  6300. tType == 1 ||
  6301. tType == 4 ||
  6302. w.ateacher == userid,
  6303. }"
  6304. >
  6305. 评分
  6306. </div>
  6307. <img
  6308. class="deleteImg"
  6309. src="../assets/deleteworks.png"
  6310. v-if="
  6311. w.userid == userid ||
  6312. tType == 1 ||
  6313. tType == 4
  6314. "
  6315. @click.stop="deleteWorks(w.wid)"
  6316. alt
  6317. />
  6318. </div>
  6319. <div class="workImg" v-if="w.type == 1">
  6320. <img
  6321. :src="word"
  6322. @click="openFile(w.works)"
  6323. alt
  6324. />
  6325. <!-- @click="openFile(w.works)" -->
  6326. <div
  6327. class="answerScore"
  6328. v-if="w.score"
  6329. @click.stop="openScore(w)"
  6330. :class="{
  6331. rightW:
  6332. w.userid == userid ||
  6333. tType == 1 ||
  6334. tType == 4 ||
  6335. w.ateacher == userid,
  6336. }"
  6337. >
  6338. {{ JSON.parse(w.score).wScore }}分
  6339. </div>
  6340. <div
  6341. class="answerScore"
  6342. @click.stop="openScore(w)"
  6343. v-else-if="courseDetail.userid == userid"
  6344. :class="{
  6345. rightW:
  6346. w.userid == userid ||
  6347. tType == 1 ||
  6348. tType == 4 ||
  6349. w.ateacher == userid,
  6350. }"
  6351. >
  6352. 评分
  6353. </div>
  6354. <img
  6355. class="deleteImg"
  6356. src="../assets/deleteworks.png"
  6357. v-if="
  6358. w.userid == userid ||
  6359. tType == 1 ||
  6360. tType == 4
  6361. "
  6362. @click.stop="deleteWorks(w.wid)"
  6363. alt
  6364. />
  6365. </div>
  6366. <div class="workImg" v-if="w.type == 3">
  6367. <img
  6368. style="cursor: pointer"
  6369. :src="video"
  6370. @click="openVideo(w)"
  6371. alt
  6372. />
  6373. <!-- @click="openVideo(w.works)" -->
  6374. <div
  6375. class="answerScore"
  6376. v-if="w.score"
  6377. @click.stop="openScore(w)"
  6378. :class="{
  6379. rightW:
  6380. w.userid == userid ||
  6381. tType == 1 ||
  6382. tType == 4 ||
  6383. w.ateacher == userid,
  6384. }"
  6385. >
  6386. {{ JSON.parse(w.score).wScore }}分
  6387. </div>
  6388. <div
  6389. class="answerScore"
  6390. @click.stop="openScore(w)"
  6391. v-else-if="courseDetail.userid == userid"
  6392. :class="{
  6393. rightW:
  6394. w.userid == userid ||
  6395. tType == 1 ||
  6396. tType == 4 ||
  6397. w.ateacher == userid,
  6398. }"
  6399. >
  6400. 评分
  6401. </div>
  6402. <img
  6403. class="deleteImg"
  6404. src="../assets/deleteworks.png"
  6405. v-if="
  6406. w.userid == userid ||
  6407. tType == 1 ||
  6408. tType == 4
  6409. "
  6410. @click.stop="deleteWorks(w.wid)"
  6411. alt
  6412. />
  6413. </div>
  6414. <div class="workImg" v-if="w.type == 12">
  6415. <img
  6416. style="cursor: pointer"
  6417. :src="word2"
  6418. @click="downloadFile(w.works)"
  6419. alt
  6420. />
  6421. <!-- @click="openVideo(w.works)" -->
  6422. <div
  6423. class="answerScore"
  6424. v-if="w.score"
  6425. @click.stop="openScore(w)"
  6426. :class="{
  6427. rightW:
  6428. w.userid == userid ||
  6429. tType == 1 ||
  6430. tType == 4 ||
  6431. w.ateacher == userid,
  6432. }"
  6433. >
  6434. {{ JSON.parse(w.score).wScore }}分
  6435. </div>
  6436. <div
  6437. class="answerScore"
  6438. @click.stop="openScore(w)"
  6439. v-else-if="courseDetail.userid == userid"
  6440. :class="{
  6441. rightW:
  6442. w.userid == userid ||
  6443. tType == 1 ||
  6444. tType == 4 ||
  6445. w.ateacher == userid,
  6446. }"
  6447. >
  6448. 评分
  6449. </div>
  6450. <img
  6451. class="deleteImg"
  6452. src="../assets/deleteworks.png"
  6453. v-if="
  6454. w.userid == userid ||
  6455. tType == 1 ||
  6456. tType == 4
  6457. "
  6458. @click.stop="deleteWorks(w.wid)"
  6459. alt
  6460. />
  6461. </div>
  6462. <div class="comment" style="min-width: 200px">
  6463. <div class="worksName">
  6464. <div>{{ w.sName }}</div>
  6465. </div>
  6466. <div class="commentList">
  6467. <div class="commentList">
  6468. <div
  6469. class="commentImg"
  6470. @click="
  6471. isLikes(
  6472. w.wid,
  6473. userid,
  6474. 1,
  6475. null,
  6476. w.isLikes
  6477. )
  6478. "
  6479. >
  6480. <img
  6481. :src="
  6482. w.isLikes == true ? likes : noLikes
  6483. "
  6484. alt=""
  6485. />
  6486. </div>
  6487. <div>{{ w.likesCount }}</div>
  6488. </div>
  6489. <div
  6490. class="commentList"
  6491. style="margin-right: 15px"
  6492. >
  6493. <div
  6494. class="commentImg"
  6495. @click="
  6496. commentOther(
  6497. w,
  6498. toolIndex,
  6499. wIndex,
  6500. gindex
  6501. )
  6502. "
  6503. >
  6504. <img
  6505. src="../assets/icon/comment/comment.png"
  6506. alt=""
  6507. />
  6508. </div>
  6509. <div>{{ w.commentCount }}</div>
  6510. </div>
  6511. </div>
  6512. </div>
  6513. </div>
  6514. </div>
  6515. </div>
  6516. </div>
  6517. </div>
  6518. </div>
  6519. </div>
  6520. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6521. 上传文件
  6522. <input
  6523. type="file"
  6524. accept="image/png, image/gif, image/jpeg"
  6525. style="display: none"
  6526. @change="beforeUpload1($event, 2, index)"
  6527. />
  6528. </div>-->
  6529. </div>
  6530. </div>
  6531. <!-- <div
  6532. class="vedioBox"
  6533. style="margin-top: 10px"
  6534. v-if="
  6535. courseDetail.userid == userid ||
  6536. (courseDetail.course_teacher &&
  6537. courseDetail.course_teacher.indexOf(userid) != -1)
  6538. "
  6539. :style="{
  6540. borderRadius:
  6541. !(
  6542. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6543. .toolChoose[0].tool &&
  6544. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6545. .toolChoose[0].tool.length > 0
  6546. ) &&
  6547. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6548. .taskDetail == '' &&
  6549. vChapterData[taskCount].length == 0 &&
  6550. fileC[taskCount].length == 0
  6551. ? '0 0 20px 20px'
  6552. : '20px',
  6553. }"
  6554. >
  6555. <div
  6556. class="queTop"
  6557. @click="isClose = !isClose"
  6558. style="
  6559. padding: 15px 0 15px 37px;
  6560. justify-content: space-between;
  6561. "
  6562. >
  6563. <div class="queTopTitle">新增工具</div>
  6564. <div class="queTopRight">
  6565. <div class="queTopClose" v-if="isClose == 0">
  6566. 展开
  6567. <div class="closeImg">
  6568. <img src="../assets/icon/newIcon/close.png" alt="" />
  6569. </div>
  6570. </div>
  6571. <div class="queTopClose" v-if="isClose == 1">
  6572. 收缩
  6573. <div class="openImg">
  6574. <img src="../assets/icon/newIcon/open.png" alt="" />
  6575. </div>
  6576. </div>
  6577. <el-button
  6578. style="margin: 0 30px 0 auto"
  6579. type="primary"
  6580. size="small"
  6581. v-if="isClose == 1 && checktoolArray.length > 0"
  6582. @click.stop="addToolChoose"
  6583. >确定</el-button
  6584. >
  6585. </div>
  6586. </div>
  6587. <div
  6588. class="tool_work_box"
  6589. :style="isClose == 0 ? 'display:none' : 'display:block'"
  6590. >
  6591. <div class="tool_box">
  6592. <div class="tool_type_box">
  6593. <div class="chooseWho">
  6594. <div
  6595. :class="toolType == 0 ? 'isChooseActive' : ''"
  6596. @click="(toolType = 0), $forceUpdate()"
  6597. >
  6598. 互动类
  6599. </div>
  6600. <div
  6601. :class="toolType == 1 ? 'isChooseActive' : ''"
  6602. @click="(toolType = 1), $forceUpdate()"
  6603. >
  6604. 思维类
  6605. </div>
  6606. <div
  6607. :class="toolType == 2 ? 'isChooseActive' : ''"
  6608. @click="(toolType = 2), $forceUpdate()"
  6609. >
  6610. 测评类
  6611. </div>
  6612. <div
  6613. :class="toolType == 3 ? 'isChooseActive' : ''"
  6614. @click="(toolType = 3), $forceUpdate()"
  6615. >
  6616. 编程类
  6617. </div>
  6618. <div
  6619. :class="toolType == 5 ? 'isChooseActive' : ''"
  6620. @click="(toolType = 5), $forceUpdate()"
  6621. >
  6622. 学科类
  6623. </div>
  6624. </div>
  6625. </div>
  6626. <div>
  6627. <div class="toolSort" v-if="toolType == 0">
  6628. <div class="tool">
  6629. <div class="whiteBIcon" @click="addTools2(10)">
  6630. <img
  6631. src="../assets/icon/thirdToolList/time.png"
  6632. alt
  6633. />
  6634. <div style="margin: 5px 0">倒计时</div>
  6635. </div>
  6636. <div class="check" @click="addTools2(10)">
  6637. <img
  6638. src="../assets/icon/checkNo.png"
  6639. alt
  6640. v-if="checktoolArray.indexOf(10) == -1"
  6641. />
  6642. <div class="checkDiv" v-else>
  6643. <img src="../assets/icon/checkedIs.png" alt /><span
  6644. >已选择</span
  6645. >
  6646. </div>
  6647. </div>
  6648. </div>
  6649. <div class="tool">
  6650. <div class="whiteBIcon" @click="addTools2(65)">
  6651. <img
  6652. src="../assets/icon/firstToolList/pickPeople.png"
  6653. alt
  6654. />
  6655. <div style="margin: 5px 0">挑人</div>
  6656. </div>
  6657. <div class="check" @click="addTools2(65)">
  6658. <img
  6659. src="../assets/icon/checkNo.png"
  6660. alt
  6661. v-if="checktoolArray.indexOf(65) == -1"
  6662. />
  6663. <div class="checkDiv" v-else>
  6664. <img src="../assets/icon/checkedIs.png" alt /><span
  6665. >已选择</span
  6666. >
  6667. </div>
  6668. </div>
  6669. </div>
  6670. </div>
  6671. <div class="toolSort" v-if="toolType == 1">
  6672. <div class="tool">
  6673. <div class="whiteBIcon" @click="addTools2(7)">
  6674. <img
  6675. src="../assets/icon/secondToolList/mindNetwork.png"
  6676. alt
  6677. />
  6678. <div style="margin: 5px 0">思维网格</div>
  6679. </div>
  6680. <div class="check" @click="addTools2(7)">
  6681. <img
  6682. src="../assets/icon/checkNo.png"
  6683. alt
  6684. v-if="checktoolArray.indexOf(7) == -1"
  6685. />
  6686. <div class="checkDiv" v-else>
  6687. <img src="../assets/icon/checkedIs.png" alt /><span
  6688. >已选择</span
  6689. >
  6690. </div>
  6691. </div>
  6692. </div>
  6693. <div class="tool">
  6694. <div class="whiteBIcon" @click="addTools2(1)">
  6695. <img
  6696. src="../assets/icon/secondToolList/whiteBoard.png"
  6697. alt
  6698. />
  6699. <div style="margin: 5px 0">电子白板</div>
  6700. </div>
  6701. <div class="check" @click="addTools2(1)">
  6702. <img
  6703. src="../assets/icon/checkNo.png"
  6704. alt
  6705. v-if="checktoolArray.indexOf(1) == -1"
  6706. />
  6707. <div class="checkDiv" v-else>
  6708. <img src="../assets/icon/checkedIs.png" alt /><span
  6709. >已选择</span
  6710. >
  6711. </div>
  6712. </div>
  6713. </div>
  6714. <div class="tool">
  6715. <div class="whiteBIcon" @click="addTools2(52)">
  6716. <img
  6717. src="../assets/icon/fourthToolList/text.png"
  6718. alt
  6719. />
  6720. <div style="margin: 5px 0">文档</div>
  6721. </div>
  6722. <div class="check" @click="addTools2(52)">
  6723. <img
  6724. src="../assets/icon/checkNo.png"
  6725. alt
  6726. v-if="checktoolArray.indexOf(52) == -1"
  6727. />
  6728. <div class="checkDiv" v-else>
  6729. <img src="../assets/icon/checkedIs.png" alt /><span
  6730. >已选择</span
  6731. >
  6732. </div>
  6733. </div>
  6734. </div>
  6735. <div class="tool">
  6736. <div class="whiteBIcon" @click="addTools2(3)">
  6737. <img
  6738. src="../assets/icon/secondToolList/mindMapping.png"
  6739. alt
  6740. />
  6741. <div style="margin: 5px 0">思维导图</div>
  6742. </div>
  6743. <div class="check" @click="addTools2(3)">
  6744. <img
  6745. src="../assets/icon/checkNo.png"
  6746. alt
  6747. v-if="checktoolArray.indexOf(3) == -1"
  6748. />
  6749. <div class="checkDiv" v-else>
  6750. <img src="../assets/icon/checkedIs.png" alt /><span
  6751. >已选择</span
  6752. >
  6753. </div>
  6754. </div>
  6755. </div>
  6756. <div class="tool">
  6757. <div class="whiteBIcon" @click="addTools2(48)">
  6758. <img
  6759. src="../assets/icon/fourthToolList/table.png"
  6760. alt
  6761. />
  6762. <div style="margin: 5px 0">表格</div>
  6763. </div>
  6764. <div class="check" @click="addTools2(48)">
  6765. <img
  6766. src="../assets/icon/checkNo.png"
  6767. alt
  6768. v-if="checktoolArray.indexOf(48) == -1"
  6769. />
  6770. <div class="checkDiv" v-else>
  6771. <img src="../assets/icon/checkedIs.png" alt /><span
  6772. >已选择</span
  6773. >
  6774. </div>
  6775. </div>
  6776. </div>
  6777. </div>
  6778. <div class="toolSort" v-if="toolType == 6">
  6779. <div v-show="tooC == 49">
  6780. <img
  6781. @click="addTools(tooC, toolIndex, taskCount)"
  6782. src="../assets/icon/fourthToolList/group.png"
  6783. alt
  6784. />
  6785. <div style="margin: 5px 0">学生分组</div>
  6786. </div>
  6787. </div>
  6788. <div class="toolSort" v-if="toolType == 2">
  6789. <div class="tool">
  6790. <div class="whiteBIcon" @click="addTools2(16)">
  6791. <img
  6792. src="../assets/icon/thirdToolList/work.png"
  6793. alt
  6794. />
  6795. <div style="margin: 5px 0">作业提交</div>
  6796. </div>
  6797. <div class="check" @click="addTools2(16)">
  6798. <img
  6799. src="../assets/icon/checkNo.png"
  6800. alt
  6801. v-if="checktoolArray.indexOf(16) == -1"
  6802. />
  6803. <div class="checkDiv" v-else>
  6804. <img src="../assets/icon/checkedIs.png" alt /><span
  6805. >已选择</span
  6806. >
  6807. </div>
  6808. </div>
  6809. </div>
  6810. <div class="tool">
  6811. <div class="whiteBIcon" @click="addTools2(50)">
  6812. <img
  6813. src="../assets/icon/thirdToolList/plwork.png"
  6814. alt
  6815. />
  6816. <div style="margin: 5px 0">批量上传</div>
  6817. </div>
  6818. <div class="check" @click="addTools2(50)">
  6819. <img
  6820. src="../assets/icon/checkNo.png"
  6821. alt
  6822. v-if="checktoolArray.indexOf(50) == -1"
  6823. />
  6824. <div class="checkDiv" v-else>
  6825. <img src="../assets/icon/checkedIs.png" alt /><span
  6826. >已选择</span
  6827. >
  6828. </div>
  6829. </div>
  6830. </div>
  6831. </div>
  6832. <div class="toolSort" v-if="toolType == 3">
  6833. <div class="tool">
  6834. <div class="whiteBIcon" @click="addTools2(18)">
  6835. <img
  6836. src="../assets/icon/thirdToolList/trainPlatform.png"
  6837. alt
  6838. />
  6839. <div style="margin: 5px 0">训练平台</div>
  6840. </div>
  6841. <div class="check" @click="addTools2(18)">
  6842. <img
  6843. src="../assets/icon/checkNo.png"
  6844. alt
  6845. v-if="checktoolArray.indexOf(18) == -1"
  6846. />
  6847. <div class="checkDiv" v-else>
  6848. <img src="../assets/icon/checkedIs.png" alt /><span
  6849. >已选择</span
  6850. >
  6851. </div>
  6852. </div>
  6853. </div>
  6854. <div class="tool">
  6855. <div class="whiteBIcon" @click="addTools2(21)">
  6856. <img
  6857. src="../assets/icon/fourthToolList/program.png"
  6858. alt
  6859. />
  6860. <div style="margin: 5px 0">AIoT Blockly</div>
  6861. </div>
  6862. <div class="check" @click="addTools2(21)">
  6863. <img
  6864. src="../assets/icon/checkNo.png"
  6865. alt
  6866. v-if="checktoolArray.indexOf(21) == -1"
  6867. />
  6868. <div class="checkDiv" v-else>
  6869. <img src="../assets/icon/checkedIs.png" alt /><span
  6870. >已选择</span
  6871. >
  6872. </div>
  6873. </div>
  6874. </div>
  6875. <div class="tool">
  6876. <div class="whiteBIcon" @click="addTools2(23)">
  6877. <img
  6878. src="../assets/icon/fourthToolList/Pythonprogram.png"
  6879. alt
  6880. />
  6881. <div style="margin: 5px 0">AI Python</div>
  6882. </div>
  6883. <div class="check" @click="addTools2(23)">
  6884. <img
  6885. src="../assets/icon/checkNo.png"
  6886. alt
  6887. v-if="checktoolArray.indexOf(23) == -1"
  6888. />
  6889. <div class="checkDiv" v-else>
  6890. <img src="../assets/icon/checkedIs.png" alt /><span
  6891. >已选择</span
  6892. >
  6893. </div>
  6894. </div>
  6895. </div>
  6896. <div class="tool">
  6897. <div class="whiteBIcon" @click="addTools2(24)">
  6898. <img
  6899. src="../assets/icon/fourthToolList/AIprogram.png"
  6900. alt
  6901. />
  6902. <div style="margin: 5px 0">AI Blockly</div>
  6903. </div>
  6904. <div class="check" @click="addTools2(24)">
  6905. <img
  6906. src="../assets/icon/checkNo.png"
  6907. alt
  6908. v-if="checktoolArray.indexOf(24) == -1"
  6909. />
  6910. <div class="checkDiv" v-else>
  6911. <img src="../assets/icon/checkedIs.png" alt /><span
  6912. >已选择</span
  6913. >
  6914. </div>
  6915. </div>
  6916. </div>
  6917. <div class="tool">
  6918. <div class="whiteBIcon" @click="addTools2(32)">
  6919. <img
  6920. src="../assets/icon/thirdToolList/code.png"
  6921. alt
  6922. />
  6923. <div style="margin: 5px 0">源码编辑</div>
  6924. </div>
  6925. <div class="check" @click="addTools2(32)">
  6926. <img
  6927. src="../assets/icon/checkNo.png"
  6928. alt
  6929. v-if="checktoolArray.indexOf(32) == -1"
  6930. />
  6931. <div class="checkDiv" v-else>
  6932. <img src="../assets/icon/checkedIs.png" alt /><span
  6933. >已选择</span
  6934. >
  6935. </div>
  6936. </div>
  6937. </div>
  6938. <div class="tool">
  6939. <div class="whiteBIcon" @click="addTools2(57)">
  6940. <img
  6941. src="../assets/icon/fourthToolList/cocopi.png"
  6942. alt
  6943. />
  6944. <div style="margin: 5px 0">CocoPi</div>
  6945. </div>
  6946. <div class="check" @click="addTools2(57)">
  6947. <img
  6948. src="../assets/icon/checkNo.png"
  6949. alt
  6950. v-if="checktoolArray.indexOf(57) == -1"
  6951. />
  6952. <div class="checkDiv" v-else>
  6953. <img src="../assets/icon/checkedIs.png" alt /><span
  6954. >已选择</span
  6955. >
  6956. </div>
  6957. </div>
  6958. </div>
  6959. <div class="tool">
  6960. <div class="whiteBIcon" @click="addTools2(63)">
  6961. <img
  6962. src="../assets/icon/fourthToolList/Wood.png"
  6963. alt
  6964. />
  6965. <div style="margin: 5px 0">海龟编程</div>
  6966. </div>
  6967. <div class="check" @click="addTools2(63)">
  6968. <img
  6969. src="../assets/icon/checkNo.png"
  6970. alt
  6971. v-if="checktoolArray.indexOf(63) == -1"
  6972. />
  6973. <div class="checkDiv" v-else>
  6974. <img src="../assets/icon/checkedIs.png" alt /><span
  6975. >已选择</span
  6976. >
  6977. </div>
  6978. </div>
  6979. </div>
  6980. </div>
  6981. <div class="toolSort" v-if="toolType == 5">
  6982. <div class="tool">
  6983. <div class="whiteBIcon" @click="addTools2(28)">
  6984. <img
  6985. src="../assets/icon/secondToolList/translation.png"
  6986. alt
  6987. />
  6988. <div style="margin: 5px 0">翻译</div>
  6989. </div>
  6990. <div class="check" @click="addTools2(28)">
  6991. <img
  6992. src="../assets/icon/checkNo.png"
  6993. alt
  6994. v-if="checktoolArray.indexOf(28) == -1"
  6995. />
  6996. <div class="checkDiv" v-else>
  6997. <img src="../assets/icon/checkedIs.png" alt /><span
  6998. >已选择</span
  6999. >
  7000. </div>
  7001. </div>
  7002. </div>
  7003. <div class="tool">
  7004. <div class="whiteBIcon" @click="addTools2(31)">
  7005. <img
  7006. src="../assets/icon/secondToolList/networkPanel.png"
  7007. alt
  7008. />
  7009. <div style="margin: 5px 0">数字画板</div>
  7010. </div>
  7011. <div class="check" @click="addTools2(31)">
  7012. <img
  7013. src="../assets/icon/checkNo.png"
  7014. alt
  7015. v-if="checktoolArray.indexOf(31) == -1"
  7016. />
  7017. <div class="checkDiv" v-else>
  7018. <img src="../assets/icon/checkedIs.png" alt /><span
  7019. >已选择</span
  7020. >
  7021. </div>
  7022. </div>
  7023. </div>
  7024. <div class="tool">
  7025. <div class="whiteBIcon" @click="addTools2(39)">
  7026. <img
  7027. src="../assets/icon/secondToolList/GeoGebra.png"
  7028. alt
  7029. />
  7030. <div style="margin: 5px 0">GeoGebra</div>
  7031. </div>
  7032. <div class="check" @click="addTools2(39)">
  7033. <img
  7034. src="../assets/icon/checkNo.png"
  7035. alt
  7036. v-if="checktoolArray.indexOf(39) == -1"
  7037. />
  7038. <div class="checkDiv" v-else>
  7039. <img src="../assets/icon/checkedIs.png" alt /><span
  7040. >已选择</span
  7041. >
  7042. </div>
  7043. </div>
  7044. </div>
  7045. <div class="tool">
  7046. <div class="whiteBIcon" @click="addTools2(66)">
  7047. <img
  7048. src="../assets/icon/secondToolList/formulaEdi.png"
  7049. alt
  7050. />
  7051. <div style="margin: 5px 0">公式编辑</div>
  7052. </div>
  7053. <div class="check" @click="addTools2(66)">
  7054. <img
  7055. src="../assets/icon/checkNo.png"
  7056. alt
  7057. v-if="checktoolArray.indexOf(66) == -1"
  7058. />
  7059. <div class="checkDiv" v-else>
  7060. <img src="../assets/icon/checkedIs.png" alt /><span
  7061. >已选择</span
  7062. >
  7063. </div>
  7064. </div>
  7065. </div>
  7066. <div class="tool">
  7067. <div class="whiteBIcon" @click="addTools2(67)">
  7068. <img
  7069. src="../assets/icon/secondToolList/molStr.png"
  7070. alt
  7071. />
  7072. <div style="margin: 5px 0">分子结构</div>
  7073. </div>
  7074. <div class="check" @click="addTools2(67)">
  7075. <img
  7076. src="../assets/icon/checkNo.png"
  7077. alt
  7078. v-if="checktoolArray.indexOf(67) == -1"
  7079. />
  7080. <div class="checkDiv" v-else>
  7081. <img src="../assets/icon/checkedIs.png" alt /><span
  7082. >已选择</span
  7083. >
  7084. </div>
  7085. </div>
  7086. </div>
  7087. <div class="tool">
  7088. <div class="whiteBIcon" @click="addTools2(68)">
  7089. <img
  7090. src="../assets/icon/secondToolList/timeAxis.png"
  7091. alt
  7092. />
  7093. <div style="margin: 5px 0">时间轴</div>
  7094. </div>
  7095. <div class="check" @click="addTools2(68)">
  7096. <img
  7097. src="../assets/icon/checkNo.png"
  7098. alt
  7099. v-if="checktoolArray.indexOf(68) == -1"
  7100. />
  7101. <div class="checkDiv" v-else>
  7102. <img src="../assets/icon/checkedIs.png" alt /><span
  7103. >已选择</span
  7104. >
  7105. </div>
  7106. </div>
  7107. </div>
  7108. </div>
  7109. <div class="toolSort" v-if="toolType == 7">
  7110. <div class="tool">
  7111. <div class="whiteBIcon" @click="addTools2(40)">
  7112. <img
  7113. src="../assets/icon/secondToolList/eval.png"
  7114. alt
  7115. />
  7116. <div style="margin: 5px 0">个人评价</div>
  7117. </div>
  7118. <div class="check" @click="addTools2(40)">
  7119. <img
  7120. src="../assets/icon/checkNo.png"
  7121. alt
  7122. v-if="checktoolArray.indexOf(40) == -1"
  7123. />
  7124. <div class="checkDiv" v-else>
  7125. <img src="../assets/icon/checkedIs.png" alt /><span
  7126. >已选择</span
  7127. >
  7128. </div>
  7129. </div>
  7130. </div>
  7131. </div>
  7132. <div class="toolSort" v-if="toolType == 4">
  7133. <div class="tool">
  7134. <div class="whiteBIcon" @click="addTools2(26)">
  7135. <img
  7136. src="../assets/icon/thirdToolList/courseDesign.png"
  7137. alt
  7138. />
  7139. <div style="margin: 5px 0">课程设计</div>
  7140. </div>
  7141. <div class="check" @click="addTools2(26)">
  7142. <img
  7143. src="../assets/icon/checkNo.png"
  7144. alt
  7145. v-if="checktoolArray.indexOf(26) == -1"
  7146. />
  7147. <div class="checkDiv" v-else>
  7148. <img src="../assets/icon/checkedIs.png" alt /><span
  7149. >已选择</span
  7150. >
  7151. </div>
  7152. </div>
  7153. </div>
  7154. <div class="tool">
  7155. <div class="whiteBIcon" @click="addTools2(25)">
  7156. <img
  7157. src="../assets/icon/thirdToolList/evalua.png"
  7158. alt
  7159. />
  7160. <div style="margin: 5px 0">目标管理</div>
  7161. </div>
  7162. <div class="check" @click="addTools2(25)">
  7163. <img
  7164. src="../assets/icon/checkNo.png"
  7165. alt
  7166. v-if="checktoolArray.indexOf(25) == -1"
  7167. />
  7168. <div class="checkDiv" v-else>
  7169. <img src="../assets/icon/checkedIs.png" alt /><span
  7170. >已选择</span
  7171. >
  7172. </div>
  7173. </div>
  7174. </div>
  7175. </div>
  7176. </div>
  7177. </div>
  7178. </div>
  7179. </div> -->
  7180. <div
  7181. class="vedioBox"
  7182. style="margin-top: 10px; border-radius: 20px"
  7183. v-if="
  7184. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7185. .eList &&
  7186. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7187. .eList.length &&
  7188. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7189. .eList.length > 0 &&
  7190. tType != 2
  7191. "
  7192. >
  7193. <div
  7194. class="queTop"
  7195. style="
  7196. font-size: 20px;
  7197. padding: 15px 0 15px 37px;
  7198. font-weight: bold;
  7199. "
  7200. >
  7201. <!-- <div class="question" style="width: 30px">
  7202. <img src="../assets/icon/toolIcon.png" alt />
  7203. </div>
  7204. <div class="queTitle">
  7205. <div>工具</div>
  7206. </div>-->
  7207. 评一评
  7208. </div>
  7209. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7210. <div class="elist_input">
  7211. <el-table
  7212. :data="
  7213. chapInfoList[courseType].chapterInfo[0].taskJson[
  7214. taskCount
  7215. ].eList
  7216. "
  7217. :header-cell-style="{ background: '#F0F4FA' }"
  7218. :row-class-name="tableRowClassName"
  7219. border
  7220. stripe
  7221. style="width: 100%"
  7222. >
  7223. <el-table-column
  7224. label="评价名称"
  7225. width="180"
  7226. align="center"
  7227. >
  7228. <template slot-scope="scope"
  7229. ><div>{{ scope.row.value }}</div></template
  7230. >
  7231. </el-table-column>
  7232. <el-table-column
  7233. label="评价描述"
  7234. width="180"
  7235. align="center"
  7236. >
  7237. <template slot-scope="scope"
  7238. ><div>
  7239. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7240. </div></template
  7241. >
  7242. </el-table-column>
  7243. <el-table-column label="目标" align="center">
  7244. <template slot-scope="scope"
  7245. ><div>
  7246. {{
  7247. scope.row.target
  7248. ? scope.row.target[scope.row.target.length - 1]
  7249. : "-"
  7250. }}
  7251. </div></template
  7252. ></el-table-column
  7253. >
  7254. </el-table>
  7255. <!-- <div
  7256. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7257. .chapterInfo[0].taskJson[taskCount].eList"
  7258. :key="eIndex"
  7259. class="elist_input_box"
  7260. >
  7261. <div style="width: 95%">
  7262. <div
  7263. style="
  7264. display: flex;
  7265. flex-direction: row;
  7266. flex-wrap: nowrap;
  7267. align-items: center;
  7268. "
  7269. >
  7270. <div style="max-width: calc(100% - 285px)">
  7271. <span>{{ eItem.value }}</span>
  7272. </div>
  7273. <div
  7274. style="
  7275. padding-left: 25px;
  7276. display: flex;
  7277. flex-direction: row;
  7278. align-items: center;
  7279. "
  7280. >
  7281. <el-rate
  7282. v-model="eItem.score"
  7283. :colors="colors"
  7284. disabled
  7285. ></el-rate>
  7286. </div>
  7287. </div>
  7288. <div class="elist_inptu_text" style="padding-left: 10px">
  7289. <span v-if="eItem.detail != ''">{{
  7290. eItem.detail
  7291. }}</span>
  7292. <span v-else style="color: #b2b1b3; font-size: 14px"
  7293. >暂无描述...</span
  7294. >
  7295. </div>
  7296. </div>
  7297. </div> -->
  7298. </div>
  7299. <div
  7300. v-if="evalua"
  7301. style="
  7302. border: 1px solid #e5e5e5;
  7303. max-width: 650px;
  7304. width: 100%;
  7305. margin-top: 20px;
  7306. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7307. "
  7308. >
  7309. <div class="e_add_top">
  7310. <div class="e_add_title">
  7311. <span>目标管理名称</span>
  7312. <span>{{ eTitle }}</span>
  7313. <img
  7314. src="../assets/line.png"
  7315. class="cru_line"
  7316. style="
  7317. width: 125px;
  7318. height: 20px;
  7319. bottom: -10px;
  7320. left: 120px;
  7321. "
  7322. />
  7323. <!-- <el-input
  7324. v-model="eTitle"
  7325. placeholder="请输入名称"
  7326. @change="setMindData"
  7327. ></el-input>-->
  7328. </div>
  7329. </div>
  7330. <div class="e_add_content">
  7331. <div class="e_add_list_pbox">
  7332. <div class="e_add_list_pbox_title">
  7333. <span class="type_title">切换模式</span>
  7334. <div class="type_content">
  7335. <span
  7336. :class="{ active: typeMode == 1 }"
  7337. @click="typeMode = 1"
  7338. >目标树</span
  7339. >
  7340. <span
  7341. :class="{ active: typeMode == 2 }"
  7342. @click="typeMode = 2"
  7343. >目标罗盘</span
  7344. >
  7345. <span
  7346. :class="{ active: typeMode == 3 }"
  7347. @click="typeMode = 3"
  7348. >目标看板</span
  7349. >
  7350. </div>
  7351. </div>
  7352. <div class="e_add_list_pbox_content">
  7353. <Mind
  7354. :showBar="false"
  7355. :mindData="data"
  7356. style="width: 100%"
  7357. v-show="typeMode == 1"
  7358. ></Mind>
  7359. <Sunburst
  7360. :Josn="eJson"
  7361. :num="eJSONNum"
  7362. style="width: 100%"
  7363. v-if="typeMode == 2"
  7364. ></Sunburst>
  7365. <SeeBoard
  7366. :Josn="eJson"
  7367. :num="eJSONNum"
  7368. :ename="eTitle"
  7369. style="width: 100%"
  7370. v-if="typeMode == 3"
  7371. >
  7372. </SeeBoard>
  7373. </div>
  7374. </div>
  7375. </div>
  7376. </div>
  7377. </div>
  7378. </div>
  7379. <!-- <div
  7380. class="project_box"
  7381. style="margin-top: 15px; padding-bottom: 30px"
  7382. >
  7383. <div
  7384. style="
  7385. display: flex;
  7386. flex-wrap: nowrap;
  7387. flex-direction: column;
  7388. position: relative;
  7389. "
  7390. >
  7391. <div class="queTop">
  7392. <div class="question">
  7393. <img src="../assets/icon/homeWork.png" alt="" />
  7394. </div>
  7395. <div class="queTitle">
  7396. <div>作业提交<span>(提交图文视频等)</span></div>
  7397. <div>:任务:{{ task.task }}</div>
  7398. </div>
  7399. </div>
  7400. <div class="ediBottom">
  7401. <div
  7402. class="addEditor"
  7403. style="margin-top: 23px"
  7404. @click="openAddWork"
  7405. v-if="!isNoHomeWork"
  7406. >
  7407. 选择文件
  7408. </div>
  7409. <div
  7410. class="addEditor"
  7411. style="margin-top: 23px"
  7412. @click="openAddWork"
  7413. v-else
  7414. >
  7415. 已提交
  7416. </div>
  7417. </div>
  7418. </div>
  7419. </div>-->
  7420. </div>
  7421. </div>
  7422. <el-dialog
  7423. title="作业提交"
  7424. :visible.sync="dialogVisible"
  7425. :append-to-body="true"
  7426. width="500px"
  7427. :before-close="handleClose"
  7428. class="dialog_change"
  7429. >
  7430. <div class="marginT">
  7431. <div>上传文件</div>
  7432. <div
  7433. class="chapter_add"
  7434. @click="addImg($event)"
  7435. v-if="studyJuri[0].cover.length == 0"
  7436. >
  7437. <div class="up_photo">
  7438. <img src="../assets/icon/uploadImg.png" alt />
  7439. </div>
  7440. <!-- <input
  7441. type="file"
  7442. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7443. style="display: none"
  7444. @change="beforeUpload1($event, 1)"
  7445. /> -->
  7446. <input
  7447. type="file"
  7448. accept="*"
  7449. style="display: none"
  7450. @change="beforeUpload1($event, 1)"
  7451. />
  7452. <!-- <input
  7453. type="file"
  7454. accept="image/*"
  7455. capture="camera"
  7456. style="display: none"
  7457. @change="beforeUpload1($event, 1)"
  7458. /> -->
  7459. </div>
  7460. <div
  7461. class="chapter_add"
  7462. style="
  7463. display: flex;
  7464. width: 100%;
  7465. flex-direction: row;
  7466. flex-wrap: wrap;
  7467. justify-content: flex-start;
  7468. padding: 15px 0;
  7469. "
  7470. v-if="studyJuri[0].cover.length > 0"
  7471. >
  7472. <div class="upCover">
  7473. <img
  7474. :src="studyJuri[0].cover[0].url"
  7475. alt
  7476. v-if="fileType == 0"
  7477. />
  7478. <img :src="word" alt v-else-if="fileType == 1" />
  7479. <img :src="video" alt v-else-if="fileType == 2" />
  7480. <img :src="word2" alt v-else-if="fileType == 3" />
  7481. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7482. <div class="deleteWord" @click="clean(1)">
  7483. <img src="../assets/icon/deleteWorks.png" alt />
  7484. </div>
  7485. </div>
  7486. </div>
  7487. </div>
  7488. <div
  7489. class="upload_send"
  7490. @click="addCourseWorks(taskCount)"
  7491. v-if="!proVisible"
  7492. >
  7493. 提交
  7494. </div>
  7495. </el-dialog>
  7496. </div>
  7497. </div>
  7498. <div
  7499. class="pButton"
  7500. @click="(pzDialog = true), selectPz()"
  7501. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7502. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  7503. >
  7504. <!-- 批 -->
  7505. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  7506. </div>
  7507. <div v-if="pzDialog == true" class="newDialogCss">
  7508. <div class="pzTop2">
  7509. <!-- <div>批注</div>
  7510. <div @click="pzDialog = false">
  7511. <img src="../assets/close1.png" alt="" />
  7512. </div> -->
  7513. <div class="checkbox">
  7514. <div class="check" style="font-size: 25px; position: unset">
  7515. 评课笔记
  7516. </div>
  7517. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  7518. <el-option label="时间降序" :value="1"></el-option>
  7519. <el-option label="时间升序" :value="2"></el-option>
  7520. <el-option label="我的评课" :value="3"></el-option>
  7521. </el-select>
  7522. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7523. </div>
  7524. </div>
  7525. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7526. <div class="pzListBox" v-if="pzList && pzList.length">
  7527. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7528. <div class="pzNavTop">
  7529. <div>批</div>
  7530. <div>
  7531. {{
  7532. pz.username && pz.username.length > 5
  7533. ? pz.username.substring(0, 5) + "..."
  7534. : pz.username
  7535. }}的批注
  7536. </div>
  7537. <div
  7538. class="pzDelete"
  7539. v-if="pz.userid == userid"
  7540. @click="deletePz(pz.id)"
  7541. >
  7542. 删除
  7543. </div>
  7544. </div>
  7545. <div
  7546. @click="checkImg(getImgList(pz.content))"
  7547. class="pzContent cont"
  7548. v-html="pz.content"
  7549. v-if="pz.type == '1'"
  7550. ></div>
  7551. <div class="pzContent" v-if="pz.type == '2'">
  7552. <audio :src="pz.content" controls="controls" ref="audio">
  7553. Your browser does not support the audio element.
  7554. </audio>
  7555. </div>
  7556. <div class="pzContent" v-if="pz.type == '3'">
  7557. <img
  7558. :src="pz.content"
  7559. style="width: 90%; margin: 0 auto; display: block"
  7560. @click="previewImg(pz.content)"
  7561. />
  7562. </div>
  7563. <div class="timeAndReply">
  7564. <div class="time">
  7565. {{ pz.time }}
  7566. </div>
  7567. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  7568. </div>
  7569. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  7570. <div
  7571. v-for="(h, hIndex) in pz.hfList"
  7572. :key="hIndex"
  7573. class="hfItem"
  7574. >
  7575. <div class="whoReplyWho">
  7576. <div class="hfName">{{ h.username }}</div>
  7577. <div class="hfImg">
  7578. <img src="../assets/icon/newIcons/right.png" alt="" />
  7579. </div>
  7580. <div class="hfName">{{ pz.username }}</div>
  7581. </div>
  7582. <div class="hfContent" v-html="h.content"></div>
  7583. <div class="hfBottom">
  7584. <div class="hfTime">{{ h.time }}</div>
  7585. <div
  7586. class="deleteHfItem"
  7587. @click="deleteReply(h.id)"
  7588. v-if="userid == h.userid"
  7589. >
  7590. <img src="../assets/icon/newIcons/delete.png" alt="" />
  7591. </div>
  7592. </div>
  7593. </div>
  7594. </div>
  7595. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  7596. <div class="replyInput">
  7597. <el-input v-model="reply[pzIndex]"></el-input>
  7598. </div>
  7599. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  7600. </div> -->
  7601. </div>
  7602. </div>
  7603. <div class="noPz" v-else>
  7604. <img src="../assets/icon/noPz.png" alt="" />
  7605. </div>
  7606. <div class="addPzButton">
  7607. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7608. 添加批注
  7609. </div>
  7610. <!-- <div class="img1">
  7611. <div @click="(addPzDialog = true), (pzType = 2)">
  7612. <img src="../assets/audio.png" /><span>音频</span>
  7613. </div>
  7614. </div> -->
  7615. </div>
  7616. </div>
  7617. </div>
  7618. <div
  7619. v-if="toolDialogVisible == true"
  7620. class="toolMask"
  7621. @click="toolDialogVisible = false"
  7622. ></div>
  7623. <div v-if="toolDialogVisible == true" class="addToolCss">
  7624. <div class="toolTop">
  7625. <div style="font-weight: bold">新增工具</div>
  7626. <div @click="toolDialogVisible = false">
  7627. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  7628. </div>
  7629. </div>
  7630. <div class="tool_box">
  7631. <div class="tool_type_box">
  7632. <div class="chooseWho">
  7633. <div
  7634. :class="toolType == 0 ? 'isChooseActive' : ''"
  7635. @click="(toolType = 0), $forceUpdate()"
  7636. >
  7637. 互动类
  7638. </div>
  7639. <div
  7640. :class="toolType == 1 ? 'isChooseActive' : ''"
  7641. @click="(toolType = 1), $forceUpdate()"
  7642. >
  7643. 思维类
  7644. </div>
  7645. <div
  7646. :class="toolType == 2 ? 'isChooseActive' : ''"
  7647. @click="(toolType = 2), $forceUpdate()"
  7648. >
  7649. 测评类
  7650. </div>
  7651. <div
  7652. :class="toolType == 3 ? 'isChooseActive' : ''"
  7653. @click="(toolType = 3), $forceUpdate()"
  7654. >
  7655. 编程类
  7656. </div>
  7657. <div
  7658. :class="toolType == 5 ? 'isChooseActive' : ''"
  7659. @click="(toolType = 5), $forceUpdate()"
  7660. >
  7661. 学科类
  7662. </div>
  7663. </div>
  7664. </div>
  7665. <div>
  7666. <div class="toolSort" v-if="toolType == 0">
  7667. <div
  7668. class="tool"
  7669. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  7670. @click="addTools2(10)"
  7671. >
  7672. <div class="whiteBIcon">
  7673. <img src="../assets/icon/thirdToolList/time.png" alt />
  7674. <div style="margin: 5px 0">倒计时</div>
  7675. </div>
  7676. <div class="check">
  7677. <div
  7678. v-if="checktoolArray.indexOf(10) == -1"
  7679. class="noChoose"
  7680. ></div>
  7681. <div v-else class="isChoose"></div>
  7682. </div>
  7683. </div>
  7684. <div
  7685. class="tool"
  7686. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  7687. @click="addTools2(65)"
  7688. >
  7689. <div class="whiteBIcon">
  7690. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  7691. <div style="margin: 5px 0">挑人</div>
  7692. </div>
  7693. <div class="check">
  7694. <div
  7695. v-if="checktoolArray.indexOf(65) == -1"
  7696. class="noChoose"
  7697. ></div>
  7698. <div v-else class="isChoose"></div>
  7699. </div>
  7700. </div>
  7701. </div>
  7702. <div class="toolSort" v-if="toolType == 1">
  7703. <div
  7704. class="tool"
  7705. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  7706. @click="addTools2(7)"
  7707. >
  7708. <div class="whiteBIcon">
  7709. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  7710. <div style="margin: 5px 0">思维网格</div>
  7711. </div>
  7712. <div class="check">
  7713. <div
  7714. v-if="checktoolArray.indexOf(7) == -1"
  7715. class="noChoose"
  7716. ></div>
  7717. <div v-else class="isChoose"></div>
  7718. </div>
  7719. </div>
  7720. <div
  7721. class="tool"
  7722. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  7723. @click="addTools2(1)"
  7724. >
  7725. <div class="whiteBIcon">
  7726. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  7727. <div style="margin: 5px 0">电子白板</div>
  7728. </div>
  7729. <div class="check">
  7730. <div
  7731. v-if="checktoolArray.indexOf(1) == -1"
  7732. class="noChoose"
  7733. ></div>
  7734. <div v-else class="isChoose"></div>
  7735. </div>
  7736. </div>
  7737. <div
  7738. class="tool"
  7739. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  7740. @click="addTools2(52)"
  7741. >
  7742. <div class="whiteBIcon">
  7743. <img src="../assets/icon/fourthToolList/text.png" alt />
  7744. <div style="margin: 5px 0">文档</div>
  7745. </div>
  7746. <div class="check">
  7747. <div
  7748. v-if="checktoolArray.indexOf(52) == -1"
  7749. class="noChoose"
  7750. ></div>
  7751. <div v-else class="isChoose"></div>
  7752. </div>
  7753. </div>
  7754. <div
  7755. class="tool"
  7756. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  7757. @click="addTools2(3)"
  7758. >
  7759. <div class="whiteBIcon">
  7760. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  7761. <div style="margin: 5px 0">思维导图</div>
  7762. </div>
  7763. <div class="check">
  7764. <div
  7765. v-if="checktoolArray.indexOf(3) == -1"
  7766. class="noChoose"
  7767. ></div>
  7768. <div v-else class="isChoose"></div>
  7769. </div>
  7770. </div>
  7771. <div
  7772. class="tool"
  7773. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  7774. @click="addTools2(48)"
  7775. >
  7776. <div class="whiteBIcon">
  7777. <img src="../assets/icon/fourthToolList/table.png" alt />
  7778. <div style="margin: 5px 0">表格</div>
  7779. </div>
  7780. <div class="check">
  7781. <div
  7782. v-if="checktoolArray.indexOf(48) == -1"
  7783. class="noChoose"
  7784. ></div>
  7785. <div v-else class="isChoose"></div>
  7786. </div>
  7787. </div>
  7788. </div>
  7789. <div class="toolSort" v-if="toolType == 6">
  7790. <div v-show="tooC == 49">
  7791. <img
  7792. @click="addTools(tooC, toolIndex, taskCount)"
  7793. src="../assets/icon/fourthToolList/group.png"
  7794. alt
  7795. />
  7796. <div style="margin: 5px 0">学生分组</div>
  7797. </div>
  7798. </div>
  7799. <div class="toolSort" v-if="toolType == 2">
  7800. <div
  7801. class="tool"
  7802. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  7803. @click="addTools2(16)"
  7804. >
  7805. <div class="whiteBIcon">
  7806. <img src="../assets/icon/thirdToolList/work.png" alt />
  7807. <div style="margin: 5px 0">作业提交</div>
  7808. </div>
  7809. <div class="check">
  7810. <div
  7811. v-if="checktoolArray.indexOf(16) == -1"
  7812. class="noChoose"
  7813. ></div>
  7814. <div v-else class="isChoose"></div>
  7815. </div>
  7816. </div>
  7817. <div
  7818. class="tool"
  7819. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  7820. @click="addTools2(50)"
  7821. >
  7822. <div class="whiteBIcon">
  7823. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  7824. <div style="margin: 5px 0">批量上传</div>
  7825. </div>
  7826. <div class="check">
  7827. <div
  7828. v-if="checktoolArray.indexOf(50) == -1"
  7829. class="noChoose"
  7830. ></div>
  7831. <div v-else class="isChoose"></div>
  7832. </div>
  7833. </div>
  7834. </div>
  7835. <div class="toolSort" v-if="toolType == 3">
  7836. <div
  7837. class="tool"
  7838. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  7839. @click="addTools2(18)"
  7840. >
  7841. <div class="whiteBIcon">
  7842. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  7843. <div style="margin: 5px 0">训练平台</div>
  7844. </div>
  7845. <div class="check">
  7846. <div
  7847. v-if="checktoolArray.indexOf(18) == -1"
  7848. class="noChoose"
  7849. ></div>
  7850. <div v-else class="isChoose"></div>
  7851. </div>
  7852. </div>
  7853. <div
  7854. class="tool"
  7855. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  7856. @click="addTools2(21)"
  7857. >
  7858. <div class="whiteBIcon">
  7859. <img src="../assets/icon/fourthToolList/program.png" alt />
  7860. <div style="margin: 5px 0">AIoT Blockly</div>
  7861. </div>
  7862. <div class="check">
  7863. <div
  7864. v-if="checktoolArray.indexOf(21) == -1"
  7865. class="noChoose"
  7866. ></div>
  7867. <div v-else class="isChoose"></div>
  7868. </div>
  7869. </div>
  7870. <div
  7871. class="tool"
  7872. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  7873. @click="addTools2(23)"
  7874. >
  7875. <div class="whiteBIcon">
  7876. <img
  7877. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7878. alt
  7879. />
  7880. <div style="margin: 5px 0">AI Python</div>
  7881. </div>
  7882. <div class="check">
  7883. <div
  7884. v-if="checktoolArray.indexOf(23) == -1"
  7885. class="noChoose"
  7886. ></div>
  7887. <div v-else class="isChoose"></div>
  7888. </div>
  7889. </div>
  7890. <div
  7891. class="tool"
  7892. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  7893. @click="addTools2(24)"
  7894. >
  7895. <div class="whiteBIcon">
  7896. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  7897. <div style="margin: 5px 0">AI Blockly</div>
  7898. </div>
  7899. <div class="check">
  7900. <div
  7901. v-if="checktoolArray.indexOf(24) == -1"
  7902. class="noChoose"
  7903. ></div>
  7904. <div v-else class="isChoose"></div>
  7905. </div>
  7906. </div>
  7907. <div
  7908. class="tool"
  7909. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  7910. @click="addTools2(32)"
  7911. >
  7912. <div class="whiteBIcon">
  7913. <img src="../assets/icon/thirdToolList/code.png" alt />
  7914. <div style="margin: 5px 0">源码编辑</div>
  7915. </div>
  7916. <div class="check">
  7917. <div
  7918. v-if="checktoolArray.indexOf(32) == -1"
  7919. class="noChoose"
  7920. ></div>
  7921. <div v-else class="isChoose"></div>
  7922. </div>
  7923. </div>
  7924. <div
  7925. class="tool"
  7926. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  7927. @click="addTools2(57)"
  7928. >
  7929. <div class="whiteBIcon">
  7930. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  7931. <div style="margin: 5px 0">CocoPi</div>
  7932. </div>
  7933. <div class="check">
  7934. <div
  7935. v-if="checktoolArray.indexOf(57) == -1"
  7936. class="noChoose"
  7937. ></div>
  7938. <div v-else class="isChoose"></div>
  7939. </div>
  7940. </div>
  7941. <div
  7942. class="tool"
  7943. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  7944. @click="addTools2(63)"
  7945. >
  7946. <div class="whiteBIcon">
  7947. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  7948. <div style="margin: 5px 0">海龟编程</div>
  7949. </div>
  7950. <div class="check">
  7951. <div
  7952. v-if="checktoolArray.indexOf(63) == -1"
  7953. class="noChoose"
  7954. ></div>
  7955. <div v-else class="isChoose"></div>
  7956. </div>
  7957. </div>
  7958. </div>
  7959. <div class="toolSort" v-if="toolType == 7">
  7960. <div
  7961. class="tool"
  7962. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  7963. @click="addTools2(40)"
  7964. >
  7965. <div class="whiteBIcon">
  7966. <img src="../assets/icon/secondToolList/eval.png" alt />
  7967. <div style="margin: 5px 0">个人评价</div>
  7968. </div>
  7969. <div class="check">
  7970. <div
  7971. v-if="checktoolArray.indexOf(40) == -1"
  7972. class="noChoose"
  7973. ></div>
  7974. <div v-else class="isChoose"></div>
  7975. </div>
  7976. </div>
  7977. </div>
  7978. <div class="toolSort" v-if="toolType == 5">
  7979. <div
  7980. class="tool"
  7981. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  7982. @click="addTools2(28)"
  7983. >
  7984. <div class="whiteBIcon">
  7985. <img src="../assets/icon/secondToolList/translation.png" alt />
  7986. <div style="margin: 5px 0">翻译</div>
  7987. </div>
  7988. <div class="check">
  7989. <div
  7990. v-if="checktoolArray.indexOf(28) == -1"
  7991. class="noChoose"
  7992. ></div>
  7993. <div v-else class="isChoose"></div>
  7994. </div>
  7995. </div>
  7996. <div
  7997. class="tool"
  7998. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  7999. @click="addTools2(31)"
  8000. >
  8001. <div class="whiteBIcon">
  8002. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8003. <div style="margin: 5px 0">数字画板</div>
  8004. </div>
  8005. <div class="check">
  8006. <div
  8007. v-if="checktoolArray.indexOf(31) == -1"
  8008. class="noChoose"
  8009. ></div>
  8010. <div v-else class="isChoose"></div>
  8011. </div>
  8012. </div>
  8013. <div
  8014. class="tool"
  8015. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8016. @click="addTools2(39)"
  8017. >
  8018. <div class="whiteBIcon">
  8019. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8020. <div style="margin: 5px 0">GeoGebra</div>
  8021. </div>
  8022. <div class="check">
  8023. <div
  8024. v-if="checktoolArray.indexOf(39) == -1"
  8025. class="noChoose"
  8026. ></div>
  8027. <div v-else class="isChoose"></div>
  8028. </div>
  8029. </div>
  8030. <div
  8031. class="tool"
  8032. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8033. @click="addTools2(66)"
  8034. >
  8035. <div class="whiteBIcon">
  8036. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8037. <div style="margin: 5px 0">公式编辑</div>
  8038. </div>
  8039. <div class="check">
  8040. <div
  8041. v-if="checktoolArray.indexOf(66) == -1"
  8042. class="noChoose"
  8043. ></div>
  8044. <div v-else class="isChoose"></div>
  8045. </div>
  8046. </div>
  8047. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8048. <div class="whiteBIcon" @click="addTools2(67)">
  8049. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8050. <div style="margin: 5px 0">分子结构</div>
  8051. </div>
  8052. <div class="check" @click="addTools2(67)">
  8053. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8054. <div v-else class="isChoose"></div>
  8055. </div>
  8056. </div> -->
  8057. <div
  8058. class="tool"
  8059. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8060. @click="addTools2(68)"
  8061. >
  8062. <div class="whiteBIcon">
  8063. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8064. <div style="margin: 5px 0">时间轴</div>
  8065. </div>
  8066. <div class="check">
  8067. <div
  8068. v-if="checktoolArray.indexOf(68) == -1"
  8069. class="noChoose"
  8070. ></div>
  8071. <div v-else class="isChoose"></div>
  8072. </div>
  8073. </div>
  8074. </div>
  8075. <div class="toolSort" v-if="toolType == 4">
  8076. <div
  8077. class="tool"
  8078. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8079. @click="addTools2(26)"
  8080. >
  8081. <div class="whiteBIcon">
  8082. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8083. <div style="margin: 5px 0">课程设计</div>
  8084. </div>
  8085. <div class="check">
  8086. <div
  8087. v-if="checktoolArray.indexOf(26) == -1"
  8088. class="noChoose"
  8089. ></div>
  8090. <div v-else class="isChoose"></div>
  8091. </div>
  8092. </div>
  8093. <div
  8094. class="tool"
  8095. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8096. @click="addTools2(25)"
  8097. >
  8098. <div class="whiteBIcon">
  8099. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8100. <div style="margin: 5px 0">目标管理</div>
  8101. </div>
  8102. <div class="check">
  8103. <div
  8104. v-if="checktoolArray.indexOf(25) == -1"
  8105. class="noChoose"
  8106. ></div>
  8107. <div v-else class="isChoose"></div>
  8108. </div>
  8109. </div>
  8110. </div>
  8111. </div>
  8112. </div>
  8113. <span
  8114. slot="footer"
  8115. class="dialog-footer"
  8116. style="display: block; text-align: center; padding: 0 0 10px 0"
  8117. >
  8118. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8119. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8120. </span>
  8121. </div>
  8122. <div
  8123. v-if="replyDialogVisible == true"
  8124. class="addDialogCss"
  8125. v-el-drag-dialog
  8126. >
  8127. <div class="pzTop">
  8128. <div class="teacherPz">
  8129. <div class="teacherPzImg">
  8130. <img src="../assets/icon/teacherPz.png" alt="" />
  8131. </div>
  8132. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8133. </div>
  8134. <div @click="replyDialogVisible = false">
  8135. <img src="../assets/close1.png" class="pzClose" alt="" />
  8136. </div>
  8137. </div>
  8138. <div class="addPzBox">
  8139. <!-- <div class="addPzCheck">
  8140. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8141. >文本</span
  8142. >
  8143. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8144. >音频</span
  8145. >
  8146. </div> -->
  8147. <div style="height: calc(100% - 50px)">
  8148. <editor-bar
  8149. class="binfo_input pzConText"
  8150. style="width: 100% !important; margin: 0 auto"
  8151. placeholder="请输入回复描述"
  8152. v-model="reply"
  8153. @change="change"
  8154. ></editor-bar>
  8155. </div>
  8156. <div class="addTextCss" @click="addHf">确定</div>
  8157. </div>
  8158. </div>
  8159. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8160. <div class="pzTop">
  8161. <div class="teacherPz">
  8162. <div class="teacherPzImg">
  8163. <img src="../assets/icon/teacherPz.png" alt="" />
  8164. </div>
  8165. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8166. </div>
  8167. <div @click="addPzDialog = false">
  8168. <img src="../assets/close1.png" class="pzClose" alt="" />
  8169. </div>
  8170. </div>
  8171. <div class="addPzBox">
  8172. <div class="addPzCheck">
  8173. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8174. >文本</span
  8175. >
  8176. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8177. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8178. >音频</span
  8179. >
  8180. </div>
  8181. <div style="height: calc(100% - 95px)">
  8182. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8183. v-if="pzType == 1"></textarea> -->
  8184. <editor-bar
  8185. class="binfo_input pzConText"
  8186. style="width: 100% !important"
  8187. placeholder="请输入任务描述"
  8188. v-model="pzConText"
  8189. @change="change"
  8190. v-if="pzType == 1"
  8191. ></editor-bar>
  8192. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8193. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8194. <div @click="addImg($event)">
  8195. <el-button type="primary">上传图片</el-button>
  8196. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8197. @change="beforeUpload1($event, 4)" />
  8198. </div>
  8199. </div> -->
  8200. </div>
  8201. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8202. 确定
  8203. </div>
  8204. </div>
  8205. </div>
  8206. <div v-if="proVisible" class="mask">
  8207. <div class="progressBox">
  8208. <!-- <div id="closePro" class="closeCss">
  8209. <img src="../assets/icon/close.png" alt />
  8210. </div> -->
  8211. <div class="lbox">
  8212. <img src="../assets/loading.gif" />上传中,请稍后
  8213. </div>
  8214. <div style="margin-bottom: 10px">
  8215. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8216. </div>
  8217. <el-progress
  8218. :text-inside="true"
  8219. :stroke-width="20"
  8220. :percentage="progress"
  8221. style="width: 80%"
  8222. ></el-progress>
  8223. </div>
  8224. </div>
  8225. <div v-if="proVisible2" class="mask">
  8226. <div class="progressBox">
  8227. <div class="lbox">
  8228. <img src="../assets/loading.gif" />上传中,请稍后
  8229. </div>
  8230. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8231. </div>
  8232. </div>
  8233. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8234. <img width="100%" :src="dialogImageUrl" alt />
  8235. </el-dialog>
  8236. <el-dialog
  8237. :title="noteName != '' ? noteName : '查看问卷'"
  8238. :visible.sync="dialogVisible5"
  8239. :append-to-body="true"
  8240. width="1000px"
  8241. :before-close="handleClose"
  8242. class="dialog_diy dialog_diy3"
  8243. >
  8244. <div>
  8245. <div
  8246. class="a_add_title"
  8247. style="
  8248. display: flex;
  8249. flex-direction: row;
  8250. align-items: center;
  8251. justify-content: center;
  8252. "
  8253. >
  8254. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8255. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8256. </div>
  8257. <div class="a_addBox">
  8258. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8259. 题目内容
  8260. </div>
  8261. <div
  8262. class="a_add_box"
  8263. v-for="(item1, index1) in askJson.askCount"
  8264. :key="index1"
  8265. >
  8266. <div class="a_add_head">
  8267. <div style="display: flex">
  8268. <span class="askIndex"> {{ index1 + 1 }}</span>
  8269. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8270. </div>
  8271. <img
  8272. v-if="askJson.askJson[index1].img"
  8273. :src="askJson.askJson[index1].img"
  8274. style="height: 300px; margin-top: 10px; max-width: 100%"
  8275. />
  8276. </div>
  8277. <div class="a_add_body">
  8278. <div class="a_add_input">
  8279. <el-radio-group
  8280. v-model="radio[index1]"
  8281. v-if="
  8282. askJson.askJson[index1].type == '1' ||
  8283. !askJson.askJson[index1].type
  8284. "
  8285. >
  8286. <el-radio
  8287. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8288. .checkList"
  8289. :key="checkIndex"
  8290. :label="checkIndex"
  8291. :disabled="isAnswer"
  8292. class="redioStyle"
  8293. ><span v-html="item2"></span
  8294. ></el-radio>
  8295. </el-radio-group>
  8296. <el-checkbox-group
  8297. v-model="radio[index1]"
  8298. v-if="askJson.askJson[index1].type == '2'"
  8299. >
  8300. <el-checkbox
  8301. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8302. .checkList"
  8303. :key="checkIndex1"
  8304. :label="checkIndex1"
  8305. :disabled="isAnswer"
  8306. class="redioStyle"
  8307. ><span v-html="item2"></span>
  8308. </el-checkbox>
  8309. </el-checkbox-group>
  8310. </div>
  8311. </div>
  8312. </div>
  8313. </div>
  8314. </div>
  8315. <span slot="footer" class="dialog-footer">
  8316. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8317. >取 消</el-button
  8318. >
  8319. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8320. >确 定</el-button
  8321. >
  8322. </span>
  8323. </el-dialog>
  8324. <el-dialog
  8325. :title="noteName != '' ? noteName : '查看问卷'"
  8326. :visible.sync="dialogVisible5Teacher"
  8327. :append-to-body="true"
  8328. width="1000px"
  8329. :before-close="handleClose"
  8330. class="dialog_diy dialog_diy3"
  8331. >
  8332. <div>
  8333. <div class="w_name">
  8334. 学生姓名:<span>{{ sStudent.student }}</span>
  8335. </div>
  8336. <div
  8337. class="a_add_title"
  8338. style="
  8339. display: flex;
  8340. flex-direction: row;
  8341. align-items: center;
  8342. justify-content: center;
  8343. "
  8344. >
  8345. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8346. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8347. </div>
  8348. <div class="a_addBox">
  8349. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8350. 题目内容
  8351. </div>
  8352. <div
  8353. class="a_add_box"
  8354. v-for="(item1, index1) in askJson.askCount"
  8355. :key="index1"
  8356. >
  8357. <div class="a_add_head">
  8358. <div style="display: flex">
  8359. <span class="askIndex">{{ index1 + 1 }}</span>
  8360. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8361. </div>
  8362. <img
  8363. v-if="askJson.askJson[index1].img"
  8364. :src="askJson.askJson[index1].img"
  8365. style="height: 300px; margin-top: 10px; max-width: 100%"
  8366. />
  8367. </div>
  8368. <div class="a_add_body">
  8369. <div class="a_add_input">
  8370. <el-radio-group
  8371. v-model="radio[index1]"
  8372. v-if="
  8373. askJson.askJson[index1].type == '1' ||
  8374. !askJson.askJson[index1].type
  8375. "
  8376. >
  8377. <el-radio
  8378. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8379. .checkList"
  8380. :key="checkIndex"
  8381. :label="checkIndex"
  8382. :disabled="isAnswer"
  8383. class="redioStyle"
  8384. ><span v-html="item2"></span
  8385. ></el-radio>
  8386. </el-radio-group>
  8387. <el-checkbox-group
  8388. v-model="radio[index1]"
  8389. v-if="askJson.askJson[index1].type == '2'"
  8390. >
  8391. <el-checkbox
  8392. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8393. .checkList"
  8394. :key="checkIndex1"
  8395. :label="checkIndex1"
  8396. :disabled="isAnswer"
  8397. class="redioStyle"
  8398. ><span v-html="item2"></span>
  8399. </el-checkbox>
  8400. </el-checkbox-group>
  8401. </div>
  8402. </div>
  8403. </div>
  8404. </div>
  8405. </div>
  8406. <span slot="footer" class="dialog-footer">
  8407. <el-button
  8408. @click="dialogVisible5Teacher = false"
  8409. v-show="noteName == ''"
  8410. >取 消</el-button
  8411. >
  8412. <el-button
  8413. type="primary"
  8414. @click="addStudentAskTeacher"
  8415. v-show="noteName == ''"
  8416. >确 定</el-button
  8417. >
  8418. </span>
  8419. </el-dialog>
  8420. <el-dialog
  8421. :title="noteName != '' ? noteName : '查看选择题'"
  8422. :visible.sync="dialogVisibleChoice"
  8423. :append-to-body="true"
  8424. width="1000px"
  8425. :before-close="handleClose"
  8426. class="dialog_diy dialog_diy3"
  8427. >
  8428. <div>
  8429. <!-- <div class="a_add_title" style="
  8430. display: flex;
  8431. flex-direction: row;
  8432. align-items: center;
  8433. justify-content: center;
  8434. ">
  8435. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8436. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  8437. </div> -->
  8438. <div class="a_addBox">
  8439. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8440. 题目内容
  8441. </div>
  8442. <div
  8443. class="a_add_box"
  8444. v-for="(item1, index1) in testJson.testCount"
  8445. :key="index1"
  8446. >
  8447. <div class="a_add_head">
  8448. <div style="display: flex">
  8449. <span class="askIndex">{{ index1 + 1 }}</span>
  8450. <div
  8451. v-if="testJson.testJson[index1].type == '1'"
  8452. style="margin-right: 5px; min-width: 70px"
  8453. >
  8454. (单选题)
  8455. </div>
  8456. <div
  8457. v-if="testJson.testJson[index1].type == '2'"
  8458. style="margin-right: 5px; min-width: 70px"
  8459. >
  8460. (多选题)
  8461. </div>
  8462. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8463. </div>
  8464. <img
  8465. v-if="testJson.testJson[index1].img"
  8466. :src="testJson.testJson[index1].img"
  8467. style="height: 300px; margin-top: 10px; max-width: 100%"
  8468. />
  8469. </div>
  8470. <div
  8471. class="timuImgBox"
  8472. v-if="
  8473. testJson.testJson[index1].timuList &&
  8474. testJson.testJson[index1].timuList.length
  8475. "
  8476. >
  8477. <div
  8478. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8479. :key="tIndex"
  8480. class="timuImg"
  8481. @click.stop="previewImg(timg.src)"
  8482. >
  8483. <img :src="timg.src" alt="" />
  8484. </div>
  8485. </div>
  8486. <div class="a_add_body">
  8487. <div class="a_add_input">
  8488. <el-radio-group
  8489. v-model="radio[index1]"
  8490. v-if="testJson.testJson[index1].type == '1'"
  8491. >
  8492. <div class="radioBox">
  8493. <el-radio
  8494. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8495. .checkList"
  8496. :key="checkIndex"
  8497. :label="checkIndex"
  8498. :disabled="isAnswer"
  8499. class="redioStyle"
  8500. >
  8501. <div
  8502. style="margin-right: 10px"
  8503. v-if="item2 && item2.imgType && item2.imgType == 1"
  8504. >
  8505. <div class="inImg" @click.stop="previewImg(item2.src)">
  8506. <img :src="item2.src" alt="" />
  8507. </div>
  8508. </div>
  8509. <span v-else v-html="item2"></span>
  8510. </el-radio>
  8511. </div>
  8512. </el-radio-group>
  8513. <el-checkbox-group
  8514. v-model="radio[index1]"
  8515. v-if="testJson.testJson[index1].type == '2'"
  8516. >
  8517. <div class="radioBox">
  8518. <el-checkbox
  8519. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8520. .checkList"
  8521. :key="checkIndex"
  8522. :label="checkIndex"
  8523. :disabled="isAnswer"
  8524. class="redioStyle"
  8525. >
  8526. <div
  8527. style="margin-right: 10px"
  8528. v-if="item2 && item2.imgType && item2.imgType == 1"
  8529. >
  8530. <div class="inImg" @click.stop="previewImg(item2.src)">
  8531. <img :src="item2.src" alt="" />
  8532. </div>
  8533. </div>
  8534. <span v-else v-html="item2"></span>
  8535. </el-checkbox>
  8536. </div>
  8537. </el-checkbox-group>
  8538. </div>
  8539. </div>
  8540. </div>
  8541. </div>
  8542. </div>
  8543. <span slot="footer" class="dialog-footer">
  8544. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  8545. >取 消</el-button
  8546. >
  8547. <el-button
  8548. type="primary"
  8549. @click="addStudentTest"
  8550. v-show="noteName == ''"
  8551. >确 定</el-button
  8552. >
  8553. </span>
  8554. </el-dialog>
  8555. <el-dialog
  8556. :title="noteName != '' ? noteName : '查看选择题'"
  8557. :visible.sync="dialogVisibleChoiceTeacher"
  8558. :append-to-body="true"
  8559. width="1000px"
  8560. :before-close="handleClose"
  8561. class="dialog_diy dialog_diy3"
  8562. >
  8563. <div>
  8564. <div class="w_name">
  8565. 学生姓名:<span>{{ sStudent.student }}</span>
  8566. </div>
  8567. <div class="a_addBox">
  8568. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8569. 题目内容
  8570. </div>
  8571. <div
  8572. class="a_add_box"
  8573. v-for="(item1, index1) in testJson.testCount"
  8574. :key="index1"
  8575. >
  8576. <div class="a_add_head">
  8577. <div style="display: flex">
  8578. <span class="askIndex">{{ index1 + 1 }}</span>
  8579. <div
  8580. v-if="testJson.testJson[index1].type == '1'"
  8581. style="margin-right: 5px; min-width: 70px"
  8582. >
  8583. (单选题)
  8584. </div>
  8585. <div
  8586. v-if="testJson.testJson[index1].type == '2'"
  8587. style="margin-right: 5px; min-width: 70px"
  8588. >
  8589. (多选题)
  8590. </div>
  8591. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8592. </div>
  8593. <img
  8594. v-if="testJson.testJson[index1].img"
  8595. :src="testJson.testJson[index1].img"
  8596. style="height: 300px; margin-top: 10px; max-width: 100%"
  8597. />
  8598. </div>
  8599. <div
  8600. class="timuImgBox"
  8601. v-if="
  8602. testJson.testJson[index1].timuList &&
  8603. testJson.testJson[index1].timuList.length
  8604. "
  8605. >
  8606. <div
  8607. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8608. :key="tIndex"
  8609. class="timuImg"
  8610. @click.stop="previewImg(timg.src)"
  8611. >
  8612. <img :src="timg.src" alt="" />
  8613. </div>
  8614. </div>
  8615. <div class="a_add_body">
  8616. <div class="a_add_input">
  8617. <el-radio-group
  8618. v-model="radio[index1]"
  8619. v-if="testJson.testJson[index1].type == '1'"
  8620. >
  8621. <div class="radioBox">
  8622. <el-radio
  8623. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8624. .checkList"
  8625. :key="checkIndex"
  8626. :label="checkIndex"
  8627. :disabled="isAnswer"
  8628. class="redioStyle"
  8629. >
  8630. <div
  8631. style="margin-right: 10px"
  8632. v-if="item2 && item2.imgType && item2.imgType == 1"
  8633. >
  8634. <div class="inImg" @click.stop="previewImg(item2.src)">
  8635. <img :src="item2.src" alt="" />
  8636. </div>
  8637. </div>
  8638. <span v-else v-html="item2"></span>
  8639. </el-radio>
  8640. </div>
  8641. </el-radio-group>
  8642. <el-checkbox-group
  8643. v-model="radio[index1]"
  8644. v-if="testJson.testJson[index1].type == '2'"
  8645. >
  8646. <div class="radioBox">
  8647. <el-checkbox
  8648. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8649. .checkList"
  8650. :key="checkIndex"
  8651. :label="checkIndex"
  8652. :disabled="isAnswer"
  8653. class="redioStyle"
  8654. >
  8655. <div
  8656. style="margin-right: 10px"
  8657. v-if="item2 && item2.imgType && item2.imgType == 1"
  8658. >
  8659. <div class="inImg" @click.stop="previewImg(item2.src)">
  8660. <img :src="item2.src" alt="" />
  8661. </div>
  8662. </div>
  8663. <span v-else v-html="item2"></span>
  8664. </el-checkbox>
  8665. </div>
  8666. </el-checkbox-group>
  8667. </div>
  8668. </div>
  8669. </div>
  8670. </div>
  8671. </div>
  8672. <span slot="footer" class="dialog-footer">
  8673. <el-button
  8674. @click="dialogVisibleChoiceTeacher = false"
  8675. v-show="noteName == ''"
  8676. >取 消</el-button
  8677. >
  8678. <el-button
  8679. type="primary"
  8680. @click="addStudentTestTeacher"
  8681. v-show="noteName == ''"
  8682. >确 定</el-button
  8683. >
  8684. </span>
  8685. </el-dialog>
  8686. <el-dialog
  8687. title="查看富文本"
  8688. :visible.sync="dialogVisible1"
  8689. :append-to-body="true"
  8690. width="500px"
  8691. :before-close="handleClose"
  8692. class="dialog_diy textCss"
  8693. >
  8694. <el-form style="font-size: 20px">
  8695. <el-form-item label="文本标题" class="textTitle">
  8696. <div style="font-size: 20px">{{ text.name }}</div>
  8697. </el-form-item>
  8698. <div>富文本内容</div>
  8699. <div
  8700. v-html="text.url"
  8701. style="font-size: 18px; padding: 40px 0 0 0"
  8702. ></div>
  8703. </el-form>
  8704. <span slot="footer" class="dialog-footer">
  8705. <el-button type="primary" @click="dialogVisible1 = false"
  8706. >确定</el-button
  8707. >
  8708. </span>
  8709. </el-dialog>
  8710. <el-dialog
  8711. title="文件预览"
  8712. :visible.sync="dialogVisible3"
  8713. width="50%"
  8714. :before-close="handleClose"
  8715. class="dialog_diy"
  8716. :class="{ fullStyle: full }"
  8717. >
  8718. <div slot="title" class="header-title">
  8719. <div style="color: #fff">文件预览</div>
  8720. <div style="position: absolute; top: 19px; right: 50px">
  8721. <img
  8722. src="../assets/full.png"
  8723. style="height: 16px; cursor: pointer"
  8724. alt=""
  8725. @click="fullTools"
  8726. />
  8727. </div>
  8728. </div>
  8729. <pdf
  8730. v-if="showPDF"
  8731. :pdfUrl="pptImgUrl"
  8732. style="width: 100%; height: 520px; overflow: auto"
  8733. :class="{ fullStyle: full }"
  8734. ></pdf>
  8735. <iframe
  8736. v-else
  8737. :src="pptImgUrl"
  8738. frameborder="0"
  8739. width="100%"
  8740. height="600"
  8741. :class="{ fullStyle: full }"
  8742. ></iframe>
  8743. </el-dialog>
  8744. <el-dialog
  8745. title="文件预览"
  8746. :visible.sync="dialogVisible6"
  8747. width="50%"
  8748. :before-close="handleClose"
  8749. class="dialog_diy"
  8750. >
  8751. <iframe
  8752. :src="pptImgUrl1"
  8753. frameborder="0"
  8754. width="100%"
  8755. height="600"
  8756. ></iframe>
  8757. </el-dialog>
  8758. <el-dialog
  8759. title="提示"
  8760. :visible.sync="dialogVisible4"
  8761. :append-to-body="true"
  8762. width="800px"
  8763. :before-close="handleClose"
  8764. class="dialog_diy notice"
  8765. >
  8766. <div>此功能暂未开放!</div>
  8767. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  8768. </el-dialog>
  8769. <el-dialog
  8770. title="问答"
  8771. :visible.sync="answerDialogVisible"
  8772. :append-to-body="true"
  8773. width="800px"
  8774. :before-close="handleClose"
  8775. class="dialog_diy"
  8776. >
  8777. <div>
  8778. <div
  8779. style="
  8780. display: flex;
  8781. flex-wrap: nowrap;
  8782. flex-direction: column;
  8783. position: relative;
  8784. "
  8785. >
  8786. <div class="queTop" style="padding: 20px 0 20px 0">
  8787. <div class="question">
  8788. <img src="../assets/icon/question.png" alt />
  8789. </div>
  8790. <div class="queTitle">
  8791. <div style="width: 90px; min-width: 90px">提问:</div>
  8792. <div>{{ answerQ }}</div>
  8793. </div>
  8794. </div>
  8795. <div class="ediBottom">
  8796. <textarea
  8797. rows="6"
  8798. class="binfo_input"
  8799. cols
  8800. style="width: 95%; height: 120px"
  8801. v-model="questionAnswer"
  8802. ></textarea>
  8803. </div>
  8804. </div>
  8805. </div>
  8806. <div slot="footer">
  8807. <el-button @click="answerDialogVisible = false">取 消</el-button>
  8808. <el-button type="primary" @click="addQuestion">提 交</el-button>
  8809. </div>
  8810. </el-dialog>
  8811. <el-dialog
  8812. title="问答"
  8813. :visible.sync="answerDialogVisibleTeacher"
  8814. :append-to-body="true"
  8815. width="800px"
  8816. :before-close="handleClose"
  8817. class="dialog_diy"
  8818. >
  8819. <div>
  8820. <div class="w_name">
  8821. 学生姓名:<span>{{ sStudent.student }}</span>
  8822. </div>
  8823. <div
  8824. style="
  8825. display: flex;
  8826. flex-wrap: nowrap;
  8827. flex-direction: column;
  8828. position: relative;
  8829. "
  8830. >
  8831. <div class="queTop" style="padding: 20px 0 20px 0">
  8832. <div class="question">
  8833. <img src="../assets/icon/question.png" alt />
  8834. </div>
  8835. <div class="queTitle">
  8836. <div style="width: 90px; min-width: 90px">提问:</div>
  8837. <div>{{ answerQ }}</div>
  8838. </div>
  8839. </div>
  8840. <div class="ediBottom">
  8841. <textarea
  8842. rows="6"
  8843. class="binfo_input"
  8844. cols
  8845. style="width: 95%; height: 120px"
  8846. v-model="questionAnswer"
  8847. ></textarea>
  8848. </div>
  8849. </div>
  8850. </div>
  8851. <div slot="footer">
  8852. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  8853. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  8854. </div>
  8855. </el-dialog>
  8856. <el-dialog
  8857. title="倒计时"
  8858. :visible.sync="timeDialogVisible"
  8859. :append-to-body="true"
  8860. width="800px"
  8861. :before-close="handleClose"
  8862. class="dialog_diy"
  8863. >
  8864. <div>
  8865. <div style="margin-bottom: 20px; color: #999">
  8866. 提示:点击“+”或“-”修改倒计时时长。
  8867. </div>
  8868. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  8869. </div>
  8870. <div slot="footer">
  8871. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  8872. </div>
  8873. </el-dialog>
  8874. <el-dialog
  8875. title="权限设置"
  8876. :visible.sync="juriVisible"
  8877. :append-to-body="true"
  8878. width="400px"
  8879. :before-close="handleClose"
  8880. class="dialog_diy"
  8881. >
  8882. <div>
  8883. <div class="open_box">
  8884. <div class="switch_box">
  8885. <span>允许学生查看所有作业</span>
  8886. <el-switch
  8887. v-model="sIsOpen"
  8888. active-text=""
  8889. class="switchCss"
  8890. @change="updateSLook"
  8891. ></el-switch>
  8892. </div>
  8893. <div
  8894. class="switch_box"
  8895. v-if="
  8896. courseDetail.userid == userid ||
  8897. (courseDetail.course_teacher &&
  8898. courseDetail.course_teacher.indexOf(userid) != -1)
  8899. "
  8900. >
  8901. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  8902. <span>禁止学生查看所有阶段</span>
  8903. <el-switch
  8904. v-model="IsLookOpen"
  8905. active-text=""
  8906. class="switchCss"
  8907. @change="updateLookOpen"
  8908. ></el-switch>
  8909. </div>
  8910. <div class="switch_box" v-if="courseDetail.userid == userid">
  8911. <span>开启跟随模式</span>
  8912. <el-switch
  8913. v-model="IsFollow"
  8914. active-text=""
  8915. class="switchCss"
  8916. @change="updateFollow"
  8917. ></el-switch>
  8918. </div>
  8919. </div>
  8920. </div>
  8921. <div slot="footer">
  8922. <el-button
  8923. style="background: #409efe; color: #fff"
  8924. @click="juriVisible = false"
  8925. >关 闭</el-button
  8926. >
  8927. </div>
  8928. </el-dialog>
  8929. <el-dialog
  8930. title="查看视频"
  8931. :visible.sync="videoVisible"
  8932. :append-to-body="true"
  8933. width="1000px"
  8934. :before-close="handleClose"
  8935. class="dialog_diy1"
  8936. >
  8937. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  8938. <video-player
  8939. class="video-player vjs-custom-skin"
  8940. :playsinline="true"
  8941. :options="videoDetail"
  8942. @play="onPlayerPlay($event)"
  8943. style="width: 100%; height: 100%"
  8944. ></video-player>
  8945. </div>
  8946. <div slot="footer">
  8947. <el-button
  8948. style="background: #409efe; color: #fff"
  8949. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  8950. >
  8951. 关 闭</el-button
  8952. >
  8953. </div>
  8954. </el-dialog>
  8955. <el-dialog
  8956. title="查看详情"
  8957. :visible.sync="commentDialogVisible"
  8958. :append-to-body="true"
  8959. width="800px"
  8960. :before-close="handleClose"
  8961. class="dialog_diy"
  8962. >
  8963. <div class="commentTop">
  8964. <div class="studentDetail">
  8965. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  8966. <div class="nameAndTime">
  8967. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  8968. <div>{{ commentDetail.time }}</div>
  8969. </div>
  8970. <div
  8971. class="returnBtn"
  8972. style="margin-left: auto; width: 80px"
  8973. v-if="
  8974. commentDetail.works &&
  8975. commentDetail.type == 0 &&
  8976. (tType == 1 || tType == 4)
  8977. "
  8978. @click="
  8979. showPicturePaint(
  8980. commentDetail.img ? commentDetail.img : commentDetail.works
  8981. )
  8982. "
  8983. >
  8984. 教师批注
  8985. </div>
  8986. </div>
  8987. <div
  8988. class="worksAnswer"
  8989. v-if="commentDetail.works && commentDetail.type == 2"
  8990. >
  8991. {{ JSON.parse(commentDetail.works)[0].answer }}
  8992. </div>
  8993. <div
  8994. class="worksAnswer"
  8995. v-if="commentDetail.works && commentDetail.type == 1"
  8996. >
  8997. <img
  8998. src="../assets/teacherWork.png"
  8999. v-if="commentDetail.ateacher"
  9000. class="w_teachert"
  9001. />
  9002. <pdf
  9003. v-if="showPDF"
  9004. :pdfUrl="pptImgUrl"
  9005. style="width: 100%; height: 520px; overflow: auto"
  9006. :class="{ fullStyle: full }"
  9007. ></pdf>
  9008. <iframe
  9009. v-else
  9010. :src="pptImgUrl"
  9011. frameborder="0"
  9012. width="100%"
  9013. height="600"
  9014. :class="{ fullStyle: full }"
  9015. ></iframe>
  9016. </div>
  9017. <div
  9018. class="worksAnswer"
  9019. v-if="commentDetail.works && commentDetail.type == 0"
  9020. >
  9021. <img
  9022. src="../assets/teacherWork.png"
  9023. v-if="commentDetail.ateacher"
  9024. class="w_teachert"
  9025. style="right: 105px"
  9026. />
  9027. <img
  9028. :src="commentDetail.works"
  9029. alt=""
  9030. @click="previewImg(commentDetail.works)"
  9031. />
  9032. </div>
  9033. <div
  9034. class="worksAnswer"
  9035. v-if="commentDetail.works && commentDetail.type == 3"
  9036. >
  9037. <img
  9038. src="../assets/teacherWork.png"
  9039. v-if="commentDetail.ateacher"
  9040. class="w_teachert"
  9041. />
  9042. <video-player
  9043. class="video-player vjs-custom-skin"
  9044. :playsinline="true"
  9045. :options="videoDetail"
  9046. @play="onPlayerPlay($event)"
  9047. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9048. ></video-player>
  9049. </div>
  9050. <div
  9051. class="worksAnswer"
  9052. v-if="commentDetail.works && commentDetail.type == 10"
  9053. >
  9054. <div class="cont" v-html="commentDetail.works.text"></div>
  9055. </div>
  9056. <div
  9057. class="worksAnswer codeFileBox"
  9058. v-if="commentDetail.works && commentDetail.type == 12"
  9059. @click="downloadFile(commentDetail.works)"
  9060. >
  9061. <img src="../assets/icon/codeFile.png" />
  9062. <div>点击下载文件</div>
  9063. </div>
  9064. <div
  9065. class="worksAnswer codeFileBox"
  9066. v-if="commentDetail.works && commentDetail.type == 15"
  9067. @click="
  9068. openCocoPi(
  9069. 57,
  9070. commentIndexJson.toolIndex,
  9071. commentDetail.userid,
  9072. commentDetail.sName
  9073. )
  9074. "
  9075. >
  9076. <img src="../assets/icon/codeFile.png" />
  9077. <div>点击打开CocoPi</div>
  9078. </div>
  9079. <div
  9080. class="worksAnswer"
  9081. v-if="commentDetail.works && commentDetail.type == 13"
  9082. >
  9083. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9084. </div>
  9085. <div
  9086. class="worksAnswer"
  9087. v-if="commentDetail.works && commentDetail.type == 4"
  9088. >
  9089. <div class="evalCss">
  9090. <div class="nav">请选择星星进行评分</div>
  9091. <div class="middleBox" v-if="eScore.eStar">
  9092. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9093. <div class="nameAndrate">
  9094. <div>{{ e.value }}</div>
  9095. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9096. </div>
  9097. <div v-if="e.detail">{{ e.detail }}</div>
  9098. </div>
  9099. <div class="bz">
  9100. <textarea
  9101. disabled
  9102. rows="4"
  9103. class="pj"
  9104. style="
  9105. padding: 10px 5px;
  9106. width: 70%;
  9107. background: #f7f6f9;
  9108. font-size: 14px;
  9109. text-indent: 10px;
  9110. color: #000;
  9111. "
  9112. cols
  9113. v-model="eScore.eBzText"
  9114. placeholder="请输入评价内容..."
  9115. ></textarea>
  9116. </div>
  9117. </div>
  9118. </div>
  9119. </div>
  9120. <div class="comment">
  9121. <div class="commentList">
  9122. <div class="commentImg">
  9123. <img
  9124. @click="
  9125. isLikes(
  9126. commentDetail.wid,
  9127. userid,
  9128. 1,
  9129. null,
  9130. commentDetail.isLikes
  9131. )
  9132. "
  9133. :src="commentDetail.isLikes == true ? likes : noLikes"
  9134. alt=""
  9135. />
  9136. </div>
  9137. <div>{{ commentDetail.likesCount }}</div>
  9138. </div>
  9139. <div class="commentList">
  9140. <div class="commentImg">
  9141. <img src="../assets/icon/comment/comment.png" alt="" />
  9142. </div>
  9143. <div>{{ commentDetail.commentCount }}</div>
  9144. </div>
  9145. </div>
  9146. <div class="drawPBox" v-if="commentDetail.img">
  9147. <span>教师批注</span>
  9148. <img
  9149. :src="commentDetail.img"
  9150. alt=""
  9151. @click="previewImg(commentDetail.img)"
  9152. />
  9153. <span
  9154. class="deleteImg"
  9155. v-if="tType == 1 || tType == 4"
  9156. @click.stop="deletePicturePaint(commentDetail.wid)"
  9157. style="
  9158. font-size: 14px;
  9159. width: auto !important;
  9160. color: #b4b4b4;
  9161. top: unset;
  9162. bottom: 0;
  9163. border: none;
  9164. padding: 0;
  9165. height: auto !important;
  9166. margin: 0;
  9167. "
  9168. >删除</span
  9169. >
  9170. </div>
  9171. </div>
  9172. <div class="commentBox">
  9173. <div class="pl">评论:</div>
  9174. <div style="max-height: 200px; overflow: auto">
  9175. <div
  9176. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9177. style="padding: 10px 0 0 0"
  9178. >
  9179. <div
  9180. class="studentDetail"
  9181. style="padding-top: 10px"
  9182. v-for="(co, coIndex) in commentDetail.commentJson"
  9183. :key="coIndex"
  9184. >
  9185. <div class="tx" style="min-width: 50px">
  9186. <img src="../assets/avatar.png" alt="" />
  9187. </div>
  9188. <div class="plPerson">
  9189. <div class="plName">
  9190. <div>{{ co.commentPeople }}</div>
  9191. <div style="margin-left: 5px">
  9192. {{ co.commentTime }}
  9193. </div>
  9194. <div
  9195. class="deleteComment"
  9196. v-if="userid == co.userid"
  9197. @click="deleteComment(co.wid)"
  9198. >
  9199. 删除
  9200. </div>
  9201. </div>
  9202. <div class="plContent">{{ co.commentText }}</div>
  9203. </div>
  9204. </div>
  9205. </div>
  9206. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9207. </div>
  9208. </div>
  9209. <div style="margin-top: 10px">
  9210. <div class="displayBox">
  9211. <div
  9212. style="
  9213. color: #556db4;
  9214. font-size: 14px;
  9215. font-weight: bold;
  9216. padding-bottom: 10px;
  9217. "
  9218. >
  9219. 评价
  9220. </div>
  9221. <div class="easy_comment" v-if="false">
  9222. <div
  9223. v-for="(p, pIndex) in PlTextList"
  9224. :key="pIndex"
  9225. @click="fastText(p, 1)"
  9226. >
  9227. {{ p }}
  9228. </div>
  9229. </div>
  9230. </div>
  9231. <div>
  9232. <textarea
  9233. rows="3"
  9234. class="pj"
  9235. style="padding: 10px 5px"
  9236. cols
  9237. v-model="commentText"
  9238. placeholder="请输入评论"
  9239. ></textarea>
  9240. </div>
  9241. </div>
  9242. <div slot="footer">
  9243. <el-button
  9244. @click="
  9245. (commentDialogVisible = false),
  9246. (commentIndexJson = {}),
  9247. videoDetail.sources && videoDetail.sources[0]
  9248. ? (videoDetail.sources[0].src = '')
  9249. : ''
  9250. "
  9251. >取 消</el-button
  9252. >
  9253. <el-button
  9254. type="primary"
  9255. @click="addComment(commentDetail.wid, userid, 2)"
  9256. >确 定</el-button
  9257. >
  9258. </div>
  9259. </el-dialog>
  9260. <el-dialog
  9261. title="查看文档"
  9262. :visible.sync="fullDialogVisible"
  9263. :append-to-body="true"
  9264. width="100%"
  9265. :before-close="handleClose"
  9266. :show-close="false"
  9267. class="dialog_diy full_diy"
  9268. :class="{ full_diy2: fulltype == 3 }"
  9269. >
  9270. <div slot="title" class="header-title">
  9271. <div style="color: #fff">查看文档</div>
  9272. <div
  9273. @click="fullDialogVisible = false"
  9274. style="
  9275. cursor: pointer;
  9276. position: absolute;
  9277. top: 20px;
  9278. right: 20px;
  9279. color: #fff;
  9280. "
  9281. >
  9282. 退出全屏
  9283. </div>
  9284. </div>
  9285. <div style="height: 100%">
  9286. <div
  9287. class="wheel"
  9288. v-if="
  9289. fulltype == 2 &&
  9290. fullUrl.indexOf(
  9291. 'https://view.officeapps.live.com/op/view.aspx?src='
  9292. ) != -1
  9293. "
  9294. style="width: 95%; margin: 0 auto"
  9295. >
  9296. <iframe
  9297. style="width: 100%; height: 100%; border: none"
  9298. :src="fullUrl"
  9299. ></iframe>
  9300. </div>
  9301. <iframe
  9302. v-else-if="fulltype == 2"
  9303. style="width: 100%; height: 100%; border: none"
  9304. :src="fullUrl"
  9305. security="restricted"
  9306. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9307. ></iframe>
  9308. <pdf
  9309. v-else-if="fulltype == 3"
  9310. :pdfUrl="fullUrl"
  9311. style="width: 100%; height: 100%; overflow: auto"
  9312. ></pdf>
  9313. <div
  9314. class="wheel"
  9315. v-if="fulltype == 1"
  9316. style="
  9317. box-shadow: 0 0 6px 1px #f2f2f2;
  9318. width: 100%;
  9319. background: #f1f1f1;
  9320. "
  9321. >
  9322. <div class="title" style="width: 100%; box-sizing: border-box">
  9323. 查看文档
  9324. </div>
  9325. <el-form class="textBox" style="height: 90%">
  9326. <el-form-item class="textTitle">
  9327. <div style="font-size: 22px">
  9328. {{ fullUrl.name }}
  9329. </div>
  9330. </el-form-item>
  9331. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9332. <div
  9333. v-html="fullUrl.url"
  9334. class="textContent"
  9335. style="height: auto"
  9336. ></div>
  9337. </el-form>
  9338. </div>
  9339. </div>
  9340. <!-- <div slot="footer">
  9341. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9342. </div> -->
  9343. </el-dialog>
  9344. <el-dialog
  9345. title="个人评价"
  9346. :visible.sync="studentEvalDialogVisible"
  9347. :append-to-body="true"
  9348. width="800px"
  9349. :before-close="handleClose"
  9350. class="dialog_diy"
  9351. >
  9352. <div class="evalCss">
  9353. <div class="nav">请选择星星进行评分</div>
  9354. <div class="middleBox" v-if="eScore.eStar">
  9355. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9356. <div class="nameAndrate">
  9357. <div>{{ e.value }}</div>
  9358. <el-rate
  9359. v-model="eScore.eStar[eIndex]"
  9360. :disabled="isStar"
  9361. ></el-rate>
  9362. </div>
  9363. <div v-if="e.detail">{{ e.detail }}</div>
  9364. </div>
  9365. <div class="easy_comment" v-if="false">
  9366. <div
  9367. v-for="(p, pIndex) in PlTextList"
  9368. :key="pIndex"
  9369. @click="fastText(p, 2)"
  9370. >
  9371. {{ p }}
  9372. </div>
  9373. </div>
  9374. <div class="bz">
  9375. <textarea
  9376. :disabled="isStar"
  9377. rows="4"
  9378. class="pj"
  9379. style="
  9380. padding: 10px 5px;
  9381. width: 70%;
  9382. background: #f7f6f9;
  9383. font-size: 14px;
  9384. text-indent: 10px;
  9385. "
  9386. cols
  9387. v-model="eScore.eBzText"
  9388. placeholder="请输入评价内容..."
  9389. ></textarea>
  9390. </div>
  9391. </div>
  9392. </div>
  9393. <div slot="footer">
  9394. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9395. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9396. >确 定</el-button
  9397. >
  9398. </div>
  9399. </el-dialog>
  9400. <el-dialog
  9401. title="个人评价"
  9402. :visible.sync="studentEvalDialogVisibleTeacher"
  9403. :append-to-body="true"
  9404. width="800px"
  9405. :before-close="handleClose"
  9406. class="dialog_diy"
  9407. >
  9408. <div class="w_name">
  9409. 学生姓名:<span>{{ sStudent.student }}</span>
  9410. </div>
  9411. <div class="evalCss">
  9412. <div class="nav">请选择星星进行评分</div>
  9413. <div class="middleBox" v-if="eScore.eStar">
  9414. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9415. <div class="nameAndrate">
  9416. <div>{{ e.value }}</div>
  9417. <el-rate
  9418. v-model="eScore.eStar[eIndex]"
  9419. :disabled="isStar"
  9420. ></el-rate>
  9421. </div>
  9422. <div v-if="e.detail">{{ e.detail }}</div>
  9423. </div>
  9424. <div class="easy_comment" v-if="false">
  9425. <div
  9426. v-for="(p, pIndex) in PlTextList"
  9427. :key="pIndex"
  9428. @click="fastText(p, 2)"
  9429. >
  9430. {{ p }}
  9431. </div>
  9432. </div>
  9433. <div class="bz">
  9434. <textarea
  9435. :disabled="isStar"
  9436. rows="4"
  9437. class="pj"
  9438. style="
  9439. padding: 10px 5px;
  9440. width: 70%;
  9441. background: #f7f6f9;
  9442. font-size: 14px;
  9443. text-indent: 10px;
  9444. "
  9445. cols
  9446. v-model="eScore.eBzText"
  9447. placeholder="请输入评价内容..."
  9448. ></textarea>
  9449. </div>
  9450. </div>
  9451. </div>
  9452. <div slot="footer">
  9453. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9454. >取 消</el-button
  9455. >
  9456. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9457. >确 定</el-button
  9458. >
  9459. </div>
  9460. </el-dialog>
  9461. <el-dialog
  9462. title="选择匹配"
  9463. :visible.sync="dialogVisibleSelect"
  9464. :append-to-body="true"
  9465. width="90%"
  9466. :before-close="handleClose"
  9467. class="dialog_diy dialog_diy3"
  9468. >
  9469. <div v-if="selectJson">
  9470. <div class="select_box2">
  9471. <div class="select_box2_title">
  9472. <div>选择匹配</div>
  9473. <div>请选择对应的答案进行答题!</div>
  9474. </div>
  9475. <div class="select_box2_box">
  9476. <div class="select_box2_img">
  9477. <img
  9478. :src="selectJson.url"
  9479. @click="previewImg(selectJson.url)"
  9480. alt=""
  9481. />
  9482. </div>
  9483. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9484. <div style="padding-top: 15px">
  9485. <div class="select_answer_title" v-if="isSelect">
  9486. {{ selectAnswer.stu }}
  9487. </div>
  9488. <div class="select_answer_title" v-else>
  9489. 根据题目选择对应答案
  9490. </div>
  9491. <div
  9492. class="select_box2_answer_box"
  9493. v-for="(item2, checkIndex) in selectJson.select"
  9494. :key="checkIndex"
  9495. >
  9496. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9497. <el-select
  9498. :disabled="isSelect"
  9499. v-model="selectAnswer.answer[checkIndex]"
  9500. placeholder="请选择正确答案"
  9501. >
  9502. <el-option
  9503. v-for="(e, eIndex) in selectJson.select"
  9504. :key="eIndex"
  9505. :label="e"
  9506. :value="eIndex"
  9507. >
  9508. </el-option>
  9509. </el-select>
  9510. </div>
  9511. </div>
  9512. <div
  9513. class="rightAnswerCss"
  9514. v-if="isSelect && (tType == 1 || tType == 4)"
  9515. >
  9516. <div
  9517. v-for="(a, aIndex) in selectJson.answer"
  9518. :key="aIndex"
  9519. class="rightAnswer"
  9520. >
  9521. <div
  9522. v-if="selectAnswer.answer[aIndex] === a"
  9523. style="color: #767de1"
  9524. >
  9525. 回答正确
  9526. </div>
  9527. <div v-else>回答错误</div>
  9528. <div
  9529. style="margin-left: 10px"
  9530. v-if="selectAnswer.answer[aIndex] !== a"
  9531. >
  9532. 正确答案:
  9533. </div>
  9534. <div
  9535. :class="
  9536. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9537. "
  9538. >
  9539. {{ selectJson.select[a] }}
  9540. </div>
  9541. </div>
  9542. </div>
  9543. </div>
  9544. <div class="upAnswerCss">
  9545. <el-button
  9546. type="primary"
  9547. @click="addSelectAnswer"
  9548. v-if="!isSelect"
  9549. >提交答案</el-button
  9550. >
  9551. </div>
  9552. </div>
  9553. </div>
  9554. </div>
  9555. </el-dialog>
  9556. <el-dialog
  9557. title="选择匹配"
  9558. :visible.sync="dialogVisibleSelectTeacher"
  9559. :append-to-body="true"
  9560. width="90%"
  9561. :before-close="handleClose"
  9562. class="dialog_diy dialog_diy3"
  9563. >
  9564. <div v-if="selectJson">
  9565. <div class="w_name">
  9566. 学生姓名:<span>{{ sStudent.student }}</span>
  9567. </div>
  9568. <div class="select_box2">
  9569. <div class="select_box2_title">
  9570. <div>选择匹配</div>
  9571. <div>请选择对应的答案进行答题!</div>
  9572. </div>
  9573. <div class="select_box2_box">
  9574. <div class="select_box2_img">
  9575. <img
  9576. :src="selectJson.url"
  9577. @click="previewImg(selectJson.url)"
  9578. alt=""
  9579. />
  9580. </div>
  9581. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9582. <div style="padding-top: 15px">
  9583. <div class="select_answer_title" v-if="isSelect">
  9584. {{ selectAnswer.stu }}
  9585. </div>
  9586. <div class="select_answer_title" v-else>
  9587. 根据题目选择对应答案
  9588. </div>
  9589. <div
  9590. class="select_box2_answer_box"
  9591. v-for="(item2, checkIndex) in selectJson.select"
  9592. :key="checkIndex"
  9593. >
  9594. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9595. <el-select
  9596. :disabled="isSelect"
  9597. v-model="selectAnswer.answer[checkIndex]"
  9598. placeholder="请选择正确答案"
  9599. >
  9600. <el-option
  9601. v-for="(e, eIndex) in selectJson.select"
  9602. :key="eIndex"
  9603. :label="e"
  9604. :value="eIndex"
  9605. >
  9606. </el-option>
  9607. </el-select>
  9608. </div>
  9609. </div>
  9610. <div
  9611. class="rightAnswerCss"
  9612. v-if="isSelect && (tType == 1 || tType == 4)"
  9613. >
  9614. <div
  9615. v-for="(a, aIndex) in selectJson.answer"
  9616. :key="aIndex"
  9617. class="rightAnswer"
  9618. >
  9619. <div
  9620. v-if="selectAnswer.answer[aIndex] === a"
  9621. style="color: #767de1"
  9622. >
  9623. 回答正确
  9624. </div>
  9625. <div v-else>回答错误</div>
  9626. <div
  9627. style="margin-left: 10px"
  9628. v-if="selectAnswer.answer[aIndex] !== a"
  9629. >
  9630. 正确答案:
  9631. </div>
  9632. <div
  9633. :class="
  9634. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9635. "
  9636. >
  9637. {{ selectJson.select[a] }}
  9638. </div>
  9639. </div>
  9640. </div>
  9641. </div>
  9642. <div class="upAnswerCss">
  9643. <el-button
  9644. type="primary"
  9645. @click="addSelectAnswerTeacher"
  9646. v-if="!isSelect"
  9647. >提交答案</el-button
  9648. >
  9649. </div>
  9650. </div>
  9651. </div>
  9652. </div>
  9653. </el-dialog>
  9654. <el-dialog
  9655. title="教师评分"
  9656. :visible.sync="dialogVisibleScore"
  9657. :append-to-body="true"
  9658. width="800px"
  9659. :before-close="handleClose"
  9660. class="dialog_diy"
  9661. >
  9662. <div>
  9663. <div class="studentDetail">
  9664. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9665. <div class="nameAndTime">
  9666. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9667. <div>{{ commentDetail.time }}</div>
  9668. </div>
  9669. </div>
  9670. <div
  9671. class="worksAnswer"
  9672. v-if="commentDetail.works && commentDetail.type == 2"
  9673. >
  9674. {{ JSON.parse(commentDetail.works)[0].answer }}
  9675. </div>
  9676. <div
  9677. class="worksAnswer"
  9678. v-if="commentDetail.works && commentDetail.type == 1"
  9679. >
  9680. <pdf
  9681. v-if="showPDF"
  9682. :pdfUrl="pptImgUrl"
  9683. style="width: 100%; height: 520px; overflow: auto"
  9684. :class="{ fullStyle: full }"
  9685. ></pdf>
  9686. <iframe
  9687. v-else
  9688. :src="pptImgUrl"
  9689. frameborder="0"
  9690. width="100%"
  9691. height="600"
  9692. :class="{ fullStyle: full }"
  9693. ></iframe>
  9694. </div>
  9695. <div
  9696. class="worksAnswer"
  9697. v-if="commentDetail.works && commentDetail.type == 0"
  9698. >
  9699. <img
  9700. :src="commentDetail.works"
  9701. alt=""
  9702. @click="previewImg(commentDetail.works)"
  9703. />
  9704. </div>
  9705. <div
  9706. class="worksAnswer"
  9707. v-if="commentDetail.works && commentDetail.type == 3"
  9708. >
  9709. <video-player
  9710. class="video-player vjs-custom-skin"
  9711. :playsinline="true"
  9712. :options="videoDetail"
  9713. @play="onPlayerPlay($event)"
  9714. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9715. ></video-player>
  9716. </div>
  9717. <div
  9718. class="worksAnswer codeFileBox"
  9719. v-if="commentDetail.works && commentDetail.type == 12"
  9720. @click="downloadFile(commentDetail.works)"
  9721. >
  9722. <img src="../assets/icon/codeFile.png" />
  9723. <div>点击下载文件</div>
  9724. </div>
  9725. <div
  9726. class="worksAnswer codeFileBox"
  9727. v-if="commentDetail.works && commentDetail.type == 15"
  9728. @click="
  9729. openCocoPi(
  9730. 57,
  9731. commentIndexJson.toolIndex,
  9732. commentDetail.userid,
  9733. commentDetail.sName
  9734. )
  9735. "
  9736. >
  9737. <img src="../assets/icon/codeFile.png" />
  9738. <div>点击打开CocoPi</div>
  9739. </div>
  9740. <div
  9741. class="worksAnswer"
  9742. v-if="commentDetail.works && commentDetail.type == 13"
  9743. >
  9744. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9745. </div>
  9746. <div class="scoreBox">
  9747. <span class="t">请输入分数</span>
  9748. <el-input-number
  9749. :disabled="courseDetail.userid != userid"
  9750. v-model="wScore"
  9751. :controls="false"
  9752. :min="0"
  9753. :max="100"
  9754. ></el-input-number>
  9755. </div>
  9756. <div class="scoreDetailBox">
  9757. <span class="t">评分评论</span>
  9758. <el-input
  9759. type="textarea"
  9760. :rows="5"
  9761. :disabled="courseDetail.userid != userid"
  9762. resize="none"
  9763. v-model="scoreDetail"
  9764. placeholder="请输入对学生的评价"
  9765. >
  9766. </el-input>
  9767. </div>
  9768. </div>
  9769. <span slot="footer" class="dialog-footer">
  9770. <el-button
  9771. @click="
  9772. (dialogVisibleScore = false),
  9773. (commentIndexJson = {}),
  9774. videoDetail.sources && videoDetail.sources[0]
  9775. ? (videoDetail.sources[0].src = '')
  9776. : ''
  9777. "
  9778. >取 消</el-button
  9779. >
  9780. <el-button
  9781. type="primary"
  9782. v-if="courseDetail.userid == userid"
  9783. @click="scoreWork(commentDetail.wid)"
  9784. >确 定
  9785. </el-button>
  9786. </span>
  9787. </el-dialog>
  9788. <el-dialog
  9789. title="排序"
  9790. :visible.sync="dialogVisibleSentence"
  9791. :append-to-body="true"
  9792. width="1000px"
  9793. :before-close="handleClose"
  9794. class="dialog_diy dialog_diy3"
  9795. >
  9796. <div>
  9797. <div class="sentenBox">
  9798. <div
  9799. v-for="(st, stIndex) in sentenceList"
  9800. :key="stIndex"
  9801. style="padding-bottom: 20px"
  9802. >
  9803. <div
  9804. style="padding: 15px 0 10px 20px"
  9805. class="sentenceTitle"
  9806. :index="stIndex + 1"
  9807. >
  9808. 题目{{ stIndex + 1 }}:请选择正确顺序
  9809. </div>
  9810. <div class="cardList" v-if="st.chooseSenList">
  9811. <div class="cardBox">
  9812. <div
  9813. v-for="(r, rIndex) in st.chooseSenList"
  9814. :key="rIndex"
  9815. @click="returnCard(r, stIndex, rIndex)"
  9816. >
  9817. <el-tooltip
  9818. class="item"
  9819. effect="light"
  9820. :content="r"
  9821. placement="top"
  9822. v-if="r != '' && r != undefined"
  9823. >
  9824. <div
  9825. :class="{
  9826. isCard: r,
  9827. isChooseCard: r == '' || r == undefined,
  9828. }"
  9829. >
  9830. <div>{{ r }}</div>
  9831. </div>
  9832. </el-tooltip>
  9833. <div
  9834. :class="{
  9835. isCard: r,
  9836. isChooseCard: r == '' || r == undefined,
  9837. }"
  9838. v-else
  9839. >
  9840. <div>{{ r }}</div>
  9841. </div>
  9842. </div>
  9843. </div>
  9844. </div>
  9845. <div class="cardList" v-if="st.addChangeSen">
  9846. <div class="cardBox">
  9847. <div
  9848. v-for="(s, sIndex) in st.addChangeSen"
  9849. :key="sIndex"
  9850. @click="setRightAnswer(s, stIndex, sIndex)"
  9851. >
  9852. <el-tooltip
  9853. class="item"
  9854. effect="light"
  9855. :content="s"
  9856. placement="top"
  9857. v-if="s != '' && s != undefined"
  9858. >
  9859. <div
  9860. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  9861. >
  9862. <div>{{ s }}</div>
  9863. </div>
  9864. </el-tooltip>
  9865. <div
  9866. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  9867. v-else
  9868. >
  9869. <div>{{ s }}</div>
  9870. </div>
  9871. </div>
  9872. </div>
  9873. </div>
  9874. </div>
  9875. </div>
  9876. </div>
  9877. <span slot="footer" class="dialog-footer">
  9878. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  9879. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  9880. </span>
  9881. </el-dialog>
  9882. <el-dialog
  9883. title="排序"
  9884. :visible.sync="dialogVisibleSentenceTeacher"
  9885. :append-to-body="true"
  9886. width="1000px"
  9887. :before-close="handleClose"
  9888. class="dialog_diy dialog_diy3"
  9889. >
  9890. <div>
  9891. <div class="w_name">
  9892. 学生姓名:<span>{{ sStudent.student }}</span>
  9893. </div>
  9894. <div class="sentenBox">
  9895. <div
  9896. v-for="(st, stIndex) in sentenceList"
  9897. :key="stIndex"
  9898. style="padding-bottom: 20px"
  9899. >
  9900. <div
  9901. style="padding: 15px 0 10px 20px"
  9902. class="sentenceTitle"
  9903. :index="stIndex + 1"
  9904. >
  9905. 题目{{ stIndex + 1 }}:请选择正确顺序
  9906. </div>
  9907. <div class="cardList" v-if="st.chooseSenList">
  9908. <div class="cardBox">
  9909. <div
  9910. v-for="(r, rIndex) in st.chooseSenList"
  9911. :key="rIndex"
  9912. @click="returnCard(r, stIndex, rIndex)"
  9913. >
  9914. <el-tooltip
  9915. class="item"
  9916. effect="light"
  9917. :content="r"
  9918. placement="top"
  9919. v-if="r != '' && r != undefined"
  9920. >
  9921. <div
  9922. :class="{
  9923. isCard: r,
  9924. isChooseCard: r == '' || r == undefined,
  9925. }"
  9926. >
  9927. <div>{{ r }}</div>
  9928. </div>
  9929. </el-tooltip>
  9930. <div
  9931. :class="{
  9932. isCard: r,
  9933. isChooseCard: r == '' || r == undefined,
  9934. }"
  9935. v-else
  9936. >
  9937. <div>{{ r }}</div>
  9938. </div>
  9939. </div>
  9940. </div>
  9941. </div>
  9942. <div class="cardList" v-if="st.addChangeSen">
  9943. <div class="cardBox">
  9944. <div
  9945. v-for="(s, sIndex) in st.addChangeSen"
  9946. :key="sIndex"
  9947. @click="setRightAnswer(s, stIndex, sIndex)"
  9948. >
  9949. <el-tooltip
  9950. class="item"
  9951. effect="light"
  9952. :content="s"
  9953. placement="top"
  9954. v-if="s != '' && s != undefined"
  9955. >
  9956. <div
  9957. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  9958. >
  9959. <div>{{ s }}</div>
  9960. </div>
  9961. </el-tooltip>
  9962. <div
  9963. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  9964. v-else
  9965. >
  9966. <div>{{ s }}</div>
  9967. </div>
  9968. </div>
  9969. </div>
  9970. </div>
  9971. </div>
  9972. </div>
  9973. </div>
  9974. <span slot="footer" class="dialog-footer">
  9975. <el-button @click="dialogVisibleSentenceTeacher = false"
  9976. >取 消</el-button
  9977. >
  9978. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  9979. </span>
  9980. </el-dialog>
  9981. <el-dialog
  9982. title="排序"
  9983. :visible.sync="dialogVisibleSentence1"
  9984. :append-to-body="true"
  9985. width="1000px"
  9986. :before-close="handleClose"
  9987. class="dialog_diy dialog_diy3"
  9988. >
  9989. <div>
  9990. <div class="sentenBox">
  9991. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  9992. {{ sentenceList1.stuName }}的作业
  9993. </div>
  9994. <div
  9995. v-for="(st, stIndex) in sentenceList1"
  9996. :key="stIndex"
  9997. style="padding-bottom: 20px"
  9998. >
  9999. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10000. 第{{ stIndex + 1 }}题
  10001. </div>
  10002. <div class="isWrong">
  10003. <div class="cardList1" v-if="st.chooseSenList">
  10004. <div class="cardBox">
  10005. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10006. <el-tooltip
  10007. class="item"
  10008. effect="light"
  10009. :content="s"
  10010. placement="top"
  10011. >
  10012. <div class="isCard">
  10013. <div>{{ s }}</div>
  10014. </div>
  10015. </el-tooltip>
  10016. </div>
  10017. </div>
  10018. <div class="cardAnswerBox">
  10019. 组成句子:{{ st.chooseSenList.join(" ") }}
  10020. </div>
  10021. </div>
  10022. <div v-if="tType == 2" class="isTj">
  10023. <div class="isTjImg">
  10024. <img src="../assets/icon/conSentences/right.png" alt="" />
  10025. </div>
  10026. <div>已提交</div>
  10027. </div>
  10028. <div
  10029. class="answerRight isTj"
  10030. v-if="
  10031. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10032. (tType == 1 || tType == 4)
  10033. "
  10034. >
  10035. <div class="isTjImg">
  10036. <img src="../assets/icon/conSentences/right.png" alt="" />
  10037. </div>
  10038. <div>回答正确</div>
  10039. </div>
  10040. <div
  10041. class="answerRight isTj"
  10042. v-if="
  10043. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10044. (tType == 1 || tType == 4)
  10045. "
  10046. >
  10047. <div class="isTjImg">
  10048. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10049. </div>
  10050. <div>回答错误</div>
  10051. </div>
  10052. </div>
  10053. <div
  10054. v-if="
  10055. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10056. (tType == 1 || tType == 4)
  10057. "
  10058. >
  10059. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10060. <div
  10061. class="cardList"
  10062. v-if="st.rightAnswer"
  10063. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10064. >
  10065. <div class="cardBox">
  10066. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10067. <el-tooltip
  10068. class="item"
  10069. effect="light"
  10070. :content="r"
  10071. placement="top"
  10072. >
  10073. <div class="isCard1">
  10074. <div>{{ r }}</div>
  10075. </div>
  10076. </el-tooltip>
  10077. </div>
  10078. </div>
  10079. <div class="cardAnswerBox">
  10080. 组成句子:{{ st.rightAnswer.join(" ") }}
  10081. </div>
  10082. </div>
  10083. </div>
  10084. </div>
  10085. </div>
  10086. </div>
  10087. <span slot="footer" class="dialog-footer">
  10088. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10089. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10090. >确 定</el-button
  10091. >
  10092. </span>
  10093. </el-dialog>
  10094. <el-dialog
  10095. title="教师提交作业"
  10096. :visible.sync="dialogVisibleWorks"
  10097. :append-to-body="true"
  10098. width="500px"
  10099. :before-close="handleClose"
  10100. class="dialog_change"
  10101. >
  10102. <div class="marginT">
  10103. <div class="w_name">
  10104. 学生姓名:<span>{{ sStudent.student }}</span>
  10105. </div>
  10106. <div>上传文件</div>
  10107. <div
  10108. class="chapter_add"
  10109. @click="addImg($event)"
  10110. v-if="studyJuri[0].cover.length == 0"
  10111. >
  10112. <div class="up_photo">
  10113. <img src="../assets/uploadImg2.png" alt />
  10114. </div>
  10115. <!-- <input
  10116. type="file"
  10117. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10118. style="display: none"
  10119. @change="beforeUpload1($event, 1)"
  10120. /> -->
  10121. <input
  10122. type="file"
  10123. accept="*"
  10124. style="display: none"
  10125. @change="beforeUpload1($event, 1)"
  10126. />
  10127. </div>
  10128. <!-- capture="camera" -->
  10129. <div
  10130. class="chapter_add"
  10131. style="
  10132. display: flex;
  10133. width: 100%;
  10134. flex-direction: row;
  10135. flex-wrap: wrap;
  10136. justify-content: flex-start;
  10137. padding: 15px 0;
  10138. "
  10139. v-if="studyJuri[0].cover.length > 0"
  10140. >
  10141. <div class="upCover">
  10142. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10143. <img :src="word" alt v-else-if="fileType == 1" />
  10144. <img :src="video" alt v-else-if="fileType == 2" />
  10145. <img :src="word2" alt v-else-if="fileType == 3" />
  10146. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10147. <div class="deleteWord" @click="clean(1)">
  10148. <img src="../assets/icon/deleteWorks.png" alt />
  10149. </div>
  10150. </div>
  10151. </div>
  10152. </div>
  10153. <div
  10154. class="upload_send"
  10155. @click="addCourseWorksTeacher(taskCount)"
  10156. v-if="!proVisible"
  10157. >
  10158. 提交
  10159. </div>
  10160. </el-dialog>
  10161. <ImgDraw
  10162. :drawShow="drawShow"
  10163. @closeDraw="closeDraw"
  10164. @addImgDraw="addImgDraw"
  10165. :bg="bg"
  10166. ></ImgDraw>
  10167. <el-dialog
  10168. title="表格"
  10169. :visible.sync="dialogVisibleTable"
  10170. :append-to-body="true"
  10171. width="95%"
  10172. :before-close="handleClose"
  10173. class="dialog_diy"
  10174. >
  10175. <el-form>
  10176. <div
  10177. style="
  10178. display: flex;
  10179. align-items: center;
  10180. justify-content: space-between;
  10181. "
  10182. >
  10183. <span>表格内容</span>
  10184. <el-button type="primary" size="small" @click="returnTableText"
  10185. >还原模板</el-button
  10186. >
  10187. </div>
  10188. <Table
  10189. v-model="tableJson.text"
  10190. @change="change"
  10191. v-if="dialogVisibleTable"
  10192. ></Table>
  10193. </el-form>
  10194. <span slot="footer" class="dialog-footer">
  10195. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10196. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10197. </span>
  10198. </el-dialog>
  10199. <el-dialog
  10200. title="表格"
  10201. :visible.sync="dialogVisibleTableTeacher"
  10202. :append-to-body="true"
  10203. width="95%"
  10204. :before-close="handleClose"
  10205. class="dialog_diy"
  10206. >
  10207. <el-form>
  10208. <div class="w_name">
  10209. 学生姓名:<span>{{ sStudent.student }}</span>
  10210. </div>
  10211. <div>表格内容</div>
  10212. <Table
  10213. v-model="tableJson.text"
  10214. @change="change"
  10215. v-if="dialogVisibleTableTeacher"
  10216. ></Table>
  10217. </el-form>
  10218. <span slot="footer" class="dialog-footer">
  10219. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10220. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10221. </span>
  10222. </el-dialog>
  10223. <el-dialog
  10224. title="文档"
  10225. :visible.sync="dialogVisibleWord"
  10226. :append-to-body="true"
  10227. width="95%"
  10228. :before-close="handleClose"
  10229. class="dialog_diy"
  10230. >
  10231. <el-form>
  10232. <div
  10233. style="
  10234. display: flex;
  10235. align-items: center;
  10236. justify-content: space-between;
  10237. "
  10238. >
  10239. <span>文档内容</span>
  10240. <el-button type="primary" size="small" @click="returnWordText"
  10241. >还原模板</el-button
  10242. >
  10243. </div>
  10244. <editor-bar
  10245. v-model="wordJson.text"
  10246. v-if="dialogVisibleWord"
  10247. ></editor-bar>
  10248. </el-form>
  10249. <span slot="footer" class="dialog-footer">
  10250. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10251. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10252. </span>
  10253. </el-dialog>
  10254. <el-dialog
  10255. title="文档"
  10256. :visible.sync="dialogVisibleWordTeacher"
  10257. :append-to-body="true"
  10258. width="95%"
  10259. :before-close="handleClose"
  10260. class="dialog_diy"
  10261. >
  10262. <el-form>
  10263. <div class="w_name">
  10264. 学生姓名:<span>{{ sStudent.student }}</span>
  10265. </div>
  10266. <div>文档内容</div>
  10267. <editor-bar
  10268. v-model="wordJson.text"
  10269. v-if="dialogVisibleWordTeacher"
  10270. ></editor-bar>
  10271. </el-form>
  10272. <span slot="footer" class="dialog-footer">
  10273. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10274. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10275. </span>
  10276. </el-dialog>
  10277. <el-dialog
  10278. title="表格"
  10279. :visible.sync="dialogVisibleTable2"
  10280. :append-to-body="true"
  10281. width="95%"
  10282. :before-close="handleClose"
  10283. class="dialog_diy"
  10284. >
  10285. <el-form>
  10286. <div class="cont" v-html="tableJson.text"></div>
  10287. </el-form>
  10288. <span slot="footer" class="dialog-footer">
  10289. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10290. </span>
  10291. </el-dialog>
  10292. <el-dialog
  10293. title="文档"
  10294. :visible.sync="dialogVisibleTable3"
  10295. :append-to-body="true"
  10296. width="95%"
  10297. :before-close="handleClose"
  10298. class="dialog_diy"
  10299. >
  10300. <el-form>
  10301. <div class="cont" v-html="tableJson.text"></div>
  10302. </el-form>
  10303. <span slot="footer" class="dialog-footer">
  10304. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10305. </span>
  10306. </el-dialog>
  10307. <el-dialog
  10308. title="分组设置"
  10309. :visible.sync="dialogVisibleGroup"
  10310. :append-to-body="true"
  10311. width="95%"
  10312. :before-close="handleClose"
  10313. class="dialog_diy"
  10314. >
  10315. <div v-if="dialogVisibleGroup">
  10316. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10317. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10318. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10319. </div>
  10320. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10321. @click="lockChair">
  10322. 锁定位置
  10323. </div>
  10324. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10325. 解锁位置
  10326. </div> -->
  10327. <div class="group_switch">
  10328. <span>开放选座</span>
  10329. <el-switch
  10330. v-model="islock"
  10331. active-text=""
  10332. class="switchCss"
  10333. @change="lockChair"
  10334. ></el-switch>
  10335. </div>
  10336. <div
  10337. type="primary"
  10338. @click="updateGroup"
  10339. class="returnBtn"
  10340. style="background-color: #225bc7"
  10341. >
  10342. 分组设置
  10343. </div>
  10344. </div>
  10345. <div>
  10346. <div
  10347. class="g_d_box"
  10348. v-if="groupJson.group && groupStudent[toolindex]"
  10349. >
  10350. <div
  10351. class="g_d_group"
  10352. v-for="(g, gindex) in groupJson.group"
  10353. :key="gindex"
  10354. >
  10355. <div class="g_d_group_chair">
  10356. <div v-if="groupJson.number > 1">
  10357. <span
  10358. :class="{
  10359. isChair:
  10360. groupStudent[toolindex][gindex] &&
  10361. groupStudent[toolindex][gindex][0],
  10362. updateChair:
  10363. courseDetail.userid == userid &&
  10364. groupStudent[toolindex][gindex] &&
  10365. groupStudent[toolindex][gindex][0] &&
  10366. groupJson.islock == 2,
  10367. }"
  10368. ><span
  10369. class="updateChairBtn"
  10370. @click="
  10371. updateGroupChair(
  10372. groupStudent[toolindex][gindex] &&
  10373. groupStudent[toolindex][gindex][0]
  10374. )
  10375. "
  10376. >修改</span
  10377. ></span
  10378. ><span>{{
  10379. groupStudent[toolindex][gindex] &&
  10380. groupStudent[toolindex][gindex][0]
  10381. ? groupStudent[toolindex][gindex] &&
  10382. groupStudent[toolindex][gindex][0].name
  10383. : "空位置"
  10384. }}</span>
  10385. </div>
  10386. <div v-if="groupJson.number > 4">
  10387. <span
  10388. :class="{
  10389. isChair:
  10390. groupStudent[toolindex][gindex] &&
  10391. groupStudent[toolindex][gindex][4],
  10392. updateChair:
  10393. courseDetail.userid == userid &&
  10394. groupStudent[toolindex][gindex] &&
  10395. groupStudent[toolindex][gindex][4] &&
  10396. groupJson.islock == 2,
  10397. }"
  10398. ><span
  10399. class="updateChairBtn"
  10400. @click="
  10401. updateGroupChair(
  10402. groupStudent[toolindex][gindex] &&
  10403. groupStudent[toolindex][gindex][4]
  10404. )
  10405. "
  10406. >修改</span
  10407. ></span
  10408. ><span>{{
  10409. groupStudent[toolindex][gindex] &&
  10410. groupStudent[toolindex][gindex][4]
  10411. ? groupStudent[toolindex][gindex] &&
  10412. groupStudent[toolindex][gindex][4].name
  10413. : "空位置"
  10414. }}</span>
  10415. </div>
  10416. <div v-if="groupJson.number > 8">
  10417. <span
  10418. :class="{
  10419. isChair:
  10420. groupStudent[toolindex][gindex] &&
  10421. groupStudent[toolindex][gindex][8],
  10422. updateChair:
  10423. courseDetail.userid == userid &&
  10424. groupStudent[toolindex][gindex] &&
  10425. groupStudent[toolindex][gindex][8] &&
  10426. groupJson.islock == 2,
  10427. }"
  10428. ><span
  10429. class="updateChairBtn"
  10430. @click="
  10431. updateGroupChair(
  10432. groupStudent[toolindex][gindex] &&
  10433. groupStudent[toolindex][gindex][8]
  10434. )
  10435. "
  10436. >修改</span
  10437. ></span
  10438. ><span>{{
  10439. groupStudent[toolindex][gindex] &&
  10440. groupStudent[toolindex][gindex][8]
  10441. ? groupStudent[toolindex][gindex] &&
  10442. groupStudent[toolindex][gindex][8].name
  10443. : "空位置"
  10444. }}</span>
  10445. </div>
  10446. </div>
  10447. <div class="g_d_group_tableBox">
  10448. <div class="g_d_group_chair2">
  10449. <div v-if="groupJson.number > 2">
  10450. <span
  10451. :class="{
  10452. isChair:
  10453. groupStudent[toolindex][gindex] &&
  10454. groupStudent[toolindex][gindex][2],
  10455. updateChair:
  10456. courseDetail.userid == userid &&
  10457. groupStudent[toolindex][gindex] &&
  10458. groupStudent[toolindex][gindex][2] &&
  10459. groupJson.islock == 2,
  10460. }"
  10461. ><span
  10462. class="updateChairBtn"
  10463. @click="
  10464. updateGroupChair(
  10465. groupStudent[toolindex][gindex] &&
  10466. groupStudent[toolindex][gindex][2]
  10467. )
  10468. "
  10469. >修改</span
  10470. ></span
  10471. ><span>{{
  10472. groupStudent[toolindex][gindex] &&
  10473. groupStudent[toolindex][gindex][2]
  10474. ? groupStudent[toolindex][gindex] &&
  10475. groupStudent[toolindex][gindex][2].name
  10476. : "空位置"
  10477. }}</span>
  10478. </div>
  10479. <div v-if="groupJson.number > 6">
  10480. <span
  10481. :class="{
  10482. isChair:
  10483. groupStudent[toolindex][gindex] &&
  10484. groupStudent[toolindex][gindex][6],
  10485. updateChair:
  10486. courseDetail.userid == userid &&
  10487. groupStudent[toolindex][gindex] &&
  10488. groupStudent[toolindex][gindex][6] &&
  10489. groupJson.islock == 2,
  10490. }"
  10491. ><span
  10492. class="updateChairBtn"
  10493. @click="
  10494. updateGroupChair(
  10495. groupStudent[toolindex][gindex] &&
  10496. groupStudent[toolindex][gindex][6]
  10497. )
  10498. "
  10499. >修改</span
  10500. ></span
  10501. ><span>{{
  10502. groupStudent[toolindex][gindex] &&
  10503. groupStudent[toolindex][gindex][6]
  10504. ? groupStudent[toolindex][gindex] &&
  10505. groupStudent[toolindex][gindex][6].name
  10506. : "空位置"
  10507. }}</span>
  10508. </div>
  10509. </div>
  10510. <div class="g_d_group_table">
  10511. <div>
  10512. {{ g.name }}
  10513. </div>
  10514. <div>
  10515. <div
  10516. v-if="
  10517. courseDetail.userid == userid && groupJson.islock == 2
  10518. "
  10519. @click="deleteGroupChair(gindex)"
  10520. >
  10521. 移除组员
  10522. </div>
  10523. <div
  10524. @click="selectGroup(gindex)"
  10525. v-else-if="
  10526. groupStudentUid[toolindex] &&
  10527. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  10528. "
  10529. >
  10530. 加入分组
  10531. </div>
  10532. <div
  10533. @click="
  10534. exitGroup(
  10535. groupStudent[toolindex][gindex] &&
  10536. groupStudent[toolindex][gindex][
  10537. groupStudentUid[toolindex][gindex].indexOf(userid)
  10538. ].id
  10539. )
  10540. "
  10541. v-else-if="
  10542. groupStudentUid[toolindex] &&
  10543. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  10544. "
  10545. >
  10546. 退出分组
  10547. </div>
  10548. </div>
  10549. </div>
  10550. <div class="g_d_group_chair2">
  10551. <div v-if="groupJson.number > 3">
  10552. <span
  10553. :class="{
  10554. isChair:
  10555. groupStudent[toolindex][gindex] &&
  10556. groupStudent[toolindex][gindex][3],
  10557. updateChair:
  10558. courseDetail.userid == userid &&
  10559. groupStudent[toolindex][gindex] &&
  10560. groupStudent[toolindex][gindex][3] &&
  10561. groupJson.islock == 2,
  10562. }"
  10563. ><span
  10564. class="updateChairBtn"
  10565. @click="
  10566. updateGroupChair(
  10567. groupStudent[toolindex][gindex] &&
  10568. groupStudent[toolindex][gindex][3]
  10569. )
  10570. "
  10571. >修改</span
  10572. ></span
  10573. ><span>{{
  10574. groupStudent[toolindex][gindex] &&
  10575. groupStudent[toolindex][gindex][3]
  10576. ? groupStudent[toolindex][gindex] &&
  10577. groupStudent[toolindex][gindex][3].name
  10578. : "空位置"
  10579. }}</span>
  10580. </div>
  10581. <div v-if="groupJson.number > 7">
  10582. <span
  10583. :class="{
  10584. isChair:
  10585. groupStudent[toolindex][gindex] &&
  10586. groupStudent[toolindex][gindex][7],
  10587. updateChair:
  10588. courseDetail.userid == userid &&
  10589. groupStudent[toolindex][gindex] &&
  10590. groupStudent[toolindex][gindex][7] &&
  10591. groupJson.islock == 2,
  10592. }"
  10593. ><span
  10594. class="updateChairBtn"
  10595. @click="
  10596. updateGroupChair(
  10597. groupStudent[toolindex][gindex] &&
  10598. groupStudent[toolindex][gindex][7]
  10599. )
  10600. "
  10601. >修改</span
  10602. ></span
  10603. ><span>{{
  10604. groupStudent[toolindex][gindex] &&
  10605. groupStudent[toolindex][gindex][7]
  10606. ? groupStudent[toolindex][gindex] &&
  10607. groupStudent[toolindex][gindex][7].name
  10608. : "空位置"
  10609. }}</span>
  10610. </div>
  10611. </div>
  10612. </div>
  10613. <div class="g_d_group_chair">
  10614. <div v-if="groupJson.number > 1">
  10615. <span
  10616. :class="{
  10617. isChair:
  10618. groupStudent[toolindex][gindex] &&
  10619. groupStudent[toolindex][gindex][1],
  10620. updateChair:
  10621. courseDetail.userid == userid &&
  10622. groupStudent[toolindex][gindex] &&
  10623. groupStudent[toolindex][gindex][1] &&
  10624. groupJson.islock == 2,
  10625. }"
  10626. ><span
  10627. class="updateChairBtn"
  10628. @click="
  10629. updateGroupChair(
  10630. groupStudent[toolindex][gindex] &&
  10631. groupStudent[toolindex][gindex][1]
  10632. )
  10633. "
  10634. >修改</span
  10635. ></span
  10636. ><span>{{
  10637. groupStudent[toolindex][gindex] &&
  10638. groupStudent[toolindex][gindex][1]
  10639. ? groupStudent[toolindex][gindex] &&
  10640. groupStudent[toolindex][gindex][1].name
  10641. : "空位置"
  10642. }}</span>
  10643. </div>
  10644. <div v-if="groupJson.number > 5">
  10645. <span
  10646. :class="{
  10647. isChair:
  10648. groupStudent[toolindex][gindex] &&
  10649. groupStudent[toolindex][gindex][5],
  10650. updateChair:
  10651. courseDetail.userid == userid &&
  10652. groupStudent[toolindex][gindex] &&
  10653. groupStudent[toolindex][gindex][5] &&
  10654. groupJson.islock == 2,
  10655. }"
  10656. ><span
  10657. class="updateChairBtn"
  10658. @click="
  10659. updateGroupChair(
  10660. groupStudent[toolindex][gindex] &&
  10661. groupStudent[toolindex][gindex][5]
  10662. )
  10663. "
  10664. >修改</span
  10665. ></span
  10666. ><span>{{
  10667. groupStudent[toolindex][gindex] &&
  10668. groupStudent[toolindex][gindex][5]
  10669. ? groupStudent[toolindex][gindex] &&
  10670. groupStudent[toolindex][gindex][5].name
  10671. : "空位置"
  10672. }}</span>
  10673. </div>
  10674. <div v-if="groupJson.number > 9">
  10675. <span
  10676. :class="{
  10677. isChair:
  10678. groupStudent[toolindex][gindex] &&
  10679. groupStudent[toolindex][gindex][9],
  10680. updateChair:
  10681. courseDetail.userid == userid &&
  10682. groupStudent[toolindex][gindex] &&
  10683. groupStudent[toolindex][gindex][9] &&
  10684. groupJson.islock == 2,
  10685. }"
  10686. ><span
  10687. class="updateChairBtn"
  10688. @click="
  10689. updateGroupChair(
  10690. groupStudent[toolindex][gindex] &&
  10691. groupStudent[toolindex][gindex][9]
  10692. )
  10693. "
  10694. >修改</span
  10695. ></span
  10696. ><span>{{
  10697. groupStudent[toolindex][gindex] &&
  10698. groupStudent[toolindex][gindex][9]
  10699. ? groupStudent[toolindex][gindex] &&
  10700. groupStudent[toolindex][gindex][9].name
  10701. : "空位置"
  10702. }}</span>
  10703. </div>
  10704. </div>
  10705. </div>
  10706. </div>
  10707. </div>
  10708. </div>
  10709. <span slot="footer" class="dialog-footer">
  10710. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  10711. </span>
  10712. </el-dialog>
  10713. <el-dialog
  10714. title="分组设置"
  10715. :visible.sync="dialogVisibleGroup2"
  10716. :append-to-body="true"
  10717. width="650px"
  10718. :before-close="handleClose"
  10719. class="dialog_diy"
  10720. >
  10721. <div class="groupBox">
  10722. <div v-if="groupJson2.group" class="groupContent">
  10723. <div class="groupTitle">请设置小组数量及名称</div>
  10724. <div
  10725. v-for="(item, index) in groupJson2.group"
  10726. :key="index"
  10727. class="groupName"
  10728. >
  10729. <span class="groupn">第{{ index + 1 }}组名称:</span>
  10730. <el-input
  10731. v-model="item.name"
  10732. placeholder="请输入名称..."
  10733. style="width: 250px"
  10734. ></el-input>
  10735. <!-- <div class="groupBtn">
  10736. <el-button type="primary" size="small" @click="addGroup(index)">
  10737. 添加</el-button>
  10738. <el-button type="primary" size="small" @click="deleteGroup(index)"
  10739. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  10740. </div> -->
  10741. </div>
  10742. </div>
  10743. <div class="groupContent">
  10744. <div class="groupTitle">请设置每组人数</div>
  10745. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  10746. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  10747. <el-input
  10748. v-model="groupJson.number"
  10749. style="width: 150px"
  10750. placeholder="请输入2-10的数字"
  10751. @change="numberPan"
  10752. ></el-input>
  10753. </div>
  10754. </div>
  10755. <span slot="footer" class="dialog-footer">
  10756. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  10757. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  10758. </span>
  10759. </el-dialog>
  10760. <el-dialog
  10761. title="作业提交"
  10762. :visible.sync="dialogVisibleGroupWork"
  10763. :append-to-body="true"
  10764. width="500px"
  10765. :before-close="handleClose"
  10766. class="dialog_change"
  10767. >
  10768. <div class="marginT">
  10769. <div>上传文件</div>
  10770. <div
  10771. class="chapter_add"
  10772. @click="addImg($event)"
  10773. v-if="studyJuri[0].cover.length == 0"
  10774. >
  10775. <div class="up_photo">
  10776. <img src="../assets/icon/uploadImg.png" alt />
  10777. </div>
  10778. <!-- <input
  10779. type="file"
  10780. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10781. style="display: none"
  10782. @change="beforeUpload1($event, 1)"
  10783. /> -->
  10784. <input
  10785. type="file"
  10786. accept="*"
  10787. style="display: none"
  10788. @change="beforeUpload1($event, 1)"
  10789. />
  10790. </div>
  10791. <!-- capture="camera" -->
  10792. <div
  10793. class="chapter_add"
  10794. style="
  10795. display: flex;
  10796. width: 100%;
  10797. flex-direction: row;
  10798. flex-wrap: wrap;
  10799. justify-content: flex-start;
  10800. padding: 15px 0;
  10801. "
  10802. v-if="studyJuri[0].cover.length > 0"
  10803. >
  10804. <div class="upCover">
  10805. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10806. <img :src="word" alt v-else-if="fileType == 1" />
  10807. <img :src="video" alt v-else-if="fileType == 2" />
  10808. <img :src="word2" alt v-else-if="fileType == 3" />
  10809. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10810. <div class="deleteWord" @click="clean(1)">
  10811. <img src="../assets/icon/deleteWorks.png" alt />
  10812. </div>
  10813. </div>
  10814. </div>
  10815. </div>
  10816. <div
  10817. class="upload_send"
  10818. @click="addCourseWorks2(taskCount)"
  10819. v-if="!proVisible"
  10820. >
  10821. 提交
  10822. </div>
  10823. </el-dialog>
  10824. <el-dialog
  10825. title="修改分组"
  10826. :visible.sync="dialogVisibleUpdateGroup"
  10827. :append-to-body="true"
  10828. width="350px"
  10829. :before-close="handleClose"
  10830. class="dialog_diy"
  10831. >
  10832. <div>
  10833. <h2>
  10834. {{ this.updateGroupUser.name }}
  10835. </h2>
  10836. <div style="color: rgb(171 171 171); margin-top: 10px">
  10837. 请选择要进入的分组
  10838. </div>
  10839. <el-radio-group v-model="checkChair">
  10840. <el-radio
  10841. style="display: block; margin-top: 20px"
  10842. v-for="(item, index) in updateGroupArray"
  10843. :label="item.label"
  10844. :key="index"
  10845. >{{ item.name }}</el-radio
  10846. >
  10847. </el-radio-group>
  10848. </div>
  10849. <span slot="footer" class="dialog-footer">
  10850. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  10851. <el-button type="primary" @click="updateChair">确定</el-button>
  10852. </span>
  10853. </el-dialog>
  10854. <el-dialog
  10855. title="移除组员"
  10856. :visible.sync="dialogVisibleDeleteGroup"
  10857. :append-to-body="true"
  10858. width="350px"
  10859. :before-close="handleClose"
  10860. class="dialog_diy"
  10861. >
  10862. <div>
  10863. <h2>
  10864. {{ this.deleteGroupArray.name }}
  10865. </h2>
  10866. <div style="color: rgb(171 171 171); margin-top: 10px">
  10867. 请选择要删除的组员
  10868. </div>
  10869. <el-checkbox-group v-model="checkDeleteGroup">
  10870. <el-checkbox
  10871. style="display: flex; margin-top: 20px"
  10872. v-for="(item, index) in deleteGroupUser"
  10873. :label="item.userid"
  10874. :key="index"
  10875. >{{ item.name }}</el-checkbox
  10876. >
  10877. </el-checkbox-group>
  10878. </div>
  10879. <span slot="footer" class="dialog-footer">
  10880. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  10881. <el-button type="primary" @click="deleteChair">确定</el-button>
  10882. </span>
  10883. </el-dialog>
  10884. <el-dialog
  10885. title="批量上传"
  10886. :visible.sync="dialogVisiblePl"
  10887. :append-to-body="true"
  10888. width="700px"
  10889. :before-close="handleClose"
  10890. class="dialog_change"
  10891. >
  10892. <div class="marginT">
  10893. <div class="plworkBox">
  10894. <div
  10895. class="chapter_add"
  10896. style="
  10897. display: flex;
  10898. width: 150px;
  10899. flex-direction: row;
  10900. flex-wrap: wrap;
  10901. justify-content: flex-start;
  10902. margin: 0 10px 10px 0;
  10903. "
  10904. v-for="(item, index) in plworkFile"
  10905. :key="index"
  10906. >
  10907. <div class="upCover2">
  10908. <img
  10909. :src="item.url"
  10910. alt
  10911. v-if="item.fileType == 1"
  10912. @click="previewImg(item.url)"
  10913. />
  10914. <img :src="word" alt v-else-if="item.fileType == 4" />
  10915. <img :src="video" alt v-else />
  10916. <!-- <span class="picName">{{ item.name }}</span> -->
  10917. <!-- <el-input
  10918. v-model="item.username"
  10919. placeholder="请输入学生名字"
  10920. style="margin-top: 10px"
  10921. ></el-input> -->
  10922. <div
  10923. class="pl_select_box"
  10924. @click="
  10925. getUpdateMore(true, checkUpload(), item.username, index)
  10926. "
  10927. >
  10928. {{ getSName(item.username) }}
  10929. </div>
  10930. <!-- <el-select
  10931. style="margin-top: 10px"
  10932. v-model="item.username"
  10933. filterable
  10934. allow-create
  10935. placeholder="请选择学生"
  10936. >
  10937. <el-option
  10938. v-for="item1 in checkUpload()"
  10939. :key="item1.userid"
  10940. :label="item1.name ? item1.name : item1.username"
  10941. :value="item1.userid"
  10942. >
  10943. </el-option>
  10944. </el-select> -->
  10945. <div class="deleteWord" @click="clean2(index)">
  10946. <img src="../assets/icon/deleteWorks.png" alt />
  10947. </div>
  10948. </div>
  10949. </div>
  10950. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  10951. <div class="up_photo2">
  10952. <img src="../assets/icon/plwork.png" alt />
  10953. <span>点击上传文件</span>
  10954. </div>
  10955. <input
  10956. type="file"
  10957. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10958. multiple="multiple"
  10959. style="display: none"
  10960. @change="beforeUpload3($event, 6)"
  10961. />
  10962. </div>
  10963. </div>
  10964. </div>
  10965. <!-- capture="camera" -->
  10966. <div
  10967. class="upload_send"
  10968. @click="addCourseWorksPl(taskCount)"
  10969. v-if="!proVisible2"
  10970. >
  10971. 提交
  10972. </div>
  10973. </el-dialog>
  10974. <el-dialog
  10975. title="修改名称"
  10976. :visible.sync="dialogVisibleSname"
  10977. width="500px"
  10978. :before-close="handleClose"
  10979. class="dialog_diy"
  10980. center
  10981. >
  10982. <div
  10983. style="
  10984. text-align: center;
  10985. display: flex;
  10986. align-items: center;
  10987. justify-content: center;
  10988. "
  10989. >
  10990. <span class="tian1">名称</span>
  10991. <div
  10992. class="pl_select_box"
  10993. style="margin-left: 10px; width: 200px"
  10994. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  10995. >
  10996. {{ getSName(worksSName) }}
  10997. </div>
  10998. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  10999. placeholder="请选择学生">
  11000. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11001. :value="item.userid">
  11002. </el-option>
  11003. </el-select> -->
  11004. <!-- <el-input
  11005. v-model="worksSName"
  11006. style="width: 250px; margin: 15px 0px"
  11007. ></el-input> -->
  11008. </div>
  11009. <span slot="footer" class="dialog-footer">
  11010. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11011. <el-button type="primary" @click="updateName">确 定</el-button>
  11012. </span>
  11013. </el-dialog>
  11014. <interVideo
  11015. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11016. :videoJson="videoJson"
  11017. :userid="userid"
  11018. :id="id"
  11019. :courseType="courseType"
  11020. :taskCount="taskCount"
  11021. :toolindex="toolindex"
  11022. ></interVideo>
  11023. <UpdateMore
  11024. :dialogVisibleMember.sync="dialogVisibleMember"
  11025. :cList="uploadStudentJuri"
  11026. :userid="userid"
  11027. :searchTN="worksSName2"
  11028. @setPlname="setPlname"
  11029. ></UpdateMore>
  11030. <wordCloud
  11031. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11032. :data="wordCloudData"
  11033. ></wordCloud>
  11034. <el-dialog
  11035. title="挑人"
  11036. :visible.sync="dialogVisiblePickPeople"
  11037. width="650px"
  11038. :before-close="handleClose"
  11039. class="dialog_diy"
  11040. center
  11041. >
  11042. <div class="pick_box">
  11043. <div
  11044. class="noWorksName"
  11045. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11046. v-for="(item, index) in uploadStudentJuri"
  11047. :key="index"
  11048. @click="pickStudent(item)"
  11049. >
  11050. {{ item.name }}
  11051. </div>
  11052. </div>
  11053. </el-dialog>
  11054. </div>
  11055. </template>
  11056. <script>
  11057. import "../common/aws-sdk-2.235.1.min.js";
  11058. // import pdf from "./components/pdf3";
  11059. import pdf from "./components/vpdf";
  11060. import AskStatic from "./components/askStatic";
  11061. import AskStatic2 from "./components/askStatic2";
  11062. import AnswerData2 from "./components/answerData2";
  11063. import AnswerData from "./components/answerData";
  11064. import EditorBar from "./tools/wangEnduit.vue";
  11065. import Table from "./tools/table.vue";
  11066. import Time from "./tools/time.vue";
  11067. import Mind from "./tools/jsmind.vue";
  11068. import Sunburst from "./tools/sunburst";
  11069. import SeeBoard from "./tools/seeBoard";
  11070. import * as imageConversion from "image-conversion";
  11071. import Audio from "./components/audio.vue";
  11072. import ImgDraw from "./tools/imgDraw/imgDraw";
  11073. import { Empty } from "element-ui";
  11074. import RecordRTC from "recordrtc";
  11075. import interVideo from "./interVideo/index.vue";
  11076. import UpdateMore from "./updateMore/updateMore.vue";
  11077. import wordCloud from "./wordCloud/index.vue";
  11078. import axios from "axios";
  11079. import JSZip from "jszip";
  11080. import FileSaver from "file-saver";
  11081. const getFile = (url) => {
  11082. return new Promise((resolve, reject) => {
  11083. axios({
  11084. method: "get",
  11085. url,
  11086. responseType: "blob",
  11087. })
  11088. .then((data) => {
  11089. resolve({ data: data.data });
  11090. })
  11091. .catch((error) => {
  11092. resolve({ data: 1 });
  11093. // reject(error.toString());
  11094. });
  11095. });
  11096. };
  11097. export default {
  11098. components: {
  11099. EditorBar,
  11100. Time,
  11101. pdf,
  11102. AskStatic,
  11103. AskStatic2,
  11104. Mind,
  11105. Sunburst,
  11106. SeeBoard,
  11107. AnswerData2,
  11108. AnswerData,
  11109. Audio,
  11110. ImgDraw,
  11111. Table,
  11112. interVideo,
  11113. UpdateMore,
  11114. wordCloud,
  11115. },
  11116. data() {
  11117. return {
  11118. bg: null,
  11119. drawShow: false,
  11120. dialogVisible: false,
  11121. dialogVisiblePl: false,
  11122. commentDialogVisible: false,
  11123. dialogVisibleMember: false,
  11124. dialogVisibleWordCloud: false,
  11125. videoVisible: false,
  11126. isStar: false,
  11127. studentEvalDialogVisible: false,
  11128. studentEvalDialogVisibleTeacher: false,
  11129. dialogVisibleSelect: false,
  11130. dialogVisibleSelectTeacher: false,
  11131. dialogVisibleScore: false,
  11132. dialogVisibleSentence: false,
  11133. dialogVisibleSentenceTeacher: false,
  11134. dialogVisibleSentence1: false,
  11135. dialogVisibleWorks: false,
  11136. dialogVisibleTable: false,
  11137. dialogVisibleTableTeacher: false,
  11138. dialogVisibleWord: false,
  11139. dialogVisibleWordTeacher: false,
  11140. dialogVisibleTable2: false,
  11141. dialogVisibleTable3: false,
  11142. dialogVisibleGroupWork: false,
  11143. dialogVisibleUpdateGroup: false,
  11144. dialogVisibleDeleteGroup: false,
  11145. dialogVisibleSname: false,
  11146. dialogVisibleVideo: false,
  11147. dialogVisiblePickPeople: false,
  11148. worksSName: "",
  11149. classJuri: [],
  11150. uploadStudentJuri: [],
  11151. uploadCid: "",
  11152. snameWid: "",
  11153. sStudent: {},
  11154. sTool: "",
  11155. bzText: "",
  11156. commentDetail: [],
  11157. selectAnswer: [],
  11158. videoDetail: {},
  11159. selectJson: {},
  11160. eScore: { eBzText: "", eStar: [] },
  11161. id: this.$route.query.courseId,
  11162. userid: this.$route.query.userid,
  11163. classId: this.$route.query.cid,
  11164. // courseTypeLine: this.$route.query.type,
  11165. oid: this.$route.query.oid,
  11166. org: this.$route.query.org,
  11167. tType: this.$route.query.tType,
  11168. courseType: this.$route.query.type,
  11169. screenType: this.$route.query.screenType,
  11170. tcid2: this.$route.query.tcid,
  11171. tcid: "",
  11172. pptImgUrl: "",
  11173. pptImgUrl1: "",
  11174. commentText: "",
  11175. full: false,
  11176. sIsOpen: false,
  11177. IsLookOpen: false,
  11178. IsFollow: false,
  11179. pzDialog: false,
  11180. contentDialog: false,
  11181. mlDialog: false,
  11182. type: 1,
  11183. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11184. sentenceList1: [],
  11185. tableJson: [],
  11186. tableJsonO: [],
  11187. wordJson: [],
  11188. wordJsonO: [],
  11189. vedio: [],
  11190. text: [],
  11191. textList: [],
  11192. line: [],
  11193. lineList: [],
  11194. chapTools: [],
  11195. chapToolList: [],
  11196. file: [],
  11197. fileC: [],
  11198. vedioTime: [],
  11199. upToolImg: "",
  11200. preTime: 0,
  11201. rateList: {
  11202. ca: 0,
  11203. },
  11204. rateParams: [],
  11205. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11206. studyJuri: [
  11207. {
  11208. content: "",
  11209. cover: [],
  11210. upVedio: [],
  11211. upFile: [],
  11212. },
  11213. ],
  11214. isClose: 0,
  11215. plworkFile: [],
  11216. mr: require("../assets/vedioPic.png"),
  11217. word: require("../assets/icon/isWord.png"),
  11218. word2: require("../assets/icon/word2.png"),
  11219. video: require("../assets/icon/isVideo.png"),
  11220. noLikes: require("../assets/icon/comment/noLikes.png"),
  11221. likes: require("../assets/icon/comment/likes.png"),
  11222. scoreImg: require("../assets/score.png"),
  11223. courseDetail: {},
  11224. reply: "",
  11225. isSelect: false,
  11226. chapInfo: [],
  11227. chapInfoList: [],
  11228. taskCount: 0,
  11229. imgList: [],
  11230. noImgList: [],
  11231. pzList: [],
  11232. timeWorkList: [],
  11233. PlTextList: [
  11234. "Excellent!",
  11235. "nice!",
  11236. "很有创意!",
  11237. "还不错哦~",
  11238. "继续努力哦~",
  11239. ],
  11240. isClickNav: "",
  11241. navId: "",
  11242. playerOptions: {
  11243. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11244. autoplay: false, //如果true,浏览器准备好时开始回放。
  11245. muted: false, // 默认情况下将会消除任何音频。
  11246. loop: false, // 导致视频一结束就重新开始。
  11247. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11248. language: "zh-CN",
  11249. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11250. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11251. sources: [
  11252. {
  11253. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11254. src: "", //url地址require("../../assets/media/aaa.mp4")
  11255. },
  11256. ],
  11257. // poster: require("../../assets/tu31.png"), //你的封面地址
  11258. // poster: dataRes.imgUrl, //你的封面地址
  11259. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11260. controlBar: {
  11261. timeDivider: true, //当前时间和持续时间的分隔符
  11262. durationDisplay: true, //显示持续时间
  11263. remainingTimeDisplay: false, //是否显示剩余时间功能
  11264. fullscreenToggle: true, //全屏按钮
  11265. },
  11266. },
  11267. playerOptions1: {
  11268. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11269. autoplay: false, //如果true,浏览器准备好时开始回放。
  11270. muted: false, // 默认情况下将会消除任何音频。
  11271. loop: false, // 导致视频一结束就重新开始。
  11272. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11273. language: "zh-CN",
  11274. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11275. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11276. sources: [
  11277. {
  11278. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11279. src: "", //url地址require("../../assets/media/aaa.mp4")
  11280. },
  11281. ],
  11282. // poster: require("../../assets/tu31.png"), //你的封面地址
  11283. // poster: dataRes.imgUrl, //你的封面地址
  11284. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11285. controlBar: {
  11286. timeDivider: true, //当前时间和持续时间的分隔符
  11287. durationDisplay: true, //显示持续时间
  11288. remainingTimeDisplay: false, //是否显示剩余时间功能
  11289. fullscreenToggle: true, //全屏按钮
  11290. },
  11291. },
  11292. playerO: {},
  11293. noneBtnImg: false,
  11294. proVisible: false,
  11295. proVisible2: false,
  11296. progress: 0,
  11297. isFinishSize: 0,
  11298. isAllSize: 0,
  11299. questionAnswer: "",
  11300. answerQ: "", //问答标题
  11301. rateJson: [],
  11302. wbCount: 0,
  11303. wordCount: 0,
  11304. mindCount: 0,
  11305. askCount: 0,
  11306. noteCount: 0,
  11307. mindNetWorkCount: 0,
  11308. libraryCount: 0,
  11309. workCount: 0,
  11310. timeCount: 0,
  11311. answerCount: 0,
  11312. trainCount: 0,
  11313. evalCount: 0,
  11314. dialogImageUrl: "",
  11315. pictureDialog: false,
  11316. toolTypeList: [],
  11317. dialogVisible1: false,
  11318. dialogVisible2: false,
  11319. dialogVisible3: false,
  11320. dialogVisible6: false,
  11321. dialogVisible4: false,
  11322. isNoHomeWork: false,
  11323. dialogVisible5: false,
  11324. dialogVisible5Teacher: false,
  11325. dialogVisibleChoice: false,
  11326. dialogVisibleChoiceTeacher: false,
  11327. answerDialogVisible: false,
  11328. answerDialogVisibleTeacher: false,
  11329. juriVisible: false,
  11330. timeDialogVisible: false,
  11331. replyDialogVisible: false,
  11332. toolDialogVisible: false,
  11333. replyIndex: 0,
  11334. replyPid: "",
  11335. radio: [],
  11336. isAsk: false,
  11337. askJson: {
  11338. askCount: 1,
  11339. askTitle: "",
  11340. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11341. },
  11342. testJson: {},
  11343. checkJson: [],
  11344. askList: [],
  11345. answerList: [],
  11346. navList: [],
  11347. addPzDialog: false,
  11348. pzConText: "",
  11349. worksStudent: [],
  11350. isCloseList: [],
  11351. workStudent: [],
  11352. groupStudent: [],
  11353. groupStudentUid: [],
  11354. noWorksS: [],
  11355. isWorksS: [],
  11356. noWorksStudent: [],
  11357. toolindex: 0,
  11358. toolDetailIndex: null,
  11359. groupIndex: 0,
  11360. workTypeB: false,
  11361. workTypeC: false,
  11362. isAnswer: false,
  11363. isHovered: false,
  11364. isHovered1: false,
  11365. isHovered2: false,
  11366. timer: null,
  11367. opertimer: null,
  11368. showType: 0,
  11369. fileType: 0,
  11370. showPDF: false,
  11371. noteName: "",
  11372. evaJuri: [],
  11373. evalua: "",
  11374. eTitle: "",
  11375. eName: "",
  11376. eJson: {},
  11377. fid: "", //一级
  11378. sid: "", //二级
  11379. tid: "", //二级
  11380. typeMode: 1,
  11381. eJSONNum: 0,
  11382. Etype: 1,
  11383. data: {
  11384. meta: {
  11385. name: "example",
  11386. author: "dd@163.com",
  11387. version: "0.2",
  11388. },
  11389. format: "node_array",
  11390. data: [{ id: "root", isroot: true, topic: "" }],
  11391. },
  11392. fullDialogVisible: false,
  11393. fulltype: "",
  11394. fullUrl: "",
  11395. commentIndexJson: {},
  11396. Stbodywidth: 0,
  11397. ispzType: 0,
  11398. pzType: 1,
  11399. wScore: 0,
  11400. scoreDetail: "",
  11401. videoStart: false,
  11402. recorder: null,
  11403. groupJson: {},
  11404. islock: false,
  11405. groupJson2: {},
  11406. dialogVisibleGroup: false,
  11407. dialogVisibleGroup2: false,
  11408. updateGroupArray: [],
  11409. updateGroupUser: {},
  11410. deleteGroupUser: [],
  11411. deleteGroupArray: {},
  11412. checkChair: "",
  11413. checkDeleteGroup: [],
  11414. inviteCode: "",
  11415. courseGroupStudent: [],
  11416. courseGroupStudentUid: [],
  11417. courseGroup: {},
  11418. isGroup: false,
  11419. toolIndex: null,
  11420. tool: {},
  11421. isWorkTool: [
  11422. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11423. ], //, 40
  11424. videoJson: {},
  11425. toolType: 0,
  11426. checktoolArray: [],
  11427. vChapterData: [],
  11428. isUpdateToolDetail: false,
  11429. isUpdateToolDetail1: false,
  11430. updateToolDetailInner: "",
  11431. checkboxList: [],
  11432. plIndex: "",
  11433. worksSName2: "",
  11434. worksSid: "",
  11435. wordCloudData: [],
  11436. isPickStudent: [],
  11437. pzStype: 1,
  11438. };
  11439. },
  11440. methods: {
  11441. addToolChoose() {
  11442. if (!this.checktoolArray.length) {
  11443. this.$message.error("请选择要添加的任务");
  11444. return;
  11445. }
  11446. if (
  11447. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11448. this.taskCount
  11449. ].toolChoose[0].tool.length
  11450. ) {
  11451. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11452. this.taskCount
  11453. ].toolChoose[0].tool = this.checktoolArray;
  11454. } else {
  11455. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11456. this.taskCount
  11457. ].toolChoose.push({
  11458. tool: this.checktoolArray,
  11459. toolDetail: "",
  11460. toolType: 0,
  11461. askCount: 1,
  11462. askTitle: "",
  11463. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11464. });
  11465. }
  11466. let params = [
  11467. {
  11468. cid: this.id,
  11469. chapters: JSON.stringify(this.chapInfoList),
  11470. uid: this.userid,
  11471. unitIndex: this.courseType,
  11472. },
  11473. ];
  11474. this.ajax
  11475. .post(this.$store.state.api + "updateWorkNew4", params)
  11476. .then((res) => {
  11477. this.$message({
  11478. message: "添加成功",
  11479. type: "success",
  11480. });
  11481. this.checktoolArray = [];
  11482. this.getCourseDetail(2);
  11483. this.checkBz(
  11484. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11485. this.taskCount
  11486. ].toolChoose.length - 1
  11487. );
  11488. this.toolDialogVisible = false;
  11489. this.refreshCourse();
  11490. this.$forceUpdate();
  11491. })
  11492. .catch((err) => {
  11493. console.error(err);
  11494. });
  11495. },
  11496. checkBz(index) {
  11497. this.isUpdateToolDetail = false;
  11498. this.$forceUpdate();
  11499. setTimeout(() => {
  11500. document.scrollingElement.scrollTop =
  11501. document.querySelectorAll(".filebox")[index].offsetTop +
  11502. document.querySelector(".student_body").offsetTop;
  11503. }, 500);
  11504. },
  11505. updateToolDetail(i) {
  11506. this.toolDetailIndex = i;
  11507. if (!this.isUpdateToolDetail1) {
  11508. this.isUpdateToolDetail1 = true;
  11509. this.updateToolDetailInner = JSON.parse(
  11510. JSON.stringify(
  11511. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11512. this.taskCount
  11513. ].toolChoose[i].toolDetail
  11514. )
  11515. );
  11516. } else {
  11517. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11518. this.taskCount
  11519. ].toolChoose[i].toolDetail = JSON.parse(
  11520. JSON.stringify(this.updateToolDetailInner)
  11521. );
  11522. let params = [
  11523. {
  11524. cid: this.id,
  11525. chapters: JSON.stringify(this.chapInfoList),
  11526. uid: this.userid,
  11527. unitIndex: this.courseType,
  11528. },
  11529. ];
  11530. this.ajax
  11531. .post(this.$store.state.api + "updateWorkNew4", params)
  11532. .then((res) => {
  11533. this.isUpdateToolDetail1 = false;
  11534. this.$message({
  11535. message: "修改成功",
  11536. type: "success",
  11537. });
  11538. this.toolDetailIndex = null;
  11539. this.updateToolDetailInner = "";
  11540. this.getCourseDetail(2);
  11541. this.$forceUpdate();
  11542. })
  11543. .catch((err) => {
  11544. console.error(err);
  11545. });
  11546. }
  11547. },
  11548. jumpGj(i, j, k, l) {
  11549. for (var z = 0; z < this.navList.length; z++) {
  11550. for (var q = 0; q < this.navList[z].task.length; q++) {
  11551. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  11552. this.navList[z].task[q].tool[w].isTool = false;
  11553. }
  11554. }
  11555. }
  11556. this.navList[i].task[j].tool[k].isTool =
  11557. !this.navList[i].task[j].tool[k].isTool;
  11558. var a = document.scrollingElement;
  11559. let target = document.querySelector(`#gj${k}`);
  11560. if (target) {
  11561. target.scrollIntoView(true);
  11562. setTimeout(() => {
  11563. a.scrollTop = a.scrollTop - 150;
  11564. }, 0);
  11565. }
  11566. if (l) {
  11567. this.courseType = i;
  11568. this.navId = l;
  11569. this.taskCount = j;
  11570. this.selectPz();
  11571. this.getHomeWork();
  11572. this.getCourseDetail(2);
  11573. }
  11574. // var b = this.$refs["bz" + k][0];
  11575. // a.scrollTop = b.offsetTop;
  11576. },
  11577. addTools2(i) {
  11578. if (i == 4) {
  11579. // this.openTools2(4);
  11580. this.$message.error("暂未开放");
  11581. return;
  11582. }
  11583. if (i == 45) {
  11584. // this.openTools2(45);
  11585. this.$message.error("暂未开放");
  11586. return;
  11587. }
  11588. if (i == 47) {
  11589. // this.openTools2(47);
  11590. this.$message.error("暂未开放");
  11591. return;
  11592. }
  11593. if (i == 49) {
  11594. // this.openTools2(49);
  11595. this.$message.error("暂未开放");
  11596. return;
  11597. }
  11598. if (i == 62) {
  11599. // this.openTools(itemTaskIndex, 62, toolIndex);
  11600. this.$message.error("暂未开放");
  11601. return;
  11602. }
  11603. if (i == 15) {
  11604. // this.openTools(itemTaskIndex, 15, toolIndex);
  11605. this.$message.error("暂未开放");
  11606. return;
  11607. }
  11608. if (i == 40) {
  11609. // this.openTools(itemTaskIndex, 40, toolIndex);
  11610. this.$message.error("暂未开放");
  11611. return;
  11612. }
  11613. if (i == 41) {
  11614. // this.openTools(itemTaskIndex, 41, toolIndex);
  11615. this.$message.error("暂未开放");
  11616. return;
  11617. }
  11618. if (i == 42) {
  11619. // this.openTools(itemTaskIndex, 42, toolIndex);
  11620. this.$message.error("暂未开放");
  11621. return;
  11622. }
  11623. if (this.checktoolArray.length > 0) {
  11624. if (this.checktoolArray.indexOf(i) != -1) {
  11625. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  11626. } else {
  11627. this.checktoolArray = [];
  11628. this.checktoolArray.push(i);
  11629. }
  11630. } else {
  11631. this.checktoolArray.push(i);
  11632. }
  11633. this.$forceUpdate();
  11634. },
  11635. jump() {
  11636. window.parent.postMessage({ tools: "43" }, "*");
  11637. },
  11638. getUpdateMore(f, checkboxList, searchTN, index) {
  11639. this.dialogVisibleMember = f;
  11640. this.checkboxList = checkboxList;
  11641. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  11642. this.plIndex = index;
  11643. },
  11644. setPlname(a) {
  11645. if (this.plworkFile.length) {
  11646. this.plworkFile[this.plIndex].username = a;
  11647. } else {
  11648. this.worksSName = a;
  11649. }
  11650. this.dialogVisibleMember = false;
  11651. },
  11652. previewImg(url) {
  11653. this.$hevueImgPreview(url);
  11654. },
  11655. checkImg(list) {
  11656. if (!list.length) {
  11657. return;
  11658. }
  11659. this.$hevueImgPreview({
  11660. multiple: true, // 开启多图预览模式
  11661. imgList: list, // 需要预览的多图数组
  11662. });
  11663. },
  11664. change(val) {
  11665. console.log(val);
  11666. },
  11667. goTo(path) {
  11668. this.$router.push(path);
  11669. },
  11670. handlePictureCardPreview(url) {
  11671. this.dialogImageUrl = url;
  11672. this.pictureDialog = true;
  11673. },
  11674. clean(type) {
  11675. if (type == 1) {
  11676. this.studyJuri[0].cover.splice(0, 1);
  11677. } else if (type == 2) {
  11678. this.studyJuri[0].upVedio.splice(0, 1);
  11679. } else {
  11680. this.studyJuri[0].upFile.splice(0, 1);
  11681. }
  11682. },
  11683. clean2(index) {
  11684. this.plworkFile.splice(index, 1);
  11685. },
  11686. handleClose(done) {
  11687. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  11688. this.videoDetail.sources[0].src = "";
  11689. }
  11690. this.commentIndexJson = {};
  11691. done();
  11692. },
  11693. fullTools() {
  11694. this.full = !this.full;
  11695. },
  11696. imgChange(file, fileList, type) {
  11697. if (type == 1) {
  11698. var _tmp = this.studyJuri[0].cover;
  11699. } else if (type == 2) {
  11700. var _tmp = this.studyJuri[0].upVedio;
  11701. } else {
  11702. var _tmp = this.studyJuri[0].upFile;
  11703. }
  11704. this.noneBtnImg = _tmp.length >= 1;
  11705. },
  11706. setContent(bool) {
  11707. this.contentDialog = bool;
  11708. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  11709. document.querySelector(".workd_media").style.height = "650px";
  11710. } else if (document.querySelector(".workd_media")) {
  11711. document.querySelector(".workd_media").style.height = "auto";
  11712. }
  11713. },
  11714. setContent2(bool) {
  11715. this.mlDialog = bool;
  11716. if (
  11717. bool &&
  11718. this.contentDialog &&
  11719. document.querySelector(".workd_media")
  11720. ) {
  11721. document.querySelector(".workd_media").style.height = "650px";
  11722. } else if (document.querySelector(".workd_media")) {
  11723. document.querySelector(".workd_media").style.height = "auto";
  11724. }
  11725. },
  11726. openToolAll() {
  11727. this.toolDialogVisible = true;
  11728. },
  11729. addImg(e) {
  11730. var el = e.currentTarget;
  11731. // this.$message.success('触发上传')
  11732. el.getElementsByTagName("input")[0].click();
  11733. e.target.value = "";
  11734. },
  11735. addSelectAnswer() {
  11736. let params = [
  11737. {
  11738. uid: this.userid,
  11739. cid: this.id,
  11740. stage: this.courseType,
  11741. task: this.taskCount,
  11742. tool: this.toolindex,
  11743. content: this.selectAnswer.answer,
  11744. type: 7,
  11745. },
  11746. ];
  11747. this.ajax
  11748. .post(this.$store.state.api + "addCourseWorks", params)
  11749. .then((res) => {
  11750. this.$message({
  11751. message: "提交成功",
  11752. type: "success",
  11753. });
  11754. this.dialogVisibleSelect = false;
  11755. // this.selectAnswer = {};
  11756. this.selectSWorks();
  11757. this.selectStudent();
  11758. })
  11759. .catch((err) => {
  11760. this.$message.error("提交失败");
  11761. console.error(err);
  11762. });
  11763. },
  11764. addSelectAnswerTeacher() {
  11765. let params = [
  11766. {
  11767. uid: this.sStudent.userid,
  11768. cid: this.id,
  11769. stage: this.courseType,
  11770. task: this.taskCount,
  11771. tool: this.toolindex,
  11772. content: this.selectAnswer.answer,
  11773. type: 7,
  11774. },
  11775. ];
  11776. this.ajax
  11777. .post(this.$store.state.api + "addCourseWorks", params)
  11778. .then((res) => {
  11779. this.$message({
  11780. message: "提交成功",
  11781. type: "success",
  11782. });
  11783. this.dialogVisibleSelectTeacher = false;
  11784. // this.selectAnswer = {};
  11785. this.selectSWorks();
  11786. this.selectStudent();
  11787. })
  11788. .catch((err) => {
  11789. this.$message.error("提交失败");
  11790. console.error(err);
  11791. });
  11792. },
  11793. addSenWorks() {
  11794. for (var i = 0; i < this.sentenceList.length; i++) {
  11795. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  11796. if (
  11797. this.sentenceList[i].chooseSenList[j] == undefined ||
  11798. this.sentenceList[i].chooseSenList[j] == ""
  11799. ) {
  11800. this.$message.error("请将答案填写完整!");
  11801. return;
  11802. }
  11803. }
  11804. }
  11805. let params = [
  11806. {
  11807. uid: this.userid,
  11808. cid: this.id,
  11809. stage: this.courseType,
  11810. task: this.taskCount,
  11811. tool: this.toolindex,
  11812. content: JSON.stringify(this.sentenceList),
  11813. type: 9,
  11814. },
  11815. ];
  11816. this.ajax
  11817. .post(this.$store.state.api + "addCourseWorks", params)
  11818. .then((res) => {
  11819. this.$message({
  11820. message: "提交成功",
  11821. type: "success",
  11822. });
  11823. this.dialogVisibleSentence = false;
  11824. // this.selectAnswer = {};
  11825. this.selectSWorks();
  11826. this.selectStudent();
  11827. })
  11828. .catch((err) => {
  11829. this.$message.error("提交失败");
  11830. console.error(err);
  11831. });
  11832. },
  11833. addSenWorksTeacher() {
  11834. for (var i = 0; i < this.sentenceList.length; i++) {
  11835. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  11836. if (
  11837. this.sentenceList[i].chooseSenList[j] == undefined ||
  11838. this.sentenceList[i].chooseSenList[j] == ""
  11839. ) {
  11840. this.$message.error("请将答案填写完整!");
  11841. return;
  11842. }
  11843. }
  11844. }
  11845. let params = [
  11846. {
  11847. uid: this.sStudent.userid,
  11848. cid: this.id,
  11849. stage: this.courseType,
  11850. task: this.taskCount,
  11851. tool: this.toolindex,
  11852. content: JSON.stringify(this.sentenceList),
  11853. type: 9,
  11854. },
  11855. ];
  11856. this.ajax
  11857. .post(this.$store.state.api + "addCourseWorks", params)
  11858. .then((res) => {
  11859. this.$message({
  11860. message: "提交成功",
  11861. type: "success",
  11862. });
  11863. this.dialogVisibleSentenceTeacher = false;
  11864. // this.selectAnswer = {};
  11865. this.selectSWorks();
  11866. this.selectStudent();
  11867. })
  11868. .catch((err) => {
  11869. this.$message.error("提交失败");
  11870. console.error(err);
  11871. });
  11872. },
  11873. returnTableText() {
  11874. this.$confirm("确定还原此模板吗?", "提示", {
  11875. confirmButtonText: "确定",
  11876. cancelButtonText: "取消",
  11877. type: "warning",
  11878. })
  11879. .then(() => {
  11880. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  11881. })
  11882. .catch(() => {});
  11883. },
  11884. addTableWorks() {
  11885. let params = [
  11886. {
  11887. uid: this.userid,
  11888. cid: this.id,
  11889. stage: this.courseType,
  11890. task: this.taskCount,
  11891. tool: this.toolindex,
  11892. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  11893. type: 10,
  11894. },
  11895. ];
  11896. this.ajax
  11897. .post(this.$store.state.api + "addCourseWorks", params)
  11898. .then((res) => {
  11899. this.$message({
  11900. message: "提交成功",
  11901. type: "success",
  11902. });
  11903. this.dialogVisibleTable = false;
  11904. // this.selectAnswer = {};
  11905. this.selectSWorks();
  11906. this.selectStudent();
  11907. })
  11908. .catch((err) => {
  11909. this.$message.error("提交失败");
  11910. console.error(err);
  11911. });
  11912. },
  11913. tableRowClassName({ row, rowIndex }) {
  11914. if ((rowIndex + 1) % 2 === 0) {
  11915. return "even_row";
  11916. } else {
  11917. return "";
  11918. }
  11919. },
  11920. addTableWorksTeacher() {
  11921. let params = [
  11922. {
  11923. uid: this.sStudent.userid,
  11924. cid: this.id,
  11925. stage: this.courseType,
  11926. task: this.taskCount,
  11927. tool: this.toolindex,
  11928. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  11929. type: 10,
  11930. },
  11931. ];
  11932. this.ajax
  11933. .post(this.$store.state.api + "addCourseWorks", params)
  11934. .then((res) => {
  11935. this.$message({
  11936. message: "提交成功",
  11937. type: "success",
  11938. });
  11939. this.dialogVisibleTableTeacher = false;
  11940. // this.selectAnswer = {};
  11941. this.selectSWorks();
  11942. this.selectStudent();
  11943. })
  11944. .catch((err) => {
  11945. this.$message.error("提交失败");
  11946. console.error(err);
  11947. });
  11948. },
  11949. returnWordText() {
  11950. this.$confirm("确定还原此模板吗?", "提示", {
  11951. confirmButtonText: "确定",
  11952. cancelButtonText: "取消",
  11953. type: "warning",
  11954. })
  11955. .then(() => {
  11956. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  11957. })
  11958. .catch(() => {});
  11959. },
  11960. addWordWorks() {
  11961. let params = [
  11962. {
  11963. uid: this.userid,
  11964. cid: this.id,
  11965. stage: this.courseType,
  11966. task: this.taskCount,
  11967. tool: this.toolindex,
  11968. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  11969. type: 13,
  11970. atool: 52,
  11971. },
  11972. ];
  11973. this.ajax
  11974. .post(this.$store.state.api + "addCourseWorks3-2", params)
  11975. .then((res) => {
  11976. this.$message({
  11977. message: "提交成功",
  11978. type: "success",
  11979. });
  11980. this.dialogVisibleWord = false;
  11981. // this.selectAnswer = {};
  11982. this.selectSWorks();
  11983. this.selectStudent();
  11984. })
  11985. .catch((err) => {
  11986. this.$message.error("提交失败");
  11987. console.error(err);
  11988. });
  11989. },
  11990. addWordWorksTeacher() {
  11991. let params = [
  11992. {
  11993. uid: this.sStudent.userid,
  11994. cid: this.id,
  11995. stage: this.courseType,
  11996. task: this.taskCount,
  11997. tool: this.toolindex,
  11998. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  11999. type: 13,
  12000. atool: 52,
  12001. },
  12002. ];
  12003. this.ajax
  12004. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12005. .then((res) => {
  12006. this.$message({
  12007. message: "提交成功",
  12008. type: "success",
  12009. });
  12010. this.dialogVisibleWordTeacher = false;
  12011. // this.selectAnswer = {};
  12012. this.selectSWorks();
  12013. this.selectStudent();
  12014. })
  12015. .catch((err) => {
  12016. this.$message.error("提交失败");
  12017. console.error(err);
  12018. });
  12019. },
  12020. addCourseWorks(i) {
  12021. var typesql;
  12022. if (this.fileType === 0) {
  12023. typesql = 1;
  12024. } else if (this.fileType === 1) {
  12025. typesql = 4;
  12026. } else if (this.fileType === 2) {
  12027. typesql = 5;
  12028. } else if (this.fileType === 3) {
  12029. typesql = 12;
  12030. }
  12031. if (!this.studyJuri[0].cover[0].url) {
  12032. this.$message.error("请上传文件");
  12033. return;
  12034. }
  12035. let params = [
  12036. {
  12037. uid: this.userid,
  12038. cid: this.id,
  12039. stage: this.courseType,
  12040. task: i,
  12041. tool: this.toolindex,
  12042. content: this.studyJuri[0].cover[0].url,
  12043. type: typesql,
  12044. },
  12045. ];
  12046. this.ajax
  12047. .post(this.$store.state.api + "addCourseWorksR", params)
  12048. .then((res) => {
  12049. this.$message({
  12050. message: "提交成功",
  12051. type: "success",
  12052. });
  12053. this.studyJuri[0].cover = [];
  12054. this.dialogVisible = false;
  12055. this.getCourseDetail(2);
  12056. })
  12057. .catch((err) => {
  12058. this.$message.error("提交失败");
  12059. console.error(err);
  12060. });
  12061. },
  12062. addCourseWorksPl(i) {
  12063. let _files = this.plworkFile;
  12064. var c = 1;
  12065. for (var k = 0; k < _files.length; k++) {
  12066. if (!_files[k].username) {
  12067. c = 2;
  12068. }
  12069. }
  12070. if (c == 2) {
  12071. this.$message.error("请填写学生姓名");
  12072. return;
  12073. }
  12074. let params = [
  12075. {
  12076. ateacher: this.userid,
  12077. cid: this.id,
  12078. stage: this.courseType,
  12079. task: i,
  12080. tool: this.toolindex,
  12081. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12082. },
  12083. ];
  12084. this.ajax
  12085. .post(this.$store.state.api + "addCourseWorksPl", params)
  12086. .then((res) => {
  12087. this.$message({
  12088. message: "提交成功",
  12089. type: "success",
  12090. });
  12091. this.plworkFile = [];
  12092. this.dialogVisiblePl = false;
  12093. this.getCourseDetail(2);
  12094. })
  12095. .catch((err) => {
  12096. this.$message.error("提交失败");
  12097. console.error(err);
  12098. });
  12099. },
  12100. addCourseWorks2(i) {
  12101. var typesql;
  12102. if (this.fileType === 0) {
  12103. typesql = 0;
  12104. } else if (this.fileType === 1) {
  12105. typesql = 1;
  12106. } else if (this.fileType === 2) {
  12107. typesql = 3;
  12108. } else if (this.fileType === 3) {
  12109. typesql = 12;
  12110. }
  12111. if (!this.studyJuri[0].cover[0].url) {
  12112. this.$message.error("请上传文件");
  12113. return;
  12114. }
  12115. let params = [
  12116. {
  12117. uid: this.userid,
  12118. cid: this.id,
  12119. stage: this.courseType,
  12120. task: i,
  12121. tool: this.toolindex,
  12122. content: JSON.stringify({
  12123. type: typesql,
  12124. groupIndex: this.groupIndex,
  12125. url: this.studyJuri[0].cover[0].url,
  12126. }).replaceAll(/%/g, "%25"),
  12127. type: 11,
  12128. atool: 49,
  12129. text: "",
  12130. },
  12131. ];
  12132. this.ajax
  12133. .post(this.$store.state.api + "addCourseWorks5", params)
  12134. .then((res) => {
  12135. this.$message({
  12136. message: "提交成功",
  12137. type: "success",
  12138. });
  12139. this.studyJuri[0].cover = [];
  12140. this.dialogVisibleGroupWork = false;
  12141. this.getCourseDetail(2);
  12142. })
  12143. .catch((err) => {
  12144. this.$message.error("提交失败");
  12145. console.error(err);
  12146. });
  12147. },
  12148. addCourseWorksGong(i, data, tool) {
  12149. let params = [
  12150. {
  12151. uid: this.userid,
  12152. cid: this.id,
  12153. stage: this.courseType,
  12154. task: this.taskCount,
  12155. tool: i,
  12156. content: data,
  12157. type: 12,
  12158. atool: tool,
  12159. text: "",
  12160. },
  12161. ];
  12162. this.ajax
  12163. .post(this.$store.state.api + "addCourseWorks5", params)
  12164. .then((res) => {
  12165. this.$message({
  12166. message: "提交成功",
  12167. type: "success",
  12168. });
  12169. this.studyJuri[0].cover = [];
  12170. this.selectSWorks();
  12171. this.selectStudent();
  12172. })
  12173. .catch((err) => {
  12174. this.$message.error("提交失败");
  12175. console.error(err);
  12176. });
  12177. },
  12178. addCourseWorksGongTeacher(i, data, tool) {
  12179. let params = [
  12180. {
  12181. uid: this.sStudent.userid,
  12182. cid: this.id,
  12183. stage: this.courseType,
  12184. task: this.taskCount,
  12185. tool: i,
  12186. content: data,
  12187. type: 12,
  12188. atool: tool,
  12189. text: "",
  12190. },
  12191. ];
  12192. this.ajax
  12193. .post(this.$store.state.api + "addCourseWorks5", params)
  12194. .then((res) => {
  12195. this.$message({
  12196. message: "提交成功",
  12197. type: "success",
  12198. });
  12199. this.studyJuri[0].cover = [];
  12200. this.dialogVisibleWorks = false;
  12201. this.selectSWorks();
  12202. this.selectStudent();
  12203. })
  12204. .catch((err) => {
  12205. this.$message.error("提交失败");
  12206. console.error(err);
  12207. });
  12208. },
  12209. addCourseWorksGongPl(i, data, tool, type) {
  12210. let params = [
  12211. {
  12212. uid: this.sStudent.userid,
  12213. cid: this.id,
  12214. stage: this.courseType,
  12215. task: this.taskCount,
  12216. tool: i,
  12217. content: data,
  12218. type: type,
  12219. atool: tool,
  12220. text: "",
  12221. },
  12222. ];
  12223. this.ajax
  12224. .post(this.$store.state.api + "addCourseWorks5", params)
  12225. .then((res) => {
  12226. this.$message({
  12227. message: "提交成功",
  12228. type: "success",
  12229. });
  12230. this.studyJuri[0].cover = [];
  12231. this.dialogVisibleWorks = false;
  12232. this.selectSWorks();
  12233. this.selectStudent();
  12234. })
  12235. .catch((err) => {
  12236. this.$message.error("提交失败");
  12237. console.error(err);
  12238. });
  12239. },
  12240. addCourseWorksTeacher(i) {
  12241. var typesql;
  12242. if (this.sTool == 32) {
  12243. this.addCourseWorksGongTeacher(
  12244. this.toolindex,
  12245. this.studyJuri[0].cover[0].url,
  12246. this.sTool
  12247. );
  12248. return;
  12249. }
  12250. if (this.fileType === 0) {
  12251. typesql = 1;
  12252. } else if (this.fileType === 1) {
  12253. typesql = 4;
  12254. } else if (this.fileType === 2) {
  12255. typesql = 5;
  12256. } else if (this.fileType === 3) {
  12257. typesql = 12;
  12258. }
  12259. if (this.sTool == 50) {
  12260. this.addCourseWorksGongPl(
  12261. this.toolindex,
  12262. this.studyJuri[0].cover[0].url,
  12263. this.sTool,
  12264. typesql
  12265. );
  12266. return;
  12267. }
  12268. if (!this.studyJuri[0].cover[0].url) {
  12269. this.$message.error("请上传文件");
  12270. return;
  12271. }
  12272. let params = [
  12273. {
  12274. uid: this.sStudent.userid,
  12275. cid: this.id,
  12276. stage: this.courseType,
  12277. task: i,
  12278. tool: this.toolindex,
  12279. content: this.studyJuri[0].cover[0].url,
  12280. type: typesql,
  12281. ateacher: this.userid,
  12282. },
  12283. ];
  12284. this.ajax
  12285. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12286. .then((res) => {
  12287. this.$message({
  12288. message: "提交成功",
  12289. type: "success",
  12290. });
  12291. this.studyJuri[0].cover = [];
  12292. this.dialogVisibleWorks = false;
  12293. this.getCourseDetail(2);
  12294. })
  12295. .catch((err) => {
  12296. this.$message.error("提交失败");
  12297. console.error(err);
  12298. });
  12299. },
  12300. selectUploadStudent(type) {
  12301. const loading = this.$loading.service({
  12302. background: "rgba(255, 255, 255, 0.7)",
  12303. target: document.body,
  12304. });
  12305. let params = {
  12306. cid: this.uploadCid,
  12307. oid: this.oid,
  12308. cn: "",
  12309. };
  12310. this.ajax
  12311. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12312. .then((res) => {
  12313. loading.close();
  12314. var studentK = [];
  12315. if (this.isWorksS[this.toolindex].length > 0) {
  12316. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12317. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12318. }
  12319. studentK = studentK.join(",");
  12320. }
  12321. this.uploadStudentJuri = res.data[0].filter((el) => {
  12322. return studentK.indexOf(el.userid) == -1;
  12323. });
  12324. if (this.worksSName && this.worksSid) {
  12325. this.uploadStudentJuri.push({
  12326. userid: this.worksSid,
  12327. name: this.worksSName,
  12328. });
  12329. }
  12330. if (type == 1) {
  12331. this.plworkFile = [];
  12332. this.dialogVisibleSname = true;
  12333. } else if (type == 2) {
  12334. this.dialogVisiblePl = true;
  12335. }
  12336. })
  12337. .catch((err) => {
  12338. loading.close();
  12339. console.error(err);
  12340. });
  12341. },
  12342. selectPickStudent() {
  12343. const loading = this.$loading.service({
  12344. background: "rgba(255, 255, 255, 0.7)",
  12345. target: document.body,
  12346. });
  12347. let params = {
  12348. cid: this.uploadCid,
  12349. oid: this.oid,
  12350. cn: "",
  12351. };
  12352. this.ajax
  12353. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12354. .then((res) => {
  12355. loading.close();
  12356. this.uploadStudentJuri = res.data[0];
  12357. this.dialogVisiblePickPeople = true;
  12358. })
  12359. .catch((err) => {
  12360. loading.close();
  12361. console.error(err);
  12362. });
  12363. },
  12364. arrayToArray(arrayo, arrayt) {
  12365. let array1 = arrayo;
  12366. let array2 = arrayt;
  12367. let commonElements = [];
  12368. for (let i = 0; i < array1.length; i++) {
  12369. for (let j = 0; j < array2.length; j++) {
  12370. if (array1[i] === array2[j]) {
  12371. commonElements.push(array1[i]);
  12372. }
  12373. }
  12374. }
  12375. return commonElements;
  12376. },
  12377. selectWorksStudent() {
  12378. let params = {
  12379. oid: this.oid,
  12380. cid: this.courseDetail.juri,
  12381. };
  12382. this.ajax
  12383. .get(this.$store.state.api + "selectWorksStudent", params)
  12384. .then((res) => {
  12385. var a = res.data[0];
  12386. for (var i = 0; i < this.isWorksS.length; i++) {
  12387. this.noWorksS[i] = [];
  12388. var studentK = [];
  12389. if (this.isWorksS[i].length > 0) {
  12390. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12391. studentK.push(this.isWorksS[i][z].uid);
  12392. }
  12393. studentK = studentK.join(",");
  12394. for (var j = 0; j < a.length; j++) {
  12395. if (studentK.indexOf(a[j].userid) == -1) {
  12396. if (this.tcid) {
  12397. // a[j].classid.indexOf(this.tcid) != -1
  12398. if (
  12399. this.arrayToArray(
  12400. a[j].classid.split(","),
  12401. this.tcid.split(",")
  12402. ).length
  12403. ) {
  12404. this.noWorksS[i].push({
  12405. student: a[j].name,
  12406. userid: a[j].userid,
  12407. });
  12408. }
  12409. } else {
  12410. this.noWorksS[i].push({
  12411. student: a[j].name,
  12412. userid: a[j].userid,
  12413. });
  12414. }
  12415. }
  12416. }
  12417. } else {
  12418. for (var k = 0; k < a.length; k++) {
  12419. if (this.tcid) {
  12420. if (
  12421. this.arrayToArray(
  12422. a[k].classid.split(","),
  12423. this.tcid.split(",")
  12424. ).length
  12425. ) {
  12426. this.noWorksS[i].push({
  12427. student: a[k].name,
  12428. userid: a[k].userid,
  12429. });
  12430. }
  12431. } else {
  12432. this.noWorksS[i].push({
  12433. student: a[k].name,
  12434. userid: a[k].userid,
  12435. });
  12436. }
  12437. }
  12438. }
  12439. }
  12440. this.$forceUpdate();
  12441. if (
  12442. Object.keys(this.commentDetail).length &&
  12443. Object.keys(this.commentIndexJson).length &&
  12444. !this.dialogVisibleScore
  12445. ) {
  12446. let a = 1;
  12447. let c = this.commentIndexJson;
  12448. if (
  12449. this.commentIndexJson.gindex ||
  12450. this.commentIndexJson.gindex === 0
  12451. ) {
  12452. for (
  12453. var i = 0;
  12454. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12455. i++
  12456. ) {
  12457. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12458. groupA: for (var k = 0; k < _el.length; k++) {
  12459. let el = _el[k];
  12460. if (el.wid == this.commentDetail.wid) {
  12461. a = 2;
  12462. this.commentOther(
  12463. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12464. this.commentIndexJson.toolIndex,
  12465. k,
  12466. this.commentIndexJson.gindex
  12467. );
  12468. break groupA;
  12469. }
  12470. }
  12471. }
  12472. if (a === 1) {
  12473. this.commentDetail = [];
  12474. this.commentIndexJson = {};
  12475. this.commentDialogVisible = false;
  12476. this.$message("此作业已被删除");
  12477. }
  12478. } else {
  12479. if (this.isGroup && this.commentIndexJson.gid) {
  12480. groupA: for (
  12481. var i = 0;
  12482. i < this.courseGroup.group.length;
  12483. i++
  12484. ) {
  12485. let _group = this.courseGroup.group[i];
  12486. if (_group.id == this.commentIndexJson.gid) {
  12487. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12488. for (var k = 0; k < _el2.length; k++) {
  12489. let el2 = _el2[k];
  12490. if (el2.wid == this.commentDetail.wid) {
  12491. a = 2;
  12492. this.commentOther(
  12493. _el2[k],
  12494. this.commentIndexJson.toolIndex,
  12495. k,
  12496. null,
  12497. this.commentIndexJson.gid
  12498. );
  12499. break groupA;
  12500. }
  12501. }
  12502. }
  12503. }
  12504. }
  12505. if (a == 1) {
  12506. for (
  12507. var i = 0;
  12508. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12509. i++
  12510. ) {
  12511. let el =
  12512. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12513. if (el.wid == this.commentDetail.wid) {
  12514. a = 2;
  12515. this.commentOther(
  12516. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12517. this.commentIndexJson.toolIndex,
  12518. i
  12519. );
  12520. break;
  12521. }
  12522. }
  12523. }
  12524. if (a === 1) {
  12525. this.commentDetail = [];
  12526. this.commentIndexJson = {};
  12527. this.commentDialogVisible = false;
  12528. this.$message("此作业已被删除");
  12529. }
  12530. }
  12531. }
  12532. })
  12533. .catch((err) => {
  12534. console.error(err);
  12535. });
  12536. },
  12537. selectStudent() {
  12538. //学生查看自己作业
  12539. let params = {
  12540. uid: this.userid,
  12541. cid: this.id,
  12542. s: this.courseType,
  12543. t: this.taskCount,
  12544. };
  12545. this.ajax
  12546. .get(this.$store.state.api + "selectStudentWorks", params)
  12547. .then((res) => {
  12548. var a =
  12549. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12550. this.taskCount
  12551. ].toolChoose;
  12552. var b = res.data[0];
  12553. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12554. var y = [
  12555. "AVI",
  12556. "NAVI",
  12557. "MPEG",
  12558. "ASF",
  12559. "MOV",
  12560. "WMV",
  12561. "3GP",
  12562. "RM",
  12563. "RMVB",
  12564. "FLV",
  12565. "F4V",
  12566. "H.264",
  12567. "H.265",
  12568. "REAL VIDEO",
  12569. "MKV",
  12570. "WebM",
  12571. "HDDVD",
  12572. "MP4",
  12573. "MPG",
  12574. "M4V",
  12575. "MGV",
  12576. "OGV",
  12577. "QTM",
  12578. "STR",
  12579. "AMC",
  12580. "DVX",
  12581. "EVO",
  12582. "DAT",
  12583. "OGG",
  12584. "OGM",
  12585. ];
  12586. for (var i = 0; i < a.length; i++) {
  12587. this.workStudent[i] = [];
  12588. for (var j = 0; j < b.length; j++) {
  12589. if (i == b[j].tool) {
  12590. if (
  12591. (b[j].type == 1 ||
  12592. b[j].type == 4 ||
  12593. b[j].type == 5 ||
  12594. b[j].type == 6 ||
  12595. b[j].type == 12 ||
  12596. b[j].type == 7) &&
  12597. a[i].tool[0] != 15 &&
  12598. a[i].tool[0] != 4 &&
  12599. a[i].tool[0] != 45 &&
  12600. a[i].tool[0] != 50 &&
  12601. a[i].tool[0] != 32 &&
  12602. a[i].tool[0] != 57 &&
  12603. a[i].tool[0] != 52
  12604. ) {
  12605. if (
  12606. c.indexOf(
  12607. b[j].content
  12608. .split(".")
  12609. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  12610. ) != -1 &&
  12611. a[i].tool[0] == 16 &&
  12612. b[j].atool != 50
  12613. ) {
  12614. this.workStudent[i].push({
  12615. works: b[j].content,
  12616. sName: b[j].name,
  12617. score: b[j].score,
  12618. img: b[j].img,
  12619. type: 1,
  12620. time: b[j].time,
  12621. userid: b[j].userid,
  12622. wid: b[j].id,
  12623. });
  12624. } else if (
  12625. y.indexOf(
  12626. b[j].content
  12627. .split(".")
  12628. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  12629. ) != -1 &&
  12630. a[i].tool[0] == 16 &&
  12631. b[j].atool != 50
  12632. ) {
  12633. this.workStudent[i].push({
  12634. userid: b[j].userid,
  12635. wid: b[j].id,
  12636. works: b[j].content,
  12637. sName: b[j].name,
  12638. score: b[j].score,
  12639. img: b[j].img,
  12640. type: 3,
  12641. time: b[j].time,
  12642. });
  12643. } else if (b[j].type == 6 && b[j].atool != 50) {
  12644. this.workStudent[i].push({
  12645. userid: b[j].userid,
  12646. wid: b[j].id,
  12647. works: b[j].content,
  12648. sName: b[j].name,
  12649. score: b[j].score,
  12650. img: b[j].img,
  12651. type: 4,
  12652. time: b[j].time,
  12653. });
  12654. } else if (b[j].type == 7 && b[j].atool != 50) {
  12655. this.workStudent[i].push({
  12656. userid: b[j].userid,
  12657. wid: b[j].id,
  12658. works: b[j].content,
  12659. sName: b[j].name,
  12660. score: b[j].score,
  12661. img: b[j].img,
  12662. type: 5,
  12663. time: b[j].time,
  12664. });
  12665. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  12666. this.workStudent[i].push({
  12667. works: b[j].content,
  12668. sName: b[j].name,
  12669. score: b[j].score,
  12670. img: b[j].img,
  12671. type: 12,
  12672. time: b[j].time,
  12673. userid: b[j].userid,
  12674. wid: b[j].id,
  12675. });
  12676. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  12677. this.workStudent[i].push({
  12678. works: b[j].content,
  12679. sName: b[j].name,
  12680. score: b[j].score,
  12681. img: b[j].img,
  12682. type: 0,
  12683. time: b[j].time,
  12684. userid: b[j].userid,
  12685. wid: b[j].id,
  12686. });
  12687. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  12688. this.workStudent[i].push({
  12689. works: b[j].content,
  12690. sName: b[j].name,
  12691. score: b[j].score,
  12692. img: b[j].img,
  12693. type: 0,
  12694. time: b[j].time,
  12695. userid: b[j].userid,
  12696. wid: b[j].id,
  12697. });
  12698. }
  12699. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  12700. this.workStudent[i].push({
  12701. works: b[j].content,
  12702. sName: b[j].name,
  12703. score: b[j].score,
  12704. img: b[j].img,
  12705. type: 2,
  12706. time: b[j].time,
  12707. userid: b[j].userid,
  12708. wid: b[j].id,
  12709. });
  12710. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  12711. //问卷
  12712. this.workStudent[i].push({
  12713. works: b[j].content,
  12714. sName: b[j].name,
  12715. score: b[j].score,
  12716. img: b[j].img,
  12717. type: 2,
  12718. time: b[j].time,
  12719. userid: b[j].userid,
  12720. wid: b[j].id,
  12721. });
  12722. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  12723. //选择题
  12724. this.workStudent[i].push({
  12725. works: b[j].content,
  12726. sName: b[j].name,
  12727. score: b[j].score,
  12728. img: b[j].img,
  12729. type: 8,
  12730. time: b[j].time,
  12731. userid: b[j].userid,
  12732. wid: b[j].id,
  12733. });
  12734. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  12735. //选择题
  12736. this.workStudent[i].push({
  12737. works: b[j].content,
  12738. sName: b[j].name,
  12739. score: b[j].score,
  12740. img: b[j].img,
  12741. type: 9,
  12742. time: b[j].time,
  12743. userid: b[j].userid,
  12744. wid: b[j].id,
  12745. });
  12746. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  12747. //选择题
  12748. this.workStudent[i].push({
  12749. works: b[j].content,
  12750. sName: b[j].name,
  12751. score: b[j].score,
  12752. img: b[j].img,
  12753. type: 10,
  12754. time: b[j].time,
  12755. userid: b[j].userid,
  12756. wid: b[j].id,
  12757. });
  12758. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  12759. //选择题
  12760. this.workStudent[i].push({
  12761. works: b[j].content,
  12762. sName: b[j].name,
  12763. score: b[j].score,
  12764. img: b[j].img,
  12765. type: 13,
  12766. time: b[j].time,
  12767. userid: b[j].userid,
  12768. wid: b[j].id,
  12769. });
  12770. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  12771. //选择题
  12772. this.workStudent[i].push({
  12773. works: b[j].content,
  12774. sName: b[j].name,
  12775. score: b[j].score,
  12776. img: b[j].img,
  12777. type: 12,
  12778. time: b[j].time,
  12779. userid: b[j].userid,
  12780. wid: b[j].id,
  12781. });
  12782. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  12783. //选择题
  12784. this.workStudent[i].push({
  12785. works: b[j].content,
  12786. sName: b[j].name,
  12787. score: b[j].score,
  12788. img: b[j].img,
  12789. type: 12,
  12790. time: b[j].time,
  12791. userid: b[j].userid,
  12792. wid: b[j].id,
  12793. });
  12794. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  12795. //选择题
  12796. this.workStudent[i].push({
  12797. works: b[j].content,
  12798. sName: b[j].name,
  12799. score: b[j].score,
  12800. img: b[j].img,
  12801. type: 15,
  12802. time: b[j].time,
  12803. userid: b[j].userid,
  12804. wid: b[j].id,
  12805. });
  12806. }
  12807. }
  12808. }
  12809. }
  12810. })
  12811. .catch((err) => {
  12812. console.error(err);
  12813. });
  12814. },
  12815. openVideo(w) {
  12816. this.videoDetail = {};
  12817. this.playerOptions1.sources[0].src = w.works;
  12818. this.videoDetail = this.playerOptions1;
  12819. this.videoVisible = true;
  12820. },
  12821. isLikes(wid, uid, t, c, isLikes) {
  12822. if (isLikes == false) {
  12823. let params = [
  12824. {
  12825. wid: wid,
  12826. lid: uid,
  12827. t: t,
  12828. c: c,
  12829. },
  12830. ];
  12831. this.ajax
  12832. .post(this.$store.state.api + "insertComment", params)
  12833. .then((res) => {
  12834. this.$message({
  12835. message: "点赞成功",
  12836. type: "success",
  12837. });
  12838. this.selectSWorks();
  12839. this.selectStudent();
  12840. })
  12841. .catch((err) => {
  12842. this.$message.error("点赞失败");
  12843. console.error(err);
  12844. });
  12845. } else {
  12846. let params = {
  12847. wid: wid,
  12848. lid: uid,
  12849. type: t,
  12850. };
  12851. this.ajax
  12852. .get(this.$store.state.api + "deleteComment", params)
  12853. .then((res) => {
  12854. this.$message({
  12855. message: "取消点赞成功",
  12856. type: "success",
  12857. });
  12858. this.selectSWorks();
  12859. this.selectStudent();
  12860. })
  12861. .catch((err) => {
  12862. console.error(err);
  12863. });
  12864. }
  12865. },
  12866. deleteComment(wid) {
  12867. this.$confirm("确定删除此评论吗?", "提示", {
  12868. confirmButtonText: "确定",
  12869. cancelButtonText: "取消",
  12870. type: "warning",
  12871. })
  12872. .then(() => {
  12873. let params = {
  12874. id: wid,
  12875. };
  12876. this.ajax
  12877. .get(this.$store.state.api + "deleteComment2", params)
  12878. .then((res) => {
  12879. this.$message({
  12880. message: "删除评论成功",
  12881. type: "success",
  12882. });
  12883. this.selectSWorks();
  12884. this.selectStudent();
  12885. })
  12886. .catch((err) => {
  12887. console.error(err);
  12888. });
  12889. })
  12890. .catch(() => {});
  12891. },
  12892. commentOther(w, toolIndex, wIndex, gindex, gid) {
  12893. this.commentIndexJson = {
  12894. toolIndex: toolIndex,
  12895. wIndex: wIndex,
  12896. gindex: gindex,
  12897. gid: gid,
  12898. };
  12899. this.commentDetail = [];
  12900. this.commentDialogVisible = true;
  12901. this.commentDetail = w;
  12902. if (w.works && w.type == 1) {
  12903. this.pptImgUrl = "";
  12904. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12905. if (
  12906. a.indexOf(
  12907. w.works
  12908. .split(".")
  12909. [w.works.split(".").length - 1].toLocaleUpperCase()
  12910. ) != -1
  12911. ) {
  12912. this.pptImgUrl =
  12913. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12914. this.showPDF = false;
  12915. } else if (
  12916. w.works
  12917. .split(".")
  12918. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12919. ) {
  12920. this.pptImgUrl = w.works;
  12921. this.showPDF = true;
  12922. }
  12923. } else if (w.works && w.type == 3) {
  12924. this.videoDetail = {};
  12925. this.playerOptions1.sources[0].src = w.works;
  12926. this.videoDetail = this.playerOptions1;
  12927. // this.videoVisible = true;
  12928. } else if (w.works && w.type == 4) {
  12929. this.eScore = JSON.parse(w.works);
  12930. this.rateJson =
  12931. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12932. this.taskCount
  12933. ].toolChoose[toolIndex].rateJson;
  12934. } else if (w.works && w.type == 10) {
  12935. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  12936. } else if (w.works && w.type == 13) {
  12937. this.wordJson =
  12938. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12939. this.taskCount
  12940. ].toolChoose[toolIndex].wordJson;
  12941. }
  12942. },
  12943. openScore(w) {
  12944. this.wScore = 0;
  12945. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  12946. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  12947. this.commentDetail = [];
  12948. this.dialogVisibleScore = true;
  12949. this.commentDetail = w;
  12950. if (w.works && w.type == 1) {
  12951. this.pptImgUrl = "";
  12952. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12953. if (
  12954. a.indexOf(
  12955. w.works
  12956. .split(".")
  12957. [w.works.split(".").length - 1].toLocaleUpperCase()
  12958. ) != -1
  12959. ) {
  12960. this.pptImgUrl =
  12961. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12962. this.showPDF = false;
  12963. } else if (
  12964. w.works
  12965. .split(".")
  12966. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12967. ) {
  12968. this.pptImgUrl = w.works;
  12969. this.showPDF = true;
  12970. }
  12971. } else if (w.works && w.type == 3) {
  12972. this.videoDetail = {};
  12973. this.playerOptions1.sources[0].src = w.works;
  12974. this.videoDetail = this.playerOptions1;
  12975. }
  12976. },
  12977. addComment(wid, uid, t) {
  12978. if (this.commentText == "") {
  12979. this.$message.error("请输入评论");
  12980. return;
  12981. }
  12982. let params2 = [
  12983. {
  12984. wid: wid,
  12985. lid: uid,
  12986. t: t,
  12987. },
  12988. ];
  12989. this.ajax
  12990. .post(this.$store.state.api + "getComment", params2)
  12991. .then((res) => {
  12992. if (res.data[0].length > 0) {
  12993. this.$message.error("一个作业只能评论一条");
  12994. } else {
  12995. let params = [
  12996. {
  12997. wid: wid,
  12998. lid: uid,
  12999. t: t,
  13000. c: this.commentText,
  13001. },
  13002. ];
  13003. this.ajax
  13004. .post(this.$store.state.api + "insertComment", params)
  13005. .then((res) => {
  13006. this.$message({
  13007. message: "评论成功",
  13008. type: "success",
  13009. });
  13010. this.commentText = "";
  13011. this.selectSWorks();
  13012. this.selectStudent();
  13013. })
  13014. .catch((err) => {
  13015. this.$message.error("评论失败");
  13016. console.error(err);
  13017. });
  13018. }
  13019. })
  13020. .catch((err) => {
  13021. // this.$message.error("评论失败");
  13022. console.error(err);
  13023. });
  13024. },
  13025. scoreWork(wid) {
  13026. if (this.wScore == 0) {
  13027. this.$message.error("请评分");
  13028. return;
  13029. }
  13030. let params = [
  13031. {
  13032. wid: wid,
  13033. score: JSON.stringify({
  13034. wScore: this.wScore,
  13035. detail: this.scoreDetail,
  13036. }),
  13037. },
  13038. ];
  13039. this.ajax
  13040. .post(this.$store.state.api + "scoreWork", params)
  13041. .then((res) => {
  13042. this.$message({
  13043. message: "评分成功",
  13044. type: "success",
  13045. });
  13046. this.wScore = 0;
  13047. this.scoreDetail = "";
  13048. this.dialogVisibleScore = false;
  13049. this.selectSWorks();
  13050. this.selectStudent();
  13051. })
  13052. .catch((err) => {
  13053. this.$message.error("评分失败");
  13054. console.error(err);
  13055. });
  13056. },
  13057. openXz(w, i) {
  13058. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13059. .taskJson[this.taskCount].toolChoose[i].selectJson
  13060. ? JSON.parse(
  13061. JSON.stringify(
  13062. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13063. this.taskCount
  13064. ].toolChoose[i].selectJson
  13065. )
  13066. )
  13067. : { url: "", select: [], answer: [] };
  13068. var a = w.works.split(",");
  13069. for (var k = 0; k < a.length; k++) {
  13070. a[k] = parseInt(a[k]);
  13071. }
  13072. this.selectAnswer = { answer: a, stu: w.sName };
  13073. this.isSelect = true;
  13074. this.dialogVisibleSelect = true;
  13075. },
  13076. openSen(w, i) {
  13077. this.sentenceList1 = JSON.parse(w.works);
  13078. this.sentenceList1.stuName = w.sName;
  13079. this.dialogVisibleSentence1 = true;
  13080. },
  13081. openPj(w, toolindex) {
  13082. this.isStar = true;
  13083. this.eScore = JSON.parse(w);
  13084. this.rateJson =
  13085. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13086. this.taskCount
  13087. ].toolChoose[toolindex].rateJson;
  13088. this.studentEvalDialogVisible = true;
  13089. },
  13090. deleteWorks(id) {
  13091. this.$confirm("确定删除此作业吗?", "提示", {
  13092. confirmButtonText: "确定",
  13093. cancelButtonText: "取消",
  13094. type: "warning",
  13095. })
  13096. .then(() => {
  13097. let params = [
  13098. {
  13099. id: id,
  13100. },
  13101. ];
  13102. this.ajax
  13103. .post(this.$store.state.api + "deleteCourseWork", params)
  13104. .then((res) => {
  13105. this.$message({
  13106. message: "删除成功",
  13107. type: "success",
  13108. });
  13109. this.selectStudent();
  13110. this.selectSWorks();
  13111. this.selectSLook();
  13112. })
  13113. .catch((err) => {
  13114. this.$message.error("网络异常");
  13115. console.error(err);
  13116. });
  13117. })
  13118. .catch(() => {});
  13119. },
  13120. selectSWorks(gindex) {
  13121. //教师查看全部作业
  13122. let params = {
  13123. cid: this.id,
  13124. s: this.courseType,
  13125. t: this.taskCount,
  13126. };
  13127. this.ajax
  13128. .get(this.$store.state.api + "selectSWorks", params)
  13129. .then((res) => {
  13130. var a =
  13131. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13132. this.taskCount
  13133. ].toolChoose;
  13134. var b = res.data[0];
  13135. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13136. var y = [
  13137. "AVI",
  13138. "NAVI",
  13139. "MPEG",
  13140. "ASF",
  13141. "MOV",
  13142. "WMV",
  13143. "3GP",
  13144. "RM",
  13145. "RMVB",
  13146. "FLV",
  13147. "F4V",
  13148. "H.264",
  13149. "H.265",
  13150. "REAL VIDEO",
  13151. "MKV",
  13152. "WebM",
  13153. "HDDVD",
  13154. "MP4",
  13155. "MPG",
  13156. "M4V",
  13157. "MGV",
  13158. "OGV",
  13159. "QTM",
  13160. "STR",
  13161. "AMC",
  13162. "DVX",
  13163. "EVO",
  13164. "DAT",
  13165. "OGG",
  13166. "OGM",
  13167. ];
  13168. var d = res.data[1];
  13169. var e = res.data[2];
  13170. var f = res.data[3];
  13171. let _worksStudent = [];
  13172. var _worksStudent2 = [];
  13173. for (var i = 0; i < a.length; i++) {
  13174. _worksStudent[i] = [];
  13175. _worksStudent2[i] = [];
  13176. if (
  13177. !this.isCloseList[i] ||
  13178. this.isCloseList[i].isClose == undefined
  13179. ) {
  13180. this.isCloseList[i] = { isClose: 0 };
  13181. }
  13182. this.groupStudent[i] = [];
  13183. this.groupStudentUid[i] = [];
  13184. if (this.isGroup) {
  13185. for (
  13186. var groupI = 0;
  13187. groupI < this.courseGroup.group.length;
  13188. groupI++
  13189. ) {
  13190. this.courseGroup.group[groupI].works[i] = [];
  13191. }
  13192. }
  13193. this.isWorksS[i] = [];
  13194. this.checkJson[i] = [];
  13195. if (a[i].tool[0] == 49) {
  13196. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13197. this.groupStudent[i][gA] = [];
  13198. this.groupStudentUid[i][gA] = [];
  13199. _worksStudent[i][gA] = [];
  13200. _worksStudent2[i][gA] = [];
  13201. this.isCloseList[i][gA] = [];
  13202. for (var g = 0; g < f.length; g++) {
  13203. if (
  13204. f[g].ttype == 2 &&
  13205. this.tcid &&
  13206. this.arrayToArray(
  13207. f[g].classid.split(","),
  13208. this.tcid.split(",")
  13209. ).length == 0
  13210. ) {
  13211. continue;
  13212. }
  13213. if (gA == f[g].group && f[g].tool == i) {
  13214. this.groupStudent[i][gA].push(f[g]);
  13215. this.groupStudentUid[i][gA].push(f[g].userid);
  13216. }
  13217. }
  13218. }
  13219. this.$forceUpdate();
  13220. }
  13221. for (var j = 0; j < b.length; j++) {
  13222. if (
  13223. b[j].ttype == 2 &&
  13224. this.tcid &&
  13225. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13226. .length == 0
  13227. ) {
  13228. continue;
  13229. }
  13230. var likesCount = 0;
  13231. var commentCount = 0;
  13232. var isLikes = false;
  13233. var commentJson = [];
  13234. var data = b[j];
  13235. if (i == b[j].tool) {
  13236. if (data.type == 2 && a[i].tool[0] == 4) {
  13237. // if(JSON.parse(data.content)[0].anwer){
  13238. var checkL =
  13239. JSON.parse(data.content)[0].anwer instanceof Array
  13240. ? JSON.parse(data.content)[0].anwer
  13241. : JSON.parse(data.content)[0].anwer.split(",");
  13242. for (var z = 0; z < checkL.length; z++) {
  13243. if (!this.checkJson[i][z]) {
  13244. this.checkJson[i].push({
  13245. checkCount: [],
  13246. checkPerson: [],
  13247. rightPerson: [],
  13248. });
  13249. }
  13250. if (!this.checkJson[i][z].checkCount.length) {
  13251. this.checkJson[i][z].checkCount = [];
  13252. let _askItemCount = JSON.parse(data.content)[0].askJson
  13253. .askJson[z].askItem;
  13254. for (var aic = 0; aic < _askItemCount; aic++) {
  13255. this.checkJson[i][z].checkCount.push(0);
  13256. }
  13257. }
  13258. if (checkL[z] instanceof Array) {
  13259. if (
  13260. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13261. checkL[z].sort().join(",")
  13262. ) {
  13263. this.checkJson[i][z].rightPerson.push(data.name);
  13264. }
  13265. for (var q = 0; q < checkL[z].length; q++) {
  13266. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13267. ? this.checkJson[i][z].checkPerson[
  13268. parseInt(checkL[z][q])
  13269. ].push(data.name)
  13270. : (this.checkJson[i][z].checkPerson[
  13271. parseInt(checkL[z][q])
  13272. ] = [data.name]);
  13273. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13274. ? this.checkJson[i][z].checkCount[
  13275. parseInt(checkL[z][q])
  13276. ]++
  13277. : (this.checkJson[i][z].checkCount[
  13278. parseInt(checkL[z][q])
  13279. ] = 1);
  13280. }
  13281. } else {
  13282. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13283. this.checkJson[i][z].rightPerson.push(data.name);
  13284. }
  13285. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13286. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13287. ? this.checkJson[i][z].checkPerson[
  13288. parseInt(checkL[z])
  13289. ].push(data.name)
  13290. : (this.checkJson[i][z].checkPerson[
  13291. parseInt(checkL[z])
  13292. ] = [data.name]);
  13293. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13294. ? this.checkJson[i][z].checkCount[
  13295. parseInt(checkL[z])
  13296. ]++
  13297. : (this.checkJson[i][z].checkCount[
  13298. parseInt(checkL[z])
  13299. ] = 1);
  13300. }
  13301. }
  13302. }
  13303. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13304. var checkL = JSON.parse(data.content)[0].anwer;
  13305. for (var z = 0; z < checkL.length; z++) {
  13306. if (!this.checkJson[i][z]) {
  13307. this.checkJson[i].push({
  13308. checkCount: [],
  13309. checkPerson: [],
  13310. rightPerson: [],
  13311. });
  13312. }
  13313. if (!this.checkJson[i][z].checkCount.length) {
  13314. this.checkJson[i][z].checkCount = [];
  13315. let _askItemCount = JSON.parse(data.content)[0].testJson
  13316. .testJson[z].testItem;
  13317. for (var aic = 0; aic < _askItemCount; aic++) {
  13318. this.checkJson[i][z].checkCount.push(0);
  13319. }
  13320. }
  13321. if (checkL[z] instanceof Array) {
  13322. if (
  13323. JSON.parse(data.content)[0]
  13324. .testJson.testJson[z].answer.sort()
  13325. .join(",") == checkL[z].sort().join(",")
  13326. ) {
  13327. this.checkJson[i][z].rightPerson.push(data.name);
  13328. }
  13329. for (var q = 0; q < checkL[z].length; q++) {
  13330. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13331. ? this.checkJson[i][z].checkPerson[
  13332. parseInt(checkL[z][q])
  13333. ].push(data.name)
  13334. : (this.checkJson[i][z].checkPerson[
  13335. parseInt(checkL[z][q])
  13336. ] = [data.name]);
  13337. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13338. ? this.checkJson[i][z].checkCount[
  13339. parseInt(checkL[z][q])
  13340. ]++
  13341. : (this.checkJson[i][z].checkCount[
  13342. parseInt(checkL[z][q])
  13343. ] = 1);
  13344. }
  13345. } else {
  13346. if (
  13347. JSON.parse(data.content)[0].testJson.testJson[z]
  13348. .answer == checkL[z]
  13349. ) {
  13350. this.checkJson[i][z].rightPerson.push(data.name);
  13351. }
  13352. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13353. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13354. ? this.checkJson[i][z].checkPerson[
  13355. parseInt(checkL[z])
  13356. ].push(data.name)
  13357. : (this.checkJson[i][z].checkPerson[
  13358. parseInt(checkL[z])
  13359. ] = [data.name]);
  13360. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13361. ? this.checkJson[i][z].checkCount[
  13362. parseInt(checkL[z])
  13363. ]++
  13364. : (this.checkJson[i][z].checkCount[
  13365. parseInt(checkL[z])
  13366. ] = 1);
  13367. }
  13368. }
  13369. }
  13370. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13371. var checkL = JSON.parse(data.content);
  13372. for (var z = 0; z < checkL.length; z++) {
  13373. if (!this.checkJson[i][z]) {
  13374. this.checkJson[i].push({
  13375. checkCount: [],
  13376. checkPerson: [],
  13377. rightPerson: [],
  13378. });
  13379. }
  13380. this.checkJson[i][z].checkPerson.push(data.name);
  13381. if (
  13382. checkL[z].chooseSenList.toString() ==
  13383. checkL[z].rightAnswer.toString()
  13384. ) {
  13385. this.checkJson[i][z].rightPerson.push(data.name);
  13386. }
  13387. }
  13388. }
  13389. for (var k = 0; k < d.length; k++) {
  13390. //点赞
  13391. if (d[k].workId == b[j].id) {
  13392. likesCount++;
  13393. if (d[k].likesId == this.userid) {
  13394. isLikes = true;
  13395. }
  13396. }
  13397. }
  13398. for (var l = 0; l < e.length; l++) {
  13399. //评论
  13400. if (e[l].workId == b[j].id) {
  13401. if (e[l].comment != "") {
  13402. commentCount++;
  13403. commentJson.push({
  13404. commentText: e[l].comment,
  13405. commentTime: e[l].commentTime,
  13406. commentPeople: e[l].commentPeople,
  13407. userid: e[l].userid,
  13408. wid: e[l].id,
  13409. });
  13410. }
  13411. }
  13412. }
  13413. if (
  13414. (b[j].type == 1 ||
  13415. b[j].type == 4 ||
  13416. b[j].type == 5 ||
  13417. b[j].type == 6 ||
  13418. b[j].type == 12 ||
  13419. b[j].type == 7) &&
  13420. a[i].tool[0] != 15 &&
  13421. a[i].tool[0] != 4 &&
  13422. a[i].tool[0] != 45 &&
  13423. a[i].tool[0] != 50 &&
  13424. a[i].tool[0] != 32 &&
  13425. a[i].tool[0] != 57 &&
  13426. a[i].tool[0] != 52
  13427. ) {
  13428. if (
  13429. c.indexOf(
  13430. b[j].content
  13431. .split(".")
  13432. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13433. ) != -1 &&
  13434. a[i].tool[0] == 16 &&
  13435. b[j].atool != 50
  13436. ) {
  13437. let _works = {
  13438. userid: b[j].userid,
  13439. ateacher: b[j].ateacher,
  13440. wid: b[j].id,
  13441. works: b[j].content,
  13442. sName: b[j].name,
  13443. type: 1,
  13444. time: b[j].time,
  13445. score: b[j].score,
  13446. img: b[j].img,
  13447. likesCount: likesCount,
  13448. commentCount: commentCount,
  13449. isLikes: isLikes,
  13450. commentJson: commentJson,
  13451. };
  13452. if (this.isGroup) {
  13453. let isGw = 1;
  13454. for (
  13455. var groupI = 0;
  13456. groupI < this.courseGroup.group.length;
  13457. groupI++
  13458. ) {
  13459. let gid = this.courseGroup.group[groupI].id;
  13460. if (
  13461. this.courseGroupStudentUid[gid].indexOf(
  13462. b[j].userid
  13463. ) != -1
  13464. ) {
  13465. isGw = 2;
  13466. this.courseGroup.group[groupI].works[i].push(_works);
  13467. break;
  13468. }
  13469. }
  13470. if (isGw == 1) {
  13471. _worksStudent[i].push(_works);
  13472. }
  13473. } else {
  13474. _worksStudent[i].push(_works);
  13475. }
  13476. _worksStudent2[i].push(_works);
  13477. this.isWorksS[i].push({
  13478. uid: b[j].userid,
  13479. sName: b[j].name,
  13480. });
  13481. } else if (
  13482. y.indexOf(
  13483. b[j].content
  13484. .split(".")
  13485. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13486. ) != -1 &&
  13487. a[i].tool[0] == 16 &&
  13488. b[j].atool != 50
  13489. ) {
  13490. let _works = {
  13491. userid: b[j].userid,
  13492. ateacher: b[j].ateacher,
  13493. wid: b[j].id,
  13494. works: b[j].content,
  13495. sName: b[j].name,
  13496. type: 3,
  13497. time: b[j].time,
  13498. score: b[j].score,
  13499. img: b[j].img,
  13500. likesCount: likesCount,
  13501. commentCount: commentCount,
  13502. isLikes: isLikes,
  13503. commentJson: commentJson,
  13504. };
  13505. if (this.isGroup) {
  13506. let isGw = 1;
  13507. for (
  13508. var groupI = 0;
  13509. groupI < this.courseGroup.group.length;
  13510. groupI++
  13511. ) {
  13512. let gid = this.courseGroup.group[groupI].id;
  13513. if (
  13514. this.courseGroupStudentUid[gid].indexOf(
  13515. b[j].userid
  13516. ) != -1
  13517. ) {
  13518. isGw = 2;
  13519. this.courseGroup.group[groupI].works[i].push(_works);
  13520. break;
  13521. }
  13522. }
  13523. if (isGw == 1) {
  13524. _worksStudent[i].push(_works);
  13525. }
  13526. } else {
  13527. _worksStudent[i].push(_works);
  13528. }
  13529. _worksStudent2[i].push(_works);
  13530. this.isWorksS[i].push({
  13531. uid: b[j].userid,
  13532. sName: b[j].name,
  13533. });
  13534. } else if (b[j].type == 6 && b[j].atool != 50) {
  13535. let _works = {
  13536. userid: b[j].userid,
  13537. ateacher: b[j].ateacher,
  13538. wid: b[j].id,
  13539. works: b[j].content,
  13540. sName: b[j].name,
  13541. type: 4,
  13542. time: b[j].time,
  13543. score: b[j].score,
  13544. img: b[j].img,
  13545. likesCount: likesCount,
  13546. commentCount: commentCount,
  13547. isLikes: isLikes,
  13548. commentJson: commentJson,
  13549. };
  13550. _worksStudent[i].push(_works);
  13551. _worksStudent2[i].push(_works);
  13552. this.isWorksS[i].push({
  13553. uid: b[j].userid,
  13554. sName: b[j].name,
  13555. });
  13556. } else if (b[j].type == 7 && b[j].atool != 50) {
  13557. let _work = {
  13558. userid: b[j].userid,
  13559. ateacher: b[j].ateacher,
  13560. wid: b[j].id,
  13561. works: b[j].content,
  13562. sName: b[j].name,
  13563. type: 5,
  13564. time: b[j].time,
  13565. score: b[j].score,
  13566. img: b[j].img,
  13567. likesCount: likesCount,
  13568. commentCount: commentCount,
  13569. isLikes: isLikes,
  13570. commentJson: commentJson,
  13571. };
  13572. _worksStudent[i].push(_work);
  13573. _worksStudent2[i].push(_work);
  13574. this.isWorksS[i].push({
  13575. uid: b[j].userid,
  13576. sName: b[j].name,
  13577. });
  13578. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13579. let _works = {
  13580. userid: b[j].userid,
  13581. ateacher: b[j].ateacher,
  13582. wid: b[j].id,
  13583. works: b[j].content,
  13584. sName: b[j].name,
  13585. type: 12,
  13586. time: b[j].time,
  13587. score: b[j].score,
  13588. img: b[j].img,
  13589. likesCount: likesCount,
  13590. commentCount: commentCount,
  13591. isLikes: isLikes,
  13592. commentJson: commentJson,
  13593. };
  13594. if (this.isGroup) {
  13595. let isGw = 1;
  13596. for (
  13597. var groupI = 0;
  13598. groupI < this.courseGroup.group.length;
  13599. groupI++
  13600. ) {
  13601. let gid = this.courseGroup.group[groupI].id;
  13602. if (
  13603. this.courseGroupStudentUid[gid].indexOf(
  13604. b[j].userid
  13605. ) != -1
  13606. ) {
  13607. isGw = 2;
  13608. this.courseGroup.group[groupI].works[i].push(_works);
  13609. break;
  13610. }
  13611. }
  13612. if (isGw == 1) {
  13613. _worksStudent[i].push(_works);
  13614. }
  13615. } else {
  13616. _worksStudent[i].push(_works);
  13617. }
  13618. _worksStudent2[i].push(_works);
  13619. this.isWorksS[i].push({
  13620. uid: b[j].userid,
  13621. sName: b[j].name,
  13622. });
  13623. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13624. let _works = {
  13625. userid: b[j].userid,
  13626. ateacher: b[j].ateacher,
  13627. wid: b[j].id,
  13628. works: b[j].content,
  13629. sName: b[j].name,
  13630. type: 0,
  13631. time: b[j].time,
  13632. score: b[j].score,
  13633. img: b[j].img,
  13634. likesCount: likesCount,
  13635. commentCount: commentCount,
  13636. isLikes: isLikes,
  13637. commentJson: commentJson,
  13638. };
  13639. if (this.isGroup) {
  13640. let isGw = 1;
  13641. for (
  13642. var groupI = 0;
  13643. groupI < this.courseGroup.group.length;
  13644. groupI++
  13645. ) {
  13646. let gid = this.courseGroup.group[groupI].id;
  13647. if (
  13648. this.courseGroupStudentUid[gid].indexOf(
  13649. b[j].userid
  13650. ) != -1
  13651. ) {
  13652. isGw = 2;
  13653. this.courseGroup.group[groupI].works[i].push(_works);
  13654. break;
  13655. }
  13656. }
  13657. if (isGw == 1) {
  13658. _worksStudent[i].push(_works);
  13659. }
  13660. } else {
  13661. _worksStudent[i].push(_works);
  13662. }
  13663. _worksStudent2[i].push(_works);
  13664. this.isWorksS[i].push({
  13665. uid: b[j].userid,
  13666. sName: b[j].name,
  13667. });
  13668. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13669. let _works = {
  13670. userid: b[j].userid,
  13671. ateacher: b[j].ateacher,
  13672. wid: b[j].id,
  13673. works: b[j].content,
  13674. sName: b[j].name,
  13675. type: 0,
  13676. time: b[j].time,
  13677. score: b[j].score,
  13678. img: b[j].img,
  13679. likesCount: likesCount,
  13680. commentCount: commentCount,
  13681. isLikes: isLikes,
  13682. commentJson: commentJson,
  13683. };
  13684. if (this.isGroup) {
  13685. let isGw = 1;
  13686. for (
  13687. var groupI = 0;
  13688. groupI < this.courseGroup.group.length;
  13689. groupI++
  13690. ) {
  13691. let gid = this.courseGroup.group[groupI].id;
  13692. if (
  13693. this.courseGroupStudentUid[gid].indexOf(
  13694. b[j].userid
  13695. ) != -1
  13696. ) {
  13697. isGw = 2;
  13698. this.courseGroup.group[groupI].works[i].push(_works);
  13699. break;
  13700. }
  13701. }
  13702. if (isGw == 1) {
  13703. _worksStudent[i].push(_works);
  13704. }
  13705. } else {
  13706. _worksStudent[i].push(_works);
  13707. }
  13708. _worksStudent2[i].push(_works);
  13709. this.isWorksS[i].push({
  13710. uid: b[j].userid,
  13711. sName: b[j].name,
  13712. });
  13713. }
  13714. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13715. let _works = {
  13716. userid: b[j].userid,
  13717. ateacher: b[j].ateacher,
  13718. wid: b[j].id,
  13719. works: b[j].content,
  13720. sName: b[j].name,
  13721. type: 2,
  13722. time: b[j].time,
  13723. score: b[j].score,
  13724. img: b[j].img,
  13725. likesCount: likesCount,
  13726. commentCount: commentCount,
  13727. isLikes: isLikes,
  13728. commentJson: commentJson,
  13729. };
  13730. if (this.isGroup) {
  13731. let isGw = 1;
  13732. for (
  13733. var groupI = 0;
  13734. groupI < this.courseGroup.group.length;
  13735. groupI++
  13736. ) {
  13737. let gid = this.courseGroup.group[groupI].id;
  13738. if (
  13739. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  13740. -1
  13741. ) {
  13742. isGw = 2;
  13743. this.courseGroup.group[groupI].works[i].push(_works);
  13744. break;
  13745. }
  13746. }
  13747. if (isGw == 1) {
  13748. _worksStudent[i].push(_works);
  13749. }
  13750. } else {
  13751. _worksStudent[i].push(_works);
  13752. }
  13753. _worksStudent2[i].push(_works);
  13754. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13755. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13756. //问卷
  13757. let _work = {
  13758. userid: b[j].userid,
  13759. ateacher: b[j].ateacher,
  13760. wid: b[j].id,
  13761. works: b[j].content,
  13762. sName: b[j].name,
  13763. type: 2,
  13764. time: b[j].time,
  13765. score: b[j].score,
  13766. img: b[j].img,
  13767. likesCount: likesCount,
  13768. commentCount: commentCount,
  13769. isLikes: isLikes,
  13770. commentJson: commentJson,
  13771. };
  13772. _worksStudent[i].push(_work);
  13773. _worksStudent2[i].push(_work);
  13774. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13775. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13776. //选择题
  13777. let _work = {
  13778. userid: b[j].userid,
  13779. ateacher: b[j].ateacher,
  13780. wid: b[j].id,
  13781. works: b[j].content,
  13782. sName: b[j].name,
  13783. type: 8,
  13784. time: b[j].time,
  13785. score: b[j].score,
  13786. img: b[j].img,
  13787. likesCount: likesCount,
  13788. commentCount: commentCount,
  13789. isLikes: isLikes,
  13790. commentJson: commentJson,
  13791. };
  13792. _worksStudent[i].push(_work);
  13793. _worksStudent2[i].push(_work);
  13794. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13795. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13796. //选择题
  13797. let _work = {
  13798. userid: b[j].userid,
  13799. ateacher: b[j].ateacher,
  13800. wid: b[j].id,
  13801. works: b[j].content,
  13802. sName: b[j].name,
  13803. type: 9,
  13804. time: b[j].time,
  13805. score: b[j].score,
  13806. img: b[j].img,
  13807. likesCount: likesCount,
  13808. commentCount: commentCount,
  13809. isLikes: isLikes,
  13810. commentJson: commentJson,
  13811. };
  13812. _worksStudent[i].push(_work);
  13813. _worksStudent2[i].push(_work);
  13814. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13815. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13816. //选择题
  13817. let _work = {
  13818. userid: b[j].userid,
  13819. ateacher: b[j].ateacher,
  13820. wid: b[j].id,
  13821. works: b[j].content,
  13822. sName: b[j].name,
  13823. type: 10,
  13824. time: b[j].time,
  13825. score: b[j].score,
  13826. img: b[j].img,
  13827. likesCount: likesCount,
  13828. commentCount: commentCount,
  13829. isLikes: isLikes,
  13830. commentJson: commentJson,
  13831. };
  13832. _worksStudent[i].push(_work);
  13833. _worksStudent2[i].push(_work);
  13834. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13835. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13836. //选择题
  13837. let _work = {
  13838. userid: b[j].userid,
  13839. ateacher: b[j].ateacher,
  13840. wid: b[j].id,
  13841. works: b[j].content,
  13842. sName: b[j].name,
  13843. type: 13,
  13844. time: b[j].time,
  13845. score: b[j].score,
  13846. img: b[j].img,
  13847. likesCount: likesCount,
  13848. commentCount: commentCount,
  13849. isLikes: isLikes,
  13850. commentJson: commentJson,
  13851. };
  13852. _worksStudent[i].push(_work);
  13853. _worksStudent2[i].push(_work);
  13854. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13855. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  13856. let _gindex = JSON.parse(b[j].content);
  13857. if (
  13858. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  13859. b[j].userid
  13860. ) != -1
  13861. ) {
  13862. let _work = {
  13863. userid: b[j].userid,
  13864. ateacher: b[j].ateacher,
  13865. wid: b[j].id,
  13866. works: _gindex.url,
  13867. sName: b[j].name,
  13868. type: _gindex.type,
  13869. time: b[j].time,
  13870. score: b[j].score,
  13871. img: b[j].img,
  13872. likesCount: likesCount,
  13873. commentCount: commentCount,
  13874. isLikes: isLikes,
  13875. commentJson: commentJson,
  13876. };
  13877. _worksStudent[i][_gindex.groupIndex].push(_work);
  13878. _worksStudent2[i][_gindex.groupIndex].push(_work);
  13879. }
  13880. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13881. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  13882. let _work = {
  13883. userid: b[j].userid,
  13884. ateacher: b[j].ateacher,
  13885. wid: b[j].id,
  13886. works: b[j].content,
  13887. sName: b[j].name ? b[j].name : b[j].userid,
  13888. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  13889. time: b[j].time,
  13890. score: b[j].score,
  13891. img: b[j].img,
  13892. likesCount: likesCount,
  13893. commentCount: commentCount,
  13894. isLikes: isLikes,
  13895. commentJson: commentJson,
  13896. };
  13897. _worksStudent[i].push(_work);
  13898. _worksStudent2[i].push(_work);
  13899. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13900. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  13901. let _work = {
  13902. userid: b[j].userid,
  13903. ateacher: b[j].ateacher,
  13904. wid: b[j].id,
  13905. works: b[j].content,
  13906. sName: b[j].name ? b[j].name : b[j].userid,
  13907. type: 12,
  13908. time: b[j].time,
  13909. score: b[j].score,
  13910. img: b[j].img,
  13911. likesCount: likesCount,
  13912. commentCount: commentCount,
  13913. isLikes: isLikes,
  13914. commentJson: commentJson,
  13915. };
  13916. _worksStudent[i].push(_work);
  13917. _worksStudent2[i].push(_work);
  13918. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13919. } else if (
  13920. a[i].tool[0] == 57 &&
  13921. b[j].atool == 57 &&
  13922. b[j].type == 12
  13923. ) {
  13924. let _work = {
  13925. userid: b[j].userid,
  13926. ateacher: b[j].ateacher,
  13927. wid: b[j].id,
  13928. works: b[j].content,
  13929. sName: b[j].name ? b[j].name : b[j].userid,
  13930. type: 12,
  13931. time: b[j].time,
  13932. score: b[j].score,
  13933. img: b[j].img,
  13934. likesCount: likesCount,
  13935. commentCount: commentCount,
  13936. isLikes: isLikes,
  13937. commentJson: commentJson,
  13938. };
  13939. _worksStudent[i].push(_work);
  13940. _worksStudent2[i].push(_work);
  13941. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13942. } else if (
  13943. a[i].tool[0] == 57 &&
  13944. b[j].atool == 57 &&
  13945. b[j].type == 15
  13946. ) {
  13947. let _work = {
  13948. userid: b[j].userid,
  13949. ateacher: b[j].ateacher,
  13950. wid: b[j].id,
  13951. works: b[j].content,
  13952. sName: b[j].name ? b[j].name : b[j].userid,
  13953. type: 15,
  13954. time: b[j].time,
  13955. score: b[j].score,
  13956. img: b[j].img,
  13957. likesCount: likesCount,
  13958. commentCount: commentCount,
  13959. isLikes: isLikes,
  13960. commentJson: commentJson,
  13961. };
  13962. _worksStudent[i].push(_work);
  13963. _worksStudent2[i].push(_work);
  13964. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13965. }
  13966. }
  13967. }
  13968. if (_worksStudent[i] && _worksStudent[i].length) {
  13969. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  13970. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13971. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13972. var scoreA = parseFloat(jscoreA);
  13973. var scoreB = parseFloat(jscoreB);
  13974. if (scoreA == scoreB) {
  13975. return b.likesCount - a.likesCount;
  13976. }
  13977. return scoreB - scoreA;
  13978. });
  13979. if (this.isGroup) {
  13980. for (
  13981. var groupI = 0;
  13982. groupI < this.courseGroup.group.length;
  13983. groupI++
  13984. ) {
  13985. this.courseGroup.group[groupI].works[i] =
  13986. this.courseGroup.group[groupI].works[i].sort(function (
  13987. a,
  13988. b
  13989. ) {
  13990. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13991. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13992. var scoreA = parseFloat(jscoreA);
  13993. var scoreB = parseFloat(jscoreB);
  13994. if (scoreA == scoreB) {
  13995. return b.likesCount - a.likesCount;
  13996. }
  13997. return scoreB - scoreA;
  13998. });
  13999. }
  14000. }
  14001. }
  14002. }
  14003. this.timeWorkList = _worksStudent2;
  14004. for (var i = 0; i < a.length; i++) {
  14005. for (var j = 0; j < b.length; j++) {
  14006. var data = b[j];
  14007. if (i == b[j].tool) {
  14008. if (data.type == 2 || data.type == 8) {
  14009. for (var z = 0; z < this.checkJson[i].length; z++) {
  14010. this.checkJson[i][z].checkPerent = [];
  14011. this.checkJson[i][z].right = Math.round(
  14012. (this.checkJson[i][z].rightPerson.length /
  14013. parseInt(_worksStudent[i].length)) *
  14014. 100
  14015. );
  14016. let aaaa = this.checkJson[i][z];
  14017. for (
  14018. var k = 0;
  14019. k < this.checkJson[i][z].checkCount.length;
  14020. k++
  14021. ) {
  14022. this.checkJson[i][z].checkPerent.push(
  14023. Math.round(
  14024. (this.checkJson[i][z].checkCount[k] /
  14025. parseInt(_worksStudent[i].length)) *
  14026. 100
  14027. )
  14028. );
  14029. }
  14030. }
  14031. } else if (data.type == 9) {
  14032. for (var z = 0; z < this.checkJson[i].length; z++) {
  14033. this.checkJson[i][z].checkPerent = [];
  14034. this.checkJson[i][z].right = Math.round(
  14035. (this.checkJson[i][z].rightPerson.length /
  14036. this.checkJson[i][z].checkPerson.length) *
  14037. 100
  14038. );
  14039. }
  14040. }
  14041. }
  14042. }
  14043. }
  14044. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14045. this.joinGroup(gindex);
  14046. }
  14047. this.worksStudent = _worksStudent;
  14048. this.selectWorksStudent();
  14049. })
  14050. .catch((err) => {
  14051. console.error(err);
  14052. });
  14053. },
  14054. pngToWhiteBg(file) {
  14055. const _file = file;
  14056. let read = new FileReader();
  14057. read.readAsDataURL(file); // 文件转base64
  14058. return new Promise((resolve, reject) => {
  14059. read.onload = (e) => {
  14060. let img = new Image();
  14061. img.src = e.target.result;
  14062. img.onload = async () => {
  14063. // 生成canvas
  14064. let canvas = document.createElement("canvas");
  14065. let context = canvas.getContext("2d");
  14066. // 绘制图片到canvas上
  14067. canvas.width = img.width;
  14068. canvas.height = img.height;
  14069. // 在canvas绘制前填充白色背景
  14070. context.fillStyle = "#fff";
  14071. context.fillRect(0, 0, canvas.width, canvas.height);
  14072. context.drawImage(img, 0, 0);
  14073. let base64 = canvas.toDataURL(file["type"], 1);
  14074. let newFile = this.dataUrlToFile(base64, _file);
  14075. resolve(newFile);
  14076. };
  14077. };
  14078. });
  14079. },
  14080. dataUrlToFile(dataurl, file) {
  14081. let arr = dataurl.split(","),
  14082. mime = arr[0].match(/:(.*?);/)[1],
  14083. bstr = atob(arr[1]),
  14084. n = bstr.length,
  14085. u8arr = new Uint8Array(n);
  14086. while (n--) {
  14087. u8arr[n] = bstr.charCodeAt(n);
  14088. }
  14089. // return new Blob([u8arr], { type: mime });
  14090. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14091. type: mime,
  14092. });
  14093. },
  14094. async beforeUpload1(event, type, i) {
  14095. // this.$message.success('进入上传')
  14096. var file = "";
  14097. if (type == 5) {
  14098. file = event;
  14099. } else {
  14100. file = event.target.files[0];
  14101. }
  14102. var credentials = {
  14103. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14104. secretAccessKey: "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",
  14105. }; //秘钥形式的登录上传
  14106. window.AWS.config.update(credentials);
  14107. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14108. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14109. var _this = this;
  14110. _this.progress = 0;
  14111. _this.proVisible = true;
  14112. _this.isFinishSize = 0;
  14113. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14114. var b = [
  14115. "DOC",
  14116. "DOCX",
  14117. "DOCM",
  14118. "DOTM",
  14119. "DOTX",
  14120. "PPTX",
  14121. "PPSX",
  14122. "PPT",
  14123. "PPS",
  14124. "PPTM",
  14125. "POTM",
  14126. "PPAM",
  14127. "POTX",
  14128. "PPSM",
  14129. ];
  14130. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14131. var photoA = [
  14132. "BMP",
  14133. "GIF",
  14134. "PNG",
  14135. "JPGE",
  14136. "JPEG",
  14137. "JPG",
  14138. "TIF",
  14139. "PCX",
  14140. "TGA",
  14141. "EXIF",
  14142. "FPX",
  14143. "SVG",
  14144. "APNG",
  14145. ];
  14146. // if (
  14147. // b.indexOf(
  14148. // file.name
  14149. // .split(".")
  14150. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14151. // ) != -1
  14152. // ) {
  14153. // if (file.size / 1024 / 1024 > 10) {
  14154. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14155. // return;
  14156. // }
  14157. // } else if (
  14158. // excelA.indexOf(
  14159. // file.name
  14160. // .split(".")
  14161. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14162. // ) != "-1"
  14163. // ) {
  14164. // if (file.size / 1024 / 1024 > 5) {
  14165. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14166. // return;
  14167. // }
  14168. // }
  14169. if (
  14170. photoA.indexOf(
  14171. file.name
  14172. .split(".")
  14173. [file.name.split(".").length - 1].toLocaleUpperCase()
  14174. ) != -1 &&
  14175. type != 4
  14176. ) {
  14177. // const blob = await imageConversion.compress(file, 0.8)
  14178. file = await this.pngToWhiteBg(file);
  14179. const blob = await imageConversion.compressAccurately(file, 256);
  14180. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14181. file = new File([blob], file.name, { type: file.type });
  14182. }
  14183. if (file) {
  14184. var params = {
  14185. Key:
  14186. file.name.split(".")[0] +
  14187. new Date().getTime() +
  14188. "." +
  14189. file.name.split(".")[file.name.split(".").length - 1],
  14190. ContentType: file.type,
  14191. Body: file,
  14192. "Access-Control-Allow-Credentials": "*",
  14193. ACL: "public-read",
  14194. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14195. var options = {
  14196. // partSize: 2048 * 1024 * 1024,
  14197. partSize: 1024 * 1024 * 1024,
  14198. queueSize: 2,
  14199. leavePartsOnError: true,
  14200. };
  14201. bucket
  14202. .upload(params, options)
  14203. .on("httpUploadProgress", function (evt) {
  14204. //这里可以写进度条
  14205. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14206. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14207. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14208. })
  14209. .send(function (err, data) {
  14210. _this.progress = 100;
  14211. _this.isFinishSize = _this.isAllSize;
  14212. setTimeout(() => {
  14213. _this.proVisible = false;
  14214. }, 1000);
  14215. if (err) {
  14216. var a = _this.$refs.upload1.uploadFiles;
  14217. a.splice(a.length - 1, a.length);
  14218. _this.$message.error("上传失败");
  14219. } else {
  14220. // _this.$message.success('上传成功')
  14221. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14222. var c = [
  14223. "AVI",
  14224. "NAVI",
  14225. "MPEG",
  14226. "ASF",
  14227. "MOV",
  14228. "WMV",
  14229. "3GP",
  14230. "RM",
  14231. "RMVB",
  14232. "FLV",
  14233. "F4V",
  14234. "H.264",
  14235. "H.265",
  14236. "REAL VIDEO",
  14237. "MKV",
  14238. "WebM",
  14239. "HDDVD",
  14240. "MP4",
  14241. "MPG",
  14242. "M4V",
  14243. "MGV",
  14244. "OGV",
  14245. "QTM",
  14246. "STR",
  14247. "AMC",
  14248. "DVX",
  14249. "EVO",
  14250. "DAT",
  14251. "OGG",
  14252. "OGM",
  14253. ];
  14254. if (type == 1) {
  14255. _this.studyJuri[0].cover.push({
  14256. name: file.name,
  14257. url: data.Location,
  14258. uid: file.uid,
  14259. });
  14260. if (
  14261. c.indexOf(
  14262. _this.studyJuri[0].cover[0].url
  14263. .split(".")
  14264. [
  14265. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14266. ].toLocaleUpperCase()
  14267. ) != -1
  14268. ) {
  14269. _this.fileType = 2;
  14270. } else if (
  14271. b.indexOf(
  14272. _this.studyJuri[0].cover[0].url
  14273. .split(".")
  14274. [
  14275. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14276. ].toLocaleUpperCase()
  14277. ) != -1
  14278. ) {
  14279. _this.fileType = 1;
  14280. } else if (
  14281. photoA.indexOf(
  14282. _this.studyJuri[0].cover[0].url
  14283. .split(".")
  14284. [
  14285. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14286. ].toLocaleUpperCase()
  14287. ) != -1
  14288. ) {
  14289. _this.fileType = 0;
  14290. } else {
  14291. _this.fileType = 3;
  14292. }
  14293. _this.imgChange(null, null, type);
  14294. } else if (type == 2) {
  14295. _this.upToolImg = data.Location;
  14296. _this.imgChange(null, null, type);
  14297. _this.addCourseWorks(i);
  14298. } else if (type == 4) {
  14299. _this.addPz("3", data.Location);
  14300. } else if (type == 5) {
  14301. _this.addImgDrawImG(data.Location);
  14302. } else if (type == 6) {
  14303. var _ftype = 1;
  14304. if (
  14305. c.indexOf(
  14306. data.Location.split(".")[
  14307. data.Location.split(".").length - 1
  14308. ].toLocaleUpperCase()
  14309. ) != -1
  14310. ) {
  14311. _ftype = 5;
  14312. } else if (
  14313. b.indexOf(
  14314. data.Location.split(".")[
  14315. data.Location.split(".").length - 1
  14316. ].toLocaleUpperCase()
  14317. ) != -1
  14318. ) {
  14319. _ftype = 4;
  14320. } else {
  14321. _ftype = 1;
  14322. }
  14323. _this.plworkFile.push({
  14324. name: file.name,
  14325. url: data.Location,
  14326. uid: file.uid,
  14327. fileType: _ftype,
  14328. username:
  14329. _this.plworkFile.length > 10
  14330. ? _this.plworkFile.length + 1
  14331. : "0" + (_this.plworkFile.length + 1),
  14332. });
  14333. } else if (type == 7) {
  14334. _this.addCourseWorksGong(i, data.Location, 32);
  14335. } else if (type == 8) {
  14336. _this.addCourseWorksGong(i, data.Location, 57);
  14337. }
  14338. _this.imgChange(null, null, type);
  14339. console.log(data.Location);
  14340. // _this.$message.success('上传成功'+data.Location)
  14341. }
  14342. });
  14343. }
  14344. },
  14345. async beforeUpload3(event, type, i) {
  14346. // this.$message.success('进入上传')
  14347. let file = "";
  14348. let cfindex2 = 0;
  14349. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14350. file = event.target.files[cfindex];
  14351. var credentials = {
  14352. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14353. secretAccessKey: "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",
  14354. }; //秘钥形式的登录上传
  14355. window.AWS.config.update(credentials);
  14356. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14357. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14358. var _this = this;
  14359. // _this.progress = 0;
  14360. _this.proVisible2 = true;
  14361. var b = [
  14362. "DOC",
  14363. "DOCX",
  14364. "DOCM",
  14365. "DOTM",
  14366. "DOTX",
  14367. "PPTX",
  14368. "PPSX",
  14369. "PPT",
  14370. "PPS",
  14371. "PPTM",
  14372. "POTM",
  14373. "PPAM",
  14374. "POTX",
  14375. "PPSM",
  14376. ];
  14377. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14378. var photoA = [
  14379. "BMP",
  14380. "GIF",
  14381. "PNG",
  14382. "JPGE",
  14383. "JPG",
  14384. "TIF",
  14385. "PCX",
  14386. "TGA",
  14387. "EXIF",
  14388. "FPX",
  14389. "SVG",
  14390. "APNG",
  14391. ];
  14392. if (
  14393. photoA.indexOf(
  14394. file.name
  14395. .split(".")
  14396. [file.name.split(".").length - 1].toLocaleUpperCase()
  14397. ) != -1 &&
  14398. type != 4
  14399. ) {
  14400. // const blob = await imageConversion.compress(file, 0.8)
  14401. file = await this.pngToWhiteBg(file);
  14402. const blob = await imageConversion.compressAccurately(file, 256);
  14403. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14404. file = new File([blob], file.name, { type: file.type });
  14405. }
  14406. if (file) {
  14407. var params = {
  14408. Key:
  14409. file.name.split(".")[0] +
  14410. new Date().getTime() +
  14411. "." +
  14412. file.name.split(".")[file.name.split(".").length - 1],
  14413. ContentType: file.type,
  14414. Body: file,
  14415. "Access-Control-Allow-Credentials": "*",
  14416. ACL: "public-read",
  14417. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14418. var options = {
  14419. // partSize: 2048 * 1024 * 1024,
  14420. partSize: 1024 * 1024 * 1024,
  14421. queueSize: 2,
  14422. leavePartsOnError: true,
  14423. };
  14424. bucket
  14425. .upload(params, options)
  14426. .on("httpUploadProgress", function (evt) {
  14427. //这里可以写进度条
  14428. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14429. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14430. })
  14431. .send(function (err, data) {
  14432. // _this.progress = 100;
  14433. cfindex2++;
  14434. setTimeout(() => {
  14435. if (
  14436. cfindex2 == event.target.files.length - 1 ||
  14437. cfindex2 > event.target.files.length - 1
  14438. ) {
  14439. _this.proVisible2 = false;
  14440. }
  14441. }, 1000);
  14442. if (err) {
  14443. var a = _this.$refs.upload1.uploadFiles;
  14444. a.splice(a.length - 1, a.length);
  14445. _this.$message.error("上传失败");
  14446. } else {
  14447. // _this.$message.success('上传成功')
  14448. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14449. var c = [
  14450. "AVI",
  14451. "NAVI",
  14452. "MPEG",
  14453. "ASF",
  14454. "MOV",
  14455. "WMV",
  14456. "3GP",
  14457. "RM",
  14458. "RMVB",
  14459. "FLV",
  14460. "F4V",
  14461. "H.264",
  14462. "H.265",
  14463. "REAL VIDEO",
  14464. "MKV",
  14465. "WebM",
  14466. "HDDVD",
  14467. "MP4",
  14468. "MPG",
  14469. "M4V",
  14470. "MGV",
  14471. "OGV",
  14472. "QTM",
  14473. "STR",
  14474. "AMC",
  14475. "DVX",
  14476. "EVO",
  14477. "DAT",
  14478. "OGG",
  14479. "OGM",
  14480. ];
  14481. if (type == 1) {
  14482. _this.studyJuri[0].cover.push({
  14483. name: file.name,
  14484. url: data.Location,
  14485. uid: file.uid,
  14486. });
  14487. if (
  14488. c.indexOf(
  14489. _this.studyJuri[0].cover[0].url
  14490. .split(".")
  14491. [
  14492. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14493. ].toLocaleUpperCase()
  14494. ) != -1
  14495. ) {
  14496. _this.fileType = 2;
  14497. } else if (
  14498. b.indexOf(
  14499. _this.studyJuri[0].cover[0].url
  14500. .split(".")
  14501. [
  14502. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14503. ].toLocaleUpperCase()
  14504. ) != -1
  14505. ) {
  14506. _this.fileType = 1;
  14507. } else {
  14508. _this.fileType = 0;
  14509. }
  14510. _this.imgChange(null, null, type);
  14511. } else if (type == 2) {
  14512. _this.upToolImg = data.Location;
  14513. _this.imgChange(null, null, type);
  14514. _this.addCourseWorks(i);
  14515. } else if (type == 4) {
  14516. _this.addPz("3", data.Location);
  14517. } else if (type == 5) {
  14518. _this.addImgDrawImG(data.Location);
  14519. } else if (type == 6) {
  14520. var _ftype = 1;
  14521. if (
  14522. c.indexOf(
  14523. data.Location.split(".")[
  14524. data.Location.split(".").length - 1
  14525. ].toLocaleUpperCase()
  14526. ) != -1
  14527. ) {
  14528. _ftype = 5;
  14529. } else if (
  14530. b.indexOf(
  14531. data.Location.split(".")[
  14532. data.Location.split(".").length - 1
  14533. ].toLocaleUpperCase()
  14534. ) != -1
  14535. ) {
  14536. _ftype = 4;
  14537. } else {
  14538. _ftype = 1;
  14539. }
  14540. _this.plworkFile.push({
  14541. name: file.name,
  14542. url: data.Location,
  14543. uid: file.uid,
  14544. fileType: _ftype,
  14545. username:
  14546. _this.plworkFile.length + 1 > 9
  14547. ? _this.plworkFile.length + 1
  14548. : "0" + (_this.plworkFile.length + 1),
  14549. });
  14550. }
  14551. _this.imgChange(null, null, type);
  14552. console.log(data.Location);
  14553. // _this.$message.success('上传成功'+data.Location)
  14554. }
  14555. });
  14556. }
  14557. }
  14558. },
  14559. beforeUpload2(event, type) {
  14560. var file = event.target.files[0];
  14561. var credentials = {
  14562. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14563. secretAccessKey: "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",
  14564. }; //秘钥形式的登录上传
  14565. window.AWS.config.update(credentials);
  14566. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14567. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14568. var _this = this;
  14569. _this.progress = 0;
  14570. _this.proVisible = true;
  14571. if (file) {
  14572. var params = {
  14573. Key:
  14574. file.name.split(".")[0] +
  14575. new Date().getTime() +
  14576. "." +
  14577. file.name.split(".")[file.name.split(".").length - 1],
  14578. ContentType: file.type,
  14579. Body: file,
  14580. "Access-Control-Allow-Credentials": "*",
  14581. ACL: "public-read",
  14582. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14583. var options = {
  14584. partSize: 2048 * 1024 * 1024,
  14585. queueSize: 2,
  14586. leavePartsOnError: true,
  14587. };
  14588. bucket
  14589. .upload(params, options)
  14590. .on("httpUploadProgress", function (evt) {
  14591. //这里可以写进度条
  14592. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14593. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14594. })
  14595. .send(function (err, data) {
  14596. _this.progress = 100;
  14597. setTimeout(() => {
  14598. _this.proVisible = false;
  14599. }, 1000);
  14600. if (err) {
  14601. var a = _this.$refs.upload1.uploadFiles;
  14602. a.splice(a.length - 1, a.length);
  14603. _this.$message.error("上传失败");
  14604. } else {
  14605. if (type == 2) {
  14606. _this.studyJuri[0].upVedio.push({
  14607. name: file.name,
  14608. url: data.Location,
  14609. uid: file.uid,
  14610. });
  14611. _this.imgChange(null, null, type);
  14612. } else if (type == 3) {
  14613. _this.studyJuri[0].upFile.push({
  14614. name: file.name,
  14615. url: data.Location,
  14616. uid: file.uid,
  14617. });
  14618. _this.imgChange(null, null, type);
  14619. }
  14620. console.log(data.Location);
  14621. }
  14622. });
  14623. }
  14624. },
  14625. allScrell() {
  14626. window.parent.postMessage({ allScreen: this.screenType }, "*");
  14627. },
  14628. nextOrpreSteps(t) {
  14629. if (this.IsFollow && this.tType == 2) {
  14630. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14631. return;
  14632. }
  14633. var b = this.chapInfoList.length - 1;
  14634. if (t == 0) {
  14635. if (this.courseType == 0) {
  14636. if (this.taskCount == 0) {
  14637. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  14638. if (this.IsLookOpen) {
  14639. if (
  14640. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  14641. ) {
  14642. if (
  14643. this.courseDetail.userid != this.userid &&
  14644. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14645. ) {
  14646. this.$message.error("任务未解锁");
  14647. } else {
  14648. this.$message.error("上一任务未解锁");
  14649. }
  14650. return;
  14651. }
  14652. }
  14653. this.navList[this.courseType].isOpen = false;
  14654. this.courseType = b;
  14655. this.taskCount =
  14656. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14657. .length - 1;
  14658. this.navList[this.courseType].isOpen = true;
  14659. } else {
  14660. this.taskCount--;
  14661. }
  14662. } else {
  14663. if (this.taskCount == 0) {
  14664. this.navList[this.courseType].isOpen = false;
  14665. this.courseType--;
  14666. this.taskCount =
  14667. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14668. .length - 1;
  14669. this.navList[this.courseType].isOpen = true;
  14670. } else {
  14671. this.taskCount--;
  14672. }
  14673. }
  14674. } else {
  14675. if (this.courseType == b) {
  14676. if (
  14677. this.taskCount ==
  14678. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14679. 1
  14680. ) {
  14681. this.navList[this.courseType].isOpen = false;
  14682. this.courseType = 0;
  14683. this.taskCount = 0;
  14684. this.navList[this.courseType].isOpen = true;
  14685. } else {
  14686. var bbb = parseInt(this.taskCount) + 1;
  14687. if (
  14688. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14689. .isLook &&
  14690. this.courseDetail.userid != this.userid &&
  14691. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14692. this.IsLookOpen
  14693. ) {
  14694. this.$message.error("任务未解锁");
  14695. return;
  14696. }
  14697. this.taskCount++;
  14698. if (this.IsLookOpen) {
  14699. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14700. this.taskCount
  14701. ].isLook = true;
  14702. this.addCourseState(3);
  14703. }
  14704. }
  14705. } else {
  14706. if (
  14707. this.taskCount ==
  14708. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14709. 1
  14710. ) {
  14711. var bbb = parseInt(this.courseType) + 1;
  14712. if (
  14713. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  14714. this.courseDetail.userid != this.userid &&
  14715. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14716. this.IsLookOpen
  14717. ) {
  14718. this.$message.error("任务未解锁");
  14719. return;
  14720. }
  14721. this.navList[this.courseType].isOpen = false;
  14722. this.courseType++;
  14723. this.taskCount = 0;
  14724. this.navList[this.courseType].isOpen = true;
  14725. } else {
  14726. var bbb = parseInt(this.taskCount) + 1;
  14727. if (
  14728. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14729. .isLook &&
  14730. this.courseDetail.userid != this.userid &&
  14731. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14732. this.IsLookOpen
  14733. ) {
  14734. this.$message.error("任务未解锁");
  14735. return;
  14736. }
  14737. this.taskCount++;
  14738. }
  14739. if (this.IsLookOpen) {
  14740. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14741. this.taskCount
  14742. ].isLook = true;
  14743. this.addCourseState(3);
  14744. }
  14745. }
  14746. // if (
  14747. // this.taskCount ==
  14748. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  14749. // ) {
  14750. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  14751. // } else {
  14752. // this.taskCount++;
  14753. // }
  14754. }
  14755. document.scrollingElement.scrollTop = 0;
  14756. this.showType = 0;
  14757. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14758. // if (this.vedio[this.taskCount].length > 0) {
  14759. // var a =
  14760. // document.getElementsByClassName("box_course")[this.taskCount]
  14761. // .offsetHeight;
  14762. // document.getElementsByClassName("vedioList")[
  14763. // this.taskCount
  14764. // ].style.height = a + "px";
  14765. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  14766. // a - 40 + "px";
  14767. // }
  14768. this.isNoHomeWork = false;
  14769. (this.studyJuri = [
  14770. {
  14771. content: "",
  14772. cover: [],
  14773. upVedio: [],
  14774. upFile: [],
  14775. },
  14776. ]),
  14777. (this.radio = []);
  14778. this.isClickNav = "";
  14779. this.selectPz();
  14780. this.getHomeWork();
  14781. this.getCourseDetail(2);
  14782. this.$forceUpdate();
  14783. },
  14784. openTask(s, n, i) {
  14785. if (this.IsFollow && this.tType == 2) {
  14786. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14787. return;
  14788. }
  14789. if (this.IsLookOpen) {
  14790. if (
  14791. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  14792. this.courseDetail.userid != this.userid &&
  14793. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14794. ) {
  14795. this.$message.error("任务未解锁");
  14796. return;
  14797. }
  14798. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  14799. if (
  14800. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  14801. .isLook
  14802. ) {
  14803. this.$message.error("上一任务未解锁");
  14804. return;
  14805. }
  14806. } else if (s > this.courseType) {
  14807. if (n > 0) {
  14808. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  14809. this.$message.error("上一任务未解锁");
  14810. return;
  14811. }
  14812. } else {
  14813. if (
  14814. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  14815. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  14816. ].isLook
  14817. ) {
  14818. this.$message.error("上一任务未解锁");
  14819. return;
  14820. }
  14821. }
  14822. }
  14823. }
  14824. if (this.navList[s].task[n].isOpen == true) {
  14825. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  14826. return;
  14827. }
  14828. this.courseType = s;
  14829. this.navId = i;
  14830. this.taskCount = n;
  14831. this.navList[this.courseType].task[this.taskCount].isOpen =
  14832. !this.navList[this.courseType].task[this.taskCount].isOpen;
  14833. if (this.IsLookOpen) {
  14834. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14835. this.taskCount
  14836. ].isLook = true;
  14837. this.addCourseState(3);
  14838. }
  14839. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  14840. this.isCloseList[ci].isClose = 0;
  14841. }
  14842. this.showType = 0;
  14843. this.isNoHomeWork = false;
  14844. (this.studyJuri = [
  14845. {
  14846. content: "",
  14847. cover: [],
  14848. upVedio: [],
  14849. upFile: [],
  14850. },
  14851. ]),
  14852. (this.radio = []);
  14853. document.scrollingElement.scrollTop = 0;
  14854. // setTimeout(() => {
  14855. // let a = document.getElementById(i);
  14856. // if (a.offsetTop - 110 == 0) {
  14857. // window.scrollTo(0, 0);
  14858. // } else {
  14859. // window.scrollTo(0, a.offsetTop);
  14860. // }
  14861. // }, 0);
  14862. this.selectPz();
  14863. this.getHomeWork();
  14864. this.getCourseDetail(2);
  14865. },
  14866. get(i) {
  14867. if (this.IsFollow && this.tType == 2) {
  14868. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14869. return;
  14870. }
  14871. // for(var k=0;k<this.navList.length;k++){
  14872. // this.navList[k].isOpen = false;
  14873. // }
  14874. // this.navList[i].isOpen = true;
  14875. this.navList[i].isOpen = !this.navList[i].isOpen;
  14876. if (this.navList[i].isOpen) {
  14877. this.openTask(i, 0, i + "-0");
  14878. }
  14879. },
  14880. addQuestion() {
  14881. this.answerList.push({
  14882. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14883. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14884. });
  14885. let params = [
  14886. {
  14887. uid: this.userid,
  14888. cid: this.id,
  14889. stage: this.courseType,
  14890. task: this.taskCount,
  14891. tool: this.toolindex,
  14892. content: JSON.stringify(this.answerList),
  14893. type: 3,
  14894. },
  14895. ];
  14896. this.ajax
  14897. .post(this.$store.state.api + "addCourseWorks", params)
  14898. .then((res) => {
  14899. this.$message({
  14900. message: "提交成功",
  14901. type: "success",
  14902. });
  14903. this.answerList = [];
  14904. this.answerDialogVisible = false;
  14905. this.selectStudent();
  14906. this.selectSWorks();
  14907. this.selectSLook();
  14908. })
  14909. .catch((err) => {
  14910. this.$message.error("提交失败");
  14911. console.error(err);
  14912. });
  14913. },
  14914. addQuestionTeacher() {
  14915. this.answerList.push({
  14916. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14917. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14918. });
  14919. let params = [
  14920. {
  14921. uid: this.sStudent.userid,
  14922. cid: this.id,
  14923. stage: this.courseType,
  14924. task: this.taskCount,
  14925. tool: this.toolindex,
  14926. content: JSON.stringify(this.answerList),
  14927. type: 3,
  14928. ateacher: this.userid,
  14929. },
  14930. ];
  14931. this.ajax
  14932. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14933. .then((res) => {
  14934. this.$message({
  14935. message: "提交成功",
  14936. type: "success",
  14937. });
  14938. this.answerList = [];
  14939. this.questionAnswer = "";
  14940. this.answerDialogVisibleTeacher = false;
  14941. this.selectStudent();
  14942. this.selectSWorks();
  14943. this.selectSLook();
  14944. })
  14945. .catch((err) => {
  14946. this.$message.error("提交失败");
  14947. console.error(err);
  14948. });
  14949. },
  14950. refreshCourse() {
  14951. // window.location.reload();
  14952. this.navList = [];
  14953. this.getCourseDetail(1);
  14954. },
  14955. getCourseDetail(type, gindex) {
  14956. let loading;
  14957. if (type != 2) {
  14958. loading = this.$loading.service({
  14959. background: "rgba(255, 255, 255, 0.7)",
  14960. target: document.querySelector(".student_table"),
  14961. });
  14962. }
  14963. // this.navList[0].isOpen = false;
  14964. // this.navList[this.courseType].isOpen = true;
  14965. // this.courseType = this.courseTypeLine;
  14966. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14967. let params = {
  14968. courseId: this.id,
  14969. };
  14970. this.ajax
  14971. .get(this.$store.state.api + "selectCourseDetail3", params)
  14972. .then((res) => {
  14973. if (type != 2) {
  14974. loading.close();
  14975. if (
  14976. this.courseType >
  14977. JSON.parse(res.data[0][0].chapters).length - 1
  14978. ) {
  14979. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  14980. }
  14981. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  14982. .chapterInfo[0].taskJson;
  14983. var b = [
  14984. "AVI",
  14985. "NAVI",
  14986. "MPEG",
  14987. "ASF",
  14988. "MOV",
  14989. "WMV",
  14990. "3GP",
  14991. "RM",
  14992. "RMVB",
  14993. "FLV",
  14994. "F4V",
  14995. "H.264",
  14996. "H.265",
  14997. "REAL VIDEO",
  14998. "MKV",
  14999. "WebM",
  15000. "HDDVD",
  15001. "MP4",
  15002. "MPG",
  15003. "M4V",
  15004. "MGV",
  15005. "OGV",
  15006. "QTM",
  15007. "STR",
  15008. "AMC",
  15009. "DVX",
  15010. "EVO",
  15011. "DAT",
  15012. "OGG",
  15013. "OGM",
  15014. "MP3",
  15015. ];
  15016. let _chapterData = [];
  15017. for (var i = 0; i < a.length; i++) {
  15018. var c = a[i].chapterData;
  15019. this.vedio[i] = [];
  15020. this.textList[i] = [];
  15021. this.lineList[i] = [];
  15022. this.chapToolList[i] = [];
  15023. this.file[i] = [];
  15024. this.fileC[i] = [];
  15025. _chapterData[i] = c.filter((el) => {
  15026. return el.type != 12;
  15027. });
  15028. this.fileC[i] = c.filter((el) => {
  15029. return el.type == 12;
  15030. });
  15031. // else if (c[j].type == 12) {
  15032. // this.fileC[i].push(c[j]);
  15033. // }
  15034. for (var j = 0; j < c.length; j++) {
  15035. if (c[j].type == 7) {
  15036. this.chapToolList[i].push(c[j]);
  15037. } else if (c[j].type == 8 || c[j].type == 14) {
  15038. this.lineList[i].push(c[j]);
  15039. } else if (c[j].type == 6) {
  15040. this.textList[i].push(c[j]);
  15041. } else {
  15042. if (
  15043. b.indexOf(
  15044. c[j].url
  15045. .split(".")
  15046. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15047. ) != -1
  15048. ) {
  15049. this.vedio[i].push(c[j]);
  15050. } else {
  15051. this.file[i].push(c[j]);
  15052. }
  15053. }
  15054. }
  15055. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15056. d.sources[0].src =
  15057. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15058. this.playerO[i] = d;
  15059. }
  15060. this.courseDetail = res.data[0][0];
  15061. this.tcid = this.arrayToArray(
  15062. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15063. this.tcid2 ? this.tcid2.split(",") : []
  15064. ).join(",");
  15065. this.evalua = res.data[0][0].evaId;
  15066. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15067. this.courseType
  15068. ];
  15069. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15070. if (this.tcid && res.data[1].length) {
  15071. let _inviteA = [];
  15072. for (var ik = 0; ik < res.data[1].length; ik++) {
  15073. _inviteA.push({
  15074. cid: res.data[1][ik].classid,
  15075. ic: res.data[1][ik].code,
  15076. });
  15077. }
  15078. for (var ik = 0; ik < _inviteA.length; ik++) {
  15079. if (
  15080. this.arrayToArray(
  15081. _inviteA[ik].cid.split(","),
  15082. this.tcid.split(",")
  15083. ).length
  15084. ) {
  15085. this.inviteCode = _inviteA[ik].ic;
  15086. break;
  15087. }
  15088. }
  15089. }
  15090. for (var l = 0; l < this.chapInfoList.length; l++) {
  15091. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15092. for (var m = 0; m < w.length; m++) {
  15093. w[m].id = l + "-" + m;
  15094. }
  15095. }
  15096. if (
  15097. _chapterData[this.taskCount].length &&
  15098. _chapterData[this.taskCount][0].type == 2
  15099. ) {
  15100. this.showType = 0;
  15101. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  15102. } else {
  15103. if (_chapterData[this.taskCount].length > 0) {
  15104. let _url = _chapterData[this.taskCount][0].url;
  15105. if (
  15106. _chapterData[this.taskCount][0].type == 8 ||
  15107. _chapterData[this.taskCount][0].type == 14
  15108. ) {
  15109. this.showType = 2;
  15110. if (
  15111. _url.indexOf("https://") == -1 &&
  15112. _url.indexOf("http://") == -1
  15113. ) {
  15114. _url = "https://" + _url;
  15115. }
  15116. this.pptImgUrl1 = _url;
  15117. } else if (_chapterData[this.taskCount][0].type == 3) {
  15118. if (
  15119. _url
  15120. .split(".")
  15121. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15122. ) {
  15123. this.showType = 3;
  15124. this.pptImgUrl1 = _url;
  15125. } else if (
  15126. this.isAssetTypeAnImage(
  15127. _url
  15128. .split(".")
  15129. [_url.split(".").length - 1].toLocaleLowerCase()
  15130. )
  15131. ) {
  15132. this.showType = 4;
  15133. this.pptImgUrl1 = _url;
  15134. } else {
  15135. this.showType = 2;
  15136. this.pptImgUrl1 =
  15137. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15138. _url;
  15139. }
  15140. } else if (_chapterData[this.taskCount][0].type == 13) {
  15141. this.showType = 4;
  15142. this.pptImgUrl1 = _url;
  15143. } else if (_chapterData[this.taskCount][0].type == 6) {
  15144. this.showType = 1;
  15145. this.text = this.textList[this.taskCount][0];
  15146. }
  15147. }
  15148. }
  15149. this.isClickNav = 0;
  15150. if (
  15151. !_chapterData[this.taskCount].length ||
  15152. _chapterData[this.taskCount][0].type == 12
  15153. ) {
  15154. this.isClickNav = "";
  15155. this.showType = "";
  15156. }
  15157. this.vChapterData = _chapterData;
  15158. } else {
  15159. this.showType = 0;
  15160. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15161. .chapterInfo[0].taskJson;
  15162. var b = [
  15163. "AVI",
  15164. "NAVI",
  15165. "MPEG",
  15166. "ASF",
  15167. "MOV",
  15168. "WMV",
  15169. "3GP",
  15170. "RM",
  15171. "RMVB",
  15172. "FLV",
  15173. "F4V",
  15174. "H.264",
  15175. "H.265",
  15176. "REAL VIDEO",
  15177. "MKV",
  15178. "WebM",
  15179. "HDDVD",
  15180. "MP4",
  15181. "MPG",
  15182. "M4V",
  15183. "MGV",
  15184. "OGV",
  15185. "QTM",
  15186. "STR",
  15187. "AMC",
  15188. "DVX",
  15189. "EVO",
  15190. "DAT",
  15191. "OGG",
  15192. "OGM",
  15193. "MP3",
  15194. ];
  15195. let _chapterData = [];
  15196. for (var i = 0; i < a.length; i++) {
  15197. var c = a[i].chapterData;
  15198. this.vedio[i] = [];
  15199. this.textList[i] = [];
  15200. this.lineList[i] = [];
  15201. this.chapToolList[i] = [];
  15202. this.file[i] = [];
  15203. this.fileC[i] = [];
  15204. _chapterData[i] = c.filter((el) => {
  15205. return el.type != 12;
  15206. });
  15207. this.fileC[i] = c.filter((el) => {
  15208. return el.type == 12;
  15209. });
  15210. for (var j = 0; j < c.length; j++) {
  15211. if (c[j].type == 7) {
  15212. this.chapToolList[i].push(c[j]);
  15213. } else if (c[j].type == 8 || c[j].type == 14) {
  15214. this.lineList[i].push(c[j]);
  15215. } else if (c[j].type == 6) {
  15216. this.textList[i].push(c[j]);
  15217. } else {
  15218. if (
  15219. b.indexOf(
  15220. c[j].url
  15221. .split(".")
  15222. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15223. ) != -1
  15224. ) {
  15225. this.vedio[i].push(c[j]);
  15226. } else {
  15227. this.file[i].push(c[j]);
  15228. }
  15229. }
  15230. }
  15231. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15232. d.sources[0].src =
  15233. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15234. this.playerO[i] = d;
  15235. }
  15236. if (
  15237. _chapterData[this.taskCount].length &&
  15238. _chapterData[this.taskCount][0].type == 2
  15239. ) {
  15240. this.showType = 0;
  15241. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  15242. } else {
  15243. if (_chapterData[this.taskCount].length > 0) {
  15244. let _url = _chapterData[this.taskCount][0].url;
  15245. if (
  15246. _chapterData[this.taskCount][0].type == 8 ||
  15247. _chapterData[this.taskCount][0].type == 14
  15248. ) {
  15249. this.showType = 2;
  15250. if (
  15251. _url.indexOf("https://") == -1 &&
  15252. _url.indexOf("http://") == -1
  15253. ) {
  15254. _url = "https://" + _url;
  15255. }
  15256. this.pptImgUrl1 = _url;
  15257. } else if (_chapterData[this.taskCount][0].type == 3) {
  15258. if (
  15259. _url
  15260. .split(".")
  15261. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15262. ) {
  15263. this.showType = 3;
  15264. this.pptImgUrl1 = _url;
  15265. } else if (
  15266. this.isAssetTypeAnImage(
  15267. _url
  15268. .split(".")
  15269. [_url.split(".").length - 1].toLocaleLowerCase()
  15270. )
  15271. ) {
  15272. this.showType = 4;
  15273. this.pptImgUrl1 = _url;
  15274. } else {
  15275. this.showType = 2;
  15276. this.pptImgUrl1 =
  15277. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15278. _url;
  15279. }
  15280. } else if (_chapterData[this.taskCount][0].type == 13) {
  15281. this.showType = 4;
  15282. this.pptImgUrl1 = _url;
  15283. } else if (_chapterData[this.taskCount][0].type == 6) {
  15284. this.showType = 1;
  15285. this.text = this.textList[this.taskCount][0];
  15286. }
  15287. }
  15288. }
  15289. this.isClickNav = 0;
  15290. if (
  15291. !_chapterData[this.taskCount].length ||
  15292. _chapterData[this.taskCount][0].type == 12
  15293. ) {
  15294. this.isClickNav = "";
  15295. this.showType = "";
  15296. }
  15297. this.vChapterData = _chapterData;
  15298. this.$forceUpdate();
  15299. }
  15300. // else {
  15301. // this.courseDetail = res.data[0][0];
  15302. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15303. // }
  15304. let _this = this;
  15305. if (_this.timer) {
  15306. clearInterval(_this.timer);
  15307. _this.timer = null;
  15308. }
  15309. if (_this.tcid) {
  15310. _this.getCourseGroup(gindex);
  15311. } else {
  15312. _this.selectSWorks(gindex);
  15313. }
  15314. _this.selectStudent();
  15315. _this.selectSLook();
  15316. _this.getPick();
  15317. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15318. _this.setCTask();
  15319. }
  15320. if (_this.dialogVisibleGroup) {
  15321. _this.groupJson =
  15322. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15323. _this.taskCount
  15324. ].toolChoose[_this.toolindex].groupJson;
  15325. }
  15326. _this.$nextTick(() => {
  15327. setTimeout(() => {
  15328. _this.checkEva();
  15329. }, 1000);
  15330. });
  15331. _this.timer = setInterval(function () {
  15332. // _this.getCourseDetail(2);
  15333. if (_this.tcid) {
  15334. _this.getCourseGroup(gindex);
  15335. } else {
  15336. _this.selectSWorks(gindex);
  15337. }
  15338. _this.selectStudent();
  15339. _this.selectSLook();
  15340. _this.getPick();
  15341. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15342. _this.setCTask();
  15343. }
  15344. if (_this.dialogVisibleGroup) {
  15345. _this.groupJson =
  15346. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15347. _this.taskCount
  15348. ].toolChoose[_this.toolindex].groupJson;
  15349. }
  15350. if (_this.tType == 4 || _this.ispzType == 4) {
  15351. _this.selectPz();
  15352. }
  15353. }, 5000);
  15354. _this.$nextTick(function () {
  15355. setTimeout(() => {
  15356. // var a =
  15357. // document.getElementsByClassName("box_course")[0].offsetHeight;
  15358. // document.getElementsByClassName("vedioList")[0].style.height =
  15359. // a + "px";
  15360. // document.getElementsByClassName("navBox")[0].style.height =
  15361. // a - 40 + "px";
  15362. // if (_this.vedio[_this.taskCount].length > 0) {
  15363. // _this.vedioTime = [];
  15364. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  15365. // _this.vedioTime[i] = document.getElementsByClassName(
  15366. // "vjs-duration-display"
  15367. // )[i].textContent;
  15368. // }
  15369. // }
  15370. }, 1000);
  15371. });
  15372. })
  15373. .catch((err) => {
  15374. loading.close();
  15375. console.error(err);
  15376. });
  15377. },
  15378. getCourseGroup(gindex) {
  15379. let params = {
  15380. cid: this.id,
  15381. classid: this.tcid ? this.tcid : "1",
  15382. };
  15383. this.ajax
  15384. .get(this.$store.state.api + "getCourseGroup", params)
  15385. .then((res) => {
  15386. if (res.data && res.data[0].length) {
  15387. if (!this.isGroup) {
  15388. let courseGroup = JSON.parse(res.data[0][0].group);
  15389. courseGroup.group = courseGroup.group.filter((el) => {
  15390. el.works = [];
  15391. return el;
  15392. });
  15393. if (courseGroup.isopen == 2) {
  15394. this.isGroup = false;
  15395. this.selectSWorks(gindex);
  15396. return;
  15397. }
  15398. this.courseGroup = courseGroup;
  15399. let groupPerson = res.data[1];
  15400. let group = JSON.parse(res.data[0][0].group).group;
  15401. let courseGroupStudent = {};
  15402. let courseGroupStudentUid = {};
  15403. for (var i = 0; i < group.length; i++) {
  15404. courseGroupStudent[group[i].id] = [];
  15405. courseGroupStudentUid[group[i].id] = [];
  15406. for (var j = 0; j < groupPerson.length; j++) {
  15407. if (groupPerson[j].groupCid == group[i].id) {
  15408. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15409. courseGroupStudentUid[group[i].id].push(
  15410. groupPerson[j].userid
  15411. );
  15412. }
  15413. }
  15414. }
  15415. this.courseGroupStudent = courseGroupStudent;
  15416. this.courseGroupStudentUid = courseGroupStudentUid;
  15417. }
  15418. if (this.courseGroup.isopen == 2) {
  15419. this.isGroup = false;
  15420. } else {
  15421. this.isGroup = true;
  15422. }
  15423. this.selectSWorks(gindex);
  15424. } else {
  15425. this.selectSWorks(gindex);
  15426. this.isGroup = false;
  15427. }
  15428. })
  15429. .catch((err) => {
  15430. // this.$message.error("网络不佳");
  15431. console.error(err);
  15432. });
  15433. },
  15434. setOperationTime() {
  15435. let _this = this;
  15436. if (_this.opertimer) {
  15437. clearInterval(_this.opertimer);
  15438. _this.opertimer = null;
  15439. }
  15440. _this.opertimer = setInterval(() => {
  15441. _this.setoTime("600");
  15442. }, 600000);
  15443. },
  15444. setoTime(time) {
  15445. let params = [
  15446. {
  15447. uid: this.userid,
  15448. cid: this.id,
  15449. type: "2",
  15450. time: time,
  15451. },
  15452. ];
  15453. this.ajax
  15454. .post(this.$store.state.api + "addOperationTimeT2", params)
  15455. .then((res) => {})
  15456. .catch((err) => {
  15457. console.error(err);
  15458. });
  15459. },
  15460. addPz(type, content) {
  15461. if (type == "1" && this.pzConText == "") {
  15462. this.$message.error("批注不能为空!");
  15463. return;
  15464. }
  15465. let params = [
  15466. {
  15467. cid: this.id,
  15468. uid: this.userid,
  15469. s: this.courseType,
  15470. t: this.taskCount,
  15471. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15472. type: type,
  15473. },
  15474. ];
  15475. this.ajax
  15476. .post(this.$store.state.api + "addPz2", params)
  15477. .then((res) => {
  15478. this.$message({
  15479. message: "添加成功",
  15480. type: "success",
  15481. });
  15482. this.pzConText = "";
  15483. this.addPzDialog = false;
  15484. this.selectPz();
  15485. })
  15486. .catch((err) => {
  15487. this.$message.error("添加失败");
  15488. console.error(err);
  15489. });
  15490. },
  15491. setReplyIndex(id, i) {
  15492. this.replyIndex = i;
  15493. this.replyPid = id;
  15494. this.replyDialogVisible = true;
  15495. },
  15496. addHf() {
  15497. if (this.reply == "") {
  15498. this.$message.error("回复不能为空!");
  15499. return;
  15500. }
  15501. let params = [
  15502. {
  15503. cid: this.id,
  15504. uid: this.userid,
  15505. s: this.courseType,
  15506. t: this.taskCount,
  15507. type: "1",
  15508. ct: 2,
  15509. pid: this.replyPid,
  15510. c: this.reply.replaceAll(/%/g, "%25"),
  15511. },
  15512. ];
  15513. this.ajax
  15514. .post(this.$store.state.api + "addHf", params)
  15515. .then((res) => {
  15516. this.reply = "";
  15517. this.$message({
  15518. message: "回复成功",
  15519. type: "success",
  15520. });
  15521. this.replyDialogVisible = false;
  15522. this.selectPz();
  15523. })
  15524. .catch((err) => {
  15525. this.$message.error("回复失败");
  15526. console.error(err);
  15527. });
  15528. },
  15529. deletePz(id) {
  15530. this.$confirm("确定删除此批注吗?", "提示", {
  15531. confirmButtonText: "确定",
  15532. cancelButtonText: "取消",
  15533. type: "warning",
  15534. })
  15535. .then(() => {
  15536. let params = [
  15537. {
  15538. id: id,
  15539. },
  15540. ];
  15541. this.ajax
  15542. .post(this.$store.state.api + "deletePz", params)
  15543. .then((res) => {
  15544. this.$message({
  15545. message: "删除成功",
  15546. type: "success",
  15547. });
  15548. this.selectPz();
  15549. })
  15550. .catch((err) => {
  15551. this.$message.error("网络异常");
  15552. console.error(err);
  15553. });
  15554. })
  15555. .catch(() => {});
  15556. },
  15557. deleteReply(id) {
  15558. this.$confirm("确定删除此回复吗?", "提示", {
  15559. confirmButtonText: "确定",
  15560. cancelButtonText: "取消",
  15561. type: "warning",
  15562. })
  15563. .then(() => {
  15564. let params = [
  15565. {
  15566. id: id,
  15567. },
  15568. ];
  15569. this.ajax
  15570. .post(this.$store.state.api + "deleteReply", params)
  15571. .then((res) => {
  15572. this.$message({
  15573. message: "删除成功",
  15574. type: "success",
  15575. });
  15576. this.selectPz();
  15577. })
  15578. .catch((err) => {
  15579. this.$message.error("网络异常");
  15580. console.error(err);
  15581. });
  15582. })
  15583. .catch(() => {});
  15584. },
  15585. setPz() {
  15586. if (this.ispzType == 4) {
  15587. this.ispzType = 0;
  15588. this.pzDialog = false;
  15589. return;
  15590. }
  15591. this.ispzType = 4;
  15592. this.pzDialog = true;
  15593. this.selectPz();
  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. var a = res.data[1];
  15608. for (var i = 0; i < a.length; i++) {
  15609. for (var j = 0; j < this.pzList.length; j++) {
  15610. if (!this.pzList[j].hfList) {
  15611. this.pzList[j].hfList = [];
  15612. }
  15613. if (a[i].pid == this.pzList[j].id) {
  15614. this.pzList[j].hfList.push(a[i]);
  15615. }
  15616. }
  15617. }
  15618. })
  15619. .catch((err) => {
  15620. console.error(err);
  15621. });
  15622. },
  15623. // selectHf() {
  15624. // let params = {
  15625. // cid: this.id,
  15626. // s: this.courseType,
  15627. // t: this.taskCount,
  15628. // };
  15629. // this.ajax
  15630. // .get(this.$store.state.api + "selectHfList", params)
  15631. // .then((res) => {
  15632. // var a = res.data[0];
  15633. // for (var i = 0; i < a.length; i++) {
  15634. // for (var j = 0; j < this.pzList.length; j++) {
  15635. // if (!this.pzList[i].hfList) {
  15636. // this.pzList[i].hfList = [];
  15637. // }
  15638. // if (a[i].pid == this.pzList[j].id) {
  15639. // this.pzList[i].hfList.push(a[i]);
  15640. // }
  15641. // }
  15642. // }
  15643. // })
  15644. // .catch((err) => {
  15645. // console.error(err);
  15646. // });
  15647. // },
  15648. updateSLook() {
  15649. let params = {
  15650. sopen: this.sIsOpen == false ? 1 : 2,
  15651. cid: this.id,
  15652. };
  15653. this.ajax
  15654. .get(this.$store.state.api + "updateCourseSLook", params)
  15655. .then((res) => {
  15656. if (this.sIsOpen == true) {
  15657. this.$message({
  15658. message: "权限设置成功",
  15659. type: "success",
  15660. });
  15661. } else {
  15662. this.$message({
  15663. message: "权限关闭成功",
  15664. type: "success",
  15665. });
  15666. }
  15667. })
  15668. .catch((err) => {
  15669. console.error(err);
  15670. });
  15671. },
  15672. updateFollow() {
  15673. let params = [
  15674. {
  15675. sopen: this.IsFollow == false ? 1 : 2,
  15676. cid: this.id,
  15677. },
  15678. ];
  15679. this.ajax
  15680. .post(this.$store.state.api + "updateCourseFollow", params)
  15681. .then((res) => {
  15682. if (this.IsFollow == true) {
  15683. this.$message({
  15684. message: "开启成功",
  15685. type: "success",
  15686. });
  15687. } else {
  15688. this.$message({
  15689. message: "关闭成功",
  15690. type: "success",
  15691. });
  15692. }
  15693. this.setCTask();
  15694. })
  15695. .catch((err) => {
  15696. console.error(err);
  15697. });
  15698. },
  15699. setCTask() {
  15700. let params = [
  15701. {
  15702. sopen: this.courseType + "-" + this.taskCount,
  15703. cid: this.id,
  15704. },
  15705. ];
  15706. this.ajax
  15707. .post(this.$store.state.api + "updateCourseFollowC", params)
  15708. .then((res) => {})
  15709. .catch((err) => {
  15710. console.error(err);
  15711. });
  15712. },
  15713. updateLookOpen() {
  15714. let params = [
  15715. {
  15716. sopen: this.IsLookOpen == false ? 1 : 2,
  15717. cid: this.id,
  15718. },
  15719. ];
  15720. this.ajax
  15721. .post(this.$store.state.api + "updateCourseLookOpen", params)
  15722. .then((res) => {
  15723. if (this.IsLookOpen == true) {
  15724. // if (this.courseType != 0 && this.taskCount != 0) {
  15725. // this.openTask(0, 0, "0-0");
  15726. // }
  15727. this.$message({
  15728. message: "权限设置成功",
  15729. type: "success",
  15730. });
  15731. } else {
  15732. this.$message({
  15733. message: "权限关闭成功",
  15734. type: "success",
  15735. });
  15736. }
  15737. this.getCourseState(2);
  15738. })
  15739. .catch((err) => {
  15740. console.error(err);
  15741. });
  15742. },
  15743. selectSLook() {
  15744. let params = {
  15745. cid: this.id,
  15746. };
  15747. this.ajax
  15748. .get(this.$store.state.api + "selectCourseSLook", params)
  15749. .then((res) => {
  15750. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  15751. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  15752. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  15753. if (!this.IsLookOpen) {
  15754. this.setNavList();
  15755. } else {
  15756. this.getCourseState(1);
  15757. }
  15758. if (this.IsFollow && this.tType == 2) {
  15759. this.setContent2(false);
  15760. let _followC = res.data[0][0].followC.split("-");
  15761. if (
  15762. this.courseType != _followC[0] ||
  15763. this.taskCount != _followC[1]
  15764. ) {
  15765. this.navList[this.courseType].isOpen = false;
  15766. this.courseType = _followC[0];
  15767. this.navList[this.courseType].isOpen = true;
  15768. this.taskCount = parseInt(_followC[1]);
  15769. this.navId = res.data[0][0].followC;
  15770. document.scrollingElement.scrollTop = 0;
  15771. this.getCourseDetail(2);
  15772. }
  15773. }
  15774. })
  15775. .catch((err) => {
  15776. console.error(err);
  15777. });
  15778. },
  15779. setNavList() {
  15780. if (this.navList.length == 0) {
  15781. this.navList = [];
  15782. var copyList = [];
  15783. for (var l = 0; l < this.chapInfoList.length; l++) {
  15784. var q = this.chapInfoList[l].dyName;
  15785. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15786. var e;
  15787. copyList.push({
  15788. dyName: q,
  15789. isOpen: l === 0 ? true : false,
  15790. task: [],
  15791. });
  15792. for (var r = 0; r < w.length; r++) {
  15793. e = w[r].task;
  15794. if (this.chapInfoList[l].easy == 1) {
  15795. copyList[l].task.push({
  15796. taskName: q,
  15797. id: l + "-" + r,
  15798. isLook: w[r].isLook,
  15799. isOpen: r === 0 ? true : false,
  15800. tool: [],
  15801. });
  15802. } else {
  15803. copyList[l].task.push({
  15804. taskName: e,
  15805. id: l + "-" + r,
  15806. isLook: w[r].isLook,
  15807. isOpen: r === 0 ? true : false,
  15808. tool: [],
  15809. });
  15810. }
  15811. var t = w[r].toolChoose;
  15812. for (var k = 0; k < t.length; k++) {
  15813. var tool = t[k].tool[0];
  15814. copyList[l].task[r].tool.push({
  15815. tool: tool,
  15816. isTool: false,
  15817. });
  15818. }
  15819. // this.navId = this.navId ? this.navId : l + "-" + r;
  15820. // this.navId = l + "-" + r;
  15821. }
  15822. }
  15823. this.navList = copyList;
  15824. this.navList[0].isOpen = false;
  15825. this.navList[this.courseType].isOpen = true;
  15826. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15827. } else {
  15828. this.setNavList2();
  15829. }
  15830. },
  15831. setNavList2() {
  15832. for (var l = 0; l < this.chapInfoList.length; l++) {
  15833. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15834. for (var r = 0; r < w.length; r++) {
  15835. this.navList[l].task[r].isLook = w[r].isLook;
  15836. }
  15837. }
  15838. if (
  15839. this.IsLookOpen &&
  15840. !this.navList[this.courseType].task[this.taskCount].isLook
  15841. ) {
  15842. this.openTask(0, 0, "0-0");
  15843. }
  15844. this.$forceUpdate();
  15845. },
  15846. getCourseState(type) {
  15847. let params = {
  15848. cid: this.id,
  15849. };
  15850. this.ajax
  15851. .get(this.$store.state.api + "getCourseState", params)
  15852. .then((res) => {
  15853. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  15854. this.chapInfoList = JSON.parse(res.data[0][0].state);
  15855. this.setNavList();
  15856. this.$forceUpdate();
  15857. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  15858. this.addCourseState(2);
  15859. } else {
  15860. this.addCourseState(1);
  15861. }
  15862. })
  15863. .catch((err) => {
  15864. console.error(err);
  15865. });
  15866. },
  15867. addCourseState(type) {
  15868. let _state = this.chapInfoList;
  15869. // this.courseType this.taskCount
  15870. if (type == 1 || type == 2) {
  15871. for (var i = 0; i < _state.length; i++) {
  15872. let el = _state[i].chapterInfo[0].taskJson;
  15873. for (var j = 0; j < el.length; j++) {
  15874. // if (i == 0 && j == 0) {
  15875. // el[j].isLook = true;
  15876. // } else {
  15877. // el[j].isLook = false;
  15878. // }
  15879. if (
  15880. this.courseType > i ||
  15881. (this.courseType == i && this.taskCount + 1 > j)
  15882. ) {
  15883. el[j].isLook = true;
  15884. } else {
  15885. el[j].isLook = false;
  15886. }
  15887. }
  15888. }
  15889. }
  15890. let params = [
  15891. {
  15892. cid: this.id,
  15893. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  15894. },
  15895. ];
  15896. this.ajax
  15897. .post(
  15898. this.$store.state.api +
  15899. (type == 1 ? "addCourseState" : "updateCourseSate"),
  15900. params
  15901. )
  15902. .then((res) => {
  15903. if (this.IsLookOpen) {
  15904. this.setNavList();
  15905. }
  15906. if (type == 3 && type == 2) {
  15907. this.getCourseState(1);
  15908. }
  15909. })
  15910. .catch((err) => {
  15911. console.error(err);
  15912. });
  15913. },
  15914. getHomeWork() {
  15915. let params = {
  15916. cid: this.id,
  15917. stage: this.courseType,
  15918. task: this.taskCount,
  15919. uid: this.userid,
  15920. };
  15921. this.ajax
  15922. .get(this.$store.state.api + "selectWork", params)
  15923. .then((res) => {
  15924. if (res.data[0].length > 0) {
  15925. this.studyJuri = JSON.parse(res.data[0][0].content);
  15926. this.isNoHomeWork = true;
  15927. }
  15928. })
  15929. .catch((err) => {
  15930. console.error(err);
  15931. });
  15932. },
  15933. isAssetTypeAnImage(ext) {
  15934. return (
  15935. [
  15936. "png",
  15937. "jpg",
  15938. "jpeg",
  15939. "bmp",
  15940. "gif",
  15941. "webp",
  15942. "psd",
  15943. "svg",
  15944. "tiff",
  15945. ].indexOf(ext) !== -1
  15946. );
  15947. },
  15948. switchVideo(media) {
  15949. this.playerO = {};
  15950. this.playerOptions.poster = "";
  15951. this.playerOptions.sources[0].src = media;
  15952. this.playerO = this.playerOptions;
  15953. },
  15954. onPlayerPlay() {},
  15955. onPlayerTimeupdate(player) {
  15956. let gklog = player.cache_.currentTime; //当前播放的秒数
  15957. let a = player.cache_.duration; //视频的总时长
  15958. let gklog2 = parseInt(gklog);
  15959. // if(gklog2 == '3'){
  15960. // player.pause()
  15961. // setTimeout(()=>{
  15962. // player.currentTime(gklog2+1)
  15963. // player.play()
  15964. // },1000)
  15965. // }
  15966. console.log(" onPlayerTimeupdate!", gklog);
  15967. console.log(" onPlayerTimeupdate!", gklog2);
  15968. },
  15969. lookVedio(u, i) {
  15970. this.isClickNav = "";
  15971. // this.playerOptions.sources[0].src = u;
  15972. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15973. d.sources[0].src = u;
  15974. this.playerO[this.taskCount] = d;
  15975. this.showType = 0;
  15976. // this.isClickNav = "video" + i;
  15977. this.isClickNav = i;
  15978. this.$forceUpdate();
  15979. },
  15980. lookText(i, t) {
  15981. this.isClickNav = "";
  15982. // this.text = this.textList[i][t];
  15983. this.text = this.vChapterData[i][t];
  15984. // this.dialogVisible1 = true;
  15985. this.showType = 1;
  15986. // this.isClickNav = "text" + t;
  15987. this.isClickNav = t;
  15988. },
  15989. lookTools(i, t) {
  15990. this.chapTools = this.chapToolList[i][t];
  15991. this.dialogVisible2 = true;
  15992. },
  15993. openFile(f) {
  15994. this.pptImgUrl = "";
  15995. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15996. if (
  15997. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  15998. -1
  15999. ) {
  16000. this.pptImgUrl =
  16001. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  16002. this.showPDF = false;
  16003. this.dialogVisible3 = true;
  16004. } else if (
  16005. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16006. ) {
  16007. this.pptImgUrl = f;
  16008. this.showPDF = true;
  16009. this.dialogVisible3 = true;
  16010. }
  16011. },
  16012. openTable(f) {
  16013. this.tableJson = JSON.parse(f.works);
  16014. this.dialogVisibleTable2 = true;
  16015. },
  16016. openWord(f) {
  16017. this.tableJson = JSON.parse(f.works);
  16018. this.dialogVisibleTable3 = true;
  16019. },
  16020. doUrl(url, i) {
  16021. this.isClickNav = "";
  16022. this.pptImgUrl1 = "";
  16023. this.showType = 2;
  16024. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16025. url = "https://" + url;
  16026. }
  16027. this.pptImgUrl1 = "";
  16028. setTimeout(() => {
  16029. this.pptImgUrl1 = url;
  16030. }, 500);
  16031. // this.isClickNav = "line" + i;
  16032. this.isClickNav = i;
  16033. this.$forceUpdate();
  16034. },
  16035. checkPhoto(f, i) {
  16036. this.showType = 4;
  16037. this.pptImgUrl1 = f.url;
  16038. this.isClickNav = i;
  16039. this.$forceUpdate();
  16040. },
  16041. downFile(f, i) {
  16042. this.isClickNav = "";
  16043. this.pptImgUrl1 = "";
  16044. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  16045. if (
  16046. a.indexOf(
  16047. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  16048. ) != -1
  16049. ) {
  16050. this.pptImgUrl1 =
  16051. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  16052. // this.dialogVisible3 = true;
  16053. this.showType = 2;
  16054. } else if (
  16055. this.isAssetTypeAnImage(
  16056. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16057. )
  16058. ) {
  16059. this.showType = 4;
  16060. this.pptImgUrl1 = f.url;
  16061. } else if (
  16062. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16063. "PDF"
  16064. ) {
  16065. this.pptImgUrl1 = f.url;
  16066. // this.dialogVisible3 = true;
  16067. this.showType = 3;
  16068. } else {
  16069. window.open(this.file[i].url);
  16070. }
  16071. // this.isClickNav = "word" + i;
  16072. this.isClickNav = i;
  16073. },
  16074. downFileList(i) {
  16075. window.open(this.noImgList[i].url);
  16076. },
  16077. openAddWork() {
  16078. this.dialogVisible = true;
  16079. },
  16080. addBzWorks() {
  16081. let params = [
  16082. {
  16083. uid: this.userid,
  16084. cid: this.id,
  16085. stage: this.courseType,
  16086. task: this.taskCount,
  16087. tool: this.toolindex,
  16088. content: JSON.stringify(this.eScore),
  16089. type: 6,
  16090. },
  16091. ];
  16092. this.ajax
  16093. .post(this.$store.state.api + "addCourseWorks", params)
  16094. .then((res) => {
  16095. this.$message({
  16096. message: "提交成功",
  16097. type: "success",
  16098. });
  16099. this.eScore = { eBzText: "", eStar: [] };
  16100. this.studentEvalDialogVisible = false;
  16101. this.selectSWorks();
  16102. })
  16103. .catch((err) => {
  16104. this.$message.error("提交失败");
  16105. console.error(err);
  16106. });
  16107. },
  16108. addBzWorksTeacher() {
  16109. let params = [
  16110. {
  16111. uid: this.sStudent.userid,
  16112. cid: this.id,
  16113. stage: this.courseType,
  16114. task: this.taskCount,
  16115. tool: this.toolindex,
  16116. content: JSON.stringify(this.eScore),
  16117. type: 6,
  16118. },
  16119. ];
  16120. this.ajax
  16121. .post(this.$store.state.api + "addCourseWorks", params)
  16122. .then((res) => {
  16123. this.$message({
  16124. message: "提交成功",
  16125. type: "success",
  16126. });
  16127. this.eScore = { eBzText: "", eStar: [] };
  16128. this.studentEvalDialogVisibleTeacher = false;
  16129. this.selectSWorks();
  16130. })
  16131. .catch((err) => {
  16132. this.$message.error("提交失败");
  16133. console.error(err);
  16134. });
  16135. },
  16136. addStudentAsk() {
  16137. if (!this.radio.length) {
  16138. this.$message.error("请选择选项");
  16139. return;
  16140. }
  16141. for (var i = 0; i < this.askJson.askCount; i++) {
  16142. if (
  16143. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16144. (this.radio[i] !== 0 && !this.radio[i])
  16145. ) {
  16146. this.$message.error("请选择选项");
  16147. return;
  16148. }
  16149. }
  16150. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16151. let params = [
  16152. {
  16153. uid: this.userid,
  16154. cid: this.id,
  16155. stage: this.courseType,
  16156. task: this.taskCount,
  16157. tool: this.toolindex,
  16158. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16159. type: 2,
  16160. },
  16161. ];
  16162. this.ajax
  16163. .post(this.$store.state.api + "addCourseWorks", params)
  16164. .then((res) => {
  16165. this.$message({
  16166. message: "提交成功",
  16167. type: "success",
  16168. });
  16169. this.askList = [];
  16170. this.dialogVisible5 = false;
  16171. this.selectStudent();
  16172. this.selectSWorks();
  16173. this.selectSLook();
  16174. })
  16175. .catch((err) => {
  16176. this.$message.error("提交失败");
  16177. console.error(err);
  16178. });
  16179. },
  16180. addStudentAskTeacher() {
  16181. if (!this.radio.length) {
  16182. this.$message.error("请选择选项");
  16183. return;
  16184. }
  16185. for (var i = 0; i < this.askJson.askCount; i++) {
  16186. if (
  16187. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16188. (this.radio[i] !== 0 && !this.radio[i])
  16189. ) {
  16190. this.$message.error("请选择选项");
  16191. return;
  16192. }
  16193. }
  16194. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16195. let params = [
  16196. {
  16197. uid: this.sStudent.userid,
  16198. cid: this.id,
  16199. stage: this.courseType,
  16200. task: this.taskCount,
  16201. tool: this.toolindex,
  16202. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16203. type: 2,
  16204. },
  16205. ];
  16206. this.ajax
  16207. .post(this.$store.state.api + "addCourseWorks", params)
  16208. .then((res) => {
  16209. this.$message({
  16210. message: "提交成功",
  16211. type: "success",
  16212. });
  16213. this.askList = [];
  16214. this.dialogVisible5Teacher = false;
  16215. this.selectStudent();
  16216. this.selectSWorks();
  16217. this.selectSLook();
  16218. })
  16219. .catch((err) => {
  16220. this.$message.error("提交失败");
  16221. console.error(err);
  16222. });
  16223. },
  16224. addStudentTest() {
  16225. if (!this.radio.length) {
  16226. this.$message.error("请选择选项");
  16227. return;
  16228. }
  16229. for (var i = 0; i < this.testJson.testCount; i++) {
  16230. if (
  16231. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16232. (this.radio[i] !== 0 && !this.radio[i])
  16233. ) {
  16234. this.$message.error("请选择选项");
  16235. return;
  16236. }
  16237. }
  16238. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16239. let params = [
  16240. {
  16241. uid: this.userid,
  16242. cid: this.id,
  16243. stage: this.courseType,
  16244. task: this.taskCount,
  16245. tool: this.toolindex,
  16246. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16247. type: 8,
  16248. },
  16249. ];
  16250. this.ajax
  16251. .post(this.$store.state.api + "addCourseWorks", params)
  16252. .then((res) => {
  16253. this.$message({
  16254. message: "提交成功",
  16255. type: "success",
  16256. });
  16257. this.askList = [];
  16258. this.dialogVisibleChoice = false;
  16259. this.selectStudent();
  16260. this.selectSWorks();
  16261. this.selectSLook();
  16262. })
  16263. .catch((err) => {
  16264. this.$message.error("提交失败");
  16265. console.error(err);
  16266. });
  16267. },
  16268. addStudentTestTeacher() {
  16269. if (!this.radio.length) {
  16270. this.$message.error("请选择选项");
  16271. return;
  16272. }
  16273. for (var i = 0; i < this.testJson.testCount; i++) {
  16274. if (
  16275. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16276. (this.radio[i] !== 0 && !this.radio[i])
  16277. ) {
  16278. this.$message.error("请选择选项");
  16279. return;
  16280. }
  16281. }
  16282. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16283. let params = [
  16284. {
  16285. uid: this.sStudent.userid,
  16286. cid: this.id,
  16287. stage: this.courseType,
  16288. task: this.taskCount,
  16289. tool: this.toolindex,
  16290. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16291. type: 8,
  16292. },
  16293. ];
  16294. this.ajax
  16295. .post(this.$store.state.api + "addCourseWorks", params)
  16296. .then((res) => {
  16297. this.$message({
  16298. message: "提交成功",
  16299. type: "success",
  16300. });
  16301. this.askList = [];
  16302. this.dialogVisibleChoiceTeacher = false;
  16303. this.selectStudent();
  16304. this.selectSWorks();
  16305. this.selectSLook();
  16306. })
  16307. .catch((err) => {
  16308. this.$message.error("提交失败");
  16309. console.error(err);
  16310. });
  16311. },
  16312. addWork() {
  16313. if (this.studyJuri[0].content == "") {
  16314. this.$message.error("请将信息填写完整");
  16315. return;
  16316. } else if (this.studyJuri[0].cover.length == 0) {
  16317. this.$message.error("请将信息填写完整");
  16318. return;
  16319. } else if (this.studyJuri[0].upVedio.length == 0) {
  16320. this.$message.error("请将信息填写完整");
  16321. return;
  16322. }
  16323. if (this.isNoHomeWork) {
  16324. this.$confirm(
  16325. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  16326. "提示",
  16327. {
  16328. confirmButtonText: "确定",
  16329. cancelButtonText: "取消",
  16330. type: "warning",
  16331. }
  16332. )
  16333. .then(() => {
  16334. let params = [
  16335. {
  16336. uid: this.userid,
  16337. cid: this.id,
  16338. stage: this.courseType,
  16339. task: this.taskCount,
  16340. content: JSON.stringify(this.studyJuri),
  16341. },
  16342. ];
  16343. this.ajax
  16344. .post(this.$store.state.api + "addWorks", params)
  16345. .then((res) => {
  16346. this.$message({
  16347. message: "提交成功",
  16348. type: "success",
  16349. });
  16350. this.isNoHomeWork = true;
  16351. this.dialogVisible = false;
  16352. })
  16353. .catch((err) => {
  16354. this.$message.error("提交失败");
  16355. console.error(err);
  16356. });
  16357. })
  16358. .catch(() => {});
  16359. } else {
  16360. let params = [
  16361. {
  16362. uid: this.userid,
  16363. cid: this.id,
  16364. stage: this.courseType,
  16365. task: this.taskCount,
  16366. content: JSON.stringify(this.studyJuri),
  16367. },
  16368. ];
  16369. this.ajax
  16370. .post(this.$store.state.api + "addWorks", params)
  16371. .then((res) => {
  16372. this.$message({
  16373. message: "提交成功",
  16374. type: "success",
  16375. });
  16376. this.isNoHomeWork = true;
  16377. this.dialogVisible = false;
  16378. })
  16379. .catch((err) => {
  16380. this.$message.error("提交失败");
  16381. console.error(err);
  16382. });
  16383. }
  16384. },
  16385. selectCount() {
  16386. let params = {
  16387. cid: this.id,
  16388. chid: this.courseType,
  16389. uid: this.userid,
  16390. };
  16391. this.ajax
  16392. .get(this.$store.state.api + "selectToolsCount", params)
  16393. .then((res) => {
  16394. for (var i = 0; i < res.data[0].length; i++) {
  16395. if (res.data[0][i].tools == 1) {
  16396. this.wbCount = res.data[0][i].count;
  16397. } else if (res.data[0][i].tools == 2) {
  16398. this.wordCount = res.data[0][i].count;
  16399. } else if (res.data[0][i].tools == 3) {
  16400. this.mindCount = res.data[0][i].count;
  16401. } else if (res.data[0][i].tools == 4) {
  16402. this.askCount = res.data[0][i].count;
  16403. } else if (res.data[0][i].tools == 6) {
  16404. this.noteCount = res.data[0][i].count;
  16405. } else if (res.data[0][i].tools == 7) {
  16406. this.mindNetWorkCount = res.data[0][i].count;
  16407. } else if (res.data[0][i].tools == 8) {
  16408. this.libraryCount = res.data[0][i].count;
  16409. } else if (res.data[0][i].tools == 16) {
  16410. this.workCount = res.data[0][i].count;
  16411. } else if (res.data[0][i].tools == 10) {
  16412. this.timeCount = res.data[0][i].count;
  16413. } else if (res.data[0][i].tools == 15) {
  16414. this.answerCount = res.data[0][i].count;
  16415. } else if (res.data[0][i].tools == 18) {
  16416. this.trainCount = res.data[0][i].count;
  16417. }
  16418. }
  16419. })
  16420. .catch((err) => {
  16421. console.error(err);
  16422. });
  16423. },
  16424. openTools(t, i, index, c, sName) {
  16425. var z = JSON.parse(c);
  16426. this.noteName = sName;
  16427. if (t == 4) {
  16428. this.radio = [];
  16429. this.isAnswer = false;
  16430. let b = z[0].anwer;
  16431. this.radio = b;
  16432. this.askJson = z[0].askJson;
  16433. this.isAnswer = true;
  16434. this.dialogVisible5 = true;
  16435. } else if (t == 45) {
  16436. this.radio = [];
  16437. this.isAnswer = false;
  16438. let b = z[0].anwer;
  16439. this.radio = b;
  16440. this.testJson = z[0].testJson;
  16441. this.isAnswer = true;
  16442. this.dialogVisibleChoice = true;
  16443. }
  16444. // else if (t == 15) {
  16445. // this.answerQ = "";
  16446. // this.questionAnswer = "";
  16447. // this.answerQ = z[0].answerTitle;
  16448. // this.questionAnswer = z[0].answer;
  16449. // this.answerDialogVisible = true;
  16450. // }
  16451. },
  16452. fastText(p, t) {
  16453. if (t == 1) {
  16454. this.commentText += p;
  16455. } else {
  16456. this.eScore.eBzText += p;
  16457. }
  16458. },
  16459. addTools(t, i, index) {
  16460. var a = 0;
  16461. // this.taskCount = index;
  16462. this.toolindex = i;
  16463. if (t == 1) {
  16464. if (this.wbCount > 0) {
  16465. this.updateCount(this.wbCount, t);
  16466. } else {
  16467. this.wbCount++;
  16468. a = this.wbCount;
  16469. this.toolsCount(a, t);
  16470. }
  16471. window.parent.postMessage(
  16472. {
  16473. tools: "1",
  16474. cid: this.id,
  16475. stage: this.courseType,
  16476. task: this.taskCount,
  16477. tool: i,
  16478. },
  16479. "*"
  16480. );
  16481. } else if (t == 2) {
  16482. if (this.wordCount > 0) {
  16483. this.updateCount(this.wordCount, t);
  16484. } else {
  16485. this.wordCount++;
  16486. a = this.wordCount;
  16487. this.toolsCount(a, t);
  16488. }
  16489. window.parent.postMessage({ tools: "2" }, "*");
  16490. } else if (t == 3) {
  16491. if (this.mindCount > 0) {
  16492. this.updateCount(this.mindCount, t);
  16493. } else {
  16494. this.mindCount++;
  16495. a = this.mindCount;
  16496. this.toolsCount(a, t);
  16497. }
  16498. window.parent.postMessage(
  16499. {
  16500. tools: "3",
  16501. cid: this.id,
  16502. stage: this.courseType,
  16503. task: this.taskCount,
  16504. tool: i,
  16505. },
  16506. "*"
  16507. );
  16508. } else if (t == 4) {
  16509. this.radio = [];
  16510. this.noteName = "";
  16511. this.isAnswer = false;
  16512. if (this.askCount > 0) {
  16513. this.updateCount(this.askCount, t);
  16514. } else {
  16515. this.askCount++;
  16516. a = this.askCount;
  16517. this.toolsCount(a, t);
  16518. }
  16519. if (!this.dialogVisible2) {
  16520. this.askJson.askJson =
  16521. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16522. index
  16523. ].toolChoose[i].askJson;
  16524. this.askJson.askTitle =
  16525. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16526. index
  16527. ].toolChoose[i].askTitle;
  16528. this.askJson.askCount =
  16529. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16530. index
  16531. ].toolChoose[i].askCount;
  16532. } else {
  16533. this.askJson.askJson = this.chapTools.askJson.askJson;
  16534. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  16535. this.askJson.askCount = this.chapTools.askJson.askCount;
  16536. }
  16537. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16538. if (this.askJson.askJson[k].type == "2") {
  16539. this.radio.push([]);
  16540. } else {
  16541. this.radio.push("");
  16542. }
  16543. }
  16544. this.dialogVisible5 = true;
  16545. // window.parent.postMessage({ tools: "4" }, "*");
  16546. } else if (t == 45) {
  16547. this.noteName = "";
  16548. this.radio = [];
  16549. this.isAnswer = false;
  16550. if (this.askCount > 0) {
  16551. this.updateCount(this.askCount, t);
  16552. } else {
  16553. this.askCount++;
  16554. a = this.askCount;
  16555. this.toolsCount(a, t);
  16556. }
  16557. this.testJson =
  16558. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16559. index
  16560. ].toolChoose[i].testJson;
  16561. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16562. if (this.testJson.testJson[k].type == "2") {
  16563. this.radio.push([]);
  16564. } else {
  16565. this.radio.push("");
  16566. }
  16567. }
  16568. this.dialogVisibleChoice = true;
  16569. // window.parent.postMessage({ tools: "4" }, "*");
  16570. } else if (t == 5) {
  16571. if (this.scoreCount > 0) {
  16572. this.updateCount(this.scoreCount, t);
  16573. } else {
  16574. this.scoreCount++;
  16575. a = this.scoreCount;
  16576. this.toolsCount(a, t);
  16577. }
  16578. this.dialogVisible4 = true;
  16579. // window.parent.postMessage({ tools: "5" }, "*");
  16580. } else if (t == 6) {
  16581. if (this.noteCount > 0) {
  16582. this.updateCount(this.noteCount, t);
  16583. } else {
  16584. this.noteCount++;
  16585. a = this.noteCount;
  16586. this.toolsCount(a, t);
  16587. }
  16588. window.parent.postMessage(
  16589. {
  16590. tools: "6",
  16591. cid: this.id,
  16592. stage: this.courseType,
  16593. task: this.taskCount,
  16594. tool: i,
  16595. },
  16596. "*"
  16597. );
  16598. } else if (t == 7) {
  16599. if (this.mindNetWorkCount > 0) {
  16600. this.updateCount(this.mindNetWorkCount, t);
  16601. } else {
  16602. this.mindNetWorkCount++;
  16603. a = this.mindNetWorkCount;
  16604. this.toolsCount(a, t);
  16605. }
  16606. window.parent.postMessage(
  16607. {
  16608. tools: "7",
  16609. cid: this.id,
  16610. stage: this.courseType,
  16611. task: this.taskCount,
  16612. tool: i,
  16613. },
  16614. "*"
  16615. );
  16616. } else if (t == 16) {
  16617. if (this.workCount > 0) {
  16618. this.updateCount(this.workCount, t);
  16619. } else {
  16620. this.workCount++;
  16621. a = this.workCount;
  16622. this.toolsCount(a, t);
  16623. }
  16624. this.dialogVisible = true;
  16625. } else if (t == 50) {
  16626. if (this.tType == 2) {
  16627. this.$message.error("不支持学生使用");
  16628. return;
  16629. }
  16630. this.plworkFile = [];
  16631. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16632. if (!this.uploadCid) {
  16633. this.$message.error(
  16634. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16635. );
  16636. return;
  16637. }
  16638. // this.uploadCid =
  16639. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16640. // index
  16641. // ].toolChoose[i].uploadJson[0];
  16642. this.selectUploadStudent(2);
  16643. } else if (t == 8) {
  16644. if (this.libraryCount > 0) {
  16645. this.updateCount(this.libraryCount, t);
  16646. } else {
  16647. this.libraryCount++;
  16648. a = this.libraryCount;
  16649. this.toolsCount(a, t);
  16650. }
  16651. window.parent.postMessage({ tools: "8" }, "*");
  16652. } else if (t == 17) {
  16653. if (this.libraryCount > 0) {
  16654. this.updateCount(this.libraryCount, t);
  16655. } else {
  16656. this.libraryCount++;
  16657. a = this.libraryCount;
  16658. this.toolsCount(a, t);
  16659. }
  16660. window.parent.postMessage({ tools: "17" }, "*");
  16661. } else if (t == 18) {
  16662. if (this.trainCount > 0) {
  16663. this.updateCount(this.trainCount, t);
  16664. } else {
  16665. this.trainCount++;
  16666. a = this.trainCount;
  16667. this.toolsCount(a, t);
  16668. }
  16669. window.parent.postMessage({ tools: "18" }, "*");
  16670. } else if (t == 10) {
  16671. if (this.timeCount > 0) {
  16672. this.updateCount(this.timeCount, t);
  16673. } else {
  16674. this.timeCount++;
  16675. a = this.timeCount;
  16676. this.toolsCount(a, t);
  16677. }
  16678. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  16679. .taskJson[index].toolChoose[i].preTime
  16680. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16681. .toolChoose[i].preTime
  16682. : "";
  16683. this.timeDialogVisible = true;
  16684. } else if (t == 15) {
  16685. this.answerQ = "";
  16686. this.questionAnswer = "";
  16687. if (this.answerCount > 0) {
  16688. this.updateCount(this.answerCount, t);
  16689. } else {
  16690. this.answerCount++;
  16691. a = this.answerCount;
  16692. this.toolsCount(a, t);
  16693. }
  16694. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16695. .taskJson[index].toolChoose[i].answerQ
  16696. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16697. .toolChoose[i].answerQ
  16698. : "";
  16699. this.answerDialogVisible = true;
  16700. } else if (t == 21) {
  16701. window.parent.postMessage({ tools: "21" }, "*");
  16702. } else if (t == 22) {
  16703. window.parent.postMessage({ tools: "22" }, "*");
  16704. } else if (t == 23) {
  16705. window.parent.postMessage({ tools: "23" }, "*");
  16706. } else if (t == 24) {
  16707. window.parent.postMessage({ tools: "24" }, "*");
  16708. } else if (t == 25) {
  16709. window.parent.postMessage({ tools: "25" }, "*");
  16710. } else if (t == 31) {
  16711. window.parent.postMessage({ tools: "31" }, "*");
  16712. } else if (t == 28) {
  16713. window.parent.postMessage({ tools: "28" }, "*");
  16714. } else if (t == 37) {
  16715. window.parent.postMessage({ tools: "37" }, "*");
  16716. } else if (t == 38) {
  16717. window.parent.postMessage({ tools: "38" }, "*");
  16718. } else if (t == 39) {
  16719. window.parent.postMessage({ tools: "39" }, "*");
  16720. } else if (t == 32) {
  16721. window.parent.postMessage({ tools: "32" }, "*");
  16722. } else if (t == 66) {
  16723. window.parent.postMessage({ tools: "66" }, "*");
  16724. } else if (t == 67) {
  16725. window.parent.postMessage({ tools: "67" }, "*");
  16726. } else if (t == 68) {
  16727. window.parent.postMessage({ tools: "68" }, "*");
  16728. } else if (t == 57) {
  16729. // window.parent.postMessage({ tools: "57" }, "*");
  16730. window.parent.postMessage(
  16731. {
  16732. tools: "57u",
  16733. cid: this.id,
  16734. stage: this.courseType,
  16735. task: this.taskCount,
  16736. tool: i,
  16737. },
  16738. "*"
  16739. );
  16740. } else if (t == 58) {
  16741. window.parent.postMessage({ tools: "58" }, "*");
  16742. } else if (t == 59) {
  16743. window.parent.postMessage({ tools: "59" }, "*");
  16744. } else if (t == 60) {
  16745. window.parent.postMessage({ tools: "60" }, "*");
  16746. } else if (t == 61) {
  16747. window.parent.postMessage({ tools: "61" }, "*");
  16748. } else if (t == 63) {
  16749. window.parent.postMessage({ tools: "63" }, "*");
  16750. } else if (t == 65) {
  16751. if (this.tType == 2) {
  16752. this.$message.error("不支持学生使用");
  16753. return;
  16754. }
  16755. this.uploadCid = this.tcid;
  16756. if (!this.uploadCid) {
  16757. this.$message.error(
  16758. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  16759. );
  16760. return;
  16761. }
  16762. this.selectPickStudent();
  16763. } else if (t == 26) {
  16764. window.parent.postMessage(
  16765. {
  16766. tools: "26",
  16767. cid: this.id,
  16768. stage: this.courseType,
  16769. task: this.taskCount,
  16770. tool: i,
  16771. },
  16772. "*"
  16773. );
  16774. } else if (t == 40) {
  16775. if (this.evalCount > 0) {
  16776. this.updateCount(this.evalCount, t);
  16777. } else {
  16778. this.evalCount++;
  16779. a = this.evalCount;
  16780. this.toolsCount(a, t);
  16781. }
  16782. this.eScore = { eBzText: "", eStar: [] };
  16783. if (this.worksStudent[i].length) {
  16784. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16785. if (this.userid == this.worksStudent[i][k].userid) {
  16786. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16787. this.rateJson =
  16788. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16789. index
  16790. ].toolChoose[i].rateJson;
  16791. break;
  16792. } else {
  16793. this.rateJson =
  16794. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16795. index
  16796. ].toolChoose[i].rateJson;
  16797. }
  16798. }
  16799. } else {
  16800. this.rateJson =
  16801. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16802. index
  16803. ].toolChoose[i].rateJson;
  16804. }
  16805. this.isStar = false;
  16806. this.studentEvalDialogVisible = true;
  16807. } else if (t == 41) {
  16808. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16809. .taskJson[index].toolChoose[i].selectJson
  16810. ? JSON.parse(
  16811. JSON.stringify(
  16812. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16813. index
  16814. ].toolChoose[i].selectJson
  16815. )
  16816. )
  16817. : { url: "", select: [], answer: [] };
  16818. if (this.worksStudent[i].length) {
  16819. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16820. if (this.userid == this.worksStudent[i][k].userid) {
  16821. var a = this.worksStudent[i][k].works.split(",");
  16822. for (var ki = 0; ki < a.length; ki++) {
  16823. a[ki] = parseInt(a[ki]);
  16824. }
  16825. this.selectAnswer = {
  16826. answer: a,
  16827. stu: this.worksStudent[i][k].sName,
  16828. };
  16829. break;
  16830. } else {
  16831. this.selectAnswer = { answer: [], stu: "" };
  16832. }
  16833. }
  16834. } else {
  16835. this.selectAnswer = { answer: [], stu: "" };
  16836. }
  16837. this.isSelect = false;
  16838. this.dialogVisibleSelect = true;
  16839. } else if (t == 44) {
  16840. window.parent.postMessage({ tools: "44" }, "*");
  16841. } else if (t == 47) {
  16842. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16843. .taskJson[index].toolChoose[i].sentenceList
  16844. ? JSON.parse(
  16845. JSON.stringify(
  16846. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16847. index
  16848. ].toolChoose[i].sentenceList
  16849. )
  16850. )
  16851. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16852. for (var q = 0; q < this.sentenceList.length; q++) {
  16853. this.sentenceList[q].chooseSenList = [];
  16854. this.sentenceList[q].addChangeSen = [];
  16855. this.sentenceList[q].addChangeSen = JSON.parse(
  16856. JSON.stringify(this.sentenceList[q].addSentence)
  16857. );
  16858. this.sentenceList[q].chooseSenList.length =
  16859. this.sentenceList[q].rightAnswer.length;
  16860. }
  16861. this.dialogVisibleSentence = true;
  16862. } else if (t == 48) {
  16863. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16864. .taskJson[index].toolChoose[i].tableJson
  16865. ? JSON.parse(
  16866. JSON.stringify(
  16867. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16868. index
  16869. ].toolChoose[i].tableJson
  16870. )
  16871. )
  16872. : { text: "" };
  16873. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  16874. if (this.worksStudent[i].length) {
  16875. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16876. if (this.userid == this.worksStudent[i][k].userid) {
  16877. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16878. break;
  16879. }
  16880. }
  16881. }
  16882. this.dialogVisibleTable = true;
  16883. } else if (t == 52) {
  16884. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16885. .taskJson[index].toolChoose[i].wordJson
  16886. ? JSON.parse(
  16887. JSON.stringify(
  16888. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16889. index
  16890. ].toolChoose[i].wordJson
  16891. )
  16892. )
  16893. : { text: "" };
  16894. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  16895. if (this.worksStudent[i].length) {
  16896. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16897. if (this.userid == this.worksStudent[i][k].userid) {
  16898. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  16899. break;
  16900. }
  16901. }
  16902. }
  16903. this.dialogVisibleWord = true;
  16904. } else if (t == 49) {
  16905. this.groupJson =
  16906. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16907. index
  16908. ].toolChoose[i].groupJson;
  16909. this.islock = this.groupJson.islock == 1 ? true : false;
  16910. this.dialogVisibleGroup = true;
  16911. } else if (t == 62) {
  16912. this.videoJson =
  16913. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16914. index
  16915. ].toolChoose[i].videoJson;
  16916. this.dialogVisibleVideo = true;
  16917. }
  16918. },
  16919. teacherWorkSubmit(t, i, index, s) {
  16920. this.sStudent = s;
  16921. this.toolindex = i;
  16922. this.sTool = t;
  16923. if (this.tType !== "1" && this.tType !== "4") {
  16924. return;
  16925. }
  16926. if (t == 16 || t == 32 || t == 50) {
  16927. this.dialogVisibleWorks = true;
  16928. } else if (t == 15) {
  16929. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16930. .taskJson[index].toolChoose[i].answerQ
  16931. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16932. .toolChoose[i].answerQ
  16933. : "";
  16934. this.questionAnswer = "";
  16935. this.answerDialogVisibleTeacher = true; //问答
  16936. } else if (t == 52) {
  16937. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16938. .taskJson[index].toolChoose[i].wordJson
  16939. ? JSON.parse(
  16940. JSON.stringify(
  16941. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16942. index
  16943. ].toolChoose[i].wordJson
  16944. )
  16945. )
  16946. : { text: "" };
  16947. if (this.worksStudent[i].length) {
  16948. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16949. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16950. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  16951. break;
  16952. }
  16953. }
  16954. }
  16955. this.dialogVisibleWordTeacher = true; //文档
  16956. } else if (t == 4) {
  16957. this.radio = [];
  16958. this.noteName = "";
  16959. this.isAnswer = false;
  16960. if (this.askCount > 0) {
  16961. this.updateCount(this.askCount, t);
  16962. } else {
  16963. this.askCount++;
  16964. a = this.askCount;
  16965. this.toolsCount(a, t);
  16966. }
  16967. if (!this.dialogVisible2) {
  16968. this.askJson.askJson =
  16969. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16970. index
  16971. ].toolChoose[i].askJson;
  16972. this.askJson.askTitle =
  16973. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16974. index
  16975. ].toolChoose[i].askTitle;
  16976. this.askJson.askCount =
  16977. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16978. index
  16979. ].toolChoose[i].askCount;
  16980. } else {
  16981. this.askJson.askJson = this.chapTools.askJson.askJson;
  16982. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  16983. this.askJson.askCount = this.chapTools.askJson.askCount;
  16984. }
  16985. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16986. if (this.askJson.askJson[k].type == "2") {
  16987. this.radio.push([]);
  16988. } else {
  16989. this.radio.push("");
  16990. }
  16991. }
  16992. this.dialogVisible5Teacher = true;
  16993. } else if (t == 45) {
  16994. this.noteName = "";
  16995. this.radio = [];
  16996. this.isAnswer = false;
  16997. if (this.askCount > 0) {
  16998. this.updateCount(this.askCount, t);
  16999. } else {
  17000. this.askCount++;
  17001. a = this.askCount;
  17002. this.toolsCount(a, t);
  17003. }
  17004. this.testJson =
  17005. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17006. index
  17007. ].toolChoose[i].testJson;
  17008. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17009. if (this.testJson.testJson[k].type == "2") {
  17010. this.radio.push([]);
  17011. } else {
  17012. this.radio.push("");
  17013. }
  17014. }
  17015. this.dialogVisibleChoiceTeacher = true;
  17016. } else if (t == 41) {
  17017. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17018. .taskJson[index].toolChoose[i].selectJson
  17019. ? JSON.parse(
  17020. JSON.stringify(
  17021. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17022. index
  17023. ].toolChoose[i].selectJson
  17024. )
  17025. )
  17026. : { url: "", select: [], answer: [] };
  17027. if (this.worksStudent[i].length) {
  17028. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17029. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17030. var a = this.worksStudent[i][k].works.split(",");
  17031. for (var ki = 0; ki < a.length; ki++) {
  17032. a[ki] = parseInt(a[ki]);
  17033. }
  17034. this.selectAnswer = {
  17035. answer: a,
  17036. stu: this.worksStudent[i][k].sName,
  17037. };
  17038. break;
  17039. } else {
  17040. this.selectAnswer = { answer: [], stu: "" };
  17041. }
  17042. }
  17043. } else {
  17044. this.selectAnswer = { answer: [], stu: "" };
  17045. }
  17046. this.isSelect = false;
  17047. this.dialogVisibleSelectTeacher = true;
  17048. } else if (t == 47) {
  17049. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17050. .taskJson[index].toolChoose[i].sentenceList
  17051. ? JSON.parse(
  17052. JSON.stringify(
  17053. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17054. index
  17055. ].toolChoose[i].sentenceList
  17056. )
  17057. )
  17058. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17059. for (var q = 0; q < this.sentenceList.length; q++) {
  17060. this.sentenceList[q].chooseSenList = [];
  17061. this.sentenceList[q].addChangeSen = [];
  17062. this.sentenceList[q].addChangeSen = JSON.parse(
  17063. JSON.stringify(this.sentenceList[q].addSentence)
  17064. );
  17065. this.sentenceList[q].chooseSenList.length =
  17066. this.sentenceList[q].rightAnswer.length;
  17067. }
  17068. this.dialogVisibleSentenceTeacher = true;
  17069. } else if (t == 48) {
  17070. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17071. .taskJson[index].toolChoose[i].tableJson
  17072. ? JSON.parse(
  17073. JSON.stringify(
  17074. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17075. index
  17076. ].toolChoose[i].tableJson
  17077. )
  17078. )
  17079. : { text: "" };
  17080. if (this.worksStudent[i].length) {
  17081. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17082. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17083. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17084. break;
  17085. }
  17086. }
  17087. }
  17088. this.dialogVisibleTableTeacher = true;
  17089. } else if (t == 40) {
  17090. if (this.evalCount > 0) {
  17091. this.updateCount(this.evalCount, t);
  17092. } else {
  17093. this.evalCount++;
  17094. a = this.evalCount;
  17095. this.toolsCount(a, t);
  17096. }
  17097. this.eScore = { eBzText: "", eStar: [] };
  17098. if (this.worksStudent[i].length) {
  17099. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17100. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17101. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17102. this.rateJson =
  17103. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17104. index
  17105. ].toolChoose[i].rateJson;
  17106. break;
  17107. } else {
  17108. this.rateJson =
  17109. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17110. index
  17111. ].toolChoose[i].rateJson;
  17112. }
  17113. }
  17114. } else {
  17115. this.rateJson =
  17116. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17117. index
  17118. ].toolChoose[i].rateJson;
  17119. }
  17120. this.isStar = false;
  17121. this.studentEvalDialogVisibleTeacher = true;
  17122. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17123. window.parent.postMessage(
  17124. {
  17125. tools: t + "teacher",
  17126. cid: this.id,
  17127. stage: this.courseType,
  17128. task: this.taskCount,
  17129. tool: i,
  17130. student: this.sStudent,
  17131. },
  17132. "*"
  17133. );
  17134. }
  17135. },
  17136. openCocoPi(tool, i, uid, uname) {
  17137. let student = {
  17138. userid: uid,
  17139. student: uname,
  17140. };
  17141. if (tool == 57) {
  17142. window.parent.postMessage(
  17143. {
  17144. tools: tool + "teacher",
  17145. cid: this.id,
  17146. stage: this.courseType,
  17147. task: this.taskCount,
  17148. tool: i,
  17149. student: student,
  17150. },
  17151. "*"
  17152. );
  17153. }
  17154. },
  17155. setRightAnswer(s, i, j) {
  17156. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17157. if (
  17158. this.sentenceList[i].chooseSenList[q] == undefined ||
  17159. this.sentenceList[i].chooseSenList[q] == ""
  17160. ) {
  17161. this.sentenceList[i].chooseSenList[q] = s;
  17162. this.sentenceList[i].addChangeSen[j] = "";
  17163. break;
  17164. }
  17165. }
  17166. this.$forceUpdate();
  17167. },
  17168. returnCard(r, i, j) {
  17169. var a = this.sentenceList[i].addSentence.indexOf(r);
  17170. this.sentenceList[i].chooseSenList[j] = "";
  17171. this.sentenceList[i].addChangeSen[a] = r;
  17172. this.$forceUpdate();
  17173. },
  17174. // addSentenceTool() {
  17175. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17176. // this.taskCount
  17177. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17178. // this.sentenceList = [
  17179. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17180. // ];
  17181. // this.dialogVisibleSentence = false;
  17182. // },
  17183. toolsCount(a, t) {
  17184. let params = {
  17185. cid: this.id,
  17186. chid: this.courseType,
  17187. uid: this.userid,
  17188. tid: t,
  17189. count: a,
  17190. };
  17191. this.ajax
  17192. .get(this.$store.state.api + "insertToolsCount", params)
  17193. .then((res) => {
  17194. this.selectCount();
  17195. })
  17196. .catch((err) => {
  17197. console.error(err);
  17198. });
  17199. },
  17200. updateCount(c, t) {
  17201. c++;
  17202. let params = {
  17203. cid: this.id,
  17204. chid: this.courseType,
  17205. uid: this.userid,
  17206. tid: t,
  17207. count: c,
  17208. };
  17209. this.ajax
  17210. .get(this.$store.state.api + "updateToolsCount", params)
  17211. .then((res) => {
  17212. this.selectCount();
  17213. })
  17214. .catch((err) => {
  17215. console.error(err);
  17216. });
  17217. },
  17218. checkEva() {
  17219. if (this.evalua != "") {
  17220. for (var i = 0; i < this.evaJuri.length; i++) {
  17221. if (this.evalua == this.evaJuri[i].id) {
  17222. this.eTitle = this.evaJuri[i].title;
  17223. this.eJson = JSON.parse(this.evaJuri[i].content);
  17224. }
  17225. }
  17226. this.$forceUpdate();
  17227. setTimeout(() => {
  17228. this.setMindData();
  17229. }, 0);
  17230. }
  17231. },
  17232. selectEva() {
  17233. let params = {
  17234. oid: this.oid,
  17235. };
  17236. this.ajax
  17237. .get(this.$store.state.api + "selectAllEvaluation", params)
  17238. .then((res) => {
  17239. this.evaJuri = res.data[0];
  17240. })
  17241. .catch((err) => {
  17242. console.error(err);
  17243. });
  17244. },
  17245. setMindData() {
  17246. this.data.data = [];
  17247. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  17248. let _eJson = Object.keys(this.eJson);
  17249. let _e = this.eJson;
  17250. for (let i = 0; i < _eJson.length; i++) {
  17251. let element = _e[_eJson[i]];
  17252. this.data.data.push({
  17253. id: element.id,
  17254. parentid: "root",
  17255. topic: element.name,
  17256. });
  17257. let _eJsonc = Object.keys(element.child);
  17258. let _e2 = element.child;
  17259. for (let j = 0; j < _eJsonc.length; j++) {
  17260. let _ec = _e2[_eJsonc[j]];
  17261. this.data.data.push({
  17262. id: _ec.id,
  17263. parentid: element.id,
  17264. topic: _ec.name,
  17265. });
  17266. let _eJsonz = Object.keys(_ec.child);
  17267. let _e3 = _ec.child;
  17268. for (let z = 0; z < _eJsonz.length; z++) {
  17269. let _ez = _e3[_eJsonz[z]];
  17270. this.data.data.push({
  17271. id: _ez.id,
  17272. parentid: _ec.id,
  17273. topic: _ez.name,
  17274. });
  17275. }
  17276. }
  17277. }
  17278. this.$forceUpdate();
  17279. },
  17280. checkFileFull(type, url) {
  17281. this.fullDialogVisible = true;
  17282. this.fulltype = type;
  17283. this.fullUrl = url;
  17284. },
  17285. checkFileFull1(t, f) {
  17286. this.fullDialogVisible = true;
  17287. if (t == 6) {
  17288. this.fulltype = 1;
  17289. this.fullUrl = JSON.parse(JSON.stringify(f));
  17290. } else if (t == 8) {
  17291. this.fulltype = 2;
  17292. this.fullUrl = f.url;
  17293. } else if (
  17294. t == 3 &&
  17295. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17296. "PDF"
  17297. ) {
  17298. this.fulltype = 3;
  17299. this.fullUrl = f.url;
  17300. } else if (t == 3) {
  17301. this.fulltype = 2;
  17302. this.fullUrl =
  17303. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  17304. }
  17305. },
  17306. openSname(n, id, i, uid) {
  17307. this.snameWid = id;
  17308. this.worksSName = n;
  17309. this.worksSid = uid == n ? "" : uid;
  17310. this.toolindex = i;
  17311. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17312. if (!this.uploadCid) {
  17313. this.$message.error(
  17314. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17315. );
  17316. return;
  17317. }
  17318. this.selectUploadStudent(1);
  17319. },
  17320. updateName() {
  17321. let params = {
  17322. n: this.worksSName,
  17323. cid: this.snameWid,
  17324. };
  17325. this.ajax
  17326. .get(this.$store.state.api + "updateCourseWorksName", params)
  17327. .then((res) => {
  17328. this.$message({
  17329. message: "修改成功",
  17330. type: "success",
  17331. });
  17332. this.dialogVisibleSname = false;
  17333. this.getCourseDetail(2);
  17334. this.snameWid = "";
  17335. this.worksSName = "";
  17336. })
  17337. .catch((err) => {
  17338. console.error(err);
  17339. });
  17340. },
  17341. downloadFile2(f) {
  17342. // const loading = this.$loading.service({
  17343. // background: "rgba(255, 255, 255, 0.7)",
  17344. // target: document.body,
  17345. // text: "文件加载中...",
  17346. // });
  17347. // let url2 = f.url;
  17348. // let _url2 = "";
  17349. // if (
  17350. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17351. // ) {
  17352. // _url2 = url2.split(
  17353. // "https://view.officeapps.live.com/op/view.aspx?src="
  17354. // )[1];
  17355. // } else {
  17356. // _url2 = url2;
  17357. // }
  17358. // let params = {
  17359. // url: _url2,
  17360. // name: f.name,
  17361. // };
  17362. // this.ajax
  17363. // .get(this.$store.state.api + "download", params)
  17364. // .then((res) => {
  17365. // loading.close();
  17366. // let content = res.data.data.data;
  17367. // let ab = new ArrayBuffer(content.length);
  17368. // let view = new Uint8Array(ab);
  17369. // for (var i = 0; i < content.length; ++i) {
  17370. // view[i] = content[i];
  17371. // }
  17372. // let elink = document.createElement("a");
  17373. // elink.download = f.name;
  17374. // elink.style.display = "none";
  17375. // let blob = new Blob([ab], {
  17376. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  17377. // });
  17378. // elink.href = URL.createObjectURL(blob);
  17379. // document.body.appendChild(elink);
  17380. // elink.click();
  17381. // document.body.removeChild(elink);
  17382. // })
  17383. // .catch((err) => {
  17384. // loading.close();
  17385. // console.error(err);
  17386. // });
  17387. let url = f.url;
  17388. let _this = this;
  17389. let _url = "";
  17390. if (
  17391. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17392. ) {
  17393. _url = url.split(
  17394. "https://view.officeapps.live.com/op/view.aspx?src="
  17395. )[1];
  17396. } else {
  17397. _url = url;
  17398. }
  17399. const loading = _this.$loading.service({
  17400. background: "rgba(255, 255, 255, 0.7)",
  17401. target: document.body,
  17402. text: "文件加载中...",
  17403. });
  17404. let x = new XMLHttpRequest();
  17405. x.open("GET", _url, true);
  17406. x.responseType = "blob";
  17407. x.onload = function () {
  17408. loading.close();
  17409. let url = window.URL.createObjectURL(new Blob([x.response]));
  17410. let a = document.createElement("a");
  17411. a.name = f.name;
  17412. a.href = url;
  17413. a.download = f.name;
  17414. a.click();
  17415. };
  17416. x.send();
  17417. },
  17418. downloadFile(url) {
  17419. let _this = this;
  17420. let _url = "";
  17421. if (
  17422. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17423. ) {
  17424. _url = url.split(
  17425. "https://view.officeapps.live.com/op/view.aspx?src="
  17426. )[1];
  17427. } else {
  17428. _url = url;
  17429. }
  17430. const x = new XMLHttpRequest();
  17431. x.open("GET", _url, true);
  17432. x.responseType = "blob";
  17433. const loading = _this.$loading.service({
  17434. background: "rgba(255, 255, 255, 0.7)",
  17435. target: document.body,
  17436. text: "文件加载中...",
  17437. });
  17438. // _this.$message.success("文件下载中...");
  17439. x.onload = function (e) {
  17440. loading.close();
  17441. let content = x.response;
  17442. let elink = document.createElement("a");
  17443. elink.download = decodeURI(
  17444. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17445. );
  17446. elink.style.display = "none";
  17447. let blob = new Blob([content]);
  17448. elink.href = URL.createObjectURL(blob);
  17449. document.body.appendChild(elink);
  17450. elink.click();
  17451. document.body.removeChild(elink);
  17452. };
  17453. x.send();
  17454. },
  17455. openLine(url) {
  17456. window.open(url);
  17457. },
  17458. resize() {
  17459. if (document.getElementsByClassName("box_course").length) {
  17460. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17461. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17462. if (this.showType == 2 || this.showType == 3) {
  17463. document.getElementsByClassName("navBox")[0].style.height =
  17464. a - 40 + 46 + "px";
  17465. } else {
  17466. document.getElementsByClassName("navBox")[0].style.height =
  17467. a - 40 + "px";
  17468. }
  17469. }
  17470. this.Stbodywidth =
  17471. document.getElementsByClassName("student_body").length &&
  17472. document.getElementsByClassName("student_body")[0].offsetWidth;
  17473. },
  17474. closeDraw() {
  17475. this.bg = null;
  17476. this.drawShow = false;
  17477. },
  17478. showPicturePaint(url) {
  17479. let params = {
  17480. img: url,
  17481. };
  17482. this.ajax
  17483. .get(this.$store.state.api + "imgToBase64", params)
  17484. .then((res) => {
  17485. this.drawShow = true;
  17486. this.bg = res.data[0].img;
  17487. })
  17488. .catch((err) => {
  17489. console.error(err);
  17490. });
  17491. },
  17492. addImgDraw(base64) {
  17493. let file = { name: "批注图.png" };
  17494. let img = this.dataUrlToFile(base64, file);
  17495. this.beforeUpload1(img, 5);
  17496. },
  17497. addImgDrawImG(url) {
  17498. // console.log(url);
  17499. let params = [
  17500. {
  17501. wid: this.commentDetail.wid,
  17502. img: url,
  17503. },
  17504. ];
  17505. this.ajax
  17506. .post(this.$store.state.api + "updateCourseWorks", params)
  17507. .then((res) => {
  17508. this.$message({
  17509. message: "提交成功",
  17510. type: "success",
  17511. });
  17512. this.drawShow = false;
  17513. this.bg = "";
  17514. this.selectSWorks();
  17515. this.selectStudent();
  17516. })
  17517. .catch((err) => {
  17518. this.$message.error("提交失败");
  17519. console.error(err);
  17520. });
  17521. },
  17522. deletePicturePaint() {
  17523. this.$confirm("确定删除此批注吗?", "提示", {
  17524. confirmButtonText: "确定",
  17525. cancelButtonText: "取消",
  17526. type: "warning",
  17527. })
  17528. .then(() => {
  17529. let params = [
  17530. {
  17531. wid: this.commentDetail.wid,
  17532. img: "",
  17533. },
  17534. ];
  17535. this.ajax
  17536. .post(this.$store.state.api + "updateCourseWorks", params)
  17537. .then((res) => {
  17538. this.$message({
  17539. message: "删除成功",
  17540. type: "success",
  17541. });
  17542. this.selectSWorks();
  17543. this.selectStudent();
  17544. })
  17545. .catch((err) => {
  17546. this.$message.error("删除失败");
  17547. console.error(err);
  17548. });
  17549. })
  17550. .catch(() => {});
  17551. },
  17552. getAudioVideo(constraintsData) {
  17553. if (navigator.mediaDevices === undefined) {
  17554. navigator.mediaDevices = {};
  17555. }
  17556. if (navigator.mediaDevices.getUserMedia === undefined) {
  17557. navigator.mediaDevices.getUserMedia = function (constraints) {
  17558. // 首先,如果有getUserMedia的话,就获得它
  17559. var getUserMedia =
  17560. navigator.getUserMedia ||
  17561. navigator.webkitGetUserMedia ||
  17562. navigator.mozGetUserMedia ||
  17563. navigator.msGetUserMedia;
  17564. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  17565. if (!getUserMedia) {
  17566. return Promise.reject({ code: 404 });
  17567. }
  17568. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  17569. return new Promise(function (resolve, reject) {
  17570. getUserMedia.call(navigator, constraints, resolve, reject);
  17571. });
  17572. };
  17573. }
  17574. return navigator.mediaDevices.getUserMedia(constraintsData);
  17575. },
  17576. /**
  17577. * 开始录制
  17578. */
  17579. startRecording(callback) {
  17580. let _function = (screenStream) => {
  17581. this.addStreamStopListener(screenStream, () => {
  17582. console.log("流停止监听");
  17583. this.stopRecording();
  17584. this.$emit("streamStop", {});
  17585. // this.stopRecording();
  17586. });
  17587. var options = {
  17588. type: "video",
  17589. mimeType: "video/webm",
  17590. disableLogs: false,
  17591. getNativeBlob: false, // enable it for longer recordings
  17592. ignoreMutedMedia: false,
  17593. };
  17594. // this.video.srcObject = screenStream;
  17595. this.recorder = RecordRTC(screenStream, options);
  17596. this.recorder.startRecording();
  17597. this.recorder.screen = screenStream;
  17598. this.videoStart = true;
  17599. // callback(true);
  17600. };
  17601. this.getAudioVideo({ audio: true })
  17602. .then((res) => {
  17603. this.captureScreen(_function, true);
  17604. console.log("已点击允许,开启成功");
  17605. })
  17606. .catch((err) => {
  17607. // console.log('浏览器不支持,请更换浏览器')
  17608. // } else {
  17609. this.captureScreen(_function, false);
  17610. console.log("请检查是否存在麦克风");
  17611. });
  17612. },
  17613. /**
  17614. * 停止录制
  17615. */
  17616. stopRecording(callback) {
  17617. this.recorder.stopRecording(() => {
  17618. // this.video.src = this.video.srcObject = null;
  17619. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  17620. const url = URL.createObjectURL(this.recorder.getBlob());
  17621. const a = document.createElement("a"); //this.fileName+
  17622. let videoFile = new File(
  17623. [this.recorder.getBlob()],
  17624. this.courseDetail.title + "录屏.mp4",
  17625. {
  17626. type: "video/mp4",
  17627. }
  17628. );
  17629. let downloadUrl = URL.createObjectURL(videoFile);
  17630. document.body.appendChild(a);
  17631. a.style.display = "none";
  17632. a.href = url;
  17633. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  17634. a.click();
  17635. this.recorder.screen.stop();
  17636. this.recorder.destroy();
  17637. this.recorder = null;
  17638. this.videoStart = false;
  17639. // callback(false);
  17640. });
  17641. },
  17642. //初始化
  17643. captureScreen(callback, type) {
  17644. if (navigator.getDisplayMedia) {
  17645. //录制结束,文件下载
  17646. navigator
  17647. .getDisplayMedia({
  17648. video: true,
  17649. })
  17650. .then((screenStream) => {
  17651. if (type) {
  17652. navigator.mediaDevices
  17653. .getUserMedia({ audio: true })
  17654. .then((mic) => {
  17655. screenStream.addTrack(mic.getTracks()[0]);
  17656. callback(screenStream);
  17657. });
  17658. } else {
  17659. callback(screenStream);
  17660. }
  17661. })
  17662. .catch(function (error) {
  17663. console.log("error", error);
  17664. });
  17665. } else if (navigator.mediaDevices.getDisplayMedia) {
  17666. navigator.mediaDevices
  17667. .getDisplayMedia({
  17668. video: true,
  17669. })
  17670. .then((screenStream) => {
  17671. if (type) {
  17672. navigator.mediaDevices
  17673. .getUserMedia({ audio: true })
  17674. .then((mic) => {
  17675. screenStream.addTrack(mic.getTracks()[0]);
  17676. callback(screenStream);
  17677. });
  17678. } else {
  17679. callback(screenStream);
  17680. }
  17681. })
  17682. .catch(function (error) {
  17683. console.log("error", error);
  17684. });
  17685. } else {
  17686. var error = "getDisplayMedia API are not supported in this browser.";
  17687. console.log("error", error);
  17688. alert(error);
  17689. }
  17690. },
  17691. //流监听
  17692. addStreamStopListener(stream, callback) {
  17693. stream.addEventListener(
  17694. "ended",
  17695. function () {
  17696. callback();
  17697. callback = function () {};
  17698. },
  17699. false
  17700. );
  17701. stream.addEventListener(
  17702. "inactive",
  17703. function () {
  17704. callback();
  17705. callback = function () {};
  17706. },
  17707. false
  17708. );
  17709. stream.getTracks().forEach(function (track) {
  17710. track.addEventListener(
  17711. "ended",
  17712. function () {
  17713. callback();
  17714. callback = function () {};
  17715. },
  17716. false
  17717. );
  17718. track.addEventListener(
  17719. "inactive",
  17720. function () {
  17721. callback();
  17722. callback = function () {};
  17723. },
  17724. false
  17725. );
  17726. });
  17727. },
  17728. updateGroup() {
  17729. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17730. this.dialogVisibleGroup2 = true;
  17731. },
  17732. numberPan() {
  17733. if (
  17734. /[^\d]/.test(this.groupJson.number) ||
  17735. this.groupJson.number < 2 ||
  17736. this.groupJson.number > 10
  17737. ) {
  17738. this.$message.error("请输入2-10的数字");
  17739. this.groupJson.number = "";
  17740. }
  17741. },
  17742. updateGroupJson() {
  17743. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  17744. if (
  17745. this.groupStudentUid[this.toolindex][i].length >
  17746. this.groupJson2.number
  17747. ) {
  17748. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  17749. return;
  17750. }
  17751. }
  17752. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  17753. this.islock = this.groupJson.islock == 1 ? true : false;
  17754. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17755. this.taskCount
  17756. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  17757. let params = [
  17758. {
  17759. cid: this.id,
  17760. chapters: JSON.stringify(this.chapInfoList),
  17761. uid: this.userid,
  17762. unitIndex: this.courseType,
  17763. },
  17764. ];
  17765. this.ajax
  17766. .post(this.$store.state.api + "updateWorkNew4", params)
  17767. .then((res) => {
  17768. this.$message.success("设置成功");
  17769. this.getCourseDetail(2);
  17770. this.dialogVisibleGroup2 = false;
  17771. this.groupJson2 = {};
  17772. this.$forceUpdate();
  17773. })
  17774. .catch((err) => {
  17775. this.$message.error("网络不佳");
  17776. console.error(err);
  17777. });
  17778. },
  17779. lockChair() {
  17780. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17781. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  17782. this.updateGroupJson();
  17783. },
  17784. selectGroup(index) {
  17785. this.getCourseDetail(2, index);
  17786. },
  17787. joinGroup(index) {
  17788. if (this.groupJson.islock == 2) {
  17789. this.$message.error("位置已被锁定,无法加入");
  17790. return;
  17791. }
  17792. if (
  17793. this.groupStudent[this.toolindex][index].length >
  17794. this.groupJson.number ||
  17795. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  17796. ) {
  17797. this.$message.error("位置已满,无法加入");
  17798. return;
  17799. }
  17800. let params = [
  17801. {
  17802. cid: this.id,
  17803. stage: this.courseType,
  17804. task: this.taskCount,
  17805. tool: this.toolindex,
  17806. g: index,
  17807. uid: this.userid,
  17808. },
  17809. ];
  17810. this.ajax
  17811. .post(this.$store.state.api + "joinGroup", params)
  17812. .then((res) => {
  17813. this.$message.success("加入成功");
  17814. this.getCourseDetail(2);
  17815. })
  17816. .catch((err) => {
  17817. this.$message.error("网络不佳");
  17818. console.error(err);
  17819. });
  17820. },
  17821. exitGroup(id) {
  17822. if (this.groupJson.islock == 2) {
  17823. this.$message.error("位置已被锁定,无法退出");
  17824. return;
  17825. }
  17826. let params = [
  17827. {
  17828. gid: id,
  17829. },
  17830. ];
  17831. this.ajax
  17832. .post(this.$store.state.api + "exitGroup", params)
  17833. .then((res) => {
  17834. this.$message.success("退出成功");
  17835. this.getCourseDetail(2);
  17836. })
  17837. .catch((err) => {
  17838. this.$message.error("网络不佳");
  17839. console.error(err);
  17840. });
  17841. },
  17842. groupUpload(index, task, gindex) {
  17843. this.taskCount = task;
  17844. this.toolindex = index;
  17845. this.groupIndex = gindex;
  17846. this.dialogVisibleGroupWork = true;
  17847. },
  17848. updateGroupChair(user) {
  17849. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  17850. el.label = index;
  17851. return index != user.group;
  17852. });
  17853. this.updateGroupUser = user;
  17854. this.dialogVisibleUpdateGroup = true;
  17855. },
  17856. updateChair() {
  17857. if (
  17858. this.groupStudent[this.toolindex][this.checkChair].length >
  17859. this.groupJson.number ||
  17860. this.groupStudent[this.toolindex][this.checkChair].length ==
  17861. this.groupJson.number
  17862. ) {
  17863. this.$message.error("位置已满,无法加入");
  17864. return;
  17865. }
  17866. let params = [
  17867. {
  17868. cid: this.id,
  17869. stage: this.courseType,
  17870. task: this.taskCount,
  17871. tool: this.toolindex,
  17872. g: this.checkChair,
  17873. uid: this.updateGroupUser.userid,
  17874. },
  17875. ];
  17876. this.ajax
  17877. .post(this.$store.state.api + "joinGroup", params)
  17878. .then((res) => {
  17879. this.$message.success("修改成功");
  17880. this.updateGroupUser = {};
  17881. this.checkChair = "";
  17882. this.updateGroupArray = {};
  17883. this.dialogVisibleUpdateGroup = false;
  17884. this.getCourseDetail(2);
  17885. })
  17886. .catch((err) => {
  17887. this.$message.error("网络不佳");
  17888. console.error(err);
  17889. });
  17890. },
  17891. deleteGroupChair(gindex) {
  17892. this.checkDeleteGroup = [];
  17893. this.deleteGroupUser = JSON.parse(
  17894. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  17895. );
  17896. this.deleteGroupArray = this.groupJson.group[gindex];
  17897. this.groupIndex = gindex;
  17898. this.dialogVisibleDeleteGroup = true;
  17899. },
  17900. async deleteChair() {
  17901. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  17902. const gid =
  17903. this.groupStudent[this.toolindex][this.groupIndex][
  17904. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  17905. this.checkDeleteGroup[i]
  17906. )
  17907. ];
  17908. let params = [
  17909. {
  17910. gid: gid.id,
  17911. },
  17912. ];
  17913. var a = await this.deleteChairA(params);
  17914. if (i == this.checkDeleteGroup.length - 1) {
  17915. this.$message.success("退出成功");
  17916. this.dialogVisibleDeleteGroup = false;
  17917. this.deleteGroupUser = [];
  17918. this.deleteGroupArray = {};
  17919. this.groupIndex = "";
  17920. this.checkDeleteGroup = [];
  17921. this.getCourseDetail(2);
  17922. }
  17923. }
  17924. },
  17925. deleteChairA(params) {
  17926. return new Promise((resolve, reject) => {
  17927. this.ajax
  17928. .post(this.$store.state.api + "exitGroup", params)
  17929. .then((res) => {
  17930. resolve(1);
  17931. })
  17932. .catch((err) => {
  17933. this.$message.error("网络不佳");
  17934. console.error(err);
  17935. });
  17936. });
  17937. },
  17938. contract(i) {
  17939. if (this.isCloseList[i].isClose == 0) {
  17940. this.isCloseList[i].isClose = 1;
  17941. } else {
  17942. this.isCloseList[i].isClose = 0;
  17943. }
  17944. this.$forceUpdate();
  17945. },
  17946. openWordCloud(toolindex) {
  17947. let array = [];
  17948. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  17949. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  17950. array.push({ name: works });
  17951. }
  17952. if (this.isGroup) {
  17953. for (var i = 0; i < this.courseGroup.group.length; i++) {
  17954. let works = this.courseGroup.group[i].works[toolindex];
  17955. for (var j = 0; j < works.length; j++) {
  17956. let answer = JSON.parse(works[j].works)[0].answer;
  17957. array.push({ name: answer });
  17958. }
  17959. }
  17960. }
  17961. this.wordCloudData = array;
  17962. this.dialogVisibleWordCloud = true;
  17963. },
  17964. uploadWorks(i) {
  17965. this.$confirm("确定导出作业吗?", "提示", {
  17966. confirmButtonText: "确定",
  17967. cancelButtonText: "取消",
  17968. type: "warning",
  17969. })
  17970. .then(() => {
  17971. const loading = this.$loading.service({
  17972. background: "rgba(255, 255, 255, 0.7)",
  17973. target: document.body,
  17974. text: "文件加载中...",
  17975. });
  17976. const _worksStudent = this.worksStudent;
  17977. let url = [];
  17978. var counts = {};
  17979. for (var l = 0; l < _worksStudent[i].length; l++) {
  17980. var item = _worksStudent[i][l];
  17981. var name = item.sName;
  17982. if (!counts.hasOwnProperty(name)) {
  17983. counts[name] = 0;
  17984. } else {
  17985. counts[name]++;
  17986. }
  17987. if (counts[name] > 0) {
  17988. item.sName += " (" + counts[name] + ")";
  17989. }
  17990. }
  17991. for (var l = 0; l < _worksStudent[i].length; l++) {
  17992. var item = _worksStudent[i][l];
  17993. if (
  17994. item.works.indexOf(
  17995. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  17996. ) !== -1 &&
  17997. item.works.indexOf("img") === -1
  17998. ) {
  17999. url.push({ name: item.sName, url: item.works });
  18000. }
  18001. }
  18002. // var toolList = [
  18003. // { name: "电子白板", tool: 1 },
  18004. // { name: "思维导图", tool: 3 },
  18005. // { name: "协同文档", tool: 6 },
  18006. // { name: "思维网格", tool: 7 },
  18007. // { name: "素材库", tool: 8 },
  18008. // { name: "学习资料", tool: 17 },
  18009. // { name: "便签", tool: 2 },
  18010. // { name: "问卷调查", tool: 4 },
  18011. // { name: "选择题", tool: 45 },
  18012. // { name: "倒计时", tool: 10 },
  18013. // { name: "问答", tool: 15 },
  18014. // { name: "课程设计", tool: 26 },
  18015. // { name: "训练服务器", tool: 18 },
  18016. // { name: "作业提交", tool: 16 },
  18017. // { name: "批量上传", tool: 50 },
  18018. // { name: "AIoT Blockly", tool: 21 },
  18019. // { name: "AI Python", tool: 23 },
  18020. // { name: "AI Blockly", tool: 24 },
  18021. // { name: "目标管理", tool: 25 },
  18022. // { name: "数学画板", tool: 31 },
  18023. // { name: "翻译", tool: 28 },
  18024. // { name: "魔盒识字", tool: 37 },
  18025. // { name: "数学画板", tool: 31 },
  18026. // { name: "24点", tool: 38 },
  18027. // { name: "GeoGebra", tool: 39 },
  18028. // { name: "源码编辑", tool: 32 },
  18029. // { name: "个人评价", tool: 40 },
  18030. // { name: "选择匹配", tool: 41 },
  18031. // { name: "汉字宫", tool: 44 },
  18032. // { name: "排序", tool: 47 },
  18033. // { name: "表格", tool: 48 },
  18034. // { name: "文档", tool: 52 },
  18035. // { name: "学生分组", tool: 49 },
  18036. // { name: "CocoPi", tool: 57 },
  18037. // { name: "模拟驾驶", tool: 58 },
  18038. // { name: "路径搜索", tool: 59 },
  18039. // { name: "深度学习", tool: 60 },
  18040. // { name: "全历史", tool: 61 },
  18041. // { name: "交互视频", tool: 62 },
  18042. // { name: "海龟编程", tool: 63 },
  18043. // { name: "挑人", tool: 65 },
  18044. // { name: "公式编辑", tool: 66 },
  18045. // { name: "分子结构", tool: 67 },
  18046. // { name: "时间轴", tool: 68 },
  18047. // ];
  18048. // var toolName = "";
  18049. // for(var w = 0;w<toolList.length;w++){
  18050. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  18051. // toolName = toolList[w].name;
  18052. // }
  18053. // }
  18054. console.log(url);
  18055. this.downLoadAll(url, loading);
  18056. })
  18057. .catch(() => {});
  18058. },
  18059. downLoadAll(url, loading) {
  18060. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  18061. const zip = new JSZip();
  18062. const cache = {};
  18063. const promises = [];
  18064. data.forEach((item) => {
  18065. const promise = getFile(item.url).then((data) => {
  18066. if (data.data != 1) {
  18067. // 下载文件, 并存成ArrayBuffer对象
  18068. const file_name =
  18069. item.name +
  18070. "." +
  18071. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  18072. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  18073. cache[file_name] = data.data;
  18074. }
  18075. });
  18076. promises.push(promise);
  18077. });
  18078. Promise.all(promises).then(() => {
  18079. zip.generateAsync({ type: "blob" }).then((content) => {
  18080. // 生成二进制流
  18081. FileSaver.saveAs(
  18082. content,
  18083. this.courseDetail.title + "-" + "作业提交工具.zip"
  18084. ); // 利用file-saver保存文件 自定义文件名
  18085. setTimeout(() => {
  18086. loading.close();
  18087. }, 2000);
  18088. });
  18089. });
  18090. },
  18091. pickStudent(stu) {
  18092. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18093. return;
  18094. }
  18095. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18096. confirmButtonText: "确定",
  18097. cancelButtonText: "取消",
  18098. type: "warning",
  18099. })
  18100. .then(() => {
  18101. let params = [
  18102. {
  18103. uid: stu.userid,
  18104. cid: this.id,
  18105. stage: this.courseType,
  18106. task: this.taskCount,
  18107. tool: this.toolindex,
  18108. },
  18109. ];
  18110. this.ajax
  18111. .post(this.$store.state.api + "updateCoursePick", params)
  18112. .then((res) => {
  18113. this.$message.success("操作成功");
  18114. this.getPick();
  18115. })
  18116. .catch((err) => {
  18117. this.$message.error("网络不佳");
  18118. console.error(err);
  18119. });
  18120. })
  18121. .catch(() => {});
  18122. },
  18123. getPick() {
  18124. let params = {
  18125. cid: this.id,
  18126. };
  18127. this.ajax
  18128. .get(this.$store.state.api + "getPick", params)
  18129. .then((res) => {
  18130. let array = [];
  18131. for (var i = 0; i < res.data[0].length; i++) {
  18132. array.push(res.data[0][i].userid);
  18133. }
  18134. this.isPickStudent = array;
  18135. if (array.indexOf(this.userid) !== -1) {
  18136. this.$confirm("你被老师选到啦!", "提示", {
  18137. confirmButtonText: "确定",
  18138. showCancelButton: false,
  18139. closeOnClickModal: false,
  18140. type: "warning",
  18141. })
  18142. .then(() => {
  18143. let pa = [
  18144. {
  18145. uid: this.userid,
  18146. cid: this.id,
  18147. },
  18148. ];
  18149. this.ajax
  18150. .post(this.$store.state.api + "deletePick", pa)
  18151. .then((res) => {
  18152. this.getPick();
  18153. })
  18154. .catch((err) => {
  18155. this.$message.error("网络不佳");
  18156. console.error(err);
  18157. });
  18158. })
  18159. .catch(() => {});
  18160. }
  18161. })
  18162. .catch((err) => {
  18163. this.$message.error("网络不佳");
  18164. console.error(err);
  18165. });
  18166. },
  18167. },
  18168. directives: {
  18169. // 使用局部注册指令的方式
  18170. resize: {
  18171. // 指令的名称
  18172. bind(el, binding) {
  18173. // el为绑定的元素,binding为绑定给指令的对象
  18174. let width = "",
  18175. height = "";
  18176. function isReize() {
  18177. const style = document.defaultView.getComputedStyle(el);
  18178. if (width !== style.width || height !== style.height) {
  18179. binding.value(); // 关键
  18180. }
  18181. width = style.width;
  18182. height = style.height;
  18183. }
  18184. el.__vueSetInterval__ = setInterval(isReize, 300);
  18185. },
  18186. unbind(el) {
  18187. clearInterval(el.__vueSetInterval__);
  18188. },
  18189. },
  18190. },
  18191. beforeDestroy() {
  18192. window.onresize = null;
  18193. clearInterval(this.timer);
  18194. this.timer = null;
  18195. clearInterval(this.opertimer);
  18196. this.opertimer = null;
  18197. },
  18198. computed: {
  18199. contentConvent() {
  18200. return function (c) {
  18201. return c
  18202. ? c
  18203. .replaceAll(/\r\n/g, "<br/>")
  18204. .replaceAll(/\n/g, "<br/>")
  18205. .replaceAll(/\s/g, " &nbsp")
  18206. : "";
  18207. };
  18208. },
  18209. checkUpload() {
  18210. return function () {
  18211. var studentK = [];
  18212. if (this.plworkFile.length > 0) {
  18213. for (var z = 0; z < this.plworkFile.length; z++) {
  18214. studentK.push(this.plworkFile[z].username);
  18215. }
  18216. studentK = studentK.join(",");
  18217. }
  18218. var a = this.uploadStudentJuri.filter((el) => {
  18219. return studentK.indexOf(el.userid) == -1;
  18220. });
  18221. return a;
  18222. };
  18223. },
  18224. getSName() {
  18225. return function (name) {
  18226. var check = name;
  18227. this.uploadStudentJuri.forEach((el) => {
  18228. if (el.userid == check) {
  18229. check = el.name ? el.name : el.username;
  18230. }
  18231. });
  18232. return check;
  18233. };
  18234. },
  18235. getImgList() {
  18236. return function (val) {
  18237. let srcList = []; // 定义一个数组用来接收后面的img地址
  18238. val.replace(
  18239. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  18240. function (match, capture) {
  18241. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  18242. srcList.push(capture);
  18243. }
  18244. );
  18245. return srcList;
  18246. };
  18247. },
  18248. },
  18249. mounted() {
  18250. document.body.addEventListener("click", (e) => {
  18251. if (this.isUpdateToolDetail1) {
  18252. this.updateToolDetail(this.toolDetailIndex);
  18253. }
  18254. });
  18255. if (this.screenType == 2) {
  18256. window.parent.postMessage({ allScreen: 4 }, "*");
  18257. } else if (this.screenType == 3) {
  18258. window.parent.postMessage({ allScreen: 5 }, "*");
  18259. } else if (this.screenType == 1) {
  18260. window.parent.postMessage({ allScreen: 6 }, "*");
  18261. }
  18262. this.setOperationTime();
  18263. this.selectEva();
  18264. this.getCourseDetail();
  18265. this.selectCount();
  18266. this.getHomeWork();
  18267. this.contentDialog = true;
  18268. this.setContent2(true);
  18269. if (this.tType == 4) {
  18270. this.pzDialog = true;
  18271. this.selectPz();
  18272. }
  18273. document.scrollingElement.scrollTop = 0;
  18274. window.addEventListener("resize", () => {
  18275. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18276. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18277. if (this.showType == 2 || this.showType == 3) {
  18278. document.getElementsByClassName("navBox")[0].style.height =
  18279. a - 40 + 46 + "px";
  18280. } else {
  18281. document.getElementsByClassName("navBox")[0].style.height =
  18282. a - 40 + "px";
  18283. }
  18284. });
  18285. let _this = this;
  18286. setTimeout(() => {
  18287. // _this.vedioTime = [];
  18288. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  18289. // _this.vedioTime[i] = document.getElementsByClassName(
  18290. // "vjs-duration-display"
  18291. // )[i].textContent;
  18292. // }
  18293. }, 1000);
  18294. },
  18295. };
  18296. </script>
  18297. <style scoped>
  18298. @media screen and (max-width: 1280px) {
  18299. /* .courseIndex > div:first-child(2) {
  18300. width: 15% !important;
  18301. } */
  18302. /* .navText {
  18303. width: 120px !important;
  18304. } */
  18305. .evaCss {
  18306. flex-direction: column !important;
  18307. align-items: center !important;
  18308. }
  18309. .elist_input {
  18310. width: 90% !important;
  18311. }
  18312. .dialog_diy1 >>> .el-dialog {
  18313. width: 100% !important;
  18314. }
  18315. .rightWidthCss {
  18316. width: 100% !important;
  18317. }
  18318. .dialog_diy3 >>> .el-dialog {
  18319. width: 100% !important;
  18320. }
  18321. .addToolCss {
  18322. right: 0 !important;
  18323. width: 100% !important;
  18324. min-width: unset !important;
  18325. }
  18326. /* .textTitle >>> .el-form-item__label {
  18327. width: 150px !important;
  18328. } */
  18329. /* .stageItemTitle > div:last-child{
  18330. max-width: 50px;
  18331. } */
  18332. }
  18333. .evaCssMax {
  18334. flex-direction: column !important;
  18335. align-items: center !important;
  18336. }
  18337. .dialog_diy >>> .el-dialog {
  18338. margin-top: 10vh !important;
  18339. }
  18340. .body_student {
  18341. width: 77%;
  18342. height: 100%;
  18343. position: absolute;
  18344. left: 22%;
  18345. top: 0;
  18346. }
  18347. .student_head {
  18348. width: 100%;
  18349. margin: 20px auto 0;
  18350. padding-bottom: 20px;
  18351. display: flex;
  18352. flex-direction: column;
  18353. flex-wrap: nowrap;
  18354. align-items: flex-start;
  18355. justify-content: flex-start;
  18356. }
  18357. .pb_left {
  18358. width: 20%;
  18359. margin-right: 10px;
  18360. background: rgb(255, 255, 255);
  18361. position: fixed;
  18362. height: calc(100% - 40px);
  18363. border-radius: 20px;
  18364. padding-bottom: 15px;
  18365. box-sizing: border-box;
  18366. }
  18367. .wheel > img,
  18368. .project > img,
  18369. .star > img,
  18370. .evaluate > img,
  18371. .up_photo > img,
  18372. .chapter_add > img,
  18373. .deleteWord > img,
  18374. .question > img,
  18375. .homework > img {
  18376. width: 100%;
  18377. height: 100%;
  18378. }
  18379. .upCover > img {
  18380. width: 131px;
  18381. height: 69px;
  18382. object-fit: cover;
  18383. }
  18384. .upCover {
  18385. width: calc(100% / 3.5);
  18386. position: relative;
  18387. margin: 0 15px 10px 0;
  18388. display: flex;
  18389. flex-direction: column;
  18390. flex-wrap: nowrap;
  18391. justify-content: center;
  18392. align-content: center;
  18393. align-items: center;
  18394. height: fit-content;
  18395. }
  18396. .upCover2 {
  18397. width: 100%;
  18398. position: relative;
  18399. margin: 0 15px 10px 0;
  18400. display: flex;
  18401. flex-direction: column;
  18402. flex-wrap: nowrap;
  18403. justify-content: center;
  18404. align-content: center;
  18405. align-items: center;
  18406. }
  18407. .upCover2 > img {
  18408. width: 100%;
  18409. height: 90px;
  18410. object-fit: contain;
  18411. }
  18412. .chapter_add {
  18413. width: 120px;
  18414. position: relative;
  18415. text-align: center;
  18416. }
  18417. .isAddThings {
  18418. margin-top: 20px;
  18419. position: relative;
  18420. text-align: center;
  18421. background: #f7f8fa;
  18422. height: 90px;
  18423. width: 90px;
  18424. display: flex;
  18425. flex-direction: column;
  18426. justify-content: center;
  18427. }
  18428. .deleteWord {
  18429. width: 22px;
  18430. height: 22px;
  18431. position: absolute;
  18432. right: -5px;
  18433. top: -5px;
  18434. cursor: pointer;
  18435. }
  18436. .box_course {
  18437. /* width: 60%; */
  18438. width: calc(100% - 300px);
  18439. }
  18440. .wheel {
  18441. width: 100%;
  18442. /* height: 100%; */
  18443. height: 650px;
  18444. }
  18445. .right_box {
  18446. display: flex;
  18447. flex-direction: column;
  18448. margin-left: 30px;
  18449. justify-content: space-around;
  18450. }
  18451. .right_box_title {
  18452. font-size: 23px;
  18453. }
  18454. .people {
  18455. display: flex;
  18456. }
  18457. .student_body {
  18458. width: 100%;
  18459. margin: 0 auto;
  18460. margin-top: 10px;
  18461. padding: 0 0 20px;
  18462. }
  18463. .study_top {
  18464. margin-top: 100px;
  18465. width: 100%;
  18466. height: auto;
  18467. padding-bottom: 20px;
  18468. }
  18469. .study_top .checkbox {
  18470. display: flex;
  18471. align-items: center;
  18472. padding: 15px 0 15px 30px;
  18473. flex: 0 0 auto;
  18474. font-weight: bold;
  18475. border-bottom: 1px solid #eee;
  18476. }
  18477. .study_top .check {
  18478. padding-bottom: 5px;
  18479. text-align: center;
  18480. cursor: pointer;
  18481. height: 30px;
  18482. box-sizing: border-box;
  18483. display: flex;
  18484. }
  18485. .study_top .checked {
  18486. border-bottom: 4px solid #3fc6a0;
  18487. padding-bottom: 5px;
  18488. color: #3fc6a0;
  18489. display: flex;
  18490. height: 35px;
  18491. }
  18492. .study_top .checked > div,
  18493. .study_top .check > div {
  18494. margin-right: 5px;
  18495. }
  18496. .videoTop {
  18497. display: flex;
  18498. flex-direction: row;
  18499. justify-content: space-between;
  18500. background: #fff;
  18501. align-items: center;
  18502. width: 95%;
  18503. padding: 20px;
  18504. }
  18505. .filebox {
  18506. display: flex;
  18507. flex-wrap: wrap;
  18508. flex-direction: column;
  18509. padding: 0 0 5px;
  18510. position: relative;
  18511. }
  18512. .filebox:before {
  18513. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  18514. position: absolute;
  18515. top: 20px;
  18516. left: 13px;
  18517. border-left: 2px dotted #cad1dc;
  18518. height: calc(100% - 15px);
  18519. }
  18520. .toolHeng2 > div:last-child::before {
  18521. height: calc(100% - 43px);
  18522. }
  18523. .filebox .tooldetail {
  18524. width: calc(100% - 280px);
  18525. margin: 0px 12px;
  18526. padding: 12px 25px 0 13px;
  18527. line-height: 30px;
  18528. word-break: break-word;
  18529. background: #ffffff;
  18530. border-radius: 8px 8px 8px 8px;
  18531. opacity: 1;
  18532. border: 1px solid #cad1dc;
  18533. }
  18534. .file {
  18535. display: flex;
  18536. flex-direction: column;
  18537. align-items: center;
  18538. justify-content: center;
  18539. cursor: pointer;
  18540. width: 200px;
  18541. }
  18542. .file div {
  18543. margin-top: 10px;
  18544. width: 150px;
  18545. text-align: center;
  18546. overflow: hidden;
  18547. white-space: nowrap;
  18548. text-overflow: ellipsis;
  18549. }
  18550. .media {
  18551. display: flex;
  18552. flex-direction: column;
  18553. align-items: center;
  18554. justify-content: center;
  18555. margin: 0 20px 20px 0;
  18556. cursor: pointer;
  18557. margin: 12px 0 5px 15px;
  18558. overflow: hidden;
  18559. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  18560. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  18561. box-sizing: border-box;
  18562. }
  18563. .media img {
  18564. height: 90px;
  18565. width: 160px;
  18566. object-fit: cover;
  18567. }
  18568. .media .title {
  18569. padding: 5px;
  18570. text-align: left;
  18571. width: 100%;
  18572. box-sizing: border-box;
  18573. }
  18574. .media .btn {
  18575. width: 100%;
  18576. height: 35px;
  18577. line-height: 35px;
  18578. color: #fff;
  18579. background: #606060;
  18580. text-align: center;
  18581. overflow: hidden;
  18582. white-space: nowrap;
  18583. text-overflow: ellipsis;
  18584. }
  18585. .detail_content_top {
  18586. width: 100%;
  18587. padding: 25px 0 25px 0;
  18588. }
  18589. .detail_title {
  18590. text-align: center;
  18591. font-size: 24px;
  18592. }
  18593. .detail_time {
  18594. font-size: 13px;
  18595. padding: 15px 0 0 40px;
  18596. }
  18597. .detail_content {
  18598. line-height: 2pc;
  18599. width: 90%;
  18600. margin: 0 auto;
  18601. padding-top: 30px;
  18602. text-indent: 30px;
  18603. overflow: auto;
  18604. height: 200px;
  18605. }
  18606. .score_box >>> .el-rate {
  18607. margin-left: 10px;
  18608. }
  18609. .dialog_change >>> .el-dialog {
  18610. border-radius: 5px;
  18611. }
  18612. .dialog_change >>> .el-dialog__header {
  18613. background: #f2f2f2;
  18614. text-align: center;
  18615. }
  18616. .dialog_change >>> .el-dialog__title {
  18617. line-height: 5px;
  18618. }
  18619. .dialog_change >>> .el-dialog__body {
  18620. background: #fff;
  18621. padding: 10px 20px;
  18622. }
  18623. .score_box {
  18624. display: flex;
  18625. align-items: center;
  18626. margin-bottom: 18px;
  18627. margin-top: 20px;
  18628. }
  18629. .up_photo {
  18630. width: 120px;
  18631. cursor: pointer;
  18632. margin-top: 10px;
  18633. }
  18634. .up_photo2 {
  18635. width: 180px;
  18636. box-sizing: border-box;
  18637. min-width: 180px;
  18638. height: 180px;
  18639. max-height: 180px;
  18640. min-height: 180px;
  18641. cursor: pointer;
  18642. display: flex;
  18643. flex-direction: column;
  18644. align-items: center;
  18645. justify-content: center;
  18646. background: rgb(242, 246, 255);
  18647. /* padding: 25px; */
  18648. margin-bottom: 10px;
  18649. }
  18650. .up_photo2 img {
  18651. width: 50%;
  18652. height: auto;
  18653. }
  18654. .up_photo2 span {
  18655. color: #898989;
  18656. }
  18657. .plworkBox {
  18658. display: flex;
  18659. align-items: center;
  18660. margin-top: 10px;
  18661. flex-wrap: wrap;
  18662. }
  18663. .upload_send {
  18664. margin: 30px auto 30px;
  18665. width: 60%;
  18666. background: #3681fc;
  18667. text-align: center;
  18668. height: 35px;
  18669. line-height: 35px;
  18670. color: #fff;
  18671. border-radius: 5px;
  18672. cursor: pointer;
  18673. }
  18674. .marginT {
  18675. margin-top: 20px;
  18676. }
  18677. .cd_content_steps {
  18678. display: flex;
  18679. width: 90%;
  18680. justify-content: space-around;
  18681. border-top: 1px solid #eeeeee;
  18682. }
  18683. .cd_steps_box {
  18684. display: flex;
  18685. justify-content: center;
  18686. align-items: center;
  18687. flex-direction: column;
  18688. cursor: pointer;
  18689. }
  18690. .first {
  18691. display: flex;
  18692. align-items: center;
  18693. margin: 15px 0 20px 0;
  18694. font-size: 20px;
  18695. }
  18696. .first > div:nth-child(2) {
  18697. font-size: 16px !important;
  18698. padding-left: 10px;
  18699. line-height: 26px;
  18700. box-sizing: border-box;
  18701. }
  18702. .blue_box_one {
  18703. text-align: center;
  18704. color: #fff;
  18705. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  18706. border-radius: 7px;
  18707. margin: 10px;
  18708. cursor: pointer;
  18709. width: 95%;
  18710. height: 45px;
  18711. display: flex;
  18712. flex-direction: row;
  18713. justify-content: flex-start;
  18714. align-items: center;
  18715. }
  18716. .blue_box_one > div:nth-child(1) {
  18717. line-height: 30px;
  18718. margin: 0 5px 0 10px;
  18719. width: 30%;
  18720. min-width: 70px;
  18721. border-radius: 4px;
  18722. }
  18723. .blue_box_one > div:nth-child(2) {
  18724. white-space: nowrap;
  18725. text-overflow: ellipsis;
  18726. overflow: hidden;
  18727. word-break: break-all;
  18728. width: 70%;
  18729. text-align: left;
  18730. margin-right: 10px;
  18731. max-width: calc(100% - 85px);
  18732. }
  18733. .blue_box_one > div:nth-child(2):hover {
  18734. overflow: hidden;
  18735. text-overflow: ellipsis;
  18736. white-space: nowrap;
  18737. cursor: pointer;
  18738. }
  18739. .upFile {
  18740. margin: 0 auto;
  18741. width: 120px;
  18742. background: #3681fc;
  18743. color: #fff;
  18744. height: 30px;
  18745. text-align: center;
  18746. line-height: 30px;
  18747. border-radius: 5px;
  18748. font-size: 14px;
  18749. cursor: pointer;
  18750. }
  18751. .courseTitle {
  18752. width: 85%;
  18753. margin: 10px auto;
  18754. display: flex;
  18755. flex-direction: row;
  18756. align-items: center;
  18757. justify-content: space-between;
  18758. text-align: center;
  18759. }
  18760. .courseTitle .ctitle {
  18761. font-size: 20px;
  18762. font-weight: bold;
  18763. color: #0e1e33;
  18764. white-space: nowrap;
  18765. overflow: hidden;
  18766. text-overflow: ellipsis;
  18767. }
  18768. .inviteBox {
  18769. font-size: 14px;
  18770. margin-top: 5px;
  18771. color: #a6cbff;
  18772. text-align: center;
  18773. }
  18774. .courseTitle >>> .el-tooltip {
  18775. width: 100%;
  18776. white-space: nowrap;
  18777. overflow: hidden;
  18778. text-overflow: ellipsis;
  18779. word-break: break-word;
  18780. }
  18781. .ml {
  18782. margin-left: 20px;
  18783. color: #5b7dba;
  18784. border-left: 3px solid #5b7dba;
  18785. padding-left: 5px;
  18786. font-weight: bold;
  18787. }
  18788. .return {
  18789. width: 2rem;
  18790. height: 2rem;
  18791. cursor: pointer;
  18792. }
  18793. .return > img {
  18794. width: 100%;
  18795. height: 100%;
  18796. }
  18797. .returnBtn {
  18798. width: 86px;
  18799. height: 36px;
  18800. background: #3681fc;
  18801. border-radius: 4px;
  18802. color: #fff;
  18803. text-align: center;
  18804. line-height: 36px;
  18805. margin-right: 20px;
  18806. cursor: pointer;
  18807. font-size: 14px;
  18808. font-weight: 400;
  18809. display: flex;
  18810. flex-direction: row;
  18811. flex-wrap: nowrap;
  18812. align-items: center;
  18813. justify-content: center;
  18814. }
  18815. .reBtnIcon,
  18816. .commentIcon,
  18817. .vedioIcon,
  18818. .vedioIcon1 {
  18819. /* width: 36px; */
  18820. height: 36px;
  18821. border-radius: 4px;
  18822. position: relative;
  18823. /* background: #e0eafb; */
  18824. background: #0061ff;
  18825. cursor: pointer;
  18826. margin-right: 12px;
  18827. display: flex;
  18828. align-items: center;
  18829. padding: 0 10px;
  18830. box-sizing: border-box;
  18831. font-size: 14px;
  18832. color: #fff;
  18833. }
  18834. .reBtnIcon::before,
  18835. .commentIcon::before,
  18836. .vedioIcon::before,
  18837. .vedioIcon1::before {
  18838. content: "";
  18839. display: block;
  18840. background-size: 100% 100%;
  18841. background-repeat: no-repeat;
  18842. width: 20px;
  18843. height: 20px;
  18844. margin-right: 5px;
  18845. /* position: absolute; */
  18846. /* top: 8px;
  18847. left: 8px; */
  18848. }
  18849. .vedioIcon1 {
  18850. background: #f63564;
  18851. }
  18852. .reBtnIcon::before {
  18853. background-image: url("../assets/icon/newIcons/refresh.png");
  18854. }
  18855. .commentIcon::before {
  18856. background-image: url("../assets/icon/newIcons/comment.png");
  18857. }
  18858. .vedioIcon::before {
  18859. background-image: url("../assets/icon/newIcons/transcribe.png");
  18860. }
  18861. .vedioIcon1::before {
  18862. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  18863. background-image: url("../assets/icon/newIcons/transcribe.png");
  18864. }
  18865. .tool {
  18866. display: flex;
  18867. flex-direction: column;
  18868. flex-wrap: nowrap;
  18869. width: 13%;
  18870. margin: 0 30px;
  18871. align-items: center;
  18872. position: relative;
  18873. padding: 10px 25px;
  18874. cursor: pointer;
  18875. }
  18876. .whiteBIcon {
  18877. width: 150px;
  18878. }
  18879. .whiteBIcon > img {
  18880. width: 100%;
  18881. height: 100%;
  18882. }
  18883. .mask {
  18884. background-color: rgba(0, 0, 0, 0);
  18885. position: fixed;
  18886. top: 0;
  18887. left: 0;
  18888. width: 100%;
  18889. height: 100%;
  18890. z-index: 20000;
  18891. display: flex;
  18892. align-items: center;
  18893. justify-content: center;
  18894. }
  18895. .progressBox {
  18896. width: 500px;
  18897. height: 180px;
  18898. background: #fff;
  18899. border-radius: 10px;
  18900. box-shadow: 0 0 6px 1px #bfbfbf;
  18901. display: flex;
  18902. align-items: center;
  18903. justify-content: center;
  18904. flex-direction: column;
  18905. position: relative;
  18906. color: #6c6c6c;
  18907. }
  18908. .progressBox >>> .el-progress-bar__outer {
  18909. background-color: #d1dfff !important;
  18910. }
  18911. .progressBox .lbox {
  18912. height: 50px;
  18913. font-size: 19px;
  18914. display: flex;
  18915. align-items: center;
  18916. color: #747474;
  18917. }
  18918. .progressBox .lbox img {
  18919. width: 40px;
  18920. margin-right: 20px;
  18921. }
  18922. .closeCss {
  18923. position: absolute;
  18924. top: 8px;
  18925. right: 8px;
  18926. cursor: pointer;
  18927. width: 20px;
  18928. height: 20px;
  18929. }
  18930. .closeCss > img {
  18931. width: 100%;
  18932. height: 100%;
  18933. }
  18934. .uploadVedio {
  18935. display: flex;
  18936. flex-direction: column;
  18937. flex-wrap: nowrap;
  18938. justify-content: center;
  18939. align-items: center;
  18940. margin: 0 15px 10px 0;
  18941. }
  18942. .uploadVedio > img {
  18943. width: 30px;
  18944. height: 30px;
  18945. }
  18946. .uploadVedio > span {
  18947. white-space: nowrap;
  18948. overflow: hidden;
  18949. text-overflow: ellipsis;
  18950. width: 75px;
  18951. margin-top: 7px;
  18952. }
  18953. .picName {
  18954. white-space: nowrap;
  18955. overflow: hidden;
  18956. text-overflow: ellipsis;
  18957. width: 75px;
  18958. margin-top: 7px;
  18959. }
  18960. .new_top {
  18961. display: flex;
  18962. background: #fff;
  18963. flex-direction: row;
  18964. justify-content: flex-start;
  18965. align-items: center;
  18966. height: 60px;
  18967. position: fixed;
  18968. top: 20px;
  18969. left: 22%;
  18970. width: 77%;
  18971. z-index: 999;
  18972. border-radius: 12px 12px 0 0;
  18973. border-bottom: 1px solid #cad1dc;
  18974. padding: 10px 0;
  18975. }
  18976. .new_topFixed {
  18977. width: 100%;
  18978. height: 40px;
  18979. position: fixed;
  18980. top: 0px;
  18981. display: block;
  18982. background: #f2f2f2;
  18983. z-index: 998;
  18984. }
  18985. .before {
  18986. position: absolute;
  18987. background: #c3dad4;
  18988. width: 6px;
  18989. height: 100%;
  18990. }
  18991. .courseIndex {
  18992. display: flex;
  18993. flex-direction: row;
  18994. align-items: center;
  18995. width: calc(100% - 745px);
  18996. }
  18997. .courseIndex > div:nth-child(1) {
  18998. margin: 0 0 0 10px;
  18999. font-size: 20px;
  19000. min-width: 100px;
  19001. font-weight: bold;
  19002. border-left: 4px solid #3363b9;
  19003. height: 32px;
  19004. text-align: center;
  19005. line-height: 35px;
  19006. }
  19007. .courseIndex > div:nth-child(2) {
  19008. font-size: 20px;
  19009. /* width: 300px; */
  19010. max-width: calc(100% - 105px);
  19011. white-space: nowrap;
  19012. overflow: hidden;
  19013. text-overflow: ellipsis;
  19014. }
  19015. .courseIndex > div:nth-child(3) {
  19016. border-bottom: 1px solid #d7d7d7;
  19017. padding-bottom: 5px;
  19018. background: #3681fc;
  19019. width: 55px;
  19020. min-width: 55px;
  19021. border-radius: 5px;
  19022. color: #fff;
  19023. text-align: center;
  19024. height: 20px;
  19025. line-height: 26px;
  19026. font-size: 14px;
  19027. margin: 0 0 0 10px;
  19028. }
  19029. .course_text {
  19030. padding: 20px 0 0 15px;
  19031. text-indent: 30px;
  19032. width: 80%;
  19033. min-height: 20px;
  19034. }
  19035. .vedioList {
  19036. background: #f2f2f2;
  19037. border: 1px solid #ececec;
  19038. /* width: 38.8%; */
  19039. width: 300px;
  19040. height: 445px;
  19041. border-radius: 10px;
  19042. overflow: hidden;
  19043. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  19044. }
  19045. .vedioNav {
  19046. margin: 10px 0 0 15px;
  19047. border-bottom: 1px solid #d7d7d7;
  19048. padding-bottom: 5px;
  19049. background: #3681fc;
  19050. width: 55px;
  19051. min-width: 55px;
  19052. border-radius: 5px;
  19053. color: #fff;
  19054. text-align: center;
  19055. height: 20px;
  19056. line-height: 26px;
  19057. font-size: 14px;
  19058. }
  19059. .queTop {
  19060. display: flex;
  19061. padding: 20px 0 20px 30px;
  19062. width: 100%;
  19063. flex-direction: row;
  19064. justify-content: flex-start;
  19065. align-items: center;
  19066. box-sizing: border-box;
  19067. }
  19068. .queTopTitle {
  19069. display: flex;
  19070. flex-direction: row;
  19071. flex-wrap: nowrap;
  19072. align-items: center;
  19073. font-weight: bold;
  19074. font-size: 20px;
  19075. color: rgb(14, 30, 51);
  19076. }
  19077. .queTopTitle::before {
  19078. content: "";
  19079. width: 2px;
  19080. height: 22px;
  19081. background: #3681fc;
  19082. border-radius: 3px;
  19083. display: block;
  19084. margin: 2px 6px 0 0;
  19085. }
  19086. .queTopRight {
  19087. display: flex;
  19088. flex-direction: row;
  19089. flex-wrap: nowrap;
  19090. align-items: center;
  19091. }
  19092. .queTopClose {
  19093. margin-right: 20px;
  19094. cursor: pointer;
  19095. position: relative;
  19096. display: flex;
  19097. }
  19098. .closeImg,
  19099. .openImg {
  19100. width: 25px;
  19101. height: 25px;
  19102. position: absolute;
  19103. left: -20px;
  19104. top: -1px;
  19105. }
  19106. .closeImg > img,
  19107. .openImg > img {
  19108. width: 100%;
  19109. height: 100%;
  19110. }
  19111. .question {
  19112. width: 40px;
  19113. margin-right: 10px;
  19114. margin-top: 7px;
  19115. }
  19116. .queTitle {
  19117. margin-left: 5px;
  19118. font-size: 25px;
  19119. display: flex;
  19120. align-items: center;
  19121. }
  19122. .addEditor {
  19123. width: 100px;
  19124. height: 30px;
  19125. background: #42cda6;
  19126. color: #fff;
  19127. border-radius: 5px;
  19128. text-align: center;
  19129. line-height: 30px;
  19130. box-shadow: 1px 3px 6px 1px #bfbfbf;
  19131. cursor: pointer;
  19132. }
  19133. /* .vedioName {
  19134. cursor: pointer;
  19135. margin: 0px 0px 10px 5px;
  19136. white-space: nowrap;
  19137. overflow: hidden;
  19138. text-overflow: ellipsis;
  19139. width: 100%;
  19140. } */
  19141. .vedioTime {
  19142. width: 35px;
  19143. position: absolute;
  19144. color: #fff;
  19145. bottom: 0px;
  19146. right: 0px;
  19147. text-align: center;
  19148. background: #46411f;
  19149. height: 20px;
  19150. font-size: 14px;
  19151. line-height: 20px;
  19152. }
  19153. .homework {
  19154. width: 200px;
  19155. display: flex;
  19156. flex-direction: column;
  19157. flex-wrap: nowrap;
  19158. align-items: center;
  19159. cursor: pointer;
  19160. }
  19161. .homebox {
  19162. display: flex;
  19163. flex-wrap: wrap;
  19164. flex-direction: row;
  19165. justify-content: flex-start;
  19166. align-items: center;
  19167. padding: 15px 0;
  19168. }
  19169. .isChooseActive {
  19170. color: #3681fc !important;
  19171. font-weight: bold !important;
  19172. }
  19173. .chooseWho {
  19174. display: flex;
  19175. width: 100%;
  19176. flex-direction: row;
  19177. flex-wrap: nowrap;
  19178. justify-content: flex-start;
  19179. padding-bottom: 10px;
  19180. }
  19181. .chooseWho > div {
  19182. cursor: pointer;
  19183. padding-bottom: 10px;
  19184. margin: 0 30px 0 0;
  19185. font-weight: 400;
  19186. color: #0e1e33;
  19187. }
  19188. .addPoint > div > img {
  19189. cursor: pointer;
  19190. width: 85px;
  19191. border-radius: 15px;
  19192. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  19193. }
  19194. .addPoint > div {
  19195. display: flex;
  19196. flex-direction: column;
  19197. flex-wrap: nowrap;
  19198. align-items: center;
  19199. }
  19200. .isBorder > div {
  19201. margin: 0 0 10px 0;
  19202. align-items: flex-start !important;
  19203. }
  19204. .noiframeBox {
  19205. display: flex;
  19206. flex-wrap: wrap;
  19207. }
  19208. .iframeBox iframe {
  19209. width: 100%;
  19210. height: 800px;
  19211. border: none;
  19212. margin-bottom: 20px;
  19213. border: 1px solid #ccc;
  19214. }
  19215. .upload_toolBtn {
  19216. background: #3681fc;
  19217. color: #fff;
  19218. width: 110px;
  19219. text-align: center;
  19220. height: 35px;
  19221. line-height: 35px;
  19222. font-size: 14px;
  19223. border-radius: 5px;
  19224. cursor: pointer;
  19225. position: absolute;
  19226. right: 10px;
  19227. bottom: 0;
  19228. }
  19229. .binfo_input,
  19230. .pj {
  19231. font: inherit;
  19232. color: currentColor;
  19233. width: 100%;
  19234. margin: 0;
  19235. padding: 15px 14px;
  19236. display: block;
  19237. min-width: 0;
  19238. outline: none;
  19239. box-sizing: content-box;
  19240. background: none;
  19241. -webkit-tap-highlight-color: transparent;
  19242. border: 1px solid rgba(0, 0, 0, 0.23);
  19243. border-radius: 4px;
  19244. box-sizing: border-box;
  19245. resize: none;
  19246. }
  19247. .binfo_input:focus-visible {
  19248. border: 1px solid rgba(61, 103, 188);
  19249. }
  19250. .dialog_diy >>> .el-dialog__header,
  19251. .dialog_diy1 >>> .el-dialog__header {
  19252. background: #454545 !important;
  19253. padding: 15px 20px;
  19254. }
  19255. .dialog_diy >>> .el-dialog__title,
  19256. .dialog_diy1 >>> .el-dialog__title {
  19257. color: #fff;
  19258. }
  19259. .dialog_diy >>> .el-dialog__headerbtn,
  19260. .dialog_diy1 >>> .el-dialog__headerbtn {
  19261. top: 19px;
  19262. }
  19263. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  19264. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  19265. color: #fff;
  19266. }
  19267. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  19268. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  19269. color: #fff;
  19270. }
  19271. .dialog_diy1 >>> .el-dialog__body {
  19272. padding: 0;
  19273. }
  19274. .dialog_diy >>> .el-dialog__body,
  19275. .dialog_diy >>> .el-dialog__footer,
  19276. .dialog_diy1 >>> .el-dialog__footer {
  19277. background: #fafafa;
  19278. }
  19279. .a_addBox {
  19280. padding: 0 0 0 15px;
  19281. }
  19282. .a_add_box {
  19283. padding: 10px;
  19284. background: #fff;
  19285. margin-bottom: 10px;
  19286. border-radius: 5px;
  19287. box-shadow: 0 0 5px 0 #d5d5d5;
  19288. }
  19289. .a_add_head {
  19290. display: flex;
  19291. align-items: flex-start;
  19292. /* justify-content: space-between; */
  19293. flex-direction: column;
  19294. /* flex-direction: row; */
  19295. margin: 10px 0 20px 0;
  19296. font-size: 18px;
  19297. width: 100%;
  19298. }
  19299. .askIndex {
  19300. background: #3681fc;
  19301. border-radius: 50%;
  19302. color: #fff;
  19303. width: 25px;
  19304. height: 25px;
  19305. min-width: 25px;
  19306. min-height: 25px;
  19307. text-align: center;
  19308. line-height: 25px;
  19309. margin-right: 5px;
  19310. }
  19311. .a_add_head .a_add_head_input {
  19312. width: 300px;
  19313. }
  19314. .a_add_head .a_add_head_div {
  19315. display: flex;
  19316. align-items: center;
  19317. justify-content: space-between;
  19318. }
  19319. .a_add_body {
  19320. display: flex;
  19321. align-items: center;
  19322. }
  19323. .a_add_input {
  19324. display: flex;
  19325. align-items: center;
  19326. flex-wrap: wrap;
  19327. width: 100%;
  19328. }
  19329. .a_add_input >>> .el-radio-group,
  19330. .a_add_input >>> .el-checkbox-group {
  19331. width: 100%;
  19332. }
  19333. .a_add_input >>> .el-radio,
  19334. .a_add_input >>> .el-checkbox {
  19335. display: flex;
  19336. flex-direction: row;
  19337. flex-wrap: nowrap;
  19338. align-items: center;
  19339. padding: 15px 0;
  19340. }
  19341. .a_add_input >>> .el-radio:not(:last-child),
  19342. .a_add_input >>> .el-checkbox:not(:last-child) {
  19343. width: 100%;
  19344. border-bottom: 1px solid #efefef;
  19345. }
  19346. .redioStyle >>> .el-radio__label {
  19347. font-size: 18px;
  19348. }
  19349. .redioStyle >>> .el-radio__label > span,
  19350. .redioStyle >>> .el-checkbox__label > span {
  19351. word-break: break-all;
  19352. white-space: normal;
  19353. }
  19354. .redioStyle >>> .el-checkbox__label {
  19355. font-size: 18px;
  19356. }
  19357. .toolHeng2 {
  19358. width: 100%;
  19359. padding-left: 37px;
  19360. box-sizing: border-box;
  19361. }
  19362. .workNav {
  19363. font-size: 20px;
  19364. font-weight: bold;
  19365. color: #0e1e33;
  19366. display: flex;
  19367. flex-direction: row;
  19368. flex-wrap: nowrap;
  19369. align-items: center;
  19370. padding: 15px 0 15px 0;
  19371. }
  19372. .workNav::before {
  19373. content: "";
  19374. width: 2px;
  19375. height: 22px;
  19376. background: #3681fc;
  19377. border-radius: 3px;
  19378. display: block;
  19379. margin: 2px 6px 0 0;
  19380. }
  19381. .toolHeng {
  19382. display: flex;
  19383. flex-direction: row;
  19384. flex-wrap: wrap;
  19385. justify-content: flex-start;
  19386. align-items: center;
  19387. width: 100%;
  19388. }
  19389. .toolHeng > div {
  19390. padding-left: 20px;
  19391. }
  19392. .isWidth {
  19393. width: 20%;
  19394. }
  19395. .textTitle {
  19396. display: flex;
  19397. flex-direction: row;
  19398. flex-wrap: nowrap;
  19399. align-items: center;
  19400. width: 95%;
  19401. }
  19402. .textTitle >>> .el-form-item__label {
  19403. font-size: 22px;
  19404. color: #918f8f;
  19405. width: 100px;
  19406. }
  19407. .textTitle >>> .el-form-item__content {
  19408. width: calc(100% - 100px);
  19409. }
  19410. .textCss >>> .el-dialog {
  19411. width: 800px !important;
  19412. height: 400px;
  19413. background: #fafafa;
  19414. }
  19415. .textCss >>> .el-dialog__body {
  19416. margin: 55px 8% 0 8%;
  19417. padding: 0 !important;
  19418. }
  19419. .textCss >>> .el-dialog__footer {
  19420. padding-top: 38px;
  19421. }
  19422. .toolsCss >>> .el-dialog__body {
  19423. padding: 20px;
  19424. }
  19425. .lineCss >>> .el-dialog__body {
  19426. display: flex;
  19427. flex-direction: row;
  19428. align-items: center;
  19429. justify-content: center;
  19430. }
  19431. .newNav {
  19432. display: flex;
  19433. flex-direction: row;
  19434. align-items: baseline;
  19435. justify-content: flex-start;
  19436. }
  19437. .navListItem {
  19438. width: 280px;
  19439. height: 50px;
  19440. margin: 0px auto 10px;
  19441. display: flex;
  19442. flex-direction: row;
  19443. flex-wrap: nowrap;
  19444. align-items: center;
  19445. justify-content: space-between;
  19446. background: #f0f4fa;
  19447. border-radius: 6px 6px 6px 6px;
  19448. }
  19449. .navText {
  19450. cursor: pointer;
  19451. white-space: nowrap;
  19452. overflow: hidden;
  19453. text-overflow: ellipsis;
  19454. width: 220px;
  19455. padding: 0 10px;
  19456. font-weight: 400;
  19457. color: #0e1e33;
  19458. }
  19459. .downIcon {
  19460. width: 20px;
  19461. min-width: 20px;
  19462. height: 20px;
  19463. margin-right: 15px;
  19464. cursor: pointer;
  19465. }
  19466. .downIcon > img {
  19467. width: 100%;
  19468. height: 100%;
  19469. }
  19470. .noVedio {
  19471. display: flex;
  19472. flex-direction: row;
  19473. justify-content: center;
  19474. align-content: center;
  19475. }
  19476. .noNavText {
  19477. cursor: pointer;
  19478. margin: 0px 0px 10px 5px;
  19479. width: 112px;
  19480. }
  19481. .listNoVedio {
  19482. margin: 0 0 0 30px;
  19483. width: 97%;
  19484. }
  19485. .video-player >>> .video-js {
  19486. height: 100%;
  19487. }
  19488. .hangVedioList {
  19489. width: 90% !important;
  19490. height: 150px !important;
  19491. margin: 20px 0 0 30px;
  19492. }
  19493. .hangVedio {
  19494. width: 100%;
  19495. height: 170px !important;
  19496. align-items: flex-start !important;
  19497. }
  19498. .hangHand {
  19499. height: 150px !important;
  19500. }
  19501. .twoChild {
  19502. width: 95%;
  19503. margin: 10px;
  19504. border-radius: 5px;
  19505. background: #f2f2f2;
  19506. display: flex;
  19507. flex-direction: column;
  19508. flex-wrap: nowrap;
  19509. justify-content: flex-start;
  19510. align-items: flex-start;
  19511. transition: all 0.5s;
  19512. overflow: hidden;
  19513. height: 0;
  19514. background: #e7f3ff;
  19515. }
  19516. .twoChild > div:nth-child(1) {
  19517. margin-top: 5px;
  19518. }
  19519. .navChild {
  19520. width: 100%;
  19521. cursor: pointer;
  19522. margin-bottom: 10px;
  19523. position: relative;
  19524. }
  19525. .navChild img {
  19526. position: absolute;
  19527. right: 11px;
  19528. width: 15px;
  19529. top: 50%;
  19530. transform: translateY(-50%);
  19531. }
  19532. .navActive,
  19533. .toolActive {
  19534. height: auto !important;
  19535. overflow: auto !important;
  19536. /* padding-bottom: 16px; */
  19537. }
  19538. .toolActive {
  19539. padding: 0;
  19540. }
  19541. .navTask {
  19542. display: flex;
  19543. flex-direction: row;
  19544. flex-wrap: nowrap;
  19545. align-items: center;
  19546. align-content: flex-start;
  19547. height: 40px;
  19548. justify-content: flex-start;
  19549. padding: 0 10px;
  19550. width: 100%;
  19551. box-sizing: border-box;
  19552. }
  19553. .navTaskname {
  19554. white-space: nowrap;
  19555. text-overflow: ellipsis;
  19556. overflow: hidden;
  19557. word-break: break-all;
  19558. padding-left: 5px;
  19559. }
  19560. .openTaskActive {
  19561. background-color: #e0eafb !important;
  19562. color: #0061ff;
  19563. }
  19564. .iframeName {
  19565. margin: 5px 0;
  19566. border-left: 4px solid #41c4a4;
  19567. padding-left: 4px;
  19568. }
  19569. .toolTitle {
  19570. margin: 0px 0px 20px;
  19571. font-size: 20px;
  19572. font-weight: 500;
  19573. border-left: 4px solid #41c4a4;
  19574. padding-left: 4px;
  19575. }
  19576. .cru_selectBox {
  19577. overflow: auto;
  19578. width: 95%;
  19579. margin: 17px auto 0;
  19580. height: calc(100% - 40px - 21px - 20px - 17px);
  19581. background: #fff;
  19582. border-radius: 8px;
  19583. }
  19584. .cru_selectBox::-webkit-scrollbar,
  19585. .study_top::-webkit-scrollbar,
  19586. .textContent::-webkit-scrollbar {
  19587. /*滚动条整体样式*/
  19588. width: 6px;
  19589. /*高宽分别对应横竖滚动条的尺寸*/
  19590. height: 6px;
  19591. }
  19592. /*定义滚动条轨道 内阴影+圆角*/
  19593. .cru_selectBox::-webkit-scrollbar-track,
  19594. .study_top::-webkit-scrollbar-track,
  19595. .textContent::-webkit-scrollbar {
  19596. border-radius: 10px;
  19597. background-color: #b8bdc9;
  19598. }
  19599. /*定义滑块 内阴影+圆角*/
  19600. .cru_selectBox::-webkit-scrollbar-thumb,
  19601. .study_top::-webkit-scrollbar-thumb,
  19602. .textContent::-webkit-scrollbar-thumb {
  19603. border-radius: 10px;
  19604. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  19605. background-color: #2c5ab3;
  19606. }
  19607. .vedioBox {
  19608. border-radius: 0 0 20px 20px;
  19609. background: #fff;
  19610. overflow: auto;
  19611. }
  19612. .taskBox {
  19613. width: 98%;
  19614. background: #f0f4fa;
  19615. margin: 10px auto;
  19616. padding: 0 10px;
  19617. border-radius: 4px;
  19618. box-sizing: border-box;
  19619. }
  19620. .vedioTaskBox {
  19621. width: 100%;
  19622. display: flex;
  19623. flex-direction: row;
  19624. flex-wrap: nowrap;
  19625. align-items: flex-start;
  19626. position: relative;
  19627. }
  19628. .toolBox {
  19629. margin: 15px 0 0 25px;
  19630. display: flex;
  19631. position: relative;
  19632. background: #f0f4fa;
  19633. padding: 18px 20px;
  19634. border-top-left-radius: 5px;
  19635. border-top-right-radius: 5px;
  19636. width: 90%;
  19637. }
  19638. .btnAll {
  19639. position: absolute;
  19640. right: 0;
  19641. display: flex;
  19642. flex-direction: row;
  19643. flex-wrap: nowrap;
  19644. align-items: center;
  19645. }
  19646. .btnLeft,
  19647. .btnRight {
  19648. display: flex;
  19649. flex-direction: row;
  19650. flex-wrap: nowrap;
  19651. align-items: center;
  19652. padding: 5px 0;
  19653. }
  19654. .btnLeft {
  19655. border-right: 1px solid #cad1dc;
  19656. }
  19657. .btnLeft > .custom-tooltip {
  19658. background: #3681fc;
  19659. color: #fff;
  19660. }
  19661. .last:hover {
  19662. background: #3383fa !important;
  19663. color: #fff;
  19664. border: 1px solid #3383fa !important;
  19665. }
  19666. .last,
  19667. .returnBtn1 {
  19668. width: 90px;
  19669. height: 36px;
  19670. background: #ffffff;
  19671. border-radius: 4px;
  19672. border: 1px solid #0061ff;
  19673. color: #0061ff;
  19674. cursor: pointer;
  19675. display: flex;
  19676. flex-direction: row;
  19677. flex-wrap: nowrap;
  19678. align-items: center;
  19679. justify-content: center;
  19680. margin-left: 12px;
  19681. }
  19682. .returnBtn1 {
  19683. background: #f0f4fa;
  19684. border-radius: 4px;
  19685. border: 1px solid #cad1dc;
  19686. margin: 0 12px;
  19687. }
  19688. .lastImg {
  19689. min-width: 15px;
  19690. width: 15px;
  19691. height: 15px;
  19692. }
  19693. .lastText {
  19694. padding: 0 5px 2px 5px;
  19695. box-sizing: border-box;
  19696. font-size: 14px;
  19697. }
  19698. .lastImg > img {
  19699. width: 100%;
  19700. height: 100%;
  19701. }
  19702. /* .vedioTimeBox {
  19703. display: flex;
  19704. flex-direction: row;
  19705. align-items: center;
  19706. flex-wrap: nowrap;
  19707. position: relative;
  19708. } */
  19709. .navBox {
  19710. background: #fff;
  19711. height: calc(100% - 40px);
  19712. overflow-y: auto;
  19713. overflow-x: hidden;
  19714. }
  19715. .worksBox {
  19716. margin: 0 0 10px 25px;
  19717. border-bottom: 1px solid #eeeeee;
  19718. background: #f0f4fa;
  19719. padding: 18px 20px;
  19720. border-radius: 4px;
  19721. width: 90%;
  19722. }
  19723. .worksBTitle {
  19724. font-size: 20px;
  19725. padding-bottom: 15px;
  19726. border-bottom: 1px solid #eeeeee;
  19727. display: flex;
  19728. align-items: center;
  19729. }
  19730. .greenBox {
  19731. width: 5px;
  19732. height: 30px;
  19733. background: #63b6fa;
  19734. margin-right: 5px;
  19735. }
  19736. .worksDetailBox {
  19737. display: flex;
  19738. width: 100%;
  19739. flex-direction: row;
  19740. flex-wrap: wrap;
  19741. align-items: flex-end;
  19742. justify-content: flex-start;
  19743. padding: 15px 0;
  19744. }
  19745. .works {
  19746. display: flex;
  19747. flex-direction: column;
  19748. flex-wrap: nowrap;
  19749. align-items: flex-start;
  19750. justify-content: flex-start;
  19751. align-content: center;
  19752. max-width: 240px;
  19753. width: calc(100% / 3 - 10px);
  19754. height: auto;
  19755. margin-right: 10px;
  19756. margin-bottom: 10px;
  19757. overflow: hidden;
  19758. height: 140px;
  19759. box-shadow: 0 0 6px 1px #dfdada;
  19760. border-radius: 15px;
  19761. }
  19762. .workImg {
  19763. width: 100%;
  19764. /* height: calc(100% - 40px); */
  19765. height: 105px;
  19766. position: relative;
  19767. }
  19768. .workImg > img {
  19769. width: 100%;
  19770. height: 100%;
  19771. object-fit: contain;
  19772. cursor: pointer;
  19773. }
  19774. .worksName {
  19775. height: 40px;
  19776. line-height: 40px;
  19777. display: flex;
  19778. width: 100%;
  19779. flex-direction: row;
  19780. flex-wrap: nowrap;
  19781. justify-content: space-between;
  19782. align-items: center;
  19783. margin: 0 0 0 10px;
  19784. }
  19785. .worksName > div:nth-child(1) {
  19786. width: 110px;
  19787. white-space: nowrap;
  19788. overflow: hidden;
  19789. text-overflow: ellipsis;
  19790. }
  19791. .worksName > div:nth-child(2) {
  19792. color: #b7b4b5;
  19793. }
  19794. .noWorksS {
  19795. padding: 15px 0;
  19796. display: flex;
  19797. flex-direction: row;
  19798. flex-wrap: wrap;
  19799. align-items: center;
  19800. justify-content: flex-start;
  19801. }
  19802. .noWorksName,
  19803. .isWorksName,
  19804. .isWorksName2 {
  19805. background: #ddebf8;
  19806. color: #000;
  19807. width: 90px;
  19808. height: 25px;
  19809. text-align: center;
  19810. line-height: 25px;
  19811. border-radius: 4px;
  19812. margin: 10px 15px 10px 0;
  19813. white-space: nowrap;
  19814. overflow: hidden;
  19815. padding: 5px;
  19816. text-overflow: ellipsis;
  19817. cursor: pointer;
  19818. border: 1px solid #ddebf8;
  19819. }
  19820. .noWorksName {
  19821. background: #fff;
  19822. color: #0061ff;
  19823. border: 1px solid #0061ff;
  19824. }
  19825. .isWorksName2 {
  19826. width: 100px;
  19827. height: 40px;
  19828. line-height: 40px;
  19829. position: relative;
  19830. background: #dae6f9;
  19831. }
  19832. .isWorksName {
  19833. background: #e7ebf1 !important;
  19834. width: 100px;
  19835. height: 40px;
  19836. line-height: 40px;
  19837. position: relative;
  19838. color: #acb4bf;
  19839. border: 1px solid #cad1dc !important;
  19840. }
  19841. .isSelectName,
  19842. .noWorksName:hover {
  19843. background: #3383fa !important;
  19844. color: #fff !important;
  19845. border: 1px solid #3383fa !important;
  19846. }
  19847. .title {
  19848. background: #1e5cc9;
  19849. /* width: 98%; */
  19850. height: 45px;
  19851. color: #fff;
  19852. line-height: 45px;
  19853. padding-left: 20px;
  19854. box-sizing: border-box;
  19855. }
  19856. .textBox {
  19857. font-size: 20px;
  19858. width: 90%;
  19859. display: flex;
  19860. flex-direction: column;
  19861. align-items: center;
  19862. margin: 20px auto 0;
  19863. max-height: calc(100% - 75px);
  19864. overflow: auto;
  19865. }
  19866. .textContent {
  19867. font-size: 18px;
  19868. width: 95%;
  19869. max-width: 95%;
  19870. }
  19871. .answerBg {
  19872. background: url("../assets/icon/answerBgNew.png") no-repeat;
  19873. background-size: 100% 100%;
  19874. width: 100%;
  19875. height: 100%;
  19876. color: #fff;
  19877. text-align: center;
  19878. display: flex;
  19879. flex-direction: column;
  19880. flex-wrap: nowrap;
  19881. align-items: center;
  19882. position: relative;
  19883. justify-content: center;
  19884. }
  19885. .answerBg > div:nth-child(1) {
  19886. /* font-size: 22px;
  19887. padding: 25px 0 10px; */
  19888. }
  19889. .answerContent {
  19890. width: 215px;
  19891. max-height: 60px;
  19892. word-break: break-all;
  19893. text-align: center;
  19894. /* white-space: nowrap; */
  19895. overflow: hidden;
  19896. text-overflow: ellipsis;
  19897. /* padding: 23px 0 0; */
  19898. -webkit-line-clamp: 3;
  19899. -webkit-box-orient: vertical;
  19900. display: -webkit-box;
  19901. font-size: 15px;
  19902. cursor: pointer;
  19903. }
  19904. .elist_input_box {
  19905. display: flex;
  19906. align-items: flex-start;
  19907. flex-wrap: nowrap;
  19908. padding: 10px 0 15px 30px;
  19909. flex-direction: column;
  19910. }
  19911. .elist_input {
  19912. /* width: 40%; */
  19913. width: 45%;
  19914. margin: 20px;
  19915. }
  19916. .elist_input .elist_input_box input {
  19917. font: inherit;
  19918. color: currentColor;
  19919. width: 200px;
  19920. padding: 8px 14px;
  19921. display: block;
  19922. min-width: 0;
  19923. outline: none;
  19924. border: 1px solid rgba(0, 0, 0, 0.23);
  19925. border-radius: 4px;
  19926. box-sizing: border-box;
  19927. background: #fff;
  19928. margin: 0 20px 0 0;
  19929. }
  19930. .elist_input .elist_input_box span {
  19931. height: 36px;
  19932. line-height: 36px;
  19933. color: rgb(82, 82, 82);
  19934. }
  19935. .elist_input .elist_input_box .remove {
  19936. height: 20px;
  19937. width: 20px;
  19938. background-size: 100% 100%;
  19939. background-position: unset;
  19940. margin-left: 5px;
  19941. }
  19942. .elist_input_box >>> .el-rate {
  19943. display: flex;
  19944. height: 36px;
  19945. align-items: center;
  19946. }
  19947. .elist_input_box .elist_inptu_text {
  19948. min-height: 50px;
  19949. /* width: 500px;
  19950. max-height: 150px; */
  19951. width: 100%;
  19952. line-height: 50px;
  19953. color: rgb(82, 82, 82);
  19954. overflow: auto;
  19955. text-indent: 5px;
  19956. background: #f7f6f9;
  19957. border-radius: 10px;
  19958. }
  19959. .elist_input_box .elist_inptu_text input {
  19960. width: 500px;
  19961. }
  19962. .elist_input_box >>> .el-rate__icon {
  19963. font-size: 24px;
  19964. }
  19965. .isClick {
  19966. background: #4d9def;
  19967. }
  19968. .bzBox {
  19969. display: flex;
  19970. flex-direction: row;
  19971. align-items: center;
  19972. }
  19973. .bzBox .yCss {
  19974. width: 7px;
  19975. height: 7px;
  19976. background: #fff;
  19977. margin: 0 16px 0 6px;
  19978. border-radius: 50%;
  19979. border: 5px solid #3681fc;
  19980. z-index: 99;
  19981. }
  19982. .bzBox > div:nth-child(2) {
  19983. font-size: 18px;
  19984. font-weight: bold;
  19985. color: #0e1e33;
  19986. }
  19987. .navTitile {
  19988. padding: 0 0px 0 15px;
  19989. font-size: 16px;
  19990. font-weight: bold;
  19991. color: #0e1e33;
  19992. height: 40px;
  19993. line-height: 40px;
  19994. }
  19995. .isTypeOne {
  19996. width: 240px;
  19997. height: 170px;
  19998. /* border: 1px solid #f8f8f8; */
  19999. border-radius: 10px;
  20000. box-shadow: 0 0 6px 1px #dfdada;
  20001. }
  20002. .e_add_top {
  20003. display: flex;
  20004. justify-content: space-between;
  20005. padding: 20px 20px 0 20px;
  20006. border-radius: 3px;
  20007. background: #fff;
  20008. }
  20009. .e_add_title2 {
  20010. display: flex;
  20011. align-items: center;
  20012. }
  20013. .e_add_title2 span {
  20014. width: 40px;
  20015. }
  20016. .e_add_title {
  20017. display: flex;
  20018. align-items: center;
  20019. color: #b8b8b8;
  20020. font-size: 18px;
  20021. position: relative;
  20022. height: 40px;
  20023. }
  20024. .e_add_title span {
  20025. margin-right: 10px;
  20026. }
  20027. .e_add_title .el_input {
  20028. width: 300px;
  20029. }
  20030. .e_add_title >>> .el-input__inner {
  20031. width: 400px;
  20032. }
  20033. .e_add_btn {
  20034. }
  20035. .e_add_content {
  20036. display: flex;
  20037. width: 100%;
  20038. max-width: 650px;
  20039. height: 550px;
  20040. }
  20041. .e_add_list {
  20042. background: #fff;
  20043. height: 500px;
  20044. width: 210px;
  20045. position: relative;
  20046. margin: 15px 5px 0 0;
  20047. flex-shrink: 0;
  20048. display: flex;
  20049. flex-direction: column;
  20050. }
  20051. .e_add_list_title {
  20052. font-size: 20px;
  20053. width: 100%;
  20054. box-sizing: border-box;
  20055. padding: 15px 40px;
  20056. text-align: center;
  20057. border-bottom: 1px solid #eaeaea;
  20058. position: relative;
  20059. display: flex;
  20060. align-items: center;
  20061. justify-content: center;
  20062. height: 57px;
  20063. background: #f6f6f6;
  20064. }
  20065. .e_add_list_title span {
  20066. overflow: hidden;
  20067. white-space: nowrap;
  20068. text-overflow: ellipsis;
  20069. }
  20070. .e_add_list_title img {
  20071. position: absolute;
  20072. right: 15px;
  20073. width: 25px;
  20074. cursor: pointer;
  20075. top: 50%;
  20076. transform: translateY(-50%);
  20077. }
  20078. .e_add_list_body {
  20079. height: calc(100% - 187px);
  20080. overflow: auto;
  20081. }
  20082. .e_add_list_child {
  20083. width: 100%;
  20084. display: flex;
  20085. align-items: center;
  20086. justify-content: center;
  20087. position: relative;
  20088. box-sizing: border-box;
  20089. padding: 15px 40px;
  20090. text-align: center;
  20091. }
  20092. .e_add_list_child span {
  20093. overflow: hidden;
  20094. white-space: nowrap;
  20095. text-overflow: ellipsis;
  20096. cursor: pointer;
  20097. }
  20098. .e_add_list_child img {
  20099. position: absolute;
  20100. right: 10px;
  20101. width: 21px;
  20102. cursor: pointer;
  20103. top: 50%;
  20104. transform: translateY(-50%);
  20105. }
  20106. .e_add_list_child + .e_add_list_child {
  20107. border-top: 1px solid #eaeaea;
  20108. }
  20109. .e_add_list_child .active {
  20110. color: #409eff;
  20111. }
  20112. .e_add_list_btn {
  20113. position: absolute;
  20114. bottom: 0;
  20115. height: 50px;
  20116. background: rgb(120, 120, 254);
  20117. width: 100%;
  20118. color: #fff;
  20119. font-size: 16px;
  20120. text-align: center;
  20121. line-height: 50px;
  20122. cursor: pointer;
  20123. }
  20124. .e_add_list_detail {
  20125. position: absolute;
  20126. bottom: 0;
  20127. height: 130px;
  20128. background: rgb(120, 120, 254);
  20129. width: 100%;
  20130. color: #fff;
  20131. font-size: 16px;
  20132. display: flex;
  20133. align-items: center;
  20134. justify-content: center;
  20135. }
  20136. .e_add_list_detail textarea {
  20137. height: 90%;
  20138. width: 95%;
  20139. border: none;
  20140. resize: none;
  20141. outline: none;
  20142. padding: 5px;
  20143. box-sizing: border-box;
  20144. }
  20145. .e_add_list_pbox {
  20146. width: 100%;
  20147. max-width: 650px;
  20148. /* height: 600px; */
  20149. }
  20150. .e_add_list_pbox_title {
  20151. height: 50px;
  20152. background: #fff;
  20153. display: flex;
  20154. align-items: center;
  20155. width: 100%;
  20156. box-sizing: border-box;
  20157. padding: 0 20px;
  20158. }
  20159. .type_title {
  20160. font-size: 18px;
  20161. font-weight: 700;
  20162. }
  20163. .type_content {
  20164. font-size: 16px;
  20165. margin-left: 30px;
  20166. }
  20167. .type_content span + span {
  20168. margin-left: 20px;
  20169. }
  20170. .type_content span {
  20171. cursor: pointer;
  20172. padding-bottom: 5px;
  20173. box-sizing: border-box;
  20174. }
  20175. .type_content .active {
  20176. color: #409eff;
  20177. border-bottom: 2px solid #409eff;
  20178. }
  20179. .e_add_list_pbox_content {
  20180. height: calc(100% - 50px);
  20181. display: flex;
  20182. align-items: center;
  20183. width: 100%;
  20184. background: #fff;
  20185. }
  20186. .evaCss {
  20187. display: flex;
  20188. flex-direction: row;
  20189. flex-wrap: nowrap;
  20190. align-items: flex-start;
  20191. padding: 0 0 20px;
  20192. }
  20193. .cru_line {
  20194. position: absolute;
  20195. bottom: 0px;
  20196. transition: all 0.5s;
  20197. left: 0px;
  20198. width: 125px;
  20199. margin-left: -25px;
  20200. }
  20201. .isNoMessage {
  20202. width: 20%;
  20203. margin: 25% auto 0;
  20204. }
  20205. .isNoMessage > img {
  20206. width: 100%;
  20207. height: 100%;
  20208. }
  20209. .fullStyle >>> .el-dialog__body {
  20210. height: 100% !important;
  20211. }
  20212. .fullStyle >>> .el-dialog,
  20213. .fullStyle {
  20214. width: 100% !important;
  20215. max-width: 100% !important;
  20216. height: 100% !important;
  20217. margin: 0 !important;
  20218. }
  20219. .full_diy >>> .el-dialog {
  20220. margin: 0 !important;
  20221. height: 100%;
  20222. padding: 4px;
  20223. }
  20224. .full_diy >>> .el-dialog__body {
  20225. height: calc(100% - 100px);
  20226. }
  20227. .full_diy2 >>> .el-dialog__body {
  20228. height: calc(100% - 50px);
  20229. padding: 0;
  20230. }
  20231. .switchCss {
  20232. /* width: 100%; */
  20233. display: flex;
  20234. flex-direction: row;
  20235. flex-wrap: nowrap;
  20236. align-items: center;
  20237. /* justify-content: center; */
  20238. }
  20239. .isClickNav {
  20240. /* color: #499eef; */
  20241. color: #000;
  20242. }
  20243. .commentImg {
  20244. width: 25px;
  20245. height: 25px;
  20246. cursor: pointer;
  20247. }
  20248. .commentImg > img {
  20249. width: 100%;
  20250. height: 100%;
  20251. }
  20252. .comment {
  20253. background: #f9f9f9;
  20254. border-radius: 0 0 4px 4px;
  20255. display: flex;
  20256. flex-direction: row;
  20257. flex-wrap: nowrap;
  20258. align-items: center;
  20259. justify-content: flex-end;
  20260. height: 35px;
  20261. }
  20262. .commentList {
  20263. display: flex;
  20264. flex-direction: row;
  20265. flex-wrap: nowrap;
  20266. align-items: center;
  20267. justify-content: center;
  20268. align-content: center;
  20269. /* margin-left: 15px; */
  20270. /* margin-left: 8px; */
  20271. }
  20272. .scoreImg {
  20273. width: 17px;
  20274. height: 17px;
  20275. }
  20276. .studentDetail {
  20277. display: flex;
  20278. flex-direction: row;
  20279. flex-wrap: nowrap;
  20280. /* align-items: center; */
  20281. align-items: flex-start;
  20282. }
  20283. .tx {
  20284. width: 50px;
  20285. }
  20286. .tx > img {
  20287. width: 100%;
  20288. height: 100%;
  20289. }
  20290. .nameAndTime {
  20291. display: flex;
  20292. flex-direction: column;
  20293. flex-wrap: nowrap;
  20294. align-items: flex-start;
  20295. margin-left: 10px;
  20296. }
  20297. .worksAnswer {
  20298. color: #4078dd;
  20299. margin: 10px 0;
  20300. font-size: 16px;
  20301. position: relative;
  20302. }
  20303. .worksAnswer > img {
  20304. width: 500px;
  20305. height: 300px;
  20306. object-fit: contain;
  20307. margin: 0 auto;
  20308. display: block;
  20309. }
  20310. .commentTop {
  20311. border-bottom: 1px solid #eaeaea;
  20312. padding-bottom: 10px;
  20313. }
  20314. .commentBox {
  20315. padding-top: 15px;
  20316. }
  20317. .pl {
  20318. font-size: 18px;
  20319. }
  20320. .plPerson {
  20321. width: 100%;
  20322. }
  20323. .plName {
  20324. display: flex;
  20325. flex-direction: row;
  20326. flex-wrap: nowrap;
  20327. align-items: baseline;
  20328. color: #78787a;
  20329. width: 100%;
  20330. }
  20331. .deleteComment {
  20332. cursor: pointer;
  20333. margin-left: auto;
  20334. color: #237ade;
  20335. }
  20336. .plContent {
  20337. margin-top: 5px;
  20338. }
  20339. .evalCss {
  20340. background: #fff;
  20341. font-size: 18px;
  20342. }
  20343. .nav {
  20344. color: #9d9d9d;
  20345. padding: 5px 0 15px 20px;
  20346. }
  20347. .middleBox {
  20348. padding: 5px 0 15px 20px;
  20349. }
  20350. .pfBox {
  20351. padding-bottom: 30px;
  20352. }
  20353. .nameAndrate {
  20354. display: flex;
  20355. flex-direction: row;
  20356. flex-wrap: nowrap;
  20357. align-items: center;
  20358. padding-bottom: 10px;
  20359. height: 30px;
  20360. line-height: 30px;
  20361. }
  20362. .nameAndrate > div {
  20363. margin-left: 10px;
  20364. color: #000;
  20365. height: 30px;
  20366. }
  20367. .nameAndrate >>> .el-rate__icon {
  20368. font-size: 28px !important;
  20369. }
  20370. .pfBox > div:nth-child(2) {
  20371. background: #f7f6f9;
  20372. width: 400px;
  20373. min-height: 45px;
  20374. border-radius: 10px;
  20375. font-size: 16px;
  20376. display: flex;
  20377. flex-wrap: wrap;
  20378. align-items: center;
  20379. padding: 10px 20px;
  20380. box-sizing: border-box;
  20381. color: #000;
  20382. }
  20383. .bz {
  20384. display: flex;
  20385. flex-direction: row;
  20386. flex-wrap: nowrap;
  20387. align-items: flex-start;
  20388. }
  20389. .bz > div {
  20390. padding: 0 10px;
  20391. }
  20392. .select_box2_title {
  20393. background: #fff;
  20394. border-radius: 5px;
  20395. padding: 15px 10px;
  20396. box-sizing: border-box;
  20397. margin-bottom: 10px;
  20398. display: flex;
  20399. flex-direction: row;
  20400. flex-wrap: nowrap;
  20401. align-items: center;
  20402. }
  20403. .select_box2_title > div:nth-child(2) {
  20404. margin-left: 10px;
  20405. color: #c4c4c4;
  20406. }
  20407. .select_box2_box {
  20408. display: flex;
  20409. height: 500px;
  20410. }
  20411. .select_box2_img {
  20412. width: calc(100% - 310px);
  20413. height: 100%;
  20414. overflow: auto;
  20415. background: #fff;
  20416. border-radius: 5px;
  20417. }
  20418. .select_box2_img img {
  20419. width: 100%;
  20420. }
  20421. .select_box2_answer {
  20422. background: #fff;
  20423. margin-left: 10px;
  20424. border-radius: 5px;
  20425. width: 300px;
  20426. overflow: auto;
  20427. height: 90%;
  20428. display: flex;
  20429. flex-direction: column;
  20430. align-items: flex-start;
  20431. padding-top: 10px;
  20432. box-sizing: border-box;
  20433. position: relative;
  20434. }
  20435. .select_answer_title {
  20436. padding: 0 0 15px 20px;
  20437. color: #c4c4c4;
  20438. }
  20439. .select_box2_answer_box {
  20440. margin: 0 0 10px 20px;
  20441. width: 85%;
  20442. display: flex;
  20443. flex-direction: row;
  20444. flex-wrap: nowrap;
  20445. align-items: center;
  20446. }
  20447. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  20448. color: #000;
  20449. }
  20450. .upAnswerCss {
  20451. position: absolute;
  20452. bottom: 15px;
  20453. right: 15px;
  20454. }
  20455. .upAnswerCss >>> .el-button {
  20456. width: 95px;
  20457. height: 35px;
  20458. line-height: 35px;
  20459. padding: 0;
  20460. }
  20461. .rightWidthCss {
  20462. width: 60%;
  20463. display: flex;
  20464. flex-direction: row;
  20465. align-items: flex-start;
  20466. }
  20467. .rightAnswer {
  20468. display: flex;
  20469. flex-direction: row;
  20470. flex-wrap: nowrap;
  20471. align-items: center;
  20472. color: red;
  20473. margin-bottom: 31px;
  20474. }
  20475. .rightAnswerCss {
  20476. display: flex;
  20477. flex-direction: column;
  20478. flex-wrap: nowrap;
  20479. padding-top: 60px;
  20480. }
  20481. .blueCss {
  20482. color: #767de1;
  20483. margin-left: 10px;
  20484. }
  20485. .redCss {
  20486. color: red;
  20487. }
  20488. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  20489. color: rgb(0 123 255) !important;
  20490. }
  20491. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  20492. color: rgb(0 123 255) !important;
  20493. }
  20494. .zuoyeYulan {
  20495. padding-top: 0;
  20496. font-size: 18px;
  20497. display: flex;
  20498. align-items: flex-end;
  20499. }
  20500. .buttonA {
  20501. margin-left: 10px;
  20502. padding: 0;
  20503. }
  20504. .displayBox {
  20505. margin-bottom: 10px;
  20506. display: block;
  20507. border-bottom: 3px solid #eee;
  20508. display: flex;
  20509. align-items: center;
  20510. }
  20511. .easy_comment {
  20512. width: calc(100% - 90px);
  20513. margin-left: 10px;
  20514. display: flex;
  20515. flex-wrap: wrap;
  20516. }
  20517. .easy_comment > div {
  20518. border: 1px solid #4a4a4a;
  20519. color: #666;
  20520. border-radius: 15px;
  20521. padding: 5px 10px;
  20522. font-size: 16px;
  20523. margin-bottom: 10px;
  20524. margin-right: 5px;
  20525. cursor: pointer;
  20526. }
  20527. .easy_comment div:hover {
  20528. border: 1px solid #f7ba2a;
  20529. color: #c69217;
  20530. }
  20531. .xuan_right_box {
  20532. padding: 10px 0;
  20533. background: #f0f4fa;
  20534. margin: 0 15px 0 25px;
  20535. border-bottom-left-radius: 5px;
  20536. border-bottom-right-radius: 5px;
  20537. width: 91.5%;
  20538. }
  20539. .tool_right_box {
  20540. display: flex;
  20541. align-items: center;
  20542. }
  20543. .tool_right_box + .tool_right_box {
  20544. margin-top: 10px;
  20545. }
  20546. .right_box_xuan {
  20547. background: rgb(0 123 255);
  20548. color: #fff;
  20549. border-radius: 5px;
  20550. padding: 5px;
  20551. margin-left: 10px;
  20552. min-width: 95px;
  20553. }
  20554. .pButton:hover {
  20555. opacity: 1 !important;
  20556. }
  20557. .pButton {
  20558. position: fixed;
  20559. text-align: center;
  20560. cursor: pointer;
  20561. z-index: 999;
  20562. right: 20px;
  20563. top: 110px;
  20564. width: 50px;
  20565. height: 50px;
  20566. display: flex;
  20567. align-items: center;
  20568. justify-content: center;
  20569. border-radius: 5px;
  20570. }
  20571. .pzClass {
  20572. width: calc(100% - 340px);
  20573. }
  20574. .newDialogCss {
  20575. /* position: fixed;
  20576. right: 5%;
  20577. top: 50%;
  20578. width: 340px;
  20579. transform: translateY(-50%);
  20580. height: 60%;
  20581. box-shadow: 0px 0 8px 0px #555555;
  20582. border-radius: 15px;
  20583. z-index: 999; */
  20584. position: fixed;
  20585. right: 20px;
  20586. top: 101px;
  20587. width: 330px;
  20588. height: calc(100% - 80px);
  20589. z-index: 999;
  20590. background: #fff;
  20591. border-top-right-radius: 0px;
  20592. border-bottom-right-radius: 0px;
  20593. overflow: hidden;
  20594. }
  20595. .pzTop {
  20596. color: #fff;
  20597. background: #000;
  20598. display: flex;
  20599. flex-direction: row;
  20600. flex-wrap: nowrap;
  20601. align-items: center;
  20602. justify-content: space-between;
  20603. height: 40px;
  20604. border-radius: 15px 15px 0 0;
  20605. user-select: none;
  20606. }
  20607. .pzTop2 .checkbox {
  20608. display: flex;
  20609. align-items: center;
  20610. padding: 5px 30px;
  20611. flex: 0 0 auto;
  20612. font-weight: bold;
  20613. border-bottom: 1px solid #eee;
  20614. justify-content: space-between;
  20615. }
  20616. .pzTop2 .check {
  20617. text-align: center;
  20618. cursor: pointer;
  20619. box-sizing: border-box;
  20620. display: flex;
  20621. }
  20622. .pzTop2 img {
  20623. width: 25px;
  20624. cursor: pointer;
  20625. }
  20626. .pzTop > div:nth-child(1) {
  20627. padding-left: 10px;
  20628. }
  20629. .pzTop > div:nth-child(2) {
  20630. width: 15px;
  20631. height: 15px;
  20632. padding-right: 10px;
  20633. cursor: pointer;
  20634. }
  20635. .pzTop > div:nth-child(2) > img {
  20636. width: 100%;
  20637. height: 100%;
  20638. }
  20639. .pzBox,
  20640. .noPzBox {
  20641. height: calc(100% - 60px);
  20642. /* background: #ededed; */
  20643. background: #fff;
  20644. /* border-radius: 0 0 15px 15px; */
  20645. }
  20646. .noPzBox {
  20647. display: flex;
  20648. flex-direction: column;
  20649. flex-wrap: nowrap;
  20650. justify-content: center;
  20651. align-items: center;
  20652. }
  20653. .pzList {
  20654. background: #f7f7f7;
  20655. width: 90%;
  20656. margin: 0 auto 15px;
  20657. border-radius: 5px;
  20658. }
  20659. .pzNavTop {
  20660. display: flex;
  20661. flex-direction: row;
  20662. flex-wrap: nowrap;
  20663. padding: 10px 10px 0 10px;
  20664. align-items: center;
  20665. }
  20666. .pzDelete {
  20667. cursor: pointer;
  20668. margin-left: auto;
  20669. font-size: 14px;
  20670. color: #afafaf;
  20671. }
  20672. .pzNavTop > div:nth-child(1) {
  20673. background: #3760af;
  20674. width: 35px;
  20675. height: 35px;
  20676. color: #fff;
  20677. text-align: center;
  20678. line-height: 35px;
  20679. border-radius: 50%;
  20680. font-size: 14px;
  20681. }
  20682. .pzNavTop > div:nth-child(2) {
  20683. font-size: 18px;
  20684. color: #959595;
  20685. margin-left: 5px;
  20686. }
  20687. .pzContent {
  20688. padding: 10px;
  20689. word-break: break-word;
  20690. }
  20691. .pzContent audio {
  20692. width: 100%;
  20693. }
  20694. .pzContent audio::-webkit-media-controls-panel {
  20695. background: #fff;
  20696. }
  20697. .pzContent >>> img {
  20698. max-width: 100%;
  20699. }
  20700. .pzListBox {
  20701. padding-top: 15px;
  20702. height: calc(100% - 110px);
  20703. overflow: auto;
  20704. }
  20705. .addPzButton {
  20706. position: relative;
  20707. margin-top: 3px;
  20708. width: 100%;
  20709. }
  20710. .addPzButton .img1 {
  20711. position: absolute;
  20712. top: 50%;
  20713. right: 25px;
  20714. transform: translateY(-50%);
  20715. height: 100%;
  20716. display: flex;
  20717. align-items: center;
  20718. }
  20719. .addPzButton .img1 div {
  20720. display: flex;
  20721. }
  20722. .addPzButton .img1 div img {
  20723. width: 28px;
  20724. margin-left: 10px;
  20725. cursor: pointer;
  20726. }
  20727. .addPzButton .img1 div span {
  20728. font-size: 14px;
  20729. margin: 4px 0 0 3px;
  20730. color: #afafaf;
  20731. }
  20732. .addPz {
  20733. background: #4b79ce;
  20734. width: 100px;
  20735. color: #fff;
  20736. font-size: 12px;
  20737. height: 30px;
  20738. margin: 0 auto;
  20739. text-align: center;
  20740. line-height: 30px;
  20741. border-radius: 10px;
  20742. cursor: pointer;
  20743. }
  20744. .addDialogCss {
  20745. position: fixed;
  20746. width: 600px;
  20747. height: 70%;
  20748. min-height: 450px;
  20749. box-shadow: 0px 0 8px 0px #555555;
  20750. border-radius: 15px;
  20751. z-index: 999;
  20752. left: 50%;
  20753. top: 50%;
  20754. margin: -18% 0 0 -300px;
  20755. }
  20756. .teacherPz {
  20757. display: flex;
  20758. flex-direction: row;
  20759. align-items: center;
  20760. flex-wrap: nowrap;
  20761. }
  20762. .teacherPzImg {
  20763. width: 30px;
  20764. height: 30px;
  20765. }
  20766. .teacherPzImg > img {
  20767. width: 100%;
  20768. height: 100%;
  20769. }
  20770. .addPzBox {
  20771. height: calc(100% - 40px);
  20772. background: #ededed;
  20773. border-bottom-left-radius: 15px;
  20774. border-bottom-right-radius: 15px;
  20775. }
  20776. .pzAudioClass {
  20777. margin: 15px 14px;
  20778. background: #fff;
  20779. height: 100%;
  20780. display: flex;
  20781. justify-content: center;
  20782. align-items: center;
  20783. }
  20784. .pzConText {
  20785. width: 95%;
  20786. height: 100%;
  20787. margin: 10px auto 0;
  20788. border: none;
  20789. background: #fff;
  20790. border-radius: 0px;
  20791. }
  20792. .pzConText >>> .text {
  20793. height: calc(100% - 82px);
  20794. }
  20795. .addTextCss {
  20796. background: #4b79ce;
  20797. width: 80px;
  20798. height: 30px;
  20799. text-align: center;
  20800. color: #fff;
  20801. line-height: 30px;
  20802. border-radius: 10px;
  20803. margin: 10px auto 0;
  20804. cursor: pointer;
  20805. }
  20806. .pzConText:focus-visible {
  20807. border: none !important;
  20808. }
  20809. .maxWidth {
  20810. width: 1000px;
  20811. }
  20812. .noPz {
  20813. width: 150px;
  20814. margin: 0 auto 20%;
  20815. }
  20816. .noPz > img {
  20817. width: 100%;
  20818. height: 100%;
  20819. }
  20820. .timeAndReply {
  20821. display: flex;
  20822. flex-direction: row;
  20823. flex-wrap: nowrap;
  20824. justify-content: space-between;
  20825. align-items: center;
  20826. font-size: 14px;
  20827. box-sizing: border-box;
  20828. padding: 0 10px 10px 0px;
  20829. }
  20830. .timeAndReply .time {
  20831. color: #bfbfbf;
  20832. padding: 0 0 0 10px;
  20833. box-sizing: border-box;
  20834. }
  20835. .timeAndReply > div:last-child {
  20836. cursor: pointer;
  20837. color: #777;
  20838. }
  20839. /* table 样式 */
  20840. .cont >>> table {
  20841. border-top: 1px solid #ccc;
  20842. border-left: 1px solid #ccc;
  20843. }
  20844. .cont >>> table td,
  20845. .cont >>> table th {
  20846. border-bottom: 1px solid #ccc;
  20847. border-right: 1px solid #ccc;
  20848. /* padding: 20px 5px; */
  20849. padding: 5px 10px;
  20850. max-width: 0px;
  20851. height: 30px;
  20852. vertical-align: baseline;
  20853. box-sizing: border-box;
  20854. }
  20855. .cont >>> table th {
  20856. border-bottom: 2px solid #ccc;
  20857. text-align: center;
  20858. }
  20859. /* blockquote 样式 */
  20860. .cont >>> blockquote {
  20861. display: block;
  20862. border-left: 8px solid #d0e5f2;
  20863. padding: 5px 10px;
  20864. margin: 10px 0;
  20865. line-height: 1.4;
  20866. font-size: 100%;
  20867. background-color: #f1f1f1;
  20868. }
  20869. /* code 样式 */
  20870. .cont >>> code {
  20871. display: inline-block;
  20872. /* *display: inline; */
  20873. zoom: 1;
  20874. background-color: #f1f1f1;
  20875. border-radius: 3px;
  20876. padding: 3px 5px;
  20877. margin: 0 3px;
  20878. }
  20879. .cont >>> pre code {
  20880. display: block;
  20881. }
  20882. /* ul ol 样式 */
  20883. .cont >>> ul,
  20884. ol {
  20885. margin: 10px 0 10px 20px;
  20886. }
  20887. .addPzCheck {
  20888. display: flex;
  20889. flex-direction: row;
  20890. flex-wrap: nowrap;
  20891. padding: 10px 15px 0;
  20892. }
  20893. .addPzCheck span {
  20894. cursor: pointer;
  20895. padding-bottom: 5px;
  20896. font-weight: bold;
  20897. }
  20898. .addPzCheck span + span {
  20899. margin-left: 10px;
  20900. }
  20901. .addPzCheck .isChooseActive {
  20902. color: #3e88f4;
  20903. border-bottom: 2px solid #2f80f3;
  20904. }
  20905. /* code 样式 */
  20906. .cont {
  20907. /* -webkit-user-modify: read-write; */
  20908. overflow-wrap: break-word;
  20909. -webkit-line-break: after-white-space;
  20910. }
  20911. .scoreBox,
  20912. .scoreDetailBox {
  20913. display: flex;
  20914. align-items: center;
  20915. justify-content: flex-start;
  20916. margin-top: 20px;
  20917. font-size: 18px;
  20918. width: 100%;
  20919. }
  20920. .scoreBox .t,
  20921. .scoreDetailBox .t {
  20922. margin-right: 10px;
  20923. width: 100px;
  20924. text-align: right;
  20925. }
  20926. .scoreDetailBox {
  20927. align-items: flex-start;
  20928. }
  20929. .scoreDetailBox >>> .el-textarea {
  20930. width: calc(100% - 200px);
  20931. }
  20932. .scoreBox >>> .el-input {
  20933. width: 130px;
  20934. font-size: 38px;
  20935. }
  20936. .scoreBox >>> .el-input__inner {
  20937. height: 60px;
  20938. }
  20939. .answerScore {
  20940. position: absolute;
  20941. top: 10px;
  20942. right: 10px;
  20943. background: #0000008f;
  20944. border-radius: 5px;
  20945. padding: 3px 5px;
  20946. font-size: 14px;
  20947. color: #fff;
  20948. cursor: pointer;
  20949. }
  20950. .open_box .switch_box {
  20951. width: 100%;
  20952. margin: 0 auto;
  20953. display: flex;
  20954. justify-content: space-between;
  20955. }
  20956. .open_box .switch_box + .switch_box {
  20957. margin-top: 10px;
  20958. }
  20959. .deleteImg {
  20960. width: 25px !important;
  20961. height: 25px !important;
  20962. cursor: pointer;
  20963. position: absolute;
  20964. top: 10px;
  20965. right: 10px;
  20966. }
  20967. .deleteImg2 {
  20968. width: 15px !important;
  20969. height: 15px !important;
  20970. top: 5px;
  20971. right: 5px;
  20972. }
  20973. .rightW {
  20974. right: 40px;
  20975. }
  20976. .drawPBox {
  20977. display: flex;
  20978. flex-direction: column;
  20979. position: relative;
  20980. }
  20981. .drawPBox span {
  20982. font-size: 18px;
  20983. color: #606266;
  20984. padding-bottom: 10px;
  20985. margin: 10px 0;
  20986. border-bottom: 1px solid #eaeaea;
  20987. }
  20988. .drawPBox img {
  20989. width: 500px;
  20990. height: 300px;
  20991. object-fit: contain;
  20992. cursor: pointer;
  20993. margin: 0 auto;
  20994. }
  20995. .sentenBox {
  20996. background: #fff;
  20997. height: 450px;
  20998. overflow: auto;
  20999. background-image: url("../assets/icon/conSentences/stuBg.png");
  21000. background-position: 102%;
  21001. background-repeat: no-repeat;
  21002. background-size: 60%;
  21003. }
  21004. .addSen {
  21005. background: #409efe;
  21006. width: 90px;
  21007. color: #fff;
  21008. height: 35px;
  21009. text-align: center;
  21010. line-height: 35px;
  21011. border-radius: 5px;
  21012. float: right;
  21013. margin: 10px 20px 0 0;
  21014. cursor: pointer;
  21015. }
  21016. .sentenTop {
  21017. display: flex;
  21018. flex-direction: row;
  21019. flex-wrap: nowrap;
  21020. align-items: center;
  21021. padding: 55px 0 0 20px;
  21022. box-sizing: border-box;
  21023. }
  21024. .sentenTop > div:nth-child(2) {
  21025. width: 300px;
  21026. margin: 0 15px;
  21027. }
  21028. .sentenTop > div:nth-child(3) {
  21029. background: #409efe;
  21030. color: #fff;
  21031. width: 65px;
  21032. height: 35px;
  21033. text-align: center;
  21034. line-height: 35px;
  21035. border-radius: 5px;
  21036. cursor: pointer;
  21037. }
  21038. .cardList,
  21039. .cardList1 {
  21040. padding: 10px 0 10px 0;
  21041. display: flex;
  21042. flex-direction: row;
  21043. flex-wrap: wrap;
  21044. align-items: center;
  21045. box-sizing: border-box;
  21046. border-bottom: 1px solid #f4f4f4;
  21047. width: 98%;
  21048. margin: 0 auto;
  21049. min-width: 60%;
  21050. max-width: 85%;
  21051. }
  21052. .cardList1 {
  21053. padding: 10px 0 10px 10px !important;
  21054. margin: 0 !important;
  21055. }
  21056. .cardBox {
  21057. display: flex;
  21058. flex-direction: row;
  21059. flex-wrap: wrap;
  21060. align-items: center;
  21061. align-content: center;
  21062. }
  21063. .cardBox > div {
  21064. margin-bottom: 10px;
  21065. }
  21066. .isCard,
  21067. .isChooseCard,
  21068. .noCard,
  21069. .isCard1 {
  21070. width: 130px;
  21071. height: 60px;
  21072. text-align: center;
  21073. line-height: 60px;
  21074. font-size: 20px;
  21075. cursor: pointer;
  21076. background-image: url("../assets/icon/conSentences/titleBorder.png");
  21077. background-size: cover;
  21078. transition: all 2s;
  21079. margin-right: 20px;
  21080. }
  21081. .isCard > div,
  21082. .noCard > div,
  21083. .isCard1 > div {
  21084. white-space: nowrap;
  21085. overflow: hidden;
  21086. text-overflow: ellipsis;
  21087. width: 75%;
  21088. margin: 0 auto;
  21089. }
  21090. .noCard {
  21091. background-image: none;
  21092. }
  21093. .isCard1 {
  21094. background-image: url("../assets/icon/conSentences/answerBorder.png");
  21095. }
  21096. .isChooseCard {
  21097. background-image: none;
  21098. border: 1px dashed #b9b9b9;
  21099. border-radius: 10px;
  21100. }
  21101. .card {
  21102. width: 130px;
  21103. height: 60px;
  21104. }
  21105. .card > img {
  21106. width: 100%;
  21107. height: 100%;
  21108. }
  21109. .rightCardBox {
  21110. margin: 10px 0 0 10px;
  21111. }
  21112. .rightCardBox > div:nth-child(1) {
  21113. margin-bottom: 10px;
  21114. }
  21115. .cardCss {
  21116. display: flex;
  21117. flex-direction: column;
  21118. flex-wrap: nowrap;
  21119. align-items: center;
  21120. border-bottom: 3px solid #b4c3d3;
  21121. padding: 0 0 5px 0;
  21122. margin-right: 10px;
  21123. }
  21124. .cardCss > div:nth-child(2) {
  21125. background: #5b7b9d;
  21126. color: #fff;
  21127. width: 20px;
  21128. height: 20px;
  21129. border-radius: 50%;
  21130. text-align: center;
  21131. line-height: 20px;
  21132. }
  21133. .isWrong {
  21134. display: flex;
  21135. flex-direction: row;
  21136. flex-wrap: nowrap;
  21137. align-content: center;
  21138. align-items: center;
  21139. }
  21140. .answerRight {
  21141. width: 25%;
  21142. }
  21143. .isTj {
  21144. display: flex;
  21145. flex-direction: row;
  21146. flex-wrap: nowrap;
  21147. align-items: center;
  21148. }
  21149. .isTj > div:nth-child(2) {
  21150. color: #727070;
  21151. margin-left: 10px;
  21152. }
  21153. .isTjImg {
  21154. width: 30px;
  21155. height: 30px;
  21156. }
  21157. .isTjImg > img {
  21158. width: 100%;
  21159. height: 100%;
  21160. }
  21161. .cardAnswerBox {
  21162. font-size: 18px;
  21163. width: 97%;
  21164. border: 5px;
  21165. padding: 0;
  21166. border-radius: 5px;
  21167. margin: 10px auto;
  21168. word-break: break-word;
  21169. }
  21170. .w_name {
  21171. margin-bottom: 10px;
  21172. }
  21173. .w_name span {
  21174. font-size: 16px;
  21175. }
  21176. .w_teachert {
  21177. width: 50px !important;
  21178. position: absolute;
  21179. height: auto !important;
  21180. z-index: 10;
  21181. right: 25px;
  21182. top: -25px;
  21183. }
  21184. .group_workBox {
  21185. }
  21186. .group_workBox + .group_workBox {
  21187. margin-top: 20px;
  21188. }
  21189. .group_box {
  21190. padding-bottom: 20px;
  21191. border-bottom: 2px solid #f0f0f0;
  21192. margin-top: 10px;
  21193. }
  21194. .group_title {
  21195. display: flex;
  21196. align-items: center;
  21197. justify-content: space-between;
  21198. width: 95%;
  21199. }
  21200. .group_name {
  21201. background-image: url(../assets/icon/groupN.png);
  21202. width: 220px;
  21203. background-size: 100% 100%;
  21204. height: 67px;
  21205. padding: 0 20px 0 43px;
  21206. box-sizing: border-box;
  21207. line-height: 63px;
  21208. color: #fff;
  21209. overflow: hidden;
  21210. white-space: nowrap;
  21211. text-overflow: ellipsis;
  21212. }
  21213. .group_work {
  21214. width: 100%;
  21215. padding: 0 10px;
  21216. box-sizing: border-box;
  21217. display: flex;
  21218. flex-wrap: wrap;
  21219. }
  21220. .g_d_box {
  21221. display: flex;
  21222. flex-flow: wrap;
  21223. justify-content: space-around;
  21224. }
  21225. .g_d_box .isChair {
  21226. background-image: url(../assets/avatar.png) !important;
  21227. }
  21228. .g_d_group {
  21229. width: 500px;
  21230. margin-bottom: 80px;
  21231. }
  21232. .g_d_group_chair {
  21233. display: flex;
  21234. align-items: center;
  21235. justify-content: center;
  21236. }
  21237. .g_d_group_chair > div + div {
  21238. margin-left: 30px;
  21239. }
  21240. .g_d_group_chair > div,
  21241. .g_d_group_chair2 > div {
  21242. display: flex;
  21243. flex-direction: column;
  21244. align-items: center;
  21245. }
  21246. .g_d_group_chair > div > span:nth-child(1),
  21247. .g_d_group_chair2 > div > span:nth-child(1) {
  21248. background-image: url(../assets/icon/chair.png);
  21249. width: 50px;
  21250. height: 50px;
  21251. display: block;
  21252. background-size: 100% 100%;
  21253. }
  21254. .g_d_group_tableBox {
  21255. display: flex;
  21256. align-items: center;
  21257. justify-content: center;
  21258. }
  21259. .g_d_group_chair2 {
  21260. display: flex;
  21261. flex-direction: column;
  21262. align-items: center;
  21263. justify-content: center;
  21264. }
  21265. .g_d_group_chair2 > div + div {
  21266. margin-top: 10px;
  21267. }
  21268. .g_d_group_table {
  21269. background-image: url(../assets/icon/groupBg.png);
  21270. width: 354px;
  21271. height: 196px;
  21272. background-size: 100% 100%;
  21273. display: flex;
  21274. align-items: center;
  21275. justify-content: center;
  21276. flex-direction: column;
  21277. color: #fff;
  21278. }
  21279. .g_d_group_table > div:nth-child(1) {
  21280. font-size: 24px;
  21281. margin-bottom: 5px;
  21282. }
  21283. .g_d_group_table > div:nth-child(2) div {
  21284. cursor: pointer;
  21285. background: #2e77bf;
  21286. padding: 4px 10px;
  21287. border-radius: 5px;
  21288. }
  21289. .groupBox {
  21290. }
  21291. .groupContent + .groupContent {
  21292. margin-top: 30px;
  21293. }
  21294. .groupTitle {
  21295. font-size: 24px;
  21296. color: rgb(80, 80, 80);
  21297. margin-bottom: 20px;
  21298. }
  21299. .groupName {
  21300. display: flex;
  21301. align-items: center;
  21302. }
  21303. .groupn {
  21304. font-size: 15px;
  21305. margin-right: 10px;
  21306. }
  21307. .groupName + .groupName {
  21308. margin-top: 15px;
  21309. }
  21310. .groupBtn {
  21311. margin-left: 10px;
  21312. }
  21313. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  21314. text-align: left;
  21315. }
  21316. .g_d_btnBox {
  21317. display: flex;
  21318. justify-content: flex-end;
  21319. align-items: center;
  21320. margin-bottom: 20px;
  21321. }
  21322. .updateChair {
  21323. position: relative;
  21324. }
  21325. .updateChairBtn {
  21326. position: absolute;
  21327. width: 50px;
  21328. height: 50px;
  21329. overflow: hidden;
  21330. /* display: flex; */
  21331. align-items: center;
  21332. justify-content: center;
  21333. background: #00000087;
  21334. color: #fff;
  21335. border-radius: 50px;
  21336. display: none;
  21337. cursor: pointer;
  21338. }
  21339. .updateChair:hover .updateChairBtn {
  21340. display: flex;
  21341. }
  21342. .group_staic_box {
  21343. display: flex;
  21344. padding: 30px 40px 10px;
  21345. flex-wrap: wrap;
  21346. }
  21347. .group_staic {
  21348. /* width: 50%; */
  21349. margin-bottom: 20px;
  21350. display: flex;
  21351. align-items: center;
  21352. }
  21353. .group_staic span:nth-child(1) {
  21354. width: 150px;
  21355. text-align: right;
  21356. margin-right: 15px;
  21357. }
  21358. .group_staic span:nth-child(2) {
  21359. background: rgb(0 123 255);
  21360. color: #fff;
  21361. border-radius: 5px;
  21362. padding: 5px;
  21363. }
  21364. .codeFileBox {
  21365. height: 300px;
  21366. background: #fff;
  21367. display: flex;
  21368. align-items: center;
  21369. justify-content: center;
  21370. }
  21371. .codeFileBox img {
  21372. width: 200px;
  21373. margin: 0;
  21374. height: auto;
  21375. }
  21376. .codeFileBox div {
  21377. background: rgb(80, 142, 226);
  21378. color: #fff;
  21379. padding: 10px 20px;
  21380. border-radius: 25px;
  21381. cursor: pointer;
  21382. margin-left: 15px;
  21383. }
  21384. .radioBox {
  21385. display: flex;
  21386. flex-direction: column;
  21387. flex-wrap: nowrap;
  21388. align-items: flex-start;
  21389. }
  21390. .radioBox > div {
  21391. margin: 10px 0 0 10px;
  21392. }
  21393. /* .radioBox >>> .el-radio__input,
  21394. .radioBox >>> .el-checkbox__inner {
  21395. margin-left: 10px;
  21396. } */
  21397. .radioBox >>> .el-radio__label,
  21398. .radioBox >>> .el-checkbox__label {
  21399. display: flex;
  21400. align-items: center;
  21401. width: 100%;
  21402. }
  21403. .radioBox >>> .el-radio__label > span {
  21404. width: 100%;
  21405. display: -webkit-box;
  21406. overflow: hidden;
  21407. white-space: normal !important;
  21408. text-overflow: ellipsis;
  21409. word-wrap: break-word;
  21410. }
  21411. .inImg {
  21412. width: 100px;
  21413. cursor: pointer;
  21414. }
  21415. .inImg > img {
  21416. width: 100%;
  21417. height: 100%;
  21418. object-fit: cover;
  21419. }
  21420. .timuImgBox {
  21421. margin: 10px 0;
  21422. display: flex;
  21423. flex-direction: column;
  21424. flex-wrap: wrap;
  21425. align-items: flex-start;
  21426. }
  21427. .timuImg {
  21428. width: 150px;
  21429. margin: 5px 0;
  21430. cursor: pointer;
  21431. }
  21432. .timuImg > img {
  21433. width: 100%;
  21434. height: 100%;
  21435. object-fit: cover;
  21436. }
  21437. .worksTop {
  21438. display: flex;
  21439. flex-direction: row;
  21440. align-items: flex-end;
  21441. }
  21442. .worksTitle{
  21443. display: flex;
  21444. flex-direction: row;
  21445. flex-wrap: nowrap;
  21446. align-items: center;
  21447. }
  21448. .worksTitle::before,.worksTop::before{
  21449. content: '';
  21450. display: block;
  21451. width: 3px;
  21452. height: 20px;
  21453. background: #0061FF;
  21454. border-radius: 3px;
  21455. margin: 0 5px 0 0;
  21456. }
  21457. .corOpen {
  21458. margin: 0 0 0 10px;
  21459. font-size: 14px;
  21460. cursor: pointer;
  21461. color: #505050;
  21462. }
  21463. .corOpen:hover {
  21464. color: #499eef;
  21465. }
  21466. .navCorOpenBox {
  21467. display: flex;
  21468. flex-direction: row;
  21469. align-items: center;
  21470. justify-content: space-between;
  21471. height: 55px;
  21472. background: #ffffff;
  21473. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  21474. border-radius: 8px 8px 0px 0px;
  21475. z-index: 9;
  21476. position: relative;
  21477. }
  21478. .navCorOpen {
  21479. padding-right: 15px;
  21480. cursor: pointer;
  21481. width: 45px;
  21482. display: flex;
  21483. }
  21484. .navCorOpen > img {
  21485. width: 100%;
  21486. height: 100%;
  21487. }
  21488. .mlImg {
  21489. width: 45px !important;
  21490. min-width: 45px;
  21491. cursor: pointer;
  21492. transform: rotate(180deg);
  21493. }
  21494. .mlImg > img {
  21495. width: 100%;
  21496. height: 100%;
  21497. }
  21498. .navLeftCss {
  21499. width: 100% !important;
  21500. left: 0 !important;
  21501. }
  21502. .isContentCss {
  21503. width: 100% !important;
  21504. }
  21505. .isAllWidth {
  21506. width: 100% !important;
  21507. }
  21508. .group_switch {
  21509. margin-right: 10px;
  21510. height: 30px;
  21511. display: flex;
  21512. align-items: center;
  21513. }
  21514. .group_switch > span {
  21515. margin-right: 5px;
  21516. }
  21517. .fileC_box {
  21518. padding-top: 15px;
  21519. }
  21520. .fileC_box > .fileC_title {
  21521. padding: 10px 5px 14px 11px;
  21522. border-top: 1px solid #cad1dc;
  21523. font-size: 14px;
  21524. font-weight: 400;
  21525. color: #cad1dc;
  21526. width: 88%;
  21527. margin: 0 auto;
  21528. }
  21529. .pl_select_box {
  21530. height: 40px;
  21531. line-height: 40px;
  21532. width: 100%;
  21533. cursor: pointer;
  21534. padding: 0 20px;
  21535. box-sizing: border-box;
  21536. border-radius: 5px;
  21537. border: 1px solid #d6d6d6;
  21538. white-space: nowrap;
  21539. overflow: hidden;
  21540. text-overflow: ellipsis;
  21541. background: #fff;
  21542. text-align: left;
  21543. }
  21544. .newButton {
  21545. width: 102px;
  21546. height: 36px;
  21547. background: #e7ebf1;
  21548. border-radius: 4px;
  21549. color: #0e1e33;
  21550. font-weight: 400;
  21551. font-size: 14px;
  21552. border: none;
  21553. float: right;
  21554. margin-left: 10px;
  21555. }
  21556. .el-table >>> .even_row {
  21557. background-color: #f0f4fa;
  21558. }
  21559. .stageBoxCss,
  21560. .stageBoxIsCss {
  21561. display: flex;
  21562. flex-direction: row;
  21563. flex-wrap: nowrap;
  21564. align-items: center;
  21565. height: 50px;
  21566. border-bottom: 1px solid #e2f5fc;
  21567. cursor: pointer;
  21568. width: 100%;
  21569. }
  21570. .stageBoxIsCss {
  21571. background: #0061ff;
  21572. color: #fff;
  21573. border-radius: 8px;
  21574. }
  21575. .stageItemTitle {
  21576. display: flex;
  21577. flex-direction: row;
  21578. flex-wrap: nowrap;
  21579. align-items: center;
  21580. margin-left: 15px;
  21581. width: calc(100% - 50px);
  21582. }
  21583. .stageItemTitle > div:first-child {
  21584. font-size: 16px;
  21585. font-weight: bold;
  21586. min-width: 55px;
  21587. }
  21588. .stageItemTitle > div:last-child {
  21589. font-size: 15px;
  21590. font-weight: 600;
  21591. max-width: 242px;
  21592. white-space: nowrap;
  21593. overflow: hidden;
  21594. text-overflow: ellipsis;
  21595. word-break: break-word;
  21596. width: calc(100% - 55px);
  21597. }
  21598. .closeTri,
  21599. .closeTri1 {
  21600. min-width: 15px;
  21601. width: 15px;
  21602. height: 15px;
  21603. }
  21604. .closeTri1 {
  21605. padding-left: 10px;
  21606. cursor: pointer;
  21607. }
  21608. .closeTri > img,
  21609. .closeTri1 > img {
  21610. width: 100%;
  21611. height: 100%;
  21612. }
  21613. .noToolBlue {
  21614. min-width: 10px;
  21615. width: 10px;
  21616. height: 10px;
  21617. background: #0061ff;
  21618. border-radius: 50%;
  21619. margin-left: 13px;
  21620. }
  21621. .stageChild,
  21622. .toolChild {
  21623. height: 0;
  21624. overflow: hidden;
  21625. transition: all 0.5s;
  21626. }
  21627. .toolChild {
  21628. margin: 0 0 0 17px;
  21629. padding: 0 0 0 20px;
  21630. border-left: 1px solid #d7d7d7;
  21631. }
  21632. .gjCss {
  21633. display: flex;
  21634. flex-direction: row;
  21635. flex-wrap: nowrap;
  21636. align-items: center;
  21637. padding: 15px 0;
  21638. box-sizing: border-box;
  21639. font-size: 14px;
  21640. cursor: pointer;
  21641. }
  21642. .toolChild > div {
  21643. position: relative;
  21644. }
  21645. .toolChild > div::before {
  21646. content: "";
  21647. width: 15px;
  21648. height: 1px;
  21649. background: #cad1dc;
  21650. position: absolute;
  21651. top: 24px;
  21652. left: -20px;
  21653. display: block;
  21654. }
  21655. .isGjCss {
  21656. color: #0061ff;
  21657. }
  21658. .navItem {
  21659. background: #ffffff;
  21660. border-radius: 4px;
  21661. width: 100%;
  21662. margin: 10px auto 0;
  21663. position: relative;
  21664. height: 40px;
  21665. display: flex;
  21666. flex-direction: row;
  21667. flex-wrap: nowrap;
  21668. align-items: center;
  21669. }
  21670. .navItemList {
  21671. display: flex;
  21672. flex-direction: row;
  21673. flex-wrap: nowrap;
  21674. align-items: center;
  21675. padding: 0 13px;
  21676. cursor: pointer;
  21677. width: calc(100% - 60px);
  21678. height: 100%;
  21679. }
  21680. .navItemList > div:first-child {
  21681. min-width: 60px;
  21682. }
  21683. .navItemList > div:last-child {
  21684. width: calc(100% - 80px);
  21685. white-space: nowrap;
  21686. overflow: hidden;
  21687. text-overflow: ellipsis;
  21688. word-break: break-word;
  21689. }
  21690. /* .isItemList > div {
  21691. color: #fff !important;
  21692. } */
  21693. .tool_work_box {
  21694. width: 100%;
  21695. padding: 0 37px 0;
  21696. box-sizing: border-box;
  21697. }
  21698. .tool_box {
  21699. width: 100%;
  21700. padding: 0 0 0 20px;
  21701. }
  21702. .tool_type_box {
  21703. display: flex;
  21704. flex-direction: row;
  21705. align-items: baseline;
  21706. flex-wrap: nowrap;
  21707. justify-content: flex-start;
  21708. position: relative;
  21709. }
  21710. .toolSort {
  21711. display: flex;
  21712. flex-direction: row;
  21713. flex-wrap: wrap;
  21714. justify-content: flex-start;
  21715. align-items: flex-start;
  21716. padding: 0 0 15px 0;
  21717. }
  21718. .toolSort > div {
  21719. margin: 0 10px 0 0;
  21720. width: 135px;
  21721. box-sizing: border-box;
  21722. border: 2px solid transparent;
  21723. }
  21724. .tools {
  21725. width: 100%;
  21726. display: flex;
  21727. flex-direction: column;
  21728. flex-wrap: nowrap;
  21729. align-items: flex-start;
  21730. }
  21731. .whiteBIcon {
  21732. width: fit-content;
  21733. cursor: pointer;
  21734. display: flex;
  21735. flex-direction: column;
  21736. flex-wrap: nowrap;
  21737. align-items: center;
  21738. font-size: 14px;
  21739. }
  21740. .tool:hover {
  21741. border: 2px solid #a5c7ff;
  21742. border-radius: 5px;
  21743. }
  21744. .whiteBIcon > img {
  21745. width: 65px;
  21746. height: 100%;
  21747. }
  21748. .whiteBIcon > img {
  21749. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  21750. border-radius: 15px;
  21751. }
  21752. .check {
  21753. /* width: 20px;
  21754. height: 20px; */
  21755. cursor: pointer;
  21756. margin: 10px 0;
  21757. position: absolute;
  21758. right: 2px;
  21759. top: -5px;
  21760. }
  21761. .noChoose,
  21762. .isChoose {
  21763. width: 15px;
  21764. height: 15px;
  21765. border-radius: 50%;
  21766. border: 1px solid #adadad;
  21767. }
  21768. .isChoose {
  21769. border: 4px solid #0363ff !important;
  21770. width: 10px;
  21771. height: 10px;
  21772. }
  21773. .isToolChoose {
  21774. border: 2px solid #5394ff !important;
  21775. border-radius: 5px;
  21776. box-shadow: 0 0 6px 0px #5394ff;
  21777. }
  21778. .checkDiv {
  21779. display: flex;
  21780. align-items: center;
  21781. }
  21782. .checkDiv span {
  21783. margin-left: 5px;
  21784. color: #858585;
  21785. }
  21786. .check img {
  21787. width: 20px;
  21788. height: 20px;
  21789. }
  21790. .lockTaskIcon {
  21791. width: 20px;
  21792. height: 20px;
  21793. position: absolute;
  21794. right: 10px;
  21795. top: 15px;
  21796. }
  21797. .lockTaskIcon > img {
  21798. width: 100%;
  21799. height: 100%;
  21800. }
  21801. .pick_box {
  21802. display: flex;
  21803. align-items: flex-start;
  21804. flex-wrap: wrap;
  21805. }
  21806. .selectBox {
  21807. width: 110px;
  21808. margin-left: 10px;
  21809. margin: 0 10px 0 auto;
  21810. }
  21811. .selectBox >>> .el-input__inner {
  21812. height: 30px;
  21813. line-height: 30px;
  21814. }
  21815. .selectBox >>> .el-input__icon {
  21816. line-height: 30px;
  21817. }
  21818. .sentenceTitle {
  21819. display: flex;
  21820. flex-direction: row;
  21821. flex-wrap: nowrap;
  21822. align-items: center;
  21823. }
  21824. .sentenceTitle::before {
  21825. content: attr(index);
  21826. background: #3681fc;
  21827. border-radius: 50%;
  21828. color: #fff;
  21829. width: 25px;
  21830. height: 25px;
  21831. min-width: 25px;
  21832. min-height: 25px;
  21833. text-align: center;
  21834. line-height: 25px;
  21835. margin-right: 5px;
  21836. }
  21837. .hfBox {
  21838. padding: 10px;
  21839. box-sizing: border-box;
  21840. }
  21841. .whoReplyWho {
  21842. display: flex;
  21843. flex-direction: row;
  21844. flex-wrap: nowrap;
  21845. align-items: baseline;
  21846. justify-content: flex-start;
  21847. }
  21848. .hfBottom {
  21849. display: flex;
  21850. flex-direction: row;
  21851. flex-wrap: nowrap;
  21852. align-items: center;
  21853. justify-content: space-between;
  21854. font-size: 14px;
  21855. }
  21856. .deleteHfItem {
  21857. cursor: pointer;
  21858. width: 20px;
  21859. height: 20px;
  21860. }
  21861. .deleteHfItem > img {
  21862. width: 100%;
  21863. height: 100%;
  21864. }
  21865. .whoReplyWho > .hfImg {
  21866. width: 12px;
  21867. height: 12px;
  21868. margin: 0 5px;
  21869. }
  21870. .whoReplyWho > .hfImg > img {
  21871. width: 100%;
  21872. height: 100%;
  21873. }
  21874. .hfContent {
  21875. padding-top: 10px;
  21876. box-sizing: border-box;
  21877. display: -webkit-box;
  21878. overflow: hidden;
  21879. white-space: normal !important;
  21880. text-overflow: ellipsis;
  21881. word-wrap: break-word;
  21882. -webkit-box-orient: vertical;
  21883. }
  21884. .hfTime {
  21885. text-align: left;
  21886. box-sizing: border-box;
  21887. padding: 10px 0 10px 0px;
  21888. color: #bfbfbf;
  21889. font-size: 14px;
  21890. }
  21891. .btnAllNT {
  21892. position: fixed;
  21893. bottom: 100px;
  21894. right: 40px;
  21895. z-index: 999;
  21896. display: flex;
  21897. flex-direction: row;
  21898. }
  21899. .btnAllNT > img {
  21900. cursor: pointer;
  21901. width: 80px;
  21902. }
  21903. .toolMask {
  21904. position: fixed;
  21905. width: 100%;
  21906. height: 100%;
  21907. background: #3f3c3c;
  21908. opacity: 0.5;
  21909. top: 0;
  21910. left: 0;
  21911. z-index: 999;
  21912. }
  21913. .addToolCss {
  21914. position: fixed;
  21915. z-index: 999;
  21916. background: #fff;
  21917. right: 5%;
  21918. bottom: 18%;
  21919. min-width: 1035px;
  21920. min-height: 300px;
  21921. border-radius: 10px;
  21922. box-shadow: 0 0 8px 1px #b2b2b2;
  21923. }
  21924. .toolTop {
  21925. display: flex;
  21926. flex-direction: row;
  21927. flex-wrap: nowrap;
  21928. justify-content: space-between;
  21929. align-items: center;
  21930. padding: 20px;
  21931. }
  21932. .toolTop > div:nth-child(2) {
  21933. width: 15px;
  21934. height: 15px;
  21935. padding-right: 10px;
  21936. cursor: pointer;
  21937. }
  21938. .toolTop > div:nth-child(2) > img {
  21939. width: 100%;
  21940. height: 100%;
  21941. }
  21942. </style>