studyStudent.vue 806 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <div class="btnAllNT">
  14. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  15. <img
  16. v-if="
  17. courseDetail.userid == userid ||
  18. (courseDetail.course_teacher &&
  19. courseDetail.course_teacher.indexOf(userid) != -1)
  20. "
  21. src="../assets/icon/learn/addTool.png"
  22. @click="openToolAll"
  23. style="position: relative"
  24. />
  25. </div>
  26. <div
  27. class="pButton"
  28. style="left: 0; top: 140px"
  29. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  30. @click="setContent2(true)"
  31. >
  32. <!-- 批 , getCourseDetail()-->
  33. <img
  34. src="../assets/icon/newIcons/isRight.png"
  35. style="width: 45px"
  36. alt=""
  37. />
  38. </div>
  39. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  40. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  41. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  42. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  43. <div
  44. style="
  45. max-width: calc(100% - 40px);
  46. width: auto;
  47. white-space: nowrap;
  48. overflow: hidden;
  49. text-overflow: ellipsis;
  50. word-break: break-word;
  51. display: block;
  52. "
  53. >
  54. <el-tooltip
  55. effect="light"
  56. :content="courseDetail.title"
  57. placement="top"
  58. >
  59. <div class="ctitle">
  60. {{ courseDetail.title }}
  61. </div>
  62. </el-tooltip>
  63. </div>
  64. <el-tooltip effect="light" content="收缩" placement="top">
  65. <div class="mlImg" @click="setContent2(false)">
  66. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  67. </div>
  68. </el-tooltip>
  69. </div>
  70. <div
  71. class="inviteBox"
  72. v-if="tcid && inviteCode"
  73. style="padding: 0 0 8px 0"
  74. >
  75. <div>
  76. <span>随机码:{{ inviteCode }}</span>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="cru_selectBox">
  81. <div
  82. style="background: #fff; margin: 0 10px; border-radius: 8px"
  83. v-for="(item, stageIndex) in navList"
  84. :key="stageIndex"
  85. >
  86. <div
  87. class="stageBoxCss"
  88. @click="get(stageIndex)"
  89. :class="{
  90. // stageBoxIsCss: stageIndex == courseType,
  91. }"
  92. >
  93. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  94. <div>阶段{{ stageIndex + 1 }}</div>
  95. <el-tooltip
  96. effect="light"
  97. :content="item.dyName"
  98. placement="top"
  99. >
  100. <div>
  101. {{ item.dyName }}
  102. </div>
  103. </el-tooltip>
  104. </div>
  105. <!-- <div class="closeTri" v-if="stageIndex == courseType" :style="{transform:item.isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}">
  106. <img src="../assets/icon/newIcons/downC.png" alt />
  107. </div> -->
  108. <div class="closeTri" :style="{transform:item.isOpen ? 'rotate(90deg)' : 'rotate(0deg)'}">
  109. <img src="../assets/icon/newIcons/right.png" alt />
  110. </div>
  111. </div>
  112. <div class="stageChild" :class="{ navActive: item.isOpen }">
  113. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  114. <div
  115. class="navItem"
  116. :class="{
  117. openTaskActive:
  118. navIndex == taskCount &&
  119. nav.id == navId &&
  120. stageIndex == courseType,
  121. }"
  122. >
  123. <div v-if="nav.tool[0].tool != undefined">
  124. <div
  125. class="closeTri1"
  126. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../assets/icon/newIcons/bDown2.png" alt />
  130. </div>
  131. <div
  132. class="closeTri1"
  133. v-else
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../assets/icon/newIcons/right.png" alt />
  137. </div>
  138. </div>
  139. <div v-else class="noToolBlue"></div>
  140. <div
  141. @click="openTask(stageIndex, navIndex, nav.id)"
  142. class="navItemList"
  143. :class="{
  144. isItemList:
  145. navIndex == taskCount &&
  146. nav.id == navId &&
  147. stageIndex == courseType,
  148. }"
  149. >
  150. <div>任务{{ navIndex + 1 }}:</div>
  151. <el-tooltip
  152. effect="light"
  153. :content="nav.taskName"
  154. placement="top"
  155. >
  156. <div
  157. :style="{
  158. width:
  159. IsLookOpen &&
  160. !(
  161. navIndex == taskCount &&
  162. nav.id == navId &&
  163. stageIndex == courseType
  164. )
  165. ? 'calc(100% - 75px)'
  166. : 'auto',
  167. }"
  168. >
  169. {{ nav.taskName }}
  170. </div>
  171. </el-tooltip>
  172. </div>
  173. <div class="lockTaskIcon">
  174. <img
  175. src="../assets/lock.png"
  176. v-if="IsLookOpen && !nav.isLook"
  177. alt=""
  178. />
  179. </div>
  180. </div>
  181. <div
  182. v-if="nav.tool[0].tool != undefined"
  183. class="toolChild"
  184. :class="{ toolActive: nav.isOpen }"
  185. >
  186. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  187. <div
  188. class="gjCss"
  189. :class="{ isGjCss: t.isTool }"
  190. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  191. >
  192. <div>工具{{ toolIndex + 1 }}:</div>
  193. <div v-if="t.tool == 58">模拟驾驶</div>
  194. <div v-if="t.tool == 59">路径搜索</div>
  195. <div v-if="t.tool == 60">深度学习</div>
  196. <div v-if="t.tool == 10">倒计时</div>
  197. <div v-if="t.tool == 65">挑人</div>
  198. <div v-if="t.tool == 7">思维网格</div>
  199. <div v-if="t.tool == 1">电子白板</div>
  200. <div v-if="t.tool == 52">文档</div>
  201. <div v-if="t.tool == 3">思维导图</div>
  202. <div v-if="t.tool == 48">表格</div>
  203. <div v-if="t.tool == 49">学生分组</div>
  204. <div v-if="t.tool == 4">问卷调查</div>
  205. <div v-if="t.tool == 45">选择题</div>
  206. <div v-if="t.tool == 15">问答</div>
  207. <div v-if="t.tool == 16">作业提交</div>
  208. <div v-if="t.tool == 50">批量上传</div>
  209. <div v-if="t.tool == 41">选择匹配</div>
  210. <div v-if="t.tool == 47">排序</div>
  211. <div v-if="t.tool == 40">个人评价</div>
  212. <div v-if="t.tool == 18">训练平台</div>
  213. <div v-if="t.tool == 21">AIoT Blockly</div>
  214. <div v-if="t.tool == 23">AI Python</div>
  215. <div v-if="t.tool == 24">AI Blockly</div>
  216. <div v-if="t.tool == 32">源码编辑</div>
  217. <div v-if="t.tool == 57">CocoPi</div>
  218. <div v-if="t.tool == 63">海龟编程</div>
  219. <div v-if="t.tool == 28">翻译</div>
  220. <div v-if="t.tool == 31">数字画板</div>
  221. <div v-if="t.tool == 39">GeoGebra</div>
  222. <div v-if="t.tool == 66">公式编辑</div>
  223. <div v-if="t.tool == 67">分子结构</div>
  224. <div v-if="t.tool == 68">时间轴</div>
  225. <div v-if="t.tool == 69">英语写作</div>
  226. <div v-if="t.tool == 70">英语口语</div>
  227. <div v-if="t.tool == 25">目标管理</div>
  228. <div v-if="t.tool == 26">课程设计</div>
  229. <div v-if="t.tool == 62">交互视频</div>
  230. <div v-if="t.tool == 71">AI智能体</div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  240. <div class="new_topFixed"></div>
  241. <div class="new_top" :class="{ navLeftCss: !mlDialog }">
  242. <div class="courseIndex">
  243. <div>任务{{ taskCount + 1 }}</div>
  244. <el-tooltip
  245. effect="light"
  246. :content="
  247. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  248. "
  249. placement="top"
  250. >
  251. <div>
  252. {{
  253. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  254. .task
  255. }}
  256. </div>
  257. </el-tooltip>
  258. </div>
  259. <div class="btnAll">
  260. <div class="btnLeft">
  261. <el-tooltip effect="light" content="刷新" placement="top">
  262. <div class="reBtnIcon" @click="refreshCourse">
  263. <span>刷新</span>
  264. </div>
  265. </el-tooltip>
  266. <el-tooltip effect="light" content="评论" placement="top">
  267. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  268. <span>评论</span>
  269. </div>
  270. </el-tooltip>
  271. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  272. <el-tooltip effect="light" content="录制" placement="top">
  273. <div class="vedioIcon" @click="startRecording">
  274. <span>录制</span>
  275. </div>
  276. </el-tooltip>
  277. </div>
  278. <div v-else-if="tType == 1 || tType == 4">
  279. <el-tooltip effect="light" content="下载" placement="top">
  280. <div class="vedioIcon1" @click="stopRecording">
  281. <span>下载</span>
  282. </div>
  283. </el-tooltip>
  284. </div>
  285. </div>
  286. <div class="btnRight">
  287. <div
  288. class="last"
  289. @click="nextOrpreSteps(0)"
  290. v-if="!(IsFollow && tType == 2)"
  291. @mouseover="isHovered = true"
  292. @mouseout="isHovered = false"
  293. >
  294. <div class="lastImg">
  295. <img
  296. :src="
  297. isHovered
  298. ? require('../assets/icon/newIcons/whiteLast.png')
  299. : require('../assets/icon/newIcons/last.png')
  300. "
  301. alt=""
  302. />
  303. </div>
  304. <div class="lastText">上一步</div>
  305. </div>
  306. <div
  307. class="last"
  308. @click="nextOrpreSteps(1)"
  309. v-if="!(IsFollow && tType == 2)"
  310. @mouseover="isHovered1 = true"
  311. @mouseout="isHovered1 = false"
  312. >
  313. <div class="lastText">下一步</div>
  314. <div class="lastImg">
  315. <img
  316. :src="
  317. isHovered1
  318. ? require('../assets/icon/newIcons/whiteNext.png')
  319. : require('../assets/icon/newIcons/next.png')
  320. "
  321. alt=""
  322. />
  323. </div>
  324. </div>
  325. <div
  326. class="last"
  327. @click="juriVisible = true"
  328. v-if="tType == 1"
  329. @mouseover="isHovered2 = true"
  330. @mouseout="isHovered2 = false"
  331. >
  332. <div class="lastImg">
  333. <img
  334. :src="
  335. isHovered2
  336. ? require('../assets/icon/newIcons/whiteLock.png')
  337. : require('../assets/icon/newIcons/lock.png')
  338. "
  339. alt=""
  340. />
  341. </div>
  342. <div class="lastText">权限</div>
  343. </div>
  344. <div
  345. class="returnBtn1 returnIcon"
  346. @click.stop="
  347. goTo(
  348. '/courseDetail?userid=' +
  349. userid +
  350. '&oid=' +
  351. oid +
  352. '&org=' +
  353. org +
  354. '&cid=' +
  355. classId +
  356. '&courseId=' +
  357. id +
  358. '&tType=' +
  359. tType +
  360. '&screenType=' +
  361. screenType
  362. )
  363. "
  364. >
  365. <div class="lastImg">
  366. <img src="../assets/icon/newIcon/return.png" alt="" />
  367. </div>
  368. <div class="lastText" style="color: #000">返回</div>
  369. </div>
  370. </div>
  371. <!-- <div
  372. class="returnBtn lockIcon"
  373. @click="juriVisible = true"
  374. v-if="tType == 1"
  375. >
  376. 权限
  377. </div>
  378. <div
  379. class="returnBtn vedioIcon"
  380. @click="startRecording"
  381. v-if="!videoStart && (tType == 1 || tType == 4)"
  382. >
  383. 录制
  384. </div>
  385. <div
  386. class="returnBtn"
  387. @click="stopRecording"
  388. v-else-if="tType == 1 || tType == 4"
  389. style="background: #ee5255"
  390. >
  391. 下载
  392. </div>
  393. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  394. 评论
  395. </div>
  396. <div
  397. class="returnBtn"
  398. @click="nextOrpreSteps(0)"
  399. v-if="!(IsFollow && tType == 2)"
  400. >
  401. 上一步
  402. </div>
  403. <div
  404. class="returnBtn"
  405. @click="nextOrpreSteps(1)"
  406. v-if="!(IsFollow && tType == 2)"
  407. >
  408. 下一步
  409. </div>
  410. <div class="returnBtn" @click="refreshCourse">刷新</div>
  411. <div
  412. class="returnBtn returnIcon"
  413. @click.stop="
  414. goTo(
  415. '/courseDetail?userid=' +
  416. userid +
  417. '&oid=' +
  418. oid +
  419. '&org=' +
  420. org +
  421. '&cid=' +
  422. classId +
  423. '&courseId=' +
  424. id +
  425. '&tType=' +
  426. tType +
  427. '&screenType=' +
  428. screenType
  429. )
  430. "
  431. >
  432. 返回
  433. </div> -->
  434. </div>
  435. </div>
  436. <div
  437. class="isNoMessage"
  438. v-if="
  439. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  440. .chapterData.length == 0 &&
  441. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  442. .toolChoose[0].tool.length == 0 &&
  443. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  444. .taskDetail == '' &&
  445. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  446. .eList &&
  447. !(
  448. courseDetail.userid == userid ||
  449. (courseDetail.course_teacher &&
  450. courseDetail.course_teacher.indexOf(userid) != -1)
  451. )
  452. "
  453. >
  454. <img src="../assets/icon/isNoMessage.png" alt />
  455. </div>
  456. <div class="study_top" :class="{ pzClass: pzDialog }">
  457. <div
  458. class="vedioBox"
  459. v-if="
  460. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  461. .taskDetail != '' ||
  462. vChapterData[taskCount].length > 0 ||
  463. fileC[taskCount].length > 0
  464. "
  465. style="border-radius: 0 0 20px 20px"
  466. >
  467. <div
  468. class="taskBox"
  469. v-if="
  470. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  471. .taskDetail != ''
  472. "
  473. >
  474. <div
  475. style="
  476. display: flex;
  477. flex-wrap: nowrap;
  478. flex-direction: column;
  479. position: relative;
  480. "
  481. >
  482. <div
  483. style="
  484. padding: 15px 0;
  485. line-height: 29px;
  486. font-size: 18px;
  487. color: #0e1e33;
  488. "
  489. class="cont"
  490. v-if="
  491. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  492. .taskDetail != ''
  493. "
  494. v-html="
  495. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  496. .taskDetail
  497. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  498. taskCount
  499. ].taskDetail
  500. : '暂无描述'
  501. "
  502. ></div>
  503. </div>
  504. </div>
  505. <div
  506. class="student_head"
  507. v-if="
  508. vChapterData[taskCount].length > 0 ||
  509. fileC[taskCount].length > 0
  510. "
  511. >
  512. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  513. <div
  514. :class="
  515. contentDialog == false
  516. ? 'box_course isContentCss'
  517. : 'box_course'
  518. "
  519. v-if="
  520. vChapterData.length > 0 &&
  521. vChapterData[taskCount] &&
  522. showType !== ''
  523. "
  524. >
  525. <div class="wheel" style="height: auto" v-if="showType === 0">
  526. <div
  527. class="workd_media"
  528. style="height: 650px; width: calc(100% - 50px)"
  529. >
  530. <video-player
  531. class="video-player vjs-custom-skin"
  532. :class="contentDialog == false ? 'isAllWidth' : ''"
  533. :playsinline="true"
  534. :options="playerO[taskCount]"
  535. @play="onPlayerPlay($event)"
  536. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  537. ></video-player>
  538. </div>
  539. </div>
  540. <div
  541. class="wheel"
  542. v-if="showType == 1"
  543. style="
  544. box-shadow: 0 0 6px 1px #f2f2f2;
  545. width: 95%;
  546. margin: 0 auto;
  547. background: #f1f1f1;
  548. "
  549. >
  550. <div class="title">查看文档</div>
  551. <el-form class="textBox">
  552. <el-form-item class="textTitle">
  553. <div style="font-size: 22px">
  554. {{ text.name }}
  555. </div>
  556. </el-form-item>
  557. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  558. <div v-html="text.url" class="textContent cont"></div>
  559. </el-form>
  560. </div>
  561. <div
  562. class="wheel"
  563. v-if="
  564. pptImgUrl1.indexOf(
  565. 'https://view.officeapps.live.com/op/view.aspx?src='
  566. ) != -1 && showType == 2
  567. "
  568. style="width: 95%; margin: 0 auto"
  569. >
  570. <iframe
  571. style="width: 100%; height: 100%; border: none"
  572. :src="pptImgUrl1"
  573. ></iframe>
  574. </div>
  575. <div
  576. class="wheel"
  577. v-else-if="showType == 2"
  578. style="width: 95%; margin: 0 auto"
  579. >
  580. <iframe
  581. style="width: 100%; height: 100%; border: none"
  582. security="restricted"
  583. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  584. :src="pptImgUrl1"
  585. ></iframe>
  586. </div>
  587. <div
  588. class="wheel"
  589. v-if="showType == 3"
  590. style="width: 95%; margin: 0 auto"
  591. >
  592. <pdf
  593. :pdfUrl="pptImgUrl1"
  594. style="width: 100%; height: 100%; overflow: auto"
  595. ></pdf>
  596. </div>
  597. <div
  598. class="wheel"
  599. v-if="showType == 4"
  600. style="width: 95%; margin: 0 auto"
  601. >
  602. <el-image
  603. :src="pptImgUrl1"
  604. fit="contain"
  605. style="width: 100%; height: 100%; cursor: pointer"
  606. @click="previewImg(pptImgUrl1)"
  607. ></el-image>
  608. </div>
  609. </div>
  610. <div
  611. class="pButton"
  612. style="position: absolute; right: 20px; top: 0; z-index: 998"
  613. v-if="!contentDialog"
  614. @click="setContent(true)"
  615. >
  616. <!-- 批 -->
  617. <img
  618. src="../assets/icon/newIcons/isLeft.png"
  619. style="width: 45px"
  620. alt=""
  621. />
  622. </div>
  623. <div
  624. v-if="contentDialog == true"
  625. :style="{
  626. width:
  627. (vChapterData[taskCount].length > 0 ||
  628. fileC[taskCount].length > 0) &&
  629. showType === ''
  630. ? 'calc(100%)'
  631. : '300px',
  632. margin:
  633. (vChapterData[taskCount].length > 0 ||
  634. fileC[taskCount].length > 0) &&
  635. showType === ''
  636. ? '0 15px'
  637. : '0 15px 0 0',
  638. }"
  639. >
  640. <div
  641. class="vedioList"
  642. v-if="
  643. vChapterData[taskCount].length > 0 ||
  644. fileC[taskCount].length > 0
  645. "
  646. style="height: 650px"
  647. >
  648. <div class="navCorOpenBox">
  649. <div class="navTitile">内容列表:</div>
  650. <div class="navCorOpen" @click="setContent(false)">
  651. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  652. </div>
  653. </div>
  654. <div class="navBox">
  655. <div
  656. v-show="
  657. vChapterData[taskCount].length > 0 ||
  658. fileC[taskCount].length > 0
  659. "
  660. style="padding: 10px 0 25px 0"
  661. >
  662. <div
  663. class="vedioTimeBox"
  664. v-for="(vitem, vindex) in vChapterData[taskCount]"
  665. :key="vindex + '1'"
  666. >
  667. <div class="navListItem" v-if="vitem.type == 2">
  668. <div
  669. @click="lookVedio(vitem.url, vindex)"
  670. class="navText"
  671. :class="isClickNav == vindex ? 'isClickNav' : ''"
  672. >
  673. <span v-if="vitem.text">{{ vitem.text }}-</span
  674. >{{ vitem.name }}
  675. </div>
  676. <div class="downIcon" @click="downloadFile2(vitem)">
  677. <img src="../assets/icon/newIcon/down.png" alt />
  678. </div>
  679. </div>
  680. <div class="navListItem" v-if="vitem.type == 6">
  681. <div
  682. @click="lookText(taskCount, vindex)"
  683. class="navText"
  684. :class="isClickNav == vindex ? 'isClickNav' : ''"
  685. >
  686. {{ vitem.name }}.doc
  687. </div>
  688. <div
  689. class="downIcon"
  690. @click="checkFileFull1(vitem.type, vitem)"
  691. >
  692. <img
  693. src="../assets/icon/newIcon/allScreen.png"
  694. alt
  695. />
  696. </div>
  697. </div>
  698. <div
  699. class="navListItem"
  700. v-if="vitem.type == 8 || vitem.type == 14"
  701. >
  702. <div
  703. @click="doUrl(vitem.url, vindex)"
  704. class="navText"
  705. :class="isClickNav == vindex ? 'isClickNav' : ''"
  706. >
  707. {{ vitem.title ? vitem.title : vitem.url }}
  708. </div>
  709. <div
  710. class="downIcon"
  711. @click="checkFileFull1(vitem.type, vitem)"
  712. >
  713. <img
  714. src="../assets/icon/newIcon/allScreen.png"
  715. alt
  716. />
  717. </div>
  718. </div>
  719. <div class="navListItem" v-if="vitem.type == 3">
  720. <div
  721. @click="downFile(vitem, vindex)"
  722. class="navText"
  723. :class="isClickNav == vindex ? 'isClickNav' : ''"
  724. >
  725. <span v-if="vitem.text">{{ vitem.text }}-</span
  726. >{{ vitem.name }}
  727. </div>
  728. <div
  729. class="downIcon"
  730. @click="checkFileFull1(vitem.type, vitem)"
  731. >
  732. <img
  733. src="../assets/icon/newIcon/allScreen.png"
  734. alt
  735. />
  736. </div>
  737. <div class="downIcon" @click="downloadFile2(vitem)">
  738. <img src="../assets/icon/newIcon/down.png" alt />
  739. </div>
  740. </div>
  741. <div class="navListItem" v-if="vitem.type == 12">
  742. <div class="navText" @click="downloadFile2(vitem)">
  743. <span v-if="vitem.text">{{ vitem.text }}-</span
  744. >{{ vitem.name }}
  745. </div>
  746. <div
  747. class="downIcon"
  748. @click="checkFileFull1(vitem.type, vitem)"
  749. >
  750. <img
  751. src="../assets/icon/newIcon/allScreen.png"
  752. alt
  753. />
  754. </div>
  755. <div class="downIcon" @click="downloadFile2(vitem)">
  756. <img src="../assets/icon/newIcon/down.png" alt />
  757. </div>
  758. </div>
  759. <div class="navListItem" v-if="vitem.type == 13">
  760. <div
  761. class="navText"
  762. @click="checkPhoto(vitem, vindex)"
  763. :class="isClickNav == vindex ? 'isClickNav' : ''"
  764. >
  765. {{ vitem.name }}
  766. </div>
  767. <div class="downIcon" @click="downloadFile2(vitem)">
  768. <img src="../assets/icon/newIcon/down.png" alt />
  769. </div>
  770. </div>
  771. </div>
  772. <div
  773. class="fileC_box"
  774. v-if="fileC[taskCount].length > 0"
  775. >
  776. <div class="fileC_title">以下文件不支持预览</div>
  777. <div
  778. class="vedioTimeBox"
  779. v-for="(vitem, vindex) in fileC[taskCount]"
  780. :key="vindex + '1'"
  781. >
  782. <div class="navListItem" v-if="vitem.type == 12">
  783. <div class="navText" style="color: #acb4bf">
  784. <span v-if="vitem.text">{{ vitem.text }}-</span
  785. >{{ vitem.name }}
  786. </div>
  787. <div
  788. class="downIcon"
  789. @click="downloadFile2(vitem)"
  790. >
  791. <img
  792. src="../assets/icon/newIcon/down.png"
  793. alt
  794. />
  795. </div>
  796. </div>
  797. </div>
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. </div>
  804. <div style="width: calc(100% - 315px)">
  805. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  806. <!-- <el-button
  807. type="primary"
  808. class="newButton"
  809. @click="checkFileFull(showType, pptImgUrl1)"
  810. >全屏查看</el-button
  811. >
  812. <el-button
  813. type="primary"
  814. class="newButton"
  815. @click="downloadFile(pptImgUrl1)"
  816. v-if="showType != 2"
  817. >文件下载</el-button
  818. > -->
  819. <el-button
  820. class="newButton"
  821. v-if="
  822. showType == 2 &&
  823. pptImgUrl1.indexOf(
  824. 'https://view.officeapps.live.com/op/view.aspx?src='
  825. ) == -1
  826. "
  827. type="primary"
  828. @click="openLine(pptImgUrl1)"
  829. >打开链接
  830. </el-button>
  831. </div>
  832. <!-- <div
  833. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  834. v-if="showType == 1"
  835. >
  836. <el-button
  837. type="primary"
  838. class="newButton"
  839. @click="checkFileFull(showType, text)"
  840. >全屏查看</el-button
  841. >
  842. </div> -->
  843. </div>
  844. </div>
  845. </div>
  846. <div class="student_body" v-resize="resize">
  847. <div
  848. class="vedioBox"
  849. :style="{
  850. borderRadius:
  851. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  852. .taskDetail == '' &&
  853. vChapterData[taskCount].length == 0 &&
  854. fileC[taskCount].length == 0
  855. ? '0 0 20px 20px'
  856. : '20px',
  857. }"
  858. v-if="
  859. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  860. .toolChoose[0].tool &&
  861. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  862. .toolChoose[0].tool.length > 0
  863. "
  864. >
  865. <div
  866. class="toolHeng2"
  867. style="position: relative"
  868. v-if="
  869. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  870. .toolChoose[0].tool &&
  871. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  872. .toolChoose[0].tool.length &&
  873. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  874. .toolChoose[0].tool.length > 0
  875. "
  876. >
  877. <div class="workNav">工作区</div>
  878. <div
  879. class="filebox"
  880. style="flex-wrap: nowrap"
  881. v-for="(tool, toolIndex) in chapInfoList[courseType]
  882. .chapterInfo[0].taskJson[taskCount].toolChoose"
  883. :key="toolIndex"
  884. >
  885. <div class="bzBox">
  886. <div class="yCss"></div>
  887. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  888. 工具{{ toolIndex + 1 }}
  889. </div>
  890. <div
  891. v-if="timeWorkList[toolIndex].length > 0"
  892. style="margin: 0 0 0 10px"
  893. >
  894. {{
  895. timeWorkList[toolIndex][0].time
  896. ? "时间:" + timeWorkList[toolIndex][0].time
  897. : ""
  898. }}
  899. </div>
  900. </div>
  901. <div class="toolBox">
  902. <div>
  903. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  904. :key="indexTool"-->
  905. <!-- <div class="iframeBox">
  906. <div
  907. class="addPoint isBorder"
  908. v-for="(tooC, toolCIndex) in tool.tool"
  909. :key="toolCIndex"
  910. >
  911. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  912. <div
  913. class="iframeName"
  914. >
  915. 电子白板
  916. </div>
  917. <iframe
  918. src="https://iwb.cocorobo.cn/"
  919. ref="whiteBoard"
  920. ></iframe>
  921. </div>
  922. </div>
  923. </div>-->
  924. <div class="noiframeBox">
  925. <div
  926. class="addPoint"
  927. v-for="(tooC, toolCIndex) in tool.tool"
  928. :key="toolCIndex"
  929. >
  930. <div v-if="tooC == 1">
  931. <img
  932. src="../assets/icon/secondToolList/whiteBoard.png"
  933. alt
  934. @click="addTools(tooC, toolIndex, taskCount)"
  935. />
  936. <div style="margin: 5px 0">电子白板</div>
  937. </div>
  938. <div v-if="tooC == 3">
  939. <img
  940. src="../assets/icon/secondToolList/mindMapping.png"
  941. alt
  942. @click="addTools(tooC, toolIndex, taskCount)"
  943. />
  944. <div style="margin: 5px 0">思维导图</div>
  945. </div>
  946. <div v-if="tooC == 6">
  947. <img
  948. src="../assets/icon/secondToolList/doc.png"
  949. alt
  950. @click="addTools(tooC, toolIndex, taskCount)"
  951. />
  952. <div style="margin: 5px 0">协同文档</div>
  953. </div>
  954. <div v-if="tooC == 7">
  955. <img
  956. src="../assets/icon/secondToolList/mindNetwork.png"
  957. alt
  958. @click="addTools(tooC, toolIndex, taskCount)"
  959. />
  960. <div style="margin: 5px 0">思维网格</div>
  961. </div>
  962. <div v-if="tooC == 8">
  963. <img
  964. src="../assets/icon/secondToolList/library.png"
  965. alt
  966. @click="addTools(tooC, toolIndex, taskCount)"
  967. />
  968. <div style="margin: 5px 0">素材库</div>
  969. </div>
  970. <div v-if="tooC == 17">
  971. <img
  972. src="../assets/icon/secondToolList/library.png"
  973. alt
  974. @click="addTools(tooC, toolIndex, taskCount)"
  975. />
  976. <div style="margin: 5px 0">学习资料</div>
  977. </div>
  978. <div v-if="tooC == 2">
  979. <img
  980. @click="addTools(tooC, toolIndex, taskCount)"
  981. src="../assets/icon/secondToolList/note.png"
  982. alt
  983. />
  984. <div style="margin: 5px 0">便签</div>
  985. </div>
  986. <div v-if="tooC == 4">
  987. <img
  988. @click="addTools(tooC, toolIndex, taskCount)"
  989. src="../assets/icon/thirdToolList/ask.png"
  990. alt
  991. />
  992. <div style="margin: 5px 0">问卷调查</div>
  993. </div>
  994. <div v-if="tooC == 45">
  995. <img
  996. @click="addTools(tooC, toolIndex, taskCount)"
  997. src="../assets/icon/thirdToolList/choose.png"
  998. alt
  999. />
  1000. <div style="margin: 5px 0">选择题</div>
  1001. </div>
  1002. <!-- <div v-if="tooC == 5">
  1003. <img
  1004. @click="addTools(tooC, toolIndex, taskCount)"
  1005. src="../assets/icon/thirdToolList/score.png"
  1006. alt
  1007. />
  1008. <div style="margin: 5px 0">量规评分</div>
  1009. </div> -->
  1010. <div v-if="tooC == 10">
  1011. <img
  1012. @click="addTools(tooC, toolIndex, taskCount)"
  1013. src="../assets/icon/thirdToolList/time.png"
  1014. alt
  1015. />
  1016. <div style="margin: 5px 0">倒计时</div>
  1017. </div>
  1018. <div v-if="tooC == 15">
  1019. <img
  1020. @click="addTools(tooC, toolIndex, taskCount)"
  1021. src="../assets/icon/thirdToolList/answer.png"
  1022. alt
  1023. />
  1024. <div style="margin: 5px 0">问答</div>
  1025. </div>
  1026. <div v-if="tooC == 26">
  1027. <img
  1028. @click="addTools(tooC, toolIndex, taskCount)"
  1029. src="../assets/icon/thirdToolList/courseDesign.png"
  1030. alt
  1031. />
  1032. <div style="margin: 5px 0">课程设计</div>
  1033. </div>
  1034. <div v-if="tooC == 18">
  1035. <img
  1036. @click="addTools(tooC, toolIndex, taskCount)"
  1037. src="../assets/icon/thirdToolList/trainPlatform.png"
  1038. alt
  1039. />
  1040. <div style="margin: 5px 0">训练服务器</div>
  1041. </div>
  1042. <div v-if="tooC == 16">
  1043. <img
  1044. @click="addTools(tooC, toolIndex, taskCount)"
  1045. src="../assets/icon/thirdToolList/work.png"
  1046. alt
  1047. />
  1048. <div style="margin: 5px 0">作业提交</div>
  1049. </div>
  1050. <div v-if="tooC == 50">
  1051. <img
  1052. @click="addTools(tooC, toolIndex, taskCount)"
  1053. src="../assets/icon/thirdToolList/plwork.png"
  1054. alt
  1055. />
  1056. <div style="margin: 5px 0">批量上传</div>
  1057. </div>
  1058. <div v-if="tooC == 21">
  1059. <img
  1060. @click="addTools(tooC, toolIndex, taskCount)"
  1061. src="../assets/icon/fourthToolList/program.png"
  1062. alt
  1063. />
  1064. <div style="margin: 5px 0">AIoT Blockly</div>
  1065. </div>
  1066. <!-- <div v-if="tooC == 22">
  1067. <img
  1068. @click="addTools(tooC, toolIndex, taskCount)"
  1069. src="../assets/icon/fourthToolList/program.png"
  1070. alt
  1071. />
  1072. <div style="margin: 5px 0">AI体验</div>
  1073. </div> -->
  1074. <div v-if="tooC == 23">
  1075. <img
  1076. @click="addTools(tooC, toolIndex, taskCount)"
  1077. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1078. alt
  1079. />
  1080. <div style="margin: 5px 0">AI Python</div>
  1081. </div>
  1082. <div v-if="tooC == 24">
  1083. <img
  1084. @click="addTools(tooC, toolIndex, taskCount)"
  1085. src="../assets/icon/fourthToolList/AIprogram.png"
  1086. alt
  1087. />
  1088. <div style="margin: 5px 0">AI Blockly</div>
  1089. </div>
  1090. <div v-if="tooC == 25">
  1091. <img
  1092. @click="addTools(tooC, toolIndex, taskCount)"
  1093. src="../assets/icon/thirdToolList/evalua.png"
  1094. alt
  1095. />
  1096. <div style="margin: 5px 0">目标管理</div>
  1097. </div>
  1098. <div v-if="tooC == 31">
  1099. <img
  1100. @click="addTools(tooC, toolIndex, taskCount)"
  1101. src="../assets/icon/secondToolList/networkPanel.png"
  1102. alt
  1103. />
  1104. <div style="margin: 5px 0">数学画板</div>
  1105. </div>
  1106. <div v-if="tooC == 28">
  1107. <img
  1108. @click="addTools(tooC, toolIndex, taskCount)"
  1109. src="../assets/icon/secondToolList/translation.png"
  1110. alt
  1111. />
  1112. <div style="margin: 5px 0">翻译</div>
  1113. </div>
  1114. <div v-if="tooC == 37">
  1115. <img
  1116. @click="addTools(tooC, toolIndex, taskCount)"
  1117. src="../assets/icon/secondToolList/mohe.png"
  1118. alt
  1119. />
  1120. <div style="margin: 5px 0">魔盒识字</div>
  1121. </div>
  1122. <div v-if="tooC == 38">
  1123. <img
  1124. @click="addTools(tooC, toolIndex, taskCount)"
  1125. src="../assets/icon/secondToolList/24game.png"
  1126. alt
  1127. />
  1128. <div style="margin: 5px 0">24点</div>
  1129. </div>
  1130. <div v-if="tooC == 39">
  1131. <img
  1132. @click="addTools(tooC, toolIndex, taskCount)"
  1133. src="../assets/icon/secondToolList/GeoGebra.png"
  1134. alt
  1135. />
  1136. <div style="margin: 5px 0">GeoGebra</div>
  1137. </div>
  1138. <div v-if="tooC == 32">
  1139. <img
  1140. @click="addTools(tooC, toolIndex, taskCount)"
  1141. src="../assets/icon/thirdToolList/code.png"
  1142. alt
  1143. />
  1144. <div style="margin: 5px 0">源码编辑</div>
  1145. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1146. style="position: absolute;left: 110px;bottom: 30px;">
  1147. 上传文件
  1148. <input type="file" accept="*" style="display: none"
  1149. @change="beforeUpload1($event, 7, toolIndex)" />
  1150. </div> -->
  1151. </div>
  1152. <div v-if="tooC == 40">
  1153. <img
  1154. @click="addTools(tooC, toolIndex, taskCount)"
  1155. src="../assets/icon/secondToolList/eval.png"
  1156. alt
  1157. />
  1158. <div style="margin: 5px 0">个人评价</div>
  1159. </div>
  1160. <div v-if="tooC == 41">
  1161. <img
  1162. @click="addTools(tooC, toolIndex, taskCount)"
  1163. src="../assets/icon/thirdToolList/select.png"
  1164. alt
  1165. />
  1166. <div style="margin: 5px 0">选择匹配</div>
  1167. </div>
  1168. <div v-if="tooC == 44">
  1169. <img
  1170. @click="addTools(tooC, toolIndex, taskCount)"
  1171. src="../assets/icon/thirdToolList/hanClass.png"
  1172. alt
  1173. />
  1174. <div style="margin: 5px 0">汉字宫</div>
  1175. </div>
  1176. <div v-if="tooC == 47">
  1177. <img
  1178. @click="addTools(tooC, toolIndex, taskCount)"
  1179. src="../assets/icon/fourthToolList/conSentences.png"
  1180. alt
  1181. />
  1182. <div style="margin: 5px 0">排序</div>
  1183. </div>
  1184. <div v-if="tooC == 48">
  1185. <img
  1186. @click="addTools(tooC, toolIndex, taskCount)"
  1187. src="../assets/icon/fourthToolList/table.png"
  1188. alt
  1189. />
  1190. <div style="margin: 5px 0">表格</div>
  1191. </div>
  1192. <div v-if="tooC == 52">
  1193. <img
  1194. @click="addTools(tooC, toolIndex, taskCount)"
  1195. src="../assets/icon/fourthToolList/text.png"
  1196. alt
  1197. />
  1198. <div style="margin: 5px 0">文档</div>
  1199. </div>
  1200. <div v-if="tooC == 49">
  1201. <img
  1202. @click="addTools(tooC, toolIndex, taskCount)"
  1203. src="../assets/icon/fourthToolList/group.png"
  1204. alt
  1205. />
  1206. <div style="margin: 5px 0">学生分组</div>
  1207. </div>
  1208. <div v-if="tooC == 57">
  1209. <img
  1210. @click="addTools(tooC, toolIndex, taskCount)"
  1211. src="../assets/icon/fourthToolList/cocopi.png"
  1212. alt
  1213. />
  1214. <div style="margin: 5px 0">CocoPi</div>
  1215. </div>
  1216. <div v-if="tooC == 58">
  1217. <img
  1218. @click="addTools(tooC, toolIndex, taskCount)"
  1219. src="../assets/icon/fourthToolList/car.png"
  1220. alt
  1221. />
  1222. <div style="margin: 5px 0">模拟驾驶</div>
  1223. </div>
  1224. <div v-if="tooC == 59">
  1225. <img
  1226. @click="addTools(tooC, toolIndex, taskCount)"
  1227. src="../assets/icon/fourthToolList/lineSearch.png"
  1228. alt
  1229. />
  1230. <div style="margin: 5px 0">路径搜索</div>
  1231. </div>
  1232. <div v-if="tooC == 60">
  1233. <img
  1234. @click="addTools(tooC, toolIndex, taskCount)"
  1235. src="../assets/icon/fourthToolList/deepLearning.png"
  1236. alt
  1237. />
  1238. <div style="margin: 5px 0">深度学习</div>
  1239. </div>
  1240. <div v-if="tooC == 61">
  1241. <img
  1242. @click="addTools(tooC, toolIndex, taskCount)"
  1243. src="../assets/icon/fourthToolList/allHistory.png"
  1244. alt
  1245. />
  1246. <div style="margin: 5px 0">全历史</div>
  1247. </div>
  1248. <div v-if="tooC == 62">
  1249. <img
  1250. @click="addTools(tooC, toolIndex, taskCount)"
  1251. src="../assets/icon/fourthToolList/interVideo.png"
  1252. alt
  1253. />
  1254. <div style="margin: 5px 0">交互视频</div>
  1255. </div>
  1256. <div v-if="tooC == 63">
  1257. <img
  1258. @click="addTools(tooC, toolIndex, taskCount)"
  1259. src="../assets/icon/fourthToolList/Wood.png"
  1260. alt
  1261. />
  1262. <div style="margin: 5px 0">海龟编程</div>
  1263. </div>
  1264. <div v-if="tooC == 71">
  1265. <img
  1266. @click="addTools(tooC, toolIndex, taskCount)"
  1267. src="../assets/icon/fourthToolList/chatgpt.png"
  1268. alt
  1269. />
  1270. <div style="margin: 5px 0">AI智能体</div>
  1271. </div>
  1272. <div v-if="tooC == 65">
  1273. <img
  1274. @click="addTools(tooC, toolIndex, taskCount)"
  1275. src="../assets/icon/firstToolList/pickPeople.png"
  1276. alt
  1277. />
  1278. <div style="margin: 5px 0">挑人</div>
  1279. </div>
  1280. <div v-if="tooC == 66">
  1281. <img
  1282. @click="addTools(tooC, toolIndex, taskCount)"
  1283. src="../assets/icon/secondToolList/formulaEdi.png"
  1284. alt
  1285. />
  1286. <div style="margin: 5px 0">公式编辑</div>
  1287. </div>
  1288. <div v-if="tooC == 67">
  1289. <img
  1290. @click="addTools(tooC, toolIndex, taskCount)"
  1291. src="../assets/icon/secondToolList/molStr.png"
  1292. alt
  1293. />
  1294. <div style="margin: 5px 0">分子结构</div>
  1295. </div>
  1296. <div v-if="tooC == 68">
  1297. <img
  1298. @click="addTools(tooC, toolIndex, taskCount)"
  1299. src="../assets/icon/secondToolList/timeAxis.png"
  1300. alt
  1301. />
  1302. <div style="margin: 5px 0">时间轴</div>
  1303. </div>
  1304. <div v-if="tooC == 69">
  1305. <img
  1306. @click="addTools(tooC, toolIndex, taskCount)"
  1307. src="../assets/icon/secondToolList/english.png"
  1308. alt
  1309. />
  1310. <div style="margin: 5px 0">英语写作</div>
  1311. </div>
  1312. <div v-if="tooC == 70">
  1313. <img
  1314. @click="addTools(tooC, toolIndex, taskCount)"
  1315. src="../assets/icon/thirdToolList/englishVoice.png"
  1316. alt
  1317. />
  1318. <div style="margin: 5px 0">英语口语</div>
  1319. </div>
  1320. </div>
  1321. </div>
  1322. </div>
  1323. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1324. <!-- <div class="toolTitle">工具描述</div> -->
  1325. <div style="height:100%;"
  1326. v-html="contentConvent(tool.toolDetail)"
  1327. v-if="toolDetailIndex != toolIndex"
  1328. @click.stop="updateToolDetail(toolIndex, 2)"
  1329. ></div>
  1330. <div v-else @click.stop="" style="height:100%;">
  1331. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1332. </div>
  1333. </div>
  1334. <el-button
  1335. type="primary"
  1336. v-if="tool.tool[0] == 32"
  1337. style="position: absolute; right: 30px; top: 30px"
  1338. @click="addImg($event)"
  1339. >上传作业<input
  1340. type="file"
  1341. accept="*"
  1342. style="display: none"
  1343. @change="beforeUpload1($event, 7, toolIndex)"
  1344. /></el-button>
  1345. <el-button
  1346. type="primary"
  1347. v-if="tool.tool[0] == 15"
  1348. style="position: absolute; right: 30px; top: 30px"
  1349. @click="openWordCloud(toolIndex)"
  1350. >生成词云</el-button
  1351. >
  1352. <el-button
  1353. type="primary"
  1354. v-if="
  1355. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1356. "
  1357. style="position: absolute; right: 30px; top: 30px"
  1358. @click="uploadWorks(toolIndex)"
  1359. >导出作业</el-button
  1360. >
  1361. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1362. position: absolute;
  1363. right: 30px;
  1364. transform: translateY(-130%);
  1365. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1366. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1367. </div>
  1368. <div
  1369. v-if="
  1370. tType &&
  1371. tType == 2 &&
  1372. !sIsOpen &&
  1373. tool.tool.indexOf(16) != -1
  1374. "
  1375. class="worksBox"
  1376. >
  1377. <div
  1378. class="zuoyeYulan"
  1379. v-if="workStudent[toolIndex].length > 0"
  1380. >
  1381. <span class="worksTitle">作业预览</span>
  1382. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1383. </div>
  1384. <div
  1385. class="worksDetailBox"
  1386. v-if="workStudent[toolIndex].length > 0"
  1387. >
  1388. <div
  1389. class="works"
  1390. style="
  1391. width: 200px;
  1392. height: 140px;
  1393. margin: 10px 10px 10px 0;
  1394. box-shadow: 0 0 6px 1px #dfdada;
  1395. "
  1396. v-for="(w, wIndex) in workStudent[toolIndex]"
  1397. :key="wIndex"
  1398. >
  1399. <div class="workImg" v-if="w.type == 0">
  1400. <img
  1401. :src="w.works"
  1402. @click="previewImg(w.works)"
  1403. alt
  1404. />
  1405. <div
  1406. class="answerScore"
  1407. v-if="w.score"
  1408. @click.stop="openScore(w)"
  1409. :class="{
  1410. rightW:
  1411. w.userid == userid || tType == 1 || tType == 4,
  1412. }"
  1413. >
  1414. {{ JSON.parse(w.score).wScore }}分
  1415. </div>
  1416. <div
  1417. class="answerScore"
  1418. @click.stop="openScore(w)"
  1419. v-else-if="courseDetail.userid == userid"
  1420. :class="{
  1421. rightW:
  1422. w.userid == userid || tType == 1 || tType == 4,
  1423. }"
  1424. >
  1425. 评分
  1426. </div>
  1427. <img
  1428. class="deleteImg"
  1429. src="../assets/deleteworks.png"
  1430. v-if="
  1431. w.userid == userid || tType == 1 || tType == 4
  1432. "
  1433. @click.stop="deleteWorks(w.wid)"
  1434. alt
  1435. />
  1436. </div>
  1437. <div class="workImg" v-if="w.type == 1">
  1438. <img :src="word" @click="openFile(w.works)" alt />
  1439. <div
  1440. class="answerScore"
  1441. v-if="w.score"
  1442. @click.stop="openScore(w)"
  1443. :class="{
  1444. rightW:
  1445. w.userid == userid || tType == 1 || tType == 4,
  1446. }"
  1447. >
  1448. {{ JSON.parse(w.score).wScore }}分
  1449. </div>
  1450. <div
  1451. class="answerScore"
  1452. @click.stop="openScore(w)"
  1453. v-else-if="courseDetail.userid == userid"
  1454. :class="{
  1455. rightW:
  1456. w.userid == userid || tType == 1 || tType == 4,
  1457. }"
  1458. >
  1459. 评分
  1460. </div>
  1461. <img
  1462. class="deleteImg"
  1463. src="../assets/deleteworks.png"
  1464. v-if="
  1465. w.userid == userid || tType == 1 || tType == 4
  1466. "
  1467. @click.stop="deleteWorks(w.wid)"
  1468. alt
  1469. />
  1470. </div>
  1471. <div class="workImg" v-if="w.type == 3">
  1472. <img
  1473. style="cursor: pointer"
  1474. :src="video"
  1475. @click="openVideo(w)"
  1476. alt
  1477. />
  1478. <div
  1479. class="answerScore"
  1480. v-if="w.score"
  1481. @click.stop="openScore(w)"
  1482. :class="{
  1483. rightW:
  1484. w.userid == userid || tType == 1 || tType == 4,
  1485. }"
  1486. >
  1487. {{ JSON.parse(w.score).wScore }}分
  1488. </div>
  1489. <div
  1490. class="answerScore"
  1491. @click.stop="openScore(w)"
  1492. v-else-if="courseDetail.userid == userid"
  1493. :class="{
  1494. rightW:
  1495. w.userid == userid || tType == 1 || tType == 4,
  1496. }"
  1497. >
  1498. 评分
  1499. </div>
  1500. <img
  1501. class="deleteImg"
  1502. src="../assets/deleteworks.png"
  1503. v-if="
  1504. w.userid == userid || tType == 1 || tType == 4
  1505. "
  1506. @click.stop="deleteWorks(w.wid)"
  1507. alt
  1508. />
  1509. </div>
  1510. <div class="workImg" v-if="w.type == 12">
  1511. <img
  1512. style="cursor: pointer"
  1513. :src="word2"
  1514. @click="downloadFile(w.works)"
  1515. alt
  1516. />
  1517. <div
  1518. class="answerScore"
  1519. v-if="w.score"
  1520. @click.stop="openScore(w)"
  1521. :class="{
  1522. rightW:
  1523. w.userid == userid || tType == 1 || tType == 4,
  1524. }"
  1525. >
  1526. {{ JSON.parse(w.score).wScore }}分
  1527. </div>
  1528. <div
  1529. class="answerScore"
  1530. @click.stop="openScore(w)"
  1531. v-else-if="courseDetail.userid == userid"
  1532. :class="{
  1533. rightW:
  1534. w.userid == userid || tType == 1 || tType == 4,
  1535. }"
  1536. >
  1537. 评分
  1538. </div>
  1539. <img
  1540. class="deleteImg"
  1541. src="../assets/deleteworks.png"
  1542. v-if="
  1543. w.userid == userid || tType == 1 || tType == 4
  1544. "
  1545. @click.stop="deleteWorks(w.wid)"
  1546. alt
  1547. />
  1548. </div>
  1549. <div class="worksName">
  1550. <div>{{ w.sName }}</div>
  1551. </div>
  1552. </div>
  1553. </div>
  1554. </div>
  1555. <div
  1556. v-if="
  1557. tType &&
  1558. tType == 2 &&
  1559. !sIsOpen &&
  1560. tool.tool.indexOf(32) != -1
  1561. "
  1562. class="worksBox"
  1563. >
  1564. <div
  1565. class="zuoyeYulan"
  1566. v-if="workStudent[toolIndex].length > 0"
  1567. >
  1568. <span class="worksTitle">作业预览</span>
  1569. </div>
  1570. <div
  1571. class="worksDetailBox"
  1572. v-if="workStudent[toolIndex].length > 0"
  1573. >
  1574. <div
  1575. class="works"
  1576. style="
  1577. width: 200px;
  1578. height: 140px;
  1579. margin: 10px 10px 10px 0;
  1580. box-shadow: 0 0 6px 1px #dfdada;
  1581. "
  1582. v-for="(w, wIndex) in workStudent[toolIndex]"
  1583. :key="wIndex"
  1584. >
  1585. <div class="workImg">
  1586. <img
  1587. :src="word2"
  1588. @click="downloadFile(w.works)"
  1589. alt
  1590. />
  1591. <div
  1592. class="answerScore"
  1593. v-if="w.score"
  1594. @click.stop="openScore(w)"
  1595. :class="{
  1596. rightW:
  1597. w.userid == userid || tType == 1 || tType == 4,
  1598. }"
  1599. >
  1600. {{ JSON.parse(w.score).wScore }}分
  1601. </div>
  1602. <div
  1603. class="answerScore"
  1604. @click.stop="openScore(w)"
  1605. v-else-if="courseDetail.userid == userid"
  1606. :class="{
  1607. rightW:
  1608. w.userid == userid || tType == 1 || tType == 4,
  1609. }"
  1610. >
  1611. 评分
  1612. </div>
  1613. <img
  1614. class="deleteImg"
  1615. src="../assets/deleteworks.png"
  1616. v-if="
  1617. w.userid == userid || tType == 1 || tType == 4
  1618. "
  1619. @click.stop="deleteWorks(w.wid)"
  1620. alt
  1621. />
  1622. </div>
  1623. <div class="worksName">
  1624. <div>{{ w.sName }}</div>
  1625. </div>
  1626. </div>
  1627. </div>
  1628. </div>
  1629. <div
  1630. v-if="
  1631. tType &&
  1632. tType == 2 &&
  1633. !sIsOpen &&
  1634. tool.tool.indexOf(57) != -1
  1635. "
  1636. class="worksBox"
  1637. >
  1638. <div
  1639. class="zuoyeYulan"
  1640. v-if="workStudent[toolIndex].length > 0"
  1641. >
  1642. <span class="worksTitle">作业预览</span>
  1643. </div>
  1644. <div
  1645. class="worksDetailBox"
  1646. v-if="workStudent[toolIndex].length > 0"
  1647. >
  1648. <div
  1649. class="works"
  1650. style="
  1651. width: 200px;
  1652. height: 140px;
  1653. margin: 10px 10px 10px 0;
  1654. box-shadow: 0 0 6px 1px #dfdada;
  1655. "
  1656. v-for="(w, wIndex) in workStudent[toolIndex]"
  1657. :key="wIndex"
  1658. >
  1659. <div class="workImg">
  1660. <img
  1661. :src="word2"
  1662. @click="downloadFile(w.works)"
  1663. v-if="w.type == 12"
  1664. alt
  1665. />
  1666. <img
  1667. :src="word2"
  1668. @click="
  1669. openCocoPi(57, toolIndex, w.userid, w.sName)
  1670. "
  1671. v-else-if="w.type == 15"
  1672. alt
  1673. />
  1674. <div
  1675. class="answerScore"
  1676. v-if="w.score"
  1677. @click.stop="openScore(w)"
  1678. :class="{
  1679. rightW:
  1680. w.userid == userid || tType == 1 || tType == 4,
  1681. }"
  1682. >
  1683. {{ JSON.parse(w.score).wScore }}分
  1684. </div>
  1685. <div
  1686. class="answerScore"
  1687. @click.stop="openScore(w)"
  1688. v-else-if="courseDetail.userid == userid"
  1689. :class="{
  1690. rightW:
  1691. w.userid == userid || tType == 1 || tType == 4,
  1692. }"
  1693. >
  1694. 评分
  1695. </div>
  1696. <img
  1697. class="deleteImg"
  1698. src="../assets/deleteworks.png"
  1699. v-if="
  1700. w.userid == userid || tType == 1 || tType == 4
  1701. "
  1702. @click.stop="deleteWorks(w.wid)"
  1703. alt
  1704. />
  1705. </div>
  1706. <div class="worksName">
  1707. <div>{{ w.sName }}</div>
  1708. </div>
  1709. </div>
  1710. </div>
  1711. </div>
  1712. <div
  1713. v-if="
  1714. tType &&
  1715. tType == 2 &&
  1716. !sIsOpen &&
  1717. tool.tool.indexOf(4) != -1
  1718. "
  1719. class="worksBox"
  1720. >
  1721. <div
  1722. class="zuoyeYulan"
  1723. v-if="workStudent[toolIndex].length > 0"
  1724. >
  1725. <span class="worksTitle">作业预览</span>
  1726. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1727. </div>
  1728. <div
  1729. class="worksDetailBox"
  1730. v-if="workStudent[toolIndex].length > 0"
  1731. >
  1732. <div
  1733. class="isWorksName2"
  1734. v-for="(w, wIndex) in workStudent[toolIndex]"
  1735. :key="wIndex"
  1736. @click="
  1737. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1738. "
  1739. >
  1740. {{ w.sName }}
  1741. <img
  1742. class="deleteImg deleteImg2"
  1743. src="../assets/deleteworks.png"
  1744. v-if="w.userid == userid || tType == 1 || tType == 4"
  1745. @click.stop="deleteWorks(w.wid)"
  1746. alt
  1747. />
  1748. </div>
  1749. <!-- <div
  1750. class="works"
  1751. style="
  1752. width: 200px;
  1753. height: 140px;
  1754. border-radius: 10px;
  1755. box-shadow: 0 0 6px 1px #dfdada;
  1756. overflow: hidden;
  1757. "
  1758. v-for="(w, wIndex) in workStudent[toolIndex]"
  1759. :key="wIndex"
  1760. >
  1761. <div class="workImg">
  1762. <img
  1763. src="../assets/icon/works/noImg.png"
  1764. @click="
  1765. openTools(
  1766. 4,
  1767. toolIndex,
  1768. taskCount,
  1769. w.works,
  1770. w.sName
  1771. )
  1772. "
  1773. alt
  1774. />
  1775. </div>
  1776. <div class="worksName">
  1777. <div>{{ w.sName }}</div>
  1778. <div>{{ w.time }}</div>
  1779. </div>
  1780. </div> -->
  1781. </div>
  1782. </div>
  1783. <div
  1784. v-if="
  1785. tType &&
  1786. ((tType == 2 && sIsOpen == true) ||
  1787. tType == 1 ||
  1788. tType == 4) &&
  1789. tool.tool.indexOf(62) != -1
  1790. "
  1791. class="worksBox"
  1792. >
  1793. <div
  1794. class="zuoyeYulan"
  1795. v-if="
  1796. worksStudent.length &&
  1797. worksStudent[toolIndex].length > 0
  1798. "
  1799. >
  1800. <div class="worksTop">
  1801. <div>作业预览</div>
  1802. <div
  1803. class="corOpen"
  1804. @click="contract(toolIndex)"
  1805. v-if="
  1806. (isCloseList[toolIndex].isCloseBoolean) &&
  1807. isCloseList[toolIndex].isClose == 0
  1808. "
  1809. >
  1810. 折叠
  1811. </div>
  1812. <div
  1813. class="corOpen"
  1814. @click="contract(toolIndex)"
  1815. v-if="isCloseList[toolIndex].isClose == 1"
  1816. >
  1817. 展开
  1818. </div>
  1819. </div>
  1820. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1821. </div>
  1822. <div>
  1823. <div
  1824. :id="'tool-' + toolIndex"
  1825. :style="{
  1826. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1827. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1828. }"
  1829. class="worksDetailBox"
  1830. v-if="
  1831. worksStudent.length &&
  1832. worksStudent[toolIndex].length > 0
  1833. "
  1834. >
  1835. <div
  1836. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1837. :key="wIndex"
  1838. class="isWorksName2"
  1839. @click="
  1840. openTools(
  1841. 62,
  1842. toolIndex,
  1843. taskCount,
  1844. w.works,
  1845. w.sName
  1846. )
  1847. "
  1848. >
  1849. {{ w.sName }}
  1850. <img
  1851. class="deleteImg deleteImg2"
  1852. src="../assets/deleteworks.png"
  1853. v-if="
  1854. w.userid == userid || tType == 1 || tType == 4
  1855. "
  1856. @click.stop="deleteWorks(w.wid)"
  1857. alt
  1858. />
  1859. </div>
  1860. </div>
  1861. </div>
  1862. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1863. 未提交
  1864. </div>
  1865. <div
  1866. class="noWorksS"
  1867. v-if="noWorksS && noWorksS[toolIndex].length"
  1868. >
  1869. <div
  1870. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1871. :key="sIndex"
  1872. class="noWorksName"
  1873. >
  1874. {{ s.student }}
  1875. </div>
  1876. </div>
  1877. </div>
  1878. <div
  1879. v-if="
  1880. tType &&
  1881. tType == 2 &&
  1882. !sIsOpen &&
  1883. tool.tool.indexOf(62) != -1
  1884. "
  1885. class="worksBox"
  1886. >
  1887. <div
  1888. class="zuoyeYulan"
  1889. v-if="workStudent[toolIndex].length > 0"
  1890. >
  1891. <span class="worksTitle">作业预览</span>
  1892. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1893. </div>
  1894. <div
  1895. class="worksDetailBox"
  1896. v-if="workStudent[toolIndex].length > 0"
  1897. >
  1898. <div
  1899. class="isWorksName2"
  1900. v-for="(w, wIndex) in workStudent[toolIndex]"
  1901. :key="wIndex"
  1902. @click="
  1903. openTools(62, toolIndex, taskCount, w.works, w.sName)
  1904. "
  1905. >
  1906. {{ w.sName }}
  1907. <img
  1908. class="deleteImg deleteImg2"
  1909. src="../assets/deleteworks.png"
  1910. v-if="w.userid == userid || tType == 1 || tType == 4"
  1911. @click.stop="deleteWorks(w.wid)"
  1912. alt
  1913. />
  1914. </div>
  1915. </div>
  1916. </div>
  1917. <div
  1918. v-if="
  1919. tType &&
  1920. tType == 2 &&
  1921. !sIsOpen &&
  1922. tool.tool.indexOf(45) != -1
  1923. "
  1924. class="worksBox"
  1925. >
  1926. <div
  1927. class="zuoyeYulan"
  1928. v-if="workStudent[toolIndex].length > 0"
  1929. >
  1930. <span class="worksTitle">作业预览</span>
  1931. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1932. </div>
  1933. <div
  1934. class="worksDetailBox"
  1935. v-if="workStudent[toolIndex].length > 0"
  1936. >
  1937. <div
  1938. class="isWorksName2"
  1939. v-for="(w, wIndex) in workStudent[toolIndex]"
  1940. :key="wIndex"
  1941. @click="
  1942. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1943. "
  1944. >
  1945. {{ w.sName }}
  1946. <img
  1947. class="deleteImg deleteImg2"
  1948. src="../assets/deleteworks.png"
  1949. v-if="w.userid == userid || tType == 1 || tType == 4"
  1950. @click.stop="deleteWorks(w.wid)"
  1951. alt
  1952. />
  1953. </div>
  1954. </div>
  1955. </div>
  1956. <div
  1957. v-if="
  1958. tType &&
  1959. tType == 2 &&
  1960. !sIsOpen &&
  1961. tool.tool.indexOf(69) != -1
  1962. "
  1963. class="worksBox"
  1964. >
  1965. <div
  1966. class="zuoyeYulan"
  1967. v-if="workStudent[toolIndex].length > 0"
  1968. >
  1969. <span class="worksTitle">作业预览</span>
  1970. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1971. </div>
  1972. <div
  1973. class="worksDetailBox"
  1974. v-if="workStudent[toolIndex].length > 0"
  1975. >
  1976. <div
  1977. class="isWorksName2"
  1978. v-for="(w, wIndex) in workStudent[toolIndex]"
  1979. :key="wIndex"
  1980. @click="
  1981. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1982. "
  1983. >
  1984. {{ w.sName }}
  1985. <img
  1986. class="deleteImg deleteImg2"
  1987. src="../assets/deleteworks.png"
  1988. v-if="w.userid == userid || tType == 1 || tType == 4"
  1989. @click.stop="deleteWorks(w.wid)"
  1990. alt
  1991. />
  1992. </div>
  1993. </div>
  1994. </div>
  1995. <div
  1996. v-if="
  1997. tType &&
  1998. tType == 2 &&
  1999. !sIsOpen &&
  2000. tool.tool.indexOf(15) != -1
  2001. "
  2002. class="worksBox"
  2003. >
  2004. <div
  2005. class="zuoyeYulan"
  2006. v-if="workStudent[toolIndex].length > 0"
  2007. >
  2008. <span class="worksTitle">作业预览</span>
  2009. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2010. </div>
  2011. <div
  2012. class="worksDetailBox"
  2013. v-if="workStudent[toolIndex].length > 0"
  2014. >
  2015. <div
  2016. class="works"
  2017. v-for="(w, wIndex) in workStudent[toolIndex]"
  2018. :key="wIndex"
  2019. >
  2020. <div class="workImg">
  2021. <!-- <img
  2022. src="../assets/icon/works/noImg.png"
  2023. @click="openTools(15, toolIndex, taskCount, w.works)"
  2024. alt=""
  2025. />-->
  2026. <div class="answerBg">
  2027. <!-- <div>{{ w.sName }}</div> -->
  2028. <el-tooltip
  2029. class="item"
  2030. effect="light"
  2031. :content="JSON.parse(w.works)[0].answer"
  2032. placement="top"
  2033. >
  2034. <div class="answerContent">
  2035. {{ JSON.parse(w.works)[0].answer }}
  2036. </div>
  2037. </el-tooltip>
  2038. <div
  2039. class="answerScore"
  2040. v-if="w.score"
  2041. @click.stop="openScore(w)"
  2042. :class="{
  2043. rightW:
  2044. w.userid == userid ||
  2045. tType == 1 ||
  2046. tType == 4,
  2047. }"
  2048. >
  2049. {{ JSON.parse(w.score).wScore }}分
  2050. </div>
  2051. <div
  2052. class="answerScore"
  2053. @click.stop="openScore(w)"
  2054. v-else-if="courseDetail.userid == userid"
  2055. :class="{
  2056. rightW:
  2057. w.userid == userid ||
  2058. tType == 1 ||
  2059. tType == 4,
  2060. }"
  2061. >
  2062. 评分
  2063. </div>
  2064. <img
  2065. class="deleteImg"
  2066. src="../assets/deleteworks.png"
  2067. v-if="
  2068. w.userid == userid || tType == 1 || tType == 4
  2069. "
  2070. @click.stop="deleteWorks(w.wid)"
  2071. alt
  2072. />
  2073. </div>
  2074. <div class="comment">
  2075. <div class="worksName">
  2076. <div>{{ w.sName }}</div>
  2077. </div>
  2078. </div>
  2079. </div>
  2080. </div>
  2081. </div>
  2082. </div>
  2083. <div
  2084. v-if="
  2085. tType &&
  2086. tType == 2 &&
  2087. !sIsOpen &&
  2088. tool.tool.indexOf(1) != -1
  2089. "
  2090. class="worksBox"
  2091. >
  2092. <div
  2093. class="zuoyeYulan"
  2094. v-if="workStudent[toolIndex].length > 0"
  2095. >
  2096. <span class="worksTitle">作业预览</span>
  2097. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2098. </div>
  2099. <div
  2100. class="worksDetailBox"
  2101. v-if="workStudent[toolIndex].length > 0"
  2102. >
  2103. <div
  2104. class="works"
  2105. style="
  2106. width: 200px;
  2107. height: 140px;
  2108. margin: 10px 10px 10px 0;
  2109. box-shadow: 0 0 6px 1px #dfdada;
  2110. "
  2111. v-for="(w, wIndex) in workStudent[toolIndex]"
  2112. :key="wIndex"
  2113. >
  2114. <div class="workImg">
  2115. <img
  2116. :src="w.works"
  2117. @click="previewImg(w.works)"
  2118. alt
  2119. />
  2120. <div
  2121. class="answerScore"
  2122. v-if="w.score"
  2123. @click.stop="openScore(w)"
  2124. :class="{
  2125. rightW:
  2126. w.userid == userid || tType == 1 || tType == 4,
  2127. }"
  2128. >
  2129. {{ JSON.parse(w.score).wScore }}分
  2130. </div>
  2131. <div
  2132. class="answerScore"
  2133. @click.stop="openScore(w)"
  2134. v-else-if="courseDetail.userid == userid"
  2135. :class="{
  2136. rightW:
  2137. w.userid == userid || tType == 1 || tType == 4,
  2138. }"
  2139. >
  2140. 评分
  2141. </div>
  2142. <img
  2143. class="deleteImg"
  2144. src="../assets/deleteworks.png"
  2145. v-if="
  2146. w.userid == userid || tType == 1 || tType == 4
  2147. "
  2148. @click.stop="deleteWorks(w.wid)"
  2149. alt
  2150. />
  2151. </div>
  2152. <div class="worksName">
  2153. <div>{{ w.sName }}</div>
  2154. </div>
  2155. </div>
  2156. </div>
  2157. </div>
  2158. <div
  2159. v-if="
  2160. tType &&
  2161. tType == 2 &&
  2162. !sIsOpen &&
  2163. tool.tool.indexOf(3) != -1
  2164. "
  2165. class="worksBox"
  2166. >
  2167. <div
  2168. class="zuoyeYulan"
  2169. v-if="workStudent[toolIndex].length > 0"
  2170. >
  2171. <span class="worksTitle">作业预览</span>
  2172. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2173. </div>
  2174. <div
  2175. class="worksDetailBox"
  2176. v-if="workStudent[toolIndex].length > 0"
  2177. >
  2178. <div
  2179. class="works"
  2180. style="
  2181. width: 200px;
  2182. height: 140px;
  2183. margin: 10px 10px 10px 0;
  2184. box-shadow: 0 0 6px 1px #dfdada;
  2185. "
  2186. v-for="(w, wIndex) in workStudent[toolIndex]"
  2187. :key="wIndex"
  2188. >
  2189. <div class="workImg">
  2190. <img
  2191. :src="w.works"
  2192. @click="previewImg(w.works)"
  2193. alt
  2194. />
  2195. <div
  2196. class="answerScore"
  2197. v-if="w.score"
  2198. @click.stop="openScore(w)"
  2199. :class="{
  2200. rightW:
  2201. w.userid == userid || tType == 1 || tType == 4,
  2202. }"
  2203. >
  2204. {{ JSON.parse(w.score).wScore }}分
  2205. </div>
  2206. <div
  2207. class="answerScore"
  2208. @click.stop="openScore(w)"
  2209. v-else-if="courseDetail.userid == userid"
  2210. :class="{
  2211. rightW:
  2212. w.userid == userid || tType == 1 || tType == 4,
  2213. }"
  2214. >
  2215. 评分
  2216. </div>
  2217. <img
  2218. class="deleteImg"
  2219. src="../assets/deleteworks.png"
  2220. v-if="
  2221. w.userid == userid || tType == 1 || tType == 4
  2222. "
  2223. @click.stop="deleteWorks(w.wid)"
  2224. alt
  2225. />
  2226. </div>
  2227. <div class="worksName">
  2228. <div>{{ w.sName }}</div>
  2229. </div>
  2230. </div>
  2231. </div>
  2232. </div>
  2233. <div
  2234. v-if="
  2235. tType &&
  2236. tType == 2 &&
  2237. !sIsOpen &&
  2238. tool.tool.indexOf(6) != -1
  2239. "
  2240. class="worksBox"
  2241. >
  2242. <div
  2243. class="zuoyeYulan"
  2244. v-if="workStudent[toolIndex].length > 0"
  2245. >
  2246. <span class="worksTitle">作业预览</span>
  2247. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2248. </div>
  2249. <div
  2250. class="worksDetailBox"
  2251. v-if="workStudent[toolIndex].length > 0"
  2252. >
  2253. <div
  2254. class="works"
  2255. style="
  2256. width: 200px;
  2257. height: 140px;
  2258. margin: 10px 10px 10px 0;
  2259. box-shadow: 0 0 6px 1px #dfdada;
  2260. "
  2261. v-for="(w, wIndex) in workStudent[toolIndex]"
  2262. :key="wIndex"
  2263. >
  2264. <div class="workImg">
  2265. <img
  2266. :src="w.works"
  2267. @click="previewImg(w.works)"
  2268. alt
  2269. />
  2270. <div
  2271. class="answerScore"
  2272. v-if="w.score"
  2273. @click.stop="openScore(w)"
  2274. :class="{
  2275. rightW:
  2276. w.userid == userid || tType == 1 || tType == 4,
  2277. }"
  2278. >
  2279. {{ JSON.parse(w.score).wScore }}分
  2280. </div>
  2281. <div
  2282. class="answerScore"
  2283. @click.stop="openScore(w)"
  2284. v-else-if="courseDetail.userid == userid"
  2285. :class="{
  2286. rightW:
  2287. w.userid == userid || tType == 1 || tType == 4,
  2288. }"
  2289. >
  2290. 评分
  2291. </div>
  2292. <img
  2293. class="deleteImg"
  2294. src="../assets/deleteworks.png"
  2295. v-if="
  2296. w.userid == userid || tType == 1 || tType == 4
  2297. "
  2298. @click.stop="deleteWorks(w.wid)"
  2299. alt
  2300. />
  2301. </div>
  2302. <div class="worksName">
  2303. <div>{{ w.sName }}</div>
  2304. </div>
  2305. </div>
  2306. </div>
  2307. </div>
  2308. <div
  2309. v-if="
  2310. tType &&
  2311. tType == 2 &&
  2312. !sIsOpen &&
  2313. tool.tool.indexOf(7) != -1
  2314. "
  2315. class="worksBox"
  2316. >
  2317. <div
  2318. class="zuoyeYulan"
  2319. v-if="workStudent[toolIndex].length > 0"
  2320. >
  2321. <span class="worksTitle">作业预览</span>
  2322. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2323. </div>
  2324. <div
  2325. class="worksDetailBox"
  2326. v-if="workStudent[toolIndex].length > 0"
  2327. >
  2328. <div
  2329. class="works"
  2330. style="
  2331. width: 200px;
  2332. height: 140px;
  2333. margin: 10px 10px 10px 0;
  2334. box-shadow: 0 0 6px 1px #dfdada;
  2335. "
  2336. v-for="(w, wIndex) in workStudent[toolIndex]"
  2337. :key="wIndex"
  2338. >
  2339. <div class="workImg">
  2340. <img
  2341. :src="w.works"
  2342. @click="previewImg(w.works)"
  2343. alt
  2344. />
  2345. <div
  2346. class="answerScore"
  2347. v-if="w.score"
  2348. @click.stop="openScore(w)"
  2349. :class="{
  2350. rightW:
  2351. w.userid == userid || tType == 1 || tType == 4,
  2352. }"
  2353. >
  2354. {{ JSON.parse(w.score).wScore }}分
  2355. </div>
  2356. <div
  2357. class="answerScore"
  2358. @click.stop="openScore(w)"
  2359. v-else-if="courseDetail.userid == userid"
  2360. :class="{
  2361. rightW:
  2362. w.userid == userid || tType == 1 || tType == 4,
  2363. }"
  2364. >
  2365. 评分
  2366. </div>
  2367. <img
  2368. class="deleteImg"
  2369. src="../assets/deleteworks.png"
  2370. v-if="
  2371. w.userid == userid || tType == 1 || tType == 4
  2372. "
  2373. @click.stop="deleteWorks(w.wid)"
  2374. alt
  2375. />
  2376. </div>
  2377. <div class="worksName">
  2378. <div>{{ w.sName }}</div>
  2379. </div>
  2380. </div>
  2381. </div>
  2382. </div>
  2383. <div
  2384. v-if="
  2385. tType &&
  2386. tType == 2 &&
  2387. !sIsOpen &&
  2388. tool.tool.indexOf(26) != -1
  2389. "
  2390. class="worksBox"
  2391. >
  2392. <div
  2393. class="zuoyeYulan"
  2394. v-if="workStudent[toolIndex].length > 0"
  2395. >
  2396. <span class="worksTitle">作业预览</span>
  2397. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2398. </div>
  2399. <div
  2400. class="worksDetailBox"
  2401. v-if="workStudent[toolIndex].length > 0"
  2402. >
  2403. <div
  2404. class="works"
  2405. style="
  2406. width: 200px;
  2407. height: 140px;
  2408. margin: 10px 10px 10px 0;
  2409. box-shadow: 0 0 6px 1px #dfdada;
  2410. "
  2411. v-for="(w, wIndex) in workStudent[toolIndex]"
  2412. :key="wIndex"
  2413. >
  2414. <div class="workImg">
  2415. <img
  2416. :src="w.works"
  2417. @click="previewImg(w.works)"
  2418. alt
  2419. />
  2420. <img
  2421. class="deleteImg"
  2422. src="../assets/deleteworks.png"
  2423. v-if="
  2424. w.userid == userid || tType == 1 || tType == 4
  2425. "
  2426. @click.stop="deleteWorks(w.wid)"
  2427. alt
  2428. />
  2429. </div>
  2430. <div class="worksName">
  2431. <div>{{ w.sName }}</div>
  2432. </div>
  2433. </div>
  2434. </div>
  2435. </div>
  2436. <div
  2437. v-if="
  2438. tType &&
  2439. ((tType == 2 && sIsOpen == true) ||
  2440. tType == 1 ||
  2441. tType == 4) &&
  2442. tool.tool.indexOf(16) != -1
  2443. "
  2444. class="worksBox"
  2445. >
  2446. <div
  2447. class="zuoyeYulan"
  2448. v-if="
  2449. (worksStudent.length &&
  2450. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2451. "
  2452. >
  2453. <div class="worksTop">
  2454. <div>作业预览</div>
  2455. <div
  2456. class="corOpen"
  2457. @click="contract(toolIndex)"
  2458. v-if="
  2459. (isCloseList[toolIndex].isCloseBoolean) &&
  2460. isCloseList[toolIndex].isClose == 0
  2461. "
  2462. >
  2463. 折叠
  2464. </div>
  2465. <div
  2466. class="corOpen"
  2467. @click="contract(toolIndex)"
  2468. v-if="isCloseList[toolIndex].isClose == 1"
  2469. >
  2470. 展开
  2471. </div>
  2472. </div>
  2473. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2474. </div>
  2475. <div
  2476. class="group_workBox"
  2477. v-for="(g, gindex) in courseGroup.group"
  2478. :key="gindex"
  2479. >
  2480. <div class="group_box">
  2481. <div class="group_title">
  2482. <el-tooltip
  2483. class="item"
  2484. effect="light"
  2485. :content="g.name"
  2486. placement="top"
  2487. >
  2488. <div class="group_name">{{ g.name }}</div>
  2489. </el-tooltip>
  2490. </div>
  2491. <div
  2492. class="group_work"
  2493. v-if="
  2494. g.works &&
  2495. g.works.length &&
  2496. g.works[toolIndex].length
  2497. "
  2498. >
  2499. <div
  2500. class="works"
  2501. style="
  2502. width: 200px;
  2503. height: 140px;
  2504. margin: 10px 10px 10px 0;
  2505. border-radius: 15px;
  2506. box-shadow: 0 0 6px 1px #dfdada;
  2507. "
  2508. v-for="(w, wIndex) in g.works[toolIndex]"
  2509. :key="wIndex"
  2510. :class="w.type == 1 ? 'isTypeOne' : ''"
  2511. >
  2512. <div class="workImg" v-if="w.type == 0">
  2513. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2514. <img
  2515. :src="w.works"
  2516. @click="previewImg(w.works)"
  2517. alt
  2518. />
  2519. <div
  2520. class="answerScore"
  2521. v-if="w.score"
  2522. @click.stop="openScore(w)"
  2523. :class="{
  2524. rightW:
  2525. w.userid == userid ||
  2526. tType == 1 ||
  2527. tType == 4 ||
  2528. w.ateacher == userid,
  2529. }"
  2530. >
  2531. {{ JSON.parse(w.score).wScore }}分
  2532. </div>
  2533. <div
  2534. class="answerScore"
  2535. @click.stop="openScore(w)"
  2536. v-else-if="courseDetail.userid == userid"
  2537. :class="{
  2538. rightW:
  2539. w.userid == userid ||
  2540. tType == 1 ||
  2541. tType == 4 ||
  2542. w.ateacher == userid,
  2543. }"
  2544. >
  2545. 评分
  2546. </div>
  2547. <img
  2548. class="deleteImg"
  2549. src="../assets/deleteworks.png"
  2550. v-if="
  2551. w.userid == userid || tType == 1 || tType == 4
  2552. "
  2553. @click.stop="deleteWorks(w.wid)"
  2554. alt
  2555. />
  2556. </div>
  2557. <div class="workImg" v-if="w.type == 1">
  2558. <img :src="word" @click="openFile(w.works)" alt />
  2559. <!-- @click="openFile(w.works)" -->
  2560. <div
  2561. class="answerScore"
  2562. v-if="w.score"
  2563. @click.stop="openScore(w)"
  2564. :class="{
  2565. rightW:
  2566. w.userid == userid ||
  2567. tType == 1 ||
  2568. tType == 4 ||
  2569. w.ateacher == userid,
  2570. }"
  2571. >
  2572. {{ JSON.parse(w.score).wScore }}分
  2573. </div>
  2574. <div
  2575. class="answerScore"
  2576. @click.stop="openScore(w)"
  2577. v-else-if="courseDetail.userid == userid"
  2578. :class="{
  2579. rightW:
  2580. w.userid == userid ||
  2581. tType == 1 ||
  2582. tType == 4 ||
  2583. w.ateacher == userid,
  2584. }"
  2585. >
  2586. 评分
  2587. </div>
  2588. <img
  2589. class="deleteImg"
  2590. src="../assets/deleteworks.png"
  2591. v-if="
  2592. w.userid == userid || tType == 1 || tType == 4
  2593. "
  2594. @click.stop="deleteWorks(w.wid)"
  2595. alt
  2596. />
  2597. </div>
  2598. <div class="workImg" v-if="w.type == 3">
  2599. <img
  2600. style="cursor: pointer"
  2601. :src="video"
  2602. @click="openVideo(w)"
  2603. alt
  2604. />
  2605. <!-- @click="openVideo(w.works)" -->
  2606. <div
  2607. class="answerScore"
  2608. v-if="w.score"
  2609. @click.stop="openScore(w)"
  2610. :class="{
  2611. rightW:
  2612. w.userid == userid ||
  2613. tType == 1 ||
  2614. tType == 4 ||
  2615. w.ateacher == userid,
  2616. }"
  2617. >
  2618. {{ JSON.parse(w.score).wScore }}分
  2619. </div>
  2620. <div
  2621. class="answerScore"
  2622. @click.stop="openScore(w)"
  2623. v-else-if="courseDetail.userid == userid"
  2624. :class="{
  2625. rightW:
  2626. w.userid == userid ||
  2627. tType == 1 ||
  2628. tType == 4 ||
  2629. w.ateacher == userid,
  2630. }"
  2631. >
  2632. 评分
  2633. </div>
  2634. <img
  2635. class="deleteImg"
  2636. src="../assets/deleteworks.png"
  2637. v-if="
  2638. w.userid == userid || tType == 1 || tType == 4
  2639. "
  2640. @click.stop="deleteWorks(w.wid)"
  2641. alt
  2642. />
  2643. </div>
  2644. <div class="workImg" v-if="w.type == 12">
  2645. <img
  2646. style="cursor: pointer"
  2647. :src="word2"
  2648. @click="downloadFile(w.works)"
  2649. alt
  2650. />
  2651. <!-- @click="openVideo(w.works)" -->
  2652. <div
  2653. class="answerScore"
  2654. v-if="w.score"
  2655. @click.stop="openScore(w)"
  2656. :class="{
  2657. rightW:
  2658. w.userid == userid ||
  2659. tType == 1 ||
  2660. tType == 4 ||
  2661. w.ateacher == userid,
  2662. }"
  2663. >
  2664. {{ JSON.parse(w.score).wScore }}分
  2665. </div>
  2666. <div
  2667. class="answerScore"
  2668. @click.stop="openScore(w)"
  2669. v-else-if="courseDetail.userid == userid"
  2670. :class="{
  2671. rightW:
  2672. w.userid == userid ||
  2673. tType == 1 ||
  2674. tType == 4 ||
  2675. w.ateacher == userid,
  2676. }"
  2677. >
  2678. 评分
  2679. </div>
  2680. <img
  2681. class="deleteImg"
  2682. src="../assets/deleteworks.png"
  2683. v-if="
  2684. w.userid == userid || tType == 1 || tType == 4
  2685. "
  2686. @click.stop="deleteWorks(w.wid)"
  2687. alt
  2688. />
  2689. </div>
  2690. <div class="comment" style="min-width: 200px">
  2691. <div class="worksName">
  2692. <div>{{ w.sName }}</div>
  2693. </div>
  2694. <div class="commentList">
  2695. <div class="commentList">
  2696. <div
  2697. class="commentImg"
  2698. @click="
  2699. isLikes(w.wid, userid, 1, null, w.isLikes)
  2700. "
  2701. >
  2702. <img
  2703. :src="w.isLikes == true ? likes : noLikes"
  2704. alt=""
  2705. />
  2706. </div>
  2707. <div>{{ w.likesCount }}</div>
  2708. </div>
  2709. <div
  2710. class="commentList"
  2711. style="margin-right: 15px"
  2712. >
  2713. <div
  2714. class="commentImg"
  2715. @click="
  2716. commentOther(
  2717. w,
  2718. toolIndex,
  2719. wIndex,
  2720. null,
  2721. g.id
  2722. )
  2723. "
  2724. >
  2725. <img
  2726. src="../assets/icon/comment/comment.png"
  2727. alt=""
  2728. />
  2729. </div>
  2730. <div>{{ w.commentCount }}</div>
  2731. </div>
  2732. </div>
  2733. </div>
  2734. </div>
  2735. </div>
  2736. <div class="group_work" v-else>暂无提交作业</div>
  2737. </div>
  2738. </div>
  2739. <div
  2740. :id="'tool-' + toolIndex"
  2741. :style="{
  2742. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2743. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2744. }"
  2745. class="worksDetailBox"
  2746. v-if="
  2747. worksStudent.length &&
  2748. worksStudent[toolIndex].length > 0
  2749. "
  2750. >
  2751. <div
  2752. class="works"
  2753. style="
  2754. width: 200px;
  2755. height: 140px;
  2756. margin: 10px 10px 10px 0;
  2757. border-radius: 15px;
  2758. box-shadow: 0 0 6px 1px #dfdada;
  2759. "
  2760. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2761. :key="wIndex"
  2762. :class="w.type == 1 ? 'isTypeOne' : ''"
  2763. >
  2764. <div class="workImg" v-if="w.type == 0">
  2765. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2766. <img
  2767. :src="w.works"
  2768. @click="previewImg(w.works)"
  2769. alt
  2770. />
  2771. <div
  2772. class="answerScore"
  2773. v-if="w.score"
  2774. @click.stop="openScore(w)"
  2775. :class="{
  2776. rightW:
  2777. w.userid == userid ||
  2778. tType == 1 ||
  2779. tType == 4 ||
  2780. w.ateacher == userid,
  2781. }"
  2782. >
  2783. {{ JSON.parse(w.score).wScore }}分
  2784. </div>
  2785. <div
  2786. class="answerScore"
  2787. @click.stop="openScore(w)"
  2788. v-else-if="courseDetail.userid == userid"
  2789. :class="{
  2790. rightW:
  2791. w.userid == userid ||
  2792. tType == 1 ||
  2793. tType == 4 ||
  2794. w.ateacher == userid,
  2795. }"
  2796. >
  2797. 评分
  2798. </div>
  2799. <img
  2800. class="deleteImg"
  2801. src="../assets/deleteworks.png"
  2802. v-if="
  2803. w.userid == userid || tType == 1 || tType == 4
  2804. "
  2805. @click.stop="deleteWorks(w.wid)"
  2806. alt
  2807. />
  2808. </div>
  2809. <div class="workImg" v-if="w.type == 1">
  2810. <img :src="word" @click="openFile(w.works)" alt />
  2811. <!-- @click="openFile(w.works)" -->
  2812. <div
  2813. class="answerScore"
  2814. v-if="w.score"
  2815. @click.stop="openScore(w)"
  2816. :class="{
  2817. rightW:
  2818. w.userid == userid ||
  2819. tType == 1 ||
  2820. tType == 4 ||
  2821. w.ateacher == userid,
  2822. }"
  2823. >
  2824. {{ JSON.parse(w.score).wScore }}分
  2825. </div>
  2826. <div
  2827. class="answerScore"
  2828. @click.stop="openScore(w)"
  2829. v-else-if="courseDetail.userid == userid"
  2830. :class="{
  2831. rightW:
  2832. w.userid == userid ||
  2833. tType == 1 ||
  2834. tType == 4 ||
  2835. w.ateacher == userid,
  2836. }"
  2837. >
  2838. 评分
  2839. </div>
  2840. <img
  2841. class="deleteImg"
  2842. src="../assets/deleteworks.png"
  2843. v-if="
  2844. w.userid == userid || tType == 1 || tType == 4
  2845. "
  2846. @click.stop="deleteWorks(w.wid)"
  2847. alt
  2848. />
  2849. </div>
  2850. <div class="workImg" v-if="w.type == 3">
  2851. <img
  2852. style="cursor: pointer"
  2853. :src="video"
  2854. @click="openVideo(w)"
  2855. alt
  2856. />
  2857. <!-- @click="openVideo(w.works)" -->
  2858. <div
  2859. class="answerScore"
  2860. v-if="w.score"
  2861. @click.stop="openScore(w)"
  2862. :class="{
  2863. rightW:
  2864. w.userid == userid ||
  2865. tType == 1 ||
  2866. tType == 4 ||
  2867. w.ateacher == userid,
  2868. }"
  2869. >
  2870. {{ JSON.parse(w.score).wScore }}分
  2871. </div>
  2872. <div
  2873. class="answerScore"
  2874. @click.stop="openScore(w)"
  2875. v-else-if="courseDetail.userid == userid"
  2876. :class="{
  2877. rightW:
  2878. w.userid == userid ||
  2879. tType == 1 ||
  2880. tType == 4 ||
  2881. w.ateacher == userid,
  2882. }"
  2883. >
  2884. 评分
  2885. </div>
  2886. <img
  2887. class="deleteImg"
  2888. src="../assets/deleteworks.png"
  2889. v-if="
  2890. w.userid == userid || tType == 1 || tType == 4
  2891. "
  2892. @click.stop="deleteWorks(w.wid)"
  2893. alt
  2894. />
  2895. </div>
  2896. <div class="workImg" v-if="w.type == 12">
  2897. <img
  2898. style="cursor: pointer"
  2899. :src="word2"
  2900. @click="downloadFile(w.works)"
  2901. alt
  2902. />
  2903. <!-- @click="openVideo(w.works)" -->
  2904. <div
  2905. class="answerScore"
  2906. v-if="w.score"
  2907. @click.stop="openScore(w)"
  2908. :class="{
  2909. rightW:
  2910. w.userid == userid ||
  2911. tType == 1 ||
  2912. tType == 4 ||
  2913. w.ateacher == userid,
  2914. }"
  2915. >
  2916. {{ JSON.parse(w.score).wScore }}分
  2917. </div>
  2918. <div
  2919. class="answerScore"
  2920. @click.stop="openScore(w)"
  2921. v-else-if="courseDetail.userid == userid"
  2922. :class="{
  2923. rightW:
  2924. w.userid == userid ||
  2925. tType == 1 ||
  2926. tType == 4 ||
  2927. w.ateacher == userid,
  2928. }"
  2929. >
  2930. 评分
  2931. </div>
  2932. <img
  2933. class="deleteImg"
  2934. src="../assets/deleteworks.png"
  2935. v-if="
  2936. w.userid == userid || tType == 1 || tType == 4
  2937. "
  2938. @click.stop="deleteWorks(w.wid)"
  2939. alt
  2940. />
  2941. </div>
  2942. <div class="comment" style="min-width: 200px">
  2943. <div class="worksName">
  2944. <div>{{ w.sName }}</div>
  2945. </div>
  2946. <div class="commentList">
  2947. <div class="commentList">
  2948. <div
  2949. class="commentImg"
  2950. @click="
  2951. isLikes(w.wid, userid, 1, null, w.isLikes)
  2952. "
  2953. >
  2954. <img
  2955. :src="w.isLikes == true ? likes : noLikes"
  2956. alt=""
  2957. />
  2958. </div>
  2959. <div>{{ w.likesCount }}</div>
  2960. </div>
  2961. <div class="commentList" style="margin-right: 15px">
  2962. <div
  2963. class="commentImg"
  2964. @click="commentOther(w, toolIndex, wIndex)"
  2965. >
  2966. <img
  2967. src="../assets/icon/comment/comment.png"
  2968. alt=""
  2969. />
  2970. </div>
  2971. <div>{{ w.commentCount }}</div>
  2972. </div>
  2973. </div>
  2974. </div>
  2975. </div>
  2976. </div>
  2977. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2978. 未提交
  2979. </div>
  2980. <div
  2981. class="noWorksS"
  2982. v-if="noWorksS && noWorksS[toolIndex].length"
  2983. >
  2984. <div
  2985. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2986. :key="sIndex"
  2987. class="noWorksName"
  2988. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2989. >
  2990. {{ s.student }}
  2991. </div>
  2992. </div>
  2993. </div>
  2994. <div
  2995. v-if="
  2996. tType &&
  2997. ((tType == 2 && sIsOpen == true) ||
  2998. tType == 1 ||
  2999. tType == 4) &&
  3000. tool.tool.indexOf(70) != -1
  3001. "
  3002. class="worksBox"
  3003. >
  3004. <div
  3005. class="zuoyeYulan"
  3006. v-if="
  3007. (worksStudent.length &&
  3008. worksStudent[toolIndex].length > 0)
  3009. "
  3010. >
  3011. <div class="worksTop">
  3012. <div>作业预览</div>
  3013. <div
  3014. class="corOpen"
  3015. @click="contract(toolIndex)"
  3016. v-if="
  3017. (isCloseList[toolIndex].isCloseBoolean) &&
  3018. isCloseList[toolIndex].isClose == 0
  3019. "
  3020. >
  3021. 折叠
  3022. </div>
  3023. <div
  3024. class="corOpen"
  3025. @click="contract(toolIndex)"
  3026. v-if="isCloseList[toolIndex].isClose == 1"
  3027. >
  3028. 展开
  3029. </div>
  3030. </div>
  3031. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3032. </div>
  3033. <div
  3034. :id="'tool-' + toolIndex"
  3035. :style="{
  3036. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3037. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3038. }"
  3039. class="worksDetailBox"
  3040. v-if="
  3041. worksStudent.length &&
  3042. worksStudent[toolIndex].length > 0
  3043. "
  3044. >
  3045. <div
  3046. class="works"
  3047. style="
  3048. width: 200px;
  3049. height: 140px;
  3050. margin: 10px 10px 10px 0;
  3051. border-radius: 15px;
  3052. box-shadow: 0 0 6px 1px #dfdada;
  3053. "
  3054. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3055. :key="wIndex"
  3056. :class="w.type == 1 ? 'isTypeOne' : ''"
  3057. >
  3058. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3059. <img :src="word" alt />
  3060. <img
  3061. class="deleteImg"
  3062. src="../assets/deleteworks.png"
  3063. v-if="
  3064. w.userid == userid || tType == 1 || tType == 4
  3065. "
  3066. @click.stop="deleteWorks(w.wid)"
  3067. alt
  3068. />
  3069. </div>
  3070. <div class="comment" style="min-width: 200px">
  3071. <div class="worksName">
  3072. <div>{{ w.sName }}</div>
  3073. </div>
  3074. </div>
  3075. </div>
  3076. </div>
  3077. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3078. 未提交
  3079. </div>
  3080. <div
  3081. class="noWorksS"
  3082. v-if="noWorksS && noWorksS[toolIndex].length"
  3083. >
  3084. <div
  3085. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3086. :key="sIndex"
  3087. class="noWorksName"
  3088. >
  3089. {{ s.student }}
  3090. </div>
  3091. </div>
  3092. </div>
  3093. <div
  3094. v-if="
  3095. tType &&
  3096. tType == 2 &&
  3097. !sIsOpen &&
  3098. tool.tool.indexOf(70) != -1
  3099. "
  3100. class="worksBox"
  3101. >
  3102. <div
  3103. class="zuoyeYulan"
  3104. v-if="workStudent[toolIndex].length > 0"
  3105. >
  3106. <span class="worksTitle">作业预览</span>
  3107. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3108. </div>
  3109. <div
  3110. class="worksDetailBox"
  3111. v-if="workStudent[toolIndex].length > 0"
  3112. >
  3113. <div
  3114. class="works"
  3115. style="
  3116. width: 200px;
  3117. height: 140px;
  3118. margin: 10px 10px 10px 0;
  3119. box-shadow: 0 0 6px 1px #dfdada;
  3120. "
  3121. v-for="(w, wIndex) in workStudent[toolIndex]"
  3122. :key="wIndex"
  3123. >
  3124. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3125. <img :src="word" alt />
  3126. <img
  3127. class="deleteImg"
  3128. src="../assets/deleteworks.png"
  3129. v-if="
  3130. w.userid == userid || tType == 1 || tType == 4
  3131. "
  3132. @click.stop="deleteWorks(w.wid)"
  3133. alt
  3134. />
  3135. </div>
  3136. <div class="worksName">
  3137. <div>{{ w.sName }}</div>
  3138. </div>
  3139. </div>
  3140. </div>
  3141. </div>
  3142. <div
  3143. v-if="
  3144. tType &&
  3145. ((tType == 2 && sIsOpen == true) ||
  3146. tType == 1 ||
  3147. tType == 4) &&
  3148. tool.tool.indexOf(32) != -1
  3149. "
  3150. class="worksBox"
  3151. >
  3152. <div
  3153. class="zuoyeYulan"
  3154. v-if="
  3155. worksStudent.length &&
  3156. worksStudent[toolIndex].length > 0
  3157. "
  3158. >
  3159. <div class="worksTop">
  3160. <div>作业预览</div>
  3161. <div
  3162. class="corOpen"
  3163. @click="contract(toolIndex)"
  3164. v-if="
  3165. (isCloseList[toolIndex].isCloseBoolean) &&
  3166. isCloseList[toolIndex].isClose == 0
  3167. "
  3168. >
  3169. 折叠
  3170. </div>
  3171. <div
  3172. class="corOpen"
  3173. @click="contract(toolIndex)"
  3174. v-if="isCloseList[toolIndex].isClose == 1"
  3175. >
  3176. 展开
  3177. </div>
  3178. </div>
  3179. </div>
  3180. <div
  3181. :id="'tool-' + toolIndex"
  3182. class="worksDetailBox"
  3183. :style="{
  3184. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3185. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3186. }"
  3187. v-if="
  3188. worksStudent.length &&
  3189. worksStudent[toolIndex].length > 0
  3190. "
  3191. >
  3192. <div
  3193. class="works"
  3194. style="
  3195. width: 200px;
  3196. height: 140px;
  3197. margin: 10px 10px 10px 0;
  3198. border-radius: 15px;
  3199. box-shadow: 0 0 6px 1px #dfdada;
  3200. "
  3201. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3202. :key="wIndex"
  3203. :class="w.type == 1 ? 'isTypeOne' : ''"
  3204. >
  3205. <div class="workImg">
  3206. <img
  3207. :src="word2"
  3208. @click="downloadFile(w.works)"
  3209. alt
  3210. />
  3211. <div
  3212. class="answerScore"
  3213. v-if="w.score"
  3214. @click.stop="openScore(w)"
  3215. :class="{
  3216. rightW:
  3217. w.userid == userid ||
  3218. tType == 1 ||
  3219. tType == 4 ||
  3220. w.ateacher == userid,
  3221. }"
  3222. >
  3223. {{ JSON.parse(w.score).wScore }}分
  3224. </div>
  3225. <div
  3226. class="answerScore"
  3227. @click.stop="openScore(w)"
  3228. v-else-if="courseDetail.userid == userid"
  3229. :class="{
  3230. rightW:
  3231. w.userid == userid ||
  3232. tType == 1 ||
  3233. tType == 4 ||
  3234. w.ateacher == userid,
  3235. }"
  3236. >
  3237. 评分
  3238. </div>
  3239. <img
  3240. class="deleteImg"
  3241. src="../assets/deleteworks.png"
  3242. v-if="
  3243. w.userid == userid || tType == 1 || tType == 4
  3244. "
  3245. @click.stop="deleteWorks(w.wid)"
  3246. alt
  3247. />
  3248. </div>
  3249. <div class="comment" style="min-width: 200px">
  3250. <div class="worksName">
  3251. <div>{{ w.sName }}</div>
  3252. </div>
  3253. <div class="commentList">
  3254. <div class="commentList">
  3255. <div
  3256. class="commentImg"
  3257. @click="
  3258. isLikes(w.wid, userid, 1, null, w.isLikes)
  3259. "
  3260. >
  3261. <img
  3262. :src="w.isLikes == true ? likes : noLikes"
  3263. alt=""
  3264. />
  3265. </div>
  3266. <div>{{ w.likesCount }}</div>
  3267. </div>
  3268. <div class="commentList" style="margin-right: 15px">
  3269. <div
  3270. class="commentImg"
  3271. @click="commentOther(w, toolIndex, wIndex)"
  3272. >
  3273. <img
  3274. src="../assets/icon/comment/comment.png"
  3275. alt=""
  3276. />
  3277. </div>
  3278. <div>{{ w.commentCount }}</div>
  3279. </div>
  3280. </div>
  3281. </div>
  3282. </div>
  3283. </div>
  3284. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3285. 未提交
  3286. </div>
  3287. <div
  3288. class="noWorksS"
  3289. v-if="noWorksS && noWorksS[toolIndex].length"
  3290. >
  3291. <div
  3292. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3293. :key="sIndex"
  3294. class="noWorksName"
  3295. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3296. >
  3297. {{ s.student }}
  3298. </div>
  3299. </div>
  3300. </div>
  3301. <div
  3302. v-if="
  3303. tType &&
  3304. ((tType == 2 && sIsOpen == true) ||
  3305. tType == 1 ||
  3306. tType == 4) &&
  3307. tool.tool.indexOf(57) != -1
  3308. "
  3309. class="worksBox"
  3310. >
  3311. <div
  3312. class="zuoyeYulan"
  3313. v-if="
  3314. worksStudent.length &&
  3315. worksStudent[toolIndex].length > 0
  3316. "
  3317. >
  3318. <div class="worksTop">
  3319. <div>作业预览</div>
  3320. <div
  3321. class="corOpen"
  3322. @click="contract(toolIndex)"
  3323. v-if="
  3324. (isCloseList[toolIndex].isCloseBoolean) &&
  3325. isCloseList[toolIndex].isClose == 0
  3326. "
  3327. >
  3328. 折叠
  3329. </div>
  3330. <div
  3331. class="corOpen"
  3332. @click="contract(toolIndex)"
  3333. v-if="isCloseList[toolIndex].isClose == 1"
  3334. >
  3335. 展开
  3336. </div>
  3337. </div>
  3338. </div>
  3339. <div
  3340. :id="'tool-' + toolIndex"
  3341. class="worksDetailBox"
  3342. :style="{
  3343. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3344. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3345. }"
  3346. v-if="
  3347. worksStudent.length &&
  3348. worksStudent[toolIndex].length > 0
  3349. "
  3350. >
  3351. <div
  3352. class="works"
  3353. style="
  3354. width: 200px;
  3355. height: 140px;
  3356. margin: 10px 10px 10px 0;
  3357. border-radius: 15px;
  3358. box-shadow: 0 0 6px 1px #dfdada;
  3359. "
  3360. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3361. :key="wIndex"
  3362. :class="w.type == 1 ? 'isTypeOne' : ''"
  3363. >
  3364. <div class="workImg">
  3365. <img
  3366. :src="word2"
  3367. @click="downloadFile(w.works)"
  3368. v-if="w.type == 12"
  3369. alt
  3370. />
  3371. <img
  3372. :src="word2"
  3373. @click="
  3374. openCocoPi(57, toolIndex, w.userid, w.sName)
  3375. "
  3376. v-else-if="w.type == 15"
  3377. alt
  3378. />
  3379. <div
  3380. class="answerScore"
  3381. v-if="w.score"
  3382. @click.stop="openScore(w)"
  3383. :class="{
  3384. rightW:
  3385. w.userid == userid ||
  3386. tType == 1 ||
  3387. tType == 4 ||
  3388. w.ateacher == userid,
  3389. }"
  3390. >
  3391. {{ JSON.parse(w.score).wScore }}分
  3392. </div>
  3393. <div
  3394. class="answerScore"
  3395. @click.stop="openScore(w)"
  3396. v-else-if="courseDetail.userid == userid"
  3397. :class="{
  3398. rightW:
  3399. w.userid == userid ||
  3400. tType == 1 ||
  3401. tType == 4 ||
  3402. w.ateacher == userid,
  3403. }"
  3404. >
  3405. 评分
  3406. </div>
  3407. <img
  3408. class="deleteImg"
  3409. src="../assets/deleteworks.png"
  3410. v-if="
  3411. w.userid == userid || tType == 1 || tType == 4
  3412. "
  3413. @click.stop="deleteWorks(w.wid)"
  3414. alt
  3415. />
  3416. </div>
  3417. <div class="comment" style="min-width: 200px">
  3418. <div class="worksName">
  3419. <div>{{ w.sName }}</div>
  3420. </div>
  3421. <div class="commentList">
  3422. <div class="commentList">
  3423. <div
  3424. class="commentImg"
  3425. @click="
  3426. isLikes(w.wid, userid, 1, null, w.isLikes)
  3427. "
  3428. >
  3429. <img
  3430. :src="w.isLikes == true ? likes : noLikes"
  3431. alt=""
  3432. />
  3433. </div>
  3434. <div>{{ w.likesCount }}</div>
  3435. </div>
  3436. <div class="commentList" style="margin-right: 15px">
  3437. <div
  3438. class="commentImg"
  3439. @click="commentOther(w, toolIndex, wIndex)"
  3440. >
  3441. <img
  3442. src="../assets/icon/comment/comment.png"
  3443. alt=""
  3444. />
  3445. </div>
  3446. <div>{{ w.commentCount }}</div>
  3447. </div>
  3448. </div>
  3449. </div>
  3450. </div>
  3451. </div>
  3452. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3453. 未提交
  3454. </div>
  3455. <div
  3456. class="noWorksS"
  3457. v-if="noWorksS && noWorksS[toolIndex].length"
  3458. >
  3459. <div
  3460. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3461. :key="sIndex"
  3462. class="noWorksName"
  3463. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3464. >
  3465. {{ s.student }}
  3466. </div>
  3467. </div>
  3468. </div>
  3469. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3470. <div
  3471. class="zuoyeYulan"
  3472. v-if="
  3473. worksStudent.length &&
  3474. worksStudent[toolIndex].length > 0
  3475. "
  3476. >
  3477. <span class="worksTitle">作业预览</span>
  3478. <div
  3479. class="corOpen"
  3480. @click="contract(toolIndex)"
  3481. v-if="
  3482. (isCloseList[toolIndex].isCloseBoolean) &&
  3483. isCloseList[toolIndex].isClose == 0
  3484. "
  3485. >
  3486. 折叠
  3487. </div>
  3488. <div
  3489. class="corOpen"
  3490. @click="contract(toolIndex)"
  3491. v-if="isCloseList[toolIndex].isClose == 1"
  3492. >
  3493. 展开
  3494. </div>
  3495. </div>
  3496. <div
  3497. :id="'tool-' + toolIndex"
  3498. :style="{
  3499. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3500. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3501. }"
  3502. class="worksDetailBox"
  3503. v-if="
  3504. worksStudent.length &&
  3505. worksStudent[toolIndex].length > 0
  3506. "
  3507. >
  3508. <div
  3509. class="works"
  3510. style="
  3511. width: 200px;
  3512. height: 140px;
  3513. margin: 10px 10px 10px 0;
  3514. border-radius: 15px;
  3515. box-shadow: 0 0 6px 1px #dfdada;
  3516. "
  3517. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3518. :key="wIndex"
  3519. :class="w.type == 1 ? 'isTypeOne' : ''"
  3520. >
  3521. <div class="workImg" v-if="w.type == 0">
  3522. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3523. <img
  3524. :src="w.works"
  3525. @click="previewImg(w.works)"
  3526. alt
  3527. />
  3528. <div
  3529. class="answerScore"
  3530. v-if="w.score"
  3531. @click.stop="openScore(w)"
  3532. :class="{
  3533. rightW:
  3534. w.userid == userid ||
  3535. tType == 1 ||
  3536. tType == 4 ||
  3537. w.ateacher == userid,
  3538. }"
  3539. >
  3540. {{ JSON.parse(w.score).wScore }}分
  3541. </div>
  3542. <div
  3543. class="answerScore"
  3544. @click.stop="openScore(w)"
  3545. v-else-if="courseDetail.userid == userid"
  3546. :class="{
  3547. rightW:
  3548. w.userid == userid ||
  3549. tType == 1 ||
  3550. tType == 4 ||
  3551. w.ateacher == userid,
  3552. }"
  3553. >
  3554. 评分
  3555. </div>
  3556. <img
  3557. class="deleteImg"
  3558. src="../assets/deleteworks.png"
  3559. v-if="
  3560. w.userid == userid || tType == 1 || tType == 4
  3561. "
  3562. @click.stop="deleteWorks(w.wid)"
  3563. alt
  3564. />
  3565. </div>
  3566. <div
  3567. class="workImg"
  3568. style="cursor: pointer"
  3569. v-if="w.type == 1"
  3570. >
  3571. <img :src="word" @click="openFile(w.works)" alt />
  3572. <!-- @click="openFile(w.works)" -->
  3573. <div
  3574. class="answerScore"
  3575. v-if="w.score"
  3576. @click.stop="openScore(w)"
  3577. :class="{
  3578. rightW:
  3579. w.userid == userid ||
  3580. tType == 1 ||
  3581. tType == 4 ||
  3582. w.ateacher == userid,
  3583. }"
  3584. >
  3585. {{ JSON.parse(w.score).wScore }}分
  3586. </div>
  3587. <div
  3588. class="answerScore"
  3589. @click.stop="openScore(w)"
  3590. v-else-if="courseDetail.userid == userid"
  3591. :class="{
  3592. rightW:
  3593. w.userid == userid ||
  3594. tType == 1 ||
  3595. tType == 4 ||
  3596. w.ateacher == userid,
  3597. }"
  3598. >
  3599. 评分
  3600. </div>
  3601. <img
  3602. class="deleteImg"
  3603. src="../assets/deleteworks.png"
  3604. v-if="
  3605. w.userid == userid || tType == 1 || tType == 4
  3606. "
  3607. @click.stop="deleteWorks(w.wid)"
  3608. alt
  3609. />
  3610. </div>
  3611. <div class="workImg" v-if="w.type == 3">
  3612. <img
  3613. style="cursor: pointer"
  3614. :src="video"
  3615. @click="openVideo(w)"
  3616. alt
  3617. />
  3618. <!-- @click="openVideo(w.works)" -->
  3619. <div
  3620. class="answerScore"
  3621. v-if="w.score"
  3622. @click.stop="openScore(w)"
  3623. :class="{
  3624. rightW:
  3625. w.userid == userid ||
  3626. tType == 1 ||
  3627. tType == 4 ||
  3628. w.ateacher == userid,
  3629. }"
  3630. >
  3631. {{ JSON.parse(w.score).wScore }}分
  3632. </div>
  3633. <div
  3634. class="answerScore"
  3635. @click.stop="openScore(w)"
  3636. v-else-if="courseDetail.userid == userid"
  3637. :class="{
  3638. rightW:
  3639. w.userid == userid ||
  3640. tType == 1 ||
  3641. tType == 4 ||
  3642. w.ateacher == userid,
  3643. }"
  3644. >
  3645. 评分
  3646. </div>
  3647. <img
  3648. class="deleteImg"
  3649. src="../assets/deleteworks.png"
  3650. v-if="
  3651. w.userid == userid || tType == 1 || tType == 4
  3652. "
  3653. @click.stop="deleteWorks(w.wid)"
  3654. alt
  3655. />
  3656. </div>
  3657. <div class="comment" style="min-width: 200px">
  3658. <div class="worksName">
  3659. <div
  3660. style="cursor: pointer"
  3661. @click="
  3662. openSname(w.sName, w.wid, toolIndex, w.userid)
  3663. "
  3664. >
  3665. {{ w.sName }}
  3666. </div>
  3667. </div>
  3668. <div class="commentList">
  3669. <div class="commentList">
  3670. <div
  3671. class="commentImg"
  3672. @click="
  3673. isLikes(w.wid, userid, 1, null, w.isLikes)
  3674. "
  3675. >
  3676. <img
  3677. :src="w.isLikes == true ? likes : noLikes"
  3678. alt=""
  3679. />
  3680. </div>
  3681. <div>{{ w.likesCount }}</div>
  3682. </div>
  3683. <div class="commentList" style="margin-right: 15px">
  3684. <div
  3685. class="commentImg"
  3686. @click="commentOther(w, toolIndex, wIndex)"
  3687. >
  3688. <img
  3689. src="../assets/icon/comment/comment.png"
  3690. alt=""
  3691. />
  3692. </div>
  3693. <div>{{ w.commentCount }}</div>
  3694. </div>
  3695. </div>
  3696. </div>
  3697. </div>
  3698. </div>
  3699. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3700. 未提交
  3701. </div>
  3702. <div
  3703. class="noWorksS"
  3704. v-if="noWorksS && noWorksS[toolIndex].length"
  3705. >
  3706. <div
  3707. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3708. :key="sIndex"
  3709. class="noWorksName"
  3710. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3711. >
  3712. {{ s.student }}
  3713. </div>
  3714. </div>
  3715. </div>
  3716. <div
  3717. v-if="
  3718. tType &&
  3719. ((tType == 2 && sIsOpen == true) ||
  3720. tType == 1 ||
  3721. tType == 4) &&
  3722. tool.tool.indexOf(4) != -1 &&
  3723. (tool.askJson[0].answer ||
  3724. tool.askJson[0].answer === 0) &&
  3725. checkJson[toolIndex].length
  3726. "
  3727. class="xuan_right_box"
  3728. >
  3729. <div
  3730. class="tool_right_box"
  3731. v-for="(item, index) in tool.askJson"
  3732. :key="index"
  3733. >
  3734. <div style="width: calc(100% - 30px);">
  3735. <el-tooltip
  3736. effect="light"
  3737. :content="index + 1 + '、' + item.askstitle"
  3738. placement="top"
  3739. popper-class="text_tooltip"
  3740. >
  3741. <div
  3742. style="
  3743. width: calc(100% - 130px);
  3744. display: block;
  3745. white-space: nowrap;
  3746. overflow: hidden;
  3747. text-overflow: ellipsis;
  3748. word-break: break-word;
  3749. cursor: pointer;
  3750. "
  3751. >
  3752. {{ index + 1 + "、" + item.askstitle }}
  3753. </div>
  3754. </el-tooltip>
  3755. </div>
  3756. <div class="right_box_xuan">
  3757. <span>正确率</span>
  3758. <span>{{
  3759. (checkJson[toolIndex][index].right
  3760. ? checkJson[toolIndex][index].right
  3761. : 0) + "%"
  3762. }}</span>
  3763. </div>
  3764. </div>
  3765. </div>
  3766. <div
  3767. class="xuan_right_box"
  3768. style="background: unset; padding: 0 10px"
  3769. v-if="
  3770. tType &&
  3771. ((tType == 2 && sIsOpen == true) ||
  3772. tType == 1 ||
  3773. tType == 4) &&
  3774. tool.tool.indexOf(4) != -1
  3775. "
  3776. >
  3777. <AskStatic
  3778. v-if="
  3779. worksStudent.length &&
  3780. worksStudent[toolIndex].length > 0
  3781. "
  3782. :askJSON="tool"
  3783. :checkJson="checkJson[toolIndex]"
  3784. ></AskStatic>
  3785. </div>
  3786. <div
  3787. v-if="
  3788. tType &&
  3789. ((tType == 2 && sIsOpen == true) ||
  3790. tType == 1 ||
  3791. tType == 4) &&
  3792. tool.tool.indexOf(4) != -1
  3793. "
  3794. class="worksBox"
  3795. >
  3796. <div
  3797. class="zuoyeYulan"
  3798. v-if="
  3799. worksStudent.length &&
  3800. worksStudent[toolIndex].length > 0
  3801. "
  3802. >
  3803. <div class="worksTop">
  3804. <div>作业预览</div>
  3805. <div
  3806. class="corOpen"
  3807. @click="contract(toolIndex)"
  3808. v-if="
  3809. (isCloseList[toolIndex].isCloseBoolean) &&
  3810. isCloseList[toolIndex].isClose == 0
  3811. "
  3812. >
  3813. 折叠
  3814. </div>
  3815. <div
  3816. class="corOpen"
  3817. @click="contract(toolIndex)"
  3818. v-if="isCloseList[toolIndex].isClose == 1"
  3819. >
  3820. 展开
  3821. </div>
  3822. </div>
  3823. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3824. </div>
  3825. <div>
  3826. <div
  3827. :id="'tool-' + toolIndex"
  3828. :style="{
  3829. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3830. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3831. }"
  3832. class="worksDetailBox"
  3833. v-if="
  3834. worksStudent.length &&
  3835. worksStudent[toolIndex].length > 0
  3836. "
  3837. >
  3838. <div
  3839. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3840. :key="wIndex"
  3841. class="isWorksName2"
  3842. @click="
  3843. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3844. "
  3845. >
  3846. {{ w.sName }}
  3847. <img
  3848. class="deleteImg deleteImg2"
  3849. src="../assets/deleteworks.png"
  3850. v-if="
  3851. w.userid == userid || tType == 1 || tType == 4
  3852. "
  3853. @click.stop="deleteWorks(w.wid)"
  3854. alt
  3855. />
  3856. </div>
  3857. <!-- <div class="works" style="
  3858. width: 200px;
  3859. height: 140px;
  3860. border-radius: 10px;
  3861. box-shadow: 0 0 6px 1px #dfdada;
  3862. overflow: hidden;
  3863. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3864. <div class="workImg">
  3865. <img src="../assets/icon/works/noImg.png" @click="
  3866. openTools(
  3867. 4,
  3868. toolIndex,
  3869. taskCount,
  3870. w.works,
  3871. w.sName
  3872. )
  3873. " alt />
  3874. </div>
  3875. <div class="worksName">
  3876. <div>{{ w.sName }}</div>
  3877. <div>{{ w.time }}</div>
  3878. </div>
  3879. </div> -->
  3880. </div>
  3881. </div>
  3882. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3883. 未提交
  3884. </div>
  3885. <div
  3886. class="noWorksS"
  3887. v-if="noWorksS && noWorksS[toolIndex].length"
  3888. >
  3889. <div
  3890. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3891. :key="sIndex"
  3892. class="noWorksName"
  3893. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3894. >
  3895. {{ s.student }}
  3896. </div>
  3897. </div>
  3898. </div>
  3899. <div
  3900. v-if="
  3901. tType &&
  3902. ((tType == 2 && sIsOpen == true) ||
  3903. tType == 1 ||
  3904. tType == 4) &&
  3905. tool.tool.indexOf(45) != -1 &&
  3906. (tool.testJson.testJson[0].answer ||
  3907. tool.testJson.testJson[0].answer === 0) &&
  3908. checkJson[toolIndex].length
  3909. "
  3910. class="xuan_right_box"
  3911. >
  3912. <div
  3913. class="tool_right_box"
  3914. v-for="(item, index) in tool.testJson.testJson"
  3915. :key="index"
  3916. >
  3917. <div class="right_box_xuan" style="margin-right: 10px">
  3918. <span>正确率</span>
  3919. <span>{{
  3920. (checkJson[toolIndex][index].right
  3921. ? checkJson[toolIndex][index].right
  3922. : 0) + "%"
  3923. }}</span>
  3924. </div>
  3925. <div style="width: calc(100% - 30px);">
  3926. <el-tooltip
  3927. effect="light"
  3928. :content="index + 1 + '、' + item.teststitle"
  3929. placement="top"
  3930. popper-class="text_tooltip"
  3931. >
  3932. <div
  3933. style="
  3934. width: calc(100% - 130px);
  3935. display: block;
  3936. white-space: nowrap;
  3937. overflow: hidden;
  3938. text-overflow: ellipsis;
  3939. word-break: break-word;
  3940. cursor: pointer;
  3941. "
  3942. >
  3943. {{ index + 1 + "、" + item.teststitle }}
  3944. </div>
  3945. </el-tooltip>
  3946. </div>
  3947. </div>
  3948. </div>
  3949. <div
  3950. class="xuan_right_box"
  3951. style="background: unset; padding: 0 10px; width: 91.5%"
  3952. v-if="
  3953. tType &&
  3954. ((tType == 2 && sIsOpen == true) ||
  3955. tType == 1 ||
  3956. tType == 4) &&
  3957. tool.tool.indexOf(45) != -1
  3958. "
  3959. >
  3960. <AskStatic2
  3961. v-if="
  3962. worksStudent.length &&
  3963. worksStudent[toolIndex].length > 0
  3964. "
  3965. :askJSON="tool"
  3966. :checkJson="checkJson[toolIndex]"
  3967. ></AskStatic2>
  3968. </div>
  3969. <div
  3970. v-if="
  3971. tType &&
  3972. ((tType == 2 && sIsOpen == true) ||
  3973. tType == 1 ||
  3974. tType == 4) &&
  3975. tool.tool.indexOf(45) != -1
  3976. "
  3977. class="worksBox"
  3978. >
  3979. <div
  3980. class="zuoyeYulan"
  3981. v-if="
  3982. worksStudent.length &&
  3983. worksStudent[toolIndex].length > 0
  3984. "
  3985. >
  3986. <div class="worksTop">
  3987. <div>作业预览</div>
  3988. <div
  3989. class="corOpen"
  3990. @click="contract(toolIndex)"
  3991. v-if="
  3992. (isCloseList[toolIndex].isCloseBoolean) &&
  3993. isCloseList[toolIndex].isClose == 0
  3994. "
  3995. >
  3996. 折叠
  3997. </div>
  3998. <div
  3999. class="corOpen"
  4000. @click="contract(toolIndex)"
  4001. v-if="isCloseList[toolIndex].isClose == 1"
  4002. >
  4003. 展开
  4004. </div>
  4005. </div>
  4006. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4007. </div>
  4008. <div>
  4009. <div
  4010. :id="'tool-' + toolIndex"
  4011. :style="{
  4012. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4013. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4014. }"
  4015. class="worksDetailBox"
  4016. v-if="
  4017. worksStudent.length &&
  4018. worksStudent[toolIndex].length > 0
  4019. "
  4020. >
  4021. <div
  4022. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4023. :key="wIndex"
  4024. class="isWorksName2"
  4025. @click="
  4026. openTools(
  4027. 45,
  4028. toolIndex,
  4029. taskCount,
  4030. w.works,
  4031. w.sName
  4032. )
  4033. "
  4034. >
  4035. {{ w.sName }}
  4036. <img
  4037. class="deleteImg deleteImg2"
  4038. src="../assets/deleteworks.png"
  4039. v-if="
  4040. w.userid == userid || tType == 1 || tType == 4
  4041. "
  4042. @click.stop="deleteWorks(w.wid)"
  4043. alt
  4044. />
  4045. </div>
  4046. </div>
  4047. </div>
  4048. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4049. 未提交
  4050. </div>
  4051. <div
  4052. class="noWorksS"
  4053. v-if="noWorksS && noWorksS[toolIndex].length"
  4054. >
  4055. <div
  4056. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4057. :key="sIndex"
  4058. class="noWorksName"
  4059. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4060. >
  4061. {{ s.student }}
  4062. </div>
  4063. </div>
  4064. </div>
  4065. <div
  4066. v-if="
  4067. tType &&
  4068. ((tType == 2 && sIsOpen == true) ||
  4069. tType == 1 ||
  4070. tType == 4) &&
  4071. tool.tool.indexOf(69) != -1
  4072. "
  4073. class="worksBox"
  4074. >
  4075. <div
  4076. class="zuoyeYulan"
  4077. v-if="
  4078. worksStudent.length &&
  4079. worksStudent[toolIndex].length > 0
  4080. "
  4081. >
  4082. <div class="worksTop">
  4083. <div>作业预览</div>
  4084. <div
  4085. class="corOpen"
  4086. @click="contract(toolIndex)"
  4087. v-if="
  4088. (isCloseList[toolIndex].isCloseBoolean) &&
  4089. isCloseList[toolIndex].isClose == 0
  4090. "
  4091. >
  4092. 折叠
  4093. </div>
  4094. <div
  4095. class="corOpen"
  4096. @click="contract(toolIndex)"
  4097. v-if="isCloseList[toolIndex].isClose == 1"
  4098. >
  4099. 展开
  4100. </div>
  4101. </div>
  4102. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4103. </div>
  4104. <div>
  4105. <div
  4106. :id="'tool-' + toolIndex"
  4107. :style="{
  4108. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4109. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4110. }"
  4111. class="worksDetailBox"
  4112. v-if="
  4113. worksStudent.length &&
  4114. worksStudent[toolIndex].length > 0
  4115. "
  4116. >
  4117. <div
  4118. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4119. :key="wIndex"
  4120. class="isWorksName2"
  4121. style="width: 160px;height: 65px;line-height: 65px;"
  4122. @click="
  4123. openTools(
  4124. 69,
  4125. toolIndex,
  4126. taskCount,
  4127. w.works,
  4128. w.sName,
  4129. w.wid
  4130. )
  4131. "
  4132. >
  4133. {{ w.sName }}
  4134. <img
  4135. class="deleteImg1"
  4136. src="../assets/evaEnglish.png"
  4137. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4138. alt
  4139. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4140. />
  4141. <img
  4142. class="deleteImg deleteImg2"
  4143. src="../assets/deleteworks.png"
  4144. v-if="
  4145. w.userid == userid || tType == 1 || tType == 4
  4146. "
  4147. @click.stop="deleteWorks(w.wid)"
  4148. alt
  4149. />
  4150. </div>
  4151. </div>
  4152. </div>
  4153. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4154. 未提交
  4155. </div>
  4156. <div
  4157. class="noWorksS"
  4158. v-if="noWorksS && noWorksS[toolIndex].length"
  4159. >
  4160. <div
  4161. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4162. :key="sIndex"
  4163. class="noWorksName"
  4164. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4165. >
  4166. {{ s.student }}
  4167. </div>
  4168. </div>
  4169. </div>
  4170. <div
  4171. v-if="
  4172. tType &&
  4173. ((tType == 2 && sIsOpen == true) ||
  4174. tType == 1 ||
  4175. tType == 4) &&
  4176. tool.tool.indexOf(15) != -1
  4177. "
  4178. class="worksBox"
  4179. >
  4180. <div
  4181. class="zuoyeYulan"
  4182. v-if="
  4183. (worksStudent.length &&
  4184. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4185. "
  4186. >
  4187. <div class="worksTop">
  4188. <div>作业预览</div>
  4189. <div
  4190. class="corOpen"
  4191. @click="contract(toolIndex)"
  4192. v-if="
  4193. (isCloseList[toolIndex].isCloseBoolean) &&
  4194. isCloseList[toolIndex].isClose == 0
  4195. "
  4196. >
  4197. 折叠
  4198. </div>
  4199. <div
  4200. class="corOpen"
  4201. @click="contract(toolIndex)"
  4202. v-if="isCloseList[toolIndex].isClose == 1"
  4203. >
  4204. 展开
  4205. </div>
  4206. </div>
  4207. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4208. </div>
  4209. <div
  4210. class="group_workBox"
  4211. v-for="(g, gindex) in courseGroup.group"
  4212. :key="gindex"
  4213. >
  4214. <div class="group_box">
  4215. <div class="group_title">
  4216. <el-tooltip
  4217. class="item"
  4218. effect="light"
  4219. :content="g.name"
  4220. placement="top"
  4221. >
  4222. <div class="group_name">{{ g.name }}</div>
  4223. </el-tooltip>
  4224. </div>
  4225. <div
  4226. class="group_work"
  4227. v-if="
  4228. g.works &&
  4229. g.works.length &&
  4230. g.works[toolIndex].length
  4231. "
  4232. >
  4233. <div
  4234. class="works"
  4235. v-for="(w, wIndex) in g.works[toolIndex]"
  4236. :key="wIndex"
  4237. >
  4238. <div
  4239. class="workImg"
  4240. style="
  4241. border-radius: 15px;
  4242. box-shadow: 0px 0px 5px 5px #eee;
  4243. "
  4244. >
  4245. <div
  4246. class="answerBg"
  4247. style="border-radius: 15px 15px 0 0"
  4248. @click="
  4249. commentOther(w, toolIndex, wIndex, null, g.id)
  4250. "
  4251. >
  4252. <div class="answerContent">
  4253. {{ JSON.parse(w.works)[0].answer }}
  4254. </div>
  4255. <div
  4256. class="answerScore"
  4257. v-if="w.score"
  4258. @click.stop="openScore(w)"
  4259. :class="{
  4260. rightW:
  4261. w.userid == userid ||
  4262. tType == 1 ||
  4263. tType == 4,
  4264. }"
  4265. >
  4266. {{ JSON.parse(w.score).wScore }}分
  4267. </div>
  4268. <div
  4269. class="answerScore"
  4270. @click.stop="openScore(w)"
  4271. v-else-if="courseDetail.userid == userid"
  4272. :class="{
  4273. rightW:
  4274. w.userid == userid ||
  4275. tType == 1 ||
  4276. tType == 4,
  4277. }"
  4278. >
  4279. 评分
  4280. </div>
  4281. <img
  4282. class="deleteImg"
  4283. src="../assets/deleteworks.png"
  4284. v-if="
  4285. w.userid == userid ||
  4286. tType == 1 ||
  4287. tType == 4
  4288. "
  4289. @click.stop="deleteWorks(w.wid)"
  4290. alt
  4291. />
  4292. </div>
  4293. <div class="comment">
  4294. <div class="worksName">
  4295. <div>{{ w.sName }}</div>
  4296. </div>
  4297. <div class="commentList">
  4298. <div
  4299. class="commentImg"
  4300. @click="
  4301. isLikes(w.wid, userid, 1, null, w.isLikes)
  4302. "
  4303. >
  4304. <img
  4305. :src="w.isLikes == true ? likes : noLikes"
  4306. alt=""
  4307. />
  4308. </div>
  4309. <div>{{ w.likesCount }}</div>
  4310. </div>
  4311. <div
  4312. class="commentList"
  4313. style="margin-right: 15px"
  4314. >
  4315. <div
  4316. class="commentImg"
  4317. @click="
  4318. commentOther(
  4319. w,
  4320. toolIndex,
  4321. wIndex,
  4322. null,
  4323. g.id
  4324. )
  4325. "
  4326. >
  4327. <img
  4328. src="../assets/icon/comment/comment.png"
  4329. alt=""
  4330. />
  4331. </div>
  4332. <div>{{ w.commentCount }}</div>
  4333. </div>
  4334. </div>
  4335. </div>
  4336. </div>
  4337. </div>
  4338. <div class="group_work" v-else>暂无提交作业</div>
  4339. </div>
  4340. </div>
  4341. <div
  4342. :id="'tool-' + toolIndex"
  4343. :style="{
  4344. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4345. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4346. }"
  4347. class="worksDetailBox"
  4348. v-if="
  4349. worksStudent.length &&
  4350. worksStudent[toolIndex].length > 0
  4351. "
  4352. >
  4353. <div
  4354. class="works"
  4355. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4356. :key="wIndex"
  4357. >
  4358. <div
  4359. class="workImg"
  4360. style="
  4361. border-radius: 15px;
  4362. box-shadow: 0px 0px 5px 5px #eee;
  4363. "
  4364. >
  4365. <!-- <img
  4366. src="../assets/icon/works/noImg.png"
  4367. @click="openTools(15, toolIndex, taskCount, w.works)"
  4368. alt=""
  4369. />-->
  4370. <div
  4371. class="answerBg"
  4372. style="border-radius: 15px 15px 0 0"
  4373. @click="commentOther(w, toolIndex, wIndex)"
  4374. >
  4375. <!-- <div>{{ w.sName }}</div> -->
  4376. <div class="answerContent">
  4377. {{ JSON.parse(w.works)[0].answer }}
  4378. </div>
  4379. <div
  4380. class="answerScore"
  4381. v-if="w.score"
  4382. @click.stop="openScore(w)"
  4383. :class="{
  4384. rightW:
  4385. w.userid == userid ||
  4386. tType == 1 ||
  4387. tType == 4,
  4388. }"
  4389. >
  4390. {{ JSON.parse(w.score).wScore }}分
  4391. </div>
  4392. <div
  4393. class="answerScore"
  4394. @click.stop="openScore(w)"
  4395. v-else-if="courseDetail.userid == userid"
  4396. :class="{
  4397. rightW:
  4398. w.userid == userid ||
  4399. tType == 1 ||
  4400. tType == 4,
  4401. }"
  4402. >
  4403. 评分
  4404. </div>
  4405. <img
  4406. class="deleteImg"
  4407. src="../assets/deleteworks.png"
  4408. v-if="
  4409. w.userid == userid || tType == 1 || tType == 4
  4410. "
  4411. @click.stop="deleteWorks(w.wid)"
  4412. alt
  4413. />
  4414. </div>
  4415. <div class="comment">
  4416. <div class="worksName">
  4417. <div>{{ w.sName }}</div>
  4418. </div>
  4419. <div class="commentList">
  4420. <div
  4421. class="commentImg"
  4422. @click="
  4423. isLikes(w.wid, userid, 1, null, w.isLikes)
  4424. "
  4425. >
  4426. <img
  4427. :src="w.isLikes == true ? likes : noLikes"
  4428. alt=""
  4429. />
  4430. </div>
  4431. <div>{{ w.likesCount }}</div>
  4432. </div>
  4433. <div class="commentList" style="margin-right: 15px">
  4434. <div
  4435. class="commentImg"
  4436. @click="commentOther(w, toolIndex, wIndex)"
  4437. >
  4438. <img
  4439. src="../assets/icon/comment/comment.png"
  4440. alt=""
  4441. />
  4442. </div>
  4443. <div>{{ w.commentCount }}</div>
  4444. </div>
  4445. </div>
  4446. </div>
  4447. </div>
  4448. </div>
  4449. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4450. 未提交
  4451. </div>
  4452. <div
  4453. class="noWorksS"
  4454. v-if="noWorksS && noWorksS[toolIndex].length"
  4455. >
  4456. <div
  4457. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4458. :key="sIndex"
  4459. class="noWorksName"
  4460. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4461. >
  4462. {{ s.student }}
  4463. </div>
  4464. </div>
  4465. </div>
  4466. <div
  4467. v-if="
  4468. tType &&
  4469. ((tType == 2 && sIsOpen == true) ||
  4470. tType == 1 ||
  4471. tType == 4) &&
  4472. tool.tool.indexOf(1) != -1
  4473. "
  4474. class="worksBox"
  4475. >
  4476. <div
  4477. class="zuoyeYulan"
  4478. v-if="
  4479. (worksStudent.length &&
  4480. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4481. "
  4482. >
  4483. <div class="worksTop">
  4484. <div>作业预览</div>
  4485. <div
  4486. class="corOpen"
  4487. @click="contract(toolIndex)"
  4488. v-if="
  4489. (isCloseList[toolIndex].isCloseBoolean) &&
  4490. isCloseList[toolIndex].isClose == 0
  4491. "
  4492. >
  4493. 折叠
  4494. </div>
  4495. <div
  4496. class="corOpen"
  4497. @click="contract(toolIndex)"
  4498. v-if="isCloseList[toolIndex].isClose == 1"
  4499. >
  4500. 展开
  4501. </div>
  4502. </div>
  4503. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4504. </div>
  4505. <div
  4506. class="group_workBox"
  4507. v-for="(g, gindex) in courseGroup.group"
  4508. :key="gindex"
  4509. >
  4510. <div class="group_box">
  4511. <div class="group_title">
  4512. <el-tooltip
  4513. class="item"
  4514. effect="light"
  4515. :content="g.name"
  4516. placement="top"
  4517. >
  4518. <div class="group_name">{{ g.name }}</div>
  4519. </el-tooltip>
  4520. </div>
  4521. <div
  4522. class="group_work"
  4523. v-if="
  4524. g.works &&
  4525. g.works.length &&
  4526. g.works[toolIndex].length
  4527. "
  4528. >
  4529. <div
  4530. class="works"
  4531. style="
  4532. width: 200px;
  4533. height: 140px;
  4534. margin: 10px 10px 10px 0;
  4535. border-radius: 15px;
  4536. box-shadow: 0 0 6px 1px #dfdada;
  4537. "
  4538. v-for="(w, wIndex) in g.works[toolIndex]"
  4539. :key="wIndex"
  4540. :class="w.type == 1 ? 'isTypeOne' : ''"
  4541. >
  4542. <div class="workImg">
  4543. <img
  4544. :src="w.works"
  4545. @click="previewImg(w.works)"
  4546. alt
  4547. />
  4548. <div
  4549. class="answerScore"
  4550. v-if="w.score"
  4551. @click.stop="openScore(w)"
  4552. :class="{
  4553. rightW:
  4554. w.userid == userid ||
  4555. tType == 1 ||
  4556. tType == 4,
  4557. }"
  4558. >
  4559. {{ JSON.parse(w.score).wScore }}分
  4560. </div>
  4561. <div
  4562. class="answerScore"
  4563. @click.stop="openScore(w)"
  4564. v-else-if="courseDetail.userid == userid"
  4565. :class="{
  4566. rightW:
  4567. w.userid == userid ||
  4568. tType == 1 ||
  4569. tType == 4,
  4570. }"
  4571. >
  4572. 评分
  4573. </div>
  4574. <img
  4575. class="deleteImg"
  4576. src="../assets/deleteworks.png"
  4577. v-if="
  4578. w.userid == userid || tType == 1 || tType == 4
  4579. "
  4580. @click.stop="deleteWorks(w.wid)"
  4581. alt
  4582. />
  4583. </div>
  4584. <div class="comment" style="min-width: 200px">
  4585. <div class="worksName">
  4586. <div>{{ w.sName }}</div>
  4587. </div>
  4588. <div class="commentList">
  4589. <div class="commentList">
  4590. <div
  4591. class="commentImg"
  4592. @click="
  4593. isLikes(w.wid, userid, 1, null, w.isLikes)
  4594. "
  4595. >
  4596. <img
  4597. :src="w.isLikes == true ? likes : noLikes"
  4598. alt=""
  4599. />
  4600. </div>
  4601. <div>{{ w.likesCount }}</div>
  4602. </div>
  4603. <div
  4604. class="commentList"
  4605. style="margin-right: 15px"
  4606. >
  4607. <div
  4608. class="commentImg"
  4609. @click="
  4610. commentOther(
  4611. w,
  4612. toolIndex,
  4613. wIndex,
  4614. null,
  4615. g.id
  4616. )
  4617. "
  4618. >
  4619. <img
  4620. src="../assets/icon/comment/comment.png"
  4621. alt=""
  4622. />
  4623. </div>
  4624. <div>{{ w.commentCount }}</div>
  4625. </div>
  4626. </div>
  4627. </div>
  4628. </div>
  4629. </div>
  4630. <div class="group_work" v-else>暂无提交作业</div>
  4631. </div>
  4632. </div>
  4633. <div
  4634. :id="'tool-' + toolIndex"
  4635. :style="{
  4636. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4637. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4638. }"
  4639. class="worksDetailBox"
  4640. v-if="
  4641. worksStudent.length &&
  4642. worksStudent[toolIndex].length > 0
  4643. "
  4644. >
  4645. <div
  4646. class="works"
  4647. style="
  4648. width: 200px;
  4649. height: 140px;
  4650. margin: 10px 10px 10px 0;
  4651. border-radius: 15px;
  4652. box-shadow: 0 0 6px 1px #dfdada;
  4653. "
  4654. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4655. :key="wIndex"
  4656. >
  4657. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4658. <div class="workImg">
  4659. <img
  4660. :src="w.works"
  4661. @click="previewImg(w.works)"
  4662. alt
  4663. />
  4664. <div
  4665. class="answerScore"
  4666. v-if="w.score"
  4667. @click.stop="openScore(w)"
  4668. :class="{
  4669. rightW:
  4670. w.userid == userid || tType == 1 || tType == 4,
  4671. }"
  4672. >
  4673. {{ JSON.parse(w.score).wScore }}分
  4674. </div>
  4675. <div
  4676. class="answerScore"
  4677. @click.stop="openScore(w)"
  4678. v-else-if="courseDetail.userid == userid"
  4679. :class="{
  4680. rightW:
  4681. w.userid == userid || tType == 1 || tType == 4,
  4682. }"
  4683. >
  4684. 评分
  4685. </div>
  4686. <img
  4687. class="deleteImg"
  4688. src="../assets/deleteworks.png"
  4689. v-if="
  4690. w.userid == userid || tType == 1 || tType == 4
  4691. "
  4692. @click.stop="deleteWorks(w.wid)"
  4693. alt
  4694. />
  4695. </div>
  4696. <div class="comment" style="min-width: 200px">
  4697. <div class="worksName">
  4698. <div>{{ w.sName }}</div>
  4699. </div>
  4700. <div class="commentList">
  4701. <div class="commentList">
  4702. <div
  4703. class="commentImg"
  4704. @click="
  4705. isLikes(w.wid, userid, 1, null, w.isLikes)
  4706. "
  4707. >
  4708. <img
  4709. :src="w.isLikes == true ? likes : noLikes"
  4710. alt=""
  4711. />
  4712. </div>
  4713. <div>{{ w.likesCount }}</div>
  4714. </div>
  4715. <div class="commentList" style="margin-right: 15px">
  4716. <div
  4717. class="commentImg"
  4718. @click="commentOther(w, toolIndex, wIndex)"
  4719. >
  4720. <img
  4721. src="../assets/icon/comment/comment.png"
  4722. alt=""
  4723. />
  4724. </div>
  4725. <div>{{ w.commentCount }}</div>
  4726. </div>
  4727. </div>
  4728. </div>
  4729. </div>
  4730. </div>
  4731. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4732. 未提交
  4733. </div>
  4734. <div
  4735. class="noWorksS"
  4736. v-if="noWorksS && noWorksS[toolIndex].length"
  4737. >
  4738. <div
  4739. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4740. :key="sIndex"
  4741. class="noWorksName"
  4742. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4743. >
  4744. {{ s.student }}
  4745. </div>
  4746. </div>
  4747. </div>
  4748. <div
  4749. v-if="
  4750. tType &&
  4751. ((tType == 2 && sIsOpen == true) ||
  4752. tType == 1 ||
  4753. tType == 4) &&
  4754. tool.tool.indexOf(3) != -1
  4755. "
  4756. class="worksBox"
  4757. >
  4758. <div
  4759. class="zuoyeYulan"
  4760. v-if="
  4761. (worksStudent.length &&
  4762. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4763. "
  4764. >
  4765. <div class="worksTop">
  4766. <div>作业预览</div>
  4767. <div
  4768. class="corOpen"
  4769. @click="contract(toolIndex)"
  4770. v-if="
  4771. (isCloseList[toolIndex].isCloseBoolean) &&
  4772. isCloseList[toolIndex].isClose == 0
  4773. "
  4774. >
  4775. 折叠
  4776. </div>
  4777. <div
  4778. class="corOpen"
  4779. @click="contract(toolIndex)"
  4780. v-if="isCloseList[toolIndex].isClose == 1"
  4781. >
  4782. 展开
  4783. </div>
  4784. </div>
  4785. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4786. </div>
  4787. <div
  4788. class="group_workBox"
  4789. v-for="(g, gindex) in courseGroup.group"
  4790. :key="gindex"
  4791. >
  4792. <div class="group_box">
  4793. <div class="group_title">
  4794. <el-tooltip
  4795. class="item"
  4796. effect="light"
  4797. :content="g.name"
  4798. placement="top"
  4799. >
  4800. <div class="group_name">{{ g.name }}</div>
  4801. </el-tooltip>
  4802. </div>
  4803. <div
  4804. class="group_work"
  4805. v-if="
  4806. g.works &&
  4807. g.works.length &&
  4808. g.works[toolIndex].length
  4809. "
  4810. >
  4811. <div
  4812. class="works"
  4813. style="
  4814. width: 200px;
  4815. height: 140px;
  4816. margin: 10px 10px 10px 0;
  4817. border-radius: 15px;
  4818. box-shadow: 0 0 6px 1px #dfdada;
  4819. "
  4820. v-for="(w, wIndex) in g.works[toolIndex]"
  4821. :key="wIndex"
  4822. :class="w.type == 1 ? 'isTypeOne' : ''"
  4823. >
  4824. <div class="workImg">
  4825. <img
  4826. :src="w.works"
  4827. @click="previewImg(w.works)"
  4828. alt
  4829. />
  4830. <div
  4831. class="answerScore"
  4832. v-if="w.score"
  4833. @click.stop="openScore(w)"
  4834. :class="{
  4835. rightW:
  4836. w.userid == userid ||
  4837. tType == 1 ||
  4838. tType == 4,
  4839. }"
  4840. >
  4841. {{ JSON.parse(w.score).wScore }}分
  4842. </div>
  4843. <div
  4844. class="answerScore"
  4845. @click.stop="openScore(w)"
  4846. v-else-if="courseDetail.userid == userid"
  4847. :class="{
  4848. rightW:
  4849. w.userid == userid ||
  4850. tType == 1 ||
  4851. tType == 4,
  4852. }"
  4853. >
  4854. 评分
  4855. </div>
  4856. <img
  4857. class="deleteImg"
  4858. src="../assets/deleteworks.png"
  4859. v-if="
  4860. w.userid == userid || tType == 1 || tType == 4
  4861. "
  4862. @click.stop="deleteWorks(w.wid)"
  4863. alt
  4864. />
  4865. </div>
  4866. <div class="comment" style="min-width: 200px">
  4867. <div class="worksName">
  4868. <div>{{ w.sName }}</div>
  4869. </div>
  4870. <div class="commentList">
  4871. <div class="commentList">
  4872. <div
  4873. class="commentImg"
  4874. @click="
  4875. isLikes(w.wid, userid, 1, null, w.isLikes)
  4876. "
  4877. >
  4878. <img
  4879. :src="w.isLikes == true ? likes : noLikes"
  4880. alt=""
  4881. />
  4882. </div>
  4883. <div>{{ w.likesCount }}</div>
  4884. </div>
  4885. <div
  4886. class="commentList"
  4887. style="margin-right: 15px"
  4888. >
  4889. <div
  4890. class="commentImg"
  4891. @click="
  4892. commentOther(
  4893. w,
  4894. toolIndex,
  4895. wIndex,
  4896. null,
  4897. g.id
  4898. )
  4899. "
  4900. >
  4901. <img
  4902. src="../assets/icon/comment/comment.png"
  4903. alt=""
  4904. />
  4905. </div>
  4906. <div>{{ w.commentCount }}</div>
  4907. </div>
  4908. </div>
  4909. </div>
  4910. </div>
  4911. </div>
  4912. <div class="group_work" v-else>暂无提交作业</div>
  4913. </div>
  4914. </div>
  4915. <div
  4916. :id="'tool-' + toolIndex"
  4917. :style="{
  4918. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4919. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4920. }"
  4921. class="worksDetailBox"
  4922. v-if="
  4923. worksStudent.length &&
  4924. worksStudent[toolIndex].length > 0
  4925. "
  4926. >
  4927. <div
  4928. class="works"
  4929. style="
  4930. width: 200px;
  4931. height: 140px;
  4932. margin: 10px 10px 10px 0;
  4933. border-radius: 15px;
  4934. box-shadow: 0 0 6px 1px #dfdada;
  4935. "
  4936. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4937. :key="wIndex"
  4938. >
  4939. <!-- @click="previewImg(w.works)" -->
  4940. <div class="workImg">
  4941. <img
  4942. :src="w.works"
  4943. @click="previewImg(w.works)"
  4944. alt
  4945. />
  4946. <div
  4947. class="answerScore"
  4948. v-if="w.score"
  4949. @click.stop="openScore(w)"
  4950. :class="{
  4951. rightW:
  4952. w.userid == userid || tType == 1 || tType == 4,
  4953. }"
  4954. >
  4955. {{ JSON.parse(w.score).wScore }}分
  4956. </div>
  4957. <div
  4958. class="answerScore"
  4959. @click.stop="openScore(w)"
  4960. v-else-if="courseDetail.userid == userid"
  4961. :class="{
  4962. rightW:
  4963. w.userid == userid || tType == 1 || tType == 4,
  4964. }"
  4965. >
  4966. 评分
  4967. </div>
  4968. <img
  4969. class="deleteImg"
  4970. src="../assets/deleteworks.png"
  4971. v-if="
  4972. w.userid == userid || tType == 1 || tType == 4
  4973. "
  4974. @click.stop="deleteWorks(w.wid)"
  4975. alt
  4976. />
  4977. </div>
  4978. <div class="comment" style="min-width: 200px">
  4979. <div class="worksName">
  4980. <div>{{ w.sName }}</div>
  4981. </div>
  4982. <div class="commentList">
  4983. <div class="commentList">
  4984. <div
  4985. class="commentImg"
  4986. @click="
  4987. isLikes(w.wid, userid, 1, null, w.isLikes)
  4988. "
  4989. >
  4990. <img
  4991. :src="w.isLikes == true ? likes : noLikes"
  4992. alt=""
  4993. />
  4994. </div>
  4995. <div>{{ w.likesCount }}</div>
  4996. </div>
  4997. <div class="commentList" style="margin-right: 15px">
  4998. <div
  4999. class="commentImg"
  5000. @click="commentOther(w, toolIndex, wIndex)"
  5001. >
  5002. <img
  5003. src="../assets/icon/comment/comment.png"
  5004. alt=""
  5005. />
  5006. </div>
  5007. <div>{{ w.commentCount }}</div>
  5008. </div>
  5009. </div>
  5010. </div>
  5011. </div>
  5012. </div>
  5013. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5014. 未提交
  5015. </div>
  5016. <div
  5017. class="noWorksS"
  5018. v-if="noWorksS && noWorksS[toolIndex].length"
  5019. >
  5020. <div
  5021. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5022. :key="sIndex"
  5023. class="noWorksName"
  5024. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5025. >
  5026. {{ s.student }}
  5027. </div>
  5028. </div>
  5029. </div>
  5030. <div
  5031. v-if="
  5032. tType &&
  5033. ((tType == 2 && sIsOpen == true) ||
  5034. tType == 1 ||
  5035. tType == 4) &&
  5036. tool.tool.indexOf(6) != -1
  5037. "
  5038. class="worksBox"
  5039. >
  5040. <div
  5041. class="zuoyeYulan"
  5042. v-if="
  5043. (worksStudent.length &&
  5044. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5045. "
  5046. >
  5047. <div class="worksTop">
  5048. <div>作业预览</div>
  5049. <div
  5050. class="corOpen"
  5051. @click="contract(toolIndex)"
  5052. v-if="
  5053. (isCloseList[toolIndex].isCloseBoolean) &&
  5054. isCloseList[toolIndex].isClose == 0
  5055. "
  5056. >
  5057. 折叠
  5058. </div>
  5059. <div
  5060. class="corOpen"
  5061. @click="contract(toolIndex)"
  5062. v-if="isCloseList[toolIndex].isClose == 1"
  5063. >
  5064. 展开
  5065. </div>
  5066. </div>
  5067. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5068. </div>
  5069. <div
  5070. class="group_workBox"
  5071. v-for="(g, gindex) in courseGroup.group"
  5072. :key="gindex"
  5073. >
  5074. <div class="group_box">
  5075. <div class="group_title">
  5076. <el-tooltip
  5077. class="item"
  5078. effect="light"
  5079. :content="g.name"
  5080. placement="top"
  5081. >
  5082. <div class="group_name">{{ g.name }}</div>
  5083. </el-tooltip>
  5084. </div>
  5085. <div
  5086. class="group_work"
  5087. v-if="
  5088. g.works &&
  5089. g.works.length &&
  5090. g.works[toolIndex].length
  5091. "
  5092. >
  5093. <div
  5094. class="works"
  5095. style="
  5096. width: 200px;
  5097. height: 140px;
  5098. margin: 10px 10px 10px 0;
  5099. border-radius: 15px;
  5100. box-shadow: 0 0 6px 1px #dfdada;
  5101. "
  5102. v-for="(w, wIndex) in g.works[toolIndex]"
  5103. :key="wIndex"
  5104. :class="w.type == 1 ? 'isTypeOne' : ''"
  5105. >
  5106. <div class="workImg">
  5107. <img
  5108. :src="w.works"
  5109. @click="previewImg(w.works)"
  5110. alt
  5111. />
  5112. <div
  5113. class="answerScore"
  5114. v-if="w.score"
  5115. @click.stop="openScore(w)"
  5116. :class="{
  5117. rightW:
  5118. w.userid == userid ||
  5119. tType == 1 ||
  5120. tType == 4,
  5121. }"
  5122. >
  5123. {{ JSON.parse(w.score).wScore }}分
  5124. </div>
  5125. <div
  5126. class="answerScore"
  5127. @click.stop="openScore(w)"
  5128. v-else-if="courseDetail.userid == userid"
  5129. :class="{
  5130. rightW:
  5131. w.userid == userid ||
  5132. tType == 1 ||
  5133. tType == 4,
  5134. }"
  5135. >
  5136. 评分
  5137. </div>
  5138. <img
  5139. class="deleteImg"
  5140. src="../assets/deleteworks.png"
  5141. v-if="
  5142. w.userid == userid || tType == 1 || tType == 4
  5143. "
  5144. @click.stop="deleteWorks(w.wid)"
  5145. alt
  5146. />
  5147. </div>
  5148. <div class="comment" style="min-width: 200px">
  5149. <div class="worksName">
  5150. <div>{{ w.sName }}</div>
  5151. </div>
  5152. <div class="commentList">
  5153. <div class="commentList">
  5154. <div
  5155. class="commentImg"
  5156. @click="
  5157. isLikes(w.wid, userid, 1, null, w.isLikes)
  5158. "
  5159. >
  5160. <img
  5161. :src="w.isLikes == true ? likes : noLikes"
  5162. alt=""
  5163. />
  5164. </div>
  5165. <div>{{ w.likesCount }}</div>
  5166. </div>
  5167. <div
  5168. class="commentList"
  5169. style="margin-right: 15px"
  5170. >
  5171. <div
  5172. class="commentImg"
  5173. @click="
  5174. commentOther(
  5175. w,
  5176. toolIndex,
  5177. wIndex,
  5178. null,
  5179. g.id
  5180. )
  5181. "
  5182. >
  5183. <img
  5184. src="../assets/icon/comment/comment.png"
  5185. alt=""
  5186. />
  5187. </div>
  5188. <div>{{ w.commentCount }}</div>
  5189. </div>
  5190. </div>
  5191. </div>
  5192. </div>
  5193. </div>
  5194. <div class="group_work" v-else>暂无提交作业</div>
  5195. </div>
  5196. </div>
  5197. <div
  5198. :id="'tool-' + toolIndex"
  5199. :style="{
  5200. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5201. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5202. }"
  5203. class="worksDetailBox"
  5204. v-if="
  5205. worksStudent.length &&
  5206. worksStudent[toolIndex].length > 0
  5207. "
  5208. >
  5209. <div
  5210. class="works"
  5211. style="
  5212. width: 200px;
  5213. height: 140px;
  5214. margin: 10px 10px 10px 0;
  5215. border-radius: 15px;
  5216. box-shadow: 0 0 6px 1px #dfdada;
  5217. "
  5218. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5219. :key="wIndex"
  5220. >
  5221. <!-- @click="previewImg(w.works)" -->
  5222. <div class="workImg">
  5223. <img
  5224. :src="w.works"
  5225. @click="previewImg(w.works)"
  5226. alt
  5227. />
  5228. <div
  5229. class="answerScore"
  5230. v-if="w.score"
  5231. @click.stop="openScore(w)"
  5232. :class="{
  5233. rightW:
  5234. w.userid == userid || tType == 1 || tType == 4,
  5235. }"
  5236. >
  5237. {{ JSON.parse(w.score).wScore }}分
  5238. </div>
  5239. <div
  5240. class="answerScore"
  5241. @click.stop="openScore(w)"
  5242. v-else-if="courseDetail.userid == userid"
  5243. :class="{
  5244. rightW:
  5245. w.userid == userid || tType == 1 || tType == 4,
  5246. }"
  5247. >
  5248. 评分
  5249. </div>
  5250. <img
  5251. class="deleteImg"
  5252. src="../assets/deleteworks.png"
  5253. v-if="
  5254. w.userid == userid || tType == 1 || tType == 4
  5255. "
  5256. @click.stop="deleteWorks(w.wid)"
  5257. alt
  5258. />
  5259. </div>
  5260. <div class="comment" style="min-width: 200px">
  5261. <div class="worksName">
  5262. <div>{{ w.sName }}</div>
  5263. </div>
  5264. <div class="commentList">
  5265. <div class="commentList">
  5266. <div
  5267. class="commentImg"
  5268. @click="
  5269. isLikes(w.wid, userid, 1, null, w.isLikes)
  5270. "
  5271. >
  5272. <img
  5273. :src="w.isLikes == true ? likes : noLikes"
  5274. alt=""
  5275. />
  5276. </div>
  5277. <div>{{ w.likesCount }}</div>
  5278. </div>
  5279. <div class="commentList" style="margin-right: 15px">
  5280. <div
  5281. class="commentImg"
  5282. @click="commentOther(w, toolIndex, wIndex)"
  5283. >
  5284. <img
  5285. src="../assets/icon/comment/comment.png"
  5286. alt=""
  5287. />
  5288. </div>
  5289. <div>{{ w.commentCount }}</div>
  5290. </div>
  5291. </div>
  5292. </div>
  5293. </div>
  5294. </div>
  5295. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5296. 未提交
  5297. </div>
  5298. <div
  5299. class="noWorksS"
  5300. v-if="noWorksS && noWorksS[toolIndex].length"
  5301. >
  5302. <div
  5303. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5304. :key="sIndex"
  5305. class="noWorksName"
  5306. >
  5307. {{ s.student }}
  5308. </div>
  5309. </div>
  5310. </div>
  5311. <div
  5312. v-if="
  5313. tType &&
  5314. ((tType == 2 && sIsOpen == true) ||
  5315. tType == 1 ||
  5316. tType == 4) &&
  5317. tool.tool.indexOf(7) != -1
  5318. "
  5319. class="worksBox"
  5320. >
  5321. <div
  5322. class="zuoyeYulan"
  5323. v-if="
  5324. (worksStudent.length &&
  5325. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5326. "
  5327. >
  5328. <div class="worksTop">
  5329. <div>作业预览</div>
  5330. <div
  5331. class="corOpen"
  5332. @click="contract(toolIndex)"
  5333. v-if="
  5334. (isCloseList[toolIndex].isCloseBoolean) &&
  5335. isCloseList[toolIndex].isClose == 0
  5336. "
  5337. >
  5338. 折叠
  5339. </div>
  5340. <div
  5341. class="corOpen"
  5342. @click="contract(toolIndex)"
  5343. v-if="isCloseList[toolIndex].isClose == 1"
  5344. >
  5345. 展开
  5346. </div>
  5347. </div>
  5348. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5349. </div>
  5350. <div
  5351. class="group_workBox"
  5352. v-for="(g, gindex) in courseGroup.group"
  5353. :key="gindex"
  5354. >
  5355. <div class="group_box">
  5356. <div class="group_title">
  5357. <el-tooltip
  5358. class="item"
  5359. effect="light"
  5360. :content="g.name"
  5361. placement="top"
  5362. >
  5363. <div class="group_name">{{ g.name }}</div>
  5364. </el-tooltip>
  5365. </div>
  5366. <div
  5367. class="group_work"
  5368. v-if="
  5369. g.works &&
  5370. g.works.length &&
  5371. g.works[toolIndex].length
  5372. "
  5373. >
  5374. <div
  5375. class="works"
  5376. style="
  5377. width: 200px;
  5378. height: 140px;
  5379. margin: 10px 10px 10px 0;
  5380. border-radius: 15px;
  5381. box-shadow: 0 0 6px 1px #dfdada;
  5382. "
  5383. v-for="(w, wIndex) in g.works[toolIndex]"
  5384. :key="wIndex"
  5385. :class="w.type == 1 ? 'isTypeOne' : ''"
  5386. >
  5387. <div class="workImg">
  5388. <img
  5389. :src="w.works"
  5390. @click="previewImg(w.works)"
  5391. alt
  5392. />
  5393. <div
  5394. class="answerScore"
  5395. v-if="w.score"
  5396. @click.stop="openScore(w)"
  5397. :class="{
  5398. rightW:
  5399. w.userid == userid ||
  5400. tType == 1 ||
  5401. tType == 4,
  5402. }"
  5403. >
  5404. {{ JSON.parse(w.score).wScore }}分
  5405. </div>
  5406. <div
  5407. class="answerScore"
  5408. @click.stop="openScore(w)"
  5409. v-else-if="courseDetail.userid == userid"
  5410. :class="{
  5411. rightW:
  5412. w.userid == userid ||
  5413. tType == 1 ||
  5414. tType == 4,
  5415. }"
  5416. >
  5417. 评分
  5418. </div>
  5419. <img
  5420. class="deleteImg"
  5421. src="../assets/deleteworks.png"
  5422. v-if="
  5423. w.userid == userid || tType == 1 || tType == 4
  5424. "
  5425. @click.stop="deleteWorks(w.wid)"
  5426. alt
  5427. />
  5428. </div>
  5429. <div class="comment" style="min-width: 200px">
  5430. <div class="worksName">
  5431. <div>{{ w.sName }}</div>
  5432. </div>
  5433. <div class="commentList">
  5434. <div class="commentList">
  5435. <div
  5436. class="commentImg"
  5437. @click="
  5438. isLikes(w.wid, userid, 1, null, w.isLikes)
  5439. "
  5440. >
  5441. <img
  5442. :src="w.isLikes == true ? likes : noLikes"
  5443. alt=""
  5444. />
  5445. </div>
  5446. <div>{{ w.likesCount }}</div>
  5447. </div>
  5448. <div
  5449. class="commentList"
  5450. style="margin-right: 15px"
  5451. >
  5452. <div
  5453. class="commentImg"
  5454. @click="
  5455. commentOther(
  5456. w,
  5457. toolIndex,
  5458. wIndex,
  5459. null,
  5460. g.id
  5461. )
  5462. "
  5463. >
  5464. <img
  5465. src="../assets/icon/comment/comment.png"
  5466. alt=""
  5467. />
  5468. </div>
  5469. <div>{{ w.commentCount }}</div>
  5470. </div>
  5471. </div>
  5472. </div>
  5473. </div>
  5474. </div>
  5475. <div class="group_work" v-else>暂无提交作业</div>
  5476. </div>
  5477. </div>
  5478. <div
  5479. :id="'tool-' + toolIndex"
  5480. :style="{
  5481. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5482. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5483. }"
  5484. class="worksDetailBox"
  5485. v-if="
  5486. worksStudent.length &&
  5487. worksStudent[toolIndex].length > 0
  5488. "
  5489. >
  5490. <div
  5491. class="works"
  5492. style="
  5493. width: 200px;
  5494. height: 140px;
  5495. margin: 10px 10px 10px 0;
  5496. border-radius: 15px;
  5497. box-shadow: 0 0 6px 1px #dfdada;
  5498. "
  5499. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5500. :key="wIndex"
  5501. >
  5502. <!-- @click="previewImg(w.works)" -->
  5503. <div class="workImg">
  5504. <img
  5505. :src="w.works"
  5506. @click="previewImg(w.works)"
  5507. alt
  5508. />
  5509. <div
  5510. class="answerScore"
  5511. v-if="w.score"
  5512. @click.stop="openScore(w)"
  5513. :class="{
  5514. rightW:
  5515. w.userid == userid || tType == 1 || tType == 4,
  5516. }"
  5517. >
  5518. {{ JSON.parse(w.score).wScore }}分
  5519. </div>
  5520. <div
  5521. class="answerScore"
  5522. @click.stop="openScore(w)"
  5523. v-else-if="courseDetail.userid == userid"
  5524. :class="{
  5525. rightW:
  5526. w.userid == userid || tType == 1 || tType == 4,
  5527. }"
  5528. >
  5529. 评分
  5530. </div>
  5531. <img
  5532. class="deleteImg"
  5533. src="../assets/deleteworks.png"
  5534. v-if="
  5535. w.userid == userid || tType == 1 || tType == 4
  5536. "
  5537. @click.stop="deleteWorks(w.wid)"
  5538. alt
  5539. />
  5540. </div>
  5541. <div class="comment" style="min-width: 200px">
  5542. <div class="worksName">
  5543. <div>{{ w.sName }}</div>
  5544. </div>
  5545. <div class="commentList">
  5546. <div class="commentList">
  5547. <div
  5548. class="commentImg"
  5549. @click="
  5550. isLikes(w.wid, userid, 1, null, w.isLikes)
  5551. "
  5552. >
  5553. <img
  5554. :src="w.isLikes == true ? likes : noLikes"
  5555. alt=""
  5556. />
  5557. </div>
  5558. <div>{{ w.likesCount }}</div>
  5559. </div>
  5560. <div class="commentList" style="margin-right: 15px">
  5561. <div
  5562. class="commentImg"
  5563. @click="commentOther(w, toolIndex, wIndex)"
  5564. >
  5565. <img
  5566. src="../assets/icon/comment/comment.png"
  5567. alt=""
  5568. />
  5569. </div>
  5570. <div>{{ w.commentCount }}</div>
  5571. </div>
  5572. </div>
  5573. </div>
  5574. </div>
  5575. </div>
  5576. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5577. 未提交
  5578. </div>
  5579. <div
  5580. class="noWorksS"
  5581. v-if="noWorksS && noWorksS[toolIndex].length"
  5582. >
  5583. <div
  5584. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5585. :key="sIndex"
  5586. class="noWorksName"
  5587. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5588. >
  5589. {{ s.student }}
  5590. </div>
  5591. </div>
  5592. </div>
  5593. <div
  5594. v-if="
  5595. tType &&
  5596. ((tType == 2 && sIsOpen == true) ||
  5597. tType == 1 ||
  5598. tType == 4) &&
  5599. tool.tool.indexOf(26) != -1
  5600. "
  5601. class="worksBox"
  5602. >
  5603. <div
  5604. class="zuoyeYulan"
  5605. v-if="
  5606. worksStudent.length &&
  5607. worksStudent[toolIndex].length > 0
  5608. "
  5609. >
  5610. <div class="worksTop">
  5611. <div>作业预览</div>
  5612. <div
  5613. class="corOpen"
  5614. @click="contract(toolIndex)"
  5615. v-if="
  5616. (isCloseList[toolIndex].isCloseBoolean) &&
  5617. isCloseList[toolIndex].isClose == 0
  5618. "
  5619. >
  5620. 折叠
  5621. </div>
  5622. <div
  5623. class="corOpen"
  5624. @click="contract(toolIndex)"
  5625. v-if="isCloseList[toolIndex].isClose == 1"
  5626. >
  5627. 展开
  5628. </div>
  5629. </div>
  5630. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5631. </div>
  5632. <div
  5633. :id="'tool-' + toolIndex"
  5634. :style="{
  5635. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5636. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5637. }"
  5638. class="worksDetailBox"
  5639. v-if="
  5640. worksStudent.length &&
  5641. worksStudent[toolIndex].length > 0
  5642. "
  5643. >
  5644. <div
  5645. class="works"
  5646. style="width: 240px; height: 140px; overflow: hidden"
  5647. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5648. :key="wIndex"
  5649. :class="w.type == 1 ? 'isTypeOne' : ''"
  5650. >
  5651. <div class="workImg" v-if="w.type == 0">
  5652. <img
  5653. :src="w.works"
  5654. @click="previewImg(w.works)"
  5655. alt
  5656. />
  5657. <img
  5658. class="deleteImg"
  5659. src="../assets/deleteworks.png"
  5660. v-if="
  5661. w.userid == userid || tType == 1 || tType == 4
  5662. "
  5663. @click.stop="deleteWorks(w.wid)"
  5664. alt
  5665. />
  5666. </div>
  5667. <div class="workImg" v-if="w.type == 1">
  5668. <img :src="word" @click="openFile(w.works)" alt />
  5669. <img
  5670. class="deleteImg"
  5671. src="../assets/deleteworks.png"
  5672. v-if="
  5673. w.userid == userid || tType == 1 || tType == 4
  5674. "
  5675. @click.stop="deleteWorks(w.wid)"
  5676. alt
  5677. />
  5678. </div>
  5679. <div class="worksName">
  5680. <div>{{ w.sName }}</div>
  5681. </div>
  5682. </div>
  5683. </div>
  5684. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5685. 未提交
  5686. </div>
  5687. <div
  5688. class="noWorksS"
  5689. v-if="noWorksS && noWorksS[toolIndex].length"
  5690. >
  5691. <div
  5692. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5693. :key="sIndex"
  5694. class="noWorksName"
  5695. >
  5696. {{ s.student }}
  5697. </div>
  5698. </div>
  5699. </div>
  5700. <div
  5701. v-if="
  5702. tType &&
  5703. ((tType == 2 && sIsOpen == true) ||
  5704. tType == 1 ||
  5705. tType == 4) &&
  5706. tool.tool.indexOf(40) != -1
  5707. "
  5708. class="worksBox"
  5709. >
  5710. <div
  5711. class="zuoyeYulan"
  5712. v-if="
  5713. worksStudent.length &&
  5714. worksStudent[toolIndex].length > 0
  5715. "
  5716. >
  5717. <div class="worksTop">
  5718. <div>作业预览</div>
  5719. <div
  5720. class="corOpen"
  5721. @click="contract(toolIndex)"
  5722. v-if="
  5723. (isCloseList[toolIndex].isCloseBoolean) &&
  5724. isCloseList[toolIndex].isClose == 0
  5725. "
  5726. >
  5727. 折叠
  5728. </div>
  5729. <div
  5730. class="corOpen"
  5731. @click="contract(toolIndex)"
  5732. v-if="isCloseList[toolIndex].isClose == 1"
  5733. >
  5734. 展开
  5735. </div>
  5736. </div>
  5737. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5738. </div>
  5739. <div
  5740. :id="'tool-' + toolIndex"
  5741. :style="{
  5742. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5743. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5744. }"
  5745. class="worksDetailBox"
  5746. v-if="
  5747. worksStudent.length &&
  5748. worksStudent[toolIndex].length > 0
  5749. "
  5750. >
  5751. <div
  5752. class="works"
  5753. style="
  5754. width: 200px;
  5755. height: 140px;
  5756. margin: 10px 10px 10px 0;
  5757. border-radius: 15px;
  5758. box-shadow: 0 0 6px 1px #dfdada;
  5759. "
  5760. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5761. :key="wIndex"
  5762. :class="w.type == 1 ? 'isTypeOne' : ''"
  5763. >
  5764. <div class="workImg">
  5765. <img
  5766. src="../assets/icon/works/noImg.png"
  5767. @click="openPj(w.works, toolIndex)"
  5768. alt
  5769. />
  5770. <img
  5771. class="deleteImg"
  5772. src="../assets/deleteworks.png"
  5773. v-if="
  5774. w.userid == userid || tType == 1 || tType == 4
  5775. "
  5776. @click.stop="deleteWorks(w.wid)"
  5777. alt
  5778. />
  5779. </div>
  5780. <div class="comment" style="min-width: 200px">
  5781. <div class="worksName">
  5782. <div>{{ w.sName }}</div>
  5783. </div>
  5784. <div class="commentList">
  5785. <div class="commentList">
  5786. <div
  5787. class="commentImg"
  5788. @click="
  5789. isLikes(w.wid, userid, 1, null, w.isLikes)
  5790. "
  5791. >
  5792. <img
  5793. :src="w.isLikes == true ? likes : noLikes"
  5794. alt=""
  5795. />
  5796. </div>
  5797. <div>{{ w.likesCount }}</div>
  5798. </div>
  5799. <div class="commentList" style="margin-right: 15px">
  5800. <div
  5801. class="commentImg"
  5802. @click="commentOther(w, toolIndex, wIndex)"
  5803. >
  5804. <img
  5805. src="../assets/icon/comment/comment.png"
  5806. alt=""
  5807. />
  5808. </div>
  5809. <div>{{ w.commentCount }}</div>
  5810. </div>
  5811. </div>
  5812. </div>
  5813. </div>
  5814. </div>
  5815. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5816. 未提交
  5817. </div>
  5818. <div
  5819. class="noWorksS"
  5820. v-if="noWorksS && noWorksS[toolIndex].length"
  5821. >
  5822. <div
  5823. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5824. :key="sIndex"
  5825. class="noWorksName"
  5826. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5827. >
  5828. {{ s.student }}
  5829. </div>
  5830. </div>
  5831. </div>
  5832. <div
  5833. v-if="
  5834. tType &&
  5835. tType == 2 &&
  5836. !sIsOpen &&
  5837. tool.tool.indexOf(40) != -1
  5838. "
  5839. class="worksBox"
  5840. >
  5841. <div
  5842. class="zuoyeYulan"
  5843. v-if="workStudent[toolIndex].length > 0"
  5844. >
  5845. <span class="worksTitle">作业预览</span>
  5846. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5847. </div>
  5848. <div
  5849. class="worksDetailBox"
  5850. v-if="workStudent[toolIndex].length > 0"
  5851. >
  5852. <div
  5853. class="works"
  5854. style="
  5855. width: 200px;
  5856. height: 140px;
  5857. margin: 10px 10px 10px 0;
  5858. "
  5859. v-for="(w, wIndex) in workStudent[toolIndex]"
  5860. :key="wIndex"
  5861. >
  5862. <div class="workImg">
  5863. <img
  5864. src="../assets/icon/works/noImg.png"
  5865. @click="openPj(w.works, toolIndex)"
  5866. alt
  5867. />
  5868. <img
  5869. class="deleteImg"
  5870. src="../assets/deleteworks.png"
  5871. v-if="
  5872. w.userid == userid || tType == 1 || tType == 4
  5873. "
  5874. @click.stop="deleteWorks(w.wid)"
  5875. alt
  5876. />
  5877. </div>
  5878. <div class="worksName">
  5879. <div>{{ w.sName }}</div>
  5880. </div>
  5881. </div>
  5882. </div>
  5883. </div>
  5884. <div
  5885. v-if="
  5886. tType &&
  5887. ((tType == 2 && sIsOpen == true) ||
  5888. tType == 1 ||
  5889. tType == 4) &&
  5890. tool.tool.indexOf(41) != -1
  5891. "
  5892. >
  5893. <AnswerData2
  5894. v-if="
  5895. worksStudent.length &&
  5896. worksStudent[toolIndex].length > 0
  5897. "
  5898. :problemJson="tool.selectJson.answer"
  5899. :people="worksStudent[toolIndex]"
  5900. ></AnswerData2>
  5901. </div>
  5902. <div
  5903. v-if="
  5904. tType &&
  5905. ((tType == 2 && sIsOpen == true) ||
  5906. tType == 1 ||
  5907. tType == 4) &&
  5908. tool.tool.indexOf(41) != -1
  5909. "
  5910. class="worksBox"
  5911. >
  5912. <div
  5913. class="zuoyeYulan"
  5914. v-if="
  5915. worksStudent.length &&
  5916. worksStudent[toolIndex].length > 0
  5917. "
  5918. >
  5919. <div class="worksTop">
  5920. <div>作业预览</div>
  5921. <div
  5922. class="corOpen"
  5923. @click="contract(toolIndex)"
  5924. v-if="
  5925. (isCloseList[toolIndex].isCloseBoolean) &&
  5926. isCloseList[toolIndex].isClose == 0
  5927. "
  5928. >
  5929. 折叠
  5930. </div>
  5931. <div
  5932. class="corOpen"
  5933. @click="contract(toolIndex)"
  5934. v-if="isCloseList[toolIndex].isClose == 1"
  5935. >
  5936. 展开
  5937. </div>
  5938. </div>
  5939. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5940. </div>
  5941. <div
  5942. :id="'tool-' + toolIndex"
  5943. :style="{
  5944. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5945. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5946. }"
  5947. class="worksDetailBox"
  5948. v-if="
  5949. worksStudent.length &&
  5950. worksStudent[toolIndex].length > 0
  5951. "
  5952. >
  5953. <div
  5954. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5955. :key="wIndex"
  5956. class="isWorksName2"
  5957. @click="openXz(w, toolIndex)"
  5958. >
  5959. {{ w.sName }}
  5960. <img
  5961. class="deleteImg deleteImg2"
  5962. src="../assets/deleteworks.png"
  5963. v-if="w.userid == userid || tType == 1 || tType == 4"
  5964. @click.stop="deleteWorks(w.wid)"
  5965. alt
  5966. />
  5967. </div>
  5968. <!-- <div
  5969. class="works"
  5970. style="
  5971. width: 200px;
  5972. height: 140px;
  5973. margin: 10px 10px 10px 0;
  5974. border-radius: 15px;
  5975. box-shadow: 0 0 6px 1px #dfdada;
  5976. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5977. :class="w.type == 5 ? 'isTypeOne' : ''">
  5978. <div class="workImg">
  5979. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5980. </div>
  5981. <div class="worksName">
  5982. <div>{{ w.sName }}</div>
  5983. </div>
  5984. </div> -->
  5985. </div>
  5986. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5987. 未提交
  5988. </div>
  5989. <div
  5990. class="noWorksS"
  5991. v-if="noWorksS && noWorksS[toolIndex].length"
  5992. >
  5993. <div
  5994. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5995. :key="sIndex"
  5996. class="noWorksName"
  5997. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5998. >
  5999. {{ s.student }}
  6000. </div>
  6001. </div>
  6002. </div>
  6003. <div
  6004. v-if="
  6005. tType &&
  6006. tType == 2 &&
  6007. !sIsOpen &&
  6008. tool.tool.indexOf(41) != -1
  6009. "
  6010. class="worksBox"
  6011. >
  6012. <div
  6013. class="zuoyeYulan"
  6014. v-if="workStudent[toolIndex].length > 0"
  6015. >
  6016. <span class="worksTitle">作业预览</span>
  6017. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6018. </div>
  6019. <div
  6020. class="worksDetailBox"
  6021. v-if="workStudent[toolIndex].length > 0"
  6022. >
  6023. <div
  6024. class="works"
  6025. style="
  6026. width: 200px;
  6027. height: 140px;
  6028. margin: 10px 10px 10px 0;
  6029. "
  6030. v-for="(w, wIndex) in workStudent[toolIndex]"
  6031. :key="wIndex"
  6032. >
  6033. <div class="workImg">
  6034. <img
  6035. src="../assets/icon/works/noImg.png"
  6036. @click="openXz(w, toolIndex)"
  6037. alt
  6038. />
  6039. <img
  6040. class="deleteImg"
  6041. src="../assets/deleteworks.png"
  6042. v-if="
  6043. w.userid == userid || tType == 1 || tType == 4
  6044. "
  6045. @click.stop="deleteWorks(w.wid)"
  6046. alt
  6047. />
  6048. </div>
  6049. <div class="worksName">
  6050. <div>{{ w.sName }}</div>
  6051. </div>
  6052. </div>
  6053. </div>
  6054. </div>
  6055. <div v-if="false" class="xuan_right_box">
  6056. <div
  6057. class="tool_right_box"
  6058. v-for="(item, index) in tool.sentenceList"
  6059. :key="index"
  6060. >
  6061. <div>
  6062. <span
  6063. style="word-break: break-all; white-space: normal"
  6064. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6065. >
  6066. </div>
  6067. <div class="right_box_xuan">
  6068. <span>正确率</span>
  6069. <span>{{
  6070. (checkJson[toolIndex][index].right
  6071. ? checkJson[toolIndex][index].right
  6072. : 0) + "%"
  6073. }}</span>
  6074. </div>
  6075. <div class="right_box_xuan">
  6076. <span>答对人数</span>
  6077. <span>{{
  6078. checkJson[toolIndex][index].rightPerson.length
  6079. }}</span>
  6080. </div>
  6081. </div>
  6082. </div>
  6083. <div
  6084. v-if="
  6085. tType &&
  6086. ((tType == 2 && sIsOpen == true) ||
  6087. tType == 1 ||
  6088. tType == 4) &&
  6089. tool.tool.indexOf(47) != -1
  6090. "
  6091. >
  6092. <AnswerData
  6093. v-if="
  6094. checkJson[toolIndex].length &&
  6095. (tool.sentenceList || tool.sentenceList.length > 0)
  6096. "
  6097. :people="checkJson[toolIndex]"
  6098. ></AnswerData>
  6099. </div>
  6100. <div
  6101. v-if="
  6102. tType &&
  6103. tType == 2 &&
  6104. !sIsOpen &&
  6105. tool.tool.indexOf(47) != -1
  6106. "
  6107. class="worksBox"
  6108. >
  6109. <div
  6110. class="zuoyeYulan"
  6111. v-if="workStudent[toolIndex].length > 0"
  6112. >
  6113. <span class="worksTitle">作业预览</span>
  6114. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6115. </div>
  6116. <div
  6117. class="worksDetailBox"
  6118. v-if="workStudent[toolIndex].length > 0"
  6119. >
  6120. <div
  6121. class="works"
  6122. style="
  6123. width: 200px;
  6124. height: 140px;
  6125. margin: 10px 10px 10px 0;
  6126. "
  6127. v-for="(w, wIndex) in workStudent[toolIndex]"
  6128. :key="wIndex"
  6129. >
  6130. <!-- @click="openXz(w, toolIndex)" -->
  6131. <div class="workImg" @click="openSen(w, toolIndex)">
  6132. <img src="../assets/icon/works/noImg.png" alt />
  6133. <img
  6134. class="deleteImg"
  6135. src="../assets/deleteworks.png"
  6136. v-if="
  6137. w.userid == userid || tType == 1 || tType == 4
  6138. "
  6139. @click.stop="deleteWorks(w.wid)"
  6140. alt
  6141. />
  6142. </div>
  6143. <div class="worksName">
  6144. <div>
  6145. {{ w.sName }}
  6146. </div>
  6147. </div>
  6148. </div>
  6149. </div>
  6150. </div>
  6151. <div
  6152. v-if="
  6153. tType &&
  6154. ((tType == 2 && sIsOpen == true) ||
  6155. tType == 1 ||
  6156. tType == 4) &&
  6157. tool.tool.indexOf(47) != -1
  6158. "
  6159. class="worksBox"
  6160. >
  6161. <div
  6162. class="zuoyeYulan"
  6163. v-if="
  6164. worksStudent.length &&
  6165. worksStudent[toolIndex].length > 0
  6166. "
  6167. >
  6168. <div class="worksTop">
  6169. <div>作业预览</div>
  6170. <div
  6171. class="corOpen"
  6172. @click="contract(toolIndex)"
  6173. v-if="
  6174. (isCloseList[toolIndex].isCloseBoolean) &&
  6175. isCloseList[toolIndex].isClose == 0
  6176. "
  6177. >
  6178. 折叠
  6179. </div>
  6180. <div
  6181. class="corOpen"
  6182. @click="contract(toolIndex)"
  6183. v-if="isCloseList[toolIndex].isClose == 1"
  6184. >
  6185. 展开
  6186. </div>
  6187. </div>
  6188. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6189. </div>
  6190. <div
  6191. :id="'tool-' + toolIndex"
  6192. :style="{
  6193. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6194. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6195. }"
  6196. class="worksDetailBox"
  6197. v-if="
  6198. worksStudent.length &&
  6199. worksStudent[toolIndex].length > 0
  6200. "
  6201. >
  6202. <!-- @click="openXz(w, toolIndex)" -->
  6203. <div
  6204. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6205. :key="wIndex"
  6206. class="isWorksName2"
  6207. @click="openSen(w, toolIndex)"
  6208. >
  6209. {{ w.sName }}
  6210. <img
  6211. class="deleteImg deleteImg2"
  6212. src="../assets/deleteworks.png"
  6213. v-if="w.userid == userid || tType == 1 || tType == 4"
  6214. @click.stop="deleteWorks(w.wid)"
  6215. alt
  6216. />
  6217. </div>
  6218. </div>
  6219. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6220. 未提交
  6221. </div>
  6222. <div
  6223. class="noWorksS"
  6224. v-if="noWorksS && noWorksS[toolIndex].length"
  6225. >
  6226. <div
  6227. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6228. :key="sIndex"
  6229. class="noWorksName"
  6230. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6231. >
  6232. {{ s.student }}
  6233. </div>
  6234. </div>
  6235. </div>
  6236. <div
  6237. v-if="
  6238. tType &&
  6239. ((tType == 2 && sIsOpen == true) ||
  6240. tType == 1 ||
  6241. tType == 4) &&
  6242. tool.tool.indexOf(48) != -1
  6243. "
  6244. class="worksBox"
  6245. >
  6246. <div
  6247. class="zuoyeYulan"
  6248. v-if="
  6249. worksStudent.length &&
  6250. worksStudent[toolIndex].length > 0
  6251. "
  6252. >
  6253. <div class="worksTop">
  6254. <div>作业预览</div>
  6255. <div
  6256. class="corOpen"
  6257. @click="contract(toolIndex)"
  6258. v-if="
  6259. (isCloseList[toolIndex].isCloseBoolean) &&
  6260. isCloseList[toolIndex].isClose == 0
  6261. "
  6262. >
  6263. 折叠
  6264. </div>
  6265. <div
  6266. class="corOpen"
  6267. @click="contract(toolIndex)"
  6268. v-if="isCloseList[toolIndex].isClose == 1"
  6269. >
  6270. 展开
  6271. </div>
  6272. </div>
  6273. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6274. </div>
  6275. <div
  6276. :id="'tool-' + toolIndex"
  6277. :style="{
  6278. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6279. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6280. }"
  6281. class="worksDetailBox"
  6282. v-if="
  6283. worksStudent.length &&
  6284. worksStudent[toolIndex].length > 0
  6285. "
  6286. >
  6287. <div
  6288. class="works"
  6289. style="
  6290. width: 200px;
  6291. height: 140px;
  6292. margin: 10px 10px 10px 0;
  6293. border-radius: 15px;
  6294. box-shadow: 0 0 6px 1px #dfdada;
  6295. "
  6296. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6297. :key="wIndex"
  6298. :class="w.type == 1 ? 'isTypeOne' : ''"
  6299. >
  6300. <div class="workImg">
  6301. <img :src="word" @click="openTable(w)" alt />
  6302. <!-- @click="openFile(w.works)" -->
  6303. <div
  6304. class="answerScore"
  6305. v-if="w.score"
  6306. @click.stop="openScore(w)"
  6307. :class="{
  6308. rightW:
  6309. w.userid == userid ||
  6310. tType == 1 ||
  6311. tType == 4 ||
  6312. w.ateacher == userid,
  6313. }"
  6314. >
  6315. {{ JSON.parse(w.score).wScore }}分
  6316. </div>
  6317. <div
  6318. class="answerScore"
  6319. @click.stop="openScore(w)"
  6320. v-else-if="courseDetail.userid == userid"
  6321. :class="{
  6322. rightW:
  6323. w.userid == userid ||
  6324. tType == 1 ||
  6325. tType == 4 ||
  6326. w.ateacher == userid,
  6327. }"
  6328. >
  6329. 评分
  6330. </div>
  6331. <img
  6332. class="deleteImg"
  6333. src="../assets/deleteworks.png"
  6334. v-if="
  6335. w.userid == userid || tType == 1 || tType == 4
  6336. "
  6337. @click.stop="deleteWorks(w.wid)"
  6338. alt
  6339. />
  6340. </div>
  6341. <div class="comment" style="min-width: 200px">
  6342. <div class="worksName">
  6343. <div>{{ w.sName }}</div>
  6344. </div>
  6345. <div class="commentList">
  6346. <div class="commentList">
  6347. <div
  6348. class="commentImg"
  6349. @click="
  6350. isLikes(w.wid, userid, 1, null, w.isLikes)
  6351. "
  6352. >
  6353. <img
  6354. :src="w.isLikes == true ? likes : noLikes"
  6355. alt=""
  6356. />
  6357. </div>
  6358. <div>{{ w.likesCount }}</div>
  6359. </div>
  6360. <div class="commentList" style="margin-right: 15px">
  6361. <div
  6362. class="commentImg"
  6363. @click="commentOther(w, toolIndex, wIndex)"
  6364. >
  6365. <img
  6366. src="../assets/icon/comment/comment.png"
  6367. alt=""
  6368. />
  6369. </div>
  6370. <div>{{ w.commentCount }}</div>
  6371. </div>
  6372. </div>
  6373. </div>
  6374. </div>
  6375. </div>
  6376. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6377. 未提交
  6378. </div>
  6379. <div
  6380. class="noWorksS"
  6381. v-if="noWorksS && noWorksS[toolIndex].length"
  6382. >
  6383. <div
  6384. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6385. :key="sIndex"
  6386. class="noWorksName"
  6387. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6388. >
  6389. {{ s.student }}
  6390. </div>
  6391. </div>
  6392. </div>
  6393. <div
  6394. v-if="
  6395. tType &&
  6396. tType == 2 &&
  6397. !sIsOpen &&
  6398. tool.tool.indexOf(48) != -1
  6399. "
  6400. class="worksBox"
  6401. >
  6402. <div
  6403. class="zuoyeYulan"
  6404. v-if="workStudent[toolIndex].length > 0"
  6405. >
  6406. <span class="worksTitle">作业预览</span>
  6407. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6408. </div>
  6409. <div
  6410. class="worksDetailBox"
  6411. v-if="workStudent[toolIndex].length > 0"
  6412. >
  6413. <div
  6414. class="works"
  6415. style="
  6416. width: 200px;
  6417. height: 140px;
  6418. margin: 10px 10px 10px 0;
  6419. box-shadow: 0 0 6px 1px #dfdada;
  6420. "
  6421. v-for="(w, wIndex) in workStudent[toolIndex]"
  6422. :key="wIndex"
  6423. >
  6424. <div class="workImg">
  6425. <img :src="word" @click="openTable(w)" alt />
  6426. <div
  6427. class="answerScore"
  6428. v-if="w.score"
  6429. @click.stop="openScore(w)"
  6430. :class="{
  6431. rightW:
  6432. w.userid == userid || tType == 1 || tType == 4,
  6433. }"
  6434. >
  6435. {{ JSON.parse(w.score).wScore }}分
  6436. </div>
  6437. <div
  6438. class="answerScore"
  6439. @click.stop="openScore(w)"
  6440. v-else-if="courseDetail.userid == userid"
  6441. :class="{
  6442. rightW:
  6443. w.userid == userid || tType == 1 || tType == 4,
  6444. }"
  6445. >
  6446. 评分
  6447. </div>
  6448. <img
  6449. class="deleteImg"
  6450. src="../assets/deleteworks.png"
  6451. v-if="
  6452. w.userid == userid || tType == 1 || tType == 4
  6453. "
  6454. @click.stop="deleteWorks(w.wid)"
  6455. alt
  6456. />
  6457. </div>
  6458. <div class="worksName">
  6459. <div>{{ w.sName }}</div>
  6460. </div>
  6461. </div>
  6462. </div>
  6463. </div>
  6464. <div
  6465. v-if="
  6466. tType &&
  6467. ((tType == 2 && sIsOpen == true) ||
  6468. tType == 1 ||
  6469. tType == 4) &&
  6470. tool.tool.indexOf(52) != -1
  6471. "
  6472. class="worksBox"
  6473. >
  6474. <div
  6475. class="zuoyeYulan"
  6476. v-if="
  6477. worksStudent.length &&
  6478. worksStudent[toolIndex].length > 0
  6479. "
  6480. >
  6481. <div class="worksTop">
  6482. <div>作业预览</div>
  6483. <div
  6484. class="corOpen"
  6485. @click="contract(toolIndex)"
  6486. v-if="
  6487. (isCloseList[toolIndex].isCloseBoolean) &&
  6488. isCloseList[toolIndex].isClose == 0
  6489. "
  6490. >
  6491. 折叠
  6492. </div>
  6493. <div
  6494. class="corOpen"
  6495. @click="contract(toolIndex)"
  6496. v-if="isCloseList[toolIndex].isClose == 1"
  6497. >
  6498. 展开
  6499. </div>
  6500. </div>
  6501. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6502. </div>
  6503. <div
  6504. :id="'tool-' + toolIndex"
  6505. :style="{
  6506. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6507. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6508. }"
  6509. class="worksDetailBox"
  6510. v-if="
  6511. worksStudent.length &&
  6512. worksStudent[toolIndex].length > 0
  6513. "
  6514. >
  6515. <div
  6516. class="works"
  6517. style="
  6518. width: 200px;
  6519. height: 140px;
  6520. margin: 10px 10px 10px 0;
  6521. border-radius: 15px;
  6522. box-shadow: 0 0 6px 1px #dfdada;
  6523. "
  6524. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6525. :key="wIndex"
  6526. :class="w.type == 1 ? 'isTypeOne' : ''"
  6527. >
  6528. <div class="workImg">
  6529. <img :src="word" @click="openWord(w)" alt />
  6530. <!-- @click="openFile(w.works)" -->
  6531. <div
  6532. class="answerScore"
  6533. v-if="w.score"
  6534. @click.stop="openScore(w)"
  6535. :class="{
  6536. rightW:
  6537. w.userid == userid ||
  6538. tType == 1 ||
  6539. tType == 4 ||
  6540. w.ateacher == userid,
  6541. }"
  6542. >
  6543. {{ JSON.parse(w.score).wScore }}分
  6544. </div>
  6545. <div
  6546. class="answerScore"
  6547. @click.stop="openScore(w)"
  6548. v-else-if="courseDetail.userid == userid"
  6549. :class="{
  6550. rightW:
  6551. w.userid == userid ||
  6552. tType == 1 ||
  6553. tType == 4 ||
  6554. w.ateacher == userid,
  6555. }"
  6556. >
  6557. 评分
  6558. </div>
  6559. <img
  6560. class="deleteImg"
  6561. src="../assets/deleteworks.png"
  6562. v-if="
  6563. w.userid == userid || tType == 1 || tType == 4
  6564. "
  6565. @click.stop="deleteWorks(w.wid)"
  6566. alt
  6567. />
  6568. </div>
  6569. <div class="comment" style="min-width: 200px">
  6570. <div class="worksName">
  6571. <div>{{ w.sName }}</div>
  6572. </div>
  6573. <div class="commentList">
  6574. <div class="commentList">
  6575. <div
  6576. class="commentImg"
  6577. @click="
  6578. isLikes(w.wid, userid, 1, null, w.isLikes)
  6579. "
  6580. >
  6581. <img
  6582. :src="w.isLikes == true ? likes : noLikes"
  6583. alt=""
  6584. />
  6585. </div>
  6586. <div>{{ w.likesCount }}</div>
  6587. </div>
  6588. <div class="commentList" style="margin-right: 15px">
  6589. <div
  6590. class="commentImg"
  6591. @click="commentOther(w, toolIndex, wIndex)"
  6592. >
  6593. <img
  6594. src="../assets/icon/comment/comment.png"
  6595. alt=""
  6596. />
  6597. </div>
  6598. <div>{{ w.commentCount }}</div>
  6599. </div>
  6600. </div>
  6601. </div>
  6602. </div>
  6603. </div>
  6604. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6605. 未提交
  6606. </div>
  6607. <div
  6608. class="noWorksS"
  6609. v-if="noWorksS && noWorksS[toolIndex].length"
  6610. >
  6611. <div
  6612. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6613. :key="sIndex"
  6614. class="noWorksName"
  6615. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6616. >
  6617. {{ s.student }}
  6618. </div>
  6619. </div>
  6620. </div>
  6621. <div
  6622. v-if="
  6623. tType &&
  6624. tType == 2 &&
  6625. !sIsOpen &&
  6626. tool.tool.indexOf(52) != -1
  6627. "
  6628. class="worksBox"
  6629. >
  6630. <div
  6631. class="zuoyeYulan"
  6632. v-if="workStudent[toolIndex].length > 0"
  6633. >
  6634. <span class="worksTitle">作业预览</span>
  6635. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6636. </div>
  6637. <div
  6638. class="worksDetailBox"
  6639. v-if="workStudent[toolIndex].length > 0"
  6640. >
  6641. <div
  6642. class="works"
  6643. style="
  6644. width: 200px;
  6645. height: 140px;
  6646. margin: 10px 10px 10px 0;
  6647. box-shadow: 0 0 6px 1px #dfdada;
  6648. "
  6649. v-for="(w, wIndex) in workStudent[toolIndex]"
  6650. :key="wIndex"
  6651. >
  6652. <div class="workImg">
  6653. <img :src="word" @click="openWord(w)" alt />
  6654. <div
  6655. class="answerScore"
  6656. v-if="w.score"
  6657. @click.stop="openScore(w)"
  6658. :class="{
  6659. rightW:
  6660. w.userid == userid || tType == 1 || tType == 4,
  6661. }"
  6662. >
  6663. {{ JSON.parse(w.score).wScore }}分
  6664. </div>
  6665. <div
  6666. class="answerScore"
  6667. @click.stop="openScore(w)"
  6668. v-else-if="courseDetail.userid == userid"
  6669. :class="{
  6670. rightW:
  6671. w.userid == userid || tType == 1 || tType == 4,
  6672. }"
  6673. >
  6674. 评分
  6675. </div>
  6676. <img
  6677. class="deleteImg"
  6678. src="../assets/deleteworks.png"
  6679. v-if="
  6680. w.userid == userid || tType == 1 || tType == 4
  6681. "
  6682. @click.stop="deleteWorks(w.wid)"
  6683. alt
  6684. />
  6685. </div>
  6686. <div class="worksName">
  6687. <div>{{ w.sName }}</div>
  6688. </div>
  6689. </div>
  6690. </div>
  6691. </div>
  6692. <div
  6693. v-if="tool.tool.indexOf(49) != -1"
  6694. class="xuan_right_box"
  6695. style="margin: 0 15px 0 25px; width: 93%"
  6696. >
  6697. <div
  6698. v-if="courseDetail.userid == userid"
  6699. style="
  6700. display: flex;
  6701. justify-content: flex-end;
  6702. margin-right: 10px;
  6703. "
  6704. >
  6705. <el-button
  6706. type="primary"
  6707. size="small"
  6708. @click="addTools(49, toolIndex, taskCount)"
  6709. >分组设置</el-button
  6710. >
  6711. </div>
  6712. <div
  6713. v-if="groupStudentUid[toolIndex]"
  6714. class="group_staic_box"
  6715. >
  6716. <div
  6717. v-for="(gp, gd) in tool.groupJson.group"
  6718. :key="gd"
  6719. class="group_staic"
  6720. >
  6721. <span> {{ gp.name }}</span>
  6722. <span>
  6723. 目前人数{{
  6724. groupStudentUid[toolIndex][gd].length
  6725. }}人</span
  6726. >
  6727. </div>
  6728. </div>
  6729. </div>
  6730. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6731. <div
  6732. class="zuoyeYulan"
  6733. v-if="
  6734. worksStudent.length &&
  6735. worksStudent[toolIndex].length > 0
  6736. "
  6737. >
  6738. <span class="worksTitle">作业预览</span>
  6739. </div>
  6740. <div>
  6741. <div
  6742. class="group_workBox"
  6743. v-for="(g, gindex) in tool.groupJson.group"
  6744. :key="gindex"
  6745. >
  6746. <div
  6747. class="group_box"
  6748. v-if="
  6749. groupStudentUid[toolIndex] &&
  6750. worksStudent[toolIndex] &&
  6751. (worksStudent[toolIndex][gindex].length ||
  6752. groupStudentUid[toolIndex][gindex].indexOf(
  6753. userid
  6754. ) != -1)
  6755. "
  6756. >
  6757. <div class="group_title">
  6758. <el-tooltip
  6759. class="item"
  6760. effect="light"
  6761. :content="g.name"
  6762. placement="top"
  6763. >
  6764. <div class="group_name">{{ g.name }}</div>
  6765. </el-tooltip>
  6766. <el-button
  6767. type="primary"
  6768. v-if="
  6769. groupStudentUid[toolIndex][gindex].indexOf(
  6770. userid
  6771. ) != -1
  6772. "
  6773. @click="groupUpload(toolIndex, taskCount, gindex)"
  6774. >上传作业</el-button
  6775. >
  6776. </div>
  6777. <div class="group_work">
  6778. <div
  6779. class="works"
  6780. style="
  6781. width: 200px;
  6782. height: 140px;
  6783. margin: 10px 10px 10px 0;
  6784. border-radius: 15px;
  6785. box-shadow: 0 0 6px 1px #dfdada;
  6786. "
  6787. v-for="(w, wIndex) in worksStudent[toolIndex][
  6788. gindex
  6789. ]"
  6790. :key="wIndex"
  6791. :class="w.type == 1 ? 'isTypeOne' : ''"
  6792. >
  6793. <div class="workImg" v-if="w.type == 0">
  6794. <img
  6795. :src="w.works"
  6796. @click="previewImg(w.works)"
  6797. alt
  6798. />
  6799. <div
  6800. class="answerScore"
  6801. v-if="w.score"
  6802. @click.stop="openScore(w)"
  6803. :class="{
  6804. rightW:
  6805. w.userid == userid ||
  6806. tType == 1 ||
  6807. tType == 4 ||
  6808. w.ateacher == userid,
  6809. }"
  6810. >
  6811. {{ JSON.parse(w.score).wScore }}分
  6812. </div>
  6813. <div
  6814. class="answerScore"
  6815. @click.stop="openScore(w)"
  6816. v-else-if="courseDetail.userid == userid"
  6817. :class="{
  6818. rightW:
  6819. w.userid == userid ||
  6820. tType == 1 ||
  6821. tType == 4 ||
  6822. w.ateacher == userid,
  6823. }"
  6824. >
  6825. 评分
  6826. </div>
  6827. <img
  6828. class="deleteImg"
  6829. src="../assets/deleteworks.png"
  6830. v-if="
  6831. w.userid == userid ||
  6832. tType == 1 ||
  6833. tType == 4
  6834. "
  6835. @click.stop="deleteWorks(w.wid)"
  6836. alt
  6837. />
  6838. </div>
  6839. <div class="workImg" v-if="w.type == 1">
  6840. <img
  6841. :src="word"
  6842. @click="openFile(w.works)"
  6843. alt
  6844. />
  6845. <!-- @click="openFile(w.works)" -->
  6846. <div
  6847. class="answerScore"
  6848. v-if="w.score"
  6849. @click.stop="openScore(w)"
  6850. :class="{
  6851. rightW:
  6852. w.userid == userid ||
  6853. tType == 1 ||
  6854. tType == 4 ||
  6855. w.ateacher == userid,
  6856. }"
  6857. >
  6858. {{ JSON.parse(w.score).wScore }}分
  6859. </div>
  6860. <div
  6861. class="answerScore"
  6862. @click.stop="openScore(w)"
  6863. v-else-if="courseDetail.userid == userid"
  6864. :class="{
  6865. rightW:
  6866. w.userid == userid ||
  6867. tType == 1 ||
  6868. tType == 4 ||
  6869. w.ateacher == userid,
  6870. }"
  6871. >
  6872. 评分
  6873. </div>
  6874. <img
  6875. class="deleteImg"
  6876. src="../assets/deleteworks.png"
  6877. v-if="
  6878. w.userid == userid ||
  6879. tType == 1 ||
  6880. tType == 4
  6881. "
  6882. @click.stop="deleteWorks(w.wid)"
  6883. alt
  6884. />
  6885. </div>
  6886. <div class="workImg" v-if="w.type == 3">
  6887. <img
  6888. style="cursor: pointer"
  6889. :src="video"
  6890. @click="openVideo(w)"
  6891. alt
  6892. />
  6893. <!-- @click="openVideo(w.works)" -->
  6894. <div
  6895. class="answerScore"
  6896. v-if="w.score"
  6897. @click.stop="openScore(w)"
  6898. :class="{
  6899. rightW:
  6900. w.userid == userid ||
  6901. tType == 1 ||
  6902. tType == 4 ||
  6903. w.ateacher == userid,
  6904. }"
  6905. >
  6906. {{ JSON.parse(w.score).wScore }}分
  6907. </div>
  6908. <div
  6909. class="answerScore"
  6910. @click.stop="openScore(w)"
  6911. v-else-if="courseDetail.userid == userid"
  6912. :class="{
  6913. rightW:
  6914. w.userid == userid ||
  6915. tType == 1 ||
  6916. tType == 4 ||
  6917. w.ateacher == userid,
  6918. }"
  6919. >
  6920. 评分
  6921. </div>
  6922. <img
  6923. class="deleteImg"
  6924. src="../assets/deleteworks.png"
  6925. v-if="
  6926. w.userid == userid ||
  6927. tType == 1 ||
  6928. tType == 4
  6929. "
  6930. @click.stop="deleteWorks(w.wid)"
  6931. alt
  6932. />
  6933. </div>
  6934. <div class="workImg" v-if="w.type == 12">
  6935. <img
  6936. style="cursor: pointer"
  6937. :src="word2"
  6938. @click="downloadFile(w.works)"
  6939. alt
  6940. />
  6941. <!-- @click="openVideo(w.works)" -->
  6942. <div
  6943. class="answerScore"
  6944. v-if="w.score"
  6945. @click.stop="openScore(w)"
  6946. :class="{
  6947. rightW:
  6948. w.userid == userid ||
  6949. tType == 1 ||
  6950. tType == 4 ||
  6951. w.ateacher == userid,
  6952. }"
  6953. >
  6954. {{ JSON.parse(w.score).wScore }}分
  6955. </div>
  6956. <div
  6957. class="answerScore"
  6958. @click.stop="openScore(w)"
  6959. v-else-if="courseDetail.userid == userid"
  6960. :class="{
  6961. rightW:
  6962. w.userid == userid ||
  6963. tType == 1 ||
  6964. tType == 4 ||
  6965. w.ateacher == userid,
  6966. }"
  6967. >
  6968. 评分
  6969. </div>
  6970. <img
  6971. class="deleteImg"
  6972. src="../assets/deleteworks.png"
  6973. v-if="
  6974. w.userid == userid ||
  6975. tType == 1 ||
  6976. tType == 4
  6977. "
  6978. @click.stop="deleteWorks(w.wid)"
  6979. alt
  6980. />
  6981. </div>
  6982. <div class="comment" style="min-width: 200px">
  6983. <div class="worksName">
  6984. <div>{{ w.sName }}</div>
  6985. </div>
  6986. <div class="commentList">
  6987. <div class="commentList">
  6988. <div
  6989. class="commentImg"
  6990. @click="
  6991. isLikes(
  6992. w.wid,
  6993. userid,
  6994. 1,
  6995. null,
  6996. w.isLikes
  6997. )
  6998. "
  6999. >
  7000. <img
  7001. :src="
  7002. w.isLikes == true ? likes : noLikes
  7003. "
  7004. alt=""
  7005. />
  7006. </div>
  7007. <div>{{ w.likesCount }}</div>
  7008. </div>
  7009. <div
  7010. class="commentList"
  7011. style="margin-right: 15px"
  7012. >
  7013. <div
  7014. class="commentImg"
  7015. @click="
  7016. commentOther(
  7017. w,
  7018. toolIndex,
  7019. wIndex,
  7020. gindex
  7021. )
  7022. "
  7023. >
  7024. <img
  7025. src="../assets/icon/comment/comment.png"
  7026. alt=""
  7027. />
  7028. </div>
  7029. <div>{{ w.commentCount }}</div>
  7030. </div>
  7031. </div>
  7032. </div>
  7033. </div>
  7034. </div>
  7035. </div>
  7036. </div>
  7037. </div>
  7038. </div>
  7039. </div>
  7040. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7041. 上传文件
  7042. <input
  7043. type="file"
  7044. accept="image/png, image/gif, image/jpeg"
  7045. style="display: none"
  7046. @change="beforeUpload1($event, 2, index)"
  7047. />
  7048. </div>-->
  7049. </div>
  7050. </div>
  7051. <!-- <div
  7052. class="vedioBox"
  7053. style="margin-top: 10px"
  7054. v-if="
  7055. courseDetail.userid == userid ||
  7056. (courseDetail.course_teacher &&
  7057. courseDetail.course_teacher.indexOf(userid) != -1)
  7058. "
  7059. :style="{
  7060. borderRadius:
  7061. !(
  7062. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7063. .toolChoose[0].tool &&
  7064. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7065. .toolChoose[0].tool.length > 0
  7066. ) &&
  7067. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7068. .taskDetail == '' &&
  7069. vChapterData[taskCount].length == 0 &&
  7070. fileC[taskCount].length == 0
  7071. ? '0 0 20px 20px'
  7072. : '20px',
  7073. }"
  7074. >
  7075. <div
  7076. class="queTop"
  7077. @click="isClose = !isClose"
  7078. style="
  7079. padding: 15px 0 15px 37px;
  7080. justify-content: space-between;
  7081. "
  7082. >
  7083. <div class="queTopTitle">新增工具</div>
  7084. <div class="queTopRight">
  7085. <div class="queTopClose" v-if="isClose == 0">
  7086. 展开
  7087. <div class="closeImg">
  7088. <img src="../assets/icon/newIcon/close.png" alt="" />
  7089. </div>
  7090. </div>
  7091. <div class="queTopClose" v-if="isClose == 1">
  7092. 折叠
  7093. <div class="openImg">
  7094. <img src="../assets/icon/newIcon/open.png" alt="" />
  7095. </div>
  7096. </div>
  7097. <el-button
  7098. style="margin: 0 30px 0 auto"
  7099. type="primary"
  7100. size="small"
  7101. v-if="isClose == 1 && checktoolArray.length > 0"
  7102. @click.stop="addToolChoose"
  7103. >确定</el-button
  7104. >
  7105. </div>
  7106. </div>
  7107. <div
  7108. class="tool_work_box"
  7109. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7110. >
  7111. <div class="tool_box">
  7112. <div class="tool_type_box">
  7113. <div class="chooseWho">
  7114. <div
  7115. :class="toolType == 0 ? 'isChooseActive' : ''"
  7116. @click="(toolType = 0), $forceUpdate()"
  7117. >
  7118. 互动类
  7119. </div>
  7120. <div
  7121. :class="toolType == 1 ? 'isChooseActive' : ''"
  7122. @click="(toolType = 1), $forceUpdate()"
  7123. >
  7124. 思维类
  7125. </div>
  7126. <div
  7127. :class="toolType == 2 ? 'isChooseActive' : ''"
  7128. @click="(toolType = 2), $forceUpdate()"
  7129. >
  7130. 测评类
  7131. </div>
  7132. <div
  7133. :class="toolType == 3 ? 'isChooseActive' : ''"
  7134. @click="(toolType = 3), $forceUpdate()"
  7135. >
  7136. 编程类
  7137. </div>
  7138. <div
  7139. :class="toolType == 5 ? 'isChooseActive' : ''"
  7140. @click="(toolType = 5), $forceUpdate()"
  7141. >
  7142. 学科类
  7143. </div>
  7144. </div>
  7145. </div>
  7146. <div>
  7147. <div class="toolSort" v-if="toolType == 0">
  7148. <div class="tool">
  7149. <div class="whiteBIcon" @click="addTools2(10)">
  7150. <img
  7151. src="../assets/icon/thirdToolList/time.png"
  7152. alt
  7153. />
  7154. <div style="margin: 5px 0">倒计时</div>
  7155. </div>
  7156. <div class="check" @click="addTools2(10)">
  7157. <img
  7158. src="../assets/icon/checkNo.png"
  7159. alt
  7160. v-if="checktoolArray.indexOf(10) == -1"
  7161. />
  7162. <div class="checkDiv" v-else>
  7163. <img src="../assets/icon/checkedIs.png" alt /><span
  7164. >已选择</span
  7165. >
  7166. </div>
  7167. </div>
  7168. </div>
  7169. <div class="tool">
  7170. <div class="whiteBIcon" @click="addTools2(65)">
  7171. <img
  7172. src="../assets/icon/firstToolList/pickPeople.png"
  7173. alt
  7174. />
  7175. <div style="margin: 5px 0">挑人</div>
  7176. </div>
  7177. <div class="check" @click="addTools2(65)">
  7178. <img
  7179. src="../assets/icon/checkNo.png"
  7180. alt
  7181. v-if="checktoolArray.indexOf(65) == -1"
  7182. />
  7183. <div class="checkDiv" v-else>
  7184. <img src="../assets/icon/checkedIs.png" alt /><span
  7185. >已选择</span
  7186. >
  7187. </div>
  7188. </div>
  7189. </div>
  7190. </div>
  7191. <div class="toolSort" v-if="toolType == 1">
  7192. <div class="tool">
  7193. <div class="whiteBIcon" @click="addTools2(7)">
  7194. <img
  7195. src="../assets/icon/secondToolList/mindNetwork.png"
  7196. alt
  7197. />
  7198. <div style="margin: 5px 0">思维网格</div>
  7199. </div>
  7200. <div class="check" @click="addTools2(7)">
  7201. <img
  7202. src="../assets/icon/checkNo.png"
  7203. alt
  7204. v-if="checktoolArray.indexOf(7) == -1"
  7205. />
  7206. <div class="checkDiv" v-else>
  7207. <img src="../assets/icon/checkedIs.png" alt /><span
  7208. >已选择</span
  7209. >
  7210. </div>
  7211. </div>
  7212. </div>
  7213. <div class="tool">
  7214. <div class="whiteBIcon" @click="addTools2(1)">
  7215. <img
  7216. src="../assets/icon/secondToolList/whiteBoard.png"
  7217. alt
  7218. />
  7219. <div style="margin: 5px 0">电子白板</div>
  7220. </div>
  7221. <div class="check" @click="addTools2(1)">
  7222. <img
  7223. src="../assets/icon/checkNo.png"
  7224. alt
  7225. v-if="checktoolArray.indexOf(1) == -1"
  7226. />
  7227. <div class="checkDiv" v-else>
  7228. <img src="../assets/icon/checkedIs.png" alt /><span
  7229. >已选择</span
  7230. >
  7231. </div>
  7232. </div>
  7233. </div>
  7234. <div class="tool">
  7235. <div class="whiteBIcon" @click="addTools2(52)">
  7236. <img
  7237. src="../assets/icon/fourthToolList/text.png"
  7238. alt
  7239. />
  7240. <div style="margin: 5px 0">文档</div>
  7241. </div>
  7242. <div class="check" @click="addTools2(52)">
  7243. <img
  7244. src="../assets/icon/checkNo.png"
  7245. alt
  7246. v-if="checktoolArray.indexOf(52) == -1"
  7247. />
  7248. <div class="checkDiv" v-else>
  7249. <img src="../assets/icon/checkedIs.png" alt /><span
  7250. >已选择</span
  7251. >
  7252. </div>
  7253. </div>
  7254. </div>
  7255. <div class="tool">
  7256. <div class="whiteBIcon" @click="addTools2(3)">
  7257. <img
  7258. src="../assets/icon/secondToolList/mindMapping.png"
  7259. alt
  7260. />
  7261. <div style="margin: 5px 0">思维导图</div>
  7262. </div>
  7263. <div class="check" @click="addTools2(3)">
  7264. <img
  7265. src="../assets/icon/checkNo.png"
  7266. alt
  7267. v-if="checktoolArray.indexOf(3) == -1"
  7268. />
  7269. <div class="checkDiv" v-else>
  7270. <img src="../assets/icon/checkedIs.png" alt /><span
  7271. >已选择</span
  7272. >
  7273. </div>
  7274. </div>
  7275. </div>
  7276. <div class="tool">
  7277. <div class="whiteBIcon" @click="addTools2(48)">
  7278. <img
  7279. src="../assets/icon/fourthToolList/table.png"
  7280. alt
  7281. />
  7282. <div style="margin: 5px 0">表格</div>
  7283. </div>
  7284. <div class="check" @click="addTools2(48)">
  7285. <img
  7286. src="../assets/icon/checkNo.png"
  7287. alt
  7288. v-if="checktoolArray.indexOf(48) == -1"
  7289. />
  7290. <div class="checkDiv" v-else>
  7291. <img src="../assets/icon/checkedIs.png" alt /><span
  7292. >已选择</span
  7293. >
  7294. </div>
  7295. </div>
  7296. </div>
  7297. </div>
  7298. <div class="toolSort" v-if="toolType == 6">
  7299. <div v-show="tooC == 49">
  7300. <img
  7301. @click="addTools(tooC, toolIndex, taskCount)"
  7302. src="../assets/icon/fourthToolList/group.png"
  7303. alt
  7304. />
  7305. <div style="margin: 5px 0">学生分组</div>
  7306. </div>
  7307. </div>
  7308. <div class="toolSort" v-if="toolType == 2">
  7309. <div class="tool">
  7310. <div class="whiteBIcon" @click="addTools2(16)">
  7311. <img
  7312. src="../assets/icon/thirdToolList/work.png"
  7313. alt
  7314. />
  7315. <div style="margin: 5px 0">作业提交</div>
  7316. </div>
  7317. <div class="check" @click="addTools2(16)">
  7318. <img
  7319. src="../assets/icon/checkNo.png"
  7320. alt
  7321. v-if="checktoolArray.indexOf(16) == -1"
  7322. />
  7323. <div class="checkDiv" v-else>
  7324. <img src="../assets/icon/checkedIs.png" alt /><span
  7325. >已选择</span
  7326. >
  7327. </div>
  7328. </div>
  7329. </div>
  7330. <div class="tool">
  7331. <div class="whiteBIcon" @click="addTools2(50)">
  7332. <img
  7333. src="../assets/icon/thirdToolList/plwork.png"
  7334. alt
  7335. />
  7336. <div style="margin: 5px 0">批量上传</div>
  7337. </div>
  7338. <div class="check" @click="addTools2(50)">
  7339. <img
  7340. src="../assets/icon/checkNo.png"
  7341. alt
  7342. v-if="checktoolArray.indexOf(50) == -1"
  7343. />
  7344. <div class="checkDiv" v-else>
  7345. <img src="../assets/icon/checkedIs.png" alt /><span
  7346. >已选择</span
  7347. >
  7348. </div>
  7349. </div>
  7350. </div>
  7351. </div>
  7352. <div class="toolSort" v-if="toolType == 3">
  7353. <div class="tool">
  7354. <div class="whiteBIcon" @click="addTools2(18)">
  7355. <img
  7356. src="../assets/icon/thirdToolList/trainPlatform.png"
  7357. alt
  7358. />
  7359. <div style="margin: 5px 0">训练平台</div>
  7360. </div>
  7361. <div class="check" @click="addTools2(18)">
  7362. <img
  7363. src="../assets/icon/checkNo.png"
  7364. alt
  7365. v-if="checktoolArray.indexOf(18) == -1"
  7366. />
  7367. <div class="checkDiv" v-else>
  7368. <img src="../assets/icon/checkedIs.png" alt /><span
  7369. >已选择</span
  7370. >
  7371. </div>
  7372. </div>
  7373. </div>
  7374. <div class="tool">
  7375. <div class="whiteBIcon" @click="addTools2(21)">
  7376. <img
  7377. src="../assets/icon/fourthToolList/program.png"
  7378. alt
  7379. />
  7380. <div style="margin: 5px 0">AIoT Blockly</div>
  7381. </div>
  7382. <div class="check" @click="addTools2(21)">
  7383. <img
  7384. src="../assets/icon/checkNo.png"
  7385. alt
  7386. v-if="checktoolArray.indexOf(21) == -1"
  7387. />
  7388. <div class="checkDiv" v-else>
  7389. <img src="../assets/icon/checkedIs.png" alt /><span
  7390. >已选择</span
  7391. >
  7392. </div>
  7393. </div>
  7394. </div>
  7395. <div class="tool">
  7396. <div class="whiteBIcon" @click="addTools2(23)">
  7397. <img
  7398. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7399. alt
  7400. />
  7401. <div style="margin: 5px 0">AI Python</div>
  7402. </div>
  7403. <div class="check" @click="addTools2(23)">
  7404. <img
  7405. src="../assets/icon/checkNo.png"
  7406. alt
  7407. v-if="checktoolArray.indexOf(23) == -1"
  7408. />
  7409. <div class="checkDiv" v-else>
  7410. <img src="../assets/icon/checkedIs.png" alt /><span
  7411. >已选择</span
  7412. >
  7413. </div>
  7414. </div>
  7415. </div>
  7416. <div class="tool">
  7417. <div class="whiteBIcon" @click="addTools2(24)">
  7418. <img
  7419. src="../assets/icon/fourthToolList/AIprogram.png"
  7420. alt
  7421. />
  7422. <div style="margin: 5px 0">AI Blockly</div>
  7423. </div>
  7424. <div class="check" @click="addTools2(24)">
  7425. <img
  7426. src="../assets/icon/checkNo.png"
  7427. alt
  7428. v-if="checktoolArray.indexOf(24) == -1"
  7429. />
  7430. <div class="checkDiv" v-else>
  7431. <img src="../assets/icon/checkedIs.png" alt /><span
  7432. >已选择</span
  7433. >
  7434. </div>
  7435. </div>
  7436. </div>
  7437. <div class="tool">
  7438. <div class="whiteBIcon" @click="addTools2(32)">
  7439. <img
  7440. src="../assets/icon/thirdToolList/code.png"
  7441. alt
  7442. />
  7443. <div style="margin: 5px 0">源码编辑</div>
  7444. </div>
  7445. <div class="check" @click="addTools2(32)">
  7446. <img
  7447. src="../assets/icon/checkNo.png"
  7448. alt
  7449. v-if="checktoolArray.indexOf(32) == -1"
  7450. />
  7451. <div class="checkDiv" v-else>
  7452. <img src="../assets/icon/checkedIs.png" alt /><span
  7453. >已选择</span
  7454. >
  7455. </div>
  7456. </div>
  7457. </div>
  7458. <div class="tool">
  7459. <div class="whiteBIcon" @click="addTools2(57)">
  7460. <img
  7461. src="../assets/icon/fourthToolList/cocopi.png"
  7462. alt
  7463. />
  7464. <div style="margin: 5px 0">CocoPi</div>
  7465. </div>
  7466. <div class="check" @click="addTools2(57)">
  7467. <img
  7468. src="../assets/icon/checkNo.png"
  7469. alt
  7470. v-if="checktoolArray.indexOf(57) == -1"
  7471. />
  7472. <div class="checkDiv" v-else>
  7473. <img src="../assets/icon/checkedIs.png" alt /><span
  7474. >已选择</span
  7475. >
  7476. </div>
  7477. </div>
  7478. </div>
  7479. <div class="tool">
  7480. <div class="whiteBIcon" @click="addTools2(63)">
  7481. <img
  7482. src="../assets/icon/fourthToolList/Wood.png"
  7483. alt
  7484. />
  7485. <div style="margin: 5px 0">海龟编程</div>
  7486. </div>
  7487. <div class="check" @click="addTools2(63)">
  7488. <img
  7489. src="../assets/icon/checkNo.png"
  7490. alt
  7491. v-if="checktoolArray.indexOf(63) == -1"
  7492. />
  7493. <div class="checkDiv" v-else>
  7494. <img src="../assets/icon/checkedIs.png" alt /><span
  7495. >已选择</span
  7496. >
  7497. </div>
  7498. </div>
  7499. </div>
  7500. </div>
  7501. <div class="toolSort" v-if="toolType == 5">
  7502. <div class="tool">
  7503. <div class="whiteBIcon" @click="addTools2(28)">
  7504. <img
  7505. src="../assets/icon/secondToolList/translation.png"
  7506. alt
  7507. />
  7508. <div style="margin: 5px 0">翻译</div>
  7509. </div>
  7510. <div class="check" @click="addTools2(28)">
  7511. <img
  7512. src="../assets/icon/checkNo.png"
  7513. alt
  7514. v-if="checktoolArray.indexOf(28) == -1"
  7515. />
  7516. <div class="checkDiv" v-else>
  7517. <img src="../assets/icon/checkedIs.png" alt /><span
  7518. >已选择</span
  7519. >
  7520. </div>
  7521. </div>
  7522. </div>
  7523. <div class="tool">
  7524. <div class="whiteBIcon" @click="addTools2(31)">
  7525. <img
  7526. src="../assets/icon/secondToolList/networkPanel.png"
  7527. alt
  7528. />
  7529. <div style="margin: 5px 0">数字画板</div>
  7530. </div>
  7531. <div class="check" @click="addTools2(31)">
  7532. <img
  7533. src="../assets/icon/checkNo.png"
  7534. alt
  7535. v-if="checktoolArray.indexOf(31) == -1"
  7536. />
  7537. <div class="checkDiv" v-else>
  7538. <img src="../assets/icon/checkedIs.png" alt /><span
  7539. >已选择</span
  7540. >
  7541. </div>
  7542. </div>
  7543. </div>
  7544. <div class="tool">
  7545. <div class="whiteBIcon" @click="addTools2(39)">
  7546. <img
  7547. src="../assets/icon/secondToolList/GeoGebra.png"
  7548. alt
  7549. />
  7550. <div style="margin: 5px 0">GeoGebra</div>
  7551. </div>
  7552. <div class="check" @click="addTools2(39)">
  7553. <img
  7554. src="../assets/icon/checkNo.png"
  7555. alt
  7556. v-if="checktoolArray.indexOf(39) == -1"
  7557. />
  7558. <div class="checkDiv" v-else>
  7559. <img src="../assets/icon/checkedIs.png" alt /><span
  7560. >已选择</span
  7561. >
  7562. </div>
  7563. </div>
  7564. </div>
  7565. <div class="tool">
  7566. <div class="whiteBIcon" @click="addTools2(66)">
  7567. <img
  7568. src="../assets/icon/secondToolList/formulaEdi.png"
  7569. alt
  7570. />
  7571. <div style="margin: 5px 0">公式编辑</div>
  7572. </div>
  7573. <div class="check" @click="addTools2(66)">
  7574. <img
  7575. src="../assets/icon/checkNo.png"
  7576. alt
  7577. v-if="checktoolArray.indexOf(66) == -1"
  7578. />
  7579. <div class="checkDiv" v-else>
  7580. <img src="../assets/icon/checkedIs.png" alt /><span
  7581. >已选择</span
  7582. >
  7583. </div>
  7584. </div>
  7585. </div>
  7586. <div class="tool">
  7587. <div class="whiteBIcon" @click="addTools2(67)">
  7588. <img
  7589. src="../assets/icon/secondToolList/molStr.png"
  7590. alt
  7591. />
  7592. <div style="margin: 5px 0">分子结构</div>
  7593. </div>
  7594. <div class="check" @click="addTools2(67)">
  7595. <img
  7596. src="../assets/icon/checkNo.png"
  7597. alt
  7598. v-if="checktoolArray.indexOf(67) == -1"
  7599. />
  7600. <div class="checkDiv" v-else>
  7601. <img src="../assets/icon/checkedIs.png" alt /><span
  7602. >已选择</span
  7603. >
  7604. </div>
  7605. </div>
  7606. </div>
  7607. <div class="tool">
  7608. <div class="whiteBIcon" @click="addTools2(68)">
  7609. <img
  7610. src="../assets/icon/secondToolList/timeAxis.png"
  7611. alt
  7612. />
  7613. <div style="margin: 5px 0">时间轴</div>
  7614. </div>
  7615. <div class="check" @click="addTools2(68)">
  7616. <img
  7617. src="../assets/icon/checkNo.png"
  7618. alt
  7619. v-if="checktoolArray.indexOf(68) == -1"
  7620. />
  7621. <div class="checkDiv" v-else>
  7622. <img src="../assets/icon/checkedIs.png" alt /><span
  7623. >已选择</span
  7624. >
  7625. </div>
  7626. </div>
  7627. </div>
  7628. </div>
  7629. <div class="toolSort" v-if="toolType == 7">
  7630. <div class="tool">
  7631. <div class="whiteBIcon" @click="addTools2(40)">
  7632. <img
  7633. src="../assets/icon/secondToolList/eval.png"
  7634. alt
  7635. />
  7636. <div style="margin: 5px 0">个人评价</div>
  7637. </div>
  7638. <div class="check" @click="addTools2(40)">
  7639. <img
  7640. src="../assets/icon/checkNo.png"
  7641. alt
  7642. v-if="checktoolArray.indexOf(40) == -1"
  7643. />
  7644. <div class="checkDiv" v-else>
  7645. <img src="../assets/icon/checkedIs.png" alt /><span
  7646. >已选择</span
  7647. >
  7648. </div>
  7649. </div>
  7650. </div>
  7651. </div>
  7652. <div class="toolSort" v-if="toolType == 4">
  7653. <div class="tool">
  7654. <div class="whiteBIcon" @click="addTools2(26)">
  7655. <img
  7656. src="../assets/icon/thirdToolList/courseDesign.png"
  7657. alt
  7658. />
  7659. <div style="margin: 5px 0">课程设计</div>
  7660. </div>
  7661. <div class="check" @click="addTools2(26)">
  7662. <img
  7663. src="../assets/icon/checkNo.png"
  7664. alt
  7665. v-if="checktoolArray.indexOf(26) == -1"
  7666. />
  7667. <div class="checkDiv" v-else>
  7668. <img src="../assets/icon/checkedIs.png" alt /><span
  7669. >已选择</span
  7670. >
  7671. </div>
  7672. </div>
  7673. </div>
  7674. <div class="tool">
  7675. <div class="whiteBIcon" @click="addTools2(25)">
  7676. <img
  7677. src="../assets/icon/thirdToolList/evalua.png"
  7678. alt
  7679. />
  7680. <div style="margin: 5px 0">目标管理</div>
  7681. </div>
  7682. <div class="check" @click="addTools2(25)">
  7683. <img
  7684. src="../assets/icon/checkNo.png"
  7685. alt
  7686. v-if="checktoolArray.indexOf(25) == -1"
  7687. />
  7688. <div class="checkDiv" v-else>
  7689. <img src="../assets/icon/checkedIs.png" alt /><span
  7690. >已选择</span
  7691. >
  7692. </div>
  7693. </div>
  7694. </div>
  7695. </div>
  7696. </div>
  7697. </div>
  7698. </div>
  7699. </div> -->
  7700. <div
  7701. class="vedioBox"
  7702. style="margin-top: 10px; border-radius: 20px"
  7703. v-if="
  7704. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7705. .eList &&
  7706. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7707. .eList.length &&
  7708. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7709. .eList.length > 0 &&
  7710. tType != 2
  7711. "
  7712. >
  7713. <div
  7714. class="queTop"
  7715. style="
  7716. font-size: 20px;
  7717. padding: 15px 0 15px 37px;
  7718. font-weight: bold;
  7719. "
  7720. >
  7721. <!-- <div class="question" style="width: 30px">
  7722. <img src="../assets/icon/toolIcon.png" alt />
  7723. </div>
  7724. <div class="queTitle">
  7725. <div>工具</div>
  7726. </div>-->
  7727. 评一评
  7728. </div>
  7729. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7730. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7731. <el-table
  7732. :data="
  7733. chapInfoList[courseType].chapterInfo[0].taskJson[
  7734. taskCount
  7735. ].eList
  7736. "
  7737. :header-cell-style="{ background: '#F0F4FA' }"
  7738. :row-class-name="tableRowClassName"
  7739. border
  7740. stripe
  7741. style="width: 100%"
  7742. >
  7743. <el-table-column
  7744. label="评价名称"
  7745. align="center"
  7746. >
  7747. <template slot-scope="scope"
  7748. ><div>{{ scope.row.value }}</div></template
  7749. >
  7750. </el-table-column>
  7751. <el-table-column
  7752. label="评价描述"
  7753. align="center"
  7754. >
  7755. <template slot-scope="scope"
  7756. ><div>
  7757. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7758. </div></template
  7759. >
  7760. </el-table-column>
  7761. <el-table-column label="目标" align="center">
  7762. <template slot-scope="scope"
  7763. ><div>
  7764. {{
  7765. scope.row.target
  7766. ? scope.row.target[scope.row.target.length - 1]
  7767. : "-"
  7768. }}
  7769. </div></template
  7770. ></el-table-column
  7771. >
  7772. </el-table>
  7773. <!-- <div
  7774. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7775. .chapterInfo[0].taskJson[taskCount].eList"
  7776. :key="eIndex"
  7777. class="elist_input_box"
  7778. >
  7779. <div style="width: 95%">
  7780. <div
  7781. style="
  7782. display: flex;
  7783. flex-direction: row;
  7784. flex-wrap: nowrap;
  7785. align-items: center;
  7786. "
  7787. >
  7788. <div style="max-width: calc(100% - 285px)">
  7789. <span>{{ eItem.value }}</span>
  7790. </div>
  7791. <div
  7792. style="
  7793. padding-left: 25px;
  7794. display: flex;
  7795. flex-direction: row;
  7796. align-items: center;
  7797. "
  7798. >
  7799. <el-rate
  7800. v-model="eItem.score"
  7801. :colors="colors"
  7802. disabled
  7803. ></el-rate>
  7804. </div>
  7805. </div>
  7806. <div class="elist_inptu_text" style="padding-left: 10px">
  7807. <span v-if="eItem.detail != ''">{{
  7808. eItem.detail
  7809. }}</span>
  7810. <span v-else style="color: #b2b1b3; font-size: 14px"
  7811. >暂无描述...</span
  7812. >
  7813. </div>
  7814. </div>
  7815. </div> -->
  7816. </div>
  7817. <div
  7818. v-if="evalua"
  7819. style="
  7820. border: 1px solid #e5e5e5;
  7821. max-width: 650px;
  7822. width: 100%;
  7823. margin-top: 20px;
  7824. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7825. "
  7826. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7827. >
  7828. <div class="e_add_top">
  7829. <div class="e_add_title" style="width: 100%">
  7830. <!-- <span>目标管理名称</span> -->
  7831. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7832. <img
  7833. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7834. src="../assets/line.png"
  7835. class="cru_line"
  7836. style="
  7837. width: 125px;
  7838. height: 20px;
  7839. bottom: -10px;
  7840. left: 5px;
  7841. "
  7842. />
  7843. <!-- <el-input
  7844. v-model="eTitle"
  7845. placeholder="请输入名称"
  7846. @change="setMindData"
  7847. ></el-input>-->
  7848. <div v-show="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva()"><img src="../assets/icon/newIcon/icon-slide.png" />收起目标</div>
  7849. <div v-show="!chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" style="margin:0 0 0 auto" class="show_taskD" @click="foldEva()"><img src="../assets/icon/newIcon/icon-slide.png" />展开目标</div>
  7850. </div>
  7851. </div>
  7852. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7853. <div class="e_add_list_pbox">
  7854. <div class="e_add_list_pbox_title">
  7855. <!-- <span class="type_title">切换模式</span> -->
  7856. <div class="type_content">
  7857. <span
  7858. :class="{ active: typeMode == 1 }"
  7859. @click="typeMode = 1"
  7860. >目标树</span
  7861. >
  7862. <span
  7863. :class="{ active: typeMode == 2 }"
  7864. @click="typeMode = 2"
  7865. >目标罗盘</span
  7866. >
  7867. <!-- <span
  7868. :class="{ active: typeMode == 3 }"
  7869. @click="typeMode = 3"
  7870. >目标看板</span
  7871. > -->
  7872. </div>
  7873. </div>
  7874. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7875. <Mind
  7876. :showBar="false"
  7877. :mindData="data"
  7878. style="width: 100%"
  7879. v-show="typeMode == 1"
  7880. ></Mind>
  7881. <Sunburst
  7882. :Josn="eJson"
  7883. :num="eJSONNum"
  7884. style="width: 100%"
  7885. v-if="typeMode == 2"
  7886. ></Sunburst>
  7887. <SeeBoard
  7888. :Josn="eJson"
  7889. :num="eJSONNum"
  7890. :ename="eTitle"
  7891. style="width: 100%"
  7892. v-if="typeMode == 3"
  7893. >
  7894. </SeeBoard>
  7895. </div>
  7896. </div>
  7897. </div>
  7898. </div>
  7899. </div>
  7900. </div>
  7901. <!-- <div
  7902. class="project_box"
  7903. style="margin-top: 15px; padding-bottom: 30px"
  7904. >
  7905. <div
  7906. style="
  7907. display: flex;
  7908. flex-wrap: nowrap;
  7909. flex-direction: column;
  7910. position: relative;
  7911. "
  7912. >
  7913. <div class="queTop">
  7914. <div class="question">
  7915. <img src="../assets/icon/homeWork.png" alt="" />
  7916. </div>
  7917. <div class="queTitle">
  7918. <div>作业提交<span>(提交图文视频等)</span></div>
  7919. <div>:任务:{{ task.task }}</div>
  7920. </div>
  7921. </div>
  7922. <div class="ediBottom">
  7923. <div
  7924. class="addEditor"
  7925. style="margin-top: 23px"
  7926. @click="openAddWork"
  7927. v-if="!isNoHomeWork"
  7928. >
  7929. 选择文件
  7930. </div>
  7931. <div
  7932. class="addEditor"
  7933. style="margin-top: 23px"
  7934. @click="openAddWork"
  7935. v-else
  7936. >
  7937. 已提交
  7938. </div>
  7939. </div>
  7940. </div>
  7941. </div>-->
  7942. </div>
  7943. </div>
  7944. <el-dialog
  7945. title="作业提交"
  7946. :visible.sync="dialogVisible"
  7947. :append-to-body="true"
  7948. width="500px"
  7949. :before-close="handleClose"
  7950. class="dialog_change"
  7951. >
  7952. <div class="marginT">
  7953. <div>上传文件</div>
  7954. <div
  7955. class="chapter_add"
  7956. @click="addImg($event)"
  7957. v-if="studyJuri[0].cover.length == 0"
  7958. >
  7959. <div class="up_photo">
  7960. <img src="../assets/icon/uploadImg.png" alt />
  7961. </div>
  7962. <!-- <input
  7963. type="file"
  7964. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7965. style="display: none"
  7966. @change="beforeUpload1($event, 1)"
  7967. /> -->
  7968. <input
  7969. type="file"
  7970. accept="*"
  7971. style="display: none"
  7972. @change="beforeUpload1($event, 1)"
  7973. />
  7974. <!-- <input
  7975. type="file"
  7976. accept="image/*"
  7977. capture="camera"
  7978. style="display: none"
  7979. @change="beforeUpload1($event, 1)"
  7980. /> -->
  7981. </div>
  7982. <div
  7983. class="chapter_add"
  7984. style="
  7985. display: flex;
  7986. width: 100%;
  7987. flex-direction: row;
  7988. flex-wrap: wrap;
  7989. justify-content: flex-start;
  7990. padding: 15px 0;
  7991. "
  7992. v-if="studyJuri[0].cover.length > 0"
  7993. >
  7994. <div class="upCover">
  7995. <img
  7996. :src="studyJuri[0].cover[0].url"
  7997. alt
  7998. v-if="fileType == 0"
  7999. />
  8000. <img :src="word" alt v-else-if="fileType == 1" />
  8001. <img :src="video" alt v-else-if="fileType == 2" />
  8002. <img :src="word2" alt v-else-if="fileType == 3" />
  8003. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8004. <div class="deleteWord" @click="clean(1)">
  8005. <img src="../assets/icon/deleteWorks.png" alt />
  8006. </div>
  8007. </div>
  8008. </div>
  8009. </div>
  8010. <div
  8011. class="upload_send"
  8012. @click="addCourseWorks(taskCount)"
  8013. v-if="!proVisible"
  8014. >
  8015. 提交
  8016. </div>
  8017. </el-dialog>
  8018. </div>
  8019. </div>
  8020. <div
  8021. class="pButton"
  8022. @click="(pzDialog = true), selectPz()"
  8023. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8024. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8025. >
  8026. <!-- 批 -->
  8027. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  8028. </div>
  8029. <div v-if="pzDialog == true" class="newDialogCss">
  8030. <div class="pzTop2">
  8031. <!-- <div>评论</div>
  8032. <div @click="pzDialog = false">
  8033. <img src="../assets/close1.png" alt="" />
  8034. </div> -->
  8035. <div class="checkbox">
  8036. <!-- <div class="check" style="font-size: 25px; position: unset">
  8037. 评论
  8038. </div> -->
  8039. <div class="cb-tabList">
  8040. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8041. <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div>
  8042. </div>
  8043. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  8044. <el-option label="时间降序" :value="1"></el-option>
  8045. <el-option label="时间升序" :value="2"></el-option>
  8046. <el-option label="我的评课" :value="3"></el-option>
  8047. </el-select>
  8048. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8049. </div>
  8050. </div>
  8051. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8052. <div class="pzListBox" v-if="pzList && pzList.length">
  8053. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8054. <div class="pzNavTop">
  8055. <div>评</div>
  8056. <div>
  8057. {{
  8058. pz.username && pz.username.length > 5
  8059. ? pz.username.substring(0, 5) + "..."
  8060. : pz.username
  8061. }}的评论
  8062. </div>
  8063. <div
  8064. class="pzDelete"
  8065. v-if="pz.userid == userid"
  8066. @click="deletePz(pz.id)"
  8067. >
  8068. 删除
  8069. </div>
  8070. </div>
  8071. <div
  8072. @click="checkImg(getImgList(pz.content))"
  8073. class="pzContent cont"
  8074. v-html="pz.content"
  8075. v-if="pz.type == '1'"
  8076. ></div>
  8077. <div class="pzContent" v-if="pz.type == '2'">
  8078. <audio :src="pz.content" controls="controls" ref="audio">
  8079. Your browser does not support the audio element.
  8080. </audio>
  8081. </div>
  8082. <div class="pzContent" v-if="pz.type == '3'">
  8083. <img
  8084. :src="pz.content"
  8085. style="width: 90%; margin: 0 auto; display: block"
  8086. @click="previewImg(pz.content)"
  8087. />
  8088. </div>
  8089. <div class="timeAndReply">
  8090. <div class="time">
  8091. {{ pz.time }}
  8092. </div>
  8093. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8094. </div>
  8095. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8096. <div
  8097. v-for="(h, hIndex) in pz.hfList"
  8098. :key="hIndex"
  8099. class="hfItem"
  8100. >
  8101. <div class="whoReplyWho">
  8102. <div class="hfName">{{ h.username }}</div>
  8103. <div class="hfImg">
  8104. <img src="../assets/icon/newIcons/right.png" alt="" />
  8105. </div>
  8106. <div class="hfName">{{ pz.username }}</div>
  8107. </div>
  8108. <div class="hfContent" v-html="h.content"></div>
  8109. <div class="hfBottom">
  8110. <div class="hfTime">{{ h.time }}</div>
  8111. <div
  8112. class="deleteHfItem"
  8113. @click="deleteReply(h.id)"
  8114. v-if="userid == h.userid"
  8115. >
  8116. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8117. </div>
  8118. </div>
  8119. </div>
  8120. </div>
  8121. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8122. <div class="replyInput">
  8123. <el-input v-model="reply[pzIndex]"></el-input>
  8124. </div>
  8125. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8126. </div> -->
  8127. </div>
  8128. </div>
  8129. <div class="noPz" v-else>
  8130. <img src="../assets/icon/noPz.png" alt="" />
  8131. </div>
  8132. <div class="addPzButton">
  8133. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8134. 添加评论
  8135. </div>
  8136. <!-- <div class="img1">
  8137. <div @click="(addPzDialog = true), (pzType = 2)">
  8138. <img src="../assets/audio.png" /><span>音频</span>
  8139. </div>
  8140. </div> -->
  8141. </div>
  8142. </div>
  8143. <div class="scoreList" v-if="commentTagShow==1">
  8144. <scoreItem v-for="item in scoreList.datalist" @refresh="getScoreList" :data="item" :isScore="scoreList.isScoreList.filter(i=>(i.userid==item.userid && i.courseid == item.courseId))" :key="item.courseId"/>
  8145. </div>
  8146. </div>
  8147. <div
  8148. v-if="toolDialogVisible == true"
  8149. class="toolMask"
  8150. @click="toolDialogVisible = false"
  8151. ></div>
  8152. <div v-if="toolDialogVisible == true" class="addToolCss">
  8153. <div class="toolTop">
  8154. <div style="font-weight: bold">新增工具</div>
  8155. <div @click="toolDialogVisible = false">
  8156. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8157. </div>
  8158. </div>
  8159. <div class="tool_box">
  8160. <div class="tool_type_box">
  8161. <div class="chooseWho">
  8162. <div
  8163. :class="toolType == 0 ? 'isChooseActive' : ''"
  8164. @click="(toolType = 0), $forceUpdate()"
  8165. >
  8166. 互动类
  8167. </div>
  8168. <div
  8169. :class="toolType == 1 ? 'isChooseActive' : ''"
  8170. @click="(toolType = 1), $forceUpdate()"
  8171. >
  8172. 思维类
  8173. </div>
  8174. <div
  8175. :class="toolType == 2 ? 'isChooseActive' : ''"
  8176. @click="(toolType = 2), $forceUpdate()"
  8177. >
  8178. 测评类
  8179. </div>
  8180. <div
  8181. :class="toolType == 3 ? 'isChooseActive' : ''"
  8182. @click="(toolType = 3), $forceUpdate()"
  8183. >
  8184. 编程类
  8185. </div>
  8186. <div
  8187. :class="toolType == 5 ? 'isChooseActive' : ''"
  8188. @click="(toolType = 5), $forceUpdate()"
  8189. >
  8190. 学科类
  8191. </div>
  8192. </div>
  8193. </div>
  8194. <div>
  8195. <div class="toolSort" v-if="toolType == 0">
  8196. <div
  8197. class="tool"
  8198. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8199. @click="addTools2(10)"
  8200. >
  8201. <div class="whiteBIcon">
  8202. <img src="../assets/icon/thirdToolList/time.png" alt />
  8203. <div style="margin: 5px 0">倒计时</div>
  8204. </div>
  8205. <div class="check">
  8206. <div
  8207. v-if="checktoolArray.indexOf(10) == -1"
  8208. class="noChoose"
  8209. ></div>
  8210. <div v-else class="isChoose"></div>
  8211. </div>
  8212. </div>
  8213. <div
  8214. class="tool"
  8215. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8216. @click="addTools2(65)"
  8217. >
  8218. <div class="whiteBIcon">
  8219. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8220. <div style="margin: 5px 0">挑人</div>
  8221. </div>
  8222. <div class="check">
  8223. <div
  8224. v-if="checktoolArray.indexOf(65) == -1"
  8225. class="noChoose"
  8226. ></div>
  8227. <div v-else class="isChoose"></div>
  8228. </div>
  8229. </div>
  8230. </div>
  8231. <div class="toolSort" v-if="toolType == 1">
  8232. <div
  8233. class="tool"
  8234. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8235. @click="addTools2(7)"
  8236. >
  8237. <div class="whiteBIcon">
  8238. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8239. <div style="margin: 5px 0">思维网格</div>
  8240. </div>
  8241. <div class="check">
  8242. <div
  8243. v-if="checktoolArray.indexOf(7) == -1"
  8244. class="noChoose"
  8245. ></div>
  8246. <div v-else class="isChoose"></div>
  8247. </div>
  8248. </div>
  8249. <div
  8250. class="tool"
  8251. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8252. @click="addTools2(1)"
  8253. >
  8254. <div class="whiteBIcon">
  8255. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8256. <div style="margin: 5px 0">电子白板</div>
  8257. </div>
  8258. <div class="check">
  8259. <div
  8260. v-if="checktoolArray.indexOf(1) == -1"
  8261. class="noChoose"
  8262. ></div>
  8263. <div v-else class="isChoose"></div>
  8264. </div>
  8265. </div>
  8266. <div
  8267. class="tool"
  8268. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8269. @click="addTools2(52)"
  8270. >
  8271. <div class="whiteBIcon">
  8272. <img src="../assets/icon/fourthToolList/text.png" alt />
  8273. <div style="margin: 5px 0">文档</div>
  8274. </div>
  8275. <div class="check">
  8276. <div
  8277. v-if="checktoolArray.indexOf(52) == -1"
  8278. class="noChoose"
  8279. ></div>
  8280. <div v-else class="isChoose"></div>
  8281. </div>
  8282. </div>
  8283. <div
  8284. class="tool"
  8285. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8286. @click="addTools2(3)"
  8287. >
  8288. <div class="whiteBIcon">
  8289. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8290. <div style="margin: 5px 0">思维导图</div>
  8291. </div>
  8292. <div class="check">
  8293. <div
  8294. v-if="checktoolArray.indexOf(3) == -1"
  8295. class="noChoose"
  8296. ></div>
  8297. <div v-else class="isChoose"></div>
  8298. </div>
  8299. </div>
  8300. <div
  8301. class="tool"
  8302. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8303. @click="addTools2(48)"
  8304. >
  8305. <div class="whiteBIcon">
  8306. <img src="../assets/icon/fourthToolList/table.png" alt />
  8307. <div style="margin: 5px 0">表格</div>
  8308. </div>
  8309. <div class="check">
  8310. <div
  8311. v-if="checktoolArray.indexOf(48) == -1"
  8312. class="noChoose"
  8313. ></div>
  8314. <div v-else class="isChoose"></div>
  8315. </div>
  8316. </div>
  8317. </div>
  8318. <div class="toolSort" v-if="toolType == 6">
  8319. <div v-show="tooC == 49">
  8320. <img
  8321. @click="addTools(tooC, toolIndex, taskCount)"
  8322. src="../assets/icon/fourthToolList/group.png"
  8323. alt
  8324. />
  8325. <div style="margin: 5px 0">学生分组</div>
  8326. </div>
  8327. </div>
  8328. <div class="toolSort" v-if="toolType == 2">
  8329. <div
  8330. class="tool"
  8331. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8332. @click="addTools2(16)"
  8333. >
  8334. <div class="whiteBIcon">
  8335. <img src="../assets/icon/thirdToolList/work.png" alt />
  8336. <div style="margin: 5px 0">作业提交</div>
  8337. </div>
  8338. <div class="check">
  8339. <div
  8340. v-if="checktoolArray.indexOf(16) == -1"
  8341. class="noChoose"
  8342. ></div>
  8343. <div v-else class="isChoose"></div>
  8344. </div>
  8345. </div>
  8346. <div
  8347. class="tool"
  8348. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8349. @click="addTools2(50)"
  8350. >
  8351. <div class="whiteBIcon">
  8352. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8353. <div style="margin: 5px 0">批量上传</div>
  8354. </div>
  8355. <div class="check">
  8356. <div
  8357. v-if="checktoolArray.indexOf(50) == -1"
  8358. class="noChoose"
  8359. ></div>
  8360. <div v-else class="isChoose"></div>
  8361. </div>
  8362. </div>
  8363. </div>
  8364. <div class="toolSort" v-if="toolType == 3">
  8365. <div
  8366. class="tool"
  8367. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8368. @click="addTools2(18)"
  8369. >
  8370. <div class="whiteBIcon">
  8371. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8372. <div style="margin: 5px 0">训练平台</div>
  8373. </div>
  8374. <div class="check">
  8375. <div
  8376. v-if="checktoolArray.indexOf(18) == -1"
  8377. class="noChoose"
  8378. ></div>
  8379. <div v-else class="isChoose"></div>
  8380. </div>
  8381. </div>
  8382. <div
  8383. class="tool"
  8384. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8385. @click="addTools2(21)"
  8386. >
  8387. <div class="whiteBIcon">
  8388. <img src="../assets/icon/fourthToolList/program.png" alt />
  8389. <div style="margin: 5px 0">AIoT Blockly</div>
  8390. </div>
  8391. <div class="check">
  8392. <div
  8393. v-if="checktoolArray.indexOf(21) == -1"
  8394. class="noChoose"
  8395. ></div>
  8396. <div v-else class="isChoose"></div>
  8397. </div>
  8398. </div>
  8399. <div
  8400. class="tool"
  8401. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8402. @click="addTools2(23)"
  8403. >
  8404. <div class="whiteBIcon">
  8405. <img
  8406. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8407. alt
  8408. />
  8409. <div style="margin: 5px 0">AI Python</div>
  8410. </div>
  8411. <div class="check">
  8412. <div
  8413. v-if="checktoolArray.indexOf(23) == -1"
  8414. class="noChoose"
  8415. ></div>
  8416. <div v-else class="isChoose"></div>
  8417. </div>
  8418. </div>
  8419. <div
  8420. class="tool"
  8421. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8422. @click="addTools2(24)"
  8423. >
  8424. <div class="whiteBIcon">
  8425. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8426. <div style="margin: 5px 0">AI Blockly</div>
  8427. </div>
  8428. <div class="check">
  8429. <div
  8430. v-if="checktoolArray.indexOf(24) == -1"
  8431. class="noChoose"
  8432. ></div>
  8433. <div v-else class="isChoose"></div>
  8434. </div>
  8435. </div>
  8436. <div
  8437. class="tool"
  8438. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8439. @click="addTools2(32)"
  8440. >
  8441. <div class="whiteBIcon">
  8442. <img src="../assets/icon/thirdToolList/code.png" alt />
  8443. <div style="margin: 5px 0">源码编辑</div>
  8444. </div>
  8445. <div class="check">
  8446. <div
  8447. v-if="checktoolArray.indexOf(32) == -1"
  8448. class="noChoose"
  8449. ></div>
  8450. <div v-else class="isChoose"></div>
  8451. </div>
  8452. </div>
  8453. <div
  8454. class="tool"
  8455. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8456. @click="addTools2(57)"
  8457. >
  8458. <div class="whiteBIcon">
  8459. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8460. <div style="margin: 5px 0">CocoPi</div>
  8461. </div>
  8462. <div class="check">
  8463. <div
  8464. v-if="checktoolArray.indexOf(57) == -1"
  8465. class="noChoose"
  8466. ></div>
  8467. <div v-else class="isChoose"></div>
  8468. </div>
  8469. </div>
  8470. <div
  8471. class="tool"
  8472. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8473. @click="addTools2(63)"
  8474. >
  8475. <div class="whiteBIcon">
  8476. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8477. <div style="margin: 5px 0">海龟编程</div>
  8478. </div>
  8479. <div class="check">
  8480. <div
  8481. v-if="checktoolArray.indexOf(63) == -1"
  8482. class="noChoose"
  8483. ></div>
  8484. <div v-else class="isChoose"></div>
  8485. </div>
  8486. </div>
  8487. <div
  8488. class="tool"
  8489. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8490. @click="addTools2(71)"
  8491. >
  8492. <div class="whiteBIcon">
  8493. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  8494. <div style="margin: 5px 0">AI智能体</div>
  8495. </div>
  8496. <div class="check">
  8497. <div
  8498. v-if="checktoolArray.indexOf(71) == -1"
  8499. class="noChoose"
  8500. ></div>
  8501. <div v-else class="isChoose"></div>
  8502. </div>
  8503. </div>
  8504. </div>
  8505. <div class="toolSort" v-if="toolType == 7">
  8506. <div
  8507. class="tool"
  8508. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8509. @click="addTools2(40)"
  8510. >
  8511. <div class="whiteBIcon">
  8512. <img src="../assets/icon/secondToolList/eval.png" alt />
  8513. <div style="margin: 5px 0">个人评价</div>
  8514. </div>
  8515. <div class="check">
  8516. <div
  8517. v-if="checktoolArray.indexOf(40) == -1"
  8518. class="noChoose"
  8519. ></div>
  8520. <div v-else class="isChoose"></div>
  8521. </div>
  8522. </div>
  8523. </div>
  8524. <div class="toolSort" v-if="toolType == 5">
  8525. <div
  8526. class="tool"
  8527. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8528. @click="addTools2(28)"
  8529. >
  8530. <div class="whiteBIcon">
  8531. <img src="../assets/icon/secondToolList/translation.png" alt />
  8532. <div style="margin: 5px 0">翻译</div>
  8533. </div>
  8534. <div class="check">
  8535. <div
  8536. v-if="checktoolArray.indexOf(28) == -1"
  8537. class="noChoose"
  8538. ></div>
  8539. <div v-else class="isChoose"></div>
  8540. </div>
  8541. </div>
  8542. <div
  8543. class="tool"
  8544. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8545. @click="addTools2(31)"
  8546. >
  8547. <div class="whiteBIcon">
  8548. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8549. <div style="margin: 5px 0">数字画板</div>
  8550. </div>
  8551. <div class="check">
  8552. <div
  8553. v-if="checktoolArray.indexOf(31) == -1"
  8554. class="noChoose"
  8555. ></div>
  8556. <div v-else class="isChoose"></div>
  8557. </div>
  8558. </div>
  8559. <div
  8560. class="tool"
  8561. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8562. @click="addTools2(39)"
  8563. >
  8564. <div class="whiteBIcon">
  8565. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8566. <div style="margin: 5px 0">GeoGebra</div>
  8567. </div>
  8568. <div class="check">
  8569. <div
  8570. v-if="checktoolArray.indexOf(39) == -1"
  8571. class="noChoose"
  8572. ></div>
  8573. <div v-else class="isChoose"></div>
  8574. </div>
  8575. </div>
  8576. <div
  8577. class="tool"
  8578. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8579. @click="addTools2(66)"
  8580. >
  8581. <div class="whiteBIcon">
  8582. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8583. <div style="margin: 5px 0">公式编辑</div>
  8584. </div>
  8585. <div class="check">
  8586. <div
  8587. v-if="checktoolArray.indexOf(66) == -1"
  8588. class="noChoose"
  8589. ></div>
  8590. <div v-else class="isChoose"></div>
  8591. </div>
  8592. </div>
  8593. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8594. <div class="whiteBIcon" @click="addTools2(67)">
  8595. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8596. <div style="margin: 5px 0">分子结构</div>
  8597. </div>
  8598. <div class="check" @click="addTools2(67)">
  8599. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8600. <div v-else class="isChoose"></div>
  8601. </div>
  8602. </div> -->
  8603. <div
  8604. class="tool"
  8605. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8606. @click="addTools2(68)"
  8607. >
  8608. <div class="whiteBIcon">
  8609. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8610. <div style="margin: 5px 0">时间轴</div>
  8611. </div>
  8612. <div class="check">
  8613. <div
  8614. v-if="checktoolArray.indexOf(68) == -1"
  8615. class="noChoose"
  8616. ></div>
  8617. <div v-else class="isChoose"></div>
  8618. </div>
  8619. </div>
  8620. <!-- <div
  8621. class="tool"
  8622. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8623. @click="addTools2(69)"
  8624. >
  8625. <div class="whiteBIcon">
  8626. <img src="../assets/icon/secondToolList/english.png" alt />
  8627. <div style="margin: 5px 0">英语写作</div>
  8628. </div>
  8629. <div class="check">
  8630. <div
  8631. v-if="checktoolArray.indexOf(69) == -1"
  8632. class="noChoose"
  8633. ></div>
  8634. <div v-else class="isChoose"></div>
  8635. </div>
  8636. </div> -->
  8637. </div>
  8638. <div class="toolSort" v-if="toolType == 4">
  8639. <div
  8640. class="tool"
  8641. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8642. @click="addTools2(26)"
  8643. >
  8644. <div class="whiteBIcon">
  8645. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8646. <div style="margin: 5px 0">课程设计</div>
  8647. </div>
  8648. <div class="check">
  8649. <div
  8650. v-if="checktoolArray.indexOf(26) == -1"
  8651. class="noChoose"
  8652. ></div>
  8653. <div v-else class="isChoose"></div>
  8654. </div>
  8655. </div>
  8656. <div
  8657. class="tool"
  8658. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8659. @click="addTools2(25)"
  8660. >
  8661. <div class="whiteBIcon">
  8662. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8663. <div style="margin: 5px 0">目标管理</div>
  8664. </div>
  8665. <div class="check">
  8666. <div
  8667. v-if="checktoolArray.indexOf(25) == -1"
  8668. class="noChoose"
  8669. ></div>
  8670. <div v-else class="isChoose"></div>
  8671. </div>
  8672. </div>
  8673. </div>
  8674. </div>
  8675. </div>
  8676. <span
  8677. slot="footer"
  8678. class="dialog-footer"
  8679. style="display: block; text-align: center; padding: 0 0 10px 0"
  8680. >
  8681. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8682. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8683. </span>
  8684. </div>
  8685. <div
  8686. v-if="replyDialogVisible == true"
  8687. class="addDialogCss"
  8688. v-el-drag-dialog
  8689. >
  8690. <div class="pzTop">
  8691. <div class="teacherPz">
  8692. <div class="teacherPzImg">
  8693. <img src="../assets/icon/teacherPz.png" alt="" />
  8694. </div>
  8695. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8696. </div>
  8697. <div @click="replyDialogVisible = false">
  8698. <img src="../assets/close1.png" class="pzClose" alt="" />
  8699. </div>
  8700. </div>
  8701. <div class="addPzBox">
  8702. <!-- <div class="addPzCheck">
  8703. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8704. >文本</span
  8705. >
  8706. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8707. >音频</span
  8708. >
  8709. </div> -->
  8710. <div style="height: calc(100% - 50px)">
  8711. <editor-bar
  8712. class="binfo_input pzConText"
  8713. style="width: 100% !important; margin: 0 auto"
  8714. placeholder="请输入回复描述"
  8715. v-model="reply"
  8716. @change="change"
  8717. ></editor-bar>
  8718. </div>
  8719. <div class="addTextCss" @click="addHf">确定</div>
  8720. </div>
  8721. </div>
  8722. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8723. <div class="pzTop">
  8724. <div class="teacherPz">
  8725. <div class="teacherPzImg">
  8726. <img src="../assets/icon/teacherPz.png" alt="" />
  8727. </div>
  8728. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8729. </div>
  8730. <div @click="addPzDialog = false">
  8731. <img src="../assets/close1.png" class="pzClose" alt="" />
  8732. </div>
  8733. </div>
  8734. <div class="addPzBox">
  8735. <div class="addPzCheck">
  8736. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8737. >文本</span
  8738. >
  8739. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8740. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8741. >音频</span
  8742. >
  8743. </div>
  8744. <div style="height: calc(100% - 95px)">
  8745. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8746. v-if="pzType == 1"></textarea> -->
  8747. <editor-bar
  8748. class="binfo_input pzConText"
  8749. style="width: 100% !important"
  8750. placeholder="请输入任务描述"
  8751. v-model="pzConText"
  8752. @change="change"
  8753. v-if="pzType == 1"
  8754. ></editor-bar>
  8755. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8756. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8757. <div @click="addImg($event)">
  8758. <el-button type="primary">上传图片</el-button>
  8759. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8760. @change="beforeUpload1($event, 4)" />
  8761. </div>
  8762. </div> -->
  8763. </div>
  8764. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8765. 确定
  8766. </div>
  8767. </div>
  8768. </div>
  8769. <div v-if="proVisible" class="mask">
  8770. <div class="progressBox">
  8771. <!-- <div id="closePro" class="closeCss">
  8772. <img src="../assets/icon/close.png" alt />
  8773. </div> -->
  8774. <div class="lbox">
  8775. <img src="../assets/loading.gif" />上传中,请稍后
  8776. </div>
  8777. <div style="margin-bottom: 10px">
  8778. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8779. </div>
  8780. <el-progress
  8781. :text-inside="true"
  8782. :stroke-width="20"
  8783. :percentage="progress"
  8784. style="width: 80%"
  8785. ></el-progress>
  8786. </div>
  8787. </div>
  8788. <div v-if="proVisible2" class="mask">
  8789. <div class="progressBox">
  8790. <div class="lbox">
  8791. <img src="../assets/loading.gif" />上传中,请稍后
  8792. </div>
  8793. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8794. </div>
  8795. </div>
  8796. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8797. <img width="100%" :src="dialogImageUrl" alt />
  8798. </el-dialog>
  8799. <el-dialog
  8800. :title="noteName != '' ? noteName : '查看问卷'"
  8801. :visible.sync="dialogVisible5"
  8802. :append-to-body="true"
  8803. width="1000px"
  8804. :before-close="handleClose"
  8805. class="dialog_diy dialog_diy3"
  8806. >
  8807. <div>
  8808. <div
  8809. class="a_add_title"
  8810. style="
  8811. display: flex;
  8812. flex-direction: row;
  8813. align-items: center;
  8814. justify-content: center;
  8815. "
  8816. >
  8817. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8818. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8819. </div>
  8820. <div class="a_addBox">
  8821. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8822. 题目内容
  8823. </div>
  8824. <div
  8825. class="a_add_box"
  8826. v-for="(item1, index1) in askJson.askCount"
  8827. :key="index1"
  8828. >
  8829. <div class="a_add_head">
  8830. <div style="display: flex">
  8831. <span class="askIndex"> {{ index1 + 1 }}</span>
  8832. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8833. </div>
  8834. <img
  8835. v-if="askJson.askJson[index1].img"
  8836. :src="askJson.askJson[index1].img"
  8837. style="height: 300px; margin-top: 10px; max-width: 100%"
  8838. />
  8839. </div>
  8840. <div class="a_add_body">
  8841. <div class="a_add_input">
  8842. <el-radio-group
  8843. v-model="radio[index1]"
  8844. v-if="
  8845. askJson.askJson[index1].type == '1' ||
  8846. !askJson.askJson[index1].type
  8847. "
  8848. >
  8849. <el-radio
  8850. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8851. .checkList"
  8852. :key="checkIndex"
  8853. :label="checkIndex"
  8854. :disabled="isAnswer"
  8855. class="redioStyle"
  8856. ><span v-html="item2"></span
  8857. ></el-radio>
  8858. </el-radio-group>
  8859. <el-checkbox-group
  8860. v-model="radio[index1]"
  8861. v-if="askJson.askJson[index1].type == '2'"
  8862. >
  8863. <el-checkbox
  8864. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8865. .checkList"
  8866. :key="checkIndex1"
  8867. :label="checkIndex1"
  8868. :disabled="isAnswer"
  8869. class="redioStyle"
  8870. ><span v-html="item2"></span>
  8871. </el-checkbox>
  8872. </el-checkbox-group>
  8873. </div>
  8874. </div>
  8875. </div>
  8876. </div>
  8877. </div>
  8878. <span slot="footer" class="dialog-footer">
  8879. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8880. >取 消</el-button
  8881. >
  8882. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8883. >确 定</el-button
  8884. >
  8885. </span>
  8886. </el-dialog>
  8887. <el-dialog
  8888. :title="noteName != '' ? noteName : '查看问卷'"
  8889. :visible.sync="dialogVisible5Teacher"
  8890. :append-to-body="true"
  8891. width="1000px"
  8892. :before-close="handleClose"
  8893. class="dialog_diy dialog_diy3"
  8894. >
  8895. <div>
  8896. <div class="w_name">
  8897. 学生姓名:<span>{{ sStudent.student }}</span>
  8898. </div>
  8899. <div
  8900. class="a_add_title"
  8901. style="
  8902. display: flex;
  8903. flex-direction: row;
  8904. align-items: center;
  8905. justify-content: center;
  8906. "
  8907. >
  8908. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8909. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8910. </div>
  8911. <div class="a_addBox">
  8912. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8913. 题目内容
  8914. </div>
  8915. <div
  8916. class="a_add_box"
  8917. v-for="(item1, index1) in askJson.askCount"
  8918. :key="index1"
  8919. >
  8920. <div class="a_add_head">
  8921. <div style="display: flex">
  8922. <span class="askIndex">{{ index1 + 1 }}</span>
  8923. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8924. </div>
  8925. <img
  8926. v-if="askJson.askJson[index1].img"
  8927. :src="askJson.askJson[index1].img"
  8928. style="height: 300px; margin-top: 10px; max-width: 100%"
  8929. />
  8930. </div>
  8931. <div class="a_add_body">
  8932. <div class="a_add_input">
  8933. <el-radio-group
  8934. v-model="radio[index1]"
  8935. v-if="
  8936. askJson.askJson[index1].type == '1' ||
  8937. !askJson.askJson[index1].type
  8938. "
  8939. >
  8940. <el-radio
  8941. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8942. .checkList"
  8943. :key="checkIndex"
  8944. :label="checkIndex"
  8945. :disabled="isAnswer"
  8946. class="redioStyle"
  8947. ><span v-html="item2"></span
  8948. ></el-radio>
  8949. </el-radio-group>
  8950. <el-checkbox-group
  8951. v-model="radio[index1]"
  8952. v-if="askJson.askJson[index1].type == '2'"
  8953. >
  8954. <el-checkbox
  8955. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8956. .checkList"
  8957. :key="checkIndex1"
  8958. :label="checkIndex1"
  8959. :disabled="isAnswer"
  8960. class="redioStyle"
  8961. ><span v-html="item2"></span>
  8962. </el-checkbox>
  8963. </el-checkbox-group>
  8964. </div>
  8965. </div>
  8966. </div>
  8967. </div>
  8968. </div>
  8969. <span slot="footer" class="dialog-footer">
  8970. <el-button
  8971. @click="dialogVisible5Teacher = false"
  8972. v-show="noteName == ''"
  8973. >取 消</el-button
  8974. >
  8975. <el-button
  8976. type="primary"
  8977. @click="addStudentAskTeacher"
  8978. v-show="noteName == ''"
  8979. >确 定</el-button
  8980. >
  8981. </span>
  8982. </el-dialog>
  8983. <el-dialog
  8984. :title="noteName != '' ? noteName : '查看选择题'"
  8985. :visible.sync="dialogVisibleChoice"
  8986. :append-to-body="true"
  8987. width="1000px"
  8988. :before-close="handleClose"
  8989. class="dialog_diy dialog_diy3"
  8990. >
  8991. <div>
  8992. <!-- <div class="a_add_title" style="
  8993. display: flex;
  8994. flex-direction: row;
  8995. align-items: center;
  8996. justify-content: center;
  8997. ">
  8998. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8999. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9000. </div> -->
  9001. <div class="a_addBox">
  9002. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9003. 题目内容
  9004. </div>
  9005. <div
  9006. class="a_add_box"
  9007. v-for="(item1, index1) in testJson.testCount"
  9008. :key="index1"
  9009. >
  9010. <div class="a_add_head">
  9011. <div style="display: flex">
  9012. <span class="askIndex">{{ index1 + 1 }}</span>
  9013. <div
  9014. v-if="testJson.testJson[index1].type == '1'"
  9015. style="margin-right: 5px; min-width: 70px"
  9016. >
  9017. (单选题)
  9018. </div>
  9019. <div
  9020. v-if="testJson.testJson[index1].type == '2'"
  9021. style="margin-right: 5px; min-width: 70px"
  9022. >
  9023. (多选题)
  9024. </div>
  9025. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9026. </div>
  9027. <img
  9028. v-if="testJson.testJson[index1].img"
  9029. :src="testJson.testJson[index1].img"
  9030. style="height: 300px; margin-top: 10px; max-width: 100%"
  9031. />
  9032. </div>
  9033. <div
  9034. class="timuImgBox"
  9035. v-if="
  9036. testJson.testJson[index1].timuList &&
  9037. testJson.testJson[index1].timuList.length
  9038. "
  9039. >
  9040. <div
  9041. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9042. :key="tIndex"
  9043. class="timuImg"
  9044. @click.stop="previewImg(timg.src)"
  9045. >
  9046. <img :src="timg.src" alt="" />
  9047. </div>
  9048. </div>
  9049. <div class="a_add_body">
  9050. <div class="a_add_input">
  9051. <el-radio-group
  9052. v-model="radio[index1]"
  9053. v-if="testJson.testJson[index1].type == '1'"
  9054. >
  9055. <div class="radioBox">
  9056. <el-radio
  9057. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9058. .checkList"
  9059. :key="checkIndex"
  9060. :label="checkIndex"
  9061. :disabled="isAnswer"
  9062. class="redioStyle"
  9063. >
  9064. <div
  9065. style="margin-right: 10px"
  9066. v-if="item2 && item2.imgType && item2.imgType == 1"
  9067. >
  9068. <div class="inImg" @click.stop="previewImg(item2.src)">
  9069. <img :src="item2.src" alt="" />
  9070. </div>
  9071. </div>
  9072. <span v-else v-html="item2"></span>
  9073. </el-radio>
  9074. </div>
  9075. </el-radio-group>
  9076. <el-checkbox-group
  9077. v-model="radio[index1]"
  9078. v-if="testJson.testJson[index1].type == '2'"
  9079. >
  9080. <div class="radioBox">
  9081. <el-checkbox
  9082. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9083. .checkList"
  9084. :key="checkIndex"
  9085. :label="checkIndex"
  9086. :disabled="isAnswer"
  9087. class="redioStyle"
  9088. >
  9089. <div
  9090. style="margin-right: 10px"
  9091. v-if="item2 && item2.imgType && item2.imgType == 1"
  9092. >
  9093. <div class="inImg" @click.stop="previewImg(item2.src)">
  9094. <img :src="item2.src" alt="" />
  9095. </div>
  9096. </div>
  9097. <span v-else v-html="item2"></span>
  9098. </el-checkbox>
  9099. </div>
  9100. </el-checkbox-group>
  9101. </div>
  9102. </div>
  9103. </div>
  9104. </div>
  9105. </div>
  9106. <span slot="footer" class="dialog-footer">
  9107. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9108. >取 消</el-button
  9109. >
  9110. <el-button
  9111. type="primary"
  9112. @click="addStudentTest"
  9113. v-show="noteName == ''"
  9114. >确 定</el-button
  9115. >
  9116. </span>
  9117. </el-dialog>
  9118. <el-dialog
  9119. :title="noteName != '' ? noteName : '查看选择题'"
  9120. :visible.sync="dialogVisibleChoiceTeacher"
  9121. :append-to-body="true"
  9122. width="1000px"
  9123. :before-close="handleClose"
  9124. class="dialog_diy dialog_diy3"
  9125. >
  9126. <div>
  9127. <div class="w_name">
  9128. 学生姓名:<span>{{ sStudent.student }}</span>
  9129. </div>
  9130. <div class="a_addBox">
  9131. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9132. 题目内容
  9133. </div>
  9134. <div
  9135. class="a_add_box"
  9136. v-for="(item1, index1) in testJson.testCount"
  9137. :key="index1"
  9138. >
  9139. <div class="a_add_head">
  9140. <div style="display: flex">
  9141. <span class="askIndex">{{ index1 + 1 }}</span>
  9142. <div
  9143. v-if="testJson.testJson[index1].type == '1'"
  9144. style="margin-right: 5px; min-width: 70px"
  9145. >
  9146. (单选题)
  9147. </div>
  9148. <div
  9149. v-if="testJson.testJson[index1].type == '2'"
  9150. style="margin-right: 5px; min-width: 70px"
  9151. >
  9152. (多选题)
  9153. </div>
  9154. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9155. </div>
  9156. <img
  9157. v-if="testJson.testJson[index1].img"
  9158. :src="testJson.testJson[index1].img"
  9159. style="height: 300px; margin-top: 10px; max-width: 100%"
  9160. />
  9161. </div>
  9162. <div
  9163. class="timuImgBox"
  9164. v-if="
  9165. testJson.testJson[index1].timuList &&
  9166. testJson.testJson[index1].timuList.length
  9167. "
  9168. >
  9169. <div
  9170. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9171. :key="tIndex"
  9172. class="timuImg"
  9173. @click.stop="previewImg(timg.src)"
  9174. >
  9175. <img :src="timg.src" alt="" />
  9176. </div>
  9177. </div>
  9178. <div class="a_add_body">
  9179. <div class="a_add_input">
  9180. <el-radio-group
  9181. v-model="radio[index1]"
  9182. v-if="testJson.testJson[index1].type == '1'"
  9183. >
  9184. <div class="radioBox">
  9185. <el-radio
  9186. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9187. .checkList"
  9188. :key="checkIndex"
  9189. :label="checkIndex"
  9190. :disabled="isAnswer"
  9191. class="redioStyle"
  9192. >
  9193. <div
  9194. style="margin-right: 10px"
  9195. v-if="item2 && item2.imgType && item2.imgType == 1"
  9196. >
  9197. <div class="inImg" @click.stop="previewImg(item2.src)">
  9198. <img :src="item2.src" alt="" />
  9199. </div>
  9200. </div>
  9201. <span v-else v-html="item2"></span>
  9202. </el-radio>
  9203. </div>
  9204. </el-radio-group>
  9205. <el-checkbox-group
  9206. v-model="radio[index1]"
  9207. v-if="testJson.testJson[index1].type == '2'"
  9208. >
  9209. <div class="radioBox">
  9210. <el-checkbox
  9211. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9212. .checkList"
  9213. :key="checkIndex"
  9214. :label="checkIndex"
  9215. :disabled="isAnswer"
  9216. class="redioStyle"
  9217. >
  9218. <div
  9219. style="margin-right: 10px"
  9220. v-if="item2 && item2.imgType && item2.imgType == 1"
  9221. >
  9222. <div class="inImg" @click.stop="previewImg(item2.src)">
  9223. <img :src="item2.src" alt="" />
  9224. </div>
  9225. </div>
  9226. <span v-else v-html="item2"></span>
  9227. </el-checkbox>
  9228. </div>
  9229. </el-checkbox-group>
  9230. </div>
  9231. </div>
  9232. </div>
  9233. </div>
  9234. </div>
  9235. <span slot="footer" class="dialog-footer">
  9236. <el-button
  9237. @click="dialogVisibleChoiceTeacher = false"
  9238. v-show="noteName == ''"
  9239. >取 消</el-button
  9240. >
  9241. <el-button
  9242. type="primary"
  9243. @click="addStudentTestTeacher"
  9244. v-show="noteName == ''"
  9245. >确 定</el-button
  9246. >
  9247. </span>
  9248. </el-dialog>
  9249. <el-dialog
  9250. title="查看富文本"
  9251. :visible.sync="dialogVisible1"
  9252. :append-to-body="true"
  9253. width="500px"
  9254. :before-close="handleClose"
  9255. class="dialog_diy textCss"
  9256. >
  9257. <el-form style="font-size: 20px">
  9258. <el-form-item label="文本标题" class="textTitle">
  9259. <div style="font-size: 20px">{{ text.name }}</div>
  9260. </el-form-item>
  9261. <div>富文本内容</div>
  9262. <div
  9263. v-html="text.url"
  9264. style="font-size: 18px; padding: 40px 0 0 0"
  9265. ></div>
  9266. </el-form>
  9267. <span slot="footer" class="dialog-footer">
  9268. <el-button type="primary" @click="dialogVisible1 = false"
  9269. >确定</el-button
  9270. >
  9271. </span>
  9272. </el-dialog>
  9273. <el-dialog
  9274. title="文件预览"
  9275. :visible.sync="dialogVisible3"
  9276. width="50%"
  9277. :before-close="handleClose"
  9278. class="dialog_diy"
  9279. :class="{ fullStyle: full }"
  9280. >
  9281. <div slot="title" class="header-title">
  9282. <div style="color: #fff">文件预览</div>
  9283. <div style="position: absolute; top: 19px; right: 50px">
  9284. <img
  9285. src="../assets/full.png"
  9286. style="height: 16px; cursor: pointer"
  9287. alt=""
  9288. @click="fullTools"
  9289. />
  9290. </div>
  9291. </div>
  9292. <pdf
  9293. v-if="showPDF"
  9294. :pdfUrl="pptImgUrl"
  9295. style="width: 100%; height: 520px; overflow: auto"
  9296. :class="{ fullStyle: full }"
  9297. ></pdf>
  9298. <iframe
  9299. v-else
  9300. :src="pptImgUrl"
  9301. frameborder="0"
  9302. width="100%"
  9303. height="600"
  9304. :class="{ fullStyle: full }"
  9305. ></iframe>
  9306. </el-dialog>
  9307. <el-dialog
  9308. title="文件预览"
  9309. :visible.sync="dialogVisible6"
  9310. width="50%"
  9311. :before-close="handleClose"
  9312. class="dialog_diy"
  9313. >
  9314. <iframe
  9315. :src="pptImgUrl1"
  9316. frameborder="0"
  9317. width="100%"
  9318. height="600"
  9319. ></iframe>
  9320. </el-dialog>
  9321. <el-dialog
  9322. title="提示"
  9323. :visible.sync="dialogVisible4"
  9324. :append-to-body="true"
  9325. width="800px"
  9326. :before-close="handleClose"
  9327. class="dialog_diy notice"
  9328. >
  9329. <div>此功能暂未开放!</div>
  9330. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9331. </el-dialog>
  9332. <el-dialog
  9333. title="问答"
  9334. :visible.sync="answerDialogVisible"
  9335. :append-to-body="true"
  9336. width="800px"
  9337. :before-close="handleClose"
  9338. class="dialog_diy"
  9339. >
  9340. <div>
  9341. <div
  9342. style="
  9343. display: flex;
  9344. flex-wrap: nowrap;
  9345. flex-direction: column;
  9346. position: relative;
  9347. "
  9348. >
  9349. <div class="queTop" style="padding: 20px 0 20px 0">
  9350. <div class="question">
  9351. <img src="../assets/icon/question.png" alt />
  9352. </div>
  9353. <div class="queTitle">
  9354. <div style="width: 90px; min-width: 90px">提问:</div>
  9355. <div>{{ answerQ }}</div>
  9356. </div>
  9357. </div>
  9358. <div class="ediBottom">
  9359. <textarea
  9360. rows="6"
  9361. class="binfo_input"
  9362. cols
  9363. style="width: 95%; height: 120px"
  9364. v-model="questionAnswer"
  9365. ></textarea>
  9366. </div>
  9367. </div>
  9368. </div>
  9369. <div slot="footer">
  9370. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9371. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9372. </div>
  9373. </el-dialog>
  9374. <el-dialog
  9375. title="问答"
  9376. :visible.sync="answerDialogVisibleTeacher"
  9377. :append-to-body="true"
  9378. width="800px"
  9379. :before-close="handleClose"
  9380. class="dialog_diy"
  9381. >
  9382. <div>
  9383. <div class="w_name">
  9384. 学生姓名:<span>{{ sStudent.student }}</span>
  9385. </div>
  9386. <div
  9387. style="
  9388. display: flex;
  9389. flex-wrap: nowrap;
  9390. flex-direction: column;
  9391. position: relative;
  9392. "
  9393. >
  9394. <div class="queTop" style="padding: 20px 0 20px 0">
  9395. <div class="question">
  9396. <img src="../assets/icon/question.png" alt />
  9397. </div>
  9398. <div class="queTitle">
  9399. <div style="width: 90px; min-width: 90px">提问:</div>
  9400. <div>{{ answerQ }}</div>
  9401. </div>
  9402. </div>
  9403. <div class="ediBottom">
  9404. <textarea
  9405. rows="6"
  9406. class="binfo_input"
  9407. cols
  9408. style="width: 95%; height: 120px"
  9409. v-model="questionAnswer"
  9410. ></textarea>
  9411. </div>
  9412. </div>
  9413. </div>
  9414. <div slot="footer">
  9415. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9416. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9417. </div>
  9418. </el-dialog>
  9419. <el-dialog
  9420. title="倒计时"
  9421. :visible.sync="timeDialogVisible"
  9422. :append-to-body="true"
  9423. width="800px"
  9424. :before-close="handleClose"
  9425. class="dialog_diy"
  9426. >
  9427. <div>
  9428. <div style="margin-bottom: 20px; color: #999">
  9429. 提示:点击“+”或“-”修改倒计时时长。
  9430. </div>
  9431. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9432. </div>
  9433. <div slot="footer">
  9434. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9435. </div>
  9436. </el-dialog>
  9437. <el-dialog
  9438. title="权限设置"
  9439. :visible.sync="juriVisible"
  9440. :append-to-body="true"
  9441. width="400px"
  9442. :before-close="handleClose"
  9443. class="dialog_diy"
  9444. >
  9445. <div>
  9446. <div class="open_box">
  9447. <div class="switch_box">
  9448. <span>允许学生查看所有作业</span>
  9449. <el-switch
  9450. v-model="sIsOpen"
  9451. active-text=""
  9452. class="switchCss"
  9453. @change="updateSLook"
  9454. ></el-switch>
  9455. </div>
  9456. <div
  9457. class="switch_box"
  9458. v-if="
  9459. courseDetail.userid == userid ||
  9460. (courseDetail.course_teacher &&
  9461. courseDetail.course_teacher.indexOf(userid) != -1)
  9462. "
  9463. >
  9464. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9465. <span>禁止学生查看所有阶段</span>
  9466. <el-switch
  9467. v-model="IsLookOpen"
  9468. active-text=""
  9469. class="switchCss"
  9470. @change="updateLookOpen"
  9471. ></el-switch>
  9472. </div>
  9473. <div class="switch_box" v-if="courseDetail.userid == userid">
  9474. <span>开启跟随模式</span>
  9475. <el-switch
  9476. v-model="IsFollow"
  9477. active-text=""
  9478. class="switchCss"
  9479. @change="updateFollow"
  9480. ></el-switch>
  9481. </div>
  9482. </div>
  9483. </div>
  9484. <div slot="footer">
  9485. <el-button
  9486. style="background: #409efe; color: #fff"
  9487. @click="juriVisible = false"
  9488. >关 闭</el-button
  9489. >
  9490. </div>
  9491. </el-dialog>
  9492. <el-dialog
  9493. title="查看视频"
  9494. :visible.sync="videoVisible"
  9495. :append-to-body="true"
  9496. width="1000px"
  9497. :before-close="handleClose"
  9498. class="dialog_diy1"
  9499. >
  9500. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9501. <video-player
  9502. class="video-player vjs-custom-skin"
  9503. :playsinline="true"
  9504. :options="videoDetail"
  9505. @play="onPlayerPlay($event)"
  9506. style="width: 100%; height: 100%"
  9507. ></video-player>
  9508. </div>
  9509. <div slot="footer">
  9510. <el-button
  9511. style="background: #409efe; color: #fff"
  9512. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9513. >
  9514. 关 闭</el-button
  9515. >
  9516. </div>
  9517. </el-dialog>
  9518. <el-dialog
  9519. title="查看详情"
  9520. :visible.sync="commentDialogVisible"
  9521. :append-to-body="true"
  9522. width="800px"
  9523. :before-close="handleClose"
  9524. class="dialog_diy"
  9525. >
  9526. <div class="commentTop">
  9527. <div class="studentDetail">
  9528. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9529. <div class="nameAndTime">
  9530. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9531. <div>{{ commentDetail.time }}</div>
  9532. </div>
  9533. <div
  9534. class="returnBtn"
  9535. style="margin-left: auto; width: 80px"
  9536. v-if="
  9537. commentDetail.works &&
  9538. commentDetail.type == 0 &&
  9539. (tType == 1 || tType == 4)
  9540. "
  9541. @click="
  9542. showPicturePaint(
  9543. commentDetail.img ? commentDetail.img : commentDetail.works
  9544. )
  9545. "
  9546. >
  9547. 教师批注
  9548. </div>
  9549. </div>
  9550. <div
  9551. class="worksAnswer"
  9552. v-if="commentDetail.works && commentDetail.type == 2"
  9553. >
  9554. {{ JSON.parse(commentDetail.works)[0].answer }}
  9555. </div>
  9556. <div
  9557. class="worksAnswer"
  9558. v-if="commentDetail.works && commentDetail.type == 1"
  9559. >
  9560. <img
  9561. src="../assets/teacherWork.png"
  9562. v-if="commentDetail.ateacher"
  9563. class="w_teachert"
  9564. />
  9565. <pdf
  9566. v-if="showPDF"
  9567. :pdfUrl="pptImgUrl"
  9568. style="width: 100%; height: 520px; overflow: auto"
  9569. :class="{ fullStyle: full }"
  9570. ></pdf>
  9571. <iframe
  9572. v-else
  9573. :src="pptImgUrl"
  9574. frameborder="0"
  9575. width="100%"
  9576. height="600"
  9577. :class="{ fullStyle: full }"
  9578. ></iframe>
  9579. </div>
  9580. <div
  9581. class="worksAnswer"
  9582. v-if="commentDetail.works && commentDetail.type == 0"
  9583. >
  9584. <img
  9585. src="../assets/teacherWork.png"
  9586. v-if="commentDetail.ateacher"
  9587. class="w_teachert"
  9588. style="right: 105px"
  9589. />
  9590. <img
  9591. :src="commentDetail.works"
  9592. alt=""
  9593. @click="previewImg(commentDetail.works)"
  9594. />
  9595. </div>
  9596. <div
  9597. class="worksAnswer"
  9598. v-if="commentDetail.works && commentDetail.type == 3"
  9599. >
  9600. <img
  9601. src="../assets/teacherWork.png"
  9602. v-if="commentDetail.ateacher"
  9603. class="w_teachert"
  9604. />
  9605. <video-player
  9606. class="video-player vjs-custom-skin"
  9607. :playsinline="true"
  9608. :options="videoDetail"
  9609. @play="onPlayerPlay($event)"
  9610. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9611. ></video-player>
  9612. </div>
  9613. <div
  9614. class="worksAnswer"
  9615. v-if="commentDetail.works && commentDetail.type == 10"
  9616. >
  9617. <div class="cont" v-html="commentDetail.works.text"></div>
  9618. </div>
  9619. <div
  9620. class="worksAnswer codeFileBox"
  9621. v-if="commentDetail.works && commentDetail.type == 12"
  9622. @click="downloadFile(commentDetail.works)"
  9623. >
  9624. <img src="../assets/icon/codeFile.png" />
  9625. <div>点击下载文件</div>
  9626. </div>
  9627. <div
  9628. class="worksAnswer codeFileBox"
  9629. v-if="commentDetail.works && commentDetail.type == 15"
  9630. @click="
  9631. openCocoPi(
  9632. 57,
  9633. commentIndexJson.toolIndex,
  9634. commentDetail.userid,
  9635. commentDetail.sName
  9636. )
  9637. "
  9638. >
  9639. <img src="../assets/icon/codeFile.png" />
  9640. <div>点击打开CocoPi</div>
  9641. </div>
  9642. <div
  9643. class="worksAnswer"
  9644. v-if="commentDetail.works && commentDetail.type == 13"
  9645. >
  9646. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9647. </div>
  9648. <div
  9649. class="worksAnswer"
  9650. v-if="commentDetail.works && commentDetail.type == 4"
  9651. >
  9652. <div class="evalCss">
  9653. <div class="nav">请选择星星进行评分</div>
  9654. <div class="middleBox" v-if="eScore.eStar">
  9655. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9656. <div class="nameAndrate">
  9657. <div>{{ e.value }}</div>
  9658. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9659. </div>
  9660. <div v-if="e.detail">{{ e.detail }}</div>
  9661. </div>
  9662. <div class="bz">
  9663. <textarea
  9664. disabled
  9665. rows="4"
  9666. class="pj"
  9667. style="
  9668. padding: 10px 5px;
  9669. width: 70%;
  9670. background: #f7f6f9;
  9671. font-size: 14px;
  9672. text-indent: 10px;
  9673. color: #000;
  9674. "
  9675. cols
  9676. v-model="eScore.eBzText"
  9677. placeholder="请输入评价内容..."
  9678. ></textarea>
  9679. </div>
  9680. </div>
  9681. </div>
  9682. </div>
  9683. <div class="comment">
  9684. <div class="commentList">
  9685. <div class="commentImg">
  9686. <img
  9687. @click="
  9688. isLikes(
  9689. commentDetail.wid,
  9690. userid,
  9691. 1,
  9692. null,
  9693. commentDetail.isLikes
  9694. )
  9695. "
  9696. :src="commentDetail.isLikes == true ? likes : noLikes"
  9697. alt=""
  9698. />
  9699. </div>
  9700. <div>{{ commentDetail.likesCount }}</div>
  9701. </div>
  9702. <div class="commentList">
  9703. <div class="commentImg">
  9704. <img src="../assets/icon/comment/comment.png" alt="" />
  9705. </div>
  9706. <div>{{ commentDetail.commentCount }}</div>
  9707. </div>
  9708. </div>
  9709. <div class="drawPBox" v-if="commentDetail.img">
  9710. <span>教师批注</span>
  9711. <img
  9712. :src="commentDetail.img"
  9713. alt=""
  9714. @click="previewImg(commentDetail.img)"
  9715. />
  9716. <span
  9717. class="deleteImg"
  9718. v-if="tType == 1 || tType == 4"
  9719. @click.stop="deletePicturePaint(commentDetail.wid)"
  9720. style="
  9721. font-size: 14px;
  9722. width: auto !important;
  9723. color: #b4b4b4;
  9724. top: unset;
  9725. bottom: 0;
  9726. border: none;
  9727. padding: 0;
  9728. height: auto !important;
  9729. margin: 0;
  9730. "
  9731. >删除</span
  9732. >
  9733. </div>
  9734. </div>
  9735. <div class="commentBox">
  9736. <div class="pl">评论:</div>
  9737. <div style="max-height: 200px; overflow: auto">
  9738. <div
  9739. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9740. style="padding: 10px 0 0 0"
  9741. >
  9742. <div
  9743. class="studentDetail"
  9744. style="padding-top: 10px"
  9745. v-for="(co, coIndex) in commentDetail.commentJson"
  9746. :key="coIndex"
  9747. >
  9748. <div class="tx" style="min-width: 50px">
  9749. <img src="../assets/avatar.png" alt="" />
  9750. </div>
  9751. <div class="plPerson">
  9752. <div class="plName">
  9753. <div>{{ co.commentPeople }}</div>
  9754. <div style="margin-left: 5px">
  9755. {{ co.commentTime }}
  9756. </div>
  9757. <div
  9758. class="deleteComment"
  9759. v-if="userid == co.userid"
  9760. @click="deleteComment(co.wid)"
  9761. >
  9762. 删除
  9763. </div>
  9764. </div>
  9765. <div class="plContent">{{ co.commentText }}</div>
  9766. </div>
  9767. </div>
  9768. </div>
  9769. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9770. </div>
  9771. </div>
  9772. <div style="margin-top: 10px">
  9773. <div class="displayBox">
  9774. <div
  9775. style="
  9776. color: #556db4;
  9777. font-size: 14px;
  9778. font-weight: bold;
  9779. padding-bottom: 10px;
  9780. "
  9781. >
  9782. 评价
  9783. </div>
  9784. <div class="easy_comment" v-if="false">
  9785. <div
  9786. v-for="(p, pIndex) in PlTextList"
  9787. :key="pIndex"
  9788. @click="fastText(p, 1)"
  9789. >
  9790. {{ p }}
  9791. </div>
  9792. </div>
  9793. </div>
  9794. <div>
  9795. <textarea
  9796. rows="3"
  9797. class="pj"
  9798. style="padding: 10px 5px"
  9799. cols
  9800. v-model="commentText"
  9801. placeholder="请输入评论"
  9802. ></textarea>
  9803. </div>
  9804. </div>
  9805. <div slot="footer">
  9806. <el-button
  9807. @click="
  9808. (commentDialogVisible = false),
  9809. (commentIndexJson = {}),
  9810. videoDetail.sources && videoDetail.sources[0]
  9811. ? (videoDetail.sources[0].src = '')
  9812. : ''
  9813. "
  9814. >取 消</el-button
  9815. >
  9816. <el-button
  9817. type="primary"
  9818. @click="addComment(commentDetail.wid, userid, 2)"
  9819. >确 定</el-button
  9820. >
  9821. </div>
  9822. </el-dialog>
  9823. <el-dialog
  9824. title="查看文档"
  9825. :visible.sync="fullDialogVisible"
  9826. :append-to-body="true"
  9827. width="100%"
  9828. :before-close="handleClose"
  9829. :show-close="false"
  9830. class="dialog_diy full_diy"
  9831. :class="{ full_diy2: fulltype == 3 }"
  9832. >
  9833. <div slot="title" class="header-title">
  9834. <div style="color: #fff">查看文档</div>
  9835. <div
  9836. @click="fullDialogVisible = false"
  9837. style="
  9838. cursor: pointer;
  9839. position: absolute;
  9840. top: 20px;
  9841. right: 20px;
  9842. color: #fff;
  9843. "
  9844. >
  9845. 退出全屏
  9846. </div>
  9847. </div>
  9848. <div style="height: 100%">
  9849. <div
  9850. class="wheel"
  9851. v-if="
  9852. fulltype == 2 &&
  9853. fullUrl.indexOf(
  9854. 'https://view.officeapps.live.com/op/view.aspx?src='
  9855. ) != -1
  9856. "
  9857. style="width: 95%; margin: 0 auto"
  9858. >
  9859. <iframe
  9860. style="width: 100%; height: 100%; border: none"
  9861. :src="fullUrl"
  9862. ></iframe>
  9863. </div>
  9864. <iframe
  9865. v-else-if="fulltype == 2"
  9866. style="width: 100%; height: 100%; border: none"
  9867. :src="fullUrl"
  9868. security="restricted"
  9869. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9870. ></iframe>
  9871. <pdf
  9872. v-else-if="fulltype == 3"
  9873. :pdfUrl="fullUrl"
  9874. style="width: 100%; height: 100%; overflow: auto"
  9875. ></pdf>
  9876. <div
  9877. class="wheel"
  9878. v-if="fulltype == 1"
  9879. style="
  9880. box-shadow: 0 0 6px 1px #f2f2f2;
  9881. width: 100%;
  9882. background: #f1f1f1;
  9883. "
  9884. >
  9885. <div class="title" style="width: 100%; box-sizing: border-box">
  9886. 查看文档
  9887. </div>
  9888. <el-form class="textBox" style="height: 90%">
  9889. <el-form-item class="textTitle">
  9890. <div style="font-size: 22px">
  9891. {{ fullUrl.name }}
  9892. </div>
  9893. </el-form-item>
  9894. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9895. <div
  9896. v-html="fullUrl.url"
  9897. class="textContent"
  9898. style="height: auto"
  9899. ></div>
  9900. </el-form>
  9901. </div>
  9902. </div>
  9903. <!-- <div slot="footer">
  9904. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9905. </div> -->
  9906. </el-dialog>
  9907. <el-dialog
  9908. title="个人评价"
  9909. :visible.sync="studentEvalDialogVisible"
  9910. :append-to-body="true"
  9911. width="800px"
  9912. :before-close="handleClose"
  9913. class="dialog_diy"
  9914. >
  9915. <div class="evalCss">
  9916. <div class="nav">请选择星星进行评分</div>
  9917. <div class="middleBox" v-if="eScore.eStar">
  9918. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9919. <div class="nameAndrate">
  9920. <div>{{ e.value }}</div>
  9921. <el-rate
  9922. v-model="eScore.eStar[eIndex]"
  9923. :disabled="isStar"
  9924. ></el-rate>
  9925. </div>
  9926. <div v-if="e.detail">{{ e.detail }}</div>
  9927. </div>
  9928. <div class="easy_comment" v-if="false">
  9929. <div
  9930. v-for="(p, pIndex) in PlTextList"
  9931. :key="pIndex"
  9932. @click="fastText(p, 2)"
  9933. >
  9934. {{ p }}
  9935. </div>
  9936. </div>
  9937. <div class="bz">
  9938. <textarea
  9939. :disabled="isStar"
  9940. rows="4"
  9941. class="pj"
  9942. style="
  9943. padding: 10px 5px;
  9944. width: 70%;
  9945. background: #f7f6f9;
  9946. font-size: 14px;
  9947. text-indent: 10px;
  9948. "
  9949. cols
  9950. v-model="eScore.eBzText"
  9951. placeholder="请输入评价内容..."
  9952. ></textarea>
  9953. </div>
  9954. </div>
  9955. </div>
  9956. <div slot="footer">
  9957. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9958. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9959. >确 定</el-button
  9960. >
  9961. </div>
  9962. </el-dialog>
  9963. <el-dialog
  9964. title="个人评价"
  9965. :visible.sync="studentEvalDialogVisibleTeacher"
  9966. :append-to-body="true"
  9967. width="800px"
  9968. :before-close="handleClose"
  9969. class="dialog_diy"
  9970. >
  9971. <div class="w_name">
  9972. 学生姓名:<span>{{ sStudent.student }}</span>
  9973. </div>
  9974. <div class="evalCss">
  9975. <div class="nav">请选择星星进行评分</div>
  9976. <div class="middleBox" v-if="eScore.eStar">
  9977. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9978. <div class="nameAndrate">
  9979. <div>{{ e.value }}</div>
  9980. <el-rate
  9981. v-model="eScore.eStar[eIndex]"
  9982. :disabled="isStar"
  9983. ></el-rate>
  9984. </div>
  9985. <div v-if="e.detail">{{ e.detail }}</div>
  9986. </div>
  9987. <div class="easy_comment" v-if="false">
  9988. <div
  9989. v-for="(p, pIndex) in PlTextList"
  9990. :key="pIndex"
  9991. @click="fastText(p, 2)"
  9992. >
  9993. {{ p }}
  9994. </div>
  9995. </div>
  9996. <div class="bz">
  9997. <textarea
  9998. :disabled="isStar"
  9999. rows="4"
  10000. class="pj"
  10001. style="
  10002. padding: 10px 5px;
  10003. width: 70%;
  10004. background: #f7f6f9;
  10005. font-size: 14px;
  10006. text-indent: 10px;
  10007. "
  10008. cols
  10009. v-model="eScore.eBzText"
  10010. placeholder="请输入评价内容..."
  10011. ></textarea>
  10012. </div>
  10013. </div>
  10014. </div>
  10015. <div slot="footer">
  10016. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10017. >取 消</el-button
  10018. >
  10019. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10020. >确 定</el-button
  10021. >
  10022. </div>
  10023. </el-dialog>
  10024. <el-dialog
  10025. title="选择匹配"
  10026. :visible.sync="dialogVisibleSelect"
  10027. :append-to-body="true"
  10028. width="90%"
  10029. :before-close="handleClose"
  10030. class="dialog_diy dialog_diy3"
  10031. >
  10032. <div v-if="selectJson">
  10033. <div class="select_box2">
  10034. <div class="select_box2_title">
  10035. <div>选择匹配</div>
  10036. <div>请选择对应的答案进行答题!</div>
  10037. </div>
  10038. <div class="select_box2_box">
  10039. <div class="select_box2_img">
  10040. <img
  10041. :src="selectJson.url"
  10042. @click="previewImg(selectJson.url)"
  10043. alt=""
  10044. />
  10045. </div>
  10046. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10047. <div style="padding-top: 15px">
  10048. <div class="select_answer_title" v-if="isSelect">
  10049. {{ selectAnswer.stu }}
  10050. </div>
  10051. <div class="select_answer_title" v-else>
  10052. 根据题目选择对应答案
  10053. </div>
  10054. <div
  10055. class="select_box2_answer_box"
  10056. v-for="(item2, checkIndex) in selectJson.select"
  10057. :key="checkIndex"
  10058. >
  10059. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10060. <el-select
  10061. :disabled="isSelect"
  10062. v-model="selectAnswer.answer[checkIndex]"
  10063. placeholder="请选择正确答案"
  10064. >
  10065. <el-option
  10066. v-for="(e, eIndex) in selectJson.select"
  10067. :key="eIndex"
  10068. :label="e"
  10069. :value="eIndex"
  10070. >
  10071. </el-option>
  10072. </el-select>
  10073. </div>
  10074. </div>
  10075. <div
  10076. class="rightAnswerCss"
  10077. v-if="isSelect && (tType == 1 || tType == 4)"
  10078. >
  10079. <div
  10080. v-for="(a, aIndex) in selectJson.answer"
  10081. :key="aIndex"
  10082. class="rightAnswer"
  10083. >
  10084. <div
  10085. v-if="selectAnswer.answer[aIndex] === a"
  10086. style="color: #767de1"
  10087. >
  10088. 回答正确
  10089. </div>
  10090. <div v-else>回答错误</div>
  10091. <div
  10092. style="margin-left: 10px"
  10093. v-if="selectAnswer.answer[aIndex] !== a"
  10094. >
  10095. 正确答案:
  10096. </div>
  10097. <div
  10098. :class="
  10099. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10100. "
  10101. >
  10102. {{ selectJson.select[a] }}
  10103. </div>
  10104. </div>
  10105. </div>
  10106. </div>
  10107. <div class="upAnswerCss">
  10108. <el-button
  10109. type="primary"
  10110. @click="addSelectAnswer"
  10111. v-if="!isSelect"
  10112. >提交答案</el-button
  10113. >
  10114. </div>
  10115. </div>
  10116. </div>
  10117. </div>
  10118. </el-dialog>
  10119. <el-dialog
  10120. title="选择匹配"
  10121. :visible.sync="dialogVisibleSelectTeacher"
  10122. :append-to-body="true"
  10123. width="90%"
  10124. :before-close="handleClose"
  10125. class="dialog_diy dialog_diy3"
  10126. >
  10127. <div v-if="selectJson">
  10128. <div class="w_name">
  10129. 学生姓名:<span>{{ sStudent.student }}</span>
  10130. </div>
  10131. <div class="select_box2">
  10132. <div class="select_box2_title">
  10133. <div>选择匹配</div>
  10134. <div>请选择对应的答案进行答题!</div>
  10135. </div>
  10136. <div class="select_box2_box">
  10137. <div class="select_box2_img">
  10138. <img
  10139. :src="selectJson.url"
  10140. @click="previewImg(selectJson.url)"
  10141. alt=""
  10142. />
  10143. </div>
  10144. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10145. <div style="padding-top: 15px">
  10146. <div class="select_answer_title" v-if="isSelect">
  10147. {{ selectAnswer.stu }}
  10148. </div>
  10149. <div class="select_answer_title" v-else>
  10150. 根据题目选择对应答案
  10151. </div>
  10152. <div
  10153. class="select_box2_answer_box"
  10154. v-for="(item2, checkIndex) in selectJson.select"
  10155. :key="checkIndex"
  10156. >
  10157. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10158. <el-select
  10159. :disabled="isSelect"
  10160. v-model="selectAnswer.answer[checkIndex]"
  10161. placeholder="请选择正确答案"
  10162. >
  10163. <el-option
  10164. v-for="(e, eIndex) in selectJson.select"
  10165. :key="eIndex"
  10166. :label="e"
  10167. :value="eIndex"
  10168. >
  10169. </el-option>
  10170. </el-select>
  10171. </div>
  10172. </div>
  10173. <div
  10174. class="rightAnswerCss"
  10175. v-if="isSelect && (tType == 1 || tType == 4)"
  10176. >
  10177. <div
  10178. v-for="(a, aIndex) in selectJson.answer"
  10179. :key="aIndex"
  10180. class="rightAnswer"
  10181. >
  10182. <div
  10183. v-if="selectAnswer.answer[aIndex] === a"
  10184. style="color: #767de1"
  10185. >
  10186. 回答正确
  10187. </div>
  10188. <div v-else>回答错误</div>
  10189. <div
  10190. style="margin-left: 10px"
  10191. v-if="selectAnswer.answer[aIndex] !== a"
  10192. >
  10193. 正确答案:
  10194. </div>
  10195. <div
  10196. :class="
  10197. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10198. "
  10199. >
  10200. {{ selectJson.select[a] }}
  10201. </div>
  10202. </div>
  10203. </div>
  10204. </div>
  10205. <div class="upAnswerCss">
  10206. <el-button
  10207. type="primary"
  10208. @click="addSelectAnswerTeacher"
  10209. v-if="!isSelect"
  10210. >提交答案</el-button
  10211. >
  10212. </div>
  10213. </div>
  10214. </div>
  10215. </div>
  10216. </el-dialog>
  10217. <el-dialog
  10218. title="教师评分"
  10219. :visible.sync="dialogVisibleScore"
  10220. :append-to-body="true"
  10221. width="800px"
  10222. :before-close="handleClose"
  10223. class="dialog_diy"
  10224. >
  10225. <div>
  10226. <div class="studentDetail">
  10227. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10228. <div class="nameAndTime">
  10229. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10230. <div>{{ commentDetail.time }}</div>
  10231. </div>
  10232. </div>
  10233. <div
  10234. class="worksAnswer"
  10235. v-if="commentDetail.works && commentDetail.type == 2"
  10236. >
  10237. {{ JSON.parse(commentDetail.works)[0].answer }}
  10238. </div>
  10239. <div
  10240. class="worksAnswer"
  10241. v-if="commentDetail.works && commentDetail.type == 1"
  10242. >
  10243. <pdf
  10244. v-if="showPDF"
  10245. :pdfUrl="pptImgUrl"
  10246. style="width: 100%; height: 520px; overflow: auto"
  10247. :class="{ fullStyle: full }"
  10248. ></pdf>
  10249. <iframe
  10250. v-else
  10251. :src="pptImgUrl"
  10252. frameborder="0"
  10253. width="100%"
  10254. height="600"
  10255. :class="{ fullStyle: full }"
  10256. ></iframe>
  10257. </div>
  10258. <div
  10259. class="worksAnswer"
  10260. v-if="commentDetail.works && commentDetail.type == 0"
  10261. >
  10262. <img
  10263. :src="commentDetail.works"
  10264. alt=""
  10265. @click="previewImg(commentDetail.works)"
  10266. />
  10267. </div>
  10268. <div
  10269. class="worksAnswer"
  10270. v-if="commentDetail.works && commentDetail.type == 3"
  10271. >
  10272. <video-player
  10273. class="video-player vjs-custom-skin"
  10274. :playsinline="true"
  10275. :options="videoDetail"
  10276. @play="onPlayerPlay($event)"
  10277. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10278. ></video-player>
  10279. </div>
  10280. <div
  10281. class="worksAnswer codeFileBox"
  10282. v-if="commentDetail.works && commentDetail.type == 12"
  10283. @click="downloadFile(commentDetail.works)"
  10284. >
  10285. <img src="../assets/icon/codeFile.png" />
  10286. <div>点击下载文件</div>
  10287. </div>
  10288. <div
  10289. class="worksAnswer codeFileBox"
  10290. v-if="commentDetail.works && commentDetail.type == 15"
  10291. @click="
  10292. openCocoPi(
  10293. 57,
  10294. commentIndexJson.toolIndex,
  10295. commentDetail.userid,
  10296. commentDetail.sName
  10297. )
  10298. "
  10299. >
  10300. <img src="../assets/icon/codeFile.png" />
  10301. <div>点击打开CocoPi</div>
  10302. </div>
  10303. <div
  10304. class="worksAnswer"
  10305. v-if="commentDetail.works && commentDetail.type == 13"
  10306. >
  10307. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10308. </div>
  10309. <div class="scoreBox">
  10310. <span class="t">请输入分数</span>
  10311. <el-input-number
  10312. :disabled="courseDetail.userid != userid"
  10313. v-model="wScore"
  10314. :controls="false"
  10315. :min="0"
  10316. :max="100"
  10317. ></el-input-number>
  10318. </div>
  10319. <div class="scoreDetailBox">
  10320. <span class="t">评分评论</span>
  10321. <el-input
  10322. type="textarea"
  10323. :rows="5"
  10324. :disabled="courseDetail.userid != userid"
  10325. resize="none"
  10326. v-model="scoreDetail"
  10327. placeholder="请输入对学生的评价"
  10328. >
  10329. </el-input>
  10330. </div>
  10331. </div>
  10332. <span slot="footer" class="dialog-footer">
  10333. <el-button
  10334. @click="
  10335. (dialogVisibleScore = false),
  10336. (commentIndexJson = {}),
  10337. videoDetail.sources && videoDetail.sources[0]
  10338. ? (videoDetail.sources[0].src = '')
  10339. : ''
  10340. "
  10341. >取 消</el-button
  10342. >
  10343. <el-button
  10344. type="primary"
  10345. v-if="courseDetail.userid == userid"
  10346. @click="scoreWork(commentDetail.wid)"
  10347. >确 定
  10348. </el-button>
  10349. </span>
  10350. </el-dialog>
  10351. <el-dialog
  10352. title="排序"
  10353. :visible.sync="dialogVisibleSentence"
  10354. :append-to-body="true"
  10355. width="1000px"
  10356. :before-close="handleClose"
  10357. class="dialog_diy dialog_diy3"
  10358. >
  10359. <div>
  10360. <div class="sentenBox">
  10361. <div
  10362. v-for="(st, stIndex) in sentenceList"
  10363. :key="stIndex"
  10364. style="padding-bottom: 20px"
  10365. >
  10366. <div
  10367. style="padding: 15px 0 10px 20px"
  10368. class="sentenceTitle"
  10369. :index="stIndex + 1"
  10370. >
  10371. 题目{{ stIndex + 1 }}:请选择正确顺序
  10372. </div>
  10373. <div class="cardList" v-if="st.chooseSenList">
  10374. <div class="cardBox">
  10375. <div
  10376. v-for="(r, rIndex) in st.chooseSenList"
  10377. :key="rIndex"
  10378. @click="returnCard(r, stIndex, rIndex)"
  10379. >
  10380. <el-tooltip
  10381. class="item"
  10382. effect="light"
  10383. :content="r"
  10384. placement="top"
  10385. v-if="r != '' && r != undefined"
  10386. >
  10387. <div
  10388. :class="{
  10389. isCard: r,
  10390. isChooseCard: r == '' || r == undefined,
  10391. }"
  10392. >
  10393. <div>{{ r }}</div>
  10394. </div>
  10395. </el-tooltip>
  10396. <div
  10397. :class="{
  10398. isCard: r,
  10399. isChooseCard: r == '' || r == undefined,
  10400. }"
  10401. v-else
  10402. >
  10403. <div>{{ r }}</div>
  10404. </div>
  10405. </div>
  10406. </div>
  10407. </div>
  10408. <div class="cardList" v-if="st.addChangeSen">
  10409. <div class="cardBox">
  10410. <div
  10411. v-for="(s, sIndex) in st.addChangeSen"
  10412. :key="sIndex"
  10413. @click="setRightAnswer(s, stIndex, sIndex)"
  10414. >
  10415. <el-tooltip
  10416. class="item"
  10417. effect="light"
  10418. :content="s"
  10419. placement="top"
  10420. v-if="s != '' && s != undefined"
  10421. >
  10422. <div
  10423. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10424. >
  10425. <div>{{ s }}</div>
  10426. </div>
  10427. </el-tooltip>
  10428. <div
  10429. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10430. v-else
  10431. >
  10432. <div>{{ s }}</div>
  10433. </div>
  10434. </div>
  10435. </div>
  10436. </div>
  10437. </div>
  10438. </div>
  10439. </div>
  10440. <span slot="footer" class="dialog-footer">
  10441. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10442. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10443. </span>
  10444. </el-dialog>
  10445. <el-dialog
  10446. title="排序"
  10447. :visible.sync="dialogVisibleSentenceTeacher"
  10448. :append-to-body="true"
  10449. width="1000px"
  10450. :before-close="handleClose"
  10451. class="dialog_diy dialog_diy3"
  10452. >
  10453. <div>
  10454. <div class="w_name">
  10455. 学生姓名:<span>{{ sStudent.student }}</span>
  10456. </div>
  10457. <div class="sentenBox">
  10458. <div
  10459. v-for="(st, stIndex) in sentenceList"
  10460. :key="stIndex"
  10461. style="padding-bottom: 20px"
  10462. >
  10463. <div
  10464. style="padding: 15px 0 10px 20px"
  10465. class="sentenceTitle"
  10466. :index="stIndex + 1"
  10467. >
  10468. 题目{{ stIndex + 1 }}:请选择正确顺序
  10469. </div>
  10470. <div class="cardList" v-if="st.chooseSenList">
  10471. <div class="cardBox">
  10472. <div
  10473. v-for="(r, rIndex) in st.chooseSenList"
  10474. :key="rIndex"
  10475. @click="returnCard(r, stIndex, rIndex)"
  10476. >
  10477. <el-tooltip
  10478. class="item"
  10479. effect="light"
  10480. :content="r"
  10481. placement="top"
  10482. v-if="r != '' && r != undefined"
  10483. >
  10484. <div
  10485. :class="{
  10486. isCard: r,
  10487. isChooseCard: r == '' || r == undefined,
  10488. }"
  10489. >
  10490. <div>{{ r }}</div>
  10491. </div>
  10492. </el-tooltip>
  10493. <div
  10494. :class="{
  10495. isCard: r,
  10496. isChooseCard: r == '' || r == undefined,
  10497. }"
  10498. v-else
  10499. >
  10500. <div>{{ r }}</div>
  10501. </div>
  10502. </div>
  10503. </div>
  10504. </div>
  10505. <div class="cardList" v-if="st.addChangeSen">
  10506. <div class="cardBox">
  10507. <div
  10508. v-for="(s, sIndex) in st.addChangeSen"
  10509. :key="sIndex"
  10510. @click="setRightAnswer(s, stIndex, sIndex)"
  10511. >
  10512. <el-tooltip
  10513. class="item"
  10514. effect="light"
  10515. :content="s"
  10516. placement="top"
  10517. v-if="s != '' && s != undefined"
  10518. >
  10519. <div
  10520. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10521. >
  10522. <div>{{ s }}</div>
  10523. </div>
  10524. </el-tooltip>
  10525. <div
  10526. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10527. v-else
  10528. >
  10529. <div>{{ s }}</div>
  10530. </div>
  10531. </div>
  10532. </div>
  10533. </div>
  10534. </div>
  10535. </div>
  10536. </div>
  10537. <span slot="footer" class="dialog-footer">
  10538. <el-button @click="dialogVisibleSentenceTeacher = false"
  10539. >取 消</el-button
  10540. >
  10541. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10542. </span>
  10543. </el-dialog>
  10544. <el-dialog
  10545. title="排序"
  10546. :visible.sync="dialogVisibleSentence1"
  10547. :append-to-body="true"
  10548. width="1000px"
  10549. :before-close="handleClose"
  10550. class="dialog_diy dialog_diy3"
  10551. >
  10552. <div>
  10553. <div class="sentenBox">
  10554. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10555. {{ sentenceList1.stuName }}的作业
  10556. </div>
  10557. <div
  10558. v-for="(st, stIndex) in sentenceList1"
  10559. :key="stIndex"
  10560. style="padding-bottom: 20px"
  10561. >
  10562. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10563. 第{{ stIndex + 1 }}题
  10564. </div>
  10565. <div class="isWrong">
  10566. <div class="cardList1" v-if="st.chooseSenList">
  10567. <div class="cardBox">
  10568. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10569. <el-tooltip
  10570. class="item"
  10571. effect="light"
  10572. :content="s"
  10573. placement="top"
  10574. >
  10575. <div class="isCard">
  10576. <div>{{ s }}</div>
  10577. </div>
  10578. </el-tooltip>
  10579. </div>
  10580. </div>
  10581. <div class="cardAnswerBox">
  10582. 组成句子:{{ st.chooseSenList.join(" ") }}
  10583. </div>
  10584. </div>
  10585. <div v-if="tType == 2" class="isTj">
  10586. <div class="isTjImg">
  10587. <img src="../assets/icon/conSentences/right.png" alt="" />
  10588. </div>
  10589. <div>已提交</div>
  10590. </div>
  10591. <div
  10592. class="answerRight isTj"
  10593. v-if="
  10594. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10595. (tType == 1 || tType == 4)
  10596. "
  10597. >
  10598. <div class="isTjImg">
  10599. <img src="../assets/icon/conSentences/right.png" alt="" />
  10600. </div>
  10601. <div>回答正确</div>
  10602. </div>
  10603. <div
  10604. class="answerRight isTj"
  10605. v-if="
  10606. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10607. (tType == 1 || tType == 4)
  10608. "
  10609. >
  10610. <div class="isTjImg">
  10611. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10612. </div>
  10613. <div>回答错误</div>
  10614. </div>
  10615. </div>
  10616. <div
  10617. v-if="
  10618. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10619. (tType == 1 || tType == 4)
  10620. "
  10621. >
  10622. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10623. <div
  10624. class="cardList"
  10625. v-if="st.rightAnswer"
  10626. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10627. >
  10628. <div class="cardBox">
  10629. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10630. <el-tooltip
  10631. class="item"
  10632. effect="light"
  10633. :content="r"
  10634. placement="top"
  10635. >
  10636. <div class="isCard1">
  10637. <div>{{ r }}</div>
  10638. </div>
  10639. </el-tooltip>
  10640. </div>
  10641. </div>
  10642. <div class="cardAnswerBox">
  10643. 组成句子:{{ st.rightAnswer.join(" ") }}
  10644. </div>
  10645. </div>
  10646. </div>
  10647. </div>
  10648. </div>
  10649. </div>
  10650. <span slot="footer" class="dialog-footer">
  10651. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10652. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10653. >确 定</el-button
  10654. >
  10655. </span>
  10656. </el-dialog>
  10657. <el-dialog
  10658. title="教师提交作业"
  10659. :visible.sync="dialogVisibleWorks"
  10660. :append-to-body="true"
  10661. width="500px"
  10662. :before-close="handleClose"
  10663. class="dialog_change"
  10664. >
  10665. <div class="marginT">
  10666. <div class="w_name">
  10667. 学生姓名:<span>{{ sStudent.student }}</span>
  10668. </div>
  10669. <div>上传文件</div>
  10670. <div
  10671. class="chapter_add"
  10672. @click="addImg($event)"
  10673. v-if="studyJuri[0].cover.length == 0"
  10674. >
  10675. <div class="up_photo">
  10676. <img src="../assets/uploadImg2.png" alt />
  10677. </div>
  10678. <!-- <input
  10679. type="file"
  10680. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10681. style="display: none"
  10682. @change="beforeUpload1($event, 1)"
  10683. /> -->
  10684. <input
  10685. type="file"
  10686. accept="*"
  10687. style="display: none"
  10688. @change="beforeUpload1($event, 1)"
  10689. />
  10690. </div>
  10691. <!-- capture="camera" -->
  10692. <div
  10693. class="chapter_add"
  10694. style="
  10695. display: flex;
  10696. width: 100%;
  10697. flex-direction: row;
  10698. flex-wrap: wrap;
  10699. justify-content: flex-start;
  10700. padding: 15px 0;
  10701. "
  10702. v-if="studyJuri[0].cover.length > 0"
  10703. >
  10704. <div class="upCover">
  10705. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10706. <img :src="word" alt v-else-if="fileType == 1" />
  10707. <img :src="video" alt v-else-if="fileType == 2" />
  10708. <img :src="word2" alt v-else-if="fileType == 3" />
  10709. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10710. <div class="deleteWord" @click="clean(1)">
  10711. <img src="../assets/icon/deleteWorks.png" alt />
  10712. </div>
  10713. </div>
  10714. </div>
  10715. </div>
  10716. <div
  10717. class="upload_send"
  10718. @click="addCourseWorksTeacher(taskCount)"
  10719. v-if="!proVisible"
  10720. >
  10721. 提交
  10722. </div>
  10723. </el-dialog>
  10724. <ImgDraw
  10725. :drawShow="drawShow"
  10726. @closeDraw="closeDraw"
  10727. @addImgDraw="addImgDraw"
  10728. :bg="bg"
  10729. ></ImgDraw>
  10730. <el-dialog
  10731. title="表格"
  10732. :visible.sync="dialogVisibleTable"
  10733. :append-to-body="true"
  10734. width="95%"
  10735. :before-close="handleClose"
  10736. class="dialog_diy"
  10737. >
  10738. <el-form>
  10739. <div
  10740. style="
  10741. display: flex;
  10742. align-items: center;
  10743. justify-content: space-between;
  10744. "
  10745. >
  10746. <span>表格内容</span>
  10747. <el-button type="primary" size="small" @click="returnTableText"
  10748. >还原模板</el-button
  10749. >
  10750. </div>
  10751. <Table
  10752. v-model="tableJson.text"
  10753. @change="change"
  10754. v-if="dialogVisibleTable"
  10755. ></Table>
  10756. </el-form>
  10757. <span slot="footer" class="dialog-footer">
  10758. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10759. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10760. </span>
  10761. </el-dialog>
  10762. <el-dialog
  10763. title="表格"
  10764. :visible.sync="dialogVisibleTableTeacher"
  10765. :append-to-body="true"
  10766. width="95%"
  10767. :before-close="handleClose"
  10768. class="dialog_diy"
  10769. >
  10770. <el-form>
  10771. <div class="w_name">
  10772. 学生姓名:<span>{{ sStudent.student }}</span>
  10773. </div>
  10774. <div>表格内容</div>
  10775. <Table
  10776. v-model="tableJson.text"
  10777. @change="change"
  10778. v-if="dialogVisibleTableTeacher"
  10779. ></Table>
  10780. </el-form>
  10781. <span slot="footer" class="dialog-footer">
  10782. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10783. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10784. </span>
  10785. </el-dialog>
  10786. <el-dialog
  10787. title="文档"
  10788. :visible.sync="dialogVisibleWord"
  10789. :append-to-body="true"
  10790. width="95%"
  10791. :before-close="handleClose"
  10792. class="dialog_diy"
  10793. >
  10794. <el-form>
  10795. <div
  10796. style="
  10797. display: flex;
  10798. align-items: center;
  10799. justify-content: space-between;
  10800. "
  10801. >
  10802. <span>文档内容</span>
  10803. <el-button type="primary" size="small" @click="returnWordText"
  10804. >还原模板</el-button
  10805. >
  10806. </div>
  10807. <editor-bar
  10808. v-model="wordJson.text"
  10809. v-if="dialogVisibleWord"
  10810. ></editor-bar>
  10811. </el-form>
  10812. <span slot="footer" class="dialog-footer">
  10813. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10814. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10815. </span>
  10816. </el-dialog>
  10817. <el-dialog
  10818. title="文档"
  10819. :visible.sync="dialogVisibleWordTeacher"
  10820. :append-to-body="true"
  10821. width="95%"
  10822. :before-close="handleClose"
  10823. class="dialog_diy"
  10824. >
  10825. <el-form>
  10826. <div class="w_name">
  10827. 学生姓名:<span>{{ sStudent.student }}</span>
  10828. </div>
  10829. <div>文档内容</div>
  10830. <editor-bar
  10831. v-model="wordJson.text"
  10832. v-if="dialogVisibleWordTeacher"
  10833. ></editor-bar>
  10834. </el-form>
  10835. <span slot="footer" class="dialog-footer">
  10836. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10837. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10838. </span>
  10839. </el-dialog>
  10840. <el-dialog
  10841. title="表格"
  10842. :visible.sync="dialogVisibleTable2"
  10843. :append-to-body="true"
  10844. width="95%"
  10845. :before-close="handleClose"
  10846. class="dialog_diy"
  10847. >
  10848. <el-form>
  10849. <div class="cont" v-html="tableJson.text"></div>
  10850. </el-form>
  10851. <span slot="footer" class="dialog-footer">
  10852. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10853. </span>
  10854. </el-dialog>
  10855. <el-dialog
  10856. title="文档"
  10857. :visible.sync="dialogVisibleTable3"
  10858. :append-to-body="true"
  10859. width="95%"
  10860. :before-close="handleClose"
  10861. class="dialog_diy"
  10862. >
  10863. <el-form>
  10864. <div class="cont" v-html="tableJson.text"></div>
  10865. </el-form>
  10866. <span slot="footer" class="dialog-footer">
  10867. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10868. </span>
  10869. </el-dialog>
  10870. <el-dialog
  10871. title="分组设置"
  10872. :visible.sync="dialogVisibleGroup"
  10873. :append-to-body="true"
  10874. width="95%"
  10875. :before-close="handleClose"
  10876. class="dialog_diy"
  10877. >
  10878. <div v-if="dialogVisibleGroup">
  10879. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10880. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10881. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10882. </div>
  10883. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10884. @click="lockChair">
  10885. 锁定位置
  10886. </div>
  10887. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10888. 解锁位置
  10889. </div> -->
  10890. <div class="group_switch">
  10891. <span>开放选座</span>
  10892. <el-switch
  10893. v-model="islock"
  10894. active-text=""
  10895. class="switchCss"
  10896. @change="lockChair"
  10897. ></el-switch>
  10898. </div>
  10899. <div
  10900. type="primary"
  10901. @click="updateGroup"
  10902. class="returnBtn"
  10903. style="background-color: #225bc7"
  10904. >
  10905. 分组设置
  10906. </div>
  10907. </div>
  10908. <div>
  10909. <div
  10910. class="g_d_box"
  10911. v-if="groupJson.group && groupStudent[toolindex]"
  10912. >
  10913. <div
  10914. class="g_d_group"
  10915. v-for="(g, gindex) in groupJson.group"
  10916. :key="gindex"
  10917. >
  10918. <div class="g_d_group_chair">
  10919. <div v-if="groupJson.number > 1">
  10920. <span
  10921. :class="{
  10922. isChair:
  10923. groupStudent[toolindex][gindex] &&
  10924. groupStudent[toolindex][gindex][0],
  10925. updateChair:
  10926. courseDetail.userid == userid &&
  10927. groupStudent[toolindex][gindex] &&
  10928. groupStudent[toolindex][gindex][0] &&
  10929. groupJson.islock == 2,
  10930. }"
  10931. ><span
  10932. class="updateChairBtn"
  10933. @click="
  10934. updateGroupChair(
  10935. groupStudent[toolindex][gindex] &&
  10936. groupStudent[toolindex][gindex][0]
  10937. )
  10938. "
  10939. >修改</span
  10940. ></span
  10941. ><span>{{
  10942. groupStudent[toolindex][gindex] &&
  10943. groupStudent[toolindex][gindex][0]
  10944. ? groupStudent[toolindex][gindex] &&
  10945. groupStudent[toolindex][gindex][0].name
  10946. : "空位置"
  10947. }}</span>
  10948. </div>
  10949. <div v-if="groupJson.number > 4">
  10950. <span
  10951. :class="{
  10952. isChair:
  10953. groupStudent[toolindex][gindex] &&
  10954. groupStudent[toolindex][gindex][4],
  10955. updateChair:
  10956. courseDetail.userid == userid &&
  10957. groupStudent[toolindex][gindex] &&
  10958. groupStudent[toolindex][gindex][4] &&
  10959. groupJson.islock == 2,
  10960. }"
  10961. ><span
  10962. class="updateChairBtn"
  10963. @click="
  10964. updateGroupChair(
  10965. groupStudent[toolindex][gindex] &&
  10966. groupStudent[toolindex][gindex][4]
  10967. )
  10968. "
  10969. >修改</span
  10970. ></span
  10971. ><span>{{
  10972. groupStudent[toolindex][gindex] &&
  10973. groupStudent[toolindex][gindex][4]
  10974. ? groupStudent[toolindex][gindex] &&
  10975. groupStudent[toolindex][gindex][4].name
  10976. : "空位置"
  10977. }}</span>
  10978. </div>
  10979. <div v-if="groupJson.number > 8">
  10980. <span
  10981. :class="{
  10982. isChair:
  10983. groupStudent[toolindex][gindex] &&
  10984. groupStudent[toolindex][gindex][8],
  10985. updateChair:
  10986. courseDetail.userid == userid &&
  10987. groupStudent[toolindex][gindex] &&
  10988. groupStudent[toolindex][gindex][8] &&
  10989. groupJson.islock == 2,
  10990. }"
  10991. ><span
  10992. class="updateChairBtn"
  10993. @click="
  10994. updateGroupChair(
  10995. groupStudent[toolindex][gindex] &&
  10996. groupStudent[toolindex][gindex][8]
  10997. )
  10998. "
  10999. >修改</span
  11000. ></span
  11001. ><span>{{
  11002. groupStudent[toolindex][gindex] &&
  11003. groupStudent[toolindex][gindex][8]
  11004. ? groupStudent[toolindex][gindex] &&
  11005. groupStudent[toolindex][gindex][8].name
  11006. : "空位置"
  11007. }}</span>
  11008. </div>
  11009. </div>
  11010. <div class="g_d_group_tableBox">
  11011. <div class="g_d_group_chair2">
  11012. <div v-if="groupJson.number > 2">
  11013. <span
  11014. :class="{
  11015. isChair:
  11016. groupStudent[toolindex][gindex] &&
  11017. groupStudent[toolindex][gindex][2],
  11018. updateChair:
  11019. courseDetail.userid == userid &&
  11020. groupStudent[toolindex][gindex] &&
  11021. groupStudent[toolindex][gindex][2] &&
  11022. groupJson.islock == 2,
  11023. }"
  11024. ><span
  11025. class="updateChairBtn"
  11026. @click="
  11027. updateGroupChair(
  11028. groupStudent[toolindex][gindex] &&
  11029. groupStudent[toolindex][gindex][2]
  11030. )
  11031. "
  11032. >修改</span
  11033. ></span
  11034. ><span>{{
  11035. groupStudent[toolindex][gindex] &&
  11036. groupStudent[toolindex][gindex][2]
  11037. ? groupStudent[toolindex][gindex] &&
  11038. groupStudent[toolindex][gindex][2].name
  11039. : "空位置"
  11040. }}</span>
  11041. </div>
  11042. <div v-if="groupJson.number > 6">
  11043. <span
  11044. :class="{
  11045. isChair:
  11046. groupStudent[toolindex][gindex] &&
  11047. groupStudent[toolindex][gindex][6],
  11048. updateChair:
  11049. courseDetail.userid == userid &&
  11050. groupStudent[toolindex][gindex] &&
  11051. groupStudent[toolindex][gindex][6] &&
  11052. groupJson.islock == 2,
  11053. }"
  11054. ><span
  11055. class="updateChairBtn"
  11056. @click="
  11057. updateGroupChair(
  11058. groupStudent[toolindex][gindex] &&
  11059. groupStudent[toolindex][gindex][6]
  11060. )
  11061. "
  11062. >修改</span
  11063. ></span
  11064. ><span>{{
  11065. groupStudent[toolindex][gindex] &&
  11066. groupStudent[toolindex][gindex][6]
  11067. ? groupStudent[toolindex][gindex] &&
  11068. groupStudent[toolindex][gindex][6].name
  11069. : "空位置"
  11070. }}</span>
  11071. </div>
  11072. </div>
  11073. <div class="g_d_group_table">
  11074. <div>
  11075. {{ g.name }}
  11076. </div>
  11077. <div>
  11078. <div
  11079. v-if="
  11080. courseDetail.userid == userid && groupJson.islock == 2
  11081. "
  11082. @click="deleteGroupChair(gindex)"
  11083. >
  11084. 移除组员
  11085. </div>
  11086. <div
  11087. @click="selectGroup(gindex)"
  11088. v-else-if="
  11089. groupStudentUid[toolindex] &&
  11090. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11091. "
  11092. >
  11093. 加入分组
  11094. </div>
  11095. <div
  11096. @click="
  11097. exitGroup(
  11098. groupStudent[toolindex][gindex] &&
  11099. groupStudent[toolindex][gindex][
  11100. groupStudentUid[toolindex][gindex].indexOf(userid)
  11101. ].id
  11102. )
  11103. "
  11104. v-else-if="
  11105. groupStudentUid[toolindex] &&
  11106. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11107. "
  11108. >
  11109. 退出分组
  11110. </div>
  11111. </div>
  11112. </div>
  11113. <div class="g_d_group_chair2">
  11114. <div v-if="groupJson.number > 3">
  11115. <span
  11116. :class="{
  11117. isChair:
  11118. groupStudent[toolindex][gindex] &&
  11119. groupStudent[toolindex][gindex][3],
  11120. updateChair:
  11121. courseDetail.userid == userid &&
  11122. groupStudent[toolindex][gindex] &&
  11123. groupStudent[toolindex][gindex][3] &&
  11124. groupJson.islock == 2,
  11125. }"
  11126. ><span
  11127. class="updateChairBtn"
  11128. @click="
  11129. updateGroupChair(
  11130. groupStudent[toolindex][gindex] &&
  11131. groupStudent[toolindex][gindex][3]
  11132. )
  11133. "
  11134. >修改</span
  11135. ></span
  11136. ><span>{{
  11137. groupStudent[toolindex][gindex] &&
  11138. groupStudent[toolindex][gindex][3]
  11139. ? groupStudent[toolindex][gindex] &&
  11140. groupStudent[toolindex][gindex][3].name
  11141. : "空位置"
  11142. }}</span>
  11143. </div>
  11144. <div v-if="groupJson.number > 7">
  11145. <span
  11146. :class="{
  11147. isChair:
  11148. groupStudent[toolindex][gindex] &&
  11149. groupStudent[toolindex][gindex][7],
  11150. updateChair:
  11151. courseDetail.userid == userid &&
  11152. groupStudent[toolindex][gindex] &&
  11153. groupStudent[toolindex][gindex][7] &&
  11154. groupJson.islock == 2,
  11155. }"
  11156. ><span
  11157. class="updateChairBtn"
  11158. @click="
  11159. updateGroupChair(
  11160. groupStudent[toolindex][gindex] &&
  11161. groupStudent[toolindex][gindex][7]
  11162. )
  11163. "
  11164. >修改</span
  11165. ></span
  11166. ><span>{{
  11167. groupStudent[toolindex][gindex] &&
  11168. groupStudent[toolindex][gindex][7]
  11169. ? groupStudent[toolindex][gindex] &&
  11170. groupStudent[toolindex][gindex][7].name
  11171. : "空位置"
  11172. }}</span>
  11173. </div>
  11174. </div>
  11175. </div>
  11176. <div class="g_d_group_chair">
  11177. <div v-if="groupJson.number > 1">
  11178. <span
  11179. :class="{
  11180. isChair:
  11181. groupStudent[toolindex][gindex] &&
  11182. groupStudent[toolindex][gindex][1],
  11183. updateChair:
  11184. courseDetail.userid == userid &&
  11185. groupStudent[toolindex][gindex] &&
  11186. groupStudent[toolindex][gindex][1] &&
  11187. groupJson.islock == 2,
  11188. }"
  11189. ><span
  11190. class="updateChairBtn"
  11191. @click="
  11192. updateGroupChair(
  11193. groupStudent[toolindex][gindex] &&
  11194. groupStudent[toolindex][gindex][1]
  11195. )
  11196. "
  11197. >修改</span
  11198. ></span
  11199. ><span>{{
  11200. groupStudent[toolindex][gindex] &&
  11201. groupStudent[toolindex][gindex][1]
  11202. ? groupStudent[toolindex][gindex] &&
  11203. groupStudent[toolindex][gindex][1].name
  11204. : "空位置"
  11205. }}</span>
  11206. </div>
  11207. <div v-if="groupJson.number > 5">
  11208. <span
  11209. :class="{
  11210. isChair:
  11211. groupStudent[toolindex][gindex] &&
  11212. groupStudent[toolindex][gindex][5],
  11213. updateChair:
  11214. courseDetail.userid == userid &&
  11215. groupStudent[toolindex][gindex] &&
  11216. groupStudent[toolindex][gindex][5] &&
  11217. groupJson.islock == 2,
  11218. }"
  11219. ><span
  11220. class="updateChairBtn"
  11221. @click="
  11222. updateGroupChair(
  11223. groupStudent[toolindex][gindex] &&
  11224. groupStudent[toolindex][gindex][5]
  11225. )
  11226. "
  11227. >修改</span
  11228. ></span
  11229. ><span>{{
  11230. groupStudent[toolindex][gindex] &&
  11231. groupStudent[toolindex][gindex][5]
  11232. ? groupStudent[toolindex][gindex] &&
  11233. groupStudent[toolindex][gindex][5].name
  11234. : "空位置"
  11235. }}</span>
  11236. </div>
  11237. <div v-if="groupJson.number > 9">
  11238. <span
  11239. :class="{
  11240. isChair:
  11241. groupStudent[toolindex][gindex] &&
  11242. groupStudent[toolindex][gindex][9],
  11243. updateChair:
  11244. courseDetail.userid == userid &&
  11245. groupStudent[toolindex][gindex] &&
  11246. groupStudent[toolindex][gindex][9] &&
  11247. groupJson.islock == 2,
  11248. }"
  11249. ><span
  11250. class="updateChairBtn"
  11251. @click="
  11252. updateGroupChair(
  11253. groupStudent[toolindex][gindex] &&
  11254. groupStudent[toolindex][gindex][9]
  11255. )
  11256. "
  11257. >修改</span
  11258. ></span
  11259. ><span>{{
  11260. groupStudent[toolindex][gindex] &&
  11261. groupStudent[toolindex][gindex][9]
  11262. ? groupStudent[toolindex][gindex] &&
  11263. groupStudent[toolindex][gindex][9].name
  11264. : "空位置"
  11265. }}</span>
  11266. </div>
  11267. </div>
  11268. </div>
  11269. </div>
  11270. </div>
  11271. </div>
  11272. <span slot="footer" class="dialog-footer">
  11273. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11274. </span>
  11275. </el-dialog>
  11276. <el-dialog
  11277. title="分组设置"
  11278. :visible.sync="dialogVisibleGroup2"
  11279. :append-to-body="true"
  11280. width="650px"
  11281. :before-close="handleClose"
  11282. class="dialog_diy"
  11283. >
  11284. <div class="groupBox">
  11285. <div v-if="groupJson2.group" class="groupContent">
  11286. <div class="groupTitle">请设置小组数量及名称</div>
  11287. <div
  11288. v-for="(item, index) in groupJson2.group"
  11289. :key="index"
  11290. class="groupName"
  11291. >
  11292. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11293. <el-input
  11294. v-model="item.name"
  11295. placeholder="请输入名称..."
  11296. style="width: 250px"
  11297. ></el-input>
  11298. <!-- <div class="groupBtn">
  11299. <el-button type="primary" size="small" @click="addGroup(index)">
  11300. 添加</el-button>
  11301. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11302. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11303. </div> -->
  11304. </div>
  11305. </div>
  11306. <div class="groupContent">
  11307. <div class="groupTitle">请设置每组人数</div>
  11308. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11309. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11310. <el-input
  11311. v-model="groupJson.number"
  11312. style="width: 150px"
  11313. placeholder="请输入2-10的数字"
  11314. @change="numberPan"
  11315. ></el-input>
  11316. </div>
  11317. </div>
  11318. <span slot="footer" class="dialog-footer">
  11319. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11320. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11321. </span>
  11322. </el-dialog>
  11323. <el-dialog
  11324. title="作业提交"
  11325. :visible.sync="dialogVisibleGroupWork"
  11326. :append-to-body="true"
  11327. width="500px"
  11328. :before-close="handleClose"
  11329. class="dialog_change"
  11330. >
  11331. <div class="marginT">
  11332. <div>上传文件</div>
  11333. <div
  11334. class="chapter_add"
  11335. @click="addImg($event)"
  11336. v-if="studyJuri[0].cover.length == 0"
  11337. >
  11338. <div class="up_photo">
  11339. <img src="../assets/icon/uploadImg.png" alt />
  11340. </div>
  11341. <!-- <input
  11342. type="file"
  11343. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11344. style="display: none"
  11345. @change="beforeUpload1($event, 1)"
  11346. /> -->
  11347. <input
  11348. type="file"
  11349. accept="*"
  11350. style="display: none"
  11351. @change="beforeUpload1($event, 1)"
  11352. />
  11353. </div>
  11354. <!-- capture="camera" -->
  11355. <div
  11356. class="chapter_add"
  11357. style="
  11358. display: flex;
  11359. width: 100%;
  11360. flex-direction: row;
  11361. flex-wrap: wrap;
  11362. justify-content: flex-start;
  11363. padding: 15px 0;
  11364. "
  11365. v-if="studyJuri[0].cover.length > 0"
  11366. >
  11367. <div class="upCover">
  11368. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11369. <img :src="word" alt v-else-if="fileType == 1" />
  11370. <img :src="video" alt v-else-if="fileType == 2" />
  11371. <img :src="word2" alt v-else-if="fileType == 3" />
  11372. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11373. <div class="deleteWord" @click="clean(1)">
  11374. <img src="../assets/icon/deleteWorks.png" alt />
  11375. </div>
  11376. </div>
  11377. </div>
  11378. </div>
  11379. <div
  11380. class="upload_send"
  11381. @click="addCourseWorks2(taskCount)"
  11382. v-if="!proVisible"
  11383. >
  11384. 提交
  11385. </div>
  11386. </el-dialog>
  11387. <el-dialog
  11388. title="修改分组"
  11389. :visible.sync="dialogVisibleUpdateGroup"
  11390. :append-to-body="true"
  11391. width="350px"
  11392. :before-close="handleClose"
  11393. class="dialog_diy"
  11394. >
  11395. <div>
  11396. <h2>
  11397. {{ this.updateGroupUser.name }}
  11398. </h2>
  11399. <div style="color: rgb(171 171 171); margin-top: 10px">
  11400. 请选择要进入的分组
  11401. </div>
  11402. <el-radio-group v-model="checkChair">
  11403. <el-radio
  11404. style="display: block; margin-top: 20px"
  11405. v-for="(item, index) in updateGroupArray"
  11406. :label="item.label"
  11407. :key="index"
  11408. >{{ item.name }}</el-radio
  11409. >
  11410. </el-radio-group>
  11411. </div>
  11412. <span slot="footer" class="dialog-footer">
  11413. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11414. <el-button type="primary" @click="updateChair">确定</el-button>
  11415. </span>
  11416. </el-dialog>
  11417. <el-dialog
  11418. title="移除组员"
  11419. :visible.sync="dialogVisibleDeleteGroup"
  11420. :append-to-body="true"
  11421. width="350px"
  11422. :before-close="handleClose"
  11423. class="dialog_diy"
  11424. >
  11425. <div>
  11426. <h2>
  11427. {{ this.deleteGroupArray.name }}
  11428. </h2>
  11429. <div style="color: rgb(171 171 171); margin-top: 10px">
  11430. 请选择要删除的组员
  11431. </div>
  11432. <el-checkbox-group v-model="checkDeleteGroup">
  11433. <el-checkbox
  11434. style="display: flex; margin-top: 20px"
  11435. v-for="(item, index) in deleteGroupUser"
  11436. :label="item.userid"
  11437. :key="index"
  11438. >{{ item.name }}</el-checkbox
  11439. >
  11440. </el-checkbox-group>
  11441. </div>
  11442. <span slot="footer" class="dialog-footer">
  11443. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11444. <el-button type="primary" @click="deleteChair">确定</el-button>
  11445. </span>
  11446. </el-dialog>
  11447. <el-dialog
  11448. title="批量上传"
  11449. :visible.sync="dialogVisiblePl"
  11450. :append-to-body="true"
  11451. width="700px"
  11452. :before-close="handleClose"
  11453. class="dialog_change"
  11454. >
  11455. <div class="marginT">
  11456. <div class="plworkBox">
  11457. <div
  11458. class="chapter_add"
  11459. style="
  11460. display: flex;
  11461. width: 150px;
  11462. flex-direction: row;
  11463. flex-wrap: wrap;
  11464. justify-content: flex-start;
  11465. margin: 0 10px 10px 0;
  11466. "
  11467. v-for="(item, index) in plworkFile"
  11468. :key="index"
  11469. >
  11470. <div class="upCover2">
  11471. <img
  11472. :src="item.url"
  11473. alt
  11474. v-if="item.fileType == 1"
  11475. @click="previewImg(item.url)"
  11476. />
  11477. <img :src="word" alt v-else-if="item.fileType == 4" />
  11478. <img :src="video" alt v-else />
  11479. <!-- <span class="picName">{{ item.name }}</span> -->
  11480. <!-- <el-input
  11481. v-model="item.username"
  11482. placeholder="请输入学生名字"
  11483. style="margin-top: 10px"
  11484. ></el-input> -->
  11485. <div
  11486. class="pl_select_box"
  11487. @click="
  11488. getUpdateMore(true, checkUpload(), item.username, index)
  11489. "
  11490. >
  11491. {{ getSName(item.username) }}
  11492. </div>
  11493. <!-- <el-select
  11494. style="margin-top: 10px"
  11495. v-model="item.username"
  11496. filterable
  11497. allow-create
  11498. placeholder="请选择学生"
  11499. >
  11500. <el-option
  11501. v-for="item1 in checkUpload()"
  11502. :key="item1.userid"
  11503. :label="item1.name ? item1.name : item1.username"
  11504. :value="item1.userid"
  11505. >
  11506. </el-option>
  11507. </el-select> -->
  11508. <div class="deleteWord" @click="clean2(index)">
  11509. <img src="../assets/icon/deleteWorks.png" alt />
  11510. </div>
  11511. </div>
  11512. </div>
  11513. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11514. <div class="up_photo2">
  11515. <img src="../assets/icon/plwork.png" alt />
  11516. <span>点击上传文件</span>
  11517. </div>
  11518. <input
  11519. type="file"
  11520. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11521. multiple="multiple"
  11522. style="display: none"
  11523. @change="beforeUpload3($event, 6)"
  11524. />
  11525. </div>
  11526. </div>
  11527. </div>
  11528. <!-- capture="camera" -->
  11529. <div
  11530. class="upload_send"
  11531. @click="addCourseWorksPl(taskCount)"
  11532. v-if="!proVisible2"
  11533. >
  11534. 提交
  11535. </div>
  11536. </el-dialog>
  11537. <el-dialog
  11538. title="修改名称"
  11539. :visible.sync="dialogVisibleSname"
  11540. width="500px"
  11541. :before-close="handleClose"
  11542. class="dialog_diy"
  11543. center
  11544. >
  11545. <div
  11546. style="
  11547. text-align: center;
  11548. display: flex;
  11549. align-items: center;
  11550. justify-content: center;
  11551. "
  11552. >
  11553. <span class="tian1">名称</span>
  11554. <div
  11555. class="pl_select_box"
  11556. style="margin-left: 10px; width: 200px"
  11557. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11558. >
  11559. {{ getSName(worksSName) }}
  11560. </div>
  11561. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11562. placeholder="请选择学生">
  11563. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11564. :value="item.userid">
  11565. </el-option>
  11566. </el-select> -->
  11567. <!-- <el-input
  11568. v-model="worksSName"
  11569. style="width: 250px; margin: 15px 0px"
  11570. ></el-input> -->
  11571. </div>
  11572. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11573. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11574. <el-button type="primary" @click="updateName">确 定</el-button>
  11575. </span>
  11576. </el-dialog>
  11577. <el-dialog
  11578. title="英语写作"
  11579. :visible.sync="engDialogVisible"
  11580. :append-to-body="true"
  11581. width="800px"
  11582. :before-close="handleClose"
  11583. class="dialog_diy"
  11584. >
  11585. <onlineWrite
  11586. v-if="engDialogVisible"
  11587. :englishList="englishList"
  11588. :myAnswerList1="myAnswerList1"
  11589. :userid="userid"
  11590. ref="engJson"
  11591. ></onlineWrite>
  11592. <span slot="footer" class="dialog-footer">
  11593. <el-button @click="engDialogVisible = false">取 消</el-button>
  11594. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11595. </span>
  11596. </el-dialog>
  11597. <el-dialog
  11598. title="英语写作"
  11599. :visible.sync="engUpdateDialogVisible"
  11600. :append-to-body="true"
  11601. width="800px"
  11602. :before-close="handleClose"
  11603. class="dialog_diy fullStyle"
  11604. >
  11605. <div class="engUpBox">
  11606. <div class="engUpTop">
  11607. <div class="engTitle">
  11608. <div>作文题目:</div>
  11609. <div>{{ englishList1.engTitle }}</div>
  11610. </div>
  11611. <div class="engText">
  11612. <div>作文内容:</div>
  11613. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11614. </div>
  11615. </div>
  11616. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11617. <div class="oldBox">
  11618. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11619. <div class="oldText">
  11620. <div class="detailBox">
  11621. <div class="oldDetail">
  11622. <div>标题:</div>
  11623. <div>{{ oldEnglishJson.engTitle }} </div>
  11624. </div>
  11625. <div class="oldDetail1">
  11626. <div>正文:</div>
  11627. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11628. </div>
  11629. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11630. <div>图片:</div>
  11631. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11632. </div>
  11633. </div>
  11634. </div>
  11635. </div>
  11636. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11637. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11638. <div class="oldText">
  11639. <div class="detailBox" style="position: relative;">
  11640. <div class="oldDetail">
  11641. <div>标题:</div>
  11642. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11643. <div v-else v-html="newEnglishList.engTitle"></div>
  11644. </div>
  11645. <div class="oldDetail">
  11646. <div>正文:</div>
  11647. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11648. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11649. </div>
  11650. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11651. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11652. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11653. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11654. </div>
  11655. </div>
  11656. </div>
  11657. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11658. <div class="oldMes" style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;" v-if="newEnglishList1.length > 0">
  11659. <div v-if="isNoUserid" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: newEngIndex == -1 ? '#aacaff' : ''}" @click="setEngText(-1)" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11660. <div v-for="(item,index) in newEnglishList1" :key="index" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: index == newEngIndex ? '#aacaff' : ''}" @click="setEngText(index)">{{ item.username }}</div>
  11661. </div>
  11662. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11663. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11664. <div class="detailBox" style="position: relative;">
  11665. <div class="oldDetail">
  11666. <div>标题:</div>
  11667. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11668. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11669. </div>
  11670. <div class="oldDetail">
  11671. <div>正文:</div>
  11672. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11673. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11674. </div>
  11675. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11676. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11677. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11678. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11679. </div>
  11680. </div>
  11681. <div class="oldText" v-else-if="newEngIndex == -1">
  11682. <div class="detailBox" style="position: relative;">
  11683. <div class="oldDetail">
  11684. <div>标题:</div>
  11685. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11686. <div v-else v-html="newEnglishList.engTitle"></div>
  11687. </div>
  11688. <div class="oldDetail">
  11689. <div>正文:</div>
  11690. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11691. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11692. </div>
  11693. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11694. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11695. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11696. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11697. </div>
  11698. </div>
  11699. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11700. <div class="detailBox" style="position: relative;">
  11701. <div class="oldDetail">
  11702. <div>标题:</div>
  11703. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11704. <div v-else>
  11705. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  11706. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11707. </div>
  11708. </div>
  11709. <div class="oldDetail">
  11710. <div>正文:</div>
  11711. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11712. <div v-else>
  11713. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11714. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11715. </div>
  11716. </div>
  11717. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11718. <el-button @click="isUpdateCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11719. <el-button @click="aiCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">AI批注</el-button>
  11720. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11721. </div>
  11722. </div>
  11723. </div>
  11724. </div>
  11725. </div>
  11726. <span slot="footer" class="dialog-footer">
  11727. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11728. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11729. </span>
  11730. </el-dialog>
  11731. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11732. <interVideo
  11733. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11734. :videoJson="videoJson"
  11735. :userid="userid"
  11736. :id="id"
  11737. :courseType="courseType"
  11738. :taskCount="taskCount"
  11739. :toolindex="toolindex"
  11740. :videoType="videoType"
  11741. ></interVideo>
  11742. <UpdateMore
  11743. :dialogVisibleMember.sync="dialogVisibleMember"
  11744. :cList="uploadStudentJuri"
  11745. :userid="userid"
  11746. :searchTN="worksSName2"
  11747. @setPlname="setPlname"
  11748. ></UpdateMore>
  11749. <wordCloud
  11750. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11751. :data="wordCloudData"
  11752. ></wordCloud>
  11753. <el-dialog
  11754. title="挑人"
  11755. :visible.sync="dialogVisiblePickPeople"
  11756. width="650px"
  11757. :before-close="handleClose"
  11758. class="dialog_diy"
  11759. center
  11760. >
  11761. <div class="pick_box">
  11762. <div
  11763. class="noWorksName"
  11764. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11765. v-for="(item, index) in uploadStudentJuri"
  11766. :key="index"
  11767. @click="pickStudent(item)"
  11768. >
  11769. {{ item.name }}
  11770. </div>
  11771. </div>
  11772. </el-dialog>
  11773. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11774. :englishVoiceJson='englishVoiceJson'
  11775. :userid="userid"
  11776. :id="id"
  11777. :courseType="courseType"
  11778. :taskCount="taskCount"
  11779. :toolindex="toolindex"
  11780. @selectSWorks="selectSWorks"
  11781. @selectStudent="selectStudent"
  11782. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11783. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11784. :userid="userid"
  11785. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11786. :commentDetail="commentDetail"
  11787. :courseDetail="courseDetail"
  11788. :wScore="wScore"
  11789. :scoreDetail="scoreDetail"
  11790. @selectSWorks="selectSWorks"
  11791. @selectStudent="selectStudent"></checkEnglishVoice>
  11792. </div>
  11793. </template>
  11794. <script>
  11795. import "../common/aws-sdk-2.235.1.min.js";
  11796. // import pdf from "./components/pdf3";
  11797. import pdf from "./components/vpdf";
  11798. import AskStatic from "./components/askStatic";
  11799. import AskStatic2 from "./components/askStatic2";
  11800. import AnswerData2 from "./components/answerData2";
  11801. import AnswerData from "./components/answerData";
  11802. import EditorBar from "./tools/wangEnduit.vue";
  11803. import Table from "./tools/table.vue";
  11804. import Time from "./tools/time.vue";
  11805. import Mind from "./tools/jsmind.vue";
  11806. import Sunburst from "./tools/sunburst";
  11807. import SeeBoard from "./tools/seeBoard";
  11808. import * as imageConversion from "image-conversion";
  11809. import Audio from "./components/audio.vue";
  11810. import ImgDraw from "./tools/imgDraw/imgDraw";
  11811. import { Empty } from "element-ui";
  11812. import RecordRTC from "recordrtc";
  11813. import interVideo from "./interVideo/index.vue";
  11814. import UpdateMore from "./updateMore/updateMore.vue";
  11815. import wordCloud from "./wordCloud/index.vue";
  11816. import axios from "axios";
  11817. import JSZip from "jszip";
  11818. import FileSaver from "file-saver";
  11819. import onlineWrite from "./components/onlineWrite";
  11820. import englishEva from "./components/englishEva";
  11821. import * as Diff from 'diff'
  11822. import EnglishVoice from './EnglishVoice2/index.vue'
  11823. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  11824. import correctText from './components/correctText.vue'
  11825. import scoreItem from './scoreList/scoreItem.vue'
  11826. const getFile = (url) => {
  11827. return new Promise((resolve, reject) => {
  11828. var credentials = {
  11829. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11830. secretAccessKey: "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",
  11831. }; //秘钥形式的登录上传
  11832. window.AWS.config.update(credentials);
  11833. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11834. let url2 = url;
  11835. let _url2 = "";
  11836. if (
  11837. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11838. ) {
  11839. _url2 = url2.split(
  11840. "https://view.officeapps.live.com/op/view.aspx?src="
  11841. )[1];
  11842. } else {
  11843. _url2 = url2;
  11844. }
  11845. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11846. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11847. var params = {
  11848. Bucket: "ccrb",
  11849. Key: name
  11850. };
  11851. s3.getObject(params, function (err, data) {
  11852. if (err) {
  11853. console.log(err, err.stack)
  11854. resolve({ data: 1 });
  11855. }else {
  11856. resolve({ data: data.Body });
  11857. console.log(data);
  11858. } // sxuccessful response
  11859. });
  11860. // axios({
  11861. // method: "get",
  11862. // url,
  11863. // responseType: "blob",
  11864. // })
  11865. // .then((data) => {
  11866. // resolve({ data: data.data });
  11867. // })
  11868. // .catch((error) => {
  11869. // resolve({ data: 1 });
  11870. // // reject(error.toString());
  11871. // });
  11872. });
  11873. };
  11874. export default {
  11875. components: {
  11876. EditorBar,
  11877. Time,
  11878. pdf,
  11879. AskStatic,
  11880. AskStatic2,
  11881. Mind,
  11882. Sunburst,
  11883. SeeBoard,
  11884. AnswerData2,
  11885. AnswerData,
  11886. Audio,
  11887. ImgDraw,
  11888. Table,
  11889. interVideo,
  11890. UpdateMore,
  11891. wordCloud,
  11892. onlineWrite,
  11893. englishEva,
  11894. EnglishVoice,
  11895. checkEnglishVoice,
  11896. correctText,
  11897. scoreItem
  11898. },
  11899. data() {
  11900. return {
  11901. bg: null,
  11902. drawShow: false,
  11903. dialogVisible: false,
  11904. dialogVisiblePl: false,
  11905. commentDialogVisible: false,
  11906. dialogVisibleMember: false,
  11907. dialogVisibleWordCloud: false,
  11908. videoVisible: false,
  11909. isStar: false,
  11910. studentEvalDialogVisible: false,
  11911. studentEvalDialogVisibleTeacher: false,
  11912. dialogVisibleSelect: false,
  11913. dialogVisibleSelectTeacher: false,
  11914. dialogVisibleScore: false,
  11915. dialogVisibleENScore: false,
  11916. dialogVisibleSentence: false,
  11917. dialogVisibleSentenceTeacher: false,
  11918. dialogVisibleSentence1: false,
  11919. dialogVisibleWorks: false,
  11920. dialogVisibleTable: false,
  11921. dialogVisibleTableTeacher: false,
  11922. dialogVisibleWord: false,
  11923. dialogVisibleWordTeacher: false,
  11924. dialogVisibleTable2: false,
  11925. dialogVisibleTable3: false,
  11926. dialogVisibleGroupWork: false,
  11927. dialogVisibleUpdateGroup: false,
  11928. dialogVisibleDeleteGroup: false,
  11929. dialogVisibleSname: false,
  11930. dialogVisibleVideo: false,
  11931. dialogVisiblePickPeople: false,
  11932. engDialogVisible: false,
  11933. engUpdateDialogVisible: false,
  11934. engEvaDialogVisible: false,
  11935. evaEngJson: {
  11936. teacherJson: {},
  11937. studentJson: {},
  11938. message: {},
  11939. },
  11940. isNoUserid:false,
  11941. engListLength:0,
  11942. engWid:"",
  11943. newEnglishList:{
  11944. engTitle:"",
  11945. engText:"",
  11946. },
  11947. newEnglishList1:[],
  11948. oldEnglishJson:{},
  11949. oldEnglishJson1:{},
  11950. englishList1:{},
  11951. englishList:{},
  11952. myAnswerList1:{},
  11953. topHeight:0,
  11954. newEngIndex:-1,
  11955. englishToolIndex:0,
  11956. worksSName: "",
  11957. classJuri: [],
  11958. uploadStudentJuri: [],
  11959. uploadCid: "",
  11960. snameWid: "",
  11961. sStudent: {},
  11962. sTool: "",
  11963. bzText: "",
  11964. commentDetail: [],
  11965. selectAnswer: [],
  11966. videoDetail: {},
  11967. selectJson: {},
  11968. eScore: { eBzText: "", eStar: [] },
  11969. id: this.$route.query.courseId,
  11970. userid: this.$route.query.userid,
  11971. classId: this.$route.query.cid,
  11972. // courseTypeLine: this.$route.query.type,
  11973. oid: this.$route.query.oid,
  11974. org: this.$route.query.org,
  11975. tType: this.$route.query.tType,
  11976. courseType: this.$route.query.type,
  11977. screenType: this.$route.query.screenType,
  11978. tcid2: this.$route.query.tcid,
  11979. tcid: "",
  11980. pptImgUrl: "",
  11981. pptImgUrl1: "",
  11982. commentText: "",
  11983. full: false,
  11984. sIsOpen: false,
  11985. IsLookOpen: false,
  11986. IsFollow: false,
  11987. pzDialog: false,
  11988. contentDialog: false,
  11989. mlDialog: false,
  11990. type: 1,
  11991. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11992. sentenceList1: [],
  11993. tableJson: [],
  11994. tableJsonO: [],
  11995. wordJson: [],
  11996. wordJsonO: [],
  11997. vedio: [],
  11998. text: [],
  11999. textList: [],
  12000. line: [],
  12001. lineList: [],
  12002. chapTools: [],
  12003. chapToolList: [],
  12004. file: [],
  12005. fileC: [],
  12006. vedioTime: [],
  12007. upToolImg: "",
  12008. preTime: 0,
  12009. rateList: {
  12010. ca: 0,
  12011. },
  12012. rateParams: [],
  12013. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12014. studyJuri: [
  12015. {
  12016. content: "",
  12017. cover: [],
  12018. upVedio: [],
  12019. upFile: [],
  12020. },
  12021. ],
  12022. isClose: 0,
  12023. plworkFile: [],
  12024. mr: require("../assets/vedioPic.png"),
  12025. word: require("../assets/icon/isWord.png"),
  12026. word2: require("../assets/icon/word2.png"),
  12027. video: require("../assets/icon/isVideo.png"),
  12028. noLikes: require("../assets/icon/comment/noLikes.png"),
  12029. likes: require("../assets/icon/comment/likes.png"),
  12030. scoreImg: require("../assets/score.png"),
  12031. courseDetail: {},
  12032. reply: "",
  12033. isSelect: false,
  12034. chapInfo: [],
  12035. chapInfoList: [],
  12036. taskCount: 0,
  12037. imgList: [],
  12038. noImgList: [],
  12039. pzList: [],
  12040. timeWorkList: [],
  12041. PlTextList: [
  12042. "Excellent!",
  12043. "nice!",
  12044. "很有创意!",
  12045. "还不错哦~",
  12046. "继续努力哦~",
  12047. ],
  12048. isClickNav: "",
  12049. navId: "",
  12050. playerOptions: {
  12051. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12052. autoplay: false, //如果true,浏览器准备好时开始回放。
  12053. muted: false, // 默认情况下将会消除任何音频。
  12054. loop: false, // 导致视频一结束就重新开始。
  12055. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12056. language: "zh-CN",
  12057. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12058. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12059. sources: [
  12060. {
  12061. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12062. src: "", //url地址require("../../assets/media/aaa.mp4")
  12063. },
  12064. ],
  12065. // poster: require("../../assets/tu31.png"), //你的封面地址
  12066. // poster: dataRes.imgUrl, //你的封面地址
  12067. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12068. controlBar: {
  12069. timeDivider: true, //当前时间和持续时间的分隔符
  12070. durationDisplay: true, //显示持续时间
  12071. remainingTimeDisplay: false, //是否显示剩余时间功能
  12072. fullscreenToggle: true, //全屏按钮
  12073. },
  12074. },
  12075. playerOptions1: {
  12076. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12077. autoplay: false, //如果true,浏览器准备好时开始回放。
  12078. muted: false, // 默认情况下将会消除任何音频。
  12079. loop: false, // 导致视频一结束就重新开始。
  12080. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12081. language: "zh-CN",
  12082. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12083. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12084. sources: [
  12085. {
  12086. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12087. src: "", //url地址require("../../assets/media/aaa.mp4")
  12088. },
  12089. ],
  12090. // poster: require("../../assets/tu31.png"), //你的封面地址
  12091. // poster: dataRes.imgUrl, //你的封面地址
  12092. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12093. controlBar: {
  12094. timeDivider: true, //当前时间和持续时间的分隔符
  12095. durationDisplay: true, //显示持续时间
  12096. remainingTimeDisplay: false, //是否显示剩余时间功能
  12097. fullscreenToggle: true, //全屏按钮
  12098. },
  12099. },
  12100. playerO: {},
  12101. noneBtnImg: false,
  12102. proVisible: false,
  12103. proVisible2: false,
  12104. progress: 0,
  12105. isFinishSize: 0,
  12106. isAllSize: 0,
  12107. questionAnswer: "",
  12108. answerQ: "", //问答标题
  12109. rateJson: [],
  12110. wbCount: 0,
  12111. wordCount: 0,
  12112. mindCount: 0,
  12113. askCount: 0,
  12114. noteCount: 0,
  12115. mindNetWorkCount: 0,
  12116. libraryCount: 0,
  12117. workCount: 0,
  12118. timeCount: 0,
  12119. answerCount: 0,
  12120. trainCount: 0,
  12121. evalCount: 0,
  12122. dialogImageUrl: "",
  12123. pictureDialog: false,
  12124. toolTypeList: [],
  12125. dialogVisible1: false,
  12126. dialogVisible2: false,
  12127. dialogVisible3: false,
  12128. dialogVisible6: false,
  12129. dialogVisible4: false,
  12130. isNoHomeWork: false,
  12131. dialogVisible5: false,
  12132. dialogVisible5Teacher: false,
  12133. dialogVisibleChoice: false,
  12134. dialogVisibleChoiceTeacher: false,
  12135. answerDialogVisible: false,
  12136. answerDialogVisibleTeacher: false,
  12137. juriVisible: false,
  12138. timeDialogVisible: false,
  12139. replyDialogVisible: false,
  12140. toolDialogVisible: false,
  12141. replyIndex: 0,
  12142. replyPid: "",
  12143. radio: [],
  12144. isAsk: false,
  12145. askJson: {
  12146. askCount: 1,
  12147. askTitle: "",
  12148. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12149. },
  12150. testJson: {},
  12151. videoType:0,
  12152. checkJson: [],
  12153. askList: [],
  12154. answerList: [],
  12155. navList: [],
  12156. addPzDialog: false,
  12157. pzConText: "",
  12158. worksStudent: [],
  12159. isCloseList: [],
  12160. workStudent: [],
  12161. groupStudent: [],
  12162. groupStudentUid: [],
  12163. noWorksS: [],
  12164. isWorksS: [],
  12165. noWorksStudent: [],
  12166. toolindex: 0,
  12167. toolDetailIndex: null,
  12168. groupIndex: 0,
  12169. workTypeB: false,
  12170. workTypeC: false,
  12171. isAnswer: false,
  12172. isHovered: false,
  12173. isHovered1: false,
  12174. isHovered2: false,
  12175. commentTagShow:0,
  12176. timer: null,
  12177. opertimer: null,
  12178. showType: 0,
  12179. fileType: 0,
  12180. showPDF: false,
  12181. noteName: "",
  12182. evaJuri: [],
  12183. evalua: "",
  12184. eTitle: "",
  12185. eName: "",
  12186. eJson: {},
  12187. fid: "", //一级
  12188. sid: "", //二级
  12189. tid: "", //二级
  12190. typeMode: 1,
  12191. eJSONNum: 0,
  12192. Etype: 1,
  12193. data: {
  12194. meta: {
  12195. name: "example",
  12196. author: "dd@163.com",
  12197. version: "0.2",
  12198. },
  12199. format: "node_array",
  12200. data: [{ id: "root", isroot: true, topic: "" }],
  12201. },
  12202. fullDialogVisible: false,
  12203. fulltype: "",
  12204. fullUrl: "",
  12205. commentIndexJson: {},
  12206. Stbodywidth: 0,
  12207. ispzType: 0,
  12208. pzType: 1,
  12209. wScore: 0,
  12210. scoreDetail: "",
  12211. videoStart: false,
  12212. recorder: null,
  12213. groupJson: {},
  12214. islock: false,
  12215. groupJson2: {},
  12216. dialogVisibleGroup: false,
  12217. dialogVisibleGroup2: false,
  12218. updateGroupArray: [],
  12219. updateGroupUser: {},
  12220. deleteGroupUser: [],
  12221. deleteGroupArray: {},
  12222. checkChair: "",
  12223. checkDeleteGroup: [],
  12224. inviteCode: "",
  12225. courseGroupStudent: [],
  12226. courseGroupStudentUid: [],
  12227. courseGroup: {},
  12228. isGroup: false,
  12229. // toolIndex: null,
  12230. tool: {},
  12231. isWorkTool: [
  12232. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12233. ], //, 40
  12234. videoJson: {},
  12235. toolType: 0,
  12236. checktoolArray: [],
  12237. vChapterData: [],
  12238. isUpdateToolDetail: false,
  12239. isUpdateToolDetail1: false,
  12240. updateToolDetailInner: "",
  12241. checkboxList: [],
  12242. plIndex: "",
  12243. worksSName2: "",
  12244. worksSid: "",
  12245. wordCloudData: [],
  12246. isPickStudent: [],
  12247. pzStype: 1,
  12248. myAnList: {},
  12249. userMes:{},
  12250. downLoading: false,
  12251. greyType: false,
  12252. correctWord: [],
  12253. isUpdateText: "",
  12254. EnglishVoiceDialog: false,
  12255. englishVoiceJson: {},
  12256. englishVoiceJsonWork:[],
  12257. scoreList:{
  12258. listdata:[],
  12259. isScoreList:[],
  12260. },
  12261. };
  12262. },
  12263. methods: {
  12264. gx(){
  12265. this.$forceUpdate();
  12266. },
  12267. isUpdateCorrect(t,p){
  12268. if(this.greyType == false){
  12269. this.isUpdateText = t;
  12270. this.greyType = true;
  12271. }else{
  12272. if(p == 1){
  12273. this.newEnglishList.engText = this.isUpdateText;
  12274. }else if(p == 2){
  12275. this.oldEnglishJson1.engText = this.isUpdateText;
  12276. }else if(p == 3){
  12277. this.newEnglishList.engText = this.isUpdateText;
  12278. }else{
  12279. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12280. }
  12281. this.greyType = false
  12282. }
  12283. },
  12284. aiCorrect(t,p){
  12285. let aiText = "";
  12286. const loading = this.$loading.service({
  12287. background: "rgba(255, 255, 255)",
  12288. target: document.querySelectorAll(".loadingText")[0],
  12289. });
  12290. let param = {
  12291. model: "gpt-3.5-turbo",
  12292. temperature: 0,
  12293. max_tokens: 2048,
  12294. top_p: 1,
  12295. frequency_penalty: 0,
  12296. presence_penalty: 0,
  12297. messages: [
  12298. {
  12299. role: "user",
  12300. content:
  12301.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12302. },
  12303. ],
  12304. uid: this.userid,
  12305. stream: false,
  12306. };
  12307. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12308. (res) => {
  12309. if (
  12310. res.data.FunctionResponse &&
  12311. res.data.FunctionResponse.result &&
  12312. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12313. ) {
  12314. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12315. return;
  12316. }
  12317. aiText =
  12318. res.data.FunctionResponse.choices[0].message.content;
  12319. aiText = aiText.replace(/%/g,"%25");
  12320. // let w = "";
  12321. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12322. // for(var k = 0;k<a.length;k++){
  12323. // //diffWordsWithSpace
  12324. // if(a.length > 1){
  12325. // if(a[k].added == true){
  12326. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12327. // }else if(a[k].removed == true){
  12328. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12329. // }else{
  12330. // w += '<span>' + a[k].value + '</span>';
  12331. // }
  12332. // }else{
  12333. // if(p == 1){
  12334. // w = this.newEnglishList.engText;
  12335. // }else if(p == 2){
  12336. // w = this.oldEnglishJson1.engText;
  12337. // }else if(p == 3){
  12338. // w = this.newEnglishList.engText;
  12339. // }else{
  12340. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12341. // }
  12342. // }
  12343. // }
  12344. if(p == 1){
  12345. this.newEnglishList.engText = aiText;
  12346. }else if(p == 2){
  12347. this.oldEnglishJson1.engText = aiText;
  12348. }else if(p == 3){
  12349. this.newEnglishList.engText = aiText;
  12350. }else{
  12351. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12352. }
  12353. loading.close();
  12354. },
  12355. (err) => {
  12356. console.log(err);
  12357. loading.close();
  12358. }
  12359. );
  12360. },
  12361. addToolChoose() {
  12362. if (!this.checktoolArray.length) {
  12363. this.$message.error("请选择要添加的任务");
  12364. return;
  12365. }
  12366. if (
  12367. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12368. this.taskCount
  12369. ].toolChoose[0].tool.length
  12370. ) {
  12371. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12372. this.taskCount
  12373. ].toolChoose[0].tool = this.checktoolArray;
  12374. } else {
  12375. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12376. this.taskCount
  12377. ].toolChoose.push({
  12378. tool: this.checktoolArray,
  12379. toolDetail: "",
  12380. toolType: 0,
  12381. askCount: 1,
  12382. askTitle: "",
  12383. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12384. });
  12385. }
  12386. let params = [
  12387. {
  12388. cid: this.id,
  12389. chapters: JSON.stringify(this.chapInfoList),
  12390. uid: this.userid,
  12391. unitIndex: this.courseType,
  12392. },
  12393. ];
  12394. this.ajax
  12395. .post(this.$store.state.api + "updateWorkNew4", params)
  12396. .then((res) => {
  12397. this.$message({
  12398. message: "添加成功",
  12399. type: "success",
  12400. });
  12401. this.checktoolArray = [];
  12402. this.getCourseDetail(2);
  12403. this.checkBz(
  12404. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12405. this.taskCount
  12406. ].toolChoose.length - 1
  12407. );
  12408. this.toolDialogVisible = false;
  12409. this.refreshCourse();
  12410. this.$forceUpdate();
  12411. })
  12412. .catch((err) => {
  12413. console.error(err);
  12414. });
  12415. },
  12416. checkBz(index) {
  12417. this.isUpdateToolDetail = false;
  12418. this.$forceUpdate();
  12419. setTimeout(() => {
  12420. document.scrollingElement.scrollTop =
  12421. document.querySelectorAll(".filebox")[index].offsetTop +
  12422. document.querySelector(".student_body").offsetTop;
  12423. }, 500);
  12424. },
  12425. updateToolDetail(i, type) {
  12426. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12427. this.toolDetailIndex = i
  12428. this.isUpdateToolDetail1 = true;
  12429. setTimeout(() => {
  12430. this.updateToolDetailInner = JSON.parse(
  12431. JSON.stringify(
  12432. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12433. this.taskCount
  12434. ].toolChoose[i].toolDetail
  12435. )
  12436. );
  12437. document.querySelector(".checkTextArea").focus();
  12438. }, 0);
  12439. } else if((this.isUpdateToolDetail1 && type != 2)){
  12440. // this.toolDetailIndex = i;
  12441. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12442. this.taskCount
  12443. ].toolChoose[i].toolDetail = JSON.parse(
  12444. JSON.stringify(this.updateToolDetailInner)
  12445. );
  12446. let params = [
  12447. {
  12448. cid: this.id,
  12449. chapters: JSON.stringify(this.chapInfoList),
  12450. uid: this.userid,
  12451. unitIndex: this.courseType,
  12452. },
  12453. ];
  12454. this.ajax
  12455. .post(this.$store.state.api + "updateWorkNew4", params)
  12456. .then((res) => {
  12457. this.isUpdateToolDetail1 = false;
  12458. this.$message({
  12459. message: "修改成功",
  12460. type: "success",
  12461. });
  12462. this.toolDetailIndex = null;
  12463. this.updateToolDetailInner = "";
  12464. this.getCourseDetail(2);
  12465. this.$forceUpdate();
  12466. })
  12467. .catch((err) => {
  12468. console.error(err);
  12469. });
  12470. } else if((this.isUpdateToolDetail1 && type == 2)){
  12471. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12472. this.taskCount
  12473. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12474. JSON.stringify(this.updateToolDetailInner)
  12475. );
  12476. let params = [
  12477. {
  12478. cid: this.id,
  12479. chapters: JSON.stringify(this.chapInfoList),
  12480. uid: this.userid,
  12481. unitIndex: this.courseType,
  12482. },
  12483. ];
  12484. this.ajax
  12485. .post(this.$store.state.api + "updateWorkNew4", params)
  12486. .then((res) => {
  12487. this.$message({
  12488. message: "修改成功",
  12489. type: "success",
  12490. });
  12491. this.toolDetailIndex = i;
  12492. this.isUpdateToolDetail1 = true;
  12493. setTimeout(() => {
  12494. this.updateToolDetailInner = JSON.parse(
  12495. JSON.stringify(
  12496. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12497. this.taskCount
  12498. ].toolChoose[i].toolDetail
  12499. )
  12500. );
  12501. document.querySelector(".checkTextArea").focus();
  12502. }, 0);
  12503. this.getCourseDetail(2);
  12504. this.$forceUpdate();
  12505. })
  12506. .catch((err) => {
  12507. console.error(err);
  12508. });
  12509. }
  12510. },
  12511. jumpGj(i, j, k, l) {
  12512. for (var z = 0; z < this.navList.length; z++) {
  12513. for (var q = 0; q < this.navList[z].task.length; q++) {
  12514. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12515. this.navList[z].task[q].tool[w].isTool = false;
  12516. }
  12517. }
  12518. }
  12519. this.navList[i].task[j].tool[k].isTool =
  12520. !this.navList[i].task[j].tool[k].isTool;
  12521. var a = document.scrollingElement;
  12522. this.navId = ""
  12523. let target = document.querySelector(`#gj${k}`);
  12524. if (target) {
  12525. target.scrollIntoView(true);
  12526. setTimeout(() => {
  12527. a.scrollTop = a.scrollTop - 150;
  12528. }, 0);
  12529. }
  12530. if (l) {
  12531. this.courseType = i;
  12532. // this.navId = l;
  12533. this.taskCount = j;
  12534. this.selectPz();
  12535. this.getHomeWork();
  12536. this.getCourseDetail(2);
  12537. }
  12538. // var b = this.$refs["bz" + k][0];
  12539. // a.scrollTop = b.offsetTop;
  12540. },
  12541. addTools2(i) {
  12542. if (i == 4) {
  12543. // this.openTools2(4);
  12544. this.$message.error("暂未开放");
  12545. return;
  12546. }
  12547. if (i == 45) {
  12548. // this.openTools2(45);
  12549. this.$message.error("暂未开放");
  12550. return;
  12551. }
  12552. if (i == 47) {
  12553. // this.openTools2(47);
  12554. this.$message.error("暂未开放");
  12555. return;
  12556. }
  12557. if (i == 49) {
  12558. // this.openTools2(49);
  12559. this.$message.error("暂未开放");
  12560. return;
  12561. }
  12562. if (i == 62) {
  12563. // this.openTools(itemTaskIndex, 62, toolIndex);
  12564. this.$message.error("暂未开放");
  12565. return;
  12566. }
  12567. if (i == 15) {
  12568. // this.openTools(itemTaskIndex, 15, toolIndex);
  12569. this.$message.error("暂未开放");
  12570. return;
  12571. }
  12572. if (i == 40) {
  12573. // this.openTools(itemTaskIndex, 40, toolIndex);
  12574. this.$message.error("暂未开放");
  12575. return;
  12576. }
  12577. if (i == 41) {
  12578. // this.openTools(itemTaskIndex, 41, toolIndex);
  12579. this.$message.error("暂未开放");
  12580. return;
  12581. }
  12582. if (i == 42) {
  12583. // this.openTools(itemTaskIndex, 42, toolIndex);
  12584. this.$message.error("暂未开放");
  12585. return;
  12586. }
  12587. if (this.checktoolArray.length > 0) {
  12588. if (this.checktoolArray.indexOf(i) != -1) {
  12589. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12590. } else {
  12591. this.checktoolArray = [];
  12592. this.checktoolArray.push(i);
  12593. }
  12594. } else {
  12595. this.checktoolArray.push(i);
  12596. }
  12597. this.$forceUpdate();
  12598. },
  12599. jump() {
  12600. window.parent.postMessage({ tools: "43" }, "*");
  12601. },
  12602. getUpdateMore(f, checkboxList, searchTN, index) {
  12603. this.dialogVisibleMember = f;
  12604. this.checkboxList = checkboxList;
  12605. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12606. this.plIndex = index;
  12607. },
  12608. setPlname(a) {
  12609. if (this.plworkFile.length) {
  12610. this.plworkFile[this.plIndex].username = a;
  12611. } else {
  12612. this.worksSName = a;
  12613. }
  12614. this.dialogVisibleMember = false;
  12615. },
  12616. previewImg(url) {
  12617. this.$hevueImgPreview(url);
  12618. },
  12619. checkImg(list) {
  12620. if (!list.length) {
  12621. return;
  12622. }
  12623. this.$hevueImgPreview({
  12624. multiple: true, // 开启多图预览模式
  12625. imgList: list, // 需要预览的多图数组
  12626. });
  12627. },
  12628. change(val) {
  12629. console.log(val);
  12630. },
  12631. goTo(path) {
  12632. this.$router.push(path);
  12633. },
  12634. handlePictureCardPreview(url) {
  12635. this.dialogImageUrl = url;
  12636. this.pictureDialog = true;
  12637. },
  12638. clean(type) {
  12639. if (type == 1) {
  12640. this.studyJuri[0].cover.splice(0, 1);
  12641. } else if (type == 2) {
  12642. this.studyJuri[0].upVedio.splice(0, 1);
  12643. } else {
  12644. this.studyJuri[0].upFile.splice(0, 1);
  12645. }
  12646. },
  12647. clean2(index) {
  12648. this.plworkFile.splice(index, 1);
  12649. },
  12650. handleClose(done) {
  12651. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12652. this.videoDetail.sources[0].src = "";
  12653. }
  12654. this.commentIndexJson = {};
  12655. done();
  12656. },
  12657. fullTools() {
  12658. this.full = !this.full;
  12659. },
  12660. imgChange(file, fileList, type) {
  12661. if (type == 1) {
  12662. var _tmp = this.studyJuri[0].cover;
  12663. } else if (type == 2) {
  12664. var _tmp = this.studyJuri[0].upVedio;
  12665. } else {
  12666. var _tmp = this.studyJuri[0].upFile;
  12667. }
  12668. this.noneBtnImg = _tmp.length >= 1;
  12669. },
  12670. setContent(bool) {
  12671. this.contentDialog = bool;
  12672. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12673. document.querySelector(".workd_media").style.height = "650px";
  12674. } else if (document.querySelector(".workd_media")) {
  12675. document.querySelector(".workd_media").style.height = "auto";
  12676. }
  12677. },
  12678. setContent2(bool) {
  12679. this.mlDialog = bool;
  12680. if (
  12681. bool &&
  12682. this.contentDialog &&
  12683. document.querySelector(".workd_media")
  12684. ) {
  12685. document.querySelector(".workd_media").style.height = "650px";
  12686. } else if (document.querySelector(".workd_media")) {
  12687. document.querySelector(".workd_media").style.height = "auto";
  12688. }
  12689. },
  12690. openToolAll() {
  12691. this.toolDialogVisible = true;
  12692. },
  12693. addImg(e) {
  12694. var el = e.currentTarget;
  12695. // this.$message.success('触发上传')
  12696. el.getElementsByTagName("input")[0].click();
  12697. e.target.value = "";
  12698. },
  12699. addSelectAnswer() {
  12700. let params = [
  12701. {
  12702. uid: this.userid,
  12703. cid: this.id,
  12704. stage: this.courseType,
  12705. task: this.taskCount,
  12706. tool: this.toolindex,
  12707. content: this.selectAnswer.answer,
  12708. type: 7,
  12709. },
  12710. ];
  12711. this.ajax
  12712. .post(this.$store.state.api + "addCourseWorks", params)
  12713. .then((res) => {
  12714. this.$message({
  12715. message: "提交成功",
  12716. type: "success",
  12717. });
  12718. this.dialogVisibleSelect = false;
  12719. // this.selectAnswer = {};
  12720. this.selectSWorks();
  12721. this.selectStudent();
  12722. })
  12723. .catch((err) => {
  12724. this.$message.error("提交失败");
  12725. console.error(err);
  12726. });
  12727. },
  12728. addSelectAnswerTeacher() {
  12729. let params = [
  12730. {
  12731. uid: this.sStudent.userid,
  12732. cid: this.id,
  12733. stage: this.courseType,
  12734. task: this.taskCount,
  12735. tool: this.toolindex,
  12736. content: this.selectAnswer.answer,
  12737. type: 7,
  12738. },
  12739. ];
  12740. this.ajax
  12741. .post(this.$store.state.api + "addCourseWorks", params)
  12742. .then((res) => {
  12743. this.$message({
  12744. message: "提交成功",
  12745. type: "success",
  12746. });
  12747. this.dialogVisibleSelectTeacher = false;
  12748. // this.selectAnswer = {};
  12749. this.selectSWorks();
  12750. this.selectStudent();
  12751. })
  12752. .catch((err) => {
  12753. this.$message.error("提交失败");
  12754. console.error(err);
  12755. });
  12756. },
  12757. addSenWorks() {
  12758. for (var i = 0; i < this.sentenceList.length; i++) {
  12759. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12760. if (
  12761. this.sentenceList[i].chooseSenList[j] == undefined ||
  12762. this.sentenceList[i].chooseSenList[j] == ""
  12763. ) {
  12764. this.$message.error("请将答案填写完整!");
  12765. return;
  12766. }
  12767. }
  12768. }
  12769. let params = [
  12770. {
  12771. uid: this.userid,
  12772. cid: this.id,
  12773. stage: this.courseType,
  12774. task: this.taskCount,
  12775. tool: this.toolindex,
  12776. content: JSON.stringify(this.sentenceList),
  12777. type: 9,
  12778. },
  12779. ];
  12780. this.ajax
  12781. .post(this.$store.state.api + "addCourseWorks", params)
  12782. .then((res) => {
  12783. this.$message({
  12784. message: "提交成功",
  12785. type: "success",
  12786. });
  12787. this.dialogVisibleSentence = false;
  12788. // this.selectAnswer = {};
  12789. this.selectSWorks();
  12790. this.selectStudent();
  12791. })
  12792. .catch((err) => {
  12793. this.$message.error("提交失败");
  12794. console.error(err);
  12795. });
  12796. },
  12797. addSenWorksTeacher() {
  12798. for (var i = 0; i < this.sentenceList.length; i++) {
  12799. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12800. if (
  12801. this.sentenceList[i].chooseSenList[j] == undefined ||
  12802. this.sentenceList[i].chooseSenList[j] == ""
  12803. ) {
  12804. this.$message.error("请将答案填写完整!");
  12805. return;
  12806. }
  12807. }
  12808. }
  12809. let params = [
  12810. {
  12811. uid: this.sStudent.userid,
  12812. cid: this.id,
  12813. stage: this.courseType,
  12814. task: this.taskCount,
  12815. tool: this.toolindex,
  12816. content: JSON.stringify(this.sentenceList),
  12817. type: 9,
  12818. },
  12819. ];
  12820. this.ajax
  12821. .post(this.$store.state.api + "addCourseWorks", params)
  12822. .then((res) => {
  12823. this.$message({
  12824. message: "提交成功",
  12825. type: "success",
  12826. });
  12827. this.dialogVisibleSentenceTeacher = false;
  12828. // this.selectAnswer = {};
  12829. this.selectSWorks();
  12830. this.selectStudent();
  12831. })
  12832. .catch((err) => {
  12833. this.$message.error("提交失败");
  12834. console.error(err);
  12835. });
  12836. },
  12837. returnTableText() {
  12838. this.$confirm("确定还原此模板吗?", "提示", {
  12839. confirmButtonText: "确定",
  12840. cancelButtonText: "取消",
  12841. type: "warning",
  12842. })
  12843. .then(() => {
  12844. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12845. })
  12846. .catch(() => {});
  12847. },
  12848. addTableWorks() {
  12849. let params = [
  12850. {
  12851. uid: this.userid,
  12852. cid: this.id,
  12853. stage: this.courseType,
  12854. task: this.taskCount,
  12855. tool: this.toolindex,
  12856. content: JSON.stringify(this.tableJson),
  12857. type: 10,
  12858. },
  12859. ];
  12860. this.ajax
  12861. .post(this.$store.state.api + "addCourseWorks", params)
  12862. .then((res) => {
  12863. this.$message({
  12864. message: "提交成功",
  12865. type: "success",
  12866. });
  12867. this.dialogVisibleTable = false;
  12868. // this.selectAnswer = {};
  12869. this.selectSWorks();
  12870. this.selectStudent();
  12871. })
  12872. .catch((err) => {
  12873. this.$message.error("提交失败");
  12874. console.error(err);
  12875. });
  12876. },
  12877. tableRowClassName({ row, rowIndex }) {
  12878. if ((rowIndex + 1) % 2 === 0) {
  12879. return "even_row";
  12880. } else {
  12881. return "";
  12882. }
  12883. },
  12884. addTableWorksTeacher() {
  12885. let params = [
  12886. {
  12887. uid: this.sStudent.userid,
  12888. cid: this.id,
  12889. stage: this.courseType,
  12890. task: this.taskCount,
  12891. tool: this.toolindex,
  12892. content: JSON.stringify(this.tableJson),
  12893. type: 10,
  12894. },
  12895. ];
  12896. this.ajax
  12897. .post(this.$store.state.api + "addCourseWorks", params)
  12898. .then((res) => {
  12899. this.$message({
  12900. message: "提交成功",
  12901. type: "success",
  12902. });
  12903. this.dialogVisibleTableTeacher = false;
  12904. // this.selectAnswer = {};
  12905. this.selectSWorks();
  12906. this.selectStudent();
  12907. })
  12908. .catch((err) => {
  12909. this.$message.error("提交失败");
  12910. console.error(err);
  12911. });
  12912. },
  12913. returnWordText() {
  12914. this.$confirm("确定还原此模板吗?", "提示", {
  12915. confirmButtonText: "确定",
  12916. cancelButtonText: "取消",
  12917. type: "warning",
  12918. })
  12919. .then(() => {
  12920. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  12921. })
  12922. .catch(() => {});
  12923. },
  12924. addWordWorks() {
  12925. let params = [
  12926. {
  12927. uid: this.userid,
  12928. cid: this.id,
  12929. stage: this.courseType,
  12930. task: this.taskCount,
  12931. tool: this.toolindex,
  12932. content: JSON.stringify(this.wordJson),
  12933. type: 13,
  12934. atool: 52,
  12935. },
  12936. ];
  12937. this.ajax
  12938. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12939. .then((res) => {
  12940. this.$message({
  12941. message: "提交成功",
  12942. type: "success",
  12943. });
  12944. this.dialogVisibleWord = false;
  12945. // this.selectAnswer = {};
  12946. this.selectSWorks();
  12947. this.selectStudent();
  12948. })
  12949. .catch((err) => {
  12950. this.$message.error("提交失败");
  12951. console.error(err);
  12952. });
  12953. },
  12954. addWordWorksTeacher() {
  12955. let params = [
  12956. {
  12957. uid: this.sStudent.userid,
  12958. cid: this.id,
  12959. stage: this.courseType,
  12960. task: this.taskCount,
  12961. tool: this.toolindex,
  12962. content: JSON.stringify(this.wordJson),
  12963. type: 13,
  12964. atool: 52,
  12965. },
  12966. ];
  12967. this.ajax
  12968. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12969. .then((res) => {
  12970. this.$message({
  12971. message: "提交成功",
  12972. type: "success",
  12973. });
  12974. this.dialogVisibleWordTeacher = false;
  12975. // this.selectAnswer = {};
  12976. this.selectSWorks();
  12977. this.selectStudent();
  12978. })
  12979. .catch((err) => {
  12980. this.$message.error("提交失败");
  12981. console.error(err);
  12982. });
  12983. },
  12984. addCourseWorks(i) {
  12985. var typesql;
  12986. if (this.fileType === 0) {
  12987. typesql = 1;
  12988. } else if (this.fileType === 1) {
  12989. typesql = 4;
  12990. } else if (this.fileType === 2) {
  12991. typesql = 5;
  12992. } else if (this.fileType === 3) {
  12993. typesql = 12;
  12994. }
  12995. if (!this.studyJuri[0].cover[0].url) {
  12996. this.$message.error("请上传文件");
  12997. return;
  12998. }
  12999. let params = [
  13000. {
  13001. uid: this.userid,
  13002. cid: this.id,
  13003. stage: this.courseType,
  13004. task: i,
  13005. tool: this.toolindex,
  13006. content: this.studyJuri[0].cover[0].url,
  13007. type: typesql,
  13008. },
  13009. ];
  13010. this.ajax
  13011. .post(this.$store.state.api + "addCourseWorksR", params)
  13012. .then((res) => {
  13013. this.$message({
  13014. message: "提交成功",
  13015. type: "success",
  13016. });
  13017. this.studyJuri[0].cover = [];
  13018. this.dialogVisible = false;
  13019. this.getCourseDetail(2);
  13020. })
  13021. .catch((err) => {
  13022. this.$message.error("提交失败");
  13023. console.error(err);
  13024. });
  13025. },
  13026. addCourseWorksPl(i) {
  13027. let _files = this.plworkFile;
  13028. var c = 1;
  13029. for (var k = 0; k < _files.length; k++) {
  13030. if (!_files[k].username) {
  13031. c = 2;
  13032. }
  13033. }
  13034. if (c == 2) {
  13035. this.$message.error("请填写学生姓名");
  13036. return;
  13037. }
  13038. let params = [
  13039. {
  13040. ateacher: this.userid,
  13041. cid: this.id,
  13042. stage: this.courseType,
  13043. task: i,
  13044. tool: this.toolindex,
  13045. content: JSON.stringify(_files),
  13046. },
  13047. ];
  13048. this.ajax
  13049. .post(this.$store.state.api + "addCourseWorksPl", params)
  13050. .then((res) => {
  13051. this.$message({
  13052. message: "提交成功",
  13053. type: "success",
  13054. });
  13055. this.plworkFile = [];
  13056. this.dialogVisiblePl = false;
  13057. this.getCourseDetail(2);
  13058. })
  13059. .catch((err) => {
  13060. this.$message.error("提交失败");
  13061. console.error(err);
  13062. });
  13063. },
  13064. addCourseWorks2(i) {
  13065. var typesql;
  13066. if (this.fileType === 0) {
  13067. typesql = 0;
  13068. } else if (this.fileType === 1) {
  13069. typesql = 1;
  13070. } else if (this.fileType === 2) {
  13071. typesql = 3;
  13072. } else if (this.fileType === 3) {
  13073. typesql = 12;
  13074. }
  13075. if (!this.studyJuri[0].cover[0].url) {
  13076. this.$message.error("请上传文件");
  13077. return;
  13078. }
  13079. let params = [
  13080. {
  13081. uid: this.userid,
  13082. cid: this.id,
  13083. stage: this.courseType,
  13084. task: i,
  13085. tool: this.toolindex,
  13086. content: JSON.stringify({
  13087. type: typesql,
  13088. groupIndex: this.groupIndex,
  13089. url: this.studyJuri[0].cover[0].url,
  13090. }),
  13091. type: 11,
  13092. atool: 49,
  13093. text: "",
  13094. },
  13095. ];
  13096. this.ajax
  13097. .post(this.$store.state.api + "addCourseWorks5", params)
  13098. .then((res) => {
  13099. this.$message({
  13100. message: "提交成功",
  13101. type: "success",
  13102. });
  13103. this.studyJuri[0].cover = [];
  13104. this.dialogVisibleGroupWork = false;
  13105. this.getCourseDetail(2);
  13106. })
  13107. .catch((err) => {
  13108. this.$message.error("提交失败");
  13109. console.error(err);
  13110. });
  13111. },
  13112. addEnglishWork() {
  13113. this.myAnList = this.$refs['engJson'].myAnswerList;
  13114. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13115. this.$message.error("请输入作文标题和正文!");
  13116. return;
  13117. }
  13118. let params = [
  13119. {
  13120. uid: this.userid,
  13121. cid: this.id,
  13122. stage: this.courseType,
  13123. task: this.taskCount,
  13124. tool: this.englishToolIndex,
  13125. content: JSON.stringify(this.myAnList),
  13126. type: 16,
  13127. atool: 69,
  13128. text: "",
  13129. },
  13130. ];
  13131. this.ajax
  13132. .post(this.$store.state.api + "addCourseWorks5", params)
  13133. .then((res) => {
  13134. this.$message({
  13135. message: "提交成功",
  13136. type: "success",
  13137. });
  13138. this.myAnList = {};
  13139. this.englishList = {};
  13140. this.englishToolIndex = 0;
  13141. this.engDialogVisible = false;
  13142. this.selectSWorks();
  13143. this.selectStudent();
  13144. })
  13145. .catch((err) => {
  13146. this.$message.error("提交失败");
  13147. console.error(err);
  13148. });
  13149. },
  13150. addCourseWorksGong(i, data, tool) {
  13151. let params = [
  13152. {
  13153. uid: this.userid,
  13154. cid: this.id,
  13155. stage: this.courseType,
  13156. task: this.taskCount,
  13157. tool: i,
  13158. content: data,
  13159. type: 12,
  13160. atool: tool,
  13161. text: "",
  13162. },
  13163. ];
  13164. this.ajax
  13165. .post(this.$store.state.api + "addCourseWorks5", params)
  13166. .then((res) => {
  13167. this.$message({
  13168. message: "提交成功",
  13169. type: "success",
  13170. });
  13171. this.studyJuri[0].cover = [];
  13172. this.selectSWorks();
  13173. this.selectStudent();
  13174. })
  13175. .catch((err) => {
  13176. this.$message.error("提交失败");
  13177. console.error(err);
  13178. });
  13179. },
  13180. addCourseWorksGongTeacher(i, data, tool) {
  13181. let params = [
  13182. {
  13183. uid: this.sStudent.userid,
  13184. cid: this.id,
  13185. stage: this.courseType,
  13186. task: this.taskCount,
  13187. tool: i,
  13188. content: data,
  13189. type: 12,
  13190. atool: tool,
  13191. text: "",
  13192. },
  13193. ];
  13194. this.ajax
  13195. .post(this.$store.state.api + "addCourseWorks5", params)
  13196. .then((res) => {
  13197. this.$message({
  13198. message: "提交成功",
  13199. type: "success",
  13200. });
  13201. this.studyJuri[0].cover = [];
  13202. this.dialogVisibleWorks = false;
  13203. this.selectSWorks();
  13204. this.selectStudent();
  13205. })
  13206. .catch((err) => {
  13207. this.$message.error("提交失败");
  13208. console.error(err);
  13209. });
  13210. },
  13211. addCourseWorksGongPl(i, data, tool, type) {
  13212. let params = [
  13213. {
  13214. uid: this.sStudent.userid,
  13215. cid: this.id,
  13216. stage: this.courseType,
  13217. task: this.taskCount,
  13218. tool: i,
  13219. content: data,
  13220. type: type,
  13221. atool: tool,
  13222. text: "",
  13223. },
  13224. ];
  13225. this.ajax
  13226. .post(this.$store.state.api + "addCourseWorks5", params)
  13227. .then((res) => {
  13228. this.$message({
  13229. message: "提交成功",
  13230. type: "success",
  13231. });
  13232. this.studyJuri[0].cover = [];
  13233. this.dialogVisibleWorks = false;
  13234. this.selectSWorks();
  13235. this.selectStudent();
  13236. })
  13237. .catch((err) => {
  13238. this.$message.error("提交失败");
  13239. console.error(err);
  13240. });
  13241. },
  13242. addCourseWorksTeacher(i) {
  13243. var typesql;
  13244. if (this.sTool == 32) {
  13245. this.addCourseWorksGongTeacher(
  13246. this.toolindex,
  13247. this.studyJuri[0].cover[0].url,
  13248. this.sTool
  13249. );
  13250. return;
  13251. }
  13252. if (this.fileType === 0) {
  13253. typesql = 1;
  13254. } else if (this.fileType === 1) {
  13255. typesql = 4;
  13256. } else if (this.fileType === 2) {
  13257. typesql = 5;
  13258. } else if (this.fileType === 3) {
  13259. typesql = 12;
  13260. }
  13261. if (this.sTool == 50) {
  13262. this.addCourseWorksGongPl(
  13263. this.toolindex,
  13264. this.studyJuri[0].cover[0].url,
  13265. this.sTool,
  13266. typesql
  13267. );
  13268. return;
  13269. }
  13270. if (!this.studyJuri[0].cover[0].url) {
  13271. this.$message.error("请上传文件");
  13272. return;
  13273. }
  13274. let params = [
  13275. {
  13276. uid: this.sStudent.userid,
  13277. cid: this.id,
  13278. stage: this.courseType,
  13279. task: i,
  13280. tool: this.toolindex,
  13281. content: this.studyJuri[0].cover[0].url,
  13282. type: typesql,
  13283. ateacher: this.userid,
  13284. },
  13285. ];
  13286. this.ajax
  13287. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13288. .then((res) => {
  13289. this.$message({
  13290. message: "提交成功",
  13291. type: "success",
  13292. });
  13293. this.studyJuri[0].cover = [];
  13294. this.dialogVisibleWorks = false;
  13295. this.getCourseDetail(2);
  13296. })
  13297. .catch((err) => {
  13298. this.$message.error("提交失败");
  13299. console.error(err);
  13300. });
  13301. },
  13302. selectUploadStudent(type) {
  13303. const loading = this.$loading.service({
  13304. background: "rgba(255, 255, 255, 0.7)",
  13305. target: document.body,
  13306. });
  13307. let params = {
  13308. cid: this.uploadCid,
  13309. oid: this.oid,
  13310. cn: "",
  13311. };
  13312. this.ajax
  13313. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13314. .then((res) => {
  13315. loading.close();
  13316. var studentK = [];
  13317. if (this.isWorksS[this.toolindex].length > 0) {
  13318. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13319. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13320. }
  13321. studentK = studentK.join(",");
  13322. }
  13323. this.uploadStudentJuri = res.data[0].filter((el) => {
  13324. return studentK.indexOf(el.userid) == -1;
  13325. });
  13326. if (this.worksSName && this.worksSid) {
  13327. this.uploadStudentJuri.push({
  13328. userid: this.worksSid,
  13329. name: this.worksSName,
  13330. });
  13331. }
  13332. if (type == 1) {
  13333. this.plworkFile = [];
  13334. this.dialogVisibleSname = true;
  13335. } else if (type == 2) {
  13336. this.dialogVisiblePl = true;
  13337. }
  13338. })
  13339. .catch((err) => {
  13340. loading.close();
  13341. console.error(err);
  13342. });
  13343. },
  13344. selectPickStudent() {
  13345. const loading = this.$loading.service({
  13346. background: "rgba(255, 255, 255, 0.7)",
  13347. target: document.body,
  13348. });
  13349. let params = {
  13350. cid: this.uploadCid,
  13351. oid: this.oid,
  13352. cn: "",
  13353. };
  13354. this.ajax
  13355. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13356. .then((res) => {
  13357. loading.close();
  13358. this.uploadStudentJuri = res.data[0];
  13359. this.dialogVisiblePickPeople = true;
  13360. })
  13361. .catch((err) => {
  13362. loading.close();
  13363. console.error(err);
  13364. });
  13365. },
  13366. arrayToArray(arrayo, arrayt) {
  13367. let array1 = arrayo;
  13368. let array2 = arrayt;
  13369. let commonElements = [];
  13370. for (let i = 0; i < array1.length; i++) {
  13371. for (let j = 0; j < array2.length; j++) {
  13372. if (array1[i] === array2[j]) {
  13373. commonElements.push(array1[i]);
  13374. }
  13375. }
  13376. }
  13377. return commonElements;
  13378. },
  13379. selectWorksStudent() {
  13380. let params = {
  13381. oid: this.oid,
  13382. cid: this.courseDetail.juri,
  13383. };
  13384. this.ajax
  13385. .get(this.$store.state.api + "selectWorksStudent", params)
  13386. .then((res) => {
  13387. var a = res.data[0];
  13388. for (var i = 0; i < this.isWorksS.length; i++) {
  13389. this.noWorksS[i] = [];
  13390. var studentK = [];
  13391. if (this.isWorksS[i].length > 0) {
  13392. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13393. studentK.push(this.isWorksS[i][z].uid);
  13394. }
  13395. studentK = studentK.join(",");
  13396. for (var j = 0; j < a.length; j++) {
  13397. if (studentK.indexOf(a[j].userid) == -1) {
  13398. if (this.tcid) {
  13399. // a[j].classid.indexOf(this.tcid) != -1
  13400. if (
  13401. this.arrayToArray(
  13402. a[j].classid.split(","),
  13403. this.tcid.split(",")
  13404. ).length
  13405. ) {
  13406. this.noWorksS[i].push({
  13407. student: a[j].name,
  13408. userid: a[j].userid,
  13409. });
  13410. }
  13411. } else {
  13412. this.noWorksS[i].push({
  13413. student: a[j].name,
  13414. userid: a[j].userid,
  13415. });
  13416. }
  13417. }
  13418. }
  13419. } else {
  13420. for (var k = 0; k < a.length; k++) {
  13421. if (this.tcid) {
  13422. if (
  13423. this.arrayToArray(
  13424. a[k].classid.split(","),
  13425. this.tcid.split(",")
  13426. ).length
  13427. ) {
  13428. this.noWorksS[i].push({
  13429. student: a[k].name,
  13430. userid: a[k].userid,
  13431. });
  13432. }
  13433. } else {
  13434. this.noWorksS[i].push({
  13435. student: a[k].name,
  13436. userid: a[k].userid,
  13437. });
  13438. }
  13439. }
  13440. }
  13441. }
  13442. this.$forceUpdate();
  13443. if (
  13444. Object.keys(this.commentDetail).length &&
  13445. Object.keys(this.commentIndexJson).length &&
  13446. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13447. ) {
  13448. let a = 1;
  13449. let c = this.commentIndexJson;
  13450. if (
  13451. this.commentIndexJson.gindex ||
  13452. this.commentIndexJson.gindex === 0
  13453. ) {
  13454. for (
  13455. var i = 0;
  13456. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13457. i++
  13458. ) {
  13459. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13460. groupA: for (var k = 0; k < _el.length; k++) {
  13461. let el = _el[k];
  13462. if (el.wid == this.commentDetail.wid) {
  13463. a = 2;
  13464. this.commentOther(
  13465. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13466. this.commentIndexJson.toolIndex,
  13467. k,
  13468. this.commentIndexJson.gindex
  13469. );
  13470. break groupA;
  13471. }
  13472. }
  13473. }
  13474. if (a === 1) {
  13475. this.commentDetail = [];
  13476. this.commentIndexJson = {};
  13477. this.commentDialogVisible = false;
  13478. this.$message("此作业已被删除");
  13479. }
  13480. } else {
  13481. if (this.isGroup && this.commentIndexJson.gid) {
  13482. groupA: for (
  13483. var i = 0;
  13484. i < this.courseGroup.group.length;
  13485. i++
  13486. ) {
  13487. let _group = this.courseGroup.group[i];
  13488. if (_group.id == this.commentIndexJson.gid) {
  13489. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13490. for (var k = 0; k < _el2.length; k++) {
  13491. let el2 = _el2[k];
  13492. if (el2.wid == this.commentDetail.wid) {
  13493. a = 2;
  13494. this.commentOther(
  13495. _el2[k],
  13496. this.commentIndexJson.toolIndex,
  13497. k,
  13498. null,
  13499. this.commentIndexJson.gid
  13500. );
  13501. break groupA;
  13502. }
  13503. }
  13504. }
  13505. }
  13506. }
  13507. if (a == 1) {
  13508. for (
  13509. var i = 0;
  13510. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13511. i++
  13512. ) {
  13513. let el =
  13514. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13515. if (el.wid == this.commentDetail.wid) {
  13516. a = 2;
  13517. this.commentOther(
  13518. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13519. this.commentIndexJson.toolIndex,
  13520. i
  13521. );
  13522. break;
  13523. }
  13524. }
  13525. }
  13526. if (a === 1) {
  13527. this.commentDetail = [];
  13528. this.commentIndexJson = {};
  13529. this.commentDialogVisible = false;
  13530. this.$message("此作业已被删除");
  13531. }
  13532. }
  13533. }
  13534. })
  13535. .catch((err) => {
  13536. console.error(err);
  13537. });
  13538. },
  13539. selectStudent() {
  13540. //学生查看自己作业
  13541. let params = {
  13542. uid: this.userid,
  13543. cid: this.id,
  13544. s: this.courseType,
  13545. t: this.taskCount,
  13546. };
  13547. this.ajax
  13548. .get(this.$store.state.api + "selectStudentWorks", params)
  13549. .then((res) => {
  13550. var a =
  13551. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13552. this.taskCount
  13553. ].toolChoose;
  13554. var b = res.data[0];
  13555. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13556. var y = [
  13557. "AVI",
  13558. "NAVI",
  13559. "MPEG",
  13560. "ASF",
  13561. "MOV",
  13562. "WMV",
  13563. "3GP",
  13564. "RM",
  13565. "RMVB",
  13566. "FLV",
  13567. "F4V",
  13568. "H.264",
  13569. "H.265",
  13570. "REAL VIDEO",
  13571. "MKV",
  13572. "WebM",
  13573. "HDDVD",
  13574. "MP4",
  13575. "MPG",
  13576. "M4V",
  13577. "MGV",
  13578. "OGV",
  13579. "QTM",
  13580. "STR",
  13581. "AMC",
  13582. "DVX",
  13583. "EVO",
  13584. "DAT",
  13585. "OGG",
  13586. "OGM",
  13587. ];
  13588. for (var i = 0; i < a.length; i++) {
  13589. this.workStudent[i] = [];
  13590. for (var j = 0; j < b.length; j++) {
  13591. if (i == b[j].tool) {
  13592. if (
  13593. (b[j].type == 1 ||
  13594. b[j].type == 4 ||
  13595. b[j].type == 5 ||
  13596. b[j].type == 6 ||
  13597. b[j].type == 12 ||
  13598. b[j].type == 7) &&
  13599. a[i].tool[0] != 15 &&
  13600. a[i].tool[0] != 4 &&
  13601. a[i].tool[0] != 45 &&
  13602. a[i].tool[0] != 50 &&
  13603. a[i].tool[0] != 32 &&
  13604. a[i].tool[0] != 57 &&
  13605. a[i].tool[0] != 52 &&
  13606. a[i].tool[0] != 69
  13607. ) {
  13608. if (
  13609. c.indexOf(
  13610. b[j].content
  13611. .split(".")
  13612. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13613. ) != -1 &&
  13614. a[i].tool[0] == 16 &&
  13615. b[j].atool != 50
  13616. ) {
  13617. this.workStudent[i].push({
  13618. works: b[j].content,
  13619. sName: b[j].name,
  13620. score: b[j].score,
  13621. img: b[j].img,
  13622. type: 1,
  13623. time: b[j].time,
  13624. userid: b[j].userid,
  13625. wid: b[j].id,
  13626. });
  13627. } else if (
  13628. y.indexOf(
  13629. b[j].content
  13630. .split(".")
  13631. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13632. ) != -1 &&
  13633. a[i].tool[0] == 16 &&
  13634. b[j].atool != 50
  13635. ) {
  13636. this.workStudent[i].push({
  13637. userid: b[j].userid,
  13638. wid: b[j].id,
  13639. works: b[j].content,
  13640. sName: b[j].name,
  13641. score: b[j].score,
  13642. img: b[j].img,
  13643. type: 3,
  13644. time: b[j].time,
  13645. });
  13646. } else if (b[j].type == 6 && b[j].atool != 50) {
  13647. this.workStudent[i].push({
  13648. userid: b[j].userid,
  13649. wid: b[j].id,
  13650. works: b[j].content,
  13651. sName: b[j].name,
  13652. score: b[j].score,
  13653. img: b[j].img,
  13654. type: 4,
  13655. time: b[j].time,
  13656. });
  13657. } else if (b[j].type == 7 && b[j].atool != 50) {
  13658. this.workStudent[i].push({
  13659. userid: b[j].userid,
  13660. wid: b[j].id,
  13661. works: b[j].content,
  13662. sName: b[j].name,
  13663. score: b[j].score,
  13664. img: b[j].img,
  13665. type: 5,
  13666. time: b[j].time,
  13667. });
  13668. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13669. this.workStudent[i].push({
  13670. works: b[j].content,
  13671. sName: b[j].name,
  13672. score: b[j].score,
  13673. img: b[j].img,
  13674. type: 12,
  13675. time: b[j].time,
  13676. userid: b[j].userid,
  13677. wid: b[j].id,
  13678. });
  13679. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13680. this.workStudent[i].push({
  13681. works: b[j].content,
  13682. sName: b[j].name,
  13683. score: b[j].score,
  13684. img: b[j].img,
  13685. type: 0,
  13686. time: b[j].time,
  13687. userid: b[j].userid,
  13688. wid: b[j].id,
  13689. });
  13690. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13691. this.workStudent[i].push({
  13692. works: b[j].content,
  13693. sName: b[j].name,
  13694. score: b[j].score,
  13695. img: b[j].img,
  13696. type: 0,
  13697. time: b[j].time,
  13698. userid: b[j].userid,
  13699. wid: b[j].id,
  13700. });
  13701. }
  13702. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13703. this.workStudent[i].push({
  13704. works: b[j].content,
  13705. sName: b[j].name,
  13706. score: b[j].score,
  13707. img: b[j].img,
  13708. type: 2,
  13709. time: b[j].time,
  13710. userid: b[j].userid,
  13711. wid: b[j].id,
  13712. });
  13713. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13714. //问卷
  13715. this.workStudent[i].push({
  13716. works: b[j].content,
  13717. sName: b[j].name,
  13718. score: b[j].score,
  13719. img: b[j].img,
  13720. type: 2,
  13721. time: b[j].time,
  13722. userid: b[j].userid,
  13723. wid: b[j].id,
  13724. });
  13725. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13726. //选择题
  13727. this.workStudent[i].push({
  13728. works: b[j].content,
  13729. sName: b[j].name,
  13730. score: b[j].score,
  13731. img: b[j].img,
  13732. type: 8,
  13733. time: b[j].time,
  13734. userid: b[j].userid,
  13735. wid: b[j].id,
  13736. });
  13737. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13738. //选择题
  13739. this.workStudent[i].push({
  13740. works: b[j].content,
  13741. sName: b[j].name,
  13742. score: b[j].score,
  13743. img: b[j].img,
  13744. type: 9,
  13745. time: b[j].time,
  13746. userid: b[j].userid,
  13747. wid: b[j].id,
  13748. });
  13749. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13750. //选择题
  13751. this.workStudent[i].push({
  13752. works: b[j].content,
  13753. sName: b[j].name,
  13754. score: b[j].score,
  13755. img: b[j].img,
  13756. type: 10,
  13757. time: b[j].time,
  13758. userid: b[j].userid,
  13759. wid: b[j].id,
  13760. });
  13761. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13762. //选择题
  13763. this.workStudent[i].push({
  13764. works: b[j].content,
  13765. sName: b[j].name,
  13766. score: b[j].score,
  13767. img: b[j].img,
  13768. type: 13,
  13769. time: b[j].time,
  13770. userid: b[j].userid,
  13771. wid: b[j].id,
  13772. });
  13773. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13774. //选择题
  13775. this.workStudent[i].push({
  13776. works: b[j].content,
  13777. sName: b[j].name,
  13778. score: b[j].score,
  13779. img: b[j].img,
  13780. type: 12,
  13781. time: b[j].time,
  13782. userid: b[j].userid,
  13783. wid: b[j].id,
  13784. });
  13785. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13786. //选择题
  13787. this.workStudent[i].push({
  13788. works: b[j].content,
  13789. sName: b[j].name,
  13790. score: b[j].score,
  13791. img: b[j].img,
  13792. type: 12,
  13793. time: b[j].time,
  13794. userid: b[j].userid,
  13795. wid: b[j].id,
  13796. });
  13797. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13798. //选择题
  13799. this.workStudent[i].push({
  13800. works: b[j].content,
  13801. sName: b[j].name,
  13802. score: b[j].score,
  13803. img: b[j].img,
  13804. type: 15,
  13805. time: b[j].time,
  13806. userid: b[j].userid,
  13807. wid: b[j].id,
  13808. });
  13809. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13810. //英语写作
  13811. this.workStudent[i].push({
  13812. works: b[j].content,
  13813. sName: b[j].name,
  13814. score: b[j].score,
  13815. img: b[j].img,
  13816. type: 16,
  13817. time: b[j].time,
  13818. userid: b[j].userid,
  13819. wid: b[j].id,
  13820. aiCode: b[j].aiCode,
  13821. teacherCode: b[j].teacherCode
  13822. });
  13823. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  13824. //英语口语
  13825. this.workStudent[i].push({
  13826. works: b[j].content,
  13827. sName: b[j].name,
  13828. score: b[j].score,
  13829. img: b[j].img,
  13830. type: 17,
  13831. time: b[j].time,
  13832. userid: b[j].userid,
  13833. wid: b[j].id,
  13834. });
  13835. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  13836. //英语口语
  13837. this.workStudent[i].push({
  13838. works: b[j].content,
  13839. sName: b[j].name,
  13840. score: b[j].score,
  13841. img: b[j].img,
  13842. type: 14,
  13843. time: b[j].time,
  13844. userid: b[j].userid,
  13845. wid: b[j].id,
  13846. });
  13847. }
  13848. }
  13849. }
  13850. }
  13851. })
  13852. .catch((err) => {
  13853. console.error(err);
  13854. });
  13855. },
  13856. openVideo(w) {
  13857. this.videoDetail = {};
  13858. this.playerOptions1.sources[0].src = w.works;
  13859. this.videoDetail = this.playerOptions1;
  13860. this.videoVisible = true;
  13861. },
  13862. isLikes(wid, uid, t, c, isLikes) {
  13863. if (isLikes == false) {
  13864. let params = [
  13865. {
  13866. wid: wid,
  13867. lid: uid,
  13868. t: t,
  13869. c: c,
  13870. },
  13871. ];
  13872. this.ajax
  13873. .post(this.$store.state.api + "insertComment", params)
  13874. .then((res) => {
  13875. this.$message({
  13876. message: "点赞成功",
  13877. type: "success",
  13878. });
  13879. this.selectSWorks();
  13880. this.selectStudent();
  13881. })
  13882. .catch((err) => {
  13883. this.$message.error("点赞失败");
  13884. console.error(err);
  13885. });
  13886. } else {
  13887. let params = {
  13888. wid: wid,
  13889. lid: uid,
  13890. type: t,
  13891. };
  13892. this.ajax
  13893. .get(this.$store.state.api + "deleteComment", params)
  13894. .then((res) => {
  13895. this.$message({
  13896. message: "取消点赞成功",
  13897. type: "success",
  13898. });
  13899. this.selectSWorks();
  13900. this.selectStudent();
  13901. })
  13902. .catch((err) => {
  13903. console.error(err);
  13904. });
  13905. }
  13906. },
  13907. deleteComment(wid) {
  13908. this.$confirm("确定删除此评论吗?", "提示", {
  13909. confirmButtonText: "确定",
  13910. cancelButtonText: "取消",
  13911. type: "warning",
  13912. })
  13913. .then(() => {
  13914. let params = {
  13915. id: wid,
  13916. };
  13917. this.ajax
  13918. .get(this.$store.state.api + "deleteComment2", params)
  13919. .then((res) => {
  13920. this.$message({
  13921. message: "删除评论成功",
  13922. type: "success",
  13923. });
  13924. this.selectSWorks();
  13925. this.selectStudent();
  13926. })
  13927. .catch((err) => {
  13928. console.error(err);
  13929. });
  13930. })
  13931. .catch(() => {});
  13932. },
  13933. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  13934. this.commentIndexJson = {
  13935. toolIndex: toolIndex,
  13936. wIndex: wIndex,
  13937. gindex: gindex,
  13938. gid: gid,
  13939. };
  13940. this.commentDetail = [];
  13941. this.commentDialogVisible = true;
  13942. this.commentDetail = w;
  13943. if (w.works && w.type == 1) {
  13944. // this.pptImgUrl = "";
  13945. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13946. if (
  13947. a.indexOf(
  13948. w.works
  13949. .split(".")
  13950. [w.works.split(".").length - 1].toLocaleUpperCase()
  13951. ) != -1
  13952. ) {
  13953. let _uuurl = await this.checkLink(w.works);
  13954. this.pptImgUrl =
  13955. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  13956. this.showPDF = false;
  13957. } else if (
  13958. w.works
  13959. .split(".")
  13960. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13961. ) {
  13962. this.pptImgUrl = w.works;
  13963. this.showPDF = true;
  13964. }
  13965. } else if (w.works && w.type == 3) {
  13966. this.videoDetail = {};
  13967. this.playerOptions1.sources[0].src = w.works;
  13968. this.videoDetail = this.playerOptions1;
  13969. // this.videoVisible = true;
  13970. } else if (w.works && w.type == 4) {
  13971. this.eScore = JSON.parse(w.works);
  13972. this.rateJson =
  13973. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13974. this.taskCount
  13975. ].toolChoose[toolIndex].rateJson;
  13976. } else if (w.works && w.type == 10) {
  13977. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13978. } else if (w.works && w.type == 13) {
  13979. this.wordJson =
  13980. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13981. this.taskCount
  13982. ].toolChoose[toolIndex].wordJson;
  13983. }
  13984. },
  13985. async openScore(w, index) {
  13986. this.wScore = 0;
  13987. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13988. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13989. this.commentDetail = [];
  13990. if(w.type == 17){
  13991. this.dialogVisibleENScore = true;
  13992. }else{
  13993. this.dialogVisibleScore = true;
  13994. }
  13995. this.commentDetail = w;
  13996. if (w.works && w.type == 1) {
  13997. this.pptImgUrl = "";
  13998. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13999. if (
  14000. a.indexOf(
  14001. w.works
  14002. .split(".")
  14003. [w.works.split(".").length - 1].toLocaleUpperCase()
  14004. ) != -1
  14005. ) {
  14006. let _uuurl = await this.checkLink(w.works);
  14007. this.pptImgUrl =
  14008. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14009. this.showPDF = false;
  14010. } else if (
  14011. w.works
  14012. .split(".")
  14013. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14014. ) {
  14015. this.pptImgUrl = w.works;
  14016. this.showPDF = true;
  14017. }
  14018. } else if (w.works && w.type == 3) {
  14019. this.videoDetail = {};
  14020. this.playerOptions1.sources[0].src = w.works;
  14021. this.videoDetail = this.playerOptions1;
  14022. }else if(w.type == 17){
  14023. let englishVoiceJson = {}
  14024. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14025. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14026. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14027. .toolChoose[index].englishVoiceJson
  14028. : {};
  14029. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14030. }
  14031. },
  14032. addComment(wid, uid, t) {
  14033. if (this.commentText == "") {
  14034. this.$message.error("请输入评论");
  14035. return;
  14036. }
  14037. let params2 = [
  14038. {
  14039. wid: wid,
  14040. lid: uid,
  14041. t: t,
  14042. },
  14043. ];
  14044. this.ajax
  14045. .post(this.$store.state.api + "getComment", params2)
  14046. .then((res) => {
  14047. if (res.data[0].length > 0) {
  14048. this.$message.error("一个作业只能评论一条");
  14049. } else {
  14050. let params = [
  14051. {
  14052. wid: wid,
  14053. lid: uid,
  14054. t: t,
  14055. c: this.commentText,
  14056. },
  14057. ];
  14058. this.ajax
  14059. .post(this.$store.state.api + "insertComment", params)
  14060. .then((res) => {
  14061. this.$message({
  14062. message: "评论成功",
  14063. type: "success",
  14064. });
  14065. this.commentText = "";
  14066. this.selectSWorks();
  14067. this.selectStudent();
  14068. })
  14069. .catch((err) => {
  14070. this.$message.error("评论失败");
  14071. console.error(err);
  14072. });
  14073. }
  14074. })
  14075. .catch((err) => {
  14076. // this.$message.error("评论失败");
  14077. console.error(err);
  14078. });
  14079. },
  14080. scoreWork(wid) {
  14081. if (this.wScore == 0) {
  14082. this.$message.error("请评分");
  14083. return;
  14084. }
  14085. let params = [
  14086. {
  14087. wid: wid,
  14088. score: JSON.stringify({
  14089. wScore: this.wScore,
  14090. detail: this.scoreDetail,
  14091. }),
  14092. },
  14093. ];
  14094. this.ajax
  14095. .post(this.$store.state.api + "scoreWork", params)
  14096. .then((res) => {
  14097. this.$message({
  14098. message: "评分成功",
  14099. type: "success",
  14100. });
  14101. this.wScore = 0;
  14102. this.scoreDetail = "";
  14103. this.dialogVisibleScore = false;
  14104. this.selectSWorks();
  14105. this.selectStudent();
  14106. })
  14107. .catch((err) => {
  14108. this.$message.error("评分失败");
  14109. console.error(err);
  14110. });
  14111. },
  14112. openXz(w, i) {
  14113. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14114. .taskJson[this.taskCount].toolChoose[i].selectJson
  14115. ? JSON.parse(
  14116. JSON.stringify(
  14117. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14118. this.taskCount
  14119. ].toolChoose[i].selectJson
  14120. )
  14121. )
  14122. : { url: "", select: [], answer: [] };
  14123. var a = w.works.split(",");
  14124. for (var k = 0; k < a.length; k++) {
  14125. a[k] = parseInt(a[k]);
  14126. }
  14127. this.selectAnswer = { answer: a, stu: w.sName };
  14128. this.isSelect = true;
  14129. this.dialogVisibleSelect = true;
  14130. },
  14131. openSen(w, i) {
  14132. this.sentenceList1 = JSON.parse(w.works);
  14133. this.sentenceList1.stuName = w.sName;
  14134. this.dialogVisibleSentence1 = true;
  14135. },
  14136. openPj(w, toolindex) {
  14137. this.isStar = true;
  14138. this.eScore = JSON.parse(w);
  14139. this.rateJson =
  14140. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14141. this.taskCount
  14142. ].toolChoose[toolindex].rateJson;
  14143. this.studentEvalDialogVisible = true;
  14144. },
  14145. openEnglishEva(id,i){
  14146. let params = {
  14147. wid: id
  14148. };
  14149. this.ajax
  14150. .get(this.$store.state.api + "selectEngWork", params)
  14151. .then((res) => {
  14152. this.evaEngJson.message = res.data[0][0];
  14153. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14154. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14155. .toolChoose[i].englishList;
  14156. this.engEvaDialogVisible = true;
  14157. })
  14158. .catch((err) => {
  14159. console.error(err);
  14160. });
  14161. },
  14162. deleteWorks(id) {
  14163. this.$confirm("确定删除此作业吗?", "提示", {
  14164. confirmButtonText: "确定",
  14165. cancelButtonText: "取消",
  14166. type: "warning",
  14167. })
  14168. .then(() => {
  14169. let params = [
  14170. {
  14171. id: id,
  14172. },
  14173. ];
  14174. this.ajax
  14175. .post(this.$store.state.api + "deleteCourseWork", params)
  14176. .then((res) => {
  14177. this.$message({
  14178. message: "删除成功",
  14179. type: "success",
  14180. });
  14181. this.selectStudent();
  14182. this.selectSWorks();
  14183. this.selectSLook();
  14184. })
  14185. .catch((err) => {
  14186. this.$message.error("网络异常");
  14187. console.error(err);
  14188. });
  14189. })
  14190. .catch(() => {});
  14191. },
  14192. selectSWorks(gindex) {
  14193. //教师查看全部作业
  14194. let params = {
  14195. cid: this.id,
  14196. s: this.courseType,
  14197. t: this.taskCount,
  14198. };
  14199. this.ajax
  14200. .get(this.$store.state.api + "selectSWorks", params)
  14201. .then((res) => {
  14202. var a =
  14203. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14204. this.taskCount
  14205. ].toolChoose;
  14206. var b = res.data[0];
  14207. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14208. var y = [
  14209. "AVI",
  14210. "NAVI",
  14211. "MPEG",
  14212. "ASF",
  14213. "MOV",
  14214. "WMV",
  14215. "3GP",
  14216. "RM",
  14217. "RMVB",
  14218. "FLV",
  14219. "F4V",
  14220. "H.264",
  14221. "H.265",
  14222. "REAL VIDEO",
  14223. "MKV",
  14224. "WebM",
  14225. "HDDVD",
  14226. "MP4",
  14227. "MPG",
  14228. "M4V",
  14229. "MGV",
  14230. "OGV",
  14231. "QTM",
  14232. "STR",
  14233. "AMC",
  14234. "DVX",
  14235. "EVO",
  14236. "DAT",
  14237. "OGG",
  14238. "OGM",
  14239. ];
  14240. var d = res.data[1];
  14241. var e = res.data[2];
  14242. var f = res.data[3];
  14243. let _worksStudent = [];
  14244. var _worksStudent2 = [];
  14245. for (var i = 0; i < a.length; i++) {
  14246. _worksStudent[i] = [];
  14247. _worksStudent2[i] = [];
  14248. if (
  14249. !this.isCloseList[i] ||
  14250. this.isCloseList[i].isClose == undefined
  14251. ) {
  14252. this.isCloseList[i] = { isClose: 0 };
  14253. }
  14254. this.groupStudent[i] = [];
  14255. this.groupStudentUid[i] = [];
  14256. if (this.isGroup) {
  14257. for (
  14258. var groupI = 0;
  14259. groupI < this.courseGroup.group.length;
  14260. groupI++
  14261. ) {
  14262. this.courseGroup.group[groupI].works[i] = [];
  14263. }
  14264. }
  14265. this.isWorksS[i] = [];
  14266. this.checkJson[i] = [];
  14267. if (a[i].tool[0] == 49) {
  14268. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14269. this.groupStudent[i][gA] = [];
  14270. this.groupStudentUid[i][gA] = [];
  14271. _worksStudent[i][gA] = [];
  14272. _worksStudent2[i][gA] = [];
  14273. this.isCloseList[i][gA] = [];
  14274. // debugger
  14275. for (var g = 0; g < f.length; g++) {
  14276. if (
  14277. f[g].ttype == 2 &&
  14278. this.tcid &&
  14279. this.arrayToArray(
  14280. f[g].classid.split(","),
  14281. this.tcid.split(",")
  14282. ).length == 0
  14283. ) {
  14284. continue;
  14285. }
  14286. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14287. f[g].classid.split(","),
  14288. this.tcid.split(",")
  14289. ).length !== 0 || this.arrayToArray(
  14290. f[g].classid.split(","),
  14291. this.classId ? this.classId.split(",") : []
  14292. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14293. this.groupStudent[i][gA].push(f[g]);
  14294. this.groupStudentUid[i][gA].push(f[g].userid);
  14295. }
  14296. }
  14297. }
  14298. this.$forceUpdate();
  14299. }
  14300. for (var j = 0; j < b.length; j++) {
  14301. if (
  14302. b[j].ttype == 2 &&
  14303. this.tcid &&
  14304. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14305. .length == 0
  14306. ) {
  14307. continue;
  14308. }
  14309. var likesCount = 0;
  14310. var commentCount = 0;
  14311. var isLikes = false;
  14312. var commentJson = [];
  14313. var data = b[j];
  14314. if (i == b[j].tool) {
  14315. if (data.type == 2 && a[i].tool[0] == 4) {
  14316. // if(JSON.parse(data.content)[0].anwer){
  14317. var checkL =
  14318. JSON.parse(data.content)[0].anwer instanceof Array
  14319. ? JSON.parse(data.content)[0].anwer
  14320. : JSON.parse(data.content)[0].anwer.split(",");
  14321. for (var z = 0; z < checkL.length; z++) {
  14322. if (!this.checkJson[i][z]) {
  14323. this.checkJson[i].push({
  14324. checkCount: [],
  14325. checkPerson: [],
  14326. rightPerson: [],
  14327. });
  14328. }
  14329. if (!this.checkJson[i][z].checkCount.length) {
  14330. this.checkJson[i][z].checkCount = [];
  14331. let _askItemCount = JSON.parse(data.content)[0].askJson
  14332. .askJson[z].askItem;
  14333. for (var aic = 0; aic < _askItemCount; aic++) {
  14334. this.checkJson[i][z].checkCount.push(0);
  14335. }
  14336. }
  14337. if (checkL[z] instanceof Array) {
  14338. if (
  14339. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14340. checkL[z].sort().join(",")
  14341. ) {
  14342. this.checkJson[i][z].rightPerson.push(data.name);
  14343. }
  14344. for (var q = 0; q < checkL[z].length; q++) {
  14345. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14346. ? this.checkJson[i][z].checkPerson[
  14347. parseInt(checkL[z][q])
  14348. ].push(data.name)
  14349. : (this.checkJson[i][z].checkPerson[
  14350. parseInt(checkL[z][q])
  14351. ] = [data.name]);
  14352. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14353. ? this.checkJson[i][z].checkCount[
  14354. parseInt(checkL[z][q])
  14355. ]++
  14356. : (this.checkJson[i][z].checkCount[
  14357. parseInt(checkL[z][q])
  14358. ] = 1);
  14359. }
  14360. } else {
  14361. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14362. this.checkJson[i][z].rightPerson.push(data.name);
  14363. }
  14364. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14365. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14366. ? this.checkJson[i][z].checkPerson[
  14367. parseInt(checkL[z])
  14368. ].push(data.name)
  14369. : (this.checkJson[i][z].checkPerson[
  14370. parseInt(checkL[z])
  14371. ] = [data.name]);
  14372. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14373. ? this.checkJson[i][z].checkCount[
  14374. parseInt(checkL[z])
  14375. ]++
  14376. : (this.checkJson[i][z].checkCount[
  14377. parseInt(checkL[z])
  14378. ] = 1);
  14379. }
  14380. }
  14381. }
  14382. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14383. var checkL = JSON.parse(data.content)[0].anwer;
  14384. for (var z = 0; z < checkL.length; z++) {
  14385. if (!this.checkJson[i][z]) {
  14386. this.checkJson[i].push({
  14387. checkCount: [],
  14388. checkPerson: [],
  14389. rightPerson: [],
  14390. });
  14391. }
  14392. if (!this.checkJson[i][z].checkCount.length) {
  14393. this.checkJson[i][z].checkCount = [];
  14394. let _askItemCount = JSON.parse(data.content)[0].testJson
  14395. .testJson[z].testItem;
  14396. for (var aic = 0; aic < _askItemCount; aic++) {
  14397. this.checkJson[i][z].checkCount.push(0);
  14398. }
  14399. }
  14400. if (checkL[z] instanceof Array) {
  14401. if (
  14402. JSON.parse(data.content)[0]
  14403. .testJson.testJson[z].answer.sort()
  14404. .join(",") == checkL[z].sort().join(",")
  14405. ) {
  14406. this.checkJson[i][z].rightPerson.push(data.name);
  14407. }
  14408. for (var q = 0; q < checkL[z].length; q++) {
  14409. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14410. ? this.checkJson[i][z].checkPerson[
  14411. parseInt(checkL[z][q])
  14412. ].push(data.name)
  14413. : (this.checkJson[i][z].checkPerson[
  14414. parseInt(checkL[z][q])
  14415. ] = [data.name]);
  14416. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14417. ? this.checkJson[i][z].checkCount[
  14418. parseInt(checkL[z][q])
  14419. ]++
  14420. : (this.checkJson[i][z].checkCount[
  14421. parseInt(checkL[z][q])
  14422. ] = 1);
  14423. }
  14424. } else {
  14425. if (
  14426. JSON.parse(data.content)[0].testJson.testJson[z]
  14427. .answer == checkL[z]
  14428. ) {
  14429. this.checkJson[i][z].rightPerson.push(data.name);
  14430. }
  14431. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14432. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14433. ? this.checkJson[i][z].checkPerson[
  14434. parseInt(checkL[z])
  14435. ].push(data.name)
  14436. : (this.checkJson[i][z].checkPerson[
  14437. parseInt(checkL[z])
  14438. ] = [data.name]);
  14439. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14440. ? this.checkJson[i][z].checkCount[
  14441. parseInt(checkL[z])
  14442. ]++
  14443. : (this.checkJson[i][z].checkCount[
  14444. parseInt(checkL[z])
  14445. ] = 1);
  14446. }
  14447. }
  14448. }
  14449. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14450. var checkL = JSON.parse(data.content);
  14451. for (var z = 0; z < checkL.length; z++) {
  14452. if (!this.checkJson[i][z]) {
  14453. this.checkJson[i].push({
  14454. checkCount: [],
  14455. checkPerson: [],
  14456. rightPerson: [],
  14457. });
  14458. }
  14459. this.checkJson[i][z].checkPerson.push(data.name);
  14460. if (
  14461. checkL[z].chooseSenList.toString() ==
  14462. checkL[z].rightAnswer.toString()
  14463. ) {
  14464. this.checkJson[i][z].rightPerson.push(data.name);
  14465. }
  14466. }
  14467. }
  14468. for (var k = 0; k < d.length; k++) {
  14469. //点赞
  14470. if (d[k].workId == b[j].id) {
  14471. likesCount++;
  14472. if (d[k].likesId == this.userid) {
  14473. isLikes = true;
  14474. }
  14475. }
  14476. }
  14477. for (var l = 0; l < e.length; l++) {
  14478. //评论
  14479. if (e[l].workId == b[j].id) {
  14480. if (e[l].comment != "") {
  14481. commentCount++;
  14482. commentJson.push({
  14483. commentText: e[l].comment,
  14484. commentTime: e[l].commentTime,
  14485. commentPeople: e[l].commentPeople,
  14486. userid: e[l].userid,
  14487. wid: e[l].id,
  14488. });
  14489. }
  14490. }
  14491. }
  14492. if (
  14493. (b[j].type == 1 ||
  14494. b[j].type == 4 ||
  14495. b[j].type == 5 ||
  14496. b[j].type == 6 ||
  14497. b[j].type == 12 ||
  14498. b[j].type == 7) &&
  14499. a[i].tool[0] != 15 &&
  14500. a[i].tool[0] != 4 &&
  14501. a[i].tool[0] != 45 &&
  14502. a[i].tool[0] != 50 &&
  14503. a[i].tool[0] != 32 &&
  14504. a[i].tool[0] != 57 &&
  14505. a[i].tool[0] != 52
  14506. ) {
  14507. if (
  14508. c.indexOf(
  14509. b[j].content
  14510. .split(".")
  14511. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14512. ) != -1 &&
  14513. a[i].tool[0] == 16 &&
  14514. b[j].atool != 50
  14515. ) {
  14516. let _works = {
  14517. userid: b[j].userid,
  14518. ateacher: b[j].ateacher,
  14519. wid: b[j].id,
  14520. works: b[j].content,
  14521. sName: b[j].name,
  14522. type: 1,
  14523. time: b[j].time,
  14524. score: b[j].score,
  14525. img: b[j].img,
  14526. likesCount: likesCount,
  14527. commentCount: commentCount,
  14528. isLikes: isLikes,
  14529. commentJson: commentJson,
  14530. };
  14531. if (this.isGroup) {
  14532. let isGw = 1;
  14533. for (
  14534. var groupI = 0;
  14535. groupI < this.courseGroup.group.length;
  14536. groupI++
  14537. ) {
  14538. let gid = this.courseGroup.group[groupI].id;
  14539. if (
  14540. this.courseGroupStudentUid[gid].indexOf(
  14541. b[j].userid
  14542. ) != -1
  14543. ) {
  14544. isGw = 2;
  14545. this.courseGroup.group[groupI].works[i].push(_works);
  14546. break;
  14547. }
  14548. }
  14549. if (isGw == 1) {
  14550. _worksStudent[i].push(_works);
  14551. }
  14552. } else {
  14553. _worksStudent[i].push(_works);
  14554. }
  14555. _worksStudent2[i].push(_works);
  14556. this.isWorksS[i].push({
  14557. uid: b[j].userid,
  14558. sName: b[j].name,
  14559. });
  14560. } else if (
  14561. y.indexOf(
  14562. b[j].content
  14563. .split(".")
  14564. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14565. ) != -1 &&
  14566. a[i].tool[0] == 16 &&
  14567. b[j].atool != 50
  14568. ) {
  14569. let _works = {
  14570. userid: b[j].userid,
  14571. ateacher: b[j].ateacher,
  14572. wid: b[j].id,
  14573. works: b[j].content,
  14574. sName: b[j].name,
  14575. type: 3,
  14576. time: b[j].time,
  14577. score: b[j].score,
  14578. img: b[j].img,
  14579. likesCount: likesCount,
  14580. commentCount: commentCount,
  14581. isLikes: isLikes,
  14582. commentJson: commentJson,
  14583. };
  14584. if (this.isGroup) {
  14585. let isGw = 1;
  14586. for (
  14587. var groupI = 0;
  14588. groupI < this.courseGroup.group.length;
  14589. groupI++
  14590. ) {
  14591. let gid = this.courseGroup.group[groupI].id;
  14592. if (
  14593. this.courseGroupStudentUid[gid].indexOf(
  14594. b[j].userid
  14595. ) != -1
  14596. ) {
  14597. isGw = 2;
  14598. this.courseGroup.group[groupI].works[i].push(_works);
  14599. break;
  14600. }
  14601. }
  14602. if (isGw == 1) {
  14603. _worksStudent[i].push(_works);
  14604. }
  14605. } else {
  14606. _worksStudent[i].push(_works);
  14607. }
  14608. _worksStudent2[i].push(_works);
  14609. this.isWorksS[i].push({
  14610. uid: b[j].userid,
  14611. sName: b[j].name,
  14612. });
  14613. } else if (b[j].type == 6 && b[j].atool != 50) {
  14614. let _works = {
  14615. userid: b[j].userid,
  14616. ateacher: b[j].ateacher,
  14617. wid: b[j].id,
  14618. works: b[j].content,
  14619. sName: b[j].name,
  14620. type: 4,
  14621. time: b[j].time,
  14622. score: b[j].score,
  14623. img: b[j].img,
  14624. likesCount: likesCount,
  14625. commentCount: commentCount,
  14626. isLikes: isLikes,
  14627. commentJson: commentJson,
  14628. };
  14629. _worksStudent[i].push(_works);
  14630. _worksStudent2[i].push(_works);
  14631. this.isWorksS[i].push({
  14632. uid: b[j].userid,
  14633. sName: b[j].name,
  14634. });
  14635. } else if (b[j].type == 7 && b[j].atool != 50) {
  14636. let _work = {
  14637. userid: b[j].userid,
  14638. ateacher: b[j].ateacher,
  14639. wid: b[j].id,
  14640. works: b[j].content,
  14641. sName: b[j].name,
  14642. type: 5,
  14643. time: b[j].time,
  14644. score: b[j].score,
  14645. img: b[j].img,
  14646. likesCount: likesCount,
  14647. commentCount: commentCount,
  14648. isLikes: isLikes,
  14649. commentJson: commentJson,
  14650. };
  14651. _worksStudent[i].push(_work);
  14652. _worksStudent2[i].push(_work);
  14653. this.isWorksS[i].push({
  14654. uid: b[j].userid,
  14655. sName: b[j].name,
  14656. });
  14657. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14658. let _works = {
  14659. userid: b[j].userid,
  14660. ateacher: b[j].ateacher,
  14661. wid: b[j].id,
  14662. works: b[j].content,
  14663. sName: b[j].name,
  14664. type: 12,
  14665. time: b[j].time,
  14666. score: b[j].score,
  14667. img: b[j].img,
  14668. likesCount: likesCount,
  14669. commentCount: commentCount,
  14670. isLikes: isLikes,
  14671. commentJson: commentJson,
  14672. };
  14673. if (this.isGroup) {
  14674. let isGw = 1;
  14675. for (
  14676. var groupI = 0;
  14677. groupI < this.courseGroup.group.length;
  14678. groupI++
  14679. ) {
  14680. let gid = this.courseGroup.group[groupI].id;
  14681. if (
  14682. this.courseGroupStudentUid[gid].indexOf(
  14683. b[j].userid
  14684. ) != -1
  14685. ) {
  14686. isGw = 2;
  14687. this.courseGroup.group[groupI].works[i].push(_works);
  14688. break;
  14689. }
  14690. }
  14691. if (isGw == 1) {
  14692. _worksStudent[i].push(_works);
  14693. }
  14694. } else {
  14695. _worksStudent[i].push(_works);
  14696. }
  14697. _worksStudent2[i].push(_works);
  14698. this.isWorksS[i].push({
  14699. uid: b[j].userid,
  14700. sName: b[j].name,
  14701. });
  14702. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14703. let _works = {
  14704. userid: b[j].userid,
  14705. ateacher: b[j].ateacher,
  14706. wid: b[j].id,
  14707. works: b[j].content,
  14708. sName: b[j].name,
  14709. type: 0,
  14710. time: b[j].time,
  14711. score: b[j].score,
  14712. img: b[j].img,
  14713. likesCount: likesCount,
  14714. commentCount: commentCount,
  14715. isLikes: isLikes,
  14716. commentJson: commentJson,
  14717. };
  14718. if (this.isGroup) {
  14719. let isGw = 1;
  14720. for (
  14721. var groupI = 0;
  14722. groupI < this.courseGroup.group.length;
  14723. groupI++
  14724. ) {
  14725. let gid = this.courseGroup.group[groupI].id;
  14726. if (
  14727. this.courseGroupStudentUid[gid].indexOf(
  14728. b[j].userid
  14729. ) != -1
  14730. ) {
  14731. isGw = 2;
  14732. this.courseGroup.group[groupI].works[i].push(_works);
  14733. break;
  14734. }
  14735. }
  14736. if (isGw == 1) {
  14737. _worksStudent[i].push(_works);
  14738. }
  14739. } else {
  14740. _worksStudent[i].push(_works);
  14741. }
  14742. _worksStudent2[i].push(_works);
  14743. this.isWorksS[i].push({
  14744. uid: b[j].userid,
  14745. sName: b[j].name,
  14746. });
  14747. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14748. let _works = {
  14749. userid: b[j].userid,
  14750. ateacher: b[j].ateacher,
  14751. wid: b[j].id,
  14752. works: b[j].content,
  14753. sName: b[j].name,
  14754. type: 0,
  14755. time: b[j].time,
  14756. score: b[j].score,
  14757. img: b[j].img,
  14758. likesCount: likesCount,
  14759. commentCount: commentCount,
  14760. isLikes: isLikes,
  14761. commentJson: commentJson,
  14762. };
  14763. if (this.isGroup) {
  14764. let isGw = 1;
  14765. for (
  14766. var groupI = 0;
  14767. groupI < this.courseGroup.group.length;
  14768. groupI++
  14769. ) {
  14770. let gid = this.courseGroup.group[groupI].id;
  14771. if (
  14772. this.courseGroupStudentUid[gid].indexOf(
  14773. b[j].userid
  14774. ) != -1
  14775. ) {
  14776. isGw = 2;
  14777. this.courseGroup.group[groupI].works[i].push(_works);
  14778. break;
  14779. }
  14780. }
  14781. if (isGw == 1) {
  14782. _worksStudent[i].push(_works);
  14783. }
  14784. } else {
  14785. _worksStudent[i].push(_works);
  14786. }
  14787. _worksStudent2[i].push(_works);
  14788. this.isWorksS[i].push({
  14789. uid: b[j].userid,
  14790. sName: b[j].name,
  14791. });
  14792. }
  14793. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14794. let _works = {
  14795. userid: b[j].userid,
  14796. ateacher: b[j].ateacher,
  14797. wid: b[j].id,
  14798. works: b[j].content,
  14799. sName: b[j].name,
  14800. type: 2,
  14801. time: b[j].time,
  14802. score: b[j].score,
  14803. img: b[j].img,
  14804. likesCount: likesCount,
  14805. commentCount: commentCount,
  14806. isLikes: isLikes,
  14807. commentJson: commentJson,
  14808. };
  14809. if (this.isGroup) {
  14810. let isGw = 1;
  14811. for (
  14812. var groupI = 0;
  14813. groupI < this.courseGroup.group.length;
  14814. groupI++
  14815. ) {
  14816. let gid = this.courseGroup.group[groupI].id;
  14817. if (
  14818. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14819. -1
  14820. ) {
  14821. isGw = 2;
  14822. this.courseGroup.group[groupI].works[i].push(_works);
  14823. break;
  14824. }
  14825. }
  14826. if (isGw == 1) {
  14827. _worksStudent[i].push(_works);
  14828. }
  14829. } else {
  14830. _worksStudent[i].push(_works);
  14831. }
  14832. _worksStudent2[i].push(_works);
  14833. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14834. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14835. //问卷
  14836. let _work = {
  14837. userid: b[j].userid,
  14838. ateacher: b[j].ateacher,
  14839. wid: b[j].id,
  14840. works: b[j].content,
  14841. sName: b[j].name,
  14842. type: 2,
  14843. time: b[j].time,
  14844. score: b[j].score,
  14845. img: b[j].img,
  14846. likesCount: likesCount,
  14847. commentCount: commentCount,
  14848. isLikes: isLikes,
  14849. commentJson: commentJson,
  14850. };
  14851. _worksStudent[i].push(_work);
  14852. _worksStudent2[i].push(_work);
  14853. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14854. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14855. //选择题
  14856. let _work = {
  14857. userid: b[j].userid,
  14858. ateacher: b[j].ateacher,
  14859. wid: b[j].id,
  14860. works: b[j].content,
  14861. sName: b[j].name,
  14862. type: 8,
  14863. time: b[j].time,
  14864. score: b[j].score,
  14865. img: b[j].img,
  14866. likesCount: likesCount,
  14867. commentCount: commentCount,
  14868. isLikes: isLikes,
  14869. commentJson: commentJson,
  14870. };
  14871. _worksStudent[i].push(_work);
  14872. _worksStudent2[i].push(_work);
  14873. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14874. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14875. //选择题
  14876. let _work = {
  14877. userid: b[j].userid,
  14878. ateacher: b[j].ateacher,
  14879. wid: b[j].id,
  14880. works: b[j].content,
  14881. sName: b[j].name,
  14882. type: 9,
  14883. time: b[j].time,
  14884. score: b[j].score,
  14885. img: b[j].img,
  14886. likesCount: likesCount,
  14887. commentCount: commentCount,
  14888. isLikes: isLikes,
  14889. commentJson: commentJson,
  14890. };
  14891. _worksStudent[i].push(_work);
  14892. _worksStudent2[i].push(_work);
  14893. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14894. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14895. //选择题
  14896. let _work = {
  14897. userid: b[j].userid,
  14898. ateacher: b[j].ateacher,
  14899. wid: b[j].id,
  14900. works: b[j].content,
  14901. sName: b[j].name,
  14902. type: 10,
  14903. time: b[j].time,
  14904. score: b[j].score,
  14905. img: b[j].img,
  14906. likesCount: likesCount,
  14907. commentCount: commentCount,
  14908. isLikes: isLikes,
  14909. commentJson: commentJson,
  14910. };
  14911. _worksStudent[i].push(_work);
  14912. _worksStudent2[i].push(_work);
  14913. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14914. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14915. //选择题
  14916. let _work = {
  14917. userid: b[j].userid,
  14918. ateacher: b[j].ateacher,
  14919. wid: b[j].id,
  14920. works: b[j].content,
  14921. sName: b[j].name,
  14922. type: 13,
  14923. time: b[j].time,
  14924. score: b[j].score,
  14925. img: b[j].img,
  14926. likesCount: likesCount,
  14927. commentCount: commentCount,
  14928. isLikes: isLikes,
  14929. commentJson: commentJson,
  14930. };
  14931. _worksStudent[i].push(_work);
  14932. _worksStudent2[i].push(_work);
  14933. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14934. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14935. //选择题
  14936. let _work = {
  14937. userid: b[j].userid,
  14938. ateacher: b[j].ateacher,
  14939. wid: b[j].id,
  14940. works: b[j].content,
  14941. sName: b[j].name,
  14942. type: 16,
  14943. time: b[j].time,
  14944. score: b[j].score,
  14945. img: b[j].img,
  14946. likesCount: likesCount,
  14947. commentCount: commentCount,
  14948. isLikes: isLikes,
  14949. commentJson: commentJson,
  14950. aiCode: b[j].aiCode,
  14951. teacherCode: b[j].teacherCode
  14952. };
  14953. _worksStudent[i].push(_work);
  14954. _worksStudent2[i].push(_work);
  14955. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14956. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14957. //英语口语
  14958. let _work = {
  14959. userid: b[j].userid,
  14960. ateacher: b[j].ateacher,
  14961. wid: b[j].id,
  14962. works: b[j].content,
  14963. sName: b[j].name,
  14964. type: 17,
  14965. time: b[j].time,
  14966. score: b[j].score,
  14967. img: b[j].img,
  14968. likesCount: likesCount,
  14969. commentCount: commentCount,
  14970. isLikes: isLikes,
  14971. commentJson: commentJson,
  14972. };
  14973. _worksStudent[i].push(_work);
  14974. _worksStudent2[i].push(_work);
  14975. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14976. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14977. //交互视频
  14978. let _work = {
  14979. userid: b[j].userid,
  14980. ateacher: b[j].ateacher,
  14981. wid: b[j].id,
  14982. works: b[j].content,
  14983. sName: b[j].name,
  14984. type: 14,
  14985. time: b[j].time,
  14986. score: b[j].score,
  14987. img: b[j].img,
  14988. likesCount: likesCount,
  14989. commentCount: commentCount,
  14990. isLikes: isLikes,
  14991. commentJson: commentJson,
  14992. };
  14993. _worksStudent[i].push(_work);
  14994. _worksStudent2[i].push(_work);
  14995. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14996. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  14997. let _gindex = JSON.parse(b[j].content);
  14998. if (
  14999. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15000. b[j].userid
  15001. ) != -1
  15002. ) {
  15003. let _work = {
  15004. userid: b[j].userid,
  15005. ateacher: b[j].ateacher,
  15006. wid: b[j].id,
  15007. works: _gindex.url,
  15008. sName: b[j].name,
  15009. type: _gindex.type,
  15010. time: b[j].time,
  15011. score: b[j].score,
  15012. img: b[j].img,
  15013. likesCount: likesCount,
  15014. commentCount: commentCount,
  15015. isLikes: isLikes,
  15016. commentJson: commentJson,
  15017. };
  15018. _worksStudent[i][_gindex.groupIndex].push(_work);
  15019. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15020. }
  15021. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15022. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15023. let _work = {
  15024. userid: b[j].userid,
  15025. ateacher: b[j].ateacher,
  15026. wid: b[j].id,
  15027. works: b[j].content,
  15028. sName: b[j].name ? b[j].name : b[j].userid,
  15029. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15030. time: b[j].time,
  15031. score: b[j].score,
  15032. img: b[j].img,
  15033. likesCount: likesCount,
  15034. commentCount: commentCount,
  15035. isLikes: isLikes,
  15036. commentJson: commentJson,
  15037. };
  15038. _worksStudent[i].push(_work);
  15039. _worksStudent2[i].push(_work);
  15040. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15041. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15042. let _work = {
  15043. userid: b[j].userid,
  15044. ateacher: b[j].ateacher,
  15045. wid: b[j].id,
  15046. works: b[j].content,
  15047. sName: b[j].name ? b[j].name : b[j].userid,
  15048. type: 12,
  15049. time: b[j].time,
  15050. score: b[j].score,
  15051. img: b[j].img,
  15052. likesCount: likesCount,
  15053. commentCount: commentCount,
  15054. isLikes: isLikes,
  15055. commentJson: commentJson,
  15056. };
  15057. _worksStudent[i].push(_work);
  15058. _worksStudent2[i].push(_work);
  15059. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15060. } else if (
  15061. a[i].tool[0] == 57 &&
  15062. b[j].atool == 57 &&
  15063. b[j].type == 12
  15064. ) {
  15065. let _work = {
  15066. userid: b[j].userid,
  15067. ateacher: b[j].ateacher,
  15068. wid: b[j].id,
  15069. works: b[j].content,
  15070. sName: b[j].name ? b[j].name : b[j].userid,
  15071. type: 12,
  15072. time: b[j].time,
  15073. score: b[j].score,
  15074. img: b[j].img,
  15075. likesCount: likesCount,
  15076. commentCount: commentCount,
  15077. isLikes: isLikes,
  15078. commentJson: commentJson,
  15079. };
  15080. _worksStudent[i].push(_work);
  15081. _worksStudent2[i].push(_work);
  15082. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15083. } else if (
  15084. a[i].tool[0] == 57 &&
  15085. b[j].atool == 57 &&
  15086. b[j].type == 15
  15087. ) {
  15088. let _work = {
  15089. userid: b[j].userid,
  15090. ateacher: b[j].ateacher,
  15091. wid: b[j].id,
  15092. works: b[j].content,
  15093. sName: b[j].name ? b[j].name : b[j].userid,
  15094. type: 15,
  15095. time: b[j].time,
  15096. score: b[j].score,
  15097. img: b[j].img,
  15098. likesCount: likesCount,
  15099. commentCount: commentCount,
  15100. isLikes: isLikes,
  15101. commentJson: commentJson,
  15102. };
  15103. _worksStudent[i].push(_work);
  15104. _worksStudent2[i].push(_work);
  15105. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15106. }
  15107. }
  15108. }
  15109. if (_worksStudent[i] && _worksStudent[i].length) {
  15110. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15111. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15112. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15113. var scoreA = parseFloat(jscoreA);
  15114. var scoreB = parseFloat(jscoreB);
  15115. if (scoreA == scoreB) {
  15116. return b.likesCount - a.likesCount;
  15117. }
  15118. return scoreB - scoreA;
  15119. });
  15120. if (this.isGroup) {
  15121. for (
  15122. var groupI = 0;
  15123. groupI < this.courseGroup.group.length;
  15124. groupI++
  15125. ) {
  15126. this.courseGroup.group[groupI].works[i] =
  15127. this.courseGroup.group[groupI].works[i].sort(function (
  15128. a,
  15129. b
  15130. ) {
  15131. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15132. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15133. var scoreA = parseFloat(jscoreA);
  15134. var scoreB = parseFloat(jscoreB);
  15135. if (scoreA == scoreB) {
  15136. return b.likesCount - a.likesCount;
  15137. }
  15138. return scoreB - scoreA;
  15139. });
  15140. }
  15141. }
  15142. }
  15143. }
  15144. this.timeWorkList = _worksStudent2;
  15145. for (var i = 0; i < a.length; i++) {
  15146. for (var j = 0; j < b.length; j++) {
  15147. var data = b[j];
  15148. if (i == b[j].tool) {
  15149. if (data.type == 2 || data.type == 8) {
  15150. for (var z = 0; z < this.checkJson[i].length; z++) {
  15151. this.checkJson[i][z].checkPerent = [];
  15152. this.checkJson[i][z].right = Math.round(
  15153. (this.checkJson[i][z].rightPerson.length /
  15154. parseInt(_worksStudent[i].length)) *
  15155. 100
  15156. );
  15157. let aaaa = this.checkJson[i][z];
  15158. for (
  15159. var k = 0;
  15160. k < this.checkJson[i][z].checkCount.length;
  15161. k++
  15162. ) {
  15163. this.checkJson[i][z].checkPerent.push(
  15164. Math.round(
  15165. (this.checkJson[i][z].checkCount[k] /
  15166. parseInt(_worksStudent[i].length)) *
  15167. 100
  15168. )
  15169. );
  15170. }
  15171. }
  15172. } else if (data.type == 9) {
  15173. for (var z = 0; z < this.checkJson[i].length; z++) {
  15174. this.checkJson[i][z].checkPerent = [];
  15175. this.checkJson[i][z].right = Math.round(
  15176. (this.checkJson[i][z].rightPerson.length /
  15177. this.checkJson[i][z].checkPerson.length) *
  15178. 100
  15179. );
  15180. }
  15181. }
  15182. }
  15183. }
  15184. }
  15185. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15186. this.joinGroup(gindex);
  15187. }
  15188. this.worksStudent = _worksStudent;
  15189. this.selectWorksStudent();
  15190. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15191. this.$nextTick(()=>{
  15192. setTimeout(()=>{
  15193. setTimeout(()=>{
  15194. this.panToolHeight('tool-'+ci);
  15195. }, 500)
  15196. }, 0)
  15197. })
  15198. }
  15199. })
  15200. .catch((err) => {
  15201. console.error(err);
  15202. });
  15203. },
  15204. pngToWhiteBg(file) {
  15205. const _file = file;
  15206. let read = new FileReader();
  15207. read.readAsDataURL(file); // 文件转base64
  15208. return new Promise((resolve, reject) => {
  15209. read.onload = (e) => {
  15210. let img = new Image();
  15211. img.src = e.target.result;
  15212. img.onload = async () => {
  15213. // 生成canvas
  15214. let canvas = document.createElement("canvas");
  15215. let context = canvas.getContext("2d");
  15216. // 绘制图片到canvas上
  15217. canvas.width = img.width;
  15218. canvas.height = img.height;
  15219. // 在canvas绘制前填充白色背景
  15220. context.fillStyle = "#fff";
  15221. context.fillRect(0, 0, canvas.width, canvas.height);
  15222. context.drawImage(img, 0, 0);
  15223. let base64 = canvas.toDataURL(file["type"], 1);
  15224. let newFile = this.dataUrlToFile(base64, _file);
  15225. resolve(newFile);
  15226. };
  15227. };
  15228. });
  15229. },
  15230. dataUrlToFile(dataurl, file) {
  15231. let arr = dataurl.split(","),
  15232. mime = arr[0].match(/:(.*?);/)[1],
  15233. bstr = atob(arr[1]),
  15234. n = bstr.length,
  15235. u8arr = new Uint8Array(n);
  15236. while (n--) {
  15237. u8arr[n] = bstr.charCodeAt(n);
  15238. }
  15239. // return new Blob([u8arr], { type: mime });
  15240. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15241. type: mime,
  15242. });
  15243. },
  15244. async beforeUpload1(event, type, i) {
  15245. // this.$message.success('进入上传')
  15246. var file = "";
  15247. if (type == 5) {
  15248. file = event;
  15249. } else {
  15250. file = event.target.files[0];
  15251. }
  15252. var credentials = {
  15253. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15254. secretAccessKey: "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",
  15255. }; //秘钥形式的登录上传
  15256. window.AWS.config.update(credentials);
  15257. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15258. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15259. var _this = this;
  15260. _this.progress = 0;
  15261. _this.proVisible = true;
  15262. _this.isFinishSize = 0;
  15263. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15264. var b = [
  15265. "DOC",
  15266. "DOCX",
  15267. "DOCM",
  15268. "DOTM",
  15269. "DOTX",
  15270. "PPTX",
  15271. "PPSX",
  15272. "PPT",
  15273. "PPS",
  15274. "PPTM",
  15275. "POTM",
  15276. "PPAM",
  15277. "POTX",
  15278. "PPSM",
  15279. ];
  15280. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15281. var photoA = [
  15282. "BMP",
  15283. "GIF",
  15284. "PNG",
  15285. "JPEG",
  15286. "JPEG",
  15287. "JPG",
  15288. "TIF",
  15289. "PCX",
  15290. "TGA",
  15291. "EXIF",
  15292. "FPX",
  15293. "SVG",
  15294. "APNG",
  15295. ];
  15296. // if (
  15297. // b.indexOf(
  15298. // file.name
  15299. // .split(".")
  15300. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15301. // ) != -1
  15302. // ) {
  15303. // if (file.size / 1024 / 1024 > 10) {
  15304. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15305. // return;
  15306. // }
  15307. // } else if (
  15308. // excelA.indexOf(
  15309. // file.name
  15310. // .split(".")
  15311. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15312. // ) != "-1"
  15313. // ) {
  15314. // if (file.size / 1024 / 1024 > 5) {
  15315. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15316. // return;
  15317. // }
  15318. // }
  15319. if (
  15320. photoA.indexOf(
  15321. file.name
  15322. .split(".")
  15323. [file.name.split(".").length - 1].toLocaleUpperCase()
  15324. ) != -1 &&
  15325. type != 4
  15326. ) {
  15327. // const blob = await imageConversion.compress(file, 0.8)
  15328. file = await this.pngToWhiteBg(file);
  15329. const blob = await imageConversion.compressAccurately(file, 256);
  15330. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15331. file = new File([blob], file.name, { type: file.type });
  15332. }
  15333. if (file) {
  15334. var params = {
  15335. Key:
  15336. file.name.split(".")[0] +
  15337. new Date().getTime() +
  15338. "." +
  15339. file.name.split(".")[file.name.split(".").length - 1],
  15340. ContentType: file.type,
  15341. Body: file,
  15342. "Access-Control-Allow-Credentials": "*",
  15343. ACL: "public-read",
  15344. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15345. var options = {
  15346. // partSize: 2048 * 1024 * 1024,
  15347. partSize: 1024 * 1024 * 1024,
  15348. queueSize: 2,
  15349. leavePartsOnError: true,
  15350. };
  15351. bucket
  15352. .upload(params, options)
  15353. .on("httpUploadProgress", function (evt) {
  15354. //这里可以写进度条
  15355. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15356. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15357. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15358. })
  15359. .send(function (err, data) {
  15360. _this.progress = 100;
  15361. _this.isFinishSize = _this.isAllSize;
  15362. setTimeout(() => {
  15363. _this.proVisible = false;
  15364. }, 1000);
  15365. if (err) {
  15366. var a = _this.$refs.upload1.uploadFiles;
  15367. a.splice(a.length - 1, a.length);
  15368. _this.$message.error("上传失败");
  15369. } else {
  15370. // _this.$message.success('上传成功')
  15371. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15372. var c = [
  15373. "AVI",
  15374. "NAVI",
  15375. "MPEG",
  15376. "ASF",
  15377. "MOV",
  15378. "WMV",
  15379. "3GP",
  15380. "RM",
  15381. "RMVB",
  15382. "FLV",
  15383. "F4V",
  15384. "H.264",
  15385. "H.265",
  15386. "REAL VIDEO",
  15387. "MKV",
  15388. "WebM",
  15389. "HDDVD",
  15390. "MP4",
  15391. "MPG",
  15392. "M4V",
  15393. "MGV",
  15394. "OGV",
  15395. "QTM",
  15396. "STR",
  15397. "AMC",
  15398. "DVX",
  15399. "EVO",
  15400. "DAT",
  15401. "OGG",
  15402. "OGM",
  15403. ];
  15404. if (type == 1) {
  15405. _this.studyJuri[0].cover.push({
  15406. name: file.name,
  15407. url: data.Location,
  15408. uid: file.uid,
  15409. });
  15410. if (
  15411. c.indexOf(
  15412. _this.studyJuri[0].cover[0].url
  15413. .split(".")
  15414. [
  15415. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15416. ].toLocaleUpperCase()
  15417. ) != -1
  15418. ) {
  15419. _this.fileType = 2;
  15420. } else if (
  15421. b.indexOf(
  15422. _this.studyJuri[0].cover[0].url
  15423. .split(".")
  15424. [
  15425. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15426. ].toLocaleUpperCase()
  15427. ) != -1
  15428. ) {
  15429. _this.fileType = 1;
  15430. } else if (
  15431. photoA.indexOf(
  15432. _this.studyJuri[0].cover[0].url
  15433. .split(".")
  15434. [
  15435. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15436. ].toLocaleUpperCase()
  15437. ) != -1
  15438. ) {
  15439. _this.fileType = 0;
  15440. } else {
  15441. _this.fileType = 3;
  15442. }
  15443. _this.imgChange(null, null, type);
  15444. } else if (type == 2) {
  15445. _this.upToolImg = data.Location;
  15446. _this.imgChange(null, null, type);
  15447. _this.addCourseWorks(i);
  15448. } else if (type == 4) {
  15449. _this.addPz("3", data.Location);
  15450. } else if (type == 5) {
  15451. _this.addImgDrawImG(data.Location);
  15452. } else if (type == 6) {
  15453. var _ftype = 1;
  15454. if (
  15455. c.indexOf(
  15456. data.Location.split(".")[
  15457. data.Location.split(".").length - 1
  15458. ].toLocaleUpperCase()
  15459. ) != -1
  15460. ) {
  15461. _ftype = 5;
  15462. } else if (
  15463. b.indexOf(
  15464. data.Location.split(".")[
  15465. data.Location.split(".").length - 1
  15466. ].toLocaleUpperCase()
  15467. ) != -1
  15468. ) {
  15469. _ftype = 4;
  15470. } else {
  15471. _ftype = 1;
  15472. }
  15473. _this.plworkFile.push({
  15474. name: file.name,
  15475. url: data.Location,
  15476. uid: file.uid,
  15477. fileType: _ftype,
  15478. username:
  15479. _this.plworkFile.length > 10
  15480. ? _this.plworkFile.length + 1
  15481. : "0" + (_this.plworkFile.length + 1),
  15482. });
  15483. } else if (type == 7) {
  15484. _this.addCourseWorksGong(i, data.Location, 32);
  15485. } else if (type == 8) {
  15486. _this.addCourseWorksGong(i, data.Location, 57);
  15487. }
  15488. _this.imgChange(null, null, type);
  15489. console.log(data.Location);
  15490. // _this.$message.success('上传成功'+data.Location)
  15491. }
  15492. });
  15493. }
  15494. },
  15495. async beforeUpload3(event, type, i) {
  15496. // this.$message.success('进入上传')
  15497. let file = "";
  15498. let cfindex2 = 0;
  15499. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15500. file = event.target.files[cfindex];
  15501. var credentials = {
  15502. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15503. secretAccessKey: "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",
  15504. }; //秘钥形式的登录上传
  15505. window.AWS.config.update(credentials);
  15506. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15507. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15508. var _this = this;
  15509. // _this.progress = 0;
  15510. _this.proVisible2 = true;
  15511. var b = [
  15512. "DOC",
  15513. "DOCX",
  15514. "DOCM",
  15515. "DOTM",
  15516. "DOTX",
  15517. "PPTX",
  15518. "PPSX",
  15519. "PPT",
  15520. "PPS",
  15521. "PPTM",
  15522. "POTM",
  15523. "PPAM",
  15524. "POTX",
  15525. "PPSM",
  15526. ];
  15527. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15528. var photoA = [
  15529. "BMP",
  15530. "GIF",
  15531. "PNG",
  15532. "JPEG",
  15533. "JPG",
  15534. "TIF",
  15535. "PCX",
  15536. "TGA",
  15537. "EXIF",
  15538. "FPX",
  15539. "SVG",
  15540. "APNG",
  15541. ];
  15542. if (
  15543. photoA.indexOf(
  15544. file.name
  15545. .split(".")
  15546. [file.name.split(".").length - 1].toLocaleUpperCase()
  15547. ) != -1 &&
  15548. type != 4
  15549. ) {
  15550. // const blob = await imageConversion.compress(file, 0.8)
  15551. file = await this.pngToWhiteBg(file);
  15552. const blob = await imageConversion.compressAccurately(file, 256);
  15553. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15554. file = new File([blob], file.name, { type: file.type });
  15555. }
  15556. if (file) {
  15557. var params = {
  15558. Key:
  15559. file.name.split(".")[0] +
  15560. new Date().getTime() +
  15561. "." +
  15562. file.name.split(".")[file.name.split(".").length - 1],
  15563. ContentType: file.type,
  15564. Body: file,
  15565. "Access-Control-Allow-Credentials": "*",
  15566. ACL: "public-read",
  15567. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15568. var options = {
  15569. // partSize: 2048 * 1024 * 1024,
  15570. partSize: 1024 * 1024 * 1024,
  15571. queueSize: 2,
  15572. leavePartsOnError: true,
  15573. };
  15574. bucket
  15575. .upload(params, options)
  15576. .on("httpUploadProgress", function (evt) {
  15577. //这里可以写进度条
  15578. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15579. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15580. })
  15581. .send(function (err, data) {
  15582. // _this.progress = 100;
  15583. cfindex2++;
  15584. setTimeout(() => {
  15585. if (
  15586. cfindex2 == event.target.files.length - 1 ||
  15587. cfindex2 > event.target.files.length - 1
  15588. ) {
  15589. _this.proVisible2 = false;
  15590. }
  15591. }, 1000);
  15592. if (err) {
  15593. var a = _this.$refs.upload1.uploadFiles;
  15594. a.splice(a.length - 1, a.length);
  15595. _this.$message.error("上传失败");
  15596. } else {
  15597. // _this.$message.success('上传成功')
  15598. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15599. var c = [
  15600. "AVI",
  15601. "NAVI",
  15602. "MPEG",
  15603. "ASF",
  15604. "MOV",
  15605. "WMV",
  15606. "3GP",
  15607. "RM",
  15608. "RMVB",
  15609. "FLV",
  15610. "F4V",
  15611. "H.264",
  15612. "H.265",
  15613. "REAL VIDEO",
  15614. "MKV",
  15615. "WebM",
  15616. "HDDVD",
  15617. "MP4",
  15618. "MPG",
  15619. "M4V",
  15620. "MGV",
  15621. "OGV",
  15622. "QTM",
  15623. "STR",
  15624. "AMC",
  15625. "DVX",
  15626. "EVO",
  15627. "DAT",
  15628. "OGG",
  15629. "OGM",
  15630. ];
  15631. if (type == 1) {
  15632. _this.studyJuri[0].cover.push({
  15633. name: file.name,
  15634. url: data.Location,
  15635. uid: file.uid,
  15636. });
  15637. if (
  15638. c.indexOf(
  15639. _this.studyJuri[0].cover[0].url
  15640. .split(".")
  15641. [
  15642. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15643. ].toLocaleUpperCase()
  15644. ) != -1
  15645. ) {
  15646. _this.fileType = 2;
  15647. } else if (
  15648. b.indexOf(
  15649. _this.studyJuri[0].cover[0].url
  15650. .split(".")
  15651. [
  15652. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15653. ].toLocaleUpperCase()
  15654. ) != -1
  15655. ) {
  15656. _this.fileType = 1;
  15657. } else {
  15658. _this.fileType = 0;
  15659. }
  15660. _this.imgChange(null, null, type);
  15661. } else if (type == 2) {
  15662. _this.upToolImg = data.Location;
  15663. _this.imgChange(null, null, type);
  15664. _this.addCourseWorks(i);
  15665. } else if (type == 4) {
  15666. _this.addPz("3", data.Location);
  15667. } else if (type == 5) {
  15668. _this.addImgDrawImG(data.Location);
  15669. } else if (type == 6) {
  15670. var _ftype = 1;
  15671. if (
  15672. c.indexOf(
  15673. data.Location.split(".")[
  15674. data.Location.split(".").length - 1
  15675. ].toLocaleUpperCase()
  15676. ) != -1
  15677. ) {
  15678. _ftype = 5;
  15679. } else if (
  15680. b.indexOf(
  15681. data.Location.split(".")[
  15682. data.Location.split(".").length - 1
  15683. ].toLocaleUpperCase()
  15684. ) != -1
  15685. ) {
  15686. _ftype = 4;
  15687. } else {
  15688. _ftype = 1;
  15689. }
  15690. _this.plworkFile.push({
  15691. name: file.name,
  15692. url: data.Location,
  15693. uid: file.uid,
  15694. fileType: _ftype,
  15695. username:
  15696. _this.plworkFile.length + 1 > 9
  15697. ? _this.plworkFile.length + 1
  15698. : "0" + (_this.plworkFile.length + 1),
  15699. });
  15700. }
  15701. _this.imgChange(null, null, type);
  15702. console.log(data.Location);
  15703. // _this.$message.success('上传成功'+data.Location)
  15704. }
  15705. });
  15706. }
  15707. }
  15708. },
  15709. beforeUpload2(event, type) {
  15710. var file = event.target.files[0];
  15711. var credentials = {
  15712. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15713. secretAccessKey: "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",
  15714. }; //秘钥形式的登录上传
  15715. window.AWS.config.update(credentials);
  15716. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15717. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15718. var _this = this;
  15719. _this.progress = 0;
  15720. _this.proVisible = true;
  15721. if (file) {
  15722. var params = {
  15723. Key:
  15724. file.name.split(".")[0] +
  15725. new Date().getTime() +
  15726. "." +
  15727. file.name.split(".")[file.name.split(".").length - 1],
  15728. ContentType: file.type,
  15729. Body: file,
  15730. "Access-Control-Allow-Credentials": "*",
  15731. ACL: "public-read",
  15732. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15733. var options = {
  15734. partSize: 2048 * 1024 * 1024,
  15735. queueSize: 2,
  15736. leavePartsOnError: true,
  15737. };
  15738. bucket
  15739. .upload(params, options)
  15740. .on("httpUploadProgress", function (evt) {
  15741. //这里可以写进度条
  15742. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15743. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15744. })
  15745. .send(function (err, data) {
  15746. _this.progress = 100;
  15747. setTimeout(() => {
  15748. _this.proVisible = false;
  15749. }, 1000);
  15750. if (err) {
  15751. var a = _this.$refs.upload1.uploadFiles;
  15752. a.splice(a.length - 1, a.length);
  15753. _this.$message.error("上传失败");
  15754. } else {
  15755. if (type == 2) {
  15756. _this.studyJuri[0].upVedio.push({
  15757. name: file.name,
  15758. url: data.Location,
  15759. uid: file.uid,
  15760. });
  15761. _this.imgChange(null, null, type);
  15762. } else if (type == 3) {
  15763. _this.studyJuri[0].upFile.push({
  15764. name: file.name,
  15765. url: data.Location,
  15766. uid: file.uid,
  15767. });
  15768. _this.imgChange(null, null, type);
  15769. }
  15770. console.log(data.Location);
  15771. }
  15772. });
  15773. }
  15774. },
  15775. allScrell() {
  15776. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15777. },
  15778. nextOrpreSteps(t) {
  15779. if (this.IsFollow && this.tType == 2) {
  15780. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15781. return;
  15782. }
  15783. var b = this.chapInfoList.length - 1;
  15784. if (t == 0) {
  15785. if (this.courseType == 0) {
  15786. if (this.taskCount == 0) {
  15787. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15788. if (this.IsLookOpen) {
  15789. if (
  15790. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15791. ) {
  15792. if (
  15793. this.courseDetail.userid != this.userid &&
  15794. (!this.courseDetail.course_teacher ||
  15795. (this.courseDetail.course_teacher &&
  15796. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  15797. ) {
  15798. this.$message.error("任务未解锁");
  15799. } else {
  15800. this.$message.error("上一任务未解锁");
  15801. }
  15802. return;
  15803. }
  15804. }
  15805. this.navList[this.courseType].isOpen = false;
  15806. this.courseType = b;
  15807. this.taskCount =
  15808. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15809. .length - 1;
  15810. this.navList[this.courseType].isOpen = true;
  15811. } else {
  15812. this.taskCount--;
  15813. }
  15814. } else {
  15815. if (this.taskCount == 0) {
  15816. this.navList[this.courseType].isOpen = false;
  15817. this.courseType--;
  15818. this.taskCount =
  15819. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15820. .length - 1;
  15821. this.navList[this.courseType].isOpen = true;
  15822. } else {
  15823. this.taskCount--;
  15824. }
  15825. }
  15826. } else {
  15827. if (this.courseType == b) {
  15828. if (
  15829. this.taskCount ==
  15830. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15831. 1
  15832. ) {
  15833. this.navList[this.courseType].isOpen = false;
  15834. this.courseType = 0;
  15835. this.taskCount = 0;
  15836. this.navList[this.courseType].isOpen = true;
  15837. } else {
  15838. var bbb = parseInt(this.taskCount) + 1;
  15839. if (
  15840. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15841. .isLook &&
  15842. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  15843. (this.courseDetail.course_teacher &&
  15844. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  15845. this.IsLookOpen
  15846. ) {
  15847. this.$message.error("任务未解锁");
  15848. return;
  15849. }
  15850. this.taskCount++;
  15851. if (this.IsLookOpen) {
  15852. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15853. this.taskCount
  15854. ].isLook = true;
  15855. this.addCourseState(3);
  15856. }
  15857. }
  15858. } else {
  15859. if (
  15860. this.taskCount ==
  15861. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15862. 1
  15863. ) {
  15864. var bbb = parseInt(this.courseType) + 1;
  15865. if (
  15866. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  15867. this.courseDetail.userid != this.userid &&
  15868. (!this.courseDetail.course_teacher ||
  15869. (this.courseDetail.course_teacher &&
  15870. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  15871. this.IsLookOpen
  15872. ) {
  15873. this.$message.error("任务未解锁");
  15874. return;
  15875. }
  15876. this.navList[this.courseType].isOpen = false;
  15877. this.courseType++;
  15878. this.taskCount = 0;
  15879. this.navList[this.courseType].isOpen = true;
  15880. } else {
  15881. var bbb = parseInt(this.taskCount) + 1;
  15882. if (
  15883. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15884. .isLook &&
  15885. this.courseDetail.userid != this.userid &&
  15886. (!this.courseDetail.course_teacher ||
  15887. (this.courseDetail.course_teacher &&
  15888. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  15889. this.IsLookOpen
  15890. ) {
  15891. this.$message.error("任务未解锁");
  15892. return;
  15893. }
  15894. this.taskCount++;
  15895. }
  15896. if (this.IsLookOpen) {
  15897. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15898. this.taskCount
  15899. ].isLook = true;
  15900. this.addCourseState(3);
  15901. }
  15902. }
  15903. // if (
  15904. // this.taskCount ==
  15905. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  15906. // ) {
  15907. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  15908. // } else {
  15909. // this.taskCount++;
  15910. // }
  15911. }
  15912. document.scrollingElement.scrollTop = 0;
  15913. this.showType = 7;
  15914. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15915. // if (this.vedio[this.taskCount].length > 0) {
  15916. // var a =
  15917. // document.getElementsByClassName("box_course")[this.taskCount]
  15918. // .offsetHeight;
  15919. // document.getElementsByClassName("vedioList")[
  15920. // this.taskCount
  15921. // ].style.height = a + "px";
  15922. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  15923. // a - 40 + "px";
  15924. // }
  15925. this.isNoHomeWork = false;
  15926. (this.studyJuri = [
  15927. {
  15928. content: "",
  15929. cover: [],
  15930. upVedio: [],
  15931. upFile: [],
  15932. },
  15933. ]),
  15934. (this.radio = []);
  15935. this.isClickNav = "";
  15936. this.selectPz();
  15937. this.getHomeWork();
  15938. this.getCourseDetail(2);
  15939. this.$forceUpdate();
  15940. },
  15941. openTask(s, n, i,ctype) {
  15942. if (this.IsFollow && this.tType == 2) {
  15943. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15944. return;
  15945. }
  15946. if (this.IsLookOpen) {
  15947. if (
  15948. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  15949. this.courseDetail.userid != this.userid &&
  15950. (!this.courseDetail.course_teacher ||
  15951. (this.courseDetail.course_teacher &&
  15952. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  15953. ) {
  15954. this.$message.error("任务未解锁");
  15955. return;
  15956. }
  15957. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  15958. if (
  15959. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  15960. .isLook
  15961. ) {
  15962. this.$message.error("上一任务未解锁");
  15963. return;
  15964. }
  15965. } else if (s > this.courseType) {
  15966. if (n > 0) {
  15967. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  15968. this.$message.error("上一任务未解锁");
  15969. return;
  15970. }
  15971. } else {
  15972. if (
  15973. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  15974. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  15975. ].isLook
  15976. ) {
  15977. this.$message.error("上一任务未解锁");
  15978. return;
  15979. }
  15980. }
  15981. }
  15982. }
  15983. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  15984. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  15985. return;
  15986. }
  15987. this.courseType = s;
  15988. this.navId = i;
  15989. this.taskCount = n;
  15990. if(ctype == 2){
  15991. this.navList[s].task[n].isOpen = true
  15992. }else{
  15993. this.navList[this.courseType].task[this.taskCount].isOpen =
  15994. !this.navList[this.courseType].task[this.taskCount].isOpen;
  15995. }
  15996. if (this.IsLookOpen) {
  15997. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15998. this.taskCount
  15999. ].isLook = true;
  16000. this.addCourseState(3);
  16001. }
  16002. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16003. this.isCloseList[ci].isClose = 0;
  16004. this.isCloseList[ci].isCloseBoolean = false;
  16005. this.$nextTick(()=>{
  16006. setTimeout(()=>{
  16007. setTimeout(()=>{
  16008. this.panToolHeight('tool-'+ci);
  16009. }, 0)
  16010. }, 0)
  16011. })
  16012. }
  16013. this.showType = 7;
  16014. this.isNoHomeWork = false;
  16015. (this.studyJuri = [
  16016. {
  16017. content: "",
  16018. cover: [],
  16019. upVedio: [],
  16020. upFile: [],
  16021. },
  16022. ]),
  16023. (this.radio = []);
  16024. document.scrollingElement.scrollTop = 0;
  16025. // setTimeout(() => {
  16026. // let a = document.getElementById(i);
  16027. // if (a.offsetTop - 110 == 0) {
  16028. // window.scrollTo(0, 0);
  16029. // } else {
  16030. // window.scrollTo(0, a.offsetTop);
  16031. // }
  16032. // }, 0);
  16033. for (var z = 0; z < this.navList.length; z++) {
  16034. for (var q = 0; q < this.navList[z].task.length; q++) {
  16035. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16036. this.navList[z].task[q].tool[w].isTool = false;
  16037. }
  16038. }
  16039. }
  16040. this.selectPz();
  16041. this.getHomeWork();
  16042. this.getCourseDetail(2);
  16043. },
  16044. get(i) {
  16045. if (this.IsFollow && this.tType == 2) {
  16046. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16047. return;
  16048. }
  16049. // for(var k=0;k<this.navList.length;k++){
  16050. // this.navList[k].isOpen = false;
  16051. // }
  16052. // this.navList[i].isOpen = true;
  16053. let a = this.navList[i].isOpen
  16054. this.navList[i].isOpen = !this.navList[i].isOpen;
  16055. this.$forceUpdate()
  16056. if (this.navList[i].isOpen) {
  16057. this.openTask(i, 0, (i + "-0"),2);
  16058. }
  16059. },
  16060. addQuestion() {
  16061. this.answerList.push({
  16062. answerTitle: this.answerQ,
  16063. answer: this.questionAnswer,
  16064. });
  16065. let params = [
  16066. {
  16067. uid: this.userid,
  16068. cid: this.id,
  16069. stage: this.courseType,
  16070. task: this.taskCount,
  16071. tool: this.toolindex,
  16072. content: JSON.stringify(this.answerList),
  16073. type: 3,
  16074. },
  16075. ];
  16076. this.ajax
  16077. .post(this.$store.state.api + "addCourseWorks", params)
  16078. .then((res) => {
  16079. this.$message({
  16080. message: "提交成功",
  16081. type: "success",
  16082. });
  16083. this.answerList = [];
  16084. this.answerDialogVisible = false;
  16085. this.selectStudent();
  16086. this.selectSWorks();
  16087. this.selectSLook();
  16088. })
  16089. .catch((err) => {
  16090. this.$message.error("提交失败");
  16091. console.error(err);
  16092. });
  16093. },
  16094. addQuestionTeacher() {
  16095. this.answerList.push({
  16096. answerTitle: this.answerQ,
  16097. answer: this.questionAnswer,
  16098. });
  16099. let params = [
  16100. {
  16101. uid: this.sStudent.userid,
  16102. cid: this.id,
  16103. stage: this.courseType,
  16104. task: this.taskCount,
  16105. tool: this.toolindex,
  16106. content: JSON.stringify(this.answerList),
  16107. type: 3,
  16108. ateacher: this.userid,
  16109. },
  16110. ];
  16111. this.ajax
  16112. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16113. .then((res) => {
  16114. this.$message({
  16115. message: "提交成功",
  16116. type: "success",
  16117. });
  16118. this.answerList = [];
  16119. this.questionAnswer = "";
  16120. this.answerDialogVisibleTeacher = false;
  16121. this.selectStudent();
  16122. this.selectSWorks();
  16123. this.selectSLook();
  16124. })
  16125. .catch((err) => {
  16126. this.$message.error("提交失败");
  16127. console.error(err);
  16128. });
  16129. },
  16130. refreshCourse() {
  16131. // window.location.reload();
  16132. this.navList = [];
  16133. this.getCourseDetail(1);
  16134. },
  16135. getCourseDetail(type, gindex) {
  16136. let loading;
  16137. if (type != 2) {
  16138. loading = this.$loading.service({
  16139. background: "rgba(255, 255, 255, 0.7)",
  16140. target: document.querySelector(".student_table"),
  16141. });
  16142. }
  16143. this.downLoading = false
  16144. // this.navList[0].isOpen = false;
  16145. // this.navList[this.courseType].isOpen = true;
  16146. // this.courseType = this.courseTypeLine;
  16147. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16148. let params = {
  16149. courseId: this.id,
  16150. };
  16151. this.ajax
  16152. .get(this.$store.state.api + "selectCourseDetail3", params)
  16153. .then((res) => {
  16154. if (type != 2) {
  16155. loading.close();
  16156. if (
  16157. this.courseType >
  16158. JSON.parse(res.data[0][0].chapters).length - 1
  16159. ) {
  16160. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16161. }
  16162. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16163. .chapterInfo[0].taskJson;
  16164. var b = [
  16165. "AVI",
  16166. "NAVI",
  16167. "MPEG",
  16168. "ASF",
  16169. "MOV",
  16170. "WMV",
  16171. "3GP",
  16172. "RM",
  16173. "RMVB",
  16174. "FLV",
  16175. "F4V",
  16176. "H.264",
  16177. "H.265",
  16178. "REAL VIDEO",
  16179. "MKV",
  16180. "WebM",
  16181. "HDDVD",
  16182. "MP4",
  16183. "MPG",
  16184. "M4V",
  16185. "MGV",
  16186. "OGV",
  16187. "QTM",
  16188. "STR",
  16189. "AMC",
  16190. "DVX",
  16191. "EVO",
  16192. "DAT",
  16193. "OGG",
  16194. "OGM",
  16195. "MP3",
  16196. ];
  16197. let _chapterData = [];
  16198. for (var i = 0; i < a.length; i++) {
  16199. var c = a[i].chapterData;
  16200. this.vedio[i] = [];
  16201. this.textList[i] = [];
  16202. this.lineList[i] = [];
  16203. this.chapToolList[i] = [];
  16204. this.file[i] = [];
  16205. this.fileC[i] = [];
  16206. _chapterData[i] = c.filter((el) => {
  16207. return el.type != 12;
  16208. });
  16209. this.fileC[i] = c.filter((el) => {
  16210. return el.type == 12;
  16211. });
  16212. // else if (c[j].type == 12) {
  16213. // this.fileC[i].push(c[j]);
  16214. // }
  16215. for (var j = 0; j < c.length; j++) {
  16216. if (c[j].type == 7) {
  16217. this.chapToolList[i].push(c[j]);
  16218. } else if (c[j].type == 8 || c[j].type == 14) {
  16219. this.lineList[i].push(c[j]);
  16220. } else if (c[j].type == 6) {
  16221. this.textList[i].push(c[j]);
  16222. } else {
  16223. if (
  16224. b.indexOf(
  16225. c[j].url
  16226. .split(".")
  16227. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16228. ) != -1
  16229. ) {
  16230. this.vedio[i].push(c[j]);
  16231. } else {
  16232. this.file[i].push(c[j]);
  16233. }
  16234. }
  16235. }
  16236. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16237. d.sources[0].src =
  16238. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16239. this.playerO[i] = d;
  16240. }
  16241. this.courseDetail = res.data[0][0];
  16242. this.tcid = this.arrayToArray(
  16243. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16244. this.tcid2 ? this.tcid2.split(",") : []
  16245. ).join(",");
  16246. this.evalua = res.data[0][0].evaId;
  16247. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16248. this.courseType
  16249. ];
  16250. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16251. if (this.tcid && res.data[1].length) {
  16252. let _inviteA = [];
  16253. for (var ik = 0; ik < res.data[1].length; ik++) {
  16254. _inviteA.push({
  16255. cid: res.data[1][ik].classid,
  16256. ic: res.data[1][ik].code,
  16257. });
  16258. }
  16259. for (var ik = 0; ik < _inviteA.length; ik++) {
  16260. if (
  16261. this.arrayToArray(
  16262. _inviteA[ik].cid.split(","),
  16263. this.tcid.split(",")
  16264. ).length
  16265. ) {
  16266. this.inviteCode = _inviteA[ik].ic;
  16267. break;
  16268. }
  16269. }
  16270. }
  16271. for (var l = 0; l < this.chapInfoList.length; l++) {
  16272. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16273. for (var m = 0; m < w.length; m++) {
  16274. w[m].id = l + "-" + m;
  16275. }
  16276. }
  16277. if (
  16278. _chapterData[this.taskCount].length &&
  16279. _chapterData[this.taskCount][0].type == 2
  16280. ) {
  16281. this.showType = 0;
  16282. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16283. } else {
  16284. if (_chapterData[this.taskCount].length > 0) {
  16285. let _url = _chapterData[this.taskCount][0].url;
  16286. if (
  16287. _chapterData[this.taskCount][0].type == 8 ||
  16288. _chapterData[this.taskCount][0].type == 14
  16289. ) {
  16290. this.showType = 2;
  16291. if (
  16292. _url.indexOf("https://") == -1 &&
  16293. _url.indexOf("http://") == -1
  16294. ) {
  16295. _url = "https://" + _url;
  16296. }
  16297. this.pptImgUrl1 = _url;
  16298. } else if (_chapterData[this.taskCount][0].type == 3) {
  16299. if (
  16300. _url
  16301. .split(".")
  16302. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16303. ) {
  16304. this.showType = 3;
  16305. this.pptImgUrl1 = _url;
  16306. } else if (
  16307. this.isAssetTypeAnImage(
  16308. _url
  16309. .split(".")
  16310. [_url.split(".").length - 1].toLocaleLowerCase()
  16311. )
  16312. ) {
  16313. this.showType = 4;
  16314. this.pptImgUrl1 = _url;
  16315. } else {
  16316. this.showType = 2;
  16317. this.pptImgUrl1 =
  16318. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16319. encodeURIComponent(_url);
  16320. }
  16321. } else if (_chapterData[this.taskCount][0].type == 13) {
  16322. this.showType = 4;
  16323. this.pptImgUrl1 = _url;
  16324. } else if (_chapterData[this.taskCount][0].type == 6) {
  16325. this.showType = 1;
  16326. this.text = this.textList[this.taskCount][0];
  16327. }
  16328. }
  16329. }
  16330. this.isClickNav = 0;
  16331. if (
  16332. !_chapterData[this.taskCount].length ||
  16333. _chapterData[this.taskCount][0].type == 12
  16334. ) {
  16335. this.isClickNav = "";
  16336. this.showType = "";
  16337. }
  16338. this.vChapterData = _chapterData;
  16339. } else {
  16340. this.showType = 0;
  16341. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16342. .chapterInfo[0].taskJson;
  16343. var b = [
  16344. "AVI",
  16345. "NAVI",
  16346. "MPEG",
  16347. "ASF",
  16348. "MOV",
  16349. "WMV",
  16350. "3GP",
  16351. "RM",
  16352. "RMVB",
  16353. "FLV",
  16354. "F4V",
  16355. "H.264",
  16356. "H.265",
  16357. "REAL VIDEO",
  16358. "MKV",
  16359. "WebM",
  16360. "HDDVD",
  16361. "MP4",
  16362. "MPG",
  16363. "M4V",
  16364. "MGV",
  16365. "OGV",
  16366. "QTM",
  16367. "STR",
  16368. "AMC",
  16369. "DVX",
  16370. "EVO",
  16371. "DAT",
  16372. "OGG",
  16373. "OGM",
  16374. "MP3",
  16375. ];
  16376. let _chapterData = [];
  16377. for (var i = 0; i < a.length; i++) {
  16378. var c = a[i].chapterData;
  16379. this.vedio[i] = [];
  16380. this.textList[i] = [];
  16381. this.lineList[i] = [];
  16382. this.chapToolList[i] = [];
  16383. this.file[i] = [];
  16384. this.fileC[i] = [];
  16385. _chapterData[i] = c.filter((el) => {
  16386. return el.type != 12;
  16387. });
  16388. this.fileC[i] = c.filter((el) => {
  16389. return el.type == 12;
  16390. });
  16391. for (var j = 0; j < c.length; j++) {
  16392. if (c[j].type == 7) {
  16393. this.chapToolList[i].push(c[j]);
  16394. } else if (c[j].type == 8 || c[j].type == 14) {
  16395. this.lineList[i].push(c[j]);
  16396. } else if (c[j].type == 6) {
  16397. this.textList[i].push(c[j]);
  16398. } else {
  16399. if (
  16400. b.indexOf(
  16401. c[j].url
  16402. .split(".")
  16403. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16404. ) != -1
  16405. ) {
  16406. this.vedio[i].push(c[j]);
  16407. } else {
  16408. this.file[i].push(c[j]);
  16409. }
  16410. }
  16411. }
  16412. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16413. d.sources[0].src =
  16414. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16415. this.playerO[i] = d;
  16416. }
  16417. if (
  16418. _chapterData[this.taskCount].length &&
  16419. _chapterData[this.taskCount][0].type == 2
  16420. ) {
  16421. this.showType = 0;
  16422. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16423. } else {
  16424. if (_chapterData[this.taskCount].length > 0) {
  16425. let _url = _chapterData[this.taskCount][0].url;
  16426. if (
  16427. _chapterData[this.taskCount][0].type == 8 ||
  16428. _chapterData[this.taskCount][0].type == 14
  16429. ) {
  16430. this.showType = 2;
  16431. if (
  16432. _url.indexOf("https://") == -1 &&
  16433. _url.indexOf("http://") == -1
  16434. ) {
  16435. _url = "https://" + _url;
  16436. }
  16437. this.pptImgUrl1 = _url;
  16438. } else if (_chapterData[this.taskCount][0].type == 3) {
  16439. if (
  16440. _url
  16441. .split(".")
  16442. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16443. ) {
  16444. this.showType = 3;
  16445. this.pptImgUrl1 = _url;
  16446. } else if (
  16447. this.isAssetTypeAnImage(
  16448. _url
  16449. .split(".")
  16450. [_url.split(".").length - 1].toLocaleLowerCase()
  16451. )
  16452. ) {
  16453. this.showType = 4;
  16454. this.pptImgUrl1 = _url;
  16455. } else {
  16456. this.showType = 2;
  16457. this.pptImgUrl1 =
  16458. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16459. encodeURIComponent(_url);
  16460. }
  16461. } else if (_chapterData[this.taskCount][0].type == 13) {
  16462. this.showType = 4;
  16463. this.pptImgUrl1 = _url;
  16464. } else if (_chapterData[this.taskCount][0].type == 6) {
  16465. this.showType = 1;
  16466. this.text = this.textList[this.taskCount][0];
  16467. }
  16468. }
  16469. }
  16470. this.isClickNav = 0;
  16471. if (
  16472. !_chapterData[this.taskCount].length ||
  16473. _chapterData[this.taskCount][0].type == 12
  16474. ) {
  16475. this.isClickNav = "";
  16476. this.showType = "";
  16477. }
  16478. this.vChapterData = _chapterData;
  16479. this.$forceUpdate();
  16480. }
  16481. // else {
  16482. // this.courseDetail = res.data[0][0];
  16483. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16484. // }
  16485. let _this = this;
  16486. if (_this.timer) {
  16487. clearInterval(_this.timer);
  16488. _this.timer = null;
  16489. }
  16490. if (_this.tcid) {
  16491. _this.getCourseGroup(gindex);
  16492. } else {
  16493. _this.selectSWorks(gindex);
  16494. }
  16495. _this.selectStudent();
  16496. _this.selectSLook();
  16497. _this.getPick();
  16498. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16499. _this.setCTask();
  16500. }
  16501. if (_this.dialogVisibleGroup) {
  16502. _this.groupJson =
  16503. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16504. _this.taskCount
  16505. ].toolChoose[_this.toolindex].groupJson;
  16506. }
  16507. _this.$nextTick(() => {
  16508. setTimeout(() => {
  16509. _this.checkEva();
  16510. }, 1000);
  16511. });
  16512. _this.timer = setInterval(function () {
  16513. // _this.getCourseDetail(2);
  16514. if (_this.tcid) {
  16515. _this.getCourseGroup(gindex);
  16516. } else {
  16517. _this.selectSWorks(gindex);
  16518. }
  16519. _this.selectStudent();
  16520. _this.selectSLook();
  16521. _this.getPick();
  16522. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16523. _this.setCTask();
  16524. }
  16525. if (_this.dialogVisibleGroup) {
  16526. _this.groupJson =
  16527. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16528. _this.taskCount
  16529. ].toolChoose[_this.toolindex].groupJson;
  16530. }
  16531. if (_this.tType == 4 || _this.ispzType == 4) {
  16532. _this.selectPz();
  16533. }
  16534. }, 5000);
  16535. _this.$nextTick(function () {
  16536. setTimeout(() => {
  16537. // var a =
  16538. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16539. // document.getElementsByClassName("vedioList")[0].style.height =
  16540. // a + "px";
  16541. // document.getElementsByClassName("navBox")[0].style.height =
  16542. // a - 40 + "px";
  16543. // if (_this.vedio[_this.taskCount].length > 0) {
  16544. // _this.vedioTime = [];
  16545. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16546. // _this.vedioTime[i] = document.getElementsByClassName(
  16547. // "vjs-duration-display"
  16548. // )[i].textContent;
  16549. // }
  16550. // }
  16551. }, 1000);
  16552. });
  16553. })
  16554. .catch((err) => {
  16555. loading.close();
  16556. console.error(err);
  16557. });
  16558. },
  16559. getCourseGroup(gindex) {
  16560. let params = {
  16561. cid: this.id,
  16562. classid: this.tcid ? this.tcid : "1",
  16563. };
  16564. this.ajax
  16565. .get(this.$store.state.api + "getCourseGroup", params)
  16566. .then((res) => {
  16567. if (res.data && res.data[0].length) {
  16568. if (!this.isGroup) {
  16569. let courseGroup = JSON.parse(res.data[0][0].group);
  16570. courseGroup.group = courseGroup.group.filter((el) => {
  16571. el.works = [];
  16572. return el;
  16573. });
  16574. if (courseGroup.isopen == 2) {
  16575. this.isGroup = false;
  16576. this.selectSWorks(gindex);
  16577. return;
  16578. }
  16579. this.courseGroup = courseGroup;
  16580. let groupPerson = res.data[1];
  16581. let group = JSON.parse(res.data[0][0].group).group;
  16582. let courseGroupStudent = {};
  16583. let courseGroupStudentUid = {};
  16584. for (var i = 0; i < group.length; i++) {
  16585. courseGroupStudent[group[i].id] = [];
  16586. courseGroupStudentUid[group[i].id] = [];
  16587. for (var j = 0; j < groupPerson.length; j++) {
  16588. if (groupPerson[j].groupCid == group[i].id) {
  16589. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16590. courseGroupStudentUid[group[i].id].push(
  16591. groupPerson[j].userid
  16592. );
  16593. }
  16594. }
  16595. }
  16596. this.courseGroupStudent = courseGroupStudent;
  16597. this.courseGroupStudentUid = courseGroupStudentUid;
  16598. }
  16599. if (this.courseGroup.isopen == 2) {
  16600. this.isGroup = false;
  16601. } else {
  16602. this.isGroup = true;
  16603. }
  16604. this.selectSWorks(gindex);
  16605. } else {
  16606. this.selectSWorks(gindex);
  16607. this.isGroup = false;
  16608. }
  16609. })
  16610. .catch((err) => {
  16611. // this.$message.error("网络不佳");
  16612. console.error(err);
  16613. });
  16614. },
  16615. setOperationTime() {
  16616. let _this = this;
  16617. if (_this.opertimer) {
  16618. clearInterval(_this.opertimer);
  16619. _this.opertimer = null;
  16620. }
  16621. _this.opertimer = setInterval(() => {
  16622. _this.setoTime("600");
  16623. }, 600000);
  16624. },
  16625. setoTime(time) {
  16626. let params = [
  16627. {
  16628. uid: this.userid,
  16629. cid: this.id,
  16630. type: "2",
  16631. time: time,
  16632. },
  16633. ];
  16634. this.ajax
  16635. .post(this.$store.state.api + "addOperationTimeT2", params)
  16636. .then((res) => {})
  16637. .catch((err) => {
  16638. console.error(err);
  16639. });
  16640. },
  16641. addPz(type, content) {
  16642. if (type == "1" && this.pzConText == "") {
  16643. this.$message.error("评论不能为空!");
  16644. return;
  16645. }
  16646. let params = [
  16647. {
  16648. cid: this.id,
  16649. uid: this.userid,
  16650. s: this.courseType,
  16651. t: this.taskCount,
  16652. c: type == "1" ? this.pzConText : content,
  16653. type: type,
  16654. },
  16655. ];
  16656. this.ajax
  16657. .post(this.$store.state.api + "addPz2", params)
  16658. .then((res) => {
  16659. this.$message({
  16660. message: "添加成功",
  16661. type: "success",
  16662. });
  16663. this.pzConText = "";
  16664. this.addPzDialog = false;
  16665. this.selectPz();
  16666. })
  16667. .catch((err) => {
  16668. this.$message.error("添加失败");
  16669. console.error(err);
  16670. });
  16671. },
  16672. setReplyIndex(id, i) {
  16673. this.replyIndex = i;
  16674. this.replyPid = id;
  16675. this.replyDialogVisible = true;
  16676. },
  16677. addHf() {
  16678. if (this.reply == "") {
  16679. this.$message.error("回复不能为空!");
  16680. return;
  16681. }
  16682. let params = [
  16683. {
  16684. cid: this.id,
  16685. uid: this.userid,
  16686. s: this.courseType,
  16687. t: this.taskCount,
  16688. type: "1",
  16689. ct: 2,
  16690. pid: this.replyPid,
  16691. c: this.reply,
  16692. },
  16693. ];
  16694. this.ajax
  16695. .post(this.$store.state.api + "addHf", params)
  16696. .then((res) => {
  16697. this.reply = "";
  16698. this.$message({
  16699. message: "回复成功",
  16700. type: "success",
  16701. });
  16702. this.replyDialogVisible = false;
  16703. this.selectPz();
  16704. })
  16705. .catch((err) => {
  16706. this.$message.error("回复失败");
  16707. console.error(err);
  16708. });
  16709. },
  16710. deletePz(id) {
  16711. this.$confirm("确定删除此评论吗?", "提示", {
  16712. confirmButtonText: "确定",
  16713. cancelButtonText: "取消",
  16714. type: "warning",
  16715. })
  16716. .then(() => {
  16717. let params = [
  16718. {
  16719. id: id,
  16720. },
  16721. ];
  16722. this.ajax
  16723. .post(this.$store.state.api + "deletePz", params)
  16724. .then((res) => {
  16725. this.$message({
  16726. message: "删除成功",
  16727. type: "success",
  16728. });
  16729. this.selectPz();
  16730. })
  16731. .catch((err) => {
  16732. this.$message.error("网络异常");
  16733. console.error(err);
  16734. });
  16735. })
  16736. .catch(() => {});
  16737. },
  16738. deleteReply(id) {
  16739. this.$confirm("确定删除此回复吗?", "提示", {
  16740. confirmButtonText: "确定",
  16741. cancelButtonText: "取消",
  16742. type: "warning",
  16743. })
  16744. .then(() => {
  16745. let params = [
  16746. {
  16747. id: id,
  16748. },
  16749. ];
  16750. this.ajax
  16751. .post(this.$store.state.api + "deleteReply", params)
  16752. .then((res) => {
  16753. this.$message({
  16754. message: "删除成功",
  16755. type: "success",
  16756. });
  16757. this.selectPz();
  16758. })
  16759. .catch((err) => {
  16760. this.$message.error("网络异常");
  16761. console.error(err);
  16762. });
  16763. })
  16764. .catch(() => {});
  16765. },
  16766. setPz() {
  16767. if (this.ispzType == 4) {
  16768. this.ispzType = 0;
  16769. this.pzDialog = false;
  16770. return;
  16771. }
  16772. this.ispzType = 4;
  16773. this.pzDialog = true;
  16774. this.selectPz();
  16775. },
  16776. selectPz() {
  16777. let params = {
  16778. cid: this.id,
  16779. s: this.courseType,
  16780. t: this.taskCount,
  16781. type: this.pzStype,
  16782. uid: this.userid,
  16783. };
  16784. this.ajax
  16785. .get(this.$store.state.api + "selectPzListType", params)
  16786. .then((res) => {
  16787. this.pzList = res.data[0];
  16788. var a = res.data[1];
  16789. for (var i = 0; i < a.length; i++) {
  16790. for (var j = 0; j < this.pzList.length; j++) {
  16791. if (!this.pzList[j].hfList) {
  16792. this.pzList[j].hfList = [];
  16793. }
  16794. if (a[i].pid == this.pzList[j].id) {
  16795. this.pzList[j].hfList.push(a[i]);
  16796. }
  16797. }
  16798. }
  16799. })
  16800. .catch((err) => {
  16801. console.error(err);
  16802. });
  16803. },
  16804. // selectHf() {
  16805. // let params = {
  16806. // cid: this.id,
  16807. // s: this.courseType,
  16808. // t: this.taskCount,
  16809. // };
  16810. // this.ajax
  16811. // .get(this.$store.state.api + "selectHfList", params)
  16812. // .then((res) => {
  16813. // var a = res.data[0];
  16814. // for (var i = 0; i < a.length; i++) {
  16815. // for (var j = 0; j < this.pzList.length; j++) {
  16816. // if (!this.pzList[i].hfList) {
  16817. // this.pzList[i].hfList = [];
  16818. // }
  16819. // if (a[i].pid == this.pzList[j].id) {
  16820. // this.pzList[i].hfList.push(a[i]);
  16821. // }
  16822. // }
  16823. // }
  16824. // })
  16825. // .catch((err) => {
  16826. // console.error(err);
  16827. // });
  16828. // },
  16829. updateSLook() {
  16830. let params = {
  16831. sopen: this.sIsOpen == false ? 1 : 2,
  16832. cid: this.id,
  16833. };
  16834. this.ajax
  16835. .get(this.$store.state.api + "updateCourseSLook", params)
  16836. .then((res) => {
  16837. if (this.sIsOpen == true) {
  16838. this.$message({
  16839. message: "权限设置成功",
  16840. type: "success",
  16841. });
  16842. } else {
  16843. this.$message({
  16844. message: "权限关闭成功",
  16845. type: "success",
  16846. });
  16847. }
  16848. })
  16849. .catch((err) => {
  16850. console.error(err);
  16851. });
  16852. },
  16853. updateFollow() {
  16854. let params = [
  16855. {
  16856. sopen: this.IsFollow == false ? 1 : 2,
  16857. cid: this.id,
  16858. },
  16859. ];
  16860. this.ajax
  16861. .post(this.$store.state.api + "updateCourseFollow", params)
  16862. .then((res) => {
  16863. if (this.IsFollow == true) {
  16864. this.$message({
  16865. message: "开启成功",
  16866. type: "success",
  16867. });
  16868. } else {
  16869. this.$message({
  16870. message: "关闭成功",
  16871. type: "success",
  16872. });
  16873. }
  16874. this.setCTask();
  16875. })
  16876. .catch((err) => {
  16877. console.error(err);
  16878. });
  16879. },
  16880. setCTask() {
  16881. let params = [
  16882. {
  16883. sopen: this.courseType + "-" + this.taskCount,
  16884. cid: this.id,
  16885. },
  16886. ];
  16887. this.ajax
  16888. .post(this.$store.state.api + "updateCourseFollowC", params)
  16889. .then((res) => {})
  16890. .catch((err) => {
  16891. console.error(err);
  16892. });
  16893. },
  16894. updateLookOpen() {
  16895. let params = [
  16896. {
  16897. sopen: this.IsLookOpen == false ? 1 : 2,
  16898. cid: this.id,
  16899. },
  16900. ];
  16901. this.ajax
  16902. .post(this.$store.state.api + "updateCourseLookOpen", params)
  16903. .then((res) => {
  16904. if (this.IsLookOpen == true) {
  16905. // if (this.courseType != 0 && this.taskCount != 0) {
  16906. // this.openTask(0, 0, "0-0");
  16907. // }
  16908. this.$message({
  16909. message: "权限设置成功",
  16910. type: "success",
  16911. });
  16912. } else {
  16913. this.$message({
  16914. message: "权限关闭成功",
  16915. type: "success",
  16916. });
  16917. }
  16918. this.getCourseState(2);
  16919. })
  16920. .catch((err) => {
  16921. console.error(err);
  16922. });
  16923. },
  16924. selectSLook() {
  16925. let params = {
  16926. cid: this.id,
  16927. };
  16928. this.ajax
  16929. .get(this.$store.state.api + "selectCourseSLook", params)
  16930. .then((res) => {
  16931. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  16932. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  16933. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  16934. if (!this.IsLookOpen) {
  16935. this.setNavList();
  16936. } else {
  16937. this.getCourseState(1);
  16938. }
  16939. if (this.IsFollow && this.tType == 2) {
  16940. this.setContent2(false);
  16941. let _followC = res.data[0][0].followC.split("-");
  16942. if (
  16943. this.courseType != _followC[0] ||
  16944. this.taskCount != _followC[1]
  16945. ) {
  16946. this.navList[this.courseType].isOpen = false;
  16947. this.courseType = _followC[0];
  16948. this.navList[this.courseType].isOpen = true;
  16949. this.taskCount = parseInt(_followC[1]);
  16950. this.navId = res.data[0][0].followC;
  16951. document.scrollingElement.scrollTop = 0;
  16952. this.getCourseDetail(2);
  16953. }
  16954. }
  16955. })
  16956. .catch((err) => {
  16957. console.error(err);
  16958. });
  16959. },
  16960. setNavList() {
  16961. if (this.navList.length == 0) {
  16962. this.navList = [];
  16963. var copyList = [];
  16964. for (var l = 0; l < this.chapInfoList.length; l++) {
  16965. var q = this.chapInfoList[l].dyName;
  16966. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16967. var e;
  16968. copyList.push({
  16969. dyName: q,
  16970. isOpen: l === 0 ? true : false,
  16971. task: [],
  16972. });
  16973. for (var r = 0; r < w.length; r++) {
  16974. e = w[r].task;
  16975. if (this.chapInfoList[l].easy == 1) {
  16976. copyList[l].task.push({
  16977. taskName: q,
  16978. id: l + "-" + r,
  16979. isLook: w[r].isLook,
  16980. isOpen: r === 0 ? true : false,
  16981. tool: [],
  16982. });
  16983. } else {
  16984. copyList[l].task.push({
  16985. taskName: e,
  16986. id: l + "-" + r,
  16987. isLook: w[r].isLook,
  16988. isOpen: r === 0 ? true : false,
  16989. tool: [],
  16990. });
  16991. }
  16992. var t = w[r].toolChoose;
  16993. for (var k = 0; k < t.length; k++) {
  16994. var tool = t[k].tool[0];
  16995. copyList[l].task[r].tool.push({
  16996. tool: tool,
  16997. isTool: false,
  16998. });
  16999. }
  17000. // this.navId = this.navId ? this.navId : l + "-" + r;
  17001. // this.navId = l + "-" + r;
  17002. }
  17003. }
  17004. this.navList = copyList;
  17005. this.navList[0].isOpen = false;
  17006. this.navList[this.courseType].isOpen = true;
  17007. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17008. } else {
  17009. this.setNavList2();
  17010. }
  17011. },
  17012. setNavList2() {
  17013. for (var l = 0; l < this.chapInfoList.length; l++) {
  17014. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17015. for (var r = 0; r < w.length; r++) {
  17016. this.navList[l].task[r].isLook = w[r].isLook;
  17017. }
  17018. }
  17019. if (
  17020. this.IsLookOpen &&
  17021. !this.navList[this.courseType].task[this.taskCount].isLook
  17022. ) {
  17023. this.openTask(0, 0, "0-0");
  17024. }
  17025. this.$forceUpdate();
  17026. },
  17027. getCourseState(type) {
  17028. let params = {
  17029. cid: this.id,
  17030. };
  17031. this.ajax
  17032. .get(this.$store.state.api + "getCourseState", params)
  17033. .then((res) => {
  17034. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17035. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17036. this.setNavList();
  17037. this.$forceUpdate();
  17038. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17039. this.addCourseState(2);
  17040. } else {
  17041. this.addCourseState(1);
  17042. }
  17043. })
  17044. .catch((err) => {
  17045. console.error(err);
  17046. });
  17047. },
  17048. addCourseState(type) {
  17049. let _state = this.chapInfoList;
  17050. // this.courseType this.taskCount
  17051. if (type == 1 || type == 2) {
  17052. for (var i = 0; i < _state.length; i++) {
  17053. let el = _state[i].chapterInfo[0].taskJson;
  17054. for (var j = 0; j < el.length; j++) {
  17055. // if (i == 0 && j == 0) {
  17056. // el[j].isLook = true;
  17057. // } else {
  17058. // el[j].isLook = false;
  17059. // }
  17060. if (
  17061. this.courseType > i ||
  17062. (this.courseType == i && this.taskCount + 1 > j)
  17063. ) {
  17064. el[j].isLook = true;
  17065. } else {
  17066. el[j].isLook = false;
  17067. }
  17068. }
  17069. }
  17070. }
  17071. let params = [
  17072. {
  17073. cid: this.id,
  17074. state: JSON.stringify(_state),
  17075. },
  17076. ];
  17077. this.ajax
  17078. .post(
  17079. this.$store.state.api +
  17080. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17081. params
  17082. )
  17083. .then((res) => {
  17084. if (this.IsLookOpen) {
  17085. this.setNavList();
  17086. }
  17087. if (type == 3 && type == 2) {
  17088. this.getCourseState(1);
  17089. }
  17090. })
  17091. .catch((err) => {
  17092. console.error(err);
  17093. });
  17094. },
  17095. getHomeWork() {
  17096. let params = {
  17097. cid: this.id,
  17098. stage: this.courseType,
  17099. task: this.taskCount,
  17100. uid: this.userid,
  17101. };
  17102. this.ajax
  17103. .get(this.$store.state.api + "selectWork", params)
  17104. .then((res) => {
  17105. if (res.data[0].length > 0) {
  17106. this.studyJuri = JSON.parse(res.data[0][0].content);
  17107. this.isNoHomeWork = true;
  17108. }
  17109. })
  17110. .catch((err) => {
  17111. console.error(err);
  17112. });
  17113. },
  17114. isAssetTypeAnImage(ext) {
  17115. return (
  17116. [
  17117. "png",
  17118. "jpg",
  17119. "jpeg",
  17120. "bmp",
  17121. "gif",
  17122. "webp",
  17123. "psd",
  17124. "svg",
  17125. "tiff",
  17126. ].indexOf(ext) !== -1
  17127. );
  17128. },
  17129. switchVideo(media) {
  17130. this.playerO = {};
  17131. this.playerOptions.poster = "";
  17132. this.playerOptions.sources[0].src = media;
  17133. this.playerO = this.playerOptions;
  17134. },
  17135. onPlayerPlay() {},
  17136. onPlayerTimeupdate(player) {
  17137. let gklog = player.cache_.currentTime; //当前播放的秒数
  17138. let a = player.cache_.duration; //视频的总时长
  17139. let gklog2 = parseInt(gklog);
  17140. // if(gklog2 == '3'){
  17141. // player.pause()
  17142. // setTimeout(()=>{
  17143. // player.currentTime(gklog2+1)
  17144. // player.play()
  17145. // },1000)
  17146. // }
  17147. console.log(" onPlayerTimeupdate!", gklog);
  17148. console.log(" onPlayerTimeupdate!", gklog2);
  17149. },
  17150. lookVedio(u, i) {
  17151. this.isClickNav = "";
  17152. // this.playerOptions.sources[0].src = u;
  17153. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17154. d.sources[0].src = u;
  17155. this.playerO[this.taskCount] = d;
  17156. this.showType = 0;
  17157. // this.isClickNav = "video" + i;
  17158. this.isClickNav = i;
  17159. this.$forceUpdate();
  17160. },
  17161. lookText(i, t) {
  17162. this.isClickNav = "";
  17163. // this.text = this.textList[i][t];
  17164. this.text = this.vChapterData[i][t];
  17165. // this.dialogVisible1 = true;
  17166. this.showType = 1;
  17167. // this.isClickNav = "text" + t;
  17168. this.isClickNav = t;
  17169. },
  17170. lookTools(i, t) {
  17171. this.chapTools = this.chapToolList[i][t];
  17172. this.dialogVisible2 = true;
  17173. },
  17174. async openFile(f) {
  17175. this.pptImgUrl = "";
  17176. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17177. if (
  17178. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17179. -1
  17180. ) {
  17181. let _uuurl = await this.checkLink(f);
  17182. this.pptImgUrl =
  17183. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17184. this.showPDF = false;
  17185. this.dialogVisible3 = true;
  17186. } else if (
  17187. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17188. ) {
  17189. this.pptImgUrl = f;
  17190. this.showPDF = true;
  17191. this.dialogVisible3 = true;
  17192. }
  17193. },
  17194. openTable(f) {
  17195. this.tableJson = JSON.parse(f.works);
  17196. this.dialogVisibleTable2 = true;
  17197. },
  17198. openWord(f) {
  17199. this.tableJson = JSON.parse(f.works);
  17200. this.dialogVisibleTable3 = true;
  17201. },
  17202. doUrl(url, i) {
  17203. this.isClickNav = "";
  17204. this.pptImgUrl1 = "";
  17205. this.showType = 2;
  17206. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17207. url = "https://" + url;
  17208. }
  17209. this.pptImgUrl1 = "";
  17210. setTimeout(() => {
  17211. this.pptImgUrl1 = url;
  17212. }, 500);
  17213. // this.isClickNav = "line" + i;
  17214. this.isClickNav = i;
  17215. this.$forceUpdate();
  17216. },
  17217. checkPhoto(f, i) {
  17218. this.showType = 4;
  17219. this.pptImgUrl1 = f.url;
  17220. this.isClickNav = i;
  17221. this.$forceUpdate();
  17222. },
  17223. async downFile(f, i) {
  17224. this.isClickNav = "";
  17225. this.pptImgUrl1 = "";
  17226. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17227. if (
  17228. a.indexOf(
  17229. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17230. ) != -1
  17231. ) {
  17232. let _uuurl = await this.checkLink(f.url);
  17233. this.pptImgUrl1 =
  17234. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17235. // this.dialogVisible3 = true;
  17236. this.showType = 2;
  17237. } else if (
  17238. this.isAssetTypeAnImage(
  17239. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17240. )
  17241. ) {
  17242. this.showType = 4;
  17243. this.pptImgUrl1 = f.url;
  17244. } else if (
  17245. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17246. "PDF"
  17247. ) {
  17248. this.pptImgUrl1 = f.url;
  17249. // this.dialogVisible3 = true;
  17250. this.showType = 3;
  17251. } else {
  17252. window.open(this.file[i].url);
  17253. }
  17254. // this.isClickNav = "word" + i;
  17255. this.isClickNav = i;
  17256. },
  17257. downFileList(i) {
  17258. window.open(this.noImgList[i].url);
  17259. },
  17260. openAddWork() {
  17261. this.dialogVisible = true;
  17262. },
  17263. addBzWorks() {
  17264. let params = [
  17265. {
  17266. uid: this.userid,
  17267. cid: this.id,
  17268. stage: this.courseType,
  17269. task: this.taskCount,
  17270. tool: this.toolindex,
  17271. content: JSON.stringify(this.eScore),
  17272. type: 6,
  17273. },
  17274. ];
  17275. this.ajax
  17276. .post(this.$store.state.api + "addCourseWorks", params)
  17277. .then((res) => {
  17278. this.$message({
  17279. message: "提交成功",
  17280. type: "success",
  17281. });
  17282. this.eScore = { eBzText: "", eStar: [] };
  17283. this.studentEvalDialogVisible = false;
  17284. this.selectSWorks();
  17285. })
  17286. .catch((err) => {
  17287. this.$message.error("提交失败");
  17288. console.error(err);
  17289. });
  17290. },
  17291. addBzWorksTeacher() {
  17292. let params = [
  17293. {
  17294. uid: this.sStudent.userid,
  17295. cid: this.id,
  17296. stage: this.courseType,
  17297. task: this.taskCount,
  17298. tool: this.toolindex,
  17299. content: JSON.stringify(this.eScore),
  17300. type: 6,
  17301. },
  17302. ];
  17303. this.ajax
  17304. .post(this.$store.state.api + "addCourseWorks", params)
  17305. .then((res) => {
  17306. this.$message({
  17307. message: "提交成功",
  17308. type: "success",
  17309. });
  17310. this.eScore = { eBzText: "", eStar: [] };
  17311. this.studentEvalDialogVisibleTeacher = false;
  17312. this.selectSWorks();
  17313. })
  17314. .catch((err) => {
  17315. this.$message.error("提交失败");
  17316. console.error(err);
  17317. });
  17318. },
  17319. addStudentAsk() {
  17320. if (!this.radio.length) {
  17321. this.$message.error("请选择选项");
  17322. return;
  17323. }
  17324. for (var i = 0; i < this.askJson.askCount; i++) {
  17325. if (
  17326. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17327. (this.radio[i] !== 0 && !this.radio[i])
  17328. ) {
  17329. this.$message.error("请选择选项");
  17330. return;
  17331. }
  17332. }
  17333. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17334. let params = [
  17335. {
  17336. uid: this.userid,
  17337. cid: this.id,
  17338. stage: this.courseType,
  17339. task: this.taskCount,
  17340. tool: this.toolindex,
  17341. content: JSON.stringify(this.askList),
  17342. type: 2,
  17343. },
  17344. ];
  17345. this.ajax
  17346. .post(this.$store.state.api + "addCourseWorks", params)
  17347. .then((res) => {
  17348. this.$message({
  17349. message: "提交成功",
  17350. type: "success",
  17351. });
  17352. this.askList = [];
  17353. this.dialogVisible5 = false;
  17354. this.selectStudent();
  17355. this.selectSWorks();
  17356. this.selectSLook();
  17357. })
  17358. .catch((err) => {
  17359. this.$message.error("提交失败");
  17360. console.error(err);
  17361. });
  17362. },
  17363. addStudentAskTeacher() {
  17364. if (!this.radio.length) {
  17365. this.$message.error("请选择选项");
  17366. return;
  17367. }
  17368. for (var i = 0; i < this.askJson.askCount; i++) {
  17369. if (
  17370. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17371. (this.radio[i] !== 0 && !this.radio[i])
  17372. ) {
  17373. this.$message.error("请选择选项");
  17374. return;
  17375. }
  17376. }
  17377. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17378. let params = [
  17379. {
  17380. uid: this.sStudent.userid,
  17381. cid: this.id,
  17382. stage: this.courseType,
  17383. task: this.taskCount,
  17384. tool: this.toolindex,
  17385. content: JSON.stringify(this.askList),
  17386. type: 2,
  17387. },
  17388. ];
  17389. this.ajax
  17390. .post(this.$store.state.api + "addCourseWorks", params)
  17391. .then((res) => {
  17392. this.$message({
  17393. message: "提交成功",
  17394. type: "success",
  17395. });
  17396. this.askList = [];
  17397. this.dialogVisible5Teacher = false;
  17398. this.selectStudent();
  17399. this.selectSWorks();
  17400. this.selectSLook();
  17401. })
  17402. .catch((err) => {
  17403. this.$message.error("提交失败");
  17404. console.error(err);
  17405. });
  17406. },
  17407. addStudentTest() {
  17408. if (!this.radio.length) {
  17409. this.$message.error("请选择选项");
  17410. return;
  17411. }
  17412. for (var i = 0; i < this.testJson.testCount; i++) {
  17413. if (
  17414. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17415. (this.radio[i] !== 0 && !this.radio[i])
  17416. ) {
  17417. this.$message.error("请选择选项");
  17418. return;
  17419. }
  17420. }
  17421. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17422. let params = [
  17423. {
  17424. uid: this.userid,
  17425. cid: this.id,
  17426. stage: this.courseType,
  17427. task: this.taskCount,
  17428. tool: this.toolindex,
  17429. content: JSON.stringify(this.askList),
  17430. type: 8,
  17431. },
  17432. ];
  17433. this.ajax
  17434. .post(this.$store.state.api + "addCourseWorks", params)
  17435. .then((res) => {
  17436. this.$message({
  17437. message: "提交成功",
  17438. type: "success",
  17439. });
  17440. this.askList = [];
  17441. this.dialogVisibleChoice = false;
  17442. this.selectStudent();
  17443. this.selectSWorks();
  17444. this.selectSLook();
  17445. })
  17446. .catch((err) => {
  17447. this.$message.error("提交失败");
  17448. console.error(err);
  17449. });
  17450. },
  17451. addStudentTestTeacher() {
  17452. if (!this.radio.length) {
  17453. this.$message.error("请选择选项");
  17454. return;
  17455. }
  17456. for (var i = 0; i < this.testJson.testCount; i++) {
  17457. if (
  17458. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17459. (this.radio[i] !== 0 && !this.radio[i])
  17460. ) {
  17461. this.$message.error("请选择选项");
  17462. return;
  17463. }
  17464. }
  17465. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17466. let params = [
  17467. {
  17468. uid: this.sStudent.userid,
  17469. cid: this.id,
  17470. stage: this.courseType,
  17471. task: this.taskCount,
  17472. tool: this.toolindex,
  17473. content: JSON.stringify(this.askList),
  17474. type: 8,
  17475. },
  17476. ];
  17477. this.ajax
  17478. .post(this.$store.state.api + "addCourseWorks", params)
  17479. .then((res) => {
  17480. this.$message({
  17481. message: "提交成功",
  17482. type: "success",
  17483. });
  17484. this.askList = [];
  17485. this.dialogVisibleChoiceTeacher = false;
  17486. this.selectStudent();
  17487. this.selectSWorks();
  17488. this.selectSLook();
  17489. })
  17490. .catch((err) => {
  17491. this.$message.error("提交失败");
  17492. console.error(err);
  17493. });
  17494. },
  17495. addWork() {
  17496. if (this.studyJuri[0].content == "") {
  17497. this.$message.error("请将信息填写完整");
  17498. return;
  17499. } else if (this.studyJuri[0].cover.length == 0) {
  17500. this.$message.error("请将信息填写完整");
  17501. return;
  17502. } else if (this.studyJuri[0].upVedio.length == 0) {
  17503. this.$message.error("请将信息填写完整");
  17504. return;
  17505. }
  17506. if (this.isNoHomeWork) {
  17507. this.$confirm(
  17508. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17509. "提示",
  17510. {
  17511. confirmButtonText: "确定",
  17512. cancelButtonText: "取消",
  17513. type: "warning",
  17514. }
  17515. )
  17516. .then(() => {
  17517. let params = [
  17518. {
  17519. uid: this.userid,
  17520. cid: this.id,
  17521. stage: this.courseType,
  17522. task: this.taskCount,
  17523. content: JSON.stringify(this.studyJuri),
  17524. },
  17525. ];
  17526. this.ajax
  17527. .post(this.$store.state.api + "addWorks", params)
  17528. .then((res) => {
  17529. this.$message({
  17530. message: "提交成功",
  17531. type: "success",
  17532. });
  17533. this.isNoHomeWork = true;
  17534. this.dialogVisible = false;
  17535. })
  17536. .catch((err) => {
  17537. this.$message.error("提交失败");
  17538. console.error(err);
  17539. });
  17540. })
  17541. .catch(() => {});
  17542. } else {
  17543. let params = [
  17544. {
  17545. uid: this.userid,
  17546. cid: this.id,
  17547. stage: this.courseType,
  17548. task: this.taskCount,
  17549. content: JSON.stringify(this.studyJuri),
  17550. },
  17551. ];
  17552. this.ajax
  17553. .post(this.$store.state.api + "addWorks", params)
  17554. .then((res) => {
  17555. this.$message({
  17556. message: "提交成功",
  17557. type: "success",
  17558. });
  17559. this.isNoHomeWork = true;
  17560. this.dialogVisible = false;
  17561. })
  17562. .catch((err) => {
  17563. this.$message.error("提交失败");
  17564. console.error(err);
  17565. });
  17566. }
  17567. },
  17568. selectCount() {
  17569. let params = {
  17570. cid: this.id,
  17571. chid: this.courseType,
  17572. uid: this.userid,
  17573. };
  17574. this.ajax
  17575. .get(this.$store.state.api + "selectToolsCount", params)
  17576. .then((res) => {
  17577. for (var i = 0; i < res.data[0].length; i++) {
  17578. if (res.data[0][i].tools == 1) {
  17579. this.wbCount = res.data[0][i].count;
  17580. } else if (res.data[0][i].tools == 2) {
  17581. this.wordCount = res.data[0][i].count;
  17582. } else if (res.data[0][i].tools == 3) {
  17583. this.mindCount = res.data[0][i].count;
  17584. } else if (res.data[0][i].tools == 4) {
  17585. this.askCount = res.data[0][i].count;
  17586. } else if (res.data[0][i].tools == 6) {
  17587. this.noteCount = res.data[0][i].count;
  17588. } else if (res.data[0][i].tools == 7) {
  17589. this.mindNetWorkCount = res.data[0][i].count;
  17590. } else if (res.data[0][i].tools == 8) {
  17591. this.libraryCount = res.data[0][i].count;
  17592. } else if (res.data[0][i].tools == 16) {
  17593. this.workCount = res.data[0][i].count;
  17594. } else if (res.data[0][i].tools == 10) {
  17595. this.timeCount = res.data[0][i].count;
  17596. } else if (res.data[0][i].tools == 15) {
  17597. this.answerCount = res.data[0][i].count;
  17598. } else if (res.data[0][i].tools == 18) {
  17599. this.trainCount = res.data[0][i].count;
  17600. }
  17601. }
  17602. })
  17603. .catch((err) => {
  17604. console.error(err);
  17605. });
  17606. },
  17607. openTools(t, i, index, c, sName,id) {
  17608. var z = JSON.parse(c);
  17609. this.noteName = sName;
  17610. if (t == 4) {
  17611. this.radio = [];
  17612. this.isAnswer = false;
  17613. let b = z[0].anwer;
  17614. this.radio = b;
  17615. this.askJson = z[0].askJson;
  17616. this.isAnswer = true;
  17617. this.dialogVisible5 = true;
  17618. } else if (t == 45) {
  17619. this.radio = [];
  17620. this.isAnswer = false;
  17621. let b = z[0].anwer;
  17622. this.radio = b;
  17623. this.testJson = z[0].testJson;
  17624. this.isAnswer = true;
  17625. this.dialogVisibleChoice = true;
  17626. }else if(t == 69){
  17627. this.oldEnglishJson1 = {}
  17628. this.oldEnglishJson = {}
  17629. this.englishList1 = {}
  17630. this.newEngIndex = -1;
  17631. this.isNoUserid = false;
  17632. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17633. .toolChoose[i].englishList;
  17634. this.oldEnglishJson = z;
  17635. this.engWid = id;
  17636. this.newEnglishList = { engTitle:"",engText:"" }
  17637. this.newEnglishList1 = []
  17638. this.selectEngC(id,z);
  17639. }else if(t == 62){
  17640. this.videoType = 1;
  17641. this.videoJson = {};
  17642. this.videoJson = JSON.parse(c);
  17643. // this.videoJson =
  17644. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17645. // index
  17646. // ].toolChoose[i].videoJson;
  17647. this.dialogVisibleVideo = true;
  17648. //this.dialog
  17649. }
  17650. // else if (t == 15) {
  17651. // this.answerQ = "";
  17652. // this.questionAnswer = "";
  17653. // this.answerQ = z[0].answerTitle;
  17654. // this.questionAnswer = z[0].answer;
  17655. // this.answerDialogVisible = true;
  17656. // }
  17657. },
  17658. fastText(p, t) {
  17659. if (t == 1) {
  17660. this.commentText += p;
  17661. } else {
  17662. this.eScore.eBzText += p;
  17663. }
  17664. },
  17665. addTools(t, i, index) {
  17666. var a = 0;
  17667. // this.taskCount = index;
  17668. this.toolindex = i;
  17669. if (t == 1) {
  17670. if (this.wbCount > 0) {
  17671. this.updateCount(this.wbCount, t);
  17672. } else {
  17673. this.wbCount++;
  17674. a = this.wbCount;
  17675. this.toolsCount(a, t);
  17676. }
  17677. window.parent.postMessage(
  17678. {
  17679. tools: "1",
  17680. cid: this.id,
  17681. stage: this.courseType,
  17682. task: this.taskCount,
  17683. tool: i,
  17684. },
  17685. "*"
  17686. );
  17687. } else if (t == 2) {
  17688. if (this.wordCount > 0) {
  17689. this.updateCount(this.wordCount, t);
  17690. } else {
  17691. this.wordCount++;
  17692. a = this.wordCount;
  17693. this.toolsCount(a, t);
  17694. }
  17695. window.parent.postMessage({ tools: "2" }, "*");
  17696. } else if (t == 3) {
  17697. if (this.mindCount > 0) {
  17698. this.updateCount(this.mindCount, t);
  17699. } else {
  17700. this.mindCount++;
  17701. a = this.mindCount;
  17702. this.toolsCount(a, t);
  17703. }
  17704. window.parent.postMessage(
  17705. {
  17706. tools: "3",
  17707. cid: this.id,
  17708. stage: this.courseType,
  17709. task: this.taskCount,
  17710. tool: i,
  17711. },
  17712. "*"
  17713. );
  17714. } else if (t == 4) {
  17715. this.radio = [];
  17716. this.noteName = "";
  17717. this.isAnswer = false;
  17718. if (this.askCount > 0) {
  17719. this.updateCount(this.askCount, t);
  17720. } else {
  17721. this.askCount++;
  17722. a = this.askCount;
  17723. this.toolsCount(a, t);
  17724. }
  17725. if (!this.dialogVisible2) {
  17726. this.askJson.askJson =
  17727. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17728. index
  17729. ].toolChoose[i].askJson;
  17730. this.askJson.askTitle =
  17731. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17732. index
  17733. ].toolChoose[i].askTitle;
  17734. this.askJson.askCount =
  17735. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17736. index
  17737. ].toolChoose[i].askCount;
  17738. } else {
  17739. this.askJson.askJson = this.chapTools.askJson.askJson;
  17740. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17741. this.askJson.askCount = this.chapTools.askJson.askCount;
  17742. }
  17743. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17744. if (this.askJson.askJson[k].type == "2") {
  17745. this.radio.push([]);
  17746. } else {
  17747. this.radio.push("");
  17748. }
  17749. }
  17750. this.dialogVisible5 = true;
  17751. // window.parent.postMessage({ tools: "4" }, "*");
  17752. } else if (t == 45) {
  17753. this.noteName = "";
  17754. this.radio = [];
  17755. this.isAnswer = false;
  17756. if (this.askCount > 0) {
  17757. this.updateCount(this.askCount, t);
  17758. } else {
  17759. this.askCount++;
  17760. a = this.askCount;
  17761. this.toolsCount(a, t);
  17762. }
  17763. this.testJson =
  17764. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17765. index
  17766. ].toolChoose[i].testJson;
  17767. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17768. if (this.testJson.testJson[k].type == "2") {
  17769. this.radio.push([]);
  17770. } else {
  17771. this.radio.push("");
  17772. }
  17773. }
  17774. this.dialogVisibleChoice = true;
  17775. // window.parent.postMessage({ tools: "4" }, "*");
  17776. } else if (t == 5) {
  17777. if (this.scoreCount > 0) {
  17778. this.updateCount(this.scoreCount, t);
  17779. } else {
  17780. this.scoreCount++;
  17781. a = this.scoreCount;
  17782. this.toolsCount(a, t);
  17783. }
  17784. this.dialogVisible4 = true;
  17785. // window.parent.postMessage({ tools: "5" }, "*");
  17786. } else if (t == 6) {
  17787. if (this.noteCount > 0) {
  17788. this.updateCount(this.noteCount, t);
  17789. } else {
  17790. this.noteCount++;
  17791. a = this.noteCount;
  17792. this.toolsCount(a, t);
  17793. }
  17794. window.parent.postMessage(
  17795. {
  17796. tools: "6",
  17797. cid: this.id,
  17798. stage: this.courseType,
  17799. task: this.taskCount,
  17800. tool: i,
  17801. },
  17802. "*"
  17803. );
  17804. } else if (t == 7) {
  17805. if (this.mindNetWorkCount > 0) {
  17806. this.updateCount(this.mindNetWorkCount, t);
  17807. } else {
  17808. this.mindNetWorkCount++;
  17809. a = this.mindNetWorkCount;
  17810. this.toolsCount(a, t);
  17811. }
  17812. window.parent.postMessage(
  17813. {
  17814. tools: "7",
  17815. cid: this.id,
  17816. stage: this.courseType,
  17817. task: this.taskCount,
  17818. tool: i,
  17819. },
  17820. "*"
  17821. );
  17822. } else if (t == 16) {
  17823. if (this.workCount > 0) {
  17824. this.updateCount(this.workCount, t);
  17825. } else {
  17826. this.workCount++;
  17827. a = this.workCount;
  17828. this.toolsCount(a, t);
  17829. }
  17830. this.dialogVisible = true;
  17831. } else if (t == 50) {
  17832. if (this.tType == 2) {
  17833. this.$message.error("不支持学生使用");
  17834. return;
  17835. }
  17836. this.plworkFile = [];
  17837. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17838. if (!this.uploadCid) {
  17839. this.$message.error(
  17840. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17841. );
  17842. return;
  17843. }
  17844. // this.uploadCid =
  17845. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17846. // index
  17847. // ].toolChoose[i].uploadJson[0];
  17848. this.selectUploadStudent(2);
  17849. } else if (t == 8) {
  17850. if (this.libraryCount > 0) {
  17851. this.updateCount(this.libraryCount, t);
  17852. } else {
  17853. this.libraryCount++;
  17854. a = this.libraryCount;
  17855. this.toolsCount(a, t);
  17856. }
  17857. window.parent.postMessage({ tools: "8" }, "*");
  17858. } else if (t == 17) {
  17859. if (this.libraryCount > 0) {
  17860. this.updateCount(this.libraryCount, t);
  17861. } else {
  17862. this.libraryCount++;
  17863. a = this.libraryCount;
  17864. this.toolsCount(a, t);
  17865. }
  17866. window.parent.postMessage({ tools: "17" }, "*");
  17867. } else if (t == 18) {
  17868. if (this.trainCount > 0) {
  17869. this.updateCount(this.trainCount, t);
  17870. } else {
  17871. this.trainCount++;
  17872. a = this.trainCount;
  17873. this.toolsCount(a, t);
  17874. }
  17875. window.parent.postMessage({ tools: "18" }, "*");
  17876. } else if (t == 10) {
  17877. if (this.timeCount > 0) {
  17878. this.updateCount(this.timeCount, t);
  17879. } else {
  17880. this.timeCount++;
  17881. a = this.timeCount;
  17882. this.toolsCount(a, t);
  17883. }
  17884. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  17885. .taskJson[index].toolChoose[i].preTime
  17886. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17887. .toolChoose[i].preTime
  17888. : "";
  17889. this.timeDialogVisible = true;
  17890. } else if (t == 15) {
  17891. this.answerQ = "";
  17892. this.questionAnswer = "";
  17893. if (this.answerCount > 0) {
  17894. this.updateCount(this.answerCount, t);
  17895. } else {
  17896. this.answerCount++;
  17897. a = this.answerCount;
  17898. this.toolsCount(a, t);
  17899. }
  17900. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17901. .taskJson[index].toolChoose[i].answerQ
  17902. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17903. .toolChoose[i].answerQ
  17904. : "";
  17905. this.answerDialogVisible = true;
  17906. } else if (t == 21) {
  17907. window.parent.postMessage({ tools: "21" }, "*");
  17908. } else if (t == 22) {
  17909. window.parent.postMessage({ tools: "22" }, "*");
  17910. } else if (t == 23) {
  17911. window.parent.postMessage({ tools: "23" }, "*");
  17912. } else if (t == 24) {
  17913. window.parent.postMessage({ tools: "24" }, "*");
  17914. } else if (t == 25) {
  17915. window.parent.postMessage({ tools: "25" }, "*");
  17916. } else if (t == 31) {
  17917. window.parent.postMessage({ tools: "31" }, "*");
  17918. } else if (t == 28) {
  17919. window.parent.postMessage({ tools: "28" }, "*");
  17920. } else if (t == 37) {
  17921. window.parent.postMessage({ tools: "37" }, "*");
  17922. } else if (t == 38) {
  17923. window.parent.postMessage({ tools: "38" }, "*");
  17924. } else if (t == 39) {
  17925. window.parent.postMessage({ tools: "39" }, "*");
  17926. } else if (t == 32) {
  17927. window.parent.postMessage({ tools: "32" }, "*");
  17928. } else if (t == 66) {
  17929. window.parent.postMessage({ tools: "66" }, "*");
  17930. } else if (t == 67) {
  17931. window.parent.postMessage({ tools: "67" }, "*");
  17932. } else if (t == 68) {
  17933. window.parent.postMessage({ tools: "68" }, "*");
  17934. } else if (t == 57) {
  17935. // window.parent.postMessage({ tools: "57" }, "*");
  17936. window.parent.postMessage(
  17937. {
  17938. tools: "57u",
  17939. cid: this.id,
  17940. stage: this.courseType,
  17941. task: this.taskCount,
  17942. tool: i,
  17943. },
  17944. "*"
  17945. );
  17946. } else if (t == 58) {
  17947. window.parent.postMessage({ tools: "58" }, "*");
  17948. } else if (t == 59) {
  17949. window.parent.postMessage({ tools: "59" }, "*");
  17950. } else if (t == 60) {
  17951. window.parent.postMessage({ tools: "60" }, "*");
  17952. } else if (t == 61) {
  17953. window.parent.postMessage({ tools: "61" }, "*");
  17954. } else if (t == 63) {
  17955. window.parent.postMessage({ tools: "63" }, "*");
  17956. } else if (t == 71) {
  17957. window.parent.postMessage({ tools: "71" }, "*");
  17958. } else if (t == 69) {
  17959. if (this.worksStudent[i].length) {
  17960. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17961. if (this.userid == this.worksStudent[i][k].userid) {
  17962. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  17963. break;
  17964. } else {
  17965. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17966. }
  17967. }
  17968. } else {
  17969. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17970. }
  17971. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  17972. .taskJson[index].toolChoose[i].englishList
  17973. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17974. .toolChoose[i].englishList
  17975. : {};
  17976. this.englishToolIndex = i;
  17977. this.myAnList = this.myAnswerList1;
  17978. this.engDialogVisible = true;
  17979. } else if (t == 70) {
  17980. if (this.worksStudent[i].length) {
  17981. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17982. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  17983. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  17984. break;
  17985. } else {
  17986. this.englishVoiceJsonWork = [];
  17987. }
  17988. }
  17989. } else {
  17990. this.englishVoiceJsonWork = [];
  17991. }
  17992. let englishVoiceJson = {}
  17993. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17994. .taskJson[index].toolChoose[i].englishVoiceJson
  17995. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17996. .toolChoose[i].englishVoiceJson
  17997. : {};
  17998. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  17999. this.EnglishVoiceDialog = true;
  18000. } else if (t == 65) {
  18001. if (this.tType == 2) {
  18002. this.$message.error("不支持学生使用");
  18003. return;
  18004. }
  18005. this.uploadCid = this.tcid;
  18006. if (!this.uploadCid) {
  18007. this.$message.error(
  18008. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18009. );
  18010. return;
  18011. }
  18012. this.selectPickStudent();
  18013. } else if (t == 26) {
  18014. window.parent.postMessage(
  18015. {
  18016. tools: "26",
  18017. cid: this.id,
  18018. stage: this.courseType,
  18019. task: this.taskCount,
  18020. tool: i,
  18021. },
  18022. "*"
  18023. );
  18024. } else if (t == 40) {
  18025. if (this.evalCount > 0) {
  18026. this.updateCount(this.evalCount, t);
  18027. } else {
  18028. this.evalCount++;
  18029. a = this.evalCount;
  18030. this.toolsCount(a, t);
  18031. }
  18032. this.eScore = { eBzText: "", eStar: [] };
  18033. if (this.worksStudent[i].length) {
  18034. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18035. if (this.userid == this.worksStudent[i][k].userid) {
  18036. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18037. this.rateJson =
  18038. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18039. index
  18040. ].toolChoose[i].rateJson;
  18041. break;
  18042. } else {
  18043. this.rateJson =
  18044. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18045. index
  18046. ].toolChoose[i].rateJson;
  18047. }
  18048. }
  18049. } else {
  18050. this.rateJson =
  18051. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18052. index
  18053. ].toolChoose[i].rateJson;
  18054. }
  18055. this.isStar = false;
  18056. this.studentEvalDialogVisible = true;
  18057. } else if (t == 41) {
  18058. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18059. .taskJson[index].toolChoose[i].selectJson
  18060. ? JSON.parse(
  18061. JSON.stringify(
  18062. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18063. index
  18064. ].toolChoose[i].selectJson
  18065. )
  18066. )
  18067. : { url: "", select: [], answer: [] };
  18068. if (this.worksStudent[i].length) {
  18069. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18070. if (this.userid == this.worksStudent[i][k].userid) {
  18071. var a = this.worksStudent[i][k].works.split(",");
  18072. for (var ki = 0; ki < a.length; ki++) {
  18073. a[ki] = parseInt(a[ki]);
  18074. }
  18075. this.selectAnswer = {
  18076. answer: a,
  18077. stu: this.worksStudent[i][k].sName,
  18078. };
  18079. break;
  18080. } else {
  18081. this.selectAnswer = { answer: [], stu: "" };
  18082. }
  18083. }
  18084. } else {
  18085. this.selectAnswer = { answer: [], stu: "" };
  18086. }
  18087. this.isSelect = false;
  18088. this.dialogVisibleSelect = true;
  18089. } else if (t == 44) {
  18090. window.parent.postMessage({ tools: "44" }, "*");
  18091. } else if (t == 47) {
  18092. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18093. .taskJson[index].toolChoose[i].sentenceList
  18094. ? JSON.parse(
  18095. JSON.stringify(
  18096. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18097. index
  18098. ].toolChoose[i].sentenceList
  18099. )
  18100. )
  18101. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18102. for (var q = 0; q < this.sentenceList.length; q++) {
  18103. this.sentenceList[q].chooseSenList = [];
  18104. this.sentenceList[q].addChangeSen = [];
  18105. this.sentenceList[q].addChangeSen = JSON.parse(
  18106. JSON.stringify(this.sentenceList[q].addSentence)
  18107. );
  18108. this.sentenceList[q].chooseSenList.length =
  18109. this.sentenceList[q].rightAnswer.length;
  18110. }
  18111. this.dialogVisibleSentence = true;
  18112. } else if (t == 48) {
  18113. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18114. .taskJson[index].toolChoose[i].tableJson
  18115. ? JSON.parse(
  18116. JSON.stringify(
  18117. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18118. index
  18119. ].toolChoose[i].tableJson
  18120. )
  18121. )
  18122. : { text: "" };
  18123. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18124. if (this.worksStudent[i].length) {
  18125. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18126. if (this.userid == this.worksStudent[i][k].userid) {
  18127. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18128. break;
  18129. }
  18130. }
  18131. }
  18132. this.dialogVisibleTable = true;
  18133. } else if (t == 52) {
  18134. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18135. .taskJson[index].toolChoose[i].wordJson
  18136. ? JSON.parse(
  18137. JSON.stringify(
  18138. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18139. index
  18140. ].toolChoose[i].wordJson
  18141. )
  18142. )
  18143. : { text: "" };
  18144. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18145. if (this.worksStudent[i].length) {
  18146. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18147. if (this.userid == this.worksStudent[i][k].userid) {
  18148. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18149. break;
  18150. }
  18151. }
  18152. }
  18153. this.dialogVisibleWord = true;
  18154. } else if (t == 49) {
  18155. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18156. return
  18157. }
  18158. this.groupJson =
  18159. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18160. index
  18161. ].toolChoose[i].groupJson;
  18162. this.islock = this.groupJson.islock == 1 ? true : false;
  18163. this.dialogVisibleGroup = true;
  18164. } else if (t == 62) {
  18165. this.videoType = 0;
  18166. this.videoJson = {};
  18167. this.videoJson =
  18168. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18169. index
  18170. ].toolChoose[i].videoJson;
  18171. this.dialogVisibleVideo = true;
  18172. }
  18173. },
  18174. teacherWorkSubmit(t, i, index, s) {
  18175. this.sStudent = s;
  18176. this.toolindex = i;
  18177. this.sTool = t;
  18178. if (this.tType !== "1" && this.tType !== "4") {
  18179. return;
  18180. }
  18181. if (t == 16 || t == 32 || t == 50) {
  18182. this.dialogVisibleWorks = true;
  18183. } else if (t == 15) {
  18184. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18185. .taskJson[index].toolChoose[i].answerQ
  18186. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18187. .toolChoose[i].answerQ
  18188. : "";
  18189. this.questionAnswer = "";
  18190. this.answerDialogVisibleTeacher = true; //问答
  18191. } else if (t == 52) {
  18192. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18193. .taskJson[index].toolChoose[i].wordJson
  18194. ? JSON.parse(
  18195. JSON.stringify(
  18196. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18197. index
  18198. ].toolChoose[i].wordJson
  18199. )
  18200. )
  18201. : { text: "" };
  18202. if (this.worksStudent[i].length) {
  18203. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18204. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18205. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18206. break;
  18207. }
  18208. }
  18209. }
  18210. this.dialogVisibleWordTeacher = true; //文档
  18211. } else if (t == 4) {
  18212. this.radio = [];
  18213. this.noteName = "";
  18214. this.isAnswer = false;
  18215. if (this.askCount > 0) {
  18216. this.updateCount(this.askCount, t);
  18217. } else {
  18218. this.askCount++;
  18219. a = this.askCount;
  18220. this.toolsCount(a, t);
  18221. }
  18222. if (!this.dialogVisible2) {
  18223. this.askJson.askJson =
  18224. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18225. index
  18226. ].toolChoose[i].askJson;
  18227. this.askJson.askTitle =
  18228. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18229. index
  18230. ].toolChoose[i].askTitle;
  18231. this.askJson.askCount =
  18232. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18233. index
  18234. ].toolChoose[i].askCount;
  18235. } else {
  18236. this.askJson.askJson = this.chapTools.askJson.askJson;
  18237. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18238. this.askJson.askCount = this.chapTools.askJson.askCount;
  18239. }
  18240. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18241. if (this.askJson.askJson[k].type == "2") {
  18242. this.radio.push([]);
  18243. } else {
  18244. this.radio.push("");
  18245. }
  18246. }
  18247. this.dialogVisible5Teacher = true;
  18248. } else if (t == 45) {
  18249. this.noteName = "";
  18250. this.radio = [];
  18251. this.isAnswer = false;
  18252. if (this.askCount > 0) {
  18253. this.updateCount(this.askCount, t);
  18254. } else {
  18255. this.askCount++;
  18256. a = this.askCount;
  18257. this.toolsCount(a, t);
  18258. }
  18259. this.testJson =
  18260. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18261. index
  18262. ].toolChoose[i].testJson;
  18263. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18264. if (this.testJson.testJson[k].type == "2") {
  18265. this.radio.push([]);
  18266. } else {
  18267. this.radio.push("");
  18268. }
  18269. }
  18270. this.dialogVisibleChoiceTeacher = true;
  18271. } else if (t == 41) {
  18272. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18273. .taskJson[index].toolChoose[i].selectJson
  18274. ? JSON.parse(
  18275. JSON.stringify(
  18276. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18277. index
  18278. ].toolChoose[i].selectJson
  18279. )
  18280. )
  18281. : { url: "", select: [], answer: [] };
  18282. if (this.worksStudent[i].length) {
  18283. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18284. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18285. var a = this.worksStudent[i][k].works.split(",");
  18286. for (var ki = 0; ki < a.length; ki++) {
  18287. a[ki] = parseInt(a[ki]);
  18288. }
  18289. this.selectAnswer = {
  18290. answer: a,
  18291. stu: this.worksStudent[i][k].sName,
  18292. };
  18293. break;
  18294. } else {
  18295. this.selectAnswer = { answer: [], stu: "" };
  18296. }
  18297. }
  18298. } else {
  18299. this.selectAnswer = { answer: [], stu: "" };
  18300. }
  18301. this.isSelect = false;
  18302. this.dialogVisibleSelectTeacher = true;
  18303. } else if (t == 47) {
  18304. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18305. .taskJson[index].toolChoose[i].sentenceList
  18306. ? JSON.parse(
  18307. JSON.stringify(
  18308. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18309. index
  18310. ].toolChoose[i].sentenceList
  18311. )
  18312. )
  18313. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18314. for (var q = 0; q < this.sentenceList.length; q++) {
  18315. this.sentenceList[q].chooseSenList = [];
  18316. this.sentenceList[q].addChangeSen = [];
  18317. this.sentenceList[q].addChangeSen = JSON.parse(
  18318. JSON.stringify(this.sentenceList[q].addSentence)
  18319. );
  18320. this.sentenceList[q].chooseSenList.length =
  18321. this.sentenceList[q].rightAnswer.length;
  18322. }
  18323. this.dialogVisibleSentenceTeacher = true;
  18324. } else if (t == 48) {
  18325. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18326. .taskJson[index].toolChoose[i].tableJson
  18327. ? JSON.parse(
  18328. JSON.stringify(
  18329. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18330. index
  18331. ].toolChoose[i].tableJson
  18332. )
  18333. )
  18334. : { text: "" };
  18335. if (this.worksStudent[i].length) {
  18336. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18337. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18338. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18339. break;
  18340. }
  18341. }
  18342. }
  18343. this.dialogVisibleTableTeacher = true;
  18344. } else if (t == 40) {
  18345. if (this.evalCount > 0) {
  18346. this.updateCount(this.evalCount, t);
  18347. } else {
  18348. this.evalCount++;
  18349. a = this.evalCount;
  18350. this.toolsCount(a, t);
  18351. }
  18352. this.eScore = { eBzText: "", eStar: [] };
  18353. if (this.worksStudent[i].length) {
  18354. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18355. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18356. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18357. this.rateJson =
  18358. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18359. index
  18360. ].toolChoose[i].rateJson;
  18361. break;
  18362. } else {
  18363. this.rateJson =
  18364. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18365. index
  18366. ].toolChoose[i].rateJson;
  18367. }
  18368. }
  18369. } else {
  18370. this.rateJson =
  18371. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18372. index
  18373. ].toolChoose[i].rateJson;
  18374. }
  18375. this.isStar = false;
  18376. this.studentEvalDialogVisibleTeacher = true;
  18377. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18378. window.parent.postMessage(
  18379. {
  18380. tools: t + "teacher",
  18381. cid: this.id,
  18382. stage: this.courseType,
  18383. task: this.taskCount,
  18384. tool: i,
  18385. student: this.sStudent,
  18386. },
  18387. "*"
  18388. );
  18389. }
  18390. },
  18391. openCocoPi(tool, i, uid, uname) {
  18392. let student = {
  18393. userid: uid,
  18394. student: uname,
  18395. };
  18396. if (tool == 57) {
  18397. window.parent.postMessage(
  18398. {
  18399. tools: tool + "teacher",
  18400. cid: this.id,
  18401. stage: this.courseType,
  18402. task: this.taskCount,
  18403. tool: i,
  18404. student: student,
  18405. },
  18406. "*"
  18407. );
  18408. }
  18409. },
  18410. setRightAnswer(s, i, j) {
  18411. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18412. if (
  18413. this.sentenceList[i].chooseSenList[q] == undefined ||
  18414. this.sentenceList[i].chooseSenList[q] == ""
  18415. ) {
  18416. this.sentenceList[i].chooseSenList[q] = s;
  18417. this.sentenceList[i].addChangeSen[j] = "";
  18418. break;
  18419. }
  18420. }
  18421. this.$forceUpdate();
  18422. },
  18423. returnCard(r, i, j) {
  18424. var a = this.sentenceList[i].addSentence.indexOf(r);
  18425. this.sentenceList[i].chooseSenList[j] = "";
  18426. this.sentenceList[i].addChangeSen[a] = r;
  18427. this.$forceUpdate();
  18428. },
  18429. // addSentenceTool() {
  18430. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18431. // this.taskCount
  18432. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18433. // this.sentenceList = [
  18434. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18435. // ];
  18436. // this.dialogVisibleSentence = false;
  18437. // },
  18438. toolsCount(a, t) {
  18439. let params = {
  18440. cid: this.id,
  18441. chid: this.courseType,
  18442. uid: this.userid,
  18443. tid: t,
  18444. count: a,
  18445. };
  18446. this.ajax
  18447. .get(this.$store.state.api + "insertToolsCount", params)
  18448. .then((res) => {
  18449. this.selectCount();
  18450. })
  18451. .catch((err) => {
  18452. console.error(err);
  18453. });
  18454. },
  18455. updateCount(c, t) {
  18456. c++;
  18457. let params = {
  18458. cid: this.id,
  18459. chid: this.courseType,
  18460. uid: this.userid,
  18461. tid: t,
  18462. count: c,
  18463. };
  18464. this.ajax
  18465. .get(this.$store.state.api + "updateToolsCount", params)
  18466. .then((res) => {
  18467. this.selectCount();
  18468. })
  18469. .catch((err) => {
  18470. console.error(err);
  18471. });
  18472. },
  18473. checkEva() {
  18474. if (this.evalua != "") {
  18475. for (var i = 0; i < this.evaJuri.length; i++) {
  18476. if (this.evalua == this.evaJuri[i].id) {
  18477. this.eTitle = this.evaJuri[i].title;
  18478. this.eJson = JSON.parse(this.evaJuri[i].content);
  18479. }
  18480. }
  18481. this.$forceUpdate();
  18482. setTimeout(() => {
  18483. this.setMindData();
  18484. }, 0);
  18485. }
  18486. },
  18487. selectEva() {
  18488. let params = {
  18489. oid: this.oid,
  18490. };
  18491. this.ajax
  18492. .get(this.$store.state.api + "selectAllEvaluation", params)
  18493. .then((res) => {
  18494. this.evaJuri = res.data[0];
  18495. })
  18496. .catch((err) => {
  18497. console.error(err);
  18498. });
  18499. },
  18500. setMindData() {
  18501. this.data.data = [];
  18502. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18503. let _eJson = Object.keys(this.eJson);
  18504. let _e = this.eJson;
  18505. for (let i = 0; i < _eJson.length; i++) {
  18506. let element = _e[_eJson[i]];
  18507. this.data.data.push({
  18508. id: element.id,
  18509. parentid: "root",
  18510. topic: element.name,
  18511. });
  18512. let _eJsonc = Object.keys(element.child);
  18513. let _e2 = element.child;
  18514. for (let j = 0; j < _eJsonc.length; j++) {
  18515. let _ec = _e2[_eJsonc[j]];
  18516. this.data.data.push({
  18517. id: _ec.id,
  18518. parentid: element.id,
  18519. topic: _ec.name,
  18520. });
  18521. let _eJsonz = Object.keys(_ec.child);
  18522. let _e3 = _ec.child;
  18523. for (let z = 0; z < _eJsonz.length; z++) {
  18524. let _ez = _e3[_eJsonz[z]];
  18525. this.data.data.push({
  18526. id: _ez.id,
  18527. parentid: _ec.id,
  18528. topic: _ez.name,
  18529. });
  18530. }
  18531. }
  18532. }
  18533. this.$forceUpdate();
  18534. },
  18535. checkFileFull(type, url) {
  18536. this.fullDialogVisible = true;
  18537. this.fulltype = type;
  18538. this.fullUrl = url;
  18539. },
  18540. async checkFileFull1(t, f) {
  18541. this.fullDialogVisible = true;
  18542. if (t == 6) {
  18543. this.fulltype = 1;
  18544. this.fullUrl = JSON.parse(JSON.stringify(f));
  18545. } else if (t == 8) {
  18546. this.fulltype = 2;
  18547. this.fullUrl = f.url;
  18548. } else if (
  18549. t == 3 &&
  18550. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18551. "PDF"
  18552. ) {
  18553. this.fulltype = 3;
  18554. this.fullUrl = f.url;
  18555. } else if (t == 3) {
  18556. this.fulltype = 2;
  18557. let _uuurl = await this.checkLink(f.url);
  18558. this.fullUrl =
  18559. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18560. }
  18561. },
  18562. openSname(n, id, i, uid) {
  18563. this.snameWid = id;
  18564. this.worksSName = n;
  18565. this.worksSid = uid == n ? "" : uid;
  18566. this.toolindex = i;
  18567. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18568. if (!this.uploadCid) {
  18569. this.$message.error(
  18570. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18571. );
  18572. return;
  18573. }
  18574. this.selectUploadStudent(1);
  18575. },
  18576. updateName() {
  18577. let params = {
  18578. n: this.worksSName,
  18579. cid: this.snameWid,
  18580. };
  18581. this.ajax
  18582. .get(this.$store.state.api + "updateCourseWorksName", params)
  18583. .then((res) => {
  18584. this.$message({
  18585. message: "修改成功",
  18586. type: "success",
  18587. });
  18588. this.dialogVisibleSname = false;
  18589. this.getCourseDetail(2);
  18590. this.snameWid = "";
  18591. this.worksSName = "";
  18592. })
  18593. .catch((err) => {
  18594. console.error(err);
  18595. });
  18596. },
  18597. downloadFile2(f) {
  18598. // const loading = this.$loading.service({
  18599. // background: "rgba(255, 255, 255, 0.7)",
  18600. // target: document.body,
  18601. // text: "文件加载中...",
  18602. // });
  18603. // let url2 = f.url;
  18604. // let _url2 = "";
  18605. // if (
  18606. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18607. // ) {
  18608. // _url2 = url2.split(
  18609. // "https://view.officeapps.live.com/op/view.aspx?src="
  18610. // )[1];
  18611. // } else {
  18612. // _url2 = url2;
  18613. // }
  18614. // let params = {
  18615. // url: _url2,
  18616. // name: f.name,
  18617. // };
  18618. // this.ajax
  18619. // .get(this.$store.state.api + "download", params)
  18620. // .then((res) => {
  18621. // loading.close();
  18622. // let content = res.data.data.data;
  18623. // let ab = new ArrayBuffer(content.length);
  18624. // let view = new Uint8Array(ab);
  18625. // for (var i = 0; i < content.length; ++i) {
  18626. // view[i] = content[i];
  18627. // }
  18628. // let elink = document.createElement("a");
  18629. // elink.download = f.name;
  18630. // elink.style.display = "none";
  18631. // let blob = new Blob([ab], {
  18632. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18633. // });
  18634. // elink.href = URL.createObjectURL(blob);
  18635. // document.body.appendChild(elink);
  18636. // elink.click();
  18637. // document.body.removeChild(elink);
  18638. // })
  18639. // .catch((err) => {
  18640. // loading.close();
  18641. // console.error(err);
  18642. // });
  18643. var credentials = {
  18644. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18645. secretAccessKey: "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",
  18646. }; //秘钥形式的登录上传
  18647. window.AWS.config.update(credentials);
  18648. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18649. let url2 = f.url;
  18650. let _url2 = "";
  18651. if (
  18652. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18653. ) {
  18654. _url2 = url2.split(
  18655. "https://view.officeapps.live.com/op/view.aspx?src="
  18656. )[1];
  18657. } else {
  18658. _url2 = url2;
  18659. }
  18660. let _this = this;
  18661. _this.downLoading = true
  18662. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18663. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18664. var params = {
  18665. Bucket: "ccrb",
  18666. Key: name
  18667. };
  18668. s3.getObject(params, function (err, data) {
  18669. _this.downLoading = false
  18670. if (err) console.log(err, err.stack); // an error occurred
  18671. else {
  18672. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18673. let a = document.createElement("a");
  18674. a.name = f.name;
  18675. a.href = url;
  18676. a.download = f.name;
  18677. a.click();
  18678. console.log(data);
  18679. } // sxuccessful response
  18680. });
  18681. return;
  18682. let url = f.url;
  18683. let _url = "";
  18684. if (
  18685. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18686. ) {
  18687. _url = url.split(
  18688. "https://view.officeapps.live.com/op/view.aspx?src="
  18689. )[1];
  18690. } else {
  18691. _url = url;
  18692. }
  18693. _this.downLoading = true
  18694. let x = new XMLHttpRequest();
  18695. x.open("GET", _url, true);
  18696. x.responseType = "blob";
  18697. x.onload = function () {
  18698. _this.downLoading = false
  18699. let url = window.URL.createObjectURL(new Blob([x.response]));
  18700. let a = document.createElement("a");
  18701. a.name = f.name;
  18702. a.href = url;
  18703. a.download = f.name;
  18704. a.click();
  18705. };
  18706. x.send();
  18707. },
  18708. downloadFile(url) {
  18709. var credentials = {
  18710. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18711. secretAccessKey: "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",
  18712. }; //秘钥形式的登录上传
  18713. window.AWS.config.update(credentials);
  18714. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18715. let url2 = url;
  18716. let _url2 = "";
  18717. if (
  18718. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18719. ) {
  18720. _url2 = url2.split(
  18721. "https://view.officeapps.live.com/op/view.aspx?src="
  18722. )[1];
  18723. } else {
  18724. _url2 = url2;
  18725. }
  18726. const loading2 = this.$loading.service({
  18727. background: "rgba(255, 255, 255, 0.7)",
  18728. target: document.body,
  18729. text: "文件加载中...",
  18730. });
  18731. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18732. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18733. var params = {
  18734. Bucket: "ccrb",
  18735. Key: name
  18736. };
  18737. s3.getObject(params, function (err, data) {
  18738. loading2.close();
  18739. if (err) console.log(err, err.stack); // an error occurred
  18740. else {
  18741. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18742. let a = document.createElement("a");
  18743. a.name = name;
  18744. a.href = url;
  18745. a.download = name;
  18746. a.click();
  18747. console.log(data);
  18748. } // sxuccessful response
  18749. });
  18750. return;
  18751. let _this = this;
  18752. let _url = "";
  18753. if (
  18754. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18755. ) {
  18756. _url = url.split(
  18757. "https://view.officeapps.live.com/op/view.aspx?src="
  18758. )[1];
  18759. } else {
  18760. _url = url;
  18761. }
  18762. const x = new XMLHttpRequest();
  18763. x.open("GET", _url, true);
  18764. x.responseType = "blob";
  18765. // this.downLoading = true
  18766. const loading = _this.$loading.service({
  18767. background: "rgba(255, 255, 255, 0.7)",
  18768. target: document.body,
  18769. text: "文件加载中...",
  18770. });
  18771. // _this.$message.success("文件下载中...");
  18772. x.onload = function (e) {
  18773. loading.close();
  18774. let content = x.response;
  18775. let elink = document.createElement("a");
  18776. elink.download = decodeURI(
  18777. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  18778. );
  18779. elink.style.display = "none";
  18780. let blob = new Blob([content]);
  18781. elink.href = URL.createObjectURL(blob);
  18782. document.body.appendChild(elink);
  18783. elink.click();
  18784. document.body.removeChild(elink);
  18785. };
  18786. x.send();
  18787. },
  18788. openLine(url) {
  18789. window.open(url);
  18790. },
  18791. resize() {
  18792. if (document.getElementsByClassName("box_course").length) {
  18793. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18794. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18795. if (this.showType == 2 || this.showType == 3) {
  18796. document.getElementsByClassName("navBox")[0].style.height =
  18797. a - 40 + 46 + "px";
  18798. } else {
  18799. document.getElementsByClassName("navBox")[0].style.height =
  18800. a - 40 + "px";
  18801. }
  18802. }
  18803. this.Stbodywidth =
  18804. document.getElementsByClassName("student_body").length &&
  18805. document.getElementsByClassName("student_body")[0].offsetWidth;
  18806. },
  18807. closeDraw() {
  18808. this.bg = null;
  18809. this.drawShow = false;
  18810. },
  18811. showPicturePaint(url) {
  18812. let params = {
  18813. img: url,
  18814. };
  18815. this.ajax
  18816. .get(this.$store.state.api + "imgToBase64", params)
  18817. .then((res) => {
  18818. this.drawShow = true;
  18819. this.bg = res.data[0].img;
  18820. })
  18821. .catch((err) => {
  18822. console.error(err);
  18823. });
  18824. },
  18825. addImgDraw(base64) {
  18826. let file = { name: "批注图.png" };
  18827. let img = this.dataUrlToFile(base64, file);
  18828. this.beforeUpload1(img, 5);
  18829. },
  18830. addImgDrawImG(url) {
  18831. // console.log(url);
  18832. let params = [
  18833. {
  18834. wid: this.commentDetail.wid,
  18835. img: url,
  18836. },
  18837. ];
  18838. this.ajax
  18839. .post(this.$store.state.api + "updateCourseWorks", params)
  18840. .then((res) => {
  18841. this.$message({
  18842. message: "提交成功",
  18843. type: "success",
  18844. });
  18845. this.drawShow = false;
  18846. this.bg = "";
  18847. this.selectSWorks();
  18848. this.selectStudent();
  18849. })
  18850. .catch((err) => {
  18851. this.$message.error("提交失败");
  18852. console.error(err);
  18853. });
  18854. },
  18855. deletePicturePaint() {
  18856. this.$confirm("确定删除此批注吗?", "提示", {
  18857. confirmButtonText: "确定",
  18858. cancelButtonText: "取消",
  18859. type: "warning",
  18860. })
  18861. .then(() => {
  18862. let params = [
  18863. {
  18864. wid: this.commentDetail.wid,
  18865. img: "",
  18866. },
  18867. ];
  18868. this.ajax
  18869. .post(this.$store.state.api + "updateCourseWorks", params)
  18870. .then((res) => {
  18871. this.$message({
  18872. message: "删除成功",
  18873. type: "success",
  18874. });
  18875. this.selectSWorks();
  18876. this.selectStudent();
  18877. })
  18878. .catch((err) => {
  18879. this.$message.error("删除失败");
  18880. console.error(err);
  18881. });
  18882. })
  18883. .catch(() => {});
  18884. },
  18885. getAudioVideo(constraintsData) {
  18886. if (navigator.mediaDevices === undefined) {
  18887. navigator.mediaDevices = {};
  18888. }
  18889. if (navigator.mediaDevices.getUserMedia === undefined) {
  18890. navigator.mediaDevices.getUserMedia = function (constraints) {
  18891. // 首先,如果有getUserMedia的话,就获得它
  18892. var getUserMedia =
  18893. navigator.getUserMedia ||
  18894. navigator.webkitGetUserMedia ||
  18895. navigator.mozGetUserMedia ||
  18896. navigator.msGetUserMedia;
  18897. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  18898. if (!getUserMedia) {
  18899. return Promise.reject({ code: 404 });
  18900. }
  18901. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  18902. return new Promise(function (resolve, reject) {
  18903. getUserMedia.call(navigator, constraints, resolve, reject);
  18904. });
  18905. };
  18906. }
  18907. return navigator.mediaDevices.getUserMedia(constraintsData);
  18908. },
  18909. /**
  18910. * 开始录制
  18911. */
  18912. startRecording(callback) {
  18913. let _function = (screenStream) => {
  18914. this.addStreamStopListener(screenStream, () => {
  18915. console.log("流停止监听");
  18916. this.stopRecording();
  18917. this.$emit("streamStop", {});
  18918. // this.stopRecording();
  18919. });
  18920. var options = {
  18921. type: "video",
  18922. mimeType: "video/webm",
  18923. disableLogs: false,
  18924. getNativeBlob: false, // enable it for longer recordings
  18925. ignoreMutedMedia: false,
  18926. };
  18927. // this.video.srcObject = screenStream;
  18928. this.recorder = RecordRTC(screenStream, options);
  18929. this.recorder.startRecording();
  18930. this.recorder.screen = screenStream;
  18931. this.videoStart = true;
  18932. // callback(true);
  18933. };
  18934. this.getAudioVideo({ audio: true })
  18935. .then((res) => {
  18936. this.captureScreen(_function, true);
  18937. console.log("已点击允许,开启成功");
  18938. })
  18939. .catch((err) => {
  18940. // console.log('浏览器不支持,请更换浏览器')
  18941. // } else {
  18942. this.captureScreen(_function, false);
  18943. console.log("请检查是否存在麦克风");
  18944. });
  18945. },
  18946. /**
  18947. * 停止录制
  18948. */
  18949. stopRecording(callback) {
  18950. this.recorder.stopRecording(() => {
  18951. // this.video.src = this.video.srcObject = null;
  18952. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  18953. const url = URL.createObjectURL(this.recorder.getBlob());
  18954. const a = document.createElement("a"); //this.fileName+
  18955. let videoFile = new File(
  18956. [this.recorder.getBlob()],
  18957. this.courseDetail.title + "录屏.mp4",
  18958. {
  18959. type: "video/mp4",
  18960. }
  18961. );
  18962. let downloadUrl = URL.createObjectURL(videoFile);
  18963. document.body.appendChild(a);
  18964. a.style.display = "none";
  18965. a.href = url;
  18966. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  18967. a.click();
  18968. this.recorder.screen.stop();
  18969. this.recorder.destroy();
  18970. this.recorder = null;
  18971. this.videoStart = false;
  18972. // callback(false);
  18973. });
  18974. },
  18975. //初始化
  18976. captureScreen(callback, type) {
  18977. if (navigator.getDisplayMedia) {
  18978. //录制结束,文件下载
  18979. navigator
  18980. .getDisplayMedia({
  18981. video: true,
  18982. })
  18983. .then((screenStream) => {
  18984. if (type) {
  18985. navigator.mediaDevices
  18986. .getUserMedia({ audio: true })
  18987. .then((mic) => {
  18988. screenStream.addTrack(mic.getTracks()[0]);
  18989. callback(screenStream);
  18990. });
  18991. } else {
  18992. callback(screenStream);
  18993. }
  18994. })
  18995. .catch(function (error) {
  18996. console.log("error", error);
  18997. });
  18998. } else if (navigator.mediaDevices.getDisplayMedia) {
  18999. navigator.mediaDevices
  19000. .getDisplayMedia({
  19001. video: true,
  19002. })
  19003. .then((screenStream) => {
  19004. if (type) {
  19005. navigator.mediaDevices
  19006. .getUserMedia({ audio: true })
  19007. .then((mic) => {
  19008. screenStream.addTrack(mic.getTracks()[0]);
  19009. callback(screenStream);
  19010. });
  19011. } else {
  19012. callback(screenStream);
  19013. }
  19014. })
  19015. .catch(function (error) {
  19016. console.log("error", error);
  19017. });
  19018. } else {
  19019. var error = "getDisplayMedia API are not supported in this browser.";
  19020. console.log("error", error);
  19021. alert(error);
  19022. }
  19023. },
  19024. //流监听
  19025. addStreamStopListener(stream, callback) {
  19026. stream.addEventListener(
  19027. "ended",
  19028. function () {
  19029. callback();
  19030. callback = function () {};
  19031. },
  19032. false
  19033. );
  19034. stream.addEventListener(
  19035. "inactive",
  19036. function () {
  19037. callback();
  19038. callback = function () {};
  19039. },
  19040. false
  19041. );
  19042. stream.getTracks().forEach(function (track) {
  19043. track.addEventListener(
  19044. "ended",
  19045. function () {
  19046. callback();
  19047. callback = function () {};
  19048. },
  19049. false
  19050. );
  19051. track.addEventListener(
  19052. "inactive",
  19053. function () {
  19054. callback();
  19055. callback = function () {};
  19056. },
  19057. false
  19058. );
  19059. });
  19060. },
  19061. updateGroup() {
  19062. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19063. this.dialogVisibleGroup2 = true;
  19064. },
  19065. numberPan() {
  19066. if (
  19067. /[^\d]/.test(this.groupJson.number) ||
  19068. this.groupJson.number < 2 ||
  19069. this.groupJson.number > 10
  19070. ) {
  19071. this.$message.error("请输入2-10的数字");
  19072. this.groupJson.number = "";
  19073. }
  19074. },
  19075. updateGroupJson() {
  19076. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19077. if (
  19078. this.groupStudentUid[this.toolindex][i].length >
  19079. this.groupJson2.number
  19080. ) {
  19081. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19082. return;
  19083. }
  19084. }
  19085. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19086. this.islock = this.groupJson.islock == 1 ? true : false;
  19087. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19088. this.taskCount
  19089. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19090. let params = [
  19091. {
  19092. cid: this.id,
  19093. chapters: JSON.stringify(this.chapInfoList),
  19094. uid: this.userid,
  19095. unitIndex: this.courseType,
  19096. },
  19097. ];
  19098. this.ajax
  19099. .post(this.$store.state.api + "updateWorkNew4", params)
  19100. .then((res) => {
  19101. this.$message.success("设置成功");
  19102. this.getCourseDetail(2);
  19103. this.dialogVisibleGroup2 = false;
  19104. this.groupJson2 = {};
  19105. this.$forceUpdate();
  19106. })
  19107. .catch((err) => {
  19108. this.$message.error("网络不佳");
  19109. console.error(err);
  19110. });
  19111. },
  19112. lockChair() {
  19113. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19114. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19115. this.updateGroupJson();
  19116. },
  19117. selectGroup(index) {
  19118. this.getCourseDetail(2, index);
  19119. },
  19120. joinGroup(index) {
  19121. if (this.groupJson.islock == 2) {
  19122. this.$message.error("位置已被锁定,无法加入");
  19123. return;
  19124. }
  19125. if (
  19126. this.groupStudent[this.toolindex][index].length >
  19127. this.groupJson.number ||
  19128. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19129. ) {
  19130. this.$message.error("位置已满,无法加入");
  19131. return;
  19132. }
  19133. let params = [
  19134. {
  19135. cid: this.id,
  19136. stage: this.courseType,
  19137. task: this.taskCount,
  19138. tool: this.toolindex,
  19139. g: index,
  19140. uid: this.userid,
  19141. },
  19142. ];
  19143. this.ajax
  19144. .post(this.$store.state.api + "joinGroup", params)
  19145. .then((res) => {
  19146. this.$message.success("加入成功");
  19147. this.getCourseDetail(2);
  19148. })
  19149. .catch((err) => {
  19150. this.$message.error("网络不佳");
  19151. console.error(err);
  19152. });
  19153. },
  19154. exitGroup(id) {
  19155. if (this.groupJson.islock == 2) {
  19156. this.$message.error("位置已被锁定,无法退出");
  19157. return;
  19158. }
  19159. let params = [
  19160. {
  19161. gid: id,
  19162. },
  19163. ];
  19164. this.ajax
  19165. .post(this.$store.state.api + "exitGroup", params)
  19166. .then((res) => {
  19167. this.$message.success("退出成功");
  19168. this.getCourseDetail(2);
  19169. })
  19170. .catch((err) => {
  19171. this.$message.error("网络不佳");
  19172. console.error(err);
  19173. });
  19174. },
  19175. groupUpload(index, task, gindex) {
  19176. this.taskCount = task;
  19177. this.toolindex = index;
  19178. this.groupIndex = gindex;
  19179. this.dialogVisibleGroupWork = true;
  19180. },
  19181. updateGroupChair(user) {
  19182. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19183. el.label = index;
  19184. return index != user.group;
  19185. });
  19186. this.updateGroupUser = user;
  19187. this.dialogVisibleUpdateGroup = true;
  19188. },
  19189. updateChair() {
  19190. if (
  19191. this.groupStudent[this.toolindex][this.checkChair].length >
  19192. this.groupJson.number ||
  19193. this.groupStudent[this.toolindex][this.checkChair].length ==
  19194. this.groupJson.number
  19195. ) {
  19196. this.$message.error("位置已满,无法加入");
  19197. return;
  19198. }
  19199. let params = [
  19200. {
  19201. cid: this.id,
  19202. stage: this.courseType,
  19203. task: this.taskCount,
  19204. tool: this.toolindex,
  19205. g: this.checkChair,
  19206. uid: this.updateGroupUser.userid,
  19207. },
  19208. ];
  19209. this.ajax
  19210. .post(this.$store.state.api + "joinGroup", params)
  19211. .then((res) => {
  19212. this.$message.success("修改成功");
  19213. this.updateGroupUser = {};
  19214. this.checkChair = "";
  19215. this.updateGroupArray = {};
  19216. this.dialogVisibleUpdateGroup = false;
  19217. this.getCourseDetail(2);
  19218. })
  19219. .catch((err) => {
  19220. this.$message.error("网络不佳");
  19221. console.error(err);
  19222. });
  19223. },
  19224. deleteGroupChair(gindex) {
  19225. this.checkDeleteGroup = [];
  19226. this.deleteGroupUser = JSON.parse(
  19227. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19228. );
  19229. this.deleteGroupArray = this.groupJson.group[gindex];
  19230. this.groupIndex = gindex;
  19231. this.dialogVisibleDeleteGroup = true;
  19232. },
  19233. async deleteChair() {
  19234. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19235. const gid =
  19236. this.groupStudent[this.toolindex][this.groupIndex][
  19237. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19238. this.checkDeleteGroup[i]
  19239. )
  19240. ];
  19241. let params = [
  19242. {
  19243. gid: gid.id,
  19244. },
  19245. ];
  19246. var a = await this.deleteChairA(params);
  19247. if (i == this.checkDeleteGroup.length - 1) {
  19248. this.$message.success("退出成功");
  19249. this.dialogVisibleDeleteGroup = false;
  19250. this.deleteGroupUser = [];
  19251. this.deleteGroupArray = {};
  19252. this.groupIndex = "";
  19253. this.checkDeleteGroup = [];
  19254. this.getCourseDetail(2);
  19255. }
  19256. }
  19257. },
  19258. deleteChairA(params) {
  19259. return new Promise((resolve, reject) => {
  19260. this.ajax
  19261. .post(this.$store.state.api + "exitGroup", params)
  19262. .then((res) => {
  19263. resolve(1);
  19264. })
  19265. .catch((err) => {
  19266. this.$message.error("网络不佳");
  19267. console.error(err);
  19268. });
  19269. });
  19270. },
  19271. contract(i) {
  19272. if (this.isCloseList[i].isClose == 0) {
  19273. this.isCloseList[i].isClose = 1;
  19274. } else {
  19275. this.isCloseList[i].isClose = 0;
  19276. }
  19277. this.$forceUpdate();
  19278. },
  19279. openWordCloud(toolindex) {
  19280. let array = [];
  19281. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19282. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19283. array.push({ name: works });
  19284. }
  19285. if (this.isGroup) {
  19286. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19287. let works = this.courseGroup.group[i].works[toolindex];
  19288. for (var j = 0; j < works.length; j++) {
  19289. let answer = JSON.parse(works[j].works)[0].answer;
  19290. array.push({ name: answer });
  19291. }
  19292. }
  19293. }
  19294. this.wordCloudData = array;
  19295. this.dialogVisibleWordCloud = true;
  19296. },
  19297. uploadWorks(i) {
  19298. this.$confirm("确定导出作业吗?", "提示", {
  19299. confirmButtonText: "确定",
  19300. cancelButtonText: "取消",
  19301. type: "warning",
  19302. })
  19303. .then(() => {
  19304. const loading = this.$loading.service({
  19305. background: "rgba(255, 255, 255, 0.7)",
  19306. target: document.body,
  19307. text: "文件加载中...",
  19308. });
  19309. const _worksStudent = this.worksStudent;
  19310. let url = [];
  19311. var counts = {};
  19312. for (var l = 0; l < _worksStudent[i].length; l++) {
  19313. var item = _worksStudent[i][l];
  19314. var name = item.sName;
  19315. if (!counts.hasOwnProperty(name)) {
  19316. counts[name] = 0;
  19317. } else {
  19318. counts[name]++;
  19319. }
  19320. if (counts[name] > 0) {
  19321. item.sName += " (" + counts[name] + ")";
  19322. }
  19323. }
  19324. for (var l = 0; l < _worksStudent[i].length; l++) {
  19325. var item = _worksStudent[i][l];
  19326. if (
  19327. item.works.indexOf(
  19328. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19329. ) !== -1 &&
  19330. item.works.indexOf("img") === -1
  19331. ) {
  19332. url.push({ name: item.sName, url: item.works });
  19333. }
  19334. }
  19335. // var toolList = [
  19336. // { name: "电子白板", tool: 1 },
  19337. // { name: "思维导图", tool: 3 },
  19338. // { name: "协同文档", tool: 6 },
  19339. // { name: "思维网格", tool: 7 },
  19340. // { name: "素材库", tool: 8 },
  19341. // { name: "学习资料", tool: 17 },
  19342. // { name: "便签", tool: 2 },
  19343. // { name: "问卷调查", tool: 4 },
  19344. // { name: "选择题", tool: 45 },
  19345. // { name: "倒计时", tool: 10 },
  19346. // { name: "问答", tool: 15 },
  19347. // { name: "课程设计", tool: 26 },
  19348. // { name: "训练服务器", tool: 18 },
  19349. // { name: "作业提交", tool: 16 },
  19350. // { name: "批量上传", tool: 50 },
  19351. // { name: "AIoT Blockly", tool: 21 },
  19352. // { name: "AI Python", tool: 23 },
  19353. // { name: "AI Blockly", tool: 24 },
  19354. // { name: "目标管理", tool: 25 },
  19355. // { name: "数学画板", tool: 31 },
  19356. // { name: "翻译", tool: 28 },
  19357. // { name: "魔盒识字", tool: 37 },
  19358. // { name: "数学画板", tool: 31 },
  19359. // { name: "24点", tool: 38 },
  19360. // { name: "GeoGebra", tool: 39 },
  19361. // { name: "源码编辑", tool: 32 },
  19362. // { name: "个人评价", tool: 40 },
  19363. // { name: "选择匹配", tool: 41 },
  19364. // { name: "汉字宫", tool: 44 },
  19365. // { name: "排序", tool: 47 },
  19366. // { name: "表格", tool: 48 },
  19367. // { name: "文档", tool: 52 },
  19368. // { name: "学生分组", tool: 49 },
  19369. // { name: "CocoPi", tool: 57 },
  19370. // { name: "模拟驾驶", tool: 58 },
  19371. // { name: "路径搜索", tool: 59 },
  19372. // { name: "深度学习", tool: 60 },
  19373. // { name: "全历史", tool: 61 },
  19374. // { name: "交互视频", tool: 62 },
  19375. // { name: "海龟编程", tool: 63 },
  19376. // { name: "挑人", tool: 65 },
  19377. // { name: "公式编辑", tool: 66 },
  19378. // { name: "分子结构", tool: 67 },
  19379. // { name: "时间轴", tool: 68 },
  19380. // ];
  19381. // var toolName = "";
  19382. // for(var w = 0;w<toolList.length;w++){
  19383. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19384. // toolName = toolList[w].name;
  19385. // }
  19386. // }
  19387. console.log(url);
  19388. this.downLoadAll(url, loading);
  19389. })
  19390. .catch(() => {});
  19391. },
  19392. downLoadAll(url, loading) {
  19393. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19394. const zip = new JSZip();
  19395. const cache = {};
  19396. const promises = [];
  19397. data.forEach((item) => {
  19398. const promise = getFile(item.url).then((data) => {
  19399. if (data.data != 1) {
  19400. // 下载文件, 并存成ArrayBuffer对象
  19401. const file_name =
  19402. item.name +
  19403. "." +
  19404. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19405. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19406. cache[file_name] = data.data;
  19407. }
  19408. });
  19409. promises.push(promise);
  19410. });
  19411. Promise.all(promises).then(() => {
  19412. zip.generateAsync({ type: "blob" }).then((content) => {
  19413. // 生成二进制流
  19414. FileSaver.saveAs(
  19415. content,
  19416. this.courseDetail.title + "-" + "作业提交工具.zip"
  19417. ); // 利用file-saver保存文件 自定义文件名
  19418. setTimeout(() => {
  19419. loading.close();
  19420. }, 2000);
  19421. });
  19422. });
  19423. },
  19424. pickStudent(stu) {
  19425. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19426. return;
  19427. }
  19428. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19429. confirmButtonText: "确定",
  19430. cancelButtonText: "取消",
  19431. type: "warning",
  19432. })
  19433. .then(() => {
  19434. let params = [
  19435. {
  19436. uid: stu.userid,
  19437. cid: this.id,
  19438. stage: this.courseType,
  19439. task: this.taskCount,
  19440. tool: this.toolindex,
  19441. },
  19442. ];
  19443. this.ajax
  19444. .post(this.$store.state.api + "updateCoursePick", params)
  19445. .then((res) => {
  19446. this.$message.success("操作成功");
  19447. this.getPick();
  19448. })
  19449. .catch((err) => {
  19450. this.$message.error("网络不佳");
  19451. console.error(err);
  19452. });
  19453. })
  19454. .catch(() => {});
  19455. },
  19456. selectUser(){
  19457. let params = {
  19458. userid: this.userid,
  19459. };
  19460. this.ajax
  19461. .get(this.$store.state.api + "selectUser", params)
  19462. .then((res) => {
  19463. this.userMes = res.data[0];
  19464. })
  19465. .catch((err) => {
  19466. console.error(err);
  19467. });
  19468. },
  19469. setEngText(i){
  19470. this.newEngIndex = i;
  19471. this.$forceUpdate();
  19472. },
  19473. addCorrect(){
  19474. this.$confirm("你确定提交批改嘛?", "提示", {
  19475. confirmButtonText: "确定",
  19476. showCancelButton: false,
  19477. closeOnClickModal: false,
  19478. type: "warning",
  19479. })
  19480. .then(() => {
  19481. let params = {
  19482. cid: this.id,
  19483. s: parseInt(this.courseType),
  19484. t: this.taskCount,
  19485. tool: this.toolindex,
  19486. wid: this.engWid,
  19487. c: this.userid,
  19488. w: this.userMes[0].type == 2 ? JSON.parse(this.newEnglishList) : (this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length) ? JSON.stringify(this.oldEnglishJson1) : this.newEngIndex == -1 ? JSON.stringify(this.newEnglishList) : (this.newEngIndex > -1 && this.newEnglishList1.length > 0) ? JSON.stringify(this.newEnglishList1[this.newEngIndex].cWork) : "",
  19489. };
  19490. this.ajax
  19491. .get(this.$store.state.api + "addEngC", params)
  19492. .then((res) => {
  19493. this.$message.success("提交成功");
  19494. this.engUpdateDialogVisible = false;
  19495. })
  19496. .catch((err) => {
  19497. console.error(err);
  19498. });
  19499. })
  19500. .catch(() => {});
  19501. },
  19502. selectEngC(id,z){
  19503. let params = {
  19504. workid: id,
  19505. };
  19506. this.ajax
  19507. .get(this.$store.state.api + "selectEngC", params)
  19508. .then((res) => {
  19509. if(res.data[0].length == 0){
  19510. this.newEnglishList.engTitle = z.engTitle;
  19511. this.newEnglishList.engText = z.engText;
  19512. }else{
  19513. var a = res.data[0];
  19514. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19515. if(this.userMes[0].type == 2){
  19516. var snum = 0;
  19517. for(var i = 0;i<a.length;i++){
  19518. if(this.userMes[0].userid == a[i].correct){
  19519. this.newEnglishList = JSON.parse(a[i].cWork);
  19520. snum = 1;
  19521. }
  19522. }
  19523. if(snum == 0){
  19524. this.newEnglishList = { engTitle:"",engText:"" };
  19525. this.newEnglishList.engTitle = z.engTitle;
  19526. this.newEnglishList.engText = z.engText;
  19527. }
  19528. }else if(this.userMes[0].type == 1){
  19529. var num = 0;
  19530. for(var w= 0;w<a.length;w++){
  19531. if(this.userMes[0].userid == a[w].correct){
  19532. num = 1;
  19533. }
  19534. }
  19535. if(num == 0){
  19536. this.isNoUserid = true;
  19537. var c = JSON.parse(JSON.stringify(z));
  19538. this.oldEnglishJson1 = c;
  19539. }else{
  19540. this.isNoUserid = false;
  19541. }
  19542. var b = a.sort((item, index) => {
  19543. console.log(item)
  19544. if (item.correct === this.userMes[0].userid) {
  19545. return -1; // 将a移到前面
  19546. } else if (index.correct === this.userMes[0].userid) {
  19547. return 1; // 将b移到前面
  19548. } else {
  19549. return 0; // 保持默认顺序
  19550. }
  19551. });
  19552. for(var p = 0;p<b.length;p++){
  19553. for(var y = 0;y<ppp.length;y++){
  19554. if(b[p].id == ppp[y].id){
  19555. b[p].cWork = JSON.parse(ppp[y].cWork);
  19556. break
  19557. }
  19558. }
  19559. }
  19560. this.newEnglishList1 = b;
  19561. }
  19562. }
  19563. this.greyType = false;
  19564. setTimeout(() => {
  19565. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19566. if(this.newEnglishList1.length > 0){
  19567. if(this.isNoUserid == true){
  19568. this.engListLength = this.newEnglishList1.length + 1;
  19569. this.newEngIndex = -1;
  19570. }else{
  19571. this.engListLength = this.newEnglishList1.length;
  19572. this.newEngIndex = 0;
  19573. }
  19574. }
  19575. if(this.userMes[0].type == 2){
  19576. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19577. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19578. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19579. }else if(this.newEngIndex == -1){
  19580. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19581. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19582. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19583. }
  19584. }, 500);
  19585. this.engUpdateDialogVisible = true;
  19586. this.$forceUpdate();
  19587. })
  19588. .catch((err) => {
  19589. console.error(err);
  19590. });
  19591. },
  19592. getPick() {
  19593. let params = {
  19594. cid: this.id,
  19595. };
  19596. this.ajax
  19597. .get(this.$store.state.api + "getPick", params)
  19598. .then((res) => {
  19599. let array = [];
  19600. for (var i = 0; i < res.data[0].length; i++) {
  19601. array.push(res.data[0][i].userid);
  19602. }
  19603. this.isPickStudent = array;
  19604. if (array.indexOf(this.userid) !== -1) {
  19605. this.$confirm("你被老师选到啦!", "提示", {
  19606. confirmButtonText: "确定",
  19607. showCancelButton: false,
  19608. closeOnClickModal: false,
  19609. type: "warning",
  19610. })
  19611. .then(() => {
  19612. let pa = [
  19613. {
  19614. uid: this.userid,
  19615. cid: this.id,
  19616. },
  19617. ];
  19618. this.ajax
  19619. .post(this.$store.state.api + "deletePick", pa)
  19620. .then((res) => {
  19621. this.getPick();
  19622. })
  19623. .catch((err) => {
  19624. this.$message.error("网络不佳");
  19625. console.error(err);
  19626. });
  19627. })
  19628. .catch(() => {});
  19629. }
  19630. })
  19631. .catch((err) => {
  19632. this.$message.error("网络不佳");
  19633. console.error(err);
  19634. });
  19635. },
  19636. foldEva() {
  19637. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19638. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19639. } else {
  19640. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19641. setTimeout(() => {
  19642. this.checkEva();
  19643. setTimeout(() => {
  19644. this.checkEva();
  19645. }, 500);
  19646. }, 0);
  19647. }
  19648. this.$forceUpdate();
  19649. },
  19650. panToolHeight(tool) {
  19651. var _tool = document.querySelectorAll('#'+tool)[0]
  19652. var _toolA = _tool ? _tool.offsetHeight : 0
  19653. var _toolC = 0
  19654. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19655. let boolean2 = (_toolA > _toolC) ? true : false
  19656. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19657. this.$forceUpdate();
  19658. },
  19659. async checkLink(url) {
  19660. console.log(url)
  19661. let _url = url
  19662. try {
  19663. const response = await fetch(url);
  19664. if(!response.ok){
  19665. _url = await this.checkLink("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" + encodeURIComponent(_url.split('https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/')[1]))
  19666. }
  19667. console.log(response.ok)
  19668. } catch (error) {
  19669. console.error('Error checking link:', error);
  19670. // console.log(false)
  19671. _url = await this.checkLink("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" + encodeURIComponent(_url.split('https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/')[1]))
  19672. }
  19673. // console.log(_url)
  19674. return _url
  19675. },
  19676. getScoreList(){
  19677. let params = {
  19678. cid: this.id,
  19679. };
  19680. this.ajax
  19681. .get(this.$store.state.api + "selectTestCourseByCid", params)
  19682. .then((res) => {
  19683. let result = res.data;
  19684. this.scoreList.datalist = result[0];
  19685. this.scoreList.isScoreList = result[1];
  19686. })
  19687. .catch((err) => {
  19688. console.error(err);
  19689. });
  19690. }
  19691. },
  19692. directives: {
  19693. // 使用局部注册指令的方式
  19694. resize: {
  19695. // 指令的名称
  19696. bind(el, binding) {
  19697. // el为绑定的元素,binding为绑定给指令的对象
  19698. let width = "",
  19699. height = "";
  19700. function isReize() {
  19701. const style = document.defaultView.getComputedStyle(el);
  19702. if (width !== style.width || height !== style.height) {
  19703. binding.value(); // 关键
  19704. }
  19705. width = style.width;
  19706. height = style.height;
  19707. }
  19708. el.__vueSetInterval__ = setInterval(isReize, 300);
  19709. },
  19710. unbind(el) {
  19711. clearInterval(el.__vueSetInterval__);
  19712. },
  19713. },
  19714. autoHeight: {
  19715. update(el, binding) {
  19716. const { value } = binding
  19717. if (value && typeof value === 'number') {
  19718. el.style.height = `${value}px`
  19719. } else {
  19720. el.style.height = 'auto'
  19721. }
  19722. },
  19723. componentUpdated(el) {
  19724. el.style.height = `${el.scrollHeight}px`
  19725. },
  19726. },
  19727. },
  19728. beforeDestroy() {
  19729. window.onresize = null;
  19730. clearInterval(this.timer);
  19731. this.timer = null;
  19732. clearInterval(this.opertimer);
  19733. this.opertimer = null;
  19734. },
  19735. computed: {
  19736. contentConvent() {
  19737. return function (c) {
  19738. return c
  19739. ? c
  19740. .replaceAll(/\r\n/g, "<br/>")
  19741. .replaceAll(/\n/g, "<br/>")
  19742. .replaceAll(/\s/g, " &nbsp")
  19743. : "";
  19744. };
  19745. },
  19746. checkUpload() {
  19747. return function () {
  19748. var studentK = [];
  19749. if (this.plworkFile.length > 0) {
  19750. for (var z = 0; z < this.plworkFile.length; z++) {
  19751. studentK.push(this.plworkFile[z].username);
  19752. }
  19753. studentK = studentK.join(",");
  19754. }
  19755. var a = this.uploadStudentJuri.filter((el) => {
  19756. return studentK.indexOf(el.userid) == -1;
  19757. });
  19758. return a;
  19759. };
  19760. },
  19761. getSName() {
  19762. return function (name) {
  19763. var check = name;
  19764. this.uploadStudentJuri.forEach((el) => {
  19765. if (el.userid == check) {
  19766. check = el.name ? el.name : el.username;
  19767. }
  19768. });
  19769. return check;
  19770. };
  19771. },
  19772. getImgList() {
  19773. return function (val) {
  19774. let srcList = []; // 定义一个数组用来接收后面的img地址
  19775. val.replace(
  19776. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  19777. function (match, capture) {
  19778. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  19779. srcList.push(capture);
  19780. }
  19781. );
  19782. return srcList;
  19783. };
  19784. },
  19785. retrnToolHeight(){
  19786. return function (tool) {
  19787. var _tool = document.querySelectorAll('#'+tool)[0]
  19788. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  19789. };
  19790. },
  19791. Correct() {
  19792. return function (c) {
  19793. let w = "";
  19794. let a = this.correctWord;
  19795. for(var k = 0;k<a.length;k++){
  19796. //diffWordsWithSpace
  19797. if(a.length > 1){
  19798. if(a[k].added == true){
  19799. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19800. }else if(a[k].removed == true){
  19801. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19802. }else{
  19803. w += '<span>' + a[k].value + '</span>';
  19804. }
  19805. }else{
  19806. w = c
  19807. }
  19808. //diffChars方法
  19809. // if(a.length > 1){
  19810. // if(w == ""){
  19811. // if(a[k].added == true){
  19812. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19813. // }else if(a[k].removed == true){
  19814. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19815. // }
  19816. // }else{
  19817. // if(k == a.length - 1){
  19818. // if(a[k].added == true){
  19819. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19820. // }else if(a[k].removed == true){
  19821. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19822. // }
  19823. // }else{
  19824. // if(a[k].added == true){
  19825. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19826. // }else if(a[k].removed == true){
  19827. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19828. // }
  19829. // }
  19830. // }
  19831. // }else{
  19832. // w = c
  19833. // }
  19834. }
  19835. c = w;
  19836. return c;
  19837. };
  19838. },
  19839. },
  19840. mounted() {
  19841. document.body.addEventListener("click", (e) => {
  19842. if (this.isUpdateToolDetail1) {
  19843. this.updateToolDetail(this.toolDetailIndex);
  19844. }
  19845. });
  19846. if (this.screenType == 2) {
  19847. window.parent.postMessage({ allScreen: 4 }, "*");
  19848. } else if (this.screenType == 3) {
  19849. window.parent.postMessage({ allScreen: 5 }, "*");
  19850. } else if (this.screenType == 1) {
  19851. window.parent.postMessage({ allScreen: 6 }, "*");
  19852. }
  19853. this.setOperationTime();
  19854. this.selectEva();
  19855. this.getCourseDetail();
  19856. this.selectCount();
  19857. this.getHomeWork();
  19858. this.selectUser();
  19859. this.contentDialog = true;
  19860. this.setContent2(true);
  19861. if (this.tType == 4) {
  19862. this.pzDialog = true;
  19863. this.selectPz();
  19864. }
  19865. // 获取评分列表
  19866. this.getScoreList()
  19867. document.scrollingElement.scrollTop = 0;
  19868. window.addEventListener("resize", () => {
  19869. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19870. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19871. if (this.showType == 2 || this.showType == 3) {
  19872. document.getElementsByClassName("navBox")[0].style.height =
  19873. a - 40 + 46 + "px";
  19874. } else {
  19875. document.getElementsByClassName("navBox")[0].style.height =
  19876. a - 40 + "px";
  19877. }
  19878. });
  19879. let _this = this;
  19880. setTimeout(() => {
  19881. // _this.vedioTime = [];
  19882. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  19883. // _this.vedioTime[i] = document.getElementsByClassName(
  19884. // "vjs-duration-display"
  19885. // )[i].textContent;
  19886. // }
  19887. }, 1000);
  19888. },
  19889. };
  19890. </script>
  19891. <style scoped>
  19892. @media screen and (max-width: 1280px) {
  19893. /* .courseIndex > div:first-child(2) {
  19894. width: 15% !important;
  19895. } */
  19896. /* .navText {
  19897. width: 120px !important;
  19898. } */
  19899. .evaCss {
  19900. flex-direction: column !important;
  19901. align-items: center !important;
  19902. }
  19903. .elist_input {
  19904. width: 90% !important;
  19905. }
  19906. .dialog_diy1 >>> .el-dialog {
  19907. width: 100% !important;
  19908. }
  19909. .rightWidthCss {
  19910. width: 100% !important;
  19911. }
  19912. .dialog_diy3 >>> .el-dialog {
  19913. width: 100% !important;
  19914. }
  19915. .addToolCss {
  19916. right: 0 !important;
  19917. width: 100% !important;
  19918. min-width: unset !important;
  19919. }
  19920. }
  19921. .evaCssMax {
  19922. flex-direction: column !important;
  19923. align-items: center !important;
  19924. }
  19925. .dialog_diy >>> .el-dialog {
  19926. margin-top: 10vh !important;
  19927. }
  19928. .body_student {
  19929. width: 77%;
  19930. height: 100%;
  19931. position: absolute;
  19932. left: 22%;
  19933. top: 0;
  19934. }
  19935. .student_head {
  19936. width: 100%;
  19937. margin: 20px auto 0;
  19938. padding-bottom: 20px;
  19939. display: flex;
  19940. flex-direction: column;
  19941. flex-wrap: nowrap;
  19942. align-items: flex-start;
  19943. justify-content: flex-start;
  19944. }
  19945. .pb_left {
  19946. width: 20%;
  19947. margin-right: 10px;
  19948. background: rgb(255, 255, 255);
  19949. position: fixed;
  19950. height: calc(100% - 40px);
  19951. border-radius: 20px;
  19952. padding-bottom: 15px;
  19953. box-sizing: border-box;
  19954. }
  19955. .wheel > img,
  19956. .project > img,
  19957. .star > img,
  19958. .evaluate > img,
  19959. .up_photo > img,
  19960. .chapter_add > img,
  19961. .deleteWord > img,
  19962. .question > img,
  19963. .homework > img {
  19964. width: 100%;
  19965. height: 100%;
  19966. }
  19967. .upCover > img {
  19968. width: 131px;
  19969. height: 69px;
  19970. object-fit: cover;
  19971. }
  19972. .upCover {
  19973. width: calc(100% / 3.5);
  19974. position: relative;
  19975. margin: 0 15px 10px 0;
  19976. display: flex;
  19977. flex-direction: column;
  19978. flex-wrap: nowrap;
  19979. justify-content: center;
  19980. align-content: center;
  19981. align-items: center;
  19982. height: fit-content;
  19983. }
  19984. .upCover2 {
  19985. width: 100%;
  19986. position: relative;
  19987. margin: 0 15px 10px 0;
  19988. display: flex;
  19989. flex-direction: column;
  19990. flex-wrap: nowrap;
  19991. justify-content: center;
  19992. align-content: center;
  19993. align-items: center;
  19994. }
  19995. .upCover2 > img {
  19996. width: 100%;
  19997. height: 90px;
  19998. object-fit: contain;
  19999. }
  20000. .chapter_add {
  20001. width: 120px;
  20002. position: relative;
  20003. text-align: center;
  20004. }
  20005. .isAddThings {
  20006. margin-top: 20px;
  20007. position: relative;
  20008. text-align: center;
  20009. background: #f7f8fa;
  20010. height: 90px;
  20011. width: 90px;
  20012. display: flex;
  20013. flex-direction: column;
  20014. justify-content: center;
  20015. }
  20016. .deleteWord {
  20017. width: 22px;
  20018. height: 22px;
  20019. position: absolute;
  20020. right: -5px;
  20021. top: -5px;
  20022. cursor: pointer;
  20023. }
  20024. .box_course {
  20025. /* width: 60%; */
  20026. width: calc(100% - 300px);
  20027. }
  20028. .wheel {
  20029. width: 100%;
  20030. /* height: 100%; */
  20031. height: 650px;
  20032. }
  20033. .right_box {
  20034. display: flex;
  20035. flex-direction: column;
  20036. margin-left: 30px;
  20037. justify-content: space-around;
  20038. }
  20039. .right_box_title {
  20040. font-size: 23px;
  20041. }
  20042. .people {
  20043. display: flex;
  20044. }
  20045. .student_body {
  20046. width: 100%;
  20047. margin: 0 auto;
  20048. margin-top: 10px;
  20049. padding: 0 0 20px;
  20050. }
  20051. .study_top {
  20052. margin-top: 100px;
  20053. width: 100%;
  20054. height: auto;
  20055. padding-bottom: 20px;
  20056. }
  20057. .study_top .checkbox {
  20058. display: flex;
  20059. align-items: center;
  20060. padding: 15px 0 15px 30px;
  20061. flex: 0 0 auto;
  20062. font-weight: bold;
  20063. border-bottom: 1px solid #eee;
  20064. }
  20065. .study_top .check {
  20066. padding-bottom: 5px;
  20067. text-align: center;
  20068. cursor: pointer;
  20069. height: 30px;
  20070. box-sizing: border-box;
  20071. display: flex;
  20072. }
  20073. .study_top .checked {
  20074. border-bottom: 4px solid #3fc6a0;
  20075. padding-bottom: 5px;
  20076. color: #3fc6a0;
  20077. display: flex;
  20078. height: 35px;
  20079. }
  20080. .study_top .checked > div,
  20081. .study_top .check > div {
  20082. margin-right: 5px;
  20083. }
  20084. .videoTop {
  20085. display: flex;
  20086. flex-direction: row;
  20087. justify-content: space-between;
  20088. background: #fff;
  20089. align-items: center;
  20090. width: 95%;
  20091. padding: 20px;
  20092. }
  20093. .filebox {
  20094. display: flex;
  20095. flex-wrap: wrap;
  20096. flex-direction: column;
  20097. padding: 0 0 5px;
  20098. position: relative;
  20099. }
  20100. .filebox:before {
  20101. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20102. position: absolute;
  20103. top: 20px;
  20104. left: 13px;
  20105. border-left: 2px dotted #cad1dc;
  20106. height: calc(100% - 15px);
  20107. }
  20108. .toolHeng2 > div:last-child::before {
  20109. height: calc(100% - 43px);
  20110. }
  20111. .filebox .tooldetail {
  20112. width: calc(100% - 280px);
  20113. margin: 0px 12px;
  20114. padding: 12px;
  20115. line-height: 30px;
  20116. word-break: break-word;
  20117. background: #ffffff;
  20118. border-radius: 8px 8px 8px 8px;
  20119. opacity: 1;
  20120. border: 1px solid #cad1dc;
  20121. overflow:hidden;
  20122. box-sizing:border-box;
  20123. }
  20124. .file {
  20125. display: flex;
  20126. flex-direction: column;
  20127. align-items: center;
  20128. justify-content: center;
  20129. cursor: pointer;
  20130. width: 200px;
  20131. }
  20132. .file div {
  20133. margin-top: 10px;
  20134. width: 150px;
  20135. text-align: center;
  20136. overflow: hidden;
  20137. white-space: nowrap;
  20138. text-overflow: ellipsis;
  20139. }
  20140. .media {
  20141. display: flex;
  20142. flex-direction: column;
  20143. align-items: center;
  20144. justify-content: center;
  20145. margin: 0 20px 20px 0;
  20146. cursor: pointer;
  20147. margin: 12px 0 5px 15px;
  20148. overflow: hidden;
  20149. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  20150. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  20151. box-sizing: border-box;
  20152. }
  20153. .media img {
  20154. height: 90px;
  20155. width: 160px;
  20156. object-fit: cover;
  20157. }
  20158. .media .title {
  20159. padding: 5px;
  20160. text-align: left;
  20161. width: 100%;
  20162. box-sizing: border-box;
  20163. }
  20164. .media .btn {
  20165. width: 100%;
  20166. height: 35px;
  20167. line-height: 35px;
  20168. color: #fff;
  20169. background: #606060;
  20170. text-align: center;
  20171. overflow: hidden;
  20172. white-space: nowrap;
  20173. text-overflow: ellipsis;
  20174. }
  20175. .detail_content_top {
  20176. width: 100%;
  20177. padding: 25px 0 25px 0;
  20178. }
  20179. .detail_title {
  20180. text-align: center;
  20181. font-size: 24px;
  20182. }
  20183. .detail_time {
  20184. font-size: 13px;
  20185. padding: 15px 0 0 40px;
  20186. }
  20187. .detail_content {
  20188. line-height: 2pc;
  20189. width: 90%;
  20190. margin: 0 auto;
  20191. padding-top: 30px;
  20192. text-indent: 30px;
  20193. overflow: auto;
  20194. height: 200px;
  20195. }
  20196. .score_box >>> .el-rate {
  20197. margin-left: 10px;
  20198. }
  20199. .dialog_change >>> .el-dialog {
  20200. border-radius: 5px;
  20201. }
  20202. .dialog_change >>> .el-dialog__header {
  20203. background: #f2f2f2;
  20204. text-align: center;
  20205. }
  20206. .dialog_change >>> .el-dialog__title {
  20207. line-height: 5px;
  20208. }
  20209. .dialog_change >>> .el-dialog__body {
  20210. background: #fff;
  20211. padding: 10px 20px;
  20212. }
  20213. .score_box {
  20214. display: flex;
  20215. align-items: center;
  20216. margin-bottom: 18px;
  20217. margin-top: 20px;
  20218. }
  20219. .up_photo {
  20220. width: 120px;
  20221. cursor: pointer;
  20222. margin-top: 10px;
  20223. }
  20224. .up_photo2 {
  20225. width: 180px;
  20226. box-sizing: border-box;
  20227. min-width: 180px;
  20228. height: 180px;
  20229. max-height: 180px;
  20230. min-height: 180px;
  20231. cursor: pointer;
  20232. display: flex;
  20233. flex-direction: column;
  20234. align-items: center;
  20235. justify-content: center;
  20236. background: rgb(242, 246, 255);
  20237. /* padding: 25px; */
  20238. margin-bottom: 10px;
  20239. }
  20240. .up_photo2 img {
  20241. width: 50%;
  20242. height: auto;
  20243. }
  20244. .up_photo2 span {
  20245. color: #898989;
  20246. }
  20247. .plworkBox {
  20248. display: flex;
  20249. align-items: center;
  20250. margin-top: 10px;
  20251. flex-wrap: wrap;
  20252. }
  20253. .upload_send {
  20254. margin: 30px auto 30px;
  20255. width: 60%;
  20256. background: #3681fc;
  20257. text-align: center;
  20258. height: 35px;
  20259. line-height: 35px;
  20260. color: #fff;
  20261. border-radius: 5px;
  20262. cursor: pointer;
  20263. }
  20264. .marginT {
  20265. margin-top: 20px;
  20266. }
  20267. .cd_content_steps {
  20268. display: flex;
  20269. width: 90%;
  20270. justify-content: space-around;
  20271. border-top: 1px solid #eeeeee;
  20272. }
  20273. .cd_steps_box {
  20274. display: flex;
  20275. justify-content: center;
  20276. align-items: center;
  20277. flex-direction: column;
  20278. cursor: pointer;
  20279. }
  20280. .first {
  20281. display: flex;
  20282. align-items: center;
  20283. margin: 15px 0 20px 0;
  20284. font-size: 20px;
  20285. }
  20286. .first > div:nth-child(2) {
  20287. font-size: 16px !important;
  20288. padding-left: 10px;
  20289. line-height: 26px;
  20290. box-sizing: border-box;
  20291. }
  20292. .blue_box_one {
  20293. text-align: center;
  20294. color: #fff;
  20295. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  20296. border-radius: 7px;
  20297. margin: 10px;
  20298. cursor: pointer;
  20299. width: 95%;
  20300. height: 45px;
  20301. display: flex;
  20302. flex-direction: row;
  20303. justify-content: flex-start;
  20304. align-items: center;
  20305. }
  20306. .blue_box_one > div:nth-child(1) {
  20307. line-height: 30px;
  20308. margin: 0 5px 0 10px;
  20309. width: 30%;
  20310. min-width: 70px;
  20311. border-radius: 4px;
  20312. }
  20313. .blue_box_one > div:nth-child(2) {
  20314. white-space: nowrap;
  20315. text-overflow: ellipsis;
  20316. overflow: hidden;
  20317. word-break: break-all;
  20318. width: 70%;
  20319. text-align: left;
  20320. margin-right: 10px;
  20321. max-width: calc(100% - 85px);
  20322. }
  20323. .blue_box_one > div:nth-child(2):hover {
  20324. overflow: hidden;
  20325. text-overflow: ellipsis;
  20326. white-space: nowrap;
  20327. cursor: pointer;
  20328. }
  20329. .upFile {
  20330. margin: 0 auto;
  20331. width: 120px;
  20332. background: #3681fc;
  20333. color: #fff;
  20334. height: 30px;
  20335. text-align: center;
  20336. line-height: 30px;
  20337. border-radius: 5px;
  20338. font-size: 14px;
  20339. cursor: pointer;
  20340. }
  20341. .courseTitle {
  20342. width: 85%;
  20343. margin: 10px auto 26px auto;
  20344. display: flex;
  20345. flex-direction: row;
  20346. align-items: center;
  20347. justify-content: space-between;
  20348. text-align: center;
  20349. }
  20350. .courseTitle .ctitle {
  20351. font-size: 20px;
  20352. font-weight: bold;
  20353. color: #0e1e33;
  20354. white-space: nowrap;
  20355. overflow: hidden;
  20356. text-overflow: ellipsis;
  20357. }
  20358. .inviteBox {
  20359. font-size: 14px;
  20360. /* margin-top: 5px; */
  20361. color: #00000099;
  20362. text-align: center;
  20363. }
  20364. .courseTitle >>> .el-tooltip {
  20365. width: 100%;
  20366. white-space: nowrap;
  20367. overflow: hidden;
  20368. text-overflow: ellipsis;
  20369. word-break: break-word;
  20370. }
  20371. .ml {
  20372. margin-left: 20px;
  20373. color: #5b7dba;
  20374. border-left: 3px solid #5b7dba;
  20375. padding-left: 5px;
  20376. font-weight: bold;
  20377. }
  20378. .return {
  20379. width: 2rem;
  20380. height: 2rem;
  20381. cursor: pointer;
  20382. }
  20383. .return > img {
  20384. width: 100%;
  20385. height: 100%;
  20386. }
  20387. .returnBtn {
  20388. width: 86px;
  20389. height: 36px;
  20390. background: #3681fc;
  20391. border-radius: 4px;
  20392. color: #fff;
  20393. text-align: center;
  20394. line-height: 36px;
  20395. margin-right: 20px;
  20396. cursor: pointer;
  20397. font-size: 14px;
  20398. font-weight: 400;
  20399. display: flex;
  20400. flex-direction: row;
  20401. flex-wrap: nowrap;
  20402. align-items: center;
  20403. justify-content: center;
  20404. }
  20405. .reBtnIcon,
  20406. .commentIcon,
  20407. .vedioIcon,
  20408. .vedioIcon1 {
  20409. /* width: 36px; */
  20410. height: 36px;
  20411. border-radius: 4px;
  20412. position: relative;
  20413. /* background: #e0eafb; */
  20414. background: #0061ff;
  20415. cursor: pointer;
  20416. margin-right: 12px;
  20417. display: flex;
  20418. align-items: center;
  20419. padding: 0 10px;
  20420. box-sizing: border-box;
  20421. font-size: 14px;
  20422. color: #fff;
  20423. }
  20424. .reBtnIcon::before,
  20425. .commentIcon::before,
  20426. .vedioIcon::before,
  20427. .vedioIcon1::before {
  20428. content: "";
  20429. display: block;
  20430. background-size: 100% 100%;
  20431. background-repeat: no-repeat;
  20432. width: 20px;
  20433. height: 20px;
  20434. margin-right: 5px;
  20435. /* position: absolute; */
  20436. /* top: 8px;
  20437. left: 8px; */
  20438. }
  20439. .vedioIcon1 {
  20440. background: #f63564;
  20441. }
  20442. .reBtnIcon::before {
  20443. background-image: url("../assets/icon/newIcons/refresh.png");
  20444. }
  20445. .commentIcon::before {
  20446. background-image: url("../assets/icon/newIcons/comment.png");
  20447. }
  20448. .vedioIcon::before {
  20449. background-image: url("../assets/icon/newIcons/transcribe.png");
  20450. }
  20451. .vedioIcon1::before {
  20452. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  20453. background-image: url("../assets/icon/newIcons/transcribe.png");
  20454. }
  20455. .tool {
  20456. display: flex;
  20457. flex-direction: column;
  20458. flex-wrap: nowrap;
  20459. width: 13%;
  20460. margin: 0 30px;
  20461. align-items: center;
  20462. position: relative;
  20463. padding: 10px 25px;
  20464. cursor: pointer;
  20465. }
  20466. .whiteBIcon {
  20467. width: 150px;
  20468. }
  20469. .whiteBIcon > img {
  20470. width: 100%;
  20471. height: 100%;
  20472. }
  20473. .mask {
  20474. background-color: rgba(0, 0, 0, 0);
  20475. position: fixed;
  20476. top: 0;
  20477. left: 0;
  20478. width: 100%;
  20479. height: 100%;
  20480. z-index: 20000;
  20481. display: flex;
  20482. align-items: center;
  20483. justify-content: center;
  20484. }
  20485. .progressBox {
  20486. width: 500px;
  20487. height: 180px;
  20488. background: #fff;
  20489. border-radius: 10px;
  20490. box-shadow: 0 0 6px 1px #bfbfbf;
  20491. display: flex;
  20492. align-items: center;
  20493. justify-content: center;
  20494. flex-direction: column;
  20495. position: relative;
  20496. color: #6c6c6c;
  20497. }
  20498. .progressBox >>> .el-progress-bar__outer {
  20499. background-color: #d1dfff !important;
  20500. }
  20501. .progressBox .lbox {
  20502. height: 50px;
  20503. font-size: 19px;
  20504. display: flex;
  20505. align-items: center;
  20506. color: #747474;
  20507. }
  20508. .progressBox .lbox img {
  20509. width: 40px;
  20510. margin-right: 20px;
  20511. }
  20512. .closeCss {
  20513. position: absolute;
  20514. top: 8px;
  20515. right: 8px;
  20516. cursor: pointer;
  20517. width: 20px;
  20518. height: 20px;
  20519. }
  20520. .closeCss > img {
  20521. width: 100%;
  20522. height: 100%;
  20523. }
  20524. .uploadVedio {
  20525. display: flex;
  20526. flex-direction: column;
  20527. flex-wrap: nowrap;
  20528. justify-content: center;
  20529. align-items: center;
  20530. margin: 0 15px 10px 0;
  20531. }
  20532. .uploadVedio > img {
  20533. width: 30px;
  20534. height: 30px;
  20535. }
  20536. .uploadVedio > span {
  20537. white-space: nowrap;
  20538. overflow: hidden;
  20539. text-overflow: ellipsis;
  20540. width: 75px;
  20541. margin-top: 7px;
  20542. }
  20543. .picName {
  20544. white-space: nowrap;
  20545. overflow: hidden;
  20546. text-overflow: ellipsis;
  20547. width: 75px;
  20548. margin-top: 7px;
  20549. }
  20550. .new_top {
  20551. display: flex;
  20552. background: #fff;
  20553. flex-direction: row;
  20554. justify-content: flex-start;
  20555. align-items: center;
  20556. height: 60px;
  20557. position: fixed;
  20558. top: 20px;
  20559. left: 22%;
  20560. width: 77%;
  20561. z-index: 999;
  20562. border-radius: 12px 12px 0 0;
  20563. border-bottom: 1px solid #cad1dc;
  20564. padding: 10px 0;
  20565. }
  20566. .new_topFixed {
  20567. width: 100%;
  20568. height: 40px;
  20569. position: fixed;
  20570. top: 0px;
  20571. display: block;
  20572. background: #f2f2f2;
  20573. z-index: 998;
  20574. }
  20575. .before {
  20576. position: absolute;
  20577. background: #c3dad4;
  20578. width: 6px;
  20579. height: 100%;
  20580. }
  20581. .courseIndex {
  20582. display: flex;
  20583. flex-direction: row;
  20584. align-items: center;
  20585. width: calc(100% - 745px);
  20586. }
  20587. .courseIndex > div:nth-child(1) {
  20588. margin: 0 0 0 10px;
  20589. font-size: 20px;
  20590. min-width: 100px;
  20591. font-weight: bold;
  20592. border-left: 4px solid #3363b9;
  20593. height: 32px;
  20594. text-align: center;
  20595. line-height: 35px;
  20596. }
  20597. .courseIndex > div:nth-child(2) {
  20598. font-size: 20px;
  20599. /* width: 300px; */
  20600. max-width: calc(100% - 105px);
  20601. white-space: nowrap;
  20602. overflow: hidden;
  20603. text-overflow: ellipsis;
  20604. }
  20605. .courseIndex > div:nth-child(3) {
  20606. border-bottom: 1px solid #d7d7d7;
  20607. padding-bottom: 5px;
  20608. background: #3681fc;
  20609. width: 55px;
  20610. min-width: 55px;
  20611. border-radius: 5px;
  20612. color: #fff;
  20613. text-align: center;
  20614. height: 20px;
  20615. line-height: 26px;
  20616. font-size: 14px;
  20617. margin: 0 0 0 10px;
  20618. }
  20619. .course_text {
  20620. padding: 20px 0 0 15px;
  20621. text-indent: 30px;
  20622. width: 80%;
  20623. min-height: 20px;
  20624. }
  20625. .vedioList {
  20626. background: #f2f2f2;
  20627. border: 1px solid #ececec;
  20628. /* width: 38.8%; */
  20629. /* width: 300px; */
  20630. width: 100%;
  20631. height: 445px;
  20632. border-radius: 10px;
  20633. overflow: hidden;
  20634. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  20635. }
  20636. .vedioNav {
  20637. margin: 10px 0 0 15px;
  20638. border-bottom: 1px solid #d7d7d7;
  20639. padding-bottom: 5px;
  20640. background: #3681fc;
  20641. width: 55px;
  20642. min-width: 55px;
  20643. border-radius: 5px;
  20644. color: #fff;
  20645. text-align: center;
  20646. height: 20px;
  20647. line-height: 26px;
  20648. font-size: 14px;
  20649. }
  20650. .queTop {
  20651. display: flex;
  20652. padding: 20px 0 20px 30px;
  20653. width: 100%;
  20654. flex-direction: row;
  20655. justify-content: flex-start;
  20656. align-items: center;
  20657. box-sizing: border-box;
  20658. }
  20659. .queTopTitle {
  20660. display: flex;
  20661. flex-direction: row;
  20662. flex-wrap: nowrap;
  20663. align-items: center;
  20664. font-weight: bold;
  20665. font-size: 20px;
  20666. color: rgb(14, 30, 51);
  20667. }
  20668. .queTopTitle::before {
  20669. content: "";
  20670. width: 2px;
  20671. height: 22px;
  20672. background: #3681fc;
  20673. border-radius: 3px;
  20674. display: block;
  20675. margin: 2px 6px 0 0;
  20676. }
  20677. .queTopRight {
  20678. display: flex;
  20679. flex-direction: row;
  20680. flex-wrap: nowrap;
  20681. align-items: center;
  20682. }
  20683. .queTopClose {
  20684. margin-right: 20px;
  20685. cursor: pointer;
  20686. position: relative;
  20687. display: flex;
  20688. }
  20689. .closeImg,
  20690. .openImg {
  20691. width: 25px;
  20692. height: 25px;
  20693. position: absolute;
  20694. left: -20px;
  20695. top: -1px;
  20696. }
  20697. .closeImg > img,
  20698. .openImg > img {
  20699. width: 100%;
  20700. height: 100%;
  20701. }
  20702. .question {
  20703. width: 40px;
  20704. margin-right: 10px;
  20705. margin-top: 7px;
  20706. }
  20707. .queTitle {
  20708. margin-left: 5px;
  20709. font-size: 25px;
  20710. display: flex;
  20711. align-items: center;
  20712. }
  20713. .addEditor {
  20714. width: 100px;
  20715. height: 30px;
  20716. background: #42cda6;
  20717. color: #fff;
  20718. border-radius: 5px;
  20719. text-align: center;
  20720. line-height: 30px;
  20721. box-shadow: 1px 3px 6px 1px #bfbfbf;
  20722. cursor: pointer;
  20723. }
  20724. /* .vedioName {
  20725. cursor: pointer;
  20726. margin: 0px 0px 10px 5px;
  20727. white-space: nowrap;
  20728. overflow: hidden;
  20729. text-overflow: ellipsis;
  20730. width: 100%;
  20731. } */
  20732. .vedioTime {
  20733. width: 35px;
  20734. position: absolute;
  20735. color: #fff;
  20736. bottom: 0px;
  20737. right: 0px;
  20738. text-align: center;
  20739. background: #46411f;
  20740. height: 20px;
  20741. font-size: 14px;
  20742. line-height: 20px;
  20743. }
  20744. .homework {
  20745. width: 200px;
  20746. display: flex;
  20747. flex-direction: column;
  20748. flex-wrap: nowrap;
  20749. align-items: center;
  20750. cursor: pointer;
  20751. }
  20752. .homebox {
  20753. display: flex;
  20754. flex-wrap: wrap;
  20755. flex-direction: row;
  20756. justify-content: flex-start;
  20757. align-items: center;
  20758. padding: 15px 0;
  20759. }
  20760. .isChooseActive {
  20761. color: #3681fc !important;
  20762. font-weight: bold !important;
  20763. }
  20764. .chooseWho {
  20765. display: flex;
  20766. width: 100%;
  20767. flex-direction: row;
  20768. flex-wrap: nowrap;
  20769. justify-content: flex-start;
  20770. padding-bottom: 10px;
  20771. }
  20772. .chooseWho > div {
  20773. cursor: pointer;
  20774. padding-bottom: 10px;
  20775. margin: 0 30px 0 0;
  20776. font-weight: 400;
  20777. color: #0e1e33;
  20778. }
  20779. .addPoint > div > img {
  20780. cursor: pointer;
  20781. width: 85px;
  20782. border-radius: 15px;
  20783. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  20784. }
  20785. .addPoint > div {
  20786. display: flex;
  20787. flex-direction: column;
  20788. flex-wrap: nowrap;
  20789. align-items: center;
  20790. }
  20791. .isBorder > div {
  20792. margin: 0 0 10px 0;
  20793. align-items: flex-start !important;
  20794. }
  20795. .noiframeBox {
  20796. display: flex;
  20797. flex-wrap: wrap;
  20798. }
  20799. .iframeBox iframe {
  20800. width: 100%;
  20801. height: 800px;
  20802. border: none;
  20803. margin-bottom: 20px;
  20804. border: 1px solid #ccc;
  20805. }
  20806. .upload_toolBtn {
  20807. background: #3681fc;
  20808. color: #fff;
  20809. width: 110px;
  20810. text-align: center;
  20811. height: 35px;
  20812. line-height: 35px;
  20813. font-size: 14px;
  20814. border-radius: 5px;
  20815. cursor: pointer;
  20816. position: absolute;
  20817. right: 10px;
  20818. bottom: 0;
  20819. }
  20820. .binfo_input,
  20821. .pj {
  20822. font: inherit;
  20823. color: currentColor;
  20824. width: 100%;
  20825. margin: 0;
  20826. padding: 15px 14px;
  20827. display: block;
  20828. min-width: 0;
  20829. outline: none;
  20830. box-sizing: content-box;
  20831. background: none;
  20832. -webkit-tap-highlight-color: transparent;
  20833. border: 1px solid rgba(0, 0, 0, 0.23);
  20834. border-radius: 4px;
  20835. box-sizing: border-box;
  20836. resize: none;
  20837. }
  20838. .binfo_input:focus-visible {
  20839. border: 1px solid rgba(61, 103, 188);
  20840. }
  20841. .dialog_diy >>> .el-dialog__header,
  20842. .dialog_diy1 >>> .el-dialog__header {
  20843. background: #454545 !important;
  20844. padding: 15px 20px;
  20845. }
  20846. .dialog_diy >>> .el-dialog__title,
  20847. .dialog_diy1 >>> .el-dialog__title {
  20848. color: #fff;
  20849. }
  20850. .dialog_diy >>> .el-dialog__headerbtn,
  20851. .dialog_diy1 >>> .el-dialog__headerbtn {
  20852. top: 19px;
  20853. }
  20854. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  20855. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  20856. color: #fff;
  20857. }
  20858. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  20859. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  20860. color: #fff;
  20861. }
  20862. .dialog_diy1 >>> .el-dialog__body {
  20863. padding: 0;
  20864. }
  20865. .dialog_diy >>> .el-dialog__body,
  20866. .dialog_diy >>> .el-dialog__footer,
  20867. .dialog_diy1 >>> .el-dialog__footer {
  20868. background: #fafafa;
  20869. }
  20870. .a_addBox {
  20871. padding: 0 0 0 15px;
  20872. }
  20873. .a_add_box {
  20874. padding: 10px;
  20875. background: #fff;
  20876. margin-bottom: 10px;
  20877. border-radius: 5px;
  20878. box-shadow: 0 0 5px 0 #d5d5d5;
  20879. }
  20880. .a_add_head {
  20881. display: flex;
  20882. align-items: flex-start;
  20883. /* justify-content: space-between; */
  20884. flex-direction: column;
  20885. /* flex-direction: row; */
  20886. margin: 10px 0 20px 0;
  20887. font-size: 18px;
  20888. width: 100%;
  20889. }
  20890. .askIndex {
  20891. background: #3681fc;
  20892. border-radius: 50%;
  20893. color: #fff;
  20894. width: 25px;
  20895. height: 25px;
  20896. min-width: 25px;
  20897. min-height: 25px;
  20898. text-align: center;
  20899. line-height: 25px;
  20900. margin-right: 5px;
  20901. }
  20902. .a_add_head .a_add_head_input {
  20903. width: 300px;
  20904. }
  20905. .a_add_head .a_add_head_div {
  20906. display: flex;
  20907. align-items: center;
  20908. justify-content: space-between;
  20909. }
  20910. .a_add_body {
  20911. display: flex;
  20912. align-items: center;
  20913. }
  20914. .a_add_input {
  20915. display: flex;
  20916. align-items: center;
  20917. flex-wrap: wrap;
  20918. width: 100%;
  20919. }
  20920. .a_add_input >>> .el-radio-group,
  20921. .a_add_input >>> .el-checkbox-group {
  20922. width: 100%;
  20923. }
  20924. .a_add_input >>> .el-radio,
  20925. .a_add_input >>> .el-checkbox {
  20926. display: flex;
  20927. flex-direction: row;
  20928. flex-wrap: nowrap;
  20929. align-items: center;
  20930. padding: 15px 0;
  20931. }
  20932. .a_add_input >>> .el-radio:not(:last-child),
  20933. .a_add_input >>> .el-checkbox:not(:last-child) {
  20934. width: 100%;
  20935. border-bottom: 1px solid #efefef;
  20936. }
  20937. .redioStyle >>> .el-radio__label {
  20938. font-size: 18px;
  20939. }
  20940. .redioStyle >>> .el-radio__label > span,
  20941. .redioStyle >>> .el-checkbox__label > span {
  20942. word-break: break-all;
  20943. white-space: normal;
  20944. }
  20945. .redioStyle >>> .el-checkbox__label {
  20946. font-size: 18px;
  20947. }
  20948. .toolHeng2 {
  20949. width: 100%;
  20950. padding-left: 37px;
  20951. box-sizing: border-box;
  20952. }
  20953. .workNav {
  20954. font-size: 20px;
  20955. font-weight: bold;
  20956. color: #0e1e33;
  20957. display: flex;
  20958. flex-direction: row;
  20959. flex-wrap: nowrap;
  20960. align-items: center;
  20961. padding: 15px 0 15px 0;
  20962. }
  20963. .workNav::before {
  20964. content: "";
  20965. width: 2px;
  20966. height: 22px;
  20967. background: #3681fc;
  20968. border-radius: 3px;
  20969. display: block;
  20970. margin: 2px 6px 0 0;
  20971. }
  20972. .toolHeng {
  20973. display: flex;
  20974. flex-direction: row;
  20975. flex-wrap: wrap;
  20976. justify-content: flex-start;
  20977. align-items: center;
  20978. width: 100%;
  20979. }
  20980. .toolHeng > div {
  20981. padding-left: 20px;
  20982. }
  20983. .isWidth {
  20984. width: 20%;
  20985. }
  20986. .textTitle {
  20987. display: flex;
  20988. flex-direction: row;
  20989. flex-wrap: nowrap;
  20990. align-items: center;
  20991. width: 95%;
  20992. }
  20993. .textTitle >>> .el-form-item__label {
  20994. font-size: 22px;
  20995. color: #918f8f;
  20996. width: 100px;
  20997. }
  20998. .textTitle >>> .el-form-item__content {
  20999. width: calc(100% - 100px);
  21000. }
  21001. .textCss >>> .el-dialog {
  21002. width: 800px !important;
  21003. height: 400px;
  21004. background: #fafafa;
  21005. }
  21006. .textCss >>> .el-dialog__body {
  21007. margin: 55px 8% 0 8%;
  21008. padding: 0 !important;
  21009. }
  21010. .textCss >>> .el-dialog__footer {
  21011. padding-top: 38px;
  21012. }
  21013. .toolsCss >>> .el-dialog__body {
  21014. padding: 20px;
  21015. }
  21016. .lineCss >>> .el-dialog__body {
  21017. display: flex;
  21018. flex-direction: row;
  21019. align-items: center;
  21020. justify-content: center;
  21021. }
  21022. .newNav {
  21023. display: flex;
  21024. flex-direction: row;
  21025. align-items: baseline;
  21026. justify-content: flex-start;
  21027. }
  21028. .navListItem {
  21029. width: calc(100% - 20px);
  21030. height: 50px;
  21031. margin: 0px auto 10px;
  21032. display: flex;
  21033. flex-direction: row;
  21034. flex-wrap: nowrap;
  21035. align-items: center;
  21036. justify-content: space-between;
  21037. background: #f0f4fa;
  21038. border-radius: 6px 6px 6px 6px;
  21039. }
  21040. .navText {
  21041. cursor: pointer;
  21042. white-space: nowrap;
  21043. overflow: hidden;
  21044. text-overflow: ellipsis;
  21045. width: 220px;
  21046. padding: 0 10px;
  21047. font-weight: 400;
  21048. color: #0e1e33;
  21049. }
  21050. .downIcon {
  21051. width: 20px;
  21052. min-width: 20px;
  21053. height: 20px;
  21054. margin-right: 15px;
  21055. cursor: pointer;
  21056. }
  21057. .downIcon > img {
  21058. width: 100%;
  21059. height: 100%;
  21060. }
  21061. .noVedio {
  21062. display: flex;
  21063. flex-direction: row;
  21064. justify-content: center;
  21065. align-content: center;
  21066. }
  21067. .noNavText {
  21068. cursor: pointer;
  21069. margin: 0px 0px 10px 5px;
  21070. width: 112px;
  21071. }
  21072. .listNoVedio {
  21073. margin: 0 0 0 30px;
  21074. width: 97%;
  21075. }
  21076. .video-player >>> .video-js {
  21077. height: 100%;
  21078. }
  21079. .hangVedioList {
  21080. width: 90% !important;
  21081. height: 150px !important;
  21082. margin: 20px 0 0 30px;
  21083. }
  21084. .hangVedio {
  21085. width: 100%;
  21086. height: 170px !important;
  21087. align-items: flex-start !important;
  21088. }
  21089. .hangHand {
  21090. height: 150px !important;
  21091. }
  21092. .twoChild {
  21093. width: 95%;
  21094. margin: 10px;
  21095. border-radius: 5px;
  21096. background: #f2f2f2;
  21097. display: flex;
  21098. flex-direction: column;
  21099. flex-wrap: nowrap;
  21100. justify-content: flex-start;
  21101. align-items: flex-start;
  21102. transition: all 0.5s;
  21103. overflow: hidden;
  21104. height: 0;
  21105. background: #e7f3ff;
  21106. }
  21107. .twoChild > div:nth-child(1) {
  21108. margin-top: 5px;
  21109. }
  21110. .navChild {
  21111. width: 100%;
  21112. cursor: pointer;
  21113. margin-bottom: 10px;
  21114. position: relative;
  21115. }
  21116. .navChild img {
  21117. position: absolute;
  21118. right: 11px;
  21119. width: 15px;
  21120. top: 50%;
  21121. transform: translateY(-50%);
  21122. }
  21123. .navActive,
  21124. .toolActive {
  21125. height: auto !important;
  21126. overflow: auto !important;
  21127. /* padding-bottom: 16px; */
  21128. }
  21129. .toolActive {
  21130. padding: 0;
  21131. }
  21132. .navTask {
  21133. display: flex;
  21134. flex-direction: row;
  21135. flex-wrap: nowrap;
  21136. align-items: center;
  21137. align-content: flex-start;
  21138. height: 40px;
  21139. justify-content: flex-start;
  21140. padding: 0 10px;
  21141. width: 100%;
  21142. box-sizing: border-box;
  21143. }
  21144. .navTaskname {
  21145. white-space: nowrap;
  21146. text-overflow: ellipsis;
  21147. overflow: hidden;
  21148. word-break: break-all;
  21149. padding-left: 5px;
  21150. }
  21151. .openTaskActive {
  21152. /* background-color: #e0eafb !important;
  21153. color: #0061ff; */
  21154. color:#fff;
  21155. background: rgb(55, 129, 252) !important;
  21156. }
  21157. .iframeName {
  21158. margin: 5px 0;
  21159. border-left: 4px solid #41c4a4;
  21160. padding-left: 4px;
  21161. }
  21162. .toolTitle {
  21163. margin: 0px 0px 20px;
  21164. font-size: 20px;
  21165. font-weight: 500;
  21166. border-left: 4px solid #41c4a4;
  21167. padding-left: 4px;
  21168. }
  21169. .cru_selectBox {
  21170. overflow: auto;
  21171. width: 95%;
  21172. margin: 17px auto 0;
  21173. height: calc(100% - 40px - 21px - 20px - 17px);
  21174. background: #fff;
  21175. border-radius: 8px;
  21176. }
  21177. .cru_selectBox::-webkit-scrollbar,
  21178. .study_top::-webkit-scrollbar,
  21179. .textContent::-webkit-scrollbar {
  21180. /*滚动条整体样式*/
  21181. width: 6px;
  21182. /*高宽分别对应横竖滚动条的尺寸*/
  21183. height: 6px;
  21184. }
  21185. /*定义滚动条轨道 内阴影+圆角*/
  21186. .cru_selectBox::-webkit-scrollbar-track,
  21187. .study_top::-webkit-scrollbar-track,
  21188. .textContent::-webkit-scrollbar {
  21189. border-radius: 10px;
  21190. background-color: #b8bdc9;
  21191. }
  21192. /*定义滑块 内阴影+圆角*/
  21193. .cru_selectBox::-webkit-scrollbar-thumb,
  21194. .study_top::-webkit-scrollbar-thumb,
  21195. .textContent::-webkit-scrollbar-thumb {
  21196. border-radius: 10px;
  21197. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  21198. background-color: #2c5ab3;
  21199. }
  21200. .vedioBox {
  21201. border-radius: 0 0 20px 20px;
  21202. background: #fff;
  21203. overflow: auto;
  21204. }
  21205. .taskBox {
  21206. width: 98%;
  21207. background: #f0f4fa;
  21208. margin: 10px auto;
  21209. padding: 0 10px;
  21210. border-radius: 4px;
  21211. box-sizing: border-box;
  21212. }
  21213. .vedioTaskBox {
  21214. width: 100%;
  21215. display: flex;
  21216. flex-direction: row;
  21217. flex-wrap: nowrap;
  21218. align-items: flex-start;
  21219. position: relative;
  21220. }
  21221. .toolBox {
  21222. margin: 15px 0 0 25px;
  21223. display: flex;
  21224. position: relative;
  21225. padding: 18px 20px;
  21226. border-top-left-radius: 5px;
  21227. border-top-right-radius: 5px;
  21228. width: 90%;
  21229. }
  21230. .btnAll {
  21231. position: absolute;
  21232. right: 0;
  21233. display: flex;
  21234. flex-direction: row;
  21235. flex-wrap: nowrap;
  21236. align-items: center;
  21237. }
  21238. .btnLeft,
  21239. .btnRight {
  21240. display: flex;
  21241. flex-direction: row;
  21242. flex-wrap: nowrap;
  21243. align-items: center;
  21244. padding: 5px 0;
  21245. }
  21246. .btnLeft {
  21247. border-right: 1px solid #cad1dc;
  21248. }
  21249. .btnLeft > .custom-tooltip {
  21250. background: #3681fc;
  21251. color: #fff;
  21252. }
  21253. .last:hover {
  21254. background: #3383fa !important;
  21255. color: #fff;
  21256. border: 1px solid #3383fa !important;
  21257. }
  21258. .last,
  21259. .returnBtn1 {
  21260. width: 90px;
  21261. height: 36px;
  21262. background: #ffffff;
  21263. border-radius: 4px;
  21264. border: 1px solid #0061ff;
  21265. color: #0061ff;
  21266. cursor: pointer;
  21267. display: flex;
  21268. flex-direction: row;
  21269. flex-wrap: nowrap;
  21270. align-items: center;
  21271. justify-content: center;
  21272. margin-left: 12px;
  21273. }
  21274. .returnBtn1 {
  21275. background: #f0f4fa;
  21276. border-radius: 4px;
  21277. border: 1px solid #cad1dc;
  21278. margin: 0 12px;
  21279. }
  21280. .lastImg {
  21281. min-width: 15px;
  21282. width: 15px;
  21283. height: 15px;
  21284. display: flex;
  21285. }
  21286. .lastText {
  21287. padding: 0 5px 0 5px;
  21288. box-sizing: border-box;
  21289. font-size: 14px;
  21290. }
  21291. .lastImg > img {
  21292. width: 100%;
  21293. height: 100%;
  21294. }
  21295. /* .vedioTimeBox {
  21296. display: flex;
  21297. flex-direction: row;
  21298. align-items: center;
  21299. flex-wrap: nowrap;
  21300. position: relative;
  21301. } */
  21302. .navBox {
  21303. background: #fff;
  21304. height: calc(100% - 40px);
  21305. overflow-y: auto;
  21306. overflow-x: hidden;
  21307. }
  21308. .worksBox {
  21309. margin: 0 0 10px 25px;
  21310. border-bottom: 1px solid #eeeeee;
  21311. padding: 18px 20px;
  21312. border-radius: 4px;
  21313. width: 90%;
  21314. }
  21315. .worksBTitle {
  21316. font-size: 20px;
  21317. padding-bottom: 15px;
  21318. border-bottom: 1px solid #eeeeee;
  21319. display: flex;
  21320. align-items: center;
  21321. }
  21322. .greenBox {
  21323. width: 5px;
  21324. height: 30px;
  21325. background: #63b6fa;
  21326. margin-right: 5px;
  21327. }
  21328. .worksDetailBox {
  21329. display: flex;
  21330. width: 100%;
  21331. flex-direction: row;
  21332. flex-wrap: wrap;
  21333. align-items: flex-end;
  21334. justify-content: flex-start;
  21335. padding: 15px 5px;
  21336. box-sizing: border-box;
  21337. }
  21338. .works {
  21339. display: flex;
  21340. flex-direction: column;
  21341. flex-wrap: nowrap;
  21342. align-items: flex-start;
  21343. justify-content: flex-start;
  21344. align-content: center;
  21345. max-width: 240px;
  21346. width: calc(100% / 3 - 10px);
  21347. height: auto;
  21348. margin-right: 10px;
  21349. margin-bottom: 10px;
  21350. overflow: hidden;
  21351. height: 140px;
  21352. box-shadow: 0 0 6px 1px #dfdada;
  21353. border-radius: 15px;
  21354. }
  21355. .workImg {
  21356. width: 100%;
  21357. /* height: calc(100% - 40px); */
  21358. height: 105px;
  21359. position: relative;
  21360. }
  21361. .workImg > img {
  21362. width: 100%;
  21363. height: 100%;
  21364. object-fit: contain;
  21365. cursor: pointer;
  21366. }
  21367. .worksName {
  21368. height: 40px;
  21369. line-height: 40px;
  21370. display: flex;
  21371. width: 100%;
  21372. flex-direction: row;
  21373. flex-wrap: nowrap;
  21374. justify-content: space-between;
  21375. align-items: center;
  21376. margin: 0 0 0 10px;
  21377. }
  21378. .worksName > div:nth-child(1) {
  21379. width: 110px;
  21380. white-space: nowrap;
  21381. overflow: hidden;
  21382. text-overflow: ellipsis;
  21383. }
  21384. .worksName > div:nth-child(2) {
  21385. color: #b7b4b5;
  21386. }
  21387. .noWorksS {
  21388. padding: 15px 0;
  21389. display: flex;
  21390. flex-direction: row;
  21391. flex-wrap: wrap;
  21392. align-items: center;
  21393. justify-content: flex-start;
  21394. }
  21395. .noWorksName,
  21396. .isWorksName,
  21397. .isWorksName2 {
  21398. background: #ddebf8;
  21399. color: #000;
  21400. width: 90px;
  21401. height: 25px;
  21402. text-align: center;
  21403. line-height: 25px;
  21404. border-radius: 4px;
  21405. margin: 10px 15px 10px 0;
  21406. white-space: nowrap;
  21407. overflow: hidden;
  21408. padding: 5px;
  21409. text-overflow: ellipsis;
  21410. cursor: pointer;
  21411. border: 1px solid #ddebf8;
  21412. }
  21413. .noWorksName {
  21414. background: #fff;
  21415. color: #0061ff;
  21416. border: 1px solid #0061ff;
  21417. }
  21418. .isWorksName2 {
  21419. width: 100px;
  21420. height: 40px;
  21421. line-height: 40px;
  21422. position: relative;
  21423. background: #dae6f9;
  21424. }
  21425. .isWorksName {
  21426. background: #e7ebf1 !important;
  21427. width: 100px;
  21428. height: 40px;
  21429. line-height: 40px;
  21430. position: relative;
  21431. color: #acb4bf;
  21432. border: 1px solid #cad1dc !important;
  21433. }
  21434. .isSelectName,
  21435. .noWorksName:hover {
  21436. background: #3383fa !important;
  21437. color: #fff !important;
  21438. border: 1px solid #3383fa !important;
  21439. }
  21440. .title {
  21441. background: #1e5cc9;
  21442. /* width: 98%; */
  21443. height: 45px;
  21444. color: #fff;
  21445. line-height: 45px;
  21446. padding-left: 20px;
  21447. box-sizing: border-box;
  21448. }
  21449. .textBox {
  21450. font-size: 20px;
  21451. width: 90%;
  21452. display: flex;
  21453. flex-direction: column;
  21454. align-items: center;
  21455. margin: 20px auto 0;
  21456. max-height: calc(100% - 75px);
  21457. overflow: auto;
  21458. }
  21459. .textContent {
  21460. font-size: 18px;
  21461. width: 95%;
  21462. max-width: 95%;
  21463. }
  21464. .answerBg {
  21465. background: url("../assets/icon/answerBgNew.png") no-repeat;
  21466. background-size: 100% 100%;
  21467. width: 100%;
  21468. height: 100%;
  21469. color: #fff;
  21470. text-align: center;
  21471. display: flex;
  21472. flex-direction: column;
  21473. flex-wrap: nowrap;
  21474. align-items: center;
  21475. position: relative;
  21476. justify-content: center;
  21477. }
  21478. .answerBg > div:nth-child(1) {
  21479. /* font-size: 22px;
  21480. padding: 25px 0 10px; */
  21481. }
  21482. .answerContent {
  21483. width: 215px;
  21484. max-height: 60px;
  21485. word-break: break-all;
  21486. text-align: center;
  21487. /* white-space: nowrap; */
  21488. overflow: hidden;
  21489. text-overflow: ellipsis;
  21490. /* padding: 23px 0 0; */
  21491. -webkit-line-clamp: 3;
  21492. -webkit-box-orient: vertical;
  21493. display: -webkit-box;
  21494. font-size: 15px;
  21495. cursor: pointer;
  21496. }
  21497. .elist_input_box {
  21498. display: flex;
  21499. align-items: flex-start;
  21500. flex-wrap: nowrap;
  21501. padding: 10px 0 15px 30px;
  21502. flex-direction: column;
  21503. }
  21504. .elist_input {
  21505. /* width: 40%; */
  21506. width: 45%;
  21507. margin: 20px;
  21508. }
  21509. .elist_input .elist_input_box input {
  21510. font: inherit;
  21511. color: currentColor;
  21512. width: 200px;
  21513. padding: 8px 14px;
  21514. display: block;
  21515. min-width: 0;
  21516. outline: none;
  21517. border: 1px solid rgba(0, 0, 0, 0.23);
  21518. border-radius: 4px;
  21519. box-sizing: border-box;
  21520. background: #fff;
  21521. margin: 0 20px 0 0;
  21522. }
  21523. .elist_input .elist_input_box span {
  21524. height: 36px;
  21525. line-height: 36px;
  21526. color: rgb(82, 82, 82);
  21527. }
  21528. .elist_input .elist_input_box .remove {
  21529. height: 20px;
  21530. width: 20px;
  21531. background-size: 100% 100%;
  21532. background-position: unset;
  21533. margin-left: 5px;
  21534. }
  21535. .elist_input_box >>> .el-rate {
  21536. display: flex;
  21537. height: 36px;
  21538. align-items: center;
  21539. }
  21540. .elist_input_box .elist_inptu_text {
  21541. min-height: 50px;
  21542. /* width: 500px;
  21543. max-height: 150px; */
  21544. width: 100%;
  21545. line-height: 50px;
  21546. color: rgb(82, 82, 82);
  21547. overflow: auto;
  21548. text-indent: 5px;
  21549. background: #f7f6f9;
  21550. border-radius: 10px;
  21551. }
  21552. .elist_input_box .elist_inptu_text input {
  21553. width: 500px;
  21554. }
  21555. .elist_input_box >>> .el-rate__icon {
  21556. font-size: 24px;
  21557. }
  21558. .isClick {
  21559. background: #4d9def;
  21560. }
  21561. .bzBox {
  21562. display: flex;
  21563. flex-direction: row;
  21564. align-items: center;
  21565. }
  21566. .bzBox .yCss {
  21567. width: 7px;
  21568. height: 7px;
  21569. background: #fff;
  21570. margin: 0 16px 0 6px;
  21571. border-radius: 50%;
  21572. border: 5px solid #3681fc;
  21573. z-index: 99;
  21574. }
  21575. .bzBox > div:nth-child(2) {
  21576. font-size: 18px;
  21577. font-weight: bold;
  21578. color: #0e1e33;
  21579. }
  21580. .navTitile {
  21581. padding: 0 0px 0 15px;
  21582. font-size: 16px;
  21583. font-weight: bold;
  21584. color: #0e1e33;
  21585. height: 40px;
  21586. line-height: 40px;
  21587. }
  21588. .isTypeOne {
  21589. width: 240px;
  21590. height: 170px;
  21591. /* border: 1px solid #f8f8f8; */
  21592. border-radius: 10px;
  21593. box-shadow: 0 0 6px 1px #dfdada;
  21594. }
  21595. .e_add_top {
  21596. display: flex;
  21597. justify-content: space-between;
  21598. padding: 10px 20px;
  21599. border-radius: 3px;
  21600. background: #fff;
  21601. }
  21602. .e_add_title2 {
  21603. display: flex;
  21604. align-items: center;
  21605. }
  21606. .e_add_title2 span {
  21607. width: 40px;
  21608. }
  21609. .e_add_title {
  21610. display: flex;
  21611. align-items: center;
  21612. color: #b8b8b8;
  21613. font-size: 18px;
  21614. position: relative;
  21615. height: 40px;
  21616. width: 100%;
  21617. }
  21618. .e_add_title span {
  21619. margin-right: 10px;
  21620. }
  21621. .e_add_title .el_input {
  21622. width: 300px;
  21623. }
  21624. .e_add_title >>> .el-input__inner {
  21625. width: 400px;
  21626. }
  21627. .e_add_btn {
  21628. }
  21629. .e_add_content {
  21630. display: flex;
  21631. width: 100%;
  21632. max-width: 650px;
  21633. height: 550px;
  21634. }
  21635. .e_add_list {
  21636. background: #fff;
  21637. height: 500px;
  21638. width: 210px;
  21639. position: relative;
  21640. margin: 15px 5px 0 0;
  21641. flex-shrink: 0;
  21642. display: flex;
  21643. flex-direction: column;
  21644. }
  21645. .e_add_list_title {
  21646. font-size: 20px;
  21647. width: 100%;
  21648. box-sizing: border-box;
  21649. padding: 15px 40px;
  21650. text-align: center;
  21651. border-bottom: 1px solid #eaeaea;
  21652. position: relative;
  21653. display: flex;
  21654. align-items: center;
  21655. justify-content: center;
  21656. height: 57px;
  21657. background: #f6f6f6;
  21658. }
  21659. .e_add_list_title span {
  21660. overflow: hidden;
  21661. white-space: nowrap;
  21662. text-overflow: ellipsis;
  21663. }
  21664. .e_add_list_title img {
  21665. position: absolute;
  21666. right: 15px;
  21667. width: 25px;
  21668. cursor: pointer;
  21669. top: 50%;
  21670. transform: translateY(-50%);
  21671. }
  21672. .e_add_list_body {
  21673. height: calc(100% - 187px);
  21674. overflow: auto;
  21675. }
  21676. .e_add_list_child {
  21677. width: 100%;
  21678. display: flex;
  21679. align-items: center;
  21680. justify-content: center;
  21681. position: relative;
  21682. box-sizing: border-box;
  21683. padding: 15px 40px;
  21684. text-align: center;
  21685. }
  21686. .e_add_list_child span {
  21687. overflow: hidden;
  21688. white-space: nowrap;
  21689. text-overflow: ellipsis;
  21690. cursor: pointer;
  21691. }
  21692. .e_add_list_child img {
  21693. position: absolute;
  21694. right: 10px;
  21695. width: 21px;
  21696. cursor: pointer;
  21697. top: 50%;
  21698. transform: translateY(-50%);
  21699. }
  21700. .e_add_list_child + .e_add_list_child {
  21701. border-top: 1px solid #eaeaea;
  21702. }
  21703. .e_add_list_child .active {
  21704. color: #409eff;
  21705. }
  21706. .e_add_list_btn {
  21707. position: absolute;
  21708. bottom: 0;
  21709. height: 50px;
  21710. background: rgb(120, 120, 254);
  21711. width: 100%;
  21712. color: #fff;
  21713. font-size: 16px;
  21714. text-align: center;
  21715. line-height: 50px;
  21716. cursor: pointer;
  21717. }
  21718. .e_add_list_detail {
  21719. position: absolute;
  21720. bottom: 0;
  21721. height: 130px;
  21722. background: rgb(120, 120, 254);
  21723. width: 100%;
  21724. color: #fff;
  21725. font-size: 16px;
  21726. display: flex;
  21727. align-items: center;
  21728. justify-content: center;
  21729. }
  21730. .e_add_list_detail textarea {
  21731. height: 90%;
  21732. width: 95%;
  21733. border: none;
  21734. resize: none;
  21735. outline: none;
  21736. padding: 5px;
  21737. box-sizing: border-box;
  21738. }
  21739. .e_add_list_pbox {
  21740. width: 100%;
  21741. max-width: 650px;
  21742. /* height: 600px; */
  21743. }
  21744. .e_add_list_pbox_title {
  21745. height: 50px;
  21746. background: #fff;
  21747. display: flex;
  21748. align-items: center;
  21749. width: 100%;
  21750. box-sizing: border-box;
  21751. padding: 0 20px;
  21752. }
  21753. .type_title {
  21754. font-size: 18px;
  21755. font-weight: 700;
  21756. }
  21757. .type_content {
  21758. font-size: 16px;
  21759. /* margin-left: 30px; */
  21760. }
  21761. .type_content span + span {
  21762. margin-left: 20px;
  21763. }
  21764. .type_content span {
  21765. cursor: pointer;
  21766. padding-bottom: 5px;
  21767. box-sizing: border-box;
  21768. }
  21769. .type_content .active {
  21770. color: #409eff;
  21771. border-bottom: 2px solid #409eff;
  21772. }
  21773. .e_add_list_pbox_content {
  21774. height: calc(100% - 50px);
  21775. display: flex;
  21776. align-items: center;
  21777. width: 100%;
  21778. background: #fff;
  21779. }
  21780. .evaCss {
  21781. display: flex;
  21782. flex-direction: row;
  21783. flex-wrap: nowrap;
  21784. align-items: flex-start;
  21785. padding: 0 0 20px;
  21786. }
  21787. .cru_line {
  21788. position: absolute;
  21789. bottom: 0px;
  21790. transition: all 0.5s;
  21791. left: 0px;
  21792. width: 125px;
  21793. margin-left: -25px;
  21794. }
  21795. .isNoMessage {
  21796. width: 20%;
  21797. margin: 25% auto 0;
  21798. }
  21799. .isNoMessage > img {
  21800. width: 100%;
  21801. height: 100%;
  21802. }
  21803. .fullStyle >>> .el-dialog__body {
  21804. height: 100% !important;
  21805. }
  21806. .fullStyle >>> .el-dialog,
  21807. .fullStyle {
  21808. width: 100% !important;
  21809. max-width: 100% !important;
  21810. height: 100% !important;
  21811. margin: 0 !important;
  21812. }
  21813. .full_diy >>> .el-dialog {
  21814. margin: 0 !important;
  21815. height: 100%;
  21816. padding: 4px;
  21817. }
  21818. .full_diy >>> .el-dialog__body {
  21819. height: calc(100% - 100px);
  21820. }
  21821. .full_diy2 >>> .el-dialog__body {
  21822. height: calc(100% - 50px);
  21823. padding: 0;
  21824. }
  21825. .switchCss {
  21826. /* width: 100%; */
  21827. display: flex;
  21828. flex-direction: row;
  21829. flex-wrap: nowrap;
  21830. align-items: center;
  21831. /* justify-content: center; */
  21832. }
  21833. .isClickNav {
  21834. /* color: #499eef; */
  21835. color: #000;
  21836. }
  21837. .commentImg {
  21838. width: 25px;
  21839. height: 25px;
  21840. cursor: pointer;
  21841. }
  21842. .commentImg > img {
  21843. width: 100%;
  21844. height: 100%;
  21845. }
  21846. .comment {
  21847. background: #f9f9f9;
  21848. border-radius: 0 0 4px 4px;
  21849. display: flex;
  21850. flex-direction: row;
  21851. flex-wrap: nowrap;
  21852. align-items: center;
  21853. justify-content: flex-end;
  21854. height: 35px;
  21855. }
  21856. .commentList {
  21857. display: flex;
  21858. flex-direction: row;
  21859. flex-wrap: nowrap;
  21860. align-items: center;
  21861. justify-content: center;
  21862. align-content: center;
  21863. /* margin-left: 15px; */
  21864. /* margin-left: 8px; */
  21865. }
  21866. .scoreImg {
  21867. width: 17px;
  21868. height: 17px;
  21869. }
  21870. .studentDetail {
  21871. display: flex;
  21872. flex-direction: row;
  21873. flex-wrap: nowrap;
  21874. /* align-items: center; */
  21875. align-items: flex-start;
  21876. }
  21877. .tx {
  21878. width: 50px;
  21879. }
  21880. .tx > img {
  21881. width: 100%;
  21882. height: 100%;
  21883. }
  21884. .nameAndTime {
  21885. display: flex;
  21886. flex-direction: column;
  21887. flex-wrap: nowrap;
  21888. align-items: flex-start;
  21889. margin-left: 10px;
  21890. }
  21891. .worksAnswer {
  21892. color: #4078dd;
  21893. margin: 10px 0;
  21894. font-size: 16px;
  21895. position: relative;
  21896. }
  21897. .worksAnswer > img {
  21898. width: 500px;
  21899. height: 300px;
  21900. object-fit: contain;
  21901. margin: 0 auto;
  21902. display: block;
  21903. }
  21904. .commentTop {
  21905. border-bottom: 1px solid #eaeaea;
  21906. padding-bottom: 10px;
  21907. }
  21908. .commentBox {
  21909. padding-top: 15px;
  21910. }
  21911. .pl {
  21912. font-size: 18px;
  21913. }
  21914. .plPerson {
  21915. width: 100%;
  21916. }
  21917. .plName {
  21918. display: flex;
  21919. flex-direction: row;
  21920. flex-wrap: nowrap;
  21921. align-items: baseline;
  21922. color: #78787a;
  21923. width: 100%;
  21924. }
  21925. .deleteComment {
  21926. cursor: pointer;
  21927. margin-left: auto;
  21928. color: #237ade;
  21929. }
  21930. .plContent {
  21931. margin-top: 5px;
  21932. }
  21933. .evalCss {
  21934. background: #fff;
  21935. font-size: 18px;
  21936. }
  21937. .nav {
  21938. color: #9d9d9d;
  21939. padding: 5px 0 15px 20px;
  21940. }
  21941. .middleBox {
  21942. padding: 5px 0 15px 20px;
  21943. }
  21944. .pfBox {
  21945. padding-bottom: 30px;
  21946. }
  21947. .nameAndrate {
  21948. display: flex;
  21949. flex-direction: row;
  21950. flex-wrap: nowrap;
  21951. align-items: center;
  21952. padding-bottom: 10px;
  21953. height: 30px;
  21954. line-height: 30px;
  21955. }
  21956. .nameAndrate > div {
  21957. margin-left: 10px;
  21958. color: #000;
  21959. height: 30px;
  21960. }
  21961. .nameAndrate >>> .el-rate__icon {
  21962. font-size: 28px !important;
  21963. }
  21964. .pfBox > div:nth-child(2) {
  21965. background: #f7f6f9;
  21966. width: 400px;
  21967. min-height: 45px;
  21968. border-radius: 10px;
  21969. font-size: 16px;
  21970. display: flex;
  21971. flex-wrap: wrap;
  21972. align-items: center;
  21973. padding: 10px 20px;
  21974. box-sizing: border-box;
  21975. color: #000;
  21976. }
  21977. .bz {
  21978. display: flex;
  21979. flex-direction: row;
  21980. flex-wrap: nowrap;
  21981. align-items: flex-start;
  21982. }
  21983. .bz > div {
  21984. padding: 0 10px;
  21985. }
  21986. .select_box2_title {
  21987. background: #fff;
  21988. border-radius: 5px;
  21989. padding: 15px 10px;
  21990. box-sizing: border-box;
  21991. margin-bottom: 10px;
  21992. display: flex;
  21993. flex-direction: row;
  21994. flex-wrap: nowrap;
  21995. align-items: center;
  21996. }
  21997. .select_box2_title > div:nth-child(2) {
  21998. margin-left: 10px;
  21999. color: #c4c4c4;
  22000. }
  22001. .select_box2_box {
  22002. display: flex;
  22003. height: 500px;
  22004. }
  22005. .select_box2_img {
  22006. width: calc(100% - 310px);
  22007. height: 100%;
  22008. overflow: auto;
  22009. background: #fff;
  22010. border-radius: 5px;
  22011. }
  22012. .select_box2_img img {
  22013. width: 100%;
  22014. }
  22015. .select_box2_answer {
  22016. background: #fff;
  22017. margin-left: 10px;
  22018. border-radius: 5px;
  22019. width: 300px;
  22020. overflow: auto;
  22021. height: 90%;
  22022. display: flex;
  22023. flex-direction: column;
  22024. align-items: flex-start;
  22025. padding-top: 10px;
  22026. box-sizing: border-box;
  22027. position: relative;
  22028. }
  22029. .select_answer_title {
  22030. padding: 0 0 15px 20px;
  22031. color: #c4c4c4;
  22032. }
  22033. .select_box2_answer_box {
  22034. margin: 0 0 10px 20px;
  22035. width: 85%;
  22036. display: flex;
  22037. flex-direction: row;
  22038. flex-wrap: nowrap;
  22039. align-items: center;
  22040. }
  22041. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22042. color: #000;
  22043. }
  22044. .upAnswerCss {
  22045. position: absolute;
  22046. bottom: 15px;
  22047. right: 15px;
  22048. }
  22049. .upAnswerCss >>> .el-button {
  22050. width: 95px;
  22051. height: 35px;
  22052. line-height: 35px;
  22053. padding: 0;
  22054. }
  22055. .rightWidthCss {
  22056. width: 60%;
  22057. display: flex;
  22058. flex-direction: row;
  22059. align-items: flex-start;
  22060. }
  22061. .rightAnswer {
  22062. display: flex;
  22063. flex-direction: row;
  22064. flex-wrap: nowrap;
  22065. align-items: center;
  22066. color: red;
  22067. margin-bottom: 31px;
  22068. }
  22069. .rightAnswerCss {
  22070. display: flex;
  22071. flex-direction: column;
  22072. flex-wrap: nowrap;
  22073. padding-top: 60px;
  22074. }
  22075. .blueCss {
  22076. color: #767de1;
  22077. margin-left: 10px;
  22078. }
  22079. .redCss {
  22080. color: red;
  22081. }
  22082. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22083. color: rgb(0 123 255) !important;
  22084. }
  22085. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22086. color: rgb(0 123 255) !important;
  22087. }
  22088. .zuoyeYulan {
  22089. padding-top: 0;
  22090. font-size: 18px;
  22091. display: flex;
  22092. align-items: flex-end;
  22093. }
  22094. .buttonA {
  22095. margin-left: 10px;
  22096. padding: 0;
  22097. }
  22098. .displayBox {
  22099. margin-bottom: 10px;
  22100. display: block;
  22101. border-bottom: 3px solid #eee;
  22102. display: flex;
  22103. align-items: center;
  22104. }
  22105. .easy_comment {
  22106. width: calc(100% - 90px);
  22107. margin-left: 10px;
  22108. display: flex;
  22109. flex-wrap: wrap;
  22110. }
  22111. .easy_comment > div {
  22112. border: 1px solid #4a4a4a;
  22113. color: #666;
  22114. border-radius: 15px;
  22115. padding: 5px 10px;
  22116. font-size: 16px;
  22117. margin-bottom: 10px;
  22118. margin-right: 5px;
  22119. cursor: pointer;
  22120. }
  22121. .easy_comment div:hover {
  22122. border: 1px solid #f7ba2a;
  22123. color: #c69217;
  22124. }
  22125. .xuan_right_box {
  22126. padding: 10px 0;
  22127. background: #f0f4fa;
  22128. margin: 0 15px 0 25px;
  22129. border-bottom-left-radius: 5px;
  22130. border-bottom-right-radius: 5px;
  22131. width: 91.5%;
  22132. }
  22133. .tool_right_box {
  22134. display: flex;
  22135. align-items: center;
  22136. }
  22137. .tool_right_box + .tool_right_box {
  22138. margin-top: 10px;
  22139. }
  22140. .right_box_xuan {
  22141. border-radius: 5px;
  22142. padding: 5px;
  22143. margin-left: 10px;
  22144. min-width: 85px;
  22145. background: #fff;
  22146. color: #0061ff;
  22147. border: 1px solid #0061ff;
  22148. font-size: 14px;
  22149. }
  22150. .pButton:hover {
  22151. opacity: 1 !important;
  22152. }
  22153. .pButton {
  22154. position: fixed;
  22155. text-align: center;
  22156. cursor: pointer;
  22157. z-index: 999;
  22158. right: 20px;
  22159. top: 110px;
  22160. width: 50px;
  22161. height: 50px;
  22162. display: flex;
  22163. align-items: center;
  22164. justify-content: center;
  22165. border-radius: 5px;
  22166. }
  22167. .pzClass {
  22168. width: calc(100% - 340px);
  22169. }
  22170. .newDialogCss {
  22171. /* position: fixed;
  22172. right: 5%;
  22173. top: 50%;
  22174. width: 340px;
  22175. transform: translateY(-50%);
  22176. height: 60%;
  22177. box-shadow: 0px 0 8px 0px #555555;
  22178. border-radius: 15px;
  22179. z-index: 999; */
  22180. position: fixed;
  22181. right: 20px;
  22182. top: 101px;
  22183. width: 330px;
  22184. height: calc(100% - 80px);
  22185. z-index: 999;
  22186. background: #fff;
  22187. border-top-right-radius: 0px;
  22188. border-bottom-right-radius: 0px;
  22189. overflow: hidden;
  22190. }
  22191. .newDialogCss>.scoreList{
  22192. width:100%;
  22193. height:100%;
  22194. box-sizing:border-box;
  22195. padding:10px 15px;
  22196. overflow:auto;
  22197. padding-bottom:80px;
  22198. }
  22199. .pzTop {
  22200. color: #fff;
  22201. background: #000;
  22202. display: flex;
  22203. flex-direction: row;
  22204. flex-wrap: nowrap;
  22205. align-items: center;
  22206. justify-content: space-between;
  22207. height: 40px;
  22208. border-radius: 15px 15px 0 0;
  22209. user-select: none;
  22210. }
  22211. .pzTop2 .checkbox {
  22212. display: flex;
  22213. align-items: center;
  22214. padding: 5px 30px;
  22215. flex: 0 0 auto;
  22216. font-weight: bold;
  22217. border-bottom: 1px solid #eee;
  22218. justify-content: space-between;
  22219. }
  22220. .checkbox>.cb-tabList{
  22221. display:flex;
  22222. align-items:center;
  22223. }
  22224. .cb-tabList>div{
  22225. margin-right:20px;
  22226. font-weight:400;
  22227. cursor:pointer;
  22228. }
  22229. .cb-tabList>.cb-tabItem{
  22230. color:#1684FC;
  22231. position:relative;
  22232. }
  22233. .cb-tabItem::after{
  22234. content:"";
  22235. width:100%;
  22236. height:2px;
  22237. background:#1684FC;
  22238. position:absolute;
  22239. bottom:-5px;
  22240. left:0
  22241. }
  22242. .pzTop2 .check {
  22243. text-align: center;
  22244. cursor: pointer;
  22245. box-sizing: border-box;
  22246. display: flex;
  22247. }
  22248. .pzTop2 img {
  22249. width: 25px;
  22250. cursor: pointer;
  22251. }
  22252. .pzTop > div:nth-child(1) {
  22253. padding-left: 10px;
  22254. }
  22255. .pzTop > div:nth-child(2) {
  22256. width: 15px;
  22257. height: 15px;
  22258. padding-right: 10px;
  22259. cursor: pointer;
  22260. }
  22261. .pzTop > div:nth-child(2) > img {
  22262. width: 100%;
  22263. height: 100%;
  22264. }
  22265. .pzBox,
  22266. .noPzBox {
  22267. height: calc(100% - 60px);
  22268. /* background: #ededed; */
  22269. background: #fff;
  22270. /* border-radius: 0 0 15px 15px; */
  22271. }
  22272. .noPzBox {
  22273. display: flex;
  22274. flex-direction: column;
  22275. flex-wrap: nowrap;
  22276. justify-content: center;
  22277. align-items: center;
  22278. }
  22279. .pzList {
  22280. background: #f7f7f7;
  22281. width: 90%;
  22282. margin: 0 auto 15px;
  22283. border-radius: 5px;
  22284. }
  22285. .pzNavTop {
  22286. display: flex;
  22287. flex-direction: row;
  22288. flex-wrap: nowrap;
  22289. padding: 10px 10px 0 10px;
  22290. align-items: center;
  22291. }
  22292. .pzDelete {
  22293. cursor: pointer;
  22294. margin-left: auto;
  22295. font-size: 14px;
  22296. color: #afafaf;
  22297. }
  22298. .pzNavTop > div:nth-child(1) {
  22299. background: #3760af;
  22300. width: 35px;
  22301. height: 35px;
  22302. color: #fff;
  22303. text-align: center;
  22304. line-height: 35px;
  22305. border-radius: 50%;
  22306. font-size: 14px;
  22307. }
  22308. .pzNavTop > div:nth-child(2) {
  22309. font-size: 18px;
  22310. color: #959595;
  22311. margin-left: 5px;
  22312. }
  22313. .pzContent {
  22314. padding: 10px;
  22315. word-break: break-word;
  22316. }
  22317. .pzContent audio {
  22318. width: 100%;
  22319. }
  22320. .pzContent audio::-webkit-media-controls-panel {
  22321. background: #fff;
  22322. }
  22323. .pzContent >>> img {
  22324. max-width: 100%;
  22325. }
  22326. .pzListBox {
  22327. padding-top: 15px;
  22328. height: calc(100% - 110px);
  22329. overflow: auto;
  22330. }
  22331. .addPzButton {
  22332. position: relative;
  22333. margin-top: 3px;
  22334. width: 100%;
  22335. }
  22336. .addPzButton .img1 {
  22337. position: absolute;
  22338. top: 50%;
  22339. right: 25px;
  22340. transform: translateY(-50%);
  22341. height: 100%;
  22342. display: flex;
  22343. align-items: center;
  22344. }
  22345. .addPzButton .img1 div {
  22346. display: flex;
  22347. }
  22348. .addPzButton .img1 div img {
  22349. width: 28px;
  22350. margin-left: 10px;
  22351. cursor: pointer;
  22352. }
  22353. .addPzButton .img1 div span {
  22354. font-size: 14px;
  22355. margin: 4px 0 0 3px;
  22356. color: #afafaf;
  22357. }
  22358. .addPz {
  22359. background: #4b79ce;
  22360. width: 100px;
  22361. color: #fff;
  22362. font-size: 12px;
  22363. height: 30px;
  22364. margin: 0 auto;
  22365. text-align: center;
  22366. line-height: 30px;
  22367. border-radius: 10px;
  22368. cursor: pointer;
  22369. }
  22370. .addDialogCss {
  22371. position: fixed;
  22372. width: 600px;
  22373. height: 70%;
  22374. min-height: 450px;
  22375. box-shadow: 0px 0 8px 0px #555555;
  22376. border-radius: 15px;
  22377. z-index: 999;
  22378. left: 50%;
  22379. top: 50%;
  22380. margin: -18% 0 0 -300px;
  22381. }
  22382. .teacherPz {
  22383. display: flex;
  22384. flex-direction: row;
  22385. align-items: center;
  22386. flex-wrap: nowrap;
  22387. }
  22388. .teacherPzImg {
  22389. width: 30px;
  22390. height: 30px;
  22391. }
  22392. .teacherPzImg > img {
  22393. width: 100%;
  22394. height: 100%;
  22395. }
  22396. .addPzBox {
  22397. height: calc(100% - 40px);
  22398. background: #ededed;
  22399. border-bottom-left-radius: 15px;
  22400. border-bottom-right-radius: 15px;
  22401. }
  22402. .pzAudioClass {
  22403. margin: 15px 14px;
  22404. background: #fff;
  22405. height: 100%;
  22406. display: flex;
  22407. justify-content: center;
  22408. align-items: center;
  22409. }
  22410. .pzConText {
  22411. width: 95%;
  22412. height: 100%;
  22413. margin: 10px auto 0;
  22414. border: none;
  22415. background: #fff;
  22416. border-radius: 0px;
  22417. }
  22418. .pzConText >>> .text {
  22419. height: calc(100% - 82px);
  22420. }
  22421. .addTextCss {
  22422. background: #4b79ce;
  22423. width: 80px;
  22424. height: 30px;
  22425. text-align: center;
  22426. color: #fff;
  22427. line-height: 30px;
  22428. border-radius: 10px;
  22429. margin: 10px auto 0;
  22430. cursor: pointer;
  22431. }
  22432. .pzConText:focus-visible {
  22433. border: none !important;
  22434. }
  22435. .maxWidth {
  22436. width: 1000px;
  22437. }
  22438. .noPz {
  22439. width: 150px;
  22440. margin: 0 auto 20%;
  22441. }
  22442. .noPz > img {
  22443. width: 100%;
  22444. height: 100%;
  22445. }
  22446. .timeAndReply {
  22447. display: flex;
  22448. flex-direction: row;
  22449. flex-wrap: nowrap;
  22450. justify-content: space-between;
  22451. align-items: center;
  22452. font-size: 14px;
  22453. box-sizing: border-box;
  22454. padding: 0 10px 10px 0px;
  22455. }
  22456. .timeAndReply .time {
  22457. color: #bfbfbf;
  22458. padding: 0 0 0 10px;
  22459. box-sizing: border-box;
  22460. }
  22461. .timeAndReply > div:last-child {
  22462. cursor: pointer;
  22463. color: #777;
  22464. }
  22465. /* table 样式 */
  22466. .cont >>> table {
  22467. border-top: 1px solid #ccc;
  22468. border-left: 1px solid #ccc;
  22469. }
  22470. .cont >>> table td,
  22471. .cont >>> table th {
  22472. border-bottom: 1px solid #ccc;
  22473. border-right: 1px solid #ccc;
  22474. /* padding: 20px 5px; */
  22475. padding: 5px 10px;
  22476. max-width: 0px;
  22477. height: 30px;
  22478. vertical-align: baseline;
  22479. box-sizing: border-box;
  22480. }
  22481. .cont >>> table th {
  22482. border-bottom: 2px solid #ccc;
  22483. text-align: center;
  22484. }
  22485. /* blockquote 样式 */
  22486. .cont >>> blockquote {
  22487. display: block;
  22488. border-left: 8px solid #d0e5f2;
  22489. padding: 5px 10px;
  22490. margin: 10px 0;
  22491. line-height: 1.4;
  22492. font-size: 100%;
  22493. background-color: #f1f1f1;
  22494. }
  22495. /* code 样式 */
  22496. .cont >>> code {
  22497. display: inline-block;
  22498. /* *display: inline; */
  22499. zoom: 1;
  22500. background-color: #f1f1f1;
  22501. border-radius: 3px;
  22502. padding: 3px 5px;
  22503. margin: 0 3px;
  22504. }
  22505. .cont >>> pre code {
  22506. display: block;
  22507. }
  22508. /* ul ol 样式 */
  22509. .cont >>> ul,
  22510. ol {
  22511. margin: 10px 0 10px 20px;
  22512. }
  22513. .addPzCheck {
  22514. display: flex;
  22515. flex-direction: row;
  22516. flex-wrap: nowrap;
  22517. padding: 10px 15px 0;
  22518. }
  22519. .addPzCheck span {
  22520. cursor: pointer;
  22521. padding-bottom: 5px;
  22522. font-weight: bold;
  22523. }
  22524. .addPzCheck span + span {
  22525. margin-left: 10px;
  22526. }
  22527. .addPzCheck .isChooseActive {
  22528. color: #3e88f4;
  22529. border-bottom: 2px solid #2f80f3;
  22530. }
  22531. /* code 样式 */
  22532. .cont {
  22533. /* -webkit-user-modify: read-write; */
  22534. overflow-wrap: break-word;
  22535. -webkit-line-break: after-white-space;
  22536. }
  22537. .scoreBox,
  22538. .scoreDetailBox {
  22539. display: flex;
  22540. align-items: center;
  22541. justify-content: flex-start;
  22542. margin-top: 20px;
  22543. font-size: 18px;
  22544. width: 100%;
  22545. }
  22546. .scoreBox .t,
  22547. .scoreDetailBox .t {
  22548. margin-right: 10px;
  22549. width: 100px;
  22550. text-align: right;
  22551. }
  22552. .scoreDetailBox {
  22553. align-items: flex-start;
  22554. }
  22555. .scoreDetailBox >>> .el-textarea {
  22556. width: calc(100% - 200px);
  22557. }
  22558. .scoreBox >>> .el-input {
  22559. width: 130px;
  22560. font-size: 38px;
  22561. }
  22562. .scoreBox >>> .el-input__inner {
  22563. height: 60px;
  22564. }
  22565. .answerScore {
  22566. position: absolute;
  22567. top: 10px;
  22568. right: 10px;
  22569. background: #0000008f;
  22570. border-radius: 5px;
  22571. padding: 3px 5px;
  22572. font-size: 14px;
  22573. color: #fff;
  22574. cursor: pointer;
  22575. }
  22576. .open_box .switch_box {
  22577. width: 100%;
  22578. margin: 0 auto;
  22579. display: flex;
  22580. justify-content: space-between;
  22581. }
  22582. .open_box .switch_box + .switch_box {
  22583. margin-top: 10px;
  22584. }
  22585. .deleteImg,.deleteImg1 {
  22586. width: 25px !important;
  22587. height: 25px !important;
  22588. cursor: pointer;
  22589. position: absolute;
  22590. top: 10px;
  22591. right: 10px;
  22592. }
  22593. .deleteImg2 {
  22594. width: 23px !important;
  22595. height: 23px !important;
  22596. top: 5px;
  22597. right: 5px;
  22598. }
  22599. .deleteImg1{
  22600. width: 23px !important;
  22601. height: 23px !important;
  22602. top: 5px !important;
  22603. right: 30px !important;
  22604. }
  22605. .rightW {
  22606. right: 40px;
  22607. }
  22608. .drawPBox {
  22609. display: flex;
  22610. flex-direction: column;
  22611. position: relative;
  22612. }
  22613. .drawPBox span {
  22614. font-size: 18px;
  22615. color: #606266;
  22616. padding-bottom: 10px;
  22617. margin: 10px 0;
  22618. border-bottom: 1px solid #eaeaea;
  22619. }
  22620. .drawPBox img {
  22621. width: 500px;
  22622. height: 300px;
  22623. object-fit: contain;
  22624. cursor: pointer;
  22625. margin: 0 auto;
  22626. }
  22627. .sentenBox {
  22628. background: #fff;
  22629. height: 450px;
  22630. overflow: auto;
  22631. background-image: url("../assets/icon/conSentences/stuBg.png");
  22632. background-position: 102%;
  22633. background-repeat: no-repeat;
  22634. background-size: 60%;
  22635. }
  22636. .addSen {
  22637. background: #409efe;
  22638. width: 90px;
  22639. color: #fff;
  22640. height: 35px;
  22641. text-align: center;
  22642. line-height: 35px;
  22643. border-radius: 5px;
  22644. float: right;
  22645. margin: 10px 20px 0 0;
  22646. cursor: pointer;
  22647. }
  22648. .sentenTop {
  22649. display: flex;
  22650. flex-direction: row;
  22651. flex-wrap: nowrap;
  22652. align-items: center;
  22653. padding: 55px 0 0 20px;
  22654. box-sizing: border-box;
  22655. }
  22656. .sentenTop > div:nth-child(2) {
  22657. width: 300px;
  22658. margin: 0 15px;
  22659. }
  22660. .sentenTop > div:nth-child(3) {
  22661. background: #409efe;
  22662. color: #fff;
  22663. width: 65px;
  22664. height: 35px;
  22665. text-align: center;
  22666. line-height: 35px;
  22667. border-radius: 5px;
  22668. cursor: pointer;
  22669. }
  22670. .cardList,
  22671. .cardList1 {
  22672. padding: 10px 0 10px 0;
  22673. display: flex;
  22674. flex-direction: row;
  22675. flex-wrap: wrap;
  22676. align-items: center;
  22677. box-sizing: border-box;
  22678. border-bottom: 1px solid #f4f4f4;
  22679. width: 98%;
  22680. margin: 0 auto;
  22681. min-width: 60%;
  22682. max-width: 85%;
  22683. }
  22684. .cardList1 {
  22685. padding: 10px 0 10px 10px !important;
  22686. margin: 0 !important;
  22687. }
  22688. .cardBox {
  22689. display: flex;
  22690. flex-direction: row;
  22691. flex-wrap: wrap;
  22692. align-items: center;
  22693. align-content: center;
  22694. }
  22695. .cardBox > div {
  22696. margin-bottom: 10px;
  22697. }
  22698. .isCard,
  22699. .isChooseCard,
  22700. .noCard,
  22701. .isCard1 {
  22702. width: 130px;
  22703. height: 60px;
  22704. text-align: center;
  22705. line-height: 60px;
  22706. font-size: 20px;
  22707. cursor: pointer;
  22708. background-image: url("../assets/icon/conSentences/titleBorder.png");
  22709. background-size: cover;
  22710. transition: all 2s;
  22711. margin-right: 20px;
  22712. }
  22713. .isCard > div,
  22714. .noCard > div,
  22715. .isCard1 > div {
  22716. white-space: nowrap;
  22717. overflow: hidden;
  22718. text-overflow: ellipsis;
  22719. width: 75%;
  22720. margin: 0 auto;
  22721. }
  22722. .noCard {
  22723. background-image: none;
  22724. }
  22725. .isCard1 {
  22726. background-image: url("../assets/icon/conSentences/answerBorder.png");
  22727. }
  22728. .isChooseCard {
  22729. background-image: none;
  22730. border: 1px dashed #b9b9b9;
  22731. border-radius: 10px;
  22732. }
  22733. .card {
  22734. width: 130px;
  22735. height: 60px;
  22736. }
  22737. .card > img {
  22738. width: 100%;
  22739. height: 100%;
  22740. }
  22741. .rightCardBox {
  22742. margin: 10px 0 0 10px;
  22743. }
  22744. .rightCardBox > div:nth-child(1) {
  22745. margin-bottom: 10px;
  22746. }
  22747. .cardCss {
  22748. display: flex;
  22749. flex-direction: column;
  22750. flex-wrap: nowrap;
  22751. align-items: center;
  22752. border-bottom: 3px solid #b4c3d3;
  22753. padding: 0 0 5px 0;
  22754. margin-right: 10px;
  22755. }
  22756. .cardCss > div:nth-child(2) {
  22757. background: #5b7b9d;
  22758. color: #fff;
  22759. width: 20px;
  22760. height: 20px;
  22761. border-radius: 50%;
  22762. text-align: center;
  22763. line-height: 20px;
  22764. }
  22765. .isWrong {
  22766. display: flex;
  22767. flex-direction: row;
  22768. flex-wrap: nowrap;
  22769. align-content: center;
  22770. align-items: center;
  22771. }
  22772. .answerRight {
  22773. width: 25%;
  22774. }
  22775. .isTj {
  22776. display: flex;
  22777. flex-direction: row;
  22778. flex-wrap: nowrap;
  22779. align-items: center;
  22780. }
  22781. .isTj > div:nth-child(2) {
  22782. color: #727070;
  22783. margin-left: 10px;
  22784. }
  22785. .isTjImg {
  22786. width: 30px;
  22787. height: 30px;
  22788. }
  22789. .isTjImg > img {
  22790. width: 100%;
  22791. height: 100%;
  22792. }
  22793. .cardAnswerBox {
  22794. font-size: 18px;
  22795. width: 97%;
  22796. border: 5px;
  22797. padding: 0;
  22798. border-radius: 5px;
  22799. margin: 10px auto;
  22800. word-break: break-word;
  22801. }
  22802. .w_name {
  22803. margin-bottom: 10px;
  22804. }
  22805. .w_name span {
  22806. font-size: 16px;
  22807. }
  22808. .w_teachert {
  22809. width: 50px !important;
  22810. position: absolute;
  22811. height: auto !important;
  22812. z-index: 10;
  22813. right: 25px;
  22814. top: -25px;
  22815. }
  22816. .group_workBox {
  22817. }
  22818. .group_workBox + .group_workBox {
  22819. margin-top: 20px;
  22820. }
  22821. .group_box {
  22822. padding-bottom: 20px;
  22823. border-bottom: 2px solid #f0f0f0;
  22824. margin-top: 10px;
  22825. }
  22826. .group_title {
  22827. display: flex;
  22828. align-items: center;
  22829. justify-content: space-between;
  22830. width: 95%;
  22831. }
  22832. .group_name {
  22833. background-image: url(../assets/icon/groupN.png);
  22834. width: 220px;
  22835. background-size: 100% 100%;
  22836. height: 67px;
  22837. padding: 0 20px 0 43px;
  22838. box-sizing: border-box;
  22839. line-height: 63px;
  22840. color: #fff;
  22841. overflow: hidden;
  22842. white-space: nowrap;
  22843. text-overflow: ellipsis;
  22844. }
  22845. .group_work {
  22846. width: 100%;
  22847. padding: 0 10px;
  22848. box-sizing: border-box;
  22849. display: flex;
  22850. flex-wrap: wrap;
  22851. }
  22852. .g_d_box {
  22853. display: flex;
  22854. flex-flow: wrap;
  22855. justify-content: space-around;
  22856. }
  22857. .g_d_box .isChair {
  22858. background-image: url(../assets/avatar.png) !important;
  22859. }
  22860. .g_d_group {
  22861. width: 500px;
  22862. margin-bottom: 80px;
  22863. }
  22864. .g_d_group_chair {
  22865. display: flex;
  22866. align-items: center;
  22867. justify-content: center;
  22868. }
  22869. .g_d_group_chair > div + div {
  22870. margin-left: 30px;
  22871. }
  22872. .g_d_group_chair > div,
  22873. .g_d_group_chair2 > div {
  22874. display: flex;
  22875. flex-direction: column;
  22876. align-items: center;
  22877. }
  22878. .g_d_group_chair > div > span:nth-child(1),
  22879. .g_d_group_chair2 > div > span:nth-child(1) {
  22880. background-image: url(../assets/icon/chair.png);
  22881. width: 50px;
  22882. height: 50px;
  22883. display: block;
  22884. background-size: 100% 100%;
  22885. }
  22886. .g_d_group_tableBox {
  22887. display: flex;
  22888. align-items: center;
  22889. justify-content: center;
  22890. }
  22891. .g_d_group_chair2 {
  22892. display: flex;
  22893. flex-direction: column;
  22894. align-items: center;
  22895. justify-content: center;
  22896. }
  22897. .g_d_group_chair2 > div + div {
  22898. margin-top: 10px;
  22899. }
  22900. .g_d_group_table {
  22901. background-image: url(../assets/icon/groupBg.png);
  22902. width: 354px;
  22903. height: 196px;
  22904. background-size: 100% 100%;
  22905. display: flex;
  22906. align-items: center;
  22907. justify-content: center;
  22908. flex-direction: column;
  22909. color: #fff;
  22910. }
  22911. .g_d_group_table > div:nth-child(1) {
  22912. font-size: 24px;
  22913. margin-bottom: 5px;
  22914. }
  22915. .g_d_group_table > div:nth-child(2) div {
  22916. cursor: pointer;
  22917. background: #2e77bf;
  22918. padding: 4px 10px;
  22919. border-radius: 5px;
  22920. }
  22921. .groupBox {
  22922. }
  22923. .groupContent + .groupContent {
  22924. margin-top: 30px;
  22925. }
  22926. .groupTitle {
  22927. font-size: 24px;
  22928. color: rgb(80, 80, 80);
  22929. margin-bottom: 20px;
  22930. }
  22931. .groupName {
  22932. display: flex;
  22933. align-items: center;
  22934. }
  22935. .groupn {
  22936. font-size: 15px;
  22937. margin-right: 10px;
  22938. }
  22939. .groupName + .groupName {
  22940. margin-top: 15px;
  22941. }
  22942. .groupBtn {
  22943. margin-left: 10px;
  22944. }
  22945. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  22946. text-align: left;
  22947. }
  22948. .g_d_btnBox {
  22949. display: flex;
  22950. justify-content: flex-end;
  22951. align-items: center;
  22952. margin-bottom: 20px;
  22953. }
  22954. .updateChair {
  22955. position: relative;
  22956. }
  22957. .updateChairBtn {
  22958. position: absolute;
  22959. width: 50px;
  22960. height: 50px;
  22961. overflow: hidden;
  22962. /* display: flex; */
  22963. align-items: center;
  22964. justify-content: center;
  22965. background: #00000087;
  22966. color: #fff;
  22967. border-radius: 50px;
  22968. display: none;
  22969. cursor: pointer;
  22970. }
  22971. .updateChair:hover .updateChairBtn {
  22972. display: flex;
  22973. }
  22974. .group_staic_box {
  22975. display: flex;
  22976. padding: 30px 40px 10px;
  22977. flex-wrap: wrap;
  22978. }
  22979. .group_staic {
  22980. /* width: 50%; */
  22981. margin-bottom: 20px;
  22982. display: flex;
  22983. align-items: center;
  22984. }
  22985. .group_staic span:nth-child(1) {
  22986. width: 150px;
  22987. text-align: right;
  22988. margin-right: 15px;
  22989. }
  22990. .group_staic span:nth-child(2) {
  22991. background: rgb(0 123 255);
  22992. color: #fff;
  22993. border-radius: 5px;
  22994. padding: 5px;
  22995. }
  22996. .codeFileBox {
  22997. height: 300px;
  22998. background: #fff;
  22999. display: flex;
  23000. align-items: center;
  23001. justify-content: center;
  23002. }
  23003. .codeFileBox img {
  23004. width: 200px;
  23005. margin: 0;
  23006. height: auto;
  23007. }
  23008. .codeFileBox div {
  23009. background: rgb(80, 142, 226);
  23010. color: #fff;
  23011. padding: 10px 20px;
  23012. border-radius: 25px;
  23013. cursor: pointer;
  23014. margin-left: 15px;
  23015. }
  23016. .radioBox {
  23017. display: flex;
  23018. flex-direction: column;
  23019. flex-wrap: nowrap;
  23020. align-items: flex-start;
  23021. }
  23022. .radioBox > div {
  23023. margin: 10px 0 0 10px;
  23024. }
  23025. /* .radioBox >>> .el-radio__input,
  23026. .radioBox >>> .el-checkbox__inner {
  23027. margin-left: 10px;
  23028. } */
  23029. .radioBox >>> .el-radio__label,
  23030. .radioBox >>> .el-checkbox__label {
  23031. display: flex;
  23032. align-items: center;
  23033. width: 100%;
  23034. }
  23035. .radioBox >>> .el-radio__label > span {
  23036. width: 100%;
  23037. display: -webkit-box;
  23038. overflow: hidden;
  23039. white-space: normal !important;
  23040. text-overflow: ellipsis;
  23041. word-wrap: break-word;
  23042. }
  23043. .inImg {
  23044. width: 100px;
  23045. cursor: pointer;
  23046. }
  23047. .inImg > img {
  23048. width: 100%;
  23049. height: 100%;
  23050. object-fit: cover;
  23051. }
  23052. .timuImgBox {
  23053. margin: 10px 0;
  23054. display: flex;
  23055. flex-direction: column;
  23056. flex-wrap: wrap;
  23057. align-items: flex-start;
  23058. }
  23059. .timuImg {
  23060. width: 150px;
  23061. margin: 5px 0;
  23062. cursor: pointer;
  23063. }
  23064. .timuImg > img {
  23065. width: 100%;
  23066. height: 100%;
  23067. object-fit: cover;
  23068. }
  23069. .worksTop {
  23070. display: flex;
  23071. flex-direction: row;
  23072. align-items: flex-end;
  23073. }
  23074. .worksTitle{
  23075. display: flex;
  23076. flex-direction: row;
  23077. flex-wrap: nowrap;
  23078. align-items: center;
  23079. }
  23080. .worksTitle::before,.worksTop::before{
  23081. content: '';
  23082. display: block;
  23083. width: 3px;
  23084. height: 20px;
  23085. background: #0061FF;
  23086. border-radius: 3px;
  23087. margin: 0 5px 0 0;
  23088. }
  23089. .corOpen {
  23090. margin: 0 0 0 10px;
  23091. font-size: 14px;
  23092. cursor: pointer;
  23093. color: #505050;
  23094. }
  23095. .corOpen:hover {
  23096. color: #499eef;
  23097. }
  23098. .navCorOpenBox {
  23099. display: flex;
  23100. flex-direction: row;
  23101. align-items: center;
  23102. justify-content: space-between;
  23103. height: 55px;
  23104. background: #ffffff;
  23105. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23106. border-radius: 8px 8px 0px 0px;
  23107. z-index: 9;
  23108. position: relative;
  23109. }
  23110. .navCorOpen {
  23111. padding-right: 15px;
  23112. cursor: pointer;
  23113. width: 45px;
  23114. display: flex;
  23115. }
  23116. .navCorOpen > img {
  23117. width: 100%;
  23118. height: 100%;
  23119. }
  23120. .mlImg {
  23121. width: 40px !important;
  23122. min-width: 40px;
  23123. cursor: pointer;
  23124. transform: rotate(180deg);
  23125. }
  23126. .mlImg > img {
  23127. width: 100%;
  23128. height: 100%;
  23129. }
  23130. .navLeftCss {
  23131. width: 100% !important;
  23132. left: 0 !important;
  23133. }
  23134. .isContentCss {
  23135. width: 100% !important;
  23136. }
  23137. .isAllWidth {
  23138. width: 100% !important;
  23139. }
  23140. .group_switch {
  23141. margin-right: 10px;
  23142. height: 30px;
  23143. display: flex;
  23144. align-items: center;
  23145. }
  23146. .group_switch > span {
  23147. margin-right: 5px;
  23148. }
  23149. .fileC_box {
  23150. padding-top: 15px;
  23151. }
  23152. .fileC_box > .fileC_title {
  23153. padding: 10px 5px 14px 10px;
  23154. border-top: 1px solid #cad1dc;
  23155. font-size: 14px;
  23156. font-weight: 400;
  23157. color: #cad1dc;
  23158. width: calc(100% - 20px);
  23159. margin: 0 auto;
  23160. box-sizing: border-box;
  23161. }
  23162. .pl_select_box {
  23163. height: 40px;
  23164. line-height: 40px;
  23165. width: 100%;
  23166. cursor: pointer;
  23167. padding: 0 20px;
  23168. box-sizing: border-box;
  23169. border-radius: 5px;
  23170. border: 1px solid #d6d6d6;
  23171. white-space: nowrap;
  23172. overflow: hidden;
  23173. text-overflow: ellipsis;
  23174. background: #fff;
  23175. text-align: left;
  23176. }
  23177. .newButton {
  23178. width: 102px;
  23179. height: 36px;
  23180. background: #e7ebf1;
  23181. border-radius: 4px;
  23182. color: #0e1e33;
  23183. font-weight: 400;
  23184. font-size: 14px;
  23185. border: none;
  23186. float: right;
  23187. margin-left: 10px;
  23188. }
  23189. .el-table >>> .even_row {
  23190. background-color: #f0f4fa;
  23191. }
  23192. .stageBoxCss,
  23193. .stageBoxIsCss {
  23194. display: flex;
  23195. flex-direction: row;
  23196. flex-wrap: nowrap;
  23197. align-items: center;
  23198. height: 50px;
  23199. border-bottom: 1px solid #e2f5fc;
  23200. cursor: pointer;
  23201. width: 100%;
  23202. }
  23203. .stageBoxIsCss {
  23204. background: #0061ff;
  23205. color: #fff;
  23206. border-radius: 8px;
  23207. }
  23208. .stageItemTitle {
  23209. display: flex;
  23210. flex-direction: row;
  23211. flex-wrap: nowrap;
  23212. align-items: center;
  23213. margin-left: 15px;
  23214. width: calc(100% - 50px);
  23215. }
  23216. .stageNav{
  23217. /* font-weight: bold; */
  23218. }
  23219. .stageItemTitle > div:first-child {
  23220. min-width: 55px;
  23221. }
  23222. .stageItemTitle > div:last-child {
  23223. max-width: 242px;
  23224. white-space: nowrap;
  23225. overflow: hidden;
  23226. text-overflow: ellipsis;
  23227. word-break: break-word;
  23228. width: calc(100% - 55px);
  23229. }
  23230. .closeTri,
  23231. .closeTri1 {
  23232. min-width: 15px;
  23233. width: 15px;
  23234. height: 15px;
  23235. transition: all .5s;
  23236. }
  23237. .closeTri1 {
  23238. padding-left: 10px;
  23239. cursor: pointer;
  23240. }
  23241. .closeTri > img,
  23242. .closeTri1 > img {
  23243. width: 100%;
  23244. height: 100%;
  23245. /* transition: all .5s; */
  23246. }
  23247. .noToolBlue {
  23248. min-width: 10px;
  23249. width: 10px;
  23250. height: 10px;
  23251. background: #0061ff;
  23252. border-radius: 50%;
  23253. margin-left: 13px;
  23254. }
  23255. .stageChild,
  23256. .toolChild {
  23257. height: 0;
  23258. overflow: hidden;
  23259. transition: all 0.5s;
  23260. }
  23261. .toolChild {
  23262. /* margin: 0 0 0 17px;
  23263. padding: 0 0 0 20px;
  23264. border-left: 1px solid #d7d7d7; */
  23265. }
  23266. .toolChild > div + div{
  23267. margin-top:5px;
  23268. }
  23269. .gjCss {
  23270. display: flex;
  23271. flex-direction: row;
  23272. flex-wrap: nowrap;
  23273. align-items: center;
  23274. padding: 10px 0 10px 40px;
  23275. box-sizing: border-box;
  23276. font-size: 14px;
  23277. cursor: pointer;
  23278. border-radius:5px;
  23279. }
  23280. .toolChild > div {
  23281. position: relative;
  23282. width:100%;
  23283. }
  23284. .toolChild > div::before {
  23285. /* content: "";
  23286. width: 15px;
  23287. height: 1px;
  23288. background: #cad1dc;
  23289. position: absolute;
  23290. top: 24px;
  23291. left: -20px;
  23292. display: block; */
  23293. }
  23294. .isGjCss {
  23295. /* color: #0061ff; */
  23296. color:#fff;
  23297. background: rgb(55, 129, 252);
  23298. /* background-color: #e0eafb !important;
  23299. color: #0061ff !important; */
  23300. }
  23301. .navItem {
  23302. background: #ffffff;
  23303. border-radius: 4px;
  23304. width: 100%;
  23305. margin: 10px auto;
  23306. position: relative;
  23307. height: 40px;
  23308. display: flex;
  23309. flex-direction: row;
  23310. flex-wrap: nowrap;
  23311. align-items: center;
  23312. }
  23313. .navItemList {
  23314. display: flex;
  23315. flex-direction: row;
  23316. flex-wrap: nowrap;
  23317. align-items: center;
  23318. padding: 0 13px;
  23319. cursor: pointer;
  23320. width: calc(100% - 60px);
  23321. height: 100%;
  23322. }
  23323. .navItemList > div:first-child {
  23324. min-width: 60px;
  23325. }
  23326. .navItemList > div:last-child {
  23327. width: calc(100% - 80px);
  23328. white-space: nowrap;
  23329. overflow: hidden;
  23330. text-overflow: ellipsis;
  23331. word-break: break-word;
  23332. }
  23333. /* .isItemList > div {
  23334. color: #fff !important;
  23335. } */
  23336. .tool_work_box {
  23337. width: 100%;
  23338. padding: 0 37px 0;
  23339. box-sizing: border-box;
  23340. }
  23341. .tool_box {
  23342. width: 100%;
  23343. padding: 0 0 0 20px;
  23344. }
  23345. .tool_type_box {
  23346. display: flex;
  23347. flex-direction: row;
  23348. align-items: baseline;
  23349. flex-wrap: nowrap;
  23350. justify-content: flex-start;
  23351. position: relative;
  23352. }
  23353. .toolSort {
  23354. display: flex;
  23355. flex-direction: row;
  23356. flex-wrap: wrap;
  23357. justify-content: flex-start;
  23358. align-items: flex-start;
  23359. padding: 0 0 15px 0;
  23360. }
  23361. .toolSort > div {
  23362. margin: 0 10px 0 0;
  23363. width: 135px;
  23364. box-sizing: border-box;
  23365. border: 2px solid transparent;
  23366. }
  23367. .tools {
  23368. width: 100%;
  23369. display: flex;
  23370. flex-direction: column;
  23371. flex-wrap: nowrap;
  23372. align-items: flex-start;
  23373. }
  23374. .whiteBIcon {
  23375. width: fit-content;
  23376. cursor: pointer;
  23377. display: flex;
  23378. flex-direction: column;
  23379. flex-wrap: nowrap;
  23380. align-items: center;
  23381. font-size: 14px;
  23382. }
  23383. .tool:hover {
  23384. border: 2px solid #a5c7ff;
  23385. border-radius: 5px;
  23386. }
  23387. .whiteBIcon > img {
  23388. width: 65px;
  23389. height: 100%;
  23390. }
  23391. .whiteBIcon > img {
  23392. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  23393. border-radius: 15px;
  23394. }
  23395. .check {
  23396. /* width: 20px;
  23397. height: 20px; */
  23398. cursor: pointer;
  23399. margin: 10px 0;
  23400. position: absolute;
  23401. right: 2px;
  23402. top: -5px;
  23403. }
  23404. .noChoose,
  23405. .isChoose {
  23406. width: 15px;
  23407. height: 15px;
  23408. border-radius: 50%;
  23409. border: 1px solid #adadad;
  23410. }
  23411. .isChoose {
  23412. border: 4px solid #0363ff !important;
  23413. width: 10px;
  23414. height: 10px;
  23415. }
  23416. .isToolChoose {
  23417. border: 2px solid #5394ff !important;
  23418. border-radius: 5px;
  23419. box-shadow: 0 0 6px 0px #5394ff;
  23420. }
  23421. .checkDiv {
  23422. display: flex;
  23423. align-items: center;
  23424. }
  23425. .checkDiv span {
  23426. margin-left: 5px;
  23427. color: #858585;
  23428. }
  23429. .check img {
  23430. width: 20px;
  23431. height: 20px;
  23432. }
  23433. .lockTaskIcon {
  23434. width: 20px;
  23435. height: 20px;
  23436. position: absolute;
  23437. right: 10px;
  23438. top: 5px;
  23439. }
  23440. .lockTaskIcon > img {
  23441. width: 100%;
  23442. height: 100%;
  23443. }
  23444. .pick_box {
  23445. display: flex;
  23446. align-items: flex-start;
  23447. flex-wrap: wrap;
  23448. }
  23449. .selectBox {
  23450. width: 110px;
  23451. margin-left: 10px;
  23452. margin: 0 10px 0 auto;
  23453. }
  23454. .selectBox >>> .el-input__inner {
  23455. height: 30px;
  23456. line-height: 30px;
  23457. }
  23458. .selectBox >>> .el-input__icon {
  23459. line-height: 30px;
  23460. }
  23461. .sentenceTitle {
  23462. display: flex;
  23463. flex-direction: row;
  23464. flex-wrap: nowrap;
  23465. align-items: center;
  23466. }
  23467. .sentenceTitle::before {
  23468. content: attr(index);
  23469. background: #3681fc;
  23470. border-radius: 50%;
  23471. color: #fff;
  23472. width: 25px;
  23473. height: 25px;
  23474. min-width: 25px;
  23475. min-height: 25px;
  23476. text-align: center;
  23477. line-height: 25px;
  23478. margin-right: 5px;
  23479. }
  23480. .hfBox {
  23481. padding: 10px;
  23482. box-sizing: border-box;
  23483. }
  23484. .whoReplyWho {
  23485. display: flex;
  23486. flex-direction: row;
  23487. flex-wrap: nowrap;
  23488. align-items: baseline;
  23489. justify-content: flex-start;
  23490. }
  23491. .hfBottom {
  23492. display: flex;
  23493. flex-direction: row;
  23494. flex-wrap: nowrap;
  23495. align-items: center;
  23496. justify-content: space-between;
  23497. font-size: 14px;
  23498. }
  23499. .deleteHfItem {
  23500. cursor: pointer;
  23501. width: 20px;
  23502. height: 20px;
  23503. }
  23504. .deleteHfItem > img {
  23505. width: 100%;
  23506. height: 100%;
  23507. }
  23508. .whoReplyWho > .hfImg {
  23509. width: 12px;
  23510. height: 12px;
  23511. margin: 0 5px;
  23512. }
  23513. .whoReplyWho > .hfImg > img {
  23514. width: 100%;
  23515. height: 100%;
  23516. }
  23517. .hfContent {
  23518. padding-top: 10px;
  23519. box-sizing: border-box;
  23520. display: -webkit-box;
  23521. overflow: hidden;
  23522. white-space: normal !important;
  23523. text-overflow: ellipsis;
  23524. word-wrap: break-word;
  23525. -webkit-box-orient: vertical;
  23526. }
  23527. .hfTime {
  23528. text-align: left;
  23529. box-sizing: border-box;
  23530. padding: 10px 0 10px 0px;
  23531. color: #bfbfbf;
  23532. font-size: 14px;
  23533. }
  23534. .btnAllNT {
  23535. position: fixed;
  23536. bottom: 100px;
  23537. right: 40px;
  23538. z-index: 999;
  23539. display: flex;
  23540. flex-direction: row;
  23541. }
  23542. .btnAllNT > img {
  23543. cursor: pointer;
  23544. width: 80px;
  23545. }
  23546. .toolMask {
  23547. position: fixed;
  23548. width: 100%;
  23549. height: 100%;
  23550. background: #3f3c3c;
  23551. opacity: 0.5;
  23552. top: 0;
  23553. left: 0;
  23554. z-index: 999;
  23555. }
  23556. .addToolCss {
  23557. position: fixed;
  23558. z-index: 999;
  23559. background: #fff;
  23560. right: 5%;
  23561. bottom: 18%;
  23562. min-width: 1035px;
  23563. min-height: 300px;
  23564. border-radius: 10px;
  23565. box-shadow: 0 0 8px 1px #b2b2b2;
  23566. }
  23567. .toolTop {
  23568. display: flex;
  23569. flex-direction: row;
  23570. flex-wrap: nowrap;
  23571. justify-content: space-between;
  23572. align-items: center;
  23573. padding: 20px;
  23574. }
  23575. .toolTop > div:nth-child(2) {
  23576. width: 15px;
  23577. height: 15px;
  23578. padding-right: 10px;
  23579. cursor: pointer;
  23580. }
  23581. .toolTop > div:nth-child(2) > img {
  23582. width: 100%;
  23583. height: 100%;
  23584. }
  23585. .fullStyle>>>.el-dialog__body {
  23586. height: calc(100% - 125px) !important;
  23587. box-sizing: border-box;
  23588. padding: 30px 0 !important;
  23589. background: #fff !important;
  23590. }
  23591. .fullStyle>>>.el-dialog {
  23592. width: 100% !important;
  23593. max-width: 100% !important;
  23594. height: 100% !important;
  23595. margin: 0 !important;
  23596. }
  23597. .fullStyle {
  23598. width: 100% !important;
  23599. max-width: 100% !important;
  23600. height: 100% !important;
  23601. margin: 0 auto !important;
  23602. }
  23603. .fullStyle>>>.el-dialog__footer{
  23604. background: #fff !important;
  23605. }
  23606. .engUpBox {
  23607. width: 100%;
  23608. height: 100%;
  23609. }
  23610. .engTitle,
  23611. .engText {
  23612. display: flex;
  23613. flex-direction: row;
  23614. flex-wrap: nowrap;
  23615. align-items: flex-start;
  23616. padding: 0 20px 20px 20px;
  23617. box-sizing: border-box;
  23618. }
  23619. .engTitle > .div:first-child,
  23620. .engText > div:first-child {
  23621. min-width: 75px;
  23622. }
  23623. .correctBox{
  23624. width: 100%;
  23625. display: flex;
  23626. flex-direction: row;
  23627. flex-wrap: nowrap;
  23628. align-items: flex-start;
  23629. }
  23630. .oldBox{
  23631. width: 50%;
  23632. height: 100%;
  23633. display: flex;
  23634. flex-direction: column;
  23635. flex-wrap: nowrap;
  23636. align-items: center;
  23637. border-top: 1px solid #d9d9d9;
  23638. border-left: 1px solid #d9d9d9;
  23639. border-right: 1px solid #d9d9d9;
  23640. }
  23641. .oldBox>div:first-child{
  23642. width: 100%;
  23643. text-align: center;
  23644. background: #d9d9d9;
  23645. height: 35px;
  23646. line-height: 35px;
  23647. font-weight: bold;
  23648. }
  23649. .oldText{
  23650. width: 100%;
  23651. height: calc(100% - 35px);
  23652. overflow: auto;
  23653. margin: 10px 0;
  23654. display: flex;
  23655. flex-direction: column;
  23656. flex-wrap: nowrap;
  23657. align-content: center;
  23658. align-items: center;
  23659. }
  23660. .detailBox{
  23661. width: 50%;
  23662. padding: 10px;
  23663. background: #f6f6f6;
  23664. border-radius: 5px;
  23665. }
  23666. .oldDetail,.oldDetail1{
  23667. padding-bottom: 30px;
  23668. }
  23669. .oldImg{
  23670. width:30px;
  23671. height: 30px;
  23672. }
  23673. .oldImg>img{
  23674. width: 100%;
  23675. height: 100%;
  23676. }
  23677. .allName{
  23678. min-width: 200px;
  23679. white-space: nowrap;
  23680. overflow: hidden;
  23681. text-overflow: ellipsis;
  23682. word-break: break-word;
  23683. cursor: pointer;
  23684. text-align: center;
  23685. border: 1px solid #bcc2cc;
  23686. box-sizing: border-box;
  23687. }
  23688. .engUpTop{
  23689. max-height: 300px;
  23690. overflow: auto;
  23691. }
  23692. .isUpdateToolDetailClass{
  23693. padding: 0 !important;
  23694. }
  23695. .isUpdateToolDetailClass textarea{
  23696. padding:12px;
  23697. font-size: 16px;
  23698. min-height:100%;
  23699. width: 100%;
  23700. box-sizing:border-box;
  23701. outline: none;
  23702. border:none;
  23703. line-height: 30px;
  23704. resize: none;
  23705. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  23706. color: #838383;
  23707. }
  23708. .show_taskD {
  23709. min-width: fit-content;
  23710. margin-left: 10px;
  23711. display: flex;
  23712. align-items: center;
  23713. font-size: 14px;
  23714. cursor: pointer;
  23715. color: #717c8d;
  23716. }
  23717. .show_taskD > img {
  23718. width: 15px;
  23719. margin-right: 5px;
  23720. transition: 0.2s all;
  23721. transform: rotate(-90deg);
  23722. }
  23723. .show_taskD.show > img {
  23724. transform: rotate(0deg);
  23725. }
  23726. .correctCss{
  23727. position: absolute;
  23728. bottom: -70px;
  23729. background: #409eff;
  23730. color: #fff;
  23731. }
  23732. </style>