studyStudent.vue 532 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div class="pb_content_body" style="display: flex; height: 900px; position: relative">
  4. <div class="btnAllNT">
  5. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  6. <img src="../../assets/icon/learn/last.png" @click="nextOrpreSteps(0)" />
  7. <img src="../../assets/icon/learn/next.png" @click="nextOrpreSteps(1)" />
  8. <img src="../../assets/icon/learn/return.png" @click.stop="goTo(
  9. '/courseDetail?userid=' +
  10. userid +
  11. '&oid=' +
  12. oid +
  13. '&org=' +
  14. org +
  15. '&cid=' +
  16. classId +
  17. '&courseId=' +
  18. id +
  19. '&tType=' +
  20. tType +
  21. '&screenType=' +
  22. screenType
  23. )
  24. " />
  25. </div>
  26. <div class="pButton" style="
  27. left: 0;
  28. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  29. " v-if="mlDialog == false" @click="setContent2(true)">
  30. <!-- 批 , getCourseDetail()-->
  31. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  32. </div>
  33. <div class="pb_left" v-else>
  34. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  35. <div class="courseTitle">
  36. <div style="width:calc(100% - 25px)">
  37. <el-tooltip effect="light" :content="courseDetail.title" placement="top">
  38. <div class="ctitle">{{ courseDetail.title }}</div>
  39. </el-tooltip>
  40. <!-- <div class="inviteBox" v-if="tcid && inviteCode">
  41. <div><span>随机码:{{ inviteCode }}</span></div>
  42. </div> -->
  43. </div>
  44. <el-tooltip effect="light" content="收缩" placement="top">
  45. <div class="mlImg" @click="setContent2(false)">
  46. <img src="../../assets/mlBtn.png" alt="" />
  47. </div>
  48. </el-tooltip>
  49. </div>
  50. <div class="ml">目录</div>
  51. <div class="cru_selectBox">
  52. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  53. <div class="blue_box_one" @click="get(stageIndex)">
  54. <div v-if="courseDetail.state == 1">第{{ stageIndex + 1 }}阶段</div>
  55. <div v-if="courseDetail.state == 2">任务查看</div>
  56. <div>{{ item.dyName }}</div>
  57. </div>
  58. <div class="twoChild" :class="{ navActive: item.isOpen }">
  59. <div class="navChild" v-for="(nav, navIndex) in item.task" :key="navIndex">
  60. <div class="navTask" @click="openTask(stageIndex, navIndex, nav.id)" :class="{
  61. openTaskActive:
  62. navIndex == taskCount &&
  63. nav.id == navId &&
  64. stageIndex == courseType,
  65. }">
  66. <div class="vedioNav" :class="{
  67. isClick:
  68. navIndex == taskCount &&
  69. nav.id == navId &&
  70. stageIndex == courseType,
  71. }" style="margin: 0">
  72. 任务{{ navIndex + 1 }}
  73. </div>
  74. <el-tooltip class="navTaskname item" effect="light" :content="nav.taskName" placement="top">
  75. <div :style="{
  76. width:
  77. IsLookOpen && !nav.isLook
  78. ? 'calc(100% - 75px)'
  79. : 'auto',
  80. }">
  81. {{ nav.taskName }}
  82. </div>
  83. </el-tooltip>
  84. <img src="../../assets/lock.png" v-if="IsLookOpen && !nav.isLook" alt="" />
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  92. <div class="new_top" style="
  93. position: fixed;
  94. top: 0;
  95. left: 20.7%;
  96. width: 80%;
  97. z-index: 999;
  98. box-shadow: 0px 9px 0 0 #f2f2f2;
  99. " :class="{ navLeftCss: !mlDialog }">
  100. <div class="courseIndex">
  101. <div>第{{ courseType - 0 + 1 }}阶段</div>
  102. <el-tooltip effect="light" :content="chapInfoList[courseType].dyName" placement="top">
  103. <div>{{ chapInfoList[courseType].dyName }}</div>
  104. </el-tooltip>
  105. <div>任务{{ taskCount + 1 }}</div>
  106. </div>
  107. <div class="btnAll">
  108. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  109. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  110. <div class="returnBtn" @click="refreshCourse">刷新</div>
  111. <div class="returnBtn" @click="setPz" v-if="tType == 1">评课</div>
  112. <!-- <div class="returnBtn" @click="allScrell">全屏</div> -->
  113. <!-- <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  114. 开始录制
  115. </div>
  116. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  117. style="background: #ee5255">
  118. 下载录制
  119. </div>
  120. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  121. 权限
  122. </div> -->
  123. <div class="returnBtn" style="background: #225bc7" @click.stop="goTo(
  124. '/courseDetail?userid=' +
  125. userid +
  126. '&oid=' +
  127. oid +
  128. '&org=' +
  129. org +
  130. '&cid=' +
  131. classId +
  132. '&courseId=' +
  133. id +
  134. '&tType=' +
  135. tType +
  136. '&screenType=' +
  137. screenType
  138. )
  139. ">
  140. 返回
  141. </div>
  142. </div>
  143. </div>
  144. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  145. .taskJson"
  146. :key="index"-->
  147. <!-- <div class="isNoMessage" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  148. .chapterData.length == 0 &&
  149. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  150. .toolChoose[0].tool.length == 0 &&
  151. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  152. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  153. .taskDetail == '' &&
  154. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  155. ">
  156. <img src="../../assets/icon/isNoMessage.png" alt />
  157. </div> -->
  158. <div class="study_top" :class="{ pzClass: pzDialog }">
  159. <div class="vedioBox" v-if="vedio[taskCount].length > 0 ||
  160. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  161. .taskDetail != '' ||
  162. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  163. .chapterData.length > 0
  164. ">
  165. <div class="checkbox">
  166. <div class="check" style="font-size: 25px" :id="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  167. ">
  168. 学一学
  169. </div>
  170. </div>
  171. <div class="student_head" v-if="vedio[taskCount].length > 0 ||
  172. textList[taskCount].length > 0 ||
  173. lineList[taskCount].length > 0 ||
  174. file[taskCount].length > 0 ||
  175. fileC[taskCount].length > 0 ||
  176. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  177. .taskDetail != ''
  178. ">
  179. <div class="taskBox">
  180. <div style="
  181. display: flex;
  182. flex-wrap: nowrap;
  183. flex-direction: column;
  184. position: relative;
  185. ">
  186. <div style="padding: 15px 0 15px 20px; line-height: 25px" class="cont" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[
  187. taskCount
  188. ].taskDetail != ''
  189. " v-html="chapInfoList[courseType].chapterInfo[0].taskJson[
  190. taskCount
  191. ].taskDetail
  192. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  193. taskCount
  194. ].taskDetail
  195. : '暂无描述'
  196. "></div>
  197. </div>
  198. </div>
  199. <div class="vedioTaskBox">
  200. <div :class="contentDialog == false
  201. ? 'box_course isContentCss'
  202. : 'box_course'
  203. " v-if="vedio[taskCount].length > 0 ||
  204. textList[taskCount].length > 0 ||
  205. lineList[taskCount].length > 0 ||
  206. file[taskCount].length > 0
  207. ">
  208. <div class="wheel" style="height: auto;" v-if="vedio.length &&
  209. vedio[taskCount] &&
  210. vedio[taskCount].length > 0 &&
  211. showType == 0
  212. ">
  213. <div class="workd_media" style="height: 650px; width: calc(100% - 50px)">
  214. <video-player class="video-player vjs-custom-skin"
  215. :class="contentDialog == false ? 'isAllWidth' : ''" :playsinline="true"
  216. :options="playerO[taskCount]" @play="onPlayerPlay($event)"
  217. style="width: 100%; height: 100%; margin: 0 0 0 30px"></video-player>
  218. </div>
  219. </div>
  220. <div class="wheel" v-if="showType == 1" style="
  221. box-shadow: 0 0 6px 1px #f2f2f2;
  222. width: 95%;
  223. margin: 0 auto;
  224. background: #f1f1f1;
  225. ">
  226. <div class="title">查看文档</div>
  227. <el-form class="textBox">
  228. <el-form-item class="textTitle">
  229. <div style="font-size: 22px">
  230. {{ text.name }}
  231. </div>
  232. </el-form-item>
  233. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  234. <div v-html="text.url" class="textContent cont"></div>
  235. </el-form>
  236. </div>
  237. <div class="wheel"
  238. v-if="pptImgUrl1.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') != -1 && showType == 2"
  239. style="width: 95%; margin: 0 auto">
  240. <iframe style="width: 100%; height: 100%; border: none" :src="pptImgUrl1"></iframe>
  241. </div>
  242. <div class="wheel" v-else-if="showType == 2" style="width: 95%; margin: 0 auto">
  243. <iframe style="width: 100%; height: 100%; border: none" security="restricted"
  244. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  245. :src="pptImgUrl1"></iframe>
  246. </div>
  247. <div class="wheel" v-if="showType == 3" style="width: 95%; margin: 0 auto">
  248. <pdf :pdfUrl="pptImgUrl1" style="width: 100%; height: 100%; overflow: auto"></pdf>
  249. </div>
  250. <div class="wheel" v-if="showType == 4" style="width: 95%; margin: 0 auto">
  251. <el-image :src="pptImgUrl1" fit="cover" style="width: 100%"></el-image>
  252. </div>
  253. </div>
  254. <div class="pButton" style="
  255. position: absolute;
  256. right: 20px;
  257. top: 0;
  258. background: #205cc6;
  259. z-index: 998;
  260. opacity: .8;
  261. " v-if="!contentDialog" @click="setContent(true)">
  262. <!-- 批 -->
  263. <img src="../../assets/navBtn2.png" style="width: 25px" alt="" />
  264. </div>
  265. <div v-if="contentDialog == true" :style="{
  266. width: (!vedio[taskCount].length > 0 &&
  267. !textList[taskCount].length > 0 &&
  268. !lineList[taskCount].length > 0 &&
  269. !file[taskCount].length > 0 && fileC[taskCount].length) ? 'calc(100%)' : 'calc(100% - 83%)', margin: (!vedio[taskCount].length > 0 &&
  270. !textList[taskCount].length > 0 &&
  271. !lineList[taskCount].length > 0 &&
  272. !file[taskCount].length > 0 && fileC[taskCount].length) ? '0 15px' : '0 15px 0 0'
  273. }">
  274. <div class="vedioList" v-if="(vedio.length &&
  275. vedio[taskCount] &&
  276. vedio[taskCount].length > 0) ||
  277. (textList.length &&
  278. textList[taskCount] &&
  279. textList[taskCount].length > 0) ||
  280. (lineList.length &&
  281. lineList[taskCount] &&
  282. lineList[taskCount].length > 0) ||
  283. (file.length &&
  284. file[taskCount] &&
  285. file[taskCount].length > 0) ||
  286. (fileC.length &&
  287. fileC[taskCount] &&
  288. fileC[taskCount].length > 0)
  289. " style="height: 650px">
  290. <div class="navCorOpenBox">
  291. <div class="navTitile">内容列表:</div>
  292. <div class="navCorOpen" @click="setContent(false)">
  293. <img src="../../assets/navBtn2.png" alt="" />
  294. </div>
  295. </div>
  296. <div class="navBox">
  297. <div v-show="vedio.length &&
  298. vedio[taskCount] &&
  299. vedio[taskCount].length > 0
  300. ">
  301. <div class="vedioTimeBox" v-for="(media, vedioIndex) in vedio[taskCount]" :key="vedioIndex + '1'"
  302. @click="lookVedio(media.url, vedioIndex)">
  303. <div class="vedioName" :class="isClickNav == 'video' + vedioIndex
  304. ? 'isClickNav'
  305. : ''
  306. ">
  307. <span v-if="media.text">{{ media.text }}-</span>{{ media.name }}
  308. </div>
  309. </div>
  310. </div>
  311. <div v-show="textList.length &&
  312. textList[taskCount] &&
  313. textList[taskCount].length > 0
  314. " class="newNav" v-for="(text, textIndex) in textList[taskCount]" :key="textIndex + '2'"
  315. @click="lookText(taskCount, textIndex)">
  316. <div style="width: calc(100% - 0px)">
  317. <div class="navText" :class="isClickNav == 'text' + textIndex
  318. ? 'isClickNav'
  319. : ''
  320. ">
  321. {{
  322. textList[taskCount].length > 0 ? text.name : ""
  323. }}.doc
  324. </div>
  325. </div>
  326. </div>
  327. <div v-show="lineList.length &&
  328. lineList[taskCount] &&
  329. lineList[taskCount].length > 0
  330. " class="newNav" v-for="(lines, lineIndex) in lineList[taskCount]" :key="lineIndex + '4'"
  331. @click="doUrl(lines.url, lineIndex)">
  332. <div style="width: calc(100% - 0px)">
  333. <div class="navText" :class="isClickNav == 'line' + lineIndex
  334. ? 'isClickNav'
  335. : ''
  336. ">
  337. {{ lines.title ? lines.title : lines.url }}
  338. </div>
  339. </div>
  340. </div>
  341. <div class="newNav" v-show="file.length &&
  342. file[taskCount] &&
  343. file[taskCount].length > 0
  344. " v-for="(f, fileIndex) in file[taskCount]" :key="fileIndex" @click="downFile(f, fileIndex)">
  345. <div style="width: calc(100% - 0px)">
  346. <div class="navText" :class="isClickNav == 'word' + fileIndex
  347. ? 'isClickNav'
  348. : ''
  349. ">
  350. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  351. </div>
  352. </div>
  353. </div>
  354. <div class="newNav" v-show="fileC.length &&
  355. fileC[taskCount] &&
  356. fileC[taskCount].length > 0
  357. " v-for="(f, fileIndex) in fileC[taskCount]" :key="fileIndex" @click="downloadFile2(f)">
  358. <div style="width: calc(100% - 0px)">
  359. <div class="navText">
  360. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  361. </div>
  362. </div>
  363. </div>
  364. </div>
  365. </div>
  366. </div>
  367. </div>
  368. <div style="width: 81%">
  369. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 2 || showType == 3">
  370. <el-button type="primary" @click="checkFileFull(showType, pptImgUrl1)">全屏查看</el-button>
  371. <el-button type="primary" @click="downloadFile(pptImgUrl1)"
  372. v-if="isClickNav.indexOf('line') == -1">文件下载</el-button>
  373. <el-button v-if="isClickNav.indexOf('line') != -1" type="primary" @click="openLine(pptImgUrl1)">打开链接
  374. </el-button>
  375. </div>
  376. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 1">
  377. <el-button type="primary" @click="checkFileFull(showType, text)">全屏查看</el-button>
  378. </div>
  379. </div>
  380. </div>
  381. </div>
  382. <div class="student_body" v-resize="resize">
  383. <div class="vedioBox" v-if="courseDetail.userid == userid ||
  384. (courseDetail.course_teacher &&
  385. courseDetail.course_teacher.indexOf(userid) != -1)">
  386. <div class="queTop" style="
  387. font-size: 25px;
  388. padding: 15px 0 15px 30px;
  389. font-weight: bold;
  390. ">
  391. 任务布置区
  392. <el-button style="margin:0 30px 0 auto" type="primary" size="small" @click="addToolChoose">确定</el-button>
  393. </div>
  394. <div class="tool_work_box">
  395. <div class="tool_box">
  396. <div class="tool_type_box">
  397. <div class="chooseWho">
  398. <div :class="toolType == 0 ? 'isChooseActive' : ''
  399. " @click="(toolType = 0), $forceUpdate()">
  400. 互动类
  401. </div>
  402. <div :class="toolType == 1 ? 'isChooseActive' : ''
  403. " @click="(toolType = 1), $forceUpdate()">
  404. 思维类
  405. </div>
  406. <div :class="toolType == 2 ? 'isChooseActive' : ''
  407. " @click="(toolType = 2), $forceUpdate()">
  408. 评价类
  409. </div>
  410. <div :class="toolType == 3 ? 'isChooseActive' : ''
  411. " @click="(toolType = 3), $forceUpdate()">
  412. 编程类
  413. </div>
  414. <div :class="toolType == 5 ? 'isChooseActive' : ''
  415. " @click="(toolType = 5), $forceUpdate()">
  416. 学科类
  417. </div>
  418. <div :class="toolType == 4 ? 'isChooseActive' : ''
  419. " @click="(toolType = 4), $forceUpdate()">
  420. 其他
  421. </div>
  422. </div>
  423. </div>
  424. <di>
  425. <div class="toolSort" v-if="toolType == 0">
  426. <div class="tool">
  427. <div class="whiteBIcon" @click="addTools2(10)">
  428. <img src="../../assets/icon/thirdToolList/time.png" alt />
  429. <div style="margin: 5px 0">倒计时</div>
  430. </div>
  431. <div class="check" @click="addTools2(10)">
  432. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(10) == -1" />
  433. <div class="checkDiv" v-else>
  434. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  435. </div>
  436. </div>
  437. </div>
  438. <!-- <div class="tool">
  439. <div class="whiteBIcon" @click="openTools2(49)">
  440. <img src="../../assets/icon/fourthToolList/group.png" alt />
  441. <div style="margin: 5px 0">学生分组</div>
  442. </div>
  443. <div class="check" @click="addTools2(49)">
  444. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(49) == -1" />
  445. <div class="checkDiv" v-else>
  446. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  447. </div>
  448. </div>
  449. </div>
  450. <div class="tool">
  451. <div class="whiteBIcon" @click="openTools2(62)">
  452. <img src="../../assets/icon/fourthToolList/interVideo.png" alt />
  453. <div style="margin: 5px 0">交互视频</div>
  454. </div>
  455. <div class="check" @click="addTools2(62)">
  456. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(62) == -1" />
  457. <div class="checkDiv" v-else>
  458. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  459. </div>
  460. </div>
  461. </div> -->
  462. </div>
  463. <div class="toolSort" v-if="toolType == 1">
  464. <div class="tool">
  465. <div class="whiteBIcon" @click="addTools2(7)">
  466. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  467. <div style="margin: 5px 0">思维网格</div>
  468. </div>
  469. <div class="check" @click="addTools2(7)">
  470. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(7) == -1" />
  471. <div class="checkDiv" v-else>
  472. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  473. </div>
  474. </div>
  475. </div>
  476. <div class="tool">
  477. <div class="whiteBIcon" @click="addTools2(1)">
  478. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  479. <div style="margin: 5px 0">电子白板</div>
  480. </div>
  481. <div class="check" @click="addTools2(1)">
  482. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(1) == -1" />
  483. <div class="checkDiv" v-else>
  484. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  485. </div>
  486. </div>
  487. </div>
  488. <div class="tool">
  489. <div class="whiteBIcon" @click="addTools2(52)">
  490. <img src="../../assets/icon/fourthToolList/text.png" alt />
  491. <div style="margin: 5px 0">文档</div>
  492. </div>
  493. <div class="check" @click="addTools2(52)">
  494. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(52) == -1" />
  495. <div class="checkDiv" v-else>
  496. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  497. </div>
  498. </div>
  499. </div>
  500. <div class="tool">
  501. <div class="whiteBIcon" @click="addTools2(3)">
  502. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  503. <div style="margin: 5px 0">思维导图</div>
  504. </div>
  505. <div class="check" @click="addTools2(3)">
  506. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(3) == -1" />
  507. <div class="checkDiv" v-else>
  508. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  509. </div>
  510. </div>
  511. </div>
  512. <div class="tool">
  513. <div class="whiteBIcon" @click="addTools2(48)">
  514. <img src="../../assets/icon/fourthToolList/table.png" alt />
  515. <div style="margin: 5px 0">表格</div>
  516. </div>
  517. <div class="check" @click="addTools2(48)">
  518. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(48) == -1" />
  519. <div class="checkDiv" v-else>
  520. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  521. </div>
  522. </div>
  523. </div>
  524. </div>
  525. <div class="toolSort" v-if="toolType == 2">
  526. <!-- <div class="tool">
  527. <div class="whiteBIcon" @click="openTools2(4)">
  528. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  529. <div style="margin: 5px 0">问卷调查</div>
  530. </div>
  531. <div class="check" @click="addTools2(4)">
  532. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(4) == -1" />
  533. <div class="checkDiv" v-else>
  534. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  535. </div>
  536. </div>
  537. </div>
  538. <div class="tool">
  539. <div class="whiteBIcon" @click="openTools2(45)">
  540. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  541. <div style="margin: 5px 0">选择题</div>
  542. </div>
  543. <div class="check" @click="addTools2(45)">
  544. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(45) == -1" />
  545. <div class="checkDiv" v-else>
  546. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  547. </div>
  548. </div>
  549. </div>
  550. <div class="tool">
  551. <div class="whiteBIcon" @click="openTools2(15)">
  552. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  553. <div style="margin: 5px 0">问答工具</div>
  554. </div>
  555. <div class="check" @click="addTools2(15)">
  556. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(15) == -1" />
  557. <div class="checkDiv" v-else>
  558. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  559. </div>
  560. </div>
  561. </div> -->
  562. <div class="tool">
  563. <div class="whiteBIcon" @click="addTools2(16)">
  564. <img src="../../assets/icon/thirdToolList/work.png" alt />
  565. <div style="margin: 5px 0">作业提交</div>
  566. </div>
  567. <div class="check" @click="addTools2(16)">
  568. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(16) == -1" />
  569. <div class="checkDiv" v-else>
  570. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  571. </div>
  572. </div>
  573. </div>
  574. <div class="tool">
  575. <div class="whiteBIcon" @click="addTools2(50)">
  576. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  577. <div style="margin: 5px 0">批量上传</div>
  578. </div>
  579. <div class="check" @click="addTools2(50)">
  580. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(50) == -1" />
  581. <div class="checkDiv" v-else>
  582. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  583. </div>
  584. </div>
  585. </div>
  586. <!-- <div class="tool">
  587. <div class="whiteBIcon" @click="openTools2(40)">
  588. <img src="../../assets/icon/secondToolList/eval.png" alt />
  589. <div style="margin: 5px 0">个人评价</div>
  590. </div>
  591. <div class="check" @click="addTools2(40)">
  592. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(40) == -1" />
  593. <div class="checkDiv" v-else>
  594. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  595. </div>
  596. </div>
  597. </div> -->
  598. <!-- <div class="tool">
  599. <div class="whiteBIcon" @click="openTools2(41)">
  600. <img src="../../assets/icon/thirdToolList/select.png" alt />
  601. <div style="margin: 5px 0">选择填空</div>
  602. </div>
  603. <div class="check" @click="addTools2(41)">
  604. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(41) == -1" />
  605. <div class="checkDiv" v-else>
  606. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  607. </div>
  608. </div>
  609. </div>
  610. <div class="tool">
  611. <div class="whiteBIcon" @click="openTools2(47)">
  612. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  613. <div style="margin: 5px 0">连词成句</div>
  614. </div>
  615. <div class="check" @click="addTools2(47)">
  616. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(47) == -1" />
  617. <div class="checkDiv" v-else>
  618. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  619. </div>
  620. </div>
  621. </div> -->
  622. </div>
  623. <div class="toolSort" v-if="toolType == 3">
  624. <div class="tool">
  625. <div class="whiteBIcon" @click="addTools2(18)">
  626. <img src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  627. <div style="margin: 5px 0">训练平台</div>
  628. </div>
  629. <div class="check" @click="addTools2(18)">
  630. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(18) == -1" />
  631. <div class="checkDiv" v-else>
  632. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  633. </div>
  634. </div>
  635. </div>
  636. <div class="tool">
  637. <div class="whiteBIcon" @click="addTools2(21)">
  638. <img src="../../assets/icon/fourthToolList/program.png" alt />
  639. <div style="margin: 5px 0">编程平台</div>
  640. </div>
  641. <div class="check" @click="addTools2(21)">
  642. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(21) == -1" />
  643. <div class="checkDiv" v-else>
  644. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  645. </div>
  646. </div>
  647. </div>
  648. <div class="tool">
  649. <div class="whiteBIcon" @click="addTools2(22)">
  650. <img src="../../assets/icon/fourthToolList/AIprogram2.png" alt />
  651. <div style="margin: 5px 0">AI体验</div>
  652. </div>
  653. <div class="check" @click="addTools2(22)">
  654. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(22) == -1" />
  655. <div class="checkDiv" v-else>
  656. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  657. </div>
  658. </div>
  659. </div>
  660. <div class="tool">
  661. <div class="whiteBIcon" @click="addTools2(23)">
  662. <img src="../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  663. <div style="margin: 5px 0">Python</div>
  664. </div>
  665. <div class="check" @click="addTools2(23)">
  666. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(23) == -1" />
  667. <div class="checkDiv" v-else>
  668. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  669. </div>
  670. </div>
  671. </div>
  672. <div class="tool">
  673. <div class="whiteBIcon" @click="addTools2(24)">
  674. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  675. <div style="margin: 5px 0">AI平台</div>
  676. </div>
  677. <div class="check" @click="addTools2(24)">
  678. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(24) == -1" />
  679. <div class="checkDiv" v-else>
  680. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  681. </div>
  682. </div>
  683. </div>
  684. <div class="tool">
  685. <div class="whiteBIcon" @click="addTools2(32)">
  686. <img src="../../assets/icon/thirdToolList/code.png" alt />
  687. <div style="margin: 5px 0">源码编辑</div>
  688. </div>
  689. <div class="check" @click="addTools2(32)">
  690. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(32) == -1" />
  691. <div class="checkDiv" v-else>
  692. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  693. </div>
  694. </div>
  695. </div>
  696. <div class="tool">
  697. <div class="whiteBIcon" @click="addTools2(57)">
  698. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  699. <div style="margin: 5px 0">CocoPi</div>
  700. </div>
  701. <div class="check" @click="addTools2(57)">
  702. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(57) == -1" />
  703. <div class="checkDiv" v-else>
  704. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  705. </div>
  706. </div>
  707. </div>
  708. <div class="tool">
  709. <div class="whiteBIcon" @click="addTools2(63)">
  710. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  711. <div style="margin: 5px 0">海龟编程</div>
  712. </div>
  713. <div class="check" @click="addTools2(63)">
  714. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(63) == -1" />
  715. <div class="checkDiv" v-else>
  716. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  717. </div>
  718. </div>
  719. </div>
  720. </div>
  721. <div class="toolSort" v-if="toolType == 5">
  722. <div class="tool">
  723. <div class="whiteBIcon" @click="addTools2(28)">
  724. <img src="../../assets/icon/secondToolList/translation.png" alt />
  725. <div style="margin: 5px 0">翻译</div>
  726. </div>
  727. <div class="check" @click="addTools2(28)">
  728. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(28) == -1" />
  729. <div class="checkDiv" v-else>
  730. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  731. </div>
  732. </div>
  733. </div>
  734. <div class="tool">
  735. <div class="whiteBIcon" @click="addTools2(37)">
  736. <img src="../../assets/icon/secondToolList/mohe.png" alt />
  737. <div style="margin: 5px 0">魔盒识字</div>
  738. </div>
  739. <div class="check" @click="addTools2(37)">
  740. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(37) == -1" />
  741. <div class="checkDiv" v-else>
  742. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  743. </div>
  744. </div>
  745. </div>
  746. <div class="tool">
  747. <div class="whiteBIcon" @click="addTools2(38)">
  748. <img src="../../assets/icon/secondToolList/24game.png" alt />
  749. <div style="margin: 5px 0">24点</div>
  750. </div>
  751. <div class="check" @click="addTools2(38)">
  752. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(38) == -1" />
  753. <div class="checkDiv" v-else>
  754. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  755. </div>
  756. </div>
  757. </div>
  758. <div class="tool">
  759. <div class="whiteBIcon" @click="addTools2(31)">
  760. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  761. <div style="margin: 5px 0">数学画板</div>
  762. </div>
  763. <div class="check" @click="addTools2(31)">
  764. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(31) == -1" />
  765. <div class="checkDiv" v-else>
  766. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  767. </div>
  768. </div>
  769. </div>
  770. <div class="tool">
  771. <div class="whiteBIcon" @click="addTools2(39)">
  772. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  773. <div style="margin: 5px 0">GeoGebra</div>
  774. </div>
  775. <div class="check" @click="addTools2(39)">
  776. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(39) == -1" />
  777. <div class="checkDiv" v-else>
  778. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  779. </div>
  780. </div>
  781. </div>
  782. <div class="tool">
  783. <div class="whiteBIcon" @click="addTools2(58)">
  784. <img src="../../assets/icon/fourthToolList/car.png" alt />
  785. <div style="margin: 5px 0">模拟驾驶</div>
  786. </div>
  787. <div class="check" @click="addTools2(58)">
  788. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(58) == -1" />
  789. <div class="checkDiv" v-else>
  790. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  791. </div>
  792. </div>
  793. </div>
  794. <div class="tool">
  795. <div class="whiteBIcon" @click="addTools2(59)">
  796. <img src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  797. <div style="margin: 5px 0">路径搜索</div>
  798. </div>
  799. <div class="check" @click="addTools2(59)">
  800. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(59) == -1" />
  801. <div class="checkDiv" v-else>
  802. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  803. </div>
  804. </div>
  805. </div>
  806. <div class="tool">
  807. <div class="whiteBIcon" @click="addTools2(60)">
  808. <img src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  809. <div style="margin: 5px 0">深度学习</div>
  810. </div>
  811. <div class="check" @click="addTools2(60)">
  812. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(60) == -1" />
  813. <div class="checkDiv" v-else>
  814. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  815. </div>
  816. </div>
  817. </div>
  818. <div class="tool">
  819. <div class="whiteBIcon" @click="addTools2(61)">
  820. <img src="../../assets/icon/fourthToolList/allHistory.png" alt />
  821. <div style="margin: 5px 0">全历史</div>
  822. </div>
  823. <div class="check" @click="addTools2(61)">
  824. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(61) == -1" />
  825. <div class="checkDiv" v-else>
  826. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  827. </div>
  828. </div>
  829. </div>
  830. </div>
  831. <div class="toolSort" v-if="toolType == 4">
  832. <div class="tool">
  833. <div class="whiteBIcon" @click="addTools2(26)">
  834. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  835. <div style="margin: 5px 0">课程设计</div>
  836. </div>
  837. <div class="check" @click="addTools2(26)">
  838. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(26) == -1" />
  839. <div class="checkDiv" v-else>
  840. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  841. </div>
  842. </div>
  843. </div>
  844. <div class="tool">
  845. <div class="whiteBIcon" @click="addTools2(25)">
  846. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  847. <div style="margin: 5px 0">目标管理</div>
  848. </div>
  849. <div class="check" @click="addTools2(25)">
  850. <img src="../../assets/icon/checkNo.png" alt v-if="checktoolArray.indexOf(25) == -1" />
  851. <div class="checkDiv" v-else>
  852. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  853. </div>
  854. </div>
  855. </div>
  856. </div>
  857. </di>
  858. </div>
  859. </div>
  860. </div>
  861. <div class="vedioBox" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  862. .toolChoose[0].tool &&
  863. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  864. .toolChoose[0].tool.length &&
  865. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  866. .toolChoose[0].tool.length > 0
  867. ">
  868. <div class="queTop" style="
  869. font-size: 25px;
  870. padding: 15px 0 15px 30px;
  871. font-weight: bold;
  872. ">
  873. 任务发布区
  874. </div>
  875. <div class="toolHeng2" style="position: relative">
  876. <div class="filebox" style="flex-wrap: nowrap; margin: 0 20px"
  877. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].toolChoose.length">
  878. <div class="choiceBox">
  879. <div class="bzChild" style="margin-right:20px;">
  880. <span>步骤选择:</span>
  881. </div>
  882. <div class="bzTypeBox">
  883. <div class="bzChild"
  884. v-for="(bz, bzIndex) in chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].toolChoose"
  885. :key="bzIndex" :class="{ active: toolIndex == bzIndex }" @click="checkBz(bzIndex)">
  886. <span>步骤{{ bzIndex + 1 }}</span>
  887. </div>
  888. </div>
  889. </div>
  890. <div class="bzBox">
  891. <div></div>
  892. <div>步骤{{ toolIndex + 1 }}</div>
  893. </div>
  894. <div class="toolBox">
  895. <div class="toolBoxSteps" @click="nextToolindex('last')"><img src="../../assets/icon/leftIcon.png" />
  896. </div>
  897. <div class="toolBoxSteps" @click="nextToolindex('next')"><img src="../../assets/icon/rightIcon.png" />
  898. </div>
  899. <div>
  900. <div class="noiframeBox">
  901. <div class="addPoint" v-for="(tooC, toolCIndex) in tool.tool" :key="toolCIndex">
  902. <div v-if="tooC == 1">
  903. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt
  904. @click="addTools(tooC, toolIndex, taskCount)" />
  905. <div style="margin: 5px 0">电子白板</div>
  906. </div>
  907. <div v-if="tooC == 3">
  908. <img src="../../assets/icon/secondToolList/mindMapping.png" alt
  909. @click="addTools(tooC, toolIndex, taskCount)" />
  910. <div style="margin: 5px 0">思维导图</div>
  911. </div>
  912. <div v-if="tooC == 6">
  913. <img src="../../assets/icon/secondToolList/doc.png" alt
  914. @click="addTools(tooC, toolIndex, taskCount)" />
  915. <div style="margin: 5px 0">协同文档</div>
  916. </div>
  917. <div v-if="tooC == 7">
  918. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt
  919. @click="addTools(tooC, toolIndex, taskCount)" />
  920. <div style="margin: 5px 0">思维网格</div>
  921. </div>
  922. <div v-if="tooC == 8">
  923. <img src="../../assets/icon/secondToolList/library.png" alt
  924. @click="addTools(tooC, toolIndex, taskCount)" />
  925. <div style="margin: 5px 0">素材库</div>
  926. </div>
  927. <div v-if="tooC == 17">
  928. <img src="../../assets/icon/secondToolList/library.png" alt
  929. @click="addTools(tooC, toolIndex, taskCount)" />
  930. <div style="margin: 5px 0">学习资料</div>
  931. </div>
  932. <div v-if="tooC == 2">
  933. <img @click="addTools(tooC, toolIndex, taskCount)"
  934. src="../../assets/icon/secondToolList/note.png" alt />
  935. <div style="margin: 5px 0">便签</div>
  936. </div>
  937. <div v-if="tooC == 4">
  938. <img @click="addTools(tooC, toolIndex, taskCount)"
  939. src="../../assets/icon/thirdToolList/ask.png" alt />
  940. <div style="margin: 5px 0">问卷调查</div>
  941. </div>
  942. <div v-if="tooC == 45">
  943. <img @click="addTools(tooC, toolIndex, taskCount)"
  944. src="../../assets/icon/thirdToolList/choose.png" alt />
  945. <div style="margin: 5px 0">选择题</div>
  946. </div>
  947. <!-- <div v-if="tooC == 5">
  948. <img
  949. @click="addTools(tooC, toolIndex, taskCount)"
  950. src="../../assets/icon/thirdToolList/score.png"
  951. alt
  952. />
  953. <div style="margin: 5px 0">量规评分</div>
  954. </div> -->
  955. <div v-if="tooC == 10">
  956. <img @click="addTools(tooC, toolIndex, taskCount)"
  957. src="../../assets/icon/thirdToolList/time.png" alt />
  958. <div style="margin: 5px 0">倒计时</div>
  959. </div>
  960. <div v-if="tooC == 15">
  961. <img @click="addTools(tooC, toolIndex, taskCount)"
  962. src="../../assets/icon/thirdToolList/answer.png" alt />
  963. <div style="margin: 5px 0">问答工具</div>
  964. </div>
  965. <div v-if="tooC == 26">
  966. <img @click="addTools(tooC, toolIndex, taskCount)"
  967. src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  968. <div style="margin: 5px 0">课程设计</div>
  969. </div>
  970. <div v-if="tooC == 18">
  971. <img @click="addTools(tooC, toolIndex, taskCount)"
  972. src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  973. <div style="margin: 5px 0">训练服务器</div>
  974. </div>
  975. <div v-if="tooC == 16">
  976. <img @click="addTools(tooC, toolIndex, taskCount)"
  977. src="../../assets/icon/thirdToolList/work.png" alt />
  978. <div style="margin: 5px 0">作业提交</div>
  979. </div>
  980. <div v-if="tooC == 50">
  981. <img @click="addTools(tooC, toolIndex, taskCount)"
  982. src="../../assets/icon/thirdToolList/plwork.png" alt />
  983. <div style="margin: 5px 0">批量上传</div>
  984. </div>
  985. <div v-if="tooC == 21">
  986. <img @click="addTools(tooC, toolIndex, taskCount)"
  987. src="../../assets/icon/fourthToolList/program.png" alt />
  988. <div style="margin: 5px 0">编程平台</div>
  989. </div>
  990. <div v-if="tooC == 22">
  991. <img @click="addTools(tooC, toolIndex, taskCount)"
  992. src="../../assets/icon/fourthToolList/program.png" alt />
  993. <div style="margin: 5px 0">AI体验</div>
  994. </div>
  995. <div v-if="tooC == 23">
  996. <img @click="addTools(tooC, toolIndex, taskCount)"
  997. src="../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  998. <div style="margin: 5px 0">Python</div>
  999. </div>
  1000. <div v-if="tooC == 24">
  1001. <img @click="addTools(tooC, toolIndex, taskCount)"
  1002. src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  1003. <div style="margin: 5px 0">AI平台</div>
  1004. </div>
  1005. <div v-if="tooC == 25">
  1006. <img @click="addTools(tooC, toolIndex, taskCount)"
  1007. src="../../assets/icon/thirdToolList/evalua.png" alt />
  1008. <div style="margin: 5px 0">目标管理</div>
  1009. </div>
  1010. <div v-if="tooC == 31">
  1011. <img @click="addTools(tooC, toolIndex, taskCount)"
  1012. src="../../assets/icon/secondToolList/networkPanel.png" alt />
  1013. <div style="margin: 5px 0">数学画板</div>
  1014. </div>
  1015. <div v-if="tooC == 28">
  1016. <img @click="addTools(tooC, toolIndex, taskCount)"
  1017. src="../../assets/icon/secondToolList/translation.png" alt />
  1018. <div style="margin: 5px 0">翻译</div>
  1019. </div>
  1020. <div v-if="tooC == 37">
  1021. <img @click="addTools(tooC, toolIndex, taskCount)"
  1022. src="../../assets/icon/secondToolList/mohe.png" alt />
  1023. <div style="margin: 5px 0">魔盒识字</div>
  1024. </div>
  1025. <div v-if="tooC == 38">
  1026. <img @click="addTools(tooC, toolIndex, taskCount)"
  1027. src="../../assets/icon/secondToolList/24game.png" alt />
  1028. <div style="margin: 5px 0">24点</div>
  1029. </div>
  1030. <div v-if="tooC == 39">
  1031. <img @click="addTools(tooC, toolIndex, taskCount)"
  1032. src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  1033. <div style="margin: 5px 0">GeoGebra</div>
  1034. </div>
  1035. <div v-if="tooC == 32">
  1036. <img @click="addTools(tooC, toolIndex, taskCount)"
  1037. src="../../assets/icon/thirdToolList/code.png" alt />
  1038. <div style="margin: 5px 0">源码编辑</div>
  1039. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1040. style="position: absolute;left: 110px;bottom: 30px;">
  1041. 上传文件
  1042. <input type="file" accept="*" style="display: none"
  1043. @change="beforeUpload1($event, 7, toolIndex)" />
  1044. </div> -->
  1045. </div>
  1046. <div v-if="tooC == 40">
  1047. <img @click="addTools(tooC, toolIndex, taskCount)"
  1048. src="../../assets/icon/secondToolList/eval.png" alt />
  1049. <div style="margin: 5px 0">个人评价</div>
  1050. </div>
  1051. <div v-if="tooC == 41">
  1052. <img @click="addTools(tooC, toolIndex, taskCount)"
  1053. src="../../assets/icon/thirdToolList/select.png" alt />
  1054. <div style="margin: 5px 0">选择填空</div>
  1055. </div>
  1056. <div v-if="tooC == 44">
  1057. <img @click="addTools(tooC, toolIndex, taskCount)"
  1058. src="../../assets/icon/thirdToolList/hanClass.png" alt />
  1059. <div style="margin: 5px 0">汉字宫</div>
  1060. </div>
  1061. <div v-if="tooC == 47">
  1062. <img @click="addTools(tooC, toolIndex, taskCount)"
  1063. src="../../assets/icon/fourthToolList/conSentences.png" alt />
  1064. <div style="margin: 5px 0">连词成句</div>
  1065. </div>
  1066. <div v-if="tooC == 48">
  1067. <img @click="addTools(tooC, toolIndex, taskCount)"
  1068. src="../../assets/icon/fourthToolList/table.png" alt />
  1069. <div style="margin: 5px 0">表格</div>
  1070. </div>
  1071. <div v-if="tooC == 52">
  1072. <img @click="addTools(tooC, toolIndex, taskCount)"
  1073. src="../../assets/icon/fourthToolList/text.png" alt />
  1074. <div style="margin: 5px 0">文档</div>
  1075. </div>
  1076. <div v-if="tooC == 49">
  1077. <img @click="addTools(tooC, toolIndex, taskCount)"
  1078. src="../../assets/icon/fourthToolList/group.png" alt />
  1079. <div style="margin: 5px 0">学生分组</div>
  1080. </div>
  1081. <div v-if="tooC == 57">
  1082. <img @click="addTools(tooC, toolIndex, taskCount)"
  1083. src="../../assets/icon/fourthToolList/cocopi.png" alt />
  1084. <div style="margin: 5px 0">CocoPi</div>
  1085. </div>
  1086. <div v-if="tooC == 58">
  1087. <img @click="addTools(tooC, toolIndex, taskCount)"
  1088. src="../../assets/icon/fourthToolList/car.png" alt />
  1089. <div style="margin: 5px 0">模拟驾驶</div>
  1090. </div>
  1091. <div v-if="tooC == 59">
  1092. <img @click="addTools(tooC, toolIndex, taskCount)"
  1093. src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  1094. <div style="margin: 5px 0">路径搜索</div>
  1095. </div>
  1096. <div v-if="tooC == 60">
  1097. <img @click="addTools(tooC, toolIndex, taskCount)"
  1098. src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  1099. <div style="margin: 5px 0">深度学习</div>
  1100. </div>
  1101. <div v-if="tooC == 61">
  1102. <img @click="addTools(tooC, toolIndex, taskCount)"
  1103. src="../../assets/icon/fourthToolList/allHistory.png" alt />
  1104. <div style="margin: 5px 0">全历史</div>
  1105. </div>
  1106. <div v-if="tooC == 62">
  1107. <img @click="addTools(tooC, toolIndex, taskCount)"
  1108. src="../../assets/icon/fourthToolList/interVideo.png" alt />
  1109. <div style="margin: 5px 0">交互视频</div>
  1110. </div>
  1111. <div v-if="tooC == 63">
  1112. <img @click="addTools(tooC, toolIndex, taskCount)"
  1113. src="../../assets/icon/fourthToolList/Wood.png" alt />
  1114. <div style="margin: 5px 0">海龟编程</div>
  1115. </div>
  1116. </div>
  1117. </div>
  1118. </div>
  1119. <div class="tooldetail">
  1120. <!-- <div class="toolTitle">工具描述</div> -->
  1121. <div v-html="contentConvent(tool.toolDetail ? tool.toolDetail : '暂无描述')"></div>
  1122. </div>
  1123. <el-button type="primary" v-if="tool.tool[0] == 32" style="
  1124. position: absolute;
  1125. right: 30px;
  1126. transform: translateY(-130%);
  1127. " @click="addImg($event)">上传作业<input type="file" accept="*"
  1128. style="display: none" @change="beforeUpload1($event, 7, toolIndex)" /></el-button>
  1129. <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1130. position: absolute;
  1131. right: 30px;
  1132. transform: translateY(-130%);
  1133. " @click="addImg($event)">上传作业<input type="file" accept="*"
  1134. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button>
  1135. </div>
  1136. </div>
  1137. </div>
  1138. </div>
  1139. <div class="vedioBox"
  1140. v-if="arrayToArray(tool.tool, isWorkTool).length && worksTeacher.length && worksTeacher[toolIndex].length">
  1141. <div class="queTop" style="
  1142. font-size: 25px;
  1143. padding: 15px 0 15px 30px;
  1144. font-weight: bold;
  1145. ">
  1146. 教师工作区
  1147. </div>
  1148. <div class="tool_work_box">
  1149. <div v-if="tType &&
  1150. ((tType == 2 && sIsOpen == true) ||
  1151. tType == 1 ||
  1152. tType == 4) &&
  1153. tool.tool.indexOf(16) != -1
  1154. " class="worksBox">
  1155. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1156. worksTeacher[toolIndex].length > 0
  1157. ">
  1158. <div class="worksTop">
  1159. <div>作业预览</div>
  1160. </div>
  1161. </div>
  1162. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1163. worksTeacher[toolIndex].length > 0
  1164. ">
  1165. <div class="works" style="
  1166. width: 200px;
  1167. height: 140px;
  1168. margin: 10px 10px 10px 0;
  1169. border-radius: 15px;
  1170. box-shadow: 0 0 6px 1px #dfdada;
  1171. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1172. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1173. <div class="workImg" v-if="w.type == 0">
  1174. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1175. <img :src="w.works" @click="previewImg(w.works)" alt />
  1176. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1177. rightW:
  1178. w.userid == userid ||
  1179. tType == 1 ||
  1180. tType == 4 ||
  1181. w.ateacher == userid,
  1182. }">
  1183. {{ JSON.parse(w.score).wScore }}分
  1184. </div>
  1185. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1186. :class="{
  1187. rightW:
  1188. w.userid == userid ||
  1189. tType == 1 ||
  1190. tType == 4 ||
  1191. w.ateacher == userid,
  1192. }">
  1193. 评分
  1194. </div>
  1195. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1196. " @click.stop="deleteWorks(w.wid)" alt />
  1197. </div>
  1198. <div class="workImg" v-if="w.type == 1">
  1199. <img :src="word" @click="openFile(w.works)" alt />
  1200. <!-- @click="openFile(w.works)" -->
  1201. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1202. rightW:
  1203. w.userid == userid ||
  1204. tType == 1 ||
  1205. tType == 4 ||
  1206. w.ateacher == userid,
  1207. }">
  1208. {{ JSON.parse(w.score).wScore }}分
  1209. </div>
  1210. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1211. :class="{
  1212. rightW:
  1213. w.userid == userid ||
  1214. tType == 1 ||
  1215. tType == 4 ||
  1216. w.ateacher == userid,
  1217. }">
  1218. 评分
  1219. </div>
  1220. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1221. " @click.stop="deleteWorks(w.wid)" alt />
  1222. </div>
  1223. <div class="workImg" v-if="w.type == 3">
  1224. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1225. <!-- @click="openVideo(w.works)" -->
  1226. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1227. rightW:
  1228. w.userid == userid ||
  1229. tType == 1 ||
  1230. tType == 4 ||
  1231. w.ateacher == userid,
  1232. }">
  1233. {{ JSON.parse(w.score).wScore }}分
  1234. </div>
  1235. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1236. :class="{
  1237. rightW:
  1238. w.userid == userid ||
  1239. tType == 1 ||
  1240. tType == 4 ||
  1241. w.ateacher == userid,
  1242. }">
  1243. 评分
  1244. </div>
  1245. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1246. " @click.stop="deleteWorks(w.wid)" alt />
  1247. </div>
  1248. <div class="workImg" v-if="w.type == 12">
  1249. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  1250. <!-- @click="openVideo(w.works)" -->
  1251. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1252. rightW:
  1253. w.userid == userid ||
  1254. tType == 1 ||
  1255. tType == 4 ||
  1256. w.ateacher == userid,
  1257. }">
  1258. {{ JSON.parse(w.score).wScore }}分
  1259. </div>
  1260. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1261. :class="{
  1262. rightW:
  1263. w.userid == userid ||
  1264. tType == 1 ||
  1265. tType == 4 ||
  1266. w.ateacher == userid,
  1267. }">
  1268. 评分
  1269. </div>
  1270. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1271. " @click.stop="deleteWorks(w.wid)" alt />
  1272. </div>
  1273. <div class="comment" style="min-width: 200px">
  1274. <div class="worksName">
  1275. <div>{{ w.sName }}</div>
  1276. </div>
  1277. <div class="commentList">
  1278. <div class="commentList">
  1279. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1280. ">
  1281. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1282. </div>
  1283. <div>{{ w.likesCount }}</div>
  1284. </div>
  1285. <div class="commentList" style="margin-right: 15px">
  1286. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1287. <img src="../../assets/icon/comment/comment.png" alt="" />
  1288. </div>
  1289. <div>{{ w.commentCount }}</div>
  1290. </div>
  1291. </div>
  1292. </div>
  1293. </div>
  1294. </div>
  1295. </div>
  1296. <div v-if="tType &&
  1297. ((tType == 2 && sIsOpen == true) ||
  1298. tType == 1 ||
  1299. tType == 4) &&
  1300. tool.tool.indexOf(32) != -1
  1301. " class="worksBox">
  1302. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1303. worksTeacher[toolIndex].length > 0
  1304. ">
  1305. <div class="worksTop">
  1306. <div>作业预览</div>
  1307. </div>
  1308. </div>
  1309. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1310. worksTeacher[toolIndex].length > 0
  1311. ">
  1312. <div class="works" style="
  1313. width: 200px;
  1314. height: 140px;
  1315. margin: 10px 10px 10px 0;
  1316. border-radius: 15px;
  1317. box-shadow: 0 0 6px 1px #dfdada;
  1318. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1319. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1320. <div class="workImg">
  1321. <img :src="word2" @click="downloadFile(w.works)" alt />
  1322. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1323. rightW:
  1324. w.userid == userid ||
  1325. tType == 1 ||
  1326. tType == 4 ||
  1327. w.ateacher == userid,
  1328. }">
  1329. {{ JSON.parse(w.score).wScore }}分
  1330. </div>
  1331. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1332. :class="{
  1333. rightW:
  1334. w.userid == userid ||
  1335. tType == 1 ||
  1336. tType == 4 ||
  1337. w.ateacher == userid,
  1338. }">
  1339. 评分
  1340. </div>
  1341. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1342. " @click.stop="deleteWorks(w.wid)" alt />
  1343. </div>
  1344. <div class="comment" style="min-width: 200px">
  1345. <div class="worksName">
  1346. <div>{{ w.sName }}</div>
  1347. </div>
  1348. <div class="commentList">
  1349. <div class="commentList">
  1350. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1351. ">
  1352. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1353. </div>
  1354. <div>{{ w.likesCount }}</div>
  1355. </div>
  1356. <div class="commentList" style="margin-right: 15px">
  1357. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1358. <img src="../../assets/icon/comment/comment.png" alt="" />
  1359. </div>
  1360. <div>{{ w.commentCount }}</div>
  1361. </div>
  1362. </div>
  1363. </div>
  1364. </div>
  1365. </div>
  1366. </div>
  1367. <div v-if="tType &&
  1368. ((tType == 2 && sIsOpen == true) ||
  1369. tType == 1 ||
  1370. tType == 4) &&
  1371. tool.tool.indexOf(57) != -1
  1372. " class="worksBox">
  1373. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1374. worksTeacher[toolIndex].length > 0
  1375. ">
  1376. <div class="worksTop">
  1377. <div>作业预览</div>
  1378. </div>
  1379. </div>
  1380. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1381. worksTeacher[toolIndex].length > 0
  1382. ">
  1383. <div class="works" style="
  1384. width: 200px;
  1385. height: 140px;
  1386. margin: 10px 10px 10px 0;
  1387. border-radius: 15px;
  1388. box-shadow: 0 0 6px 1px #dfdada;
  1389. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1390. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1391. <div class="workImg">
  1392. <img :src="word2" @click="downloadFile(w.works)" alt />
  1393. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1394. rightW:
  1395. w.userid == userid ||
  1396. tType == 1 ||
  1397. tType == 4 ||
  1398. w.ateacher == userid,
  1399. }">
  1400. {{ JSON.parse(w.score).wScore }}分
  1401. </div>
  1402. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1403. :class="{
  1404. rightW:
  1405. w.userid == userid ||
  1406. tType == 1 ||
  1407. tType == 4 ||
  1408. w.ateacher == userid,
  1409. }">
  1410. 评分
  1411. </div>
  1412. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1413. " @click.stop="deleteWorks(w.wid)" alt />
  1414. </div>
  1415. <div class="comment" style="min-width: 200px">
  1416. <div class="worksName">
  1417. <div>{{ w.sName }}</div>
  1418. </div>
  1419. <div class="commentList">
  1420. <div class="commentList">
  1421. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1422. ">
  1423. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1424. </div>
  1425. <div>{{ w.likesCount }}</div>
  1426. </div>
  1427. <div class="commentList" style="margin-right: 15px">
  1428. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1429. <img src="../../assets/icon/comment/comment.png" alt="" />
  1430. </div>
  1431. <div>{{ w.commentCount }}</div>
  1432. </div>
  1433. </div>
  1434. </div>
  1435. </div>
  1436. </div>
  1437. </div>
  1438. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  1439. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1440. worksTeacher[toolIndex].length > 0
  1441. ">
  1442. <span>作业预览</span>
  1443. </div>
  1444. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1445. worksTeacher[toolIndex].length > 0
  1446. ">
  1447. <div class="works" style="
  1448. width: 200px;
  1449. height: 140px;
  1450. margin: 10px 10px 10px 0;
  1451. border-radius: 15px;
  1452. box-shadow: 0 0 6px 1px #dfdada;
  1453. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1454. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1455. <div class="workImg" v-if="w.type == 0">
  1456. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1457. <img :src="w.works" @click="previewImg(w.works)" alt />
  1458. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1459. rightW:
  1460. w.userid == userid ||
  1461. tType == 1 ||
  1462. tType == 4 ||
  1463. w.ateacher == userid,
  1464. }">
  1465. {{ JSON.parse(w.score).wScore }}分
  1466. </div>
  1467. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1468. :class="{
  1469. rightW:
  1470. w.userid == userid ||
  1471. tType == 1 ||
  1472. tType == 4 ||
  1473. w.ateacher == userid,
  1474. }">
  1475. 评分
  1476. </div>
  1477. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1478. " @click.stop="deleteWorks(w.wid)" alt />
  1479. </div>
  1480. <div class="workImg" style="cursor: pointer" v-if="w.type == 1">
  1481. <img :src="word" @click="openFile(w.works)" alt />
  1482. <!-- @click="openFile(w.works)" -->
  1483. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1484. rightW:
  1485. w.userid == userid ||
  1486. tType == 1 ||
  1487. tType == 4 ||
  1488. w.ateacher == userid,
  1489. }">
  1490. {{ JSON.parse(w.score).wScore }}分
  1491. </div>
  1492. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1493. :class="{
  1494. rightW:
  1495. w.userid == userid ||
  1496. tType == 1 ||
  1497. tType == 4 ||
  1498. w.ateacher == userid,
  1499. }">
  1500. 评分
  1501. </div>
  1502. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1503. " @click.stop="deleteWorks(w.wid)" alt />
  1504. </div>
  1505. <div class="workImg" v-if="w.type == 3">
  1506. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1507. <!-- @click="openVideo(w.works)" -->
  1508. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1509. rightW:
  1510. w.userid == userid ||
  1511. tType == 1 ||
  1512. tType == 4 ||
  1513. w.ateacher == userid,
  1514. }">
  1515. {{ JSON.parse(w.score).wScore }}分
  1516. </div>
  1517. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1518. :class="{
  1519. rightW:
  1520. w.userid == userid ||
  1521. tType == 1 ||
  1522. tType == 4 ||
  1523. w.ateacher == userid,
  1524. }">
  1525. 评分
  1526. </div>
  1527. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1528. " @click.stop="deleteWorks(w.wid)" alt />
  1529. </div>
  1530. <div class="comment" style="min-width: 200px">
  1531. <div class="worksName">
  1532. <div style="cursor: pointer" @click="openSname(w.sName, w.wid, toolIndex)">
  1533. {{ w.sName }}
  1534. </div>
  1535. </div>
  1536. <div class="commentList">
  1537. <div class="commentList">
  1538. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1539. ">
  1540. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1541. </div>
  1542. <div>{{ w.likesCount }}</div>
  1543. </div>
  1544. <div class="commentList" style="margin-right: 15px">
  1545. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1546. <img src="../../assets/icon/comment/comment.png" alt="" />
  1547. </div>
  1548. <div>{{ w.commentCount }}</div>
  1549. </div>
  1550. </div>
  1551. </div>
  1552. </div>
  1553. </div>
  1554. </div>
  1555. <div v-if="tType &&
  1556. ((tType == 2 && sIsOpen == true) ||
  1557. tType == 1 ||
  1558. tType == 4) &&
  1559. tool.tool.indexOf(4) != -1
  1560. " class="worksBox">
  1561. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1562. worksTeacher[toolIndex].length > 0
  1563. ">
  1564. <div class="worksTop">
  1565. <div>作业预览</div>
  1566. </div>
  1567. </div>
  1568. <div>
  1569. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1570. worksTeacher[toolIndex].length > 0
  1571. ">
  1572. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName" @click="openTools(4, toolIndex, taskCount, w.works, w.sName)
  1573. ">
  1574. {{ w.sName }}
  1575. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1576. " @click.stop="deleteWorks(w.wid)" alt />
  1577. </div>
  1578. </div>
  1579. </div>
  1580. </div>
  1581. <div v-if="tType &&
  1582. ((tType == 2 && sIsOpen == true) ||
  1583. tType == 1 ||
  1584. tType == 4) &&
  1585. tool.tool.indexOf(45) != -1
  1586. " class="worksBox">
  1587. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1588. worksTeacher[toolIndex].length > 0
  1589. ">
  1590. <div class="worksTop">
  1591. <div>作业预览</div>
  1592. </div>
  1593. </div>
  1594. <div>
  1595. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1596. worksTeacher[toolIndex].length > 0
  1597. ">
  1598. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName" @click="openTools(
  1599. 45,
  1600. toolIndex,
  1601. taskCount,
  1602. w.works,
  1603. w.sName
  1604. )
  1605. ">
  1606. {{ w.sName }}
  1607. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1608. " @click.stop="deleteWorks(w.wid)" alt />
  1609. </div>
  1610. </div>
  1611. </div>
  1612. </div>
  1613. <div v-if="tType &&
  1614. ((tType == 2 && sIsOpen == true) ||
  1615. tType == 1 ||
  1616. tType == 4) &&
  1617. tool.tool.indexOf(15) != -1
  1618. " class="worksBox">
  1619. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1620. worksTeacher[toolIndex].length > 0
  1621. ">
  1622. <div class="worksTop">
  1623. <div>作业预览</div>
  1624. </div>
  1625. </div>
  1626. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1627. worksTeacher[toolIndex].length > 0
  1628. ">
  1629. <div class="works" v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex">
  1630. <div class="workImg" style="
  1631. border-radius: 15px;
  1632. box-shadow: #eee 0px 0px 5px 5px;
  1633. ">
  1634. <!-- <img
  1635. src="../../assets/icon/works/noImg.png"
  1636. @click="openTools(15, toolIndex, taskCount, w.works)"
  1637. alt=""
  1638. />-->
  1639. <div class="answerBg" style="border-radius: 15px 15px 0 0"
  1640. @click="commentOther(w, toolIndex, wIndex)">
  1641. <!-- <div>{{ w.sName }}</div> -->
  1642. <div class="answerContent">
  1643. {{ JSON.parse(w.works)[0].answer }}
  1644. </div>
  1645. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1646. rightW:
  1647. w.userid == userid ||
  1648. tType == 1 ||
  1649. tType == 4,
  1650. }">
  1651. {{ JSON.parse(w.score).wScore }}分
  1652. </div>
  1653. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1654. :class="{
  1655. rightW:
  1656. w.userid == userid ||
  1657. tType == 1 ||
  1658. tType == 4,
  1659. }">
  1660. 评分
  1661. </div>
  1662. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1663. " @click.stop="deleteWorks(w.wid)" alt />
  1664. </div>
  1665. <div class="comment">
  1666. <div class="worksName">
  1667. <div>{{ w.sName }}</div>
  1668. </div>
  1669. <div class="commentList">
  1670. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1671. ">
  1672. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1673. </div>
  1674. <div>{{ w.likesCount }}</div>
  1675. </div>
  1676. <div class="commentList" style="margin-right: 15px">
  1677. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1678. <img src="../../assets/icon/comment/comment.png" alt="" />
  1679. </div>
  1680. <div>{{ w.commentCount }}</div>
  1681. </div>
  1682. </div>
  1683. </div>
  1684. </div>
  1685. </div>
  1686. </div>
  1687. <div v-if="tType &&
  1688. ((tType == 2 && sIsOpen == true) ||
  1689. tType == 1 ||
  1690. tType == 4) &&
  1691. tool.tool.indexOf(1) != -1
  1692. " class="worksBox">
  1693. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1694. worksTeacher[toolIndex].length > 0
  1695. ">
  1696. <div class="worksTop">
  1697. <div>作业预览</div>
  1698. </div>
  1699. </div>
  1700. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1701. worksTeacher[toolIndex].length > 0
  1702. ">
  1703. <div class="works" style="
  1704. width: 200px;
  1705. height: 140px;
  1706. margin: 10px 10px 10px 0;
  1707. border-radius: 15px;
  1708. box-shadow: 0 0 6px 1px #dfdada;
  1709. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1710. :key="wIndex">
  1711. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  1712. <div class="workImg">
  1713. <img :src="w.works" @click="previewImg(w.works)" alt />
  1714. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1715. rightW:
  1716. w.userid == userid || tType == 1 || tType == 4,
  1717. }">
  1718. {{ JSON.parse(w.score).wScore }}分
  1719. </div>
  1720. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1721. :class="{
  1722. rightW:
  1723. w.userid == userid || tType == 1 || tType == 4,
  1724. }">
  1725. 评分
  1726. </div>
  1727. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1728. " @click.stop="deleteWorks(w.wid)" alt />
  1729. </div>
  1730. <div class="comment" style="min-width: 200px">
  1731. <div class="worksName">
  1732. <div>{{ w.sName }}</div>
  1733. </div>
  1734. <div class="commentList">
  1735. <div class="commentList">
  1736. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1737. ">
  1738. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1739. </div>
  1740. <div>{{ w.likesCount }}</div>
  1741. </div>
  1742. <div class="commentList" style="margin-right: 15px">
  1743. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1744. <img src="../../assets/icon/comment/comment.png" alt="" />
  1745. </div>
  1746. <div>{{ w.commentCount }}</div>
  1747. </div>
  1748. </div>
  1749. </div>
  1750. </div>
  1751. </div>
  1752. </div>
  1753. <div v-if="tType &&
  1754. ((tType == 2 && sIsOpen == true) ||
  1755. tType == 1 ||
  1756. tType == 4) &&
  1757. tool.tool.indexOf(3) != -1
  1758. " class="worksBox">
  1759. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1760. worksTeacher[toolIndex].length > 0
  1761. ">
  1762. <div class="worksTop">
  1763. <div>作业预览</div>
  1764. </div>
  1765. </div>
  1766. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1767. worksTeacher[toolIndex].length > 0
  1768. ">
  1769. <div class="works" style="
  1770. width: 200px;
  1771. height: 140px;
  1772. margin: 10px 10px 10px 0;
  1773. border-radius: 15px;
  1774. box-shadow: 0 0 6px 1px #dfdada;
  1775. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1776. :key="wIndex">
  1777. <!-- @click="previewImg(w.works)" -->
  1778. <div class="workImg">
  1779. <img :src="w.works" @click="previewImg(w.works)" alt />
  1780. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1781. rightW:
  1782. w.userid == userid || tType == 1 || tType == 4,
  1783. }">
  1784. {{ JSON.parse(w.score).wScore }}分
  1785. </div>
  1786. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1787. :class="{
  1788. rightW:
  1789. w.userid == userid || tType == 1 || tType == 4,
  1790. }">
  1791. 评分
  1792. </div>
  1793. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1794. " @click.stop="deleteWorks(w.wid)" alt />
  1795. </div>
  1796. <div class="comment" style="min-width: 200px">
  1797. <div class="worksName">
  1798. <div>{{ w.sName }}</div>
  1799. </div>
  1800. <div class="commentList">
  1801. <div class="commentList">
  1802. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1803. ">
  1804. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1805. </div>
  1806. <div>{{ w.likesCount }}</div>
  1807. </div>
  1808. <div class="commentList" style="margin-right: 15px">
  1809. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1810. <img src="../../assets/icon/comment/comment.png" alt="" />
  1811. </div>
  1812. <div>{{ w.commentCount }}</div>
  1813. </div>
  1814. </div>
  1815. </div>
  1816. </div>
  1817. </div>
  1818. </div>
  1819. <div v-if="tType &&
  1820. ((tType == 2 && sIsOpen == true) ||
  1821. tType == 1 ||
  1822. tType == 4) &&
  1823. tool.tool.indexOf(6) != -1
  1824. " class="worksBox">
  1825. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1826. worksTeacher[toolIndex].length > 0
  1827. ">
  1828. <div class="worksTop">
  1829. <div>作业预览</div>
  1830. </div>
  1831. </div>
  1832. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1833. worksTeacher[toolIndex].length > 0
  1834. ">
  1835. <div class="works" style="
  1836. width: 200px;
  1837. height: 140px;
  1838. margin: 10px 10px 10px 0;
  1839. border-radius: 15px;
  1840. box-shadow: 0 0 6px 1px #dfdada;
  1841. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1842. :key="wIndex">
  1843. <!-- @click="previewImg(w.works)" -->
  1844. <div class="workImg">
  1845. <img :src="w.works" @click="previewImg(w.works)" alt />
  1846. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1847. rightW:
  1848. w.userid == userid || tType == 1 || tType == 4,
  1849. }">
  1850. {{ JSON.parse(w.score).wScore }}分
  1851. </div>
  1852. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1853. :class="{
  1854. rightW:
  1855. w.userid == userid || tType == 1 || tType == 4,
  1856. }">
  1857. 评分
  1858. </div>
  1859. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1860. " @click.stop="deleteWorks(w.wid)" alt />
  1861. </div>
  1862. <div class="comment" style="min-width: 200px">
  1863. <div class="worksName">
  1864. <div>{{ w.sName }}</div>
  1865. </div>
  1866. <div class="commentList">
  1867. <div class="commentList">
  1868. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1869. ">
  1870. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1871. </div>
  1872. <div>{{ w.likesCount }}</div>
  1873. </div>
  1874. <div class="commentList" style="margin-right: 15px">
  1875. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1876. <img src="../../assets/icon/comment/comment.png" alt="" />
  1877. </div>
  1878. <div>{{ w.commentCount }}</div>
  1879. </div>
  1880. </div>
  1881. </div>
  1882. </div>
  1883. </div>
  1884. </div>
  1885. <div v-if="tType &&
  1886. ((tType == 2 && sIsOpen == true) ||
  1887. tType == 1 ||
  1888. tType == 4) &&
  1889. tool.tool.indexOf(7) != -1
  1890. " class="worksBox">
  1891. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1892. worksTeacher[toolIndex].length > 0
  1893. ">
  1894. <div class="worksTop">
  1895. <div>作业预览</div>
  1896. </div>
  1897. </div>
  1898. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1899. worksTeacher[toolIndex].length > 0
  1900. ">
  1901. <div class="works" style="
  1902. width: 200px;
  1903. height: 140px;
  1904. margin: 10px 10px 10px 0;
  1905. border-radius: 15px;
  1906. box-shadow: 0 0 6px 1px #dfdada;
  1907. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1908. :key="wIndex">
  1909. <!-- @click="previewImg(w.works)" -->
  1910. <div class="workImg">
  1911. <img :src="w.works" @click="previewImg(w.works)" alt />
  1912. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1913. rightW:
  1914. w.userid == userid || tType == 1 || tType == 4,
  1915. }">
  1916. {{ JSON.parse(w.score).wScore }}分
  1917. </div>
  1918. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1919. :class="{
  1920. rightW:
  1921. w.userid == userid || tType == 1 || tType == 4,
  1922. }">
  1923. 评分
  1924. </div>
  1925. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1926. " @click.stop="deleteWorks(w.wid)" alt />
  1927. </div>
  1928. <div class="comment" style="min-width: 200px">
  1929. <div class="worksName">
  1930. <div>{{ w.sName }}</div>
  1931. </div>
  1932. <div class="commentList">
  1933. <div class="commentList">
  1934. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1935. ">
  1936. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1937. </div>
  1938. <div>{{ w.likesCount }}</div>
  1939. </div>
  1940. <div class="commentList" style="margin-right: 15px">
  1941. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1942. <img src="../../assets/icon/comment/comment.png" alt="" />
  1943. </div>
  1944. <div>{{ w.commentCount }}</div>
  1945. </div>
  1946. </div>
  1947. </div>
  1948. </div>
  1949. </div>
  1950. </div>
  1951. <div v-if="tType &&
  1952. ((tType == 2 && sIsOpen == true) ||
  1953. tType == 1 ||
  1954. tType == 4) &&
  1955. tool.tool.indexOf(26) != -1
  1956. " class="worksBox">
  1957. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1958. worksTeacher[toolIndex].length > 0
  1959. ">
  1960. <div class="worksTop">
  1961. <div>作业预览</div>
  1962. </div>
  1963. </div>
  1964. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1965. worksTeacher[toolIndex].length > 0
  1966. ">
  1967. <div class="works" style="width: 240px; height: 140px; overflow: hidden"
  1968. v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex"
  1969. :class="w.type == 1 ? 'isTypeOne' : ''">
  1970. <div class="workImg" v-if="w.type == 0">
  1971. <img :src="w.works" @click="previewImg(w.works)" alt />
  1972. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1973. " @click.stop="deleteWorks(w.wid)" alt />
  1974. </div>
  1975. <div class="workImg" v-if="w.type == 1">
  1976. <img :src="word" @click="openFile(w.works)" alt />
  1977. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1978. " @click.stop="deleteWorks(w.wid)" alt />
  1979. </div>
  1980. <div class="worksName">
  1981. <div>{{ w.sName }}</div>
  1982. </div>
  1983. </div>
  1984. </div>
  1985. </div>
  1986. <div v-if="tType &&
  1987. ((tType == 2 && sIsOpen == true) ||
  1988. tType == 1 ||
  1989. tType == 4) &&
  1990. tool.tool.indexOf(40) != -1
  1991. " class="worksBox">
  1992. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1993. worksTeacher[toolIndex].length > 0
  1994. ">
  1995. <div class="worksTop">
  1996. <div>作业预览</div>
  1997. </div>
  1998. </div>
  1999. <div class="worksDetailBox" v-if="worksTeacher.length &&
  2000. worksTeacher[toolIndex].length > 0
  2001. ">
  2002. <div class="works" style="
  2003. width: 200px;
  2004. height: 140px;
  2005. margin: 10px 10px 10px 0;
  2006. border-radius: 15px;
  2007. box-shadow: 0 0 6px 1px #dfdada;
  2008. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2009. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  2010. <div class="workImg">
  2011. <img src="../../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  2012. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2013. " @click.stop="deleteWorks(w.wid)" alt />
  2014. </div>
  2015. <div class="comment" style="min-width: 200px">
  2016. <div class="worksName">
  2017. <div>{{ w.sName }}</div>
  2018. </div>
  2019. <div class="commentList">
  2020. <div class="commentList">
  2021. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2022. ">
  2023. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2024. </div>
  2025. <div>{{ w.likesCount }}</div>
  2026. </div>
  2027. <div class="commentList" style="margin-right: 15px">
  2028. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2029. <img src="../../assets/icon/comment/comment.png" alt="" />
  2030. </div>
  2031. <div>{{ w.commentCount }}</div>
  2032. </div>
  2033. </div>
  2034. </div>
  2035. </div>
  2036. </div>
  2037. </div>
  2038. <div v-if="tType &&
  2039. ((tType == 2 && sIsOpen == true) ||
  2040. tType == 1 ||
  2041. tType == 4) &&
  2042. tool.tool.indexOf(41) != -1
  2043. " class="worksBox">
  2044. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  2045. worksTeacher[toolIndex].length > 0
  2046. ">
  2047. <div class="worksTop">
  2048. <div>作业预览</div>
  2049. </div>
  2050. </div>
  2051. <div class="worksDetailBox" v-if="worksTeacher.length &&
  2052. worksTeacher[toolIndex].length > 0
  2053. ">
  2054. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName"
  2055. @click="openXz(w, toolIndex)">
  2056. {{ w.sName }}
  2057. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  2058. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  2059. </div>
  2060. </div>
  2061. </div>
  2062. <div v-if="tType &&
  2063. ((tType == 2 && sIsOpen == true) ||
  2064. tType == 1 ||
  2065. tType == 4) &&
  2066. tool.tool.indexOf(47) != -1
  2067. " class="worksBox">
  2068. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  2069. worksTeacher[toolIndex].length > 0
  2070. ">
  2071. <div class="worksTop">
  2072. <div>作业预览</div>
  2073. </div>
  2074. </div>
  2075. <div class="worksDetailBox" v-if="worksTeacher.length &&
  2076. worksTeacher[toolIndex].length > 0
  2077. ">
  2078. <!-- @click="openXz(w, toolIndex)" -->
  2079. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName"
  2080. @click="openSen(w, toolIndex)">
  2081. {{ w.sName }}
  2082. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  2083. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  2084. </div>
  2085. </div>
  2086. </div>
  2087. <div v-if="tType &&
  2088. ((tType == 2 && sIsOpen == true) ||
  2089. tType == 1 ||
  2090. tType == 4) &&
  2091. tool.tool.indexOf(48) != -1
  2092. " class="worksBox">
  2093. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  2094. worksTeacher[toolIndex].length > 0
  2095. ">
  2096. <div class="worksTop">
  2097. <div>作业预览</div>
  2098. </div>
  2099. </div>
  2100. <div class="worksDetailBox" v-if="worksTeacher.length &&
  2101. worksTeacher[toolIndex].length > 0
  2102. ">
  2103. <div class="works" style="
  2104. width: 200px;
  2105. height: 140px;
  2106. margin: 10px 10px 10px 0;
  2107. border-radius: 15px;
  2108. box-shadow: 0 0 6px 1px #dfdada;
  2109. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2110. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  2111. <div class="workImg">
  2112. <img :src="word" @click="openTable(w)" alt />
  2113. <!-- @click="openFile(w.works)" -->
  2114. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2115. rightW:
  2116. w.userid == userid ||
  2117. tType == 1 ||
  2118. tType == 4 ||
  2119. w.ateacher == userid,
  2120. }">
  2121. {{ JSON.parse(w.score).wScore }}分
  2122. </div>
  2123. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2124. :class="{
  2125. rightW:
  2126. w.userid == userid ||
  2127. tType == 1 ||
  2128. tType == 4 ||
  2129. w.ateacher == userid,
  2130. }">
  2131. 评分
  2132. </div>
  2133. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2134. " @click.stop="deleteWorks(w.wid)" alt />
  2135. </div>
  2136. <div class="comment" style="min-width: 200px">
  2137. <div class="worksName">
  2138. <div>{{ w.sName }}</div>
  2139. </div>
  2140. <div class="commentList">
  2141. <div class="commentList">
  2142. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2143. ">
  2144. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2145. </div>
  2146. <div>{{ w.likesCount }}</div>
  2147. </div>
  2148. <div class="commentList" style="margin-right: 15px">
  2149. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2150. <img src="../../assets/icon/comment/comment.png" alt="" />
  2151. </div>
  2152. <div>{{ w.commentCount }}</div>
  2153. </div>
  2154. </div>
  2155. </div>
  2156. </div>
  2157. </div>
  2158. </div>
  2159. <div v-if="tType &&
  2160. ((tType == 2 && sIsOpen == true) ||
  2161. tType == 1 ||
  2162. tType == 4) &&
  2163. tool.tool.indexOf(52) != -1
  2164. " class="worksBox">
  2165. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  2166. worksTeacher[toolIndex].length > 0
  2167. ">
  2168. <div class="worksTop">
  2169. <div>作业预览</div>
  2170. </div>
  2171. </div>
  2172. <div class="worksDetailBox" v-if="worksTeacher.length &&
  2173. worksTeacher[toolIndex].length > 0
  2174. ">
  2175. <div class="works" style="
  2176. width: 200px;
  2177. height: 140px;
  2178. margin: 10px 10px 10px 0;
  2179. border-radius: 15px;
  2180. box-shadow: 0 0 6px 1px #dfdada;
  2181. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2182. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  2183. <div class="workImg">
  2184. <img :src="word" @click="openWord(w)" alt />
  2185. <!-- @click="openFile(w.works)" -->
  2186. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2187. rightW:
  2188. w.userid == userid ||
  2189. tType == 1 ||
  2190. tType == 4 ||
  2191. w.ateacher == userid,
  2192. }">
  2193. {{ JSON.parse(w.score).wScore }}分
  2194. </div>
  2195. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2196. :class="{
  2197. rightW:
  2198. w.userid == userid ||
  2199. tType == 1 ||
  2200. tType == 4 ||
  2201. w.ateacher == userid,
  2202. }">
  2203. 评分
  2204. </div>
  2205. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2206. " @click.stop="deleteWorks(w.wid)" alt />
  2207. </div>
  2208. <div class="comment" style="min-width: 200px">
  2209. <div class="worksName">
  2210. <div>{{ w.sName }}</div>
  2211. </div>
  2212. <div class="commentList">
  2213. <div class="commentList">
  2214. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2215. ">
  2216. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2217. </div>
  2218. <div>{{ w.likesCount }}</div>
  2219. </div>
  2220. <div class="commentList" style="margin-right: 15px">
  2221. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2222. <img src="../../assets/icon/comment/comment.png" alt="" />
  2223. </div>
  2224. <div>{{ w.commentCount }}</div>
  2225. </div>
  2226. </div>
  2227. </div>
  2228. </div>
  2229. </div>
  2230. </div>
  2231. </div>
  2232. </div>
  2233. <div class="vedioBox">
  2234. <div v-if="tType &&
  2235. ((tType == 2 && sIsOpen == true) ||
  2236. tType == 1 ||
  2237. tType == 4) &&
  2238. tool.tool.indexOf(4) != -1 && worksStudent.length &&
  2239. worksStudent[toolIndex].length &&
  2240. (tool.askJson[0].answer ||
  2241. tool.askJson[0].answer === 0) &&
  2242. checkJson[toolIndex].length
  2243. " class="xuan_right_box">
  2244. <div class="tool_right_box" v-for="(item, index) in tool.askJson" :key="index">
  2245. <div>
  2246. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  2247. </div>
  2248. <div class="right_box_xuan">
  2249. <span>正确率</span>
  2250. <span>{{
  2251. (checkJson[toolIndex][index].right
  2252. ? checkJson[toolIndex][index].right
  2253. : 0) + "%"
  2254. }}</span>
  2255. </div>
  2256. </div>
  2257. </div>
  2258. <div class="xuan_right_box" style="background: unset" v-if="tType &&
  2259. ((tType == 2 && sIsOpen == true) ||
  2260. tType == 1 ||
  2261. tType == 4) &&
  2262. tool.tool.indexOf(4) != -1 && worksStudent.length &&
  2263. worksStudent[toolIndex].length
  2264. ">
  2265. <AskStatic v-if="worksStudent.length &&
  2266. worksStudent[toolIndex].length > 0
  2267. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic>
  2268. </div>
  2269. <div v-if="tType &&
  2270. ((tType == 2 && sIsOpen == true) ||
  2271. tType == 1 ||
  2272. tType == 4) &&
  2273. tool.tool.indexOf(45) != -1 && worksStudent.length &&
  2274. worksStudent[toolIndex].length &&
  2275. (tool.testJson.testJson[0].answer ||
  2276. tool.testJson.testJson[0].answer === 0) &&
  2277. checkJson[toolIndex].length
  2278. " class="xuan_right_box">
  2279. <div class="tool_right_box" v-for="(item, index) in tool.testJson.testJson" :key="index">
  2280. <div>
  2281. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  2282. </div>
  2283. <div class="right_box_xuan">
  2284. <span>正确率</span>
  2285. <span>{{
  2286. (checkJson[toolIndex][index].right
  2287. ? checkJson[toolIndex][index].right
  2288. : 0) + "%"
  2289. }}</span>
  2290. </div>
  2291. </div>
  2292. </div>
  2293. <div class="xuan_right_box" style="background: unset" v-if="tType &&
  2294. ((tType == 2 && sIsOpen == true) ||
  2295. tType == 1 ||
  2296. tType == 4) &&
  2297. tool.tool.indexOf(45) != -1 && worksStudent.length &&
  2298. worksStudent[toolIndex].length
  2299. ">
  2300. <AskStatic2 v-if="worksStudent.length &&
  2301. worksStudent[toolIndex].length > 0
  2302. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic2>
  2303. </div>
  2304. <div v-if="tType &&
  2305. ((tType == 2 && sIsOpen == true) ||
  2306. tType == 1 ||
  2307. tType == 4) &&
  2308. tool.tool.indexOf(41) != -1
  2309. ">
  2310. <AnswerData2 v-if="worksStudent.length &&
  2311. worksStudent[toolIndex].length > 0
  2312. " :problemJson="tool.selectJson.answer" :people="worksStudent[toolIndex]"></AnswerData2>
  2313. </div>
  2314. <div v-if="tType &&
  2315. ((tType == 2 && sIsOpen == true) ||
  2316. tType == 1 ||
  2317. tType == 4) &&
  2318. tool.tool.indexOf(47) != -1
  2319. ">
  2320. <AnswerData v-if="checkJson[toolIndex].length &&
  2321. (tool.sentenceList || tool.sentenceList.length > 0)
  2322. " :people="checkJson[toolIndex]"></AnswerData>
  2323. </div>
  2324. </div>
  2325. <div class="vedioBox" v-if="noWorksS[toolIndex].length && arrayToArray(tool.tool, isWorkTool).length">
  2326. <div class="queTop" style="
  2327. font-size: 25px;
  2328. padding: 15px 0 15px 30px;
  2329. font-weight: bold;
  2330. ">
  2331. 学生工作区
  2332. </div>
  2333. <div class="tool_work_box">
  2334. <div v-if="tType &&
  2335. ((tType == 2 && sIsOpen == true) ||
  2336. tType == 1 ||
  2337. tType == 4) &&
  2338. tool.tool.indexOf(16) != -1
  2339. " class="worksBox">
  2340. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2341. worksStudent2[toolIndex].length > 0
  2342. ">
  2343. <div class="worksTop">
  2344. <div>作业预览</div>
  2345. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2346. isCloseList[toolIndex].isClose == 0
  2347. ">
  2348. 收缩
  2349. </div>
  2350. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2351. 展开
  2352. </div>
  2353. </div>
  2354. </div>
  2355. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2356. worksStudent2[toolIndex].length > 0
  2357. ">
  2358. <div class="works" style="
  2359. width: 200px;
  2360. height: 140px;
  2361. margin: 10px 10px 10px 0;
  2362. border-radius: 15px;
  2363. box-shadow: 0 0 6px 1px #dfdada;
  2364. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2365. 0
  2366. ? worksStudent2[toolIndex]
  2367. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  2368. :class="w.type == 1 ? 'isTypeOne' : ''">
  2369. <div class="workImg" v-if="w.type == 0">
  2370. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2371. <img :src="w.works" @click="previewImg(w.works)" alt />
  2372. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2373. rightW:
  2374. w.userid == userid ||
  2375. tType == 1 ||
  2376. tType == 4 ||
  2377. w.ateacher == userid,
  2378. }">
  2379. {{ JSON.parse(w.score).wScore }}分
  2380. </div>
  2381. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2382. :class="{
  2383. rightW:
  2384. w.userid == userid ||
  2385. tType == 1 ||
  2386. tType == 4 ||
  2387. w.ateacher == userid,
  2388. }">
  2389. 评分
  2390. </div>
  2391. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2392. " @click.stop="deleteWorks(w.wid)" alt />
  2393. </div>
  2394. <div class="workImg" v-if="w.type == 1">
  2395. <img :src="word" @click="openFile(w.works)" alt />
  2396. <!-- @click="openFile(w.works)" -->
  2397. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2398. rightW:
  2399. w.userid == userid ||
  2400. tType == 1 ||
  2401. tType == 4 ||
  2402. w.ateacher == userid,
  2403. }">
  2404. {{ JSON.parse(w.score).wScore }}分
  2405. </div>
  2406. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2407. :class="{
  2408. rightW:
  2409. w.userid == userid ||
  2410. tType == 1 ||
  2411. tType == 4 ||
  2412. w.ateacher == userid,
  2413. }">
  2414. 评分
  2415. </div>
  2416. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2417. " @click.stop="deleteWorks(w.wid)" alt />
  2418. </div>
  2419. <div class="workImg" v-if="w.type == 3">
  2420. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  2421. <!-- @click="openVideo(w.works)" -->
  2422. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2423. rightW:
  2424. w.userid == userid ||
  2425. tType == 1 ||
  2426. tType == 4 ||
  2427. w.ateacher == userid,
  2428. }">
  2429. {{ JSON.parse(w.score).wScore }}分
  2430. </div>
  2431. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2432. :class="{
  2433. rightW:
  2434. w.userid == userid ||
  2435. tType == 1 ||
  2436. tType == 4 ||
  2437. w.ateacher == userid,
  2438. }">
  2439. 评分
  2440. </div>
  2441. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2442. " @click.stop="deleteWorks(w.wid)" alt />
  2443. </div>
  2444. <div class="workImg" v-if="w.type == 12">
  2445. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  2446. <!-- @click="openVideo(w.works)" -->
  2447. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2448. rightW:
  2449. w.userid == userid ||
  2450. tType == 1 ||
  2451. tType == 4 ||
  2452. w.ateacher == userid,
  2453. }">
  2454. {{ JSON.parse(w.score).wScore }}分
  2455. </div>
  2456. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2457. :class="{
  2458. rightW:
  2459. w.userid == userid ||
  2460. tType == 1 ||
  2461. tType == 4 ||
  2462. w.ateacher == userid,
  2463. }">
  2464. 评分
  2465. </div>
  2466. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2467. " @click.stop="deleteWorks(w.wid)" alt />
  2468. </div>
  2469. <div class="comment" style="min-width: 200px">
  2470. <div class="worksName">
  2471. <div>{{ w.sName }}</div>
  2472. </div>
  2473. <div class="commentList">
  2474. <div class="commentList">
  2475. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2476. ">
  2477. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2478. </div>
  2479. <div>{{ w.likesCount }}</div>
  2480. </div>
  2481. <div class="commentList" style="margin-right: 15px">
  2482. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2483. <img src="../../assets/icon/comment/comment.png" alt="" />
  2484. </div>
  2485. <div>{{ w.commentCount }}</div>
  2486. </div>
  2487. </div>
  2488. </div>
  2489. </div>
  2490. </div>
  2491. <div class="noWorksS">
  2492. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2493. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)" :class="{ isWork: s.type == '2' }">
  2494. {{ s.student }}
  2495. </div>
  2496. </div>
  2497. </div>
  2498. <div v-if="tType &&
  2499. ((tType == 2 && sIsOpen == true) ||
  2500. tType == 1 ||
  2501. tType == 4) &&
  2502. tool.tool.indexOf(32) != -1
  2503. " class="worksBox">
  2504. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2505. worksStudent2[toolIndex].length > 0
  2506. ">
  2507. <div class="worksTop">
  2508. <div>作业预览</div>
  2509. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2510. isCloseList[toolIndex].isClose == 0
  2511. ">
  2512. 收缩
  2513. </div>
  2514. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2515. 展开
  2516. </div>
  2517. </div>
  2518. </div>
  2519. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2520. worksStudent2[toolIndex].length > 0
  2521. ">
  2522. <div class="works" style="
  2523. width: 200px;
  2524. height: 140px;
  2525. margin: 10px 10px 10px 0;
  2526. border-radius: 15px;
  2527. box-shadow: 0 0 6px 1px #dfdada;
  2528. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2529. 0
  2530. ? worksStudent2[toolIndex]
  2531. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  2532. :class="w.type == 1 ? 'isTypeOne' : ''">
  2533. <div class="workImg">
  2534. <img :src="word2" @click="downloadFile(w.works)" alt />
  2535. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2536. rightW:
  2537. w.userid == userid ||
  2538. tType == 1 ||
  2539. tType == 4 ||
  2540. w.ateacher == userid,
  2541. }">
  2542. {{ JSON.parse(w.score).wScore }}分
  2543. </div>
  2544. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2545. :class="{
  2546. rightW:
  2547. w.userid == userid ||
  2548. tType == 1 ||
  2549. tType == 4 ||
  2550. w.ateacher == userid,
  2551. }">
  2552. 评分
  2553. </div>
  2554. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2555. " @click.stop="deleteWorks(w.wid)" alt />
  2556. </div>
  2557. <div class="comment" style="min-width: 200px">
  2558. <div class="worksName">
  2559. <div>{{ w.sName }}</div>
  2560. </div>
  2561. <div class="commentList">
  2562. <div class="commentList">
  2563. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2564. ">
  2565. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2566. </div>
  2567. <div>{{ w.likesCount }}</div>
  2568. </div>
  2569. <div class="commentList" style="margin-right: 15px">
  2570. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2571. <img src="../../assets/icon/comment/comment.png" alt="" />
  2572. </div>
  2573. <div>{{ w.commentCount }}</div>
  2574. </div>
  2575. </div>
  2576. </div>
  2577. </div>
  2578. </div>
  2579. <div class="noWorksS">
  2580. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2581. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)" :class="{ isWork: s.type == '2' }">
  2582. {{ s.student }}
  2583. </div>
  2584. </div>
  2585. </div>
  2586. <div v-if="tType &&
  2587. ((tType == 2 && sIsOpen == true) ||
  2588. tType == 1 ||
  2589. tType == 4) &&
  2590. tool.tool.indexOf(57) != -1
  2591. " class="worksBox">
  2592. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2593. worksStudent2[toolIndex].length > 0
  2594. ">
  2595. <div class="worksTop">
  2596. <div>作业预览</div>
  2597. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2598. isCloseList[toolIndex].isClose == 0
  2599. ">
  2600. 收缩
  2601. </div>
  2602. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2603. 展开
  2604. </div>
  2605. </div>
  2606. </div>
  2607. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2608. worksStudent2[toolIndex].length > 0
  2609. ">
  2610. <div class="works" style="
  2611. width: 200px;
  2612. height: 140px;
  2613. margin: 10px 10px 10px 0;
  2614. border-radius: 15px;
  2615. box-shadow: 0 0 6px 1px #dfdada;
  2616. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2617. 0
  2618. ? worksStudent2[toolIndex]
  2619. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  2620. :class="w.type == 1 ? 'isTypeOne' : ''">
  2621. <div class="workImg">
  2622. <img :src="word2" @click="downloadFile(w.works)" alt />
  2623. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2624. rightW:
  2625. w.userid == userid ||
  2626. tType == 1 ||
  2627. tType == 4 ||
  2628. w.ateacher == userid,
  2629. }">
  2630. {{ JSON.parse(w.score).wScore }}分
  2631. </div>
  2632. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2633. :class="{
  2634. rightW:
  2635. w.userid == userid ||
  2636. tType == 1 ||
  2637. tType == 4 ||
  2638. w.ateacher == userid,
  2639. }">
  2640. 评分
  2641. </div>
  2642. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2643. " @click.stop="deleteWorks(w.wid)" alt />
  2644. </div>
  2645. <div class="comment" style="min-width: 200px">
  2646. <div class="worksName">
  2647. <div>{{ w.sName }}</div>
  2648. </div>
  2649. <div class="commentList">
  2650. <div class="commentList">
  2651. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2652. ">
  2653. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2654. </div>
  2655. <div>{{ w.likesCount }}</div>
  2656. </div>
  2657. <div class="commentList" style="margin-right: 15px">
  2658. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2659. <img src="../../assets/icon/comment/comment.png" alt="" />
  2660. </div>
  2661. <div>{{ w.commentCount }}</div>
  2662. </div>
  2663. </div>
  2664. </div>
  2665. </div>
  2666. </div>
  2667. <div class="noWorksS">
  2668. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2669. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)" :class="{ isWork: s.type == '2' }">
  2670. {{ s.student }}
  2671. </div>
  2672. </div>
  2673. </div>
  2674. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  2675. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2676. worksStudent2[toolIndex].length > 0
  2677. ">
  2678. <span>作业预览</span>
  2679. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2680. isCloseList[toolIndex].isClose == 0
  2681. ">
  2682. 收缩
  2683. </div>
  2684. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2685. 展开
  2686. </div>
  2687. </div>
  2688. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2689. worksStudent2[toolIndex].length > 0
  2690. ">
  2691. <div class="works" style="
  2692. width: 200px;
  2693. height: 140px;
  2694. margin: 10px 10px 10px 0;
  2695. border-radius: 15px;
  2696. box-shadow: 0 0 6px 1px #dfdada;
  2697. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2698. 0
  2699. ? worksStudent2[toolIndex]
  2700. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  2701. :class="w.type == 1 ? 'isTypeOne' : ''">
  2702. <div class="workImg" v-if="w.type == 0">
  2703. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2704. <img :src="w.works" @click="previewImg(w.works)" alt />
  2705. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2706. rightW:
  2707. w.userid == userid ||
  2708. tType == 1 ||
  2709. tType == 4 ||
  2710. w.ateacher == userid,
  2711. }">
  2712. {{ JSON.parse(w.score).wScore }}分
  2713. </div>
  2714. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2715. :class="{
  2716. rightW:
  2717. w.userid == userid ||
  2718. tType == 1 ||
  2719. tType == 4 ||
  2720. w.ateacher == userid,
  2721. }">
  2722. 评分
  2723. </div>
  2724. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2725. " @click.stop="deleteWorks(w.wid)" alt />
  2726. </div>
  2727. <div class="workImg" style="cursor: pointer" v-if="w.type == 1">
  2728. <img :src="word" @click="openFile(w.works)" alt />
  2729. <!-- @click="openFile(w.works)" -->
  2730. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2731. rightW:
  2732. w.userid == userid ||
  2733. tType == 1 ||
  2734. tType == 4 ||
  2735. w.ateacher == userid,
  2736. }">
  2737. {{ JSON.parse(w.score).wScore }}分
  2738. </div>
  2739. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2740. :class="{
  2741. rightW:
  2742. w.userid == userid ||
  2743. tType == 1 ||
  2744. tType == 4 ||
  2745. w.ateacher == userid,
  2746. }">
  2747. 评分
  2748. </div>
  2749. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2750. " @click.stop="deleteWorks(w.wid)" alt />
  2751. </div>
  2752. <div class="workImg" v-if="w.type == 3">
  2753. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  2754. <!-- @click="openVideo(w.works)" -->
  2755. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2756. rightW:
  2757. w.userid == userid ||
  2758. tType == 1 ||
  2759. tType == 4 ||
  2760. w.ateacher == userid,
  2761. }">
  2762. {{ JSON.parse(w.score).wScore }}分
  2763. </div>
  2764. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2765. :class="{
  2766. rightW:
  2767. w.userid == userid ||
  2768. tType == 1 ||
  2769. tType == 4 ||
  2770. w.ateacher == userid,
  2771. }">
  2772. 评分
  2773. </div>
  2774. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2775. " @click.stop="deleteWorks(w.wid)" alt />
  2776. </div>
  2777. <div class="comment" style="min-width: 200px">
  2778. <div class="worksName">
  2779. <div style="cursor: pointer" @click="openSname(w.sName, w.wid, toolIndex)">
  2780. {{ w.sName }}
  2781. </div>
  2782. </div>
  2783. <div class="commentList">
  2784. <div class="commentList">
  2785. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2786. ">
  2787. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2788. </div>
  2789. <div>{{ w.likesCount }}</div>
  2790. </div>
  2791. <div class="commentList" style="margin-right: 15px">
  2792. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2793. <img src="../../assets/icon/comment/comment.png" alt="" />
  2794. </div>
  2795. <div>{{ w.commentCount }}</div>
  2796. </div>
  2797. </div>
  2798. </div>
  2799. </div>
  2800. </div>
  2801. <div class="noWorksS">
  2802. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2803. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)" :class="{ isWork: s.type == '2' }">
  2804. {{ s.student }}
  2805. </div>
  2806. </div>
  2807. </div>
  2808. <div v-if="tType &&
  2809. ((tType == 2 && sIsOpen == true) ||
  2810. tType == 1 ||
  2811. tType == 4) &&
  2812. tool.tool.indexOf(4) != -1
  2813. " class="worksBox">
  2814. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2815. worksStudent2[toolIndex].length > 0
  2816. ">
  2817. <div class="worksTop">
  2818. <div>作业预览</div>
  2819. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2820. isCloseList[toolIndex].isClose == 0
  2821. ">
  2822. 收缩
  2823. </div>
  2824. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2825. 展开
  2826. </div>
  2827. </div>
  2828. </div>
  2829. <div>
  2830. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2831. worksStudent2[toolIndex].length > 0
  2832. ">
  2833. <div v-for="(w, wIndex) in isCloseList[toolIndex]
  2834. .isClose == 0
  2835. ? worksStudent2[toolIndex]
  2836. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName" @click="openTools(4, toolIndex, taskCount, w.works, w.sName)
  2837. ">
  2838. {{ w.sName }}
  2839. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2840. " @click.stop="deleteWorks(w.wid)" alt />
  2841. </div>
  2842. </div>
  2843. </div>
  2844. <div class="noWorksS">
  2845. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2846. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)" :class="{ isWork: s.type == '2' }">
  2847. {{ s.student }}
  2848. </div>
  2849. </div>
  2850. </div>
  2851. <div v-if="tType &&
  2852. ((tType == 2 && sIsOpen == true) ||
  2853. tType == 1 ||
  2854. tType == 4) &&
  2855. tool.tool.indexOf(45) != -1
  2856. " class="worksBox">
  2857. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2858. worksStudent2[toolIndex].length > 0
  2859. ">
  2860. <div class="worksTop">
  2861. <div>作业预览</div>
  2862. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2863. isCloseList[toolIndex].isClose == 0
  2864. ">
  2865. 收缩
  2866. </div>
  2867. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2868. 展开
  2869. </div>
  2870. </div>
  2871. </div>
  2872. <div>
  2873. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2874. worksStudent2[toolIndex].length > 0
  2875. ">
  2876. <div v-for="(w, wIndex) in isCloseList[toolIndex]
  2877. .isClose == 0
  2878. ? worksStudent2[toolIndex]
  2879. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName" @click="openTools(
  2880. 45,
  2881. toolIndex,
  2882. taskCount,
  2883. w.works,
  2884. w.sName
  2885. )
  2886. ">
  2887. {{ w.sName }}
  2888. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2889. " @click.stop="deleteWorks(w.wid)" alt />
  2890. </div>
  2891. </div>
  2892. </div>
  2893. <div class="noWorksS">
  2894. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2895. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)" :class="{ isWork: s.type == '2' }">
  2896. {{ s.student }}
  2897. </div>
  2898. </div>
  2899. </div>
  2900. <div v-if="tType &&
  2901. ((tType == 2 && sIsOpen == true) ||
  2902. tType == 1 ||
  2903. tType == 4) &&
  2904. tool.tool.indexOf(15) != -1
  2905. " class="worksBox">
  2906. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2907. worksStudent2[toolIndex].length > 0
  2908. ">
  2909. <div class="worksTop">
  2910. <div>作业预览</div>
  2911. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2912. isCloseList[toolIndex].isClose == 0
  2913. ">
  2914. 收缩
  2915. </div>
  2916. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2917. 展开
  2918. </div>
  2919. </div>
  2920. </div>
  2921. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2922. worksStudent2[toolIndex].length > 0
  2923. ">
  2924. <div class="works" v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2925. 0
  2926. ? worksStudent2[toolIndex]
  2927. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2928. <div class="workImg" style="
  2929. border-radius: 15px;
  2930. box-shadow: #eee 0px 0px 5px 5px;
  2931. ">
  2932. <!-- <img
  2933. src="../../assets/icon/works/noImg.png"
  2934. @click="openTools(15, toolIndex, taskCount, w.works)"
  2935. alt=""
  2936. />-->
  2937. <div class="answerBg" style="border-radius: 15px 15px 0 0"
  2938. @click="commentOther(w, toolIndex, wIndex)">
  2939. <!-- <div>{{ w.sName }}</div> -->
  2940. <div class="answerContent">
  2941. {{ JSON.parse(w.works)[0].answer }}
  2942. </div>
  2943. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2944. rightW:
  2945. w.userid == userid ||
  2946. tType == 1 ||
  2947. tType == 4,
  2948. }">
  2949. {{ JSON.parse(w.score).wScore }}分
  2950. </div>
  2951. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2952. :class="{
  2953. rightW:
  2954. w.userid == userid ||
  2955. tType == 1 ||
  2956. tType == 4,
  2957. }">
  2958. 评分
  2959. </div>
  2960. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2961. " @click.stop="deleteWorks(w.wid)" alt />
  2962. </div>
  2963. <div class="comment">
  2964. <div class="worksName">
  2965. <div>{{ w.sName }}</div>
  2966. </div>
  2967. <div class="commentList">
  2968. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2969. ">
  2970. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2971. </div>
  2972. <div>{{ w.likesCount }}</div>
  2973. </div>
  2974. <div class="commentList" style="margin-right: 15px">
  2975. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2976. <img src="../../assets/icon/comment/comment.png" alt="" />
  2977. </div>
  2978. <div>{{ w.commentCount }}</div>
  2979. </div>
  2980. </div>
  2981. </div>
  2982. </div>
  2983. </div>
  2984. <div class="noWorksS">
  2985. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2986. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)" :class="{ isWork: s.type == '2' }">
  2987. {{ s.student }}
  2988. </div>
  2989. </div>
  2990. </div>
  2991. <div v-if="tType &&
  2992. ((tType == 2 && sIsOpen == true) ||
  2993. tType == 1 ||
  2994. tType == 4) &&
  2995. tool.tool.indexOf(1) != -1
  2996. " class="worksBox">
  2997. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2998. worksStudent2[toolIndex].length > 0
  2999. ">
  3000. <div class="worksTop">
  3001. <div>作业预览</div>
  3002. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  3003. isCloseList[toolIndex].isClose == 0
  3004. ">
  3005. 收缩
  3006. </div>
  3007. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3008. 展开
  3009. </div>
  3010. </div>
  3011. </div>
  3012. <div class="worksDetailBox" v-if="worksStudent2.length &&
  3013. worksStudent2[toolIndex].length > 0
  3014. ">
  3015. <div class="works" style="
  3016. width: 200px;
  3017. height: 140px;
  3018. margin: 10px 10px 10px 0;
  3019. border-radius: 15px;
  3020. box-shadow: 0 0 6px 1px #dfdada;
  3021. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3022. 0
  3023. ? worksStudent2[toolIndex]
  3024. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  3025. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  3026. <div class="workImg">
  3027. <img :src="w.works" @click="previewImg(w.works)" alt />
  3028. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3029. rightW:
  3030. w.userid == userid || tType == 1 || tType == 4,
  3031. }">
  3032. {{ JSON.parse(w.score).wScore }}分
  3033. </div>
  3034. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3035. :class="{
  3036. rightW:
  3037. w.userid == userid || tType == 1 || tType == 4,
  3038. }">
  3039. 评分
  3040. </div>
  3041. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3042. " @click.stop="deleteWorks(w.wid)" alt />
  3043. </div>
  3044. <div class="comment" style="min-width: 200px">
  3045. <div class="worksName">
  3046. <div>{{ w.sName }}</div>
  3047. </div>
  3048. <div class="commentList">
  3049. <div class="commentList">
  3050. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  3051. ">
  3052. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3053. </div>
  3054. <div>{{ w.likesCount }}</div>
  3055. </div>
  3056. <div class="commentList" style="margin-right: 15px">
  3057. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3058. <img src="../../assets/icon/comment/comment.png" alt="" />
  3059. </div>
  3060. <div>{{ w.commentCount }}</div>
  3061. </div>
  3062. </div>
  3063. </div>
  3064. </div>
  3065. </div>
  3066. <div class="noWorksS">
  3067. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3068. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)" :class="{ isWork: s.type == '2' }">
  3069. {{ s.student }}
  3070. </div>
  3071. </div>
  3072. </div>
  3073. <div v-if="tType &&
  3074. ((tType == 2 && sIsOpen == true) ||
  3075. tType == 1 ||
  3076. tType == 4) &&
  3077. tool.tool.indexOf(3) != -1
  3078. " class="worksBox">
  3079. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  3080. worksStudent2[toolIndex].length > 0
  3081. ">
  3082. <div class="worksTop">
  3083. <div>作业预览</div>
  3084. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  3085. isCloseList[toolIndex].isClose == 0
  3086. ">
  3087. 收缩
  3088. </div>
  3089. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3090. 展开
  3091. </div>
  3092. </div>
  3093. </div>
  3094. <div class="worksDetailBox" v-if="worksStudent2.length &&
  3095. worksStudent2[toolIndex].length > 0
  3096. ">
  3097. <div class="works" style="
  3098. width: 200px;
  3099. height: 140px;
  3100. margin: 10px 10px 10px 0;
  3101. border-radius: 15px;
  3102. box-shadow: 0 0 6px 1px #dfdada;
  3103. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3104. 0
  3105. ? worksStudent2[toolIndex]
  3106. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  3107. <!-- @click="previewImg(w.works)" -->
  3108. <div class="workImg">
  3109. <img :src="w.works" @click="previewImg(w.works)" alt />
  3110. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3111. rightW:
  3112. w.userid == userid || tType == 1 || tType == 4,
  3113. }">
  3114. {{ JSON.parse(w.score).wScore }}分
  3115. </div>
  3116. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3117. :class="{
  3118. rightW:
  3119. w.userid == userid || tType == 1 || tType == 4,
  3120. }">
  3121. 评分
  3122. </div>
  3123. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3124. " @click.stop="deleteWorks(w.wid)" alt />
  3125. </div>
  3126. <div class="comment" style="min-width: 200px">
  3127. <div class="worksName">
  3128. <div>{{ w.sName }}</div>
  3129. </div>
  3130. <div class="commentList">
  3131. <div class="commentList">
  3132. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  3133. ">
  3134. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3135. </div>
  3136. <div>{{ w.likesCount }}</div>
  3137. </div>
  3138. <div class="commentList" style="margin-right: 15px">
  3139. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3140. <img src="../../assets/icon/comment/comment.png" alt="" />
  3141. </div>
  3142. <div>{{ w.commentCount }}</div>
  3143. </div>
  3144. </div>
  3145. </div>
  3146. </div>
  3147. </div>
  3148. <div class="noWorksS">
  3149. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3150. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)" :class="{ isWork: s.type == '2' }">
  3151. {{ s.student }}
  3152. </div>
  3153. </div>
  3154. </div>
  3155. <div v-if="tType &&
  3156. ((tType == 2 && sIsOpen == true) ||
  3157. tType == 1 ||
  3158. tType == 4) &&
  3159. tool.tool.indexOf(6) != -1
  3160. " class="worksBox">
  3161. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  3162. worksStudent2[toolIndex].length > 0
  3163. ">
  3164. <div class="worksTop">
  3165. <div>作业预览</div>
  3166. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  3167. isCloseList[toolIndex].isClose == 0
  3168. ">
  3169. 收缩
  3170. </div>
  3171. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3172. 展开
  3173. </div>
  3174. </div>
  3175. </div>
  3176. <div class="worksDetailBox" v-if="worksStudent2.length &&
  3177. worksStudent2[toolIndex].length > 0
  3178. ">
  3179. <div class="works" style="
  3180. width: 200px;
  3181. height: 140px;
  3182. margin: 10px 10px 10px 0;
  3183. border-radius: 15px;
  3184. box-shadow: 0 0 6px 1px #dfdada;
  3185. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3186. 0
  3187. ? worksStudent2[toolIndex]
  3188. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  3189. <!-- @click="previewImg(w.works)" -->
  3190. <div class="workImg">
  3191. <img :src="w.works" @click="previewImg(w.works)" alt />
  3192. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3193. rightW:
  3194. w.userid == userid || tType == 1 || tType == 4,
  3195. }">
  3196. {{ JSON.parse(w.score).wScore }}分
  3197. </div>
  3198. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3199. :class="{
  3200. rightW:
  3201. w.userid == userid || tType == 1 || tType == 4,
  3202. }">
  3203. 评分
  3204. </div>
  3205. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3206. " @click.stop="deleteWorks(w.wid)" alt />
  3207. </div>
  3208. <div class="comment" style="min-width: 200px">
  3209. <div class="worksName">
  3210. <div>{{ w.sName }}</div>
  3211. </div>
  3212. <div class="commentList">
  3213. <div class="commentList">
  3214. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  3215. ">
  3216. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3217. </div>
  3218. <div>{{ w.likesCount }}</div>
  3219. </div>
  3220. <div class="commentList" style="margin-right: 15px">
  3221. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3222. <img src="../../assets/icon/comment/comment.png" alt="" />
  3223. </div>
  3224. <div>{{ w.commentCount }}</div>
  3225. </div>
  3226. </div>
  3227. </div>
  3228. </div>
  3229. </div>
  3230. <div class="noWorksS">
  3231. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3232. :class="{ isWork: s.type == '2' }">
  3233. {{ s.student }}
  3234. </div>
  3235. </div>
  3236. </div>
  3237. <div v-if="tType &&
  3238. ((tType == 2 && sIsOpen == true) ||
  3239. tType == 1 ||
  3240. tType == 4) &&
  3241. tool.tool.indexOf(7) != -1
  3242. " class="worksBox">
  3243. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  3244. worksStudent2[toolIndex].length > 0
  3245. ">
  3246. <div class="worksTop">
  3247. <div>作业预览</div>
  3248. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  3249. isCloseList[toolIndex].isClose == 0
  3250. ">
  3251. 收缩
  3252. </div>
  3253. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3254. 展开
  3255. </div>
  3256. </div>
  3257. </div>
  3258. <div class="worksDetailBox" v-if="worksStudent2.length &&
  3259. worksStudent2[toolIndex].length > 0
  3260. ">
  3261. <div class="works" style="
  3262. width: 200px;
  3263. height: 140px;
  3264. margin: 10px 10px 10px 0;
  3265. border-radius: 15px;
  3266. box-shadow: 0 0 6px 1px #dfdada;
  3267. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3268. 0
  3269. ? worksStudent2[toolIndex]
  3270. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  3271. <!-- @click="previewImg(w.works)" -->
  3272. <div class="workImg">
  3273. <img :src="w.works" @click="previewImg(w.works)" alt />
  3274. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3275. rightW:
  3276. w.userid == userid || tType == 1 || tType == 4,
  3277. }">
  3278. {{ JSON.parse(w.score).wScore }}分
  3279. </div>
  3280. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3281. :class="{
  3282. rightW:
  3283. w.userid == userid || tType == 1 || tType == 4,
  3284. }">
  3285. 评分
  3286. </div>
  3287. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3288. " @click.stop="deleteWorks(w.wid)" alt />
  3289. </div>
  3290. <div class="comment" style="min-width: 200px">
  3291. <div class="worksName">
  3292. <div>{{ w.sName }}</div>
  3293. </div>
  3294. <div class="commentList">
  3295. <div class="commentList">
  3296. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  3297. ">
  3298. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3299. </div>
  3300. <div>{{ w.likesCount }}</div>
  3301. </div>
  3302. <div class="commentList" style="margin-right: 15px">
  3303. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3304. <img src="../../assets/icon/comment/comment.png" alt="" />
  3305. </div>
  3306. <div>{{ w.commentCount }}</div>
  3307. </div>
  3308. </div>
  3309. </div>
  3310. </div>
  3311. </div>
  3312. <div class="noWorksS">
  3313. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3314. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)" :class="{ isWork: s.type == '2' }">
  3315. {{ s.student }}
  3316. </div>
  3317. </div>
  3318. </div>
  3319. <div v-if="tType &&
  3320. ((tType == 2 && sIsOpen == true) ||
  3321. tType == 1 ||
  3322. tType == 4) &&
  3323. tool.tool.indexOf(26) != -1
  3324. " class="worksBox">
  3325. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  3326. worksStudent2[toolIndex].length > 0
  3327. ">
  3328. <div class="worksTop">
  3329. <div>作业预览</div>
  3330. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  3331. isCloseList[toolIndex].isClose == 0
  3332. ">
  3333. 收缩
  3334. </div>
  3335. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3336. 展开
  3337. </div>
  3338. </div>
  3339. </div>
  3340. <div class="worksDetailBox" v-if="worksStudent2.length &&
  3341. worksStudent2[toolIndex].length > 0
  3342. ">
  3343. <div class="works" style="width: 240px; height: 140px; overflow: hidden" v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3344. 0
  3345. ? worksStudent2[toolIndex]
  3346. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  3347. <div class="workImg" v-if="w.type == 0">
  3348. <img :src="w.works" @click="previewImg(w.works)" alt />
  3349. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3350. " @click.stop="deleteWorks(w.wid)" alt />
  3351. </div>
  3352. <div class="workImg" v-if="w.type == 1">
  3353. <img :src="word" @click="openFile(w.works)" alt />
  3354. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3355. " @click.stop="deleteWorks(w.wid)" alt />
  3356. </div>
  3357. <div class="worksName">
  3358. <div>{{ w.sName }}</div>
  3359. </div>
  3360. </div>
  3361. </div>
  3362. <div class="noWorksS">
  3363. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3364. :class="{ isWork: s.type == '2' }">
  3365. {{ s.student }}
  3366. </div>
  3367. </div>
  3368. </div>
  3369. <div v-if="tType &&
  3370. ((tType == 2 && sIsOpen == true) ||
  3371. tType == 1 ||
  3372. tType == 4) &&
  3373. tool.tool.indexOf(40) != -1
  3374. " class="worksBox">
  3375. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  3376. worksStudent2[toolIndex].length > 0
  3377. ">
  3378. <div class="worksTop">
  3379. <div>作业预览</div>
  3380. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  3381. isCloseList[toolIndex].isClose == 0
  3382. ">
  3383. 收缩
  3384. </div>
  3385. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3386. 展开
  3387. </div>
  3388. </div>
  3389. </div>
  3390. <div class="worksDetailBox" v-if="worksStudent2.length &&
  3391. worksStudent2[toolIndex].length > 0
  3392. ">
  3393. <div class="works" style="
  3394. width: 200px;
  3395. height: 140px;
  3396. margin: 10px 10px 10px 0;
  3397. border-radius: 15px;
  3398. box-shadow: 0 0 6px 1px #dfdada;
  3399. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3400. 0
  3401. ? worksStudent2[toolIndex]
  3402. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  3403. :class="w.type == 1 ? 'isTypeOne' : ''">
  3404. <div class="workImg">
  3405. <img src="../../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  3406. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3407. " @click.stop="deleteWorks(w.wid)" alt />
  3408. </div>
  3409. <div class="comment" style="min-width: 200px">
  3410. <div class="worksName">
  3411. <div>{{ w.sName }}</div>
  3412. </div>
  3413. <div class="commentList">
  3414. <div class="commentList">
  3415. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  3416. ">
  3417. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3418. </div>
  3419. <div>{{ w.likesCount }}</div>
  3420. </div>
  3421. <div class="commentList" style="margin-right: 15px">
  3422. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3423. <img src="../../assets/icon/comment/comment.png" alt="" />
  3424. </div>
  3425. <div>{{ w.commentCount }}</div>
  3426. </div>
  3427. </div>
  3428. </div>
  3429. </div>
  3430. </div>
  3431. <div class="noWorksS">
  3432. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3433. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)" :class="{ isWork: s.type == '2' }">
  3434. {{ s.student }}
  3435. </div>
  3436. </div>
  3437. </div>
  3438. <div v-if="tType &&
  3439. ((tType == 2 && sIsOpen == true) ||
  3440. tType == 1 ||
  3441. tType == 4) &&
  3442. tool.tool.indexOf(41) != -1
  3443. " class="worksBox">
  3444. <div class="noWorksS">
  3445. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3446. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)" :class="{ isWork: s.type == '2' }">
  3447. {{ s.student }}
  3448. </div>
  3449. </div>
  3450. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  3451. worksStudent2[toolIndex].length > 0
  3452. ">
  3453. <div class="worksTop">
  3454. <div>作业预览</div>
  3455. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  3456. isCloseList[toolIndex].isClose == 0
  3457. ">
  3458. 收缩
  3459. </div>
  3460. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3461. 展开
  3462. </div>
  3463. </div>
  3464. </div>
  3465. <div class="worksDetailBox" v-if="worksStudent2.length &&
  3466. worksStudent2[toolIndex].length > 0
  3467. ">
  3468. <div v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3469. 0
  3470. ? worksStudent2[toolIndex]
  3471. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName"
  3472. @click="openXz(w, toolIndex)">
  3473. {{ w.sName }}
  3474. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  3475. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  3476. </div>
  3477. </div>
  3478. </div>
  3479. <div v-if="tType &&
  3480. ((tType == 2 && sIsOpen == true) ||
  3481. tType == 1 ||
  3482. tType == 4) &&
  3483. tool.tool.indexOf(47) != -1
  3484. " class="worksBox">
  3485. <div class="noWorksS">
  3486. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3487. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)" :class="{ isWork: s.type == '2' }">
  3488. {{ s.student }}
  3489. </div>
  3490. </div>
  3491. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  3492. worksStudent2[toolIndex].length > 0
  3493. ">
  3494. <div class="worksTop">
  3495. <div>作业预览</div>
  3496. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  3497. isCloseList[toolIndex].isClose == 0
  3498. ">
  3499. 收缩
  3500. </div>
  3501. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3502. 展开
  3503. </div>
  3504. </div>
  3505. </div>
  3506. <div class="worksDetailBox" v-if="worksStudent2.length &&
  3507. worksStudent2[toolIndex].length > 0
  3508. ">
  3509. <!-- @click="openXz(w, toolIndex)" -->
  3510. <div v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3511. 0
  3512. ? worksStudent2[toolIndex]
  3513. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName"
  3514. @click="openSen(w, toolIndex)">
  3515. {{ w.sName }}
  3516. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  3517. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  3518. </div>
  3519. </div>
  3520. </div>
  3521. <div v-if="tType &&
  3522. ((tType == 2 && sIsOpen == true) ||
  3523. tType == 1 ||
  3524. tType == 4) &&
  3525. tool.tool.indexOf(48) != -1
  3526. " class="worksBox">
  3527. <div class="noWorksS">
  3528. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3529. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)" :class="{ isWork: s.type == '2' }">
  3530. {{ s.student }}
  3531. </div>
  3532. </div>
  3533. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  3534. worksStudent2[toolIndex].length > 0
  3535. ">
  3536. <div class="worksTop">
  3537. <div>作业预览</div>
  3538. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  3539. isCloseList[toolIndex].isClose == 0
  3540. ">
  3541. 收缩
  3542. </div>
  3543. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3544. 展开
  3545. </div>
  3546. </div>
  3547. </div>
  3548. <div class="worksDetailBox" v-if="worksStudent2.length &&
  3549. worksStudent2[toolIndex].length > 0
  3550. ">
  3551. <div class="works" style="
  3552. width: 200px;
  3553. height: 140px;
  3554. margin: 10px 10px 10px 0;
  3555. border-radius: 15px;
  3556. box-shadow: 0 0 6px 1px #dfdada;
  3557. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3558. 0
  3559. ? worksStudent2[toolIndex]
  3560. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  3561. :class="w.type == 1 ? 'isTypeOne' : ''">
  3562. <div class="workImg">
  3563. <img :src="word" @click="openTable(w)" alt />
  3564. <!-- @click="openFile(w.works)" -->
  3565. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3566. rightW:
  3567. w.userid == userid ||
  3568. tType == 1 ||
  3569. tType == 4 ||
  3570. w.ateacher == userid,
  3571. }">
  3572. {{ JSON.parse(w.score).wScore }}分
  3573. </div>
  3574. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3575. :class="{
  3576. rightW:
  3577. w.userid == userid ||
  3578. tType == 1 ||
  3579. tType == 4 ||
  3580. w.ateacher == userid,
  3581. }">
  3582. 评分
  3583. </div>
  3584. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3585. " @click.stop="deleteWorks(w.wid)" alt />
  3586. </div>
  3587. <div class="comment" style="min-width: 200px">
  3588. <div class="worksName">
  3589. <div>{{ w.sName }}</div>
  3590. </div>
  3591. <div class="commentList">
  3592. <div class="commentList">
  3593. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  3594. ">
  3595. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3596. </div>
  3597. <div>{{ w.likesCount }}</div>
  3598. </div>
  3599. <div class="commentList" style="margin-right: 15px">
  3600. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3601. <img src="../../assets/icon/comment/comment.png" alt="" />
  3602. </div>
  3603. <div>{{ w.commentCount }}</div>
  3604. </div>
  3605. </div>
  3606. </div>
  3607. </div>
  3608. </div>
  3609. </div>
  3610. <div v-if="tType &&
  3611. ((tType == 2 && sIsOpen == true) ||
  3612. tType == 1 ||
  3613. tType == 4) &&
  3614. tool.tool.indexOf(52) != -1
  3615. " class="worksBox">
  3616. <div class="noWorksS">
  3617. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3618. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)" :class="{ isWork: s.type == '2' }">
  3619. {{ s.student }}
  3620. </div>
  3621. </div>
  3622. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  3623. worksStudent2[toolIndex].length > 0
  3624. ">
  3625. <div class="worksTop">
  3626. <div>作业预览</div>
  3627. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  3628. isCloseList[toolIndex].isClose == 0
  3629. ">
  3630. 收缩
  3631. </div>
  3632. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3633. 展开
  3634. </div>
  3635. </div>
  3636. </div>
  3637. <div class="worksDetailBox" v-if="worksStudent2.length &&
  3638. worksStudent2[toolIndex].length > 0
  3639. ">
  3640. <div class="works" style="
  3641. width: 200px;
  3642. height: 140px;
  3643. margin: 10px 10px 10px 0;
  3644. border-radius: 15px;
  3645. box-shadow: 0 0 6px 1px #dfdada;
  3646. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3647. 0
  3648. ? worksStudent2[toolIndex]
  3649. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  3650. :class="w.type == 1 ? 'isTypeOne' : ''">
  3651. <div class="workImg">
  3652. <img :src="word" @click="openWord(w)" alt />
  3653. <!-- @click="openFile(w.works)" -->
  3654. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3655. rightW:
  3656. w.userid == userid ||
  3657. tType == 1 ||
  3658. tType == 4 ||
  3659. w.ateacher == userid,
  3660. }">
  3661. {{ JSON.parse(w.score).wScore }}分
  3662. </div>
  3663. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3664. :class="{
  3665. rightW:
  3666. w.userid == userid ||
  3667. tType == 1 ||
  3668. tType == 4 ||
  3669. w.ateacher == userid,
  3670. }">
  3671. 评分
  3672. </div>
  3673. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3674. " @click.stop="deleteWorks(w.wid)" alt />
  3675. </div>
  3676. <div class="comment" style="min-width: 200px">
  3677. <div class="worksName">
  3678. <div>{{ w.sName }}</div>
  3679. </div>
  3680. <div class="commentList">
  3681. <div class="commentList">
  3682. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  3683. ">
  3684. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3685. </div>
  3686. <div>{{ w.likesCount }}</div>
  3687. </div>
  3688. <div class="commentList" style="margin-right: 15px">
  3689. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3690. <img src="../../assets/icon/comment/comment.png" alt="" />
  3691. </div>
  3692. <div>{{ w.commentCount }}</div>
  3693. </div>
  3694. </div>
  3695. </div>
  3696. </div>
  3697. </div>
  3698. </div>
  3699. </div>
  3700. </div>
  3701. <div class="vedioBox" v-if="false
  3702. ">
  3703. <div class="queTop" style="
  3704. font-size: 25px;
  3705. padding: 15px 0 15px 30px;
  3706. font-weight: bold;
  3707. ">
  3708. 评一评
  3709. </div>
  3710. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  3711. <div class="elist_input">
  3712. <div v-for="(eItem, eIndex) in chapInfoList[courseType]
  3713. .chapterInfo[0].taskJson[taskCount].eList" :key="eIndex" class="elist_input_box">
  3714. <div style="width: 95%">
  3715. <div style="
  3716. display: flex;
  3717. flex-direction: row;
  3718. flex-wrap: nowrap;
  3719. align-items: center;
  3720. ">
  3721. <div style="max-width: calc(100% - 285px)">
  3722. <span>{{ eItem.value }}</span>
  3723. </div>
  3724. <div style="
  3725. padding-left: 25px;
  3726. display: flex;
  3727. flex-direction: row;
  3728. align-items: center;
  3729. ">
  3730. <el-rate v-model="eItem.score" :colors="colors" disabled></el-rate>
  3731. </div>
  3732. </div>
  3733. <div class="elist_inptu_text" style="padding-left: 10px">
  3734. <span v-if="eItem.detail != ''">{{
  3735. eItem.detail
  3736. }}</span>
  3737. <span v-else style="color: #b2b1b3; font-size: 14px">暂无描述...</span>
  3738. </div>
  3739. </div>
  3740. </div>
  3741. </div>
  3742. <div v-if="evalua" style="
  3743. border: 1px solid #e5e5e5;
  3744. max-width: 650px;
  3745. width: 100%;
  3746. margin-top: 20px;
  3747. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3748. ">
  3749. <div class="e_add_top">
  3750. <div class="e_add_title">
  3751. <span>目标管理名称</span>
  3752. <span>{{ eTitle }}</span>
  3753. <img src="../../assets/line.png" class="cru_line" style="
  3754. width: 125px;
  3755. height: 20px;
  3756. bottom: -10px;
  3757. left: 120px;
  3758. " />
  3759. <!-- <el-input
  3760. v-model="eTitle"
  3761. placeholder="请输入名称"
  3762. @change="setMindData"
  3763. ></el-input>-->
  3764. </div>
  3765. </div>
  3766. <div class="e_add_content">
  3767. <div class="e_add_list_pbox">
  3768. <div class="e_add_list_pbox_title">
  3769. <span class="type_title">切换模式</span>
  3770. <div class="type_content">
  3771. <span :class="{ active: typeMode == 1 }" @click="typeMode = 1">目标树</span>
  3772. <span :class="{ active: typeMode == 2 }" @click="typeMode = 2">目标罗盘</span>
  3773. <span :class="{ active: typeMode == 3 }" @click="typeMode = 3">目标看板</span>
  3774. </div>
  3775. </div>
  3776. <div class="e_add_list_pbox_content">
  3777. <Mind :showBar="false" :mindData="data" style="width: 100%" v-show="typeMode == 1"></Mind>
  3778. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  3779. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%" v-if="typeMode == 3">
  3780. </SeeBoard>
  3781. </div>
  3782. </div>
  3783. </div>
  3784. </div>
  3785. </div>
  3786. </div>
  3787. </div>
  3788. </div>
  3789. <el-dialog title="作业提交" :visible.sync="dialogVisible" :append-to-body="true" width="500px"
  3790. :before-close="handleClose" class="dialog_change">
  3791. <div class="marginT">
  3792. <div>上传文件</div>
  3793. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  3794. <div class="up_photo">
  3795. <img src="../../assets/icon/uploadImg.png" alt />
  3796. </div>
  3797. <!-- <input
  3798. type="file"
  3799. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  3800. style="display: none"
  3801. @change="beforeUpload1($event, 1)"
  3802. /> -->
  3803. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  3804. <!-- <input
  3805. type="file"
  3806. accept="image/*"
  3807. capture="camera"
  3808. style="display: none"
  3809. @change="beforeUpload1($event, 1)"
  3810. /> -->
  3811. </div>
  3812. <div class="chapter_add" style="
  3813. display: flex;
  3814. width: 100%;
  3815. flex-direction: row;
  3816. flex-wrap: wrap;
  3817. justify-content: flex-start;
  3818. padding: 15px 0;
  3819. " v-if="studyJuri[0].cover.length > 0">
  3820. <div class="upCover">
  3821. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  3822. <img :src="word" alt v-else-if="fileType == 1" />
  3823. <img :src="video" alt v-else-if="fileType == 2" />
  3824. <img :src="word2" alt v-else-if="fileType == 3" />
  3825. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  3826. <div class="deleteWord" @click="clean(1)">
  3827. <img src="../../assets/icon/deleteWorks.png" alt />
  3828. </div>
  3829. </div>
  3830. </div>
  3831. </div>
  3832. <div class="upload_send" @click="addCourseWorks(taskCount)" v-if="!proVisible">
  3833. 提交
  3834. </div>
  3835. </el-dialog>
  3836. </div>
  3837. </div>
  3838. <div class="pButton" @click="(pzDialog = true), selectPz()" v-if="tType == 4 || ispzType == 4">
  3839. <!-- 批 -->
  3840. <img src="../../assets/pzBtn2.png" style="width: 25px" alt="" />
  3841. </div>
  3842. <div v-if="pzDialog == true" class="newDialogCss">
  3843. <div class="pzTop2">
  3844. <!-- <div>批注</div>
  3845. <div @click="pzDialog = false">
  3846. <img src="../../assets/close1.png" alt="" />
  3847. </div> -->
  3848. <div class="checkbox">
  3849. <div class="check" style="font-size: 25px">评课笔记</div>
  3850. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  3851. </div>
  3852. </div>
  3853. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  3854. <div class="pzListBox" v-if="pzList && pzList.length">
  3855. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  3856. <div class="pzNavTop">
  3857. <div>批</div>
  3858. <div>
  3859. {{
  3860. pz.username && pz.username.length > 5
  3861. ? pz.username.substring(0, 5) + "..."
  3862. : pz.username
  3863. }}的批注
  3864. </div>
  3865. <div class="pzDelete" v-if="pz.userid == userid" @click="deletePz(pz.id)">
  3866. 删除
  3867. </div>
  3868. </div>
  3869. <div class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'"></div>
  3870. <div class="pzContent" v-if="pz.type == '2'">
  3871. <audio :src="pz.content" controls="controls" ref="audio">
  3872. Your browser does not support the audio element.
  3873. </audio>
  3874. </div>
  3875. <div class="pzContent" v-if="pz.type == '3'">
  3876. <img :src="pz.content" style="width: 90%; margin: 0 auto; display: block" @click="previewImg(pz.content)" />
  3877. </div>
  3878. <div class="time">
  3879. {{ pz.time }}
  3880. </div>
  3881. </div>
  3882. </div>
  3883. <div class="noPz" v-else>
  3884. <img src="../../assets/icon/noPz.png" alt="" />
  3885. </div>
  3886. <div class="addPzButton">
  3887. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  3888. 添加批注
  3889. </div>
  3890. <!-- <div class="img1">
  3891. <div @click="(addPzDialog = true), (pzType = 2)">
  3892. <img src="../../assets/audio.png" /><span>音频</span>
  3893. </div>
  3894. </div> -->
  3895. </div>
  3896. </div>
  3897. </div>
  3898. <div v-if="addPzDialog == true" class="addDialogCss">
  3899. <div class="pzTop">
  3900. <div class="teacherPz">
  3901. <div class="teacherPzImg">
  3902. <img src="../../assets/icon/teacherPz.png" alt="" />
  3903. </div>
  3904. <div style="margin-left: 10px; height: 25px">教师批注</div>
  3905. </div>
  3906. <div @click="addPzDialog = false">
  3907. <img src="../../assets/close1.png" alt="" />
  3908. </div>
  3909. </div>
  3910. <div class="addPzBox">
  3911. <div class="addPzCheck">
  3912. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1">文本</span>
  3913. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  3914. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2">音频</span>
  3915. </div>
  3916. <div style="height: calc(100% - 95px)">
  3917. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  3918. v-if="pzType == 1"></textarea> -->
  3919. <editor-bar class="binfo_input pzConText" style="width: 100% !important" placeholder="请输入任务描述"
  3920. v-model="pzConText" @change="change" v-if="pzType == 1"></editor-bar>
  3921. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  3922. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  3923. <div @click="addImg($event)">
  3924. <el-button type="primary">上传图片</el-button>
  3925. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  3926. @change="beforeUpload1($event, 4)" />
  3927. </div>
  3928. </div> -->
  3929. </div>
  3930. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  3931. 确定
  3932. </div>
  3933. </div>
  3934. </div>
  3935. <div v-if="proVisible" class="mask">
  3936. <div class="progressBox">
  3937. <!-- <div id="closePro" class="closeCss">
  3938. <img src="../../assets/icon/close.png" alt />
  3939. </div> -->
  3940. <div class="lbox">
  3941. <img src="../../assets/loading.gif" />上传中,请稍后
  3942. </div>
  3943. <div style="margin-bottom: 10px">
  3944. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  3945. </div>
  3946. <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress>
  3947. </div>
  3948. </div>
  3949. <div v-if="proVisible2" class="mask">
  3950. <div class="progressBox">
  3951. <div class="lbox">
  3952. <img src="../../assets/loading.gif" />上传中,请稍后
  3953. </div>
  3954. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  3955. </div>
  3956. </div>
  3957. <el-dialog :visible.sync="pictureDialog" size="tiny">
  3958. <img width="100%" :src="dialogImageUrl" alt />
  3959. </el-dialog>
  3960. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5" :append-to-body="true"
  3961. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3962. <div>
  3963. <div class="a_add_title" style="
  3964. display: flex;
  3965. flex-direction: row;
  3966. align-items: center;
  3967. justify-content: center;
  3968. ">
  3969. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3970. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  3971. </div>
  3972. <div class="a_addBox">
  3973. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3974. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3975. <div class="a_add_head">
  3976. <div style="display: flex">
  3977. {{ index1 + 1 + "、" }}
  3978. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  3979. </div>
  3980. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  3981. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3982. </div>
  3983. <div class="a_add_body">
  3984. <div class="a_add_input">
  3985. <el-radio-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '1' ||
  3986. !askJson.askJson[index1].type
  3987. ">
  3988. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  3989. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  3990. v-html="item2"></span></el-radio>
  3991. </el-radio-group>
  3992. <el-checkbox-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '2'">
  3993. <el-checkbox v-for="(item2, checkIndex1) in askJson.askJson[index1]
  3994. .checkList" :key="checkIndex1" :label="checkIndex1" :disabled="isAnswer" class="redioStyle"><span
  3995. v-html="item2"></span>
  3996. </el-checkbox>
  3997. </el-checkbox-group>
  3998. </div>
  3999. </div>
  4000. </div>
  4001. </div>
  4002. </div>
  4003. <span slot="footer" class="dialog-footer">
  4004. <el-button @click="dialogVisible5 = false" v-show="noteName == ''">取 消</el-button>
  4005. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''">确 定</el-button>
  4006. </span>
  4007. </el-dialog>
  4008. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5Teacher" :append-to-body="true"
  4009. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  4010. <div>
  4011. <div class="w_name">
  4012. 学生姓名:<span>{{ sStudent.student }}</span>
  4013. </div>
  4014. <div class="a_add_title" style="
  4015. display: flex;
  4016. flex-direction: row;
  4017. align-items: center;
  4018. justify-content: center;
  4019. ">
  4020. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  4021. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  4022. </div>
  4023. <div class="a_addBox">
  4024. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  4025. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  4026. <div class="a_add_head">
  4027. <div style="display: flex">
  4028. {{ index1 + 1 + "、" }}
  4029. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  4030. </div>
  4031. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  4032. style="height: 300px; margin-top: 10px; max-width: 100%" />
  4033. </div>
  4034. <div class="a_add_body">
  4035. <div class="a_add_input">
  4036. <el-radio-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '1' ||
  4037. !askJson.askJson[index1].type
  4038. ">
  4039. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  4040. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  4041. v-html="item2"></span></el-radio>
  4042. </el-radio-group>
  4043. <el-checkbox-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '2'">
  4044. <el-checkbox v-for="(item2, checkIndex1) in askJson.askJson[index1]
  4045. .checkList" :key="checkIndex1" :label="checkIndex1" :disabled="isAnswer" class="redioStyle"><span
  4046. v-html="item2"></span>
  4047. </el-checkbox>
  4048. </el-checkbox-group>
  4049. </div>
  4050. </div>
  4051. </div>
  4052. </div>
  4053. </div>
  4054. <span slot="footer" class="dialog-footer">
  4055. <el-button @click="dialogVisible5Teacher = false" v-show="noteName == ''">取 消</el-button>
  4056. <el-button type="primary" @click="addStudentAskTeacher" v-show="noteName == ''">确 定</el-button>
  4057. </span>
  4058. </el-dialog>
  4059. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoice" :append-to-body="true"
  4060. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  4061. <div>
  4062. <div class="a_addBox">
  4063. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  4064. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  4065. <div class="a_add_head">
  4066. <div style="display: flex">
  4067. {{ index1 + 1 + "、" }}
  4068. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px;min-width: 70px;">
  4069. (单选题)
  4070. </div>
  4071. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px;min-width: 70px;">
  4072. (多选题)
  4073. </div>
  4074. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  4075. </div>
  4076. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  4077. style="height: 300px; margin-top: 10px; max-width: 100%" />
  4078. </div>
  4079. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  4080. testJson.testJson[index1].timuList.length
  4081. ">
  4082. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  4083. @click.stop="previewImg(timg.src)">
  4084. <img :src="timg.src" alt="" />
  4085. </div>
  4086. </div>
  4087. <div class="a_add_body">
  4088. <div class="a_add_input">
  4089. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  4090. <div class="radioBox">
  4091. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  4092. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  4093. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  4094. <div class="inImg" @click.stop="previewImg(item2.src)">
  4095. <img :src="item2.src" alt="" />
  4096. </div>
  4097. </div>
  4098. <span v-else v-html="item2"></span>
  4099. </el-radio>
  4100. </div>
  4101. </el-radio-group>
  4102. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  4103. <div class="radioBox">
  4104. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  4105. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  4106. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  4107. <div class="inImg" @click.stop="previewImg(item2.src)">
  4108. <img :src="item2.src" alt="" />
  4109. </div>
  4110. </div>
  4111. <span v-else v-html="item2"></span>
  4112. </el-checkbox>
  4113. </div>
  4114. </el-checkbox-group>
  4115. </div>
  4116. </div>
  4117. </div>
  4118. </div>
  4119. </div>
  4120. <span slot="footer" class="dialog-footer">
  4121. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''">取 消</el-button>
  4122. <el-button type="primary" @click="addStudentTest" v-show="noteName == ''">确 定</el-button>
  4123. </span>
  4124. </el-dialog>
  4125. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoiceTeacher"
  4126. :append-to-body="true" width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  4127. <div>
  4128. <div class="w_name">
  4129. 学生姓名:<span>{{ sStudent.student }}</span>
  4130. </div>
  4131. <div class="a_addBox">
  4132. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  4133. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  4134. <div class="a_add_head">
  4135. <div style="display: flex">
  4136. {{ index1 + 1 + "、" }}
  4137. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px;min-width: 70px;">
  4138. (单选题)
  4139. </div>
  4140. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px;min-width: 70px;">
  4141. (多选题)
  4142. </div>
  4143. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  4144. </div>
  4145. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  4146. style="height: 300px; margin-top: 10px; max-width: 100%" />
  4147. </div>
  4148. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  4149. testJson.testJson[index1].timuList.length
  4150. ">
  4151. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  4152. @click.stop="previewImg(timg.src)">
  4153. <img :src="timg.src" alt="" />
  4154. </div>
  4155. </div>
  4156. <div class="a_add_body">
  4157. <div class="a_add_input">
  4158. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  4159. <div class="radioBox">
  4160. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  4161. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  4162. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  4163. <div class="inImg" @click.stop="previewImg(item2.src)">
  4164. <img :src="item2.src" alt="" />
  4165. </div>
  4166. </div>
  4167. <span v-else v-html="item2"></span>
  4168. </el-radio>
  4169. </div>
  4170. </el-radio-group>
  4171. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  4172. <div class="radioBox">
  4173. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  4174. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  4175. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  4176. <div class="inImg" @click.stop="previewImg(item2.src)">
  4177. <img :src="item2.src" alt="" />
  4178. </div>
  4179. </div>
  4180. <span v-else v-html="item2"></span>
  4181. </el-checkbox>
  4182. </div>
  4183. </el-checkbox-group>
  4184. </div>
  4185. </div>
  4186. </div>
  4187. </div>
  4188. </div>
  4189. <span slot="footer" class="dialog-footer">
  4190. <el-button @click="dialogVisibleChoiceTeacher = false" v-show="noteName == ''">取 消</el-button>
  4191. <el-button type="primary" @click="addStudentTestTeacher" v-show="noteName == ''">确 定</el-button>
  4192. </span>
  4193. </el-dialog>
  4194. <el-dialog title="查看富文本" :visible.sync="dialogVisible1" :append-to-body="true" width="500px"
  4195. :before-close="handleClose" class="dialog_diy textCss">
  4196. <el-form style="font-size: 20px">
  4197. <el-form-item label="文本标题" class="textTitle">
  4198. <div style="font-size: 20px">{{ text.name }}</div>
  4199. </el-form-item>
  4200. <div>富文本内容</div>
  4201. <div v-html="text.url" style="font-size: 18px; padding: 40px 0 0 0"></div>
  4202. </el-form>
  4203. <span slot="footer" class="dialog-footer">
  4204. <el-button type="primary" @click="dialogVisible1 = false">确定</el-button>
  4205. </span>
  4206. </el-dialog>
  4207. <el-dialog title="文件预览" :visible.sync="dialogVisible3" width="50%" :before-close="handleClose" class="dialog_diy"
  4208. :class="{ fullStyle: full }">
  4209. <div slot="title" class="header-title">
  4210. <div style="color: #fff">文件预览</div>
  4211. <div style="position: absolute; top: 19px; right: 50px">
  4212. <img src="../../assets/full.png" style="height: 16px; cursor: pointer" alt="" @click="fullTools" />
  4213. </div>
  4214. </div>
  4215. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  4216. :class="{ fullStyle: full }"></pdf>
  4217. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  4218. </el-dialog>
  4219. <el-dialog title="文件预览" :visible.sync="dialogVisible6" width="50%" :before-close="handleClose" class="dialog_diy">
  4220. <iframe :src="pptImgUrl1" frameborder="0" width="100%" height="600"></iframe>
  4221. </el-dialog>
  4222. <el-dialog title="提示" :visible.sync="dialogVisible4" :append-to-body="true" width="800px" :before-close="handleClose"
  4223. class="dialog_diy notice">
  4224. <div>此功能暂未开放!</div>
  4225. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  4226. </el-dialog>
  4227. <el-dialog title="问答" :visible.sync="answerDialogVisible" :append-to-body="true" width="800px"
  4228. :before-close="handleClose" class="dialog_diy">
  4229. <div>
  4230. <div style="
  4231. display: flex;
  4232. flex-wrap: nowrap;
  4233. flex-direction: column;
  4234. position: relative;
  4235. ">
  4236. <div class="queTop" style="padding: 20px 0 20px 0">
  4237. <div class="question">
  4238. <img src="../../assets/icon/question.png" alt />
  4239. </div>
  4240. <div class="queTitle">
  4241. <div style="width: 90px; min-width: 90px">提问:</div>
  4242. <div>{{ answerQ }}</div>
  4243. </div>
  4244. </div>
  4245. <div class="ediBottom">
  4246. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  4247. v-model="questionAnswer"></textarea>
  4248. </div>
  4249. </div>
  4250. </div>
  4251. <div slot="footer">
  4252. <el-button @click="answerDialogVisible = false">取 消</el-button>
  4253. <el-button type="primary" @click="addQuestion">提 交</el-button>
  4254. </div>
  4255. </el-dialog>
  4256. <el-dialog title="倒计时" :visible.sync="timeDialogVisible" :append-to-body="true" width="800px"
  4257. :before-close="handleClose" class="dialog_diy">
  4258. <div>
  4259. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  4260. </div>
  4261. <div slot="footer">
  4262. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  4263. </div>
  4264. </el-dialog>
  4265. <el-dialog title="权限设置" :visible.sync="juriVisible" :append-to-body="true" width="400px" :before-close="handleClose"
  4266. class="dialog_diy">
  4267. <div>
  4268. <div class="open_box">
  4269. <div class="switch_box">
  4270. <span>允许学生查看所有作业</span>
  4271. <el-switch v-model="sIsOpen" active-text="" class="switchCss" @change="updateSLook"></el-switch>
  4272. </div>
  4273. <div class="switch_box" v-if="courseDetail.userid == userid ||
  4274. (courseDetail.course_teacher &&
  4275. courseDetail.course_teacher.indexOf(userid) != -1)
  4276. ">
  4277. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  4278. <span>禁止学生查看所有阶段</span>
  4279. <el-switch v-model="IsLookOpen" active-text="" class="switchCss" @change="updateLookOpen"></el-switch>
  4280. </div>
  4281. <div class="switch_box" v-if="courseDetail.userid == userid">
  4282. <span>开启跟随模式</span>
  4283. <el-switch v-model="IsFollow" active-text="" class="switchCss" @change="updateFollow"></el-switch>
  4284. </div>
  4285. </div>
  4286. </div>
  4287. <div slot="footer">
  4288. <el-button style="background: #409efe; color: #fff" @click="juriVisible = false">关 闭</el-button>
  4289. </div>
  4290. </el-dialog>
  4291. <el-dialog title="查看视频" :visible.sync="videoVisible" :append-to-body="true" width="1000px" :before-close="handleClose"
  4292. class="dialog_diy1">
  4293. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  4294. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  4295. @play="onPlayerPlay($event)" style="width: 100%; height: 100%"></video-player>
  4296. </div>
  4297. <div slot="footer">
  4298. <el-button style="background: #409efe; color: #fff"
  4299. @click="(videoVisible = false), (videoDetail.sources[0].src = '')">
  4300. 关 闭</el-button>
  4301. </div>
  4302. </el-dialog>
  4303. <el-dialog title="查看详情" :visible.sync="commentDialogVisible" :append-to-body="true" width="800px"
  4304. :before-close="handleClose" class="dialog_diy">
  4305. <div class="commentTop">
  4306. <div class="studentDetail">
  4307. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  4308. <div class="nameAndTime">
  4309. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  4310. <div>{{ commentDetail.time }}</div>
  4311. </div>
  4312. <div class="returnBtn" style="margin-left: auto; width: 80px" v-if="commentDetail.works &&
  4313. commentDetail.type == 0 &&
  4314. (tType == 1 || tType == 4)
  4315. " @click="showPicturePaint(
  4316. commentDetail.img ? commentDetail.img : commentDetail.works
  4317. )
  4318. ">
  4319. 教师批注
  4320. </div>
  4321. </div>
  4322. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  4323. {{ JSON.parse(commentDetail.works)[0].answer }}
  4324. </div>
  4325. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  4326. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  4327. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  4328. :class="{ fullStyle: full }"></pdf>
  4329. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  4330. </div>
  4331. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  4332. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" style="right: 105px" />
  4333. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  4334. </div>
  4335. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  4336. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  4337. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  4338. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  4339. </div>
  4340. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 10">
  4341. <div class="cont" v-html="commentDetail.works.text"></div>
  4342. </div>
  4343. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  4344. @click="downloadFile(commentDetail.works)">
  4345. <img src="../../assets/icon/codeFile.png" />
  4346. <div>点击下载文件</div>
  4347. </div>
  4348. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  4349. <div v-html="JSON.parse(commentDetail.works).text"></div>
  4350. </div>
  4351. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 4">
  4352. <div class="evalCss">
  4353. <div class="nav">请选择星星进行评分</div>
  4354. <div class="middleBox" v-if="eScore.eStar">
  4355. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  4356. <div class="nameAndrate">
  4357. <div>{{ e.value }}</div>
  4358. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  4359. </div>
  4360. <div v-if="e.detail">{{ e.detail }}</div>
  4361. </div>
  4362. <div class="bz">
  4363. <textarea disabled rows="4" class="pj" style="
  4364. padding: 10px 5px;
  4365. width: 70%;
  4366. background: #f7f6f9;
  4367. font-size: 14px;
  4368. text-indent: 10px;
  4369. color: #000;
  4370. " cols v-model="eScore.eBzText"
  4371. placeholder="请输入评价内容..."></textarea>
  4372. </div>
  4373. </div>
  4374. </div>
  4375. </div>
  4376. <div class="comment">
  4377. <div class="commentList">
  4378. <div class="commentImg">
  4379. <img @click="isLikes(
  4380. commentDetail.wid,
  4381. userid,
  4382. 1,
  4383. null,
  4384. commentDetail.isLikes
  4385. )
  4386. " :src="commentDetail.isLikes == true ? likes : noLikes" alt="" />
  4387. </div>
  4388. <div>{{ commentDetail.likesCount }}</div>
  4389. </div>
  4390. <div class="commentList">
  4391. <div class="commentImg">
  4392. <img src="../../assets/icon/comment/comment.png" alt="" />
  4393. </div>
  4394. <div>{{ commentDetail.commentCount }}</div>
  4395. </div>
  4396. </div>
  4397. <div class="drawPBox" v-if="commentDetail.img">
  4398. <span>教师批注</span>
  4399. <img :src="commentDetail.img" alt="" @click="previewImg(commentDetail.img)" />
  4400. <span class="deleteImg" v-if="tType == 1 || tType == 4" @click.stop="deletePicturePaint(commentDetail.wid)"
  4401. style="
  4402. font-size: 14px;
  4403. width: auto !important;
  4404. color: #b4b4b4;
  4405. top: unset;
  4406. bottom: 0;
  4407. border: none;
  4408. padding: 0;
  4409. height: auto !important;
  4410. margin: 0;
  4411. ">删除</span>
  4412. </div>
  4413. </div>
  4414. <div class="commentBox">
  4415. <div class="pl">评论:</div>
  4416. <div style="max-height: 200px; overflow: auto">
  4417. <div v-if="commentDetail.commentJson && commentDetail.commentJson.length" style="padding: 10px 0 0 0">
  4418. <div class="studentDetail" style="padding-top: 10px" v-for="(co, coIndex) in commentDetail.commentJson"
  4419. :key="coIndex">
  4420. <div class="tx" style="min-width: 50px">
  4421. <img src="../../assets/avatar.png" alt="" />
  4422. </div>
  4423. <div class="plPerson">
  4424. <div class="plName">
  4425. <div>{{ co.commentPeople }}</div>
  4426. <div style="margin-left: 5px">
  4427. {{ co.commentTime }}
  4428. </div>
  4429. <div class="deleteComment" v-if="userid == co.userid" @click="deleteComment(co.wid)">删除</div>
  4430. </div>
  4431. <div class="plContent">{{ co.commentText }}</div>
  4432. </div>
  4433. </div>
  4434. </div>
  4435. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  4436. </div>
  4437. </div>
  4438. <div style="margin-top: 10px">
  4439. <div class="displayBox">
  4440. <div style="
  4441. color: #556db4;
  4442. font-size: 14px;
  4443. font-weight: bold;
  4444. padding-bottom: 10px;
  4445. ">
  4446. 评价
  4447. </div>
  4448. <div class="easy_comment" v-if="false">
  4449. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 1)">
  4450. {{ p }}
  4451. </div>
  4452. </div>
  4453. </div>
  4454. <div>
  4455. <textarea rows="3" class="pj" style="padding: 10px 5px" cols v-model="commentText"
  4456. placeholder="请输入对该学生的评价"></textarea>
  4457. </div>
  4458. </div>
  4459. <div slot="footer">
  4460. <el-button @click="(commentDialogVisible = false),
  4461. (commentIndexJson = {}),
  4462. videoDetail.sources && videoDetail.sources[0]
  4463. ? (videoDetail.sources[0].src = '')
  4464. : ''
  4465. ">取 消</el-button>
  4466. <el-button type="primary" @click="addComment(commentDetail.wid, userid, 2)">确 定</el-button>
  4467. </div>
  4468. </el-dialog>
  4469. <el-dialog title="查看文档" :visible.sync="fullDialogVisible" :append-to-body="true" width="100%"
  4470. :before-close="handleClose" :show-close="false" class="dialog_diy full_diy" :class="{ full_diy2: fulltype == 3 }">
  4471. <div slot="title" class="header-title">
  4472. <div style="color: #fff">查看文档</div>
  4473. <div @click="fullDialogVisible = false" style="
  4474. cursor: pointer;
  4475. position: absolute;
  4476. top: 20px;
  4477. right: 20px;
  4478. color: #fff;
  4479. ">
  4480. 退出全屏
  4481. </div>
  4482. </div>
  4483. <div style="height: 100%">
  4484. <div class="wheel"
  4485. v-if="fullUrl.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') != -1 && fulltype == 2"
  4486. style="width: 95%; margin: 0 auto">
  4487. <iframe style="width: 100%; height: 100%; border: none" :src="fullUrl"></iframe>
  4488. </div>
  4489. <iframe v-else-if="fulltype == 2" style="width: 100%; height: 100%; border: none" :src="fullUrl"
  4490. security="restricted"
  4491. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"></iframe>
  4492. <pdf v-else-if="fulltype == 3" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto"></pdf>
  4493. <div class="wheel" v-if="fulltype == 1" style="
  4494. box-shadow: 0 0 6px 1px #f2f2f2;
  4495. width: 100%;
  4496. background: #f1f1f1;
  4497. ">
  4498. <div class="title" style="width: 100%; box-sizing: border-box">
  4499. 查看文档
  4500. </div>
  4501. <el-form class="textBox" style="height: 90%">
  4502. <el-form-item class="textTitle">
  4503. <div style="font-size: 22px">
  4504. {{ fullUrl.name }}
  4505. </div>
  4506. </el-form-item>
  4507. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  4508. <div v-html="fullUrl.url" class="textContent" style="height: auto"></div>
  4509. </el-form>
  4510. </div>
  4511. </div>
  4512. <!-- <div slot="footer">
  4513. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  4514. </div> -->
  4515. </el-dialog>
  4516. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisible" :append-to-body="true" width="800px"
  4517. :before-close="handleClose" class="dialog_diy">
  4518. <div class="evalCss">
  4519. <div class="nav">请选择星星进行评分</div>
  4520. <div class="middleBox" v-if="eScore.eStar">
  4521. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  4522. <div class="nameAndrate">
  4523. <div>{{ e.value }}</div>
  4524. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  4525. </div>
  4526. <div v-if="e.detail">{{ e.detail }}</div>
  4527. </div>
  4528. <div class="easy_comment" v-if="false">
  4529. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  4530. {{ p }}
  4531. </div>
  4532. </div>
  4533. <div class="bz">
  4534. <textarea :disabled="isStar" rows="4" class="pj" style="
  4535. padding: 10px 5px;
  4536. width: 70%;
  4537. background: #f7f6f9;
  4538. font-size: 14px;
  4539. text-indent: 10px;
  4540. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  4541. </div>
  4542. </div>
  4543. </div>
  4544. <div slot="footer">
  4545. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  4546. <el-button type="primary" @click="addBzWorks" v-if="!isStar">确 定</el-button>
  4547. </div>
  4548. </el-dialog>
  4549. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisibleTeacher" :append-to-body="true" width="800px"
  4550. :before-close="handleClose" class="dialog_diy">
  4551. <div class="w_name">
  4552. 学生姓名:<span>{{ sStudent.student }}</span>
  4553. </div>
  4554. <div class="evalCss">
  4555. <div class="nav">请选择星星进行评分</div>
  4556. <div class="middleBox" v-if="eScore.eStar">
  4557. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  4558. <div class="nameAndrate">
  4559. <div>{{ e.value }}</div>
  4560. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  4561. </div>
  4562. <div v-if="e.detail">{{ e.detail }}</div>
  4563. </div>
  4564. <div class="easy_comment" v-if="false">
  4565. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  4566. {{ p }}
  4567. </div>
  4568. </div>
  4569. <div class="bz">
  4570. <textarea :disabled="isStar" rows="4" class="pj" style="
  4571. padding: 10px 5px;
  4572. width: 70%;
  4573. background: #f7f6f9;
  4574. font-size: 14px;
  4575. text-indent: 10px;
  4576. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  4577. </div>
  4578. </div>
  4579. </div>
  4580. <div slot="footer">
  4581. <el-button @click="studentEvalDialogVisibleTeacher = false">取 消</el-button>
  4582. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar">确 定</el-button>
  4583. </div>
  4584. </el-dialog>
  4585. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="90%"
  4586. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4587. <div v-if="selectJson">
  4588. <div class="select_box2">
  4589. <div class="select_box2_title">
  4590. <div>选择填空</div>
  4591. <div>请选择对应的答案进行答题!</div>
  4592. </div>
  4593. <div class="select_box2_box">
  4594. <div class="select_box2_img">
  4595. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  4596. </div>
  4597. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  4598. <div style="padding-top: 15px">
  4599. <div class="select_answer_title" v-if="isSelect">
  4600. {{ selectAnswer.stu }}
  4601. </div>
  4602. <div class="select_answer_title" v-else>
  4603. 根据题目选择对应答案
  4604. </div>
  4605. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4606. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  4607. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  4608. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4609. </el-option>
  4610. </el-select>
  4611. </div>
  4612. </div>
  4613. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  4614. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  4615. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  4616. 回答正确
  4617. </div>
  4618. <div v-else>回答错误</div>
  4619. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  4620. 正确答案:
  4621. </div>
  4622. <div :class="selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  4623. ">
  4624. {{ selectJson.select[a] }}
  4625. </div>
  4626. </div>
  4627. </div>
  4628. </div>
  4629. <div class="upAnswerCss">
  4630. <el-button type="primary" @click="addSelectAnswer" v-if="!isSelect">提交答案</el-button>
  4631. </div>
  4632. </div>
  4633. </div>
  4634. </div>
  4635. </el-dialog>
  4636. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelectTeacher" :append-to-body="true" width="90%"
  4637. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4638. <div v-if="selectJson">
  4639. <div class="w_name">
  4640. 学生姓名:<span>{{ sStudent.student }}</span>
  4641. </div>
  4642. <div class="select_box2">
  4643. <div class="select_box2_title">
  4644. <div>选择填空</div>
  4645. <div>请选择对应的答案进行答题!</div>
  4646. </div>
  4647. <div class="select_box2_box">
  4648. <div class="select_box2_img">
  4649. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  4650. </div>
  4651. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  4652. <div style="padding-top: 15px">
  4653. <div class="select_answer_title" v-if="isSelect">
  4654. {{ selectAnswer.stu }}
  4655. </div>
  4656. <div class="select_answer_title" v-else>
  4657. 根据题目选择对应答案
  4658. </div>
  4659. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4660. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  4661. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  4662. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4663. </el-option>
  4664. </el-select>
  4665. </div>
  4666. </div>
  4667. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  4668. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  4669. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  4670. 回答正确
  4671. </div>
  4672. <div v-else>回答错误</div>
  4673. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  4674. 正确答案:
  4675. </div>
  4676. <div :class="selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  4677. ">
  4678. {{ selectJson.select[a] }}
  4679. </div>
  4680. </div>
  4681. </div>
  4682. </div>
  4683. <div class="upAnswerCss">
  4684. <el-button type="primary" @click="addSelectAnswerTeacher" v-if="!isSelect">提交答案</el-button>
  4685. </div>
  4686. </div>
  4687. </div>
  4688. </div>
  4689. </el-dialog>
  4690. <el-dialog title="教师评分" :visible.sync="dialogVisibleScore" :append-to-body="true" width="800px"
  4691. :before-close="handleClose" class="dialog_diy">
  4692. <div>
  4693. <div class="studentDetail">
  4694. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  4695. <div class="nameAndTime">
  4696. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  4697. <div>{{ commentDetail.time }}</div>
  4698. </div>
  4699. </div>
  4700. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  4701. {{ JSON.parse(commentDetail.works)[0].answer }}
  4702. </div>
  4703. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  4704. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  4705. :class="{ fullStyle: full }"></pdf>
  4706. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  4707. </div>
  4708. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  4709. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  4710. </div>
  4711. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  4712. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  4713. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  4714. </div>
  4715. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  4716. @click="downloadFile(commentDetail.works)">
  4717. <img src="../../assets/icon/codeFile.png" />
  4718. <div>点击下载文件</div>
  4719. </div>
  4720. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  4721. <div v-html="JSON.parse(commentDetail.works).text"></div>
  4722. </div>
  4723. <div class="scoreBox">
  4724. <span class="t">请输入分数</span>
  4725. <el-input-number :disabled="courseDetail.userid != userid" v-model="wScore" :controls="false" :min="0"
  4726. :max="100"></el-input-number>
  4727. </div>
  4728. <div class="scoreDetailBox">
  4729. <span class="t">评分评论</span>
  4730. <el-input type="textarea" :rows="5" :disabled="courseDetail.userid != userid" resize="none"
  4731. v-model="scoreDetail" placeholder="请输入对学生的评价">
  4732. </el-input>
  4733. </div>
  4734. </div>
  4735. <span slot="footer" class="dialog-footer">
  4736. <el-button @click="(dialogVisibleScore = false),
  4737. (commentIndexJson = {}),
  4738. videoDetail.sources && videoDetail.sources[0]
  4739. ? (videoDetail.sources[0].src = '')
  4740. : ''
  4741. ">取 消</el-button>
  4742. <el-button type="primary" v-if="courseDetail.userid == userid" @click="scoreWork(commentDetail.wid)">确 定
  4743. </el-button>
  4744. </span>
  4745. </el-dialog>
  4746. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  4747. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4748. <div>
  4749. <div class="sentenBox">
  4750. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  4751. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  4752. <div class="cardList" v-if="st.chooseSenList">
  4753. <div class="cardBox">
  4754. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  4755. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  4756. <div :class="{
  4757. isCard: r,
  4758. isChooseCard: r == '' || r == undefined,
  4759. }">
  4760. <div>{{ r }}</div>
  4761. </div>
  4762. </el-tooltip>
  4763. <div :class="{
  4764. isCard: r,
  4765. isChooseCard: r == '' || r == undefined,
  4766. }" v-else>
  4767. <div>{{ r }}</div>
  4768. </div>
  4769. </div>
  4770. </div>
  4771. </div>
  4772. <div class="cardList" v-if="st.addChangeSen">
  4773. <div class="cardBox">
  4774. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  4775. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  4776. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  4777. <div>{{ s }}</div>
  4778. </div>
  4779. </el-tooltip>
  4780. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  4781. <div>{{ s }}</div>
  4782. </div>
  4783. </div>
  4784. </div>
  4785. </div>
  4786. </div>
  4787. </div>
  4788. </div>
  4789. <span slot="footer" class="dialog-footer">
  4790. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  4791. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  4792. </span>
  4793. </el-dialog>
  4794. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentenceTeacher" :append-to-body="true" width="1000px"
  4795. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4796. <div>
  4797. <div class="w_name">
  4798. 学生姓名:<span>{{ sStudent.student }}</span>
  4799. </div>
  4800. <div class="sentenBox">
  4801. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  4802. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  4803. <div class="cardList" v-if="st.chooseSenList">
  4804. <div class="cardBox">
  4805. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  4806. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  4807. <div :class="{
  4808. isCard: r,
  4809. isChooseCard: r == '' || r == undefined,
  4810. }">
  4811. <div>{{ r }}</div>
  4812. </div>
  4813. </el-tooltip>
  4814. <div :class="{
  4815. isCard: r,
  4816. isChooseCard: r == '' || r == undefined,
  4817. }" v-else>
  4818. <div>{{ r }}</div>
  4819. </div>
  4820. </div>
  4821. </div>
  4822. </div>
  4823. <div class="cardList" v-if="st.addChangeSen">
  4824. <div class="cardBox">
  4825. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  4826. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  4827. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  4828. <div>{{ s }}</div>
  4829. </div>
  4830. </el-tooltip>
  4831. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  4832. <div>{{ s }}</div>
  4833. </div>
  4834. </div>
  4835. </div>
  4836. </div>
  4837. </div>
  4838. </div>
  4839. </div>
  4840. <span slot="footer" class="dialog-footer">
  4841. <el-button @click="dialogVisibleSentenceTeacher = false">取 消</el-button>
  4842. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  4843. </span>
  4844. </el-dialog>
  4845. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence1" :append-to-body="true" width="1000px"
  4846. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4847. <div>
  4848. <div class="sentenBox">
  4849. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  4850. {{ sentenceList1.stuName }}的作业
  4851. </div>
  4852. <div v-for="(st, stIndex) in sentenceList1" :key="stIndex" style="padding-bottom: 20px">
  4853. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  4854. 第{{ stIndex + 1 }}题
  4855. </div>
  4856. <div class="isWrong">
  4857. <div class="cardList1" v-if="st.chooseSenList">
  4858. <div class="cardBox">
  4859. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  4860. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4861. <div class="isCard">
  4862. <div>{{ s }}</div>
  4863. </div>
  4864. </el-tooltip>
  4865. </div>
  4866. </div>
  4867. <div class="cardAnswerBox">
  4868. 组成句子:{{ st.chooseSenList.join(" ") }}
  4869. </div>
  4870. </div>
  4871. <div class="answerRight isTj" v-if="st.chooseSenList.toString() == st.rightAnswer.toString() &&
  4872. (tType == 1 || tType == 4)
  4873. ">
  4874. <div class="isTjImg">
  4875. <img src="../../assets/icon/conSentences/right.png" alt="" />
  4876. </div>
  4877. <div>回答正确</div>
  4878. </div>
  4879. <div class="answerRight isTj" v-if="st.chooseSenList.toString() != st.rightAnswer.toString() &&
  4880. (tType == 1 || tType == 4)
  4881. ">
  4882. <div class="isTjImg">
  4883. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  4884. </div>
  4885. <div>回答错误</div>
  4886. </div>
  4887. </div>
  4888. <div v-if="st.chooseSenList.toString() != st.rightAnswer.toString() &&
  4889. (tType == 1 || tType == 4)
  4890. ">
  4891. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  4892. <div class="cardList" v-if="st.rightAnswer" style="border: none; padding: 10px 0 10px 10px; margin: 0">
  4893. <div class="cardBox">
  4894. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  4895. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4896. <div class="isCard1">
  4897. <div>{{ r }}</div>
  4898. </div>
  4899. </el-tooltip>
  4900. </div>
  4901. </div>
  4902. <div class="cardAnswerBox">
  4903. 组成句子:{{ st.rightAnswer.join(" ") }}
  4904. </div>
  4905. </div>
  4906. </div>
  4907. </div>
  4908. </div>
  4909. </div>
  4910. <span slot="footer" class="dialog-footer">
  4911. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  4912. <el-button type="primary" @click="dialogVisibleSentence1 = false">确 定</el-button>
  4913. </span>
  4914. </el-dialog>
  4915. <el-dialog title="提交作业" :visible.sync="dialogVisibleWorks" :append-to-body="true" width="500px"
  4916. :before-close="handleClose" class="dialog_change">
  4917. <div class="marginT">
  4918. <div class="w_name">
  4919. 学生姓名:<span>{{ sStudent.student }}</span>
  4920. </div>
  4921. <div>上传文件</div>
  4922. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  4923. <div class="up_photo">
  4924. <img src="../../assets/uploadImg2.png" alt />
  4925. </div>
  4926. <!-- <input
  4927. type="file"
  4928. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  4929. style="display: none"
  4930. @change="beforeUpload1($event, 1)"
  4931. /> -->
  4932. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  4933. </div>
  4934. <!-- capture="camera" -->
  4935. <div class="chapter_add" style="
  4936. display: flex;
  4937. width: 100%;
  4938. flex-direction: row;
  4939. flex-wrap: wrap;
  4940. justify-content: flex-start;
  4941. padding: 15px 0;
  4942. " v-if="studyJuri[0].cover.length > 0">
  4943. <div class="upCover">
  4944. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  4945. <img :src="word" alt v-else-if="fileType == 1" />
  4946. <img :src="video" alt v-else-if="fileType == 2" />
  4947. <img :src="word2" alt v-else-if="fileType == 3" />
  4948. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  4949. <div class="deleteWord" @click="clean(1)">
  4950. <img src="../../assets/icon/deleteWorks.png" alt />
  4951. </div>
  4952. </div>
  4953. </div>
  4954. </div>
  4955. <div class="upload_send" @click="addCourseWorksTeacher(taskCount)" v-if="!proVisible">
  4956. 提交
  4957. </div>
  4958. </el-dialog>
  4959. <el-dialog title="问答" :visible.sync="answerDialogVisibleTeacher" :append-to-body="true" width="800px"
  4960. :before-close="handleClose" class="dialog_diy">
  4961. <div>
  4962. <div class="w_name">
  4963. 学生姓名:<span>{{ sStudent.student }}</span>
  4964. </div>
  4965. <div style="
  4966. display: flex;
  4967. flex-wrap: nowrap;
  4968. flex-direction: column;
  4969. position: relative;
  4970. ">
  4971. <div class="queTop" style="padding: 20px 0 20px 0">
  4972. <div class="question">
  4973. <img src="../../assets/icon/question.png" alt />
  4974. </div>
  4975. <div class="queTitle">
  4976. <div style="width: 90px; min-width: 90px">提问:</div>
  4977. <div>{{ answerQ }}</div>
  4978. </div>
  4979. </div>
  4980. <div class="ediBottom">
  4981. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  4982. v-model="questionAnswer"></textarea>
  4983. </div>
  4984. </div>
  4985. </div>
  4986. <div slot="footer">
  4987. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  4988. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  4989. </div>
  4990. </el-dialog>
  4991. <ImgDraw :drawShow="drawShow" @closeDraw="closeDraw" @addImgDraw="addImgDraw" :bg="bg"></ImgDraw>
  4992. <el-dialog title="表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4993. :before-close="handleClose" class="dialog_diy">
  4994. <el-form>
  4995. <div>表格内容</div>
  4996. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTable"></Table>
  4997. </el-form>
  4998. <span slot="footer" class="dialog-footer">
  4999. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  5000. <el-button type="primary" @click="addTableWorks">确定</el-button>
  5001. </span>
  5002. </el-dialog>
  5003. <el-dialog title="表格" :visible.sync="dialogVisibleTableTeacher" :append-to-body="true" width="95%"
  5004. :before-close="handleClose" class="dialog_diy">
  5005. <el-form>
  5006. <div class="w_name">
  5007. 学生姓名:<span>{{ sStudent.student }}</span>
  5008. </div>
  5009. <div>表格内容</div>
  5010. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTableTeacher"></Table>
  5011. </el-form>
  5012. <span slot="footer" class="dialog-footer">
  5013. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  5014. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  5015. </span>
  5016. </el-dialog>
  5017. <el-dialog title="文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="95%" :before-close="handleClose"
  5018. class="dialog_diy">
  5019. <el-form>
  5020. <div>文档内容</div>
  5021. <editor-bar v-model="wordJson.text" v-if="dialogVisibleWord"></editor-bar>
  5022. </el-form>
  5023. <span slot="footer" class="dialog-footer">
  5024. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  5025. <el-button type="primary" @click="addWordWorks">确定</el-button>
  5026. </span>
  5027. </el-dialog>
  5028. <el-dialog title="文档" :visible.sync="dialogVisibleWordTeacher" :append-to-body="true" width="95%"
  5029. :before-close="handleClose" class="dialog_diy">
  5030. <el-form>
  5031. <div class="w_name">
  5032. 学生姓名:<span>{{ sStudent.student }}</span>
  5033. </div>
  5034. <div>文档内容</div>
  5035. <editor-bar v-model="wordJson.text" v-if="dialogVisibleWordTeacher"></editor-bar>
  5036. </el-form>
  5037. <span slot="footer" class="dialog-footer">
  5038. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  5039. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  5040. </span>
  5041. </el-dialog>
  5042. <el-dialog title="表格" :visible.sync="dialogVisibleTable2" :append-to-body="true" width="95%"
  5043. :before-close="handleClose" class="dialog_diy">
  5044. <el-form>
  5045. <div class="cont" v-html="tableJson.text"></div>
  5046. </el-form>
  5047. <span slot="footer" class="dialog-footer">
  5048. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  5049. </span>
  5050. </el-dialog>
  5051. <el-dialog title="文档" :visible.sync="dialogVisibleTable3" :append-to-body="true" width="95%"
  5052. :before-close="handleClose" class="dialog_diy">
  5053. <el-form>
  5054. <div class="cont" v-html="tableJson.text"></div>
  5055. </el-form>
  5056. <span slot="footer" class="dialog-footer">
  5057. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  5058. </span>
  5059. </el-dialog>
  5060. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="95%"
  5061. :before-close="handleClose" class="dialog_diy">
  5062. <div v-if="dialogVisibleGroup">
  5063. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  5064. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  5065. 提示:需要锁定位置,才能点击头像修改座位。
  5066. </div>
  5067. <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  5068. @click="lockChair">
  5069. 锁定位置
  5070. </div>
  5071. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  5072. 解锁位置
  5073. </div>
  5074. <div type="primary" @click="updateGroup" class="returnBtn" style="background-color: #225bc7">
  5075. 分组设置
  5076. </div>
  5077. </div>
  5078. <div>
  5079. <div class="g_d_box" v-if="groupJson.group && groupStudent[toolindex]">
  5080. <div class="g_d_group" v-for="(g, gindex) in groupJson.group" :key="gindex">
  5081. <div class="g_d_group_chair">
  5082. <div v-if="groupJson.number > 1">
  5083. <span :class="{
  5084. isChair:
  5085. groupStudent[toolindex][gindex] &&
  5086. groupStudent[toolindex][gindex][0],
  5087. updateChair:
  5088. courseDetail.userid == userid &&
  5089. groupStudent[toolindex][gindex] &&
  5090. groupStudent[toolindex][gindex][0] &&
  5091. groupJson.islock == 2,
  5092. }"><span class="updateChairBtn" @click="updateGroupChair(
  5093. groupStudent[toolindex][gindex] &&
  5094. groupStudent[toolindex][gindex][0]
  5095. )
  5096. ">修改</span></span><span>{{
  5097. groupStudent[toolindex][gindex] &&
  5098. groupStudent[toolindex][gindex][0]
  5099. ? groupStudent[toolindex][gindex] &&
  5100. groupStudent[toolindex][gindex][0].name
  5101. : "空位置"
  5102. }}</span>
  5103. </div>
  5104. <div v-if="groupJson.number > 4">
  5105. <span :class="{
  5106. isChair:
  5107. groupStudent[toolindex][gindex] &&
  5108. groupStudent[toolindex][gindex][4],
  5109. updateChair:
  5110. courseDetail.userid == userid &&
  5111. groupStudent[toolindex][gindex] &&
  5112. groupStudent[toolindex][gindex][4] &&
  5113. groupJson.islock == 2,
  5114. }"><span class="updateChairBtn" @click="updateGroupChair(
  5115. groupStudent[toolindex][gindex] &&
  5116. groupStudent[toolindex][gindex][4]
  5117. )
  5118. ">修改</span></span><span>{{
  5119. groupStudent[toolindex][gindex] &&
  5120. groupStudent[toolindex][gindex][4]
  5121. ? groupStudent[toolindex][gindex] &&
  5122. groupStudent[toolindex][gindex][4].name
  5123. : "空位置"
  5124. }}</span>
  5125. </div>
  5126. <div v-if="groupJson.number > 8">
  5127. <span :class="{
  5128. isChair:
  5129. groupStudent[toolindex][gindex] &&
  5130. groupStudent[toolindex][gindex][8],
  5131. updateChair:
  5132. courseDetail.userid == userid &&
  5133. groupStudent[toolindex][gindex] &&
  5134. groupStudent[toolindex][gindex][8] &&
  5135. groupJson.islock == 2,
  5136. }"><span class="updateChairBtn" @click="updateGroupChair(
  5137. groupStudent[toolindex][gindex] &&
  5138. groupStudent[toolindex][gindex][8]
  5139. )
  5140. ">修改</span></span><span>{{
  5141. groupStudent[toolindex][gindex] &&
  5142. groupStudent[toolindex][gindex][8]
  5143. ? groupStudent[toolindex][gindex] &&
  5144. groupStudent[toolindex][gindex][8].name
  5145. : "空位置"
  5146. }}</span>
  5147. </div>
  5148. </div>
  5149. <div class="g_d_group_tableBox">
  5150. <div class="g_d_group_chair2">
  5151. <div v-if="groupJson.number > 2">
  5152. <span :class="{
  5153. isChair:
  5154. groupStudent[toolindex][gindex] &&
  5155. groupStudent[toolindex][gindex][2],
  5156. updateChair:
  5157. courseDetail.userid == userid &&
  5158. groupStudent[toolindex][gindex] &&
  5159. groupStudent[toolindex][gindex][2] &&
  5160. groupJson.islock == 2,
  5161. }"><span class="updateChairBtn" @click="updateGroupChair(
  5162. groupStudent[toolindex][gindex] &&
  5163. groupStudent[toolindex][gindex][2]
  5164. )
  5165. ">修改</span></span><span>{{
  5166. groupStudent[toolindex][gindex] &&
  5167. groupStudent[toolindex][gindex][2]
  5168. ? groupStudent[toolindex][gindex] &&
  5169. groupStudent[toolindex][gindex][2].name
  5170. : "空位置"
  5171. }}</span>
  5172. </div>
  5173. <div v-if="groupJson.number > 6">
  5174. <span :class="{
  5175. isChair:
  5176. groupStudent[toolindex][gindex] &&
  5177. groupStudent[toolindex][gindex][6],
  5178. updateChair:
  5179. courseDetail.userid == userid &&
  5180. groupStudent[toolindex][gindex] &&
  5181. groupStudent[toolindex][gindex][6] &&
  5182. groupJson.islock == 2,
  5183. }"><span class="updateChairBtn" @click="updateGroupChair(
  5184. groupStudent[toolindex][gindex] &&
  5185. groupStudent[toolindex][gindex][6]
  5186. )
  5187. ">修改</span></span><span>{{
  5188. groupStudent[toolindex][gindex] &&
  5189. groupStudent[toolindex][gindex][6]
  5190. ? groupStudent[toolindex][gindex] &&
  5191. groupStudent[toolindex][gindex][6].name
  5192. : "空位置"
  5193. }}</span>
  5194. </div>
  5195. </div>
  5196. <div class="g_d_group_table">
  5197. <div>
  5198. {{ g.name }}
  5199. </div>
  5200. <div>
  5201. <div v-if="courseDetail.userid == userid && groupJson.islock == 2
  5202. " @click="deleteGroupChair(gindex)">
  5203. 移除组员
  5204. </div>
  5205. <div @click="selectGroup(gindex)" v-else-if="groupStudentUid[toolindex] &&
  5206. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  5207. ">
  5208. 加入分组
  5209. </div>
  5210. <div @click="exitGroup(
  5211. groupStudent[toolindex][gindex] &&
  5212. groupStudent[toolindex][gindex][
  5213. groupStudentUid[toolindex][gindex].indexOf(userid)
  5214. ].id
  5215. )
  5216. " v-else-if="groupStudentUid[toolindex] &&
  5217. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  5218. ">
  5219. 退出分组
  5220. </div>
  5221. </div>
  5222. </div>
  5223. <div class="g_d_group_chair2">
  5224. <div v-if="groupJson.number > 3">
  5225. <span :class="{
  5226. isChair:
  5227. groupStudent[toolindex][gindex] &&
  5228. groupStudent[toolindex][gindex][3],
  5229. updateChair:
  5230. courseDetail.userid == userid &&
  5231. groupStudent[toolindex][gindex] &&
  5232. groupStudent[toolindex][gindex][3] &&
  5233. groupJson.islock == 2,
  5234. }"><span class="updateChairBtn" @click="updateGroupChair(
  5235. groupStudent[toolindex][gindex] &&
  5236. groupStudent[toolindex][gindex][3]
  5237. )
  5238. ">修改</span></span><span>{{
  5239. groupStudent[toolindex][gindex] &&
  5240. groupStudent[toolindex][gindex][3]
  5241. ? groupStudent[toolindex][gindex] &&
  5242. groupStudent[toolindex][gindex][3].name
  5243. : "空位置"
  5244. }}</span>
  5245. </div>
  5246. <div v-if="groupJson.number > 7">
  5247. <span :class="{
  5248. isChair:
  5249. groupStudent[toolindex][gindex] &&
  5250. groupStudent[toolindex][gindex][7],
  5251. updateChair:
  5252. courseDetail.userid == userid &&
  5253. groupStudent[toolindex][gindex] &&
  5254. groupStudent[toolindex][gindex][7] &&
  5255. groupJson.islock == 2,
  5256. }"><span class="updateChairBtn" @click="updateGroupChair(
  5257. groupStudent[toolindex][gindex] &&
  5258. groupStudent[toolindex][gindex][7]
  5259. )
  5260. ">修改</span></span><span>{{
  5261. groupStudent[toolindex][gindex] &&
  5262. groupStudent[toolindex][gindex][7]
  5263. ? groupStudent[toolindex][gindex] &&
  5264. groupStudent[toolindex][gindex][7].name
  5265. : "空位置"
  5266. }}</span>
  5267. </div>
  5268. </div>
  5269. </div>
  5270. <div class="g_d_group_chair">
  5271. <div v-if="groupJson.number > 1">
  5272. <span :class="{
  5273. isChair:
  5274. groupStudent[toolindex][gindex] &&
  5275. groupStudent[toolindex][gindex][1],
  5276. updateChair:
  5277. courseDetail.userid == userid &&
  5278. groupStudent[toolindex][gindex] &&
  5279. groupStudent[toolindex][gindex][1] &&
  5280. groupJson.islock == 2,
  5281. }"><span class="updateChairBtn" @click="updateGroupChair(
  5282. groupStudent[toolindex][gindex] &&
  5283. groupStudent[toolindex][gindex][1]
  5284. )
  5285. ">修改</span></span><span>{{
  5286. groupStudent[toolindex][gindex] &&
  5287. groupStudent[toolindex][gindex][1]
  5288. ? groupStudent[toolindex][gindex] &&
  5289. groupStudent[toolindex][gindex][1].name
  5290. : "空位置"
  5291. }}</span>
  5292. </div>
  5293. <div v-if="groupJson.number > 5">
  5294. <span :class="{
  5295. isChair:
  5296. groupStudent[toolindex][gindex] &&
  5297. groupStudent[toolindex][gindex][5],
  5298. updateChair:
  5299. courseDetail.userid == userid &&
  5300. groupStudent[toolindex][gindex] &&
  5301. groupStudent[toolindex][gindex][5] &&
  5302. groupJson.islock == 2,
  5303. }"><span class="updateChairBtn" @click="updateGroupChair(
  5304. groupStudent[toolindex][gindex] &&
  5305. groupStudent[toolindex][gindex][5]
  5306. )
  5307. ">修改</span></span><span>{{
  5308. groupStudent[toolindex][gindex] &&
  5309. groupStudent[toolindex][gindex][5]
  5310. ? groupStudent[toolindex][gindex] &&
  5311. groupStudent[toolindex][gindex][5].name
  5312. : "空位置"
  5313. }}</span>
  5314. </div>
  5315. <div v-if="groupJson.number > 9">
  5316. <span :class="{
  5317. isChair:
  5318. groupStudent[toolindex][gindex] &&
  5319. groupStudent[toolindex][gindex][9],
  5320. updateChair:
  5321. courseDetail.userid == userid &&
  5322. groupStudent[toolindex][gindex] &&
  5323. groupStudent[toolindex][gindex][9] &&
  5324. groupJson.islock == 2,
  5325. }"><span class="updateChairBtn" @click="updateGroupChair(
  5326. groupStudent[toolindex][gindex] &&
  5327. groupStudent[toolindex][gindex][9]
  5328. )
  5329. ">修改</span></span><span>{{
  5330. groupStudent[toolindex][gindex] &&
  5331. groupStudent[toolindex][gindex][9]
  5332. ? groupStudent[toolindex][gindex] &&
  5333. groupStudent[toolindex][gindex][9].name
  5334. : "空位置"
  5335. }}</span>
  5336. </div>
  5337. </div>
  5338. </div>
  5339. </div>
  5340. </div>
  5341. </div>
  5342. <span slot="footer" class="dialog-footer">
  5343. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  5344. </span>
  5345. </el-dialog>
  5346. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup2" :append-to-body="true" width="650px"
  5347. :before-close="handleClose" class="dialog_diy">
  5348. <div class="groupBox">
  5349. <div v-if="groupJson2.group" class="groupContent">
  5350. <div class="groupTitle">请设置小组数量</div>
  5351. <div v-for="(item, index) in groupJson2.group" :key="index" class="groupName">
  5352. <span class="groupn">组{{ index + 1 }}名称:</span>
  5353. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  5354. <!-- <div class="groupBtn">
  5355. <el-button type="primary" size="small" @click="addGroup(index)">
  5356. 添加</el-button>
  5357. <el-button type="primary" size="small" @click="deleteGroup(index)"
  5358. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  5359. </div> -->
  5360. </div>
  5361. </div>
  5362. <div class="groupContent">
  5363. <div class="groupTitle">请设置每组人数数量</div>
  5364. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  5365. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  5366. <el-input-number v-model="groupJson2.number" :controls="false" :min="2" :max="10"
  5367. placeholder="2-10人以内"></el-input-number>
  5368. </div>
  5369. </div>
  5370. <span slot="footer" class="dialog-footer">
  5371. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  5372. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  5373. </span>
  5374. </el-dialog>
  5375. <el-dialog title="作业提交" :visible.sync="dialogVisibleGroupWork" :append-to-body="true" width="500px"
  5376. :before-close="handleClose" class="dialog_change">
  5377. <div class="marginT">
  5378. <div>上传文件</div>
  5379. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  5380. <div class="up_photo">
  5381. <img src="../../assets/icon/uploadImg.png" alt />
  5382. </div>
  5383. <!-- <input
  5384. type="file"
  5385. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  5386. style="display: none"
  5387. @change="beforeUpload1($event, 1)"
  5388. /> -->
  5389. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  5390. </div>
  5391. <!-- capture="camera" -->
  5392. <div class="chapter_add" style="
  5393. display: flex;
  5394. width: 100%;
  5395. flex-direction: row;
  5396. flex-wrap: wrap;
  5397. justify-content: flex-start;
  5398. padding: 15px 0;
  5399. " v-if="studyJuri[0].cover.length > 0">
  5400. <div class="upCover">
  5401. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  5402. <img :src="word" alt v-else-if="fileType == 1" />
  5403. <img :src="video" alt v-else-if="fileType == 2" />
  5404. <img :src="word2" alt v-else-if="fileType == 3" />
  5405. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  5406. <div class="deleteWord" @click="clean(1)">
  5407. <img src="../../assets/icon/deleteWorks.png" alt />
  5408. </div>
  5409. </div>
  5410. </div>
  5411. </div>
  5412. <div class="upload_send" @click="addCourseWorks2(taskCount)" v-if="!proVisible">
  5413. 提交
  5414. </div>
  5415. </el-dialog>
  5416. <el-dialog title="修改分组" :visible.sync="dialogVisibleUpdateGroup" :append-to-body="true" width="350px"
  5417. :before-close="handleClose" class="dialog_diy">
  5418. <div>
  5419. <h2>
  5420. {{ this.updateGroupUser.name }}
  5421. </h2>
  5422. <div style="color: rgb(171 171 171); margin-top: 10px">
  5423. 请选择要进入的分组
  5424. </div>
  5425. <el-radio-group v-model="checkChair">
  5426. <el-radio style="display: block; margin-top: 20px" v-for="(item, index) in updateGroupArray" :label="item.label"
  5427. :key="index">{{ item.name }}</el-radio>
  5428. </el-radio-group>
  5429. </div>
  5430. <span slot="footer" class="dialog-footer">
  5431. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  5432. <el-button type="primary" @click="updateChair">确定</el-button>
  5433. </span>
  5434. </el-dialog>
  5435. <el-dialog title="移除组员" :visible.sync="dialogVisibleDeleteGroup" :append-to-body="true" width="350px"
  5436. :before-close="handleClose" class="dialog_diy">
  5437. <div>
  5438. <h2>
  5439. {{ this.deleteGroupArray.name }}
  5440. </h2>
  5441. <div style="color: rgb(171 171 171); margin-top: 10px">
  5442. 请选择要删除的组员
  5443. </div>
  5444. <el-checkbox-group v-model="checkDeleteGroup">
  5445. <el-checkbox style="display: block; margin-top: 20px" v-for="(item, index) in deleteGroupUser"
  5446. :label="item.userid" :key="index">{{ item.name }}</el-checkbox>
  5447. </el-checkbox-group>
  5448. </div>
  5449. <span slot="footer" class="dialog-footer">
  5450. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  5451. <el-button type="primary" @click="deleteChair">确定</el-button>
  5452. </span>
  5453. </el-dialog>
  5454. <el-dialog title="批量上传" :visible.sync="dialogVisiblePl" :append-to-body="true" width="700px"
  5455. :before-close="handleClose" class="dialog_change">
  5456. <div class="marginT">
  5457. <div class="plworkBox">
  5458. <div class="chapter_add" style="
  5459. display: flex;
  5460. width: 150px;
  5461. flex-direction: row;
  5462. flex-wrap: wrap;
  5463. justify-content: flex-start;
  5464. margin: 0 10px 10px 0;
  5465. " v-for="(item, index) in plworkFile" :key="index">
  5466. <div class="upCover2">
  5467. <img :src="item.url" alt v-if="item.fileType == 1" @click="previewImg(item.url)"/>
  5468. <img :src="word" alt v-else-if="item.fileType == 4" />
  5469. <img :src="video" alt v-else />
  5470. <!-- <span class="picName">{{ item.name }}</span> -->
  5471. <!-- <el-input
  5472. v-model="item.username"
  5473. placeholder="请输入学生名字"
  5474. style="margin-top: 10px"
  5475. ></el-input> -->
  5476. <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  5477. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  5478. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  5479. </el-option>
  5480. </el-select>
  5481. <div class="deleteWord" @click="clean2(index)">
  5482. <img src="../../assets/icon/deleteWorks.png" alt />
  5483. </div>
  5484. </div>
  5485. </div>
  5486. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  5487. <div class="up_photo2">
  5488. <img src="../../assets/icon/plwork.png" alt />
  5489. <span>点击上传文件</span>
  5490. </div>
  5491. <input type="file"
  5492. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  5493. multiple="multiple" style="display: none" @change="beforeUpload3($event, 6)" />
  5494. </div>
  5495. </div>
  5496. </div>
  5497. <!-- capture="camera" -->
  5498. <div class="upload_send" @click="addCourseWorksPl(taskCount)" v-if="!proVisible2">
  5499. 提交
  5500. </div>
  5501. </el-dialog>
  5502. <el-dialog title="修改名称" :visible.sync="dialogVisibleSname" width="500px" :before-close="handleClose"
  5503. class="dialog_diy" center>
  5504. <div style="text-align: center">
  5505. <span class="tian1">名称</span>
  5506. <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  5507. placeholder="请选择学生">
  5508. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  5509. :value="item.userid">
  5510. </el-option>
  5511. </el-select>
  5512. <!-- <el-input
  5513. v-model="worksSName"
  5514. style="width: 250px; margin: 15px 0px"
  5515. ></el-input> -->
  5516. </div>
  5517. <span slot="footer" class="dialog-footer">
  5518. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  5519. <el-button type="primary" @click="updateName">确 定</el-button>
  5520. </span>
  5521. </el-dialog>
  5522. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" :userid="userid" :id="id"
  5523. :courseType="courseType" :taskCount="taskCount" :toolindex="toolindex"></interVideo>
  5524. </div>
  5525. </template>
  5526. <script>
  5527. import "../../common/aws-sdk-2.235.1.min.js";
  5528. // import pdf from "../components/pdf3";
  5529. import pdf from "../components/vpdf";
  5530. import AskStatic from "../components/askStatic";
  5531. import AskStatic2 from "../components/askStatic2";
  5532. import AnswerData2 from "../components/answerData2";
  5533. import AnswerData from "../components/answerData";
  5534. import EditorBar from "../tools/wangEnduit.vue";
  5535. import Table from "../tools/table.vue";
  5536. import Time from "../tools/time.vue";
  5537. import Mind from "../tools/jsmind.vue";
  5538. import Sunburst from "../tools/sunburst";
  5539. import SeeBoard from "../tools/seeBoard";
  5540. import * as imageConversion from "image-conversion";
  5541. import Audio from "../components/audio.vue";
  5542. import ImgDraw from "../tools/imgDraw/imgDraw";
  5543. import { Empty } from "element-ui";
  5544. import RecordRTC from "recordrtc";
  5545. import interVideo from "../interVideo/index.vue"
  5546. export default {
  5547. components: {
  5548. EditorBar,
  5549. Time,
  5550. pdf,
  5551. AskStatic,
  5552. AskStatic2,
  5553. Mind,
  5554. Sunburst,
  5555. SeeBoard,
  5556. AnswerData2,
  5557. AnswerData,
  5558. Audio,
  5559. ImgDraw,
  5560. Table,
  5561. interVideo
  5562. },
  5563. data() {
  5564. return {
  5565. bg: null,
  5566. drawShow: false,
  5567. dialogVisible: false,
  5568. dialogVisiblePl: false,
  5569. commentDialogVisible: false,
  5570. videoVisible: false,
  5571. isStar: false,
  5572. studentEvalDialogVisible: false,
  5573. studentEvalDialogVisibleTeacher: false,
  5574. dialogVisibleSelect: false,
  5575. dialogVisibleSelectTeacher: false,
  5576. dialogVisibleScore: false,
  5577. dialogVisibleSentence: false,
  5578. dialogVisibleSentenceTeacher: false,
  5579. dialogVisibleSentence1: false,
  5580. dialogVisibleWorks: false,
  5581. answerDialogVisibleTeacher: false,
  5582. dialogVisibleTable: false,
  5583. dialogVisibleTableTeacher: false,
  5584. dialogVisibleWord: false,
  5585. dialogVisibleWordTeacher: false,
  5586. dialogVisibleTable2: false,
  5587. dialogVisibleTable3: false,
  5588. dialogVisibleGroupWork: false,
  5589. dialogVisibleUpdateGroup: false,
  5590. dialogVisibleDeleteGroup: false,
  5591. dialogVisibleSname: false,
  5592. dialogVisibleVideo: false,
  5593. worksSName: "",
  5594. classJuri: [],
  5595. uploadStudentJuri: [],
  5596. uploadCid: "",
  5597. snameWid: "",
  5598. sStudent: {},
  5599. sTool: "",
  5600. bzText: "",
  5601. commentDetail: [],
  5602. selectAnswer: [],
  5603. videoDetail: {},
  5604. selectJson: {},
  5605. eScore: { eBzText: "", eStar: [] },
  5606. id: this.$route.query.courseId,
  5607. userid: this.$route.query.userid,
  5608. classId: this.$route.query.cid,
  5609. // courseTypeLine: this.$route.query.type,
  5610. oid: this.$route.query.oid,
  5611. org: this.$route.query.org,
  5612. tType: this.$route.query.tType,
  5613. courseType: this.$route.query.type,
  5614. screenType: this.$route.query.screenType,
  5615. tcid2: this.$route.query.tcid,
  5616. tcid: "",
  5617. pptImgUrl: "",
  5618. pptImgUrl1: "",
  5619. commentText: "",
  5620. full: false,
  5621. sIsOpen: false,
  5622. IsLookOpen: false,
  5623. IsFollow: false,
  5624. pzDialog: false,
  5625. contentDialog: false,
  5626. mlDialog: false,
  5627. type: 1,
  5628. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  5629. sentenceList1: [],
  5630. tableJson: [],
  5631. wordJson: [],
  5632. vedio: [],
  5633. text: [],
  5634. textList: [],
  5635. line: [],
  5636. lineList: [],
  5637. chapTools: [],
  5638. chapToolList: [],
  5639. file: [],
  5640. fileC: [],
  5641. vedioTime: [],
  5642. upToolImg: "",
  5643. preTime: 0,
  5644. rateList: {
  5645. ca: 0,
  5646. },
  5647. rateParams: [],
  5648. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  5649. studyJuri: [
  5650. {
  5651. content: "",
  5652. cover: [],
  5653. upVedio: [],
  5654. upFile: [],
  5655. },
  5656. ],
  5657. plworkFile: [],
  5658. mr: require("../../assets/vedioPic.png"),
  5659. word: require("../../assets/icon/isWord.png"),
  5660. word2: require("../../assets/icon/word2.png"),
  5661. video: require("../../assets/icon/isVideo.png"),
  5662. noLikes: require("../../assets/icon/comment/noLikes.png"),
  5663. likes: require("../../assets/icon/comment/likes.png"),
  5664. scoreImg: require("../../assets/score.png"),
  5665. courseDetail: {},
  5666. isSelect: false,
  5667. chapInfo: [],
  5668. chapInfoList: [],
  5669. taskCount: 0,
  5670. imgList: [],
  5671. noImgList: [],
  5672. pzList: [],
  5673. PlTextList: [
  5674. "Excellent!",
  5675. "nice!",
  5676. "很有创意!",
  5677. "还不错哦~",
  5678. "继续努力哦~",
  5679. ],
  5680. isClickNav: "",
  5681. navId: "",
  5682. playerOptions: {
  5683. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  5684. autoplay: false, //如果true,浏览器准备好时开始回放。
  5685. muted: false, // 默认情况下将会消除任何音频。
  5686. loop: false, // 导致视频一结束就重新开始。
  5687. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  5688. language: "zh-CN",
  5689. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  5690. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  5691. sources: [
  5692. {
  5693. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  5694. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  5695. },
  5696. ],
  5697. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  5698. // poster: dataRes.imgUrl, //你的封面地址
  5699. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  5700. controlBar: {
  5701. timeDivider: true, //当前时间和持续时间的分隔符
  5702. durationDisplay: true, //显示持续时间
  5703. remainingTimeDisplay: false, //是否显示剩余时间功能
  5704. fullscreenToggle: true, //全屏按钮
  5705. },
  5706. },
  5707. playerOptions1: {
  5708. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  5709. autoplay: false, //如果true,浏览器准备好时开始回放。
  5710. muted: false, // 默认情况下将会消除任何音频。
  5711. loop: false, // 导致视频一结束就重新开始。
  5712. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  5713. language: "zh-CN",
  5714. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  5715. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  5716. sources: [
  5717. {
  5718. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  5719. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  5720. },
  5721. ],
  5722. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  5723. // poster: dataRes.imgUrl, //你的封面地址
  5724. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  5725. controlBar: {
  5726. timeDivider: true, //当前时间和持续时间的分隔符
  5727. durationDisplay: true, //显示持续时间
  5728. remainingTimeDisplay: false, //是否显示剩余时间功能
  5729. fullscreenToggle: true, //全屏按钮
  5730. },
  5731. },
  5732. playerO: {},
  5733. noneBtnImg: false,
  5734. proVisible: false,
  5735. proVisible2: false,
  5736. progress: 0,
  5737. isFinishSize: 0,
  5738. isAllSize: 0,
  5739. questionAnswer: "",
  5740. answerQ: "", //问答标题
  5741. rateJson: [],
  5742. wbCount: 0,
  5743. wordCount: 0,
  5744. mindCount: 0,
  5745. askCount: 0,
  5746. noteCount: 0,
  5747. mindNetWorkCount: 0,
  5748. libraryCount: 0,
  5749. workCount: 0,
  5750. timeCount: 0,
  5751. answerCount: 0,
  5752. trainCount: 0,
  5753. evalCount: 0,
  5754. dialogImageUrl: "",
  5755. pictureDialog: false,
  5756. toolTypeList: [],
  5757. dialogVisible1: false,
  5758. dialogVisible2: false,
  5759. dialogVisible3: false,
  5760. dialogVisible6: false,
  5761. dialogVisible4: false,
  5762. isNoHomeWork: false,
  5763. dialogVisible5: false,
  5764. dialogVisible5Teacher: false,
  5765. dialogVisibleChoice: false,
  5766. dialogVisibleChoiceTeacher: false,
  5767. answerDialogVisible: false,
  5768. juriVisible: false,
  5769. timeDialogVisible: false,
  5770. radio: [],
  5771. isAsk: false,
  5772. askJson: {
  5773. askCount: 1,
  5774. askTitle: "",
  5775. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5776. },
  5777. testJson: {},
  5778. checkJson: [],
  5779. askList: [],
  5780. answerList: [],
  5781. navList: [],
  5782. addPzDialog: false,
  5783. ispzType: 1,
  5784. pzConText: "",
  5785. worksStudent: [],
  5786. worksStudent2: [],
  5787. worksTeacher: [],
  5788. isCloseList: [],
  5789. workStudent: [],
  5790. groupStudent: [],
  5791. groupStudentUid: [],
  5792. noWorksS: [],
  5793. isWorksS: [],
  5794. noWorksStudent: [],
  5795. toolindex: 0,
  5796. groupIndex: 0,
  5797. workTypeB: false,
  5798. workTypeC: false,
  5799. isAnswer: false,
  5800. timer: null,
  5801. opertimer: null,
  5802. showType: 0,
  5803. fileType: 0,
  5804. showPDF: false,
  5805. noteName: "",
  5806. evaJuri: [],
  5807. evalua: "",
  5808. eTitle: "",
  5809. eName: "",
  5810. eJson: {},
  5811. fid: "", //一级
  5812. sid: "", //二级
  5813. tid: "", //二级
  5814. typeMode: 1,
  5815. eJSONNum: 0,
  5816. Etype: 1,
  5817. data: {
  5818. meta: {
  5819. name: "example",
  5820. author: "dd@163.com",
  5821. version: "0.2",
  5822. },
  5823. format: "node_array",
  5824. data: [{ id: "root", isroot: true, topic: "" }],
  5825. },
  5826. fullDialogVisible: false,
  5827. fulltype: "",
  5828. fullUrl: "",
  5829. commentIndexJson: {},
  5830. Stbodywidth: 0,
  5831. pzType: 1,
  5832. wScore: 0,
  5833. scoreDetail: "",
  5834. videoStart: false,
  5835. recorder: null,
  5836. groupJson: {},
  5837. groupJson2: {},
  5838. dialogVisibleGroup: false,
  5839. dialogVisibleGroup2: false,
  5840. updateGroupArray: [],
  5841. updateGroupUser: {},
  5842. deleteGroupUser: [],
  5843. deleteGroupArray: {},
  5844. checkChair: "",
  5845. checkDeleteGroup: [],
  5846. inviteCode: "",
  5847. courseGroupStudent: [],
  5848. courseGroupStudentUid: [],
  5849. courseGroup: {},
  5850. isGroup: false,
  5851. toolIndex: null,
  5852. tool: {},
  5853. isWorkTool: [16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40],//, 40
  5854. videoJson: {},
  5855. toolType: 0,
  5856. checktoolArray: [],
  5857. };
  5858. },
  5859. methods: {
  5860. jump() {
  5861. window.parent.postMessage({ tools: "43" }, "*");
  5862. },
  5863. previewImg(url) {
  5864. this.$hevueImgPreview(url);
  5865. },
  5866. change(val) {
  5867. console.log(val);
  5868. },
  5869. goTo(path) {
  5870. this.$router.push(path);
  5871. },
  5872. handlePictureCardPreview(url) {
  5873. this.dialogImageUrl = url;
  5874. this.pictureDialog = true;
  5875. },
  5876. clean(type) {
  5877. if (type == 1) {
  5878. this.studyJuri[0].cover.splice(0, 1);
  5879. } else if (type == 2) {
  5880. this.studyJuri[0].upVedio.splice(0, 1);
  5881. } else {
  5882. this.studyJuri[0].upFile.splice(0, 1);
  5883. }
  5884. },
  5885. clean2(index) {
  5886. this.plworkFile.splice(index, 1);
  5887. },
  5888. handleClose(done) {
  5889. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  5890. this.videoDetail.sources[0].src = "";
  5891. }
  5892. this.commentIndexJson = {};
  5893. done();
  5894. },
  5895. fullTools() {
  5896. this.full = !this.full;
  5897. },
  5898. imgChange(file, fileList, type) {
  5899. if (type == 1) {
  5900. var _tmp = this.studyJuri[0].cover;
  5901. } else if (type == 2) {
  5902. var _tmp = this.studyJuri[0].upVedio;
  5903. } else {
  5904. var _tmp = this.studyJuri[0].upFile;
  5905. }
  5906. this.noneBtnImg = _tmp.length >= 1;
  5907. },
  5908. setContent(bool) {
  5909. this.contentDialog = bool
  5910. if (bool && this.mlDialog) {
  5911. document.querySelector('.workd_media').style.height = "650px"
  5912. } else {
  5913. document.querySelector('.workd_media').style.height = "auto"
  5914. }
  5915. },
  5916. setContent2(bool) {
  5917. this.mlDialog = bool
  5918. if (bool && this.contentDialog) {
  5919. document.querySelector('.workd_media').style.height = "650px"
  5920. } else {
  5921. document.querySelector('.workd_media').style.height = "auto"
  5922. }
  5923. },
  5924. addImg(e) {
  5925. var el = e.currentTarget;
  5926. // this.$message.success('触发上传')
  5927. el.getElementsByTagName("input")[0].click();
  5928. e.target.value = "";
  5929. },
  5930. addSelectAnswer() {
  5931. let params = [
  5932. {
  5933. uid: this.userid,
  5934. cid: this.id,
  5935. stage: this.courseType,
  5936. task: this.taskCount,
  5937. tool: this.toolindex,
  5938. content: this.selectAnswer.answer,
  5939. type: 7,
  5940. },
  5941. ];
  5942. this.ajax
  5943. .post(this.$store.state.api + "addCourseWorks", params)
  5944. .then((res) => {
  5945. this.$message({
  5946. message: "提交成功",
  5947. type: "success",
  5948. });
  5949. this.dialogVisibleSelect = false;
  5950. // this.selectAnswer = {};
  5951. this.selectSWorks();
  5952. this.selectStudent();
  5953. })
  5954. .catch((err) => {
  5955. this.$message.error("提交失败");
  5956. console.error(err);
  5957. });
  5958. },
  5959. addSelectAnswerTeacher() {
  5960. let params = [
  5961. {
  5962. uid: this.sStudent.userid,
  5963. cid: this.id,
  5964. stage: this.courseType,
  5965. task: this.taskCount,
  5966. tool: this.toolindex,
  5967. content: this.selectAnswer.answer,
  5968. type: 7,
  5969. },
  5970. ];
  5971. this.ajax
  5972. .post(this.$store.state.api + "addCourseWorks", params)
  5973. .then((res) => {
  5974. this.$message({
  5975. message: "提交成功",
  5976. type: "success",
  5977. });
  5978. this.dialogVisibleSelectTeacher = false;
  5979. // this.selectAnswer = {};
  5980. this.selectSWorks();
  5981. this.selectStudent();
  5982. })
  5983. .catch((err) => {
  5984. this.$message.error("提交失败");
  5985. console.error(err);
  5986. });
  5987. },
  5988. addSenWorks() {
  5989. for (var i = 0; i < this.sentenceList.length; i++) {
  5990. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  5991. if (
  5992. this.sentenceList[i].chooseSenList[j] == undefined ||
  5993. this.sentenceList[i].chooseSenList[j] == ""
  5994. ) {
  5995. this.$message.error("请将答案填写完整!");
  5996. return;
  5997. }
  5998. }
  5999. }
  6000. let params = [
  6001. {
  6002. uid: this.userid,
  6003. cid: this.id,
  6004. stage: this.courseType,
  6005. task: this.taskCount,
  6006. tool: this.toolindex,
  6007. content: JSON.stringify(this.sentenceList),
  6008. type: 9,
  6009. },
  6010. ];
  6011. this.ajax
  6012. .post(this.$store.state.api + "addCourseWorks", params)
  6013. .then((res) => {
  6014. this.$message({
  6015. message: "提交成功",
  6016. type: "success",
  6017. });
  6018. this.dialogVisibleSentence = false;
  6019. // this.selectAnswer = {};
  6020. this.selectSWorks();
  6021. this.selectStudent();
  6022. })
  6023. .catch((err) => {
  6024. this.$message.error("提交失败");
  6025. console.error(err);
  6026. });
  6027. },
  6028. addSenWorksTeacher() {
  6029. for (var i = 0; i < this.sentenceList.length; i++) {
  6030. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  6031. if (
  6032. this.sentenceList[i].chooseSenList[j] == undefined ||
  6033. this.sentenceList[i].chooseSenList[j] == ""
  6034. ) {
  6035. this.$message.error("请将答案填写完整!");
  6036. return;
  6037. }
  6038. }
  6039. }
  6040. let params = [
  6041. {
  6042. uid: this.sStudent.userid,
  6043. cid: this.id,
  6044. stage: this.courseType,
  6045. task: this.taskCount,
  6046. tool: this.toolindex,
  6047. content: JSON.stringify(this.sentenceList),
  6048. type: 9,
  6049. },
  6050. ];
  6051. this.ajax
  6052. .post(this.$store.state.api + "addCourseWorks", params)
  6053. .then((res) => {
  6054. this.$message({
  6055. message: "提交成功",
  6056. type: "success",
  6057. });
  6058. this.dialogVisibleSentenceTeacher = false;
  6059. // this.selectAnswer = {};
  6060. this.selectSWorks();
  6061. this.selectStudent();
  6062. })
  6063. .catch((err) => {
  6064. this.$message.error("提交失败");
  6065. console.error(err);
  6066. });
  6067. },
  6068. addTableWorks() {
  6069. let params = [
  6070. {
  6071. uid: this.userid,
  6072. cid: this.id,
  6073. stage: this.courseType,
  6074. task: this.taskCount,
  6075. tool: this.toolindex,
  6076. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  6077. type: 10,
  6078. },
  6079. ];
  6080. this.ajax
  6081. .post(this.$store.state.api + "addCourseWorks", params)
  6082. .then((res) => {
  6083. this.$message({
  6084. message: "提交成功",
  6085. type: "success",
  6086. });
  6087. this.dialogVisibleTable = false;
  6088. // this.selectAnswer = {};
  6089. this.selectSWorks();
  6090. this.selectStudent();
  6091. })
  6092. .catch((err) => {
  6093. this.$message.error("提交失败");
  6094. console.error(err);
  6095. });
  6096. },
  6097. addTableWorksTeacher() {
  6098. let params = [
  6099. {
  6100. uid: this.sStudent.userid,
  6101. cid: this.id,
  6102. stage: this.courseType,
  6103. task: this.taskCount,
  6104. tool: this.toolindex,
  6105. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  6106. type: 10,
  6107. },
  6108. ];
  6109. this.ajax
  6110. .post(this.$store.state.api + "addCourseWorks", params)
  6111. .then((res) => {
  6112. this.$message({
  6113. message: "提交成功",
  6114. type: "success",
  6115. });
  6116. this.dialogVisibleTableTeacher = false;
  6117. // this.selectAnswer = {};
  6118. this.selectSWorks();
  6119. this.selectStudent();
  6120. })
  6121. .catch((err) => {
  6122. this.$message.error("提交失败");
  6123. console.error(err);
  6124. });
  6125. },
  6126. addWordWorks() {
  6127. let params = [{
  6128. uid: this.userid,
  6129. cid: this.id,
  6130. stage: this.courseType,
  6131. task: this.taskCount,
  6132. tool: this.toolindex,
  6133. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  6134. type: 13,
  6135. atool: 52,
  6136. }];
  6137. console.log(params);
  6138. this.ajax
  6139. .post(this.$store.state.api + "addCourseWorks3-2", params)
  6140. .then((res) => {
  6141. this.$message({
  6142. message: "提交成功",
  6143. type: "success",
  6144. });
  6145. this.dialogVisibleWord = false;
  6146. // this.selectAnswer = {};
  6147. this.selectSWorks();
  6148. this.selectStudent();
  6149. })
  6150. .catch((err) => {
  6151. this.$message.error("提交失败");
  6152. console.error(err);
  6153. });
  6154. },
  6155. addWordWorksTeacher() {
  6156. let params = [{
  6157. uid: this.sStudent.userid,
  6158. cid: this.id,
  6159. stage: this.courseType,
  6160. task: this.taskCount,
  6161. tool: this.toolindex,
  6162. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  6163. type: 13,
  6164. atool: 52,
  6165. }];
  6166. console.log(params);
  6167. this.ajax
  6168. .post(this.$store.state.api + "addCourseWorks3-2", params)
  6169. .then((res) => {
  6170. this.$message({
  6171. message: "提交成功",
  6172. type: "success",
  6173. });
  6174. this.dialogVisibleWordTeacher = false;
  6175. // this.selectAnswer = {};
  6176. this.selectSWorks();
  6177. this.selectStudent();
  6178. })
  6179. .catch((err) => {
  6180. this.$message.error("提交失败");
  6181. console.error(err);
  6182. });
  6183. },
  6184. addCourseWorks(i) {
  6185. var typesql;
  6186. if (this.fileType === 0) {
  6187. typesql = 1;
  6188. } else if (this.fileType === 1) {
  6189. typesql = 4;
  6190. } else if (this.fileType === 2) {
  6191. typesql = 5;
  6192. } else if (this.fileType === 3) {
  6193. typesql = 12;
  6194. }
  6195. if (!this.studyJuri[0].cover[0].url) {
  6196. this.$message.error("请上传文件");
  6197. return;
  6198. }
  6199. let params = [
  6200. {
  6201. uid: this.userid,
  6202. cid: this.id,
  6203. stage: this.courseType,
  6204. task: i,
  6205. tool: this.toolindex,
  6206. content: this.studyJuri[0].cover[0].url,
  6207. type: typesql,
  6208. },
  6209. ];
  6210. this.ajax
  6211. .post(this.$store.state.api + "addCourseWorksR", params)
  6212. .then((res) => {
  6213. this.$message({
  6214. message: "提交成功",
  6215. type: "success",
  6216. });
  6217. this.studyJuri[0].cover = [];
  6218. this.dialogVisible = false;
  6219. this.getCourseDetail();
  6220. })
  6221. .catch((err) => {
  6222. this.$message.error("提交失败");
  6223. console.error(err);
  6224. });
  6225. },
  6226. addCourseWorksPl(i) {
  6227. let _files = this.plworkFile;
  6228. var c = 1;
  6229. for (var k = 0; k < _files.length; k++) {
  6230. if (!_files[k].username) {
  6231. c = 2;
  6232. }
  6233. }
  6234. if (c == 2) {
  6235. this.$message.error("请填写学生姓名");
  6236. return;
  6237. }
  6238. let params = [
  6239. {
  6240. ateacher: this.userid,
  6241. cid: this.id,
  6242. stage: this.courseType,
  6243. task: i,
  6244. tool: this.toolindex,
  6245. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  6246. },
  6247. ];
  6248. this.ajax
  6249. .post(this.$store.state.api + "addCourseWorksPl", params)
  6250. .then((res) => {
  6251. this.$message({
  6252. message: "提交成功",
  6253. type: "success",
  6254. });
  6255. this.plworkFile = [];
  6256. this.dialogVisiblePl = false;
  6257. this.getCourseDetail();
  6258. })
  6259. .catch((err) => {
  6260. this.$message.error("提交失败");
  6261. console.error(err);
  6262. });
  6263. },
  6264. addCourseWorks2(i) {
  6265. var typesql;
  6266. if (this.fileType === 0) {
  6267. typesql = 0;
  6268. } else if (this.fileType === 1) {
  6269. typesql = 1;
  6270. } else if (this.fileType === 2) {
  6271. typesql = 3;
  6272. } else if (this.fileType === 3) {
  6273. typesql = 12;
  6274. }
  6275. if (!this.studyJuri[0].cover[0].url) {
  6276. this.$message.error("请上传文件");
  6277. return;
  6278. }
  6279. let params = [
  6280. {
  6281. uid: this.userid,
  6282. cid: this.id,
  6283. stage: this.courseType,
  6284. task: i,
  6285. tool: this.toolindex,
  6286. content: JSON.stringify({
  6287. type: typesql,
  6288. groupIndex: this.groupIndex,
  6289. url: this.studyJuri[0].cover[0].url,
  6290. }).replaceAll(/%/g, "%25"),
  6291. type: 11,
  6292. atool: 49,
  6293. text: "",
  6294. },
  6295. ];
  6296. this.ajax
  6297. .post(this.$store.state.api + "addCourseWorks5", params)
  6298. .then((res) => {
  6299. this.$message({
  6300. message: "提交成功",
  6301. type: "success",
  6302. });
  6303. this.studyJuri[0].cover = [];
  6304. this.dialogVisibleGroupWork = false;
  6305. this.getCourseDetail();
  6306. })
  6307. .catch((err) => {
  6308. this.$message.error("提交失败");
  6309. console.error(err);
  6310. });
  6311. },
  6312. addCourseWorksGong(i, data, tool) {
  6313. let params = [
  6314. {
  6315. uid: this.userid,
  6316. cid: this.id,
  6317. stage: this.courseType,
  6318. task: this.taskCount,
  6319. tool: i,
  6320. content: data,
  6321. type: 12,
  6322. atool: tool,
  6323. text: "",
  6324. },
  6325. ];
  6326. this.ajax
  6327. .post(this.$store.state.api + "addCourseWorks5", params)
  6328. .then((res) => {
  6329. this.$message({
  6330. message: "提交成功",
  6331. type: "success",
  6332. });
  6333. this.studyJuri[0].cover = [];
  6334. this.selectSWorks();
  6335. this.selectStudent();
  6336. })
  6337. .catch((err) => {
  6338. this.$message.error("提交失败");
  6339. console.error(err);
  6340. });
  6341. },
  6342. addCourseWorksGongTeacher(i, data, tool) {
  6343. let params = [
  6344. {
  6345. uid: this.sStudent.userid,
  6346. cid: this.id,
  6347. stage: this.courseType,
  6348. task: this.taskCount,
  6349. tool: i,
  6350. content: data,
  6351. type: 12,
  6352. atool: tool,
  6353. text: "",
  6354. },
  6355. ];
  6356. this.ajax
  6357. .post(this.$store.state.api + "addCourseWorks5", params)
  6358. .then((res) => {
  6359. this.$message({
  6360. message: "提交成功",
  6361. type: "success",
  6362. });
  6363. this.studyJuri[0].cover = [];
  6364. this.dialogVisibleWorks = false;
  6365. this.selectSWorks();
  6366. this.selectStudent();
  6367. })
  6368. .catch((err) => {
  6369. this.$message.error("提交失败");
  6370. console.error(err);
  6371. });
  6372. },
  6373. addCourseWorksGongPl(i, data, tool, type) {
  6374. let params = [
  6375. {
  6376. uid: this.sStudent.userid,
  6377. cid: this.id,
  6378. stage: this.courseType,
  6379. task: this.taskCount,
  6380. tool: i,
  6381. content: data,
  6382. type: type,
  6383. atool: tool,
  6384. text: "",
  6385. },
  6386. ];
  6387. this.ajax
  6388. .post(this.$store.state.api + "addCourseWorks5", params)
  6389. .then((res) => {
  6390. this.$message({
  6391. message: "提交成功",
  6392. type: "success",
  6393. });
  6394. this.studyJuri[0].cover = [];
  6395. this.dialogVisibleWorks = false;
  6396. this.selectSWorks();
  6397. this.selectStudent();
  6398. })
  6399. .catch((err) => {
  6400. this.$message.error("提交失败");
  6401. console.error(err);
  6402. });
  6403. },
  6404. addCourseWorksTeacher(i) {
  6405. var typesql;
  6406. if (this.sTool == 32 || this.sTool == 57) {
  6407. this.addCourseWorksGongTeacher(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool);
  6408. return;
  6409. }
  6410. if (this.fileType === 0) {
  6411. typesql = 1;
  6412. } else if (this.fileType === 1) {
  6413. typesql = 4;
  6414. } else if (this.fileType === 2) {
  6415. typesql = 5;
  6416. } else if (this.fileType === 3) {
  6417. typesql = 12;
  6418. }
  6419. if (this.sTool == 50) {
  6420. this.addCourseWorksGongPl(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool, typesql);
  6421. return;
  6422. }
  6423. if (!this.studyJuri[0].cover[0].url) {
  6424. this.$message.error("请上传文件");
  6425. return;
  6426. }
  6427. let params = [
  6428. {
  6429. uid: this.sStudent.userid,
  6430. cid: this.id,
  6431. stage: this.courseType,
  6432. task: i,
  6433. tool: this.toolindex,
  6434. content: this.studyJuri[0].cover[0].url,
  6435. type: typesql,
  6436. ateacher: this.userid,
  6437. },
  6438. ];
  6439. this.ajax
  6440. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  6441. .then((res) => {
  6442. this.$message({
  6443. message: "提交成功",
  6444. type: "success",
  6445. });
  6446. this.studyJuri[0].cover = [];
  6447. this.dialogVisibleWorks = false;
  6448. this.getCourseDetail();
  6449. })
  6450. .catch((err) => {
  6451. this.$message.error("提交失败");
  6452. console.error(err);
  6453. });
  6454. },
  6455. selectUploadStudent() {
  6456. let params = {
  6457. cid: this.tcid ? this.tcid : this.courseDetail.juri,
  6458. oid: this.oid,
  6459. cn: '',
  6460. };
  6461. this.ajax
  6462. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  6463. .then((res) => {
  6464. var studentK = [];
  6465. if (this.isWorksS[this.toolindex].length > 0) {
  6466. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  6467. studentK.push(this.isWorksS[this.toolindex][z].uid);
  6468. }
  6469. studentK = studentK.join(",");
  6470. }
  6471. this.uploadStudentJuri = res.data[0].filter((el) => {
  6472. return studentK.indexOf(el.userid) == -1
  6473. });
  6474. })
  6475. .catch((err) => {
  6476. console.error(err);
  6477. });
  6478. },
  6479. arrayToArray(arrayo, arrayt) {
  6480. let array1 = arrayo;
  6481. let array2 = arrayt;
  6482. let commonElements = [];
  6483. for (let i = 0; i < array1.length; i++) {
  6484. for (let j = 0; j < array2.length; j++) {
  6485. if (array1[i] === array2[j]) {
  6486. commonElements.push(array1[i]);
  6487. }
  6488. }
  6489. }
  6490. return commonElements
  6491. },
  6492. selectWorksStudent() {
  6493. let params = {
  6494. oid: this.oid,
  6495. cid: this.courseDetail.juri,
  6496. };
  6497. this.ajax
  6498. .get(this.$store.state.api + "selectWorksStudent", params)
  6499. .then((res) => {
  6500. var a = res.data[0];
  6501. for (var i = 0; i < this.isWorksS.length; i++) {
  6502. this.noWorksS[i] = [];
  6503. var studentK = [];
  6504. if (this.isWorksS[i].length > 0) {
  6505. for (var z = 0; z < this.isWorksS[i].length; z++) {
  6506. studentK.push(this.isWorksS[i][z].uid);
  6507. }
  6508. studentK = studentK.join(",");
  6509. for (var j = 0; j < a.length; j++) {
  6510. // if (studentK.indexOf(a[j].userid) == -1) {
  6511. if (this.tcid) {
  6512. // a[j].classid.indexOf(this.tcid) != -1
  6513. if (this.arrayToArray(a[j].classid.split(","), this.tcid.split(",")).length) {
  6514. this.noWorksS[i].push({
  6515. student: a[j].name,
  6516. userid: a[j].userid,
  6517. type: studentK.indexOf(a[j].userid) == -1 ? '1' : '2'
  6518. });
  6519. }
  6520. } else {
  6521. this.noWorksS[i].push({
  6522. student: a[j].name,
  6523. userid: a[j].userid,
  6524. type: studentK.indexOf(a[j].userid) == -1 ? '1' : '2'
  6525. });
  6526. }
  6527. // }
  6528. }
  6529. } else {
  6530. for (var k = 0; k < a.length; k++) {
  6531. if (this.tcid) {
  6532. if (this.arrayToArray(a[k].classid.split(","), this.tcid.split(",")).length) {
  6533. this.noWorksS[i].push({
  6534. student: a[k].name,
  6535. userid: a[k].userid,
  6536. type: '1'
  6537. });
  6538. }
  6539. } else {
  6540. this.noWorksS[i].push({
  6541. student: a[k].name,
  6542. userid: a[k].userid,
  6543. type: '1'
  6544. });
  6545. }
  6546. }
  6547. }
  6548. // this.noWorksS[i] = this.noWorksS[i].sort(function (a, b) {
  6549. // let jscoreA = parseInt(a.type);
  6550. // let jscoreB = parseInt(b.type);
  6551. // return jscoreB - jscoreA;
  6552. // });
  6553. }
  6554. this.$forceUpdate();
  6555. if (
  6556. Object.keys(this.commentDetail).length &&
  6557. Object.keys(this.commentIndexJson).length &&
  6558. !this.dialogVisibleScore
  6559. ) {
  6560. let a = 1;
  6561. let c = this.commentIndexJson;
  6562. console.log(c);
  6563. if (
  6564. this.commentIndexJson.gindex ||
  6565. this.commentIndexJson.gindex === 0
  6566. ) {
  6567. for (
  6568. var i = 0;
  6569. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  6570. i++
  6571. ) {
  6572. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  6573. groupA: for (var k = 0; k < _el.length; k++) {
  6574. let el = _el[k];
  6575. if (el.wid == this.commentDetail.wid) {
  6576. a = 2;
  6577. this.commentOther(
  6578. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  6579. this.commentIndexJson.toolIndex,
  6580. k,
  6581. this.commentIndexJson.gindex
  6582. );
  6583. break groupA;
  6584. }
  6585. }
  6586. }
  6587. if (a === 1) {
  6588. this.commentDetail = [];
  6589. this.commentIndexJson = {};
  6590. this.commentDialogVisible = false;
  6591. this.$message("此作业已被删除");
  6592. }
  6593. } else {
  6594. if (this.isGroup && this.commentIndexJson.gid) {
  6595. groupA: for (
  6596. var i = 0;
  6597. i < this.courseGroup.group.length;
  6598. i++
  6599. ) {
  6600. let _group = this.courseGroup.group[i]
  6601. if (_group.id == this.commentIndexJson.gid) {
  6602. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  6603. for (var k = 0; k < _el2.length; k++) {
  6604. let el2 = _el2[k];
  6605. if (el2.wid == this.commentDetail.wid) {
  6606. a = 2;
  6607. this.commentOther(
  6608. _el2[k],
  6609. this.commentIndexJson.toolIndex,
  6610. k,
  6611. null,
  6612. this.commentIndexJson.gid
  6613. );
  6614. break groupA;
  6615. }
  6616. }
  6617. }
  6618. }
  6619. }
  6620. if (a == 1) {
  6621. for (
  6622. var i = 0;
  6623. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  6624. i++
  6625. ) {
  6626. let el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  6627. if (el.wid == this.commentDetail.wid) {
  6628. a = 2;
  6629. this.commentOther(
  6630. this.worksStudent[this.commentIndexJson.toolIndex][i],
  6631. this.commentIndexJson.toolIndex,
  6632. i
  6633. );
  6634. break;
  6635. }
  6636. }
  6637. }
  6638. if (a === 1) {
  6639. this.commentDetail = [];
  6640. this.commentIndexJson = {};
  6641. this.commentDialogVisible = false;
  6642. this.$message("此作业已被删除");
  6643. }
  6644. }
  6645. }
  6646. })
  6647. .catch((err) => {
  6648. console.error(err);
  6649. });
  6650. },
  6651. selectStudent() {
  6652. },
  6653. openVideo(w) {
  6654. this.videoDetail = {};
  6655. this.playerOptions1.sources[0].src = w.works;
  6656. this.videoDetail = this.playerOptions1;
  6657. this.videoVisible = true;
  6658. },
  6659. isLikes(wid, uid, t, c, isLikes) {
  6660. if (isLikes == false) {
  6661. let params = [
  6662. {
  6663. wid: wid,
  6664. lid: uid,
  6665. t: t,
  6666. c: c,
  6667. },
  6668. ];
  6669. this.ajax
  6670. .post(this.$store.state.api + "insertComment", params)
  6671. .then((res) => {
  6672. this.$message({
  6673. message: "点赞成功",
  6674. type: "success",
  6675. });
  6676. this.selectSWorks();
  6677. this.selectStudent();
  6678. })
  6679. .catch((err) => {
  6680. this.$message.error("点赞失败");
  6681. console.error(err);
  6682. });
  6683. } else {
  6684. let params = {
  6685. wid: wid,
  6686. lid: uid,
  6687. type: t,
  6688. };
  6689. this.ajax
  6690. .get(this.$store.state.api + "deleteComment", params)
  6691. .then((res) => {
  6692. this.$message({
  6693. message: "取消点赞成功",
  6694. type: "success",
  6695. });
  6696. this.selectSWorks();
  6697. this.selectStudent();
  6698. })
  6699. .catch((err) => {
  6700. console.error(err);
  6701. });
  6702. }
  6703. },
  6704. deleteComment(wid) {
  6705. this.$confirm("确定删除此评论吗?", "提示", {
  6706. confirmButtonText: "确定",
  6707. cancelButtonText: "取消",
  6708. type: "warning",
  6709. })
  6710. .then(() => {
  6711. let params = {
  6712. id: wid,
  6713. };
  6714. this.ajax
  6715. .get(this.$store.state.api + "deleteComment2", params)
  6716. .then((res) => {
  6717. this.$message({
  6718. message: "删除评论成功",
  6719. type: "success",
  6720. });
  6721. this.selectSWorks();
  6722. this.selectStudent();
  6723. })
  6724. .catch((err) => {
  6725. console.error(err);
  6726. });
  6727. })
  6728. .catch(() => { });
  6729. },
  6730. commentOther(w, toolIndex, wIndex, gindex, gid) {
  6731. this.commentIndexJson = {
  6732. toolIndex: toolIndex,
  6733. wIndex: wIndex,
  6734. gindex: gindex,
  6735. gid: gid
  6736. };
  6737. this.commentDetail = [];
  6738. this.commentDialogVisible = true;
  6739. this.commentDetail = w;
  6740. if (w.works && w.type == 1) {
  6741. this.pptImgUrl = "";
  6742. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  6743. if (
  6744. a.indexOf(
  6745. w.works
  6746. .split(".")
  6747. [w.works.split(".").length - 1].toLocaleUpperCase()
  6748. ) != -1
  6749. ) {
  6750. this.pptImgUrl =
  6751. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  6752. this.showPDF = false;
  6753. } else if (
  6754. w.works
  6755. .split(".")
  6756. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  6757. ) {
  6758. this.pptImgUrl = w.works;
  6759. this.showPDF = true;
  6760. }
  6761. } else if (w.works && w.type == 3) {
  6762. this.videoDetail = {};
  6763. this.playerOptions1.sources[0].src = w.works;
  6764. this.videoDetail = this.playerOptions1;
  6765. // this.videoVisible = true;
  6766. } else if (w.works && w.type == 4) {
  6767. this.eScore = JSON.parse(w.works);
  6768. this.rateJson =
  6769. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6770. this.taskCount
  6771. ].toolChoose[toolIndex].rateJson;
  6772. } else if (w.works && w.type == 10) {
  6773. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  6774. } else if (w.works && w.type == 13) {
  6775. this.wordJson =
  6776. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6777. this.taskCount
  6778. ].toolChoose[toolIndex].wordJson;
  6779. }
  6780. },
  6781. openScore(w) {
  6782. this.wScore = 0;
  6783. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  6784. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  6785. this.commentDetail = [];
  6786. this.dialogVisibleScore = true;
  6787. this.commentDetail = w;
  6788. if (w.works && w.type == 1) {
  6789. this.pptImgUrl = "";
  6790. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  6791. if (
  6792. a.indexOf(
  6793. w.works
  6794. .split(".")
  6795. [w.works.split(".").length - 1].toLocaleUpperCase()
  6796. ) != -1
  6797. ) {
  6798. this.pptImgUrl =
  6799. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  6800. this.showPDF = false;
  6801. } else if (
  6802. w.works
  6803. .split(".")
  6804. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  6805. ) {
  6806. this.pptImgUrl = w.works;
  6807. this.showPDF = true;
  6808. }
  6809. } else if (w.works && w.type == 3) {
  6810. this.videoDetail = {};
  6811. this.playerOptions1.sources[0].src = w.works;
  6812. this.videoDetail = this.playerOptions1;
  6813. }
  6814. },
  6815. addComment(wid, uid, t) {
  6816. if (this.commentText == "") {
  6817. this.$message.error("请输入对该学生的评价");
  6818. return;
  6819. }
  6820. let params2 = [
  6821. {
  6822. wid: wid,
  6823. lid: uid,
  6824. t: t,
  6825. },
  6826. ];
  6827. this.ajax
  6828. .post(this.$store.state.api + "getComment", params2)
  6829. .then((res) => {
  6830. if (res.data[0].length > 0) {
  6831. this.$message.error("一个作业只能评论一条");
  6832. } else {
  6833. let params = [
  6834. {
  6835. wid: wid,
  6836. lid: uid,
  6837. t: t,
  6838. c: this.commentText,
  6839. },
  6840. ];
  6841. this.ajax
  6842. .post(this.$store.state.api + "insertComment", params)
  6843. .then((res) => {
  6844. this.$message({
  6845. message: "评论成功",
  6846. type: "success",
  6847. });
  6848. this.commentText = "";
  6849. this.selectSWorks();
  6850. this.selectStudent();
  6851. })
  6852. .catch((err) => {
  6853. this.$message.error("评论失败");
  6854. console.error(err);
  6855. });
  6856. }
  6857. })
  6858. .catch((err) => {
  6859. // this.$message.error("评论失败");
  6860. console.error(err);
  6861. });
  6862. },
  6863. scoreWork(wid) {
  6864. if (this.wScore == 0) {
  6865. this.$message.error("请评分");
  6866. return;
  6867. }
  6868. let params = [
  6869. {
  6870. wid: wid,
  6871. score: JSON.stringify({
  6872. wScore: this.wScore,
  6873. detail: this.scoreDetail,
  6874. }),
  6875. },
  6876. ];
  6877. this.ajax
  6878. .post(this.$store.state.api + "scoreWork", params)
  6879. .then((res) => {
  6880. this.$message({
  6881. message: "评分成功",
  6882. type: "success",
  6883. });
  6884. this.wScore = 0;
  6885. this.scoreDetail = "";
  6886. this.dialogVisibleScore = false;
  6887. this.selectSWorks();
  6888. this.selectStudent();
  6889. })
  6890. .catch((err) => {
  6891. this.$message.error("评分失败");
  6892. console.error(err);
  6893. });
  6894. },
  6895. openXz(w, i) {
  6896. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6897. .taskJson[this.taskCount].toolChoose[i].selectJson
  6898. ? JSON.parse(
  6899. JSON.stringify(
  6900. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6901. this.taskCount
  6902. ].toolChoose[i].selectJson
  6903. )
  6904. )
  6905. : { url: "", select: [], answer: [] };
  6906. var a = w.works.split(",");
  6907. for (var k = 0; k < a.length; k++) {
  6908. a[k] = parseInt(a[k]);
  6909. }
  6910. this.selectAnswer = { answer: a, stu: w.sName };
  6911. this.isSelect = true;
  6912. this.dialogVisibleSelect = true;
  6913. },
  6914. openSen(w, i) {
  6915. this.sentenceList1 = JSON.parse(w.works);
  6916. this.sentenceList1.stuName = w.sName;
  6917. this.dialogVisibleSentence1 = true;
  6918. },
  6919. openPj(w, toolindex) {
  6920. this.isStar = true;
  6921. this.eScore = JSON.parse(w);
  6922. this.rateJson =
  6923. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6924. this.taskCount
  6925. ].toolChoose[toolindex].rateJson;
  6926. this.studentEvalDialogVisible = true;
  6927. },
  6928. deleteWorks(id) {
  6929. this.$confirm("确定删除此作业吗?", "提示", {
  6930. confirmButtonText: "确定",
  6931. cancelButtonText: "取消",
  6932. type: "warning",
  6933. })
  6934. .then(() => {
  6935. let params = [
  6936. {
  6937. id: id,
  6938. },
  6939. ];
  6940. this.ajax
  6941. .post(this.$store.state.api + "deleteCourseWork", params)
  6942. .then((res) => {
  6943. this.$message({
  6944. message: "删除成功",
  6945. type: "success",
  6946. });
  6947. this.selectStudent();
  6948. this.selectSWorks();
  6949. this.selectSLook();
  6950. })
  6951. .catch((err) => {
  6952. this.$message.error("网络异常");
  6953. console.error(err);
  6954. });
  6955. })
  6956. .catch(() => { });
  6957. },
  6958. selectSWorks(gindex) {
  6959. //教师查看全部作业
  6960. let params = {
  6961. cid: this.id,
  6962. s: this.courseType,
  6963. t: this.taskCount,
  6964. };
  6965. this.ajax
  6966. .get(this.$store.state.api + "selectSWorks", params)
  6967. .then((res) => {
  6968. var a =
  6969. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6970. this.taskCount
  6971. ].toolChoose;
  6972. var b = res.data[0];
  6973. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  6974. var y = [
  6975. "AVI",
  6976. "NAVI",
  6977. "MPEG",
  6978. "ASF",
  6979. "MOV",
  6980. "WMV",
  6981. "3GP",
  6982. "RM",
  6983. "RMVB",
  6984. "FLV",
  6985. "F4V",
  6986. "H.264",
  6987. "H.265",
  6988. "REAL VIDEO",
  6989. "MKV",
  6990. "WebM",
  6991. "HDDVD",
  6992. "MP4",
  6993. "MPG",
  6994. "M4V",
  6995. "MGV",
  6996. "OGV",
  6997. "QTM",
  6998. "STR",
  6999. "AMC",
  7000. "DVX",
  7001. "EVO",
  7002. "DAT",
  7003. "OGG",
  7004. "OGM",
  7005. ];
  7006. var d = res.data[1];
  7007. var e = res.data[2];
  7008. var f = res.data[3];
  7009. for (var i = 0; i < a.length; i++) {
  7010. this.worksStudent[i] = [];
  7011. this.worksTeacher[i] = [];
  7012. this.worksStudent2[i] = [];
  7013. if (
  7014. !this.isCloseList[i] ||
  7015. this.isCloseList[i].isClose == undefined
  7016. ) {
  7017. this.isCloseList[i] = { isClose: 0 };
  7018. }
  7019. this.groupStudent[i] = [];
  7020. this.groupStudentUid[i] = [];
  7021. this.isWorksS[i] = [];
  7022. this.checkJson[i] = [];
  7023. if (a[i].tool[0] == 49) {
  7024. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  7025. this.groupStudent[i][gA] = [];
  7026. this.groupStudentUid[i][gA] = [];
  7027. this.worksStudent[i][gA] = [];
  7028. this.isCloseList[i][gA] = [];
  7029. for (var g = 0; g < f.length; g++) {
  7030. if (
  7031. f[g].ttype == 2 &&
  7032. this.tcid &&
  7033. this.arrayToArray(f[g].classid.split(","), this.tcid.split(",")).length == 0
  7034. ) {
  7035. continue;
  7036. }
  7037. if (gA == f[g].group && f[g].tool == i) {
  7038. this.groupStudent[i][gA].push(f[g]);
  7039. this.groupStudentUid[i][gA].push(f[g].userid);
  7040. }
  7041. }
  7042. }
  7043. this.$forceUpdate();
  7044. }
  7045. for (var j = 0; j < b.length; j++) {
  7046. if (b[j].ttype == 2 && this.tcid && this.arrayToArray(b[j].classid.split(","), this.tcid.split(",")).length == 0) {
  7047. continue;
  7048. }
  7049. var likesCount = 0;
  7050. var commentCount = 0;
  7051. var isLikes = false;
  7052. var commentJson = [];
  7053. var data = b[j];
  7054. if (i == b[j].tool) {
  7055. if (data.type == 2 && a[i].tool[0] == 4) {
  7056. // if(JSON.parse(data.content)[0].anwer){
  7057. var checkL = JSON.parse(data.content)[0].anwer instanceof Array ? JSON.parse(data.content)[0].anwer : JSON.parse(data.content)[0].anwer.split(",");
  7058. for (var z = 0; z < checkL.length; z++) {
  7059. if (!this.checkJson[i][z]) {
  7060. this.checkJson[i].push({
  7061. checkCount: [],
  7062. checkPerson: [],
  7063. rightPerson: [],
  7064. });
  7065. }
  7066. if (!this.checkJson[i][z].checkCount.length) {
  7067. this.checkJson[i][z].checkCount = [];
  7068. let _askItemCount = JSON.parse(data.content)[0].askJson
  7069. .askJson[z].askItem;
  7070. for (var aic = 0; aic < _askItemCount; aic++) {
  7071. this.checkJson[i][z].checkCount.push(0);
  7072. }
  7073. }
  7074. if (checkL[z] instanceof Array) {
  7075. if (
  7076. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  7077. checkL[z].sort().join(",")
  7078. ) {
  7079. this.checkJson[i][z].rightPerson.push(data.name);
  7080. }
  7081. for (var q = 0; q < checkL[z].length; q++) {
  7082. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  7083. ? this.checkJson[i][z].checkPerson[
  7084. parseInt(checkL[z][q])
  7085. ].push(data.name)
  7086. : (this.checkJson[i][z].checkPerson[
  7087. parseInt(checkL[z][q])
  7088. ] = [data.name]);
  7089. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  7090. ? this.checkJson[i][z].checkCount[
  7091. parseInt(checkL[z][q])
  7092. ]++
  7093. : (this.checkJson[i][z].checkCount[
  7094. parseInt(checkL[z][q])
  7095. ] = 1);
  7096. }
  7097. } else {
  7098. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  7099. this.checkJson[i][z].rightPerson.push(data.name);
  7100. }
  7101. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  7102. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  7103. ? this.checkJson[i][z].checkPerson[
  7104. parseInt(checkL[z])
  7105. ].push(data.name)
  7106. : (this.checkJson[i][z].checkPerson[
  7107. parseInt(checkL[z])
  7108. ] = [data.name]);
  7109. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  7110. ? this.checkJson[i][z].checkCount[
  7111. parseInt(checkL[z])
  7112. ]++
  7113. : (this.checkJson[i][z].checkCount[
  7114. parseInt(checkL[z])
  7115. ] = 1);
  7116. }
  7117. }
  7118. }
  7119. } else if (data.type == 8 && a[i].tool[0] == 45) {
  7120. var checkL = JSON.parse(data.content)[0].anwer;
  7121. for (var z = 0; z < checkL.length; z++) {
  7122. if (!this.checkJson[i][z]) {
  7123. this.checkJson[i].push({
  7124. checkCount: [],
  7125. checkPerson: [],
  7126. rightPerson: [],
  7127. });
  7128. }
  7129. if (!this.checkJson[i][z].checkCount.length) {
  7130. this.checkJson[i][z].checkCount = [];
  7131. let _askItemCount = JSON.parse(data.content)[0].testJson
  7132. .testJson[z].testItem;
  7133. console.log(_askItemCount);
  7134. for (var aic = 0; aic < _askItemCount; aic++) {
  7135. this.checkJson[i][z].checkCount.push(0);
  7136. }
  7137. }
  7138. if (checkL[z] instanceof Array) {
  7139. if (
  7140. JSON.parse(data.content)[0]
  7141. .testJson.testJson[z].answer.sort()
  7142. .join(",") == checkL[z].sort().join(",")
  7143. ) {
  7144. this.checkJson[i][z].rightPerson.push(data.name);
  7145. }
  7146. for (var q = 0; q < checkL[z].length; q++) {
  7147. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  7148. ? this.checkJson[i][z].checkPerson[
  7149. parseInt(checkL[z][q])
  7150. ].push(data.name)
  7151. : (this.checkJson[i][z].checkPerson[
  7152. parseInt(checkL[z][q])
  7153. ] = [data.name]);
  7154. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  7155. ? this.checkJson[i][z].checkCount[
  7156. parseInt(checkL[z][q])
  7157. ]++
  7158. : (this.checkJson[i][z].checkCount[
  7159. parseInt(checkL[z][q])
  7160. ] = 1);
  7161. }
  7162. } else {
  7163. if (
  7164. JSON.parse(data.content)[0].testJson.testJson[z]
  7165. .answer == checkL[z]
  7166. ) {
  7167. this.checkJson[i][z].rightPerson.push(data.name);
  7168. }
  7169. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  7170. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  7171. ? this.checkJson[i][z].checkPerson[
  7172. parseInt(checkL[z])
  7173. ].push(data.name)
  7174. : (this.checkJson[i][z].checkPerson[
  7175. parseInt(checkL[z])
  7176. ] = [data.name]);
  7177. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  7178. ? this.checkJson[i][z].checkCount[
  7179. parseInt(checkL[z])
  7180. ]++
  7181. : (this.checkJson[i][z].checkCount[
  7182. parseInt(checkL[z])
  7183. ] = 1);
  7184. }
  7185. }
  7186. }
  7187. } else if (data.type == 9 && a[i].tool[0] == 47) {
  7188. var checkL = JSON.parse(data.content);
  7189. for (var z = 0; z < checkL.length; z++) {
  7190. if (!this.checkJson[i][z]) {
  7191. this.checkJson[i].push({
  7192. checkCount: [],
  7193. checkPerson: [],
  7194. rightPerson: [],
  7195. });
  7196. }
  7197. this.checkJson[i][z].checkPerson.push(data.name);
  7198. if (
  7199. checkL[z].chooseSenList.toString() ==
  7200. checkL[z].rightAnswer.toString()
  7201. ) {
  7202. this.checkJson[i][z].rightPerson.push(data.name);
  7203. }
  7204. }
  7205. }
  7206. for (var k = 0; k < d.length; k++) {
  7207. //点赞
  7208. if (d[k].workId == b[j].id) {
  7209. likesCount++;
  7210. if (d[k].likesId == this.userid) {
  7211. isLikes = true;
  7212. }
  7213. }
  7214. }
  7215. for (var l = 0; l < e.length; l++) {
  7216. //评论
  7217. if (e[l].workId == b[j].id) {
  7218. if (e[l].comment != "") {
  7219. commentCount++;
  7220. commentJson.push({
  7221. commentText: e[l].comment,
  7222. commentTime: e[l].commentTime,
  7223. commentPeople: e[l].commentPeople,
  7224. userid: e[l].userid,
  7225. wid: e[l].id,
  7226. });
  7227. }
  7228. }
  7229. }
  7230. if (
  7231. (b[j].type == 1 ||
  7232. b[j].type == 4 ||
  7233. b[j].type == 5 ||
  7234. b[j].type == 6 ||
  7235. b[j].type == 12 ||
  7236. b[j].type == 7) &&
  7237. a[i].tool[0] != 15 &&
  7238. a[i].tool[0] != 4 &&
  7239. a[i].tool[0] != 45 &&
  7240. a[i].tool[0] != 50 &&
  7241. a[i].tool[0] != 32 &&
  7242. a[i].tool[0] != 57 &&
  7243. a[i].tool[0] != 52
  7244. ) {
  7245. if (
  7246. c.indexOf(
  7247. b[j].content
  7248. .split(".")
  7249. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  7250. ) != -1 &&
  7251. a[i].tool[0] == 16 &&
  7252. b[j].atool != 50
  7253. ) {
  7254. let _works = {
  7255. userid: b[j].userid,
  7256. ateacher: b[j].ateacher,
  7257. wid: b[j].id,
  7258. works: b[j].content,
  7259. sName: b[j].name,
  7260. type: 1,
  7261. time: b[j].time,
  7262. score: b[j].score,
  7263. img: b[j].img,
  7264. likesCount: likesCount,
  7265. commentCount: commentCount,
  7266. isLikes: isLikes,
  7267. commentJson: commentJson,
  7268. }
  7269. if (b[j].ttype == 1) {
  7270. this.worksTeacher[i].push(_works);
  7271. } else {
  7272. this.worksStudent2[i].push(_works);
  7273. }
  7274. this.worksStudent[i].push(_works);
  7275. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7276. } else if (
  7277. y.indexOf(
  7278. b[j].content
  7279. .split(".")
  7280. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  7281. ) != -1 &&
  7282. a[i].tool[0] == 16 &&
  7283. b[j].atool != 50
  7284. ) {
  7285. let _works = {
  7286. userid: b[j].userid,
  7287. ateacher: b[j].ateacher,
  7288. wid: b[j].id,
  7289. works: b[j].content,
  7290. sName: b[j].name,
  7291. type: 3,
  7292. time: b[j].time,
  7293. score: b[j].score,
  7294. img: b[j].img,
  7295. likesCount: likesCount,
  7296. commentCount: commentCount,
  7297. isLikes: isLikes,
  7298. commentJson: commentJson,
  7299. }
  7300. if (b[j].ttype == 1) {
  7301. this.worksTeacher[i].push(_works);
  7302. } else {
  7303. this.worksStudent2[i].push(_works);
  7304. }
  7305. this.worksStudent[i].push(_works);
  7306. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7307. } else if (b[j].type == 6 && b[j].atool != 50) {
  7308. let _works = {
  7309. userid: b[j].userid,
  7310. ateacher: b[j].ateacher,
  7311. wid: b[j].id,
  7312. works: b[j].content,
  7313. sName: b[j].name,
  7314. type: 4,
  7315. time: b[j].time,
  7316. score: b[j].score,
  7317. img: b[j].img,
  7318. likesCount: likesCount,
  7319. commentCount: commentCount,
  7320. isLikes: isLikes,
  7321. commentJson: commentJson,
  7322. }
  7323. if (b[j].ttype == 1) {
  7324. this.worksTeacher[i].push(_works);
  7325. } else {
  7326. this.worksStudent2[i].push(_works);
  7327. }
  7328. this.worksStudent[i].push(_works);
  7329. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7330. } else if (b[j].type == 7 && b[j].atool != 50) {
  7331. let _works = {
  7332. userid: b[j].userid,
  7333. ateacher: b[j].ateacher,
  7334. wid: b[j].id,
  7335. works: b[j].content,
  7336. sName: b[j].name,
  7337. type: 5,
  7338. time: b[j].time,
  7339. score: b[j].score,
  7340. img: b[j].img,
  7341. likesCount: likesCount,
  7342. commentCount: commentCount,
  7343. isLikes: isLikes,
  7344. commentJson: commentJson,
  7345. }
  7346. if (b[j].ttype == 1) {
  7347. this.worksTeacher[i].push(_works);
  7348. } else {
  7349. this.worksStudent2[i].push(_works);
  7350. }
  7351. this.worksStudent[i].push(_works);
  7352. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7353. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  7354. let _works = {
  7355. userid: b[j].userid,
  7356. ateacher: b[j].ateacher,
  7357. wid: b[j].id,
  7358. works: b[j].content,
  7359. sName: b[j].name,
  7360. type: 12,
  7361. time: b[j].time,
  7362. score: b[j].score,
  7363. img: b[j].img,
  7364. likesCount: likesCount,
  7365. commentCount: commentCount,
  7366. isLikes: isLikes,
  7367. commentJson: commentJson,
  7368. }
  7369. if (b[j].ttype == 1) {
  7370. this.worksTeacher[i].push(_works);
  7371. } else {
  7372. this.worksStudent2[i].push(_works);
  7373. }
  7374. this.worksStudent[i].push(_works);
  7375. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7376. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  7377. let _works = {
  7378. userid: b[j].userid,
  7379. ateacher: b[j].ateacher,
  7380. wid: b[j].id,
  7381. works: b[j].content,
  7382. sName: b[j].name,
  7383. type: 0,
  7384. time: b[j].time,
  7385. score: b[j].score,
  7386. img: b[j].img,
  7387. likesCount: likesCount,
  7388. commentCount: commentCount,
  7389. isLikes: isLikes,
  7390. commentJson: commentJson,
  7391. }
  7392. if (b[j].ttype == 1) {
  7393. this.worksTeacher[i].push(_works);
  7394. } else {
  7395. this.worksStudent2[i].push(_works);
  7396. }
  7397. this.worksStudent[i].push(_works);
  7398. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7399. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  7400. let _works = {
  7401. userid: b[j].userid,
  7402. ateacher: b[j].ateacher,
  7403. wid: b[j].id,
  7404. works: b[j].content,
  7405. sName: b[j].name,
  7406. type: 0,
  7407. time: b[j].time,
  7408. score: b[j].score,
  7409. img: b[j].img,
  7410. likesCount: likesCount,
  7411. commentCount: commentCount,
  7412. isLikes: isLikes,
  7413. commentJson: commentJson,
  7414. }
  7415. if (b[j].ttype == 1) {
  7416. this.worksTeacher[i].push(_works);
  7417. } else {
  7418. this.worksStudent2[i].push(_works);
  7419. }
  7420. this.worksStudent[i].push(_works);
  7421. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7422. }
  7423. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  7424. let _works = {
  7425. userid: b[j].userid,
  7426. ateacher: b[j].ateacher,
  7427. wid: b[j].id,
  7428. works: b[j].content,
  7429. sName: b[j].name,
  7430. type: 2,
  7431. time: b[j].time,
  7432. score: b[j].score,
  7433. img: b[j].img,
  7434. likesCount: likesCount,
  7435. commentCount: commentCount,
  7436. isLikes: isLikes,
  7437. commentJson: commentJson,
  7438. }
  7439. if (b[j].ttype == 1) {
  7440. this.worksTeacher[i].push(_works);
  7441. } else {
  7442. this.worksStudent2[i].push(_works);
  7443. }
  7444. this.worksStudent[i].push(_works);
  7445. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7446. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  7447. //问卷
  7448. let _works = {
  7449. userid: b[j].userid,
  7450. ateacher: b[j].ateacher,
  7451. wid: b[j].id,
  7452. works: b[j].content,
  7453. sName: b[j].name,
  7454. type: 2,
  7455. time: b[j].time,
  7456. score: b[j].score,
  7457. img: b[j].img,
  7458. likesCount: likesCount,
  7459. commentCount: commentCount,
  7460. isLikes: isLikes,
  7461. commentJson: commentJson,
  7462. }
  7463. if (b[j].ttype == 1) {
  7464. this.worksTeacher[i].push(_works);
  7465. } else {
  7466. this.worksStudent2[i].push(_works);
  7467. }
  7468. this.worksStudent[i].push(_works);
  7469. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7470. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  7471. //选择题
  7472. let _works = {
  7473. userid: b[j].userid,
  7474. ateacher: b[j].ateacher,
  7475. wid: b[j].id,
  7476. works: b[j].content,
  7477. sName: b[j].name,
  7478. type: 8,
  7479. time: b[j].time,
  7480. score: b[j].score,
  7481. img: b[j].img,
  7482. likesCount: likesCount,
  7483. commentCount: commentCount,
  7484. isLikes: isLikes,
  7485. commentJson: commentJson,
  7486. }
  7487. if (b[j].ttype == 1) {
  7488. this.worksTeacher[i].push(_works);
  7489. } else {
  7490. this.worksStudent2[i].push(_works);
  7491. }
  7492. this.worksStudent[i].push(_works);
  7493. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7494. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  7495. //选择题
  7496. let _works = {
  7497. userid: b[j].userid,
  7498. ateacher: b[j].ateacher,
  7499. wid: b[j].id,
  7500. works: b[j].content,
  7501. sName: b[j].name,
  7502. type: 9,
  7503. time: b[j].time,
  7504. score: b[j].score,
  7505. img: b[j].img,
  7506. likesCount: likesCount,
  7507. commentCount: commentCount,
  7508. isLikes: isLikes,
  7509. commentJson: commentJson,
  7510. }
  7511. if (b[j].ttype == 1) {
  7512. this.worksTeacher[i].push(_works);
  7513. } else {
  7514. this.worksStudent2[i].push(_works);
  7515. }
  7516. this.worksStudent[i].push(_works);
  7517. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7518. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  7519. //选择题
  7520. let _works = {
  7521. userid: b[j].userid,
  7522. ateacher: b[j].ateacher,
  7523. wid: b[j].id,
  7524. works: b[j].content,
  7525. sName: b[j].name,
  7526. type: 10,
  7527. time: b[j].time,
  7528. score: b[j].score,
  7529. img: b[j].img,
  7530. likesCount: likesCount,
  7531. commentCount: commentCount,
  7532. isLikes: isLikes,
  7533. commentJson: commentJson,
  7534. }
  7535. if (b[j].ttype == 1) {
  7536. this.worksTeacher[i].push(_works);
  7537. } else {
  7538. this.worksStudent2[i].push(_works);
  7539. }
  7540. this.worksStudent[i].push(_works);
  7541. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7542. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  7543. //选择题
  7544. let _works = {
  7545. userid: b[j].userid,
  7546. ateacher: b[j].ateacher,
  7547. wid: b[j].id,
  7548. works: b[j].content,
  7549. sName: b[j].name,
  7550. type: 13,
  7551. time: b[j].time,
  7552. score: b[j].score,
  7553. img: b[j].img,
  7554. likesCount: likesCount,
  7555. commentCount: commentCount,
  7556. isLikes: isLikes,
  7557. commentJson: commentJson,
  7558. }
  7559. if (b[j].ttype == 1) {
  7560. this.worksTeacher[i].push(_works);
  7561. } else {
  7562. this.worksStudent2[i].push(_works);
  7563. }
  7564. this.worksStudent[i].push(_works);
  7565. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7566. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  7567. let _gindex = JSON.parse(b[j].content);
  7568. if (
  7569. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  7570. b[j].userid
  7571. ) != -1
  7572. ) {
  7573. this.worksStudent[i][_gindex.groupIndex].push({
  7574. userid: b[j].userid,
  7575. ateacher: b[j].ateacher,
  7576. wid: b[j].id,
  7577. works: _gindex.url,
  7578. sName: b[j].name,
  7579. type: _gindex.type,
  7580. time: b[j].time,
  7581. score: b[j].score,
  7582. img: b[j].img,
  7583. likesCount: likesCount,
  7584. commentCount: commentCount,
  7585. isLikes: isLikes,
  7586. commentJson: commentJson,
  7587. });
  7588. }
  7589. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7590. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  7591. let _works = {
  7592. userid: b[j].userid,
  7593. ateacher: b[j].ateacher,
  7594. wid: b[j].id,
  7595. works: b[j].content,
  7596. sName: b[j].name ? b[j].name : b[j].userid,
  7597. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  7598. time: b[j].time,
  7599. score: b[j].score,
  7600. img: b[j].img,
  7601. likesCount: likesCount,
  7602. commentCount: commentCount,
  7603. isLikes: isLikes,
  7604. commentJson: commentJson,
  7605. }
  7606. if (b[j].ttype == 1) {
  7607. this.worksTeacher[i].push(_works);
  7608. } else {
  7609. this.worksStudent2[i].push(_works);
  7610. }
  7611. this.worksStudent[i].push(_works);
  7612. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7613. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  7614. let _works = {
  7615. userid: b[j].userid,
  7616. ateacher: b[j].ateacher,
  7617. wid: b[j].id,
  7618. works: b[j].content,
  7619. sName: b[j].name ? b[j].name : b[j].userid,
  7620. type: 12,
  7621. time: b[j].time,
  7622. score: b[j].score,
  7623. img: b[j].img,
  7624. likesCount: likesCount,
  7625. commentCount: commentCount,
  7626. isLikes: isLikes,
  7627. commentJson: commentJson,
  7628. }
  7629. if (b[j].ttype == 1) {
  7630. this.worksTeacher[i].push(_works);
  7631. } else {
  7632. this.worksStudent2[i].push(_works);
  7633. }
  7634. this.worksStudent[i].push(_works);
  7635. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7636. } else if (a[i].tool[0] == 57 && b[j].atool == 57) {
  7637. let _works = {
  7638. userid: b[j].userid,
  7639. ateacher: b[j].ateacher,
  7640. wid: b[j].id,
  7641. works: b[j].content,
  7642. sName: b[j].name ? b[j].name : b[j].userid,
  7643. type: 12,
  7644. time: b[j].time,
  7645. score: b[j].score,
  7646. img: b[j].img,
  7647. likesCount: likesCount,
  7648. commentCount: commentCount,
  7649. isLikes: isLikes,
  7650. commentJson: commentJson,
  7651. }
  7652. if (b[j].ttype == 1) {
  7653. this.worksTeacher[i].push(_works);
  7654. } else {
  7655. this.worksStudent2[i].push(_works);
  7656. }
  7657. this.worksStudent[i].push(_works);
  7658. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7659. }
  7660. }
  7661. }
  7662. if (this.worksStudent[i] && this.worksStudent[i].length) {
  7663. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  7664. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7665. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7666. var scoreA = parseFloat(jscoreA);
  7667. var scoreB = parseFloat(jscoreB);
  7668. if (scoreA == scoreB) {
  7669. return b.likesCount - a.likesCount;
  7670. }
  7671. return scoreB - scoreA;
  7672. });
  7673. }
  7674. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  7675. this.worksStudent2[i] = this.worksStudent2[i].sort(function (a, b) {
  7676. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7677. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7678. var scoreA = parseFloat(jscoreA);
  7679. var scoreB = parseFloat(jscoreB);
  7680. if (scoreA == scoreB) {
  7681. return b.likesCount - a.likesCount;
  7682. }
  7683. return scoreB - scoreA;
  7684. });
  7685. }
  7686. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  7687. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  7688. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7689. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7690. var scoreA = parseFloat(jscoreA);
  7691. var scoreB = parseFloat(jscoreB);
  7692. if (scoreA == scoreB) {
  7693. return b.likesCount - a.likesCount;
  7694. }
  7695. return scoreB - scoreA;
  7696. });
  7697. }
  7698. }
  7699. for (var i = 0; i < a.length; i++) {
  7700. for (var j = 0; j < b.length; j++) {
  7701. var data = b[j];
  7702. if (i == b[j].tool) {
  7703. if (data.type == 2 || data.type == 8) {
  7704. for (var z = 0; z < this.checkJson[i].length; z++) {
  7705. this.checkJson[i][z].checkPerent = [];
  7706. this.checkJson[i][z].right = Math.round(
  7707. (this.checkJson[i][z].rightPerson.length /
  7708. parseInt(this.worksStudent[i].length)) *
  7709. 100
  7710. );
  7711. let aaaa = this.checkJson[i][z];
  7712. console.log(aaaa);
  7713. for (
  7714. var k = 0;
  7715. k < this.checkJson[i][z].checkCount.length;
  7716. k++
  7717. ) {
  7718. this.checkJson[i][z].checkPerent.push(
  7719. Math.round(
  7720. (this.checkJson[i][z].checkCount[k] /
  7721. parseInt(this.worksStudent[i].length)) *
  7722. 100
  7723. )
  7724. );
  7725. }
  7726. }
  7727. } else if (data.type == 9) {
  7728. for (var z = 0; z < this.checkJson[i].length; z++) {
  7729. this.checkJson[i][z].checkPerent = [];
  7730. this.checkJson[i][z].right = Math.round(
  7731. (this.checkJson[i][z].rightPerson.length /
  7732. this.checkJson[i][z].checkPerson.length) *
  7733. 100
  7734. );
  7735. }
  7736. }
  7737. }
  7738. }
  7739. }
  7740. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  7741. this.joinGroup(gindex);
  7742. }
  7743. this.selectWorksStudent();
  7744. })
  7745. .catch((err) => {
  7746. console.error(err);
  7747. });
  7748. },
  7749. pngToWhiteBg(file) {
  7750. const _file = file;
  7751. let read = new FileReader();
  7752. read.readAsDataURL(file); // 文件转base64
  7753. return new Promise((resolve, reject) => {
  7754. read.onload = (e) => {
  7755. let img = new Image();
  7756. img.src = e.target.result;
  7757. img.onload = async () => {
  7758. // 生成canvas
  7759. let canvas = document.createElement("canvas");
  7760. let context = canvas.getContext("2d");
  7761. // 绘制图片到canvas上
  7762. canvas.width = img.width;
  7763. canvas.height = img.height;
  7764. // 在canvas绘制前填充白色背景
  7765. context.fillStyle = "#fff";
  7766. context.fillRect(0, 0, canvas.width, canvas.height);
  7767. context.drawImage(img, 0, 0);
  7768. let base64 = canvas.toDataURL(file["type"], 1);
  7769. let newFile = this.dataUrlToFile(base64, _file);
  7770. resolve(newFile);
  7771. };
  7772. };
  7773. });
  7774. },
  7775. dataUrlToFile(dataurl, file) {
  7776. let arr = dataurl.split(","),
  7777. mime = arr[0].match(/:(.*?);/)[1],
  7778. bstr = atob(arr[1]),
  7779. n = bstr.length,
  7780. u8arr = new Uint8Array(n);
  7781. while (n--) {
  7782. u8arr[n] = bstr.charCodeAt(n);
  7783. }
  7784. // return new Blob([u8arr], { type: mime });
  7785. return new File([new Blob([u8arr], { type: mime })], file.name, {
  7786. type: mime,
  7787. });
  7788. },
  7789. async beforeUpload1(event, type, i) {
  7790. // this.$message.success('进入上传')
  7791. var file = "";
  7792. if (type == 5) {
  7793. file = event;
  7794. } else {
  7795. file = event.target.files[0];
  7796. }
  7797. var credentials = {
  7798. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7799. secretAccessKey: "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",
  7800. }; //秘钥形式的登录上传
  7801. window.AWS.config.update(credentials);
  7802. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7803. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7804. var _this = this;
  7805. _this.progress = 0;
  7806. _this.proVisible = true;
  7807. _this.isFinishSize = 0;
  7808. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7809. var b = [
  7810. "DOC",
  7811. "DOCX",
  7812. "DOCM",
  7813. "DOTM",
  7814. "DOTX",
  7815. "PPTX",
  7816. "PPSX",
  7817. "PPT",
  7818. "PPS",
  7819. "PPTM",
  7820. "POTM",
  7821. "PPAM",
  7822. "POTX",
  7823. "PPSM",
  7824. ];
  7825. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  7826. var photoA = [
  7827. "BMP",
  7828. "GIF",
  7829. "PNG",
  7830. "JPGE",
  7831. "JPG",
  7832. "TIF",
  7833. "PCX",
  7834. "TGA",
  7835. "EXIF",
  7836. "FPX",
  7837. "SVG",
  7838. "APNG",
  7839. ];
  7840. // if (
  7841. // b.indexOf(
  7842. // file.name
  7843. // .split(".")
  7844. // [file.name.split(".").length - 1].toLocaleUpperCase()
  7845. // ) != -1
  7846. // ) {
  7847. // if (file.size / 1024 / 1024 > 10) {
  7848. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  7849. // return;
  7850. // }
  7851. // } else if (
  7852. // excelA.indexOf(
  7853. // file.name
  7854. // .split(".")
  7855. // [file.name.split(".").length - 1].toLocaleUpperCase()
  7856. // ) != "-1"
  7857. // ) {
  7858. // if (file.size / 1024 / 1024 > 5) {
  7859. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  7860. // return;
  7861. // }
  7862. // }
  7863. if (
  7864. photoA.indexOf(
  7865. file.name
  7866. .split(".")
  7867. [file.name.split(".").length - 1].toLocaleUpperCase()
  7868. ) != -1 &&
  7869. type != 4
  7870. ) {
  7871. // const blob = await imageConversion.compress(file, 0.8)
  7872. file = await this.pngToWhiteBg(file);
  7873. const blob = await imageConversion.compressAccurately(file, 256);
  7874. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  7875. file = new File([blob], file.name, { type: file.type });
  7876. }
  7877. if (file) {
  7878. var params = {
  7879. Key:
  7880. file.name.split(".")[0] +
  7881. new Date().getTime() +
  7882. "." +
  7883. file.name.split(".")[file.name.split(".").length - 1],
  7884. ContentType: file.type,
  7885. Body: file,
  7886. "Access-Control-Allow-Credentials": "*",
  7887. ACL: "public-read",
  7888. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7889. var options = {
  7890. // partSize: 2048 * 1024 * 1024,
  7891. partSize: 1024 * 1024 * 1024,
  7892. queueSize: 2,
  7893. leavePartsOnError: true,
  7894. };
  7895. bucket
  7896. .upload(params, options)
  7897. .on("httpUploadProgress", function (evt) {
  7898. //这里可以写进度条
  7899. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7900. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  7901. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7902. })
  7903. .send(function (err, data) {
  7904. _this.progress = 100;
  7905. _this.isFinishSize = _this.isAllSize;
  7906. setTimeout(() => {
  7907. _this.proVisible = false;
  7908. }, 1000);
  7909. if (err) {
  7910. var a = _this.$refs.upload1.uploadFiles;
  7911. a.splice(a.length - 1, a.length);
  7912. _this.$message.error("上传失败");
  7913. } else {
  7914. // _this.$message.success('上传成功')
  7915. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  7916. var c = [
  7917. "AVI",
  7918. "NAVI",
  7919. "MPEG",
  7920. "ASF",
  7921. "MOV",
  7922. "WMV",
  7923. "3GP",
  7924. "RM",
  7925. "RMVB",
  7926. "FLV",
  7927. "F4V",
  7928. "H.264",
  7929. "H.265",
  7930. "REAL VIDEO",
  7931. "MKV",
  7932. "WebM",
  7933. "HDDVD",
  7934. "MP4",
  7935. "MPG",
  7936. "M4V",
  7937. "MGV",
  7938. "OGV",
  7939. "QTM",
  7940. "STR",
  7941. "AMC",
  7942. "DVX",
  7943. "EVO",
  7944. "DAT",
  7945. "OGG",
  7946. "OGM",
  7947. ];
  7948. if (type == 1) {
  7949. _this.studyJuri[0].cover.push({
  7950. name: file.name,
  7951. url: data.Location,
  7952. uid: file.uid,
  7953. });
  7954. if (
  7955. c.indexOf(
  7956. _this.studyJuri[0].cover[0].url
  7957. .split(".")
  7958. [
  7959. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7960. ].toLocaleUpperCase()
  7961. ) != -1
  7962. ) {
  7963. _this.fileType = 2;
  7964. } else if (
  7965. b.indexOf(
  7966. _this.studyJuri[0].cover[0].url
  7967. .split(".")
  7968. [
  7969. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7970. ].toLocaleUpperCase()
  7971. ) != -1
  7972. ) {
  7973. _this.fileType = 1;
  7974. } else if (photoA.indexOf(
  7975. _this.studyJuri[0].cover[0].url
  7976. .split(".")
  7977. [
  7978. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7979. ].toLocaleUpperCase()
  7980. ) != -1) {
  7981. _this.fileType = 0;
  7982. } else {
  7983. _this.fileType = 3;
  7984. }
  7985. _this.imgChange(null, null, type);
  7986. } else if (type == 2) {
  7987. _this.upToolImg = data.Location;
  7988. _this.imgChange(null, null, type);
  7989. _this.addCourseWorks(i);
  7990. } else if (type == 4) {
  7991. _this.addPz("3", data.Location);
  7992. } else if (type == 5) {
  7993. _this.addImgDrawImG(data.Location);
  7994. } else if (type == 6) {
  7995. var _ftype = 1;
  7996. if (
  7997. c.indexOf(
  7998. data.Location.split(".")[
  7999. data.Location.split(".").length - 1
  8000. ].toLocaleUpperCase()
  8001. ) != -1
  8002. ) {
  8003. _ftype = 5;
  8004. } else if (
  8005. b.indexOf(
  8006. data.Location.split(".")[
  8007. data.Location.split(".").length - 1
  8008. ].toLocaleUpperCase()
  8009. ) != -1
  8010. ) {
  8011. _ftype = 4;
  8012. } else {
  8013. _ftype = 1;
  8014. }
  8015. _this.plworkFile.push({
  8016. name: file.name,
  8017. url: data.Location,
  8018. uid: file.uid,
  8019. fileType: _ftype,
  8020. username:
  8021. _this.plworkFile.length + 1 > 10
  8022. ? _this.plworkFile.length + 1
  8023. : "0" + (_this.plworkFile.length + 1),
  8024. });
  8025. } else if (type == 7) {
  8026. _this.addCourseWorksGong(i, data.Location, 32);
  8027. } else if (type == 8) {
  8028. _this.addCourseWorksGong(i, data.Location, 57);
  8029. }
  8030. _this.imgChange(null, null, type);
  8031. console.log(data.Location);
  8032. // _this.$message.success('上传成功'+data.Location)
  8033. }
  8034. });
  8035. }
  8036. },
  8037. async beforeUpload3(event, type, i) {
  8038. // this.$message.success('进入上传')
  8039. let file = "";
  8040. let cfindex2 = 0;
  8041. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  8042. file = event.target.files[cfindex];
  8043. var credentials = {
  8044. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8045. secretAccessKey: "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",
  8046. }; //秘钥形式的登录上传
  8047. window.AWS.config.update(credentials);
  8048. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8049. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8050. var _this = this;
  8051. // _this.progress = 0;
  8052. _this.proVisible2 = true;
  8053. var b = [
  8054. "DOC",
  8055. "DOCX",
  8056. "DOCM",
  8057. "DOTM",
  8058. "DOTX",
  8059. "PPTX",
  8060. "PPSX",
  8061. "PPT",
  8062. "PPS",
  8063. "PPTM",
  8064. "POTM",
  8065. "PPAM",
  8066. "POTX",
  8067. "PPSM",
  8068. ];
  8069. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  8070. var photoA = [
  8071. "BMP",
  8072. "GIF",
  8073. "PNG",
  8074. "JPGE",
  8075. "JPG",
  8076. "TIF",
  8077. "PCX",
  8078. "TGA",
  8079. "EXIF",
  8080. "FPX",
  8081. "SVG",
  8082. "APNG",
  8083. ];
  8084. if (
  8085. photoA.indexOf(
  8086. file.name
  8087. .split(".")
  8088. [file.name.split(".").length - 1].toLocaleUpperCase()
  8089. ) != -1 &&
  8090. type != 4
  8091. ) {
  8092. // const blob = await imageConversion.compress(file, 0.8)
  8093. file = await this.pngToWhiteBg(file);
  8094. const blob = await imageConversion.compressAccurately(file, 256);
  8095. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  8096. file = new File([blob], file.name, { type: file.type });
  8097. }
  8098. if (file) {
  8099. var params = {
  8100. Key:
  8101. file.name.split(".")[0] +
  8102. new Date().getTime() +
  8103. "." +
  8104. file.name.split(".")[file.name.split(".").length - 1],
  8105. ContentType: file.type,
  8106. Body: file,
  8107. "Access-Control-Allow-Credentials": "*",
  8108. ACL: "public-read",
  8109. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8110. var options = {
  8111. // partSize: 2048 * 1024 * 1024,
  8112. partSize: 1024 * 1024 * 1024,
  8113. queueSize: 2,
  8114. leavePartsOnError: true,
  8115. };
  8116. bucket
  8117. .upload(params, options)
  8118. .on("httpUploadProgress", function (evt) {
  8119. //这里可以写进度条
  8120. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8121. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  8122. })
  8123. .send(function (err, data) {
  8124. // _this.progress = 100;
  8125. cfindex2++;
  8126. setTimeout(() => {
  8127. if (
  8128. cfindex2 == event.target.files.length - 1 ||
  8129. cfindex2 > event.target.files.length - 1
  8130. ) {
  8131. _this.proVisible2 = false;
  8132. }
  8133. }, 1000);
  8134. if (err) {
  8135. var a = _this.$refs.upload1.uploadFiles;
  8136. a.splice(a.length - 1, a.length);
  8137. _this.$message.error("上传失败");
  8138. } else {
  8139. // _this.$message.success('上传成功')
  8140. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  8141. var c = [
  8142. "AVI",
  8143. "NAVI",
  8144. "MPEG",
  8145. "ASF",
  8146. "MOV",
  8147. "WMV",
  8148. "3GP",
  8149. "RM",
  8150. "RMVB",
  8151. "FLV",
  8152. "F4V",
  8153. "H.264",
  8154. "H.265",
  8155. "REAL VIDEO",
  8156. "MKV",
  8157. "WebM",
  8158. "HDDVD",
  8159. "MP4",
  8160. "MPG",
  8161. "M4V",
  8162. "MGV",
  8163. "OGV",
  8164. "QTM",
  8165. "STR",
  8166. "AMC",
  8167. "DVX",
  8168. "EVO",
  8169. "DAT",
  8170. "OGG",
  8171. "OGM",
  8172. ];
  8173. if (type == 1) {
  8174. _this.studyJuri[0].cover.push({
  8175. name: file.name,
  8176. url: data.Location,
  8177. uid: file.uid,
  8178. });
  8179. if (
  8180. c.indexOf(
  8181. _this.studyJuri[0].cover[0].url
  8182. .split(".")
  8183. [
  8184. _this.studyJuri[0].cover[0].url.split(".").length - 1
  8185. ].toLocaleUpperCase()
  8186. ) != -1
  8187. ) {
  8188. _this.fileType = 2;
  8189. } else if (
  8190. b.indexOf(
  8191. _this.studyJuri[0].cover[0].url
  8192. .split(".")
  8193. [
  8194. _this.studyJuri[0].cover[0].url.split(".").length - 1
  8195. ].toLocaleUpperCase()
  8196. ) != -1
  8197. ) {
  8198. _this.fileType = 1;
  8199. } else {
  8200. _this.fileType = 0;
  8201. }
  8202. _this.imgChange(null, null, type);
  8203. } else if (type == 2) {
  8204. _this.upToolImg = data.Location;
  8205. _this.imgChange(null, null, type);
  8206. _this.addCourseWorks(i);
  8207. } else if (type == 4) {
  8208. _this.addPz("3", data.Location);
  8209. } else if (type == 5) {
  8210. _this.addImgDrawImG(data.Location);
  8211. } else if (type == 6) {
  8212. var _ftype = 1;
  8213. if (
  8214. c.indexOf(
  8215. data.Location.split(".")[
  8216. data.Location.split(".").length - 1
  8217. ].toLocaleUpperCase()
  8218. ) != -1
  8219. ) {
  8220. _ftype = 5;
  8221. } else if (
  8222. b.indexOf(
  8223. data.Location.split(".")[
  8224. data.Location.split(".").length - 1
  8225. ].toLocaleUpperCase()
  8226. ) != -1
  8227. ) {
  8228. _ftype = 4;
  8229. } else {
  8230. _ftype = 1;
  8231. }
  8232. _this.plworkFile.push({
  8233. name: file.name,
  8234. url: data.Location,
  8235. uid: file.uid,
  8236. fileType: _ftype,
  8237. username:
  8238. _this.plworkFile.length + 1 > 9
  8239. ? _this.plworkFile.length + 1
  8240. : "0" + (_this.plworkFile.length + 1),
  8241. });
  8242. }
  8243. _this.imgChange(null, null, type);
  8244. console.log(data.Location);
  8245. // _this.$message.success('上传成功'+data.Location)
  8246. }
  8247. });
  8248. }
  8249. }
  8250. },
  8251. beforeUpload2(event, type) {
  8252. var file = event.target.files[0];
  8253. var credentials = {
  8254. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8255. secretAccessKey: "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",
  8256. }; //秘钥形式的登录上传
  8257. window.AWS.config.update(credentials);
  8258. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8259. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8260. var _this = this;
  8261. _this.progress = 0;
  8262. _this.proVisible = true;
  8263. if (file) {
  8264. var params = {
  8265. Key:
  8266. file.name.split(".")[0] +
  8267. new Date().getTime() +
  8268. "." +
  8269. file.name.split(".")[file.name.split(".").length - 1],
  8270. ContentType: file.type,
  8271. Body: file,
  8272. "Access-Control-Allow-Credentials": "*",
  8273. ACL: "public-read",
  8274. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8275. var options = {
  8276. partSize: 2048 * 1024 * 1024,
  8277. queueSize: 2,
  8278. leavePartsOnError: true,
  8279. };
  8280. bucket
  8281. .upload(params, options)
  8282. .on("httpUploadProgress", function (evt) {
  8283. //这里可以写进度条
  8284. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8285. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  8286. })
  8287. .send(function (err, data) {
  8288. _this.progress = 100;
  8289. setTimeout(() => {
  8290. _this.proVisible = false;
  8291. }, 1000);
  8292. if (err) {
  8293. var a = _this.$refs.upload1.uploadFiles;
  8294. a.splice(a.length - 1, a.length);
  8295. _this.$message.error("上传失败");
  8296. } else {
  8297. if (type == 2) {
  8298. _this.studyJuri[0].upVedio.push({
  8299. name: file.name,
  8300. url: data.Location,
  8301. uid: file.uid,
  8302. });
  8303. _this.imgChange(null, null, type);
  8304. } else if (type == 3) {
  8305. _this.studyJuri[0].upFile.push({
  8306. name: file.name,
  8307. url: data.Location,
  8308. uid: file.uid,
  8309. });
  8310. _this.imgChange(null, null, type);
  8311. }
  8312. console.log(data.Location);
  8313. }
  8314. });
  8315. }
  8316. },
  8317. allScrell() {
  8318. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  8319. },
  8320. nextToolindex(type) {
  8321. if (type == 'last') {
  8322. if (this.toolIndex == 0) {
  8323. this.$message.error("已经是第一个步骤")
  8324. return;
  8325. }
  8326. this.toolIndex = this.toolIndex - 1
  8327. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  8328. } else if (type == 'next') {
  8329. if (this.toolIndex == this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose.length - 1) {
  8330. this.$message.error("已经是最后一个步骤")
  8331. return;
  8332. }
  8333. this.toolIndex = this.toolIndex + 1
  8334. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  8335. }
  8336. this.$forceUpdate();
  8337. },
  8338. checkBz(index) {
  8339. this.toolIndex = index
  8340. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  8341. this.$forceUpdate();
  8342. },
  8343. nextOrpreSteps(t) {
  8344. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  8345. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  8346. return;
  8347. }
  8348. var b = this.chapInfoList.length - 1;
  8349. if (t == 0) {
  8350. if (this.courseType == 0) {
  8351. if (this.taskCount == 0) {
  8352. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  8353. if (this.IsLookOpen) {
  8354. if (
  8355. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  8356. ) {
  8357. if (
  8358. this.courseDetail.userid != this.userid &&
  8359. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  8360. ) {
  8361. this.$message.error("任务未解锁");
  8362. } else {
  8363. this.$message.error("上一任务未解锁");
  8364. }
  8365. return;
  8366. }
  8367. }
  8368. this.navList[this.courseType].isOpen = false;
  8369. this.courseType = b;
  8370. this.taskCount =
  8371. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  8372. .length - 1;
  8373. this.navList[this.courseType].isOpen = true;
  8374. } else {
  8375. this.taskCount--;
  8376. }
  8377. } else {
  8378. if (this.taskCount == 0) {
  8379. this.navList[this.courseType].isOpen = false;
  8380. this.courseType--;
  8381. this.taskCount =
  8382. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  8383. .length - 1;
  8384. this.navList[this.courseType].isOpen = true;
  8385. } else {
  8386. this.taskCount--;
  8387. }
  8388. }
  8389. } else {
  8390. if (this.courseType == b) {
  8391. if (
  8392. this.taskCount ==
  8393. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  8394. 1
  8395. ) {
  8396. this.navList[this.courseType].isOpen = false;
  8397. this.courseType = 0;
  8398. this.taskCount = 0;
  8399. this.navList[this.courseType].isOpen = true;
  8400. } else {
  8401. var bbb = parseInt(this.taskCount) + 1;
  8402. if (
  8403. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  8404. .isLook &&
  8405. this.courseDetail.userid != this.userid &&
  8406. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  8407. this.IsLookOpen
  8408. ) {
  8409. this.$message.error("任务未解锁");
  8410. return;
  8411. }
  8412. this.taskCount++;
  8413. if (this.IsLookOpen) {
  8414. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8415. this.taskCount
  8416. ].isLook = true;
  8417. this.addCourseState(3);
  8418. }
  8419. }
  8420. } else {
  8421. if (
  8422. this.taskCount ==
  8423. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  8424. 1
  8425. ) {
  8426. var bbb = parseInt(this.courseType) + 1;
  8427. if (
  8428. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  8429. this.courseDetail.userid != this.userid &&
  8430. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  8431. this.IsLookOpen
  8432. ) {
  8433. this.$message.error("任务未解锁");
  8434. return;
  8435. }
  8436. this.navList[this.courseType].isOpen = false;
  8437. this.courseType++;
  8438. this.taskCount = 0;
  8439. this.navList[this.courseType].isOpen = true;
  8440. } else {
  8441. var bbb = parseInt(this.taskCount) + 1;
  8442. if (
  8443. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  8444. .isLook &&
  8445. this.courseDetail.userid != this.userid &&
  8446. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  8447. this.IsLookOpen
  8448. ) {
  8449. this.$message.error("任务未解锁");
  8450. return;
  8451. }
  8452. this.taskCount++;
  8453. }
  8454. if (this.IsLookOpen) {
  8455. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8456. this.taskCount
  8457. ].isLook = true;
  8458. this.addCourseState(3);
  8459. }
  8460. }
  8461. }
  8462. document.scrollingElement.scrollTop = 0;
  8463. this.showType = 0;
  8464. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  8465. this.toolIndex = null
  8466. this.isNoHomeWork = false;
  8467. (this.studyJuri = [
  8468. {
  8469. content: "",
  8470. cover: [],
  8471. upVedio: [],
  8472. upFile: [],
  8473. },
  8474. ]),
  8475. (this.radio = []);
  8476. this.isClickNav = "";
  8477. this.selectPz();
  8478. this.getHomeWork();
  8479. this.getCourseDetail();
  8480. this.$forceUpdate();
  8481. },
  8482. openTask(s, n, i) {
  8483. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  8484. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  8485. return;
  8486. }
  8487. if (this.IsLookOpen) {
  8488. if (
  8489. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  8490. this.courseDetail.userid != this.userid &&
  8491. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  8492. ) {
  8493. this.$message.error("任务未解锁");
  8494. return;
  8495. }
  8496. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  8497. if (
  8498. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  8499. .isLook
  8500. ) {
  8501. this.$message.error("上一任务未解锁");
  8502. return;
  8503. }
  8504. } else if (s > this.courseType) {
  8505. if (n > 0) {
  8506. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  8507. this.$message.error("上一任务未解锁");
  8508. return;
  8509. }
  8510. } else {
  8511. if (
  8512. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  8513. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  8514. ].isLook
  8515. ) {
  8516. this.$message.error("上一任务未解锁");
  8517. return;
  8518. }
  8519. }
  8520. }
  8521. }
  8522. this.courseType = s;
  8523. this.navId = i;
  8524. this.taskCount = n;
  8525. if (this.IsLookOpen) {
  8526. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8527. this.taskCount
  8528. ].isLook = true;
  8529. this.addCourseState(3);
  8530. }
  8531. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  8532. this.isCloseList[ci].isClose = 0;
  8533. }
  8534. this.showType = 0;
  8535. this.isNoHomeWork = false;
  8536. (this.studyJuri = [
  8537. {
  8538. content: "",
  8539. cover: [],
  8540. upVedio: [],
  8541. upFile: [],
  8542. },
  8543. ]),
  8544. (this.radio = []);
  8545. document.scrollingElement.scrollTop = 0;
  8546. this.toolIndex = null
  8547. // setTimeout(() => {
  8548. // let a = document.getElementById(i);
  8549. // if (a.offsetTop - 110 == 0) {
  8550. // window.scrollTo(0, 0);
  8551. // } else {
  8552. // window.scrollTo(0, a.offsetTop);
  8553. // }
  8554. // }, 0);
  8555. this.selectPz();
  8556. this.getHomeWork();
  8557. this.getCourseDetail();
  8558. },
  8559. get(i) {
  8560. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  8561. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  8562. return;
  8563. }
  8564. this.navList[i].isOpen = !this.navList[i].isOpen;
  8565. },
  8566. addQuestion() {
  8567. this.answerList.push({
  8568. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  8569. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  8570. });
  8571. let params = [
  8572. {
  8573. uid: this.userid,
  8574. cid: this.id,
  8575. stage: this.courseType,
  8576. task: this.taskCount,
  8577. tool: this.toolindex,
  8578. content: JSON.stringify(this.answerList),
  8579. type: 3,
  8580. },
  8581. ];
  8582. this.ajax
  8583. .post(this.$store.state.api + "addCourseWorks", params)
  8584. .then((res) => {
  8585. this.$message({
  8586. message: "提交成功",
  8587. type: "success",
  8588. });
  8589. this.answerList = [];
  8590. this.questionAnswer = ""
  8591. this.answerDialogVisible = false;
  8592. this.selectStudent();
  8593. this.selectSWorks();
  8594. this.selectSLook();
  8595. })
  8596. .catch((err) => {
  8597. this.$message.error("提交失败");
  8598. console.error(err);
  8599. });
  8600. },
  8601. addQuestionTeacher() {
  8602. this.answerList.push({
  8603. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  8604. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  8605. });
  8606. let params = [
  8607. {
  8608. uid: this.sStudent.userid,
  8609. cid: this.id,
  8610. stage: this.courseType,
  8611. task: this.taskCount,
  8612. tool: this.toolindex,
  8613. content: JSON.stringify(this.answerList),
  8614. type: 3,
  8615. ateacher: this.userid,
  8616. },
  8617. ];
  8618. this.ajax
  8619. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  8620. .then((res) => {
  8621. this.$message({
  8622. message: "提交成功",
  8623. type: "success",
  8624. });
  8625. this.answerList = [];
  8626. this.questionAnswer = ""
  8627. this.answerDialogVisibleTeacher = false;
  8628. this.selectStudent();
  8629. this.selectSWorks();
  8630. this.selectSLook();
  8631. })
  8632. .catch((err) => {
  8633. this.$message.error("提交失败");
  8634. console.error(err);
  8635. });
  8636. },
  8637. refreshCourse() {
  8638. this.navList = [];
  8639. this.getCourseDetail(1)
  8640. },
  8641. setPz() {
  8642. if (this.ispzType == 4) {
  8643. this.ispzType = 0
  8644. this.pzDialog = false
  8645. return;
  8646. }
  8647. this.ispzType = 4
  8648. this.pzDialog = true
  8649. this.selectPz();
  8650. },
  8651. getCourseDetail(type, gindex) {
  8652. let loading;
  8653. if (type != 2) {
  8654. loading = this.$loading.service({
  8655. background: "rgba(255, 255, 255, 0.7)",
  8656. target: document.querySelector(".student_table"),
  8657. });
  8658. }
  8659. let params = {
  8660. courseId: this.id,
  8661. };
  8662. this.ajax
  8663. .get(this.$store.state.api + "selectCourseDetail3", params)
  8664. .then((res) => {
  8665. if (type != 2) {
  8666. loading.close();
  8667. if (this.courseType > (JSON.parse(res.data[0][0].chapters).length - 1)) {
  8668. this.courseType = (JSON.parse(res.data[0][0].chapters).length - 1)
  8669. }
  8670. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  8671. .chapterInfo[0].taskJson;
  8672. var b = [
  8673. "AVI",
  8674. "NAVI",
  8675. "MPEG",
  8676. "ASF",
  8677. "MOV",
  8678. "WMV",
  8679. "3GP",
  8680. "RM",
  8681. "RMVB",
  8682. "FLV",
  8683. "F4V",
  8684. "H.264",
  8685. "H.265",
  8686. "REAL VIDEO",
  8687. "MKV",
  8688. "WebM",
  8689. "HDDVD",
  8690. "MP4",
  8691. "MPG",
  8692. "M4V",
  8693. "MGV",
  8694. "OGV",
  8695. "QTM",
  8696. "STR",
  8697. "AMC",
  8698. "DVX",
  8699. "EVO",
  8700. "DAT",
  8701. "OGG",
  8702. "OGM",
  8703. "MP3",
  8704. ];
  8705. for (var i = 0; i < a.length; i++) {
  8706. var c = a[i].chapterData;
  8707. this.vedio[i] = [];
  8708. this.textList[i] = [];
  8709. this.lineList[i] = [];
  8710. this.chapToolList[i] = [];
  8711. this.file[i] = [];
  8712. this.fileC[i] = [];
  8713. for (var j = 0; j < c.length; j++) {
  8714. if (c[j].type == 7) {
  8715. this.chapToolList[i].push(c[j]);
  8716. } else if (c[j].type == 8) {
  8717. this.lineList[i].push(c[j]);
  8718. } else if (c[j].type == 6) {
  8719. this.textList[i].push(c[j]);
  8720. } else if (c[j].type == 12) {
  8721. this.fileC[i].push(c[j]);
  8722. } else {
  8723. if (
  8724. b.indexOf(
  8725. c[j].url
  8726. .split(".")
  8727. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  8728. ) != -1
  8729. ) {
  8730. this.vedio[i].push(c[j]);
  8731. } else {
  8732. this.file[i].push(c[j]);
  8733. }
  8734. }
  8735. }
  8736. var d = JSON.parse(JSON.stringify(this.playerOptions));
  8737. d.sources[0].src =
  8738. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  8739. this.playerO[i] = d;
  8740. }
  8741. this.courseDetail = res.data[0][0];
  8742. this.tcid = this.arrayToArray(this.courseDetail.juri ? this.courseDetail.juri.split(",") : [], this.tcid2 ? this.tcid2.split(",") : []).join(",")
  8743. console.log(this.tcid);
  8744. this.evalua = res.data[0][0].evaId;
  8745. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  8746. this.courseType
  8747. ];
  8748. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  8749. if (this.tcid && res.data[1].length) {
  8750. let _inviteA = []
  8751. for (var ik = 0; ik < res.data[1].length; ik++) {
  8752. _inviteA.push({ cid: res.data[1][ik].classid, ic: res.data[1][ik].code });
  8753. }
  8754. for (var ik = 0; ik < _inviteA.length; ik++) {
  8755. if (this.arrayToArray(_inviteA[ik].cid.split(","), this.tcid.split(",")).length) {
  8756. this.inviteCode = _inviteA[ik].ic
  8757. break;
  8758. }
  8759. }
  8760. }
  8761. for (var l = 0; l < this.chapInfoList.length; l++) {
  8762. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  8763. for (var m = 0; m < w.length; m++) {
  8764. w[m].id = l + "-" + m;
  8765. }
  8766. }
  8767. if (
  8768. !this.vedio[this.taskCount][0] ||
  8769. this.vedio[this.taskCount][0].url == ""
  8770. ) {
  8771. if (
  8772. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8773. this.taskCount
  8774. ].chapterData.length > 0
  8775. ) {
  8776. // if (
  8777. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8778. // this.taskCount
  8779. // ].chapterData[0].type != 8
  8780. // ) {
  8781. let _url =
  8782. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8783. this.taskCount
  8784. ].chapterData[0].url;
  8785. if (
  8786. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8787. this.taskCount
  8788. ].chapterData[0].type == 8
  8789. ) {
  8790. this.showType = 2;
  8791. if (
  8792. _url.indexOf("https://") == -1 &&
  8793. _url.indexOf("http://") == -1
  8794. ) {
  8795. _url = "https://" + _url;
  8796. }
  8797. this.pptImgUrl1 = _url;
  8798. this.isClickNav = "line0";
  8799. } else if (
  8800. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8801. this.taskCount
  8802. ].chapterData[0].type == 3
  8803. ) {
  8804. if (
  8805. _url
  8806. .split(".")
  8807. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8808. ) {
  8809. this.showType = 3;
  8810. this.pptImgUrl1 = _url;
  8811. this.isClickNav = "word0";
  8812. } else if (
  8813. this.isAssetTypeAnImage(
  8814. _url
  8815. .split(".")
  8816. [_url.split(".").length - 1].toLocaleLowerCase()
  8817. )
  8818. ) {
  8819. this.showType = 4;
  8820. this.pptImgUrl1 = _url;
  8821. this.isClickNav = "word0";
  8822. } else {
  8823. this.showType = 2;
  8824. this.pptImgUrl1 =
  8825. "https://view.officeapps.live.com/op/view.aspx?src=" +
  8826. _url;
  8827. this.isClickNav = "word0";
  8828. }
  8829. } else if (
  8830. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8831. this.taskCount
  8832. ].chapterData[0].type == 6
  8833. ) {
  8834. this.showType = 1;
  8835. this.text = this.textList[this.taskCount][0];
  8836. this.isClickNav = "text0";
  8837. }
  8838. }
  8839. } else {
  8840. this.isClickNav = "video0";
  8841. }
  8842. if (this.toolIndex == null && this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose.length) {
  8843. this.toolIndex = 0
  8844. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  8845. }
  8846. } else {
  8847. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  8848. .chapterInfo[0].taskJson;
  8849. var b = [
  8850. "AVI",
  8851. "NAVI",
  8852. "MPEG",
  8853. "ASF",
  8854. "MOV",
  8855. "WMV",
  8856. "3GP",
  8857. "RM",
  8858. "RMVB",
  8859. "FLV",
  8860. "F4V",
  8861. "H.264",
  8862. "H.265",
  8863. "REAL VIDEO",
  8864. "MKV",
  8865. "WebM",
  8866. "HDDVD",
  8867. "MP4",
  8868. "MPG",
  8869. "M4V",
  8870. "MGV",
  8871. "OGV",
  8872. "QTM",
  8873. "STR",
  8874. "AMC",
  8875. "DVX",
  8876. "EVO",
  8877. "DAT",
  8878. "OGG",
  8879. "OGM",
  8880. "MP3",
  8881. ];
  8882. for (var i = 0; i < a.length; i++) {
  8883. var c = a[i].chapterData;
  8884. this.vedio[i] = [];
  8885. this.textList[i] = [];
  8886. this.lineList[i] = [];
  8887. this.chapToolList[i] = [];
  8888. this.file[i] = [];
  8889. this.fileC[i] = [];
  8890. for (var j = 0; j < c.length; j++) {
  8891. if (c[j].type == 7) {
  8892. this.chapToolList[i].push(c[j]);
  8893. } else if (c[j].type == 8) {
  8894. this.lineList[i].push(c[j]);
  8895. } else if (c[j].type == 6) {
  8896. this.textList[i].push(c[j]);
  8897. } else if (c[j].type == 12) {
  8898. this.fileC[i].push(c[j]);
  8899. } else {
  8900. if (
  8901. b.indexOf(
  8902. c[j].url
  8903. .split(".")
  8904. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  8905. ) != -1
  8906. ) {
  8907. this.vedio[i].push(c[j]);
  8908. } else {
  8909. this.file[i].push(c[j]);
  8910. }
  8911. }
  8912. }
  8913. var d = JSON.parse(JSON.stringify(this.playerOptions));
  8914. d.sources[0].src =
  8915. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  8916. this.playerO[i] = d;
  8917. }
  8918. if (
  8919. !this.vedio[this.taskCount][0] ||
  8920. this.vedio[this.taskCount][0].url == ""
  8921. ) {
  8922. if (
  8923. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8924. this.taskCount
  8925. ].chapterData.length > 0
  8926. ) {
  8927. // if (
  8928. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8929. // this.taskCount
  8930. // ].chapterData[0].type != 8
  8931. // ) {
  8932. let _url =
  8933. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8934. this.taskCount
  8935. ].chapterData[0].url;
  8936. if (
  8937. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8938. this.taskCount
  8939. ].chapterData[0].type == 8
  8940. ) {
  8941. this.showType = 2;
  8942. if (
  8943. _url.indexOf("https://") == -1 &&
  8944. _url.indexOf("http://") == -1
  8945. ) {
  8946. _url = "https://" + _url;
  8947. }
  8948. this.pptImgUrl1 = _url;
  8949. this.isClickNav = "line0";
  8950. } else if (
  8951. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8952. this.taskCount
  8953. ].chapterData[0].type == 3
  8954. ) {
  8955. if (
  8956. _url
  8957. .split(".")
  8958. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8959. ) {
  8960. this.showType = 3;
  8961. this.pptImgUrl1 = _url;
  8962. this.isClickNav = "word0";
  8963. } else if (
  8964. this.isAssetTypeAnImage(
  8965. _url
  8966. .split(".")
  8967. [_url.split(".").length - 1].toLocaleLowerCase()
  8968. )
  8969. ) {
  8970. this.showType = 4;
  8971. this.pptImgUrl1 = _url;
  8972. this.isClickNav = "word0";
  8973. } else {
  8974. this.showType = 2;
  8975. this.pptImgUrl1 =
  8976. "https://view.officeapps.live.com/op/view.aspx?src=" +
  8977. _url;
  8978. this.isClickNav = "word0";
  8979. }
  8980. } else if (
  8981. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8982. this.taskCount
  8983. ].chapterData[0].type == 6
  8984. ) {
  8985. this.showType = 1;
  8986. this.text = this.textList[this.taskCount][0];
  8987. this.isClickNav = "text0";
  8988. }
  8989. }
  8990. } else {
  8991. this.isClickNav = "video0";
  8992. }
  8993. this.$forceUpdate();
  8994. }
  8995. this.$nextTick(() => {
  8996. setTimeout(() => {
  8997. this.checkEva();
  8998. }, 1000);
  8999. });
  9000. let _this = this;
  9001. if (_this.timer) {
  9002. clearInterval(_this.timer);
  9003. _this.timer = null;
  9004. }
  9005. _this.selectSWorks(gindex);
  9006. _this.selectStudent();
  9007. _this.selectSLook();
  9008. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  9009. _this.setCTask();
  9010. }
  9011. if (_this.dialogVisibleGroup) {
  9012. _this.groupJson =
  9013. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  9014. _this.taskCount
  9015. ].toolChoose[_this.toolindex].groupJson;
  9016. }
  9017. _this.timer = setInterval(function () {
  9018. _this.selectSWorks(gindex);
  9019. if (_this.tType == 4 || _this.ispzType == 4) {
  9020. _this.selectPz();
  9021. }
  9022. }, 5000);
  9023. })
  9024. .catch((err) => {
  9025. loading.close();
  9026. console.error(err);
  9027. });
  9028. },
  9029. getCourseGroup(gindex) {
  9030. let params = {
  9031. cid: this.id,
  9032. classid: this.tcid ? this.tcid : '1',
  9033. };
  9034. this.ajax
  9035. .get(this.$store.state.api + "getCourseGroup", params)
  9036. .then((res) => {
  9037. if (res.data && res.data[0].length) {
  9038. if (!this.isGroup) {
  9039. let courseGroup = JSON.parse(res.data[0][0].group)
  9040. courseGroup.group = courseGroup.group.filter(el => {
  9041. el.works = []
  9042. return el
  9043. });
  9044. this.courseGroup = courseGroup
  9045. let groupPerson = res.data[1]
  9046. let group = JSON.parse(res.data[0][0].group).group
  9047. let courseGroupStudent = {}
  9048. let courseGroupStudentUid = {}
  9049. for (var i = 0; i < group.length; i++) {
  9050. courseGroupStudent[group[i].id] = []
  9051. courseGroupStudentUid[group[i].id] = []
  9052. for (var j = 0; j < groupPerson.length; j++) {
  9053. if (groupPerson[j].groupCid == group[i].id) {
  9054. courseGroupStudent[group[i].id].push(groupPerson[j])
  9055. courseGroupStudentUid[group[i].id].push(groupPerson[j].userid)
  9056. }
  9057. }
  9058. }
  9059. this.courseGroupStudent = courseGroupStudent
  9060. this.courseGroupStudentUid = courseGroupStudentUid
  9061. }
  9062. this.isGroup = true
  9063. this.selectSWorks(gindex);
  9064. } else {
  9065. this.selectSWorks(gindex);
  9066. this.isGroup = false
  9067. }
  9068. })
  9069. .catch((err) => {
  9070. // this.$message.error("网络不佳");
  9071. console.error(err);
  9072. });
  9073. },
  9074. setOperationTime() {
  9075. let _this = this
  9076. if (_this.opertimer) {
  9077. clearInterval(_this.opertimer);
  9078. _this.opertimer = null;
  9079. }
  9080. _this.opertimer = setInterval(() => {
  9081. _this.setoTime('600')
  9082. }, 600000);
  9083. },
  9084. setoTime(time) {
  9085. let params = [
  9086. {
  9087. uid: this.userid,
  9088. cid: this.id,
  9089. type: '2',
  9090. time: time,
  9091. },
  9092. ];
  9093. this.ajax
  9094. .post(this.$store.state.api + "addOperationTimeT2", params)
  9095. .then((res) => {
  9096. })
  9097. .catch((err) => {
  9098. console.error(err);
  9099. });
  9100. },
  9101. addPz(type, content) {
  9102. if (type == "1" && this.pzConText == "") {
  9103. this.$message.error("批注不能为空!");
  9104. return;
  9105. }
  9106. let params = [
  9107. {
  9108. cid: this.id,
  9109. uid: this.userid,
  9110. s: this.courseType,
  9111. t: this.taskCount,
  9112. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  9113. type: type,
  9114. },
  9115. ];
  9116. this.ajax
  9117. .post(this.$store.state.api + "addPz2", params)
  9118. .then((res) => {
  9119. this.$message({
  9120. message: "添加成功",
  9121. type: "success",
  9122. });
  9123. this.pzConText = "";
  9124. this.addPzDialog = false;
  9125. this.selectPz();
  9126. })
  9127. .catch((err) => {
  9128. this.$message.error("添加失败");
  9129. console.error(err);
  9130. });
  9131. },
  9132. deletePz(id) {
  9133. this.$confirm("确定删除此批注吗?", "提示", {
  9134. confirmButtonText: "确定",
  9135. cancelButtonText: "取消",
  9136. type: "warning",
  9137. })
  9138. .then(() => {
  9139. let params = [
  9140. {
  9141. id: id,
  9142. },
  9143. ];
  9144. this.ajax
  9145. .post(this.$store.state.api + "deletePz", params)
  9146. .then((res) => {
  9147. this.$message({
  9148. message: "删除成功",
  9149. type: "success",
  9150. });
  9151. this.selectPz();
  9152. })
  9153. .catch((err) => {
  9154. this.$message.error("网络异常");
  9155. console.error(err);
  9156. });
  9157. })
  9158. .catch(() => { });
  9159. },
  9160. selectPz() {
  9161. let params = {
  9162. cid: this.id,
  9163. s: this.courseType,
  9164. t: this.taskCount,
  9165. };
  9166. this.ajax
  9167. .get(this.$store.state.api + "selectPzList", params)
  9168. .then((res) => {
  9169. this.pzList = res.data[0];
  9170. })
  9171. .catch((err) => {
  9172. console.error(err);
  9173. });
  9174. },
  9175. updateSLook() {
  9176. let params = {
  9177. sopen: this.sIsOpen == false ? 1 : 2,
  9178. cid: this.id,
  9179. };
  9180. this.ajax
  9181. .get(this.$store.state.api + "updateCourseSLook", params)
  9182. .then((res) => {
  9183. if (this.sIsOpen == true) {
  9184. this.$message({
  9185. message: "权限设置成功",
  9186. type: "success",
  9187. });
  9188. } else {
  9189. this.$message({
  9190. message: "权限关闭成功",
  9191. type: "success",
  9192. });
  9193. }
  9194. })
  9195. .catch((err) => {
  9196. console.error(err);
  9197. });
  9198. },
  9199. updateFollow() {
  9200. let params = [
  9201. {
  9202. sopen: this.IsFollow == false ? 1 : 2,
  9203. cid: this.id,
  9204. },
  9205. ];
  9206. this.ajax
  9207. .post(this.$store.state.api + "updateCourseFollow", params)
  9208. .then((res) => {
  9209. if (this.IsFollow == true) {
  9210. this.$message({
  9211. message: "开启成功",
  9212. type: "success",
  9213. });
  9214. } else {
  9215. this.$message({
  9216. message: "关闭成功",
  9217. type: "success",
  9218. });
  9219. }
  9220. this.setCTask();
  9221. })
  9222. .catch((err) => {
  9223. console.error(err);
  9224. });
  9225. },
  9226. setCTask() {
  9227. let params = [
  9228. {
  9229. sopen: this.courseType + '-' + this.taskCount,
  9230. cid: this.id,
  9231. },
  9232. ];
  9233. this.ajax
  9234. .post(this.$store.state.api + "updateCourseFollowC", params)
  9235. .then((res) => {
  9236. })
  9237. .catch((err) => {
  9238. console.error(err);
  9239. });
  9240. },
  9241. updateLookOpen() {
  9242. let params = [
  9243. {
  9244. sopen: this.IsLookOpen == false ? 1 : 2,
  9245. cid: this.id,
  9246. },
  9247. ];
  9248. this.ajax
  9249. .post(this.$store.state.api + "updateCourseLookOpen", params)
  9250. .then((res) => {
  9251. if (this.IsLookOpen == true) {
  9252. // if (this.courseType != 0 && this.taskCount != 0) {
  9253. // this.openTask(0, 0, "0-0");
  9254. // }
  9255. this.$message({
  9256. message: "权限设置成功",
  9257. type: "success",
  9258. });
  9259. } else {
  9260. this.$message({
  9261. message: "权限关闭成功",
  9262. type: "success",
  9263. });
  9264. }
  9265. this.getCourseState(2);
  9266. })
  9267. .catch((err) => {
  9268. console.error(err);
  9269. });
  9270. },
  9271. selectSLook() {
  9272. let params = {
  9273. cid: this.id,
  9274. };
  9275. this.ajax
  9276. .get(this.$store.state.api + "selectCourseSLook", params)
  9277. .then((res) => {
  9278. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  9279. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  9280. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  9281. if (!this.IsLookOpen) {
  9282. this.setNavList();
  9283. } else {
  9284. this.getCourseState(1);
  9285. }
  9286. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  9287. let _followC = res.data[0][0].followC.split('-')
  9288. if (this.courseType != _followC[0] || this.taskCount != _followC[1]) {
  9289. this.navList[this.courseType].isOpen = false;
  9290. this.courseType = _followC[0]
  9291. this.navList[this.courseType].isOpen = true;
  9292. this.taskCount = parseInt(_followC[1])
  9293. this.navId = res.data[0][0].followC;
  9294. this.getCourseDetail()
  9295. }
  9296. }
  9297. })
  9298. .catch((err) => {
  9299. console.error(err);
  9300. });
  9301. },
  9302. setNavList() {
  9303. if (this.navList.length == 0) {
  9304. this.navList = [];
  9305. for (var l = 0; l < this.chapInfoList.length; l++) {
  9306. var q = this.chapInfoList[l].dyName;
  9307. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  9308. var e;
  9309. this.navList.push({
  9310. dyName: q,
  9311. isOpen: l === 0 ? true : false,
  9312. task: [],
  9313. });
  9314. for (var r = 0; r < w.length; r++) {
  9315. e = w[r].task;
  9316. if (this.chapInfoList[l].easy == 1) {
  9317. this.navList[l].task.push({
  9318. taskName: q,
  9319. id: l + "-" + r,
  9320. isLook: w[r].isLook,
  9321. });
  9322. } else {
  9323. this.navList[l].task.push({
  9324. taskName: e,
  9325. id: l + "-" + r,
  9326. isLook: w[r].isLook,
  9327. });
  9328. }
  9329. // this.navId = this.navId ? this.navId : l + "-" + r;
  9330. // this.navId = l + "-" + r;
  9331. }
  9332. }
  9333. this.navList[0].isOpen = false;
  9334. this.navList[this.courseType].isOpen = true;
  9335. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  9336. } else {
  9337. this.setNavList2();
  9338. }
  9339. },
  9340. setNavList2() {
  9341. for (var l = 0; l < this.chapInfoList.length; l++) {
  9342. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  9343. for (var r = 0; r < w.length; r++) {
  9344. this.navList[l].task[r].isLook = w[r].isLook;
  9345. }
  9346. }
  9347. if (
  9348. this.IsLookOpen &&
  9349. !this.navList[this.courseType].task[this.taskCount].isLook
  9350. ) {
  9351. this.openTask(0, 0, "0-0");
  9352. }
  9353. this.$forceUpdate();
  9354. },
  9355. getCourseState(type) {
  9356. let params = {
  9357. cid: this.id,
  9358. };
  9359. this.ajax
  9360. .get(this.$store.state.api + "getCourseState", params)
  9361. .then((res) => {
  9362. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  9363. this.chapInfoList = JSON.parse(res.data[0][0].state);
  9364. this.setNavList();
  9365. this.$forceUpdate();
  9366. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  9367. this.addCourseState(2);
  9368. } else {
  9369. this.addCourseState(1);
  9370. }
  9371. })
  9372. .catch((err) => {
  9373. console.error(err);
  9374. });
  9375. },
  9376. addCourseState(type) {
  9377. let _state = this.chapInfoList;
  9378. // this.courseType this.taskCount
  9379. if (type == 1 || type == 2) {
  9380. for (var i = 0; i < _state.length; i++) {
  9381. let el = _state[i].chapterInfo[0].taskJson;
  9382. for (var j = 0; j < el.length; j++) {
  9383. // if (i == 0 && j == 0) {
  9384. // el[j].isLook = true;
  9385. // } else {
  9386. // el[j].isLook = false;
  9387. // }
  9388. if (
  9389. this.courseType > i ||
  9390. (this.courseType == i && this.taskCount + 1 > j)
  9391. ) {
  9392. el[j].isLook = true;
  9393. } else {
  9394. el[j].isLook = false;
  9395. }
  9396. }
  9397. }
  9398. }
  9399. let params = [
  9400. {
  9401. cid: this.id,
  9402. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  9403. },
  9404. ];
  9405. this.ajax
  9406. .post(
  9407. this.$store.state.api +
  9408. (type == 1 ? "addCourseState" : "updateCourseSate"),
  9409. params
  9410. )
  9411. .then((res) => {
  9412. if (this.IsLookOpen) {
  9413. this.setNavList();
  9414. }
  9415. if (type == 3 && type == 2) {
  9416. this.getCourseState(1);
  9417. }
  9418. })
  9419. .catch((err) => {
  9420. console.error(err);
  9421. });
  9422. },
  9423. getHomeWork() {
  9424. let params = {
  9425. cid: this.id,
  9426. stage: this.courseType,
  9427. task: this.taskCount,
  9428. uid: this.userid,
  9429. };
  9430. this.ajax
  9431. .get(this.$store.state.api + "selectWork", params)
  9432. .then((res) => {
  9433. if (res.data[0].length > 0) {
  9434. this.studyJuri = JSON.parse(res.data[0][0].content);
  9435. this.isNoHomeWork = true;
  9436. }
  9437. })
  9438. .catch((err) => {
  9439. console.error(err);
  9440. });
  9441. },
  9442. isAssetTypeAnImage(ext) {
  9443. return (
  9444. [
  9445. "png",
  9446. "jpg",
  9447. "jpeg",
  9448. "bmp",
  9449. "gif",
  9450. "webp",
  9451. "psd",
  9452. "svg",
  9453. "tiff",
  9454. ].indexOf(ext) !== -1
  9455. );
  9456. },
  9457. switchVideo(media) {
  9458. this.playerO = {};
  9459. this.playerOptions.poster = "";
  9460. this.playerOptions.sources[0].src = media;
  9461. this.playerO = this.playerOptions;
  9462. },
  9463. onPlayerPlay() { },
  9464. lookVedio(u, i) {
  9465. this.isClickNav = "";
  9466. // this.playerOptions.sources[0].src = u;
  9467. var d = JSON.parse(JSON.stringify(this.playerOptions));
  9468. d.sources[0].src = u;
  9469. this.playerO[this.taskCount] = d;
  9470. this.showType = 0;
  9471. this.isClickNav = "video" + i;
  9472. this.$forceUpdate();
  9473. },
  9474. lookText(i, t) {
  9475. this.isClickNav = "";
  9476. this.text = this.textList[i][t];
  9477. // this.dialogVisible1 = true;
  9478. this.showType = 1;
  9479. this.isClickNav = "text" + t;
  9480. },
  9481. lookTools(i, t) {
  9482. this.chapTools = this.chapToolList[i][t];
  9483. this.dialogVisible2 = true;
  9484. },
  9485. openFile(f) {
  9486. this.pptImgUrl = "";
  9487. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  9488. if (
  9489. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  9490. -1
  9491. ) {
  9492. this.pptImgUrl =
  9493. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  9494. this.showPDF = false;
  9495. this.dialogVisible3 = true;
  9496. } else if (
  9497. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  9498. ) {
  9499. this.pptImgUrl = f;
  9500. this.showPDF = true;
  9501. this.dialogVisible3 = true;
  9502. }
  9503. },
  9504. openTable(f) {
  9505. this.tableJson = JSON.parse(f.works);
  9506. this.$forceUpdate();
  9507. this.dialogVisibleTable2 = true;
  9508. },
  9509. openWord(f) {
  9510. this.tableJson = JSON.parse(f.works);
  9511. this.$forceUpdate();
  9512. this.dialogVisibleTable3 = true;
  9513. },
  9514. doUrl(url, i) {
  9515. this.isClickNav = "";
  9516. this.pptImgUrl1 = "";
  9517. this.showType = 2;
  9518. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  9519. url = "https://" + url;
  9520. }
  9521. this.pptImgUrl1 = url;
  9522. this.isClickNav = "line" + i;
  9523. },
  9524. downFile(f, i) {
  9525. this.isClickNav = "";
  9526. this.pptImgUrl1 = "";
  9527. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  9528. if (
  9529. a.indexOf(
  9530. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  9531. ) != -1
  9532. ) {
  9533. this.pptImgUrl1 =
  9534. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  9535. // this.dialogVisible3 = true;
  9536. this.showType = 2;
  9537. } else if (
  9538. this.isAssetTypeAnImage(
  9539. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  9540. )
  9541. ) {
  9542. this.showType = 4;
  9543. this.pptImgUrl1 = f.url;
  9544. } else if (
  9545. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  9546. "PDF"
  9547. ) {
  9548. this.pptImgUrl1 = f.url;
  9549. // this.dialogVisible3 = true;
  9550. this.showType = 3;
  9551. } else {
  9552. window.open(this.file[i].url);
  9553. }
  9554. this.isClickNav = "word" + i;
  9555. },
  9556. downFileList(i) {
  9557. window.open(this.noImgList[i].url);
  9558. },
  9559. openAddWork() {
  9560. this.dialogVisible = true;
  9561. },
  9562. addBzWorks() {
  9563. let params = [
  9564. {
  9565. uid: this.userid,
  9566. cid: this.id,
  9567. stage: this.courseType,
  9568. task: this.taskCount,
  9569. tool: this.toolindex,
  9570. content: JSON.stringify(this.eScore),
  9571. type: 6,
  9572. },
  9573. ];
  9574. this.ajax
  9575. .post(this.$store.state.api + "addCourseWorks", params)
  9576. .then((res) => {
  9577. this.$message({
  9578. message: "提交成功",
  9579. type: "success",
  9580. });
  9581. this.eScore = { eBzText: "", eStar: [] };
  9582. this.studentEvalDialogVisible = false;
  9583. this.selectSWorks();
  9584. })
  9585. .catch((err) => {
  9586. this.$message.error("提交失败");
  9587. console.error(err);
  9588. });
  9589. },
  9590. addBzWorksTeacher() {
  9591. let params = [
  9592. {
  9593. uid: this.sStudent.userid,
  9594. cid: this.id,
  9595. stage: this.courseType,
  9596. task: this.taskCount,
  9597. tool: this.toolindex,
  9598. content: JSON.stringify(this.eScore),
  9599. type: 6,
  9600. },
  9601. ];
  9602. this.ajax
  9603. .post(this.$store.state.api + "addCourseWorks", params)
  9604. .then((res) => {
  9605. this.$message({
  9606. message: "提交成功",
  9607. type: "success",
  9608. });
  9609. this.eScore = { eBzText: "", eStar: [] };
  9610. this.studentEvalDialogVisibleTeacher = false;
  9611. this.selectSWorks();
  9612. })
  9613. .catch((err) => {
  9614. this.$message.error("提交失败");
  9615. console.error(err);
  9616. });
  9617. },
  9618. addStudentAsk() {
  9619. if (!this.radio.length) {
  9620. this.$message.error("请选择选项");
  9621. return;
  9622. }
  9623. for (var i = 0; i < this.askJson.askCount; i++) {
  9624. if (
  9625. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9626. (this.radio[i] !== 0 && !this.radio[i])
  9627. ) {
  9628. this.$message.error("请选择选项");
  9629. return;
  9630. }
  9631. }
  9632. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  9633. let params = [
  9634. {
  9635. uid: this.userid,
  9636. cid: this.id,
  9637. stage: this.courseType,
  9638. task: this.taskCount,
  9639. tool: this.toolindex,
  9640. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9641. type: 2,
  9642. },
  9643. ];
  9644. this.ajax
  9645. .post(this.$store.state.api + "addCourseWorks", params)
  9646. .then((res) => {
  9647. this.$message({
  9648. message: "提交成功",
  9649. type: "success",
  9650. });
  9651. this.askList = [];
  9652. this.dialogVisible5 = false;
  9653. this.selectStudent();
  9654. this.selectSWorks();
  9655. this.selectSLook();
  9656. })
  9657. .catch((err) => {
  9658. this.$message.error("提交失败");
  9659. console.error(err);
  9660. });
  9661. },
  9662. addStudentAskTeacher() {
  9663. if (!this.radio.length) {
  9664. this.$message.error("请选择选项");
  9665. return;
  9666. }
  9667. for (var i = 0; i < this.askJson.askCount; i++) {
  9668. if (
  9669. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9670. (this.radio[i] !== 0 && !this.radio[i])
  9671. ) {
  9672. this.$message.error("请选择选项");
  9673. return;
  9674. }
  9675. }
  9676. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  9677. let params = [
  9678. {
  9679. uid: this.sStudent.userid,
  9680. cid: this.id,
  9681. stage: this.courseType,
  9682. task: this.taskCount,
  9683. tool: this.toolindex,
  9684. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9685. type: 2,
  9686. },
  9687. ];
  9688. this.ajax
  9689. .post(this.$store.state.api + "addCourseWorks", params)
  9690. .then((res) => {
  9691. this.$message({
  9692. message: "提交成功",
  9693. type: "success",
  9694. });
  9695. this.askList = [];
  9696. this.dialogVisible5Teacher = false;
  9697. this.selectStudent();
  9698. this.selectSWorks();
  9699. this.selectSLook();
  9700. })
  9701. .catch((err) => {
  9702. this.$message.error("提交失败");
  9703. console.error(err);
  9704. });
  9705. },
  9706. addStudentTest() {
  9707. if (!this.radio.length) {
  9708. this.$message.error("请选择选项");
  9709. return;
  9710. }
  9711. for (var i = 0; i < this.testJson.testCount; i++) {
  9712. if (
  9713. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9714. (this.radio[i] !== 0 && !this.radio[i])
  9715. ) {
  9716. this.$message.error("请选择选项");
  9717. return;
  9718. }
  9719. }
  9720. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  9721. let params = [
  9722. {
  9723. uid: this.userid,
  9724. cid: this.id,
  9725. stage: this.courseType,
  9726. task: this.taskCount,
  9727. tool: this.toolindex,
  9728. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9729. type: 8,
  9730. },
  9731. ];
  9732. this.ajax
  9733. .post(this.$store.state.api + "addCourseWorks", params)
  9734. .then((res) => {
  9735. this.$message({
  9736. message: "提交成功",
  9737. type: "success",
  9738. });
  9739. this.askList = [];
  9740. this.dialogVisibleChoice = false;
  9741. this.selectStudent();
  9742. this.selectSWorks();
  9743. this.selectSLook();
  9744. })
  9745. .catch((err) => {
  9746. this.$message.error("提交失败");
  9747. console.error(err);
  9748. });
  9749. },
  9750. addStudentTestTeacher() {
  9751. if (!this.radio.length) {
  9752. this.$message.error("请选择选项");
  9753. return;
  9754. }
  9755. for (var i = 0; i < this.testJson.testCount; i++) {
  9756. if (
  9757. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9758. (this.radio[i] !== 0 && !this.radio[i])
  9759. ) {
  9760. this.$message.error("请选择选项");
  9761. return;
  9762. }
  9763. }
  9764. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  9765. let params = [
  9766. {
  9767. uid: this.sStudent.userid,
  9768. cid: this.id,
  9769. stage: this.courseType,
  9770. task: this.taskCount,
  9771. tool: this.toolindex,
  9772. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9773. type: 8,
  9774. },
  9775. ];
  9776. this.ajax
  9777. .post(this.$store.state.api + "addCourseWorks", params)
  9778. .then((res) => {
  9779. this.$message({
  9780. message: "提交成功",
  9781. type: "success",
  9782. });
  9783. this.askList = [];
  9784. this.dialogVisibleChoiceTeacher = false;
  9785. this.selectStudent();
  9786. this.selectSWorks();
  9787. this.selectSLook();
  9788. })
  9789. .catch((err) => {
  9790. this.$message.error("提交失败");
  9791. console.error(err);
  9792. });
  9793. },
  9794. addWork() {
  9795. if (this.studyJuri[0].content == "") {
  9796. this.$message.error("请将信息填写完整");
  9797. return;
  9798. } else if (this.studyJuri[0].cover.length == 0) {
  9799. this.$message.error("请将信息填写完整");
  9800. return;
  9801. } else if (this.studyJuri[0].upVedio.length == 0) {
  9802. this.$message.error("请将信息填写完整");
  9803. return;
  9804. }
  9805. if (this.isNoHomeWork) {
  9806. this.$confirm(
  9807. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  9808. "提示",
  9809. {
  9810. confirmButtonText: "确定",
  9811. cancelButtonText: "取消",
  9812. type: "warning",
  9813. }
  9814. )
  9815. .then(() => {
  9816. let params = [
  9817. {
  9818. uid: this.userid,
  9819. cid: this.id,
  9820. stage: this.courseType,
  9821. task: this.taskCount,
  9822. content: JSON.stringify(this.studyJuri),
  9823. },
  9824. ];
  9825. this.ajax
  9826. .post(this.$store.state.api + "addWorks", params)
  9827. .then((res) => {
  9828. this.$message({
  9829. message: "提交成功",
  9830. type: "success",
  9831. });
  9832. this.isNoHomeWork = true;
  9833. this.dialogVisible = false;
  9834. })
  9835. .catch((err) => {
  9836. this.$message.error("提交失败");
  9837. console.error(err);
  9838. });
  9839. })
  9840. .catch(() => { });
  9841. } else {
  9842. let params = [
  9843. {
  9844. uid: this.userid,
  9845. cid: this.id,
  9846. stage: this.courseType,
  9847. task: this.taskCount,
  9848. content: JSON.stringify(this.studyJuri),
  9849. },
  9850. ];
  9851. this.ajax
  9852. .post(this.$store.state.api + "addWorks", params)
  9853. .then((res) => {
  9854. this.$message({
  9855. message: "提交成功",
  9856. type: "success",
  9857. });
  9858. this.isNoHomeWork = true;
  9859. this.dialogVisible = false;
  9860. })
  9861. .catch((err) => {
  9862. this.$message.error("提交失败");
  9863. console.error(err);
  9864. });
  9865. }
  9866. },
  9867. selectCount() {
  9868. let params = {
  9869. cid: this.id,
  9870. chid: this.courseType,
  9871. uid: this.userid,
  9872. };
  9873. this.ajax
  9874. .get(this.$store.state.api + "selectToolsCount", params)
  9875. .then((res) => {
  9876. for (var i = 0; i < res.data[0].length; i++) {
  9877. if (res.data[0][i].tools == 1) {
  9878. this.wbCount = res.data[0][i].count;
  9879. } else if (res.data[0][i].tools == 2) {
  9880. this.wordCount = res.data[0][i].count;
  9881. } else if (res.data[0][i].tools == 3) {
  9882. this.mindCount = res.data[0][i].count;
  9883. } else if (res.data[0][i].tools == 4) {
  9884. this.askCount = res.data[0][i].count;
  9885. } else if (res.data[0][i].tools == 6) {
  9886. this.noteCount = res.data[0][i].count;
  9887. } else if (res.data[0][i].tools == 7) {
  9888. this.mindNetWorkCount = res.data[0][i].count;
  9889. } else if (res.data[0][i].tools == 8) {
  9890. this.libraryCount = res.data[0][i].count;
  9891. } else if (res.data[0][i].tools == 16) {
  9892. this.workCount = res.data[0][i].count;
  9893. } else if (res.data[0][i].tools == 10) {
  9894. this.timeCount = res.data[0][i].count;
  9895. } else if (res.data[0][i].tools == 15) {
  9896. this.answerCount = res.data[0][i].count;
  9897. } else if (res.data[0][i].tools == 18) {
  9898. this.trainCount = res.data[0][i].count;
  9899. }
  9900. }
  9901. })
  9902. .catch((err) => {
  9903. console.error(err);
  9904. });
  9905. },
  9906. openTools(t, i, index, c, sName) {
  9907. var z = JSON.parse(c);
  9908. this.noteName = sName;
  9909. if (t == 4) {
  9910. this.radio = [];
  9911. this.isAnswer = false;
  9912. let b = z[0].anwer;
  9913. this.radio = b;
  9914. this.askJson = z[0].askJson;
  9915. this.isAnswer = true;
  9916. this.dialogVisible5 = true;
  9917. } else if (t == 45) {
  9918. this.radio = [];
  9919. this.isAnswer = false;
  9920. let b = z[0].anwer;
  9921. this.radio = b;
  9922. this.testJson = z[0].testJson;
  9923. this.isAnswer = true;
  9924. this.dialogVisibleChoice = true;
  9925. }
  9926. // else if (t == 15) {
  9927. // this.answerQ = "";
  9928. // this.questionAnswer = "";
  9929. // this.answerQ = z[0].answerTitle;
  9930. // this.questionAnswer = z[0].answer;
  9931. // this.answerDialogVisible = true;
  9932. // }
  9933. },
  9934. fastText(p, t) {
  9935. if (t == 1) {
  9936. this.commentText += p;
  9937. } else {
  9938. this.eScore.eBzText += p;
  9939. }
  9940. },
  9941. addTools(t, i, index) {
  9942. var a = 0;
  9943. // this.taskCount = index;
  9944. this.toolindex = i;
  9945. if (t == 1) {
  9946. if (this.wbCount > 0) {
  9947. this.updateCount(this.wbCount, t);
  9948. } else {
  9949. this.wbCount++;
  9950. a = this.wbCount;
  9951. this.toolsCount(a, t);
  9952. }
  9953. window.parent.postMessage(
  9954. {
  9955. tools: "1",
  9956. cid: this.id,
  9957. stage: this.courseType,
  9958. task: this.taskCount,
  9959. tool: i,
  9960. },
  9961. "*"
  9962. );
  9963. } else if (t == 2) {
  9964. if (this.wordCount > 0) {
  9965. this.updateCount(this.wordCount, t);
  9966. } else {
  9967. this.wordCount++;
  9968. a = this.wordCount;
  9969. this.toolsCount(a, t);
  9970. }
  9971. window.parent.postMessage({ tools: "2" }, "*");
  9972. } else if (t == 3) {
  9973. if (this.mindCount > 0) {
  9974. this.updateCount(this.mindCount, t);
  9975. } else {
  9976. this.mindCount++;
  9977. a = this.mindCount;
  9978. this.toolsCount(a, t);
  9979. }
  9980. window.parent.postMessage(
  9981. {
  9982. tools: "3",
  9983. cid: this.id,
  9984. stage: this.courseType,
  9985. task: this.taskCount,
  9986. tool: i,
  9987. },
  9988. "*"
  9989. );
  9990. } else if (t == 4) {
  9991. this.radio = [];
  9992. this.noteName = "";
  9993. this.isAnswer = false;
  9994. if (this.askCount > 0) {
  9995. this.updateCount(this.askCount, t);
  9996. } else {
  9997. this.askCount++;
  9998. a = this.askCount;
  9999. this.toolsCount(a, t);
  10000. }
  10001. this.askJson.askJson =
  10002. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10003. index
  10004. ].toolChoose[i].askJson;
  10005. this.askJson.askTitle =
  10006. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10007. index
  10008. ].toolChoose[i].askTitle;
  10009. this.askJson.askCount =
  10010. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10011. index
  10012. ].toolChoose[i].askCount;
  10013. for (var k = 0; k < this.askJson.askJson.length; k++) {
  10014. if (this.askJson.askJson[k].type == "2") {
  10015. this.radio.push([]);
  10016. } else {
  10017. this.radio.push("");
  10018. }
  10019. }
  10020. this.dialogVisible5 = true;
  10021. // window.parent.postMessage({ tools: "4" }, "*");
  10022. } else if (t == 45) {
  10023. this.noteName = "";
  10024. this.radio = [];
  10025. this.isAnswer = false;
  10026. if (this.askCount > 0) {
  10027. this.updateCount(this.askCount, t);
  10028. } else {
  10029. this.askCount++;
  10030. a = this.askCount;
  10031. this.toolsCount(a, t);
  10032. }
  10033. this.testJson =
  10034. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10035. index
  10036. ].toolChoose[i].testJson;
  10037. for (var k = 0; k < this.testJson.testJson.length; k++) {
  10038. if (this.testJson.testJson[k].type == "2") {
  10039. this.radio.push([]);
  10040. } else {
  10041. this.radio.push("");
  10042. }
  10043. }
  10044. this.dialogVisibleChoice = true;
  10045. // window.parent.postMessage({ tools: "4" }, "*");
  10046. } else if (t == 5) {
  10047. if (this.scoreCount > 0) {
  10048. this.updateCount(this.scoreCount, t);
  10049. } else {
  10050. this.scoreCount++;
  10051. a = this.scoreCount;
  10052. this.toolsCount(a, t);
  10053. }
  10054. this.dialogVisible4 = true;
  10055. // window.parent.postMessage({ tools: "5" }, "*");
  10056. } else if (t == 6) {
  10057. if (this.noteCount > 0) {
  10058. this.updateCount(this.noteCount, t);
  10059. } else {
  10060. this.noteCount++;
  10061. a = this.noteCount;
  10062. this.toolsCount(a, t);
  10063. }
  10064. window.parent.postMessage(
  10065. {
  10066. tools: "6",
  10067. cid: this.id,
  10068. stage: this.courseType,
  10069. task: this.taskCount,
  10070. tool: i,
  10071. },
  10072. "*"
  10073. );
  10074. } else if (t == 7) {
  10075. if (this.mindNetWorkCount > 0) {
  10076. this.updateCount(this.mindNetWorkCount, t);
  10077. } else {
  10078. this.mindNetWorkCount++;
  10079. a = this.mindNetWorkCount;
  10080. this.toolsCount(a, t);
  10081. }
  10082. window.parent.postMessage(
  10083. {
  10084. tools: "7",
  10085. cid: this.id,
  10086. stage: this.courseType,
  10087. task: this.taskCount,
  10088. tool: i,
  10089. },
  10090. "*"
  10091. );
  10092. } else if (t == 16) {
  10093. if (this.workCount > 0) {
  10094. this.updateCount(this.workCount, t);
  10095. } else {
  10096. this.workCount++;
  10097. a = this.workCount;
  10098. this.toolsCount(a, t);
  10099. }
  10100. this.dialogVisible = true;
  10101. } else if (t == 50) {
  10102. if (this.tType == 2) {
  10103. this.$message.error("不支持学生使用");
  10104. return;
  10105. }
  10106. this.plworkFile = [];
  10107. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri
  10108. if(!this.uploadCid){
  10109. this.$message.error("提示:批量上传未添加班级权限,请添加班级或从班级入口进入。");
  10110. return;
  10111. }
  10112. this.selectUploadStudent();
  10113. this.dialogVisiblePl = true;
  10114. } else if (t == 8) {
  10115. if (this.libraryCount > 0) {
  10116. this.updateCount(this.libraryCount, t);
  10117. } else {
  10118. this.libraryCount++;
  10119. a = this.libraryCount;
  10120. this.toolsCount(a, t);
  10121. }
  10122. window.parent.postMessage({ tools: "8" }, "*");
  10123. } else if (t == 17) {
  10124. if (this.libraryCount > 0) {
  10125. this.updateCount(this.libraryCount, t);
  10126. } else {
  10127. this.libraryCount++;
  10128. a = this.libraryCount;
  10129. this.toolsCount(a, t);
  10130. }
  10131. window.parent.postMessage({ tools: "17" }, "*");
  10132. } else if (t == 18) {
  10133. if (this.trainCount > 0) {
  10134. this.updateCount(this.trainCount, t);
  10135. } else {
  10136. this.trainCount++;
  10137. a = this.trainCount;
  10138. this.toolsCount(a, t);
  10139. }
  10140. window.parent.postMessage({ tools: "18" }, "*");
  10141. } else if (t == 10) {
  10142. if (this.timeCount > 0) {
  10143. this.updateCount(this.timeCount, t);
  10144. } else {
  10145. this.timeCount++;
  10146. a = this.timeCount;
  10147. this.toolsCount(a, t);
  10148. }
  10149. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  10150. .taskJson[index].toolChoose[i].preTime
  10151. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  10152. .toolChoose[i].preTime
  10153. : "";
  10154. this.timeDialogVisible = true;
  10155. } else if (t == 15) {
  10156. this.answerQ = "";
  10157. this.questionAnswer = "";
  10158. if (this.answerCount > 0) {
  10159. this.updateCount(this.answerCount, t);
  10160. } else {
  10161. this.answerCount++;
  10162. a = this.answerCount;
  10163. this.toolsCount(a, t);
  10164. }
  10165. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  10166. .taskJson[index].toolChoose[i].answerQ
  10167. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  10168. .toolChoose[i].answerQ
  10169. : "";
  10170. this.answerDialogVisible = true;
  10171. } else if (t == 21) {
  10172. window.parent.postMessage({ tools: "21" }, "*");
  10173. } else if (t == 22) {
  10174. window.parent.postMessage({ tools: "22" }, "*");
  10175. } else if (t == 23) {
  10176. window.parent.postMessage({ tools: "23" }, "*");
  10177. } else if (t == 24) {
  10178. window.parent.postMessage({ tools: "24" }, "*");
  10179. } else if (t == 25) {
  10180. window.parent.postMessage({ tools: "25" }, "*");
  10181. } else if (t == 31) {
  10182. window.parent.postMessage({ tools: "31" }, "*");
  10183. } else if (t == 28) {
  10184. window.parent.postMessage({ tools: "28" }, "*");
  10185. } else if (t == 37) {
  10186. window.parent.postMessage({ tools: "37" }, "*");
  10187. } else if (t == 38) {
  10188. window.parent.postMessage({ tools: "38" }, "*");
  10189. } else if (t == 39) {
  10190. window.parent.postMessage({ tools: "39" }, "*");
  10191. } else if (t == 32) {
  10192. window.parent.postMessage({ tools: "32" }, "*");
  10193. } else if (t == 57) {
  10194. window.parent.postMessage({ tools: "57" }, "*");
  10195. } else if (t == 58) {
  10196. window.parent.postMessage({ tools: "58" }, "*");
  10197. } else if (t == 59) {
  10198. window.parent.postMessage({ tools: "59" }, "*");
  10199. } else if (t == 60) {
  10200. window.parent.postMessage({ tools: "60" }, "*");
  10201. } else if (t == 61) {
  10202. window.parent.postMessage({ tools: "61" }, "*");
  10203. } else if (t == 63) {
  10204. window.parent.postMessage({ tools: "63" }, "*");
  10205. } else if (t == 26) {
  10206. window.parent.postMessage(
  10207. {
  10208. tools: "26",
  10209. cid: this.id,
  10210. stage: this.courseType,
  10211. task: this.taskCount,
  10212. tool: i,
  10213. },
  10214. "*"
  10215. );
  10216. } else if (t == 40) {
  10217. if (this.evalCount > 0) {
  10218. this.updateCount(this.evalCount, t);
  10219. } else {
  10220. this.evalCount++;
  10221. a = this.evalCount;
  10222. this.toolsCount(a, t);
  10223. }
  10224. this.eScore = { eBzText: "", eStar: [] };
  10225. if (this.worksStudent[i].length) {
  10226. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10227. if (this.userid == this.worksStudent[i][k].userid) {
  10228. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  10229. this.rateJson =
  10230. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10231. index
  10232. ].toolChoose[i].rateJson;
  10233. break;
  10234. } else {
  10235. this.rateJson =
  10236. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10237. index
  10238. ].toolChoose[i].rateJson;
  10239. }
  10240. }
  10241. } else {
  10242. this.rateJson =
  10243. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10244. index
  10245. ].toolChoose[i].rateJson;
  10246. }
  10247. this.isStar = false;
  10248. this.studentEvalDialogVisible = true;
  10249. } else if (t == 41) {
  10250. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10251. .taskJson[index].toolChoose[i].selectJson
  10252. ? JSON.parse(
  10253. JSON.stringify(
  10254. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10255. index
  10256. ].toolChoose[i].selectJson
  10257. )
  10258. )
  10259. : { url: "", select: [], answer: [] };
  10260. if (this.worksStudent[i].length) {
  10261. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10262. if (this.userid == this.worksStudent[i][k].userid) {
  10263. var a = this.worksStudent[i][k].works.split(",");
  10264. for (var ki = 0; ki < a.length; ki++) {
  10265. a[ki] = parseInt(a[ki]);
  10266. }
  10267. this.selectAnswer = {
  10268. answer: a,
  10269. stu: this.worksStudent[i][k].sName,
  10270. };
  10271. break;
  10272. } else {
  10273. this.selectAnswer = { answer: [], stu: "" };
  10274. }
  10275. }
  10276. } else {
  10277. this.selectAnswer = { answer: [], stu: "" };
  10278. }
  10279. this.isSelect = false;
  10280. this.dialogVisibleSelect = true;
  10281. } else if (t == 44) {
  10282. window.parent.postMessage({ tools: "44" }, "*");
  10283. } else if (t == 47) {
  10284. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  10285. .taskJson[index].toolChoose[i].sentenceList
  10286. ? JSON.parse(
  10287. JSON.stringify(
  10288. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10289. index
  10290. ].toolChoose[i].sentenceList
  10291. )
  10292. )
  10293. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  10294. for (var q = 0; q < this.sentenceList.length; q++) {
  10295. this.sentenceList[q].chooseSenList = [];
  10296. this.sentenceList[q].addChangeSen = [];
  10297. this.sentenceList[q].addChangeSen = JSON.parse(
  10298. JSON.stringify(this.sentenceList[q].addSentence)
  10299. );
  10300. this.sentenceList[q].chooseSenList.length =
  10301. this.sentenceList[q].rightAnswer.length;
  10302. }
  10303. this.dialogVisibleSentence = true;
  10304. } else if (t == 48) {
  10305. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10306. .taskJson[index].toolChoose[i].tableJson
  10307. ? JSON.parse(
  10308. JSON.stringify(
  10309. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10310. index
  10311. ].toolChoose[i].tableJson
  10312. )
  10313. )
  10314. : { text: "" };
  10315. if (this.worksStudent[i].length) {
  10316. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10317. if (this.userid == this.worksStudent[i][k].userid) {
  10318. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  10319. break;
  10320. }
  10321. }
  10322. }
  10323. this.dialogVisibleTable = true;
  10324. } else if (t == 52) {
  10325. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10326. .taskJson[index].toolChoose[i].wordJson
  10327. ? JSON.parse(
  10328. JSON.stringify(
  10329. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10330. index
  10331. ].toolChoose[i].wordJson
  10332. )
  10333. )
  10334. : { text: "" };
  10335. this.dialogVisibleWord = true;
  10336. } else if (t == 49) {
  10337. this.groupJson =
  10338. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10339. index
  10340. ].toolChoose[i].groupJson;
  10341. this.dialogVisibleGroup = true;
  10342. } else if (t == 62) {
  10343. this.videoJson =
  10344. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10345. index
  10346. ].toolChoose[i].videoJson;
  10347. this.dialogVisibleVideo = true;
  10348. }
  10349. },
  10350. teacherWorkSubmit(t, i, index, s) {
  10351. this.sStudent = s;
  10352. this.sTool = t;
  10353. this.toolindex = i;
  10354. if (this.tType !== "1" && this.tType !== "4") {
  10355. return;
  10356. }
  10357. if (t == 16 || t == 32 || t == 57 || t == 50) {
  10358. this.dialogVisibleWorks = true; //作业提交
  10359. } else if (t == 15) {
  10360. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  10361. .taskJson[index].toolChoose[i].answerQ
  10362. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  10363. .toolChoose[i].answerQ
  10364. : "";
  10365. this.questionAnswer = ''
  10366. this.answerDialogVisibleTeacher = true;//问答
  10367. } else if (t == 52) {
  10368. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10369. .taskJson[index].toolChoose[i].wordJson
  10370. ? JSON.parse(
  10371. JSON.stringify(
  10372. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10373. index
  10374. ].toolChoose[i].wordJson
  10375. )
  10376. )
  10377. : { text: "" };
  10378. this.dialogVisibleWordTeacher = true;//文档
  10379. } else if (t == 4) {
  10380. this.radio = [];
  10381. this.noteName = "";
  10382. this.isAnswer = false;
  10383. if (this.askCount > 0) {
  10384. this.updateCount(this.askCount, t);
  10385. } else {
  10386. this.askCount++;
  10387. a = this.askCount;
  10388. this.toolsCount(a, t);
  10389. }
  10390. if (!this.dialogVisible2) {
  10391. this.askJson.askJson =
  10392. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10393. index
  10394. ].toolChoose[i].askJson;
  10395. this.askJson.askTitle =
  10396. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10397. index
  10398. ].toolChoose[i].askTitle;
  10399. this.askJson.askCount =
  10400. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10401. index
  10402. ].toolChoose[i].askCount;
  10403. } else {
  10404. this.askJson.askJson = this.chapTools.askJson.askJson;
  10405. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  10406. this.askJson.askCount = this.chapTools.askJson.askCount;
  10407. }
  10408. this.dialogVisible5Teacher = true;
  10409. } else if (t == 45) {
  10410. this.noteName = "";
  10411. this.radio = [];
  10412. this.isAnswer = false;
  10413. if (this.askCount > 0) {
  10414. this.updateCount(this.askCount, t);
  10415. } else {
  10416. this.askCount++;
  10417. a = this.askCount;
  10418. this.toolsCount(a, t);
  10419. }
  10420. this.testJson =
  10421. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10422. index
  10423. ].toolChoose[i].testJson;
  10424. for (var k = 0; k < this.testJson.testJson.length; k++) {
  10425. if (this.testJson.testJson[k].type == "2") {
  10426. this.radio.push([]);
  10427. } else {
  10428. this.radio.push("");
  10429. }
  10430. }
  10431. this.dialogVisibleChoiceTeacher = true;
  10432. } else if (t == 41) {
  10433. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10434. .taskJson[index].toolChoose[i].selectJson
  10435. ? JSON.parse(
  10436. JSON.stringify(
  10437. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10438. index
  10439. ].toolChoose[i].selectJson
  10440. )
  10441. )
  10442. : { url: "", select: [], answer: [] };
  10443. if (this.worksStudent[i].length) {
  10444. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10445. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  10446. var a = this.worksStudent[i][k].works.split(",");
  10447. for (var ki = 0; ki < a.length; ki++) {
  10448. a[ki] = parseInt(a[ki]);
  10449. }
  10450. this.selectAnswer = {
  10451. answer: a,
  10452. stu: this.worksStudent[i][k].sName,
  10453. };
  10454. break;
  10455. } else {
  10456. this.selectAnswer = { answer: [], stu: "" };
  10457. }
  10458. }
  10459. } else {
  10460. this.selectAnswer = { answer: [], stu: "" };
  10461. }
  10462. this.isSelect = false;
  10463. this.dialogVisibleSelectTeacher = true;
  10464. } else if (t == 47) {
  10465. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  10466. .taskJson[index].toolChoose[i].sentenceList
  10467. ? JSON.parse(
  10468. JSON.stringify(
  10469. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10470. index
  10471. ].toolChoose[i].sentenceList
  10472. )
  10473. )
  10474. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  10475. for (var q = 0; q < this.sentenceList.length; q++) {
  10476. this.sentenceList[q].chooseSenList = [];
  10477. this.sentenceList[q].addChangeSen = [];
  10478. this.sentenceList[q].addChangeSen = JSON.parse(
  10479. JSON.stringify(this.sentenceList[q].addSentence)
  10480. );
  10481. this.sentenceList[q].chooseSenList.length =
  10482. this.sentenceList[q].rightAnswer.length;
  10483. }
  10484. this.dialogVisibleSentenceTeacher = true;
  10485. } else if (t == 48) {
  10486. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  10487. .taskJson[index].toolChoose[i].tableJson
  10488. ? JSON.parse(
  10489. JSON.stringify(
  10490. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10491. index
  10492. ].toolChoose[i].tableJson
  10493. )
  10494. )
  10495. : { text: "" };
  10496. if (this.worksStudent[i].length) {
  10497. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10498. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  10499. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  10500. break;
  10501. }
  10502. }
  10503. }
  10504. this.dialogVisibleTableTeacher = true;
  10505. } else if (t == 40) {
  10506. if (this.evalCount > 0) {
  10507. this.updateCount(this.evalCount, t);
  10508. } else {
  10509. this.evalCount++;
  10510. a = this.evalCount;
  10511. this.toolsCount(a, t);
  10512. }
  10513. this.eScore = { eBzText: "", eStar: [] };
  10514. if (this.worksStudent[i].length) {
  10515. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10516. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  10517. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  10518. this.rateJson =
  10519. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10520. index
  10521. ].toolChoose[i].rateJson;
  10522. break;
  10523. } else {
  10524. this.rateJson =
  10525. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10526. index
  10527. ].toolChoose[i].rateJson;
  10528. }
  10529. }
  10530. } else {
  10531. this.rateJson =
  10532. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10533. index
  10534. ].toolChoose[i].rateJson;
  10535. }
  10536. this.isStar = false;
  10537. this.studentEvalDialogVisibleTeacher = true;
  10538. } else if (t == 3 || t == 1 || t == 7) {
  10539. window.parent.postMessage(
  10540. {
  10541. tools: t + 'teacher',
  10542. cid: this.id,
  10543. stage: this.courseType,
  10544. task: this.taskCount,
  10545. tool: i,
  10546. student: this.sStudent,
  10547. },
  10548. "*"
  10549. );
  10550. }
  10551. },
  10552. setRightAnswer(s, i, j) {
  10553. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  10554. if (
  10555. this.sentenceList[i].chooseSenList[q] == undefined ||
  10556. this.sentenceList[i].chooseSenList[q] == ""
  10557. ) {
  10558. this.sentenceList[i].chooseSenList[q] = s;
  10559. this.sentenceList[i].addChangeSen[j] = "";
  10560. break;
  10561. }
  10562. }
  10563. this.$forceUpdate();
  10564. },
  10565. returnCard(r, i, j) {
  10566. var a = this.sentenceList[i].addSentence.indexOf(r);
  10567. this.sentenceList[i].chooseSenList[j] = "";
  10568. this.sentenceList[i].addChangeSen[a] = r;
  10569. this.$forceUpdate();
  10570. },
  10571. // addSentenceTool() {
  10572. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10573. // this.taskCount
  10574. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  10575. // this.sentenceList = [
  10576. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  10577. // ];
  10578. // this.dialogVisibleSentence = false;
  10579. // },
  10580. toolsCount(a, t) {
  10581. let params = {
  10582. cid: this.id,
  10583. chid: this.courseType,
  10584. uid: this.userid,
  10585. tid: t,
  10586. count: a,
  10587. };
  10588. this.ajax
  10589. .get(this.$store.state.api + "insertToolsCount", params)
  10590. .then((res) => {
  10591. this.selectCount();
  10592. })
  10593. .catch((err) => {
  10594. console.error(err);
  10595. });
  10596. },
  10597. updateCount(c, t) {
  10598. c++;
  10599. let params = {
  10600. cid: this.id,
  10601. chid: this.courseType,
  10602. uid: this.userid,
  10603. tid: t,
  10604. count: c,
  10605. };
  10606. this.ajax
  10607. .get(this.$store.state.api + "updateToolsCount", params)
  10608. .then((res) => {
  10609. this.selectCount();
  10610. })
  10611. .catch((err) => {
  10612. console.error(err);
  10613. });
  10614. },
  10615. checkEva() {
  10616. if (this.evalua != "") {
  10617. for (var i = 0; i < this.evaJuri.length; i++) {
  10618. if (this.evalua == this.evaJuri[i].id) {
  10619. this.eTitle = this.evaJuri[i].title;
  10620. this.eJson = JSON.parse(this.evaJuri[i].content);
  10621. }
  10622. }
  10623. this.$forceUpdate();
  10624. setTimeout(() => {
  10625. this.setMindData();
  10626. }, 0);
  10627. }
  10628. },
  10629. selectEva() {
  10630. let params = {
  10631. oid: this.oid,
  10632. };
  10633. this.ajax
  10634. .get(this.$store.state.api + "selectAllEvaluation", params)
  10635. .then((res) => {
  10636. this.evaJuri = res.data[0];
  10637. })
  10638. .catch((err) => {
  10639. console.error(err);
  10640. });
  10641. },
  10642. setMindData() {
  10643. this.data.data = [];
  10644. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  10645. let _eJson = Object.keys(this.eJson);
  10646. let _e = this.eJson;
  10647. for (let i = 0; i < _eJson.length; i++) {
  10648. let element = _e[_eJson[i]];
  10649. this.data.data.push({
  10650. id: element.id,
  10651. parentid: "root",
  10652. topic: element.name,
  10653. });
  10654. let _eJsonc = Object.keys(element.child);
  10655. let _e2 = element.child;
  10656. for (let j = 0; j < _eJsonc.length; j++) {
  10657. let _ec = _e2[_eJsonc[j]];
  10658. this.data.data.push({
  10659. id: _ec.id,
  10660. parentid: element.id,
  10661. topic: _ec.name,
  10662. });
  10663. let _eJsonz = Object.keys(_ec.child);
  10664. let _e3 = _ec.child;
  10665. for (let z = 0; z < _eJsonz.length; z++) {
  10666. let _ez = _e3[_eJsonz[z]];
  10667. this.data.data.push({
  10668. id: _ez.id,
  10669. parentid: _ec.id,
  10670. topic: _ez.name,
  10671. });
  10672. }
  10673. }
  10674. }
  10675. this.$forceUpdate();
  10676. },
  10677. checkFileFull(type, url) {
  10678. this.fullDialogVisible = true;
  10679. this.fulltype = type;
  10680. this.fullUrl = url;
  10681. },
  10682. openSname(n, id, i) {
  10683. this.snameWid = id;
  10684. this.worksSName = n;
  10685. this.toolindex = i
  10686. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri
  10687. if(!this.uploadCid){
  10688. this.$message.error("提示:批量上传未添加班级权限,请添加班级或从班级入口进入。");
  10689. return;
  10690. }
  10691. this.selectUploadStudent()
  10692. this.dialogVisibleSname = true;
  10693. },
  10694. updateName() {
  10695. let params = {
  10696. n: this.worksSName,
  10697. cid: this.snameWid,
  10698. };
  10699. this.ajax
  10700. .get(this.$store.state.api + "updateCourseWorksName", params)
  10701. .then((res) => {
  10702. this.$message({
  10703. message: "修改成功",
  10704. type: "success",
  10705. });
  10706. this.dialogVisibleSname = false;
  10707. this.getCourseDetail();
  10708. this.snameWid = "";
  10709. this.worksSName = "";
  10710. })
  10711. .catch((err) => {
  10712. console.error(err);
  10713. });
  10714. },
  10715. downloadFile2(f) {
  10716. let url = f.url
  10717. let _this = this;
  10718. let _url = "";
  10719. if (
  10720. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  10721. ) {
  10722. _url = url.split(
  10723. "https://view.officeapps.live.com/op/view.aspx?src="
  10724. )[1];
  10725. } else {
  10726. _url = url;
  10727. }
  10728. const x = new XMLHttpRequest();
  10729. x.open("GET", _url, true);
  10730. x.responseType = "blob";
  10731. const loading = _this.$loading.service({
  10732. background: "rgba(255, 255, 255, 0.7)",
  10733. target: document.body,
  10734. text: "文件加载中...",
  10735. });
  10736. // _this.$message.success("文件下载中...");
  10737. x.onload = function (e) {
  10738. loading.close();
  10739. let content = x.response;
  10740. let elink = document.createElement("a");
  10741. elink.download = f.name;
  10742. elink.style.display = "none";
  10743. let blob = new Blob([content]);
  10744. elink.href = URL.createObjectURL(blob);
  10745. document.body.appendChild(elink);
  10746. elink.click();
  10747. document.body.removeChild(elink);
  10748. };
  10749. x.send();
  10750. },
  10751. downloadFile(url) {
  10752. let _this = this;
  10753. let _url = "";
  10754. if (
  10755. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  10756. ) {
  10757. _url = url.split(
  10758. "https://view.officeapps.live.com/op/view.aspx?src="
  10759. )[1];
  10760. } else {
  10761. _url = url;
  10762. }
  10763. const x = new XMLHttpRequest();
  10764. x.open("GET", _url, true);
  10765. x.responseType = "blob";
  10766. const loading = _this.$loading.service({
  10767. background: "rgba(255, 255, 255, 0.7)",
  10768. target: document.body,
  10769. text: "文件加载中...",
  10770. });
  10771. // _this.$message.success("文件下载中...");
  10772. x.onload = function (e) {
  10773. loading.close();
  10774. // const url = window.URL.createObjectURL(x.response);
  10775. // const a = document.createElement("a");
  10776. // a.href = url;
  10777. // a.target = "_blank";
  10778. // a.download = url;
  10779. // a.click();
  10780. // a.remove();
  10781. let content = x.response;
  10782. let elink = document.createElement("a");
  10783. elink.download = decodeURI(
  10784. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  10785. );
  10786. elink.style.display = "none";
  10787. let blob = new Blob([content]);
  10788. elink.href = URL.createObjectURL(blob);
  10789. document.body.appendChild(elink);
  10790. elink.click();
  10791. document.body.removeChild(elink);
  10792. };
  10793. x.send();
  10794. },
  10795. openLine(url) {
  10796. window.open(url);
  10797. },
  10798. resize() {
  10799. if (document.getElementsByClassName("box_course").length) {
  10800. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  10801. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  10802. document.getElementsByClassName("navBox")[0].style.height =
  10803. a - 40 + "px";
  10804. }
  10805. this.Stbodywidth =
  10806. document.getElementsByClassName("student_body").length &&
  10807. document.getElementsByClassName("student_body")[0].offsetWidth;
  10808. },
  10809. closeDraw() {
  10810. this.bg = null;
  10811. this.drawShow = false;
  10812. },
  10813. showPicturePaint(url) {
  10814. let params = {
  10815. img: url,
  10816. };
  10817. this.ajax
  10818. .get(this.$store.state.api + "imgToBase64", params)
  10819. .then((res) => {
  10820. console.log(res);
  10821. this.drawShow = true;
  10822. this.bg = res.data[0].img;
  10823. })
  10824. .catch((err) => {
  10825. console.error(err);
  10826. });
  10827. },
  10828. addImgDraw(base64) {
  10829. let file = { name: "批注图.png" };
  10830. let img = this.dataUrlToFile(base64, file);
  10831. this.beforeUpload1(img, 5);
  10832. },
  10833. addImgDrawImG(url) {
  10834. // console.log(url);
  10835. let params = [
  10836. {
  10837. wid: this.commentDetail.wid,
  10838. img: url,
  10839. },
  10840. ];
  10841. this.ajax
  10842. .post(this.$store.state.api + "updateCourseWorks", params)
  10843. .then((res) => {
  10844. this.$message({
  10845. message: "提交成功",
  10846. type: "success",
  10847. });
  10848. this.drawShow = false;
  10849. this.bg = "";
  10850. this.selectSWorks();
  10851. this.selectStudent();
  10852. })
  10853. .catch((err) => {
  10854. this.$message.error("提交失败");
  10855. console.error(err);
  10856. });
  10857. },
  10858. deletePicturePaint() {
  10859. this.$confirm("确定删除此批注吗?", "提示", {
  10860. confirmButtonText: "确定",
  10861. cancelButtonText: "取消",
  10862. type: "warning",
  10863. })
  10864. .then(() => {
  10865. let params = [
  10866. {
  10867. wid: this.commentDetail.wid,
  10868. img: "",
  10869. },
  10870. ];
  10871. this.ajax
  10872. .post(this.$store.state.api + "updateCourseWorks", params)
  10873. .then((res) => {
  10874. this.$message({
  10875. message: "删除成功",
  10876. type: "success",
  10877. });
  10878. this.selectSWorks();
  10879. this.selectStudent();
  10880. })
  10881. .catch((err) => {
  10882. this.$message.error("删除失败");
  10883. console.error(err);
  10884. });
  10885. })
  10886. .catch(() => { });
  10887. },
  10888. getAudioVideo(constraintsData) {
  10889. if (navigator.mediaDevices === undefined) {
  10890. navigator.mediaDevices = {};
  10891. }
  10892. if (navigator.mediaDevices.getUserMedia === undefined) {
  10893. navigator.mediaDevices.getUserMedia = function (constraints) {
  10894. // 首先,如果有getUserMedia的话,就获得它
  10895. var getUserMedia =
  10896. navigator.getUserMedia ||
  10897. navigator.webkitGetUserMedia ||
  10898. navigator.mozGetUserMedia ||
  10899. navigator.msGetUserMedia;
  10900. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  10901. if (!getUserMedia) {
  10902. return Promise.reject({ code: 404 });
  10903. }
  10904. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  10905. return new Promise(function (resolve, reject) {
  10906. getUserMedia.call(navigator, constraints, resolve, reject);
  10907. });
  10908. };
  10909. }
  10910. return navigator.mediaDevices.getUserMedia(constraintsData);
  10911. },
  10912. /**
  10913. * 开始录制
  10914. */
  10915. startRecording(callback) {
  10916. let _function = (screenStream) => {
  10917. this.addStreamStopListener(screenStream, () => {
  10918. console.log("流停止监听");
  10919. this.stopRecording();
  10920. this.$emit("streamStop", {});
  10921. // this.stopRecording();
  10922. });
  10923. var options = {
  10924. type: "video",
  10925. mimeType: "video/webm",
  10926. disableLogs: false,
  10927. getNativeBlob: false, // enable it for longer recordings
  10928. ignoreMutedMedia: false,
  10929. };
  10930. // this.video.srcObject = screenStream;
  10931. this.recorder = RecordRTC(screenStream, options);
  10932. this.recorder.startRecording();
  10933. this.recorder.screen = screenStream;
  10934. this.videoStart = true;
  10935. // callback(true);
  10936. };
  10937. this.getAudioVideo({ audio: true })
  10938. .then((res) => {
  10939. this.captureScreen(_function, true);
  10940. console.log("已点击允许,开启成功");
  10941. })
  10942. .catch((err) => {
  10943. // console.log('浏览器不支持,请更换浏览器')
  10944. // } else {
  10945. this.captureScreen(_function, false);
  10946. console.log("请检查是否存在麦克风");
  10947. });
  10948. },
  10949. /**
  10950. * 停止录制
  10951. */
  10952. stopRecording(callback) {
  10953. this.recorder.stopRecording(() => {
  10954. // this.video.src = this.video.srcObject = null;
  10955. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  10956. const url = URL.createObjectURL(this.recorder.getBlob());
  10957. const a = document.createElement("a"); //this.fileName+
  10958. let videoFile = new File(
  10959. [this.recorder.getBlob()],
  10960. this.courseDetail.title + "录屏.mp4",
  10961. {
  10962. type: "video/mp4",
  10963. }
  10964. );
  10965. let downloadUrl = URL.createObjectURL(videoFile);
  10966. document.body.appendChild(a);
  10967. a.style.display = "none";
  10968. a.href = url;
  10969. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  10970. a.click();
  10971. this.recorder.screen.stop();
  10972. this.recorder.destroy();
  10973. this.recorder = null;
  10974. this.videoStart = false;
  10975. // callback(false);
  10976. });
  10977. },
  10978. //初始化
  10979. captureScreen(callback, type) {
  10980. if (navigator.getDisplayMedia) {
  10981. //录制结束,文件下载
  10982. navigator
  10983. .getDisplayMedia({
  10984. video: true,
  10985. })
  10986. .then((screenStream) => {
  10987. if (type) {
  10988. navigator.mediaDevices
  10989. .getUserMedia({ audio: true })
  10990. .then((mic) => {
  10991. screenStream.addTrack(mic.getTracks()[0]);
  10992. callback(screenStream);
  10993. });
  10994. } else {
  10995. callback(screenStream);
  10996. }
  10997. })
  10998. .catch(function (error) {
  10999. console.log("error", error);
  11000. });
  11001. } else if (navigator.mediaDevices.getDisplayMedia) {
  11002. navigator.mediaDevices
  11003. .getDisplayMedia({
  11004. video: true,
  11005. })
  11006. .then((screenStream) => {
  11007. if (type) {
  11008. navigator.mediaDevices
  11009. .getUserMedia({ audio: true })
  11010. .then((mic) => {
  11011. screenStream.addTrack(mic.getTracks()[0]);
  11012. callback(screenStream);
  11013. });
  11014. } else {
  11015. callback(screenStream);
  11016. }
  11017. })
  11018. .catch(function (error) {
  11019. console.log("error", error);
  11020. });
  11021. } else {
  11022. var error = "getDisplayMedia API are not supported in this browser.";
  11023. console.log("error", error);
  11024. alert(error);
  11025. }
  11026. },
  11027. //流监听
  11028. addStreamStopListener(stream, callback) {
  11029. stream.addEventListener(
  11030. "ended",
  11031. function () {
  11032. callback();
  11033. callback = function () { };
  11034. },
  11035. false
  11036. );
  11037. stream.addEventListener(
  11038. "inactive",
  11039. function () {
  11040. callback();
  11041. callback = function () { };
  11042. },
  11043. false
  11044. );
  11045. stream.getTracks().forEach(function (track) {
  11046. track.addEventListener(
  11047. "ended",
  11048. function () {
  11049. callback();
  11050. callback = function () { };
  11051. },
  11052. false
  11053. );
  11054. track.addEventListener(
  11055. "inactive",
  11056. function () {
  11057. callback();
  11058. callback = function () { };
  11059. },
  11060. false
  11061. );
  11062. });
  11063. },
  11064. updateGroup() {
  11065. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  11066. this.dialogVisibleGroup2 = true;
  11067. },
  11068. updateGroupJson() {
  11069. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  11070. if (
  11071. this.groupStudentUid[this.toolindex][i].length >
  11072. this.groupJson2.number
  11073. ) {
  11074. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  11075. return;
  11076. }
  11077. }
  11078. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  11079. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11080. this.taskCount
  11081. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  11082. let params = [
  11083. {
  11084. cid: this.id,
  11085. chapters: JSON.stringify(this.chapInfoList).replaceAll(/%/g, "%25"),
  11086. uid: this.userid,
  11087. unitIndex: this.courseType,
  11088. },
  11089. ];
  11090. this.ajax
  11091. .post(this.$store.state.api + "updateWorkNew4", params)
  11092. .then((res) => {
  11093. this.$message.success("设置成功");
  11094. this.getCourseDetail(2);
  11095. this.dialogVisibleGroup2 = false;
  11096. this.groupJson2 = {};
  11097. this.$forceUpdate();
  11098. })
  11099. .catch((err) => {
  11100. this.$message.error("网络不佳");
  11101. console.error(err);
  11102. });
  11103. },
  11104. lockChair() {
  11105. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  11106. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  11107. this.updateGroupJson();
  11108. },
  11109. selectGroup(index) {
  11110. this.getCourseDetail(2, index);
  11111. },
  11112. joinGroup(index) {
  11113. if (this.groupJson.islock == 2) {
  11114. this.$message.error("位置已被锁定,无法加入");
  11115. return;
  11116. }
  11117. if (
  11118. this.groupStudent[this.toolindex][index].length >
  11119. this.groupJson.number ||
  11120. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  11121. ) {
  11122. this.$message.error("位置已满,无法加入");
  11123. return;
  11124. }
  11125. let params = [
  11126. {
  11127. cid: this.id,
  11128. stage: this.courseType,
  11129. task: this.taskCount,
  11130. tool: this.toolindex,
  11131. g: index,
  11132. uid: this.userid,
  11133. },
  11134. ];
  11135. this.ajax
  11136. .post(this.$store.state.api + "joinGroup", params)
  11137. .then((res) => {
  11138. this.$message.success("加入成功");
  11139. this.getCourseDetail();
  11140. })
  11141. .catch((err) => {
  11142. this.$message.error("网络不佳");
  11143. console.error(err);
  11144. });
  11145. },
  11146. exitGroup(id) {
  11147. if (this.groupJson.islock == 2) {
  11148. this.$message.error("位置已被锁定,无法退出");
  11149. return;
  11150. }
  11151. let params = [
  11152. {
  11153. gid: id,
  11154. },
  11155. ];
  11156. this.ajax
  11157. .post(this.$store.state.api + "exitGroup", params)
  11158. .then((res) => {
  11159. this.$message.success("退出成功");
  11160. this.getCourseDetail();
  11161. })
  11162. .catch((err) => {
  11163. this.$message.error("网络不佳");
  11164. console.error(err);
  11165. });
  11166. },
  11167. groupUpload(index, task, gindex) {
  11168. this.taskCount = task;
  11169. this.toolindex = index;
  11170. this.groupIndex = gindex;
  11171. this.dialogVisibleGroupWork = true;
  11172. },
  11173. updateGroupChair(user) {
  11174. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  11175. el.label = index;
  11176. return index != user.group;
  11177. });
  11178. this.updateGroupUser = user;
  11179. this.dialogVisibleUpdateGroup = true;
  11180. },
  11181. updateChair() {
  11182. if (
  11183. this.groupStudent[this.toolindex][this.checkChair].length >
  11184. this.groupJson.number ||
  11185. this.groupStudent[this.toolindex][this.checkChair].length ==
  11186. this.groupJson.number
  11187. ) {
  11188. this.$message.error("位置已满,无法加入");
  11189. return;
  11190. }
  11191. let params = [
  11192. {
  11193. cid: this.id,
  11194. stage: this.courseType,
  11195. task: this.taskCount,
  11196. tool: this.toolindex,
  11197. g: this.checkChair,
  11198. uid: this.updateGroupUser.userid,
  11199. },
  11200. ];
  11201. this.ajax
  11202. .post(this.$store.state.api + "joinGroup", params)
  11203. .then((res) => {
  11204. this.$message.success("修改成功");
  11205. this.updateGroupUser = {};
  11206. this.checkChair = "";
  11207. this.updateGroupArray = {};
  11208. this.dialogVisibleUpdateGroup = false;
  11209. this.getCourseDetail();
  11210. })
  11211. .catch((err) => {
  11212. this.$message.error("网络不佳");
  11213. console.error(err);
  11214. });
  11215. },
  11216. deleteGroupChair(gindex) {
  11217. this.checkDeleteGroup = [];
  11218. this.deleteGroupUser = JSON.parse(
  11219. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  11220. );
  11221. this.deleteGroupArray = this.groupJson.group[gindex];
  11222. this.groupIndex = gindex;
  11223. this.dialogVisibleDeleteGroup = true;
  11224. },
  11225. async deleteChair() {
  11226. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  11227. const gid =
  11228. this.groupStudent[this.toolindex][this.groupIndex][
  11229. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  11230. this.checkDeleteGroup[i]
  11231. )
  11232. ];
  11233. let params = [
  11234. {
  11235. gid: gid.id,
  11236. },
  11237. ];
  11238. var a = await this.deleteChairA(params);
  11239. if (i == this.checkDeleteGroup.length - 1) {
  11240. this.$message.success("退出成功");
  11241. this.dialogVisibleDeleteGroup = false;
  11242. this.deleteGroupUser = [];
  11243. this.deleteGroupArray = {};
  11244. this.groupIndex = "";
  11245. this.checkDeleteGroup = [];
  11246. this.getCourseDetail();
  11247. }
  11248. }
  11249. },
  11250. deleteChairA(params) {
  11251. return new Promise((resolve, reject) => {
  11252. this.ajax
  11253. .post(this.$store.state.api + "exitGroup", params)
  11254. .then((res) => {
  11255. resolve(1);
  11256. })
  11257. .catch((err) => {
  11258. this.$message.error("网络不佳");
  11259. console.error(err);
  11260. });
  11261. });
  11262. },
  11263. contract(i) {
  11264. if (this.isCloseList[i].isClose == 0) {
  11265. this.isCloseList[i].isClose = 1;
  11266. } else {
  11267. this.isCloseList[i].isClose = 0;
  11268. }
  11269. this.$forceUpdate();
  11270. },
  11271. openTools2(i) {
  11272. this.$message.error('暂未开放')
  11273. return;
  11274. },
  11275. addTools2(i) {
  11276. if (i == 4) {
  11277. // this.openTools2(4);
  11278. this.$message.error('暂未开放')
  11279. return;
  11280. }
  11281. if (i == 45) {
  11282. // this.openTools2(45);
  11283. this.$message.error('暂未开放')
  11284. return;
  11285. }
  11286. if (i == 47) {
  11287. // this.openTools2(47);
  11288. this.$message.error('暂未开放')
  11289. return;
  11290. }
  11291. if (i == 49) {
  11292. // this.openTools2(49);
  11293. this.$message.error('暂未开放')
  11294. return;
  11295. }
  11296. if (i == 62) {
  11297. // this.openTools(itemTaskIndex, 62, toolIndex);
  11298. this.$message.error('暂未开放')
  11299. return;
  11300. }
  11301. if (i == 15) {
  11302. // this.openTools(itemTaskIndex, 15, toolIndex);
  11303. this.$message.error('暂未开放')
  11304. return;
  11305. }
  11306. if (i == 40) {
  11307. // this.openTools(itemTaskIndex, 40, toolIndex);
  11308. this.$message.error('暂未开放')
  11309. return;
  11310. }
  11311. if (i == 41) {
  11312. // this.openTools(itemTaskIndex, 41, toolIndex);
  11313. this.$message.error('暂未开放')
  11314. return;
  11315. }
  11316. if (i == 42) {
  11317. // this.openTools(itemTaskIndex, 42, toolIndex);
  11318. this.$message.error('暂未开放')
  11319. return;
  11320. }
  11321. if (
  11322. this.checktoolArray.length > 0
  11323. ) {
  11324. if (
  11325. this.checktoolArray.indexOf(i) != -1
  11326. ) {
  11327. this.checktoolArray.splice(
  11328. this.checktoolArray.indexOf(i),
  11329. 1
  11330. );
  11331. } else {
  11332. this.checktoolArray = [];
  11333. this.checktoolArray.push(i);
  11334. }
  11335. } else {
  11336. this.checktoolArray.push(i);
  11337. }
  11338. this.$forceUpdate();
  11339. },
  11340. addToolChoose(){
  11341. if(!this.checktoolArray.length){
  11342. this.$message.error('请选择要添加的任务')
  11343. return;
  11344. }
  11345. if(!this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[0].tool.length){
  11346. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[0].tool = this.checktoolArray
  11347. }else{
  11348. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose.push({
  11349. tool: this.checktoolArray,
  11350. toolDetail: "",
  11351. toolType: 0,
  11352. askCount: 1,
  11353. askTitle: "",
  11354. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11355. })
  11356. }
  11357. let params = [
  11358. {
  11359. cid: this.id,
  11360. chapters: JSON.stringify(this.chapInfoList),
  11361. uid: this.userid,
  11362. unitIndex: this.courseType,
  11363. },
  11364. ];
  11365. this.ajax
  11366. .post(this.$store.state.api + "updateWorkNew4", params)
  11367. .then((res) => {
  11368. this.$message({
  11369. message: "添加成功",
  11370. type: "success",
  11371. });
  11372. this.checktoolArray = []
  11373. this.refreshCourse()
  11374. this.$forceUpdate()
  11375. })
  11376. .catch((err) => {
  11377. console.error(err);
  11378. });
  11379. }
  11380. },
  11381. directives: {
  11382. // 使用局部注册指令的方式
  11383. resize: {
  11384. // 指令的名称
  11385. bind(el, binding) {
  11386. // el为绑定的元素,binding为绑定给指令的对象
  11387. let width = "",
  11388. height = "";
  11389. function isReize() {
  11390. const style = document.defaultView.getComputedStyle(el);
  11391. if (width !== style.width || height !== style.height) {
  11392. binding.value(); // 关键
  11393. }
  11394. width = style.width;
  11395. height = style.height;
  11396. }
  11397. el.__vueSetInterval__ = setInterval(isReize, 300);
  11398. },
  11399. unbind(el) {
  11400. clearInterval(el.__vueSetInterval__);
  11401. },
  11402. },
  11403. },
  11404. beforeDestroy() {
  11405. window.onresize = null;
  11406. clearInterval(this.timer);
  11407. this.timer = null;
  11408. clearInterval(this.opertimer);
  11409. this.opertimer = null;
  11410. },
  11411. computed: {
  11412. contentConvent() {
  11413. return function (c) {
  11414. return c
  11415. ? c
  11416. .replaceAll(/\r\n/g, "<br/>")
  11417. .replaceAll(/\n/g, "<br/>")
  11418. .replaceAll(/\s/g, " &nbsp")
  11419. : "";
  11420. };
  11421. },
  11422. checkUpload() {
  11423. return function () {
  11424. var studentK = [];
  11425. if (this.plworkFile.length > 0) {
  11426. for (var z = 0; z < this.plworkFile.length; z++) {
  11427. studentK.push(this.plworkFile[z].username);
  11428. }
  11429. studentK = studentK.join(",");
  11430. }
  11431. var a = this.uploadStudentJuri.filter((el) => {
  11432. return studentK.indexOf(el.userid) == -1
  11433. });
  11434. return a
  11435. }
  11436. }
  11437. },
  11438. mounted() {
  11439. if (this.screenType == 2) {
  11440. window.parent.postMessage({ allScreen: 4 }, "*");
  11441. } else if (this.screenType == 3) {
  11442. window.parent.postMessage({ allScreen: 5 }, "*");
  11443. } else if (this.screenType == 1) {
  11444. window.parent.postMessage({ allScreen: 6 }, "*");
  11445. }
  11446. this.setOperationTime();
  11447. this.selectEva();
  11448. this.getCourseDetail();
  11449. this.selectCount();
  11450. this.getHomeWork();
  11451. this.toolIndex = null
  11452. this.contentDialog = true;
  11453. this.setContent2(true)
  11454. if (this.tType == 4) {
  11455. this.pzDialog = true;
  11456. this.selectPz();
  11457. }
  11458. document.scrollingElement.scrollTop = 0;
  11459. window.addEventListener("resize", () => {
  11460. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  11461. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  11462. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  11463. });
  11464. let _this = this;
  11465. setTimeout(() => {
  11466. // _this.vedioTime = [];
  11467. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  11468. // _this.vedioTime[i] = document.getElementsByClassName(
  11469. // "vjs-duration-display"
  11470. // )[i].textContent;
  11471. // }
  11472. }, 1000);
  11473. },
  11474. };
  11475. </script>
  11476. <style scoped>
  11477. @media screen and (max-width: 1280px) {
  11478. /* .courseIndex > div:first-child(2) {
  11479. width: 15% !important;
  11480. } */
  11481. /* .navText {
  11482. width: 120px !important;
  11483. } */
  11484. .evaCss {
  11485. flex-direction: column !important;
  11486. align-items: center !important;
  11487. }
  11488. .dialog_diy1>>>.el-dialog {
  11489. width: 100% !important;
  11490. }
  11491. .rightWidthCss {
  11492. width: 100% !important;
  11493. }
  11494. .dialog_diy3>>>.el-dialog {
  11495. width: 100% !important;
  11496. }
  11497. /* .textTitle >>> .el-form-item__label {
  11498. width: 150px !important;
  11499. } */
  11500. }
  11501. .evaCssMax {
  11502. flex-direction: column !important;
  11503. align-items: center !important;
  11504. }
  11505. .dialog_diy>>>.el-dialog {
  11506. margin-top: 10vh !important;
  11507. }
  11508. .body_student {
  11509. width: 77%;
  11510. height: 100%;
  11511. position: absolute;
  11512. left: 22%;
  11513. top: 0;
  11514. }
  11515. .student_head {
  11516. width: 100%;
  11517. margin: 0 auto;
  11518. padding-bottom: 20px;
  11519. display: flex;
  11520. flex-direction: column;
  11521. flex-wrap: nowrap;
  11522. align-items: flex-start;
  11523. justify-content: flex-start;
  11524. }
  11525. .pb_left {
  11526. width: 20%;
  11527. margin-right: 10px;
  11528. background: rgb(255, 255, 255);
  11529. padding-right: 10px;
  11530. position: fixed;
  11531. height: 100%;
  11532. }
  11533. .wheel>img,
  11534. .project>img,
  11535. .star>img,
  11536. .evaluate>img,
  11537. .up_photo>img,
  11538. .chapter_add>img,
  11539. .deleteWord>img,
  11540. .question>img,
  11541. .homework>img {
  11542. width: 100%;
  11543. height: 100%;
  11544. }
  11545. .upCover>img {
  11546. width: 131px;
  11547. height: 69px;
  11548. object-fit: cover;
  11549. }
  11550. .upCover {
  11551. width: calc(100% / 3.5);
  11552. position: relative;
  11553. margin: 0 15px 10px 0;
  11554. display: flex;
  11555. flex-direction: column;
  11556. flex-wrap: nowrap;
  11557. justify-content: center;
  11558. align-content: center;
  11559. align-items: center;
  11560. height: fit-content;
  11561. }
  11562. .upCover2 {
  11563. width: 100%;
  11564. position: relative;
  11565. margin: 0 15px 10px 0;
  11566. display: flex;
  11567. flex-direction: column;
  11568. flex-wrap: nowrap;
  11569. justify-content: center;
  11570. align-content: center;
  11571. align-items: center;
  11572. }
  11573. .upCover2>img {
  11574. width: 100%;
  11575. height: 90px;
  11576. object-fit: contain;
  11577. }
  11578. .chapter_add {
  11579. width: 120px;
  11580. position: relative;
  11581. text-align: center;
  11582. }
  11583. .isAddThings {
  11584. margin-top: 20px;
  11585. position: relative;
  11586. text-align: center;
  11587. background: #f7f8fa;
  11588. height: 90px;
  11589. width: 90px;
  11590. display: flex;
  11591. flex-direction: column;
  11592. justify-content: center;
  11593. }
  11594. .deleteWord {
  11595. width: 22px;
  11596. height: 22px;
  11597. position: absolute;
  11598. right: -5px;
  11599. top: -5px;
  11600. cursor: pointer;
  11601. }
  11602. .box_course {
  11603. /* width: 60%; */
  11604. width: 81%;
  11605. }
  11606. .wheel {
  11607. width: 100%;
  11608. /* height: 100%; */
  11609. height: 650px;
  11610. }
  11611. .right_box {
  11612. display: flex;
  11613. flex-direction: column;
  11614. margin-left: 30px;
  11615. justify-content: space-around;
  11616. }
  11617. .right_box_title {
  11618. font-size: 23px;
  11619. }
  11620. .people {
  11621. display: flex;
  11622. }
  11623. .student_body {
  11624. width: 100%;
  11625. margin: 0 auto;
  11626. margin-top: 10px;
  11627. padding: 0 0 20px;
  11628. }
  11629. .study_top {
  11630. margin-top: 70px;
  11631. width: 100%;
  11632. /* overflow: auto; */
  11633. height: auto;
  11634. }
  11635. .study_top .checkbox {
  11636. display: flex;
  11637. align-items: center;
  11638. padding: 15px 0 15px 30px;
  11639. flex: 0 0 auto;
  11640. font-weight: bold;
  11641. border-bottom: 1px solid #eee;
  11642. }
  11643. .study_top .check {
  11644. padding-bottom: 5px;
  11645. text-align: center;
  11646. cursor: pointer;
  11647. height: 30px;
  11648. box-sizing: border-box;
  11649. display: flex;
  11650. }
  11651. .study_top .checked {
  11652. border-bottom: 4px solid #3fc6a0;
  11653. padding-bottom: 5px;
  11654. color: #3fc6a0;
  11655. display: flex;
  11656. height: 35px;
  11657. }
  11658. .study_top .checked>div,
  11659. .study_top .check>div {
  11660. margin-right: 5px;
  11661. }
  11662. .videoTop {
  11663. display: flex;
  11664. flex-direction: row;
  11665. justify-content: space-between;
  11666. background: #fff;
  11667. align-items: center;
  11668. width: 95%;
  11669. padding: 20px;
  11670. }
  11671. .upbtn {
  11672. margin: 25px;
  11673. background: #70afdb;
  11674. color: #fff;
  11675. width: 120px;
  11676. text-align: center;
  11677. height: 30px;
  11678. line-height: 30px;
  11679. font-size: 13px;
  11680. border-radius: 5px;
  11681. cursor: pointer;
  11682. }
  11683. .filebox {
  11684. display: flex;
  11685. flex-wrap: wrap;
  11686. flex-direction: column;
  11687. padding: 15px 0 5px;
  11688. }
  11689. .filebox .tooldetail {
  11690. width: 100%;
  11691. margin: 0px 12px;
  11692. background: rgb(247, 247, 247);
  11693. padding: 20px;
  11694. line-height: 30px;
  11695. word-break: break-word;
  11696. }
  11697. .file {
  11698. display: flex;
  11699. flex-direction: column;
  11700. align-items: center;
  11701. justify-content: center;
  11702. cursor: pointer;
  11703. width: 200px;
  11704. }
  11705. .file div {
  11706. margin-top: 10px;
  11707. width: 150px;
  11708. text-align: center;
  11709. overflow: hidden;
  11710. white-space: nowrap;
  11711. text-overflow: ellipsis;
  11712. }
  11713. .media {
  11714. display: flex;
  11715. flex-direction: column;
  11716. align-items: center;
  11717. justify-content: center;
  11718. margin: 0 20px 20px 0;
  11719. cursor: pointer;
  11720. margin: 12px 0 5px 15px;
  11721. overflow: hidden;
  11722. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  11723. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  11724. box-sizing: border-box;
  11725. }
  11726. .media img {
  11727. height: 90px;
  11728. width: 160px;
  11729. object-fit: cover;
  11730. }
  11731. .media .title {
  11732. padding: 5px;
  11733. text-align: left;
  11734. width: 100%;
  11735. box-sizing: border-box;
  11736. }
  11737. .media .btn {
  11738. width: 100%;
  11739. height: 35px;
  11740. line-height: 35px;
  11741. color: #fff;
  11742. background: #606060;
  11743. text-align: center;
  11744. overflow: hidden;
  11745. white-space: nowrap;
  11746. text-overflow: ellipsis;
  11747. }
  11748. .detail_content_top {
  11749. width: 100%;
  11750. padding: 25px 0 25px 0;
  11751. }
  11752. .detail_title {
  11753. text-align: center;
  11754. font-size: 24px;
  11755. }
  11756. .detail_time {
  11757. font-size: 13px;
  11758. padding: 15px 0 0 40px;
  11759. }
  11760. .detail_content {
  11761. line-height: 2pc;
  11762. width: 90%;
  11763. margin: 0 auto;
  11764. padding-top: 30px;
  11765. text-indent: 30px;
  11766. overflow: auto;
  11767. height: 200px;
  11768. }
  11769. .score_box>>>.el-rate {
  11770. margin-left: 10px;
  11771. }
  11772. .dialog_change>>>.el-dialog {
  11773. border-radius: 5px;
  11774. }
  11775. .dialog_change>>>.el-dialog__header {
  11776. background: #f2f2f2;
  11777. text-align: center;
  11778. }
  11779. .dialog_change>>>.el-dialog__title {
  11780. line-height: 5px;
  11781. }
  11782. .dialog_change>>>.el-dialog__body {
  11783. background: #fff;
  11784. padding: 10px 20px;
  11785. }
  11786. .score_box {
  11787. display: flex;
  11788. align-items: center;
  11789. margin-bottom: 18px;
  11790. margin-top: 20px;
  11791. }
  11792. .up_photo {
  11793. width: 120px;
  11794. cursor: pointer;
  11795. margin-top: 10px;
  11796. }
  11797. .up_photo2 {
  11798. width: 180px;
  11799. box-sizing: border-box;
  11800. min-width: 180px;
  11801. height: 180px;
  11802. max-height: 180px;
  11803. min-height: 180px;
  11804. cursor: pointer;
  11805. display: flex;
  11806. flex-direction: column;
  11807. align-items: center;
  11808. justify-content: center;
  11809. background: rgb(242, 246, 255);
  11810. /* padding: 25px; */
  11811. margin-bottom: 10px;
  11812. }
  11813. .up_photo2 img {
  11814. width: 50%;
  11815. height: auto;
  11816. }
  11817. .up_photo2 span {
  11818. color: #898989;
  11819. }
  11820. .plworkBox {
  11821. display: flex;
  11822. align-items: center;
  11823. margin-top: 10px;
  11824. flex-wrap: wrap;
  11825. }
  11826. .upload_send {
  11827. margin: 30px auto 30px;
  11828. width: 60%;
  11829. background: #169bd6;
  11830. text-align: center;
  11831. height: 35px;
  11832. line-height: 35px;
  11833. color: #fff;
  11834. border-radius: 5px;
  11835. cursor: pointer;
  11836. }
  11837. .marginT {
  11838. margin-top: 20px;
  11839. }
  11840. .cd_content_steps {
  11841. display: flex;
  11842. width: 90%;
  11843. justify-content: space-around;
  11844. border-top: 1px solid #eeeeee;
  11845. }
  11846. .cd_steps_box {
  11847. display: flex;
  11848. justify-content: center;
  11849. align-items: center;
  11850. flex-direction: column;
  11851. cursor: pointer;
  11852. }
  11853. .first {
  11854. display: flex;
  11855. align-items: center;
  11856. margin: 15px 0 20px 0;
  11857. font-size: 20px;
  11858. }
  11859. .first>div:nth-child(2) {
  11860. font-size: 16px !important;
  11861. padding-left: 10px;
  11862. line-height: 26px;
  11863. box-sizing: border-box;
  11864. }
  11865. .blue_box_one {
  11866. text-align: center;
  11867. color: #fff;
  11868. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  11869. border-radius: 7px;
  11870. margin: 10px;
  11871. cursor: pointer;
  11872. width: 95%;
  11873. height: 45px;
  11874. display: flex;
  11875. flex-direction: row;
  11876. justify-content: flex-start;
  11877. align-items: center;
  11878. }
  11879. .blue_box_one>div:nth-child(1) {
  11880. line-height: 30px;
  11881. margin: 0 5px 0 10px;
  11882. width: 30%;
  11883. min-width: 70px;
  11884. border-radius: 4px;
  11885. }
  11886. .blue_box_one>div:nth-child(2) {
  11887. white-space: nowrap;
  11888. text-overflow: ellipsis;
  11889. overflow: hidden;
  11890. word-break: break-all;
  11891. width: 70%;
  11892. text-align: left;
  11893. margin-right: 10px;
  11894. max-width: calc(100% - 85px);
  11895. }
  11896. .blue_box_one>div:nth-child(2):hover {
  11897. overflow: hidden;
  11898. text-overflow: ellipsis;
  11899. white-space: nowrap;
  11900. cursor: pointer;
  11901. }
  11902. .upFile {
  11903. margin: 0 auto;
  11904. width: 120px;
  11905. background: #70afdb;
  11906. color: #fff;
  11907. height: 30px;
  11908. text-align: center;
  11909. line-height: 30px;
  11910. border-radius: 5px;
  11911. font-size: 14px;
  11912. cursor: pointer;
  11913. }
  11914. .courseTitle {
  11915. background: #205cc6;
  11916. width: 85%;
  11917. margin: 10px auto;
  11918. color: #fff;
  11919. border-radius: 5px;
  11920. padding: 10px 10px;
  11921. display: flex;
  11922. flex-direction: row;
  11923. align-items: center;
  11924. justify-content: space-between;
  11925. text-align: center;
  11926. }
  11927. .courseTitle .ctitle {
  11928. font-weight: bold;
  11929. font-size: 20px;
  11930. white-space: nowrap;
  11931. overflow: hidden;
  11932. text-overflow: ellipsis;
  11933. }
  11934. .courseTitle .inviteBox {
  11935. font-size: 14px;
  11936. margin-top: 5px;
  11937. color: #a6cbff;
  11938. }
  11939. .courseTitle>>>.el-tooltip {
  11940. width: 100%;
  11941. white-space: nowrap;
  11942. overflow: hidden;
  11943. text-overflow: ellipsis;
  11944. word-break: break-word;
  11945. }
  11946. .ml {
  11947. margin-left: 20px;
  11948. color: #5b7dba;
  11949. border-left: 3px solid #5b7dba;
  11950. padding-left: 5px;
  11951. font-weight: bold;
  11952. }
  11953. .return {
  11954. width: 2rem;
  11955. height: 2rem;
  11956. cursor: pointer;
  11957. }
  11958. .return>img {
  11959. width: 100%;
  11960. height: 100%;
  11961. }
  11962. .returnBtn {
  11963. background: #499eef;
  11964. width: 65px;
  11965. height: 30px;
  11966. color: #fff;
  11967. text-align: center;
  11968. line-height: 32px;
  11969. margin-right: 20px;
  11970. cursor: pointer;
  11971. border-radius: 5px;
  11972. font-size: 14px;
  11973. }
  11974. .tool {
  11975. display: flex;
  11976. flex-direction: column;
  11977. flex-wrap: nowrap;
  11978. width: 13%;
  11979. margin: 0 30px;
  11980. align-items: center;
  11981. }
  11982. .whiteBIcon {
  11983. width: 150px;
  11984. cursor: pointer;
  11985. }
  11986. .whiteBIcon>img {
  11987. width: 100%;
  11988. height: 100%;
  11989. }
  11990. .mask {
  11991. background-color: rgba(0, 0, 0, 0);
  11992. position: fixed;
  11993. top: 0;
  11994. left: 0;
  11995. width: 100%;
  11996. height: 100%;
  11997. z-index: 20000;
  11998. display: flex;
  11999. align-items: center;
  12000. justify-content: center;
  12001. }
  12002. .progressBox {
  12003. width: 500px;
  12004. height: 180px;
  12005. background: #fff;
  12006. border-radius: 10px;
  12007. box-shadow: 0 0 6px 1px #bfbfbf;
  12008. display: flex;
  12009. align-items: center;
  12010. justify-content: center;
  12011. flex-direction: column;
  12012. position: relative;
  12013. color: #6c6c6c;
  12014. }
  12015. .progressBox>>>.el-progress-bar__outer {
  12016. background-color: #d1dfff !important;
  12017. }
  12018. .progressBox .lbox {
  12019. height: 50px;
  12020. font-size: 19px;
  12021. display: flex;
  12022. align-items: center;
  12023. color: #747474;
  12024. }
  12025. .progressBox .lbox img {
  12026. width: 40px;
  12027. margin-right: 20px;
  12028. }
  12029. .closeCss {
  12030. position: absolute;
  12031. top: 8px;
  12032. right: 8px;
  12033. cursor: pointer;
  12034. width: 20px;
  12035. height: 20px;
  12036. }
  12037. .closeCss>img {
  12038. width: 100%;
  12039. height: 100%;
  12040. }
  12041. .uploadVedio {
  12042. display: flex;
  12043. flex-direction: column;
  12044. flex-wrap: nowrap;
  12045. justify-content: center;
  12046. align-items: center;
  12047. margin: 0 15px 10px 0;
  12048. }
  12049. .uploadVedio>img {
  12050. width: 30px;
  12051. height: 30px;
  12052. }
  12053. .uploadVedio>span {
  12054. white-space: nowrap;
  12055. overflow: hidden;
  12056. text-overflow: ellipsis;
  12057. width: 75px;
  12058. margin-top: 7px;
  12059. }
  12060. .picName {
  12061. white-space: nowrap;
  12062. overflow: hidden;
  12063. text-overflow: ellipsis;
  12064. width: 75px;
  12065. margin-top: 7px;
  12066. }
  12067. .new_top {
  12068. display: flex;
  12069. background: #fff;
  12070. flex-direction: row;
  12071. justify-content: flex-start;
  12072. align-items: center;
  12073. height: 60px;
  12074. position: relative;
  12075. }
  12076. .before {
  12077. position: absolute;
  12078. background: #c3dad4;
  12079. width: 6px;
  12080. height: 100%;
  12081. }
  12082. .courseIndex {
  12083. display: flex;
  12084. flex-direction: row;
  12085. align-items: center;
  12086. width: calc(100% - 520px);
  12087. }
  12088. .courseIndex>div:nth-child(1) {
  12089. margin: 0 20px;
  12090. padding-left: 5px;
  12091. font-size: 24px;
  12092. min-width: 100px;
  12093. font-weight: bold;
  12094. border-left: 4px solid #3363b9;
  12095. height: 35px;
  12096. text-align: center;
  12097. line-height: 35px;
  12098. }
  12099. .courseIndex>div:nth-child(2) {
  12100. font-size: 23px;
  12101. /* width: 300px; */
  12102. max-width: calc(100% - 180px);
  12103. white-space: nowrap;
  12104. overflow: hidden;
  12105. text-overflow: ellipsis;
  12106. }
  12107. .courseIndex>div:nth-child(3) {
  12108. border-bottom: 1px solid #d7d7d7;
  12109. padding-bottom: 5px;
  12110. background: #49a0f0;
  12111. width: 55px;
  12112. min-width: 55px;
  12113. border-radius: 5px;
  12114. color: #fff;
  12115. text-align: center;
  12116. height: 20px;
  12117. line-height: 26px;
  12118. font-size: 14px;
  12119. margin: 0 0 0 10px;
  12120. }
  12121. .course_text {
  12122. padding: 20px 0 0 15px;
  12123. text-indent: 30px;
  12124. width: 80%;
  12125. min-height: 20px;
  12126. }
  12127. .vedioList {
  12128. background: #f2f2f2;
  12129. border: 1px solid #ececec;
  12130. /* width: 38.8%; */
  12131. width: 100%;
  12132. height: 445px;
  12133. border-radius: 10px;
  12134. overflow: hidden;
  12135. }
  12136. .vedioNav {
  12137. margin: 10px 0 0 15px;
  12138. border-bottom: 1px solid #d7d7d7;
  12139. padding-bottom: 5px;
  12140. background: #96d1ff;
  12141. width: 55px;
  12142. min-width: 55px;
  12143. border-radius: 5px;
  12144. color: #fff;
  12145. text-align: center;
  12146. height: 20px;
  12147. line-height: 26px;
  12148. font-size: 14px;
  12149. }
  12150. .queTop {
  12151. display: flex;
  12152. padding: 20px 0 20px 30px;
  12153. width: 100%;
  12154. flex-direction: row;
  12155. justify-content: flex-start;
  12156. align-items: center;
  12157. border-bottom: 1px solid #eeeeee;
  12158. box-sizing: border-box;
  12159. }
  12160. .question {
  12161. width: 40px;
  12162. margin-right: 10px;
  12163. margin-top: 7px;
  12164. }
  12165. .queTitle {
  12166. margin-left: 5px;
  12167. font-size: 25px;
  12168. display: flex;
  12169. align-items: center;
  12170. }
  12171. .addEditor {
  12172. width: 100px;
  12173. height: 30px;
  12174. background: #42cda6;
  12175. color: #fff;
  12176. border-radius: 5px;
  12177. text-align: center;
  12178. line-height: 30px;
  12179. box-shadow: 1px 3px 6px 1px #bfbfbf;
  12180. cursor: pointer;
  12181. }
  12182. .vedioName {
  12183. /* text-overflow: ellipsis;
  12184. top: 8px;
  12185. font-size: 14px;
  12186. overflow: hidden;
  12187. width: 100%;
  12188. word-break: break-all;
  12189. white-space: nowrap; */
  12190. cursor: pointer;
  12191. margin: 0px 0px 10px 5px;
  12192. white-space: nowrap;
  12193. overflow: hidden;
  12194. text-overflow: ellipsis;
  12195. width: 100%;
  12196. }
  12197. .vedioTime {
  12198. width: 35px;
  12199. position: absolute;
  12200. color: #fff;
  12201. bottom: 0px;
  12202. right: 0px;
  12203. text-align: center;
  12204. background: #46411f;
  12205. height: 20px;
  12206. font-size: 14px;
  12207. line-height: 20px;
  12208. }
  12209. .homework {
  12210. width: 200px;
  12211. display: flex;
  12212. flex-direction: column;
  12213. flex-wrap: nowrap;
  12214. align-items: center;
  12215. cursor: pointer;
  12216. }
  12217. .homebox {
  12218. display: flex;
  12219. flex-wrap: wrap;
  12220. flex-direction: row;
  12221. justify-content: flex-start;
  12222. align-items: center;
  12223. padding: 15px 0;
  12224. }
  12225. .isChooseActive {
  12226. color: #3e88f4;
  12227. border-bottom: 2px solid #2f80f3;
  12228. }
  12229. .chooseWho {
  12230. display: flex;
  12231. width: 100%;
  12232. flex-direction: row;
  12233. flex-wrap: nowrap;
  12234. justify-content: flex-start;
  12235. padding-bottom: 10px;
  12236. }
  12237. .chooseWho>div {
  12238. cursor: pointer;
  12239. padding-bottom: 10px;
  12240. margin: 0 30px 0 0;
  12241. }
  12242. .addPoint>div>img {
  12243. cursor: pointer;
  12244. margin: 0 10px;
  12245. width: 85px;
  12246. border-radius: 15px;
  12247. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  12248. }
  12249. .addPoint>div {
  12250. display: flex;
  12251. flex-direction: column;
  12252. flex-wrap: nowrap;
  12253. align-items: center;
  12254. }
  12255. .isBorder>div {
  12256. margin: 0 0 10px 0;
  12257. align-items: flex-start !important;
  12258. }
  12259. .noiframeBox {
  12260. display: flex;
  12261. flex-wrap: wrap;
  12262. }
  12263. .iframeBox iframe {
  12264. width: 100%;
  12265. height: 800px;
  12266. border: none;
  12267. margin-bottom: 20px;
  12268. border: 1px solid #ccc;
  12269. }
  12270. .upload_toolBtn {
  12271. background: #6b92c9;
  12272. color: #fff;
  12273. width: 110px;
  12274. text-align: center;
  12275. height: 35px;
  12276. line-height: 35px;
  12277. font-size: 14px;
  12278. border-radius: 5px;
  12279. cursor: pointer;
  12280. position: absolute;
  12281. right: 10px;
  12282. bottom: 0;
  12283. }
  12284. .binfo_input,
  12285. .pj {
  12286. font: inherit;
  12287. color: currentColor;
  12288. width: 100%;
  12289. margin: 0;
  12290. padding: 15px 14px;
  12291. display: block;
  12292. min-width: 0;
  12293. outline: none;
  12294. box-sizing: content-box;
  12295. background: none;
  12296. -webkit-tap-highlight-color: transparent;
  12297. border: 1px solid rgba(0, 0, 0, 0.23);
  12298. border-radius: 4px;
  12299. box-sizing: border-box;
  12300. resize: none;
  12301. }
  12302. .binfo_input:focus-visible {
  12303. border: 1px solid rgba(61, 103, 188);
  12304. }
  12305. .dialog_diy>>>.el-dialog__header,
  12306. .dialog_diy1>>>.el-dialog__header {
  12307. background: #454545 !important;
  12308. padding: 15px 20px;
  12309. }
  12310. .dialog_diy>>>.el-dialog__title,
  12311. .dialog_diy1>>>.el-dialog__title {
  12312. color: #fff;
  12313. }
  12314. .dialog_diy>>>.el-dialog__headerbtn,
  12315. .dialog_diy1>>>.el-dialog__headerbtn {
  12316. top: 19px;
  12317. }
  12318. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close,
  12319. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close {
  12320. color: #fff;
  12321. }
  12322. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover,
  12323. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close:hover {
  12324. color: #fff;
  12325. }
  12326. .dialog_diy1>>>.el-dialog__body {
  12327. padding: 0;
  12328. }
  12329. .dialog_diy>>>.el-dialog__body,
  12330. .dialog_diy>>>.el-dialog__footer,
  12331. .dialog_diy1>>>.el-dialog__footer {
  12332. background: #fafafa;
  12333. }
  12334. .a_addBox {
  12335. margin: 10px 0;
  12336. background: #fff;
  12337. padding: 15px;
  12338. }
  12339. .a_add_box {
  12340. border-bottom: 2px solid #eee;
  12341. padding-bottom: 10px;
  12342. }
  12343. .a_add_head {
  12344. display: flex;
  12345. align-items: flex-start;
  12346. /* justify-content: space-between; */
  12347. flex-direction: column;
  12348. /* flex-direction: row; */
  12349. margin: 10px 0 20px 0;
  12350. font-size: 18px;
  12351. width: 100%;
  12352. }
  12353. .a_add_head .a_add_head_input {
  12354. width: 300px;
  12355. }
  12356. .a_add_head .a_add_head_div {
  12357. display: flex;
  12358. align-items: center;
  12359. justify-content: space-between;
  12360. }
  12361. .a_add_body {
  12362. display: flex;
  12363. align-items: center;
  12364. }
  12365. .a_add_input {
  12366. display: flex;
  12367. align-items: center;
  12368. flex-wrap: wrap;
  12369. }
  12370. .a_add_input>>>el-radio-group {
  12371. margin: 10px 0;
  12372. }
  12373. .a_add_input>>>.el-radio,
  12374. .a_add_input>>>.el-checkbox {
  12375. margin-bottom: 10px;
  12376. display: flex;
  12377. flex-direction: row;
  12378. flex-wrap: nowrap;
  12379. align-items: center;
  12380. }
  12381. .redioStyle>>>.el-radio__label {
  12382. font-size: 18px;
  12383. }
  12384. .redioStyle>>>.el-checkbox__label {
  12385. font-size: 18px;
  12386. }
  12387. .toolHeng2 {
  12388. width: 100%;
  12389. }
  12390. .toolHeng {
  12391. display: flex;
  12392. flex-direction: row;
  12393. flex-wrap: wrap;
  12394. justify-content: flex-start;
  12395. align-items: center;
  12396. width: 100%;
  12397. }
  12398. .toolHeng>div {
  12399. padding-left: 20px;
  12400. }
  12401. .isWidth {
  12402. width: 20%;
  12403. }
  12404. .textTitle {
  12405. display: flex;
  12406. flex-direction: row;
  12407. flex-wrap: nowrap;
  12408. align-items: center;
  12409. width: 95%;
  12410. }
  12411. .textTitle>>>.el-form-item__label {
  12412. font-size: 22px;
  12413. color: #918f8f;
  12414. width: 100px;
  12415. }
  12416. .textTitle>>>.el-form-item__content {
  12417. width: calc(100% - 100px);
  12418. }
  12419. .textCss>>>.el-dialog {
  12420. width: 800px !important;
  12421. height: 400px;
  12422. background: #fafafa;
  12423. }
  12424. .textCss>>>.el-dialog__body {
  12425. margin: 55px 8% 0 8%;
  12426. padding: 0 !important;
  12427. }
  12428. .textCss>>>.el-dialog__footer {
  12429. padding-top: 38px;
  12430. }
  12431. .toolsCss>>>.el-dialog__body {
  12432. padding: 20px;
  12433. }
  12434. .lineCss>>>.el-dialog__body {
  12435. display: flex;
  12436. flex-direction: row;
  12437. align-items: center;
  12438. justify-content: center;
  12439. }
  12440. .newNav {
  12441. display: flex;
  12442. flex-direction: row;
  12443. align-items: baseline;
  12444. justify-content: flex-start;
  12445. }
  12446. .navText {
  12447. cursor: pointer;
  12448. margin: 0px 0px 10px 5px;
  12449. white-space: nowrap;
  12450. overflow: hidden;
  12451. text-overflow: ellipsis;
  12452. /* width: 300px; */
  12453. width: 100%;
  12454. }
  12455. .noVedio {
  12456. display: flex;
  12457. flex-direction: row;
  12458. justify-content: center;
  12459. align-content: center;
  12460. }
  12461. .noNavText {
  12462. cursor: pointer;
  12463. margin: 0px 0px 10px 5px;
  12464. width: 112px;
  12465. }
  12466. .listNoVedio {
  12467. margin: 0 0 0 30px;
  12468. width: 97%;
  12469. }
  12470. .video-player>>>.video-js {
  12471. height: 100%;
  12472. }
  12473. .hangVedioList {
  12474. width: 90% !important;
  12475. height: 150px !important;
  12476. margin: 20px 0 0 30px;
  12477. }
  12478. .hangVedio {
  12479. width: 100%;
  12480. height: 170px !important;
  12481. align-items: flex-start !important;
  12482. }
  12483. .hangHand {
  12484. height: 150px !important;
  12485. }
  12486. .twoChild {
  12487. width: 95%;
  12488. margin: 10px;
  12489. border-radius: 5px;
  12490. background: #f2f2f2;
  12491. display: flex;
  12492. flex-direction: column;
  12493. flex-wrap: nowrap;
  12494. justify-content: flex-start;
  12495. align-items: flex-start;
  12496. transition: all 0.5s;
  12497. overflow: hidden;
  12498. height: 0;
  12499. background: #e7f3ff;
  12500. }
  12501. .twoChild>div:nth-child(1) {
  12502. margin-top: 5px;
  12503. }
  12504. .navChild {
  12505. width: 100%;
  12506. cursor: pointer;
  12507. margin-bottom: 10px;
  12508. position: relative;
  12509. }
  12510. .navChild img {
  12511. position: absolute;
  12512. right: 11px;
  12513. width: 15px;
  12514. top: 50%;
  12515. transform: translateY(-50%);
  12516. }
  12517. .navActive {
  12518. height: auto;
  12519. }
  12520. .navTask {
  12521. display: flex;
  12522. flex-direction: row;
  12523. flex-wrap: nowrap;
  12524. align-items: center;
  12525. align-content: flex-start;
  12526. height: 40px;
  12527. justify-content: flex-start;
  12528. padding: 0 10px;
  12529. width: 100%;
  12530. box-sizing: border-box;
  12531. }
  12532. .navTaskname {
  12533. white-space: nowrap;
  12534. text-overflow: ellipsis;
  12535. overflow: hidden;
  12536. word-break: break-all;
  12537. padding-left: 5px;
  12538. }
  12539. .openTaskActive {
  12540. color: #4386e6;
  12541. }
  12542. .iframeName {
  12543. margin: 5px 0;
  12544. border-left: 4px solid #41c4a4;
  12545. padding-left: 4px;
  12546. }
  12547. .toolTitle {
  12548. margin: 0px 0px 20px;
  12549. font-size: 20px;
  12550. font-weight: 500;
  12551. border-left: 4px solid #41c4a4;
  12552. padding-left: 4px;
  12553. }
  12554. .cru_selectBox {
  12555. overflow: auto;
  12556. width: 96%;
  12557. margin: 0 auto;
  12558. height: calc(100% - 40px - 21px - 20px);
  12559. }
  12560. .cru_selectBox::-webkit-scrollbar,
  12561. .study_top::-webkit-scrollbar,
  12562. .textContent::-webkit-scrollbar {
  12563. /*滚动条整体样式*/
  12564. width: 6px;
  12565. /*高宽分别对应横竖滚动条的尺寸*/
  12566. height: 6px;
  12567. }
  12568. /*定义滚动条轨道 内阴影+圆角*/
  12569. .cru_selectBox::-webkit-scrollbar-track,
  12570. .study_top::-webkit-scrollbar-track,
  12571. .textContent::-webkit-scrollbar {
  12572. border-radius: 10px;
  12573. background-color: #b8bdc9;
  12574. }
  12575. /*定义滑块 内阴影+圆角*/
  12576. .cru_selectBox::-webkit-scrollbar-thumb,
  12577. .study_top::-webkit-scrollbar-thumb,
  12578. .textContent::-webkit-scrollbar-thumb {
  12579. border-radius: 10px;
  12580. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  12581. background-color: #2c5ab3;
  12582. }
  12583. .vedioBox {
  12584. border-radius: 20px;
  12585. background: #fff;
  12586. margin-bottom: 10px;
  12587. overflow: auto;
  12588. }
  12589. .taskBox {
  12590. margin: 15px auto 20px;
  12591. background: #f7f7f7;
  12592. width: 97%;
  12593. border-radius: 10px;
  12594. }
  12595. .vedioTaskBox {
  12596. width: 100%;
  12597. display: flex;
  12598. flex-direction: row;
  12599. flex-wrap: nowrap;
  12600. align-items: flex-start;
  12601. position: relative;
  12602. }
  12603. .toolBox {
  12604. padding: 20px 60px 15px;
  12605. display: flex;
  12606. position: relative;
  12607. }
  12608. .btnAll {
  12609. position: absolute;
  12610. right: 0;
  12611. display: flex;
  12612. flex-direction: row;
  12613. flex-wrap: nowrap;
  12614. align-items: center;
  12615. }
  12616. .btnAllNT {
  12617. position: fixed;
  12618. bottom: 50px;
  12619. right: 40px;
  12620. z-index: 999;
  12621. display: flex;
  12622. flex-direction: row;
  12623. }
  12624. .btnAllNT>img {
  12625. cursor: pointer;
  12626. width: 80px;
  12627. }
  12628. .vedioTimeBox {
  12629. display: flex;
  12630. flex-direction: row;
  12631. align-items: center;
  12632. flex-wrap: nowrap;
  12633. position: relative;
  12634. }
  12635. .navBox {
  12636. background: #fff;
  12637. height: calc(100% - 40px);
  12638. padding: 5px 1px 0;
  12639. overflow-y: auto;
  12640. overflow-x: hidden;
  12641. }
  12642. .tool_work_box {
  12643. width: 100%;
  12644. padding: 0 30px 10px;
  12645. box-sizing: border-box;
  12646. }
  12647. .worksBox {
  12648. padding: 5px 0;
  12649. border-bottom: 1px solid #eeeeee;
  12650. }
  12651. .worksBTitle {
  12652. font-size: 20px;
  12653. padding-bottom: 15px;
  12654. border-bottom: 1px solid #eeeeee;
  12655. display: flex;
  12656. align-items: center;
  12657. }
  12658. .greenBox {
  12659. width: 5px;
  12660. height: 30px;
  12661. background: #63b6fa;
  12662. margin-right: 5px;
  12663. }
  12664. .worksDetailBox {
  12665. display: flex;
  12666. width: 100%;
  12667. flex-direction: row;
  12668. flex-wrap: wrap;
  12669. align-items: flex-end;
  12670. justify-content: flex-start;
  12671. padding: 15px 0;
  12672. }
  12673. .works {
  12674. display: flex;
  12675. flex-direction: column;
  12676. flex-wrap: nowrap;
  12677. align-items: flex-start;
  12678. justify-content: flex-start;
  12679. align-content: center;
  12680. max-width: 240px;
  12681. width: calc(100% / 3 - 10px);
  12682. height: auto;
  12683. margin-right: 10px;
  12684. margin-bottom: 10px;
  12685. overflow: hidden;
  12686. height: 140px;
  12687. box-shadow: 0 0 6px 1px #dfdada;
  12688. border-radius: 15px;
  12689. }
  12690. .workImg {
  12691. width: 100%;
  12692. /* height: calc(100% - 40px); */
  12693. height: 105px;
  12694. position: relative;
  12695. }
  12696. .workImg>img {
  12697. width: 100%;
  12698. height: 100%;
  12699. object-fit: contain;
  12700. cursor: pointer;
  12701. }
  12702. .worksName {
  12703. height: 40px;
  12704. line-height: 40px;
  12705. display: flex;
  12706. width: 100%;
  12707. flex-direction: row;
  12708. flex-wrap: nowrap;
  12709. justify-content: space-between;
  12710. align-items: center;
  12711. margin: 0 0 0 10px;
  12712. }
  12713. .worksName>div:nth-child(1) {
  12714. width: 110px;
  12715. white-space: nowrap;
  12716. overflow: hidden;
  12717. text-overflow: ellipsis;
  12718. }
  12719. .worksName>div:nth-child(2) {
  12720. color: #b7b4b5;
  12721. }
  12722. .noWorksS {
  12723. padding: 15px 0 0;
  12724. display: flex;
  12725. flex-direction: row;
  12726. flex-wrap: wrap;
  12727. align-items: center;
  12728. justify-content: flex-start;
  12729. }
  12730. .noWorksS>div {
  12731. cursor: pointer;
  12732. }
  12733. .noWorksName,
  12734. .isWorksName {
  12735. background: #7cbcf1;
  12736. color: #fff;
  12737. width: 90px;
  12738. height: 25px;
  12739. text-align: center;
  12740. line-height: 25px;
  12741. border-radius: 5px;
  12742. margin: 10px 15px 10px 0;
  12743. white-space: nowrap;
  12744. overflow: hidden;
  12745. padding: 5px;
  12746. text-overflow: ellipsis;
  12747. }
  12748. .noWorksName.isWork {
  12749. background: #165d96 !important;
  12750. }
  12751. .isWorksName {
  12752. cursor: pointer;
  12753. background: #46a1eb !important;
  12754. width: 100px;
  12755. height: 40px;
  12756. line-height: 40px;
  12757. position: relative;
  12758. }
  12759. .noWorksName:hover {
  12760. background: #46a1eb !important;
  12761. }
  12762. .title {
  12763. background: #1e5cc9;
  12764. /* width: 98%; */
  12765. height: 45px;
  12766. color: #fff;
  12767. line-height: 45px;
  12768. padding-left: 20px;
  12769. box-sizing: border-box;
  12770. }
  12771. .textBox {
  12772. font-size: 20px;
  12773. width: 90%;
  12774. display: flex;
  12775. flex-direction: column;
  12776. align-items: center;
  12777. margin: 20px auto 0;
  12778. max-height: 500px;
  12779. overflow: auto;
  12780. }
  12781. .textContent {
  12782. font-size: 18px;
  12783. width: 95%;
  12784. max-width: 95%;
  12785. }
  12786. .answerBg {
  12787. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  12788. background-size: 100% 100%;
  12789. width: 100%;
  12790. height: 100%;
  12791. color: #fff;
  12792. text-align: center;
  12793. display: flex;
  12794. flex-direction: column;
  12795. flex-wrap: nowrap;
  12796. align-items: center;
  12797. position: relative;
  12798. justify-content: center;
  12799. }
  12800. .answerBg>div:nth-child(1) {
  12801. /* font-size: 22px;
  12802. padding: 25px 0 10px; */
  12803. }
  12804. .answerContent {
  12805. width: 215px;
  12806. max-height: 60px;
  12807. word-break: break-all;
  12808. text-align: center;
  12809. /* white-space: nowrap; */
  12810. overflow: hidden;
  12811. text-overflow: ellipsis;
  12812. /* padding: 23px 0 0; */
  12813. -webkit-line-clamp: 3;
  12814. -webkit-box-orient: vertical;
  12815. display: -webkit-box;
  12816. font-size: 15px;
  12817. cursor: pointer;
  12818. }
  12819. .elist_input_box {
  12820. display: flex;
  12821. align-items: flex-start;
  12822. flex-wrap: nowrap;
  12823. padding: 10px 0 15px 30px;
  12824. flex-direction: column;
  12825. }
  12826. .elist_input {
  12827. /* width: 40%; */
  12828. width: 100%;
  12829. }
  12830. .elist_input .elist_input_box input {
  12831. font: inherit;
  12832. color: currentColor;
  12833. width: 200px;
  12834. padding: 8px 14px;
  12835. display: block;
  12836. min-width: 0;
  12837. outline: none;
  12838. border: 1px solid rgba(0, 0, 0, 0.23);
  12839. border-radius: 4px;
  12840. box-sizing: border-box;
  12841. background: #fff;
  12842. margin: 0 20px 0 0;
  12843. }
  12844. .elist_input .elist_input_box span {
  12845. height: 36px;
  12846. line-height: 36px;
  12847. color: rgb(82, 82, 82);
  12848. }
  12849. .elist_input .elist_input_box .remove {
  12850. height: 20px;
  12851. width: 20px;
  12852. background-size: 100% 100%;
  12853. background-position: unset;
  12854. margin-left: 5px;
  12855. }
  12856. .elist_input_box>>>.el-rate {
  12857. display: flex;
  12858. height: 36px;
  12859. align-items: center;
  12860. }
  12861. .elist_input_box .elist_inptu_text {
  12862. min-height: 50px;
  12863. /* width: 500px;
  12864. max-height: 150px; */
  12865. width: 100%;
  12866. line-height: 50px;
  12867. color: rgb(82, 82, 82);
  12868. overflow: auto;
  12869. text-indent: 5px;
  12870. background: #f7f6f9;
  12871. border-radius: 10px;
  12872. }
  12873. .elist_input_box .elist_inptu_text input {
  12874. width: 500px;
  12875. }
  12876. .elist_input_box>>>.el-rate__icon {
  12877. font-size: 24px;
  12878. }
  12879. .isClick {
  12880. background: #4d9def;
  12881. }
  12882. /*定义滚动条轨道 内阴影+圆角*/
  12883. .bzTypeBox::-webkit-scrollbar {
  12884. /*滚动条整体样式*/
  12885. width: 6px;
  12886. /*高宽分别对应横竖滚动条的尺寸*/
  12887. height: 6px;
  12888. }
  12889. /*定义滚动条轨道 内阴影+圆角*/
  12890. .bzTypeBox::-webkit-scrollbar-track {
  12891. border-radius: 10px;
  12892. background-color: rgba(0, 0, 0, 0.1);
  12893. }
  12894. /*定义滑块 内阴影+圆角*/
  12895. .bzTypeBox::-webkit-scrollbar-thumb {
  12896. border-radius: 10px;
  12897. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  12898. background-color: rgba(0, 0, 0, 0.1);
  12899. }
  12900. .choiceBox {
  12901. display: flex;
  12902. margin: 20px 0;
  12903. width: 100%;
  12904. }
  12905. .bzTypeBox {
  12906. display: flex;
  12907. width: 100%;
  12908. overflow: auto;
  12909. white-space: nowrap;
  12910. }
  12911. .bzChild {
  12912. cursor: pointer;
  12913. box-sizing: border-box;
  12914. padding-bottom: 10px;
  12915. font-weight: bold;
  12916. min-width: fit-content;
  12917. }
  12918. .bzChild.active {
  12919. color: #3e88f4;
  12920. border-bottom: 2px solid #2f80f3;
  12921. }
  12922. .bzChild+.bzChild {
  12923. margin-left: 25px;
  12924. }
  12925. .bzBox {
  12926. display: flex;
  12927. flex-direction: row;
  12928. align-items: center;
  12929. }
  12930. .bzBox>div:nth-child(1) {
  12931. width: 4px;
  12932. height: 40px;
  12933. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  12934. }
  12935. .bzBox>div:nth-child(2) {
  12936. font-size: 23px;
  12937. font-weight: bold;
  12938. padding: 0px 0px 0 10px;
  12939. }
  12940. .navTitile {
  12941. padding: 0 0px 0 15px;
  12942. color: #fff;
  12943. height: 40px;
  12944. line-height: 40px;
  12945. }
  12946. .isTypeOne {
  12947. width: 240px;
  12948. height: 170px;
  12949. /* border: 1px solid #f8f8f8; */
  12950. border-radius: 10px;
  12951. box-shadow: 0 0 6px 1px #dfdada;
  12952. }
  12953. .e_add_top {
  12954. display: flex;
  12955. justify-content: space-between;
  12956. padding: 20px 20px 0 20px;
  12957. border-radius: 3px;
  12958. background: #fff;
  12959. }
  12960. .e_add_title2 {
  12961. display: flex;
  12962. align-items: center;
  12963. }
  12964. .e_add_title2 span {
  12965. width: 40px;
  12966. }
  12967. .e_add_title {
  12968. display: flex;
  12969. align-items: center;
  12970. color: #b8b8b8;
  12971. font-size: 18px;
  12972. position: relative;
  12973. height: 40px;
  12974. }
  12975. .e_add_title span {
  12976. margin-right: 10px;
  12977. }
  12978. .e_add_title .el_input {
  12979. width: 300px;
  12980. }
  12981. .e_add_title>>>.el-input__inner {
  12982. width: 400px;
  12983. }
  12984. .e_add_btn {}
  12985. .e_add_content {
  12986. display: flex;
  12987. width: 100%;
  12988. max-width: 650px;
  12989. height: 550px;
  12990. }
  12991. .e_add_list {
  12992. background: #fff;
  12993. height: 500px;
  12994. width: 210px;
  12995. position: relative;
  12996. margin: 15px 5px 0 0;
  12997. flex-shrink: 0;
  12998. display: flex;
  12999. flex-direction: column;
  13000. }
  13001. .e_add_list_title {
  13002. font-size: 20px;
  13003. width: 100%;
  13004. box-sizing: border-box;
  13005. padding: 15px 40px;
  13006. text-align: center;
  13007. border-bottom: 1px solid #eaeaea;
  13008. position: relative;
  13009. display: flex;
  13010. align-items: center;
  13011. justify-content: center;
  13012. height: 57px;
  13013. background: #f6f6f6;
  13014. }
  13015. .e_add_list_title span {
  13016. overflow: hidden;
  13017. white-space: nowrap;
  13018. text-overflow: ellipsis;
  13019. }
  13020. .e_add_list_title img {
  13021. position: absolute;
  13022. right: 15px;
  13023. width: 25px;
  13024. cursor: pointer;
  13025. top: 50%;
  13026. transform: translateY(-50%);
  13027. }
  13028. .e_add_list_body {
  13029. height: calc(100% - 187px);
  13030. overflow: auto;
  13031. }
  13032. .e_add_list_child {
  13033. width: 100%;
  13034. display: flex;
  13035. align-items: center;
  13036. justify-content: center;
  13037. position: relative;
  13038. box-sizing: border-box;
  13039. padding: 15px 40px;
  13040. text-align: center;
  13041. }
  13042. .e_add_list_child span {
  13043. overflow: hidden;
  13044. white-space: nowrap;
  13045. text-overflow: ellipsis;
  13046. cursor: pointer;
  13047. }
  13048. .e_add_list_child img {
  13049. position: absolute;
  13050. right: 10px;
  13051. width: 21px;
  13052. cursor: pointer;
  13053. top: 50%;
  13054. transform: translateY(-50%);
  13055. }
  13056. .e_add_list_child+.e_add_list_child {
  13057. border-top: 1px solid #eaeaea;
  13058. }
  13059. .e_add_list_child .active {
  13060. color: #409eff;
  13061. }
  13062. .e_add_list_btn {
  13063. position: absolute;
  13064. bottom: 0;
  13065. height: 50px;
  13066. background: rgb(120, 120, 254);
  13067. width: 100%;
  13068. color: #fff;
  13069. font-size: 16px;
  13070. text-align: center;
  13071. line-height: 50px;
  13072. cursor: pointer;
  13073. }
  13074. .e_add_list_detail {
  13075. position: absolute;
  13076. bottom: 0;
  13077. height: 130px;
  13078. background: rgb(120, 120, 254);
  13079. width: 100%;
  13080. color: #fff;
  13081. font-size: 16px;
  13082. display: flex;
  13083. align-items: center;
  13084. justify-content: center;
  13085. }
  13086. .e_add_list_detail textarea {
  13087. height: 90%;
  13088. width: 95%;
  13089. border: none;
  13090. resize: none;
  13091. outline: none;
  13092. padding: 5px;
  13093. box-sizing: border-box;
  13094. }
  13095. .e_add_list_pbox {
  13096. width: 100%;
  13097. max-width: 650px;
  13098. /* height: 600px; */
  13099. }
  13100. .e_add_list_pbox_title {
  13101. height: 50px;
  13102. background: #fff;
  13103. display: flex;
  13104. align-items: center;
  13105. width: 100%;
  13106. box-sizing: border-box;
  13107. padding: 0 20px;
  13108. }
  13109. .type_title {
  13110. font-size: 18px;
  13111. font-weight: 700;
  13112. }
  13113. .type_content {
  13114. font-size: 16px;
  13115. margin-left: 30px;
  13116. }
  13117. .type_content span+span {
  13118. margin-left: 20px;
  13119. }
  13120. .type_content span {
  13121. cursor: pointer;
  13122. padding-bottom: 5px;
  13123. box-sizing: border-box;
  13124. }
  13125. .type_content .active {
  13126. color: #409eff;
  13127. border-bottom: 2px solid #409eff;
  13128. }
  13129. .e_add_list_pbox_content {
  13130. height: calc(100% - 50px);
  13131. display: flex;
  13132. align-items: center;
  13133. width: 100%;
  13134. background: #fff;
  13135. }
  13136. .evaCss {
  13137. display: flex;
  13138. flex-direction: row;
  13139. flex-wrap: nowrap;
  13140. align-items: flex-start;
  13141. }
  13142. .cru_line {
  13143. position: absolute;
  13144. bottom: 0px;
  13145. transition: all 0.5s;
  13146. left: 0px;
  13147. width: 125px;
  13148. margin-left: -25px;
  13149. }
  13150. .isNoMessage {
  13151. width: 20%;
  13152. margin: 25% auto 0;
  13153. }
  13154. .isNoMessage>img {
  13155. width: 100%;
  13156. height: 100%;
  13157. }
  13158. .fullStyle>>>.el-dialog__body {
  13159. height: 100% !important;
  13160. }
  13161. .fullStyle>>>.el-dialog,
  13162. .fullStyle {
  13163. width: 100% !important;
  13164. max-width: 100% !important;
  13165. height: 100% !important;
  13166. margin: 0 !important;
  13167. }
  13168. .full_diy>>>.el-dialog {
  13169. margin: 0 !important;
  13170. height: 100%;
  13171. padding: 4px;
  13172. }
  13173. .full_diy>>>.el-dialog__body {
  13174. height: calc(100% - 100px);
  13175. }
  13176. .full_diy2>>>.el-dialog__body {
  13177. height: calc(100% - 50px);
  13178. padding: 0;
  13179. }
  13180. .switchCss {
  13181. /* width: 100%; */
  13182. display: flex;
  13183. flex-direction: row;
  13184. flex-wrap: nowrap;
  13185. align-items: center;
  13186. /* justify-content: center; */
  13187. }
  13188. .isClickNav {
  13189. color: #499eef;
  13190. }
  13191. .commentImg {
  13192. width: 25px;
  13193. height: 25px;
  13194. cursor: pointer;
  13195. }
  13196. .commentImg>img {
  13197. width: 100%;
  13198. height: 100%;
  13199. }
  13200. .comment {
  13201. background: #f9f9f9;
  13202. border-radius: 0 0 15px 15px;
  13203. display: flex;
  13204. flex-direction: row;
  13205. flex-wrap: nowrap;
  13206. align-items: center;
  13207. justify-content: flex-end;
  13208. height: 35px;
  13209. }
  13210. .commentList {
  13211. display: flex;
  13212. flex-direction: row;
  13213. flex-wrap: nowrap;
  13214. align-items: center;
  13215. justify-content: center;
  13216. align-content: center;
  13217. /* margin-left: 15px; */
  13218. /* margin-left: 8px; */
  13219. }
  13220. .scoreImg {
  13221. width: 17px;
  13222. height: 17px;
  13223. }
  13224. .studentDetail {
  13225. display: flex;
  13226. flex-direction: row;
  13227. flex-wrap: nowrap;
  13228. /* align-items: center; */
  13229. align-items: flex-start;
  13230. }
  13231. .tx {
  13232. width: 50px;
  13233. }
  13234. .tx>img {
  13235. width: 100%;
  13236. height: 100%;
  13237. }
  13238. .nameAndTime {
  13239. display: flex;
  13240. flex-direction: column;
  13241. flex-wrap: nowrap;
  13242. align-items: flex-start;
  13243. margin-left: 10px;
  13244. }
  13245. .worksAnswer {
  13246. color: #4078dd;
  13247. margin: 10px 0;
  13248. font-size: 16px;
  13249. position: relative;
  13250. }
  13251. .worksAnswer>img {
  13252. width: 500px;
  13253. height: 300px;
  13254. object-fit: contain;
  13255. margin: 0 auto;
  13256. display: block;
  13257. }
  13258. .commentTop {
  13259. border-bottom: 1px solid #eaeaea;
  13260. padding-bottom: 10px;
  13261. }
  13262. .commentBox {
  13263. padding-top: 15px;
  13264. }
  13265. .pl {
  13266. font-size: 18px;
  13267. }
  13268. .plPerson {
  13269. width: 100%;
  13270. }
  13271. .plName {
  13272. display: flex;
  13273. flex-direction: row;
  13274. flex-wrap: nowrap;
  13275. align-items: baseline;
  13276. color: #78787a;
  13277. width: 100%;
  13278. }
  13279. .deleteComment {
  13280. cursor: pointer;
  13281. margin-left: auto;
  13282. color: #237ade;
  13283. }
  13284. .plContent {
  13285. margin-top: 5px;
  13286. }
  13287. .evalCss {
  13288. background: #fff;
  13289. font-size: 18px;
  13290. }
  13291. .nav {
  13292. color: #9d9d9d;
  13293. padding: 5px 0 15px 20px;
  13294. }
  13295. .middleBox {
  13296. padding: 5px 0 15px 20px;
  13297. }
  13298. .pfBox {
  13299. padding-bottom: 30px;
  13300. }
  13301. .nameAndrate {
  13302. display: flex;
  13303. flex-direction: row;
  13304. flex-wrap: nowrap;
  13305. align-items: center;
  13306. padding-bottom: 10px;
  13307. height: 30px;
  13308. line-height: 30px;
  13309. }
  13310. .nameAndrate>div {
  13311. margin-left: 10px;
  13312. color: #000;
  13313. height: 30px;
  13314. }
  13315. .nameAndrate>>>.el-rate__icon {
  13316. font-size: 28px !important;
  13317. }
  13318. .pfBox>div:nth-child(2) {
  13319. background: #f7f6f9;
  13320. width: 400px;
  13321. min-height: 45px;
  13322. border-radius: 10px;
  13323. font-size: 16px;
  13324. display: flex;
  13325. flex-wrap: wrap;
  13326. align-items: center;
  13327. padding: 10px 20px;
  13328. box-sizing: border-box;
  13329. color: #000;
  13330. }
  13331. .bz {
  13332. display: flex;
  13333. flex-direction: row;
  13334. flex-wrap: nowrap;
  13335. align-items: flex-start;
  13336. }
  13337. .bz>div {
  13338. padding: 0 10px;
  13339. }
  13340. .select_box2_title {
  13341. background: #fff;
  13342. border-radius: 5px;
  13343. padding: 15px 10px;
  13344. box-sizing: border-box;
  13345. margin-bottom: 10px;
  13346. display: flex;
  13347. flex-direction: row;
  13348. flex-wrap: nowrap;
  13349. align-items: center;
  13350. }
  13351. .select_box2_title>div:nth-child(2) {
  13352. margin-left: 10px;
  13353. color: #c4c4c4;
  13354. }
  13355. .select_box2_box {
  13356. display: flex;
  13357. height: 500px;
  13358. }
  13359. .select_box2_img {
  13360. width: calc(100% - 310px);
  13361. height: 100%;
  13362. overflow: auto;
  13363. background: #fff;
  13364. border-radius: 5px;
  13365. }
  13366. .select_box2_img img {
  13367. width: 100%;
  13368. }
  13369. .select_box2_answer {
  13370. background: #fff;
  13371. margin-left: 10px;
  13372. border-radius: 5px;
  13373. width: 300px;
  13374. overflow: auto;
  13375. height: 90%;
  13376. display: flex;
  13377. flex-direction: column;
  13378. align-items: flex-start;
  13379. padding-top: 10px;
  13380. box-sizing: border-box;
  13381. position: relative;
  13382. }
  13383. .select_answer_title {
  13384. padding: 0 0 15px 20px;
  13385. color: #c4c4c4;
  13386. }
  13387. .select_box2_answer_box {
  13388. margin: 0 0 10px 20px;
  13389. width: 85%;
  13390. display: flex;
  13391. flex-direction: row;
  13392. flex-wrap: nowrap;
  13393. align-items: center;
  13394. }
  13395. .select_box2_answer_box>>>.el-input.is-disabled .el-input__inner {
  13396. color: #000;
  13397. }
  13398. .upAnswerCss {
  13399. position: absolute;
  13400. bottom: 15px;
  13401. right: 15px;
  13402. }
  13403. .upAnswerCss>>>.el-button {
  13404. width: 95px;
  13405. height: 35px;
  13406. line-height: 35px;
  13407. padding: 0;
  13408. }
  13409. .rightWidthCss {
  13410. width: 60%;
  13411. display: flex;
  13412. flex-direction: row;
  13413. align-items: flex-start;
  13414. }
  13415. .rightAnswer {
  13416. display: flex;
  13417. flex-direction: row;
  13418. flex-wrap: nowrap;
  13419. align-items: center;
  13420. color: red;
  13421. margin-bottom: 31px;
  13422. }
  13423. .rightAnswerCss {
  13424. display: flex;
  13425. flex-direction: column;
  13426. flex-wrap: nowrap;
  13427. padding-top: 60px;
  13428. }
  13429. .blueCss {
  13430. color: #767de1;
  13431. margin-left: 10px;
  13432. }
  13433. .redCss {
  13434. color: red;
  13435. }
  13436. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  13437. color: rgb(0 123 255) !important;
  13438. }
  13439. .redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  13440. color: rgb(0 123 255) !important;
  13441. }
  13442. .zuoyeYulan {
  13443. padding-top: 15px;
  13444. font-size: 18px;
  13445. display: flex;
  13446. align-items: flex-end;
  13447. }
  13448. .buttonA {
  13449. margin-left: 10px;
  13450. padding: 0;
  13451. }
  13452. .displayBox {
  13453. margin-bottom: 10px;
  13454. display: block;
  13455. border-bottom: 3px solid #eee;
  13456. display: flex;
  13457. align-items: center;
  13458. }
  13459. .easy_comment {
  13460. width: calc(100% - 90px);
  13461. margin-left: 10px;
  13462. display: flex;
  13463. flex-wrap: wrap;
  13464. }
  13465. .easy_comment>div {
  13466. border: 1px solid #4a4a4a;
  13467. color: #666;
  13468. border-radius: 15px;
  13469. padding: 5px 10px;
  13470. font-size: 16px;
  13471. margin-bottom: 10px;
  13472. margin-right: 5px;
  13473. cursor: pointer;
  13474. }
  13475. .easy_comment div:hover {
  13476. border: 1px solid #f7ba2a;
  13477. color: #c69217;
  13478. }
  13479. .xuan_right_box {
  13480. padding: 10px;
  13481. background: rgb(247, 247, 247);
  13482. margin: 10px 12px;
  13483. border-radius: 5px;
  13484. }
  13485. .tool_right_box {
  13486. display: flex;
  13487. align-items: center;
  13488. }
  13489. .tool_right_box+.tool_right_box {
  13490. margin-top: 10px;
  13491. }
  13492. .right_box_xuan {
  13493. background: rgb(0 123 255);
  13494. color: #fff;
  13495. border-radius: 5px;
  13496. padding: 5px;
  13497. margin-left: 10px;
  13498. }
  13499. .pButton:hover {
  13500. opacity: 1 !important;
  13501. }
  13502. .pButton {
  13503. position: fixed;
  13504. /* right: 5%; */
  13505. /* bottom: 5%; */
  13506. color: #fff;
  13507. /* width: 50px;
  13508. height: 50px; */
  13509. /* border-radius: 50%; */
  13510. text-align: center;
  13511. /* line-height: 50px; */
  13512. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  13513. cursor: pointer;
  13514. z-index: 999;
  13515. right: 0;
  13516. top: 83px;
  13517. width: 50px;
  13518. height: 50px;
  13519. background: #fff;
  13520. display: flex;
  13521. align-items: center;
  13522. justify-content: center;
  13523. box-shadow: 0px 0 8px 2px #c5c5c5;
  13524. border-radius: 5px;
  13525. }
  13526. .pzClass {
  13527. width: calc(100% - 340px);
  13528. }
  13529. .newDialogCss {
  13530. /* position: fixed;
  13531. right: 5%;
  13532. top: 50%;
  13533. width: 340px;
  13534. transform: translateY(-50%);
  13535. height: 60%;
  13536. box-shadow: 0px 0 8px 0px #555555;
  13537. border-radius: 15px;
  13538. z-index: 999; */
  13539. position: fixed;
  13540. right: 0;
  13541. top: 70px;
  13542. width: 340px;
  13543. height: calc(100% - 80px);
  13544. z-index: 999;
  13545. background: #fff;
  13546. border-radius: 15px;
  13547. border-top-right-radius: 0px;
  13548. border-bottom-right-radius: 0px;
  13549. overflow: hidden;
  13550. }
  13551. .pzTop {
  13552. color: #fff;
  13553. background: #000;
  13554. display: flex;
  13555. flex-direction: row;
  13556. flex-wrap: nowrap;
  13557. align-items: center;
  13558. justify-content: space-between;
  13559. height: 40px;
  13560. border-radius: 15px 15px 0 0;
  13561. }
  13562. .pzTop2 .checkbox {
  13563. display: flex;
  13564. align-items: center;
  13565. padding: 15px 30px;
  13566. flex: 0 0 auto;
  13567. font-weight: bold;
  13568. border-bottom: 1px solid #eee;
  13569. justify-content: space-between;
  13570. }
  13571. .pzTop2 .check {
  13572. text-align: center;
  13573. cursor: pointer;
  13574. box-sizing: border-box;
  13575. display: flex;
  13576. }
  13577. .pzTop2 img {
  13578. width: 25px;
  13579. cursor: pointer;
  13580. }
  13581. .pzTop>div:nth-child(1) {
  13582. padding-left: 10px;
  13583. }
  13584. .pzTop>div:nth-child(2) {
  13585. width: 15px;
  13586. height: 15px;
  13587. padding-right: 10px;
  13588. cursor: pointer;
  13589. }
  13590. .pzTop>div:nth-child(2)>img {
  13591. width: 100%;
  13592. height: 100%;
  13593. }
  13594. .pzBox,
  13595. .noPzBox {
  13596. height: calc(100% - 60px);
  13597. /* background: #ededed; */
  13598. background: #fff;
  13599. /* border-radius: 0 0 15px 15px; */
  13600. }
  13601. .noPzBox {
  13602. display: flex;
  13603. flex-direction: column;
  13604. flex-wrap: nowrap;
  13605. justify-content: center;
  13606. align-items: center;
  13607. }
  13608. .pzList {
  13609. background: #f7f7f7;
  13610. width: 90%;
  13611. margin: 0 auto 15px;
  13612. border-radius: 5px;
  13613. }
  13614. .pzNavTop {
  13615. display: flex;
  13616. flex-direction: row;
  13617. flex-wrap: nowrap;
  13618. padding: 10px 10px 0 10px;
  13619. align-items: center;
  13620. }
  13621. .pzDelete {
  13622. cursor: pointer;
  13623. margin-left: auto;
  13624. font-size: 14px;
  13625. color: #afafaf;
  13626. }
  13627. .pzNavTop>div:nth-child(1) {
  13628. background: #3760af;
  13629. width: 35px;
  13630. height: 35px;
  13631. color: #fff;
  13632. text-align: center;
  13633. line-height: 35px;
  13634. border-radius: 50%;
  13635. font-size: 14px;
  13636. }
  13637. .pzNavTop>div:nth-child(2) {
  13638. font-size: 18px;
  13639. color: #959595;
  13640. margin-left: 5px;
  13641. }
  13642. .pzContent {
  13643. padding: 10px;
  13644. word-break: break-word;
  13645. }
  13646. .pzContent audio {
  13647. width: 100%;
  13648. }
  13649. .pzContent audio::-webkit-media-controls-panel {
  13650. background: #fff;
  13651. }
  13652. .pzListBox {
  13653. padding-top: 15px;
  13654. height: calc(100% - 100px);
  13655. overflow: auto;
  13656. }
  13657. .addPzButton {
  13658. position: relative;
  13659. margin-top: 3px;
  13660. width: 100%;
  13661. }
  13662. .addPzButton .img1 {
  13663. position: absolute;
  13664. top: 50%;
  13665. right: 25px;
  13666. transform: translateY(-50%);
  13667. height: 100%;
  13668. display: flex;
  13669. align-items: center;
  13670. }
  13671. .addPzButton .img1 div {
  13672. display: flex;
  13673. }
  13674. .addPzButton .img1 div img {
  13675. width: 28px;
  13676. margin-left: 10px;
  13677. cursor: pointer;
  13678. }
  13679. .addPzButton .img1 div span {
  13680. font-size: 14px;
  13681. margin: 4px 0 0 3px;
  13682. color: #afafaf;
  13683. }
  13684. .addPz {
  13685. background: #4b79ce;
  13686. width: 100px;
  13687. color: #fff;
  13688. font-size: 12px;
  13689. height: 30px;
  13690. margin: 0 auto;
  13691. text-align: center;
  13692. line-height: 30px;
  13693. border-radius: 10px;
  13694. cursor: pointer;
  13695. }
  13696. .addDialogCss {
  13697. position: fixed;
  13698. right: 37%;
  13699. top: 50%;
  13700. width: 600px;
  13701. transform: translateY(-50%);
  13702. height: 70%;
  13703. min-height: 450px;
  13704. box-shadow: 0px 0 8px 0px #555555;
  13705. border-radius: 15px;
  13706. z-index: 999;
  13707. }
  13708. .teacherPz {
  13709. display: flex;
  13710. flex-direction: row;
  13711. align-items: center;
  13712. flex-wrap: nowrap;
  13713. }
  13714. .teacherPzImg {
  13715. width: 30px;
  13716. height: 30px;
  13717. }
  13718. .teacherPzImg>img {
  13719. width: 100%;
  13720. height: 100%;
  13721. }
  13722. .addPzBox {
  13723. height: calc(100% - 40px);
  13724. background: #ededed;
  13725. }
  13726. .pzAudioClass {
  13727. margin: 15px 14px;
  13728. background: #fff;
  13729. height: 100%;
  13730. display: flex;
  13731. justify-content: center;
  13732. align-items: center;
  13733. }
  13734. .pzConText {
  13735. width: 95%;
  13736. height: 100%;
  13737. margin: 10px auto 0;
  13738. border: none;
  13739. background: #fff;
  13740. border-radius: 0px;
  13741. }
  13742. .pzConText>>>.text {
  13743. height: calc(100% - 82px);
  13744. }
  13745. .addTextCss {
  13746. background: #4b79ce;
  13747. width: 80px;
  13748. height: 30px;
  13749. text-align: center;
  13750. color: #fff;
  13751. line-height: 30px;
  13752. border-radius: 10px;
  13753. margin: 10px auto 0;
  13754. cursor: pointer;
  13755. }
  13756. .pzConText:focus-visible {
  13757. border: none !important;
  13758. }
  13759. .maxWidth {
  13760. width: 1000px;
  13761. }
  13762. .noPz {
  13763. width: 150px;
  13764. margin: 0 auto 20%;
  13765. }
  13766. .noPz>img {
  13767. width: 100%;
  13768. height: 100%;
  13769. }
  13770. .pzList .time {
  13771. text-align: right;
  13772. box-sizing: border-box;
  13773. padding: 0 10px 10px 0px;
  13774. color: #949494;
  13775. font-size: 14px;
  13776. }
  13777. /* table 样式 */
  13778. .cont>>>table {
  13779. border-top: 1px solid #ccc;
  13780. border-left: 1px solid #ccc;
  13781. }
  13782. .cont>>>table td,
  13783. .cont>>>table th {
  13784. border-bottom: 1px solid #ccc;
  13785. border-right: 1px solid #ccc;
  13786. padding: 15px 5px;
  13787. max-width: 0px;
  13788. }
  13789. .cont>>>table th {
  13790. border-bottom: 2px solid #ccc;
  13791. text-align: center;
  13792. }
  13793. /* blockquote 样式 */
  13794. .cont>>>blockquote {
  13795. display: block;
  13796. border-left: 8px solid #d0e5f2;
  13797. padding: 5px 10px;
  13798. margin: 10px 0;
  13799. line-height: 1.4;
  13800. font-size: 100%;
  13801. background-color: #f1f1f1;
  13802. }
  13803. .addPzCheck {
  13804. display: flex;
  13805. flex-direction: row;
  13806. flex-wrap: nowrap;
  13807. padding: 10px 15px 0;
  13808. }
  13809. .addPzCheck span {
  13810. cursor: pointer;
  13811. padding-bottom: 5px;
  13812. font-weight: bold;
  13813. }
  13814. .addPzCheck span+span {
  13815. margin-left: 10px;
  13816. }
  13817. .addPzCheck .isChooseActive {
  13818. color: #3e88f4;
  13819. border-bottom: 2px solid #2f80f3;
  13820. }
  13821. /* code 样式 */
  13822. .cont>>>code {
  13823. display: inline-block;
  13824. *display: inline;
  13825. *zoom: 1;
  13826. background-color: #f1f1f1;
  13827. border-radius: 3px;
  13828. padding: 3px 5px;
  13829. margin: 0 3px;
  13830. }
  13831. .cont>>>pre code {
  13832. display: block;
  13833. }
  13834. /* ul ol 样式 */
  13835. .cont>>>ul,
  13836. ol {
  13837. margin: 10px 0 10px 20px;
  13838. }
  13839. .scoreBox,
  13840. .scoreDetailBox {
  13841. display: flex;
  13842. align-items: center;
  13843. justify-content: flex-start;
  13844. margin-top: 20px;
  13845. font-size: 18px;
  13846. width: 100%;
  13847. }
  13848. .scoreBox .t,
  13849. .scoreDetailBox .t {
  13850. margin-right: 10px;
  13851. width: 100px;
  13852. text-align: right;
  13853. }
  13854. .scoreDetailBox {
  13855. align-items: flex-start;
  13856. }
  13857. .scoreDetailBox>>>.el-textarea {
  13858. width: calc(100% - 200px);
  13859. }
  13860. .scoreBox>>>.el-input {
  13861. width: 130px;
  13862. font-size: 38px;
  13863. }
  13864. .scoreBox>>>.el-input__inner {
  13865. height: 60px;
  13866. }
  13867. .answerScore {
  13868. position: absolute;
  13869. top: 10px;
  13870. right: 10px;
  13871. background: #0000008f;
  13872. border-radius: 5px;
  13873. padding: 3px 5px;
  13874. font-size: 14px;
  13875. color: #fff;
  13876. cursor: pointer;
  13877. }
  13878. .open_box .switch_box {
  13879. width: 100%;
  13880. margin: 0 auto;
  13881. display: flex;
  13882. justify-content: space-between;
  13883. }
  13884. .open_box .switch_box+.switch_box {
  13885. margin-top: 10px;
  13886. }
  13887. .deleteImg {
  13888. width: 25px !important;
  13889. height: 25px !important;
  13890. cursor: pointer;
  13891. position: absolute;
  13892. top: 10px;
  13893. right: 10px;
  13894. }
  13895. .deleteImg2 {
  13896. width: 15px !important;
  13897. height: 15px !important;
  13898. top: 5px;
  13899. right: 5px;
  13900. }
  13901. .rightW {
  13902. right: 40px;
  13903. }
  13904. .drawPBox {
  13905. display: flex;
  13906. flex-direction: column;
  13907. position: relative;
  13908. }
  13909. .drawPBox span {
  13910. font-size: 18px;
  13911. color: #606266;
  13912. padding-bottom: 10px;
  13913. margin: 10px 0;
  13914. border-bottom: 1px solid #eaeaea;
  13915. }
  13916. .drawPBox img {
  13917. width: 500px;
  13918. height: 300px;
  13919. object-fit: contain;
  13920. cursor: pointer;
  13921. margin: 0 auto;
  13922. }
  13923. .sentenBox {
  13924. background: #fff;
  13925. height: 450px;
  13926. overflow: auto;
  13927. background-image: url("../../assets/icon/conSentences/stuBg.png");
  13928. background-position: 102%;
  13929. background-repeat: no-repeat;
  13930. background-size: 60%;
  13931. }
  13932. .addSen {
  13933. background: #409efe;
  13934. width: 90px;
  13935. color: #fff;
  13936. height: 35px;
  13937. text-align: center;
  13938. line-height: 35px;
  13939. border-radius: 5px;
  13940. float: right;
  13941. margin: 10px 20px 0 0;
  13942. cursor: pointer;
  13943. }
  13944. .sentenTop {
  13945. display: flex;
  13946. flex-direction: row;
  13947. flex-wrap: nowrap;
  13948. align-items: center;
  13949. padding: 55px 0 0 20px;
  13950. box-sizing: border-box;
  13951. }
  13952. .sentenTop>div:nth-child(2) {
  13953. width: 300px;
  13954. margin: 0 15px;
  13955. }
  13956. .sentenTop>div:nth-child(3) {
  13957. background: #409efe;
  13958. color: #fff;
  13959. width: 65px;
  13960. height: 35px;
  13961. text-align: center;
  13962. line-height: 35px;
  13963. border-radius: 5px;
  13964. cursor: pointer;
  13965. }
  13966. .cardList,
  13967. .cardList1 {
  13968. padding: 10px 0 10px 0;
  13969. display: flex;
  13970. flex-direction: row;
  13971. flex-wrap: wrap;
  13972. align-items: center;
  13973. box-sizing: border-box;
  13974. border-bottom: 1px solid #f4f4f4;
  13975. width: 98%;
  13976. margin: 0 auto;
  13977. min-width: 60%;
  13978. max-width: 85%;
  13979. }
  13980. .cardList1 {
  13981. padding: 10px 0 10px 10px !important;
  13982. margin: 0 !important;
  13983. }
  13984. .cardBox {
  13985. display: flex;
  13986. flex-direction: row;
  13987. flex-wrap: wrap;
  13988. align-items: center;
  13989. align-content: center;
  13990. }
  13991. .cardBox>div {
  13992. margin-bottom: 10px;
  13993. }
  13994. .isCard,
  13995. .isChooseCard,
  13996. .noCard,
  13997. .isCard1 {
  13998. width: 130px;
  13999. height: 60px;
  14000. text-align: center;
  14001. line-height: 60px;
  14002. font-size: 20px;
  14003. cursor: pointer;
  14004. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  14005. background-size: cover;
  14006. transition: all 2s;
  14007. margin-right: 20px;
  14008. }
  14009. .isCard>div,
  14010. .noCard>div,
  14011. .isCard1>div {
  14012. white-space: nowrap;
  14013. overflow: hidden;
  14014. text-overflow: ellipsis;
  14015. width: 75%;
  14016. margin: 0 auto;
  14017. }
  14018. .noCard {
  14019. background-image: none;
  14020. }
  14021. .isCard1 {
  14022. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  14023. }
  14024. .isChooseCard {
  14025. background-image: none;
  14026. border: 1px dashed #b9b9b9;
  14027. border-radius: 10px;
  14028. }
  14029. .card {
  14030. width: 130px;
  14031. height: 60px;
  14032. }
  14033. .card>img {
  14034. width: 100%;
  14035. height: 100%;
  14036. }
  14037. .rightCardBox {
  14038. margin: 10px 0 0 10px;
  14039. }
  14040. .rightCardBox>div:nth-child(1) {
  14041. margin-bottom: 10px;
  14042. }
  14043. .cardCss {
  14044. display: flex;
  14045. flex-direction: column;
  14046. flex-wrap: nowrap;
  14047. align-items: center;
  14048. border-bottom: 3px solid #b4c3d3;
  14049. padding: 0 0 5px 0;
  14050. margin-right: 10px;
  14051. }
  14052. .cardCss>div:nth-child(2) {
  14053. background: #5b7b9d;
  14054. color: #fff;
  14055. width: 20px;
  14056. height: 20px;
  14057. border-radius: 50%;
  14058. text-align: center;
  14059. line-height: 20px;
  14060. }
  14061. .isWrong {
  14062. display: flex;
  14063. flex-direction: row;
  14064. flex-wrap: nowrap;
  14065. align-content: center;
  14066. align-items: center;
  14067. }
  14068. .answerRight {
  14069. width: 25%;
  14070. }
  14071. .isTj {
  14072. display: flex;
  14073. flex-direction: row;
  14074. flex-wrap: nowrap;
  14075. align-items: center;
  14076. }
  14077. .isTj>div:nth-child(2) {
  14078. color: #727070;
  14079. margin-left: 10px;
  14080. }
  14081. .isTjImg {
  14082. width: 30px;
  14083. height: 30px;
  14084. }
  14085. .isTjImg>img {
  14086. width: 100%;
  14087. height: 100%;
  14088. }
  14089. .cardAnswerBox {
  14090. font-size: 18px;
  14091. width: 97%;
  14092. border: 5px;
  14093. padding: 0;
  14094. border-radius: 5px;
  14095. margin: 10px auto;
  14096. word-break: break-word;
  14097. }
  14098. .w_name {
  14099. margin-bottom: 10px;
  14100. }
  14101. .w_name span {
  14102. font-size: 16px;
  14103. }
  14104. .w_teachert {
  14105. width: 50px !important;
  14106. position: absolute;
  14107. height: auto !important;
  14108. z-index: 10;
  14109. right: 25px;
  14110. top: -25px;
  14111. }
  14112. .group_workBox {}
  14113. .group_workBox+.group_workBox {
  14114. margin-top: 20px;
  14115. }
  14116. .group_box {
  14117. padding-bottom: 20px;
  14118. border-bottom: 2px solid #f0f0f0;
  14119. }
  14120. .group_title {
  14121. display: flex;
  14122. align-items: center;
  14123. justify-content: space-between;
  14124. }
  14125. .group_name {
  14126. background-image: url(../../assets/icon/groupN.png);
  14127. width: 220px;
  14128. background-size: 100% 100%;
  14129. height: 67px;
  14130. padding: 0 20px 0 43px;
  14131. box-sizing: border-box;
  14132. line-height: 63px;
  14133. color: #fff;
  14134. overflow: hidden;
  14135. white-space: nowrap;
  14136. text-overflow: ellipsis;
  14137. }
  14138. .group_work {
  14139. width: 100%;
  14140. padding: 0 10px;
  14141. box-sizing: border-box;
  14142. display: flex;
  14143. flex-wrap: wrap;
  14144. }
  14145. .g_d_box {
  14146. display: flex;
  14147. flex-flow: wrap;
  14148. justify-content: space-around;
  14149. }
  14150. .g_d_box .isChair {
  14151. background-image: url(../../assets/avatar.png) !important;
  14152. }
  14153. .g_d_group {
  14154. width: 500px;
  14155. margin-bottom: 80px;
  14156. }
  14157. .g_d_group_chair {
  14158. display: flex;
  14159. align-items: center;
  14160. justify-content: center;
  14161. }
  14162. .g_d_group_chair>div+div {
  14163. margin-left: 30px;
  14164. }
  14165. .g_d_group_chair>div,
  14166. .g_d_group_chair2>div {
  14167. display: flex;
  14168. flex-direction: column;
  14169. align-items: center;
  14170. }
  14171. .g_d_group_chair>div>span:nth-child(1),
  14172. .g_d_group_chair2>div>span:nth-child(1) {
  14173. background-image: url(../../assets/icon/chair.png);
  14174. width: 50px;
  14175. height: 50px;
  14176. display: block;
  14177. background-size: 100% 100%;
  14178. }
  14179. .g_d_group_tableBox {
  14180. display: flex;
  14181. align-items: center;
  14182. justify-content: center;
  14183. }
  14184. .g_d_group_chair2 {
  14185. display: flex;
  14186. flex-direction: column;
  14187. align-items: center;
  14188. justify-content: center;
  14189. }
  14190. .g_d_group_chair2>div+div {
  14191. margin-top: 10px;
  14192. }
  14193. .g_d_group_table {
  14194. background-image: url(../../assets/icon/groupBg.png);
  14195. width: 354px;
  14196. height: 196px;
  14197. background-size: 100% 100%;
  14198. display: flex;
  14199. align-items: center;
  14200. justify-content: center;
  14201. flex-direction: column;
  14202. color: #fff;
  14203. }
  14204. .g_d_group_table>div:nth-child(1) {
  14205. font-size: 24px;
  14206. margin-bottom: 5px;
  14207. }
  14208. .g_d_group_table>div:nth-child(2) div {
  14209. cursor: pointer;
  14210. background: #2e77bf;
  14211. padding: 4px 10px;
  14212. border-radius: 5px;
  14213. }
  14214. .groupBox {}
  14215. .groupContent+.groupContent {
  14216. margin-top: 30px;
  14217. }
  14218. .groupTitle {
  14219. font-size: 24px;
  14220. color: rgb(80, 80, 80);
  14221. margin-bottom: 20px;
  14222. }
  14223. .groupName {
  14224. display: flex;
  14225. align-items: center;
  14226. }
  14227. .groupn {
  14228. font-size: 15px;
  14229. margin-right: 10px;
  14230. }
  14231. .groupName+.groupName {
  14232. margin-top: 15px;
  14233. }
  14234. .groupBtn {
  14235. margin-left: 10px;
  14236. }
  14237. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  14238. text-align: left;
  14239. }
  14240. .g_d_btnBox {
  14241. display: flex;
  14242. justify-content: flex-end;
  14243. align-items: flex-end;
  14244. margin-bottom: 20px;
  14245. }
  14246. .updateChair {
  14247. position: relative;
  14248. }
  14249. .updateChairBtn {
  14250. position: absolute;
  14251. width: 50px;
  14252. height: 50px;
  14253. overflow: hidden;
  14254. /* display: flex; */
  14255. align-items: center;
  14256. justify-content: center;
  14257. background: #00000087;
  14258. color: #fff;
  14259. border-radius: 50px;
  14260. display: none;
  14261. cursor: pointer;
  14262. }
  14263. .updateChair:hover .updateChairBtn {
  14264. display: flex;
  14265. }
  14266. .group_staic_box {
  14267. display: flex;
  14268. padding: 30px 40px 10px;
  14269. flex-wrap: wrap;
  14270. }
  14271. .group_staic {
  14272. /* width: 50%; */
  14273. margin-bottom: 20px;
  14274. display: flex;
  14275. align-items: center;
  14276. }
  14277. .group_staic span:nth-child(1) {
  14278. width: 150px;
  14279. text-align: right;
  14280. margin-right: 15px;
  14281. }
  14282. .group_staic span:nth-child(2) {
  14283. background: rgb(0 123 255);
  14284. color: #fff;
  14285. border-radius: 5px;
  14286. padding: 5px;
  14287. }
  14288. .codeFileBox {
  14289. height: 300px;
  14290. background: #fff;
  14291. display: flex;
  14292. align-items: center;
  14293. justify-content: center;
  14294. }
  14295. .codeFileBox img {
  14296. width: 200px;
  14297. margin: 0;
  14298. height: auto;
  14299. }
  14300. .codeFileBox div {
  14301. background: rgb(80, 142, 226);
  14302. color: #fff;
  14303. padding: 10px 20px;
  14304. border-radius: 25px;
  14305. cursor: pointer;
  14306. margin-left: 15px;
  14307. }
  14308. .radioBox {
  14309. display: flex;
  14310. flex-direction: column;
  14311. flex-wrap: nowrap;
  14312. align-items: flex-start;
  14313. }
  14314. .radioBox>div {
  14315. margin: 10px 0 0 10px;
  14316. }
  14317. /* .radioBox >>> .el-radio__input,
  14318. .radioBox >>> .el-checkbox__inner {
  14319. margin-left: 10px;
  14320. } */
  14321. .radioBox>>>.el-radio__label,
  14322. .radioBox>>>.el-checkbox__label {
  14323. display: flex;
  14324. align-items: center;
  14325. }
  14326. .radioBox>>>.el-radio__label>span {
  14327. width: 100%;
  14328. display: -webkit-box;
  14329. overflow: hidden;
  14330. white-space: normal !important;
  14331. text-overflow: ellipsis;
  14332. word-wrap: break-word;
  14333. }
  14334. .inImg {
  14335. width: 100px;
  14336. cursor: pointer;
  14337. }
  14338. .inImg>img {
  14339. width: 100%;
  14340. height: 100%;
  14341. object-fit: cover;
  14342. }
  14343. .timuImgBox {
  14344. margin: 10px 0;
  14345. display: flex;
  14346. flex-direction: column;
  14347. flex-wrap: wrap;
  14348. align-items: flex-start;
  14349. }
  14350. .timuImg {
  14351. width: 150px;
  14352. margin: 5px 0;
  14353. cursor: pointer;
  14354. }
  14355. .timuImg>img {
  14356. width: 100%;
  14357. height: 100%;
  14358. object-fit: cover;
  14359. }
  14360. .worksTop {
  14361. display: flex;
  14362. flex-direction: row;
  14363. align-items: flex-end;
  14364. }
  14365. .corOpen {
  14366. margin: 0 0 0 10px;
  14367. font-size: 14px;
  14368. cursor: pointer;
  14369. color: #505050;
  14370. }
  14371. .corOpen:hover {
  14372. color: #499eef;
  14373. }
  14374. .navCorOpenBox {
  14375. display: flex;
  14376. flex-direction: row;
  14377. align-items: center;
  14378. background: #1e5cc9;
  14379. justify-content: space-between;
  14380. }
  14381. .navCorOpen {
  14382. padding-right: 15px;
  14383. cursor: pointer;
  14384. width: 20px;
  14385. display: flex;
  14386. }
  14387. .navCorOpen>img {
  14388. width: 100%;
  14389. height: 100%;
  14390. }
  14391. .mlImg {
  14392. width: 25px !important;
  14393. cursor: pointer;
  14394. margin-top: 5px;
  14395. }
  14396. .mlImg>img {
  14397. width: 100%;
  14398. height: 100%;
  14399. }
  14400. .navLeftCss {
  14401. width: 100% !important;
  14402. left: 0 !important;
  14403. }
  14404. .isContentCss {
  14405. width: 100% !important;
  14406. }
  14407. .isAllWidth {
  14408. width: 100% !important;
  14409. }
  14410. .toolBoxSteps {
  14411. position: absolute;
  14412. top: 50%;
  14413. transform: translateY(-50%);
  14414. cursor: pointer;
  14415. width: 60px;
  14416. display: flex;
  14417. align-items: center;
  14418. justify-content: center;
  14419. }
  14420. .toolBoxSteps:nth-child(1)>img,
  14421. .toolBoxSteps:nth-child(2)>img {
  14422. width: 24px;
  14423. }
  14424. .toolBoxSteps:nth-child(1) {
  14425. left: 0;
  14426. }
  14427. .toolBoxSteps:nth-child(2) {
  14428. right: 0;
  14429. }
  14430. .isChooseActive {
  14431. color: #3e88f4;
  14432. border-bottom: 2px solid #2f80f3;
  14433. }
  14434. .tool_box {
  14435. width: 100%;
  14436. margin-top: 20px
  14437. }
  14438. .tool_type_box {
  14439. display: flex;
  14440. flex-direction: row;
  14441. align-items: baseline;
  14442. flex-wrap: nowrap;
  14443. justify-content: flex-start;
  14444. position: relative;
  14445. }
  14446. .toolSort {
  14447. display: flex;
  14448. flex-direction: row;
  14449. flex-wrap: wrap;
  14450. justify-content: flex-start;
  14451. align-items: flex-start;
  14452. }
  14453. .toolSort>div {
  14454. margin: 0 45px 0 0;
  14455. width: auto;
  14456. }
  14457. .tools {
  14458. width: 100%;
  14459. display: flex;
  14460. flex-direction: column;
  14461. flex-wrap: nowrap;
  14462. align-items: flex-start;
  14463. }
  14464. .whiteBIcon {
  14465. width: 80px;
  14466. cursor: pointer;
  14467. display: flex;
  14468. flex-direction: column;
  14469. flex-wrap: nowrap;
  14470. align-items: center;
  14471. }
  14472. .whiteBIcon>img {
  14473. width: 100%;
  14474. height: 100%;
  14475. }
  14476. .whiteBIcon>img {
  14477. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  14478. border-radius: 15px;
  14479. }
  14480. .dia_tool_box {
  14481. display: flex;
  14482. flex-wrap: wrap;
  14483. width: 100%;
  14484. }
  14485. .dia_tool_box>div {
  14486. margin-right: 40px;
  14487. }
  14488. .check {
  14489. /* width: 20px;
  14490. height: 20px; */
  14491. cursor: pointer;
  14492. margin: 10px 0;
  14493. }
  14494. .checkDiv {
  14495. display: flex;
  14496. align-items: center;
  14497. }
  14498. .checkDiv span {
  14499. margin-left: 5px;
  14500. color: #858585;
  14501. }
  14502. .check img {
  14503. width: 20px;
  14504. height: 20px;
  14505. }
  14506. </style>