studyStudent.vue 813 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <!-- <div class="btnAllNT">
  14. <img
  15. v-if="
  16. courseDetail.userid == userid ||
  17. (courseDetail.course_teacher &&
  18. courseDetail.course_teacher.indexOf(userid) != -1)
  19. "
  20. src="../../assets/icon/learn/addTool.png"
  21. @click="openToolAll"
  22. style="position: relative"
  23. />
  24. <img
  25. src="../../assets/icon/learn/last.png"
  26. @click="nextOrpreSteps(0)"
  27. />
  28. <img
  29. src="../../assets/icon/learn/next.png"
  30. @click="nextOrpreSteps(1)"
  31. />
  32. <img
  33. src="../../assets/icon/learn/return.png"
  34. @click.stop="
  35. goTo(
  36. '/courseDetail?userid=' +
  37. userid +
  38. '&oid=' +
  39. oid +
  40. '&org=' +
  41. org +
  42. '&cid=' +
  43. classId +
  44. '&courseId=' +
  45. id +
  46. '&tType=' +
  47. tType +
  48. '&screenType=' +
  49. screenType
  50. )
  51. "
  52. />
  53. </div> -->
  54. <div
  55. class="pButton"
  56. style="left: 0; top: 140px"
  57. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  58. @click="setContent2(true)"
  59. >
  60. <!-- 批 , getCourseDetail()-->
  61. <img
  62. src="../../assets/icon/newIcons/isRight.png"
  63. style="width: 45px"
  64. alt=""
  65. />
  66. </div>
  67. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  68. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  69. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  70. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  71. <div
  72. style="
  73. max-width: calc(100% - 40px);
  74. width: auto;
  75. white-space: nowrap;
  76. overflow: hidden;
  77. text-overflow: ellipsis;
  78. word-break: break-word;
  79. display: block;
  80. "
  81. >
  82. <el-tooltip
  83. effect="light"
  84. :content="courseDetail.title"
  85. placement="top"
  86. >
  87. <div class="ctitle">
  88. {{ courseDetail.title }}
  89. </div>
  90. </el-tooltip>
  91. </div>
  92. <el-tooltip effect="light" content="收缩" placement="top">
  93. <div class="mlImg" @click="setContent2(false)">
  94. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  95. </div>
  96. </el-tooltip>
  97. </div>
  98. <div
  99. class="inviteBox"
  100. v-if="tcid && inviteCode"
  101. style="padding: 0 0 8px 0"
  102. >
  103. <div>
  104. <span>随机码:{{ inviteCode }}</span>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="cru_selectBox">
  109. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  110. <div class="stageChild" :class="{ navActive: item.isOpen }">
  111. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  112. <div
  113. class="navItem"
  114. :class="{
  115. openTaskActive:
  116. navIndex == taskCount &&
  117. nav.id == navId &&
  118. stageIndex == courseType,
  119. }"
  120. >
  121. <div v-if="nav.tool[0].tool != undefined">
  122. <div
  123. class="closeTri1"
  124. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  125. @click="openTask(stageIndex, navIndex, nav.id)"
  126. >
  127. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  128. </div>
  129. <div
  130. class="closeTri1"
  131. v-else
  132. @click="openTask(stageIndex, navIndex, nav.id)"
  133. >
  134. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  135. </div>
  136. </div>
  137. <div v-else class="noToolBlue"></div>
  138. <div
  139. @click="openTask(stageIndex, navIndex, nav.id)"
  140. class="navItemList"
  141. :class="{
  142. isItemList:
  143. navIndex == taskCount &&
  144. nav.id == navId &&
  145. stageIndex == courseType,
  146. }"
  147. >
  148. <div>任务{{ navIndex + 1 }}:</div>
  149. <el-tooltip
  150. effect="light"
  151. :content="nav.taskName"
  152. placement="top"
  153. >
  154. <div
  155. :style="{
  156. width:
  157. IsLookOpen && !nav.isLook
  158. ? 'calc(100% - 75px)'
  159. : 'auto',
  160. }"
  161. >
  162. {{ nav.taskName }}
  163. </div>
  164. </el-tooltip>
  165. </div>
  166. </div>
  167. <div
  168. v-if="nav.tool[0].tool != undefined"
  169. class="toolChild"
  170. :class="{ toolActive: nav.isOpen }"
  171. >
  172. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  173. <div
  174. class="gjCss"
  175. :class="{
  176. isGjCss: t.isTool,
  177. }"
  178. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  179. >
  180. <div>工具{{ toolIndex2 + 1 }}:</div>
  181. <div v-if="t.tool == 58">模拟驾驶</div>
  182. <div v-if="t.tool == 59">路径搜索</div>
  183. <div v-if="t.tool == 60">深度学习</div>
  184. <div v-if="t.tool == 10">倒计时</div>
  185. <div v-if="t.tool == 65">挑人</div>
  186. <div v-if="t.tool == 7">思维网格</div>
  187. <div v-if="t.tool == 1">电子白板</div>
  188. <div v-if="t.tool == 52">文档</div>
  189. <div v-if="t.tool == 3">思维导图</div>
  190. <div v-if="t.tool == 48">表格</div>
  191. <div v-if="t.tool == 49">学生分组</div>
  192. <div v-if="t.tool == 4">问卷调查</div>
  193. <div v-if="t.tool == 45">选择题</div>
  194. <div v-if="t.tool == 15">问答</div>
  195. <div v-if="t.tool == 16">作业提交</div>
  196. <div v-if="t.tool == 50">批量上传</div>
  197. <div v-if="t.tool == 41">选择匹配</div>
  198. <div v-if="t.tool == 47">排序</div>
  199. <div v-if="t.tool == 40">个人评价</div>
  200. <div v-if="t.tool == 18">训练平台</div>
  201. <div v-if="t.tool == 21">AIoT Blockly</div>
  202. <div v-if="t.tool == 23">AI Python</div>
  203. <div v-if="t.tool == 24">AI Blockly</div>
  204. <div v-if="t.tool == 32">源码编辑</div>
  205. <div v-if="t.tool == 57">CocoPi</div>
  206. <div v-if="t.tool == 63">海龟编程</div>
  207. <div v-if="t.tool == 28">翻译</div>
  208. <div v-if="t.tool == 31">数字画板</div>
  209. <div v-if="t.tool == 39">GeoGebra</div>
  210. <div v-if="t.tool == 66">公式编辑</div>
  211. <div v-if="t.tool == 67">分子结构</div>
  212. <div v-if="t.tool == 68">时间轴</div>
  213. <div v-if="t.tool == 69">英语写作</div>
  214. <div v-if="t.tool == 70">英语口语</div>
  215. <div v-if="t.tool == 25">目标管理</div>
  216. <div v-if="t.tool == 26">课程设计</div>
  217. <div v-if="t.tool == 62">交互视频</div>
  218. <div v-if="t.tool == 71">AI智能体</div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  228. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  229. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  230. <div class="courseIndex" :style="{width: orgArray.includes(org) ? '100%' : 'calc(100% - 745px)'}">
  231. <div>任务{{ taskCount + 1 }}</div>
  232. <el-tooltip
  233. effect="light"
  234. :content="
  235. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  236. "
  237. placement="top"
  238. >
  239. <div>
  240. {{
  241. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  242. .task
  243. }}
  244. </div>
  245. </el-tooltip>
  246. </div>
  247. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)">
  248. <div class="btnLeft">
  249. <el-tooltip effect="light" content="刷新" placement="top">
  250. <div class="reBtnIcon" @click="refreshCourse">
  251. <span>刷新</span>
  252. </div>
  253. </el-tooltip>
  254. <el-tooltip effect="light" content="评论" placement="top">
  255. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  256. <span>评论</span>
  257. </div>
  258. </el-tooltip>
  259. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  260. <el-tooltip effect="light" content="录制" placement="top">
  261. <div class="vedioIcon" @click="startRecording">
  262. <span>录制</span>
  263. </div>
  264. </el-tooltip>
  265. </div>
  266. <div v-else-if="tType == 1 || tType == 4">
  267. <el-tooltip effect="light" content="下载" placement="top">
  268. <div class="vedioIcon1" @click="stopRecording">
  269. <span>下载</span>
  270. </div>
  271. </el-tooltip>
  272. </div>
  273. </div>
  274. <div class="btnRight">
  275. <div
  276. class="last"
  277. @click="nextOrpreSteps(0)"
  278. v-if="!(IsFollow && tType == 2)"
  279. @mouseover="isHovered = true"
  280. @mouseout="isHovered = false"
  281. >
  282. <div class="lastImg">
  283. <img
  284. :src="
  285. isHovered
  286. ? require('../../assets/icon/newIcons/whiteLast.png')
  287. : require('../../assets/icon/newIcons/last.png')
  288. "
  289. alt=""
  290. />
  291. </div>
  292. <div class="lastText">上一步</div>
  293. </div>
  294. <div
  295. class="last"
  296. @click="nextOrpreSteps(1)"
  297. v-if="!(IsFollow && tType == 2)"
  298. @mouseover="isHovered1 = true"
  299. @mouseout="isHovered1 = false"
  300. >
  301. <div class="lastText">下一步</div>
  302. <div class="lastImg">
  303. <img
  304. :src="
  305. isHovered1
  306. ? require('../../assets/icon/newIcons/whiteNext.png')
  307. : require('../../assets/icon/newIcons/next.png')
  308. "
  309. alt=""
  310. />
  311. </div>
  312. </div>
  313. <div
  314. class="last"
  315. @click="juriVisible = true"
  316. v-if="tType == 1"
  317. @mouseover="isHovered2 = true"
  318. @mouseout="isHovered2 = false"
  319. >
  320. <div class="lastImg">
  321. <img
  322. :src="
  323. isHovered2
  324. ? require('../../assets/icon/newIcons/whiteLock.png')
  325. : require('../../assets/icon/newIcons/lock.png')
  326. "
  327. alt=""
  328. />
  329. </div>
  330. <div class="lastText">权限</div>
  331. </div>
  332. <div
  333. class="returnBtn1 returnIcon"
  334. @click.stop="
  335. goTo(
  336. '/courseDetail?userid=' +
  337. userid +
  338. '&oid=' +
  339. oid +
  340. '&org=' +
  341. org +
  342. '&cid=' +
  343. classId +
  344. '&courseId=' +
  345. id +
  346. '&tType=' +
  347. tType +
  348. '&screenType=' +
  349. screenType
  350. )
  351. "
  352. >
  353. <div class="lastImg">
  354. <img src="../../assets/icon/newIcon/return.png" alt="" />
  355. </div>
  356. <div class="lastText" style="color: #000">返回</div>
  357. </div>
  358. </div>
  359. <!-- <div
  360. class="returnBtn lockIcon"
  361. @click="juriVisible = true"
  362. v-if="tType == 1"
  363. >
  364. 权限
  365. </div>
  366. <div
  367. class="returnBtn vedioIcon"
  368. @click="startRecording"
  369. v-if="!videoStart && (tType == 1 || tType == 4)"
  370. >
  371. 录制
  372. </div>
  373. <div
  374. class="returnBtn"
  375. @click="stopRecording"
  376. v-else-if="tType == 1 || tType == 4"
  377. style="background: #ee5255"
  378. >
  379. 下载
  380. </div>
  381. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  382. 评论
  383. </div>
  384. <div
  385. class="returnBtn"
  386. @click="nextOrpreSteps(0)"
  387. v-if="!(IsFollow && tType == 2)"
  388. >
  389. 上一步
  390. </div>
  391. <div
  392. class="returnBtn"
  393. @click="nextOrpreSteps(1)"
  394. v-if="!(IsFollow && tType == 2)"
  395. >
  396. 下一步
  397. </div>
  398. <div class="returnBtn" @click="refreshCourse">刷新</div>
  399. <div
  400. class="returnBtn returnIcon"
  401. @click.stop="
  402. goTo(
  403. '/courseDetail?userid=' +
  404. userid +
  405. '&oid=' +
  406. oid +
  407. '&org=' +
  408. org +
  409. '&cid=' +
  410. classId +
  411. '&courseId=' +
  412. id +
  413. '&tType=' +
  414. tType +
  415. '&screenType=' +
  416. screenType
  417. )
  418. "
  419. >
  420. 返回
  421. </div> -->
  422. </div>
  423. </div>
  424. <div
  425. class="isNoMessage"
  426. v-if="
  427. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  428. .chapterData.length == 0 &&
  429. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  430. .toolChoose[0].tool.length == 0 &&
  431. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  432. .taskDetail == '' &&
  433. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  434. .eList &&
  435. !(
  436. courseDetail.userid == userid ||
  437. (courseDetail.course_teacher &&
  438. courseDetail.course_teacher.indexOf(userid) != -1)
  439. )
  440. "
  441. >
  442. <img src="../../assets/icon/isNoMessage.png" alt />
  443. </div>
  444. <div class="study_top" :class="{ pzClass: pzDialog }">
  445. <div
  446. class="vedioBox"
  447. v-if="
  448. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  449. .taskDetail != '' ||
  450. vChapterData[taskCount].length > 0 ||
  451. fileC[taskCount].length > 0
  452. "
  453. style="border-radius: 0 0 20px 20px"
  454. >
  455. <div
  456. class="taskBox"
  457. v-if="
  458. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  459. .taskDetail != ''
  460. "
  461. >
  462. <div
  463. style="
  464. display: flex;
  465. flex-wrap: nowrap;
  466. flex-direction: column;
  467. position: relative;
  468. "
  469. >
  470. <div
  471. style="
  472. padding: 15px 0;
  473. line-height: 29px;
  474. font-size: 18px;
  475. color: #0e1e33;
  476. "
  477. class="cont"
  478. v-if="
  479. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  480. .taskDetail != ''
  481. "
  482. v-html="
  483. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  484. .taskDetail
  485. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  486. taskCount
  487. ].taskDetail
  488. : '暂无描述'
  489. "
  490. ></div>
  491. </div>
  492. </div>
  493. <div
  494. class="student_head"
  495. v-if="
  496. vChapterData[taskCount].length > 0 ||
  497. fileC[taskCount].length > 0
  498. "
  499. >
  500. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  501. <div
  502. :class="
  503. contentDialog == false
  504. ? 'box_course isContentCss'
  505. : 'box_course'
  506. "
  507. v-if="
  508. vChapterData.length > 0 &&
  509. vChapterData[taskCount] &&
  510. showType !== ''
  511. "
  512. >
  513. <div class="wheel" style="height: auto" v-if="showType === 0">
  514. <div
  515. class="workd_media"
  516. style="height: 650px; width: calc(100% - 50px)"
  517. >
  518. <video-player
  519. class="video-player vjs-custom-skin"
  520. :class="contentDialog == false ? 'isAllWidth' : ''"
  521. :playsinline="true"
  522. :options="playerO[taskCount]"
  523. @play="onPlayerPlay($event)"
  524. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  525. ></video-player>
  526. </div>
  527. </div>
  528. <div
  529. class="wheel"
  530. v-if="showType == 1"
  531. style="
  532. box-shadow: 0 0 6px 1px #f2f2f2;
  533. width: 95%;
  534. margin: 0 auto;
  535. background: #f1f1f1;
  536. "
  537. >
  538. <div class="title">查看文档</div>
  539. <el-form class="textBox">
  540. <el-form-item class="textTitle">
  541. <div style="font-size: 22px">
  542. {{ text.name }}
  543. </div>
  544. </el-form-item>
  545. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  546. <div v-html="text.url" class="textContent cont"></div>
  547. </el-form>
  548. </div>
  549. <div
  550. class="wheel"
  551. v-if="
  552. pptImgUrl1.indexOf(
  553. 'https://view.officeapps.live.com/op/view.aspx?src='
  554. ) != -1 && showType == 2
  555. "
  556. style="width: 95%; margin: 0 auto"
  557. >
  558. <iframe
  559. style="width: 100%; height: 100%; border: none"
  560. :src="pptImgUrl1"
  561. ></iframe>
  562. </div>
  563. <div
  564. class="wheel"
  565. v-else-if="showType == 2"
  566. style="width: 95%; margin: 0 auto"
  567. >
  568. <iframe
  569. style="width: 100%; height: 100%; border: none"
  570. security="restricted"
  571. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  572. :src="pptImgUrl1"
  573. ></iframe>
  574. </div>
  575. <div
  576. class="wheel"
  577. v-if="showType == 3"
  578. style="width: 95%; margin: 0 auto"
  579. >
  580. <pdf
  581. :pdfUrl="pptImgUrl1"
  582. style="width: 100%; height: 100%; overflow: auto"
  583. ></pdf>
  584. </div>
  585. <div
  586. class="wheel"
  587. v-if="showType == 4"
  588. style="width: 95%; margin: 0 auto"
  589. >
  590. <el-image
  591. :src="pptImgUrl1"
  592. fit="contain"
  593. style="width: 100%; height: 100%; cursor: pointer"
  594. @click="previewImg(pptImgUrl1)"
  595. ></el-image>
  596. </div>
  597. </div>
  598. <div
  599. class="pButton"
  600. style="position: absolute; right: 20px; top: 0; z-index: 998"
  601. v-if="!contentDialog"
  602. @click="setContent(true)"
  603. >
  604. <!-- 批 -->
  605. <img
  606. src="../../assets/icon/newIcons/isLeft.png"
  607. style="width: 45px"
  608. alt=""
  609. />
  610. </div>
  611. <div
  612. v-if="contentDialog == true"
  613. :style="{
  614. width:
  615. (vChapterData[taskCount].length > 0 ||
  616. fileC[taskCount].length > 0) &&
  617. showType === ''
  618. ? 'calc(100%)'
  619. : '300px',
  620. margin:
  621. (vChapterData[taskCount].length > 0 ||
  622. fileC[taskCount].length > 0) &&
  623. showType === ''
  624. ? '0 15px'
  625. : '0 15px 0 0',
  626. }"
  627. >
  628. <div
  629. class="vedioList"
  630. v-if="
  631. vChapterData[taskCount].length > 0 ||
  632. fileC[taskCount].length > 0
  633. "
  634. style="height: 650px"
  635. >
  636. <div class="navCorOpenBox">
  637. <div class="navTitile">内容列表:</div>
  638. <div class="navCorOpen" @click="setContent(false)">
  639. <img
  640. src="../../assets/icon/newIcons/isRight.png"
  641. alt=""
  642. />
  643. </div>
  644. </div>
  645. <div class="navBox">
  646. <div
  647. v-show="
  648. vChapterData[taskCount].length > 0 ||
  649. fileC[taskCount].length > 0
  650. "
  651. style="padding: 10px 0 25px 0"
  652. >
  653. <div
  654. class="vedioTimeBox"
  655. v-for="(vitem, vindex) in vChapterData[taskCount]"
  656. :key="vindex + '1'"
  657. >
  658. <div class="navListItem" v-if="vitem.type == 2">
  659. <div
  660. @click="lookVedio(vitem.url, vindex)"
  661. class="navText"
  662. :class="isClickNav == vindex ? 'isClickNav' : ''"
  663. >
  664. <span v-if="vitem.text">{{ vitem.text }}-</span
  665. >{{ vitem.name }}
  666. </div>
  667. <div class="downIcon" @click="downloadFile2(vitem)">
  668. <img
  669. src="../../assets/icon/newIcon/down.png"
  670. alt
  671. />
  672. </div>
  673. </div>
  674. <div class="navListItem" v-if="vitem.type == 6">
  675. <div
  676. @click="lookText(taskCount, vindex)"
  677. class="navText"
  678. :class="isClickNav == vindex ? 'isClickNav' : ''"
  679. >
  680. {{ vitem.name }}.doc
  681. </div>
  682. <div
  683. class="downIcon"
  684. @click="checkFileFull1(vitem.type, vitem)"
  685. >
  686. <img
  687. src="../../assets/icon/newIcon/allScreen.png"
  688. alt
  689. />
  690. </div>
  691. </div>
  692. <div
  693. class="navListItem"
  694. v-if="vitem.type == 8 || vitem.type == 14"
  695. >
  696. <div
  697. @click="doUrl(vitem.url, vindex)"
  698. class="navText"
  699. :class="isClickNav == vindex ? 'isClickNav' : ''"
  700. >
  701. {{ vitem.title ? vitem.title : vitem.url }}
  702. </div>
  703. <div
  704. class="downIcon"
  705. @click="checkFileFull1(vitem.type, vitem)"
  706. >
  707. <img
  708. src="../../assets/icon/newIcon/allScreen.png"
  709. alt
  710. />
  711. </div>
  712. </div>
  713. <div class="navListItem" v-if="vitem.type == 3">
  714. <div
  715. @click="downFile(vitem, vindex)"
  716. class="navText"
  717. :class="isClickNav == vindex ? 'isClickNav' : ''"
  718. >
  719. <span v-if="vitem.text">{{ vitem.text }}-</span
  720. >{{ vitem.name }}
  721. </div>
  722. <div
  723. class="downIcon"
  724. @click="checkFileFull1(vitem.type, vitem)"
  725. >
  726. <img
  727. src="../../assets/icon/newIcon/allScreen.png"
  728. alt
  729. />
  730. </div>
  731. <div class="downIcon" @click="downloadFile2(vitem)">
  732. <img
  733. src="../../assets/icon/newIcon/down.png"
  734. alt
  735. />
  736. </div>
  737. </div>
  738. <div class="navListItem" v-if="vitem.type == 12">
  739. <div class="navText" @click="downloadFile2(vitem)">
  740. <span v-if="vitem.text">{{ vitem.text }}-</span
  741. >{{ vitem.name }}
  742. </div>
  743. <div
  744. class="downIcon"
  745. @click="checkFileFull1(vitem.type, vitem)"
  746. >
  747. <img
  748. src="../../assets/icon/newIcon/allScreen.png"
  749. alt
  750. />
  751. </div>
  752. <div class="downIcon" @click="downloadFile2(vitem)">
  753. <img
  754. src="../../assets/icon/newIcon/down.png"
  755. alt
  756. />
  757. </div>
  758. </div>
  759. <div class="navListItem" v-if="vitem.type == 13">
  760. <div
  761. class="navText"
  762. @click="checkPhoto(vitem, vindex)"
  763. :class="isClickNav == vindex ? 'isClickNav' : ''"
  764. >
  765. {{ vitem.name }}
  766. </div>
  767. <div class="downIcon" @click="downloadFile2(vitem)">
  768. <img
  769. src="../../assets/icon/newIcon/down.png"
  770. alt
  771. />
  772. </div>
  773. </div>
  774. </div>
  775. <div
  776. class="fileC_box"
  777. v-if="fileC[taskCount].length > 0"
  778. >
  779. <div class="fileC_title">以下文件不支持预览</div>
  780. <div
  781. class="vedioTimeBox"
  782. v-for="(vitem, vindex) in fileC[taskCount]"
  783. :key="vindex + '1'"
  784. >
  785. <div class="navListItem" v-if="vitem.type == 12">
  786. <div class="navText" style="color: #acb4bf">
  787. <span v-if="vitem.text">{{ vitem.text }}-</span
  788. >{{ vitem.name }}
  789. </div>
  790. <div
  791. class="downIcon"
  792. @click="downloadFile2(vitem)"
  793. >
  794. <img
  795. src="../../assets/icon/newIcon/down.png"
  796. alt
  797. />
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. </div>
  804. </div>
  805. </div>
  806. </div>
  807. <div style="width: calc(100% - 315px)">
  808. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  809. <!-- <el-button
  810. type="primary"
  811. class="newButton"
  812. @click="checkFileFull(showType, pptImgUrl1)"
  813. >全屏查看</el-button
  814. >
  815. <el-button
  816. type="primary"
  817. class="newButton"
  818. @click="downloadFile(pptImgUrl1)"
  819. v-if="showType != 2"
  820. >文件下载</el-button
  821. > -->
  822. <el-button
  823. class="newButton"
  824. v-if="
  825. showType == 2 &&
  826. pptImgUrl1.indexOf(
  827. 'https://view.officeapps.live.com/op/view.aspx?src='
  828. ) == -1
  829. "
  830. type="primary"
  831. @click="openLine(pptImgUrl1)"
  832. >打开链接
  833. </el-button>
  834. </div>
  835. <!-- <div
  836. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  837. v-if="showType == 1"
  838. >
  839. <el-button
  840. type="primary"
  841. class="newButton"
  842. @click="checkFileFull(showType, text)"
  843. >全屏查看</el-button
  844. >
  845. </div> -->
  846. </div>
  847. </div>
  848. </div>
  849. <div class="student_body" v-resize="resize">
  850. <div
  851. class="vedioBox"
  852. :style="{
  853. borderRadius:
  854. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  855. .taskDetail == '' &&
  856. vChapterData[taskCount].length == 0 &&
  857. fileC[taskCount].length == 0
  858. ? '0 0 20px 20px'
  859. : '20px',
  860. }"
  861. v-if="
  862. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  863. .toolChoose[0].tool &&
  864. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  865. .toolChoose[0].tool.length > 0
  866. "
  867. >
  868. <div
  869. class="toolHeng2"
  870. style="position: relative"
  871. v-if="
  872. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  873. .toolChoose[0].tool &&
  874. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  875. .toolChoose[0].tool.length &&
  876. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  877. .toolChoose[0].tool.length > 0
  878. "
  879. >
  880. <div class="workNav">工作区</div>
  881. <div
  882. class="filebox"
  883. style="flex-wrap: nowrap"
  884. v-for="(tool, toolIndex) in chapInfoList[courseType]
  885. .chapterInfo[0].taskJson[taskCount].toolChoose"
  886. :key="toolIndex"
  887. >
  888. <div class="bzBox">
  889. <div class="yCss"></div>
  890. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  891. 工具{{ toolIndex + 1 }}
  892. </div>
  893. <div
  894. v-if="timeWorkList[toolIndex].length > 0"
  895. style="margin: 0 0 0 10px"
  896. >
  897. {{
  898. timeWorkList[toolIndex][0].time
  899. ? "时间:" + timeWorkList[toolIndex][0].time
  900. : ""
  901. }}
  902. </div>
  903. </div>
  904. <div class="toolBox">
  905. <div>
  906. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  907. :key="indexTool"-->
  908. <!-- <div class="iframeBox">
  909. <div
  910. class="addPoint isBorder"
  911. v-for="(tooC, toolCIndex) in tool.tool"
  912. :key="toolCIndex"
  913. >
  914. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  915. <div
  916. class="iframeName"
  917. >
  918. 电子白板
  919. </div>
  920. <iframe
  921. src="https://iwb.cocorobo.cn/"
  922. ref="whiteBoard"
  923. ></iframe>
  924. </div>
  925. </div>
  926. </div>-->
  927. <div class="noiframeBox">
  928. <div
  929. class="addPoint"
  930. v-for="(tooC, toolCIndex) in tool.tool"
  931. :key="toolCIndex"
  932. >
  933. <div v-if="tooC == 1">
  934. <img
  935. src="../../assets/icon/secondToolList/whiteBoard.png"
  936. alt
  937. @click="addTools(tooC, toolIndex, taskCount)"
  938. />
  939. <div style="margin: 5px 0">电子白板</div>
  940. </div>
  941. <div v-if="tooC == 3">
  942. <img
  943. src="../../assets/icon/secondToolList/mindMapping.png"
  944. alt
  945. @click="addTools(tooC, toolIndex, taskCount)"
  946. />
  947. <div style="margin: 5px 0">思维导图</div>
  948. </div>
  949. <div v-if="tooC == 6">
  950. <img
  951. src="../../assets/icon/secondToolList/doc.png"
  952. alt
  953. @click="addTools(tooC, toolIndex, taskCount)"
  954. />
  955. <div style="margin: 5px 0">协同文档</div>
  956. </div>
  957. <div v-if="tooC == 7">
  958. <img
  959. src="../../assets/icon/secondToolList/mindNetwork.png"
  960. alt
  961. @click="addTools(tooC, toolIndex, taskCount)"
  962. />
  963. <div style="margin: 5px 0">思维网格</div>
  964. </div>
  965. <div v-if="tooC == 8">
  966. <img
  967. src="../../assets/icon/secondToolList/library.png"
  968. alt
  969. @click="addTools(tooC, toolIndex, taskCount)"
  970. />
  971. <div style="margin: 5px 0">素材库</div>
  972. </div>
  973. <div v-if="tooC == 17">
  974. <img
  975. src="../../assets/icon/secondToolList/library.png"
  976. alt
  977. @click="addTools(tooC, toolIndex, taskCount)"
  978. />
  979. <div style="margin: 5px 0">学习资料</div>
  980. </div>
  981. <div v-if="tooC == 2">
  982. <img
  983. @click="addTools(tooC, toolIndex, taskCount)"
  984. src="../../assets/icon/secondToolList/note.png"
  985. alt
  986. />
  987. <div style="margin: 5px 0">便签</div>
  988. </div>
  989. <div v-if="tooC == 4">
  990. <img
  991. @click="addTools(tooC, toolIndex, taskCount)"
  992. src="../../assets/icon/thirdToolList/ask.png"
  993. alt
  994. />
  995. <div style="margin: 5px 0">问卷调查</div>
  996. </div>
  997. <div v-if="tooC == 45">
  998. <img
  999. @click="addTools(tooC, toolIndex, taskCount)"
  1000. src="../../assets/icon/thirdToolList/choose.png"
  1001. alt
  1002. />
  1003. <div style="margin: 5px 0">选择题</div>
  1004. </div>
  1005. <!-- <div v-if="tooC == 5">
  1006. <img
  1007. @click="addTools(tooC, toolIndex, taskCount)"
  1008. src="../../assets/icon/thirdToolList/score.png"
  1009. alt
  1010. />
  1011. <div style="margin: 5px 0">量规评分</div>
  1012. </div> -->
  1013. <div v-if="tooC == 10">
  1014. <img
  1015. @click="addTools(tooC, toolIndex, taskCount)"
  1016. src="../../assets/icon/thirdToolList/time.png"
  1017. alt
  1018. />
  1019. <div style="margin: 5px 0">倒计时</div>
  1020. </div>
  1021. <div v-if="tooC == 15">
  1022. <img
  1023. @click="addTools(tooC, toolIndex, taskCount)"
  1024. src="../../assets/icon/thirdToolList/answer.png"
  1025. alt
  1026. />
  1027. <div style="margin: 5px 0">问答</div>
  1028. </div>
  1029. <div v-if="tooC == 26">
  1030. <img
  1031. @click="addTools(tooC, toolIndex, taskCount)"
  1032. src="../../assets/icon/thirdToolList/courseDesign.png"
  1033. alt
  1034. />
  1035. <div style="margin: 5px 0">课程设计</div>
  1036. </div>
  1037. <div v-if="tooC == 18">
  1038. <img
  1039. @click="addTools(tooC, toolIndex, taskCount)"
  1040. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1041. alt
  1042. />
  1043. <div style="margin: 5px 0">训练服务器</div>
  1044. </div>
  1045. <div v-if="tooC == 16">
  1046. <img
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. src="../../assets/icon/thirdToolList/work.png"
  1049. alt
  1050. />
  1051. <div style="margin: 5px 0">作业提交</div>
  1052. </div>
  1053. <div v-if="tooC == 50">
  1054. <img
  1055. @click="addTools(tooC, toolIndex, taskCount)"
  1056. src="../../assets/icon/thirdToolList/plwork.png"
  1057. alt
  1058. />
  1059. <div style="margin: 5px 0">批量上传</div>
  1060. </div>
  1061. <div v-if="tooC == 21">
  1062. <img
  1063. @click="addTools(tooC, toolIndex, taskCount)"
  1064. src="../../assets/icon/fourthToolList/program.png"
  1065. alt
  1066. />
  1067. <div style="margin: 5px 0">AIoT Blockly</div>
  1068. </div>
  1069. <!-- <div v-if="tooC == 22">
  1070. <img
  1071. @click="addTools(tooC, toolIndex, taskCount)"
  1072. src="../../assets/icon/fourthToolList/program.png"
  1073. alt
  1074. />
  1075. <div style="margin: 5px 0">AI体验</div>
  1076. </div> -->
  1077. <div v-if="tooC == 23">
  1078. <img
  1079. @click="addTools(tooC, toolIndex, taskCount)"
  1080. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1081. alt
  1082. />
  1083. <div style="margin: 5px 0">AI Python</div>
  1084. </div>
  1085. <div v-if="tooC == 24">
  1086. <img
  1087. @click="addTools(tooC, toolIndex, taskCount)"
  1088. src="../../assets/icon/fourthToolList/AIprogram.png"
  1089. alt
  1090. />
  1091. <div style="margin: 5px 0">AI Blockly</div>
  1092. </div>
  1093. <div v-if="tooC == 25">
  1094. <img
  1095. @click="addTools(tooC, toolIndex, taskCount)"
  1096. src="../../assets/icon/thirdToolList/evalua.png"
  1097. alt
  1098. />
  1099. <div style="margin: 5px 0">目标管理</div>
  1100. </div>
  1101. <div v-if="tooC == 31">
  1102. <img
  1103. @click="addTools(tooC, toolIndex, taskCount)"
  1104. src="../../assets/icon/secondToolList/networkPanel.png"
  1105. alt
  1106. />
  1107. <div style="margin: 5px 0">数学画板</div>
  1108. </div>
  1109. <div v-if="tooC == 28">
  1110. <img
  1111. @click="addTools(tooC, toolIndex, taskCount)"
  1112. src="../../assets/icon/secondToolList/translation.png"
  1113. alt
  1114. />
  1115. <div style="margin: 5px 0">翻译</div>
  1116. </div>
  1117. <div v-if="tooC == 37">
  1118. <img
  1119. @click="addTools(tooC, toolIndex, taskCount)"
  1120. src="../../assets/icon/secondToolList/mohe.png"
  1121. alt
  1122. />
  1123. <div style="margin: 5px 0">魔盒识字</div>
  1124. </div>
  1125. <div v-if="tooC == 38">
  1126. <img
  1127. @click="addTools(tooC, toolIndex, taskCount)"
  1128. src="../../assets/icon/secondToolList/24game.png"
  1129. alt
  1130. />
  1131. <div style="margin: 5px 0">24点</div>
  1132. </div>
  1133. <div v-if="tooC == 39">
  1134. <img
  1135. @click="addTools(tooC, toolIndex, taskCount)"
  1136. src="../../assets/icon/secondToolList/GeoGebra.png"
  1137. alt
  1138. />
  1139. <div style="margin: 5px 0">GeoGebra</div>
  1140. </div>
  1141. <div v-if="tooC == 32">
  1142. <img
  1143. @click="addTools(tooC, toolIndex, taskCount)"
  1144. src="../../assets/icon/thirdToolList/code.png"
  1145. alt
  1146. />
  1147. <div style="margin: 5px 0">源码编辑</div>
  1148. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1149. style="position: absolute;left: 110px;bottom: 30px;">
  1150. 上传文件
  1151. <input type="file" accept="*" style="display: none"
  1152. @change="beforeUpload1($event, 7, toolIndex)" />
  1153. </div> -->
  1154. </div>
  1155. <div v-if="tooC == 40">
  1156. <img
  1157. @click="addTools(tooC, toolIndex, taskCount)"
  1158. src="../../assets/icon/secondToolList/eval.png"
  1159. alt
  1160. />
  1161. <div style="margin: 5px 0">个人评价</div>
  1162. </div>
  1163. <div v-if="tooC == 41">
  1164. <img
  1165. @click="addTools(tooC, toolIndex, taskCount)"
  1166. src="../../assets/icon/thirdToolList/select.png"
  1167. alt
  1168. />
  1169. <div style="margin: 5px 0">选择匹配</div>
  1170. </div>
  1171. <div v-if="tooC == 44">
  1172. <img
  1173. @click="addTools(tooC, toolIndex, taskCount)"
  1174. src="../../assets/icon/thirdToolList/hanClass.png"
  1175. alt
  1176. />
  1177. <div style="margin: 5px 0">汉字宫</div>
  1178. </div>
  1179. <div v-if="tooC == 47">
  1180. <img
  1181. @click="addTools(tooC, toolIndex, taskCount)"
  1182. src="../../assets/icon/fourthToolList/conSentences.png"
  1183. alt
  1184. />
  1185. <div style="margin: 5px 0">排序</div>
  1186. </div>
  1187. <div v-if="tooC == 48">
  1188. <img
  1189. @click="addTools(tooC, toolIndex, taskCount)"
  1190. src="../../assets/icon/fourthToolList/table.png"
  1191. alt
  1192. />
  1193. <div style="margin: 5px 0">表格</div>
  1194. </div>
  1195. <div v-if="tooC == 52">
  1196. <img
  1197. @click="addTools(tooC, toolIndex, taskCount)"
  1198. src="../../assets/icon/fourthToolList/text.png"
  1199. alt
  1200. />
  1201. <div style="margin: 5px 0">文档</div>
  1202. </div>
  1203. <div v-if="tooC == 49">
  1204. <img
  1205. @click="addTools(tooC, toolIndex, taskCount)"
  1206. src="../../assets/icon/fourthToolList/group.png"
  1207. alt
  1208. />
  1209. <div style="margin: 5px 0">学生分组</div>
  1210. </div>
  1211. <div v-if="tooC == 57">
  1212. <img
  1213. @click="addTools(tooC, toolIndex, taskCount)"
  1214. src="../../assets/icon/fourthToolList/cocopi.png"
  1215. alt
  1216. />
  1217. <div style="margin: 5px 0">CocoPi</div>
  1218. </div>
  1219. <div v-if="tooC == 58">
  1220. <img
  1221. @click="addTools(tooC, toolIndex, taskCount)"
  1222. src="../../assets/icon/fourthToolList/car.png"
  1223. alt
  1224. />
  1225. <div style="margin: 5px 0">模拟驾驶</div>
  1226. </div>
  1227. <div v-if="tooC == 59">
  1228. <img
  1229. @click="addTools(tooC, toolIndex, taskCount)"
  1230. src="../../assets/icon/fourthToolList/lineSearch.png"
  1231. alt
  1232. />
  1233. <div style="margin: 5px 0">路径搜索</div>
  1234. </div>
  1235. <div v-if="tooC == 60">
  1236. <img
  1237. @click="addTools(tooC, toolIndex, taskCount)"
  1238. src="../../assets/icon/fourthToolList/deepLearning.png"
  1239. alt
  1240. />
  1241. <div style="margin: 5px 0">深度学习</div>
  1242. </div>
  1243. <div v-if="tooC == 61">
  1244. <img
  1245. @click="addTools(tooC, toolIndex, taskCount)"
  1246. src="../../assets/icon/fourthToolList/allHistory.png"
  1247. alt
  1248. />
  1249. <div style="margin: 5px 0">全历史</div>
  1250. </div>
  1251. <div v-if="tooC == 62">
  1252. <img
  1253. @click="addTools(tooC, toolIndex, taskCount)"
  1254. src="../../assets/icon/fourthToolList/interVideo.png"
  1255. alt
  1256. />
  1257. <div style="margin: 5px 0">交互视频</div>
  1258. </div>
  1259. <div v-if="tooC == 63">
  1260. <img
  1261. @click="addTools(tooC, toolIndex, taskCount)"
  1262. src="../../assets/icon/fourthToolList/Wood.png"
  1263. alt
  1264. />
  1265. <div style="margin: 5px 0">海龟编程</div>
  1266. </div>
  1267. <div v-if="tooC == 71">
  1268. <img
  1269. @click="addTools(tooC, toolIndex, taskCount)"
  1270. src="../../assets/icon/fourthToolList/chatgpt.png"
  1271. alt
  1272. />
  1273. <div style="margin: 5px 0">AI智能体</div>
  1274. </div>
  1275. <div v-if="tooC == 65">
  1276. <img
  1277. @click="addTools(tooC, toolIndex, taskCount)"
  1278. src="../../assets/icon/firstToolList/pickPeople.png"
  1279. alt
  1280. />
  1281. <div style="margin: 5px 0">挑人</div>
  1282. </div>
  1283. <div v-if="tooC == 66">
  1284. <img
  1285. @click="addTools(tooC, toolIndex, taskCount)"
  1286. src="../../assets/icon/secondToolList/formulaEdi.png"
  1287. alt
  1288. />
  1289. <div style="margin: 5px 0">公式编辑</div>
  1290. </div>
  1291. <div v-if="tooC == 67">
  1292. <img
  1293. @click="addTools(tooC, toolIndex, taskCount)"
  1294. src="../../assets/icon/secondToolList/molStr.png"
  1295. alt
  1296. />
  1297. <div style="margin: 5px 0">分子结构</div>
  1298. </div>
  1299. <div v-if="tooC == 68">
  1300. <img
  1301. @click="addTools(tooC, toolIndex, taskCount)"
  1302. src="../../assets/icon/secondToolList/timeAxis.png"
  1303. alt
  1304. />
  1305. <div style="margin: 5px 0">时间轴</div>
  1306. </div>
  1307. <div v-if="tooC == 69">
  1308. <img
  1309. @click="addTools(tooC, toolIndex, taskCount)"
  1310. src="../../assets/icon/secondToolList/english.png"
  1311. alt
  1312. />
  1313. <div style="margin: 5px 0">英语写作</div>
  1314. </div>
  1315. <div v-if="tooC == 70">
  1316. <img
  1317. @click="addTools(tooC, toolIndex, taskCount)"
  1318. src="../../assets/icon/thirdToolList/englishVoice.png"
  1319. alt
  1320. />
  1321. <div style="margin: 5px 0">英语口语</div>
  1322. </div>
  1323. </div>
  1324. </div>
  1325. </div>
  1326. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1327. <!-- <div class="toolTitle">工具描述</div> -->
  1328. <div style="height:100%;"
  1329. v-html="contentConvent(tool.toolDetail)"
  1330. v-if="toolDetailIndex != toolIndex"
  1331. @click.stop="updateToolDetail(toolIndex, 2)"
  1332. ></div>
  1333. <div v-else @click.stop="" style="height:100%;">
  1334. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1335. </div>
  1336. </div>
  1337. <el-button
  1338. type="primary"
  1339. v-if="tool.tool[0] == 32"
  1340. style="position: absolute; right: 30px; top: 30px"
  1341. @click="addImg($event)"
  1342. >上传作业<input
  1343. type="file"
  1344. accept="*"
  1345. style="display: none"
  1346. @change="beforeUpload1($event, 7, toolIndex)"
  1347. /></el-button>
  1348. <el-button
  1349. type="primary"
  1350. v-if="tool.tool[0] == 15"
  1351. style="position: absolute; right: 30px; top: 30px"
  1352. @click="openWordCloud(toolIndex)"
  1353. >生成词云</el-button
  1354. >
  1355. <el-button
  1356. type="primary"
  1357. v-if="
  1358. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1359. "
  1360. style="position: absolute; right: 30px; top: 30px"
  1361. @click="uploadWorks(toolIndex)"
  1362. >导出作业</el-button
  1363. >
  1364. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1365. position: absolute;
  1366. right: 30px;
  1367. transform: translateY(-130%);
  1368. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1369. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1370. </div>
  1371. <div
  1372. v-if="
  1373. tType &&
  1374. tType == 2 &&
  1375. !sIsOpen &&
  1376. tool.tool.indexOf(16) != -1
  1377. "
  1378. class="worksBox"
  1379. >
  1380. <div
  1381. class="zuoyeYulan"
  1382. v-if="workStudent[toolIndex].length > 0"
  1383. >
  1384. <span class="worksTitle">作业预览</span>
  1385. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1386. </div>
  1387. <div
  1388. class="worksDetailBox"
  1389. v-if="workStudent[toolIndex].length > 0"
  1390. >
  1391. <div
  1392. class="works"
  1393. style="
  1394. width: 200px;
  1395. height: 140px;
  1396. margin: 10px 10px 10px 0;
  1397. box-shadow: 0 0 6px 1px #dfdada;
  1398. "
  1399. v-for="(w, wIndex) in workStudent[toolIndex]"
  1400. :key="wIndex"
  1401. >
  1402. <div class="workImg" v-if="w.type == 0">
  1403. <img
  1404. :src="w.works"
  1405. @click="previewImg(w.works)"
  1406. alt
  1407. />
  1408. <div
  1409. class="answerScore"
  1410. v-if="w.score"
  1411. @click.stop="openScore(w)"
  1412. :class="{
  1413. rightW:
  1414. w.userid == userid || tType == 1 || tType == 4,
  1415. }"
  1416. >
  1417. {{ JSON.parse(w.score).wScore }}分
  1418. </div>
  1419. <div
  1420. class="answerScore"
  1421. @click.stop="openScore(w)"
  1422. v-else-if="courseDetail.userid == userid"
  1423. :class="{
  1424. rightW:
  1425. w.userid == userid || tType == 1 || tType == 4,
  1426. }"
  1427. >
  1428. 评分
  1429. </div>
  1430. <img
  1431. class="deleteImg"
  1432. src="../../assets/deleteworks.png"
  1433. v-if="
  1434. w.userid == userid || tType == 1 || tType == 4
  1435. "
  1436. @click.stop="deleteWorks(w.wid)"
  1437. alt
  1438. />
  1439. </div>
  1440. <div class="workImg" v-if="w.type == 1">
  1441. <img :src="word" @click="openFile(w.works)" alt />
  1442. <div
  1443. class="answerScore"
  1444. v-if="w.score"
  1445. @click.stop="openScore(w)"
  1446. :class="{
  1447. rightW:
  1448. w.userid == userid || tType == 1 || tType == 4,
  1449. }"
  1450. >
  1451. {{ JSON.parse(w.score).wScore }}分
  1452. </div>
  1453. <div
  1454. class="answerScore"
  1455. @click.stop="openScore(w)"
  1456. v-else-if="courseDetail.userid == userid"
  1457. :class="{
  1458. rightW:
  1459. w.userid == userid || tType == 1 || tType == 4,
  1460. }"
  1461. >
  1462. 评分
  1463. </div>
  1464. <img
  1465. class="deleteImg"
  1466. src="../../assets/deleteworks.png"
  1467. v-if="
  1468. w.userid == userid || tType == 1 || tType == 4
  1469. "
  1470. @click.stop="deleteWorks(w.wid)"
  1471. alt
  1472. />
  1473. </div>
  1474. <div class="workImg" v-if="w.type == 3">
  1475. <img
  1476. style="cursor: pointer"
  1477. :src="video"
  1478. @click="openVideo(w)"
  1479. alt
  1480. />
  1481. <div
  1482. class="answerScore"
  1483. v-if="w.score"
  1484. @click.stop="openScore(w)"
  1485. :class="{
  1486. rightW:
  1487. w.userid == userid || tType == 1 || tType == 4,
  1488. }"
  1489. >
  1490. {{ JSON.parse(w.score).wScore }}分
  1491. </div>
  1492. <div
  1493. class="answerScore"
  1494. @click.stop="openScore(w)"
  1495. v-else-if="courseDetail.userid == userid"
  1496. :class="{
  1497. rightW:
  1498. w.userid == userid || tType == 1 || tType == 4,
  1499. }"
  1500. >
  1501. 评分
  1502. </div>
  1503. <img
  1504. class="deleteImg"
  1505. src="../../assets/deleteworks.png"
  1506. v-if="
  1507. w.userid == userid || tType == 1 || tType == 4
  1508. "
  1509. @click.stop="deleteWorks(w.wid)"
  1510. alt
  1511. />
  1512. </div>
  1513. <div class="workImg" v-if="w.type == 12">
  1514. <img
  1515. style="cursor: pointer"
  1516. :src="word2"
  1517. @click="downloadFile(w.works)"
  1518. alt
  1519. />
  1520. <div
  1521. class="answerScore"
  1522. v-if="w.score"
  1523. @click.stop="openScore(w)"
  1524. :class="{
  1525. rightW:
  1526. w.userid == userid || tType == 1 || tType == 4,
  1527. }"
  1528. >
  1529. {{ JSON.parse(w.score).wScore }}分
  1530. </div>
  1531. <div
  1532. class="answerScore"
  1533. @click.stop="openScore(w)"
  1534. v-else-if="courseDetail.userid == userid"
  1535. :class="{
  1536. rightW:
  1537. w.userid == userid || tType == 1 || tType == 4,
  1538. }"
  1539. >
  1540. 评分
  1541. </div>
  1542. <img
  1543. class="deleteImg"
  1544. src="../../assets/deleteworks.png"
  1545. v-if="
  1546. w.userid == userid || tType == 1 || tType == 4
  1547. "
  1548. @click.stop="deleteWorks(w.wid)"
  1549. alt
  1550. />
  1551. </div>
  1552. <div class="worksName">
  1553. <div>{{ w.sName }}</div>
  1554. </div>
  1555. </div>
  1556. </div>
  1557. </div>
  1558. <div
  1559. v-if="
  1560. tType &&
  1561. tType == 2 &&
  1562. !sIsOpen &&
  1563. tool.tool.indexOf(32) != -1
  1564. "
  1565. class="worksBox"
  1566. >
  1567. <div
  1568. class="zuoyeYulan"
  1569. v-if="workStudent[toolIndex].length > 0"
  1570. >
  1571. <span class="worksTitle">作业预览</span>
  1572. </div>
  1573. <div
  1574. class="worksDetailBox"
  1575. v-if="workStudent[toolIndex].length > 0"
  1576. >
  1577. <div
  1578. class="works"
  1579. style="
  1580. width: 200px;
  1581. height: 140px;
  1582. margin: 10px 10px 10px 0;
  1583. box-shadow: 0 0 6px 1px #dfdada;
  1584. "
  1585. v-for="(w, wIndex) in workStudent[toolIndex]"
  1586. :key="wIndex"
  1587. >
  1588. <div class="workImg">
  1589. <img
  1590. :src="word2"
  1591. @click="downloadFile(w.works)"
  1592. alt
  1593. />
  1594. <div
  1595. class="answerScore"
  1596. v-if="w.score"
  1597. @click.stop="openScore(w)"
  1598. :class="{
  1599. rightW:
  1600. w.userid == userid || tType == 1 || tType == 4,
  1601. }"
  1602. >
  1603. {{ JSON.parse(w.score).wScore }}分
  1604. </div>
  1605. <div
  1606. class="answerScore"
  1607. @click.stop="openScore(w)"
  1608. v-else-if="courseDetail.userid == userid"
  1609. :class="{
  1610. rightW:
  1611. w.userid == userid || tType == 1 || tType == 4,
  1612. }"
  1613. >
  1614. 评分
  1615. </div>
  1616. <img
  1617. class="deleteImg"
  1618. src="../../assets/deleteworks.png"
  1619. v-if="
  1620. w.userid == userid || tType == 1 || tType == 4
  1621. "
  1622. @click.stop="deleteWorks(w.wid)"
  1623. alt
  1624. />
  1625. </div>
  1626. <div class="worksName">
  1627. <div>{{ w.sName }}</div>
  1628. </div>
  1629. </div>
  1630. </div>
  1631. </div>
  1632. <div
  1633. v-if="
  1634. tType &&
  1635. tType == 2 &&
  1636. !sIsOpen &&
  1637. tool.tool.indexOf(57) != -1
  1638. "
  1639. class="worksBox"
  1640. >
  1641. <div
  1642. class="zuoyeYulan"
  1643. v-if="workStudent[toolIndex].length > 0"
  1644. >
  1645. <span class="worksTitle">作业预览</span>
  1646. </div>
  1647. <div
  1648. class="worksDetailBox"
  1649. v-if="workStudent[toolIndex].length > 0"
  1650. >
  1651. <div
  1652. class="works"
  1653. style="
  1654. width: 200px;
  1655. height: 140px;
  1656. margin: 10px 10px 10px 0;
  1657. box-shadow: 0 0 6px 1px #dfdada;
  1658. "
  1659. v-for="(w, wIndex) in workStudent[toolIndex]"
  1660. :key="wIndex"
  1661. >
  1662. <div class="workImg">
  1663. <img
  1664. :src="word2"
  1665. @click="downloadFile(w.works)"
  1666. v-if="w.type == 12"
  1667. alt
  1668. />
  1669. <img
  1670. :src="word2"
  1671. @click="
  1672. openCocoPi(57, toolIndex, w.userid, w.sName)
  1673. "
  1674. v-else-if="w.type == 15"
  1675. alt
  1676. />
  1677. <div
  1678. class="answerScore"
  1679. v-if="w.score"
  1680. @click.stop="openScore(w)"
  1681. :class="{
  1682. rightW:
  1683. w.userid == userid || tType == 1 || tType == 4,
  1684. }"
  1685. >
  1686. {{ JSON.parse(w.score).wScore }}分
  1687. </div>
  1688. <div
  1689. class="answerScore"
  1690. @click.stop="openScore(w)"
  1691. v-else-if="courseDetail.userid == userid"
  1692. :class="{
  1693. rightW:
  1694. w.userid == userid || tType == 1 || tType == 4,
  1695. }"
  1696. >
  1697. 评分
  1698. </div>
  1699. <img
  1700. class="deleteImg"
  1701. src="../../assets/deleteworks.png"
  1702. v-if="
  1703. w.userid == userid || tType == 1 || tType == 4
  1704. "
  1705. @click.stop="deleteWorks(w.wid)"
  1706. alt
  1707. />
  1708. </div>
  1709. <div class="worksName">
  1710. <div>{{ w.sName }}</div>
  1711. </div>
  1712. </div>
  1713. </div>
  1714. </div>
  1715. <div
  1716. v-if="
  1717. tType &&
  1718. tType == 2 &&
  1719. !sIsOpen &&
  1720. tool.tool.indexOf(4) != -1
  1721. "
  1722. class="worksBox"
  1723. >
  1724. <div
  1725. class="zuoyeYulan"
  1726. v-if="workStudent[toolIndex].length > 0"
  1727. >
  1728. <span class="worksTitle">作业预览</span>
  1729. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1730. </div>
  1731. <div
  1732. class="worksDetailBox"
  1733. v-if="workStudent[toolIndex].length > 0"
  1734. >
  1735. <div
  1736. class="isWorksName2"
  1737. v-for="(w, wIndex) in workStudent[toolIndex]"
  1738. :key="wIndex"
  1739. @click="
  1740. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1741. "
  1742. >
  1743. {{ w.sName }}
  1744. <img
  1745. class="deleteImg deleteImg2"
  1746. src="../../assets/deleteworks.png"
  1747. v-if="w.userid == userid || tType == 1 || tType == 4"
  1748. @click.stop="deleteWorks(w.wid)"
  1749. alt
  1750. />
  1751. </div>
  1752. <!-- <div
  1753. class="works"
  1754. style="
  1755. width: 200px;
  1756. height: 140px;
  1757. border-radius: 10px;
  1758. box-shadow: 0 0 6px 1px #dfdada;
  1759. overflow: hidden;
  1760. "
  1761. v-for="(w, wIndex) in workStudent[toolIndex]"
  1762. :key="wIndex"
  1763. >
  1764. <div class="workImg">
  1765. <img
  1766. src="../../assets/icon/works/noImg.png"
  1767. @click="
  1768. openTools(
  1769. 4,
  1770. toolIndex,
  1771. taskCount,
  1772. w.works,
  1773. w.sName
  1774. )
  1775. "
  1776. alt
  1777. />
  1778. </div>
  1779. <div class="worksName">
  1780. <div>{{ w.sName }}</div>
  1781. <div>{{ w.time }}</div>
  1782. </div>
  1783. </div> -->
  1784. </div>
  1785. </div>
  1786. <div
  1787. v-if="
  1788. tType &&
  1789. ((tType == 2 && sIsOpen == true) ||
  1790. tType == 1 ||
  1791. tType == 4) &&
  1792. tool.tool.indexOf(62) != -1
  1793. "
  1794. class="worksBox"
  1795. >
  1796. <div
  1797. class="zuoyeYulan"
  1798. v-if="
  1799. worksStudent.length &&
  1800. worksStudent[toolIndex].length > 0
  1801. "
  1802. >
  1803. <div class="worksTop">
  1804. <div>作业预览</div>
  1805. <div
  1806. class="corOpen"
  1807. @click="contract(toolIndex)"
  1808. v-if="
  1809. (isCloseList[toolIndex].isCloseBoolean) &&
  1810. isCloseList[toolIndex].isClose == 0
  1811. "
  1812. >
  1813. 折叠
  1814. </div>
  1815. <div
  1816. class="corOpen"
  1817. @click="contract(toolIndex)"
  1818. v-if="isCloseList[toolIndex].isClose == 1"
  1819. >
  1820. 展开
  1821. </div>
  1822. </div>
  1823. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1824. </div>
  1825. <div>
  1826. <div
  1827. :id="'tool-' + toolIndex"
  1828. :style="{
  1829. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1830. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1831. }"
  1832. class="worksDetailBox"
  1833. v-if="
  1834. worksStudent.length &&
  1835. worksStudent[toolIndex].length > 0
  1836. "
  1837. >
  1838. <div
  1839. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1840. :key="wIndex"
  1841. class="isWorksName2"
  1842. @click="
  1843. openTools(
  1844. 62,
  1845. toolIndex,
  1846. taskCount,
  1847. w.works,
  1848. w.sName
  1849. )
  1850. "
  1851. >
  1852. {{ w.sName }}
  1853. <img
  1854. class="deleteImg deleteImg2"
  1855. src="../../assets/deleteworks.png"
  1856. v-if="
  1857. w.userid == userid || tType == 1 || tType == 4
  1858. "
  1859. @click.stop="deleteWorks(w.wid)"
  1860. alt
  1861. />
  1862. </div>
  1863. </div>
  1864. </div>
  1865. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1866. 未提交
  1867. </div>
  1868. <div
  1869. class="noWorksS"
  1870. v-if="noWorksS && noWorksS[toolIndex].length"
  1871. >
  1872. <div
  1873. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1874. :key="sIndex"
  1875. class="noWorksName"
  1876. >
  1877. <el-tooltip effect="dark" :content="s.student" placement="top">
  1878. <span>{{ s.student }}</span>
  1879. </el-tooltip>
  1880. </div>
  1881. </div>
  1882. </div>
  1883. <div
  1884. v-if="
  1885. tType &&
  1886. tType == 2 &&
  1887. !sIsOpen &&
  1888. tool.tool.indexOf(62) != -1
  1889. "
  1890. class="worksBox"
  1891. >
  1892. <div
  1893. class="zuoyeYulan"
  1894. v-if="workStudent[toolIndex].length > 0"
  1895. >
  1896. <span class="worksTitle">作业预览</span>
  1897. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1898. </div>
  1899. <div
  1900. class="worksDetailBox"
  1901. v-if="workStudent[toolIndex].length > 0"
  1902. >
  1903. <div
  1904. class="isWorksName2"
  1905. v-for="(w, wIndex) in workStudent[toolIndex]"
  1906. :key="wIndex"
  1907. @click="
  1908. openTools(62, toolIndex, taskCount, w.works, w.sName)
  1909. "
  1910. >
  1911. {{ w.sName }}
  1912. <img
  1913. class="deleteImg deleteImg2"
  1914. src="../../assets/deleteworks.png"
  1915. v-if="w.userid == userid || tType == 1 || tType == 4"
  1916. @click.stop="deleteWorks(w.wid)"
  1917. alt
  1918. />
  1919. </div>
  1920. </div>
  1921. </div>
  1922. <div
  1923. v-if="
  1924. tType &&
  1925. tType == 2 &&
  1926. !sIsOpen &&
  1927. tool.tool.indexOf(45) != -1
  1928. "
  1929. class="worksBox"
  1930. >
  1931. <div
  1932. class="zuoyeYulan"
  1933. v-if="workStudent[toolIndex].length > 0"
  1934. >
  1935. <span class="worksTitle">作业预览</span>
  1936. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1937. </div>
  1938. <div
  1939. class="worksDetailBox"
  1940. v-if="workStudent[toolIndex].length > 0"
  1941. >
  1942. <div
  1943. class="isWorksName2"
  1944. v-for="(w, wIndex) in workStudent[toolIndex]"
  1945. :key="wIndex"
  1946. @click="
  1947. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1948. "
  1949. >
  1950. {{ w.sName }}
  1951. <img
  1952. class="deleteImg deleteImg2"
  1953. src="../../assets/deleteworks.png"
  1954. v-if="w.userid == userid || tType == 1 || tType == 4"
  1955. @click.stop="deleteWorks(w.wid)"
  1956. alt
  1957. />
  1958. </div>
  1959. </div>
  1960. </div>
  1961. <div
  1962. v-if="
  1963. tType &&
  1964. tType == 2 &&
  1965. !sIsOpen &&
  1966. tool.tool.indexOf(69) != -1
  1967. "
  1968. class="worksBox"
  1969. >
  1970. <div
  1971. class="zuoyeYulan"
  1972. v-if="workStudent[toolIndex].length > 0"
  1973. >
  1974. <span class="worksTitle">作业预览</span>
  1975. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1976. </div>
  1977. <div
  1978. class="worksDetailBox"
  1979. v-if="workStudent[toolIndex].length > 0"
  1980. >
  1981. <div
  1982. class="isWorksName2"
  1983. v-for="(w, wIndex) in workStudent[toolIndex]"
  1984. :key="wIndex"
  1985. @click="
  1986. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1987. "
  1988. >
  1989. {{ w.sName }}
  1990. <img
  1991. class="deleteImg deleteImg2"
  1992. src="../../assets/deleteworks.png"
  1993. v-if="w.userid == userid || tType == 1 || tType == 4"
  1994. @click.stop="deleteWorks(w.wid)"
  1995. alt
  1996. />
  1997. </div>
  1998. </div>
  1999. </div>
  2000. <div
  2001. v-if="
  2002. tType &&
  2003. tType == 2 &&
  2004. !sIsOpen &&
  2005. tool.tool.indexOf(15) != -1
  2006. "
  2007. class="worksBox"
  2008. >
  2009. <div
  2010. class="zuoyeYulan"
  2011. v-if="workStudent[toolIndex].length > 0"
  2012. >
  2013. <span class="worksTitle">作业预览</span>
  2014. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2015. </div>
  2016. <div
  2017. class="worksDetailBox"
  2018. v-if="workStudent[toolIndex].length > 0"
  2019. >
  2020. <div
  2021. class="works"
  2022. v-for="(w, wIndex) in workStudent[toolIndex]"
  2023. :key="wIndex"
  2024. >
  2025. <div class="workImg">
  2026. <!-- <img
  2027. src="../../assets/icon/works/noImg.png"
  2028. @click="openTools(15, toolIndex, taskCount, w.works)"
  2029. alt=""
  2030. />-->
  2031. <div class="answerBg">
  2032. <!-- <div>{{ w.sName }}</div> -->
  2033. <el-tooltip
  2034. class="item"
  2035. effect="light"
  2036. :content="JSON.parse(w.works)[0].answer"
  2037. placement="top"
  2038. >
  2039. <div class="answerContent">
  2040. {{ JSON.parse(w.works)[0].answer }}
  2041. </div>
  2042. </el-tooltip>
  2043. <div
  2044. class="answerScore"
  2045. v-if="w.score"
  2046. @click.stop="openScore(w)"
  2047. :class="{
  2048. rightW:
  2049. w.userid == userid ||
  2050. tType == 1 ||
  2051. tType == 4,
  2052. }"
  2053. >
  2054. {{ JSON.parse(w.score).wScore }}分
  2055. </div>
  2056. <div
  2057. class="answerScore"
  2058. @click.stop="openScore(w)"
  2059. v-else-if="courseDetail.userid == userid"
  2060. :class="{
  2061. rightW:
  2062. w.userid == userid ||
  2063. tType == 1 ||
  2064. tType == 4,
  2065. }"
  2066. >
  2067. 评分
  2068. </div>
  2069. <img
  2070. class="deleteImg"
  2071. src="../../assets/deleteworks.png"
  2072. v-if="
  2073. w.userid == userid || tType == 1 || tType == 4
  2074. "
  2075. @click.stop="deleteWorks(w.wid)"
  2076. alt
  2077. />
  2078. </div>
  2079. <div class="comment">
  2080. <div class="worksName">
  2081. <div>{{ w.sName }}</div>
  2082. </div>
  2083. </div>
  2084. </div>
  2085. </div>
  2086. </div>
  2087. </div>
  2088. <div
  2089. v-if="
  2090. tType &&
  2091. tType == 2 &&
  2092. !sIsOpen &&
  2093. tool.tool.indexOf(1) != -1
  2094. "
  2095. class="worksBox"
  2096. >
  2097. <div
  2098. class="zuoyeYulan"
  2099. v-if="workStudent[toolIndex].length > 0"
  2100. >
  2101. <span class="worksTitle">作业预览</span>
  2102. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2103. </div>
  2104. <div
  2105. class="worksDetailBox"
  2106. v-if="workStudent[toolIndex].length > 0"
  2107. >
  2108. <div
  2109. class="works"
  2110. style="
  2111. width: 200px;
  2112. height: 140px;
  2113. margin: 10px 10px 10px 0;
  2114. box-shadow: 0 0 6px 1px #dfdada;
  2115. "
  2116. v-for="(w, wIndex) in workStudent[toolIndex]"
  2117. :key="wIndex"
  2118. >
  2119. <div class="workImg">
  2120. <img
  2121. :src="w.works"
  2122. @click="previewImg(w.works)"
  2123. alt
  2124. />
  2125. <div
  2126. class="answerScore"
  2127. v-if="w.score"
  2128. @click.stop="openScore(w)"
  2129. :class="{
  2130. rightW:
  2131. w.userid == userid || tType == 1 || tType == 4,
  2132. }"
  2133. >
  2134. {{ JSON.parse(w.score).wScore }}分
  2135. </div>
  2136. <div
  2137. class="answerScore"
  2138. @click.stop="openScore(w)"
  2139. v-else-if="courseDetail.userid == userid"
  2140. :class="{
  2141. rightW:
  2142. w.userid == userid || tType == 1 || tType == 4,
  2143. }"
  2144. >
  2145. 评分
  2146. </div>
  2147. <img
  2148. class="deleteImg"
  2149. src="../../assets/deleteworks.png"
  2150. v-if="
  2151. w.userid == userid || tType == 1 || tType == 4
  2152. "
  2153. @click.stop="deleteWorks(w.wid)"
  2154. alt
  2155. />
  2156. </div>
  2157. <div class="worksName">
  2158. <div>{{ w.sName }}</div>
  2159. </div>
  2160. </div>
  2161. </div>
  2162. </div>
  2163. <div
  2164. v-if="
  2165. tType &&
  2166. tType == 2 &&
  2167. !sIsOpen &&
  2168. tool.tool.indexOf(3) != -1
  2169. "
  2170. class="worksBox"
  2171. >
  2172. <div
  2173. class="zuoyeYulan"
  2174. v-if="workStudent[toolIndex].length > 0"
  2175. >
  2176. <span class="worksTitle">作业预览</span>
  2177. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2178. </div>
  2179. <div
  2180. class="worksDetailBox"
  2181. v-if="workStudent[toolIndex].length > 0"
  2182. >
  2183. <div
  2184. class="works"
  2185. style="
  2186. width: 200px;
  2187. height: 140px;
  2188. margin: 10px 10px 10px 0;
  2189. box-shadow: 0 0 6px 1px #dfdada;
  2190. "
  2191. v-for="(w, wIndex) in workStudent[toolIndex]"
  2192. :key="wIndex"
  2193. >
  2194. <div class="workImg">
  2195. <img
  2196. :src="w.works"
  2197. @click="previewImg(w.works)"
  2198. alt
  2199. />
  2200. <div
  2201. class="answerScore"
  2202. v-if="w.score"
  2203. @click.stop="openScore(w)"
  2204. :class="{
  2205. rightW:
  2206. w.userid == userid || tType == 1 || tType == 4,
  2207. }"
  2208. >
  2209. {{ JSON.parse(w.score).wScore }}分
  2210. </div>
  2211. <div
  2212. class="answerScore"
  2213. @click.stop="openScore(w)"
  2214. v-else-if="courseDetail.userid == userid"
  2215. :class="{
  2216. rightW:
  2217. w.userid == userid || tType == 1 || tType == 4,
  2218. }"
  2219. >
  2220. 评分
  2221. </div>
  2222. <img
  2223. class="deleteImg"
  2224. src="../../assets/deleteworks.png"
  2225. v-if="
  2226. w.userid == userid || tType == 1 || tType == 4
  2227. "
  2228. @click.stop="deleteWorks(w.wid)"
  2229. alt
  2230. />
  2231. </div>
  2232. <div class="worksName">
  2233. <div>{{ w.sName }}</div>
  2234. </div>
  2235. </div>
  2236. </div>
  2237. </div>
  2238. <div
  2239. v-if="
  2240. tType &&
  2241. tType == 2 &&
  2242. !sIsOpen &&
  2243. tool.tool.indexOf(6) != -1
  2244. "
  2245. class="worksBox"
  2246. >
  2247. <div
  2248. class="zuoyeYulan"
  2249. v-if="workStudent[toolIndex].length > 0"
  2250. >
  2251. <span class="worksTitle">作业预览</span>
  2252. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2253. </div>
  2254. <div
  2255. class="worksDetailBox"
  2256. v-if="workStudent[toolIndex].length > 0"
  2257. >
  2258. <div
  2259. class="works"
  2260. style="
  2261. width: 200px;
  2262. height: 140px;
  2263. margin: 10px 10px 10px 0;
  2264. box-shadow: 0 0 6px 1px #dfdada;
  2265. "
  2266. v-for="(w, wIndex) in workStudent[toolIndex]"
  2267. :key="wIndex"
  2268. >
  2269. <div class="workImg">
  2270. <img
  2271. :src="w.works"
  2272. @click="previewImg(w.works)"
  2273. alt
  2274. />
  2275. <div
  2276. class="answerScore"
  2277. v-if="w.score"
  2278. @click.stop="openScore(w)"
  2279. :class="{
  2280. rightW:
  2281. w.userid == userid || tType == 1 || tType == 4,
  2282. }"
  2283. >
  2284. {{ JSON.parse(w.score).wScore }}分
  2285. </div>
  2286. <div
  2287. class="answerScore"
  2288. @click.stop="openScore(w)"
  2289. v-else-if="courseDetail.userid == userid"
  2290. :class="{
  2291. rightW:
  2292. w.userid == userid || tType == 1 || tType == 4,
  2293. }"
  2294. >
  2295. 评分
  2296. </div>
  2297. <img
  2298. class="deleteImg"
  2299. src="../../assets/deleteworks.png"
  2300. v-if="
  2301. w.userid == userid || tType == 1 || tType == 4
  2302. "
  2303. @click.stop="deleteWorks(w.wid)"
  2304. alt
  2305. />
  2306. </div>
  2307. <div class="worksName">
  2308. <div>{{ w.sName }}</div>
  2309. </div>
  2310. </div>
  2311. </div>
  2312. </div>
  2313. <div
  2314. v-if="
  2315. tType &&
  2316. tType == 2 &&
  2317. !sIsOpen &&
  2318. tool.tool.indexOf(7) != -1
  2319. "
  2320. class="worksBox"
  2321. >
  2322. <div
  2323. class="zuoyeYulan"
  2324. v-if="workStudent[toolIndex].length > 0"
  2325. >
  2326. <span class="worksTitle">作业预览</span>
  2327. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2328. </div>
  2329. <div
  2330. class="worksDetailBox"
  2331. v-if="workStudent[toolIndex].length > 0"
  2332. >
  2333. <div
  2334. class="works"
  2335. style="
  2336. width: 200px;
  2337. height: 140px;
  2338. margin: 10px 10px 10px 0;
  2339. box-shadow: 0 0 6px 1px #dfdada;
  2340. "
  2341. v-for="(w, wIndex) in workStudent[toolIndex]"
  2342. :key="wIndex"
  2343. >
  2344. <div class="workImg">
  2345. <img
  2346. :src="w.works"
  2347. @click="previewImg(w.works)"
  2348. alt
  2349. />
  2350. <div
  2351. class="answerScore"
  2352. v-if="w.score"
  2353. @click.stop="openScore(w)"
  2354. :class="{
  2355. rightW:
  2356. w.userid == userid || tType == 1 || tType == 4,
  2357. }"
  2358. >
  2359. {{ JSON.parse(w.score).wScore }}分
  2360. </div>
  2361. <div
  2362. class="answerScore"
  2363. @click.stop="openScore(w)"
  2364. v-else-if="courseDetail.userid == userid"
  2365. :class="{
  2366. rightW:
  2367. w.userid == userid || tType == 1 || tType == 4,
  2368. }"
  2369. >
  2370. 评分
  2371. </div>
  2372. <img
  2373. class="deleteImg"
  2374. src="../../assets/deleteworks.png"
  2375. v-if="
  2376. w.userid == userid || tType == 1 || tType == 4
  2377. "
  2378. @click.stop="deleteWorks(w.wid)"
  2379. alt
  2380. />
  2381. </div>
  2382. <div class="worksName">
  2383. <div>{{ w.sName }}</div>
  2384. </div>
  2385. </div>
  2386. </div>
  2387. </div>
  2388. <div
  2389. v-if="
  2390. tType &&
  2391. tType == 2 &&
  2392. !sIsOpen &&
  2393. tool.tool.indexOf(26) != -1
  2394. "
  2395. class="worksBox"
  2396. >
  2397. <div
  2398. class="zuoyeYulan"
  2399. v-if="workStudent[toolIndex].length > 0"
  2400. >
  2401. <span class="worksTitle">作业预览</span>
  2402. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2403. </div>
  2404. <div
  2405. class="worksDetailBox"
  2406. v-if="workStudent[toolIndex].length > 0"
  2407. >
  2408. <div
  2409. class="works"
  2410. style="
  2411. width: 200px;
  2412. height: 140px;
  2413. margin: 10px 10px 10px 0;
  2414. box-shadow: 0 0 6px 1px #dfdada;
  2415. "
  2416. v-for="(w, wIndex) in workStudent[toolIndex]"
  2417. :key="wIndex"
  2418. >
  2419. <div class="workImg">
  2420. <img
  2421. :src="w.works"
  2422. @click="previewImg(w.works)"
  2423. alt
  2424. />
  2425. <img
  2426. class="deleteImg"
  2427. src="../../assets/deleteworks.png"
  2428. v-if="
  2429. w.userid == userid || tType == 1 || tType == 4
  2430. "
  2431. @click.stop="deleteWorks(w.wid)"
  2432. alt
  2433. />
  2434. </div>
  2435. <div class="worksName">
  2436. <div>{{ w.sName }}</div>
  2437. </div>
  2438. </div>
  2439. </div>
  2440. </div>
  2441. <div
  2442. v-if="
  2443. tType &&
  2444. ((tType == 2 && sIsOpen == true) ||
  2445. tType == 1 ||
  2446. tType == 4) &&
  2447. tool.tool.indexOf(16) != -1
  2448. "
  2449. class="worksBox"
  2450. >
  2451. <div
  2452. class="zuoyeYulan"
  2453. v-if="
  2454. (worksStudent.length &&
  2455. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2456. "
  2457. >
  2458. <div class="worksTop">
  2459. <div>作业预览</div>
  2460. <div
  2461. class="corOpen"
  2462. @click="contract(toolIndex)"
  2463. v-if="
  2464. (isCloseList[toolIndex].isCloseBoolean) &&
  2465. isCloseList[toolIndex].isClose == 0
  2466. "
  2467. >
  2468. 折叠
  2469. </div>
  2470. <div
  2471. class="corOpen"
  2472. @click="contract(toolIndex)"
  2473. v-if="isCloseList[toolIndex].isClose == 1"
  2474. >
  2475. 展开
  2476. </div>
  2477. </div>
  2478. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2479. </div>
  2480. <div
  2481. class="group_workBox"
  2482. v-for="(g, gindex) in courseGroup.group"
  2483. :key="gindex"
  2484. >
  2485. <div class="group_box">
  2486. <div class="group_title">
  2487. <el-tooltip
  2488. class="item"
  2489. effect="light"
  2490. :content="g.name"
  2491. placement="top"
  2492. >
  2493. <div class="group_name">{{ g.name }}</div>
  2494. </el-tooltip>
  2495. </div>
  2496. <div
  2497. class="group_work"
  2498. v-if="
  2499. g.works &&
  2500. g.works.length &&
  2501. g.works[toolIndex].length
  2502. "
  2503. >
  2504. <div
  2505. class="works"
  2506. style="
  2507. width: 200px;
  2508. height: 140px;
  2509. margin: 10px 10px 10px 0;
  2510. border-radius: 15px;
  2511. box-shadow: 0 0 6px 1px #dfdada;
  2512. "
  2513. v-for="(w, wIndex) in g.works[toolIndex]"
  2514. :key="wIndex"
  2515. :class="w.type == 1 ? 'isTypeOne' : ''"
  2516. >
  2517. <div class="workImg" v-if="w.type == 0">
  2518. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2519. <img
  2520. :src="w.works"
  2521. @click="previewImg(w.works)"
  2522. alt
  2523. />
  2524. <div
  2525. class="answerScore"
  2526. v-if="w.score"
  2527. @click.stop="openScore(w)"
  2528. :class="{
  2529. rightW:
  2530. w.userid == userid ||
  2531. tType == 1 ||
  2532. tType == 4 ||
  2533. w.ateacher == userid,
  2534. }"
  2535. >
  2536. {{ JSON.parse(w.score).wScore }}分
  2537. </div>
  2538. <div
  2539. class="answerScore"
  2540. @click.stop="openScore(w)"
  2541. v-else-if="courseDetail.userid == userid"
  2542. :class="{
  2543. rightW:
  2544. w.userid == userid ||
  2545. tType == 1 ||
  2546. tType == 4 ||
  2547. w.ateacher == userid,
  2548. }"
  2549. >
  2550. 评分
  2551. </div>
  2552. <img
  2553. class="deleteImg"
  2554. src="../../assets/deleteworks.png"
  2555. v-if="
  2556. w.userid == userid || tType == 1 || tType == 4
  2557. "
  2558. @click.stop="deleteWorks(w.wid)"
  2559. alt
  2560. />
  2561. </div>
  2562. <div class="workImg" v-if="w.type == 1">
  2563. <img :src="word" @click="openFile(w.works)" alt />
  2564. <!-- @click="openFile(w.works)" -->
  2565. <div
  2566. class="answerScore"
  2567. v-if="w.score"
  2568. @click.stop="openScore(w)"
  2569. :class="{
  2570. rightW:
  2571. w.userid == userid ||
  2572. tType == 1 ||
  2573. tType == 4 ||
  2574. w.ateacher == userid,
  2575. }"
  2576. >
  2577. {{ JSON.parse(w.score).wScore }}分
  2578. </div>
  2579. <div
  2580. class="answerScore"
  2581. @click.stop="openScore(w)"
  2582. v-else-if="courseDetail.userid == userid"
  2583. :class="{
  2584. rightW:
  2585. w.userid == userid ||
  2586. tType == 1 ||
  2587. tType == 4 ||
  2588. w.ateacher == userid,
  2589. }"
  2590. >
  2591. 评分
  2592. </div>
  2593. <img
  2594. class="deleteImg"
  2595. src="../../assets/deleteworks.png"
  2596. v-if="
  2597. w.userid == userid || tType == 1 || tType == 4
  2598. "
  2599. @click.stop="deleteWorks(w.wid)"
  2600. alt
  2601. />
  2602. </div>
  2603. <div class="workImg" v-if="w.type == 3">
  2604. <img
  2605. style="cursor: pointer"
  2606. :src="video"
  2607. @click="openVideo(w)"
  2608. alt
  2609. />
  2610. <!-- @click="openVideo(w.works)" -->
  2611. <div
  2612. class="answerScore"
  2613. v-if="w.score"
  2614. @click.stop="openScore(w)"
  2615. :class="{
  2616. rightW:
  2617. w.userid == userid ||
  2618. tType == 1 ||
  2619. tType == 4 ||
  2620. w.ateacher == userid,
  2621. }"
  2622. >
  2623. {{ JSON.parse(w.score).wScore }}分
  2624. </div>
  2625. <div
  2626. class="answerScore"
  2627. @click.stop="openScore(w)"
  2628. v-else-if="courseDetail.userid == userid"
  2629. :class="{
  2630. rightW:
  2631. w.userid == userid ||
  2632. tType == 1 ||
  2633. tType == 4 ||
  2634. w.ateacher == userid,
  2635. }"
  2636. >
  2637. 评分
  2638. </div>
  2639. <img
  2640. class="deleteImg"
  2641. src="../../assets/deleteworks.png"
  2642. v-if="
  2643. w.userid == userid || tType == 1 || tType == 4
  2644. "
  2645. @click.stop="deleteWorks(w.wid)"
  2646. alt
  2647. />
  2648. </div>
  2649. <div class="workImg" v-if="w.type == 12">
  2650. <img
  2651. style="cursor: pointer"
  2652. :src="word2"
  2653. @click="downloadFile(w.works)"
  2654. alt
  2655. />
  2656. <!-- @click="openVideo(w.works)" -->
  2657. <div
  2658. class="answerScore"
  2659. v-if="w.score"
  2660. @click.stop="openScore(w)"
  2661. :class="{
  2662. rightW:
  2663. w.userid == userid ||
  2664. tType == 1 ||
  2665. tType == 4 ||
  2666. w.ateacher == userid,
  2667. }"
  2668. >
  2669. {{ JSON.parse(w.score).wScore }}分
  2670. </div>
  2671. <div
  2672. class="answerScore"
  2673. @click.stop="openScore(w)"
  2674. v-else-if="courseDetail.userid == userid"
  2675. :class="{
  2676. rightW:
  2677. w.userid == userid ||
  2678. tType == 1 ||
  2679. tType == 4 ||
  2680. w.ateacher == userid,
  2681. }"
  2682. >
  2683. 评分
  2684. </div>
  2685. <img
  2686. class="deleteImg"
  2687. src="../../assets/deleteworks.png"
  2688. v-if="
  2689. w.userid == userid || tType == 1 || tType == 4
  2690. "
  2691. @click.stop="deleteWorks(w.wid)"
  2692. alt
  2693. />
  2694. </div>
  2695. <div class="comment" style="min-width: 200px">
  2696. <div class="worksName">
  2697. <div>{{ w.sName }}</div>
  2698. </div>
  2699. <div class="commentList">
  2700. <div class="commentList">
  2701. <div
  2702. class="commentImg"
  2703. @click="
  2704. isLikes(w.wid, userid, 1, null, w.isLikes)
  2705. "
  2706. >
  2707. <img
  2708. :src="w.isLikes == true ? likes : noLikes"
  2709. alt=""
  2710. />
  2711. </div>
  2712. <div>{{ w.likesCount }}</div>
  2713. </div>
  2714. <div
  2715. class="commentList"
  2716. style="margin-right: 15px"
  2717. >
  2718. <div
  2719. class="commentImg"
  2720. @click="
  2721. commentOther(
  2722. w,
  2723. toolIndex,
  2724. wIndex,
  2725. null,
  2726. g.id
  2727. )
  2728. "
  2729. >
  2730. <img
  2731. src="../../assets/icon/comment/comment.png"
  2732. alt=""
  2733. />
  2734. </div>
  2735. <div>{{ w.commentCount }}</div>
  2736. </div>
  2737. </div>
  2738. </div>
  2739. </div>
  2740. </div>
  2741. <div class="group_work" v-else>暂无提交作业</div>
  2742. </div>
  2743. </div>
  2744. <div
  2745. :id="'tool-' + toolIndex"
  2746. :style="{
  2747. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2748. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2749. }"
  2750. class="worksDetailBox"
  2751. v-if="
  2752. worksStudent.length &&
  2753. worksStudent[toolIndex].length > 0
  2754. "
  2755. >
  2756. <div
  2757. class="works"
  2758. style="
  2759. width: 200px;
  2760. height: 140px;
  2761. margin: 10px 10px 10px 0;
  2762. border-radius: 15px;
  2763. box-shadow: 0 0 6px 1px #dfdada;
  2764. "
  2765. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2766. :key="wIndex"
  2767. :class="w.type == 1 ? 'isTypeOne' : ''"
  2768. >
  2769. <div class="workImg" v-if="w.type == 0">
  2770. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2771. <img
  2772. :src="w.works"
  2773. @click="previewImg(w.works)"
  2774. alt
  2775. />
  2776. <div
  2777. class="answerScore"
  2778. v-if="w.score"
  2779. @click.stop="openScore(w)"
  2780. :class="{
  2781. rightW:
  2782. w.userid == userid ||
  2783. tType == 1 ||
  2784. tType == 4 ||
  2785. w.ateacher == userid,
  2786. }"
  2787. >
  2788. {{ JSON.parse(w.score).wScore }}分
  2789. </div>
  2790. <div
  2791. class="answerScore"
  2792. @click.stop="openScore(w)"
  2793. v-else-if="courseDetail.userid == userid"
  2794. :class="{
  2795. rightW:
  2796. w.userid == userid ||
  2797. tType == 1 ||
  2798. tType == 4 ||
  2799. w.ateacher == userid,
  2800. }"
  2801. >
  2802. 评分
  2803. </div>
  2804. <img
  2805. class="deleteImg"
  2806. src="../../assets/deleteworks.png"
  2807. v-if="
  2808. w.userid == userid || tType == 1 || tType == 4
  2809. "
  2810. @click.stop="deleteWorks(w.wid)"
  2811. alt
  2812. />
  2813. </div>
  2814. <div class="workImg" v-if="w.type == 1">
  2815. <img :src="word" @click="openFile(w.works)" alt />
  2816. <!-- @click="openFile(w.works)" -->
  2817. <div
  2818. class="answerScore"
  2819. v-if="w.score"
  2820. @click.stop="openScore(w)"
  2821. :class="{
  2822. rightW:
  2823. w.userid == userid ||
  2824. tType == 1 ||
  2825. tType == 4 ||
  2826. w.ateacher == userid,
  2827. }"
  2828. >
  2829. {{ JSON.parse(w.score).wScore }}分
  2830. </div>
  2831. <div
  2832. class="answerScore"
  2833. @click.stop="openScore(w)"
  2834. v-else-if="courseDetail.userid == userid"
  2835. :class="{
  2836. rightW:
  2837. w.userid == userid ||
  2838. tType == 1 ||
  2839. tType == 4 ||
  2840. w.ateacher == userid,
  2841. }"
  2842. >
  2843. 评分
  2844. </div>
  2845. <img
  2846. class="deleteImg"
  2847. src="../../assets/deleteworks.png"
  2848. v-if="
  2849. w.userid == userid || tType == 1 || tType == 4
  2850. "
  2851. @click.stop="deleteWorks(w.wid)"
  2852. alt
  2853. />
  2854. </div>
  2855. <div class="workImg" v-if="w.type == 3">
  2856. <img
  2857. style="cursor: pointer"
  2858. :src="video"
  2859. @click="openVideo(w)"
  2860. alt
  2861. />
  2862. <!-- @click="openVideo(w.works)" -->
  2863. <div
  2864. class="answerScore"
  2865. v-if="w.score"
  2866. @click.stop="openScore(w)"
  2867. :class="{
  2868. rightW:
  2869. w.userid == userid ||
  2870. tType == 1 ||
  2871. tType == 4 ||
  2872. w.ateacher == userid,
  2873. }"
  2874. >
  2875. {{ JSON.parse(w.score).wScore }}分
  2876. </div>
  2877. <div
  2878. class="answerScore"
  2879. @click.stop="openScore(w)"
  2880. v-else-if="courseDetail.userid == userid"
  2881. :class="{
  2882. rightW:
  2883. w.userid == userid ||
  2884. tType == 1 ||
  2885. tType == 4 ||
  2886. w.ateacher == userid,
  2887. }"
  2888. >
  2889. 评分
  2890. </div>
  2891. <img
  2892. class="deleteImg"
  2893. src="../../assets/deleteworks.png"
  2894. v-if="
  2895. w.userid == userid || tType == 1 || tType == 4
  2896. "
  2897. @click.stop="deleteWorks(w.wid)"
  2898. alt
  2899. />
  2900. </div>
  2901. <div class="workImg" v-if="w.type == 12">
  2902. <img
  2903. style="cursor: pointer"
  2904. :src="word2"
  2905. @click="downloadFile(w.works)"
  2906. alt
  2907. />
  2908. <!-- @click="openVideo(w.works)" -->
  2909. <div
  2910. class="answerScore"
  2911. v-if="w.score"
  2912. @click.stop="openScore(w)"
  2913. :class="{
  2914. rightW:
  2915. w.userid == userid ||
  2916. tType == 1 ||
  2917. tType == 4 ||
  2918. w.ateacher == userid,
  2919. }"
  2920. >
  2921. {{ JSON.parse(w.score).wScore }}分
  2922. </div>
  2923. <div
  2924. class="answerScore"
  2925. @click.stop="openScore(w)"
  2926. v-else-if="courseDetail.userid == userid"
  2927. :class="{
  2928. rightW:
  2929. w.userid == userid ||
  2930. tType == 1 ||
  2931. tType == 4 ||
  2932. w.ateacher == userid,
  2933. }"
  2934. >
  2935. 评分
  2936. </div>
  2937. <img
  2938. class="deleteImg"
  2939. src="../../assets/deleteworks.png"
  2940. v-if="
  2941. w.userid == userid || tType == 1 || tType == 4
  2942. "
  2943. @click.stop="deleteWorks(w.wid)"
  2944. alt
  2945. />
  2946. </div>
  2947. <div class="comment" style="min-width: 200px">
  2948. <div class="worksName">
  2949. <div>{{ w.sName }}</div>
  2950. </div>
  2951. <div class="commentList">
  2952. <div class="commentList">
  2953. <div
  2954. class="commentImg"
  2955. @click="
  2956. isLikes(w.wid, userid, 1, null, w.isLikes)
  2957. "
  2958. >
  2959. <img
  2960. :src="w.isLikes == true ? likes : noLikes"
  2961. alt=""
  2962. />
  2963. </div>
  2964. <div>{{ w.likesCount }}</div>
  2965. </div>
  2966. <div class="commentList" style="margin-right: 15px">
  2967. <div
  2968. class="commentImg"
  2969. @click="commentOther(w, toolIndex, wIndex)"
  2970. >
  2971. <img
  2972. src="../../assets/icon/comment/comment.png"
  2973. alt=""
  2974. />
  2975. </div>
  2976. <div>{{ w.commentCount }}</div>
  2977. </div>
  2978. </div>
  2979. </div>
  2980. </div>
  2981. </div>
  2982. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2983. 未提交
  2984. </div>
  2985. <div
  2986. class="noWorksS"
  2987. v-if="noWorksS && noWorksS[toolIndex].length"
  2988. >
  2989. <div
  2990. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2991. :key="sIndex"
  2992. class="noWorksName"
  2993. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2994. >
  2995. <el-tooltip effect="dark" :content="s.student" placement="top">
  2996. <span>{{ s.student }}</span>
  2997. </el-tooltip>
  2998. </div>
  2999. </div>
  3000. </div>
  3001. <div
  3002. v-if="
  3003. tType &&
  3004. ((tType == 2 && sIsOpen == true) ||
  3005. tType == 1 ||
  3006. tType == 4) &&
  3007. tool.tool.indexOf(70) != -1
  3008. "
  3009. class="worksBox"
  3010. >
  3011. <div
  3012. class="zuoyeYulan"
  3013. v-if="
  3014. (worksStudent.length &&
  3015. worksStudent[toolIndex].length > 0)
  3016. "
  3017. >
  3018. <div class="worksTop">
  3019. <div>作业预览</div>
  3020. <div
  3021. class="corOpen"
  3022. @click="contract(toolIndex)"
  3023. v-if="
  3024. (isCloseList[toolIndex].isCloseBoolean) &&
  3025. isCloseList[toolIndex].isClose == 0
  3026. "
  3027. >
  3028. 折叠
  3029. </div>
  3030. <div
  3031. class="corOpen"
  3032. @click="contract(toolIndex)"
  3033. v-if="isCloseList[toolIndex].isClose == 1"
  3034. >
  3035. 展开
  3036. </div>
  3037. </div>
  3038. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3039. </div>
  3040. <div
  3041. :id="'tool-' + toolIndex"
  3042. :style="{
  3043. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3044. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3045. }"
  3046. class="worksDetailBox"
  3047. v-if="
  3048. worksStudent.length &&
  3049. worksStudent[toolIndex].length > 0
  3050. "
  3051. >
  3052. <div
  3053. class="works"
  3054. style="
  3055. width: 200px;
  3056. height: 140px;
  3057. margin: 10px 10px 10px 0;
  3058. border-radius: 15px;
  3059. box-shadow: 0 0 6px 1px #dfdada;
  3060. "
  3061. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3062. :key="wIndex"
  3063. :class="w.type == 1 ? 'isTypeOne' : ''"
  3064. >
  3065. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3066. <img :src="word" alt />
  3067. <img
  3068. class="deleteImg"
  3069. src="../../assets/deleteworks.png"
  3070. v-if="
  3071. w.userid == userid || tType == 1 || tType == 4
  3072. "
  3073. @click.stop="deleteWorks(w.wid)"
  3074. alt
  3075. />
  3076. </div>
  3077. <div class="comment" style="min-width: 200px">
  3078. <div class="worksName">
  3079. <div>{{ w.sName }}</div>
  3080. </div>
  3081. </div>
  3082. </div>
  3083. </div>
  3084. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3085. 未提交
  3086. </div>
  3087. <div
  3088. class="noWorksS"
  3089. v-if="noWorksS && noWorksS[toolIndex].length"
  3090. >
  3091. <div
  3092. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3093. :key="sIndex"
  3094. class="noWorksName"
  3095. >
  3096. <el-tooltip effect="dark" :content="s.student" placement="top">
  3097. <span>{{ s.student }}</span>
  3098. </el-tooltip>
  3099. </div>
  3100. </div>
  3101. </div>
  3102. <div
  3103. v-if="
  3104. tType &&
  3105. tType == 2 &&
  3106. !sIsOpen &&
  3107. tool.tool.indexOf(70) != -1
  3108. "
  3109. class="worksBox"
  3110. >
  3111. <div
  3112. class="zuoyeYulan"
  3113. v-if="workStudent[toolIndex].length > 0"
  3114. >
  3115. <span class="worksTitle">作业预览</span>
  3116. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3117. </div>
  3118. <div
  3119. class="worksDetailBox"
  3120. v-if="workStudent[toolIndex].length > 0"
  3121. >
  3122. <div
  3123. class="works"
  3124. style="
  3125. width: 200px;
  3126. height: 140px;
  3127. margin: 10px 10px 10px 0;
  3128. box-shadow: 0 0 6px 1px #dfdada;
  3129. "
  3130. v-for="(w, wIndex) in workStudent[toolIndex]"
  3131. :key="wIndex"
  3132. >
  3133. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3134. <img :src="word" alt />
  3135. <img
  3136. class="deleteImg"
  3137. src="../../assets/deleteworks.png"
  3138. v-if="
  3139. w.userid == userid || tType == 1 || tType == 4
  3140. "
  3141. @click.stop="deleteWorks(w.wid)"
  3142. alt
  3143. />
  3144. </div>
  3145. <div class="worksName">
  3146. <div>{{ w.sName }}</div>
  3147. </div>
  3148. </div>
  3149. </div>
  3150. </div>
  3151. <div
  3152. v-if="
  3153. tType &&
  3154. ((tType == 2 && sIsOpen == true) ||
  3155. tType == 1 ||
  3156. tType == 4) &&
  3157. tool.tool.indexOf(32) != -1
  3158. "
  3159. class="worksBox"
  3160. >
  3161. <div
  3162. class="zuoyeYulan"
  3163. v-if="
  3164. worksStudent.length &&
  3165. worksStudent[toolIndex].length > 0
  3166. "
  3167. >
  3168. <div class="worksTop">
  3169. <div>作业预览</div>
  3170. <div
  3171. class="corOpen"
  3172. @click="contract(toolIndex)"
  3173. v-if="
  3174. (isCloseList[toolIndex].isCloseBoolean) &&
  3175. isCloseList[toolIndex].isClose == 0
  3176. "
  3177. >
  3178. 折叠
  3179. </div>
  3180. <div
  3181. class="corOpen"
  3182. @click="contract(toolIndex)"
  3183. v-if="isCloseList[toolIndex].isClose == 1"
  3184. >
  3185. 展开
  3186. </div>
  3187. </div>
  3188. </div>
  3189. <div
  3190. :id="'tool-' + toolIndex"
  3191. :style="{
  3192. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3193. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3194. }"
  3195. class="worksDetailBox"
  3196. v-if="
  3197. worksStudent.length &&
  3198. worksStudent[toolIndex].length > 0
  3199. "
  3200. >
  3201. <div
  3202. class="works"
  3203. style="
  3204. width: 200px;
  3205. height: 140px;
  3206. margin: 10px 10px 10px 0;
  3207. border-radius: 15px;
  3208. box-shadow: 0 0 6px 1px #dfdada;
  3209. "
  3210. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3211. :key="wIndex"
  3212. :class="w.type == 1 ? 'isTypeOne' : ''"
  3213. >
  3214. <div class="workImg">
  3215. <img
  3216. :src="word2"
  3217. @click="downloadFile(w.works)"
  3218. alt
  3219. />
  3220. <div
  3221. class="answerScore"
  3222. v-if="w.score"
  3223. @click.stop="openScore(w)"
  3224. :class="{
  3225. rightW:
  3226. w.userid == userid ||
  3227. tType == 1 ||
  3228. tType == 4 ||
  3229. w.ateacher == userid,
  3230. }"
  3231. >
  3232. {{ JSON.parse(w.score).wScore }}分
  3233. </div>
  3234. <div
  3235. class="answerScore"
  3236. @click.stop="openScore(w)"
  3237. v-else-if="courseDetail.userid == userid"
  3238. :class="{
  3239. rightW:
  3240. w.userid == userid ||
  3241. tType == 1 ||
  3242. tType == 4 ||
  3243. w.ateacher == userid,
  3244. }"
  3245. >
  3246. 评分
  3247. </div>
  3248. <img
  3249. class="deleteImg"
  3250. src="../../assets/deleteworks.png"
  3251. v-if="
  3252. w.userid == userid || tType == 1 || tType == 4
  3253. "
  3254. @click.stop="deleteWorks(w.wid)"
  3255. alt
  3256. />
  3257. </div>
  3258. <div class="comment" style="min-width: 200px">
  3259. <div class="worksName">
  3260. <div>{{ w.sName }}</div>
  3261. </div>
  3262. <div class="commentList">
  3263. <div class="commentList">
  3264. <div
  3265. class="commentImg"
  3266. @click="
  3267. isLikes(w.wid, userid, 1, null, w.isLikes)
  3268. "
  3269. >
  3270. <img
  3271. :src="w.isLikes == true ? likes : noLikes"
  3272. alt=""
  3273. />
  3274. </div>
  3275. <div>{{ w.likesCount }}</div>
  3276. </div>
  3277. <div class="commentList" style="margin-right: 15px">
  3278. <div
  3279. class="commentImg"
  3280. @click="commentOther(w, toolIndex, wIndex)"
  3281. >
  3282. <img
  3283. src="../../assets/icon/comment/comment.png"
  3284. alt=""
  3285. />
  3286. </div>
  3287. <div>{{ w.commentCount }}</div>
  3288. </div>
  3289. </div>
  3290. </div>
  3291. </div>
  3292. </div>
  3293. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3294. 未提交
  3295. </div>
  3296. <div
  3297. class="noWorksS"
  3298. v-if="noWorksS && noWorksS[toolIndex].length"
  3299. >
  3300. <div
  3301. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3302. :key="sIndex"
  3303. class="noWorksName"
  3304. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3305. >
  3306. <el-tooltip effect="dark" :content="s.student" placement="top">
  3307. <span>{{ s.student }}</span>
  3308. </el-tooltip>
  3309. </div>
  3310. </div>
  3311. </div>
  3312. <div
  3313. v-if="
  3314. tType &&
  3315. ((tType == 2 && sIsOpen == true) ||
  3316. tType == 1 ||
  3317. tType == 4) &&
  3318. tool.tool.indexOf(57) != -1
  3319. "
  3320. class="worksBox"
  3321. >
  3322. <div
  3323. class="zuoyeYulan"
  3324. v-if="
  3325. worksStudent.length &&
  3326. worksStudent[toolIndex].length > 0
  3327. "
  3328. >
  3329. <div class="worksTop">
  3330. <div>作业预览</div>
  3331. <div
  3332. class="corOpen"
  3333. @click="contract(toolIndex)"
  3334. v-if="
  3335. (isCloseList[toolIndex].isCloseBoolean) &&
  3336. isCloseList[toolIndex].isClose == 0
  3337. "
  3338. >
  3339. 折叠
  3340. </div>
  3341. <div
  3342. class="corOpen"
  3343. @click="contract(toolIndex)"
  3344. v-if="isCloseList[toolIndex].isClose == 1"
  3345. >
  3346. 展开
  3347. </div>
  3348. </div>
  3349. </div>
  3350. <div
  3351. :id="'tool-' + toolIndex"
  3352. :style="{
  3353. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3354. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3355. }"
  3356. class="worksDetailBox"
  3357. v-if="
  3358. worksStudent.length &&
  3359. worksStudent[toolIndex].length > 0
  3360. "
  3361. >
  3362. <div
  3363. class="works"
  3364. style="
  3365. width: 200px;
  3366. height: 140px;
  3367. margin: 10px 10px 10px 0;
  3368. border-radius: 15px;
  3369. box-shadow: 0 0 6px 1px #dfdada;
  3370. "
  3371. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3372. :key="wIndex"
  3373. :class="w.type == 1 ? 'isTypeOne' : ''"
  3374. >
  3375. <div class="workImg">
  3376. <img
  3377. :src="word2"
  3378. @click="downloadFile(w.works)"
  3379. v-if="w.type == 12"
  3380. alt
  3381. />
  3382. <img
  3383. :src="word2"
  3384. @click="
  3385. openCocoPi(57, toolIndex, w.userid, w.sName)
  3386. "
  3387. v-else-if="w.type == 15"
  3388. alt
  3389. />
  3390. <div
  3391. class="answerScore"
  3392. v-if="w.score"
  3393. @click.stop="openScore(w)"
  3394. :class="{
  3395. rightW:
  3396. w.userid == userid ||
  3397. tType == 1 ||
  3398. tType == 4 ||
  3399. w.ateacher == userid,
  3400. }"
  3401. >
  3402. {{ JSON.parse(w.score).wScore }}分
  3403. </div>
  3404. <div
  3405. class="answerScore"
  3406. @click.stop="openScore(w)"
  3407. v-else-if="courseDetail.userid == userid"
  3408. :class="{
  3409. rightW:
  3410. w.userid == userid ||
  3411. tType == 1 ||
  3412. tType == 4 ||
  3413. w.ateacher == userid,
  3414. }"
  3415. >
  3416. 评分
  3417. </div>
  3418. <img
  3419. class="deleteImg"
  3420. src="../../assets/deleteworks.png"
  3421. v-if="
  3422. w.userid == userid || tType == 1 || tType == 4
  3423. "
  3424. @click.stop="deleteWorks(w.wid)"
  3425. alt
  3426. />
  3427. </div>
  3428. <div class="comment" style="min-width: 200px">
  3429. <div class="worksName">
  3430. <div>{{ w.sName }}</div>
  3431. </div>
  3432. <div class="commentList">
  3433. <div class="commentList">
  3434. <div
  3435. class="commentImg"
  3436. @click="
  3437. isLikes(w.wid, userid, 1, null, w.isLikes)
  3438. "
  3439. >
  3440. <img
  3441. :src="w.isLikes == true ? likes : noLikes"
  3442. alt=""
  3443. />
  3444. </div>
  3445. <div>{{ w.likesCount }}</div>
  3446. </div>
  3447. <div class="commentList" style="margin-right: 15px">
  3448. <div
  3449. class="commentImg"
  3450. @click="commentOther(w, toolIndex, wIndex)"
  3451. >
  3452. <img
  3453. src="../../assets/icon/comment/comment.png"
  3454. alt=""
  3455. />
  3456. </div>
  3457. <div>{{ w.commentCount }}</div>
  3458. </div>
  3459. </div>
  3460. </div>
  3461. </div>
  3462. </div>
  3463. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3464. 未提交
  3465. </div>
  3466. <div
  3467. class="noWorksS"
  3468. v-if="noWorksS && noWorksS[toolIndex].length"
  3469. >
  3470. <div
  3471. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3472. :key="sIndex"
  3473. class="noWorksName"
  3474. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3475. >
  3476. <el-tooltip effect="dark" :content="s.student" placement="top">
  3477. <span>{{ s.student }}</span>
  3478. </el-tooltip>
  3479. </div>
  3480. </div>
  3481. </div>
  3482. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3483. <div
  3484. class="zuoyeYulan"
  3485. v-if="
  3486. worksStudent.length &&
  3487. worksStudent[toolIndex].length > 0
  3488. "
  3489. >
  3490. <span class="worksTitle">作业预览</span>
  3491. <div
  3492. class="corOpen"
  3493. @click="contract(toolIndex)"
  3494. v-if="
  3495. (isCloseList[toolIndex].isCloseBoolean) &&
  3496. isCloseList[toolIndex].isClose == 0
  3497. "
  3498. >
  3499. 折叠
  3500. </div>
  3501. <div
  3502. class="corOpen"
  3503. @click="contract(toolIndex)"
  3504. v-if="isCloseList[toolIndex].isClose == 1"
  3505. >
  3506. 展开
  3507. </div>
  3508. </div>
  3509. <div
  3510. :id="'tool-' + toolIndex"
  3511. :style="{
  3512. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3513. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3514. }"
  3515. class="worksDetailBox"
  3516. v-if="
  3517. worksStudent.length &&
  3518. worksStudent[toolIndex].length > 0
  3519. "
  3520. >
  3521. <div
  3522. class="works"
  3523. style="
  3524. width: 200px;
  3525. height: 140px;
  3526. margin: 10px 10px 10px 0;
  3527. border-radius: 15px;
  3528. box-shadow: 0 0 6px 1px #dfdada;
  3529. "
  3530. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3531. :key="wIndex"
  3532. :class="w.type == 1 ? 'isTypeOne' : ''"
  3533. >
  3534. <div class="workImg" v-if="w.type == 0">
  3535. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3536. <img
  3537. :src="w.works"
  3538. @click="previewImg(w.works)"
  3539. alt
  3540. />
  3541. <div
  3542. class="answerScore"
  3543. v-if="w.score"
  3544. @click.stop="openScore(w)"
  3545. :class="{
  3546. rightW:
  3547. w.userid == userid ||
  3548. tType == 1 ||
  3549. tType == 4 ||
  3550. w.ateacher == userid,
  3551. }"
  3552. >
  3553. {{ JSON.parse(w.score).wScore }}分
  3554. </div>
  3555. <div
  3556. class="answerScore"
  3557. @click.stop="openScore(w)"
  3558. v-else-if="courseDetail.userid == userid"
  3559. :class="{
  3560. rightW:
  3561. w.userid == userid ||
  3562. tType == 1 ||
  3563. tType == 4 ||
  3564. w.ateacher == userid,
  3565. }"
  3566. >
  3567. 评分
  3568. </div>
  3569. <img
  3570. class="deleteImg"
  3571. src="../../assets/deleteworks.png"
  3572. v-if="
  3573. w.userid == userid || tType == 1 || tType == 4
  3574. "
  3575. @click.stop="deleteWorks(w.wid)"
  3576. alt
  3577. />
  3578. </div>
  3579. <div
  3580. class="workImg"
  3581. style="cursor: pointer"
  3582. v-if="w.type == 1"
  3583. >
  3584. <img :src="word" @click="openFile(w.works)" alt />
  3585. <!-- @click="openFile(w.works)" -->
  3586. <div
  3587. class="answerScore"
  3588. v-if="w.score"
  3589. @click.stop="openScore(w)"
  3590. :class="{
  3591. rightW:
  3592. w.userid == userid ||
  3593. tType == 1 ||
  3594. tType == 4 ||
  3595. w.ateacher == userid,
  3596. }"
  3597. >
  3598. {{ JSON.parse(w.score).wScore }}分
  3599. </div>
  3600. <div
  3601. class="answerScore"
  3602. @click.stop="openScore(w)"
  3603. v-else-if="courseDetail.userid == userid"
  3604. :class="{
  3605. rightW:
  3606. w.userid == userid ||
  3607. tType == 1 ||
  3608. tType == 4 ||
  3609. w.ateacher == userid,
  3610. }"
  3611. >
  3612. 评分
  3613. </div>
  3614. <img
  3615. class="deleteImg"
  3616. src="../../assets/deleteworks.png"
  3617. v-if="
  3618. w.userid == userid || tType == 1 || tType == 4
  3619. "
  3620. @click.stop="deleteWorks(w.wid)"
  3621. alt
  3622. />
  3623. </div>
  3624. <div class="workImg" v-if="w.type == 3">
  3625. <img
  3626. style="cursor: pointer"
  3627. :src="video"
  3628. @click="openVideo(w)"
  3629. alt
  3630. />
  3631. <!-- @click="openVideo(w.works)" -->
  3632. <div
  3633. class="answerScore"
  3634. v-if="w.score"
  3635. @click.stop="openScore(w)"
  3636. :class="{
  3637. rightW:
  3638. w.userid == userid ||
  3639. tType == 1 ||
  3640. tType == 4 ||
  3641. w.ateacher == userid,
  3642. }"
  3643. >
  3644. {{ JSON.parse(w.score).wScore }}分
  3645. </div>
  3646. <div
  3647. class="answerScore"
  3648. @click.stop="openScore(w)"
  3649. v-else-if="courseDetail.userid == userid"
  3650. :class="{
  3651. rightW:
  3652. w.userid == userid ||
  3653. tType == 1 ||
  3654. tType == 4 ||
  3655. w.ateacher == userid,
  3656. }"
  3657. >
  3658. 评分
  3659. </div>
  3660. <img
  3661. class="deleteImg"
  3662. src="../../assets/deleteworks.png"
  3663. v-if="
  3664. w.userid == userid || tType == 1 || tType == 4
  3665. "
  3666. @click.stop="deleteWorks(w.wid)"
  3667. alt
  3668. />
  3669. </div>
  3670. <div class="comment" style="min-width: 200px">
  3671. <div class="worksName">
  3672. <div
  3673. style="cursor: pointer"
  3674. @click="
  3675. openSname(w.sName, w.wid, toolIndex, w.userid)
  3676. "
  3677. >
  3678. {{ w.sName }}
  3679. </div>
  3680. </div>
  3681. <div class="commentList">
  3682. <div class="commentList">
  3683. <div
  3684. class="commentImg"
  3685. @click="
  3686. isLikes(w.wid, userid, 1, null, w.isLikes)
  3687. "
  3688. >
  3689. <img
  3690. :src="w.isLikes == true ? likes : noLikes"
  3691. alt=""
  3692. />
  3693. </div>
  3694. <div>{{ w.likesCount }}</div>
  3695. </div>
  3696. <div class="commentList" style="margin-right: 15px">
  3697. <div
  3698. class="commentImg"
  3699. @click="commentOther(w, toolIndex, wIndex)"
  3700. >
  3701. <img
  3702. src="../../assets/icon/comment/comment.png"
  3703. alt=""
  3704. />
  3705. </div>
  3706. <div>{{ w.commentCount }}</div>
  3707. </div>
  3708. </div>
  3709. </div>
  3710. </div>
  3711. </div>
  3712. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3713. 未提交
  3714. </div>
  3715. <div
  3716. class="noWorksS"
  3717. v-if="noWorksS && noWorksS[toolIndex].length"
  3718. >
  3719. <div
  3720. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3721. :key="sIndex"
  3722. class="noWorksName"
  3723. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3724. >
  3725. <el-tooltip effect="dark" :content="s.student" placement="top">
  3726. <span>{{ s.student }}</span>
  3727. </el-tooltip>
  3728. </div>
  3729. </div>
  3730. </div>
  3731. <div
  3732. v-if="
  3733. tType &&
  3734. ((tType == 2 && sIsOpen == true) ||
  3735. tType == 1 ||
  3736. tType == 4) &&
  3737. tool.tool.indexOf(4) != -1 &&
  3738. (tool.askJson[0].answer ||
  3739. tool.askJson[0].answer === 0) &&
  3740. checkJson[toolIndex].length
  3741. "
  3742. class="xuan_right_box"
  3743. >
  3744. <div
  3745. class="tool_right_box"
  3746. v-for="(item, index) in tool.askJson"
  3747. :key="index"
  3748. >
  3749. <div style="width: calc(100% - 30px);">
  3750. <el-tooltip
  3751. effect="light"
  3752. :content="index + 1 + '、' + item.askstitle"
  3753. placement="top"
  3754. popper-class="text_tooltip"
  3755. >
  3756. <div
  3757. style="
  3758. width: calc(100% - 130px);
  3759. display: block;
  3760. white-space: nowrap;
  3761. overflow: hidden;
  3762. text-overflow: ellipsis;
  3763. word-break: break-word;
  3764. cursor: pointer;
  3765. "
  3766. >
  3767. {{ index + 1 + "、" + item.askstitle }}
  3768. </div>
  3769. </el-tooltip>
  3770. </div>
  3771. <div class="right_box_xuan">
  3772. <span>正确率</span>
  3773. <span>{{
  3774. (checkJson[toolIndex][index].right
  3775. ? checkJson[toolIndex][index].right
  3776. : 0) + "%"
  3777. }}</span>
  3778. </div>
  3779. </div>
  3780. </div>
  3781. <div
  3782. class="xuan_right_box"
  3783. style="background: unset; padding: 0 10px"
  3784. v-if="
  3785. tType &&
  3786. ((tType == 2 && sIsOpen == true) ||
  3787. tType == 1 ||
  3788. tType == 4) &&
  3789. tool.tool.indexOf(4) != -1
  3790. "
  3791. >
  3792. <AskStatic
  3793. v-if="
  3794. worksStudent.length &&
  3795. worksStudent[toolIndex].length > 0
  3796. "
  3797. :askJSON="tool"
  3798. :checkJson="checkJson[toolIndex]"
  3799. ></AskStatic>
  3800. </div>
  3801. <div
  3802. v-if="
  3803. tType &&
  3804. ((tType == 2 && sIsOpen == true) ||
  3805. tType == 1 ||
  3806. tType == 4) &&
  3807. tool.tool.indexOf(4) != -1
  3808. "
  3809. class="worksBox"
  3810. >
  3811. <div
  3812. class="zuoyeYulan"
  3813. v-if="
  3814. worksStudent.length &&
  3815. worksStudent[toolIndex].length > 0
  3816. "
  3817. >
  3818. <div class="worksTop">
  3819. <div>作业预览</div>
  3820. <div
  3821. class="corOpen"
  3822. @click="contract(toolIndex)"
  3823. v-if="
  3824. (isCloseList[toolIndex].isCloseBoolean) &&
  3825. isCloseList[toolIndex].isClose == 0
  3826. "
  3827. >
  3828. 折叠
  3829. </div>
  3830. <div
  3831. class="corOpen"
  3832. @click="contract(toolIndex)"
  3833. v-if="isCloseList[toolIndex].isClose == 1"
  3834. >
  3835. 展开
  3836. </div>
  3837. </div>
  3838. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3839. </div>
  3840. <div>
  3841. <div
  3842. :id="'tool-' + toolIndex"
  3843. :style="{
  3844. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3845. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3846. }"
  3847. class="worksDetailBox"
  3848. v-if="
  3849. worksStudent.length &&
  3850. worksStudent[toolIndex].length > 0
  3851. "
  3852. >
  3853. <div
  3854. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3855. :key="wIndex"
  3856. class="isWorksName2"
  3857. @click="
  3858. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3859. "
  3860. >
  3861. {{ w.sName }}
  3862. <img
  3863. class="deleteImg deleteImg2"
  3864. src="../../assets/deleteworks.png"
  3865. v-if="
  3866. w.userid == userid || tType == 1 || tType == 4
  3867. "
  3868. @click.stop="deleteWorks(w.wid)"
  3869. alt
  3870. />
  3871. </div>
  3872. <!-- <div class="works" style="
  3873. width: 200px;
  3874. height: 140px;
  3875. border-radius: 10px;
  3876. box-shadow: 0 0 6px 1px #dfdada;
  3877. overflow: hidden;
  3878. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3879. <div class="workImg">
  3880. <img src="../../assets/icon/works/noImg.png" @click="
  3881. openTools(
  3882. 4,
  3883. toolIndex,
  3884. taskCount,
  3885. w.works,
  3886. w.sName
  3887. )
  3888. " alt />
  3889. </div>
  3890. <div class="worksName">
  3891. <div>{{ w.sName }}</div>
  3892. <div>{{ w.time }}</div>
  3893. </div>
  3894. </div> -->
  3895. </div>
  3896. </div>
  3897. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3898. 未提交
  3899. </div>
  3900. <div
  3901. class="noWorksS"
  3902. v-if="noWorksS && noWorksS[toolIndex].length"
  3903. >
  3904. <div
  3905. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3906. :key="sIndex"
  3907. class="noWorksName"
  3908. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3909. >
  3910. <el-tooltip effect="dark" :content="s.student" placement="top">
  3911. <span>{{ s.student }}</span>
  3912. </el-tooltip>
  3913. </div>
  3914. </div>
  3915. </div>
  3916. <div
  3917. v-if="
  3918. tType &&
  3919. ((tType == 2 && sIsOpen == true) ||
  3920. tType == 1 ||
  3921. tType == 4) &&
  3922. tool.tool.indexOf(45) != -1 &&
  3923. (tool.testJson.testJson[0].answer ||
  3924. tool.testJson.testJson[0].answer === 0) &&
  3925. checkJson[toolIndex].length
  3926. "
  3927. class="xuan_right_box"
  3928. >
  3929. <div
  3930. class="tool_right_box"
  3931. v-for="(item, index) in tool.testJson.testJson"
  3932. :key="index"
  3933. >
  3934. <div class="right_box_xuan" style="margin-right: 10px">
  3935. <span>正确率</span>
  3936. <span>{{
  3937. (checkJson[toolIndex][index].right
  3938. ? checkJson[toolIndex][index].right
  3939. : 0) + "%"
  3940. }}</span>
  3941. </div>
  3942. <div style="width: calc(100% - 30px);">
  3943. <el-tooltip
  3944. effect="light"
  3945. :content="index + 1 + '、' + item.teststitle"
  3946. placement="top"
  3947. popper-class="text_tooltip"
  3948. >
  3949. <div
  3950. style="
  3951. width: calc(100% - 130px);
  3952. display: block;
  3953. white-space: nowrap;
  3954. overflow: hidden;
  3955. text-overflow: ellipsis;
  3956. word-break: break-word;
  3957. cursor: pointer;
  3958. "
  3959. >
  3960. {{ index + 1 + "、" + item.teststitle }}
  3961. </div>
  3962. </el-tooltip>
  3963. </div>
  3964. </div>
  3965. </div>
  3966. <div
  3967. class="xuan_right_box"
  3968. style="background: unset; padding: 0 10px; width: 91.5%"
  3969. v-if="
  3970. tType &&
  3971. ((tType == 2 && sIsOpen == true) ||
  3972. tType == 1 ||
  3973. tType == 4) &&
  3974. tool.tool.indexOf(45) != -1
  3975. "
  3976. >
  3977. <AskStatic2
  3978. v-if="
  3979. worksStudent.length &&
  3980. worksStudent[toolIndex].length > 0
  3981. "
  3982. :askJSON="tool"
  3983. :checkJson="checkJson[toolIndex]"
  3984. ></AskStatic2>
  3985. </div>
  3986. <div
  3987. v-if="
  3988. tType &&
  3989. ((tType == 2 && sIsOpen == true) ||
  3990. tType == 1 ||
  3991. tType == 4) &&
  3992. tool.tool.indexOf(45) != -1
  3993. "
  3994. class="worksBox"
  3995. >
  3996. <div
  3997. class="zuoyeYulan"
  3998. v-if="
  3999. worksStudent.length &&
  4000. worksStudent[toolIndex].length > 0
  4001. "
  4002. >
  4003. <div class="worksTop">
  4004. <div>作业预览</div>
  4005. <div
  4006. class="corOpen"
  4007. @click="contract(toolIndex)"
  4008. v-if="
  4009. (isCloseList[toolIndex].isCloseBoolean) &&
  4010. isCloseList[toolIndex].isClose == 0
  4011. "
  4012. >
  4013. 折叠
  4014. </div>
  4015. <div
  4016. class="corOpen"
  4017. @click="contract(toolIndex)"
  4018. v-if="isCloseList[toolIndex].isClose == 1"
  4019. >
  4020. 展开
  4021. </div>
  4022. </div>
  4023. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4024. </div>
  4025. <div>
  4026. <div
  4027. :id="'tool-' + toolIndex"
  4028. :style="{
  4029. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4030. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4031. }"
  4032. class="worksDetailBox"
  4033. v-if="
  4034. worksStudent.length &&
  4035. worksStudent[toolIndex].length > 0
  4036. "
  4037. >
  4038. <div
  4039. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4040. :key="wIndex"
  4041. class="isWorksName2"
  4042. @click="
  4043. openTools(
  4044. 45,
  4045. toolIndex,
  4046. taskCount,
  4047. w.works,
  4048. w.sName
  4049. )
  4050. "
  4051. >
  4052. {{ w.sName }}
  4053. <img
  4054. class="deleteImg deleteImg2"
  4055. src="../../assets/deleteworks.png"
  4056. v-if="
  4057. w.userid == userid || tType == 1 || tType == 4
  4058. "
  4059. @click.stop="deleteWorks(w.wid)"
  4060. alt
  4061. />
  4062. </div>
  4063. </div>
  4064. </div>
  4065. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4066. 未提交
  4067. </div>
  4068. <div
  4069. class="noWorksS"
  4070. v-if="noWorksS && noWorksS[toolIndex].length"
  4071. >
  4072. <div
  4073. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4074. :key="sIndex"
  4075. class="noWorksName"
  4076. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4077. >
  4078. <el-tooltip effect="dark" :content="s.student" placement="top">
  4079. <span>{{ s.student }}</span>
  4080. </el-tooltip>
  4081. </div>
  4082. </div>
  4083. </div>
  4084. <div
  4085. v-if="
  4086. tType &&
  4087. ((tType == 2 && sIsOpen == true) ||
  4088. tType == 1 ||
  4089. tType == 4) &&
  4090. tool.tool.indexOf(69) != -1
  4091. "
  4092. class="worksBox"
  4093. >
  4094. <div
  4095. class="zuoyeYulan"
  4096. v-if="
  4097. worksStudent.length &&
  4098. worksStudent[toolIndex].length > 0
  4099. "
  4100. >
  4101. <div class="worksTop">
  4102. <div>作业预览</div>
  4103. <div
  4104. class="corOpen"
  4105. @click="contract(toolIndex)"
  4106. v-if="
  4107. (isCloseList[toolIndex].isCloseBoolean) &&
  4108. isCloseList[toolIndex].isClose == 0
  4109. "
  4110. >
  4111. 折叠
  4112. </div>
  4113. <div
  4114. class="corOpen"
  4115. @click="contract(toolIndex)"
  4116. v-if="isCloseList[toolIndex].isClose == 1"
  4117. >
  4118. 展开
  4119. </div>
  4120. </div>
  4121. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4122. </div>
  4123. <div>
  4124. <div
  4125. :id="'tool-' + toolIndex"
  4126. :style="{
  4127. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4128. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4129. }"
  4130. class="worksDetailBox"
  4131. v-if="
  4132. worksStudent.length &&
  4133. worksStudent[toolIndex].length > 0
  4134. "
  4135. >
  4136. <div
  4137. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4138. :key="wIndex"
  4139. class="isWorksName2"
  4140. style="width: 160px;height: 65px;line-height: 65px;"
  4141. @click="
  4142. openTools(
  4143. 69,
  4144. toolIndex,
  4145. taskCount,
  4146. w.works,
  4147. w.sName,
  4148. w.wid
  4149. )
  4150. "
  4151. >
  4152. {{ w.sName }}
  4153. <img
  4154. class="deleteImg1"
  4155. src="../../assets/evaEnglish.png"
  4156. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4157. alt
  4158. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4159. />
  4160. <img
  4161. class="deleteImg deleteImg2"
  4162. src="../../assets/deleteworks.png"
  4163. v-if="
  4164. w.userid == userid || tType == 1 || tType == 4
  4165. "
  4166. @click.stop="deleteWorks(w.wid)"
  4167. alt
  4168. />
  4169. </div>
  4170. </div>
  4171. </div>
  4172. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4173. 未提交
  4174. </div>
  4175. <div
  4176. class="noWorksS"
  4177. v-if="noWorksS && noWorksS[toolIndex].length"
  4178. >
  4179. <div
  4180. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4181. :key="sIndex"
  4182. class="noWorksName"
  4183. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4184. >
  4185. <el-tooltip effect="dark" :content="s.student" placement="top">
  4186. <span>{{ s.student }}</span>
  4187. </el-tooltip>
  4188. </div>
  4189. </div>
  4190. </div>
  4191. <div
  4192. v-if="
  4193. tType &&
  4194. ((tType == 2 && sIsOpen == true) ||
  4195. tType == 1 ||
  4196. tType == 4) &&
  4197. tool.tool.indexOf(15) != -1
  4198. "
  4199. class="worksBox"
  4200. >
  4201. <div
  4202. class="zuoyeYulan"
  4203. v-if="
  4204. (worksStudent.length &&
  4205. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4206. "
  4207. >
  4208. <div class="worksTop">
  4209. <div>作业预览</div>
  4210. <div
  4211. class="corOpen"
  4212. @click="contract(toolIndex)"
  4213. v-if="
  4214. (isCloseList[toolIndex].isCloseBoolean) &&
  4215. isCloseList[toolIndex].isClose == 0
  4216. "
  4217. >
  4218. 折叠
  4219. </div>
  4220. <div
  4221. class="corOpen"
  4222. @click="contract(toolIndex)"
  4223. v-if="isCloseList[toolIndex].isClose == 1"
  4224. >
  4225. 展开
  4226. </div>
  4227. </div>
  4228. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4229. </div>
  4230. <div
  4231. class="group_workBox"
  4232. v-for="(g, gindex) in courseGroup.group"
  4233. :key="gindex"
  4234. >
  4235. <div class="group_box">
  4236. <div class="group_title">
  4237. <el-tooltip
  4238. class="item"
  4239. effect="light"
  4240. :content="g.name"
  4241. placement="top"
  4242. >
  4243. <div class="group_name">{{ g.name }}</div>
  4244. </el-tooltip>
  4245. </div>
  4246. <div
  4247. class="group_work"
  4248. v-if="
  4249. g.works &&
  4250. g.works.length &&
  4251. g.works[toolIndex].length
  4252. "
  4253. >
  4254. <div
  4255. class="works"
  4256. v-for="(w, wIndex) in g.works[toolIndex]"
  4257. :key="wIndex"
  4258. >
  4259. <div
  4260. class="workImg"
  4261. style="
  4262. border-radius: 15px;
  4263. box-shadow: 0px 0px 5px 5px #eee;
  4264. "
  4265. >
  4266. <div
  4267. class="answerBg"
  4268. style="border-radius: 15px 15px 0 0"
  4269. @click="
  4270. commentOther(w, toolIndex, wIndex, null, g.id)
  4271. "
  4272. >
  4273. <div class="answerContent">
  4274. {{ JSON.parse(w.works)[0].answer }}
  4275. </div>
  4276. <div
  4277. class="answerScore"
  4278. v-if="w.score"
  4279. @click.stop="openScore(w)"
  4280. :class="{
  4281. rightW:
  4282. w.userid == userid ||
  4283. tType == 1 ||
  4284. tType == 4,
  4285. }"
  4286. >
  4287. {{ JSON.parse(w.score).wScore }}分
  4288. </div>
  4289. <div
  4290. class="answerScore"
  4291. @click.stop="openScore(w)"
  4292. v-else-if="courseDetail.userid == userid"
  4293. :class="{
  4294. rightW:
  4295. w.userid == userid ||
  4296. tType == 1 ||
  4297. tType == 4,
  4298. }"
  4299. >
  4300. 评分
  4301. </div>
  4302. <img
  4303. class="deleteImg"
  4304. src="../../assets/deleteworks.png"
  4305. v-if="
  4306. w.userid == userid ||
  4307. tType == 1 ||
  4308. tType == 4
  4309. "
  4310. @click.stop="deleteWorks(w.wid)"
  4311. alt
  4312. />
  4313. </div>
  4314. <div class="comment">
  4315. <div class="worksName">
  4316. <div>{{ w.sName }}</div>
  4317. </div>
  4318. <div class="commentList">
  4319. <div
  4320. class="commentImg"
  4321. @click="
  4322. isLikes(w.wid, userid, 1, null, w.isLikes)
  4323. "
  4324. >
  4325. <img
  4326. :src="w.isLikes == true ? likes : noLikes"
  4327. alt=""
  4328. />
  4329. </div>
  4330. <div>{{ w.likesCount }}</div>
  4331. </div>
  4332. <div
  4333. class="commentList"
  4334. style="margin-right: 15px"
  4335. >
  4336. <div
  4337. class="commentImg"
  4338. @click="
  4339. commentOther(
  4340. w,
  4341. toolIndex,
  4342. wIndex,
  4343. null,
  4344. g.id
  4345. )
  4346. "
  4347. >
  4348. <img
  4349. src="../../assets/icon/comment/comment.png"
  4350. alt=""
  4351. />
  4352. </div>
  4353. <div>{{ w.commentCount }}</div>
  4354. </div>
  4355. </div>
  4356. </div>
  4357. </div>
  4358. </div>
  4359. <div class="group_work" v-else>暂无提交作业</div>
  4360. </div>
  4361. </div>
  4362. <div
  4363. :id="'tool-' + toolIndex"
  4364. :style="{
  4365. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4366. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4367. }"
  4368. class="worksDetailBox"
  4369. v-if="
  4370. worksStudent.length &&
  4371. worksStudent[toolIndex].length > 0
  4372. "
  4373. >
  4374. <div
  4375. class="works"
  4376. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4377. :key="wIndex"
  4378. >
  4379. <div
  4380. class="workImg"
  4381. style="
  4382. border-radius: 15px;
  4383. box-shadow: 0px 0px 5px 5px #eee;
  4384. "
  4385. >
  4386. <!-- <img
  4387. src="../../assets/icon/works/noImg.png"
  4388. @click="openTools(15, toolIndex, taskCount, w.works)"
  4389. alt=""
  4390. />-->
  4391. <div
  4392. class="answerBg"
  4393. style="border-radius: 15px 15px 0 0"
  4394. @click="commentOther(w, toolIndex, wIndex)"
  4395. >
  4396. <!-- <div>{{ w.sName }}</div> -->
  4397. <div class="answerContent">
  4398. {{ JSON.parse(w.works)[0].answer }}
  4399. </div>
  4400. <div
  4401. class="answerScore"
  4402. v-if="w.score"
  4403. @click.stop="openScore(w)"
  4404. :class="{
  4405. rightW:
  4406. w.userid == userid ||
  4407. tType == 1 ||
  4408. tType == 4,
  4409. }"
  4410. >
  4411. {{ JSON.parse(w.score).wScore }}分
  4412. </div>
  4413. <div
  4414. class="answerScore"
  4415. @click.stop="openScore(w)"
  4416. v-else-if="courseDetail.userid == userid"
  4417. :class="{
  4418. rightW:
  4419. w.userid == userid ||
  4420. tType == 1 ||
  4421. tType == 4,
  4422. }"
  4423. >
  4424. 评分
  4425. </div>
  4426. <img
  4427. class="deleteImg"
  4428. src="../../assets/deleteworks.png"
  4429. v-if="
  4430. w.userid == userid || tType == 1 || tType == 4
  4431. "
  4432. @click.stop="deleteWorks(w.wid)"
  4433. alt
  4434. />
  4435. </div>
  4436. <div class="comment">
  4437. <div class="worksName">
  4438. <div>{{ w.sName }}</div>
  4439. </div>
  4440. <div class="commentList">
  4441. <div
  4442. class="commentImg"
  4443. @click="
  4444. isLikes(w.wid, userid, 1, null, w.isLikes)
  4445. "
  4446. >
  4447. <img
  4448. :src="w.isLikes == true ? likes : noLikes"
  4449. alt=""
  4450. />
  4451. </div>
  4452. <div>{{ w.likesCount }}</div>
  4453. </div>
  4454. <div class="commentList" style="margin-right: 15px">
  4455. <div
  4456. class="commentImg"
  4457. @click="commentOther(w, toolIndex, wIndex)"
  4458. >
  4459. <img
  4460. src="../../assets/icon/comment/comment.png"
  4461. alt=""
  4462. />
  4463. </div>
  4464. <div>{{ w.commentCount }}</div>
  4465. </div>
  4466. </div>
  4467. </div>
  4468. </div>
  4469. </div>
  4470. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4471. 未提交
  4472. </div>
  4473. <div
  4474. class="noWorksS"
  4475. v-if="noWorksS && noWorksS[toolIndex].length"
  4476. >
  4477. <div
  4478. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4479. :key="sIndex"
  4480. class="noWorksName"
  4481. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4482. >
  4483. <el-tooltip effect="dark" :content="s.student" placement="top">
  4484. <span>{{ s.student }}</span>
  4485. </el-tooltip>
  4486. </div>
  4487. </div>
  4488. </div>
  4489. <div
  4490. v-if="
  4491. tType &&
  4492. ((tType == 2 && sIsOpen == true) ||
  4493. tType == 1 ||
  4494. tType == 4) &&
  4495. tool.tool.indexOf(1) != -1
  4496. "
  4497. class="worksBox"
  4498. >
  4499. <div
  4500. class="zuoyeYulan"
  4501. v-if="
  4502. (worksStudent.length &&
  4503. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4504. "
  4505. >
  4506. <div class="worksTop">
  4507. <div>作业预览</div>
  4508. <div
  4509. class="corOpen"
  4510. @click="contract(toolIndex)"
  4511. v-if="
  4512. (isCloseList[toolIndex].isCloseBoolean) &&
  4513. isCloseList[toolIndex].isClose == 0
  4514. "
  4515. >
  4516. 折叠
  4517. </div>
  4518. <div
  4519. class="corOpen"
  4520. @click="contract(toolIndex)"
  4521. v-if="isCloseList[toolIndex].isClose == 1"
  4522. >
  4523. 展开
  4524. </div>
  4525. </div>
  4526. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4527. </div>
  4528. <div
  4529. class="group_workBox"
  4530. v-for="(g, gindex) in courseGroup.group"
  4531. :key="gindex"
  4532. >
  4533. <div class="group_box">
  4534. <div class="group_title">
  4535. <el-tooltip
  4536. class="item"
  4537. effect="light"
  4538. :content="g.name"
  4539. placement="top"
  4540. >
  4541. <div class="group_name">{{ g.name }}</div>
  4542. </el-tooltip>
  4543. </div>
  4544. <div
  4545. class="group_work"
  4546. v-if="
  4547. g.works &&
  4548. g.works.length &&
  4549. g.works[toolIndex].length
  4550. "
  4551. >
  4552. <div
  4553. class="works"
  4554. style="
  4555. width: 200px;
  4556. height: 140px;
  4557. margin: 10px 10px 10px 0;
  4558. border-radius: 15px;
  4559. box-shadow: 0 0 6px 1px #dfdada;
  4560. "
  4561. v-for="(w, wIndex) in g.works[toolIndex]"
  4562. :key="wIndex"
  4563. :class="w.type == 1 ? 'isTypeOne' : ''"
  4564. >
  4565. <div class="workImg">
  4566. <img
  4567. :src="w.works"
  4568. @click="previewImg(w.works)"
  4569. alt
  4570. />
  4571. <div
  4572. class="answerScore"
  4573. v-if="w.score"
  4574. @click.stop="openScore(w)"
  4575. :class="{
  4576. rightW:
  4577. w.userid == userid ||
  4578. tType == 1 ||
  4579. tType == 4,
  4580. }"
  4581. >
  4582. {{ JSON.parse(w.score).wScore }}分
  4583. </div>
  4584. <div
  4585. class="answerScore"
  4586. @click.stop="openScore(w)"
  4587. v-else-if="courseDetail.userid == userid"
  4588. :class="{
  4589. rightW:
  4590. w.userid == userid ||
  4591. tType == 1 ||
  4592. tType == 4,
  4593. }"
  4594. >
  4595. 评分
  4596. </div>
  4597. <img
  4598. class="deleteImg"
  4599. src="../../assets/deleteworks.png"
  4600. v-if="
  4601. w.userid == userid || tType == 1 || tType == 4
  4602. "
  4603. @click.stop="deleteWorks(w.wid)"
  4604. alt
  4605. />
  4606. </div>
  4607. <div class="comment" style="min-width: 200px">
  4608. <div class="worksName">
  4609. <div>{{ w.sName }}</div>
  4610. </div>
  4611. <div class="commentList">
  4612. <div class="commentList">
  4613. <div
  4614. class="commentImg"
  4615. @click="
  4616. isLikes(w.wid, userid, 1, null, w.isLikes)
  4617. "
  4618. >
  4619. <img
  4620. :src="w.isLikes == true ? likes : noLikes"
  4621. alt=""
  4622. />
  4623. </div>
  4624. <div>{{ w.likesCount }}</div>
  4625. </div>
  4626. <div
  4627. class="commentList"
  4628. style="margin-right: 15px"
  4629. >
  4630. <div
  4631. class="commentImg"
  4632. @click="
  4633. commentOther(
  4634. w,
  4635. toolIndex,
  4636. wIndex,
  4637. null,
  4638. g.id
  4639. )
  4640. "
  4641. >
  4642. <img
  4643. src="../../assets/icon/comment/comment.png"
  4644. alt=""
  4645. />
  4646. </div>
  4647. <div>{{ w.commentCount }}</div>
  4648. </div>
  4649. </div>
  4650. </div>
  4651. </div>
  4652. </div>
  4653. <div class="group_work" v-else>暂无提交作业</div>
  4654. </div>
  4655. </div>
  4656. <div
  4657. :id="'tool-' + toolIndex"
  4658. :style="{
  4659. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4660. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4661. }"
  4662. class="worksDetailBox"
  4663. v-if="
  4664. worksStudent.length &&
  4665. worksStudent[toolIndex].length > 0
  4666. "
  4667. >
  4668. <div
  4669. class="works"
  4670. style="
  4671. width: 200px;
  4672. height: 140px;
  4673. margin: 10px 10px 10px 0;
  4674. border-radius: 15px;
  4675. box-shadow: 0 0 6px 1px #dfdada;
  4676. "
  4677. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4678. :key="wIndex"
  4679. >
  4680. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4681. <div class="workImg">
  4682. <img
  4683. :src="w.works"
  4684. @click="previewImg(w.works)"
  4685. alt
  4686. />
  4687. <div
  4688. class="answerScore"
  4689. v-if="w.score"
  4690. @click.stop="openScore(w)"
  4691. :class="{
  4692. rightW:
  4693. w.userid == userid || tType == 1 || tType == 4,
  4694. }"
  4695. >
  4696. {{ JSON.parse(w.score).wScore }}分
  4697. </div>
  4698. <div
  4699. class="answerScore"
  4700. @click.stop="openScore(w)"
  4701. v-else-if="courseDetail.userid == userid"
  4702. :class="{
  4703. rightW:
  4704. w.userid == userid || tType == 1 || tType == 4,
  4705. }"
  4706. >
  4707. 评分
  4708. </div>
  4709. <img
  4710. class="deleteImg"
  4711. src="../../assets/deleteworks.png"
  4712. v-if="
  4713. w.userid == userid || tType == 1 || tType == 4
  4714. "
  4715. @click.stop="deleteWorks(w.wid)"
  4716. alt
  4717. />
  4718. </div>
  4719. <div class="comment" style="min-width: 200px">
  4720. <div class="worksName">
  4721. <div>{{ w.sName }}</div>
  4722. </div>
  4723. <div class="commentList">
  4724. <div class="commentList">
  4725. <div
  4726. class="commentImg"
  4727. @click="
  4728. isLikes(w.wid, userid, 1, null, w.isLikes)
  4729. "
  4730. >
  4731. <img
  4732. :src="w.isLikes == true ? likes : noLikes"
  4733. alt=""
  4734. />
  4735. </div>
  4736. <div>{{ w.likesCount }}</div>
  4737. </div>
  4738. <div class="commentList" style="margin-right: 15px">
  4739. <div
  4740. class="commentImg"
  4741. @click="commentOther(w, toolIndex, wIndex)"
  4742. >
  4743. <img
  4744. src="../../assets/icon/comment/comment.png"
  4745. alt=""
  4746. />
  4747. </div>
  4748. <div>{{ w.commentCount }}</div>
  4749. </div>
  4750. </div>
  4751. </div>
  4752. </div>
  4753. </div>
  4754. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4755. 未提交
  4756. </div>
  4757. <div
  4758. class="noWorksS"
  4759. v-if="noWorksS && noWorksS[toolIndex].length"
  4760. >
  4761. <div
  4762. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4763. :key="sIndex"
  4764. class="noWorksName"
  4765. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4766. >
  4767. <el-tooltip effect="dark" :content="s.student" placement="top">
  4768. <span>{{ s.student }}</span>
  4769. </el-tooltip>
  4770. </div>
  4771. </div>
  4772. </div>
  4773. <div
  4774. v-if="
  4775. tType &&
  4776. ((tType == 2 && sIsOpen == true) ||
  4777. tType == 1 ||
  4778. tType == 4) &&
  4779. tool.tool.indexOf(3) != -1
  4780. "
  4781. class="worksBox"
  4782. >
  4783. <div
  4784. class="zuoyeYulan"
  4785. v-if="
  4786. (worksStudent.length &&
  4787. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4788. "
  4789. >
  4790. <div class="worksTop">
  4791. <div>作业预览</div>
  4792. <div
  4793. class="corOpen"
  4794. @click="contract(toolIndex)"
  4795. v-if="
  4796. (isCloseList[toolIndex].isCloseBoolean) &&
  4797. isCloseList[toolIndex].isClose == 0
  4798. "
  4799. >
  4800. 折叠
  4801. </div>
  4802. <div
  4803. class="corOpen"
  4804. @click="contract(toolIndex)"
  4805. v-if="isCloseList[toolIndex].isClose == 1"
  4806. >
  4807. 展开
  4808. </div>
  4809. </div>
  4810. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4811. </div>
  4812. <div
  4813. class="group_workBox"
  4814. v-for="(g, gindex) in courseGroup.group"
  4815. :key="gindex"
  4816. >
  4817. <div class="group_box">
  4818. <div class="group_title">
  4819. <el-tooltip
  4820. class="item"
  4821. effect="light"
  4822. :content="g.name"
  4823. placement="top"
  4824. >
  4825. <div class="group_name">{{ g.name }}</div>
  4826. </el-tooltip>
  4827. </div>
  4828. <div
  4829. class="group_work"
  4830. v-if="
  4831. g.works &&
  4832. g.works.length &&
  4833. g.works[toolIndex].length
  4834. "
  4835. >
  4836. <div
  4837. class="works"
  4838. style="
  4839. width: 200px;
  4840. height: 140px;
  4841. margin: 10px 10px 10px 0;
  4842. border-radius: 15px;
  4843. box-shadow: 0 0 6px 1px #dfdada;
  4844. "
  4845. v-for="(w, wIndex) in g.works[toolIndex]"
  4846. :key="wIndex"
  4847. :class="w.type == 1 ? 'isTypeOne' : ''"
  4848. >
  4849. <div class="workImg">
  4850. <img
  4851. :src="w.works"
  4852. @click="previewImg(w.works)"
  4853. alt
  4854. />
  4855. <div
  4856. class="answerScore"
  4857. v-if="w.score"
  4858. @click.stop="openScore(w)"
  4859. :class="{
  4860. rightW:
  4861. w.userid == userid ||
  4862. tType == 1 ||
  4863. tType == 4,
  4864. }"
  4865. >
  4866. {{ JSON.parse(w.score).wScore }}分
  4867. </div>
  4868. <div
  4869. class="answerScore"
  4870. @click.stop="openScore(w)"
  4871. v-else-if="courseDetail.userid == userid"
  4872. :class="{
  4873. rightW:
  4874. w.userid == userid ||
  4875. tType == 1 ||
  4876. tType == 4,
  4877. }"
  4878. >
  4879. 评分
  4880. </div>
  4881. <img
  4882. class="deleteImg"
  4883. src="../../assets/deleteworks.png"
  4884. v-if="
  4885. w.userid == userid || tType == 1 || tType == 4
  4886. "
  4887. @click.stop="deleteWorks(w.wid)"
  4888. alt
  4889. />
  4890. </div>
  4891. <div class="comment" style="min-width: 200px">
  4892. <div class="worksName">
  4893. <div>{{ w.sName }}</div>
  4894. </div>
  4895. <div class="commentList">
  4896. <div class="commentList">
  4897. <div
  4898. class="commentImg"
  4899. @click="
  4900. isLikes(w.wid, userid, 1, null, w.isLikes)
  4901. "
  4902. >
  4903. <img
  4904. :src="w.isLikes == true ? likes : noLikes"
  4905. alt=""
  4906. />
  4907. </div>
  4908. <div>{{ w.likesCount }}</div>
  4909. </div>
  4910. <div
  4911. class="commentList"
  4912. style="margin-right: 15px"
  4913. >
  4914. <div
  4915. class="commentImg"
  4916. @click="
  4917. commentOther(
  4918. w,
  4919. toolIndex,
  4920. wIndex,
  4921. null,
  4922. g.id
  4923. )
  4924. "
  4925. >
  4926. <img
  4927. src="../../assets/icon/comment/comment.png"
  4928. alt=""
  4929. />
  4930. </div>
  4931. <div>{{ w.commentCount }}</div>
  4932. </div>
  4933. </div>
  4934. </div>
  4935. </div>
  4936. </div>
  4937. <div class="group_work" v-else>暂无提交作业</div>
  4938. </div>
  4939. </div>
  4940. <div
  4941. :id="'tool-' + toolIndex"
  4942. :style="{
  4943. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4944. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4945. }"
  4946. class="worksDetailBox"
  4947. v-if="
  4948. worksStudent.length &&
  4949. worksStudent[toolIndex].length > 0
  4950. "
  4951. >
  4952. <div
  4953. class="works"
  4954. style="
  4955. width: 200px;
  4956. height: 140px;
  4957. margin: 10px 10px 10px 0;
  4958. border-radius: 15px;
  4959. box-shadow: 0 0 6px 1px #dfdada;
  4960. "
  4961. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4962. :key="wIndex"
  4963. >
  4964. <!-- @click="previewImg(w.works)" -->
  4965. <div class="workImg">
  4966. <img
  4967. :src="w.works"
  4968. @click="previewImg(w.works)"
  4969. alt
  4970. />
  4971. <div
  4972. class="answerScore"
  4973. v-if="w.score"
  4974. @click.stop="openScore(w)"
  4975. :class="{
  4976. rightW:
  4977. w.userid == userid || tType == 1 || tType == 4,
  4978. }"
  4979. >
  4980. {{ JSON.parse(w.score).wScore }}分
  4981. </div>
  4982. <div
  4983. class="answerScore"
  4984. @click.stop="openScore(w)"
  4985. v-else-if="courseDetail.userid == userid"
  4986. :class="{
  4987. rightW:
  4988. w.userid == userid || tType == 1 || tType == 4,
  4989. }"
  4990. >
  4991. 评分
  4992. </div>
  4993. <img
  4994. class="deleteImg"
  4995. src="../../assets/deleteworks.png"
  4996. v-if="
  4997. w.userid == userid || tType == 1 || tType == 4
  4998. "
  4999. @click.stop="deleteWorks(w.wid)"
  5000. alt
  5001. />
  5002. </div>
  5003. <div class="comment" style="min-width: 200px">
  5004. <div class="worksName">
  5005. <div>{{ w.sName }}</div>
  5006. </div>
  5007. <div class="commentList">
  5008. <div class="commentList">
  5009. <div
  5010. class="commentImg"
  5011. @click="
  5012. isLikes(w.wid, userid, 1, null, w.isLikes)
  5013. "
  5014. >
  5015. <img
  5016. :src="w.isLikes == true ? likes : noLikes"
  5017. alt=""
  5018. />
  5019. </div>
  5020. <div>{{ w.likesCount }}</div>
  5021. </div>
  5022. <div class="commentList" style="margin-right: 15px">
  5023. <div
  5024. class="commentImg"
  5025. @click="commentOther(w, toolIndex, wIndex)"
  5026. >
  5027. <img
  5028. src="../../assets/icon/comment/comment.png"
  5029. alt=""
  5030. />
  5031. </div>
  5032. <div>{{ w.commentCount }}</div>
  5033. </div>
  5034. </div>
  5035. </div>
  5036. </div>
  5037. </div>
  5038. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5039. 未提交
  5040. </div>
  5041. <div
  5042. class="noWorksS"
  5043. v-if="noWorksS && noWorksS[toolIndex].length"
  5044. >
  5045. <div
  5046. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5047. :key="sIndex"
  5048. class="noWorksName"
  5049. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5050. >
  5051. <el-tooltip effect="dark" :content="s.student" placement="top">
  5052. <span>{{ s.student }}</span>
  5053. </el-tooltip>
  5054. </div>
  5055. </div>
  5056. </div>
  5057. <div
  5058. v-if="
  5059. tType &&
  5060. ((tType == 2 && sIsOpen == true) ||
  5061. tType == 1 ||
  5062. tType == 4) &&
  5063. tool.tool.indexOf(6) != -1
  5064. "
  5065. class="worksBox"
  5066. >
  5067. <div
  5068. class="zuoyeYulan"
  5069. v-if="
  5070. (worksStudent.length &&
  5071. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5072. "
  5073. >
  5074. <div class="worksTop">
  5075. <div>作业预览</div>
  5076. <div
  5077. class="corOpen"
  5078. @click="contract(toolIndex)"
  5079. v-if="
  5080. (isCloseList[toolIndex].isCloseBoolean) &&
  5081. isCloseList[toolIndex].isClose == 0
  5082. "
  5083. >
  5084. 折叠
  5085. </div>
  5086. <div
  5087. class="corOpen"
  5088. @click="contract(toolIndex)"
  5089. v-if="isCloseList[toolIndex].isClose == 1"
  5090. >
  5091. 展开
  5092. </div>
  5093. </div>
  5094. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5095. </div>
  5096. <div
  5097. class="group_workBox"
  5098. v-for="(g, gindex) in courseGroup.group"
  5099. :key="gindex"
  5100. >
  5101. <div class="group_box">
  5102. <div class="group_title">
  5103. <el-tooltip
  5104. class="item"
  5105. effect="light"
  5106. :content="g.name"
  5107. placement="top"
  5108. >
  5109. <div class="group_name">{{ g.name }}</div>
  5110. </el-tooltip>
  5111. </div>
  5112. <div
  5113. class="group_work"
  5114. v-if="
  5115. g.works &&
  5116. g.works.length &&
  5117. g.works[toolIndex].length
  5118. "
  5119. >
  5120. <div
  5121. class="works"
  5122. style="
  5123. width: 200px;
  5124. height: 140px;
  5125. margin: 10px 10px 10px 0;
  5126. border-radius: 15px;
  5127. box-shadow: 0 0 6px 1px #dfdada;
  5128. "
  5129. v-for="(w, wIndex) in g.works[toolIndex]"
  5130. :key="wIndex"
  5131. :class="w.type == 1 ? 'isTypeOne' : ''"
  5132. >
  5133. <div class="workImg">
  5134. <img
  5135. :src="w.works"
  5136. @click="previewImg(w.works)"
  5137. alt
  5138. />
  5139. <div
  5140. class="answerScore"
  5141. v-if="w.score"
  5142. @click.stop="openScore(w)"
  5143. :class="{
  5144. rightW:
  5145. w.userid == userid ||
  5146. tType == 1 ||
  5147. tType == 4,
  5148. }"
  5149. >
  5150. {{ JSON.parse(w.score).wScore }}分
  5151. </div>
  5152. <div
  5153. class="answerScore"
  5154. @click.stop="openScore(w)"
  5155. v-else-if="courseDetail.userid == userid"
  5156. :class="{
  5157. rightW:
  5158. w.userid == userid ||
  5159. tType == 1 ||
  5160. tType == 4,
  5161. }"
  5162. >
  5163. 评分
  5164. </div>
  5165. <img
  5166. class="deleteImg"
  5167. src="../../assets/deleteworks.png"
  5168. v-if="
  5169. w.userid == userid || tType == 1 || tType == 4
  5170. "
  5171. @click.stop="deleteWorks(w.wid)"
  5172. alt
  5173. />
  5174. </div>
  5175. <div class="comment" style="min-width: 200px">
  5176. <div class="worksName">
  5177. <div>{{ w.sName }}</div>
  5178. </div>
  5179. <div class="commentList">
  5180. <div class="commentList">
  5181. <div
  5182. class="commentImg"
  5183. @click="
  5184. isLikes(w.wid, userid, 1, null, w.isLikes)
  5185. "
  5186. >
  5187. <img
  5188. :src="w.isLikes == true ? likes : noLikes"
  5189. alt=""
  5190. />
  5191. </div>
  5192. <div>{{ w.likesCount }}</div>
  5193. </div>
  5194. <div
  5195. class="commentList"
  5196. style="margin-right: 15px"
  5197. >
  5198. <div
  5199. class="commentImg"
  5200. @click="
  5201. commentOther(
  5202. w,
  5203. toolIndex,
  5204. wIndex,
  5205. null,
  5206. g.id
  5207. )
  5208. "
  5209. >
  5210. <img
  5211. src="../../assets/icon/comment/comment.png"
  5212. alt=""
  5213. />
  5214. </div>
  5215. <div>{{ w.commentCount }}</div>
  5216. </div>
  5217. </div>
  5218. </div>
  5219. </div>
  5220. </div>
  5221. <div class="group_work" v-else>暂无提交作业</div>
  5222. </div>
  5223. </div>
  5224. <div
  5225. :id="'tool-' + toolIndex"
  5226. :style="{
  5227. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5228. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5229. }"
  5230. class="worksDetailBox"
  5231. v-if="
  5232. worksStudent.length &&
  5233. worksStudent[toolIndex].length > 0
  5234. "
  5235. >
  5236. <div
  5237. class="works"
  5238. style="
  5239. width: 200px;
  5240. height: 140px;
  5241. margin: 10px 10px 10px 0;
  5242. border-radius: 15px;
  5243. box-shadow: 0 0 6px 1px #dfdada;
  5244. "
  5245. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5246. :key="wIndex"
  5247. >
  5248. <!-- @click="previewImg(w.works)" -->
  5249. <div class="workImg">
  5250. <img
  5251. :src="w.works"
  5252. @click="previewImg(w.works)"
  5253. alt
  5254. />
  5255. <div
  5256. class="answerScore"
  5257. v-if="w.score"
  5258. @click.stop="openScore(w)"
  5259. :class="{
  5260. rightW:
  5261. w.userid == userid || tType == 1 || tType == 4,
  5262. }"
  5263. >
  5264. {{ JSON.parse(w.score).wScore }}分
  5265. </div>
  5266. <div
  5267. class="answerScore"
  5268. @click.stop="openScore(w)"
  5269. v-else-if="courseDetail.userid == userid"
  5270. :class="{
  5271. rightW:
  5272. w.userid == userid || tType == 1 || tType == 4,
  5273. }"
  5274. >
  5275. 评分
  5276. </div>
  5277. <img
  5278. class="deleteImg"
  5279. src="../../assets/deleteworks.png"
  5280. v-if="
  5281. w.userid == userid || tType == 1 || tType == 4
  5282. "
  5283. @click.stop="deleteWorks(w.wid)"
  5284. alt
  5285. />
  5286. </div>
  5287. <div class="comment" style="min-width: 200px">
  5288. <div class="worksName">
  5289. <div>{{ w.sName }}</div>
  5290. </div>
  5291. <div class="commentList">
  5292. <div class="commentList">
  5293. <div
  5294. class="commentImg"
  5295. @click="
  5296. isLikes(w.wid, userid, 1, null, w.isLikes)
  5297. "
  5298. >
  5299. <img
  5300. :src="w.isLikes == true ? likes : noLikes"
  5301. alt=""
  5302. />
  5303. </div>
  5304. <div>{{ w.likesCount }}</div>
  5305. </div>
  5306. <div class="commentList" style="margin-right: 15px">
  5307. <div
  5308. class="commentImg"
  5309. @click="commentOther(w, toolIndex, wIndex)"
  5310. >
  5311. <img
  5312. src="../../assets/icon/comment/comment.png"
  5313. alt=""
  5314. />
  5315. </div>
  5316. <div>{{ w.commentCount }}</div>
  5317. </div>
  5318. </div>
  5319. </div>
  5320. </div>
  5321. </div>
  5322. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5323. 未提交
  5324. </div>
  5325. <div
  5326. class="noWorksS"
  5327. v-if="noWorksS && noWorksS[toolIndex].length"
  5328. >
  5329. <div
  5330. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5331. :key="sIndex"
  5332. class="noWorksName"
  5333. >
  5334. <el-tooltip effect="dark" :content="s.student" placement="top">
  5335. <span>{{ s.student }}</span>
  5336. </el-tooltip>
  5337. </div>
  5338. </div>
  5339. </div>
  5340. <div
  5341. v-if="
  5342. tType &&
  5343. ((tType == 2 && sIsOpen == true) ||
  5344. tType == 1 ||
  5345. tType == 4) &&
  5346. tool.tool.indexOf(7) != -1
  5347. "
  5348. class="worksBox"
  5349. >
  5350. <div
  5351. class="zuoyeYulan"
  5352. v-if="
  5353. (worksStudent.length &&
  5354. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5355. "
  5356. >
  5357. <div class="worksTop">
  5358. <div>作业预览</div>
  5359. <div
  5360. class="corOpen"
  5361. @click="contract(toolIndex)"
  5362. v-if="
  5363. (isCloseList[toolIndex].isCloseBoolean) &&
  5364. isCloseList[toolIndex].isClose == 0
  5365. "
  5366. >
  5367. 折叠
  5368. </div>
  5369. <div
  5370. class="corOpen"
  5371. @click="contract(toolIndex)"
  5372. v-if="isCloseList[toolIndex].isClose == 1"
  5373. >
  5374. 展开
  5375. </div>
  5376. </div>
  5377. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5378. </div>
  5379. <div
  5380. class="group_workBox"
  5381. v-for="(g, gindex) in courseGroup.group"
  5382. :key="gindex"
  5383. >
  5384. <div class="group_box">
  5385. <div class="group_title">
  5386. <el-tooltip
  5387. class="item"
  5388. effect="light"
  5389. :content="g.name"
  5390. placement="top"
  5391. >
  5392. <div class="group_name">{{ g.name }}</div>
  5393. </el-tooltip>
  5394. </div>
  5395. <div
  5396. class="group_work"
  5397. v-if="
  5398. g.works &&
  5399. g.works.length &&
  5400. g.works[toolIndex].length
  5401. "
  5402. >
  5403. <div
  5404. class="works"
  5405. style="
  5406. width: 200px;
  5407. height: 140px;
  5408. margin: 10px 10px 10px 0;
  5409. border-radius: 15px;
  5410. box-shadow: 0 0 6px 1px #dfdada;
  5411. "
  5412. v-for="(w, wIndex) in g.works[toolIndex]"
  5413. :key="wIndex"
  5414. :class="w.type == 1 ? 'isTypeOne' : ''"
  5415. >
  5416. <div class="workImg">
  5417. <img
  5418. :src="w.works"
  5419. @click="previewImg(w.works)"
  5420. alt
  5421. />
  5422. <div
  5423. class="answerScore"
  5424. v-if="w.score"
  5425. @click.stop="openScore(w)"
  5426. :class="{
  5427. rightW:
  5428. w.userid == userid ||
  5429. tType == 1 ||
  5430. tType == 4,
  5431. }"
  5432. >
  5433. {{ JSON.parse(w.score).wScore }}分
  5434. </div>
  5435. <div
  5436. class="answerScore"
  5437. @click.stop="openScore(w)"
  5438. v-else-if="courseDetail.userid == userid"
  5439. :class="{
  5440. rightW:
  5441. w.userid == userid ||
  5442. tType == 1 ||
  5443. tType == 4,
  5444. }"
  5445. >
  5446. 评分
  5447. </div>
  5448. <img
  5449. class="deleteImg"
  5450. src="../../assets/deleteworks.png"
  5451. v-if="
  5452. w.userid == userid || tType == 1 || tType == 4
  5453. "
  5454. @click.stop="deleteWorks(w.wid)"
  5455. alt
  5456. />
  5457. </div>
  5458. <div class="comment" style="min-width: 200px">
  5459. <div class="worksName">
  5460. <div>{{ w.sName }}</div>
  5461. </div>
  5462. <div class="commentList">
  5463. <div class="commentList">
  5464. <div
  5465. class="commentImg"
  5466. @click="
  5467. isLikes(w.wid, userid, 1, null, w.isLikes)
  5468. "
  5469. >
  5470. <img
  5471. :src="w.isLikes == true ? likes : noLikes"
  5472. alt=""
  5473. />
  5474. </div>
  5475. <div>{{ w.likesCount }}</div>
  5476. </div>
  5477. <div
  5478. class="commentList"
  5479. style="margin-right: 15px"
  5480. >
  5481. <div
  5482. class="commentImg"
  5483. @click="
  5484. commentOther(
  5485. w,
  5486. toolIndex,
  5487. wIndex,
  5488. null,
  5489. g.id
  5490. )
  5491. "
  5492. >
  5493. <img
  5494. src="../../assets/icon/comment/comment.png"
  5495. alt=""
  5496. />
  5497. </div>
  5498. <div>{{ w.commentCount }}</div>
  5499. </div>
  5500. </div>
  5501. </div>
  5502. </div>
  5503. </div>
  5504. <div class="group_work" v-else>暂无提交作业</div>
  5505. </div>
  5506. </div>
  5507. <div
  5508. :id="'tool-' + toolIndex"
  5509. :style="{
  5510. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5511. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5512. }"
  5513. class="worksDetailBox"
  5514. v-if="
  5515. worksStudent.length &&
  5516. worksStudent[toolIndex].length > 0
  5517. "
  5518. >
  5519. <div
  5520. class="works"
  5521. style="
  5522. width: 200px;
  5523. height: 140px;
  5524. margin: 10px 10px 10px 0;
  5525. border-radius: 15px;
  5526. box-shadow: 0 0 6px 1px #dfdada;
  5527. "
  5528. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5529. :key="wIndex"
  5530. >
  5531. <!-- @click="previewImg(w.works)" -->
  5532. <div class="workImg">
  5533. <img
  5534. :src="w.works"
  5535. @click="previewImg(w.works)"
  5536. alt
  5537. />
  5538. <div
  5539. class="answerScore"
  5540. v-if="w.score"
  5541. @click.stop="openScore(w)"
  5542. :class="{
  5543. rightW:
  5544. w.userid == userid || tType == 1 || tType == 4,
  5545. }"
  5546. >
  5547. {{ JSON.parse(w.score).wScore }}分
  5548. </div>
  5549. <div
  5550. class="answerScore"
  5551. @click.stop="openScore(w)"
  5552. v-else-if="courseDetail.userid == userid"
  5553. :class="{
  5554. rightW:
  5555. w.userid == userid || tType == 1 || tType == 4,
  5556. }"
  5557. >
  5558. 评分
  5559. </div>
  5560. <img
  5561. class="deleteImg"
  5562. src="../../assets/deleteworks.png"
  5563. v-if="
  5564. w.userid == userid || tType == 1 || tType == 4
  5565. "
  5566. @click.stop="deleteWorks(w.wid)"
  5567. alt
  5568. />
  5569. </div>
  5570. <div class="comment" style="min-width: 200px">
  5571. <div class="worksName">
  5572. <div>{{ w.sName }}</div>
  5573. </div>
  5574. <div class="commentList">
  5575. <div class="commentList">
  5576. <div
  5577. class="commentImg"
  5578. @click="
  5579. isLikes(w.wid, userid, 1, null, w.isLikes)
  5580. "
  5581. >
  5582. <img
  5583. :src="w.isLikes == true ? likes : noLikes"
  5584. alt=""
  5585. />
  5586. </div>
  5587. <div>{{ w.likesCount }}</div>
  5588. </div>
  5589. <div class="commentList" style="margin-right: 15px">
  5590. <div
  5591. class="commentImg"
  5592. @click="commentOther(w, toolIndex, wIndex)"
  5593. >
  5594. <img
  5595. src="../../assets/icon/comment/comment.png"
  5596. alt=""
  5597. />
  5598. </div>
  5599. <div>{{ w.commentCount }}</div>
  5600. </div>
  5601. </div>
  5602. </div>
  5603. </div>
  5604. </div>
  5605. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5606. 未提交
  5607. </div>
  5608. <div
  5609. class="noWorksS"
  5610. v-if="noWorksS && noWorksS[toolIndex].length"
  5611. >
  5612. <div
  5613. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5614. :key="sIndex"
  5615. class="noWorksName"
  5616. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5617. >
  5618. <el-tooltip effect="dark" :content="s.student" placement="top">
  5619. <span>{{ s.student }}</span>
  5620. </el-tooltip>
  5621. </div>
  5622. </div>
  5623. </div>
  5624. <div
  5625. v-if="
  5626. tType &&
  5627. ((tType == 2 && sIsOpen == true) ||
  5628. tType == 1 ||
  5629. tType == 4) &&
  5630. tool.tool.indexOf(26) != -1
  5631. "
  5632. class="worksBox"
  5633. >
  5634. <div
  5635. class="zuoyeYulan"
  5636. v-if="
  5637. worksStudent.length &&
  5638. worksStudent[toolIndex].length > 0
  5639. "
  5640. >
  5641. <div class="worksTop">
  5642. <div>作业预览</div>
  5643. <div
  5644. class="corOpen"
  5645. @click="contract(toolIndex)"
  5646. v-if="
  5647. (isCloseList[toolIndex].isCloseBoolean) &&
  5648. isCloseList[toolIndex].isClose == 0
  5649. "
  5650. >
  5651. 折叠
  5652. </div>
  5653. <div
  5654. class="corOpen"
  5655. @click="contract(toolIndex)"
  5656. v-if="isCloseList[toolIndex].isClose == 1"
  5657. >
  5658. 展开
  5659. </div>
  5660. </div>
  5661. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5662. </div>
  5663. <div
  5664. :id="'tool-' + toolIndex"
  5665. :style="{
  5666. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5667. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5668. }"
  5669. class="worksDetailBox"
  5670. v-if="
  5671. worksStudent.length &&
  5672. worksStudent[toolIndex].length > 0
  5673. "
  5674. >
  5675. <div
  5676. class="works"
  5677. style="width: 240px; height: 140px; overflow: hidden"
  5678. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5679. :key="wIndex"
  5680. :class="w.type == 1 ? 'isTypeOne' : ''"
  5681. >
  5682. <div class="workImg" v-if="w.type == 0">
  5683. <img
  5684. :src="w.works"
  5685. @click="previewImg(w.works)"
  5686. alt
  5687. />
  5688. <img
  5689. class="deleteImg"
  5690. src="../../assets/deleteworks.png"
  5691. v-if="
  5692. w.userid == userid || tType == 1 || tType == 4
  5693. "
  5694. @click.stop="deleteWorks(w.wid)"
  5695. alt
  5696. />
  5697. </div>
  5698. <div class="workImg" v-if="w.type == 1">
  5699. <img :src="word" @click="openFile(w.works)" alt />
  5700. <img
  5701. class="deleteImg"
  5702. src="../../assets/deleteworks.png"
  5703. v-if="
  5704. w.userid == userid || tType == 1 || tType == 4
  5705. "
  5706. @click.stop="deleteWorks(w.wid)"
  5707. alt
  5708. />
  5709. </div>
  5710. <div class="worksName">
  5711. <div>{{ w.sName }}</div>
  5712. </div>
  5713. </div>
  5714. </div>
  5715. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5716. 未提交
  5717. </div>
  5718. <div
  5719. class="noWorksS"
  5720. v-if="noWorksS && noWorksS[toolIndex].length"
  5721. >
  5722. <div
  5723. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5724. :key="sIndex"
  5725. class="noWorksName"
  5726. >
  5727. <el-tooltip effect="dark" :content="s.student" placement="top">
  5728. <span>{{ s.student }}</span>
  5729. </el-tooltip>
  5730. </div>
  5731. </div>
  5732. </div>
  5733. <div
  5734. v-if="
  5735. tType &&
  5736. ((tType == 2 && sIsOpen == true) ||
  5737. tType == 1 ||
  5738. tType == 4) &&
  5739. tool.tool.indexOf(40) != -1
  5740. "
  5741. class="worksBox"
  5742. >
  5743. <div
  5744. class="zuoyeYulan"
  5745. v-if="
  5746. worksStudent.length &&
  5747. worksStudent[toolIndex].length > 0
  5748. "
  5749. >
  5750. <div class="worksTop">
  5751. <div>作业预览</div>
  5752. <div
  5753. class="corOpen"
  5754. @click="contract(toolIndex)"
  5755. v-if="
  5756. (isCloseList[toolIndex].isCloseBoolean) &&
  5757. isCloseList[toolIndex].isClose == 0
  5758. "
  5759. >
  5760. 折叠
  5761. </div>
  5762. <div
  5763. class="corOpen"
  5764. @click="contract(toolIndex)"
  5765. v-if="isCloseList[toolIndex].isClose == 1"
  5766. >
  5767. 展开
  5768. </div>
  5769. </div>
  5770. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5771. </div>
  5772. <div
  5773. :id="'tool-' + toolIndex"
  5774. :style="{
  5775. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5776. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5777. }"
  5778. class="worksDetailBox"
  5779. v-if="
  5780. worksStudent.length &&
  5781. worksStudent[toolIndex].length > 0
  5782. "
  5783. >
  5784. <div
  5785. class="works"
  5786. style="
  5787. width: 200px;
  5788. height: 140px;
  5789. margin: 10px 10px 10px 0;
  5790. border-radius: 15px;
  5791. box-shadow: 0 0 6px 1px #dfdada;
  5792. "
  5793. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5794. :key="wIndex"
  5795. :class="w.type == 1 ? 'isTypeOne' : ''"
  5796. >
  5797. <div class="workImg">
  5798. <img
  5799. src="../../assets/icon/works/noImg.png"
  5800. @click="openPj(w.works, toolIndex)"
  5801. alt
  5802. />
  5803. <img
  5804. class="deleteImg"
  5805. src="../../assets/deleteworks.png"
  5806. v-if="
  5807. w.userid == userid || tType == 1 || tType == 4
  5808. "
  5809. @click.stop="deleteWorks(w.wid)"
  5810. alt
  5811. />
  5812. </div>
  5813. <div class="comment" style="min-width: 200px">
  5814. <div class="worksName">
  5815. <div>{{ w.sName }}</div>
  5816. </div>
  5817. <div class="commentList">
  5818. <div class="commentList">
  5819. <div
  5820. class="commentImg"
  5821. @click="
  5822. isLikes(w.wid, userid, 1, null, w.isLikes)
  5823. "
  5824. >
  5825. <img
  5826. :src="w.isLikes == true ? likes : noLikes"
  5827. alt=""
  5828. />
  5829. </div>
  5830. <div>{{ w.likesCount }}</div>
  5831. </div>
  5832. <div class="commentList" style="margin-right: 15px">
  5833. <div
  5834. class="commentImg"
  5835. @click="commentOther(w, toolIndex, wIndex)"
  5836. >
  5837. <img
  5838. src="../../assets/icon/comment/comment.png"
  5839. alt=""
  5840. />
  5841. </div>
  5842. <div>{{ w.commentCount }}</div>
  5843. </div>
  5844. </div>
  5845. </div>
  5846. </div>
  5847. </div>
  5848. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5849. 未提交
  5850. </div>
  5851. <div
  5852. class="noWorksS"
  5853. v-if="noWorksS && noWorksS[toolIndex].length"
  5854. >
  5855. <div
  5856. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5857. :key="sIndex"
  5858. class="noWorksName"
  5859. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5860. >
  5861. <el-tooltip effect="dark" :content="s.student" placement="top">
  5862. <span>{{ s.student }}</span>
  5863. </el-tooltip>
  5864. </div>
  5865. </div>
  5866. </div>
  5867. <div
  5868. v-if="
  5869. tType &&
  5870. tType == 2 &&
  5871. !sIsOpen &&
  5872. tool.tool.indexOf(40) != -1
  5873. "
  5874. class="worksBox"
  5875. >
  5876. <div
  5877. class="zuoyeYulan"
  5878. v-if="workStudent[toolIndex].length > 0"
  5879. >
  5880. <span class="worksTitle">作业预览</span>
  5881. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5882. </div>
  5883. <div
  5884. class="worksDetailBox"
  5885. v-if="workStudent[toolIndex].length > 0"
  5886. >
  5887. <div
  5888. class="works"
  5889. style="
  5890. width: 200px;
  5891. height: 140px;
  5892. margin: 10px 10px 10px 0;
  5893. "
  5894. v-for="(w, wIndex) in workStudent[toolIndex]"
  5895. :key="wIndex"
  5896. >
  5897. <div class="workImg">
  5898. <img
  5899. src="../../assets/icon/works/noImg.png"
  5900. @click="openPj(w.works, toolIndex)"
  5901. alt
  5902. />
  5903. <img
  5904. class="deleteImg"
  5905. src="../../assets/deleteworks.png"
  5906. v-if="
  5907. w.userid == userid || tType == 1 || tType == 4
  5908. "
  5909. @click.stop="deleteWorks(w.wid)"
  5910. alt
  5911. />
  5912. </div>
  5913. <div class="worksName">
  5914. <div>{{ w.sName }}</div>
  5915. </div>
  5916. </div>
  5917. </div>
  5918. </div>
  5919. <div
  5920. v-if="
  5921. tType &&
  5922. ((tType == 2 && sIsOpen == true) ||
  5923. tType == 1 ||
  5924. tType == 4) &&
  5925. tool.tool.indexOf(41) != -1
  5926. "
  5927. >
  5928. <AnswerData2
  5929. v-if="
  5930. worksStudent.length &&
  5931. worksStudent[toolIndex].length > 0
  5932. "
  5933. :problemJson="tool.selectJson.answer"
  5934. :people="worksStudent[toolIndex]"
  5935. ></AnswerData2>
  5936. </div>
  5937. <div
  5938. v-if="
  5939. tType &&
  5940. ((tType == 2 && sIsOpen == true) ||
  5941. tType == 1 ||
  5942. tType == 4) &&
  5943. tool.tool.indexOf(41) != -1
  5944. "
  5945. class="worksBox"
  5946. >
  5947. <div
  5948. class="zuoyeYulan"
  5949. v-if="
  5950. worksStudent.length &&
  5951. worksStudent[toolIndex].length > 0
  5952. "
  5953. >
  5954. <div class="worksTop">
  5955. <div>作业预览</div>
  5956. <div
  5957. class="corOpen"
  5958. @click="contract(toolIndex)"
  5959. v-if="
  5960. (isCloseList[toolIndex].isCloseBoolean) &&
  5961. isCloseList[toolIndex].isClose == 0
  5962. "
  5963. >
  5964. 折叠
  5965. </div>
  5966. <div
  5967. class="corOpen"
  5968. @click="contract(toolIndex)"
  5969. v-if="isCloseList[toolIndex].isClose == 1"
  5970. >
  5971. 展开
  5972. </div>
  5973. </div>
  5974. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5975. </div>
  5976. <div
  5977. :id="'tool-' + toolIndex"
  5978. :style="{
  5979. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5980. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5981. }"
  5982. class="worksDetailBox"
  5983. v-if="
  5984. worksStudent.length &&
  5985. worksStudent[toolIndex].length > 0
  5986. "
  5987. >
  5988. <div
  5989. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5990. :key="wIndex"
  5991. class="isWorksName2"
  5992. @click="openXz(w, toolIndex)"
  5993. >
  5994. {{ w.sName }}
  5995. <img
  5996. class="deleteImg deleteImg2"
  5997. src="../../assets/deleteworks.png"
  5998. v-if="w.userid == userid || tType == 1 || tType == 4"
  5999. @click.stop="deleteWorks(w.wid)"
  6000. alt
  6001. />
  6002. </div>
  6003. <!-- <div
  6004. class="works"
  6005. style="
  6006. width: 200px;
  6007. height: 140px;
  6008. margin: 10px 10px 10px 0;
  6009. border-radius: 15px;
  6010. box-shadow: 0 0 6px 1px #dfdada;
  6011. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6012. :class="w.type == 5 ? 'isTypeOne' : ''">
  6013. <div class="workImg">
  6014. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6015. </div>
  6016. <div class="worksName">
  6017. <div>{{ w.sName }}</div>
  6018. </div>
  6019. </div> -->
  6020. </div>
  6021. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6022. 未提交
  6023. </div>
  6024. <div
  6025. class="noWorksS"
  6026. v-if="noWorksS && noWorksS[toolIndex].length"
  6027. >
  6028. <div
  6029. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6030. :key="sIndex"
  6031. class="noWorksName"
  6032. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6033. >
  6034. <el-tooltip effect="dark" :content="s.student" placement="top">
  6035. <span>{{ s.student }}</span>
  6036. </el-tooltip>
  6037. </div>
  6038. </div>
  6039. </div>
  6040. <div
  6041. v-if="
  6042. tType &&
  6043. tType == 2 &&
  6044. !sIsOpen &&
  6045. tool.tool.indexOf(41) != -1
  6046. "
  6047. class="worksBox"
  6048. >
  6049. <div
  6050. class="zuoyeYulan"
  6051. v-if="workStudent[toolIndex].length > 0"
  6052. >
  6053. <span class="worksTitle">作业预览</span>
  6054. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6055. </div>
  6056. <div
  6057. class="worksDetailBox"
  6058. v-if="workStudent[toolIndex].length > 0"
  6059. >
  6060. <div
  6061. class="works"
  6062. style="
  6063. width: 200px;
  6064. height: 140px;
  6065. margin: 10px 10px 10px 0;
  6066. "
  6067. v-for="(w, wIndex) in workStudent[toolIndex]"
  6068. :key="wIndex"
  6069. >
  6070. <div class="workImg">
  6071. <img
  6072. src="../../assets/icon/works/noImg.png"
  6073. @click="openXz(w, toolIndex)"
  6074. alt
  6075. />
  6076. <img
  6077. class="deleteImg"
  6078. src="../../assets/deleteworks.png"
  6079. v-if="
  6080. w.userid == userid || tType == 1 || tType == 4
  6081. "
  6082. @click.stop="deleteWorks(w.wid)"
  6083. alt
  6084. />
  6085. </div>
  6086. <div class="worksName">
  6087. <div>{{ w.sName }}</div>
  6088. </div>
  6089. </div>
  6090. </div>
  6091. </div>
  6092. <div v-if="false" class="xuan_right_box">
  6093. <div
  6094. class="tool_right_box"
  6095. v-for="(item, index) in tool.sentenceList"
  6096. :key="index"
  6097. >
  6098. <div>
  6099. <span
  6100. style="word-break: break-all; white-space: normal"
  6101. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6102. >
  6103. </div>
  6104. <div class="right_box_xuan">
  6105. <span>正确率</span>
  6106. <span>{{
  6107. (checkJson[toolIndex][index].right
  6108. ? checkJson[toolIndex][index].right
  6109. : 0) + "%"
  6110. }}</span>
  6111. </div>
  6112. <div class="right_box_xuan">
  6113. <span>答对人数</span>
  6114. <span>{{
  6115. checkJson[toolIndex][index].rightPerson.length
  6116. }}</span>
  6117. </div>
  6118. </div>
  6119. </div>
  6120. <div
  6121. v-if="
  6122. tType &&
  6123. ((tType == 2 && sIsOpen == true) ||
  6124. tType == 1 ||
  6125. tType == 4) &&
  6126. tool.tool.indexOf(47) != -1
  6127. "
  6128. >
  6129. <AnswerData
  6130. v-if="
  6131. checkJson[toolIndex].length &&
  6132. (tool.sentenceList || tool.sentenceList.length > 0)
  6133. "
  6134. :people="checkJson[toolIndex]"
  6135. ></AnswerData>
  6136. </div>
  6137. <div
  6138. v-if="
  6139. tType &&
  6140. tType == 2 &&
  6141. !sIsOpen &&
  6142. tool.tool.indexOf(47) != -1
  6143. "
  6144. class="worksBox"
  6145. >
  6146. <div
  6147. class="zuoyeYulan"
  6148. v-if="workStudent[toolIndex].length > 0"
  6149. >
  6150. <span class="worksTitle">作业预览</span>
  6151. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6152. </div>
  6153. <div
  6154. class="worksDetailBox"
  6155. v-if="workStudent[toolIndex].length > 0"
  6156. >
  6157. <div
  6158. class="works"
  6159. style="
  6160. width: 200px;
  6161. height: 140px;
  6162. margin: 10px 10px 10px 0;
  6163. "
  6164. v-for="(w, wIndex) in workStudent[toolIndex]"
  6165. :key="wIndex"
  6166. >
  6167. <!-- @click="openXz(w, toolIndex)" -->
  6168. <div class="workImg" @click="openSen(w, toolIndex)">
  6169. <img src="../../assets/icon/works/noImg.png" alt />
  6170. <img
  6171. class="deleteImg"
  6172. src="../../assets/deleteworks.png"
  6173. v-if="
  6174. w.userid == userid || tType == 1 || tType == 4
  6175. "
  6176. @click.stop="deleteWorks(w.wid)"
  6177. alt
  6178. />
  6179. </div>
  6180. <div class="worksName">
  6181. <div>
  6182. {{ w.sName }}
  6183. </div>
  6184. </div>
  6185. </div>
  6186. </div>
  6187. </div>
  6188. <div
  6189. v-if="
  6190. tType &&
  6191. ((tType == 2 && sIsOpen == true) ||
  6192. tType == 1 ||
  6193. tType == 4) &&
  6194. tool.tool.indexOf(47) != -1
  6195. "
  6196. class="worksBox"
  6197. >
  6198. <div
  6199. class="zuoyeYulan"
  6200. v-if="
  6201. worksStudent.length &&
  6202. worksStudent[toolIndex].length > 0
  6203. "
  6204. >
  6205. <div class="worksTop">
  6206. <div>作业预览</div>
  6207. <div
  6208. class="corOpen"
  6209. @click="contract(toolIndex)"
  6210. v-if="
  6211. (isCloseList[toolIndex].isCloseBoolean) &&
  6212. isCloseList[toolIndex].isClose == 0
  6213. "
  6214. >
  6215. 折叠
  6216. </div>
  6217. <div
  6218. class="corOpen"
  6219. @click="contract(toolIndex)"
  6220. v-if="isCloseList[toolIndex].isClose == 1"
  6221. >
  6222. 展开
  6223. </div>
  6224. </div>
  6225. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6226. </div>
  6227. <div
  6228. :id="'tool-' + toolIndex"
  6229. :style="{
  6230. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6231. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6232. }"
  6233. class="worksDetailBox"
  6234. v-if="
  6235. worksStudent.length &&
  6236. worksStudent[toolIndex].length > 0
  6237. "
  6238. >
  6239. <!-- @click="openXz(w, toolIndex)" -->
  6240. <div
  6241. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6242. :key="wIndex"
  6243. class="isWorksName2"
  6244. @click="openSen(w, toolIndex)"
  6245. >
  6246. {{ w.sName }}
  6247. <img
  6248. class="deleteImg deleteImg2"
  6249. src="../../assets/deleteworks.png"
  6250. v-if="w.userid == userid || tType == 1 || tType == 4"
  6251. @click.stop="deleteWorks(w.wid)"
  6252. alt
  6253. />
  6254. </div>
  6255. </div>
  6256. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6257. 未提交
  6258. </div>
  6259. <div
  6260. class="noWorksS"
  6261. v-if="noWorksS && noWorksS[toolIndex].length"
  6262. >
  6263. <div
  6264. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6265. :key="sIndex"
  6266. class="noWorksName"
  6267. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6268. >
  6269. <el-tooltip effect="dark" :content="s.student" placement="top">
  6270. <span>{{ s.student }}</span>
  6271. </el-tooltip>
  6272. </div>
  6273. </div>
  6274. </div>
  6275. <div
  6276. v-if="
  6277. tType &&
  6278. ((tType == 2 && sIsOpen == true) ||
  6279. tType == 1 ||
  6280. tType == 4) &&
  6281. tool.tool.indexOf(48) != -1
  6282. "
  6283. class="worksBox"
  6284. >
  6285. <div
  6286. class="zuoyeYulan"
  6287. v-if="
  6288. worksStudent.length &&
  6289. worksStudent[toolIndex].length > 0
  6290. "
  6291. >
  6292. <div class="worksTop">
  6293. <div>作业预览</div>
  6294. <div
  6295. class="corOpen"
  6296. @click="contract(toolIndex)"
  6297. v-if="
  6298. (isCloseList[toolIndex].isCloseBoolean) &&
  6299. isCloseList[toolIndex].isClose == 0
  6300. "
  6301. >
  6302. 折叠
  6303. </div>
  6304. <div
  6305. class="corOpen"
  6306. @click="contract(toolIndex)"
  6307. v-if="isCloseList[toolIndex].isClose == 1"
  6308. >
  6309. 展开
  6310. </div>
  6311. </div>
  6312. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6313. </div>
  6314. <div
  6315. :id="'tool-' + toolIndex"
  6316. :style="{
  6317. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6318. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6319. }"
  6320. class="worksDetailBox"
  6321. v-if="
  6322. worksStudent.length &&
  6323. worksStudent[toolIndex].length > 0
  6324. "
  6325. >
  6326. <div
  6327. class="works"
  6328. style="
  6329. width: 200px;
  6330. height: 140px;
  6331. margin: 10px 10px 10px 0;
  6332. border-radius: 15px;
  6333. box-shadow: 0 0 6px 1px #dfdada;
  6334. "
  6335. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6336. :key="wIndex"
  6337. :class="w.type == 1 ? 'isTypeOne' : ''"
  6338. >
  6339. <div class="workImg">
  6340. <img :src="word" @click="openTable(w)" alt />
  6341. <!-- @click="openFile(w.works)" -->
  6342. <div
  6343. class="answerScore"
  6344. v-if="w.score"
  6345. @click.stop="openScore(w)"
  6346. :class="{
  6347. rightW:
  6348. w.userid == userid ||
  6349. tType == 1 ||
  6350. tType == 4 ||
  6351. w.ateacher == userid,
  6352. }"
  6353. >
  6354. {{ JSON.parse(w.score).wScore }}分
  6355. </div>
  6356. <div
  6357. class="answerScore"
  6358. @click.stop="openScore(w)"
  6359. v-else-if="courseDetail.userid == userid"
  6360. :class="{
  6361. rightW:
  6362. w.userid == userid ||
  6363. tType == 1 ||
  6364. tType == 4 ||
  6365. w.ateacher == userid,
  6366. }"
  6367. >
  6368. 评分
  6369. </div>
  6370. <img
  6371. class="deleteImg"
  6372. src="../../assets/deleteworks.png"
  6373. v-if="
  6374. w.userid == userid || tType == 1 || tType == 4
  6375. "
  6376. @click.stop="deleteWorks(w.wid)"
  6377. alt
  6378. />
  6379. </div>
  6380. <div class="comment" style="min-width: 200px">
  6381. <div class="worksName">
  6382. <div>{{ w.sName }}</div>
  6383. </div>
  6384. <div class="commentList">
  6385. <div class="commentList">
  6386. <div
  6387. class="commentImg"
  6388. @click="
  6389. isLikes(w.wid, userid, 1, null, w.isLikes)
  6390. "
  6391. >
  6392. <img
  6393. :src="w.isLikes == true ? likes : noLikes"
  6394. alt=""
  6395. />
  6396. </div>
  6397. <div>{{ w.likesCount }}</div>
  6398. </div>
  6399. <div class="commentList" style="margin-right: 15px">
  6400. <div
  6401. class="commentImg"
  6402. @click="commentOther(w, toolIndex, wIndex)"
  6403. >
  6404. <img
  6405. src="../../assets/icon/comment/comment.png"
  6406. alt=""
  6407. />
  6408. </div>
  6409. <div>{{ w.commentCount }}</div>
  6410. </div>
  6411. </div>
  6412. </div>
  6413. </div>
  6414. </div>
  6415. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6416. 未提交
  6417. </div>
  6418. <div
  6419. class="noWorksS"
  6420. v-if="noWorksS && noWorksS[toolIndex].length"
  6421. >
  6422. <div
  6423. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6424. :key="sIndex"
  6425. class="noWorksName"
  6426. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6427. >
  6428. <el-tooltip effect="dark" :content="s.student" placement="top">
  6429. <span>{{ s.student }}</span>
  6430. </el-tooltip>
  6431. </div>
  6432. </div>
  6433. </div>
  6434. <div
  6435. v-if="
  6436. tType &&
  6437. tType == 2 &&
  6438. !sIsOpen &&
  6439. tool.tool.indexOf(48) != -1
  6440. "
  6441. class="worksBox"
  6442. >
  6443. <div
  6444. class="zuoyeYulan"
  6445. v-if="workStudent[toolIndex].length > 0"
  6446. >
  6447. <span class="worksTitle">作业预览</span>
  6448. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6449. </div>
  6450. <div
  6451. class="worksDetailBox"
  6452. v-if="workStudent[toolIndex].length > 0"
  6453. >
  6454. <div
  6455. class="works"
  6456. style="
  6457. width: 200px;
  6458. height: 140px;
  6459. margin: 10px 10px 10px 0;
  6460. box-shadow: 0 0 6px 1px #dfdada;
  6461. "
  6462. v-for="(w, wIndex) in workStudent[toolIndex]"
  6463. :key="wIndex"
  6464. >
  6465. <div class="workImg">
  6466. <img :src="word" @click="openTable(w)" alt />
  6467. <div
  6468. class="answerScore"
  6469. v-if="w.score"
  6470. @click.stop="openScore(w)"
  6471. :class="{
  6472. rightW:
  6473. w.userid == userid || tType == 1 || tType == 4,
  6474. }"
  6475. >
  6476. {{ JSON.parse(w.score).wScore }}分
  6477. </div>
  6478. <div
  6479. class="answerScore"
  6480. @click.stop="openScore(w)"
  6481. v-else-if="courseDetail.userid == userid"
  6482. :class="{
  6483. rightW:
  6484. w.userid == userid || tType == 1 || tType == 4,
  6485. }"
  6486. >
  6487. 评分
  6488. </div>
  6489. <img
  6490. class="deleteImg"
  6491. src="../../assets/deleteworks.png"
  6492. v-if="
  6493. w.userid == userid || tType == 1 || tType == 4
  6494. "
  6495. @click.stop="deleteWorks(w.wid)"
  6496. alt
  6497. />
  6498. </div>
  6499. <div class="worksName">
  6500. <div>{{ w.sName }}</div>
  6501. </div>
  6502. </div>
  6503. </div>
  6504. </div>
  6505. <div
  6506. v-if="
  6507. tType &&
  6508. ((tType == 2 && sIsOpen == true) ||
  6509. tType == 1 ||
  6510. tType == 4) &&
  6511. tool.tool.indexOf(52) != -1
  6512. "
  6513. class="worksBox"
  6514. >
  6515. <div
  6516. class="zuoyeYulan"
  6517. v-if="
  6518. worksStudent.length &&
  6519. worksStudent[toolIndex].length > 0
  6520. "
  6521. >
  6522. <div class="worksTop">
  6523. <div>作业预览</div>
  6524. <div
  6525. class="corOpen"
  6526. @click="contract(toolIndex)"
  6527. v-if="
  6528. (isCloseList[toolIndex].isCloseBoolean) &&
  6529. isCloseList[toolIndex].isClose == 0
  6530. "
  6531. >
  6532. 折叠
  6533. </div>
  6534. <div
  6535. class="corOpen"
  6536. @click="contract(toolIndex)"
  6537. v-if="isCloseList[toolIndex].isClose == 1"
  6538. >
  6539. 展开
  6540. </div>
  6541. </div>
  6542. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6543. </div>
  6544. <div
  6545. :id="'tool-' + toolIndex"
  6546. :style="{
  6547. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6548. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6549. }"
  6550. class="worksDetailBox"
  6551. v-if="
  6552. worksStudent.length &&
  6553. worksStudent[toolIndex].length > 0
  6554. "
  6555. >
  6556. <div
  6557. class="works"
  6558. style="
  6559. width: 200px;
  6560. height: 140px;
  6561. margin: 10px 10px 10px 0;
  6562. border-radius: 15px;
  6563. box-shadow: 0 0 6px 1px #dfdada;
  6564. "
  6565. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6566. :key="wIndex"
  6567. :class="w.type == 1 ? 'isTypeOne' : ''"
  6568. >
  6569. <div class="workImg">
  6570. <img :src="word" @click="openWord(w)" alt />
  6571. <!-- @click="openFile(w.works)" -->
  6572. <div
  6573. class="answerScore"
  6574. v-if="w.score"
  6575. @click.stop="openScore(w)"
  6576. :class="{
  6577. rightW:
  6578. w.userid == userid ||
  6579. tType == 1 ||
  6580. tType == 4 ||
  6581. w.ateacher == userid,
  6582. }"
  6583. >
  6584. {{ JSON.parse(w.score).wScore }}分
  6585. </div>
  6586. <div
  6587. class="answerScore"
  6588. @click.stop="openScore(w)"
  6589. v-else-if="courseDetail.userid == userid"
  6590. :class="{
  6591. rightW:
  6592. w.userid == userid ||
  6593. tType == 1 ||
  6594. tType == 4 ||
  6595. w.ateacher == userid,
  6596. }"
  6597. >
  6598. 评分
  6599. </div>
  6600. <img
  6601. class="deleteImg"
  6602. src="../../assets/deleteworks.png"
  6603. v-if="
  6604. w.userid == userid || tType == 1 || tType == 4
  6605. "
  6606. @click.stop="deleteWorks(w.wid)"
  6607. alt
  6608. />
  6609. </div>
  6610. <div class="comment" style="min-width: 200px">
  6611. <div class="worksName">
  6612. <div>{{ w.sName }}</div>
  6613. </div>
  6614. <div class="commentList">
  6615. <div class="commentList">
  6616. <div
  6617. class="commentImg"
  6618. @click="
  6619. isLikes(w.wid, userid, 1, null, w.isLikes)
  6620. "
  6621. >
  6622. <img
  6623. :src="w.isLikes == true ? likes : noLikes"
  6624. alt=""
  6625. />
  6626. </div>
  6627. <div>{{ w.likesCount }}</div>
  6628. </div>
  6629. <div class="commentList" style="margin-right: 15px">
  6630. <div
  6631. class="commentImg"
  6632. @click="commentOther(w, toolIndex, wIndex)"
  6633. >
  6634. <img
  6635. src="../../assets/icon/comment/comment.png"
  6636. alt=""
  6637. />
  6638. </div>
  6639. <div>{{ w.commentCount }}</div>
  6640. </div>
  6641. </div>
  6642. </div>
  6643. </div>
  6644. </div>
  6645. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6646. 未提交
  6647. </div>
  6648. <div
  6649. class="noWorksS"
  6650. v-if="noWorksS && noWorksS[toolIndex].length"
  6651. >
  6652. <div
  6653. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6654. :key="sIndex"
  6655. class="noWorksName"
  6656. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6657. >
  6658. <el-tooltip effect="dark" :content="s.student" placement="top">
  6659. <span>{{ s.student }}</span>
  6660. </el-tooltip>
  6661. </div>
  6662. </div>
  6663. </div>
  6664. <div
  6665. v-if="
  6666. tType &&
  6667. tType == 2 &&
  6668. !sIsOpen &&
  6669. tool.tool.indexOf(52) != -1
  6670. "
  6671. class="worksBox"
  6672. >
  6673. <div
  6674. class="zuoyeYulan"
  6675. v-if="workStudent[toolIndex].length > 0"
  6676. >
  6677. <span class="worksTitle">作业预览</span>
  6678. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6679. </div>
  6680. <div
  6681. class="worksDetailBox"
  6682. v-if="workStudent[toolIndex].length > 0"
  6683. >
  6684. <div
  6685. class="works"
  6686. style="
  6687. width: 200px;
  6688. height: 140px;
  6689. margin: 10px 10px 10px 0;
  6690. box-shadow: 0 0 6px 1px #dfdada;
  6691. "
  6692. v-for="(w, wIndex) in workStudent[toolIndex]"
  6693. :key="wIndex"
  6694. >
  6695. <div class="workImg">
  6696. <img :src="word" @click="openWord(w)" alt />
  6697. <div
  6698. class="answerScore"
  6699. v-if="w.score"
  6700. @click.stop="openScore(w)"
  6701. :class="{
  6702. rightW:
  6703. w.userid == userid || tType == 1 || tType == 4,
  6704. }"
  6705. >
  6706. {{ JSON.parse(w.score).wScore }}分
  6707. </div>
  6708. <div
  6709. class="answerScore"
  6710. @click.stop="openScore(w)"
  6711. v-else-if="courseDetail.userid == userid"
  6712. :class="{
  6713. rightW:
  6714. w.userid == userid || tType == 1 || tType == 4,
  6715. }"
  6716. >
  6717. 评分
  6718. </div>
  6719. <img
  6720. class="deleteImg"
  6721. src="../../assets/deleteworks.png"
  6722. v-if="
  6723. w.userid == userid || tType == 1 || tType == 4
  6724. "
  6725. @click.stop="deleteWorks(w.wid)"
  6726. alt
  6727. />
  6728. </div>
  6729. <div class="worksName">
  6730. <div>{{ w.sName }}</div>
  6731. </div>
  6732. </div>
  6733. </div>
  6734. </div>
  6735. <div
  6736. v-if="tool.tool.indexOf(49) != -1"
  6737. class="xuan_right_box"
  6738. style="margin: 0 15px 0 25px; width: 93%"
  6739. >
  6740. <div
  6741. v-if="courseDetail.userid == userid"
  6742. style="
  6743. display: flex;
  6744. justify-content: flex-end;
  6745. margin-right: 10px;
  6746. "
  6747. >
  6748. <el-button
  6749. type="primary"
  6750. size="small"
  6751. @click="addTools(49, toolIndex, taskCount)"
  6752. >分组设置</el-button
  6753. >
  6754. </div>
  6755. <div
  6756. v-if="groupStudentUid[toolIndex]"
  6757. class="group_staic_box"
  6758. >
  6759. <div
  6760. v-for="(gp, gd) in tool.groupJson.group"
  6761. :key="gd"
  6762. class="group_staic"
  6763. >
  6764. <span> {{ gp.name }}</span>
  6765. <span>
  6766. 目前人数{{
  6767. groupStudentUid[toolIndex][gd].length
  6768. }}人</span
  6769. >
  6770. </div>
  6771. </div>
  6772. </div>
  6773. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6774. <div
  6775. class="zuoyeYulan"
  6776. v-if="
  6777. worksStudent.length &&
  6778. worksStudent[toolIndex].length > 0
  6779. "
  6780. >
  6781. <span class="worksTitle">作业预览</span>
  6782. </div>
  6783. <div>
  6784. <div
  6785. class="group_workBox"
  6786. v-for="(g, gindex) in tool.groupJson.group"
  6787. :key="gindex"
  6788. >
  6789. <div
  6790. class="group_box"
  6791. v-if="
  6792. groupStudentUid[toolIndex] &&
  6793. worksStudent[toolIndex] &&
  6794. (worksStudent[toolIndex][gindex].length ||
  6795. groupStudentUid[toolIndex][gindex].indexOf(
  6796. userid
  6797. ) != -1)
  6798. "
  6799. >
  6800. <div class="group_title">
  6801. <el-tooltip
  6802. class="item"
  6803. effect="light"
  6804. :content="g.name"
  6805. placement="top"
  6806. >
  6807. <div class="group_name">{{ g.name }}</div>
  6808. </el-tooltip>
  6809. <el-button
  6810. type="primary"
  6811. v-if="
  6812. groupStudentUid[toolIndex][gindex].indexOf(
  6813. userid
  6814. ) != -1
  6815. "
  6816. @click="groupUpload(toolIndex, taskCount, gindex)"
  6817. >上传作业</el-button
  6818. >
  6819. </div>
  6820. <div class="group_work">
  6821. <div
  6822. class="works"
  6823. style="
  6824. width: 200px;
  6825. height: 140px;
  6826. margin: 10px 10px 10px 0;
  6827. border-radius: 15px;
  6828. box-shadow: 0 0 6px 1px #dfdada;
  6829. "
  6830. v-for="(w, wIndex) in worksStudent[toolIndex][
  6831. gindex
  6832. ]"
  6833. :key="wIndex"
  6834. :class="w.type == 1 ? 'isTypeOne' : ''"
  6835. >
  6836. <div class="workImg" v-if="w.type == 0">
  6837. <img
  6838. :src="w.works"
  6839. @click="previewImg(w.works)"
  6840. alt
  6841. />
  6842. <div
  6843. class="answerScore"
  6844. v-if="w.score"
  6845. @click.stop="openScore(w)"
  6846. :class="{
  6847. rightW:
  6848. w.userid == userid ||
  6849. tType == 1 ||
  6850. tType == 4 ||
  6851. w.ateacher == userid,
  6852. }"
  6853. >
  6854. {{ JSON.parse(w.score).wScore }}分
  6855. </div>
  6856. <div
  6857. class="answerScore"
  6858. @click.stop="openScore(w)"
  6859. v-else-if="courseDetail.userid == userid"
  6860. :class="{
  6861. rightW:
  6862. w.userid == userid ||
  6863. tType == 1 ||
  6864. tType == 4 ||
  6865. w.ateacher == userid,
  6866. }"
  6867. >
  6868. 评分
  6869. </div>
  6870. <img
  6871. class="deleteImg"
  6872. src="../../assets/deleteworks.png"
  6873. v-if="
  6874. w.userid == userid ||
  6875. tType == 1 ||
  6876. tType == 4
  6877. "
  6878. @click.stop="deleteWorks(w.wid)"
  6879. alt
  6880. />
  6881. </div>
  6882. <div class="workImg" v-if="w.type == 1">
  6883. <img
  6884. :src="word"
  6885. @click="openFile(w.works)"
  6886. alt
  6887. />
  6888. <!-- @click="openFile(w.works)" -->
  6889. <div
  6890. class="answerScore"
  6891. v-if="w.score"
  6892. @click.stop="openScore(w)"
  6893. :class="{
  6894. rightW:
  6895. w.userid == userid ||
  6896. tType == 1 ||
  6897. tType == 4 ||
  6898. w.ateacher == userid,
  6899. }"
  6900. >
  6901. {{ JSON.parse(w.score).wScore }}分
  6902. </div>
  6903. <div
  6904. class="answerScore"
  6905. @click.stop="openScore(w)"
  6906. v-else-if="courseDetail.userid == userid"
  6907. :class="{
  6908. rightW:
  6909. w.userid == userid ||
  6910. tType == 1 ||
  6911. tType == 4 ||
  6912. w.ateacher == userid,
  6913. }"
  6914. >
  6915. 评分
  6916. </div>
  6917. <img
  6918. class="deleteImg"
  6919. src="../../assets/deleteworks.png"
  6920. v-if="
  6921. w.userid == userid ||
  6922. tType == 1 ||
  6923. tType == 4
  6924. "
  6925. @click.stop="deleteWorks(w.wid)"
  6926. alt
  6927. />
  6928. </div>
  6929. <div class="workImg" v-if="w.type == 3">
  6930. <img
  6931. style="cursor: pointer"
  6932. :src="video"
  6933. @click="openVideo(w)"
  6934. alt
  6935. />
  6936. <!-- @click="openVideo(w.works)" -->
  6937. <div
  6938. class="answerScore"
  6939. v-if="w.score"
  6940. @click.stop="openScore(w)"
  6941. :class="{
  6942. rightW:
  6943. w.userid == userid ||
  6944. tType == 1 ||
  6945. tType == 4 ||
  6946. w.ateacher == userid,
  6947. }"
  6948. >
  6949. {{ JSON.parse(w.score).wScore }}分
  6950. </div>
  6951. <div
  6952. class="answerScore"
  6953. @click.stop="openScore(w)"
  6954. v-else-if="courseDetail.userid == userid"
  6955. :class="{
  6956. rightW:
  6957. w.userid == userid ||
  6958. tType == 1 ||
  6959. tType == 4 ||
  6960. w.ateacher == userid,
  6961. }"
  6962. >
  6963. 评分
  6964. </div>
  6965. <img
  6966. class="deleteImg"
  6967. src="../../assets/deleteworks.png"
  6968. v-if="
  6969. w.userid == userid ||
  6970. tType == 1 ||
  6971. tType == 4
  6972. "
  6973. @click.stop="deleteWorks(w.wid)"
  6974. alt
  6975. />
  6976. </div>
  6977. <div class="workImg" v-if="w.type == 12">
  6978. <img
  6979. style="cursor: pointer"
  6980. :src="word2"
  6981. @click="downloadFile(w.works)"
  6982. alt
  6983. />
  6984. <!-- @click="openVideo(w.works)" -->
  6985. <div
  6986. class="answerScore"
  6987. v-if="w.score"
  6988. @click.stop="openScore(w)"
  6989. :class="{
  6990. rightW:
  6991. w.userid == userid ||
  6992. tType == 1 ||
  6993. tType == 4 ||
  6994. w.ateacher == userid,
  6995. }"
  6996. >
  6997. {{ JSON.parse(w.score).wScore }}分
  6998. </div>
  6999. <div
  7000. class="answerScore"
  7001. @click.stop="openScore(w)"
  7002. v-else-if="courseDetail.userid == userid"
  7003. :class="{
  7004. rightW:
  7005. w.userid == userid ||
  7006. tType == 1 ||
  7007. tType == 4 ||
  7008. w.ateacher == userid,
  7009. }"
  7010. >
  7011. 评分
  7012. </div>
  7013. <img
  7014. class="deleteImg"
  7015. src="../../assets/deleteworks.png"
  7016. v-if="
  7017. w.userid == userid ||
  7018. tType == 1 ||
  7019. tType == 4
  7020. "
  7021. @click.stop="deleteWorks(w.wid)"
  7022. alt
  7023. />
  7024. </div>
  7025. <div class="comment" style="min-width: 200px">
  7026. <div class="worksName">
  7027. <div>{{ w.sName }}</div>
  7028. </div>
  7029. <div class="commentList">
  7030. <div class="commentList">
  7031. <div
  7032. class="commentImg"
  7033. @click="
  7034. isLikes(
  7035. w.wid,
  7036. userid,
  7037. 1,
  7038. null,
  7039. w.isLikes
  7040. )
  7041. "
  7042. >
  7043. <img
  7044. :src="
  7045. w.isLikes == true ? likes : noLikes
  7046. "
  7047. alt=""
  7048. />
  7049. </div>
  7050. <div>{{ w.likesCount }}</div>
  7051. </div>
  7052. <div
  7053. class="commentList"
  7054. style="margin-right: 15px"
  7055. >
  7056. <div
  7057. class="commentImg"
  7058. @click="
  7059. commentOther(
  7060. w,
  7061. toolIndex,
  7062. wIndex,
  7063. gindex
  7064. )
  7065. "
  7066. >
  7067. <img
  7068. src="../../assets/icon/comment/comment.png"
  7069. alt=""
  7070. />
  7071. </div>
  7072. <div>{{ w.commentCount }}</div>
  7073. </div>
  7074. </div>
  7075. </div>
  7076. </div>
  7077. </div>
  7078. </div>
  7079. </div>
  7080. </div>
  7081. </div>
  7082. </div>
  7083. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7084. 上传文件
  7085. <input
  7086. type="file"
  7087. accept="image/png, image/gif, image/jpeg"
  7088. style="display: none"
  7089. @change="beforeUpload1($event, 2, index)"
  7090. />
  7091. </div>-->
  7092. </div>
  7093. </div>
  7094. <!-- <div
  7095. class="vedioBox"
  7096. style="margin-top: 10px"
  7097. v-if="
  7098. courseDetail.userid == userid ||
  7099. (courseDetail.course_teacher &&
  7100. courseDetail.course_teacher.indexOf(userid) != -1)
  7101. "
  7102. :style="{
  7103. borderRadius:
  7104. !(
  7105. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7106. .toolChoose[0].tool &&
  7107. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7108. .toolChoose[0].tool.length > 0
  7109. ) &&
  7110. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7111. .taskDetail == '' &&
  7112. vChapterData[taskCount].length == 0 &&
  7113. fileC[taskCount].length == 0
  7114. ? '0 0 20px 20px'
  7115. : '20px',
  7116. }"
  7117. >
  7118. <div
  7119. class="queTop"
  7120. @click="isClose = !isClose"
  7121. style="
  7122. padding: 15px 0 15px 37px;
  7123. justify-content: space-between;
  7124. "
  7125. >
  7126. <div class="queTopTitle">新增工具</div>
  7127. <div class="queTopRight">
  7128. <div class="queTopClose" v-if="isClose == 0">
  7129. 展开
  7130. <div class="closeImg">
  7131. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7132. </div>
  7133. </div>
  7134. <div class="queTopClose" v-if="isClose == 1">
  7135. 折叠
  7136. <div class="openImg">
  7137. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7138. </div>
  7139. </div>
  7140. <el-button
  7141. style="margin: 0 30px 0 auto"
  7142. type="primary"
  7143. size="small"
  7144. v-if="isClose == 1 && checktoolArray.length > 0"
  7145. @click.stop="addToolChoose"
  7146. >确定</el-button
  7147. >
  7148. </div>
  7149. </div>
  7150. <div
  7151. class="tool_work_box"
  7152. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7153. >
  7154. <div class="tool_box">
  7155. <div class="tool_type_box">
  7156. <div class="chooseWho">
  7157. <div
  7158. :class="toolType == 0 ? 'isChooseActive' : ''"
  7159. @click="(toolType = 0), $forceUpdate()"
  7160. >
  7161. 互动类
  7162. </div>
  7163. <div
  7164. :class="toolType == 1 ? 'isChooseActive' : ''"
  7165. @click="(toolType = 1), $forceUpdate()"
  7166. >
  7167. 思维类
  7168. </div>
  7169. <div
  7170. :class="toolType == 2 ? 'isChooseActive' : ''"
  7171. @click="(toolType = 2), $forceUpdate()"
  7172. >
  7173. 测评类
  7174. </div>
  7175. <div
  7176. :class="toolType == 3 ? 'isChooseActive' : ''"
  7177. @click="(toolType = 3), $forceUpdate()"
  7178. >
  7179. 编程类
  7180. </div>
  7181. <div
  7182. :class="toolType == 5 ? 'isChooseActive' : ''"
  7183. @click="(toolType = 5), $forceUpdate()"
  7184. >
  7185. 学科类
  7186. </div>
  7187. </div>
  7188. </div>
  7189. <div>
  7190. <div class="toolSort" v-if="toolType == 0">
  7191. <div class="tool">
  7192. <div class="whiteBIcon" @click="addTools2(10)">
  7193. <img
  7194. src="../../assets/icon/thirdToolList/time.png"
  7195. alt
  7196. />
  7197. <div style="margin: 5px 0">倒计时</div>
  7198. </div>
  7199. <div class="check" @click="addTools2(10)">
  7200. <img
  7201. src="../../assets/icon/checkNo.png"
  7202. alt
  7203. v-if="checktoolArray.indexOf(10) == -1"
  7204. />
  7205. <div class="checkDiv" v-else>
  7206. <img src="../../assets/icon/checkedIs.png" alt /><span
  7207. >已选择</span
  7208. >
  7209. </div>
  7210. </div>
  7211. </div>
  7212. <div class="tool">
  7213. <div class="whiteBIcon" @click="addTools2(65)">
  7214. <img
  7215. src="../../assets/icon/firstToolList/pickPeople.png"
  7216. alt
  7217. />
  7218. <div style="margin: 5px 0">挑人</div>
  7219. </div>
  7220. <div class="check" @click="addTools2(65)">
  7221. <img
  7222. src="../../assets/icon/checkNo.png"
  7223. alt
  7224. v-if="checktoolArray.indexOf(65) == -1"
  7225. />
  7226. <div class="checkDiv" v-else>
  7227. <img src="../../assets/icon/checkedIs.png" alt /><span
  7228. >已选择</span
  7229. >
  7230. </div>
  7231. </div>
  7232. </div>
  7233. </div>
  7234. <div class="toolSort" v-if="toolType == 1">
  7235. <div class="tool">
  7236. <div class="whiteBIcon" @click="addTools2(7)">
  7237. <img
  7238. src="../../assets/icon/secondToolList/mindNetwork.png"
  7239. alt
  7240. />
  7241. <div style="margin: 5px 0">思维网格</div>
  7242. </div>
  7243. <div class="check" @click="addTools2(7)">
  7244. <img
  7245. src="../../assets/icon/checkNo.png"
  7246. alt
  7247. v-if="checktoolArray.indexOf(7) == -1"
  7248. />
  7249. <div class="checkDiv" v-else>
  7250. <img src="../../assets/icon/checkedIs.png" alt /><span
  7251. >已选择</span
  7252. >
  7253. </div>
  7254. </div>
  7255. </div>
  7256. <div class="tool">
  7257. <div class="whiteBIcon" @click="addTools2(1)">
  7258. <img
  7259. src="../../assets/icon/secondToolList/whiteBoard.png"
  7260. alt
  7261. />
  7262. <div style="margin: 5px 0">电子白板</div>
  7263. </div>
  7264. <div class="check" @click="addTools2(1)">
  7265. <img
  7266. src="../../assets/icon/checkNo.png"
  7267. alt
  7268. v-if="checktoolArray.indexOf(1) == -1"
  7269. />
  7270. <div class="checkDiv" v-else>
  7271. <img src="../../assets/icon/checkedIs.png" alt /><span
  7272. >已选择</span
  7273. >
  7274. </div>
  7275. </div>
  7276. </div>
  7277. <div class="tool">
  7278. <div class="whiteBIcon" @click="addTools2(52)">
  7279. <img
  7280. src="../../assets/icon/fourthToolList/text.png"
  7281. alt
  7282. />
  7283. <div style="margin: 5px 0">文档</div>
  7284. </div>
  7285. <div class="check" @click="addTools2(52)">
  7286. <img
  7287. src="../../assets/icon/checkNo.png"
  7288. alt
  7289. v-if="checktoolArray.indexOf(52) == -1"
  7290. />
  7291. <div class="checkDiv" v-else>
  7292. <img src="../../assets/icon/checkedIs.png" alt /><span
  7293. >已选择</span
  7294. >
  7295. </div>
  7296. </div>
  7297. </div>
  7298. <div class="tool">
  7299. <div class="whiteBIcon" @click="addTools2(3)">
  7300. <img
  7301. src="../../assets/icon/secondToolList/mindMapping.png"
  7302. alt
  7303. />
  7304. <div style="margin: 5px 0">思维导图</div>
  7305. </div>
  7306. <div class="check" @click="addTools2(3)">
  7307. <img
  7308. src="../../assets/icon/checkNo.png"
  7309. alt
  7310. v-if="checktoolArray.indexOf(3) == -1"
  7311. />
  7312. <div class="checkDiv" v-else>
  7313. <img src="../../assets/icon/checkedIs.png" alt /><span
  7314. >已选择</span
  7315. >
  7316. </div>
  7317. </div>
  7318. </div>
  7319. <div class="tool">
  7320. <div class="whiteBIcon" @click="addTools2(48)">
  7321. <img
  7322. src="../../assets/icon/fourthToolList/table.png"
  7323. alt
  7324. />
  7325. <div style="margin: 5px 0">表格</div>
  7326. </div>
  7327. <div class="check" @click="addTools2(48)">
  7328. <img
  7329. src="../../assets/icon/checkNo.png"
  7330. alt
  7331. v-if="checktoolArray.indexOf(48) == -1"
  7332. />
  7333. <div class="checkDiv" v-else>
  7334. <img src="../../assets/icon/checkedIs.png" alt /><span
  7335. >已选择</span
  7336. >
  7337. </div>
  7338. </div>
  7339. </div>
  7340. </div>
  7341. <div class="toolSort" v-if="toolType == 6">
  7342. <div v-show="tooC == 49">
  7343. <img
  7344. @click="addTools(tooC, toolIndex, taskCount)"
  7345. src="../../assets/icon/fourthToolList/group.png"
  7346. alt
  7347. />
  7348. <div style="margin: 5px 0">学生分组</div>
  7349. </div>
  7350. </div>
  7351. <div class="toolSort" v-if="toolType == 2">
  7352. <div class="tool">
  7353. <div class="whiteBIcon" @click="addTools2(16)">
  7354. <img
  7355. src="../../assets/icon/thirdToolList/work.png"
  7356. alt
  7357. />
  7358. <div style="margin: 5px 0">作业提交</div>
  7359. </div>
  7360. <div class="check" @click="addTools2(16)">
  7361. <img
  7362. src="../../assets/icon/checkNo.png"
  7363. alt
  7364. v-if="checktoolArray.indexOf(16) == -1"
  7365. />
  7366. <div class="checkDiv" v-else>
  7367. <img src="../../assets/icon/checkedIs.png" alt /><span
  7368. >已选择</span
  7369. >
  7370. </div>
  7371. </div>
  7372. </div>
  7373. <div class="tool">
  7374. <div class="whiteBIcon" @click="addTools2(50)">
  7375. <img
  7376. src="../../assets/icon/thirdToolList/plwork.png"
  7377. alt
  7378. />
  7379. <div style="margin: 5px 0">批量上传</div>
  7380. </div>
  7381. <div class="check" @click="addTools2(50)">
  7382. <img
  7383. src="../../assets/icon/checkNo.png"
  7384. alt
  7385. v-if="checktoolArray.indexOf(50) == -1"
  7386. />
  7387. <div class="checkDiv" v-else>
  7388. <img src="../../assets/icon/checkedIs.png" alt /><span
  7389. >已选择</span
  7390. >
  7391. </div>
  7392. </div>
  7393. </div>
  7394. </div>
  7395. <div class="toolSort" v-if="toolType == 3">
  7396. <div class="tool">
  7397. <div class="whiteBIcon" @click="addTools2(18)">
  7398. <img
  7399. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7400. alt
  7401. />
  7402. <div style="margin: 5px 0">训练平台</div>
  7403. </div>
  7404. <div class="check" @click="addTools2(18)">
  7405. <img
  7406. src="../../assets/icon/checkNo.png"
  7407. alt
  7408. v-if="checktoolArray.indexOf(18) == -1"
  7409. />
  7410. <div class="checkDiv" v-else>
  7411. <img src="../../assets/icon/checkedIs.png" alt /><span
  7412. >已选择</span
  7413. >
  7414. </div>
  7415. </div>
  7416. </div>
  7417. <div class="tool">
  7418. <div class="whiteBIcon" @click="addTools2(21)">
  7419. <img
  7420. src="../../assets/icon/fourthToolList/program.png"
  7421. alt
  7422. />
  7423. <div style="margin: 5px 0">AIoT Blockly</div>
  7424. </div>
  7425. <div class="check" @click="addTools2(21)">
  7426. <img
  7427. src="../../assets/icon/checkNo.png"
  7428. alt
  7429. v-if="checktoolArray.indexOf(21) == -1"
  7430. />
  7431. <div class="checkDiv" v-else>
  7432. <img src="../../assets/icon/checkedIs.png" alt /><span
  7433. >已选择</span
  7434. >
  7435. </div>
  7436. </div>
  7437. </div>
  7438. <div class="tool">
  7439. <div class="whiteBIcon" @click="addTools2(23)">
  7440. <img
  7441. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7442. alt
  7443. />
  7444. <div style="margin: 5px 0">AI Python</div>
  7445. </div>
  7446. <div class="check" @click="addTools2(23)">
  7447. <img
  7448. src="../../assets/icon/checkNo.png"
  7449. alt
  7450. v-if="checktoolArray.indexOf(23) == -1"
  7451. />
  7452. <div class="checkDiv" v-else>
  7453. <img src="../../assets/icon/checkedIs.png" alt /><span
  7454. >已选择</span
  7455. >
  7456. </div>
  7457. </div>
  7458. </div>
  7459. <div class="tool">
  7460. <div class="whiteBIcon" @click="addTools2(24)">
  7461. <img
  7462. src="../../assets/icon/fourthToolList/AIprogram.png"
  7463. alt
  7464. />
  7465. <div style="margin: 5px 0">AI Blockly</div>
  7466. </div>
  7467. <div class="check" @click="addTools2(24)">
  7468. <img
  7469. src="../../assets/icon/checkNo.png"
  7470. alt
  7471. v-if="checktoolArray.indexOf(24) == -1"
  7472. />
  7473. <div class="checkDiv" v-else>
  7474. <img src="../../assets/icon/checkedIs.png" alt /><span
  7475. >已选择</span
  7476. >
  7477. </div>
  7478. </div>
  7479. </div>
  7480. <div class="tool">
  7481. <div class="whiteBIcon" @click="addTools2(32)">
  7482. <img
  7483. src="../../assets/icon/thirdToolList/code.png"
  7484. alt
  7485. />
  7486. <div style="margin: 5px 0">源码编辑</div>
  7487. </div>
  7488. <div class="check" @click="addTools2(32)">
  7489. <img
  7490. src="../../assets/icon/checkNo.png"
  7491. alt
  7492. v-if="checktoolArray.indexOf(32) == -1"
  7493. />
  7494. <div class="checkDiv" v-else>
  7495. <img src="../../assets/icon/checkedIs.png" alt /><span
  7496. >已选择</span
  7497. >
  7498. </div>
  7499. </div>
  7500. </div>
  7501. <div class="tool">
  7502. <div class="whiteBIcon" @click="addTools2(57)">
  7503. <img
  7504. src="../../assets/icon/fourthToolList/cocopi.png"
  7505. alt
  7506. />
  7507. <div style="margin: 5px 0">CocoPi</div>
  7508. </div>
  7509. <div class="check" @click="addTools2(57)">
  7510. <img
  7511. src="../../assets/icon/checkNo.png"
  7512. alt
  7513. v-if="checktoolArray.indexOf(57) == -1"
  7514. />
  7515. <div class="checkDiv" v-else>
  7516. <img src="../../assets/icon/checkedIs.png" alt /><span
  7517. >已选择</span
  7518. >
  7519. </div>
  7520. </div>
  7521. </div>
  7522. <div class="tool">
  7523. <div class="whiteBIcon" @click="addTools2(63)">
  7524. <img
  7525. src="../../assets/icon/fourthToolList/Wood.png"
  7526. alt
  7527. />
  7528. <div style="margin: 5px 0">海龟编程</div>
  7529. </div>
  7530. <div class="check" @click="addTools2(63)">
  7531. <img
  7532. src="../../assets/icon/checkNo.png"
  7533. alt
  7534. v-if="checktoolArray.indexOf(63) == -1"
  7535. />
  7536. <div class="checkDiv" v-else>
  7537. <img src="../../assets/icon/checkedIs.png" alt /><span
  7538. >已选择</span
  7539. >
  7540. </div>
  7541. </div>
  7542. </div>
  7543. </div>
  7544. <div class="toolSort" v-if="toolType == 5">
  7545. <div class="tool">
  7546. <div class="whiteBIcon" @click="addTools2(28)">
  7547. <img
  7548. src="../../assets/icon/secondToolList/translation.png"
  7549. alt
  7550. />
  7551. <div style="margin: 5px 0">翻译</div>
  7552. </div>
  7553. <div class="check" @click="addTools2(28)">
  7554. <img
  7555. src="../../assets/icon/checkNo.png"
  7556. alt
  7557. v-if="checktoolArray.indexOf(28) == -1"
  7558. />
  7559. <div class="checkDiv" v-else>
  7560. <img src="../../assets/icon/checkedIs.png" alt /><span
  7561. >已选择</span
  7562. >
  7563. </div>
  7564. </div>
  7565. </div>
  7566. <div class="tool">
  7567. <div class="whiteBIcon" @click="addTools2(31)">
  7568. <img
  7569. src="../../assets/icon/secondToolList/networkPanel.png"
  7570. alt
  7571. />
  7572. <div style="margin: 5px 0">数字画板</div>
  7573. </div>
  7574. <div class="check" @click="addTools2(31)">
  7575. <img
  7576. src="../../assets/icon/checkNo.png"
  7577. alt
  7578. v-if="checktoolArray.indexOf(31) == -1"
  7579. />
  7580. <div class="checkDiv" v-else>
  7581. <img src="../../assets/icon/checkedIs.png" alt /><span
  7582. >已选择</span
  7583. >
  7584. </div>
  7585. </div>
  7586. </div>
  7587. <div class="tool">
  7588. <div class="whiteBIcon" @click="addTools2(39)">
  7589. <img
  7590. src="../../assets/icon/secondToolList/GeoGebra.png"
  7591. alt
  7592. />
  7593. <div style="margin: 5px 0">GeoGebra</div>
  7594. </div>
  7595. <div class="check" @click="addTools2(39)">
  7596. <img
  7597. src="../../assets/icon/checkNo.png"
  7598. alt
  7599. v-if="checktoolArray.indexOf(39) == -1"
  7600. />
  7601. <div class="checkDiv" v-else>
  7602. <img src="../../assets/icon/checkedIs.png" alt /><span
  7603. >已选择</span
  7604. >
  7605. </div>
  7606. </div>
  7607. </div>
  7608. <div class="tool">
  7609. <div class="whiteBIcon" @click="addTools2(66)">
  7610. <img
  7611. src="../../assets/icon/secondToolList/formulaEdi.png"
  7612. alt
  7613. />
  7614. <div style="margin: 5px 0">公式编辑</div>
  7615. </div>
  7616. <div class="check" @click="addTools2(66)">
  7617. <img
  7618. src="../../assets/icon/checkNo.png"
  7619. alt
  7620. v-if="checktoolArray.indexOf(66) == -1"
  7621. />
  7622. <div class="checkDiv" v-else>
  7623. <img src="../../assets/icon/checkedIs.png" alt /><span
  7624. >已选择</span
  7625. >
  7626. </div>
  7627. </div>
  7628. </div>
  7629. <div class="tool">
  7630. <div class="whiteBIcon" @click="addTools2(67)">
  7631. <img
  7632. src="../../assets/icon/secondToolList/molStr.png"
  7633. alt
  7634. />
  7635. <div style="margin: 5px 0">分子结构</div>
  7636. </div>
  7637. <div class="check" @click="addTools2(67)">
  7638. <img
  7639. src="../../assets/icon/checkNo.png"
  7640. alt
  7641. v-if="checktoolArray.indexOf(67) == -1"
  7642. />
  7643. <div class="checkDiv" v-else>
  7644. <img src="../../assets/icon/checkedIs.png" alt /><span
  7645. >已选择</span
  7646. >
  7647. </div>
  7648. </div>
  7649. </div>
  7650. <div class="tool">
  7651. <div class="whiteBIcon" @click="addTools2(68)">
  7652. <img
  7653. src="../../assets/icon/secondToolList/timeAxis.png"
  7654. alt
  7655. />
  7656. <div style="margin: 5px 0">时间轴</div>
  7657. </div>
  7658. <div class="check" @click="addTools2(68)">
  7659. <img
  7660. src="../../assets/icon/checkNo.png"
  7661. alt
  7662. v-if="checktoolArray.indexOf(68) == -1"
  7663. />
  7664. <div class="checkDiv" v-else>
  7665. <img src="../../assets/icon/checkedIs.png" alt /><span
  7666. >已选择</span
  7667. >
  7668. </div>
  7669. </div>
  7670. </div>
  7671. </div>
  7672. <div class="toolSort" v-if="toolType == 7">
  7673. <div class="tool">
  7674. <div class="whiteBIcon" @click="addTools2(40)">
  7675. <img
  7676. src="../../assets/icon/secondToolList/eval.png"
  7677. alt
  7678. />
  7679. <div style="margin: 5px 0">个人评价</div>
  7680. </div>
  7681. <div class="check" @click="addTools2(40)">
  7682. <img
  7683. src="../../assets/icon/checkNo.png"
  7684. alt
  7685. v-if="checktoolArray.indexOf(40) == -1"
  7686. />
  7687. <div class="checkDiv" v-else>
  7688. <img src="../../assets/icon/checkedIs.png" alt /><span
  7689. >已选择</span
  7690. >
  7691. </div>
  7692. </div>
  7693. </div>
  7694. </div>
  7695. <div class="toolSort" v-if="toolType == 4">
  7696. <div class="tool">
  7697. <div class="whiteBIcon" @click="addTools2(26)">
  7698. <img
  7699. src="../../assets/icon/thirdToolList/courseDesign.png"
  7700. alt
  7701. />
  7702. <div style="margin: 5px 0">课程设计</div>
  7703. </div>
  7704. <div class="check" @click="addTools2(26)">
  7705. <img
  7706. src="../../assets/icon/checkNo.png"
  7707. alt
  7708. v-if="checktoolArray.indexOf(26) == -1"
  7709. />
  7710. <div class="checkDiv" v-else>
  7711. <img src="../../assets/icon/checkedIs.png" alt /><span
  7712. >已选择</span
  7713. >
  7714. </div>
  7715. </div>
  7716. </div>
  7717. <div class="tool">
  7718. <div class="whiteBIcon" @click="addTools2(25)">
  7719. <img
  7720. src="../../assets/icon/thirdToolList/evalua.png"
  7721. alt
  7722. />
  7723. <div style="margin: 5px 0">目标管理</div>
  7724. </div>
  7725. <div class="check" @click="addTools2(25)">
  7726. <img
  7727. src="../../assets/icon/checkNo.png"
  7728. alt
  7729. v-if="checktoolArray.indexOf(25) == -1"
  7730. />
  7731. <div class="checkDiv" v-else>
  7732. <img src="../../assets/icon/checkedIs.png" alt /><span
  7733. >已选择</span
  7734. >
  7735. </div>
  7736. </div>
  7737. </div>
  7738. </div>
  7739. </div>
  7740. </div>
  7741. </div>
  7742. </div> -->
  7743. <div
  7744. class="vedioBox"
  7745. style="margin-top: 10px; border-radius: 20px"
  7746. v-if="
  7747. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7748. .eList &&
  7749. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7750. .eList.length &&
  7751. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7752. .eList.length > 0 &&
  7753. tType != 2
  7754. "
  7755. >
  7756. <div
  7757. class="queTop"
  7758. style="
  7759. font-size: 20px;
  7760. padding: 15px 0 15px 37px;
  7761. font-weight: bold;
  7762. "
  7763. >
  7764. <!-- <div class="question" style="width: 30px">
  7765. <img src="../assets/icon/toolIcon.png" alt />
  7766. </div>
  7767. <div class="queTitle">
  7768. <div>工具</div>
  7769. </div>-->
  7770. 评一评
  7771. </div>
  7772. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7773. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7774. <el-table
  7775. :data="
  7776. chapInfoList[courseType].chapterInfo[0].taskJson[
  7777. taskCount
  7778. ].eList
  7779. "
  7780. :header-cell-style="{ background: '#F0F4FA' }"
  7781. :row-class-name="tableRowClassName"
  7782. border
  7783. stripe
  7784. style="width: 100%"
  7785. >
  7786. <el-table-column
  7787. label="评价名称"
  7788. align="center"
  7789. >
  7790. <template slot-scope="scope"
  7791. ><div>{{ scope.row.value }}</div></template
  7792. >
  7793. </el-table-column>
  7794. <el-table-column
  7795. label="评价描述"
  7796. align="center"
  7797. >
  7798. <template slot-scope="scope"
  7799. ><div>
  7800. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7801. </div></template
  7802. >
  7803. </el-table-column>
  7804. <el-table-column label="目标" align="center">
  7805. <template slot-scope="scope"
  7806. ><div>
  7807. {{
  7808. scope.row.target
  7809. ? scope.row.target[scope.row.target.length - 1]
  7810. : "-"
  7811. }}
  7812. </div></template
  7813. ></el-table-column
  7814. >
  7815. </el-table>
  7816. <!-- <div
  7817. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7818. .chapterInfo[0].taskJson[taskCount].eList"
  7819. :key="eIndex"
  7820. class="elist_input_box"
  7821. >
  7822. <div style="width: 95%">
  7823. <div
  7824. style="
  7825. display: flex;
  7826. flex-direction: row;
  7827. flex-wrap: nowrap;
  7828. align-items: center;
  7829. "
  7830. >
  7831. <div style="max-width: calc(100% - 285px)">
  7832. <span>{{ eItem.value }}</span>
  7833. </div>
  7834. <div
  7835. style="
  7836. padding-left: 25px;
  7837. display: flex;
  7838. flex-direction: row;
  7839. align-items: center;
  7840. "
  7841. >
  7842. <el-rate
  7843. v-model="eItem.score"
  7844. :colors="colors"
  7845. disabled
  7846. ></el-rate>
  7847. </div>
  7848. </div>
  7849. <div class="elist_inptu_text" style="padding-left: 10px">
  7850. <span v-if="eItem.detail != ''">{{
  7851. eItem.detail
  7852. }}</span>
  7853. <span v-else style="color: #b2b1b3; font-size: 14px"
  7854. >暂无描述...</span
  7855. >
  7856. </div>
  7857. </div>
  7858. </div> -->
  7859. </div>
  7860. <div
  7861. v-if="evalua"
  7862. style="
  7863. border: 1px solid #e5e5e5;
  7864. max-width: 650px;
  7865. width: 100%;
  7866. margin-top: 20px;
  7867. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7868. "
  7869. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7870. >
  7871. <div class="e_add_top">
  7872. <div class="e_add_title" style="width: 100%">
  7873. <!-- <span>目标管理名称</span> -->
  7874. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7875. <img
  7876. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7877. src="../../assets/line.png"
  7878. class="cru_line"
  7879. style="
  7880. width: 125px;
  7881. height: 20px;
  7882. bottom: -10px;
  7883. left: 5px;
  7884. "
  7885. />
  7886. <!-- <el-input
  7887. v-model="eTitle"
  7888. placeholder="请输入名称"
  7889. @change="setMindData"
  7890. ></el-input>-->
  7891. <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>
  7892. <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>
  7893. </div>
  7894. </div>
  7895. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7896. <div class="e_add_list_pbox">
  7897. <div class="e_add_list_pbox_title">
  7898. <!-- <span class="type_title">切换模式</span> -->
  7899. <div class="type_content">
  7900. <span
  7901. :class="{ active: typeMode == 1 }"
  7902. @click="typeMode = 1"
  7903. >目标树</span
  7904. >
  7905. <span
  7906. :class="{ active: typeMode == 2 }"
  7907. @click="typeMode = 2"
  7908. >目标罗盘</span
  7909. >
  7910. <!-- <span
  7911. :class="{ active: typeMode == 3 }"
  7912. @click="typeMode = 3"
  7913. >目标看板</span
  7914. > -->
  7915. </div>
  7916. </div>
  7917. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7918. <Mind
  7919. :showBar="false"
  7920. :mindData="data"
  7921. style="width: 100%"
  7922. v-show="typeMode == 1"
  7923. ></Mind>
  7924. <Sunburst
  7925. :Josn="eJson"
  7926. :num="eJSONNum"
  7927. style="width: 100%"
  7928. v-if="typeMode == 2"
  7929. ></Sunburst>
  7930. <SeeBoard
  7931. :Josn="eJson"
  7932. :num="eJSONNum"
  7933. :ename="eTitle"
  7934. style="width: 100%"
  7935. v-if="typeMode == 3"
  7936. >
  7937. </SeeBoard>
  7938. </div>
  7939. </div>
  7940. </div>
  7941. </div>
  7942. </div>
  7943. </div>
  7944. <!-- <div
  7945. class="project_box"
  7946. style="margin-top: 15px; padding-bottom: 30px"
  7947. >
  7948. <div
  7949. style="
  7950. display: flex;
  7951. flex-wrap: nowrap;
  7952. flex-direction: column;
  7953. position: relative;
  7954. "
  7955. >
  7956. <div class="queTop">
  7957. <div class="question">
  7958. <img src="../../assets/icon/homeWork.png" alt="" />
  7959. </div>
  7960. <div class="queTitle">
  7961. <div>作业提交<span>(提交图文视频等)</span></div>
  7962. <div>:任务:{{ task.task }}</div>
  7963. </div>
  7964. </div>
  7965. <div class="ediBottom">
  7966. <div
  7967. class="addEditor"
  7968. style="margin-top: 23px"
  7969. @click="openAddWork"
  7970. v-if="!isNoHomeWork"
  7971. >
  7972. 选择文件
  7973. </div>
  7974. <div
  7975. class="addEditor"
  7976. style="margin-top: 23px"
  7977. @click="openAddWork"
  7978. v-else
  7979. >
  7980. 已提交
  7981. </div>
  7982. </div>
  7983. </div>
  7984. </div>-->
  7985. </div>
  7986. </div>
  7987. <el-dialog
  7988. title="作业提交"
  7989. :visible.sync="dialogVisible"
  7990. :append-to-body="true"
  7991. width="500px"
  7992. :before-close="handleClose"
  7993. class="dialog_change"
  7994. >
  7995. <div class="marginT">
  7996. <div>上传文件</div>
  7997. <div
  7998. class="chapter_add"
  7999. @click="addImg($event)"
  8000. v-if="studyJuri[0].cover.length == 0"
  8001. >
  8002. <div class="up_photo">
  8003. <img src="../../assets/icon/uploadImg.png" alt />
  8004. </div>
  8005. <!-- <input
  8006. type="file"
  8007. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8008. style="display: none"
  8009. @change="beforeUpload1($event, 1)"
  8010. /> -->
  8011. <input
  8012. type="file"
  8013. accept="*"
  8014. style="display: none"
  8015. @change="beforeUpload1($event, 1)"
  8016. />
  8017. <!-- <input
  8018. type="file"
  8019. accept="image/*"
  8020. capture="camera"
  8021. style="display: none"
  8022. @change="beforeUpload1($event, 1)"
  8023. /> -->
  8024. </div>
  8025. <div
  8026. class="chapter_add"
  8027. style="
  8028. display: flex;
  8029. width: 100%;
  8030. flex-direction: row;
  8031. flex-wrap: wrap;
  8032. justify-content: flex-start;
  8033. padding: 15px 0;
  8034. "
  8035. v-if="studyJuri[0].cover.length > 0"
  8036. >
  8037. <div class="upCover">
  8038. <img
  8039. :src="studyJuri[0].cover[0].url"
  8040. alt
  8041. v-if="fileType == 0"
  8042. />
  8043. <img :src="word" alt v-else-if="fileType == 1" />
  8044. <img :src="video" alt v-else-if="fileType == 2" />
  8045. <img :src="word2" alt v-else-if="fileType == 3" />
  8046. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8047. <div class="deleteWord" @click="clean(1)">
  8048. <img src="../../assets/icon/deleteWorks.png" alt />
  8049. </div>
  8050. </div>
  8051. </div>
  8052. </div>
  8053. <div
  8054. class="upload_send"
  8055. @click="addCourseWorks(taskCount)"
  8056. v-if="!proVisible"
  8057. >
  8058. 提交
  8059. </div>
  8060. </el-dialog>
  8061. </div>
  8062. </div>
  8063. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8064. <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(
  8065. '/courseDetail?userid=' +
  8066. userid +
  8067. '&oid=' +
  8068. oid +
  8069. '&org=' +
  8070. org +
  8071. '&cid=' +
  8072. classId +
  8073. '&courseId=' +
  8074. id +
  8075. '&tType=' +
  8076. tType +
  8077. '&screenType=' +
  8078. screenType
  8079. )"></classRoomHelper>
  8080. <div
  8081. class="pButton"
  8082. @click="(pzDialog = true), selectPz()"
  8083. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8084. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8085. >
  8086. <!-- 批 -->
  8087. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8088. </div>
  8089. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8090. <div class="pzTop2">
  8091. <!-- <div>评论</div>
  8092. <div @click="pzDialog = false">
  8093. <img src="../../assets/close1.png" alt="" />
  8094. </div> -->
  8095. <div class="checkbox">
  8096. <!-- <div class="check" style="font-size: 25px; position: unset">
  8097. 评论
  8098. </div> -->
  8099. <div class="cb-tabList">
  8100. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8101. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8102. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8103. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8104. </div>
  8105. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8106. <el-option label="时间降序" :value="1"></el-option>
  8107. <el-option label="时间升序" :value="2"></el-option>
  8108. <el-option label="我的评课" :value="3"></el-option>
  8109. </el-select>
  8110. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8111. </div>
  8112. </div>
  8113. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8114. <div class="pzListBox" v-if="pzList && pzList.length">
  8115. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8116. <div class="pzNavTop">
  8117. <div>评</div>
  8118. <div>
  8119. {{
  8120. pz.username && pz.username.length > 5
  8121. ? pz.username.substring(0, 5) + "..."
  8122. : pz.username
  8123. }}的评论
  8124. </div>
  8125. <div
  8126. class="pzDelete"
  8127. v-if="pz.userid == userid"
  8128. @click="deletePz(pz.id)"
  8129. >
  8130. 删除
  8131. </div>
  8132. </div>
  8133. <div
  8134. @click="checkImg(getImgList(pz.content))"
  8135. class="pzContent cont"
  8136. v-html="pz.content"
  8137. v-if="pz.type == '1'"
  8138. ></div>
  8139. <div class="pzContent" v-if="pz.type == '2'">
  8140. <audio :src="pz.content" controls="controls" ref="audio">
  8141. Your browser does not support the audio element.
  8142. </audio>
  8143. </div>
  8144. <div class="pzContent" v-if="pz.type == '3'">
  8145. <img
  8146. :src="pz.content"
  8147. style="width: 90%; margin: 0 auto; display: block"
  8148. @click="previewImg(pz.content)"
  8149. />
  8150. </div>
  8151. <div class="timeAndReply">
  8152. <div class="time">
  8153. {{ pz.time }}
  8154. </div>
  8155. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8156. </div>
  8157. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8158. <div
  8159. v-for="(h, hIndex) in pz.hfList"
  8160. :key="hIndex"
  8161. class="hfItem"
  8162. >
  8163. <div class="whoReplyWho">
  8164. <div class="hfName">{{ h.username }}</div>
  8165. <div class="hfImg">
  8166. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8167. </div>
  8168. <div class="hfName">{{ pz.username }}</div>
  8169. </div>
  8170. <div class="hfContent" v-html="h.content"></div>
  8171. <div class="hfBottom">
  8172. <div class="hfTime">{{ h.time }}</div>
  8173. <div
  8174. class="deleteHfItem"
  8175. @click="deleteReply(h.id)"
  8176. v-if="userid == h.userid"
  8177. >
  8178. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8179. </div>
  8180. </div>
  8181. </div>
  8182. </div>
  8183. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8184. <div class="replyInput">
  8185. <el-input v-model="reply[pzIndex]"></el-input>
  8186. </div>
  8187. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8188. </div> -->
  8189. </div>
  8190. </div>
  8191. <div class="noPz" v-else>
  8192. <img src="../../assets/icon/noPz.png" alt="" />
  8193. </div>
  8194. <div class="addPzButton">
  8195. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8196. 添加评论
  8197. </div>
  8198. <!-- <div class="img1">
  8199. <div @click="(addPzDialog = true), (pzType = 2)">
  8200. <img src="../../assets/audio.png" /><span>音频</span>
  8201. </div>
  8202. </div> -->
  8203. </div>
  8204. </div>
  8205. <div class="scoreList" v-if="commentTagShow==1">
  8206. <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"/>
  8207. </div>
  8208. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8209. <scoreZong :courseid="id" :userid="userid"></scoreZong>
  8210. </div>
  8211. </div>
  8212. <div
  8213. v-if="toolDialogVisible == true"
  8214. class="toolMask"
  8215. @click="toolDialogVisible = false"
  8216. ></div>
  8217. <div v-if="toolDialogVisible == true" class="addToolCss">
  8218. <div class="toolTop">
  8219. <div style="font-weight: bold">新增工具</div>
  8220. <div @click="toolDialogVisible = false">
  8221. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8222. </div>
  8223. </div>
  8224. <div class="tool_box">
  8225. <div class="tool_type_box">
  8226. <div class="chooseWho">
  8227. <div
  8228. :class="toolType == 0 ? 'isChooseActive' : ''"
  8229. @click="(toolType = 0), $forceUpdate()"
  8230. >
  8231. 互动类
  8232. </div>
  8233. <div
  8234. :class="toolType == 1 ? 'isChooseActive' : ''"
  8235. @click="(toolType = 1), $forceUpdate()"
  8236. >
  8237. 思维类
  8238. </div>
  8239. <div
  8240. :class="toolType == 2 ? 'isChooseActive' : ''"
  8241. @click="(toolType = 2), $forceUpdate()"
  8242. >
  8243. 测评类
  8244. </div>
  8245. <div
  8246. :class="toolType == 3 ? 'isChooseActive' : ''"
  8247. @click="(toolType = 3), $forceUpdate()"
  8248. >
  8249. 编程类
  8250. </div>
  8251. <div
  8252. :class="toolType == 5 ? 'isChooseActive' : ''"
  8253. @click="(toolType = 5), $forceUpdate()"
  8254. >
  8255. 学科类
  8256. </div>
  8257. </div>
  8258. </div>
  8259. <div>
  8260. <div class="toolSort" v-if="toolType == 0">
  8261. <div
  8262. class="tool"
  8263. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8264. @click="addTools2(10)"
  8265. >
  8266. <div class="whiteBIcon">
  8267. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8268. <div style="margin: 5px 0">倒计时</div>
  8269. </div>
  8270. <div class="check">
  8271. <div
  8272. v-if="checktoolArray.indexOf(10) == -1"
  8273. class="noChoose"
  8274. ></div>
  8275. <div v-else class="isChoose"></div>
  8276. </div>
  8277. </div>
  8278. <div
  8279. class="tool"
  8280. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8281. @click="addTools2(65)"
  8282. >
  8283. <div class="whiteBIcon">
  8284. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8285. <div style="margin: 5px 0">挑人</div>
  8286. </div>
  8287. <div class="check">
  8288. <div
  8289. v-if="checktoolArray.indexOf(65) == -1"
  8290. class="noChoose"
  8291. ></div>
  8292. <div v-else class="isChoose"></div>
  8293. </div>
  8294. </div>
  8295. </div>
  8296. <div class="toolSort" v-if="toolType == 1">
  8297. <div
  8298. class="tool"
  8299. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8300. @click="addTools2(7)"
  8301. >
  8302. <div class="whiteBIcon">
  8303. <img
  8304. src="../../assets/icon/secondToolList/mindNetwork.png"
  8305. alt
  8306. />
  8307. <div style="margin: 5px 0">思维网格</div>
  8308. </div>
  8309. <div class="check">
  8310. <div
  8311. v-if="checktoolArray.indexOf(7) == -1"
  8312. class="noChoose"
  8313. ></div>
  8314. <div v-else class="isChoose"></div>
  8315. </div>
  8316. </div>
  8317. <div
  8318. class="tool"
  8319. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8320. @click="addTools2(1)"
  8321. >
  8322. <div class="whiteBIcon">
  8323. <img
  8324. src="../../assets/icon/secondToolList/whiteBoard.png"
  8325. alt
  8326. />
  8327. <div style="margin: 5px 0">电子白板</div>
  8328. </div>
  8329. <div class="check">
  8330. <div
  8331. v-if="checktoolArray.indexOf(1) == -1"
  8332. class="noChoose"
  8333. ></div>
  8334. <div v-else class="isChoose"></div>
  8335. </div>
  8336. </div>
  8337. <div
  8338. class="tool"
  8339. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8340. @click="addTools2(52)"
  8341. >
  8342. <div class="whiteBIcon">
  8343. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8344. <div style="margin: 5px 0">文档</div>
  8345. </div>
  8346. <div class="check">
  8347. <div
  8348. v-if="checktoolArray.indexOf(52) == -1"
  8349. class="noChoose"
  8350. ></div>
  8351. <div v-else class="isChoose"></div>
  8352. </div>
  8353. </div>
  8354. <div
  8355. class="tool"
  8356. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8357. @click="addTools2(3)"
  8358. >
  8359. <div class="whiteBIcon">
  8360. <img
  8361. src="../../assets/icon/secondToolList/mindMapping.png"
  8362. alt
  8363. />
  8364. <div style="margin: 5px 0">思维导图</div>
  8365. </div>
  8366. <div class="check">
  8367. <div
  8368. v-if="checktoolArray.indexOf(3) == -1"
  8369. class="noChoose"
  8370. ></div>
  8371. <div v-else class="isChoose"></div>
  8372. </div>
  8373. </div>
  8374. <div
  8375. class="tool"
  8376. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8377. @click="addTools2(48)"
  8378. >
  8379. <div class="whiteBIcon">
  8380. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8381. <div style="margin: 5px 0">表格</div>
  8382. </div>
  8383. <div class="check">
  8384. <div
  8385. v-if="checktoolArray.indexOf(48) == -1"
  8386. class="noChoose"
  8387. ></div>
  8388. <div v-else class="isChoose"></div>
  8389. </div>
  8390. </div>
  8391. </div>
  8392. <div class="toolSort" v-if="toolType == 6">
  8393. <div v-show="tooC == 49">
  8394. <img
  8395. @click="addTools(tooC, toolIndex, taskCount)"
  8396. src="../../assets/icon/fourthToolList/group.png"
  8397. alt
  8398. />
  8399. <div style="margin: 5px 0">学生分组</div>
  8400. </div>
  8401. </div>
  8402. <div class="toolSort" v-if="toolType == 2">
  8403. <div
  8404. class="tool"
  8405. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8406. @click="addTools2(16)"
  8407. >
  8408. <div class="whiteBIcon">
  8409. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8410. <div style="margin: 5px 0">作业提交</div>
  8411. </div>
  8412. <div class="check">
  8413. <div
  8414. v-if="checktoolArray.indexOf(16) == -1"
  8415. class="noChoose"
  8416. ></div>
  8417. <div v-else class="isChoose"></div>
  8418. </div>
  8419. </div>
  8420. <div
  8421. class="tool"
  8422. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8423. @click="addTools2(50)"
  8424. >
  8425. <div class="whiteBIcon">
  8426. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8427. <div style="margin: 5px 0">批量上传</div>
  8428. </div>
  8429. <div class="check">
  8430. <div
  8431. v-if="checktoolArray.indexOf(50) == -1"
  8432. class="noChoose"
  8433. ></div>
  8434. <div v-else class="isChoose"></div>
  8435. </div>
  8436. </div>
  8437. </div>
  8438. <div class="toolSort" v-if="toolType == 3">
  8439. <div
  8440. class="tool"
  8441. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8442. @click="addTools2(18)"
  8443. >
  8444. <div class="whiteBIcon">
  8445. <img
  8446. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8447. alt
  8448. />
  8449. <div style="margin: 5px 0">训练平台</div>
  8450. </div>
  8451. <div class="check">
  8452. <div
  8453. v-if="checktoolArray.indexOf(18) == -1"
  8454. class="noChoose"
  8455. ></div>
  8456. <div v-else class="isChoose"></div>
  8457. </div>
  8458. </div>
  8459. <div
  8460. class="tool"
  8461. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8462. @click="addTools2(21)"
  8463. >
  8464. <div class="whiteBIcon">
  8465. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8466. <div style="margin: 5px 0">AIoT Blockly</div>
  8467. </div>
  8468. <div class="check">
  8469. <div
  8470. v-if="checktoolArray.indexOf(21) == -1"
  8471. class="noChoose"
  8472. ></div>
  8473. <div v-else class="isChoose"></div>
  8474. </div>
  8475. </div>
  8476. <div
  8477. class="tool"
  8478. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8479. @click="addTools2(23)"
  8480. >
  8481. <div class="whiteBIcon">
  8482. <img
  8483. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8484. alt
  8485. />
  8486. <div style="margin: 5px 0">AI Python</div>
  8487. </div>
  8488. <div class="check">
  8489. <div
  8490. v-if="checktoolArray.indexOf(23) == -1"
  8491. class="noChoose"
  8492. ></div>
  8493. <div v-else class="isChoose"></div>
  8494. </div>
  8495. </div>
  8496. <div
  8497. class="tool"
  8498. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8499. @click="addTools2(24)"
  8500. >
  8501. <div class="whiteBIcon">
  8502. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8503. <div style="margin: 5px 0">AI Blockly</div>
  8504. </div>
  8505. <div class="check">
  8506. <div
  8507. v-if="checktoolArray.indexOf(24) == -1"
  8508. class="noChoose"
  8509. ></div>
  8510. <div v-else class="isChoose"></div>
  8511. </div>
  8512. </div>
  8513. <div
  8514. class="tool"
  8515. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8516. @click="addTools2(32)"
  8517. >
  8518. <div class="whiteBIcon">
  8519. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8520. <div style="margin: 5px 0">源码编辑</div>
  8521. </div>
  8522. <div class="check">
  8523. <div
  8524. v-if="checktoolArray.indexOf(32) == -1"
  8525. class="noChoose"
  8526. ></div>
  8527. <div v-else class="isChoose"></div>
  8528. </div>
  8529. </div>
  8530. <div
  8531. class="tool"
  8532. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8533. @click="addTools2(57)"
  8534. >
  8535. <div class="whiteBIcon">
  8536. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8537. <div style="margin: 5px 0">CocoPi</div>
  8538. </div>
  8539. <div class="check">
  8540. <div
  8541. v-if="checktoolArray.indexOf(57) == -1"
  8542. class="noChoose"
  8543. ></div>
  8544. <div v-else class="isChoose"></div>
  8545. </div>
  8546. </div>
  8547. <div
  8548. class="tool"
  8549. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8550. @click="addTools2(63)"
  8551. >
  8552. <div class="whiteBIcon">
  8553. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8554. <div style="margin: 5px 0">海龟编程</div>
  8555. </div>
  8556. <div class="check">
  8557. <div
  8558. v-if="checktoolArray.indexOf(63) == -1"
  8559. class="noChoose"
  8560. ></div>
  8561. <div v-else class="isChoose"></div>
  8562. </div>
  8563. </div>
  8564. <div
  8565. class="tool"
  8566. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8567. @click="addTools2(71)"
  8568. >
  8569. <div class="whiteBIcon">
  8570. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  8571. <div style="margin: 5px 0">AI智能体</div>
  8572. </div>
  8573. <div class="check">
  8574. <div
  8575. v-if="checktoolArray.indexOf(71) == -1"
  8576. class="noChoose"
  8577. ></div>
  8578. <div v-else class="isChoose"></div>
  8579. </div>
  8580. </div>
  8581. </div>
  8582. <div class="toolSort" v-if="toolType == 7">
  8583. <div
  8584. class="tool"
  8585. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8586. @click="addTools2(40)"
  8587. >
  8588. <div class="whiteBIcon">
  8589. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8590. <div style="margin: 5px 0">个人评价</div>
  8591. </div>
  8592. <div class="check">
  8593. <div
  8594. v-if="checktoolArray.indexOf(40) == -1"
  8595. class="noChoose"
  8596. ></div>
  8597. <div v-else class="isChoose"></div>
  8598. </div>
  8599. </div>
  8600. </div>
  8601. <div class="toolSort" v-if="toolType == 5">
  8602. <div
  8603. class="tool"
  8604. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8605. @click="addTools2(28)"
  8606. >
  8607. <div class="whiteBIcon">
  8608. <img
  8609. src="../../assets/icon/secondToolList/translation.png"
  8610. alt
  8611. />
  8612. <div style="margin: 5px 0">翻译</div>
  8613. </div>
  8614. <div class="check">
  8615. <div
  8616. v-if="checktoolArray.indexOf(28) == -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(31) != -1 }"
  8625. @click="addTools2(31)"
  8626. >
  8627. <div class="whiteBIcon">
  8628. <img
  8629. src="../../assets/icon/secondToolList/networkPanel.png"
  8630. alt
  8631. />
  8632. <div style="margin: 5px 0">数字画板</div>
  8633. </div>
  8634. <div class="check">
  8635. <div
  8636. v-if="checktoolArray.indexOf(31) == -1"
  8637. class="noChoose"
  8638. ></div>
  8639. <div v-else class="isChoose"></div>
  8640. </div>
  8641. </div>
  8642. <div
  8643. class="tool"
  8644. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8645. @click="addTools2(39)"
  8646. >
  8647. <div class="whiteBIcon">
  8648. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8649. <div style="margin: 5px 0">GeoGebra</div>
  8650. </div>
  8651. <div class="check">
  8652. <div
  8653. v-if="checktoolArray.indexOf(39) == -1"
  8654. class="noChoose"
  8655. ></div>
  8656. <div v-else class="isChoose"></div>
  8657. </div>
  8658. </div>
  8659. <div
  8660. class="tool"
  8661. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8662. @click="addTools2(66)"
  8663. >
  8664. <div class="whiteBIcon">
  8665. <img
  8666. src="../../assets/icon/secondToolList/formulaEdi.png"
  8667. alt
  8668. />
  8669. <div style="margin: 5px 0">公式编辑</div>
  8670. </div>
  8671. <div class="check">
  8672. <div
  8673. v-if="checktoolArray.indexOf(66) == -1"
  8674. class="noChoose"
  8675. ></div>
  8676. <div v-else class="isChoose"></div>
  8677. </div>
  8678. </div>
  8679. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8680. <div class="whiteBIcon" @click="addTools2(67)">
  8681. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8682. <div style="margin: 5px 0">分子结构</div>
  8683. </div>
  8684. <div class="check" @click="addTools2(67)">
  8685. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8686. <div v-else class="isChoose"></div>
  8687. </div>
  8688. </div> -->
  8689. <div
  8690. class="tool"
  8691. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8692. @click="addTools2(68)"
  8693. >
  8694. <div class="whiteBIcon">
  8695. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8696. <div style="margin: 5px 0">时间轴</div>
  8697. </div>
  8698. <div class="check">
  8699. <div
  8700. v-if="checktoolArray.indexOf(68) == -1"
  8701. class="noChoose"
  8702. ></div>
  8703. <div v-else class="isChoose"></div>
  8704. </div>
  8705. </div>
  8706. <!-- <div
  8707. class="tool"
  8708. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8709. @click="addTools2(69)"
  8710. >
  8711. <div class="whiteBIcon">
  8712. <img src="../../assets/icon/secondToolList/english.png" alt />
  8713. <div style="margin: 5px 0">英语写作</div>
  8714. </div>
  8715. <div class="check">
  8716. <div
  8717. v-if="checktoolArray.indexOf(69) == -1"
  8718. class="noChoose"
  8719. ></div>
  8720. <div v-else class="isChoose"></div>
  8721. </div>
  8722. </div> -->
  8723. </div>
  8724. <div class="toolSort" v-if="toolType == 4">
  8725. <div
  8726. class="tool"
  8727. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8728. @click="addTools2(26)"
  8729. >
  8730. <div class="whiteBIcon">
  8731. <img
  8732. src="../../assets/icon/thirdToolList/courseDesign.png"
  8733. alt
  8734. />
  8735. <div style="margin: 5px 0">课程设计</div>
  8736. </div>
  8737. <div class="check">
  8738. <div
  8739. v-if="checktoolArray.indexOf(26) == -1"
  8740. class="noChoose"
  8741. ></div>
  8742. <div v-else class="isChoose"></div>
  8743. </div>
  8744. </div>
  8745. <div
  8746. class="tool"
  8747. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8748. @click="addTools2(25)"
  8749. >
  8750. <div class="whiteBIcon">
  8751. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8752. <div style="margin: 5px 0">目标管理</div>
  8753. </div>
  8754. <div class="check">
  8755. <div
  8756. v-if="checktoolArray.indexOf(25) == -1"
  8757. class="noChoose"
  8758. ></div>
  8759. <div v-else class="isChoose"></div>
  8760. </div>
  8761. </div>
  8762. </div>
  8763. </div>
  8764. </div>
  8765. <span
  8766. slot="footer"
  8767. class="dialog-footer"
  8768. style="display: block; text-align: center; padding: 0 0 10px 0"
  8769. >
  8770. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8771. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8772. </span>
  8773. </div>
  8774. <div
  8775. v-if="replyDialogVisible == true"
  8776. class="addDialogCss"
  8777. v-el-drag-dialog
  8778. >
  8779. <div class="pzTop">
  8780. <div class="teacherPz">
  8781. <div class="teacherPzImg">
  8782. <img src="../../assets/icon/teacherPz.png" alt="" />
  8783. </div>
  8784. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8785. </div>
  8786. <div @click="replyDialogVisible = false">
  8787. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8788. </div>
  8789. </div>
  8790. <div class="addPzBox">
  8791. <!-- <div class="addPzCheck">
  8792. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8793. >文本</span
  8794. >
  8795. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8796. >音频</span
  8797. >
  8798. </div> -->
  8799. <div style="height: calc(100% - 50px)">
  8800. <editor-bar
  8801. class="binfo_input pzConText"
  8802. style="width: 100% !important; margin: 0 auto"
  8803. placeholder="请输入回复描述"
  8804. v-model="reply"
  8805. @change="change"
  8806. ></editor-bar>
  8807. </div>
  8808. <div class="addTextCss" @click="addHf">确定</div>
  8809. </div>
  8810. </div>
  8811. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8812. <div class="pzTop">
  8813. <div class="teacherPz">
  8814. <div class="teacherPzImg">
  8815. <img src="../../assets/icon/teacherPz.png" alt="" />
  8816. </div>
  8817. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8818. </div>
  8819. <div @click="addPzDialog = false">
  8820. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8821. </div>
  8822. </div>
  8823. <div class="addPzBox">
  8824. <div class="addPzCheck">
  8825. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8826. >文本</span
  8827. >
  8828. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8829. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8830. >音频</span
  8831. >
  8832. </div>
  8833. <div style="height: calc(100% - 95px)">
  8834. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8835. v-if="pzType == 1"></textarea> -->
  8836. <editor-bar
  8837. class="binfo_input pzConText"
  8838. style="width: 100% !important"
  8839. placeholder="请输入任务描述"
  8840. v-model="pzConText"
  8841. @change="change"
  8842. v-if="pzType == 1"
  8843. ></editor-bar>
  8844. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8845. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8846. <div @click="addImg($event)">
  8847. <el-button type="primary">上传图片</el-button>
  8848. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8849. @change="beforeUpload1($event, 4)" />
  8850. </div>
  8851. </div> -->
  8852. </div>
  8853. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8854. 确定
  8855. </div>
  8856. </div>
  8857. </div>
  8858. <div v-if="proVisible" class="mask">
  8859. <div class="progressBox">
  8860. <!-- <div id="closePro" class="closeCss">
  8861. <img src="../../assets/icon/close.png" alt />
  8862. </div> -->
  8863. <div class="lbox">
  8864. <img src="../../assets/loading.gif" />上传中,请稍后
  8865. </div>
  8866. <div style="margin-bottom: 10px">
  8867. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8868. </div>
  8869. <el-progress
  8870. :text-inside="true"
  8871. :stroke-width="20"
  8872. :percentage="progress"
  8873. style="width: 80%"
  8874. ></el-progress>
  8875. </div>
  8876. </div>
  8877. <div v-if="proVisible2" class="mask">
  8878. <div class="progressBox">
  8879. <div class="lbox">
  8880. <img src="../../assets/loading.gif" />上传中,请稍后
  8881. </div>
  8882. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8883. </div>
  8884. </div>
  8885. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8886. <img width="100%" :src="dialogImageUrl" alt />
  8887. </el-dialog>
  8888. <el-dialog
  8889. :title="noteName != '' ? noteName : '查看问卷'"
  8890. :visible.sync="dialogVisible5"
  8891. :append-to-body="true"
  8892. width="1000px"
  8893. :before-close="handleClose"
  8894. class="dialog_diy dialog_diy3"
  8895. >
  8896. <div>
  8897. <div
  8898. class="a_add_title"
  8899. style="
  8900. display: flex;
  8901. flex-direction: row;
  8902. align-items: center;
  8903. justify-content: center;
  8904. "
  8905. >
  8906. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8907. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8908. </div>
  8909. <div class="a_addBox">
  8910. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8911. 题目内容
  8912. </div>
  8913. <div
  8914. class="a_add_box"
  8915. v-for="(item1, index1) in askJson.askCount"
  8916. :key="index1"
  8917. >
  8918. <div class="a_add_head">
  8919. <div style="display: flex">
  8920. <span class="askIndex"> {{ index1 + 1 }}</span>
  8921. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8922. </div>
  8923. <img
  8924. v-if="askJson.askJson[index1].img"
  8925. :src="askJson.askJson[index1].img"
  8926. style="height: 300px; margin-top: 10px; max-width: 100%"
  8927. />
  8928. </div>
  8929. <div class="a_add_body">
  8930. <div class="a_add_input">
  8931. <el-radio-group
  8932. v-model="radio[index1]"
  8933. v-if="
  8934. askJson.askJson[index1].type == '1' ||
  8935. !askJson.askJson[index1].type
  8936. "
  8937. >
  8938. <el-radio
  8939. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8940. .checkList"
  8941. :key="checkIndex"
  8942. :label="checkIndex"
  8943. :disabled="isAnswer"
  8944. class="redioStyle"
  8945. ><span v-html="item2"></span
  8946. ></el-radio>
  8947. </el-radio-group>
  8948. <el-checkbox-group
  8949. v-model="radio[index1]"
  8950. v-if="askJson.askJson[index1].type == '2'"
  8951. >
  8952. <el-checkbox
  8953. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8954. .checkList"
  8955. :key="checkIndex1"
  8956. :label="checkIndex1"
  8957. :disabled="isAnswer"
  8958. class="redioStyle"
  8959. ><span v-html="item2"></span>
  8960. </el-checkbox>
  8961. </el-checkbox-group>
  8962. </div>
  8963. </div>
  8964. </div>
  8965. </div>
  8966. </div>
  8967. <span slot="footer" class="dialog-footer">
  8968. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8969. >取 消</el-button
  8970. >
  8971. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8972. >确 定</el-button
  8973. >
  8974. </span>
  8975. </el-dialog>
  8976. <el-dialog
  8977. :title="noteName != '' ? noteName : '查看问卷'"
  8978. :visible.sync="dialogVisible5Teacher"
  8979. :append-to-body="true"
  8980. width="1000px"
  8981. :before-close="handleClose"
  8982. class="dialog_diy dialog_diy3"
  8983. >
  8984. <div>
  8985. <div class="w_name">
  8986. 学生姓名:<span>{{ sStudent.student }}</span>
  8987. </div>
  8988. <div
  8989. class="a_add_title"
  8990. style="
  8991. display: flex;
  8992. flex-direction: row;
  8993. align-items: center;
  8994. justify-content: center;
  8995. "
  8996. >
  8997. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8998. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8999. </div>
  9000. <div class="a_addBox">
  9001. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9002. 题目内容
  9003. </div>
  9004. <div
  9005. class="a_add_box"
  9006. v-for="(item1, index1) in askJson.askCount"
  9007. :key="index1"
  9008. >
  9009. <div class="a_add_head">
  9010. <div style="display: flex">
  9011. <span class="askIndex">{{ index1 + 1 }}</span>
  9012. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9013. </div>
  9014. <img
  9015. v-if="askJson.askJson[index1].img"
  9016. :src="askJson.askJson[index1].img"
  9017. style="height: 300px; margin-top: 10px; max-width: 100%"
  9018. />
  9019. </div>
  9020. <div class="a_add_body">
  9021. <div class="a_add_input">
  9022. <el-radio-group
  9023. v-model="radio[index1]"
  9024. v-if="
  9025. askJson.askJson[index1].type == '1' ||
  9026. !askJson.askJson[index1].type
  9027. "
  9028. >
  9029. <el-radio
  9030. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9031. .checkList"
  9032. :key="checkIndex"
  9033. :label="checkIndex"
  9034. :disabled="isAnswer"
  9035. class="redioStyle"
  9036. ><span v-html="item2"></span
  9037. ></el-radio>
  9038. </el-radio-group>
  9039. <el-checkbox-group
  9040. v-model="radio[index1]"
  9041. v-if="askJson.askJson[index1].type == '2'"
  9042. >
  9043. <el-checkbox
  9044. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9045. .checkList"
  9046. :key="checkIndex1"
  9047. :label="checkIndex1"
  9048. :disabled="isAnswer"
  9049. class="redioStyle"
  9050. ><span v-html="item2"></span>
  9051. </el-checkbox>
  9052. </el-checkbox-group>
  9053. </div>
  9054. </div>
  9055. </div>
  9056. </div>
  9057. </div>
  9058. <span slot="footer" class="dialog-footer">
  9059. <el-button
  9060. @click="dialogVisible5Teacher = false"
  9061. v-show="noteName == ''"
  9062. >取 消</el-button
  9063. >
  9064. <el-button
  9065. type="primary"
  9066. @click="addStudentAskTeacher"
  9067. v-show="noteName == ''"
  9068. >确 定</el-button
  9069. >
  9070. </span>
  9071. </el-dialog>
  9072. <el-dialog
  9073. :title="noteName != '' ? noteName : '查看选择题'"
  9074. :visible.sync="dialogVisibleChoice"
  9075. :append-to-body="true"
  9076. width="1000px"
  9077. :before-close="handleClose"
  9078. class="dialog_diy dialog_diy3"
  9079. >
  9080. <div>
  9081. <!-- <div class="a_add_title" style="
  9082. display: flex;
  9083. flex-direction: row;
  9084. align-items: center;
  9085. justify-content: center;
  9086. ">
  9087. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9088. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9089. </div> -->
  9090. <div class="a_addBox">
  9091. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9092. 题目内容
  9093. </div>
  9094. <div
  9095. class="a_add_box"
  9096. v-for="(item1, index1) in testJson.testCount"
  9097. :key="index1"
  9098. >
  9099. <div class="a_add_head">
  9100. <div style="display: flex">
  9101. <span class="askIndex">{{ index1 + 1 }}</span>
  9102. <div
  9103. v-if="testJson.testJson[index1].type == '1'"
  9104. style="margin-right: 5px; min-width: 70px"
  9105. >
  9106. (单选题)
  9107. </div>
  9108. <div
  9109. v-if="testJson.testJson[index1].type == '2'"
  9110. style="margin-right: 5px; min-width: 70px"
  9111. >
  9112. (多选题)
  9113. </div>
  9114. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9115. </div>
  9116. <img
  9117. v-if="testJson.testJson[index1].img"
  9118. :src="testJson.testJson[index1].img"
  9119. style="height: 300px; margin-top: 10px; max-width: 100%"
  9120. />
  9121. </div>
  9122. <div
  9123. class="timuImgBox"
  9124. v-if="
  9125. testJson.testJson[index1].timuList &&
  9126. testJson.testJson[index1].timuList.length
  9127. "
  9128. >
  9129. <div
  9130. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9131. :key="tIndex"
  9132. class="timuImg"
  9133. @click.stop="previewImg(timg.src)"
  9134. >
  9135. <img :src="timg.src" alt="" />
  9136. </div>
  9137. </div>
  9138. <div class="a_add_body">
  9139. <div class="a_add_input">
  9140. <el-radio-group
  9141. v-model="radio[index1]"
  9142. v-if="testJson.testJson[index1].type == '1'"
  9143. >
  9144. <div class="radioBox">
  9145. <el-radio
  9146. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9147. .checkList"
  9148. :key="checkIndex"
  9149. :label="checkIndex"
  9150. :disabled="isAnswer"
  9151. class="redioStyle"
  9152. >
  9153. <div
  9154. style="margin-right: 10px"
  9155. v-if="item2 && item2.imgType && item2.imgType == 1"
  9156. >
  9157. <div class="inImg" @click.stop="previewImg(item2.src)">
  9158. <img :src="item2.src" alt="" />
  9159. </div>
  9160. </div>
  9161. <span v-else v-html="item2"></span>
  9162. </el-radio>
  9163. </div>
  9164. </el-radio-group>
  9165. <el-checkbox-group
  9166. v-model="radio[index1]"
  9167. v-if="testJson.testJson[index1].type == '2'"
  9168. >
  9169. <div class="radioBox">
  9170. <el-checkbox
  9171. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9172. .checkList"
  9173. :key="checkIndex"
  9174. :label="checkIndex"
  9175. :disabled="isAnswer"
  9176. class="redioStyle"
  9177. >
  9178. <div
  9179. style="margin-right: 10px"
  9180. v-if="item2 && item2.imgType && item2.imgType == 1"
  9181. >
  9182. <div class="inImg" @click.stop="previewImg(item2.src)">
  9183. <img :src="item2.src" alt="" />
  9184. </div>
  9185. </div>
  9186. <span v-else v-html="item2"></span>
  9187. </el-checkbox>
  9188. </div>
  9189. </el-checkbox-group>
  9190. </div>
  9191. </div>
  9192. </div>
  9193. </div>
  9194. </div>
  9195. <span slot="footer" class="dialog-footer">
  9196. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9197. >取 消</el-button
  9198. >
  9199. <el-button
  9200. type="primary"
  9201. @click="addStudentTest"
  9202. v-show="noteName == ''"
  9203. >确 定</el-button
  9204. >
  9205. </span>
  9206. </el-dialog>
  9207. <el-dialog
  9208. :title="noteName != '' ? noteName : '查看选择题'"
  9209. :visible.sync="dialogVisibleChoiceTeacher"
  9210. :append-to-body="true"
  9211. width="1000px"
  9212. :before-close="handleClose"
  9213. class="dialog_diy dialog_diy3"
  9214. >
  9215. <div>
  9216. <div class="w_name">
  9217. 学生姓名:<span>{{ sStudent.student }}</span>
  9218. </div>
  9219. <div class="a_addBox">
  9220. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9221. 题目内容
  9222. </div>
  9223. <div
  9224. class="a_add_box"
  9225. v-for="(item1, index1) in testJson.testCount"
  9226. :key="index1"
  9227. >
  9228. <div class="a_add_head">
  9229. <div style="display: flex">
  9230. <span class="askIndex">{{ index1 + 1 }}</span>
  9231. <div
  9232. v-if="testJson.testJson[index1].type == '1'"
  9233. style="margin-right: 5px; min-width: 70px"
  9234. >
  9235. (单选题)
  9236. </div>
  9237. <div
  9238. v-if="testJson.testJson[index1].type == '2'"
  9239. style="margin-right: 5px; min-width: 70px"
  9240. >
  9241. (多选题)
  9242. </div>
  9243. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9244. </div>
  9245. <img
  9246. v-if="testJson.testJson[index1].img"
  9247. :src="testJson.testJson[index1].img"
  9248. style="height: 300px; margin-top: 10px; max-width: 100%"
  9249. />
  9250. </div>
  9251. <div
  9252. class="timuImgBox"
  9253. v-if="
  9254. testJson.testJson[index1].timuList &&
  9255. testJson.testJson[index1].timuList.length
  9256. "
  9257. >
  9258. <div
  9259. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9260. :key="tIndex"
  9261. class="timuImg"
  9262. @click.stop="previewImg(timg.src)"
  9263. >
  9264. <img :src="timg.src" alt="" />
  9265. </div>
  9266. </div>
  9267. <div class="a_add_body">
  9268. <div class="a_add_input">
  9269. <el-radio-group
  9270. v-model="radio[index1]"
  9271. v-if="testJson.testJson[index1].type == '1'"
  9272. >
  9273. <div class="radioBox">
  9274. <el-radio
  9275. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9276. .checkList"
  9277. :key="checkIndex"
  9278. :label="checkIndex"
  9279. :disabled="isAnswer"
  9280. class="redioStyle"
  9281. >
  9282. <div
  9283. style="margin-right: 10px"
  9284. v-if="item2 && item2.imgType && item2.imgType == 1"
  9285. >
  9286. <div class="inImg" @click.stop="previewImg(item2.src)">
  9287. <img :src="item2.src" alt="" />
  9288. </div>
  9289. </div>
  9290. <span v-else v-html="item2"></span>
  9291. </el-radio>
  9292. </div>
  9293. </el-radio-group>
  9294. <el-checkbox-group
  9295. v-model="radio[index1]"
  9296. v-if="testJson.testJson[index1].type == '2'"
  9297. >
  9298. <div class="radioBox">
  9299. <el-checkbox
  9300. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9301. .checkList"
  9302. :key="checkIndex"
  9303. :label="checkIndex"
  9304. :disabled="isAnswer"
  9305. class="redioStyle"
  9306. >
  9307. <div
  9308. style="margin-right: 10px"
  9309. v-if="item2 && item2.imgType && item2.imgType == 1"
  9310. >
  9311. <div class="inImg" @click.stop="previewImg(item2.src)">
  9312. <img :src="item2.src" alt="" />
  9313. </div>
  9314. </div>
  9315. <span v-else v-html="item2"></span>
  9316. </el-checkbox>
  9317. </div>
  9318. </el-checkbox-group>
  9319. </div>
  9320. </div>
  9321. </div>
  9322. </div>
  9323. </div>
  9324. <span slot="footer" class="dialog-footer">
  9325. <el-button
  9326. @click="dialogVisibleChoiceTeacher = false"
  9327. v-show="noteName == ''"
  9328. >取 消</el-button
  9329. >
  9330. <el-button
  9331. type="primary"
  9332. @click="addStudentTestTeacher"
  9333. v-show="noteName == ''"
  9334. >确 定</el-button
  9335. >
  9336. </span>
  9337. </el-dialog>
  9338. <el-dialog
  9339. title="查看富文本"
  9340. :visible.sync="dialogVisible1"
  9341. :append-to-body="true"
  9342. width="500px"
  9343. :before-close="handleClose"
  9344. class="dialog_diy textCss"
  9345. >
  9346. <el-form style="font-size: 20px">
  9347. <el-form-item label="文本标题" class="textTitle">
  9348. <div style="font-size: 20px">{{ text.name }}</div>
  9349. </el-form-item>
  9350. <div>富文本内容</div>
  9351. <div
  9352. v-html="text.url"
  9353. style="font-size: 18px; padding: 40px 0 0 0"
  9354. ></div>
  9355. </el-form>
  9356. <span slot="footer" class="dialog-footer">
  9357. <el-button type="primary" @click="dialogVisible1 = false"
  9358. >确定</el-button
  9359. >
  9360. </span>
  9361. </el-dialog>
  9362. <el-dialog
  9363. title="文件预览"
  9364. :visible.sync="dialogVisible3"
  9365. width="50%"
  9366. :before-close="handleClose"
  9367. class="dialog_diy"
  9368. :class="{ fullStyle: full }"
  9369. >
  9370. <div slot="title" class="header-title">
  9371. <div style="color: #fff">文件预览</div>
  9372. <div style="position: absolute; top: 19px; right: 50px">
  9373. <img
  9374. src="../../assets/full.png"
  9375. style="height: 16px; cursor: pointer"
  9376. alt=""
  9377. @click="fullTools"
  9378. />
  9379. </div>
  9380. </div>
  9381. <pdf
  9382. v-if="showPDF"
  9383. :pdfUrl="pptImgUrl"
  9384. style="width: 100%; height: 520px; overflow: auto"
  9385. :class="{ fullStyle: full }"
  9386. ></pdf>
  9387. <iframe
  9388. v-else
  9389. :src="pptImgUrl"
  9390. frameborder="0"
  9391. width="100%"
  9392. height="600"
  9393. :class="{ fullStyle: full }"
  9394. ></iframe>
  9395. </el-dialog>
  9396. <el-dialog
  9397. title="文件预览"
  9398. :visible.sync="dialogVisible6"
  9399. width="50%"
  9400. :before-close="handleClose"
  9401. class="dialog_diy"
  9402. >
  9403. <iframe
  9404. :src="pptImgUrl1"
  9405. frameborder="0"
  9406. width="100%"
  9407. height="600"
  9408. ></iframe>
  9409. </el-dialog>
  9410. <el-dialog
  9411. title="提示"
  9412. :visible.sync="dialogVisible4"
  9413. :append-to-body="true"
  9414. width="800px"
  9415. :before-close="handleClose"
  9416. class="dialog_diy notice"
  9417. >
  9418. <div>此功能暂未开放!</div>
  9419. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9420. </el-dialog>
  9421. <el-dialog
  9422. title="问答"
  9423. :visible.sync="answerDialogVisible"
  9424. :append-to-body="true"
  9425. width="800px"
  9426. :before-close="handleClose"
  9427. class="dialog_diy"
  9428. >
  9429. <div>
  9430. <div
  9431. style="
  9432. display: flex;
  9433. flex-wrap: nowrap;
  9434. flex-direction: column;
  9435. position: relative;
  9436. "
  9437. >
  9438. <div class="queTop" style="padding: 20px 0 20px 0">
  9439. <div class="question">
  9440. <img src="../../assets/icon/question.png" alt />
  9441. </div>
  9442. <div class="queTitle">
  9443. <div style="width: 90px; min-width: 90px">提问:</div>
  9444. <div>{{ answerQ }}</div>
  9445. </div>
  9446. </div>
  9447. <div class="ediBottom">
  9448. <textarea
  9449. rows="6"
  9450. class="binfo_input"
  9451. cols
  9452. style="width: 95%; height: 120px"
  9453. v-model="questionAnswer"
  9454. ></textarea>
  9455. </div>
  9456. </div>
  9457. </div>
  9458. <div slot="footer">
  9459. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9460. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9461. </div>
  9462. </el-dialog>
  9463. <el-dialog
  9464. title="问答"
  9465. :visible.sync="answerDialogVisibleTeacher"
  9466. :append-to-body="true"
  9467. width="800px"
  9468. :before-close="handleClose"
  9469. class="dialog_diy"
  9470. >
  9471. <div>
  9472. <div class="w_name">
  9473. 学生姓名:<span>{{ sStudent.student }}</span>
  9474. </div>
  9475. <div
  9476. style="
  9477. display: flex;
  9478. flex-wrap: nowrap;
  9479. flex-direction: column;
  9480. position: relative;
  9481. "
  9482. >
  9483. <div class="queTop" style="padding: 20px 0 20px 0">
  9484. <div class="question">
  9485. <img src="../../assets/icon/question.png" alt />
  9486. </div>
  9487. <div class="queTitle">
  9488. <div style="width: 90px; min-width: 90px">提问:</div>
  9489. <div>{{ answerQ }}</div>
  9490. </div>
  9491. </div>
  9492. <div class="ediBottom">
  9493. <textarea
  9494. rows="6"
  9495. class="binfo_input"
  9496. cols
  9497. style="width: 95%; height: 120px"
  9498. v-model="questionAnswer"
  9499. ></textarea>
  9500. </div>
  9501. </div>
  9502. </div>
  9503. <div slot="footer">
  9504. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9505. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9506. </div>
  9507. </el-dialog>
  9508. <el-dialog
  9509. title="倒计时"
  9510. :visible.sync="timeDialogVisible"
  9511. :append-to-body="true"
  9512. width="800px"
  9513. :before-close="handleClose"
  9514. class="dialog_diy"
  9515. >
  9516. <div>
  9517. <div style="margin-bottom: 20px; color: #999">
  9518. 提示:点击“+”或“-”修改倒计时时长。
  9519. </div>
  9520. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9521. </div>
  9522. <div slot="footer">
  9523. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9524. </div>
  9525. </el-dialog>
  9526. <el-dialog
  9527. title="权限设置"
  9528. :visible.sync="juriVisible"
  9529. :append-to-body="true"
  9530. width="400px"
  9531. :before-close="handleClose"
  9532. class="dialog_diy"
  9533. >
  9534. <div>
  9535. <div class="open_box">
  9536. <div class="switch_box">
  9537. <span>允许学生查看所有作业</span>
  9538. <el-switch
  9539. v-model="sIsOpen"
  9540. active-text=""
  9541. class="switchCss"
  9542. @change="updateSLook"
  9543. ></el-switch>
  9544. </div>
  9545. <div
  9546. class="switch_box"
  9547. v-if="
  9548. courseDetail.userid == userid ||
  9549. (courseDetail.course_teacher &&
  9550. courseDetail.course_teacher.indexOf(userid) != -1)
  9551. "
  9552. >
  9553. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9554. <span>禁止学生查看所有阶段</span>
  9555. <el-switch
  9556. v-model="IsLookOpen"
  9557. active-text=""
  9558. class="switchCss"
  9559. @change="updateLookOpen"
  9560. ></el-switch>
  9561. </div>
  9562. <div class="switch_box" v-if="courseDetail.userid == userid">
  9563. <span>开启跟随模式</span>
  9564. <el-switch
  9565. v-model="IsFollow"
  9566. active-text=""
  9567. class="switchCss"
  9568. @change="updateFollow"
  9569. ></el-switch>
  9570. </div>
  9571. </div>
  9572. </div>
  9573. <div slot="footer">
  9574. <el-button
  9575. style="background: #409efe; color: #fff"
  9576. @click="juriVisible = false"
  9577. >关 闭</el-button
  9578. >
  9579. </div>
  9580. </el-dialog>
  9581. <el-dialog
  9582. title="查看视频"
  9583. :visible.sync="videoVisible"
  9584. :append-to-body="true"
  9585. width="1000px"
  9586. :before-close="handleClose"
  9587. class="dialog_diy1"
  9588. >
  9589. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9590. <video-player
  9591. class="video-player vjs-custom-skin"
  9592. :playsinline="true"
  9593. :options="videoDetail"
  9594. @play="onPlayerPlay($event)"
  9595. style="width: 100%; height: 100%"
  9596. ></video-player>
  9597. </div>
  9598. <div slot="footer">
  9599. <el-button
  9600. style="background: #409efe; color: #fff"
  9601. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9602. >
  9603. 关 闭</el-button
  9604. >
  9605. </div>
  9606. </el-dialog>
  9607. <el-dialog
  9608. title="查看详情"
  9609. :visible.sync="commentDialogVisible"
  9610. :append-to-body="true"
  9611. width="800px"
  9612. :before-close="handleClose"
  9613. class="dialog_diy"
  9614. >
  9615. <div class="commentTop">
  9616. <div class="studentDetail">
  9617. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9618. <div class="nameAndTime">
  9619. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9620. <div>{{ commentDetail.time }}</div>
  9621. </div>
  9622. <div
  9623. class="returnBtn"
  9624. style="margin-left: auto; width: 80px"
  9625. v-if="
  9626. commentDetail.works &&
  9627. commentDetail.type == 0 &&
  9628. (tType == 1 || tType == 4)
  9629. "
  9630. @click="
  9631. showPicturePaint(
  9632. commentDetail.img ? commentDetail.img : commentDetail.works
  9633. )
  9634. "
  9635. >
  9636. 教师批注
  9637. </div>
  9638. </div>
  9639. <div
  9640. class="worksAnswer"
  9641. v-if="commentDetail.works && commentDetail.type == 2"
  9642. >
  9643. {{ JSON.parse(commentDetail.works)[0].answer }}
  9644. </div>
  9645. <div
  9646. class="worksAnswer"
  9647. v-if="commentDetail.works && commentDetail.type == 1"
  9648. >
  9649. <img
  9650. src="../../assets/teacherWork.png"
  9651. v-if="commentDetail.ateacher"
  9652. class="w_teachert"
  9653. />
  9654. <pdf
  9655. v-if="showPDF"
  9656. :pdfUrl="pptImgUrl"
  9657. style="width: 100%; height: 520px; overflow: auto"
  9658. :class="{ fullStyle: full }"
  9659. ></pdf>
  9660. <iframe
  9661. v-else
  9662. :src="pptImgUrl"
  9663. frameborder="0"
  9664. width="100%"
  9665. height="600"
  9666. :class="{ fullStyle: full }"
  9667. ></iframe>
  9668. </div>
  9669. <div
  9670. class="worksAnswer"
  9671. v-if="commentDetail.works && commentDetail.type == 0"
  9672. >
  9673. <img
  9674. src="../../assets/teacherWork.png"
  9675. v-if="commentDetail.ateacher"
  9676. class="w_teachert"
  9677. style="right: 105px"
  9678. />
  9679. <img
  9680. :src="commentDetail.works"
  9681. alt=""
  9682. @click="previewImg(commentDetail.works)"
  9683. />
  9684. </div>
  9685. <div
  9686. class="worksAnswer"
  9687. v-if="commentDetail.works && commentDetail.type == 3"
  9688. >
  9689. <img
  9690. src="../../assets/teacherWork.png"
  9691. v-if="commentDetail.ateacher"
  9692. class="w_teachert"
  9693. />
  9694. <video-player
  9695. class="video-player vjs-custom-skin"
  9696. :playsinline="true"
  9697. :options="videoDetail"
  9698. @play="onPlayerPlay($event)"
  9699. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9700. ></video-player>
  9701. </div>
  9702. <div
  9703. class="worksAnswer"
  9704. v-if="commentDetail.works && commentDetail.type == 10"
  9705. >
  9706. <div class="cont" v-html="commentDetail.works.text"></div>
  9707. </div>
  9708. <div
  9709. class="worksAnswer codeFileBox"
  9710. v-if="commentDetail.works && commentDetail.type == 12"
  9711. @click="downloadFile(commentDetail.works)"
  9712. >
  9713. <img src="../../assets/icon/codeFile.png" />
  9714. <div>点击下载文件</div>
  9715. </div>
  9716. <div
  9717. class="worksAnswer codeFileBox"
  9718. v-if="commentDetail.works && commentDetail.type == 15"
  9719. @click="
  9720. openCocoPi(
  9721. 57,
  9722. commentIndexJson.toolIndex,
  9723. commentDetail.userid,
  9724. commentDetail.sName
  9725. )
  9726. "
  9727. >
  9728. <img src="../../assets/icon/codeFile.png" />
  9729. <div>点击打开CocoPi</div>
  9730. </div>
  9731. <div
  9732. class="worksAnswer"
  9733. v-if="commentDetail.works && commentDetail.type == 13"
  9734. >
  9735. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9736. </div>
  9737. <div
  9738. class="worksAnswer"
  9739. v-if="commentDetail.works && commentDetail.type == 4"
  9740. >
  9741. <div class="evalCss">
  9742. <div class="nav">请选择星星进行评分</div>
  9743. <div class="middleBox" v-if="eScore.eStar">
  9744. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9745. <div class="nameAndrate">
  9746. <div>{{ e.value }}</div>
  9747. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9748. </div>
  9749. <div v-if="e.detail">{{ e.detail }}</div>
  9750. </div>
  9751. <div class="bz">
  9752. <textarea
  9753. disabled
  9754. rows="4"
  9755. class="pj"
  9756. style="
  9757. padding: 10px 5px;
  9758. width: 70%;
  9759. background: #f7f6f9;
  9760. font-size: 14px;
  9761. text-indent: 10px;
  9762. color: #000;
  9763. "
  9764. cols
  9765. v-model="eScore.eBzText"
  9766. placeholder="请输入评价内容..."
  9767. ></textarea>
  9768. </div>
  9769. </div>
  9770. </div>
  9771. </div>
  9772. <div class="comment">
  9773. <div class="commentList">
  9774. <div class="commentImg">
  9775. <img
  9776. @click="
  9777. isLikes(
  9778. commentDetail.wid,
  9779. userid,
  9780. 1,
  9781. null,
  9782. commentDetail.isLikes
  9783. )
  9784. "
  9785. :src="commentDetail.isLikes == true ? likes : noLikes"
  9786. alt=""
  9787. />
  9788. </div>
  9789. <div>{{ commentDetail.likesCount }}</div>
  9790. </div>
  9791. <div class="commentList">
  9792. <div class="commentImg">
  9793. <img src="../../assets/icon/comment/comment.png" alt="" />
  9794. </div>
  9795. <div>{{ commentDetail.commentCount }}</div>
  9796. </div>
  9797. </div>
  9798. <div class="drawPBox" v-if="commentDetail.img">
  9799. <span>教师批注</span>
  9800. <img
  9801. :src="commentDetail.img"
  9802. alt=""
  9803. @click="previewImg(commentDetail.img)"
  9804. />
  9805. <span
  9806. class="deleteImg"
  9807. v-if="tType == 1 || tType == 4"
  9808. @click.stop="deletePicturePaint(commentDetail.wid)"
  9809. style="
  9810. font-size: 14px;
  9811. width: auto !important;
  9812. color: #b4b4b4;
  9813. top: unset;
  9814. bottom: 0;
  9815. border: none;
  9816. padding: 0;
  9817. height: auto !important;
  9818. margin: 0;
  9819. "
  9820. >删除</span
  9821. >
  9822. </div>
  9823. </div>
  9824. <div class="commentBox">
  9825. <div class="pl">评论:</div>
  9826. <div style="max-height: 200px; overflow: auto">
  9827. <div
  9828. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9829. style="padding: 10px 0 0 0"
  9830. >
  9831. <div
  9832. class="studentDetail"
  9833. style="padding-top: 10px"
  9834. v-for="(co, coIndex) in commentDetail.commentJson"
  9835. :key="coIndex"
  9836. >
  9837. <div class="tx" style="min-width: 50px">
  9838. <img src="../../assets/avatar.png" alt="" />
  9839. </div>
  9840. <div class="plPerson">
  9841. <div class="plName">
  9842. <div>{{ co.commentPeople }}</div>
  9843. <div style="margin-left: 5px">
  9844. {{ co.commentTime }}
  9845. </div>
  9846. <div
  9847. class="deleteComment"
  9848. v-if="userid == co.userid"
  9849. @click="deleteComment(co.wid)"
  9850. >
  9851. 删除
  9852. </div>
  9853. </div>
  9854. <div class="plContent">{{ co.commentText }}</div>
  9855. </div>
  9856. </div>
  9857. </div>
  9858. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9859. </div>
  9860. </div>
  9861. <div style="margin-top: 10px">
  9862. <div class="displayBox">
  9863. <div
  9864. style="
  9865. color: #556db4;
  9866. font-size: 14px;
  9867. font-weight: bold;
  9868. padding-bottom: 10px;
  9869. "
  9870. >
  9871. 评价
  9872. </div>
  9873. <div class="easy_comment" v-if="false">
  9874. <div
  9875. v-for="(p, pIndex) in PlTextList"
  9876. :key="pIndex"
  9877. @click="fastText(p, 1)"
  9878. >
  9879. {{ p }}
  9880. </div>
  9881. </div>
  9882. </div>
  9883. <div>
  9884. <textarea
  9885. rows="3"
  9886. class="pj"
  9887. style="padding: 10px 5px"
  9888. cols
  9889. v-model="commentText"
  9890. placeholder="请输入评论"
  9891. ></textarea>
  9892. </div>
  9893. </div>
  9894. <div slot="footer">
  9895. <el-button
  9896. @click="
  9897. (commentDialogVisible = false),
  9898. (commentIndexJson = {}),
  9899. videoDetail.sources && videoDetail.sources[0]
  9900. ? (videoDetail.sources[0].src = '')
  9901. : ''
  9902. "
  9903. >取 消</el-button
  9904. >
  9905. <el-button
  9906. type="primary"
  9907. @click="addComment(commentDetail.wid, userid, 2)"
  9908. >确 定</el-button
  9909. >
  9910. </div>
  9911. </el-dialog>
  9912. <el-dialog
  9913. title="查看文档"
  9914. :visible.sync="fullDialogVisible"
  9915. :append-to-body="true"
  9916. width="100%"
  9917. :before-close="handleClose"
  9918. :show-close="false"
  9919. class="dialog_diy full_diy"
  9920. :class="{ full_diy2: fulltype == 3 }"
  9921. >
  9922. <div slot="title" class="header-title">
  9923. <div style="color: #fff">查看文档</div>
  9924. <div
  9925. @click="fullDialogVisible = false"
  9926. style="
  9927. cursor: pointer;
  9928. position: absolute;
  9929. top: 20px;
  9930. right: 20px;
  9931. color: #fff;
  9932. "
  9933. >
  9934. 退出全屏
  9935. </div>
  9936. </div>
  9937. <div style="height: 100%">
  9938. <div
  9939. class="wheel"
  9940. v-if="
  9941. fulltype == 2 &&
  9942. fullUrl.indexOf(
  9943. 'https://view.officeapps.live.com/op/view.aspx?src='
  9944. ) != -1
  9945. "
  9946. style="width: 95%; margin: 0 auto"
  9947. >
  9948. <iframe
  9949. style="width: 100%; height: 100%; border: none"
  9950. :src="fullUrl"
  9951. ></iframe>
  9952. </div>
  9953. <iframe
  9954. v-else-if="fulltype == 2"
  9955. style="width: 100%; height: 100%; border: none"
  9956. :src="fullUrl"
  9957. security="restricted"
  9958. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9959. ></iframe>
  9960. <pdf
  9961. v-else-if="fulltype == 3"
  9962. :pdfUrl="fullUrl"
  9963. style="width: 100%; height: 100%; overflow: auto"
  9964. ></pdf>
  9965. <div
  9966. class="wheel"
  9967. v-if="fulltype == 1"
  9968. style="
  9969. box-shadow: 0 0 6px 1px #f2f2f2;
  9970. width: 100%;
  9971. background: #f1f1f1;
  9972. "
  9973. >
  9974. <div class="title" style="width: 100%; box-sizing: border-box">
  9975. 查看文档
  9976. </div>
  9977. <el-form class="textBox" style="height: 90%">
  9978. <el-form-item class="textTitle">
  9979. <div style="font-size: 22px">
  9980. {{ fullUrl.name }}
  9981. </div>
  9982. </el-form-item>
  9983. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9984. <div
  9985. v-html="fullUrl.url"
  9986. class="textContent"
  9987. style="height: auto"
  9988. ></div>
  9989. </el-form>
  9990. </div>
  9991. </div>
  9992. <!-- <div slot="footer">
  9993. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9994. </div> -->
  9995. </el-dialog>
  9996. <el-dialog
  9997. title="个人评价"
  9998. :visible.sync="studentEvalDialogVisible"
  9999. :append-to-body="true"
  10000. width="800px"
  10001. :before-close="handleClose"
  10002. class="dialog_diy"
  10003. >
  10004. <div class="evalCss">
  10005. <div class="nav">请选择星星进行评分</div>
  10006. <div class="middleBox" v-if="eScore.eStar">
  10007. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10008. <div class="nameAndrate">
  10009. <div>{{ e.value }}</div>
  10010. <el-rate
  10011. v-model="eScore.eStar[eIndex]"
  10012. :disabled="isStar"
  10013. ></el-rate>
  10014. </div>
  10015. <div v-if="e.detail">{{ e.detail }}</div>
  10016. </div>
  10017. <div class="easy_comment" v-if="false">
  10018. <div
  10019. v-for="(p, pIndex) in PlTextList"
  10020. :key="pIndex"
  10021. @click="fastText(p, 2)"
  10022. >
  10023. {{ p }}
  10024. </div>
  10025. </div>
  10026. <div class="bz">
  10027. <textarea
  10028. :disabled="isStar"
  10029. rows="4"
  10030. class="pj"
  10031. style="
  10032. padding: 10px 5px;
  10033. width: 70%;
  10034. background: #f7f6f9;
  10035. font-size: 14px;
  10036. text-indent: 10px;
  10037. "
  10038. cols
  10039. v-model="eScore.eBzText"
  10040. placeholder="请输入评价内容..."
  10041. ></textarea>
  10042. </div>
  10043. </div>
  10044. </div>
  10045. <div slot="footer">
  10046. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10047. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10048. >确 定</el-button
  10049. >
  10050. </div>
  10051. </el-dialog>
  10052. <el-dialog
  10053. title="个人评价"
  10054. :visible.sync="studentEvalDialogVisibleTeacher"
  10055. :append-to-body="true"
  10056. width="800px"
  10057. :before-close="handleClose"
  10058. class="dialog_diy"
  10059. >
  10060. <div class="w_name">
  10061. 学生姓名:<span>{{ sStudent.student }}</span>
  10062. </div>
  10063. <div class="evalCss">
  10064. <div class="nav">请选择星星进行评分</div>
  10065. <div class="middleBox" v-if="eScore.eStar">
  10066. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10067. <div class="nameAndrate">
  10068. <div>{{ e.value }}</div>
  10069. <el-rate
  10070. v-model="eScore.eStar[eIndex]"
  10071. :disabled="isStar"
  10072. ></el-rate>
  10073. </div>
  10074. <div v-if="e.detail">{{ e.detail }}</div>
  10075. </div>
  10076. <div class="easy_comment" v-if="false">
  10077. <div
  10078. v-for="(p, pIndex) in PlTextList"
  10079. :key="pIndex"
  10080. @click="fastText(p, 2)"
  10081. >
  10082. {{ p }}
  10083. </div>
  10084. </div>
  10085. <div class="bz">
  10086. <textarea
  10087. :disabled="isStar"
  10088. rows="4"
  10089. class="pj"
  10090. style="
  10091. padding: 10px 5px;
  10092. width: 70%;
  10093. background: #f7f6f9;
  10094. font-size: 14px;
  10095. text-indent: 10px;
  10096. "
  10097. cols
  10098. v-model="eScore.eBzText"
  10099. placeholder="请输入评价内容..."
  10100. ></textarea>
  10101. </div>
  10102. </div>
  10103. </div>
  10104. <div slot="footer">
  10105. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10106. >取 消</el-button
  10107. >
  10108. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10109. >确 定</el-button
  10110. >
  10111. </div>
  10112. </el-dialog>
  10113. <el-dialog
  10114. title="选择匹配"
  10115. :visible.sync="dialogVisibleSelect"
  10116. :append-to-body="true"
  10117. width="90%"
  10118. :before-close="handleClose"
  10119. class="dialog_diy dialog_diy3"
  10120. >
  10121. <div v-if="selectJson">
  10122. <div class="select_box2">
  10123. <div class="select_box2_title">
  10124. <div>选择匹配</div>
  10125. <div>请选择对应的答案进行答题!</div>
  10126. </div>
  10127. <div class="select_box2_box">
  10128. <div class="select_box2_img">
  10129. <img
  10130. :src="selectJson.url"
  10131. @click="previewImg(selectJson.url)"
  10132. alt=""
  10133. />
  10134. </div>
  10135. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10136. <div style="padding-top: 15px">
  10137. <div class="select_answer_title" v-if="isSelect">
  10138. {{ selectAnswer.stu }}
  10139. </div>
  10140. <div class="select_answer_title" v-else>
  10141. 根据题目选择对应答案
  10142. </div>
  10143. <div
  10144. class="select_box2_answer_box"
  10145. v-for="(item2, checkIndex) in selectJson.select"
  10146. :key="checkIndex"
  10147. >
  10148. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10149. <el-select
  10150. :disabled="isSelect"
  10151. v-model="selectAnswer.answer[checkIndex]"
  10152. placeholder="请选择正确答案"
  10153. >
  10154. <el-option
  10155. v-for="(e, eIndex) in selectJson.select"
  10156. :key="eIndex"
  10157. :label="e"
  10158. :value="eIndex"
  10159. >
  10160. </el-option>
  10161. </el-select>
  10162. </div>
  10163. </div>
  10164. <div
  10165. class="rightAnswerCss"
  10166. v-if="isSelect && (tType == 1 || tType == 4)"
  10167. >
  10168. <div
  10169. v-for="(a, aIndex) in selectJson.answer"
  10170. :key="aIndex"
  10171. class="rightAnswer"
  10172. >
  10173. <div
  10174. v-if="selectAnswer.answer[aIndex] === a"
  10175. style="color: #767de1"
  10176. >
  10177. 回答正确
  10178. </div>
  10179. <div v-else>回答错误</div>
  10180. <div
  10181. style="margin-left: 10px"
  10182. v-if="selectAnswer.answer[aIndex] !== a"
  10183. >
  10184. 正确答案:
  10185. </div>
  10186. <div
  10187. :class="
  10188. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10189. "
  10190. >
  10191. {{ selectJson.select[a] }}
  10192. </div>
  10193. </div>
  10194. </div>
  10195. </div>
  10196. <div class="upAnswerCss">
  10197. <el-button
  10198. type="primary"
  10199. @click="addSelectAnswer"
  10200. v-if="!isSelect"
  10201. >提交答案</el-button
  10202. >
  10203. </div>
  10204. </div>
  10205. </div>
  10206. </div>
  10207. </el-dialog>
  10208. <el-dialog
  10209. title="选择匹配"
  10210. :visible.sync="dialogVisibleSelectTeacher"
  10211. :append-to-body="true"
  10212. width="90%"
  10213. :before-close="handleClose"
  10214. class="dialog_diy dialog_diy3"
  10215. >
  10216. <div v-if="selectJson">
  10217. <div class="w_name">
  10218. 学生姓名:<span>{{ sStudent.student }}</span>
  10219. </div>
  10220. <div class="select_box2">
  10221. <div class="select_box2_title">
  10222. <div>选择匹配</div>
  10223. <div>请选择对应的答案进行答题!</div>
  10224. </div>
  10225. <div class="select_box2_box">
  10226. <div class="select_box2_img">
  10227. <img
  10228. :src="selectJson.url"
  10229. @click="previewImg(selectJson.url)"
  10230. alt=""
  10231. />
  10232. </div>
  10233. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10234. <div style="padding-top: 15px">
  10235. <div class="select_answer_title" v-if="isSelect">
  10236. {{ selectAnswer.stu }}
  10237. </div>
  10238. <div class="select_answer_title" v-else>
  10239. 根据题目选择对应答案
  10240. </div>
  10241. <div
  10242. class="select_box2_answer_box"
  10243. v-for="(item2, checkIndex) in selectJson.select"
  10244. :key="checkIndex"
  10245. >
  10246. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10247. <el-select
  10248. :disabled="isSelect"
  10249. v-model="selectAnswer.answer[checkIndex]"
  10250. placeholder="请选择正确答案"
  10251. >
  10252. <el-option
  10253. v-for="(e, eIndex) in selectJson.select"
  10254. :key="eIndex"
  10255. :label="e"
  10256. :value="eIndex"
  10257. >
  10258. </el-option>
  10259. </el-select>
  10260. </div>
  10261. </div>
  10262. <div
  10263. class="rightAnswerCss"
  10264. v-if="isSelect && (tType == 1 || tType == 4)"
  10265. >
  10266. <div
  10267. v-for="(a, aIndex) in selectJson.answer"
  10268. :key="aIndex"
  10269. class="rightAnswer"
  10270. >
  10271. <div
  10272. v-if="selectAnswer.answer[aIndex] === a"
  10273. style="color: #767de1"
  10274. >
  10275. 回答正确
  10276. </div>
  10277. <div v-else>回答错误</div>
  10278. <div
  10279. style="margin-left: 10px"
  10280. v-if="selectAnswer.answer[aIndex] !== a"
  10281. >
  10282. 正确答案:
  10283. </div>
  10284. <div
  10285. :class="
  10286. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10287. "
  10288. >
  10289. {{ selectJson.select[a] }}
  10290. </div>
  10291. </div>
  10292. </div>
  10293. </div>
  10294. <div class="upAnswerCss">
  10295. <el-button
  10296. type="primary"
  10297. @click="addSelectAnswerTeacher"
  10298. v-if="!isSelect"
  10299. >提交答案</el-button
  10300. >
  10301. </div>
  10302. </div>
  10303. </div>
  10304. </div>
  10305. </el-dialog>
  10306. <el-dialog
  10307. title="教师评分"
  10308. :visible.sync="dialogVisibleScore"
  10309. :append-to-body="true"
  10310. width="800px"
  10311. :before-close="handleClose"
  10312. class="dialog_diy"
  10313. >
  10314. <div>
  10315. <div class="studentDetail">
  10316. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10317. <div class="nameAndTime">
  10318. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10319. <div>{{ commentDetail.time }}</div>
  10320. </div>
  10321. </div>
  10322. <div
  10323. class="worksAnswer"
  10324. v-if="commentDetail.works && commentDetail.type == 2"
  10325. >
  10326. {{ JSON.parse(commentDetail.works)[0].answer }}
  10327. </div>
  10328. <div
  10329. class="worksAnswer"
  10330. v-if="commentDetail.works && commentDetail.type == 1"
  10331. >
  10332. <pdf
  10333. v-if="showPDF"
  10334. :pdfUrl="pptImgUrl"
  10335. style="width: 100%; height: 520px; overflow: auto"
  10336. :class="{ fullStyle: full }"
  10337. ></pdf>
  10338. <iframe
  10339. v-else
  10340. :src="pptImgUrl"
  10341. frameborder="0"
  10342. width="100%"
  10343. height="600"
  10344. :class="{ fullStyle: full }"
  10345. ></iframe>
  10346. </div>
  10347. <div
  10348. class="worksAnswer"
  10349. v-if="commentDetail.works && commentDetail.type == 0"
  10350. >
  10351. <img
  10352. :src="commentDetail.works"
  10353. alt=""
  10354. @click="previewImg(commentDetail.works)"
  10355. />
  10356. </div>
  10357. <div
  10358. class="worksAnswer"
  10359. v-if="commentDetail.works && commentDetail.type == 3"
  10360. >
  10361. <video-player
  10362. class="video-player vjs-custom-skin"
  10363. :playsinline="true"
  10364. :options="videoDetail"
  10365. @play="onPlayerPlay($event)"
  10366. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10367. ></video-player>
  10368. </div>
  10369. <div
  10370. class="worksAnswer codeFileBox"
  10371. v-if="commentDetail.works && commentDetail.type == 12"
  10372. @click="downloadFile(commentDetail.works)"
  10373. >
  10374. <img src="../../assets/icon/codeFile.png" />
  10375. <div>点击下载文件</div>
  10376. </div>
  10377. <div
  10378. class="worksAnswer codeFileBox"
  10379. v-if="commentDetail.works && commentDetail.type == 15"
  10380. @click="
  10381. openCocoPi(
  10382. 57,
  10383. commentIndexJson.toolIndex,
  10384. commentDetail.userid,
  10385. commentDetail.sName
  10386. )
  10387. "
  10388. >
  10389. <img src="../../assets/icon/codeFile.png" />
  10390. <div>点击打开CocoPi</div>
  10391. </div>
  10392. <div
  10393. class="worksAnswer"
  10394. v-if="commentDetail.works && commentDetail.type == 13"
  10395. >
  10396. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10397. </div>
  10398. <div class="scoreBox">
  10399. <span class="t">请输入分数</span>
  10400. <el-input-number
  10401. :disabled="courseDetail.userid != userid"
  10402. v-model="wScore"
  10403. :controls="false"
  10404. :min="0"
  10405. :max="100"
  10406. ></el-input-number>
  10407. </div>
  10408. <div class="scoreDetailBox">
  10409. <span class="t">评分评论</span>
  10410. <el-input
  10411. type="textarea"
  10412. :rows="5"
  10413. :disabled="courseDetail.userid != userid"
  10414. resize="none"
  10415. v-model="scoreDetail"
  10416. placeholder="请输入对学生的评价"
  10417. >
  10418. </el-input>
  10419. </div>
  10420. </div>
  10421. <span slot="footer" class="dialog-footer">
  10422. <el-button
  10423. @click="
  10424. (dialogVisibleScore = false),
  10425. (commentIndexJson = {}),
  10426. videoDetail.sources && videoDetail.sources[0]
  10427. ? (videoDetail.sources[0].src = '')
  10428. : ''
  10429. "
  10430. >取 消</el-button
  10431. >
  10432. <el-button
  10433. type="primary"
  10434. v-if="courseDetail.userid == userid"
  10435. @click="scoreWork(commentDetail.wid)"
  10436. >确 定
  10437. </el-button>
  10438. </span>
  10439. </el-dialog>
  10440. <el-dialog
  10441. title="排序"
  10442. :visible.sync="dialogVisibleSentence"
  10443. :append-to-body="true"
  10444. width="1000px"
  10445. :before-close="handleClose"
  10446. class="dialog_diy dialog_diy3"
  10447. >
  10448. <div>
  10449. <div class="sentenBox">
  10450. <div
  10451. v-for="(st, stIndex) in sentenceList"
  10452. :key="stIndex"
  10453. style="padding-bottom: 20px"
  10454. >
  10455. <div
  10456. style="padding: 15px 0 10px 20px"
  10457. class="sentenceTitle"
  10458. :index="stIndex + 1"
  10459. >
  10460. 题目{{ stIndex + 1 }}:请选择正确顺序
  10461. </div>
  10462. <div class="cardList" v-if="st.chooseSenList">
  10463. <div class="cardBox">
  10464. <div
  10465. v-for="(r, rIndex) in st.chooseSenList"
  10466. :key="rIndex"
  10467. @click="returnCard(r, stIndex, rIndex)"
  10468. >
  10469. <el-tooltip
  10470. class="item"
  10471. effect="light"
  10472. :content="r"
  10473. placement="top"
  10474. v-if="r != '' && r != undefined"
  10475. >
  10476. <div
  10477. :class="{
  10478. isCard: r,
  10479. isChooseCard: r == '' || r == undefined,
  10480. }"
  10481. >
  10482. <div>{{ r }}</div>
  10483. </div>
  10484. </el-tooltip>
  10485. <div
  10486. :class="{
  10487. isCard: r,
  10488. isChooseCard: r == '' || r == undefined,
  10489. }"
  10490. v-else
  10491. >
  10492. <div>{{ r }}</div>
  10493. </div>
  10494. </div>
  10495. </div>
  10496. </div>
  10497. <div class="cardList" v-if="st.addChangeSen">
  10498. <div class="cardBox">
  10499. <div
  10500. v-for="(s, sIndex) in st.addChangeSen"
  10501. :key="sIndex"
  10502. @click="setRightAnswer(s, stIndex, sIndex)"
  10503. >
  10504. <el-tooltip
  10505. class="item"
  10506. effect="light"
  10507. :content="s"
  10508. placement="top"
  10509. v-if="s != '' && s != undefined"
  10510. >
  10511. <div
  10512. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10513. >
  10514. <div>{{ s }}</div>
  10515. </div>
  10516. </el-tooltip>
  10517. <div
  10518. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10519. v-else
  10520. >
  10521. <div>{{ s }}</div>
  10522. </div>
  10523. </div>
  10524. </div>
  10525. </div>
  10526. </div>
  10527. </div>
  10528. </div>
  10529. <span slot="footer" class="dialog-footer">
  10530. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10531. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10532. </span>
  10533. </el-dialog>
  10534. <el-dialog
  10535. title="排序"
  10536. :visible.sync="dialogVisibleSentenceTeacher"
  10537. :append-to-body="true"
  10538. width="1000px"
  10539. :before-close="handleClose"
  10540. class="dialog_diy dialog_diy3"
  10541. >
  10542. <div>
  10543. <div class="w_name">
  10544. 学生姓名:<span>{{ sStudent.student }}</span>
  10545. </div>
  10546. <div class="sentenBox">
  10547. <div
  10548. v-for="(st, stIndex) in sentenceList"
  10549. :key="stIndex"
  10550. style="padding-bottom: 20px"
  10551. >
  10552. <div
  10553. style="padding: 15px 0 10px 20px"
  10554. class="sentenceTitle"
  10555. :index="stIndex + 1"
  10556. >
  10557. 题目{{ stIndex + 1 }}:请选择正确顺序
  10558. </div>
  10559. <div class="cardList" v-if="st.chooseSenList">
  10560. <div class="cardBox">
  10561. <div
  10562. v-for="(r, rIndex) in st.chooseSenList"
  10563. :key="rIndex"
  10564. @click="returnCard(r, stIndex, rIndex)"
  10565. >
  10566. <el-tooltip
  10567. class="item"
  10568. effect="light"
  10569. :content="r"
  10570. placement="top"
  10571. v-if="r != '' && r != undefined"
  10572. >
  10573. <div
  10574. :class="{
  10575. isCard: r,
  10576. isChooseCard: r == '' || r == undefined,
  10577. }"
  10578. >
  10579. <div>{{ r }}</div>
  10580. </div>
  10581. </el-tooltip>
  10582. <div
  10583. :class="{
  10584. isCard: r,
  10585. isChooseCard: r == '' || r == undefined,
  10586. }"
  10587. v-else
  10588. >
  10589. <div>{{ r }}</div>
  10590. </div>
  10591. </div>
  10592. </div>
  10593. </div>
  10594. <div class="cardList" v-if="st.addChangeSen">
  10595. <div class="cardBox">
  10596. <div
  10597. v-for="(s, sIndex) in st.addChangeSen"
  10598. :key="sIndex"
  10599. @click="setRightAnswer(s, stIndex, sIndex)"
  10600. >
  10601. <el-tooltip
  10602. class="item"
  10603. effect="light"
  10604. :content="s"
  10605. placement="top"
  10606. v-if="s != '' && s != undefined"
  10607. >
  10608. <div
  10609. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10610. >
  10611. <div>{{ s }}</div>
  10612. </div>
  10613. </el-tooltip>
  10614. <div
  10615. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10616. v-else
  10617. >
  10618. <div>{{ s }}</div>
  10619. </div>
  10620. </div>
  10621. </div>
  10622. </div>
  10623. </div>
  10624. </div>
  10625. </div>
  10626. <span slot="footer" class="dialog-footer">
  10627. <el-button @click="dialogVisibleSentenceTeacher = false"
  10628. >取 消</el-button
  10629. >
  10630. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10631. </span>
  10632. </el-dialog>
  10633. <el-dialog
  10634. title="排序"
  10635. :visible.sync="dialogVisibleSentence1"
  10636. :append-to-body="true"
  10637. width="1000px"
  10638. :before-close="handleClose"
  10639. class="dialog_diy dialog_diy3"
  10640. >
  10641. <div>
  10642. <div class="sentenBox">
  10643. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10644. {{ sentenceList1.stuName }}的作业
  10645. </div>
  10646. <div
  10647. v-for="(st, stIndex) in sentenceList1"
  10648. :key="stIndex"
  10649. style="padding-bottom: 20px"
  10650. >
  10651. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10652. 第{{ stIndex + 1 }}题
  10653. </div>
  10654. <div class="isWrong">
  10655. <div class="cardList1" v-if="st.chooseSenList">
  10656. <div class="cardBox">
  10657. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10658. <el-tooltip
  10659. class="item"
  10660. effect="light"
  10661. :content="s"
  10662. placement="top"
  10663. >
  10664. <div class="isCard">
  10665. <div>{{ s }}</div>
  10666. </div>
  10667. </el-tooltip>
  10668. </div>
  10669. </div>
  10670. <div class="cardAnswerBox">
  10671. 组成句子:{{ st.chooseSenList.join(" ") }}
  10672. </div>
  10673. </div>
  10674. <div v-if="tType == 2" class="isTj">
  10675. <div class="isTjImg">
  10676. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10677. </div>
  10678. <div>已提交</div>
  10679. </div>
  10680. <div
  10681. class="answerRight isTj"
  10682. v-if="
  10683. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10684. (tType == 1 || tType == 4)
  10685. "
  10686. >
  10687. <div class="isTjImg">
  10688. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10689. </div>
  10690. <div>回答正确</div>
  10691. </div>
  10692. <div
  10693. class="answerRight isTj"
  10694. v-if="
  10695. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10696. (tType == 1 || tType == 4)
  10697. "
  10698. >
  10699. <div class="isTjImg">
  10700. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10701. </div>
  10702. <div>回答错误</div>
  10703. </div>
  10704. </div>
  10705. <div
  10706. v-if="
  10707. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10708. (tType == 1 || tType == 4)
  10709. "
  10710. >
  10711. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10712. <div
  10713. class="cardList"
  10714. v-if="st.rightAnswer"
  10715. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10716. >
  10717. <div class="cardBox">
  10718. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10719. <el-tooltip
  10720. class="item"
  10721. effect="light"
  10722. :content="r"
  10723. placement="top"
  10724. >
  10725. <div class="isCard1">
  10726. <div>{{ r }}</div>
  10727. </div>
  10728. </el-tooltip>
  10729. </div>
  10730. </div>
  10731. <div class="cardAnswerBox">
  10732. 组成句子:{{ st.rightAnswer.join(" ") }}
  10733. </div>
  10734. </div>
  10735. </div>
  10736. </div>
  10737. </div>
  10738. </div>
  10739. <span slot="footer" class="dialog-footer">
  10740. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10741. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10742. >确 定</el-button
  10743. >
  10744. </span>
  10745. </el-dialog>
  10746. <el-dialog
  10747. title="教师提交作业"
  10748. :visible.sync="dialogVisibleWorks"
  10749. :append-to-body="true"
  10750. width="500px"
  10751. :before-close="handleClose"
  10752. class="dialog_change"
  10753. >
  10754. <div class="marginT">
  10755. <div class="w_name">
  10756. 学生姓名:<span>{{ sStudent.student }}</span>
  10757. </div>
  10758. <div>上传文件</div>
  10759. <div
  10760. class="chapter_add"
  10761. @click="addImg($event)"
  10762. v-if="studyJuri[0].cover.length == 0"
  10763. >
  10764. <div class="up_photo">
  10765. <img src="../../assets/uploadImg2.png" alt />
  10766. </div>
  10767. <!-- <input
  10768. type="file"
  10769. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10770. style="display: none"
  10771. @change="beforeUpload1($event, 1)"
  10772. /> -->
  10773. <input
  10774. type="file"
  10775. accept="*"
  10776. style="display: none"
  10777. @change="beforeUpload1($event, 1)"
  10778. />
  10779. </div>
  10780. <!-- capture="camera" -->
  10781. <div
  10782. class="chapter_add"
  10783. style="
  10784. display: flex;
  10785. width: 100%;
  10786. flex-direction: row;
  10787. flex-wrap: wrap;
  10788. justify-content: flex-start;
  10789. padding: 15px 0;
  10790. "
  10791. v-if="studyJuri[0].cover.length > 0"
  10792. >
  10793. <div class="upCover">
  10794. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10795. <img :src="word" alt v-else-if="fileType == 1" />
  10796. <img :src="video" alt v-else-if="fileType == 2" />
  10797. <img :src="word2" alt v-else-if="fileType == 3" />
  10798. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10799. <div class="deleteWord" @click="clean(1)">
  10800. <img src="../../assets/icon/deleteWorks.png" alt />
  10801. </div>
  10802. </div>
  10803. </div>
  10804. </div>
  10805. <div
  10806. class="upload_send"
  10807. @click="addCourseWorksTeacher(taskCount)"
  10808. v-if="!proVisible"
  10809. >
  10810. 提交
  10811. </div>
  10812. </el-dialog>
  10813. <ImgDraw
  10814. :drawShow="drawShow"
  10815. @closeDraw="closeDraw"
  10816. @addImgDraw="addImgDraw"
  10817. :bg="bg"
  10818. ></ImgDraw>
  10819. <el-dialog
  10820. title="表格"
  10821. :visible.sync="dialogVisibleTable"
  10822. :append-to-body="true"
  10823. width="95%"
  10824. :before-close="handleClose"
  10825. class="dialog_diy"
  10826. >
  10827. <el-form>
  10828. <div
  10829. style="
  10830. display: flex;
  10831. align-items: center;
  10832. justify-content: space-between;
  10833. "
  10834. >
  10835. <span>表格内容</span>
  10836. <el-button type="primary" size="small" @click="returnTableText"
  10837. >还原模板</el-button
  10838. >
  10839. </div>
  10840. <Table
  10841. v-model="tableJson.text"
  10842. @change="change"
  10843. v-if="dialogVisibleTable"
  10844. ></Table>
  10845. </el-form>
  10846. <span slot="footer" class="dialog-footer">
  10847. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10848. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10849. </span>
  10850. </el-dialog>
  10851. <el-dialog
  10852. title="表格"
  10853. :visible.sync="dialogVisibleTableTeacher"
  10854. :append-to-body="true"
  10855. width="95%"
  10856. :before-close="handleClose"
  10857. class="dialog_diy"
  10858. >
  10859. <el-form>
  10860. <div class="w_name">
  10861. 学生姓名:<span>{{ sStudent.student }}</span>
  10862. </div>
  10863. <div>表格内容</div>
  10864. <Table
  10865. v-model="tableJson.text"
  10866. @change="change"
  10867. v-if="dialogVisibleTableTeacher"
  10868. ></Table>
  10869. </el-form>
  10870. <span slot="footer" class="dialog-footer">
  10871. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10872. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10873. </span>
  10874. </el-dialog>
  10875. <el-dialog
  10876. title="文档"
  10877. :visible.sync="dialogVisibleWord"
  10878. :append-to-body="true"
  10879. width="95%"
  10880. :before-close="handleClose"
  10881. class="dialog_diy"
  10882. >
  10883. <el-form>
  10884. <div
  10885. style="
  10886. display: flex;
  10887. align-items: center;
  10888. justify-content: space-between;
  10889. "
  10890. >
  10891. <span>文档内容</span>
  10892. <el-button type="primary" size="small" @click="returnWordText"
  10893. >还原模板</el-button
  10894. >
  10895. </div>
  10896. <editor-bar
  10897. v-model="wordJson.text"
  10898. v-if="dialogVisibleWord"
  10899. ></editor-bar>
  10900. </el-form>
  10901. <span slot="footer" class="dialog-footer">
  10902. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10903. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10904. </span>
  10905. </el-dialog>
  10906. <el-dialog
  10907. title="文档"
  10908. :visible.sync="dialogVisibleWordTeacher"
  10909. :append-to-body="true"
  10910. width="95%"
  10911. :before-close="handleClose"
  10912. class="dialog_diy"
  10913. >
  10914. <el-form>
  10915. <div class="w_name">
  10916. 学生姓名:<span>{{ sStudent.student }}</span>
  10917. </div>
  10918. <div>文档内容</div>
  10919. <editor-bar
  10920. v-model="wordJson.text"
  10921. v-if="dialogVisibleWordTeacher"
  10922. ></editor-bar>
  10923. </el-form>
  10924. <span slot="footer" class="dialog-footer">
  10925. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10926. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10927. </span>
  10928. </el-dialog>
  10929. <el-dialog
  10930. title="表格"
  10931. :visible.sync="dialogVisibleTable2"
  10932. :append-to-body="true"
  10933. width="95%"
  10934. :before-close="handleClose"
  10935. class="dialog_diy"
  10936. >
  10937. <el-form>
  10938. <div class="cont" v-html="tableJson.text"></div>
  10939. </el-form>
  10940. <span slot="footer" class="dialog-footer">
  10941. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10942. </span>
  10943. </el-dialog>
  10944. <el-dialog
  10945. title="文档"
  10946. :visible.sync="dialogVisibleTable3"
  10947. :append-to-body="true"
  10948. width="95%"
  10949. :before-close="handleClose"
  10950. class="dialog_diy"
  10951. >
  10952. <el-form>
  10953. <div class="cont" v-html="tableJson.text"></div>
  10954. </el-form>
  10955. <span slot="footer" class="dialog-footer">
  10956. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10957. </span>
  10958. </el-dialog>
  10959. <el-dialog
  10960. title="分组设置"
  10961. :visible.sync="dialogVisibleGroup"
  10962. :append-to-body="true"
  10963. width="95%"
  10964. :before-close="handleClose"
  10965. class="dialog_diy"
  10966. >
  10967. <div v-if="dialogVisibleGroup">
  10968. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10969. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10970. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10971. </div>
  10972. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10973. @click="lockChair">
  10974. 锁定位置
  10975. </div>
  10976. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10977. 解锁位置
  10978. </div> -->
  10979. <div class="group_switch">
  10980. <span>开放选座</span>
  10981. <el-switch
  10982. v-model="islock"
  10983. active-text=""
  10984. class="switchCss"
  10985. @change="lockChair"
  10986. ></el-switch>
  10987. </div>
  10988. <div
  10989. type="primary"
  10990. @click="updateGroup"
  10991. class="returnBtn"
  10992. style="background-color: #225bc7"
  10993. >
  10994. 分组设置
  10995. </div>
  10996. </div>
  10997. <div>
  10998. <div
  10999. class="g_d_box"
  11000. v-if="groupJson.group && groupStudent[toolindex]"
  11001. >
  11002. <div
  11003. class="g_d_group"
  11004. v-for="(g, gindex) in groupJson.group"
  11005. :key="gindex"
  11006. >
  11007. <div class="g_d_group_chair">
  11008. <div v-if="groupJson.number > 1">
  11009. <span
  11010. :class="{
  11011. isChair:
  11012. groupStudent[toolindex][gindex] &&
  11013. groupStudent[toolindex][gindex][0],
  11014. updateChair:
  11015. courseDetail.userid == userid &&
  11016. groupStudent[toolindex][gindex] &&
  11017. groupStudent[toolindex][gindex][0] &&
  11018. groupJson.islock == 2,
  11019. }"
  11020. ><span
  11021. class="updateChairBtn"
  11022. @click="
  11023. updateGroupChair(
  11024. groupStudent[toolindex][gindex] &&
  11025. groupStudent[toolindex][gindex][0]
  11026. )
  11027. "
  11028. >修改</span
  11029. ></span
  11030. ><span>{{
  11031. groupStudent[toolindex][gindex] &&
  11032. groupStudent[toolindex][gindex][0]
  11033. ? groupStudent[toolindex][gindex] &&
  11034. groupStudent[toolindex][gindex][0].name
  11035. : "空位置"
  11036. }}</span>
  11037. </div>
  11038. <div v-if="groupJson.number > 4">
  11039. <span
  11040. :class="{
  11041. isChair:
  11042. groupStudent[toolindex][gindex] &&
  11043. groupStudent[toolindex][gindex][4],
  11044. updateChair:
  11045. courseDetail.userid == userid &&
  11046. groupStudent[toolindex][gindex] &&
  11047. groupStudent[toolindex][gindex][4] &&
  11048. groupJson.islock == 2,
  11049. }"
  11050. ><span
  11051. class="updateChairBtn"
  11052. @click="
  11053. updateGroupChair(
  11054. groupStudent[toolindex][gindex] &&
  11055. groupStudent[toolindex][gindex][4]
  11056. )
  11057. "
  11058. >修改</span
  11059. ></span
  11060. ><span>{{
  11061. groupStudent[toolindex][gindex] &&
  11062. groupStudent[toolindex][gindex][4]
  11063. ? groupStudent[toolindex][gindex] &&
  11064. groupStudent[toolindex][gindex][4].name
  11065. : "空位置"
  11066. }}</span>
  11067. </div>
  11068. <div v-if="groupJson.number > 8">
  11069. <span
  11070. :class="{
  11071. isChair:
  11072. groupStudent[toolindex][gindex] &&
  11073. groupStudent[toolindex][gindex][8],
  11074. updateChair:
  11075. courseDetail.userid == userid &&
  11076. groupStudent[toolindex][gindex] &&
  11077. groupStudent[toolindex][gindex][8] &&
  11078. groupJson.islock == 2,
  11079. }"
  11080. ><span
  11081. class="updateChairBtn"
  11082. @click="
  11083. updateGroupChair(
  11084. groupStudent[toolindex][gindex] &&
  11085. groupStudent[toolindex][gindex][8]
  11086. )
  11087. "
  11088. >修改</span
  11089. ></span
  11090. ><span>{{
  11091. groupStudent[toolindex][gindex] &&
  11092. groupStudent[toolindex][gindex][8]
  11093. ? groupStudent[toolindex][gindex] &&
  11094. groupStudent[toolindex][gindex][8].name
  11095. : "空位置"
  11096. }}</span>
  11097. </div>
  11098. </div>
  11099. <div class="g_d_group_tableBox">
  11100. <div class="g_d_group_chair2">
  11101. <div v-if="groupJson.number > 2">
  11102. <span
  11103. :class="{
  11104. isChair:
  11105. groupStudent[toolindex][gindex] &&
  11106. groupStudent[toolindex][gindex][2],
  11107. updateChair:
  11108. courseDetail.userid == userid &&
  11109. groupStudent[toolindex][gindex] &&
  11110. groupStudent[toolindex][gindex][2] &&
  11111. groupJson.islock == 2,
  11112. }"
  11113. ><span
  11114. class="updateChairBtn"
  11115. @click="
  11116. updateGroupChair(
  11117. groupStudent[toolindex][gindex] &&
  11118. groupStudent[toolindex][gindex][2]
  11119. )
  11120. "
  11121. >修改</span
  11122. ></span
  11123. ><span>{{
  11124. groupStudent[toolindex][gindex] &&
  11125. groupStudent[toolindex][gindex][2]
  11126. ? groupStudent[toolindex][gindex] &&
  11127. groupStudent[toolindex][gindex][2].name
  11128. : "空位置"
  11129. }}</span>
  11130. </div>
  11131. <div v-if="groupJson.number > 6">
  11132. <span
  11133. :class="{
  11134. isChair:
  11135. groupStudent[toolindex][gindex] &&
  11136. groupStudent[toolindex][gindex][6],
  11137. updateChair:
  11138. courseDetail.userid == userid &&
  11139. groupStudent[toolindex][gindex] &&
  11140. groupStudent[toolindex][gindex][6] &&
  11141. groupJson.islock == 2,
  11142. }"
  11143. ><span
  11144. class="updateChairBtn"
  11145. @click="
  11146. updateGroupChair(
  11147. groupStudent[toolindex][gindex] &&
  11148. groupStudent[toolindex][gindex][6]
  11149. )
  11150. "
  11151. >修改</span
  11152. ></span
  11153. ><span>{{
  11154. groupStudent[toolindex][gindex] &&
  11155. groupStudent[toolindex][gindex][6]
  11156. ? groupStudent[toolindex][gindex] &&
  11157. groupStudent[toolindex][gindex][6].name
  11158. : "空位置"
  11159. }}</span>
  11160. </div>
  11161. </div>
  11162. <div class="g_d_group_table">
  11163. <div>
  11164. {{ g.name }}
  11165. </div>
  11166. <div>
  11167. <div
  11168. v-if="
  11169. courseDetail.userid == userid && groupJson.islock == 2
  11170. "
  11171. @click="deleteGroupChair(gindex)"
  11172. >
  11173. 移除组员
  11174. </div>
  11175. <div
  11176. @click="selectGroup(gindex)"
  11177. v-else-if="
  11178. groupStudentUid[toolindex] &&
  11179. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11180. "
  11181. >
  11182. 加入分组
  11183. </div>
  11184. <div
  11185. @click="
  11186. exitGroup(
  11187. groupStudent[toolindex][gindex] &&
  11188. groupStudent[toolindex][gindex][
  11189. groupStudentUid[toolindex][gindex].indexOf(userid)
  11190. ].id
  11191. )
  11192. "
  11193. v-else-if="
  11194. groupStudentUid[toolindex] &&
  11195. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11196. "
  11197. >
  11198. 退出分组
  11199. </div>
  11200. </div>
  11201. </div>
  11202. <div class="g_d_group_chair2">
  11203. <div v-if="groupJson.number > 3">
  11204. <span
  11205. :class="{
  11206. isChair:
  11207. groupStudent[toolindex][gindex] &&
  11208. groupStudent[toolindex][gindex][3],
  11209. updateChair:
  11210. courseDetail.userid == userid &&
  11211. groupStudent[toolindex][gindex] &&
  11212. groupStudent[toolindex][gindex][3] &&
  11213. groupJson.islock == 2,
  11214. }"
  11215. ><span
  11216. class="updateChairBtn"
  11217. @click="
  11218. updateGroupChair(
  11219. groupStudent[toolindex][gindex] &&
  11220. groupStudent[toolindex][gindex][3]
  11221. )
  11222. "
  11223. >修改</span
  11224. ></span
  11225. ><span>{{
  11226. groupStudent[toolindex][gindex] &&
  11227. groupStudent[toolindex][gindex][3]
  11228. ? groupStudent[toolindex][gindex] &&
  11229. groupStudent[toolindex][gindex][3].name
  11230. : "空位置"
  11231. }}</span>
  11232. </div>
  11233. <div v-if="groupJson.number > 7">
  11234. <span
  11235. :class="{
  11236. isChair:
  11237. groupStudent[toolindex][gindex] &&
  11238. groupStudent[toolindex][gindex][7],
  11239. updateChair:
  11240. courseDetail.userid == userid &&
  11241. groupStudent[toolindex][gindex] &&
  11242. groupStudent[toolindex][gindex][7] &&
  11243. groupJson.islock == 2,
  11244. }"
  11245. ><span
  11246. class="updateChairBtn"
  11247. @click="
  11248. updateGroupChair(
  11249. groupStudent[toolindex][gindex] &&
  11250. groupStudent[toolindex][gindex][7]
  11251. )
  11252. "
  11253. >修改</span
  11254. ></span
  11255. ><span>{{
  11256. groupStudent[toolindex][gindex] &&
  11257. groupStudent[toolindex][gindex][7]
  11258. ? groupStudent[toolindex][gindex] &&
  11259. groupStudent[toolindex][gindex][7].name
  11260. : "空位置"
  11261. }}</span>
  11262. </div>
  11263. </div>
  11264. </div>
  11265. <div class="g_d_group_chair">
  11266. <div v-if="groupJson.number > 1">
  11267. <span
  11268. :class="{
  11269. isChair:
  11270. groupStudent[toolindex][gindex] &&
  11271. groupStudent[toolindex][gindex][1],
  11272. updateChair:
  11273. courseDetail.userid == userid &&
  11274. groupStudent[toolindex][gindex] &&
  11275. groupStudent[toolindex][gindex][1] &&
  11276. groupJson.islock == 2,
  11277. }"
  11278. ><span
  11279. class="updateChairBtn"
  11280. @click="
  11281. updateGroupChair(
  11282. groupStudent[toolindex][gindex] &&
  11283. groupStudent[toolindex][gindex][1]
  11284. )
  11285. "
  11286. >修改</span
  11287. ></span
  11288. ><span>{{
  11289. groupStudent[toolindex][gindex] &&
  11290. groupStudent[toolindex][gindex][1]
  11291. ? groupStudent[toolindex][gindex] &&
  11292. groupStudent[toolindex][gindex][1].name
  11293. : "空位置"
  11294. }}</span>
  11295. </div>
  11296. <div v-if="groupJson.number > 5">
  11297. <span
  11298. :class="{
  11299. isChair:
  11300. groupStudent[toolindex][gindex] &&
  11301. groupStudent[toolindex][gindex][5],
  11302. updateChair:
  11303. courseDetail.userid == userid &&
  11304. groupStudent[toolindex][gindex] &&
  11305. groupStudent[toolindex][gindex][5] &&
  11306. groupJson.islock == 2,
  11307. }"
  11308. ><span
  11309. class="updateChairBtn"
  11310. @click="
  11311. updateGroupChair(
  11312. groupStudent[toolindex][gindex] &&
  11313. groupStudent[toolindex][gindex][5]
  11314. )
  11315. "
  11316. >修改</span
  11317. ></span
  11318. ><span>{{
  11319. groupStudent[toolindex][gindex] &&
  11320. groupStudent[toolindex][gindex][5]
  11321. ? groupStudent[toolindex][gindex] &&
  11322. groupStudent[toolindex][gindex][5].name
  11323. : "空位置"
  11324. }}</span>
  11325. </div>
  11326. <div v-if="groupJson.number > 9">
  11327. <span
  11328. :class="{
  11329. isChair:
  11330. groupStudent[toolindex][gindex] &&
  11331. groupStudent[toolindex][gindex][9],
  11332. updateChair:
  11333. courseDetail.userid == userid &&
  11334. groupStudent[toolindex][gindex] &&
  11335. groupStudent[toolindex][gindex][9] &&
  11336. groupJson.islock == 2,
  11337. }"
  11338. ><span
  11339. class="updateChairBtn"
  11340. @click="
  11341. updateGroupChair(
  11342. groupStudent[toolindex][gindex] &&
  11343. groupStudent[toolindex][gindex][9]
  11344. )
  11345. "
  11346. >修改</span
  11347. ></span
  11348. ><span>{{
  11349. groupStudent[toolindex][gindex] &&
  11350. groupStudent[toolindex][gindex][9]
  11351. ? groupStudent[toolindex][gindex] &&
  11352. groupStudent[toolindex][gindex][9].name
  11353. : "空位置"
  11354. }}</span>
  11355. </div>
  11356. </div>
  11357. </div>
  11358. </div>
  11359. </div>
  11360. </div>
  11361. <span slot="footer" class="dialog-footer">
  11362. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11363. </span>
  11364. </el-dialog>
  11365. <el-dialog
  11366. title="分组设置"
  11367. :visible.sync="dialogVisibleGroup2"
  11368. :append-to-body="true"
  11369. width="650px"
  11370. :before-close="handleClose"
  11371. class="dialog_diy"
  11372. >
  11373. <div class="groupBox">
  11374. <div v-if="groupJson2.group" class="groupContent">
  11375. <div class="groupTitle">请设置小组数量及名称</div>
  11376. <div
  11377. v-for="(item, index) in groupJson2.group"
  11378. :key="index"
  11379. class="groupName"
  11380. >
  11381. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11382. <el-input
  11383. v-model="item.name"
  11384. placeholder="请输入名称..."
  11385. style="width: 250px"
  11386. ></el-input>
  11387. <!-- <div class="groupBtn">
  11388. <el-button type="primary" size="small" @click="addGroup(index)">
  11389. 添加</el-button>
  11390. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11391. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11392. </div> -->
  11393. </div>
  11394. </div>
  11395. <div class="groupContent">
  11396. <div class="groupTitle">请设置每组人数</div>
  11397. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11398. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11399. <el-input
  11400. v-model="groupJson.number"
  11401. style="width: 150px"
  11402. placeholder="请输入2-10的数字"
  11403. @change="numberPan"
  11404. ></el-input>
  11405. </div>
  11406. </div>
  11407. <span slot="footer" class="dialog-footer">
  11408. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11409. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11410. </span>
  11411. </el-dialog>
  11412. <el-dialog
  11413. title="作业提交"
  11414. :visible.sync="dialogVisibleGroupWork"
  11415. :append-to-body="true"
  11416. width="500px"
  11417. :before-close="handleClose"
  11418. class="dialog_change"
  11419. >
  11420. <div class="marginT">
  11421. <div>上传文件</div>
  11422. <div
  11423. class="chapter_add"
  11424. @click="addImg($event)"
  11425. v-if="studyJuri[0].cover.length == 0"
  11426. >
  11427. <div class="up_photo">
  11428. <img src="../../assets/icon/uploadImg.png" alt />
  11429. </div>
  11430. <!-- <input
  11431. type="file"
  11432. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11433. style="display: none"
  11434. @change="beforeUpload1($event, 1)"
  11435. /> -->
  11436. <input
  11437. type="file"
  11438. accept="*"
  11439. style="display: none"
  11440. @change="beforeUpload1($event, 1)"
  11441. />
  11442. </div>
  11443. <!-- capture="camera" -->
  11444. <div
  11445. class="chapter_add"
  11446. style="
  11447. display: flex;
  11448. width: 100%;
  11449. flex-direction: row;
  11450. flex-wrap: wrap;
  11451. justify-content: flex-start;
  11452. padding: 15px 0;
  11453. "
  11454. v-if="studyJuri[0].cover.length > 0"
  11455. >
  11456. <div class="upCover">
  11457. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11458. <img :src="word" alt v-else-if="fileType == 1" />
  11459. <img :src="video" alt v-else-if="fileType == 2" />
  11460. <img :src="word2" alt v-else-if="fileType == 3" />
  11461. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11462. <div class="deleteWord" @click="clean(1)">
  11463. <img src="../../assets/icon/deleteWorks.png" alt />
  11464. </div>
  11465. </div>
  11466. </div>
  11467. </div>
  11468. <div
  11469. class="upload_send"
  11470. @click="addCourseWorks2(taskCount)"
  11471. v-if="!proVisible"
  11472. >
  11473. 提交
  11474. </div>
  11475. </el-dialog>
  11476. <el-dialog
  11477. title="修改分组"
  11478. :visible.sync="dialogVisibleUpdateGroup"
  11479. :append-to-body="true"
  11480. width="350px"
  11481. :before-close="handleClose"
  11482. class="dialog_diy"
  11483. >
  11484. <div>
  11485. <h2>
  11486. {{ this.updateGroupUser.name }}
  11487. </h2>
  11488. <div style="color: rgb(171 171 171); margin-top: 10px">
  11489. 请选择要进入的分组
  11490. </div>
  11491. <el-radio-group v-model="checkChair">
  11492. <el-radio
  11493. style="display: block; margin-top: 20px"
  11494. v-for="(item, index) in updateGroupArray"
  11495. :label="item.label"
  11496. :key="index"
  11497. >{{ item.name }}</el-radio
  11498. >
  11499. </el-radio-group>
  11500. </div>
  11501. <span slot="footer" class="dialog-footer">
  11502. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11503. <el-button type="primary" @click="updateChair">确定</el-button>
  11504. </span>
  11505. </el-dialog>
  11506. <el-dialog
  11507. title="移除组员"
  11508. :visible.sync="dialogVisibleDeleteGroup"
  11509. :append-to-body="true"
  11510. width="350px"
  11511. :before-close="handleClose"
  11512. class="dialog_diy"
  11513. >
  11514. <div>
  11515. <h2>
  11516. {{ this.deleteGroupArray.name }}
  11517. </h2>
  11518. <div style="color: rgb(171 171 171); margin-top: 10px">
  11519. 请选择要删除的组员
  11520. </div>
  11521. <el-checkbox-group v-model="checkDeleteGroup">
  11522. <el-checkbox
  11523. style="display: flex; margin-top: 20px"
  11524. v-for="(item, index) in deleteGroupUser"
  11525. :label="item.userid"
  11526. :key="index"
  11527. >{{ item.name }}</el-checkbox
  11528. >
  11529. </el-checkbox-group>
  11530. </div>
  11531. <span slot="footer" class="dialog-footer">
  11532. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11533. <el-button type="primary" @click="deleteChair">确定</el-button>
  11534. </span>
  11535. </el-dialog>
  11536. <el-dialog
  11537. title="批量上传"
  11538. :visible.sync="dialogVisiblePl"
  11539. :append-to-body="true"
  11540. width="700px"
  11541. :before-close="handleClose"
  11542. class="dialog_change"
  11543. >
  11544. <div class="marginT">
  11545. <div class="plworkBox">
  11546. <div
  11547. class="chapter_add"
  11548. style="
  11549. display: flex;
  11550. width: 150px;
  11551. flex-direction: row;
  11552. flex-wrap: wrap;
  11553. justify-content: flex-start;
  11554. margin: 0 10px 10px 0;
  11555. "
  11556. v-for="(item, index) in plworkFile"
  11557. :key="index"
  11558. >
  11559. <div class="upCover2">
  11560. <img
  11561. :src="item.url"
  11562. alt
  11563. v-if="item.fileType == 1"
  11564. @click="previewImg(item.url)"
  11565. />
  11566. <img :src="word" alt v-else-if="item.fileType == 4" />
  11567. <img :src="video" alt v-else />
  11568. <!-- <span class="picName">{{ item.name }}</span> -->
  11569. <!-- <el-input
  11570. v-model="item.username"
  11571. placeholder="请输入学生名字"
  11572. style="margin-top: 10px"
  11573. ></el-input> -->
  11574. <div
  11575. class="pl_select_box"
  11576. @click="
  11577. getUpdateMore(true, checkUpload(), item.username, index)
  11578. "
  11579. >
  11580. {{ getSName(item.username) }}
  11581. </div>
  11582. <!-- <el-select
  11583. style="margin-top: 10px"
  11584. v-model="item.username"
  11585. filterable
  11586. allow-create
  11587. placeholder="请选择学生"
  11588. >
  11589. <el-option
  11590. v-for="item1 in checkUpload()"
  11591. :key="item1.userid"
  11592. :label="item1.name ? item1.name : item1.username"
  11593. :value="item1.userid"
  11594. >
  11595. </el-option>
  11596. </el-select> -->
  11597. <div class="deleteWord" @click="clean2(index)">
  11598. <img src="../../assets/icon/deleteWorks.png" alt />
  11599. </div>
  11600. </div>
  11601. </div>
  11602. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11603. <div class="up_photo2">
  11604. <img src="../../assets/icon/plwork.png" alt />
  11605. <span>点击上传文件</span>
  11606. </div>
  11607. <input
  11608. type="file"
  11609. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11610. multiple="multiple"
  11611. style="display: none"
  11612. @change="beforeUpload3($event, 6)"
  11613. />
  11614. </div>
  11615. </div>
  11616. </div>
  11617. <!-- capture="camera" -->
  11618. <div
  11619. class="upload_send"
  11620. @click="addCourseWorksPl(taskCount)"
  11621. v-if="!proVisible2"
  11622. >
  11623. 提交
  11624. </div>
  11625. </el-dialog>
  11626. <el-dialog
  11627. title="修改名称"
  11628. :visible.sync="dialogVisibleSname"
  11629. width="500px"
  11630. :before-close="handleClose"
  11631. class="dialog_diy"
  11632. center
  11633. >
  11634. <div
  11635. style="
  11636. text-align: center;
  11637. display: flex;
  11638. align-items: center;
  11639. justify-content: center;
  11640. "
  11641. >
  11642. <span class="tian1">名称</span>
  11643. <div
  11644. class="pl_select_box"
  11645. style="margin-left: 10px; width: 200px"
  11646. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11647. >
  11648. {{ getSName(worksSName) }}
  11649. </div>
  11650. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11651. placeholder="请选择学生">
  11652. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11653. :value="item.userid">
  11654. </el-option>
  11655. </el-select> -->
  11656. <!-- <el-input
  11657. v-model="worksSName"
  11658. style="width: 250px; margin: 15px 0px"
  11659. ></el-input> -->
  11660. </div>
  11661. <span slot="footer" class="dialog-footer">
  11662. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11663. <el-button type="primary" @click="updateName">确 定</el-button>
  11664. </span>
  11665. </el-dialog>
  11666. <el-dialog
  11667. title="英语写作"
  11668. :visible.sync="engDialogVisible"
  11669. :append-to-body="true"
  11670. width="800px"
  11671. :before-close="handleClose"
  11672. class="dialog_diy"
  11673. >
  11674. <onlineWrite
  11675. v-if="engDialogVisible"
  11676. :englishList="englishList"
  11677. :myAnswerList1="myAnswerList1"
  11678. ref="engJson"
  11679. ></onlineWrite>
  11680. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11681. <el-button @click="engDialogVisible = false">取 消</el-button>
  11682. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11683. </span>
  11684. </el-dialog>
  11685. <el-dialog
  11686. title="英语写作"
  11687. :visible.sync="engUpdateDialogVisible"
  11688. :append-to-body="true"
  11689. width="800px"
  11690. :before-close="handleClose"
  11691. class="dialog_diy fullStyle"
  11692. >
  11693. <div class="engUpBox">
  11694. <div class="engUpTop">
  11695. <div class="engTitle">
  11696. <div>作文题目:</div>
  11697. <div>{{ englishList1.engTitle }}</div>
  11698. </div>
  11699. <div class="engText">
  11700. <div>作文内容:</div>
  11701. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11702. </div>
  11703. </div>
  11704. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11705. <div class="oldBox">
  11706. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11707. <div class="oldText">
  11708. <div class="detailBox">
  11709. <div class="oldDetail">
  11710. <div>标题:</div>
  11711. <div>{{ oldEnglishJson.engTitle }} </div>
  11712. </div>
  11713. <div class="oldDetail1">
  11714. <div>正文:</div>
  11715. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11716. </div>
  11717. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11718. <div>图片:</div>
  11719. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11720. </div>
  11721. </div>
  11722. </div>
  11723. </div>
  11724. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11725. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11726. <div class="oldText">
  11727. <div class="detailBox" style="position: relative;">
  11728. <div class="oldDetail">
  11729. <div>标题:</div>
  11730. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11731. <div v-else v-html="newEnglishList.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="newEnglishList.engText" @input="gx"/>
  11736. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11737. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div> -->
  11738. </div>
  11739. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11740. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11741. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11742. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11743. </div>
  11744. </div>
  11745. </div>
  11746. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11747. <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">
  11748. <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>
  11749. <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>
  11750. </div>
  11751. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11752. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11753. <div class="detailBox" style="position: relative;">
  11754. <div class="oldDetail">
  11755. <div>标题:</div>
  11756. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11757. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11758. </div>
  11759. <div class="oldDetail">
  11760. <div>正文:</div>
  11761. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11762. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11763. </div>
  11764. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11765. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11766. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11767. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11768. </div>
  11769. </div>
  11770. <div class="oldText" v-else-if="newEngIndex == -1">
  11771. <div class="detailBox" style="position: relative;">
  11772. <div class="oldDetail">
  11773. <div>标题:</div>
  11774. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11775. <div v-else v-html="newEnglishList.engTitle"></div>
  11776. </div>
  11777. <div class="oldDetail">
  11778. <div>正文:</div>
  11779. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11780. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11781. </div>
  11782. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11783. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11784. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11785. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11786. </div>
  11787. </div>
  11788. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11789. <div class="detailBox" style="position: relative;">
  11790. <div class="oldDetail">
  11791. <div>标题:</div>
  11792. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11793. <div v-else>
  11794. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  11795. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11796. </div>
  11797. </div>
  11798. <div class="oldDetail">
  11799. <div>正文:</div>
  11800. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11801. <div v-else>
  11802. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11803. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11804. </div>
  11805. </div>
  11806. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11807. <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>
  11808. <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>
  11809. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11810. </div>
  11811. </div>
  11812. </div>
  11813. </div>
  11814. </div>
  11815. <span slot="footer" class="dialog-footer">
  11816. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11817. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11818. </span>
  11819. </el-dialog>
  11820. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11821. <interVideo
  11822. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11823. :videoJson="videoJson"
  11824. :userid="userid"
  11825. :id="id"
  11826. :courseType="courseType"
  11827. :taskCount="taskCount"
  11828. :toolindex="toolindex"
  11829. :videoType="videoType"
  11830. ></interVideo>
  11831. <UpdateMore
  11832. :dialogVisibleMember.sync="dialogVisibleMember"
  11833. :cList="uploadStudentJuri"
  11834. :userid="userid"
  11835. :searchTN="worksSName2"
  11836. @setPlname="setPlname"
  11837. ></UpdateMore>
  11838. <wordCloud
  11839. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11840. :data="wordCloudData"
  11841. ></wordCloud>
  11842. <el-dialog
  11843. title="挑人"
  11844. :visible.sync="dialogVisiblePickPeople"
  11845. width="650px"
  11846. :before-close="handleClose"
  11847. class="dialog_diy"
  11848. center
  11849. >
  11850. <div class="pick_box">
  11851. <div
  11852. class="noWorksName"
  11853. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11854. v-for="(item, index) in uploadStudentJuri"
  11855. :key="index"
  11856. @click="pickStudent(item)"
  11857. >
  11858. {{ item.name }}
  11859. </div>
  11860. </div>
  11861. </el-dialog>
  11862. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11863. :englishVoiceJson='englishVoiceJson'
  11864. :userid="userid"
  11865. :id="id"
  11866. :courseType="courseType"
  11867. :taskCount="taskCount"
  11868. :toolindex="toolindex"
  11869. @selectSWorks="selectSWorks"
  11870. @selectStudent="selectStudent"
  11871. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11872. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11873. :userid="userid"
  11874. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11875. :commentDetail="commentDetail"
  11876. :courseDetail="courseDetail"
  11877. :wScore="wScore"
  11878. :scoreDetail="scoreDetail"
  11879. @selectSWorks="selectSWorks"
  11880. @selectStudent="selectStudent"></checkEnglishVoice>
  11881. </div>
  11882. </template>
  11883. <script>
  11884. import "../../common/aws-sdk-2.235.1.min.js";
  11885. // import pdf from "../components/pdf3";
  11886. import pdf from "../components/vpdf";
  11887. import AskStatic from "../components/askStatic";
  11888. import AskStatic2 from "../components/askStatic2";
  11889. import AnswerData2 from "../components/answerData2";
  11890. import AnswerData from "../components/answerData";
  11891. import EditorBar from "../tools/wangEnduit.vue";
  11892. import Table from "../tools/table.vue";
  11893. import Time from "../tools/time.vue";
  11894. import Mind from "../tools/jsmind.vue";
  11895. import Sunburst from "../tools/sunburst";
  11896. import SeeBoard from "../tools/seeBoard";
  11897. import * as imageConversion from "image-conversion";
  11898. import Audio from "../components/audio.vue";
  11899. import ImgDraw from "../tools/imgDraw/imgDraw";
  11900. import { Empty } from "element-ui";
  11901. import RecordRTC from "recordrtc";
  11902. import interVideo from "../interVideo/index.vue";
  11903. import UpdateMore from "../updateMore/updateMore.vue";
  11904. import wordCloud from "../wordCloud/index.vue";
  11905. import axios from "axios";
  11906. import JSZip from "jszip";
  11907. import FileSaver from "file-saver";
  11908. import onlineWrite from "./commpont/onlineWrite";
  11909. import englishEva from "../components/englishEva";
  11910. import * as Diff from 'diff'
  11911. import EnglishVoice from '../EnglishVoice2/index.vue'
  11912. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  11913. import correctText from '../components/correctText.vue'
  11914. import scoreItem from '../scoreList/scoreItem.vue'
  11915. import scoreZong from '../scoreZong/index.vue'
  11916. import classRoomHelper from '../classRoomHelper/index.vue'
  11917. const getFile = (url) => {
  11918. return new Promise((resolve, reject) => {
  11919. var credentials = {
  11920. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11921. secretAccessKey: "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",
  11922. }; //秘钥形式的登录上传
  11923. window.AWS.config.update(credentials);
  11924. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11925. let url2 = url;
  11926. let _url2 = "";
  11927. if (
  11928. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11929. ) {
  11930. _url2 = url2.split(
  11931. "https://view.officeapps.live.com/op/view.aspx?src="
  11932. )[1];
  11933. } else {
  11934. _url2 = url2;
  11935. }
  11936. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11937. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11938. var params = {
  11939. Bucket: "ccrb",
  11940. Key: name
  11941. };
  11942. s3.getObject(params, function (err, data) {
  11943. if (err) {
  11944. console.log(err, err.stack)
  11945. resolve({ data: 1 });
  11946. }else {
  11947. resolve({ data: data.Body });
  11948. console.log(data);
  11949. } // sxuccessful response
  11950. });
  11951. // axios({
  11952. // method: "get",
  11953. // url,
  11954. // responseType: "blob",
  11955. // })
  11956. // .then((data) => {
  11957. // resolve({ data: data.data });
  11958. // })
  11959. // .catch((error) => {
  11960. // resolve({ data: 1 });
  11961. // // reject(error.toString());
  11962. // });
  11963. });
  11964. };
  11965. export default {
  11966. components: {
  11967. EditorBar,
  11968. Time,
  11969. pdf,
  11970. AskStatic,
  11971. AskStatic2,
  11972. Mind,
  11973. Sunburst,
  11974. SeeBoard,
  11975. AnswerData2,
  11976. AnswerData,
  11977. Audio,
  11978. ImgDraw,
  11979. Table,
  11980. interVideo,
  11981. UpdateMore,
  11982. wordCloud,
  11983. onlineWrite,
  11984. englishEva,
  11985. EnglishVoice,
  11986. checkEnglishVoice,
  11987. correctText,
  11988. scoreItem,
  11989. classRoomHelper,
  11990. scoreZong
  11991. },
  11992. data() {
  11993. return {
  11994. bg: null,
  11995. drawShow: false,
  11996. dialogVisible: false,
  11997. dialogVisiblePl: false,
  11998. commentDialogVisible: false,
  11999. dialogVisibleMember: false,
  12000. dialogVisibleWordCloud: false,
  12001. videoVisible: false,
  12002. isStar: false,
  12003. studentEvalDialogVisible: false,
  12004. studentEvalDialogVisibleTeacher: false,
  12005. dialogVisibleSelect: false,
  12006. dialogVisibleSelectTeacher: false,
  12007. dialogVisibleScore: false,
  12008. dialogVisibleENScore: false,
  12009. dialogVisibleSentence: false,
  12010. dialogVisibleSentenceTeacher: false,
  12011. dialogVisibleSentence1: false,
  12012. dialogVisibleWorks: false,
  12013. dialogVisibleTable: false,
  12014. dialogVisibleTableTeacher: false,
  12015. dialogVisibleWord: false,
  12016. dialogVisibleWordTeacher: false,
  12017. dialogVisibleTable2: false,
  12018. dialogVisibleTable3: false,
  12019. dialogVisibleGroupWork: false,
  12020. dialogVisibleUpdateGroup: false,
  12021. dialogVisibleDeleteGroup: false,
  12022. dialogVisibleSname: false,
  12023. dialogVisibleVideo: false,
  12024. dialogVisiblePickPeople: false,
  12025. engDialogVisible: false,
  12026. engUpdateDialogVisible:false,
  12027. engEvaDialogVisible: false,
  12028. evaEngJson: {
  12029. teacherJson: {},
  12030. studentJson: {},
  12031. message: {},
  12032. },
  12033. isNoUserid:false,
  12034. engListLength:0,
  12035. engWid:"",
  12036. newEnglishList:{
  12037. engTitle:"",
  12038. engText:"",
  12039. },
  12040. newEnglishList1:[],
  12041. oldEnglishJson:{},
  12042. oldEnglishJson1:{},
  12043. englishList1:{},
  12044. englishList:{},
  12045. myAnswerList1:{},
  12046. topHeight:0,
  12047. newEngIndex:-1,
  12048. englishToolIndex:0,
  12049. userMes:{},
  12050. englishToolIndex:0,
  12051. worksSName: "",
  12052. classJuri: [],
  12053. uploadStudentJuri: [],
  12054. uploadCid: "",
  12055. snameWid: "",
  12056. sStudent: {},
  12057. sTool: "",
  12058. bzText: "",
  12059. commentDetail: [],
  12060. selectAnswer: [],
  12061. videoDetail: {},
  12062. selectJson: {},
  12063. englishList: {},
  12064. topHeight:0,
  12065. eScore: { eBzText: "", eStar: [] },
  12066. id: this.$route.query.courseId,
  12067. userid: this.$route.query.userid,
  12068. classId: this.$route.query.cid,
  12069. // courseTypeLine: this.$route.query.type,
  12070. oid: this.$route.query.oid,
  12071. org: this.$route.query.org,
  12072. tType: this.$route.query.tType,
  12073. courseType: this.$route.query.type,
  12074. screenType: this.$route.query.screenType,
  12075. tcid2: this.$route.query.tcid,
  12076. tcid: "",
  12077. pptImgUrl: "",
  12078. pptImgUrl1: "",
  12079. commentText: "",
  12080. full: false,
  12081. sIsOpen: false,
  12082. IsLookOpen: false,
  12083. IsFollow: false,
  12084. pzDialog: false,
  12085. contentDialog: false,
  12086. mlDialog: false,
  12087. type: 1,
  12088. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12089. sentenceList1: [],
  12090. tableJson: [],
  12091. tableJsonO: [],
  12092. wordJson: [],
  12093. wordJsonO: [],
  12094. vedio: [],
  12095. text: [],
  12096. textList: [],
  12097. line: [],
  12098. lineList: [],
  12099. chapTools: [],
  12100. chapToolList: [],
  12101. file: [],
  12102. fileC: [],
  12103. vedioTime: [],
  12104. upToolImg: "",
  12105. preTime: 0,
  12106. rateList: {
  12107. ca: 0,
  12108. },
  12109. rateParams: [],
  12110. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12111. studyJuri: [
  12112. {
  12113. content: "",
  12114. cover: [],
  12115. upVedio: [],
  12116. upFile: [],
  12117. },
  12118. ],
  12119. isClose: 0,
  12120. plworkFile: [],
  12121. mr: require("../../assets/vedioPic.png"),
  12122. word: require("../../assets/icon/isWord.png"),
  12123. word2: require("../../assets/icon/word2.png"),
  12124. video: require("../../assets/icon/isVideo.png"),
  12125. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12126. likes: require("../../assets/icon/comment/likes.png"),
  12127. scoreImg: require("../../assets/score.png"),
  12128. courseDetail: {},
  12129. reply: "",
  12130. isSelect: false,
  12131. chapInfo: [],
  12132. chapInfoList: [],
  12133. taskCount: 0,
  12134. imgList: [],
  12135. noImgList: [],
  12136. pzList: [],
  12137. timeWorkList: [],
  12138. PlTextList: [
  12139. "Excellent!",
  12140. "nice!",
  12141. "很有创意!",
  12142. "还不错哦~",
  12143. "继续努力哦~",
  12144. ],
  12145. isClickNav: "",
  12146. navId: "",
  12147. playerOptions: {
  12148. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12149. autoplay: false, //如果true,浏览器准备好时开始回放。
  12150. muted: false, // 默认情况下将会消除任何音频。
  12151. loop: false, // 导致视频一结束就重新开始。
  12152. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12153. language: "zh-CN",
  12154. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12155. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12156. sources: [
  12157. {
  12158. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12159. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12160. },
  12161. ],
  12162. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12163. // poster: dataRes.imgUrl, //你的封面地址
  12164. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12165. controlBar: {
  12166. timeDivider: true, //当前时间和持续时间的分隔符
  12167. durationDisplay: true, //显示持续时间
  12168. remainingTimeDisplay: false, //是否显示剩余时间功能
  12169. fullscreenToggle: true, //全屏按钮
  12170. },
  12171. },
  12172. playerOptions1: {
  12173. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12174. autoplay: false, //如果true,浏览器准备好时开始回放。
  12175. muted: false, // 默认情况下将会消除任何音频。
  12176. loop: false, // 导致视频一结束就重新开始。
  12177. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12178. language: "zh-CN",
  12179. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12180. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12181. sources: [
  12182. {
  12183. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12184. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12185. },
  12186. ],
  12187. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12188. // poster: dataRes.imgUrl, //你的封面地址
  12189. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12190. controlBar: {
  12191. timeDivider: true, //当前时间和持续时间的分隔符
  12192. durationDisplay: true, //显示持续时间
  12193. remainingTimeDisplay: false, //是否显示剩余时间功能
  12194. fullscreenToggle: true, //全屏按钮
  12195. },
  12196. },
  12197. playerO: {},
  12198. noneBtnImg: false,
  12199. proVisible: false,
  12200. proVisible2: false,
  12201. progress: 0,
  12202. isFinishSize: 0,
  12203. isAllSize: 0,
  12204. questionAnswer: "",
  12205. answerQ: "", //问答标题
  12206. rateJson: [],
  12207. wbCount: 0,
  12208. wordCount: 0,
  12209. mindCount: 0,
  12210. askCount: 0,
  12211. noteCount: 0,
  12212. mindNetWorkCount: 0,
  12213. libraryCount: 0,
  12214. workCount: 0,
  12215. timeCount: 0,
  12216. answerCount: 0,
  12217. trainCount: 0,
  12218. evalCount: 0,
  12219. dialogImageUrl: "",
  12220. pictureDialog: false,
  12221. toolTypeList: [],
  12222. dialogVisible1: false,
  12223. dialogVisible2: false,
  12224. dialogVisible3: false,
  12225. dialogVisible6: false,
  12226. dialogVisible4: false,
  12227. isNoHomeWork: false,
  12228. dialogVisible5: false,
  12229. dialogVisible5Teacher: false,
  12230. dialogVisibleChoice: false,
  12231. dialogVisibleChoiceTeacher: false,
  12232. answerDialogVisible: false,
  12233. answerDialogVisibleTeacher: false,
  12234. juriVisible: false,
  12235. timeDialogVisible: false,
  12236. replyDialogVisible: false,
  12237. toolDialogVisible: false,
  12238. replyIndex: 0,
  12239. replyPid: "",
  12240. radio: [],
  12241. isAsk: false,
  12242. askJson: {
  12243. askCount: 1,
  12244. askTitle: "",
  12245. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12246. },
  12247. testJson: {},
  12248. videoType:0,
  12249. checkJson: [],
  12250. askList: [],
  12251. answerList: [],
  12252. navList: [],
  12253. addPzDialog: false,
  12254. pzConText: "",
  12255. worksStudent: [],
  12256. isCloseList: [],
  12257. workStudent: [],
  12258. groupStudent: [],
  12259. groupStudentUid: [],
  12260. noWorksS: [],
  12261. isWorksS: [],
  12262. noWorksStudent: [],
  12263. toolindex: 0,
  12264. toolDetailIndex: null,
  12265. groupIndex: 0,
  12266. workTypeB: false,
  12267. workTypeC: false,
  12268. isAnswer: false,
  12269. isHovered: false,
  12270. isHovered1: false,
  12271. isHovered2: false,
  12272. commentTagShow:0,
  12273. timer: null,
  12274. opertimer: null,
  12275. showType: 0,
  12276. fileType: 0,
  12277. showPDF: false,
  12278. noteName: "",
  12279. evaJuri: [],
  12280. evalua: "",
  12281. eTitle: "",
  12282. eName: "",
  12283. eJson: {},
  12284. fid: "", //一级
  12285. sid: "", //二级
  12286. tid: "", //二级
  12287. typeMode: 1,
  12288. eJSONNum: 0,
  12289. Etype: 1,
  12290. data: {
  12291. meta: {
  12292. name: "example",
  12293. author: "dd@163.com",
  12294. version: "0.2",
  12295. },
  12296. format: "node_array",
  12297. data: [{ id: "root", isroot: true, topic: "" }],
  12298. },
  12299. fullDialogVisible: false,
  12300. fulltype: "",
  12301. fullUrl: "",
  12302. commentIndexJson: {},
  12303. Stbodywidth: 0,
  12304. ispzType: 0,
  12305. pzType: 1,
  12306. wScore: 0,
  12307. scoreDetail: "",
  12308. videoStart: false,
  12309. recorder: null,
  12310. groupJson: {},
  12311. islock: false,
  12312. groupJson2: {},
  12313. dialogVisibleGroup: false,
  12314. dialogVisibleGroup2: false,
  12315. updateGroupArray: [],
  12316. updateGroupUser: {},
  12317. deleteGroupUser: [],
  12318. deleteGroupArray: {},
  12319. checkChair: "",
  12320. checkDeleteGroup: [],
  12321. inviteCode: "",
  12322. courseGroupStudent: [],
  12323. courseGroupStudentUid: [],
  12324. courseGroup: {},
  12325. isGroup: false,
  12326. toolIndex: null,
  12327. tool: {},
  12328. isWorkTool: [
  12329. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12330. ], //, 40
  12331. videoJson: {},
  12332. toolType: 0,
  12333. checktoolArray: [],
  12334. vChapterData: [],
  12335. isUpdateToolDetail: false,
  12336. isUpdateToolDetail1: false,
  12337. updateToolDetailInner: "",
  12338. checkboxList: [],
  12339. plIndex: "",
  12340. worksSName2: "",
  12341. worksSid: "",
  12342. wordCloudData: [],
  12343. isPickStudent: [],
  12344. pzStype: 1,
  12345. downLoading: false,
  12346. greyType: false,
  12347. correctWord: [],
  12348. EnglishVoiceDialog: false,
  12349. englishVoiceJson: {},
  12350. englishVoiceJsonWork:[],
  12351. scoreList:{
  12352. listdata:[],
  12353. isScoreList:[],
  12354. },
  12355. classRoomHelperWidth: '85px',
  12356. 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'],
  12357. oidArray:['f297fbdc-f0a0-11ee-b534-005056b86db5','45facc0a-1211-11ec-80ad-005056b86db5']
  12358. };
  12359. },
  12360. methods: {
  12361. gx(){
  12362. this.$forceUpdate();
  12363. },
  12364. isUpdateCorrect(t,p){
  12365. if(this.greyType == false){
  12366. this.isUpdateText = t;
  12367. this.greyType = true;
  12368. }else{
  12369. if(p == 1){
  12370. this.newEnglishList.engText = this.isUpdateText;
  12371. }else if(p == 2){
  12372. this.oldEnglishJson1.engText = this.isUpdateText;
  12373. }else if(p == 3){
  12374. this.newEnglishList.engText = this.isUpdateText;
  12375. }else{
  12376. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12377. }
  12378. this.greyType = false
  12379. }
  12380. },
  12381. aiCorrect(t,p){
  12382. let aiText = "";
  12383. const loading = this.$loading.service({
  12384. background: "rgba(255, 255, 255)",
  12385. target: document.querySelectorAll(".loadingText")[0],
  12386. });
  12387. let param = {
  12388. model: "gpt-3.5-turbo",
  12389. temperature: 0,
  12390. max_tokens: 2048,
  12391. top_p: 1,
  12392. frequency_penalty: 0,
  12393. presence_penalty: 0,
  12394. messages: [
  12395. {
  12396. role: "user",
  12397. content:
  12398.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12399. },
  12400. ],
  12401. uid: this.userid,
  12402. stream: false,
  12403. };
  12404. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12405. (res) => {
  12406. if (
  12407. res.data.FunctionResponse &&
  12408. res.data.FunctionResponse.result &&
  12409. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12410. ) {
  12411. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12412. return;
  12413. }
  12414. aiText =
  12415. res.data.FunctionResponse.choices[0].message.content;
  12416. aiText = aiText.replace(/%/g,"%25");
  12417. // let w = "";
  12418. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12419. // for(var k = 0;k<a.length;k++){
  12420. // //diffWordsWithSpace
  12421. // if(a.length > 1){
  12422. // if(a[k].added == true){
  12423. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12424. // }else if(a[k].removed == true){
  12425. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12426. // }else{
  12427. // w += '<span>' + a[k].value + '</span>';
  12428. // }
  12429. // }else{
  12430. // if(p == 1){
  12431. // w = this.newEnglishList.engText;
  12432. // }else if(p == 2){
  12433. // w = this.oldEnglishJson1.engText;
  12434. // }else if(p == 3){
  12435. // w = this.newEnglishList.engText;
  12436. // }else{
  12437. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12438. // }
  12439. // }
  12440. // }
  12441. if(p == 1){
  12442. this.newEnglishList.engText = aiText;
  12443. }else if(p == 2){
  12444. this.oldEnglishJson1.engText = aiText;
  12445. }else if(p == 3){
  12446. this.newEnglishList.engText = aiText;
  12447. }else{
  12448. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12449. }
  12450. loading.close();
  12451. },
  12452. (err) => {
  12453. console.log(err);
  12454. loading.close();
  12455. }
  12456. );
  12457. },
  12458. addToolChoose() {
  12459. if (!this.checktoolArray.length) {
  12460. this.$message.error("请选择要添加的任务");
  12461. return;
  12462. }
  12463. if (
  12464. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12465. this.taskCount
  12466. ].toolChoose[0].tool.length
  12467. ) {
  12468. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12469. this.taskCount
  12470. ].toolChoose[0].tool = this.checktoolArray;
  12471. } else {
  12472. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12473. this.taskCount
  12474. ].toolChoose.push({
  12475. tool: this.checktoolArray,
  12476. toolDetail: "",
  12477. toolType: 0,
  12478. askCount: 1,
  12479. askTitle: "",
  12480. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12481. });
  12482. }
  12483. let params = [
  12484. {
  12485. cid: this.id,
  12486. chapters: JSON.stringify(this.chapInfoList),
  12487. uid: this.userid,
  12488. unitIndex: this.courseType,
  12489. },
  12490. ];
  12491. this.ajax
  12492. .post(this.$store.state.api + "updateWorkNew4", params)
  12493. .then((res) => {
  12494. this.$message({
  12495. message: "添加成功",
  12496. type: "success",
  12497. });
  12498. this.checktoolArray = [];
  12499. this.getCourseDetail(2);
  12500. this.checkBz(
  12501. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12502. this.taskCount
  12503. ].toolChoose.length - 1
  12504. );
  12505. this.toolDialogVisible = false;
  12506. this.refreshCourse();
  12507. this.$forceUpdate();
  12508. })
  12509. .catch((err) => {
  12510. console.error(err);
  12511. });
  12512. },
  12513. checkBz(index) {
  12514. this.isUpdateToolDetail = false;
  12515. this.$forceUpdate();
  12516. setTimeout(() => {
  12517. document.scrollingElement.scrollTop =
  12518. document.querySelectorAll(".filebox")[index].offsetTop +
  12519. document.querySelector(".student_body").offsetTop;
  12520. }, 500);
  12521. },
  12522. updateToolDetail(i, type) {
  12523. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12524. this.toolDetailIndex = i
  12525. this.isUpdateToolDetail1 = true;
  12526. setTimeout(() => {
  12527. this.updateToolDetailInner = JSON.parse(
  12528. JSON.stringify(
  12529. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12530. this.taskCount
  12531. ].toolChoose[i].toolDetail
  12532. )
  12533. );
  12534. document.querySelector(".checkTextArea").focus();
  12535. }, 0);
  12536. } else if((this.isUpdateToolDetail1 && type != 2)){
  12537. // this.toolDetailIndex = i;
  12538. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12539. this.taskCount
  12540. ].toolChoose[i].toolDetail = JSON.parse(
  12541. JSON.stringify(this.updateToolDetailInner)
  12542. );
  12543. let params = [
  12544. {
  12545. cid: this.id,
  12546. chapters: JSON.stringify(this.chapInfoList),
  12547. uid: this.userid,
  12548. unitIndex: this.courseType,
  12549. },
  12550. ];
  12551. this.ajax
  12552. .post(this.$store.state.api + "updateWorkNew4", params)
  12553. .then((res) => {
  12554. this.isUpdateToolDetail1 = false;
  12555. this.$message({
  12556. message: "修改成功",
  12557. type: "success",
  12558. });
  12559. this.toolDetailIndex = null;
  12560. this.updateToolDetailInner = "";
  12561. this.getCourseDetail(2);
  12562. this.$forceUpdate();
  12563. })
  12564. .catch((err) => {
  12565. console.error(err);
  12566. });
  12567. } else if((this.isUpdateToolDetail1 && type == 2)){
  12568. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12569. this.taskCount
  12570. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12571. JSON.stringify(this.updateToolDetailInner)
  12572. );
  12573. let params = [
  12574. {
  12575. cid: this.id,
  12576. chapters: JSON.stringify(this.chapInfoList),
  12577. uid: this.userid,
  12578. unitIndex: this.courseType,
  12579. },
  12580. ];
  12581. this.ajax
  12582. .post(this.$store.state.api + "updateWorkNew4", params)
  12583. .then((res) => {
  12584. this.$message({
  12585. message: "修改成功",
  12586. type: "success",
  12587. });
  12588. this.toolDetailIndex = i;
  12589. this.isUpdateToolDetail1 = true;
  12590. setTimeout(() => {
  12591. this.updateToolDetailInner = JSON.parse(
  12592. JSON.stringify(
  12593. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12594. this.taskCount
  12595. ].toolChoose[i].toolDetail
  12596. )
  12597. );
  12598. document.querySelector(".checkTextArea").focus();
  12599. }, 0);
  12600. this.getCourseDetail(2);
  12601. this.$forceUpdate();
  12602. })
  12603. .catch((err) => {
  12604. console.error(err);
  12605. });
  12606. }
  12607. },
  12608. jumpGj(i, j, k, l) {
  12609. for (var z = 0; z < this.navList.length; z++) {
  12610. for (var q = 0; q < this.navList[z].task.length; q++) {
  12611. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12612. this.navList[z].task[q].tool[w].isTool = false;
  12613. }
  12614. }
  12615. }
  12616. this.navList[i].task[j].tool[k].isTool =
  12617. !this.navList[i].task[j].tool[k].isTool;
  12618. var a = document.scrollingElement;
  12619. let target = document.querySelector(`#gj${k}`);
  12620. if (target) {
  12621. target.scrollIntoView(true);
  12622. setTimeout(() => {
  12623. a.scrollTop = a.scrollTop - 150;
  12624. }, 0);
  12625. }
  12626. this.navId = ""
  12627. if (l) {
  12628. this.courseType = i;
  12629. // this.navId = l;
  12630. this.taskCount = j;
  12631. this.selectPz();
  12632. this.getHomeWork();
  12633. this.getCourseDetail(2);
  12634. }
  12635. // var b = this.$refs["bz" + k][0];
  12636. // a.scrollTop = b.offsetTop;
  12637. },
  12638. addTools2(i) {
  12639. if (i == 4) {
  12640. // this.openTools2(4);
  12641. this.$message.error("暂未开放");
  12642. return;
  12643. }
  12644. if (i == 45) {
  12645. // this.openTools2(45);
  12646. this.$message.error("暂未开放");
  12647. return;
  12648. }
  12649. if (i == 47) {
  12650. // this.openTools2(47);
  12651. this.$message.error("暂未开放");
  12652. return;
  12653. }
  12654. if (i == 49) {
  12655. // this.openTools2(49);
  12656. this.$message.error("暂未开放");
  12657. return;
  12658. }
  12659. if (i == 62) {
  12660. // this.openTools(itemTaskIndex, 62, toolIndex);
  12661. this.$message.error("暂未开放");
  12662. return;
  12663. }
  12664. if (i == 15) {
  12665. // this.openTools(itemTaskIndex, 15, toolIndex);
  12666. this.$message.error("暂未开放");
  12667. return;
  12668. }
  12669. if (i == 40) {
  12670. // this.openTools(itemTaskIndex, 40, toolIndex);
  12671. this.$message.error("暂未开放");
  12672. return;
  12673. }
  12674. if (i == 41) {
  12675. // this.openTools(itemTaskIndex, 41, toolIndex);
  12676. this.$message.error("暂未开放");
  12677. return;
  12678. }
  12679. if (i == 42) {
  12680. // this.openTools(itemTaskIndex, 42, toolIndex);
  12681. this.$message.error("暂未开放");
  12682. return;
  12683. }
  12684. if (this.checktoolArray.length > 0) {
  12685. if (this.checktoolArray.indexOf(i) != -1) {
  12686. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12687. } else {
  12688. this.checktoolArray = [];
  12689. this.checktoolArray.push(i);
  12690. }
  12691. } else {
  12692. this.checktoolArray.push(i);
  12693. }
  12694. this.$forceUpdate();
  12695. },
  12696. jump() {
  12697. window.parent.postMessage({ tools: "43" }, "*");
  12698. },
  12699. getUpdateMore(f, checkboxList, searchTN, index) {
  12700. this.dialogVisibleMember = f;
  12701. this.checkboxList = checkboxList;
  12702. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12703. this.plIndex = index;
  12704. },
  12705. setPlname(a) {
  12706. if (this.plworkFile.length) {
  12707. this.plworkFile[this.plIndex].username = a;
  12708. } else {
  12709. this.worksSName = a;
  12710. }
  12711. this.dialogVisibleMember = false;
  12712. },
  12713. previewImg(url) {
  12714. this.$hevueImgPreview(url);
  12715. },
  12716. checkImg(list) {
  12717. if (!list.length) {
  12718. return;
  12719. }
  12720. this.$hevueImgPreview({
  12721. multiple: true, // 开启多图预览模式
  12722. imgList: list, // 需要预览的多图数组
  12723. });
  12724. },
  12725. change(val) {
  12726. console.log(val);
  12727. },
  12728. goTo(path) {
  12729. this.$router.push(path);
  12730. },
  12731. handlePictureCardPreview(url) {
  12732. this.dialogImageUrl = url;
  12733. this.pictureDialog = true;
  12734. },
  12735. clean(type) {
  12736. if (type == 1) {
  12737. this.studyJuri[0].cover.splice(0, 1);
  12738. } else if (type == 2) {
  12739. this.studyJuri[0].upVedio.splice(0, 1);
  12740. } else {
  12741. this.studyJuri[0].upFile.splice(0, 1);
  12742. }
  12743. },
  12744. clean2(index) {
  12745. this.plworkFile.splice(index, 1);
  12746. },
  12747. handleClose(done) {
  12748. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12749. this.videoDetail.sources[0].src = "";
  12750. }
  12751. this.commentIndexJson = {};
  12752. done();
  12753. },
  12754. fullTools() {
  12755. this.full = !this.full;
  12756. },
  12757. imgChange(file, fileList, type) {
  12758. if (type == 1) {
  12759. var _tmp = this.studyJuri[0].cover;
  12760. } else if (type == 2) {
  12761. var _tmp = this.studyJuri[0].upVedio;
  12762. } else {
  12763. var _tmp = this.studyJuri[0].upFile;
  12764. }
  12765. this.noneBtnImg = _tmp.length >= 1;
  12766. },
  12767. setContent(bool) {
  12768. this.contentDialog = bool;
  12769. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12770. document.querySelector(".workd_media").style.height = "650px";
  12771. } else if (document.querySelector(".workd_media")) {
  12772. document.querySelector(".workd_media").style.height = "auto";
  12773. }
  12774. },
  12775. setContent2(bool) {
  12776. this.mlDialog = bool;
  12777. if (
  12778. bool &&
  12779. this.contentDialog &&
  12780. document.querySelector(".workd_media")
  12781. ) {
  12782. document.querySelector(".workd_media").style.height = "650px";
  12783. } else if (document.querySelector(".workd_media")) {
  12784. document.querySelector(".workd_media").style.height = "auto";
  12785. }
  12786. },
  12787. openToolAll() {
  12788. this.toolDialogVisible = true;
  12789. },
  12790. addImg(e) {
  12791. var el = e.currentTarget;
  12792. // this.$message.success('触发上传')
  12793. el.getElementsByTagName("input")[0].click();
  12794. e.target.value = "";
  12795. },
  12796. addSelectAnswer() {
  12797. let params = [
  12798. {
  12799. uid: this.userid,
  12800. cid: this.id,
  12801. stage: this.courseType,
  12802. task: this.taskCount,
  12803. tool: this.toolindex,
  12804. content: this.selectAnswer.answer,
  12805. type: 7,
  12806. },
  12807. ];
  12808. this.ajax
  12809. .post(this.$store.state.api + "addCourseWorks", params)
  12810. .then((res) => {
  12811. this.$message({
  12812. message: "提交成功",
  12813. type: "success",
  12814. });
  12815. this.dialogVisibleSelect = false;
  12816. // this.selectAnswer = {};
  12817. this.selectSWorks();
  12818. this.selectStudent();
  12819. })
  12820. .catch((err) => {
  12821. this.$message.error("提交失败");
  12822. console.error(err);
  12823. });
  12824. },
  12825. addSelectAnswerTeacher() {
  12826. let params = [
  12827. {
  12828. uid: this.sStudent.userid,
  12829. cid: this.id,
  12830. stage: this.courseType,
  12831. task: this.taskCount,
  12832. tool: this.toolindex,
  12833. content: this.selectAnswer.answer,
  12834. type: 7,
  12835. },
  12836. ];
  12837. this.ajax
  12838. .post(this.$store.state.api + "addCourseWorks", params)
  12839. .then((res) => {
  12840. this.$message({
  12841. message: "提交成功",
  12842. type: "success",
  12843. });
  12844. this.dialogVisibleSelectTeacher = false;
  12845. // this.selectAnswer = {};
  12846. this.selectSWorks();
  12847. this.selectStudent();
  12848. })
  12849. .catch((err) => {
  12850. this.$message.error("提交失败");
  12851. console.error(err);
  12852. });
  12853. },
  12854. addSenWorks() {
  12855. for (var i = 0; i < this.sentenceList.length; i++) {
  12856. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12857. if (
  12858. this.sentenceList[i].chooseSenList[j] == undefined ||
  12859. this.sentenceList[i].chooseSenList[j] == ""
  12860. ) {
  12861. this.$message.error("请将答案填写完整!");
  12862. return;
  12863. }
  12864. }
  12865. }
  12866. let params = [
  12867. {
  12868. uid: this.userid,
  12869. cid: this.id,
  12870. stage: this.courseType,
  12871. task: this.taskCount,
  12872. tool: this.toolindex,
  12873. content: JSON.stringify(this.sentenceList),
  12874. type: 9,
  12875. },
  12876. ];
  12877. this.ajax
  12878. .post(this.$store.state.api + "addCourseWorks", params)
  12879. .then((res) => {
  12880. this.$message({
  12881. message: "提交成功",
  12882. type: "success",
  12883. });
  12884. this.dialogVisibleSentence = false;
  12885. // this.selectAnswer = {};
  12886. this.selectSWorks();
  12887. this.selectStudent();
  12888. })
  12889. .catch((err) => {
  12890. this.$message.error("提交失败");
  12891. console.error(err);
  12892. });
  12893. },
  12894. addSenWorksTeacher() {
  12895. for (var i = 0; i < this.sentenceList.length; i++) {
  12896. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12897. if (
  12898. this.sentenceList[i].chooseSenList[j] == undefined ||
  12899. this.sentenceList[i].chooseSenList[j] == ""
  12900. ) {
  12901. this.$message.error("请将答案填写完整!");
  12902. return;
  12903. }
  12904. }
  12905. }
  12906. let params = [
  12907. {
  12908. uid: this.sStudent.userid,
  12909. cid: this.id,
  12910. stage: this.courseType,
  12911. task: this.taskCount,
  12912. tool: this.toolindex,
  12913. content: JSON.stringify(this.sentenceList),
  12914. type: 9,
  12915. },
  12916. ];
  12917. this.ajax
  12918. .post(this.$store.state.api + "addCourseWorks", params)
  12919. .then((res) => {
  12920. this.$message({
  12921. message: "提交成功",
  12922. type: "success",
  12923. });
  12924. this.dialogVisibleSentenceTeacher = false;
  12925. // this.selectAnswer = {};
  12926. this.selectSWorks();
  12927. this.selectStudent();
  12928. })
  12929. .catch((err) => {
  12930. this.$message.error("提交失败");
  12931. console.error(err);
  12932. });
  12933. },
  12934. returnTableText() {
  12935. this.$confirm("确定还原此模板吗?", "提示", {
  12936. confirmButtonText: "确定",
  12937. cancelButtonText: "取消",
  12938. type: "warning",
  12939. })
  12940. .then(() => {
  12941. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12942. })
  12943. .catch(() => {});
  12944. },
  12945. addTableWorks() {
  12946. let params = [
  12947. {
  12948. uid: this.userid,
  12949. cid: this.id,
  12950. stage: this.courseType,
  12951. task: this.taskCount,
  12952. tool: this.toolindex,
  12953. content: JSON.stringify(this.tableJson),
  12954. type: 10,
  12955. },
  12956. ];
  12957. this.ajax
  12958. .post(this.$store.state.api + "addCourseWorks", params)
  12959. .then((res) => {
  12960. this.$message({
  12961. message: "提交成功",
  12962. type: "success",
  12963. });
  12964. this.dialogVisibleTable = false;
  12965. // this.selectAnswer = {};
  12966. this.selectSWorks();
  12967. this.selectStudent();
  12968. })
  12969. .catch((err) => {
  12970. this.$message.error("提交失败");
  12971. console.error(err);
  12972. });
  12973. },
  12974. tableRowClassName({ row, rowIndex }) {
  12975. if ((rowIndex + 1) % 2 === 0) {
  12976. return "even_row";
  12977. } else {
  12978. return "";
  12979. }
  12980. },
  12981. addTableWorksTeacher() {
  12982. let params = [
  12983. {
  12984. uid: this.sStudent.userid,
  12985. cid: this.id,
  12986. stage: this.courseType,
  12987. task: this.taskCount,
  12988. tool: this.toolindex,
  12989. content: JSON.stringify(this.tableJson),
  12990. type: 10,
  12991. },
  12992. ];
  12993. this.ajax
  12994. .post(this.$store.state.api + "addCourseWorks", params)
  12995. .then((res) => {
  12996. this.$message({
  12997. message: "提交成功",
  12998. type: "success",
  12999. });
  13000. this.dialogVisibleTableTeacher = false;
  13001. // this.selectAnswer = {};
  13002. this.selectSWorks();
  13003. this.selectStudent();
  13004. })
  13005. .catch((err) => {
  13006. this.$message.error("提交失败");
  13007. console.error(err);
  13008. });
  13009. },
  13010. returnWordText() {
  13011. this.$confirm("确定还原此模板吗?", "提示", {
  13012. confirmButtonText: "确定",
  13013. cancelButtonText: "取消",
  13014. type: "warning",
  13015. })
  13016. .then(() => {
  13017. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13018. })
  13019. .catch(() => {});
  13020. },
  13021. addWordWorks() {
  13022. let params = [
  13023. {
  13024. uid: this.userid,
  13025. cid: this.id,
  13026. stage: this.courseType,
  13027. task: this.taskCount,
  13028. tool: this.toolindex,
  13029. content: JSON.stringify(this.wordJson),
  13030. type: 13,
  13031. atool: 52,
  13032. },
  13033. ];
  13034. this.ajax
  13035. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13036. .then((res) => {
  13037. this.$message({
  13038. message: "提交成功",
  13039. type: "success",
  13040. });
  13041. this.dialogVisibleWord = false;
  13042. // this.selectAnswer = {};
  13043. this.selectSWorks();
  13044. this.selectStudent();
  13045. })
  13046. .catch((err) => {
  13047. this.$message.error("提交失败");
  13048. console.error(err);
  13049. });
  13050. },
  13051. addWordWorksTeacher() {
  13052. let params = [
  13053. {
  13054. uid: this.sStudent.userid,
  13055. cid: this.id,
  13056. stage: this.courseType,
  13057. task: this.taskCount,
  13058. tool: this.toolindex,
  13059. content: JSON.stringify(this.wordJson),
  13060. type: 13,
  13061. atool: 52,
  13062. },
  13063. ];
  13064. this.ajax
  13065. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13066. .then((res) => {
  13067. this.$message({
  13068. message: "提交成功",
  13069. type: "success",
  13070. });
  13071. this.dialogVisibleWordTeacher = false;
  13072. // this.selectAnswer = {};
  13073. this.selectSWorks();
  13074. this.selectStudent();
  13075. })
  13076. .catch((err) => {
  13077. this.$message.error("提交失败");
  13078. console.error(err);
  13079. });
  13080. },
  13081. addCourseWorks(i) {
  13082. var typesql;
  13083. if (this.fileType === 0) {
  13084. typesql = 1;
  13085. } else if (this.fileType === 1) {
  13086. typesql = 4;
  13087. } else if (this.fileType === 2) {
  13088. typesql = 5;
  13089. } else if (this.fileType === 3) {
  13090. typesql = 12;
  13091. }
  13092. if (!this.studyJuri[0].cover[0].url) {
  13093. this.$message.error("请上传文件");
  13094. return;
  13095. }
  13096. let params = [
  13097. {
  13098. uid: this.userid,
  13099. cid: this.id,
  13100. stage: this.courseType,
  13101. task: i,
  13102. tool: this.toolindex,
  13103. content: this.studyJuri[0].cover[0].url,
  13104. type: typesql,
  13105. },
  13106. ];
  13107. this.ajax
  13108. .post(this.$store.state.api + "addCourseWorksR", params)
  13109. .then((res) => {
  13110. this.$message({
  13111. message: "提交成功",
  13112. type: "success",
  13113. });
  13114. this.studyJuri[0].cover = [];
  13115. this.dialogVisible = false;
  13116. this.getCourseDetail(2);
  13117. })
  13118. .catch((err) => {
  13119. this.$message.error("提交失败");
  13120. console.error(err);
  13121. });
  13122. },
  13123. addCourseWorksPl(i) {
  13124. let _files = this.plworkFile;
  13125. var c = 1;
  13126. for (var k = 0; k < _files.length; k++) {
  13127. if (!_files[k].username) {
  13128. c = 2;
  13129. }
  13130. }
  13131. if (c == 2) {
  13132. this.$message.error("请填写学生姓名");
  13133. return;
  13134. }
  13135. let params = [
  13136. {
  13137. ateacher: this.userid,
  13138. cid: this.id,
  13139. stage: this.courseType,
  13140. task: i,
  13141. tool: this.toolindex,
  13142. content: JSON.stringify(_files),
  13143. },
  13144. ];
  13145. this.ajax
  13146. .post(this.$store.state.api + "addCourseWorksPl", params)
  13147. .then((res) => {
  13148. this.$message({
  13149. message: "提交成功",
  13150. type: "success",
  13151. });
  13152. this.plworkFile = [];
  13153. this.dialogVisiblePl = false;
  13154. this.getCourseDetail(2);
  13155. })
  13156. .catch((err) => {
  13157. this.$message.error("提交失败");
  13158. console.error(err);
  13159. });
  13160. },
  13161. addCourseWorks2(i) {
  13162. var typesql;
  13163. if (this.fileType === 0) {
  13164. typesql = 0;
  13165. } else if (this.fileType === 1) {
  13166. typesql = 1;
  13167. } else if (this.fileType === 2) {
  13168. typesql = 3;
  13169. } else if (this.fileType === 3) {
  13170. typesql = 12;
  13171. }
  13172. if (!this.studyJuri[0].cover[0].url) {
  13173. this.$message.error("请上传文件");
  13174. return;
  13175. }
  13176. let params = [
  13177. {
  13178. uid: this.userid,
  13179. cid: this.id,
  13180. stage: this.courseType,
  13181. task: i,
  13182. tool: this.toolindex,
  13183. content: JSON.stringify({
  13184. type: typesql,
  13185. groupIndex: this.groupIndex,
  13186. url: this.studyJuri[0].cover[0].url,
  13187. }),
  13188. type: 11,
  13189. atool: 49,
  13190. text: "",
  13191. },
  13192. ];
  13193. this.ajax
  13194. .post(this.$store.state.api + "addCourseWorks5", params)
  13195. .then((res) => {
  13196. this.$message({
  13197. message: "提交成功",
  13198. type: "success",
  13199. });
  13200. this.studyJuri[0].cover = [];
  13201. this.dialogVisibleGroupWork = false;
  13202. this.getCourseDetail(2);
  13203. })
  13204. .catch((err) => {
  13205. this.$message.error("提交失败");
  13206. console.error(err);
  13207. });
  13208. },
  13209. addEnglishWork() {
  13210. this.myAnList = this.$refs['engJson'].myAnswerList;
  13211. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13212. this.$message.error("请输入作文标题和正文!");
  13213. return;
  13214. }
  13215. let params = [
  13216. {
  13217. uid: this.userid,
  13218. cid: this.id,
  13219. stage: this.courseType,
  13220. task: this.taskCount,
  13221. tool: this.englishToolIndex,
  13222. content: JSON.stringify(this.myAnList),
  13223. type: 16,
  13224. atool: 69,
  13225. text: "",
  13226. },
  13227. ];
  13228. this.ajax
  13229. .post(this.$store.state.api + "addCourseWorks5", params)
  13230. .then((res) => {
  13231. this.$message({
  13232. message: "提交成功",
  13233. type: "success",
  13234. });
  13235. this.myAnList = {};
  13236. this.englishList = {};
  13237. this.englishToolIndex = 0;
  13238. this.engDialogVisible = false;
  13239. this.selectSWorks();
  13240. this.selectStudent();
  13241. })
  13242. .catch((err) => {
  13243. this.$message.error("提交失败");
  13244. console.error(err);
  13245. });
  13246. },
  13247. addCourseWorksGong(i, data, tool) {
  13248. let params = [
  13249. {
  13250. uid: this.userid,
  13251. cid: this.id,
  13252. stage: this.courseType,
  13253. task: this.taskCount,
  13254. tool: i,
  13255. content: data,
  13256. type: 12,
  13257. atool: tool,
  13258. text: "",
  13259. },
  13260. ];
  13261. this.ajax
  13262. .post(this.$store.state.api + "addCourseWorks5", params)
  13263. .then((res) => {
  13264. this.$message({
  13265. message: "提交成功",
  13266. type: "success",
  13267. });
  13268. this.studyJuri[0].cover = [];
  13269. this.selectSWorks();
  13270. this.selectStudent();
  13271. })
  13272. .catch((err) => {
  13273. this.$message.error("提交失败");
  13274. console.error(err);
  13275. });
  13276. },
  13277. addCourseWorksGongTeacher(i, data, tool) {
  13278. let params = [
  13279. {
  13280. uid: this.sStudent.userid,
  13281. cid: this.id,
  13282. stage: this.courseType,
  13283. task: this.taskCount,
  13284. tool: i,
  13285. content: data,
  13286. type: 12,
  13287. atool: tool,
  13288. text: "",
  13289. },
  13290. ];
  13291. this.ajax
  13292. .post(this.$store.state.api + "addCourseWorks5", params)
  13293. .then((res) => {
  13294. this.$message({
  13295. message: "提交成功",
  13296. type: "success",
  13297. });
  13298. this.studyJuri[0].cover = [];
  13299. this.dialogVisibleWorks = false;
  13300. this.selectSWorks();
  13301. this.selectStudent();
  13302. })
  13303. .catch((err) => {
  13304. this.$message.error("提交失败");
  13305. console.error(err);
  13306. });
  13307. },
  13308. addCourseWorksGongPl(i, data, tool, type) {
  13309. let params = [
  13310. {
  13311. uid: this.sStudent.userid,
  13312. cid: this.id,
  13313. stage: this.courseType,
  13314. task: this.taskCount,
  13315. tool: i,
  13316. content: data,
  13317. type: type,
  13318. atool: tool,
  13319. text: "",
  13320. },
  13321. ];
  13322. this.ajax
  13323. .post(this.$store.state.api + "addCourseWorks5", params)
  13324. .then((res) => {
  13325. this.$message({
  13326. message: "提交成功",
  13327. type: "success",
  13328. });
  13329. this.studyJuri[0].cover = [];
  13330. this.dialogVisibleWorks = false;
  13331. this.selectSWorks();
  13332. this.selectStudent();
  13333. })
  13334. .catch((err) => {
  13335. this.$message.error("提交失败");
  13336. console.error(err);
  13337. });
  13338. },
  13339. addCourseWorksTeacher(i) {
  13340. var typesql;
  13341. if (this.sTool == 32) {
  13342. this.addCourseWorksGongTeacher(
  13343. this.toolindex,
  13344. this.studyJuri[0].cover[0].url,
  13345. this.sTool
  13346. );
  13347. return;
  13348. }
  13349. if (this.fileType === 0) {
  13350. typesql = 1;
  13351. } else if (this.fileType === 1) {
  13352. typesql = 4;
  13353. } else if (this.fileType === 2) {
  13354. typesql = 5;
  13355. } else if (this.fileType === 3) {
  13356. typesql = 12;
  13357. }
  13358. if (this.sTool == 50) {
  13359. this.addCourseWorksGongPl(
  13360. this.toolindex,
  13361. this.studyJuri[0].cover[0].url,
  13362. this.sTool,
  13363. typesql
  13364. );
  13365. return;
  13366. }
  13367. if (!this.studyJuri[0].cover[0].url) {
  13368. this.$message.error("请上传文件");
  13369. return;
  13370. }
  13371. let params = [
  13372. {
  13373. uid: this.sStudent.userid,
  13374. cid: this.id,
  13375. stage: this.courseType,
  13376. task: i,
  13377. tool: this.toolindex,
  13378. content: this.studyJuri[0].cover[0].url,
  13379. type: typesql,
  13380. ateacher: this.userid,
  13381. },
  13382. ];
  13383. this.ajax
  13384. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13385. .then((res) => {
  13386. this.$message({
  13387. message: "提交成功",
  13388. type: "success",
  13389. });
  13390. this.studyJuri[0].cover = [];
  13391. this.dialogVisibleWorks = false;
  13392. this.getCourseDetail(2);
  13393. })
  13394. .catch((err) => {
  13395. this.$message.error("提交失败");
  13396. console.error(err);
  13397. });
  13398. },
  13399. selectUploadStudent(type) {
  13400. const loading = this.$loading.service({
  13401. background: "rgba(255, 255, 255, 0.7)",
  13402. target: document.body,
  13403. });
  13404. let params = {
  13405. cid: this.uploadCid,
  13406. oid: this.oid,
  13407. cn: "",
  13408. };
  13409. this.ajax
  13410. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13411. .then((res) => {
  13412. loading.close();
  13413. var studentK = [];
  13414. if (this.isWorksS[this.toolindex].length > 0) {
  13415. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13416. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13417. }
  13418. studentK = studentK.join(",");
  13419. }
  13420. this.uploadStudentJuri = res.data[0].filter((el) => {
  13421. return studentK.indexOf(el.userid) == -1;
  13422. });
  13423. if (this.worksSName && this.worksSid) {
  13424. this.uploadStudentJuri.push({
  13425. userid: this.worksSid,
  13426. name: this.worksSName,
  13427. });
  13428. }
  13429. if (type == 1) {
  13430. this.plworkFile = [];
  13431. this.dialogVisibleSname = true;
  13432. } else if (type == 2) {
  13433. this.dialogVisiblePl = true;
  13434. }
  13435. })
  13436. .catch((err) => {
  13437. loading.close();
  13438. console.error(err);
  13439. });
  13440. },
  13441. selectPickStudent() {
  13442. const loading = this.$loading.service({
  13443. background: "rgba(255, 255, 255, 0.7)",
  13444. target: document.body,
  13445. });
  13446. let params = {
  13447. cid: this.uploadCid,
  13448. oid: this.oid,
  13449. cn: "",
  13450. };
  13451. this.ajax
  13452. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13453. .then((res) => {
  13454. loading.close();
  13455. this.uploadStudentJuri = res.data[0];
  13456. this.dialogVisiblePickPeople = true;
  13457. })
  13458. .catch((err) => {
  13459. loading.close();
  13460. console.error(err);
  13461. });
  13462. },
  13463. arrayToArray(arrayo, arrayt) {
  13464. let array1 = arrayo;
  13465. let array2 = arrayt;
  13466. let commonElements = [];
  13467. for (let i = 0; i < array1.length; i++) {
  13468. for (let j = 0; j < array2.length; j++) {
  13469. if (array1[i] === array2[j]) {
  13470. commonElements.push(array1[i]);
  13471. }
  13472. }
  13473. }
  13474. return commonElements;
  13475. },
  13476. selectWorksStudent() {
  13477. let params = {
  13478. oid: this.oid,
  13479. cid: this.courseDetail.juri,
  13480. };
  13481. this.ajax
  13482. .get(this.$store.state.api + "selectWorksStudent", params)
  13483. .then((res) => {
  13484. var a = res.data[0];
  13485. for (var i = 0; i < this.isWorksS.length; i++) {
  13486. this.noWorksS[i] = [];
  13487. var studentK = [];
  13488. if (this.isWorksS[i].length > 0) {
  13489. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13490. studentK.push(this.isWorksS[i][z].uid);
  13491. }
  13492. studentK = studentK.join(",");
  13493. for (var j = 0; j < a.length; j++) {
  13494. if (studentK.indexOf(a[j].userid) == -1) {
  13495. if (this.tcid) {
  13496. // a[j].classid.indexOf(this.tcid) != -1
  13497. if (
  13498. this.arrayToArray(
  13499. a[j].classid.split(","),
  13500. this.tcid.split(",")
  13501. ).length
  13502. ) {
  13503. this.noWorksS[i].push({
  13504. student: a[j].name,
  13505. userid: a[j].userid,
  13506. });
  13507. }
  13508. } else {
  13509. this.noWorksS[i].push({
  13510. student: a[j].name,
  13511. userid: a[j].userid,
  13512. });
  13513. }
  13514. }
  13515. }
  13516. } else {
  13517. for (var k = 0; k < a.length; k++) {
  13518. if (this.tcid) {
  13519. if (
  13520. this.arrayToArray(
  13521. a[k].classid.split(","),
  13522. this.tcid.split(",")
  13523. ).length
  13524. ) {
  13525. this.noWorksS[i].push({
  13526. student: a[k].name,
  13527. userid: a[k].userid,
  13528. });
  13529. }
  13530. } else {
  13531. this.noWorksS[i].push({
  13532. student: a[k].name,
  13533. userid: a[k].userid,
  13534. });
  13535. }
  13536. }
  13537. }
  13538. }
  13539. this.$forceUpdate();
  13540. if (
  13541. Object.keys(this.commentDetail).length &&
  13542. Object.keys(this.commentIndexJson).length &&
  13543. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13544. ) {
  13545. let a = 1;
  13546. let c = this.commentIndexJson;
  13547. if (
  13548. this.commentIndexJson.gindex ||
  13549. this.commentIndexJson.gindex === 0
  13550. ) {
  13551. for (
  13552. var i = 0;
  13553. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13554. i++
  13555. ) {
  13556. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13557. groupA: for (var k = 0; k < _el.length; k++) {
  13558. let el = _el[k];
  13559. if (el.wid == this.commentDetail.wid) {
  13560. a = 2;
  13561. this.commentOther(
  13562. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13563. this.commentIndexJson.toolIndex,
  13564. k,
  13565. this.commentIndexJson.gindex
  13566. );
  13567. break groupA;
  13568. }
  13569. }
  13570. }
  13571. if (a === 1) {
  13572. this.commentDetail = [];
  13573. this.commentIndexJson = {};
  13574. this.commentDialogVisible = false;
  13575. this.$message("此作业已被删除");
  13576. }
  13577. } else {
  13578. if (this.isGroup && this.commentIndexJson.gid) {
  13579. groupA: for (
  13580. var i = 0;
  13581. i < this.courseGroup.group.length;
  13582. i++
  13583. ) {
  13584. let _group = this.courseGroup.group[i];
  13585. if (_group.id == this.commentIndexJson.gid) {
  13586. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13587. for (var k = 0; k < _el2.length; k++) {
  13588. let el2 = _el2[k];
  13589. if (el2.wid == this.commentDetail.wid) {
  13590. a = 2;
  13591. this.commentOther(
  13592. _el2[k],
  13593. this.commentIndexJson.toolIndex,
  13594. k,
  13595. null,
  13596. this.commentIndexJson.gid
  13597. );
  13598. break groupA;
  13599. }
  13600. }
  13601. }
  13602. }
  13603. }
  13604. if (a == 1) {
  13605. for (
  13606. var i = 0;
  13607. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13608. i++
  13609. ) {
  13610. let el =
  13611. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13612. if (el.wid == this.commentDetail.wid) {
  13613. a = 2;
  13614. this.commentOther(
  13615. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13616. this.commentIndexJson.toolIndex,
  13617. i
  13618. );
  13619. break;
  13620. }
  13621. }
  13622. }
  13623. if (a === 1) {
  13624. this.commentDetail = [];
  13625. this.commentIndexJson = {};
  13626. this.commentDialogVisible = false;
  13627. this.$message("此作业已被删除");
  13628. }
  13629. }
  13630. }
  13631. })
  13632. .catch((err) => {
  13633. console.error(err);
  13634. });
  13635. },
  13636. selectStudent() {
  13637. //学生查看自己作业
  13638. let params = {
  13639. uid: this.userid,
  13640. cid: this.id,
  13641. s: this.courseType,
  13642. t: this.taskCount,
  13643. };
  13644. this.ajax
  13645. .get(this.$store.state.api + "selectStudentWorks", params)
  13646. .then((res) => {
  13647. var a =
  13648. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13649. this.taskCount
  13650. ].toolChoose;
  13651. var b = res.data[0];
  13652. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13653. var y = [
  13654. "AVI",
  13655. "NAVI",
  13656. "MPEG",
  13657. "ASF",
  13658. "MOV",
  13659. "WMV",
  13660. "3GP",
  13661. "RM",
  13662. "RMVB",
  13663. "FLV",
  13664. "F4V",
  13665. "H.264",
  13666. "H.265",
  13667. "REAL VIDEO",
  13668. "MKV",
  13669. "WebM",
  13670. "HDDVD",
  13671. "MP4",
  13672. "MPG",
  13673. "M4V",
  13674. "MGV",
  13675. "OGV",
  13676. "QTM",
  13677. "STR",
  13678. "AMC",
  13679. "DVX",
  13680. "EVO",
  13681. "DAT",
  13682. "OGG",
  13683. "OGM",
  13684. ];
  13685. for (var i = 0; i < a.length; i++) {
  13686. this.workStudent[i] = [];
  13687. for (var j = 0; j < b.length; j++) {
  13688. if (i == b[j].tool) {
  13689. if (
  13690. (b[j].type == 1 ||
  13691. b[j].type == 4 ||
  13692. b[j].type == 5 ||
  13693. b[j].type == 6 ||
  13694. b[j].type == 12 ||
  13695. b[j].type == 7) &&
  13696. a[i].tool[0] != 15 &&
  13697. a[i].tool[0] != 4 &&
  13698. a[i].tool[0] != 45 &&
  13699. a[i].tool[0] != 50 &&
  13700. a[i].tool[0] != 32 &&
  13701. a[i].tool[0] != 57 &&
  13702. a[i].tool[0] != 52 &&
  13703. a[i].tool[0] != 69
  13704. ) {
  13705. if (
  13706. c.indexOf(
  13707. b[j].content
  13708. .split(".")
  13709. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13710. ) != -1 &&
  13711. a[i].tool[0] == 16 &&
  13712. b[j].atool != 50
  13713. ) {
  13714. this.workStudent[i].push({
  13715. works: b[j].content,
  13716. sName: b[j].name,
  13717. score: b[j].score,
  13718. img: b[j].img,
  13719. type: 1,
  13720. time: b[j].time,
  13721. userid: b[j].userid,
  13722. wid: b[j].id,
  13723. });
  13724. } else if (
  13725. y.indexOf(
  13726. b[j].content
  13727. .split(".")
  13728. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13729. ) != -1 &&
  13730. a[i].tool[0] == 16 &&
  13731. b[j].atool != 50
  13732. ) {
  13733. this.workStudent[i].push({
  13734. userid: b[j].userid,
  13735. wid: b[j].id,
  13736. works: b[j].content,
  13737. sName: b[j].name,
  13738. score: b[j].score,
  13739. img: b[j].img,
  13740. type: 3,
  13741. time: b[j].time,
  13742. });
  13743. } else if (b[j].type == 6 && b[j].atool != 50) {
  13744. this.workStudent[i].push({
  13745. userid: b[j].userid,
  13746. wid: b[j].id,
  13747. works: b[j].content,
  13748. sName: b[j].name,
  13749. score: b[j].score,
  13750. img: b[j].img,
  13751. type: 4,
  13752. time: b[j].time,
  13753. });
  13754. } else if (b[j].type == 7 && b[j].atool != 50) {
  13755. this.workStudent[i].push({
  13756. userid: b[j].userid,
  13757. wid: b[j].id,
  13758. works: b[j].content,
  13759. sName: b[j].name,
  13760. score: b[j].score,
  13761. img: b[j].img,
  13762. type: 5,
  13763. time: b[j].time,
  13764. });
  13765. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13766. this.workStudent[i].push({
  13767. works: b[j].content,
  13768. sName: b[j].name,
  13769. score: b[j].score,
  13770. img: b[j].img,
  13771. type: 12,
  13772. time: b[j].time,
  13773. userid: b[j].userid,
  13774. wid: b[j].id,
  13775. });
  13776. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13777. this.workStudent[i].push({
  13778. works: b[j].content,
  13779. sName: b[j].name,
  13780. score: b[j].score,
  13781. img: b[j].img,
  13782. type: 0,
  13783. time: b[j].time,
  13784. userid: b[j].userid,
  13785. wid: b[j].id,
  13786. });
  13787. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13788. this.workStudent[i].push({
  13789. works: b[j].content,
  13790. sName: b[j].name,
  13791. score: b[j].score,
  13792. img: b[j].img,
  13793. type: 0,
  13794. time: b[j].time,
  13795. userid: b[j].userid,
  13796. wid: b[j].id,
  13797. });
  13798. }
  13799. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13800. this.workStudent[i].push({
  13801. works: b[j].content,
  13802. sName: b[j].name,
  13803. score: b[j].score,
  13804. img: b[j].img,
  13805. type: 2,
  13806. time: b[j].time,
  13807. userid: b[j].userid,
  13808. wid: b[j].id,
  13809. });
  13810. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13811. //问卷
  13812. this.workStudent[i].push({
  13813. works: b[j].content,
  13814. sName: b[j].name,
  13815. score: b[j].score,
  13816. img: b[j].img,
  13817. type: 2,
  13818. time: b[j].time,
  13819. userid: b[j].userid,
  13820. wid: b[j].id,
  13821. });
  13822. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13823. //选择题
  13824. this.workStudent[i].push({
  13825. works: b[j].content,
  13826. sName: b[j].name,
  13827. score: b[j].score,
  13828. img: b[j].img,
  13829. type: 8,
  13830. time: b[j].time,
  13831. userid: b[j].userid,
  13832. wid: b[j].id,
  13833. });
  13834. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13835. //选择题
  13836. this.workStudent[i].push({
  13837. works: b[j].content,
  13838. sName: b[j].name,
  13839. score: b[j].score,
  13840. img: b[j].img,
  13841. type: 9,
  13842. time: b[j].time,
  13843. userid: b[j].userid,
  13844. wid: b[j].id,
  13845. });
  13846. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13847. //选择题
  13848. this.workStudent[i].push({
  13849. works: b[j].content,
  13850. sName: b[j].name,
  13851. score: b[j].score,
  13852. img: b[j].img,
  13853. type: 10,
  13854. time: b[j].time,
  13855. userid: b[j].userid,
  13856. wid: b[j].id,
  13857. });
  13858. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13859. //选择题
  13860. this.workStudent[i].push({
  13861. works: b[j].content,
  13862. sName: b[j].name,
  13863. score: b[j].score,
  13864. img: b[j].img,
  13865. type: 13,
  13866. time: b[j].time,
  13867. userid: b[j].userid,
  13868. wid: b[j].id,
  13869. });
  13870. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13871. //选择题
  13872. this.workStudent[i].push({
  13873. works: b[j].content,
  13874. sName: b[j].name,
  13875. score: b[j].score,
  13876. img: b[j].img,
  13877. type: 12,
  13878. time: b[j].time,
  13879. userid: b[j].userid,
  13880. wid: b[j].id,
  13881. });
  13882. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13883. //选择题
  13884. this.workStudent[i].push({
  13885. works: b[j].content,
  13886. sName: b[j].name,
  13887. score: b[j].score,
  13888. img: b[j].img,
  13889. type: 12,
  13890. time: b[j].time,
  13891. userid: b[j].userid,
  13892. wid: b[j].id,
  13893. });
  13894. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  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: 15,
  13902. time: b[j].time,
  13903. userid: b[j].userid,
  13904. wid: b[j].id,
  13905. });
  13906. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  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: 16,
  13914. time: b[j].time,
  13915. userid: b[j].userid,
  13916. wid: b[j].id,
  13917. aiCode: b[j].aiCode,
  13918. teacherCode: b[j].teacherCode
  13919. });
  13920. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  13921. //英语写作
  13922. this.workStudent[i].push({
  13923. works: b[j].content,
  13924. sName: b[j].name,
  13925. score: b[j].score,
  13926. img: b[j].img,
  13927. type: 17,
  13928. time: b[j].time,
  13929. userid: b[j].userid,
  13930. wid: b[j].id,
  13931. });
  13932. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  13933. //英语口语
  13934. this.workStudent[i].push({
  13935. works: b[j].content,
  13936. sName: b[j].name,
  13937. score: b[j].score,
  13938. img: b[j].img,
  13939. type: 14,
  13940. time: b[j].time,
  13941. userid: b[j].userid,
  13942. wid: b[j].id,
  13943. });
  13944. }
  13945. }
  13946. }
  13947. }
  13948. })
  13949. .catch((err) => {
  13950. console.error(err);
  13951. });
  13952. },
  13953. openVideo(w) {
  13954. this.videoDetail = {};
  13955. this.playerOptions1.sources[0].src = w.works;
  13956. this.videoDetail = this.playerOptions1;
  13957. this.videoVisible = true;
  13958. },
  13959. isLikes(wid, uid, t, c, isLikes) {
  13960. if (isLikes == false) {
  13961. let params = [
  13962. {
  13963. wid: wid,
  13964. lid: uid,
  13965. t: t,
  13966. c: c,
  13967. },
  13968. ];
  13969. this.ajax
  13970. .post(this.$store.state.api + "insertComment", params)
  13971. .then((res) => {
  13972. this.$message({
  13973. message: "点赞成功",
  13974. type: "success",
  13975. });
  13976. this.selectSWorks();
  13977. this.selectStudent();
  13978. })
  13979. .catch((err) => {
  13980. this.$message.error("点赞失败");
  13981. console.error(err);
  13982. });
  13983. } else {
  13984. let params = {
  13985. wid: wid,
  13986. lid: uid,
  13987. type: t,
  13988. };
  13989. this.ajax
  13990. .get(this.$store.state.api + "deleteComment", params)
  13991. .then((res) => {
  13992. this.$message({
  13993. message: "取消点赞成功",
  13994. type: "success",
  13995. });
  13996. this.selectSWorks();
  13997. this.selectStudent();
  13998. })
  13999. .catch((err) => {
  14000. console.error(err);
  14001. });
  14002. }
  14003. },
  14004. deleteComment(wid) {
  14005. this.$confirm("确定删除此评论吗?", "提示", {
  14006. confirmButtonText: "确定",
  14007. cancelButtonText: "取消",
  14008. type: "warning",
  14009. })
  14010. .then(() => {
  14011. let params = {
  14012. id: wid,
  14013. };
  14014. this.ajax
  14015. .get(this.$store.state.api + "deleteComment2", params)
  14016. .then((res) => {
  14017. this.$message({
  14018. message: "删除评论成功",
  14019. type: "success",
  14020. });
  14021. this.selectSWorks();
  14022. this.selectStudent();
  14023. })
  14024. .catch((err) => {
  14025. console.error(err);
  14026. });
  14027. })
  14028. .catch(() => {});
  14029. },
  14030. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14031. this.commentIndexJson = {
  14032. toolIndex: toolIndex,
  14033. wIndex: wIndex,
  14034. gindex: gindex,
  14035. gid: gid,
  14036. };
  14037. this.commentDetail = [];
  14038. this.commentDialogVisible = true;
  14039. this.commentDetail = w;
  14040. if (w.works && w.type == 1) {
  14041. // this.pptImgUrl = "";
  14042. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14043. if (
  14044. a.indexOf(
  14045. w.works
  14046. .split(".")
  14047. [w.works.split(".").length - 1].toLocaleUpperCase()
  14048. ) != -1
  14049. ) {
  14050. let _uuurl = await this.checkLink(w.works);
  14051. this.pptImgUrl =
  14052. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14053. this.showPDF = false;
  14054. } else if (
  14055. w.works
  14056. .split(".")
  14057. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14058. ) {
  14059. this.pptImgUrl = w.works;
  14060. this.showPDF = true;
  14061. }
  14062. } else if (w.works && w.type == 3) {
  14063. this.videoDetail = {};
  14064. this.playerOptions1.sources[0].src = w.works;
  14065. this.videoDetail = this.playerOptions1;
  14066. // this.videoVisible = true;
  14067. } else if (w.works && w.type == 4) {
  14068. this.eScore = JSON.parse(w.works);
  14069. this.rateJson =
  14070. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14071. this.taskCount
  14072. ].toolChoose[toolIndex].rateJson;
  14073. } else if (w.works && w.type == 10) {
  14074. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14075. } else if (w.works && w.type == 13) {
  14076. this.wordJson =
  14077. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14078. this.taskCount
  14079. ].toolChoose[toolIndex].wordJson;
  14080. }
  14081. },
  14082. async openScore(w, index) {
  14083. this.wScore = 0;
  14084. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14085. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14086. this.commentDetail = [];
  14087. if(w.type == 17){
  14088. this.dialogVisibleENScore = true;
  14089. }else{
  14090. this.dialogVisibleScore = true;
  14091. }
  14092. this.commentDetail = w;
  14093. if (w.works && w.type == 1) {
  14094. this.pptImgUrl = "";
  14095. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14096. if (
  14097. a.indexOf(
  14098. w.works
  14099. .split(".")
  14100. [w.works.split(".").length - 1].toLocaleUpperCase()
  14101. ) != -1
  14102. ) {
  14103. let _uuurl = await this.checkLink(w.works);
  14104. this.pptImgUrl =
  14105. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14106. this.showPDF = false;
  14107. } else if (
  14108. w.works
  14109. .split(".")
  14110. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14111. ) {
  14112. this.pptImgUrl = w.works;
  14113. this.showPDF = true;
  14114. }
  14115. } else if (w.works && w.type == 3) {
  14116. this.videoDetail = {};
  14117. this.playerOptions1.sources[0].src = w.works;
  14118. this.videoDetail = this.playerOptions1;
  14119. }else if(w.type == 17){
  14120. let englishVoiceJson = {}
  14121. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14122. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14123. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14124. .toolChoose[index].englishVoiceJson
  14125. : {};
  14126. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14127. }
  14128. },
  14129. addComment(wid, uid, t) {
  14130. if (this.commentText == "") {
  14131. this.$message.error("请输入评论");
  14132. return;
  14133. }
  14134. let params2 = [
  14135. {
  14136. wid: wid,
  14137. lid: uid,
  14138. t: t,
  14139. },
  14140. ];
  14141. this.ajax
  14142. .post(this.$store.state.api + "getComment", params2)
  14143. .then((res) => {
  14144. if (res.data[0].length > 0) {
  14145. this.$message.error("一个作业只能评论一条");
  14146. } else {
  14147. let params = [
  14148. {
  14149. wid: wid,
  14150. lid: uid,
  14151. t: t,
  14152. c: this.commentText,
  14153. },
  14154. ];
  14155. this.ajax
  14156. .post(this.$store.state.api + "insertComment", params)
  14157. .then((res) => {
  14158. this.$message({
  14159. message: "评论成功",
  14160. type: "success",
  14161. });
  14162. this.commentText = "";
  14163. this.selectSWorks();
  14164. this.selectStudent();
  14165. })
  14166. .catch((err) => {
  14167. this.$message.error("评论失败");
  14168. console.error(err);
  14169. });
  14170. }
  14171. })
  14172. .catch((err) => {
  14173. // this.$message.error("评论失败");
  14174. console.error(err);
  14175. });
  14176. },
  14177. scoreWork(wid) {
  14178. if (this.wScore == 0) {
  14179. this.$message.error("请评分");
  14180. return;
  14181. }
  14182. let params = [
  14183. {
  14184. wid: wid,
  14185. score: JSON.stringify({
  14186. wScore: this.wScore,
  14187. detail: this.scoreDetail,
  14188. }),
  14189. },
  14190. ];
  14191. this.ajax
  14192. .post(this.$store.state.api + "scoreWork", params)
  14193. .then((res) => {
  14194. this.$message({
  14195. message: "评分成功",
  14196. type: "success",
  14197. });
  14198. this.wScore = 0;
  14199. this.scoreDetail = "";
  14200. this.dialogVisibleScore = false;
  14201. this.selectSWorks();
  14202. this.selectStudent();
  14203. })
  14204. .catch((err) => {
  14205. this.$message.error("评分失败");
  14206. console.error(err);
  14207. });
  14208. },
  14209. openXz(w, i) {
  14210. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14211. .taskJson[this.taskCount].toolChoose[i].selectJson
  14212. ? JSON.parse(
  14213. JSON.stringify(
  14214. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14215. this.taskCount
  14216. ].toolChoose[i].selectJson
  14217. )
  14218. )
  14219. : { url: "", select: [], answer: [] };
  14220. var a = w.works.split(",");
  14221. for (var k = 0; k < a.length; k++) {
  14222. a[k] = parseInt(a[k]);
  14223. }
  14224. this.selectAnswer = { answer: a, stu: w.sName };
  14225. this.isSelect = true;
  14226. this.dialogVisibleSelect = true;
  14227. },
  14228. openSen(w, i) {
  14229. this.sentenceList1 = JSON.parse(w.works);
  14230. this.sentenceList1.stuName = w.sName;
  14231. this.dialogVisibleSentence1 = true;
  14232. },
  14233. openPj(w, toolindex) {
  14234. this.isStar = true;
  14235. this.eScore = JSON.parse(w);
  14236. this.rateJson =
  14237. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14238. this.taskCount
  14239. ].toolChoose[toolindex].rateJson;
  14240. this.studentEvalDialogVisible = true;
  14241. },
  14242. openEnglishEva(id,i){
  14243. let params = {
  14244. wid: id
  14245. };
  14246. this.ajax
  14247. .get(this.$store.state.api + "selectEngWork", params)
  14248. .then((res) => {
  14249. this.evaEngJson.message = res.data[0][0];
  14250. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14251. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14252. .toolChoose[i].englishList;
  14253. this.engEvaDialogVisible = true;
  14254. })
  14255. .catch((err) => {
  14256. console.error(err);
  14257. });
  14258. },
  14259. deleteWorks(id) {
  14260. this.$confirm("确定删除此作业吗?", "提示", {
  14261. confirmButtonText: "确定",
  14262. cancelButtonText: "取消",
  14263. type: "warning",
  14264. })
  14265. .then(() => {
  14266. let params = [
  14267. {
  14268. id: id,
  14269. },
  14270. ];
  14271. this.ajax
  14272. .post(this.$store.state.api + "deleteCourseWork", params)
  14273. .then((res) => {
  14274. this.$message({
  14275. message: "删除成功",
  14276. type: "success",
  14277. });
  14278. this.selectStudent();
  14279. this.selectSWorks();
  14280. this.selectSLook();
  14281. })
  14282. .catch((err) => {
  14283. this.$message.error("网络异常");
  14284. console.error(err);
  14285. });
  14286. })
  14287. .catch(() => {});
  14288. },
  14289. selectSWorks(gindex) {
  14290. //教师查看全部作业
  14291. let params = {
  14292. cid: this.id,
  14293. s: this.courseType,
  14294. t: this.taskCount,
  14295. };
  14296. this.ajax
  14297. .get(this.$store.state.api + "selectSWorks", params)
  14298. .then((res) => {
  14299. var a =
  14300. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14301. this.taskCount
  14302. ].toolChoose;
  14303. var b = res.data[0];
  14304. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14305. var y = [
  14306. "AVI",
  14307. "NAVI",
  14308. "MPEG",
  14309. "ASF",
  14310. "MOV",
  14311. "WMV",
  14312. "3GP",
  14313. "RM",
  14314. "RMVB",
  14315. "FLV",
  14316. "F4V",
  14317. "H.264",
  14318. "H.265",
  14319. "REAL VIDEO",
  14320. "MKV",
  14321. "WebM",
  14322. "HDDVD",
  14323. "MP4",
  14324. "MPG",
  14325. "M4V",
  14326. "MGV",
  14327. "OGV",
  14328. "QTM",
  14329. "STR",
  14330. "AMC",
  14331. "DVX",
  14332. "EVO",
  14333. "DAT",
  14334. "OGG",
  14335. "OGM",
  14336. ];
  14337. var d = res.data[1];
  14338. var e = res.data[2];
  14339. var f = res.data[3];
  14340. let _worksStudent = [];
  14341. var _worksStudent2 = [];
  14342. for (var i = 0; i < a.length; i++) {
  14343. _worksStudent[i] = [];
  14344. _worksStudent2[i] = [];
  14345. if (
  14346. !this.isCloseList[i] ||
  14347. this.isCloseList[i].isClose == undefined
  14348. ) {
  14349. this.isCloseList[i] = { isClose: 0 };
  14350. }
  14351. this.groupStudent[i] = [];
  14352. this.groupStudentUid[i] = [];
  14353. if (this.isGroup) {
  14354. for (
  14355. var groupI = 0;
  14356. groupI < this.courseGroup.group.length;
  14357. groupI++
  14358. ) {
  14359. this.courseGroup.group[groupI].works[i] = [];
  14360. }
  14361. }
  14362. this.isWorksS[i] = [];
  14363. this.checkJson[i] = [];
  14364. if (a[i].tool[0] == 49) {
  14365. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14366. this.groupStudent[i][gA] = [];
  14367. this.groupStudentUid[i][gA] = [];
  14368. _worksStudent[i][gA] = [];
  14369. _worksStudent2[i][gA] = [];
  14370. this.isCloseList[i][gA] = [];
  14371. for (var g = 0; g < f.length; g++) {
  14372. if (
  14373. f[g].ttype == 2 &&
  14374. this.tcid &&
  14375. this.arrayToArray(
  14376. (f[g].classid ? f[g].classid.split(",") : []),
  14377. this.tcid.split(",")
  14378. ).length == 0
  14379. ) {
  14380. continue;
  14381. }
  14382. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14383. (f[g].classid ? f[g].classid.split(",") : []),
  14384. this.tcid.split(",")
  14385. ).length !== 0 || this.arrayToArray(
  14386. (f[g].classid ? f[g].classid.split(",") : []),
  14387. this.classId ? this.classId.split(",") : []
  14388. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14389. this.groupStudent[i][gA].push(f[g]);
  14390. this.groupStudentUid[i][gA].push(f[g].userid);
  14391. }
  14392. }
  14393. }
  14394. this.$forceUpdate();
  14395. }
  14396. for (var j = 0; j < b.length; j++) {
  14397. if (
  14398. b[j].ttype == 2 &&
  14399. this.tcid &&
  14400. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14401. .length == 0
  14402. ) {
  14403. continue;
  14404. }
  14405. var likesCount = 0;
  14406. var commentCount = 0;
  14407. var isLikes = false;
  14408. var commentJson = [];
  14409. var likeJson = [];
  14410. var data = b[j];
  14411. if (i == b[j].tool) {
  14412. if (data.type == 2 && a[i].tool[0] == 4) {
  14413. // if(JSON.parse(data.content)[0].anwer){
  14414. var checkL =
  14415. JSON.parse(data.content)[0].anwer instanceof Array
  14416. ? JSON.parse(data.content)[0].anwer
  14417. : JSON.parse(data.content)[0].anwer.split(",");
  14418. for (var z = 0; z < checkL.length; z++) {
  14419. if (!this.checkJson[i][z]) {
  14420. this.checkJson[i].push({
  14421. checkCount: [],
  14422. checkPerson: [],
  14423. rightPerson: [],
  14424. });
  14425. }
  14426. if (!this.checkJson[i][z].checkCount.length) {
  14427. this.checkJson[i][z].checkCount = [];
  14428. let _askItemCount = JSON.parse(data.content)[0].askJson
  14429. .askJson[z].askItem;
  14430. for (var aic = 0; aic < _askItemCount; aic++) {
  14431. this.checkJson[i][z].checkCount.push(0);
  14432. }
  14433. }
  14434. if (checkL[z] instanceof Array) {
  14435. if (
  14436. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14437. checkL[z].sort().join(",")
  14438. ) {
  14439. this.checkJson[i][z].rightPerson.push(data.name);
  14440. }
  14441. for (var q = 0; q < checkL[z].length; q++) {
  14442. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14443. ? this.checkJson[i][z].checkPerson[
  14444. parseInt(checkL[z][q])
  14445. ].push(data.name)
  14446. : (this.checkJson[i][z].checkPerson[
  14447. parseInt(checkL[z][q])
  14448. ] = [data.name]);
  14449. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14450. ? this.checkJson[i][z].checkCount[
  14451. parseInt(checkL[z][q])
  14452. ]++
  14453. : (this.checkJson[i][z].checkCount[
  14454. parseInt(checkL[z][q])
  14455. ] = 1);
  14456. }
  14457. } else {
  14458. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14459. this.checkJson[i][z].rightPerson.push(data.name);
  14460. }
  14461. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14462. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14463. ? this.checkJson[i][z].checkPerson[
  14464. parseInt(checkL[z])
  14465. ].push(data.name)
  14466. : (this.checkJson[i][z].checkPerson[
  14467. parseInt(checkL[z])
  14468. ] = [data.name]);
  14469. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14470. ? this.checkJson[i][z].checkCount[
  14471. parseInt(checkL[z])
  14472. ]++
  14473. : (this.checkJson[i][z].checkCount[
  14474. parseInt(checkL[z])
  14475. ] = 1);
  14476. }
  14477. }
  14478. }
  14479. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14480. var checkL = JSON.parse(data.content)[0].anwer;
  14481. for (var z = 0; z < checkL.length; z++) {
  14482. if (!this.checkJson[i][z]) {
  14483. this.checkJson[i].push({
  14484. checkCount: [],
  14485. checkPerson: [],
  14486. rightPerson: [],
  14487. });
  14488. }
  14489. if (!this.checkJson[i][z].checkCount.length) {
  14490. this.checkJson[i][z].checkCount = [];
  14491. let _askItemCount = JSON.parse(data.content)[0].testJson
  14492. .testJson[z].testItem;
  14493. for (var aic = 0; aic < _askItemCount; aic++) {
  14494. this.checkJson[i][z].checkCount.push(0);
  14495. }
  14496. }
  14497. if (checkL[z] instanceof Array) {
  14498. if (
  14499. JSON.parse(data.content)[0]
  14500. .testJson.testJson[z].answer.sort()
  14501. .join(",") == checkL[z].sort().join(",")
  14502. ) {
  14503. this.checkJson[i][z].rightPerson.push(data.name);
  14504. }
  14505. for (var q = 0; q < checkL[z].length; q++) {
  14506. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14507. ? this.checkJson[i][z].checkPerson[
  14508. parseInt(checkL[z][q])
  14509. ].push(data.name)
  14510. : (this.checkJson[i][z].checkPerson[
  14511. parseInt(checkL[z][q])
  14512. ] = [data.name]);
  14513. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14514. ? this.checkJson[i][z].checkCount[
  14515. parseInt(checkL[z][q])
  14516. ]++
  14517. : (this.checkJson[i][z].checkCount[
  14518. parseInt(checkL[z][q])
  14519. ] = 1);
  14520. }
  14521. } else {
  14522. if (
  14523. JSON.parse(data.content)[0].testJson.testJson[z]
  14524. .answer == checkL[z]
  14525. ) {
  14526. this.checkJson[i][z].rightPerson.push(data.name);
  14527. }
  14528. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14529. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14530. ? this.checkJson[i][z].checkPerson[
  14531. parseInt(checkL[z])
  14532. ].push(data.name)
  14533. : (this.checkJson[i][z].checkPerson[
  14534. parseInt(checkL[z])
  14535. ] = [data.name]);
  14536. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14537. ? this.checkJson[i][z].checkCount[
  14538. parseInt(checkL[z])
  14539. ]++
  14540. : (this.checkJson[i][z].checkCount[
  14541. parseInt(checkL[z])
  14542. ] = 1);
  14543. }
  14544. }
  14545. }
  14546. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14547. var checkL = JSON.parse(data.content);
  14548. for (var z = 0; z < checkL.length; z++) {
  14549. if (!this.checkJson[i][z]) {
  14550. this.checkJson[i].push({
  14551. checkCount: [],
  14552. checkPerson: [],
  14553. rightPerson: [],
  14554. });
  14555. }
  14556. this.checkJson[i][z].checkPerson.push(data.name);
  14557. if (
  14558. checkL[z].chooseSenList.toString() ==
  14559. checkL[z].rightAnswer.toString()
  14560. ) {
  14561. this.checkJson[i][z].rightPerson.push(data.name);
  14562. }
  14563. }
  14564. }
  14565. for (var k = 0; k < d.length; k++) {
  14566. //点赞
  14567. if (d[k].workId == b[j].id) {
  14568. likesCount++;
  14569. likeJson.push(d[k])
  14570. if (d[k].likesId == this.userid) {
  14571. isLikes = true;
  14572. }
  14573. }
  14574. }
  14575. for (var l = 0; l < e.length; l++) {
  14576. //评论
  14577. if (e[l].workId == b[j].id) {
  14578. if (e[l].comment != "") {
  14579. commentCount++;
  14580. commentJson.push({
  14581. commentText: e[l].comment,
  14582. commentTime: e[l].commentTime,
  14583. commentPeople: e[l].commentPeople,
  14584. userid: e[l].userid,
  14585. wid: e[l].id,
  14586. });
  14587. }
  14588. }
  14589. }
  14590. if (
  14591. (b[j].type == 1 ||
  14592. b[j].type == 4 ||
  14593. b[j].type == 5 ||
  14594. b[j].type == 6 ||
  14595. b[j].type == 12 ||
  14596. b[j].type == 7) &&
  14597. a[i].tool[0] != 15 &&
  14598. a[i].tool[0] != 4 &&
  14599. a[i].tool[0] != 45 &&
  14600. a[i].tool[0] != 50 &&
  14601. a[i].tool[0] != 32 &&
  14602. a[i].tool[0] != 57 &&
  14603. a[i].tool[0] != 52
  14604. ) {
  14605. if (
  14606. c.indexOf(
  14607. b[j].content
  14608. .split(".")
  14609. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14610. ) != -1 &&
  14611. a[i].tool[0] == 16 &&
  14612. b[j].atool != 50
  14613. ) {
  14614. let _works = {
  14615. userid: b[j].userid,
  14616. ateacher: b[j].ateacher,
  14617. wid: b[j].id,
  14618. works: b[j].content,
  14619. sName: b[j].name,
  14620. type: 1,
  14621. ttype:b[j].ttype,
  14622. time: b[j].time,
  14623. score: b[j].score,
  14624. img: b[j].img,
  14625. likesCount: likesCount,
  14626. commentCount: commentCount,
  14627. isLikes: isLikes,
  14628. commentJson: commentJson,
  14629. likeJson:likeJson
  14630. };
  14631. if (this.isGroup) {
  14632. let isGw = 1;
  14633. for (
  14634. var groupI = 0;
  14635. groupI < this.courseGroup.group.length;
  14636. groupI++
  14637. ) {
  14638. let gid = this.courseGroup.group[groupI].id;
  14639. if (
  14640. this.courseGroupStudentUid[gid].indexOf(
  14641. b[j].userid
  14642. ) != -1
  14643. ) {
  14644. isGw = 2;
  14645. this.courseGroup.group[groupI].works[i].push(_works);
  14646. break;
  14647. }
  14648. }
  14649. if (isGw == 1) {
  14650. _worksStudent[i].push(_works);
  14651. }
  14652. } else {
  14653. _worksStudent[i].push(_works);
  14654. }
  14655. _worksStudent2[i].push(_works);
  14656. this.isWorksS[i].push({
  14657. uid: b[j].userid,
  14658. sName: b[j].name,
  14659. });
  14660. } else if (
  14661. y.indexOf(
  14662. b[j].content
  14663. .split(".")
  14664. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14665. ) != -1 &&
  14666. a[i].tool[0] == 16 &&
  14667. b[j].atool != 50
  14668. ) {
  14669. let _works = {
  14670. userid: b[j].userid,
  14671. ateacher: b[j].ateacher,
  14672. wid: b[j].id,
  14673. works: b[j].content,
  14674. sName: b[j].name,
  14675. type: 3,
  14676. ttype:b[j].ttype,
  14677. time: b[j].time,
  14678. score: b[j].score,
  14679. img: b[j].img,
  14680. likesCount: likesCount,
  14681. commentCount: commentCount,
  14682. isLikes: isLikes,
  14683. commentJson: commentJson,
  14684. likeJson:likeJson
  14685. };
  14686. if (this.isGroup) {
  14687. let isGw = 1;
  14688. for (
  14689. var groupI = 0;
  14690. groupI < this.courseGroup.group.length;
  14691. groupI++
  14692. ) {
  14693. let gid = this.courseGroup.group[groupI].id;
  14694. if (
  14695. this.courseGroupStudentUid[gid].indexOf(
  14696. b[j].userid
  14697. ) != -1
  14698. ) {
  14699. isGw = 2;
  14700. this.courseGroup.group[groupI].works[i].push(_works);
  14701. break;
  14702. }
  14703. }
  14704. if (isGw == 1) {
  14705. _worksStudent[i].push(_works);
  14706. }
  14707. } else {
  14708. _worksStudent[i].push(_works);
  14709. }
  14710. _worksStudent2[i].push(_works);
  14711. this.isWorksS[i].push({
  14712. uid: b[j].userid,
  14713. sName: b[j].name,
  14714. });
  14715. } else if (b[j].type == 6 && b[j].atool != 50) {
  14716. let _works = {
  14717. userid: b[j].userid,
  14718. ateacher: b[j].ateacher,
  14719. wid: b[j].id,
  14720. works: b[j].content,
  14721. sName: b[j].name,
  14722. type: 4,
  14723. ttype:b[j].ttype,
  14724. time: b[j].time,
  14725. score: b[j].score,
  14726. img: b[j].img,
  14727. likesCount: likesCount,
  14728. commentCount: commentCount,
  14729. isLikes: isLikes,
  14730. commentJson: commentJson,
  14731. likeJson:likeJson
  14732. };
  14733. _worksStudent[i].push(_works);
  14734. _worksStudent2[i].push(_works);
  14735. this.isWorksS[i].push({
  14736. uid: b[j].userid,
  14737. sName: b[j].name,
  14738. });
  14739. } else if (b[j].type == 7 && b[j].atool != 50) {
  14740. let _work = {
  14741. userid: b[j].userid,
  14742. ateacher: b[j].ateacher,
  14743. wid: b[j].id,
  14744. works: b[j].content,
  14745. sName: b[j].name,
  14746. type: 5,
  14747. ttype:b[j].ttype,
  14748. time: b[j].time,
  14749. score: b[j].score,
  14750. img: b[j].img,
  14751. likesCount: likesCount,
  14752. commentCount: commentCount,
  14753. isLikes: isLikes,
  14754. commentJson: commentJson,
  14755. likeJson:likeJson
  14756. };
  14757. _worksStudent[i].push(_work);
  14758. _worksStudent2[i].push(_work);
  14759. this.isWorksS[i].push({
  14760. uid: b[j].userid,
  14761. sName: b[j].name,
  14762. });
  14763. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14764. let _works = {
  14765. userid: b[j].userid,
  14766. ateacher: b[j].ateacher,
  14767. wid: b[j].id,
  14768. works: b[j].content,
  14769. sName: b[j].name,
  14770. type: 12,
  14771. ttype:b[j].ttype,
  14772. time: b[j].time,
  14773. score: b[j].score,
  14774. img: b[j].img,
  14775. likesCount: likesCount,
  14776. commentCount: commentCount,
  14777. isLikes: isLikes,
  14778. commentJson: commentJson,
  14779. likeJson:likeJson
  14780. };
  14781. if (this.isGroup) {
  14782. let isGw = 1;
  14783. for (
  14784. var groupI = 0;
  14785. groupI < this.courseGroup.group.length;
  14786. groupI++
  14787. ) {
  14788. let gid = this.courseGroup.group[groupI].id;
  14789. if (
  14790. this.courseGroupStudentUid[gid].indexOf(
  14791. b[j].userid
  14792. ) != -1
  14793. ) {
  14794. isGw = 2;
  14795. this.courseGroup.group[groupI].works[i].push(_works);
  14796. break;
  14797. }
  14798. }
  14799. if (isGw == 1) {
  14800. _worksStudent[i].push(_works);
  14801. }
  14802. } else {
  14803. _worksStudent[i].push(_works);
  14804. }
  14805. _worksStudent2[i].push(_works);
  14806. this.isWorksS[i].push({
  14807. uid: b[j].userid,
  14808. sName: b[j].name,
  14809. });
  14810. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14811. let _works = {
  14812. userid: b[j].userid,
  14813. ateacher: b[j].ateacher,
  14814. wid: b[j].id,
  14815. works: b[j].content,
  14816. sName: b[j].name,
  14817. type: 0,
  14818. ttype:b[j].ttype,
  14819. time: b[j].time,
  14820. score: b[j].score,
  14821. img: b[j].img,
  14822. likesCount: likesCount,
  14823. commentCount: commentCount,
  14824. isLikes: isLikes,
  14825. commentJson: commentJson,
  14826. likeJson:likeJson
  14827. };
  14828. if (this.isGroup) {
  14829. let isGw = 1;
  14830. for (
  14831. var groupI = 0;
  14832. groupI < this.courseGroup.group.length;
  14833. groupI++
  14834. ) {
  14835. let gid = this.courseGroup.group[groupI].id;
  14836. if (
  14837. this.courseGroupStudentUid[gid].indexOf(
  14838. b[j].userid
  14839. ) != -1
  14840. ) {
  14841. isGw = 2;
  14842. this.courseGroup.group[groupI].works[i].push(_works);
  14843. break;
  14844. }
  14845. }
  14846. if (isGw == 1) {
  14847. _worksStudent[i].push(_works);
  14848. }
  14849. } else {
  14850. _worksStudent[i].push(_works);
  14851. }
  14852. _worksStudent2[i].push(_works);
  14853. this.isWorksS[i].push({
  14854. uid: b[j].userid,
  14855. sName: b[j].name,
  14856. });
  14857. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14858. let _works = {
  14859. userid: b[j].userid,
  14860. ateacher: b[j].ateacher,
  14861. wid: b[j].id,
  14862. works: b[j].content,
  14863. sName: b[j].name,
  14864. type: 0,
  14865. ttype:b[j].ttype,
  14866. time: b[j].time,
  14867. score: b[j].score,
  14868. img: b[j].img,
  14869. likesCount: likesCount,
  14870. commentCount: commentCount,
  14871. isLikes: isLikes,
  14872. commentJson: commentJson,
  14873. likeJson:likeJson
  14874. };
  14875. if (this.isGroup) {
  14876. let isGw = 1;
  14877. for (
  14878. var groupI = 0;
  14879. groupI < this.courseGroup.group.length;
  14880. groupI++
  14881. ) {
  14882. let gid = this.courseGroup.group[groupI].id;
  14883. if (
  14884. this.courseGroupStudentUid[gid].indexOf(
  14885. b[j].userid
  14886. ) != -1
  14887. ) {
  14888. isGw = 2;
  14889. this.courseGroup.group[groupI].works[i].push(_works);
  14890. break;
  14891. }
  14892. }
  14893. if (isGw == 1) {
  14894. _worksStudent[i].push(_works);
  14895. }
  14896. } else {
  14897. _worksStudent[i].push(_works);
  14898. }
  14899. _worksStudent2[i].push(_works);
  14900. this.isWorksS[i].push({
  14901. uid: b[j].userid,
  14902. sName: b[j].name,
  14903. });
  14904. }
  14905. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14906. let _works = {
  14907. userid: b[j].userid,
  14908. ateacher: b[j].ateacher,
  14909. wid: b[j].id,
  14910. works: b[j].content,
  14911. sName: b[j].name,
  14912. type: 2,
  14913. ttype:b[j].ttype,
  14914. time: b[j].time,
  14915. score: b[j].score,
  14916. img: b[j].img,
  14917. likesCount: likesCount,
  14918. commentCount: commentCount,
  14919. isLikes: isLikes,
  14920. commentJson: commentJson,
  14921. likeJson:likeJson
  14922. };
  14923. if (this.isGroup) {
  14924. let isGw = 1;
  14925. for (
  14926. var groupI = 0;
  14927. groupI < this.courseGroup.group.length;
  14928. groupI++
  14929. ) {
  14930. let gid = this.courseGroup.group[groupI].id;
  14931. if (
  14932. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14933. -1
  14934. ) {
  14935. isGw = 2;
  14936. this.courseGroup.group[groupI].works[i].push(_works);
  14937. break;
  14938. }
  14939. }
  14940. if (isGw == 1) {
  14941. _worksStudent[i].push(_works);
  14942. }
  14943. } else {
  14944. _worksStudent[i].push(_works);
  14945. }
  14946. _worksStudent2[i].push(_works);
  14947. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14948. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14949. //问卷
  14950. let _work = {
  14951. userid: b[j].userid,
  14952. ateacher: b[j].ateacher,
  14953. wid: b[j].id,
  14954. works: b[j].content,
  14955. sName: b[j].name,
  14956. type: 2,
  14957. ttype:b[j].ttype,
  14958. time: b[j].time,
  14959. score: b[j].score,
  14960. img: b[j].img,
  14961. likesCount: likesCount,
  14962. commentCount: commentCount,
  14963. isLikes: isLikes,
  14964. commentJson: commentJson,
  14965. likeJson:likeJson
  14966. };
  14967. _worksStudent[i].push(_work);
  14968. _worksStudent2[i].push(_work);
  14969. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14970. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14971. //选择题
  14972. let _work = {
  14973. userid: b[j].userid,
  14974. ateacher: b[j].ateacher,
  14975. wid: b[j].id,
  14976. works: b[j].content,
  14977. sName: b[j].name,
  14978. type: 8,
  14979. ttype:b[j].ttype,
  14980. time: b[j].time,
  14981. score: b[j].score,
  14982. img: b[j].img,
  14983. likesCount: likesCount,
  14984. commentCount: commentCount,
  14985. isLikes: isLikes,
  14986. commentJson: commentJson,
  14987. likeJson:likeJson
  14988. };
  14989. _worksStudent[i].push(_work);
  14990. _worksStudent2[i].push(_work);
  14991. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14992. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14993. //选择题
  14994. let _work = {
  14995. userid: b[j].userid,
  14996. ateacher: b[j].ateacher,
  14997. wid: b[j].id,
  14998. works: b[j].content,
  14999. sName: b[j].name,
  15000. type: 9,
  15001. ttype:b[j].ttype,
  15002. time: b[j].time,
  15003. score: b[j].score,
  15004. img: b[j].img,
  15005. likesCount: likesCount,
  15006. commentCount: commentCount,
  15007. isLikes: isLikes,
  15008. commentJson: commentJson,
  15009. likeJson:likeJson
  15010. };
  15011. _worksStudent[i].push(_work);
  15012. _worksStudent2[i].push(_work);
  15013. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15014. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15015. //选择题
  15016. let _work = {
  15017. userid: b[j].userid,
  15018. ateacher: b[j].ateacher,
  15019. wid: b[j].id,
  15020. works: b[j].content,
  15021. sName: b[j].name,
  15022. type: 10,
  15023. ttype:b[j].ttype,
  15024. time: b[j].time,
  15025. score: b[j].score,
  15026. img: b[j].img,
  15027. likesCount: likesCount,
  15028. commentCount: commentCount,
  15029. isLikes: isLikes,
  15030. commentJson: commentJson,
  15031. likeJson:likeJson
  15032. };
  15033. _worksStudent[i].push(_work);
  15034. _worksStudent2[i].push(_work);
  15035. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15036. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15037. //选择题
  15038. let _work = {
  15039. userid: b[j].userid,
  15040. ateacher: b[j].ateacher,
  15041. wid: b[j].id,
  15042. works: b[j].content,
  15043. sName: b[j].name,
  15044. type: 13,
  15045. ttype:b[j].ttype,
  15046. time: b[j].time,
  15047. score: b[j].score,
  15048. img: b[j].img,
  15049. likesCount: likesCount,
  15050. commentCount: commentCount,
  15051. isLikes: isLikes,
  15052. commentJson: commentJson,
  15053. likeJson:likeJson
  15054. };
  15055. _worksStudent[i].push(_work);
  15056. _worksStudent2[i].push(_work);
  15057. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15058. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15059. //选择题
  15060. let _work = {
  15061. userid: b[j].userid,
  15062. ateacher: b[j].ateacher,
  15063. wid: b[j].id,
  15064. works: b[j].content,
  15065. sName: b[j].name,
  15066. type: 16,
  15067. ttype:b[j].ttype,
  15068. time: b[j].time,
  15069. score: b[j].score,
  15070. img: b[j].img,
  15071. likesCount: likesCount,
  15072. commentCount: commentCount,
  15073. isLikes: isLikes,
  15074. commentJson: commentJson,
  15075. aiCode: b[j].aiCode,
  15076. teacherCode: b[j].teacherCode,
  15077. likeJson:likeJson
  15078. };
  15079. _worksStudent[i].push(_work);
  15080. _worksStudent2[i].push(_work);
  15081. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15082. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15083. //选择题
  15084. let _work = {
  15085. userid: b[j].userid,
  15086. ateacher: b[j].ateacher,
  15087. wid: b[j].id,
  15088. works: b[j].content,
  15089. sName: b[j].name,
  15090. type: 17,
  15091. ttype:b[j].ttype,
  15092. time: b[j].time,
  15093. score: b[j].score,
  15094. img: b[j].img,
  15095. likesCount: likesCount,
  15096. commentCount: commentCount,
  15097. isLikes: isLikes,
  15098. commentJson: commentJson,
  15099. likeJson:likeJson
  15100. };
  15101. _worksStudent[i].push(_work);
  15102. _worksStudent2[i].push(_work);
  15103. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15104. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15105. //交互视频
  15106. let _work = {
  15107. userid: b[j].userid,
  15108. ateacher: b[j].ateacher,
  15109. wid: b[j].id,
  15110. works: b[j].content,
  15111. sName: b[j].name,
  15112. type: 14,
  15113. ttype:b[j].ttype,
  15114. time: b[j].time,
  15115. score: b[j].score,
  15116. img: b[j].img,
  15117. likesCount: likesCount,
  15118. commentCount: commentCount,
  15119. isLikes: isLikes,
  15120. commentJson: commentJson,
  15121. likeJson:likeJson
  15122. };
  15123. _worksStudent[i].push(_work);
  15124. _worksStudent2[i].push(_work);
  15125. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15126. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15127. let _gindex = JSON.parse(b[j].content);
  15128. if (
  15129. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15130. b[j].userid
  15131. ) != -1
  15132. ) {
  15133. let _work = {
  15134. userid: b[j].userid,
  15135. ateacher: b[j].ateacher,
  15136. wid: b[j].id,
  15137. works: _gindex.url,
  15138. sName: b[j].name,
  15139. type: _gindex.type,
  15140. ttype:b[j].ttype,
  15141. time: b[j].time,
  15142. score: b[j].score,
  15143. img: b[j].img,
  15144. likesCount: likesCount,
  15145. commentCount: commentCount,
  15146. isLikes: isLikes,
  15147. commentJson: commentJson,
  15148. likeJson:likeJson
  15149. };
  15150. _worksStudent[i][_gindex.groupIndex].push(_work);
  15151. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15152. }
  15153. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15154. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15155. let _work = {
  15156. userid: b[j].userid,
  15157. ateacher: b[j].ateacher,
  15158. wid: b[j].id,
  15159. works: b[j].content,
  15160. sName: b[j].name ? b[j].name : b[j].userid,
  15161. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15162. ttype:b[j].ttype,
  15163. time: b[j].time,
  15164. score: b[j].score,
  15165. img: b[j].img,
  15166. likesCount: likesCount,
  15167. commentCount: commentCount,
  15168. isLikes: isLikes,
  15169. commentJson: commentJson,
  15170. likeJson:likeJson
  15171. };
  15172. _worksStudent[i].push(_work);
  15173. _worksStudent2[i].push(_work);
  15174. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15175. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  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 == 12
  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: 12,
  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. } else if (
  15222. a[i].tool[0] == 57 &&
  15223. b[j].atool == 57 &&
  15224. b[j].type == 15
  15225. ) {
  15226. let _work = {
  15227. userid: b[j].userid,
  15228. ateacher: b[j].ateacher,
  15229. wid: b[j].id,
  15230. works: b[j].content,
  15231. sName: b[j].name ? b[j].name : b[j].userid,
  15232. type: 15,
  15233. ttype:b[j].ttype,
  15234. time: b[j].time,
  15235. score: b[j].score,
  15236. img: b[j].img,
  15237. likesCount: likesCount,
  15238. commentCount: commentCount,
  15239. isLikes: isLikes,
  15240. commentJson: commentJson,
  15241. likeJson:likeJson
  15242. };
  15243. _worksStudent[i].push(_work);
  15244. _worksStudent2[i].push(_work);
  15245. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15246. }
  15247. }
  15248. }
  15249. if (_worksStudent[i] && _worksStudent[i].length) {
  15250. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15251. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15252. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15253. var scoreA = parseFloat(jscoreA);
  15254. var scoreB = parseFloat(jscoreB);
  15255. if (scoreA == scoreB) {
  15256. return b.likesCount - a.likesCount;
  15257. }
  15258. return scoreB - scoreA;
  15259. });
  15260. if (this.isGroup) {
  15261. for (
  15262. var groupI = 0;
  15263. groupI < this.courseGroup.group.length;
  15264. groupI++
  15265. ) {
  15266. this.courseGroup.group[groupI].works[i] =
  15267. this.courseGroup.group[groupI].works[i].sort(function (
  15268. a,
  15269. b
  15270. ) {
  15271. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15272. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15273. var scoreA = parseFloat(jscoreA);
  15274. var scoreB = parseFloat(jscoreB);
  15275. if (scoreA == scoreB) {
  15276. return b.likesCount - a.likesCount;
  15277. }
  15278. return scoreB - scoreA;
  15279. });
  15280. }
  15281. }
  15282. }
  15283. }
  15284. this.timeWorkList = _worksStudent2;
  15285. for (var i = 0; i < a.length; i++) {
  15286. for (var j = 0; j < b.length; j++) {
  15287. var data = b[j];
  15288. if (i == b[j].tool) {
  15289. if (data.type == 2 || data.type == 8) {
  15290. for (var z = 0; z < this.checkJson[i].length; z++) {
  15291. this.checkJson[i][z].checkPerent = [];
  15292. this.checkJson[i][z].right = Math.round(
  15293. (this.checkJson[i][z].rightPerson.length /
  15294. parseInt(_worksStudent[i].length)) *
  15295. 100
  15296. );
  15297. let aaaa = this.checkJson[i][z];
  15298. for (
  15299. var k = 0;
  15300. k < this.checkJson[i][z].checkCount.length;
  15301. k++
  15302. ) {
  15303. this.checkJson[i][z].checkPerent.push(
  15304. Math.round(
  15305. (this.checkJson[i][z].checkCount[k] /
  15306. parseInt(_worksStudent[i].length)) *
  15307. 100
  15308. )
  15309. );
  15310. }
  15311. }
  15312. } else if (data.type == 9) {
  15313. for (var z = 0; z < this.checkJson[i].length; z++) {
  15314. this.checkJson[i][z].checkPerent = [];
  15315. this.checkJson[i][z].right = Math.round(
  15316. (this.checkJson[i][z].rightPerson.length /
  15317. this.checkJson[i][z].checkPerson.length) *
  15318. 100
  15319. );
  15320. }
  15321. }
  15322. }
  15323. }
  15324. }
  15325. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15326. this.joinGroup(gindex);
  15327. }
  15328. this.worksStudent = _worksStudent;
  15329. this.selectWorksStudent();
  15330. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15331. this.$nextTick(()=>{
  15332. setTimeout(()=>{
  15333. setTimeout(()=>{
  15334. this.panToolHeight('tool-'+ci);
  15335. }, 500)
  15336. }, 0)
  15337. })
  15338. }
  15339. })
  15340. .catch((err) => {
  15341. console.error(err);
  15342. });
  15343. },
  15344. pngToWhiteBg(file) {
  15345. const _file = file;
  15346. let read = new FileReader();
  15347. read.readAsDataURL(file); // 文件转base64
  15348. return new Promise((resolve, reject) => {
  15349. read.onload = (e) => {
  15350. let img = new Image();
  15351. img.src = e.target.result;
  15352. img.onload = async () => {
  15353. // 生成canvas
  15354. let canvas = document.createElement("canvas");
  15355. let context = canvas.getContext("2d");
  15356. // 绘制图片到canvas上
  15357. canvas.width = img.width;
  15358. canvas.height = img.height;
  15359. // 在canvas绘制前填充白色背景
  15360. context.fillStyle = "#fff";
  15361. context.fillRect(0, 0, canvas.width, canvas.height);
  15362. context.drawImage(img, 0, 0);
  15363. let base64 = canvas.toDataURL(file["type"], 1);
  15364. let newFile = this.dataUrlToFile(base64, _file);
  15365. resolve(newFile);
  15366. };
  15367. };
  15368. });
  15369. },
  15370. dataUrlToFile(dataurl, file) {
  15371. let arr = dataurl.split(","),
  15372. mime = arr[0].match(/:(.*?);/)[1],
  15373. bstr = atob(arr[1]),
  15374. n = bstr.length,
  15375. u8arr = new Uint8Array(n);
  15376. while (n--) {
  15377. u8arr[n] = bstr.charCodeAt(n);
  15378. }
  15379. // return new Blob([u8arr], { type: mime });
  15380. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15381. type: mime,
  15382. });
  15383. },
  15384. async beforeUpload1(event, type, i) {
  15385. // this.$message.success('进入上传')
  15386. var file = "";
  15387. if (type == 5) {
  15388. file = event;
  15389. } else {
  15390. file = event.target.files[0];
  15391. }
  15392. var credentials = {
  15393. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15394. secretAccessKey: "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",
  15395. }; //秘钥形式的登录上传
  15396. window.AWS.config.update(credentials);
  15397. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15398. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15399. var _this = this;
  15400. _this.progress = 0;
  15401. _this.proVisible = true;
  15402. _this.isFinishSize = 0;
  15403. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15404. var b = [
  15405. "DOC",
  15406. "DOCX",
  15407. "DOCM",
  15408. "DOTM",
  15409. "DOTX",
  15410. "PPTX",
  15411. "PPSX",
  15412. "PPT",
  15413. "PPS",
  15414. "PPTM",
  15415. "POTM",
  15416. "PPAM",
  15417. "POTX",
  15418. "PPSM",
  15419. ];
  15420. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15421. var photoA = [
  15422. "BMP",
  15423. "GIF",
  15424. "PNG",
  15425. "JPEG",
  15426. "JPEG",
  15427. "JPG",
  15428. "TIF",
  15429. "PCX",
  15430. "TGA",
  15431. "EXIF",
  15432. "FPX",
  15433. "SVG",
  15434. "APNG",
  15435. ];
  15436. // if (
  15437. // b.indexOf(
  15438. // file.name
  15439. // .split(".")
  15440. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15441. // ) != -1
  15442. // ) {
  15443. // if (file.size / 1024 / 1024 > 10) {
  15444. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15445. // return;
  15446. // }
  15447. // } else if (
  15448. // excelA.indexOf(
  15449. // file.name
  15450. // .split(".")
  15451. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15452. // ) != "-1"
  15453. // ) {
  15454. // if (file.size / 1024 / 1024 > 5) {
  15455. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15456. // return;
  15457. // }
  15458. // }
  15459. if (
  15460. photoA.indexOf(
  15461. file.name
  15462. .split(".")
  15463. [file.name.split(".").length - 1].toLocaleUpperCase()
  15464. ) != -1 &&
  15465. type != 4
  15466. ) {
  15467. // const blob = await imageConversion.compress(file, 0.8)
  15468. file = await this.pngToWhiteBg(file);
  15469. const blob = await imageConversion.compressAccurately(file, 256);
  15470. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15471. file = new File([blob], file.name, { type: file.type });
  15472. }
  15473. if (file) {
  15474. var params = {
  15475. Key:
  15476. file.name.split(".")[0] +
  15477. new Date().getTime() +
  15478. "." +
  15479. file.name.split(".")[file.name.split(".").length - 1],
  15480. ContentType: file.type,
  15481. Body: file,
  15482. "Access-Control-Allow-Credentials": "*",
  15483. ACL: "public-read",
  15484. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15485. var options = {
  15486. // partSize: 2048 * 1024 * 1024,
  15487. partSize: 1024 * 1024 * 1024,
  15488. queueSize: 2,
  15489. leavePartsOnError: true,
  15490. };
  15491. bucket
  15492. .upload(params, options)
  15493. .on("httpUploadProgress", function (evt) {
  15494. //这里可以写进度条
  15495. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15496. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15497. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15498. })
  15499. .send(function (err, data) {
  15500. _this.progress = 100;
  15501. _this.isFinishSize = _this.isAllSize;
  15502. setTimeout(() => {
  15503. _this.proVisible = false;
  15504. }, 1000);
  15505. if (err) {
  15506. var a = _this.$refs.upload1.uploadFiles;
  15507. a.splice(a.length - 1, a.length);
  15508. _this.$message.error("上传失败");
  15509. } else {
  15510. // _this.$message.success('上传成功')
  15511. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15512. var c = [
  15513. "AVI",
  15514. "NAVI",
  15515. "MPEG",
  15516. "ASF",
  15517. "MOV",
  15518. "WMV",
  15519. "3GP",
  15520. "RM",
  15521. "RMVB",
  15522. "FLV",
  15523. "F4V",
  15524. "H.264",
  15525. "H.265",
  15526. "REAL VIDEO",
  15527. "MKV",
  15528. "WebM",
  15529. "HDDVD",
  15530. "MP4",
  15531. "MPG",
  15532. "M4V",
  15533. "MGV",
  15534. "OGV",
  15535. "QTM",
  15536. "STR",
  15537. "AMC",
  15538. "DVX",
  15539. "EVO",
  15540. "DAT",
  15541. "OGG",
  15542. "OGM",
  15543. ];
  15544. if (type == 1) {
  15545. _this.studyJuri[0].cover.push({
  15546. name: file.name,
  15547. url: data.Location,
  15548. uid: file.uid,
  15549. });
  15550. if (
  15551. c.indexOf(
  15552. _this.studyJuri[0].cover[0].url
  15553. .split(".")
  15554. [
  15555. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15556. ].toLocaleUpperCase()
  15557. ) != -1
  15558. ) {
  15559. _this.fileType = 2;
  15560. } else if (
  15561. b.indexOf(
  15562. _this.studyJuri[0].cover[0].url
  15563. .split(".")
  15564. [
  15565. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15566. ].toLocaleUpperCase()
  15567. ) != -1
  15568. ) {
  15569. _this.fileType = 1;
  15570. } else if (
  15571. photoA.indexOf(
  15572. _this.studyJuri[0].cover[0].url
  15573. .split(".")
  15574. [
  15575. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15576. ].toLocaleUpperCase()
  15577. ) != -1
  15578. ) {
  15579. _this.fileType = 0;
  15580. } else {
  15581. _this.fileType = 3;
  15582. }
  15583. _this.imgChange(null, null, type);
  15584. } else if (type == 2) {
  15585. _this.upToolImg = data.Location;
  15586. _this.imgChange(null, null, type);
  15587. _this.addCourseWorks(i);
  15588. } else if (type == 4) {
  15589. _this.addPz("3", data.Location);
  15590. } else if (type == 5) {
  15591. _this.addImgDrawImG(data.Location);
  15592. } else if (type == 6) {
  15593. var _ftype = 1;
  15594. if (
  15595. c.indexOf(
  15596. data.Location.split(".")[
  15597. data.Location.split(".").length - 1
  15598. ].toLocaleUpperCase()
  15599. ) != -1
  15600. ) {
  15601. _ftype = 5;
  15602. } else if (
  15603. b.indexOf(
  15604. data.Location.split(".")[
  15605. data.Location.split(".").length - 1
  15606. ].toLocaleUpperCase()
  15607. ) != -1
  15608. ) {
  15609. _ftype = 4;
  15610. } else {
  15611. _ftype = 1;
  15612. }
  15613. _this.plworkFile.push({
  15614. name: file.name,
  15615. url: data.Location,
  15616. uid: file.uid,
  15617. fileType: _ftype,
  15618. username:
  15619. _this.plworkFile.length > 10
  15620. ? _this.plworkFile.length + 1
  15621. : "0" + (_this.plworkFile.length + 1),
  15622. });
  15623. } else if (type == 7) {
  15624. _this.addCourseWorksGong(i, data.Location, 32);
  15625. } else if (type == 8) {
  15626. _this.addCourseWorksGong(i, data.Location, 57);
  15627. }
  15628. _this.imgChange(null, null, type);
  15629. console.log(data.Location);
  15630. // _this.$message.success('上传成功'+data.Location)
  15631. }
  15632. });
  15633. }
  15634. },
  15635. async beforeUpload3(event, type, i) {
  15636. // this.$message.success('进入上传')
  15637. let file = "";
  15638. let cfindex2 = 0;
  15639. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15640. file = event.target.files[cfindex];
  15641. var credentials = {
  15642. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15643. secretAccessKey: "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",
  15644. }; //秘钥形式的登录上传
  15645. window.AWS.config.update(credentials);
  15646. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15647. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15648. var _this = this;
  15649. // _this.progress = 0;
  15650. _this.proVisible2 = true;
  15651. var b = [
  15652. "DOC",
  15653. "DOCX",
  15654. "DOCM",
  15655. "DOTM",
  15656. "DOTX",
  15657. "PPTX",
  15658. "PPSX",
  15659. "PPT",
  15660. "PPS",
  15661. "PPTM",
  15662. "POTM",
  15663. "PPAM",
  15664. "POTX",
  15665. "PPSM",
  15666. ];
  15667. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15668. var photoA = [
  15669. "BMP",
  15670. "GIF",
  15671. "PNG",
  15672. "JPEG",
  15673. "JPG",
  15674. "TIF",
  15675. "PCX",
  15676. "TGA",
  15677. "EXIF",
  15678. "FPX",
  15679. "SVG",
  15680. "APNG",
  15681. ];
  15682. if (
  15683. photoA.indexOf(
  15684. file.name
  15685. .split(".")
  15686. [file.name.split(".").length - 1].toLocaleUpperCase()
  15687. ) != -1 &&
  15688. type != 4
  15689. ) {
  15690. // const blob = await imageConversion.compress(file, 0.8)
  15691. file = await this.pngToWhiteBg(file);
  15692. const blob = await imageConversion.compressAccurately(file, 256);
  15693. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15694. file = new File([blob], file.name, { type: file.type });
  15695. }
  15696. if (file) {
  15697. var params = {
  15698. Key:
  15699. file.name.split(".")[0] +
  15700. new Date().getTime() +
  15701. "." +
  15702. file.name.split(".")[file.name.split(".").length - 1],
  15703. ContentType: file.type,
  15704. Body: file,
  15705. "Access-Control-Allow-Credentials": "*",
  15706. ACL: "public-read",
  15707. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15708. var options = {
  15709. // partSize: 2048 * 1024 * 1024,
  15710. partSize: 1024 * 1024 * 1024,
  15711. queueSize: 2,
  15712. leavePartsOnError: true,
  15713. };
  15714. bucket
  15715. .upload(params, options)
  15716. .on("httpUploadProgress", function (evt) {
  15717. //这里可以写进度条
  15718. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15719. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15720. })
  15721. .send(function (err, data) {
  15722. // _this.progress = 100;
  15723. cfindex2++;
  15724. setTimeout(() => {
  15725. if (
  15726. cfindex2 == event.target.files.length - 1 ||
  15727. cfindex2 > event.target.files.length - 1
  15728. ) {
  15729. _this.proVisible2 = false;
  15730. }
  15731. }, 1000);
  15732. if (err) {
  15733. var a = _this.$refs.upload1.uploadFiles;
  15734. a.splice(a.length - 1, a.length);
  15735. _this.$message.error("上传失败");
  15736. } else {
  15737. // _this.$message.success('上传成功')
  15738. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15739. var c = [
  15740. "AVI",
  15741. "NAVI",
  15742. "MPEG",
  15743. "ASF",
  15744. "MOV",
  15745. "WMV",
  15746. "3GP",
  15747. "RM",
  15748. "RMVB",
  15749. "FLV",
  15750. "F4V",
  15751. "H.264",
  15752. "H.265",
  15753. "REAL VIDEO",
  15754. "MKV",
  15755. "WebM",
  15756. "HDDVD",
  15757. "MP4",
  15758. "MPG",
  15759. "M4V",
  15760. "MGV",
  15761. "OGV",
  15762. "QTM",
  15763. "STR",
  15764. "AMC",
  15765. "DVX",
  15766. "EVO",
  15767. "DAT",
  15768. "OGG",
  15769. "OGM",
  15770. ];
  15771. if (type == 1) {
  15772. _this.studyJuri[0].cover.push({
  15773. name: file.name,
  15774. url: data.Location,
  15775. uid: file.uid,
  15776. });
  15777. if (
  15778. c.indexOf(
  15779. _this.studyJuri[0].cover[0].url
  15780. .split(".")
  15781. [
  15782. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15783. ].toLocaleUpperCase()
  15784. ) != -1
  15785. ) {
  15786. _this.fileType = 2;
  15787. } else if (
  15788. b.indexOf(
  15789. _this.studyJuri[0].cover[0].url
  15790. .split(".")
  15791. [
  15792. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15793. ].toLocaleUpperCase()
  15794. ) != -1
  15795. ) {
  15796. _this.fileType = 1;
  15797. } else {
  15798. _this.fileType = 0;
  15799. }
  15800. _this.imgChange(null, null, type);
  15801. } else if (type == 2) {
  15802. _this.upToolImg = data.Location;
  15803. _this.imgChange(null, null, type);
  15804. _this.addCourseWorks(i);
  15805. } else if (type == 4) {
  15806. _this.addPz("3", data.Location);
  15807. } else if (type == 5) {
  15808. _this.addImgDrawImG(data.Location);
  15809. } else if (type == 6) {
  15810. var _ftype = 1;
  15811. if (
  15812. c.indexOf(
  15813. data.Location.split(".")[
  15814. data.Location.split(".").length - 1
  15815. ].toLocaleUpperCase()
  15816. ) != -1
  15817. ) {
  15818. _ftype = 5;
  15819. } else if (
  15820. b.indexOf(
  15821. data.Location.split(".")[
  15822. data.Location.split(".").length - 1
  15823. ].toLocaleUpperCase()
  15824. ) != -1
  15825. ) {
  15826. _ftype = 4;
  15827. } else {
  15828. _ftype = 1;
  15829. }
  15830. _this.plworkFile.push({
  15831. name: file.name,
  15832. url: data.Location,
  15833. uid: file.uid,
  15834. fileType: _ftype,
  15835. username:
  15836. _this.plworkFile.length + 1 > 9
  15837. ? _this.plworkFile.length + 1
  15838. : "0" + (_this.plworkFile.length + 1),
  15839. });
  15840. }
  15841. _this.imgChange(null, null, type);
  15842. console.log(data.Location);
  15843. // _this.$message.success('上传成功'+data.Location)
  15844. }
  15845. });
  15846. }
  15847. }
  15848. },
  15849. beforeUpload2(event, type) {
  15850. var file = event.target.files[0];
  15851. var credentials = {
  15852. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15853. secretAccessKey: "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",
  15854. }; //秘钥形式的登录上传
  15855. window.AWS.config.update(credentials);
  15856. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15857. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15858. var _this = this;
  15859. _this.progress = 0;
  15860. _this.proVisible = true;
  15861. if (file) {
  15862. var params = {
  15863. Key:
  15864. file.name.split(".")[0] +
  15865. new Date().getTime() +
  15866. "." +
  15867. file.name.split(".")[file.name.split(".").length - 1],
  15868. ContentType: file.type,
  15869. Body: file,
  15870. "Access-Control-Allow-Credentials": "*",
  15871. ACL: "public-read",
  15872. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15873. var options = {
  15874. partSize: 2048 * 1024 * 1024,
  15875. queueSize: 2,
  15876. leavePartsOnError: true,
  15877. };
  15878. bucket
  15879. .upload(params, options)
  15880. .on("httpUploadProgress", function (evt) {
  15881. //这里可以写进度条
  15882. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15883. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15884. })
  15885. .send(function (err, data) {
  15886. _this.progress = 100;
  15887. setTimeout(() => {
  15888. _this.proVisible = false;
  15889. }, 1000);
  15890. if (err) {
  15891. var a = _this.$refs.upload1.uploadFiles;
  15892. a.splice(a.length - 1, a.length);
  15893. _this.$message.error("上传失败");
  15894. } else {
  15895. if (type == 2) {
  15896. _this.studyJuri[0].upVedio.push({
  15897. name: file.name,
  15898. url: data.Location,
  15899. uid: file.uid,
  15900. });
  15901. _this.imgChange(null, null, type);
  15902. } else if (type == 3) {
  15903. _this.studyJuri[0].upFile.push({
  15904. name: file.name,
  15905. url: data.Location,
  15906. uid: file.uid,
  15907. });
  15908. _this.imgChange(null, null, type);
  15909. }
  15910. console.log(data.Location);
  15911. }
  15912. });
  15913. }
  15914. },
  15915. allScrell() {
  15916. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15917. },
  15918. nextOrpreSteps(t) {
  15919. if (this.IsFollow && this.tType == 2) {
  15920. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15921. return;
  15922. }
  15923. var b = this.chapInfoList.length - 1;
  15924. if (t == 0) {
  15925. if (this.courseType == 0) {
  15926. if (this.taskCount == 0) {
  15927. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15928. if (this.IsLookOpen) {
  15929. if (
  15930. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15931. ) {
  15932. if (
  15933. this.courseDetail.userid != this.userid &&
  15934. (!this.courseDetail.course_teacher ||
  15935. (this.courseDetail.course_teacher &&
  15936. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  15937. ) {
  15938. this.$message.error("任务未解锁");
  15939. } else {
  15940. this.$message.error("上一任务未解锁");
  15941. }
  15942. return;
  15943. }
  15944. }
  15945. this.navList[this.courseType].isOpen = false;
  15946. this.courseType = b;
  15947. this.taskCount =
  15948. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15949. .length - 1;
  15950. this.navList[this.courseType].isOpen = true;
  15951. } else {
  15952. this.taskCount--;
  15953. }
  15954. } else {
  15955. if (this.taskCount == 0) {
  15956. this.navList[this.courseType].isOpen = false;
  15957. this.courseType--;
  15958. this.taskCount =
  15959. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15960. .length - 1;
  15961. this.navList[this.courseType].isOpen = true;
  15962. } else {
  15963. this.taskCount--;
  15964. }
  15965. }
  15966. } else {
  15967. if (this.courseType == b) {
  15968. if (
  15969. this.taskCount ==
  15970. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15971. 1
  15972. ) {
  15973. this.navList[this.courseType].isOpen = false;
  15974. this.courseType = 0;
  15975. this.taskCount = 0;
  15976. this.navList[this.courseType].isOpen = true;
  15977. } else {
  15978. var bbb = parseInt(this.taskCount) + 1;
  15979. if (
  15980. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15981. .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.taskCount++;
  15992. if (this.IsLookOpen) {
  15993. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15994. this.taskCount
  15995. ].isLook = true;
  15996. this.addCourseState(3);
  15997. }
  15998. }
  15999. } else {
  16000. if (
  16001. this.taskCount ==
  16002. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16003. 1
  16004. ) {
  16005. var bbb = parseInt(this.courseType) + 1;
  16006. if (
  16007. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16008. this.courseDetail.userid != this.userid &&
  16009. (!this.courseDetail.course_teacher ||
  16010. (this.courseDetail.course_teacher &&
  16011. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16012. this.IsLookOpen
  16013. ) {
  16014. this.$message.error("任务未解锁");
  16015. return;
  16016. }
  16017. this.navList[this.courseType].isOpen = false;
  16018. this.courseType++;
  16019. this.taskCount = 0;
  16020. this.navList[this.courseType].isOpen = true;
  16021. } else {
  16022. var bbb = parseInt(this.taskCount) + 1;
  16023. if (
  16024. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16025. .isLook &&
  16026. this.courseDetail.userid != this.userid &&
  16027. (!this.courseDetail.course_teacher ||
  16028. (this.courseDetail.course_teacher &&
  16029. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16030. this.IsLookOpen
  16031. ) {
  16032. this.$message.error("任务未解锁");
  16033. return;
  16034. }
  16035. this.taskCount++;
  16036. }
  16037. if (this.IsLookOpen) {
  16038. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16039. this.taskCount
  16040. ].isLook = true;
  16041. this.addCourseState(3);
  16042. }
  16043. }
  16044. // if (
  16045. // this.taskCount ==
  16046. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16047. // ) {
  16048. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16049. // } else {
  16050. // this.taskCount++;
  16051. // }
  16052. }
  16053. document.scrollingElement.scrollTop = 0;
  16054. this.showType = 7;
  16055. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16056. // if (this.vedio[this.taskCount].length > 0) {
  16057. // var a =
  16058. // document.getElementsByClassName("box_course")[this.taskCount]
  16059. // .offsetHeight;
  16060. // document.getElementsByClassName("vedioList")[
  16061. // this.taskCount
  16062. // ].style.height = a + "px";
  16063. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16064. // a - 40 + "px";
  16065. // }
  16066. this.isNoHomeWork = false;
  16067. (this.studyJuri = [
  16068. {
  16069. content: "",
  16070. cover: [],
  16071. upVedio: [],
  16072. upFile: [],
  16073. },
  16074. ]),
  16075. (this.radio = []);
  16076. this.isClickNav = "";
  16077. this.selectPz();
  16078. this.getHomeWork();
  16079. this.getCourseDetail(2);
  16080. this.$forceUpdate();
  16081. },
  16082. openTask(s, n, i) {
  16083. if (this.IsFollow && this.tType == 2) {
  16084. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16085. return;
  16086. }
  16087. if (this.IsLookOpen) {
  16088. if (
  16089. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16090. this.courseDetail.userid != this.userid &&
  16091. (!this.courseDetail.course_teacher ||
  16092. (this.courseDetail.course_teacher &&
  16093. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16094. ) {
  16095. this.$message.error("任务未解锁");
  16096. return;
  16097. }
  16098. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16099. if (
  16100. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16101. .isLook
  16102. ) {
  16103. this.$message.error("上一任务未解锁");
  16104. return;
  16105. }
  16106. } else if (s > this.courseType) {
  16107. if (n > 0) {
  16108. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16109. this.$message.error("上一任务未解锁");
  16110. return;
  16111. }
  16112. } else {
  16113. if (
  16114. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16115. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16116. ].isLook
  16117. ) {
  16118. this.$message.error("上一任务未解锁");
  16119. return;
  16120. }
  16121. }
  16122. }
  16123. }
  16124. if (this.navList[s].task[n].isOpen == true) {
  16125. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16126. return;
  16127. }
  16128. this.courseType = s;
  16129. this.navId = i;
  16130. this.taskCount = n;
  16131. this.navList[this.courseType].task[this.taskCount].isOpen =
  16132. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16133. if (this.IsLookOpen) {
  16134. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16135. this.taskCount
  16136. ].isLook = true;
  16137. this.addCourseState(3);
  16138. }
  16139. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  16140. this.isCloseList[ci].isClose = 0;
  16141. this.isCloseList[ci].isCloseBoolean = false;
  16142. this.$nextTick(()=>{
  16143. setTimeout(()=>{
  16144. setTimeout(()=>{
  16145. this.panToolHeight('tool-'+ci);
  16146. }, 0)
  16147. }, 0)
  16148. })
  16149. }
  16150. this.showType = 7;
  16151. this.isNoHomeWork = false;
  16152. (this.studyJuri = [
  16153. {
  16154. content: "",
  16155. cover: [],
  16156. upVedio: [],
  16157. upFile: [],
  16158. },
  16159. ]),
  16160. (this.radio = []);
  16161. document.scrollingElement.scrollTop = 0;
  16162. // setTimeout(() => {
  16163. // let a = document.getElementById(i);
  16164. // if (a.offsetTop - 110 == 0) {
  16165. // window.scrollTo(0, 0);
  16166. // } else {
  16167. // window.scrollTo(0, a.offsetTop);
  16168. // }
  16169. // }, 0);
  16170. for (var z = 0; z < this.navList.length; z++) {
  16171. for (var q = 0; q < this.navList[z].task.length; q++) {
  16172. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16173. this.navList[z].task[q].tool[w].isTool = false;
  16174. }
  16175. }
  16176. }
  16177. this.selectPz();
  16178. this.getHomeWork();
  16179. this.getCourseDetail(2);
  16180. },
  16181. get(i) {
  16182. if (this.IsFollow && this.tType == 2) {
  16183. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16184. return;
  16185. }
  16186. // for(var k=0;k<this.navList.length;k++){
  16187. // this.navList[k].isOpen = false;
  16188. // }
  16189. // this.navList[i].isOpen = true;
  16190. this.navList[i].isOpen = !this.navList[i].isOpen;
  16191. if (this.navList[i].isOpen) {
  16192. this.openTask(i, 0, i + "-0");
  16193. }
  16194. },
  16195. addQuestion() {
  16196. this.answerList.push({
  16197. answerTitle: this.answerQ,
  16198. answer: this.questionAnswer,
  16199. });
  16200. let params = [
  16201. {
  16202. uid: this.userid,
  16203. cid: this.id,
  16204. stage: this.courseType,
  16205. task: this.taskCount,
  16206. tool: this.toolindex,
  16207. content: JSON.stringify(this.answerList),
  16208. type: 3,
  16209. },
  16210. ];
  16211. this.ajax
  16212. .post(this.$store.state.api + "addCourseWorks", params)
  16213. .then((res) => {
  16214. this.$message({
  16215. message: "提交成功",
  16216. type: "success",
  16217. });
  16218. this.answerList = [];
  16219. this.answerDialogVisible = false;
  16220. this.selectStudent();
  16221. this.selectSWorks();
  16222. this.selectSLook();
  16223. })
  16224. .catch((err) => {
  16225. this.$message.error("提交失败");
  16226. console.error(err);
  16227. });
  16228. },
  16229. addQuestionTeacher() {
  16230. this.answerList.push({
  16231. answerTitle: this.answerQ,
  16232. answer: this.questionAnswer,
  16233. });
  16234. let params = [
  16235. {
  16236. uid: this.sStudent.userid,
  16237. cid: this.id,
  16238. stage: this.courseType,
  16239. task: this.taskCount,
  16240. tool: this.toolindex,
  16241. content: JSON.stringify(this.answerList),
  16242. type: 3,
  16243. ateacher: this.userid,
  16244. },
  16245. ];
  16246. this.ajax
  16247. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16248. .then((res) => {
  16249. this.$message({
  16250. message: "提交成功",
  16251. type: "success",
  16252. });
  16253. this.answerList = [];
  16254. this.questionAnswer = "";
  16255. this.answerDialogVisibleTeacher = false;
  16256. this.selectStudent();
  16257. this.selectSWorks();
  16258. this.selectSLook();
  16259. })
  16260. .catch((err) => {
  16261. this.$message.error("提交失败");
  16262. console.error(err);
  16263. });
  16264. },
  16265. refreshCourse() {
  16266. // window.location.reload();
  16267. this.navList = [];
  16268. this.getCourseDetail(1);
  16269. },
  16270. getCourseDetail(type, gindex) {
  16271. let loading;
  16272. if (type != 2) {
  16273. loading = this.$loading.service({
  16274. background: "rgba(255, 255, 255, 0.7)",
  16275. target: document.querySelector(".student_table"),
  16276. });
  16277. }
  16278. this.downLoading = false
  16279. // this.navList[0].isOpen = false;
  16280. // this.navList[this.courseType].isOpen = true;
  16281. // this.courseType = this.courseTypeLine;
  16282. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16283. let params = {
  16284. courseId: this.id,
  16285. };
  16286. this.ajax
  16287. .get(this.$store.state.api + "selectCourseDetail3", params)
  16288. .then((res) => {
  16289. if (type != 2) {
  16290. loading.close();
  16291. if (
  16292. this.courseType >
  16293. JSON.parse(res.data[0][0].chapters).length - 1
  16294. ) {
  16295. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16296. }
  16297. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16298. .chapterInfo[0].taskJson;
  16299. var b = [
  16300. "AVI",
  16301. "NAVI",
  16302. "MPEG",
  16303. "ASF",
  16304. "MOV",
  16305. "WMV",
  16306. "3GP",
  16307. "RM",
  16308. "RMVB",
  16309. "FLV",
  16310. "F4V",
  16311. "H.264",
  16312. "H.265",
  16313. "REAL VIDEO",
  16314. "MKV",
  16315. "WebM",
  16316. "HDDVD",
  16317. "MP4",
  16318. "MPG",
  16319. "M4V",
  16320. "MGV",
  16321. "OGV",
  16322. "QTM",
  16323. "STR",
  16324. "AMC",
  16325. "DVX",
  16326. "EVO",
  16327. "DAT",
  16328. "OGG",
  16329. "OGM",
  16330. "MP3",
  16331. ];
  16332. let _chapterData = [];
  16333. for (var i = 0; i < a.length; i++) {
  16334. var c = a[i].chapterData;
  16335. this.vedio[i] = [];
  16336. this.textList[i] = [];
  16337. this.lineList[i] = [];
  16338. this.chapToolList[i] = [];
  16339. this.file[i] = [];
  16340. this.fileC[i] = [];
  16341. _chapterData[i] = c.filter((el) => {
  16342. return el.type != 12;
  16343. });
  16344. this.fileC[i] = c.filter((el) => {
  16345. return el.type == 12;
  16346. });
  16347. // else if (c[j].type == 12) {
  16348. // this.fileC[i].push(c[j]);
  16349. // }
  16350. for (var j = 0; j < c.length; j++) {
  16351. if (c[j].type == 7) {
  16352. this.chapToolList[i].push(c[j]);
  16353. } else if (c[j].type == 8 || c[j].type == 14) {
  16354. this.lineList[i].push(c[j]);
  16355. } else if (c[j].type == 6) {
  16356. this.textList[i].push(c[j]);
  16357. } else {
  16358. if (
  16359. b.indexOf(
  16360. c[j].url
  16361. .split(".")
  16362. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16363. ) != -1
  16364. ) {
  16365. this.vedio[i].push(c[j]);
  16366. } else {
  16367. this.file[i].push(c[j]);
  16368. }
  16369. }
  16370. }
  16371. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16372. d.sources[0].src =
  16373. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16374. this.playerO[i] = d;
  16375. }
  16376. this.courseDetail = res.data[0][0];
  16377. this.tcid = this.arrayToArray(
  16378. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16379. this.tcid2 ? this.tcid2.split(",") : []
  16380. ).join(",");
  16381. this.evalua = res.data[0][0].evaId;
  16382. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16383. this.courseType
  16384. ];
  16385. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16386. if (this.tcid && res.data[1].length) {
  16387. let _inviteA = [];
  16388. for (var ik = 0; ik < res.data[1].length; ik++) {
  16389. _inviteA.push({
  16390. cid: res.data[1][ik].classid,
  16391. ic: res.data[1][ik].code,
  16392. });
  16393. }
  16394. for (var ik = 0; ik < _inviteA.length; ik++) {
  16395. if (
  16396. this.arrayToArray(
  16397. _inviteA[ik].cid.split(","),
  16398. this.tcid.split(",")
  16399. ).length
  16400. ) {
  16401. this.inviteCode = _inviteA[ik].ic;
  16402. break;
  16403. }
  16404. }
  16405. }
  16406. for (var l = 0; l < this.chapInfoList.length; l++) {
  16407. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16408. for (var m = 0; m < w.length; m++) {
  16409. w[m].id = l + "-" + m;
  16410. }
  16411. }
  16412. if (
  16413. _chapterData[this.taskCount].length &&
  16414. _chapterData[this.taskCount][0].type == 2
  16415. ) {
  16416. this.showType = 0;
  16417. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16418. } else {
  16419. if (_chapterData[this.taskCount].length > 0) {
  16420. let _url = _chapterData[this.taskCount][0].url;
  16421. if (
  16422. _chapterData[this.taskCount][0].type == 8 ||
  16423. _chapterData[this.taskCount][0].type == 14
  16424. ) {
  16425. this.showType = 2;
  16426. if (
  16427. _url.indexOf("https://") == -1 &&
  16428. _url.indexOf("http://") == -1
  16429. ) {
  16430. _url = "https://" + _url;
  16431. }
  16432. this.pptImgUrl1 = _url;
  16433. } else if (_chapterData[this.taskCount][0].type == 3) {
  16434. if (
  16435. _url
  16436. .split(".")
  16437. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16438. ) {
  16439. this.showType = 3;
  16440. this.pptImgUrl1 = _url;
  16441. } else if (
  16442. this.isAssetTypeAnImage(
  16443. _url
  16444. .split(".")
  16445. [_url.split(".").length - 1].toLocaleLowerCase()
  16446. )
  16447. ) {
  16448. this.showType = 4;
  16449. this.pptImgUrl1 = _url;
  16450. } else {
  16451. this.showType = 2;
  16452. this.pptImgUrl1 =
  16453. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16454. encodeURIComponent(_url);
  16455. }
  16456. } else if (_chapterData[this.taskCount][0].type == 13) {
  16457. this.showType = 4;
  16458. this.pptImgUrl1 = _url;
  16459. } else if (_chapterData[this.taskCount][0].type == 6) {
  16460. this.showType = 1;
  16461. this.text = this.textList[this.taskCount][0];
  16462. }
  16463. }
  16464. }
  16465. this.isClickNav = 0;
  16466. if (
  16467. !_chapterData[this.taskCount].length ||
  16468. _chapterData[this.taskCount][0].type == 12
  16469. ) {
  16470. this.isClickNav = "";
  16471. this.showType = "";
  16472. }
  16473. this.vChapterData = _chapterData;
  16474. } else {
  16475. this.showType = 0;
  16476. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16477. .chapterInfo[0].taskJson;
  16478. var b = [
  16479. "AVI",
  16480. "NAVI",
  16481. "MPEG",
  16482. "ASF",
  16483. "MOV",
  16484. "WMV",
  16485. "3GP",
  16486. "RM",
  16487. "RMVB",
  16488. "FLV",
  16489. "F4V",
  16490. "H.264",
  16491. "H.265",
  16492. "REAL VIDEO",
  16493. "MKV",
  16494. "WebM",
  16495. "HDDVD",
  16496. "MP4",
  16497. "MPG",
  16498. "M4V",
  16499. "MGV",
  16500. "OGV",
  16501. "QTM",
  16502. "STR",
  16503. "AMC",
  16504. "DVX",
  16505. "EVO",
  16506. "DAT",
  16507. "OGG",
  16508. "OGM",
  16509. "MP3",
  16510. ];
  16511. let _chapterData = [];
  16512. for (var i = 0; i < a.length; i++) {
  16513. var c = a[i].chapterData;
  16514. this.vedio[i] = [];
  16515. this.textList[i] = [];
  16516. this.lineList[i] = [];
  16517. this.chapToolList[i] = [];
  16518. this.file[i] = [];
  16519. this.fileC[i] = [];
  16520. _chapterData[i] = c.filter((el) => {
  16521. return el.type != 12;
  16522. });
  16523. this.fileC[i] = c.filter((el) => {
  16524. return el.type == 12;
  16525. });
  16526. for (var j = 0; j < c.length; j++) {
  16527. if (c[j].type == 7) {
  16528. this.chapToolList[i].push(c[j]);
  16529. } else if (c[j].type == 8 || c[j].type == 14) {
  16530. this.lineList[i].push(c[j]);
  16531. } else if (c[j].type == 6) {
  16532. this.textList[i].push(c[j]);
  16533. } else {
  16534. if (
  16535. b.indexOf(
  16536. c[j].url
  16537. .split(".")
  16538. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16539. ) != -1
  16540. ) {
  16541. this.vedio[i].push(c[j]);
  16542. } else {
  16543. this.file[i].push(c[j]);
  16544. }
  16545. }
  16546. }
  16547. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16548. d.sources[0].src =
  16549. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16550. this.playerO[i] = d;
  16551. }
  16552. if (
  16553. _chapterData[this.taskCount].length &&
  16554. _chapterData[this.taskCount][0].type == 2
  16555. ) {
  16556. this.showType = 0;
  16557. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16558. } else {
  16559. if (_chapterData[this.taskCount].length > 0) {
  16560. let _url = _chapterData[this.taskCount][0].url;
  16561. if (
  16562. _chapterData[this.taskCount][0].type == 8 ||
  16563. _chapterData[this.taskCount][0].type == 14
  16564. ) {
  16565. this.showType = 2;
  16566. if (
  16567. _url.indexOf("https://") == -1 &&
  16568. _url.indexOf("http://") == -1
  16569. ) {
  16570. _url = "https://" + _url;
  16571. }
  16572. this.pptImgUrl1 = _url;
  16573. } else if (_chapterData[this.taskCount][0].type == 3) {
  16574. if (
  16575. _url
  16576. .split(".")
  16577. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16578. ) {
  16579. this.showType = 3;
  16580. this.pptImgUrl1 = _url;
  16581. } else if (
  16582. this.isAssetTypeAnImage(
  16583. _url
  16584. .split(".")
  16585. [_url.split(".").length - 1].toLocaleLowerCase()
  16586. )
  16587. ) {
  16588. this.showType = 4;
  16589. this.pptImgUrl1 = _url;
  16590. } else {
  16591. this.showType = 2;
  16592. this.pptImgUrl1 =
  16593. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16594. encodeURIComponent(_url);
  16595. }
  16596. } else if (_chapterData[this.taskCount][0].type == 13) {
  16597. this.showType = 4;
  16598. this.pptImgUrl1 = _url;
  16599. } else if (_chapterData[this.taskCount][0].type == 6) {
  16600. this.showType = 1;
  16601. this.text = this.textList[this.taskCount][0];
  16602. }
  16603. }
  16604. }
  16605. this.isClickNav = 0;
  16606. if (
  16607. !_chapterData[this.taskCount].length ||
  16608. _chapterData[this.taskCount][0].type == 12
  16609. ) {
  16610. this.isClickNav = "";
  16611. this.showType = "";
  16612. }
  16613. this.vChapterData = _chapterData;
  16614. this.$forceUpdate();
  16615. }
  16616. // else {
  16617. // this.courseDetail = res.data[0][0];
  16618. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16619. // }
  16620. let _this = this;
  16621. if (_this.timer) {
  16622. clearInterval(_this.timer);
  16623. _this.timer = null;
  16624. }
  16625. if (_this.tcid) {
  16626. _this.getCourseGroup(gindex);
  16627. } else {
  16628. _this.selectSWorks(gindex);
  16629. }
  16630. _this.selectStudent();
  16631. _this.selectSLook();
  16632. _this.getPick();
  16633. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16634. _this.setCTask();
  16635. }
  16636. if (_this.dialogVisibleGroup) {
  16637. _this.groupJson =
  16638. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16639. _this.taskCount
  16640. ].toolChoose[_this.toolindex].groupJson;
  16641. }
  16642. _this.$nextTick(() => {
  16643. setTimeout(() => {
  16644. _this.checkEva();
  16645. }, 1000);
  16646. });
  16647. _this.timer = setInterval(function () {
  16648. // _this.getCourseDetail(2);
  16649. if (_this.tcid) {
  16650. _this.getCourseGroup(gindex);
  16651. } else {
  16652. _this.selectSWorks(gindex);
  16653. }
  16654. _this.selectStudent();
  16655. _this.selectSLook();
  16656. _this.getPick();
  16657. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16658. _this.setCTask();
  16659. }
  16660. if (_this.dialogVisibleGroup) {
  16661. _this.groupJson =
  16662. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16663. _this.taskCount
  16664. ].toolChoose[_this.toolindex].groupJson;
  16665. }
  16666. if (_this.tType == 4 || _this.ispzType == 4) {
  16667. _this.selectPz();
  16668. }
  16669. }, 5000);
  16670. _this.$nextTick(function () {
  16671. setTimeout(() => {
  16672. // var a =
  16673. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16674. // document.getElementsByClassName("vedioList")[0].style.height =
  16675. // a + "px";
  16676. // document.getElementsByClassName("navBox")[0].style.height =
  16677. // a - 40 + "px";
  16678. // if (_this.vedio[_this.taskCount].length > 0) {
  16679. // _this.vedioTime = [];
  16680. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16681. // _this.vedioTime[i] = document.getElementsByClassName(
  16682. // "vjs-duration-display"
  16683. // )[i].textContent;
  16684. // }
  16685. // }
  16686. }, 1000);
  16687. });
  16688. })
  16689. .catch((err) => {
  16690. loading.close();
  16691. console.error(err);
  16692. });
  16693. },
  16694. getCourseGroup(gindex) {
  16695. let params = {
  16696. cid: this.id,
  16697. classid: this.tcid ? this.tcid : "1",
  16698. };
  16699. this.ajax
  16700. .get(this.$store.state.api + "getCourseGroup", params)
  16701. .then((res) => {
  16702. if (res.data && res.data[0].length) {
  16703. if (!this.isGroup) {
  16704. let courseGroup = JSON.parse(res.data[0][0].group);
  16705. courseGroup.group = courseGroup.group.filter((el) => {
  16706. el.works = [];
  16707. return el;
  16708. });
  16709. if (courseGroup.isopen == 2) {
  16710. this.isGroup = false;
  16711. this.selectSWorks(gindex);
  16712. return;
  16713. }
  16714. this.courseGroup = courseGroup;
  16715. let groupPerson = res.data[1];
  16716. let group = JSON.parse(res.data[0][0].group).group;
  16717. let courseGroupStudent = {};
  16718. let courseGroupStudentUid = {};
  16719. for (var i = 0; i < group.length; i++) {
  16720. courseGroupStudent[group[i].id] = [];
  16721. courseGroupStudentUid[group[i].id] = [];
  16722. for (var j = 0; j < groupPerson.length; j++) {
  16723. if (groupPerson[j].groupCid == group[i].id) {
  16724. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16725. courseGroupStudentUid[group[i].id].push(
  16726. groupPerson[j].userid
  16727. );
  16728. }
  16729. }
  16730. }
  16731. this.courseGroupStudent = courseGroupStudent;
  16732. this.courseGroupStudentUid = courseGroupStudentUid;
  16733. }
  16734. if (this.courseGroup.isopen == 2) {
  16735. this.isGroup = false;
  16736. } else {
  16737. this.isGroup = true;
  16738. }
  16739. this.selectSWorks(gindex);
  16740. } else {
  16741. this.selectSWorks(gindex);
  16742. this.isGroup = false;
  16743. }
  16744. })
  16745. .catch((err) => {
  16746. // this.$message.error("网络不佳");
  16747. console.error(err);
  16748. });
  16749. },
  16750. setOperationTime() {
  16751. let _this = this;
  16752. if (_this.opertimer) {
  16753. clearInterval(_this.opertimer);
  16754. _this.opertimer = null;
  16755. }
  16756. _this.opertimer = setInterval(() => {
  16757. _this.setoTime("600");
  16758. }, 600000);
  16759. },
  16760. setoTime(time) {
  16761. let params = [
  16762. {
  16763. uid: this.userid,
  16764. cid: this.id,
  16765. type: "2",
  16766. time: time,
  16767. },
  16768. ];
  16769. this.ajax
  16770. .post(this.$store.state.api + "addOperationTimeT2", params)
  16771. .then((res) => {})
  16772. .catch((err) => {
  16773. console.error(err);
  16774. });
  16775. },
  16776. addPz(type, content) {
  16777. if (type == "1" && this.pzConText == "") {
  16778. this.$message.error("评论不能为空!");
  16779. return;
  16780. }
  16781. let params = [
  16782. {
  16783. cid: this.id,
  16784. uid: this.userid,
  16785. s: this.courseType,
  16786. t: this.taskCount,
  16787. c: type == "1" ? this.pzConText : content,
  16788. type: type,
  16789. },
  16790. ];
  16791. this.ajax
  16792. .post(this.$store.state.api + "addPz2", params)
  16793. .then((res) => {
  16794. this.$message({
  16795. message: "添加成功",
  16796. type: "success",
  16797. });
  16798. this.pzConText = "";
  16799. this.addPzDialog = false;
  16800. this.selectPz();
  16801. })
  16802. .catch((err) => {
  16803. this.$message.error("添加失败");
  16804. console.error(err);
  16805. });
  16806. },
  16807. setReplyIndex(id, i) {
  16808. this.replyIndex = i;
  16809. this.replyPid = id;
  16810. this.replyDialogVisible = true;
  16811. },
  16812. addHf() {
  16813. if (this.reply == "") {
  16814. this.$message.error("回复不能为空!");
  16815. return;
  16816. }
  16817. let params = [
  16818. {
  16819. cid: this.id,
  16820. uid: this.userid,
  16821. s: this.courseType,
  16822. t: this.taskCount,
  16823. type: "1",
  16824. ct: 2,
  16825. pid: this.replyPid,
  16826. c: this.reply,
  16827. },
  16828. ];
  16829. this.ajax
  16830. .post(this.$store.state.api + "addHf", params)
  16831. .then((res) => {
  16832. this.reply = "";
  16833. this.$message({
  16834. message: "回复成功",
  16835. type: "success",
  16836. });
  16837. this.replyDialogVisible = false;
  16838. this.selectPz();
  16839. })
  16840. .catch((err) => {
  16841. this.$message.error("回复失败");
  16842. console.error(err);
  16843. });
  16844. },
  16845. deletePz(id) {
  16846. this.$confirm("确定删除此评论吗?", "提示", {
  16847. confirmButtonText: "确定",
  16848. cancelButtonText: "取消",
  16849. type: "warning",
  16850. })
  16851. .then(() => {
  16852. let params = [
  16853. {
  16854. id: id,
  16855. },
  16856. ];
  16857. this.ajax
  16858. .post(this.$store.state.api + "deletePz", params)
  16859. .then((res) => {
  16860. this.$message({
  16861. message: "删除成功",
  16862. type: "success",
  16863. });
  16864. this.selectPz();
  16865. })
  16866. .catch((err) => {
  16867. this.$message.error("网络异常");
  16868. console.error(err);
  16869. });
  16870. })
  16871. .catch(() => {});
  16872. },
  16873. deleteReply(id) {
  16874. this.$confirm("确定删除此回复吗?", "提示", {
  16875. confirmButtonText: "确定",
  16876. cancelButtonText: "取消",
  16877. type: "warning",
  16878. })
  16879. .then(() => {
  16880. let params = [
  16881. {
  16882. id: id,
  16883. },
  16884. ];
  16885. this.ajax
  16886. .post(this.$store.state.api + "deleteReply", params)
  16887. .then((res) => {
  16888. this.$message({
  16889. message: "删除成功",
  16890. type: "success",
  16891. });
  16892. this.selectPz();
  16893. })
  16894. .catch((err) => {
  16895. this.$message.error("网络异常");
  16896. console.error(err);
  16897. });
  16898. })
  16899. .catch(() => {});
  16900. },
  16901. setPz() {
  16902. if (this.ispzType == 4) {
  16903. this.ispzType = 0;
  16904. this.pzDialog = false;
  16905. return;
  16906. }
  16907. this.ispzType = 4;
  16908. this.pzDialog = true;
  16909. this.selectPz();
  16910. },
  16911. selectPz() {
  16912. let params = {
  16913. cid: this.id,
  16914. s: this.courseType,
  16915. t: this.taskCount,
  16916. type: this.pzStype,
  16917. uid: this.userid,
  16918. };
  16919. this.ajax
  16920. .get(this.$store.state.api + "selectPzListType", params)
  16921. .then((res) => {
  16922. this.pzList = res.data[0];
  16923. var a = res.data[1];
  16924. for (var i = 0; i < a.length; i++) {
  16925. for (var j = 0; j < this.pzList.length; j++) {
  16926. if (!this.pzList[j].hfList) {
  16927. this.pzList[j].hfList = [];
  16928. }
  16929. if (a[i].pid == this.pzList[j].id) {
  16930. this.pzList[j].hfList.push(a[i]);
  16931. }
  16932. }
  16933. }
  16934. })
  16935. .catch((err) => {
  16936. console.error(err);
  16937. });
  16938. },
  16939. // selectHf() {
  16940. // let params = {
  16941. // cid: this.id,
  16942. // s: this.courseType,
  16943. // t: this.taskCount,
  16944. // };
  16945. // this.ajax
  16946. // .get(this.$store.state.api + "selectHfList", params)
  16947. // .then((res) => {
  16948. // var a = res.data[0];
  16949. // for (var i = 0; i < a.length; i++) {
  16950. // for (var j = 0; j < this.pzList.length; j++) {
  16951. // if (!this.pzList[i].hfList) {
  16952. // this.pzList[i].hfList = [];
  16953. // }
  16954. // if (a[i].pid == this.pzList[j].id) {
  16955. // this.pzList[i].hfList.push(a[i]);
  16956. // }
  16957. // }
  16958. // }
  16959. // })
  16960. // .catch((err) => {
  16961. // console.error(err);
  16962. // });
  16963. // },
  16964. updateSLook() {
  16965. let params = {
  16966. sopen: this.sIsOpen == false ? 1 : 2,
  16967. cid: this.id,
  16968. };
  16969. this.ajax
  16970. .get(this.$store.state.api + "updateCourseSLook", params)
  16971. .then((res) => {
  16972. if (this.sIsOpen == true) {
  16973. this.$message({
  16974. message: "权限设置成功",
  16975. type: "success",
  16976. });
  16977. } else {
  16978. this.$message({
  16979. message: "权限关闭成功",
  16980. type: "success",
  16981. });
  16982. }
  16983. })
  16984. .catch((err) => {
  16985. console.error(err);
  16986. });
  16987. },
  16988. updateFollow() {
  16989. let params = [
  16990. {
  16991. sopen: this.IsFollow == false ? 1 : 2,
  16992. cid: this.id,
  16993. },
  16994. ];
  16995. this.ajax
  16996. .post(this.$store.state.api + "updateCourseFollow", params)
  16997. .then((res) => {
  16998. if (this.IsFollow == true) {
  16999. this.$message({
  17000. message: "开启成功",
  17001. type: "success",
  17002. });
  17003. } else {
  17004. this.$message({
  17005. message: "关闭成功",
  17006. type: "success",
  17007. });
  17008. }
  17009. this.setCTask();
  17010. })
  17011. .catch((err) => {
  17012. console.error(err);
  17013. });
  17014. },
  17015. setCTask() {
  17016. let params = [
  17017. {
  17018. sopen: this.courseType + "-" + this.taskCount,
  17019. cid: this.id,
  17020. },
  17021. ];
  17022. this.ajax
  17023. .post(this.$store.state.api + "updateCourseFollowC", params)
  17024. .then((res) => {})
  17025. .catch((err) => {
  17026. console.error(err);
  17027. });
  17028. },
  17029. updateLookOpen() {
  17030. let params = [
  17031. {
  17032. sopen: this.IsLookOpen == false ? 1 : 2,
  17033. cid: this.id,
  17034. },
  17035. ];
  17036. this.ajax
  17037. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17038. .then((res) => {
  17039. if (this.IsLookOpen == true) {
  17040. // if (this.courseType != 0 && this.taskCount != 0) {
  17041. // this.openTask(0, 0, "0-0");
  17042. // }
  17043. this.$message({
  17044. message: "权限设置成功",
  17045. type: "success",
  17046. });
  17047. } else {
  17048. this.$message({
  17049. message: "权限关闭成功",
  17050. type: "success",
  17051. });
  17052. }
  17053. this.getCourseState(2);
  17054. })
  17055. .catch((err) => {
  17056. console.error(err);
  17057. });
  17058. },
  17059. selectSLook() {
  17060. let params = {
  17061. cid: this.id,
  17062. };
  17063. this.ajax
  17064. .get(this.$store.state.api + "selectCourseSLook", params)
  17065. .then((res) => {
  17066. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17067. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17068. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17069. if (!this.IsLookOpen) {
  17070. this.setNavList();
  17071. } else {
  17072. this.getCourseState(1);
  17073. }
  17074. if (this.IsFollow && this.tType == 2) {
  17075. this.setContent2(false);
  17076. let _followC = res.data[0][0].followC.split("-");
  17077. if (
  17078. this.courseType != _followC[0] ||
  17079. this.taskCount != _followC[1]
  17080. ) {
  17081. this.navList[this.courseType].isOpen = false;
  17082. this.courseType = _followC[0];
  17083. this.navList[this.courseType].isOpen = true;
  17084. this.taskCount = parseInt(_followC[1]);
  17085. this.navId = res.data[0][0].followC;
  17086. document.scrollingElement.scrollTop = 0;
  17087. this.getCourseDetail(2);
  17088. }
  17089. }
  17090. })
  17091. .catch((err) => {
  17092. console.error(err);
  17093. });
  17094. },
  17095. setNavList() {
  17096. if (this.navList.length == 0) {
  17097. this.navList = [];
  17098. var copyList = [];
  17099. for (var l = 0; l < this.chapInfoList.length; l++) {
  17100. var q = this.chapInfoList[l].dyName;
  17101. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17102. var e;
  17103. copyList.push({
  17104. dyName: q,
  17105. isOpen: l === 0 ? true : false,
  17106. task: [],
  17107. });
  17108. for (var r = 0; r < w.length; r++) {
  17109. e = w[r].task;
  17110. if (this.chapInfoList[l].easy == 1) {
  17111. copyList[l].task.push({
  17112. taskName: q,
  17113. id: l + "-" + r,
  17114. isLook: w[r].isLook,
  17115. isOpen: r === 0 ? true : false,
  17116. tool: [],
  17117. });
  17118. } else {
  17119. copyList[l].task.push({
  17120. taskName: e,
  17121. id: l + "-" + r,
  17122. isLook: w[r].isLook,
  17123. isOpen: r === 0 ? true : false,
  17124. tool: [],
  17125. });
  17126. }
  17127. var t = w[r].toolChoose;
  17128. for (var k = 0; k < t.length; k++) {
  17129. var tool = t[k].tool[0];
  17130. copyList[l].task[r].tool.push({
  17131. tool: tool,
  17132. isTool: false,
  17133. });
  17134. }
  17135. // this.navId = this.navId ? this.navId : l + "-" + r;
  17136. // this.navId = l + "-" + r;
  17137. }
  17138. }
  17139. this.navList = copyList;
  17140. this.navList[0].isOpen = false;
  17141. this.navList[this.courseType].isOpen = true;
  17142. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17143. } else {
  17144. this.setNavList2();
  17145. }
  17146. },
  17147. setNavList2() {
  17148. for (var l = 0; l < this.chapInfoList.length; l++) {
  17149. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17150. for (var r = 0; r < w.length; r++) {
  17151. this.navList[l].task[r].isLook = w[r].isLook;
  17152. }
  17153. }
  17154. if (
  17155. this.IsLookOpen &&
  17156. !this.navList[this.courseType].task[this.taskCount].isLook
  17157. ) {
  17158. this.openTask(0, 0, "0-0");
  17159. }
  17160. this.$forceUpdate();
  17161. },
  17162. getCourseState(type) {
  17163. let params = {
  17164. cid: this.id,
  17165. };
  17166. this.ajax
  17167. .get(this.$store.state.api + "getCourseState", params)
  17168. .then((res) => {
  17169. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17170. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17171. this.setNavList();
  17172. this.$forceUpdate();
  17173. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17174. this.addCourseState(2);
  17175. } else {
  17176. this.addCourseState(1);
  17177. }
  17178. })
  17179. .catch((err) => {
  17180. console.error(err);
  17181. });
  17182. },
  17183. addCourseState(type) {
  17184. let _state = this.chapInfoList;
  17185. // this.courseType this.taskCount
  17186. if (type == 1 || type == 2) {
  17187. for (var i = 0; i < _state.length; i++) {
  17188. let el = _state[i].chapterInfo[0].taskJson;
  17189. for (var j = 0; j < el.length; j++) {
  17190. // if (i == 0 && j == 0) {
  17191. // el[j].isLook = true;
  17192. // } else {
  17193. // el[j].isLook = false;
  17194. // }
  17195. if (
  17196. this.courseType > i ||
  17197. (this.courseType == i && this.taskCount + 1 > j)
  17198. ) {
  17199. el[j].isLook = true;
  17200. } else {
  17201. el[j].isLook = false;
  17202. }
  17203. }
  17204. }
  17205. }
  17206. let params = [
  17207. {
  17208. cid: this.id,
  17209. state: JSON.stringify(_state),
  17210. },
  17211. ];
  17212. this.ajax
  17213. .post(
  17214. this.$store.state.api +
  17215. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17216. params
  17217. )
  17218. .then((res) => {
  17219. if (this.IsLookOpen) {
  17220. this.setNavList();
  17221. }
  17222. if (type == 3 && type == 2) {
  17223. this.getCourseState(1);
  17224. }
  17225. })
  17226. .catch((err) => {
  17227. console.error(err);
  17228. });
  17229. },
  17230. getHomeWork() {
  17231. let params = {
  17232. cid: this.id,
  17233. stage: this.courseType,
  17234. task: this.taskCount,
  17235. uid: this.userid,
  17236. };
  17237. this.ajax
  17238. .get(this.$store.state.api + "selectWork", params)
  17239. .then((res) => {
  17240. if (res.data[0].length > 0) {
  17241. this.studyJuri = JSON.parse(res.data[0][0].content);
  17242. this.isNoHomeWork = true;
  17243. }
  17244. })
  17245. .catch((err) => {
  17246. console.error(err);
  17247. });
  17248. },
  17249. isAssetTypeAnImage(ext) {
  17250. return (
  17251. [
  17252. "png",
  17253. "jpg",
  17254. "jpeg",
  17255. "bmp",
  17256. "gif",
  17257. "webp",
  17258. "psd",
  17259. "svg",
  17260. "tiff",
  17261. ].indexOf(ext) !== -1
  17262. );
  17263. },
  17264. switchVideo(media) {
  17265. this.playerO = {};
  17266. this.playerOptions.poster = "";
  17267. this.playerOptions.sources[0].src = media;
  17268. this.playerO = this.playerOptions;
  17269. },
  17270. onPlayerPlay() {},
  17271. onPlayerTimeupdate(player) {
  17272. let gklog = player.cache_.currentTime; //当前播放的秒数
  17273. let a = player.cache_.duration; //视频的总时长
  17274. let gklog2 = parseInt(gklog);
  17275. // if(gklog2 == '3'){
  17276. // player.pause()
  17277. // setTimeout(()=>{
  17278. // player.currentTime(gklog2+1)
  17279. // player.play()
  17280. // },1000)
  17281. // }
  17282. console.log(" onPlayerTimeupdate!", gklog);
  17283. console.log(" onPlayerTimeupdate!", gklog2);
  17284. },
  17285. lookVedio(u, i) {
  17286. this.isClickNav = "";
  17287. // this.playerOptions.sources[0].src = u;
  17288. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17289. d.sources[0].src = u;
  17290. this.playerO[this.taskCount] = d;
  17291. this.showType = 0;
  17292. // this.isClickNav = "video" + i;
  17293. this.isClickNav = i;
  17294. this.$forceUpdate();
  17295. },
  17296. lookText(i, t) {
  17297. this.isClickNav = "";
  17298. // this.text = this.textList[i][t];
  17299. this.text = this.vChapterData[i][t];
  17300. // this.dialogVisible1 = true;
  17301. this.showType = 1;
  17302. // this.isClickNav = "text" + t;
  17303. this.isClickNav = t;
  17304. },
  17305. lookTools(i, t) {
  17306. this.chapTools = this.chapToolList[i][t];
  17307. this.dialogVisible2 = true;
  17308. },
  17309. async openFile(f) {
  17310. this.pptImgUrl = "";
  17311. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17312. if (
  17313. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17314. -1
  17315. ) {
  17316. let _uuurl = await this.checkLink(f);
  17317. this.pptImgUrl =
  17318. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17319. this.showPDF = false;
  17320. this.dialogVisible3 = true;
  17321. } else if (
  17322. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17323. ) {
  17324. this.pptImgUrl = f;
  17325. this.showPDF = true;
  17326. this.dialogVisible3 = true;
  17327. }
  17328. },
  17329. openTable(f) {
  17330. this.tableJson = JSON.parse(f.works);
  17331. this.dialogVisibleTable2 = true;
  17332. },
  17333. openWord(f) {
  17334. this.tableJson = JSON.parse(f.works);
  17335. this.dialogVisibleTable3 = true;
  17336. },
  17337. doUrl(url, i) {
  17338. this.isClickNav = "";
  17339. this.pptImgUrl1 = "";
  17340. this.showType = 2;
  17341. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17342. url = "https://" + url;
  17343. }
  17344. this.pptImgUrl1 = "";
  17345. setTimeout(() => {
  17346. this.pptImgUrl1 = url;
  17347. }, 500);
  17348. // this.isClickNav = "line" + i;
  17349. this.isClickNav = i;
  17350. this.$forceUpdate();
  17351. },
  17352. checkPhoto(f, i) {
  17353. this.showType = 4;
  17354. this.pptImgUrl1 = f.url;
  17355. this.isClickNav = i;
  17356. this.$forceUpdate();
  17357. },
  17358. async downFile(f, i) {
  17359. this.isClickNav = "";
  17360. this.pptImgUrl1 = "";
  17361. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17362. if (
  17363. a.indexOf(
  17364. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17365. ) != -1
  17366. ) {
  17367. let _uuurl = await this.checkLink(f.url);
  17368. this.pptImgUrl1 =
  17369. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17370. // this.dialogVisible3 = true;
  17371. this.showType = 2;
  17372. } else if (
  17373. this.isAssetTypeAnImage(
  17374. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17375. )
  17376. ) {
  17377. this.showType = 4;
  17378. this.pptImgUrl1 = f.url;
  17379. } else if (
  17380. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17381. "PDF"
  17382. ) {
  17383. this.pptImgUrl1 = f.url;
  17384. // this.dialogVisible3 = true;
  17385. this.showType = 3;
  17386. } else {
  17387. window.open(this.file[i].url);
  17388. }
  17389. // this.isClickNav = "word" + i;
  17390. this.isClickNav = i;
  17391. },
  17392. downFileList(i) {
  17393. window.open(this.noImgList[i].url);
  17394. },
  17395. openAddWork() {
  17396. this.dialogVisible = true;
  17397. },
  17398. addBzWorks() {
  17399. let params = [
  17400. {
  17401. uid: this.userid,
  17402. cid: this.id,
  17403. stage: this.courseType,
  17404. task: this.taskCount,
  17405. tool: this.toolindex,
  17406. content: JSON.stringify(this.eScore),
  17407. type: 6,
  17408. },
  17409. ];
  17410. this.ajax
  17411. .post(this.$store.state.api + "addCourseWorks", params)
  17412. .then((res) => {
  17413. this.$message({
  17414. message: "提交成功",
  17415. type: "success",
  17416. });
  17417. this.eScore = { eBzText: "", eStar: [] };
  17418. this.studentEvalDialogVisible = false;
  17419. this.selectSWorks();
  17420. })
  17421. .catch((err) => {
  17422. this.$message.error("提交失败");
  17423. console.error(err);
  17424. });
  17425. },
  17426. addBzWorksTeacher() {
  17427. let params = [
  17428. {
  17429. uid: this.sStudent.userid,
  17430. cid: this.id,
  17431. stage: this.courseType,
  17432. task: this.taskCount,
  17433. tool: this.toolindex,
  17434. content: JSON.stringify(this.eScore),
  17435. type: 6,
  17436. },
  17437. ];
  17438. this.ajax
  17439. .post(this.$store.state.api + "addCourseWorks", params)
  17440. .then((res) => {
  17441. this.$message({
  17442. message: "提交成功",
  17443. type: "success",
  17444. });
  17445. this.eScore = { eBzText: "", eStar: [] };
  17446. this.studentEvalDialogVisibleTeacher = false;
  17447. this.selectSWorks();
  17448. })
  17449. .catch((err) => {
  17450. this.$message.error("提交失败");
  17451. console.error(err);
  17452. });
  17453. },
  17454. addStudentAsk() {
  17455. if (!this.radio.length) {
  17456. this.$message.error("请选择选项");
  17457. return;
  17458. }
  17459. for (var i = 0; i < this.askJson.askCount; i++) {
  17460. if (
  17461. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17462. (this.radio[i] !== 0 && !this.radio[i])
  17463. ) {
  17464. this.$message.error("请选择选项");
  17465. return;
  17466. }
  17467. }
  17468. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17469. let params = [
  17470. {
  17471. uid: this.userid,
  17472. cid: this.id,
  17473. stage: this.courseType,
  17474. task: this.taskCount,
  17475. tool: this.toolindex,
  17476. content: JSON.stringify(this.askList),
  17477. type: 2,
  17478. },
  17479. ];
  17480. this.ajax
  17481. .post(this.$store.state.api + "addCourseWorks", params)
  17482. .then((res) => {
  17483. this.$message({
  17484. message: "提交成功",
  17485. type: "success",
  17486. });
  17487. this.askList = [];
  17488. this.dialogVisible5 = false;
  17489. this.selectStudent();
  17490. this.selectSWorks();
  17491. this.selectSLook();
  17492. })
  17493. .catch((err) => {
  17494. this.$message.error("提交失败");
  17495. console.error(err);
  17496. });
  17497. },
  17498. addStudentAskTeacher() {
  17499. if (!this.radio.length) {
  17500. this.$message.error("请选择选项");
  17501. return;
  17502. }
  17503. for (var i = 0; i < this.askJson.askCount; i++) {
  17504. if (
  17505. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17506. (this.radio[i] !== 0 && !this.radio[i])
  17507. ) {
  17508. this.$message.error("请选择选项");
  17509. return;
  17510. }
  17511. }
  17512. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17513. let params = [
  17514. {
  17515. uid: this.sStudent.userid,
  17516. cid: this.id,
  17517. stage: this.courseType,
  17518. task: this.taskCount,
  17519. tool: this.toolindex,
  17520. content: JSON.stringify(this.askList),
  17521. type: 2,
  17522. },
  17523. ];
  17524. this.ajax
  17525. .post(this.$store.state.api + "addCourseWorks", params)
  17526. .then((res) => {
  17527. this.$message({
  17528. message: "提交成功",
  17529. type: "success",
  17530. });
  17531. this.askList = [];
  17532. this.dialogVisible5Teacher = false;
  17533. this.selectStudent();
  17534. this.selectSWorks();
  17535. this.selectSLook();
  17536. })
  17537. .catch((err) => {
  17538. this.$message.error("提交失败");
  17539. console.error(err);
  17540. });
  17541. },
  17542. addStudentTest() {
  17543. if (!this.radio.length) {
  17544. this.$message.error("请选择选项");
  17545. return;
  17546. }
  17547. for (var i = 0; i < this.testJson.testCount; i++) {
  17548. if (
  17549. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17550. (this.radio[i] !== 0 && !this.radio[i])
  17551. ) {
  17552. this.$message.error("请选择选项");
  17553. return;
  17554. }
  17555. }
  17556. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17557. let params = [
  17558. {
  17559. uid: this.userid,
  17560. cid: this.id,
  17561. stage: this.courseType,
  17562. task: this.taskCount,
  17563. tool: this.toolindex,
  17564. content: JSON.stringify(this.askList),
  17565. type: 8,
  17566. },
  17567. ];
  17568. this.ajax
  17569. .post(this.$store.state.api + "addCourseWorks", params)
  17570. .then((res) => {
  17571. this.$message({
  17572. message: "提交成功",
  17573. type: "success",
  17574. });
  17575. this.askList = [];
  17576. this.dialogVisibleChoice = false;
  17577. this.selectStudent();
  17578. this.selectSWorks();
  17579. this.selectSLook();
  17580. })
  17581. .catch((err) => {
  17582. this.$message.error("提交失败");
  17583. console.error(err);
  17584. });
  17585. },
  17586. addStudentTestTeacher() {
  17587. if (!this.radio.length) {
  17588. this.$message.error("请选择选项");
  17589. return;
  17590. }
  17591. for (var i = 0; i < this.testJson.testCount; i++) {
  17592. if (
  17593. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17594. (this.radio[i] !== 0 && !this.radio[i])
  17595. ) {
  17596. this.$message.error("请选择选项");
  17597. return;
  17598. }
  17599. }
  17600. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17601. let params = [
  17602. {
  17603. uid: this.sStudent.userid,
  17604. cid: this.id,
  17605. stage: this.courseType,
  17606. task: this.taskCount,
  17607. tool: this.toolindex,
  17608. content: JSON.stringify(this.askList),
  17609. type: 8,
  17610. },
  17611. ];
  17612. this.ajax
  17613. .post(this.$store.state.api + "addCourseWorks", params)
  17614. .then((res) => {
  17615. this.$message({
  17616. message: "提交成功",
  17617. type: "success",
  17618. });
  17619. this.askList = [];
  17620. this.dialogVisibleChoiceTeacher = false;
  17621. this.selectStudent();
  17622. this.selectSWorks();
  17623. this.selectSLook();
  17624. })
  17625. .catch((err) => {
  17626. this.$message.error("提交失败");
  17627. console.error(err);
  17628. });
  17629. },
  17630. addWork() {
  17631. if (this.studyJuri[0].content == "") {
  17632. this.$message.error("请将信息填写完整");
  17633. return;
  17634. } else if (this.studyJuri[0].cover.length == 0) {
  17635. this.$message.error("请将信息填写完整");
  17636. return;
  17637. } else if (this.studyJuri[0].upVedio.length == 0) {
  17638. this.$message.error("请将信息填写完整");
  17639. return;
  17640. }
  17641. if (this.isNoHomeWork) {
  17642. this.$confirm(
  17643. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17644. "提示",
  17645. {
  17646. confirmButtonText: "确定",
  17647. cancelButtonText: "取消",
  17648. type: "warning",
  17649. }
  17650. )
  17651. .then(() => {
  17652. let params = [
  17653. {
  17654. uid: this.userid,
  17655. cid: this.id,
  17656. stage: this.courseType,
  17657. task: this.taskCount,
  17658. content: JSON.stringify(this.studyJuri),
  17659. },
  17660. ];
  17661. this.ajax
  17662. .post(this.$store.state.api + "addWorks", params)
  17663. .then((res) => {
  17664. this.$message({
  17665. message: "提交成功",
  17666. type: "success",
  17667. });
  17668. this.isNoHomeWork = true;
  17669. this.dialogVisible = false;
  17670. })
  17671. .catch((err) => {
  17672. this.$message.error("提交失败");
  17673. console.error(err);
  17674. });
  17675. })
  17676. .catch(() => {});
  17677. } else {
  17678. let params = [
  17679. {
  17680. uid: this.userid,
  17681. cid: this.id,
  17682. stage: this.courseType,
  17683. task: this.taskCount,
  17684. content: JSON.stringify(this.studyJuri),
  17685. },
  17686. ];
  17687. this.ajax
  17688. .post(this.$store.state.api + "addWorks", params)
  17689. .then((res) => {
  17690. this.$message({
  17691. message: "提交成功",
  17692. type: "success",
  17693. });
  17694. this.isNoHomeWork = true;
  17695. this.dialogVisible = false;
  17696. })
  17697. .catch((err) => {
  17698. this.$message.error("提交失败");
  17699. console.error(err);
  17700. });
  17701. }
  17702. },
  17703. selectCount() {
  17704. let params = {
  17705. cid: this.id,
  17706. chid: this.courseType,
  17707. uid: this.userid,
  17708. };
  17709. this.ajax
  17710. .get(this.$store.state.api + "selectToolsCount", params)
  17711. .then((res) => {
  17712. for (var i = 0; i < res.data[0].length; i++) {
  17713. if (res.data[0][i].tools == 1) {
  17714. this.wbCount = res.data[0][i].count;
  17715. } else if (res.data[0][i].tools == 2) {
  17716. this.wordCount = res.data[0][i].count;
  17717. } else if (res.data[0][i].tools == 3) {
  17718. this.mindCount = res.data[0][i].count;
  17719. } else if (res.data[0][i].tools == 4) {
  17720. this.askCount = res.data[0][i].count;
  17721. } else if (res.data[0][i].tools == 6) {
  17722. this.noteCount = res.data[0][i].count;
  17723. } else if (res.data[0][i].tools == 7) {
  17724. this.mindNetWorkCount = res.data[0][i].count;
  17725. } else if (res.data[0][i].tools == 8) {
  17726. this.libraryCount = res.data[0][i].count;
  17727. } else if (res.data[0][i].tools == 16) {
  17728. this.workCount = res.data[0][i].count;
  17729. } else if (res.data[0][i].tools == 10) {
  17730. this.timeCount = res.data[0][i].count;
  17731. } else if (res.data[0][i].tools == 15) {
  17732. this.answerCount = res.data[0][i].count;
  17733. } else if (res.data[0][i].tools == 18) {
  17734. this.trainCount = res.data[0][i].count;
  17735. }
  17736. }
  17737. })
  17738. .catch((err) => {
  17739. console.error(err);
  17740. });
  17741. },
  17742. openTools(t, i, index, c, sName,id) {
  17743. var z = JSON.parse(c);
  17744. this.noteName = sName;
  17745. if (t == 4) {
  17746. this.radio = [];
  17747. this.isAnswer = false;
  17748. let b = z[0].anwer;
  17749. this.radio = b;
  17750. this.askJson = z[0].askJson;
  17751. this.isAnswer = true;
  17752. this.dialogVisible5 = true;
  17753. } else if (t == 45) {
  17754. this.radio = [];
  17755. this.isAnswer = false;
  17756. let b = z[0].anwer;
  17757. this.radio = b;
  17758. this.testJson = z[0].testJson;
  17759. this.isAnswer = true;
  17760. this.dialogVisibleChoice = true;
  17761. }else if(t == 69){
  17762. this.oldEnglishJson1 = {}
  17763. this.oldEnglishJson = {}
  17764. this.englishList1 = {}
  17765. this.newEngIndex = -1;
  17766. this.isNoUserid = false;
  17767. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17768. .toolChoose[i].englishList;
  17769. this.oldEnglishJson = z;
  17770. this.engWid = id;
  17771. this.newEnglishList = { engTitle:"",engText:"" }
  17772. this.newEnglishList1 = []
  17773. this.selectEngC(id,z);
  17774. }else if(t == 62){
  17775. this.videoType = 1;
  17776. this.videoJson = {};
  17777. this.videoJson = JSON.parse(c);
  17778. // this.videoJson =
  17779. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17780. // index
  17781. // ].toolChoose[i].videoJson;
  17782. this.dialogVisibleVideo = true;
  17783. }
  17784. // else if (t == 15) {
  17785. // this.answerQ = "";
  17786. // this.questionAnswer = "";
  17787. // this.answerQ = z[0].answerTitle;
  17788. // this.questionAnswer = z[0].answer;
  17789. // this.answerDialogVisible = true;
  17790. // }
  17791. },
  17792. fastText(p, t) {
  17793. if (t == 1) {
  17794. this.commentText += p;
  17795. } else {
  17796. this.eScore.eBzText += p;
  17797. }
  17798. },
  17799. addTools(t, i, index) {
  17800. var a = 0;
  17801. // this.taskCount = index;
  17802. this.toolindex = i;
  17803. if (t == 1) {
  17804. if (this.wbCount > 0) {
  17805. this.updateCount(this.wbCount, t);
  17806. } else {
  17807. this.wbCount++;
  17808. a = this.wbCount;
  17809. this.toolsCount(a, t);
  17810. }
  17811. window.parent.postMessage(
  17812. {
  17813. tools: "1",
  17814. cid: this.id,
  17815. stage: this.courseType,
  17816. task: this.taskCount,
  17817. tool: i,
  17818. },
  17819. "*"
  17820. );
  17821. } else if (t == 2) {
  17822. if (this.wordCount > 0) {
  17823. this.updateCount(this.wordCount, t);
  17824. } else {
  17825. this.wordCount++;
  17826. a = this.wordCount;
  17827. this.toolsCount(a, t);
  17828. }
  17829. window.parent.postMessage({ tools: "2" }, "*");
  17830. } else if (t == 3) {
  17831. if (this.mindCount > 0) {
  17832. this.updateCount(this.mindCount, t);
  17833. } else {
  17834. this.mindCount++;
  17835. a = this.mindCount;
  17836. this.toolsCount(a, t);
  17837. }
  17838. window.parent.postMessage(
  17839. {
  17840. tools: "3",
  17841. cid: this.id,
  17842. stage: this.courseType,
  17843. task: this.taskCount,
  17844. tool: i,
  17845. },
  17846. "*"
  17847. );
  17848. } else if (t == 4) {
  17849. this.radio = [];
  17850. this.noteName = "";
  17851. this.isAnswer = false;
  17852. if (this.askCount > 0) {
  17853. this.updateCount(this.askCount, t);
  17854. } else {
  17855. this.askCount++;
  17856. a = this.askCount;
  17857. this.toolsCount(a, t);
  17858. }
  17859. if (!this.dialogVisible2) {
  17860. this.askJson.askJson =
  17861. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17862. index
  17863. ].toolChoose[i].askJson;
  17864. this.askJson.askTitle =
  17865. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17866. index
  17867. ].toolChoose[i].askTitle;
  17868. this.askJson.askCount =
  17869. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17870. index
  17871. ].toolChoose[i].askCount;
  17872. } else {
  17873. this.askJson.askJson = this.chapTools.askJson.askJson;
  17874. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17875. this.askJson.askCount = this.chapTools.askJson.askCount;
  17876. }
  17877. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17878. if (this.askJson.askJson[k].type == "2") {
  17879. this.radio.push([]);
  17880. } else {
  17881. this.radio.push("");
  17882. }
  17883. }
  17884. this.dialogVisible5 = true;
  17885. // window.parent.postMessage({ tools: "4" }, "*");
  17886. } else if (t == 45) {
  17887. this.noteName = "";
  17888. this.radio = [];
  17889. this.isAnswer = false;
  17890. if (this.askCount > 0) {
  17891. this.updateCount(this.askCount, t);
  17892. } else {
  17893. this.askCount++;
  17894. a = this.askCount;
  17895. this.toolsCount(a, t);
  17896. }
  17897. this.testJson =
  17898. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17899. index
  17900. ].toolChoose[i].testJson;
  17901. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17902. if (this.testJson.testJson[k].type == "2") {
  17903. this.radio.push([]);
  17904. } else {
  17905. this.radio.push("");
  17906. }
  17907. }
  17908. this.dialogVisibleChoice = true;
  17909. // window.parent.postMessage({ tools: "4" }, "*");
  17910. } else if (t == 5) {
  17911. if (this.scoreCount > 0) {
  17912. this.updateCount(this.scoreCount, t);
  17913. } else {
  17914. this.scoreCount++;
  17915. a = this.scoreCount;
  17916. this.toolsCount(a, t);
  17917. }
  17918. this.dialogVisible4 = true;
  17919. // window.parent.postMessage({ tools: "5" }, "*");
  17920. } else if (t == 6) {
  17921. if (this.noteCount > 0) {
  17922. this.updateCount(this.noteCount, t);
  17923. } else {
  17924. this.noteCount++;
  17925. a = this.noteCount;
  17926. this.toolsCount(a, t);
  17927. }
  17928. window.parent.postMessage(
  17929. {
  17930. tools: "6",
  17931. cid: this.id,
  17932. stage: this.courseType,
  17933. task: this.taskCount,
  17934. tool: i,
  17935. },
  17936. "*"
  17937. );
  17938. } else if (t == 7) {
  17939. if (this.mindNetWorkCount > 0) {
  17940. this.updateCount(this.mindNetWorkCount, t);
  17941. } else {
  17942. this.mindNetWorkCount++;
  17943. a = this.mindNetWorkCount;
  17944. this.toolsCount(a, t);
  17945. }
  17946. window.parent.postMessage(
  17947. {
  17948. tools: "7",
  17949. cid: this.id,
  17950. stage: this.courseType,
  17951. task: this.taskCount,
  17952. tool: i,
  17953. },
  17954. "*"
  17955. );
  17956. } else if (t == 16) {
  17957. if (this.workCount > 0) {
  17958. this.updateCount(this.workCount, t);
  17959. } else {
  17960. this.workCount++;
  17961. a = this.workCount;
  17962. this.toolsCount(a, t);
  17963. }
  17964. this.dialogVisible = true;
  17965. } else if (t == 50) {
  17966. if (this.tType == 2) {
  17967. this.$message.error("不支持学生使用");
  17968. return;
  17969. }
  17970. this.plworkFile = [];
  17971. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17972. if (!this.uploadCid) {
  17973. this.$message.error(
  17974. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17975. );
  17976. return;
  17977. }
  17978. // this.uploadCid =
  17979. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17980. // index
  17981. // ].toolChoose[i].uploadJson[0];
  17982. this.selectUploadStudent(2);
  17983. } else if (t == 8) {
  17984. if (this.libraryCount > 0) {
  17985. this.updateCount(this.libraryCount, t);
  17986. } else {
  17987. this.libraryCount++;
  17988. a = this.libraryCount;
  17989. this.toolsCount(a, t);
  17990. }
  17991. window.parent.postMessage({ tools: "8" }, "*");
  17992. } else if (t == 17) {
  17993. if (this.libraryCount > 0) {
  17994. this.updateCount(this.libraryCount, t);
  17995. } else {
  17996. this.libraryCount++;
  17997. a = this.libraryCount;
  17998. this.toolsCount(a, t);
  17999. }
  18000. window.parent.postMessage({ tools: "17" }, "*");
  18001. } else if (t == 18) {
  18002. if (this.trainCount > 0) {
  18003. this.updateCount(this.trainCount, t);
  18004. } else {
  18005. this.trainCount++;
  18006. a = this.trainCount;
  18007. this.toolsCount(a, t);
  18008. }
  18009. window.parent.postMessage({ tools: "18" }, "*");
  18010. } else if (t == 10) {
  18011. if (this.timeCount > 0) {
  18012. this.updateCount(this.timeCount, t);
  18013. } else {
  18014. this.timeCount++;
  18015. a = this.timeCount;
  18016. this.toolsCount(a, t);
  18017. }
  18018. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18019. .taskJson[index].toolChoose[i].preTime
  18020. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18021. .toolChoose[i].preTime
  18022. : "";
  18023. this.timeDialogVisible = true;
  18024. } else if (t == 15) {
  18025. this.answerQ = "";
  18026. this.questionAnswer = "";
  18027. if (this.answerCount > 0) {
  18028. this.updateCount(this.answerCount, t);
  18029. } else {
  18030. this.answerCount++;
  18031. a = this.answerCount;
  18032. this.toolsCount(a, t);
  18033. }
  18034. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18035. .taskJson[index].toolChoose[i].answerQ
  18036. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18037. .toolChoose[i].answerQ
  18038. : "";
  18039. this.answerDialogVisible = true;
  18040. } else if (t == 21) {
  18041. window.parent.postMessage({ tools: "21" }, "*");
  18042. } else if (t == 22) {
  18043. window.parent.postMessage({ tools: "22" }, "*");
  18044. } else if (t == 23) {
  18045. window.parent.postMessage({ tools: "23" }, "*");
  18046. } else if (t == 24) {
  18047. window.parent.postMessage({ tools: "24" }, "*");
  18048. } else if (t == 25) {
  18049. window.parent.postMessage({ tools: "25" }, "*");
  18050. } else if (t == 31) {
  18051. window.parent.postMessage({ tools: "31" }, "*");
  18052. } else if (t == 28) {
  18053. window.parent.postMessage({ tools: "28" }, "*");
  18054. } else if (t == 37) {
  18055. window.parent.postMessage({ tools: "37" }, "*");
  18056. } else if (t == 38) {
  18057. window.parent.postMessage({ tools: "38" }, "*");
  18058. } else if (t == 39) {
  18059. window.parent.postMessage({ tools: "39" }, "*");
  18060. } else if (t == 32) {
  18061. window.parent.postMessage({ tools: "32" }, "*");
  18062. } else if (t == 66) {
  18063. window.parent.postMessage({ tools: "66" }, "*");
  18064. } else if (t == 67) {
  18065. window.parent.postMessage({ tools: "67" }, "*");
  18066. } else if (t == 68) {
  18067. window.parent.postMessage({ tools: "68" }, "*");
  18068. } else if (t == 57) {
  18069. // window.parent.postMessage({ tools: "57" }, "*");
  18070. window.parent.postMessage(
  18071. {
  18072. tools: "57u",
  18073. cid: this.id,
  18074. stage: this.courseType,
  18075. task: this.taskCount,
  18076. tool: i,
  18077. },
  18078. "*"
  18079. );
  18080. } else if (t == 58) {
  18081. window.parent.postMessage({ tools: "58" }, "*");
  18082. } else if (t == 59) {
  18083. window.parent.postMessage({ tools: "59" }, "*");
  18084. } else if (t == 60) {
  18085. window.parent.postMessage({ tools: "60" }, "*");
  18086. } else if (t == 61) {
  18087. window.parent.postMessage({ tools: "61" }, "*");
  18088. } else if (t == 63) {
  18089. window.parent.postMessage({ tools: "63" }, "*");
  18090. } else if (t == 71) {
  18091. window.parent.postMessage({ tools: "71" }, "*");
  18092. } else if (t == 69) {
  18093. if (this.worksStudent[i].length) {
  18094. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18095. if (this.userid == this.worksStudent[i][k].userid) {
  18096. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18097. break;
  18098. } else {
  18099. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18100. }
  18101. }
  18102. } else {
  18103. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18104. }
  18105. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18106. .taskJson[index].toolChoose[i].englishList
  18107. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18108. .toolChoose[i].englishList
  18109. : {};
  18110. this.englishToolIndex = i;
  18111. this.myAnList = this.myAnswerList1;
  18112. this.engDialogVisible = true;
  18113. } else if (t == 70) {
  18114. if (this.worksStudent[i].length) {
  18115. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18116. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18117. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18118. break;
  18119. } else {
  18120. this.englishVoiceJsonWork = [];
  18121. }
  18122. }
  18123. } else {
  18124. this.englishVoiceJsonWork = [];
  18125. }
  18126. let englishVoiceJson = {}
  18127. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18128. .taskJson[index].toolChoose[i].englishVoiceJson
  18129. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18130. .toolChoose[i].englishVoiceJson
  18131. : {};
  18132. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18133. this.EnglishVoiceDialog = true;
  18134. } else if (t == 65) {
  18135. if (this.tType == 2) {
  18136. this.$message.error("不支持学生使用");
  18137. return;
  18138. }
  18139. this.uploadCid = this.tcid;
  18140. if (!this.uploadCid) {
  18141. this.$message.error(
  18142. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18143. );
  18144. return;
  18145. }
  18146. this.selectPickStudent();
  18147. } else if (t == 26) {
  18148. window.parent.postMessage(
  18149. {
  18150. tools: "26",
  18151. cid: this.id,
  18152. stage: this.courseType,
  18153. task: this.taskCount,
  18154. tool: i,
  18155. },
  18156. "*"
  18157. );
  18158. } else if (t == 40) {
  18159. if (this.evalCount > 0) {
  18160. this.updateCount(this.evalCount, t);
  18161. } else {
  18162. this.evalCount++;
  18163. a = this.evalCount;
  18164. this.toolsCount(a, t);
  18165. }
  18166. this.eScore = { eBzText: "", eStar: [] };
  18167. if (this.worksStudent[i].length) {
  18168. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18169. if (this.userid == this.worksStudent[i][k].userid) {
  18170. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18171. this.rateJson =
  18172. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18173. index
  18174. ].toolChoose[i].rateJson;
  18175. break;
  18176. } else {
  18177. this.rateJson =
  18178. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18179. index
  18180. ].toolChoose[i].rateJson;
  18181. }
  18182. }
  18183. } else {
  18184. this.rateJson =
  18185. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18186. index
  18187. ].toolChoose[i].rateJson;
  18188. }
  18189. this.isStar = false;
  18190. this.studentEvalDialogVisible = true;
  18191. } else if (t == 41) {
  18192. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18193. .taskJson[index].toolChoose[i].selectJson
  18194. ? JSON.parse(
  18195. JSON.stringify(
  18196. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18197. index
  18198. ].toolChoose[i].selectJson
  18199. )
  18200. )
  18201. : { url: "", select: [], answer: [] };
  18202. if (this.worksStudent[i].length) {
  18203. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18204. if (this.userid == this.worksStudent[i][k].userid) {
  18205. var a = this.worksStudent[i][k].works.split(",");
  18206. for (var ki = 0; ki < a.length; ki++) {
  18207. a[ki] = parseInt(a[ki]);
  18208. }
  18209. this.selectAnswer = {
  18210. answer: a,
  18211. stu: this.worksStudent[i][k].sName,
  18212. };
  18213. break;
  18214. } else {
  18215. this.selectAnswer = { answer: [], stu: "" };
  18216. }
  18217. }
  18218. } else {
  18219. this.selectAnswer = { answer: [], stu: "" };
  18220. }
  18221. this.isSelect = false;
  18222. this.dialogVisibleSelect = true;
  18223. } else if (t == 44) {
  18224. window.parent.postMessage({ tools: "44" }, "*");
  18225. } else if (t == 47) {
  18226. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18227. .taskJson[index].toolChoose[i].sentenceList
  18228. ? JSON.parse(
  18229. JSON.stringify(
  18230. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18231. index
  18232. ].toolChoose[i].sentenceList
  18233. )
  18234. )
  18235. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18236. for (var q = 0; q < this.sentenceList.length; q++) {
  18237. this.sentenceList[q].chooseSenList = [];
  18238. this.sentenceList[q].addChangeSen = [];
  18239. this.sentenceList[q].addChangeSen = JSON.parse(
  18240. JSON.stringify(this.sentenceList[q].addSentence)
  18241. );
  18242. this.sentenceList[q].chooseSenList.length =
  18243. this.sentenceList[q].rightAnswer.length;
  18244. }
  18245. this.dialogVisibleSentence = true;
  18246. } else if (t == 48) {
  18247. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18248. .taskJson[index].toolChoose[i].tableJson
  18249. ? JSON.parse(
  18250. JSON.stringify(
  18251. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18252. index
  18253. ].toolChoose[i].tableJson
  18254. )
  18255. )
  18256. : { text: "" };
  18257. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18258. if (this.worksStudent[i].length) {
  18259. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18260. if (this.userid == this.worksStudent[i][k].userid) {
  18261. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18262. break;
  18263. }
  18264. }
  18265. }
  18266. this.dialogVisibleTable = true;
  18267. } else if (t == 52) {
  18268. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18269. .taskJson[index].toolChoose[i].wordJson
  18270. ? JSON.parse(
  18271. JSON.stringify(
  18272. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18273. index
  18274. ].toolChoose[i].wordJson
  18275. )
  18276. )
  18277. : { text: "" };
  18278. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18279. if (this.worksStudent[i].length) {
  18280. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18281. if (this.userid == this.worksStudent[i][k].userid) {
  18282. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18283. break;
  18284. }
  18285. }
  18286. }
  18287. this.dialogVisibleWord = true;
  18288. } else if (t == 49) {
  18289. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18290. return
  18291. }
  18292. this.groupJson =
  18293. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18294. index
  18295. ].toolChoose[i].groupJson;
  18296. this.islock = this.groupJson.islock == 1 ? true : false;
  18297. this.dialogVisibleGroup = true;
  18298. } else if (t == 62) {
  18299. this.videoType = 0;
  18300. this.videoJson = {};
  18301. this.videoJson =
  18302. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18303. index
  18304. ].toolChoose[i].videoJson;
  18305. this.dialogVisibleVideo = true;
  18306. }
  18307. },
  18308. teacherWorkSubmit(t, i, index, s) {
  18309. this.sStudent = s;
  18310. this.toolindex = i;
  18311. this.sTool = t;
  18312. if (this.tType !== "1" && this.tType !== "4") {
  18313. return;
  18314. }
  18315. if (t == 16 || t == 32 || t == 50) {
  18316. this.dialogVisibleWorks = true;
  18317. } else if (t == 15) {
  18318. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18319. .taskJson[index].toolChoose[i].answerQ
  18320. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18321. .toolChoose[i].answerQ
  18322. : "";
  18323. this.questionAnswer = "";
  18324. this.answerDialogVisibleTeacher = true; //问答
  18325. } else if (t == 52) {
  18326. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18327. .taskJson[index].toolChoose[i].wordJson
  18328. ? JSON.parse(
  18329. JSON.stringify(
  18330. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18331. index
  18332. ].toolChoose[i].wordJson
  18333. )
  18334. )
  18335. : { text: "" };
  18336. if (this.worksStudent[i].length) {
  18337. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18338. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18339. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18340. break;
  18341. }
  18342. }
  18343. }
  18344. this.dialogVisibleWordTeacher = true; //文档
  18345. } else if (t == 4) {
  18346. this.radio = [];
  18347. this.noteName = "";
  18348. this.isAnswer = false;
  18349. if (this.askCount > 0) {
  18350. this.updateCount(this.askCount, t);
  18351. } else {
  18352. this.askCount++;
  18353. a = this.askCount;
  18354. this.toolsCount(a, t);
  18355. }
  18356. if (!this.dialogVisible2) {
  18357. this.askJson.askJson =
  18358. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18359. index
  18360. ].toolChoose[i].askJson;
  18361. this.askJson.askTitle =
  18362. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18363. index
  18364. ].toolChoose[i].askTitle;
  18365. this.askJson.askCount =
  18366. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18367. index
  18368. ].toolChoose[i].askCount;
  18369. } else {
  18370. this.askJson.askJson = this.chapTools.askJson.askJson;
  18371. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18372. this.askJson.askCount = this.chapTools.askJson.askCount;
  18373. }
  18374. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18375. if (this.askJson.askJson[k].type == "2") {
  18376. this.radio.push([]);
  18377. } else {
  18378. this.radio.push("");
  18379. }
  18380. }
  18381. this.dialogVisible5Teacher = true;
  18382. } else if (t == 45) {
  18383. this.noteName = "";
  18384. this.radio = [];
  18385. this.isAnswer = false;
  18386. if (this.askCount > 0) {
  18387. this.updateCount(this.askCount, t);
  18388. } else {
  18389. this.askCount++;
  18390. a = this.askCount;
  18391. this.toolsCount(a, t);
  18392. }
  18393. this.testJson =
  18394. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18395. index
  18396. ].toolChoose[i].testJson;
  18397. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18398. if (this.testJson.testJson[k].type == "2") {
  18399. this.radio.push([]);
  18400. } else {
  18401. this.radio.push("");
  18402. }
  18403. }
  18404. this.dialogVisibleChoiceTeacher = true;
  18405. } else if (t == 41) {
  18406. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18407. .taskJson[index].toolChoose[i].selectJson
  18408. ? JSON.parse(
  18409. JSON.stringify(
  18410. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18411. index
  18412. ].toolChoose[i].selectJson
  18413. )
  18414. )
  18415. : { url: "", select: [], answer: [] };
  18416. if (this.worksStudent[i].length) {
  18417. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18418. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18419. var a = this.worksStudent[i][k].works.split(",");
  18420. for (var ki = 0; ki < a.length; ki++) {
  18421. a[ki] = parseInt(a[ki]);
  18422. }
  18423. this.selectAnswer = {
  18424. answer: a,
  18425. stu: this.worksStudent[i][k].sName,
  18426. };
  18427. break;
  18428. } else {
  18429. this.selectAnswer = { answer: [], stu: "" };
  18430. }
  18431. }
  18432. } else {
  18433. this.selectAnswer = { answer: [], stu: "" };
  18434. }
  18435. this.isSelect = false;
  18436. this.dialogVisibleSelectTeacher = true;
  18437. } else if (t == 47) {
  18438. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18439. .taskJson[index].toolChoose[i].sentenceList
  18440. ? JSON.parse(
  18441. JSON.stringify(
  18442. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18443. index
  18444. ].toolChoose[i].sentenceList
  18445. )
  18446. )
  18447. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18448. for (var q = 0; q < this.sentenceList.length; q++) {
  18449. this.sentenceList[q].chooseSenList = [];
  18450. this.sentenceList[q].addChangeSen = [];
  18451. this.sentenceList[q].addChangeSen = JSON.parse(
  18452. JSON.stringify(this.sentenceList[q].addSentence)
  18453. );
  18454. this.sentenceList[q].chooseSenList.length =
  18455. this.sentenceList[q].rightAnswer.length;
  18456. }
  18457. this.dialogVisibleSentenceTeacher = true;
  18458. } else if (t == 48) {
  18459. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18460. .taskJson[index].toolChoose[i].tableJson
  18461. ? JSON.parse(
  18462. JSON.stringify(
  18463. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18464. index
  18465. ].toolChoose[i].tableJson
  18466. )
  18467. )
  18468. : { text: "" };
  18469. if (this.worksStudent[i].length) {
  18470. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18471. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18472. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18473. break;
  18474. }
  18475. }
  18476. }
  18477. this.dialogVisibleTableTeacher = true;
  18478. } else if (t == 40) {
  18479. if (this.evalCount > 0) {
  18480. this.updateCount(this.evalCount, t);
  18481. } else {
  18482. this.evalCount++;
  18483. a = this.evalCount;
  18484. this.toolsCount(a, t);
  18485. }
  18486. this.eScore = { eBzText: "", eStar: [] };
  18487. if (this.worksStudent[i].length) {
  18488. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18489. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18490. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18491. this.rateJson =
  18492. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18493. index
  18494. ].toolChoose[i].rateJson;
  18495. break;
  18496. } else {
  18497. this.rateJson =
  18498. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18499. index
  18500. ].toolChoose[i].rateJson;
  18501. }
  18502. }
  18503. } else {
  18504. this.rateJson =
  18505. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18506. index
  18507. ].toolChoose[i].rateJson;
  18508. }
  18509. this.isStar = false;
  18510. this.studentEvalDialogVisibleTeacher = true;
  18511. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18512. window.parent.postMessage(
  18513. {
  18514. tools: t + "teacher",
  18515. cid: this.id,
  18516. stage: this.courseType,
  18517. task: this.taskCount,
  18518. tool: i,
  18519. student: this.sStudent,
  18520. },
  18521. "*"
  18522. );
  18523. }
  18524. },
  18525. openCocoPi(tool, i, uid, uname) {
  18526. let student = {
  18527. userid: uid,
  18528. student: uname,
  18529. };
  18530. if (tool == 57) {
  18531. window.parent.postMessage(
  18532. {
  18533. tools: tool + "teacher",
  18534. cid: this.id,
  18535. stage: this.courseType,
  18536. task: this.taskCount,
  18537. tool: i,
  18538. student: student,
  18539. },
  18540. "*"
  18541. );
  18542. }
  18543. },
  18544. setRightAnswer(s, i, j) {
  18545. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18546. if (
  18547. this.sentenceList[i].chooseSenList[q] == undefined ||
  18548. this.sentenceList[i].chooseSenList[q] == ""
  18549. ) {
  18550. this.sentenceList[i].chooseSenList[q] = s;
  18551. this.sentenceList[i].addChangeSen[j] = "";
  18552. break;
  18553. }
  18554. }
  18555. this.$forceUpdate();
  18556. },
  18557. returnCard(r, i, j) {
  18558. var a = this.sentenceList[i].addSentence.indexOf(r);
  18559. this.sentenceList[i].chooseSenList[j] = "";
  18560. this.sentenceList[i].addChangeSen[a] = r;
  18561. this.$forceUpdate();
  18562. },
  18563. // addSentenceTool() {
  18564. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18565. // this.taskCount
  18566. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18567. // this.sentenceList = [
  18568. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18569. // ];
  18570. // this.dialogVisibleSentence = false;
  18571. // },
  18572. toolsCount(a, t) {
  18573. let params = {
  18574. cid: this.id,
  18575. chid: this.courseType,
  18576. uid: this.userid,
  18577. tid: t,
  18578. count: a,
  18579. };
  18580. this.ajax
  18581. .get(this.$store.state.api + "insertToolsCount", params)
  18582. .then((res) => {
  18583. this.selectCount();
  18584. })
  18585. .catch((err) => {
  18586. console.error(err);
  18587. });
  18588. },
  18589. updateCount(c, t) {
  18590. c++;
  18591. let params = {
  18592. cid: this.id,
  18593. chid: this.courseType,
  18594. uid: this.userid,
  18595. tid: t,
  18596. count: c,
  18597. };
  18598. this.ajax
  18599. .get(this.$store.state.api + "updateToolsCount", params)
  18600. .then((res) => {
  18601. this.selectCount();
  18602. })
  18603. .catch((err) => {
  18604. console.error(err);
  18605. });
  18606. },
  18607. checkEva() {
  18608. if (this.evalua != "") {
  18609. for (var i = 0; i < this.evaJuri.length; i++) {
  18610. if (this.evalua == this.evaJuri[i].id) {
  18611. this.eTitle = this.evaJuri[i].title;
  18612. this.eJson = JSON.parse(this.evaJuri[i].content);
  18613. }
  18614. }
  18615. this.$forceUpdate();
  18616. setTimeout(() => {
  18617. this.setMindData();
  18618. }, 0);
  18619. }
  18620. },
  18621. selectEva() {
  18622. let params = {
  18623. oid: this.oid,
  18624. };
  18625. this.ajax
  18626. .get(this.$store.state.api + "selectAllEvaluation", params)
  18627. .then((res) => {
  18628. this.evaJuri = res.data[0];
  18629. })
  18630. .catch((err) => {
  18631. console.error(err);
  18632. });
  18633. },
  18634. setMindData() {
  18635. this.data.data = [];
  18636. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18637. let _eJson = Object.keys(this.eJson);
  18638. let _e = this.eJson;
  18639. for (let i = 0; i < _eJson.length; i++) {
  18640. let element = _e[_eJson[i]];
  18641. this.data.data.push({
  18642. id: element.id,
  18643. parentid: "root",
  18644. topic: element.name,
  18645. });
  18646. let _eJsonc = Object.keys(element.child);
  18647. let _e2 = element.child;
  18648. for (let j = 0; j < _eJsonc.length; j++) {
  18649. let _ec = _e2[_eJsonc[j]];
  18650. this.data.data.push({
  18651. id: _ec.id,
  18652. parentid: element.id,
  18653. topic: _ec.name,
  18654. });
  18655. let _eJsonz = Object.keys(_ec.child);
  18656. let _e3 = _ec.child;
  18657. for (let z = 0; z < _eJsonz.length; z++) {
  18658. let _ez = _e3[_eJsonz[z]];
  18659. this.data.data.push({
  18660. id: _ez.id,
  18661. parentid: _ec.id,
  18662. topic: _ez.name,
  18663. });
  18664. }
  18665. }
  18666. }
  18667. this.$forceUpdate();
  18668. },
  18669. checkFileFull(type, url) {
  18670. this.fullDialogVisible = true;
  18671. this.fulltype = type;
  18672. this.fullUrl = url;
  18673. },
  18674. async checkFileFull1(t, f) {
  18675. this.fullDialogVisible = true;
  18676. if (t == 6) {
  18677. this.fulltype = 1;
  18678. this.fullUrl = JSON.parse(JSON.stringify(f));
  18679. } else if (t == 8) {
  18680. this.fulltype = 2;
  18681. this.fullUrl = f.url;
  18682. } else if (
  18683. t == 3 &&
  18684. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18685. "PDF"
  18686. ) {
  18687. this.fulltype = 3;
  18688. this.fullUrl = f.url;
  18689. } else if (t == 3) {
  18690. this.fulltype = 2;
  18691. let _uuurl = await this.checkLink(f.url);
  18692. this.fullUrl =
  18693. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18694. }
  18695. },
  18696. openSname(n, id, i, uid) {
  18697. this.snameWid = id;
  18698. this.worksSName = n;
  18699. this.worksSid = uid == n ? "" : uid;
  18700. this.toolindex = i;
  18701. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18702. if (!this.uploadCid) {
  18703. this.$message.error(
  18704. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18705. );
  18706. return;
  18707. }
  18708. this.selectUploadStudent(1);
  18709. },
  18710. updateName() {
  18711. let params = {
  18712. n: this.worksSName,
  18713. cid: this.snameWid,
  18714. };
  18715. this.ajax
  18716. .get(this.$store.state.api + "updateCourseWorksName", params)
  18717. .then((res) => {
  18718. this.$message({
  18719. message: "修改成功",
  18720. type: "success",
  18721. });
  18722. this.dialogVisibleSname = false;
  18723. this.getCourseDetail(2);
  18724. this.snameWid = "";
  18725. this.worksSName = "";
  18726. })
  18727. .catch((err) => {
  18728. console.error(err);
  18729. });
  18730. },
  18731. downloadFile2(f) {
  18732. // const loading = this.$loading.service({
  18733. // background: "rgba(255, 255, 255, 0.7)",
  18734. // target: document.body,
  18735. // text: "文件加载中...",
  18736. // });
  18737. // let url2 = f.url;
  18738. // let _url2 = "";
  18739. // if (
  18740. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18741. // ) {
  18742. // _url2 = url2.split(
  18743. // "https://view.officeapps.live.com/op/view.aspx?src="
  18744. // )[1];
  18745. // } else {
  18746. // _url2 = url2;
  18747. // }
  18748. // let params = {
  18749. // url: _url2,
  18750. // name: f.name,
  18751. // };
  18752. // this.ajax
  18753. // .get(this.$store.state.api + "download", params)
  18754. // .then((res) => {
  18755. // loading.close();
  18756. // let content = res.data.data.data;
  18757. // let ab = new ArrayBuffer(content.length);
  18758. // let view = new Uint8Array(ab);
  18759. // for (var i = 0; i < content.length; ++i) {
  18760. // view[i] = content[i];
  18761. // }
  18762. // let elink = document.createElement("a");
  18763. // elink.download = f.name;
  18764. // elink.style.display = "none";
  18765. // let blob = new Blob([ab], {
  18766. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18767. // });
  18768. // elink.href = URL.createObjectURL(blob);
  18769. // document.body.appendChild(elink);
  18770. // elink.click();
  18771. // document.body.removeChild(elink);
  18772. // })
  18773. // .catch((err) => {
  18774. // loading.close();
  18775. // console.error(err);
  18776. // });
  18777. var credentials = {
  18778. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18779. secretAccessKey: "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",
  18780. }; //秘钥形式的登录上传
  18781. window.AWS.config.update(credentials);
  18782. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18783. let url2 = f.url;
  18784. let _url2 = "";
  18785. if (
  18786. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18787. ) {
  18788. _url2 = url2.split(
  18789. "https://view.officeapps.live.com/op/view.aspx?src="
  18790. )[1];
  18791. } else {
  18792. _url2 = url2;
  18793. }
  18794. let _this = this;
  18795. _this.downLoading = true
  18796. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18797. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18798. var params = {
  18799. Bucket: "ccrb",
  18800. Key: name
  18801. };
  18802. s3.getObject(params, function (err, data) {
  18803. _this.downLoading = false
  18804. if (err) console.log(err, err.stack); // an error occurred
  18805. else {
  18806. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18807. let a = document.createElement("a");
  18808. a.name = f.name;
  18809. a.href = url;
  18810. a.download = f.name;
  18811. a.click();
  18812. console.log(data);
  18813. } // sxuccessful response
  18814. });
  18815. return;
  18816. let url = f.url;
  18817. let _url = "";
  18818. if (
  18819. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18820. ) {
  18821. _url = url.split(
  18822. "https://view.officeapps.live.com/op/view.aspx?src="
  18823. )[1];
  18824. } else {
  18825. _url = url;
  18826. }
  18827. _this.downLoading = true
  18828. // const loading = _this.$loading.service({
  18829. // background: "rgba(255, 255, 255, 0.7)",
  18830. // target: document.body,
  18831. // text: "文件加载中...",
  18832. // });
  18833. let x = new XMLHttpRequest();
  18834. x.open("GET", _url, true);
  18835. x.responseType = "blob";
  18836. x.onload = function () {
  18837. _this.downLoading = false
  18838. // loading.close();
  18839. let url = window.URL.createObjectURL(new Blob([x.response]));
  18840. let a = document.createElement("a");
  18841. a.name = f.name;
  18842. a.href = url;
  18843. a.download = f.name;
  18844. a.click();
  18845. };
  18846. x.send();
  18847. },
  18848. downloadFile(url) {
  18849. var credentials = {
  18850. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18851. secretAccessKey: "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",
  18852. }; //秘钥形式的登录上传
  18853. window.AWS.config.update(credentials);
  18854. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18855. let url2 = url;
  18856. let _url2 = "";
  18857. if (
  18858. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18859. ) {
  18860. _url2 = url2.split(
  18861. "https://view.officeapps.live.com/op/view.aspx?src="
  18862. )[1];
  18863. } else {
  18864. _url2 = url2;
  18865. }
  18866. const loading2 = this.$loading.service({
  18867. background: "rgba(255, 255, 255, 0.7)",
  18868. target: document.body,
  18869. text: "文件加载中...",
  18870. });
  18871. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18872. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18873. var params = {
  18874. Bucket: "ccrb",
  18875. Key: name
  18876. };
  18877. s3.getObject(params, function (err, data) {
  18878. loading2.close();
  18879. if (err) console.log(err, err.stack); // an error occurred
  18880. else {
  18881. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18882. let a = document.createElement("a");
  18883. a.name = name;
  18884. a.href = url;
  18885. a.download = name;
  18886. a.click();
  18887. console.log(data);
  18888. } // sxuccessful response
  18889. });
  18890. return;
  18891. let _this = this;
  18892. let _url = "";
  18893. if (
  18894. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18895. ) {
  18896. _url = url.split(
  18897. "https://view.officeapps.live.com/op/view.aspx?src="
  18898. )[1];
  18899. } else {
  18900. _url = url;
  18901. }
  18902. const x = new XMLHttpRequest();
  18903. x.open("GET", _url, true);
  18904. x.responseType = "blob";
  18905. const loading = _this.$loading.service({
  18906. background: "rgba(255, 255, 255, 0.7)",
  18907. target: document.body,
  18908. text: "文件加载中...",
  18909. });
  18910. // _this.$message.success("文件下载中...");
  18911. x.onload = function (e) {
  18912. loading.close();
  18913. let content = x.response;
  18914. let elink = document.createElement("a");
  18915. elink.download = decodeURI(
  18916. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  18917. );
  18918. elink.style.display = "none";
  18919. let blob = new Blob([content]);
  18920. elink.href = URL.createObjectURL(blob);
  18921. document.body.appendChild(elink);
  18922. elink.click();
  18923. document.body.removeChild(elink);
  18924. };
  18925. x.send();
  18926. },
  18927. openLine(url) {
  18928. window.open(url);
  18929. },
  18930. resize() {
  18931. if (document.getElementsByClassName("box_course").length) {
  18932. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18933. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18934. if (this.showType == 2 || this.showType == 3) {
  18935. document.getElementsByClassName("navBox")[0].style.height =
  18936. a - 40 + 0+ "px";
  18937. } else {
  18938. document.getElementsByClassName("navBox")[0].style.height =
  18939. a - 40 + "px";
  18940. }
  18941. }
  18942. this.Stbodywidth =
  18943. document.getElementsByClassName("student_body").length &&
  18944. document.getElementsByClassName("student_body")[0].offsetWidth;
  18945. },
  18946. closeDraw() {
  18947. this.bg = null;
  18948. this.drawShow = false;
  18949. },
  18950. showPicturePaint(url) {
  18951. let params = {
  18952. img: url,
  18953. };
  18954. this.ajax
  18955. .get(this.$store.state.api + "imgToBase64", params)
  18956. .then((res) => {
  18957. this.drawShow = true;
  18958. this.bg = res.data[0].img;
  18959. })
  18960. .catch((err) => {
  18961. console.error(err);
  18962. });
  18963. },
  18964. addImgDraw(base64) {
  18965. let file = { name: "批注图.png" };
  18966. let img = this.dataUrlToFile(base64, file);
  18967. this.beforeUpload1(img, 5);
  18968. },
  18969. addImgDrawImG(url) {
  18970. // console.log(url);
  18971. let params = [
  18972. {
  18973. wid: this.commentDetail.wid,
  18974. img: url,
  18975. },
  18976. ];
  18977. this.ajax
  18978. .post(this.$store.state.api + "updateCourseWorks", params)
  18979. .then((res) => {
  18980. this.$message({
  18981. message: "提交成功",
  18982. type: "success",
  18983. });
  18984. this.drawShow = false;
  18985. this.bg = "";
  18986. this.selectSWorks();
  18987. this.selectStudent();
  18988. })
  18989. .catch((err) => {
  18990. this.$message.error("提交失败");
  18991. console.error(err);
  18992. });
  18993. },
  18994. deletePicturePaint() {
  18995. this.$confirm("确定删除此批注吗?", "提示", {
  18996. confirmButtonText: "确定",
  18997. cancelButtonText: "取消",
  18998. type: "warning",
  18999. })
  19000. .then(() => {
  19001. let params = [
  19002. {
  19003. wid: this.commentDetail.wid,
  19004. img: "",
  19005. },
  19006. ];
  19007. this.ajax
  19008. .post(this.$store.state.api + "updateCourseWorks", params)
  19009. .then((res) => {
  19010. this.$message({
  19011. message: "删除成功",
  19012. type: "success",
  19013. });
  19014. this.selectSWorks();
  19015. this.selectStudent();
  19016. })
  19017. .catch((err) => {
  19018. this.$message.error("删除失败");
  19019. console.error(err);
  19020. });
  19021. })
  19022. .catch(() => {});
  19023. },
  19024. getAudioVideo(constraintsData) {
  19025. if (navigator.mediaDevices === undefined) {
  19026. navigator.mediaDevices = {};
  19027. }
  19028. if (navigator.mediaDevices.getUserMedia === undefined) {
  19029. navigator.mediaDevices.getUserMedia = function (constraints) {
  19030. // 首先,如果有getUserMedia的话,就获得它
  19031. var getUserMedia =
  19032. navigator.getUserMedia ||
  19033. navigator.webkitGetUserMedia ||
  19034. navigator.mozGetUserMedia ||
  19035. navigator.msGetUserMedia;
  19036. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19037. if (!getUserMedia) {
  19038. return Promise.reject({ code: 404 });
  19039. }
  19040. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19041. return new Promise(function (resolve, reject) {
  19042. getUserMedia.call(navigator, constraints, resolve, reject);
  19043. });
  19044. };
  19045. }
  19046. return navigator.mediaDevices.getUserMedia(constraintsData);
  19047. },
  19048. /**
  19049. * 开始录制
  19050. */
  19051. startRecording(callback) {
  19052. let _function = (screenStream) => {
  19053. this.addStreamStopListener(screenStream, () => {
  19054. console.log("流停止监听");
  19055. this.stopRecording();
  19056. this.$emit("streamStop", {});
  19057. // this.stopRecording();
  19058. });
  19059. var options = {
  19060. type: "video",
  19061. mimeType: "video/webm",
  19062. disableLogs: false,
  19063. getNativeBlob: false, // enable it for longer recordings
  19064. ignoreMutedMedia: false,
  19065. };
  19066. // this.video.srcObject = screenStream;
  19067. this.recorder = RecordRTC(screenStream, options);
  19068. this.recorder.startRecording();
  19069. this.recorder.screen = screenStream;
  19070. this.videoStart = true;
  19071. // callback(true);
  19072. };
  19073. this.getAudioVideo({ audio: true })
  19074. .then((res) => {
  19075. this.captureScreen(_function, true);
  19076. console.log("已点击允许,开启成功");
  19077. })
  19078. .catch((err) => {
  19079. // console.log('浏览器不支持,请更换浏览器')
  19080. // } else {
  19081. this.captureScreen(_function, false);
  19082. console.log("请检查是否存在麦克风");
  19083. });
  19084. },
  19085. /**
  19086. * 停止录制
  19087. */
  19088. stopRecording(callback) {
  19089. this.recorder.stopRecording(() => {
  19090. // this.video.src = this.video.srcObject = null;
  19091. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19092. const url = URL.createObjectURL(this.recorder.getBlob());
  19093. const a = document.createElement("a"); //this.fileName+
  19094. let videoFile = new File(
  19095. [this.recorder.getBlob()],
  19096. this.courseDetail.title + "录屏.mp4",
  19097. {
  19098. type: "video/mp4",
  19099. }
  19100. );
  19101. let downloadUrl = URL.createObjectURL(videoFile);
  19102. document.body.appendChild(a);
  19103. a.style.display = "none";
  19104. a.href = url;
  19105. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19106. a.click();
  19107. this.recorder.screen.stop();
  19108. this.recorder.destroy();
  19109. this.recorder = null;
  19110. this.videoStart = false;
  19111. // callback(false);
  19112. });
  19113. },
  19114. //初始化
  19115. captureScreen(callback, type) {
  19116. if (navigator.getDisplayMedia) {
  19117. //录制结束,文件下载
  19118. navigator
  19119. .getDisplayMedia({
  19120. video: true,
  19121. })
  19122. .then((screenStream) => {
  19123. if (type) {
  19124. navigator.mediaDevices
  19125. .getUserMedia({ audio: true })
  19126. .then((mic) => {
  19127. screenStream.addTrack(mic.getTracks()[0]);
  19128. callback(screenStream);
  19129. });
  19130. } else {
  19131. callback(screenStream);
  19132. }
  19133. })
  19134. .catch(function (error) {
  19135. console.log("error", error);
  19136. });
  19137. } else if (navigator.mediaDevices.getDisplayMedia) {
  19138. navigator.mediaDevices
  19139. .getDisplayMedia({
  19140. video: true,
  19141. })
  19142. .then((screenStream) => {
  19143. if (type) {
  19144. navigator.mediaDevices
  19145. .getUserMedia({ audio: true })
  19146. .then((mic) => {
  19147. screenStream.addTrack(mic.getTracks()[0]);
  19148. callback(screenStream);
  19149. });
  19150. } else {
  19151. callback(screenStream);
  19152. }
  19153. })
  19154. .catch(function (error) {
  19155. console.log("error", error);
  19156. });
  19157. } else {
  19158. var error = "getDisplayMedia API are not supported in this browser.";
  19159. console.log("error", error);
  19160. alert(error);
  19161. }
  19162. },
  19163. //流监听
  19164. addStreamStopListener(stream, callback) {
  19165. stream.addEventListener(
  19166. "ended",
  19167. function () {
  19168. callback();
  19169. callback = function () {};
  19170. },
  19171. false
  19172. );
  19173. stream.addEventListener(
  19174. "inactive",
  19175. function () {
  19176. callback();
  19177. callback = function () {};
  19178. },
  19179. false
  19180. );
  19181. stream.getTracks().forEach(function (track) {
  19182. track.addEventListener(
  19183. "ended",
  19184. function () {
  19185. callback();
  19186. callback = function () {};
  19187. },
  19188. false
  19189. );
  19190. track.addEventListener(
  19191. "inactive",
  19192. function () {
  19193. callback();
  19194. callback = function () {};
  19195. },
  19196. false
  19197. );
  19198. });
  19199. },
  19200. updateGroup() {
  19201. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19202. this.dialogVisibleGroup2 = true;
  19203. },
  19204. numberPan() {
  19205. if (
  19206. /[^\d]/.test(this.groupJson.number) ||
  19207. this.groupJson.number < 2 ||
  19208. this.groupJson.number > 10
  19209. ) {
  19210. this.$message.error("请输入2-10的数字");
  19211. this.groupJson.number = "";
  19212. }
  19213. },
  19214. updateGroupJson() {
  19215. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19216. if (
  19217. this.groupStudentUid[this.toolindex][i].length >
  19218. this.groupJson2.number
  19219. ) {
  19220. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19221. return;
  19222. }
  19223. }
  19224. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19225. this.islock = this.groupJson.islock == 1 ? true : false;
  19226. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19227. this.taskCount
  19228. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19229. let params = [
  19230. {
  19231. cid: this.id,
  19232. chapters: JSON.stringify(this.chapInfoList),
  19233. uid: this.userid,
  19234. unitIndex: this.courseType,
  19235. },
  19236. ];
  19237. this.ajax
  19238. .post(this.$store.state.api + "updateWorkNew4", params)
  19239. .then((res) => {
  19240. this.$message.success("设置成功");
  19241. this.getCourseDetail(2);
  19242. this.dialogVisibleGroup2 = false;
  19243. this.groupJson2 = {};
  19244. this.$forceUpdate();
  19245. })
  19246. .catch((err) => {
  19247. this.$message.error("网络不佳");
  19248. console.error(err);
  19249. });
  19250. },
  19251. lockChair() {
  19252. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19253. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19254. this.updateGroupJson();
  19255. },
  19256. selectGroup(index) {
  19257. this.getCourseDetail(2, index);
  19258. },
  19259. joinGroup(index) {
  19260. if (this.groupJson.islock == 2) {
  19261. this.$message.error("位置已被锁定,无法加入");
  19262. return;
  19263. }
  19264. if (
  19265. this.groupStudent[this.toolindex][index].length >
  19266. this.groupJson.number ||
  19267. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19268. ) {
  19269. this.$message.error("位置已满,无法加入");
  19270. return;
  19271. }
  19272. let params = [
  19273. {
  19274. cid: this.id,
  19275. stage: this.courseType,
  19276. task: this.taskCount,
  19277. tool: this.toolindex,
  19278. g: index,
  19279. uid: this.userid,
  19280. },
  19281. ];
  19282. this.ajax
  19283. .post(this.$store.state.api + "joinGroup", params)
  19284. .then((res) => {
  19285. this.$message.success("加入成功");
  19286. this.getCourseDetail(2);
  19287. })
  19288. .catch((err) => {
  19289. this.$message.error("网络不佳");
  19290. console.error(err);
  19291. });
  19292. },
  19293. exitGroup(id) {
  19294. if (this.groupJson.islock == 2) {
  19295. this.$message.error("位置已被锁定,无法退出");
  19296. return;
  19297. }
  19298. let params = [
  19299. {
  19300. gid: id,
  19301. },
  19302. ];
  19303. this.ajax
  19304. .post(this.$store.state.api + "exitGroup", params)
  19305. .then((res) => {
  19306. this.$message.success("退出成功");
  19307. this.getCourseDetail(2);
  19308. })
  19309. .catch((err) => {
  19310. this.$message.error("网络不佳");
  19311. console.error(err);
  19312. });
  19313. },
  19314. groupUpload(index, task, gindex) {
  19315. this.taskCount = task;
  19316. this.toolindex = index;
  19317. this.groupIndex = gindex;
  19318. this.dialogVisibleGroupWork = true;
  19319. },
  19320. updateGroupChair(user) {
  19321. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19322. el.label = index;
  19323. return index != user.group;
  19324. });
  19325. this.updateGroupUser = user;
  19326. this.dialogVisibleUpdateGroup = true;
  19327. },
  19328. updateChair() {
  19329. if (
  19330. this.groupStudent[this.toolindex][this.checkChair].length >
  19331. this.groupJson.number ||
  19332. this.groupStudent[this.toolindex][this.checkChair].length ==
  19333. this.groupJson.number
  19334. ) {
  19335. this.$message.error("位置已满,无法加入");
  19336. return;
  19337. }
  19338. let params = [
  19339. {
  19340. cid: this.id,
  19341. stage: this.courseType,
  19342. task: this.taskCount,
  19343. tool: this.toolindex,
  19344. g: this.checkChair,
  19345. uid: this.updateGroupUser.userid,
  19346. },
  19347. ];
  19348. this.ajax
  19349. .post(this.$store.state.api + "joinGroup", params)
  19350. .then((res) => {
  19351. this.$message.success("修改成功");
  19352. this.updateGroupUser = {};
  19353. this.checkChair = "";
  19354. this.updateGroupArray = {};
  19355. this.dialogVisibleUpdateGroup = false;
  19356. this.getCourseDetail(2);
  19357. })
  19358. .catch((err) => {
  19359. this.$message.error("网络不佳");
  19360. console.error(err);
  19361. });
  19362. },
  19363. deleteGroupChair(gindex) {
  19364. this.checkDeleteGroup = [];
  19365. this.deleteGroupUser = JSON.parse(
  19366. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19367. );
  19368. this.deleteGroupArray = this.groupJson.group[gindex];
  19369. this.groupIndex = gindex;
  19370. this.dialogVisibleDeleteGroup = true;
  19371. },
  19372. async deleteChair() {
  19373. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19374. const gid =
  19375. this.groupStudent[this.toolindex][this.groupIndex][
  19376. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19377. this.checkDeleteGroup[i]
  19378. )
  19379. ];
  19380. let params = [
  19381. {
  19382. gid: gid.id,
  19383. },
  19384. ];
  19385. var a = await this.deleteChairA(params);
  19386. if (i == this.checkDeleteGroup.length - 1) {
  19387. this.$message.success("退出成功");
  19388. this.dialogVisibleDeleteGroup = false;
  19389. this.deleteGroupUser = [];
  19390. this.deleteGroupArray = {};
  19391. this.groupIndex = "";
  19392. this.checkDeleteGroup = [];
  19393. this.getCourseDetail(2);
  19394. }
  19395. }
  19396. },
  19397. deleteChairA(params) {
  19398. return new Promise((resolve, reject) => {
  19399. this.ajax
  19400. .post(this.$store.state.api + "exitGroup", params)
  19401. .then((res) => {
  19402. resolve(1);
  19403. })
  19404. .catch((err) => {
  19405. this.$message.error("网络不佳");
  19406. console.error(err);
  19407. });
  19408. });
  19409. },
  19410. contract(i) {
  19411. if (this.isCloseList[i].isClose == 0) {
  19412. this.isCloseList[i].isClose = 1;
  19413. } else {
  19414. this.isCloseList[i].isClose = 0;
  19415. }
  19416. this.$forceUpdate();
  19417. },
  19418. openWordCloud(toolindex) {
  19419. let array = [];
  19420. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19421. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19422. array.push({ name: works });
  19423. }
  19424. if (this.isGroup) {
  19425. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19426. let works = this.courseGroup.group[i].works[toolindex];
  19427. for (var j = 0; j < works.length; j++) {
  19428. let answer = JSON.parse(works[j].works)[0].answer;
  19429. array.push({ name: answer });
  19430. }
  19431. }
  19432. }
  19433. this.wordCloudData = array;
  19434. this.dialogVisibleWordCloud = true;
  19435. },
  19436. openTips(i) {
  19437. this.tipsIndex = i;
  19438. this.downDialogVisible = true;
  19439. },
  19440. uploadWorks() {
  19441. this.$confirm("确定导出作业吗?", "提示", {
  19442. confirmButtonText: "确定",
  19443. cancelButtonText: "取消",
  19444. type: "warning",
  19445. })
  19446. .then(() => {
  19447. const loading = this.$loading.service({
  19448. background: "rgba(255, 255, 255, 0.7)",
  19449. target: document.body,
  19450. text: "文件加载中...",
  19451. });
  19452. const _worksStudent = this.worksStudent;
  19453. let url = [];
  19454. var counts = {};
  19455. for (var l = 0; l < _worksStudent[i].length; l++) {
  19456. var item = _worksStudent[i][l];
  19457. var name = item.sName;
  19458. if (!counts.hasOwnProperty(name)) {
  19459. counts[name] = 0;
  19460. } else {
  19461. counts[name]++;
  19462. }
  19463. if (counts[name] > 0) {
  19464. item.sName += " (" + counts[name] + ")";
  19465. }
  19466. }
  19467. for (var l = 0; l < _worksStudent[i].length; l++) {
  19468. var item = _worksStudent[i][l];
  19469. if (
  19470. item.works.indexOf(
  19471. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19472. ) !== -1 &&
  19473. item.works.indexOf("img") === -1
  19474. ) {
  19475. url.push({ name: item.sName, url: item.works });
  19476. }
  19477. }
  19478. // var toolList = [
  19479. // { name: "电子白板", tool: 1 },
  19480. // { name: "思维导图", tool: 3 },
  19481. // { name: "协同文档", tool: 6 },
  19482. // { name: "思维网格", tool: 7 },
  19483. // { name: "素材库", tool: 8 },
  19484. // { name: "学习资料", tool: 17 },
  19485. // { name: "便签", tool: 2 },
  19486. // { name: "问卷调查", tool: 4 },
  19487. // { name: "选择题", tool: 45 },
  19488. // { name: "倒计时", tool: 10 },
  19489. // { name: "问答", tool: 15 },
  19490. // { name: "课程设计", tool: 26 },
  19491. // { name: "训练服务器", tool: 18 },
  19492. // { name: "作业提交", tool: 16 },
  19493. // { name: "批量上传", tool: 50 },
  19494. // { name: "AIoT Blockly", tool: 21 },
  19495. // { name: "AI Python", tool: 23 },
  19496. // { name: "AI Blockly", tool: 24 },
  19497. // { name: "目标管理", tool: 25 },
  19498. // { name: "数学画板", tool: 31 },
  19499. // { name: "翻译", tool: 28 },
  19500. // { name: "魔盒识字", tool: 37 },
  19501. // { name: "数学画板", tool: 31 },
  19502. // { name: "24点", tool: 38 },
  19503. // { name: "GeoGebra", tool: 39 },
  19504. // { name: "源码编辑", tool: 32 },
  19505. // { name: "个人评价", tool: 40 },
  19506. // { name: "选择匹配", tool: 41 },
  19507. // { name: "汉字宫", tool: 44 },
  19508. // { name: "排序", tool: 47 },
  19509. // { name: "表格", tool: 48 },
  19510. // { name: "文档", tool: 52 },
  19511. // { name: "学生分组", tool: 49 },
  19512. // { name: "CocoPi", tool: 57 },
  19513. // { name: "模拟驾驶", tool: 58 },
  19514. // { name: "路径搜索", tool: 59 },
  19515. // { name: "深度学习", tool: 60 },
  19516. // { name: "全历史", tool: 61 },
  19517. // { name: "交互视频", tool: 62 },
  19518. // { name: "海龟编程", tool: 63 },
  19519. // { name: "挑人", tool: 65 },
  19520. // { name: "公式编辑", tool: 66 },
  19521. // { name: "分子结构", tool: 67 },
  19522. // { name: "时间轴", tool: 68 },
  19523. // ];
  19524. // var toolName = "";
  19525. // for(var w = 0;w<toolList.length;w++){
  19526. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19527. // toolName = toolList[w].name;
  19528. // }
  19529. // }
  19530. console.log(url);
  19531. this.downLoadAll(url, loading);
  19532. })
  19533. .catch(() => {});
  19534. },
  19535. downLoadAll(url, loading) {
  19536. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19537. const zip = new JSZip();
  19538. const cache = {};
  19539. const promises = [];
  19540. data.forEach((item) => {
  19541. const promise = getFile(item.url).then((data) => {
  19542. if (data.data != 1) {
  19543. // 下载文件, 并存成ArrayBuffer对象
  19544. const file_name =
  19545. item.name +
  19546. "." +
  19547. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19548. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19549. cache[file_name] = data.data;
  19550. }
  19551. });
  19552. promises.push(promise);
  19553. });
  19554. Promise.all(promises).then(() => {
  19555. zip.generateAsync({ type: "blob" }).then((content) => {
  19556. // 生成二进制流
  19557. FileSaver.saveAs(
  19558. content,
  19559. this.courseDetail.title + "-" + "作业提交工具.zip"
  19560. ); // 利用file-saver保存文件 自定义文件名
  19561. setTimeout(() => {
  19562. loading.close();
  19563. }, 2000);
  19564. });
  19565. });
  19566. },
  19567. pickStudent(stu) {
  19568. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19569. return;
  19570. }
  19571. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19572. confirmButtonText: "确定",
  19573. cancelButtonText: "取消",
  19574. type: "warning",
  19575. })
  19576. .then(() => {
  19577. let params = [
  19578. {
  19579. uid: stu.userid,
  19580. cid: this.id,
  19581. stage: this.courseType,
  19582. task: this.taskCount,
  19583. tool: this.toolindex,
  19584. },
  19585. ];
  19586. this.ajax
  19587. .post(this.$store.state.api + "updateCoursePick", params)
  19588. .then((res) => {
  19589. this.$message.success("操作成功");
  19590. this.getPick();
  19591. })
  19592. .catch((err) => {
  19593. this.$message.error("网络不佳");
  19594. console.error(err);
  19595. });
  19596. })
  19597. .catch(() => {});
  19598. },
  19599. selectUser(){
  19600. let params = {
  19601. userid: this.userid,
  19602. };
  19603. this.ajax
  19604. .get(this.$store.state.api + "selectUser", params)
  19605. .then((res) => {
  19606. this.userMes = res.data[0];
  19607. })
  19608. .catch((err) => {
  19609. console.error(err);
  19610. });
  19611. },
  19612. setEngText(i){
  19613. this.newEngIndex = i;
  19614. this.$forceUpdate();
  19615. },
  19616. addCorrect(){
  19617. this.$confirm("你确定提交批改嘛?", "提示", {
  19618. confirmButtonText: "确定",
  19619. showCancelButton: false,
  19620. closeOnClickModal: false,
  19621. type: "warning",
  19622. })
  19623. .then(() => {
  19624. let params = {
  19625. cid: this.id,
  19626. s: parseInt(this.courseType),
  19627. t: this.taskCount,
  19628. tool: this.toolindex,
  19629. wid: this.engWid,
  19630. c: this.userid,
  19631. 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) : "",
  19632. };
  19633. this.ajax
  19634. .get(this.$store.state.api + "addEngC", params)
  19635. .then((res) => {
  19636. this.$message.success("提交成功");
  19637. this.engUpdateDialogVisible = false;
  19638. })
  19639. .catch((err) => {
  19640. console.error(err);
  19641. });
  19642. })
  19643. .catch(() => {});
  19644. },
  19645. selectEngC(id,z){
  19646. let params = {
  19647. workid: id,
  19648. };
  19649. this.ajax
  19650. .get(this.$store.state.api + "selectEngC", params)
  19651. .then((res) => {
  19652. if(res.data[0].length == 0){
  19653. this.newEnglishList.engTitle = z.engTitle;
  19654. this.newEnglishList.engText = z.engText;
  19655. }else{
  19656. var a = res.data[0];
  19657. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19658. if(this.userMes[0].type == 2){
  19659. var snum = 0;
  19660. for(var i = 0;i<a.length;i++){
  19661. if(this.userMes[0].userid == a[i].correct){
  19662. this.newEnglishList = JSON.parse(a[i].cWork);
  19663. snum = 1;
  19664. }
  19665. }
  19666. if(snum == 0){
  19667. this.newEnglishList = { engTitle:"",engText:"" };
  19668. this.newEnglishList.engTitle = z.engTitle;
  19669. this.newEnglishList.engText = z.engText;
  19670. }
  19671. }else if(this.userMes[0].type == 1){
  19672. var num = 0;
  19673. for(var w= 0;w<a.length;w++){
  19674. if(this.userMes[0].userid == a[w].correct){
  19675. num = 1;
  19676. }
  19677. }
  19678. if(num == 0){
  19679. this.isNoUserid = true;
  19680. var c = JSON.parse(JSON.stringify(z));
  19681. this.oldEnglishJson1 = c;
  19682. }else{
  19683. this.isNoUserid = false;
  19684. }
  19685. var b = a.sort((item, index) => {
  19686. console.log(item)
  19687. if (item.correct === this.userMes[0].userid) {
  19688. return -1; // 将a移到前面
  19689. } else if (index.correct === this.userMes[0].userid) {
  19690. return 1; // 将b移到前面
  19691. } else {
  19692. return 0; // 保持默认顺序
  19693. }
  19694. });
  19695. for(var p = 0;p<b.length;p++){
  19696. for(var y = 0;y<ppp.length;y++){
  19697. if(b[p].id == ppp[y].id){
  19698. b[p].cWork = JSON.parse(ppp[y].cWork);
  19699. break
  19700. }
  19701. }
  19702. }
  19703. this.newEnglishList1 = b;
  19704. }
  19705. }
  19706. this.greyType = false;
  19707. setTimeout(() => {
  19708. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19709. if(this.newEnglishList1.length > 0){
  19710. if(this.isNoUserid == true){
  19711. this.engListLength = this.newEnglishList1.length + 1;
  19712. this.newEngIndex = -1;
  19713. }else{
  19714. this.engListLength = this.newEnglishList1.length;
  19715. this.newEngIndex = 0;
  19716. }
  19717. }
  19718. if(this.userMes[0].type == 2){
  19719. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19720. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19721. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19722. }else if(this.newEngIndex == -1){
  19723. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19724. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19725. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19726. }
  19727. }, 500);
  19728. this.engUpdateDialogVisible = true;
  19729. this.$forceUpdate();
  19730. })
  19731. .catch((err) => {
  19732. console.error(err);
  19733. });
  19734. },
  19735. getPick() {
  19736. let params = {
  19737. cid: this.id,
  19738. };
  19739. this.ajax
  19740. .get(this.$store.state.api + "getPick", params)
  19741. .then((res) => {
  19742. let array = [];
  19743. for (var i = 0; i < res.data[0].length; i++) {
  19744. array.push(res.data[0][i].userid);
  19745. }
  19746. this.isPickStudent = array;
  19747. if (array.indexOf(this.userid) !== -1) {
  19748. this.$confirm("你被老师选到啦!", "提示", {
  19749. confirmButtonText: "确定",
  19750. showCancelButton: false,
  19751. closeOnClickModal: false,
  19752. type: "warning",
  19753. })
  19754. .then(() => {
  19755. let pa = [
  19756. {
  19757. uid: this.userid,
  19758. cid: this.id,
  19759. },
  19760. ];
  19761. this.ajax
  19762. .post(this.$store.state.api + "deletePick", pa)
  19763. .then((res) => {
  19764. this.getPick();
  19765. })
  19766. .catch((err) => {
  19767. this.$message.error("网络不佳");
  19768. console.error(err);
  19769. });
  19770. })
  19771. .catch(() => {});
  19772. }
  19773. })
  19774. .catch((err) => {
  19775. this.$message.error("网络不佳");
  19776. console.error(err);
  19777. });
  19778. },
  19779. foldEva() {
  19780. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19781. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19782. } else {
  19783. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19784. setTimeout(() => {
  19785. this.checkEva();
  19786. setTimeout(() => {
  19787. this.checkEva();
  19788. }, 500);
  19789. }, 0);
  19790. }
  19791. this.$forceUpdate();
  19792. },
  19793. panToolHeight(tool) {
  19794. var _tool = document.querySelectorAll('#'+tool)[0]
  19795. var _toolA = _tool ? _tool.offsetHeight : 0
  19796. var _toolC = 0
  19797. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19798. let boolean2 = (_toolA > _toolC) ? true : false
  19799. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19800. this.$forceUpdate();
  19801. },
  19802. async checkLink(url) {
  19803. // console.log(url)
  19804. let _url = url
  19805. try {
  19806. const response = await fetch(url);
  19807. if(!response.ok){
  19808. _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]))
  19809. }
  19810. // console.log(response.ok)
  19811. } catch (error) {
  19812. console.error('Error checking link:', error);
  19813. // console.log(false)
  19814. _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]))
  19815. }
  19816. // console.log(_url)
  19817. return _url
  19818. },
  19819. setClassRoomHelperWidth(width){
  19820. this.classRoomHelperWidth = width
  19821. }
  19822. },
  19823. directives: {
  19824. // 使用局部注册指令的方式
  19825. resize: {
  19826. // 指令的名称
  19827. bind(el, binding) {
  19828. // el为绑定的元素,binding为绑定给指令的对象
  19829. let width = "",
  19830. height = "";
  19831. function isReize() {
  19832. const style = document.defaultView.getComputedStyle(el);
  19833. if (width !== style.width || height !== style.height) {
  19834. binding.value(); // 关键
  19835. }
  19836. width = style.width;
  19837. height = style.height;
  19838. }
  19839. el.__vueSetInterval__ = setInterval(isReize, 300);
  19840. },
  19841. unbind(el) {
  19842. clearInterval(el.__vueSetInterval__);
  19843. },
  19844. },
  19845. autoHeight: {
  19846. update(el, binding) {
  19847. const { value } = binding
  19848. if (value && typeof value === 'number') {
  19849. el.style.height = `${value}px`
  19850. } else {
  19851. el.style.height = 'auto'
  19852. }
  19853. },
  19854. componentUpdated(el) {
  19855. el.style.height = `${el.scrollHeight + 5}px`
  19856. },
  19857. },
  19858. },
  19859. beforeDestroy() {
  19860. window.onresize = null;
  19861. clearInterval(this.timer);
  19862. this.timer = null;
  19863. clearInterval(this.opertimer);
  19864. this.opertimer = null;
  19865. },
  19866. computed: {
  19867. getHeight(){
  19868. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19869. },
  19870. contentConvent() {
  19871. return function (c) {
  19872. return c
  19873. ? c
  19874. .replaceAll(/\r\n/g, "<br/>")
  19875. .replaceAll(/\n/g, "<br/>")
  19876. .replaceAll(/\s/g, " &nbsp")
  19877. : "";
  19878. };
  19879. },
  19880. commentRight(){
  19881. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  19882. return "35px";
  19883. }
  19884. return `calc(${this.classRoomHelperWidth} + 5px)`
  19885. // if(this.$refs["classRoomHelperRef"].type==0){
  19886. // return "100px";
  19887. // }else if(this.$refs["classRoomHelperRef"].type==1){
  19888. // return "502px"
  19889. // }else{
  19890. // return "0px"
  19891. // }
  19892. },
  19893. checkUpload() {
  19894. return function () {
  19895. var studentK = [];
  19896. if (this.plworkFile.length > 0) {
  19897. for (var z = 0; z < this.plworkFile.length; z++) {
  19898. studentK.push(this.plworkFile[z].username);
  19899. }
  19900. studentK = studentK.join(",");
  19901. }
  19902. var a = this.uploadStudentJuri.filter((el) => {
  19903. return studentK.indexOf(el.userid) == -1;
  19904. });
  19905. return a;
  19906. };
  19907. },
  19908. getSName() {
  19909. return function (name) {
  19910. var check = name;
  19911. this.uploadStudentJuri.forEach((el) => {
  19912. if (el.userid == check) {
  19913. check = el.name ? el.name : el.username;
  19914. }
  19915. });
  19916. return check;
  19917. };
  19918. },
  19919. getImgList() {
  19920. return function (val) {
  19921. let srcList = []; // 定义一个数组用来接收后面的img地址
  19922. val.replace(
  19923. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  19924. function (match, capture) {
  19925. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  19926. srcList.push(capture);
  19927. }
  19928. );
  19929. return srcList;
  19930. };
  19931. },
  19932. retrnToolHeight(){
  19933. return function (tool) {
  19934. var _tool = document.querySelectorAll('#'+tool)[0]
  19935. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  19936. };
  19937. },
  19938. Correct() {
  19939. return function (c) {
  19940. let w = "";
  19941. let a = this.correctWord;
  19942. for(var k = 0;k<a.length;k++){
  19943. //diffWordsWithSpace
  19944. if(a.length > 1){
  19945. if(a[k].added == true){
  19946. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19947. }else if(a[k].removed == true){
  19948. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19949. }else{
  19950. w += '<span>' + a[k].value + '</span>';
  19951. }
  19952. }else{
  19953. w = c
  19954. }
  19955. //diffChars方法
  19956. // if(w == ""){
  19957. // if(a.length > 1){
  19958. // if(a[k].added == true){
  19959. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19960. // }else if(a[k].removed == true){
  19961. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19962. // }
  19963. // }else{
  19964. // w = c
  19965. // }
  19966. // }else{
  19967. // if(k == a.length - 1){
  19968. // if(a[k].added == true){
  19969. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19970. // }else if(a[k].removed == true){
  19971. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19972. // }
  19973. // }else{
  19974. // if(a[k].added == true){
  19975. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19976. // }else if(a[k].removed == true){
  19977. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19978. // }
  19979. // }
  19980. // }
  19981. }
  19982. c = w;
  19983. return c;
  19984. };
  19985. },
  19986. getScoreList(){
  19987. let params = {
  19988. cid: this.id,
  19989. };
  19990. this.ajax
  19991. .get(this.$store.state.api + "selectTestCourseByCid", params)
  19992. .then((res) => {
  19993. let result = res.data;
  19994. this.scoreList.datalist = result[0];
  19995. this.scoreList.isScoreList = result[1];
  19996. })
  19997. .catch((err) => {
  19998. console.error(err);
  19999. });
  20000. },
  20001. },
  20002. mounted() {
  20003. document.body.addEventListener("click", (e) => {
  20004. if (this.isUpdateToolDetail1) {
  20005. this.updateToolDetail(this.toolDetailIndex);
  20006. }
  20007. });
  20008. if (this.screenType == 2) {
  20009. window.parent.postMessage({ allScreen: 4 }, "*");
  20010. } else if (this.screenType == 3) {
  20011. window.parent.postMessage({ allScreen: 5 }, "*");
  20012. } else if (this.screenType == 1) {
  20013. window.parent.postMessage({ allScreen: 6 }, "*");
  20014. }
  20015. this.setOperationTime();
  20016. this.selectEva();
  20017. this.getCourseDetail();
  20018. this.selectCount();
  20019. this.getHomeWork();
  20020. this.selectUser();
  20021. this.contentDialog = true;
  20022. this.setContent2(true);
  20023. if (this.tType == 4) {
  20024. this.pzDialog = true;
  20025. this.selectPz();
  20026. }
  20027. // 获取评分列表
  20028. this.getScoreList()
  20029. document.scrollingElement.scrollTop = 0;
  20030. window.addEventListener("resize", () => {
  20031. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20032. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20033. if (this.showType == 2 || this.showType == 3) {
  20034. document.getElementsByClassName("navBox")[0].style.height =
  20035. a - 40 + 0+ "px";
  20036. } else {
  20037. document.getElementsByClassName("navBox")[0].style.height =
  20038. a - 40 + "px";
  20039. }
  20040. });
  20041. let _this = this;
  20042. setTimeout(() => {
  20043. // _this.vedioTime = [];
  20044. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20045. // _this.vedioTime[i] = document.getElementsByClassName(
  20046. // "vjs-duration-display"
  20047. // )[i].textContent;
  20048. // }
  20049. }, 1000);
  20050. },
  20051. };
  20052. </script>
  20053. <style scoped>
  20054. @media screen and (max-width: 1280px) {
  20055. /* .courseIndex > div:first-child(2) {
  20056. width: 15% !important;
  20057. } */
  20058. /* .navText {
  20059. width: 120px !important;
  20060. } */
  20061. .evaCss {
  20062. flex-direction: column !important;
  20063. align-items: center !important;
  20064. }
  20065. .elist_input {
  20066. width: 90% !important;
  20067. }
  20068. .dialog_diy1 >>> .el-dialog {
  20069. width: 100% !important;
  20070. }
  20071. .rightWidthCss {
  20072. width: 100% !important;
  20073. }
  20074. .dialog_diy3 >>> .el-dialog {
  20075. width: 100% !important;
  20076. }
  20077. .addToolCss {
  20078. right: 0 !important;
  20079. width: 100% !important;
  20080. min-width: unset !important;
  20081. }
  20082. }
  20083. .evaCssMax {
  20084. flex-direction: column !important;
  20085. align-items: center !important;
  20086. }
  20087. .dialog_diy >>> .el-dialog {
  20088. margin-top: 10vh !important;
  20089. }
  20090. .body_student {
  20091. width: 77%;
  20092. height: 100%;
  20093. position: absolute;
  20094. left: 22%;
  20095. top: 0;
  20096. }
  20097. .student_head {
  20098. width: 100%;
  20099. margin: 20px auto 0;
  20100. padding-bottom: 20px;
  20101. display: flex;
  20102. flex-direction: column;
  20103. flex-wrap: nowrap;
  20104. align-items: flex-start;
  20105. justify-content: flex-start;
  20106. }
  20107. .pb_left {
  20108. width: 20%;
  20109. margin-right: 10px;
  20110. background: rgb(255, 255, 255);
  20111. position: fixed;
  20112. height: calc(100% - 40px);
  20113. border-radius: 20px;
  20114. padding-bottom: 15px;
  20115. box-sizing: border-box;
  20116. }
  20117. .wheel > img,
  20118. .project > img,
  20119. .star > img,
  20120. .evaluate > img,
  20121. .up_photo > img,
  20122. .chapter_add > img,
  20123. .deleteWord > img,
  20124. .question > img,
  20125. .homework > img {
  20126. width: 100%;
  20127. height: 100%;
  20128. }
  20129. .upCover > img {
  20130. width: 131px;
  20131. height: 69px;
  20132. object-fit: cover;
  20133. }
  20134. .upCover {
  20135. width: calc(100% / 3.5);
  20136. position: relative;
  20137. margin: 0 15px 10px 0;
  20138. display: flex;
  20139. flex-direction: column;
  20140. flex-wrap: nowrap;
  20141. justify-content: center;
  20142. align-content: center;
  20143. align-items: center;
  20144. height: fit-content;
  20145. }
  20146. .upCover2 {
  20147. width: 100%;
  20148. position: relative;
  20149. margin: 0 15px 10px 0;
  20150. display: flex;
  20151. flex-direction: column;
  20152. flex-wrap: nowrap;
  20153. justify-content: center;
  20154. align-content: center;
  20155. align-items: center;
  20156. }
  20157. .upCover2 > img {
  20158. width: 100%;
  20159. height: 90px;
  20160. object-fit: contain;
  20161. }
  20162. .chapter_add {
  20163. width: 120px;
  20164. position: relative;
  20165. text-align: center;
  20166. }
  20167. .isAddThings {
  20168. margin-top: 20px;
  20169. position: relative;
  20170. text-align: center;
  20171. background: #f7f8fa;
  20172. height: 90px;
  20173. width: 90px;
  20174. display: flex;
  20175. flex-direction: column;
  20176. justify-content: center;
  20177. }
  20178. .deleteWord {
  20179. width: 22px;
  20180. height: 22px;
  20181. position: absolute;
  20182. right: -5px;
  20183. top: -5px;
  20184. cursor: pointer;
  20185. }
  20186. .box_course {
  20187. /* width: 60%; */
  20188. width: calc(100% - 300px);
  20189. }
  20190. .wheel {
  20191. width: 100%;
  20192. /* height: 100%; */
  20193. height: 650px;
  20194. }
  20195. .right_box {
  20196. display: flex;
  20197. flex-direction: column;
  20198. margin-left: 30px;
  20199. justify-content: space-around;
  20200. }
  20201. .right_box_title {
  20202. font-size: 23px;
  20203. }
  20204. .people {
  20205. display: flex;
  20206. }
  20207. .student_body {
  20208. width: 100%;
  20209. margin: 0 auto;
  20210. margin-top: 10px;
  20211. padding: 0 0 20px;
  20212. }
  20213. .study_top {
  20214. margin-top: 100px;
  20215. width: 100%;
  20216. height: auto;
  20217. padding-bottom: 20px;
  20218. }
  20219. .study_top .checkbox {
  20220. display: flex;
  20221. align-items: center;
  20222. padding: 15px 0 15px 30px;
  20223. flex: 0 0 auto;
  20224. font-weight: bold;
  20225. border-bottom: 1px solid #eee;
  20226. }
  20227. .study_top .check {
  20228. padding-bottom: 5px;
  20229. text-align: center;
  20230. cursor: pointer;
  20231. height: 30px;
  20232. box-sizing: border-box;
  20233. display: flex;
  20234. }
  20235. .study_top .checked {
  20236. border-bottom: 4px solid #3fc6a0;
  20237. padding-bottom: 5px;
  20238. color: #3fc6a0;
  20239. display: flex;
  20240. height: 35px;
  20241. }
  20242. .study_top .checked > div,
  20243. .study_top .check > div {
  20244. margin-right: 5px;
  20245. }
  20246. .videoTop {
  20247. display: flex;
  20248. flex-direction: row;
  20249. justify-content: space-between;
  20250. background: #fff;
  20251. align-items: center;
  20252. width: 95%;
  20253. padding: 20px;
  20254. }
  20255. .filebox {
  20256. display: flex;
  20257. flex-wrap: wrap;
  20258. flex-direction: column;
  20259. padding: 0 0 5px;
  20260. position: relative;
  20261. }
  20262. .filebox:before {
  20263. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20264. position: absolute;
  20265. top: 20px;
  20266. left: 13px;
  20267. border-left: 2px dotted #cad1dc;
  20268. height: calc(100% - 15px);
  20269. }
  20270. .toolHeng2 > div:last-child::before {
  20271. height: calc(100% - 43px);
  20272. }
  20273. .filebox .tooldetail {
  20274. width: calc(100% - 280px);
  20275. margin: 0px 12px;
  20276. padding: 12px;
  20277. line-height: 30px;
  20278. word-break: break-word;
  20279. background: #ffffff;
  20280. border-radius: 8px 8px 8px 8px;
  20281. opacity: 1;
  20282. border: 1px solid #cad1dc;
  20283. overflow:hidden;
  20284. box-sizing:border-box;
  20285. }
  20286. .file {
  20287. display: flex;
  20288. flex-direction: column;
  20289. align-items: center;
  20290. justify-content: center;
  20291. cursor: pointer;
  20292. width: 200px;
  20293. }
  20294. .file div {
  20295. margin-top: 10px;
  20296. width: 150px;
  20297. text-align: center;
  20298. overflow: hidden;
  20299. white-space: nowrap;
  20300. text-overflow: ellipsis;
  20301. }
  20302. .media {
  20303. display: flex;
  20304. flex-direction: column;
  20305. align-items: center;
  20306. justify-content: center;
  20307. margin: 0 20px 20px 0;
  20308. cursor: pointer;
  20309. margin: 12px 0 5px 15px;
  20310. overflow: hidden;
  20311. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  20312. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  20313. box-sizing: border-box;
  20314. }
  20315. .media img {
  20316. height: 90px;
  20317. width: 160px;
  20318. object-fit: cover;
  20319. }
  20320. .media .title {
  20321. padding: 5px;
  20322. text-align: left;
  20323. width: 100%;
  20324. box-sizing: border-box;
  20325. }
  20326. .media .btn {
  20327. width: 100%;
  20328. height: 35px;
  20329. line-height: 35px;
  20330. color: #fff;
  20331. background: #606060;
  20332. text-align: center;
  20333. overflow: hidden;
  20334. white-space: nowrap;
  20335. text-overflow: ellipsis;
  20336. }
  20337. .detail_content_top {
  20338. width: 100%;
  20339. padding: 25px 0 25px 0;
  20340. }
  20341. .detail_title {
  20342. text-align: center;
  20343. font-size: 24px;
  20344. }
  20345. .detail_time {
  20346. font-size: 13px;
  20347. padding: 15px 0 0 40px;
  20348. }
  20349. .detail_content {
  20350. line-height: 2pc;
  20351. width: 90%;
  20352. margin: 0 auto;
  20353. padding-top: 30px;
  20354. text-indent: 30px;
  20355. overflow: auto;
  20356. height: 200px;
  20357. }
  20358. .score_box >>> .el-rate {
  20359. margin-left: 10px;
  20360. }
  20361. .dialog_change >>> .el-dialog {
  20362. border-radius: 5px;
  20363. }
  20364. .dialog_change >>> .el-dialog__header {
  20365. background: #f2f2f2;
  20366. text-align: center;
  20367. }
  20368. .dialog_change >>> .el-dialog__title {
  20369. line-height: 5px;
  20370. }
  20371. .dialog_change >>> .el-dialog__body {
  20372. background: #fff;
  20373. padding: 10px 20px;
  20374. }
  20375. .score_box {
  20376. display: flex;
  20377. align-items: center;
  20378. margin-bottom: 18px;
  20379. margin-top: 20px;
  20380. }
  20381. .up_photo {
  20382. width: 120px;
  20383. cursor: pointer;
  20384. margin-top: 10px;
  20385. }
  20386. .up_photo2 {
  20387. width: 180px;
  20388. box-sizing: border-box;
  20389. min-width: 180px;
  20390. height: 180px;
  20391. max-height: 180px;
  20392. min-height: 180px;
  20393. cursor: pointer;
  20394. display: flex;
  20395. flex-direction: column;
  20396. align-items: center;
  20397. justify-content: center;
  20398. background: rgb(242, 246, 255);
  20399. /* padding: 25px; */
  20400. margin-bottom: 10px;
  20401. }
  20402. .up_photo2 img {
  20403. width: 50%;
  20404. height: auto;
  20405. }
  20406. .up_photo2 span {
  20407. color: #898989;
  20408. }
  20409. .plworkBox {
  20410. display: flex;
  20411. align-items: center;
  20412. margin-top: 10px;
  20413. flex-wrap: wrap;
  20414. }
  20415. .upload_send {
  20416. margin: 30px auto 30px;
  20417. width: 60%;
  20418. background: #3681fc;
  20419. text-align: center;
  20420. height: 35px;
  20421. line-height: 35px;
  20422. color: #fff;
  20423. border-radius: 5px;
  20424. cursor: pointer;
  20425. }
  20426. .marginT {
  20427. margin-top: 20px;
  20428. }
  20429. .cd_content_steps {
  20430. display: flex;
  20431. width: 90%;
  20432. justify-content: space-around;
  20433. border-top: 1px solid #eeeeee;
  20434. }
  20435. .cd_steps_box {
  20436. display: flex;
  20437. justify-content: center;
  20438. align-items: center;
  20439. flex-direction: column;
  20440. cursor: pointer;
  20441. }
  20442. .first {
  20443. display: flex;
  20444. align-items: center;
  20445. margin: 15px 0 20px 0;
  20446. font-size: 20px;
  20447. }
  20448. .first > div:nth-child(2) {
  20449. font-size: 16px !important;
  20450. padding-left: 10px;
  20451. line-height: 26px;
  20452. box-sizing: border-box;
  20453. }
  20454. .blue_box_one {
  20455. text-align: center;
  20456. color: #fff;
  20457. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  20458. border-radius: 7px;
  20459. margin: 10px;
  20460. cursor: pointer;
  20461. width: 95%;
  20462. height: 45px;
  20463. display: flex;
  20464. flex-direction: row;
  20465. justify-content: flex-start;
  20466. align-items: center;
  20467. }
  20468. .blue_box_one > div:nth-child(1) {
  20469. line-height: 30px;
  20470. margin: 0 5px 0 10px;
  20471. width: 30%;
  20472. min-width: 70px;
  20473. border-radius: 4px;
  20474. }
  20475. .blue_box_one > div:nth-child(2) {
  20476. white-space: nowrap;
  20477. text-overflow: ellipsis;
  20478. overflow: hidden;
  20479. word-break: break-all;
  20480. width: 70%;
  20481. text-align: left;
  20482. margin-right: 10px;
  20483. max-width: calc(100% - 85px);
  20484. }
  20485. .blue_box_one > div:nth-child(2):hover {
  20486. overflow: hidden;
  20487. text-overflow: ellipsis;
  20488. white-space: nowrap;
  20489. cursor: pointer;
  20490. }
  20491. .upFile {
  20492. margin: 0 auto;
  20493. width: 120px;
  20494. background: #3681fc;
  20495. color: #fff;
  20496. height: 30px;
  20497. text-align: center;
  20498. line-height: 30px;
  20499. border-radius: 5px;
  20500. font-size: 14px;
  20501. cursor: pointer;
  20502. }
  20503. .courseTitle {
  20504. width: 85%;
  20505. margin: 10px auto 26px auto;
  20506. display: flex;
  20507. flex-direction: row;
  20508. align-items: center;
  20509. justify-content: space-between;
  20510. text-align: center;
  20511. }
  20512. .courseTitle .ctitle {
  20513. font-size: 20px;
  20514. font-weight: bold;
  20515. color: #0e1e33;
  20516. white-space: nowrap;
  20517. overflow: hidden;
  20518. text-overflow: ellipsis;
  20519. }
  20520. .inviteBox {
  20521. font-size: 14px;
  20522. /* margin-top: 5px; */
  20523. color: #00000099;
  20524. text-align: center;
  20525. }
  20526. .courseTitle >>> .el-tooltip {
  20527. width: 100%;
  20528. white-space: nowrap;
  20529. overflow: hidden;
  20530. text-overflow: ellipsis;
  20531. word-break: break-word;
  20532. }
  20533. .ml {
  20534. margin-left: 20px;
  20535. color: #5b7dba;
  20536. border-left: 3px solid #5b7dba;
  20537. padding-left: 5px;
  20538. font-weight: bold;
  20539. }
  20540. .return {
  20541. width: 2rem;
  20542. height: 2rem;
  20543. cursor: pointer;
  20544. }
  20545. .return > img {
  20546. width: 100%;
  20547. height: 100%;
  20548. }
  20549. .returnBtn {
  20550. width: 86px;
  20551. height: 36px;
  20552. background: #3681fc;
  20553. border-radius: 4px;
  20554. color: #fff;
  20555. text-align: center;
  20556. line-height: 36px;
  20557. margin-right: 20px;
  20558. cursor: pointer;
  20559. font-size: 14px;
  20560. font-weight: 400;
  20561. display: flex;
  20562. flex-direction: row;
  20563. flex-wrap: nowrap;
  20564. align-items: center;
  20565. justify-content: center;
  20566. }
  20567. .reBtnIcon,
  20568. .commentIcon,
  20569. .vedioIcon,
  20570. .vedioIcon1 {
  20571. /* width: 36px; */
  20572. height: 36px;
  20573. border-radius: 4px;
  20574. position: relative;
  20575. /* background: #e0eafb; */
  20576. background: #0061ff;
  20577. cursor: pointer;
  20578. margin-right: 12px;
  20579. display: flex;
  20580. align-items: center;
  20581. padding: 0 10px;
  20582. box-sizing: border-box;
  20583. font-size: 14px;
  20584. color: #fff;
  20585. }
  20586. .reBtnIcon::before,
  20587. .commentIcon::before,
  20588. .vedioIcon::before,
  20589. .vedioIcon1::before {
  20590. content: "";
  20591. display: block;
  20592. background-size: 100% 100%;
  20593. background-repeat: no-repeat;
  20594. width: 20px;
  20595. height: 20px;
  20596. margin-right: 5px;
  20597. /* position: absolute; */
  20598. /* top: 8px;
  20599. left: 8px; */
  20600. }
  20601. .vedioIcon1 {
  20602. background: #f63564;
  20603. }
  20604. .reBtnIcon::before {
  20605. background-image: url("../../assets/icon/newIcons/refresh.png");
  20606. }
  20607. .commentIcon::before {
  20608. background-image: url("../../assets/icon/newIcons/comment.png");
  20609. }
  20610. .vedioIcon::before {
  20611. background-image: url("../../assets/icon/newIcons/transcribe.png");
  20612. }
  20613. .vedioIcon1::before {
  20614. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  20615. background-image: url("../../assets/icon/newIcons/transcribe.png");
  20616. }
  20617. .tool {
  20618. display: flex;
  20619. flex-direction: column;
  20620. flex-wrap: nowrap;
  20621. width: 13%;
  20622. margin: 0 30px;
  20623. align-items: center;
  20624. position: relative;
  20625. padding: 10px 25px;
  20626. cursor: pointer;
  20627. }
  20628. .whiteBIcon {
  20629. width: 150px;
  20630. }
  20631. .whiteBIcon > img {
  20632. width: 100%;
  20633. height: 100%;
  20634. }
  20635. .mask {
  20636. background-color: rgba(0, 0, 0, 0);
  20637. position: fixed;
  20638. top: 0;
  20639. left: 0;
  20640. width: 100%;
  20641. height: 100%;
  20642. z-index: 20000;
  20643. display: flex;
  20644. align-items: center;
  20645. justify-content: center;
  20646. }
  20647. .progressBox {
  20648. width: 500px;
  20649. height: 180px;
  20650. background: #fff;
  20651. border-radius: 10px;
  20652. box-shadow: 0 0 6px 1px #bfbfbf;
  20653. display: flex;
  20654. align-items: center;
  20655. justify-content: center;
  20656. flex-direction: column;
  20657. position: relative;
  20658. color: #6c6c6c;
  20659. }
  20660. .progressBox >>> .el-progress-bar__outer {
  20661. background-color: #d1dfff !important;
  20662. }
  20663. .progressBox .lbox {
  20664. height: 50px;
  20665. font-size: 19px;
  20666. display: flex;
  20667. align-items: center;
  20668. color: #747474;
  20669. }
  20670. .progressBox .lbox img {
  20671. width: 40px;
  20672. margin-right: 20px;
  20673. }
  20674. .closeCss {
  20675. position: absolute;
  20676. top: 8px;
  20677. right: 8px;
  20678. cursor: pointer;
  20679. width: 20px;
  20680. height: 20px;
  20681. }
  20682. .closeCss > img {
  20683. width: 100%;
  20684. height: 100%;
  20685. }
  20686. .uploadVedio {
  20687. display: flex;
  20688. flex-direction: column;
  20689. flex-wrap: nowrap;
  20690. justify-content: center;
  20691. align-items: center;
  20692. margin: 0 15px 10px 0;
  20693. }
  20694. .uploadVedio > img {
  20695. width: 30px;
  20696. height: 30px;
  20697. }
  20698. .uploadVedio > span {
  20699. white-space: nowrap;
  20700. overflow: hidden;
  20701. text-overflow: ellipsis;
  20702. width: 75px;
  20703. margin-top: 7px;
  20704. }
  20705. .picName {
  20706. white-space: nowrap;
  20707. overflow: hidden;
  20708. text-overflow: ellipsis;
  20709. width: 75px;
  20710. margin-top: 7px;
  20711. }
  20712. .new_top {
  20713. display: flex;
  20714. background: #fff;
  20715. flex-direction: row;
  20716. justify-content: flex-start;
  20717. align-items: center;
  20718. height: 60px;
  20719. position: fixed;
  20720. top: 20px;
  20721. left: 22%;
  20722. width: 77%;
  20723. z-index: 999;
  20724. border-radius: 12px 12px 0 0;
  20725. border-bottom: 1px solid #cad1dc;
  20726. padding: 10px 0;
  20727. }
  20728. .new_topFixed {
  20729. width: 100%;
  20730. height: 40px;
  20731. position: fixed;
  20732. top: 0px;
  20733. display: block;
  20734. background: #f2f2f2;
  20735. z-index: 998;
  20736. }
  20737. .before {
  20738. position: absolute;
  20739. background: #c3dad4;
  20740. width: 6px;
  20741. height: 100%;
  20742. }
  20743. .courseIndex {
  20744. display: flex;
  20745. flex-direction: row;
  20746. align-items: center;
  20747. width: calc(100% - 745px);
  20748. }
  20749. .courseIndex > div:nth-child(1) {
  20750. margin: 0 0 0 10px;
  20751. font-size: 20px;
  20752. min-width: 100px;
  20753. font-weight: bold;
  20754. border-left: 4px solid #3363b9;
  20755. height: 32px;
  20756. text-align: center;
  20757. line-height: 35px;
  20758. }
  20759. .courseIndex > div:nth-child(2) {
  20760. font-size: 20px;
  20761. /* width: 300px; */
  20762. max-width: calc(100% - 105px);
  20763. white-space: nowrap;
  20764. overflow: hidden;
  20765. text-overflow: ellipsis;
  20766. }
  20767. .courseIndex > div:nth-child(3) {
  20768. border-bottom: 1px solid #d7d7d7;
  20769. padding-bottom: 5px;
  20770. background: #3681fc;
  20771. width: 55px;
  20772. min-width: 55px;
  20773. border-radius: 5px;
  20774. color: #fff;
  20775. text-align: center;
  20776. height: 20px;
  20777. line-height: 26px;
  20778. font-size: 14px;
  20779. margin: 0 0 0 10px;
  20780. }
  20781. .course_text {
  20782. padding: 20px 0 0 15px;
  20783. text-indent: 30px;
  20784. width: 80%;
  20785. min-height: 20px;
  20786. }
  20787. .vedioList {
  20788. background: #f2f2f2;
  20789. border: 1px solid #ececec;
  20790. /* width: 38.8%; */
  20791. /* width: 300px; */
  20792. width: 100%;
  20793. height: 445px;
  20794. border-radius: 10px;
  20795. overflow: hidden;
  20796. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  20797. }
  20798. .vedioNav {
  20799. margin: 10px 0 0 15px;
  20800. border-bottom: 1px solid #d7d7d7;
  20801. padding-bottom: 5px;
  20802. background: #3681fc;
  20803. width: 55px;
  20804. min-width: 55px;
  20805. border-radius: 5px;
  20806. color: #fff;
  20807. text-align: center;
  20808. height: 20px;
  20809. line-height: 26px;
  20810. font-size: 14px;
  20811. }
  20812. .queTop {
  20813. display: flex;
  20814. padding: 20px 0 20px 30px;
  20815. width: 100%;
  20816. flex-direction: row;
  20817. justify-content: flex-start;
  20818. align-items: center;
  20819. box-sizing: border-box;
  20820. }
  20821. .queTopTitle {
  20822. display: flex;
  20823. flex-direction: row;
  20824. flex-wrap: nowrap;
  20825. align-items: center;
  20826. font-weight: bold;
  20827. font-size: 20px;
  20828. color: rgb(14, 30, 51);
  20829. }
  20830. .queTopTitle::before {
  20831. content: "";
  20832. width: 2px;
  20833. height: 22px;
  20834. background: #3681fc;
  20835. border-radius: 3px;
  20836. display: block;
  20837. margin: 2px 6px 0 0;
  20838. }
  20839. .queTopRight {
  20840. display: flex;
  20841. flex-direction: row;
  20842. flex-wrap: nowrap;
  20843. align-items: center;
  20844. }
  20845. .queTopClose {
  20846. margin-right: 20px;
  20847. cursor: pointer;
  20848. position: relative;
  20849. display: flex;
  20850. }
  20851. .closeImg,
  20852. .openImg {
  20853. width: 25px;
  20854. height: 25px;
  20855. position: absolute;
  20856. left: -20px;
  20857. top: -1px;
  20858. }
  20859. .closeImg > img,
  20860. .openImg > img {
  20861. width: 100%;
  20862. height: 100%;
  20863. }
  20864. .question {
  20865. width: 40px;
  20866. margin-right: 10px;
  20867. margin-top: 7px;
  20868. }
  20869. .queTitle {
  20870. margin-left: 5px;
  20871. font-size: 25px;
  20872. display: flex;
  20873. align-items: center;
  20874. }
  20875. .addEditor {
  20876. width: 100px;
  20877. height: 30px;
  20878. background: #42cda6;
  20879. color: #fff;
  20880. border-radius: 5px;
  20881. text-align: center;
  20882. line-height: 30px;
  20883. box-shadow: 1px 3px 6px 1px #bfbfbf;
  20884. cursor: pointer;
  20885. }
  20886. /* .vedioName {
  20887. cursor: pointer;
  20888. margin: 0px 0px 10px 5px;
  20889. white-space: nowrap;
  20890. overflow: hidden;
  20891. text-overflow: ellipsis;
  20892. width: 100%;
  20893. } */
  20894. .vedioTime {
  20895. width: 35px;
  20896. position: absolute;
  20897. color: #fff;
  20898. bottom: 0px;
  20899. right: 0px;
  20900. text-align: center;
  20901. background: #46411f;
  20902. height: 20px;
  20903. font-size: 14px;
  20904. line-height: 20px;
  20905. }
  20906. .homework {
  20907. width: 200px;
  20908. display: flex;
  20909. flex-direction: column;
  20910. flex-wrap: nowrap;
  20911. align-items: center;
  20912. cursor: pointer;
  20913. }
  20914. .homebox {
  20915. display: flex;
  20916. flex-wrap: wrap;
  20917. flex-direction: row;
  20918. justify-content: flex-start;
  20919. align-items: center;
  20920. padding: 15px 0;
  20921. }
  20922. .isChooseActive {
  20923. color: #3681fc !important;
  20924. font-weight: bold !important;
  20925. }
  20926. .chooseWho {
  20927. display: flex;
  20928. width: 100%;
  20929. flex-direction: row;
  20930. flex-wrap: nowrap;
  20931. justify-content: flex-start;
  20932. padding-bottom: 10px;
  20933. }
  20934. .chooseWho > div {
  20935. cursor: pointer;
  20936. padding-bottom: 10px;
  20937. margin: 0 30px 0 0;
  20938. font-weight: 400;
  20939. color: #0e1e33;
  20940. }
  20941. .addPoint > div > img {
  20942. cursor: pointer;
  20943. width: 85px;
  20944. border-radius: 15px;
  20945. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  20946. }
  20947. .addPoint > div {
  20948. display: flex;
  20949. flex-direction: column;
  20950. flex-wrap: nowrap;
  20951. align-items: center;
  20952. }
  20953. .isBorder > div {
  20954. margin: 0 0 10px 0;
  20955. align-items: flex-start !important;
  20956. }
  20957. .noiframeBox {
  20958. display: flex;
  20959. flex-wrap: wrap;
  20960. }
  20961. .iframeBox iframe {
  20962. width: 100%;
  20963. height: 800px;
  20964. border: none;
  20965. margin-bottom: 20px;
  20966. border: 1px solid #ccc;
  20967. }
  20968. .upload_toolBtn {
  20969. background: #3681fc;
  20970. color: #fff;
  20971. width: 110px;
  20972. text-align: center;
  20973. height: 35px;
  20974. line-height: 35px;
  20975. font-size: 14px;
  20976. border-radius: 5px;
  20977. cursor: pointer;
  20978. position: absolute;
  20979. right: 10px;
  20980. bottom: 0;
  20981. }
  20982. .binfo_input,
  20983. .pj {
  20984. font: inherit;
  20985. color: currentColor;
  20986. width: 100%;
  20987. margin: 0;
  20988. padding: 15px 14px;
  20989. display: block;
  20990. min-width: 0;
  20991. outline: none;
  20992. box-sizing: content-box;
  20993. background: none;
  20994. -webkit-tap-highlight-color: transparent;
  20995. border: 1px solid rgba(0, 0, 0, 0.23);
  20996. border-radius: 4px;
  20997. box-sizing: border-box;
  20998. resize: none;
  20999. }
  21000. .binfo_input:focus-visible {
  21001. border: 1px solid rgba(61, 103, 188);
  21002. }
  21003. .dialog_diy >>> .el-dialog__header,
  21004. .dialog_diy1 >>> .el-dialog__header {
  21005. background: #454545 !important;
  21006. padding: 15px 20px;
  21007. }
  21008. .dialog_diy >>> .el-dialog__title,
  21009. .dialog_diy1 >>> .el-dialog__title {
  21010. color: #fff;
  21011. }
  21012. .dialog_diy >>> .el-dialog__headerbtn,
  21013. .dialog_diy1 >>> .el-dialog__headerbtn {
  21014. top: 19px;
  21015. }
  21016. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  21017. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  21018. color: #fff;
  21019. }
  21020. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  21021. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  21022. color: #fff;
  21023. }
  21024. .dialog_diy1 >>> .el-dialog__body {
  21025. padding: 0;
  21026. }
  21027. .dialog_diy >>> .el-dialog__body,
  21028. .dialog_diy >>> .el-dialog__footer,
  21029. .dialog_diy1 >>> .el-dialog__footer {
  21030. background: #fafafa;
  21031. }
  21032. .a_addBox {
  21033. padding: 0 0 0 15px;
  21034. }
  21035. .a_add_box {
  21036. padding: 10px;
  21037. background: #fff;
  21038. margin-bottom: 10px;
  21039. border-radius: 5px;
  21040. box-shadow: 0 0 5px 0 #d5d5d5;
  21041. }
  21042. .a_add_head {
  21043. display: flex;
  21044. align-items: flex-start;
  21045. /* justify-content: space-between; */
  21046. flex-direction: column;
  21047. /* flex-direction: row; */
  21048. margin: 10px 0 20px 0;
  21049. font-size: 18px;
  21050. width: 100%;
  21051. }
  21052. .askIndex {
  21053. background: #3681fc;
  21054. border-radius: 50%;
  21055. color: #fff;
  21056. width: 25px;
  21057. height: 25px;
  21058. min-width: 25px;
  21059. min-height: 25px;
  21060. text-align: center;
  21061. line-height: 25px;
  21062. margin-right: 5px;
  21063. }
  21064. .a_add_head .a_add_head_input {
  21065. width: 300px;
  21066. }
  21067. .a_add_head .a_add_head_div {
  21068. display: flex;
  21069. align-items: center;
  21070. justify-content: space-between;
  21071. }
  21072. .a_add_body {
  21073. display: flex;
  21074. align-items: center;
  21075. }
  21076. .a_add_input {
  21077. display: flex;
  21078. align-items: center;
  21079. flex-wrap: wrap;
  21080. width: 100%;
  21081. }
  21082. .a_add_input >>> .el-radio-group,
  21083. .a_add_input >>> .el-checkbox-group {
  21084. width: 100%;
  21085. }
  21086. .a_add_input >>> .el-radio,
  21087. .a_add_input >>> .el-checkbox {
  21088. display: flex;
  21089. flex-direction: row;
  21090. flex-wrap: nowrap;
  21091. align-items: center;
  21092. padding: 15px 0;
  21093. }
  21094. .a_add_input >>> .el-radio:not(:last-child),
  21095. .a_add_input >>> .el-checkbox:not(:last-child) {
  21096. width: 100%;
  21097. border-bottom: 1px solid #efefef;
  21098. }
  21099. .redioStyle >>> .el-radio__label {
  21100. font-size: 18px;
  21101. }
  21102. .redioStyle >>> .el-radio__label > span,
  21103. .redioStyle >>> .el-checkbox__label > span {
  21104. word-break: break-all;
  21105. white-space: normal;
  21106. }
  21107. .redioStyle >>> .el-checkbox__label {
  21108. font-size: 18px;
  21109. }
  21110. .toolHeng2 {
  21111. width: 100%;
  21112. padding-left: 37px;
  21113. box-sizing: border-box;
  21114. }
  21115. .workNav {
  21116. font-size: 20px;
  21117. font-weight: bold;
  21118. color: #0e1e33;
  21119. display: flex;
  21120. flex-direction: row;
  21121. flex-wrap: nowrap;
  21122. align-items: center;
  21123. padding: 15px 0 15px 0;
  21124. }
  21125. .workNav::before {
  21126. content: "";
  21127. width: 2px;
  21128. height: 22px;
  21129. background: #3681fc;
  21130. border-radius: 3px;
  21131. display: block;
  21132. margin: 2px 6px 0 0;
  21133. }
  21134. .toolHeng {
  21135. display: flex;
  21136. flex-direction: row;
  21137. flex-wrap: wrap;
  21138. justify-content: flex-start;
  21139. align-items: center;
  21140. width: 100%;
  21141. }
  21142. .toolHeng > div {
  21143. padding-left: 20px;
  21144. }
  21145. .isWidth {
  21146. width: 20%;
  21147. }
  21148. .textTitle {
  21149. display: flex;
  21150. flex-direction: row;
  21151. flex-wrap: nowrap;
  21152. align-items: center;
  21153. width: 95%;
  21154. }
  21155. .textTitle >>> .el-form-item__label {
  21156. font-size: 22px;
  21157. color: #918f8f;
  21158. width: 100px;
  21159. }
  21160. .textTitle >>> .el-form-item__content {
  21161. width: calc(100% - 100px);
  21162. }
  21163. .textCss >>> .el-dialog {
  21164. width: 800px !important;
  21165. height: 400px;
  21166. background: #fafafa;
  21167. }
  21168. .textCss >>> .el-dialog__body {
  21169. margin: 55px 8% 0 8%;
  21170. padding: 0 !important;
  21171. }
  21172. .textCss >>> .el-dialog__footer {
  21173. padding-top: 38px;
  21174. }
  21175. .toolsCss >>> .el-dialog__body {
  21176. padding: 20px;
  21177. }
  21178. .lineCss >>> .el-dialog__body {
  21179. display: flex;
  21180. flex-direction: row;
  21181. align-items: center;
  21182. justify-content: center;
  21183. }
  21184. .newNav {
  21185. display: flex;
  21186. flex-direction: row;
  21187. align-items: baseline;
  21188. justify-content: flex-start;
  21189. }
  21190. .navListItem {
  21191. width: calc(100% - 20px);
  21192. height: 50px;
  21193. margin: 0px auto 10px;
  21194. display: flex;
  21195. flex-direction: row;
  21196. flex-wrap: nowrap;
  21197. align-items: center;
  21198. justify-content: space-between;
  21199. background: #f0f4fa;
  21200. border-radius: 6px 6px 6px 6px;
  21201. }
  21202. .navText {
  21203. cursor: pointer;
  21204. white-space: nowrap;
  21205. overflow: hidden;
  21206. text-overflow: ellipsis;
  21207. width: 220px;
  21208. padding: 0 10px;
  21209. font-weight: 400;
  21210. color: #0e1e33;
  21211. }
  21212. .downIcon {
  21213. width: 20px;
  21214. min-width: 20px;
  21215. height: 20px;
  21216. margin-right: 15px;
  21217. cursor: pointer;
  21218. }
  21219. .downIcon > img {
  21220. width: 100%;
  21221. height: 100%;
  21222. }
  21223. .noVedio {
  21224. display: flex;
  21225. flex-direction: row;
  21226. justify-content: center;
  21227. align-content: center;
  21228. }
  21229. .noNavText {
  21230. cursor: pointer;
  21231. margin: 0px 0px 10px 5px;
  21232. width: 112px;
  21233. }
  21234. .listNoVedio {
  21235. margin: 0 0 0 30px;
  21236. width: 97%;
  21237. }
  21238. .video-player >>> .video-js {
  21239. height: 100%;
  21240. }
  21241. .hangVedioList {
  21242. width: 90% !important;
  21243. height: 150px !important;
  21244. margin: 20px 0 0 30px;
  21245. }
  21246. .hangVedio {
  21247. width: 100%;
  21248. height: 170px !important;
  21249. align-items: flex-start !important;
  21250. }
  21251. .hangHand {
  21252. height: 150px !important;
  21253. }
  21254. .twoChild {
  21255. width: 95%;
  21256. margin: 10px;
  21257. border-radius: 5px;
  21258. background: #f2f2f2;
  21259. display: flex;
  21260. flex-direction: column;
  21261. flex-wrap: nowrap;
  21262. justify-content: flex-start;
  21263. align-items: flex-start;
  21264. transition: all 0.5s;
  21265. overflow: hidden;
  21266. height: 0;
  21267. background: #e7f3ff;
  21268. }
  21269. .twoChild > div:nth-child(1) {
  21270. margin-top: 5px;
  21271. }
  21272. .navChild {
  21273. width: 100%;
  21274. cursor: pointer;
  21275. margin-bottom: 10px;
  21276. position: relative;
  21277. }
  21278. .navChild img {
  21279. position: absolute;
  21280. right: 11px;
  21281. width: 15px;
  21282. top: 50%;
  21283. transform: translateY(-50%);
  21284. }
  21285. .navActive,
  21286. .toolActive {
  21287. height: auto !important;
  21288. overflow: auto !important;
  21289. /* // padding-bottom: 16px; */
  21290. }
  21291. .toolActive {
  21292. padding: 0;
  21293. }
  21294. .navTask {
  21295. display: flex;
  21296. flex-direction: row;
  21297. flex-wrap: nowrap;
  21298. align-items: center;
  21299. align-content: flex-start;
  21300. height: 40px;
  21301. justify-content: flex-start;
  21302. padding: 0 10px;
  21303. width: 100%;
  21304. box-sizing: border-box;
  21305. }
  21306. .navTaskname {
  21307. white-space: nowrap;
  21308. text-overflow: ellipsis;
  21309. overflow: hidden;
  21310. word-break: break-all;
  21311. padding-left: 5px;
  21312. }
  21313. .openTaskActive {
  21314. /* background-color: #e0eafb !important;
  21315. color: #0061ff; */
  21316. color:#fff;
  21317. background: rgb(55, 129, 252) !important;
  21318. }
  21319. .iframeName {
  21320. margin: 5px 0;
  21321. border-left: 4px solid #41c4a4;
  21322. padding-left: 4px;
  21323. }
  21324. .toolTitle {
  21325. margin: 0px 0px 20px;
  21326. font-size: 20px;
  21327. font-weight: 500;
  21328. border-left: 4px solid #41c4a4;
  21329. padding-left: 4px;
  21330. }
  21331. .cru_selectBox {
  21332. overflow: auto;
  21333. width: 95%;
  21334. margin: 17px auto 0;
  21335. height: calc(100% - 40px - 21px - 20px - 17px);
  21336. background: #fff;
  21337. border-radius: 8px;
  21338. }
  21339. .cru_selectBox::-webkit-scrollbar,
  21340. .study_top::-webkit-scrollbar,
  21341. .textContent::-webkit-scrollbar {
  21342. /*滚动条整体样式*/
  21343. width: 6px;
  21344. /*高宽分别对应横竖滚动条的尺寸*/
  21345. height: 6px;
  21346. }
  21347. /*定义滚动条轨道 内阴影+圆角*/
  21348. .cru_selectBox::-webkit-scrollbar-track,
  21349. .study_top::-webkit-scrollbar-track,
  21350. .textContent::-webkit-scrollbar {
  21351. border-radius: 10px;
  21352. background-color: #b8bdc9;
  21353. }
  21354. /*定义滑块 内阴影+圆角*/
  21355. .cru_selectBox::-webkit-scrollbar-thumb,
  21356. .study_top::-webkit-scrollbar-thumb,
  21357. .textContent::-webkit-scrollbar-thumb {
  21358. border-radius: 10px;
  21359. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  21360. background-color: #2c5ab3;
  21361. }
  21362. .vedioBox {
  21363. border-radius: 0 0 20px 20px;
  21364. background: #fff;
  21365. overflow: auto;
  21366. }
  21367. .taskBox {
  21368. width: 98%;
  21369. background: #f0f4fa;
  21370. margin: 10px auto;
  21371. padding: 0 10px;
  21372. border-radius: 4px;
  21373. box-sizing: border-box;
  21374. }
  21375. .vedioTaskBox {
  21376. width: 100%;
  21377. display: flex;
  21378. flex-direction: row;
  21379. flex-wrap: nowrap;
  21380. align-items: flex-start;
  21381. position: relative;
  21382. }
  21383. .toolBox {
  21384. margin: 15px 0 0 25px;
  21385. display: flex;
  21386. position: relative;
  21387. padding: 18px 20px;
  21388. border-top-left-radius: 5px;
  21389. border-top-right-radius: 5px;
  21390. width: 90%;
  21391. }
  21392. .btnAll {
  21393. position: absolute;
  21394. right: 0;
  21395. display: flex;
  21396. flex-direction: row;
  21397. flex-wrap: nowrap;
  21398. align-items: center;
  21399. }
  21400. .btnLeft,
  21401. .btnRight {
  21402. display: flex;
  21403. flex-direction: row;
  21404. flex-wrap: nowrap;
  21405. align-items: center;
  21406. padding: 5px 0;
  21407. }
  21408. .btnLeft {
  21409. border-right: 1px solid #cad1dc;
  21410. }
  21411. .btnLeft > .custom-tooltip {
  21412. background: #3681fc;
  21413. color: #fff;
  21414. }
  21415. .last:hover {
  21416. background: #3383fa !important;
  21417. color: #fff;
  21418. border: 1px solid #3383fa !important;
  21419. }
  21420. .last,
  21421. .returnBtn1 {
  21422. width: 90px;
  21423. height: 36px;
  21424. background: #ffffff;
  21425. border-radius: 4px;
  21426. border: 1px solid #0061ff;
  21427. color: #0061ff;
  21428. cursor: pointer;
  21429. display: flex;
  21430. flex-direction: row;
  21431. flex-wrap: nowrap;
  21432. align-items: center;
  21433. justify-content: center;
  21434. margin-left: 12px;
  21435. }
  21436. .returnBtn1 {
  21437. background: #f0f4fa;
  21438. border-radius: 4px;
  21439. border: 1px solid #cad1dc;
  21440. margin: 0 12px;
  21441. }
  21442. .lastImg {
  21443. min-width: 15px;
  21444. width: 15px;
  21445. height: 15px;
  21446. display: flex;
  21447. }
  21448. .lastText {
  21449. padding: 0 5px 0 5px;
  21450. box-sizing: border-box;
  21451. font-size: 14px;
  21452. }
  21453. .lastImg > img {
  21454. width: 100%;
  21455. height: 100%;
  21456. }
  21457. /* .vedioTimeBox {
  21458. display: flex;
  21459. flex-direction: row;
  21460. align-items: center;
  21461. flex-wrap: nowrap;
  21462. position: relative;
  21463. } */
  21464. .navBox {
  21465. background: #fff;
  21466. height: calc(100% - 40px);
  21467. overflow-y: auto;
  21468. overflow-x: hidden;
  21469. }
  21470. .worksBox {
  21471. margin: 0 0 10px 25px;
  21472. border-bottom: 1px solid #eeeeee;
  21473. padding: 18px 20px;
  21474. border-radius: 4px;
  21475. width: 90%;
  21476. }
  21477. .worksBTitle {
  21478. font-size: 20px;
  21479. padding-bottom: 15px;
  21480. border-bottom: 1px solid #eeeeee;
  21481. display: flex;
  21482. align-items: center;
  21483. }
  21484. .greenBox {
  21485. width: 5px;
  21486. height: 30px;
  21487. background: #63b6fa;
  21488. margin-right: 5px;
  21489. }
  21490. .worksDetailBox {
  21491. display: flex;
  21492. width: 100%;
  21493. flex-direction: row;
  21494. flex-wrap: wrap;
  21495. align-items: flex-end;
  21496. justify-content: flex-start;
  21497. padding: 15px 5px;
  21498. box-sizing: border-box;
  21499. }
  21500. .works {
  21501. display: flex;
  21502. flex-direction: column;
  21503. flex-wrap: nowrap;
  21504. align-items: flex-start;
  21505. justify-content: flex-start;
  21506. align-content: center;
  21507. max-width: 240px;
  21508. width: calc(100% / 3 - 10px);
  21509. height: auto;
  21510. margin-right: 10px;
  21511. margin-bottom: 10px;
  21512. overflow: hidden;
  21513. height: 140px;
  21514. box-shadow: 0 0 6px 1px #dfdada;
  21515. border-radius: 15px;
  21516. }
  21517. .workImg {
  21518. width: 100%;
  21519. /* height: calc(100% - 40px); */
  21520. height: 105px;
  21521. position: relative;
  21522. }
  21523. .workImg > img {
  21524. width: 100%;
  21525. height: 100%;
  21526. object-fit: contain;
  21527. cursor: pointer;
  21528. }
  21529. .worksName {
  21530. height: 40px;
  21531. line-height: 40px;
  21532. display: flex;
  21533. width: 100%;
  21534. flex-direction: row;
  21535. flex-wrap: nowrap;
  21536. justify-content: space-between;
  21537. align-items: center;
  21538. margin: 0 0 0 10px;
  21539. }
  21540. .worksName > div:nth-child(1) {
  21541. width: 110px;
  21542. white-space: nowrap;
  21543. overflow: hidden;
  21544. text-overflow: ellipsis;
  21545. }
  21546. .worksName > div:nth-child(2) {
  21547. color: #b7b4b5;
  21548. }
  21549. .noWorksS {
  21550. padding: 15px 0;
  21551. display: flex;
  21552. flex-direction: row;
  21553. flex-wrap: wrap;
  21554. align-items: center;
  21555. justify-content: flex-start;
  21556. }
  21557. .noWorksName,
  21558. .isWorksName,
  21559. .isWorksName2 {
  21560. background: #ddebf8;
  21561. color: #000;
  21562. width: 90px;
  21563. height: 25px;
  21564. text-align: center;
  21565. line-height: 25px;
  21566. border-radius: 4px;
  21567. margin: 10px 15px 10px 0;
  21568. white-space: nowrap;
  21569. overflow: hidden;
  21570. padding: 5px;
  21571. text-overflow: ellipsis;
  21572. cursor: pointer;
  21573. border: 1px solid #ddebf8;
  21574. }
  21575. .noWorksName {
  21576. background: #fff;
  21577. color: #0061ff;
  21578. border: 1px solid #0061ff;
  21579. }
  21580. .noWorksName > span{
  21581. max-width: 100%;
  21582. display: block;
  21583. overflow: hidden;
  21584. text-overflow: ellipsis;
  21585. white-space: nowrap;
  21586. }
  21587. .isWorksName2 {
  21588. width: 100px;
  21589. height: 40px;
  21590. line-height: 40px;
  21591. position: relative;
  21592. background: #dae6f9;
  21593. }
  21594. .isWorksName {
  21595. background: #e7ebf1 !important;
  21596. width: 100px;
  21597. height: 40px;
  21598. line-height: 40px;
  21599. position: relative;
  21600. color: #acb4bf;
  21601. border: 1px solid #cad1dc !important;
  21602. }
  21603. .isSelectName,
  21604. .noWorksName:hover {
  21605. background: #3383fa !important;
  21606. color: #fff !important;
  21607. border: 1px solid #3383fa !important;
  21608. }
  21609. .title {
  21610. background: #1e5cc9;
  21611. /* width: 98%; */
  21612. height: 45px;
  21613. color: #fff;
  21614. line-height: 45px;
  21615. padding-left: 20px;
  21616. box-sizing: border-box;
  21617. }
  21618. .textBox {
  21619. font-size: 20px;
  21620. width: 90%;
  21621. display: flex;
  21622. flex-direction: column;
  21623. align-items: center;
  21624. margin: 20px auto 0;
  21625. max-height: calc(100% - 75px);
  21626. overflow: auto;
  21627. }
  21628. .textContent {
  21629. font-size: 18px;
  21630. width: 95%;
  21631. max-width: 95%;
  21632. }
  21633. .answerBg {
  21634. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  21635. background-size: 100% 100%;
  21636. width: 100%;
  21637. height: 100%;
  21638. color: #fff;
  21639. text-align: center;
  21640. display: flex;
  21641. flex-direction: column;
  21642. flex-wrap: nowrap;
  21643. align-items: center;
  21644. position: relative;
  21645. justify-content: center;
  21646. }
  21647. .answerBg > div:nth-child(1) {
  21648. /* font-size: 22px;
  21649. padding: 25px 0 10px; */
  21650. }
  21651. .answerContent {
  21652. width: 215px;
  21653. max-height: 60px;
  21654. word-break: break-all;
  21655. text-align: center;
  21656. /* white-space: nowrap; */
  21657. overflow: hidden;
  21658. text-overflow: ellipsis;
  21659. /* padding: 23px 0 0; */
  21660. -webkit-line-clamp: 3;
  21661. -webkit-box-orient: vertical;
  21662. display: -webkit-box;
  21663. font-size: 15px;
  21664. cursor: pointer;
  21665. }
  21666. .elist_input_box {
  21667. display: flex;
  21668. align-items: flex-start;
  21669. flex-wrap: nowrap;
  21670. padding: 10px 0 15px 30px;
  21671. flex-direction: column;
  21672. }
  21673. .elist_input {
  21674. /* width: 40%; */
  21675. width: 45%;
  21676. margin: 20px;
  21677. }
  21678. .elist_input .elist_input_box input {
  21679. font: inherit;
  21680. color: currentColor;
  21681. width: 200px;
  21682. padding: 8px 14px;
  21683. display: block;
  21684. min-width: 0;
  21685. outline: none;
  21686. border: 1px solid rgba(0, 0, 0, 0.23);
  21687. border-radius: 4px;
  21688. box-sizing: border-box;
  21689. background: #fff;
  21690. margin: 0 20px 0 0;
  21691. }
  21692. .elist_input .elist_input_box span {
  21693. height: 36px;
  21694. line-height: 36px;
  21695. color: rgb(82, 82, 82);
  21696. }
  21697. .elist_input .elist_input_box .remove {
  21698. height: 20px;
  21699. width: 20px;
  21700. background-size: 100% 100%;
  21701. background-position: unset;
  21702. margin-left: 5px;
  21703. }
  21704. .elist_input_box >>> .el-rate {
  21705. display: flex;
  21706. height: 36px;
  21707. align-items: center;
  21708. }
  21709. .elist_input_box .elist_inptu_text {
  21710. min-height: 50px;
  21711. /* width: 500px;
  21712. max-height: 150px; */
  21713. width: 100%;
  21714. line-height: 50px;
  21715. color: rgb(82, 82, 82);
  21716. overflow: auto;
  21717. text-indent: 5px;
  21718. background: #f7f6f9;
  21719. border-radius: 10px;
  21720. }
  21721. .elist_input_box .elist_inptu_text input {
  21722. width: 500px;
  21723. }
  21724. .elist_input_box >>> .el-rate__icon {
  21725. font-size: 24px;
  21726. }
  21727. .isClick {
  21728. background: #4d9def;
  21729. }
  21730. .bzBox {
  21731. display: flex;
  21732. flex-direction: row;
  21733. align-items: center;
  21734. }
  21735. .bzBox .yCss {
  21736. width: 7px;
  21737. height: 7px;
  21738. background: #fff;
  21739. margin: 0 16px 0 6px;
  21740. border-radius: 50%;
  21741. border: 5px solid #3681fc;
  21742. z-index: 99;
  21743. }
  21744. .bzBox > div:nth-child(2) {
  21745. font-size: 18px;
  21746. font-weight: bold;
  21747. color: #0e1e33;
  21748. }
  21749. .navTitile {
  21750. padding: 0 0px 0 15px;
  21751. font-size: 16px;
  21752. font-weight: bold;
  21753. color: #0e1e33;
  21754. height: 40px;
  21755. line-height: 40px;
  21756. }
  21757. .isTypeOne {
  21758. width: 240px;
  21759. height: 170px;
  21760. /* border: 1px solid #f8f8f8; */
  21761. border-radius: 10px;
  21762. box-shadow: 0 0 6px 1px #dfdada;
  21763. }
  21764. .e_add_top {
  21765. display: flex;
  21766. justify-content: space-between;
  21767. padding: 10px 20px;
  21768. border-radius: 3px;
  21769. background: #fff;
  21770. }
  21771. .e_add_title2 {
  21772. display: flex;
  21773. align-items: center;
  21774. }
  21775. .e_add_title2 span {
  21776. width: 40px;
  21777. }
  21778. .e_add_title {
  21779. display: flex;
  21780. align-items: center;
  21781. color: #b8b8b8;
  21782. font-size: 18px;
  21783. position: relative;
  21784. height: 40px;
  21785. }
  21786. .e_add_title span {
  21787. margin-right: 10px;
  21788. }
  21789. .e_add_title .el_input {
  21790. width: 300px;
  21791. }
  21792. .e_add_title >>> .el-input__inner {
  21793. width: 400px;
  21794. }
  21795. .e_add_btn {
  21796. }
  21797. .e_add_content {
  21798. display: flex;
  21799. width: 100%;
  21800. max-width: 650px;
  21801. height: 550px;
  21802. }
  21803. .e_add_list {
  21804. background: #fff;
  21805. height: 500px;
  21806. width: 210px;
  21807. position: relative;
  21808. margin: 15px 5px 0 0;
  21809. flex-shrink: 0;
  21810. display: flex;
  21811. flex-direction: column;
  21812. }
  21813. .e_add_list_title {
  21814. font-size: 20px;
  21815. width: 100%;
  21816. box-sizing: border-box;
  21817. padding: 15px 40px;
  21818. text-align: center;
  21819. border-bottom: 1px solid #eaeaea;
  21820. position: relative;
  21821. display: flex;
  21822. align-items: center;
  21823. justify-content: center;
  21824. height: 57px;
  21825. background: #f6f6f6;
  21826. }
  21827. .e_add_list_title span {
  21828. overflow: hidden;
  21829. white-space: nowrap;
  21830. text-overflow: ellipsis;
  21831. }
  21832. .e_add_list_title img {
  21833. position: absolute;
  21834. right: 15px;
  21835. width: 25px;
  21836. cursor: pointer;
  21837. top: 50%;
  21838. transform: translateY(-50%);
  21839. }
  21840. .e_add_list_body {
  21841. height: calc(100% - 187px);
  21842. overflow: auto;
  21843. }
  21844. .e_add_list_child {
  21845. width: 100%;
  21846. display: flex;
  21847. align-items: center;
  21848. justify-content: center;
  21849. position: relative;
  21850. box-sizing: border-box;
  21851. padding: 15px 40px;
  21852. text-align: center;
  21853. }
  21854. .e_add_list_child span {
  21855. overflow: hidden;
  21856. white-space: nowrap;
  21857. text-overflow: ellipsis;
  21858. cursor: pointer;
  21859. }
  21860. .e_add_list_child img {
  21861. position: absolute;
  21862. right: 10px;
  21863. width: 21px;
  21864. cursor: pointer;
  21865. top: 50%;
  21866. transform: translateY(-50%);
  21867. }
  21868. .e_add_list_child + .e_add_list_child {
  21869. border-top: 1px solid #eaeaea;
  21870. }
  21871. .e_add_list_child .active {
  21872. color: #409eff;
  21873. }
  21874. .e_add_list_btn {
  21875. position: absolute;
  21876. bottom: 0;
  21877. height: 50px;
  21878. background: rgb(120, 120, 254);
  21879. width: 100%;
  21880. color: #fff;
  21881. font-size: 16px;
  21882. text-align: center;
  21883. line-height: 50px;
  21884. cursor: pointer;
  21885. }
  21886. .e_add_list_detail {
  21887. position: absolute;
  21888. bottom: 0;
  21889. height: 130px;
  21890. background: rgb(120, 120, 254);
  21891. width: 100%;
  21892. color: #fff;
  21893. font-size: 16px;
  21894. display: flex;
  21895. align-items: center;
  21896. justify-content: center;
  21897. }
  21898. .e_add_list_detail textarea {
  21899. height: 90%;
  21900. width: 95%;
  21901. border: none;
  21902. resize: none;
  21903. outline: none;
  21904. padding: 5px;
  21905. box-sizing: border-box;
  21906. }
  21907. .e_add_list_pbox {
  21908. width: 100%;
  21909. max-width: 650px;
  21910. /* height: 600px; */
  21911. }
  21912. .e_add_list_pbox_title {
  21913. height: 50px;
  21914. background: #fff;
  21915. display: flex;
  21916. align-items: center;
  21917. width: 100%;
  21918. box-sizing: border-box;
  21919. padding: 0 20px;
  21920. }
  21921. .type_title {
  21922. font-size: 18px;
  21923. font-weight: 700;
  21924. }
  21925. .type_content {
  21926. font-size: 16px;
  21927. /* margin-left: 30px; */
  21928. }
  21929. .type_content span + span {
  21930. margin-left: 20px;
  21931. }
  21932. .type_content span {
  21933. cursor: pointer;
  21934. padding-bottom: 5px;
  21935. box-sizing: border-box;
  21936. }
  21937. .type_content .active {
  21938. color: #409eff;
  21939. border-bottom: 2px solid #409eff;
  21940. }
  21941. .e_add_list_pbox_content {
  21942. height: calc(100% - 50px);
  21943. display: flex;
  21944. align-items: center;
  21945. width: 100%;
  21946. background: #fff;
  21947. }
  21948. .evaCss {
  21949. display: flex;
  21950. flex-direction: row;
  21951. flex-wrap: nowrap;
  21952. align-items: flex-start;
  21953. padding: 0 0 20px;
  21954. }
  21955. .cru_line {
  21956. position: absolute;
  21957. bottom: 0px;
  21958. transition: all 0.5s;
  21959. left: 0px;
  21960. width: 125px;
  21961. margin-left: -25px;
  21962. }
  21963. .isNoMessage {
  21964. width: 20%;
  21965. margin: 25% auto 0;
  21966. }
  21967. .isNoMessage > img {
  21968. width: 100%;
  21969. height: 100%;
  21970. }
  21971. .fullStyle >>> .el-dialog__body {
  21972. height: 100% !important;
  21973. }
  21974. .fullStyle >>> .el-dialog,
  21975. .fullStyle {
  21976. width: 100% !important;
  21977. max-width: 100% !important;
  21978. height: 100% !important;
  21979. margin: 0 !important;
  21980. }
  21981. .full_diy >>> .el-dialog {
  21982. margin: 0 !important;
  21983. height: 100%;
  21984. padding: 4px;
  21985. }
  21986. .full_diy >>> .el-dialog__body {
  21987. height: calc(100% - 100px);
  21988. }
  21989. .full_diy2 >>> .el-dialog__body {
  21990. height: calc(100% - 50px);
  21991. padding: 0;
  21992. }
  21993. .switchCss {
  21994. /* width: 100%; */
  21995. display: flex;
  21996. flex-direction: row;
  21997. flex-wrap: nowrap;
  21998. align-items: center;
  21999. /* justify-content: center; */
  22000. }
  22001. .isClickNav {
  22002. /* color: #499eef; */
  22003. color: #000;
  22004. }
  22005. .commentImg {
  22006. width: 25px;
  22007. height: 25px;
  22008. cursor: pointer;
  22009. }
  22010. .commentImg > img {
  22011. width: 100%;
  22012. height: 100%;
  22013. }
  22014. .comment {
  22015. background: #f9f9f9;
  22016. border-radius: 0 0 4px 4px;
  22017. display: flex;
  22018. flex-direction: row;
  22019. flex-wrap: nowrap;
  22020. align-items: center;
  22021. justify-content: flex-end;
  22022. height: 35px;
  22023. }
  22024. .commentList {
  22025. display: flex;
  22026. flex-direction: row;
  22027. flex-wrap: nowrap;
  22028. align-items: center;
  22029. justify-content: center;
  22030. align-content: center;
  22031. /* margin-left: 15px; */
  22032. /* margin-left: 8px; */
  22033. }
  22034. .scoreImg {
  22035. width: 17px;
  22036. height: 17px;
  22037. }
  22038. .studentDetail {
  22039. display: flex;
  22040. flex-direction: row;
  22041. flex-wrap: nowrap;
  22042. /* align-items: center; */
  22043. align-items: flex-start;
  22044. }
  22045. .tx {
  22046. width: 50px;
  22047. }
  22048. .tx > img {
  22049. width: 100%;
  22050. height: 100%;
  22051. }
  22052. .nameAndTime {
  22053. display: flex;
  22054. flex-direction: column;
  22055. flex-wrap: nowrap;
  22056. align-items: flex-start;
  22057. margin-left: 10px;
  22058. }
  22059. .worksAnswer {
  22060. color: #4078dd;
  22061. margin: 10px 0;
  22062. font-size: 16px;
  22063. position: relative;
  22064. }
  22065. .worksAnswer > img {
  22066. width: 500px;
  22067. height: 300px;
  22068. object-fit: contain;
  22069. margin: 0 auto;
  22070. display: block;
  22071. }
  22072. .commentTop {
  22073. border-bottom: 1px solid #eaeaea;
  22074. padding-bottom: 10px;
  22075. }
  22076. .commentBox {
  22077. padding-top: 15px;
  22078. }
  22079. .pl {
  22080. font-size: 18px;
  22081. }
  22082. .plPerson {
  22083. width: 100%;
  22084. }
  22085. .plName {
  22086. display: flex;
  22087. flex-direction: row;
  22088. flex-wrap: nowrap;
  22089. align-items: baseline;
  22090. color: #78787a;
  22091. width: 100%;
  22092. }
  22093. .deleteComment {
  22094. cursor: pointer;
  22095. margin-left: auto;
  22096. color: #237ade;
  22097. }
  22098. .plContent {
  22099. margin-top: 5px;
  22100. }
  22101. .evalCss {
  22102. background: #fff;
  22103. font-size: 18px;
  22104. }
  22105. .nav {
  22106. color: #9d9d9d;
  22107. padding: 5px 0 15px 20px;
  22108. }
  22109. .middleBox {
  22110. padding: 5px 0 15px 20px;
  22111. }
  22112. .pfBox {
  22113. padding-bottom: 30px;
  22114. }
  22115. .nameAndrate {
  22116. display: flex;
  22117. flex-direction: row;
  22118. flex-wrap: nowrap;
  22119. align-items: center;
  22120. padding-bottom: 10px;
  22121. height: 30px;
  22122. line-height: 30px;
  22123. }
  22124. .nameAndrate > div {
  22125. margin-left: 10px;
  22126. color: #000;
  22127. height: 30px;
  22128. }
  22129. .nameAndrate >>> .el-rate__icon {
  22130. font-size: 28px !important;
  22131. }
  22132. .pfBox > div:nth-child(2) {
  22133. background: #f7f6f9;
  22134. width: 400px;
  22135. min-height: 45px;
  22136. border-radius: 10px;
  22137. font-size: 16px;
  22138. display: flex;
  22139. flex-wrap: wrap;
  22140. align-items: center;
  22141. padding: 10px 20px;
  22142. box-sizing: border-box;
  22143. color: #000;
  22144. }
  22145. .bz {
  22146. display: flex;
  22147. flex-direction: row;
  22148. flex-wrap: nowrap;
  22149. align-items: flex-start;
  22150. }
  22151. .bz > div {
  22152. padding: 0 10px;
  22153. }
  22154. .select_box2_title {
  22155. background: #fff;
  22156. border-radius: 5px;
  22157. padding: 15px 10px;
  22158. box-sizing: border-box;
  22159. margin-bottom: 10px;
  22160. display: flex;
  22161. flex-direction: row;
  22162. flex-wrap: nowrap;
  22163. align-items: center;
  22164. }
  22165. .select_box2_title > div:nth-child(2) {
  22166. margin-left: 10px;
  22167. color: #c4c4c4;
  22168. }
  22169. .select_box2_box {
  22170. display: flex;
  22171. height: 500px;
  22172. }
  22173. .select_box2_img {
  22174. width: calc(100% - 310px);
  22175. height: 100%;
  22176. overflow: auto;
  22177. background: #fff;
  22178. border-radius: 5px;
  22179. }
  22180. .select_box2_img img {
  22181. width: 100%;
  22182. }
  22183. .select_box2_answer {
  22184. background: #fff;
  22185. margin-left: 10px;
  22186. border-radius: 5px;
  22187. width: 300px;
  22188. overflow: auto;
  22189. height: 90%;
  22190. display: flex;
  22191. flex-direction: column;
  22192. align-items: flex-start;
  22193. padding-top: 10px;
  22194. box-sizing: border-box;
  22195. position: relative;
  22196. }
  22197. .select_answer_title {
  22198. padding: 0 0 15px 20px;
  22199. color: #c4c4c4;
  22200. }
  22201. .select_box2_answer_box {
  22202. margin: 0 0 10px 20px;
  22203. width: 85%;
  22204. display: flex;
  22205. flex-direction: row;
  22206. flex-wrap: nowrap;
  22207. align-items: center;
  22208. }
  22209. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22210. color: #000;
  22211. }
  22212. .upAnswerCss {
  22213. position: absolute;
  22214. bottom: 15px;
  22215. right: 15px;
  22216. }
  22217. .upAnswerCss >>> .el-button {
  22218. width: 95px;
  22219. height: 35px;
  22220. line-height: 35px;
  22221. padding: 0;
  22222. }
  22223. .rightWidthCss {
  22224. width: 60%;
  22225. display: flex;
  22226. flex-direction: row;
  22227. align-items: flex-start;
  22228. }
  22229. .rightAnswer {
  22230. display: flex;
  22231. flex-direction: row;
  22232. flex-wrap: nowrap;
  22233. align-items: center;
  22234. color: red;
  22235. margin-bottom: 31px;
  22236. }
  22237. .rightAnswerCss {
  22238. display: flex;
  22239. flex-direction: column;
  22240. flex-wrap: nowrap;
  22241. padding-top: 60px;
  22242. }
  22243. .blueCss {
  22244. color: #767de1;
  22245. margin-left: 10px;
  22246. }
  22247. .redCss {
  22248. color: red;
  22249. }
  22250. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22251. color: rgb(0 123 255) !important;
  22252. }
  22253. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22254. color: rgb(0 123 255) !important;
  22255. }
  22256. .zuoyeYulan {
  22257. padding-top: 0;
  22258. font-size: 18px;
  22259. display: flex;
  22260. align-items: flex-end;
  22261. }
  22262. .buttonA {
  22263. margin-left: 10px;
  22264. padding: 0;
  22265. }
  22266. .displayBox {
  22267. margin-bottom: 10px;
  22268. display: block;
  22269. border-bottom: 3px solid #eee;
  22270. display: flex;
  22271. align-items: center;
  22272. }
  22273. .easy_comment {
  22274. width: calc(100% - 90px);
  22275. margin-left: 10px;
  22276. display: flex;
  22277. flex-wrap: wrap;
  22278. }
  22279. .easy_comment > div {
  22280. border: 1px solid #4a4a4a;
  22281. color: #666;
  22282. border-radius: 15px;
  22283. padding: 5px 10px;
  22284. font-size: 16px;
  22285. margin-bottom: 10px;
  22286. margin-right: 5px;
  22287. cursor: pointer;
  22288. }
  22289. .easy_comment div:hover {
  22290. border: 1px solid #f7ba2a;
  22291. color: #c69217;
  22292. }
  22293. .xuan_right_box {
  22294. padding: 10px 0;
  22295. background: #f0f4fa;
  22296. margin: 0 15px 0 25px;
  22297. border-bottom-left-radius: 5px;
  22298. border-bottom-right-radius: 5px;
  22299. width: 91.5%;
  22300. }
  22301. .tool_right_box {
  22302. display: flex;
  22303. align-items: center;
  22304. }
  22305. .tool_right_box + .tool_right_box {
  22306. margin-top: 10px;
  22307. }
  22308. .right_box_xuan {
  22309. border-radius: 5px;
  22310. padding: 5px;
  22311. margin-left: 10px;
  22312. min-width: 85px;
  22313. background: #fff;
  22314. color: #0061ff;
  22315. border: 1px solid #0061ff;
  22316. font-size: 14px;
  22317. }
  22318. .pButton:hover {
  22319. opacity: 1 !important;
  22320. }
  22321. .pButton {
  22322. position: fixed;
  22323. text-align: center;
  22324. cursor: pointer;
  22325. z-index: 999;
  22326. right: 20px;
  22327. top: 110px;
  22328. width: 50px;
  22329. height: 50px;
  22330. display: flex;
  22331. align-items: center;
  22332. justify-content: center;
  22333. border-radius: 5px;
  22334. }
  22335. .pzClass {
  22336. width: calc(100% - 340px);
  22337. }
  22338. .newDialogCss {
  22339. /* position: fixed;
  22340. right: 5%;
  22341. top: 50%;
  22342. width: 340px;
  22343. transform: translateY(-50%);
  22344. height: 60%;
  22345. box-shadow: 0px 0 8px 0px #555555;
  22346. border-radius: 15px;
  22347. z-index: 999; */
  22348. position: fixed;
  22349. right: 20px;
  22350. top: 101px;
  22351. width: 330px;
  22352. height: calc(100% - 80px);
  22353. z-index: 999;
  22354. background: #fff;
  22355. border-top-right-radius: 0px;
  22356. border-bottom-right-radius: 0px;
  22357. overflow: hidden;
  22358. }
  22359. .newDialogCss>.scoreList{
  22360. width:100%;
  22361. height:100%;
  22362. box-sizing:border-box;
  22363. padding:10px 15px;
  22364. overflow:auto;
  22365. padding-bottom:80px;
  22366. }
  22367. .pzTop {
  22368. color: #fff;
  22369. background: #000;
  22370. display: flex;
  22371. flex-direction: row;
  22372. flex-wrap: nowrap;
  22373. align-items: center;
  22374. justify-content: space-between;
  22375. height: 40px;
  22376. border-radius: 15px 15px 0 0;
  22377. user-select: none;
  22378. }
  22379. .pzTop2 .checkbox {
  22380. display: flex;
  22381. align-items: center;
  22382. padding: 5px 10px;
  22383. flex: 0 0 auto;
  22384. font-weight: bold;
  22385. border-bottom: 1px solid #eee;
  22386. justify-content: space-between;
  22387. }
  22388. .checkbox>.cb-tabList{
  22389. display:flex;
  22390. align-items:center;
  22391. }
  22392. .cb-tabList>div{
  22393. margin-right:20px;
  22394. font-weight:400;
  22395. cursor:pointer;
  22396. }
  22397. .cb-tabList>.cb-tabItem{
  22398. color:#1684FC;
  22399. position:relative;
  22400. }
  22401. .cb-tabItem::after{
  22402. content:"";
  22403. width:100%;
  22404. height:2px;
  22405. background:#1684FC;
  22406. position:absolute;
  22407. bottom:-5px;
  22408. left:0
  22409. }
  22410. .pzTop2 .check {
  22411. text-align: center;
  22412. cursor: pointer;
  22413. box-sizing: border-box;
  22414. display: flex;
  22415. }
  22416. .pzTop2 img {
  22417. width: 25px;
  22418. cursor: pointer;
  22419. }
  22420. .pzTop > div:nth-child(1) {
  22421. padding-left: 10px;
  22422. }
  22423. .pzTop > div:nth-child(2) {
  22424. width: 15px;
  22425. height: 15px;
  22426. padding-right: 10px;
  22427. cursor: pointer;
  22428. }
  22429. .pzTop > div:nth-child(2) > img {
  22430. width: 100%;
  22431. height: 100%;
  22432. }
  22433. .pzBox,
  22434. .noPzBox {
  22435. height: calc(100% - 60px);
  22436. /* background: #ededed; */
  22437. background: #fff;
  22438. /* border-radius: 0 0 15px 15px; */
  22439. }
  22440. .noPzBox {
  22441. display: flex;
  22442. flex-direction: column;
  22443. flex-wrap: nowrap;
  22444. justify-content: center;
  22445. align-items: center;
  22446. }
  22447. .pzList {
  22448. background: #f7f7f7;
  22449. width: 90%;
  22450. margin: 0 auto 15px;
  22451. border-radius: 5px;
  22452. }
  22453. .pzNavTop {
  22454. display: flex;
  22455. flex-direction: row;
  22456. flex-wrap: nowrap;
  22457. padding: 10px 10px 0 10px;
  22458. align-items: center;
  22459. }
  22460. .pzDelete {
  22461. cursor: pointer;
  22462. margin-left: auto;
  22463. font-size: 14px;
  22464. color: #afafaf;
  22465. }
  22466. .pzNavTop > div:nth-child(1) {
  22467. background: #3760af;
  22468. width: 35px;
  22469. height: 35px;
  22470. color: #fff;
  22471. text-align: center;
  22472. line-height: 35px;
  22473. border-radius: 50%;
  22474. font-size: 14px;
  22475. }
  22476. .pzNavTop > div:nth-child(2) {
  22477. font-size: 18px;
  22478. color: #959595;
  22479. margin-left: 5px;
  22480. }
  22481. .pzContent {
  22482. padding: 10px;
  22483. word-break: break-word;
  22484. }
  22485. .pzContent audio {
  22486. width: 100%;
  22487. }
  22488. .pzContent audio::-webkit-media-controls-panel {
  22489. background: #fff;
  22490. }
  22491. .pzContent >>> img {
  22492. max-width: 100%;
  22493. }
  22494. .pzListBox {
  22495. padding-top: 15px;
  22496. height: calc(100% - 110px);
  22497. overflow: auto;
  22498. }
  22499. .addPzButton {
  22500. position: relative;
  22501. margin-top: 3px;
  22502. width: 100%;
  22503. }
  22504. .addPzButton .img1 {
  22505. position: absolute;
  22506. top: 50%;
  22507. right: 25px;
  22508. transform: translateY(-50%);
  22509. height: 100%;
  22510. display: flex;
  22511. align-items: center;
  22512. }
  22513. .addPzButton .img1 div {
  22514. display: flex;
  22515. }
  22516. .addPzButton .img1 div img {
  22517. width: 28px;
  22518. margin-left: 10px;
  22519. cursor: pointer;
  22520. }
  22521. .addPzButton .img1 div span {
  22522. font-size: 14px;
  22523. margin: 4px 0 0 3px;
  22524. color: #afafaf;
  22525. }
  22526. .addPz {
  22527. background: #4b79ce;
  22528. width: 100px;
  22529. color: #fff;
  22530. font-size: 12px;
  22531. height: 30px;
  22532. margin: 0 auto;
  22533. text-align: center;
  22534. line-height: 30px;
  22535. border-radius: 10px;
  22536. cursor: pointer;
  22537. }
  22538. .addDialogCss {
  22539. position: fixed;
  22540. width: 600px;
  22541. height: 70%;
  22542. min-height: 450px;
  22543. box-shadow: 0px 0 8px 0px #555555;
  22544. border-radius: 15px;
  22545. z-index: 999;
  22546. left: 50%;
  22547. top: 50%;
  22548. margin: -18% 0 0 -300px;
  22549. }
  22550. .teacherPz {
  22551. display: flex;
  22552. flex-direction: row;
  22553. align-items: center;
  22554. flex-wrap: nowrap;
  22555. }
  22556. .teacherPzImg {
  22557. width: 30px;
  22558. height: 30px;
  22559. }
  22560. .teacherPzImg > img {
  22561. width: 100%;
  22562. height: 100%;
  22563. }
  22564. .addPzBox {
  22565. height: calc(100% - 40px);
  22566. background: #ededed;
  22567. border-bottom-left-radius: 15px;
  22568. border-bottom-right-radius: 15px;
  22569. }
  22570. .pzAudioClass {
  22571. margin: 15px 14px;
  22572. background: #fff;
  22573. height: 100%;
  22574. display: flex;
  22575. justify-content: center;
  22576. align-items: center;
  22577. }
  22578. .pzConText {
  22579. width: 95%;
  22580. height: 100%;
  22581. margin: 10px auto 0;
  22582. border: none;
  22583. background: #fff;
  22584. border-radius: 0px;
  22585. }
  22586. .pzConText >>> .text {
  22587. height: calc(100% - 82px);
  22588. }
  22589. .addTextCss {
  22590. background: #4b79ce;
  22591. width: 80px;
  22592. height: 30px;
  22593. text-align: center;
  22594. color: #fff;
  22595. line-height: 30px;
  22596. border-radius: 10px;
  22597. margin: 10px auto 0;
  22598. cursor: pointer;
  22599. }
  22600. .pzConText:focus-visible {
  22601. border: none !important;
  22602. }
  22603. .maxWidth {
  22604. width: 1000px;
  22605. }
  22606. .noPz {
  22607. width: 150px;
  22608. margin: 0 auto 20%;
  22609. }
  22610. .noPz > img {
  22611. width: 100%;
  22612. height: 100%;
  22613. }
  22614. .timeAndReply {
  22615. display: flex;
  22616. flex-direction: row;
  22617. flex-wrap: nowrap;
  22618. justify-content: space-between;
  22619. align-items: center;
  22620. font-size: 14px;
  22621. box-sizing: border-box;
  22622. padding: 0 10px 10px 0px;
  22623. }
  22624. .timeAndReply .time {
  22625. color: #bfbfbf;
  22626. padding: 0 0 0 10px;
  22627. box-sizing: border-box;
  22628. }
  22629. .timeAndReply > div:last-child {
  22630. cursor: pointer;
  22631. color: #777;
  22632. }
  22633. /* table 样式 */
  22634. .cont >>> table {
  22635. border-top: 1px solid #ccc;
  22636. border-left: 1px solid #ccc;
  22637. }
  22638. .cont >>> table td,
  22639. .cont >>> table th {
  22640. border-bottom: 1px solid #ccc;
  22641. border-right: 1px solid #ccc;
  22642. /* padding: 20px 5px; */
  22643. padding: 5px 10px;
  22644. max-width: 0px;
  22645. height: 30px;
  22646. vertical-align: baseline;
  22647. box-sizing: border-box;
  22648. }
  22649. .cont >>> table th {
  22650. border-bottom: 2px solid #ccc;
  22651. text-align: center;
  22652. }
  22653. /* blockquote 样式 */
  22654. .cont >>> blockquote {
  22655. display: block;
  22656. border-left: 8px solid #d0e5f2;
  22657. padding: 5px 10px;
  22658. margin: 10px 0;
  22659. line-height: 1.4;
  22660. font-size: 100%;
  22661. background-color: #f1f1f1;
  22662. }
  22663. /* code 样式 */
  22664. .cont >>> code {
  22665. display: inline-block;
  22666. /* *display: inline; */
  22667. zoom: 1;
  22668. background-color: #f1f1f1;
  22669. border-radius: 3px;
  22670. padding: 3px 5px;
  22671. margin: 0 3px;
  22672. }
  22673. .cont >>> pre code {
  22674. display: block;
  22675. }
  22676. /* ul ol 样式 */
  22677. .cont >>> ul,
  22678. ol {
  22679. margin: 10px 0 10px 20px;
  22680. }
  22681. .addPzCheck {
  22682. display: flex;
  22683. flex-direction: row;
  22684. flex-wrap: nowrap;
  22685. padding: 10px 15px 0;
  22686. }
  22687. .addPzCheck span {
  22688. cursor: pointer;
  22689. padding-bottom: 5px;
  22690. font-weight: bold;
  22691. }
  22692. .addPzCheck span + span {
  22693. margin-left: 10px;
  22694. }
  22695. .addPzCheck .isChooseActive {
  22696. color: #3e88f4;
  22697. border-bottom: 2px solid #2f80f3;
  22698. }
  22699. /* code 样式 */
  22700. .cont {
  22701. /* -webkit-user-modify: read-write; */
  22702. overflow-wrap: break-word;
  22703. -webkit-line-break: after-white-space;
  22704. word-break: break-word;
  22705. white-space: pre-line;
  22706. }
  22707. .scoreBox,
  22708. .scoreDetailBox {
  22709. display: flex;
  22710. align-items: center;
  22711. justify-content: flex-start;
  22712. margin-top: 20px;
  22713. font-size: 18px;
  22714. width: 100%;
  22715. }
  22716. .scoreBox .t,
  22717. .scoreDetailBox .t {
  22718. margin-right: 10px;
  22719. width: 100px;
  22720. text-align: right;
  22721. }
  22722. .scoreDetailBox {
  22723. align-items: flex-start;
  22724. }
  22725. .scoreDetailBox >>> .el-textarea {
  22726. width: calc(100% - 200px);
  22727. }
  22728. .scoreBox >>> .el-input {
  22729. width: 130px;
  22730. font-size: 38px;
  22731. }
  22732. .scoreBox >>> .el-input__inner {
  22733. height: 60px;
  22734. }
  22735. .answerScore {
  22736. position: absolute;
  22737. top: 10px;
  22738. right: 10px;
  22739. background: #0000008f;
  22740. border-radius: 5px;
  22741. padding: 3px 5px;
  22742. font-size: 14px;
  22743. color: #fff;
  22744. cursor: pointer;
  22745. }
  22746. .open_box .switch_box {
  22747. width: 100%;
  22748. margin: 0 auto;
  22749. display: flex;
  22750. justify-content: space-between;
  22751. }
  22752. .open_box .switch_box + .switch_box {
  22753. margin-top: 10px;
  22754. }
  22755. .deleteImg,.deleteImg1 {
  22756. width: 25px !important;
  22757. height: 25px !important;
  22758. cursor: pointer;
  22759. position: absolute;
  22760. top: 10px;
  22761. right: 10px;
  22762. }
  22763. .deleteImg2 {
  22764. width: 23px !important;
  22765. height: 23px !important;
  22766. top: 5px;
  22767. right: 5px;
  22768. }
  22769. .deleteImg1{
  22770. width: 23px !important;
  22771. height: 23px !important;
  22772. top: 5px !important;
  22773. right: 30px !important;
  22774. }
  22775. .rightW {
  22776. right: 40px;
  22777. }
  22778. .drawPBox {
  22779. display: flex;
  22780. flex-direction: column;
  22781. position: relative;
  22782. }
  22783. .drawPBox span {
  22784. font-size: 18px;
  22785. color: #606266;
  22786. padding-bottom: 10px;
  22787. margin: 10px 0;
  22788. border-bottom: 1px solid #eaeaea;
  22789. }
  22790. .drawPBox img {
  22791. width: 500px;
  22792. height: 300px;
  22793. object-fit: contain;
  22794. cursor: pointer;
  22795. margin: 0 auto;
  22796. }
  22797. .sentenBox {
  22798. background: #fff;
  22799. height: 450px;
  22800. overflow: auto;
  22801. background-image: url("../../assets/icon/conSentences/stuBg.png");
  22802. background-position: 102%;
  22803. background-repeat: no-repeat;
  22804. background-size: 60%;
  22805. }
  22806. .addSen {
  22807. background: #409efe;
  22808. width: 90px;
  22809. color: #fff;
  22810. height: 35px;
  22811. text-align: center;
  22812. line-height: 35px;
  22813. border-radius: 5px;
  22814. float: right;
  22815. margin: 10px 20px 0 0;
  22816. cursor: pointer;
  22817. }
  22818. .sentenTop {
  22819. display: flex;
  22820. flex-direction: row;
  22821. flex-wrap: nowrap;
  22822. align-items: center;
  22823. padding: 55px 0 0 20px;
  22824. box-sizing: border-box;
  22825. }
  22826. .sentenTop > div:nth-child(2) {
  22827. width: 300px;
  22828. margin: 0 15px;
  22829. }
  22830. .sentenTop > div:nth-child(3) {
  22831. background: #409efe;
  22832. color: #fff;
  22833. width: 65px;
  22834. height: 35px;
  22835. text-align: center;
  22836. line-height: 35px;
  22837. border-radius: 5px;
  22838. cursor: pointer;
  22839. }
  22840. .cardList,
  22841. .cardList1 {
  22842. padding: 10px 0 10px 0;
  22843. display: flex;
  22844. flex-direction: row;
  22845. flex-wrap: wrap;
  22846. align-items: center;
  22847. box-sizing: border-box;
  22848. border-bottom: 1px solid #f4f4f4;
  22849. width: 98%;
  22850. margin: 0 auto;
  22851. min-width: 60%;
  22852. max-width: 85%;
  22853. }
  22854. .cardList1 {
  22855. padding: 10px 0 10px 10px !important;
  22856. margin: 0 !important;
  22857. }
  22858. .cardBox {
  22859. display: flex;
  22860. flex-direction: row;
  22861. flex-wrap: wrap;
  22862. align-items: center;
  22863. align-content: center;
  22864. }
  22865. .cardBox > div {
  22866. margin-bottom: 10px;
  22867. }
  22868. .isCard,
  22869. .isChooseCard,
  22870. .noCard,
  22871. .isCard1 {
  22872. width: 130px;
  22873. height: 60px;
  22874. text-align: center;
  22875. line-height: 60px;
  22876. font-size: 20px;
  22877. cursor: pointer;
  22878. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  22879. background-size: cover;
  22880. transition: all 2s;
  22881. margin-right: 20px;
  22882. }
  22883. .isCard > div,
  22884. .noCard > div,
  22885. .isCard1 > div {
  22886. white-space: nowrap;
  22887. overflow: hidden;
  22888. text-overflow: ellipsis;
  22889. width: 75%;
  22890. margin: 0 auto;
  22891. }
  22892. .noCard {
  22893. background-image: none;
  22894. }
  22895. .isCard1 {
  22896. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  22897. }
  22898. .isChooseCard {
  22899. background-image: none;
  22900. border: 1px dashed #b9b9b9;
  22901. border-radius: 10px;
  22902. }
  22903. .card {
  22904. width: 130px;
  22905. height: 60px;
  22906. }
  22907. .card > img {
  22908. width: 100%;
  22909. height: 100%;
  22910. }
  22911. .rightCardBox {
  22912. margin: 10px 0 0 10px;
  22913. }
  22914. .rightCardBox > div:nth-child(1) {
  22915. margin-bottom: 10px;
  22916. }
  22917. .cardCss {
  22918. display: flex;
  22919. flex-direction: column;
  22920. flex-wrap: nowrap;
  22921. align-items: center;
  22922. border-bottom: 3px solid #b4c3d3;
  22923. padding: 0 0 5px 0;
  22924. margin-right: 10px;
  22925. }
  22926. .cardCss > div:nth-child(2) {
  22927. background: #5b7b9d;
  22928. color: #fff;
  22929. width: 20px;
  22930. height: 20px;
  22931. border-radius: 50%;
  22932. text-align: center;
  22933. line-height: 20px;
  22934. }
  22935. .isWrong {
  22936. display: flex;
  22937. flex-direction: row;
  22938. flex-wrap: nowrap;
  22939. align-content: center;
  22940. align-items: center;
  22941. }
  22942. .answerRight {
  22943. width: 25%;
  22944. }
  22945. .isTj {
  22946. display: flex;
  22947. flex-direction: row;
  22948. flex-wrap: nowrap;
  22949. align-items: center;
  22950. }
  22951. .isTj > div:nth-child(2) {
  22952. color: #727070;
  22953. margin-left: 10px;
  22954. }
  22955. .isTjImg {
  22956. width: 30px;
  22957. height: 30px;
  22958. }
  22959. .isTjImg > img {
  22960. width: 100%;
  22961. height: 100%;
  22962. }
  22963. .cardAnswerBox {
  22964. font-size: 18px;
  22965. width: 97%;
  22966. border: 5px;
  22967. padding: 0;
  22968. border-radius: 5px;
  22969. margin: 10px auto;
  22970. word-break: break-word;
  22971. }
  22972. .w_name {
  22973. margin-bottom: 10px;
  22974. }
  22975. .w_name span {
  22976. font-size: 16px;
  22977. }
  22978. .w_teachert {
  22979. width: 50px !important;
  22980. position: absolute;
  22981. height: auto !important;
  22982. z-index: 10;
  22983. right: 25px;
  22984. top: -25px;
  22985. }
  22986. .group_workBox {
  22987. }
  22988. .group_workBox + .group_workBox {
  22989. margin-top: 20px;
  22990. }
  22991. .group_box {
  22992. padding-bottom: 20px;
  22993. border-bottom: 2px solid #f0f0f0;
  22994. margin-top: 10px;
  22995. }
  22996. .group_title {
  22997. display: flex;
  22998. align-items: center;
  22999. justify-content: space-between;
  23000. width: 95%;
  23001. }
  23002. .group_name {
  23003. background-image: url(../../assets/icon/groupN.png);
  23004. width: 220px;
  23005. background-size: 100% 100%;
  23006. height: 67px;
  23007. padding: 0 20px 0 43px;
  23008. box-sizing: border-box;
  23009. line-height: 63px;
  23010. color: #fff;
  23011. overflow: hidden;
  23012. white-space: nowrap;
  23013. text-overflow: ellipsis;
  23014. }
  23015. .group_work {
  23016. width: 100%;
  23017. padding: 0 10px;
  23018. box-sizing: border-box;
  23019. display: flex;
  23020. flex-wrap: wrap;
  23021. }
  23022. .g_d_box {
  23023. display: flex;
  23024. flex-flow: wrap;
  23025. justify-content: space-around;
  23026. }
  23027. .g_d_box .isChair {
  23028. background-image: url(../../assets/avatar.png) !important;
  23029. }
  23030. .g_d_group {
  23031. width: 500px;
  23032. margin-bottom: 80px;
  23033. }
  23034. .g_d_group_chair {
  23035. display: flex;
  23036. align-items: center;
  23037. justify-content: center;
  23038. }
  23039. .g_d_group_chair > div + div {
  23040. margin-left: 30px;
  23041. }
  23042. .g_d_group_chair > div,
  23043. .g_d_group_chair2 > div {
  23044. display: flex;
  23045. flex-direction: column;
  23046. align-items: center;
  23047. }
  23048. .g_d_group_chair > div > span:nth-child(1),
  23049. .g_d_group_chair2 > div > span:nth-child(1) {
  23050. background-image: url(../../assets/icon/chair.png);
  23051. width: 50px;
  23052. height: 50px;
  23053. display: block;
  23054. background-size: 100% 100%;
  23055. }
  23056. .g_d_group_tableBox {
  23057. display: flex;
  23058. align-items: center;
  23059. justify-content: center;
  23060. }
  23061. .g_d_group_chair2 {
  23062. display: flex;
  23063. flex-direction: column;
  23064. align-items: center;
  23065. justify-content: center;
  23066. }
  23067. .g_d_group_chair2 > div + div {
  23068. margin-top: 10px;
  23069. }
  23070. .g_d_group_table {
  23071. background-image: url(../../assets/icon/groupBg.png);
  23072. width: 354px;
  23073. height: 196px;
  23074. background-size: 100% 100%;
  23075. display: flex;
  23076. align-items: center;
  23077. justify-content: center;
  23078. flex-direction: column;
  23079. color: #fff;
  23080. }
  23081. .g_d_group_table > div:nth-child(1) {
  23082. font-size: 24px;
  23083. margin-bottom: 5px;
  23084. }
  23085. .g_d_group_table > div:nth-child(2) div {
  23086. cursor: pointer;
  23087. background: #2e77bf;
  23088. padding: 4px 10px;
  23089. border-radius: 5px;
  23090. }
  23091. .groupBox {
  23092. }
  23093. .groupContent + .groupContent {
  23094. margin-top: 30px;
  23095. }
  23096. .groupTitle {
  23097. font-size: 24px;
  23098. color: rgb(80, 80, 80);
  23099. margin-bottom: 20px;
  23100. }
  23101. .groupName {
  23102. display: flex;
  23103. align-items: center;
  23104. }
  23105. .groupn {
  23106. font-size: 15px;
  23107. margin-right: 10px;
  23108. }
  23109. .groupName + .groupName {
  23110. margin-top: 15px;
  23111. }
  23112. .groupBtn {
  23113. margin-left: 10px;
  23114. }
  23115. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23116. text-align: left;
  23117. }
  23118. .g_d_btnBox {
  23119. display: flex;
  23120. justify-content: flex-end;
  23121. align-items: center;
  23122. margin-bottom: 20px;
  23123. }
  23124. .updateChair {
  23125. position: relative;
  23126. }
  23127. .updateChairBtn {
  23128. position: absolute;
  23129. width: 50px;
  23130. height: 50px;
  23131. overflow: hidden;
  23132. /* display: flex; */
  23133. align-items: center;
  23134. justify-content: center;
  23135. background: #00000087;
  23136. color: #fff;
  23137. border-radius: 50px;
  23138. display: none;
  23139. cursor: pointer;
  23140. }
  23141. .updateChair:hover .updateChairBtn {
  23142. display: flex;
  23143. }
  23144. .group_staic_box {
  23145. display: flex;
  23146. padding: 30px 40px 10px;
  23147. flex-wrap: wrap;
  23148. }
  23149. .group_staic {
  23150. /* width: 50%; */
  23151. margin-bottom: 20px;
  23152. display: flex;
  23153. align-items: center;
  23154. }
  23155. .group_staic span:nth-child(1) {
  23156. width: 150px;
  23157. text-align: right;
  23158. margin-right: 15px;
  23159. }
  23160. .group_staic span:nth-child(2) {
  23161. background: rgb(0 123 255);
  23162. color: #fff;
  23163. border-radius: 5px;
  23164. padding: 5px;
  23165. }
  23166. .codeFileBox {
  23167. height: 300px;
  23168. background: #fff;
  23169. display: flex;
  23170. align-items: center;
  23171. justify-content: center;
  23172. }
  23173. .codeFileBox img {
  23174. width: 200px;
  23175. margin: 0;
  23176. height: auto;
  23177. }
  23178. .codeFileBox div {
  23179. background: rgb(80, 142, 226);
  23180. color: #fff;
  23181. padding: 10px 20px;
  23182. border-radius: 25px;
  23183. cursor: pointer;
  23184. margin-left: 15px;
  23185. }
  23186. .radioBox {
  23187. display: flex;
  23188. flex-direction: column;
  23189. flex-wrap: nowrap;
  23190. align-items: flex-start;
  23191. }
  23192. .radioBox > div {
  23193. margin: 10px 0 0 10px;
  23194. }
  23195. /* .radioBox >>> .el-radio__input,
  23196. .radioBox >>> .el-checkbox__inner {
  23197. margin-left: 10px;
  23198. } */
  23199. .radioBox >>> .el-radio__label,
  23200. .radioBox >>> .el-checkbox__label {
  23201. display: flex;
  23202. align-items: center;
  23203. width: 100%;
  23204. }
  23205. .radioBox >>> .el-radio__label > span {
  23206. width: 100%;
  23207. display: -webkit-box;
  23208. overflow: hidden;
  23209. white-space: normal !important;
  23210. text-overflow: ellipsis;
  23211. word-wrap: break-word;
  23212. }
  23213. .inImg {
  23214. width: 100px;
  23215. cursor: pointer;
  23216. }
  23217. .inImg > img {
  23218. width: 100%;
  23219. height: 100%;
  23220. object-fit: cover;
  23221. }
  23222. .timuImgBox {
  23223. margin: 10px 0;
  23224. display: flex;
  23225. flex-direction: column;
  23226. flex-wrap: wrap;
  23227. align-items: flex-start;
  23228. }
  23229. .timuImg {
  23230. width: 150px;
  23231. margin: 5px 0;
  23232. cursor: pointer;
  23233. }
  23234. .timuImg > img {
  23235. width: 100%;
  23236. height: 100%;
  23237. object-fit: cover;
  23238. }
  23239. .worksTop {
  23240. display: flex;
  23241. flex-direction: row;
  23242. align-items: flex-end;
  23243. }
  23244. .worksTitle{
  23245. display: flex;
  23246. flex-direction: row;
  23247. flex-wrap: nowrap;
  23248. align-items: center;
  23249. }
  23250. .worksTitle::before,.worksTop::before{
  23251. content: '';
  23252. display: block;
  23253. width: 3px;
  23254. height: 20px;
  23255. background: #0061FF;
  23256. border-radius: 3px;
  23257. margin: 0 5px 0 0;
  23258. }
  23259. .corOpen {
  23260. margin: 0 0 0 10px;
  23261. font-size: 14px;
  23262. cursor: pointer;
  23263. color: #505050;
  23264. }
  23265. .corOpen:hover {
  23266. color: #499eef;
  23267. }
  23268. .navCorOpenBox {
  23269. display: flex;
  23270. flex-direction: row;
  23271. align-items: center;
  23272. justify-content: space-between;
  23273. height: 55px;
  23274. background: #ffffff;
  23275. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23276. border-radius: 8px 8px 0px 0px;
  23277. z-index: 9;
  23278. position: relative;
  23279. }
  23280. .navCorOpen {
  23281. padding-right: 15px;
  23282. cursor: pointer;
  23283. width: 45px;
  23284. display: flex;
  23285. }
  23286. .navCorOpen > img {
  23287. width: 100%;
  23288. height: 100%;
  23289. }
  23290. .mlImg {
  23291. width: 40px !important;
  23292. min-width: 40px;
  23293. cursor: pointer;
  23294. transform: rotate(180deg);
  23295. }
  23296. .mlImg > img {
  23297. width: 100%;
  23298. height: 100%;
  23299. }
  23300. .navLeftCss {
  23301. width: 100% !important;
  23302. left: 0 !important;
  23303. }
  23304. .isContentCss {
  23305. width: 100% !important;
  23306. }
  23307. .isAllWidth {
  23308. width: 100% !important;
  23309. }
  23310. .group_switch {
  23311. margin-right: 10px;
  23312. height: 30px;
  23313. display: flex;
  23314. align-items: center;
  23315. }
  23316. .group_switch > span {
  23317. margin-right: 5px;
  23318. }
  23319. .fileC_box {
  23320. padding-top: 15px;
  23321. }
  23322. .fileC_box > .fileC_title {
  23323. padding: 10px 5px 14px 10px;
  23324. border-top: 1px solid #cad1dc;
  23325. font-size: 14px;
  23326. font-weight: 400;
  23327. color: #cad1dc;
  23328. width: calc(100% - 20px);
  23329. margin: 0 auto;
  23330. box-sizing: border-box;
  23331. }
  23332. .pl_select_box {
  23333. height: 40px;
  23334. line-height: 40px;
  23335. width: 100%;
  23336. cursor: pointer;
  23337. padding: 0 20px;
  23338. box-sizing: border-box;
  23339. border-radius: 5px;
  23340. border: 1px solid #d6d6d6;
  23341. white-space: nowrap;
  23342. overflow: hidden;
  23343. text-overflow: ellipsis;
  23344. background: #fff;
  23345. text-align: left;
  23346. }
  23347. .newButton {
  23348. width: 102px;
  23349. height: 36px;
  23350. background: #e7ebf1;
  23351. border-radius: 4px;
  23352. color: #0e1e33;
  23353. font-weight: 400;
  23354. font-size: 14px;
  23355. border: none;
  23356. float: right;
  23357. margin-left: 10px;
  23358. }
  23359. .el-table >>> .even_row {
  23360. background-color: #f0f4fa;
  23361. }
  23362. .stageBoxCss,
  23363. .stageBoxIsCss {
  23364. display: flex;
  23365. flex-direction: row;
  23366. flex-wrap: nowrap;
  23367. align-items: center;
  23368. height: 50px;
  23369. border-bottom: 1px solid #e2f5fc;
  23370. cursor: pointer;
  23371. width: 100%;
  23372. }
  23373. .stageBoxIsCss {
  23374. background: #0061ff;
  23375. color: #fff;
  23376. border-radius: 8px;
  23377. }
  23378. .closeTri,
  23379. .closeTri1 {
  23380. min-width: 15px;
  23381. width: 15px;
  23382. height: 15px;
  23383. }
  23384. .closeTri1 {
  23385. padding-left: 10px;
  23386. cursor: pointer;
  23387. }
  23388. .closeTri > img,
  23389. .closeTri1 > img {
  23390. width: 100%;
  23391. height: 100%;
  23392. /* transition: all .5s; */
  23393. }
  23394. .noToolBlue {
  23395. min-width: 10px;
  23396. width: 10px;
  23397. height: 10px;
  23398. background: #0061ff;
  23399. border-radius: 50%;
  23400. margin-left: 13px;
  23401. }
  23402. .stageChild,
  23403. .toolChild {
  23404. height: 0;
  23405. overflow: hidden;
  23406. transition: all 0.5s;
  23407. }
  23408. .toolChild {
  23409. /* margin: 0 0 0 17px;
  23410. padding: 0 0 0 20px;
  23411. border-left: 1px solid #d7d7d7; */
  23412. }
  23413. .toolChild > div + div{
  23414. margin-top:5px;
  23415. }
  23416. .gjCss {
  23417. display: flex;
  23418. flex-direction: row;
  23419. flex-wrap: nowrap;
  23420. align-items: center;
  23421. padding: 10px 0 10px 40px;
  23422. box-sizing: border-box;
  23423. font-size: 14px;
  23424. cursor: pointer;
  23425. border-radius:5px;
  23426. }
  23427. .toolChild > div {
  23428. position: relative;
  23429. width: 100%;
  23430. }
  23431. .toolChild > div::before {
  23432. /* content: "";
  23433. width: 15px;
  23434. height: 1px;
  23435. background: #cad1dc;
  23436. position: absolute;
  23437. top: 24px;
  23438. left: -20px;
  23439. display: block; */
  23440. }
  23441. .isGjCss {
  23442. /* color: #0061ff; */
  23443. color:#fff;
  23444. background: rgb(55, 129, 252);
  23445. /* background-color: #e0eafb !important;
  23446. color: #0061ff !important; */
  23447. }
  23448. .navItem {
  23449. background: #ffffff;
  23450. border-radius: 4px;
  23451. width: 100%;
  23452. margin: 10px auto;
  23453. position: relative;
  23454. height: 40px;
  23455. display: flex;
  23456. flex-direction: row;
  23457. flex-wrap: nowrap;
  23458. align-items: center;
  23459. }
  23460. .navItemList {
  23461. display: flex;
  23462. flex-direction: row;
  23463. flex-wrap: nowrap;
  23464. align-items: center;
  23465. padding: 0 13px;
  23466. cursor: pointer;
  23467. width: calc(100% - 60px);
  23468. height: 100%;
  23469. }
  23470. .navItemList > div:first-child {
  23471. min-width: 60px;
  23472. }
  23473. .navItemList > div:last-child {
  23474. width: calc(100% - 80px);
  23475. white-space: nowrap;
  23476. overflow: hidden;
  23477. text-overflow: ellipsis;
  23478. word-break: break-word;
  23479. }
  23480. /* .isItemList > div {
  23481. color: #fff !important;
  23482. } */
  23483. .tool_work_box {
  23484. width: 100%;
  23485. padding: 0 37px 0;
  23486. box-sizing: border-box;
  23487. }
  23488. .tool_box {
  23489. width: 100%;
  23490. padding: 0 0 0 20px;
  23491. }
  23492. .tool_type_box {
  23493. display: flex;
  23494. flex-direction: row;
  23495. align-items: baseline;
  23496. flex-wrap: nowrap;
  23497. justify-content: flex-start;
  23498. position: relative;
  23499. }
  23500. .toolSort {
  23501. display: flex;
  23502. flex-direction: row;
  23503. flex-wrap: wrap;
  23504. justify-content: flex-start;
  23505. align-items: flex-start;
  23506. padding: 0 0 15px 0;
  23507. }
  23508. .toolSort > div {
  23509. margin: 0 10px 0 0;
  23510. width: 135px;
  23511. box-sizing: border-box;
  23512. border: 2px solid transparent;
  23513. }
  23514. .tools {
  23515. width: 100%;
  23516. display: flex;
  23517. flex-direction: column;
  23518. flex-wrap: nowrap;
  23519. align-items: flex-start;
  23520. }
  23521. .whiteBIcon {
  23522. width: fit-content;
  23523. cursor: pointer;
  23524. display: flex;
  23525. flex-direction: column;
  23526. flex-wrap: nowrap;
  23527. align-items: center;
  23528. font-size: 14px;
  23529. }
  23530. .tool:hover {
  23531. border: 2px solid #a5c7ff;
  23532. border-radius: 5px;
  23533. }
  23534. .whiteBIcon > img {
  23535. width: 65px;
  23536. height: 100%;
  23537. }
  23538. .whiteBIcon > img {
  23539. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  23540. border-radius: 15px;
  23541. }
  23542. .check {
  23543. /* width: 20px;
  23544. height: 20px; */
  23545. cursor: pointer;
  23546. margin: 10px 0;
  23547. position: absolute;
  23548. right: 2px;
  23549. top: -5px;
  23550. }
  23551. .noChoose,
  23552. .isChoose {
  23553. width: 15px;
  23554. height: 15px;
  23555. border-radius: 50%;
  23556. border: 1px solid #adadad;
  23557. }
  23558. .isChoose {
  23559. border: 4px solid #0363ff !important;
  23560. width: 10px;
  23561. height: 10px;
  23562. }
  23563. .isToolChoose {
  23564. border: 2px solid #5394ff !important;
  23565. border-radius: 5px;
  23566. box-shadow: 0 0 6px 0px #5394ff;
  23567. }
  23568. .checkDiv {
  23569. display: flex;
  23570. align-items: center;
  23571. }
  23572. .checkDiv span {
  23573. margin-left: 5px;
  23574. color: #858585;
  23575. }
  23576. .check img {
  23577. width: 20px;
  23578. height: 20px;
  23579. }
  23580. .lockTaskIcon {
  23581. width: 20px;
  23582. height: 20px;
  23583. position: absolute;
  23584. right: 10px;
  23585. top: 10px;
  23586. }
  23587. .lockTaskIcon > img {
  23588. width: 100%;
  23589. height: 100%;
  23590. }
  23591. .pick_box {
  23592. display: flex;
  23593. align-items: flex-start;
  23594. flex-wrap: wrap;
  23595. }
  23596. .selectBox {
  23597. width: 110px;
  23598. margin-left: 10px;
  23599. margin: 0 10px 0 auto;
  23600. }
  23601. .selectBox >>> .el-input__inner {
  23602. height: 30px;
  23603. line-height: 30px;
  23604. }
  23605. .selectBox >>> .el-input__icon {
  23606. line-height: 30px;
  23607. }
  23608. .sentenceTitle {
  23609. display: flex;
  23610. flex-direction: row;
  23611. flex-wrap: nowrap;
  23612. align-items: center;
  23613. }
  23614. .sentenceTitle::before {
  23615. content: attr(index);
  23616. background: #3681fc;
  23617. border-radius: 50%;
  23618. color: #fff;
  23619. width: 25px;
  23620. height: 25px;
  23621. min-width: 25px;
  23622. min-height: 25px;
  23623. text-align: center;
  23624. line-height: 25px;
  23625. margin-right: 5px;
  23626. }
  23627. .hfBox {
  23628. padding: 10px;
  23629. box-sizing: border-box;
  23630. }
  23631. .whoReplyWho {
  23632. display: flex;
  23633. flex-direction: row;
  23634. flex-wrap: nowrap;
  23635. align-items: baseline;
  23636. justify-content: flex-start;
  23637. }
  23638. .hfBottom {
  23639. display: flex;
  23640. flex-direction: row;
  23641. flex-wrap: nowrap;
  23642. align-items: center;
  23643. justify-content: space-between;
  23644. font-size: 14px;
  23645. }
  23646. .deleteHfItem {
  23647. cursor: pointer;
  23648. width: 20px;
  23649. height: 20px;
  23650. }
  23651. .deleteHfItem > img {
  23652. width: 100%;
  23653. height: 100%;
  23654. }
  23655. .whoReplyWho > .hfImg {
  23656. width: 12px;
  23657. height: 12px;
  23658. margin: 0 5px;
  23659. }
  23660. .whoReplyWho > .hfImg > img {
  23661. width: 100%;
  23662. height: 100%;
  23663. }
  23664. .hfContent {
  23665. padding-top: 10px;
  23666. box-sizing: border-box;
  23667. display: -webkit-box;
  23668. overflow: hidden;
  23669. white-space: normal !important;
  23670. text-overflow: ellipsis;
  23671. word-wrap: break-word;
  23672. -webkit-box-orient: vertical;
  23673. }
  23674. .hfTime {
  23675. text-align: left;
  23676. box-sizing: border-box;
  23677. padding: 10px 0 10px 0px;
  23678. color: #bfbfbf;
  23679. font-size: 14px;
  23680. }
  23681. .btnAllNT {
  23682. position: fixed;
  23683. bottom: 100px;
  23684. right: 40px;
  23685. z-index: 999;
  23686. display: flex;
  23687. flex-direction: row;
  23688. }
  23689. .btnAllNT > img {
  23690. cursor: pointer;
  23691. width: 80px;
  23692. }
  23693. .toolMask {
  23694. position: fixed;
  23695. width: 100%;
  23696. height: 100%;
  23697. background: #3f3c3c;
  23698. opacity: 0.5;
  23699. top: 0;
  23700. left: 0;
  23701. z-index: 999;
  23702. }
  23703. .addToolCss {
  23704. position: fixed;
  23705. z-index: 999;
  23706. background: #fff;
  23707. right: 5%;
  23708. bottom: 18%;
  23709. min-width: 1035px;
  23710. min-height: 300px;
  23711. border-radius: 10px;
  23712. box-shadow: 0 0 8px 1px #b2b2b2;
  23713. }
  23714. .toolTop {
  23715. display: flex;
  23716. flex-direction: row;
  23717. flex-wrap: nowrap;
  23718. justify-content: space-between;
  23719. align-items: center;
  23720. padding: 20px;
  23721. }
  23722. .toolTop > div:nth-child(2) {
  23723. width: 15px;
  23724. height: 15px;
  23725. padding-right: 10px;
  23726. cursor: pointer;
  23727. }
  23728. .toolTop > div:nth-child(2) > img {
  23729. width: 100%;
  23730. height: 100%;
  23731. }
  23732. .fullStyle>>>.el-dialog__body {
  23733. height: calc(100% - 125px) !important;
  23734. box-sizing: border-box;
  23735. padding: 30px 0 !important;
  23736. background: #fff !important;
  23737. }
  23738. .fullStyle>>>.el-dialog {
  23739. width: 100% !important;
  23740. max-width: 100% !important;
  23741. height: 100% !important;
  23742. margin: 0 !important;
  23743. }
  23744. .fullStyle {
  23745. width: 100% !important;
  23746. max-width: 100% !important;
  23747. height: 100% !important;
  23748. margin: 0 auto !important;
  23749. }
  23750. .fullStyle>>>.el-dialog__footer{
  23751. background: #fff !important;
  23752. }
  23753. .engUpBox {
  23754. width: 100%;
  23755. height: 100%;
  23756. }
  23757. .engTitle,
  23758. .engText {
  23759. display: flex;
  23760. flex-direction: row;
  23761. flex-wrap: nowrap;
  23762. align-items: flex-start;
  23763. padding: 0 20px 20px 20px;
  23764. box-sizing: border-box;
  23765. }
  23766. .engTitle > .div:first-child,
  23767. .engText > div:first-child {
  23768. min-width: 75px;
  23769. }
  23770. .correctBox{
  23771. width: 100%;
  23772. display: flex;
  23773. flex-direction: row;
  23774. flex-wrap: nowrap;
  23775. align-items: flex-start;
  23776. }
  23777. .oldBox{
  23778. width: 50%;
  23779. height: 100%;
  23780. display: flex;
  23781. flex-direction: column;
  23782. flex-wrap: nowrap;
  23783. align-items: center;
  23784. border-top: 1px solid #d9d9d9;
  23785. border-left: 1px solid #d9d9d9;
  23786. border-right: 1px solid #d9d9d9;
  23787. }
  23788. .oldBox>div:first-child{
  23789. width: 100%;
  23790. text-align: center;
  23791. background: #d9d9d9;
  23792. height: 35px;
  23793. line-height: 35px;
  23794. font-weight: bold;
  23795. }
  23796. .oldText{
  23797. width: 100%;
  23798. height: calc(100% - 35px);
  23799. overflow: auto;
  23800. margin: 10px 0;
  23801. display: flex;
  23802. flex-direction: column;
  23803. flex-wrap: nowrap;
  23804. align-content: center;
  23805. align-items: center;
  23806. }
  23807. .detailBox{
  23808. width: 50%;
  23809. padding: 10px;
  23810. background: #f6f6f6;
  23811. border-radius: 5px;
  23812. }
  23813. .oldDetail,.oldDetail1{
  23814. padding-bottom: 30px;
  23815. }
  23816. .oldImg{
  23817. width:30px;
  23818. height: 30px;
  23819. }
  23820. .oldImg>img{
  23821. width: 100%;
  23822. height: 100%;
  23823. }
  23824. .allName{
  23825. min-width: 200px;
  23826. white-space: nowrap;
  23827. overflow: hidden;
  23828. text-overflow: ellipsis;
  23829. word-break: break-word;
  23830. cursor: pointer;
  23831. text-align: center;
  23832. border: 1px solid #bcc2cc;
  23833. box-sizing: border-box;
  23834. }
  23835. .engUpTop{
  23836. max-height: 300px;
  23837. overflow: auto;
  23838. }
  23839. .isUpdateToolDetailClass{
  23840. padding: 0 !important;
  23841. }
  23842. .isUpdateToolDetailClass textarea{
  23843. padding:12px;
  23844. font-size: 16px;
  23845. min-height:100%;
  23846. width: 100%;
  23847. box-sizing:border-box;
  23848. outline: none;
  23849. border:none;
  23850. line-height: 30px;
  23851. resize: none;
  23852. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  23853. color: #838383;
  23854. }
  23855. .show_taskD {
  23856. min-width: fit-content;
  23857. margin-left: 10px;
  23858. display: flex;
  23859. align-items: center;
  23860. font-size: 14px;
  23861. cursor: pointer;
  23862. color: #717c8d;
  23863. }
  23864. .show_taskD > img {
  23865. width: 15px;
  23866. margin-right: 5px;
  23867. transition: 0.2s all;
  23868. transform: rotate(-90deg);
  23869. }
  23870. .show_taskD.show > img {
  23871. transform: rotate(0deg);
  23872. }
  23873. .correctCss{
  23874. position: absolute;
  23875. bottom: -70px;
  23876. background: #409eff;
  23877. color: #fff;
  23878. }
  23879. </style>