studyStudent.vue 813 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543
  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" v-if="false">
  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. <!-- :class="{ navLeftCss: !mlDialog }" -->
  240. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  241. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  242. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  243. <div class="courseIndex" :style="{width: orgArray.includes(org) ? '100%' : 'calc(100% - 745px)'}">
  244. <div>任务{{ taskCount + 1 }}</div>
  245. <el-tooltip
  246. effect="light"
  247. :content="
  248. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  249. "
  250. placement="top"
  251. >
  252. <div>
  253. {{
  254. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  255. .task
  256. }}
  257. </div>
  258. </el-tooltip>
  259. </div>
  260. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)"><!--v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'"-->
  261. <div class="btnLeft">
  262. <el-tooltip effect="light" content="刷新" placement="top">
  263. <div class="reBtnIcon" @click="refreshCourse">
  264. <span>刷新</span>
  265. </div>
  266. </el-tooltip>
  267. <el-tooltip effect="light" content="评论" placement="top">
  268. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  269. <span>评论</span>
  270. </div>
  271. </el-tooltip>
  272. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  273. <el-tooltip effect="light" content="录制" placement="top">
  274. <div class="vedioIcon" @click="startRecording">
  275. <span>录制</span>
  276. </div>
  277. </el-tooltip>
  278. </div>
  279. <div v-else-if="tType == 1 || tType == 4">
  280. <el-tooltip effect="light" content="下载" placement="top">
  281. <div class="vedioIcon1" @click="stopRecording">
  282. <span>下载</span>
  283. </div>
  284. </el-tooltip>
  285. </div>
  286. </div>
  287. <div class="btnRight">
  288. <div
  289. class="last"
  290. @click="nextOrpreSteps(0)"
  291. v-if="!(IsFollow && tType == 2)"
  292. @mouseover="isHovered = true"
  293. @mouseout="isHovered = false"
  294. >
  295. <div class="lastImg">
  296. <img
  297. :src="
  298. isHovered
  299. ? require('../assets/icon/newIcons/whiteLast.png')
  300. : require('../assets/icon/newIcons/last.png')
  301. "
  302. alt=""
  303. />
  304. </div>
  305. <div class="lastText">上一步</div>
  306. </div>
  307. <div
  308. class="last"
  309. @click="nextOrpreSteps(1)"
  310. v-if="!(IsFollow && tType == 2)"
  311. @mouseover="isHovered1 = true"
  312. @mouseout="isHovered1 = false"
  313. >
  314. <div class="lastText">下一步</div>
  315. <div class="lastImg">
  316. <img
  317. :src="
  318. isHovered1
  319. ? require('../assets/icon/newIcons/whiteNext.png')
  320. : require('../assets/icon/newIcons/next.png')
  321. "
  322. alt=""
  323. />
  324. </div>
  325. </div>
  326. <div
  327. class="last"
  328. @click="juriVisible = true"
  329. v-if="tType == 1"
  330. @mouseover="isHovered2 = true"
  331. @mouseout="isHovered2 = false"
  332. >
  333. <div class="lastImg">
  334. <img
  335. :src="
  336. isHovered2
  337. ? require('../assets/icon/newIcons/whiteLock.png')
  338. : require('../assets/icon/newIcons/lock.png')
  339. "
  340. alt=""
  341. />
  342. </div>
  343. <div class="lastText">权限</div>
  344. </div>
  345. <div
  346. class="returnBtn1 returnIcon"
  347. @click.stop="
  348. goTo(
  349. '/courseDetail?userid=' +
  350. userid +
  351. '&oid=' +
  352. oid +
  353. '&org=' +
  354. org +
  355. '&cid=' +
  356. classId +
  357. '&courseId=' +
  358. id +
  359. '&tType=' +
  360. tType +
  361. '&screenType=' +
  362. screenType
  363. )
  364. "
  365. >
  366. <div class="lastImg">
  367. <img src="../assets/icon/newIcon/return.png" alt="" />
  368. </div>
  369. <div class="lastText" style="color: #000">返回</div>
  370. </div>
  371. </div>
  372. <!-- <div
  373. class="returnBtn lockIcon"
  374. @click="juriVisible = true"
  375. v-if="tType == 1"
  376. >
  377. 权限
  378. </div>
  379. <div
  380. class="returnBtn vedioIcon"
  381. @click="startRecording"
  382. v-if="!videoStart && (tType == 1 || tType == 4)"
  383. >
  384. 录制
  385. </div>
  386. <div
  387. class="returnBtn"
  388. @click="stopRecording"
  389. v-else-if="tType == 1 || tType == 4"
  390. style="background: #ee5255"
  391. >
  392. 下载
  393. </div>
  394. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  395. 评论
  396. </div>
  397. <div
  398. class="returnBtn"
  399. @click="nextOrpreSteps(0)"
  400. v-if="!(IsFollow && tType == 2)"
  401. >
  402. 上一步
  403. </div>
  404. <div
  405. class="returnBtn"
  406. @click="nextOrpreSteps(1)"
  407. v-if="!(IsFollow && tType == 2)"
  408. >
  409. 下一步
  410. </div>
  411. <div class="returnBtn" @click="refreshCourse">刷新</div>
  412. <div
  413. class="returnBtn returnIcon"
  414. @click.stop="
  415. goTo(
  416. '/courseDetail?userid=' +
  417. userid +
  418. '&oid=' +
  419. oid +
  420. '&org=' +
  421. org +
  422. '&cid=' +
  423. classId +
  424. '&courseId=' +
  425. id +
  426. '&tType=' +
  427. tType +
  428. '&screenType=' +
  429. screenType
  430. )
  431. "
  432. >
  433. 返回
  434. </div> -->
  435. </div>
  436. </div>
  437. <div
  438. class="isNoMessage"
  439. v-if="
  440. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  441. .chapterData.length == 0 &&
  442. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  443. .toolChoose[0].tool.length == 0 &&
  444. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  445. .taskDetail == '' &&
  446. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  447. .eList &&
  448. !(
  449. courseDetail.userid == userid ||
  450. (courseDetail.course_teacher &&
  451. courseDetail.course_teacher.indexOf(userid) != -1)
  452. )
  453. "
  454. >
  455. <img src="../assets/icon/isNoMessage.png" alt />
  456. </div>
  457. <div class="study_top" :class="{ pzClass: pzDialog }">
  458. <div
  459. class="vedioBox"
  460. v-if="
  461. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  462. .taskDetail != '' ||
  463. vChapterData[taskCount].length > 0 ||
  464. fileC[taskCount].length > 0
  465. "
  466. style="border-radius: 0 0 20px 20px"
  467. >
  468. <div
  469. class="taskBox"
  470. v-if="
  471. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  472. .taskDetail != ''
  473. "
  474. >
  475. <div
  476. style="
  477. display: flex;
  478. flex-wrap: nowrap;
  479. flex-direction: column;
  480. position: relative;
  481. "
  482. >
  483. <div
  484. style="
  485. padding: 15px 0;
  486. line-height: 29px;
  487. font-size: 18px;
  488. color: #0e1e33;
  489. "
  490. class="cont"
  491. v-if="
  492. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  493. .taskDetail != ''
  494. "
  495. v-html="
  496. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  497. .taskDetail
  498. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  499. taskCount
  500. ].taskDetail
  501. : '暂无描述'
  502. "
  503. ></div>
  504. </div>
  505. </div>
  506. <div
  507. class="student_head"
  508. v-if="
  509. vChapterData[taskCount].length > 0 ||
  510. fileC[taskCount].length > 0
  511. "
  512. >
  513. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  514. <div
  515. :class="
  516. contentDialog == false
  517. ? 'box_course isContentCss'
  518. : 'box_course'
  519. "
  520. v-if="
  521. vChapterData.length > 0 &&
  522. vChapterData[taskCount] &&
  523. showType !== ''
  524. "
  525. >
  526. <div class="wheel" style="height: auto" v-if="showType === 0">
  527. <div
  528. class="workd_media"
  529. style="height: 650px; width: calc(100% - 50px)"
  530. >
  531. <video-player
  532. class="video-player vjs-custom-skin"
  533. :class="contentDialog == false ? 'isAllWidth' : ''"
  534. :playsinline="true"
  535. :options="playerO[taskCount]"
  536. @play="onPlayerPlay($event)"
  537. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  538. ></video-player>
  539. </div>
  540. </div>
  541. <div
  542. class="wheel"
  543. v-if="showType == 1"
  544. style="
  545. box-shadow: 0 0 6px 1px #f2f2f2;
  546. width: 95%;
  547. margin: 0 auto;
  548. background: #f1f1f1;
  549. "
  550. >
  551. <div class="title">查看文档</div>
  552. <el-form class="textBox">
  553. <el-form-item class="textTitle">
  554. <div style="font-size: 22px">
  555. {{ text.name }}
  556. </div>
  557. </el-form-item>
  558. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  559. <div v-html="text.url" class="textContent cont"></div>
  560. </el-form>
  561. </div>
  562. <div
  563. class="wheel"
  564. v-if="
  565. pptImgUrl1.indexOf(
  566. 'https://view.officeapps.live.com/op/view.aspx?src='
  567. ) != -1 && showType == 2
  568. "
  569. style="width: 95%; margin: 0 auto"
  570. >
  571. <iframe
  572. style="width: 100%; height: 100%; border: none"
  573. :src="pptImgUrl1"
  574. ></iframe>
  575. </div>
  576. <div
  577. class="wheel"
  578. v-else-if="showType == 2"
  579. style="width: 95%; margin: 0 auto"
  580. >
  581. <iframe
  582. style="width: 100%; height: 100%; border: none"
  583. security="restricted"
  584. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  585. :src="pptImgUrl1"
  586. ></iframe>
  587. </div>
  588. <div
  589. class="wheel"
  590. v-if="showType == 3"
  591. style="width: 95%; margin: 0 auto"
  592. >
  593. <pdf
  594. :pdfUrl="pptImgUrl1"
  595. style="width: 100%; height: 100%; overflow: auto"
  596. ></pdf>
  597. </div>
  598. <div
  599. class="wheel"
  600. v-if="showType == 4"
  601. style="width: 95%; margin: 0 auto"
  602. >
  603. <el-image
  604. :src="pptImgUrl1"
  605. fit="contain"
  606. style="width: 100%; height: 100%; cursor: pointer"
  607. @click="previewImg(pptImgUrl1)"
  608. ></el-image>
  609. </div>
  610. </div>
  611. <div
  612. class="pButton"
  613. style="position: absolute; right: 20px; top: 0; z-index: 998"
  614. v-if="!contentDialog"
  615. @click="setContent(true)"
  616. >
  617. <!-- 批 -->
  618. <img
  619. src="../assets/icon/newIcons/isLeft.png"
  620. style="width: 45px"
  621. alt=""
  622. />
  623. </div>
  624. <div
  625. v-if="contentDialog == true"
  626. :style="{
  627. width:
  628. (vChapterData[taskCount].length > 0 ||
  629. fileC[taskCount].length > 0) &&
  630. showType === ''
  631. ? 'calc(100%)'
  632. : '300px',
  633. margin:
  634. (vChapterData[taskCount].length > 0 ||
  635. fileC[taskCount].length > 0) &&
  636. showType === ''
  637. ? '0 15px'
  638. : '0 15px 0 0',
  639. }"
  640. >
  641. <div
  642. class="vedioList"
  643. v-if="
  644. vChapterData[taskCount].length > 0 ||
  645. fileC[taskCount].length > 0
  646. "
  647. style="height: 650px"
  648. >
  649. <div class="navCorOpenBox">
  650. <div class="navTitile">内容列表:</div>
  651. <div class="navCorOpen" @click="setContent(false)">
  652. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  653. </div>
  654. </div>
  655. <div class="navBox">
  656. <div
  657. v-show="
  658. vChapterData[taskCount].length > 0 ||
  659. fileC[taskCount].length > 0
  660. "
  661. style="padding: 10px 0 25px 0"
  662. >
  663. <div
  664. class="vedioTimeBox"
  665. v-for="(vitem, vindex) in vChapterData[taskCount]"
  666. :key="vindex + '1'"
  667. >
  668. <div class="navListItem" v-if="vitem.type == 2">
  669. <div
  670. @click="lookVedio(vitem.url, vindex)"
  671. class="navText"
  672. :class="isClickNav == vindex ? 'isClickNav' : ''"
  673. >
  674. <span v-if="vitem.text">{{ vitem.text }}-</span
  675. >{{ vitem.name }}
  676. </div>
  677. <div class="downIcon" @click="downloadFile2(vitem)">
  678. <img src="../assets/icon/newIcon/down.png" alt />
  679. </div>
  680. </div>
  681. <div class="navListItem" v-if="vitem.type == 6">
  682. <div
  683. @click="lookText(taskCount, vindex)"
  684. class="navText"
  685. :class="isClickNav == vindex ? 'isClickNav' : ''"
  686. >
  687. {{ vitem.name }}.doc
  688. </div>
  689. <div
  690. class="downIcon"
  691. @click="checkFileFull1(vitem.type, vitem)"
  692. >
  693. <img
  694. src="../assets/icon/newIcon/allScreen.png"
  695. alt
  696. />
  697. </div>
  698. </div>
  699. <div
  700. class="navListItem"
  701. v-if="vitem.type == 8 || vitem.type == 14"
  702. >
  703. <div
  704. @click="doUrl(vitem.url, vindex)"
  705. class="navText"
  706. :class="isClickNav == vindex ? 'isClickNav' : ''"
  707. >
  708. {{ vitem.title ? vitem.title : vitem.url }}
  709. </div>
  710. <div
  711. class="downIcon"
  712. @click="checkFileFull1(vitem.type, vitem)"
  713. >
  714. <img
  715. src="../assets/icon/newIcon/allScreen.png"
  716. alt
  717. />
  718. </div>
  719. </div>
  720. <div class="navListItem" v-if="vitem.type == 3">
  721. <div
  722. @click="downFile(vitem, vindex)"
  723. class="navText"
  724. :class="isClickNav == vindex ? 'isClickNav' : ''"
  725. >
  726. <span v-if="vitem.text">{{ vitem.text }}-</span
  727. >{{ vitem.name }}
  728. </div>
  729. <div
  730. class="downIcon"
  731. @click="checkFileFull1(vitem.type, vitem)"
  732. >
  733. <img
  734. src="../assets/icon/newIcon/allScreen.png"
  735. alt
  736. />
  737. </div>
  738. <div class="downIcon" @click="downloadFile2(vitem)">
  739. <img src="../assets/icon/newIcon/down.png" alt />
  740. </div>
  741. </div>
  742. <div class="navListItem" v-if="vitem.type == 12">
  743. <div class="navText" @click="downloadFile2(vitem)">
  744. <span v-if="vitem.text">{{ vitem.text }}-</span
  745. >{{ vitem.name }}
  746. </div>
  747. <div
  748. class="downIcon"
  749. @click="checkFileFull1(vitem.type, vitem)"
  750. >
  751. <img
  752. src="../assets/icon/newIcon/allScreen.png"
  753. alt
  754. />
  755. </div>
  756. <div class="downIcon" @click="downloadFile2(vitem)">
  757. <img src="../assets/icon/newIcon/down.png" alt />
  758. </div>
  759. </div>
  760. <div class="navListItem" v-if="vitem.type == 13">
  761. <div
  762. class="navText"
  763. @click="checkPhoto(vitem, vindex)"
  764. :class="isClickNav == vindex ? 'isClickNav' : ''"
  765. >
  766. {{ vitem.name }}
  767. </div>
  768. <div class="downIcon" @click="downloadFile2(vitem)">
  769. <img src="../assets/icon/newIcon/down.png" alt />
  770. </div>
  771. </div>
  772. </div>
  773. <div
  774. class="fileC_box"
  775. v-if="fileC[taskCount].length > 0"
  776. >
  777. <div class="fileC_title">以下文件不支持预览</div>
  778. <div
  779. class="vedioTimeBox"
  780. v-for="(vitem, vindex) in fileC[taskCount]"
  781. :key="vindex + '1'"
  782. >
  783. <div class="navListItem" v-if="vitem.type == 12">
  784. <div class="navText" style="color: #acb4bf">
  785. <span v-if="vitem.text">{{ vitem.text }}-</span
  786. >{{ vitem.name }}
  787. </div>
  788. <div
  789. class="downIcon"
  790. @click="downloadFile2(vitem)"
  791. >
  792. <img
  793. src="../assets/icon/newIcon/down.png"
  794. alt
  795. />
  796. </div>
  797. </div>
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. </div>
  804. </div>
  805. <div style="width: calc(100% - 315px)">
  806. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  807. <!-- <el-button
  808. type="primary"
  809. class="newButton"
  810. @click="checkFileFull(showType, pptImgUrl1)"
  811. >全屏查看</el-button
  812. >
  813. <el-button
  814. type="primary"
  815. class="newButton"
  816. @click="downloadFile(pptImgUrl1)"
  817. v-if="showType != 2"
  818. >文件下载</el-button
  819. > -->
  820. <el-button
  821. class="newButton"
  822. v-if="
  823. showType == 2 &&
  824. pptImgUrl1.indexOf(
  825. 'https://view.officeapps.live.com/op/view.aspx?src='
  826. ) == -1
  827. "
  828. type="primary"
  829. @click="openLine(pptImgUrl1)"
  830. >打开链接
  831. </el-button>
  832. </div>
  833. <!-- <div
  834. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  835. v-if="showType == 1"
  836. >
  837. <el-button
  838. type="primary"
  839. class="newButton"
  840. @click="checkFileFull(showType, text)"
  841. >全屏查看</el-button
  842. >
  843. </div> -->
  844. </div>
  845. </div>
  846. </div>
  847. <div class="student_body" v-resize="resize">
  848. <div
  849. class="vedioBox"
  850. :style="{
  851. borderRadius:
  852. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  853. .taskDetail == '' &&
  854. vChapterData[taskCount].length == 0 &&
  855. fileC[taskCount].length == 0
  856. ? '0 0 20px 20px'
  857. : '20px',
  858. }"
  859. v-if="
  860. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  861. .toolChoose[0].tool &&
  862. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  863. .toolChoose[0].tool.length > 0
  864. "
  865. >
  866. <div
  867. class="toolHeng2"
  868. style="position: relative"
  869. v-if="
  870. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  871. .toolChoose[0].tool &&
  872. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  873. .toolChoose[0].tool.length &&
  874. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  875. .toolChoose[0].tool.length > 0
  876. "
  877. >
  878. <div class="workNav">工作区</div>
  879. <div
  880. class="filebox"
  881. style="flex-wrap: nowrap"
  882. v-for="(tool, toolIndex) in chapInfoList[courseType]
  883. .chapterInfo[0].taskJson[taskCount].toolChoose"
  884. :key="toolIndex"
  885. >
  886. <div class="bzBox">
  887. <div class="yCss"></div>
  888. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  889. 工具{{ toolIndex + 1 }}
  890. </div>
  891. <div
  892. v-if="timeWorkList[toolIndex].length > 0"
  893. style="margin: 0 0 0 10px"
  894. >
  895. {{
  896. timeWorkList[toolIndex][0].time
  897. ? "时间:" + timeWorkList[toolIndex][0].time
  898. : ""
  899. }}
  900. </div>
  901. </div>
  902. <div class="toolBox">
  903. <div>
  904. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  905. :key="indexTool"-->
  906. <!-- <div class="iframeBox">
  907. <div
  908. class="addPoint isBorder"
  909. v-for="(tooC, toolCIndex) in tool.tool"
  910. :key="toolCIndex"
  911. >
  912. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  913. <div
  914. class="iframeName"
  915. >
  916. 电子白板
  917. </div>
  918. <iframe
  919. src="https://iwb.cocorobo.cn/"
  920. ref="whiteBoard"
  921. ></iframe>
  922. </div>
  923. </div>
  924. </div>-->
  925. <div class="noiframeBox">
  926. <div
  927. class="addPoint"
  928. v-for="(tooC, toolCIndex) in tool.tool"
  929. :key="toolCIndex"
  930. >
  931. <div v-if="tooC == 1">
  932. <img
  933. src="../assets/icon/secondToolList/whiteBoard.png"
  934. alt
  935. @click="addTools(tooC, toolIndex, taskCount)"
  936. />
  937. <div style="margin: 5px 0">电子白板</div>
  938. </div>
  939. <div v-if="tooC == 3">
  940. <img
  941. src="../assets/icon/secondToolList/mindMapping.png"
  942. alt
  943. @click="addTools(tooC, toolIndex, taskCount)"
  944. />
  945. <div style="margin: 5px 0">思维导图</div>
  946. </div>
  947. <div v-if="tooC == 6">
  948. <img
  949. src="../assets/icon/secondToolList/doc.png"
  950. alt
  951. @click="addTools(tooC, toolIndex, taskCount)"
  952. />
  953. <div style="margin: 5px 0">协同文档</div>
  954. </div>
  955. <div v-if="tooC == 7">
  956. <img
  957. src="../assets/icon/secondToolList/mindNetwork.png"
  958. alt
  959. @click="addTools(tooC, toolIndex, taskCount)"
  960. />
  961. <div style="margin: 5px 0">思维网格</div>
  962. </div>
  963. <div v-if="tooC == 8">
  964. <img
  965. src="../assets/icon/secondToolList/library.png"
  966. alt
  967. @click="addTools(tooC, toolIndex, taskCount)"
  968. />
  969. <div style="margin: 5px 0">素材库</div>
  970. </div>
  971. <div v-if="tooC == 17">
  972. <img
  973. src="../assets/icon/secondToolList/library.png"
  974. alt
  975. @click="addTools(tooC, toolIndex, taskCount)"
  976. />
  977. <div style="margin: 5px 0">学习资料</div>
  978. </div>
  979. <div v-if="tooC == 2">
  980. <img
  981. @click="addTools(tooC, toolIndex, taskCount)"
  982. src="../assets/icon/secondToolList/note.png"
  983. alt
  984. />
  985. <div style="margin: 5px 0">便签</div>
  986. </div>
  987. <div v-if="tooC == 4">
  988. <img
  989. @click="addTools(tooC, toolIndex, taskCount)"
  990. src="../assets/icon/thirdToolList/ask.png"
  991. alt
  992. />
  993. <div style="margin: 5px 0">问卷调查</div>
  994. </div>
  995. <div v-if="tooC == 45">
  996. <img
  997. @click="addTools(tooC, toolIndex, taskCount)"
  998. src="../assets/icon/thirdToolList/choose.png"
  999. alt
  1000. />
  1001. <div style="margin: 5px 0">选择题</div>
  1002. </div>
  1003. <!-- <div v-if="tooC == 5">
  1004. <img
  1005. @click="addTools(tooC, toolIndex, taskCount)"
  1006. src="../assets/icon/thirdToolList/score.png"
  1007. alt
  1008. />
  1009. <div style="margin: 5px 0">量规评分</div>
  1010. </div> -->
  1011. <div v-if="tooC == 10">
  1012. <img
  1013. @click="addTools(tooC, toolIndex, taskCount)"
  1014. src="../assets/icon/thirdToolList/time.png"
  1015. alt
  1016. />
  1017. <div style="margin: 5px 0">倒计时</div>
  1018. </div>
  1019. <div v-if="tooC == 15">
  1020. <img
  1021. @click="addTools(tooC, toolIndex, taskCount)"
  1022. src="../assets/icon/thirdToolList/answer.png"
  1023. alt
  1024. />
  1025. <div style="margin: 5px 0">问答</div>
  1026. </div>
  1027. <div v-if="tooC == 26">
  1028. <img
  1029. @click="addTools(tooC, toolIndex, taskCount)"
  1030. src="../assets/icon/thirdToolList/courseDesign.png"
  1031. alt
  1032. />
  1033. <div style="margin: 5px 0">课程设计</div>
  1034. </div>
  1035. <div v-if="tooC == 18">
  1036. <img
  1037. @click="addTools(tooC, toolIndex, taskCount)"
  1038. src="../assets/icon/thirdToolList/trainPlatform.png"
  1039. alt
  1040. />
  1041. <div style="margin: 5px 0">训练服务器</div>
  1042. </div>
  1043. <div v-if="tooC == 16">
  1044. <img
  1045. @click="addTools(tooC, toolIndex, taskCount)"
  1046. src="../assets/icon/thirdToolList/work.png"
  1047. alt
  1048. />
  1049. <div style="margin: 5px 0">作业提交</div>
  1050. </div>
  1051. <div v-if="tooC == 50">
  1052. <img
  1053. @click="addTools(tooC, toolIndex, taskCount)"
  1054. src="../assets/icon/thirdToolList/plwork.png"
  1055. alt
  1056. />
  1057. <div style="margin: 5px 0">批量上传</div>
  1058. </div>
  1059. <div v-if="tooC == 21">
  1060. <img
  1061. @click="addTools(tooC, toolIndex, taskCount)"
  1062. src="../assets/icon/fourthToolList/program.png"
  1063. alt
  1064. />
  1065. <div style="margin: 5px 0">AIoT Blockly</div>
  1066. </div>
  1067. <!-- <div v-if="tooC == 22">
  1068. <img
  1069. @click="addTools(tooC, toolIndex, taskCount)"
  1070. src="../assets/icon/fourthToolList/program.png"
  1071. alt
  1072. />
  1073. <div style="margin: 5px 0">AI体验</div>
  1074. </div> -->
  1075. <div v-if="tooC == 23">
  1076. <img
  1077. @click="addTools(tooC, toolIndex, taskCount)"
  1078. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1079. alt
  1080. />
  1081. <div style="margin: 5px 0">AI Python</div>
  1082. </div>
  1083. <div v-if="tooC == 24">
  1084. <img
  1085. @click="addTools(tooC, toolIndex, taskCount)"
  1086. src="../assets/icon/fourthToolList/AIprogram.png"
  1087. alt
  1088. />
  1089. <div style="margin: 5px 0">AI Blockly</div>
  1090. </div>
  1091. <div v-if="tooC == 25">
  1092. <img
  1093. @click="addTools(tooC, toolIndex, taskCount)"
  1094. src="../assets/icon/thirdToolList/evalua.png"
  1095. alt
  1096. />
  1097. <div style="margin: 5px 0">目标管理</div>
  1098. </div>
  1099. <div v-if="tooC == 31">
  1100. <img
  1101. @click="addTools(tooC, toolIndex, taskCount)"
  1102. src="../assets/icon/secondToolList/networkPanel.png"
  1103. alt
  1104. />
  1105. <div style="margin: 5px 0">数学画板</div>
  1106. </div>
  1107. <div v-if="tooC == 28">
  1108. <img
  1109. @click="addTools(tooC, toolIndex, taskCount)"
  1110. src="../assets/icon/secondToolList/translation.png"
  1111. alt
  1112. />
  1113. <div style="margin: 5px 0">翻译</div>
  1114. </div>
  1115. <div v-if="tooC == 37">
  1116. <img
  1117. @click="addTools(tooC, toolIndex, taskCount)"
  1118. src="../assets/icon/secondToolList/mohe.png"
  1119. alt
  1120. />
  1121. <div style="margin: 5px 0">魔盒识字</div>
  1122. </div>
  1123. <div v-if="tooC == 38">
  1124. <img
  1125. @click="addTools(tooC, toolIndex, taskCount)"
  1126. src="../assets/icon/secondToolList/24game.png"
  1127. alt
  1128. />
  1129. <div style="margin: 5px 0">24点</div>
  1130. </div>
  1131. <div v-if="tooC == 39">
  1132. <img
  1133. @click="addTools(tooC, toolIndex, taskCount)"
  1134. src="../assets/icon/secondToolList/GeoGebra.png"
  1135. alt
  1136. />
  1137. <div style="margin: 5px 0">GeoGebra</div>
  1138. </div>
  1139. <div v-if="tooC == 32">
  1140. <img
  1141. @click="addTools(tooC, toolIndex, taskCount)"
  1142. src="../assets/icon/thirdToolList/code.png"
  1143. alt
  1144. />
  1145. <div style="margin: 5px 0">源码编辑</div>
  1146. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1147. style="position: absolute;left: 110px;bottom: 30px;">
  1148. 上传文件
  1149. <input type="file" accept="*" style="display: none"
  1150. @change="beforeUpload1($event, 7, toolIndex)" />
  1151. </div> -->
  1152. </div>
  1153. <div v-if="tooC == 40">
  1154. <img
  1155. @click="addTools(tooC, toolIndex, taskCount)"
  1156. src="../assets/icon/secondToolList/eval.png"
  1157. alt
  1158. />
  1159. <div style="margin: 5px 0">个人评价</div>
  1160. </div>
  1161. <div v-if="tooC == 41">
  1162. <img
  1163. @click="addTools(tooC, toolIndex, taskCount)"
  1164. src="../assets/icon/thirdToolList/select.png"
  1165. alt
  1166. />
  1167. <div style="margin: 5px 0">选择匹配</div>
  1168. </div>
  1169. <div v-if="tooC == 44">
  1170. <img
  1171. @click="addTools(tooC, toolIndex, taskCount)"
  1172. src="../assets/icon/thirdToolList/hanClass.png"
  1173. alt
  1174. />
  1175. <div style="margin: 5px 0">汉字宫</div>
  1176. </div>
  1177. <div v-if="tooC == 47">
  1178. <img
  1179. @click="addTools(tooC, toolIndex, taskCount)"
  1180. src="../assets/icon/fourthToolList/conSentences.png"
  1181. alt
  1182. />
  1183. <div style="margin: 5px 0">排序</div>
  1184. </div>
  1185. <div v-if="tooC == 48">
  1186. <img
  1187. @click="addTools(tooC, toolIndex, taskCount)"
  1188. src="../assets/icon/fourthToolList/table.png"
  1189. alt
  1190. />
  1191. <div style="margin: 5px 0">表格</div>
  1192. </div>
  1193. <div v-if="tooC == 52">
  1194. <img
  1195. @click="addTools(tooC, toolIndex, taskCount)"
  1196. src="../assets/icon/fourthToolList/text.png"
  1197. alt
  1198. />
  1199. <div style="margin: 5px 0">文档</div>
  1200. </div>
  1201. <div v-if="tooC == 49">
  1202. <img
  1203. @click="addTools(tooC, toolIndex, taskCount)"
  1204. src="../assets/icon/fourthToolList/group.png"
  1205. alt
  1206. />
  1207. <div style="margin: 5px 0">学生分组</div>
  1208. </div>
  1209. <div v-if="tooC == 57">
  1210. <img
  1211. @click="addTools(tooC, toolIndex, taskCount)"
  1212. src="../assets/icon/fourthToolList/cocopi.png"
  1213. alt
  1214. />
  1215. <div style="margin: 5px 0">CocoPi</div>
  1216. </div>
  1217. <div v-if="tooC == 58">
  1218. <img
  1219. @click="addTools(tooC, toolIndex, taskCount)"
  1220. src="../assets/icon/fourthToolList/car.png"
  1221. alt
  1222. />
  1223. <div style="margin: 5px 0">模拟驾驶</div>
  1224. </div>
  1225. <div v-if="tooC == 59">
  1226. <img
  1227. @click="addTools(tooC, toolIndex, taskCount)"
  1228. src="../assets/icon/fourthToolList/lineSearch.png"
  1229. alt
  1230. />
  1231. <div style="margin: 5px 0">路径搜索</div>
  1232. </div>
  1233. <div v-if="tooC == 60">
  1234. <img
  1235. @click="addTools(tooC, toolIndex, taskCount)"
  1236. src="../assets/icon/fourthToolList/deepLearning.png"
  1237. alt
  1238. />
  1239. <div style="margin: 5px 0">深度学习</div>
  1240. </div>
  1241. <div v-if="tooC == 61">
  1242. <img
  1243. @click="addTools(tooC, toolIndex, taskCount)"
  1244. src="../assets/icon/fourthToolList/allHistory.png"
  1245. alt
  1246. />
  1247. <div style="margin: 5px 0">全历史</div>
  1248. </div>
  1249. <div v-if="tooC == 62">
  1250. <img
  1251. @click="addTools(tooC, toolIndex, taskCount)"
  1252. src="../assets/icon/fourthToolList/interVideo.png"
  1253. alt
  1254. />
  1255. <div style="margin: 5px 0">交互视频</div>
  1256. </div>
  1257. <div v-if="tooC == 63">
  1258. <img
  1259. @click="addTools(tooC, toolIndex, taskCount)"
  1260. src="../assets/icon/fourthToolList/Wood.png"
  1261. alt
  1262. />
  1263. <div style="margin: 5px 0">海龟编程</div>
  1264. </div>
  1265. <div v-if="tooC == 71">
  1266. <img
  1267. @click="addTools(tooC, toolIndex, taskCount)"
  1268. src="../assets/icon/fourthToolList/chatgpt.png"
  1269. alt
  1270. />
  1271. <div style="margin: 5px 0">AI智能体</div>
  1272. </div>
  1273. <div v-if="tooC == 65">
  1274. <img
  1275. @click="addTools(tooC, toolIndex, taskCount)"
  1276. src="../assets/icon/firstToolList/pickPeople.png"
  1277. alt
  1278. />
  1279. <div style="margin: 5px 0">挑人</div>
  1280. </div>
  1281. <div v-if="tooC == 66">
  1282. <img
  1283. @click="addTools(tooC, toolIndex, taskCount)"
  1284. src="../assets/icon/secondToolList/formulaEdi.png"
  1285. alt
  1286. />
  1287. <div style="margin: 5px 0">公式编辑</div>
  1288. </div>
  1289. <div v-if="tooC == 67">
  1290. <img
  1291. @click="addTools(tooC, toolIndex, taskCount)"
  1292. src="../assets/icon/secondToolList/molStr.png"
  1293. alt
  1294. />
  1295. <div style="margin: 5px 0">分子结构</div>
  1296. </div>
  1297. <div v-if="tooC == 68">
  1298. <img
  1299. @click="addTools(tooC, toolIndex, taskCount)"
  1300. src="../assets/icon/secondToolList/timeAxis.png"
  1301. alt
  1302. />
  1303. <div style="margin: 5px 0">时间轴</div>
  1304. </div>
  1305. <div v-if="tooC == 69">
  1306. <img
  1307. @click="addTools(tooC, toolIndex, taskCount)"
  1308. src="../assets/icon/secondToolList/english.png"
  1309. alt
  1310. />
  1311. <div style="margin: 5px 0">英语写作</div>
  1312. </div>
  1313. <div v-if="tooC == 70">
  1314. <img
  1315. @click="addTools(tooC, toolIndex, taskCount)"
  1316. src="../assets/icon/thirdToolList/englishVoice.png"
  1317. alt
  1318. />
  1319. <div style="margin: 5px 0">英语口语</div>
  1320. </div>
  1321. </div>
  1322. </div>
  1323. </div>
  1324. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1325. <!-- <div class="toolTitle">工具描述</div> -->
  1326. <div style="height:100%;"
  1327. v-html="contentConvent(tool.toolDetail)"
  1328. v-if="toolDetailIndex != toolIndex"
  1329. @click.stop="updateToolDetail(toolIndex, 2)"
  1330. ></div>
  1331. <div v-else @click.stop="" style="height:100%;">
  1332. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1333. </div>
  1334. </div>
  1335. <el-button
  1336. type="primary"
  1337. v-if="tool.tool[0] == 32"
  1338. style="position: absolute; right: 30px; top: 30px"
  1339. @click="addImg($event)"
  1340. >上传作业<input
  1341. type="file"
  1342. accept="*"
  1343. style="display: none"
  1344. @change="beforeUpload1($event, 7, toolIndex)"
  1345. /></el-button>
  1346. <el-button
  1347. type="primary"
  1348. v-if="tool.tool[0] == 15"
  1349. style="position: absolute; right: 30px; top: 30px"
  1350. @click="openWordCloud(toolIndex)"
  1351. >生成词云</el-button
  1352. >
  1353. <el-button
  1354. type="primary"
  1355. v-if="
  1356. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1357. "
  1358. style="position: absolute; right: 30px; top: 30px"
  1359. @click="uploadWorks(toolIndex)"
  1360. >导出作业</el-button
  1361. >
  1362. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1363. position: absolute;
  1364. right: 30px;
  1365. transform: translateY(-130%);
  1366. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1367. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1368. </div>
  1369. <div
  1370. v-if="
  1371. tType &&
  1372. tType == 2 &&
  1373. !sIsOpen &&
  1374. tool.tool.indexOf(16) != -1
  1375. "
  1376. class="worksBox"
  1377. >
  1378. <div
  1379. class="zuoyeYulan"
  1380. v-if="workStudent[toolIndex].length > 0"
  1381. >
  1382. <span class="worksTitle">作业预览</span>
  1383. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1384. </div>
  1385. <div
  1386. class="worksDetailBox"
  1387. v-if="workStudent[toolIndex].length > 0"
  1388. >
  1389. <div
  1390. class="works"
  1391. style="
  1392. width: 200px;
  1393. height: 140px;
  1394. margin: 10px 10px 10px 0;
  1395. box-shadow: 0 0 6px 1px #dfdada;
  1396. "
  1397. v-for="(w, wIndex) in workStudent[toolIndex]"
  1398. :key="wIndex"
  1399. >
  1400. <div class="workImg" v-if="w.type == 0">
  1401. <img
  1402. :src="w.works"
  1403. @click="previewImg(w.works)"
  1404. alt
  1405. />
  1406. <div
  1407. class="answerScore"
  1408. v-if="w.score"
  1409. @click.stop="openScore(w)"
  1410. :class="{
  1411. rightW:
  1412. w.userid == userid || tType == 1 || tType == 4,
  1413. }"
  1414. >
  1415. {{ JSON.parse(w.score).wScore }}分
  1416. </div>
  1417. <div
  1418. class="answerScore"
  1419. @click.stop="openScore(w)"
  1420. v-else-if="courseDetail.userid == userid"
  1421. :class="{
  1422. rightW:
  1423. w.userid == userid || tType == 1 || tType == 4,
  1424. }"
  1425. >
  1426. 评分
  1427. </div>
  1428. <img
  1429. class="deleteImg"
  1430. src="../assets/deleteworks.png"
  1431. v-if="
  1432. w.userid == userid || tType == 1 || tType == 4
  1433. "
  1434. @click.stop="deleteWorks(w.wid)"
  1435. alt
  1436. />
  1437. </div>
  1438. <div class="workImg" v-if="w.type == 1">
  1439. <img :src="word" @click="openFile(w.works)" alt />
  1440. <div
  1441. class="answerScore"
  1442. v-if="w.score"
  1443. @click.stop="openScore(w)"
  1444. :class="{
  1445. rightW:
  1446. w.userid == userid || tType == 1 || tType == 4,
  1447. }"
  1448. >
  1449. {{ JSON.parse(w.score).wScore }}分
  1450. </div>
  1451. <div
  1452. class="answerScore"
  1453. @click.stop="openScore(w)"
  1454. v-else-if="courseDetail.userid == userid"
  1455. :class="{
  1456. rightW:
  1457. w.userid == userid || tType == 1 || tType == 4,
  1458. }"
  1459. >
  1460. 评分
  1461. </div>
  1462. <img
  1463. class="deleteImg"
  1464. src="../assets/deleteworks.png"
  1465. v-if="
  1466. w.userid == userid || tType == 1 || tType == 4
  1467. "
  1468. @click.stop="deleteWorks(w.wid)"
  1469. alt
  1470. />
  1471. </div>
  1472. <div class="workImg" v-if="w.type == 3">
  1473. <img
  1474. style="cursor: pointer"
  1475. :src="video"
  1476. @click="openVideo(w)"
  1477. alt
  1478. />
  1479. <div
  1480. class="answerScore"
  1481. v-if="w.score"
  1482. @click.stop="openScore(w)"
  1483. :class="{
  1484. rightW:
  1485. w.userid == userid || tType == 1 || tType == 4,
  1486. }"
  1487. >
  1488. {{ JSON.parse(w.score).wScore }}分
  1489. </div>
  1490. <div
  1491. class="answerScore"
  1492. @click.stop="openScore(w)"
  1493. v-else-if="courseDetail.userid == userid"
  1494. :class="{
  1495. rightW:
  1496. w.userid == userid || tType == 1 || tType == 4,
  1497. }"
  1498. >
  1499. 评分
  1500. </div>
  1501. <img
  1502. class="deleteImg"
  1503. src="../assets/deleteworks.png"
  1504. v-if="
  1505. w.userid == userid || tType == 1 || tType == 4
  1506. "
  1507. @click.stop="deleteWorks(w.wid)"
  1508. alt
  1509. />
  1510. </div>
  1511. <div class="workImg" v-if="w.type == 12">
  1512. <img
  1513. style="cursor: pointer"
  1514. :src="word2"
  1515. @click="downloadFile(w.works)"
  1516. alt
  1517. />
  1518. <div
  1519. class="answerScore"
  1520. v-if="w.score"
  1521. @click.stop="openScore(w)"
  1522. :class="{
  1523. rightW:
  1524. w.userid == userid || tType == 1 || tType == 4,
  1525. }"
  1526. >
  1527. {{ JSON.parse(w.score).wScore }}分
  1528. </div>
  1529. <div
  1530. class="answerScore"
  1531. @click.stop="openScore(w)"
  1532. v-else-if="courseDetail.userid == userid"
  1533. :class="{
  1534. rightW:
  1535. w.userid == userid || tType == 1 || tType == 4,
  1536. }"
  1537. >
  1538. 评分
  1539. </div>
  1540. <img
  1541. class="deleteImg"
  1542. src="../assets/deleteworks.png"
  1543. v-if="
  1544. w.userid == userid || tType == 1 || tType == 4
  1545. "
  1546. @click.stop="deleteWorks(w.wid)"
  1547. alt
  1548. />
  1549. </div>
  1550. <div class="worksName">
  1551. <div>{{ w.sName }}</div>
  1552. </div>
  1553. </div>
  1554. </div>
  1555. </div>
  1556. <div
  1557. v-if="
  1558. tType &&
  1559. tType == 2 &&
  1560. !sIsOpen &&
  1561. tool.tool.indexOf(32) != -1
  1562. "
  1563. class="worksBox"
  1564. >
  1565. <div
  1566. class="zuoyeYulan"
  1567. v-if="workStudent[toolIndex].length > 0"
  1568. >
  1569. <span class="worksTitle">作业预览</span>
  1570. </div>
  1571. <div
  1572. class="worksDetailBox"
  1573. v-if="workStudent[toolIndex].length > 0"
  1574. >
  1575. <div
  1576. class="works"
  1577. style="
  1578. width: 200px;
  1579. height: 140px;
  1580. margin: 10px 10px 10px 0;
  1581. box-shadow: 0 0 6px 1px #dfdada;
  1582. "
  1583. v-for="(w, wIndex) in workStudent[toolIndex]"
  1584. :key="wIndex"
  1585. >
  1586. <div class="workImg">
  1587. <img
  1588. :src="word2"
  1589. @click="downloadFile(w.works)"
  1590. alt
  1591. />
  1592. <div
  1593. class="answerScore"
  1594. v-if="w.score"
  1595. @click.stop="openScore(w)"
  1596. :class="{
  1597. rightW:
  1598. w.userid == userid || tType == 1 || tType == 4,
  1599. }"
  1600. >
  1601. {{ JSON.parse(w.score).wScore }}分
  1602. </div>
  1603. <div
  1604. class="answerScore"
  1605. @click.stop="openScore(w)"
  1606. v-else-if="courseDetail.userid == userid"
  1607. :class="{
  1608. rightW:
  1609. w.userid == userid || tType == 1 || tType == 4,
  1610. }"
  1611. >
  1612. 评分
  1613. </div>
  1614. <img
  1615. class="deleteImg"
  1616. src="../assets/deleteworks.png"
  1617. v-if="
  1618. w.userid == userid || tType == 1 || tType == 4
  1619. "
  1620. @click.stop="deleteWorks(w.wid)"
  1621. alt
  1622. />
  1623. </div>
  1624. <div class="worksName">
  1625. <div>{{ w.sName }}</div>
  1626. </div>
  1627. </div>
  1628. </div>
  1629. </div>
  1630. <div
  1631. v-if="
  1632. tType &&
  1633. tType == 2 &&
  1634. !sIsOpen &&
  1635. tool.tool.indexOf(57) != -1
  1636. "
  1637. class="worksBox"
  1638. >
  1639. <div
  1640. class="zuoyeYulan"
  1641. v-if="workStudent[toolIndex].length > 0"
  1642. >
  1643. <span class="worksTitle">作业预览</span>
  1644. </div>
  1645. <div
  1646. class="worksDetailBox"
  1647. v-if="workStudent[toolIndex].length > 0"
  1648. >
  1649. <div
  1650. class="works"
  1651. style="
  1652. width: 200px;
  1653. height: 140px;
  1654. margin: 10px 10px 10px 0;
  1655. box-shadow: 0 0 6px 1px #dfdada;
  1656. "
  1657. v-for="(w, wIndex) in workStudent[toolIndex]"
  1658. :key="wIndex"
  1659. >
  1660. <div class="workImg">
  1661. <img
  1662. :src="word2"
  1663. @click="downloadFile(w.works)"
  1664. v-if="w.type == 12"
  1665. alt
  1666. />
  1667. <img
  1668. :src="word2"
  1669. @click="
  1670. openCocoPi(57, toolIndex, w.userid, w.sName)
  1671. "
  1672. v-else-if="w.type == 15"
  1673. alt
  1674. />
  1675. <div
  1676. class="answerScore"
  1677. v-if="w.score"
  1678. @click.stop="openScore(w)"
  1679. :class="{
  1680. rightW:
  1681. w.userid == userid || tType == 1 || tType == 4,
  1682. }"
  1683. >
  1684. {{ JSON.parse(w.score).wScore }}分
  1685. </div>
  1686. <div
  1687. class="answerScore"
  1688. @click.stop="openScore(w)"
  1689. v-else-if="courseDetail.userid == userid"
  1690. :class="{
  1691. rightW:
  1692. w.userid == userid || tType == 1 || tType == 4,
  1693. }"
  1694. >
  1695. 评分
  1696. </div>
  1697. <img
  1698. class="deleteImg"
  1699. src="../assets/deleteworks.png"
  1700. v-if="
  1701. w.userid == userid || tType == 1 || tType == 4
  1702. "
  1703. @click.stop="deleteWorks(w.wid)"
  1704. alt
  1705. />
  1706. </div>
  1707. <div class="worksName">
  1708. <div>{{ w.sName }}</div>
  1709. </div>
  1710. </div>
  1711. </div>
  1712. </div>
  1713. <div
  1714. v-if="
  1715. tType &&
  1716. tType == 2 &&
  1717. !sIsOpen &&
  1718. tool.tool.indexOf(4) != -1
  1719. "
  1720. class="worksBox"
  1721. >
  1722. <div
  1723. class="zuoyeYulan"
  1724. v-if="workStudent[toolIndex].length > 0"
  1725. >
  1726. <span class="worksTitle">作业预览</span>
  1727. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1728. </div>
  1729. <div
  1730. class="worksDetailBox"
  1731. v-if="workStudent[toolIndex].length > 0"
  1732. >
  1733. <div
  1734. class="isWorksName2"
  1735. v-for="(w, wIndex) in workStudent[toolIndex]"
  1736. :key="wIndex"
  1737. @click="
  1738. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1739. "
  1740. >
  1741. {{ w.sName }}
  1742. <img
  1743. class="deleteImg deleteImg2"
  1744. src="../assets/deleteworks.png"
  1745. v-if="w.userid == userid || tType == 1 || tType == 4"
  1746. @click.stop="deleteWorks(w.wid)"
  1747. alt
  1748. />
  1749. </div>
  1750. <!-- <div
  1751. class="works"
  1752. style="
  1753. width: 200px;
  1754. height: 140px;
  1755. border-radius: 10px;
  1756. box-shadow: 0 0 6px 1px #dfdada;
  1757. overflow: hidden;
  1758. "
  1759. v-for="(w, wIndex) in workStudent[toolIndex]"
  1760. :key="wIndex"
  1761. >
  1762. <div class="workImg">
  1763. <img
  1764. src="../assets/icon/works/noImg.png"
  1765. @click="
  1766. openTools(
  1767. 4,
  1768. toolIndex,
  1769. taskCount,
  1770. w.works,
  1771. w.sName
  1772. )
  1773. "
  1774. alt
  1775. />
  1776. </div>
  1777. <div class="worksName">
  1778. <div>{{ w.sName }}</div>
  1779. <div>{{ w.time }}</div>
  1780. </div>
  1781. </div> -->
  1782. </div>
  1783. </div>
  1784. <div
  1785. v-if="
  1786. tType &&
  1787. ((tType == 2 && sIsOpen == true) ||
  1788. tType == 1 ||
  1789. tType == 4) &&
  1790. tool.tool.indexOf(62) != -1
  1791. "
  1792. class="worksBox"
  1793. >
  1794. <div
  1795. class="zuoyeYulan"
  1796. v-if="
  1797. worksStudent.length &&
  1798. worksStudent[toolIndex].length > 0
  1799. "
  1800. >
  1801. <div class="worksTop">
  1802. <div>作业预览</div>
  1803. <div
  1804. class="corOpen"
  1805. @click="contract(toolIndex)"
  1806. v-if="
  1807. (isCloseList[toolIndex].isCloseBoolean) &&
  1808. isCloseList[toolIndex].isClose == 0
  1809. "
  1810. >
  1811. 折叠
  1812. </div>
  1813. <div
  1814. class="corOpen"
  1815. @click="contract(toolIndex)"
  1816. v-if="isCloseList[toolIndex].isClose == 1"
  1817. >
  1818. 展开
  1819. </div>
  1820. </div>
  1821. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1822. </div>
  1823. <div>
  1824. <div
  1825. :id="'tool-' + toolIndex"
  1826. :style="{
  1827. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1828. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1829. }"
  1830. class="worksDetailBox"
  1831. v-if="
  1832. worksStudent.length &&
  1833. worksStudent[toolIndex].length > 0
  1834. "
  1835. >
  1836. <div
  1837. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1838. :key="wIndex"
  1839. class="isWorksName2"
  1840. @click="
  1841. openTools(
  1842. 62,
  1843. toolIndex,
  1844. taskCount,
  1845. w.works,
  1846. w.sName
  1847. )
  1848. "
  1849. >
  1850. {{ w.sName }}
  1851. <img
  1852. class="deleteImg deleteImg2"
  1853. src="../assets/deleteworks.png"
  1854. v-if="
  1855. w.userid == userid || tType == 1 || tType == 4
  1856. "
  1857. @click.stop="deleteWorks(w.wid)"
  1858. alt
  1859. />
  1860. </div>
  1861. </div>
  1862. </div>
  1863. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1864. 未提交
  1865. </div>
  1866. <div
  1867. class="noWorksS"
  1868. v-if="noWorksS && noWorksS[toolIndex].length"
  1869. >
  1870. <div
  1871. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1872. :key="sIndex"
  1873. class="noWorksName"
  1874. >
  1875. <el-tooltip effect="dark" :content="s.student" placement="top">
  1876. <span>{{ s.student }}</span>
  1877. </el-tooltip>
  1878. </div>
  1879. </div>
  1880. </div>
  1881. <div
  1882. v-if="
  1883. tType &&
  1884. tType == 2 &&
  1885. !sIsOpen &&
  1886. tool.tool.indexOf(62) != -1
  1887. "
  1888. class="worksBox"
  1889. >
  1890. <div
  1891. class="zuoyeYulan"
  1892. v-if="workStudent[toolIndex].length > 0"
  1893. >
  1894. <span class="worksTitle">作业预览</span>
  1895. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1896. </div>
  1897. <div
  1898. class="worksDetailBox"
  1899. v-if="workStudent[toolIndex].length > 0"
  1900. >
  1901. <div
  1902. class="isWorksName2"
  1903. v-for="(w, wIndex) in workStudent[toolIndex]"
  1904. :key="wIndex"
  1905. @click="
  1906. openTools(62, toolIndex, taskCount, w.works, w.sName)
  1907. "
  1908. >
  1909. {{ w.sName }}
  1910. <img
  1911. class="deleteImg deleteImg2"
  1912. src="../assets/deleteworks.png"
  1913. v-if="w.userid == userid || tType == 1 || tType == 4"
  1914. @click.stop="deleteWorks(w.wid)"
  1915. alt
  1916. />
  1917. </div>
  1918. </div>
  1919. </div>
  1920. <div
  1921. v-if="
  1922. tType &&
  1923. tType == 2 &&
  1924. !sIsOpen &&
  1925. tool.tool.indexOf(45) != -1
  1926. "
  1927. class="worksBox"
  1928. >
  1929. <div
  1930. class="zuoyeYulan"
  1931. v-if="workStudent[toolIndex].length > 0"
  1932. >
  1933. <span class="worksTitle">作业预览</span>
  1934. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1935. </div>
  1936. <div
  1937. class="worksDetailBox"
  1938. v-if="workStudent[toolIndex].length > 0"
  1939. >
  1940. <div
  1941. class="isWorksName2"
  1942. v-for="(w, wIndex) in workStudent[toolIndex]"
  1943. :key="wIndex"
  1944. @click="
  1945. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1946. "
  1947. >
  1948. {{ w.sName }}
  1949. <img
  1950. class="deleteImg deleteImg2"
  1951. src="../assets/deleteworks.png"
  1952. v-if="w.userid == userid || tType == 1 || tType == 4"
  1953. @click.stop="deleteWorks(w.wid)"
  1954. alt
  1955. />
  1956. </div>
  1957. </div>
  1958. </div>
  1959. <div
  1960. v-if="
  1961. tType &&
  1962. tType == 2 &&
  1963. !sIsOpen &&
  1964. tool.tool.indexOf(69) != -1
  1965. "
  1966. class="worksBox"
  1967. >
  1968. <div
  1969. class="zuoyeYulan"
  1970. v-if="workStudent[toolIndex].length > 0"
  1971. >
  1972. <span class="worksTitle">作业预览</span>
  1973. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1974. </div>
  1975. <div
  1976. class="worksDetailBox"
  1977. v-if="workStudent[toolIndex].length > 0"
  1978. >
  1979. <div
  1980. class="isWorksName2"
  1981. v-for="(w, wIndex) in workStudent[toolIndex]"
  1982. :key="wIndex"
  1983. @click="
  1984. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1985. "
  1986. >
  1987. {{ w.sName }}
  1988. <img
  1989. class="deleteImg deleteImg2"
  1990. src="../assets/deleteworks.png"
  1991. v-if="w.userid == userid || tType == 1 || tType == 4"
  1992. @click.stop="deleteWorks(w.wid)"
  1993. alt
  1994. />
  1995. </div>
  1996. </div>
  1997. </div>
  1998. <div
  1999. v-if="
  2000. tType &&
  2001. tType == 2 &&
  2002. !sIsOpen &&
  2003. tool.tool.indexOf(15) != -1
  2004. "
  2005. class="worksBox"
  2006. >
  2007. <div
  2008. class="zuoyeYulan"
  2009. v-if="workStudent[toolIndex].length > 0"
  2010. >
  2011. <span class="worksTitle">作业预览</span>
  2012. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2013. </div>
  2014. <div
  2015. class="worksDetailBox"
  2016. v-if="workStudent[toolIndex].length > 0"
  2017. >
  2018. <div
  2019. class="works"
  2020. v-for="(w, wIndex) in workStudent[toolIndex]"
  2021. :key="wIndex"
  2022. >
  2023. <div class="workImg">
  2024. <!-- <img
  2025. src="../assets/icon/works/noImg.png"
  2026. @click="openTools(15, toolIndex, taskCount, w.works)"
  2027. alt=""
  2028. />-->
  2029. <div class="answerBg">
  2030. <!-- <div>{{ w.sName }}</div> -->
  2031. <el-tooltip
  2032. class="item"
  2033. effect="light"
  2034. :content="JSON.parse(w.works)[0].answer"
  2035. placement="top"
  2036. >
  2037. <div class="answerContent">
  2038. {{ JSON.parse(w.works)[0].answer }}
  2039. </div>
  2040. </el-tooltip>
  2041. <div
  2042. class="answerScore"
  2043. v-if="w.score"
  2044. @click.stop="openScore(w)"
  2045. :class="{
  2046. rightW:
  2047. w.userid == userid ||
  2048. tType == 1 ||
  2049. tType == 4,
  2050. }"
  2051. >
  2052. {{ JSON.parse(w.score).wScore }}分
  2053. </div>
  2054. <div
  2055. class="answerScore"
  2056. @click.stop="openScore(w)"
  2057. v-else-if="courseDetail.userid == userid"
  2058. :class="{
  2059. rightW:
  2060. w.userid == userid ||
  2061. tType == 1 ||
  2062. tType == 4,
  2063. }"
  2064. >
  2065. 评分
  2066. </div>
  2067. <img
  2068. class="deleteImg"
  2069. src="../assets/deleteworks.png"
  2070. v-if="
  2071. w.userid == userid || tType == 1 || tType == 4
  2072. "
  2073. @click.stop="deleteWorks(w.wid)"
  2074. alt
  2075. />
  2076. </div>
  2077. <div class="comment">
  2078. <div class="worksName">
  2079. <div>{{ w.sName }}</div>
  2080. </div>
  2081. </div>
  2082. </div>
  2083. </div>
  2084. </div>
  2085. </div>
  2086. <div
  2087. v-if="
  2088. tType &&
  2089. tType == 2 &&
  2090. !sIsOpen &&
  2091. tool.tool.indexOf(1) != -1
  2092. "
  2093. class="worksBox"
  2094. >
  2095. <div
  2096. class="zuoyeYulan"
  2097. v-if="workStudent[toolIndex].length > 0"
  2098. >
  2099. <span class="worksTitle">作业预览</span>
  2100. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2101. </div>
  2102. <div
  2103. class="worksDetailBox"
  2104. v-if="workStudent[toolIndex].length > 0"
  2105. >
  2106. <div
  2107. class="works"
  2108. style="
  2109. width: 200px;
  2110. height: 140px;
  2111. margin: 10px 10px 10px 0;
  2112. box-shadow: 0 0 6px 1px #dfdada;
  2113. "
  2114. v-for="(w, wIndex) in workStudent[toolIndex]"
  2115. :key="wIndex"
  2116. >
  2117. <div class="workImg">
  2118. <img
  2119. :src="w.works"
  2120. @click="previewImg(w.works)"
  2121. alt
  2122. />
  2123. <div
  2124. class="answerScore"
  2125. v-if="w.score"
  2126. @click.stop="openScore(w)"
  2127. :class="{
  2128. rightW:
  2129. w.userid == userid || tType == 1 || tType == 4,
  2130. }"
  2131. >
  2132. {{ JSON.parse(w.score).wScore }}分
  2133. </div>
  2134. <div
  2135. class="answerScore"
  2136. @click.stop="openScore(w)"
  2137. v-else-if="courseDetail.userid == userid"
  2138. :class="{
  2139. rightW:
  2140. w.userid == userid || tType == 1 || tType == 4,
  2141. }"
  2142. >
  2143. 评分
  2144. </div>
  2145. <img
  2146. class="deleteImg"
  2147. src="../assets/deleteworks.png"
  2148. v-if="
  2149. w.userid == userid || tType == 1 || tType == 4
  2150. "
  2151. @click.stop="deleteWorks(w.wid)"
  2152. alt
  2153. />
  2154. </div>
  2155. <div class="worksName">
  2156. <div>{{ w.sName }}</div>
  2157. </div>
  2158. </div>
  2159. </div>
  2160. </div>
  2161. <div
  2162. v-if="
  2163. tType &&
  2164. tType == 2 &&
  2165. !sIsOpen &&
  2166. tool.tool.indexOf(3) != -1
  2167. "
  2168. class="worksBox"
  2169. >
  2170. <div
  2171. class="zuoyeYulan"
  2172. v-if="workStudent[toolIndex].length > 0"
  2173. >
  2174. <span class="worksTitle">作业预览</span>
  2175. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2176. </div>
  2177. <div
  2178. class="worksDetailBox"
  2179. v-if="workStudent[toolIndex].length > 0"
  2180. >
  2181. <div
  2182. class="works"
  2183. style="
  2184. width: 200px;
  2185. height: 140px;
  2186. margin: 10px 10px 10px 0;
  2187. box-shadow: 0 0 6px 1px #dfdada;
  2188. "
  2189. v-for="(w, wIndex) in workStudent[toolIndex]"
  2190. :key="wIndex"
  2191. >
  2192. <div class="workImg">
  2193. <img
  2194. :src="w.works"
  2195. @click="previewImg(w.works)"
  2196. alt
  2197. />
  2198. <div
  2199. class="answerScore"
  2200. v-if="w.score"
  2201. @click.stop="openScore(w)"
  2202. :class="{
  2203. rightW:
  2204. w.userid == userid || tType == 1 || tType == 4,
  2205. }"
  2206. >
  2207. {{ JSON.parse(w.score).wScore }}分
  2208. </div>
  2209. <div
  2210. class="answerScore"
  2211. @click.stop="openScore(w)"
  2212. v-else-if="courseDetail.userid == userid"
  2213. :class="{
  2214. rightW:
  2215. w.userid == userid || tType == 1 || tType == 4,
  2216. }"
  2217. >
  2218. 评分
  2219. </div>
  2220. <img
  2221. class="deleteImg"
  2222. src="../assets/deleteworks.png"
  2223. v-if="
  2224. w.userid == userid || tType == 1 || tType == 4
  2225. "
  2226. @click.stop="deleteWorks(w.wid)"
  2227. alt
  2228. />
  2229. </div>
  2230. <div class="worksName">
  2231. <div>{{ w.sName }}</div>
  2232. </div>
  2233. </div>
  2234. </div>
  2235. </div>
  2236. <div
  2237. v-if="
  2238. tType &&
  2239. tType == 2 &&
  2240. !sIsOpen &&
  2241. tool.tool.indexOf(6) != -1
  2242. "
  2243. class="worksBox"
  2244. >
  2245. <div
  2246. class="zuoyeYulan"
  2247. v-if="workStudent[toolIndex].length > 0"
  2248. >
  2249. <span class="worksTitle">作业预览</span>
  2250. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2251. </div>
  2252. <div
  2253. class="worksDetailBox"
  2254. v-if="workStudent[toolIndex].length > 0"
  2255. >
  2256. <div
  2257. class="works"
  2258. style="
  2259. width: 200px;
  2260. height: 140px;
  2261. margin: 10px 10px 10px 0;
  2262. box-shadow: 0 0 6px 1px #dfdada;
  2263. "
  2264. v-for="(w, wIndex) in workStudent[toolIndex]"
  2265. :key="wIndex"
  2266. >
  2267. <div class="workImg">
  2268. <img
  2269. :src="w.works"
  2270. @click="previewImg(w.works)"
  2271. alt
  2272. />
  2273. <div
  2274. class="answerScore"
  2275. v-if="w.score"
  2276. @click.stop="openScore(w)"
  2277. :class="{
  2278. rightW:
  2279. w.userid == userid || tType == 1 || tType == 4,
  2280. }"
  2281. >
  2282. {{ JSON.parse(w.score).wScore }}分
  2283. </div>
  2284. <div
  2285. class="answerScore"
  2286. @click.stop="openScore(w)"
  2287. v-else-if="courseDetail.userid == userid"
  2288. :class="{
  2289. rightW:
  2290. w.userid == userid || tType == 1 || tType == 4,
  2291. }"
  2292. >
  2293. 评分
  2294. </div>
  2295. <img
  2296. class="deleteImg"
  2297. src="../assets/deleteworks.png"
  2298. v-if="
  2299. w.userid == userid || tType == 1 || tType == 4
  2300. "
  2301. @click.stop="deleteWorks(w.wid)"
  2302. alt
  2303. />
  2304. </div>
  2305. <div class="worksName">
  2306. <div>{{ w.sName }}</div>
  2307. </div>
  2308. </div>
  2309. </div>
  2310. </div>
  2311. <div
  2312. v-if="
  2313. tType &&
  2314. tType == 2 &&
  2315. !sIsOpen &&
  2316. tool.tool.indexOf(7) != -1
  2317. "
  2318. class="worksBox"
  2319. >
  2320. <div
  2321. class="zuoyeYulan"
  2322. v-if="workStudent[toolIndex].length > 0"
  2323. >
  2324. <span class="worksTitle">作业预览</span>
  2325. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2326. </div>
  2327. <div
  2328. class="worksDetailBox"
  2329. v-if="workStudent[toolIndex].length > 0"
  2330. >
  2331. <div
  2332. class="works"
  2333. style="
  2334. width: 200px;
  2335. height: 140px;
  2336. margin: 10px 10px 10px 0;
  2337. box-shadow: 0 0 6px 1px #dfdada;
  2338. "
  2339. v-for="(w, wIndex) in workStudent[toolIndex]"
  2340. :key="wIndex"
  2341. >
  2342. <div class="workImg">
  2343. <img
  2344. :src="w.works"
  2345. @click="previewImg(w.works)"
  2346. alt
  2347. />
  2348. <div
  2349. class="answerScore"
  2350. v-if="w.score"
  2351. @click.stop="openScore(w)"
  2352. :class="{
  2353. rightW:
  2354. w.userid == userid || tType == 1 || tType == 4,
  2355. }"
  2356. >
  2357. {{ JSON.parse(w.score).wScore }}分
  2358. </div>
  2359. <div
  2360. class="answerScore"
  2361. @click.stop="openScore(w)"
  2362. v-else-if="courseDetail.userid == userid"
  2363. :class="{
  2364. rightW:
  2365. w.userid == userid || tType == 1 || tType == 4,
  2366. }"
  2367. >
  2368. 评分
  2369. </div>
  2370. <img
  2371. class="deleteImg"
  2372. src="../assets/deleteworks.png"
  2373. v-if="
  2374. w.userid == userid || tType == 1 || tType == 4
  2375. "
  2376. @click.stop="deleteWorks(w.wid)"
  2377. alt
  2378. />
  2379. </div>
  2380. <div class="worksName">
  2381. <div>{{ w.sName }}</div>
  2382. </div>
  2383. </div>
  2384. </div>
  2385. </div>
  2386. <div
  2387. v-if="
  2388. tType &&
  2389. tType == 2 &&
  2390. !sIsOpen &&
  2391. tool.tool.indexOf(26) != -1
  2392. "
  2393. class="worksBox"
  2394. >
  2395. <div
  2396. class="zuoyeYulan"
  2397. v-if="workStudent[toolIndex].length > 0"
  2398. >
  2399. <span class="worksTitle">作业预览</span>
  2400. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2401. </div>
  2402. <div
  2403. class="worksDetailBox"
  2404. v-if="workStudent[toolIndex].length > 0"
  2405. >
  2406. <div
  2407. class="works"
  2408. style="
  2409. width: 200px;
  2410. height: 140px;
  2411. margin: 10px 10px 10px 0;
  2412. box-shadow: 0 0 6px 1px #dfdada;
  2413. "
  2414. v-for="(w, wIndex) in workStudent[toolIndex]"
  2415. :key="wIndex"
  2416. >
  2417. <div class="workImg">
  2418. <img
  2419. :src="w.works"
  2420. @click="previewImg(w.works)"
  2421. alt
  2422. />
  2423. <img
  2424. class="deleteImg"
  2425. src="../assets/deleteworks.png"
  2426. v-if="
  2427. w.userid == userid || tType == 1 || tType == 4
  2428. "
  2429. @click.stop="deleteWorks(w.wid)"
  2430. alt
  2431. />
  2432. </div>
  2433. <div class="worksName">
  2434. <div>{{ w.sName }}</div>
  2435. </div>
  2436. </div>
  2437. </div>
  2438. </div>
  2439. <div
  2440. v-if="
  2441. tType &&
  2442. ((tType == 2 && sIsOpen == true) ||
  2443. tType == 1 ||
  2444. tType == 4) &&
  2445. tool.tool.indexOf(16) != -1
  2446. "
  2447. class="worksBox"
  2448. >
  2449. <div
  2450. class="zuoyeYulan"
  2451. v-if="
  2452. (worksStudent.length &&
  2453. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2454. "
  2455. >
  2456. <div class="worksTop">
  2457. <div>作业预览</div>
  2458. <div
  2459. class="corOpen"
  2460. @click="contract(toolIndex)"
  2461. v-if="
  2462. (isCloseList[toolIndex].isCloseBoolean) &&
  2463. isCloseList[toolIndex].isClose == 0
  2464. "
  2465. >
  2466. 折叠
  2467. </div>
  2468. <div
  2469. class="corOpen"
  2470. @click="contract(toolIndex)"
  2471. v-if="isCloseList[toolIndex].isClose == 1"
  2472. >
  2473. 展开
  2474. </div>
  2475. </div>
  2476. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2477. </div>
  2478. <div
  2479. class="group_workBox"
  2480. v-for="(g, gindex) in courseGroup.group"
  2481. :key="gindex"
  2482. >
  2483. <div class="group_box">
  2484. <div class="group_title">
  2485. <el-tooltip
  2486. class="item"
  2487. effect="light"
  2488. :content="g.name"
  2489. placement="top"
  2490. >
  2491. <div class="group_name">{{ g.name }}</div>
  2492. </el-tooltip>
  2493. </div>
  2494. <div
  2495. class="group_work"
  2496. v-if="
  2497. g.works &&
  2498. g.works.length &&
  2499. g.works[toolIndex].length
  2500. "
  2501. >
  2502. <div
  2503. class="works"
  2504. style="
  2505. width: 200px;
  2506. height: 140px;
  2507. margin: 10px 10px 10px 0;
  2508. border-radius: 15px;
  2509. box-shadow: 0 0 6px 1px #dfdada;
  2510. "
  2511. v-for="(w, wIndex) in g.works[toolIndex]"
  2512. :key="wIndex"
  2513. :class="w.type == 1 ? 'isTypeOne' : ''"
  2514. >
  2515. <div class="workImg" v-if="w.type == 0">
  2516. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2517. <img
  2518. :src="w.works"
  2519. @click="previewImg(w.works)"
  2520. alt
  2521. />
  2522. <div
  2523. class="answerScore"
  2524. v-if="w.score"
  2525. @click.stop="openScore(w)"
  2526. :class="{
  2527. rightW:
  2528. w.userid == userid ||
  2529. tType == 1 ||
  2530. tType == 4 ||
  2531. w.ateacher == userid,
  2532. }"
  2533. >
  2534. {{ JSON.parse(w.score).wScore }}分
  2535. </div>
  2536. <div
  2537. class="answerScore"
  2538. @click.stop="openScore(w)"
  2539. v-else-if="courseDetail.userid == userid"
  2540. :class="{
  2541. rightW:
  2542. w.userid == userid ||
  2543. tType == 1 ||
  2544. tType == 4 ||
  2545. w.ateacher == userid,
  2546. }"
  2547. >
  2548. 评分
  2549. </div>
  2550. <img
  2551. class="deleteImg"
  2552. src="../assets/deleteworks.png"
  2553. v-if="
  2554. w.userid == userid || tType == 1 || tType == 4
  2555. "
  2556. @click.stop="deleteWorks(w.wid)"
  2557. alt
  2558. />
  2559. </div>
  2560. <div class="workImg" v-if="w.type == 1">
  2561. <img :src="word" @click="openFile(w.works)" alt />
  2562. <!-- @click="openFile(w.works)" -->
  2563. <div
  2564. class="answerScore"
  2565. v-if="w.score"
  2566. @click.stop="openScore(w)"
  2567. :class="{
  2568. rightW:
  2569. w.userid == userid ||
  2570. tType == 1 ||
  2571. tType == 4 ||
  2572. w.ateacher == userid,
  2573. }"
  2574. >
  2575. {{ JSON.parse(w.score).wScore }}分
  2576. </div>
  2577. <div
  2578. class="answerScore"
  2579. @click.stop="openScore(w)"
  2580. v-else-if="courseDetail.userid == userid"
  2581. :class="{
  2582. rightW:
  2583. w.userid == userid ||
  2584. tType == 1 ||
  2585. tType == 4 ||
  2586. w.ateacher == userid,
  2587. }"
  2588. >
  2589. 评分
  2590. </div>
  2591. <img
  2592. class="deleteImg"
  2593. src="../assets/deleteworks.png"
  2594. v-if="
  2595. w.userid == userid || tType == 1 || tType == 4
  2596. "
  2597. @click.stop="deleteWorks(w.wid)"
  2598. alt
  2599. />
  2600. </div>
  2601. <div class="workImg" v-if="w.type == 3">
  2602. <img
  2603. style="cursor: pointer"
  2604. :src="video"
  2605. @click="openVideo(w)"
  2606. alt
  2607. />
  2608. <!-- @click="openVideo(w.works)" -->
  2609. <div
  2610. class="answerScore"
  2611. v-if="w.score"
  2612. @click.stop="openScore(w)"
  2613. :class="{
  2614. rightW:
  2615. w.userid == userid ||
  2616. tType == 1 ||
  2617. tType == 4 ||
  2618. w.ateacher == userid,
  2619. }"
  2620. >
  2621. {{ JSON.parse(w.score).wScore }}分
  2622. </div>
  2623. <div
  2624. class="answerScore"
  2625. @click.stop="openScore(w)"
  2626. v-else-if="courseDetail.userid == userid"
  2627. :class="{
  2628. rightW:
  2629. w.userid == userid ||
  2630. tType == 1 ||
  2631. tType == 4 ||
  2632. w.ateacher == userid,
  2633. }"
  2634. >
  2635. 评分
  2636. </div>
  2637. <img
  2638. class="deleteImg"
  2639. src="../assets/deleteworks.png"
  2640. v-if="
  2641. w.userid == userid || tType == 1 || tType == 4
  2642. "
  2643. @click.stop="deleteWorks(w.wid)"
  2644. alt
  2645. />
  2646. </div>
  2647. <div class="workImg" v-if="w.type == 12">
  2648. <img
  2649. style="cursor: pointer"
  2650. :src="word2"
  2651. @click="downloadFile(w.works)"
  2652. alt
  2653. />
  2654. <!-- @click="openVideo(w.works)" -->
  2655. <div
  2656. class="answerScore"
  2657. v-if="w.score"
  2658. @click.stop="openScore(w)"
  2659. :class="{
  2660. rightW:
  2661. w.userid == userid ||
  2662. tType == 1 ||
  2663. tType == 4 ||
  2664. w.ateacher == userid,
  2665. }"
  2666. >
  2667. {{ JSON.parse(w.score).wScore }}分
  2668. </div>
  2669. <div
  2670. class="answerScore"
  2671. @click.stop="openScore(w)"
  2672. v-else-if="courseDetail.userid == userid"
  2673. :class="{
  2674. rightW:
  2675. w.userid == userid ||
  2676. tType == 1 ||
  2677. tType == 4 ||
  2678. w.ateacher == userid,
  2679. }"
  2680. >
  2681. 评分
  2682. </div>
  2683. <img
  2684. class="deleteImg"
  2685. src="../assets/deleteworks.png"
  2686. v-if="
  2687. w.userid == userid || tType == 1 || tType == 4
  2688. "
  2689. @click.stop="deleteWorks(w.wid)"
  2690. alt
  2691. />
  2692. </div>
  2693. <div class="comment" style="min-width: 200px">
  2694. <div class="worksName">
  2695. <div>{{ w.sName }}</div>
  2696. </div>
  2697. <div class="commentList">
  2698. <div class="commentList">
  2699. <div
  2700. class="commentImg"
  2701. @click="
  2702. isLikes(w.wid, userid, 1, null, w.isLikes)
  2703. "
  2704. >
  2705. <img
  2706. :src="w.isLikes == true ? likes : noLikes"
  2707. alt=""
  2708. />
  2709. </div>
  2710. <div>{{ w.likesCount }}</div>
  2711. </div>
  2712. <div
  2713. class="commentList"
  2714. style="margin-right: 15px"
  2715. >
  2716. <div
  2717. class="commentImg"
  2718. @click="
  2719. commentOther(
  2720. w,
  2721. toolIndex,
  2722. wIndex,
  2723. null,
  2724. g.id
  2725. )
  2726. "
  2727. >
  2728. <img
  2729. src="../assets/icon/comment/comment.png"
  2730. alt=""
  2731. />
  2732. </div>
  2733. <div>{{ w.commentCount }}</div>
  2734. </div>
  2735. </div>
  2736. </div>
  2737. </div>
  2738. </div>
  2739. <div class="group_work" v-else>暂无提交作业</div>
  2740. </div>
  2741. </div>
  2742. <div
  2743. :id="'tool-' + toolIndex"
  2744. :style="{
  2745. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2746. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2747. }"
  2748. class="worksDetailBox"
  2749. v-if="
  2750. worksStudent.length &&
  2751. worksStudent[toolIndex].length > 0
  2752. "
  2753. >
  2754. <div
  2755. class="works"
  2756. style="
  2757. width: 200px;
  2758. height: 140px;
  2759. margin: 10px 10px 10px 0;
  2760. border-radius: 15px;
  2761. box-shadow: 0 0 6px 1px #dfdada;
  2762. "
  2763. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2764. :key="wIndex"
  2765. :class="w.type == 1 ? 'isTypeOne' : ''"
  2766. >
  2767. <div class="workImg" v-if="w.type == 0">
  2768. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2769. <img
  2770. :src="w.works"
  2771. @click="previewImg(w.works)"
  2772. alt
  2773. />
  2774. <div
  2775. class="answerScore"
  2776. v-if="w.score"
  2777. @click.stop="openScore(w)"
  2778. :class="{
  2779. rightW:
  2780. w.userid == userid ||
  2781. tType == 1 ||
  2782. tType == 4 ||
  2783. w.ateacher == userid,
  2784. }"
  2785. >
  2786. {{ JSON.parse(w.score).wScore }}分
  2787. </div>
  2788. <div
  2789. class="answerScore"
  2790. @click.stop="openScore(w)"
  2791. v-else-if="courseDetail.userid == userid"
  2792. :class="{
  2793. rightW:
  2794. w.userid == userid ||
  2795. tType == 1 ||
  2796. tType == 4 ||
  2797. w.ateacher == userid,
  2798. }"
  2799. >
  2800. 评分
  2801. </div>
  2802. <img
  2803. class="deleteImg"
  2804. src="../assets/deleteworks.png"
  2805. v-if="
  2806. w.userid == userid || tType == 1 || tType == 4
  2807. "
  2808. @click.stop="deleteWorks(w.wid)"
  2809. alt
  2810. />
  2811. </div>
  2812. <div class="workImg" v-if="w.type == 1">
  2813. <img :src="word" @click="openFile(w.works)" alt />
  2814. <!-- @click="openFile(w.works)" -->
  2815. <div
  2816. class="answerScore"
  2817. v-if="w.score"
  2818. @click.stop="openScore(w)"
  2819. :class="{
  2820. rightW:
  2821. w.userid == userid ||
  2822. tType == 1 ||
  2823. tType == 4 ||
  2824. w.ateacher == userid,
  2825. }"
  2826. >
  2827. {{ JSON.parse(w.score).wScore }}分
  2828. </div>
  2829. <div
  2830. class="answerScore"
  2831. @click.stop="openScore(w)"
  2832. v-else-if="courseDetail.userid == userid"
  2833. :class="{
  2834. rightW:
  2835. w.userid == userid ||
  2836. tType == 1 ||
  2837. tType == 4 ||
  2838. w.ateacher == userid,
  2839. }"
  2840. >
  2841. 评分
  2842. </div>
  2843. <img
  2844. class="deleteImg"
  2845. src="../assets/deleteworks.png"
  2846. v-if="
  2847. w.userid == userid || tType == 1 || tType == 4
  2848. "
  2849. @click.stop="deleteWorks(w.wid)"
  2850. alt
  2851. />
  2852. </div>
  2853. <div class="workImg" v-if="w.type == 3">
  2854. <img
  2855. style="cursor: pointer"
  2856. :src="video"
  2857. @click="openVideo(w)"
  2858. alt
  2859. />
  2860. <!-- @click="openVideo(w.works)" -->
  2861. <div
  2862. class="answerScore"
  2863. v-if="w.score"
  2864. @click.stop="openScore(w)"
  2865. :class="{
  2866. rightW:
  2867. w.userid == userid ||
  2868. tType == 1 ||
  2869. tType == 4 ||
  2870. w.ateacher == userid,
  2871. }"
  2872. >
  2873. {{ JSON.parse(w.score).wScore }}分
  2874. </div>
  2875. <div
  2876. class="answerScore"
  2877. @click.stop="openScore(w)"
  2878. v-else-if="courseDetail.userid == userid"
  2879. :class="{
  2880. rightW:
  2881. w.userid == userid ||
  2882. tType == 1 ||
  2883. tType == 4 ||
  2884. w.ateacher == userid,
  2885. }"
  2886. >
  2887. 评分
  2888. </div>
  2889. <img
  2890. class="deleteImg"
  2891. src="../assets/deleteworks.png"
  2892. v-if="
  2893. w.userid == userid || tType == 1 || tType == 4
  2894. "
  2895. @click.stop="deleteWorks(w.wid)"
  2896. alt
  2897. />
  2898. </div>
  2899. <div class="workImg" v-if="w.type == 12">
  2900. <img
  2901. style="cursor: pointer"
  2902. :src="word2"
  2903. @click="downloadFile(w.works)"
  2904. alt
  2905. />
  2906. <!-- @click="openVideo(w.works)" -->
  2907. <div
  2908. class="answerScore"
  2909. v-if="w.score"
  2910. @click.stop="openScore(w)"
  2911. :class="{
  2912. rightW:
  2913. w.userid == userid ||
  2914. tType == 1 ||
  2915. tType == 4 ||
  2916. w.ateacher == userid,
  2917. }"
  2918. >
  2919. {{ JSON.parse(w.score).wScore }}分
  2920. </div>
  2921. <div
  2922. class="answerScore"
  2923. @click.stop="openScore(w)"
  2924. v-else-if="courseDetail.userid == userid"
  2925. :class="{
  2926. rightW:
  2927. w.userid == userid ||
  2928. tType == 1 ||
  2929. tType == 4 ||
  2930. w.ateacher == userid,
  2931. }"
  2932. >
  2933. 评分
  2934. </div>
  2935. <img
  2936. class="deleteImg"
  2937. src="../assets/deleteworks.png"
  2938. v-if="
  2939. w.userid == userid || tType == 1 || tType == 4
  2940. "
  2941. @click.stop="deleteWorks(w.wid)"
  2942. alt
  2943. />
  2944. </div>
  2945. <div class="comment" style="min-width: 200px">
  2946. <div class="worksName">
  2947. <div>{{ w.sName }}</div>
  2948. </div>
  2949. <div class="commentList">
  2950. <div class="commentList">
  2951. <div
  2952. class="commentImg"
  2953. @click="
  2954. isLikes(w.wid, userid, 1, null, w.isLikes)
  2955. "
  2956. >
  2957. <img
  2958. :src="w.isLikes == true ? likes : noLikes"
  2959. alt=""
  2960. />
  2961. </div>
  2962. <div>{{ w.likesCount }}</div>
  2963. </div>
  2964. <div class="commentList" style="margin-right: 15px">
  2965. <div
  2966. class="commentImg"
  2967. @click="commentOther(w, toolIndex, wIndex)"
  2968. >
  2969. <img
  2970. src="../assets/icon/comment/comment.png"
  2971. alt=""
  2972. />
  2973. </div>
  2974. <div>{{ w.commentCount }}</div>
  2975. </div>
  2976. </div>
  2977. </div>
  2978. </div>
  2979. </div>
  2980. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2981. 未提交
  2982. </div>
  2983. <div
  2984. class="noWorksS"
  2985. v-if="noWorksS && noWorksS[toolIndex].length"
  2986. >
  2987. <div
  2988. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2989. :key="sIndex"
  2990. class="noWorksName"
  2991. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2992. >
  2993. <el-tooltip effect="dark" :content="s.student" placement="top">
  2994. <span>{{ s.student }}</span>
  2995. </el-tooltip>
  2996. </div>
  2997. </div>
  2998. </div>
  2999. <div
  3000. v-if="
  3001. tType &&
  3002. ((tType == 2 && sIsOpen == true) ||
  3003. tType == 1 ||
  3004. tType == 4) &&
  3005. tool.tool.indexOf(70) != -1
  3006. "
  3007. class="worksBox"
  3008. >
  3009. <div
  3010. class="zuoyeYulan"
  3011. v-if="
  3012. (worksStudent.length &&
  3013. worksStudent[toolIndex].length > 0)
  3014. "
  3015. >
  3016. <div class="worksTop">
  3017. <div>作业预览</div>
  3018. <div
  3019. class="corOpen"
  3020. @click="contract(toolIndex)"
  3021. v-if="
  3022. (isCloseList[toolIndex].isCloseBoolean) &&
  3023. isCloseList[toolIndex].isClose == 0
  3024. "
  3025. >
  3026. 折叠
  3027. </div>
  3028. <div
  3029. class="corOpen"
  3030. @click="contract(toolIndex)"
  3031. v-if="isCloseList[toolIndex].isClose == 1"
  3032. >
  3033. 展开
  3034. </div>
  3035. </div>
  3036. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3037. </div>
  3038. <div
  3039. :id="'tool-' + toolIndex"
  3040. :style="{
  3041. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3042. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3043. }"
  3044. class="worksDetailBox"
  3045. v-if="
  3046. worksStudent.length &&
  3047. worksStudent[toolIndex].length > 0
  3048. "
  3049. >
  3050. <div
  3051. class="works"
  3052. style="
  3053. width: 200px;
  3054. height: 140px;
  3055. margin: 10px 10px 10px 0;
  3056. border-radius: 15px;
  3057. box-shadow: 0 0 6px 1px #dfdada;
  3058. "
  3059. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3060. :key="wIndex"
  3061. :class="w.type == 1 ? 'isTypeOne' : ''"
  3062. >
  3063. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3064. <img :src="word" alt />
  3065. <img
  3066. class="deleteImg"
  3067. src="../assets/deleteworks.png"
  3068. v-if="
  3069. w.userid == userid || tType == 1 || tType == 4
  3070. "
  3071. @click.stop="deleteWorks(w.wid)"
  3072. alt
  3073. />
  3074. </div>
  3075. <div class="comment" style="min-width: 200px">
  3076. <div class="worksName">
  3077. <div>{{ w.sName }}</div>
  3078. </div>
  3079. </div>
  3080. </div>
  3081. </div>
  3082. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3083. 未提交
  3084. </div>
  3085. <div
  3086. class="noWorksS"
  3087. v-if="noWorksS && noWorksS[toolIndex].length"
  3088. >
  3089. <div
  3090. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3091. :key="sIndex"
  3092. class="noWorksName"
  3093. >
  3094. <el-tooltip effect="dark" :content="s.student" placement="top">
  3095. <span>{{ s.student }}</span>
  3096. </el-tooltip>
  3097. </div>
  3098. </div>
  3099. </div>
  3100. <div
  3101. v-if="
  3102. tType &&
  3103. tType == 2 &&
  3104. !sIsOpen &&
  3105. tool.tool.indexOf(70) != -1
  3106. "
  3107. class="worksBox"
  3108. >
  3109. <div
  3110. class="zuoyeYulan"
  3111. v-if="workStudent[toolIndex].length > 0"
  3112. >
  3113. <span class="worksTitle">作业预览</span>
  3114. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3115. </div>
  3116. <div
  3117. class="worksDetailBox"
  3118. v-if="workStudent[toolIndex].length > 0"
  3119. >
  3120. <div
  3121. class="works"
  3122. style="
  3123. width: 200px;
  3124. height: 140px;
  3125. margin: 10px 10px 10px 0;
  3126. box-shadow: 0 0 6px 1px #dfdada;
  3127. "
  3128. v-for="(w, wIndex) in workStudent[toolIndex]"
  3129. :key="wIndex"
  3130. >
  3131. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3132. <img :src="word" alt />
  3133. <img
  3134. class="deleteImg"
  3135. src="../assets/deleteworks.png"
  3136. v-if="
  3137. w.userid == userid || tType == 1 || tType == 4
  3138. "
  3139. @click.stop="deleteWorks(w.wid)"
  3140. alt
  3141. />
  3142. </div>
  3143. <div class="worksName">
  3144. <div>{{ w.sName }}</div>
  3145. </div>
  3146. </div>
  3147. </div>
  3148. </div>
  3149. <div
  3150. v-if="
  3151. tType &&
  3152. ((tType == 2 && sIsOpen == true) ||
  3153. tType == 1 ||
  3154. tType == 4) &&
  3155. tool.tool.indexOf(32) != -1
  3156. "
  3157. class="worksBox"
  3158. >
  3159. <div
  3160. class="zuoyeYulan"
  3161. v-if="
  3162. worksStudent.length &&
  3163. worksStudent[toolIndex].length > 0
  3164. "
  3165. >
  3166. <div class="worksTop">
  3167. <div>作业预览</div>
  3168. <div
  3169. class="corOpen"
  3170. @click="contract(toolIndex)"
  3171. v-if="
  3172. (isCloseList[toolIndex].isCloseBoolean) &&
  3173. isCloseList[toolIndex].isClose == 0
  3174. "
  3175. >
  3176. 折叠
  3177. </div>
  3178. <div
  3179. class="corOpen"
  3180. @click="contract(toolIndex)"
  3181. v-if="isCloseList[toolIndex].isClose == 1"
  3182. >
  3183. 展开
  3184. </div>
  3185. </div>
  3186. </div>
  3187. <div
  3188. :id="'tool-' + toolIndex"
  3189. class="worksDetailBox"
  3190. :style="{
  3191. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3192. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3193. }"
  3194. v-if="
  3195. worksStudent.length &&
  3196. worksStudent[toolIndex].length > 0
  3197. "
  3198. >
  3199. <div
  3200. class="works"
  3201. style="
  3202. width: 200px;
  3203. height: 140px;
  3204. margin: 10px 10px 10px 0;
  3205. border-radius: 15px;
  3206. box-shadow: 0 0 6px 1px #dfdada;
  3207. "
  3208. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3209. :key="wIndex"
  3210. :class="w.type == 1 ? 'isTypeOne' : ''"
  3211. >
  3212. <div class="workImg">
  3213. <img
  3214. :src="word2"
  3215. @click="downloadFile(w.works)"
  3216. alt
  3217. />
  3218. <div
  3219. class="answerScore"
  3220. v-if="w.score"
  3221. @click.stop="openScore(w)"
  3222. :class="{
  3223. rightW:
  3224. w.userid == userid ||
  3225. tType == 1 ||
  3226. tType == 4 ||
  3227. w.ateacher == userid,
  3228. }"
  3229. >
  3230. {{ JSON.parse(w.score).wScore }}分
  3231. </div>
  3232. <div
  3233. class="answerScore"
  3234. @click.stop="openScore(w)"
  3235. v-else-if="courseDetail.userid == userid"
  3236. :class="{
  3237. rightW:
  3238. w.userid == userid ||
  3239. tType == 1 ||
  3240. tType == 4 ||
  3241. w.ateacher == userid,
  3242. }"
  3243. >
  3244. 评分
  3245. </div>
  3246. <img
  3247. class="deleteImg"
  3248. src="../assets/deleteworks.png"
  3249. v-if="
  3250. w.userid == userid || tType == 1 || tType == 4
  3251. "
  3252. @click.stop="deleteWorks(w.wid)"
  3253. alt
  3254. />
  3255. </div>
  3256. <div class="comment" style="min-width: 200px">
  3257. <div class="worksName">
  3258. <div>{{ w.sName }}</div>
  3259. </div>
  3260. <div class="commentList">
  3261. <div class="commentList">
  3262. <div
  3263. class="commentImg"
  3264. @click="
  3265. isLikes(w.wid, userid, 1, null, w.isLikes)
  3266. "
  3267. >
  3268. <img
  3269. :src="w.isLikes == true ? likes : noLikes"
  3270. alt=""
  3271. />
  3272. </div>
  3273. <div>{{ w.likesCount }}</div>
  3274. </div>
  3275. <div class="commentList" style="margin-right: 15px">
  3276. <div
  3277. class="commentImg"
  3278. @click="commentOther(w, toolIndex, wIndex)"
  3279. >
  3280. <img
  3281. src="../assets/icon/comment/comment.png"
  3282. alt=""
  3283. />
  3284. </div>
  3285. <div>{{ w.commentCount }}</div>
  3286. </div>
  3287. </div>
  3288. </div>
  3289. </div>
  3290. </div>
  3291. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3292. 未提交
  3293. </div>
  3294. <div
  3295. class="noWorksS"
  3296. v-if="noWorksS && noWorksS[toolIndex].length"
  3297. >
  3298. <div
  3299. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3300. :key="sIndex"
  3301. class="noWorksName"
  3302. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3303. >
  3304. <el-tooltip effect="dark" :content="s.student" placement="top">
  3305. <span>{{ s.student }}</span>
  3306. </el-tooltip>
  3307. </div>
  3308. </div>
  3309. </div>
  3310. <div
  3311. v-if="
  3312. tType &&
  3313. ((tType == 2 && sIsOpen == true) ||
  3314. tType == 1 ||
  3315. tType == 4) &&
  3316. tool.tool.indexOf(57) != -1
  3317. "
  3318. class="worksBox"
  3319. >
  3320. <div
  3321. class="zuoyeYulan"
  3322. v-if="
  3323. worksStudent.length &&
  3324. worksStudent[toolIndex].length > 0
  3325. "
  3326. >
  3327. <div class="worksTop">
  3328. <div>作业预览</div>
  3329. <div
  3330. class="corOpen"
  3331. @click="contract(toolIndex)"
  3332. v-if="
  3333. (isCloseList[toolIndex].isCloseBoolean) &&
  3334. isCloseList[toolIndex].isClose == 0
  3335. "
  3336. >
  3337. 折叠
  3338. </div>
  3339. <div
  3340. class="corOpen"
  3341. @click="contract(toolIndex)"
  3342. v-if="isCloseList[toolIndex].isClose == 1"
  3343. >
  3344. 展开
  3345. </div>
  3346. </div>
  3347. </div>
  3348. <div
  3349. :id="'tool-' + toolIndex"
  3350. class="worksDetailBox"
  3351. :style="{
  3352. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3353. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3354. }"
  3355. v-if="
  3356. worksStudent.length &&
  3357. worksStudent[toolIndex].length > 0
  3358. "
  3359. >
  3360. <div
  3361. class="works"
  3362. style="
  3363. width: 200px;
  3364. height: 140px;
  3365. margin: 10px 10px 10px 0;
  3366. border-radius: 15px;
  3367. box-shadow: 0 0 6px 1px #dfdada;
  3368. "
  3369. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3370. :key="wIndex"
  3371. :class="w.type == 1 ? 'isTypeOne' : ''"
  3372. >
  3373. <div class="workImg">
  3374. <img
  3375. :src="word2"
  3376. @click="downloadFile(w.works)"
  3377. v-if="w.type == 12"
  3378. alt
  3379. />
  3380. <img
  3381. :src="word2"
  3382. @click="
  3383. openCocoPi(57, toolIndex, w.userid, w.sName)
  3384. "
  3385. v-else-if="w.type == 15"
  3386. alt
  3387. />
  3388. <div
  3389. class="answerScore"
  3390. v-if="w.score"
  3391. @click.stop="openScore(w)"
  3392. :class="{
  3393. rightW:
  3394. w.userid == userid ||
  3395. tType == 1 ||
  3396. tType == 4 ||
  3397. w.ateacher == userid,
  3398. }"
  3399. >
  3400. {{ JSON.parse(w.score).wScore }}分
  3401. </div>
  3402. <div
  3403. class="answerScore"
  3404. @click.stop="openScore(w)"
  3405. v-else-if="courseDetail.userid == userid"
  3406. :class="{
  3407. rightW:
  3408. w.userid == userid ||
  3409. tType == 1 ||
  3410. tType == 4 ||
  3411. w.ateacher == userid,
  3412. }"
  3413. >
  3414. 评分
  3415. </div>
  3416. <img
  3417. class="deleteImg"
  3418. src="../assets/deleteworks.png"
  3419. v-if="
  3420. w.userid == userid || tType == 1 || tType == 4
  3421. "
  3422. @click.stop="deleteWorks(w.wid)"
  3423. alt
  3424. />
  3425. </div>
  3426. <div class="comment" style="min-width: 200px">
  3427. <div class="worksName">
  3428. <div>{{ w.sName }}</div>
  3429. </div>
  3430. <div class="commentList">
  3431. <div class="commentList">
  3432. <div
  3433. class="commentImg"
  3434. @click="
  3435. isLikes(w.wid, userid, 1, null, w.isLikes)
  3436. "
  3437. >
  3438. <img
  3439. :src="w.isLikes == true ? likes : noLikes"
  3440. alt=""
  3441. />
  3442. </div>
  3443. <div>{{ w.likesCount }}</div>
  3444. </div>
  3445. <div class="commentList" style="margin-right: 15px">
  3446. <div
  3447. class="commentImg"
  3448. @click="commentOther(w, toolIndex, wIndex)"
  3449. >
  3450. <img
  3451. src="../assets/icon/comment/comment.png"
  3452. alt=""
  3453. />
  3454. </div>
  3455. <div>{{ w.commentCount }}</div>
  3456. </div>
  3457. </div>
  3458. </div>
  3459. </div>
  3460. </div>
  3461. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3462. 未提交
  3463. </div>
  3464. <div
  3465. class="noWorksS"
  3466. v-if="noWorksS && noWorksS[toolIndex].length"
  3467. >
  3468. <div
  3469. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3470. :key="sIndex"
  3471. class="noWorksName"
  3472. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3473. >
  3474. <el-tooltip effect="dark" :content="s.student" placement="top">
  3475. <span>{{ s.student }}</span>
  3476. </el-tooltip>
  3477. </div>
  3478. </div>
  3479. </div>
  3480. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3481. <div
  3482. class="zuoyeYulan"
  3483. v-if="
  3484. worksStudent.length &&
  3485. worksStudent[toolIndex].length > 0
  3486. "
  3487. >
  3488. <span class="worksTitle">作业预览</span>
  3489. <div
  3490. class="corOpen"
  3491. @click="contract(toolIndex)"
  3492. v-if="
  3493. (isCloseList[toolIndex].isCloseBoolean) &&
  3494. isCloseList[toolIndex].isClose == 0
  3495. "
  3496. >
  3497. 折叠
  3498. </div>
  3499. <div
  3500. class="corOpen"
  3501. @click="contract(toolIndex)"
  3502. v-if="isCloseList[toolIndex].isClose == 1"
  3503. >
  3504. 展开
  3505. </div>
  3506. </div>
  3507. <div
  3508. :id="'tool-' + toolIndex"
  3509. :style="{
  3510. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3511. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3512. }"
  3513. class="worksDetailBox"
  3514. v-if="
  3515. worksStudent.length &&
  3516. worksStudent[toolIndex].length > 0
  3517. "
  3518. >
  3519. <div
  3520. class="works"
  3521. style="
  3522. width: 200px;
  3523. height: 140px;
  3524. margin: 10px 10px 10px 0;
  3525. border-radius: 15px;
  3526. box-shadow: 0 0 6px 1px #dfdada;
  3527. "
  3528. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3529. :key="wIndex"
  3530. :class="w.type == 1 ? 'isTypeOne' : ''"
  3531. >
  3532. <div class="workImg" v-if="w.type == 0">
  3533. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3534. <img
  3535. :src="w.works"
  3536. @click="previewImg(w.works)"
  3537. alt
  3538. />
  3539. <div
  3540. class="answerScore"
  3541. v-if="w.score"
  3542. @click.stop="openScore(w)"
  3543. :class="{
  3544. rightW:
  3545. w.userid == userid ||
  3546. tType == 1 ||
  3547. tType == 4 ||
  3548. w.ateacher == userid,
  3549. }"
  3550. >
  3551. {{ JSON.parse(w.score).wScore }}分
  3552. </div>
  3553. <div
  3554. class="answerScore"
  3555. @click.stop="openScore(w)"
  3556. v-else-if="courseDetail.userid == userid"
  3557. :class="{
  3558. rightW:
  3559. w.userid == userid ||
  3560. tType == 1 ||
  3561. tType == 4 ||
  3562. w.ateacher == userid,
  3563. }"
  3564. >
  3565. 评分
  3566. </div>
  3567. <img
  3568. class="deleteImg"
  3569. src="../assets/deleteworks.png"
  3570. v-if="
  3571. w.userid == userid || tType == 1 || tType == 4
  3572. "
  3573. @click.stop="deleteWorks(w.wid)"
  3574. alt
  3575. />
  3576. </div>
  3577. <div
  3578. class="workImg"
  3579. style="cursor: pointer"
  3580. v-if="w.type == 1"
  3581. >
  3582. <img :src="word" @click="openFile(w.works)" alt />
  3583. <!-- @click="openFile(w.works)" -->
  3584. <div
  3585. class="answerScore"
  3586. v-if="w.score"
  3587. @click.stop="openScore(w)"
  3588. :class="{
  3589. rightW:
  3590. w.userid == userid ||
  3591. tType == 1 ||
  3592. tType == 4 ||
  3593. w.ateacher == userid,
  3594. }"
  3595. >
  3596. {{ JSON.parse(w.score).wScore }}分
  3597. </div>
  3598. <div
  3599. class="answerScore"
  3600. @click.stop="openScore(w)"
  3601. v-else-if="courseDetail.userid == userid"
  3602. :class="{
  3603. rightW:
  3604. w.userid == userid ||
  3605. tType == 1 ||
  3606. tType == 4 ||
  3607. w.ateacher == userid,
  3608. }"
  3609. >
  3610. 评分
  3611. </div>
  3612. <img
  3613. class="deleteImg"
  3614. src="../assets/deleteworks.png"
  3615. v-if="
  3616. w.userid == userid || tType == 1 || tType == 4
  3617. "
  3618. @click.stop="deleteWorks(w.wid)"
  3619. alt
  3620. />
  3621. </div>
  3622. <div class="workImg" v-if="w.type == 3">
  3623. <img
  3624. style="cursor: pointer"
  3625. :src="video"
  3626. @click="openVideo(w)"
  3627. alt
  3628. />
  3629. <!-- @click="openVideo(w.works)" -->
  3630. <div
  3631. class="answerScore"
  3632. v-if="w.score"
  3633. @click.stop="openScore(w)"
  3634. :class="{
  3635. rightW:
  3636. w.userid == userid ||
  3637. tType == 1 ||
  3638. tType == 4 ||
  3639. w.ateacher == userid,
  3640. }"
  3641. >
  3642. {{ JSON.parse(w.score).wScore }}分
  3643. </div>
  3644. <div
  3645. class="answerScore"
  3646. @click.stop="openScore(w)"
  3647. v-else-if="courseDetail.userid == userid"
  3648. :class="{
  3649. rightW:
  3650. w.userid == userid ||
  3651. tType == 1 ||
  3652. tType == 4 ||
  3653. w.ateacher == userid,
  3654. }"
  3655. >
  3656. 评分
  3657. </div>
  3658. <img
  3659. class="deleteImg"
  3660. src="../assets/deleteworks.png"
  3661. v-if="
  3662. w.userid == userid || tType == 1 || tType == 4
  3663. "
  3664. @click.stop="deleteWorks(w.wid)"
  3665. alt
  3666. />
  3667. </div>
  3668. <div class="comment" style="min-width: 200px">
  3669. <div class="worksName">
  3670. <div
  3671. style="cursor: pointer"
  3672. @click="
  3673. openSname(w.sName, w.wid, toolIndex, w.userid)
  3674. "
  3675. >
  3676. {{ w.sName }}
  3677. </div>
  3678. </div>
  3679. <div class="commentList">
  3680. <div class="commentList">
  3681. <div
  3682. class="commentImg"
  3683. @click="
  3684. isLikes(w.wid, userid, 1, null, w.isLikes)
  3685. "
  3686. >
  3687. <img
  3688. :src="w.isLikes == true ? likes : noLikes"
  3689. alt=""
  3690. />
  3691. </div>
  3692. <div>{{ w.likesCount }}</div>
  3693. </div>
  3694. <div class="commentList" style="margin-right: 15px">
  3695. <div
  3696. class="commentImg"
  3697. @click="commentOther(w, toolIndex, wIndex)"
  3698. >
  3699. <img
  3700. src="../assets/icon/comment/comment.png"
  3701. alt=""
  3702. />
  3703. </div>
  3704. <div>{{ w.commentCount }}</div>
  3705. </div>
  3706. </div>
  3707. </div>
  3708. </div>
  3709. </div>
  3710. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3711. 未提交
  3712. </div>
  3713. <div
  3714. class="noWorksS"
  3715. v-if="noWorksS && noWorksS[toolIndex].length"
  3716. >
  3717. <div
  3718. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3719. :key="sIndex"
  3720. class="noWorksName"
  3721. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3722. >
  3723. <el-tooltip effect="dark" :content="s.student" placement="top">
  3724. <span>{{ s.student }}</span>
  3725. </el-tooltip>
  3726. </div>
  3727. </div>
  3728. </div>
  3729. <div
  3730. v-if="
  3731. tType &&
  3732. ((tType == 2 && sIsOpen == true) ||
  3733. tType == 1 ||
  3734. tType == 4) &&
  3735. tool.tool.indexOf(4) != -1 &&
  3736. (tool.askJson[0].answer ||
  3737. tool.askJson[0].answer === 0) &&
  3738. checkJson[toolIndex].length
  3739. "
  3740. class="xuan_right_box"
  3741. >
  3742. <div
  3743. class="tool_right_box"
  3744. v-for="(item, index) in tool.askJson"
  3745. :key="index"
  3746. >
  3747. <div style="width: calc(100% - 30px);">
  3748. <el-tooltip
  3749. effect="light"
  3750. :content="index + 1 + '、' + item.askstitle"
  3751. placement="top"
  3752. popper-class="text_tooltip"
  3753. >
  3754. <div
  3755. style="
  3756. width: calc(100% - 130px);
  3757. display: block;
  3758. white-space: nowrap;
  3759. overflow: hidden;
  3760. text-overflow: ellipsis;
  3761. word-break: break-word;
  3762. cursor: pointer;
  3763. "
  3764. >
  3765. {{ index + 1 + "、" + item.askstitle }}
  3766. </div>
  3767. </el-tooltip>
  3768. </div>
  3769. <div class="right_box_xuan">
  3770. <span>正确率</span>
  3771. <span>{{
  3772. (checkJson[toolIndex][index].right
  3773. ? checkJson[toolIndex][index].right
  3774. : 0) + "%"
  3775. }}</span>
  3776. </div>
  3777. </div>
  3778. </div>
  3779. <div
  3780. class="xuan_right_box"
  3781. style="background: unset; padding: 0 10px"
  3782. v-if="
  3783. tType &&
  3784. ((tType == 2 && sIsOpen == true) ||
  3785. tType == 1 ||
  3786. tType == 4) &&
  3787. tool.tool.indexOf(4) != -1
  3788. "
  3789. >
  3790. <AskStatic
  3791. v-if="
  3792. worksStudent.length &&
  3793. worksStudent[toolIndex].length > 0
  3794. "
  3795. :askJSON="tool"
  3796. :checkJson="checkJson[toolIndex]"
  3797. ></AskStatic>
  3798. </div>
  3799. <div
  3800. v-if="
  3801. tType &&
  3802. ((tType == 2 && sIsOpen == true) ||
  3803. tType == 1 ||
  3804. tType == 4) &&
  3805. tool.tool.indexOf(4) != -1
  3806. "
  3807. class="worksBox"
  3808. >
  3809. <div
  3810. class="zuoyeYulan"
  3811. v-if="
  3812. worksStudent.length &&
  3813. worksStudent[toolIndex].length > 0
  3814. "
  3815. >
  3816. <div class="worksTop">
  3817. <div>作业预览</div>
  3818. <div
  3819. class="corOpen"
  3820. @click="contract(toolIndex)"
  3821. v-if="
  3822. (isCloseList[toolIndex].isCloseBoolean) &&
  3823. isCloseList[toolIndex].isClose == 0
  3824. "
  3825. >
  3826. 折叠
  3827. </div>
  3828. <div
  3829. class="corOpen"
  3830. @click="contract(toolIndex)"
  3831. v-if="isCloseList[toolIndex].isClose == 1"
  3832. >
  3833. 展开
  3834. </div>
  3835. </div>
  3836. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3837. </div>
  3838. <div>
  3839. <div
  3840. :id="'tool-' + toolIndex"
  3841. :style="{
  3842. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3843. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3844. }"
  3845. class="worksDetailBox"
  3846. v-if="
  3847. worksStudent.length &&
  3848. worksStudent[toolIndex].length > 0
  3849. "
  3850. >
  3851. <div
  3852. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3853. :key="wIndex"
  3854. class="isWorksName2"
  3855. @click="
  3856. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3857. "
  3858. >
  3859. {{ w.sName }}
  3860. <img
  3861. class="deleteImg deleteImg2"
  3862. src="../assets/deleteworks.png"
  3863. v-if="
  3864. w.userid == userid || tType == 1 || tType == 4
  3865. "
  3866. @click.stop="deleteWorks(w.wid)"
  3867. alt
  3868. />
  3869. </div>
  3870. <!-- <div class="works" style="
  3871. width: 200px;
  3872. height: 140px;
  3873. border-radius: 10px;
  3874. box-shadow: 0 0 6px 1px #dfdada;
  3875. overflow: hidden;
  3876. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3877. <div class="workImg">
  3878. <img src="../assets/icon/works/noImg.png" @click="
  3879. openTools(
  3880. 4,
  3881. toolIndex,
  3882. taskCount,
  3883. w.works,
  3884. w.sName
  3885. )
  3886. " alt />
  3887. </div>
  3888. <div class="worksName">
  3889. <div>{{ w.sName }}</div>
  3890. <div>{{ w.time }}</div>
  3891. </div>
  3892. </div> -->
  3893. </div>
  3894. </div>
  3895. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3896. 未提交
  3897. </div>
  3898. <div
  3899. class="noWorksS"
  3900. v-if="noWorksS && noWorksS[toolIndex].length"
  3901. >
  3902. <div
  3903. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3904. :key="sIndex"
  3905. class="noWorksName"
  3906. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3907. >
  3908. <el-tooltip effect="dark" :content="s.student" placement="top">
  3909. <span>{{ s.student }}</span>
  3910. </el-tooltip>
  3911. </div>
  3912. </div>
  3913. </div>
  3914. <div
  3915. v-if="
  3916. tType &&
  3917. ((tType == 2 && sIsOpen == true) ||
  3918. tType == 1 ||
  3919. tType == 4) &&
  3920. tool.tool.indexOf(45) != -1 &&
  3921. (tool.testJson.testJson[0].answer ||
  3922. tool.testJson.testJson[0].answer === 0) &&
  3923. checkJson[toolIndex].length
  3924. "
  3925. class="xuan_right_box"
  3926. >
  3927. <div
  3928. class="tool_right_box"
  3929. v-for="(item, index) in tool.testJson.testJson"
  3930. :key="index"
  3931. >
  3932. <div class="right_box_xuan" style="margin-right: 10px">
  3933. <span>正确率</span>
  3934. <span>{{
  3935. (checkJson[toolIndex][index].right
  3936. ? checkJson[toolIndex][index].right
  3937. : 0) + "%"
  3938. }}</span>
  3939. </div>
  3940. <div style="width: calc(100% - 30px);">
  3941. <el-tooltip
  3942. effect="light"
  3943. :content="index + 1 + '、' + item.teststitle"
  3944. placement="top"
  3945. popper-class="text_tooltip"
  3946. >
  3947. <div
  3948. style="
  3949. width: calc(100% - 130px);
  3950. display: block;
  3951. white-space: nowrap;
  3952. overflow: hidden;
  3953. text-overflow: ellipsis;
  3954. word-break: break-word;
  3955. cursor: pointer;
  3956. "
  3957. >
  3958. {{ index + 1 + "、" + item.teststitle }}
  3959. </div>
  3960. </el-tooltip>
  3961. </div>
  3962. </div>
  3963. </div>
  3964. <div
  3965. class="xuan_right_box"
  3966. style="background: unset; padding: 0 10px; width: 91.5%"
  3967. v-if="
  3968. tType &&
  3969. ((tType == 2 && sIsOpen == true) ||
  3970. tType == 1 ||
  3971. tType == 4) &&
  3972. tool.tool.indexOf(45) != -1
  3973. "
  3974. >
  3975. <AskStatic2
  3976. v-if="
  3977. worksStudent.length &&
  3978. worksStudent[toolIndex].length > 0
  3979. "
  3980. :askJSON="tool"
  3981. :checkJson="checkJson[toolIndex]"
  3982. ></AskStatic2>
  3983. </div>
  3984. <div
  3985. v-if="
  3986. tType &&
  3987. ((tType == 2 && sIsOpen == true) ||
  3988. tType == 1 ||
  3989. tType == 4) &&
  3990. tool.tool.indexOf(45) != -1
  3991. "
  3992. class="worksBox"
  3993. >
  3994. <div
  3995. class="zuoyeYulan"
  3996. v-if="
  3997. worksStudent.length &&
  3998. worksStudent[toolIndex].length > 0
  3999. "
  4000. >
  4001. <div class="worksTop">
  4002. <div>作业预览</div>
  4003. <div
  4004. class="corOpen"
  4005. @click="contract(toolIndex)"
  4006. v-if="
  4007. (isCloseList[toolIndex].isCloseBoolean) &&
  4008. isCloseList[toolIndex].isClose == 0
  4009. "
  4010. >
  4011. 折叠
  4012. </div>
  4013. <div
  4014. class="corOpen"
  4015. @click="contract(toolIndex)"
  4016. v-if="isCloseList[toolIndex].isClose == 1"
  4017. >
  4018. 展开
  4019. </div>
  4020. </div>
  4021. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4022. </div>
  4023. <div>
  4024. <div
  4025. :id="'tool-' + toolIndex"
  4026. :style="{
  4027. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4028. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4029. }"
  4030. class="worksDetailBox"
  4031. v-if="
  4032. worksStudent.length &&
  4033. worksStudent[toolIndex].length > 0
  4034. "
  4035. >
  4036. <div
  4037. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4038. :key="wIndex"
  4039. class="isWorksName2"
  4040. @click="
  4041. openTools(
  4042. 45,
  4043. toolIndex,
  4044. taskCount,
  4045. w.works,
  4046. w.sName
  4047. )
  4048. "
  4049. >
  4050. {{ w.sName }}
  4051. <img
  4052. class="deleteImg deleteImg2"
  4053. src="../assets/deleteworks.png"
  4054. v-if="
  4055. w.userid == userid || tType == 1 || tType == 4
  4056. "
  4057. @click.stop="deleteWorks(w.wid)"
  4058. alt
  4059. />
  4060. </div>
  4061. </div>
  4062. </div>
  4063. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4064. 未提交
  4065. </div>
  4066. <div
  4067. class="noWorksS"
  4068. v-if="noWorksS && noWorksS[toolIndex].length"
  4069. >
  4070. <div
  4071. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4072. :key="sIndex"
  4073. class="noWorksName"
  4074. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4075. >
  4076. <el-tooltip effect="dark" :content="s.student" placement="top">
  4077. <span>{{ s.student }}</span>
  4078. </el-tooltip>
  4079. </div>
  4080. </div>
  4081. </div>
  4082. <div
  4083. v-if="
  4084. tType &&
  4085. ((tType == 2 && sIsOpen == true) ||
  4086. tType == 1 ||
  4087. tType == 4) &&
  4088. tool.tool.indexOf(69) != -1
  4089. "
  4090. class="worksBox"
  4091. >
  4092. <div
  4093. class="zuoyeYulan"
  4094. v-if="
  4095. worksStudent.length &&
  4096. worksStudent[toolIndex].length > 0
  4097. "
  4098. >
  4099. <div class="worksTop">
  4100. <div>作业预览</div>
  4101. <div
  4102. class="corOpen"
  4103. @click="contract(toolIndex)"
  4104. v-if="
  4105. (isCloseList[toolIndex].isCloseBoolean) &&
  4106. isCloseList[toolIndex].isClose == 0
  4107. "
  4108. >
  4109. 折叠
  4110. </div>
  4111. <div
  4112. class="corOpen"
  4113. @click="contract(toolIndex)"
  4114. v-if="isCloseList[toolIndex].isClose == 1"
  4115. >
  4116. 展开
  4117. </div>
  4118. </div>
  4119. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4120. </div>
  4121. <div>
  4122. <div
  4123. :id="'tool-' + toolIndex"
  4124. :style="{
  4125. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4126. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4127. }"
  4128. class="worksDetailBox"
  4129. v-if="
  4130. worksStudent.length &&
  4131. worksStudent[toolIndex].length > 0
  4132. "
  4133. >
  4134. <div
  4135. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4136. :key="wIndex"
  4137. class="isWorksName2"
  4138. style="width: 160px;height: 65px;line-height: 65px;"
  4139. @click="
  4140. openTools(
  4141. 69,
  4142. toolIndex,
  4143. taskCount,
  4144. w.works,
  4145. w.sName,
  4146. w.wid
  4147. )
  4148. "
  4149. >
  4150. {{ w.sName }}
  4151. <img
  4152. class="deleteImg1"
  4153. src="../assets/evaEnglish.png"
  4154. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4155. alt
  4156. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4157. />
  4158. <img
  4159. class="deleteImg deleteImg2"
  4160. src="../assets/deleteworks.png"
  4161. v-if="
  4162. w.userid == userid || tType == 1 || tType == 4
  4163. "
  4164. @click.stop="deleteWorks(w.wid)"
  4165. alt
  4166. />
  4167. </div>
  4168. </div>
  4169. </div>
  4170. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4171. 未提交
  4172. </div>
  4173. <div
  4174. class="noWorksS"
  4175. v-if="noWorksS && noWorksS[toolIndex].length"
  4176. >
  4177. <div
  4178. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4179. :key="sIndex"
  4180. class="noWorksName"
  4181. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4182. >
  4183. <el-tooltip effect="dark" :content="s.student" placement="top">
  4184. <span>{{ s.student }}</span>
  4185. </el-tooltip>
  4186. </div>
  4187. </div>
  4188. </div>
  4189. <div
  4190. v-if="
  4191. tType &&
  4192. ((tType == 2 && sIsOpen == true) ||
  4193. tType == 1 ||
  4194. tType == 4) &&
  4195. tool.tool.indexOf(15) != -1
  4196. "
  4197. class="worksBox"
  4198. >
  4199. <div
  4200. class="zuoyeYulan"
  4201. v-if="
  4202. (worksStudent.length &&
  4203. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4204. "
  4205. >
  4206. <div class="worksTop">
  4207. <div>作业预览</div>
  4208. <div
  4209. class="corOpen"
  4210. @click="contract(toolIndex)"
  4211. v-if="
  4212. (isCloseList[toolIndex].isCloseBoolean) &&
  4213. isCloseList[toolIndex].isClose == 0
  4214. "
  4215. >
  4216. 折叠
  4217. </div>
  4218. <div
  4219. class="corOpen"
  4220. @click="contract(toolIndex)"
  4221. v-if="isCloseList[toolIndex].isClose == 1"
  4222. >
  4223. 展开
  4224. </div>
  4225. </div>
  4226. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4227. </div>
  4228. <div
  4229. class="group_workBox"
  4230. v-for="(g, gindex) in courseGroup.group"
  4231. :key="gindex"
  4232. >
  4233. <div class="group_box">
  4234. <div class="group_title">
  4235. <el-tooltip
  4236. class="item"
  4237. effect="light"
  4238. :content="g.name"
  4239. placement="top"
  4240. >
  4241. <div class="group_name">{{ g.name }}</div>
  4242. </el-tooltip>
  4243. </div>
  4244. <div
  4245. class="group_work"
  4246. v-if="
  4247. g.works &&
  4248. g.works.length &&
  4249. g.works[toolIndex].length
  4250. "
  4251. >
  4252. <div
  4253. class="works"
  4254. v-for="(w, wIndex) in g.works[toolIndex]"
  4255. :key="wIndex"
  4256. >
  4257. <div
  4258. class="workImg"
  4259. style="
  4260. border-radius: 15px;
  4261. box-shadow: 0px 0px 5px 5px #eee;
  4262. "
  4263. >
  4264. <div
  4265. class="answerBg"
  4266. style="border-radius: 15px 15px 0 0"
  4267. @click="
  4268. commentOther(w, toolIndex, wIndex, null, g.id)
  4269. "
  4270. >
  4271. <div class="answerContent">
  4272. {{ JSON.parse(w.works)[0].answer }}
  4273. </div>
  4274. <div
  4275. class="answerScore"
  4276. v-if="w.score"
  4277. @click.stop="openScore(w)"
  4278. :class="{
  4279. rightW:
  4280. w.userid == userid ||
  4281. tType == 1 ||
  4282. tType == 4,
  4283. }"
  4284. >
  4285. {{ JSON.parse(w.score).wScore }}分
  4286. </div>
  4287. <div
  4288. class="answerScore"
  4289. @click.stop="openScore(w)"
  4290. v-else-if="courseDetail.userid == userid"
  4291. :class="{
  4292. rightW:
  4293. w.userid == userid ||
  4294. tType == 1 ||
  4295. tType == 4,
  4296. }"
  4297. >
  4298. 评分
  4299. </div>
  4300. <img
  4301. class="deleteImg"
  4302. src="../assets/deleteworks.png"
  4303. v-if="
  4304. w.userid == userid ||
  4305. tType == 1 ||
  4306. tType == 4
  4307. "
  4308. @click.stop="deleteWorks(w.wid)"
  4309. alt
  4310. />
  4311. </div>
  4312. <div class="comment">
  4313. <div class="worksName">
  4314. <div>{{ w.sName }}</div>
  4315. </div>
  4316. <div class="commentList">
  4317. <div
  4318. class="commentImg"
  4319. @click="
  4320. isLikes(w.wid, userid, 1, null, w.isLikes)
  4321. "
  4322. >
  4323. <img
  4324. :src="w.isLikes == true ? likes : noLikes"
  4325. alt=""
  4326. />
  4327. </div>
  4328. <div>{{ w.likesCount }}</div>
  4329. </div>
  4330. <div
  4331. class="commentList"
  4332. style="margin-right: 15px"
  4333. >
  4334. <div
  4335. class="commentImg"
  4336. @click="
  4337. commentOther(
  4338. w,
  4339. toolIndex,
  4340. wIndex,
  4341. null,
  4342. g.id
  4343. )
  4344. "
  4345. >
  4346. <img
  4347. src="../assets/icon/comment/comment.png"
  4348. alt=""
  4349. />
  4350. </div>
  4351. <div>{{ w.commentCount }}</div>
  4352. </div>
  4353. </div>
  4354. </div>
  4355. </div>
  4356. </div>
  4357. <div class="group_work" v-else>暂无提交作业</div>
  4358. </div>
  4359. </div>
  4360. <div
  4361. :id="'tool-' + toolIndex"
  4362. :style="{
  4363. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4364. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4365. }"
  4366. class="worksDetailBox"
  4367. v-if="
  4368. worksStudent.length &&
  4369. worksStudent[toolIndex].length > 0
  4370. "
  4371. >
  4372. <div
  4373. class="works"
  4374. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4375. :key="wIndex"
  4376. >
  4377. <div
  4378. class="workImg"
  4379. style="
  4380. border-radius: 15px;
  4381. box-shadow: 0px 0px 5px 5px #eee;
  4382. "
  4383. >
  4384. <!-- <img
  4385. src="../assets/icon/works/noImg.png"
  4386. @click="openTools(15, toolIndex, taskCount, w.works)"
  4387. alt=""
  4388. />-->
  4389. <div
  4390. class="answerBg"
  4391. style="border-radius: 15px 15px 0 0"
  4392. @click="commentOther(w, toolIndex, wIndex)"
  4393. >
  4394. <!-- <div>{{ w.sName }}</div> -->
  4395. <div class="answerContent">
  4396. {{ JSON.parse(w.works)[0].answer }}
  4397. </div>
  4398. <div
  4399. class="answerScore"
  4400. v-if="w.score"
  4401. @click.stop="openScore(w)"
  4402. :class="{
  4403. rightW:
  4404. w.userid == userid ||
  4405. tType == 1 ||
  4406. tType == 4,
  4407. }"
  4408. >
  4409. {{ JSON.parse(w.score).wScore }}分
  4410. </div>
  4411. <div
  4412. class="answerScore"
  4413. @click.stop="openScore(w)"
  4414. v-else-if="courseDetail.userid == userid"
  4415. :class="{
  4416. rightW:
  4417. w.userid == userid ||
  4418. tType == 1 ||
  4419. tType == 4,
  4420. }"
  4421. >
  4422. 评分
  4423. </div>
  4424. <img
  4425. class="deleteImg"
  4426. src="../assets/deleteworks.png"
  4427. v-if="
  4428. w.userid == userid || tType == 1 || tType == 4
  4429. "
  4430. @click.stop="deleteWorks(w.wid)"
  4431. alt
  4432. />
  4433. </div>
  4434. <div class="comment">
  4435. <div class="worksName">
  4436. <div>{{ w.sName }}</div>
  4437. </div>
  4438. <div class="commentList">
  4439. <div
  4440. class="commentImg"
  4441. @click="
  4442. isLikes(w.wid, userid, 1, null, w.isLikes)
  4443. "
  4444. >
  4445. <img
  4446. :src="w.isLikes == true ? likes : noLikes"
  4447. alt=""
  4448. />
  4449. </div>
  4450. <div>{{ w.likesCount }}</div>
  4451. </div>
  4452. <div class="commentList" style="margin-right: 15px">
  4453. <div
  4454. class="commentImg"
  4455. @click="commentOther(w, toolIndex, wIndex)"
  4456. >
  4457. <img
  4458. src="../assets/icon/comment/comment.png"
  4459. alt=""
  4460. />
  4461. </div>
  4462. <div>{{ w.commentCount }}</div>
  4463. </div>
  4464. </div>
  4465. </div>
  4466. </div>
  4467. </div>
  4468. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4469. 未提交
  4470. </div>
  4471. <div
  4472. class="noWorksS"
  4473. v-if="noWorksS && noWorksS[toolIndex].length"
  4474. >
  4475. <div
  4476. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4477. :key="sIndex"
  4478. class="noWorksName"
  4479. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4480. >
  4481. <el-tooltip effect="dark" :content="s.student" placement="top">
  4482. <span>{{ s.student }}</span>
  4483. </el-tooltip>
  4484. </div>
  4485. </div>
  4486. </div>
  4487. <div
  4488. v-if="
  4489. tType &&
  4490. ((tType == 2 && sIsOpen == true) ||
  4491. tType == 1 ||
  4492. tType == 4) &&
  4493. tool.tool.indexOf(1) != -1
  4494. "
  4495. class="worksBox"
  4496. >
  4497. <div
  4498. class="zuoyeYulan"
  4499. v-if="
  4500. (worksStudent.length &&
  4501. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4502. "
  4503. >
  4504. <div class="worksTop">
  4505. <div>作业预览</div>
  4506. <div
  4507. class="corOpen"
  4508. @click="contract(toolIndex)"
  4509. v-if="
  4510. (isCloseList[toolIndex].isCloseBoolean) &&
  4511. isCloseList[toolIndex].isClose == 0
  4512. "
  4513. >
  4514. 折叠
  4515. </div>
  4516. <div
  4517. class="corOpen"
  4518. @click="contract(toolIndex)"
  4519. v-if="isCloseList[toolIndex].isClose == 1"
  4520. >
  4521. 展开
  4522. </div>
  4523. </div>
  4524. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4525. </div>
  4526. <div
  4527. class="group_workBox"
  4528. v-for="(g, gindex) in courseGroup.group"
  4529. :key="gindex"
  4530. >
  4531. <div class="group_box">
  4532. <div class="group_title">
  4533. <el-tooltip
  4534. class="item"
  4535. effect="light"
  4536. :content="g.name"
  4537. placement="top"
  4538. >
  4539. <div class="group_name">{{ g.name }}</div>
  4540. </el-tooltip>
  4541. </div>
  4542. <div
  4543. class="group_work"
  4544. v-if="
  4545. g.works &&
  4546. g.works.length &&
  4547. g.works[toolIndex].length
  4548. "
  4549. >
  4550. <div
  4551. class="works"
  4552. style="
  4553. width: 200px;
  4554. height: 140px;
  4555. margin: 10px 10px 10px 0;
  4556. border-radius: 15px;
  4557. box-shadow: 0 0 6px 1px #dfdada;
  4558. "
  4559. v-for="(w, wIndex) in g.works[toolIndex]"
  4560. :key="wIndex"
  4561. :class="w.type == 1 ? 'isTypeOne' : ''"
  4562. >
  4563. <div class="workImg">
  4564. <img
  4565. :src="w.works"
  4566. @click="previewImg(w.works)"
  4567. alt
  4568. />
  4569. <div
  4570. class="answerScore"
  4571. v-if="w.score"
  4572. @click.stop="openScore(w)"
  4573. :class="{
  4574. rightW:
  4575. w.userid == userid ||
  4576. tType == 1 ||
  4577. tType == 4,
  4578. }"
  4579. >
  4580. {{ JSON.parse(w.score).wScore }}分
  4581. </div>
  4582. <div
  4583. class="answerScore"
  4584. @click.stop="openScore(w)"
  4585. v-else-if="courseDetail.userid == userid"
  4586. :class="{
  4587. rightW:
  4588. w.userid == userid ||
  4589. tType == 1 ||
  4590. tType == 4,
  4591. }"
  4592. >
  4593. 评分
  4594. </div>
  4595. <img
  4596. class="deleteImg"
  4597. src="../assets/deleteworks.png"
  4598. v-if="
  4599. w.userid == userid || tType == 1 || tType == 4
  4600. "
  4601. @click.stop="deleteWorks(w.wid)"
  4602. alt
  4603. />
  4604. </div>
  4605. <div class="comment" style="min-width: 200px">
  4606. <div class="worksName">
  4607. <div>{{ w.sName }}</div>
  4608. </div>
  4609. <div class="commentList">
  4610. <div class="commentList">
  4611. <div
  4612. class="commentImg"
  4613. @click="
  4614. isLikes(w.wid, userid, 1, null, w.isLikes)
  4615. "
  4616. >
  4617. <img
  4618. :src="w.isLikes == true ? likes : noLikes"
  4619. alt=""
  4620. />
  4621. </div>
  4622. <div>{{ w.likesCount }}</div>
  4623. </div>
  4624. <div
  4625. class="commentList"
  4626. style="margin-right: 15px"
  4627. >
  4628. <div
  4629. class="commentImg"
  4630. @click="
  4631. commentOther(
  4632. w,
  4633. toolIndex,
  4634. wIndex,
  4635. null,
  4636. g.id
  4637. )
  4638. "
  4639. >
  4640. <img
  4641. src="../assets/icon/comment/comment.png"
  4642. alt=""
  4643. />
  4644. </div>
  4645. <div>{{ w.commentCount }}</div>
  4646. </div>
  4647. </div>
  4648. </div>
  4649. </div>
  4650. </div>
  4651. <div class="group_work" v-else>暂无提交作业</div>
  4652. </div>
  4653. </div>
  4654. <div
  4655. :id="'tool-' + toolIndex"
  4656. :style="{
  4657. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4658. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4659. }"
  4660. class="worksDetailBox"
  4661. v-if="
  4662. worksStudent.length &&
  4663. worksStudent[toolIndex].length > 0
  4664. "
  4665. >
  4666. <div
  4667. class="works"
  4668. style="
  4669. width: 200px;
  4670. height: 140px;
  4671. margin: 10px 10px 10px 0;
  4672. border-radius: 15px;
  4673. box-shadow: 0 0 6px 1px #dfdada;
  4674. "
  4675. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4676. :key="wIndex"
  4677. >
  4678. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4679. <div class="workImg">
  4680. <img
  4681. :src="w.works"
  4682. @click="previewImg(w.works)"
  4683. alt
  4684. />
  4685. <div
  4686. class="answerScore"
  4687. v-if="w.score"
  4688. @click.stop="openScore(w)"
  4689. :class="{
  4690. rightW:
  4691. w.userid == userid || tType == 1 || tType == 4,
  4692. }"
  4693. >
  4694. {{ JSON.parse(w.score).wScore }}分
  4695. </div>
  4696. <div
  4697. class="answerScore"
  4698. @click.stop="openScore(w)"
  4699. v-else-if="courseDetail.userid == userid"
  4700. :class="{
  4701. rightW:
  4702. w.userid == userid || tType == 1 || tType == 4,
  4703. }"
  4704. >
  4705. 评分
  4706. </div>
  4707. <img
  4708. class="deleteImg"
  4709. src="../assets/deleteworks.png"
  4710. v-if="
  4711. w.userid == userid || tType == 1 || tType == 4
  4712. "
  4713. @click.stop="deleteWorks(w.wid)"
  4714. alt
  4715. />
  4716. </div>
  4717. <div class="comment" style="min-width: 200px">
  4718. <div class="worksName">
  4719. <div>{{ w.sName }}</div>
  4720. </div>
  4721. <div class="commentList">
  4722. <div class="commentList">
  4723. <div
  4724. class="commentImg"
  4725. @click="
  4726. isLikes(w.wid, userid, 1, null, w.isLikes)
  4727. "
  4728. >
  4729. <img
  4730. :src="w.isLikes == true ? likes : noLikes"
  4731. alt=""
  4732. />
  4733. </div>
  4734. <div>{{ w.likesCount }}</div>
  4735. </div>
  4736. <div class="commentList" style="margin-right: 15px">
  4737. <div
  4738. class="commentImg"
  4739. @click="commentOther(w, toolIndex, wIndex)"
  4740. >
  4741. <img
  4742. src="../assets/icon/comment/comment.png"
  4743. alt=""
  4744. />
  4745. </div>
  4746. <div>{{ w.commentCount }}</div>
  4747. </div>
  4748. </div>
  4749. </div>
  4750. </div>
  4751. </div>
  4752. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4753. 未提交
  4754. </div>
  4755. <div
  4756. class="noWorksS"
  4757. v-if="noWorksS && noWorksS[toolIndex].length"
  4758. >
  4759. <div
  4760. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4761. :key="sIndex"
  4762. class="noWorksName"
  4763. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4764. >
  4765. <el-tooltip effect="dark" :content="s.student" placement="top">
  4766. <span>{{ s.student }}</span>
  4767. </el-tooltip>
  4768. </div>
  4769. </div>
  4770. </div>
  4771. <div
  4772. v-if="
  4773. tType &&
  4774. ((tType == 2 && sIsOpen == true) ||
  4775. tType == 1 ||
  4776. tType == 4) &&
  4777. tool.tool.indexOf(3) != -1
  4778. "
  4779. class="worksBox"
  4780. >
  4781. <div
  4782. class="zuoyeYulan"
  4783. v-if="
  4784. (worksStudent.length &&
  4785. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4786. "
  4787. >
  4788. <div class="worksTop">
  4789. <div>作业预览</div>
  4790. <div
  4791. class="corOpen"
  4792. @click="contract(toolIndex)"
  4793. v-if="
  4794. (isCloseList[toolIndex].isCloseBoolean) &&
  4795. isCloseList[toolIndex].isClose == 0
  4796. "
  4797. >
  4798. 折叠
  4799. </div>
  4800. <div
  4801. class="corOpen"
  4802. @click="contract(toolIndex)"
  4803. v-if="isCloseList[toolIndex].isClose == 1"
  4804. >
  4805. 展开
  4806. </div>
  4807. </div>
  4808. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4809. </div>
  4810. <div
  4811. class="group_workBox"
  4812. v-for="(g, gindex) in courseGroup.group"
  4813. :key="gindex"
  4814. >
  4815. <div class="group_box">
  4816. <div class="group_title">
  4817. <el-tooltip
  4818. class="item"
  4819. effect="light"
  4820. :content="g.name"
  4821. placement="top"
  4822. >
  4823. <div class="group_name">{{ g.name }}</div>
  4824. </el-tooltip>
  4825. </div>
  4826. <div
  4827. class="group_work"
  4828. v-if="
  4829. g.works &&
  4830. g.works.length &&
  4831. g.works[toolIndex].length
  4832. "
  4833. >
  4834. <div
  4835. class="works"
  4836. style="
  4837. width: 200px;
  4838. height: 140px;
  4839. margin: 10px 10px 10px 0;
  4840. border-radius: 15px;
  4841. box-shadow: 0 0 6px 1px #dfdada;
  4842. "
  4843. v-for="(w, wIndex) in g.works[toolIndex]"
  4844. :key="wIndex"
  4845. :class="w.type == 1 ? 'isTypeOne' : ''"
  4846. >
  4847. <div class="workImg">
  4848. <img
  4849. :src="w.works"
  4850. @click="previewImg(w.works)"
  4851. alt
  4852. />
  4853. <div
  4854. class="answerScore"
  4855. v-if="w.score"
  4856. @click.stop="openScore(w)"
  4857. :class="{
  4858. rightW:
  4859. w.userid == userid ||
  4860. tType == 1 ||
  4861. tType == 4,
  4862. }"
  4863. >
  4864. {{ JSON.parse(w.score).wScore }}分
  4865. </div>
  4866. <div
  4867. class="answerScore"
  4868. @click.stop="openScore(w)"
  4869. v-else-if="courseDetail.userid == userid"
  4870. :class="{
  4871. rightW:
  4872. w.userid == userid ||
  4873. tType == 1 ||
  4874. tType == 4,
  4875. }"
  4876. >
  4877. 评分
  4878. </div>
  4879. <img
  4880. class="deleteImg"
  4881. src="../assets/deleteworks.png"
  4882. v-if="
  4883. w.userid == userid || tType == 1 || tType == 4
  4884. "
  4885. @click.stop="deleteWorks(w.wid)"
  4886. alt
  4887. />
  4888. </div>
  4889. <div class="comment" style="min-width: 200px">
  4890. <div class="worksName">
  4891. <div>{{ w.sName }}</div>
  4892. </div>
  4893. <div class="commentList">
  4894. <div class="commentList">
  4895. <div
  4896. class="commentImg"
  4897. @click="
  4898. isLikes(w.wid, userid, 1, null, w.isLikes)
  4899. "
  4900. >
  4901. <img
  4902. :src="w.isLikes == true ? likes : noLikes"
  4903. alt=""
  4904. />
  4905. </div>
  4906. <div>{{ w.likesCount }}</div>
  4907. </div>
  4908. <div
  4909. class="commentList"
  4910. style="margin-right: 15px"
  4911. >
  4912. <div
  4913. class="commentImg"
  4914. @click="
  4915. commentOther(
  4916. w,
  4917. toolIndex,
  4918. wIndex,
  4919. null,
  4920. g.id
  4921. )
  4922. "
  4923. >
  4924. <img
  4925. src="../assets/icon/comment/comment.png"
  4926. alt=""
  4927. />
  4928. </div>
  4929. <div>{{ w.commentCount }}</div>
  4930. </div>
  4931. </div>
  4932. </div>
  4933. </div>
  4934. </div>
  4935. <div class="group_work" v-else>暂无提交作业</div>
  4936. </div>
  4937. </div>
  4938. <div
  4939. :id="'tool-' + toolIndex"
  4940. :style="{
  4941. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4942. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4943. }"
  4944. class="worksDetailBox"
  4945. v-if="
  4946. worksStudent.length &&
  4947. worksStudent[toolIndex].length > 0
  4948. "
  4949. >
  4950. <div
  4951. class="works"
  4952. style="
  4953. width: 200px;
  4954. height: 140px;
  4955. margin: 10px 10px 10px 0;
  4956. border-radius: 15px;
  4957. box-shadow: 0 0 6px 1px #dfdada;
  4958. "
  4959. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4960. :key="wIndex"
  4961. >
  4962. <!-- @click="previewImg(w.works)" -->
  4963. <div class="workImg">
  4964. <img
  4965. :src="w.works"
  4966. @click="previewImg(w.works)"
  4967. alt
  4968. />
  4969. <div
  4970. class="answerScore"
  4971. v-if="w.score"
  4972. @click.stop="openScore(w)"
  4973. :class="{
  4974. rightW:
  4975. w.userid == userid || tType == 1 || tType == 4,
  4976. }"
  4977. >
  4978. {{ JSON.parse(w.score).wScore }}分
  4979. </div>
  4980. <div
  4981. class="answerScore"
  4982. @click.stop="openScore(w)"
  4983. v-else-if="courseDetail.userid == userid"
  4984. :class="{
  4985. rightW:
  4986. w.userid == userid || tType == 1 || tType == 4,
  4987. }"
  4988. >
  4989. 评分
  4990. </div>
  4991. <img
  4992. class="deleteImg"
  4993. src="../assets/deleteworks.png"
  4994. v-if="
  4995. w.userid == userid || tType == 1 || tType == 4
  4996. "
  4997. @click.stop="deleteWorks(w.wid)"
  4998. alt
  4999. />
  5000. </div>
  5001. <div class="comment" style="min-width: 200px">
  5002. <div class="worksName">
  5003. <div>{{ w.sName }}</div>
  5004. </div>
  5005. <div class="commentList">
  5006. <div class="commentList">
  5007. <div
  5008. class="commentImg"
  5009. @click="
  5010. isLikes(w.wid, userid, 1, null, w.isLikes)
  5011. "
  5012. >
  5013. <img
  5014. :src="w.isLikes == true ? likes : noLikes"
  5015. alt=""
  5016. />
  5017. </div>
  5018. <div>{{ w.likesCount }}</div>
  5019. </div>
  5020. <div class="commentList" style="margin-right: 15px">
  5021. <div
  5022. class="commentImg"
  5023. @click="commentOther(w, toolIndex, wIndex)"
  5024. >
  5025. <img
  5026. src="../assets/icon/comment/comment.png"
  5027. alt=""
  5028. />
  5029. </div>
  5030. <div>{{ w.commentCount }}</div>
  5031. </div>
  5032. </div>
  5033. </div>
  5034. </div>
  5035. </div>
  5036. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5037. 未提交
  5038. </div>
  5039. <div
  5040. class="noWorksS"
  5041. v-if="noWorksS && noWorksS[toolIndex].length"
  5042. >
  5043. <div
  5044. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5045. :key="sIndex"
  5046. class="noWorksName"
  5047. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5048. >
  5049. <el-tooltip effect="dark" :content="s.student" placement="top">
  5050. <span>{{ s.student }}</span>
  5051. </el-tooltip>
  5052. </div>
  5053. </div>
  5054. </div>
  5055. <div
  5056. v-if="
  5057. tType &&
  5058. ((tType == 2 && sIsOpen == true) ||
  5059. tType == 1 ||
  5060. tType == 4) &&
  5061. tool.tool.indexOf(6) != -1
  5062. "
  5063. class="worksBox"
  5064. >
  5065. <div
  5066. class="zuoyeYulan"
  5067. v-if="
  5068. (worksStudent.length &&
  5069. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5070. "
  5071. >
  5072. <div class="worksTop">
  5073. <div>作业预览</div>
  5074. <div
  5075. class="corOpen"
  5076. @click="contract(toolIndex)"
  5077. v-if="
  5078. (isCloseList[toolIndex].isCloseBoolean) &&
  5079. isCloseList[toolIndex].isClose == 0
  5080. "
  5081. >
  5082. 折叠
  5083. </div>
  5084. <div
  5085. class="corOpen"
  5086. @click="contract(toolIndex)"
  5087. v-if="isCloseList[toolIndex].isClose == 1"
  5088. >
  5089. 展开
  5090. </div>
  5091. </div>
  5092. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5093. </div>
  5094. <div
  5095. class="group_workBox"
  5096. v-for="(g, gindex) in courseGroup.group"
  5097. :key="gindex"
  5098. >
  5099. <div class="group_box">
  5100. <div class="group_title">
  5101. <el-tooltip
  5102. class="item"
  5103. effect="light"
  5104. :content="g.name"
  5105. placement="top"
  5106. >
  5107. <div class="group_name">{{ g.name }}</div>
  5108. </el-tooltip>
  5109. </div>
  5110. <div
  5111. class="group_work"
  5112. v-if="
  5113. g.works &&
  5114. g.works.length &&
  5115. g.works[toolIndex].length
  5116. "
  5117. >
  5118. <div
  5119. class="works"
  5120. style="
  5121. width: 200px;
  5122. height: 140px;
  5123. margin: 10px 10px 10px 0;
  5124. border-radius: 15px;
  5125. box-shadow: 0 0 6px 1px #dfdada;
  5126. "
  5127. v-for="(w, wIndex) in g.works[toolIndex]"
  5128. :key="wIndex"
  5129. :class="w.type == 1 ? 'isTypeOne' : ''"
  5130. >
  5131. <div class="workImg">
  5132. <img
  5133. :src="w.works"
  5134. @click="previewImg(w.works)"
  5135. alt
  5136. />
  5137. <div
  5138. class="answerScore"
  5139. v-if="w.score"
  5140. @click.stop="openScore(w)"
  5141. :class="{
  5142. rightW:
  5143. w.userid == userid ||
  5144. tType == 1 ||
  5145. tType == 4,
  5146. }"
  5147. >
  5148. {{ JSON.parse(w.score).wScore }}分
  5149. </div>
  5150. <div
  5151. class="answerScore"
  5152. @click.stop="openScore(w)"
  5153. v-else-if="courseDetail.userid == userid"
  5154. :class="{
  5155. rightW:
  5156. w.userid == userid ||
  5157. tType == 1 ||
  5158. tType == 4,
  5159. }"
  5160. >
  5161. 评分
  5162. </div>
  5163. <img
  5164. class="deleteImg"
  5165. src="../assets/deleteworks.png"
  5166. v-if="
  5167. w.userid == userid || tType == 1 || tType == 4
  5168. "
  5169. @click.stop="deleteWorks(w.wid)"
  5170. alt
  5171. />
  5172. </div>
  5173. <div class="comment" style="min-width: 200px">
  5174. <div class="worksName">
  5175. <div>{{ w.sName }}</div>
  5176. </div>
  5177. <div class="commentList">
  5178. <div class="commentList">
  5179. <div
  5180. class="commentImg"
  5181. @click="
  5182. isLikes(w.wid, userid, 1, null, w.isLikes)
  5183. "
  5184. >
  5185. <img
  5186. :src="w.isLikes == true ? likes : noLikes"
  5187. alt=""
  5188. />
  5189. </div>
  5190. <div>{{ w.likesCount }}</div>
  5191. </div>
  5192. <div
  5193. class="commentList"
  5194. style="margin-right: 15px"
  5195. >
  5196. <div
  5197. class="commentImg"
  5198. @click="
  5199. commentOther(
  5200. w,
  5201. toolIndex,
  5202. wIndex,
  5203. null,
  5204. g.id
  5205. )
  5206. "
  5207. >
  5208. <img
  5209. src="../assets/icon/comment/comment.png"
  5210. alt=""
  5211. />
  5212. </div>
  5213. <div>{{ w.commentCount }}</div>
  5214. </div>
  5215. </div>
  5216. </div>
  5217. </div>
  5218. </div>
  5219. <div class="group_work" v-else>暂无提交作业</div>
  5220. </div>
  5221. </div>
  5222. <div
  5223. :id="'tool-' + toolIndex"
  5224. :style="{
  5225. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5226. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5227. }"
  5228. class="worksDetailBox"
  5229. v-if="
  5230. worksStudent.length &&
  5231. worksStudent[toolIndex].length > 0
  5232. "
  5233. >
  5234. <div
  5235. class="works"
  5236. style="
  5237. width: 200px;
  5238. height: 140px;
  5239. margin: 10px 10px 10px 0;
  5240. border-radius: 15px;
  5241. box-shadow: 0 0 6px 1px #dfdada;
  5242. "
  5243. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5244. :key="wIndex"
  5245. >
  5246. <!-- @click="previewImg(w.works)" -->
  5247. <div class="workImg">
  5248. <img
  5249. :src="w.works"
  5250. @click="previewImg(w.works)"
  5251. alt
  5252. />
  5253. <div
  5254. class="answerScore"
  5255. v-if="w.score"
  5256. @click.stop="openScore(w)"
  5257. :class="{
  5258. rightW:
  5259. w.userid == userid || tType == 1 || tType == 4,
  5260. }"
  5261. >
  5262. {{ JSON.parse(w.score).wScore }}分
  5263. </div>
  5264. <div
  5265. class="answerScore"
  5266. @click.stop="openScore(w)"
  5267. v-else-if="courseDetail.userid == userid"
  5268. :class="{
  5269. rightW:
  5270. w.userid == userid || tType == 1 || tType == 4,
  5271. }"
  5272. >
  5273. 评分
  5274. </div>
  5275. <img
  5276. class="deleteImg"
  5277. src="../assets/deleteworks.png"
  5278. v-if="
  5279. w.userid == userid || tType == 1 || tType == 4
  5280. "
  5281. @click.stop="deleteWorks(w.wid)"
  5282. alt
  5283. />
  5284. </div>
  5285. <div class="comment" style="min-width: 200px">
  5286. <div class="worksName">
  5287. <div>{{ w.sName }}</div>
  5288. </div>
  5289. <div class="commentList">
  5290. <div class="commentList">
  5291. <div
  5292. class="commentImg"
  5293. @click="
  5294. isLikes(w.wid, userid, 1, null, w.isLikes)
  5295. "
  5296. >
  5297. <img
  5298. :src="w.isLikes == true ? likes : noLikes"
  5299. alt=""
  5300. />
  5301. </div>
  5302. <div>{{ w.likesCount }}</div>
  5303. </div>
  5304. <div class="commentList" style="margin-right: 15px">
  5305. <div
  5306. class="commentImg"
  5307. @click="commentOther(w, toolIndex, wIndex)"
  5308. >
  5309. <img
  5310. src="../assets/icon/comment/comment.png"
  5311. alt=""
  5312. />
  5313. </div>
  5314. <div>{{ w.commentCount }}</div>
  5315. </div>
  5316. </div>
  5317. </div>
  5318. </div>
  5319. </div>
  5320. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5321. 未提交
  5322. </div>
  5323. <div
  5324. class="noWorksS"
  5325. v-if="noWorksS && noWorksS[toolIndex].length"
  5326. >
  5327. <div
  5328. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5329. :key="sIndex"
  5330. class="noWorksName"
  5331. >
  5332. <el-tooltip effect="dark" :content="s.student" placement="top">
  5333. <span>{{ s.student }}</span>
  5334. </el-tooltip>
  5335. </div>
  5336. </div>
  5337. </div>
  5338. <div
  5339. v-if="
  5340. tType &&
  5341. ((tType == 2 && sIsOpen == true) ||
  5342. tType == 1 ||
  5343. tType == 4) &&
  5344. tool.tool.indexOf(7) != -1
  5345. "
  5346. class="worksBox"
  5347. >
  5348. <div
  5349. class="zuoyeYulan"
  5350. v-if="
  5351. (worksStudent.length &&
  5352. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5353. "
  5354. >
  5355. <div class="worksTop">
  5356. <div>作业预览</div>
  5357. <div
  5358. class="corOpen"
  5359. @click="contract(toolIndex)"
  5360. v-if="
  5361. (isCloseList[toolIndex].isCloseBoolean) &&
  5362. isCloseList[toolIndex].isClose == 0
  5363. "
  5364. >
  5365. 折叠
  5366. </div>
  5367. <div
  5368. class="corOpen"
  5369. @click="contract(toolIndex)"
  5370. v-if="isCloseList[toolIndex].isClose == 1"
  5371. >
  5372. 展开
  5373. </div>
  5374. </div>
  5375. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5376. </div>
  5377. <div
  5378. class="group_workBox"
  5379. v-for="(g, gindex) in courseGroup.group"
  5380. :key="gindex"
  5381. >
  5382. <div class="group_box">
  5383. <div class="group_title">
  5384. <el-tooltip
  5385. class="item"
  5386. effect="light"
  5387. :content="g.name"
  5388. placement="top"
  5389. >
  5390. <div class="group_name">{{ g.name }}</div>
  5391. </el-tooltip>
  5392. </div>
  5393. <div
  5394. class="group_work"
  5395. v-if="
  5396. g.works &&
  5397. g.works.length &&
  5398. g.works[toolIndex].length
  5399. "
  5400. >
  5401. <div
  5402. class="works"
  5403. style="
  5404. width: 200px;
  5405. height: 140px;
  5406. margin: 10px 10px 10px 0;
  5407. border-radius: 15px;
  5408. box-shadow: 0 0 6px 1px #dfdada;
  5409. "
  5410. v-for="(w, wIndex) in g.works[toolIndex]"
  5411. :key="wIndex"
  5412. :class="w.type == 1 ? 'isTypeOne' : ''"
  5413. >
  5414. <div class="workImg">
  5415. <img
  5416. :src="w.works"
  5417. @click="previewImg(w.works)"
  5418. alt
  5419. />
  5420. <div
  5421. class="answerScore"
  5422. v-if="w.score"
  5423. @click.stop="openScore(w)"
  5424. :class="{
  5425. rightW:
  5426. w.userid == userid ||
  5427. tType == 1 ||
  5428. tType == 4,
  5429. }"
  5430. >
  5431. {{ JSON.parse(w.score).wScore }}分
  5432. </div>
  5433. <div
  5434. class="answerScore"
  5435. @click.stop="openScore(w)"
  5436. v-else-if="courseDetail.userid == userid"
  5437. :class="{
  5438. rightW:
  5439. w.userid == userid ||
  5440. tType == 1 ||
  5441. tType == 4,
  5442. }"
  5443. >
  5444. 评分
  5445. </div>
  5446. <img
  5447. class="deleteImg"
  5448. src="../assets/deleteworks.png"
  5449. v-if="
  5450. w.userid == userid || tType == 1 || tType == 4
  5451. "
  5452. @click.stop="deleteWorks(w.wid)"
  5453. alt
  5454. />
  5455. </div>
  5456. <div class="comment" style="min-width: 200px">
  5457. <div class="worksName">
  5458. <div>{{ w.sName }}</div>
  5459. </div>
  5460. <div class="commentList">
  5461. <div class="commentList">
  5462. <div
  5463. class="commentImg"
  5464. @click="
  5465. isLikes(w.wid, userid, 1, null, w.isLikes)
  5466. "
  5467. >
  5468. <img
  5469. :src="w.isLikes == true ? likes : noLikes"
  5470. alt=""
  5471. />
  5472. </div>
  5473. <div>{{ w.likesCount }}</div>
  5474. </div>
  5475. <div
  5476. class="commentList"
  5477. style="margin-right: 15px"
  5478. >
  5479. <div
  5480. class="commentImg"
  5481. @click="
  5482. commentOther(
  5483. w,
  5484. toolIndex,
  5485. wIndex,
  5486. null,
  5487. g.id
  5488. )
  5489. "
  5490. >
  5491. <img
  5492. src="../assets/icon/comment/comment.png"
  5493. alt=""
  5494. />
  5495. </div>
  5496. <div>{{ w.commentCount }}</div>
  5497. </div>
  5498. </div>
  5499. </div>
  5500. </div>
  5501. </div>
  5502. <div class="group_work" v-else>暂无提交作业</div>
  5503. </div>
  5504. </div>
  5505. <div
  5506. :id="'tool-' + toolIndex"
  5507. :style="{
  5508. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5509. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5510. }"
  5511. class="worksDetailBox"
  5512. v-if="
  5513. worksStudent.length &&
  5514. worksStudent[toolIndex].length > 0
  5515. "
  5516. >
  5517. <div
  5518. class="works"
  5519. style="
  5520. width: 200px;
  5521. height: 140px;
  5522. margin: 10px 10px 10px 0;
  5523. border-radius: 15px;
  5524. box-shadow: 0 0 6px 1px #dfdada;
  5525. "
  5526. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5527. :key="wIndex"
  5528. >
  5529. <!-- @click="previewImg(w.works)" -->
  5530. <div class="workImg">
  5531. <img
  5532. :src="w.works"
  5533. @click="previewImg(w.works)"
  5534. alt
  5535. />
  5536. <div
  5537. class="answerScore"
  5538. v-if="w.score"
  5539. @click.stop="openScore(w)"
  5540. :class="{
  5541. rightW:
  5542. w.userid == userid || tType == 1 || tType == 4,
  5543. }"
  5544. >
  5545. {{ JSON.parse(w.score).wScore }}分
  5546. </div>
  5547. <div
  5548. class="answerScore"
  5549. @click.stop="openScore(w)"
  5550. v-else-if="courseDetail.userid == userid"
  5551. :class="{
  5552. rightW:
  5553. w.userid == userid || tType == 1 || tType == 4,
  5554. }"
  5555. >
  5556. 评分
  5557. </div>
  5558. <img
  5559. class="deleteImg"
  5560. src="../assets/deleteworks.png"
  5561. v-if="
  5562. w.userid == userid || tType == 1 || tType == 4
  5563. "
  5564. @click.stop="deleteWorks(w.wid)"
  5565. alt
  5566. />
  5567. </div>
  5568. <div class="comment" style="min-width: 200px">
  5569. <div class="worksName">
  5570. <div>{{ w.sName }}</div>
  5571. </div>
  5572. <div class="commentList">
  5573. <div class="commentList">
  5574. <div
  5575. class="commentImg"
  5576. @click="
  5577. isLikes(w.wid, userid, 1, null, w.isLikes)
  5578. "
  5579. >
  5580. <img
  5581. :src="w.isLikes == true ? likes : noLikes"
  5582. alt=""
  5583. />
  5584. </div>
  5585. <div>{{ w.likesCount }}</div>
  5586. </div>
  5587. <div class="commentList" style="margin-right: 15px">
  5588. <div
  5589. class="commentImg"
  5590. @click="commentOther(w, toolIndex, wIndex)"
  5591. >
  5592. <img
  5593. src="../assets/icon/comment/comment.png"
  5594. alt=""
  5595. />
  5596. </div>
  5597. <div>{{ w.commentCount }}</div>
  5598. </div>
  5599. </div>
  5600. </div>
  5601. </div>
  5602. </div>
  5603. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5604. 未提交
  5605. </div>
  5606. <div
  5607. class="noWorksS"
  5608. v-if="noWorksS && noWorksS[toolIndex].length"
  5609. >
  5610. <div
  5611. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5612. :key="sIndex"
  5613. class="noWorksName"
  5614. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5615. >
  5616. <el-tooltip effect="dark" :content="s.student" placement="top">
  5617. <span>{{ s.student }}</span>
  5618. </el-tooltip>
  5619. </div>
  5620. </div>
  5621. </div>
  5622. <div
  5623. v-if="
  5624. tType &&
  5625. ((tType == 2 && sIsOpen == true) ||
  5626. tType == 1 ||
  5627. tType == 4) &&
  5628. tool.tool.indexOf(26) != -1
  5629. "
  5630. class="worksBox"
  5631. >
  5632. <div
  5633. class="zuoyeYulan"
  5634. v-if="
  5635. worksStudent.length &&
  5636. worksStudent[toolIndex].length > 0
  5637. "
  5638. >
  5639. <div class="worksTop">
  5640. <div>作业预览</div>
  5641. <div
  5642. class="corOpen"
  5643. @click="contract(toolIndex)"
  5644. v-if="
  5645. (isCloseList[toolIndex].isCloseBoolean) &&
  5646. isCloseList[toolIndex].isClose == 0
  5647. "
  5648. >
  5649. 折叠
  5650. </div>
  5651. <div
  5652. class="corOpen"
  5653. @click="contract(toolIndex)"
  5654. v-if="isCloseList[toolIndex].isClose == 1"
  5655. >
  5656. 展开
  5657. </div>
  5658. </div>
  5659. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5660. </div>
  5661. <div
  5662. :id="'tool-' + toolIndex"
  5663. :style="{
  5664. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5665. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5666. }"
  5667. class="worksDetailBox"
  5668. v-if="
  5669. worksStudent.length &&
  5670. worksStudent[toolIndex].length > 0
  5671. "
  5672. >
  5673. <div
  5674. class="works"
  5675. style="width: 240px; height: 140px; overflow: hidden"
  5676. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5677. :key="wIndex"
  5678. :class="w.type == 1 ? 'isTypeOne' : ''"
  5679. >
  5680. <div class="workImg" v-if="w.type == 0">
  5681. <img
  5682. :src="w.works"
  5683. @click="previewImg(w.works)"
  5684. alt
  5685. />
  5686. <img
  5687. class="deleteImg"
  5688. src="../assets/deleteworks.png"
  5689. v-if="
  5690. w.userid == userid || tType == 1 || tType == 4
  5691. "
  5692. @click.stop="deleteWorks(w.wid)"
  5693. alt
  5694. />
  5695. </div>
  5696. <div class="workImg" v-if="w.type == 1">
  5697. <img :src="word" @click="openFile(w.works)" alt />
  5698. <img
  5699. class="deleteImg"
  5700. src="../assets/deleteworks.png"
  5701. v-if="
  5702. w.userid == userid || tType == 1 || tType == 4
  5703. "
  5704. @click.stop="deleteWorks(w.wid)"
  5705. alt
  5706. />
  5707. </div>
  5708. <div class="worksName">
  5709. <div>{{ w.sName }}</div>
  5710. </div>
  5711. </div>
  5712. </div>
  5713. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5714. 未提交
  5715. </div>
  5716. <div
  5717. class="noWorksS"
  5718. v-if="noWorksS && noWorksS[toolIndex].length"
  5719. >
  5720. <div
  5721. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5722. :key="sIndex"
  5723. class="noWorksName"
  5724. >
  5725. <el-tooltip effect="dark" :content="s.student" placement="top">
  5726. <span>{{ s.student }}</span>
  5727. </el-tooltip>
  5728. </div>
  5729. </div>
  5730. </div>
  5731. <div
  5732. v-if="
  5733. tType &&
  5734. ((tType == 2 && sIsOpen == true) ||
  5735. tType == 1 ||
  5736. tType == 4) &&
  5737. tool.tool.indexOf(40) != -1
  5738. "
  5739. class="worksBox"
  5740. >
  5741. <div
  5742. class="zuoyeYulan"
  5743. v-if="
  5744. worksStudent.length &&
  5745. worksStudent[toolIndex].length > 0
  5746. "
  5747. >
  5748. <div class="worksTop">
  5749. <div>作业预览</div>
  5750. <div
  5751. class="corOpen"
  5752. @click="contract(toolIndex)"
  5753. v-if="
  5754. (isCloseList[toolIndex].isCloseBoolean) &&
  5755. isCloseList[toolIndex].isClose == 0
  5756. "
  5757. >
  5758. 折叠
  5759. </div>
  5760. <div
  5761. class="corOpen"
  5762. @click="contract(toolIndex)"
  5763. v-if="isCloseList[toolIndex].isClose == 1"
  5764. >
  5765. 展开
  5766. </div>
  5767. </div>
  5768. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5769. </div>
  5770. <div
  5771. :id="'tool-' + toolIndex"
  5772. :style="{
  5773. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5774. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5775. }"
  5776. class="worksDetailBox"
  5777. v-if="
  5778. worksStudent.length &&
  5779. worksStudent[toolIndex].length > 0
  5780. "
  5781. >
  5782. <div
  5783. class="works"
  5784. style="
  5785. width: 200px;
  5786. height: 140px;
  5787. margin: 10px 10px 10px 0;
  5788. border-radius: 15px;
  5789. box-shadow: 0 0 6px 1px #dfdada;
  5790. "
  5791. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5792. :key="wIndex"
  5793. :class="w.type == 1 ? 'isTypeOne' : ''"
  5794. >
  5795. <div class="workImg">
  5796. <img
  5797. src="../assets/icon/works/noImg.png"
  5798. @click="openPj(w.works, toolIndex)"
  5799. alt
  5800. />
  5801. <img
  5802. class="deleteImg"
  5803. src="../assets/deleteworks.png"
  5804. v-if="
  5805. w.userid == userid || tType == 1 || tType == 4
  5806. "
  5807. @click.stop="deleteWorks(w.wid)"
  5808. alt
  5809. />
  5810. </div>
  5811. <div class="comment" style="min-width: 200px">
  5812. <div class="worksName">
  5813. <div>{{ w.sName }}</div>
  5814. </div>
  5815. <div class="commentList">
  5816. <div class="commentList">
  5817. <div
  5818. class="commentImg"
  5819. @click="
  5820. isLikes(w.wid, userid, 1, null, w.isLikes)
  5821. "
  5822. >
  5823. <img
  5824. :src="w.isLikes == true ? likes : noLikes"
  5825. alt=""
  5826. />
  5827. </div>
  5828. <div>{{ w.likesCount }}</div>
  5829. </div>
  5830. <div class="commentList" style="margin-right: 15px">
  5831. <div
  5832. class="commentImg"
  5833. @click="commentOther(w, toolIndex, wIndex)"
  5834. >
  5835. <img
  5836. src="../assets/icon/comment/comment.png"
  5837. alt=""
  5838. />
  5839. </div>
  5840. <div>{{ w.commentCount }}</div>
  5841. </div>
  5842. </div>
  5843. </div>
  5844. </div>
  5845. </div>
  5846. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5847. 未提交
  5848. </div>
  5849. <div
  5850. class="noWorksS"
  5851. v-if="noWorksS && noWorksS[toolIndex].length"
  5852. >
  5853. <div
  5854. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5855. :key="sIndex"
  5856. class="noWorksName"
  5857. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5858. >
  5859. <el-tooltip effect="dark" :content="s.student" placement="top">
  5860. <span>{{ s.student }}</span>
  5861. </el-tooltip>
  5862. </div>
  5863. </div>
  5864. </div>
  5865. <div
  5866. v-if="
  5867. tType &&
  5868. tType == 2 &&
  5869. !sIsOpen &&
  5870. tool.tool.indexOf(40) != -1
  5871. "
  5872. class="worksBox"
  5873. >
  5874. <div
  5875. class="zuoyeYulan"
  5876. v-if="workStudent[toolIndex].length > 0"
  5877. >
  5878. <span class="worksTitle">作业预览</span>
  5879. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5880. </div>
  5881. <div
  5882. class="worksDetailBox"
  5883. v-if="workStudent[toolIndex].length > 0"
  5884. >
  5885. <div
  5886. class="works"
  5887. style="
  5888. width: 200px;
  5889. height: 140px;
  5890. margin: 10px 10px 10px 0;
  5891. "
  5892. v-for="(w, wIndex) in workStudent[toolIndex]"
  5893. :key="wIndex"
  5894. >
  5895. <div class="workImg">
  5896. <img
  5897. src="../assets/icon/works/noImg.png"
  5898. @click="openPj(w.works, toolIndex)"
  5899. alt
  5900. />
  5901. <img
  5902. class="deleteImg"
  5903. src="../assets/deleteworks.png"
  5904. v-if="
  5905. w.userid == userid || tType == 1 || tType == 4
  5906. "
  5907. @click.stop="deleteWorks(w.wid)"
  5908. alt
  5909. />
  5910. </div>
  5911. <div class="worksName">
  5912. <div>{{ w.sName }}</div>
  5913. </div>
  5914. </div>
  5915. </div>
  5916. </div>
  5917. <div
  5918. v-if="
  5919. tType &&
  5920. ((tType == 2 && sIsOpen == true) ||
  5921. tType == 1 ||
  5922. tType == 4) &&
  5923. tool.tool.indexOf(41) != -1
  5924. "
  5925. >
  5926. <AnswerData2
  5927. v-if="
  5928. worksStudent.length &&
  5929. worksStudent[toolIndex].length > 0
  5930. "
  5931. :problemJson="tool.selectJson.answer"
  5932. :people="worksStudent[toolIndex]"
  5933. ></AnswerData2>
  5934. </div>
  5935. <div
  5936. v-if="
  5937. tType &&
  5938. ((tType == 2 && sIsOpen == true) ||
  5939. tType == 1 ||
  5940. tType == 4) &&
  5941. tool.tool.indexOf(41) != -1
  5942. "
  5943. class="worksBox"
  5944. >
  5945. <div
  5946. class="zuoyeYulan"
  5947. v-if="
  5948. worksStudent.length &&
  5949. worksStudent[toolIndex].length > 0
  5950. "
  5951. >
  5952. <div class="worksTop">
  5953. <div>作业预览</div>
  5954. <div
  5955. class="corOpen"
  5956. @click="contract(toolIndex)"
  5957. v-if="
  5958. (isCloseList[toolIndex].isCloseBoolean) &&
  5959. isCloseList[toolIndex].isClose == 0
  5960. "
  5961. >
  5962. 折叠
  5963. </div>
  5964. <div
  5965. class="corOpen"
  5966. @click="contract(toolIndex)"
  5967. v-if="isCloseList[toolIndex].isClose == 1"
  5968. >
  5969. 展开
  5970. </div>
  5971. </div>
  5972. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5973. </div>
  5974. <div
  5975. :id="'tool-' + toolIndex"
  5976. :style="{
  5977. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5978. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5979. }"
  5980. class="worksDetailBox"
  5981. v-if="
  5982. worksStudent.length &&
  5983. worksStudent[toolIndex].length > 0
  5984. "
  5985. >
  5986. <div
  5987. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5988. :key="wIndex"
  5989. class="isWorksName2"
  5990. @click="openXz(w, toolIndex)"
  5991. >
  5992. {{ w.sName }}
  5993. <img
  5994. class="deleteImg deleteImg2"
  5995. src="../assets/deleteworks.png"
  5996. v-if="w.userid == userid || tType == 1 || tType == 4"
  5997. @click.stop="deleteWorks(w.wid)"
  5998. alt
  5999. />
  6000. </div>
  6001. <!-- <div
  6002. class="works"
  6003. style="
  6004. width: 200px;
  6005. height: 140px;
  6006. margin: 10px 10px 10px 0;
  6007. border-radius: 15px;
  6008. box-shadow: 0 0 6px 1px #dfdada;
  6009. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6010. :class="w.type == 5 ? 'isTypeOne' : ''">
  6011. <div class="workImg">
  6012. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6013. </div>
  6014. <div class="worksName">
  6015. <div>{{ w.sName }}</div>
  6016. </div>
  6017. </div> -->
  6018. </div>
  6019. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6020. 未提交
  6021. </div>
  6022. <div
  6023. class="noWorksS"
  6024. v-if="noWorksS && noWorksS[toolIndex].length"
  6025. >
  6026. <div
  6027. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6028. :key="sIndex"
  6029. class="noWorksName"
  6030. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6031. >
  6032. <el-tooltip effect="dark" :content="s.student" placement="top">
  6033. <span>{{ s.student }}</span>
  6034. </el-tooltip>
  6035. </div>
  6036. </div>
  6037. </div>
  6038. <div
  6039. v-if="
  6040. tType &&
  6041. tType == 2 &&
  6042. !sIsOpen &&
  6043. tool.tool.indexOf(41) != -1
  6044. "
  6045. class="worksBox"
  6046. >
  6047. <div
  6048. class="zuoyeYulan"
  6049. v-if="workStudent[toolIndex].length > 0"
  6050. >
  6051. <span class="worksTitle">作业预览</span>
  6052. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6053. </div>
  6054. <div
  6055. class="worksDetailBox"
  6056. v-if="workStudent[toolIndex].length > 0"
  6057. >
  6058. <div
  6059. class="works"
  6060. style="
  6061. width: 200px;
  6062. height: 140px;
  6063. margin: 10px 10px 10px 0;
  6064. "
  6065. v-for="(w, wIndex) in workStudent[toolIndex]"
  6066. :key="wIndex"
  6067. >
  6068. <div class="workImg">
  6069. <img
  6070. src="../assets/icon/works/noImg.png"
  6071. @click="openXz(w, toolIndex)"
  6072. alt
  6073. />
  6074. <img
  6075. class="deleteImg"
  6076. src="../assets/deleteworks.png"
  6077. v-if="
  6078. w.userid == userid || tType == 1 || tType == 4
  6079. "
  6080. @click.stop="deleteWorks(w.wid)"
  6081. alt
  6082. />
  6083. </div>
  6084. <div class="worksName">
  6085. <div>{{ w.sName }}</div>
  6086. </div>
  6087. </div>
  6088. </div>
  6089. </div>
  6090. <div v-if="false" class="xuan_right_box">
  6091. <div
  6092. class="tool_right_box"
  6093. v-for="(item, index) in tool.sentenceList"
  6094. :key="index"
  6095. >
  6096. <div>
  6097. <span
  6098. style="word-break: break-all; white-space: normal"
  6099. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6100. >
  6101. </div>
  6102. <div class="right_box_xuan">
  6103. <span>正确率</span>
  6104. <span>{{
  6105. (checkJson[toolIndex][index].right
  6106. ? checkJson[toolIndex][index].right
  6107. : 0) + "%"
  6108. }}</span>
  6109. </div>
  6110. <div class="right_box_xuan">
  6111. <span>答对人数</span>
  6112. <span>{{
  6113. checkJson[toolIndex][index].rightPerson.length
  6114. }}</span>
  6115. </div>
  6116. </div>
  6117. </div>
  6118. <div
  6119. v-if="
  6120. tType &&
  6121. ((tType == 2 && sIsOpen == true) ||
  6122. tType == 1 ||
  6123. tType == 4) &&
  6124. tool.tool.indexOf(47) != -1
  6125. "
  6126. >
  6127. <AnswerData
  6128. v-if="
  6129. checkJson[toolIndex].length &&
  6130. (tool.sentenceList || tool.sentenceList.length > 0)
  6131. "
  6132. :people="checkJson[toolIndex]"
  6133. ></AnswerData>
  6134. </div>
  6135. <div
  6136. v-if="
  6137. tType &&
  6138. tType == 2 &&
  6139. !sIsOpen &&
  6140. tool.tool.indexOf(47) != -1
  6141. "
  6142. class="worksBox"
  6143. >
  6144. <div
  6145. class="zuoyeYulan"
  6146. v-if="workStudent[toolIndex].length > 0"
  6147. >
  6148. <span class="worksTitle">作业预览</span>
  6149. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6150. </div>
  6151. <div
  6152. class="worksDetailBox"
  6153. v-if="workStudent[toolIndex].length > 0"
  6154. >
  6155. <div
  6156. class="works"
  6157. style="
  6158. width: 200px;
  6159. height: 140px;
  6160. margin: 10px 10px 10px 0;
  6161. "
  6162. v-for="(w, wIndex) in workStudent[toolIndex]"
  6163. :key="wIndex"
  6164. >
  6165. <!-- @click="openXz(w, toolIndex)" -->
  6166. <div class="workImg" @click="openSen(w, toolIndex)">
  6167. <img src="../assets/icon/works/noImg.png" alt />
  6168. <img
  6169. class="deleteImg"
  6170. src="../assets/deleteworks.png"
  6171. v-if="
  6172. w.userid == userid || tType == 1 || tType == 4
  6173. "
  6174. @click.stop="deleteWorks(w.wid)"
  6175. alt
  6176. />
  6177. </div>
  6178. <div class="worksName">
  6179. <div>
  6180. {{ w.sName }}
  6181. </div>
  6182. </div>
  6183. </div>
  6184. </div>
  6185. </div>
  6186. <div
  6187. v-if="
  6188. tType &&
  6189. ((tType == 2 && sIsOpen == true) ||
  6190. tType == 1 ||
  6191. tType == 4) &&
  6192. tool.tool.indexOf(47) != -1
  6193. "
  6194. class="worksBox"
  6195. >
  6196. <div
  6197. class="zuoyeYulan"
  6198. v-if="
  6199. worksStudent.length &&
  6200. worksStudent[toolIndex].length > 0
  6201. "
  6202. >
  6203. <div class="worksTop">
  6204. <div>作业预览</div>
  6205. <div
  6206. class="corOpen"
  6207. @click="contract(toolIndex)"
  6208. v-if="
  6209. (isCloseList[toolIndex].isCloseBoolean) &&
  6210. isCloseList[toolIndex].isClose == 0
  6211. "
  6212. >
  6213. 折叠
  6214. </div>
  6215. <div
  6216. class="corOpen"
  6217. @click="contract(toolIndex)"
  6218. v-if="isCloseList[toolIndex].isClose == 1"
  6219. >
  6220. 展开
  6221. </div>
  6222. </div>
  6223. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6224. </div>
  6225. <div
  6226. :id="'tool-' + toolIndex"
  6227. :style="{
  6228. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6229. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6230. }"
  6231. class="worksDetailBox"
  6232. v-if="
  6233. worksStudent.length &&
  6234. worksStudent[toolIndex].length > 0
  6235. "
  6236. >
  6237. <!-- @click="openXz(w, toolIndex)" -->
  6238. <div
  6239. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6240. :key="wIndex"
  6241. class="isWorksName2"
  6242. @click="openSen(w, toolIndex)"
  6243. >
  6244. {{ w.sName }}
  6245. <img
  6246. class="deleteImg deleteImg2"
  6247. src="../assets/deleteworks.png"
  6248. v-if="w.userid == userid || tType == 1 || tType == 4"
  6249. @click.stop="deleteWorks(w.wid)"
  6250. alt
  6251. />
  6252. </div>
  6253. </div>
  6254. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6255. 未提交
  6256. </div>
  6257. <div
  6258. class="noWorksS"
  6259. v-if="noWorksS && noWorksS[toolIndex].length"
  6260. >
  6261. <div
  6262. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6263. :key="sIndex"
  6264. class="noWorksName"
  6265. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6266. >
  6267. <el-tooltip effect="dark" :content="s.student" placement="top">
  6268. <span>{{ s.student }}</span>
  6269. </el-tooltip>
  6270. </div>
  6271. </div>
  6272. </div>
  6273. <div
  6274. v-if="
  6275. tType &&
  6276. ((tType == 2 && sIsOpen == true) ||
  6277. tType == 1 ||
  6278. tType == 4) &&
  6279. tool.tool.indexOf(48) != -1
  6280. "
  6281. class="worksBox"
  6282. >
  6283. <div
  6284. class="zuoyeYulan"
  6285. v-if="
  6286. worksStudent.length &&
  6287. worksStudent[toolIndex].length > 0
  6288. "
  6289. >
  6290. <div class="worksTop">
  6291. <div>作业预览</div>
  6292. <div
  6293. class="corOpen"
  6294. @click="contract(toolIndex)"
  6295. v-if="
  6296. (isCloseList[toolIndex].isCloseBoolean) &&
  6297. isCloseList[toolIndex].isClose == 0
  6298. "
  6299. >
  6300. 折叠
  6301. </div>
  6302. <div
  6303. class="corOpen"
  6304. @click="contract(toolIndex)"
  6305. v-if="isCloseList[toolIndex].isClose == 1"
  6306. >
  6307. 展开
  6308. </div>
  6309. </div>
  6310. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6311. </div>
  6312. <div
  6313. :id="'tool-' + toolIndex"
  6314. :style="{
  6315. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6316. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6317. }"
  6318. class="worksDetailBox"
  6319. v-if="
  6320. worksStudent.length &&
  6321. worksStudent[toolIndex].length > 0
  6322. "
  6323. >
  6324. <div
  6325. class="works"
  6326. style="
  6327. width: 200px;
  6328. height: 140px;
  6329. margin: 10px 10px 10px 0;
  6330. border-radius: 15px;
  6331. box-shadow: 0 0 6px 1px #dfdada;
  6332. "
  6333. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6334. :key="wIndex"
  6335. :class="w.type == 1 ? 'isTypeOne' : ''"
  6336. >
  6337. <div class="workImg">
  6338. <img :src="word" @click="openTable(w)" alt />
  6339. <!-- @click="openFile(w.works)" -->
  6340. <div
  6341. class="answerScore"
  6342. v-if="w.score"
  6343. @click.stop="openScore(w)"
  6344. :class="{
  6345. rightW:
  6346. w.userid == userid ||
  6347. tType == 1 ||
  6348. tType == 4 ||
  6349. w.ateacher == userid,
  6350. }"
  6351. >
  6352. {{ JSON.parse(w.score).wScore }}分
  6353. </div>
  6354. <div
  6355. class="answerScore"
  6356. @click.stop="openScore(w)"
  6357. v-else-if="courseDetail.userid == userid"
  6358. :class="{
  6359. rightW:
  6360. w.userid == userid ||
  6361. tType == 1 ||
  6362. tType == 4 ||
  6363. w.ateacher == userid,
  6364. }"
  6365. >
  6366. 评分
  6367. </div>
  6368. <img
  6369. class="deleteImg"
  6370. src="../assets/deleteworks.png"
  6371. v-if="
  6372. w.userid == userid || tType == 1 || tType == 4
  6373. "
  6374. @click.stop="deleteWorks(w.wid)"
  6375. alt
  6376. />
  6377. </div>
  6378. <div class="comment" style="min-width: 200px">
  6379. <div class="worksName">
  6380. <div>{{ w.sName }}</div>
  6381. </div>
  6382. <div class="commentList">
  6383. <div class="commentList">
  6384. <div
  6385. class="commentImg"
  6386. @click="
  6387. isLikes(w.wid, userid, 1, null, w.isLikes)
  6388. "
  6389. >
  6390. <img
  6391. :src="w.isLikes == true ? likes : noLikes"
  6392. alt=""
  6393. />
  6394. </div>
  6395. <div>{{ w.likesCount }}</div>
  6396. </div>
  6397. <div class="commentList" style="margin-right: 15px">
  6398. <div
  6399. class="commentImg"
  6400. @click="commentOther(w, toolIndex, wIndex)"
  6401. >
  6402. <img
  6403. src="../assets/icon/comment/comment.png"
  6404. alt=""
  6405. />
  6406. </div>
  6407. <div>{{ w.commentCount }}</div>
  6408. </div>
  6409. </div>
  6410. </div>
  6411. </div>
  6412. </div>
  6413. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6414. 未提交
  6415. </div>
  6416. <div
  6417. class="noWorksS"
  6418. v-if="noWorksS && noWorksS[toolIndex].length"
  6419. >
  6420. <div
  6421. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6422. :key="sIndex"
  6423. class="noWorksName"
  6424. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6425. >
  6426. <el-tooltip effect="dark" :content="s.student" placement="top">
  6427. <span>{{ s.student }}</span>
  6428. </el-tooltip>
  6429. </div>
  6430. </div>
  6431. </div>
  6432. <div
  6433. v-if="
  6434. tType &&
  6435. tType == 2 &&
  6436. !sIsOpen &&
  6437. tool.tool.indexOf(48) != -1
  6438. "
  6439. class="worksBox"
  6440. >
  6441. <div
  6442. class="zuoyeYulan"
  6443. v-if="workStudent[toolIndex].length > 0"
  6444. >
  6445. <span class="worksTitle">作业预览</span>
  6446. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6447. </div>
  6448. <div
  6449. class="worksDetailBox"
  6450. v-if="workStudent[toolIndex].length > 0"
  6451. >
  6452. <div
  6453. class="works"
  6454. style="
  6455. width: 200px;
  6456. height: 140px;
  6457. margin: 10px 10px 10px 0;
  6458. box-shadow: 0 0 6px 1px #dfdada;
  6459. "
  6460. v-for="(w, wIndex) in workStudent[toolIndex]"
  6461. :key="wIndex"
  6462. >
  6463. <div class="workImg">
  6464. <img :src="word" @click="openTable(w)" alt />
  6465. <div
  6466. class="answerScore"
  6467. v-if="w.score"
  6468. @click.stop="openScore(w)"
  6469. :class="{
  6470. rightW:
  6471. w.userid == userid || tType == 1 || tType == 4,
  6472. }"
  6473. >
  6474. {{ JSON.parse(w.score).wScore }}分
  6475. </div>
  6476. <div
  6477. class="answerScore"
  6478. @click.stop="openScore(w)"
  6479. v-else-if="courseDetail.userid == userid"
  6480. :class="{
  6481. rightW:
  6482. w.userid == userid || tType == 1 || tType == 4,
  6483. }"
  6484. >
  6485. 评分
  6486. </div>
  6487. <img
  6488. class="deleteImg"
  6489. src="../assets/deleteworks.png"
  6490. v-if="
  6491. w.userid == userid || tType == 1 || tType == 4
  6492. "
  6493. @click.stop="deleteWorks(w.wid)"
  6494. alt
  6495. />
  6496. </div>
  6497. <div class="worksName">
  6498. <div>{{ w.sName }}</div>
  6499. </div>
  6500. </div>
  6501. </div>
  6502. </div>
  6503. <div
  6504. v-if="
  6505. tType &&
  6506. ((tType == 2 && sIsOpen == true) ||
  6507. tType == 1 ||
  6508. tType == 4) &&
  6509. tool.tool.indexOf(52) != -1
  6510. "
  6511. class="worksBox"
  6512. >
  6513. <div
  6514. class="zuoyeYulan"
  6515. v-if="
  6516. worksStudent.length &&
  6517. worksStudent[toolIndex].length > 0
  6518. "
  6519. >
  6520. <div class="worksTop">
  6521. <div>作业预览</div>
  6522. <div
  6523. class="corOpen"
  6524. @click="contract(toolIndex)"
  6525. v-if="
  6526. (isCloseList[toolIndex].isCloseBoolean) &&
  6527. isCloseList[toolIndex].isClose == 0
  6528. "
  6529. >
  6530. 折叠
  6531. </div>
  6532. <div
  6533. class="corOpen"
  6534. @click="contract(toolIndex)"
  6535. v-if="isCloseList[toolIndex].isClose == 1"
  6536. >
  6537. 展开
  6538. </div>
  6539. </div>
  6540. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6541. </div>
  6542. <div
  6543. :id="'tool-' + toolIndex"
  6544. :style="{
  6545. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6546. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6547. }"
  6548. class="worksDetailBox"
  6549. v-if="
  6550. worksStudent.length &&
  6551. worksStudent[toolIndex].length > 0
  6552. "
  6553. >
  6554. <div
  6555. class="works"
  6556. style="
  6557. width: 200px;
  6558. height: 140px;
  6559. margin: 10px 10px 10px 0;
  6560. border-radius: 15px;
  6561. box-shadow: 0 0 6px 1px #dfdada;
  6562. "
  6563. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6564. :key="wIndex"
  6565. :class="w.type == 1 ? 'isTypeOne' : ''"
  6566. >
  6567. <div class="workImg">
  6568. <img :src="word" @click="openWord(w)" alt />
  6569. <!-- @click="openFile(w.works)" -->
  6570. <div
  6571. class="answerScore"
  6572. v-if="w.score"
  6573. @click.stop="openScore(w)"
  6574. :class="{
  6575. rightW:
  6576. w.userid == userid ||
  6577. tType == 1 ||
  6578. tType == 4 ||
  6579. w.ateacher == userid,
  6580. }"
  6581. >
  6582. {{ JSON.parse(w.score).wScore }}分
  6583. </div>
  6584. <div
  6585. class="answerScore"
  6586. @click.stop="openScore(w)"
  6587. v-else-if="courseDetail.userid == userid"
  6588. :class="{
  6589. rightW:
  6590. w.userid == userid ||
  6591. tType == 1 ||
  6592. tType == 4 ||
  6593. w.ateacher == userid,
  6594. }"
  6595. >
  6596. 评分
  6597. </div>
  6598. <img
  6599. class="deleteImg"
  6600. src="../assets/deleteworks.png"
  6601. v-if="
  6602. w.userid == userid || tType == 1 || tType == 4
  6603. "
  6604. @click.stop="deleteWorks(w.wid)"
  6605. alt
  6606. />
  6607. </div>
  6608. <div class="comment" style="min-width: 200px">
  6609. <div class="worksName">
  6610. <div>{{ w.sName }}</div>
  6611. </div>
  6612. <div class="commentList">
  6613. <div class="commentList">
  6614. <div
  6615. class="commentImg"
  6616. @click="
  6617. isLikes(w.wid, userid, 1, null, w.isLikes)
  6618. "
  6619. >
  6620. <img
  6621. :src="w.isLikes == true ? likes : noLikes"
  6622. alt=""
  6623. />
  6624. </div>
  6625. <div>{{ w.likesCount }}</div>
  6626. </div>
  6627. <div class="commentList" style="margin-right: 15px">
  6628. <div
  6629. class="commentImg"
  6630. @click="commentOther(w, toolIndex, wIndex)"
  6631. >
  6632. <img
  6633. src="../assets/icon/comment/comment.png"
  6634. alt=""
  6635. />
  6636. </div>
  6637. <div>{{ w.commentCount }}</div>
  6638. </div>
  6639. </div>
  6640. </div>
  6641. </div>
  6642. </div>
  6643. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6644. 未提交
  6645. </div>
  6646. <div
  6647. class="noWorksS"
  6648. v-if="noWorksS && noWorksS[toolIndex].length"
  6649. >
  6650. <div
  6651. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6652. :key="sIndex"
  6653. class="noWorksName"
  6654. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6655. >
  6656. <el-tooltip effect="dark" :content="s.student" placement="top">
  6657. <span>{{ s.student }}</span>
  6658. </el-tooltip>
  6659. </div>
  6660. </div>
  6661. </div>
  6662. <div
  6663. v-if="
  6664. tType &&
  6665. tType == 2 &&
  6666. !sIsOpen &&
  6667. tool.tool.indexOf(52) != -1
  6668. "
  6669. class="worksBox"
  6670. >
  6671. <div
  6672. class="zuoyeYulan"
  6673. v-if="workStudent[toolIndex].length > 0"
  6674. >
  6675. <span class="worksTitle">作业预览</span>
  6676. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6677. </div>
  6678. <div
  6679. class="worksDetailBox"
  6680. v-if="workStudent[toolIndex].length > 0"
  6681. >
  6682. <div
  6683. class="works"
  6684. style="
  6685. width: 200px;
  6686. height: 140px;
  6687. margin: 10px 10px 10px 0;
  6688. box-shadow: 0 0 6px 1px #dfdada;
  6689. "
  6690. v-for="(w, wIndex) in workStudent[toolIndex]"
  6691. :key="wIndex"
  6692. >
  6693. <div class="workImg">
  6694. <img :src="word" @click="openWord(w)" alt />
  6695. <div
  6696. class="answerScore"
  6697. v-if="w.score"
  6698. @click.stop="openScore(w)"
  6699. :class="{
  6700. rightW:
  6701. w.userid == userid || tType == 1 || tType == 4,
  6702. }"
  6703. >
  6704. {{ JSON.parse(w.score).wScore }}分
  6705. </div>
  6706. <div
  6707. class="answerScore"
  6708. @click.stop="openScore(w)"
  6709. v-else-if="courseDetail.userid == userid"
  6710. :class="{
  6711. rightW:
  6712. w.userid == userid || tType == 1 || tType == 4,
  6713. }"
  6714. >
  6715. 评分
  6716. </div>
  6717. <img
  6718. class="deleteImg"
  6719. src="../assets/deleteworks.png"
  6720. v-if="
  6721. w.userid == userid || tType == 1 || tType == 4
  6722. "
  6723. @click.stop="deleteWorks(w.wid)"
  6724. alt
  6725. />
  6726. </div>
  6727. <div class="worksName">
  6728. <div>{{ w.sName }}</div>
  6729. </div>
  6730. </div>
  6731. </div>
  6732. </div>
  6733. <div
  6734. v-if="tool.tool.indexOf(49) != -1"
  6735. class="xuan_right_box"
  6736. style="margin: 0 15px 0 25px; width: 93%"
  6737. >
  6738. <div
  6739. v-if="courseDetail.userid == userid"
  6740. style="
  6741. display: flex;
  6742. justify-content: flex-end;
  6743. margin-right: 10px;
  6744. "
  6745. >
  6746. <el-button
  6747. type="primary"
  6748. size="small"
  6749. @click="addTools(49, toolIndex, taskCount)"
  6750. >分组设置</el-button
  6751. >
  6752. </div>
  6753. <div
  6754. v-if="groupStudentUid[toolIndex]"
  6755. class="group_staic_box"
  6756. >
  6757. <div
  6758. v-for="(gp, gd) in tool.groupJson.group"
  6759. :key="gd"
  6760. class="group_staic"
  6761. >
  6762. <span> {{ gp.name }}</span>
  6763. <span>
  6764. 目前人数{{
  6765. groupStudentUid[toolIndex][gd].length
  6766. }}人</span
  6767. >
  6768. </div>
  6769. </div>
  6770. </div>
  6771. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6772. <div
  6773. class="zuoyeYulan"
  6774. v-if="
  6775. worksStudent.length &&
  6776. worksStudent[toolIndex].length > 0
  6777. "
  6778. >
  6779. <span class="worksTitle">作业预览</span>
  6780. </div>
  6781. <div>
  6782. <div
  6783. class="group_workBox"
  6784. v-for="(g, gindex) in tool.groupJson.group"
  6785. :key="gindex"
  6786. >
  6787. <div
  6788. class="group_box"
  6789. v-if="
  6790. groupStudentUid[toolIndex] &&
  6791. worksStudent[toolIndex] &&
  6792. (worksStudent[toolIndex][gindex].length ||
  6793. groupStudentUid[toolIndex][gindex].indexOf(
  6794. userid
  6795. ) != -1)
  6796. "
  6797. >
  6798. <div class="group_title">
  6799. <el-tooltip
  6800. class="item"
  6801. effect="light"
  6802. :content="g.name"
  6803. placement="top"
  6804. >
  6805. <div class="group_name">{{ g.name }}</div>
  6806. </el-tooltip>
  6807. <el-button
  6808. type="primary"
  6809. v-if="
  6810. groupStudentUid[toolIndex][gindex].indexOf(
  6811. userid
  6812. ) != -1
  6813. "
  6814. @click="groupUpload(toolIndex, taskCount, gindex)"
  6815. >上传作业</el-button
  6816. >
  6817. </div>
  6818. <div class="group_work">
  6819. <div
  6820. class="works"
  6821. style="
  6822. width: 200px;
  6823. height: 140px;
  6824. margin: 10px 10px 10px 0;
  6825. border-radius: 15px;
  6826. box-shadow: 0 0 6px 1px #dfdada;
  6827. "
  6828. v-for="(w, wIndex) in worksStudent[toolIndex][
  6829. gindex
  6830. ]"
  6831. :key="wIndex"
  6832. :class="w.type == 1 ? 'isTypeOne' : ''"
  6833. >
  6834. <div class="workImg" v-if="w.type == 0">
  6835. <img
  6836. :src="w.works"
  6837. @click="previewImg(w.works)"
  6838. alt
  6839. />
  6840. <div
  6841. class="answerScore"
  6842. v-if="w.score"
  6843. @click.stop="openScore(w)"
  6844. :class="{
  6845. rightW:
  6846. w.userid == userid ||
  6847. tType == 1 ||
  6848. tType == 4 ||
  6849. w.ateacher == userid,
  6850. }"
  6851. >
  6852. {{ JSON.parse(w.score).wScore }}分
  6853. </div>
  6854. <div
  6855. class="answerScore"
  6856. @click.stop="openScore(w)"
  6857. v-else-if="courseDetail.userid == userid"
  6858. :class="{
  6859. rightW:
  6860. w.userid == userid ||
  6861. tType == 1 ||
  6862. tType == 4 ||
  6863. w.ateacher == userid,
  6864. }"
  6865. >
  6866. 评分
  6867. </div>
  6868. <img
  6869. class="deleteImg"
  6870. src="../assets/deleteworks.png"
  6871. v-if="
  6872. w.userid == userid ||
  6873. tType == 1 ||
  6874. tType == 4
  6875. "
  6876. @click.stop="deleteWorks(w.wid)"
  6877. alt
  6878. />
  6879. </div>
  6880. <div class="workImg" v-if="w.type == 1">
  6881. <img
  6882. :src="word"
  6883. @click="openFile(w.works)"
  6884. alt
  6885. />
  6886. <!-- @click="openFile(w.works)" -->
  6887. <div
  6888. class="answerScore"
  6889. v-if="w.score"
  6890. @click.stop="openScore(w)"
  6891. :class="{
  6892. rightW:
  6893. w.userid == userid ||
  6894. tType == 1 ||
  6895. tType == 4 ||
  6896. w.ateacher == userid,
  6897. }"
  6898. >
  6899. {{ JSON.parse(w.score).wScore }}分
  6900. </div>
  6901. <div
  6902. class="answerScore"
  6903. @click.stop="openScore(w)"
  6904. v-else-if="courseDetail.userid == userid"
  6905. :class="{
  6906. rightW:
  6907. w.userid == userid ||
  6908. tType == 1 ||
  6909. tType == 4 ||
  6910. w.ateacher == userid,
  6911. }"
  6912. >
  6913. 评分
  6914. </div>
  6915. <img
  6916. class="deleteImg"
  6917. src="../assets/deleteworks.png"
  6918. v-if="
  6919. w.userid == userid ||
  6920. tType == 1 ||
  6921. tType == 4
  6922. "
  6923. @click.stop="deleteWorks(w.wid)"
  6924. alt
  6925. />
  6926. </div>
  6927. <div class="workImg" v-if="w.type == 3">
  6928. <img
  6929. style="cursor: pointer"
  6930. :src="video"
  6931. @click="openVideo(w)"
  6932. alt
  6933. />
  6934. <!-- @click="openVideo(w.works)" -->
  6935. <div
  6936. class="answerScore"
  6937. v-if="w.score"
  6938. @click.stop="openScore(w)"
  6939. :class="{
  6940. rightW:
  6941. w.userid == userid ||
  6942. tType == 1 ||
  6943. tType == 4 ||
  6944. w.ateacher == userid,
  6945. }"
  6946. >
  6947. {{ JSON.parse(w.score).wScore }}分
  6948. </div>
  6949. <div
  6950. class="answerScore"
  6951. @click.stop="openScore(w)"
  6952. v-else-if="courseDetail.userid == userid"
  6953. :class="{
  6954. rightW:
  6955. w.userid == userid ||
  6956. tType == 1 ||
  6957. tType == 4 ||
  6958. w.ateacher == userid,
  6959. }"
  6960. >
  6961. 评分
  6962. </div>
  6963. <img
  6964. class="deleteImg"
  6965. src="../assets/deleteworks.png"
  6966. v-if="
  6967. w.userid == userid ||
  6968. tType == 1 ||
  6969. tType == 4
  6970. "
  6971. @click.stop="deleteWorks(w.wid)"
  6972. alt
  6973. />
  6974. </div>
  6975. <div class="workImg" v-if="w.type == 12">
  6976. <img
  6977. style="cursor: pointer"
  6978. :src="word2"
  6979. @click="downloadFile(w.works)"
  6980. alt
  6981. />
  6982. <!-- @click="openVideo(w.works)" -->
  6983. <div
  6984. class="answerScore"
  6985. v-if="w.score"
  6986. @click.stop="openScore(w)"
  6987. :class="{
  6988. rightW:
  6989. w.userid == userid ||
  6990. tType == 1 ||
  6991. tType == 4 ||
  6992. w.ateacher == userid,
  6993. }"
  6994. >
  6995. {{ JSON.parse(w.score).wScore }}分
  6996. </div>
  6997. <div
  6998. class="answerScore"
  6999. @click.stop="openScore(w)"
  7000. v-else-if="courseDetail.userid == userid"
  7001. :class="{
  7002. rightW:
  7003. w.userid == userid ||
  7004. tType == 1 ||
  7005. tType == 4 ||
  7006. w.ateacher == userid,
  7007. }"
  7008. >
  7009. 评分
  7010. </div>
  7011. <img
  7012. class="deleteImg"
  7013. src="../assets/deleteworks.png"
  7014. v-if="
  7015. w.userid == userid ||
  7016. tType == 1 ||
  7017. tType == 4
  7018. "
  7019. @click.stop="deleteWorks(w.wid)"
  7020. alt
  7021. />
  7022. </div>
  7023. <div class="comment" style="min-width: 200px">
  7024. <div class="worksName">
  7025. <div>{{ w.sName }}</div>
  7026. </div>
  7027. <div class="commentList">
  7028. <div class="commentList">
  7029. <div
  7030. class="commentImg"
  7031. @click="
  7032. isLikes(
  7033. w.wid,
  7034. userid,
  7035. 1,
  7036. null,
  7037. w.isLikes
  7038. )
  7039. "
  7040. >
  7041. <img
  7042. :src="
  7043. w.isLikes == true ? likes : noLikes
  7044. "
  7045. alt=""
  7046. />
  7047. </div>
  7048. <div>{{ w.likesCount }}</div>
  7049. </div>
  7050. <div
  7051. class="commentList"
  7052. style="margin-right: 15px"
  7053. >
  7054. <div
  7055. class="commentImg"
  7056. @click="
  7057. commentOther(
  7058. w,
  7059. toolIndex,
  7060. wIndex,
  7061. gindex
  7062. )
  7063. "
  7064. >
  7065. <img
  7066. src="../assets/icon/comment/comment.png"
  7067. alt=""
  7068. />
  7069. </div>
  7070. <div>{{ w.commentCount }}</div>
  7071. </div>
  7072. </div>
  7073. </div>
  7074. </div>
  7075. </div>
  7076. </div>
  7077. </div>
  7078. </div>
  7079. </div>
  7080. </div>
  7081. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7082. 上传文件
  7083. <input
  7084. type="file"
  7085. accept="image/png, image/gif, image/jpeg"
  7086. style="display: none"
  7087. @change="beforeUpload1($event, 2, index)"
  7088. />
  7089. </div>-->
  7090. </div>
  7091. </div>
  7092. <!-- <div
  7093. class="vedioBox"
  7094. style="margin-top: 10px"
  7095. v-if="
  7096. courseDetail.userid == userid ||
  7097. (courseDetail.course_teacher &&
  7098. courseDetail.course_teacher.indexOf(userid) != -1)
  7099. "
  7100. :style="{
  7101. borderRadius:
  7102. !(
  7103. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7104. .toolChoose[0].tool &&
  7105. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7106. .toolChoose[0].tool.length > 0
  7107. ) &&
  7108. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7109. .taskDetail == '' &&
  7110. vChapterData[taskCount].length == 0 &&
  7111. fileC[taskCount].length == 0
  7112. ? '0 0 20px 20px'
  7113. : '20px',
  7114. }"
  7115. >
  7116. <div
  7117. class="queTop"
  7118. @click="isClose = !isClose"
  7119. style="
  7120. padding: 15px 0 15px 37px;
  7121. justify-content: space-between;
  7122. "
  7123. >
  7124. <div class="queTopTitle">新增工具</div>
  7125. <div class="queTopRight">
  7126. <div class="queTopClose" v-if="isClose == 0">
  7127. 展开
  7128. <div class="closeImg">
  7129. <img src="../assets/icon/newIcon/close.png" alt="" />
  7130. </div>
  7131. </div>
  7132. <div class="queTopClose" v-if="isClose == 1">
  7133. 折叠
  7134. <div class="openImg">
  7135. <img src="../assets/icon/newIcon/open.png" alt="" />
  7136. </div>
  7137. </div>
  7138. <el-button
  7139. style="margin: 0 30px 0 auto"
  7140. type="primary"
  7141. size="small"
  7142. v-if="isClose == 1 && checktoolArray.length > 0"
  7143. @click.stop="addToolChoose"
  7144. >确定</el-button
  7145. >
  7146. </div>
  7147. </div>
  7148. <div
  7149. class="tool_work_box"
  7150. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7151. >
  7152. <div class="tool_box">
  7153. <div class="tool_type_box">
  7154. <div class="chooseWho">
  7155. <div
  7156. :class="toolType == 0 ? 'isChooseActive' : ''"
  7157. @click="(toolType = 0), $forceUpdate()"
  7158. >
  7159. 互动类
  7160. </div>
  7161. <div
  7162. :class="toolType == 1 ? 'isChooseActive' : ''"
  7163. @click="(toolType = 1), $forceUpdate()"
  7164. >
  7165. 思维类
  7166. </div>
  7167. <div
  7168. :class="toolType == 2 ? 'isChooseActive' : ''"
  7169. @click="(toolType = 2), $forceUpdate()"
  7170. >
  7171. 测评类
  7172. </div>
  7173. <div
  7174. :class="toolType == 3 ? 'isChooseActive' : ''"
  7175. @click="(toolType = 3), $forceUpdate()"
  7176. >
  7177. 编程类
  7178. </div>
  7179. <div
  7180. :class="toolType == 5 ? 'isChooseActive' : ''"
  7181. @click="(toolType = 5), $forceUpdate()"
  7182. >
  7183. 学科类
  7184. </div>
  7185. </div>
  7186. </div>
  7187. <div>
  7188. <div class="toolSort" v-if="toolType == 0">
  7189. <div class="tool">
  7190. <div class="whiteBIcon" @click="addTools2(10)">
  7191. <img
  7192. src="../assets/icon/thirdToolList/time.png"
  7193. alt
  7194. />
  7195. <div style="margin: 5px 0">倒计时</div>
  7196. </div>
  7197. <div class="check" @click="addTools2(10)">
  7198. <img
  7199. src="../assets/icon/checkNo.png"
  7200. alt
  7201. v-if="checktoolArray.indexOf(10) == -1"
  7202. />
  7203. <div class="checkDiv" v-else>
  7204. <img src="../assets/icon/checkedIs.png" alt /><span
  7205. >已选择</span
  7206. >
  7207. </div>
  7208. </div>
  7209. </div>
  7210. <div class="tool">
  7211. <div class="whiteBIcon" @click="addTools2(65)">
  7212. <img
  7213. src="../assets/icon/firstToolList/pickPeople.png"
  7214. alt
  7215. />
  7216. <div style="margin: 5px 0">挑人</div>
  7217. </div>
  7218. <div class="check" @click="addTools2(65)">
  7219. <img
  7220. src="../assets/icon/checkNo.png"
  7221. alt
  7222. v-if="checktoolArray.indexOf(65) == -1"
  7223. />
  7224. <div class="checkDiv" v-else>
  7225. <img src="../assets/icon/checkedIs.png" alt /><span
  7226. >已选择</span
  7227. >
  7228. </div>
  7229. </div>
  7230. </div>
  7231. </div>
  7232. <div class="toolSort" v-if="toolType == 1">
  7233. <div class="tool">
  7234. <div class="whiteBIcon" @click="addTools2(7)">
  7235. <img
  7236. src="../assets/icon/secondToolList/mindNetwork.png"
  7237. alt
  7238. />
  7239. <div style="margin: 5px 0">思维网格</div>
  7240. </div>
  7241. <div class="check" @click="addTools2(7)">
  7242. <img
  7243. src="../assets/icon/checkNo.png"
  7244. alt
  7245. v-if="checktoolArray.indexOf(7) == -1"
  7246. />
  7247. <div class="checkDiv" v-else>
  7248. <img src="../assets/icon/checkedIs.png" alt /><span
  7249. >已选择</span
  7250. >
  7251. </div>
  7252. </div>
  7253. </div>
  7254. <div class="tool">
  7255. <div class="whiteBIcon" @click="addTools2(1)">
  7256. <img
  7257. src="../assets/icon/secondToolList/whiteBoard.png"
  7258. alt
  7259. />
  7260. <div style="margin: 5px 0">电子白板</div>
  7261. </div>
  7262. <div class="check" @click="addTools2(1)">
  7263. <img
  7264. src="../assets/icon/checkNo.png"
  7265. alt
  7266. v-if="checktoolArray.indexOf(1) == -1"
  7267. />
  7268. <div class="checkDiv" v-else>
  7269. <img src="../assets/icon/checkedIs.png" alt /><span
  7270. >已选择</span
  7271. >
  7272. </div>
  7273. </div>
  7274. </div>
  7275. <div class="tool">
  7276. <div class="whiteBIcon" @click="addTools2(52)">
  7277. <img
  7278. src="../assets/icon/fourthToolList/text.png"
  7279. alt
  7280. />
  7281. <div style="margin: 5px 0">文档</div>
  7282. </div>
  7283. <div class="check" @click="addTools2(52)">
  7284. <img
  7285. src="../assets/icon/checkNo.png"
  7286. alt
  7287. v-if="checktoolArray.indexOf(52) == -1"
  7288. />
  7289. <div class="checkDiv" v-else>
  7290. <img src="../assets/icon/checkedIs.png" alt /><span
  7291. >已选择</span
  7292. >
  7293. </div>
  7294. </div>
  7295. </div>
  7296. <div class="tool">
  7297. <div class="whiteBIcon" @click="addTools2(3)">
  7298. <img
  7299. src="../assets/icon/secondToolList/mindMapping.png"
  7300. alt
  7301. />
  7302. <div style="margin: 5px 0">思维导图</div>
  7303. </div>
  7304. <div class="check" @click="addTools2(3)">
  7305. <img
  7306. src="../assets/icon/checkNo.png"
  7307. alt
  7308. v-if="checktoolArray.indexOf(3) == -1"
  7309. />
  7310. <div class="checkDiv" v-else>
  7311. <img src="../assets/icon/checkedIs.png" alt /><span
  7312. >已选择</span
  7313. >
  7314. </div>
  7315. </div>
  7316. </div>
  7317. <div class="tool">
  7318. <div class="whiteBIcon" @click="addTools2(48)">
  7319. <img
  7320. src="../assets/icon/fourthToolList/table.png"
  7321. alt
  7322. />
  7323. <div style="margin: 5px 0">表格</div>
  7324. </div>
  7325. <div class="check" @click="addTools2(48)">
  7326. <img
  7327. src="../assets/icon/checkNo.png"
  7328. alt
  7329. v-if="checktoolArray.indexOf(48) == -1"
  7330. />
  7331. <div class="checkDiv" v-else>
  7332. <img src="../assets/icon/checkedIs.png" alt /><span
  7333. >已选择</span
  7334. >
  7335. </div>
  7336. </div>
  7337. </div>
  7338. </div>
  7339. <div class="toolSort" v-if="toolType == 6">
  7340. <div v-show="tooC == 49">
  7341. <img
  7342. @click="addTools(tooC, toolIndex, taskCount)"
  7343. src="../assets/icon/fourthToolList/group.png"
  7344. alt
  7345. />
  7346. <div style="margin: 5px 0">学生分组</div>
  7347. </div>
  7348. </div>
  7349. <div class="toolSort" v-if="toolType == 2">
  7350. <div class="tool">
  7351. <div class="whiteBIcon" @click="addTools2(16)">
  7352. <img
  7353. src="../assets/icon/thirdToolList/work.png"
  7354. alt
  7355. />
  7356. <div style="margin: 5px 0">作业提交</div>
  7357. </div>
  7358. <div class="check" @click="addTools2(16)">
  7359. <img
  7360. src="../assets/icon/checkNo.png"
  7361. alt
  7362. v-if="checktoolArray.indexOf(16) == -1"
  7363. />
  7364. <div class="checkDiv" v-else>
  7365. <img src="../assets/icon/checkedIs.png" alt /><span
  7366. >已选择</span
  7367. >
  7368. </div>
  7369. </div>
  7370. </div>
  7371. <div class="tool">
  7372. <div class="whiteBIcon" @click="addTools2(50)">
  7373. <img
  7374. src="../assets/icon/thirdToolList/plwork.png"
  7375. alt
  7376. />
  7377. <div style="margin: 5px 0">批量上传</div>
  7378. </div>
  7379. <div class="check" @click="addTools2(50)">
  7380. <img
  7381. src="../assets/icon/checkNo.png"
  7382. alt
  7383. v-if="checktoolArray.indexOf(50) == -1"
  7384. />
  7385. <div class="checkDiv" v-else>
  7386. <img src="../assets/icon/checkedIs.png" alt /><span
  7387. >已选择</span
  7388. >
  7389. </div>
  7390. </div>
  7391. </div>
  7392. </div>
  7393. <div class="toolSort" v-if="toolType == 3">
  7394. <div class="tool">
  7395. <div class="whiteBIcon" @click="addTools2(18)">
  7396. <img
  7397. src="../assets/icon/thirdToolList/trainPlatform.png"
  7398. alt
  7399. />
  7400. <div style="margin: 5px 0">训练平台</div>
  7401. </div>
  7402. <div class="check" @click="addTools2(18)">
  7403. <img
  7404. src="../assets/icon/checkNo.png"
  7405. alt
  7406. v-if="checktoolArray.indexOf(18) == -1"
  7407. />
  7408. <div class="checkDiv" v-else>
  7409. <img src="../assets/icon/checkedIs.png" alt /><span
  7410. >已选择</span
  7411. >
  7412. </div>
  7413. </div>
  7414. </div>
  7415. <div class="tool">
  7416. <div class="whiteBIcon" @click="addTools2(21)">
  7417. <img
  7418. src="../assets/icon/fourthToolList/program.png"
  7419. alt
  7420. />
  7421. <div style="margin: 5px 0">AIoT Blockly</div>
  7422. </div>
  7423. <div class="check" @click="addTools2(21)">
  7424. <img
  7425. src="../assets/icon/checkNo.png"
  7426. alt
  7427. v-if="checktoolArray.indexOf(21) == -1"
  7428. />
  7429. <div class="checkDiv" v-else>
  7430. <img src="../assets/icon/checkedIs.png" alt /><span
  7431. >已选择</span
  7432. >
  7433. </div>
  7434. </div>
  7435. </div>
  7436. <div class="tool">
  7437. <div class="whiteBIcon" @click="addTools2(23)">
  7438. <img
  7439. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7440. alt
  7441. />
  7442. <div style="margin: 5px 0">AI Python</div>
  7443. </div>
  7444. <div class="check" @click="addTools2(23)">
  7445. <img
  7446. src="../assets/icon/checkNo.png"
  7447. alt
  7448. v-if="checktoolArray.indexOf(23) == -1"
  7449. />
  7450. <div class="checkDiv" v-else>
  7451. <img src="../assets/icon/checkedIs.png" alt /><span
  7452. >已选择</span
  7453. >
  7454. </div>
  7455. </div>
  7456. </div>
  7457. <div class="tool">
  7458. <div class="whiteBIcon" @click="addTools2(24)">
  7459. <img
  7460. src="../assets/icon/fourthToolList/AIprogram.png"
  7461. alt
  7462. />
  7463. <div style="margin: 5px 0">AI Blockly</div>
  7464. </div>
  7465. <div class="check" @click="addTools2(24)">
  7466. <img
  7467. src="../assets/icon/checkNo.png"
  7468. alt
  7469. v-if="checktoolArray.indexOf(24) == -1"
  7470. />
  7471. <div class="checkDiv" v-else>
  7472. <img src="../assets/icon/checkedIs.png" alt /><span
  7473. >已选择</span
  7474. >
  7475. </div>
  7476. </div>
  7477. </div>
  7478. <div class="tool">
  7479. <div class="whiteBIcon" @click="addTools2(32)">
  7480. <img
  7481. src="../assets/icon/thirdToolList/code.png"
  7482. alt
  7483. />
  7484. <div style="margin: 5px 0">源码编辑</div>
  7485. </div>
  7486. <div class="check" @click="addTools2(32)">
  7487. <img
  7488. src="../assets/icon/checkNo.png"
  7489. alt
  7490. v-if="checktoolArray.indexOf(32) == -1"
  7491. />
  7492. <div class="checkDiv" v-else>
  7493. <img src="../assets/icon/checkedIs.png" alt /><span
  7494. >已选择</span
  7495. >
  7496. </div>
  7497. </div>
  7498. </div>
  7499. <div class="tool">
  7500. <div class="whiteBIcon" @click="addTools2(57)">
  7501. <img
  7502. src="../assets/icon/fourthToolList/cocopi.png"
  7503. alt
  7504. />
  7505. <div style="margin: 5px 0">CocoPi</div>
  7506. </div>
  7507. <div class="check" @click="addTools2(57)">
  7508. <img
  7509. src="../assets/icon/checkNo.png"
  7510. alt
  7511. v-if="checktoolArray.indexOf(57) == -1"
  7512. />
  7513. <div class="checkDiv" v-else>
  7514. <img src="../assets/icon/checkedIs.png" alt /><span
  7515. >已选择</span
  7516. >
  7517. </div>
  7518. </div>
  7519. </div>
  7520. <div class="tool">
  7521. <div class="whiteBIcon" @click="addTools2(63)">
  7522. <img
  7523. src="../assets/icon/fourthToolList/Wood.png"
  7524. alt
  7525. />
  7526. <div style="margin: 5px 0">海龟编程</div>
  7527. </div>
  7528. <div class="check" @click="addTools2(63)">
  7529. <img
  7530. src="../assets/icon/checkNo.png"
  7531. alt
  7532. v-if="checktoolArray.indexOf(63) == -1"
  7533. />
  7534. <div class="checkDiv" v-else>
  7535. <img src="../assets/icon/checkedIs.png" alt /><span
  7536. >已选择</span
  7537. >
  7538. </div>
  7539. </div>
  7540. </div>
  7541. </div>
  7542. <div class="toolSort" v-if="toolType == 5">
  7543. <div class="tool">
  7544. <div class="whiteBIcon" @click="addTools2(28)">
  7545. <img
  7546. src="../assets/icon/secondToolList/translation.png"
  7547. alt
  7548. />
  7549. <div style="margin: 5px 0">翻译</div>
  7550. </div>
  7551. <div class="check" @click="addTools2(28)">
  7552. <img
  7553. src="../assets/icon/checkNo.png"
  7554. alt
  7555. v-if="checktoolArray.indexOf(28) == -1"
  7556. />
  7557. <div class="checkDiv" v-else>
  7558. <img src="../assets/icon/checkedIs.png" alt /><span
  7559. >已选择</span
  7560. >
  7561. </div>
  7562. </div>
  7563. </div>
  7564. <div class="tool">
  7565. <div class="whiteBIcon" @click="addTools2(31)">
  7566. <img
  7567. src="../assets/icon/secondToolList/networkPanel.png"
  7568. alt
  7569. />
  7570. <div style="margin: 5px 0">数字画板</div>
  7571. </div>
  7572. <div class="check" @click="addTools2(31)">
  7573. <img
  7574. src="../assets/icon/checkNo.png"
  7575. alt
  7576. v-if="checktoolArray.indexOf(31) == -1"
  7577. />
  7578. <div class="checkDiv" v-else>
  7579. <img src="../assets/icon/checkedIs.png" alt /><span
  7580. >已选择</span
  7581. >
  7582. </div>
  7583. </div>
  7584. </div>
  7585. <div class="tool">
  7586. <div class="whiteBIcon" @click="addTools2(39)">
  7587. <img
  7588. src="../assets/icon/secondToolList/GeoGebra.png"
  7589. alt
  7590. />
  7591. <div style="margin: 5px 0">GeoGebra</div>
  7592. </div>
  7593. <div class="check" @click="addTools2(39)">
  7594. <img
  7595. src="../assets/icon/checkNo.png"
  7596. alt
  7597. v-if="checktoolArray.indexOf(39) == -1"
  7598. />
  7599. <div class="checkDiv" v-else>
  7600. <img src="../assets/icon/checkedIs.png" alt /><span
  7601. >已选择</span
  7602. >
  7603. </div>
  7604. </div>
  7605. </div>
  7606. <div class="tool">
  7607. <div class="whiteBIcon" @click="addTools2(66)">
  7608. <img
  7609. src="../assets/icon/secondToolList/formulaEdi.png"
  7610. alt
  7611. />
  7612. <div style="margin: 5px 0">公式编辑</div>
  7613. </div>
  7614. <div class="check" @click="addTools2(66)">
  7615. <img
  7616. src="../assets/icon/checkNo.png"
  7617. alt
  7618. v-if="checktoolArray.indexOf(66) == -1"
  7619. />
  7620. <div class="checkDiv" v-else>
  7621. <img src="../assets/icon/checkedIs.png" alt /><span
  7622. >已选择</span
  7623. >
  7624. </div>
  7625. </div>
  7626. </div>
  7627. <div class="tool">
  7628. <div class="whiteBIcon" @click="addTools2(67)">
  7629. <img
  7630. src="../assets/icon/secondToolList/molStr.png"
  7631. alt
  7632. />
  7633. <div style="margin: 5px 0">分子结构</div>
  7634. </div>
  7635. <div class="check" @click="addTools2(67)">
  7636. <img
  7637. src="../assets/icon/checkNo.png"
  7638. alt
  7639. v-if="checktoolArray.indexOf(67) == -1"
  7640. />
  7641. <div class="checkDiv" v-else>
  7642. <img src="../assets/icon/checkedIs.png" alt /><span
  7643. >已选择</span
  7644. >
  7645. </div>
  7646. </div>
  7647. </div>
  7648. <div class="tool">
  7649. <div class="whiteBIcon" @click="addTools2(68)">
  7650. <img
  7651. src="../assets/icon/secondToolList/timeAxis.png"
  7652. alt
  7653. />
  7654. <div style="margin: 5px 0">时间轴</div>
  7655. </div>
  7656. <div class="check" @click="addTools2(68)">
  7657. <img
  7658. src="../assets/icon/checkNo.png"
  7659. alt
  7660. v-if="checktoolArray.indexOf(68) == -1"
  7661. />
  7662. <div class="checkDiv" v-else>
  7663. <img src="../assets/icon/checkedIs.png" alt /><span
  7664. >已选择</span
  7665. >
  7666. </div>
  7667. </div>
  7668. </div>
  7669. </div>
  7670. <div class="toolSort" v-if="toolType == 7">
  7671. <div class="tool">
  7672. <div class="whiteBIcon" @click="addTools2(40)">
  7673. <img
  7674. src="../assets/icon/secondToolList/eval.png"
  7675. alt
  7676. />
  7677. <div style="margin: 5px 0">个人评价</div>
  7678. </div>
  7679. <div class="check" @click="addTools2(40)">
  7680. <img
  7681. src="../assets/icon/checkNo.png"
  7682. alt
  7683. v-if="checktoolArray.indexOf(40) == -1"
  7684. />
  7685. <div class="checkDiv" v-else>
  7686. <img src="../assets/icon/checkedIs.png" alt /><span
  7687. >已选择</span
  7688. >
  7689. </div>
  7690. </div>
  7691. </div>
  7692. </div>
  7693. <div class="toolSort" v-if="toolType == 4">
  7694. <div class="tool">
  7695. <div class="whiteBIcon" @click="addTools2(26)">
  7696. <img
  7697. src="../assets/icon/thirdToolList/courseDesign.png"
  7698. alt
  7699. />
  7700. <div style="margin: 5px 0">课程设计</div>
  7701. </div>
  7702. <div class="check" @click="addTools2(26)">
  7703. <img
  7704. src="../assets/icon/checkNo.png"
  7705. alt
  7706. v-if="checktoolArray.indexOf(26) == -1"
  7707. />
  7708. <div class="checkDiv" v-else>
  7709. <img src="../assets/icon/checkedIs.png" alt /><span
  7710. >已选择</span
  7711. >
  7712. </div>
  7713. </div>
  7714. </div>
  7715. <div class="tool">
  7716. <div class="whiteBIcon" @click="addTools2(25)">
  7717. <img
  7718. src="../assets/icon/thirdToolList/evalua.png"
  7719. alt
  7720. />
  7721. <div style="margin: 5px 0">目标管理</div>
  7722. </div>
  7723. <div class="check" @click="addTools2(25)">
  7724. <img
  7725. src="../assets/icon/checkNo.png"
  7726. alt
  7727. v-if="checktoolArray.indexOf(25) == -1"
  7728. />
  7729. <div class="checkDiv" v-else>
  7730. <img src="../assets/icon/checkedIs.png" alt /><span
  7731. >已选择</span
  7732. >
  7733. </div>
  7734. </div>
  7735. </div>
  7736. </div>
  7737. </div>
  7738. </div>
  7739. </div>
  7740. </div> -->
  7741. <div
  7742. class="vedioBox"
  7743. style="margin-top: 10px; border-radius: 20px"
  7744. v-if="
  7745. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7746. .eList &&
  7747. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7748. .eList.length &&
  7749. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7750. .eList.length > 0 &&
  7751. tType != 2
  7752. "
  7753. >
  7754. <div
  7755. class="queTop"
  7756. style="
  7757. font-size: 20px;
  7758. padding: 15px 0 15px 37px;
  7759. font-weight: bold;
  7760. "
  7761. >
  7762. <!-- <div class="question" style="width: 30px">
  7763. <img src="../assets/icon/toolIcon.png" alt />
  7764. </div>
  7765. <div class="queTitle">
  7766. <div>工具</div>
  7767. </div>-->
  7768. 评一评
  7769. </div>
  7770. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7771. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7772. <el-table
  7773. :data="
  7774. chapInfoList[courseType].chapterInfo[0].taskJson[
  7775. taskCount
  7776. ].eList
  7777. "
  7778. :header-cell-style="{ background: '#F0F4FA' }"
  7779. :row-class-name="tableRowClassName"
  7780. border
  7781. stripe
  7782. style="width: 100%"
  7783. >
  7784. <el-table-column
  7785. label="评价名称"
  7786. align="center"
  7787. >
  7788. <template slot-scope="scope"
  7789. ><div>{{ scope.row.value }}</div></template
  7790. >
  7791. </el-table-column>
  7792. <el-table-column
  7793. label="评价描述"
  7794. align="center"
  7795. >
  7796. <template slot-scope="scope"
  7797. ><div>
  7798. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7799. </div></template
  7800. >
  7801. </el-table-column>
  7802. <el-table-column label="目标" align="center">
  7803. <template slot-scope="scope"
  7804. ><div>
  7805. {{
  7806. scope.row.target
  7807. ? scope.row.target[scope.row.target.length - 1]
  7808. : "-"
  7809. }}
  7810. </div></template
  7811. ></el-table-column
  7812. >
  7813. </el-table>
  7814. <!-- <div
  7815. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7816. .chapterInfo[0].taskJson[taskCount].eList"
  7817. :key="eIndex"
  7818. class="elist_input_box"
  7819. >
  7820. <div style="width: 95%">
  7821. <div
  7822. style="
  7823. display: flex;
  7824. flex-direction: row;
  7825. flex-wrap: nowrap;
  7826. align-items: center;
  7827. "
  7828. >
  7829. <div style="max-width: calc(100% - 285px)">
  7830. <span>{{ eItem.value }}</span>
  7831. </div>
  7832. <div
  7833. style="
  7834. padding-left: 25px;
  7835. display: flex;
  7836. flex-direction: row;
  7837. align-items: center;
  7838. "
  7839. >
  7840. <el-rate
  7841. v-model="eItem.score"
  7842. :colors="colors"
  7843. disabled
  7844. ></el-rate>
  7845. </div>
  7846. </div>
  7847. <div class="elist_inptu_text" style="padding-left: 10px">
  7848. <span v-if="eItem.detail != ''">{{
  7849. eItem.detail
  7850. }}</span>
  7851. <span v-else style="color: #b2b1b3; font-size: 14px"
  7852. >暂无描述...</span
  7853. >
  7854. </div>
  7855. </div>
  7856. </div> -->
  7857. </div>
  7858. <div
  7859. v-if="evalua"
  7860. style="
  7861. border: 1px solid #e5e5e5;
  7862. max-width: 650px;
  7863. width: 100%;
  7864. margin-top: 20px;
  7865. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7866. "
  7867. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7868. >
  7869. <div class="e_add_top">
  7870. <div class="e_add_title" style="width: 100%">
  7871. <!-- <span>目标管理名称</span> -->
  7872. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7873. <img
  7874. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7875. src="../assets/line.png"
  7876. class="cru_line"
  7877. style="
  7878. width: 125px;
  7879. height: 20px;
  7880. bottom: -10px;
  7881. left: 5px;
  7882. "
  7883. />
  7884. <!-- <el-input
  7885. v-model="eTitle"
  7886. placeholder="请输入名称"
  7887. @change="setMindData"
  7888. ></el-input>-->
  7889. <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>
  7890. <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>
  7891. </div>
  7892. </div>
  7893. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7894. <div class="e_add_list_pbox">
  7895. <div class="e_add_list_pbox_title">
  7896. <!-- <span class="type_title">切换模式</span> -->
  7897. <div class="type_content">
  7898. <span
  7899. :class="{ active: typeMode == 1 }"
  7900. @click="typeMode = 1"
  7901. >目标树</span
  7902. >
  7903. <span
  7904. :class="{ active: typeMode == 2 }"
  7905. @click="typeMode = 2"
  7906. >目标罗盘</span
  7907. >
  7908. <!-- <span
  7909. :class="{ active: typeMode == 3 }"
  7910. @click="typeMode = 3"
  7911. >目标看板</span
  7912. > -->
  7913. </div>
  7914. </div>
  7915. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7916. <Mind
  7917. :showBar="false"
  7918. :mindData="data"
  7919. style="width: 100%"
  7920. v-show="typeMode == 1"
  7921. ></Mind>
  7922. <Sunburst
  7923. :Josn="eJson"
  7924. :num="eJSONNum"
  7925. style="width: 100%"
  7926. v-if="typeMode == 2"
  7927. ></Sunburst>
  7928. <SeeBoard
  7929. :Josn="eJson"
  7930. :num="eJSONNum"
  7931. :ename="eTitle"
  7932. style="width: 100%"
  7933. v-if="typeMode == 3"
  7934. >
  7935. </SeeBoard>
  7936. </div>
  7937. </div>
  7938. </div>
  7939. </div>
  7940. </div>
  7941. </div>
  7942. <!-- <div
  7943. class="project_box"
  7944. style="margin-top: 15px; padding-bottom: 30px"
  7945. >
  7946. <div
  7947. style="
  7948. display: flex;
  7949. flex-wrap: nowrap;
  7950. flex-direction: column;
  7951. position: relative;
  7952. "
  7953. >
  7954. <div class="queTop">
  7955. <div class="question">
  7956. <img src="../assets/icon/homeWork.png" alt="" />
  7957. </div>
  7958. <div class="queTitle">
  7959. <div>作业提交<span>(提交图文视频等)</span></div>
  7960. <div>:任务:{{ task.task }}</div>
  7961. </div>
  7962. </div>
  7963. <div class="ediBottom">
  7964. <div
  7965. class="addEditor"
  7966. style="margin-top: 23px"
  7967. @click="openAddWork"
  7968. v-if="!isNoHomeWork"
  7969. >
  7970. 选择文件
  7971. </div>
  7972. <div
  7973. class="addEditor"
  7974. style="margin-top: 23px"
  7975. @click="openAddWork"
  7976. v-else
  7977. >
  7978. 已提交
  7979. </div>
  7980. </div>
  7981. </div>
  7982. </div>-->
  7983. </div>
  7984. </div>
  7985. <el-dialog
  7986. title="作业提交"
  7987. :visible.sync="dialogVisible"
  7988. :append-to-body="true"
  7989. width="500px"
  7990. :before-close="handleClose"
  7991. class="dialog_change"
  7992. >
  7993. <div class="marginT">
  7994. <div>上传文件</div>
  7995. <div
  7996. class="chapter_add"
  7997. @click="addImg($event)"
  7998. v-if="studyJuri[0].cover.length == 0"
  7999. >
  8000. <div class="up_photo">
  8001. <img src="../assets/icon/uploadImg.png" alt />
  8002. </div>
  8003. <!-- <input
  8004. type="file"
  8005. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8006. style="display: none"
  8007. @change="beforeUpload1($event, 1)"
  8008. /> -->
  8009. <input
  8010. type="file"
  8011. accept="*"
  8012. style="display: none"
  8013. @change="beforeUpload1($event, 1)"
  8014. />
  8015. <!-- <input
  8016. type="file"
  8017. accept="image/*"
  8018. capture="camera"
  8019. style="display: none"
  8020. @change="beforeUpload1($event, 1)"
  8021. /> -->
  8022. </div>
  8023. <div
  8024. class="chapter_add"
  8025. style="
  8026. display: flex;
  8027. width: 100%;
  8028. flex-direction: row;
  8029. flex-wrap: wrap;
  8030. justify-content: flex-start;
  8031. padding: 15px 0;
  8032. "
  8033. v-if="studyJuri[0].cover.length > 0"
  8034. >
  8035. <div class="upCover">
  8036. <img
  8037. :src="studyJuri[0].cover[0].url"
  8038. alt
  8039. v-if="fileType == 0"
  8040. />
  8041. <img :src="word" alt v-else-if="fileType == 1" />
  8042. <img :src="video" alt v-else-if="fileType == 2" />
  8043. <img :src="word2" alt v-else-if="fileType == 3" />
  8044. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8045. <div class="deleteWord" @click="clean(1)">
  8046. <img src="../assets/icon/deleteWorks.png" alt />
  8047. </div>
  8048. </div>
  8049. </div>
  8050. </div>
  8051. <div
  8052. class="upload_send"
  8053. @click="addCourseWorks(taskCount)"
  8054. v-if="!proVisible"
  8055. >
  8056. 提交
  8057. </div>
  8058. </el-dialog>
  8059. </div>
  8060. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8061. <classRoomHelper :videoStart="videoStart" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8062. '/courseDetail?userid=' +
  8063. userid +
  8064. '&oid=' +
  8065. oid +
  8066. '&org=' +
  8067. org +
  8068. '&cid=' +
  8069. classId +
  8070. '&courseId=' +
  8071. id +
  8072. '&tType=' +
  8073. tType +
  8074. '&screenType=' +
  8075. screenType
  8076. )"></classRoomHelper>
  8077. </div>
  8078. <div
  8079. class="pButton"
  8080. @click="(pzDialog = true), selectPz()"
  8081. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8082. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8083. >
  8084. <!-- 批 -->
  8085. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  8086. </div>
  8087. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8088. <div class="pzTop2">
  8089. <!-- <div>评论</div>
  8090. <div @click="pzDialog = false">
  8091. <img src="../assets/close1.png" alt="" />
  8092. </div> -->
  8093. <div class="checkbox">
  8094. <!-- <div class="check" style="font-size: 25px; position: unset">
  8095. 评论
  8096. </div> -->
  8097. <div class="cb-tabList">
  8098. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8099. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8100. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8101. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8102. </div>
  8103. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8104. <el-option label="时间降序" :value="1"></el-option>
  8105. <el-option label="时间升序" :value="2"></el-option>
  8106. <el-option label="我的评课" :value="3"></el-option>
  8107. </el-select>
  8108. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8109. </div>
  8110. </div>
  8111. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8112. <div class="pzListBox" v-if="pzList && pzList.length">
  8113. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8114. <div class="pzNavTop">
  8115. <div>评</div>
  8116. <div>
  8117. {{
  8118. pz.username && pz.username.length > 5
  8119. ? pz.username.substring(0, 5) + "..."
  8120. : pz.username
  8121. }}的评论
  8122. </div>
  8123. <div
  8124. class="pzDelete"
  8125. v-if="pz.userid == userid"
  8126. @click="deletePz(pz.id)"
  8127. >
  8128. 删除
  8129. </div>
  8130. </div>
  8131. <div
  8132. @click="checkImg(getImgList(pz.content))"
  8133. class="pzContent cont"
  8134. v-html="pz.content"
  8135. v-if="pz.type == '1'"
  8136. ></div>
  8137. <div class="pzContent" v-if="pz.type == '2'">
  8138. <audio :src="pz.content" controls="controls" ref="audio">
  8139. Your browser does not support the audio element.
  8140. </audio>
  8141. </div>
  8142. <div class="pzContent" v-if="pz.type == '3'">
  8143. <img
  8144. :src="pz.content"
  8145. style="width: 90%; margin: 0 auto; display: block"
  8146. @click="previewImg(pz.content)"
  8147. />
  8148. </div>
  8149. <div class="timeAndReply">
  8150. <div class="time">
  8151. {{ pz.time }}
  8152. </div>
  8153. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8154. </div>
  8155. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8156. <div
  8157. v-for="(h, hIndex) in pz.hfList"
  8158. :key="hIndex"
  8159. class="hfItem"
  8160. >
  8161. <div class="whoReplyWho">
  8162. <div class="hfName">{{ h.username }}</div>
  8163. <div class="hfImg">
  8164. <img src="../assets/icon/newIcons/right.png" alt="" />
  8165. </div>
  8166. <div class="hfName">{{ pz.username }}</div>
  8167. </div>
  8168. <div class="hfContent" v-html="h.content"></div>
  8169. <div class="hfBottom">
  8170. <div class="hfTime">{{ h.time }}</div>
  8171. <div
  8172. class="deleteHfItem"
  8173. @click="deleteReply(h.id)"
  8174. v-if="userid == h.userid"
  8175. >
  8176. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8177. </div>
  8178. </div>
  8179. </div>
  8180. </div>
  8181. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8182. <div class="replyInput">
  8183. <el-input v-model="reply[pzIndex]"></el-input>
  8184. </div>
  8185. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8186. </div> -->
  8187. </div>
  8188. </div>
  8189. <div class="noPz" v-else>
  8190. <img src="../assets/icon/noPz.png" alt="" />
  8191. </div>
  8192. <div class="addPzButton">
  8193. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8194. 添加评论
  8195. </div>
  8196. <!-- <div class="img1">
  8197. <div @click="(addPzDialog = true), (pzType = 2)">
  8198. <img src="../assets/audio.png" /><span>音频</span>
  8199. </div>
  8200. </div> -->
  8201. </div>
  8202. </div>
  8203. <div class="scoreList" v-if="commentTagShow==1">
  8204. <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"/>
  8205. </div>
  8206. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8207. <scoreZong :courseid="id" :userid="userid"></scoreZong>
  8208. </div>
  8209. </div>
  8210. <div
  8211. v-if="toolDialogVisible == true"
  8212. class="toolMask"
  8213. @click="toolDialogVisible = false"
  8214. ></div>
  8215. <div v-if="toolDialogVisible == true" class="addToolCss">
  8216. <div class="toolTop">
  8217. <div style="font-weight: bold">新增工具</div>
  8218. <div @click="toolDialogVisible = false">
  8219. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8220. </div>
  8221. </div>
  8222. <div class="tool_box">
  8223. <div class="tool_type_box">
  8224. <div class="chooseWho">
  8225. <div
  8226. :class="toolType == 0 ? 'isChooseActive' : ''"
  8227. @click="(toolType = 0), $forceUpdate()"
  8228. >
  8229. 互动类
  8230. </div>
  8231. <div
  8232. :class="toolType == 1 ? 'isChooseActive' : ''"
  8233. @click="(toolType = 1), $forceUpdate()"
  8234. >
  8235. 思维类
  8236. </div>
  8237. <div
  8238. :class="toolType == 2 ? 'isChooseActive' : ''"
  8239. @click="(toolType = 2), $forceUpdate()"
  8240. >
  8241. 测评类
  8242. </div>
  8243. <div
  8244. :class="toolType == 3 ? 'isChooseActive' : ''"
  8245. @click="(toolType = 3), $forceUpdate()"
  8246. >
  8247. 编程类
  8248. </div>
  8249. <div
  8250. :class="toolType == 5 ? 'isChooseActive' : ''"
  8251. @click="(toolType = 5), $forceUpdate()"
  8252. >
  8253. 学科类
  8254. </div>
  8255. </div>
  8256. </div>
  8257. <div>
  8258. <div class="toolSort" v-if="toolType == 0">
  8259. <div
  8260. class="tool"
  8261. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8262. @click="addTools2(10)"
  8263. >
  8264. <div class="whiteBIcon">
  8265. <img src="../assets/icon/thirdToolList/time.png" alt />
  8266. <div style="margin: 5px 0">倒计时</div>
  8267. </div>
  8268. <div class="check">
  8269. <div
  8270. v-if="checktoolArray.indexOf(10) == -1"
  8271. class="noChoose"
  8272. ></div>
  8273. <div v-else class="isChoose"></div>
  8274. </div>
  8275. </div>
  8276. <div
  8277. class="tool"
  8278. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8279. @click="addTools2(65)"
  8280. >
  8281. <div class="whiteBIcon">
  8282. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8283. <div style="margin: 5px 0">挑人</div>
  8284. </div>
  8285. <div class="check">
  8286. <div
  8287. v-if="checktoolArray.indexOf(65) == -1"
  8288. class="noChoose"
  8289. ></div>
  8290. <div v-else class="isChoose"></div>
  8291. </div>
  8292. </div>
  8293. </div>
  8294. <div class="toolSort" v-if="toolType == 1">
  8295. <div
  8296. class="tool"
  8297. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8298. @click="addTools2(7)"
  8299. >
  8300. <div class="whiteBIcon">
  8301. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8302. <div style="margin: 5px 0">思维网格</div>
  8303. </div>
  8304. <div class="check">
  8305. <div
  8306. v-if="checktoolArray.indexOf(7) == -1"
  8307. class="noChoose"
  8308. ></div>
  8309. <div v-else class="isChoose"></div>
  8310. </div>
  8311. </div>
  8312. <div
  8313. class="tool"
  8314. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8315. @click="addTools2(1)"
  8316. >
  8317. <div class="whiteBIcon">
  8318. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8319. <div style="margin: 5px 0">电子白板</div>
  8320. </div>
  8321. <div class="check">
  8322. <div
  8323. v-if="checktoolArray.indexOf(1) == -1"
  8324. class="noChoose"
  8325. ></div>
  8326. <div v-else class="isChoose"></div>
  8327. </div>
  8328. </div>
  8329. <div
  8330. class="tool"
  8331. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8332. @click="addTools2(52)"
  8333. >
  8334. <div class="whiteBIcon">
  8335. <img src="../assets/icon/fourthToolList/text.png" alt />
  8336. <div style="margin: 5px 0">文档</div>
  8337. </div>
  8338. <div class="check">
  8339. <div
  8340. v-if="checktoolArray.indexOf(52) == -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(3) != -1 }"
  8349. @click="addTools2(3)"
  8350. >
  8351. <div class="whiteBIcon">
  8352. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8353. <div style="margin: 5px 0">思维导图</div>
  8354. </div>
  8355. <div class="check">
  8356. <div
  8357. v-if="checktoolArray.indexOf(3) == -1"
  8358. class="noChoose"
  8359. ></div>
  8360. <div v-else class="isChoose"></div>
  8361. </div>
  8362. </div>
  8363. <div
  8364. class="tool"
  8365. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8366. @click="addTools2(48)"
  8367. >
  8368. <div class="whiteBIcon">
  8369. <img src="../assets/icon/fourthToolList/table.png" alt />
  8370. <div style="margin: 5px 0">表格</div>
  8371. </div>
  8372. <div class="check">
  8373. <div
  8374. v-if="checktoolArray.indexOf(48) == -1"
  8375. class="noChoose"
  8376. ></div>
  8377. <div v-else class="isChoose"></div>
  8378. </div>
  8379. </div>
  8380. </div>
  8381. <div class="toolSort" v-if="toolType == 6">
  8382. <div v-show="tooC == 49">
  8383. <img
  8384. @click="addTools(tooC, toolIndex, taskCount)"
  8385. src="../assets/icon/fourthToolList/group.png"
  8386. alt
  8387. />
  8388. <div style="margin: 5px 0">学生分组</div>
  8389. </div>
  8390. </div>
  8391. <div class="toolSort" v-if="toolType == 2">
  8392. <div
  8393. class="tool"
  8394. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8395. @click="addTools2(16)"
  8396. >
  8397. <div class="whiteBIcon">
  8398. <img src="../assets/icon/thirdToolList/work.png" alt />
  8399. <div style="margin: 5px 0">作业提交</div>
  8400. </div>
  8401. <div class="check">
  8402. <div
  8403. v-if="checktoolArray.indexOf(16) == -1"
  8404. class="noChoose"
  8405. ></div>
  8406. <div v-else class="isChoose"></div>
  8407. </div>
  8408. </div>
  8409. <div
  8410. class="tool"
  8411. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8412. @click="addTools2(50)"
  8413. >
  8414. <div class="whiteBIcon">
  8415. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8416. <div style="margin: 5px 0">批量上传</div>
  8417. </div>
  8418. <div class="check">
  8419. <div
  8420. v-if="checktoolArray.indexOf(50) == -1"
  8421. class="noChoose"
  8422. ></div>
  8423. <div v-else class="isChoose"></div>
  8424. </div>
  8425. </div>
  8426. </div>
  8427. <div class="toolSort" v-if="toolType == 3">
  8428. <div
  8429. class="tool"
  8430. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8431. @click="addTools2(18)"
  8432. >
  8433. <div class="whiteBIcon">
  8434. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8435. <div style="margin: 5px 0">训练平台</div>
  8436. </div>
  8437. <div class="check">
  8438. <div
  8439. v-if="checktoolArray.indexOf(18) == -1"
  8440. class="noChoose"
  8441. ></div>
  8442. <div v-else class="isChoose"></div>
  8443. </div>
  8444. </div>
  8445. <div
  8446. class="tool"
  8447. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8448. @click="addTools2(21)"
  8449. >
  8450. <div class="whiteBIcon">
  8451. <img src="../assets/icon/fourthToolList/program.png" alt />
  8452. <div style="margin: 5px 0">AIoT Blockly</div>
  8453. </div>
  8454. <div class="check">
  8455. <div
  8456. v-if="checktoolArray.indexOf(21) == -1"
  8457. class="noChoose"
  8458. ></div>
  8459. <div v-else class="isChoose"></div>
  8460. </div>
  8461. </div>
  8462. <div
  8463. class="tool"
  8464. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8465. @click="addTools2(23)"
  8466. >
  8467. <div class="whiteBIcon">
  8468. <img
  8469. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8470. alt
  8471. />
  8472. <div style="margin: 5px 0">AI Python</div>
  8473. </div>
  8474. <div class="check">
  8475. <div
  8476. v-if="checktoolArray.indexOf(23) == -1"
  8477. class="noChoose"
  8478. ></div>
  8479. <div v-else class="isChoose"></div>
  8480. </div>
  8481. </div>
  8482. <div
  8483. class="tool"
  8484. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8485. @click="addTools2(24)"
  8486. >
  8487. <div class="whiteBIcon">
  8488. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8489. <div style="margin: 5px 0">AI Blockly</div>
  8490. </div>
  8491. <div class="check">
  8492. <div
  8493. v-if="checktoolArray.indexOf(24) == -1"
  8494. class="noChoose"
  8495. ></div>
  8496. <div v-else class="isChoose"></div>
  8497. </div>
  8498. </div>
  8499. <div
  8500. class="tool"
  8501. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8502. @click="addTools2(32)"
  8503. >
  8504. <div class="whiteBIcon">
  8505. <img src="../assets/icon/thirdToolList/code.png" alt />
  8506. <div style="margin: 5px 0">源码编辑</div>
  8507. </div>
  8508. <div class="check">
  8509. <div
  8510. v-if="checktoolArray.indexOf(32) == -1"
  8511. class="noChoose"
  8512. ></div>
  8513. <div v-else class="isChoose"></div>
  8514. </div>
  8515. </div>
  8516. <div
  8517. class="tool"
  8518. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8519. @click="addTools2(57)"
  8520. >
  8521. <div class="whiteBIcon">
  8522. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8523. <div style="margin: 5px 0">CocoPi</div>
  8524. </div>
  8525. <div class="check">
  8526. <div
  8527. v-if="checktoolArray.indexOf(57) == -1"
  8528. class="noChoose"
  8529. ></div>
  8530. <div v-else class="isChoose"></div>
  8531. </div>
  8532. </div>
  8533. <div
  8534. class="tool"
  8535. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8536. @click="addTools2(63)"
  8537. >
  8538. <div class="whiteBIcon">
  8539. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8540. <div style="margin: 5px 0">海龟编程</div>
  8541. </div>
  8542. <div class="check">
  8543. <div
  8544. v-if="checktoolArray.indexOf(63) == -1"
  8545. class="noChoose"
  8546. ></div>
  8547. <div v-else class="isChoose"></div>
  8548. </div>
  8549. </div>
  8550. <div
  8551. class="tool"
  8552. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8553. @click="addTools2(71)"
  8554. >
  8555. <div class="whiteBIcon">
  8556. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  8557. <div style="margin: 5px 0">AI智能体</div>
  8558. </div>
  8559. <div class="check">
  8560. <div
  8561. v-if="checktoolArray.indexOf(71) == -1"
  8562. class="noChoose"
  8563. ></div>
  8564. <div v-else class="isChoose"></div>
  8565. </div>
  8566. </div>
  8567. </div>
  8568. <div class="toolSort" v-if="toolType == 7">
  8569. <div
  8570. class="tool"
  8571. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8572. @click="addTools2(40)"
  8573. >
  8574. <div class="whiteBIcon">
  8575. <img src="../assets/icon/secondToolList/eval.png" alt />
  8576. <div style="margin: 5px 0">个人评价</div>
  8577. </div>
  8578. <div class="check">
  8579. <div
  8580. v-if="checktoolArray.indexOf(40) == -1"
  8581. class="noChoose"
  8582. ></div>
  8583. <div v-else class="isChoose"></div>
  8584. </div>
  8585. </div>
  8586. </div>
  8587. <div class="toolSort" v-if="toolType == 5">
  8588. <div
  8589. class="tool"
  8590. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8591. @click="addTools2(28)"
  8592. >
  8593. <div class="whiteBIcon">
  8594. <img src="../assets/icon/secondToolList/translation.png" alt />
  8595. <div style="margin: 5px 0">翻译</div>
  8596. </div>
  8597. <div class="check">
  8598. <div
  8599. v-if="checktoolArray.indexOf(28) == -1"
  8600. class="noChoose"
  8601. ></div>
  8602. <div v-else class="isChoose"></div>
  8603. </div>
  8604. </div>
  8605. <div
  8606. class="tool"
  8607. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8608. @click="addTools2(31)"
  8609. >
  8610. <div class="whiteBIcon">
  8611. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8612. <div style="margin: 5px 0">数字画板</div>
  8613. </div>
  8614. <div class="check">
  8615. <div
  8616. v-if="checktoolArray.indexOf(31) == -1"
  8617. class="noChoose"
  8618. ></div>
  8619. <div v-else class="isChoose"></div>
  8620. </div>
  8621. </div>
  8622. <div
  8623. class="tool"
  8624. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8625. @click="addTools2(39)"
  8626. >
  8627. <div class="whiteBIcon">
  8628. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8629. <div style="margin: 5px 0">GeoGebra</div>
  8630. </div>
  8631. <div class="check">
  8632. <div
  8633. v-if="checktoolArray.indexOf(39) == -1"
  8634. class="noChoose"
  8635. ></div>
  8636. <div v-else class="isChoose"></div>
  8637. </div>
  8638. </div>
  8639. <div
  8640. class="tool"
  8641. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8642. @click="addTools2(66)"
  8643. >
  8644. <div class="whiteBIcon">
  8645. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8646. <div style="margin: 5px 0">公式编辑</div>
  8647. </div>
  8648. <div class="check">
  8649. <div
  8650. v-if="checktoolArray.indexOf(66) == -1"
  8651. class="noChoose"
  8652. ></div>
  8653. <div v-else class="isChoose"></div>
  8654. </div>
  8655. </div>
  8656. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8657. <div class="whiteBIcon" @click="addTools2(67)">
  8658. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8659. <div style="margin: 5px 0">分子结构</div>
  8660. </div>
  8661. <div class="check" @click="addTools2(67)">
  8662. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8663. <div v-else class="isChoose"></div>
  8664. </div>
  8665. </div> -->
  8666. <div
  8667. class="tool"
  8668. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8669. @click="addTools2(68)"
  8670. >
  8671. <div class="whiteBIcon">
  8672. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8673. <div style="margin: 5px 0">时间轴</div>
  8674. </div>
  8675. <div class="check">
  8676. <div
  8677. v-if="checktoolArray.indexOf(68) == -1"
  8678. class="noChoose"
  8679. ></div>
  8680. <div v-else class="isChoose"></div>
  8681. </div>
  8682. </div>
  8683. <!-- <div
  8684. class="tool"
  8685. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8686. @click="addTools2(69)"
  8687. >
  8688. <div class="whiteBIcon">
  8689. <img src="../assets/icon/secondToolList/english.png" alt />
  8690. <div style="margin: 5px 0">英语写作</div>
  8691. </div>
  8692. <div class="check">
  8693. <div
  8694. v-if="checktoolArray.indexOf(69) == -1"
  8695. class="noChoose"
  8696. ></div>
  8697. <div v-else class="isChoose"></div>
  8698. </div>
  8699. </div> -->
  8700. </div>
  8701. <div class="toolSort" v-if="toolType == 4">
  8702. <div
  8703. class="tool"
  8704. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8705. @click="addTools2(26)"
  8706. >
  8707. <div class="whiteBIcon">
  8708. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8709. <div style="margin: 5px 0">课程设计</div>
  8710. </div>
  8711. <div class="check">
  8712. <div
  8713. v-if="checktoolArray.indexOf(26) == -1"
  8714. class="noChoose"
  8715. ></div>
  8716. <div v-else class="isChoose"></div>
  8717. </div>
  8718. </div>
  8719. <div
  8720. class="tool"
  8721. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8722. @click="addTools2(25)"
  8723. >
  8724. <div class="whiteBIcon">
  8725. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8726. <div style="margin: 5px 0">目标管理</div>
  8727. </div>
  8728. <div class="check">
  8729. <div
  8730. v-if="checktoolArray.indexOf(25) == -1"
  8731. class="noChoose"
  8732. ></div>
  8733. <div v-else class="isChoose"></div>
  8734. </div>
  8735. </div>
  8736. </div>
  8737. </div>
  8738. </div>
  8739. <span
  8740. slot="footer"
  8741. class="dialog-footer"
  8742. style="display: block; text-align: center; padding: 0 0 10px 0"
  8743. >
  8744. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8745. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8746. </span>
  8747. </div>
  8748. <div
  8749. v-if="replyDialogVisible == true"
  8750. class="addDialogCss"
  8751. v-el-drag-dialog
  8752. >
  8753. <div class="pzTop">
  8754. <div class="teacherPz">
  8755. <div class="teacherPzImg">
  8756. <img src="../assets/icon/teacherPz.png" alt="" />
  8757. </div>
  8758. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8759. </div>
  8760. <div @click="replyDialogVisible = false">
  8761. <img src="../assets/close1.png" class="pzClose" alt="" />
  8762. </div>
  8763. </div>
  8764. <div class="addPzBox">
  8765. <!-- <div class="addPzCheck">
  8766. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8767. >文本</span
  8768. >
  8769. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8770. >音频</span
  8771. >
  8772. </div> -->
  8773. <div style="height: calc(100% - 50px)">
  8774. <editor-bar
  8775. class="binfo_input pzConText"
  8776. style="width: 100% !important; margin: 0 auto"
  8777. placeholder="请输入回复描述"
  8778. v-model="reply"
  8779. @change="change"
  8780. ></editor-bar>
  8781. </div>
  8782. <div class="addTextCss" @click="addHf">确定</div>
  8783. </div>
  8784. </div>
  8785. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8786. <div class="pzTop">
  8787. <div class="teacherPz">
  8788. <div class="teacherPzImg">
  8789. <img src="../assets/icon/teacherPz.png" alt="" />
  8790. </div>
  8791. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8792. </div>
  8793. <div @click="addPzDialog = false">
  8794. <img src="../assets/close1.png" class="pzClose" alt="" />
  8795. </div>
  8796. </div>
  8797. <div class="addPzBox">
  8798. <div class="addPzCheck">
  8799. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8800. >文本</span
  8801. >
  8802. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8803. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8804. >音频</span
  8805. >
  8806. </div>
  8807. <div style="height: calc(100% - 95px)">
  8808. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8809. v-if="pzType == 1"></textarea> -->
  8810. <editor-bar
  8811. class="binfo_input pzConText"
  8812. style="width: 100% !important"
  8813. placeholder="请输入任务描述"
  8814. v-model="pzConText"
  8815. @change="change"
  8816. v-if="pzType == 1"
  8817. ></editor-bar>
  8818. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8819. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8820. <div @click="addImg($event)">
  8821. <el-button type="primary">上传图片</el-button>
  8822. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8823. @change="beforeUpload1($event, 4)" />
  8824. </div>
  8825. </div> -->
  8826. </div>
  8827. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8828. 确定
  8829. </div>
  8830. </div>
  8831. </div>
  8832. <div v-if="proVisible" class="mask">
  8833. <div class="progressBox">
  8834. <!-- <div id="closePro" class="closeCss">
  8835. <img src="../assets/icon/close.png" alt />
  8836. </div> -->
  8837. <div class="lbox">
  8838. <img src="../assets/loading.gif" />上传中,请稍后
  8839. </div>
  8840. <div style="margin-bottom: 10px">
  8841. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8842. </div>
  8843. <el-progress
  8844. :text-inside="true"
  8845. :stroke-width="20"
  8846. :percentage="progress"
  8847. style="width: 80%"
  8848. ></el-progress>
  8849. </div>
  8850. </div>
  8851. <div v-if="proVisible2" class="mask">
  8852. <div class="progressBox">
  8853. <div class="lbox">
  8854. <img src="../assets/loading.gif" />上传中,请稍后
  8855. </div>
  8856. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8857. </div>
  8858. </div>
  8859. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8860. <img width="100%" :src="dialogImageUrl" alt />
  8861. </el-dialog>
  8862. <el-dialog
  8863. :title="noteName != '' ? noteName : '查看问卷'"
  8864. :visible.sync="dialogVisible5"
  8865. :append-to-body="true"
  8866. width="1000px"
  8867. :before-close="handleClose"
  8868. class="dialog_diy dialog_diy3"
  8869. >
  8870. <div>
  8871. <div
  8872. class="a_add_title"
  8873. style="
  8874. display: flex;
  8875. flex-direction: row;
  8876. align-items: center;
  8877. justify-content: center;
  8878. "
  8879. >
  8880. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8881. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8882. </div>
  8883. <div class="a_addBox">
  8884. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8885. 题目内容
  8886. </div>
  8887. <div
  8888. class="a_add_box"
  8889. v-for="(item1, index1) in askJson.askCount"
  8890. :key="index1"
  8891. >
  8892. <div class="a_add_head">
  8893. <div style="display: flex">
  8894. <span class="askIndex"> {{ index1 + 1 }}</span>
  8895. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8896. </div>
  8897. <img
  8898. v-if="askJson.askJson[index1].img"
  8899. :src="askJson.askJson[index1].img"
  8900. style="height: 300px; margin-top: 10px; max-width: 100%"
  8901. />
  8902. </div>
  8903. <div class="a_add_body">
  8904. <div class="a_add_input">
  8905. <el-radio-group
  8906. v-model="radio[index1]"
  8907. v-if="
  8908. askJson.askJson[index1].type == '1' ||
  8909. !askJson.askJson[index1].type
  8910. "
  8911. >
  8912. <el-radio
  8913. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8914. .checkList"
  8915. :key="checkIndex"
  8916. :label="checkIndex"
  8917. :disabled="isAnswer"
  8918. class="redioStyle"
  8919. ><span v-html="item2"></span
  8920. ></el-radio>
  8921. </el-radio-group>
  8922. <el-checkbox-group
  8923. v-model="radio[index1]"
  8924. v-if="askJson.askJson[index1].type == '2'"
  8925. >
  8926. <el-checkbox
  8927. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8928. .checkList"
  8929. :key="checkIndex1"
  8930. :label="checkIndex1"
  8931. :disabled="isAnswer"
  8932. class="redioStyle"
  8933. ><span v-html="item2"></span>
  8934. </el-checkbox>
  8935. </el-checkbox-group>
  8936. </div>
  8937. </div>
  8938. </div>
  8939. </div>
  8940. </div>
  8941. <span slot="footer" class="dialog-footer">
  8942. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8943. >取 消</el-button
  8944. >
  8945. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8946. >确 定</el-button
  8947. >
  8948. </span>
  8949. </el-dialog>
  8950. <el-dialog
  8951. :title="noteName != '' ? noteName : '查看问卷'"
  8952. :visible.sync="dialogVisible5Teacher"
  8953. :append-to-body="true"
  8954. width="1000px"
  8955. :before-close="handleClose"
  8956. class="dialog_diy dialog_diy3"
  8957. >
  8958. <div>
  8959. <div class="w_name">
  8960. 学生姓名:<span>{{ sStudent.student }}</span>
  8961. </div>
  8962. <div
  8963. class="a_add_title"
  8964. style="
  8965. display: flex;
  8966. flex-direction: row;
  8967. align-items: center;
  8968. justify-content: center;
  8969. "
  8970. >
  8971. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8972. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8973. </div>
  8974. <div class="a_addBox">
  8975. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8976. 题目内容
  8977. </div>
  8978. <div
  8979. class="a_add_box"
  8980. v-for="(item1, index1) in askJson.askCount"
  8981. :key="index1"
  8982. >
  8983. <div class="a_add_head">
  8984. <div style="display: flex">
  8985. <span class="askIndex">{{ index1 + 1 }}</span>
  8986. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8987. </div>
  8988. <img
  8989. v-if="askJson.askJson[index1].img"
  8990. :src="askJson.askJson[index1].img"
  8991. style="height: 300px; margin-top: 10px; max-width: 100%"
  8992. />
  8993. </div>
  8994. <div class="a_add_body">
  8995. <div class="a_add_input">
  8996. <el-radio-group
  8997. v-model="radio[index1]"
  8998. v-if="
  8999. askJson.askJson[index1].type == '1' ||
  9000. !askJson.askJson[index1].type
  9001. "
  9002. >
  9003. <el-radio
  9004. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9005. .checkList"
  9006. :key="checkIndex"
  9007. :label="checkIndex"
  9008. :disabled="isAnswer"
  9009. class="redioStyle"
  9010. ><span v-html="item2"></span
  9011. ></el-radio>
  9012. </el-radio-group>
  9013. <el-checkbox-group
  9014. v-model="radio[index1]"
  9015. v-if="askJson.askJson[index1].type == '2'"
  9016. >
  9017. <el-checkbox
  9018. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9019. .checkList"
  9020. :key="checkIndex1"
  9021. :label="checkIndex1"
  9022. :disabled="isAnswer"
  9023. class="redioStyle"
  9024. ><span v-html="item2"></span>
  9025. </el-checkbox>
  9026. </el-checkbox-group>
  9027. </div>
  9028. </div>
  9029. </div>
  9030. </div>
  9031. </div>
  9032. <span slot="footer" class="dialog-footer">
  9033. <el-button
  9034. @click="dialogVisible5Teacher = false"
  9035. v-show="noteName == ''"
  9036. >取 消</el-button
  9037. >
  9038. <el-button
  9039. type="primary"
  9040. @click="addStudentAskTeacher"
  9041. v-show="noteName == ''"
  9042. >确 定</el-button
  9043. >
  9044. </span>
  9045. </el-dialog>
  9046. <el-dialog
  9047. :title="noteName != '' ? noteName : '查看选择题'"
  9048. :visible.sync="dialogVisibleChoice"
  9049. :append-to-body="true"
  9050. width="1000px"
  9051. :before-close="handleClose"
  9052. class="dialog_diy dialog_diy3"
  9053. >
  9054. <div>
  9055. <!-- <div class="a_add_title" style="
  9056. display: flex;
  9057. flex-direction: row;
  9058. align-items: center;
  9059. justify-content: center;
  9060. ">
  9061. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9062. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9063. </div> -->
  9064. <div class="a_addBox">
  9065. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9066. 题目内容
  9067. </div>
  9068. <div
  9069. class="a_add_box"
  9070. v-for="(item1, index1) in testJson.testCount"
  9071. :key="index1"
  9072. >
  9073. <div class="a_add_head">
  9074. <div style="display: flex">
  9075. <span class="askIndex">{{ index1 + 1 }}</span>
  9076. <div
  9077. v-if="testJson.testJson[index1].type == '1'"
  9078. style="margin-right: 5px; min-width: 70px"
  9079. >
  9080. (单选题)
  9081. </div>
  9082. <div
  9083. v-if="testJson.testJson[index1].type == '2'"
  9084. style="margin-right: 5px; min-width: 70px"
  9085. >
  9086. (多选题)
  9087. </div>
  9088. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9089. </div>
  9090. <img
  9091. v-if="testJson.testJson[index1].img"
  9092. :src="testJson.testJson[index1].img"
  9093. style="height: 300px; margin-top: 10px; max-width: 100%"
  9094. />
  9095. </div>
  9096. <div
  9097. class="timuImgBox"
  9098. v-if="
  9099. testJson.testJson[index1].timuList &&
  9100. testJson.testJson[index1].timuList.length
  9101. "
  9102. >
  9103. <div
  9104. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9105. :key="tIndex"
  9106. class="timuImg"
  9107. @click.stop="previewImg(timg.src)"
  9108. >
  9109. <img :src="timg.src" alt="" />
  9110. </div>
  9111. </div>
  9112. <div class="a_add_body">
  9113. <div class="a_add_input">
  9114. <el-radio-group
  9115. v-model="radio[index1]"
  9116. v-if="testJson.testJson[index1].type == '1'"
  9117. >
  9118. <div class="radioBox">
  9119. <el-radio
  9120. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9121. .checkList"
  9122. :key="checkIndex"
  9123. :label="checkIndex"
  9124. :disabled="isAnswer"
  9125. class="redioStyle"
  9126. >
  9127. <div
  9128. style="margin-right: 10px"
  9129. v-if="item2 && item2.imgType && item2.imgType == 1"
  9130. >
  9131. <div class="inImg" @click.stop="previewImg(item2.src)">
  9132. <img :src="item2.src" alt="" />
  9133. </div>
  9134. </div>
  9135. <span v-else v-html="item2"></span>
  9136. </el-radio>
  9137. </div>
  9138. </el-radio-group>
  9139. <el-checkbox-group
  9140. v-model="radio[index1]"
  9141. v-if="testJson.testJson[index1].type == '2'"
  9142. >
  9143. <div class="radioBox">
  9144. <el-checkbox
  9145. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9146. .checkList"
  9147. :key="checkIndex"
  9148. :label="checkIndex"
  9149. :disabled="isAnswer"
  9150. class="redioStyle"
  9151. >
  9152. <div
  9153. style="margin-right: 10px"
  9154. v-if="item2 && item2.imgType && item2.imgType == 1"
  9155. >
  9156. <div class="inImg" @click.stop="previewImg(item2.src)">
  9157. <img :src="item2.src" alt="" />
  9158. </div>
  9159. </div>
  9160. <span v-else v-html="item2"></span>
  9161. </el-checkbox>
  9162. </div>
  9163. </el-checkbox-group>
  9164. </div>
  9165. </div>
  9166. </div>
  9167. </div>
  9168. </div>
  9169. <span slot="footer" class="dialog-footer">
  9170. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9171. >取 消</el-button
  9172. >
  9173. <el-button
  9174. type="primary"
  9175. @click="addStudentTest"
  9176. v-show="noteName == ''"
  9177. >确 定</el-button
  9178. >
  9179. </span>
  9180. </el-dialog>
  9181. <el-dialog
  9182. :title="noteName != '' ? noteName : '查看选择题'"
  9183. :visible.sync="dialogVisibleChoiceTeacher"
  9184. :append-to-body="true"
  9185. width="1000px"
  9186. :before-close="handleClose"
  9187. class="dialog_diy dialog_diy3"
  9188. >
  9189. <div>
  9190. <div class="w_name">
  9191. 学生姓名:<span>{{ sStudent.student }}</span>
  9192. </div>
  9193. <div class="a_addBox">
  9194. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9195. 题目内容
  9196. </div>
  9197. <div
  9198. class="a_add_box"
  9199. v-for="(item1, index1) in testJson.testCount"
  9200. :key="index1"
  9201. >
  9202. <div class="a_add_head">
  9203. <div style="display: flex">
  9204. <span class="askIndex">{{ index1 + 1 }}</span>
  9205. <div
  9206. v-if="testJson.testJson[index1].type == '1'"
  9207. style="margin-right: 5px; min-width: 70px"
  9208. >
  9209. (单选题)
  9210. </div>
  9211. <div
  9212. v-if="testJson.testJson[index1].type == '2'"
  9213. style="margin-right: 5px; min-width: 70px"
  9214. >
  9215. (多选题)
  9216. </div>
  9217. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9218. </div>
  9219. <img
  9220. v-if="testJson.testJson[index1].img"
  9221. :src="testJson.testJson[index1].img"
  9222. style="height: 300px; margin-top: 10px; max-width: 100%"
  9223. />
  9224. </div>
  9225. <div
  9226. class="timuImgBox"
  9227. v-if="
  9228. testJson.testJson[index1].timuList &&
  9229. testJson.testJson[index1].timuList.length
  9230. "
  9231. >
  9232. <div
  9233. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9234. :key="tIndex"
  9235. class="timuImg"
  9236. @click.stop="previewImg(timg.src)"
  9237. >
  9238. <img :src="timg.src" alt="" />
  9239. </div>
  9240. </div>
  9241. <div class="a_add_body">
  9242. <div class="a_add_input">
  9243. <el-radio-group
  9244. v-model="radio[index1]"
  9245. v-if="testJson.testJson[index1].type == '1'"
  9246. >
  9247. <div class="radioBox">
  9248. <el-radio
  9249. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9250. .checkList"
  9251. :key="checkIndex"
  9252. :label="checkIndex"
  9253. :disabled="isAnswer"
  9254. class="redioStyle"
  9255. >
  9256. <div
  9257. style="margin-right: 10px"
  9258. v-if="item2 && item2.imgType && item2.imgType == 1"
  9259. >
  9260. <div class="inImg" @click.stop="previewImg(item2.src)">
  9261. <img :src="item2.src" alt="" />
  9262. </div>
  9263. </div>
  9264. <span v-else v-html="item2"></span>
  9265. </el-radio>
  9266. </div>
  9267. </el-radio-group>
  9268. <el-checkbox-group
  9269. v-model="radio[index1]"
  9270. v-if="testJson.testJson[index1].type == '2'"
  9271. >
  9272. <div class="radioBox">
  9273. <el-checkbox
  9274. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9275. .checkList"
  9276. :key="checkIndex"
  9277. :label="checkIndex"
  9278. :disabled="isAnswer"
  9279. class="redioStyle"
  9280. >
  9281. <div
  9282. style="margin-right: 10px"
  9283. v-if="item2 && item2.imgType && item2.imgType == 1"
  9284. >
  9285. <div class="inImg" @click.stop="previewImg(item2.src)">
  9286. <img :src="item2.src" alt="" />
  9287. </div>
  9288. </div>
  9289. <span v-else v-html="item2"></span>
  9290. </el-checkbox>
  9291. </div>
  9292. </el-checkbox-group>
  9293. </div>
  9294. </div>
  9295. </div>
  9296. </div>
  9297. </div>
  9298. <span slot="footer" class="dialog-footer">
  9299. <el-button
  9300. @click="dialogVisibleChoiceTeacher = false"
  9301. v-show="noteName == ''"
  9302. >取 消</el-button
  9303. >
  9304. <el-button
  9305. type="primary"
  9306. @click="addStudentTestTeacher"
  9307. v-show="noteName == ''"
  9308. >确 定</el-button
  9309. >
  9310. </span>
  9311. </el-dialog>
  9312. <el-dialog
  9313. title="查看富文本"
  9314. :visible.sync="dialogVisible1"
  9315. :append-to-body="true"
  9316. width="500px"
  9317. :before-close="handleClose"
  9318. class="dialog_diy textCss"
  9319. >
  9320. <el-form style="font-size: 20px">
  9321. <el-form-item label="文本标题" class="textTitle">
  9322. <div style="font-size: 20px">{{ text.name }}</div>
  9323. </el-form-item>
  9324. <div>富文本内容</div>
  9325. <div
  9326. v-html="text.url"
  9327. style="font-size: 18px; padding: 40px 0 0 0"
  9328. ></div>
  9329. </el-form>
  9330. <span slot="footer" class="dialog-footer">
  9331. <el-button type="primary" @click="dialogVisible1 = false"
  9332. >确定</el-button
  9333. >
  9334. </span>
  9335. </el-dialog>
  9336. <el-dialog
  9337. title="文件预览"
  9338. :visible.sync="dialogVisible3"
  9339. width="50%"
  9340. :before-close="handleClose"
  9341. class="dialog_diy"
  9342. :class="{ fullStyle: full }"
  9343. >
  9344. <div slot="title" class="header-title">
  9345. <div style="color: #fff">文件预览</div>
  9346. <div style="position: absolute; top: 19px; right: 50px">
  9347. <img
  9348. src="../assets/full.png"
  9349. style="height: 16px; cursor: pointer"
  9350. alt=""
  9351. @click="fullTools"
  9352. />
  9353. </div>
  9354. </div>
  9355. <pdf
  9356. v-if="showPDF"
  9357. :pdfUrl="pptImgUrl"
  9358. style="width: 100%; height: 520px; overflow: auto"
  9359. :class="{ fullStyle: full }"
  9360. ></pdf>
  9361. <iframe
  9362. v-else
  9363. :src="pptImgUrl"
  9364. frameborder="0"
  9365. width="100%"
  9366. height="600"
  9367. :class="{ fullStyle: full }"
  9368. ></iframe>
  9369. </el-dialog>
  9370. <el-dialog
  9371. title="文件预览"
  9372. :visible.sync="dialogVisible6"
  9373. width="50%"
  9374. :before-close="handleClose"
  9375. class="dialog_diy"
  9376. >
  9377. <iframe
  9378. :src="pptImgUrl1"
  9379. frameborder="0"
  9380. width="100%"
  9381. height="600"
  9382. ></iframe>
  9383. </el-dialog>
  9384. <el-dialog
  9385. title="提示"
  9386. :visible.sync="dialogVisible4"
  9387. :append-to-body="true"
  9388. width="800px"
  9389. :before-close="handleClose"
  9390. class="dialog_diy notice"
  9391. >
  9392. <div>此功能暂未开放!</div>
  9393. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9394. </el-dialog>
  9395. <el-dialog
  9396. title="问答"
  9397. :visible.sync="answerDialogVisible"
  9398. :append-to-body="true"
  9399. width="800px"
  9400. :before-close="handleClose"
  9401. class="dialog_diy"
  9402. >
  9403. <div>
  9404. <div
  9405. style="
  9406. display: flex;
  9407. flex-wrap: nowrap;
  9408. flex-direction: column;
  9409. position: relative;
  9410. "
  9411. >
  9412. <div class="queTop" style="padding: 20px 0 20px 0">
  9413. <div class="question">
  9414. <img src="../assets/icon/question.png" alt />
  9415. </div>
  9416. <div class="queTitle">
  9417. <div style="width: 90px; min-width: 90px">提问:</div>
  9418. <div>{{ answerQ }}</div>
  9419. </div>
  9420. </div>
  9421. <div class="ediBottom">
  9422. <textarea
  9423. rows="6"
  9424. class="binfo_input"
  9425. cols
  9426. style="width: 95%; height: 120px"
  9427. v-model="questionAnswer"
  9428. ></textarea>
  9429. </div>
  9430. </div>
  9431. </div>
  9432. <div slot="footer">
  9433. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9434. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9435. </div>
  9436. </el-dialog>
  9437. <el-dialog
  9438. title="问答"
  9439. :visible.sync="answerDialogVisibleTeacher"
  9440. :append-to-body="true"
  9441. width="800px"
  9442. :before-close="handleClose"
  9443. class="dialog_diy"
  9444. >
  9445. <div>
  9446. <div class="w_name">
  9447. 学生姓名:<span>{{ sStudent.student }}</span>
  9448. </div>
  9449. <div
  9450. style="
  9451. display: flex;
  9452. flex-wrap: nowrap;
  9453. flex-direction: column;
  9454. position: relative;
  9455. "
  9456. >
  9457. <div class="queTop" style="padding: 20px 0 20px 0">
  9458. <div class="question">
  9459. <img src="../assets/icon/question.png" alt />
  9460. </div>
  9461. <div class="queTitle">
  9462. <div style="width: 90px; min-width: 90px">提问:</div>
  9463. <div>{{ answerQ }}</div>
  9464. </div>
  9465. </div>
  9466. <div class="ediBottom">
  9467. <textarea
  9468. rows="6"
  9469. class="binfo_input"
  9470. cols
  9471. style="width: 95%; height: 120px"
  9472. v-model="questionAnswer"
  9473. ></textarea>
  9474. </div>
  9475. </div>
  9476. </div>
  9477. <div slot="footer">
  9478. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9479. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9480. </div>
  9481. </el-dialog>
  9482. <el-dialog
  9483. title="倒计时"
  9484. :visible.sync="timeDialogVisible"
  9485. :append-to-body="true"
  9486. width="800px"
  9487. :before-close="handleClose"
  9488. class="dialog_diy"
  9489. >
  9490. <div>
  9491. <div style="margin-bottom: 20px; color: #999">
  9492. 提示:点击“+”或“-”修改倒计时时长。
  9493. </div>
  9494. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9495. </div>
  9496. <div slot="footer">
  9497. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9498. </div>
  9499. </el-dialog>
  9500. <el-dialog
  9501. title="权限设置"
  9502. :visible.sync="juriVisible"
  9503. :append-to-body="true"
  9504. width="400px"
  9505. :before-close="handleClose"
  9506. class="dialog_diy"
  9507. >
  9508. <div>
  9509. <div class="open_box">
  9510. <div class="switch_box">
  9511. <span>允许学生查看所有作业</span>
  9512. <el-switch
  9513. v-model="sIsOpen"
  9514. active-text=""
  9515. class="switchCss"
  9516. @change="updateSLook"
  9517. ></el-switch>
  9518. </div>
  9519. <div
  9520. class="switch_box"
  9521. v-if="
  9522. courseDetail.userid == userid ||
  9523. (courseDetail.course_teacher &&
  9524. courseDetail.course_teacher.indexOf(userid) != -1)
  9525. "
  9526. >
  9527. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9528. <span>禁止学生查看所有阶段</span>
  9529. <el-switch
  9530. v-model="IsLookOpen"
  9531. active-text=""
  9532. class="switchCss"
  9533. @change="updateLookOpen"
  9534. ></el-switch>
  9535. </div>
  9536. <div class="switch_box" v-if="courseDetail.userid == userid">
  9537. <span>开启跟随模式</span>
  9538. <el-switch
  9539. v-model="IsFollow"
  9540. active-text=""
  9541. class="switchCss"
  9542. @change="updateFollow"
  9543. ></el-switch>
  9544. </div>
  9545. </div>
  9546. </div>
  9547. <div slot="footer">
  9548. <el-button
  9549. style="background: #409efe; color: #fff"
  9550. @click="juriVisible = false"
  9551. >关 闭</el-button
  9552. >
  9553. </div>
  9554. </el-dialog>
  9555. <el-dialog
  9556. title="查看视频"
  9557. :visible.sync="videoVisible"
  9558. :append-to-body="true"
  9559. width="1000px"
  9560. :before-close="handleClose"
  9561. class="dialog_diy1"
  9562. >
  9563. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9564. <video-player
  9565. class="video-player vjs-custom-skin"
  9566. :playsinline="true"
  9567. :options="videoDetail"
  9568. @play="onPlayerPlay($event)"
  9569. style="width: 100%; height: 100%"
  9570. ></video-player>
  9571. </div>
  9572. <div slot="footer">
  9573. <el-button
  9574. style="background: #409efe; color: #fff"
  9575. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9576. >
  9577. 关 闭</el-button
  9578. >
  9579. </div>
  9580. </el-dialog>
  9581. <el-dialog
  9582. title="查看详情"
  9583. :visible.sync="commentDialogVisible"
  9584. :append-to-body="true"
  9585. width="800px"
  9586. :before-close="handleClose"
  9587. class="dialog_diy"
  9588. >
  9589. <div class="commentTop">
  9590. <div class="studentDetail">
  9591. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9592. <div class="nameAndTime">
  9593. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9594. <div>{{ commentDetail.time }}</div>
  9595. </div>
  9596. <div
  9597. class="returnBtn"
  9598. style="margin-left: auto; width: 80px"
  9599. v-if="
  9600. commentDetail.works &&
  9601. commentDetail.type == 0 &&
  9602. (tType == 1 || tType == 4)
  9603. "
  9604. @click="
  9605. showPicturePaint(
  9606. commentDetail.img ? commentDetail.img : commentDetail.works
  9607. )
  9608. "
  9609. >
  9610. 教师批注
  9611. </div>
  9612. </div>
  9613. <div
  9614. class="worksAnswer"
  9615. v-if="commentDetail.works && commentDetail.type == 2"
  9616. >
  9617. {{ JSON.parse(commentDetail.works)[0].answer }}
  9618. </div>
  9619. <div
  9620. class="worksAnswer"
  9621. v-if="commentDetail.works && commentDetail.type == 1"
  9622. >
  9623. <img
  9624. src="../assets/teacherWork.png"
  9625. v-if="commentDetail.ateacher"
  9626. class="w_teachert"
  9627. />
  9628. <pdf
  9629. v-if="showPDF"
  9630. :pdfUrl="pptImgUrl"
  9631. style="width: 100%; height: 520px; overflow: auto"
  9632. :class="{ fullStyle: full }"
  9633. ></pdf>
  9634. <iframe
  9635. v-else
  9636. :src="pptImgUrl"
  9637. frameborder="0"
  9638. width="100%"
  9639. height="600"
  9640. :class="{ fullStyle: full }"
  9641. ></iframe>
  9642. </div>
  9643. <div
  9644. class="worksAnswer"
  9645. v-if="commentDetail.works && commentDetail.type == 0"
  9646. >
  9647. <img
  9648. src="../assets/teacherWork.png"
  9649. v-if="commentDetail.ateacher"
  9650. class="w_teachert"
  9651. style="right: 105px"
  9652. />
  9653. <img
  9654. :src="commentDetail.works"
  9655. alt=""
  9656. @click="previewImg(commentDetail.works)"
  9657. />
  9658. </div>
  9659. <div
  9660. class="worksAnswer"
  9661. v-if="commentDetail.works && commentDetail.type == 3"
  9662. >
  9663. <img
  9664. src="../assets/teacherWork.png"
  9665. v-if="commentDetail.ateacher"
  9666. class="w_teachert"
  9667. />
  9668. <video-player
  9669. class="video-player vjs-custom-skin"
  9670. :playsinline="true"
  9671. :options="videoDetail"
  9672. @play="onPlayerPlay($event)"
  9673. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9674. ></video-player>
  9675. </div>
  9676. <div
  9677. class="worksAnswer"
  9678. v-if="commentDetail.works && commentDetail.type == 10"
  9679. >
  9680. <div class="cont" v-html="commentDetail.works.text"></div>
  9681. </div>
  9682. <div
  9683. class="worksAnswer codeFileBox"
  9684. v-if="commentDetail.works && commentDetail.type == 12"
  9685. @click="downloadFile(commentDetail.works)"
  9686. >
  9687. <img src="../assets/icon/codeFile.png" />
  9688. <div>点击下载文件</div>
  9689. </div>
  9690. <div
  9691. class="worksAnswer codeFileBox"
  9692. v-if="commentDetail.works && commentDetail.type == 15"
  9693. @click="
  9694. openCocoPi(
  9695. 57,
  9696. commentIndexJson.toolIndex,
  9697. commentDetail.userid,
  9698. commentDetail.sName
  9699. )
  9700. "
  9701. >
  9702. <img src="../assets/icon/codeFile.png" />
  9703. <div>点击打开CocoPi</div>
  9704. </div>
  9705. <div
  9706. class="worksAnswer"
  9707. v-if="commentDetail.works && commentDetail.type == 13"
  9708. >
  9709. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9710. </div>
  9711. <div
  9712. class="worksAnswer"
  9713. v-if="commentDetail.works && commentDetail.type == 4"
  9714. >
  9715. <div class="evalCss">
  9716. <div class="nav">请选择星星进行评分</div>
  9717. <div class="middleBox" v-if="eScore.eStar">
  9718. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9719. <div class="nameAndrate">
  9720. <div>{{ e.value }}</div>
  9721. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9722. </div>
  9723. <div v-if="e.detail">{{ e.detail }}</div>
  9724. </div>
  9725. <div class="bz">
  9726. <textarea
  9727. disabled
  9728. rows="4"
  9729. class="pj"
  9730. style="
  9731. padding: 10px 5px;
  9732. width: 70%;
  9733. background: #f7f6f9;
  9734. font-size: 14px;
  9735. text-indent: 10px;
  9736. color: #000;
  9737. "
  9738. cols
  9739. v-model="eScore.eBzText"
  9740. placeholder="请输入评价内容..."
  9741. ></textarea>
  9742. </div>
  9743. </div>
  9744. </div>
  9745. </div>
  9746. <div class="comment">
  9747. <div class="commentList">
  9748. <div class="commentImg">
  9749. <img
  9750. @click="
  9751. isLikes(
  9752. commentDetail.wid,
  9753. userid,
  9754. 1,
  9755. null,
  9756. commentDetail.isLikes
  9757. )
  9758. "
  9759. :src="commentDetail.isLikes == true ? likes : noLikes"
  9760. alt=""
  9761. />
  9762. </div>
  9763. <div>{{ commentDetail.likesCount }}</div>
  9764. </div>
  9765. <div class="commentList">
  9766. <div class="commentImg">
  9767. <img src="../assets/icon/comment/comment.png" alt="" />
  9768. </div>
  9769. <div>{{ commentDetail.commentCount }}</div>
  9770. </div>
  9771. </div>
  9772. <div class="drawPBox" v-if="commentDetail.img">
  9773. <span>教师批注</span>
  9774. <img
  9775. :src="commentDetail.img"
  9776. alt=""
  9777. @click="previewImg(commentDetail.img)"
  9778. />
  9779. <span
  9780. class="deleteImg"
  9781. v-if="tType == 1 || tType == 4"
  9782. @click.stop="deletePicturePaint(commentDetail.wid)"
  9783. style="
  9784. font-size: 14px;
  9785. width: auto !important;
  9786. color: #b4b4b4;
  9787. top: unset;
  9788. bottom: 0;
  9789. border: none;
  9790. padding: 0;
  9791. height: auto !important;
  9792. margin: 0;
  9793. "
  9794. >删除</span
  9795. >
  9796. </div>
  9797. </div>
  9798. <div class="commentBox">
  9799. <div class="pl">评论:</div>
  9800. <div style="max-height: 200px; overflow: auto">
  9801. <div
  9802. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9803. style="padding: 10px 0 0 0"
  9804. >
  9805. <div
  9806. class="studentDetail"
  9807. style="padding-top: 10px"
  9808. v-for="(co, coIndex) in commentDetail.commentJson"
  9809. :key="coIndex"
  9810. >
  9811. <div class="tx" style="min-width: 50px">
  9812. <img src="../assets/avatar.png" alt="" />
  9813. </div>
  9814. <div class="plPerson">
  9815. <div class="plName">
  9816. <div>{{ co.commentPeople }}</div>
  9817. <div style="margin-left: 5px">
  9818. {{ co.commentTime }}
  9819. </div>
  9820. <div
  9821. class="deleteComment"
  9822. v-if="userid == co.userid"
  9823. @click="deleteComment(co.wid)"
  9824. >
  9825. 删除
  9826. </div>
  9827. </div>
  9828. <div class="plContent">{{ co.commentText }}</div>
  9829. </div>
  9830. </div>
  9831. </div>
  9832. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9833. </div>
  9834. </div>
  9835. <div style="margin-top: 10px">
  9836. <div class="displayBox">
  9837. <div
  9838. style="
  9839. color: #556db4;
  9840. font-size: 14px;
  9841. font-weight: bold;
  9842. padding-bottom: 10px;
  9843. "
  9844. >
  9845. 评价
  9846. </div>
  9847. <div class="easy_comment" v-if="false">
  9848. <div
  9849. v-for="(p, pIndex) in PlTextList"
  9850. :key="pIndex"
  9851. @click="fastText(p, 1)"
  9852. >
  9853. {{ p }}
  9854. </div>
  9855. </div>
  9856. </div>
  9857. <div>
  9858. <textarea
  9859. rows="3"
  9860. class="pj"
  9861. style="padding: 10px 5px"
  9862. cols
  9863. v-model="commentText"
  9864. placeholder="请输入评论"
  9865. ></textarea>
  9866. </div>
  9867. </div>
  9868. <div slot="footer">
  9869. <el-button
  9870. @click="
  9871. (commentDialogVisible = false),
  9872. (commentIndexJson = {}),
  9873. videoDetail.sources && videoDetail.sources[0]
  9874. ? (videoDetail.sources[0].src = '')
  9875. : ''
  9876. "
  9877. >取 消</el-button
  9878. >
  9879. <el-button
  9880. type="primary"
  9881. @click="addComment(commentDetail.wid, userid, 2)"
  9882. >确 定</el-button
  9883. >
  9884. </div>
  9885. </el-dialog>
  9886. <el-dialog
  9887. title="查看文档"
  9888. :visible.sync="fullDialogVisible"
  9889. :append-to-body="true"
  9890. width="100%"
  9891. :before-close="handleClose"
  9892. :show-close="false"
  9893. class="dialog_diy full_diy"
  9894. :class="{ full_diy2: fulltype == 3 }"
  9895. >
  9896. <div slot="title" class="header-title">
  9897. <div style="color: #fff">查看文档</div>
  9898. <div
  9899. @click="fullDialogVisible = false"
  9900. style="
  9901. cursor: pointer;
  9902. position: absolute;
  9903. top: 20px;
  9904. right: 20px;
  9905. color: #fff;
  9906. "
  9907. >
  9908. 退出全屏
  9909. </div>
  9910. </div>
  9911. <div style="height: 100%">
  9912. <div
  9913. class="wheel"
  9914. v-if="
  9915. fulltype == 2 &&
  9916. fullUrl.indexOf(
  9917. 'https://view.officeapps.live.com/op/view.aspx?src='
  9918. ) != -1
  9919. "
  9920. style="width: 95%; margin: 0 auto"
  9921. >
  9922. <iframe
  9923. style="width: 100%; height: 100%; border: none"
  9924. :src="fullUrl"
  9925. ></iframe>
  9926. </div>
  9927. <iframe
  9928. v-else-if="fulltype == 2"
  9929. style="width: 100%; height: 100%; border: none"
  9930. :src="fullUrl"
  9931. security="restricted"
  9932. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9933. ></iframe>
  9934. <pdf
  9935. v-else-if="fulltype == 3"
  9936. :pdfUrl="fullUrl"
  9937. style="width: 100%; height: 100%; overflow: auto"
  9938. ></pdf>
  9939. <div
  9940. class="wheel"
  9941. v-if="fulltype == 1"
  9942. style="
  9943. box-shadow: 0 0 6px 1px #f2f2f2;
  9944. width: 100%;
  9945. background: #f1f1f1;
  9946. "
  9947. >
  9948. <div class="title" style="width: 100%; box-sizing: border-box">
  9949. 查看文档
  9950. </div>
  9951. <el-form class="textBox" style="height: 90%">
  9952. <el-form-item class="textTitle">
  9953. <div style="font-size: 22px">
  9954. {{ fullUrl.name }}
  9955. </div>
  9956. </el-form-item>
  9957. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9958. <div
  9959. v-html="fullUrl.url"
  9960. class="textContent"
  9961. style="height: auto"
  9962. ></div>
  9963. </el-form>
  9964. </div>
  9965. </div>
  9966. <!-- <div slot="footer">
  9967. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9968. </div> -->
  9969. </el-dialog>
  9970. <el-dialog
  9971. title="个人评价"
  9972. :visible.sync="studentEvalDialogVisible"
  9973. :append-to-body="true"
  9974. width="800px"
  9975. :before-close="handleClose"
  9976. class="dialog_diy"
  9977. >
  9978. <div class="evalCss">
  9979. <div class="nav">请选择星星进行评分</div>
  9980. <div class="middleBox" v-if="eScore.eStar">
  9981. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9982. <div class="nameAndrate">
  9983. <div>{{ e.value }}</div>
  9984. <el-rate
  9985. v-model="eScore.eStar[eIndex]"
  9986. :disabled="isStar"
  9987. ></el-rate>
  9988. </div>
  9989. <div v-if="e.detail">{{ e.detail }}</div>
  9990. </div>
  9991. <div class="easy_comment" v-if="false">
  9992. <div
  9993. v-for="(p, pIndex) in PlTextList"
  9994. :key="pIndex"
  9995. @click="fastText(p, 2)"
  9996. >
  9997. {{ p }}
  9998. </div>
  9999. </div>
  10000. <div class="bz">
  10001. <textarea
  10002. :disabled="isStar"
  10003. rows="4"
  10004. class="pj"
  10005. style="
  10006. padding: 10px 5px;
  10007. width: 70%;
  10008. background: #f7f6f9;
  10009. font-size: 14px;
  10010. text-indent: 10px;
  10011. "
  10012. cols
  10013. v-model="eScore.eBzText"
  10014. placeholder="请输入评价内容..."
  10015. ></textarea>
  10016. </div>
  10017. </div>
  10018. </div>
  10019. <div slot="footer">
  10020. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10021. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10022. >确 定</el-button
  10023. >
  10024. </div>
  10025. </el-dialog>
  10026. <el-dialog
  10027. title="个人评价"
  10028. :visible.sync="studentEvalDialogVisibleTeacher"
  10029. :append-to-body="true"
  10030. width="800px"
  10031. :before-close="handleClose"
  10032. class="dialog_diy"
  10033. >
  10034. <div class="w_name">
  10035. 学生姓名:<span>{{ sStudent.student }}</span>
  10036. </div>
  10037. <div class="evalCss">
  10038. <div class="nav">请选择星星进行评分</div>
  10039. <div class="middleBox" v-if="eScore.eStar">
  10040. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10041. <div class="nameAndrate">
  10042. <div>{{ e.value }}</div>
  10043. <el-rate
  10044. v-model="eScore.eStar[eIndex]"
  10045. :disabled="isStar"
  10046. ></el-rate>
  10047. </div>
  10048. <div v-if="e.detail">{{ e.detail }}</div>
  10049. </div>
  10050. <div class="easy_comment" v-if="false">
  10051. <div
  10052. v-for="(p, pIndex) in PlTextList"
  10053. :key="pIndex"
  10054. @click="fastText(p, 2)"
  10055. >
  10056. {{ p }}
  10057. </div>
  10058. </div>
  10059. <div class="bz">
  10060. <textarea
  10061. :disabled="isStar"
  10062. rows="4"
  10063. class="pj"
  10064. style="
  10065. padding: 10px 5px;
  10066. width: 70%;
  10067. background: #f7f6f9;
  10068. font-size: 14px;
  10069. text-indent: 10px;
  10070. "
  10071. cols
  10072. v-model="eScore.eBzText"
  10073. placeholder="请输入评价内容..."
  10074. ></textarea>
  10075. </div>
  10076. </div>
  10077. </div>
  10078. <div slot="footer">
  10079. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10080. >取 消</el-button
  10081. >
  10082. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10083. >确 定</el-button
  10084. >
  10085. </div>
  10086. </el-dialog>
  10087. <el-dialog
  10088. title="选择匹配"
  10089. :visible.sync="dialogVisibleSelect"
  10090. :append-to-body="true"
  10091. width="90%"
  10092. :before-close="handleClose"
  10093. class="dialog_diy dialog_diy3"
  10094. >
  10095. <div v-if="selectJson">
  10096. <div class="select_box2">
  10097. <div class="select_box2_title">
  10098. <div>选择匹配</div>
  10099. <div>请选择对应的答案进行答题!</div>
  10100. </div>
  10101. <div class="select_box2_box">
  10102. <div class="select_box2_img">
  10103. <img
  10104. :src="selectJson.url"
  10105. @click="previewImg(selectJson.url)"
  10106. alt=""
  10107. />
  10108. </div>
  10109. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10110. <div style="padding-top: 15px">
  10111. <div class="select_answer_title" v-if="isSelect">
  10112. {{ selectAnswer.stu }}
  10113. </div>
  10114. <div class="select_answer_title" v-else>
  10115. 根据题目选择对应答案
  10116. </div>
  10117. <div
  10118. class="select_box2_answer_box"
  10119. v-for="(item2, checkIndex) in selectJson.select"
  10120. :key="checkIndex"
  10121. >
  10122. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10123. <el-select
  10124. :disabled="isSelect"
  10125. v-model="selectAnswer.answer[checkIndex]"
  10126. placeholder="请选择正确答案"
  10127. >
  10128. <el-option
  10129. v-for="(e, eIndex) in selectJson.select"
  10130. :key="eIndex"
  10131. :label="e"
  10132. :value="eIndex"
  10133. >
  10134. </el-option>
  10135. </el-select>
  10136. </div>
  10137. </div>
  10138. <div
  10139. class="rightAnswerCss"
  10140. v-if="isSelect && (tType == 1 || tType == 4)"
  10141. >
  10142. <div
  10143. v-for="(a, aIndex) in selectJson.answer"
  10144. :key="aIndex"
  10145. class="rightAnswer"
  10146. >
  10147. <div
  10148. v-if="selectAnswer.answer[aIndex] === a"
  10149. style="color: #767de1"
  10150. >
  10151. 回答正确
  10152. </div>
  10153. <div v-else>回答错误</div>
  10154. <div
  10155. style="margin-left: 10px"
  10156. v-if="selectAnswer.answer[aIndex] !== a"
  10157. >
  10158. 正确答案:
  10159. </div>
  10160. <div
  10161. :class="
  10162. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10163. "
  10164. >
  10165. {{ selectJson.select[a] }}
  10166. </div>
  10167. </div>
  10168. </div>
  10169. </div>
  10170. <div class="upAnswerCss">
  10171. <el-button
  10172. type="primary"
  10173. @click="addSelectAnswer"
  10174. v-if="!isSelect"
  10175. >提交答案</el-button
  10176. >
  10177. </div>
  10178. </div>
  10179. </div>
  10180. </div>
  10181. </el-dialog>
  10182. <el-dialog
  10183. title="选择匹配"
  10184. :visible.sync="dialogVisibleSelectTeacher"
  10185. :append-to-body="true"
  10186. width="90%"
  10187. :before-close="handleClose"
  10188. class="dialog_diy dialog_diy3"
  10189. >
  10190. <div v-if="selectJson">
  10191. <div class="w_name">
  10192. 学生姓名:<span>{{ sStudent.student }}</span>
  10193. </div>
  10194. <div class="select_box2">
  10195. <div class="select_box2_title">
  10196. <div>选择匹配</div>
  10197. <div>请选择对应的答案进行答题!</div>
  10198. </div>
  10199. <div class="select_box2_box">
  10200. <div class="select_box2_img">
  10201. <img
  10202. :src="selectJson.url"
  10203. @click="previewImg(selectJson.url)"
  10204. alt=""
  10205. />
  10206. </div>
  10207. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10208. <div style="padding-top: 15px">
  10209. <div class="select_answer_title" v-if="isSelect">
  10210. {{ selectAnswer.stu }}
  10211. </div>
  10212. <div class="select_answer_title" v-else>
  10213. 根据题目选择对应答案
  10214. </div>
  10215. <div
  10216. class="select_box2_answer_box"
  10217. v-for="(item2, checkIndex) in selectJson.select"
  10218. :key="checkIndex"
  10219. >
  10220. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10221. <el-select
  10222. :disabled="isSelect"
  10223. v-model="selectAnswer.answer[checkIndex]"
  10224. placeholder="请选择正确答案"
  10225. >
  10226. <el-option
  10227. v-for="(e, eIndex) in selectJson.select"
  10228. :key="eIndex"
  10229. :label="e"
  10230. :value="eIndex"
  10231. >
  10232. </el-option>
  10233. </el-select>
  10234. </div>
  10235. </div>
  10236. <div
  10237. class="rightAnswerCss"
  10238. v-if="isSelect && (tType == 1 || tType == 4)"
  10239. >
  10240. <div
  10241. v-for="(a, aIndex) in selectJson.answer"
  10242. :key="aIndex"
  10243. class="rightAnswer"
  10244. >
  10245. <div
  10246. v-if="selectAnswer.answer[aIndex] === a"
  10247. style="color: #767de1"
  10248. >
  10249. 回答正确
  10250. </div>
  10251. <div v-else>回答错误</div>
  10252. <div
  10253. style="margin-left: 10px"
  10254. v-if="selectAnswer.answer[aIndex] !== a"
  10255. >
  10256. 正确答案:
  10257. </div>
  10258. <div
  10259. :class="
  10260. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10261. "
  10262. >
  10263. {{ selectJson.select[a] }}
  10264. </div>
  10265. </div>
  10266. </div>
  10267. </div>
  10268. <div class="upAnswerCss">
  10269. <el-button
  10270. type="primary"
  10271. @click="addSelectAnswerTeacher"
  10272. v-if="!isSelect"
  10273. >提交答案</el-button
  10274. >
  10275. </div>
  10276. </div>
  10277. </div>
  10278. </div>
  10279. </el-dialog>
  10280. <el-dialog
  10281. title="教师评分"
  10282. :visible.sync="dialogVisibleScore"
  10283. :append-to-body="true"
  10284. width="800px"
  10285. :before-close="handleClose"
  10286. class="dialog_diy"
  10287. >
  10288. <div>
  10289. <div class="studentDetail">
  10290. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10291. <div class="nameAndTime">
  10292. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10293. <div>{{ commentDetail.time }}</div>
  10294. </div>
  10295. </div>
  10296. <div
  10297. class="worksAnswer"
  10298. v-if="commentDetail.works && commentDetail.type == 2"
  10299. >
  10300. {{ JSON.parse(commentDetail.works)[0].answer }}
  10301. </div>
  10302. <div
  10303. class="worksAnswer"
  10304. v-if="commentDetail.works && commentDetail.type == 1"
  10305. >
  10306. <pdf
  10307. v-if="showPDF"
  10308. :pdfUrl="pptImgUrl"
  10309. style="width: 100%; height: 520px; overflow: auto"
  10310. :class="{ fullStyle: full }"
  10311. ></pdf>
  10312. <iframe
  10313. v-else
  10314. :src="pptImgUrl"
  10315. frameborder="0"
  10316. width="100%"
  10317. height="600"
  10318. :class="{ fullStyle: full }"
  10319. ></iframe>
  10320. </div>
  10321. <div
  10322. class="worksAnswer"
  10323. v-if="commentDetail.works && commentDetail.type == 0"
  10324. >
  10325. <img
  10326. :src="commentDetail.works"
  10327. alt=""
  10328. @click="previewImg(commentDetail.works)"
  10329. />
  10330. </div>
  10331. <div
  10332. class="worksAnswer"
  10333. v-if="commentDetail.works && commentDetail.type == 3"
  10334. >
  10335. <video-player
  10336. class="video-player vjs-custom-skin"
  10337. :playsinline="true"
  10338. :options="videoDetail"
  10339. @play="onPlayerPlay($event)"
  10340. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10341. ></video-player>
  10342. </div>
  10343. <div
  10344. class="worksAnswer codeFileBox"
  10345. v-if="commentDetail.works && commentDetail.type == 12"
  10346. @click="downloadFile(commentDetail.works)"
  10347. >
  10348. <img src="../assets/icon/codeFile.png" />
  10349. <div>点击下载文件</div>
  10350. </div>
  10351. <div
  10352. class="worksAnswer codeFileBox"
  10353. v-if="commentDetail.works && commentDetail.type == 15"
  10354. @click="
  10355. openCocoPi(
  10356. 57,
  10357. commentIndexJson.toolIndex,
  10358. commentDetail.userid,
  10359. commentDetail.sName
  10360. )
  10361. "
  10362. >
  10363. <img src="../assets/icon/codeFile.png" />
  10364. <div>点击打开CocoPi</div>
  10365. </div>
  10366. <div
  10367. class="worksAnswer"
  10368. v-if="commentDetail.works && commentDetail.type == 13"
  10369. >
  10370. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10371. </div>
  10372. <div class="scoreBox">
  10373. <span class="t">请输入分数</span>
  10374. <el-input-number
  10375. :disabled="courseDetail.userid != userid"
  10376. v-model="wScore"
  10377. :controls="false"
  10378. :min="0"
  10379. :max="100"
  10380. ></el-input-number>
  10381. </div>
  10382. <div class="scoreDetailBox">
  10383. <span class="t">评分评论</span>
  10384. <el-input
  10385. type="textarea"
  10386. :rows="5"
  10387. :disabled="courseDetail.userid != userid"
  10388. resize="none"
  10389. v-model="scoreDetail"
  10390. placeholder="请输入对学生的评价"
  10391. >
  10392. </el-input>
  10393. </div>
  10394. </div>
  10395. <span slot="footer" class="dialog-footer">
  10396. <el-button
  10397. @click="
  10398. (dialogVisibleScore = false),
  10399. (commentIndexJson = {}),
  10400. videoDetail.sources && videoDetail.sources[0]
  10401. ? (videoDetail.sources[0].src = '')
  10402. : ''
  10403. "
  10404. >取 消</el-button
  10405. >
  10406. <el-button
  10407. type="primary"
  10408. v-if="courseDetail.userid == userid"
  10409. @click="scoreWork(commentDetail.wid)"
  10410. >确 定
  10411. </el-button>
  10412. </span>
  10413. </el-dialog>
  10414. <el-dialog
  10415. title="排序"
  10416. :visible.sync="dialogVisibleSentence"
  10417. :append-to-body="true"
  10418. width="1000px"
  10419. :before-close="handleClose"
  10420. class="dialog_diy dialog_diy3"
  10421. >
  10422. <div>
  10423. <div class="sentenBox">
  10424. <div
  10425. v-for="(st, stIndex) in sentenceList"
  10426. :key="stIndex"
  10427. style="padding-bottom: 20px"
  10428. >
  10429. <div
  10430. style="padding: 15px 0 10px 20px"
  10431. class="sentenceTitle"
  10432. :index="stIndex + 1"
  10433. >
  10434. 题目{{ stIndex + 1 }}:请选择正确顺序
  10435. </div>
  10436. <div class="cardList" v-if="st.chooseSenList">
  10437. <div class="cardBox">
  10438. <div
  10439. v-for="(r, rIndex) in st.chooseSenList"
  10440. :key="rIndex"
  10441. @click="returnCard(r, stIndex, rIndex)"
  10442. >
  10443. <el-tooltip
  10444. class="item"
  10445. effect="light"
  10446. :content="r"
  10447. placement="top"
  10448. v-if="r != '' && r != undefined"
  10449. >
  10450. <div
  10451. :class="{
  10452. isCard: r,
  10453. isChooseCard: r == '' || r == undefined,
  10454. }"
  10455. >
  10456. <div>{{ r }}</div>
  10457. </div>
  10458. </el-tooltip>
  10459. <div
  10460. :class="{
  10461. isCard: r,
  10462. isChooseCard: r == '' || r == undefined,
  10463. }"
  10464. v-else
  10465. >
  10466. <div>{{ r }}</div>
  10467. </div>
  10468. </div>
  10469. </div>
  10470. </div>
  10471. <div class="cardList" v-if="st.addChangeSen">
  10472. <div class="cardBox">
  10473. <div
  10474. v-for="(s, sIndex) in st.addChangeSen"
  10475. :key="sIndex"
  10476. @click="setRightAnswer(s, stIndex, sIndex)"
  10477. >
  10478. <el-tooltip
  10479. class="item"
  10480. effect="light"
  10481. :content="s"
  10482. placement="top"
  10483. v-if="s != '' && s != undefined"
  10484. >
  10485. <div
  10486. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10487. >
  10488. <div>{{ s }}</div>
  10489. </div>
  10490. </el-tooltip>
  10491. <div
  10492. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10493. v-else
  10494. >
  10495. <div>{{ s }}</div>
  10496. </div>
  10497. </div>
  10498. </div>
  10499. </div>
  10500. </div>
  10501. </div>
  10502. </div>
  10503. <span slot="footer" class="dialog-footer">
  10504. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10505. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10506. </span>
  10507. </el-dialog>
  10508. <el-dialog
  10509. title="排序"
  10510. :visible.sync="dialogVisibleSentenceTeacher"
  10511. :append-to-body="true"
  10512. width="1000px"
  10513. :before-close="handleClose"
  10514. class="dialog_diy dialog_diy3"
  10515. >
  10516. <div>
  10517. <div class="w_name">
  10518. 学生姓名:<span>{{ sStudent.student }}</span>
  10519. </div>
  10520. <div class="sentenBox">
  10521. <div
  10522. v-for="(st, stIndex) in sentenceList"
  10523. :key="stIndex"
  10524. style="padding-bottom: 20px"
  10525. >
  10526. <div
  10527. style="padding: 15px 0 10px 20px"
  10528. class="sentenceTitle"
  10529. :index="stIndex + 1"
  10530. >
  10531. 题目{{ stIndex + 1 }}:请选择正确顺序
  10532. </div>
  10533. <div class="cardList" v-if="st.chooseSenList">
  10534. <div class="cardBox">
  10535. <div
  10536. v-for="(r, rIndex) in st.chooseSenList"
  10537. :key="rIndex"
  10538. @click="returnCard(r, stIndex, rIndex)"
  10539. >
  10540. <el-tooltip
  10541. class="item"
  10542. effect="light"
  10543. :content="r"
  10544. placement="top"
  10545. v-if="r != '' && r != undefined"
  10546. >
  10547. <div
  10548. :class="{
  10549. isCard: r,
  10550. isChooseCard: r == '' || r == undefined,
  10551. }"
  10552. >
  10553. <div>{{ r }}</div>
  10554. </div>
  10555. </el-tooltip>
  10556. <div
  10557. :class="{
  10558. isCard: r,
  10559. isChooseCard: r == '' || r == undefined,
  10560. }"
  10561. v-else
  10562. >
  10563. <div>{{ r }}</div>
  10564. </div>
  10565. </div>
  10566. </div>
  10567. </div>
  10568. <div class="cardList" v-if="st.addChangeSen">
  10569. <div class="cardBox">
  10570. <div
  10571. v-for="(s, sIndex) in st.addChangeSen"
  10572. :key="sIndex"
  10573. @click="setRightAnswer(s, stIndex, sIndex)"
  10574. >
  10575. <el-tooltip
  10576. class="item"
  10577. effect="light"
  10578. :content="s"
  10579. placement="top"
  10580. v-if="s != '' && s != undefined"
  10581. >
  10582. <div
  10583. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10584. >
  10585. <div>{{ s }}</div>
  10586. </div>
  10587. </el-tooltip>
  10588. <div
  10589. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10590. v-else
  10591. >
  10592. <div>{{ s }}</div>
  10593. </div>
  10594. </div>
  10595. </div>
  10596. </div>
  10597. </div>
  10598. </div>
  10599. </div>
  10600. <span slot="footer" class="dialog-footer">
  10601. <el-button @click="dialogVisibleSentenceTeacher = false"
  10602. >取 消</el-button
  10603. >
  10604. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10605. </span>
  10606. </el-dialog>
  10607. <el-dialog
  10608. title="排序"
  10609. :visible.sync="dialogVisibleSentence1"
  10610. :append-to-body="true"
  10611. width="1000px"
  10612. :before-close="handleClose"
  10613. class="dialog_diy dialog_diy3"
  10614. >
  10615. <div>
  10616. <div class="sentenBox">
  10617. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10618. {{ sentenceList1.stuName }}的作业
  10619. </div>
  10620. <div
  10621. v-for="(st, stIndex) in sentenceList1"
  10622. :key="stIndex"
  10623. style="padding-bottom: 20px"
  10624. >
  10625. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10626. 第{{ stIndex + 1 }}题
  10627. </div>
  10628. <div class="isWrong">
  10629. <div class="cardList1" v-if="st.chooseSenList">
  10630. <div class="cardBox">
  10631. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10632. <el-tooltip
  10633. class="item"
  10634. effect="light"
  10635. :content="s"
  10636. placement="top"
  10637. >
  10638. <div class="isCard">
  10639. <div>{{ s }}</div>
  10640. </div>
  10641. </el-tooltip>
  10642. </div>
  10643. </div>
  10644. <div class="cardAnswerBox">
  10645. 组成句子:{{ st.chooseSenList.join(" ") }}
  10646. </div>
  10647. </div>
  10648. <div v-if="tType == 2" class="isTj">
  10649. <div class="isTjImg">
  10650. <img src="../assets/icon/conSentences/right.png" alt="" />
  10651. </div>
  10652. <div>已提交</div>
  10653. </div>
  10654. <div
  10655. class="answerRight isTj"
  10656. v-if="
  10657. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10658. (tType == 1 || tType == 4)
  10659. "
  10660. >
  10661. <div class="isTjImg">
  10662. <img src="../assets/icon/conSentences/right.png" alt="" />
  10663. </div>
  10664. <div>回答正确</div>
  10665. </div>
  10666. <div
  10667. class="answerRight isTj"
  10668. v-if="
  10669. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10670. (tType == 1 || tType == 4)
  10671. "
  10672. >
  10673. <div class="isTjImg">
  10674. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10675. </div>
  10676. <div>回答错误</div>
  10677. </div>
  10678. </div>
  10679. <div
  10680. v-if="
  10681. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10682. (tType == 1 || tType == 4)
  10683. "
  10684. >
  10685. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10686. <div
  10687. class="cardList"
  10688. v-if="st.rightAnswer"
  10689. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10690. >
  10691. <div class="cardBox">
  10692. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10693. <el-tooltip
  10694. class="item"
  10695. effect="light"
  10696. :content="r"
  10697. placement="top"
  10698. >
  10699. <div class="isCard1">
  10700. <div>{{ r }}</div>
  10701. </div>
  10702. </el-tooltip>
  10703. </div>
  10704. </div>
  10705. <div class="cardAnswerBox">
  10706. 组成句子:{{ st.rightAnswer.join(" ") }}
  10707. </div>
  10708. </div>
  10709. </div>
  10710. </div>
  10711. </div>
  10712. </div>
  10713. <span slot="footer" class="dialog-footer">
  10714. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10715. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10716. >确 定</el-button
  10717. >
  10718. </span>
  10719. </el-dialog>
  10720. <el-dialog
  10721. title="教师提交作业"
  10722. :visible.sync="dialogVisibleWorks"
  10723. :append-to-body="true"
  10724. width="500px"
  10725. :before-close="handleClose"
  10726. class="dialog_change"
  10727. >
  10728. <div class="marginT">
  10729. <div class="w_name">
  10730. 学生姓名:<span>{{ sStudent.student }}</span>
  10731. </div>
  10732. <div>上传文件</div>
  10733. <div
  10734. class="chapter_add"
  10735. @click="addImg($event)"
  10736. v-if="studyJuri[0].cover.length == 0"
  10737. >
  10738. <div class="up_photo">
  10739. <img src="../assets/uploadImg2.png" alt />
  10740. </div>
  10741. <!-- <input
  10742. type="file"
  10743. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10744. style="display: none"
  10745. @change="beforeUpload1($event, 1)"
  10746. /> -->
  10747. <input
  10748. type="file"
  10749. accept="*"
  10750. style="display: none"
  10751. @change="beforeUpload1($event, 1)"
  10752. />
  10753. </div>
  10754. <!-- capture="camera" -->
  10755. <div
  10756. class="chapter_add"
  10757. style="
  10758. display: flex;
  10759. width: 100%;
  10760. flex-direction: row;
  10761. flex-wrap: wrap;
  10762. justify-content: flex-start;
  10763. padding: 15px 0;
  10764. "
  10765. v-if="studyJuri[0].cover.length > 0"
  10766. >
  10767. <div class="upCover">
  10768. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10769. <img :src="word" alt v-else-if="fileType == 1" />
  10770. <img :src="video" alt v-else-if="fileType == 2" />
  10771. <img :src="word2" alt v-else-if="fileType == 3" />
  10772. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10773. <div class="deleteWord" @click="clean(1)">
  10774. <img src="../assets/icon/deleteWorks.png" alt />
  10775. </div>
  10776. </div>
  10777. </div>
  10778. </div>
  10779. <div
  10780. class="upload_send"
  10781. @click="addCourseWorksTeacher(taskCount)"
  10782. v-if="!proVisible"
  10783. >
  10784. 提交
  10785. </div>
  10786. </el-dialog>
  10787. <ImgDraw
  10788. :drawShow="drawShow"
  10789. @closeDraw="closeDraw"
  10790. @addImgDraw="addImgDraw"
  10791. :bg="bg"
  10792. ></ImgDraw>
  10793. <el-dialog
  10794. title="表格"
  10795. :visible.sync="dialogVisibleTable"
  10796. :append-to-body="true"
  10797. width="95%"
  10798. :before-close="handleClose"
  10799. class="dialog_diy"
  10800. >
  10801. <el-form>
  10802. <div
  10803. style="
  10804. display: flex;
  10805. align-items: center;
  10806. justify-content: space-between;
  10807. "
  10808. >
  10809. <span>表格内容</span>
  10810. <el-button type="primary" size="small" @click="returnTableText"
  10811. >还原模板</el-button
  10812. >
  10813. </div>
  10814. <Table
  10815. v-model="tableJson.text"
  10816. @change="change"
  10817. v-if="dialogVisibleTable"
  10818. ></Table>
  10819. </el-form>
  10820. <span slot="footer" class="dialog-footer">
  10821. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10822. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10823. </span>
  10824. </el-dialog>
  10825. <el-dialog
  10826. title="表格"
  10827. :visible.sync="dialogVisibleTableTeacher"
  10828. :append-to-body="true"
  10829. width="95%"
  10830. :before-close="handleClose"
  10831. class="dialog_diy"
  10832. >
  10833. <el-form>
  10834. <div class="w_name">
  10835. 学生姓名:<span>{{ sStudent.student }}</span>
  10836. </div>
  10837. <div>表格内容</div>
  10838. <Table
  10839. v-model="tableJson.text"
  10840. @change="change"
  10841. v-if="dialogVisibleTableTeacher"
  10842. ></Table>
  10843. </el-form>
  10844. <span slot="footer" class="dialog-footer">
  10845. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10846. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10847. </span>
  10848. </el-dialog>
  10849. <el-dialog
  10850. title="文档"
  10851. :visible.sync="dialogVisibleWord"
  10852. :append-to-body="true"
  10853. width="95%"
  10854. :before-close="handleClose"
  10855. class="dialog_diy"
  10856. >
  10857. <el-form>
  10858. <div
  10859. style="
  10860. display: flex;
  10861. align-items: center;
  10862. justify-content: space-between;
  10863. "
  10864. >
  10865. <span>文档内容</span>
  10866. <el-button type="primary" size="small" @click="returnWordText"
  10867. >还原模板</el-button
  10868. >
  10869. </div>
  10870. <editor-bar
  10871. v-model="wordJson.text"
  10872. v-if="dialogVisibleWord"
  10873. ></editor-bar>
  10874. </el-form>
  10875. <span slot="footer" class="dialog-footer">
  10876. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10877. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10878. </span>
  10879. </el-dialog>
  10880. <el-dialog
  10881. title="文档"
  10882. :visible.sync="dialogVisibleWordTeacher"
  10883. :append-to-body="true"
  10884. width="95%"
  10885. :before-close="handleClose"
  10886. class="dialog_diy"
  10887. >
  10888. <el-form>
  10889. <div class="w_name">
  10890. 学生姓名:<span>{{ sStudent.student }}</span>
  10891. </div>
  10892. <div>文档内容</div>
  10893. <editor-bar
  10894. v-model="wordJson.text"
  10895. v-if="dialogVisibleWordTeacher"
  10896. ></editor-bar>
  10897. </el-form>
  10898. <span slot="footer" class="dialog-footer">
  10899. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10900. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10901. </span>
  10902. </el-dialog>
  10903. <el-dialog
  10904. title="表格"
  10905. :visible.sync="dialogVisibleTable2"
  10906. :append-to-body="true"
  10907. width="95%"
  10908. :before-close="handleClose"
  10909. class="dialog_diy"
  10910. >
  10911. <el-form>
  10912. <div class="cont" v-html="tableJson.text"></div>
  10913. </el-form>
  10914. <span slot="footer" class="dialog-footer">
  10915. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10916. </span>
  10917. </el-dialog>
  10918. <el-dialog
  10919. title="文档"
  10920. :visible.sync="dialogVisibleTable3"
  10921. :append-to-body="true"
  10922. width="95%"
  10923. :before-close="handleClose"
  10924. class="dialog_diy"
  10925. >
  10926. <el-form>
  10927. <div class="cont" v-html="tableJson.text"></div>
  10928. </el-form>
  10929. <span slot="footer" class="dialog-footer">
  10930. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10931. </span>
  10932. </el-dialog>
  10933. <el-dialog
  10934. title="分组设置"
  10935. :visible.sync="dialogVisibleGroup"
  10936. :append-to-body="true"
  10937. width="95%"
  10938. :before-close="handleClose"
  10939. class="dialog_diy"
  10940. >
  10941. <div v-if="dialogVisibleGroup">
  10942. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10943. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10944. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10945. </div>
  10946. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10947. @click="lockChair">
  10948. 锁定位置
  10949. </div>
  10950. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10951. 解锁位置
  10952. </div> -->
  10953. <div class="group_switch">
  10954. <span>开放选座</span>
  10955. <el-switch
  10956. v-model="islock"
  10957. active-text=""
  10958. class="switchCss"
  10959. @change="lockChair"
  10960. ></el-switch>
  10961. </div>
  10962. <div
  10963. type="primary"
  10964. @click="updateGroup"
  10965. class="returnBtn"
  10966. style="background-color: #225bc7"
  10967. >
  10968. 分组设置
  10969. </div>
  10970. </div>
  10971. <div>
  10972. <div
  10973. class="g_d_box"
  10974. v-if="groupJson.group && groupStudent[toolindex]"
  10975. >
  10976. <div
  10977. class="g_d_group"
  10978. v-for="(g, gindex) in groupJson.group"
  10979. :key="gindex"
  10980. >
  10981. <div class="g_d_group_chair">
  10982. <div v-if="groupJson.number > 1">
  10983. <span
  10984. :class="{
  10985. isChair:
  10986. groupStudent[toolindex][gindex] &&
  10987. groupStudent[toolindex][gindex][0],
  10988. updateChair:
  10989. courseDetail.userid == userid &&
  10990. groupStudent[toolindex][gindex] &&
  10991. groupStudent[toolindex][gindex][0] &&
  10992. groupJson.islock == 2,
  10993. }"
  10994. ><span
  10995. class="updateChairBtn"
  10996. @click="
  10997. updateGroupChair(
  10998. groupStudent[toolindex][gindex] &&
  10999. groupStudent[toolindex][gindex][0]
  11000. )
  11001. "
  11002. >修改</span
  11003. ></span
  11004. ><span>{{
  11005. groupStudent[toolindex][gindex] &&
  11006. groupStudent[toolindex][gindex][0]
  11007. ? groupStudent[toolindex][gindex] &&
  11008. groupStudent[toolindex][gindex][0].name
  11009. : "空位置"
  11010. }}</span>
  11011. </div>
  11012. <div v-if="groupJson.number > 4">
  11013. <span
  11014. :class="{
  11015. isChair:
  11016. groupStudent[toolindex][gindex] &&
  11017. groupStudent[toolindex][gindex][4],
  11018. updateChair:
  11019. courseDetail.userid == userid &&
  11020. groupStudent[toolindex][gindex] &&
  11021. groupStudent[toolindex][gindex][4] &&
  11022. groupJson.islock == 2,
  11023. }"
  11024. ><span
  11025. class="updateChairBtn"
  11026. @click="
  11027. updateGroupChair(
  11028. groupStudent[toolindex][gindex] &&
  11029. groupStudent[toolindex][gindex][4]
  11030. )
  11031. "
  11032. >修改</span
  11033. ></span
  11034. ><span>{{
  11035. groupStudent[toolindex][gindex] &&
  11036. groupStudent[toolindex][gindex][4]
  11037. ? groupStudent[toolindex][gindex] &&
  11038. groupStudent[toolindex][gindex][4].name
  11039. : "空位置"
  11040. }}</span>
  11041. </div>
  11042. <div v-if="groupJson.number > 8">
  11043. <span
  11044. :class="{
  11045. isChair:
  11046. groupStudent[toolindex][gindex] &&
  11047. groupStudent[toolindex][gindex][8],
  11048. updateChair:
  11049. courseDetail.userid == userid &&
  11050. groupStudent[toolindex][gindex] &&
  11051. groupStudent[toolindex][gindex][8] &&
  11052. groupJson.islock == 2,
  11053. }"
  11054. ><span
  11055. class="updateChairBtn"
  11056. @click="
  11057. updateGroupChair(
  11058. groupStudent[toolindex][gindex] &&
  11059. groupStudent[toolindex][gindex][8]
  11060. )
  11061. "
  11062. >修改</span
  11063. ></span
  11064. ><span>{{
  11065. groupStudent[toolindex][gindex] &&
  11066. groupStudent[toolindex][gindex][8]
  11067. ? groupStudent[toolindex][gindex] &&
  11068. groupStudent[toolindex][gindex][8].name
  11069. : "空位置"
  11070. }}</span>
  11071. </div>
  11072. </div>
  11073. <div class="g_d_group_tableBox">
  11074. <div class="g_d_group_chair2">
  11075. <div v-if="groupJson.number > 2">
  11076. <span
  11077. :class="{
  11078. isChair:
  11079. groupStudent[toolindex][gindex] &&
  11080. groupStudent[toolindex][gindex][2],
  11081. updateChair:
  11082. courseDetail.userid == userid &&
  11083. groupStudent[toolindex][gindex] &&
  11084. groupStudent[toolindex][gindex][2] &&
  11085. groupJson.islock == 2,
  11086. }"
  11087. ><span
  11088. class="updateChairBtn"
  11089. @click="
  11090. updateGroupChair(
  11091. groupStudent[toolindex][gindex] &&
  11092. groupStudent[toolindex][gindex][2]
  11093. )
  11094. "
  11095. >修改</span
  11096. ></span
  11097. ><span>{{
  11098. groupStudent[toolindex][gindex] &&
  11099. groupStudent[toolindex][gindex][2]
  11100. ? groupStudent[toolindex][gindex] &&
  11101. groupStudent[toolindex][gindex][2].name
  11102. : "空位置"
  11103. }}</span>
  11104. </div>
  11105. <div v-if="groupJson.number > 6">
  11106. <span
  11107. :class="{
  11108. isChair:
  11109. groupStudent[toolindex][gindex] &&
  11110. groupStudent[toolindex][gindex][6],
  11111. updateChair:
  11112. courseDetail.userid == userid &&
  11113. groupStudent[toolindex][gindex] &&
  11114. groupStudent[toolindex][gindex][6] &&
  11115. groupJson.islock == 2,
  11116. }"
  11117. ><span
  11118. class="updateChairBtn"
  11119. @click="
  11120. updateGroupChair(
  11121. groupStudent[toolindex][gindex] &&
  11122. groupStudent[toolindex][gindex][6]
  11123. )
  11124. "
  11125. >修改</span
  11126. ></span
  11127. ><span>{{
  11128. groupStudent[toolindex][gindex] &&
  11129. groupStudent[toolindex][gindex][6]
  11130. ? groupStudent[toolindex][gindex] &&
  11131. groupStudent[toolindex][gindex][6].name
  11132. : "空位置"
  11133. }}</span>
  11134. </div>
  11135. </div>
  11136. <div class="g_d_group_table">
  11137. <div>
  11138. {{ g.name }}
  11139. </div>
  11140. <div>
  11141. <div
  11142. v-if="
  11143. courseDetail.userid == userid && groupJson.islock == 2
  11144. "
  11145. @click="deleteGroupChair(gindex)"
  11146. >
  11147. 移除组员
  11148. </div>
  11149. <div
  11150. @click="selectGroup(gindex)"
  11151. v-else-if="
  11152. groupStudentUid[toolindex] &&
  11153. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11154. "
  11155. >
  11156. 加入分组
  11157. </div>
  11158. <div
  11159. @click="
  11160. exitGroup(
  11161. groupStudent[toolindex][gindex] &&
  11162. groupStudent[toolindex][gindex][
  11163. groupStudentUid[toolindex][gindex].indexOf(userid)
  11164. ].id
  11165. )
  11166. "
  11167. v-else-if="
  11168. groupStudentUid[toolindex] &&
  11169. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11170. "
  11171. >
  11172. 退出分组
  11173. </div>
  11174. </div>
  11175. </div>
  11176. <div class="g_d_group_chair2">
  11177. <div v-if="groupJson.number > 3">
  11178. <span
  11179. :class="{
  11180. isChair:
  11181. groupStudent[toolindex][gindex] &&
  11182. groupStudent[toolindex][gindex][3],
  11183. updateChair:
  11184. courseDetail.userid == userid &&
  11185. groupStudent[toolindex][gindex] &&
  11186. groupStudent[toolindex][gindex][3] &&
  11187. groupJson.islock == 2,
  11188. }"
  11189. ><span
  11190. class="updateChairBtn"
  11191. @click="
  11192. updateGroupChair(
  11193. groupStudent[toolindex][gindex] &&
  11194. groupStudent[toolindex][gindex][3]
  11195. )
  11196. "
  11197. >修改</span
  11198. ></span
  11199. ><span>{{
  11200. groupStudent[toolindex][gindex] &&
  11201. groupStudent[toolindex][gindex][3]
  11202. ? groupStudent[toolindex][gindex] &&
  11203. groupStudent[toolindex][gindex][3].name
  11204. : "空位置"
  11205. }}</span>
  11206. </div>
  11207. <div v-if="groupJson.number > 7">
  11208. <span
  11209. :class="{
  11210. isChair:
  11211. groupStudent[toolindex][gindex] &&
  11212. groupStudent[toolindex][gindex][7],
  11213. updateChair:
  11214. courseDetail.userid == userid &&
  11215. groupStudent[toolindex][gindex] &&
  11216. groupStudent[toolindex][gindex][7] &&
  11217. groupJson.islock == 2,
  11218. }"
  11219. ><span
  11220. class="updateChairBtn"
  11221. @click="
  11222. updateGroupChair(
  11223. groupStudent[toolindex][gindex] &&
  11224. groupStudent[toolindex][gindex][7]
  11225. )
  11226. "
  11227. >修改</span
  11228. ></span
  11229. ><span>{{
  11230. groupStudent[toolindex][gindex] &&
  11231. groupStudent[toolindex][gindex][7]
  11232. ? groupStudent[toolindex][gindex] &&
  11233. groupStudent[toolindex][gindex][7].name
  11234. : "空位置"
  11235. }}</span>
  11236. </div>
  11237. </div>
  11238. </div>
  11239. <div class="g_d_group_chair">
  11240. <div v-if="groupJson.number > 1">
  11241. <span
  11242. :class="{
  11243. isChair:
  11244. groupStudent[toolindex][gindex] &&
  11245. groupStudent[toolindex][gindex][1],
  11246. updateChair:
  11247. courseDetail.userid == userid &&
  11248. groupStudent[toolindex][gindex] &&
  11249. groupStudent[toolindex][gindex][1] &&
  11250. groupJson.islock == 2,
  11251. }"
  11252. ><span
  11253. class="updateChairBtn"
  11254. @click="
  11255. updateGroupChair(
  11256. groupStudent[toolindex][gindex] &&
  11257. groupStudent[toolindex][gindex][1]
  11258. )
  11259. "
  11260. >修改</span
  11261. ></span
  11262. ><span>{{
  11263. groupStudent[toolindex][gindex] &&
  11264. groupStudent[toolindex][gindex][1]
  11265. ? groupStudent[toolindex][gindex] &&
  11266. groupStudent[toolindex][gindex][1].name
  11267. : "空位置"
  11268. }}</span>
  11269. </div>
  11270. <div v-if="groupJson.number > 5">
  11271. <span
  11272. :class="{
  11273. isChair:
  11274. groupStudent[toolindex][gindex] &&
  11275. groupStudent[toolindex][gindex][5],
  11276. updateChair:
  11277. courseDetail.userid == userid &&
  11278. groupStudent[toolindex][gindex] &&
  11279. groupStudent[toolindex][gindex][5] &&
  11280. groupJson.islock == 2,
  11281. }"
  11282. ><span
  11283. class="updateChairBtn"
  11284. @click="
  11285. updateGroupChair(
  11286. groupStudent[toolindex][gindex] &&
  11287. groupStudent[toolindex][gindex][5]
  11288. )
  11289. "
  11290. >修改</span
  11291. ></span
  11292. ><span>{{
  11293. groupStudent[toolindex][gindex] &&
  11294. groupStudent[toolindex][gindex][5]
  11295. ? groupStudent[toolindex][gindex] &&
  11296. groupStudent[toolindex][gindex][5].name
  11297. : "空位置"
  11298. }}</span>
  11299. </div>
  11300. <div v-if="groupJson.number > 9">
  11301. <span
  11302. :class="{
  11303. isChair:
  11304. groupStudent[toolindex][gindex] &&
  11305. groupStudent[toolindex][gindex][9],
  11306. updateChair:
  11307. courseDetail.userid == userid &&
  11308. groupStudent[toolindex][gindex] &&
  11309. groupStudent[toolindex][gindex][9] &&
  11310. groupJson.islock == 2,
  11311. }"
  11312. ><span
  11313. class="updateChairBtn"
  11314. @click="
  11315. updateGroupChair(
  11316. groupStudent[toolindex][gindex] &&
  11317. groupStudent[toolindex][gindex][9]
  11318. )
  11319. "
  11320. >修改</span
  11321. ></span
  11322. ><span>{{
  11323. groupStudent[toolindex][gindex] &&
  11324. groupStudent[toolindex][gindex][9]
  11325. ? groupStudent[toolindex][gindex] &&
  11326. groupStudent[toolindex][gindex][9].name
  11327. : "空位置"
  11328. }}</span>
  11329. </div>
  11330. </div>
  11331. </div>
  11332. </div>
  11333. </div>
  11334. </div>
  11335. <span slot="footer" class="dialog-footer">
  11336. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11337. </span>
  11338. </el-dialog>
  11339. <el-dialog
  11340. title="分组设置"
  11341. :visible.sync="dialogVisibleGroup2"
  11342. :append-to-body="true"
  11343. width="650px"
  11344. :before-close="handleClose"
  11345. class="dialog_diy"
  11346. >
  11347. <div class="groupBox">
  11348. <div v-if="groupJson2.group" class="groupContent">
  11349. <div class="groupTitle">请设置小组数量及名称</div>
  11350. <div
  11351. v-for="(item, index) in groupJson2.group"
  11352. :key="index"
  11353. class="groupName"
  11354. >
  11355. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11356. <el-input
  11357. v-model="item.name"
  11358. placeholder="请输入名称..."
  11359. style="width: 250px"
  11360. ></el-input>
  11361. <!-- <div class="groupBtn">
  11362. <el-button type="primary" size="small" @click="addGroup(index)">
  11363. 添加</el-button>
  11364. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11365. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11366. </div> -->
  11367. </div>
  11368. </div>
  11369. <div class="groupContent">
  11370. <div class="groupTitle">请设置每组人数</div>
  11371. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11372. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11373. <el-input
  11374. v-model="groupJson.number"
  11375. style="width: 150px"
  11376. placeholder="请输入2-10的数字"
  11377. @change="numberPan"
  11378. ></el-input>
  11379. </div>
  11380. </div>
  11381. <span slot="footer" class="dialog-footer">
  11382. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11383. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11384. </span>
  11385. </el-dialog>
  11386. <el-dialog
  11387. title="作业提交"
  11388. :visible.sync="dialogVisibleGroupWork"
  11389. :append-to-body="true"
  11390. width="500px"
  11391. :before-close="handleClose"
  11392. class="dialog_change"
  11393. >
  11394. <div class="marginT">
  11395. <div>上传文件</div>
  11396. <div
  11397. class="chapter_add"
  11398. @click="addImg($event)"
  11399. v-if="studyJuri[0].cover.length == 0"
  11400. >
  11401. <div class="up_photo">
  11402. <img src="../assets/icon/uploadImg.png" alt />
  11403. </div>
  11404. <!-- <input
  11405. type="file"
  11406. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11407. style="display: none"
  11408. @change="beforeUpload1($event, 1)"
  11409. /> -->
  11410. <input
  11411. type="file"
  11412. accept="*"
  11413. style="display: none"
  11414. @change="beforeUpload1($event, 1)"
  11415. />
  11416. </div>
  11417. <!-- capture="camera" -->
  11418. <div
  11419. class="chapter_add"
  11420. style="
  11421. display: flex;
  11422. width: 100%;
  11423. flex-direction: row;
  11424. flex-wrap: wrap;
  11425. justify-content: flex-start;
  11426. padding: 15px 0;
  11427. "
  11428. v-if="studyJuri[0].cover.length > 0"
  11429. >
  11430. <div class="upCover">
  11431. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11432. <img :src="word" alt v-else-if="fileType == 1" />
  11433. <img :src="video" alt v-else-if="fileType == 2" />
  11434. <img :src="word2" alt v-else-if="fileType == 3" />
  11435. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11436. <div class="deleteWord" @click="clean(1)">
  11437. <img src="../assets/icon/deleteWorks.png" alt />
  11438. </div>
  11439. </div>
  11440. </div>
  11441. </div>
  11442. <div
  11443. class="upload_send"
  11444. @click="addCourseWorks2(taskCount)"
  11445. v-if="!proVisible"
  11446. >
  11447. 提交
  11448. </div>
  11449. </el-dialog>
  11450. <el-dialog
  11451. title="修改分组"
  11452. :visible.sync="dialogVisibleUpdateGroup"
  11453. :append-to-body="true"
  11454. width="350px"
  11455. :before-close="handleClose"
  11456. class="dialog_diy"
  11457. >
  11458. <div>
  11459. <h2>
  11460. {{ this.updateGroupUser.name }}
  11461. </h2>
  11462. <div style="color: rgb(171 171 171); margin-top: 10px">
  11463. 请选择要进入的分组
  11464. </div>
  11465. <el-radio-group v-model="checkChair">
  11466. <el-radio
  11467. style="display: block; margin-top: 20px"
  11468. v-for="(item, index) in updateGroupArray"
  11469. :label="item.label"
  11470. :key="index"
  11471. >{{ item.name }}</el-radio
  11472. >
  11473. </el-radio-group>
  11474. </div>
  11475. <span slot="footer" class="dialog-footer">
  11476. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11477. <el-button type="primary" @click="updateChair">确定</el-button>
  11478. </span>
  11479. </el-dialog>
  11480. <el-dialog
  11481. title="移除组员"
  11482. :visible.sync="dialogVisibleDeleteGroup"
  11483. :append-to-body="true"
  11484. width="350px"
  11485. :before-close="handleClose"
  11486. class="dialog_diy"
  11487. >
  11488. <div>
  11489. <h2>
  11490. {{ this.deleteGroupArray.name }}
  11491. </h2>
  11492. <div style="color: rgb(171 171 171); margin-top: 10px">
  11493. 请选择要删除的组员
  11494. </div>
  11495. <el-checkbox-group v-model="checkDeleteGroup">
  11496. <el-checkbox
  11497. style="display: flex; margin-top: 20px"
  11498. v-for="(item, index) in deleteGroupUser"
  11499. :label="item.userid"
  11500. :key="index"
  11501. >{{ item.name }}</el-checkbox
  11502. >
  11503. </el-checkbox-group>
  11504. </div>
  11505. <span slot="footer" class="dialog-footer">
  11506. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11507. <el-button type="primary" @click="deleteChair">确定</el-button>
  11508. </span>
  11509. </el-dialog>
  11510. <el-dialog
  11511. title="批量上传"
  11512. :visible.sync="dialogVisiblePl"
  11513. :append-to-body="true"
  11514. width="700px"
  11515. :before-close="handleClose"
  11516. class="dialog_change"
  11517. >
  11518. <div class="marginT">
  11519. <div class="plworkBox">
  11520. <div
  11521. class="chapter_add"
  11522. style="
  11523. display: flex;
  11524. width: 150px;
  11525. flex-direction: row;
  11526. flex-wrap: wrap;
  11527. justify-content: flex-start;
  11528. margin: 0 10px 10px 0;
  11529. "
  11530. v-for="(item, index) in plworkFile"
  11531. :key="index"
  11532. >
  11533. <div class="upCover2">
  11534. <img
  11535. :src="item.url"
  11536. alt
  11537. v-if="item.fileType == 1"
  11538. @click="previewImg(item.url)"
  11539. />
  11540. <img :src="word" alt v-else-if="item.fileType == 4" />
  11541. <img :src="video" alt v-else />
  11542. <!-- <span class="picName">{{ item.name }}</span> -->
  11543. <!-- <el-input
  11544. v-model="item.username"
  11545. placeholder="请输入学生名字"
  11546. style="margin-top: 10px"
  11547. ></el-input> -->
  11548. <div
  11549. class="pl_select_box"
  11550. @click="
  11551. getUpdateMore(true, checkUpload(), item.username, index)
  11552. "
  11553. >
  11554. {{ getSName(item.username) }}
  11555. </div>
  11556. <!-- <el-select
  11557. style="margin-top: 10px"
  11558. v-model="item.username"
  11559. filterable
  11560. allow-create
  11561. placeholder="请选择学生"
  11562. >
  11563. <el-option
  11564. v-for="item1 in checkUpload()"
  11565. :key="item1.userid"
  11566. :label="item1.name ? item1.name : item1.username"
  11567. :value="item1.userid"
  11568. >
  11569. </el-option>
  11570. </el-select> -->
  11571. <div class="deleteWord" @click="clean2(index)">
  11572. <img src="../assets/icon/deleteWorks.png" alt />
  11573. </div>
  11574. </div>
  11575. </div>
  11576. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11577. <div class="up_photo2">
  11578. <img src="../assets/icon/plwork.png" alt />
  11579. <span>点击上传文件</span>
  11580. </div>
  11581. <input
  11582. type="file"
  11583. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11584. multiple="multiple"
  11585. style="display: none"
  11586. @change="beforeUpload3($event, 6)"
  11587. />
  11588. </div>
  11589. </div>
  11590. </div>
  11591. <!-- capture="camera" -->
  11592. <div
  11593. class="upload_send"
  11594. @click="addCourseWorksPl(taskCount)"
  11595. v-if="!proVisible2"
  11596. >
  11597. 提交
  11598. </div>
  11599. </el-dialog>
  11600. <el-dialog
  11601. title="修改名称"
  11602. :visible.sync="dialogVisibleSname"
  11603. width="500px"
  11604. :before-close="handleClose"
  11605. class="dialog_diy"
  11606. center
  11607. >
  11608. <div
  11609. style="
  11610. text-align: center;
  11611. display: flex;
  11612. align-items: center;
  11613. justify-content: center;
  11614. "
  11615. >
  11616. <span class="tian1">名称</span>
  11617. <div
  11618. class="pl_select_box"
  11619. style="margin-left: 10px; width: 200px"
  11620. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11621. >
  11622. {{ getSName(worksSName) }}
  11623. </div>
  11624. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11625. placeholder="请选择学生">
  11626. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11627. :value="item.userid">
  11628. </el-option>
  11629. </el-select> -->
  11630. <!-- <el-input
  11631. v-model="worksSName"
  11632. style="width: 250px; margin: 15px 0px"
  11633. ></el-input> -->
  11634. </div>
  11635. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11636. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11637. <el-button type="primary" @click="updateName">确 定</el-button>
  11638. </span>
  11639. </el-dialog>
  11640. <el-dialog
  11641. title="英语写作"
  11642. :visible.sync="engDialogVisible"
  11643. :append-to-body="true"
  11644. width="800px"
  11645. :before-close="handleClose"
  11646. class="dialog_diy"
  11647. >
  11648. <onlineWrite
  11649. v-if="engDialogVisible"
  11650. :englishList="englishList"
  11651. :myAnswerList1="myAnswerList1"
  11652. :userid="userid"
  11653. ref="engJson"
  11654. ></onlineWrite>
  11655. <span slot="footer" class="dialog-footer">
  11656. <el-button @click="engDialogVisible = false">取 消</el-button>
  11657. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11658. </span>
  11659. </el-dialog>
  11660. <el-dialog
  11661. title="英语写作"
  11662. :visible.sync="engUpdateDialogVisible"
  11663. :append-to-body="true"
  11664. width="800px"
  11665. :before-close="handleClose"
  11666. class="dialog_diy fullStyle"
  11667. >
  11668. <div class="engUpBox">
  11669. <div class="engUpTop">
  11670. <div class="engTitle">
  11671. <div>作文题目:</div>
  11672. <div>{{ englishList1.engTitle }}</div>
  11673. </div>
  11674. <div class="engText">
  11675. <div>作文内容:</div>
  11676. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11677. </div>
  11678. </div>
  11679. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11680. <div class="oldBox">
  11681. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11682. <div class="oldText">
  11683. <div class="detailBox">
  11684. <div class="oldDetail">
  11685. <div>标题:</div>
  11686. <div>{{ oldEnglishJson.engTitle }} </div>
  11687. </div>
  11688. <div class="oldDetail1">
  11689. <div>正文:</div>
  11690. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11691. </div>
  11692. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11693. <div>图片:</div>
  11694. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11695. </div>
  11696. </div>
  11697. </div>
  11698. </div>
  11699. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11700. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11701. <div class="oldText">
  11702. <div class="detailBox" style="position: relative;">
  11703. <div class="oldDetail">
  11704. <div>标题:</div>
  11705. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11706. <div v-else v-html="newEnglishList.engTitle"></div>
  11707. </div>
  11708. <div class="oldDetail">
  11709. <div>正文:</div>
  11710. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11711. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11712. </div>
  11713. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11714. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11715. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11716. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11717. </div>
  11718. </div>
  11719. </div>
  11720. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11721. <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">
  11722. <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>
  11723. <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>
  11724. </div>
  11725. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11726. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11727. <div class="detailBox" style="position: relative;">
  11728. <div class="oldDetail">
  11729. <div>标题:</div>
  11730. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11731. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11732. </div>
  11733. <div class="oldDetail">
  11734. <div>正文:</div>
  11735. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11736. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11737. </div>
  11738. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11739. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11740. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11741. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11742. </div>
  11743. </div>
  11744. <div class="oldText" v-else-if="newEngIndex == -1">
  11745. <div class="detailBox" style="position: relative;">
  11746. <div class="oldDetail">
  11747. <div>标题:</div>
  11748. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11749. <div v-else v-html="newEnglishList.engTitle"></div>
  11750. </div>
  11751. <div class="oldDetail">
  11752. <div>正文:</div>
  11753. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11754. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11755. </div>
  11756. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11757. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11758. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11759. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11760. </div>
  11761. </div>
  11762. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11763. <div class="detailBox" style="position: relative;">
  11764. <div class="oldDetail">
  11765. <div>标题:</div>
  11766. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11767. <div v-else>
  11768. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  11769. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11770. </div>
  11771. </div>
  11772. <div class="oldDetail">
  11773. <div>正文:</div>
  11774. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11775. <div v-else>
  11776. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11777. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11778. </div>
  11779. </div>
  11780. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11781. <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>
  11782. <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>
  11783. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11784. </div>
  11785. </div>
  11786. </div>
  11787. </div>
  11788. </div>
  11789. <span slot="footer" class="dialog-footer">
  11790. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11791. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11792. </span>
  11793. </el-dialog>
  11794. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11795. <interVideo
  11796. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11797. :videoJson="videoJson"
  11798. :userid="userid"
  11799. :id="id"
  11800. :courseType="courseType"
  11801. :taskCount="taskCount"
  11802. :toolindex="toolindex"
  11803. :videoType="videoType"
  11804. ></interVideo>
  11805. <UpdateMore
  11806. :dialogVisibleMember.sync="dialogVisibleMember"
  11807. :cList="uploadStudentJuri"
  11808. :userid="userid"
  11809. :searchTN="worksSName2"
  11810. @setPlname="setPlname"
  11811. ></UpdateMore>
  11812. <wordCloud
  11813. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11814. :data="wordCloudData"
  11815. ></wordCloud>
  11816. <el-dialog
  11817. title="挑人"
  11818. :visible.sync="dialogVisiblePickPeople"
  11819. width="650px"
  11820. :before-close="handleClose"
  11821. class="dialog_diy"
  11822. center
  11823. >
  11824. <div class="pick_box">
  11825. <div
  11826. class="noWorksName"
  11827. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11828. v-for="(item, index) in uploadStudentJuri"
  11829. :key="index"
  11830. @click="pickStudent(item)"
  11831. >
  11832. {{ item.name }}
  11833. </div>
  11834. </div>
  11835. </el-dialog>
  11836. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11837. :englishVoiceJson='englishVoiceJson'
  11838. :userid="userid"
  11839. :id="id"
  11840. :courseType="courseType"
  11841. :taskCount="taskCount"
  11842. :toolindex="toolindex"
  11843. @selectSWorks="selectSWorks"
  11844. @selectStudent="selectStudent"
  11845. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11846. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11847. :userid="userid"
  11848. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11849. :commentDetail="commentDetail"
  11850. :courseDetail="courseDetail"
  11851. :wScore="wScore"
  11852. :scoreDetail="scoreDetail"
  11853. @selectSWorks="selectSWorks"
  11854. @selectStudent="selectStudent"></checkEnglishVoice>
  11855. </div>
  11856. </template>
  11857. <script>
  11858. import "../common/aws-sdk-2.235.1.min.js";
  11859. // import pdf from "./components/pdf3";
  11860. import pdf from "./components/vpdf";
  11861. import AskStatic from "./components/askStatic";
  11862. import AskStatic2 from "./components/askStatic2";
  11863. import AnswerData2 from "./components/answerData2";
  11864. import AnswerData from "./components/answerData";
  11865. import EditorBar from "./tools/wangEnduit.vue";
  11866. import Table from "./tools/table.vue";
  11867. import Time from "./tools/time.vue";
  11868. import Mind from "./tools/jsmind.vue";
  11869. import Sunburst from "./tools/sunburst";
  11870. import SeeBoard from "./tools/seeBoard";
  11871. import * as imageConversion from "image-conversion";
  11872. import Audio from "./components/audio.vue";
  11873. import ImgDraw from "./tools/imgDraw/imgDraw";
  11874. import { Empty } from "element-ui";
  11875. import RecordRTC from "recordrtc";
  11876. import interVideo from "./interVideo/index.vue";
  11877. import UpdateMore from "./updateMore/updateMore.vue";
  11878. import wordCloud from "./wordCloud/index.vue";
  11879. import axios from "axios";
  11880. import JSZip from "jszip";
  11881. import FileSaver from "file-saver";
  11882. import onlineWrite from "./components/onlineWrite";
  11883. import englishEva from "./components/englishEva";
  11884. import * as Diff from 'diff'
  11885. import EnglishVoice from './EnglishVoice2/index.vue'
  11886. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  11887. import correctText from './components/correctText.vue'
  11888. import scoreItem from './scoreList/scoreItem.vue'
  11889. import scoreZong from './scoreZong/index.vue'
  11890. import classRoomHelper from './classRoomHelper/index.vue'
  11891. const getFile = (url) => {
  11892. return new Promise((resolve, reject) => {
  11893. var credentials = {
  11894. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11895. secretAccessKey: "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",
  11896. }; //秘钥形式的登录上传
  11897. window.AWS.config.update(credentials);
  11898. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11899. let url2 = url;
  11900. let _url2 = "";
  11901. if (
  11902. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11903. ) {
  11904. _url2 = url2.split(
  11905. "https://view.officeapps.live.com/op/view.aspx?src="
  11906. )[1];
  11907. } else {
  11908. _url2 = url2;
  11909. }
  11910. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11911. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11912. var params = {
  11913. Bucket: "ccrb",
  11914. Key: name
  11915. };
  11916. s3.getObject(params, function (err, data) {
  11917. if (err) {
  11918. console.log(err, err.stack)
  11919. resolve({ data: 1 });
  11920. }else {
  11921. resolve({ data: data.Body });
  11922. console.log(data);
  11923. } // sxuccessful response
  11924. });
  11925. // axios({
  11926. // method: "get",
  11927. // url,
  11928. // responseType: "blob",
  11929. // })
  11930. // .then((data) => {
  11931. // resolve({ data: data.data });
  11932. // })
  11933. // .catch((error) => {
  11934. // resolve({ data: 1 });
  11935. // // reject(error.toString());
  11936. // });
  11937. });
  11938. };
  11939. export default {
  11940. components: {
  11941. EditorBar,
  11942. Time,
  11943. pdf,
  11944. AskStatic,
  11945. AskStatic2,
  11946. Mind,
  11947. Sunburst,
  11948. SeeBoard,
  11949. AnswerData2,
  11950. AnswerData,
  11951. Audio,
  11952. ImgDraw,
  11953. Table,
  11954. interVideo,
  11955. UpdateMore,
  11956. wordCloud,
  11957. onlineWrite,
  11958. englishEva,
  11959. EnglishVoice,
  11960. checkEnglishVoice,
  11961. correctText,
  11962. scoreItem,
  11963. classRoomHelper,
  11964. scoreZong
  11965. },
  11966. data() {
  11967. return {
  11968. bg: null,
  11969. drawShow: false,
  11970. dialogVisible: false,
  11971. dialogVisiblePl: false,
  11972. commentDialogVisible: false,
  11973. dialogVisibleMember: false,
  11974. dialogVisibleWordCloud: false,
  11975. videoVisible: false,
  11976. isStar: false,
  11977. studentEvalDialogVisible: false,
  11978. studentEvalDialogVisibleTeacher: false,
  11979. dialogVisibleSelect: false,
  11980. dialogVisibleSelectTeacher: false,
  11981. dialogVisibleScore: false,
  11982. dialogVisibleENScore: false,
  11983. dialogVisibleSentence: false,
  11984. dialogVisibleSentenceTeacher: false,
  11985. dialogVisibleSentence1: false,
  11986. dialogVisibleWorks: false,
  11987. dialogVisibleTable: false,
  11988. dialogVisibleTableTeacher: false,
  11989. dialogVisibleWord: false,
  11990. dialogVisibleWordTeacher: false,
  11991. dialogVisibleTable2: false,
  11992. dialogVisibleTable3: false,
  11993. dialogVisibleGroupWork: false,
  11994. dialogVisibleUpdateGroup: false,
  11995. dialogVisibleDeleteGroup: false,
  11996. dialogVisibleSname: false,
  11997. dialogVisibleVideo: false,
  11998. dialogVisiblePickPeople: false,
  11999. engDialogVisible: false,
  12000. engUpdateDialogVisible: false,
  12001. engEvaDialogVisible: false,
  12002. evaEngJson: {
  12003. teacherJson: {},
  12004. studentJson: {},
  12005. message: {},
  12006. },
  12007. isNoUserid:false,
  12008. engListLength:0,
  12009. engWid:"",
  12010. newEnglishList:{
  12011. engTitle:"",
  12012. engText:"",
  12013. },
  12014. newEnglishList1:[],
  12015. oldEnglishJson:{},
  12016. oldEnglishJson1:{},
  12017. englishList1:{},
  12018. englishList:{},
  12019. myAnswerList1:{},
  12020. topHeight:0,
  12021. newEngIndex:-1,
  12022. englishToolIndex:0,
  12023. worksSName: "",
  12024. classJuri: [],
  12025. uploadStudentJuri: [],
  12026. uploadCid: "",
  12027. snameWid: "",
  12028. sStudent: {},
  12029. sTool: "",
  12030. bzText: "",
  12031. commentDetail: [],
  12032. selectAnswer: [],
  12033. videoDetail: {},
  12034. selectJson: {},
  12035. eScore: { eBzText: "", eStar: [] },
  12036. id: this.$route.query.courseId,
  12037. userid: this.$route.query.userid,
  12038. classId: this.$route.query.cid,
  12039. // courseTypeLine: this.$route.query.type,
  12040. oid: this.$route.query.oid,
  12041. org: this.$route.query.org,
  12042. tType: this.$route.query.tType,
  12043. courseType: this.$route.query.type,
  12044. screenType: this.$route.query.screenType,
  12045. tcid2: this.$route.query.tcid,
  12046. tcid: "",
  12047. pptImgUrl: "",
  12048. pptImgUrl1: "",
  12049. commentText: "",
  12050. full: false,
  12051. sIsOpen: false,
  12052. IsLookOpen: false,
  12053. IsFollow: false,
  12054. pzDialog: false,
  12055. contentDialog: false,
  12056. mlDialog: false,
  12057. type: 1,
  12058. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12059. sentenceList1: [],
  12060. tableJson: [],
  12061. tableJsonO: [],
  12062. wordJson: [],
  12063. wordJsonO: [],
  12064. vedio: [],
  12065. text: [],
  12066. textList: [],
  12067. line: [],
  12068. lineList: [],
  12069. chapTools: [],
  12070. chapToolList: [],
  12071. file: [],
  12072. fileC: [],
  12073. vedioTime: [],
  12074. upToolImg: "",
  12075. preTime: 0,
  12076. rateList: {
  12077. ca: 0,
  12078. },
  12079. rateParams: [],
  12080. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12081. studyJuri: [
  12082. {
  12083. content: "",
  12084. cover: [],
  12085. upVedio: [],
  12086. upFile: [],
  12087. },
  12088. ],
  12089. isClose: 0,
  12090. plworkFile: [],
  12091. mr: require("../assets/vedioPic.png"),
  12092. word: require("../assets/icon/isWord.png"),
  12093. word2: require("../assets/icon/word2.png"),
  12094. video: require("../assets/icon/isVideo.png"),
  12095. noLikes: require("../assets/icon/comment/noLikes.png"),
  12096. likes: require("../assets/icon/comment/likes.png"),
  12097. scoreImg: require("../assets/score.png"),
  12098. courseDetail: {},
  12099. reply: "",
  12100. isSelect: false,
  12101. chapInfo: [],
  12102. chapInfoList: [],
  12103. taskCount: 0,
  12104. imgList: [],
  12105. noImgList: [],
  12106. pzList: [],
  12107. timeWorkList: [],
  12108. PlTextList: [
  12109. "Excellent!",
  12110. "nice!",
  12111. "很有创意!",
  12112. "还不错哦~",
  12113. "继续努力哦~",
  12114. ],
  12115. isClickNav: "",
  12116. navId: "",
  12117. playerOptions: {
  12118. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12119. autoplay: false, //如果true,浏览器准备好时开始回放。
  12120. muted: false, // 默认情况下将会消除任何音频。
  12121. loop: false, // 导致视频一结束就重新开始。
  12122. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12123. language: "zh-CN",
  12124. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12125. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12126. sources: [
  12127. {
  12128. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12129. src: "", //url地址require("../../assets/media/aaa.mp4")
  12130. },
  12131. ],
  12132. // poster: require("../../assets/tu31.png"), //你的封面地址
  12133. // poster: dataRes.imgUrl, //你的封面地址
  12134. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12135. controlBar: {
  12136. timeDivider: true, //当前时间和持续时间的分隔符
  12137. durationDisplay: true, //显示持续时间
  12138. remainingTimeDisplay: false, //是否显示剩余时间功能
  12139. fullscreenToggle: true, //全屏按钮
  12140. },
  12141. },
  12142. playerOptions1: {
  12143. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12144. autoplay: false, //如果true,浏览器准备好时开始回放。
  12145. muted: false, // 默认情况下将会消除任何音频。
  12146. loop: false, // 导致视频一结束就重新开始。
  12147. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12148. language: "zh-CN",
  12149. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12150. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12151. sources: [
  12152. {
  12153. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12154. src: "", //url地址require("../../assets/media/aaa.mp4")
  12155. },
  12156. ],
  12157. // poster: require("../../assets/tu31.png"), //你的封面地址
  12158. // poster: dataRes.imgUrl, //你的封面地址
  12159. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12160. controlBar: {
  12161. timeDivider: true, //当前时间和持续时间的分隔符
  12162. durationDisplay: true, //显示持续时间
  12163. remainingTimeDisplay: false, //是否显示剩余时间功能
  12164. fullscreenToggle: true, //全屏按钮
  12165. },
  12166. },
  12167. playerO: {},
  12168. noneBtnImg: false,
  12169. proVisible: false,
  12170. proVisible2: false,
  12171. progress: 0,
  12172. isFinishSize: 0,
  12173. isAllSize: 0,
  12174. questionAnswer: "",
  12175. answerQ: "", //问答标题
  12176. rateJson: [],
  12177. wbCount: 0,
  12178. wordCount: 0,
  12179. mindCount: 0,
  12180. askCount: 0,
  12181. noteCount: 0,
  12182. mindNetWorkCount: 0,
  12183. libraryCount: 0,
  12184. workCount: 0,
  12185. timeCount: 0,
  12186. answerCount: 0,
  12187. trainCount: 0,
  12188. evalCount: 0,
  12189. dialogImageUrl: "",
  12190. pictureDialog: false,
  12191. toolTypeList: [],
  12192. dialogVisible1: false,
  12193. dialogVisible2: false,
  12194. dialogVisible3: false,
  12195. dialogVisible6: false,
  12196. dialogVisible4: false,
  12197. isNoHomeWork: false,
  12198. dialogVisible5: false,
  12199. dialogVisible5Teacher: false,
  12200. dialogVisibleChoice: false,
  12201. dialogVisibleChoiceTeacher: false,
  12202. answerDialogVisible: false,
  12203. answerDialogVisibleTeacher: false,
  12204. juriVisible: false,
  12205. timeDialogVisible: false,
  12206. replyDialogVisible: false,
  12207. toolDialogVisible: false,
  12208. replyIndex: 0,
  12209. replyPid: "",
  12210. radio: [],
  12211. isAsk: false,
  12212. askJson: {
  12213. askCount: 1,
  12214. askTitle: "",
  12215. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12216. },
  12217. testJson: {},
  12218. videoType:0,
  12219. checkJson: [],
  12220. askList: [],
  12221. answerList: [],
  12222. navList: [],
  12223. addPzDialog: false,
  12224. pzConText: "",
  12225. worksStudent: [],
  12226. isCloseList: [],
  12227. workStudent: [],
  12228. groupStudent: [],
  12229. groupStudentUid: [],
  12230. noWorksS: [],
  12231. isWorksS: [],
  12232. noWorksStudent: [],
  12233. toolindex: 0,
  12234. toolDetailIndex: null,
  12235. groupIndex: 0,
  12236. workTypeB: false,
  12237. workTypeC: false,
  12238. isAnswer: false,
  12239. isHovered: false,
  12240. isHovered1: false,
  12241. isHovered2: false,
  12242. commentTagShow:0,
  12243. timer: null,
  12244. opertimer: null,
  12245. showType: 0,
  12246. fileType: 0,
  12247. showPDF: false,
  12248. noteName: "",
  12249. evaJuri: [],
  12250. evalua: "",
  12251. eTitle: "",
  12252. eName: "",
  12253. eJson: {},
  12254. fid: "", //一级
  12255. sid: "", //二级
  12256. tid: "", //二级
  12257. typeMode: 1,
  12258. eJSONNum: 0,
  12259. Etype: 1,
  12260. data: {
  12261. meta: {
  12262. name: "example",
  12263. author: "dd@163.com",
  12264. version: "0.2",
  12265. },
  12266. format: "node_array",
  12267. data: [{ id: "root", isroot: true, topic: "" }],
  12268. },
  12269. fullDialogVisible: false,
  12270. fulltype: "",
  12271. fullUrl: "",
  12272. commentIndexJson: {},
  12273. Stbodywidth: 0,
  12274. ispzType: 0,
  12275. pzType: 1,
  12276. wScore: 0,
  12277. scoreDetail: "",
  12278. videoStart: false,
  12279. recorder: null,
  12280. groupJson: {},
  12281. islock: false,
  12282. groupJson2: {},
  12283. dialogVisibleGroup: false,
  12284. dialogVisibleGroup2: false,
  12285. updateGroupArray: [],
  12286. updateGroupUser: {},
  12287. deleteGroupUser: [],
  12288. deleteGroupArray: {},
  12289. checkChair: "",
  12290. checkDeleteGroup: [],
  12291. inviteCode: "",
  12292. courseGroupStudent: [],
  12293. courseGroupStudentUid: [],
  12294. courseGroup: {},
  12295. isGroup: false,
  12296. // toolIndex: null,
  12297. tool: {},
  12298. isWorkTool: [
  12299. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12300. ], //, 40
  12301. videoJson: {},
  12302. toolType: 0,
  12303. checktoolArray: [],
  12304. vChapterData: [],
  12305. isUpdateToolDetail: false,
  12306. isUpdateToolDetail1: false,
  12307. updateToolDetailInner: "",
  12308. checkboxList: [],
  12309. plIndex: "",
  12310. worksSName2: "",
  12311. worksSid: "",
  12312. wordCloudData: [],
  12313. isPickStudent: [],
  12314. pzStype: 1,
  12315. myAnList: {},
  12316. userMes:{},
  12317. downLoading: false,
  12318. greyType: false,
  12319. correctWord: [],
  12320. isUpdateText: "",
  12321. EnglishVoiceDialog: false,
  12322. englishVoiceJson: {},
  12323. englishVoiceJsonWork:[],
  12324. scoreList:{
  12325. listdata:[],
  12326. isScoreList:[],
  12327. },
  12328. classRoomHelperWidth: '85px',
  12329. orgArray:['1973f6c7-1561-11ee-91d8-005056b86db5','777559d2-7239-11ee-b98c-005056b86db5','884c5665-a453-46f3-b7b6-01d575290aa9','0fec3a8a-ad04-11ed-b13d-005056b86db5','c9a6de59-8b4f-4be1-8565-a08081f649d3'],
  12330. oidArray:['f297fbdc-f0a0-11ee-b534-005056b86db5','45facc0a-1211-11ec-80ad-005056b86db5']
  12331. };
  12332. },
  12333. methods: {
  12334. gx(){
  12335. this.$forceUpdate();
  12336. },
  12337. isUpdateCorrect(t,p){
  12338. if(this.greyType == false){
  12339. this.isUpdateText = t;
  12340. this.greyType = true;
  12341. }else{
  12342. if(p == 1){
  12343. this.newEnglishList.engText = this.isUpdateText;
  12344. }else if(p == 2){
  12345. this.oldEnglishJson1.engText = this.isUpdateText;
  12346. }else if(p == 3){
  12347. this.newEnglishList.engText = this.isUpdateText;
  12348. }else{
  12349. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12350. }
  12351. this.greyType = false
  12352. }
  12353. },
  12354. aiCorrect(t,p){
  12355. let aiText = "";
  12356. const loading = this.$loading.service({
  12357. background: "rgba(255, 255, 255)",
  12358. target: document.querySelectorAll(".loadingText")[0],
  12359. });
  12360. let param = {
  12361. model: "gpt-3.5-turbo",
  12362. temperature: 0,
  12363. max_tokens: 2048,
  12364. top_p: 1,
  12365. frequency_penalty: 0,
  12366. presence_penalty: 0,
  12367. messages: [
  12368. {
  12369. role: "user",
  12370. content:
  12371.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12372. },
  12373. ],
  12374. uid: this.userid,
  12375. stream: false,
  12376. };
  12377. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12378. (res) => {
  12379. if (
  12380. res.data.FunctionResponse &&
  12381. res.data.FunctionResponse.result &&
  12382. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12383. ) {
  12384. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12385. return;
  12386. }
  12387. aiText =
  12388. res.data.FunctionResponse.choices[0].message.content;
  12389. aiText = aiText.replace(/%/g,"%25");
  12390. // let w = "";
  12391. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12392. // for(var k = 0;k<a.length;k++){
  12393. // //diffWordsWithSpace
  12394. // if(a.length > 1){
  12395. // if(a[k].added == true){
  12396. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12397. // }else if(a[k].removed == true){
  12398. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12399. // }else{
  12400. // w += '<span>' + a[k].value + '</span>';
  12401. // }
  12402. // }else{
  12403. // if(p == 1){
  12404. // w = this.newEnglishList.engText;
  12405. // }else if(p == 2){
  12406. // w = this.oldEnglishJson1.engText;
  12407. // }else if(p == 3){
  12408. // w = this.newEnglishList.engText;
  12409. // }else{
  12410. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12411. // }
  12412. // }
  12413. // }
  12414. if(p == 1){
  12415. this.newEnglishList.engText = aiText;
  12416. }else if(p == 2){
  12417. this.oldEnglishJson1.engText = aiText;
  12418. }else if(p == 3){
  12419. this.newEnglishList.engText = aiText;
  12420. }else{
  12421. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12422. }
  12423. loading.close();
  12424. },
  12425. (err) => {
  12426. console.log(err);
  12427. loading.close();
  12428. }
  12429. );
  12430. },
  12431. addToolChoose() {
  12432. if (!this.checktoolArray.length) {
  12433. this.$message.error("请选择要添加的任务");
  12434. return;
  12435. }
  12436. if (
  12437. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12438. this.taskCount
  12439. ].toolChoose[0].tool.length
  12440. ) {
  12441. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12442. this.taskCount
  12443. ].toolChoose[0].tool = this.checktoolArray;
  12444. } else {
  12445. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12446. this.taskCount
  12447. ].toolChoose.push({
  12448. tool: this.checktoolArray,
  12449. toolDetail: "",
  12450. toolType: 0,
  12451. askCount: 1,
  12452. askTitle: "",
  12453. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12454. });
  12455. }
  12456. let params = [
  12457. {
  12458. cid: this.id,
  12459. chapters: JSON.stringify(this.chapInfoList),
  12460. uid: this.userid,
  12461. unitIndex: this.courseType,
  12462. },
  12463. ];
  12464. this.ajax
  12465. .post(this.$store.state.api + "updateWorkNew4", params)
  12466. .then((res) => {
  12467. this.$message({
  12468. message: "添加成功",
  12469. type: "success",
  12470. });
  12471. this.checktoolArray = [];
  12472. this.getCourseDetail(2);
  12473. this.checkBz(
  12474. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12475. this.taskCount
  12476. ].toolChoose.length - 1
  12477. );
  12478. this.toolDialogVisible = false;
  12479. this.refreshCourse();
  12480. this.$forceUpdate();
  12481. })
  12482. .catch((err) => {
  12483. console.error(err);
  12484. });
  12485. },
  12486. checkBz(index) {
  12487. this.isUpdateToolDetail = false;
  12488. this.$forceUpdate();
  12489. setTimeout(() => {
  12490. document.scrollingElement.scrollTop =
  12491. document.querySelectorAll(".filebox")[index].offsetTop +
  12492. document.querySelector(".student_body").offsetTop;
  12493. }, 500);
  12494. },
  12495. updateToolDetail(i, type) {
  12496. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12497. this.toolDetailIndex = i
  12498. this.isUpdateToolDetail1 = true;
  12499. setTimeout(() => {
  12500. this.updateToolDetailInner = JSON.parse(
  12501. JSON.stringify(
  12502. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12503. this.taskCount
  12504. ].toolChoose[i].toolDetail
  12505. )
  12506. );
  12507. document.querySelector(".checkTextArea").focus();
  12508. }, 0);
  12509. } else if((this.isUpdateToolDetail1 && type != 2)){
  12510. // this.toolDetailIndex = i;
  12511. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12512. this.taskCount
  12513. ].toolChoose[i].toolDetail = JSON.parse(
  12514. JSON.stringify(this.updateToolDetailInner)
  12515. );
  12516. let params = [
  12517. {
  12518. cid: this.id,
  12519. chapters: JSON.stringify(this.chapInfoList),
  12520. uid: this.userid,
  12521. unitIndex: this.courseType,
  12522. },
  12523. ];
  12524. this.ajax
  12525. .post(this.$store.state.api + "updateWorkNew4", params)
  12526. .then((res) => {
  12527. this.isUpdateToolDetail1 = false;
  12528. this.$message({
  12529. message: "修改成功",
  12530. type: "success",
  12531. });
  12532. this.toolDetailIndex = null;
  12533. this.updateToolDetailInner = "";
  12534. this.getCourseDetail(2);
  12535. this.$forceUpdate();
  12536. })
  12537. .catch((err) => {
  12538. console.error(err);
  12539. });
  12540. } else if((this.isUpdateToolDetail1 && type == 2)){
  12541. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12542. this.taskCount
  12543. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12544. JSON.stringify(this.updateToolDetailInner)
  12545. );
  12546. let params = [
  12547. {
  12548. cid: this.id,
  12549. chapters: JSON.stringify(this.chapInfoList),
  12550. uid: this.userid,
  12551. unitIndex: this.courseType,
  12552. },
  12553. ];
  12554. this.ajax
  12555. .post(this.$store.state.api + "updateWorkNew4", params)
  12556. .then((res) => {
  12557. this.$message({
  12558. message: "修改成功",
  12559. type: "success",
  12560. });
  12561. this.toolDetailIndex = i;
  12562. this.isUpdateToolDetail1 = true;
  12563. setTimeout(() => {
  12564. this.updateToolDetailInner = JSON.parse(
  12565. JSON.stringify(
  12566. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12567. this.taskCount
  12568. ].toolChoose[i].toolDetail
  12569. )
  12570. );
  12571. document.querySelector(".checkTextArea").focus();
  12572. }, 0);
  12573. this.getCourseDetail(2);
  12574. this.$forceUpdate();
  12575. })
  12576. .catch((err) => {
  12577. console.error(err);
  12578. });
  12579. }
  12580. },
  12581. jumpGj(i, j, k, l) {
  12582. for (var z = 0; z < this.navList.length; z++) {
  12583. for (var q = 0; q < this.navList[z].task.length; q++) {
  12584. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12585. this.navList[z].task[q].tool[w].isTool = false;
  12586. }
  12587. }
  12588. }
  12589. this.navList[i].task[j].tool[k].isTool =
  12590. !this.navList[i].task[j].tool[k].isTool;
  12591. var a = document.scrollingElement;
  12592. this.navId = ""
  12593. let target = document.querySelector(`#gj${k}`);
  12594. if (target) {
  12595. target.scrollIntoView(true);
  12596. setTimeout(() => {
  12597. a.scrollTop = a.scrollTop - 150;
  12598. }, 0);
  12599. }
  12600. if (l) {
  12601. this.courseType = i;
  12602. // this.navId = l;
  12603. this.taskCount = j;
  12604. this.selectPz();
  12605. this.getHomeWork();
  12606. this.getCourseDetail(2);
  12607. }
  12608. // var b = this.$refs["bz" + k][0];
  12609. // a.scrollTop = b.offsetTop;
  12610. },
  12611. addTools2(i) {
  12612. if (i == 4) {
  12613. // this.openTools2(4);
  12614. this.$message.error("暂未开放");
  12615. return;
  12616. }
  12617. if (i == 45) {
  12618. // this.openTools2(45);
  12619. this.$message.error("暂未开放");
  12620. return;
  12621. }
  12622. if (i == 47) {
  12623. // this.openTools2(47);
  12624. this.$message.error("暂未开放");
  12625. return;
  12626. }
  12627. if (i == 49) {
  12628. // this.openTools2(49);
  12629. this.$message.error("暂未开放");
  12630. return;
  12631. }
  12632. if (i == 62) {
  12633. // this.openTools(itemTaskIndex, 62, toolIndex);
  12634. this.$message.error("暂未开放");
  12635. return;
  12636. }
  12637. if (i == 15) {
  12638. // this.openTools(itemTaskIndex, 15, toolIndex);
  12639. this.$message.error("暂未开放");
  12640. return;
  12641. }
  12642. if (i == 40) {
  12643. // this.openTools(itemTaskIndex, 40, toolIndex);
  12644. this.$message.error("暂未开放");
  12645. return;
  12646. }
  12647. if (i == 41) {
  12648. // this.openTools(itemTaskIndex, 41, toolIndex);
  12649. this.$message.error("暂未开放");
  12650. return;
  12651. }
  12652. if (i == 42) {
  12653. // this.openTools(itemTaskIndex, 42, toolIndex);
  12654. this.$message.error("暂未开放");
  12655. return;
  12656. }
  12657. if (this.checktoolArray.length > 0) {
  12658. if (this.checktoolArray.indexOf(i) != -1) {
  12659. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12660. } else {
  12661. this.checktoolArray = [];
  12662. this.checktoolArray.push(i);
  12663. }
  12664. } else {
  12665. this.checktoolArray.push(i);
  12666. }
  12667. this.$forceUpdate();
  12668. },
  12669. jump() {
  12670. window.parent.postMessage({ tools: "43" }, "*");
  12671. },
  12672. getUpdateMore(f, checkboxList, searchTN, index) {
  12673. this.dialogVisibleMember = f;
  12674. this.checkboxList = checkboxList;
  12675. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12676. this.plIndex = index;
  12677. },
  12678. setPlname(a) {
  12679. if (this.plworkFile.length) {
  12680. this.plworkFile[this.plIndex].username = a;
  12681. } else {
  12682. this.worksSName = a;
  12683. }
  12684. this.dialogVisibleMember = false;
  12685. },
  12686. previewImg(url) {
  12687. this.$hevueImgPreview(url);
  12688. },
  12689. checkImg(list) {
  12690. if (!list.length) {
  12691. return;
  12692. }
  12693. this.$hevueImgPreview({
  12694. multiple: true, // 开启多图预览模式
  12695. imgList: list, // 需要预览的多图数组
  12696. });
  12697. },
  12698. change(val) {
  12699. console.log(val);
  12700. },
  12701. goTo(path) {
  12702. this.$router.push(path);
  12703. },
  12704. handlePictureCardPreview(url) {
  12705. this.dialogImageUrl = url;
  12706. this.pictureDialog = true;
  12707. },
  12708. clean(type) {
  12709. if (type == 1) {
  12710. this.studyJuri[0].cover.splice(0, 1);
  12711. } else if (type == 2) {
  12712. this.studyJuri[0].upVedio.splice(0, 1);
  12713. } else {
  12714. this.studyJuri[0].upFile.splice(0, 1);
  12715. }
  12716. },
  12717. clean2(index) {
  12718. this.plworkFile.splice(index, 1);
  12719. },
  12720. handleClose(done) {
  12721. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12722. this.videoDetail.sources[0].src = "";
  12723. }
  12724. this.commentIndexJson = {};
  12725. done();
  12726. },
  12727. fullTools() {
  12728. this.full = !this.full;
  12729. },
  12730. imgChange(file, fileList, type) {
  12731. if (type == 1) {
  12732. var _tmp = this.studyJuri[0].cover;
  12733. } else if (type == 2) {
  12734. var _tmp = this.studyJuri[0].upVedio;
  12735. } else {
  12736. var _tmp = this.studyJuri[0].upFile;
  12737. }
  12738. this.noneBtnImg = _tmp.length >= 1;
  12739. },
  12740. setContent(bool) {
  12741. this.contentDialog = bool;
  12742. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12743. document.querySelector(".workd_media").style.height = "650px";
  12744. } else if (document.querySelector(".workd_media")) {
  12745. document.querySelector(".workd_media").style.height = "auto";
  12746. }
  12747. },
  12748. setContent2(bool) {
  12749. this.mlDialog = bool;
  12750. if (
  12751. bool &&
  12752. this.contentDialog &&
  12753. document.querySelector(".workd_media")
  12754. ) {
  12755. document.querySelector(".workd_media").style.height = "650px";
  12756. } else if (document.querySelector(".workd_media")) {
  12757. document.querySelector(".workd_media").style.height = "auto";
  12758. }
  12759. this.$forceUpdate();
  12760. },
  12761. openToolAll() {
  12762. this.toolDialogVisible = true;
  12763. },
  12764. addImg(e) {
  12765. var el = e.currentTarget;
  12766. // this.$message.success('触发上传')
  12767. el.getElementsByTagName("input")[0].click();
  12768. e.target.value = "";
  12769. },
  12770. addSelectAnswer() {
  12771. let params = [
  12772. {
  12773. uid: this.userid,
  12774. cid: this.id,
  12775. stage: this.courseType,
  12776. task: this.taskCount,
  12777. tool: this.toolindex,
  12778. content: this.selectAnswer.answer,
  12779. type: 7,
  12780. },
  12781. ];
  12782. this.ajax
  12783. .post(this.$store.state.api + "addCourseWorks", params)
  12784. .then((res) => {
  12785. this.$message({
  12786. message: "提交成功",
  12787. type: "success",
  12788. });
  12789. this.dialogVisibleSelect = false;
  12790. // this.selectAnswer = {};
  12791. this.selectSWorks();
  12792. this.selectStudent();
  12793. })
  12794. .catch((err) => {
  12795. this.$message.error("提交失败");
  12796. console.error(err);
  12797. });
  12798. },
  12799. addSelectAnswerTeacher() {
  12800. let params = [
  12801. {
  12802. uid: this.sStudent.userid,
  12803. cid: this.id,
  12804. stage: this.courseType,
  12805. task: this.taskCount,
  12806. tool: this.toolindex,
  12807. content: this.selectAnswer.answer,
  12808. type: 7,
  12809. },
  12810. ];
  12811. this.ajax
  12812. .post(this.$store.state.api + "addCourseWorks", params)
  12813. .then((res) => {
  12814. this.$message({
  12815. message: "提交成功",
  12816. type: "success",
  12817. });
  12818. this.dialogVisibleSelectTeacher = false;
  12819. // this.selectAnswer = {};
  12820. this.selectSWorks();
  12821. this.selectStudent();
  12822. })
  12823. .catch((err) => {
  12824. this.$message.error("提交失败");
  12825. console.error(err);
  12826. });
  12827. },
  12828. addSenWorks() {
  12829. for (var i = 0; i < this.sentenceList.length; i++) {
  12830. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12831. if (
  12832. this.sentenceList[i].chooseSenList[j] == undefined ||
  12833. this.sentenceList[i].chooseSenList[j] == ""
  12834. ) {
  12835. this.$message.error("请将答案填写完整!");
  12836. return;
  12837. }
  12838. }
  12839. }
  12840. let params = [
  12841. {
  12842. uid: this.userid,
  12843. cid: this.id,
  12844. stage: this.courseType,
  12845. task: this.taskCount,
  12846. tool: this.toolindex,
  12847. content: JSON.stringify(this.sentenceList),
  12848. type: 9,
  12849. },
  12850. ];
  12851. this.ajax
  12852. .post(this.$store.state.api + "addCourseWorks", params)
  12853. .then((res) => {
  12854. this.$message({
  12855. message: "提交成功",
  12856. type: "success",
  12857. });
  12858. this.dialogVisibleSentence = false;
  12859. // this.selectAnswer = {};
  12860. this.selectSWorks();
  12861. this.selectStudent();
  12862. })
  12863. .catch((err) => {
  12864. this.$message.error("提交失败");
  12865. console.error(err);
  12866. });
  12867. },
  12868. addSenWorksTeacher() {
  12869. for (var i = 0; i < this.sentenceList.length; i++) {
  12870. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12871. if (
  12872. this.sentenceList[i].chooseSenList[j] == undefined ||
  12873. this.sentenceList[i].chooseSenList[j] == ""
  12874. ) {
  12875. this.$message.error("请将答案填写完整!");
  12876. return;
  12877. }
  12878. }
  12879. }
  12880. let params = [
  12881. {
  12882. uid: this.sStudent.userid,
  12883. cid: this.id,
  12884. stage: this.courseType,
  12885. task: this.taskCount,
  12886. tool: this.toolindex,
  12887. content: JSON.stringify(this.sentenceList),
  12888. type: 9,
  12889. },
  12890. ];
  12891. this.ajax
  12892. .post(this.$store.state.api + "addCourseWorks", params)
  12893. .then((res) => {
  12894. this.$message({
  12895. message: "提交成功",
  12896. type: "success",
  12897. });
  12898. this.dialogVisibleSentenceTeacher = false;
  12899. // this.selectAnswer = {};
  12900. this.selectSWorks();
  12901. this.selectStudent();
  12902. })
  12903. .catch((err) => {
  12904. this.$message.error("提交失败");
  12905. console.error(err);
  12906. });
  12907. },
  12908. returnTableText() {
  12909. this.$confirm("确定还原此模板吗?", "提示", {
  12910. confirmButtonText: "确定",
  12911. cancelButtonText: "取消",
  12912. type: "warning",
  12913. })
  12914. .then(() => {
  12915. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12916. })
  12917. .catch(() => {});
  12918. },
  12919. addTableWorks() {
  12920. let params = [
  12921. {
  12922. uid: this.userid,
  12923. cid: this.id,
  12924. stage: this.courseType,
  12925. task: this.taskCount,
  12926. tool: this.toolindex,
  12927. content: JSON.stringify(this.tableJson),
  12928. type: 10,
  12929. },
  12930. ];
  12931. this.ajax
  12932. .post(this.$store.state.api + "addCourseWorks", params)
  12933. .then((res) => {
  12934. this.$message({
  12935. message: "提交成功",
  12936. type: "success",
  12937. });
  12938. this.dialogVisibleTable = false;
  12939. // this.selectAnswer = {};
  12940. this.selectSWorks();
  12941. this.selectStudent();
  12942. })
  12943. .catch((err) => {
  12944. this.$message.error("提交失败");
  12945. console.error(err);
  12946. });
  12947. },
  12948. tableRowClassName({ row, rowIndex }) {
  12949. if ((rowIndex + 1) % 2 === 0) {
  12950. return "even_row";
  12951. } else {
  12952. return "";
  12953. }
  12954. },
  12955. addTableWorksTeacher() {
  12956. let params = [
  12957. {
  12958. uid: this.sStudent.userid,
  12959. cid: this.id,
  12960. stage: this.courseType,
  12961. task: this.taskCount,
  12962. tool: this.toolindex,
  12963. content: JSON.stringify(this.tableJson),
  12964. type: 10,
  12965. },
  12966. ];
  12967. this.ajax
  12968. .post(this.$store.state.api + "addCourseWorks", params)
  12969. .then((res) => {
  12970. this.$message({
  12971. message: "提交成功",
  12972. type: "success",
  12973. });
  12974. this.dialogVisibleTableTeacher = 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. returnWordText() {
  12985. this.$confirm("确定还原此模板吗?", "提示", {
  12986. confirmButtonText: "确定",
  12987. cancelButtonText: "取消",
  12988. type: "warning",
  12989. })
  12990. .then(() => {
  12991. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  12992. })
  12993. .catch(() => {});
  12994. },
  12995. addWordWorks() {
  12996. let params = [
  12997. {
  12998. uid: this.userid,
  12999. cid: this.id,
  13000. stage: this.courseType,
  13001. task: this.taskCount,
  13002. tool: this.toolindex,
  13003. content: JSON.stringify(this.wordJson),
  13004. type: 13,
  13005. atool: 52,
  13006. },
  13007. ];
  13008. this.ajax
  13009. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13010. .then((res) => {
  13011. this.$message({
  13012. message: "提交成功",
  13013. type: "success",
  13014. });
  13015. this.dialogVisibleWord = false;
  13016. // this.selectAnswer = {};
  13017. this.selectSWorks();
  13018. this.selectStudent();
  13019. })
  13020. .catch((err) => {
  13021. this.$message.error("提交失败");
  13022. console.error(err);
  13023. });
  13024. },
  13025. addWordWorksTeacher() {
  13026. let params = [
  13027. {
  13028. uid: this.sStudent.userid,
  13029. cid: this.id,
  13030. stage: this.courseType,
  13031. task: this.taskCount,
  13032. tool: this.toolindex,
  13033. content: JSON.stringify(this.wordJson),
  13034. type: 13,
  13035. atool: 52,
  13036. },
  13037. ];
  13038. this.ajax
  13039. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13040. .then((res) => {
  13041. this.$message({
  13042. message: "提交成功",
  13043. type: "success",
  13044. });
  13045. this.dialogVisibleWordTeacher = false;
  13046. // this.selectAnswer = {};
  13047. this.selectSWorks();
  13048. this.selectStudent();
  13049. })
  13050. .catch((err) => {
  13051. this.$message.error("提交失败");
  13052. console.error(err);
  13053. });
  13054. },
  13055. addCourseWorks(i) {
  13056. var typesql;
  13057. if (this.fileType === 0) {
  13058. typesql = 1;
  13059. } else if (this.fileType === 1) {
  13060. typesql = 4;
  13061. } else if (this.fileType === 2) {
  13062. typesql = 5;
  13063. } else if (this.fileType === 3) {
  13064. typesql = 12;
  13065. }
  13066. if (!this.studyJuri[0].cover[0].url) {
  13067. this.$message.error("请上传文件");
  13068. return;
  13069. }
  13070. let params = [
  13071. {
  13072. uid: this.userid,
  13073. cid: this.id,
  13074. stage: this.courseType,
  13075. task: i,
  13076. tool: this.toolindex,
  13077. content: this.studyJuri[0].cover[0].url,
  13078. type: typesql,
  13079. },
  13080. ];
  13081. this.ajax
  13082. .post(this.$store.state.api + "addCourseWorksR", params)
  13083. .then((res) => {
  13084. this.$message({
  13085. message: "提交成功",
  13086. type: "success",
  13087. });
  13088. this.studyJuri[0].cover = [];
  13089. this.dialogVisible = false;
  13090. this.getCourseDetail(2);
  13091. })
  13092. .catch((err) => {
  13093. this.$message.error("提交失败");
  13094. console.error(err);
  13095. });
  13096. },
  13097. addCourseWorksPl(i) {
  13098. let _files = this.plworkFile;
  13099. var c = 1;
  13100. for (var k = 0; k < _files.length; k++) {
  13101. if (!_files[k].username) {
  13102. c = 2;
  13103. }
  13104. }
  13105. if (c == 2) {
  13106. this.$message.error("请填写学生姓名");
  13107. return;
  13108. }
  13109. let params = [
  13110. {
  13111. ateacher: this.userid,
  13112. cid: this.id,
  13113. stage: this.courseType,
  13114. task: i,
  13115. tool: this.toolindex,
  13116. content: JSON.stringify(_files),
  13117. },
  13118. ];
  13119. this.ajax
  13120. .post(this.$store.state.api + "addCourseWorksPl", params)
  13121. .then((res) => {
  13122. this.$message({
  13123. message: "提交成功",
  13124. type: "success",
  13125. });
  13126. this.plworkFile = [];
  13127. this.dialogVisiblePl = false;
  13128. this.getCourseDetail(2);
  13129. })
  13130. .catch((err) => {
  13131. this.$message.error("提交失败");
  13132. console.error(err);
  13133. });
  13134. },
  13135. addCourseWorks2(i) {
  13136. var typesql;
  13137. if (this.fileType === 0) {
  13138. typesql = 0;
  13139. } else if (this.fileType === 1) {
  13140. typesql = 1;
  13141. } else if (this.fileType === 2) {
  13142. typesql = 3;
  13143. } else if (this.fileType === 3) {
  13144. typesql = 12;
  13145. }
  13146. if (!this.studyJuri[0].cover[0].url) {
  13147. this.$message.error("请上传文件");
  13148. return;
  13149. }
  13150. let params = [
  13151. {
  13152. uid: this.userid,
  13153. cid: this.id,
  13154. stage: this.courseType,
  13155. task: i,
  13156. tool: this.toolindex,
  13157. content: JSON.stringify({
  13158. type: typesql,
  13159. groupIndex: this.groupIndex,
  13160. url: this.studyJuri[0].cover[0].url,
  13161. }),
  13162. type: 11,
  13163. atool: 49,
  13164. text: "",
  13165. },
  13166. ];
  13167. this.ajax
  13168. .post(this.$store.state.api + "addCourseWorks5", params)
  13169. .then((res) => {
  13170. this.$message({
  13171. message: "提交成功",
  13172. type: "success",
  13173. });
  13174. this.studyJuri[0].cover = [];
  13175. this.dialogVisibleGroupWork = false;
  13176. this.getCourseDetail(2);
  13177. })
  13178. .catch((err) => {
  13179. this.$message.error("提交失败");
  13180. console.error(err);
  13181. });
  13182. },
  13183. addEnglishWork() {
  13184. this.myAnList = this.$refs['engJson'].myAnswerList;
  13185. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13186. this.$message.error("请输入作文标题和正文!");
  13187. return;
  13188. }
  13189. let params = [
  13190. {
  13191. uid: this.userid,
  13192. cid: this.id,
  13193. stage: this.courseType,
  13194. task: this.taskCount,
  13195. tool: this.englishToolIndex,
  13196. content: JSON.stringify(this.myAnList),
  13197. type: 16,
  13198. atool: 69,
  13199. text: "",
  13200. },
  13201. ];
  13202. this.ajax
  13203. .post(this.$store.state.api + "addCourseWorks5", params)
  13204. .then((res) => {
  13205. this.$message({
  13206. message: "提交成功",
  13207. type: "success",
  13208. });
  13209. this.myAnList = {};
  13210. this.englishList = {};
  13211. this.englishToolIndex = 0;
  13212. this.engDialogVisible = false;
  13213. this.selectSWorks();
  13214. this.selectStudent();
  13215. })
  13216. .catch((err) => {
  13217. this.$message.error("提交失败");
  13218. console.error(err);
  13219. });
  13220. },
  13221. addCourseWorksGong(i, data, tool) {
  13222. let params = [
  13223. {
  13224. uid: this.userid,
  13225. cid: this.id,
  13226. stage: this.courseType,
  13227. task: this.taskCount,
  13228. tool: i,
  13229. content: data,
  13230. type: 12,
  13231. atool: tool,
  13232. text: "",
  13233. },
  13234. ];
  13235. this.ajax
  13236. .post(this.$store.state.api + "addCourseWorks5", params)
  13237. .then((res) => {
  13238. this.$message({
  13239. message: "提交成功",
  13240. type: "success",
  13241. });
  13242. this.studyJuri[0].cover = [];
  13243. this.selectSWorks();
  13244. this.selectStudent();
  13245. })
  13246. .catch((err) => {
  13247. this.$message.error("提交失败");
  13248. console.error(err);
  13249. });
  13250. },
  13251. addCourseWorksGongTeacher(i, data, tool) {
  13252. let params = [
  13253. {
  13254. uid: this.sStudent.userid,
  13255. cid: this.id,
  13256. stage: this.courseType,
  13257. task: this.taskCount,
  13258. tool: i,
  13259. content: data,
  13260. type: 12,
  13261. atool: tool,
  13262. text: "",
  13263. },
  13264. ];
  13265. this.ajax
  13266. .post(this.$store.state.api + "addCourseWorks5", params)
  13267. .then((res) => {
  13268. this.$message({
  13269. message: "提交成功",
  13270. type: "success",
  13271. });
  13272. this.studyJuri[0].cover = [];
  13273. this.dialogVisibleWorks = false;
  13274. this.selectSWorks();
  13275. this.selectStudent();
  13276. })
  13277. .catch((err) => {
  13278. this.$message.error("提交失败");
  13279. console.error(err);
  13280. });
  13281. },
  13282. addCourseWorksGongPl(i, data, tool, type) {
  13283. let params = [
  13284. {
  13285. uid: this.sStudent.userid,
  13286. cid: this.id,
  13287. stage: this.courseType,
  13288. task: this.taskCount,
  13289. tool: i,
  13290. content: data,
  13291. type: type,
  13292. atool: tool,
  13293. text: "",
  13294. },
  13295. ];
  13296. this.ajax
  13297. .post(this.$store.state.api + "addCourseWorks5", params)
  13298. .then((res) => {
  13299. this.$message({
  13300. message: "提交成功",
  13301. type: "success",
  13302. });
  13303. this.studyJuri[0].cover = [];
  13304. this.dialogVisibleWorks = false;
  13305. this.selectSWorks();
  13306. this.selectStudent();
  13307. })
  13308. .catch((err) => {
  13309. this.$message.error("提交失败");
  13310. console.error(err);
  13311. });
  13312. },
  13313. addCourseWorksTeacher(i) {
  13314. var typesql;
  13315. if (this.sTool == 32) {
  13316. this.addCourseWorksGongTeacher(
  13317. this.toolindex,
  13318. this.studyJuri[0].cover[0].url,
  13319. this.sTool
  13320. );
  13321. return;
  13322. }
  13323. if (this.fileType === 0) {
  13324. typesql = 1;
  13325. } else if (this.fileType === 1) {
  13326. typesql = 4;
  13327. } else if (this.fileType === 2) {
  13328. typesql = 5;
  13329. } else if (this.fileType === 3) {
  13330. typesql = 12;
  13331. }
  13332. if (this.sTool == 50) {
  13333. this.addCourseWorksGongPl(
  13334. this.toolindex,
  13335. this.studyJuri[0].cover[0].url,
  13336. this.sTool,
  13337. typesql
  13338. );
  13339. return;
  13340. }
  13341. if (!this.studyJuri[0].cover[0].url) {
  13342. this.$message.error("请上传文件");
  13343. return;
  13344. }
  13345. let params = [
  13346. {
  13347. uid: this.sStudent.userid,
  13348. cid: this.id,
  13349. stage: this.courseType,
  13350. task: i,
  13351. tool: this.toolindex,
  13352. content: this.studyJuri[0].cover[0].url,
  13353. type: typesql,
  13354. ateacher: this.userid,
  13355. },
  13356. ];
  13357. this.ajax
  13358. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13359. .then((res) => {
  13360. this.$message({
  13361. message: "提交成功",
  13362. type: "success",
  13363. });
  13364. this.studyJuri[0].cover = [];
  13365. this.dialogVisibleWorks = false;
  13366. this.getCourseDetail(2);
  13367. })
  13368. .catch((err) => {
  13369. this.$message.error("提交失败");
  13370. console.error(err);
  13371. });
  13372. },
  13373. selectUploadStudent(type) {
  13374. const loading = this.$loading.service({
  13375. background: "rgba(255, 255, 255, 0.7)",
  13376. target: document.body,
  13377. });
  13378. let params = {
  13379. cid: this.uploadCid,
  13380. oid: this.oid,
  13381. cn: "",
  13382. };
  13383. this.ajax
  13384. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13385. .then((res) => {
  13386. loading.close();
  13387. var studentK = [];
  13388. if (this.isWorksS[this.toolindex].length > 0) {
  13389. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13390. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13391. }
  13392. studentK = studentK.join(",");
  13393. }
  13394. this.uploadStudentJuri = res.data[0].filter((el) => {
  13395. return studentK.indexOf(el.userid) == -1;
  13396. });
  13397. if (this.worksSName && this.worksSid) {
  13398. this.uploadStudentJuri.push({
  13399. userid: this.worksSid,
  13400. name: this.worksSName,
  13401. });
  13402. }
  13403. if (type == 1) {
  13404. this.plworkFile = [];
  13405. this.dialogVisibleSname = true;
  13406. } else if (type == 2) {
  13407. this.dialogVisiblePl = true;
  13408. }
  13409. })
  13410. .catch((err) => {
  13411. loading.close();
  13412. console.error(err);
  13413. });
  13414. },
  13415. selectPickStudent() {
  13416. const loading = this.$loading.service({
  13417. background: "rgba(255, 255, 255, 0.7)",
  13418. target: document.body,
  13419. });
  13420. let params = {
  13421. cid: this.uploadCid,
  13422. oid: this.oid,
  13423. cn: "",
  13424. };
  13425. this.ajax
  13426. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13427. .then((res) => {
  13428. loading.close();
  13429. this.uploadStudentJuri = res.data[0];
  13430. this.dialogVisiblePickPeople = true;
  13431. })
  13432. .catch((err) => {
  13433. loading.close();
  13434. console.error(err);
  13435. });
  13436. },
  13437. arrayToArray(arrayo, arrayt) {
  13438. let array1 = arrayo;
  13439. let array2 = arrayt;
  13440. let commonElements = [];
  13441. for (let i = 0; i < array1.length; i++) {
  13442. for (let j = 0; j < array2.length; j++) {
  13443. if (array1[i] === array2[j]) {
  13444. commonElements.push(array1[i]);
  13445. }
  13446. }
  13447. }
  13448. return commonElements;
  13449. },
  13450. selectWorksStudent() {
  13451. let params = {
  13452. oid: this.oid,
  13453. cid: this.courseDetail.juri,
  13454. };
  13455. this.ajax
  13456. .get(this.$store.state.api + "selectWorksStudent", params)
  13457. .then((res) => {
  13458. var a = res.data[0];
  13459. for (var i = 0; i < this.isWorksS.length; i++) {
  13460. this.noWorksS[i] = [];
  13461. var studentK = [];
  13462. if (this.isWorksS[i].length > 0) {
  13463. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13464. studentK.push(this.isWorksS[i][z].uid);
  13465. }
  13466. studentK = studentK.join(",");
  13467. for (var j = 0; j < a.length; j++) {
  13468. if (studentK.indexOf(a[j].userid) == -1) {
  13469. if (this.tcid) {
  13470. // a[j].classid.indexOf(this.tcid) != -1
  13471. if (
  13472. this.arrayToArray(
  13473. a[j].classid.split(","),
  13474. this.tcid.split(",")
  13475. ).length
  13476. ) {
  13477. this.noWorksS[i].push({
  13478. student: a[j].name,
  13479. userid: a[j].userid,
  13480. });
  13481. }
  13482. } else {
  13483. this.noWorksS[i].push({
  13484. student: a[j].name,
  13485. userid: a[j].userid,
  13486. });
  13487. }
  13488. }
  13489. }
  13490. } else {
  13491. for (var k = 0; k < a.length; k++) {
  13492. if (this.tcid) {
  13493. if (
  13494. this.arrayToArray(
  13495. a[k].classid.split(","),
  13496. this.tcid.split(",")
  13497. ).length
  13498. ) {
  13499. this.noWorksS[i].push({
  13500. student: a[k].name,
  13501. userid: a[k].userid,
  13502. });
  13503. }
  13504. } else {
  13505. this.noWorksS[i].push({
  13506. student: a[k].name,
  13507. userid: a[k].userid,
  13508. });
  13509. }
  13510. }
  13511. }
  13512. }
  13513. this.$forceUpdate();
  13514. if (
  13515. Object.keys(this.commentDetail).length &&
  13516. Object.keys(this.commentIndexJson).length &&
  13517. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13518. ) {
  13519. let a = 1;
  13520. let c = this.commentIndexJson;
  13521. if (
  13522. this.commentIndexJson.gindex ||
  13523. this.commentIndexJson.gindex === 0
  13524. ) {
  13525. for (
  13526. var i = 0;
  13527. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13528. i++
  13529. ) {
  13530. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13531. groupA: for (var k = 0; k < _el.length; k++) {
  13532. let el = _el[k];
  13533. if (el.wid == this.commentDetail.wid) {
  13534. a = 2;
  13535. this.commentOther(
  13536. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13537. this.commentIndexJson.toolIndex,
  13538. k,
  13539. this.commentIndexJson.gindex
  13540. );
  13541. break groupA;
  13542. }
  13543. }
  13544. }
  13545. if (a === 1) {
  13546. this.commentDetail = [];
  13547. this.commentIndexJson = {};
  13548. this.commentDialogVisible = false;
  13549. this.$message("此作业已被删除");
  13550. }
  13551. } else {
  13552. if (this.isGroup && this.commentIndexJson.gid) {
  13553. groupA: for (
  13554. var i = 0;
  13555. i < this.courseGroup.group.length;
  13556. i++
  13557. ) {
  13558. let _group = this.courseGroup.group[i];
  13559. if (_group.id == this.commentIndexJson.gid) {
  13560. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13561. for (var k = 0; k < _el2.length; k++) {
  13562. let el2 = _el2[k];
  13563. if (el2.wid == this.commentDetail.wid) {
  13564. a = 2;
  13565. this.commentOther(
  13566. _el2[k],
  13567. this.commentIndexJson.toolIndex,
  13568. k,
  13569. null,
  13570. this.commentIndexJson.gid
  13571. );
  13572. break groupA;
  13573. }
  13574. }
  13575. }
  13576. }
  13577. }
  13578. if (a == 1) {
  13579. for (
  13580. var i = 0;
  13581. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13582. i++
  13583. ) {
  13584. let el =
  13585. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13586. if (el.wid == this.commentDetail.wid) {
  13587. a = 2;
  13588. this.commentOther(
  13589. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13590. this.commentIndexJson.toolIndex,
  13591. i
  13592. );
  13593. break;
  13594. }
  13595. }
  13596. }
  13597. if (a === 1) {
  13598. this.commentDetail = [];
  13599. this.commentIndexJson = {};
  13600. this.commentDialogVisible = false;
  13601. this.$message("此作业已被删除");
  13602. }
  13603. }
  13604. }
  13605. })
  13606. .catch((err) => {
  13607. console.error(err);
  13608. });
  13609. },
  13610. selectStudent() {
  13611. //学生查看自己作业
  13612. let params = {
  13613. uid: this.userid,
  13614. cid: this.id,
  13615. s: this.courseType,
  13616. t: this.taskCount,
  13617. };
  13618. this.ajax
  13619. .get(this.$store.state.api + "selectStudentWorks", params)
  13620. .then((res) => {
  13621. var a =
  13622. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13623. this.taskCount
  13624. ].toolChoose;
  13625. var b = res.data[0];
  13626. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13627. var y = [
  13628. "AVI",
  13629. "NAVI",
  13630. "MPEG",
  13631. "ASF",
  13632. "MOV",
  13633. "WMV",
  13634. "3GP",
  13635. "RM",
  13636. "RMVB",
  13637. "FLV",
  13638. "F4V",
  13639. "H.264",
  13640. "H.265",
  13641. "REAL VIDEO",
  13642. "MKV",
  13643. "WebM",
  13644. "HDDVD",
  13645. "MP4",
  13646. "MPG",
  13647. "M4V",
  13648. "MGV",
  13649. "OGV",
  13650. "QTM",
  13651. "STR",
  13652. "AMC",
  13653. "DVX",
  13654. "EVO",
  13655. "DAT",
  13656. "OGG",
  13657. "OGM",
  13658. ];
  13659. for (var i = 0; i < a.length; i++) {
  13660. this.workStudent[i] = [];
  13661. for (var j = 0; j < b.length; j++) {
  13662. if (i == b[j].tool) {
  13663. if (
  13664. (b[j].type == 1 ||
  13665. b[j].type == 4 ||
  13666. b[j].type == 5 ||
  13667. b[j].type == 6 ||
  13668. b[j].type == 12 ||
  13669. b[j].type == 7) &&
  13670. a[i].tool[0] != 15 &&
  13671. a[i].tool[0] != 4 &&
  13672. a[i].tool[0] != 45 &&
  13673. a[i].tool[0] != 50 &&
  13674. a[i].tool[0] != 32 &&
  13675. a[i].tool[0] != 57 &&
  13676. a[i].tool[0] != 52 &&
  13677. a[i].tool[0] != 69
  13678. ) {
  13679. if (
  13680. c.indexOf(
  13681. b[j].content
  13682. .split(".")
  13683. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13684. ) != -1 &&
  13685. a[i].tool[0] == 16 &&
  13686. b[j].atool != 50
  13687. ) {
  13688. this.workStudent[i].push({
  13689. works: b[j].content,
  13690. sName: b[j].name,
  13691. score: b[j].score,
  13692. img: b[j].img,
  13693. type: 1,
  13694. time: b[j].time,
  13695. userid: b[j].userid,
  13696. wid: b[j].id,
  13697. });
  13698. } else if (
  13699. y.indexOf(
  13700. b[j].content
  13701. .split(".")
  13702. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13703. ) != -1 &&
  13704. a[i].tool[0] == 16 &&
  13705. b[j].atool != 50
  13706. ) {
  13707. this.workStudent[i].push({
  13708. userid: b[j].userid,
  13709. wid: b[j].id,
  13710. works: b[j].content,
  13711. sName: b[j].name,
  13712. score: b[j].score,
  13713. img: b[j].img,
  13714. type: 3,
  13715. time: b[j].time,
  13716. });
  13717. } else if (b[j].type == 6 && b[j].atool != 50) {
  13718. this.workStudent[i].push({
  13719. userid: b[j].userid,
  13720. wid: b[j].id,
  13721. works: b[j].content,
  13722. sName: b[j].name,
  13723. score: b[j].score,
  13724. img: b[j].img,
  13725. type: 4,
  13726. time: b[j].time,
  13727. });
  13728. } else if (b[j].type == 7 && b[j].atool != 50) {
  13729. this.workStudent[i].push({
  13730. userid: b[j].userid,
  13731. wid: b[j].id,
  13732. works: b[j].content,
  13733. sName: b[j].name,
  13734. score: b[j].score,
  13735. img: b[j].img,
  13736. type: 5,
  13737. time: b[j].time,
  13738. });
  13739. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13740. this.workStudent[i].push({
  13741. works: b[j].content,
  13742. sName: b[j].name,
  13743. score: b[j].score,
  13744. img: b[j].img,
  13745. type: 12,
  13746. time: b[j].time,
  13747. userid: b[j].userid,
  13748. wid: b[j].id,
  13749. });
  13750. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  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: 0,
  13757. time: b[j].time,
  13758. userid: b[j].userid,
  13759. wid: b[j].id,
  13760. });
  13761. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13762. this.workStudent[i].push({
  13763. works: b[j].content,
  13764. sName: b[j].name,
  13765. score: b[j].score,
  13766. img: b[j].img,
  13767. type: 0,
  13768. time: b[j].time,
  13769. userid: b[j].userid,
  13770. wid: b[j].id,
  13771. });
  13772. }
  13773. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13774. this.workStudent[i].push({
  13775. works: b[j].content,
  13776. sName: b[j].name,
  13777. score: b[j].score,
  13778. img: b[j].img,
  13779. type: 2,
  13780. time: b[j].time,
  13781. userid: b[j].userid,
  13782. wid: b[j].id,
  13783. });
  13784. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13785. //问卷
  13786. this.workStudent[i].push({
  13787. works: b[j].content,
  13788. sName: b[j].name,
  13789. score: b[j].score,
  13790. img: b[j].img,
  13791. type: 2,
  13792. time: b[j].time,
  13793. userid: b[j].userid,
  13794. wid: b[j].id,
  13795. });
  13796. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13797. //选择题
  13798. this.workStudent[i].push({
  13799. works: b[j].content,
  13800. sName: b[j].name,
  13801. score: b[j].score,
  13802. img: b[j].img,
  13803. type: 8,
  13804. time: b[j].time,
  13805. userid: b[j].userid,
  13806. wid: b[j].id,
  13807. });
  13808. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13809. //选择题
  13810. this.workStudent[i].push({
  13811. works: b[j].content,
  13812. sName: b[j].name,
  13813. score: b[j].score,
  13814. img: b[j].img,
  13815. type: 9,
  13816. time: b[j].time,
  13817. userid: b[j].userid,
  13818. wid: b[j].id,
  13819. });
  13820. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13821. //选择题
  13822. this.workStudent[i].push({
  13823. works: b[j].content,
  13824. sName: b[j].name,
  13825. score: b[j].score,
  13826. img: b[j].img,
  13827. type: 10,
  13828. time: b[j].time,
  13829. userid: b[j].userid,
  13830. wid: b[j].id,
  13831. });
  13832. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13833. //选择题
  13834. this.workStudent[i].push({
  13835. works: b[j].content,
  13836. sName: b[j].name,
  13837. score: b[j].score,
  13838. img: b[j].img,
  13839. type: 13,
  13840. time: b[j].time,
  13841. userid: b[j].userid,
  13842. wid: b[j].id,
  13843. });
  13844. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13845. //选择题
  13846. this.workStudent[i].push({
  13847. works: b[j].content,
  13848. sName: b[j].name,
  13849. score: b[j].score,
  13850. img: b[j].img,
  13851. type: 12,
  13852. time: b[j].time,
  13853. userid: b[j].userid,
  13854. wid: b[j].id,
  13855. });
  13856. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13857. //选择题
  13858. this.workStudent[i].push({
  13859. works: b[j].content,
  13860. sName: b[j].name,
  13861. score: b[j].score,
  13862. img: b[j].img,
  13863. type: 12,
  13864. time: b[j].time,
  13865. userid: b[j].userid,
  13866. wid: b[j].id,
  13867. });
  13868. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13869. //选择题
  13870. this.workStudent[i].push({
  13871. works: b[j].content,
  13872. sName: b[j].name,
  13873. score: b[j].score,
  13874. img: b[j].img,
  13875. type: 15,
  13876. time: b[j].time,
  13877. userid: b[j].userid,
  13878. wid: b[j].id,
  13879. });
  13880. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13881. //英语写作
  13882. this.workStudent[i].push({
  13883. works: b[j].content,
  13884. sName: b[j].name,
  13885. score: b[j].score,
  13886. img: b[j].img,
  13887. type: 16,
  13888. time: b[j].time,
  13889. userid: b[j].userid,
  13890. wid: b[j].id,
  13891. aiCode: b[j].aiCode,
  13892. teacherCode: b[j].teacherCode
  13893. });
  13894. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  13895. //英语口语
  13896. this.workStudent[i].push({
  13897. works: b[j].content,
  13898. sName: b[j].name,
  13899. score: b[j].score,
  13900. img: b[j].img,
  13901. type: 17,
  13902. time: b[j].time,
  13903. userid: b[j].userid,
  13904. wid: b[j].id,
  13905. });
  13906. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  13907. //英语口语
  13908. this.workStudent[i].push({
  13909. works: b[j].content,
  13910. sName: b[j].name,
  13911. score: b[j].score,
  13912. img: b[j].img,
  13913. type: 14,
  13914. time: b[j].time,
  13915. userid: b[j].userid,
  13916. wid: b[j].id,
  13917. });
  13918. }
  13919. }
  13920. }
  13921. }
  13922. })
  13923. .catch((err) => {
  13924. console.error(err);
  13925. });
  13926. },
  13927. openVideo(w) {
  13928. this.videoDetail = {};
  13929. this.playerOptions1.sources[0].src = w.works;
  13930. this.videoDetail = this.playerOptions1;
  13931. this.videoVisible = true;
  13932. },
  13933. isLikes(wid, uid, t, c, isLikes) {
  13934. if (isLikes == false) {
  13935. let params = [
  13936. {
  13937. wid: wid,
  13938. lid: uid,
  13939. t: t,
  13940. c: c,
  13941. },
  13942. ];
  13943. this.ajax
  13944. .post(this.$store.state.api + "insertComment", params)
  13945. .then((res) => {
  13946. this.$message({
  13947. message: "点赞成功",
  13948. type: "success",
  13949. });
  13950. this.selectSWorks();
  13951. this.selectStudent();
  13952. })
  13953. .catch((err) => {
  13954. this.$message.error("点赞失败");
  13955. console.error(err);
  13956. });
  13957. } else {
  13958. let params = {
  13959. wid: wid,
  13960. lid: uid,
  13961. type: t,
  13962. };
  13963. this.ajax
  13964. .get(this.$store.state.api + "deleteComment", params)
  13965. .then((res) => {
  13966. this.$message({
  13967. message: "取消点赞成功",
  13968. type: "success",
  13969. });
  13970. this.selectSWorks();
  13971. this.selectStudent();
  13972. })
  13973. .catch((err) => {
  13974. console.error(err);
  13975. });
  13976. }
  13977. },
  13978. deleteComment(wid) {
  13979. this.$confirm("确定删除此评论吗?", "提示", {
  13980. confirmButtonText: "确定",
  13981. cancelButtonText: "取消",
  13982. type: "warning",
  13983. })
  13984. .then(() => {
  13985. let params = {
  13986. id: wid,
  13987. };
  13988. this.ajax
  13989. .get(this.$store.state.api + "deleteComment2", params)
  13990. .then((res) => {
  13991. this.$message({
  13992. message: "删除评论成功",
  13993. type: "success",
  13994. });
  13995. this.selectSWorks();
  13996. this.selectStudent();
  13997. })
  13998. .catch((err) => {
  13999. console.error(err);
  14000. });
  14001. })
  14002. .catch(() => {});
  14003. },
  14004. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14005. this.commentIndexJson = {
  14006. toolIndex: toolIndex,
  14007. wIndex: wIndex,
  14008. gindex: gindex,
  14009. gid: gid,
  14010. };
  14011. this.commentDetail = [];
  14012. this.commentDialogVisible = true;
  14013. this.commentDetail = w;
  14014. if (w.works && w.type == 1) {
  14015. // this.pptImgUrl = "";
  14016. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14017. if (
  14018. a.indexOf(
  14019. w.works
  14020. .split(".")
  14021. [w.works.split(".").length - 1].toLocaleUpperCase()
  14022. ) != -1
  14023. ) {
  14024. let _uuurl = await this.checkLink(w.works);
  14025. this.pptImgUrl =
  14026. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14027. this.showPDF = false;
  14028. } else if (
  14029. w.works
  14030. .split(".")
  14031. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14032. ) {
  14033. this.pptImgUrl = w.works;
  14034. this.showPDF = true;
  14035. }
  14036. } else if (w.works && w.type == 3) {
  14037. this.videoDetail = {};
  14038. this.playerOptions1.sources[0].src = w.works;
  14039. this.videoDetail = this.playerOptions1;
  14040. // this.videoVisible = true;
  14041. } else if (w.works && w.type == 4) {
  14042. this.eScore = JSON.parse(w.works);
  14043. this.rateJson =
  14044. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14045. this.taskCount
  14046. ].toolChoose[toolIndex].rateJson;
  14047. } else if (w.works && w.type == 10) {
  14048. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14049. } else if (w.works && w.type == 13) {
  14050. this.wordJson =
  14051. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14052. this.taskCount
  14053. ].toolChoose[toolIndex].wordJson;
  14054. }
  14055. },
  14056. async openScore(w, index) {
  14057. this.wScore = 0;
  14058. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14059. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14060. this.commentDetail = [];
  14061. if(w.type == 17){
  14062. this.dialogVisibleENScore = true;
  14063. }else{
  14064. this.dialogVisibleScore = true;
  14065. }
  14066. this.commentDetail = w;
  14067. if (w.works && w.type == 1) {
  14068. this.pptImgUrl = "";
  14069. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14070. if (
  14071. a.indexOf(
  14072. w.works
  14073. .split(".")
  14074. [w.works.split(".").length - 1].toLocaleUpperCase()
  14075. ) != -1
  14076. ) {
  14077. let _uuurl = await this.checkLink(w.works);
  14078. this.pptImgUrl =
  14079. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14080. this.showPDF = false;
  14081. } else if (
  14082. w.works
  14083. .split(".")
  14084. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14085. ) {
  14086. this.pptImgUrl = w.works;
  14087. this.showPDF = true;
  14088. }
  14089. } else if (w.works && w.type == 3) {
  14090. this.videoDetail = {};
  14091. this.playerOptions1.sources[0].src = w.works;
  14092. this.videoDetail = this.playerOptions1;
  14093. }else if(w.type == 17){
  14094. let englishVoiceJson = {}
  14095. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14096. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14097. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14098. .toolChoose[index].englishVoiceJson
  14099. : {};
  14100. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14101. }
  14102. },
  14103. addComment(wid, uid, t) {
  14104. if (this.commentText == "") {
  14105. this.$message.error("请输入评论");
  14106. return;
  14107. }
  14108. let params2 = [
  14109. {
  14110. wid: wid,
  14111. lid: uid,
  14112. t: t,
  14113. },
  14114. ];
  14115. this.ajax
  14116. .post(this.$store.state.api + "getComment", params2)
  14117. .then((res) => {
  14118. if (res.data[0].length > 0) {
  14119. this.$message.error("一个作业只能评论一条");
  14120. } else {
  14121. let params = [
  14122. {
  14123. wid: wid,
  14124. lid: uid,
  14125. t: t,
  14126. c: this.commentText,
  14127. },
  14128. ];
  14129. this.ajax
  14130. .post(this.$store.state.api + "insertComment", params)
  14131. .then((res) => {
  14132. this.$message({
  14133. message: "评论成功",
  14134. type: "success",
  14135. });
  14136. this.commentText = "";
  14137. this.selectSWorks();
  14138. this.selectStudent();
  14139. })
  14140. .catch((err) => {
  14141. this.$message.error("评论失败");
  14142. console.error(err);
  14143. });
  14144. }
  14145. })
  14146. .catch((err) => {
  14147. // this.$message.error("评论失败");
  14148. console.error(err);
  14149. });
  14150. },
  14151. scoreWork(wid) {
  14152. if (this.wScore == 0) {
  14153. this.$message.error("请评分");
  14154. return;
  14155. }
  14156. let params = [
  14157. {
  14158. wid: wid,
  14159. score: JSON.stringify({
  14160. wScore: this.wScore,
  14161. detail: this.scoreDetail,
  14162. }),
  14163. },
  14164. ];
  14165. this.ajax
  14166. .post(this.$store.state.api + "scoreWork", params)
  14167. .then((res) => {
  14168. this.$message({
  14169. message: "评分成功",
  14170. type: "success",
  14171. });
  14172. this.wScore = 0;
  14173. this.scoreDetail = "";
  14174. this.dialogVisibleScore = false;
  14175. this.selectSWorks();
  14176. this.selectStudent();
  14177. })
  14178. .catch((err) => {
  14179. this.$message.error("评分失败");
  14180. console.error(err);
  14181. });
  14182. },
  14183. openXz(w, i) {
  14184. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14185. .taskJson[this.taskCount].toolChoose[i].selectJson
  14186. ? JSON.parse(
  14187. JSON.stringify(
  14188. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14189. this.taskCount
  14190. ].toolChoose[i].selectJson
  14191. )
  14192. )
  14193. : { url: "", select: [], answer: [] };
  14194. var a = w.works.split(",");
  14195. for (var k = 0; k < a.length; k++) {
  14196. a[k] = parseInt(a[k]);
  14197. }
  14198. this.selectAnswer = { answer: a, stu: w.sName };
  14199. this.isSelect = true;
  14200. this.dialogVisibleSelect = true;
  14201. },
  14202. openSen(w, i) {
  14203. this.sentenceList1 = JSON.parse(w.works);
  14204. this.sentenceList1.stuName = w.sName;
  14205. this.dialogVisibleSentence1 = true;
  14206. },
  14207. openPj(w, toolindex) {
  14208. this.isStar = true;
  14209. this.eScore = JSON.parse(w);
  14210. this.rateJson =
  14211. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14212. this.taskCount
  14213. ].toolChoose[toolindex].rateJson;
  14214. this.studentEvalDialogVisible = true;
  14215. },
  14216. openEnglishEva(id,i){
  14217. let params = {
  14218. wid: id
  14219. };
  14220. this.ajax
  14221. .get(this.$store.state.api + "selectEngWork", params)
  14222. .then((res) => {
  14223. this.evaEngJson.message = res.data[0][0];
  14224. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14225. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14226. .toolChoose[i].englishList;
  14227. this.engEvaDialogVisible = true;
  14228. })
  14229. .catch((err) => {
  14230. console.error(err);
  14231. });
  14232. },
  14233. deleteWorks(id) {
  14234. this.$confirm("确定删除此作业吗?", "提示", {
  14235. confirmButtonText: "确定",
  14236. cancelButtonText: "取消",
  14237. type: "warning",
  14238. })
  14239. .then(() => {
  14240. let params = [
  14241. {
  14242. id: id,
  14243. },
  14244. ];
  14245. this.ajax
  14246. .post(this.$store.state.api + "deleteCourseWork", params)
  14247. .then((res) => {
  14248. this.$message({
  14249. message: "删除成功",
  14250. type: "success",
  14251. });
  14252. this.selectStudent();
  14253. this.selectSWorks();
  14254. this.selectSLook();
  14255. })
  14256. .catch((err) => {
  14257. this.$message.error("网络异常");
  14258. console.error(err);
  14259. });
  14260. })
  14261. .catch(() => {});
  14262. },
  14263. selectSWorks(gindex) {
  14264. //教师查看全部作业
  14265. let params = {
  14266. cid: this.id,
  14267. s: this.courseType,
  14268. t: this.taskCount,
  14269. };
  14270. this.ajax
  14271. .get(this.$store.state.api + "selectSWorks", params)
  14272. .then((res) => {
  14273. var a =
  14274. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14275. this.taskCount
  14276. ].toolChoose;
  14277. var b = res.data[0];
  14278. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14279. var y = [
  14280. "AVI",
  14281. "NAVI",
  14282. "MPEG",
  14283. "ASF",
  14284. "MOV",
  14285. "WMV",
  14286. "3GP",
  14287. "RM",
  14288. "RMVB",
  14289. "FLV",
  14290. "F4V",
  14291. "H.264",
  14292. "H.265",
  14293. "REAL VIDEO",
  14294. "MKV",
  14295. "WebM",
  14296. "HDDVD",
  14297. "MP4",
  14298. "MPG",
  14299. "M4V",
  14300. "MGV",
  14301. "OGV",
  14302. "QTM",
  14303. "STR",
  14304. "AMC",
  14305. "DVX",
  14306. "EVO",
  14307. "DAT",
  14308. "OGG",
  14309. "OGM",
  14310. ];
  14311. var d = res.data[1];
  14312. var e = res.data[2];
  14313. var f = res.data[3];
  14314. let _worksStudent = [];
  14315. var _worksStudent2 = [];
  14316. for (var i = 0; i < a.length; i++) {
  14317. _worksStudent[i] = [];
  14318. _worksStudent2[i] = [];
  14319. if (
  14320. !this.isCloseList[i] ||
  14321. this.isCloseList[i].isClose == undefined
  14322. ) {
  14323. this.isCloseList[i] = { isClose: 0 };
  14324. }
  14325. this.groupStudent[i] = [];
  14326. this.groupStudentUid[i] = [];
  14327. if (this.isGroup) {
  14328. for (
  14329. var groupI = 0;
  14330. groupI < this.courseGroup.group.length;
  14331. groupI++
  14332. ) {
  14333. this.courseGroup.group[groupI].works[i] = [];
  14334. }
  14335. }
  14336. this.isWorksS[i] = [];
  14337. this.checkJson[i] = [];
  14338. if (a[i].tool[0] == 49) {
  14339. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14340. this.groupStudent[i][gA] = [];
  14341. this.groupStudentUid[i][gA] = [];
  14342. _worksStudent[i][gA] = [];
  14343. _worksStudent2[i][gA] = [];
  14344. this.isCloseList[i][gA] = [];
  14345. // debugger
  14346. for (var g = 0; g < f.length; g++) {
  14347. if (
  14348. f[g].ttype == 2 &&
  14349. this.tcid &&
  14350. this.arrayToArray(
  14351. (f[g].classid ? f[g].classid.split(",") : []),
  14352. this.tcid.split(",")
  14353. ).length == 0
  14354. ) {
  14355. continue;
  14356. }
  14357. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14358. (f[g].classid ? f[g].classid.split(",") : []),
  14359. this.tcid.split(",")
  14360. ).length !== 0 || this.arrayToArray(
  14361. (f[g].classid ? f[g].classid.split(",") : []),
  14362. this.classId ? this.classId.split(",") : []
  14363. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14364. this.groupStudent[i][gA].push(f[g]);
  14365. this.groupStudentUid[i][gA].push(f[g].userid);
  14366. }
  14367. }
  14368. }
  14369. this.$forceUpdate();
  14370. }
  14371. for (var j = 0; j < b.length; j++) {
  14372. if (
  14373. b[j].ttype == 2 &&
  14374. this.tcid &&
  14375. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14376. .length == 0
  14377. ) {
  14378. continue;
  14379. }
  14380. var likesCount = 0;
  14381. var commentCount = 0;
  14382. var isLikes = false;
  14383. var commentJson = [];
  14384. var likeJson = [];
  14385. var data = b[j];
  14386. if (i == b[j].tool) {
  14387. if (data.type == 2 && a[i].tool[0] == 4) {
  14388. // if(JSON.parse(data.content)[0].anwer){
  14389. var checkL =
  14390. JSON.parse(data.content)[0].anwer instanceof Array
  14391. ? JSON.parse(data.content)[0].anwer
  14392. : JSON.parse(data.content)[0].anwer.split(",");
  14393. for (var z = 0; z < checkL.length; z++) {
  14394. if (!this.checkJson[i][z]) {
  14395. this.checkJson[i].push({
  14396. checkCount: [],
  14397. checkPerson: [],
  14398. rightPerson: [],
  14399. });
  14400. }
  14401. if (!this.checkJson[i][z].checkCount.length) {
  14402. this.checkJson[i][z].checkCount = [];
  14403. let _askItemCount = JSON.parse(data.content)[0].askJson
  14404. .askJson[z].askItem;
  14405. for (var aic = 0; aic < _askItemCount; aic++) {
  14406. this.checkJson[i][z].checkCount.push(0);
  14407. }
  14408. }
  14409. if (checkL[z] instanceof Array) {
  14410. if (
  14411. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14412. checkL[z].sort().join(",")
  14413. ) {
  14414. this.checkJson[i][z].rightPerson.push(data.name);
  14415. }
  14416. for (var q = 0; q < checkL[z].length; q++) {
  14417. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14418. ? this.checkJson[i][z].checkPerson[
  14419. parseInt(checkL[z][q])
  14420. ].push(data.name)
  14421. : (this.checkJson[i][z].checkPerson[
  14422. parseInt(checkL[z][q])
  14423. ] = [data.name]);
  14424. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14425. ? this.checkJson[i][z].checkCount[
  14426. parseInt(checkL[z][q])
  14427. ]++
  14428. : (this.checkJson[i][z].checkCount[
  14429. parseInt(checkL[z][q])
  14430. ] = 1);
  14431. }
  14432. } else {
  14433. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14434. this.checkJson[i][z].rightPerson.push(data.name);
  14435. }
  14436. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14437. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14438. ? this.checkJson[i][z].checkPerson[
  14439. parseInt(checkL[z])
  14440. ].push(data.name)
  14441. : (this.checkJson[i][z].checkPerson[
  14442. parseInt(checkL[z])
  14443. ] = [data.name]);
  14444. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14445. ? this.checkJson[i][z].checkCount[
  14446. parseInt(checkL[z])
  14447. ]++
  14448. : (this.checkJson[i][z].checkCount[
  14449. parseInt(checkL[z])
  14450. ] = 1);
  14451. }
  14452. }
  14453. }
  14454. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14455. var checkL = JSON.parse(data.content)[0].anwer;
  14456. for (var z = 0; z < checkL.length; z++) {
  14457. if (!this.checkJson[i][z]) {
  14458. this.checkJson[i].push({
  14459. checkCount: [],
  14460. checkPerson: [],
  14461. rightPerson: [],
  14462. });
  14463. }
  14464. if (!this.checkJson[i][z].checkCount.length) {
  14465. this.checkJson[i][z].checkCount = [];
  14466. let _askItemCount = JSON.parse(data.content)[0].testJson
  14467. .testJson[z].testItem;
  14468. for (var aic = 0; aic < _askItemCount; aic++) {
  14469. this.checkJson[i][z].checkCount.push(0);
  14470. }
  14471. }
  14472. if (checkL[z] instanceof Array) {
  14473. if (
  14474. JSON.parse(data.content)[0]
  14475. .testJson.testJson[z].answer.sort()
  14476. .join(",") == checkL[z].sort().join(",")
  14477. ) {
  14478. this.checkJson[i][z].rightPerson.push(data.name);
  14479. }
  14480. for (var q = 0; q < checkL[z].length; q++) {
  14481. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14482. ? this.checkJson[i][z].checkPerson[
  14483. parseInt(checkL[z][q])
  14484. ].push(data.name)
  14485. : (this.checkJson[i][z].checkPerson[
  14486. parseInt(checkL[z][q])
  14487. ] = [data.name]);
  14488. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14489. ? this.checkJson[i][z].checkCount[
  14490. parseInt(checkL[z][q])
  14491. ]++
  14492. : (this.checkJson[i][z].checkCount[
  14493. parseInt(checkL[z][q])
  14494. ] = 1);
  14495. }
  14496. } else {
  14497. if (
  14498. JSON.parse(data.content)[0].testJson.testJson[z]
  14499. .answer == checkL[z]
  14500. ) {
  14501. this.checkJson[i][z].rightPerson.push(data.name);
  14502. }
  14503. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14504. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14505. ? this.checkJson[i][z].checkPerson[
  14506. parseInt(checkL[z])
  14507. ].push(data.name)
  14508. : (this.checkJson[i][z].checkPerson[
  14509. parseInt(checkL[z])
  14510. ] = [data.name]);
  14511. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14512. ? this.checkJson[i][z].checkCount[
  14513. parseInt(checkL[z])
  14514. ]++
  14515. : (this.checkJson[i][z].checkCount[
  14516. parseInt(checkL[z])
  14517. ] = 1);
  14518. }
  14519. }
  14520. }
  14521. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14522. var checkL = JSON.parse(data.content);
  14523. for (var z = 0; z < checkL.length; z++) {
  14524. if (!this.checkJson[i][z]) {
  14525. this.checkJson[i].push({
  14526. checkCount: [],
  14527. checkPerson: [],
  14528. rightPerson: [],
  14529. });
  14530. }
  14531. this.checkJson[i][z].checkPerson.push(data.name);
  14532. if (
  14533. checkL[z].chooseSenList.toString() ==
  14534. checkL[z].rightAnswer.toString()
  14535. ) {
  14536. this.checkJson[i][z].rightPerson.push(data.name);
  14537. }
  14538. }
  14539. }
  14540. for (var k = 0; k < d.length; k++) {
  14541. //点赞
  14542. if (d[k].workId == b[j].id) {
  14543. likesCount++;
  14544. likeJson.push(d[k])
  14545. if (d[k].likesId == this.userid) {
  14546. isLikes = true;
  14547. }
  14548. }
  14549. }
  14550. for (var l = 0; l < e.length; l++) {
  14551. //评论
  14552. if (e[l].workId == b[j].id) {
  14553. if (e[l].comment != "") {
  14554. commentCount++;
  14555. commentJson.push({
  14556. commentText: e[l].comment,
  14557. commentTime: e[l].commentTime,
  14558. commentPeople: e[l].commentPeople,
  14559. userid: e[l].userid,
  14560. wid: e[l].id,
  14561. });
  14562. }
  14563. }
  14564. }
  14565. if (
  14566. (b[j].type == 1 ||
  14567. b[j].type == 4 ||
  14568. b[j].type == 5 ||
  14569. b[j].type == 6 ||
  14570. b[j].type == 12 ||
  14571. b[j].type == 7) &&
  14572. a[i].tool[0] != 15 &&
  14573. a[i].tool[0] != 4 &&
  14574. a[i].tool[0] != 45 &&
  14575. a[i].tool[0] != 50 &&
  14576. a[i].tool[0] != 32 &&
  14577. a[i].tool[0] != 57 &&
  14578. a[i].tool[0] != 52
  14579. ) {
  14580. if (
  14581. c.indexOf(
  14582. b[j].content
  14583. .split(".")
  14584. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14585. ) != -1 &&
  14586. a[i].tool[0] == 16 &&
  14587. b[j].atool != 50
  14588. ) {
  14589. let _works = {
  14590. userid: b[j].userid,
  14591. ateacher: b[j].ateacher,
  14592. wid: b[j].id,
  14593. works: b[j].content,
  14594. sName: b[j].name,
  14595. type: 1,
  14596. ttype:b[j].ttype,
  14597. time: b[j].time,
  14598. score: b[j].score,
  14599. img: b[j].img,
  14600. likesCount: likesCount,
  14601. commentCount: commentCount,
  14602. isLikes: isLikes,
  14603. commentJson: commentJson,
  14604. likeJson:likeJson
  14605. };
  14606. if (this.isGroup) {
  14607. let isGw = 1;
  14608. for (
  14609. var groupI = 0;
  14610. groupI < this.courseGroup.group.length;
  14611. groupI++
  14612. ) {
  14613. let gid = this.courseGroup.group[groupI].id;
  14614. if (
  14615. this.courseGroupStudentUid[gid].indexOf(
  14616. b[j].userid
  14617. ) != -1
  14618. ) {
  14619. isGw = 2;
  14620. this.courseGroup.group[groupI].works[i].push(_works);
  14621. break;
  14622. }
  14623. }
  14624. if (isGw == 1) {
  14625. _worksStudent[i].push(_works);
  14626. }
  14627. } else {
  14628. _worksStudent[i].push(_works);
  14629. }
  14630. _worksStudent2[i].push(_works);
  14631. this.isWorksS[i].push({
  14632. uid: b[j].userid,
  14633. sName: b[j].name,
  14634. });
  14635. } else if (
  14636. y.indexOf(
  14637. b[j].content
  14638. .split(".")
  14639. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14640. ) != -1 &&
  14641. a[i].tool[0] == 16 &&
  14642. b[j].atool != 50
  14643. ) {
  14644. let _works = {
  14645. userid: b[j].userid,
  14646. ateacher: b[j].ateacher,
  14647. wid: b[j].id,
  14648. works: b[j].content,
  14649. sName: b[j].name,
  14650. type: 3,
  14651. ttype:b[j].ttype,
  14652. time: b[j].time,
  14653. score: b[j].score,
  14654. img: b[j].img,
  14655. likesCount: likesCount,
  14656. commentCount: commentCount,
  14657. isLikes: isLikes,
  14658. commentJson: commentJson,
  14659. likeJson:likeJson
  14660. };
  14661. if (this.isGroup) {
  14662. let isGw = 1;
  14663. for (
  14664. var groupI = 0;
  14665. groupI < this.courseGroup.group.length;
  14666. groupI++
  14667. ) {
  14668. let gid = this.courseGroup.group[groupI].id;
  14669. if (
  14670. this.courseGroupStudentUid[gid].indexOf(
  14671. b[j].userid
  14672. ) != -1
  14673. ) {
  14674. isGw = 2;
  14675. this.courseGroup.group[groupI].works[i].push(_works);
  14676. break;
  14677. }
  14678. }
  14679. if (isGw == 1) {
  14680. _worksStudent[i].push(_works);
  14681. }
  14682. } else {
  14683. _worksStudent[i].push(_works);
  14684. }
  14685. _worksStudent2[i].push(_works);
  14686. this.isWorksS[i].push({
  14687. uid: b[j].userid,
  14688. sName: b[j].name,
  14689. });
  14690. } else if (b[j].type == 6 && b[j].atool != 50) {
  14691. let _works = {
  14692. userid: b[j].userid,
  14693. ateacher: b[j].ateacher,
  14694. wid: b[j].id,
  14695. works: b[j].content,
  14696. sName: b[j].name,
  14697. type: 4,
  14698. ttype:b[j].ttype,
  14699. time: b[j].time,
  14700. score: b[j].score,
  14701. img: b[j].img,
  14702. likesCount: likesCount,
  14703. commentCount: commentCount,
  14704. isLikes: isLikes,
  14705. commentJson: commentJson,
  14706. likeJson:likeJson
  14707. };
  14708. _worksStudent[i].push(_works);
  14709. _worksStudent2[i].push(_works);
  14710. this.isWorksS[i].push({
  14711. uid: b[j].userid,
  14712. sName: b[j].name,
  14713. });
  14714. } else if (b[j].type == 7 && b[j].atool != 50) {
  14715. let _work = {
  14716. userid: b[j].userid,
  14717. ateacher: b[j].ateacher,
  14718. wid: b[j].id,
  14719. works: b[j].content,
  14720. sName: b[j].name,
  14721. type: 5,
  14722. ttype:b[j].ttype,
  14723. time: b[j].time,
  14724. score: b[j].score,
  14725. img: b[j].img,
  14726. likesCount: likesCount,
  14727. commentCount: commentCount,
  14728. isLikes: isLikes,
  14729. commentJson: commentJson,
  14730. likeJson:likeJson
  14731. };
  14732. _worksStudent[i].push(_work);
  14733. _worksStudent2[i].push(_work);
  14734. this.isWorksS[i].push({
  14735. uid: b[j].userid,
  14736. sName: b[j].name,
  14737. });
  14738. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14739. let _works = {
  14740. userid: b[j].userid,
  14741. ateacher: b[j].ateacher,
  14742. wid: b[j].id,
  14743. works: b[j].content,
  14744. sName: b[j].name,
  14745. type: 12,
  14746. ttype:b[j].ttype,
  14747. time: b[j].time,
  14748. score: b[j].score,
  14749. img: b[j].img,
  14750. likesCount: likesCount,
  14751. commentCount: commentCount,
  14752. isLikes: isLikes,
  14753. commentJson: commentJson,
  14754. likeJson:likeJson
  14755. };
  14756. if (this.isGroup) {
  14757. let isGw = 1;
  14758. for (
  14759. var groupI = 0;
  14760. groupI < this.courseGroup.group.length;
  14761. groupI++
  14762. ) {
  14763. let gid = this.courseGroup.group[groupI].id;
  14764. if (
  14765. this.courseGroupStudentUid[gid].indexOf(
  14766. b[j].userid
  14767. ) != -1
  14768. ) {
  14769. isGw = 2;
  14770. this.courseGroup.group[groupI].works[i].push(_works);
  14771. break;
  14772. }
  14773. }
  14774. if (isGw == 1) {
  14775. _worksStudent[i].push(_works);
  14776. }
  14777. } else {
  14778. _worksStudent[i].push(_works);
  14779. }
  14780. _worksStudent2[i].push(_works);
  14781. this.isWorksS[i].push({
  14782. uid: b[j].userid,
  14783. sName: b[j].name,
  14784. });
  14785. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14786. let _works = {
  14787. userid: b[j].userid,
  14788. ateacher: b[j].ateacher,
  14789. wid: b[j].id,
  14790. works: b[j].content,
  14791. sName: b[j].name,
  14792. type: 0,
  14793. ttype:b[j].ttype,
  14794. time: b[j].time,
  14795. score: b[j].score,
  14796. img: b[j].img,
  14797. likesCount: likesCount,
  14798. commentCount: commentCount,
  14799. isLikes: isLikes,
  14800. commentJson: commentJson,
  14801. likeJson:likeJson
  14802. };
  14803. if (this.isGroup) {
  14804. let isGw = 1;
  14805. for (
  14806. var groupI = 0;
  14807. groupI < this.courseGroup.group.length;
  14808. groupI++
  14809. ) {
  14810. let gid = this.courseGroup.group[groupI].id;
  14811. if (
  14812. this.courseGroupStudentUid[gid].indexOf(
  14813. b[j].userid
  14814. ) != -1
  14815. ) {
  14816. isGw = 2;
  14817. this.courseGroup.group[groupI].works[i].push(_works);
  14818. break;
  14819. }
  14820. }
  14821. if (isGw == 1) {
  14822. _worksStudent[i].push(_works);
  14823. }
  14824. } else {
  14825. _worksStudent[i].push(_works);
  14826. }
  14827. _worksStudent2[i].push(_works);
  14828. this.isWorksS[i].push({
  14829. uid: b[j].userid,
  14830. sName: b[j].name,
  14831. });
  14832. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14833. let _works = {
  14834. userid: b[j].userid,
  14835. ateacher: b[j].ateacher,
  14836. wid: b[j].id,
  14837. works: b[j].content,
  14838. sName: b[j].name,
  14839. type: 0,
  14840. ttype:b[j].ttype,
  14841. time: b[j].time,
  14842. score: b[j].score,
  14843. img: b[j].img,
  14844. likesCount: likesCount,
  14845. commentCount: commentCount,
  14846. isLikes: isLikes,
  14847. commentJson: commentJson,
  14848. likeJson:likeJson
  14849. };
  14850. if (this.isGroup) {
  14851. let isGw = 1;
  14852. for (
  14853. var groupI = 0;
  14854. groupI < this.courseGroup.group.length;
  14855. groupI++
  14856. ) {
  14857. let gid = this.courseGroup.group[groupI].id;
  14858. if (
  14859. this.courseGroupStudentUid[gid].indexOf(
  14860. b[j].userid
  14861. ) != -1
  14862. ) {
  14863. isGw = 2;
  14864. this.courseGroup.group[groupI].works[i].push(_works);
  14865. break;
  14866. }
  14867. }
  14868. if (isGw == 1) {
  14869. _worksStudent[i].push(_works);
  14870. }
  14871. } else {
  14872. _worksStudent[i].push(_works);
  14873. }
  14874. _worksStudent2[i].push(_works);
  14875. this.isWorksS[i].push({
  14876. uid: b[j].userid,
  14877. sName: b[j].name,
  14878. });
  14879. }
  14880. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14881. let _works = {
  14882. userid: b[j].userid,
  14883. ateacher: b[j].ateacher,
  14884. wid: b[j].id,
  14885. works: b[j].content,
  14886. sName: b[j].name,
  14887. type: 2,
  14888. ttype:b[j].ttype,
  14889. time: b[j].time,
  14890. score: b[j].score,
  14891. img: b[j].img,
  14892. likesCount: likesCount,
  14893. commentCount: commentCount,
  14894. isLikes: isLikes,
  14895. commentJson: commentJson,
  14896. likeJson:likeJson
  14897. };
  14898. if (this.isGroup) {
  14899. let isGw = 1;
  14900. for (
  14901. var groupI = 0;
  14902. groupI < this.courseGroup.group.length;
  14903. groupI++
  14904. ) {
  14905. let gid = this.courseGroup.group[groupI].id;
  14906. if (
  14907. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14908. -1
  14909. ) {
  14910. isGw = 2;
  14911. this.courseGroup.group[groupI].works[i].push(_works);
  14912. break;
  14913. }
  14914. }
  14915. if (isGw == 1) {
  14916. _worksStudent[i].push(_works);
  14917. }
  14918. } else {
  14919. _worksStudent[i].push(_works);
  14920. }
  14921. _worksStudent2[i].push(_works);
  14922. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14923. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14924. //问卷
  14925. let _work = {
  14926. userid: b[j].userid,
  14927. ateacher: b[j].ateacher,
  14928. wid: b[j].id,
  14929. works: b[j].content,
  14930. sName: b[j].name,
  14931. type: 2,
  14932. ttype:b[j].ttype,
  14933. time: b[j].time,
  14934. score: b[j].score,
  14935. img: b[j].img,
  14936. likesCount: likesCount,
  14937. commentCount: commentCount,
  14938. isLikes: isLikes,
  14939. commentJson: commentJson,
  14940. likeJson:likeJson
  14941. };
  14942. _worksStudent[i].push(_work);
  14943. _worksStudent2[i].push(_work);
  14944. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14945. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14946. //选择题
  14947. let _work = {
  14948. userid: b[j].userid,
  14949. ateacher: b[j].ateacher,
  14950. wid: b[j].id,
  14951. works: b[j].content,
  14952. sName: b[j].name,
  14953. type: 8,
  14954. ttype:b[j].ttype,
  14955. time: b[j].time,
  14956. score: b[j].score,
  14957. img: b[j].img,
  14958. likesCount: likesCount,
  14959. commentCount: commentCount,
  14960. isLikes: isLikes,
  14961. commentJson: commentJson,
  14962. likeJson:likeJson
  14963. };
  14964. _worksStudent[i].push(_work);
  14965. _worksStudent2[i].push(_work);
  14966. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14967. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14968. //选择题
  14969. let _work = {
  14970. userid: b[j].userid,
  14971. ateacher: b[j].ateacher,
  14972. wid: b[j].id,
  14973. works: b[j].content,
  14974. sName: b[j].name,
  14975. type: 9,
  14976. ttype:b[j].ttype,
  14977. time: b[j].time,
  14978. score: b[j].score,
  14979. img: b[j].img,
  14980. likesCount: likesCount,
  14981. commentCount: commentCount,
  14982. isLikes: isLikes,
  14983. commentJson: commentJson,
  14984. likeJson:likeJson
  14985. };
  14986. _worksStudent[i].push(_work);
  14987. _worksStudent2[i].push(_work);
  14988. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14989. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14990. //选择题
  14991. let _work = {
  14992. userid: b[j].userid,
  14993. ateacher: b[j].ateacher,
  14994. wid: b[j].id,
  14995. works: b[j].content,
  14996. sName: b[j].name,
  14997. type: 10,
  14998. ttype:b[j].ttype,
  14999. time: b[j].time,
  15000. score: b[j].score,
  15001. img: b[j].img,
  15002. likesCount: likesCount,
  15003. commentCount: commentCount,
  15004. isLikes: isLikes,
  15005. commentJson: commentJson,
  15006. likeJson:likeJson
  15007. };
  15008. _worksStudent[i].push(_work);
  15009. _worksStudent2[i].push(_work);
  15010. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15011. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15012. //选择题
  15013. let _work = {
  15014. userid: b[j].userid,
  15015. ateacher: b[j].ateacher,
  15016. wid: b[j].id,
  15017. works: b[j].content,
  15018. sName: b[j].name,
  15019. type: 13,
  15020. ttype:b[j].ttype,
  15021. time: b[j].time,
  15022. score: b[j].score,
  15023. img: b[j].img,
  15024. likesCount: likesCount,
  15025. commentCount: commentCount,
  15026. isLikes: isLikes,
  15027. commentJson: commentJson,
  15028. likeJson:likeJson
  15029. };
  15030. _worksStudent[i].push(_work);
  15031. _worksStudent2[i].push(_work);
  15032. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15033. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15034. //选择题
  15035. let _work = {
  15036. userid: b[j].userid,
  15037. ateacher: b[j].ateacher,
  15038. wid: b[j].id,
  15039. works: b[j].content,
  15040. sName: b[j].name,
  15041. type: 16,
  15042. ttype:b[j].ttype,
  15043. time: b[j].time,
  15044. score: b[j].score,
  15045. img: b[j].img,
  15046. likesCount: likesCount,
  15047. commentCount: commentCount,
  15048. isLikes: isLikes,
  15049. commentJson: commentJson,
  15050. aiCode: b[j].aiCode,
  15051. teacherCode: b[j].teacherCode,
  15052. likeJson:likeJson
  15053. };
  15054. _worksStudent[i].push(_work);
  15055. _worksStudent2[i].push(_work);
  15056. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15057. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15058. //英语口语
  15059. let _work = {
  15060. userid: b[j].userid,
  15061. ateacher: b[j].ateacher,
  15062. wid: b[j].id,
  15063. works: b[j].content,
  15064. sName: b[j].name,
  15065. type: 17,
  15066. ttype:b[j].ttype,
  15067. time: b[j].time,
  15068. score: b[j].score,
  15069. img: b[j].img,
  15070. likesCount: likesCount,
  15071. commentCount: commentCount,
  15072. isLikes: isLikes,
  15073. commentJson: commentJson,
  15074. likeJson:likeJson
  15075. };
  15076. _worksStudent[i].push(_work);
  15077. _worksStudent2[i].push(_work);
  15078. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15079. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15080. //交互视频
  15081. let _work = {
  15082. userid: b[j].userid,
  15083. ateacher: b[j].ateacher,
  15084. wid: b[j].id,
  15085. works: b[j].content,
  15086. sName: b[j].name,
  15087. type: 14,
  15088. ttype:b[j].ttype,
  15089. time: b[j].time,
  15090. score: b[j].score,
  15091. img: b[j].img,
  15092. likesCount: likesCount,
  15093. commentCount: commentCount,
  15094. isLikes: isLikes,
  15095. commentJson: commentJson,
  15096. likeJson:likeJson
  15097. };
  15098. _worksStudent[i].push(_work);
  15099. _worksStudent2[i].push(_work);
  15100. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15101. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15102. let _gindex = JSON.parse(b[j].content);
  15103. if (
  15104. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15105. b[j].userid
  15106. ) != -1
  15107. ) {
  15108. let _work = {
  15109. userid: b[j].userid,
  15110. ateacher: b[j].ateacher,
  15111. wid: b[j].id,
  15112. works: _gindex.url,
  15113. sName: b[j].name,
  15114. type: _gindex.type,
  15115. ttype:b[j].ttype,
  15116. time: b[j].time,
  15117. score: b[j].score,
  15118. img: b[j].img,
  15119. likesCount: likesCount,
  15120. commentCount: commentCount,
  15121. isLikes: isLikes,
  15122. commentJson: commentJson,
  15123. likeJson:likeJson
  15124. };
  15125. _worksStudent[i][_gindex.groupIndex].push(_work);
  15126. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15127. }
  15128. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15129. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15130. let _work = {
  15131. userid: b[j].userid,
  15132. ateacher: b[j].ateacher,
  15133. wid: b[j].id,
  15134. works: b[j].content,
  15135. sName: b[j].name ? b[j].name : b[j].userid,
  15136. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15137. ttype:b[j].ttype,
  15138. time: b[j].time,
  15139. score: b[j].score,
  15140. img: b[j].img,
  15141. likesCount: likesCount,
  15142. commentCount: commentCount,
  15143. isLikes: isLikes,
  15144. commentJson: commentJson,
  15145. likeJson:likeJson
  15146. };
  15147. _worksStudent[i].push(_work);
  15148. _worksStudent2[i].push(_work);
  15149. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15150. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15151. let _work = {
  15152. userid: b[j].userid,
  15153. ateacher: b[j].ateacher,
  15154. wid: b[j].id,
  15155. works: b[j].content,
  15156. sName: b[j].name ? b[j].name : b[j].userid,
  15157. type: 12,
  15158. ttype:b[j].ttype,
  15159. time: b[j].time,
  15160. score: b[j].score,
  15161. img: b[j].img,
  15162. likesCount: likesCount,
  15163. commentCount: commentCount,
  15164. isLikes: isLikes,
  15165. commentJson: commentJson,
  15166. likeJson:likeJson
  15167. };
  15168. _worksStudent[i].push(_work);
  15169. _worksStudent2[i].push(_work);
  15170. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15171. } else if (
  15172. a[i].tool[0] == 57 &&
  15173. b[j].atool == 57 &&
  15174. b[j].type == 12
  15175. ) {
  15176. let _work = {
  15177. userid: b[j].userid,
  15178. ateacher: b[j].ateacher,
  15179. wid: b[j].id,
  15180. works: b[j].content,
  15181. sName: b[j].name ? b[j].name : b[j].userid,
  15182. type: 12,
  15183. ttype:b[j].ttype,
  15184. time: b[j].time,
  15185. score: b[j].score,
  15186. img: b[j].img,
  15187. likesCount: likesCount,
  15188. commentCount: commentCount,
  15189. isLikes: isLikes,
  15190. commentJson: commentJson,
  15191. likeJson:likeJson
  15192. };
  15193. _worksStudent[i].push(_work);
  15194. _worksStudent2[i].push(_work);
  15195. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15196. } else if (
  15197. a[i].tool[0] == 57 &&
  15198. b[j].atool == 57 &&
  15199. b[j].type == 15
  15200. ) {
  15201. let _work = {
  15202. userid: b[j].userid,
  15203. ateacher: b[j].ateacher,
  15204. wid: b[j].id,
  15205. works: b[j].content,
  15206. sName: b[j].name ? b[j].name : b[j].userid,
  15207. type: 15,
  15208. ttype:b[j].ttype,
  15209. time: b[j].time,
  15210. score: b[j].score,
  15211. img: b[j].img,
  15212. likesCount: likesCount,
  15213. commentCount: commentCount,
  15214. isLikes: isLikes,
  15215. commentJson: commentJson,
  15216. likeJson:likeJson
  15217. };
  15218. _worksStudent[i].push(_work);
  15219. _worksStudent2[i].push(_work);
  15220. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15221. }
  15222. }
  15223. }
  15224. if (_worksStudent[i] && _worksStudent[i].length) {
  15225. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15226. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15227. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15228. var scoreA = parseFloat(jscoreA);
  15229. var scoreB = parseFloat(jscoreB);
  15230. if (scoreA == scoreB) {
  15231. return b.likesCount - a.likesCount;
  15232. }
  15233. return scoreB - scoreA;
  15234. });
  15235. if (this.isGroup) {
  15236. for (
  15237. var groupI = 0;
  15238. groupI < this.courseGroup.group.length;
  15239. groupI++
  15240. ) {
  15241. this.courseGroup.group[groupI].works[i] =
  15242. this.courseGroup.group[groupI].works[i].sort(function (
  15243. a,
  15244. b
  15245. ) {
  15246. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15247. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15248. var scoreA = parseFloat(jscoreA);
  15249. var scoreB = parseFloat(jscoreB);
  15250. if (scoreA == scoreB) {
  15251. return b.likesCount - a.likesCount;
  15252. }
  15253. return scoreB - scoreA;
  15254. });
  15255. }
  15256. }
  15257. }
  15258. }
  15259. this.timeWorkList = _worksStudent2;
  15260. for (var i = 0; i < a.length; i++) {
  15261. for (var j = 0; j < b.length; j++) {
  15262. var data = b[j];
  15263. if (i == b[j].tool) {
  15264. if (data.type == 2 || data.type == 8) {
  15265. for (var z = 0; z < this.checkJson[i].length; z++) {
  15266. this.checkJson[i][z].checkPerent = [];
  15267. this.checkJson[i][z].right = Math.round(
  15268. (this.checkJson[i][z].rightPerson.length /
  15269. parseInt(_worksStudent[i].length)) *
  15270. 100
  15271. );
  15272. let aaaa = this.checkJson[i][z];
  15273. for (
  15274. var k = 0;
  15275. k < this.checkJson[i][z].checkCount.length;
  15276. k++
  15277. ) {
  15278. this.checkJson[i][z].checkPerent.push(
  15279. Math.round(
  15280. (this.checkJson[i][z].checkCount[k] /
  15281. parseInt(_worksStudent[i].length)) *
  15282. 100
  15283. )
  15284. );
  15285. }
  15286. }
  15287. } else if (data.type == 9) {
  15288. for (var z = 0; z < this.checkJson[i].length; z++) {
  15289. this.checkJson[i][z].checkPerent = [];
  15290. this.checkJson[i][z].right = Math.round(
  15291. (this.checkJson[i][z].rightPerson.length /
  15292. this.checkJson[i][z].checkPerson.length) *
  15293. 100
  15294. );
  15295. }
  15296. }
  15297. }
  15298. }
  15299. }
  15300. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15301. this.joinGroup(gindex);
  15302. }
  15303. this.worksStudent = _worksStudent;
  15304. this.selectWorksStudent();
  15305. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15306. this.$nextTick(()=>{
  15307. setTimeout(()=>{
  15308. setTimeout(()=>{
  15309. this.panToolHeight('tool-'+ci);
  15310. }, 500)
  15311. }, 0)
  15312. })
  15313. }
  15314. })
  15315. .catch((err) => {
  15316. console.error(err);
  15317. });
  15318. },
  15319. pngToWhiteBg(file) {
  15320. const _file = file;
  15321. let read = new FileReader();
  15322. read.readAsDataURL(file); // 文件转base64
  15323. return new Promise((resolve, reject) => {
  15324. read.onload = (e) => {
  15325. let img = new Image();
  15326. img.src = e.target.result;
  15327. img.onload = async () => {
  15328. // 生成canvas
  15329. let canvas = document.createElement("canvas");
  15330. let context = canvas.getContext("2d");
  15331. // 绘制图片到canvas上
  15332. canvas.width = img.width;
  15333. canvas.height = img.height;
  15334. // 在canvas绘制前填充白色背景
  15335. context.fillStyle = "#fff";
  15336. context.fillRect(0, 0, canvas.width, canvas.height);
  15337. context.drawImage(img, 0, 0);
  15338. let base64 = canvas.toDataURL(file["type"], 1);
  15339. let newFile = this.dataUrlToFile(base64, _file);
  15340. resolve(newFile);
  15341. };
  15342. };
  15343. });
  15344. },
  15345. dataUrlToFile(dataurl, file) {
  15346. let arr = dataurl.split(","),
  15347. mime = arr[0].match(/:(.*?);/)[1],
  15348. bstr = atob(arr[1]),
  15349. n = bstr.length,
  15350. u8arr = new Uint8Array(n);
  15351. while (n--) {
  15352. u8arr[n] = bstr.charCodeAt(n);
  15353. }
  15354. // return new Blob([u8arr], { type: mime });
  15355. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15356. type: mime,
  15357. });
  15358. },
  15359. async beforeUpload1(event, type, i) {
  15360. // this.$message.success('进入上传')
  15361. var file = "";
  15362. if (type == 5) {
  15363. file = event;
  15364. } else {
  15365. file = event.target.files[0];
  15366. }
  15367. var credentials = {
  15368. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15369. secretAccessKey: "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",
  15370. }; //秘钥形式的登录上传
  15371. window.AWS.config.update(credentials);
  15372. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15373. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15374. var _this = this;
  15375. _this.progress = 0;
  15376. _this.proVisible = true;
  15377. _this.isFinishSize = 0;
  15378. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15379. var b = [
  15380. "DOC",
  15381. "DOCX",
  15382. "DOCM",
  15383. "DOTM",
  15384. "DOTX",
  15385. "PPTX",
  15386. "PPSX",
  15387. "PPT",
  15388. "PPS",
  15389. "PPTM",
  15390. "POTM",
  15391. "PPAM",
  15392. "POTX",
  15393. "PPSM",
  15394. ];
  15395. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15396. var photoA = [
  15397. "BMP",
  15398. "GIF",
  15399. "PNG",
  15400. "JPEG",
  15401. "JPEG",
  15402. "JPG",
  15403. "TIF",
  15404. "PCX",
  15405. "TGA",
  15406. "EXIF",
  15407. "FPX",
  15408. "SVG",
  15409. "APNG",
  15410. ];
  15411. // if (
  15412. // b.indexOf(
  15413. // file.name
  15414. // .split(".")
  15415. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15416. // ) != -1
  15417. // ) {
  15418. // if (file.size / 1024 / 1024 > 10) {
  15419. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15420. // return;
  15421. // }
  15422. // } else if (
  15423. // excelA.indexOf(
  15424. // file.name
  15425. // .split(".")
  15426. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15427. // ) != "-1"
  15428. // ) {
  15429. // if (file.size / 1024 / 1024 > 5) {
  15430. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15431. // return;
  15432. // }
  15433. // }
  15434. if (
  15435. photoA.indexOf(
  15436. file.name
  15437. .split(".")
  15438. [file.name.split(".").length - 1].toLocaleUpperCase()
  15439. ) != -1 &&
  15440. type != 4
  15441. ) {
  15442. // const blob = await imageConversion.compress(file, 0.8)
  15443. file = await this.pngToWhiteBg(file);
  15444. const blob = await imageConversion.compressAccurately(file, 256);
  15445. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15446. file = new File([blob], file.name, { type: file.type });
  15447. }
  15448. if (file) {
  15449. var params = {
  15450. Key:
  15451. file.name.split(".")[0] +
  15452. new Date().getTime() +
  15453. "." +
  15454. file.name.split(".")[file.name.split(".").length - 1],
  15455. ContentType: file.type,
  15456. Body: file,
  15457. "Access-Control-Allow-Credentials": "*",
  15458. ACL: "public-read",
  15459. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15460. var options = {
  15461. // partSize: 2048 * 1024 * 1024,
  15462. partSize: 1024 * 1024 * 1024,
  15463. queueSize: 2,
  15464. leavePartsOnError: true,
  15465. };
  15466. bucket
  15467. .upload(params, options)
  15468. .on("httpUploadProgress", function (evt) {
  15469. //这里可以写进度条
  15470. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15471. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15472. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15473. })
  15474. .send(function (err, data) {
  15475. _this.progress = 100;
  15476. _this.isFinishSize = _this.isAllSize;
  15477. setTimeout(() => {
  15478. _this.proVisible = false;
  15479. }, 1000);
  15480. if (err) {
  15481. var a = _this.$refs.upload1.uploadFiles;
  15482. a.splice(a.length - 1, a.length);
  15483. _this.$message.error("上传失败");
  15484. } else {
  15485. // _this.$message.success('上传成功')
  15486. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15487. var c = [
  15488. "AVI",
  15489. "NAVI",
  15490. "MPEG",
  15491. "ASF",
  15492. "MOV",
  15493. "WMV",
  15494. "3GP",
  15495. "RM",
  15496. "RMVB",
  15497. "FLV",
  15498. "F4V",
  15499. "H.264",
  15500. "H.265",
  15501. "REAL VIDEO",
  15502. "MKV",
  15503. "WebM",
  15504. "HDDVD",
  15505. "MP4",
  15506. "MPG",
  15507. "M4V",
  15508. "MGV",
  15509. "OGV",
  15510. "QTM",
  15511. "STR",
  15512. "AMC",
  15513. "DVX",
  15514. "EVO",
  15515. "DAT",
  15516. "OGG",
  15517. "OGM",
  15518. ];
  15519. if (type == 1) {
  15520. _this.studyJuri[0].cover.push({
  15521. name: file.name,
  15522. url: data.Location,
  15523. uid: file.uid,
  15524. });
  15525. if (
  15526. c.indexOf(
  15527. _this.studyJuri[0].cover[0].url
  15528. .split(".")
  15529. [
  15530. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15531. ].toLocaleUpperCase()
  15532. ) != -1
  15533. ) {
  15534. _this.fileType = 2;
  15535. } else if (
  15536. b.indexOf(
  15537. _this.studyJuri[0].cover[0].url
  15538. .split(".")
  15539. [
  15540. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15541. ].toLocaleUpperCase()
  15542. ) != -1
  15543. ) {
  15544. _this.fileType = 1;
  15545. } else if (
  15546. photoA.indexOf(
  15547. _this.studyJuri[0].cover[0].url
  15548. .split(".")
  15549. [
  15550. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15551. ].toLocaleUpperCase()
  15552. ) != -1
  15553. ) {
  15554. _this.fileType = 0;
  15555. } else {
  15556. _this.fileType = 3;
  15557. }
  15558. _this.imgChange(null, null, type);
  15559. } else if (type == 2) {
  15560. _this.upToolImg = data.Location;
  15561. _this.imgChange(null, null, type);
  15562. _this.addCourseWorks(i);
  15563. } else if (type == 4) {
  15564. _this.addPz("3", data.Location);
  15565. } else if (type == 5) {
  15566. _this.addImgDrawImG(data.Location);
  15567. } else if (type == 6) {
  15568. var _ftype = 1;
  15569. if (
  15570. c.indexOf(
  15571. data.Location.split(".")[
  15572. data.Location.split(".").length - 1
  15573. ].toLocaleUpperCase()
  15574. ) != -1
  15575. ) {
  15576. _ftype = 5;
  15577. } else if (
  15578. b.indexOf(
  15579. data.Location.split(".")[
  15580. data.Location.split(".").length - 1
  15581. ].toLocaleUpperCase()
  15582. ) != -1
  15583. ) {
  15584. _ftype = 4;
  15585. } else {
  15586. _ftype = 1;
  15587. }
  15588. _this.plworkFile.push({
  15589. name: file.name,
  15590. url: data.Location,
  15591. uid: file.uid,
  15592. fileType: _ftype,
  15593. username:
  15594. _this.plworkFile.length > 10
  15595. ? _this.plworkFile.length + 1
  15596. : "0" + (_this.plworkFile.length + 1),
  15597. });
  15598. } else if (type == 7) {
  15599. _this.addCourseWorksGong(i, data.Location, 32);
  15600. } else if (type == 8) {
  15601. _this.addCourseWorksGong(i, data.Location, 57);
  15602. }
  15603. _this.imgChange(null, null, type);
  15604. console.log(data.Location);
  15605. // _this.$message.success('上传成功'+data.Location)
  15606. }
  15607. });
  15608. }
  15609. },
  15610. async beforeUpload3(event, type, i) {
  15611. // this.$message.success('进入上传')
  15612. let file = "";
  15613. let cfindex2 = 0;
  15614. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15615. file = event.target.files[cfindex];
  15616. var credentials = {
  15617. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15618. secretAccessKey: "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",
  15619. }; //秘钥形式的登录上传
  15620. window.AWS.config.update(credentials);
  15621. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15622. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15623. var _this = this;
  15624. // _this.progress = 0;
  15625. _this.proVisible2 = true;
  15626. var b = [
  15627. "DOC",
  15628. "DOCX",
  15629. "DOCM",
  15630. "DOTM",
  15631. "DOTX",
  15632. "PPTX",
  15633. "PPSX",
  15634. "PPT",
  15635. "PPS",
  15636. "PPTM",
  15637. "POTM",
  15638. "PPAM",
  15639. "POTX",
  15640. "PPSM",
  15641. ];
  15642. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15643. var photoA = [
  15644. "BMP",
  15645. "GIF",
  15646. "PNG",
  15647. "JPEG",
  15648. "JPG",
  15649. "TIF",
  15650. "PCX",
  15651. "TGA",
  15652. "EXIF",
  15653. "FPX",
  15654. "SVG",
  15655. "APNG",
  15656. ];
  15657. if (
  15658. photoA.indexOf(
  15659. file.name
  15660. .split(".")
  15661. [file.name.split(".").length - 1].toLocaleUpperCase()
  15662. ) != -1 &&
  15663. type != 4
  15664. ) {
  15665. // const blob = await imageConversion.compress(file, 0.8)
  15666. file = await this.pngToWhiteBg(file);
  15667. const blob = await imageConversion.compressAccurately(file, 256);
  15668. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15669. file = new File([blob], file.name, { type: file.type });
  15670. }
  15671. if (file) {
  15672. var params = {
  15673. Key:
  15674. file.name.split(".")[0] +
  15675. new Date().getTime() +
  15676. "." +
  15677. file.name.split(".")[file.name.split(".").length - 1],
  15678. ContentType: file.type,
  15679. Body: file,
  15680. "Access-Control-Allow-Credentials": "*",
  15681. ACL: "public-read",
  15682. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15683. var options = {
  15684. // partSize: 2048 * 1024 * 1024,
  15685. partSize: 1024 * 1024 * 1024,
  15686. queueSize: 2,
  15687. leavePartsOnError: true,
  15688. };
  15689. bucket
  15690. .upload(params, options)
  15691. .on("httpUploadProgress", function (evt) {
  15692. //这里可以写进度条
  15693. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15694. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15695. })
  15696. .send(function (err, data) {
  15697. // _this.progress = 100;
  15698. cfindex2++;
  15699. setTimeout(() => {
  15700. if (
  15701. cfindex2 == event.target.files.length - 1 ||
  15702. cfindex2 > event.target.files.length - 1
  15703. ) {
  15704. _this.proVisible2 = false;
  15705. }
  15706. }, 1000);
  15707. if (err) {
  15708. var a = _this.$refs.upload1.uploadFiles;
  15709. a.splice(a.length - 1, a.length);
  15710. _this.$message.error("上传失败");
  15711. } else {
  15712. // _this.$message.success('上传成功')
  15713. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15714. var c = [
  15715. "AVI",
  15716. "NAVI",
  15717. "MPEG",
  15718. "ASF",
  15719. "MOV",
  15720. "WMV",
  15721. "3GP",
  15722. "RM",
  15723. "RMVB",
  15724. "FLV",
  15725. "F4V",
  15726. "H.264",
  15727. "H.265",
  15728. "REAL VIDEO",
  15729. "MKV",
  15730. "WebM",
  15731. "HDDVD",
  15732. "MP4",
  15733. "MPG",
  15734. "M4V",
  15735. "MGV",
  15736. "OGV",
  15737. "QTM",
  15738. "STR",
  15739. "AMC",
  15740. "DVX",
  15741. "EVO",
  15742. "DAT",
  15743. "OGG",
  15744. "OGM",
  15745. ];
  15746. if (type == 1) {
  15747. _this.studyJuri[0].cover.push({
  15748. name: file.name,
  15749. url: data.Location,
  15750. uid: file.uid,
  15751. });
  15752. if (
  15753. c.indexOf(
  15754. _this.studyJuri[0].cover[0].url
  15755. .split(".")
  15756. [
  15757. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15758. ].toLocaleUpperCase()
  15759. ) != -1
  15760. ) {
  15761. _this.fileType = 2;
  15762. } else if (
  15763. b.indexOf(
  15764. _this.studyJuri[0].cover[0].url
  15765. .split(".")
  15766. [
  15767. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15768. ].toLocaleUpperCase()
  15769. ) != -1
  15770. ) {
  15771. _this.fileType = 1;
  15772. } else {
  15773. _this.fileType = 0;
  15774. }
  15775. _this.imgChange(null, null, type);
  15776. } else if (type == 2) {
  15777. _this.upToolImg = data.Location;
  15778. _this.imgChange(null, null, type);
  15779. _this.addCourseWorks(i);
  15780. } else if (type == 4) {
  15781. _this.addPz("3", data.Location);
  15782. } else if (type == 5) {
  15783. _this.addImgDrawImG(data.Location);
  15784. } else if (type == 6) {
  15785. var _ftype = 1;
  15786. if (
  15787. c.indexOf(
  15788. data.Location.split(".")[
  15789. data.Location.split(".").length - 1
  15790. ].toLocaleUpperCase()
  15791. ) != -1
  15792. ) {
  15793. _ftype = 5;
  15794. } else if (
  15795. b.indexOf(
  15796. data.Location.split(".")[
  15797. data.Location.split(".").length - 1
  15798. ].toLocaleUpperCase()
  15799. ) != -1
  15800. ) {
  15801. _ftype = 4;
  15802. } else {
  15803. _ftype = 1;
  15804. }
  15805. _this.plworkFile.push({
  15806. name: file.name,
  15807. url: data.Location,
  15808. uid: file.uid,
  15809. fileType: _ftype,
  15810. username:
  15811. _this.plworkFile.length + 1 > 9
  15812. ? _this.plworkFile.length + 1
  15813. : "0" + (_this.plworkFile.length + 1),
  15814. });
  15815. }
  15816. _this.imgChange(null, null, type);
  15817. console.log(data.Location);
  15818. // _this.$message.success('上传成功'+data.Location)
  15819. }
  15820. });
  15821. }
  15822. }
  15823. },
  15824. beforeUpload2(event, type) {
  15825. var file = event.target.files[0];
  15826. var credentials = {
  15827. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15828. secretAccessKey: "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",
  15829. }; //秘钥形式的登录上传
  15830. window.AWS.config.update(credentials);
  15831. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15832. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15833. var _this = this;
  15834. _this.progress = 0;
  15835. _this.proVisible = true;
  15836. if (file) {
  15837. var params = {
  15838. Key:
  15839. file.name.split(".")[0] +
  15840. new Date().getTime() +
  15841. "." +
  15842. file.name.split(".")[file.name.split(".").length - 1],
  15843. ContentType: file.type,
  15844. Body: file,
  15845. "Access-Control-Allow-Credentials": "*",
  15846. ACL: "public-read",
  15847. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15848. var options = {
  15849. partSize: 2048 * 1024 * 1024,
  15850. queueSize: 2,
  15851. leavePartsOnError: true,
  15852. };
  15853. bucket
  15854. .upload(params, options)
  15855. .on("httpUploadProgress", function (evt) {
  15856. //这里可以写进度条
  15857. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15858. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15859. })
  15860. .send(function (err, data) {
  15861. _this.progress = 100;
  15862. setTimeout(() => {
  15863. _this.proVisible = false;
  15864. }, 1000);
  15865. if (err) {
  15866. var a = _this.$refs.upload1.uploadFiles;
  15867. a.splice(a.length - 1, a.length);
  15868. _this.$message.error("上传失败");
  15869. } else {
  15870. if (type == 2) {
  15871. _this.studyJuri[0].upVedio.push({
  15872. name: file.name,
  15873. url: data.Location,
  15874. uid: file.uid,
  15875. });
  15876. _this.imgChange(null, null, type);
  15877. } else if (type == 3) {
  15878. _this.studyJuri[0].upFile.push({
  15879. name: file.name,
  15880. url: data.Location,
  15881. uid: file.uid,
  15882. });
  15883. _this.imgChange(null, null, type);
  15884. }
  15885. console.log(data.Location);
  15886. }
  15887. });
  15888. }
  15889. },
  15890. allScrell() {
  15891. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15892. },
  15893. nextOrpreSteps(t) {
  15894. if (this.IsFollow && this.tType == 2) {
  15895. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15896. return;
  15897. }
  15898. var b = this.chapInfoList.length - 1;
  15899. if (t == 0) {
  15900. if (this.courseType == 0) {
  15901. if (this.taskCount == 0) {
  15902. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15903. if (this.IsLookOpen) {
  15904. if (
  15905. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15906. ) {
  15907. if (
  15908. this.courseDetail.userid != this.userid &&
  15909. (!this.courseDetail.course_teacher ||
  15910. (this.courseDetail.course_teacher &&
  15911. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  15912. ) {
  15913. this.$message.error("任务未解锁");
  15914. } else {
  15915. this.$message.error("上一任务未解锁");
  15916. }
  15917. return;
  15918. }
  15919. }
  15920. this.navList[this.courseType].isOpen = false;
  15921. this.courseType = b;
  15922. this.taskCount =
  15923. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15924. .length - 1;
  15925. this.navList[this.courseType].isOpen = true;
  15926. } else {
  15927. this.taskCount--;
  15928. }
  15929. } else {
  15930. if (this.taskCount == 0) {
  15931. this.navList[this.courseType].isOpen = false;
  15932. this.courseType--;
  15933. this.taskCount =
  15934. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15935. .length - 1;
  15936. this.navList[this.courseType].isOpen = true;
  15937. } else {
  15938. this.taskCount--;
  15939. }
  15940. }
  15941. } else {
  15942. if (this.courseType == b) {
  15943. if (
  15944. this.taskCount ==
  15945. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15946. 1
  15947. ) {
  15948. this.navList[this.courseType].isOpen = false;
  15949. this.courseType = 0;
  15950. this.taskCount = 0;
  15951. this.navList[this.courseType].isOpen = true;
  15952. } else {
  15953. var bbb = parseInt(this.taskCount) + 1;
  15954. if (
  15955. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15956. .isLook &&
  15957. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  15958. (this.courseDetail.course_teacher &&
  15959. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  15960. this.IsLookOpen
  15961. ) {
  15962. this.$message.error("任务未解锁");
  15963. return;
  15964. }
  15965. this.taskCount++;
  15966. if (this.IsLookOpen) {
  15967. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15968. this.taskCount
  15969. ].isLook = true;
  15970. this.addCourseState(3);
  15971. }
  15972. }
  15973. } else {
  15974. if (
  15975. this.taskCount ==
  15976. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15977. 1
  15978. ) {
  15979. var bbb = parseInt(this.courseType) + 1;
  15980. if (
  15981. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  15982. this.courseDetail.userid != this.userid &&
  15983. (!this.courseDetail.course_teacher ||
  15984. (this.courseDetail.course_teacher &&
  15985. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  15986. this.IsLookOpen
  15987. ) {
  15988. this.$message.error("任务未解锁");
  15989. return;
  15990. }
  15991. this.navList[this.courseType].isOpen = false;
  15992. this.courseType++;
  15993. this.taskCount = 0;
  15994. this.navList[this.courseType].isOpen = true;
  15995. } else {
  15996. var bbb = parseInt(this.taskCount) + 1;
  15997. if (
  15998. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15999. .isLook &&
  16000. this.courseDetail.userid != this.userid &&
  16001. (!this.courseDetail.course_teacher ||
  16002. (this.courseDetail.course_teacher &&
  16003. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16004. this.IsLookOpen
  16005. ) {
  16006. this.$message.error("任务未解锁");
  16007. return;
  16008. }
  16009. this.taskCount++;
  16010. }
  16011. if (this.IsLookOpen) {
  16012. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16013. this.taskCount
  16014. ].isLook = true;
  16015. this.addCourseState(3);
  16016. }
  16017. }
  16018. // if (
  16019. // this.taskCount ==
  16020. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16021. // ) {
  16022. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16023. // } else {
  16024. // this.taskCount++;
  16025. // }
  16026. }
  16027. document.scrollingElement.scrollTop = 0;
  16028. this.showType = 7;
  16029. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16030. // if (this.vedio[this.taskCount].length > 0) {
  16031. // var a =
  16032. // document.getElementsByClassName("box_course")[this.taskCount]
  16033. // .offsetHeight;
  16034. // document.getElementsByClassName("vedioList")[
  16035. // this.taskCount
  16036. // ].style.height = a + "px";
  16037. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16038. // a - 40 + "px";
  16039. // }
  16040. this.isNoHomeWork = false;
  16041. (this.studyJuri = [
  16042. {
  16043. content: "",
  16044. cover: [],
  16045. upVedio: [],
  16046. upFile: [],
  16047. },
  16048. ]),
  16049. (this.radio = []);
  16050. this.isClickNav = "";
  16051. this.selectPz();
  16052. this.getHomeWork();
  16053. this.getCourseDetail(2);
  16054. this.$forceUpdate();
  16055. },
  16056. openTask(s, n, i,ctype) {
  16057. if (this.IsFollow && this.tType == 2) {
  16058. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16059. return;
  16060. }
  16061. if (this.IsLookOpen) {
  16062. if (
  16063. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16064. this.courseDetail.userid != this.userid &&
  16065. (!this.courseDetail.course_teacher ||
  16066. (this.courseDetail.course_teacher &&
  16067. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16068. ) {
  16069. this.$message.error("任务未解锁");
  16070. return;
  16071. }
  16072. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16073. if (
  16074. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16075. .isLook
  16076. ) {
  16077. this.$message.error("上一任务未解锁");
  16078. return;
  16079. }
  16080. } else if (s > this.courseType) {
  16081. if (n > 0) {
  16082. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16083. this.$message.error("上一任务未解锁");
  16084. return;
  16085. }
  16086. } else {
  16087. if (
  16088. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16089. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16090. ].isLook
  16091. ) {
  16092. this.$message.error("上一任务未解锁");
  16093. return;
  16094. }
  16095. }
  16096. }
  16097. }
  16098. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  16099. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16100. return;
  16101. }
  16102. this.courseType = s;
  16103. this.navId = i;
  16104. this.taskCount = n;
  16105. if(ctype == 2){
  16106. this.navList[s].task[n].isOpen = true
  16107. }else{
  16108. this.navList[this.courseType].task[this.taskCount].isOpen =
  16109. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16110. }
  16111. if (this.IsLookOpen) {
  16112. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16113. this.taskCount
  16114. ].isLook = true;
  16115. this.addCourseState(3);
  16116. }
  16117. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16118. this.isCloseList[ci].isClose = 0;
  16119. this.isCloseList[ci].isCloseBoolean = false;
  16120. this.$nextTick(()=>{
  16121. setTimeout(()=>{
  16122. setTimeout(()=>{
  16123. this.panToolHeight('tool-'+ci);
  16124. }, 0)
  16125. }, 0)
  16126. })
  16127. }
  16128. this.showType = 0;
  16129. this.isNoHomeWork = false;
  16130. (this.studyJuri = [
  16131. {
  16132. content: "",
  16133. cover: [],
  16134. upVedio: [],
  16135. upFile: [],
  16136. },
  16137. ]),
  16138. (this.radio = []);
  16139. document.scrollingElement.scrollTop = 0;
  16140. // setTimeout(() => {
  16141. // let a = document.getElementById(i);
  16142. // if (a.offsetTop - 110 == 0) {
  16143. // window.scrollTo(0, 0);
  16144. // } else {
  16145. // window.scrollTo(0, a.offsetTop);
  16146. // }
  16147. // }, 0);
  16148. for (var z = 0; z < this.navList.length; z++) {
  16149. for (var q = 0; q < this.navList[z].task.length; q++) {
  16150. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16151. this.navList[z].task[q].tool[w].isTool = false;
  16152. }
  16153. }
  16154. }
  16155. this.selectPz();
  16156. this.getHomeWork();
  16157. this.getCourseDetail(2);
  16158. },
  16159. get(i) {
  16160. if (this.IsFollow && this.tType == 2) {
  16161. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16162. return;
  16163. }
  16164. // for(var k=0;k<this.navList.length;k++){
  16165. // this.navList[k].isOpen = false;
  16166. // }
  16167. // this.navList[i].isOpen = true;
  16168. let a = this.navList[i].isOpen
  16169. this.navList[i].isOpen = !this.navList[i].isOpen;
  16170. this.$forceUpdate()
  16171. if (this.navList[i].isOpen) {
  16172. this.openTask(i, 0, (i + "-0"),2);
  16173. }
  16174. },
  16175. addQuestion() {
  16176. this.answerList.push({
  16177. answerTitle: this.answerQ,
  16178. answer: this.questionAnswer,
  16179. });
  16180. let params = [
  16181. {
  16182. uid: this.userid,
  16183. cid: this.id,
  16184. stage: this.courseType,
  16185. task: this.taskCount,
  16186. tool: this.toolindex,
  16187. content: JSON.stringify(this.answerList),
  16188. type: 3,
  16189. },
  16190. ];
  16191. this.ajax
  16192. .post(this.$store.state.api + "addCourseWorks", params)
  16193. .then((res) => {
  16194. this.$message({
  16195. message: "提交成功",
  16196. type: "success",
  16197. });
  16198. this.answerList = [];
  16199. this.answerDialogVisible = false;
  16200. this.selectStudent();
  16201. this.selectSWorks();
  16202. this.selectSLook();
  16203. })
  16204. .catch((err) => {
  16205. this.$message.error("提交失败");
  16206. console.error(err);
  16207. });
  16208. },
  16209. addQuestionTeacher() {
  16210. this.answerList.push({
  16211. answerTitle: this.answerQ,
  16212. answer: this.questionAnswer,
  16213. });
  16214. let params = [
  16215. {
  16216. uid: this.sStudent.userid,
  16217. cid: this.id,
  16218. stage: this.courseType,
  16219. task: this.taskCount,
  16220. tool: this.toolindex,
  16221. content: JSON.stringify(this.answerList),
  16222. type: 3,
  16223. ateacher: this.userid,
  16224. },
  16225. ];
  16226. this.ajax
  16227. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16228. .then((res) => {
  16229. this.$message({
  16230. message: "提交成功",
  16231. type: "success",
  16232. });
  16233. this.answerList = [];
  16234. this.questionAnswer = "";
  16235. this.answerDialogVisibleTeacher = false;
  16236. this.selectStudent();
  16237. this.selectSWorks();
  16238. this.selectSLook();
  16239. })
  16240. .catch((err) => {
  16241. this.$message.error("提交失败");
  16242. console.error(err);
  16243. });
  16244. },
  16245. refreshCourse() {
  16246. // window.location.reload();
  16247. this.navList = [];
  16248. this.getCourseDetail(1);
  16249. },
  16250. getCourseDetail(type, gindex) {
  16251. let loading;
  16252. if (type != 2) {
  16253. loading = this.$loading.service({
  16254. background: "rgba(255, 255, 255, 0.7)",
  16255. target: document.querySelector(".student_table"),
  16256. });
  16257. }
  16258. this.downLoading = false
  16259. // this.navList[0].isOpen = false;
  16260. // this.navList[this.courseType].isOpen = true;
  16261. // this.courseType = this.courseTypeLine;
  16262. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16263. let params = {
  16264. courseId: this.id,
  16265. };
  16266. this.ajax
  16267. .get(this.$store.state.api + "selectCourseDetail3", params)
  16268. .then((res) => {
  16269. if (type != 2) {
  16270. loading.close();
  16271. if (
  16272. this.courseType >
  16273. JSON.parse(res.data[0][0].chapters).length - 1
  16274. ) {
  16275. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16276. }
  16277. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16278. .chapterInfo[0].taskJson;
  16279. var b = [
  16280. "AVI",
  16281. "NAVI",
  16282. "MPEG",
  16283. "ASF",
  16284. "MOV",
  16285. "WMV",
  16286. "3GP",
  16287. "RM",
  16288. "RMVB",
  16289. "FLV",
  16290. "F4V",
  16291. "H.264",
  16292. "H.265",
  16293. "REAL VIDEO",
  16294. "MKV",
  16295. "WebM",
  16296. "HDDVD",
  16297. "MP4",
  16298. "MPG",
  16299. "M4V",
  16300. "MGV",
  16301. "OGV",
  16302. "QTM",
  16303. "STR",
  16304. "AMC",
  16305. "DVX",
  16306. "EVO",
  16307. "DAT",
  16308. "OGG",
  16309. "OGM",
  16310. "MP3",
  16311. ];
  16312. let _chapterData = [];
  16313. for (var i = 0; i < a.length; i++) {
  16314. var c = a[i].chapterData;
  16315. this.vedio[i] = [];
  16316. this.textList[i] = [];
  16317. this.lineList[i] = [];
  16318. this.chapToolList[i] = [];
  16319. this.file[i] = [];
  16320. this.fileC[i] = [];
  16321. _chapterData[i] = c.filter((el) => {
  16322. return el.type != 12;
  16323. });
  16324. this.fileC[i] = c.filter((el) => {
  16325. return el.type == 12;
  16326. });
  16327. // else if (c[j].type == 12) {
  16328. // this.fileC[i].push(c[j]);
  16329. // }
  16330. for (var j = 0; j < c.length; j++) {
  16331. if (c[j].type == 7) {
  16332. this.chapToolList[i].push(c[j]);
  16333. } else if (c[j].type == 8 || c[j].type == 14) {
  16334. this.lineList[i].push(c[j]);
  16335. } else if (c[j].type == 6) {
  16336. this.textList[i].push(c[j]);
  16337. } else {
  16338. if (
  16339. b.indexOf(
  16340. c[j].url
  16341. .split(".")
  16342. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16343. ) != -1
  16344. ) {
  16345. this.vedio[i].push(c[j]);
  16346. } else {
  16347. this.file[i].push(c[j]);
  16348. }
  16349. }
  16350. }
  16351. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16352. d.sources[0].src =
  16353. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16354. this.playerO[i] = d;
  16355. }
  16356. this.courseDetail = res.data[0][0];
  16357. this.tcid = this.arrayToArray(
  16358. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16359. this.tcid2 ? this.tcid2.split(",") : []
  16360. ).join(",");
  16361. this.evalua = res.data[0][0].evaId;
  16362. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16363. this.courseType
  16364. ];
  16365. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16366. if (this.tcid && res.data[1].length) {
  16367. let _inviteA = [];
  16368. for (var ik = 0; ik < res.data[1].length; ik++) {
  16369. _inviteA.push({
  16370. cid: res.data[1][ik].classid,
  16371. ic: res.data[1][ik].code,
  16372. });
  16373. }
  16374. for (var ik = 0; ik < _inviteA.length; ik++) {
  16375. if (
  16376. this.arrayToArray(
  16377. _inviteA[ik].cid.split(","),
  16378. this.tcid.split(",")
  16379. ).length
  16380. ) {
  16381. this.inviteCode = _inviteA[ik].ic;
  16382. break;
  16383. }
  16384. }
  16385. }
  16386. for (var l = 0; l < this.chapInfoList.length; l++) {
  16387. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16388. for (var m = 0; m < w.length; m++) {
  16389. w[m].id = l + "-" + m;
  16390. }
  16391. }
  16392. if (
  16393. _chapterData[this.taskCount].length &&
  16394. _chapterData[this.taskCount][0].type == 2
  16395. ) {
  16396. this.showType = 0;
  16397. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16398. } else {
  16399. if (_chapterData[this.taskCount].length > 0) {
  16400. let _url = _chapterData[this.taskCount][0].url;
  16401. if (
  16402. _chapterData[this.taskCount][0].type == 8 ||
  16403. _chapterData[this.taskCount][0].type == 14
  16404. ) {
  16405. this.showType = 2;
  16406. if (
  16407. _url.indexOf("https://") == -1 &&
  16408. _url.indexOf("http://") == -1
  16409. ) {
  16410. _url = "https://" + _url;
  16411. }
  16412. this.pptImgUrl1 = _url;
  16413. } else if (_chapterData[this.taskCount][0].type == 3) {
  16414. if (
  16415. _url
  16416. .split(".")
  16417. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16418. ) {
  16419. this.showType = 3;
  16420. this.pptImgUrl1 = _url;
  16421. } else if (
  16422. this.isAssetTypeAnImage(
  16423. _url
  16424. .split(".")
  16425. [_url.split(".").length - 1].toLocaleLowerCase()
  16426. )
  16427. ) {
  16428. this.showType = 4;
  16429. this.pptImgUrl1 = _url;
  16430. } else {
  16431. this.showType = 2;
  16432. this.pptImgUrl1 =
  16433. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16434. encodeURIComponent(_url);
  16435. }
  16436. } else if (_chapterData[this.taskCount][0].type == 13) {
  16437. this.showType = 4;
  16438. this.pptImgUrl1 = _url;
  16439. } else if (_chapterData[this.taskCount][0].type == 6) {
  16440. this.showType = 1;
  16441. this.text = this.textList[this.taskCount][0];
  16442. }
  16443. }
  16444. }
  16445. this.isClickNav = 0;
  16446. if (
  16447. !_chapterData[this.taskCount].length ||
  16448. _chapterData[this.taskCount][0].type == 12
  16449. ) {
  16450. this.isClickNav = "";
  16451. this.showType = "";
  16452. }
  16453. this.vChapterData = _chapterData;
  16454. } else {
  16455. this.showType = 0;
  16456. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16457. .chapterInfo[0].taskJson;
  16458. var b = [
  16459. "AVI",
  16460. "NAVI",
  16461. "MPEG",
  16462. "ASF",
  16463. "MOV",
  16464. "WMV",
  16465. "3GP",
  16466. "RM",
  16467. "RMVB",
  16468. "FLV",
  16469. "F4V",
  16470. "H.264",
  16471. "H.265",
  16472. "REAL VIDEO",
  16473. "MKV",
  16474. "WebM",
  16475. "HDDVD",
  16476. "MP4",
  16477. "MPG",
  16478. "M4V",
  16479. "MGV",
  16480. "OGV",
  16481. "QTM",
  16482. "STR",
  16483. "AMC",
  16484. "DVX",
  16485. "EVO",
  16486. "DAT",
  16487. "OGG",
  16488. "OGM",
  16489. "MP3",
  16490. ];
  16491. let _chapterData = [];
  16492. for (var i = 0; i < a.length; i++) {
  16493. var c = a[i].chapterData;
  16494. this.vedio[i] = [];
  16495. this.textList[i] = [];
  16496. this.lineList[i] = [];
  16497. this.chapToolList[i] = [];
  16498. this.file[i] = [];
  16499. this.fileC[i] = [];
  16500. _chapterData[i] = c.filter((el) => {
  16501. return el.type != 12;
  16502. });
  16503. this.fileC[i] = c.filter((el) => {
  16504. return el.type == 12;
  16505. });
  16506. for (var j = 0; j < c.length; j++) {
  16507. if (c[j].type == 7) {
  16508. this.chapToolList[i].push(c[j]);
  16509. } else if (c[j].type == 8 || c[j].type == 14) {
  16510. this.lineList[i].push(c[j]);
  16511. } else if (c[j].type == 6) {
  16512. this.textList[i].push(c[j]);
  16513. } else {
  16514. if (
  16515. b.indexOf(
  16516. c[j].url
  16517. .split(".")
  16518. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16519. ) != -1
  16520. ) {
  16521. this.vedio[i].push(c[j]);
  16522. } else {
  16523. this.file[i].push(c[j]);
  16524. }
  16525. }
  16526. }
  16527. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16528. d.sources[0].src =
  16529. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16530. this.playerO[i] = d;
  16531. }
  16532. if (
  16533. _chapterData[this.taskCount].length &&
  16534. _chapterData[this.taskCount][0].type == 2
  16535. ) {
  16536. this.showType = 0;
  16537. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16538. } else {
  16539. if (_chapterData[this.taskCount].length > 0) {
  16540. let _url = _chapterData[this.taskCount][0].url;
  16541. if (
  16542. _chapterData[this.taskCount][0].type == 8 ||
  16543. _chapterData[this.taskCount][0].type == 14
  16544. ) {
  16545. this.showType = 2;
  16546. if (
  16547. _url.indexOf("https://") == -1 &&
  16548. _url.indexOf("http://") == -1
  16549. ) {
  16550. _url = "https://" + _url;
  16551. }
  16552. this.pptImgUrl1 = _url;
  16553. } else if (_chapterData[this.taskCount][0].type == 3) {
  16554. if (
  16555. _url
  16556. .split(".")
  16557. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16558. ) {
  16559. this.showType = 3;
  16560. this.pptImgUrl1 = _url;
  16561. } else if (
  16562. this.isAssetTypeAnImage(
  16563. _url
  16564. .split(".")
  16565. [_url.split(".").length - 1].toLocaleLowerCase()
  16566. )
  16567. ) {
  16568. this.showType = 4;
  16569. this.pptImgUrl1 = _url;
  16570. } else {
  16571. this.showType = 2;
  16572. this.pptImgUrl1 =
  16573. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16574. encodeURIComponent(_url);
  16575. }
  16576. } else if (_chapterData[this.taskCount][0].type == 13) {
  16577. this.showType = 4;
  16578. this.pptImgUrl1 = _url;
  16579. } else if (_chapterData[this.taskCount][0].type == 6) {
  16580. this.showType = 1;
  16581. this.text = this.textList[this.taskCount][0];
  16582. }
  16583. }
  16584. }
  16585. this.isClickNav = 0;
  16586. if (
  16587. !_chapterData[this.taskCount].length ||
  16588. _chapterData[this.taskCount][0].type == 12
  16589. ) {
  16590. this.isClickNav = "";
  16591. this.showType = "";
  16592. }
  16593. this.vChapterData = _chapterData;
  16594. this.$forceUpdate();
  16595. }
  16596. // else {
  16597. // this.courseDetail = res.data[0][0];
  16598. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16599. // }
  16600. let _this = this;
  16601. if (_this.timer) {
  16602. clearInterval(_this.timer);
  16603. _this.timer = null;
  16604. }
  16605. if (_this.tcid) {
  16606. _this.getCourseGroup(gindex);
  16607. } else {
  16608. _this.selectSWorks(gindex);
  16609. }
  16610. _this.selectStudent();
  16611. _this.selectSLook();
  16612. _this.getPick();
  16613. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16614. _this.setCTask();
  16615. }
  16616. if (_this.dialogVisibleGroup) {
  16617. _this.groupJson =
  16618. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16619. _this.taskCount
  16620. ].toolChoose[_this.toolindex].groupJson;
  16621. }
  16622. _this.$nextTick(() => {
  16623. setTimeout(() => {
  16624. _this.checkEva();
  16625. }, 1000);
  16626. });
  16627. _this.timer = setInterval(function () {
  16628. // _this.getCourseDetail(2);
  16629. if (_this.tcid) {
  16630. _this.getCourseGroup(gindex);
  16631. } else {
  16632. _this.selectSWorks(gindex);
  16633. }
  16634. _this.selectStudent();
  16635. _this.selectSLook();
  16636. _this.getPick();
  16637. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16638. _this.setCTask();
  16639. }
  16640. if (_this.dialogVisibleGroup) {
  16641. _this.groupJson =
  16642. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16643. _this.taskCount
  16644. ].toolChoose[_this.toolindex].groupJson;
  16645. }
  16646. if (_this.tType == 4 || _this.ispzType == 4) {
  16647. _this.selectPz();
  16648. }
  16649. }, 5000);
  16650. _this.$nextTick(function () {
  16651. setTimeout(() => {
  16652. // var a =
  16653. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16654. // document.getElementsByClassName("vedioList")[0].style.height =
  16655. // a + "px";
  16656. // document.getElementsByClassName("navBox")[0].style.height =
  16657. // a - 40 + "px";
  16658. // if (_this.vedio[_this.taskCount].length > 0) {
  16659. // _this.vedioTime = [];
  16660. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16661. // _this.vedioTime[i] = document.getElementsByClassName(
  16662. // "vjs-duration-display"
  16663. // )[i].textContent;
  16664. // }
  16665. // }
  16666. }, 1000);
  16667. });
  16668. })
  16669. .catch((err) => {
  16670. loading.close();
  16671. console.error(err);
  16672. });
  16673. },
  16674. getCourseGroup(gindex) {
  16675. let params = {
  16676. cid: this.id,
  16677. classid: this.tcid ? this.tcid : "1",
  16678. };
  16679. this.ajax
  16680. .get(this.$store.state.api + "getCourseGroup", params)
  16681. .then((res) => {
  16682. if (res.data && res.data[0].length) {
  16683. if (!this.isGroup) {
  16684. let courseGroup = JSON.parse(res.data[0][0].group);
  16685. courseGroup.group = courseGroup.group.filter((el) => {
  16686. el.works = [];
  16687. return el;
  16688. });
  16689. if (courseGroup.isopen == 2) {
  16690. this.isGroup = false;
  16691. this.selectSWorks(gindex);
  16692. return;
  16693. }
  16694. this.courseGroup = courseGroup;
  16695. let groupPerson = res.data[1];
  16696. let group = JSON.parse(res.data[0][0].group).group;
  16697. let courseGroupStudent = {};
  16698. let courseGroupStudentUid = {};
  16699. for (var i = 0; i < group.length; i++) {
  16700. courseGroupStudent[group[i].id] = [];
  16701. courseGroupStudentUid[group[i].id] = [];
  16702. for (var j = 0; j < groupPerson.length; j++) {
  16703. if (groupPerson[j].groupCid == group[i].id) {
  16704. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16705. courseGroupStudentUid[group[i].id].push(
  16706. groupPerson[j].userid
  16707. );
  16708. }
  16709. }
  16710. }
  16711. this.courseGroupStudent = courseGroupStudent;
  16712. this.courseGroupStudentUid = courseGroupStudentUid;
  16713. }
  16714. if (this.courseGroup.isopen == 2) {
  16715. this.isGroup = false;
  16716. } else {
  16717. this.isGroup = true;
  16718. }
  16719. this.selectSWorks(gindex);
  16720. } else {
  16721. this.selectSWorks(gindex);
  16722. this.isGroup = false;
  16723. }
  16724. })
  16725. .catch((err) => {
  16726. // this.$message.error("网络不佳");
  16727. console.error(err);
  16728. });
  16729. },
  16730. setOperationTime() {
  16731. let _this = this;
  16732. if (_this.opertimer) {
  16733. clearInterval(_this.opertimer);
  16734. _this.opertimer = null;
  16735. }
  16736. _this.opertimer = setInterval(() => {
  16737. _this.setoTime("600");
  16738. }, 600000);
  16739. },
  16740. setoTime(time) {
  16741. let params = [
  16742. {
  16743. uid: this.userid,
  16744. cid: this.id,
  16745. type: "2",
  16746. time: time,
  16747. },
  16748. ];
  16749. this.ajax
  16750. .post(this.$store.state.api + "addOperationTimeT2", params)
  16751. .then((res) => {})
  16752. .catch((err) => {
  16753. console.error(err);
  16754. });
  16755. },
  16756. addPz(type, content) {
  16757. if (type == "1" && this.pzConText == "") {
  16758. this.$message.error("评论不能为空!");
  16759. return;
  16760. }
  16761. let params = [
  16762. {
  16763. cid: this.id,
  16764. uid: this.userid,
  16765. s: this.courseType,
  16766. t: this.taskCount,
  16767. c: type == "1" ? this.pzConText : content,
  16768. type: type,
  16769. },
  16770. ];
  16771. this.ajax
  16772. .post(this.$store.state.api + "addPz2", params)
  16773. .then((res) => {
  16774. this.$message({
  16775. message: "添加成功",
  16776. type: "success",
  16777. });
  16778. this.pzConText = "";
  16779. this.addPzDialog = false;
  16780. this.selectPz();
  16781. })
  16782. .catch((err) => {
  16783. this.$message.error("添加失败");
  16784. console.error(err);
  16785. });
  16786. },
  16787. setReplyIndex(id, i) {
  16788. this.replyIndex = i;
  16789. this.replyPid = id;
  16790. this.replyDialogVisible = true;
  16791. },
  16792. addHf() {
  16793. if (this.reply == "") {
  16794. this.$message.error("回复不能为空!");
  16795. return;
  16796. }
  16797. let params = [
  16798. {
  16799. cid: this.id,
  16800. uid: this.userid,
  16801. s: this.courseType,
  16802. t: this.taskCount,
  16803. type: "1",
  16804. ct: 2,
  16805. pid: this.replyPid,
  16806. c: this.reply,
  16807. },
  16808. ];
  16809. this.ajax
  16810. .post(this.$store.state.api + "addHf", params)
  16811. .then((res) => {
  16812. this.reply = "";
  16813. this.$message({
  16814. message: "回复成功",
  16815. type: "success",
  16816. });
  16817. this.replyDialogVisible = false;
  16818. this.selectPz();
  16819. })
  16820. .catch((err) => {
  16821. this.$message.error("回复失败");
  16822. console.error(err);
  16823. });
  16824. },
  16825. deletePz(id) {
  16826. this.$confirm("确定删除此评论吗?", "提示", {
  16827. confirmButtonText: "确定",
  16828. cancelButtonText: "取消",
  16829. type: "warning",
  16830. })
  16831. .then(() => {
  16832. let params = [
  16833. {
  16834. id: id,
  16835. },
  16836. ];
  16837. this.ajax
  16838. .post(this.$store.state.api + "deletePz", params)
  16839. .then((res) => {
  16840. this.$message({
  16841. message: "删除成功",
  16842. type: "success",
  16843. });
  16844. this.selectPz();
  16845. })
  16846. .catch((err) => {
  16847. this.$message.error("网络异常");
  16848. console.error(err);
  16849. });
  16850. })
  16851. .catch(() => {});
  16852. },
  16853. deleteReply(id) {
  16854. this.$confirm("确定删除此回复吗?", "提示", {
  16855. confirmButtonText: "确定",
  16856. cancelButtonText: "取消",
  16857. type: "warning",
  16858. })
  16859. .then(() => {
  16860. let params = [
  16861. {
  16862. id: id,
  16863. },
  16864. ];
  16865. this.ajax
  16866. .post(this.$store.state.api + "deleteReply", params)
  16867. .then((res) => {
  16868. this.$message({
  16869. message: "删除成功",
  16870. type: "success",
  16871. });
  16872. this.selectPz();
  16873. })
  16874. .catch((err) => {
  16875. this.$message.error("网络异常");
  16876. console.error(err);
  16877. });
  16878. })
  16879. .catch(() => {});
  16880. },
  16881. setPz() {
  16882. if (this.ispzType == 4) {
  16883. this.ispzType = 0;
  16884. this.pzDialog = false;
  16885. return;
  16886. }
  16887. this.ispzType = 4;
  16888. this.pzDialog = true;
  16889. this.selectPz();
  16890. },
  16891. selectPz() {
  16892. let params = {
  16893. cid: this.id,
  16894. s: this.courseType,
  16895. t: this.taskCount,
  16896. type: this.pzStype,
  16897. uid: this.userid,
  16898. };
  16899. this.ajax
  16900. .get(this.$store.state.api + "selectPzListType", params)
  16901. .then((res) => {
  16902. this.pzList = res.data[0];
  16903. var a = res.data[1];
  16904. for (var i = 0; i < a.length; i++) {
  16905. for (var j = 0; j < this.pzList.length; j++) {
  16906. if (!this.pzList[j].hfList) {
  16907. this.pzList[j].hfList = [];
  16908. }
  16909. if (a[i].pid == this.pzList[j].id) {
  16910. this.pzList[j].hfList.push(a[i]);
  16911. }
  16912. }
  16913. }
  16914. })
  16915. .catch((err) => {
  16916. console.error(err);
  16917. });
  16918. },
  16919. // selectHf() {
  16920. // let params = {
  16921. // cid: this.id,
  16922. // s: this.courseType,
  16923. // t: this.taskCount,
  16924. // };
  16925. // this.ajax
  16926. // .get(this.$store.state.api + "selectHfList", params)
  16927. // .then((res) => {
  16928. // var a = res.data[0];
  16929. // for (var i = 0; i < a.length; i++) {
  16930. // for (var j = 0; j < this.pzList.length; j++) {
  16931. // if (!this.pzList[i].hfList) {
  16932. // this.pzList[i].hfList = [];
  16933. // }
  16934. // if (a[i].pid == this.pzList[j].id) {
  16935. // this.pzList[i].hfList.push(a[i]);
  16936. // }
  16937. // }
  16938. // }
  16939. // })
  16940. // .catch((err) => {
  16941. // console.error(err);
  16942. // });
  16943. // },
  16944. updateSLook() {
  16945. let params = {
  16946. sopen: this.sIsOpen == false ? 1 : 2,
  16947. cid: this.id,
  16948. };
  16949. this.ajax
  16950. .get(this.$store.state.api + "updateCourseSLook", params)
  16951. .then((res) => {
  16952. if (this.sIsOpen == true) {
  16953. this.$message({
  16954. message: "权限设置成功",
  16955. type: "success",
  16956. });
  16957. } else {
  16958. this.$message({
  16959. message: "权限关闭成功",
  16960. type: "success",
  16961. });
  16962. }
  16963. })
  16964. .catch((err) => {
  16965. console.error(err);
  16966. });
  16967. },
  16968. updateFollow() {
  16969. let params = [
  16970. {
  16971. sopen: this.IsFollow == false ? 1 : 2,
  16972. cid: this.id,
  16973. },
  16974. ];
  16975. this.ajax
  16976. .post(this.$store.state.api + "updateCourseFollow", params)
  16977. .then((res) => {
  16978. if (this.IsFollow == true) {
  16979. this.$message({
  16980. message: "开启成功",
  16981. type: "success",
  16982. });
  16983. } else {
  16984. this.$message({
  16985. message: "关闭成功",
  16986. type: "success",
  16987. });
  16988. }
  16989. this.setCTask();
  16990. })
  16991. .catch((err) => {
  16992. console.error(err);
  16993. });
  16994. },
  16995. setCTask() {
  16996. let params = [
  16997. {
  16998. sopen: this.courseType + "-" + this.taskCount,
  16999. cid: this.id,
  17000. },
  17001. ];
  17002. this.ajax
  17003. .post(this.$store.state.api + "updateCourseFollowC", params)
  17004. .then((res) => {})
  17005. .catch((err) => {
  17006. console.error(err);
  17007. });
  17008. },
  17009. updateLookOpen() {
  17010. let params = [
  17011. {
  17012. sopen: this.IsLookOpen == false ? 1 : 2,
  17013. cid: this.id,
  17014. },
  17015. ];
  17016. this.ajax
  17017. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17018. .then((res) => {
  17019. if (this.IsLookOpen == true) {
  17020. // if (this.courseType != 0 && this.taskCount != 0) {
  17021. // this.openTask(0, 0, "0-0");
  17022. // }
  17023. this.$message({
  17024. message: "权限设置成功",
  17025. type: "success",
  17026. });
  17027. } else {
  17028. this.$message({
  17029. message: "权限关闭成功",
  17030. type: "success",
  17031. });
  17032. }
  17033. this.getCourseState(2);
  17034. })
  17035. .catch((err) => {
  17036. console.error(err);
  17037. });
  17038. },
  17039. selectSLook() {
  17040. let params = {
  17041. cid: this.id,
  17042. };
  17043. this.ajax
  17044. .get(this.$store.state.api + "selectCourseSLook", params)
  17045. .then((res) => {
  17046. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17047. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17048. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17049. if (!this.IsLookOpen) {
  17050. this.setNavList();
  17051. } else {
  17052. this.getCourseState(1);
  17053. }
  17054. if (this.IsFollow && this.tType == 2) {
  17055. this.setContent2(false);
  17056. let _followC = res.data[0][0].followC.split("-");
  17057. if (
  17058. this.courseType != _followC[0] ||
  17059. this.taskCount != _followC[1]
  17060. ) {
  17061. this.navList[this.courseType].isOpen = false;
  17062. this.courseType = _followC[0];
  17063. this.navList[this.courseType].isOpen = true;
  17064. this.taskCount = parseInt(_followC[1]);
  17065. this.navId = res.data[0][0].followC;
  17066. document.scrollingElement.scrollTop = 0;
  17067. this.getCourseDetail(2);
  17068. }
  17069. }
  17070. })
  17071. .catch((err) => {
  17072. console.error(err);
  17073. });
  17074. },
  17075. setNavList() {
  17076. if (this.navList.length == 0) {
  17077. this.navList = [];
  17078. var copyList = [];
  17079. for (var l = 0; l < this.chapInfoList.length; l++) {
  17080. var q = this.chapInfoList[l].dyName;
  17081. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17082. var e;
  17083. copyList.push({
  17084. dyName: q,
  17085. isOpen: l === 0 ? true : false,
  17086. task: [],
  17087. });
  17088. for (var r = 0; r < w.length; r++) {
  17089. e = w[r].task;
  17090. if (this.chapInfoList[l].easy == 1) {
  17091. copyList[l].task.push({
  17092. taskName: q,
  17093. id: l + "-" + r,
  17094. isLook: w[r].isLook,
  17095. isOpen: r === 0 ? true : false,
  17096. tool: [],
  17097. });
  17098. } else {
  17099. copyList[l].task.push({
  17100. taskName: e,
  17101. id: l + "-" + r,
  17102. isLook: w[r].isLook,
  17103. isOpen: r === 0 ? true : false,
  17104. tool: [],
  17105. });
  17106. }
  17107. var t = w[r].toolChoose;
  17108. for (var k = 0; k < t.length; k++) {
  17109. var tool = t[k].tool[0];
  17110. copyList[l].task[r].tool.push({
  17111. tool: tool,
  17112. isTool: false,
  17113. });
  17114. }
  17115. // this.navId = this.navId ? this.navId : l + "-" + r;
  17116. // this.navId = l + "-" + r;
  17117. }
  17118. }
  17119. this.navList = copyList;
  17120. this.navList[0].isOpen = false;
  17121. this.navList[this.courseType].isOpen = true;
  17122. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17123. } else {
  17124. this.setNavList2();
  17125. }
  17126. },
  17127. setNavList2() {
  17128. for (var l = 0; l < this.chapInfoList.length; l++) {
  17129. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17130. for (var r = 0; r < w.length; r++) {
  17131. this.navList[l].task[r].isLook = w[r].isLook;
  17132. }
  17133. }
  17134. if (
  17135. this.IsLookOpen &&
  17136. !this.navList[this.courseType].task[this.taskCount].isLook
  17137. ) {
  17138. this.openTask(0, 0, "0-0");
  17139. }
  17140. this.$forceUpdate();
  17141. },
  17142. getCourseState(type) {
  17143. let params = {
  17144. cid: this.id,
  17145. };
  17146. this.ajax
  17147. .get(this.$store.state.api + "getCourseState", params)
  17148. .then((res) => {
  17149. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17150. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17151. this.setNavList();
  17152. this.$forceUpdate();
  17153. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17154. this.addCourseState(2);
  17155. } else {
  17156. this.addCourseState(1);
  17157. }
  17158. })
  17159. .catch((err) => {
  17160. console.error(err);
  17161. });
  17162. },
  17163. addCourseState(type) {
  17164. let _state = this.chapInfoList;
  17165. // this.courseType this.taskCount
  17166. if (type == 1 || type == 2) {
  17167. for (var i = 0; i < _state.length; i++) {
  17168. let el = _state[i].chapterInfo[0].taskJson;
  17169. for (var j = 0; j < el.length; j++) {
  17170. // if (i == 0 && j == 0) {
  17171. // el[j].isLook = true;
  17172. // } else {
  17173. // el[j].isLook = false;
  17174. // }
  17175. if (
  17176. this.courseType > i ||
  17177. (this.courseType == i && this.taskCount + 1 > j)
  17178. ) {
  17179. el[j].isLook = true;
  17180. } else {
  17181. el[j].isLook = false;
  17182. }
  17183. }
  17184. }
  17185. }
  17186. let params = [
  17187. {
  17188. cid: this.id,
  17189. state: JSON.stringify(_state),
  17190. },
  17191. ];
  17192. this.ajax
  17193. .post(
  17194. this.$store.state.api +
  17195. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17196. params
  17197. )
  17198. .then((res) => {
  17199. if (this.IsLookOpen) {
  17200. this.setNavList();
  17201. }
  17202. if (type == 3 && type == 2) {
  17203. this.getCourseState(1);
  17204. }
  17205. })
  17206. .catch((err) => {
  17207. console.error(err);
  17208. });
  17209. },
  17210. getHomeWork() {
  17211. let params = {
  17212. cid: this.id,
  17213. stage: this.courseType,
  17214. task: this.taskCount,
  17215. uid: this.userid,
  17216. };
  17217. this.ajax
  17218. .get(this.$store.state.api + "selectWork", params)
  17219. .then((res) => {
  17220. if (res.data[0].length > 0) {
  17221. this.studyJuri = JSON.parse(res.data[0][0].content);
  17222. this.isNoHomeWork = true;
  17223. }
  17224. })
  17225. .catch((err) => {
  17226. console.error(err);
  17227. });
  17228. },
  17229. isAssetTypeAnImage(ext) {
  17230. return (
  17231. [
  17232. "png",
  17233. "jpg",
  17234. "jpeg",
  17235. "bmp",
  17236. "gif",
  17237. "webp",
  17238. "psd",
  17239. "svg",
  17240. "tiff",
  17241. ].indexOf(ext) !== -1
  17242. );
  17243. },
  17244. switchVideo(media) {
  17245. this.playerO = {};
  17246. this.playerOptions.poster = "";
  17247. this.playerOptions.sources[0].src = media;
  17248. this.playerO = this.playerOptions;
  17249. },
  17250. onPlayerPlay() {},
  17251. onPlayerTimeupdate(player) {
  17252. let gklog = player.cache_.currentTime; //当前播放的秒数
  17253. let a = player.cache_.duration; //视频的总时长
  17254. let gklog2 = parseInt(gklog);
  17255. // if(gklog2 == '3'){
  17256. // player.pause()
  17257. // setTimeout(()=>{
  17258. // player.currentTime(gklog2+1)
  17259. // player.play()
  17260. // },1000)
  17261. // }
  17262. console.log(" onPlayerTimeupdate!", gklog);
  17263. console.log(" onPlayerTimeupdate!", gklog2);
  17264. },
  17265. lookVedio(u, i) {
  17266. this.isClickNav = "";
  17267. // this.playerOptions.sources[0].src = u;
  17268. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17269. d.sources[0].src = u;
  17270. this.playerO[this.taskCount] = d;
  17271. this.showType = 0;
  17272. // this.isClickNav = "video" + i;
  17273. this.isClickNav = i;
  17274. this.$forceUpdate();
  17275. },
  17276. lookText(i, t) {
  17277. this.isClickNav = "";
  17278. // this.text = this.textList[i][t];
  17279. this.text = this.vChapterData[i][t];
  17280. // this.dialogVisible1 = true;
  17281. this.showType = 1;
  17282. // this.isClickNav = "text" + t;
  17283. this.isClickNav = t;
  17284. },
  17285. lookTools(i, t) {
  17286. this.chapTools = this.chapToolList[i][t];
  17287. this.dialogVisible2 = true;
  17288. },
  17289. async openFile(f) {
  17290. this.pptImgUrl = "";
  17291. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17292. if (
  17293. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17294. -1
  17295. ) {
  17296. let _uuurl = await this.checkLink(f);
  17297. this.pptImgUrl =
  17298. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17299. this.showPDF = false;
  17300. this.dialogVisible3 = true;
  17301. } else if (
  17302. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17303. ) {
  17304. this.pptImgUrl = f;
  17305. this.showPDF = true;
  17306. this.dialogVisible3 = true;
  17307. }
  17308. },
  17309. openTable(f) {
  17310. this.tableJson = JSON.parse(f.works);
  17311. this.dialogVisibleTable2 = true;
  17312. },
  17313. openWord(f) {
  17314. this.tableJson = JSON.parse(f.works);
  17315. this.dialogVisibleTable3 = true;
  17316. },
  17317. doUrl(url, i) {
  17318. this.isClickNav = "";
  17319. this.pptImgUrl1 = "";
  17320. this.showType = 2;
  17321. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17322. url = "https://" + url;
  17323. }
  17324. this.pptImgUrl1 = "";
  17325. setTimeout(() => {
  17326. this.pptImgUrl1 = url;
  17327. }, 500);
  17328. // this.isClickNav = "line" + i;
  17329. this.isClickNav = i;
  17330. this.$forceUpdate();
  17331. },
  17332. checkPhoto(f, i) {
  17333. this.showType = 4;
  17334. this.pptImgUrl1 = f.url;
  17335. this.isClickNav = i;
  17336. this.$forceUpdate();
  17337. },
  17338. async downFile(f, i) {
  17339. this.isClickNav = "";
  17340. this.pptImgUrl1 = "";
  17341. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17342. if (
  17343. a.indexOf(
  17344. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17345. ) != -1
  17346. ) {
  17347. let _uuurl = await this.checkLink(f.url);
  17348. this.pptImgUrl1 =
  17349. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17350. // this.dialogVisible3 = true;
  17351. this.showType = 2;
  17352. } else if (
  17353. this.isAssetTypeAnImage(
  17354. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17355. )
  17356. ) {
  17357. this.showType = 4;
  17358. this.pptImgUrl1 = f.url;
  17359. } else if (
  17360. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17361. "PDF"
  17362. ) {
  17363. this.pptImgUrl1 = f.url;
  17364. // this.dialogVisible3 = true;
  17365. this.showType = 3;
  17366. } else {
  17367. window.open(this.file[i].url);
  17368. }
  17369. // this.isClickNav = "word" + i;
  17370. this.isClickNav = i;
  17371. },
  17372. downFileList(i) {
  17373. window.open(this.noImgList[i].url);
  17374. },
  17375. openAddWork() {
  17376. this.dialogVisible = true;
  17377. },
  17378. addBzWorks() {
  17379. let params = [
  17380. {
  17381. uid: this.userid,
  17382. cid: this.id,
  17383. stage: this.courseType,
  17384. task: this.taskCount,
  17385. tool: this.toolindex,
  17386. content: JSON.stringify(this.eScore),
  17387. type: 6,
  17388. },
  17389. ];
  17390. this.ajax
  17391. .post(this.$store.state.api + "addCourseWorks", params)
  17392. .then((res) => {
  17393. this.$message({
  17394. message: "提交成功",
  17395. type: "success",
  17396. });
  17397. this.eScore = { eBzText: "", eStar: [] };
  17398. this.studentEvalDialogVisible = false;
  17399. this.selectSWorks();
  17400. })
  17401. .catch((err) => {
  17402. this.$message.error("提交失败");
  17403. console.error(err);
  17404. });
  17405. },
  17406. addBzWorksTeacher() {
  17407. let params = [
  17408. {
  17409. uid: this.sStudent.userid,
  17410. cid: this.id,
  17411. stage: this.courseType,
  17412. task: this.taskCount,
  17413. tool: this.toolindex,
  17414. content: JSON.stringify(this.eScore),
  17415. type: 6,
  17416. },
  17417. ];
  17418. this.ajax
  17419. .post(this.$store.state.api + "addCourseWorks", params)
  17420. .then((res) => {
  17421. this.$message({
  17422. message: "提交成功",
  17423. type: "success",
  17424. });
  17425. this.eScore = { eBzText: "", eStar: [] };
  17426. this.studentEvalDialogVisibleTeacher = false;
  17427. this.selectSWorks();
  17428. })
  17429. .catch((err) => {
  17430. this.$message.error("提交失败");
  17431. console.error(err);
  17432. });
  17433. },
  17434. addStudentAsk() {
  17435. if (!this.radio.length) {
  17436. this.$message.error("请选择选项");
  17437. return;
  17438. }
  17439. for (var i = 0; i < this.askJson.askCount; i++) {
  17440. if (
  17441. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17442. (this.radio[i] !== 0 && !this.radio[i])
  17443. ) {
  17444. this.$message.error("请选择选项");
  17445. return;
  17446. }
  17447. }
  17448. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17449. let params = [
  17450. {
  17451. uid: this.userid,
  17452. cid: this.id,
  17453. stage: this.courseType,
  17454. task: this.taskCount,
  17455. tool: this.toolindex,
  17456. content: JSON.stringify(this.askList),
  17457. type: 2,
  17458. },
  17459. ];
  17460. this.ajax
  17461. .post(this.$store.state.api + "addCourseWorks", params)
  17462. .then((res) => {
  17463. this.$message({
  17464. message: "提交成功",
  17465. type: "success",
  17466. });
  17467. this.askList = [];
  17468. this.dialogVisible5 = false;
  17469. this.selectStudent();
  17470. this.selectSWorks();
  17471. this.selectSLook();
  17472. })
  17473. .catch((err) => {
  17474. this.$message.error("提交失败");
  17475. console.error(err);
  17476. });
  17477. },
  17478. addStudentAskTeacher() {
  17479. if (!this.radio.length) {
  17480. this.$message.error("请选择选项");
  17481. return;
  17482. }
  17483. for (var i = 0; i < this.askJson.askCount; i++) {
  17484. if (
  17485. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17486. (this.radio[i] !== 0 && !this.radio[i])
  17487. ) {
  17488. this.$message.error("请选择选项");
  17489. return;
  17490. }
  17491. }
  17492. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17493. let params = [
  17494. {
  17495. uid: this.sStudent.userid,
  17496. cid: this.id,
  17497. stage: this.courseType,
  17498. task: this.taskCount,
  17499. tool: this.toolindex,
  17500. content: JSON.stringify(this.askList),
  17501. type: 2,
  17502. },
  17503. ];
  17504. this.ajax
  17505. .post(this.$store.state.api + "addCourseWorks", params)
  17506. .then((res) => {
  17507. this.$message({
  17508. message: "提交成功",
  17509. type: "success",
  17510. });
  17511. this.askList = [];
  17512. this.dialogVisible5Teacher = false;
  17513. this.selectStudent();
  17514. this.selectSWorks();
  17515. this.selectSLook();
  17516. })
  17517. .catch((err) => {
  17518. this.$message.error("提交失败");
  17519. console.error(err);
  17520. });
  17521. },
  17522. addStudentTest() {
  17523. if (!this.radio.length) {
  17524. this.$message.error("请选择选项");
  17525. return;
  17526. }
  17527. for (var i = 0; i < this.testJson.testCount; i++) {
  17528. if (
  17529. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17530. (this.radio[i] !== 0 && !this.radio[i])
  17531. ) {
  17532. this.$message.error("请选择选项");
  17533. return;
  17534. }
  17535. }
  17536. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17537. let params = [
  17538. {
  17539. uid: this.userid,
  17540. cid: this.id,
  17541. stage: this.courseType,
  17542. task: this.taskCount,
  17543. tool: this.toolindex,
  17544. content: JSON.stringify(this.askList),
  17545. type: 8,
  17546. },
  17547. ];
  17548. this.ajax
  17549. .post(this.$store.state.api + "addCourseWorks", params)
  17550. .then((res) => {
  17551. this.$message({
  17552. message: "提交成功",
  17553. type: "success",
  17554. });
  17555. this.askList = [];
  17556. this.dialogVisibleChoice = false;
  17557. this.selectStudent();
  17558. this.selectSWorks();
  17559. this.selectSLook();
  17560. })
  17561. .catch((err) => {
  17562. this.$message.error("提交失败");
  17563. console.error(err);
  17564. });
  17565. },
  17566. addStudentTestTeacher() {
  17567. if (!this.radio.length) {
  17568. this.$message.error("请选择选项");
  17569. return;
  17570. }
  17571. for (var i = 0; i < this.testJson.testCount; i++) {
  17572. if (
  17573. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17574. (this.radio[i] !== 0 && !this.radio[i])
  17575. ) {
  17576. this.$message.error("请选择选项");
  17577. return;
  17578. }
  17579. }
  17580. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17581. let params = [
  17582. {
  17583. uid: this.sStudent.userid,
  17584. cid: this.id,
  17585. stage: this.courseType,
  17586. task: this.taskCount,
  17587. tool: this.toolindex,
  17588. content: JSON.stringify(this.askList),
  17589. type: 8,
  17590. },
  17591. ];
  17592. this.ajax
  17593. .post(this.$store.state.api + "addCourseWorks", params)
  17594. .then((res) => {
  17595. this.$message({
  17596. message: "提交成功",
  17597. type: "success",
  17598. });
  17599. this.askList = [];
  17600. this.dialogVisibleChoiceTeacher = false;
  17601. this.selectStudent();
  17602. this.selectSWorks();
  17603. this.selectSLook();
  17604. })
  17605. .catch((err) => {
  17606. this.$message.error("提交失败");
  17607. console.error(err);
  17608. });
  17609. },
  17610. addWork() {
  17611. if (this.studyJuri[0].content == "") {
  17612. this.$message.error("请将信息填写完整");
  17613. return;
  17614. } else if (this.studyJuri[0].cover.length == 0) {
  17615. this.$message.error("请将信息填写完整");
  17616. return;
  17617. } else if (this.studyJuri[0].upVedio.length == 0) {
  17618. this.$message.error("请将信息填写完整");
  17619. return;
  17620. }
  17621. if (this.isNoHomeWork) {
  17622. this.$confirm(
  17623. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17624. "提示",
  17625. {
  17626. confirmButtonText: "确定",
  17627. cancelButtonText: "取消",
  17628. type: "warning",
  17629. }
  17630. )
  17631. .then(() => {
  17632. let params = [
  17633. {
  17634. uid: this.userid,
  17635. cid: this.id,
  17636. stage: this.courseType,
  17637. task: this.taskCount,
  17638. content: JSON.stringify(this.studyJuri),
  17639. },
  17640. ];
  17641. this.ajax
  17642. .post(this.$store.state.api + "addWorks", params)
  17643. .then((res) => {
  17644. this.$message({
  17645. message: "提交成功",
  17646. type: "success",
  17647. });
  17648. this.isNoHomeWork = true;
  17649. this.dialogVisible = false;
  17650. })
  17651. .catch((err) => {
  17652. this.$message.error("提交失败");
  17653. console.error(err);
  17654. });
  17655. })
  17656. .catch(() => {});
  17657. } else {
  17658. let params = [
  17659. {
  17660. uid: this.userid,
  17661. cid: this.id,
  17662. stage: this.courseType,
  17663. task: this.taskCount,
  17664. content: JSON.stringify(this.studyJuri),
  17665. },
  17666. ];
  17667. this.ajax
  17668. .post(this.$store.state.api + "addWorks", params)
  17669. .then((res) => {
  17670. this.$message({
  17671. message: "提交成功",
  17672. type: "success",
  17673. });
  17674. this.isNoHomeWork = true;
  17675. this.dialogVisible = false;
  17676. })
  17677. .catch((err) => {
  17678. this.$message.error("提交失败");
  17679. console.error(err);
  17680. });
  17681. }
  17682. },
  17683. selectCount() {
  17684. let params = {
  17685. cid: this.id,
  17686. chid: this.courseType,
  17687. uid: this.userid,
  17688. };
  17689. this.ajax
  17690. .get(this.$store.state.api + "selectToolsCount", params)
  17691. .then((res) => {
  17692. for (var i = 0; i < res.data[0].length; i++) {
  17693. if (res.data[0][i].tools == 1) {
  17694. this.wbCount = res.data[0][i].count;
  17695. } else if (res.data[0][i].tools == 2) {
  17696. this.wordCount = res.data[0][i].count;
  17697. } else if (res.data[0][i].tools == 3) {
  17698. this.mindCount = res.data[0][i].count;
  17699. } else if (res.data[0][i].tools == 4) {
  17700. this.askCount = res.data[0][i].count;
  17701. } else if (res.data[0][i].tools == 6) {
  17702. this.noteCount = res.data[0][i].count;
  17703. } else if (res.data[0][i].tools == 7) {
  17704. this.mindNetWorkCount = res.data[0][i].count;
  17705. } else if (res.data[0][i].tools == 8) {
  17706. this.libraryCount = res.data[0][i].count;
  17707. } else if (res.data[0][i].tools == 16) {
  17708. this.workCount = res.data[0][i].count;
  17709. } else if (res.data[0][i].tools == 10) {
  17710. this.timeCount = res.data[0][i].count;
  17711. } else if (res.data[0][i].tools == 15) {
  17712. this.answerCount = res.data[0][i].count;
  17713. } else if (res.data[0][i].tools == 18) {
  17714. this.trainCount = res.data[0][i].count;
  17715. }
  17716. }
  17717. })
  17718. .catch((err) => {
  17719. console.error(err);
  17720. });
  17721. },
  17722. openTools(t, i, index, c, sName,id) {
  17723. var z = JSON.parse(c);
  17724. this.noteName = sName;
  17725. if (t == 4) {
  17726. this.radio = [];
  17727. this.isAnswer = false;
  17728. let b = z[0].anwer;
  17729. this.radio = b;
  17730. this.askJson = z[0].askJson;
  17731. this.isAnswer = true;
  17732. this.dialogVisible5 = true;
  17733. } else if (t == 45) {
  17734. this.radio = [];
  17735. this.isAnswer = false;
  17736. let b = z[0].anwer;
  17737. this.radio = b;
  17738. this.testJson = z[0].testJson;
  17739. this.isAnswer = true;
  17740. this.dialogVisibleChoice = true;
  17741. }else if(t == 69){
  17742. this.oldEnglishJson1 = {}
  17743. this.oldEnglishJson = {}
  17744. this.englishList1 = {}
  17745. this.newEngIndex = -1;
  17746. this.isNoUserid = false;
  17747. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17748. .toolChoose[i].englishList;
  17749. this.oldEnglishJson = z;
  17750. this.engWid = id;
  17751. this.newEnglishList = { engTitle:"",engText:"" }
  17752. this.newEnglishList1 = []
  17753. this.selectEngC(id,z);
  17754. }else if(t == 62){
  17755. this.videoType = 1;
  17756. this.videoJson = {};
  17757. this.videoJson = JSON.parse(c);
  17758. // this.videoJson =
  17759. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17760. // index
  17761. // ].toolChoose[i].videoJson;
  17762. this.dialogVisibleVideo = true;
  17763. //this.dialog
  17764. }
  17765. // else if (t == 15) {
  17766. // this.answerQ = "";
  17767. // this.questionAnswer = "";
  17768. // this.answerQ = z[0].answerTitle;
  17769. // this.questionAnswer = z[0].answer;
  17770. // this.answerDialogVisible = true;
  17771. // }
  17772. },
  17773. fastText(p, t) {
  17774. if (t == 1) {
  17775. this.commentText += p;
  17776. } else {
  17777. this.eScore.eBzText += p;
  17778. }
  17779. },
  17780. addTools(t, i, index) {
  17781. var a = 0;
  17782. // this.taskCount = index;
  17783. this.toolindex = i;
  17784. if (t == 1) {
  17785. if (this.wbCount > 0) {
  17786. this.updateCount(this.wbCount, t);
  17787. } else {
  17788. this.wbCount++;
  17789. a = this.wbCount;
  17790. this.toolsCount(a, t);
  17791. }
  17792. window.parent.postMessage(
  17793. {
  17794. tools: "1",
  17795. cid: this.id,
  17796. stage: this.courseType,
  17797. task: this.taskCount,
  17798. tool: i,
  17799. },
  17800. "*"
  17801. );
  17802. } else if (t == 2) {
  17803. if (this.wordCount > 0) {
  17804. this.updateCount(this.wordCount, t);
  17805. } else {
  17806. this.wordCount++;
  17807. a = this.wordCount;
  17808. this.toolsCount(a, t);
  17809. }
  17810. window.parent.postMessage({ tools: "2" }, "*");
  17811. } else if (t == 3) {
  17812. if (this.mindCount > 0) {
  17813. this.updateCount(this.mindCount, t);
  17814. } else {
  17815. this.mindCount++;
  17816. a = this.mindCount;
  17817. this.toolsCount(a, t);
  17818. }
  17819. window.parent.postMessage(
  17820. {
  17821. tools: "3",
  17822. cid: this.id,
  17823. stage: this.courseType,
  17824. task: this.taskCount,
  17825. tool: i,
  17826. },
  17827. "*"
  17828. );
  17829. } else if (t == 4) {
  17830. this.radio = [];
  17831. this.noteName = "";
  17832. this.isAnswer = false;
  17833. if (this.askCount > 0) {
  17834. this.updateCount(this.askCount, t);
  17835. } else {
  17836. this.askCount++;
  17837. a = this.askCount;
  17838. this.toolsCount(a, t);
  17839. }
  17840. if (!this.dialogVisible2) {
  17841. this.askJson.askJson =
  17842. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17843. index
  17844. ].toolChoose[i].askJson;
  17845. this.askJson.askTitle =
  17846. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17847. index
  17848. ].toolChoose[i].askTitle;
  17849. this.askJson.askCount =
  17850. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17851. index
  17852. ].toolChoose[i].askCount;
  17853. } else {
  17854. this.askJson.askJson = this.chapTools.askJson.askJson;
  17855. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17856. this.askJson.askCount = this.chapTools.askJson.askCount;
  17857. }
  17858. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17859. if (this.askJson.askJson[k].type == "2") {
  17860. this.radio.push([]);
  17861. } else {
  17862. this.radio.push("");
  17863. }
  17864. }
  17865. this.dialogVisible5 = true;
  17866. // window.parent.postMessage({ tools: "4" }, "*");
  17867. } else if (t == 45) {
  17868. this.noteName = "";
  17869. this.radio = [];
  17870. this.isAnswer = false;
  17871. if (this.askCount > 0) {
  17872. this.updateCount(this.askCount, t);
  17873. } else {
  17874. this.askCount++;
  17875. a = this.askCount;
  17876. this.toolsCount(a, t);
  17877. }
  17878. this.testJson =
  17879. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17880. index
  17881. ].toolChoose[i].testJson;
  17882. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17883. if (this.testJson.testJson[k].type == "2") {
  17884. this.radio.push([]);
  17885. } else {
  17886. this.radio.push("");
  17887. }
  17888. }
  17889. this.dialogVisibleChoice = true;
  17890. // window.parent.postMessage({ tools: "4" }, "*");
  17891. } else if (t == 5) {
  17892. if (this.scoreCount > 0) {
  17893. this.updateCount(this.scoreCount, t);
  17894. } else {
  17895. this.scoreCount++;
  17896. a = this.scoreCount;
  17897. this.toolsCount(a, t);
  17898. }
  17899. this.dialogVisible4 = true;
  17900. // window.parent.postMessage({ tools: "5" }, "*");
  17901. } else if (t == 6) {
  17902. if (this.noteCount > 0) {
  17903. this.updateCount(this.noteCount, t);
  17904. } else {
  17905. this.noteCount++;
  17906. a = this.noteCount;
  17907. this.toolsCount(a, t);
  17908. }
  17909. window.parent.postMessage(
  17910. {
  17911. tools: "6",
  17912. cid: this.id,
  17913. stage: this.courseType,
  17914. task: this.taskCount,
  17915. tool: i,
  17916. },
  17917. "*"
  17918. );
  17919. } else if (t == 7) {
  17920. if (this.mindNetWorkCount > 0) {
  17921. this.updateCount(this.mindNetWorkCount, t);
  17922. } else {
  17923. this.mindNetWorkCount++;
  17924. a = this.mindNetWorkCount;
  17925. this.toolsCount(a, t);
  17926. }
  17927. window.parent.postMessage(
  17928. {
  17929. tools: "7",
  17930. cid: this.id,
  17931. stage: this.courseType,
  17932. task: this.taskCount,
  17933. tool: i,
  17934. },
  17935. "*"
  17936. );
  17937. } else if (t == 16) {
  17938. if (this.workCount > 0) {
  17939. this.updateCount(this.workCount, t);
  17940. } else {
  17941. this.workCount++;
  17942. a = this.workCount;
  17943. this.toolsCount(a, t);
  17944. }
  17945. this.dialogVisible = true;
  17946. } else if (t == 50) {
  17947. if (this.tType == 2) {
  17948. this.$message.error("不支持学生使用");
  17949. return;
  17950. }
  17951. this.plworkFile = [];
  17952. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17953. if (!this.uploadCid) {
  17954. this.$message.error(
  17955. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17956. );
  17957. return;
  17958. }
  17959. // this.uploadCid =
  17960. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17961. // index
  17962. // ].toolChoose[i].uploadJson[0];
  17963. this.selectUploadStudent(2);
  17964. } else if (t == 8) {
  17965. if (this.libraryCount > 0) {
  17966. this.updateCount(this.libraryCount, t);
  17967. } else {
  17968. this.libraryCount++;
  17969. a = this.libraryCount;
  17970. this.toolsCount(a, t);
  17971. }
  17972. window.parent.postMessage({ tools: "8" }, "*");
  17973. } else if (t == 17) {
  17974. if (this.libraryCount > 0) {
  17975. this.updateCount(this.libraryCount, t);
  17976. } else {
  17977. this.libraryCount++;
  17978. a = this.libraryCount;
  17979. this.toolsCount(a, t);
  17980. }
  17981. window.parent.postMessage({ tools: "17" }, "*");
  17982. } else if (t == 18) {
  17983. if (this.trainCount > 0) {
  17984. this.updateCount(this.trainCount, t);
  17985. } else {
  17986. this.trainCount++;
  17987. a = this.trainCount;
  17988. this.toolsCount(a, t);
  17989. }
  17990. window.parent.postMessage({ tools: "18" }, "*");
  17991. } else if (t == 10) {
  17992. if (this.timeCount > 0) {
  17993. this.updateCount(this.timeCount, t);
  17994. } else {
  17995. this.timeCount++;
  17996. a = this.timeCount;
  17997. this.toolsCount(a, t);
  17998. }
  17999. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18000. .taskJson[index].toolChoose[i].preTime
  18001. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18002. .toolChoose[i].preTime
  18003. : "";
  18004. this.timeDialogVisible = true;
  18005. } else if (t == 15) {
  18006. this.answerQ = "";
  18007. this.questionAnswer = "";
  18008. if (this.answerCount > 0) {
  18009. this.updateCount(this.answerCount, t);
  18010. } else {
  18011. this.answerCount++;
  18012. a = this.answerCount;
  18013. this.toolsCount(a, t);
  18014. }
  18015. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18016. .taskJson[index].toolChoose[i].answerQ
  18017. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18018. .toolChoose[i].answerQ
  18019. : "";
  18020. this.answerDialogVisible = true;
  18021. } else if (t == 21) {
  18022. window.parent.postMessage({ tools: "21" }, "*");
  18023. } else if (t == 22) {
  18024. window.parent.postMessage({ tools: "22" }, "*");
  18025. } else if (t == 23) {
  18026. window.parent.postMessage({ tools: "23" }, "*");
  18027. } else if (t == 24) {
  18028. window.parent.postMessage({ tools: "24" }, "*");
  18029. } else if (t == 25) {
  18030. window.parent.postMessage({ tools: "25" }, "*");
  18031. } else if (t == 31) {
  18032. window.parent.postMessage({ tools: "31" }, "*");
  18033. } else if (t == 28) {
  18034. window.parent.postMessage({ tools: "28" }, "*");
  18035. } else if (t == 37) {
  18036. window.parent.postMessage({ tools: "37" }, "*");
  18037. } else if (t == 38) {
  18038. window.parent.postMessage({ tools: "38" }, "*");
  18039. } else if (t == 39) {
  18040. window.parent.postMessage({ tools: "39" }, "*");
  18041. } else if (t == 32) {
  18042. window.parent.postMessage({ tools: "32" }, "*");
  18043. } else if (t == 66) {
  18044. window.parent.postMessage({ tools: "66" }, "*");
  18045. } else if (t == 67) {
  18046. window.parent.postMessage({ tools: "67" }, "*");
  18047. } else if (t == 68) {
  18048. window.parent.postMessage({ tools: "68" }, "*");
  18049. } else if (t == 57) {
  18050. // window.parent.postMessage({ tools: "57" }, "*");
  18051. window.parent.postMessage(
  18052. {
  18053. tools: "57u",
  18054. cid: this.id,
  18055. stage: this.courseType,
  18056. task: this.taskCount,
  18057. tool: i,
  18058. },
  18059. "*"
  18060. );
  18061. } else if (t == 58) {
  18062. window.parent.postMessage({ tools: "58" }, "*");
  18063. } else if (t == 59) {
  18064. window.parent.postMessage({ tools: "59" }, "*");
  18065. } else if (t == 60) {
  18066. window.parent.postMessage({ tools: "60" }, "*");
  18067. } else if (t == 61) {
  18068. window.parent.postMessage({ tools: "61" }, "*");
  18069. } else if (t == 63) {
  18070. window.parent.postMessage({ tools: "63" }, "*");
  18071. } else if (t == 71) {
  18072. window.parent.postMessage({ tools: "71" }, "*");
  18073. } else if (t == 69) {
  18074. if (this.worksStudent[i].length) {
  18075. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18076. if (this.userid == this.worksStudent[i][k].userid) {
  18077. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18078. break;
  18079. } else {
  18080. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18081. }
  18082. }
  18083. } else {
  18084. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18085. }
  18086. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18087. .taskJson[index].toolChoose[i].englishList
  18088. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18089. .toolChoose[i].englishList
  18090. : {};
  18091. this.englishToolIndex = i;
  18092. this.myAnList = this.myAnswerList1;
  18093. this.engDialogVisible = true;
  18094. } else if (t == 70) {
  18095. if (this.worksStudent[i].length) {
  18096. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18097. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18098. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18099. break;
  18100. } else {
  18101. this.englishVoiceJsonWork = [];
  18102. }
  18103. }
  18104. } else {
  18105. this.englishVoiceJsonWork = [];
  18106. }
  18107. let englishVoiceJson = {}
  18108. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18109. .taskJson[index].toolChoose[i].englishVoiceJson
  18110. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18111. .toolChoose[i].englishVoiceJson
  18112. : {};
  18113. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18114. this.EnglishVoiceDialog = true;
  18115. } else if (t == 65) {
  18116. if (this.tType == 2) {
  18117. this.$message.error("不支持学生使用");
  18118. return;
  18119. }
  18120. this.uploadCid = this.tcid;
  18121. if (!this.uploadCid) {
  18122. this.$message.error(
  18123. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18124. );
  18125. return;
  18126. }
  18127. this.selectPickStudent();
  18128. } else if (t == 26) {
  18129. window.parent.postMessage(
  18130. {
  18131. tools: "26",
  18132. cid: this.id,
  18133. stage: this.courseType,
  18134. task: this.taskCount,
  18135. tool: i,
  18136. },
  18137. "*"
  18138. );
  18139. } else if (t == 40) {
  18140. if (this.evalCount > 0) {
  18141. this.updateCount(this.evalCount, t);
  18142. } else {
  18143. this.evalCount++;
  18144. a = this.evalCount;
  18145. this.toolsCount(a, t);
  18146. }
  18147. this.eScore = { eBzText: "", eStar: [] };
  18148. if (this.worksStudent[i].length) {
  18149. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18150. if (this.userid == this.worksStudent[i][k].userid) {
  18151. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18152. this.rateJson =
  18153. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18154. index
  18155. ].toolChoose[i].rateJson;
  18156. break;
  18157. } else {
  18158. this.rateJson =
  18159. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18160. index
  18161. ].toolChoose[i].rateJson;
  18162. }
  18163. }
  18164. } else {
  18165. this.rateJson =
  18166. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18167. index
  18168. ].toolChoose[i].rateJson;
  18169. }
  18170. this.isStar = false;
  18171. this.studentEvalDialogVisible = true;
  18172. } else if (t == 41) {
  18173. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18174. .taskJson[index].toolChoose[i].selectJson
  18175. ? JSON.parse(
  18176. JSON.stringify(
  18177. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18178. index
  18179. ].toolChoose[i].selectJson
  18180. )
  18181. )
  18182. : { url: "", select: [], answer: [] };
  18183. if (this.worksStudent[i].length) {
  18184. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18185. if (this.userid == this.worksStudent[i][k].userid) {
  18186. var a = this.worksStudent[i][k].works.split(",");
  18187. for (var ki = 0; ki < a.length; ki++) {
  18188. a[ki] = parseInt(a[ki]);
  18189. }
  18190. this.selectAnswer = {
  18191. answer: a,
  18192. stu: this.worksStudent[i][k].sName,
  18193. };
  18194. break;
  18195. } else {
  18196. this.selectAnswer = { answer: [], stu: "" };
  18197. }
  18198. }
  18199. } else {
  18200. this.selectAnswer = { answer: [], stu: "" };
  18201. }
  18202. this.isSelect = false;
  18203. this.dialogVisibleSelect = true;
  18204. } else if (t == 44) {
  18205. window.parent.postMessage({ tools: "44" }, "*");
  18206. } else if (t == 47) {
  18207. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18208. .taskJson[index].toolChoose[i].sentenceList
  18209. ? JSON.parse(
  18210. JSON.stringify(
  18211. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18212. index
  18213. ].toolChoose[i].sentenceList
  18214. )
  18215. )
  18216. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18217. for (var q = 0; q < this.sentenceList.length; q++) {
  18218. this.sentenceList[q].chooseSenList = [];
  18219. this.sentenceList[q].addChangeSen = [];
  18220. this.sentenceList[q].addChangeSen = JSON.parse(
  18221. JSON.stringify(this.sentenceList[q].addSentence)
  18222. );
  18223. this.sentenceList[q].chooseSenList.length =
  18224. this.sentenceList[q].rightAnswer.length;
  18225. }
  18226. this.dialogVisibleSentence = true;
  18227. } else if (t == 48) {
  18228. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18229. .taskJson[index].toolChoose[i].tableJson
  18230. ? JSON.parse(
  18231. JSON.stringify(
  18232. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18233. index
  18234. ].toolChoose[i].tableJson
  18235. )
  18236. )
  18237. : { text: "" };
  18238. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18239. if (this.worksStudent[i].length) {
  18240. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18241. if (this.userid == this.worksStudent[i][k].userid) {
  18242. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18243. break;
  18244. }
  18245. }
  18246. }
  18247. this.dialogVisibleTable = true;
  18248. } else if (t == 52) {
  18249. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18250. .taskJson[index].toolChoose[i].wordJson
  18251. ? JSON.parse(
  18252. JSON.stringify(
  18253. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18254. index
  18255. ].toolChoose[i].wordJson
  18256. )
  18257. )
  18258. : { text: "" };
  18259. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18260. if (this.worksStudent[i].length) {
  18261. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18262. if (this.userid == this.worksStudent[i][k].userid) {
  18263. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18264. break;
  18265. }
  18266. }
  18267. }
  18268. this.dialogVisibleWord = true;
  18269. } else if (t == 49) {
  18270. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18271. return
  18272. }
  18273. this.groupJson =
  18274. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18275. index
  18276. ].toolChoose[i].groupJson;
  18277. this.islock = this.groupJson.islock == 1 ? true : false;
  18278. this.dialogVisibleGroup = true;
  18279. } else if (t == 62) {
  18280. this.videoType = 0;
  18281. this.videoJson = {};
  18282. this.videoJson =
  18283. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18284. index
  18285. ].toolChoose[i].videoJson;
  18286. this.dialogVisibleVideo = true;
  18287. }
  18288. },
  18289. teacherWorkSubmit(t, i, index, s) {
  18290. this.sStudent = s;
  18291. this.toolindex = i;
  18292. this.sTool = t;
  18293. if (this.tType !== "1" && this.tType !== "4") {
  18294. return;
  18295. }
  18296. if (t == 16 || t == 32 || t == 50) {
  18297. this.dialogVisibleWorks = true;
  18298. } else if (t == 15) {
  18299. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18300. .taskJson[index].toolChoose[i].answerQ
  18301. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18302. .toolChoose[i].answerQ
  18303. : "";
  18304. this.questionAnswer = "";
  18305. this.answerDialogVisibleTeacher = true; //问答
  18306. } else if (t == 52) {
  18307. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18308. .taskJson[index].toolChoose[i].wordJson
  18309. ? JSON.parse(
  18310. JSON.stringify(
  18311. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18312. index
  18313. ].toolChoose[i].wordJson
  18314. )
  18315. )
  18316. : { text: "" };
  18317. if (this.worksStudent[i].length) {
  18318. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18319. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18320. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18321. break;
  18322. }
  18323. }
  18324. }
  18325. this.dialogVisibleWordTeacher = true; //文档
  18326. } else if (t == 4) {
  18327. this.radio = [];
  18328. this.noteName = "";
  18329. this.isAnswer = false;
  18330. if (this.askCount > 0) {
  18331. this.updateCount(this.askCount, t);
  18332. } else {
  18333. this.askCount++;
  18334. a = this.askCount;
  18335. this.toolsCount(a, t);
  18336. }
  18337. if (!this.dialogVisible2) {
  18338. this.askJson.askJson =
  18339. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18340. index
  18341. ].toolChoose[i].askJson;
  18342. this.askJson.askTitle =
  18343. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18344. index
  18345. ].toolChoose[i].askTitle;
  18346. this.askJson.askCount =
  18347. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18348. index
  18349. ].toolChoose[i].askCount;
  18350. } else {
  18351. this.askJson.askJson = this.chapTools.askJson.askJson;
  18352. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18353. this.askJson.askCount = this.chapTools.askJson.askCount;
  18354. }
  18355. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18356. if (this.askJson.askJson[k].type == "2") {
  18357. this.radio.push([]);
  18358. } else {
  18359. this.radio.push("");
  18360. }
  18361. }
  18362. this.dialogVisible5Teacher = true;
  18363. } else if (t == 45) {
  18364. this.noteName = "";
  18365. this.radio = [];
  18366. this.isAnswer = false;
  18367. if (this.askCount > 0) {
  18368. this.updateCount(this.askCount, t);
  18369. } else {
  18370. this.askCount++;
  18371. a = this.askCount;
  18372. this.toolsCount(a, t);
  18373. }
  18374. this.testJson =
  18375. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18376. index
  18377. ].toolChoose[i].testJson;
  18378. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18379. if (this.testJson.testJson[k].type == "2") {
  18380. this.radio.push([]);
  18381. } else {
  18382. this.radio.push("");
  18383. }
  18384. }
  18385. this.dialogVisibleChoiceTeacher = true;
  18386. } else if (t == 41) {
  18387. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18388. .taskJson[index].toolChoose[i].selectJson
  18389. ? JSON.parse(
  18390. JSON.stringify(
  18391. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18392. index
  18393. ].toolChoose[i].selectJson
  18394. )
  18395. )
  18396. : { url: "", select: [], answer: [] };
  18397. if (this.worksStudent[i].length) {
  18398. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18399. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18400. var a = this.worksStudent[i][k].works.split(",");
  18401. for (var ki = 0; ki < a.length; ki++) {
  18402. a[ki] = parseInt(a[ki]);
  18403. }
  18404. this.selectAnswer = {
  18405. answer: a,
  18406. stu: this.worksStudent[i][k].sName,
  18407. };
  18408. break;
  18409. } else {
  18410. this.selectAnswer = { answer: [], stu: "" };
  18411. }
  18412. }
  18413. } else {
  18414. this.selectAnswer = { answer: [], stu: "" };
  18415. }
  18416. this.isSelect = false;
  18417. this.dialogVisibleSelectTeacher = true;
  18418. } else if (t == 47) {
  18419. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18420. .taskJson[index].toolChoose[i].sentenceList
  18421. ? JSON.parse(
  18422. JSON.stringify(
  18423. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18424. index
  18425. ].toolChoose[i].sentenceList
  18426. )
  18427. )
  18428. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18429. for (var q = 0; q < this.sentenceList.length; q++) {
  18430. this.sentenceList[q].chooseSenList = [];
  18431. this.sentenceList[q].addChangeSen = [];
  18432. this.sentenceList[q].addChangeSen = JSON.parse(
  18433. JSON.stringify(this.sentenceList[q].addSentence)
  18434. );
  18435. this.sentenceList[q].chooseSenList.length =
  18436. this.sentenceList[q].rightAnswer.length;
  18437. }
  18438. this.dialogVisibleSentenceTeacher = true;
  18439. } else if (t == 48) {
  18440. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18441. .taskJson[index].toolChoose[i].tableJson
  18442. ? JSON.parse(
  18443. JSON.stringify(
  18444. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18445. index
  18446. ].toolChoose[i].tableJson
  18447. )
  18448. )
  18449. : { text: "" };
  18450. if (this.worksStudent[i].length) {
  18451. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18452. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18453. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18454. break;
  18455. }
  18456. }
  18457. }
  18458. this.dialogVisibleTableTeacher = true;
  18459. } else if (t == 40) {
  18460. if (this.evalCount > 0) {
  18461. this.updateCount(this.evalCount, t);
  18462. } else {
  18463. this.evalCount++;
  18464. a = this.evalCount;
  18465. this.toolsCount(a, t);
  18466. }
  18467. this.eScore = { eBzText: "", eStar: [] };
  18468. if (this.worksStudent[i].length) {
  18469. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18470. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18471. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18472. this.rateJson =
  18473. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18474. index
  18475. ].toolChoose[i].rateJson;
  18476. break;
  18477. } else {
  18478. this.rateJson =
  18479. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18480. index
  18481. ].toolChoose[i].rateJson;
  18482. }
  18483. }
  18484. } else {
  18485. this.rateJson =
  18486. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18487. index
  18488. ].toolChoose[i].rateJson;
  18489. }
  18490. this.isStar = false;
  18491. this.studentEvalDialogVisibleTeacher = true;
  18492. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18493. window.parent.postMessage(
  18494. {
  18495. tools: t + "teacher",
  18496. cid: this.id,
  18497. stage: this.courseType,
  18498. task: this.taskCount,
  18499. tool: i,
  18500. student: this.sStudent,
  18501. },
  18502. "*"
  18503. );
  18504. }
  18505. },
  18506. openCocoPi(tool, i, uid, uname) {
  18507. let student = {
  18508. userid: uid,
  18509. student: uname,
  18510. };
  18511. if (tool == 57) {
  18512. window.parent.postMessage(
  18513. {
  18514. tools: tool + "teacher",
  18515. cid: this.id,
  18516. stage: this.courseType,
  18517. task: this.taskCount,
  18518. tool: i,
  18519. student: student,
  18520. },
  18521. "*"
  18522. );
  18523. }
  18524. },
  18525. setRightAnswer(s, i, j) {
  18526. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18527. if (
  18528. this.sentenceList[i].chooseSenList[q] == undefined ||
  18529. this.sentenceList[i].chooseSenList[q] == ""
  18530. ) {
  18531. this.sentenceList[i].chooseSenList[q] = s;
  18532. this.sentenceList[i].addChangeSen[j] = "";
  18533. break;
  18534. }
  18535. }
  18536. this.$forceUpdate();
  18537. },
  18538. returnCard(r, i, j) {
  18539. var a = this.sentenceList[i].addSentence.indexOf(r);
  18540. this.sentenceList[i].chooseSenList[j] = "";
  18541. this.sentenceList[i].addChangeSen[a] = r;
  18542. this.$forceUpdate();
  18543. },
  18544. // addSentenceTool() {
  18545. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18546. // this.taskCount
  18547. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18548. // this.sentenceList = [
  18549. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18550. // ];
  18551. // this.dialogVisibleSentence = false;
  18552. // },
  18553. toolsCount(a, t) {
  18554. let params = {
  18555. cid: this.id,
  18556. chid: this.courseType,
  18557. uid: this.userid,
  18558. tid: t,
  18559. count: a,
  18560. };
  18561. this.ajax
  18562. .get(this.$store.state.api + "insertToolsCount", params)
  18563. .then((res) => {
  18564. this.selectCount();
  18565. })
  18566. .catch((err) => {
  18567. console.error(err);
  18568. });
  18569. },
  18570. updateCount(c, t) {
  18571. c++;
  18572. let params = {
  18573. cid: this.id,
  18574. chid: this.courseType,
  18575. uid: this.userid,
  18576. tid: t,
  18577. count: c,
  18578. };
  18579. this.ajax
  18580. .get(this.$store.state.api + "updateToolsCount", params)
  18581. .then((res) => {
  18582. this.selectCount();
  18583. })
  18584. .catch((err) => {
  18585. console.error(err);
  18586. });
  18587. },
  18588. checkEva() {
  18589. if (this.evalua != "") {
  18590. for (var i = 0; i < this.evaJuri.length; i++) {
  18591. if (this.evalua == this.evaJuri[i].id) {
  18592. this.eTitle = this.evaJuri[i].title;
  18593. this.eJson = JSON.parse(this.evaJuri[i].content);
  18594. }
  18595. }
  18596. this.$forceUpdate();
  18597. setTimeout(() => {
  18598. this.setMindData();
  18599. }, 0);
  18600. }
  18601. },
  18602. selectEva() {
  18603. let params = {
  18604. oid: this.oid,
  18605. };
  18606. this.ajax
  18607. .get(this.$store.state.api + "selectAllEvaluation", params)
  18608. .then((res) => {
  18609. this.evaJuri = res.data[0];
  18610. })
  18611. .catch((err) => {
  18612. console.error(err);
  18613. });
  18614. },
  18615. setMindData() {
  18616. this.data.data = [];
  18617. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18618. let _eJson = Object.keys(this.eJson);
  18619. let _e = this.eJson;
  18620. for (let i = 0; i < _eJson.length; i++) {
  18621. let element = _e[_eJson[i]];
  18622. this.data.data.push({
  18623. id: element.id,
  18624. parentid: "root",
  18625. topic: element.name,
  18626. });
  18627. let _eJsonc = Object.keys(element.child);
  18628. let _e2 = element.child;
  18629. for (let j = 0; j < _eJsonc.length; j++) {
  18630. let _ec = _e2[_eJsonc[j]];
  18631. this.data.data.push({
  18632. id: _ec.id,
  18633. parentid: element.id,
  18634. topic: _ec.name,
  18635. });
  18636. let _eJsonz = Object.keys(_ec.child);
  18637. let _e3 = _ec.child;
  18638. for (let z = 0; z < _eJsonz.length; z++) {
  18639. let _ez = _e3[_eJsonz[z]];
  18640. this.data.data.push({
  18641. id: _ez.id,
  18642. parentid: _ec.id,
  18643. topic: _ez.name,
  18644. });
  18645. }
  18646. }
  18647. }
  18648. this.$forceUpdate();
  18649. },
  18650. checkFileFull(type, url) {
  18651. this.fullDialogVisible = true;
  18652. this.fulltype = type;
  18653. this.fullUrl = url;
  18654. },
  18655. async checkFileFull1(t, f) {
  18656. this.fullDialogVisible = true;
  18657. if (t == 6) {
  18658. this.fulltype = 1;
  18659. this.fullUrl = JSON.parse(JSON.stringify(f));
  18660. } else if (t == 8) {
  18661. this.fulltype = 2;
  18662. this.fullUrl = f.url;
  18663. } else if (
  18664. t == 3 &&
  18665. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18666. "PDF"
  18667. ) {
  18668. this.fulltype = 3;
  18669. this.fullUrl = f.url;
  18670. } else if (t == 3) {
  18671. this.fulltype = 2;
  18672. let _uuurl = await this.checkLink(f.url);
  18673. this.fullUrl =
  18674. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18675. }
  18676. },
  18677. openSname(n, id, i, uid) {
  18678. this.snameWid = id;
  18679. this.worksSName = n;
  18680. this.worksSid = uid == n ? "" : uid;
  18681. this.toolindex = i;
  18682. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18683. if (!this.uploadCid) {
  18684. this.$message.error(
  18685. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18686. );
  18687. return;
  18688. }
  18689. this.selectUploadStudent(1);
  18690. },
  18691. updateName() {
  18692. let params = {
  18693. n: this.worksSName,
  18694. cid: this.snameWid,
  18695. };
  18696. this.ajax
  18697. .get(this.$store.state.api + "updateCourseWorksName", params)
  18698. .then((res) => {
  18699. this.$message({
  18700. message: "修改成功",
  18701. type: "success",
  18702. });
  18703. this.dialogVisibleSname = false;
  18704. this.getCourseDetail(2);
  18705. this.snameWid = "";
  18706. this.worksSName = "";
  18707. })
  18708. .catch((err) => {
  18709. console.error(err);
  18710. });
  18711. },
  18712. downloadFile2(f) {
  18713. // const loading = this.$loading.service({
  18714. // background: "rgba(255, 255, 255, 0.7)",
  18715. // target: document.body,
  18716. // text: "文件加载中...",
  18717. // });
  18718. // let url2 = f.url;
  18719. // let _url2 = "";
  18720. // if (
  18721. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18722. // ) {
  18723. // _url2 = url2.split(
  18724. // "https://view.officeapps.live.com/op/view.aspx?src="
  18725. // )[1];
  18726. // } else {
  18727. // _url2 = url2;
  18728. // }
  18729. // let params = {
  18730. // url: _url2,
  18731. // name: f.name,
  18732. // };
  18733. // this.ajax
  18734. // .get(this.$store.state.api + "download", params)
  18735. // .then((res) => {
  18736. // loading.close();
  18737. // let content = res.data.data.data;
  18738. // let ab = new ArrayBuffer(content.length);
  18739. // let view = new Uint8Array(ab);
  18740. // for (var i = 0; i < content.length; ++i) {
  18741. // view[i] = content[i];
  18742. // }
  18743. // let elink = document.createElement("a");
  18744. // elink.download = f.name;
  18745. // elink.style.display = "none";
  18746. // let blob = new Blob([ab], {
  18747. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18748. // });
  18749. // elink.href = URL.createObjectURL(blob);
  18750. // document.body.appendChild(elink);
  18751. // elink.click();
  18752. // document.body.removeChild(elink);
  18753. // })
  18754. // .catch((err) => {
  18755. // loading.close();
  18756. // console.error(err);
  18757. // });
  18758. var credentials = {
  18759. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18760. secretAccessKey: "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",
  18761. }; //秘钥形式的登录上传
  18762. window.AWS.config.update(credentials);
  18763. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18764. let url2 = f.url;
  18765. let _url2 = "";
  18766. if (
  18767. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18768. ) {
  18769. _url2 = url2.split(
  18770. "https://view.officeapps.live.com/op/view.aspx?src="
  18771. )[1];
  18772. } else {
  18773. _url2 = url2;
  18774. }
  18775. let _this = this;
  18776. _this.downLoading = true
  18777. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18778. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18779. var params = {
  18780. Bucket: "ccrb",
  18781. Key: name
  18782. };
  18783. s3.getObject(params, function (err, data) {
  18784. _this.downLoading = false
  18785. if (err) console.log(err, err.stack); // an error occurred
  18786. else {
  18787. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18788. let a = document.createElement("a");
  18789. a.name = f.name;
  18790. a.href = url;
  18791. a.download = f.name;
  18792. a.click();
  18793. console.log(data);
  18794. } // sxuccessful response
  18795. });
  18796. return;
  18797. let url = f.url;
  18798. let _url = "";
  18799. if (
  18800. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18801. ) {
  18802. _url = url.split(
  18803. "https://view.officeapps.live.com/op/view.aspx?src="
  18804. )[1];
  18805. } else {
  18806. _url = url;
  18807. }
  18808. _this.downLoading = true
  18809. let x = new XMLHttpRequest();
  18810. x.open("GET", _url, true);
  18811. x.responseType = "blob";
  18812. x.onload = function () {
  18813. _this.downLoading = false
  18814. let url = window.URL.createObjectURL(new Blob([x.response]));
  18815. let a = document.createElement("a");
  18816. a.name = f.name;
  18817. a.href = url;
  18818. a.download = f.name;
  18819. a.click();
  18820. };
  18821. x.send();
  18822. },
  18823. downloadFile(url) {
  18824. var credentials = {
  18825. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18826. secretAccessKey: "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",
  18827. }; //秘钥形式的登录上传
  18828. window.AWS.config.update(credentials);
  18829. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18830. let url2 = url;
  18831. let _url2 = "";
  18832. if (
  18833. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18834. ) {
  18835. _url2 = url2.split(
  18836. "https://view.officeapps.live.com/op/view.aspx?src="
  18837. )[1];
  18838. } else {
  18839. _url2 = url2;
  18840. }
  18841. const loading2 = this.$loading.service({
  18842. background: "rgba(255, 255, 255, 0.7)",
  18843. target: document.body,
  18844. text: "文件加载中...",
  18845. });
  18846. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18847. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18848. var params = {
  18849. Bucket: "ccrb",
  18850. Key: name
  18851. };
  18852. s3.getObject(params, function (err, data) {
  18853. loading2.close();
  18854. if (err) console.log(err, err.stack); // an error occurred
  18855. else {
  18856. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18857. let a = document.createElement("a");
  18858. a.name = name;
  18859. a.href = url;
  18860. a.download = name;
  18861. a.click();
  18862. console.log(data);
  18863. } // sxuccessful response
  18864. });
  18865. return;
  18866. let _this = this;
  18867. let _url = "";
  18868. if (
  18869. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18870. ) {
  18871. _url = url.split(
  18872. "https://view.officeapps.live.com/op/view.aspx?src="
  18873. )[1];
  18874. } else {
  18875. _url = url;
  18876. }
  18877. const x = new XMLHttpRequest();
  18878. x.open("GET", _url, true);
  18879. x.responseType = "blob";
  18880. // this.downLoading = true
  18881. const loading = _this.$loading.service({
  18882. background: "rgba(255, 255, 255, 0.7)",
  18883. target: document.body,
  18884. text: "文件加载中...",
  18885. });
  18886. // _this.$message.success("文件下载中...");
  18887. x.onload = function (e) {
  18888. loading.close();
  18889. let content = x.response;
  18890. let elink = document.createElement("a");
  18891. elink.download = decodeURI(
  18892. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  18893. );
  18894. elink.style.display = "none";
  18895. let blob = new Blob([content]);
  18896. elink.href = URL.createObjectURL(blob);
  18897. document.body.appendChild(elink);
  18898. elink.click();
  18899. document.body.removeChild(elink);
  18900. };
  18901. x.send();
  18902. },
  18903. openLine(url) {
  18904. window.open(url);
  18905. },
  18906. resize() {
  18907. if (document.getElementsByClassName("box_course").length) {
  18908. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18909. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18910. if (this.showType == 2 || this.showType == 3) {
  18911. document.getElementsByClassName("navBox")[0].style.height =
  18912. a - 40 + 0+ "px";
  18913. } else {
  18914. document.getElementsByClassName("navBox")[0].style.height =
  18915. a - 40 + "px";
  18916. }
  18917. }
  18918. this.Stbodywidth =
  18919. document.getElementsByClassName("student_body").length &&
  18920. document.getElementsByClassName("student_body")[0].offsetWidth;
  18921. },
  18922. closeDraw() {
  18923. this.bg = null;
  18924. this.drawShow = false;
  18925. },
  18926. showPicturePaint(url) {
  18927. let params = {
  18928. img: url,
  18929. };
  18930. this.ajax
  18931. .get(this.$store.state.api + "imgToBase64", params)
  18932. .then((res) => {
  18933. this.drawShow = true;
  18934. this.bg = res.data[0].img;
  18935. })
  18936. .catch((err) => {
  18937. console.error(err);
  18938. });
  18939. },
  18940. addImgDraw(base64) {
  18941. let file = { name: "批注图.png" };
  18942. let img = this.dataUrlToFile(base64, file);
  18943. this.beforeUpload1(img, 5);
  18944. },
  18945. addImgDrawImG(url) {
  18946. // console.log(url);
  18947. let params = [
  18948. {
  18949. wid: this.commentDetail.wid,
  18950. img: url,
  18951. },
  18952. ];
  18953. this.ajax
  18954. .post(this.$store.state.api + "updateCourseWorks", params)
  18955. .then((res) => {
  18956. this.$message({
  18957. message: "提交成功",
  18958. type: "success",
  18959. });
  18960. this.drawShow = false;
  18961. this.bg = "";
  18962. this.selectSWorks();
  18963. this.selectStudent();
  18964. })
  18965. .catch((err) => {
  18966. this.$message.error("提交失败");
  18967. console.error(err);
  18968. });
  18969. },
  18970. deletePicturePaint() {
  18971. this.$confirm("确定删除此批注吗?", "提示", {
  18972. confirmButtonText: "确定",
  18973. cancelButtonText: "取消",
  18974. type: "warning",
  18975. })
  18976. .then(() => {
  18977. let params = [
  18978. {
  18979. wid: this.commentDetail.wid,
  18980. img: "",
  18981. },
  18982. ];
  18983. this.ajax
  18984. .post(this.$store.state.api + "updateCourseWorks", params)
  18985. .then((res) => {
  18986. this.$message({
  18987. message: "删除成功",
  18988. type: "success",
  18989. });
  18990. this.selectSWorks();
  18991. this.selectStudent();
  18992. })
  18993. .catch((err) => {
  18994. this.$message.error("删除失败");
  18995. console.error(err);
  18996. });
  18997. })
  18998. .catch(() => {});
  18999. },
  19000. getAudioVideo(constraintsData) {
  19001. if (navigator.mediaDevices === undefined) {
  19002. navigator.mediaDevices = {};
  19003. }
  19004. if (navigator.mediaDevices.getUserMedia === undefined) {
  19005. navigator.mediaDevices.getUserMedia = function (constraints) {
  19006. // 首先,如果有getUserMedia的话,就获得它
  19007. var getUserMedia =
  19008. navigator.getUserMedia ||
  19009. navigator.webkitGetUserMedia ||
  19010. navigator.mozGetUserMedia ||
  19011. navigator.msGetUserMedia;
  19012. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19013. if (!getUserMedia) {
  19014. return Promise.reject({ code: 404 });
  19015. }
  19016. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19017. return new Promise(function (resolve, reject) {
  19018. getUserMedia.call(navigator, constraints, resolve, reject);
  19019. });
  19020. };
  19021. }
  19022. return navigator.mediaDevices.getUserMedia(constraintsData);
  19023. },
  19024. /**
  19025. * 开始录制
  19026. */
  19027. startRecording(callback) {
  19028. let _function = (screenStream) => {
  19029. this.addStreamStopListener(screenStream, () => {
  19030. console.log("流停止监听");
  19031. this.stopRecording();
  19032. this.$emit("streamStop", {});
  19033. // this.stopRecording();
  19034. });
  19035. var options = {
  19036. type: "video",
  19037. mimeType: "video/webm",
  19038. disableLogs: false,
  19039. getNativeBlob: false, // enable it for longer recordings
  19040. ignoreMutedMedia: false,
  19041. };
  19042. // this.video.srcObject = screenStream;
  19043. this.recorder = RecordRTC(screenStream, options);
  19044. this.recorder.startRecording();
  19045. this.recorder.screen = screenStream;
  19046. this.videoStart = true;
  19047. // callback(true);
  19048. };
  19049. this.getAudioVideo({ audio: true })
  19050. .then((res) => {
  19051. this.captureScreen(_function, true);
  19052. console.log("已点击允许,开启成功");
  19053. })
  19054. .catch((err) => {
  19055. // console.log('浏览器不支持,请更换浏览器')
  19056. // } else {
  19057. this.captureScreen(_function, false);
  19058. console.log("请检查是否存在麦克风");
  19059. });
  19060. },
  19061. /**
  19062. * 停止录制
  19063. */
  19064. stopRecording(callback) {
  19065. this.recorder.stopRecording(() => {
  19066. // this.video.src = this.video.srcObject = null;
  19067. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19068. const url = URL.createObjectURL(this.recorder.getBlob());
  19069. const a = document.createElement("a"); //this.fileName+
  19070. let videoFile = new File(
  19071. [this.recorder.getBlob()],
  19072. this.courseDetail.title + "录屏.mp4",
  19073. {
  19074. type: "video/mp4",
  19075. }
  19076. );
  19077. let downloadUrl = URL.createObjectURL(videoFile);
  19078. document.body.appendChild(a);
  19079. a.style.display = "none";
  19080. a.href = url;
  19081. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19082. a.click();
  19083. this.recorder.screen.stop();
  19084. this.recorder.destroy();
  19085. this.recorder = null;
  19086. this.videoStart = false;
  19087. // callback(false);
  19088. });
  19089. },
  19090. //初始化
  19091. captureScreen(callback, type) {
  19092. if (navigator.getDisplayMedia) {
  19093. //录制结束,文件下载
  19094. navigator
  19095. .getDisplayMedia({
  19096. video: true,
  19097. })
  19098. .then((screenStream) => {
  19099. if (type) {
  19100. navigator.mediaDevices
  19101. .getUserMedia({ audio: true })
  19102. .then((mic) => {
  19103. screenStream.addTrack(mic.getTracks()[0]);
  19104. callback(screenStream);
  19105. });
  19106. } else {
  19107. callback(screenStream);
  19108. }
  19109. })
  19110. .catch(function (error) {
  19111. console.log("error", error);
  19112. });
  19113. } else if (navigator.mediaDevices.getDisplayMedia) {
  19114. navigator.mediaDevices
  19115. .getDisplayMedia({
  19116. video: true,
  19117. })
  19118. .then((screenStream) => {
  19119. if (type) {
  19120. navigator.mediaDevices
  19121. .getUserMedia({ audio: true })
  19122. .then((mic) => {
  19123. screenStream.addTrack(mic.getTracks()[0]);
  19124. callback(screenStream);
  19125. });
  19126. } else {
  19127. callback(screenStream);
  19128. }
  19129. })
  19130. .catch(function (error) {
  19131. console.log("error", error);
  19132. });
  19133. } else {
  19134. var error = "getDisplayMedia API are not supported in this browser.";
  19135. console.log("error", error);
  19136. alert(error);
  19137. }
  19138. },
  19139. //流监听
  19140. addStreamStopListener(stream, callback) {
  19141. stream.addEventListener(
  19142. "ended",
  19143. function () {
  19144. callback();
  19145. callback = function () {};
  19146. },
  19147. false
  19148. );
  19149. stream.addEventListener(
  19150. "inactive",
  19151. function () {
  19152. callback();
  19153. callback = function () {};
  19154. },
  19155. false
  19156. );
  19157. stream.getTracks().forEach(function (track) {
  19158. track.addEventListener(
  19159. "ended",
  19160. function () {
  19161. callback();
  19162. callback = function () {};
  19163. },
  19164. false
  19165. );
  19166. track.addEventListener(
  19167. "inactive",
  19168. function () {
  19169. callback();
  19170. callback = function () {};
  19171. },
  19172. false
  19173. );
  19174. });
  19175. },
  19176. updateGroup() {
  19177. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19178. this.dialogVisibleGroup2 = true;
  19179. },
  19180. numberPan() {
  19181. if (
  19182. /[^\d]/.test(this.groupJson.number) ||
  19183. this.groupJson.number < 2 ||
  19184. this.groupJson.number > 10
  19185. ) {
  19186. this.$message.error("请输入2-10的数字");
  19187. this.groupJson.number = "";
  19188. }
  19189. },
  19190. updateGroupJson() {
  19191. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19192. if (
  19193. this.groupStudentUid[this.toolindex][i].length >
  19194. this.groupJson2.number
  19195. ) {
  19196. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19197. return;
  19198. }
  19199. }
  19200. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19201. this.islock = this.groupJson.islock == 1 ? true : false;
  19202. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19203. this.taskCount
  19204. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19205. let params = [
  19206. {
  19207. cid: this.id,
  19208. chapters: JSON.stringify(this.chapInfoList),
  19209. uid: this.userid,
  19210. unitIndex: this.courseType,
  19211. },
  19212. ];
  19213. this.ajax
  19214. .post(this.$store.state.api + "updateWorkNew4", params)
  19215. .then((res) => {
  19216. this.$message.success("设置成功");
  19217. this.getCourseDetail(2);
  19218. this.dialogVisibleGroup2 = false;
  19219. this.groupJson2 = {};
  19220. this.$forceUpdate();
  19221. })
  19222. .catch((err) => {
  19223. this.$message.error("网络不佳");
  19224. console.error(err);
  19225. });
  19226. },
  19227. lockChair() {
  19228. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19229. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19230. this.updateGroupJson();
  19231. },
  19232. selectGroup(index) {
  19233. this.getCourseDetail(2, index);
  19234. },
  19235. joinGroup(index) {
  19236. if (this.groupJson.islock == 2) {
  19237. this.$message.error("位置已被锁定,无法加入");
  19238. return;
  19239. }
  19240. if (
  19241. this.groupStudent[this.toolindex][index].length >
  19242. this.groupJson.number ||
  19243. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19244. ) {
  19245. this.$message.error("位置已满,无法加入");
  19246. return;
  19247. }
  19248. let params = [
  19249. {
  19250. cid: this.id,
  19251. stage: this.courseType,
  19252. task: this.taskCount,
  19253. tool: this.toolindex,
  19254. g: index,
  19255. uid: this.userid,
  19256. },
  19257. ];
  19258. this.ajax
  19259. .post(this.$store.state.api + "joinGroup", params)
  19260. .then((res) => {
  19261. this.$message.success("加入成功");
  19262. this.getCourseDetail(2);
  19263. })
  19264. .catch((err) => {
  19265. this.$message.error("网络不佳");
  19266. console.error(err);
  19267. });
  19268. },
  19269. exitGroup(id) {
  19270. if (this.groupJson.islock == 2) {
  19271. this.$message.error("位置已被锁定,无法退出");
  19272. return;
  19273. }
  19274. let params = [
  19275. {
  19276. gid: id,
  19277. },
  19278. ];
  19279. this.ajax
  19280. .post(this.$store.state.api + "exitGroup", params)
  19281. .then((res) => {
  19282. this.$message.success("退出成功");
  19283. this.getCourseDetail(2);
  19284. })
  19285. .catch((err) => {
  19286. this.$message.error("网络不佳");
  19287. console.error(err);
  19288. });
  19289. },
  19290. groupUpload(index, task, gindex) {
  19291. this.taskCount = task;
  19292. this.toolindex = index;
  19293. this.groupIndex = gindex;
  19294. this.dialogVisibleGroupWork = true;
  19295. },
  19296. updateGroupChair(user) {
  19297. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19298. el.label = index;
  19299. return index != user.group;
  19300. });
  19301. this.updateGroupUser = user;
  19302. this.dialogVisibleUpdateGroup = true;
  19303. },
  19304. updateChair() {
  19305. if (
  19306. this.groupStudent[this.toolindex][this.checkChair].length >
  19307. this.groupJson.number ||
  19308. this.groupStudent[this.toolindex][this.checkChair].length ==
  19309. this.groupJson.number
  19310. ) {
  19311. this.$message.error("位置已满,无法加入");
  19312. return;
  19313. }
  19314. let params = [
  19315. {
  19316. cid: this.id,
  19317. stage: this.courseType,
  19318. task: this.taskCount,
  19319. tool: this.toolindex,
  19320. g: this.checkChair,
  19321. uid: this.updateGroupUser.userid,
  19322. },
  19323. ];
  19324. this.ajax
  19325. .post(this.$store.state.api + "joinGroup", params)
  19326. .then((res) => {
  19327. this.$message.success("修改成功");
  19328. this.updateGroupUser = {};
  19329. this.checkChair = "";
  19330. this.updateGroupArray = {};
  19331. this.dialogVisibleUpdateGroup = false;
  19332. this.getCourseDetail(2);
  19333. })
  19334. .catch((err) => {
  19335. this.$message.error("网络不佳");
  19336. console.error(err);
  19337. });
  19338. },
  19339. deleteGroupChair(gindex) {
  19340. this.checkDeleteGroup = [];
  19341. this.deleteGroupUser = JSON.parse(
  19342. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19343. );
  19344. this.deleteGroupArray = this.groupJson.group[gindex];
  19345. this.groupIndex = gindex;
  19346. this.dialogVisibleDeleteGroup = true;
  19347. },
  19348. async deleteChair() {
  19349. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19350. const gid =
  19351. this.groupStudent[this.toolindex][this.groupIndex][
  19352. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19353. this.checkDeleteGroup[i]
  19354. )
  19355. ];
  19356. let params = [
  19357. {
  19358. gid: gid.id,
  19359. },
  19360. ];
  19361. var a = await this.deleteChairA(params);
  19362. if (i == this.checkDeleteGroup.length - 1) {
  19363. this.$message.success("退出成功");
  19364. this.dialogVisibleDeleteGroup = false;
  19365. this.deleteGroupUser = [];
  19366. this.deleteGroupArray = {};
  19367. this.groupIndex = "";
  19368. this.checkDeleteGroup = [];
  19369. this.getCourseDetail(2);
  19370. }
  19371. }
  19372. },
  19373. deleteChairA(params) {
  19374. return new Promise((resolve, reject) => {
  19375. this.ajax
  19376. .post(this.$store.state.api + "exitGroup", params)
  19377. .then((res) => {
  19378. resolve(1);
  19379. })
  19380. .catch((err) => {
  19381. this.$message.error("网络不佳");
  19382. console.error(err);
  19383. });
  19384. });
  19385. },
  19386. contract(i) {
  19387. if (this.isCloseList[i].isClose == 0) {
  19388. this.isCloseList[i].isClose = 1;
  19389. } else {
  19390. this.isCloseList[i].isClose = 0;
  19391. }
  19392. this.$forceUpdate();
  19393. },
  19394. openWordCloud(toolindex) {
  19395. let array = [];
  19396. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19397. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19398. array.push({ name: works });
  19399. }
  19400. if (this.isGroup) {
  19401. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19402. let works = this.courseGroup.group[i].works[toolindex];
  19403. for (var j = 0; j < works.length; j++) {
  19404. let answer = JSON.parse(works[j].works)[0].answer;
  19405. array.push({ name: answer });
  19406. }
  19407. }
  19408. }
  19409. this.wordCloudData = array;
  19410. this.dialogVisibleWordCloud = true;
  19411. },
  19412. uploadWorks(i) {
  19413. this.$confirm("确定导出作业吗?", "提示", {
  19414. confirmButtonText: "确定",
  19415. cancelButtonText: "取消",
  19416. type: "warning",
  19417. })
  19418. .then(() => {
  19419. const loading = this.$loading.service({
  19420. background: "rgba(255, 255, 255, 0.7)",
  19421. target: document.body,
  19422. text: "文件加载中...",
  19423. });
  19424. const _worksStudent = this.worksStudent;
  19425. let url = [];
  19426. var counts = {};
  19427. for (var l = 0; l < _worksStudent[i].length; l++) {
  19428. var item = _worksStudent[i][l];
  19429. var name = item.sName;
  19430. if (!counts.hasOwnProperty(name)) {
  19431. counts[name] = 0;
  19432. } else {
  19433. counts[name]++;
  19434. }
  19435. if (counts[name] > 0) {
  19436. item.sName += " (" + counts[name] + ")";
  19437. }
  19438. }
  19439. for (var l = 0; l < _worksStudent[i].length; l++) {
  19440. var item = _worksStudent[i][l];
  19441. if (
  19442. item.works.indexOf(
  19443. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19444. ) !== -1 &&
  19445. item.works.indexOf("img") === -1
  19446. ) {
  19447. url.push({ name: item.sName, url: item.works });
  19448. }
  19449. }
  19450. // var toolList = [
  19451. // { name: "电子白板", tool: 1 },
  19452. // { name: "思维导图", tool: 3 },
  19453. // { name: "协同文档", tool: 6 },
  19454. // { name: "思维网格", tool: 7 },
  19455. // { name: "素材库", tool: 8 },
  19456. // { name: "学习资料", tool: 17 },
  19457. // { name: "便签", tool: 2 },
  19458. // { name: "问卷调查", tool: 4 },
  19459. // { name: "选择题", tool: 45 },
  19460. // { name: "倒计时", tool: 10 },
  19461. // { name: "问答", tool: 15 },
  19462. // { name: "课程设计", tool: 26 },
  19463. // { name: "训练服务器", tool: 18 },
  19464. // { name: "作业提交", tool: 16 },
  19465. // { name: "批量上传", tool: 50 },
  19466. // { name: "AIoT Blockly", tool: 21 },
  19467. // { name: "AI Python", tool: 23 },
  19468. // { name: "AI Blockly", tool: 24 },
  19469. // { name: "目标管理", tool: 25 },
  19470. // { name: "数学画板", tool: 31 },
  19471. // { name: "翻译", tool: 28 },
  19472. // { name: "魔盒识字", tool: 37 },
  19473. // { name: "数学画板", tool: 31 },
  19474. // { name: "24点", tool: 38 },
  19475. // { name: "GeoGebra", tool: 39 },
  19476. // { name: "源码编辑", tool: 32 },
  19477. // { name: "个人评价", tool: 40 },
  19478. // { name: "选择匹配", tool: 41 },
  19479. // { name: "汉字宫", tool: 44 },
  19480. // { name: "排序", tool: 47 },
  19481. // { name: "表格", tool: 48 },
  19482. // { name: "文档", tool: 52 },
  19483. // { name: "学生分组", tool: 49 },
  19484. // { name: "CocoPi", tool: 57 },
  19485. // { name: "模拟驾驶", tool: 58 },
  19486. // { name: "路径搜索", tool: 59 },
  19487. // { name: "深度学习", tool: 60 },
  19488. // { name: "全历史", tool: 61 },
  19489. // { name: "交互视频", tool: 62 },
  19490. // { name: "海龟编程", tool: 63 },
  19491. // { name: "挑人", tool: 65 },
  19492. // { name: "公式编辑", tool: 66 },
  19493. // { name: "分子结构", tool: 67 },
  19494. // { name: "时间轴", tool: 68 },
  19495. // ];
  19496. // var toolName = "";
  19497. // for(var w = 0;w<toolList.length;w++){
  19498. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19499. // toolName = toolList[w].name;
  19500. // }
  19501. // }
  19502. console.log(url);
  19503. this.downLoadAll(url, loading);
  19504. })
  19505. .catch(() => {});
  19506. },
  19507. downLoadAll(url, loading) {
  19508. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19509. const zip = new JSZip();
  19510. const cache = {};
  19511. const promises = [];
  19512. data.forEach((item) => {
  19513. const promise = getFile(item.url).then((data) => {
  19514. if (data.data != 1) {
  19515. // 下载文件, 并存成ArrayBuffer对象
  19516. const file_name =
  19517. item.name +
  19518. "." +
  19519. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19520. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19521. cache[file_name] = data.data;
  19522. }
  19523. });
  19524. promises.push(promise);
  19525. });
  19526. Promise.all(promises).then(() => {
  19527. zip.generateAsync({ type: "blob" }).then((content) => {
  19528. // 生成二进制流
  19529. FileSaver.saveAs(
  19530. content,
  19531. this.courseDetail.title + "-" + "作业提交工具.zip"
  19532. ); // 利用file-saver保存文件 自定义文件名
  19533. setTimeout(() => {
  19534. loading.close();
  19535. }, 2000);
  19536. });
  19537. });
  19538. },
  19539. pickStudent(stu) {
  19540. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19541. return;
  19542. }
  19543. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19544. confirmButtonText: "确定",
  19545. cancelButtonText: "取消",
  19546. type: "warning",
  19547. })
  19548. .then(() => {
  19549. let params = [
  19550. {
  19551. uid: stu.userid,
  19552. cid: this.id,
  19553. stage: this.courseType,
  19554. task: this.taskCount,
  19555. tool: this.toolindex,
  19556. },
  19557. ];
  19558. this.ajax
  19559. .post(this.$store.state.api + "updateCoursePick", params)
  19560. .then((res) => {
  19561. this.$message.success("操作成功");
  19562. this.getPick();
  19563. })
  19564. .catch((err) => {
  19565. this.$message.error("网络不佳");
  19566. console.error(err);
  19567. });
  19568. })
  19569. .catch(() => {});
  19570. },
  19571. selectUser(){
  19572. let params = {
  19573. userid: this.userid,
  19574. };
  19575. this.ajax
  19576. .get(this.$store.state.api + "selectUser", params)
  19577. .then((res) => {
  19578. this.userMes = res.data[0];
  19579. })
  19580. .catch((err) => {
  19581. console.error(err);
  19582. });
  19583. },
  19584. setEngText(i){
  19585. this.newEngIndex = i;
  19586. this.$forceUpdate();
  19587. },
  19588. addCorrect(){
  19589. this.$confirm("你确定提交批改嘛?", "提示", {
  19590. confirmButtonText: "确定",
  19591. showCancelButton: false,
  19592. closeOnClickModal: false,
  19593. type: "warning",
  19594. })
  19595. .then(() => {
  19596. let params = {
  19597. cid: this.id,
  19598. s: parseInt(this.courseType),
  19599. t: this.taskCount,
  19600. tool: this.toolindex,
  19601. wid: this.engWid,
  19602. c: this.userid,
  19603. 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) : "",
  19604. };
  19605. this.ajax
  19606. .get(this.$store.state.api + "addEngC", params)
  19607. .then((res) => {
  19608. this.$message.success("提交成功");
  19609. this.engUpdateDialogVisible = false;
  19610. })
  19611. .catch((err) => {
  19612. console.error(err);
  19613. });
  19614. })
  19615. .catch(() => {});
  19616. },
  19617. selectEngC(id,z){
  19618. let params = {
  19619. workid: id,
  19620. };
  19621. this.ajax
  19622. .get(this.$store.state.api + "selectEngC", params)
  19623. .then((res) => {
  19624. if(res.data[0].length == 0){
  19625. this.newEnglishList.engTitle = z.engTitle;
  19626. this.newEnglishList.engText = z.engText;
  19627. }else{
  19628. var a = res.data[0];
  19629. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19630. if(this.userMes[0].type == 2){
  19631. var snum = 0;
  19632. for(var i = 0;i<a.length;i++){
  19633. if(this.userMes[0].userid == a[i].correct){
  19634. this.newEnglishList = JSON.parse(a[i].cWork);
  19635. snum = 1;
  19636. }
  19637. }
  19638. if(snum == 0){
  19639. this.newEnglishList = { engTitle:"",engText:"" };
  19640. this.newEnglishList.engTitle = z.engTitle;
  19641. this.newEnglishList.engText = z.engText;
  19642. }
  19643. }else if(this.userMes[0].type == 1){
  19644. var num = 0;
  19645. for(var w= 0;w<a.length;w++){
  19646. if(this.userMes[0].userid == a[w].correct){
  19647. num = 1;
  19648. }
  19649. }
  19650. if(num == 0){
  19651. this.isNoUserid = true;
  19652. var c = JSON.parse(JSON.stringify(z));
  19653. this.oldEnglishJson1 = c;
  19654. }else{
  19655. this.isNoUserid = false;
  19656. }
  19657. var b = a.sort((item, index) => {
  19658. console.log(item)
  19659. if (item.correct === this.userMes[0].userid) {
  19660. return -1; // 将a移到前面
  19661. } else if (index.correct === this.userMes[0].userid) {
  19662. return 1; // 将b移到前面
  19663. } else {
  19664. return 0; // 保持默认顺序
  19665. }
  19666. });
  19667. for(var p = 0;p<b.length;p++){
  19668. for(var y = 0;y<ppp.length;y++){
  19669. if(b[p].id == ppp[y].id){
  19670. b[p].cWork = JSON.parse(ppp[y].cWork);
  19671. break
  19672. }
  19673. }
  19674. }
  19675. this.newEnglishList1 = b;
  19676. }
  19677. }
  19678. this.greyType = false;
  19679. setTimeout(() => {
  19680. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19681. if(this.newEnglishList1.length > 0){
  19682. if(this.isNoUserid == true){
  19683. this.engListLength = this.newEnglishList1.length + 1;
  19684. this.newEngIndex = -1;
  19685. }else{
  19686. this.engListLength = this.newEnglishList1.length;
  19687. this.newEngIndex = 0;
  19688. }
  19689. }
  19690. if(this.userMes[0].type == 2){
  19691. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19692. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19693. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19694. }else if(this.newEngIndex == -1){
  19695. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19696. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19697. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19698. }
  19699. }, 500);
  19700. this.engUpdateDialogVisible = true;
  19701. this.$forceUpdate();
  19702. })
  19703. .catch((err) => {
  19704. console.error(err);
  19705. });
  19706. },
  19707. getPick() {
  19708. let params = {
  19709. cid: this.id,
  19710. };
  19711. this.ajax
  19712. .get(this.$store.state.api + "getPick", params)
  19713. .then((res) => {
  19714. let array = [];
  19715. for (var i = 0; i < res.data[0].length; i++) {
  19716. array.push(res.data[0][i].userid);
  19717. }
  19718. this.isPickStudent = array;
  19719. if (array.indexOf(this.userid) !== -1) {
  19720. this.$confirm("你被老师选到啦!", "提示", {
  19721. confirmButtonText: "确定",
  19722. showCancelButton: false,
  19723. closeOnClickModal: false,
  19724. type: "warning",
  19725. })
  19726. .then(() => {
  19727. let pa = [
  19728. {
  19729. uid: this.userid,
  19730. cid: this.id,
  19731. },
  19732. ];
  19733. this.ajax
  19734. .post(this.$store.state.api + "deletePick", pa)
  19735. .then((res) => {
  19736. this.getPick();
  19737. })
  19738. .catch((err) => {
  19739. this.$message.error("网络不佳");
  19740. console.error(err);
  19741. });
  19742. })
  19743. .catch(() => {});
  19744. }
  19745. })
  19746. .catch((err) => {
  19747. this.$message.error("网络不佳");
  19748. console.error(err);
  19749. });
  19750. },
  19751. foldEva() {
  19752. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19753. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19754. } else {
  19755. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19756. setTimeout(() => {
  19757. this.checkEva();
  19758. setTimeout(() => {
  19759. this.checkEva();
  19760. }, 500);
  19761. }, 0);
  19762. }
  19763. this.$forceUpdate();
  19764. },
  19765. panToolHeight(tool) {
  19766. var _tool = document.querySelectorAll('#'+tool)[0]
  19767. var _toolA = _tool ? _tool.offsetHeight : 0
  19768. var _toolC = 0
  19769. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19770. let boolean2 = (_toolA > _toolC) ? true : false
  19771. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19772. this.$forceUpdate();
  19773. },
  19774. async checkLink(url) {
  19775. console.log(url)
  19776. let _url = url
  19777. try {
  19778. const response = await fetch(url);
  19779. if(!response.ok){
  19780. _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]))
  19781. }
  19782. console.log(response.ok)
  19783. } catch (error) {
  19784. console.error('Error checking link:', error);
  19785. // console.log(false)
  19786. _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]))
  19787. }
  19788. // console.log(_url)
  19789. return _url
  19790. },
  19791. getScoreList(){
  19792. let params = {
  19793. cid: this.id,
  19794. };
  19795. this.ajax
  19796. .get(this.$store.state.api + "selectTestCourseByCid", params)
  19797. .then((res) => {
  19798. let result = res.data;
  19799. this.scoreList.datalist = result[0];
  19800. this.scoreList.isScoreList = result[1];
  19801. })
  19802. .catch((err) => {
  19803. console.error(err);
  19804. });
  19805. },
  19806. setClassRoomHelperWidth(width){
  19807. this.classRoomHelperWidth = width
  19808. }
  19809. },
  19810. directives: {
  19811. // 使用局部注册指令的方式
  19812. resize: {
  19813. // 指令的名称
  19814. bind(el, binding) {
  19815. // el为绑定的元素,binding为绑定给指令的对象
  19816. let width = "",
  19817. height = "";
  19818. function isReize() {
  19819. const style = document.defaultView.getComputedStyle(el);
  19820. if (width !== style.width || height !== style.height) {
  19821. binding.value(); // 关键
  19822. }
  19823. width = style.width;
  19824. height = style.height;
  19825. }
  19826. el.__vueSetInterval__ = setInterval(isReize, 300);
  19827. },
  19828. unbind(el) {
  19829. clearInterval(el.__vueSetInterval__);
  19830. },
  19831. },
  19832. autoHeight: {
  19833. update(el, binding) {
  19834. const { value } = binding
  19835. if (value && typeof value === 'number') {
  19836. el.style.height = `${value}px`
  19837. } else {
  19838. el.style.height = 'auto'
  19839. }
  19840. },
  19841. componentUpdated(el) {
  19842. el.style.height = `${el.scrollHeight}px`
  19843. },
  19844. },
  19845. },
  19846. beforeDestroy() {
  19847. window.onresize = null;
  19848. clearInterval(this.timer);
  19849. this.timer = null;
  19850. clearInterval(this.opertimer);
  19851. this.opertimer = null;
  19852. },
  19853. computed: {
  19854. contentConvent() {
  19855. return function (c) {
  19856. return c
  19857. ? c
  19858. .replaceAll(/\r\n/g, "<br/>")
  19859. .replaceAll(/\n/g, "<br/>")
  19860. .replaceAll(/\s/g, " &nbsp")
  19861. : "";
  19862. };
  19863. },
  19864. commentRight(){
  19865. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  19866. return "35px";
  19867. }
  19868. return `calc(${this.classRoomHelperWidth} + 5px)`
  19869. // if(this.$refs["classRoomHelperRef"].type==0){
  19870. // return "100px";
  19871. // }else if(this.$refs["classRoomHelperRef"].type==1){
  19872. // return "502px"
  19873. // }else{
  19874. // return "0px"
  19875. // }
  19876. },
  19877. checkUpload() {
  19878. return function () {
  19879. var studentK = [];
  19880. if (this.plworkFile.length > 0) {
  19881. for (var z = 0; z < this.plworkFile.length; z++) {
  19882. studentK.push(this.plworkFile[z].username);
  19883. }
  19884. studentK = studentK.join(",");
  19885. }
  19886. var a = this.uploadStudentJuri.filter((el) => {
  19887. return studentK.indexOf(el.userid) == -1;
  19888. });
  19889. return a;
  19890. };
  19891. },
  19892. getSName() {
  19893. return function (name) {
  19894. var check = name;
  19895. this.uploadStudentJuri.forEach((el) => {
  19896. if (el.userid == check) {
  19897. check = el.name ? el.name : el.username;
  19898. }
  19899. });
  19900. return check;
  19901. };
  19902. },
  19903. getImgList() {
  19904. return function (val) {
  19905. let srcList = []; // 定义一个数组用来接收后面的img地址
  19906. val.replace(
  19907. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  19908. function (match, capture) {
  19909. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  19910. srcList.push(capture);
  19911. }
  19912. );
  19913. return srcList;
  19914. };
  19915. },
  19916. retrnToolHeight(){
  19917. return function (tool) {
  19918. var _tool = document.querySelectorAll('#'+tool)[0]
  19919. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  19920. };
  19921. },
  19922. Correct() {
  19923. return function (c) {
  19924. let w = "";
  19925. let a = this.correctWord;
  19926. for(var k = 0;k<a.length;k++){
  19927. //diffWordsWithSpace
  19928. if(a.length > 1){
  19929. if(a[k].added == true){
  19930. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19931. }else if(a[k].removed == true){
  19932. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19933. }else{
  19934. w += '<span>' + a[k].value + '</span>';
  19935. }
  19936. }else{
  19937. w = c
  19938. }
  19939. //diffChars方法
  19940. // if(a.length > 1){
  19941. // if(w == ""){
  19942. // if(a[k].added == true){
  19943. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19944. // }else if(a[k].removed == true){
  19945. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19946. // }
  19947. // }else{
  19948. // if(k == a.length - 1){
  19949. // if(a[k].added == true){
  19950. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19951. // }else if(a[k].removed == true){
  19952. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19953. // }
  19954. // }else{
  19955. // if(a[k].added == true){
  19956. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19957. // }else if(a[k].removed == true){
  19958. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19959. // }
  19960. // }
  19961. // }
  19962. // }else{
  19963. // w = c
  19964. // }
  19965. }
  19966. c = w;
  19967. return c;
  19968. };
  19969. },
  19970. },
  19971. mounted() {
  19972. document.body.addEventListener("click", (e) => {
  19973. if (this.isUpdateToolDetail1) {
  19974. this.updateToolDetail(this.toolDetailIndex);
  19975. }
  19976. });
  19977. if (this.screenType == 2) {
  19978. window.parent.postMessage({ allScreen: 4 }, "*");
  19979. } else if (this.screenType == 3) {
  19980. window.parent.postMessage({ allScreen: 5 }, "*");
  19981. } else if (this.screenType == 1) {
  19982. window.parent.postMessage({ allScreen: 6 }, "*");
  19983. }
  19984. this.setOperationTime();
  19985. this.selectEva();
  19986. this.getCourseDetail();
  19987. this.selectCount();
  19988. this.getHomeWork();
  19989. this.selectUser();
  19990. this.contentDialog = true;
  19991. this.setContent2(true);
  19992. if (this.tType == 4) {
  19993. this.pzDialog = true;
  19994. this.selectPz();
  19995. }
  19996. // 获取评分列表
  19997. this.getScoreList()
  19998. document.scrollingElement.scrollTop = 0;
  19999. window.addEventListener("resize", () => {
  20000. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20001. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20002. if (this.showType == 2 || this.showType == 3) {
  20003. document.getElementsByClassName("navBox")[0].style.height =
  20004. a - 40 + 0+ "px";
  20005. } else {
  20006. document.getElementsByClassName("navBox")[0].style.height =
  20007. a - 40 + "px";
  20008. }
  20009. });
  20010. let _this = this;
  20011. setTimeout(() => {
  20012. // _this.vedioTime = [];
  20013. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20014. // _this.vedioTime[i] = document.getElementsByClassName(
  20015. // "vjs-duration-display"
  20016. // )[i].textContent;
  20017. // }
  20018. }, 1000);
  20019. },
  20020. };
  20021. </script>
  20022. <style scoped>
  20023. @media screen and (max-width: 1280px) {
  20024. /* .courseIndex > div:first-child(2) {
  20025. width: 15% !important;
  20026. } */
  20027. /* .navText {
  20028. width: 120px !important;
  20029. } */
  20030. .evaCss {
  20031. flex-direction: column !important;
  20032. align-items: center !important;
  20033. }
  20034. .elist_input {
  20035. width: 90% !important;
  20036. }
  20037. .dialog_diy1 >>> .el-dialog {
  20038. width: 100% !important;
  20039. }
  20040. .rightWidthCss {
  20041. width: 100% !important;
  20042. }
  20043. .dialog_diy3 >>> .el-dialog {
  20044. width: 100% !important;
  20045. }
  20046. .addToolCss {
  20047. right: 0 !important;
  20048. width: 100% !important;
  20049. min-width: unset !important;
  20050. }
  20051. }
  20052. .evaCssMax {
  20053. flex-direction: column !important;
  20054. align-items: center !important;
  20055. }
  20056. .dialog_diy >>> .el-dialog {
  20057. margin-top: 10vh !important;
  20058. }
  20059. .body_student {
  20060. width: 77%;
  20061. height: 100%;
  20062. position: absolute;
  20063. left: 22%;
  20064. top: 0;
  20065. }
  20066. .student_head {
  20067. width: 100%;
  20068. margin: 20px auto 0;
  20069. padding-bottom: 20px;
  20070. display: flex;
  20071. flex-direction: column;
  20072. flex-wrap: nowrap;
  20073. align-items: flex-start;
  20074. justify-content: flex-start;
  20075. }
  20076. .pb_left {
  20077. width: 20%;
  20078. margin-right: 10px;
  20079. background: rgb(255, 255, 255);
  20080. position: fixed;
  20081. height: calc(100% - 40px);
  20082. border-radius: 20px;
  20083. padding-bottom: 15px;
  20084. box-sizing: border-box;
  20085. }
  20086. .wheel > img,
  20087. .project > img,
  20088. .star > img,
  20089. .evaluate > img,
  20090. .up_photo > img,
  20091. .chapter_add > img,
  20092. .deleteWord > img,
  20093. .question > img,
  20094. .homework > img {
  20095. width: 100%;
  20096. height: 100%;
  20097. }
  20098. .upCover > img {
  20099. width: 131px;
  20100. height: 69px;
  20101. object-fit: cover;
  20102. }
  20103. .upCover {
  20104. width: calc(100% / 3.5);
  20105. position: relative;
  20106. margin: 0 15px 10px 0;
  20107. display: flex;
  20108. flex-direction: column;
  20109. flex-wrap: nowrap;
  20110. justify-content: center;
  20111. align-content: center;
  20112. align-items: center;
  20113. height: fit-content;
  20114. }
  20115. .upCover2 {
  20116. width: 100%;
  20117. position: relative;
  20118. margin: 0 15px 10px 0;
  20119. display: flex;
  20120. flex-direction: column;
  20121. flex-wrap: nowrap;
  20122. justify-content: center;
  20123. align-content: center;
  20124. align-items: center;
  20125. }
  20126. .upCover2 > img {
  20127. width: 100%;
  20128. height: 90px;
  20129. object-fit: contain;
  20130. }
  20131. .chapter_add {
  20132. width: 120px;
  20133. position: relative;
  20134. text-align: center;
  20135. }
  20136. .isAddThings {
  20137. margin-top: 20px;
  20138. position: relative;
  20139. text-align: center;
  20140. background: #f7f8fa;
  20141. height: 90px;
  20142. width: 90px;
  20143. display: flex;
  20144. flex-direction: column;
  20145. justify-content: center;
  20146. }
  20147. .deleteWord {
  20148. width: 22px;
  20149. height: 22px;
  20150. position: absolute;
  20151. right: -5px;
  20152. top: -5px;
  20153. cursor: pointer;
  20154. }
  20155. .box_course {
  20156. /* width: 60%; */
  20157. width: calc(100% - 300px);
  20158. }
  20159. .wheel {
  20160. width: 100%;
  20161. /* height: 100%; */
  20162. height: 650px;
  20163. }
  20164. .right_box {
  20165. display: flex;
  20166. flex-direction: column;
  20167. margin-left: 30px;
  20168. justify-content: space-around;
  20169. }
  20170. .right_box_title {
  20171. font-size: 23px;
  20172. }
  20173. .people {
  20174. display: flex;
  20175. }
  20176. .student_body {
  20177. width: 100%;
  20178. margin: 0 auto;
  20179. margin-top: 10px;
  20180. padding: 0 0 20px;
  20181. }
  20182. .study_top {
  20183. margin-top: 100px;
  20184. width: 100%;
  20185. height: auto;
  20186. padding-bottom: 20px;
  20187. }
  20188. .study_top .checkbox {
  20189. display: flex;
  20190. align-items: center;
  20191. padding: 15px 0 15px 30px;
  20192. flex: 0 0 auto;
  20193. font-weight: bold;
  20194. border-bottom: 1px solid #eee;
  20195. }
  20196. .study_top .check {
  20197. padding-bottom: 5px;
  20198. text-align: center;
  20199. cursor: pointer;
  20200. height: 30px;
  20201. box-sizing: border-box;
  20202. display: flex;
  20203. }
  20204. .study_top .checked {
  20205. border-bottom: 4px solid #3fc6a0;
  20206. padding-bottom: 5px;
  20207. color: #3fc6a0;
  20208. display: flex;
  20209. height: 35px;
  20210. }
  20211. .study_top .checked > div,
  20212. .study_top .check > div {
  20213. margin-right: 5px;
  20214. }
  20215. .videoTop {
  20216. display: flex;
  20217. flex-direction: row;
  20218. justify-content: space-between;
  20219. background: #fff;
  20220. align-items: center;
  20221. width: 95%;
  20222. padding: 20px;
  20223. }
  20224. .filebox {
  20225. display: flex;
  20226. flex-wrap: wrap;
  20227. flex-direction: column;
  20228. padding: 0 0 5px;
  20229. position: relative;
  20230. }
  20231. .filebox:before {
  20232. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20233. position: absolute;
  20234. top: 20px;
  20235. left: 13px;
  20236. border-left: 2px dotted #cad1dc;
  20237. height: calc(100% - 15px);
  20238. }
  20239. .toolHeng2 > div:last-child::before {
  20240. height: calc(100% - 43px);
  20241. }
  20242. .filebox .tooldetail {
  20243. width: calc(100% - 280px);
  20244. margin: 0px 12px;
  20245. padding: 12px;
  20246. line-height: 30px;
  20247. word-break: break-word;
  20248. background: #ffffff;
  20249. border-radius: 8px 8px 8px 8px;
  20250. opacity: 1;
  20251. border: 1px solid #cad1dc;
  20252. overflow:hidden;
  20253. box-sizing:border-box;
  20254. }
  20255. .file {
  20256. display: flex;
  20257. flex-direction: column;
  20258. align-items: center;
  20259. justify-content: center;
  20260. cursor: pointer;
  20261. width: 200px;
  20262. }
  20263. .file div {
  20264. margin-top: 10px;
  20265. width: 150px;
  20266. text-align: center;
  20267. overflow: hidden;
  20268. white-space: nowrap;
  20269. text-overflow: ellipsis;
  20270. }
  20271. .media {
  20272. display: flex;
  20273. flex-direction: column;
  20274. align-items: center;
  20275. justify-content: center;
  20276. margin: 0 20px 20px 0;
  20277. cursor: pointer;
  20278. margin: 12px 0 5px 15px;
  20279. overflow: hidden;
  20280. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  20281. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  20282. box-sizing: border-box;
  20283. }
  20284. .media img {
  20285. height: 90px;
  20286. width: 160px;
  20287. object-fit: cover;
  20288. }
  20289. .media .title {
  20290. padding: 5px;
  20291. text-align: left;
  20292. width: 100%;
  20293. box-sizing: border-box;
  20294. }
  20295. .media .btn {
  20296. width: 100%;
  20297. height: 35px;
  20298. line-height: 35px;
  20299. color: #fff;
  20300. background: #606060;
  20301. text-align: center;
  20302. overflow: hidden;
  20303. white-space: nowrap;
  20304. text-overflow: ellipsis;
  20305. }
  20306. .detail_content_top {
  20307. width: 100%;
  20308. padding: 25px 0 25px 0;
  20309. }
  20310. .detail_title {
  20311. text-align: center;
  20312. font-size: 24px;
  20313. }
  20314. .detail_time {
  20315. font-size: 13px;
  20316. padding: 15px 0 0 40px;
  20317. }
  20318. .detail_content {
  20319. line-height: 2pc;
  20320. width: 90%;
  20321. margin: 0 auto;
  20322. padding-top: 30px;
  20323. text-indent: 30px;
  20324. overflow: auto;
  20325. height: 200px;
  20326. }
  20327. .score_box >>> .el-rate {
  20328. margin-left: 10px;
  20329. }
  20330. .dialog_change >>> .el-dialog {
  20331. border-radius: 5px;
  20332. }
  20333. .dialog_change >>> .el-dialog__header {
  20334. background: #f2f2f2;
  20335. text-align: center;
  20336. }
  20337. .dialog_change >>> .el-dialog__title {
  20338. line-height: 5px;
  20339. }
  20340. .dialog_change >>> .el-dialog__body {
  20341. background: #fff;
  20342. padding: 10px 20px;
  20343. }
  20344. .score_box {
  20345. display: flex;
  20346. align-items: center;
  20347. margin-bottom: 18px;
  20348. margin-top: 20px;
  20349. }
  20350. .up_photo {
  20351. width: 120px;
  20352. cursor: pointer;
  20353. margin-top: 10px;
  20354. }
  20355. .up_photo2 {
  20356. width: 180px;
  20357. box-sizing: border-box;
  20358. min-width: 180px;
  20359. height: 180px;
  20360. max-height: 180px;
  20361. min-height: 180px;
  20362. cursor: pointer;
  20363. display: flex;
  20364. flex-direction: column;
  20365. align-items: center;
  20366. justify-content: center;
  20367. background: rgb(242, 246, 255);
  20368. /* padding: 25px; */
  20369. margin-bottom: 10px;
  20370. }
  20371. .up_photo2 img {
  20372. width: 50%;
  20373. height: auto;
  20374. }
  20375. .up_photo2 span {
  20376. color: #898989;
  20377. }
  20378. .plworkBox {
  20379. display: flex;
  20380. align-items: center;
  20381. margin-top: 10px;
  20382. flex-wrap: wrap;
  20383. }
  20384. .upload_send {
  20385. margin: 30px auto 30px;
  20386. width: 60%;
  20387. background: #3681fc;
  20388. text-align: center;
  20389. height: 35px;
  20390. line-height: 35px;
  20391. color: #fff;
  20392. border-radius: 5px;
  20393. cursor: pointer;
  20394. }
  20395. .marginT {
  20396. margin-top: 20px;
  20397. }
  20398. .cd_content_steps {
  20399. display: flex;
  20400. width: 90%;
  20401. justify-content: space-around;
  20402. border-top: 1px solid #eeeeee;
  20403. }
  20404. .cd_steps_box {
  20405. display: flex;
  20406. justify-content: center;
  20407. align-items: center;
  20408. flex-direction: column;
  20409. cursor: pointer;
  20410. }
  20411. .first {
  20412. display: flex;
  20413. align-items: center;
  20414. margin: 15px 0 20px 0;
  20415. font-size: 20px;
  20416. }
  20417. .first > div:nth-child(2) {
  20418. font-size: 16px !important;
  20419. padding-left: 10px;
  20420. line-height: 26px;
  20421. box-sizing: border-box;
  20422. }
  20423. .blue_box_one {
  20424. text-align: center;
  20425. color: #fff;
  20426. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  20427. border-radius: 7px;
  20428. margin: 10px;
  20429. cursor: pointer;
  20430. width: 95%;
  20431. height: 45px;
  20432. display: flex;
  20433. flex-direction: row;
  20434. justify-content: flex-start;
  20435. align-items: center;
  20436. }
  20437. .blue_box_one > div:nth-child(1) {
  20438. line-height: 30px;
  20439. margin: 0 5px 0 10px;
  20440. width: 30%;
  20441. min-width: 70px;
  20442. border-radius: 4px;
  20443. }
  20444. .blue_box_one > div:nth-child(2) {
  20445. white-space: nowrap;
  20446. text-overflow: ellipsis;
  20447. overflow: hidden;
  20448. word-break: break-all;
  20449. width: 70%;
  20450. text-align: left;
  20451. margin-right: 10px;
  20452. max-width: calc(100% - 85px);
  20453. }
  20454. .blue_box_one > div:nth-child(2):hover {
  20455. overflow: hidden;
  20456. text-overflow: ellipsis;
  20457. white-space: nowrap;
  20458. cursor: pointer;
  20459. }
  20460. .upFile {
  20461. margin: 0 auto;
  20462. width: 120px;
  20463. background: #3681fc;
  20464. color: #fff;
  20465. height: 30px;
  20466. text-align: center;
  20467. line-height: 30px;
  20468. border-radius: 5px;
  20469. font-size: 14px;
  20470. cursor: pointer;
  20471. }
  20472. .courseTitle {
  20473. width: 85%;
  20474. margin: 10px auto 26px auto;
  20475. display: flex;
  20476. flex-direction: row;
  20477. align-items: center;
  20478. justify-content: space-between;
  20479. text-align: center;
  20480. }
  20481. .courseTitle .ctitle {
  20482. font-size: 20px;
  20483. font-weight: bold;
  20484. color: #0e1e33;
  20485. white-space: nowrap;
  20486. overflow: hidden;
  20487. text-overflow: ellipsis;
  20488. }
  20489. .inviteBox {
  20490. font-size: 14px;
  20491. /* margin-top: 5px; */
  20492. color: #00000099;
  20493. text-align: center;
  20494. }
  20495. .courseTitle >>> .el-tooltip {
  20496. width: 100%;
  20497. white-space: nowrap;
  20498. overflow: hidden;
  20499. text-overflow: ellipsis;
  20500. word-break: break-word;
  20501. }
  20502. .ml {
  20503. margin-left: 20px;
  20504. color: #5b7dba;
  20505. border-left: 3px solid #5b7dba;
  20506. padding-left: 5px;
  20507. font-weight: bold;
  20508. }
  20509. .return {
  20510. width: 2rem;
  20511. height: 2rem;
  20512. cursor: pointer;
  20513. }
  20514. .return > img {
  20515. width: 100%;
  20516. height: 100%;
  20517. }
  20518. .returnBtn {
  20519. width: 86px;
  20520. height: 36px;
  20521. background: #3681fc;
  20522. border-radius: 4px;
  20523. color: #fff;
  20524. text-align: center;
  20525. line-height: 36px;
  20526. margin-right: 20px;
  20527. cursor: pointer;
  20528. font-size: 14px;
  20529. font-weight: 400;
  20530. display: flex;
  20531. flex-direction: row;
  20532. flex-wrap: nowrap;
  20533. align-items: center;
  20534. justify-content: center;
  20535. }
  20536. .reBtnIcon,
  20537. .commentIcon,
  20538. .vedioIcon,
  20539. .vedioIcon1 {
  20540. /* width: 36px; */
  20541. height: 36px;
  20542. border-radius: 4px;
  20543. position: relative;
  20544. /* background: #e0eafb; */
  20545. background: #0061ff;
  20546. cursor: pointer;
  20547. margin-right: 12px;
  20548. display: flex;
  20549. align-items: center;
  20550. padding: 0 10px;
  20551. box-sizing: border-box;
  20552. font-size: 14px;
  20553. color: #fff;
  20554. }
  20555. .reBtnIcon::before,
  20556. .commentIcon::before,
  20557. .vedioIcon::before,
  20558. .vedioIcon1::before {
  20559. content: "";
  20560. display: block;
  20561. background-size: 100% 100%;
  20562. background-repeat: no-repeat;
  20563. width: 20px;
  20564. height: 20px;
  20565. margin-right: 5px;
  20566. /* position: absolute; */
  20567. /* top: 8px;
  20568. left: 8px; */
  20569. }
  20570. .vedioIcon1 {
  20571. background: #f63564;
  20572. }
  20573. .reBtnIcon::before {
  20574. background-image: url("../assets/icon/newIcons/refresh.png");
  20575. }
  20576. .commentIcon::before {
  20577. background-image: url("../assets/icon/newIcons/comment.png");
  20578. }
  20579. .vedioIcon::before {
  20580. background-image: url("../assets/icon/newIcons/transcribe.png");
  20581. }
  20582. .vedioIcon1::before {
  20583. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  20584. background-image: url("../assets/icon/newIcons/transcribe.png");
  20585. }
  20586. .tool {
  20587. display: flex;
  20588. flex-direction: column;
  20589. flex-wrap: nowrap;
  20590. width: 13%;
  20591. margin: 0 30px;
  20592. align-items: center;
  20593. position: relative;
  20594. padding: 10px 25px;
  20595. cursor: pointer;
  20596. }
  20597. .whiteBIcon {
  20598. width: 150px;
  20599. }
  20600. .whiteBIcon > img {
  20601. width: 100%;
  20602. height: 100%;
  20603. }
  20604. .mask {
  20605. background-color: rgba(0, 0, 0, 0);
  20606. position: fixed;
  20607. top: 0;
  20608. left: 0;
  20609. width: 100%;
  20610. height: 100%;
  20611. z-index: 20000;
  20612. display: flex;
  20613. align-items: center;
  20614. justify-content: center;
  20615. }
  20616. .progressBox {
  20617. width: 500px;
  20618. height: 180px;
  20619. background: #fff;
  20620. border-radius: 10px;
  20621. box-shadow: 0 0 6px 1px #bfbfbf;
  20622. display: flex;
  20623. align-items: center;
  20624. justify-content: center;
  20625. flex-direction: column;
  20626. position: relative;
  20627. color: #6c6c6c;
  20628. }
  20629. .progressBox >>> .el-progress-bar__outer {
  20630. background-color: #d1dfff !important;
  20631. }
  20632. .progressBox .lbox {
  20633. height: 50px;
  20634. font-size: 19px;
  20635. display: flex;
  20636. align-items: center;
  20637. color: #747474;
  20638. }
  20639. .progressBox .lbox img {
  20640. width: 40px;
  20641. margin-right: 20px;
  20642. }
  20643. .closeCss {
  20644. position: absolute;
  20645. top: 8px;
  20646. right: 8px;
  20647. cursor: pointer;
  20648. width: 20px;
  20649. height: 20px;
  20650. }
  20651. .closeCss > img {
  20652. width: 100%;
  20653. height: 100%;
  20654. }
  20655. .uploadVedio {
  20656. display: flex;
  20657. flex-direction: column;
  20658. flex-wrap: nowrap;
  20659. justify-content: center;
  20660. align-items: center;
  20661. margin: 0 15px 10px 0;
  20662. }
  20663. .uploadVedio > img {
  20664. width: 30px;
  20665. height: 30px;
  20666. }
  20667. .uploadVedio > span {
  20668. white-space: nowrap;
  20669. overflow: hidden;
  20670. text-overflow: ellipsis;
  20671. width: 75px;
  20672. margin-top: 7px;
  20673. }
  20674. .picName {
  20675. white-space: nowrap;
  20676. overflow: hidden;
  20677. text-overflow: ellipsis;
  20678. width: 75px;
  20679. margin-top: 7px;
  20680. }
  20681. .new_top {
  20682. display: flex;
  20683. background: #fff;
  20684. flex-direction: row;
  20685. justify-content: flex-start;
  20686. align-items: center;
  20687. height: 60px;
  20688. position: fixed;
  20689. top: 20px;
  20690. left: 22%;
  20691. width: 77%;
  20692. z-index: 999;
  20693. border-radius: 12px 12px 0 0;
  20694. border-bottom: 1px solid #cad1dc;
  20695. padding: 10px 0;
  20696. }
  20697. .new_topFixed {
  20698. width: 100%;
  20699. height: 40px;
  20700. position: fixed;
  20701. top: 0px;
  20702. display: block;
  20703. background: #f2f2f2;
  20704. z-index: 998;
  20705. }
  20706. .before {
  20707. position: absolute;
  20708. background: #c3dad4;
  20709. width: 6px;
  20710. height: 100%;
  20711. }
  20712. .courseIndex {
  20713. display: flex;
  20714. flex-direction: row;
  20715. align-items: center;
  20716. width: calc(100% - 745px);
  20717. }
  20718. .courseIndex > div:nth-child(1) {
  20719. margin: 0 0 0 10px;
  20720. font-size: 20px;
  20721. min-width: 100px;
  20722. font-weight: bold;
  20723. border-left: 4px solid #3363b9;
  20724. height: 32px;
  20725. text-align: center;
  20726. line-height: 35px;
  20727. }
  20728. .courseIndex > div:nth-child(2) {
  20729. font-size: 20px;
  20730. /* width: 300px; */
  20731. max-width: calc(100% - 105px);
  20732. white-space: nowrap;
  20733. overflow: hidden;
  20734. text-overflow: ellipsis;
  20735. }
  20736. .courseIndex > div:nth-child(3) {
  20737. border-bottom: 1px solid #d7d7d7;
  20738. padding-bottom: 5px;
  20739. background: #3681fc;
  20740. width: 55px;
  20741. min-width: 55px;
  20742. border-radius: 5px;
  20743. color: #fff;
  20744. text-align: center;
  20745. height: 20px;
  20746. line-height: 26px;
  20747. font-size: 14px;
  20748. margin: 0 0 0 10px;
  20749. }
  20750. .course_text {
  20751. padding: 20px 0 0 15px;
  20752. text-indent: 30px;
  20753. width: 80%;
  20754. min-height: 20px;
  20755. }
  20756. .vedioList {
  20757. background: #f2f2f2;
  20758. border: 1px solid #ececec;
  20759. /* width: 38.8%; */
  20760. /* width: 300px; */
  20761. width: 100%;
  20762. height: 445px;
  20763. border-radius: 10px;
  20764. overflow: hidden;
  20765. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  20766. }
  20767. .vedioNav {
  20768. margin: 10px 0 0 15px;
  20769. border-bottom: 1px solid #d7d7d7;
  20770. padding-bottom: 5px;
  20771. background: #3681fc;
  20772. width: 55px;
  20773. min-width: 55px;
  20774. border-radius: 5px;
  20775. color: #fff;
  20776. text-align: center;
  20777. height: 20px;
  20778. line-height: 26px;
  20779. font-size: 14px;
  20780. }
  20781. .queTop {
  20782. display: flex;
  20783. padding: 20px 0 20px 30px;
  20784. width: 100%;
  20785. flex-direction: row;
  20786. justify-content: flex-start;
  20787. align-items: center;
  20788. box-sizing: border-box;
  20789. }
  20790. .queTopTitle {
  20791. display: flex;
  20792. flex-direction: row;
  20793. flex-wrap: nowrap;
  20794. align-items: center;
  20795. font-weight: bold;
  20796. font-size: 20px;
  20797. color: rgb(14, 30, 51);
  20798. }
  20799. .queTopTitle::before {
  20800. content: "";
  20801. width: 2px;
  20802. height: 22px;
  20803. background: #3681fc;
  20804. border-radius: 3px;
  20805. display: block;
  20806. margin: 2px 6px 0 0;
  20807. }
  20808. .queTopRight {
  20809. display: flex;
  20810. flex-direction: row;
  20811. flex-wrap: nowrap;
  20812. align-items: center;
  20813. }
  20814. .queTopClose {
  20815. margin-right: 20px;
  20816. cursor: pointer;
  20817. position: relative;
  20818. display: flex;
  20819. }
  20820. .closeImg,
  20821. .openImg {
  20822. width: 25px;
  20823. height: 25px;
  20824. position: absolute;
  20825. left: -20px;
  20826. top: -1px;
  20827. }
  20828. .closeImg > img,
  20829. .openImg > img {
  20830. width: 100%;
  20831. height: 100%;
  20832. }
  20833. .question {
  20834. width: 40px;
  20835. margin-right: 10px;
  20836. margin-top: 7px;
  20837. }
  20838. .queTitle {
  20839. margin-left: 5px;
  20840. font-size: 25px;
  20841. display: flex;
  20842. align-items: center;
  20843. }
  20844. .addEditor {
  20845. width: 100px;
  20846. height: 30px;
  20847. background: #42cda6;
  20848. color: #fff;
  20849. border-radius: 5px;
  20850. text-align: center;
  20851. line-height: 30px;
  20852. box-shadow: 1px 3px 6px 1px #bfbfbf;
  20853. cursor: pointer;
  20854. }
  20855. /* .vedioName {
  20856. cursor: pointer;
  20857. margin: 0px 0px 10px 5px;
  20858. white-space: nowrap;
  20859. overflow: hidden;
  20860. text-overflow: ellipsis;
  20861. width: 100%;
  20862. } */
  20863. .vedioTime {
  20864. width: 35px;
  20865. position: absolute;
  20866. color: #fff;
  20867. bottom: 0px;
  20868. right: 0px;
  20869. text-align: center;
  20870. background: #46411f;
  20871. height: 20px;
  20872. font-size: 14px;
  20873. line-height: 20px;
  20874. }
  20875. .homework {
  20876. width: 200px;
  20877. display: flex;
  20878. flex-direction: column;
  20879. flex-wrap: nowrap;
  20880. align-items: center;
  20881. cursor: pointer;
  20882. }
  20883. .homebox {
  20884. display: flex;
  20885. flex-wrap: wrap;
  20886. flex-direction: row;
  20887. justify-content: flex-start;
  20888. align-items: center;
  20889. padding: 15px 0;
  20890. }
  20891. .isChooseActive {
  20892. color: #3681fc !important;
  20893. font-weight: bold !important;
  20894. }
  20895. .chooseWho {
  20896. display: flex;
  20897. width: 100%;
  20898. flex-direction: row;
  20899. flex-wrap: nowrap;
  20900. justify-content: flex-start;
  20901. padding-bottom: 10px;
  20902. }
  20903. .chooseWho > div {
  20904. cursor: pointer;
  20905. padding-bottom: 10px;
  20906. margin: 0 30px 0 0;
  20907. font-weight: 400;
  20908. color: #0e1e33;
  20909. }
  20910. .addPoint > div > img {
  20911. cursor: pointer;
  20912. width: 85px;
  20913. border-radius: 15px;
  20914. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  20915. }
  20916. .addPoint > div {
  20917. display: flex;
  20918. flex-direction: column;
  20919. flex-wrap: nowrap;
  20920. align-items: center;
  20921. }
  20922. .isBorder > div {
  20923. margin: 0 0 10px 0;
  20924. align-items: flex-start !important;
  20925. }
  20926. .noiframeBox {
  20927. display: flex;
  20928. flex-wrap: wrap;
  20929. }
  20930. .iframeBox iframe {
  20931. width: 100%;
  20932. height: 800px;
  20933. border: none;
  20934. margin-bottom: 20px;
  20935. border: 1px solid #ccc;
  20936. }
  20937. .upload_toolBtn {
  20938. background: #3681fc;
  20939. color: #fff;
  20940. width: 110px;
  20941. text-align: center;
  20942. height: 35px;
  20943. line-height: 35px;
  20944. font-size: 14px;
  20945. border-radius: 5px;
  20946. cursor: pointer;
  20947. position: absolute;
  20948. right: 10px;
  20949. bottom: 0;
  20950. }
  20951. .binfo_input,
  20952. .pj {
  20953. font: inherit;
  20954. color: currentColor;
  20955. width: 100%;
  20956. margin: 0;
  20957. padding: 15px 14px;
  20958. display: block;
  20959. min-width: 0;
  20960. outline: none;
  20961. box-sizing: content-box;
  20962. background: none;
  20963. -webkit-tap-highlight-color: transparent;
  20964. border: 1px solid rgba(0, 0, 0, 0.23);
  20965. border-radius: 4px;
  20966. box-sizing: border-box;
  20967. resize: none;
  20968. }
  20969. .binfo_input:focus-visible {
  20970. border: 1px solid rgba(61, 103, 188);
  20971. }
  20972. .dialog_diy >>> .el-dialog__header,
  20973. .dialog_diy1 >>> .el-dialog__header {
  20974. background: #454545 !important;
  20975. padding: 15px 20px;
  20976. }
  20977. .dialog_diy >>> .el-dialog__title,
  20978. .dialog_diy1 >>> .el-dialog__title {
  20979. color: #fff;
  20980. }
  20981. .dialog_diy >>> .el-dialog__headerbtn,
  20982. .dialog_diy1 >>> .el-dialog__headerbtn {
  20983. top: 19px;
  20984. }
  20985. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  20986. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  20987. color: #fff;
  20988. }
  20989. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  20990. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  20991. color: #fff;
  20992. }
  20993. .dialog_diy1 >>> .el-dialog__body {
  20994. padding: 0;
  20995. }
  20996. .dialog_diy >>> .el-dialog__body,
  20997. .dialog_diy >>> .el-dialog__footer,
  20998. .dialog_diy1 >>> .el-dialog__footer {
  20999. background: #fafafa;
  21000. }
  21001. .a_addBox {
  21002. padding: 0 0 0 15px;
  21003. }
  21004. .a_add_box {
  21005. padding: 10px;
  21006. background: #fff;
  21007. margin-bottom: 10px;
  21008. border-radius: 5px;
  21009. box-shadow: 0 0 5px 0 #d5d5d5;
  21010. }
  21011. .a_add_head {
  21012. display: flex;
  21013. align-items: flex-start;
  21014. /* justify-content: space-between; */
  21015. flex-direction: column;
  21016. /* flex-direction: row; */
  21017. margin: 10px 0 20px 0;
  21018. font-size: 18px;
  21019. width: 100%;
  21020. }
  21021. .askIndex {
  21022. background: #3681fc;
  21023. border-radius: 50%;
  21024. color: #fff;
  21025. width: 25px;
  21026. height: 25px;
  21027. min-width: 25px;
  21028. min-height: 25px;
  21029. text-align: center;
  21030. line-height: 25px;
  21031. margin-right: 5px;
  21032. }
  21033. .a_add_head .a_add_head_input {
  21034. width: 300px;
  21035. }
  21036. .a_add_head .a_add_head_div {
  21037. display: flex;
  21038. align-items: center;
  21039. justify-content: space-between;
  21040. }
  21041. .a_add_body {
  21042. display: flex;
  21043. align-items: center;
  21044. }
  21045. .a_add_input {
  21046. display: flex;
  21047. align-items: center;
  21048. flex-wrap: wrap;
  21049. width: 100%;
  21050. }
  21051. .a_add_input >>> .el-radio-group,
  21052. .a_add_input >>> .el-checkbox-group {
  21053. width: 100%;
  21054. }
  21055. .a_add_input >>> .el-radio,
  21056. .a_add_input >>> .el-checkbox {
  21057. display: flex;
  21058. flex-direction: row;
  21059. flex-wrap: nowrap;
  21060. align-items: center;
  21061. padding: 15px 0;
  21062. }
  21063. .a_add_input >>> .el-radio:not(:last-child),
  21064. .a_add_input >>> .el-checkbox:not(:last-child) {
  21065. width: 100%;
  21066. border-bottom: 1px solid #efefef;
  21067. }
  21068. .redioStyle >>> .el-radio__label {
  21069. font-size: 18px;
  21070. }
  21071. .redioStyle >>> .el-radio__label > span,
  21072. .redioStyle >>> .el-checkbox__label > span {
  21073. word-break: break-all;
  21074. white-space: normal;
  21075. }
  21076. .redioStyle >>> .el-checkbox__label {
  21077. font-size: 18px;
  21078. }
  21079. .toolHeng2 {
  21080. width: 100%;
  21081. padding-left: 37px;
  21082. box-sizing: border-box;
  21083. }
  21084. .workNav {
  21085. font-size: 20px;
  21086. font-weight: bold;
  21087. color: #0e1e33;
  21088. display: flex;
  21089. flex-direction: row;
  21090. flex-wrap: nowrap;
  21091. align-items: center;
  21092. padding: 15px 0 15px 0;
  21093. }
  21094. .workNav::before {
  21095. content: "";
  21096. width: 2px;
  21097. height: 22px;
  21098. background: #3681fc;
  21099. border-radius: 3px;
  21100. display: block;
  21101. margin: 2px 6px 0 0;
  21102. }
  21103. .toolHeng {
  21104. display: flex;
  21105. flex-direction: row;
  21106. flex-wrap: wrap;
  21107. justify-content: flex-start;
  21108. align-items: center;
  21109. width: 100%;
  21110. }
  21111. .toolHeng > div {
  21112. padding-left: 20px;
  21113. }
  21114. .isWidth {
  21115. width: 20%;
  21116. }
  21117. .textTitle {
  21118. display: flex;
  21119. flex-direction: row;
  21120. flex-wrap: nowrap;
  21121. align-items: center;
  21122. width: 95%;
  21123. }
  21124. .textTitle >>> .el-form-item__label {
  21125. font-size: 22px;
  21126. color: #918f8f;
  21127. width: 100px;
  21128. }
  21129. .textTitle >>> .el-form-item__content {
  21130. width: calc(100% - 100px);
  21131. }
  21132. .textCss >>> .el-dialog {
  21133. width: 800px !important;
  21134. height: 400px;
  21135. background: #fafafa;
  21136. }
  21137. .textCss >>> .el-dialog__body {
  21138. margin: 55px 8% 0 8%;
  21139. padding: 0 !important;
  21140. }
  21141. .textCss >>> .el-dialog__footer {
  21142. padding-top: 38px;
  21143. }
  21144. .toolsCss >>> .el-dialog__body {
  21145. padding: 20px;
  21146. }
  21147. .lineCss >>> .el-dialog__body {
  21148. display: flex;
  21149. flex-direction: row;
  21150. align-items: center;
  21151. justify-content: center;
  21152. }
  21153. .newNav {
  21154. display: flex;
  21155. flex-direction: row;
  21156. align-items: baseline;
  21157. justify-content: flex-start;
  21158. }
  21159. .navListItem {
  21160. width: calc(100% - 20px);
  21161. height: 50px;
  21162. margin: 0px auto 10px;
  21163. display: flex;
  21164. flex-direction: row;
  21165. flex-wrap: nowrap;
  21166. align-items: center;
  21167. justify-content: space-between;
  21168. background: #f0f4fa;
  21169. border-radius: 6px 6px 6px 6px;
  21170. }
  21171. .navText {
  21172. cursor: pointer;
  21173. white-space: nowrap;
  21174. overflow: hidden;
  21175. text-overflow: ellipsis;
  21176. width: 220px;
  21177. padding: 0 10px;
  21178. font-weight: 400;
  21179. color: #0e1e33;
  21180. }
  21181. .downIcon {
  21182. width: 20px;
  21183. min-width: 20px;
  21184. height: 20px;
  21185. margin-right: 15px;
  21186. cursor: pointer;
  21187. }
  21188. .downIcon > img {
  21189. width: 100%;
  21190. height: 100%;
  21191. }
  21192. .noVedio {
  21193. display: flex;
  21194. flex-direction: row;
  21195. justify-content: center;
  21196. align-content: center;
  21197. }
  21198. .noNavText {
  21199. cursor: pointer;
  21200. margin: 0px 0px 10px 5px;
  21201. width: 112px;
  21202. }
  21203. .listNoVedio {
  21204. margin: 0 0 0 30px;
  21205. width: 97%;
  21206. }
  21207. .video-player >>> .video-js {
  21208. height: 100%;
  21209. }
  21210. .hangVedioList {
  21211. width: 90% !important;
  21212. height: 150px !important;
  21213. margin: 20px 0 0 30px;
  21214. }
  21215. .hangVedio {
  21216. width: 100%;
  21217. height: 170px !important;
  21218. align-items: flex-start !important;
  21219. }
  21220. .hangHand {
  21221. height: 150px !important;
  21222. }
  21223. .twoChild {
  21224. width: 95%;
  21225. margin: 10px;
  21226. border-radius: 5px;
  21227. background: #f2f2f2;
  21228. display: flex;
  21229. flex-direction: column;
  21230. flex-wrap: nowrap;
  21231. justify-content: flex-start;
  21232. align-items: flex-start;
  21233. transition: all 0.5s;
  21234. overflow: hidden;
  21235. height: 0;
  21236. background: #e7f3ff;
  21237. }
  21238. .twoChild > div:nth-child(1) {
  21239. margin-top: 5px;
  21240. }
  21241. .navChild {
  21242. width: 100%;
  21243. cursor: pointer;
  21244. margin-bottom: 10px;
  21245. position: relative;
  21246. }
  21247. .navChild img {
  21248. position: absolute;
  21249. right: 11px;
  21250. width: 15px;
  21251. top: 50%;
  21252. transform: translateY(-50%);
  21253. }
  21254. .navActive,
  21255. .toolActive {
  21256. height: auto !important;
  21257. overflow: auto !important;
  21258. /* padding-bottom: 16px; */
  21259. }
  21260. .toolActive {
  21261. padding: 0;
  21262. }
  21263. .navTask {
  21264. display: flex;
  21265. flex-direction: row;
  21266. flex-wrap: nowrap;
  21267. align-items: center;
  21268. align-content: flex-start;
  21269. height: 40px;
  21270. justify-content: flex-start;
  21271. padding: 0 10px;
  21272. width: 100%;
  21273. box-sizing: border-box;
  21274. }
  21275. .navTaskname {
  21276. white-space: nowrap;
  21277. text-overflow: ellipsis;
  21278. overflow: hidden;
  21279. word-break: break-all;
  21280. padding-left: 5px;
  21281. }
  21282. .openTaskActive {
  21283. /* background-color: #e0eafb !important;
  21284. color: #0061ff; */
  21285. color:#fff;
  21286. background: rgb(55, 129, 252) !important;
  21287. }
  21288. .iframeName {
  21289. margin: 5px 0;
  21290. border-left: 4px solid #41c4a4;
  21291. padding-left: 4px;
  21292. }
  21293. .toolTitle {
  21294. margin: 0px 0px 20px;
  21295. font-size: 20px;
  21296. font-weight: 500;
  21297. border-left: 4px solid #41c4a4;
  21298. padding-left: 4px;
  21299. }
  21300. .cru_selectBox {
  21301. overflow: auto;
  21302. width: 95%;
  21303. margin: 17px auto 0;
  21304. height: calc(100% - 40px - 21px - 20px - 17px);
  21305. background: #fff;
  21306. border-radius: 8px;
  21307. }
  21308. .cru_selectBox::-webkit-scrollbar,
  21309. .study_top::-webkit-scrollbar,
  21310. .textContent::-webkit-scrollbar {
  21311. /*滚动条整体样式*/
  21312. width: 6px;
  21313. /*高宽分别对应横竖滚动条的尺寸*/
  21314. height: 6px;
  21315. }
  21316. /*定义滚动条轨道 内阴影+圆角*/
  21317. .cru_selectBox::-webkit-scrollbar-track,
  21318. .study_top::-webkit-scrollbar-track,
  21319. .textContent::-webkit-scrollbar {
  21320. border-radius: 10px;
  21321. background-color: #b8bdc9;
  21322. }
  21323. /*定义滑块 内阴影+圆角*/
  21324. .cru_selectBox::-webkit-scrollbar-thumb,
  21325. .study_top::-webkit-scrollbar-thumb,
  21326. .textContent::-webkit-scrollbar-thumb {
  21327. border-radius: 10px;
  21328. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  21329. background-color: #2c5ab3;
  21330. }
  21331. .vedioBox {
  21332. border-radius: 0 0 20px 20px;
  21333. background: #fff;
  21334. overflow: auto;
  21335. }
  21336. .taskBox {
  21337. width: 98%;
  21338. background: #f0f4fa;
  21339. margin: 10px auto;
  21340. padding: 0 10px;
  21341. border-radius: 4px;
  21342. box-sizing: border-box;
  21343. }
  21344. .vedioTaskBox {
  21345. width: 100%;
  21346. display: flex;
  21347. flex-direction: row;
  21348. flex-wrap: nowrap;
  21349. align-items: flex-start;
  21350. position: relative;
  21351. }
  21352. .toolBox {
  21353. margin: 15px 0 0 25px;
  21354. display: flex;
  21355. position: relative;
  21356. padding: 18px 20px;
  21357. border-top-left-radius: 5px;
  21358. border-top-right-radius: 5px;
  21359. width: 90%;
  21360. }
  21361. .btnAll {
  21362. position: absolute;
  21363. right: 0;
  21364. display: flex;
  21365. flex-direction: row;
  21366. flex-wrap: nowrap;
  21367. align-items: center;
  21368. }
  21369. .btnLeft,
  21370. .btnRight {
  21371. display: flex;
  21372. flex-direction: row;
  21373. flex-wrap: nowrap;
  21374. align-items: center;
  21375. padding: 5px 0;
  21376. }
  21377. .btnLeft {
  21378. border-right: 1px solid #cad1dc;
  21379. }
  21380. .btnLeft > .custom-tooltip {
  21381. background: #3681fc;
  21382. color: #fff;
  21383. }
  21384. .last:hover {
  21385. background: #3383fa !important;
  21386. color: #fff;
  21387. border: 1px solid #3383fa !important;
  21388. }
  21389. .last,
  21390. .returnBtn1 {
  21391. width: 90px;
  21392. height: 36px;
  21393. background: #ffffff;
  21394. border-radius: 4px;
  21395. border: 1px solid #0061ff;
  21396. color: #0061ff;
  21397. cursor: pointer;
  21398. display: flex;
  21399. flex-direction: row;
  21400. flex-wrap: nowrap;
  21401. align-items: center;
  21402. justify-content: center;
  21403. margin-left: 12px;
  21404. }
  21405. .returnBtn1 {
  21406. background: #f0f4fa;
  21407. border-radius: 4px;
  21408. border: 1px solid #cad1dc;
  21409. margin: 0 12px;
  21410. }
  21411. .lastImg {
  21412. min-width: 15px;
  21413. width: 15px;
  21414. height: 15px;
  21415. display: flex;
  21416. }
  21417. .lastText {
  21418. padding: 0 5px 0 5px;
  21419. box-sizing: border-box;
  21420. font-size: 14px;
  21421. }
  21422. .lastImg > img {
  21423. width: 100%;
  21424. height: 100%;
  21425. }
  21426. /* .vedioTimeBox {
  21427. display: flex;
  21428. flex-direction: row;
  21429. align-items: center;
  21430. flex-wrap: nowrap;
  21431. position: relative;
  21432. } */
  21433. .navBox {
  21434. background: #fff;
  21435. height: calc(100% - 40px);
  21436. overflow-y: auto;
  21437. overflow-x: hidden;
  21438. }
  21439. .worksBox {
  21440. margin: 0 0 10px 25px;
  21441. border-bottom: 1px solid #eeeeee;
  21442. padding: 18px 20px;
  21443. border-radius: 4px;
  21444. width: 90%;
  21445. }
  21446. .worksBTitle {
  21447. font-size: 20px;
  21448. padding-bottom: 15px;
  21449. border-bottom: 1px solid #eeeeee;
  21450. display: flex;
  21451. align-items: center;
  21452. }
  21453. .greenBox {
  21454. width: 5px;
  21455. height: 30px;
  21456. background: #63b6fa;
  21457. margin-right: 5px;
  21458. }
  21459. .worksDetailBox {
  21460. display: flex;
  21461. width: 100%;
  21462. flex-direction: row;
  21463. flex-wrap: wrap;
  21464. align-items: flex-end;
  21465. justify-content: flex-start;
  21466. padding: 15px 5px;
  21467. box-sizing: border-box;
  21468. }
  21469. .works {
  21470. display: flex;
  21471. flex-direction: column;
  21472. flex-wrap: nowrap;
  21473. align-items: flex-start;
  21474. justify-content: flex-start;
  21475. align-content: center;
  21476. max-width: 240px;
  21477. width: calc(100% / 3 - 10px);
  21478. height: auto;
  21479. margin-right: 10px;
  21480. margin-bottom: 10px;
  21481. overflow: hidden;
  21482. height: 140px;
  21483. box-shadow: 0 0 6px 1px #dfdada;
  21484. border-radius: 15px;
  21485. }
  21486. .workImg {
  21487. width: 100%;
  21488. /* height: calc(100% - 40px); */
  21489. height: 105px;
  21490. position: relative;
  21491. }
  21492. .workImg > img {
  21493. width: 100%;
  21494. height: 100%;
  21495. object-fit: contain;
  21496. cursor: pointer;
  21497. }
  21498. .worksName {
  21499. height: 40px;
  21500. line-height: 40px;
  21501. display: flex;
  21502. width: 100%;
  21503. flex-direction: row;
  21504. flex-wrap: nowrap;
  21505. justify-content: space-between;
  21506. align-items: center;
  21507. margin: 0 0 0 10px;
  21508. }
  21509. .worksName > div:nth-child(1) {
  21510. width: 110px;
  21511. white-space: nowrap;
  21512. overflow: hidden;
  21513. text-overflow: ellipsis;
  21514. }
  21515. .worksName > div:nth-child(2) {
  21516. color: #b7b4b5;
  21517. }
  21518. .noWorksS {
  21519. padding: 15px 0;
  21520. display: flex;
  21521. flex-direction: row;
  21522. flex-wrap: wrap;
  21523. align-items: center;
  21524. justify-content: flex-start;
  21525. }
  21526. .noWorksName,
  21527. .isWorksName,
  21528. .isWorksName2 {
  21529. background: #ddebf8;
  21530. color: #000;
  21531. width: 90px;
  21532. height: 25px;
  21533. text-align: center;
  21534. line-height: 25px;
  21535. border-radius: 4px;
  21536. margin: 10px 15px 10px 0;
  21537. white-space: nowrap;
  21538. overflow: hidden;
  21539. padding: 5px;
  21540. text-overflow: ellipsis;
  21541. cursor: pointer;
  21542. border: 1px solid #ddebf8;
  21543. }
  21544. .noWorksName {
  21545. background: #fff;
  21546. color: #0061ff;
  21547. border: 1px solid #0061ff;
  21548. }
  21549. .noWorksName > span{
  21550. max-width: 100%;
  21551. display: block;
  21552. overflow: hidden;
  21553. text-overflow: ellipsis;
  21554. white-space: nowrap;
  21555. }
  21556. .isWorksName2 {
  21557. width: 100px;
  21558. height: 40px;
  21559. line-height: 40px;
  21560. position: relative;
  21561. background: #dae6f9;
  21562. }
  21563. .isWorksName {
  21564. background: #e7ebf1 !important;
  21565. width: 100px;
  21566. height: 40px;
  21567. line-height: 40px;
  21568. position: relative;
  21569. color: #acb4bf;
  21570. border: 1px solid #cad1dc !important;
  21571. }
  21572. .isSelectName,
  21573. .noWorksName:hover {
  21574. background: #3383fa !important;
  21575. color: #fff !important;
  21576. border: 1px solid #3383fa !important;
  21577. }
  21578. .title {
  21579. background: #1e5cc9;
  21580. /* width: 98%; */
  21581. height: 45px;
  21582. color: #fff;
  21583. line-height: 45px;
  21584. padding-left: 20px;
  21585. box-sizing: border-box;
  21586. }
  21587. .textBox {
  21588. font-size: 20px;
  21589. width: 90%;
  21590. display: flex;
  21591. flex-direction: column;
  21592. align-items: center;
  21593. margin: 20px auto 0;
  21594. max-height: calc(100% - 75px);
  21595. overflow: auto;
  21596. }
  21597. .textContent {
  21598. font-size: 18px;
  21599. width: 95%;
  21600. max-width: 95%;
  21601. }
  21602. .answerBg {
  21603. background: url("../assets/icon/answerBgNew.png") no-repeat;
  21604. background-size: 100% 100%;
  21605. width: 100%;
  21606. height: 100%;
  21607. color: #fff;
  21608. text-align: center;
  21609. display: flex;
  21610. flex-direction: column;
  21611. flex-wrap: nowrap;
  21612. align-items: center;
  21613. position: relative;
  21614. justify-content: center;
  21615. }
  21616. .answerBg > div:nth-child(1) {
  21617. /* font-size: 22px;
  21618. padding: 25px 0 10px; */
  21619. }
  21620. .answerContent {
  21621. width: 215px;
  21622. max-height: 60px;
  21623. word-break: break-all;
  21624. text-align: center;
  21625. /* white-space: nowrap; */
  21626. overflow: hidden;
  21627. text-overflow: ellipsis;
  21628. /* padding: 23px 0 0; */
  21629. -webkit-line-clamp: 3;
  21630. -webkit-box-orient: vertical;
  21631. display: -webkit-box;
  21632. font-size: 15px;
  21633. cursor: pointer;
  21634. }
  21635. .elist_input_box {
  21636. display: flex;
  21637. align-items: flex-start;
  21638. flex-wrap: nowrap;
  21639. padding: 10px 0 15px 30px;
  21640. flex-direction: column;
  21641. }
  21642. .elist_input {
  21643. /* width: 40%; */
  21644. width: 45%;
  21645. margin: 20px;
  21646. }
  21647. .elist_input .elist_input_box input {
  21648. font: inherit;
  21649. color: currentColor;
  21650. width: 200px;
  21651. padding: 8px 14px;
  21652. display: block;
  21653. min-width: 0;
  21654. outline: none;
  21655. border: 1px solid rgba(0, 0, 0, 0.23);
  21656. border-radius: 4px;
  21657. box-sizing: border-box;
  21658. background: #fff;
  21659. margin: 0 20px 0 0;
  21660. }
  21661. .elist_input .elist_input_box span {
  21662. height: 36px;
  21663. line-height: 36px;
  21664. color: rgb(82, 82, 82);
  21665. }
  21666. .elist_input .elist_input_box .remove {
  21667. height: 20px;
  21668. width: 20px;
  21669. background-size: 100% 100%;
  21670. background-position: unset;
  21671. margin-left: 5px;
  21672. }
  21673. .elist_input_box >>> .el-rate {
  21674. display: flex;
  21675. height: 36px;
  21676. align-items: center;
  21677. }
  21678. .elist_input_box .elist_inptu_text {
  21679. min-height: 50px;
  21680. /* width: 500px;
  21681. max-height: 150px; */
  21682. width: 100%;
  21683. line-height: 50px;
  21684. color: rgb(82, 82, 82);
  21685. overflow: auto;
  21686. text-indent: 5px;
  21687. background: #f7f6f9;
  21688. border-radius: 10px;
  21689. }
  21690. .elist_input_box .elist_inptu_text input {
  21691. width: 500px;
  21692. }
  21693. .elist_input_box >>> .el-rate__icon {
  21694. font-size: 24px;
  21695. }
  21696. .isClick {
  21697. background: #4d9def;
  21698. }
  21699. .bzBox {
  21700. display: flex;
  21701. flex-direction: row;
  21702. align-items: center;
  21703. }
  21704. .bzBox .yCss {
  21705. width: 7px;
  21706. height: 7px;
  21707. background: #fff;
  21708. margin: 0 16px 0 6px;
  21709. border-radius: 50%;
  21710. border: 5px solid #3681fc;
  21711. z-index: 99;
  21712. }
  21713. .bzBox > div:nth-child(2) {
  21714. font-size: 18px;
  21715. font-weight: bold;
  21716. color: #0e1e33;
  21717. }
  21718. .navTitile {
  21719. padding: 0 0px 0 15px;
  21720. font-size: 16px;
  21721. font-weight: bold;
  21722. color: #0e1e33;
  21723. height: 40px;
  21724. line-height: 40px;
  21725. }
  21726. .isTypeOne {
  21727. width: 240px;
  21728. height: 170px;
  21729. /* border: 1px solid #f8f8f8; */
  21730. border-radius: 10px;
  21731. box-shadow: 0 0 6px 1px #dfdada;
  21732. }
  21733. .e_add_top {
  21734. display: flex;
  21735. justify-content: space-between;
  21736. padding: 10px 20px;
  21737. border-radius: 3px;
  21738. background: #fff;
  21739. }
  21740. .e_add_title2 {
  21741. display: flex;
  21742. align-items: center;
  21743. }
  21744. .e_add_title2 span {
  21745. width: 40px;
  21746. }
  21747. .e_add_title {
  21748. display: flex;
  21749. align-items: center;
  21750. color: #b8b8b8;
  21751. font-size: 18px;
  21752. position: relative;
  21753. height: 40px;
  21754. width: 100%;
  21755. }
  21756. .e_add_title span {
  21757. margin-right: 10px;
  21758. }
  21759. .e_add_title .el_input {
  21760. width: 300px;
  21761. }
  21762. .e_add_title >>> .el-input__inner {
  21763. width: 400px;
  21764. }
  21765. .e_add_btn {
  21766. }
  21767. .e_add_content {
  21768. display: flex;
  21769. width: 100%;
  21770. max-width: 650px;
  21771. height: 550px;
  21772. }
  21773. .e_add_list {
  21774. background: #fff;
  21775. height: 500px;
  21776. width: 210px;
  21777. position: relative;
  21778. margin: 15px 5px 0 0;
  21779. flex-shrink: 0;
  21780. display: flex;
  21781. flex-direction: column;
  21782. }
  21783. .e_add_list_title {
  21784. font-size: 20px;
  21785. width: 100%;
  21786. box-sizing: border-box;
  21787. padding: 15px 40px;
  21788. text-align: center;
  21789. border-bottom: 1px solid #eaeaea;
  21790. position: relative;
  21791. display: flex;
  21792. align-items: center;
  21793. justify-content: center;
  21794. height: 57px;
  21795. background: #f6f6f6;
  21796. }
  21797. .e_add_list_title span {
  21798. overflow: hidden;
  21799. white-space: nowrap;
  21800. text-overflow: ellipsis;
  21801. }
  21802. .e_add_list_title img {
  21803. position: absolute;
  21804. right: 15px;
  21805. width: 25px;
  21806. cursor: pointer;
  21807. top: 50%;
  21808. transform: translateY(-50%);
  21809. }
  21810. .e_add_list_body {
  21811. height: calc(100% - 187px);
  21812. overflow: auto;
  21813. }
  21814. .e_add_list_child {
  21815. width: 100%;
  21816. display: flex;
  21817. align-items: center;
  21818. justify-content: center;
  21819. position: relative;
  21820. box-sizing: border-box;
  21821. padding: 15px 40px;
  21822. text-align: center;
  21823. }
  21824. .e_add_list_child span {
  21825. overflow: hidden;
  21826. white-space: nowrap;
  21827. text-overflow: ellipsis;
  21828. cursor: pointer;
  21829. }
  21830. .e_add_list_child img {
  21831. position: absolute;
  21832. right: 10px;
  21833. width: 21px;
  21834. cursor: pointer;
  21835. top: 50%;
  21836. transform: translateY(-50%);
  21837. }
  21838. .e_add_list_child + .e_add_list_child {
  21839. border-top: 1px solid #eaeaea;
  21840. }
  21841. .e_add_list_child .active {
  21842. color: #409eff;
  21843. }
  21844. .e_add_list_btn {
  21845. position: absolute;
  21846. bottom: 0;
  21847. height: 50px;
  21848. background: rgb(120, 120, 254);
  21849. width: 100%;
  21850. color: #fff;
  21851. font-size: 16px;
  21852. text-align: center;
  21853. line-height: 50px;
  21854. cursor: pointer;
  21855. }
  21856. .e_add_list_detail {
  21857. position: absolute;
  21858. bottom: 0;
  21859. height: 130px;
  21860. background: rgb(120, 120, 254);
  21861. width: 100%;
  21862. color: #fff;
  21863. font-size: 16px;
  21864. display: flex;
  21865. align-items: center;
  21866. justify-content: center;
  21867. }
  21868. .e_add_list_detail textarea {
  21869. height: 90%;
  21870. width: 95%;
  21871. border: none;
  21872. resize: none;
  21873. outline: none;
  21874. padding: 5px;
  21875. box-sizing: border-box;
  21876. }
  21877. .e_add_list_pbox {
  21878. width: 100%;
  21879. max-width: 650px;
  21880. /* height: 600px; */
  21881. }
  21882. .e_add_list_pbox_title {
  21883. height: 50px;
  21884. background: #fff;
  21885. display: flex;
  21886. align-items: center;
  21887. width: 100%;
  21888. box-sizing: border-box;
  21889. padding: 0 20px;
  21890. }
  21891. .type_title {
  21892. font-size: 18px;
  21893. font-weight: 700;
  21894. }
  21895. .type_content {
  21896. font-size: 16px;
  21897. /* margin-left: 30px; */
  21898. }
  21899. .type_content span + span {
  21900. margin-left: 20px;
  21901. }
  21902. .type_content span {
  21903. cursor: pointer;
  21904. padding-bottom: 5px;
  21905. box-sizing: border-box;
  21906. }
  21907. .type_content .active {
  21908. color: #409eff;
  21909. border-bottom: 2px solid #409eff;
  21910. }
  21911. .e_add_list_pbox_content {
  21912. height: calc(100% - 50px);
  21913. display: flex;
  21914. align-items: center;
  21915. width: 100%;
  21916. background: #fff;
  21917. }
  21918. .evaCss {
  21919. display: flex;
  21920. flex-direction: row;
  21921. flex-wrap: nowrap;
  21922. align-items: flex-start;
  21923. padding: 0 0 20px;
  21924. }
  21925. .cru_line {
  21926. position: absolute;
  21927. bottom: 0px;
  21928. transition: all 0.5s;
  21929. left: 0px;
  21930. width: 125px;
  21931. margin-left: -25px;
  21932. }
  21933. .isNoMessage {
  21934. width: 20%;
  21935. margin: 25% auto 0;
  21936. }
  21937. .isNoMessage > img {
  21938. width: 100%;
  21939. height: 100%;
  21940. }
  21941. .fullStyle >>> .el-dialog__body {
  21942. height: 100% !important;
  21943. }
  21944. .fullStyle >>> .el-dialog,
  21945. .fullStyle {
  21946. width: 100% !important;
  21947. max-width: 100% !important;
  21948. height: 100% !important;
  21949. margin: 0 !important;
  21950. }
  21951. .full_diy >>> .el-dialog {
  21952. margin: 0 !important;
  21953. height: 100%;
  21954. padding: 4px;
  21955. }
  21956. .full_diy >>> .el-dialog__body {
  21957. height: calc(100% - 100px);
  21958. }
  21959. .full_diy2 >>> .el-dialog__body {
  21960. height: calc(100% - 50px);
  21961. padding: 0;
  21962. }
  21963. .switchCss {
  21964. /* width: 100%; */
  21965. display: flex;
  21966. flex-direction: row;
  21967. flex-wrap: nowrap;
  21968. align-items: center;
  21969. /* justify-content: center; */
  21970. }
  21971. .isClickNav {
  21972. /* color: #499eef; */
  21973. color: #000;
  21974. }
  21975. .commentImg {
  21976. width: 25px;
  21977. height: 25px;
  21978. cursor: pointer;
  21979. }
  21980. .commentImg > img {
  21981. width: 100%;
  21982. height: 100%;
  21983. }
  21984. .comment {
  21985. background: #f9f9f9;
  21986. border-radius: 0 0 4px 4px;
  21987. display: flex;
  21988. flex-direction: row;
  21989. flex-wrap: nowrap;
  21990. align-items: center;
  21991. justify-content: flex-end;
  21992. height: 35px;
  21993. }
  21994. .commentList {
  21995. display: flex;
  21996. flex-direction: row;
  21997. flex-wrap: nowrap;
  21998. align-items: center;
  21999. justify-content: center;
  22000. align-content: center;
  22001. /* margin-left: 15px; */
  22002. /* margin-left: 8px; */
  22003. }
  22004. .scoreImg {
  22005. width: 17px;
  22006. height: 17px;
  22007. }
  22008. .studentDetail {
  22009. display: flex;
  22010. flex-direction: row;
  22011. flex-wrap: nowrap;
  22012. /* align-items: center; */
  22013. align-items: flex-start;
  22014. }
  22015. .tx {
  22016. width: 50px;
  22017. }
  22018. .tx > img {
  22019. width: 100%;
  22020. height: 100%;
  22021. }
  22022. .nameAndTime {
  22023. display: flex;
  22024. flex-direction: column;
  22025. flex-wrap: nowrap;
  22026. align-items: flex-start;
  22027. margin-left: 10px;
  22028. }
  22029. .worksAnswer {
  22030. color: #4078dd;
  22031. margin: 10px 0;
  22032. font-size: 16px;
  22033. position: relative;
  22034. }
  22035. .worksAnswer > img {
  22036. width: 500px;
  22037. height: 300px;
  22038. object-fit: contain;
  22039. margin: 0 auto;
  22040. display: block;
  22041. }
  22042. .commentTop {
  22043. border-bottom: 1px solid #eaeaea;
  22044. padding-bottom: 10px;
  22045. }
  22046. .commentBox {
  22047. padding-top: 15px;
  22048. }
  22049. .pl {
  22050. font-size: 18px;
  22051. }
  22052. .plPerson {
  22053. width: 100%;
  22054. }
  22055. .plName {
  22056. display: flex;
  22057. flex-direction: row;
  22058. flex-wrap: nowrap;
  22059. align-items: baseline;
  22060. color: #78787a;
  22061. width: 100%;
  22062. }
  22063. .deleteComment {
  22064. cursor: pointer;
  22065. margin-left: auto;
  22066. color: #237ade;
  22067. }
  22068. .plContent {
  22069. margin-top: 5px;
  22070. }
  22071. .evalCss {
  22072. background: #fff;
  22073. font-size: 18px;
  22074. }
  22075. .nav {
  22076. color: #9d9d9d;
  22077. padding: 5px 0 15px 20px;
  22078. }
  22079. .middleBox {
  22080. padding: 5px 0 15px 20px;
  22081. }
  22082. .pfBox {
  22083. padding-bottom: 30px;
  22084. }
  22085. .nameAndrate {
  22086. display: flex;
  22087. flex-direction: row;
  22088. flex-wrap: nowrap;
  22089. align-items: center;
  22090. padding-bottom: 10px;
  22091. height: 30px;
  22092. line-height: 30px;
  22093. }
  22094. .nameAndrate > div {
  22095. margin-left: 10px;
  22096. color: #000;
  22097. height: 30px;
  22098. }
  22099. .nameAndrate >>> .el-rate__icon {
  22100. font-size: 28px !important;
  22101. }
  22102. .pfBox > div:nth-child(2) {
  22103. background: #f7f6f9;
  22104. width: 400px;
  22105. min-height: 45px;
  22106. border-radius: 10px;
  22107. font-size: 16px;
  22108. display: flex;
  22109. flex-wrap: wrap;
  22110. align-items: center;
  22111. padding: 10px 20px;
  22112. box-sizing: border-box;
  22113. color: #000;
  22114. }
  22115. .bz {
  22116. display: flex;
  22117. flex-direction: row;
  22118. flex-wrap: nowrap;
  22119. align-items: flex-start;
  22120. }
  22121. .bz > div {
  22122. padding: 0 10px;
  22123. }
  22124. .select_box2_title {
  22125. background: #fff;
  22126. border-radius: 5px;
  22127. padding: 15px 10px;
  22128. box-sizing: border-box;
  22129. margin-bottom: 10px;
  22130. display: flex;
  22131. flex-direction: row;
  22132. flex-wrap: nowrap;
  22133. align-items: center;
  22134. }
  22135. .select_box2_title > div:nth-child(2) {
  22136. margin-left: 10px;
  22137. color: #c4c4c4;
  22138. }
  22139. .select_box2_box {
  22140. display: flex;
  22141. height: 500px;
  22142. }
  22143. .select_box2_img {
  22144. width: calc(100% - 310px);
  22145. height: 100%;
  22146. overflow: auto;
  22147. background: #fff;
  22148. border-radius: 5px;
  22149. }
  22150. .select_box2_img img {
  22151. width: 100%;
  22152. }
  22153. .select_box2_answer {
  22154. background: #fff;
  22155. margin-left: 10px;
  22156. border-radius: 5px;
  22157. width: 300px;
  22158. overflow: auto;
  22159. height: 90%;
  22160. display: flex;
  22161. flex-direction: column;
  22162. align-items: flex-start;
  22163. padding-top: 10px;
  22164. box-sizing: border-box;
  22165. position: relative;
  22166. }
  22167. .select_answer_title {
  22168. padding: 0 0 15px 20px;
  22169. color: #c4c4c4;
  22170. }
  22171. .select_box2_answer_box {
  22172. margin: 0 0 10px 20px;
  22173. width: 85%;
  22174. display: flex;
  22175. flex-direction: row;
  22176. flex-wrap: nowrap;
  22177. align-items: center;
  22178. }
  22179. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22180. color: #000;
  22181. }
  22182. .upAnswerCss {
  22183. position: absolute;
  22184. bottom: 15px;
  22185. right: 15px;
  22186. }
  22187. .upAnswerCss >>> .el-button {
  22188. width: 95px;
  22189. height: 35px;
  22190. line-height: 35px;
  22191. padding: 0;
  22192. }
  22193. .rightWidthCss {
  22194. width: 60%;
  22195. display: flex;
  22196. flex-direction: row;
  22197. align-items: flex-start;
  22198. }
  22199. .rightAnswer {
  22200. display: flex;
  22201. flex-direction: row;
  22202. flex-wrap: nowrap;
  22203. align-items: center;
  22204. color: red;
  22205. margin-bottom: 31px;
  22206. }
  22207. .rightAnswerCss {
  22208. display: flex;
  22209. flex-direction: column;
  22210. flex-wrap: nowrap;
  22211. padding-top: 60px;
  22212. }
  22213. .blueCss {
  22214. color: #767de1;
  22215. margin-left: 10px;
  22216. }
  22217. .redCss {
  22218. color: red;
  22219. }
  22220. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22221. color: rgb(0 123 255) !important;
  22222. }
  22223. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22224. color: rgb(0 123 255) !important;
  22225. }
  22226. .zuoyeYulan {
  22227. padding-top: 0;
  22228. font-size: 18px;
  22229. display: flex;
  22230. align-items: flex-end;
  22231. }
  22232. .buttonA {
  22233. margin-left: 10px;
  22234. padding: 0;
  22235. }
  22236. .displayBox {
  22237. margin-bottom: 10px;
  22238. display: block;
  22239. border-bottom: 3px solid #eee;
  22240. display: flex;
  22241. align-items: center;
  22242. }
  22243. .easy_comment {
  22244. width: calc(100% - 90px);
  22245. margin-left: 10px;
  22246. display: flex;
  22247. flex-wrap: wrap;
  22248. }
  22249. .easy_comment > div {
  22250. border: 1px solid #4a4a4a;
  22251. color: #666;
  22252. border-radius: 15px;
  22253. padding: 5px 10px;
  22254. font-size: 16px;
  22255. margin-bottom: 10px;
  22256. margin-right: 5px;
  22257. cursor: pointer;
  22258. }
  22259. .easy_comment div:hover {
  22260. border: 1px solid #f7ba2a;
  22261. color: #c69217;
  22262. }
  22263. .xuan_right_box {
  22264. padding: 10px 0;
  22265. background: #f0f4fa;
  22266. margin: 0 15px 0 25px;
  22267. border-bottom-left-radius: 5px;
  22268. border-bottom-right-radius: 5px;
  22269. width: 91.5%;
  22270. }
  22271. .tool_right_box {
  22272. display: flex;
  22273. align-items: center;
  22274. }
  22275. .tool_right_box + .tool_right_box {
  22276. margin-top: 10px;
  22277. }
  22278. .right_box_xuan {
  22279. border-radius: 5px;
  22280. padding: 5px;
  22281. margin-left: 10px;
  22282. min-width: 85px;
  22283. background: #fff;
  22284. color: #0061ff;
  22285. border: 1px solid #0061ff;
  22286. font-size: 14px;
  22287. }
  22288. .pButton:hover {
  22289. opacity: 1 !important;
  22290. }
  22291. .pButton {
  22292. position: fixed;
  22293. text-align: center;
  22294. cursor: pointer;
  22295. z-index: 999;
  22296. right: 20px;
  22297. top: 110px;
  22298. width: 50px;
  22299. height: 50px;
  22300. display: flex;
  22301. align-items: center;
  22302. justify-content: center;
  22303. border-radius: 5px;
  22304. }
  22305. .pzClass {
  22306. width: calc(100% - 340px);
  22307. }
  22308. .newDialogCss {
  22309. /* position: fixed;
  22310. right: 5%;
  22311. top: 50%;
  22312. width: 340px;
  22313. transform: translateY(-50%);
  22314. height: 60%;
  22315. box-shadow: 0px 0 8px 0px #555555;
  22316. border-radius: 15px;
  22317. z-index: 999; */
  22318. position: fixed;
  22319. right: 20px;
  22320. top: 101px;
  22321. width: 330px;
  22322. height: calc(100% - 80px);
  22323. z-index: 999;
  22324. background: #fff;
  22325. border-top-right-radius: 0px;
  22326. border-bottom-right-radius: 0px;
  22327. overflow: hidden;
  22328. }
  22329. .newDialogCss>.scoreList{
  22330. width:100%;
  22331. height:100%;
  22332. box-sizing:border-box;
  22333. padding:10px 15px;
  22334. overflow:auto;
  22335. padding-bottom:80px;
  22336. }
  22337. .pzTop {
  22338. color: #fff;
  22339. background: #000;
  22340. display: flex;
  22341. flex-direction: row;
  22342. flex-wrap: nowrap;
  22343. align-items: center;
  22344. justify-content: space-between;
  22345. height: 40px;
  22346. border-radius: 15px 15px 0 0;
  22347. user-select: none;
  22348. }
  22349. .pzTop2 .checkbox {
  22350. display: flex;
  22351. align-items: center;
  22352. padding: 5px 10px;
  22353. flex: 0 0 auto;
  22354. font-weight: bold;
  22355. border-bottom: 1px solid #eee;
  22356. justify-content: space-between;
  22357. }
  22358. .checkbox>.cb-tabList{
  22359. display:flex;
  22360. align-items:center;
  22361. }
  22362. .cb-tabList>div{
  22363. margin-right:20px;
  22364. font-weight:400;
  22365. cursor:pointer;
  22366. }
  22367. .cb-tabList>.cb-tabItem{
  22368. color:#1684FC;
  22369. position:relative;
  22370. }
  22371. .cb-tabItem::after{
  22372. content:"";
  22373. width:100%;
  22374. height:2px;
  22375. background:#1684FC;
  22376. position:absolute;
  22377. bottom:-5px;
  22378. left:0
  22379. }
  22380. .pzTop2 .check {
  22381. text-align: center;
  22382. cursor: pointer;
  22383. box-sizing: border-box;
  22384. display: flex;
  22385. }
  22386. .pzTop2 img {
  22387. width: 25px;
  22388. cursor: pointer;
  22389. }
  22390. .pzTop > div:nth-child(1) {
  22391. padding-left: 10px;
  22392. }
  22393. .pzTop > div:nth-child(2) {
  22394. width: 15px;
  22395. height: 15px;
  22396. padding-right: 10px;
  22397. cursor: pointer;
  22398. }
  22399. .pzTop > div:nth-child(2) > img {
  22400. width: 100%;
  22401. height: 100%;
  22402. }
  22403. .pzBox,
  22404. .noPzBox {
  22405. height: calc(100% - 60px);
  22406. /* background: #ededed; */
  22407. background: #fff;
  22408. /* border-radius: 0 0 15px 15px; */
  22409. }
  22410. .noPzBox {
  22411. display: flex;
  22412. flex-direction: column;
  22413. flex-wrap: nowrap;
  22414. justify-content: center;
  22415. align-items: center;
  22416. }
  22417. .pzList {
  22418. background: #f7f7f7;
  22419. width: 90%;
  22420. margin: 0 auto 15px;
  22421. border-radius: 5px;
  22422. }
  22423. .pzNavTop {
  22424. display: flex;
  22425. flex-direction: row;
  22426. flex-wrap: nowrap;
  22427. padding: 10px 10px 0 10px;
  22428. align-items: center;
  22429. }
  22430. .pzDelete {
  22431. cursor: pointer;
  22432. margin-left: auto;
  22433. font-size: 14px;
  22434. color: #afafaf;
  22435. }
  22436. .pzNavTop > div:nth-child(1) {
  22437. background: #3760af;
  22438. width: 35px;
  22439. height: 35px;
  22440. color: #fff;
  22441. text-align: center;
  22442. line-height: 35px;
  22443. border-radius: 50%;
  22444. font-size: 14px;
  22445. }
  22446. .pzNavTop > div:nth-child(2) {
  22447. font-size: 18px;
  22448. color: #959595;
  22449. margin-left: 5px;
  22450. }
  22451. .pzContent {
  22452. padding: 10px;
  22453. word-break: break-word;
  22454. }
  22455. .pzContent audio {
  22456. width: 100%;
  22457. }
  22458. .pzContent audio::-webkit-media-controls-panel {
  22459. background: #fff;
  22460. }
  22461. .pzContent >>> img {
  22462. max-width: 100%;
  22463. }
  22464. .pzListBox {
  22465. padding-top: 15px;
  22466. height: calc(100% - 110px);
  22467. overflow: auto;
  22468. }
  22469. .addPzButton {
  22470. position: relative;
  22471. margin-top: 3px;
  22472. width: 100%;
  22473. }
  22474. .addPzButton .img1 {
  22475. position: absolute;
  22476. top: 50%;
  22477. right: 25px;
  22478. transform: translateY(-50%);
  22479. height: 100%;
  22480. display: flex;
  22481. align-items: center;
  22482. }
  22483. .addPzButton .img1 div {
  22484. display: flex;
  22485. }
  22486. .addPzButton .img1 div img {
  22487. width: 28px;
  22488. margin-left: 10px;
  22489. cursor: pointer;
  22490. }
  22491. .addPzButton .img1 div span {
  22492. font-size: 14px;
  22493. margin: 4px 0 0 3px;
  22494. color: #afafaf;
  22495. }
  22496. .addPz {
  22497. background: #4b79ce;
  22498. width: 100px;
  22499. color: #fff;
  22500. font-size: 12px;
  22501. height: 30px;
  22502. margin: 0 auto;
  22503. text-align: center;
  22504. line-height: 30px;
  22505. border-radius: 10px;
  22506. cursor: pointer;
  22507. }
  22508. .addDialogCss {
  22509. position: fixed;
  22510. width: 600px;
  22511. height: 70%;
  22512. min-height: 450px;
  22513. box-shadow: 0px 0 8px 0px #555555;
  22514. border-radius: 15px;
  22515. z-index: 999;
  22516. left: 50%;
  22517. top: 50%;
  22518. margin: -18% 0 0 -300px;
  22519. }
  22520. .teacherPz {
  22521. display: flex;
  22522. flex-direction: row;
  22523. align-items: center;
  22524. flex-wrap: nowrap;
  22525. }
  22526. .teacherPzImg {
  22527. width: 30px;
  22528. height: 30px;
  22529. }
  22530. .teacherPzImg > img {
  22531. width: 100%;
  22532. height: 100%;
  22533. }
  22534. .addPzBox {
  22535. height: calc(100% - 40px);
  22536. background: #ededed;
  22537. border-bottom-left-radius: 15px;
  22538. border-bottom-right-radius: 15px;
  22539. }
  22540. .pzAudioClass {
  22541. margin: 15px 14px;
  22542. background: #fff;
  22543. height: 100%;
  22544. display: flex;
  22545. justify-content: center;
  22546. align-items: center;
  22547. }
  22548. .pzConText {
  22549. width: 95%;
  22550. height: 100%;
  22551. margin: 10px auto 0;
  22552. border: none;
  22553. background: #fff;
  22554. border-radius: 0px;
  22555. }
  22556. .pzConText >>> .text {
  22557. height: calc(100% - 82px);
  22558. }
  22559. .addTextCss {
  22560. background: #4b79ce;
  22561. width: 80px;
  22562. height: 30px;
  22563. text-align: center;
  22564. color: #fff;
  22565. line-height: 30px;
  22566. border-radius: 10px;
  22567. margin: 10px auto 0;
  22568. cursor: pointer;
  22569. }
  22570. .pzConText:focus-visible {
  22571. border: none !important;
  22572. }
  22573. .maxWidth {
  22574. width: 1000px;
  22575. }
  22576. .noPz {
  22577. width: 150px;
  22578. margin: 0 auto 20%;
  22579. }
  22580. .noPz > img {
  22581. width: 100%;
  22582. height: 100%;
  22583. }
  22584. .timeAndReply {
  22585. display: flex;
  22586. flex-direction: row;
  22587. flex-wrap: nowrap;
  22588. justify-content: space-between;
  22589. align-items: center;
  22590. font-size: 14px;
  22591. box-sizing: border-box;
  22592. padding: 0 10px 10px 0px;
  22593. }
  22594. .timeAndReply .time {
  22595. color: #bfbfbf;
  22596. padding: 0 0 0 10px;
  22597. box-sizing: border-box;
  22598. }
  22599. .timeAndReply > div:last-child {
  22600. cursor: pointer;
  22601. color: #777;
  22602. }
  22603. /* table 样式 */
  22604. .cont >>> table {
  22605. border-top: 1px solid #ccc;
  22606. border-left: 1px solid #ccc;
  22607. }
  22608. .cont >>> table td,
  22609. .cont >>> table th {
  22610. border-bottom: 1px solid #ccc;
  22611. border-right: 1px solid #ccc;
  22612. /* padding: 20px 5px; */
  22613. padding: 5px 10px;
  22614. max-width: 0px;
  22615. height: 30px;
  22616. vertical-align: baseline;
  22617. box-sizing: border-box;
  22618. }
  22619. .cont >>> table th {
  22620. border-bottom: 2px solid #ccc;
  22621. text-align: center;
  22622. }
  22623. /* blockquote 样式 */
  22624. .cont >>> blockquote {
  22625. display: block;
  22626. border-left: 8px solid #d0e5f2;
  22627. padding: 5px 10px;
  22628. margin: 10px 0;
  22629. line-height: 1.4;
  22630. font-size: 100%;
  22631. background-color: #f1f1f1;
  22632. }
  22633. /* code 样式 */
  22634. .cont >>> code {
  22635. display: inline-block;
  22636. /* *display: inline; */
  22637. zoom: 1;
  22638. background-color: #f1f1f1;
  22639. border-radius: 3px;
  22640. padding: 3px 5px;
  22641. margin: 0 3px;
  22642. }
  22643. .cont >>> pre code {
  22644. display: block;
  22645. }
  22646. /* ul ol 样式 */
  22647. .cont >>> ul,
  22648. ol {
  22649. margin: 10px 0 10px 20px;
  22650. }
  22651. .addPzCheck {
  22652. display: flex;
  22653. flex-direction: row;
  22654. flex-wrap: nowrap;
  22655. padding: 10px 15px 0;
  22656. }
  22657. .addPzCheck span {
  22658. cursor: pointer;
  22659. padding-bottom: 5px;
  22660. font-weight: bold;
  22661. }
  22662. .addPzCheck span + span {
  22663. margin-left: 10px;
  22664. }
  22665. .addPzCheck .isChooseActive {
  22666. color: #3e88f4;
  22667. border-bottom: 2px solid #2f80f3;
  22668. }
  22669. /* code 样式 */
  22670. .cont {
  22671. /* -webkit-user-modify: read-write; */
  22672. overflow-wrap: break-word;
  22673. -webkit-line-break: after-white-space;
  22674. word-break: break-word;
  22675. white-space: pre-line;
  22676. }
  22677. .scoreBox,
  22678. .scoreDetailBox {
  22679. display: flex;
  22680. align-items: center;
  22681. justify-content: flex-start;
  22682. margin-top: 20px;
  22683. font-size: 18px;
  22684. width: 100%;
  22685. }
  22686. .scoreBox .t,
  22687. .scoreDetailBox .t {
  22688. margin-right: 10px;
  22689. width: 100px;
  22690. text-align: right;
  22691. }
  22692. .scoreDetailBox {
  22693. align-items: flex-start;
  22694. }
  22695. .scoreDetailBox >>> .el-textarea {
  22696. width: calc(100% - 200px);
  22697. }
  22698. .scoreBox >>> .el-input {
  22699. width: 130px;
  22700. font-size: 38px;
  22701. }
  22702. .scoreBox >>> .el-input__inner {
  22703. height: 60px;
  22704. }
  22705. .answerScore {
  22706. position: absolute;
  22707. top: 10px;
  22708. right: 10px;
  22709. background: #0000008f;
  22710. border-radius: 5px;
  22711. padding: 3px 5px;
  22712. font-size: 14px;
  22713. color: #fff;
  22714. cursor: pointer;
  22715. }
  22716. .open_box .switch_box {
  22717. width: 100%;
  22718. margin: 0 auto;
  22719. display: flex;
  22720. justify-content: space-between;
  22721. }
  22722. .open_box .switch_box + .switch_box {
  22723. margin-top: 10px;
  22724. }
  22725. .deleteImg,.deleteImg1 {
  22726. width: 25px !important;
  22727. height: 25px !important;
  22728. cursor: pointer;
  22729. position: absolute;
  22730. top: 10px;
  22731. right: 10px;
  22732. }
  22733. .deleteImg2 {
  22734. width: 23px !important;
  22735. height: 23px !important;
  22736. top: 5px;
  22737. right: 5px;
  22738. }
  22739. .deleteImg1{
  22740. width: 23px !important;
  22741. height: 23px !important;
  22742. top: 5px !important;
  22743. right: 30px !important;
  22744. }
  22745. .rightW {
  22746. right: 40px;
  22747. }
  22748. .drawPBox {
  22749. display: flex;
  22750. flex-direction: column;
  22751. position: relative;
  22752. }
  22753. .drawPBox span {
  22754. font-size: 18px;
  22755. color: #606266;
  22756. padding-bottom: 10px;
  22757. margin: 10px 0;
  22758. border-bottom: 1px solid #eaeaea;
  22759. }
  22760. .drawPBox img {
  22761. width: 500px;
  22762. height: 300px;
  22763. object-fit: contain;
  22764. cursor: pointer;
  22765. margin: 0 auto;
  22766. }
  22767. .sentenBox {
  22768. background: #fff;
  22769. height: 450px;
  22770. overflow: auto;
  22771. background-image: url("../assets/icon/conSentences/stuBg.png");
  22772. background-position: 102%;
  22773. background-repeat: no-repeat;
  22774. background-size: 60%;
  22775. }
  22776. .addSen {
  22777. background: #409efe;
  22778. width: 90px;
  22779. color: #fff;
  22780. height: 35px;
  22781. text-align: center;
  22782. line-height: 35px;
  22783. border-radius: 5px;
  22784. float: right;
  22785. margin: 10px 20px 0 0;
  22786. cursor: pointer;
  22787. }
  22788. .sentenTop {
  22789. display: flex;
  22790. flex-direction: row;
  22791. flex-wrap: nowrap;
  22792. align-items: center;
  22793. padding: 55px 0 0 20px;
  22794. box-sizing: border-box;
  22795. }
  22796. .sentenTop > div:nth-child(2) {
  22797. width: 300px;
  22798. margin: 0 15px;
  22799. }
  22800. .sentenTop > div:nth-child(3) {
  22801. background: #409efe;
  22802. color: #fff;
  22803. width: 65px;
  22804. height: 35px;
  22805. text-align: center;
  22806. line-height: 35px;
  22807. border-radius: 5px;
  22808. cursor: pointer;
  22809. }
  22810. .cardList,
  22811. .cardList1 {
  22812. padding: 10px 0 10px 0;
  22813. display: flex;
  22814. flex-direction: row;
  22815. flex-wrap: wrap;
  22816. align-items: center;
  22817. box-sizing: border-box;
  22818. border-bottom: 1px solid #f4f4f4;
  22819. width: 98%;
  22820. margin: 0 auto;
  22821. min-width: 60%;
  22822. max-width: 85%;
  22823. }
  22824. .cardList1 {
  22825. padding: 10px 0 10px 10px !important;
  22826. margin: 0 !important;
  22827. }
  22828. .cardBox {
  22829. display: flex;
  22830. flex-direction: row;
  22831. flex-wrap: wrap;
  22832. align-items: center;
  22833. align-content: center;
  22834. }
  22835. .cardBox > div {
  22836. margin-bottom: 10px;
  22837. }
  22838. .isCard,
  22839. .isChooseCard,
  22840. .noCard,
  22841. .isCard1 {
  22842. width: 130px;
  22843. height: 60px;
  22844. text-align: center;
  22845. line-height: 60px;
  22846. font-size: 20px;
  22847. cursor: pointer;
  22848. background-image: url("../assets/icon/conSentences/titleBorder.png");
  22849. background-size: cover;
  22850. transition: all 2s;
  22851. margin-right: 20px;
  22852. }
  22853. .isCard > div,
  22854. .noCard > div,
  22855. .isCard1 > div {
  22856. white-space: nowrap;
  22857. overflow: hidden;
  22858. text-overflow: ellipsis;
  22859. width: 75%;
  22860. margin: 0 auto;
  22861. }
  22862. .noCard {
  22863. background-image: none;
  22864. }
  22865. .isCard1 {
  22866. background-image: url("../assets/icon/conSentences/answerBorder.png");
  22867. }
  22868. .isChooseCard {
  22869. background-image: none;
  22870. border: 1px dashed #b9b9b9;
  22871. border-radius: 10px;
  22872. }
  22873. .card {
  22874. width: 130px;
  22875. height: 60px;
  22876. }
  22877. .card > img {
  22878. width: 100%;
  22879. height: 100%;
  22880. }
  22881. .rightCardBox {
  22882. margin: 10px 0 0 10px;
  22883. }
  22884. .rightCardBox > div:nth-child(1) {
  22885. margin-bottom: 10px;
  22886. }
  22887. .cardCss {
  22888. display: flex;
  22889. flex-direction: column;
  22890. flex-wrap: nowrap;
  22891. align-items: center;
  22892. border-bottom: 3px solid #b4c3d3;
  22893. padding: 0 0 5px 0;
  22894. margin-right: 10px;
  22895. }
  22896. .cardCss > div:nth-child(2) {
  22897. background: #5b7b9d;
  22898. color: #fff;
  22899. width: 20px;
  22900. height: 20px;
  22901. border-radius: 50%;
  22902. text-align: center;
  22903. line-height: 20px;
  22904. }
  22905. .isWrong {
  22906. display: flex;
  22907. flex-direction: row;
  22908. flex-wrap: nowrap;
  22909. align-content: center;
  22910. align-items: center;
  22911. }
  22912. .answerRight {
  22913. width: 25%;
  22914. }
  22915. .isTj {
  22916. display: flex;
  22917. flex-direction: row;
  22918. flex-wrap: nowrap;
  22919. align-items: center;
  22920. }
  22921. .isTj > div:nth-child(2) {
  22922. color: #727070;
  22923. margin-left: 10px;
  22924. }
  22925. .isTjImg {
  22926. width: 30px;
  22927. height: 30px;
  22928. }
  22929. .isTjImg > img {
  22930. width: 100%;
  22931. height: 100%;
  22932. }
  22933. .cardAnswerBox {
  22934. font-size: 18px;
  22935. width: 97%;
  22936. border: 5px;
  22937. padding: 0;
  22938. border-radius: 5px;
  22939. margin: 10px auto;
  22940. word-break: break-word;
  22941. }
  22942. .w_name {
  22943. margin-bottom: 10px;
  22944. }
  22945. .w_name span {
  22946. font-size: 16px;
  22947. }
  22948. .w_teachert {
  22949. width: 50px !important;
  22950. position: absolute;
  22951. height: auto !important;
  22952. z-index: 10;
  22953. right: 25px;
  22954. top: -25px;
  22955. }
  22956. .group_workBox {
  22957. }
  22958. .group_workBox + .group_workBox {
  22959. margin-top: 20px;
  22960. }
  22961. .group_box {
  22962. padding-bottom: 20px;
  22963. border-bottom: 2px solid #f0f0f0;
  22964. margin-top: 10px;
  22965. }
  22966. .group_title {
  22967. display: flex;
  22968. align-items: center;
  22969. justify-content: space-between;
  22970. width: 95%;
  22971. }
  22972. .group_name {
  22973. background-image: url(../assets/icon/groupN.png);
  22974. width: 220px;
  22975. background-size: 100% 100%;
  22976. height: 67px;
  22977. padding: 0 20px 0 43px;
  22978. box-sizing: border-box;
  22979. line-height: 63px;
  22980. color: #fff;
  22981. overflow: hidden;
  22982. white-space: nowrap;
  22983. text-overflow: ellipsis;
  22984. }
  22985. .group_work {
  22986. width: 100%;
  22987. padding: 0 10px;
  22988. box-sizing: border-box;
  22989. display: flex;
  22990. flex-wrap: wrap;
  22991. }
  22992. .g_d_box {
  22993. display: flex;
  22994. flex-flow: wrap;
  22995. justify-content: space-around;
  22996. }
  22997. .g_d_box .isChair {
  22998. background-image: url(../assets/avatar.png) !important;
  22999. }
  23000. .g_d_group {
  23001. width: 500px;
  23002. margin-bottom: 80px;
  23003. }
  23004. .g_d_group_chair {
  23005. display: flex;
  23006. align-items: center;
  23007. justify-content: center;
  23008. }
  23009. .g_d_group_chair > div + div {
  23010. margin-left: 30px;
  23011. }
  23012. .g_d_group_chair > div,
  23013. .g_d_group_chair2 > div {
  23014. display: flex;
  23015. flex-direction: column;
  23016. align-items: center;
  23017. }
  23018. .g_d_group_chair > div > span:nth-child(1),
  23019. .g_d_group_chair2 > div > span:nth-child(1) {
  23020. background-image: url(../assets/icon/chair.png);
  23021. width: 50px;
  23022. height: 50px;
  23023. display: block;
  23024. background-size: 100% 100%;
  23025. }
  23026. .g_d_group_tableBox {
  23027. display: flex;
  23028. align-items: center;
  23029. justify-content: center;
  23030. }
  23031. .g_d_group_chair2 {
  23032. display: flex;
  23033. flex-direction: column;
  23034. align-items: center;
  23035. justify-content: center;
  23036. }
  23037. .g_d_group_chair2 > div + div {
  23038. margin-top: 10px;
  23039. }
  23040. .g_d_group_table {
  23041. background-image: url(../assets/icon/groupBg.png);
  23042. width: 354px;
  23043. height: 196px;
  23044. background-size: 100% 100%;
  23045. display: flex;
  23046. align-items: center;
  23047. justify-content: center;
  23048. flex-direction: column;
  23049. color: #fff;
  23050. }
  23051. .g_d_group_table > div:nth-child(1) {
  23052. font-size: 24px;
  23053. margin-bottom: 5px;
  23054. }
  23055. .g_d_group_table > div:nth-child(2) div {
  23056. cursor: pointer;
  23057. background: #2e77bf;
  23058. padding: 4px 10px;
  23059. border-radius: 5px;
  23060. }
  23061. .groupBox {
  23062. }
  23063. .groupContent + .groupContent {
  23064. margin-top: 30px;
  23065. }
  23066. .groupTitle {
  23067. font-size: 24px;
  23068. color: rgb(80, 80, 80);
  23069. margin-bottom: 20px;
  23070. }
  23071. .groupName {
  23072. display: flex;
  23073. align-items: center;
  23074. }
  23075. .groupn {
  23076. font-size: 15px;
  23077. margin-right: 10px;
  23078. }
  23079. .groupName + .groupName {
  23080. margin-top: 15px;
  23081. }
  23082. .groupBtn {
  23083. margin-left: 10px;
  23084. }
  23085. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23086. text-align: left;
  23087. }
  23088. .g_d_btnBox {
  23089. display: flex;
  23090. justify-content: flex-end;
  23091. align-items: center;
  23092. margin-bottom: 20px;
  23093. }
  23094. .updateChair {
  23095. position: relative;
  23096. }
  23097. .updateChairBtn {
  23098. position: absolute;
  23099. width: 50px;
  23100. height: 50px;
  23101. overflow: hidden;
  23102. /* display: flex; */
  23103. align-items: center;
  23104. justify-content: center;
  23105. background: #00000087;
  23106. color: #fff;
  23107. border-radius: 50px;
  23108. display: none;
  23109. cursor: pointer;
  23110. }
  23111. .updateChair:hover .updateChairBtn {
  23112. display: flex;
  23113. }
  23114. .group_staic_box {
  23115. display: flex;
  23116. padding: 30px 40px 10px;
  23117. flex-wrap: wrap;
  23118. }
  23119. .group_staic {
  23120. /* width: 50%; */
  23121. margin-bottom: 20px;
  23122. display: flex;
  23123. align-items: center;
  23124. }
  23125. .group_staic span:nth-child(1) {
  23126. width: 150px;
  23127. text-align: right;
  23128. margin-right: 15px;
  23129. }
  23130. .group_staic span:nth-child(2) {
  23131. background: rgb(0 123 255);
  23132. color: #fff;
  23133. border-radius: 5px;
  23134. padding: 5px;
  23135. }
  23136. .codeFileBox {
  23137. height: 300px;
  23138. background: #fff;
  23139. display: flex;
  23140. align-items: center;
  23141. justify-content: center;
  23142. }
  23143. .codeFileBox img {
  23144. width: 200px;
  23145. margin: 0;
  23146. height: auto;
  23147. }
  23148. .codeFileBox div {
  23149. background: rgb(80, 142, 226);
  23150. color: #fff;
  23151. padding: 10px 20px;
  23152. border-radius: 25px;
  23153. cursor: pointer;
  23154. margin-left: 15px;
  23155. }
  23156. .radioBox {
  23157. display: flex;
  23158. flex-direction: column;
  23159. flex-wrap: nowrap;
  23160. align-items: flex-start;
  23161. }
  23162. .radioBox > div {
  23163. margin: 10px 0 0 10px;
  23164. }
  23165. /* .radioBox >>> .el-radio__input,
  23166. .radioBox >>> .el-checkbox__inner {
  23167. margin-left: 10px;
  23168. } */
  23169. .radioBox >>> .el-radio__label,
  23170. .radioBox >>> .el-checkbox__label {
  23171. display: flex;
  23172. align-items: center;
  23173. width: 100%;
  23174. }
  23175. .radioBox >>> .el-radio__label > span {
  23176. width: 100%;
  23177. display: -webkit-box;
  23178. overflow: hidden;
  23179. white-space: normal !important;
  23180. text-overflow: ellipsis;
  23181. word-wrap: break-word;
  23182. }
  23183. .inImg {
  23184. width: 100px;
  23185. cursor: pointer;
  23186. }
  23187. .inImg > img {
  23188. width: 100%;
  23189. height: 100%;
  23190. object-fit: cover;
  23191. }
  23192. .timuImgBox {
  23193. margin: 10px 0;
  23194. display: flex;
  23195. flex-direction: column;
  23196. flex-wrap: wrap;
  23197. align-items: flex-start;
  23198. }
  23199. .timuImg {
  23200. width: 150px;
  23201. margin: 5px 0;
  23202. cursor: pointer;
  23203. }
  23204. .timuImg > img {
  23205. width: 100%;
  23206. height: 100%;
  23207. object-fit: cover;
  23208. }
  23209. .worksTop {
  23210. display: flex;
  23211. flex-direction: row;
  23212. align-items: flex-end;
  23213. }
  23214. .worksTitle{
  23215. display: flex;
  23216. flex-direction: row;
  23217. flex-wrap: nowrap;
  23218. align-items: center;
  23219. }
  23220. .worksTitle::before,.worksTop::before{
  23221. content: '';
  23222. display: block;
  23223. width: 3px;
  23224. height: 20px;
  23225. background: #0061FF;
  23226. border-radius: 3px;
  23227. margin: 0 5px 0 0;
  23228. }
  23229. .corOpen {
  23230. margin: 0 0 0 10px;
  23231. font-size: 14px;
  23232. cursor: pointer;
  23233. color: #505050;
  23234. }
  23235. .corOpen:hover {
  23236. color: #499eef;
  23237. }
  23238. .navCorOpenBox {
  23239. display: flex;
  23240. flex-direction: row;
  23241. align-items: center;
  23242. justify-content: space-between;
  23243. height: 55px;
  23244. background: #ffffff;
  23245. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23246. border-radius: 8px 8px 0px 0px;
  23247. z-index: 9;
  23248. position: relative;
  23249. }
  23250. .navCorOpen {
  23251. padding-right: 15px;
  23252. cursor: pointer;
  23253. width: 45px;
  23254. display: flex;
  23255. }
  23256. .navCorOpen > img {
  23257. width: 100%;
  23258. height: 100%;
  23259. }
  23260. .mlImg {
  23261. width: 40px !important;
  23262. min-width: 40px;
  23263. cursor: pointer;
  23264. transform: rotate(180deg);
  23265. }
  23266. .mlImg > img {
  23267. width: 100%;
  23268. height: 100%;
  23269. }
  23270. .navLeftCss {
  23271. width: 100% !important;
  23272. left: 0 !important;
  23273. }
  23274. .isContentCss {
  23275. width: 100% !important;
  23276. }
  23277. .isAllWidth {
  23278. width: 100% !important;
  23279. }
  23280. .group_switch {
  23281. margin-right: 10px;
  23282. height: 30px;
  23283. display: flex;
  23284. align-items: center;
  23285. }
  23286. .group_switch > span {
  23287. margin-right: 5px;
  23288. }
  23289. .fileC_box {
  23290. padding-top: 15px;
  23291. }
  23292. .fileC_box > .fileC_title {
  23293. padding: 10px 5px 14px 10px;
  23294. border-top: 1px solid #cad1dc;
  23295. font-size: 14px;
  23296. font-weight: 400;
  23297. color: #cad1dc;
  23298. width: calc(100% - 20px);
  23299. margin: 0 auto;
  23300. box-sizing: border-box;
  23301. }
  23302. .pl_select_box {
  23303. height: 40px;
  23304. line-height: 40px;
  23305. width: 100%;
  23306. cursor: pointer;
  23307. padding: 0 20px;
  23308. box-sizing: border-box;
  23309. border-radius: 5px;
  23310. border: 1px solid #d6d6d6;
  23311. white-space: nowrap;
  23312. overflow: hidden;
  23313. text-overflow: ellipsis;
  23314. background: #fff;
  23315. text-align: left;
  23316. }
  23317. .newButton {
  23318. width: 102px;
  23319. height: 36px;
  23320. background: #e7ebf1;
  23321. border-radius: 4px;
  23322. color: #0e1e33;
  23323. font-weight: 400;
  23324. font-size: 14px;
  23325. border: none;
  23326. float: right;
  23327. margin-left: 10px;
  23328. }
  23329. .el-table >>> .even_row {
  23330. background-color: #f0f4fa;
  23331. }
  23332. .stageBoxCss,
  23333. .stageBoxIsCss {
  23334. display: flex;
  23335. flex-direction: row;
  23336. flex-wrap: nowrap;
  23337. align-items: center;
  23338. height: 50px;
  23339. border-bottom: 1px solid #e2f5fc;
  23340. cursor: pointer;
  23341. width: 100%;
  23342. }
  23343. .stageBoxIsCss {
  23344. background: #0061ff;
  23345. color: #fff;
  23346. border-radius: 8px;
  23347. }
  23348. .stageItemTitle {
  23349. display: flex;
  23350. flex-direction: row;
  23351. flex-wrap: nowrap;
  23352. align-items: center;
  23353. margin-left: 15px;
  23354. width: calc(100% - 50px);
  23355. }
  23356. .stageNav{
  23357. /* font-weight: bold; */
  23358. }
  23359. .stageItemTitle > div:first-child {
  23360. min-width: 55px;
  23361. }
  23362. .stageItemTitle > div:last-child {
  23363. max-width: 242px;
  23364. white-space: nowrap;
  23365. overflow: hidden;
  23366. text-overflow: ellipsis;
  23367. word-break: break-word;
  23368. width: calc(100% - 55px);
  23369. }
  23370. .closeTri,
  23371. .closeTri1 {
  23372. min-width: 15px;
  23373. width: 15px;
  23374. height: 15px;
  23375. transition: all .5s;
  23376. }
  23377. .closeTri1 {
  23378. padding-left: 10px;
  23379. cursor: pointer;
  23380. }
  23381. .closeTri > img,
  23382. .closeTri1 > img {
  23383. width: 100%;
  23384. height: 100%;
  23385. /* transition: all .5s; */
  23386. }
  23387. .noToolBlue {
  23388. min-width: 10px;
  23389. width: 10px;
  23390. height: 10px;
  23391. background: #0061ff;
  23392. border-radius: 50%;
  23393. margin-left: 13px;
  23394. }
  23395. .stageChild,
  23396. .toolChild {
  23397. height: 0;
  23398. overflow: hidden;
  23399. transition: all 0.5s;
  23400. }
  23401. .toolChild {
  23402. /* margin: 0 0 0 17px;
  23403. padding: 0 0 0 20px;
  23404. border-left: 1px solid #d7d7d7; */
  23405. }
  23406. .toolChild > div + div{
  23407. margin-top:5px;
  23408. }
  23409. .gjCss {
  23410. display: flex;
  23411. flex-direction: row;
  23412. flex-wrap: nowrap;
  23413. align-items: center;
  23414. padding: 10px 0 10px 40px;
  23415. box-sizing: border-box;
  23416. font-size: 14px;
  23417. cursor: pointer;
  23418. border-radius:5px;
  23419. }
  23420. .toolChild > div {
  23421. position: relative;
  23422. width:100%;
  23423. }
  23424. .toolChild > div::before {
  23425. /* content: "";
  23426. width: 15px;
  23427. height: 1px;
  23428. background: #cad1dc;
  23429. position: absolute;
  23430. top: 24px;
  23431. left: -20px;
  23432. display: block; */
  23433. }
  23434. .isGjCss {
  23435. /* color: #0061ff; */
  23436. color:#fff;
  23437. background: rgb(55, 129, 252);
  23438. /* background-color: #e0eafb !important;
  23439. color: #0061ff !important; */
  23440. }
  23441. .navItem {
  23442. background: #ffffff;
  23443. border-radius: 4px;
  23444. width: 100%;
  23445. margin: 10px auto;
  23446. position: relative;
  23447. height: 40px;
  23448. display: flex;
  23449. flex-direction: row;
  23450. flex-wrap: nowrap;
  23451. align-items: center;
  23452. }
  23453. .navItemList {
  23454. display: flex;
  23455. flex-direction: row;
  23456. flex-wrap: nowrap;
  23457. align-items: center;
  23458. padding: 0 13px;
  23459. cursor: pointer;
  23460. width: calc(100% - 60px);
  23461. height: 100%;
  23462. }
  23463. .navItemList > div:first-child {
  23464. min-width: 60px;
  23465. }
  23466. .navItemList > div:last-child {
  23467. width: calc(100% - 80px);
  23468. white-space: nowrap;
  23469. overflow: hidden;
  23470. text-overflow: ellipsis;
  23471. word-break: break-word;
  23472. }
  23473. /* .isItemList > div {
  23474. color: #fff !important;
  23475. } */
  23476. .tool_work_box {
  23477. width: 100%;
  23478. padding: 0 37px 0;
  23479. box-sizing: border-box;
  23480. }
  23481. .tool_box {
  23482. width: 100%;
  23483. padding: 0 0 0 20px;
  23484. }
  23485. .tool_type_box {
  23486. display: flex;
  23487. flex-direction: row;
  23488. align-items: baseline;
  23489. flex-wrap: nowrap;
  23490. justify-content: flex-start;
  23491. position: relative;
  23492. }
  23493. .toolSort {
  23494. display: flex;
  23495. flex-direction: row;
  23496. flex-wrap: wrap;
  23497. justify-content: flex-start;
  23498. align-items: flex-start;
  23499. padding: 0 0 15px 0;
  23500. }
  23501. .toolSort > div {
  23502. margin: 0 10px 0 0;
  23503. width: 135px;
  23504. box-sizing: border-box;
  23505. border: 2px solid transparent;
  23506. }
  23507. .tools {
  23508. width: 100%;
  23509. display: flex;
  23510. flex-direction: column;
  23511. flex-wrap: nowrap;
  23512. align-items: flex-start;
  23513. }
  23514. .whiteBIcon {
  23515. width: fit-content;
  23516. cursor: pointer;
  23517. display: flex;
  23518. flex-direction: column;
  23519. flex-wrap: nowrap;
  23520. align-items: center;
  23521. font-size: 14px;
  23522. }
  23523. .tool:hover {
  23524. border: 2px solid #a5c7ff;
  23525. border-radius: 5px;
  23526. }
  23527. .whiteBIcon > img {
  23528. width: 65px;
  23529. height: 100%;
  23530. }
  23531. .whiteBIcon > img {
  23532. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  23533. border-radius: 15px;
  23534. }
  23535. .check {
  23536. /* width: 20px;
  23537. height: 20px; */
  23538. cursor: pointer;
  23539. margin: 10px 0;
  23540. position: absolute;
  23541. right: 2px;
  23542. top: -5px;
  23543. }
  23544. .noChoose,
  23545. .isChoose {
  23546. width: 15px;
  23547. height: 15px;
  23548. border-radius: 50%;
  23549. border: 1px solid #adadad;
  23550. }
  23551. .isChoose {
  23552. border: 4px solid #0363ff !important;
  23553. width: 10px;
  23554. height: 10px;
  23555. }
  23556. .isToolChoose {
  23557. border: 2px solid #5394ff !important;
  23558. border-radius: 5px;
  23559. box-shadow: 0 0 6px 0px #5394ff;
  23560. }
  23561. .checkDiv {
  23562. display: flex;
  23563. align-items: center;
  23564. }
  23565. .checkDiv span {
  23566. margin-left: 5px;
  23567. color: #858585;
  23568. }
  23569. .check img {
  23570. width: 20px;
  23571. height: 20px;
  23572. }
  23573. .lockTaskIcon {
  23574. width: 20px;
  23575. height: 20px;
  23576. position: absolute;
  23577. right: 10px;
  23578. top: 5px;
  23579. }
  23580. .lockTaskIcon > img {
  23581. width: 100%;
  23582. height: 100%;
  23583. }
  23584. .pick_box {
  23585. display: flex;
  23586. align-items: flex-start;
  23587. flex-wrap: wrap;
  23588. }
  23589. .selectBox {
  23590. width: 110px;
  23591. margin-left: 10px;
  23592. margin: 0 10px 0 auto;
  23593. }
  23594. .selectBox >>> .el-input__inner {
  23595. height: 30px;
  23596. line-height: 30px;
  23597. }
  23598. .selectBox >>> .el-input__icon {
  23599. line-height: 30px;
  23600. }
  23601. .sentenceTitle {
  23602. display: flex;
  23603. flex-direction: row;
  23604. flex-wrap: nowrap;
  23605. align-items: center;
  23606. }
  23607. .sentenceTitle::before {
  23608. content: attr(index);
  23609. background: #3681fc;
  23610. border-radius: 50%;
  23611. color: #fff;
  23612. width: 25px;
  23613. height: 25px;
  23614. min-width: 25px;
  23615. min-height: 25px;
  23616. text-align: center;
  23617. line-height: 25px;
  23618. margin-right: 5px;
  23619. }
  23620. .hfBox {
  23621. padding: 10px;
  23622. box-sizing: border-box;
  23623. }
  23624. .whoReplyWho {
  23625. display: flex;
  23626. flex-direction: row;
  23627. flex-wrap: nowrap;
  23628. align-items: baseline;
  23629. justify-content: flex-start;
  23630. }
  23631. .hfBottom {
  23632. display: flex;
  23633. flex-direction: row;
  23634. flex-wrap: nowrap;
  23635. align-items: center;
  23636. justify-content: space-between;
  23637. font-size: 14px;
  23638. }
  23639. .deleteHfItem {
  23640. cursor: pointer;
  23641. width: 20px;
  23642. height: 20px;
  23643. }
  23644. .deleteHfItem > img {
  23645. width: 100%;
  23646. height: 100%;
  23647. }
  23648. .whoReplyWho > .hfImg {
  23649. width: 12px;
  23650. height: 12px;
  23651. margin: 0 5px;
  23652. }
  23653. .whoReplyWho > .hfImg > img {
  23654. width: 100%;
  23655. height: 100%;
  23656. }
  23657. .hfContent {
  23658. padding-top: 10px;
  23659. box-sizing: border-box;
  23660. display: -webkit-box;
  23661. overflow: hidden;
  23662. white-space: normal !important;
  23663. text-overflow: ellipsis;
  23664. word-wrap: break-word;
  23665. -webkit-box-orient: vertical;
  23666. }
  23667. .hfTime {
  23668. text-align: left;
  23669. box-sizing: border-box;
  23670. padding: 10px 0 10px 0px;
  23671. color: #bfbfbf;
  23672. font-size: 14px;
  23673. }
  23674. .btnAllNT {
  23675. position: fixed;
  23676. bottom: 100px;
  23677. right: 40px;
  23678. z-index: 999;
  23679. display: flex;
  23680. flex-direction: row;
  23681. }
  23682. .btnAllNT > img {
  23683. cursor: pointer;
  23684. width: 80px;
  23685. }
  23686. .toolMask {
  23687. position: fixed;
  23688. width: 100%;
  23689. height: 100%;
  23690. background: #3f3c3c;
  23691. opacity: 0.5;
  23692. top: 0;
  23693. left: 0;
  23694. z-index: 999;
  23695. }
  23696. .addToolCss {
  23697. position: fixed;
  23698. z-index: 999;
  23699. background: #fff;
  23700. right: 5%;
  23701. bottom: 18%;
  23702. min-width: 1035px;
  23703. min-height: 300px;
  23704. border-radius: 10px;
  23705. box-shadow: 0 0 8px 1px #b2b2b2;
  23706. }
  23707. .toolTop {
  23708. display: flex;
  23709. flex-direction: row;
  23710. flex-wrap: nowrap;
  23711. justify-content: space-between;
  23712. align-items: center;
  23713. padding: 20px;
  23714. }
  23715. .toolTop > div:nth-child(2) {
  23716. width: 15px;
  23717. height: 15px;
  23718. padding-right: 10px;
  23719. cursor: pointer;
  23720. }
  23721. .toolTop > div:nth-child(2) > img {
  23722. width: 100%;
  23723. height: 100%;
  23724. }
  23725. .fullStyle>>>.el-dialog__body {
  23726. height: calc(100% - 125px) !important;
  23727. box-sizing: border-box;
  23728. padding: 30px 0 !important;
  23729. background: #fff !important;
  23730. }
  23731. .fullStyle>>>.el-dialog {
  23732. width: 100% !important;
  23733. max-width: 100% !important;
  23734. height: 100% !important;
  23735. margin: 0 !important;
  23736. }
  23737. .fullStyle {
  23738. width: 100% !important;
  23739. max-width: 100% !important;
  23740. height: 100% !important;
  23741. margin: 0 auto !important;
  23742. }
  23743. .fullStyle>>>.el-dialog__footer{
  23744. background: #fff !important;
  23745. }
  23746. .engUpBox {
  23747. width: 100%;
  23748. height: 100%;
  23749. }
  23750. .engTitle,
  23751. .engText {
  23752. display: flex;
  23753. flex-direction: row;
  23754. flex-wrap: nowrap;
  23755. align-items: flex-start;
  23756. padding: 0 20px 20px 20px;
  23757. box-sizing: border-box;
  23758. }
  23759. .engTitle > .div:first-child,
  23760. .engText > div:first-child {
  23761. min-width: 75px;
  23762. }
  23763. .correctBox{
  23764. width: 100%;
  23765. display: flex;
  23766. flex-direction: row;
  23767. flex-wrap: nowrap;
  23768. align-items: flex-start;
  23769. }
  23770. .oldBox{
  23771. width: 50%;
  23772. height: 100%;
  23773. display: flex;
  23774. flex-direction: column;
  23775. flex-wrap: nowrap;
  23776. align-items: center;
  23777. border-top: 1px solid #d9d9d9;
  23778. border-left: 1px solid #d9d9d9;
  23779. border-right: 1px solid #d9d9d9;
  23780. }
  23781. .oldBox>div:first-child{
  23782. width: 100%;
  23783. text-align: center;
  23784. background: #d9d9d9;
  23785. height: 35px;
  23786. line-height: 35px;
  23787. font-weight: bold;
  23788. }
  23789. .oldText{
  23790. width: 100%;
  23791. height: calc(100% - 35px);
  23792. overflow: auto;
  23793. margin: 10px 0;
  23794. display: flex;
  23795. flex-direction: column;
  23796. flex-wrap: nowrap;
  23797. align-content: center;
  23798. align-items: center;
  23799. }
  23800. .detailBox{
  23801. width: 50%;
  23802. padding: 10px;
  23803. background: #f6f6f6;
  23804. border-radius: 5px;
  23805. }
  23806. .oldDetail,.oldDetail1{
  23807. padding-bottom: 30px;
  23808. }
  23809. .oldImg{
  23810. width:30px;
  23811. height: 30px;
  23812. }
  23813. .oldImg>img{
  23814. width: 100%;
  23815. height: 100%;
  23816. }
  23817. .allName{
  23818. min-width: 200px;
  23819. white-space: nowrap;
  23820. overflow: hidden;
  23821. text-overflow: ellipsis;
  23822. word-break: break-word;
  23823. cursor: pointer;
  23824. text-align: center;
  23825. border: 1px solid #bcc2cc;
  23826. box-sizing: border-box;
  23827. }
  23828. .engUpTop{
  23829. max-height: 300px;
  23830. overflow: auto;
  23831. }
  23832. .isUpdateToolDetailClass{
  23833. padding: 0 !important;
  23834. }
  23835. .isUpdateToolDetailClass textarea{
  23836. padding:12px;
  23837. font-size: 16px;
  23838. min-height:100%;
  23839. width: 100%;
  23840. box-sizing:border-box;
  23841. outline: none;
  23842. border:none;
  23843. line-height: 30px;
  23844. resize: none;
  23845. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  23846. color: #838383;
  23847. }
  23848. .show_taskD {
  23849. min-width: fit-content;
  23850. margin-left: 10px;
  23851. display: flex;
  23852. align-items: center;
  23853. font-size: 14px;
  23854. cursor: pointer;
  23855. color: #717c8d;
  23856. }
  23857. .show_taskD > img {
  23858. width: 15px;
  23859. margin-right: 5px;
  23860. transition: 0.2s all;
  23861. transform: rotate(-90deg);
  23862. }
  23863. .show_taskD.show > img {
  23864. transform: rotate(0deg);
  23865. }
  23866. .correctCss{
  23867. position: absolute;
  23868. bottom: -70px;
  23869. background: #409eff;
  23870. color: #fff;
  23871. }
  23872. </style>