studyStudent.vue 807 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <div class="btnAllNT" v-if="false">
  14. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  15. <img
  16. v-if="
  17. courseDetail.userid == userid ||
  18. (courseDetail.course_teacher &&
  19. courseDetail.course_teacher.indexOf(userid) != -1)
  20. "
  21. src="../assets/icon/learn/addTool.png"
  22. @click="openToolAll"
  23. style="position: relative"
  24. />
  25. </div>
  26. <div
  27. class="pButton"
  28. style="left: 0; top: 140px"
  29. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  30. @click="setContent2(true)"
  31. >
  32. <!-- 批 , getCourseDetail()-->
  33. <img
  34. src="../assets/icon/newIcons/isRight.png"
  35. style="width: 45px"
  36. alt=""
  37. />
  38. </div>
  39. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  40. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  41. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  42. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  43. <div
  44. style="
  45. max-width: calc(100% - 40px);
  46. width: auto;
  47. white-space: nowrap;
  48. overflow: hidden;
  49. text-overflow: ellipsis;
  50. word-break: break-word;
  51. display: block;
  52. "
  53. >
  54. <el-tooltip
  55. effect="light"
  56. :content="courseDetail.title"
  57. placement="top"
  58. >
  59. <div class="ctitle">
  60. {{ courseDetail.title }}
  61. </div>
  62. </el-tooltip>
  63. </div>
  64. <el-tooltip effect="light" content="收缩" placement="top">
  65. <div class="mlImg" @click="setContent2(false)">
  66. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  67. </div>
  68. </el-tooltip>
  69. </div>
  70. <div
  71. class="inviteBox"
  72. v-if="tcid && inviteCode"
  73. style="padding: 0 0 8px 0"
  74. >
  75. <div>
  76. <span>随机码:{{ inviteCode }}</span>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="cru_selectBox">
  81. <div
  82. style="background: #fff; margin: 0 10px; border-radius: 8px"
  83. v-for="(item, stageIndex) in navList"
  84. :key="stageIndex"
  85. >
  86. <div
  87. class="stageBoxCss"
  88. @click="get(stageIndex)"
  89. :class="{
  90. // stageBoxIsCss: stageIndex == courseType,
  91. }"
  92. >
  93. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  94. <div>阶段{{ stageIndex + 1 }}</div>
  95. <el-tooltip
  96. effect="light"
  97. :content="item.dyName"
  98. placement="top"
  99. >
  100. <div>
  101. {{ item.dyName }}
  102. </div>
  103. </el-tooltip>
  104. </div>
  105. <!-- <div class="closeTri" v-if="stageIndex == courseType" :style="{transform:item.isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}">
  106. <img src="../assets/icon/newIcons/downC.png" alt />
  107. </div> -->
  108. <div class="closeTri" :style="{transform:item.isOpen ? 'rotate(90deg)' : 'rotate(0deg)'}">
  109. <img src="../assets/icon/newIcons/right.png" alt />
  110. </div>
  111. </div>
  112. <div class="stageChild" :class="{ navActive: item.isOpen }">
  113. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  114. <div
  115. class="navItem"
  116. :class="{
  117. openTaskActive:
  118. navIndex == taskCount &&
  119. nav.id == navId &&
  120. stageIndex == courseType,
  121. }"
  122. >
  123. <div v-if="nav.tool[0].tool != undefined">
  124. <div
  125. class="closeTri1"
  126. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../assets/icon/newIcons/bDown2.png" alt />
  130. </div>
  131. <div
  132. class="closeTri1"
  133. v-else
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../assets/icon/newIcons/right.png" alt />
  137. </div>
  138. </div>
  139. <div v-else class="noToolBlue"></div>
  140. <div
  141. @click="openTask(stageIndex, navIndex, nav.id)"
  142. class="navItemList"
  143. :class="{
  144. isItemList:
  145. navIndex == taskCount &&
  146. nav.id == navId &&
  147. stageIndex == courseType,
  148. }"
  149. >
  150. <div>任务{{ navIndex + 1 }}:</div>
  151. <el-tooltip
  152. effect="light"
  153. :content="nav.taskName"
  154. placement="top"
  155. >
  156. <div
  157. :style="{
  158. width:
  159. IsLookOpen &&
  160. !(
  161. navIndex == taskCount &&
  162. nav.id == navId &&
  163. stageIndex == courseType
  164. )
  165. ? 'calc(100% - 75px)'
  166. : 'auto',
  167. }"
  168. >
  169. {{ nav.taskName }}
  170. </div>
  171. </el-tooltip>
  172. </div>
  173. <div class="lockTaskIcon">
  174. <img
  175. src="../assets/lock.png"
  176. v-if="IsLookOpen && !nav.isLook"
  177. alt=""
  178. />
  179. </div>
  180. </div>
  181. <div
  182. v-if="nav.tool[0].tool != undefined"
  183. class="toolChild"
  184. :class="{ toolActive: nav.isOpen }"
  185. >
  186. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  187. <div
  188. class="gjCss"
  189. :class="{ isGjCss: t.isTool }"
  190. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  191. >
  192. <div>工具{{ toolIndex + 1 }}:</div>
  193. <div v-if="t.tool == 58">模拟驾驶</div>
  194. <div v-if="t.tool == 59">路径搜索</div>
  195. <div v-if="t.tool == 60">深度学习</div>
  196. <div v-if="t.tool == 10">倒计时</div>
  197. <div v-if="t.tool == 65">挑人</div>
  198. <div v-if="t.tool == 7">思维网格</div>
  199. <div v-if="t.tool == 1">电子白板</div>
  200. <div v-if="t.tool == 52">文档</div>
  201. <div v-if="t.tool == 3">思维导图</div>
  202. <div v-if="t.tool == 48">表格</div>
  203. <div v-if="t.tool == 49">学生分组</div>
  204. <div v-if="t.tool == 4">问卷调查</div>
  205. <div v-if="t.tool == 45">选择题</div>
  206. <div v-if="t.tool == 15">问答</div>
  207. <div v-if="t.tool == 16">作业提交</div>
  208. <div v-if="t.tool == 50">批量上传</div>
  209. <div v-if="t.tool == 41">选择匹配</div>
  210. <div v-if="t.tool == 47">排序</div>
  211. <div v-if="t.tool == 40">个人评价</div>
  212. <div v-if="t.tool == 18">训练平台</div>
  213. <div v-if="t.tool == 21">AIoT Blockly</div>
  214. <div v-if="t.tool == 23">AI Python</div>
  215. <div v-if="t.tool == 24">AI Blockly</div>
  216. <div v-if="t.tool == 32">源码编辑</div>
  217. <div v-if="t.tool == 57">CocoPi</div>
  218. <div v-if="t.tool == 63">海龟编程</div>
  219. <div v-if="t.tool == 28">翻译</div>
  220. <div v-if="t.tool == 31">数字画板</div>
  221. <div v-if="t.tool == 39">GeoGebra</div>
  222. <div v-if="t.tool == 66">公式编辑</div>
  223. <div v-if="t.tool == 67">分子结构</div>
  224. <div v-if="t.tool == 68">时间轴</div>
  225. <div v-if="t.tool == 69">英语写作</div>
  226. <div v-if="t.tool == 70">英语口语</div>
  227. <div v-if="t.tool == 25">目标管理</div>
  228. <div v-if="t.tool == 26">课程设计</div>
  229. <div v-if="t.tool == 62">交互视频</div>
  230. <div v-if="t.tool == 71">AI智能体</div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. <!-- :class="{ navLeftCss: !mlDialog }" -->
  240. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  241. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  242. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  243. <div class="courseIndex">
  244. <div>任务{{ taskCount + 1 }}</div>
  245. <el-tooltip
  246. effect="light"
  247. :content="
  248. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  249. "
  250. placement="top"
  251. >
  252. <div>
  253. {{
  254. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  255. .task
  256. }}
  257. </div>
  258. </el-tooltip>
  259. </div>
  260. <div class="btnAll">
  261. <div class="btnLeft">
  262. <el-tooltip effect="light" content="刷新" placement="top">
  263. <div class="reBtnIcon" @click="refreshCourse">
  264. <span>刷新</span>
  265. </div>
  266. </el-tooltip>
  267. <el-tooltip effect="light" content="评论" placement="top">
  268. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  269. <span>评论</span>
  270. </div>
  271. </el-tooltip>
  272. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  273. <el-tooltip effect="light" content="录制" placement="top">
  274. <div class="vedioIcon" @click="startRecording">
  275. <span>录制</span>
  276. </div>
  277. </el-tooltip>
  278. </div>
  279. <div v-else-if="tType == 1 || tType == 4">
  280. <el-tooltip effect="light" content="下载" placement="top">
  281. <div class="vedioIcon1" @click="stopRecording">
  282. <span>下载</span>
  283. </div>
  284. </el-tooltip>
  285. </div>
  286. </div>
  287. <div class="btnRight">
  288. <div
  289. class="last"
  290. @click="nextOrpreSteps(0)"
  291. v-if="!(IsFollow && tType == 2)"
  292. @mouseover="isHovered = true"
  293. @mouseout="isHovered = false"
  294. >
  295. <div class="lastImg">
  296. <img
  297. :src="
  298. isHovered
  299. ? require('../assets/icon/newIcons/whiteLast.png')
  300. : require('../assets/icon/newIcons/last.png')
  301. "
  302. alt=""
  303. />
  304. </div>
  305. <div class="lastText">上一步</div>
  306. </div>
  307. <div
  308. class="last"
  309. @click="nextOrpreSteps(1)"
  310. v-if="!(IsFollow && tType == 2)"
  311. @mouseover="isHovered1 = true"
  312. @mouseout="isHovered1 = false"
  313. >
  314. <div class="lastText">下一步</div>
  315. <div class="lastImg">
  316. <img
  317. :src="
  318. isHovered1
  319. ? require('../assets/icon/newIcons/whiteNext.png')
  320. : require('../assets/icon/newIcons/next.png')
  321. "
  322. alt=""
  323. />
  324. </div>
  325. </div>
  326. <div
  327. class="last"
  328. @click="juriVisible = true"
  329. v-if="tType == 1"
  330. @mouseover="isHovered2 = true"
  331. @mouseout="isHovered2 = false"
  332. >
  333. <div class="lastImg">
  334. <img
  335. :src="
  336. isHovered2
  337. ? require('../assets/icon/newIcons/whiteLock.png')
  338. : require('../assets/icon/newIcons/lock.png')
  339. "
  340. alt=""
  341. />
  342. </div>
  343. <div class="lastText">权限</div>
  344. </div>
  345. <div
  346. class="returnBtn1 returnIcon"
  347. @click.stop="
  348. goTo(
  349. '/courseDetail?userid=' +
  350. userid +
  351. '&oid=' +
  352. oid +
  353. '&org=' +
  354. org +
  355. '&cid=' +
  356. classId +
  357. '&courseId=' +
  358. id +
  359. '&tType=' +
  360. tType +
  361. '&screenType=' +
  362. screenType
  363. )
  364. "
  365. >
  366. <div class="lastImg">
  367. <img src="../assets/icon/newIcon/return.png" alt="" />
  368. </div>
  369. <div class="lastText" style="color: #000">返回</div>
  370. </div>
  371. </div>
  372. <!-- <div
  373. class="returnBtn lockIcon"
  374. @click="juriVisible = true"
  375. v-if="tType == 1"
  376. >
  377. 权限
  378. </div>
  379. <div
  380. class="returnBtn vedioIcon"
  381. @click="startRecording"
  382. v-if="!videoStart && (tType == 1 || tType == 4)"
  383. >
  384. 录制
  385. </div>
  386. <div
  387. class="returnBtn"
  388. @click="stopRecording"
  389. v-else-if="tType == 1 || tType == 4"
  390. style="background: #ee5255"
  391. >
  392. 下载
  393. </div>
  394. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  395. 评论
  396. </div>
  397. <div
  398. class="returnBtn"
  399. @click="nextOrpreSteps(0)"
  400. v-if="!(IsFollow && tType == 2)"
  401. >
  402. 上一步
  403. </div>
  404. <div
  405. class="returnBtn"
  406. @click="nextOrpreSteps(1)"
  407. v-if="!(IsFollow && tType == 2)"
  408. >
  409. 下一步
  410. </div>
  411. <div class="returnBtn" @click="refreshCourse">刷新</div>
  412. <div
  413. class="returnBtn returnIcon"
  414. @click.stop="
  415. goTo(
  416. '/courseDetail?userid=' +
  417. userid +
  418. '&oid=' +
  419. oid +
  420. '&org=' +
  421. org +
  422. '&cid=' +
  423. classId +
  424. '&courseId=' +
  425. id +
  426. '&tType=' +
  427. tType +
  428. '&screenType=' +
  429. screenType
  430. )
  431. "
  432. >
  433. 返回
  434. </div> -->
  435. </div>
  436. </div>
  437. <div
  438. class="isNoMessage"
  439. v-if="
  440. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  441. .chapterData.length == 0 &&
  442. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  443. .toolChoose[0].tool.length == 0 &&
  444. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  445. .taskDetail == '' &&
  446. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  447. .eList &&
  448. !(
  449. courseDetail.userid == userid ||
  450. (courseDetail.course_teacher &&
  451. courseDetail.course_teacher.indexOf(userid) != -1)
  452. )
  453. "
  454. >
  455. <img src="../assets/icon/isNoMessage.png" alt />
  456. </div>
  457. <div class="study_top" :class="{ pzClass: pzDialog }">
  458. <div
  459. class="vedioBox"
  460. v-if="
  461. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  462. .taskDetail != '' ||
  463. vChapterData[taskCount].length > 0 ||
  464. fileC[taskCount].length > 0
  465. "
  466. style="border-radius: 0 0 20px 20px"
  467. >
  468. <div
  469. class="taskBox"
  470. v-if="
  471. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  472. .taskDetail != ''
  473. "
  474. >
  475. <div
  476. style="
  477. display: flex;
  478. flex-wrap: nowrap;
  479. flex-direction: column;
  480. position: relative;
  481. "
  482. >
  483. <div
  484. style="
  485. padding: 15px 0;
  486. line-height: 29px;
  487. font-size: 18px;
  488. color: #0e1e33;
  489. "
  490. class="cont"
  491. v-if="
  492. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  493. .taskDetail != ''
  494. "
  495. v-html="
  496. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  497. .taskDetail
  498. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  499. taskCount
  500. ].taskDetail
  501. : '暂无描述'
  502. "
  503. ></div>
  504. </div>
  505. </div>
  506. <div
  507. class="student_head"
  508. v-if="
  509. vChapterData[taskCount].length > 0 ||
  510. fileC[taskCount].length > 0
  511. "
  512. >
  513. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  514. <div
  515. :class="
  516. contentDialog == false
  517. ? 'box_course isContentCss'
  518. : 'box_course'
  519. "
  520. v-if="
  521. vChapterData.length > 0 &&
  522. vChapterData[taskCount] &&
  523. showType !== ''
  524. "
  525. >
  526. <div class="wheel" style="height: auto" v-if="showType === 0">
  527. <div
  528. class="workd_media"
  529. style="height: 650px; width: calc(100% - 50px)"
  530. >
  531. <video-player
  532. class="video-player vjs-custom-skin"
  533. :class="contentDialog == false ? 'isAllWidth' : ''"
  534. :playsinline="true"
  535. :options="playerO[taskCount]"
  536. @play="onPlayerPlay($event)"
  537. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  538. ></video-player>
  539. </div>
  540. </div>
  541. <div
  542. class="wheel"
  543. v-if="showType == 1"
  544. style="
  545. box-shadow: 0 0 6px 1px #f2f2f2;
  546. width: 95%;
  547. margin: 0 auto;
  548. background: #f1f1f1;
  549. "
  550. >
  551. <div class="title">查看文档</div>
  552. <el-form class="textBox">
  553. <el-form-item class="textTitle">
  554. <div style="font-size: 22px">
  555. {{ text.name }}
  556. </div>
  557. </el-form-item>
  558. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  559. <div v-html="text.url" class="textContent cont"></div>
  560. </el-form>
  561. </div>
  562. <div
  563. class="wheel"
  564. v-if="
  565. pptImgUrl1.indexOf(
  566. 'https://view.officeapps.live.com/op/view.aspx?src='
  567. ) != -1 && showType == 2
  568. "
  569. style="width: 95%; margin: 0 auto"
  570. >
  571. <iframe
  572. style="width: 100%; height: 100%; border: none"
  573. :src="pptImgUrl1"
  574. ></iframe>
  575. </div>
  576. <div
  577. class="wheel"
  578. v-else-if="showType == 2"
  579. style="width: 95%; margin: 0 auto"
  580. >
  581. <iframe
  582. style="width: 100%; height: 100%; border: none"
  583. security="restricted"
  584. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  585. :src="pptImgUrl1"
  586. ></iframe>
  587. </div>
  588. <div
  589. class="wheel"
  590. v-if="showType == 3"
  591. style="width: 95%; margin: 0 auto"
  592. >
  593. <pdf
  594. :pdfUrl="pptImgUrl1"
  595. style="width: 100%; height: 100%; overflow: auto"
  596. ></pdf>
  597. </div>
  598. <div
  599. class="wheel"
  600. v-if="showType == 4"
  601. style="width: 95%; margin: 0 auto"
  602. >
  603. <el-image
  604. :src="pptImgUrl1"
  605. fit="contain"
  606. style="width: 100%; height: 100%; cursor: pointer"
  607. @click="previewImg(pptImgUrl1)"
  608. ></el-image>
  609. </div>
  610. </div>
  611. <div
  612. class="pButton"
  613. style="position: absolute; right: 20px; top: 0; z-index: 998"
  614. v-if="!contentDialog"
  615. @click="setContent(true)"
  616. >
  617. <!-- 批 -->
  618. <img
  619. src="../assets/icon/newIcons/isLeft.png"
  620. style="width: 45px"
  621. alt=""
  622. />
  623. </div>
  624. <div
  625. v-if="contentDialog == true"
  626. :style="{
  627. width:
  628. (vChapterData[taskCount].length > 0 ||
  629. fileC[taskCount].length > 0) &&
  630. showType === ''
  631. ? 'calc(100%)'
  632. : '300px',
  633. margin:
  634. (vChapterData[taskCount].length > 0 ||
  635. fileC[taskCount].length > 0) &&
  636. showType === ''
  637. ? '0 15px'
  638. : '0 15px 0 0',
  639. }"
  640. >
  641. <div
  642. class="vedioList"
  643. v-if="
  644. vChapterData[taskCount].length > 0 ||
  645. fileC[taskCount].length > 0
  646. "
  647. style="height: 650px"
  648. >
  649. <div class="navCorOpenBox">
  650. <div class="navTitile">内容列表:</div>
  651. <div class="navCorOpen" @click="setContent(false)">
  652. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  653. </div>
  654. </div>
  655. <div class="navBox">
  656. <div
  657. v-show="
  658. vChapterData[taskCount].length > 0 ||
  659. fileC[taskCount].length > 0
  660. "
  661. style="padding: 10px 0 25px 0"
  662. >
  663. <div
  664. class="vedioTimeBox"
  665. v-for="(vitem, vindex) in vChapterData[taskCount]"
  666. :key="vindex + '1'"
  667. >
  668. <div class="navListItem" v-if="vitem.type == 2">
  669. <div
  670. @click="lookVedio(vitem.url, vindex)"
  671. class="navText"
  672. :class="isClickNav == vindex ? 'isClickNav' : ''"
  673. >
  674. <span v-if="vitem.text">{{ vitem.text }}-</span
  675. >{{ vitem.name }}
  676. </div>
  677. <div class="downIcon" @click="downloadFile2(vitem)">
  678. <img src="../assets/icon/newIcon/down.png" alt />
  679. </div>
  680. </div>
  681. <div class="navListItem" v-if="vitem.type == 6">
  682. <div
  683. @click="lookText(taskCount, vindex)"
  684. class="navText"
  685. :class="isClickNav == vindex ? 'isClickNav' : ''"
  686. >
  687. {{ vitem.name }}.doc
  688. </div>
  689. <div
  690. class="downIcon"
  691. @click="checkFileFull1(vitem.type, vitem)"
  692. >
  693. <img
  694. src="../assets/icon/newIcon/allScreen.png"
  695. alt
  696. />
  697. </div>
  698. </div>
  699. <div
  700. class="navListItem"
  701. v-if="vitem.type == 8 || vitem.type == 14"
  702. >
  703. <div
  704. @click="doUrl(vitem.url, vindex)"
  705. class="navText"
  706. :class="isClickNav == vindex ? 'isClickNav' : ''"
  707. >
  708. {{ vitem.title ? vitem.title : vitem.url }}
  709. </div>
  710. <div
  711. class="downIcon"
  712. @click="checkFileFull1(vitem.type, vitem)"
  713. >
  714. <img
  715. src="../assets/icon/newIcon/allScreen.png"
  716. alt
  717. />
  718. </div>
  719. </div>
  720. <div class="navListItem" v-if="vitem.type == 3">
  721. <div
  722. @click="downFile(vitem, vindex)"
  723. class="navText"
  724. :class="isClickNav == vindex ? 'isClickNav' : ''"
  725. >
  726. <span v-if="vitem.text">{{ vitem.text }}-</span
  727. >{{ vitem.name }}
  728. </div>
  729. <div
  730. class="downIcon"
  731. @click="checkFileFull1(vitem.type, vitem)"
  732. >
  733. <img
  734. src="../assets/icon/newIcon/allScreen.png"
  735. alt
  736. />
  737. </div>
  738. <div class="downIcon" @click="downloadFile2(vitem)">
  739. <img src="../assets/icon/newIcon/down.png" alt />
  740. </div>
  741. </div>
  742. <div class="navListItem" v-if="vitem.type == 12">
  743. <div class="navText" @click="downloadFile2(vitem)">
  744. <span v-if="vitem.text">{{ vitem.text }}-</span
  745. >{{ vitem.name }}
  746. </div>
  747. <div
  748. class="downIcon"
  749. @click="checkFileFull1(vitem.type, vitem)"
  750. >
  751. <img
  752. src="../assets/icon/newIcon/allScreen.png"
  753. alt
  754. />
  755. </div>
  756. <div class="downIcon" @click="downloadFile2(vitem)">
  757. <img src="../assets/icon/newIcon/down.png" alt />
  758. </div>
  759. </div>
  760. <div class="navListItem" v-if="vitem.type == 13">
  761. <div
  762. class="navText"
  763. @click="checkPhoto(vitem, vindex)"
  764. :class="isClickNav == vindex ? 'isClickNav' : ''"
  765. >
  766. {{ vitem.name }}
  767. </div>
  768. <div class="downIcon" @click="downloadFile2(vitem)">
  769. <img src="../assets/icon/newIcon/down.png" alt />
  770. </div>
  771. </div>
  772. </div>
  773. <div
  774. class="fileC_box"
  775. v-if="fileC[taskCount].length > 0"
  776. >
  777. <div class="fileC_title">以下文件不支持预览</div>
  778. <div
  779. class="vedioTimeBox"
  780. v-for="(vitem, vindex) in fileC[taskCount]"
  781. :key="vindex + '1'"
  782. >
  783. <div class="navListItem" v-if="vitem.type == 12">
  784. <div class="navText" style="color: #acb4bf">
  785. <span v-if="vitem.text">{{ vitem.text }}-</span
  786. >{{ vitem.name }}
  787. </div>
  788. <div
  789. class="downIcon"
  790. @click="downloadFile2(vitem)"
  791. >
  792. <img
  793. src="../assets/icon/newIcon/down.png"
  794. alt
  795. />
  796. </div>
  797. </div>
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. </div>
  804. </div>
  805. <div style="width: calc(100% - 315px)">
  806. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  807. <!-- <el-button
  808. type="primary"
  809. class="newButton"
  810. @click="checkFileFull(showType, pptImgUrl1)"
  811. >全屏查看</el-button
  812. >
  813. <el-button
  814. type="primary"
  815. class="newButton"
  816. @click="downloadFile(pptImgUrl1)"
  817. v-if="showType != 2"
  818. >文件下载</el-button
  819. > -->
  820. <el-button
  821. class="newButton"
  822. v-if="
  823. showType == 2 &&
  824. pptImgUrl1.indexOf(
  825. 'https://view.officeapps.live.com/op/view.aspx?src='
  826. ) == -1
  827. "
  828. type="primary"
  829. @click="openLine(pptImgUrl1)"
  830. >打开链接
  831. </el-button>
  832. </div>
  833. <!-- <div
  834. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  835. v-if="showType == 1"
  836. >
  837. <el-button
  838. type="primary"
  839. class="newButton"
  840. @click="checkFileFull(showType, text)"
  841. >全屏查看</el-button
  842. >
  843. </div> -->
  844. </div>
  845. </div>
  846. </div>
  847. <div class="student_body" v-resize="resize">
  848. <div
  849. class="vedioBox"
  850. :style="{
  851. borderRadius:
  852. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  853. .taskDetail == '' &&
  854. vChapterData[taskCount].length == 0 &&
  855. fileC[taskCount].length == 0
  856. ? '0 0 20px 20px'
  857. : '20px',
  858. }"
  859. v-if="
  860. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  861. .toolChoose[0].tool &&
  862. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  863. .toolChoose[0].tool.length > 0
  864. "
  865. >
  866. <div
  867. class="toolHeng2"
  868. style="position: relative"
  869. v-if="
  870. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  871. .toolChoose[0].tool &&
  872. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  873. .toolChoose[0].tool.length &&
  874. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  875. .toolChoose[0].tool.length > 0
  876. "
  877. >
  878. <div class="workNav">工作区</div>
  879. <div
  880. class="filebox"
  881. style="flex-wrap: nowrap"
  882. v-for="(tool, toolIndex) in chapInfoList[courseType]
  883. .chapterInfo[0].taskJson[taskCount].toolChoose"
  884. :key="toolIndex"
  885. >
  886. <div class="bzBox">
  887. <div class="yCss"></div>
  888. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  889. 工具{{ toolIndex + 1 }}
  890. </div>
  891. <div
  892. v-if="timeWorkList[toolIndex].length > 0"
  893. style="margin: 0 0 0 10px"
  894. >
  895. {{
  896. timeWorkList[toolIndex][0].time
  897. ? "时间:" + timeWorkList[toolIndex][0].time
  898. : ""
  899. }}
  900. </div>
  901. </div>
  902. <div class="toolBox">
  903. <div>
  904. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  905. :key="indexTool"-->
  906. <!-- <div class="iframeBox">
  907. <div
  908. class="addPoint isBorder"
  909. v-for="(tooC, toolCIndex) in tool.tool"
  910. :key="toolCIndex"
  911. >
  912. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  913. <div
  914. class="iframeName"
  915. >
  916. 电子白板
  917. </div>
  918. <iframe
  919. src="https://iwb.cocorobo.cn/"
  920. ref="whiteBoard"
  921. ></iframe>
  922. </div>
  923. </div>
  924. </div>-->
  925. <div class="noiframeBox">
  926. <div
  927. class="addPoint"
  928. v-for="(tooC, toolCIndex) in tool.tool"
  929. :key="toolCIndex"
  930. >
  931. <div v-if="tooC == 1">
  932. <img
  933. src="../assets/icon/secondToolList/whiteBoard.png"
  934. alt
  935. @click="addTools(tooC, toolIndex, taskCount)"
  936. />
  937. <div style="margin: 5px 0">电子白板</div>
  938. </div>
  939. <div v-if="tooC == 3">
  940. <img
  941. src="../assets/icon/secondToolList/mindMapping.png"
  942. alt
  943. @click="addTools(tooC, toolIndex, taskCount)"
  944. />
  945. <div style="margin: 5px 0">思维导图</div>
  946. </div>
  947. <div v-if="tooC == 6">
  948. <img
  949. src="../assets/icon/secondToolList/doc.png"
  950. alt
  951. @click="addTools(tooC, toolIndex, taskCount)"
  952. />
  953. <div style="margin: 5px 0">协同文档</div>
  954. </div>
  955. <div v-if="tooC == 7">
  956. <img
  957. src="../assets/icon/secondToolList/mindNetwork.png"
  958. alt
  959. @click="addTools(tooC, toolIndex, taskCount)"
  960. />
  961. <div style="margin: 5px 0">思维网格</div>
  962. </div>
  963. <div v-if="tooC == 8">
  964. <img
  965. src="../assets/icon/secondToolList/library.png"
  966. alt
  967. @click="addTools(tooC, toolIndex, taskCount)"
  968. />
  969. <div style="margin: 5px 0">素材库</div>
  970. </div>
  971. <div v-if="tooC == 17">
  972. <img
  973. src="../assets/icon/secondToolList/library.png"
  974. alt
  975. @click="addTools(tooC, toolIndex, taskCount)"
  976. />
  977. <div style="margin: 5px 0">学习资料</div>
  978. </div>
  979. <div v-if="tooC == 2">
  980. <img
  981. @click="addTools(tooC, toolIndex, taskCount)"
  982. src="../assets/icon/secondToolList/note.png"
  983. alt
  984. />
  985. <div style="margin: 5px 0">便签</div>
  986. </div>
  987. <div v-if="tooC == 4">
  988. <img
  989. @click="addTools(tooC, toolIndex, taskCount)"
  990. src="../assets/icon/thirdToolList/ask.png"
  991. alt
  992. />
  993. <div style="margin: 5px 0">问卷调查</div>
  994. </div>
  995. <div v-if="tooC == 45">
  996. <img
  997. @click="addTools(tooC, toolIndex, taskCount)"
  998. src="../assets/icon/thirdToolList/choose.png"
  999. alt
  1000. />
  1001. <div style="margin: 5px 0">选择题</div>
  1002. </div>
  1003. <!-- <div v-if="tooC == 5">
  1004. <img
  1005. @click="addTools(tooC, toolIndex, taskCount)"
  1006. src="../assets/icon/thirdToolList/score.png"
  1007. alt
  1008. />
  1009. <div style="margin: 5px 0">量规评分</div>
  1010. </div> -->
  1011. <div v-if="tooC == 10">
  1012. <img
  1013. @click="addTools(tooC, toolIndex, taskCount)"
  1014. src="../assets/icon/thirdToolList/time.png"
  1015. alt
  1016. />
  1017. <div style="margin: 5px 0">倒计时</div>
  1018. </div>
  1019. <div v-if="tooC == 15">
  1020. <img
  1021. @click="addTools(tooC, toolIndex, taskCount)"
  1022. src="../assets/icon/thirdToolList/answer.png"
  1023. alt
  1024. />
  1025. <div style="margin: 5px 0">问答</div>
  1026. </div>
  1027. <div v-if="tooC == 26">
  1028. <img
  1029. @click="addTools(tooC, toolIndex, taskCount)"
  1030. src="../assets/icon/thirdToolList/courseDesign.png"
  1031. alt
  1032. />
  1033. <div style="margin: 5px 0">课程设计</div>
  1034. </div>
  1035. <div v-if="tooC == 18">
  1036. <img
  1037. @click="addTools(tooC, toolIndex, taskCount)"
  1038. src="../assets/icon/thirdToolList/trainPlatform.png"
  1039. alt
  1040. />
  1041. <div style="margin: 5px 0">训练服务器</div>
  1042. </div>
  1043. <div v-if="tooC == 16">
  1044. <img
  1045. @click="addTools(tooC, toolIndex, taskCount)"
  1046. src="../assets/icon/thirdToolList/work.png"
  1047. alt
  1048. />
  1049. <div style="margin: 5px 0">作业提交</div>
  1050. </div>
  1051. <div v-if="tooC == 50">
  1052. <img
  1053. @click="addTools(tooC, toolIndex, taskCount)"
  1054. src="../assets/icon/thirdToolList/plwork.png"
  1055. alt
  1056. />
  1057. <div style="margin: 5px 0">批量上传</div>
  1058. </div>
  1059. <div v-if="tooC == 21">
  1060. <img
  1061. @click="addTools(tooC, toolIndex, taskCount)"
  1062. src="../assets/icon/fourthToolList/program.png"
  1063. alt
  1064. />
  1065. <div style="margin: 5px 0">AIoT Blockly</div>
  1066. </div>
  1067. <!-- <div v-if="tooC == 22">
  1068. <img
  1069. @click="addTools(tooC, toolIndex, taskCount)"
  1070. src="../assets/icon/fourthToolList/program.png"
  1071. alt
  1072. />
  1073. <div style="margin: 5px 0">AI体验</div>
  1074. </div> -->
  1075. <div v-if="tooC == 23">
  1076. <img
  1077. @click="addTools(tooC, toolIndex, taskCount)"
  1078. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1079. alt
  1080. />
  1081. <div style="margin: 5px 0">AI Python</div>
  1082. </div>
  1083. <div v-if="tooC == 24">
  1084. <img
  1085. @click="addTools(tooC, toolIndex, taskCount)"
  1086. src="../assets/icon/fourthToolList/AIprogram.png"
  1087. alt
  1088. />
  1089. <div style="margin: 5px 0">AI Blockly</div>
  1090. </div>
  1091. <div v-if="tooC == 25">
  1092. <img
  1093. @click="addTools(tooC, toolIndex, taskCount)"
  1094. src="../assets/icon/thirdToolList/evalua.png"
  1095. alt
  1096. />
  1097. <div style="margin: 5px 0">目标管理</div>
  1098. </div>
  1099. <div v-if="tooC == 31">
  1100. <img
  1101. @click="addTools(tooC, toolIndex, taskCount)"
  1102. src="../assets/icon/secondToolList/networkPanel.png"
  1103. alt
  1104. />
  1105. <div style="margin: 5px 0">数学画板</div>
  1106. </div>
  1107. <div v-if="tooC == 28">
  1108. <img
  1109. @click="addTools(tooC, toolIndex, taskCount)"
  1110. src="../assets/icon/secondToolList/translation.png"
  1111. alt
  1112. />
  1113. <div style="margin: 5px 0">翻译</div>
  1114. </div>
  1115. <div v-if="tooC == 37">
  1116. <img
  1117. @click="addTools(tooC, toolIndex, taskCount)"
  1118. src="../assets/icon/secondToolList/mohe.png"
  1119. alt
  1120. />
  1121. <div style="margin: 5px 0">魔盒识字</div>
  1122. </div>
  1123. <div v-if="tooC == 38">
  1124. <img
  1125. @click="addTools(tooC, toolIndex, taskCount)"
  1126. src="../assets/icon/secondToolList/24game.png"
  1127. alt
  1128. />
  1129. <div style="margin: 5px 0">24点</div>
  1130. </div>
  1131. <div v-if="tooC == 39">
  1132. <img
  1133. @click="addTools(tooC, toolIndex, taskCount)"
  1134. src="../assets/icon/secondToolList/GeoGebra.png"
  1135. alt
  1136. />
  1137. <div style="margin: 5px 0">GeoGebra</div>
  1138. </div>
  1139. <div v-if="tooC == 32">
  1140. <img
  1141. @click="addTools(tooC, toolIndex, taskCount)"
  1142. src="../assets/icon/thirdToolList/code.png"
  1143. alt
  1144. />
  1145. <div style="margin: 5px 0">源码编辑</div>
  1146. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1147. style="position: absolute;left: 110px;bottom: 30px;">
  1148. 上传文件
  1149. <input type="file" accept="*" style="display: none"
  1150. @change="beforeUpload1($event, 7, toolIndex)" />
  1151. </div> -->
  1152. </div>
  1153. <div v-if="tooC == 40">
  1154. <img
  1155. @click="addTools(tooC, toolIndex, taskCount)"
  1156. src="../assets/icon/secondToolList/eval.png"
  1157. alt
  1158. />
  1159. <div style="margin: 5px 0">个人评价</div>
  1160. </div>
  1161. <div v-if="tooC == 41">
  1162. <img
  1163. @click="addTools(tooC, toolIndex, taskCount)"
  1164. src="../assets/icon/thirdToolList/select.png"
  1165. alt
  1166. />
  1167. <div style="margin: 5px 0">选择匹配</div>
  1168. </div>
  1169. <div v-if="tooC == 44">
  1170. <img
  1171. @click="addTools(tooC, toolIndex, taskCount)"
  1172. src="../assets/icon/thirdToolList/hanClass.png"
  1173. alt
  1174. />
  1175. <div style="margin: 5px 0">汉字宫</div>
  1176. </div>
  1177. <div v-if="tooC == 47">
  1178. <img
  1179. @click="addTools(tooC, toolIndex, taskCount)"
  1180. src="../assets/icon/fourthToolList/conSentences.png"
  1181. alt
  1182. />
  1183. <div style="margin: 5px 0">排序</div>
  1184. </div>
  1185. <div v-if="tooC == 48">
  1186. <img
  1187. @click="addTools(tooC, toolIndex, taskCount)"
  1188. src="../assets/icon/fourthToolList/table.png"
  1189. alt
  1190. />
  1191. <div style="margin: 5px 0">表格</div>
  1192. </div>
  1193. <div v-if="tooC == 52">
  1194. <img
  1195. @click="addTools(tooC, toolIndex, taskCount)"
  1196. src="../assets/icon/fourthToolList/text.png"
  1197. alt
  1198. />
  1199. <div style="margin: 5px 0">文档</div>
  1200. </div>
  1201. <div v-if="tooC == 49">
  1202. <img
  1203. @click="addTools(tooC, toolIndex, taskCount)"
  1204. src="../assets/icon/fourthToolList/group.png"
  1205. alt
  1206. />
  1207. <div style="margin: 5px 0">学生分组</div>
  1208. </div>
  1209. <div v-if="tooC == 57">
  1210. <img
  1211. @click="addTools(tooC, toolIndex, taskCount)"
  1212. src="../assets/icon/fourthToolList/cocopi.png"
  1213. alt
  1214. />
  1215. <div style="margin: 5px 0">CocoPi</div>
  1216. </div>
  1217. <div v-if="tooC == 58">
  1218. <img
  1219. @click="addTools(tooC, toolIndex, taskCount)"
  1220. src="../assets/icon/fourthToolList/car.png"
  1221. alt
  1222. />
  1223. <div style="margin: 5px 0">模拟驾驶</div>
  1224. </div>
  1225. <div v-if="tooC == 59">
  1226. <img
  1227. @click="addTools(tooC, toolIndex, taskCount)"
  1228. src="../assets/icon/fourthToolList/lineSearch.png"
  1229. alt
  1230. />
  1231. <div style="margin: 5px 0">路径搜索</div>
  1232. </div>
  1233. <div v-if="tooC == 60">
  1234. <img
  1235. @click="addTools(tooC, toolIndex, taskCount)"
  1236. src="../assets/icon/fourthToolList/deepLearning.png"
  1237. alt
  1238. />
  1239. <div style="margin: 5px 0">深度学习</div>
  1240. </div>
  1241. <div v-if="tooC == 61">
  1242. <img
  1243. @click="addTools(tooC, toolIndex, taskCount)"
  1244. src="../assets/icon/fourthToolList/allHistory.png"
  1245. alt
  1246. />
  1247. <div style="margin: 5px 0">全历史</div>
  1248. </div>
  1249. <div v-if="tooC == 62">
  1250. <img
  1251. @click="addTools(tooC, toolIndex, taskCount)"
  1252. src="../assets/icon/fourthToolList/interVideo.png"
  1253. alt
  1254. />
  1255. <div style="margin: 5px 0">交互视频</div>
  1256. </div>
  1257. <div v-if="tooC == 63">
  1258. <img
  1259. @click="addTools(tooC, toolIndex, taskCount)"
  1260. src="../assets/icon/fourthToolList/Wood.png"
  1261. alt
  1262. />
  1263. <div style="margin: 5px 0">海龟编程</div>
  1264. </div>
  1265. <div v-if="tooC == 71">
  1266. <img
  1267. @click="addTools(tooC, toolIndex, taskCount)"
  1268. src="../assets/icon/fourthToolList/chatgpt.png"
  1269. alt
  1270. />
  1271. <div style="margin: 5px 0">AI智能体</div>
  1272. </div>
  1273. <div v-if="tooC == 65">
  1274. <img
  1275. @click="addTools(tooC, toolIndex, taskCount)"
  1276. src="../assets/icon/firstToolList/pickPeople.png"
  1277. alt
  1278. />
  1279. <div style="margin: 5px 0">挑人</div>
  1280. </div>
  1281. <div v-if="tooC == 66">
  1282. <img
  1283. @click="addTools(tooC, toolIndex, taskCount)"
  1284. src="../assets/icon/secondToolList/formulaEdi.png"
  1285. alt
  1286. />
  1287. <div style="margin: 5px 0">公式编辑</div>
  1288. </div>
  1289. <div v-if="tooC == 67">
  1290. <img
  1291. @click="addTools(tooC, toolIndex, taskCount)"
  1292. src="../assets/icon/secondToolList/molStr.png"
  1293. alt
  1294. />
  1295. <div style="margin: 5px 0">分子结构</div>
  1296. </div>
  1297. <div v-if="tooC == 68">
  1298. <img
  1299. @click="addTools(tooC, toolIndex, taskCount)"
  1300. src="../assets/icon/secondToolList/timeAxis.png"
  1301. alt
  1302. />
  1303. <div style="margin: 5px 0">时间轴</div>
  1304. </div>
  1305. <div v-if="tooC == 69">
  1306. <img
  1307. @click="addTools(tooC, toolIndex, taskCount)"
  1308. src="../assets/icon/secondToolList/english.png"
  1309. alt
  1310. />
  1311. <div style="margin: 5px 0">英语写作</div>
  1312. </div>
  1313. <div v-if="tooC == 70">
  1314. <img
  1315. @click="addTools(tooC, toolIndex, taskCount)"
  1316. src="../assets/icon/thirdToolList/englishVoice.png"
  1317. alt
  1318. />
  1319. <div style="margin: 5px 0">英语口语</div>
  1320. </div>
  1321. </div>
  1322. </div>
  1323. </div>
  1324. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1325. <!-- <div class="toolTitle">工具描述</div> -->
  1326. <div style="height:100%;"
  1327. v-html="contentConvent(tool.toolDetail)"
  1328. v-if="toolDetailIndex != toolIndex"
  1329. @click.stop="updateToolDetail(toolIndex, 2)"
  1330. ></div>
  1331. <div v-else @click.stop="" style="height:100%;">
  1332. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1333. </div>
  1334. </div>
  1335. <el-button
  1336. type="primary"
  1337. v-if="tool.tool[0] == 32"
  1338. style="position: absolute; right: 30px; top: 30px"
  1339. @click="addImg($event)"
  1340. >上传作业<input
  1341. type="file"
  1342. accept="*"
  1343. style="display: none"
  1344. @change="beforeUpload1($event, 7, toolIndex)"
  1345. /></el-button>
  1346. <el-button
  1347. type="primary"
  1348. v-if="tool.tool[0] == 15"
  1349. style="position: absolute; right: 30px; top: 30px"
  1350. @click="openWordCloud(toolIndex)"
  1351. >生成词云</el-button
  1352. >
  1353. <el-button
  1354. type="primary"
  1355. v-if="
  1356. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1357. "
  1358. style="position: absolute; right: 30px; top: 30px"
  1359. @click="uploadWorks(toolIndex)"
  1360. >导出作业</el-button
  1361. >
  1362. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1363. position: absolute;
  1364. right: 30px;
  1365. transform: translateY(-130%);
  1366. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1367. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1368. </div>
  1369. <div
  1370. v-if="
  1371. tType &&
  1372. tType == 2 &&
  1373. !sIsOpen &&
  1374. tool.tool.indexOf(16) != -1
  1375. "
  1376. class="worksBox"
  1377. >
  1378. <div
  1379. class="zuoyeYulan"
  1380. v-if="workStudent[toolIndex].length > 0"
  1381. >
  1382. <span class="worksTitle">作业预览</span>
  1383. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1384. </div>
  1385. <div
  1386. class="worksDetailBox"
  1387. v-if="workStudent[toolIndex].length > 0"
  1388. >
  1389. <div
  1390. class="works"
  1391. style="
  1392. width: 200px;
  1393. height: 140px;
  1394. margin: 10px 10px 10px 0;
  1395. box-shadow: 0 0 6px 1px #dfdada;
  1396. "
  1397. v-for="(w, wIndex) in workStudent[toolIndex]"
  1398. :key="wIndex"
  1399. >
  1400. <div class="workImg" v-if="w.type == 0">
  1401. <img
  1402. :src="w.works"
  1403. @click="previewImg(w.works)"
  1404. alt
  1405. />
  1406. <div
  1407. class="answerScore"
  1408. v-if="w.score"
  1409. @click.stop="openScore(w)"
  1410. :class="{
  1411. rightW:
  1412. w.userid == userid || tType == 1 || tType == 4,
  1413. }"
  1414. >
  1415. {{ JSON.parse(w.score).wScore }}分
  1416. </div>
  1417. <div
  1418. class="answerScore"
  1419. @click.stop="openScore(w)"
  1420. v-else-if="courseDetail.userid == userid"
  1421. :class="{
  1422. rightW:
  1423. w.userid == userid || tType == 1 || tType == 4,
  1424. }"
  1425. >
  1426. 评分
  1427. </div>
  1428. <img
  1429. class="deleteImg"
  1430. src="../assets/deleteworks.png"
  1431. v-if="
  1432. w.userid == userid || tType == 1 || tType == 4
  1433. "
  1434. @click.stop="deleteWorks(w.wid)"
  1435. alt
  1436. />
  1437. </div>
  1438. <div class="workImg" v-if="w.type == 1">
  1439. <img :src="word" @click="openFile(w.works)" alt />
  1440. <div
  1441. class="answerScore"
  1442. v-if="w.score"
  1443. @click.stop="openScore(w)"
  1444. :class="{
  1445. rightW:
  1446. w.userid == userid || tType == 1 || tType == 4,
  1447. }"
  1448. >
  1449. {{ JSON.parse(w.score).wScore }}分
  1450. </div>
  1451. <div
  1452. class="answerScore"
  1453. @click.stop="openScore(w)"
  1454. v-else-if="courseDetail.userid == userid"
  1455. :class="{
  1456. rightW:
  1457. w.userid == userid || tType == 1 || tType == 4,
  1458. }"
  1459. >
  1460. 评分
  1461. </div>
  1462. <img
  1463. class="deleteImg"
  1464. src="../assets/deleteworks.png"
  1465. v-if="
  1466. w.userid == userid || tType == 1 || tType == 4
  1467. "
  1468. @click.stop="deleteWorks(w.wid)"
  1469. alt
  1470. />
  1471. </div>
  1472. <div class="workImg" v-if="w.type == 3">
  1473. <img
  1474. style="cursor: pointer"
  1475. :src="video"
  1476. @click="openVideo(w)"
  1477. alt
  1478. />
  1479. <div
  1480. class="answerScore"
  1481. v-if="w.score"
  1482. @click.stop="openScore(w)"
  1483. :class="{
  1484. rightW:
  1485. w.userid == userid || tType == 1 || tType == 4,
  1486. }"
  1487. >
  1488. {{ JSON.parse(w.score).wScore }}分
  1489. </div>
  1490. <div
  1491. class="answerScore"
  1492. @click.stop="openScore(w)"
  1493. v-else-if="courseDetail.userid == userid"
  1494. :class="{
  1495. rightW:
  1496. w.userid == userid || tType == 1 || tType == 4,
  1497. }"
  1498. >
  1499. 评分
  1500. </div>
  1501. <img
  1502. class="deleteImg"
  1503. src="../assets/deleteworks.png"
  1504. v-if="
  1505. w.userid == userid || tType == 1 || tType == 4
  1506. "
  1507. @click.stop="deleteWorks(w.wid)"
  1508. alt
  1509. />
  1510. </div>
  1511. <div class="workImg" v-if="w.type == 12">
  1512. <img
  1513. style="cursor: pointer"
  1514. :src="word2"
  1515. @click="downloadFile(w.works)"
  1516. alt
  1517. />
  1518. <div
  1519. class="answerScore"
  1520. v-if="w.score"
  1521. @click.stop="openScore(w)"
  1522. :class="{
  1523. rightW:
  1524. w.userid == userid || tType == 1 || tType == 4,
  1525. }"
  1526. >
  1527. {{ JSON.parse(w.score).wScore }}分
  1528. </div>
  1529. <div
  1530. class="answerScore"
  1531. @click.stop="openScore(w)"
  1532. v-else-if="courseDetail.userid == userid"
  1533. :class="{
  1534. rightW:
  1535. w.userid == userid || tType == 1 || tType == 4,
  1536. }"
  1537. >
  1538. 评分
  1539. </div>
  1540. <img
  1541. class="deleteImg"
  1542. src="../assets/deleteworks.png"
  1543. v-if="
  1544. w.userid == userid || tType == 1 || tType == 4
  1545. "
  1546. @click.stop="deleteWorks(w.wid)"
  1547. alt
  1548. />
  1549. </div>
  1550. <div class="worksName">
  1551. <div>{{ w.sName }}</div>
  1552. </div>
  1553. </div>
  1554. </div>
  1555. </div>
  1556. <div
  1557. v-if="
  1558. tType &&
  1559. tType == 2 &&
  1560. !sIsOpen &&
  1561. tool.tool.indexOf(32) != -1
  1562. "
  1563. class="worksBox"
  1564. >
  1565. <div
  1566. class="zuoyeYulan"
  1567. v-if="workStudent[toolIndex].length > 0"
  1568. >
  1569. <span class="worksTitle">作业预览</span>
  1570. </div>
  1571. <div
  1572. class="worksDetailBox"
  1573. v-if="workStudent[toolIndex].length > 0"
  1574. >
  1575. <div
  1576. class="works"
  1577. style="
  1578. width: 200px;
  1579. height: 140px;
  1580. margin: 10px 10px 10px 0;
  1581. box-shadow: 0 0 6px 1px #dfdada;
  1582. "
  1583. v-for="(w, wIndex) in workStudent[toolIndex]"
  1584. :key="wIndex"
  1585. >
  1586. <div class="workImg">
  1587. <img
  1588. :src="word2"
  1589. @click="downloadFile(w.works)"
  1590. alt
  1591. />
  1592. <div
  1593. class="answerScore"
  1594. v-if="w.score"
  1595. @click.stop="openScore(w)"
  1596. :class="{
  1597. rightW:
  1598. w.userid == userid || tType == 1 || tType == 4,
  1599. }"
  1600. >
  1601. {{ JSON.parse(w.score).wScore }}分
  1602. </div>
  1603. <div
  1604. class="answerScore"
  1605. @click.stop="openScore(w)"
  1606. v-else-if="courseDetail.userid == userid"
  1607. :class="{
  1608. rightW:
  1609. w.userid == userid || tType == 1 || tType == 4,
  1610. }"
  1611. >
  1612. 评分
  1613. </div>
  1614. <img
  1615. class="deleteImg"
  1616. src="../assets/deleteworks.png"
  1617. v-if="
  1618. w.userid == userid || tType == 1 || tType == 4
  1619. "
  1620. @click.stop="deleteWorks(w.wid)"
  1621. alt
  1622. />
  1623. </div>
  1624. <div class="worksName">
  1625. <div>{{ w.sName }}</div>
  1626. </div>
  1627. </div>
  1628. </div>
  1629. </div>
  1630. <div
  1631. v-if="
  1632. tType &&
  1633. tType == 2 &&
  1634. !sIsOpen &&
  1635. tool.tool.indexOf(57) != -1
  1636. "
  1637. class="worksBox"
  1638. >
  1639. <div
  1640. class="zuoyeYulan"
  1641. v-if="workStudent[toolIndex].length > 0"
  1642. >
  1643. <span class="worksTitle">作业预览</span>
  1644. </div>
  1645. <div
  1646. class="worksDetailBox"
  1647. v-if="workStudent[toolIndex].length > 0"
  1648. >
  1649. <div
  1650. class="works"
  1651. style="
  1652. width: 200px;
  1653. height: 140px;
  1654. margin: 10px 10px 10px 0;
  1655. box-shadow: 0 0 6px 1px #dfdada;
  1656. "
  1657. v-for="(w, wIndex) in workStudent[toolIndex]"
  1658. :key="wIndex"
  1659. >
  1660. <div class="workImg">
  1661. <img
  1662. :src="word2"
  1663. @click="downloadFile(w.works)"
  1664. v-if="w.type == 12"
  1665. alt
  1666. />
  1667. <img
  1668. :src="word2"
  1669. @click="
  1670. openCocoPi(57, toolIndex, w.userid, w.sName)
  1671. "
  1672. v-else-if="w.type == 15"
  1673. alt
  1674. />
  1675. <div
  1676. class="answerScore"
  1677. v-if="w.score"
  1678. @click.stop="openScore(w)"
  1679. :class="{
  1680. rightW:
  1681. w.userid == userid || tType == 1 || tType == 4,
  1682. }"
  1683. >
  1684. {{ JSON.parse(w.score).wScore }}分
  1685. </div>
  1686. <div
  1687. class="answerScore"
  1688. @click.stop="openScore(w)"
  1689. v-else-if="courseDetail.userid == userid"
  1690. :class="{
  1691. rightW:
  1692. w.userid == userid || tType == 1 || tType == 4,
  1693. }"
  1694. >
  1695. 评分
  1696. </div>
  1697. <img
  1698. class="deleteImg"
  1699. src="../assets/deleteworks.png"
  1700. v-if="
  1701. w.userid == userid || tType == 1 || tType == 4
  1702. "
  1703. @click.stop="deleteWorks(w.wid)"
  1704. alt
  1705. />
  1706. </div>
  1707. <div class="worksName">
  1708. <div>{{ w.sName }}</div>
  1709. </div>
  1710. </div>
  1711. </div>
  1712. </div>
  1713. <div
  1714. v-if="
  1715. tType &&
  1716. tType == 2 &&
  1717. !sIsOpen &&
  1718. tool.tool.indexOf(4) != -1
  1719. "
  1720. class="worksBox"
  1721. >
  1722. <div
  1723. class="zuoyeYulan"
  1724. v-if="workStudent[toolIndex].length > 0"
  1725. >
  1726. <span class="worksTitle">作业预览</span>
  1727. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1728. </div>
  1729. <div
  1730. class="worksDetailBox"
  1731. v-if="workStudent[toolIndex].length > 0"
  1732. >
  1733. <div
  1734. class="isWorksName2"
  1735. v-for="(w, wIndex) in workStudent[toolIndex]"
  1736. :key="wIndex"
  1737. @click="
  1738. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1739. "
  1740. >
  1741. {{ w.sName }}
  1742. <img
  1743. class="deleteImg deleteImg2"
  1744. src="../assets/deleteworks.png"
  1745. v-if="w.userid == userid || tType == 1 || tType == 4"
  1746. @click.stop="deleteWorks(w.wid)"
  1747. alt
  1748. />
  1749. </div>
  1750. <!-- <div
  1751. class="works"
  1752. style="
  1753. width: 200px;
  1754. height: 140px;
  1755. border-radius: 10px;
  1756. box-shadow: 0 0 6px 1px #dfdada;
  1757. overflow: hidden;
  1758. "
  1759. v-for="(w, wIndex) in workStudent[toolIndex]"
  1760. :key="wIndex"
  1761. >
  1762. <div class="workImg">
  1763. <img
  1764. src="../assets/icon/works/noImg.png"
  1765. @click="
  1766. openTools(
  1767. 4,
  1768. toolIndex,
  1769. taskCount,
  1770. w.works,
  1771. w.sName
  1772. )
  1773. "
  1774. alt
  1775. />
  1776. </div>
  1777. <div class="worksName">
  1778. <div>{{ w.sName }}</div>
  1779. <div>{{ w.time }}</div>
  1780. </div>
  1781. </div> -->
  1782. </div>
  1783. </div>
  1784. <div
  1785. v-if="
  1786. tType &&
  1787. ((tType == 2 && sIsOpen == true) ||
  1788. tType == 1 ||
  1789. tType == 4) &&
  1790. tool.tool.indexOf(62) != -1
  1791. "
  1792. class="worksBox"
  1793. >
  1794. <div
  1795. class="zuoyeYulan"
  1796. v-if="
  1797. worksStudent.length &&
  1798. worksStudent[toolIndex].length > 0
  1799. "
  1800. >
  1801. <div class="worksTop">
  1802. <div>作业预览</div>
  1803. <div
  1804. class="corOpen"
  1805. @click="contract(toolIndex)"
  1806. v-if="
  1807. (isCloseList[toolIndex].isCloseBoolean) &&
  1808. isCloseList[toolIndex].isClose == 0
  1809. "
  1810. >
  1811. 折叠
  1812. </div>
  1813. <div
  1814. class="corOpen"
  1815. @click="contract(toolIndex)"
  1816. v-if="isCloseList[toolIndex].isClose == 1"
  1817. >
  1818. 展开
  1819. </div>
  1820. </div>
  1821. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1822. </div>
  1823. <div>
  1824. <div
  1825. :id="'tool-' + toolIndex"
  1826. :style="{
  1827. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1828. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1829. }"
  1830. class="worksDetailBox"
  1831. v-if="
  1832. worksStudent.length &&
  1833. worksStudent[toolIndex].length > 0
  1834. "
  1835. >
  1836. <div
  1837. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1838. :key="wIndex"
  1839. class="isWorksName2"
  1840. @click="
  1841. openTools(
  1842. 62,
  1843. toolIndex,
  1844. taskCount,
  1845. w.works,
  1846. w.sName
  1847. )
  1848. "
  1849. >
  1850. {{ w.sName }}
  1851. <img
  1852. class="deleteImg deleteImg2"
  1853. src="../assets/deleteworks.png"
  1854. v-if="
  1855. w.userid == userid || tType == 1 || tType == 4
  1856. "
  1857. @click.stop="deleteWorks(w.wid)"
  1858. alt
  1859. />
  1860. </div>
  1861. </div>
  1862. </div>
  1863. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1864. 未提交
  1865. </div>
  1866. <div
  1867. class="noWorksS"
  1868. v-if="noWorksS && noWorksS[toolIndex].length"
  1869. >
  1870. <div
  1871. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1872. :key="sIndex"
  1873. class="noWorksName"
  1874. >
  1875. {{ s.student }}
  1876. </div>
  1877. </div>
  1878. </div>
  1879. <div
  1880. v-if="
  1881. tType &&
  1882. tType == 2 &&
  1883. !sIsOpen &&
  1884. tool.tool.indexOf(62) != -1
  1885. "
  1886. class="worksBox"
  1887. >
  1888. <div
  1889. class="zuoyeYulan"
  1890. v-if="workStudent[toolIndex].length > 0"
  1891. >
  1892. <span class="worksTitle">作业预览</span>
  1893. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1894. </div>
  1895. <div
  1896. class="worksDetailBox"
  1897. v-if="workStudent[toolIndex].length > 0"
  1898. >
  1899. <div
  1900. class="isWorksName2"
  1901. v-for="(w, wIndex) in workStudent[toolIndex]"
  1902. :key="wIndex"
  1903. @click="
  1904. openTools(62, toolIndex, taskCount, w.works, w.sName)
  1905. "
  1906. >
  1907. {{ w.sName }}
  1908. <img
  1909. class="deleteImg deleteImg2"
  1910. src="../assets/deleteworks.png"
  1911. v-if="w.userid == userid || tType == 1 || tType == 4"
  1912. @click.stop="deleteWorks(w.wid)"
  1913. alt
  1914. />
  1915. </div>
  1916. </div>
  1917. </div>
  1918. <div
  1919. v-if="
  1920. tType &&
  1921. tType == 2 &&
  1922. !sIsOpen &&
  1923. tool.tool.indexOf(45) != -1
  1924. "
  1925. class="worksBox"
  1926. >
  1927. <div
  1928. class="zuoyeYulan"
  1929. v-if="workStudent[toolIndex].length > 0"
  1930. >
  1931. <span class="worksTitle">作业预览</span>
  1932. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1933. </div>
  1934. <div
  1935. class="worksDetailBox"
  1936. v-if="workStudent[toolIndex].length > 0"
  1937. >
  1938. <div
  1939. class="isWorksName2"
  1940. v-for="(w, wIndex) in workStudent[toolIndex]"
  1941. :key="wIndex"
  1942. @click="
  1943. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1944. "
  1945. >
  1946. {{ w.sName }}
  1947. <img
  1948. class="deleteImg deleteImg2"
  1949. src="../assets/deleteworks.png"
  1950. v-if="w.userid == userid || tType == 1 || tType == 4"
  1951. @click.stop="deleteWorks(w.wid)"
  1952. alt
  1953. />
  1954. </div>
  1955. </div>
  1956. </div>
  1957. <div
  1958. v-if="
  1959. tType &&
  1960. tType == 2 &&
  1961. !sIsOpen &&
  1962. tool.tool.indexOf(69) != -1
  1963. "
  1964. class="worksBox"
  1965. >
  1966. <div
  1967. class="zuoyeYulan"
  1968. v-if="workStudent[toolIndex].length > 0"
  1969. >
  1970. <span class="worksTitle">作业预览</span>
  1971. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1972. </div>
  1973. <div
  1974. class="worksDetailBox"
  1975. v-if="workStudent[toolIndex].length > 0"
  1976. >
  1977. <div
  1978. class="isWorksName2"
  1979. v-for="(w, wIndex) in workStudent[toolIndex]"
  1980. :key="wIndex"
  1981. @click="
  1982. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1983. "
  1984. >
  1985. {{ w.sName }}
  1986. <img
  1987. class="deleteImg deleteImg2"
  1988. src="../assets/deleteworks.png"
  1989. v-if="w.userid == userid || tType == 1 || tType == 4"
  1990. @click.stop="deleteWorks(w.wid)"
  1991. alt
  1992. />
  1993. </div>
  1994. </div>
  1995. </div>
  1996. <div
  1997. v-if="
  1998. tType &&
  1999. tType == 2 &&
  2000. !sIsOpen &&
  2001. tool.tool.indexOf(15) != -1
  2002. "
  2003. class="worksBox"
  2004. >
  2005. <div
  2006. class="zuoyeYulan"
  2007. v-if="workStudent[toolIndex].length > 0"
  2008. >
  2009. <span class="worksTitle">作业预览</span>
  2010. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2011. </div>
  2012. <div
  2013. class="worksDetailBox"
  2014. v-if="workStudent[toolIndex].length > 0"
  2015. >
  2016. <div
  2017. class="works"
  2018. v-for="(w, wIndex) in workStudent[toolIndex]"
  2019. :key="wIndex"
  2020. >
  2021. <div class="workImg">
  2022. <!-- <img
  2023. src="../assets/icon/works/noImg.png"
  2024. @click="openTools(15, toolIndex, taskCount, w.works)"
  2025. alt=""
  2026. />-->
  2027. <div class="answerBg">
  2028. <!-- <div>{{ w.sName }}</div> -->
  2029. <el-tooltip
  2030. class="item"
  2031. effect="light"
  2032. :content="JSON.parse(w.works)[0].answer"
  2033. placement="top"
  2034. >
  2035. <div class="answerContent">
  2036. {{ JSON.parse(w.works)[0].answer }}
  2037. </div>
  2038. </el-tooltip>
  2039. <div
  2040. class="answerScore"
  2041. v-if="w.score"
  2042. @click.stop="openScore(w)"
  2043. :class="{
  2044. rightW:
  2045. w.userid == userid ||
  2046. tType == 1 ||
  2047. tType == 4,
  2048. }"
  2049. >
  2050. {{ JSON.parse(w.score).wScore }}分
  2051. </div>
  2052. <div
  2053. class="answerScore"
  2054. @click.stop="openScore(w)"
  2055. v-else-if="courseDetail.userid == userid"
  2056. :class="{
  2057. rightW:
  2058. w.userid == userid ||
  2059. tType == 1 ||
  2060. tType == 4,
  2061. }"
  2062. >
  2063. 评分
  2064. </div>
  2065. <img
  2066. class="deleteImg"
  2067. src="../assets/deleteworks.png"
  2068. v-if="
  2069. w.userid == userid || tType == 1 || tType == 4
  2070. "
  2071. @click.stop="deleteWorks(w.wid)"
  2072. alt
  2073. />
  2074. </div>
  2075. <div class="comment">
  2076. <div class="worksName">
  2077. <div>{{ w.sName }}</div>
  2078. </div>
  2079. </div>
  2080. </div>
  2081. </div>
  2082. </div>
  2083. </div>
  2084. <div
  2085. v-if="
  2086. tType &&
  2087. tType == 2 &&
  2088. !sIsOpen &&
  2089. tool.tool.indexOf(1) != -1
  2090. "
  2091. class="worksBox"
  2092. >
  2093. <div
  2094. class="zuoyeYulan"
  2095. v-if="workStudent[toolIndex].length > 0"
  2096. >
  2097. <span class="worksTitle">作业预览</span>
  2098. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2099. </div>
  2100. <div
  2101. class="worksDetailBox"
  2102. v-if="workStudent[toolIndex].length > 0"
  2103. >
  2104. <div
  2105. class="works"
  2106. style="
  2107. width: 200px;
  2108. height: 140px;
  2109. margin: 10px 10px 10px 0;
  2110. box-shadow: 0 0 6px 1px #dfdada;
  2111. "
  2112. v-for="(w, wIndex) in workStudent[toolIndex]"
  2113. :key="wIndex"
  2114. >
  2115. <div class="workImg">
  2116. <img
  2117. :src="w.works"
  2118. @click="previewImg(w.works)"
  2119. alt
  2120. />
  2121. <div
  2122. class="answerScore"
  2123. v-if="w.score"
  2124. @click.stop="openScore(w)"
  2125. :class="{
  2126. rightW:
  2127. w.userid == userid || tType == 1 || tType == 4,
  2128. }"
  2129. >
  2130. {{ JSON.parse(w.score).wScore }}分
  2131. </div>
  2132. <div
  2133. class="answerScore"
  2134. @click.stop="openScore(w)"
  2135. v-else-if="courseDetail.userid == userid"
  2136. :class="{
  2137. rightW:
  2138. w.userid == userid || tType == 1 || tType == 4,
  2139. }"
  2140. >
  2141. 评分
  2142. </div>
  2143. <img
  2144. class="deleteImg"
  2145. src="../assets/deleteworks.png"
  2146. v-if="
  2147. w.userid == userid || tType == 1 || tType == 4
  2148. "
  2149. @click.stop="deleteWorks(w.wid)"
  2150. alt
  2151. />
  2152. </div>
  2153. <div class="worksName">
  2154. <div>{{ w.sName }}</div>
  2155. </div>
  2156. </div>
  2157. </div>
  2158. </div>
  2159. <div
  2160. v-if="
  2161. tType &&
  2162. tType == 2 &&
  2163. !sIsOpen &&
  2164. tool.tool.indexOf(3) != -1
  2165. "
  2166. class="worksBox"
  2167. >
  2168. <div
  2169. class="zuoyeYulan"
  2170. v-if="workStudent[toolIndex].length > 0"
  2171. >
  2172. <span class="worksTitle">作业预览</span>
  2173. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2174. </div>
  2175. <div
  2176. class="worksDetailBox"
  2177. v-if="workStudent[toolIndex].length > 0"
  2178. >
  2179. <div
  2180. class="works"
  2181. style="
  2182. width: 200px;
  2183. height: 140px;
  2184. margin: 10px 10px 10px 0;
  2185. box-shadow: 0 0 6px 1px #dfdada;
  2186. "
  2187. v-for="(w, wIndex) in workStudent[toolIndex]"
  2188. :key="wIndex"
  2189. >
  2190. <div class="workImg">
  2191. <img
  2192. :src="w.works"
  2193. @click="previewImg(w.works)"
  2194. alt
  2195. />
  2196. <div
  2197. class="answerScore"
  2198. v-if="w.score"
  2199. @click.stop="openScore(w)"
  2200. :class="{
  2201. rightW:
  2202. w.userid == userid || tType == 1 || tType == 4,
  2203. }"
  2204. >
  2205. {{ JSON.parse(w.score).wScore }}分
  2206. </div>
  2207. <div
  2208. class="answerScore"
  2209. @click.stop="openScore(w)"
  2210. v-else-if="courseDetail.userid == userid"
  2211. :class="{
  2212. rightW:
  2213. w.userid == userid || tType == 1 || tType == 4,
  2214. }"
  2215. >
  2216. 评分
  2217. </div>
  2218. <img
  2219. class="deleteImg"
  2220. src="../assets/deleteworks.png"
  2221. v-if="
  2222. w.userid == userid || tType == 1 || tType == 4
  2223. "
  2224. @click.stop="deleteWorks(w.wid)"
  2225. alt
  2226. />
  2227. </div>
  2228. <div class="worksName">
  2229. <div>{{ w.sName }}</div>
  2230. </div>
  2231. </div>
  2232. </div>
  2233. </div>
  2234. <div
  2235. v-if="
  2236. tType &&
  2237. tType == 2 &&
  2238. !sIsOpen &&
  2239. tool.tool.indexOf(6) != -1
  2240. "
  2241. class="worksBox"
  2242. >
  2243. <div
  2244. class="zuoyeYulan"
  2245. v-if="workStudent[toolIndex].length > 0"
  2246. >
  2247. <span class="worksTitle">作业预览</span>
  2248. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2249. </div>
  2250. <div
  2251. class="worksDetailBox"
  2252. v-if="workStudent[toolIndex].length > 0"
  2253. >
  2254. <div
  2255. class="works"
  2256. style="
  2257. width: 200px;
  2258. height: 140px;
  2259. margin: 10px 10px 10px 0;
  2260. box-shadow: 0 0 6px 1px #dfdada;
  2261. "
  2262. v-for="(w, wIndex) in workStudent[toolIndex]"
  2263. :key="wIndex"
  2264. >
  2265. <div class="workImg">
  2266. <img
  2267. :src="w.works"
  2268. @click="previewImg(w.works)"
  2269. alt
  2270. />
  2271. <div
  2272. class="answerScore"
  2273. v-if="w.score"
  2274. @click.stop="openScore(w)"
  2275. :class="{
  2276. rightW:
  2277. w.userid == userid || tType == 1 || tType == 4,
  2278. }"
  2279. >
  2280. {{ JSON.parse(w.score).wScore }}分
  2281. </div>
  2282. <div
  2283. class="answerScore"
  2284. @click.stop="openScore(w)"
  2285. v-else-if="courseDetail.userid == userid"
  2286. :class="{
  2287. rightW:
  2288. w.userid == userid || tType == 1 || tType == 4,
  2289. }"
  2290. >
  2291. 评分
  2292. </div>
  2293. <img
  2294. class="deleteImg"
  2295. src="../assets/deleteworks.png"
  2296. v-if="
  2297. w.userid == userid || tType == 1 || tType == 4
  2298. "
  2299. @click.stop="deleteWorks(w.wid)"
  2300. alt
  2301. />
  2302. </div>
  2303. <div class="worksName">
  2304. <div>{{ w.sName }}</div>
  2305. </div>
  2306. </div>
  2307. </div>
  2308. </div>
  2309. <div
  2310. v-if="
  2311. tType &&
  2312. tType == 2 &&
  2313. !sIsOpen &&
  2314. tool.tool.indexOf(7) != -1
  2315. "
  2316. class="worksBox"
  2317. >
  2318. <div
  2319. class="zuoyeYulan"
  2320. v-if="workStudent[toolIndex].length > 0"
  2321. >
  2322. <span class="worksTitle">作业预览</span>
  2323. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2324. </div>
  2325. <div
  2326. class="worksDetailBox"
  2327. v-if="workStudent[toolIndex].length > 0"
  2328. >
  2329. <div
  2330. class="works"
  2331. style="
  2332. width: 200px;
  2333. height: 140px;
  2334. margin: 10px 10px 10px 0;
  2335. box-shadow: 0 0 6px 1px #dfdada;
  2336. "
  2337. v-for="(w, wIndex) in workStudent[toolIndex]"
  2338. :key="wIndex"
  2339. >
  2340. <div class="workImg">
  2341. <img
  2342. :src="w.works"
  2343. @click="previewImg(w.works)"
  2344. alt
  2345. />
  2346. <div
  2347. class="answerScore"
  2348. v-if="w.score"
  2349. @click.stop="openScore(w)"
  2350. :class="{
  2351. rightW:
  2352. w.userid == userid || tType == 1 || tType == 4,
  2353. }"
  2354. >
  2355. {{ JSON.parse(w.score).wScore }}分
  2356. </div>
  2357. <div
  2358. class="answerScore"
  2359. @click.stop="openScore(w)"
  2360. v-else-if="courseDetail.userid == userid"
  2361. :class="{
  2362. rightW:
  2363. w.userid == userid || tType == 1 || tType == 4,
  2364. }"
  2365. >
  2366. 评分
  2367. </div>
  2368. <img
  2369. class="deleteImg"
  2370. src="../assets/deleteworks.png"
  2371. v-if="
  2372. w.userid == userid || tType == 1 || tType == 4
  2373. "
  2374. @click.stop="deleteWorks(w.wid)"
  2375. alt
  2376. />
  2377. </div>
  2378. <div class="worksName">
  2379. <div>{{ w.sName }}</div>
  2380. </div>
  2381. </div>
  2382. </div>
  2383. </div>
  2384. <div
  2385. v-if="
  2386. tType &&
  2387. tType == 2 &&
  2388. !sIsOpen &&
  2389. tool.tool.indexOf(26) != -1
  2390. "
  2391. class="worksBox"
  2392. >
  2393. <div
  2394. class="zuoyeYulan"
  2395. v-if="workStudent[toolIndex].length > 0"
  2396. >
  2397. <span class="worksTitle">作业预览</span>
  2398. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2399. </div>
  2400. <div
  2401. class="worksDetailBox"
  2402. v-if="workStudent[toolIndex].length > 0"
  2403. >
  2404. <div
  2405. class="works"
  2406. style="
  2407. width: 200px;
  2408. height: 140px;
  2409. margin: 10px 10px 10px 0;
  2410. box-shadow: 0 0 6px 1px #dfdada;
  2411. "
  2412. v-for="(w, wIndex) in workStudent[toolIndex]"
  2413. :key="wIndex"
  2414. >
  2415. <div class="workImg">
  2416. <img
  2417. :src="w.works"
  2418. @click="previewImg(w.works)"
  2419. alt
  2420. />
  2421. <img
  2422. class="deleteImg"
  2423. src="../assets/deleteworks.png"
  2424. v-if="
  2425. w.userid == userid || tType == 1 || tType == 4
  2426. "
  2427. @click.stop="deleteWorks(w.wid)"
  2428. alt
  2429. />
  2430. </div>
  2431. <div class="worksName">
  2432. <div>{{ w.sName }}</div>
  2433. </div>
  2434. </div>
  2435. </div>
  2436. </div>
  2437. <div
  2438. v-if="
  2439. tType &&
  2440. ((tType == 2 && sIsOpen == true) ||
  2441. tType == 1 ||
  2442. tType == 4) &&
  2443. tool.tool.indexOf(16) != -1
  2444. "
  2445. class="worksBox"
  2446. >
  2447. <div
  2448. class="zuoyeYulan"
  2449. v-if="
  2450. (worksStudent.length &&
  2451. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2452. "
  2453. >
  2454. <div class="worksTop">
  2455. <div>作业预览</div>
  2456. <div
  2457. class="corOpen"
  2458. @click="contract(toolIndex)"
  2459. v-if="
  2460. (isCloseList[toolIndex].isCloseBoolean) &&
  2461. isCloseList[toolIndex].isClose == 0
  2462. "
  2463. >
  2464. 折叠
  2465. </div>
  2466. <div
  2467. class="corOpen"
  2468. @click="contract(toolIndex)"
  2469. v-if="isCloseList[toolIndex].isClose == 1"
  2470. >
  2471. 展开
  2472. </div>
  2473. </div>
  2474. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2475. </div>
  2476. <div
  2477. class="group_workBox"
  2478. v-for="(g, gindex) in courseGroup.group"
  2479. :key="gindex"
  2480. >
  2481. <div class="group_box">
  2482. <div class="group_title">
  2483. <el-tooltip
  2484. class="item"
  2485. effect="light"
  2486. :content="g.name"
  2487. placement="top"
  2488. >
  2489. <div class="group_name">{{ g.name }}</div>
  2490. </el-tooltip>
  2491. </div>
  2492. <div
  2493. class="group_work"
  2494. v-if="
  2495. g.works &&
  2496. g.works.length &&
  2497. g.works[toolIndex].length
  2498. "
  2499. >
  2500. <div
  2501. class="works"
  2502. style="
  2503. width: 200px;
  2504. height: 140px;
  2505. margin: 10px 10px 10px 0;
  2506. border-radius: 15px;
  2507. box-shadow: 0 0 6px 1px #dfdada;
  2508. "
  2509. v-for="(w, wIndex) in g.works[toolIndex]"
  2510. :key="wIndex"
  2511. :class="w.type == 1 ? 'isTypeOne' : ''"
  2512. >
  2513. <div class="workImg" v-if="w.type == 0">
  2514. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2515. <img
  2516. :src="w.works"
  2517. @click="previewImg(w.works)"
  2518. alt
  2519. />
  2520. <div
  2521. class="answerScore"
  2522. v-if="w.score"
  2523. @click.stop="openScore(w)"
  2524. :class="{
  2525. rightW:
  2526. w.userid == userid ||
  2527. tType == 1 ||
  2528. tType == 4 ||
  2529. w.ateacher == userid,
  2530. }"
  2531. >
  2532. {{ JSON.parse(w.score).wScore }}分
  2533. </div>
  2534. <div
  2535. class="answerScore"
  2536. @click.stop="openScore(w)"
  2537. v-else-if="courseDetail.userid == userid"
  2538. :class="{
  2539. rightW:
  2540. w.userid == userid ||
  2541. tType == 1 ||
  2542. tType == 4 ||
  2543. w.ateacher == userid,
  2544. }"
  2545. >
  2546. 评分
  2547. </div>
  2548. <img
  2549. class="deleteImg"
  2550. src="../assets/deleteworks.png"
  2551. v-if="
  2552. w.userid == userid || tType == 1 || tType == 4
  2553. "
  2554. @click.stop="deleteWorks(w.wid)"
  2555. alt
  2556. />
  2557. </div>
  2558. <div class="workImg" v-if="w.type == 1">
  2559. <img :src="word" @click="openFile(w.works)" alt />
  2560. <!-- @click="openFile(w.works)" -->
  2561. <div
  2562. class="answerScore"
  2563. v-if="w.score"
  2564. @click.stop="openScore(w)"
  2565. :class="{
  2566. rightW:
  2567. w.userid == userid ||
  2568. tType == 1 ||
  2569. tType == 4 ||
  2570. w.ateacher == userid,
  2571. }"
  2572. >
  2573. {{ JSON.parse(w.score).wScore }}分
  2574. </div>
  2575. <div
  2576. class="answerScore"
  2577. @click.stop="openScore(w)"
  2578. v-else-if="courseDetail.userid == userid"
  2579. :class="{
  2580. rightW:
  2581. w.userid == userid ||
  2582. tType == 1 ||
  2583. tType == 4 ||
  2584. w.ateacher == userid,
  2585. }"
  2586. >
  2587. 评分
  2588. </div>
  2589. <img
  2590. class="deleteImg"
  2591. src="../assets/deleteworks.png"
  2592. v-if="
  2593. w.userid == userid || tType == 1 || tType == 4
  2594. "
  2595. @click.stop="deleteWorks(w.wid)"
  2596. alt
  2597. />
  2598. </div>
  2599. <div class="workImg" v-if="w.type == 3">
  2600. <img
  2601. style="cursor: pointer"
  2602. :src="video"
  2603. @click="openVideo(w)"
  2604. alt
  2605. />
  2606. <!-- @click="openVideo(w.works)" -->
  2607. <div
  2608. class="answerScore"
  2609. v-if="w.score"
  2610. @click.stop="openScore(w)"
  2611. :class="{
  2612. rightW:
  2613. w.userid == userid ||
  2614. tType == 1 ||
  2615. tType == 4 ||
  2616. w.ateacher == userid,
  2617. }"
  2618. >
  2619. {{ JSON.parse(w.score).wScore }}分
  2620. </div>
  2621. <div
  2622. class="answerScore"
  2623. @click.stop="openScore(w)"
  2624. v-else-if="courseDetail.userid == userid"
  2625. :class="{
  2626. rightW:
  2627. w.userid == userid ||
  2628. tType == 1 ||
  2629. tType == 4 ||
  2630. w.ateacher == userid,
  2631. }"
  2632. >
  2633. 评分
  2634. </div>
  2635. <img
  2636. class="deleteImg"
  2637. src="../assets/deleteworks.png"
  2638. v-if="
  2639. w.userid == userid || tType == 1 || tType == 4
  2640. "
  2641. @click.stop="deleteWorks(w.wid)"
  2642. alt
  2643. />
  2644. </div>
  2645. <div class="workImg" v-if="w.type == 12">
  2646. <img
  2647. style="cursor: pointer"
  2648. :src="word2"
  2649. @click="downloadFile(w.works)"
  2650. alt
  2651. />
  2652. <!-- @click="openVideo(w.works)" -->
  2653. <div
  2654. class="answerScore"
  2655. v-if="w.score"
  2656. @click.stop="openScore(w)"
  2657. :class="{
  2658. rightW:
  2659. w.userid == userid ||
  2660. tType == 1 ||
  2661. tType == 4 ||
  2662. w.ateacher == userid,
  2663. }"
  2664. >
  2665. {{ JSON.parse(w.score).wScore }}分
  2666. </div>
  2667. <div
  2668. class="answerScore"
  2669. @click.stop="openScore(w)"
  2670. v-else-if="courseDetail.userid == userid"
  2671. :class="{
  2672. rightW:
  2673. w.userid == userid ||
  2674. tType == 1 ||
  2675. tType == 4 ||
  2676. w.ateacher == userid,
  2677. }"
  2678. >
  2679. 评分
  2680. </div>
  2681. <img
  2682. class="deleteImg"
  2683. src="../assets/deleteworks.png"
  2684. v-if="
  2685. w.userid == userid || tType == 1 || tType == 4
  2686. "
  2687. @click.stop="deleteWorks(w.wid)"
  2688. alt
  2689. />
  2690. </div>
  2691. <div class="comment" style="min-width: 200px">
  2692. <div class="worksName">
  2693. <div>{{ w.sName }}</div>
  2694. </div>
  2695. <div class="commentList">
  2696. <div class="commentList">
  2697. <div
  2698. class="commentImg"
  2699. @click="
  2700. isLikes(w.wid, userid, 1, null, w.isLikes)
  2701. "
  2702. >
  2703. <img
  2704. :src="w.isLikes == true ? likes : noLikes"
  2705. alt=""
  2706. />
  2707. </div>
  2708. <div>{{ w.likesCount }}</div>
  2709. </div>
  2710. <div
  2711. class="commentList"
  2712. style="margin-right: 15px"
  2713. >
  2714. <div
  2715. class="commentImg"
  2716. @click="
  2717. commentOther(
  2718. w,
  2719. toolIndex,
  2720. wIndex,
  2721. null,
  2722. g.id
  2723. )
  2724. "
  2725. >
  2726. <img
  2727. src="../assets/icon/comment/comment.png"
  2728. alt=""
  2729. />
  2730. </div>
  2731. <div>{{ w.commentCount }}</div>
  2732. </div>
  2733. </div>
  2734. </div>
  2735. </div>
  2736. </div>
  2737. <div class="group_work" v-else>暂无提交作业</div>
  2738. </div>
  2739. </div>
  2740. <div
  2741. :id="'tool-' + toolIndex"
  2742. :style="{
  2743. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2744. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2745. }"
  2746. class="worksDetailBox"
  2747. v-if="
  2748. worksStudent.length &&
  2749. worksStudent[toolIndex].length > 0
  2750. "
  2751. >
  2752. <div
  2753. class="works"
  2754. style="
  2755. width: 200px;
  2756. height: 140px;
  2757. margin: 10px 10px 10px 0;
  2758. border-radius: 15px;
  2759. box-shadow: 0 0 6px 1px #dfdada;
  2760. "
  2761. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2762. :key="wIndex"
  2763. :class="w.type == 1 ? 'isTypeOne' : ''"
  2764. >
  2765. <div class="workImg" v-if="w.type == 0">
  2766. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2767. <img
  2768. :src="w.works"
  2769. @click="previewImg(w.works)"
  2770. alt
  2771. />
  2772. <div
  2773. class="answerScore"
  2774. v-if="w.score"
  2775. @click.stop="openScore(w)"
  2776. :class="{
  2777. rightW:
  2778. w.userid == userid ||
  2779. tType == 1 ||
  2780. tType == 4 ||
  2781. w.ateacher == userid,
  2782. }"
  2783. >
  2784. {{ JSON.parse(w.score).wScore }}分
  2785. </div>
  2786. <div
  2787. class="answerScore"
  2788. @click.stop="openScore(w)"
  2789. v-else-if="courseDetail.userid == userid"
  2790. :class="{
  2791. rightW:
  2792. w.userid == userid ||
  2793. tType == 1 ||
  2794. tType == 4 ||
  2795. w.ateacher == userid,
  2796. }"
  2797. >
  2798. 评分
  2799. </div>
  2800. <img
  2801. class="deleteImg"
  2802. src="../assets/deleteworks.png"
  2803. v-if="
  2804. w.userid == userid || tType == 1 || tType == 4
  2805. "
  2806. @click.stop="deleteWorks(w.wid)"
  2807. alt
  2808. />
  2809. </div>
  2810. <div class="workImg" v-if="w.type == 1">
  2811. <img :src="word" @click="openFile(w.works)" alt />
  2812. <!-- @click="openFile(w.works)" -->
  2813. <div
  2814. class="answerScore"
  2815. v-if="w.score"
  2816. @click.stop="openScore(w)"
  2817. :class="{
  2818. rightW:
  2819. w.userid == userid ||
  2820. tType == 1 ||
  2821. tType == 4 ||
  2822. w.ateacher == userid,
  2823. }"
  2824. >
  2825. {{ JSON.parse(w.score).wScore }}分
  2826. </div>
  2827. <div
  2828. class="answerScore"
  2829. @click.stop="openScore(w)"
  2830. v-else-if="courseDetail.userid == userid"
  2831. :class="{
  2832. rightW:
  2833. w.userid == userid ||
  2834. tType == 1 ||
  2835. tType == 4 ||
  2836. w.ateacher == userid,
  2837. }"
  2838. >
  2839. 评分
  2840. </div>
  2841. <img
  2842. class="deleteImg"
  2843. src="../assets/deleteworks.png"
  2844. v-if="
  2845. w.userid == userid || tType == 1 || tType == 4
  2846. "
  2847. @click.stop="deleteWorks(w.wid)"
  2848. alt
  2849. />
  2850. </div>
  2851. <div class="workImg" v-if="w.type == 3">
  2852. <img
  2853. style="cursor: pointer"
  2854. :src="video"
  2855. @click="openVideo(w)"
  2856. alt
  2857. />
  2858. <!-- @click="openVideo(w.works)" -->
  2859. <div
  2860. class="answerScore"
  2861. v-if="w.score"
  2862. @click.stop="openScore(w)"
  2863. :class="{
  2864. rightW:
  2865. w.userid == userid ||
  2866. tType == 1 ||
  2867. tType == 4 ||
  2868. w.ateacher == userid,
  2869. }"
  2870. >
  2871. {{ JSON.parse(w.score).wScore }}分
  2872. </div>
  2873. <div
  2874. class="answerScore"
  2875. @click.stop="openScore(w)"
  2876. v-else-if="courseDetail.userid == userid"
  2877. :class="{
  2878. rightW:
  2879. w.userid == userid ||
  2880. tType == 1 ||
  2881. tType == 4 ||
  2882. w.ateacher == userid,
  2883. }"
  2884. >
  2885. 评分
  2886. </div>
  2887. <img
  2888. class="deleteImg"
  2889. src="../assets/deleteworks.png"
  2890. v-if="
  2891. w.userid == userid || tType == 1 || tType == 4
  2892. "
  2893. @click.stop="deleteWorks(w.wid)"
  2894. alt
  2895. />
  2896. </div>
  2897. <div class="workImg" v-if="w.type == 12">
  2898. <img
  2899. style="cursor: pointer"
  2900. :src="word2"
  2901. @click="downloadFile(w.works)"
  2902. alt
  2903. />
  2904. <!-- @click="openVideo(w.works)" -->
  2905. <div
  2906. class="answerScore"
  2907. v-if="w.score"
  2908. @click.stop="openScore(w)"
  2909. :class="{
  2910. rightW:
  2911. w.userid == userid ||
  2912. tType == 1 ||
  2913. tType == 4 ||
  2914. w.ateacher == userid,
  2915. }"
  2916. >
  2917. {{ JSON.parse(w.score).wScore }}分
  2918. </div>
  2919. <div
  2920. class="answerScore"
  2921. @click.stop="openScore(w)"
  2922. v-else-if="courseDetail.userid == userid"
  2923. :class="{
  2924. rightW:
  2925. w.userid == userid ||
  2926. tType == 1 ||
  2927. tType == 4 ||
  2928. w.ateacher == userid,
  2929. }"
  2930. >
  2931. 评分
  2932. </div>
  2933. <img
  2934. class="deleteImg"
  2935. src="../assets/deleteworks.png"
  2936. v-if="
  2937. w.userid == userid || tType == 1 || tType == 4
  2938. "
  2939. @click.stop="deleteWorks(w.wid)"
  2940. alt
  2941. />
  2942. </div>
  2943. <div class="comment" style="min-width: 200px">
  2944. <div class="worksName">
  2945. <div>{{ w.sName }}</div>
  2946. </div>
  2947. <div class="commentList">
  2948. <div class="commentList">
  2949. <div
  2950. class="commentImg"
  2951. @click="
  2952. isLikes(w.wid, userid, 1, null, w.isLikes)
  2953. "
  2954. >
  2955. <img
  2956. :src="w.isLikes == true ? likes : noLikes"
  2957. alt=""
  2958. />
  2959. </div>
  2960. <div>{{ w.likesCount }}</div>
  2961. </div>
  2962. <div class="commentList" style="margin-right: 15px">
  2963. <div
  2964. class="commentImg"
  2965. @click="commentOther(w, toolIndex, wIndex)"
  2966. >
  2967. <img
  2968. src="../assets/icon/comment/comment.png"
  2969. alt=""
  2970. />
  2971. </div>
  2972. <div>{{ w.commentCount }}</div>
  2973. </div>
  2974. </div>
  2975. </div>
  2976. </div>
  2977. </div>
  2978. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2979. 未提交
  2980. </div>
  2981. <div
  2982. class="noWorksS"
  2983. v-if="noWorksS && noWorksS[toolIndex].length"
  2984. >
  2985. <div
  2986. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2987. :key="sIndex"
  2988. class="noWorksName"
  2989. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2990. >
  2991. {{ s.student }}
  2992. </div>
  2993. </div>
  2994. </div>
  2995. <div
  2996. v-if="
  2997. tType &&
  2998. ((tType == 2 && sIsOpen == true) ||
  2999. tType == 1 ||
  3000. tType == 4) &&
  3001. tool.tool.indexOf(70) != -1
  3002. "
  3003. class="worksBox"
  3004. >
  3005. <div
  3006. class="zuoyeYulan"
  3007. v-if="
  3008. (worksStudent.length &&
  3009. worksStudent[toolIndex].length > 0)
  3010. "
  3011. >
  3012. <div class="worksTop">
  3013. <div>作业预览</div>
  3014. <div
  3015. class="corOpen"
  3016. @click="contract(toolIndex)"
  3017. v-if="
  3018. (isCloseList[toolIndex].isCloseBoolean) &&
  3019. isCloseList[toolIndex].isClose == 0
  3020. "
  3021. >
  3022. 折叠
  3023. </div>
  3024. <div
  3025. class="corOpen"
  3026. @click="contract(toolIndex)"
  3027. v-if="isCloseList[toolIndex].isClose == 1"
  3028. >
  3029. 展开
  3030. </div>
  3031. </div>
  3032. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3033. </div>
  3034. <div
  3035. :id="'tool-' + toolIndex"
  3036. :style="{
  3037. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3038. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3039. }"
  3040. class="worksDetailBox"
  3041. v-if="
  3042. worksStudent.length &&
  3043. worksStudent[toolIndex].length > 0
  3044. "
  3045. >
  3046. <div
  3047. class="works"
  3048. style="
  3049. width: 200px;
  3050. height: 140px;
  3051. margin: 10px 10px 10px 0;
  3052. border-radius: 15px;
  3053. box-shadow: 0 0 6px 1px #dfdada;
  3054. "
  3055. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3056. :key="wIndex"
  3057. :class="w.type == 1 ? 'isTypeOne' : ''"
  3058. >
  3059. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3060. <img :src="word" alt />
  3061. <img
  3062. class="deleteImg"
  3063. src="../assets/deleteworks.png"
  3064. v-if="
  3065. w.userid == userid || tType == 1 || tType == 4
  3066. "
  3067. @click.stop="deleteWorks(w.wid)"
  3068. alt
  3069. />
  3070. </div>
  3071. <div class="comment" style="min-width: 200px">
  3072. <div class="worksName">
  3073. <div>{{ w.sName }}</div>
  3074. </div>
  3075. </div>
  3076. </div>
  3077. </div>
  3078. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3079. 未提交
  3080. </div>
  3081. <div
  3082. class="noWorksS"
  3083. v-if="noWorksS && noWorksS[toolIndex].length"
  3084. >
  3085. <div
  3086. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3087. :key="sIndex"
  3088. class="noWorksName"
  3089. >
  3090. {{ s.student }}
  3091. </div>
  3092. </div>
  3093. </div>
  3094. <div
  3095. v-if="
  3096. tType &&
  3097. tType == 2 &&
  3098. !sIsOpen &&
  3099. tool.tool.indexOf(70) != -1
  3100. "
  3101. class="worksBox"
  3102. >
  3103. <div
  3104. class="zuoyeYulan"
  3105. v-if="workStudent[toolIndex].length > 0"
  3106. >
  3107. <span class="worksTitle">作业预览</span>
  3108. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3109. </div>
  3110. <div
  3111. class="worksDetailBox"
  3112. v-if="workStudent[toolIndex].length > 0"
  3113. >
  3114. <div
  3115. class="works"
  3116. style="
  3117. width: 200px;
  3118. height: 140px;
  3119. margin: 10px 10px 10px 0;
  3120. box-shadow: 0 0 6px 1px #dfdada;
  3121. "
  3122. v-for="(w, wIndex) in workStudent[toolIndex]"
  3123. :key="wIndex"
  3124. >
  3125. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3126. <img :src="word" alt />
  3127. <img
  3128. class="deleteImg"
  3129. src="../assets/deleteworks.png"
  3130. v-if="
  3131. w.userid == userid || tType == 1 || tType == 4
  3132. "
  3133. @click.stop="deleteWorks(w.wid)"
  3134. alt
  3135. />
  3136. </div>
  3137. <div class="worksName">
  3138. <div>{{ w.sName }}</div>
  3139. </div>
  3140. </div>
  3141. </div>
  3142. </div>
  3143. <div
  3144. v-if="
  3145. tType &&
  3146. ((tType == 2 && sIsOpen == true) ||
  3147. tType == 1 ||
  3148. tType == 4) &&
  3149. tool.tool.indexOf(32) != -1
  3150. "
  3151. class="worksBox"
  3152. >
  3153. <div
  3154. class="zuoyeYulan"
  3155. v-if="
  3156. worksStudent.length &&
  3157. worksStudent[toolIndex].length > 0
  3158. "
  3159. >
  3160. <div class="worksTop">
  3161. <div>作业预览</div>
  3162. <div
  3163. class="corOpen"
  3164. @click="contract(toolIndex)"
  3165. v-if="
  3166. (isCloseList[toolIndex].isCloseBoolean) &&
  3167. isCloseList[toolIndex].isClose == 0
  3168. "
  3169. >
  3170. 折叠
  3171. </div>
  3172. <div
  3173. class="corOpen"
  3174. @click="contract(toolIndex)"
  3175. v-if="isCloseList[toolIndex].isClose == 1"
  3176. >
  3177. 展开
  3178. </div>
  3179. </div>
  3180. </div>
  3181. <div
  3182. :id="'tool-' + toolIndex"
  3183. class="worksDetailBox"
  3184. :style="{
  3185. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3186. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3187. }"
  3188. v-if="
  3189. worksStudent.length &&
  3190. worksStudent[toolIndex].length > 0
  3191. "
  3192. >
  3193. <div
  3194. class="works"
  3195. style="
  3196. width: 200px;
  3197. height: 140px;
  3198. margin: 10px 10px 10px 0;
  3199. border-radius: 15px;
  3200. box-shadow: 0 0 6px 1px #dfdada;
  3201. "
  3202. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3203. :key="wIndex"
  3204. :class="w.type == 1 ? 'isTypeOne' : ''"
  3205. >
  3206. <div class="workImg">
  3207. <img
  3208. :src="word2"
  3209. @click="downloadFile(w.works)"
  3210. alt
  3211. />
  3212. <div
  3213. class="answerScore"
  3214. v-if="w.score"
  3215. @click.stop="openScore(w)"
  3216. :class="{
  3217. rightW:
  3218. w.userid == userid ||
  3219. tType == 1 ||
  3220. tType == 4 ||
  3221. w.ateacher == userid,
  3222. }"
  3223. >
  3224. {{ JSON.parse(w.score).wScore }}分
  3225. </div>
  3226. <div
  3227. class="answerScore"
  3228. @click.stop="openScore(w)"
  3229. v-else-if="courseDetail.userid == userid"
  3230. :class="{
  3231. rightW:
  3232. w.userid == userid ||
  3233. tType == 1 ||
  3234. tType == 4 ||
  3235. w.ateacher == userid,
  3236. }"
  3237. >
  3238. 评分
  3239. </div>
  3240. <img
  3241. class="deleteImg"
  3242. src="../assets/deleteworks.png"
  3243. v-if="
  3244. w.userid == userid || tType == 1 || tType == 4
  3245. "
  3246. @click.stop="deleteWorks(w.wid)"
  3247. alt
  3248. />
  3249. </div>
  3250. <div class="comment" style="min-width: 200px">
  3251. <div class="worksName">
  3252. <div>{{ w.sName }}</div>
  3253. </div>
  3254. <div class="commentList">
  3255. <div class="commentList">
  3256. <div
  3257. class="commentImg"
  3258. @click="
  3259. isLikes(w.wid, userid, 1, null, w.isLikes)
  3260. "
  3261. >
  3262. <img
  3263. :src="w.isLikes == true ? likes : noLikes"
  3264. alt=""
  3265. />
  3266. </div>
  3267. <div>{{ w.likesCount }}</div>
  3268. </div>
  3269. <div class="commentList" style="margin-right: 15px">
  3270. <div
  3271. class="commentImg"
  3272. @click="commentOther(w, toolIndex, wIndex)"
  3273. >
  3274. <img
  3275. src="../assets/icon/comment/comment.png"
  3276. alt=""
  3277. />
  3278. </div>
  3279. <div>{{ w.commentCount }}</div>
  3280. </div>
  3281. </div>
  3282. </div>
  3283. </div>
  3284. </div>
  3285. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3286. 未提交
  3287. </div>
  3288. <div
  3289. class="noWorksS"
  3290. v-if="noWorksS && noWorksS[toolIndex].length"
  3291. >
  3292. <div
  3293. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3294. :key="sIndex"
  3295. class="noWorksName"
  3296. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3297. >
  3298. {{ s.student }}
  3299. </div>
  3300. </div>
  3301. </div>
  3302. <div
  3303. v-if="
  3304. tType &&
  3305. ((tType == 2 && sIsOpen == true) ||
  3306. tType == 1 ||
  3307. tType == 4) &&
  3308. tool.tool.indexOf(57) != -1
  3309. "
  3310. class="worksBox"
  3311. >
  3312. <div
  3313. class="zuoyeYulan"
  3314. v-if="
  3315. worksStudent.length &&
  3316. worksStudent[toolIndex].length > 0
  3317. "
  3318. >
  3319. <div class="worksTop">
  3320. <div>作业预览</div>
  3321. <div
  3322. class="corOpen"
  3323. @click="contract(toolIndex)"
  3324. v-if="
  3325. (isCloseList[toolIndex].isCloseBoolean) &&
  3326. isCloseList[toolIndex].isClose == 0
  3327. "
  3328. >
  3329. 折叠
  3330. </div>
  3331. <div
  3332. class="corOpen"
  3333. @click="contract(toolIndex)"
  3334. v-if="isCloseList[toolIndex].isClose == 1"
  3335. >
  3336. 展开
  3337. </div>
  3338. </div>
  3339. </div>
  3340. <div
  3341. :id="'tool-' + toolIndex"
  3342. class="worksDetailBox"
  3343. :style="{
  3344. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3345. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3346. }"
  3347. v-if="
  3348. worksStudent.length &&
  3349. worksStudent[toolIndex].length > 0
  3350. "
  3351. >
  3352. <div
  3353. class="works"
  3354. style="
  3355. width: 200px;
  3356. height: 140px;
  3357. margin: 10px 10px 10px 0;
  3358. border-radius: 15px;
  3359. box-shadow: 0 0 6px 1px #dfdada;
  3360. "
  3361. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3362. :key="wIndex"
  3363. :class="w.type == 1 ? 'isTypeOne' : ''"
  3364. >
  3365. <div class="workImg">
  3366. <img
  3367. :src="word2"
  3368. @click="downloadFile(w.works)"
  3369. v-if="w.type == 12"
  3370. alt
  3371. />
  3372. <img
  3373. :src="word2"
  3374. @click="
  3375. openCocoPi(57, toolIndex, w.userid, w.sName)
  3376. "
  3377. v-else-if="w.type == 15"
  3378. alt
  3379. />
  3380. <div
  3381. class="answerScore"
  3382. v-if="w.score"
  3383. @click.stop="openScore(w)"
  3384. :class="{
  3385. rightW:
  3386. w.userid == userid ||
  3387. tType == 1 ||
  3388. tType == 4 ||
  3389. w.ateacher == userid,
  3390. }"
  3391. >
  3392. {{ JSON.parse(w.score).wScore }}分
  3393. </div>
  3394. <div
  3395. class="answerScore"
  3396. @click.stop="openScore(w)"
  3397. v-else-if="courseDetail.userid == userid"
  3398. :class="{
  3399. rightW:
  3400. w.userid == userid ||
  3401. tType == 1 ||
  3402. tType == 4 ||
  3403. w.ateacher == userid,
  3404. }"
  3405. >
  3406. 评分
  3407. </div>
  3408. <img
  3409. class="deleteImg"
  3410. src="../assets/deleteworks.png"
  3411. v-if="
  3412. w.userid == userid || tType == 1 || tType == 4
  3413. "
  3414. @click.stop="deleteWorks(w.wid)"
  3415. alt
  3416. />
  3417. </div>
  3418. <div class="comment" style="min-width: 200px">
  3419. <div class="worksName">
  3420. <div>{{ w.sName }}</div>
  3421. </div>
  3422. <div class="commentList">
  3423. <div class="commentList">
  3424. <div
  3425. class="commentImg"
  3426. @click="
  3427. isLikes(w.wid, userid, 1, null, w.isLikes)
  3428. "
  3429. >
  3430. <img
  3431. :src="w.isLikes == true ? likes : noLikes"
  3432. alt=""
  3433. />
  3434. </div>
  3435. <div>{{ w.likesCount }}</div>
  3436. </div>
  3437. <div class="commentList" style="margin-right: 15px">
  3438. <div
  3439. class="commentImg"
  3440. @click="commentOther(w, toolIndex, wIndex)"
  3441. >
  3442. <img
  3443. src="../assets/icon/comment/comment.png"
  3444. alt=""
  3445. />
  3446. </div>
  3447. <div>{{ w.commentCount }}</div>
  3448. </div>
  3449. </div>
  3450. </div>
  3451. </div>
  3452. </div>
  3453. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3454. 未提交
  3455. </div>
  3456. <div
  3457. class="noWorksS"
  3458. v-if="noWorksS && noWorksS[toolIndex].length"
  3459. >
  3460. <div
  3461. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3462. :key="sIndex"
  3463. class="noWorksName"
  3464. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3465. >
  3466. {{ s.student }}
  3467. </div>
  3468. </div>
  3469. </div>
  3470. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3471. <div
  3472. class="zuoyeYulan"
  3473. v-if="
  3474. worksStudent.length &&
  3475. worksStudent[toolIndex].length > 0
  3476. "
  3477. >
  3478. <span class="worksTitle">作业预览</span>
  3479. <div
  3480. class="corOpen"
  3481. @click="contract(toolIndex)"
  3482. v-if="
  3483. (isCloseList[toolIndex].isCloseBoolean) &&
  3484. isCloseList[toolIndex].isClose == 0
  3485. "
  3486. >
  3487. 折叠
  3488. </div>
  3489. <div
  3490. class="corOpen"
  3491. @click="contract(toolIndex)"
  3492. v-if="isCloseList[toolIndex].isClose == 1"
  3493. >
  3494. 展开
  3495. </div>
  3496. </div>
  3497. <div
  3498. :id="'tool-' + toolIndex"
  3499. :style="{
  3500. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3501. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3502. }"
  3503. class="worksDetailBox"
  3504. v-if="
  3505. worksStudent.length &&
  3506. worksStudent[toolIndex].length > 0
  3507. "
  3508. >
  3509. <div
  3510. class="works"
  3511. style="
  3512. width: 200px;
  3513. height: 140px;
  3514. margin: 10px 10px 10px 0;
  3515. border-radius: 15px;
  3516. box-shadow: 0 0 6px 1px #dfdada;
  3517. "
  3518. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3519. :key="wIndex"
  3520. :class="w.type == 1 ? 'isTypeOne' : ''"
  3521. >
  3522. <div class="workImg" v-if="w.type == 0">
  3523. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3524. <img
  3525. :src="w.works"
  3526. @click="previewImg(w.works)"
  3527. alt
  3528. />
  3529. <div
  3530. class="answerScore"
  3531. v-if="w.score"
  3532. @click.stop="openScore(w)"
  3533. :class="{
  3534. rightW:
  3535. w.userid == userid ||
  3536. tType == 1 ||
  3537. tType == 4 ||
  3538. w.ateacher == userid,
  3539. }"
  3540. >
  3541. {{ JSON.parse(w.score).wScore }}分
  3542. </div>
  3543. <div
  3544. class="answerScore"
  3545. @click.stop="openScore(w)"
  3546. v-else-if="courseDetail.userid == userid"
  3547. :class="{
  3548. rightW:
  3549. w.userid == userid ||
  3550. tType == 1 ||
  3551. tType == 4 ||
  3552. w.ateacher == userid,
  3553. }"
  3554. >
  3555. 评分
  3556. </div>
  3557. <img
  3558. class="deleteImg"
  3559. src="../assets/deleteworks.png"
  3560. v-if="
  3561. w.userid == userid || tType == 1 || tType == 4
  3562. "
  3563. @click.stop="deleteWorks(w.wid)"
  3564. alt
  3565. />
  3566. </div>
  3567. <div
  3568. class="workImg"
  3569. style="cursor: pointer"
  3570. v-if="w.type == 1"
  3571. >
  3572. <img :src="word" @click="openFile(w.works)" alt />
  3573. <!-- @click="openFile(w.works)" -->
  3574. <div
  3575. class="answerScore"
  3576. v-if="w.score"
  3577. @click.stop="openScore(w)"
  3578. :class="{
  3579. rightW:
  3580. w.userid == userid ||
  3581. tType == 1 ||
  3582. tType == 4 ||
  3583. w.ateacher == userid,
  3584. }"
  3585. >
  3586. {{ JSON.parse(w.score).wScore }}分
  3587. </div>
  3588. <div
  3589. class="answerScore"
  3590. @click.stop="openScore(w)"
  3591. v-else-if="courseDetail.userid == userid"
  3592. :class="{
  3593. rightW:
  3594. w.userid == userid ||
  3595. tType == 1 ||
  3596. tType == 4 ||
  3597. w.ateacher == userid,
  3598. }"
  3599. >
  3600. 评分
  3601. </div>
  3602. <img
  3603. class="deleteImg"
  3604. src="../assets/deleteworks.png"
  3605. v-if="
  3606. w.userid == userid || tType == 1 || tType == 4
  3607. "
  3608. @click.stop="deleteWorks(w.wid)"
  3609. alt
  3610. />
  3611. </div>
  3612. <div class="workImg" v-if="w.type == 3">
  3613. <img
  3614. style="cursor: pointer"
  3615. :src="video"
  3616. @click="openVideo(w)"
  3617. alt
  3618. />
  3619. <!-- @click="openVideo(w.works)" -->
  3620. <div
  3621. class="answerScore"
  3622. v-if="w.score"
  3623. @click.stop="openScore(w)"
  3624. :class="{
  3625. rightW:
  3626. w.userid == userid ||
  3627. tType == 1 ||
  3628. tType == 4 ||
  3629. w.ateacher == userid,
  3630. }"
  3631. >
  3632. {{ JSON.parse(w.score).wScore }}分
  3633. </div>
  3634. <div
  3635. class="answerScore"
  3636. @click.stop="openScore(w)"
  3637. v-else-if="courseDetail.userid == userid"
  3638. :class="{
  3639. rightW:
  3640. w.userid == userid ||
  3641. tType == 1 ||
  3642. tType == 4 ||
  3643. w.ateacher == userid,
  3644. }"
  3645. >
  3646. 评分
  3647. </div>
  3648. <img
  3649. class="deleteImg"
  3650. src="../assets/deleteworks.png"
  3651. v-if="
  3652. w.userid == userid || tType == 1 || tType == 4
  3653. "
  3654. @click.stop="deleteWorks(w.wid)"
  3655. alt
  3656. />
  3657. </div>
  3658. <div class="comment" style="min-width: 200px">
  3659. <div class="worksName">
  3660. <div
  3661. style="cursor: pointer"
  3662. @click="
  3663. openSname(w.sName, w.wid, toolIndex, w.userid)
  3664. "
  3665. >
  3666. {{ w.sName }}
  3667. </div>
  3668. </div>
  3669. <div class="commentList">
  3670. <div class="commentList">
  3671. <div
  3672. class="commentImg"
  3673. @click="
  3674. isLikes(w.wid, userid, 1, null, w.isLikes)
  3675. "
  3676. >
  3677. <img
  3678. :src="w.isLikes == true ? likes : noLikes"
  3679. alt=""
  3680. />
  3681. </div>
  3682. <div>{{ w.likesCount }}</div>
  3683. </div>
  3684. <div class="commentList" style="margin-right: 15px">
  3685. <div
  3686. class="commentImg"
  3687. @click="commentOther(w, toolIndex, wIndex)"
  3688. >
  3689. <img
  3690. src="../assets/icon/comment/comment.png"
  3691. alt=""
  3692. />
  3693. </div>
  3694. <div>{{ w.commentCount }}</div>
  3695. </div>
  3696. </div>
  3697. </div>
  3698. </div>
  3699. </div>
  3700. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3701. 未提交
  3702. </div>
  3703. <div
  3704. class="noWorksS"
  3705. v-if="noWorksS && noWorksS[toolIndex].length"
  3706. >
  3707. <div
  3708. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3709. :key="sIndex"
  3710. class="noWorksName"
  3711. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3712. >
  3713. {{ s.student }}
  3714. </div>
  3715. </div>
  3716. </div>
  3717. <div
  3718. v-if="
  3719. tType &&
  3720. ((tType == 2 && sIsOpen == true) ||
  3721. tType == 1 ||
  3722. tType == 4) &&
  3723. tool.tool.indexOf(4) != -1 &&
  3724. (tool.askJson[0].answer ||
  3725. tool.askJson[0].answer === 0) &&
  3726. checkJson[toolIndex].length
  3727. "
  3728. class="xuan_right_box"
  3729. >
  3730. <div
  3731. class="tool_right_box"
  3732. v-for="(item, index) in tool.askJson"
  3733. :key="index"
  3734. >
  3735. <div style="width: calc(100% - 30px);">
  3736. <el-tooltip
  3737. effect="light"
  3738. :content="index + 1 + '、' + item.askstitle"
  3739. placement="top"
  3740. popper-class="text_tooltip"
  3741. >
  3742. <div
  3743. style="
  3744. width: calc(100% - 130px);
  3745. display: block;
  3746. white-space: nowrap;
  3747. overflow: hidden;
  3748. text-overflow: ellipsis;
  3749. word-break: break-word;
  3750. cursor: pointer;
  3751. "
  3752. >
  3753. {{ index + 1 + "、" + item.askstitle }}
  3754. </div>
  3755. </el-tooltip>
  3756. </div>
  3757. <div class="right_box_xuan">
  3758. <span>正确率</span>
  3759. <span>{{
  3760. (checkJson[toolIndex][index].right
  3761. ? checkJson[toolIndex][index].right
  3762. : 0) + "%"
  3763. }}</span>
  3764. </div>
  3765. </div>
  3766. </div>
  3767. <div
  3768. class="xuan_right_box"
  3769. style="background: unset; padding: 0 10px"
  3770. v-if="
  3771. tType &&
  3772. ((tType == 2 && sIsOpen == true) ||
  3773. tType == 1 ||
  3774. tType == 4) &&
  3775. tool.tool.indexOf(4) != -1
  3776. "
  3777. >
  3778. <AskStatic
  3779. v-if="
  3780. worksStudent.length &&
  3781. worksStudent[toolIndex].length > 0
  3782. "
  3783. :askJSON="tool"
  3784. :checkJson="checkJson[toolIndex]"
  3785. ></AskStatic>
  3786. </div>
  3787. <div
  3788. v-if="
  3789. tType &&
  3790. ((tType == 2 && sIsOpen == true) ||
  3791. tType == 1 ||
  3792. tType == 4) &&
  3793. tool.tool.indexOf(4) != -1
  3794. "
  3795. class="worksBox"
  3796. >
  3797. <div
  3798. class="zuoyeYulan"
  3799. v-if="
  3800. worksStudent.length &&
  3801. worksStudent[toolIndex].length > 0
  3802. "
  3803. >
  3804. <div class="worksTop">
  3805. <div>作业预览</div>
  3806. <div
  3807. class="corOpen"
  3808. @click="contract(toolIndex)"
  3809. v-if="
  3810. (isCloseList[toolIndex].isCloseBoolean) &&
  3811. isCloseList[toolIndex].isClose == 0
  3812. "
  3813. >
  3814. 折叠
  3815. </div>
  3816. <div
  3817. class="corOpen"
  3818. @click="contract(toolIndex)"
  3819. v-if="isCloseList[toolIndex].isClose == 1"
  3820. >
  3821. 展开
  3822. </div>
  3823. </div>
  3824. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3825. </div>
  3826. <div>
  3827. <div
  3828. :id="'tool-' + toolIndex"
  3829. :style="{
  3830. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3831. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3832. }"
  3833. class="worksDetailBox"
  3834. v-if="
  3835. worksStudent.length &&
  3836. worksStudent[toolIndex].length > 0
  3837. "
  3838. >
  3839. <div
  3840. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3841. :key="wIndex"
  3842. class="isWorksName2"
  3843. @click="
  3844. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3845. "
  3846. >
  3847. {{ w.sName }}
  3848. <img
  3849. class="deleteImg deleteImg2"
  3850. src="../assets/deleteworks.png"
  3851. v-if="
  3852. w.userid == userid || tType == 1 || tType == 4
  3853. "
  3854. @click.stop="deleteWorks(w.wid)"
  3855. alt
  3856. />
  3857. </div>
  3858. <!-- <div class="works" style="
  3859. width: 200px;
  3860. height: 140px;
  3861. border-radius: 10px;
  3862. box-shadow: 0 0 6px 1px #dfdada;
  3863. overflow: hidden;
  3864. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3865. <div class="workImg">
  3866. <img src="../assets/icon/works/noImg.png" @click="
  3867. openTools(
  3868. 4,
  3869. toolIndex,
  3870. taskCount,
  3871. w.works,
  3872. w.sName
  3873. )
  3874. " alt />
  3875. </div>
  3876. <div class="worksName">
  3877. <div>{{ w.sName }}</div>
  3878. <div>{{ w.time }}</div>
  3879. </div>
  3880. </div> -->
  3881. </div>
  3882. </div>
  3883. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3884. 未提交
  3885. </div>
  3886. <div
  3887. class="noWorksS"
  3888. v-if="noWorksS && noWorksS[toolIndex].length"
  3889. >
  3890. <div
  3891. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3892. :key="sIndex"
  3893. class="noWorksName"
  3894. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3895. >
  3896. {{ s.student }}
  3897. </div>
  3898. </div>
  3899. </div>
  3900. <div
  3901. v-if="
  3902. tType &&
  3903. ((tType == 2 && sIsOpen == true) ||
  3904. tType == 1 ||
  3905. tType == 4) &&
  3906. tool.tool.indexOf(45) != -1 &&
  3907. (tool.testJson.testJson[0].answer ||
  3908. tool.testJson.testJson[0].answer === 0) &&
  3909. checkJson[toolIndex].length
  3910. "
  3911. class="xuan_right_box"
  3912. >
  3913. <div
  3914. class="tool_right_box"
  3915. v-for="(item, index) in tool.testJson.testJson"
  3916. :key="index"
  3917. >
  3918. <div class="right_box_xuan" style="margin-right: 10px">
  3919. <span>正确率</span>
  3920. <span>{{
  3921. (checkJson[toolIndex][index].right
  3922. ? checkJson[toolIndex][index].right
  3923. : 0) + "%"
  3924. }}</span>
  3925. </div>
  3926. <div style="width: calc(100% - 30px);">
  3927. <el-tooltip
  3928. effect="light"
  3929. :content="index + 1 + '、' + item.teststitle"
  3930. placement="top"
  3931. popper-class="text_tooltip"
  3932. >
  3933. <div
  3934. style="
  3935. width: calc(100% - 130px);
  3936. display: block;
  3937. white-space: nowrap;
  3938. overflow: hidden;
  3939. text-overflow: ellipsis;
  3940. word-break: break-word;
  3941. cursor: pointer;
  3942. "
  3943. >
  3944. {{ index + 1 + "、" + item.teststitle }}
  3945. </div>
  3946. </el-tooltip>
  3947. </div>
  3948. </div>
  3949. </div>
  3950. <div
  3951. class="xuan_right_box"
  3952. style="background: unset; padding: 0 10px; width: 91.5%"
  3953. v-if="
  3954. tType &&
  3955. ((tType == 2 && sIsOpen == true) ||
  3956. tType == 1 ||
  3957. tType == 4) &&
  3958. tool.tool.indexOf(45) != -1
  3959. "
  3960. >
  3961. <AskStatic2
  3962. v-if="
  3963. worksStudent.length &&
  3964. worksStudent[toolIndex].length > 0
  3965. "
  3966. :askJSON="tool"
  3967. :checkJson="checkJson[toolIndex]"
  3968. ></AskStatic2>
  3969. </div>
  3970. <div
  3971. v-if="
  3972. tType &&
  3973. ((tType == 2 && sIsOpen == true) ||
  3974. tType == 1 ||
  3975. tType == 4) &&
  3976. tool.tool.indexOf(45) != -1
  3977. "
  3978. class="worksBox"
  3979. >
  3980. <div
  3981. class="zuoyeYulan"
  3982. v-if="
  3983. worksStudent.length &&
  3984. worksStudent[toolIndex].length > 0
  3985. "
  3986. >
  3987. <div class="worksTop">
  3988. <div>作业预览</div>
  3989. <div
  3990. class="corOpen"
  3991. @click="contract(toolIndex)"
  3992. v-if="
  3993. (isCloseList[toolIndex].isCloseBoolean) &&
  3994. isCloseList[toolIndex].isClose == 0
  3995. "
  3996. >
  3997. 折叠
  3998. </div>
  3999. <div
  4000. class="corOpen"
  4001. @click="contract(toolIndex)"
  4002. v-if="isCloseList[toolIndex].isClose == 1"
  4003. >
  4004. 展开
  4005. </div>
  4006. </div>
  4007. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4008. </div>
  4009. <div>
  4010. <div
  4011. :id="'tool-' + toolIndex"
  4012. :style="{
  4013. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4014. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4015. }"
  4016. class="worksDetailBox"
  4017. v-if="
  4018. worksStudent.length &&
  4019. worksStudent[toolIndex].length > 0
  4020. "
  4021. >
  4022. <div
  4023. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4024. :key="wIndex"
  4025. class="isWorksName2"
  4026. @click="
  4027. openTools(
  4028. 45,
  4029. toolIndex,
  4030. taskCount,
  4031. w.works,
  4032. w.sName
  4033. )
  4034. "
  4035. >
  4036. {{ w.sName }}
  4037. <img
  4038. class="deleteImg deleteImg2"
  4039. src="../assets/deleteworks.png"
  4040. v-if="
  4041. w.userid == userid || tType == 1 || tType == 4
  4042. "
  4043. @click.stop="deleteWorks(w.wid)"
  4044. alt
  4045. />
  4046. </div>
  4047. </div>
  4048. </div>
  4049. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4050. 未提交
  4051. </div>
  4052. <div
  4053. class="noWorksS"
  4054. v-if="noWorksS && noWorksS[toolIndex].length"
  4055. >
  4056. <div
  4057. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4058. :key="sIndex"
  4059. class="noWorksName"
  4060. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4061. >
  4062. {{ s.student }}
  4063. </div>
  4064. </div>
  4065. </div>
  4066. <div
  4067. v-if="
  4068. tType &&
  4069. ((tType == 2 && sIsOpen == true) ||
  4070. tType == 1 ||
  4071. tType == 4) &&
  4072. tool.tool.indexOf(69) != -1
  4073. "
  4074. class="worksBox"
  4075. >
  4076. <div
  4077. class="zuoyeYulan"
  4078. v-if="
  4079. worksStudent.length &&
  4080. worksStudent[toolIndex].length > 0
  4081. "
  4082. >
  4083. <div class="worksTop">
  4084. <div>作业预览</div>
  4085. <div
  4086. class="corOpen"
  4087. @click="contract(toolIndex)"
  4088. v-if="
  4089. (isCloseList[toolIndex].isCloseBoolean) &&
  4090. isCloseList[toolIndex].isClose == 0
  4091. "
  4092. >
  4093. 折叠
  4094. </div>
  4095. <div
  4096. class="corOpen"
  4097. @click="contract(toolIndex)"
  4098. v-if="isCloseList[toolIndex].isClose == 1"
  4099. >
  4100. 展开
  4101. </div>
  4102. </div>
  4103. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4104. </div>
  4105. <div>
  4106. <div
  4107. :id="'tool-' + toolIndex"
  4108. :style="{
  4109. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4110. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4111. }"
  4112. class="worksDetailBox"
  4113. v-if="
  4114. worksStudent.length &&
  4115. worksStudent[toolIndex].length > 0
  4116. "
  4117. >
  4118. <div
  4119. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4120. :key="wIndex"
  4121. class="isWorksName2"
  4122. style="width: 160px;height: 65px;line-height: 65px;"
  4123. @click="
  4124. openTools(
  4125. 69,
  4126. toolIndex,
  4127. taskCount,
  4128. w.works,
  4129. w.sName,
  4130. w.wid
  4131. )
  4132. "
  4133. >
  4134. {{ w.sName }}
  4135. <img
  4136. class="deleteImg1"
  4137. src="../assets/evaEnglish.png"
  4138. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4139. alt
  4140. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4141. />
  4142. <img
  4143. class="deleteImg deleteImg2"
  4144. src="../assets/deleteworks.png"
  4145. v-if="
  4146. w.userid == userid || tType == 1 || tType == 4
  4147. "
  4148. @click.stop="deleteWorks(w.wid)"
  4149. alt
  4150. />
  4151. </div>
  4152. </div>
  4153. </div>
  4154. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4155. 未提交
  4156. </div>
  4157. <div
  4158. class="noWorksS"
  4159. v-if="noWorksS && noWorksS[toolIndex].length"
  4160. >
  4161. <div
  4162. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4163. :key="sIndex"
  4164. class="noWorksName"
  4165. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4166. >
  4167. {{ s.student }}
  4168. </div>
  4169. </div>
  4170. </div>
  4171. <div
  4172. v-if="
  4173. tType &&
  4174. ((tType == 2 && sIsOpen == true) ||
  4175. tType == 1 ||
  4176. tType == 4) &&
  4177. tool.tool.indexOf(15) != -1
  4178. "
  4179. class="worksBox"
  4180. >
  4181. <div
  4182. class="zuoyeYulan"
  4183. v-if="
  4184. (worksStudent.length &&
  4185. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4186. "
  4187. >
  4188. <div class="worksTop">
  4189. <div>作业预览</div>
  4190. <div
  4191. class="corOpen"
  4192. @click="contract(toolIndex)"
  4193. v-if="
  4194. (isCloseList[toolIndex].isCloseBoolean) &&
  4195. isCloseList[toolIndex].isClose == 0
  4196. "
  4197. >
  4198. 折叠
  4199. </div>
  4200. <div
  4201. class="corOpen"
  4202. @click="contract(toolIndex)"
  4203. v-if="isCloseList[toolIndex].isClose == 1"
  4204. >
  4205. 展开
  4206. </div>
  4207. </div>
  4208. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4209. </div>
  4210. <div
  4211. class="group_workBox"
  4212. v-for="(g, gindex) in courseGroup.group"
  4213. :key="gindex"
  4214. >
  4215. <div class="group_box">
  4216. <div class="group_title">
  4217. <el-tooltip
  4218. class="item"
  4219. effect="light"
  4220. :content="g.name"
  4221. placement="top"
  4222. >
  4223. <div class="group_name">{{ g.name }}</div>
  4224. </el-tooltip>
  4225. </div>
  4226. <div
  4227. class="group_work"
  4228. v-if="
  4229. g.works &&
  4230. g.works.length &&
  4231. g.works[toolIndex].length
  4232. "
  4233. >
  4234. <div
  4235. class="works"
  4236. v-for="(w, wIndex) in g.works[toolIndex]"
  4237. :key="wIndex"
  4238. >
  4239. <div
  4240. class="workImg"
  4241. style="
  4242. border-radius: 15px;
  4243. box-shadow: 0px 0px 5px 5px #eee;
  4244. "
  4245. >
  4246. <div
  4247. class="answerBg"
  4248. style="border-radius: 15px 15px 0 0"
  4249. @click="
  4250. commentOther(w, toolIndex, wIndex, null, g.id)
  4251. "
  4252. >
  4253. <div class="answerContent">
  4254. {{ JSON.parse(w.works)[0].answer }}
  4255. </div>
  4256. <div
  4257. class="answerScore"
  4258. v-if="w.score"
  4259. @click.stop="openScore(w)"
  4260. :class="{
  4261. rightW:
  4262. w.userid == userid ||
  4263. tType == 1 ||
  4264. tType == 4,
  4265. }"
  4266. >
  4267. {{ JSON.parse(w.score).wScore }}分
  4268. </div>
  4269. <div
  4270. class="answerScore"
  4271. @click.stop="openScore(w)"
  4272. v-else-if="courseDetail.userid == userid"
  4273. :class="{
  4274. rightW:
  4275. w.userid == userid ||
  4276. tType == 1 ||
  4277. tType == 4,
  4278. }"
  4279. >
  4280. 评分
  4281. </div>
  4282. <img
  4283. class="deleteImg"
  4284. src="../assets/deleteworks.png"
  4285. v-if="
  4286. w.userid == userid ||
  4287. tType == 1 ||
  4288. tType == 4
  4289. "
  4290. @click.stop="deleteWorks(w.wid)"
  4291. alt
  4292. />
  4293. </div>
  4294. <div class="comment">
  4295. <div class="worksName">
  4296. <div>{{ w.sName }}</div>
  4297. </div>
  4298. <div class="commentList">
  4299. <div
  4300. class="commentImg"
  4301. @click="
  4302. isLikes(w.wid, userid, 1, null, w.isLikes)
  4303. "
  4304. >
  4305. <img
  4306. :src="w.isLikes == true ? likes : noLikes"
  4307. alt=""
  4308. />
  4309. </div>
  4310. <div>{{ w.likesCount }}</div>
  4311. </div>
  4312. <div
  4313. class="commentList"
  4314. style="margin-right: 15px"
  4315. >
  4316. <div
  4317. class="commentImg"
  4318. @click="
  4319. commentOther(
  4320. w,
  4321. toolIndex,
  4322. wIndex,
  4323. null,
  4324. g.id
  4325. )
  4326. "
  4327. >
  4328. <img
  4329. src="../assets/icon/comment/comment.png"
  4330. alt=""
  4331. />
  4332. </div>
  4333. <div>{{ w.commentCount }}</div>
  4334. </div>
  4335. </div>
  4336. </div>
  4337. </div>
  4338. </div>
  4339. <div class="group_work" v-else>暂无提交作业</div>
  4340. </div>
  4341. </div>
  4342. <div
  4343. :id="'tool-' + toolIndex"
  4344. :style="{
  4345. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4346. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4347. }"
  4348. class="worksDetailBox"
  4349. v-if="
  4350. worksStudent.length &&
  4351. worksStudent[toolIndex].length > 0
  4352. "
  4353. >
  4354. <div
  4355. class="works"
  4356. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4357. :key="wIndex"
  4358. >
  4359. <div
  4360. class="workImg"
  4361. style="
  4362. border-radius: 15px;
  4363. box-shadow: 0px 0px 5px 5px #eee;
  4364. "
  4365. >
  4366. <!-- <img
  4367. src="../assets/icon/works/noImg.png"
  4368. @click="openTools(15, toolIndex, taskCount, w.works)"
  4369. alt=""
  4370. />-->
  4371. <div
  4372. class="answerBg"
  4373. style="border-radius: 15px 15px 0 0"
  4374. @click="commentOther(w, toolIndex, wIndex)"
  4375. >
  4376. <!-- <div>{{ w.sName }}</div> -->
  4377. <div class="answerContent">
  4378. {{ JSON.parse(w.works)[0].answer }}
  4379. </div>
  4380. <div
  4381. class="answerScore"
  4382. v-if="w.score"
  4383. @click.stop="openScore(w)"
  4384. :class="{
  4385. rightW:
  4386. w.userid == userid ||
  4387. tType == 1 ||
  4388. tType == 4,
  4389. }"
  4390. >
  4391. {{ JSON.parse(w.score).wScore }}分
  4392. </div>
  4393. <div
  4394. class="answerScore"
  4395. @click.stop="openScore(w)"
  4396. v-else-if="courseDetail.userid == userid"
  4397. :class="{
  4398. rightW:
  4399. w.userid == userid ||
  4400. tType == 1 ||
  4401. tType == 4,
  4402. }"
  4403. >
  4404. 评分
  4405. </div>
  4406. <img
  4407. class="deleteImg"
  4408. src="../assets/deleteworks.png"
  4409. v-if="
  4410. w.userid == userid || tType == 1 || tType == 4
  4411. "
  4412. @click.stop="deleteWorks(w.wid)"
  4413. alt
  4414. />
  4415. </div>
  4416. <div class="comment">
  4417. <div class="worksName">
  4418. <div>{{ w.sName }}</div>
  4419. </div>
  4420. <div class="commentList">
  4421. <div
  4422. class="commentImg"
  4423. @click="
  4424. isLikes(w.wid, userid, 1, null, w.isLikes)
  4425. "
  4426. >
  4427. <img
  4428. :src="w.isLikes == true ? likes : noLikes"
  4429. alt=""
  4430. />
  4431. </div>
  4432. <div>{{ w.likesCount }}</div>
  4433. </div>
  4434. <div class="commentList" style="margin-right: 15px">
  4435. <div
  4436. class="commentImg"
  4437. @click="commentOther(w, toolIndex, wIndex)"
  4438. >
  4439. <img
  4440. src="../assets/icon/comment/comment.png"
  4441. alt=""
  4442. />
  4443. </div>
  4444. <div>{{ w.commentCount }}</div>
  4445. </div>
  4446. </div>
  4447. </div>
  4448. </div>
  4449. </div>
  4450. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4451. 未提交
  4452. </div>
  4453. <div
  4454. class="noWorksS"
  4455. v-if="noWorksS && noWorksS[toolIndex].length"
  4456. >
  4457. <div
  4458. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4459. :key="sIndex"
  4460. class="noWorksName"
  4461. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4462. >
  4463. {{ s.student }}
  4464. </div>
  4465. </div>
  4466. </div>
  4467. <div
  4468. v-if="
  4469. tType &&
  4470. ((tType == 2 && sIsOpen == true) ||
  4471. tType == 1 ||
  4472. tType == 4) &&
  4473. tool.tool.indexOf(1) != -1
  4474. "
  4475. class="worksBox"
  4476. >
  4477. <div
  4478. class="zuoyeYulan"
  4479. v-if="
  4480. (worksStudent.length &&
  4481. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4482. "
  4483. >
  4484. <div class="worksTop">
  4485. <div>作业预览</div>
  4486. <div
  4487. class="corOpen"
  4488. @click="contract(toolIndex)"
  4489. v-if="
  4490. (isCloseList[toolIndex].isCloseBoolean) &&
  4491. isCloseList[toolIndex].isClose == 0
  4492. "
  4493. >
  4494. 折叠
  4495. </div>
  4496. <div
  4497. class="corOpen"
  4498. @click="contract(toolIndex)"
  4499. v-if="isCloseList[toolIndex].isClose == 1"
  4500. >
  4501. 展开
  4502. </div>
  4503. </div>
  4504. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4505. </div>
  4506. <div
  4507. class="group_workBox"
  4508. v-for="(g, gindex) in courseGroup.group"
  4509. :key="gindex"
  4510. >
  4511. <div class="group_box">
  4512. <div class="group_title">
  4513. <el-tooltip
  4514. class="item"
  4515. effect="light"
  4516. :content="g.name"
  4517. placement="top"
  4518. >
  4519. <div class="group_name">{{ g.name }}</div>
  4520. </el-tooltip>
  4521. </div>
  4522. <div
  4523. class="group_work"
  4524. v-if="
  4525. g.works &&
  4526. g.works.length &&
  4527. g.works[toolIndex].length
  4528. "
  4529. >
  4530. <div
  4531. class="works"
  4532. style="
  4533. width: 200px;
  4534. height: 140px;
  4535. margin: 10px 10px 10px 0;
  4536. border-radius: 15px;
  4537. box-shadow: 0 0 6px 1px #dfdada;
  4538. "
  4539. v-for="(w, wIndex) in g.works[toolIndex]"
  4540. :key="wIndex"
  4541. :class="w.type == 1 ? 'isTypeOne' : ''"
  4542. >
  4543. <div class="workImg">
  4544. <img
  4545. :src="w.works"
  4546. @click="previewImg(w.works)"
  4547. alt
  4548. />
  4549. <div
  4550. class="answerScore"
  4551. v-if="w.score"
  4552. @click.stop="openScore(w)"
  4553. :class="{
  4554. rightW:
  4555. w.userid == userid ||
  4556. tType == 1 ||
  4557. tType == 4,
  4558. }"
  4559. >
  4560. {{ JSON.parse(w.score).wScore }}分
  4561. </div>
  4562. <div
  4563. class="answerScore"
  4564. @click.stop="openScore(w)"
  4565. v-else-if="courseDetail.userid == userid"
  4566. :class="{
  4567. rightW:
  4568. w.userid == userid ||
  4569. tType == 1 ||
  4570. tType == 4,
  4571. }"
  4572. >
  4573. 评分
  4574. </div>
  4575. <img
  4576. class="deleteImg"
  4577. src="../assets/deleteworks.png"
  4578. v-if="
  4579. w.userid == userid || tType == 1 || tType == 4
  4580. "
  4581. @click.stop="deleteWorks(w.wid)"
  4582. alt
  4583. />
  4584. </div>
  4585. <div class="comment" style="min-width: 200px">
  4586. <div class="worksName">
  4587. <div>{{ w.sName }}</div>
  4588. </div>
  4589. <div class="commentList">
  4590. <div class="commentList">
  4591. <div
  4592. class="commentImg"
  4593. @click="
  4594. isLikes(w.wid, userid, 1, null, w.isLikes)
  4595. "
  4596. >
  4597. <img
  4598. :src="w.isLikes == true ? likes : noLikes"
  4599. alt=""
  4600. />
  4601. </div>
  4602. <div>{{ w.likesCount }}</div>
  4603. </div>
  4604. <div
  4605. class="commentList"
  4606. style="margin-right: 15px"
  4607. >
  4608. <div
  4609. class="commentImg"
  4610. @click="
  4611. commentOther(
  4612. w,
  4613. toolIndex,
  4614. wIndex,
  4615. null,
  4616. g.id
  4617. )
  4618. "
  4619. >
  4620. <img
  4621. src="../assets/icon/comment/comment.png"
  4622. alt=""
  4623. />
  4624. </div>
  4625. <div>{{ w.commentCount }}</div>
  4626. </div>
  4627. </div>
  4628. </div>
  4629. </div>
  4630. </div>
  4631. <div class="group_work" v-else>暂无提交作业</div>
  4632. </div>
  4633. </div>
  4634. <div
  4635. :id="'tool-' + toolIndex"
  4636. :style="{
  4637. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4638. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4639. }"
  4640. class="worksDetailBox"
  4641. v-if="
  4642. worksStudent.length &&
  4643. worksStudent[toolIndex].length > 0
  4644. "
  4645. >
  4646. <div
  4647. class="works"
  4648. style="
  4649. width: 200px;
  4650. height: 140px;
  4651. margin: 10px 10px 10px 0;
  4652. border-radius: 15px;
  4653. box-shadow: 0 0 6px 1px #dfdada;
  4654. "
  4655. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4656. :key="wIndex"
  4657. >
  4658. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4659. <div class="workImg">
  4660. <img
  4661. :src="w.works"
  4662. @click="previewImg(w.works)"
  4663. alt
  4664. />
  4665. <div
  4666. class="answerScore"
  4667. v-if="w.score"
  4668. @click.stop="openScore(w)"
  4669. :class="{
  4670. rightW:
  4671. w.userid == userid || tType == 1 || tType == 4,
  4672. }"
  4673. >
  4674. {{ JSON.parse(w.score).wScore }}分
  4675. </div>
  4676. <div
  4677. class="answerScore"
  4678. @click.stop="openScore(w)"
  4679. v-else-if="courseDetail.userid == userid"
  4680. :class="{
  4681. rightW:
  4682. w.userid == userid || tType == 1 || tType == 4,
  4683. }"
  4684. >
  4685. 评分
  4686. </div>
  4687. <img
  4688. class="deleteImg"
  4689. src="../assets/deleteworks.png"
  4690. v-if="
  4691. w.userid == userid || tType == 1 || tType == 4
  4692. "
  4693. @click.stop="deleteWorks(w.wid)"
  4694. alt
  4695. />
  4696. </div>
  4697. <div class="comment" style="min-width: 200px">
  4698. <div class="worksName">
  4699. <div>{{ w.sName }}</div>
  4700. </div>
  4701. <div class="commentList">
  4702. <div class="commentList">
  4703. <div
  4704. class="commentImg"
  4705. @click="
  4706. isLikes(w.wid, userid, 1, null, w.isLikes)
  4707. "
  4708. >
  4709. <img
  4710. :src="w.isLikes == true ? likes : noLikes"
  4711. alt=""
  4712. />
  4713. </div>
  4714. <div>{{ w.likesCount }}</div>
  4715. </div>
  4716. <div class="commentList" style="margin-right: 15px">
  4717. <div
  4718. class="commentImg"
  4719. @click="commentOther(w, toolIndex, wIndex)"
  4720. >
  4721. <img
  4722. src="../assets/icon/comment/comment.png"
  4723. alt=""
  4724. />
  4725. </div>
  4726. <div>{{ w.commentCount }}</div>
  4727. </div>
  4728. </div>
  4729. </div>
  4730. </div>
  4731. </div>
  4732. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4733. 未提交
  4734. </div>
  4735. <div
  4736. class="noWorksS"
  4737. v-if="noWorksS && noWorksS[toolIndex].length"
  4738. >
  4739. <div
  4740. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4741. :key="sIndex"
  4742. class="noWorksName"
  4743. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4744. >
  4745. {{ s.student }}
  4746. </div>
  4747. </div>
  4748. </div>
  4749. <div
  4750. v-if="
  4751. tType &&
  4752. ((tType == 2 && sIsOpen == true) ||
  4753. tType == 1 ||
  4754. tType == 4) &&
  4755. tool.tool.indexOf(3) != -1
  4756. "
  4757. class="worksBox"
  4758. >
  4759. <div
  4760. class="zuoyeYulan"
  4761. v-if="
  4762. (worksStudent.length &&
  4763. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4764. "
  4765. >
  4766. <div class="worksTop">
  4767. <div>作业预览</div>
  4768. <div
  4769. class="corOpen"
  4770. @click="contract(toolIndex)"
  4771. v-if="
  4772. (isCloseList[toolIndex].isCloseBoolean) &&
  4773. isCloseList[toolIndex].isClose == 0
  4774. "
  4775. >
  4776. 折叠
  4777. </div>
  4778. <div
  4779. class="corOpen"
  4780. @click="contract(toolIndex)"
  4781. v-if="isCloseList[toolIndex].isClose == 1"
  4782. >
  4783. 展开
  4784. </div>
  4785. </div>
  4786. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4787. </div>
  4788. <div
  4789. class="group_workBox"
  4790. v-for="(g, gindex) in courseGroup.group"
  4791. :key="gindex"
  4792. >
  4793. <div class="group_box">
  4794. <div class="group_title">
  4795. <el-tooltip
  4796. class="item"
  4797. effect="light"
  4798. :content="g.name"
  4799. placement="top"
  4800. >
  4801. <div class="group_name">{{ g.name }}</div>
  4802. </el-tooltip>
  4803. </div>
  4804. <div
  4805. class="group_work"
  4806. v-if="
  4807. g.works &&
  4808. g.works.length &&
  4809. g.works[toolIndex].length
  4810. "
  4811. >
  4812. <div
  4813. class="works"
  4814. style="
  4815. width: 200px;
  4816. height: 140px;
  4817. margin: 10px 10px 10px 0;
  4818. border-radius: 15px;
  4819. box-shadow: 0 0 6px 1px #dfdada;
  4820. "
  4821. v-for="(w, wIndex) in g.works[toolIndex]"
  4822. :key="wIndex"
  4823. :class="w.type == 1 ? 'isTypeOne' : ''"
  4824. >
  4825. <div class="workImg">
  4826. <img
  4827. :src="w.works"
  4828. @click="previewImg(w.works)"
  4829. alt
  4830. />
  4831. <div
  4832. class="answerScore"
  4833. v-if="w.score"
  4834. @click.stop="openScore(w)"
  4835. :class="{
  4836. rightW:
  4837. w.userid == userid ||
  4838. tType == 1 ||
  4839. tType == 4,
  4840. }"
  4841. >
  4842. {{ JSON.parse(w.score).wScore }}分
  4843. </div>
  4844. <div
  4845. class="answerScore"
  4846. @click.stop="openScore(w)"
  4847. v-else-if="courseDetail.userid == userid"
  4848. :class="{
  4849. rightW:
  4850. w.userid == userid ||
  4851. tType == 1 ||
  4852. tType == 4,
  4853. }"
  4854. >
  4855. 评分
  4856. </div>
  4857. <img
  4858. class="deleteImg"
  4859. src="../assets/deleteworks.png"
  4860. v-if="
  4861. w.userid == userid || tType == 1 || tType == 4
  4862. "
  4863. @click.stop="deleteWorks(w.wid)"
  4864. alt
  4865. />
  4866. </div>
  4867. <div class="comment" style="min-width: 200px">
  4868. <div class="worksName">
  4869. <div>{{ w.sName }}</div>
  4870. </div>
  4871. <div class="commentList">
  4872. <div class="commentList">
  4873. <div
  4874. class="commentImg"
  4875. @click="
  4876. isLikes(w.wid, userid, 1, null, w.isLikes)
  4877. "
  4878. >
  4879. <img
  4880. :src="w.isLikes == true ? likes : noLikes"
  4881. alt=""
  4882. />
  4883. </div>
  4884. <div>{{ w.likesCount }}</div>
  4885. </div>
  4886. <div
  4887. class="commentList"
  4888. style="margin-right: 15px"
  4889. >
  4890. <div
  4891. class="commentImg"
  4892. @click="
  4893. commentOther(
  4894. w,
  4895. toolIndex,
  4896. wIndex,
  4897. null,
  4898. g.id
  4899. )
  4900. "
  4901. >
  4902. <img
  4903. src="../assets/icon/comment/comment.png"
  4904. alt=""
  4905. />
  4906. </div>
  4907. <div>{{ w.commentCount }}</div>
  4908. </div>
  4909. </div>
  4910. </div>
  4911. </div>
  4912. </div>
  4913. <div class="group_work" v-else>暂无提交作业</div>
  4914. </div>
  4915. </div>
  4916. <div
  4917. :id="'tool-' + toolIndex"
  4918. :style="{
  4919. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4920. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4921. }"
  4922. class="worksDetailBox"
  4923. v-if="
  4924. worksStudent.length &&
  4925. worksStudent[toolIndex].length > 0
  4926. "
  4927. >
  4928. <div
  4929. class="works"
  4930. style="
  4931. width: 200px;
  4932. height: 140px;
  4933. margin: 10px 10px 10px 0;
  4934. border-radius: 15px;
  4935. box-shadow: 0 0 6px 1px #dfdada;
  4936. "
  4937. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4938. :key="wIndex"
  4939. >
  4940. <!-- @click="previewImg(w.works)" -->
  4941. <div class="workImg">
  4942. <img
  4943. :src="w.works"
  4944. @click="previewImg(w.works)"
  4945. alt
  4946. />
  4947. <div
  4948. class="answerScore"
  4949. v-if="w.score"
  4950. @click.stop="openScore(w)"
  4951. :class="{
  4952. rightW:
  4953. w.userid == userid || tType == 1 || tType == 4,
  4954. }"
  4955. >
  4956. {{ JSON.parse(w.score).wScore }}分
  4957. </div>
  4958. <div
  4959. class="answerScore"
  4960. @click.stop="openScore(w)"
  4961. v-else-if="courseDetail.userid == userid"
  4962. :class="{
  4963. rightW:
  4964. w.userid == userid || tType == 1 || tType == 4,
  4965. }"
  4966. >
  4967. 评分
  4968. </div>
  4969. <img
  4970. class="deleteImg"
  4971. src="../assets/deleteworks.png"
  4972. v-if="
  4973. w.userid == userid || tType == 1 || tType == 4
  4974. "
  4975. @click.stop="deleteWorks(w.wid)"
  4976. alt
  4977. />
  4978. </div>
  4979. <div class="comment" style="min-width: 200px">
  4980. <div class="worksName">
  4981. <div>{{ w.sName }}</div>
  4982. </div>
  4983. <div class="commentList">
  4984. <div class="commentList">
  4985. <div
  4986. class="commentImg"
  4987. @click="
  4988. isLikes(w.wid, userid, 1, null, w.isLikes)
  4989. "
  4990. >
  4991. <img
  4992. :src="w.isLikes == true ? likes : noLikes"
  4993. alt=""
  4994. />
  4995. </div>
  4996. <div>{{ w.likesCount }}</div>
  4997. </div>
  4998. <div class="commentList" style="margin-right: 15px">
  4999. <div
  5000. class="commentImg"
  5001. @click="commentOther(w, toolIndex, wIndex)"
  5002. >
  5003. <img
  5004. src="../assets/icon/comment/comment.png"
  5005. alt=""
  5006. />
  5007. </div>
  5008. <div>{{ w.commentCount }}</div>
  5009. </div>
  5010. </div>
  5011. </div>
  5012. </div>
  5013. </div>
  5014. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5015. 未提交
  5016. </div>
  5017. <div
  5018. class="noWorksS"
  5019. v-if="noWorksS && noWorksS[toolIndex].length"
  5020. >
  5021. <div
  5022. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5023. :key="sIndex"
  5024. class="noWorksName"
  5025. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5026. >
  5027. {{ s.student }}
  5028. </div>
  5029. </div>
  5030. </div>
  5031. <div
  5032. v-if="
  5033. tType &&
  5034. ((tType == 2 && sIsOpen == true) ||
  5035. tType == 1 ||
  5036. tType == 4) &&
  5037. tool.tool.indexOf(6) != -1
  5038. "
  5039. class="worksBox"
  5040. >
  5041. <div
  5042. class="zuoyeYulan"
  5043. v-if="
  5044. (worksStudent.length &&
  5045. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5046. "
  5047. >
  5048. <div class="worksTop">
  5049. <div>作业预览</div>
  5050. <div
  5051. class="corOpen"
  5052. @click="contract(toolIndex)"
  5053. v-if="
  5054. (isCloseList[toolIndex].isCloseBoolean) &&
  5055. isCloseList[toolIndex].isClose == 0
  5056. "
  5057. >
  5058. 折叠
  5059. </div>
  5060. <div
  5061. class="corOpen"
  5062. @click="contract(toolIndex)"
  5063. v-if="isCloseList[toolIndex].isClose == 1"
  5064. >
  5065. 展开
  5066. </div>
  5067. </div>
  5068. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5069. </div>
  5070. <div
  5071. class="group_workBox"
  5072. v-for="(g, gindex) in courseGroup.group"
  5073. :key="gindex"
  5074. >
  5075. <div class="group_box">
  5076. <div class="group_title">
  5077. <el-tooltip
  5078. class="item"
  5079. effect="light"
  5080. :content="g.name"
  5081. placement="top"
  5082. >
  5083. <div class="group_name">{{ g.name }}</div>
  5084. </el-tooltip>
  5085. </div>
  5086. <div
  5087. class="group_work"
  5088. v-if="
  5089. g.works &&
  5090. g.works.length &&
  5091. g.works[toolIndex].length
  5092. "
  5093. >
  5094. <div
  5095. class="works"
  5096. style="
  5097. width: 200px;
  5098. height: 140px;
  5099. margin: 10px 10px 10px 0;
  5100. border-radius: 15px;
  5101. box-shadow: 0 0 6px 1px #dfdada;
  5102. "
  5103. v-for="(w, wIndex) in g.works[toolIndex]"
  5104. :key="wIndex"
  5105. :class="w.type == 1 ? 'isTypeOne' : ''"
  5106. >
  5107. <div class="workImg">
  5108. <img
  5109. :src="w.works"
  5110. @click="previewImg(w.works)"
  5111. alt
  5112. />
  5113. <div
  5114. class="answerScore"
  5115. v-if="w.score"
  5116. @click.stop="openScore(w)"
  5117. :class="{
  5118. rightW:
  5119. w.userid == userid ||
  5120. tType == 1 ||
  5121. tType == 4,
  5122. }"
  5123. >
  5124. {{ JSON.parse(w.score).wScore }}分
  5125. </div>
  5126. <div
  5127. class="answerScore"
  5128. @click.stop="openScore(w)"
  5129. v-else-if="courseDetail.userid == userid"
  5130. :class="{
  5131. rightW:
  5132. w.userid == userid ||
  5133. tType == 1 ||
  5134. tType == 4,
  5135. }"
  5136. >
  5137. 评分
  5138. </div>
  5139. <img
  5140. class="deleteImg"
  5141. src="../assets/deleteworks.png"
  5142. v-if="
  5143. w.userid == userid || tType == 1 || tType == 4
  5144. "
  5145. @click.stop="deleteWorks(w.wid)"
  5146. alt
  5147. />
  5148. </div>
  5149. <div class="comment" style="min-width: 200px">
  5150. <div class="worksName">
  5151. <div>{{ w.sName }}</div>
  5152. </div>
  5153. <div class="commentList">
  5154. <div class="commentList">
  5155. <div
  5156. class="commentImg"
  5157. @click="
  5158. isLikes(w.wid, userid, 1, null, w.isLikes)
  5159. "
  5160. >
  5161. <img
  5162. :src="w.isLikes == true ? likes : noLikes"
  5163. alt=""
  5164. />
  5165. </div>
  5166. <div>{{ w.likesCount }}</div>
  5167. </div>
  5168. <div
  5169. class="commentList"
  5170. style="margin-right: 15px"
  5171. >
  5172. <div
  5173. class="commentImg"
  5174. @click="
  5175. commentOther(
  5176. w,
  5177. toolIndex,
  5178. wIndex,
  5179. null,
  5180. g.id
  5181. )
  5182. "
  5183. >
  5184. <img
  5185. src="../assets/icon/comment/comment.png"
  5186. alt=""
  5187. />
  5188. </div>
  5189. <div>{{ w.commentCount }}</div>
  5190. </div>
  5191. </div>
  5192. </div>
  5193. </div>
  5194. </div>
  5195. <div class="group_work" v-else>暂无提交作业</div>
  5196. </div>
  5197. </div>
  5198. <div
  5199. :id="'tool-' + toolIndex"
  5200. :style="{
  5201. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5202. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5203. }"
  5204. class="worksDetailBox"
  5205. v-if="
  5206. worksStudent.length &&
  5207. worksStudent[toolIndex].length > 0
  5208. "
  5209. >
  5210. <div
  5211. class="works"
  5212. style="
  5213. width: 200px;
  5214. height: 140px;
  5215. margin: 10px 10px 10px 0;
  5216. border-radius: 15px;
  5217. box-shadow: 0 0 6px 1px #dfdada;
  5218. "
  5219. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5220. :key="wIndex"
  5221. >
  5222. <!-- @click="previewImg(w.works)" -->
  5223. <div class="workImg">
  5224. <img
  5225. :src="w.works"
  5226. @click="previewImg(w.works)"
  5227. alt
  5228. />
  5229. <div
  5230. class="answerScore"
  5231. v-if="w.score"
  5232. @click.stop="openScore(w)"
  5233. :class="{
  5234. rightW:
  5235. w.userid == userid || tType == 1 || tType == 4,
  5236. }"
  5237. >
  5238. {{ JSON.parse(w.score).wScore }}分
  5239. </div>
  5240. <div
  5241. class="answerScore"
  5242. @click.stop="openScore(w)"
  5243. v-else-if="courseDetail.userid == userid"
  5244. :class="{
  5245. rightW:
  5246. w.userid == userid || tType == 1 || tType == 4,
  5247. }"
  5248. >
  5249. 评分
  5250. </div>
  5251. <img
  5252. class="deleteImg"
  5253. src="../assets/deleteworks.png"
  5254. v-if="
  5255. w.userid == userid || tType == 1 || tType == 4
  5256. "
  5257. @click.stop="deleteWorks(w.wid)"
  5258. alt
  5259. />
  5260. </div>
  5261. <div class="comment" style="min-width: 200px">
  5262. <div class="worksName">
  5263. <div>{{ w.sName }}</div>
  5264. </div>
  5265. <div class="commentList">
  5266. <div class="commentList">
  5267. <div
  5268. class="commentImg"
  5269. @click="
  5270. isLikes(w.wid, userid, 1, null, w.isLikes)
  5271. "
  5272. >
  5273. <img
  5274. :src="w.isLikes == true ? likes : noLikes"
  5275. alt=""
  5276. />
  5277. </div>
  5278. <div>{{ w.likesCount }}</div>
  5279. </div>
  5280. <div class="commentList" style="margin-right: 15px">
  5281. <div
  5282. class="commentImg"
  5283. @click="commentOther(w, toolIndex, wIndex)"
  5284. >
  5285. <img
  5286. src="../assets/icon/comment/comment.png"
  5287. alt=""
  5288. />
  5289. </div>
  5290. <div>{{ w.commentCount }}</div>
  5291. </div>
  5292. </div>
  5293. </div>
  5294. </div>
  5295. </div>
  5296. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5297. 未提交
  5298. </div>
  5299. <div
  5300. class="noWorksS"
  5301. v-if="noWorksS && noWorksS[toolIndex].length"
  5302. >
  5303. <div
  5304. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5305. :key="sIndex"
  5306. class="noWorksName"
  5307. >
  5308. {{ s.student }}
  5309. </div>
  5310. </div>
  5311. </div>
  5312. <div
  5313. v-if="
  5314. tType &&
  5315. ((tType == 2 && sIsOpen == true) ||
  5316. tType == 1 ||
  5317. tType == 4) &&
  5318. tool.tool.indexOf(7) != -1
  5319. "
  5320. class="worksBox"
  5321. >
  5322. <div
  5323. class="zuoyeYulan"
  5324. v-if="
  5325. (worksStudent.length &&
  5326. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5327. "
  5328. >
  5329. <div class="worksTop">
  5330. <div>作业预览</div>
  5331. <div
  5332. class="corOpen"
  5333. @click="contract(toolIndex)"
  5334. v-if="
  5335. (isCloseList[toolIndex].isCloseBoolean) &&
  5336. isCloseList[toolIndex].isClose == 0
  5337. "
  5338. >
  5339. 折叠
  5340. </div>
  5341. <div
  5342. class="corOpen"
  5343. @click="contract(toolIndex)"
  5344. v-if="isCloseList[toolIndex].isClose == 1"
  5345. >
  5346. 展开
  5347. </div>
  5348. </div>
  5349. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5350. </div>
  5351. <div
  5352. class="group_workBox"
  5353. v-for="(g, gindex) in courseGroup.group"
  5354. :key="gindex"
  5355. >
  5356. <div class="group_box">
  5357. <div class="group_title">
  5358. <el-tooltip
  5359. class="item"
  5360. effect="light"
  5361. :content="g.name"
  5362. placement="top"
  5363. >
  5364. <div class="group_name">{{ g.name }}</div>
  5365. </el-tooltip>
  5366. </div>
  5367. <div
  5368. class="group_work"
  5369. v-if="
  5370. g.works &&
  5371. g.works.length &&
  5372. g.works[toolIndex].length
  5373. "
  5374. >
  5375. <div
  5376. class="works"
  5377. style="
  5378. width: 200px;
  5379. height: 140px;
  5380. margin: 10px 10px 10px 0;
  5381. border-radius: 15px;
  5382. box-shadow: 0 0 6px 1px #dfdada;
  5383. "
  5384. v-for="(w, wIndex) in g.works[toolIndex]"
  5385. :key="wIndex"
  5386. :class="w.type == 1 ? 'isTypeOne' : ''"
  5387. >
  5388. <div class="workImg">
  5389. <img
  5390. :src="w.works"
  5391. @click="previewImg(w.works)"
  5392. alt
  5393. />
  5394. <div
  5395. class="answerScore"
  5396. v-if="w.score"
  5397. @click.stop="openScore(w)"
  5398. :class="{
  5399. rightW:
  5400. w.userid == userid ||
  5401. tType == 1 ||
  5402. tType == 4,
  5403. }"
  5404. >
  5405. {{ JSON.parse(w.score).wScore }}分
  5406. </div>
  5407. <div
  5408. class="answerScore"
  5409. @click.stop="openScore(w)"
  5410. v-else-if="courseDetail.userid == userid"
  5411. :class="{
  5412. rightW:
  5413. w.userid == userid ||
  5414. tType == 1 ||
  5415. tType == 4,
  5416. }"
  5417. >
  5418. 评分
  5419. </div>
  5420. <img
  5421. class="deleteImg"
  5422. src="../assets/deleteworks.png"
  5423. v-if="
  5424. w.userid == userid || tType == 1 || tType == 4
  5425. "
  5426. @click.stop="deleteWorks(w.wid)"
  5427. alt
  5428. />
  5429. </div>
  5430. <div class="comment" style="min-width: 200px">
  5431. <div class="worksName">
  5432. <div>{{ w.sName }}</div>
  5433. </div>
  5434. <div class="commentList">
  5435. <div class="commentList">
  5436. <div
  5437. class="commentImg"
  5438. @click="
  5439. isLikes(w.wid, userid, 1, null, w.isLikes)
  5440. "
  5441. >
  5442. <img
  5443. :src="w.isLikes == true ? likes : noLikes"
  5444. alt=""
  5445. />
  5446. </div>
  5447. <div>{{ w.likesCount }}</div>
  5448. </div>
  5449. <div
  5450. class="commentList"
  5451. style="margin-right: 15px"
  5452. >
  5453. <div
  5454. class="commentImg"
  5455. @click="
  5456. commentOther(
  5457. w,
  5458. toolIndex,
  5459. wIndex,
  5460. null,
  5461. g.id
  5462. )
  5463. "
  5464. >
  5465. <img
  5466. src="../assets/icon/comment/comment.png"
  5467. alt=""
  5468. />
  5469. </div>
  5470. <div>{{ w.commentCount }}</div>
  5471. </div>
  5472. </div>
  5473. </div>
  5474. </div>
  5475. </div>
  5476. <div class="group_work" v-else>暂无提交作业</div>
  5477. </div>
  5478. </div>
  5479. <div
  5480. :id="'tool-' + toolIndex"
  5481. :style="{
  5482. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5483. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5484. }"
  5485. class="worksDetailBox"
  5486. v-if="
  5487. worksStudent.length &&
  5488. worksStudent[toolIndex].length > 0
  5489. "
  5490. >
  5491. <div
  5492. class="works"
  5493. style="
  5494. width: 200px;
  5495. height: 140px;
  5496. margin: 10px 10px 10px 0;
  5497. border-radius: 15px;
  5498. box-shadow: 0 0 6px 1px #dfdada;
  5499. "
  5500. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5501. :key="wIndex"
  5502. >
  5503. <!-- @click="previewImg(w.works)" -->
  5504. <div class="workImg">
  5505. <img
  5506. :src="w.works"
  5507. @click="previewImg(w.works)"
  5508. alt
  5509. />
  5510. <div
  5511. class="answerScore"
  5512. v-if="w.score"
  5513. @click.stop="openScore(w)"
  5514. :class="{
  5515. rightW:
  5516. w.userid == userid || tType == 1 || tType == 4,
  5517. }"
  5518. >
  5519. {{ JSON.parse(w.score).wScore }}分
  5520. </div>
  5521. <div
  5522. class="answerScore"
  5523. @click.stop="openScore(w)"
  5524. v-else-if="courseDetail.userid == userid"
  5525. :class="{
  5526. rightW:
  5527. w.userid == userid || tType == 1 || tType == 4,
  5528. }"
  5529. >
  5530. 评分
  5531. </div>
  5532. <img
  5533. class="deleteImg"
  5534. src="../assets/deleteworks.png"
  5535. v-if="
  5536. w.userid == userid || tType == 1 || tType == 4
  5537. "
  5538. @click.stop="deleteWorks(w.wid)"
  5539. alt
  5540. />
  5541. </div>
  5542. <div class="comment" style="min-width: 200px">
  5543. <div class="worksName">
  5544. <div>{{ w.sName }}</div>
  5545. </div>
  5546. <div class="commentList">
  5547. <div class="commentList">
  5548. <div
  5549. class="commentImg"
  5550. @click="
  5551. isLikes(w.wid, userid, 1, null, w.isLikes)
  5552. "
  5553. >
  5554. <img
  5555. :src="w.isLikes == true ? likes : noLikes"
  5556. alt=""
  5557. />
  5558. </div>
  5559. <div>{{ w.likesCount }}</div>
  5560. </div>
  5561. <div class="commentList" style="margin-right: 15px">
  5562. <div
  5563. class="commentImg"
  5564. @click="commentOther(w, toolIndex, wIndex)"
  5565. >
  5566. <img
  5567. src="../assets/icon/comment/comment.png"
  5568. alt=""
  5569. />
  5570. </div>
  5571. <div>{{ w.commentCount }}</div>
  5572. </div>
  5573. </div>
  5574. </div>
  5575. </div>
  5576. </div>
  5577. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5578. 未提交
  5579. </div>
  5580. <div
  5581. class="noWorksS"
  5582. v-if="noWorksS && noWorksS[toolIndex].length"
  5583. >
  5584. <div
  5585. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5586. :key="sIndex"
  5587. class="noWorksName"
  5588. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5589. >
  5590. {{ s.student }}
  5591. </div>
  5592. </div>
  5593. </div>
  5594. <div
  5595. v-if="
  5596. tType &&
  5597. ((tType == 2 && sIsOpen == true) ||
  5598. tType == 1 ||
  5599. tType == 4) &&
  5600. tool.tool.indexOf(26) != -1
  5601. "
  5602. class="worksBox"
  5603. >
  5604. <div
  5605. class="zuoyeYulan"
  5606. v-if="
  5607. worksStudent.length &&
  5608. worksStudent[toolIndex].length > 0
  5609. "
  5610. >
  5611. <div class="worksTop">
  5612. <div>作业预览</div>
  5613. <div
  5614. class="corOpen"
  5615. @click="contract(toolIndex)"
  5616. v-if="
  5617. (isCloseList[toolIndex].isCloseBoolean) &&
  5618. isCloseList[toolIndex].isClose == 0
  5619. "
  5620. >
  5621. 折叠
  5622. </div>
  5623. <div
  5624. class="corOpen"
  5625. @click="contract(toolIndex)"
  5626. v-if="isCloseList[toolIndex].isClose == 1"
  5627. >
  5628. 展开
  5629. </div>
  5630. </div>
  5631. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5632. </div>
  5633. <div
  5634. :id="'tool-' + toolIndex"
  5635. :style="{
  5636. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5637. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5638. }"
  5639. class="worksDetailBox"
  5640. v-if="
  5641. worksStudent.length &&
  5642. worksStudent[toolIndex].length > 0
  5643. "
  5644. >
  5645. <div
  5646. class="works"
  5647. style="width: 240px; height: 140px; overflow: hidden"
  5648. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5649. :key="wIndex"
  5650. :class="w.type == 1 ? 'isTypeOne' : ''"
  5651. >
  5652. <div class="workImg" v-if="w.type == 0">
  5653. <img
  5654. :src="w.works"
  5655. @click="previewImg(w.works)"
  5656. alt
  5657. />
  5658. <img
  5659. class="deleteImg"
  5660. src="../assets/deleteworks.png"
  5661. v-if="
  5662. w.userid == userid || tType == 1 || tType == 4
  5663. "
  5664. @click.stop="deleteWorks(w.wid)"
  5665. alt
  5666. />
  5667. </div>
  5668. <div class="workImg" v-if="w.type == 1">
  5669. <img :src="word" @click="openFile(w.works)" alt />
  5670. <img
  5671. class="deleteImg"
  5672. src="../assets/deleteworks.png"
  5673. v-if="
  5674. w.userid == userid || tType == 1 || tType == 4
  5675. "
  5676. @click.stop="deleteWorks(w.wid)"
  5677. alt
  5678. />
  5679. </div>
  5680. <div class="worksName">
  5681. <div>{{ w.sName }}</div>
  5682. </div>
  5683. </div>
  5684. </div>
  5685. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5686. 未提交
  5687. </div>
  5688. <div
  5689. class="noWorksS"
  5690. v-if="noWorksS && noWorksS[toolIndex].length"
  5691. >
  5692. <div
  5693. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5694. :key="sIndex"
  5695. class="noWorksName"
  5696. >
  5697. {{ s.student }}
  5698. </div>
  5699. </div>
  5700. </div>
  5701. <div
  5702. v-if="
  5703. tType &&
  5704. ((tType == 2 && sIsOpen == true) ||
  5705. tType == 1 ||
  5706. tType == 4) &&
  5707. tool.tool.indexOf(40) != -1
  5708. "
  5709. class="worksBox"
  5710. >
  5711. <div
  5712. class="zuoyeYulan"
  5713. v-if="
  5714. worksStudent.length &&
  5715. worksStudent[toolIndex].length > 0
  5716. "
  5717. >
  5718. <div class="worksTop">
  5719. <div>作业预览</div>
  5720. <div
  5721. class="corOpen"
  5722. @click="contract(toolIndex)"
  5723. v-if="
  5724. (isCloseList[toolIndex].isCloseBoolean) &&
  5725. isCloseList[toolIndex].isClose == 0
  5726. "
  5727. >
  5728. 折叠
  5729. </div>
  5730. <div
  5731. class="corOpen"
  5732. @click="contract(toolIndex)"
  5733. v-if="isCloseList[toolIndex].isClose == 1"
  5734. >
  5735. 展开
  5736. </div>
  5737. </div>
  5738. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5739. </div>
  5740. <div
  5741. :id="'tool-' + toolIndex"
  5742. :style="{
  5743. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5744. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5745. }"
  5746. class="worksDetailBox"
  5747. v-if="
  5748. worksStudent.length &&
  5749. worksStudent[toolIndex].length > 0
  5750. "
  5751. >
  5752. <div
  5753. class="works"
  5754. style="
  5755. width: 200px;
  5756. height: 140px;
  5757. margin: 10px 10px 10px 0;
  5758. border-radius: 15px;
  5759. box-shadow: 0 0 6px 1px #dfdada;
  5760. "
  5761. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5762. :key="wIndex"
  5763. :class="w.type == 1 ? 'isTypeOne' : ''"
  5764. >
  5765. <div class="workImg">
  5766. <img
  5767. src="../assets/icon/works/noImg.png"
  5768. @click="openPj(w.works, toolIndex)"
  5769. alt
  5770. />
  5771. <img
  5772. class="deleteImg"
  5773. src="../assets/deleteworks.png"
  5774. v-if="
  5775. w.userid == userid || tType == 1 || tType == 4
  5776. "
  5777. @click.stop="deleteWorks(w.wid)"
  5778. alt
  5779. />
  5780. </div>
  5781. <div class="comment" style="min-width: 200px">
  5782. <div class="worksName">
  5783. <div>{{ w.sName }}</div>
  5784. </div>
  5785. <div class="commentList">
  5786. <div class="commentList">
  5787. <div
  5788. class="commentImg"
  5789. @click="
  5790. isLikes(w.wid, userid, 1, null, w.isLikes)
  5791. "
  5792. >
  5793. <img
  5794. :src="w.isLikes == true ? likes : noLikes"
  5795. alt=""
  5796. />
  5797. </div>
  5798. <div>{{ w.likesCount }}</div>
  5799. </div>
  5800. <div class="commentList" style="margin-right: 15px">
  5801. <div
  5802. class="commentImg"
  5803. @click="commentOther(w, toolIndex, wIndex)"
  5804. >
  5805. <img
  5806. src="../assets/icon/comment/comment.png"
  5807. alt=""
  5808. />
  5809. </div>
  5810. <div>{{ w.commentCount }}</div>
  5811. </div>
  5812. </div>
  5813. </div>
  5814. </div>
  5815. </div>
  5816. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5817. 未提交
  5818. </div>
  5819. <div
  5820. class="noWorksS"
  5821. v-if="noWorksS && noWorksS[toolIndex].length"
  5822. >
  5823. <div
  5824. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5825. :key="sIndex"
  5826. class="noWorksName"
  5827. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5828. >
  5829. {{ s.student }}
  5830. </div>
  5831. </div>
  5832. </div>
  5833. <div
  5834. v-if="
  5835. tType &&
  5836. tType == 2 &&
  5837. !sIsOpen &&
  5838. tool.tool.indexOf(40) != -1
  5839. "
  5840. class="worksBox"
  5841. >
  5842. <div
  5843. class="zuoyeYulan"
  5844. v-if="workStudent[toolIndex].length > 0"
  5845. >
  5846. <span class="worksTitle">作业预览</span>
  5847. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5848. </div>
  5849. <div
  5850. class="worksDetailBox"
  5851. v-if="workStudent[toolIndex].length > 0"
  5852. >
  5853. <div
  5854. class="works"
  5855. style="
  5856. width: 200px;
  5857. height: 140px;
  5858. margin: 10px 10px 10px 0;
  5859. "
  5860. v-for="(w, wIndex) in workStudent[toolIndex]"
  5861. :key="wIndex"
  5862. >
  5863. <div class="workImg">
  5864. <img
  5865. src="../assets/icon/works/noImg.png"
  5866. @click="openPj(w.works, toolIndex)"
  5867. alt
  5868. />
  5869. <img
  5870. class="deleteImg"
  5871. src="../assets/deleteworks.png"
  5872. v-if="
  5873. w.userid == userid || tType == 1 || tType == 4
  5874. "
  5875. @click.stop="deleteWorks(w.wid)"
  5876. alt
  5877. />
  5878. </div>
  5879. <div class="worksName">
  5880. <div>{{ w.sName }}</div>
  5881. </div>
  5882. </div>
  5883. </div>
  5884. </div>
  5885. <div
  5886. v-if="
  5887. tType &&
  5888. ((tType == 2 && sIsOpen == true) ||
  5889. tType == 1 ||
  5890. tType == 4) &&
  5891. tool.tool.indexOf(41) != -1
  5892. "
  5893. >
  5894. <AnswerData2
  5895. v-if="
  5896. worksStudent.length &&
  5897. worksStudent[toolIndex].length > 0
  5898. "
  5899. :problemJson="tool.selectJson.answer"
  5900. :people="worksStudent[toolIndex]"
  5901. ></AnswerData2>
  5902. </div>
  5903. <div
  5904. v-if="
  5905. tType &&
  5906. ((tType == 2 && sIsOpen == true) ||
  5907. tType == 1 ||
  5908. tType == 4) &&
  5909. tool.tool.indexOf(41) != -1
  5910. "
  5911. class="worksBox"
  5912. >
  5913. <div
  5914. class="zuoyeYulan"
  5915. v-if="
  5916. worksStudent.length &&
  5917. worksStudent[toolIndex].length > 0
  5918. "
  5919. >
  5920. <div class="worksTop">
  5921. <div>作业预览</div>
  5922. <div
  5923. class="corOpen"
  5924. @click="contract(toolIndex)"
  5925. v-if="
  5926. (isCloseList[toolIndex].isCloseBoolean) &&
  5927. isCloseList[toolIndex].isClose == 0
  5928. "
  5929. >
  5930. 折叠
  5931. </div>
  5932. <div
  5933. class="corOpen"
  5934. @click="contract(toolIndex)"
  5935. v-if="isCloseList[toolIndex].isClose == 1"
  5936. >
  5937. 展开
  5938. </div>
  5939. </div>
  5940. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5941. </div>
  5942. <div
  5943. :id="'tool-' + toolIndex"
  5944. :style="{
  5945. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5946. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5947. }"
  5948. class="worksDetailBox"
  5949. v-if="
  5950. worksStudent.length &&
  5951. worksStudent[toolIndex].length > 0
  5952. "
  5953. >
  5954. <div
  5955. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5956. :key="wIndex"
  5957. class="isWorksName2"
  5958. @click="openXz(w, toolIndex)"
  5959. >
  5960. {{ w.sName }}
  5961. <img
  5962. class="deleteImg deleteImg2"
  5963. src="../assets/deleteworks.png"
  5964. v-if="w.userid == userid || tType == 1 || tType == 4"
  5965. @click.stop="deleteWorks(w.wid)"
  5966. alt
  5967. />
  5968. </div>
  5969. <!-- <div
  5970. class="works"
  5971. style="
  5972. width: 200px;
  5973. height: 140px;
  5974. margin: 10px 10px 10px 0;
  5975. border-radius: 15px;
  5976. box-shadow: 0 0 6px 1px #dfdada;
  5977. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5978. :class="w.type == 5 ? 'isTypeOne' : ''">
  5979. <div class="workImg">
  5980. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5981. </div>
  5982. <div class="worksName">
  5983. <div>{{ w.sName }}</div>
  5984. </div>
  5985. </div> -->
  5986. </div>
  5987. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5988. 未提交
  5989. </div>
  5990. <div
  5991. class="noWorksS"
  5992. v-if="noWorksS && noWorksS[toolIndex].length"
  5993. >
  5994. <div
  5995. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5996. :key="sIndex"
  5997. class="noWorksName"
  5998. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5999. >
  6000. {{ s.student }}
  6001. </div>
  6002. </div>
  6003. </div>
  6004. <div
  6005. v-if="
  6006. tType &&
  6007. tType == 2 &&
  6008. !sIsOpen &&
  6009. tool.tool.indexOf(41) != -1
  6010. "
  6011. class="worksBox"
  6012. >
  6013. <div
  6014. class="zuoyeYulan"
  6015. v-if="workStudent[toolIndex].length > 0"
  6016. >
  6017. <span class="worksTitle">作业预览</span>
  6018. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6019. </div>
  6020. <div
  6021. class="worksDetailBox"
  6022. v-if="workStudent[toolIndex].length > 0"
  6023. >
  6024. <div
  6025. class="works"
  6026. style="
  6027. width: 200px;
  6028. height: 140px;
  6029. margin: 10px 10px 10px 0;
  6030. "
  6031. v-for="(w, wIndex) in workStudent[toolIndex]"
  6032. :key="wIndex"
  6033. >
  6034. <div class="workImg">
  6035. <img
  6036. src="../assets/icon/works/noImg.png"
  6037. @click="openXz(w, toolIndex)"
  6038. alt
  6039. />
  6040. <img
  6041. class="deleteImg"
  6042. src="../assets/deleteworks.png"
  6043. v-if="
  6044. w.userid == userid || tType == 1 || tType == 4
  6045. "
  6046. @click.stop="deleteWorks(w.wid)"
  6047. alt
  6048. />
  6049. </div>
  6050. <div class="worksName">
  6051. <div>{{ w.sName }}</div>
  6052. </div>
  6053. </div>
  6054. </div>
  6055. </div>
  6056. <div v-if="false" class="xuan_right_box">
  6057. <div
  6058. class="tool_right_box"
  6059. v-for="(item, index) in tool.sentenceList"
  6060. :key="index"
  6061. >
  6062. <div>
  6063. <span
  6064. style="word-break: break-all; white-space: normal"
  6065. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6066. >
  6067. </div>
  6068. <div class="right_box_xuan">
  6069. <span>正确率</span>
  6070. <span>{{
  6071. (checkJson[toolIndex][index].right
  6072. ? checkJson[toolIndex][index].right
  6073. : 0) + "%"
  6074. }}</span>
  6075. </div>
  6076. <div class="right_box_xuan">
  6077. <span>答对人数</span>
  6078. <span>{{
  6079. checkJson[toolIndex][index].rightPerson.length
  6080. }}</span>
  6081. </div>
  6082. </div>
  6083. </div>
  6084. <div
  6085. v-if="
  6086. tType &&
  6087. ((tType == 2 && sIsOpen == true) ||
  6088. tType == 1 ||
  6089. tType == 4) &&
  6090. tool.tool.indexOf(47) != -1
  6091. "
  6092. >
  6093. <AnswerData
  6094. v-if="
  6095. checkJson[toolIndex].length &&
  6096. (tool.sentenceList || tool.sentenceList.length > 0)
  6097. "
  6098. :people="checkJson[toolIndex]"
  6099. ></AnswerData>
  6100. </div>
  6101. <div
  6102. v-if="
  6103. tType &&
  6104. tType == 2 &&
  6105. !sIsOpen &&
  6106. tool.tool.indexOf(47) != -1
  6107. "
  6108. class="worksBox"
  6109. >
  6110. <div
  6111. class="zuoyeYulan"
  6112. v-if="workStudent[toolIndex].length > 0"
  6113. >
  6114. <span class="worksTitle">作业预览</span>
  6115. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6116. </div>
  6117. <div
  6118. class="worksDetailBox"
  6119. v-if="workStudent[toolIndex].length > 0"
  6120. >
  6121. <div
  6122. class="works"
  6123. style="
  6124. width: 200px;
  6125. height: 140px;
  6126. margin: 10px 10px 10px 0;
  6127. "
  6128. v-for="(w, wIndex) in workStudent[toolIndex]"
  6129. :key="wIndex"
  6130. >
  6131. <!-- @click="openXz(w, toolIndex)" -->
  6132. <div class="workImg" @click="openSen(w, toolIndex)">
  6133. <img src="../assets/icon/works/noImg.png" alt />
  6134. <img
  6135. class="deleteImg"
  6136. src="../assets/deleteworks.png"
  6137. v-if="
  6138. w.userid == userid || tType == 1 || tType == 4
  6139. "
  6140. @click.stop="deleteWorks(w.wid)"
  6141. alt
  6142. />
  6143. </div>
  6144. <div class="worksName">
  6145. <div>
  6146. {{ w.sName }}
  6147. </div>
  6148. </div>
  6149. </div>
  6150. </div>
  6151. </div>
  6152. <div
  6153. v-if="
  6154. tType &&
  6155. ((tType == 2 && sIsOpen == true) ||
  6156. tType == 1 ||
  6157. tType == 4) &&
  6158. tool.tool.indexOf(47) != -1
  6159. "
  6160. class="worksBox"
  6161. >
  6162. <div
  6163. class="zuoyeYulan"
  6164. v-if="
  6165. worksStudent.length &&
  6166. worksStudent[toolIndex].length > 0
  6167. "
  6168. >
  6169. <div class="worksTop">
  6170. <div>作业预览</div>
  6171. <div
  6172. class="corOpen"
  6173. @click="contract(toolIndex)"
  6174. v-if="
  6175. (isCloseList[toolIndex].isCloseBoolean) &&
  6176. isCloseList[toolIndex].isClose == 0
  6177. "
  6178. >
  6179. 折叠
  6180. </div>
  6181. <div
  6182. class="corOpen"
  6183. @click="contract(toolIndex)"
  6184. v-if="isCloseList[toolIndex].isClose == 1"
  6185. >
  6186. 展开
  6187. </div>
  6188. </div>
  6189. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6190. </div>
  6191. <div
  6192. :id="'tool-' + toolIndex"
  6193. :style="{
  6194. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6195. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6196. }"
  6197. class="worksDetailBox"
  6198. v-if="
  6199. worksStudent.length &&
  6200. worksStudent[toolIndex].length > 0
  6201. "
  6202. >
  6203. <!-- @click="openXz(w, toolIndex)" -->
  6204. <div
  6205. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6206. :key="wIndex"
  6207. class="isWorksName2"
  6208. @click="openSen(w, toolIndex)"
  6209. >
  6210. {{ w.sName }}
  6211. <img
  6212. class="deleteImg deleteImg2"
  6213. src="../assets/deleteworks.png"
  6214. v-if="w.userid == userid || tType == 1 || tType == 4"
  6215. @click.stop="deleteWorks(w.wid)"
  6216. alt
  6217. />
  6218. </div>
  6219. </div>
  6220. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6221. 未提交
  6222. </div>
  6223. <div
  6224. class="noWorksS"
  6225. v-if="noWorksS && noWorksS[toolIndex].length"
  6226. >
  6227. <div
  6228. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6229. :key="sIndex"
  6230. class="noWorksName"
  6231. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6232. >
  6233. {{ s.student }}
  6234. </div>
  6235. </div>
  6236. </div>
  6237. <div
  6238. v-if="
  6239. tType &&
  6240. ((tType == 2 && sIsOpen == true) ||
  6241. tType == 1 ||
  6242. tType == 4) &&
  6243. tool.tool.indexOf(48) != -1
  6244. "
  6245. class="worksBox"
  6246. >
  6247. <div
  6248. class="zuoyeYulan"
  6249. v-if="
  6250. worksStudent.length &&
  6251. worksStudent[toolIndex].length > 0
  6252. "
  6253. >
  6254. <div class="worksTop">
  6255. <div>作业预览</div>
  6256. <div
  6257. class="corOpen"
  6258. @click="contract(toolIndex)"
  6259. v-if="
  6260. (isCloseList[toolIndex].isCloseBoolean) &&
  6261. isCloseList[toolIndex].isClose == 0
  6262. "
  6263. >
  6264. 折叠
  6265. </div>
  6266. <div
  6267. class="corOpen"
  6268. @click="contract(toolIndex)"
  6269. v-if="isCloseList[toolIndex].isClose == 1"
  6270. >
  6271. 展开
  6272. </div>
  6273. </div>
  6274. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6275. </div>
  6276. <div
  6277. :id="'tool-' + toolIndex"
  6278. :style="{
  6279. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6280. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6281. }"
  6282. class="worksDetailBox"
  6283. v-if="
  6284. worksStudent.length &&
  6285. worksStudent[toolIndex].length > 0
  6286. "
  6287. >
  6288. <div
  6289. class="works"
  6290. style="
  6291. width: 200px;
  6292. height: 140px;
  6293. margin: 10px 10px 10px 0;
  6294. border-radius: 15px;
  6295. box-shadow: 0 0 6px 1px #dfdada;
  6296. "
  6297. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6298. :key="wIndex"
  6299. :class="w.type == 1 ? 'isTypeOne' : ''"
  6300. >
  6301. <div class="workImg">
  6302. <img :src="word" @click="openTable(w)" alt />
  6303. <!-- @click="openFile(w.works)" -->
  6304. <div
  6305. class="answerScore"
  6306. v-if="w.score"
  6307. @click.stop="openScore(w)"
  6308. :class="{
  6309. rightW:
  6310. w.userid == userid ||
  6311. tType == 1 ||
  6312. tType == 4 ||
  6313. w.ateacher == userid,
  6314. }"
  6315. >
  6316. {{ JSON.parse(w.score).wScore }}分
  6317. </div>
  6318. <div
  6319. class="answerScore"
  6320. @click.stop="openScore(w)"
  6321. v-else-if="courseDetail.userid == userid"
  6322. :class="{
  6323. rightW:
  6324. w.userid == userid ||
  6325. tType == 1 ||
  6326. tType == 4 ||
  6327. w.ateacher == userid,
  6328. }"
  6329. >
  6330. 评分
  6331. </div>
  6332. <img
  6333. class="deleteImg"
  6334. src="../assets/deleteworks.png"
  6335. v-if="
  6336. w.userid == userid || tType == 1 || tType == 4
  6337. "
  6338. @click.stop="deleteWorks(w.wid)"
  6339. alt
  6340. />
  6341. </div>
  6342. <div class="comment" style="min-width: 200px">
  6343. <div class="worksName">
  6344. <div>{{ w.sName }}</div>
  6345. </div>
  6346. <div class="commentList">
  6347. <div class="commentList">
  6348. <div
  6349. class="commentImg"
  6350. @click="
  6351. isLikes(w.wid, userid, 1, null, w.isLikes)
  6352. "
  6353. >
  6354. <img
  6355. :src="w.isLikes == true ? likes : noLikes"
  6356. alt=""
  6357. />
  6358. </div>
  6359. <div>{{ w.likesCount }}</div>
  6360. </div>
  6361. <div class="commentList" style="margin-right: 15px">
  6362. <div
  6363. class="commentImg"
  6364. @click="commentOther(w, toolIndex, wIndex)"
  6365. >
  6366. <img
  6367. src="../assets/icon/comment/comment.png"
  6368. alt=""
  6369. />
  6370. </div>
  6371. <div>{{ w.commentCount }}</div>
  6372. </div>
  6373. </div>
  6374. </div>
  6375. </div>
  6376. </div>
  6377. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6378. 未提交
  6379. </div>
  6380. <div
  6381. class="noWorksS"
  6382. v-if="noWorksS && noWorksS[toolIndex].length"
  6383. >
  6384. <div
  6385. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6386. :key="sIndex"
  6387. class="noWorksName"
  6388. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6389. >
  6390. {{ s.student }}
  6391. </div>
  6392. </div>
  6393. </div>
  6394. <div
  6395. v-if="
  6396. tType &&
  6397. tType == 2 &&
  6398. !sIsOpen &&
  6399. tool.tool.indexOf(48) != -1
  6400. "
  6401. class="worksBox"
  6402. >
  6403. <div
  6404. class="zuoyeYulan"
  6405. v-if="workStudent[toolIndex].length > 0"
  6406. >
  6407. <span class="worksTitle">作业预览</span>
  6408. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6409. </div>
  6410. <div
  6411. class="worksDetailBox"
  6412. v-if="workStudent[toolIndex].length > 0"
  6413. >
  6414. <div
  6415. class="works"
  6416. style="
  6417. width: 200px;
  6418. height: 140px;
  6419. margin: 10px 10px 10px 0;
  6420. box-shadow: 0 0 6px 1px #dfdada;
  6421. "
  6422. v-for="(w, wIndex) in workStudent[toolIndex]"
  6423. :key="wIndex"
  6424. >
  6425. <div class="workImg">
  6426. <img :src="word" @click="openTable(w)" alt />
  6427. <div
  6428. class="answerScore"
  6429. v-if="w.score"
  6430. @click.stop="openScore(w)"
  6431. :class="{
  6432. rightW:
  6433. w.userid == userid || tType == 1 || tType == 4,
  6434. }"
  6435. >
  6436. {{ JSON.parse(w.score).wScore }}分
  6437. </div>
  6438. <div
  6439. class="answerScore"
  6440. @click.stop="openScore(w)"
  6441. v-else-if="courseDetail.userid == userid"
  6442. :class="{
  6443. rightW:
  6444. w.userid == userid || tType == 1 || tType == 4,
  6445. }"
  6446. >
  6447. 评分
  6448. </div>
  6449. <img
  6450. class="deleteImg"
  6451. src="../assets/deleteworks.png"
  6452. v-if="
  6453. w.userid == userid || tType == 1 || tType == 4
  6454. "
  6455. @click.stop="deleteWorks(w.wid)"
  6456. alt
  6457. />
  6458. </div>
  6459. <div class="worksName">
  6460. <div>{{ w.sName }}</div>
  6461. </div>
  6462. </div>
  6463. </div>
  6464. </div>
  6465. <div
  6466. v-if="
  6467. tType &&
  6468. ((tType == 2 && sIsOpen == true) ||
  6469. tType == 1 ||
  6470. tType == 4) &&
  6471. tool.tool.indexOf(52) != -1
  6472. "
  6473. class="worksBox"
  6474. >
  6475. <div
  6476. class="zuoyeYulan"
  6477. v-if="
  6478. worksStudent.length &&
  6479. worksStudent[toolIndex].length > 0
  6480. "
  6481. >
  6482. <div class="worksTop">
  6483. <div>作业预览</div>
  6484. <div
  6485. class="corOpen"
  6486. @click="contract(toolIndex)"
  6487. v-if="
  6488. (isCloseList[toolIndex].isCloseBoolean) &&
  6489. isCloseList[toolIndex].isClose == 0
  6490. "
  6491. >
  6492. 折叠
  6493. </div>
  6494. <div
  6495. class="corOpen"
  6496. @click="contract(toolIndex)"
  6497. v-if="isCloseList[toolIndex].isClose == 1"
  6498. >
  6499. 展开
  6500. </div>
  6501. </div>
  6502. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6503. </div>
  6504. <div
  6505. :id="'tool-' + toolIndex"
  6506. :style="{
  6507. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6508. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6509. }"
  6510. class="worksDetailBox"
  6511. v-if="
  6512. worksStudent.length &&
  6513. worksStudent[toolIndex].length > 0
  6514. "
  6515. >
  6516. <div
  6517. class="works"
  6518. style="
  6519. width: 200px;
  6520. height: 140px;
  6521. margin: 10px 10px 10px 0;
  6522. border-radius: 15px;
  6523. box-shadow: 0 0 6px 1px #dfdada;
  6524. "
  6525. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6526. :key="wIndex"
  6527. :class="w.type == 1 ? 'isTypeOne' : ''"
  6528. >
  6529. <div class="workImg">
  6530. <img :src="word" @click="openWord(w)" alt />
  6531. <!-- @click="openFile(w.works)" -->
  6532. <div
  6533. class="answerScore"
  6534. v-if="w.score"
  6535. @click.stop="openScore(w)"
  6536. :class="{
  6537. rightW:
  6538. w.userid == userid ||
  6539. tType == 1 ||
  6540. tType == 4 ||
  6541. w.ateacher == userid,
  6542. }"
  6543. >
  6544. {{ JSON.parse(w.score).wScore }}分
  6545. </div>
  6546. <div
  6547. class="answerScore"
  6548. @click.stop="openScore(w)"
  6549. v-else-if="courseDetail.userid == userid"
  6550. :class="{
  6551. rightW:
  6552. w.userid == userid ||
  6553. tType == 1 ||
  6554. tType == 4 ||
  6555. w.ateacher == userid,
  6556. }"
  6557. >
  6558. 评分
  6559. </div>
  6560. <img
  6561. class="deleteImg"
  6562. src="../assets/deleteworks.png"
  6563. v-if="
  6564. w.userid == userid || tType == 1 || tType == 4
  6565. "
  6566. @click.stop="deleteWorks(w.wid)"
  6567. alt
  6568. />
  6569. </div>
  6570. <div class="comment" style="min-width: 200px">
  6571. <div class="worksName">
  6572. <div>{{ w.sName }}</div>
  6573. </div>
  6574. <div class="commentList">
  6575. <div class="commentList">
  6576. <div
  6577. class="commentImg"
  6578. @click="
  6579. isLikes(w.wid, userid, 1, null, w.isLikes)
  6580. "
  6581. >
  6582. <img
  6583. :src="w.isLikes == true ? likes : noLikes"
  6584. alt=""
  6585. />
  6586. </div>
  6587. <div>{{ w.likesCount }}</div>
  6588. </div>
  6589. <div class="commentList" style="margin-right: 15px">
  6590. <div
  6591. class="commentImg"
  6592. @click="commentOther(w, toolIndex, wIndex)"
  6593. >
  6594. <img
  6595. src="../assets/icon/comment/comment.png"
  6596. alt=""
  6597. />
  6598. </div>
  6599. <div>{{ w.commentCount }}</div>
  6600. </div>
  6601. </div>
  6602. </div>
  6603. </div>
  6604. </div>
  6605. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6606. 未提交
  6607. </div>
  6608. <div
  6609. class="noWorksS"
  6610. v-if="noWorksS && noWorksS[toolIndex].length"
  6611. >
  6612. <div
  6613. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6614. :key="sIndex"
  6615. class="noWorksName"
  6616. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6617. >
  6618. {{ s.student }}
  6619. </div>
  6620. </div>
  6621. </div>
  6622. <div
  6623. v-if="
  6624. tType &&
  6625. tType == 2 &&
  6626. !sIsOpen &&
  6627. tool.tool.indexOf(52) != -1
  6628. "
  6629. class="worksBox"
  6630. >
  6631. <div
  6632. class="zuoyeYulan"
  6633. v-if="workStudent[toolIndex].length > 0"
  6634. >
  6635. <span class="worksTitle">作业预览</span>
  6636. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6637. </div>
  6638. <div
  6639. class="worksDetailBox"
  6640. v-if="workStudent[toolIndex].length > 0"
  6641. >
  6642. <div
  6643. class="works"
  6644. style="
  6645. width: 200px;
  6646. height: 140px;
  6647. margin: 10px 10px 10px 0;
  6648. box-shadow: 0 0 6px 1px #dfdada;
  6649. "
  6650. v-for="(w, wIndex) in workStudent[toolIndex]"
  6651. :key="wIndex"
  6652. >
  6653. <div class="workImg">
  6654. <img :src="word" @click="openWord(w)" alt />
  6655. <div
  6656. class="answerScore"
  6657. v-if="w.score"
  6658. @click.stop="openScore(w)"
  6659. :class="{
  6660. rightW:
  6661. w.userid == userid || tType == 1 || tType == 4,
  6662. }"
  6663. >
  6664. {{ JSON.parse(w.score).wScore }}分
  6665. </div>
  6666. <div
  6667. class="answerScore"
  6668. @click.stop="openScore(w)"
  6669. v-else-if="courseDetail.userid == userid"
  6670. :class="{
  6671. rightW:
  6672. w.userid == userid || tType == 1 || tType == 4,
  6673. }"
  6674. >
  6675. 评分
  6676. </div>
  6677. <img
  6678. class="deleteImg"
  6679. src="../assets/deleteworks.png"
  6680. v-if="
  6681. w.userid == userid || tType == 1 || tType == 4
  6682. "
  6683. @click.stop="deleteWorks(w.wid)"
  6684. alt
  6685. />
  6686. </div>
  6687. <div class="worksName">
  6688. <div>{{ w.sName }}</div>
  6689. </div>
  6690. </div>
  6691. </div>
  6692. </div>
  6693. <div
  6694. v-if="tool.tool.indexOf(49) != -1"
  6695. class="xuan_right_box"
  6696. style="margin: 0 15px 0 25px; width: 93%"
  6697. >
  6698. <div
  6699. v-if="courseDetail.userid == userid"
  6700. style="
  6701. display: flex;
  6702. justify-content: flex-end;
  6703. margin-right: 10px;
  6704. "
  6705. >
  6706. <el-button
  6707. type="primary"
  6708. size="small"
  6709. @click="addTools(49, toolIndex, taskCount)"
  6710. >分组设置</el-button
  6711. >
  6712. </div>
  6713. <div
  6714. v-if="groupStudentUid[toolIndex]"
  6715. class="group_staic_box"
  6716. >
  6717. <div
  6718. v-for="(gp, gd) in tool.groupJson.group"
  6719. :key="gd"
  6720. class="group_staic"
  6721. >
  6722. <span> {{ gp.name }}</span>
  6723. <span>
  6724. 目前人数{{
  6725. groupStudentUid[toolIndex][gd].length
  6726. }}人</span
  6727. >
  6728. </div>
  6729. </div>
  6730. </div>
  6731. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6732. <div
  6733. class="zuoyeYulan"
  6734. v-if="
  6735. worksStudent.length &&
  6736. worksStudent[toolIndex].length > 0
  6737. "
  6738. >
  6739. <span class="worksTitle">作业预览</span>
  6740. </div>
  6741. <div>
  6742. <div
  6743. class="group_workBox"
  6744. v-for="(g, gindex) in tool.groupJson.group"
  6745. :key="gindex"
  6746. >
  6747. <div
  6748. class="group_box"
  6749. v-if="
  6750. groupStudentUid[toolIndex] &&
  6751. worksStudent[toolIndex] &&
  6752. (worksStudent[toolIndex][gindex].length ||
  6753. groupStudentUid[toolIndex][gindex].indexOf(
  6754. userid
  6755. ) != -1)
  6756. "
  6757. >
  6758. <div class="group_title">
  6759. <el-tooltip
  6760. class="item"
  6761. effect="light"
  6762. :content="g.name"
  6763. placement="top"
  6764. >
  6765. <div class="group_name">{{ g.name }}</div>
  6766. </el-tooltip>
  6767. <el-button
  6768. type="primary"
  6769. v-if="
  6770. groupStudentUid[toolIndex][gindex].indexOf(
  6771. userid
  6772. ) != -1
  6773. "
  6774. @click="groupUpload(toolIndex, taskCount, gindex)"
  6775. >上传作业</el-button
  6776. >
  6777. </div>
  6778. <div class="group_work">
  6779. <div
  6780. class="works"
  6781. style="
  6782. width: 200px;
  6783. height: 140px;
  6784. margin: 10px 10px 10px 0;
  6785. border-radius: 15px;
  6786. box-shadow: 0 0 6px 1px #dfdada;
  6787. "
  6788. v-for="(w, wIndex) in worksStudent[toolIndex][
  6789. gindex
  6790. ]"
  6791. :key="wIndex"
  6792. :class="w.type == 1 ? 'isTypeOne' : ''"
  6793. >
  6794. <div class="workImg" v-if="w.type == 0">
  6795. <img
  6796. :src="w.works"
  6797. @click="previewImg(w.works)"
  6798. alt
  6799. />
  6800. <div
  6801. class="answerScore"
  6802. v-if="w.score"
  6803. @click.stop="openScore(w)"
  6804. :class="{
  6805. rightW:
  6806. w.userid == userid ||
  6807. tType == 1 ||
  6808. tType == 4 ||
  6809. w.ateacher == userid,
  6810. }"
  6811. >
  6812. {{ JSON.parse(w.score).wScore }}分
  6813. </div>
  6814. <div
  6815. class="answerScore"
  6816. @click.stop="openScore(w)"
  6817. v-else-if="courseDetail.userid == userid"
  6818. :class="{
  6819. rightW:
  6820. w.userid == userid ||
  6821. tType == 1 ||
  6822. tType == 4 ||
  6823. w.ateacher == userid,
  6824. }"
  6825. >
  6826. 评分
  6827. </div>
  6828. <img
  6829. class="deleteImg"
  6830. src="../assets/deleteworks.png"
  6831. v-if="
  6832. w.userid == userid ||
  6833. tType == 1 ||
  6834. tType == 4
  6835. "
  6836. @click.stop="deleteWorks(w.wid)"
  6837. alt
  6838. />
  6839. </div>
  6840. <div class="workImg" v-if="w.type == 1">
  6841. <img
  6842. :src="word"
  6843. @click="openFile(w.works)"
  6844. alt
  6845. />
  6846. <!-- @click="openFile(w.works)" -->
  6847. <div
  6848. class="answerScore"
  6849. v-if="w.score"
  6850. @click.stop="openScore(w)"
  6851. :class="{
  6852. rightW:
  6853. w.userid == userid ||
  6854. tType == 1 ||
  6855. tType == 4 ||
  6856. w.ateacher == userid,
  6857. }"
  6858. >
  6859. {{ JSON.parse(w.score).wScore }}分
  6860. </div>
  6861. <div
  6862. class="answerScore"
  6863. @click.stop="openScore(w)"
  6864. v-else-if="courseDetail.userid == userid"
  6865. :class="{
  6866. rightW:
  6867. w.userid == userid ||
  6868. tType == 1 ||
  6869. tType == 4 ||
  6870. w.ateacher == userid,
  6871. }"
  6872. >
  6873. 评分
  6874. </div>
  6875. <img
  6876. class="deleteImg"
  6877. src="../assets/deleteworks.png"
  6878. v-if="
  6879. w.userid == userid ||
  6880. tType == 1 ||
  6881. tType == 4
  6882. "
  6883. @click.stop="deleteWorks(w.wid)"
  6884. alt
  6885. />
  6886. </div>
  6887. <div class="workImg" v-if="w.type == 3">
  6888. <img
  6889. style="cursor: pointer"
  6890. :src="video"
  6891. @click="openVideo(w)"
  6892. alt
  6893. />
  6894. <!-- @click="openVideo(w.works)" -->
  6895. <div
  6896. class="answerScore"
  6897. v-if="w.score"
  6898. @click.stop="openScore(w)"
  6899. :class="{
  6900. rightW:
  6901. w.userid == userid ||
  6902. tType == 1 ||
  6903. tType == 4 ||
  6904. w.ateacher == userid,
  6905. }"
  6906. >
  6907. {{ JSON.parse(w.score).wScore }}分
  6908. </div>
  6909. <div
  6910. class="answerScore"
  6911. @click.stop="openScore(w)"
  6912. v-else-if="courseDetail.userid == userid"
  6913. :class="{
  6914. rightW:
  6915. w.userid == userid ||
  6916. tType == 1 ||
  6917. tType == 4 ||
  6918. w.ateacher == userid,
  6919. }"
  6920. >
  6921. 评分
  6922. </div>
  6923. <img
  6924. class="deleteImg"
  6925. src="../assets/deleteworks.png"
  6926. v-if="
  6927. w.userid == userid ||
  6928. tType == 1 ||
  6929. tType == 4
  6930. "
  6931. @click.stop="deleteWorks(w.wid)"
  6932. alt
  6933. />
  6934. </div>
  6935. <div class="workImg" v-if="w.type == 12">
  6936. <img
  6937. style="cursor: pointer"
  6938. :src="word2"
  6939. @click="downloadFile(w.works)"
  6940. alt
  6941. />
  6942. <!-- @click="openVideo(w.works)" -->
  6943. <div
  6944. class="answerScore"
  6945. v-if="w.score"
  6946. @click.stop="openScore(w)"
  6947. :class="{
  6948. rightW:
  6949. w.userid == userid ||
  6950. tType == 1 ||
  6951. tType == 4 ||
  6952. w.ateacher == userid,
  6953. }"
  6954. >
  6955. {{ JSON.parse(w.score).wScore }}分
  6956. </div>
  6957. <div
  6958. class="answerScore"
  6959. @click.stop="openScore(w)"
  6960. v-else-if="courseDetail.userid == userid"
  6961. :class="{
  6962. rightW:
  6963. w.userid == userid ||
  6964. tType == 1 ||
  6965. tType == 4 ||
  6966. w.ateacher == userid,
  6967. }"
  6968. >
  6969. 评分
  6970. </div>
  6971. <img
  6972. class="deleteImg"
  6973. src="../assets/deleteworks.png"
  6974. v-if="
  6975. w.userid == userid ||
  6976. tType == 1 ||
  6977. tType == 4
  6978. "
  6979. @click.stop="deleteWorks(w.wid)"
  6980. alt
  6981. />
  6982. </div>
  6983. <div class="comment" style="min-width: 200px">
  6984. <div class="worksName">
  6985. <div>{{ w.sName }}</div>
  6986. </div>
  6987. <div class="commentList">
  6988. <div class="commentList">
  6989. <div
  6990. class="commentImg"
  6991. @click="
  6992. isLikes(
  6993. w.wid,
  6994. userid,
  6995. 1,
  6996. null,
  6997. w.isLikes
  6998. )
  6999. "
  7000. >
  7001. <img
  7002. :src="
  7003. w.isLikes == true ? likes : noLikes
  7004. "
  7005. alt=""
  7006. />
  7007. </div>
  7008. <div>{{ w.likesCount }}</div>
  7009. </div>
  7010. <div
  7011. class="commentList"
  7012. style="margin-right: 15px"
  7013. >
  7014. <div
  7015. class="commentImg"
  7016. @click="
  7017. commentOther(
  7018. w,
  7019. toolIndex,
  7020. wIndex,
  7021. gindex
  7022. )
  7023. "
  7024. >
  7025. <img
  7026. src="../assets/icon/comment/comment.png"
  7027. alt=""
  7028. />
  7029. </div>
  7030. <div>{{ w.commentCount }}</div>
  7031. </div>
  7032. </div>
  7033. </div>
  7034. </div>
  7035. </div>
  7036. </div>
  7037. </div>
  7038. </div>
  7039. </div>
  7040. </div>
  7041. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7042. 上传文件
  7043. <input
  7044. type="file"
  7045. accept="image/png, image/gif, image/jpeg"
  7046. style="display: none"
  7047. @change="beforeUpload1($event, 2, index)"
  7048. />
  7049. </div>-->
  7050. </div>
  7051. </div>
  7052. <!-- <div
  7053. class="vedioBox"
  7054. style="margin-top: 10px"
  7055. v-if="
  7056. courseDetail.userid == userid ||
  7057. (courseDetail.course_teacher &&
  7058. courseDetail.course_teacher.indexOf(userid) != -1)
  7059. "
  7060. :style="{
  7061. borderRadius:
  7062. !(
  7063. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7064. .toolChoose[0].tool &&
  7065. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7066. .toolChoose[0].tool.length > 0
  7067. ) &&
  7068. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7069. .taskDetail == '' &&
  7070. vChapterData[taskCount].length == 0 &&
  7071. fileC[taskCount].length == 0
  7072. ? '0 0 20px 20px'
  7073. : '20px',
  7074. }"
  7075. >
  7076. <div
  7077. class="queTop"
  7078. @click="isClose = !isClose"
  7079. style="
  7080. padding: 15px 0 15px 37px;
  7081. justify-content: space-between;
  7082. "
  7083. >
  7084. <div class="queTopTitle">新增工具</div>
  7085. <div class="queTopRight">
  7086. <div class="queTopClose" v-if="isClose == 0">
  7087. 展开
  7088. <div class="closeImg">
  7089. <img src="../assets/icon/newIcon/close.png" alt="" />
  7090. </div>
  7091. </div>
  7092. <div class="queTopClose" v-if="isClose == 1">
  7093. 折叠
  7094. <div class="openImg">
  7095. <img src="../assets/icon/newIcon/open.png" alt="" />
  7096. </div>
  7097. </div>
  7098. <el-button
  7099. style="margin: 0 30px 0 auto"
  7100. type="primary"
  7101. size="small"
  7102. v-if="isClose == 1 && checktoolArray.length > 0"
  7103. @click.stop="addToolChoose"
  7104. >确定</el-button
  7105. >
  7106. </div>
  7107. </div>
  7108. <div
  7109. class="tool_work_box"
  7110. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7111. >
  7112. <div class="tool_box">
  7113. <div class="tool_type_box">
  7114. <div class="chooseWho">
  7115. <div
  7116. :class="toolType == 0 ? 'isChooseActive' : ''"
  7117. @click="(toolType = 0), $forceUpdate()"
  7118. >
  7119. 互动类
  7120. </div>
  7121. <div
  7122. :class="toolType == 1 ? 'isChooseActive' : ''"
  7123. @click="(toolType = 1), $forceUpdate()"
  7124. >
  7125. 思维类
  7126. </div>
  7127. <div
  7128. :class="toolType == 2 ? 'isChooseActive' : ''"
  7129. @click="(toolType = 2), $forceUpdate()"
  7130. >
  7131. 测评类
  7132. </div>
  7133. <div
  7134. :class="toolType == 3 ? 'isChooseActive' : ''"
  7135. @click="(toolType = 3), $forceUpdate()"
  7136. >
  7137. 编程类
  7138. </div>
  7139. <div
  7140. :class="toolType == 5 ? 'isChooseActive' : ''"
  7141. @click="(toolType = 5), $forceUpdate()"
  7142. >
  7143. 学科类
  7144. </div>
  7145. </div>
  7146. </div>
  7147. <div>
  7148. <div class="toolSort" v-if="toolType == 0">
  7149. <div class="tool">
  7150. <div class="whiteBIcon" @click="addTools2(10)">
  7151. <img
  7152. src="../assets/icon/thirdToolList/time.png"
  7153. alt
  7154. />
  7155. <div style="margin: 5px 0">倒计时</div>
  7156. </div>
  7157. <div class="check" @click="addTools2(10)">
  7158. <img
  7159. src="../assets/icon/checkNo.png"
  7160. alt
  7161. v-if="checktoolArray.indexOf(10) == -1"
  7162. />
  7163. <div class="checkDiv" v-else>
  7164. <img src="../assets/icon/checkedIs.png" alt /><span
  7165. >已选择</span
  7166. >
  7167. </div>
  7168. </div>
  7169. </div>
  7170. <div class="tool">
  7171. <div class="whiteBIcon" @click="addTools2(65)">
  7172. <img
  7173. src="../assets/icon/firstToolList/pickPeople.png"
  7174. alt
  7175. />
  7176. <div style="margin: 5px 0">挑人</div>
  7177. </div>
  7178. <div class="check" @click="addTools2(65)">
  7179. <img
  7180. src="../assets/icon/checkNo.png"
  7181. alt
  7182. v-if="checktoolArray.indexOf(65) == -1"
  7183. />
  7184. <div class="checkDiv" v-else>
  7185. <img src="../assets/icon/checkedIs.png" alt /><span
  7186. >已选择</span
  7187. >
  7188. </div>
  7189. </div>
  7190. </div>
  7191. </div>
  7192. <div class="toolSort" v-if="toolType == 1">
  7193. <div class="tool">
  7194. <div class="whiteBIcon" @click="addTools2(7)">
  7195. <img
  7196. src="../assets/icon/secondToolList/mindNetwork.png"
  7197. alt
  7198. />
  7199. <div style="margin: 5px 0">思维网格</div>
  7200. </div>
  7201. <div class="check" @click="addTools2(7)">
  7202. <img
  7203. src="../assets/icon/checkNo.png"
  7204. alt
  7205. v-if="checktoolArray.indexOf(7) == -1"
  7206. />
  7207. <div class="checkDiv" v-else>
  7208. <img src="../assets/icon/checkedIs.png" alt /><span
  7209. >已选择</span
  7210. >
  7211. </div>
  7212. </div>
  7213. </div>
  7214. <div class="tool">
  7215. <div class="whiteBIcon" @click="addTools2(1)">
  7216. <img
  7217. src="../assets/icon/secondToolList/whiteBoard.png"
  7218. alt
  7219. />
  7220. <div style="margin: 5px 0">电子白板</div>
  7221. </div>
  7222. <div class="check" @click="addTools2(1)">
  7223. <img
  7224. src="../assets/icon/checkNo.png"
  7225. alt
  7226. v-if="checktoolArray.indexOf(1) == -1"
  7227. />
  7228. <div class="checkDiv" v-else>
  7229. <img src="../assets/icon/checkedIs.png" alt /><span
  7230. >已选择</span
  7231. >
  7232. </div>
  7233. </div>
  7234. </div>
  7235. <div class="tool">
  7236. <div class="whiteBIcon" @click="addTools2(52)">
  7237. <img
  7238. src="../assets/icon/fourthToolList/text.png"
  7239. alt
  7240. />
  7241. <div style="margin: 5px 0">文档</div>
  7242. </div>
  7243. <div class="check" @click="addTools2(52)">
  7244. <img
  7245. src="../assets/icon/checkNo.png"
  7246. alt
  7247. v-if="checktoolArray.indexOf(52) == -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(3)">
  7258. <img
  7259. src="../assets/icon/secondToolList/mindMapping.png"
  7260. alt
  7261. />
  7262. <div style="margin: 5px 0">思维导图</div>
  7263. </div>
  7264. <div class="check" @click="addTools2(3)">
  7265. <img
  7266. src="../assets/icon/checkNo.png"
  7267. alt
  7268. v-if="checktoolArray.indexOf(3) == -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(48)">
  7279. <img
  7280. src="../assets/icon/fourthToolList/table.png"
  7281. alt
  7282. />
  7283. <div style="margin: 5px 0">表格</div>
  7284. </div>
  7285. <div class="check" @click="addTools2(48)">
  7286. <img
  7287. src="../assets/icon/checkNo.png"
  7288. alt
  7289. v-if="checktoolArray.indexOf(48) == -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>
  7299. <div class="toolSort" v-if="toolType == 6">
  7300. <div v-show="tooC == 49">
  7301. <img
  7302. @click="addTools(tooC, toolIndex, taskCount)"
  7303. src="../assets/icon/fourthToolList/group.png"
  7304. alt
  7305. />
  7306. <div style="margin: 5px 0">学生分组</div>
  7307. </div>
  7308. </div>
  7309. <div class="toolSort" v-if="toolType == 2">
  7310. <div class="tool">
  7311. <div class="whiteBIcon" @click="addTools2(16)">
  7312. <img
  7313. src="../assets/icon/thirdToolList/work.png"
  7314. alt
  7315. />
  7316. <div style="margin: 5px 0">作业提交</div>
  7317. </div>
  7318. <div class="check" @click="addTools2(16)">
  7319. <img
  7320. src="../assets/icon/checkNo.png"
  7321. alt
  7322. v-if="checktoolArray.indexOf(16) == -1"
  7323. />
  7324. <div class="checkDiv" v-else>
  7325. <img src="../assets/icon/checkedIs.png" alt /><span
  7326. >已选择</span
  7327. >
  7328. </div>
  7329. </div>
  7330. </div>
  7331. <div class="tool">
  7332. <div class="whiteBIcon" @click="addTools2(50)">
  7333. <img
  7334. src="../assets/icon/thirdToolList/plwork.png"
  7335. alt
  7336. />
  7337. <div style="margin: 5px 0">批量上传</div>
  7338. </div>
  7339. <div class="check" @click="addTools2(50)">
  7340. <img
  7341. src="../assets/icon/checkNo.png"
  7342. alt
  7343. v-if="checktoolArray.indexOf(50) == -1"
  7344. />
  7345. <div class="checkDiv" v-else>
  7346. <img src="../assets/icon/checkedIs.png" alt /><span
  7347. >已选择</span
  7348. >
  7349. </div>
  7350. </div>
  7351. </div>
  7352. </div>
  7353. <div class="toolSort" v-if="toolType == 3">
  7354. <div class="tool">
  7355. <div class="whiteBIcon" @click="addTools2(18)">
  7356. <img
  7357. src="../assets/icon/thirdToolList/trainPlatform.png"
  7358. alt
  7359. />
  7360. <div style="margin: 5px 0">训练平台</div>
  7361. </div>
  7362. <div class="check" @click="addTools2(18)">
  7363. <img
  7364. src="../assets/icon/checkNo.png"
  7365. alt
  7366. v-if="checktoolArray.indexOf(18) == -1"
  7367. />
  7368. <div class="checkDiv" v-else>
  7369. <img src="../assets/icon/checkedIs.png" alt /><span
  7370. >已选择</span
  7371. >
  7372. </div>
  7373. </div>
  7374. </div>
  7375. <div class="tool">
  7376. <div class="whiteBIcon" @click="addTools2(21)">
  7377. <img
  7378. src="../assets/icon/fourthToolList/program.png"
  7379. alt
  7380. />
  7381. <div style="margin: 5px 0">AIoT Blockly</div>
  7382. </div>
  7383. <div class="check" @click="addTools2(21)">
  7384. <img
  7385. src="../assets/icon/checkNo.png"
  7386. alt
  7387. v-if="checktoolArray.indexOf(21) == -1"
  7388. />
  7389. <div class="checkDiv" v-else>
  7390. <img src="../assets/icon/checkedIs.png" alt /><span
  7391. >已选择</span
  7392. >
  7393. </div>
  7394. </div>
  7395. </div>
  7396. <div class="tool">
  7397. <div class="whiteBIcon" @click="addTools2(23)">
  7398. <img
  7399. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7400. alt
  7401. />
  7402. <div style="margin: 5px 0">AI Python</div>
  7403. </div>
  7404. <div class="check" @click="addTools2(23)">
  7405. <img
  7406. src="../assets/icon/checkNo.png"
  7407. alt
  7408. v-if="checktoolArray.indexOf(23) == -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(24)">
  7419. <img
  7420. src="../assets/icon/fourthToolList/AIprogram.png"
  7421. alt
  7422. />
  7423. <div style="margin: 5px 0">AI Blockly</div>
  7424. </div>
  7425. <div class="check" @click="addTools2(24)">
  7426. <img
  7427. src="../assets/icon/checkNo.png"
  7428. alt
  7429. v-if="checktoolArray.indexOf(24) == -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(32)">
  7440. <img
  7441. src="../assets/icon/thirdToolList/code.png"
  7442. alt
  7443. />
  7444. <div style="margin: 5px 0">源码编辑</div>
  7445. </div>
  7446. <div class="check" @click="addTools2(32)">
  7447. <img
  7448. src="../assets/icon/checkNo.png"
  7449. alt
  7450. v-if="checktoolArray.indexOf(32) == -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(57)">
  7461. <img
  7462. src="../assets/icon/fourthToolList/cocopi.png"
  7463. alt
  7464. />
  7465. <div style="margin: 5px 0">CocoPi</div>
  7466. </div>
  7467. <div class="check" @click="addTools2(57)">
  7468. <img
  7469. src="../assets/icon/checkNo.png"
  7470. alt
  7471. v-if="checktoolArray.indexOf(57) == -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(63)">
  7482. <img
  7483. src="../assets/icon/fourthToolList/Wood.png"
  7484. alt
  7485. />
  7486. <div style="margin: 5px 0">海龟编程</div>
  7487. </div>
  7488. <div class="check" @click="addTools2(63)">
  7489. <img
  7490. src="../assets/icon/checkNo.png"
  7491. alt
  7492. v-if="checktoolArray.indexOf(63) == -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>
  7502. <div class="toolSort" v-if="toolType == 5">
  7503. <div class="tool">
  7504. <div class="whiteBIcon" @click="addTools2(28)">
  7505. <img
  7506. src="../assets/icon/secondToolList/translation.png"
  7507. alt
  7508. />
  7509. <div style="margin: 5px 0">翻译</div>
  7510. </div>
  7511. <div class="check" @click="addTools2(28)">
  7512. <img
  7513. src="../assets/icon/checkNo.png"
  7514. alt
  7515. v-if="checktoolArray.indexOf(28) == -1"
  7516. />
  7517. <div class="checkDiv" v-else>
  7518. <img src="../assets/icon/checkedIs.png" alt /><span
  7519. >已选择</span
  7520. >
  7521. </div>
  7522. </div>
  7523. </div>
  7524. <div class="tool">
  7525. <div class="whiteBIcon" @click="addTools2(31)">
  7526. <img
  7527. src="../assets/icon/secondToolList/networkPanel.png"
  7528. alt
  7529. />
  7530. <div style="margin: 5px 0">数字画板</div>
  7531. </div>
  7532. <div class="check" @click="addTools2(31)">
  7533. <img
  7534. src="../assets/icon/checkNo.png"
  7535. alt
  7536. v-if="checktoolArray.indexOf(31) == -1"
  7537. />
  7538. <div class="checkDiv" v-else>
  7539. <img src="../assets/icon/checkedIs.png" alt /><span
  7540. >已选择</span
  7541. >
  7542. </div>
  7543. </div>
  7544. </div>
  7545. <div class="tool">
  7546. <div class="whiteBIcon" @click="addTools2(39)">
  7547. <img
  7548. src="../assets/icon/secondToolList/GeoGebra.png"
  7549. alt
  7550. />
  7551. <div style="margin: 5px 0">GeoGebra</div>
  7552. </div>
  7553. <div class="check" @click="addTools2(39)">
  7554. <img
  7555. src="../assets/icon/checkNo.png"
  7556. alt
  7557. v-if="checktoolArray.indexOf(39) == -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(66)">
  7568. <img
  7569. src="../assets/icon/secondToolList/formulaEdi.png"
  7570. alt
  7571. />
  7572. <div style="margin: 5px 0">公式编辑</div>
  7573. </div>
  7574. <div class="check" @click="addTools2(66)">
  7575. <img
  7576. src="../assets/icon/checkNo.png"
  7577. alt
  7578. v-if="checktoolArray.indexOf(66) == -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(67)">
  7589. <img
  7590. src="../assets/icon/secondToolList/molStr.png"
  7591. alt
  7592. />
  7593. <div style="margin: 5px 0">分子结构</div>
  7594. </div>
  7595. <div class="check" @click="addTools2(67)">
  7596. <img
  7597. src="../assets/icon/checkNo.png"
  7598. alt
  7599. v-if="checktoolArray.indexOf(67) == -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(68)">
  7610. <img
  7611. src="../assets/icon/secondToolList/timeAxis.png"
  7612. alt
  7613. />
  7614. <div style="margin: 5px 0">时间轴</div>
  7615. </div>
  7616. <div class="check" @click="addTools2(68)">
  7617. <img
  7618. src="../assets/icon/checkNo.png"
  7619. alt
  7620. v-if="checktoolArray.indexOf(68) == -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>
  7630. <div class="toolSort" v-if="toolType == 7">
  7631. <div class="tool">
  7632. <div class="whiteBIcon" @click="addTools2(40)">
  7633. <img
  7634. src="../assets/icon/secondToolList/eval.png"
  7635. alt
  7636. />
  7637. <div style="margin: 5px 0">个人评价</div>
  7638. </div>
  7639. <div class="check" @click="addTools2(40)">
  7640. <img
  7641. src="../assets/icon/checkNo.png"
  7642. alt
  7643. v-if="checktoolArray.indexOf(40) == -1"
  7644. />
  7645. <div class="checkDiv" v-else>
  7646. <img src="../assets/icon/checkedIs.png" alt /><span
  7647. >已选择</span
  7648. >
  7649. </div>
  7650. </div>
  7651. </div>
  7652. </div>
  7653. <div class="toolSort" v-if="toolType == 4">
  7654. <div class="tool">
  7655. <div class="whiteBIcon" @click="addTools2(26)">
  7656. <img
  7657. src="../assets/icon/thirdToolList/courseDesign.png"
  7658. alt
  7659. />
  7660. <div style="margin: 5px 0">课程设计</div>
  7661. </div>
  7662. <div class="check" @click="addTools2(26)">
  7663. <img
  7664. src="../assets/icon/checkNo.png"
  7665. alt
  7666. v-if="checktoolArray.indexOf(26) == -1"
  7667. />
  7668. <div class="checkDiv" v-else>
  7669. <img src="../assets/icon/checkedIs.png" alt /><span
  7670. >已选择</span
  7671. >
  7672. </div>
  7673. </div>
  7674. </div>
  7675. <div class="tool">
  7676. <div class="whiteBIcon" @click="addTools2(25)">
  7677. <img
  7678. src="../assets/icon/thirdToolList/evalua.png"
  7679. alt
  7680. />
  7681. <div style="margin: 5px 0">目标管理</div>
  7682. </div>
  7683. <div class="check" @click="addTools2(25)">
  7684. <img
  7685. src="../assets/icon/checkNo.png"
  7686. alt
  7687. v-if="checktoolArray.indexOf(25) == -1"
  7688. />
  7689. <div class="checkDiv" v-else>
  7690. <img src="../assets/icon/checkedIs.png" alt /><span
  7691. >已选择</span
  7692. >
  7693. </div>
  7694. </div>
  7695. </div>
  7696. </div>
  7697. </div>
  7698. </div>
  7699. </div>
  7700. </div> -->
  7701. <div
  7702. class="vedioBox"
  7703. style="margin-top: 10px; border-radius: 20px"
  7704. v-if="
  7705. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7706. .eList &&
  7707. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7708. .eList.length &&
  7709. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7710. .eList.length > 0 &&
  7711. tType != 2
  7712. "
  7713. >
  7714. <div
  7715. class="queTop"
  7716. style="
  7717. font-size: 20px;
  7718. padding: 15px 0 15px 37px;
  7719. font-weight: bold;
  7720. "
  7721. >
  7722. <!-- <div class="question" style="width: 30px">
  7723. <img src="../assets/icon/toolIcon.png" alt />
  7724. </div>
  7725. <div class="queTitle">
  7726. <div>工具</div>
  7727. </div>-->
  7728. 评一评
  7729. </div>
  7730. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7731. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7732. <el-table
  7733. :data="
  7734. chapInfoList[courseType].chapterInfo[0].taskJson[
  7735. taskCount
  7736. ].eList
  7737. "
  7738. :header-cell-style="{ background: '#F0F4FA' }"
  7739. :row-class-name="tableRowClassName"
  7740. border
  7741. stripe
  7742. style="width: 100%"
  7743. >
  7744. <el-table-column
  7745. label="评价名称"
  7746. align="center"
  7747. >
  7748. <template slot-scope="scope"
  7749. ><div>{{ scope.row.value }}</div></template
  7750. >
  7751. </el-table-column>
  7752. <el-table-column
  7753. label="评价描述"
  7754. align="center"
  7755. >
  7756. <template slot-scope="scope"
  7757. ><div>
  7758. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7759. </div></template
  7760. >
  7761. </el-table-column>
  7762. <el-table-column label="目标" align="center">
  7763. <template slot-scope="scope"
  7764. ><div>
  7765. {{
  7766. scope.row.target
  7767. ? scope.row.target[scope.row.target.length - 1]
  7768. : "-"
  7769. }}
  7770. </div></template
  7771. ></el-table-column
  7772. >
  7773. </el-table>
  7774. <!-- <div
  7775. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7776. .chapterInfo[0].taskJson[taskCount].eList"
  7777. :key="eIndex"
  7778. class="elist_input_box"
  7779. >
  7780. <div style="width: 95%">
  7781. <div
  7782. style="
  7783. display: flex;
  7784. flex-direction: row;
  7785. flex-wrap: nowrap;
  7786. align-items: center;
  7787. "
  7788. >
  7789. <div style="max-width: calc(100% - 285px)">
  7790. <span>{{ eItem.value }}</span>
  7791. </div>
  7792. <div
  7793. style="
  7794. padding-left: 25px;
  7795. display: flex;
  7796. flex-direction: row;
  7797. align-items: center;
  7798. "
  7799. >
  7800. <el-rate
  7801. v-model="eItem.score"
  7802. :colors="colors"
  7803. disabled
  7804. ></el-rate>
  7805. </div>
  7806. </div>
  7807. <div class="elist_inptu_text" style="padding-left: 10px">
  7808. <span v-if="eItem.detail != ''">{{
  7809. eItem.detail
  7810. }}</span>
  7811. <span v-else style="color: #b2b1b3; font-size: 14px"
  7812. >暂无描述...</span
  7813. >
  7814. </div>
  7815. </div>
  7816. </div> -->
  7817. </div>
  7818. <div
  7819. v-if="evalua"
  7820. style="
  7821. border: 1px solid #e5e5e5;
  7822. max-width: 650px;
  7823. width: 100%;
  7824. margin-top: 20px;
  7825. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7826. "
  7827. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7828. >
  7829. <div class="e_add_top">
  7830. <div class="e_add_title" style="width: 100%">
  7831. <!-- <span>目标管理名称</span> -->
  7832. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7833. <img
  7834. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7835. src="../assets/line.png"
  7836. class="cru_line"
  7837. style="
  7838. width: 125px;
  7839. height: 20px;
  7840. bottom: -10px;
  7841. left: 5px;
  7842. "
  7843. />
  7844. <!-- <el-input
  7845. v-model="eTitle"
  7846. placeholder="请输入名称"
  7847. @change="setMindData"
  7848. ></el-input>-->
  7849. <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>
  7850. <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>
  7851. </div>
  7852. </div>
  7853. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7854. <div class="e_add_list_pbox">
  7855. <div class="e_add_list_pbox_title">
  7856. <!-- <span class="type_title">切换模式</span> -->
  7857. <div class="type_content">
  7858. <span
  7859. :class="{ active: typeMode == 1 }"
  7860. @click="typeMode = 1"
  7861. >目标树</span
  7862. >
  7863. <span
  7864. :class="{ active: typeMode == 2 }"
  7865. @click="typeMode = 2"
  7866. >目标罗盘</span
  7867. >
  7868. <!-- <span
  7869. :class="{ active: typeMode == 3 }"
  7870. @click="typeMode = 3"
  7871. >目标看板</span
  7872. > -->
  7873. </div>
  7874. </div>
  7875. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7876. <Mind
  7877. :showBar="false"
  7878. :mindData="data"
  7879. style="width: 100%"
  7880. v-show="typeMode == 1"
  7881. ></Mind>
  7882. <Sunburst
  7883. :Josn="eJson"
  7884. :num="eJSONNum"
  7885. style="width: 100%"
  7886. v-if="typeMode == 2"
  7887. ></Sunburst>
  7888. <SeeBoard
  7889. :Josn="eJson"
  7890. :num="eJSONNum"
  7891. :ename="eTitle"
  7892. style="width: 100%"
  7893. v-if="typeMode == 3"
  7894. >
  7895. </SeeBoard>
  7896. </div>
  7897. </div>
  7898. </div>
  7899. </div>
  7900. </div>
  7901. </div>
  7902. <!-- <div
  7903. class="project_box"
  7904. style="margin-top: 15px; padding-bottom: 30px"
  7905. >
  7906. <div
  7907. style="
  7908. display: flex;
  7909. flex-wrap: nowrap;
  7910. flex-direction: column;
  7911. position: relative;
  7912. "
  7913. >
  7914. <div class="queTop">
  7915. <div class="question">
  7916. <img src="../assets/icon/homeWork.png" alt="" />
  7917. </div>
  7918. <div class="queTitle">
  7919. <div>作业提交<span>(提交图文视频等)</span></div>
  7920. <div>:任务:{{ task.task }}</div>
  7921. </div>
  7922. </div>
  7923. <div class="ediBottom">
  7924. <div
  7925. class="addEditor"
  7926. style="margin-top: 23px"
  7927. @click="openAddWork"
  7928. v-if="!isNoHomeWork"
  7929. >
  7930. 选择文件
  7931. </div>
  7932. <div
  7933. class="addEditor"
  7934. style="margin-top: 23px"
  7935. @click="openAddWork"
  7936. v-else
  7937. >
  7938. 已提交
  7939. </div>
  7940. </div>
  7941. </div>
  7942. </div>-->
  7943. </div>
  7944. </div>
  7945. <el-dialog
  7946. title="作业提交"
  7947. :visible.sync="dialogVisible"
  7948. :append-to-body="true"
  7949. width="500px"
  7950. :before-close="handleClose"
  7951. class="dialog_change"
  7952. >
  7953. <div class="marginT">
  7954. <div>上传文件</div>
  7955. <div
  7956. class="chapter_add"
  7957. @click="addImg($event)"
  7958. v-if="studyJuri[0].cover.length == 0"
  7959. >
  7960. <div class="up_photo">
  7961. <img src="../assets/icon/uploadImg.png" alt />
  7962. </div>
  7963. <!-- <input
  7964. type="file"
  7965. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7966. style="display: none"
  7967. @change="beforeUpload1($event, 1)"
  7968. /> -->
  7969. <input
  7970. type="file"
  7971. accept="*"
  7972. style="display: none"
  7973. @change="beforeUpload1($event, 1)"
  7974. />
  7975. <!-- <input
  7976. type="file"
  7977. accept="image/*"
  7978. capture="camera"
  7979. style="display: none"
  7980. @change="beforeUpload1($event, 1)"
  7981. /> -->
  7982. </div>
  7983. <div
  7984. class="chapter_add"
  7985. style="
  7986. display: flex;
  7987. width: 100%;
  7988. flex-direction: row;
  7989. flex-wrap: wrap;
  7990. justify-content: flex-start;
  7991. padding: 15px 0;
  7992. "
  7993. v-if="studyJuri[0].cover.length > 0"
  7994. >
  7995. <div class="upCover">
  7996. <img
  7997. :src="studyJuri[0].cover[0].url"
  7998. alt
  7999. v-if="fileType == 0"
  8000. />
  8001. <img :src="word" alt v-else-if="fileType == 1" />
  8002. <img :src="video" alt v-else-if="fileType == 2" />
  8003. <img :src="word2" alt v-else-if="fileType == 3" />
  8004. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8005. <div class="deleteWord" @click="clean(1)">
  8006. <img src="../assets/icon/deleteWorks.png" alt />
  8007. </div>
  8008. </div>
  8009. </div>
  8010. </div>
  8011. <div
  8012. class="upload_send"
  8013. @click="addCourseWorks(taskCount)"
  8014. v-if="!proVisible"
  8015. >
  8016. 提交
  8017. </div>
  8018. </el-dialog>
  8019. </div>
  8020. <classRoomHelper ref="classRoomHelperRef" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @backPage="goTo(
  8021. '/courseDetail?userid=' +
  8022. userid +
  8023. '&oid=' +
  8024. oid +
  8025. '&org=' +
  8026. org +
  8027. '&cid=' +
  8028. classId +
  8029. '&courseId=' +
  8030. id +
  8031. '&tType=' +
  8032. tType +
  8033. '&screenType=' +
  8034. screenType
  8035. )"></classRoomHelper>
  8036. </div>
  8037. <div
  8038. class="pButton"
  8039. @click="(pzDialog = true), selectPz()"
  8040. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8041. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8042. >
  8043. <!-- 批 -->
  8044. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  8045. </div>
  8046. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8047. <div class="pzTop2">
  8048. <!-- <div>评论</div>
  8049. <div @click="pzDialog = false">
  8050. <img src="../assets/close1.png" alt="" />
  8051. </div> -->
  8052. <div class="checkbox">
  8053. <!-- <div class="check" style="font-size: 25px; position: unset">
  8054. 评论
  8055. </div> -->
  8056. <div class="cb-tabList">
  8057. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8058. <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div>
  8059. </div>
  8060. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  8061. <el-option label="时间降序" :value="1"></el-option>
  8062. <el-option label="时间升序" :value="2"></el-option>
  8063. <el-option label="我的评课" :value="3"></el-option>
  8064. </el-select>
  8065. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8066. </div>
  8067. </div>
  8068. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8069. <div class="pzListBox" v-if="pzList && pzList.length">
  8070. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8071. <div class="pzNavTop">
  8072. <div>评</div>
  8073. <div>
  8074. {{
  8075. pz.username && pz.username.length > 5
  8076. ? pz.username.substring(0, 5) + "..."
  8077. : pz.username
  8078. }}的评论
  8079. </div>
  8080. <div
  8081. class="pzDelete"
  8082. v-if="pz.userid == userid"
  8083. @click="deletePz(pz.id)"
  8084. >
  8085. 删除
  8086. </div>
  8087. </div>
  8088. <div
  8089. @click="checkImg(getImgList(pz.content))"
  8090. class="pzContent cont"
  8091. v-html="pz.content"
  8092. v-if="pz.type == '1'"
  8093. ></div>
  8094. <div class="pzContent" v-if="pz.type == '2'">
  8095. <audio :src="pz.content" controls="controls" ref="audio">
  8096. Your browser does not support the audio element.
  8097. </audio>
  8098. </div>
  8099. <div class="pzContent" v-if="pz.type == '3'">
  8100. <img
  8101. :src="pz.content"
  8102. style="width: 90%; margin: 0 auto; display: block"
  8103. @click="previewImg(pz.content)"
  8104. />
  8105. </div>
  8106. <div class="timeAndReply">
  8107. <div class="time">
  8108. {{ pz.time }}
  8109. </div>
  8110. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8111. </div>
  8112. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8113. <div
  8114. v-for="(h, hIndex) in pz.hfList"
  8115. :key="hIndex"
  8116. class="hfItem"
  8117. >
  8118. <div class="whoReplyWho">
  8119. <div class="hfName">{{ h.username }}</div>
  8120. <div class="hfImg">
  8121. <img src="../assets/icon/newIcons/right.png" alt="" />
  8122. </div>
  8123. <div class="hfName">{{ pz.username }}</div>
  8124. </div>
  8125. <div class="hfContent" v-html="h.content"></div>
  8126. <div class="hfBottom">
  8127. <div class="hfTime">{{ h.time }}</div>
  8128. <div
  8129. class="deleteHfItem"
  8130. @click="deleteReply(h.id)"
  8131. v-if="userid == h.userid"
  8132. >
  8133. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8134. </div>
  8135. </div>
  8136. </div>
  8137. </div>
  8138. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8139. <div class="replyInput">
  8140. <el-input v-model="reply[pzIndex]"></el-input>
  8141. </div>
  8142. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8143. </div> -->
  8144. </div>
  8145. </div>
  8146. <div class="noPz" v-else>
  8147. <img src="../assets/icon/noPz.png" alt="" />
  8148. </div>
  8149. <div class="addPzButton">
  8150. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8151. 添加评论
  8152. </div>
  8153. <!-- <div class="img1">
  8154. <div @click="(addPzDialog = true), (pzType = 2)">
  8155. <img src="../assets/audio.png" /><span>音频</span>
  8156. </div>
  8157. </div> -->
  8158. </div>
  8159. </div>
  8160. <div class="scoreList" v-if="commentTagShow==1">
  8161. <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"/>
  8162. </div>
  8163. </div>
  8164. <div
  8165. v-if="toolDialogVisible == true"
  8166. class="toolMask"
  8167. @click="toolDialogVisible = false"
  8168. ></div>
  8169. <div v-if="toolDialogVisible == true" class="addToolCss">
  8170. <div class="toolTop">
  8171. <div style="font-weight: bold">新增工具</div>
  8172. <div @click="toolDialogVisible = false">
  8173. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8174. </div>
  8175. </div>
  8176. <div class="tool_box">
  8177. <div class="tool_type_box">
  8178. <div class="chooseWho">
  8179. <div
  8180. :class="toolType == 0 ? 'isChooseActive' : ''"
  8181. @click="(toolType = 0), $forceUpdate()"
  8182. >
  8183. 互动类
  8184. </div>
  8185. <div
  8186. :class="toolType == 1 ? 'isChooseActive' : ''"
  8187. @click="(toolType = 1), $forceUpdate()"
  8188. >
  8189. 思维类
  8190. </div>
  8191. <div
  8192. :class="toolType == 2 ? 'isChooseActive' : ''"
  8193. @click="(toolType = 2), $forceUpdate()"
  8194. >
  8195. 测评类
  8196. </div>
  8197. <div
  8198. :class="toolType == 3 ? 'isChooseActive' : ''"
  8199. @click="(toolType = 3), $forceUpdate()"
  8200. >
  8201. 编程类
  8202. </div>
  8203. <div
  8204. :class="toolType == 5 ? 'isChooseActive' : ''"
  8205. @click="(toolType = 5), $forceUpdate()"
  8206. >
  8207. 学科类
  8208. </div>
  8209. </div>
  8210. </div>
  8211. <div>
  8212. <div class="toolSort" v-if="toolType == 0">
  8213. <div
  8214. class="tool"
  8215. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8216. @click="addTools2(10)"
  8217. >
  8218. <div class="whiteBIcon">
  8219. <img src="../assets/icon/thirdToolList/time.png" alt />
  8220. <div style="margin: 5px 0">倒计时</div>
  8221. </div>
  8222. <div class="check">
  8223. <div
  8224. v-if="checktoolArray.indexOf(10) == -1"
  8225. class="noChoose"
  8226. ></div>
  8227. <div v-else class="isChoose"></div>
  8228. </div>
  8229. </div>
  8230. <div
  8231. class="tool"
  8232. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8233. @click="addTools2(65)"
  8234. >
  8235. <div class="whiteBIcon">
  8236. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8237. <div style="margin: 5px 0">挑人</div>
  8238. </div>
  8239. <div class="check">
  8240. <div
  8241. v-if="checktoolArray.indexOf(65) == -1"
  8242. class="noChoose"
  8243. ></div>
  8244. <div v-else class="isChoose"></div>
  8245. </div>
  8246. </div>
  8247. </div>
  8248. <div class="toolSort" v-if="toolType == 1">
  8249. <div
  8250. class="tool"
  8251. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8252. @click="addTools2(7)"
  8253. >
  8254. <div class="whiteBIcon">
  8255. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8256. <div style="margin: 5px 0">思维网格</div>
  8257. </div>
  8258. <div class="check">
  8259. <div
  8260. v-if="checktoolArray.indexOf(7) == -1"
  8261. class="noChoose"
  8262. ></div>
  8263. <div v-else class="isChoose"></div>
  8264. </div>
  8265. </div>
  8266. <div
  8267. class="tool"
  8268. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8269. @click="addTools2(1)"
  8270. >
  8271. <div class="whiteBIcon">
  8272. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8273. <div style="margin: 5px 0">电子白板</div>
  8274. </div>
  8275. <div class="check">
  8276. <div
  8277. v-if="checktoolArray.indexOf(1) == -1"
  8278. class="noChoose"
  8279. ></div>
  8280. <div v-else class="isChoose"></div>
  8281. </div>
  8282. </div>
  8283. <div
  8284. class="tool"
  8285. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8286. @click="addTools2(52)"
  8287. >
  8288. <div class="whiteBIcon">
  8289. <img src="../assets/icon/fourthToolList/text.png" alt />
  8290. <div style="margin: 5px 0">文档</div>
  8291. </div>
  8292. <div class="check">
  8293. <div
  8294. v-if="checktoolArray.indexOf(52) == -1"
  8295. class="noChoose"
  8296. ></div>
  8297. <div v-else class="isChoose"></div>
  8298. </div>
  8299. </div>
  8300. <div
  8301. class="tool"
  8302. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8303. @click="addTools2(3)"
  8304. >
  8305. <div class="whiteBIcon">
  8306. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8307. <div style="margin: 5px 0">思维导图</div>
  8308. </div>
  8309. <div class="check">
  8310. <div
  8311. v-if="checktoolArray.indexOf(3) == -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(48) != -1 }"
  8320. @click="addTools2(48)"
  8321. >
  8322. <div class="whiteBIcon">
  8323. <img src="../assets/icon/fourthToolList/table.png" alt />
  8324. <div style="margin: 5px 0">表格</div>
  8325. </div>
  8326. <div class="check">
  8327. <div
  8328. v-if="checktoolArray.indexOf(48) == -1"
  8329. class="noChoose"
  8330. ></div>
  8331. <div v-else class="isChoose"></div>
  8332. </div>
  8333. </div>
  8334. </div>
  8335. <div class="toolSort" v-if="toolType == 6">
  8336. <div v-show="tooC == 49">
  8337. <img
  8338. @click="addTools(tooC, toolIndex, taskCount)"
  8339. src="../assets/icon/fourthToolList/group.png"
  8340. alt
  8341. />
  8342. <div style="margin: 5px 0">学生分组</div>
  8343. </div>
  8344. </div>
  8345. <div class="toolSort" v-if="toolType == 2">
  8346. <div
  8347. class="tool"
  8348. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8349. @click="addTools2(16)"
  8350. >
  8351. <div class="whiteBIcon">
  8352. <img src="../assets/icon/thirdToolList/work.png" alt />
  8353. <div style="margin: 5px 0">作业提交</div>
  8354. </div>
  8355. <div class="check">
  8356. <div
  8357. v-if="checktoolArray.indexOf(16) == -1"
  8358. class="noChoose"
  8359. ></div>
  8360. <div v-else class="isChoose"></div>
  8361. </div>
  8362. </div>
  8363. <div
  8364. class="tool"
  8365. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8366. @click="addTools2(50)"
  8367. >
  8368. <div class="whiteBIcon">
  8369. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8370. <div style="margin: 5px 0">批量上传</div>
  8371. </div>
  8372. <div class="check">
  8373. <div
  8374. v-if="checktoolArray.indexOf(50) == -1"
  8375. class="noChoose"
  8376. ></div>
  8377. <div v-else class="isChoose"></div>
  8378. </div>
  8379. </div>
  8380. </div>
  8381. <div class="toolSort" v-if="toolType == 3">
  8382. <div
  8383. class="tool"
  8384. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8385. @click="addTools2(18)"
  8386. >
  8387. <div class="whiteBIcon">
  8388. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8389. <div style="margin: 5px 0">训练平台</div>
  8390. </div>
  8391. <div class="check">
  8392. <div
  8393. v-if="checktoolArray.indexOf(18) == -1"
  8394. class="noChoose"
  8395. ></div>
  8396. <div v-else class="isChoose"></div>
  8397. </div>
  8398. </div>
  8399. <div
  8400. class="tool"
  8401. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8402. @click="addTools2(21)"
  8403. >
  8404. <div class="whiteBIcon">
  8405. <img src="../assets/icon/fourthToolList/program.png" alt />
  8406. <div style="margin: 5px 0">AIoT Blockly</div>
  8407. </div>
  8408. <div class="check">
  8409. <div
  8410. v-if="checktoolArray.indexOf(21) == -1"
  8411. class="noChoose"
  8412. ></div>
  8413. <div v-else class="isChoose"></div>
  8414. </div>
  8415. </div>
  8416. <div
  8417. class="tool"
  8418. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8419. @click="addTools2(23)"
  8420. >
  8421. <div class="whiteBIcon">
  8422. <img
  8423. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8424. alt
  8425. />
  8426. <div style="margin: 5px 0">AI Python</div>
  8427. </div>
  8428. <div class="check">
  8429. <div
  8430. v-if="checktoolArray.indexOf(23) == -1"
  8431. class="noChoose"
  8432. ></div>
  8433. <div v-else class="isChoose"></div>
  8434. </div>
  8435. </div>
  8436. <div
  8437. class="tool"
  8438. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8439. @click="addTools2(24)"
  8440. >
  8441. <div class="whiteBIcon">
  8442. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8443. <div style="margin: 5px 0">AI Blockly</div>
  8444. </div>
  8445. <div class="check">
  8446. <div
  8447. v-if="checktoolArray.indexOf(24) == -1"
  8448. class="noChoose"
  8449. ></div>
  8450. <div v-else class="isChoose"></div>
  8451. </div>
  8452. </div>
  8453. <div
  8454. class="tool"
  8455. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8456. @click="addTools2(32)"
  8457. >
  8458. <div class="whiteBIcon">
  8459. <img src="../assets/icon/thirdToolList/code.png" alt />
  8460. <div style="margin: 5px 0">源码编辑</div>
  8461. </div>
  8462. <div class="check">
  8463. <div
  8464. v-if="checktoolArray.indexOf(32) == -1"
  8465. class="noChoose"
  8466. ></div>
  8467. <div v-else class="isChoose"></div>
  8468. </div>
  8469. </div>
  8470. <div
  8471. class="tool"
  8472. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8473. @click="addTools2(57)"
  8474. >
  8475. <div class="whiteBIcon">
  8476. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8477. <div style="margin: 5px 0">CocoPi</div>
  8478. </div>
  8479. <div class="check">
  8480. <div
  8481. v-if="checktoolArray.indexOf(57) == -1"
  8482. class="noChoose"
  8483. ></div>
  8484. <div v-else class="isChoose"></div>
  8485. </div>
  8486. </div>
  8487. <div
  8488. class="tool"
  8489. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8490. @click="addTools2(63)"
  8491. >
  8492. <div class="whiteBIcon">
  8493. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8494. <div style="margin: 5px 0">海龟编程</div>
  8495. </div>
  8496. <div class="check">
  8497. <div
  8498. v-if="checktoolArray.indexOf(63) == -1"
  8499. class="noChoose"
  8500. ></div>
  8501. <div v-else class="isChoose"></div>
  8502. </div>
  8503. </div>
  8504. <div
  8505. class="tool"
  8506. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8507. @click="addTools2(71)"
  8508. >
  8509. <div class="whiteBIcon">
  8510. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  8511. <div style="margin: 5px 0">AI智能体</div>
  8512. </div>
  8513. <div class="check">
  8514. <div
  8515. v-if="checktoolArray.indexOf(71) == -1"
  8516. class="noChoose"
  8517. ></div>
  8518. <div v-else class="isChoose"></div>
  8519. </div>
  8520. </div>
  8521. </div>
  8522. <div class="toolSort" v-if="toolType == 7">
  8523. <div
  8524. class="tool"
  8525. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8526. @click="addTools2(40)"
  8527. >
  8528. <div class="whiteBIcon">
  8529. <img src="../assets/icon/secondToolList/eval.png" alt />
  8530. <div style="margin: 5px 0">个人评价</div>
  8531. </div>
  8532. <div class="check">
  8533. <div
  8534. v-if="checktoolArray.indexOf(40) == -1"
  8535. class="noChoose"
  8536. ></div>
  8537. <div v-else class="isChoose"></div>
  8538. </div>
  8539. </div>
  8540. </div>
  8541. <div class="toolSort" v-if="toolType == 5">
  8542. <div
  8543. class="tool"
  8544. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8545. @click="addTools2(28)"
  8546. >
  8547. <div class="whiteBIcon">
  8548. <img src="../assets/icon/secondToolList/translation.png" alt />
  8549. <div style="margin: 5px 0">翻译</div>
  8550. </div>
  8551. <div class="check">
  8552. <div
  8553. v-if="checktoolArray.indexOf(28) == -1"
  8554. class="noChoose"
  8555. ></div>
  8556. <div v-else class="isChoose"></div>
  8557. </div>
  8558. </div>
  8559. <div
  8560. class="tool"
  8561. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8562. @click="addTools2(31)"
  8563. >
  8564. <div class="whiteBIcon">
  8565. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8566. <div style="margin: 5px 0">数字画板</div>
  8567. </div>
  8568. <div class="check">
  8569. <div
  8570. v-if="checktoolArray.indexOf(31) == -1"
  8571. class="noChoose"
  8572. ></div>
  8573. <div v-else class="isChoose"></div>
  8574. </div>
  8575. </div>
  8576. <div
  8577. class="tool"
  8578. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8579. @click="addTools2(39)"
  8580. >
  8581. <div class="whiteBIcon">
  8582. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8583. <div style="margin: 5px 0">GeoGebra</div>
  8584. </div>
  8585. <div class="check">
  8586. <div
  8587. v-if="checktoolArray.indexOf(39) == -1"
  8588. class="noChoose"
  8589. ></div>
  8590. <div v-else class="isChoose"></div>
  8591. </div>
  8592. </div>
  8593. <div
  8594. class="tool"
  8595. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8596. @click="addTools2(66)"
  8597. >
  8598. <div class="whiteBIcon">
  8599. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8600. <div style="margin: 5px 0">公式编辑</div>
  8601. </div>
  8602. <div class="check">
  8603. <div
  8604. v-if="checktoolArray.indexOf(66) == -1"
  8605. class="noChoose"
  8606. ></div>
  8607. <div v-else class="isChoose"></div>
  8608. </div>
  8609. </div>
  8610. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8611. <div class="whiteBIcon" @click="addTools2(67)">
  8612. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8613. <div style="margin: 5px 0">分子结构</div>
  8614. </div>
  8615. <div class="check" @click="addTools2(67)">
  8616. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8617. <div v-else class="isChoose"></div>
  8618. </div>
  8619. </div> -->
  8620. <div
  8621. class="tool"
  8622. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8623. @click="addTools2(68)"
  8624. >
  8625. <div class="whiteBIcon">
  8626. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8627. <div style="margin: 5px 0">时间轴</div>
  8628. </div>
  8629. <div class="check">
  8630. <div
  8631. v-if="checktoolArray.indexOf(68) == -1"
  8632. class="noChoose"
  8633. ></div>
  8634. <div v-else class="isChoose"></div>
  8635. </div>
  8636. </div>
  8637. <!-- <div
  8638. class="tool"
  8639. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8640. @click="addTools2(69)"
  8641. >
  8642. <div class="whiteBIcon">
  8643. <img src="../assets/icon/secondToolList/english.png" alt />
  8644. <div style="margin: 5px 0">英语写作</div>
  8645. </div>
  8646. <div class="check">
  8647. <div
  8648. v-if="checktoolArray.indexOf(69) == -1"
  8649. class="noChoose"
  8650. ></div>
  8651. <div v-else class="isChoose"></div>
  8652. </div>
  8653. </div> -->
  8654. </div>
  8655. <div class="toolSort" v-if="toolType == 4">
  8656. <div
  8657. class="tool"
  8658. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8659. @click="addTools2(26)"
  8660. >
  8661. <div class="whiteBIcon">
  8662. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8663. <div style="margin: 5px 0">课程设计</div>
  8664. </div>
  8665. <div class="check">
  8666. <div
  8667. v-if="checktoolArray.indexOf(26) == -1"
  8668. class="noChoose"
  8669. ></div>
  8670. <div v-else class="isChoose"></div>
  8671. </div>
  8672. </div>
  8673. <div
  8674. class="tool"
  8675. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8676. @click="addTools2(25)"
  8677. >
  8678. <div class="whiteBIcon">
  8679. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8680. <div style="margin: 5px 0">目标管理</div>
  8681. </div>
  8682. <div class="check">
  8683. <div
  8684. v-if="checktoolArray.indexOf(25) == -1"
  8685. class="noChoose"
  8686. ></div>
  8687. <div v-else class="isChoose"></div>
  8688. </div>
  8689. </div>
  8690. </div>
  8691. </div>
  8692. </div>
  8693. <span
  8694. slot="footer"
  8695. class="dialog-footer"
  8696. style="display: block; text-align: center; padding: 0 0 10px 0"
  8697. >
  8698. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8699. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8700. </span>
  8701. </div>
  8702. <div
  8703. v-if="replyDialogVisible == true"
  8704. class="addDialogCss"
  8705. v-el-drag-dialog
  8706. >
  8707. <div class="pzTop">
  8708. <div class="teacherPz">
  8709. <div class="teacherPzImg">
  8710. <img src="../assets/icon/teacherPz.png" alt="" />
  8711. </div>
  8712. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8713. </div>
  8714. <div @click="replyDialogVisible = false">
  8715. <img src="../assets/close1.png" class="pzClose" alt="" />
  8716. </div>
  8717. </div>
  8718. <div class="addPzBox">
  8719. <!-- <div class="addPzCheck">
  8720. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8721. >文本</span
  8722. >
  8723. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8724. >音频</span
  8725. >
  8726. </div> -->
  8727. <div style="height: calc(100% - 50px)">
  8728. <editor-bar
  8729. class="binfo_input pzConText"
  8730. style="width: 100% !important; margin: 0 auto"
  8731. placeholder="请输入回复描述"
  8732. v-model="reply"
  8733. @change="change"
  8734. ></editor-bar>
  8735. </div>
  8736. <div class="addTextCss" @click="addHf">确定</div>
  8737. </div>
  8738. </div>
  8739. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8740. <div class="pzTop">
  8741. <div class="teacherPz">
  8742. <div class="teacherPzImg">
  8743. <img src="../assets/icon/teacherPz.png" alt="" />
  8744. </div>
  8745. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8746. </div>
  8747. <div @click="addPzDialog = false">
  8748. <img src="../assets/close1.png" class="pzClose" alt="" />
  8749. </div>
  8750. </div>
  8751. <div class="addPzBox">
  8752. <div class="addPzCheck">
  8753. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8754. >文本</span
  8755. >
  8756. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8757. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8758. >音频</span
  8759. >
  8760. </div>
  8761. <div style="height: calc(100% - 95px)">
  8762. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8763. v-if="pzType == 1"></textarea> -->
  8764. <editor-bar
  8765. class="binfo_input pzConText"
  8766. style="width: 100% !important"
  8767. placeholder="请输入任务描述"
  8768. v-model="pzConText"
  8769. @change="change"
  8770. v-if="pzType == 1"
  8771. ></editor-bar>
  8772. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8773. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8774. <div @click="addImg($event)">
  8775. <el-button type="primary">上传图片</el-button>
  8776. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8777. @change="beforeUpload1($event, 4)" />
  8778. </div>
  8779. </div> -->
  8780. </div>
  8781. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8782. 确定
  8783. </div>
  8784. </div>
  8785. </div>
  8786. <div v-if="proVisible" class="mask">
  8787. <div class="progressBox">
  8788. <!-- <div id="closePro" class="closeCss">
  8789. <img src="../assets/icon/close.png" alt />
  8790. </div> -->
  8791. <div class="lbox">
  8792. <img src="../assets/loading.gif" />上传中,请稍后
  8793. </div>
  8794. <div style="margin-bottom: 10px">
  8795. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8796. </div>
  8797. <el-progress
  8798. :text-inside="true"
  8799. :stroke-width="20"
  8800. :percentage="progress"
  8801. style="width: 80%"
  8802. ></el-progress>
  8803. </div>
  8804. </div>
  8805. <div v-if="proVisible2" class="mask">
  8806. <div class="progressBox">
  8807. <div class="lbox">
  8808. <img src="../assets/loading.gif" />上传中,请稍后
  8809. </div>
  8810. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8811. </div>
  8812. </div>
  8813. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8814. <img width="100%" :src="dialogImageUrl" alt />
  8815. </el-dialog>
  8816. <el-dialog
  8817. :title="noteName != '' ? noteName : '查看问卷'"
  8818. :visible.sync="dialogVisible5"
  8819. :append-to-body="true"
  8820. width="1000px"
  8821. :before-close="handleClose"
  8822. class="dialog_diy dialog_diy3"
  8823. >
  8824. <div>
  8825. <div
  8826. class="a_add_title"
  8827. style="
  8828. display: flex;
  8829. flex-direction: row;
  8830. align-items: center;
  8831. justify-content: center;
  8832. "
  8833. >
  8834. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8835. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8836. </div>
  8837. <div class="a_addBox">
  8838. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8839. 题目内容
  8840. </div>
  8841. <div
  8842. class="a_add_box"
  8843. v-for="(item1, index1) in askJson.askCount"
  8844. :key="index1"
  8845. >
  8846. <div class="a_add_head">
  8847. <div style="display: flex">
  8848. <span class="askIndex"> {{ index1 + 1 }}</span>
  8849. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8850. </div>
  8851. <img
  8852. v-if="askJson.askJson[index1].img"
  8853. :src="askJson.askJson[index1].img"
  8854. style="height: 300px; margin-top: 10px; max-width: 100%"
  8855. />
  8856. </div>
  8857. <div class="a_add_body">
  8858. <div class="a_add_input">
  8859. <el-radio-group
  8860. v-model="radio[index1]"
  8861. v-if="
  8862. askJson.askJson[index1].type == '1' ||
  8863. !askJson.askJson[index1].type
  8864. "
  8865. >
  8866. <el-radio
  8867. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8868. .checkList"
  8869. :key="checkIndex"
  8870. :label="checkIndex"
  8871. :disabled="isAnswer"
  8872. class="redioStyle"
  8873. ><span v-html="item2"></span
  8874. ></el-radio>
  8875. </el-radio-group>
  8876. <el-checkbox-group
  8877. v-model="radio[index1]"
  8878. v-if="askJson.askJson[index1].type == '2'"
  8879. >
  8880. <el-checkbox
  8881. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8882. .checkList"
  8883. :key="checkIndex1"
  8884. :label="checkIndex1"
  8885. :disabled="isAnswer"
  8886. class="redioStyle"
  8887. ><span v-html="item2"></span>
  8888. </el-checkbox>
  8889. </el-checkbox-group>
  8890. </div>
  8891. </div>
  8892. </div>
  8893. </div>
  8894. </div>
  8895. <span slot="footer" class="dialog-footer">
  8896. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8897. >取 消</el-button
  8898. >
  8899. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8900. >确 定</el-button
  8901. >
  8902. </span>
  8903. </el-dialog>
  8904. <el-dialog
  8905. :title="noteName != '' ? noteName : '查看问卷'"
  8906. :visible.sync="dialogVisible5Teacher"
  8907. :append-to-body="true"
  8908. width="1000px"
  8909. :before-close="handleClose"
  8910. class="dialog_diy dialog_diy3"
  8911. >
  8912. <div>
  8913. <div class="w_name">
  8914. 学生姓名:<span>{{ sStudent.student }}</span>
  8915. </div>
  8916. <div
  8917. class="a_add_title"
  8918. style="
  8919. display: flex;
  8920. flex-direction: row;
  8921. align-items: center;
  8922. justify-content: center;
  8923. "
  8924. >
  8925. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8926. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8927. </div>
  8928. <div class="a_addBox">
  8929. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8930. 题目内容
  8931. </div>
  8932. <div
  8933. class="a_add_box"
  8934. v-for="(item1, index1) in askJson.askCount"
  8935. :key="index1"
  8936. >
  8937. <div class="a_add_head">
  8938. <div style="display: flex">
  8939. <span class="askIndex">{{ index1 + 1 }}</span>
  8940. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8941. </div>
  8942. <img
  8943. v-if="askJson.askJson[index1].img"
  8944. :src="askJson.askJson[index1].img"
  8945. style="height: 300px; margin-top: 10px; max-width: 100%"
  8946. />
  8947. </div>
  8948. <div class="a_add_body">
  8949. <div class="a_add_input">
  8950. <el-radio-group
  8951. v-model="radio[index1]"
  8952. v-if="
  8953. askJson.askJson[index1].type == '1' ||
  8954. !askJson.askJson[index1].type
  8955. "
  8956. >
  8957. <el-radio
  8958. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8959. .checkList"
  8960. :key="checkIndex"
  8961. :label="checkIndex"
  8962. :disabled="isAnswer"
  8963. class="redioStyle"
  8964. ><span v-html="item2"></span
  8965. ></el-radio>
  8966. </el-radio-group>
  8967. <el-checkbox-group
  8968. v-model="radio[index1]"
  8969. v-if="askJson.askJson[index1].type == '2'"
  8970. >
  8971. <el-checkbox
  8972. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8973. .checkList"
  8974. :key="checkIndex1"
  8975. :label="checkIndex1"
  8976. :disabled="isAnswer"
  8977. class="redioStyle"
  8978. ><span v-html="item2"></span>
  8979. </el-checkbox>
  8980. </el-checkbox-group>
  8981. </div>
  8982. </div>
  8983. </div>
  8984. </div>
  8985. </div>
  8986. <span slot="footer" class="dialog-footer">
  8987. <el-button
  8988. @click="dialogVisible5Teacher = false"
  8989. v-show="noteName == ''"
  8990. >取 消</el-button
  8991. >
  8992. <el-button
  8993. type="primary"
  8994. @click="addStudentAskTeacher"
  8995. v-show="noteName == ''"
  8996. >确 定</el-button
  8997. >
  8998. </span>
  8999. </el-dialog>
  9000. <el-dialog
  9001. :title="noteName != '' ? noteName : '查看选择题'"
  9002. :visible.sync="dialogVisibleChoice"
  9003. :append-to-body="true"
  9004. width="1000px"
  9005. :before-close="handleClose"
  9006. class="dialog_diy dialog_diy3"
  9007. >
  9008. <div>
  9009. <!-- <div class="a_add_title" style="
  9010. display: flex;
  9011. flex-direction: row;
  9012. align-items: center;
  9013. justify-content: center;
  9014. ">
  9015. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9016. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9017. </div> -->
  9018. <div class="a_addBox">
  9019. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9020. 题目内容
  9021. </div>
  9022. <div
  9023. class="a_add_box"
  9024. v-for="(item1, index1) in testJson.testCount"
  9025. :key="index1"
  9026. >
  9027. <div class="a_add_head">
  9028. <div style="display: flex">
  9029. <span class="askIndex">{{ index1 + 1 }}</span>
  9030. <div
  9031. v-if="testJson.testJson[index1].type == '1'"
  9032. style="margin-right: 5px; min-width: 70px"
  9033. >
  9034. (单选题)
  9035. </div>
  9036. <div
  9037. v-if="testJson.testJson[index1].type == '2'"
  9038. style="margin-right: 5px; min-width: 70px"
  9039. >
  9040. (多选题)
  9041. </div>
  9042. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9043. </div>
  9044. <img
  9045. v-if="testJson.testJson[index1].img"
  9046. :src="testJson.testJson[index1].img"
  9047. style="height: 300px; margin-top: 10px; max-width: 100%"
  9048. />
  9049. </div>
  9050. <div
  9051. class="timuImgBox"
  9052. v-if="
  9053. testJson.testJson[index1].timuList &&
  9054. testJson.testJson[index1].timuList.length
  9055. "
  9056. >
  9057. <div
  9058. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9059. :key="tIndex"
  9060. class="timuImg"
  9061. @click.stop="previewImg(timg.src)"
  9062. >
  9063. <img :src="timg.src" alt="" />
  9064. </div>
  9065. </div>
  9066. <div class="a_add_body">
  9067. <div class="a_add_input">
  9068. <el-radio-group
  9069. v-model="radio[index1]"
  9070. v-if="testJson.testJson[index1].type == '1'"
  9071. >
  9072. <div class="radioBox">
  9073. <el-radio
  9074. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9075. .checkList"
  9076. :key="checkIndex"
  9077. :label="checkIndex"
  9078. :disabled="isAnswer"
  9079. class="redioStyle"
  9080. >
  9081. <div
  9082. style="margin-right: 10px"
  9083. v-if="item2 && item2.imgType && item2.imgType == 1"
  9084. >
  9085. <div class="inImg" @click.stop="previewImg(item2.src)">
  9086. <img :src="item2.src" alt="" />
  9087. </div>
  9088. </div>
  9089. <span v-else v-html="item2"></span>
  9090. </el-radio>
  9091. </div>
  9092. </el-radio-group>
  9093. <el-checkbox-group
  9094. v-model="radio[index1]"
  9095. v-if="testJson.testJson[index1].type == '2'"
  9096. >
  9097. <div class="radioBox">
  9098. <el-checkbox
  9099. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9100. .checkList"
  9101. :key="checkIndex"
  9102. :label="checkIndex"
  9103. :disabled="isAnswer"
  9104. class="redioStyle"
  9105. >
  9106. <div
  9107. style="margin-right: 10px"
  9108. v-if="item2 && item2.imgType && item2.imgType == 1"
  9109. >
  9110. <div class="inImg" @click.stop="previewImg(item2.src)">
  9111. <img :src="item2.src" alt="" />
  9112. </div>
  9113. </div>
  9114. <span v-else v-html="item2"></span>
  9115. </el-checkbox>
  9116. </div>
  9117. </el-checkbox-group>
  9118. </div>
  9119. </div>
  9120. </div>
  9121. </div>
  9122. </div>
  9123. <span slot="footer" class="dialog-footer">
  9124. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9125. >取 消</el-button
  9126. >
  9127. <el-button
  9128. type="primary"
  9129. @click="addStudentTest"
  9130. v-show="noteName == ''"
  9131. >确 定</el-button
  9132. >
  9133. </span>
  9134. </el-dialog>
  9135. <el-dialog
  9136. :title="noteName != '' ? noteName : '查看选择题'"
  9137. :visible.sync="dialogVisibleChoiceTeacher"
  9138. :append-to-body="true"
  9139. width="1000px"
  9140. :before-close="handleClose"
  9141. class="dialog_diy dialog_diy3"
  9142. >
  9143. <div>
  9144. <div class="w_name">
  9145. 学生姓名:<span>{{ sStudent.student }}</span>
  9146. </div>
  9147. <div class="a_addBox">
  9148. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9149. 题目内容
  9150. </div>
  9151. <div
  9152. class="a_add_box"
  9153. v-for="(item1, index1) in testJson.testCount"
  9154. :key="index1"
  9155. >
  9156. <div class="a_add_head">
  9157. <div style="display: flex">
  9158. <span class="askIndex">{{ index1 + 1 }}</span>
  9159. <div
  9160. v-if="testJson.testJson[index1].type == '1'"
  9161. style="margin-right: 5px; min-width: 70px"
  9162. >
  9163. (单选题)
  9164. </div>
  9165. <div
  9166. v-if="testJson.testJson[index1].type == '2'"
  9167. style="margin-right: 5px; min-width: 70px"
  9168. >
  9169. (多选题)
  9170. </div>
  9171. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9172. </div>
  9173. <img
  9174. v-if="testJson.testJson[index1].img"
  9175. :src="testJson.testJson[index1].img"
  9176. style="height: 300px; margin-top: 10px; max-width: 100%"
  9177. />
  9178. </div>
  9179. <div
  9180. class="timuImgBox"
  9181. v-if="
  9182. testJson.testJson[index1].timuList &&
  9183. testJson.testJson[index1].timuList.length
  9184. "
  9185. >
  9186. <div
  9187. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9188. :key="tIndex"
  9189. class="timuImg"
  9190. @click.stop="previewImg(timg.src)"
  9191. >
  9192. <img :src="timg.src" alt="" />
  9193. </div>
  9194. </div>
  9195. <div class="a_add_body">
  9196. <div class="a_add_input">
  9197. <el-radio-group
  9198. v-model="radio[index1]"
  9199. v-if="testJson.testJson[index1].type == '1'"
  9200. >
  9201. <div class="radioBox">
  9202. <el-radio
  9203. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9204. .checkList"
  9205. :key="checkIndex"
  9206. :label="checkIndex"
  9207. :disabled="isAnswer"
  9208. class="redioStyle"
  9209. >
  9210. <div
  9211. style="margin-right: 10px"
  9212. v-if="item2 && item2.imgType && item2.imgType == 1"
  9213. >
  9214. <div class="inImg" @click.stop="previewImg(item2.src)">
  9215. <img :src="item2.src" alt="" />
  9216. </div>
  9217. </div>
  9218. <span v-else v-html="item2"></span>
  9219. </el-radio>
  9220. </div>
  9221. </el-radio-group>
  9222. <el-checkbox-group
  9223. v-model="radio[index1]"
  9224. v-if="testJson.testJson[index1].type == '2'"
  9225. >
  9226. <div class="radioBox">
  9227. <el-checkbox
  9228. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9229. .checkList"
  9230. :key="checkIndex"
  9231. :label="checkIndex"
  9232. :disabled="isAnswer"
  9233. class="redioStyle"
  9234. >
  9235. <div
  9236. style="margin-right: 10px"
  9237. v-if="item2 && item2.imgType && item2.imgType == 1"
  9238. >
  9239. <div class="inImg" @click.stop="previewImg(item2.src)">
  9240. <img :src="item2.src" alt="" />
  9241. </div>
  9242. </div>
  9243. <span v-else v-html="item2"></span>
  9244. </el-checkbox>
  9245. </div>
  9246. </el-checkbox-group>
  9247. </div>
  9248. </div>
  9249. </div>
  9250. </div>
  9251. </div>
  9252. <span slot="footer" class="dialog-footer">
  9253. <el-button
  9254. @click="dialogVisibleChoiceTeacher = false"
  9255. v-show="noteName == ''"
  9256. >取 消</el-button
  9257. >
  9258. <el-button
  9259. type="primary"
  9260. @click="addStudentTestTeacher"
  9261. v-show="noteName == ''"
  9262. >确 定</el-button
  9263. >
  9264. </span>
  9265. </el-dialog>
  9266. <el-dialog
  9267. title="查看富文本"
  9268. :visible.sync="dialogVisible1"
  9269. :append-to-body="true"
  9270. width="500px"
  9271. :before-close="handleClose"
  9272. class="dialog_diy textCss"
  9273. >
  9274. <el-form style="font-size: 20px">
  9275. <el-form-item label="文本标题" class="textTitle">
  9276. <div style="font-size: 20px">{{ text.name }}</div>
  9277. </el-form-item>
  9278. <div>富文本内容</div>
  9279. <div
  9280. v-html="text.url"
  9281. style="font-size: 18px; padding: 40px 0 0 0"
  9282. ></div>
  9283. </el-form>
  9284. <span slot="footer" class="dialog-footer">
  9285. <el-button type="primary" @click="dialogVisible1 = false"
  9286. >确定</el-button
  9287. >
  9288. </span>
  9289. </el-dialog>
  9290. <el-dialog
  9291. title="文件预览"
  9292. :visible.sync="dialogVisible3"
  9293. width="50%"
  9294. :before-close="handleClose"
  9295. class="dialog_diy"
  9296. :class="{ fullStyle: full }"
  9297. >
  9298. <div slot="title" class="header-title">
  9299. <div style="color: #fff">文件预览</div>
  9300. <div style="position: absolute; top: 19px; right: 50px">
  9301. <img
  9302. src="../assets/full.png"
  9303. style="height: 16px; cursor: pointer"
  9304. alt=""
  9305. @click="fullTools"
  9306. />
  9307. </div>
  9308. </div>
  9309. <pdf
  9310. v-if="showPDF"
  9311. :pdfUrl="pptImgUrl"
  9312. style="width: 100%; height: 520px; overflow: auto"
  9313. :class="{ fullStyle: full }"
  9314. ></pdf>
  9315. <iframe
  9316. v-else
  9317. :src="pptImgUrl"
  9318. frameborder="0"
  9319. width="100%"
  9320. height="600"
  9321. :class="{ fullStyle: full }"
  9322. ></iframe>
  9323. </el-dialog>
  9324. <el-dialog
  9325. title="文件预览"
  9326. :visible.sync="dialogVisible6"
  9327. width="50%"
  9328. :before-close="handleClose"
  9329. class="dialog_diy"
  9330. >
  9331. <iframe
  9332. :src="pptImgUrl1"
  9333. frameborder="0"
  9334. width="100%"
  9335. height="600"
  9336. ></iframe>
  9337. </el-dialog>
  9338. <el-dialog
  9339. title="提示"
  9340. :visible.sync="dialogVisible4"
  9341. :append-to-body="true"
  9342. width="800px"
  9343. :before-close="handleClose"
  9344. class="dialog_diy notice"
  9345. >
  9346. <div>此功能暂未开放!</div>
  9347. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9348. </el-dialog>
  9349. <el-dialog
  9350. title="问答"
  9351. :visible.sync="answerDialogVisible"
  9352. :append-to-body="true"
  9353. width="800px"
  9354. :before-close="handleClose"
  9355. class="dialog_diy"
  9356. >
  9357. <div>
  9358. <div
  9359. style="
  9360. display: flex;
  9361. flex-wrap: nowrap;
  9362. flex-direction: column;
  9363. position: relative;
  9364. "
  9365. >
  9366. <div class="queTop" style="padding: 20px 0 20px 0">
  9367. <div class="question">
  9368. <img src="../assets/icon/question.png" alt />
  9369. </div>
  9370. <div class="queTitle">
  9371. <div style="width: 90px; min-width: 90px">提问:</div>
  9372. <div>{{ answerQ }}</div>
  9373. </div>
  9374. </div>
  9375. <div class="ediBottom">
  9376. <textarea
  9377. rows="6"
  9378. class="binfo_input"
  9379. cols
  9380. style="width: 95%; height: 120px"
  9381. v-model="questionAnswer"
  9382. ></textarea>
  9383. </div>
  9384. </div>
  9385. </div>
  9386. <div slot="footer">
  9387. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9388. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9389. </div>
  9390. </el-dialog>
  9391. <el-dialog
  9392. title="问答"
  9393. :visible.sync="answerDialogVisibleTeacher"
  9394. :append-to-body="true"
  9395. width="800px"
  9396. :before-close="handleClose"
  9397. class="dialog_diy"
  9398. >
  9399. <div>
  9400. <div class="w_name">
  9401. 学生姓名:<span>{{ sStudent.student }}</span>
  9402. </div>
  9403. <div
  9404. style="
  9405. display: flex;
  9406. flex-wrap: nowrap;
  9407. flex-direction: column;
  9408. position: relative;
  9409. "
  9410. >
  9411. <div class="queTop" style="padding: 20px 0 20px 0">
  9412. <div class="question">
  9413. <img src="../assets/icon/question.png" alt />
  9414. </div>
  9415. <div class="queTitle">
  9416. <div style="width: 90px; min-width: 90px">提问:</div>
  9417. <div>{{ answerQ }}</div>
  9418. </div>
  9419. </div>
  9420. <div class="ediBottom">
  9421. <textarea
  9422. rows="6"
  9423. class="binfo_input"
  9424. cols
  9425. style="width: 95%; height: 120px"
  9426. v-model="questionAnswer"
  9427. ></textarea>
  9428. </div>
  9429. </div>
  9430. </div>
  9431. <div slot="footer">
  9432. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9433. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9434. </div>
  9435. </el-dialog>
  9436. <el-dialog
  9437. title="倒计时"
  9438. :visible.sync="timeDialogVisible"
  9439. :append-to-body="true"
  9440. width="800px"
  9441. :before-close="handleClose"
  9442. class="dialog_diy"
  9443. >
  9444. <div>
  9445. <div style="margin-bottom: 20px; color: #999">
  9446. 提示:点击“+”或“-”修改倒计时时长。
  9447. </div>
  9448. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9449. </div>
  9450. <div slot="footer">
  9451. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9452. </div>
  9453. </el-dialog>
  9454. <el-dialog
  9455. title="权限设置"
  9456. :visible.sync="juriVisible"
  9457. :append-to-body="true"
  9458. width="400px"
  9459. :before-close="handleClose"
  9460. class="dialog_diy"
  9461. >
  9462. <div>
  9463. <div class="open_box">
  9464. <div class="switch_box">
  9465. <span>允许学生查看所有作业</span>
  9466. <el-switch
  9467. v-model="sIsOpen"
  9468. active-text=""
  9469. class="switchCss"
  9470. @change="updateSLook"
  9471. ></el-switch>
  9472. </div>
  9473. <div
  9474. class="switch_box"
  9475. v-if="
  9476. courseDetail.userid == userid ||
  9477. (courseDetail.course_teacher &&
  9478. courseDetail.course_teacher.indexOf(userid) != -1)
  9479. "
  9480. >
  9481. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9482. <span>禁止学生查看所有阶段</span>
  9483. <el-switch
  9484. v-model="IsLookOpen"
  9485. active-text=""
  9486. class="switchCss"
  9487. @change="updateLookOpen"
  9488. ></el-switch>
  9489. </div>
  9490. <div class="switch_box" v-if="courseDetail.userid == userid">
  9491. <span>开启跟随模式</span>
  9492. <el-switch
  9493. v-model="IsFollow"
  9494. active-text=""
  9495. class="switchCss"
  9496. @change="updateFollow"
  9497. ></el-switch>
  9498. </div>
  9499. </div>
  9500. </div>
  9501. <div slot="footer">
  9502. <el-button
  9503. style="background: #409efe; color: #fff"
  9504. @click="juriVisible = false"
  9505. >关 闭</el-button
  9506. >
  9507. </div>
  9508. </el-dialog>
  9509. <el-dialog
  9510. title="查看视频"
  9511. :visible.sync="videoVisible"
  9512. :append-to-body="true"
  9513. width="1000px"
  9514. :before-close="handleClose"
  9515. class="dialog_diy1"
  9516. >
  9517. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9518. <video-player
  9519. class="video-player vjs-custom-skin"
  9520. :playsinline="true"
  9521. :options="videoDetail"
  9522. @play="onPlayerPlay($event)"
  9523. style="width: 100%; height: 100%"
  9524. ></video-player>
  9525. </div>
  9526. <div slot="footer">
  9527. <el-button
  9528. style="background: #409efe; color: #fff"
  9529. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9530. >
  9531. 关 闭</el-button
  9532. >
  9533. </div>
  9534. </el-dialog>
  9535. <el-dialog
  9536. title="查看详情"
  9537. :visible.sync="commentDialogVisible"
  9538. :append-to-body="true"
  9539. width="800px"
  9540. :before-close="handleClose"
  9541. class="dialog_diy"
  9542. >
  9543. <div class="commentTop">
  9544. <div class="studentDetail">
  9545. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9546. <div class="nameAndTime">
  9547. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9548. <div>{{ commentDetail.time }}</div>
  9549. </div>
  9550. <div
  9551. class="returnBtn"
  9552. style="margin-left: auto; width: 80px"
  9553. v-if="
  9554. commentDetail.works &&
  9555. commentDetail.type == 0 &&
  9556. (tType == 1 || tType == 4)
  9557. "
  9558. @click="
  9559. showPicturePaint(
  9560. commentDetail.img ? commentDetail.img : commentDetail.works
  9561. )
  9562. "
  9563. >
  9564. 教师批注
  9565. </div>
  9566. </div>
  9567. <div
  9568. class="worksAnswer"
  9569. v-if="commentDetail.works && commentDetail.type == 2"
  9570. >
  9571. {{ JSON.parse(commentDetail.works)[0].answer }}
  9572. </div>
  9573. <div
  9574. class="worksAnswer"
  9575. v-if="commentDetail.works && commentDetail.type == 1"
  9576. >
  9577. <img
  9578. src="../assets/teacherWork.png"
  9579. v-if="commentDetail.ateacher"
  9580. class="w_teachert"
  9581. />
  9582. <pdf
  9583. v-if="showPDF"
  9584. :pdfUrl="pptImgUrl"
  9585. style="width: 100%; height: 520px; overflow: auto"
  9586. :class="{ fullStyle: full }"
  9587. ></pdf>
  9588. <iframe
  9589. v-else
  9590. :src="pptImgUrl"
  9591. frameborder="0"
  9592. width="100%"
  9593. height="600"
  9594. :class="{ fullStyle: full }"
  9595. ></iframe>
  9596. </div>
  9597. <div
  9598. class="worksAnswer"
  9599. v-if="commentDetail.works && commentDetail.type == 0"
  9600. >
  9601. <img
  9602. src="../assets/teacherWork.png"
  9603. v-if="commentDetail.ateacher"
  9604. class="w_teachert"
  9605. style="right: 105px"
  9606. />
  9607. <img
  9608. :src="commentDetail.works"
  9609. alt=""
  9610. @click="previewImg(commentDetail.works)"
  9611. />
  9612. </div>
  9613. <div
  9614. class="worksAnswer"
  9615. v-if="commentDetail.works && commentDetail.type == 3"
  9616. >
  9617. <img
  9618. src="../assets/teacherWork.png"
  9619. v-if="commentDetail.ateacher"
  9620. class="w_teachert"
  9621. />
  9622. <video-player
  9623. class="video-player vjs-custom-skin"
  9624. :playsinline="true"
  9625. :options="videoDetail"
  9626. @play="onPlayerPlay($event)"
  9627. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9628. ></video-player>
  9629. </div>
  9630. <div
  9631. class="worksAnswer"
  9632. v-if="commentDetail.works && commentDetail.type == 10"
  9633. >
  9634. <div class="cont" v-html="commentDetail.works.text"></div>
  9635. </div>
  9636. <div
  9637. class="worksAnswer codeFileBox"
  9638. v-if="commentDetail.works && commentDetail.type == 12"
  9639. @click="downloadFile(commentDetail.works)"
  9640. >
  9641. <img src="../assets/icon/codeFile.png" />
  9642. <div>点击下载文件</div>
  9643. </div>
  9644. <div
  9645. class="worksAnswer codeFileBox"
  9646. v-if="commentDetail.works && commentDetail.type == 15"
  9647. @click="
  9648. openCocoPi(
  9649. 57,
  9650. commentIndexJson.toolIndex,
  9651. commentDetail.userid,
  9652. commentDetail.sName
  9653. )
  9654. "
  9655. >
  9656. <img src="../assets/icon/codeFile.png" />
  9657. <div>点击打开CocoPi</div>
  9658. </div>
  9659. <div
  9660. class="worksAnswer"
  9661. v-if="commentDetail.works && commentDetail.type == 13"
  9662. >
  9663. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9664. </div>
  9665. <div
  9666. class="worksAnswer"
  9667. v-if="commentDetail.works && commentDetail.type == 4"
  9668. >
  9669. <div class="evalCss">
  9670. <div class="nav">请选择星星进行评分</div>
  9671. <div class="middleBox" v-if="eScore.eStar">
  9672. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9673. <div class="nameAndrate">
  9674. <div>{{ e.value }}</div>
  9675. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9676. </div>
  9677. <div v-if="e.detail">{{ e.detail }}</div>
  9678. </div>
  9679. <div class="bz">
  9680. <textarea
  9681. disabled
  9682. rows="4"
  9683. class="pj"
  9684. style="
  9685. padding: 10px 5px;
  9686. width: 70%;
  9687. background: #f7f6f9;
  9688. font-size: 14px;
  9689. text-indent: 10px;
  9690. color: #000;
  9691. "
  9692. cols
  9693. v-model="eScore.eBzText"
  9694. placeholder="请输入评价内容..."
  9695. ></textarea>
  9696. </div>
  9697. </div>
  9698. </div>
  9699. </div>
  9700. <div class="comment">
  9701. <div class="commentList">
  9702. <div class="commentImg">
  9703. <img
  9704. @click="
  9705. isLikes(
  9706. commentDetail.wid,
  9707. userid,
  9708. 1,
  9709. null,
  9710. commentDetail.isLikes
  9711. )
  9712. "
  9713. :src="commentDetail.isLikes == true ? likes : noLikes"
  9714. alt=""
  9715. />
  9716. </div>
  9717. <div>{{ commentDetail.likesCount }}</div>
  9718. </div>
  9719. <div class="commentList">
  9720. <div class="commentImg">
  9721. <img src="../assets/icon/comment/comment.png" alt="" />
  9722. </div>
  9723. <div>{{ commentDetail.commentCount }}</div>
  9724. </div>
  9725. </div>
  9726. <div class="drawPBox" v-if="commentDetail.img">
  9727. <span>教师批注</span>
  9728. <img
  9729. :src="commentDetail.img"
  9730. alt=""
  9731. @click="previewImg(commentDetail.img)"
  9732. />
  9733. <span
  9734. class="deleteImg"
  9735. v-if="tType == 1 || tType == 4"
  9736. @click.stop="deletePicturePaint(commentDetail.wid)"
  9737. style="
  9738. font-size: 14px;
  9739. width: auto !important;
  9740. color: #b4b4b4;
  9741. top: unset;
  9742. bottom: 0;
  9743. border: none;
  9744. padding: 0;
  9745. height: auto !important;
  9746. margin: 0;
  9747. "
  9748. >删除</span
  9749. >
  9750. </div>
  9751. </div>
  9752. <div class="commentBox">
  9753. <div class="pl">评论:</div>
  9754. <div style="max-height: 200px; overflow: auto">
  9755. <div
  9756. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9757. style="padding: 10px 0 0 0"
  9758. >
  9759. <div
  9760. class="studentDetail"
  9761. style="padding-top: 10px"
  9762. v-for="(co, coIndex) in commentDetail.commentJson"
  9763. :key="coIndex"
  9764. >
  9765. <div class="tx" style="min-width: 50px">
  9766. <img src="../assets/avatar.png" alt="" />
  9767. </div>
  9768. <div class="plPerson">
  9769. <div class="plName">
  9770. <div>{{ co.commentPeople }}</div>
  9771. <div style="margin-left: 5px">
  9772. {{ co.commentTime }}
  9773. </div>
  9774. <div
  9775. class="deleteComment"
  9776. v-if="userid == co.userid"
  9777. @click="deleteComment(co.wid)"
  9778. >
  9779. 删除
  9780. </div>
  9781. </div>
  9782. <div class="plContent">{{ co.commentText }}</div>
  9783. </div>
  9784. </div>
  9785. </div>
  9786. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9787. </div>
  9788. </div>
  9789. <div style="margin-top: 10px">
  9790. <div class="displayBox">
  9791. <div
  9792. style="
  9793. color: #556db4;
  9794. font-size: 14px;
  9795. font-weight: bold;
  9796. padding-bottom: 10px;
  9797. "
  9798. >
  9799. 评价
  9800. </div>
  9801. <div class="easy_comment" v-if="false">
  9802. <div
  9803. v-for="(p, pIndex) in PlTextList"
  9804. :key="pIndex"
  9805. @click="fastText(p, 1)"
  9806. >
  9807. {{ p }}
  9808. </div>
  9809. </div>
  9810. </div>
  9811. <div>
  9812. <textarea
  9813. rows="3"
  9814. class="pj"
  9815. style="padding: 10px 5px"
  9816. cols
  9817. v-model="commentText"
  9818. placeholder="请输入评论"
  9819. ></textarea>
  9820. </div>
  9821. </div>
  9822. <div slot="footer">
  9823. <el-button
  9824. @click="
  9825. (commentDialogVisible = false),
  9826. (commentIndexJson = {}),
  9827. videoDetail.sources && videoDetail.sources[0]
  9828. ? (videoDetail.sources[0].src = '')
  9829. : ''
  9830. "
  9831. >取 消</el-button
  9832. >
  9833. <el-button
  9834. type="primary"
  9835. @click="addComment(commentDetail.wid, userid, 2)"
  9836. >确 定</el-button
  9837. >
  9838. </div>
  9839. </el-dialog>
  9840. <el-dialog
  9841. title="查看文档"
  9842. :visible.sync="fullDialogVisible"
  9843. :append-to-body="true"
  9844. width="100%"
  9845. :before-close="handleClose"
  9846. :show-close="false"
  9847. class="dialog_diy full_diy"
  9848. :class="{ full_diy2: fulltype == 3 }"
  9849. >
  9850. <div slot="title" class="header-title">
  9851. <div style="color: #fff">查看文档</div>
  9852. <div
  9853. @click="fullDialogVisible = false"
  9854. style="
  9855. cursor: pointer;
  9856. position: absolute;
  9857. top: 20px;
  9858. right: 20px;
  9859. color: #fff;
  9860. "
  9861. >
  9862. 退出全屏
  9863. </div>
  9864. </div>
  9865. <div style="height: 100%">
  9866. <div
  9867. class="wheel"
  9868. v-if="
  9869. fulltype == 2 &&
  9870. fullUrl.indexOf(
  9871. 'https://view.officeapps.live.com/op/view.aspx?src='
  9872. ) != -1
  9873. "
  9874. style="width: 95%; margin: 0 auto"
  9875. >
  9876. <iframe
  9877. style="width: 100%; height: 100%; border: none"
  9878. :src="fullUrl"
  9879. ></iframe>
  9880. </div>
  9881. <iframe
  9882. v-else-if="fulltype == 2"
  9883. style="width: 100%; height: 100%; border: none"
  9884. :src="fullUrl"
  9885. security="restricted"
  9886. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9887. ></iframe>
  9888. <pdf
  9889. v-else-if="fulltype == 3"
  9890. :pdfUrl="fullUrl"
  9891. style="width: 100%; height: 100%; overflow: auto"
  9892. ></pdf>
  9893. <div
  9894. class="wheel"
  9895. v-if="fulltype == 1"
  9896. style="
  9897. box-shadow: 0 0 6px 1px #f2f2f2;
  9898. width: 100%;
  9899. background: #f1f1f1;
  9900. "
  9901. >
  9902. <div class="title" style="width: 100%; box-sizing: border-box">
  9903. 查看文档
  9904. </div>
  9905. <el-form class="textBox" style="height: 90%">
  9906. <el-form-item class="textTitle">
  9907. <div style="font-size: 22px">
  9908. {{ fullUrl.name }}
  9909. </div>
  9910. </el-form-item>
  9911. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9912. <div
  9913. v-html="fullUrl.url"
  9914. class="textContent"
  9915. style="height: auto"
  9916. ></div>
  9917. </el-form>
  9918. </div>
  9919. </div>
  9920. <!-- <div slot="footer">
  9921. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9922. </div> -->
  9923. </el-dialog>
  9924. <el-dialog
  9925. title="个人评价"
  9926. :visible.sync="studentEvalDialogVisible"
  9927. :append-to-body="true"
  9928. width="800px"
  9929. :before-close="handleClose"
  9930. class="dialog_diy"
  9931. >
  9932. <div class="evalCss">
  9933. <div class="nav">请选择星星进行评分</div>
  9934. <div class="middleBox" v-if="eScore.eStar">
  9935. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9936. <div class="nameAndrate">
  9937. <div>{{ e.value }}</div>
  9938. <el-rate
  9939. v-model="eScore.eStar[eIndex]"
  9940. :disabled="isStar"
  9941. ></el-rate>
  9942. </div>
  9943. <div v-if="e.detail">{{ e.detail }}</div>
  9944. </div>
  9945. <div class="easy_comment" v-if="false">
  9946. <div
  9947. v-for="(p, pIndex) in PlTextList"
  9948. :key="pIndex"
  9949. @click="fastText(p, 2)"
  9950. >
  9951. {{ p }}
  9952. </div>
  9953. </div>
  9954. <div class="bz">
  9955. <textarea
  9956. :disabled="isStar"
  9957. rows="4"
  9958. class="pj"
  9959. style="
  9960. padding: 10px 5px;
  9961. width: 70%;
  9962. background: #f7f6f9;
  9963. font-size: 14px;
  9964. text-indent: 10px;
  9965. "
  9966. cols
  9967. v-model="eScore.eBzText"
  9968. placeholder="请输入评价内容..."
  9969. ></textarea>
  9970. </div>
  9971. </div>
  9972. </div>
  9973. <div slot="footer">
  9974. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9975. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9976. >确 定</el-button
  9977. >
  9978. </div>
  9979. </el-dialog>
  9980. <el-dialog
  9981. title="个人评价"
  9982. :visible.sync="studentEvalDialogVisibleTeacher"
  9983. :append-to-body="true"
  9984. width="800px"
  9985. :before-close="handleClose"
  9986. class="dialog_diy"
  9987. >
  9988. <div class="w_name">
  9989. 学生姓名:<span>{{ sStudent.student }}</span>
  9990. </div>
  9991. <div class="evalCss">
  9992. <div class="nav">请选择星星进行评分</div>
  9993. <div class="middleBox" v-if="eScore.eStar">
  9994. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9995. <div class="nameAndrate">
  9996. <div>{{ e.value }}</div>
  9997. <el-rate
  9998. v-model="eScore.eStar[eIndex]"
  9999. :disabled="isStar"
  10000. ></el-rate>
  10001. </div>
  10002. <div v-if="e.detail">{{ e.detail }}</div>
  10003. </div>
  10004. <div class="easy_comment" v-if="false">
  10005. <div
  10006. v-for="(p, pIndex) in PlTextList"
  10007. :key="pIndex"
  10008. @click="fastText(p, 2)"
  10009. >
  10010. {{ p }}
  10011. </div>
  10012. </div>
  10013. <div class="bz">
  10014. <textarea
  10015. :disabled="isStar"
  10016. rows="4"
  10017. class="pj"
  10018. style="
  10019. padding: 10px 5px;
  10020. width: 70%;
  10021. background: #f7f6f9;
  10022. font-size: 14px;
  10023. text-indent: 10px;
  10024. "
  10025. cols
  10026. v-model="eScore.eBzText"
  10027. placeholder="请输入评价内容..."
  10028. ></textarea>
  10029. </div>
  10030. </div>
  10031. </div>
  10032. <div slot="footer">
  10033. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10034. >取 消</el-button
  10035. >
  10036. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10037. >确 定</el-button
  10038. >
  10039. </div>
  10040. </el-dialog>
  10041. <el-dialog
  10042. title="选择匹配"
  10043. :visible.sync="dialogVisibleSelect"
  10044. :append-to-body="true"
  10045. width="90%"
  10046. :before-close="handleClose"
  10047. class="dialog_diy dialog_diy3"
  10048. >
  10049. <div v-if="selectJson">
  10050. <div class="select_box2">
  10051. <div class="select_box2_title">
  10052. <div>选择匹配</div>
  10053. <div>请选择对应的答案进行答题!</div>
  10054. </div>
  10055. <div class="select_box2_box">
  10056. <div class="select_box2_img">
  10057. <img
  10058. :src="selectJson.url"
  10059. @click="previewImg(selectJson.url)"
  10060. alt=""
  10061. />
  10062. </div>
  10063. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10064. <div style="padding-top: 15px">
  10065. <div class="select_answer_title" v-if="isSelect">
  10066. {{ selectAnswer.stu }}
  10067. </div>
  10068. <div class="select_answer_title" v-else>
  10069. 根据题目选择对应答案
  10070. </div>
  10071. <div
  10072. class="select_box2_answer_box"
  10073. v-for="(item2, checkIndex) in selectJson.select"
  10074. :key="checkIndex"
  10075. >
  10076. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10077. <el-select
  10078. :disabled="isSelect"
  10079. v-model="selectAnswer.answer[checkIndex]"
  10080. placeholder="请选择正确答案"
  10081. >
  10082. <el-option
  10083. v-for="(e, eIndex) in selectJson.select"
  10084. :key="eIndex"
  10085. :label="e"
  10086. :value="eIndex"
  10087. >
  10088. </el-option>
  10089. </el-select>
  10090. </div>
  10091. </div>
  10092. <div
  10093. class="rightAnswerCss"
  10094. v-if="isSelect && (tType == 1 || tType == 4)"
  10095. >
  10096. <div
  10097. v-for="(a, aIndex) in selectJson.answer"
  10098. :key="aIndex"
  10099. class="rightAnswer"
  10100. >
  10101. <div
  10102. v-if="selectAnswer.answer[aIndex] === a"
  10103. style="color: #767de1"
  10104. >
  10105. 回答正确
  10106. </div>
  10107. <div v-else>回答错误</div>
  10108. <div
  10109. style="margin-left: 10px"
  10110. v-if="selectAnswer.answer[aIndex] !== a"
  10111. >
  10112. 正确答案:
  10113. </div>
  10114. <div
  10115. :class="
  10116. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10117. "
  10118. >
  10119. {{ selectJson.select[a] }}
  10120. </div>
  10121. </div>
  10122. </div>
  10123. </div>
  10124. <div class="upAnswerCss">
  10125. <el-button
  10126. type="primary"
  10127. @click="addSelectAnswer"
  10128. v-if="!isSelect"
  10129. >提交答案</el-button
  10130. >
  10131. </div>
  10132. </div>
  10133. </div>
  10134. </div>
  10135. </el-dialog>
  10136. <el-dialog
  10137. title="选择匹配"
  10138. :visible.sync="dialogVisibleSelectTeacher"
  10139. :append-to-body="true"
  10140. width="90%"
  10141. :before-close="handleClose"
  10142. class="dialog_diy dialog_diy3"
  10143. >
  10144. <div v-if="selectJson">
  10145. <div class="w_name">
  10146. 学生姓名:<span>{{ sStudent.student }}</span>
  10147. </div>
  10148. <div class="select_box2">
  10149. <div class="select_box2_title">
  10150. <div>选择匹配</div>
  10151. <div>请选择对应的答案进行答题!</div>
  10152. </div>
  10153. <div class="select_box2_box">
  10154. <div class="select_box2_img">
  10155. <img
  10156. :src="selectJson.url"
  10157. @click="previewImg(selectJson.url)"
  10158. alt=""
  10159. />
  10160. </div>
  10161. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10162. <div style="padding-top: 15px">
  10163. <div class="select_answer_title" v-if="isSelect">
  10164. {{ selectAnswer.stu }}
  10165. </div>
  10166. <div class="select_answer_title" v-else>
  10167. 根据题目选择对应答案
  10168. </div>
  10169. <div
  10170. class="select_box2_answer_box"
  10171. v-for="(item2, checkIndex) in selectJson.select"
  10172. :key="checkIndex"
  10173. >
  10174. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10175. <el-select
  10176. :disabled="isSelect"
  10177. v-model="selectAnswer.answer[checkIndex]"
  10178. placeholder="请选择正确答案"
  10179. >
  10180. <el-option
  10181. v-for="(e, eIndex) in selectJson.select"
  10182. :key="eIndex"
  10183. :label="e"
  10184. :value="eIndex"
  10185. >
  10186. </el-option>
  10187. </el-select>
  10188. </div>
  10189. </div>
  10190. <div
  10191. class="rightAnswerCss"
  10192. v-if="isSelect && (tType == 1 || tType == 4)"
  10193. >
  10194. <div
  10195. v-for="(a, aIndex) in selectJson.answer"
  10196. :key="aIndex"
  10197. class="rightAnswer"
  10198. >
  10199. <div
  10200. v-if="selectAnswer.answer[aIndex] === a"
  10201. style="color: #767de1"
  10202. >
  10203. 回答正确
  10204. </div>
  10205. <div v-else>回答错误</div>
  10206. <div
  10207. style="margin-left: 10px"
  10208. v-if="selectAnswer.answer[aIndex] !== a"
  10209. >
  10210. 正确答案:
  10211. </div>
  10212. <div
  10213. :class="
  10214. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10215. "
  10216. >
  10217. {{ selectJson.select[a] }}
  10218. </div>
  10219. </div>
  10220. </div>
  10221. </div>
  10222. <div class="upAnswerCss">
  10223. <el-button
  10224. type="primary"
  10225. @click="addSelectAnswerTeacher"
  10226. v-if="!isSelect"
  10227. >提交答案</el-button
  10228. >
  10229. </div>
  10230. </div>
  10231. </div>
  10232. </div>
  10233. </el-dialog>
  10234. <el-dialog
  10235. title="教师评分"
  10236. :visible.sync="dialogVisibleScore"
  10237. :append-to-body="true"
  10238. width="800px"
  10239. :before-close="handleClose"
  10240. class="dialog_diy"
  10241. >
  10242. <div>
  10243. <div class="studentDetail">
  10244. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10245. <div class="nameAndTime">
  10246. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10247. <div>{{ commentDetail.time }}</div>
  10248. </div>
  10249. </div>
  10250. <div
  10251. class="worksAnswer"
  10252. v-if="commentDetail.works && commentDetail.type == 2"
  10253. >
  10254. {{ JSON.parse(commentDetail.works)[0].answer }}
  10255. </div>
  10256. <div
  10257. class="worksAnswer"
  10258. v-if="commentDetail.works && commentDetail.type == 1"
  10259. >
  10260. <pdf
  10261. v-if="showPDF"
  10262. :pdfUrl="pptImgUrl"
  10263. style="width: 100%; height: 520px; overflow: auto"
  10264. :class="{ fullStyle: full }"
  10265. ></pdf>
  10266. <iframe
  10267. v-else
  10268. :src="pptImgUrl"
  10269. frameborder="0"
  10270. width="100%"
  10271. height="600"
  10272. :class="{ fullStyle: full }"
  10273. ></iframe>
  10274. </div>
  10275. <div
  10276. class="worksAnswer"
  10277. v-if="commentDetail.works && commentDetail.type == 0"
  10278. >
  10279. <img
  10280. :src="commentDetail.works"
  10281. alt=""
  10282. @click="previewImg(commentDetail.works)"
  10283. />
  10284. </div>
  10285. <div
  10286. class="worksAnswer"
  10287. v-if="commentDetail.works && commentDetail.type == 3"
  10288. >
  10289. <video-player
  10290. class="video-player vjs-custom-skin"
  10291. :playsinline="true"
  10292. :options="videoDetail"
  10293. @play="onPlayerPlay($event)"
  10294. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10295. ></video-player>
  10296. </div>
  10297. <div
  10298. class="worksAnswer codeFileBox"
  10299. v-if="commentDetail.works && commentDetail.type == 12"
  10300. @click="downloadFile(commentDetail.works)"
  10301. >
  10302. <img src="../assets/icon/codeFile.png" />
  10303. <div>点击下载文件</div>
  10304. </div>
  10305. <div
  10306. class="worksAnswer codeFileBox"
  10307. v-if="commentDetail.works && commentDetail.type == 15"
  10308. @click="
  10309. openCocoPi(
  10310. 57,
  10311. commentIndexJson.toolIndex,
  10312. commentDetail.userid,
  10313. commentDetail.sName
  10314. )
  10315. "
  10316. >
  10317. <img src="../assets/icon/codeFile.png" />
  10318. <div>点击打开CocoPi</div>
  10319. </div>
  10320. <div
  10321. class="worksAnswer"
  10322. v-if="commentDetail.works && commentDetail.type == 13"
  10323. >
  10324. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10325. </div>
  10326. <div class="scoreBox">
  10327. <span class="t">请输入分数</span>
  10328. <el-input-number
  10329. :disabled="courseDetail.userid != userid"
  10330. v-model="wScore"
  10331. :controls="false"
  10332. :min="0"
  10333. :max="100"
  10334. ></el-input-number>
  10335. </div>
  10336. <div class="scoreDetailBox">
  10337. <span class="t">评分评论</span>
  10338. <el-input
  10339. type="textarea"
  10340. :rows="5"
  10341. :disabled="courseDetail.userid != userid"
  10342. resize="none"
  10343. v-model="scoreDetail"
  10344. placeholder="请输入对学生的评价"
  10345. >
  10346. </el-input>
  10347. </div>
  10348. </div>
  10349. <span slot="footer" class="dialog-footer">
  10350. <el-button
  10351. @click="
  10352. (dialogVisibleScore = false),
  10353. (commentIndexJson = {}),
  10354. videoDetail.sources && videoDetail.sources[0]
  10355. ? (videoDetail.sources[0].src = '')
  10356. : ''
  10357. "
  10358. >取 消</el-button
  10359. >
  10360. <el-button
  10361. type="primary"
  10362. v-if="courseDetail.userid == userid"
  10363. @click="scoreWork(commentDetail.wid)"
  10364. >确 定
  10365. </el-button>
  10366. </span>
  10367. </el-dialog>
  10368. <el-dialog
  10369. title="排序"
  10370. :visible.sync="dialogVisibleSentence"
  10371. :append-to-body="true"
  10372. width="1000px"
  10373. :before-close="handleClose"
  10374. class="dialog_diy dialog_diy3"
  10375. >
  10376. <div>
  10377. <div class="sentenBox">
  10378. <div
  10379. v-for="(st, stIndex) in sentenceList"
  10380. :key="stIndex"
  10381. style="padding-bottom: 20px"
  10382. >
  10383. <div
  10384. style="padding: 15px 0 10px 20px"
  10385. class="sentenceTitle"
  10386. :index="stIndex + 1"
  10387. >
  10388. 题目{{ stIndex + 1 }}:请选择正确顺序
  10389. </div>
  10390. <div class="cardList" v-if="st.chooseSenList">
  10391. <div class="cardBox">
  10392. <div
  10393. v-for="(r, rIndex) in st.chooseSenList"
  10394. :key="rIndex"
  10395. @click="returnCard(r, stIndex, rIndex)"
  10396. >
  10397. <el-tooltip
  10398. class="item"
  10399. effect="light"
  10400. :content="r"
  10401. placement="top"
  10402. v-if="r != '' && r != undefined"
  10403. >
  10404. <div
  10405. :class="{
  10406. isCard: r,
  10407. isChooseCard: r == '' || r == undefined,
  10408. }"
  10409. >
  10410. <div>{{ r }}</div>
  10411. </div>
  10412. </el-tooltip>
  10413. <div
  10414. :class="{
  10415. isCard: r,
  10416. isChooseCard: r == '' || r == undefined,
  10417. }"
  10418. v-else
  10419. >
  10420. <div>{{ r }}</div>
  10421. </div>
  10422. </div>
  10423. </div>
  10424. </div>
  10425. <div class="cardList" v-if="st.addChangeSen">
  10426. <div class="cardBox">
  10427. <div
  10428. v-for="(s, sIndex) in st.addChangeSen"
  10429. :key="sIndex"
  10430. @click="setRightAnswer(s, stIndex, sIndex)"
  10431. >
  10432. <el-tooltip
  10433. class="item"
  10434. effect="light"
  10435. :content="s"
  10436. placement="top"
  10437. v-if="s != '' && s != undefined"
  10438. >
  10439. <div
  10440. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10441. >
  10442. <div>{{ s }}</div>
  10443. </div>
  10444. </el-tooltip>
  10445. <div
  10446. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10447. v-else
  10448. >
  10449. <div>{{ s }}</div>
  10450. </div>
  10451. </div>
  10452. </div>
  10453. </div>
  10454. </div>
  10455. </div>
  10456. </div>
  10457. <span slot="footer" class="dialog-footer">
  10458. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10459. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10460. </span>
  10461. </el-dialog>
  10462. <el-dialog
  10463. title="排序"
  10464. :visible.sync="dialogVisibleSentenceTeacher"
  10465. :append-to-body="true"
  10466. width="1000px"
  10467. :before-close="handleClose"
  10468. class="dialog_diy dialog_diy3"
  10469. >
  10470. <div>
  10471. <div class="w_name">
  10472. 学生姓名:<span>{{ sStudent.student }}</span>
  10473. </div>
  10474. <div class="sentenBox">
  10475. <div
  10476. v-for="(st, stIndex) in sentenceList"
  10477. :key="stIndex"
  10478. style="padding-bottom: 20px"
  10479. >
  10480. <div
  10481. style="padding: 15px 0 10px 20px"
  10482. class="sentenceTitle"
  10483. :index="stIndex + 1"
  10484. >
  10485. 题目{{ stIndex + 1 }}:请选择正确顺序
  10486. </div>
  10487. <div class="cardList" v-if="st.chooseSenList">
  10488. <div class="cardBox">
  10489. <div
  10490. v-for="(r, rIndex) in st.chooseSenList"
  10491. :key="rIndex"
  10492. @click="returnCard(r, stIndex, rIndex)"
  10493. >
  10494. <el-tooltip
  10495. class="item"
  10496. effect="light"
  10497. :content="r"
  10498. placement="top"
  10499. v-if="r != '' && r != undefined"
  10500. >
  10501. <div
  10502. :class="{
  10503. isCard: r,
  10504. isChooseCard: r == '' || r == undefined,
  10505. }"
  10506. >
  10507. <div>{{ r }}</div>
  10508. </div>
  10509. </el-tooltip>
  10510. <div
  10511. :class="{
  10512. isCard: r,
  10513. isChooseCard: r == '' || r == undefined,
  10514. }"
  10515. v-else
  10516. >
  10517. <div>{{ r }}</div>
  10518. </div>
  10519. </div>
  10520. </div>
  10521. </div>
  10522. <div class="cardList" v-if="st.addChangeSen">
  10523. <div class="cardBox">
  10524. <div
  10525. v-for="(s, sIndex) in st.addChangeSen"
  10526. :key="sIndex"
  10527. @click="setRightAnswer(s, stIndex, sIndex)"
  10528. >
  10529. <el-tooltip
  10530. class="item"
  10531. effect="light"
  10532. :content="s"
  10533. placement="top"
  10534. v-if="s != '' && s != undefined"
  10535. >
  10536. <div
  10537. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10538. >
  10539. <div>{{ s }}</div>
  10540. </div>
  10541. </el-tooltip>
  10542. <div
  10543. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10544. v-else
  10545. >
  10546. <div>{{ s }}</div>
  10547. </div>
  10548. </div>
  10549. </div>
  10550. </div>
  10551. </div>
  10552. </div>
  10553. </div>
  10554. <span slot="footer" class="dialog-footer">
  10555. <el-button @click="dialogVisibleSentenceTeacher = false"
  10556. >取 消</el-button
  10557. >
  10558. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10559. </span>
  10560. </el-dialog>
  10561. <el-dialog
  10562. title="排序"
  10563. :visible.sync="dialogVisibleSentence1"
  10564. :append-to-body="true"
  10565. width="1000px"
  10566. :before-close="handleClose"
  10567. class="dialog_diy dialog_diy3"
  10568. >
  10569. <div>
  10570. <div class="sentenBox">
  10571. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10572. {{ sentenceList1.stuName }}的作业
  10573. </div>
  10574. <div
  10575. v-for="(st, stIndex) in sentenceList1"
  10576. :key="stIndex"
  10577. style="padding-bottom: 20px"
  10578. >
  10579. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10580. 第{{ stIndex + 1 }}题
  10581. </div>
  10582. <div class="isWrong">
  10583. <div class="cardList1" v-if="st.chooseSenList">
  10584. <div class="cardBox">
  10585. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10586. <el-tooltip
  10587. class="item"
  10588. effect="light"
  10589. :content="s"
  10590. placement="top"
  10591. >
  10592. <div class="isCard">
  10593. <div>{{ s }}</div>
  10594. </div>
  10595. </el-tooltip>
  10596. </div>
  10597. </div>
  10598. <div class="cardAnswerBox">
  10599. 组成句子:{{ st.chooseSenList.join(" ") }}
  10600. </div>
  10601. </div>
  10602. <div v-if="tType == 2" class="isTj">
  10603. <div class="isTjImg">
  10604. <img src="../assets/icon/conSentences/right.png" alt="" />
  10605. </div>
  10606. <div>已提交</div>
  10607. </div>
  10608. <div
  10609. class="answerRight isTj"
  10610. v-if="
  10611. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10612. (tType == 1 || tType == 4)
  10613. "
  10614. >
  10615. <div class="isTjImg">
  10616. <img src="../assets/icon/conSentences/right.png" alt="" />
  10617. </div>
  10618. <div>回答正确</div>
  10619. </div>
  10620. <div
  10621. class="answerRight isTj"
  10622. v-if="
  10623. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10624. (tType == 1 || tType == 4)
  10625. "
  10626. >
  10627. <div class="isTjImg">
  10628. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10629. </div>
  10630. <div>回答错误</div>
  10631. </div>
  10632. </div>
  10633. <div
  10634. v-if="
  10635. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10636. (tType == 1 || tType == 4)
  10637. "
  10638. >
  10639. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10640. <div
  10641. class="cardList"
  10642. v-if="st.rightAnswer"
  10643. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10644. >
  10645. <div class="cardBox">
  10646. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10647. <el-tooltip
  10648. class="item"
  10649. effect="light"
  10650. :content="r"
  10651. placement="top"
  10652. >
  10653. <div class="isCard1">
  10654. <div>{{ r }}</div>
  10655. </div>
  10656. </el-tooltip>
  10657. </div>
  10658. </div>
  10659. <div class="cardAnswerBox">
  10660. 组成句子:{{ st.rightAnswer.join(" ") }}
  10661. </div>
  10662. </div>
  10663. </div>
  10664. </div>
  10665. </div>
  10666. </div>
  10667. <span slot="footer" class="dialog-footer">
  10668. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10669. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10670. >确 定</el-button
  10671. >
  10672. </span>
  10673. </el-dialog>
  10674. <el-dialog
  10675. title="教师提交作业"
  10676. :visible.sync="dialogVisibleWorks"
  10677. :append-to-body="true"
  10678. width="500px"
  10679. :before-close="handleClose"
  10680. class="dialog_change"
  10681. >
  10682. <div class="marginT">
  10683. <div class="w_name">
  10684. 学生姓名:<span>{{ sStudent.student }}</span>
  10685. </div>
  10686. <div>上传文件</div>
  10687. <div
  10688. class="chapter_add"
  10689. @click="addImg($event)"
  10690. v-if="studyJuri[0].cover.length == 0"
  10691. >
  10692. <div class="up_photo">
  10693. <img src="../assets/uploadImg2.png" alt />
  10694. </div>
  10695. <!-- <input
  10696. type="file"
  10697. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10698. style="display: none"
  10699. @change="beforeUpload1($event, 1)"
  10700. /> -->
  10701. <input
  10702. type="file"
  10703. accept="*"
  10704. style="display: none"
  10705. @change="beforeUpload1($event, 1)"
  10706. />
  10707. </div>
  10708. <!-- capture="camera" -->
  10709. <div
  10710. class="chapter_add"
  10711. style="
  10712. display: flex;
  10713. width: 100%;
  10714. flex-direction: row;
  10715. flex-wrap: wrap;
  10716. justify-content: flex-start;
  10717. padding: 15px 0;
  10718. "
  10719. v-if="studyJuri[0].cover.length > 0"
  10720. >
  10721. <div class="upCover">
  10722. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10723. <img :src="word" alt v-else-if="fileType == 1" />
  10724. <img :src="video" alt v-else-if="fileType == 2" />
  10725. <img :src="word2" alt v-else-if="fileType == 3" />
  10726. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10727. <div class="deleteWord" @click="clean(1)">
  10728. <img src="../assets/icon/deleteWorks.png" alt />
  10729. </div>
  10730. </div>
  10731. </div>
  10732. </div>
  10733. <div
  10734. class="upload_send"
  10735. @click="addCourseWorksTeacher(taskCount)"
  10736. v-if="!proVisible"
  10737. >
  10738. 提交
  10739. </div>
  10740. </el-dialog>
  10741. <ImgDraw
  10742. :drawShow="drawShow"
  10743. @closeDraw="closeDraw"
  10744. @addImgDraw="addImgDraw"
  10745. :bg="bg"
  10746. ></ImgDraw>
  10747. <el-dialog
  10748. title="表格"
  10749. :visible.sync="dialogVisibleTable"
  10750. :append-to-body="true"
  10751. width="95%"
  10752. :before-close="handleClose"
  10753. class="dialog_diy"
  10754. >
  10755. <el-form>
  10756. <div
  10757. style="
  10758. display: flex;
  10759. align-items: center;
  10760. justify-content: space-between;
  10761. "
  10762. >
  10763. <span>表格内容</span>
  10764. <el-button type="primary" size="small" @click="returnTableText"
  10765. >还原模板</el-button
  10766. >
  10767. </div>
  10768. <Table
  10769. v-model="tableJson.text"
  10770. @change="change"
  10771. v-if="dialogVisibleTable"
  10772. ></Table>
  10773. </el-form>
  10774. <span slot="footer" class="dialog-footer">
  10775. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10776. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10777. </span>
  10778. </el-dialog>
  10779. <el-dialog
  10780. title="表格"
  10781. :visible.sync="dialogVisibleTableTeacher"
  10782. :append-to-body="true"
  10783. width="95%"
  10784. :before-close="handleClose"
  10785. class="dialog_diy"
  10786. >
  10787. <el-form>
  10788. <div class="w_name">
  10789. 学生姓名:<span>{{ sStudent.student }}</span>
  10790. </div>
  10791. <div>表格内容</div>
  10792. <Table
  10793. v-model="tableJson.text"
  10794. @change="change"
  10795. v-if="dialogVisibleTableTeacher"
  10796. ></Table>
  10797. </el-form>
  10798. <span slot="footer" class="dialog-footer">
  10799. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10800. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10801. </span>
  10802. </el-dialog>
  10803. <el-dialog
  10804. title="文档"
  10805. :visible.sync="dialogVisibleWord"
  10806. :append-to-body="true"
  10807. width="95%"
  10808. :before-close="handleClose"
  10809. class="dialog_diy"
  10810. >
  10811. <el-form>
  10812. <div
  10813. style="
  10814. display: flex;
  10815. align-items: center;
  10816. justify-content: space-between;
  10817. "
  10818. >
  10819. <span>文档内容</span>
  10820. <el-button type="primary" size="small" @click="returnWordText"
  10821. >还原模板</el-button
  10822. >
  10823. </div>
  10824. <editor-bar
  10825. v-model="wordJson.text"
  10826. v-if="dialogVisibleWord"
  10827. ></editor-bar>
  10828. </el-form>
  10829. <span slot="footer" class="dialog-footer">
  10830. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10831. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10832. </span>
  10833. </el-dialog>
  10834. <el-dialog
  10835. title="文档"
  10836. :visible.sync="dialogVisibleWordTeacher"
  10837. :append-to-body="true"
  10838. width="95%"
  10839. :before-close="handleClose"
  10840. class="dialog_diy"
  10841. >
  10842. <el-form>
  10843. <div class="w_name">
  10844. 学生姓名:<span>{{ sStudent.student }}</span>
  10845. </div>
  10846. <div>文档内容</div>
  10847. <editor-bar
  10848. v-model="wordJson.text"
  10849. v-if="dialogVisibleWordTeacher"
  10850. ></editor-bar>
  10851. </el-form>
  10852. <span slot="footer" class="dialog-footer">
  10853. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10854. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10855. </span>
  10856. </el-dialog>
  10857. <el-dialog
  10858. title="表格"
  10859. :visible.sync="dialogVisibleTable2"
  10860. :append-to-body="true"
  10861. width="95%"
  10862. :before-close="handleClose"
  10863. class="dialog_diy"
  10864. >
  10865. <el-form>
  10866. <div class="cont" v-html="tableJson.text"></div>
  10867. </el-form>
  10868. <span slot="footer" class="dialog-footer">
  10869. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10870. </span>
  10871. </el-dialog>
  10872. <el-dialog
  10873. title="文档"
  10874. :visible.sync="dialogVisibleTable3"
  10875. :append-to-body="true"
  10876. width="95%"
  10877. :before-close="handleClose"
  10878. class="dialog_diy"
  10879. >
  10880. <el-form>
  10881. <div class="cont" v-html="tableJson.text"></div>
  10882. </el-form>
  10883. <span slot="footer" class="dialog-footer">
  10884. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10885. </span>
  10886. </el-dialog>
  10887. <el-dialog
  10888. title="分组设置"
  10889. :visible.sync="dialogVisibleGroup"
  10890. :append-to-body="true"
  10891. width="95%"
  10892. :before-close="handleClose"
  10893. class="dialog_diy"
  10894. >
  10895. <div v-if="dialogVisibleGroup">
  10896. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10897. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10898. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10899. </div>
  10900. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10901. @click="lockChair">
  10902. 锁定位置
  10903. </div>
  10904. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10905. 解锁位置
  10906. </div> -->
  10907. <div class="group_switch">
  10908. <span>开放选座</span>
  10909. <el-switch
  10910. v-model="islock"
  10911. active-text=""
  10912. class="switchCss"
  10913. @change="lockChair"
  10914. ></el-switch>
  10915. </div>
  10916. <div
  10917. type="primary"
  10918. @click="updateGroup"
  10919. class="returnBtn"
  10920. style="background-color: #225bc7"
  10921. >
  10922. 分组设置
  10923. </div>
  10924. </div>
  10925. <div>
  10926. <div
  10927. class="g_d_box"
  10928. v-if="groupJson.group && groupStudent[toolindex]"
  10929. >
  10930. <div
  10931. class="g_d_group"
  10932. v-for="(g, gindex) in groupJson.group"
  10933. :key="gindex"
  10934. >
  10935. <div class="g_d_group_chair">
  10936. <div v-if="groupJson.number > 1">
  10937. <span
  10938. :class="{
  10939. isChair:
  10940. groupStudent[toolindex][gindex] &&
  10941. groupStudent[toolindex][gindex][0],
  10942. updateChair:
  10943. courseDetail.userid == userid &&
  10944. groupStudent[toolindex][gindex] &&
  10945. groupStudent[toolindex][gindex][0] &&
  10946. groupJson.islock == 2,
  10947. }"
  10948. ><span
  10949. class="updateChairBtn"
  10950. @click="
  10951. updateGroupChair(
  10952. groupStudent[toolindex][gindex] &&
  10953. groupStudent[toolindex][gindex][0]
  10954. )
  10955. "
  10956. >修改</span
  10957. ></span
  10958. ><span>{{
  10959. groupStudent[toolindex][gindex] &&
  10960. groupStudent[toolindex][gindex][0]
  10961. ? groupStudent[toolindex][gindex] &&
  10962. groupStudent[toolindex][gindex][0].name
  10963. : "空位置"
  10964. }}</span>
  10965. </div>
  10966. <div v-if="groupJson.number > 4">
  10967. <span
  10968. :class="{
  10969. isChair:
  10970. groupStudent[toolindex][gindex] &&
  10971. groupStudent[toolindex][gindex][4],
  10972. updateChair:
  10973. courseDetail.userid == userid &&
  10974. groupStudent[toolindex][gindex] &&
  10975. groupStudent[toolindex][gindex][4] &&
  10976. groupJson.islock == 2,
  10977. }"
  10978. ><span
  10979. class="updateChairBtn"
  10980. @click="
  10981. updateGroupChair(
  10982. groupStudent[toolindex][gindex] &&
  10983. groupStudent[toolindex][gindex][4]
  10984. )
  10985. "
  10986. >修改</span
  10987. ></span
  10988. ><span>{{
  10989. groupStudent[toolindex][gindex] &&
  10990. groupStudent[toolindex][gindex][4]
  10991. ? groupStudent[toolindex][gindex] &&
  10992. groupStudent[toolindex][gindex][4].name
  10993. : "空位置"
  10994. }}</span>
  10995. </div>
  10996. <div v-if="groupJson.number > 8">
  10997. <span
  10998. :class="{
  10999. isChair:
  11000. groupStudent[toolindex][gindex] &&
  11001. groupStudent[toolindex][gindex][8],
  11002. updateChair:
  11003. courseDetail.userid == userid &&
  11004. groupStudent[toolindex][gindex] &&
  11005. groupStudent[toolindex][gindex][8] &&
  11006. groupJson.islock == 2,
  11007. }"
  11008. ><span
  11009. class="updateChairBtn"
  11010. @click="
  11011. updateGroupChair(
  11012. groupStudent[toolindex][gindex] &&
  11013. groupStudent[toolindex][gindex][8]
  11014. )
  11015. "
  11016. >修改</span
  11017. ></span
  11018. ><span>{{
  11019. groupStudent[toolindex][gindex] &&
  11020. groupStudent[toolindex][gindex][8]
  11021. ? groupStudent[toolindex][gindex] &&
  11022. groupStudent[toolindex][gindex][8].name
  11023. : "空位置"
  11024. }}</span>
  11025. </div>
  11026. </div>
  11027. <div class="g_d_group_tableBox">
  11028. <div class="g_d_group_chair2">
  11029. <div v-if="groupJson.number > 2">
  11030. <span
  11031. :class="{
  11032. isChair:
  11033. groupStudent[toolindex][gindex] &&
  11034. groupStudent[toolindex][gindex][2],
  11035. updateChair:
  11036. courseDetail.userid == userid &&
  11037. groupStudent[toolindex][gindex] &&
  11038. groupStudent[toolindex][gindex][2] &&
  11039. groupJson.islock == 2,
  11040. }"
  11041. ><span
  11042. class="updateChairBtn"
  11043. @click="
  11044. updateGroupChair(
  11045. groupStudent[toolindex][gindex] &&
  11046. groupStudent[toolindex][gindex][2]
  11047. )
  11048. "
  11049. >修改</span
  11050. ></span
  11051. ><span>{{
  11052. groupStudent[toolindex][gindex] &&
  11053. groupStudent[toolindex][gindex][2]
  11054. ? groupStudent[toolindex][gindex] &&
  11055. groupStudent[toolindex][gindex][2].name
  11056. : "空位置"
  11057. }}</span>
  11058. </div>
  11059. <div v-if="groupJson.number > 6">
  11060. <span
  11061. :class="{
  11062. isChair:
  11063. groupStudent[toolindex][gindex] &&
  11064. groupStudent[toolindex][gindex][6],
  11065. updateChair:
  11066. courseDetail.userid == userid &&
  11067. groupStudent[toolindex][gindex] &&
  11068. groupStudent[toolindex][gindex][6] &&
  11069. groupJson.islock == 2,
  11070. }"
  11071. ><span
  11072. class="updateChairBtn"
  11073. @click="
  11074. updateGroupChair(
  11075. groupStudent[toolindex][gindex] &&
  11076. groupStudent[toolindex][gindex][6]
  11077. )
  11078. "
  11079. >修改</span
  11080. ></span
  11081. ><span>{{
  11082. groupStudent[toolindex][gindex] &&
  11083. groupStudent[toolindex][gindex][6]
  11084. ? groupStudent[toolindex][gindex] &&
  11085. groupStudent[toolindex][gindex][6].name
  11086. : "空位置"
  11087. }}</span>
  11088. </div>
  11089. </div>
  11090. <div class="g_d_group_table">
  11091. <div>
  11092. {{ g.name }}
  11093. </div>
  11094. <div>
  11095. <div
  11096. v-if="
  11097. courseDetail.userid == userid && groupJson.islock == 2
  11098. "
  11099. @click="deleteGroupChair(gindex)"
  11100. >
  11101. 移除组员
  11102. </div>
  11103. <div
  11104. @click="selectGroup(gindex)"
  11105. v-else-if="
  11106. groupStudentUid[toolindex] &&
  11107. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11108. "
  11109. >
  11110. 加入分组
  11111. </div>
  11112. <div
  11113. @click="
  11114. exitGroup(
  11115. groupStudent[toolindex][gindex] &&
  11116. groupStudent[toolindex][gindex][
  11117. groupStudentUid[toolindex][gindex].indexOf(userid)
  11118. ].id
  11119. )
  11120. "
  11121. v-else-if="
  11122. groupStudentUid[toolindex] &&
  11123. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11124. "
  11125. >
  11126. 退出分组
  11127. </div>
  11128. </div>
  11129. </div>
  11130. <div class="g_d_group_chair2">
  11131. <div v-if="groupJson.number > 3">
  11132. <span
  11133. :class="{
  11134. isChair:
  11135. groupStudent[toolindex][gindex] &&
  11136. groupStudent[toolindex][gindex][3],
  11137. updateChair:
  11138. courseDetail.userid == userid &&
  11139. groupStudent[toolindex][gindex] &&
  11140. groupStudent[toolindex][gindex][3] &&
  11141. groupJson.islock == 2,
  11142. }"
  11143. ><span
  11144. class="updateChairBtn"
  11145. @click="
  11146. updateGroupChair(
  11147. groupStudent[toolindex][gindex] &&
  11148. groupStudent[toolindex][gindex][3]
  11149. )
  11150. "
  11151. >修改</span
  11152. ></span
  11153. ><span>{{
  11154. groupStudent[toolindex][gindex] &&
  11155. groupStudent[toolindex][gindex][3]
  11156. ? groupStudent[toolindex][gindex] &&
  11157. groupStudent[toolindex][gindex][3].name
  11158. : "空位置"
  11159. }}</span>
  11160. </div>
  11161. <div v-if="groupJson.number > 7">
  11162. <span
  11163. :class="{
  11164. isChair:
  11165. groupStudent[toolindex][gindex] &&
  11166. groupStudent[toolindex][gindex][7],
  11167. updateChair:
  11168. courseDetail.userid == userid &&
  11169. groupStudent[toolindex][gindex] &&
  11170. groupStudent[toolindex][gindex][7] &&
  11171. groupJson.islock == 2,
  11172. }"
  11173. ><span
  11174. class="updateChairBtn"
  11175. @click="
  11176. updateGroupChair(
  11177. groupStudent[toolindex][gindex] &&
  11178. groupStudent[toolindex][gindex][7]
  11179. )
  11180. "
  11181. >修改</span
  11182. ></span
  11183. ><span>{{
  11184. groupStudent[toolindex][gindex] &&
  11185. groupStudent[toolindex][gindex][7]
  11186. ? groupStudent[toolindex][gindex] &&
  11187. groupStudent[toolindex][gindex][7].name
  11188. : "空位置"
  11189. }}</span>
  11190. </div>
  11191. </div>
  11192. </div>
  11193. <div class="g_d_group_chair">
  11194. <div v-if="groupJson.number > 1">
  11195. <span
  11196. :class="{
  11197. isChair:
  11198. groupStudent[toolindex][gindex] &&
  11199. groupStudent[toolindex][gindex][1],
  11200. updateChair:
  11201. courseDetail.userid == userid &&
  11202. groupStudent[toolindex][gindex] &&
  11203. groupStudent[toolindex][gindex][1] &&
  11204. groupJson.islock == 2,
  11205. }"
  11206. ><span
  11207. class="updateChairBtn"
  11208. @click="
  11209. updateGroupChair(
  11210. groupStudent[toolindex][gindex] &&
  11211. groupStudent[toolindex][gindex][1]
  11212. )
  11213. "
  11214. >修改</span
  11215. ></span
  11216. ><span>{{
  11217. groupStudent[toolindex][gindex] &&
  11218. groupStudent[toolindex][gindex][1]
  11219. ? groupStudent[toolindex][gindex] &&
  11220. groupStudent[toolindex][gindex][1].name
  11221. : "空位置"
  11222. }}</span>
  11223. </div>
  11224. <div v-if="groupJson.number > 5">
  11225. <span
  11226. :class="{
  11227. isChair:
  11228. groupStudent[toolindex][gindex] &&
  11229. groupStudent[toolindex][gindex][5],
  11230. updateChair:
  11231. courseDetail.userid == userid &&
  11232. groupStudent[toolindex][gindex] &&
  11233. groupStudent[toolindex][gindex][5] &&
  11234. groupJson.islock == 2,
  11235. }"
  11236. ><span
  11237. class="updateChairBtn"
  11238. @click="
  11239. updateGroupChair(
  11240. groupStudent[toolindex][gindex] &&
  11241. groupStudent[toolindex][gindex][5]
  11242. )
  11243. "
  11244. >修改</span
  11245. ></span
  11246. ><span>{{
  11247. groupStudent[toolindex][gindex] &&
  11248. groupStudent[toolindex][gindex][5]
  11249. ? groupStudent[toolindex][gindex] &&
  11250. groupStudent[toolindex][gindex][5].name
  11251. : "空位置"
  11252. }}</span>
  11253. </div>
  11254. <div v-if="groupJson.number > 9">
  11255. <span
  11256. :class="{
  11257. isChair:
  11258. groupStudent[toolindex][gindex] &&
  11259. groupStudent[toolindex][gindex][9],
  11260. updateChair:
  11261. courseDetail.userid == userid &&
  11262. groupStudent[toolindex][gindex] &&
  11263. groupStudent[toolindex][gindex][9] &&
  11264. groupJson.islock == 2,
  11265. }"
  11266. ><span
  11267. class="updateChairBtn"
  11268. @click="
  11269. updateGroupChair(
  11270. groupStudent[toolindex][gindex] &&
  11271. groupStudent[toolindex][gindex][9]
  11272. )
  11273. "
  11274. >修改</span
  11275. ></span
  11276. ><span>{{
  11277. groupStudent[toolindex][gindex] &&
  11278. groupStudent[toolindex][gindex][9]
  11279. ? groupStudent[toolindex][gindex] &&
  11280. groupStudent[toolindex][gindex][9].name
  11281. : "空位置"
  11282. }}</span>
  11283. </div>
  11284. </div>
  11285. </div>
  11286. </div>
  11287. </div>
  11288. </div>
  11289. <span slot="footer" class="dialog-footer">
  11290. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11291. </span>
  11292. </el-dialog>
  11293. <el-dialog
  11294. title="分组设置"
  11295. :visible.sync="dialogVisibleGroup2"
  11296. :append-to-body="true"
  11297. width="650px"
  11298. :before-close="handleClose"
  11299. class="dialog_diy"
  11300. >
  11301. <div class="groupBox">
  11302. <div v-if="groupJson2.group" class="groupContent">
  11303. <div class="groupTitle">请设置小组数量及名称</div>
  11304. <div
  11305. v-for="(item, index) in groupJson2.group"
  11306. :key="index"
  11307. class="groupName"
  11308. >
  11309. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11310. <el-input
  11311. v-model="item.name"
  11312. placeholder="请输入名称..."
  11313. style="width: 250px"
  11314. ></el-input>
  11315. <!-- <div class="groupBtn">
  11316. <el-button type="primary" size="small" @click="addGroup(index)">
  11317. 添加</el-button>
  11318. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11319. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11320. </div> -->
  11321. </div>
  11322. </div>
  11323. <div class="groupContent">
  11324. <div class="groupTitle">请设置每组人数</div>
  11325. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11326. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11327. <el-input
  11328. v-model="groupJson.number"
  11329. style="width: 150px"
  11330. placeholder="请输入2-10的数字"
  11331. @change="numberPan"
  11332. ></el-input>
  11333. </div>
  11334. </div>
  11335. <span slot="footer" class="dialog-footer">
  11336. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11337. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11338. </span>
  11339. </el-dialog>
  11340. <el-dialog
  11341. title="作业提交"
  11342. :visible.sync="dialogVisibleGroupWork"
  11343. :append-to-body="true"
  11344. width="500px"
  11345. :before-close="handleClose"
  11346. class="dialog_change"
  11347. >
  11348. <div class="marginT">
  11349. <div>上传文件</div>
  11350. <div
  11351. class="chapter_add"
  11352. @click="addImg($event)"
  11353. v-if="studyJuri[0].cover.length == 0"
  11354. >
  11355. <div class="up_photo">
  11356. <img src="../assets/icon/uploadImg.png" alt />
  11357. </div>
  11358. <!-- <input
  11359. type="file"
  11360. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11361. style="display: none"
  11362. @change="beforeUpload1($event, 1)"
  11363. /> -->
  11364. <input
  11365. type="file"
  11366. accept="*"
  11367. style="display: none"
  11368. @change="beforeUpload1($event, 1)"
  11369. />
  11370. </div>
  11371. <!-- capture="camera" -->
  11372. <div
  11373. class="chapter_add"
  11374. style="
  11375. display: flex;
  11376. width: 100%;
  11377. flex-direction: row;
  11378. flex-wrap: wrap;
  11379. justify-content: flex-start;
  11380. padding: 15px 0;
  11381. "
  11382. v-if="studyJuri[0].cover.length > 0"
  11383. >
  11384. <div class="upCover">
  11385. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11386. <img :src="word" alt v-else-if="fileType == 1" />
  11387. <img :src="video" alt v-else-if="fileType == 2" />
  11388. <img :src="word2" alt v-else-if="fileType == 3" />
  11389. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11390. <div class="deleteWord" @click="clean(1)">
  11391. <img src="../assets/icon/deleteWorks.png" alt />
  11392. </div>
  11393. </div>
  11394. </div>
  11395. </div>
  11396. <div
  11397. class="upload_send"
  11398. @click="addCourseWorks2(taskCount)"
  11399. v-if="!proVisible"
  11400. >
  11401. 提交
  11402. </div>
  11403. </el-dialog>
  11404. <el-dialog
  11405. title="修改分组"
  11406. :visible.sync="dialogVisibleUpdateGroup"
  11407. :append-to-body="true"
  11408. width="350px"
  11409. :before-close="handleClose"
  11410. class="dialog_diy"
  11411. >
  11412. <div>
  11413. <h2>
  11414. {{ this.updateGroupUser.name }}
  11415. </h2>
  11416. <div style="color: rgb(171 171 171); margin-top: 10px">
  11417. 请选择要进入的分组
  11418. </div>
  11419. <el-radio-group v-model="checkChair">
  11420. <el-radio
  11421. style="display: block; margin-top: 20px"
  11422. v-for="(item, index) in updateGroupArray"
  11423. :label="item.label"
  11424. :key="index"
  11425. >{{ item.name }}</el-radio
  11426. >
  11427. </el-radio-group>
  11428. </div>
  11429. <span slot="footer" class="dialog-footer">
  11430. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11431. <el-button type="primary" @click="updateChair">确定</el-button>
  11432. </span>
  11433. </el-dialog>
  11434. <el-dialog
  11435. title="移除组员"
  11436. :visible.sync="dialogVisibleDeleteGroup"
  11437. :append-to-body="true"
  11438. width="350px"
  11439. :before-close="handleClose"
  11440. class="dialog_diy"
  11441. >
  11442. <div>
  11443. <h2>
  11444. {{ this.deleteGroupArray.name }}
  11445. </h2>
  11446. <div style="color: rgb(171 171 171); margin-top: 10px">
  11447. 请选择要删除的组员
  11448. </div>
  11449. <el-checkbox-group v-model="checkDeleteGroup">
  11450. <el-checkbox
  11451. style="display: flex; margin-top: 20px"
  11452. v-for="(item, index) in deleteGroupUser"
  11453. :label="item.userid"
  11454. :key="index"
  11455. >{{ item.name }}</el-checkbox
  11456. >
  11457. </el-checkbox-group>
  11458. </div>
  11459. <span slot="footer" class="dialog-footer">
  11460. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11461. <el-button type="primary" @click="deleteChair">确定</el-button>
  11462. </span>
  11463. </el-dialog>
  11464. <el-dialog
  11465. title="批量上传"
  11466. :visible.sync="dialogVisiblePl"
  11467. :append-to-body="true"
  11468. width="700px"
  11469. :before-close="handleClose"
  11470. class="dialog_change"
  11471. >
  11472. <div class="marginT">
  11473. <div class="plworkBox">
  11474. <div
  11475. class="chapter_add"
  11476. style="
  11477. display: flex;
  11478. width: 150px;
  11479. flex-direction: row;
  11480. flex-wrap: wrap;
  11481. justify-content: flex-start;
  11482. margin: 0 10px 10px 0;
  11483. "
  11484. v-for="(item, index) in plworkFile"
  11485. :key="index"
  11486. >
  11487. <div class="upCover2">
  11488. <img
  11489. :src="item.url"
  11490. alt
  11491. v-if="item.fileType == 1"
  11492. @click="previewImg(item.url)"
  11493. />
  11494. <img :src="word" alt v-else-if="item.fileType == 4" />
  11495. <img :src="video" alt v-else />
  11496. <!-- <span class="picName">{{ item.name }}</span> -->
  11497. <!-- <el-input
  11498. v-model="item.username"
  11499. placeholder="请输入学生名字"
  11500. style="margin-top: 10px"
  11501. ></el-input> -->
  11502. <div
  11503. class="pl_select_box"
  11504. @click="
  11505. getUpdateMore(true, checkUpload(), item.username, index)
  11506. "
  11507. >
  11508. {{ getSName(item.username) }}
  11509. </div>
  11510. <!-- <el-select
  11511. style="margin-top: 10px"
  11512. v-model="item.username"
  11513. filterable
  11514. allow-create
  11515. placeholder="请选择学生"
  11516. >
  11517. <el-option
  11518. v-for="item1 in checkUpload()"
  11519. :key="item1.userid"
  11520. :label="item1.name ? item1.name : item1.username"
  11521. :value="item1.userid"
  11522. >
  11523. </el-option>
  11524. </el-select> -->
  11525. <div class="deleteWord" @click="clean2(index)">
  11526. <img src="../assets/icon/deleteWorks.png" alt />
  11527. </div>
  11528. </div>
  11529. </div>
  11530. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11531. <div class="up_photo2">
  11532. <img src="../assets/icon/plwork.png" alt />
  11533. <span>点击上传文件</span>
  11534. </div>
  11535. <input
  11536. type="file"
  11537. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11538. multiple="multiple"
  11539. style="display: none"
  11540. @change="beforeUpload3($event, 6)"
  11541. />
  11542. </div>
  11543. </div>
  11544. </div>
  11545. <!-- capture="camera" -->
  11546. <div
  11547. class="upload_send"
  11548. @click="addCourseWorksPl(taskCount)"
  11549. v-if="!proVisible2"
  11550. >
  11551. 提交
  11552. </div>
  11553. </el-dialog>
  11554. <el-dialog
  11555. title="修改名称"
  11556. :visible.sync="dialogVisibleSname"
  11557. width="500px"
  11558. :before-close="handleClose"
  11559. class="dialog_diy"
  11560. center
  11561. >
  11562. <div
  11563. style="
  11564. text-align: center;
  11565. display: flex;
  11566. align-items: center;
  11567. justify-content: center;
  11568. "
  11569. >
  11570. <span class="tian1">名称</span>
  11571. <div
  11572. class="pl_select_box"
  11573. style="margin-left: 10px; width: 200px"
  11574. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11575. >
  11576. {{ getSName(worksSName) }}
  11577. </div>
  11578. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11579. placeholder="请选择学生">
  11580. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11581. :value="item.userid">
  11582. </el-option>
  11583. </el-select> -->
  11584. <!-- <el-input
  11585. v-model="worksSName"
  11586. style="width: 250px; margin: 15px 0px"
  11587. ></el-input> -->
  11588. </div>
  11589. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11590. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11591. <el-button type="primary" @click="updateName">确 定</el-button>
  11592. </span>
  11593. </el-dialog>
  11594. <el-dialog
  11595. title="英语写作"
  11596. :visible.sync="engDialogVisible"
  11597. :append-to-body="true"
  11598. width="800px"
  11599. :before-close="handleClose"
  11600. class="dialog_diy"
  11601. >
  11602. <onlineWrite
  11603. v-if="engDialogVisible"
  11604. :englishList="englishList"
  11605. :myAnswerList1="myAnswerList1"
  11606. :userid="userid"
  11607. ref="engJson"
  11608. ></onlineWrite>
  11609. <span slot="footer" class="dialog-footer">
  11610. <el-button @click="engDialogVisible = false">取 消</el-button>
  11611. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11612. </span>
  11613. </el-dialog>
  11614. <el-dialog
  11615. title="英语写作"
  11616. :visible.sync="engUpdateDialogVisible"
  11617. :append-to-body="true"
  11618. width="800px"
  11619. :before-close="handleClose"
  11620. class="dialog_diy fullStyle"
  11621. >
  11622. <div class="engUpBox">
  11623. <div class="engUpTop">
  11624. <div class="engTitle">
  11625. <div>作文题目:</div>
  11626. <div>{{ englishList1.engTitle }}</div>
  11627. </div>
  11628. <div class="engText">
  11629. <div>作文内容:</div>
  11630. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11631. </div>
  11632. </div>
  11633. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11634. <div class="oldBox">
  11635. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11636. <div class="oldText">
  11637. <div class="detailBox">
  11638. <div class="oldDetail">
  11639. <div>标题:</div>
  11640. <div>{{ oldEnglishJson.engTitle }} </div>
  11641. </div>
  11642. <div class="oldDetail1">
  11643. <div>正文:</div>
  11644. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11645. </div>
  11646. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11647. <div>图片:</div>
  11648. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11649. </div>
  11650. </div>
  11651. </div>
  11652. </div>
  11653. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11654. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11655. <div class="oldText">
  11656. <div class="detailBox" style="position: relative;">
  11657. <div class="oldDetail">
  11658. <div>标题:</div>
  11659. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11660. <div v-else v-html="newEnglishList.engTitle"></div>
  11661. </div>
  11662. <div class="oldDetail">
  11663. <div>正文:</div>
  11664. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11665. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11666. </div>
  11667. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11668. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11669. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11670. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11671. </div>
  11672. </div>
  11673. </div>
  11674. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11675. <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">
  11676. <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>
  11677. <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>
  11678. </div>
  11679. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11680. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11681. <div class="detailBox" style="position: relative;">
  11682. <div class="oldDetail">
  11683. <div>标题:</div>
  11684. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11685. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11686. </div>
  11687. <div class="oldDetail">
  11688. <div>正文:</div>
  11689. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11690. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11691. </div>
  11692. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11693. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11694. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11695. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11696. </div>
  11697. </div>
  11698. <div class="oldText" v-else-if="newEngIndex == -1">
  11699. <div class="detailBox" style="position: relative;">
  11700. <div class="oldDetail">
  11701. <div>标题:</div>
  11702. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11703. <div v-else v-html="newEnglishList.engTitle"></div>
  11704. </div>
  11705. <div class="oldDetail">
  11706. <div>正文:</div>
  11707. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11708. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11709. </div>
  11710. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11711. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11712. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11713. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11714. </div>
  11715. </div>
  11716. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11717. <div class="detailBox" style="position: relative;">
  11718. <div class="oldDetail">
  11719. <div>标题:</div>
  11720. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11721. <div v-else>
  11722. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  11723. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11724. </div>
  11725. </div>
  11726. <div class="oldDetail">
  11727. <div>正文:</div>
  11728. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11729. <div v-else>
  11730. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11731. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11732. </div>
  11733. </div>
  11734. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11735. <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>
  11736. <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>
  11737. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11738. </div>
  11739. </div>
  11740. </div>
  11741. </div>
  11742. </div>
  11743. <span slot="footer" class="dialog-footer">
  11744. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11745. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11746. </span>
  11747. </el-dialog>
  11748. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11749. <interVideo
  11750. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11751. :videoJson="videoJson"
  11752. :userid="userid"
  11753. :id="id"
  11754. :courseType="courseType"
  11755. :taskCount="taskCount"
  11756. :toolindex="toolindex"
  11757. :videoType="videoType"
  11758. ></interVideo>
  11759. <UpdateMore
  11760. :dialogVisibleMember.sync="dialogVisibleMember"
  11761. :cList="uploadStudentJuri"
  11762. :userid="userid"
  11763. :searchTN="worksSName2"
  11764. @setPlname="setPlname"
  11765. ></UpdateMore>
  11766. <wordCloud
  11767. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11768. :data="wordCloudData"
  11769. ></wordCloud>
  11770. <el-dialog
  11771. title="挑人"
  11772. :visible.sync="dialogVisiblePickPeople"
  11773. width="650px"
  11774. :before-close="handleClose"
  11775. class="dialog_diy"
  11776. center
  11777. >
  11778. <div class="pick_box">
  11779. <div
  11780. class="noWorksName"
  11781. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11782. v-for="(item, index) in uploadStudentJuri"
  11783. :key="index"
  11784. @click="pickStudent(item)"
  11785. >
  11786. {{ item.name }}
  11787. </div>
  11788. </div>
  11789. </el-dialog>
  11790. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11791. :englishVoiceJson='englishVoiceJson'
  11792. :userid="userid"
  11793. :id="id"
  11794. :courseType="courseType"
  11795. :taskCount="taskCount"
  11796. :toolindex="toolindex"
  11797. @selectSWorks="selectSWorks"
  11798. @selectStudent="selectStudent"
  11799. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11800. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11801. :userid="userid"
  11802. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11803. :commentDetail="commentDetail"
  11804. :courseDetail="courseDetail"
  11805. :wScore="wScore"
  11806. :scoreDetail="scoreDetail"
  11807. @selectSWorks="selectSWorks"
  11808. @selectStudent="selectStudent"></checkEnglishVoice>
  11809. </div>
  11810. </template>
  11811. <script>
  11812. import "../common/aws-sdk-2.235.1.min.js";
  11813. // import pdf from "./components/pdf3";
  11814. import pdf from "./components/vpdf";
  11815. import AskStatic from "./components/askStatic";
  11816. import AskStatic2 from "./components/askStatic2";
  11817. import AnswerData2 from "./components/answerData2";
  11818. import AnswerData from "./components/answerData";
  11819. import EditorBar from "./tools/wangEnduit.vue";
  11820. import Table from "./tools/table.vue";
  11821. import Time from "./tools/time.vue";
  11822. import Mind from "./tools/jsmind.vue";
  11823. import Sunburst from "./tools/sunburst";
  11824. import SeeBoard from "./tools/seeBoard";
  11825. import * as imageConversion from "image-conversion";
  11826. import Audio from "./components/audio.vue";
  11827. import ImgDraw from "./tools/imgDraw/imgDraw";
  11828. import { Empty } from "element-ui";
  11829. import RecordRTC from "recordrtc";
  11830. import interVideo from "./interVideo/index.vue";
  11831. import UpdateMore from "./updateMore/updateMore.vue";
  11832. import wordCloud from "./wordCloud/index.vue";
  11833. import axios from "axios";
  11834. import JSZip from "jszip";
  11835. import FileSaver from "file-saver";
  11836. import onlineWrite from "./components/onlineWrite";
  11837. import englishEva from "./components/englishEva";
  11838. import * as Diff from 'diff'
  11839. import EnglishVoice from './EnglishVoice2/index.vue'
  11840. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  11841. import correctText from './components/correctText.vue'
  11842. import scoreItem from './scoreList/scoreItem.vue'
  11843. import classRoomHelper from './classRoomHelper/index.vue'
  11844. const getFile = (url) => {
  11845. return new Promise((resolve, reject) => {
  11846. var credentials = {
  11847. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11848. secretAccessKey: "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",
  11849. }; //秘钥形式的登录上传
  11850. window.AWS.config.update(credentials);
  11851. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11852. let url2 = url;
  11853. let _url2 = "";
  11854. if (
  11855. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11856. ) {
  11857. _url2 = url2.split(
  11858. "https://view.officeapps.live.com/op/view.aspx?src="
  11859. )[1];
  11860. } else {
  11861. _url2 = url2;
  11862. }
  11863. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11864. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11865. var params = {
  11866. Bucket: "ccrb",
  11867. Key: name
  11868. };
  11869. s3.getObject(params, function (err, data) {
  11870. if (err) {
  11871. console.log(err, err.stack)
  11872. resolve({ data: 1 });
  11873. }else {
  11874. resolve({ data: data.Body });
  11875. console.log(data);
  11876. } // sxuccessful response
  11877. });
  11878. // axios({
  11879. // method: "get",
  11880. // url,
  11881. // responseType: "blob",
  11882. // })
  11883. // .then((data) => {
  11884. // resolve({ data: data.data });
  11885. // })
  11886. // .catch((error) => {
  11887. // resolve({ data: 1 });
  11888. // // reject(error.toString());
  11889. // });
  11890. });
  11891. };
  11892. export default {
  11893. components: {
  11894. EditorBar,
  11895. Time,
  11896. pdf,
  11897. AskStatic,
  11898. AskStatic2,
  11899. Mind,
  11900. Sunburst,
  11901. SeeBoard,
  11902. AnswerData2,
  11903. AnswerData,
  11904. Audio,
  11905. ImgDraw,
  11906. Table,
  11907. interVideo,
  11908. UpdateMore,
  11909. wordCloud,
  11910. onlineWrite,
  11911. englishEva,
  11912. EnglishVoice,
  11913. checkEnglishVoice,
  11914. correctText,
  11915. scoreItem,
  11916. classRoomHelper
  11917. },
  11918. data() {
  11919. return {
  11920. bg: null,
  11921. drawShow: false,
  11922. dialogVisible: false,
  11923. dialogVisiblePl: false,
  11924. commentDialogVisible: false,
  11925. dialogVisibleMember: false,
  11926. dialogVisibleWordCloud: false,
  11927. videoVisible: false,
  11928. isStar: false,
  11929. studentEvalDialogVisible: false,
  11930. studentEvalDialogVisibleTeacher: false,
  11931. dialogVisibleSelect: false,
  11932. dialogVisibleSelectTeacher: false,
  11933. dialogVisibleScore: false,
  11934. dialogVisibleENScore: false,
  11935. dialogVisibleSentence: false,
  11936. dialogVisibleSentenceTeacher: false,
  11937. dialogVisibleSentence1: false,
  11938. dialogVisibleWorks: false,
  11939. dialogVisibleTable: false,
  11940. dialogVisibleTableTeacher: false,
  11941. dialogVisibleWord: false,
  11942. dialogVisibleWordTeacher: false,
  11943. dialogVisibleTable2: false,
  11944. dialogVisibleTable3: false,
  11945. dialogVisibleGroupWork: false,
  11946. dialogVisibleUpdateGroup: false,
  11947. dialogVisibleDeleteGroup: false,
  11948. dialogVisibleSname: false,
  11949. dialogVisibleVideo: false,
  11950. dialogVisiblePickPeople: false,
  11951. engDialogVisible: false,
  11952. engUpdateDialogVisible: false,
  11953. engEvaDialogVisible: false,
  11954. evaEngJson: {
  11955. teacherJson: {},
  11956. studentJson: {},
  11957. message: {},
  11958. },
  11959. isNoUserid:false,
  11960. engListLength:0,
  11961. engWid:"",
  11962. newEnglishList:{
  11963. engTitle:"",
  11964. engText:"",
  11965. },
  11966. newEnglishList1:[],
  11967. oldEnglishJson:{},
  11968. oldEnglishJson1:{},
  11969. englishList1:{},
  11970. englishList:{},
  11971. myAnswerList1:{},
  11972. topHeight:0,
  11973. newEngIndex:-1,
  11974. englishToolIndex:0,
  11975. worksSName: "",
  11976. classJuri: [],
  11977. uploadStudentJuri: [],
  11978. uploadCid: "",
  11979. snameWid: "",
  11980. sStudent: {},
  11981. sTool: "",
  11982. bzText: "",
  11983. commentDetail: [],
  11984. selectAnswer: [],
  11985. videoDetail: {},
  11986. selectJson: {},
  11987. eScore: { eBzText: "", eStar: [] },
  11988. id: this.$route.query.courseId,
  11989. userid: this.$route.query.userid,
  11990. classId: this.$route.query.cid,
  11991. // courseTypeLine: this.$route.query.type,
  11992. oid: this.$route.query.oid,
  11993. org: this.$route.query.org,
  11994. tType: this.$route.query.tType,
  11995. courseType: this.$route.query.type,
  11996. screenType: this.$route.query.screenType,
  11997. tcid2: this.$route.query.tcid,
  11998. tcid: "",
  11999. pptImgUrl: "",
  12000. pptImgUrl1: "",
  12001. commentText: "",
  12002. full: false,
  12003. sIsOpen: false,
  12004. IsLookOpen: false,
  12005. IsFollow: false,
  12006. pzDialog: false,
  12007. contentDialog: false,
  12008. mlDialog: false,
  12009. type: 1,
  12010. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12011. sentenceList1: [],
  12012. tableJson: [],
  12013. tableJsonO: [],
  12014. wordJson: [],
  12015. wordJsonO: [],
  12016. vedio: [],
  12017. text: [],
  12018. textList: [],
  12019. line: [],
  12020. lineList: [],
  12021. chapTools: [],
  12022. chapToolList: [],
  12023. file: [],
  12024. fileC: [],
  12025. vedioTime: [],
  12026. upToolImg: "",
  12027. preTime: 0,
  12028. rateList: {
  12029. ca: 0,
  12030. },
  12031. rateParams: [],
  12032. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12033. studyJuri: [
  12034. {
  12035. content: "",
  12036. cover: [],
  12037. upVedio: [],
  12038. upFile: [],
  12039. },
  12040. ],
  12041. isClose: 0,
  12042. plworkFile: [],
  12043. mr: require("../assets/vedioPic.png"),
  12044. word: require("../assets/icon/isWord.png"),
  12045. word2: require("../assets/icon/word2.png"),
  12046. video: require("../assets/icon/isVideo.png"),
  12047. noLikes: require("../assets/icon/comment/noLikes.png"),
  12048. likes: require("../assets/icon/comment/likes.png"),
  12049. scoreImg: require("../assets/score.png"),
  12050. courseDetail: {},
  12051. reply: "",
  12052. isSelect: false,
  12053. chapInfo: [],
  12054. chapInfoList: [],
  12055. taskCount: 0,
  12056. imgList: [],
  12057. noImgList: [],
  12058. pzList: [],
  12059. timeWorkList: [],
  12060. PlTextList: [
  12061. "Excellent!",
  12062. "nice!",
  12063. "很有创意!",
  12064. "还不错哦~",
  12065. "继续努力哦~",
  12066. ],
  12067. isClickNav: "",
  12068. navId: "",
  12069. playerOptions: {
  12070. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12071. autoplay: false, //如果true,浏览器准备好时开始回放。
  12072. muted: false, // 默认情况下将会消除任何音频。
  12073. loop: false, // 导致视频一结束就重新开始。
  12074. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12075. language: "zh-CN",
  12076. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12077. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12078. sources: [
  12079. {
  12080. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12081. src: "", //url地址require("../../assets/media/aaa.mp4")
  12082. },
  12083. ],
  12084. // poster: require("../../assets/tu31.png"), //你的封面地址
  12085. // poster: dataRes.imgUrl, //你的封面地址
  12086. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12087. controlBar: {
  12088. timeDivider: true, //当前时间和持续时间的分隔符
  12089. durationDisplay: true, //显示持续时间
  12090. remainingTimeDisplay: false, //是否显示剩余时间功能
  12091. fullscreenToggle: true, //全屏按钮
  12092. },
  12093. },
  12094. playerOptions1: {
  12095. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12096. autoplay: false, //如果true,浏览器准备好时开始回放。
  12097. muted: false, // 默认情况下将会消除任何音频。
  12098. loop: false, // 导致视频一结束就重新开始。
  12099. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12100. language: "zh-CN",
  12101. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12102. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12103. sources: [
  12104. {
  12105. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12106. src: "", //url地址require("../../assets/media/aaa.mp4")
  12107. },
  12108. ],
  12109. // poster: require("../../assets/tu31.png"), //你的封面地址
  12110. // poster: dataRes.imgUrl, //你的封面地址
  12111. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12112. controlBar: {
  12113. timeDivider: true, //当前时间和持续时间的分隔符
  12114. durationDisplay: true, //显示持续时间
  12115. remainingTimeDisplay: false, //是否显示剩余时间功能
  12116. fullscreenToggle: true, //全屏按钮
  12117. },
  12118. },
  12119. playerO: {},
  12120. noneBtnImg: false,
  12121. proVisible: false,
  12122. proVisible2: false,
  12123. progress: 0,
  12124. isFinishSize: 0,
  12125. isAllSize: 0,
  12126. questionAnswer: "",
  12127. answerQ: "", //问答标题
  12128. rateJson: [],
  12129. wbCount: 0,
  12130. wordCount: 0,
  12131. mindCount: 0,
  12132. askCount: 0,
  12133. noteCount: 0,
  12134. mindNetWorkCount: 0,
  12135. libraryCount: 0,
  12136. workCount: 0,
  12137. timeCount: 0,
  12138. answerCount: 0,
  12139. trainCount: 0,
  12140. evalCount: 0,
  12141. dialogImageUrl: "",
  12142. pictureDialog: false,
  12143. toolTypeList: [],
  12144. dialogVisible1: false,
  12145. dialogVisible2: false,
  12146. dialogVisible3: false,
  12147. dialogVisible6: false,
  12148. dialogVisible4: false,
  12149. isNoHomeWork: false,
  12150. dialogVisible5: false,
  12151. dialogVisible5Teacher: false,
  12152. dialogVisibleChoice: false,
  12153. dialogVisibleChoiceTeacher: false,
  12154. answerDialogVisible: false,
  12155. answerDialogVisibleTeacher: false,
  12156. juriVisible: false,
  12157. timeDialogVisible: false,
  12158. replyDialogVisible: false,
  12159. toolDialogVisible: false,
  12160. replyIndex: 0,
  12161. replyPid: "",
  12162. radio: [],
  12163. isAsk: false,
  12164. askJson: {
  12165. askCount: 1,
  12166. askTitle: "",
  12167. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12168. },
  12169. testJson: {},
  12170. videoType:0,
  12171. checkJson: [],
  12172. askList: [],
  12173. answerList: [],
  12174. navList: [],
  12175. addPzDialog: false,
  12176. pzConText: "",
  12177. worksStudent: [],
  12178. isCloseList: [],
  12179. workStudent: [],
  12180. groupStudent: [],
  12181. groupStudentUid: [],
  12182. noWorksS: [],
  12183. isWorksS: [],
  12184. noWorksStudent: [],
  12185. toolindex: 0,
  12186. toolDetailIndex: null,
  12187. groupIndex: 0,
  12188. workTypeB: false,
  12189. workTypeC: false,
  12190. isAnswer: false,
  12191. isHovered: false,
  12192. isHovered1: false,
  12193. isHovered2: false,
  12194. commentTagShow:0,
  12195. timer: null,
  12196. opertimer: null,
  12197. showType: 0,
  12198. fileType: 0,
  12199. showPDF: false,
  12200. noteName: "",
  12201. evaJuri: [],
  12202. evalua: "",
  12203. eTitle: "",
  12204. eName: "",
  12205. eJson: {},
  12206. fid: "", //一级
  12207. sid: "", //二级
  12208. tid: "", //二级
  12209. typeMode: 1,
  12210. eJSONNum: 0,
  12211. Etype: 1,
  12212. data: {
  12213. meta: {
  12214. name: "example",
  12215. author: "dd@163.com",
  12216. version: "0.2",
  12217. },
  12218. format: "node_array",
  12219. data: [{ id: "root", isroot: true, topic: "" }],
  12220. },
  12221. fullDialogVisible: false,
  12222. fulltype: "",
  12223. fullUrl: "",
  12224. commentIndexJson: {},
  12225. Stbodywidth: 0,
  12226. ispzType: 0,
  12227. pzType: 1,
  12228. wScore: 0,
  12229. scoreDetail: "",
  12230. videoStart: false,
  12231. recorder: null,
  12232. groupJson: {},
  12233. islock: false,
  12234. groupJson2: {},
  12235. dialogVisibleGroup: false,
  12236. dialogVisibleGroup2: false,
  12237. updateGroupArray: [],
  12238. updateGroupUser: {},
  12239. deleteGroupUser: [],
  12240. deleteGroupArray: {},
  12241. checkChair: "",
  12242. checkDeleteGroup: [],
  12243. inviteCode: "",
  12244. courseGroupStudent: [],
  12245. courseGroupStudentUid: [],
  12246. courseGroup: {},
  12247. isGroup: false,
  12248. // toolIndex: null,
  12249. tool: {},
  12250. isWorkTool: [
  12251. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12252. ], //, 40
  12253. videoJson: {},
  12254. toolType: 0,
  12255. checktoolArray: [],
  12256. vChapterData: [],
  12257. isUpdateToolDetail: false,
  12258. isUpdateToolDetail1: false,
  12259. updateToolDetailInner: "",
  12260. checkboxList: [],
  12261. plIndex: "",
  12262. worksSName2: "",
  12263. worksSid: "",
  12264. wordCloudData: [],
  12265. isPickStudent: [],
  12266. pzStype: 1,
  12267. myAnList: {},
  12268. userMes:{},
  12269. downLoading: false,
  12270. greyType: false,
  12271. correctWord: [],
  12272. isUpdateText: "",
  12273. EnglishVoiceDialog: false,
  12274. englishVoiceJson: {},
  12275. englishVoiceJsonWork:[],
  12276. scoreList:{
  12277. listdata:[],
  12278. isScoreList:[],
  12279. },
  12280. classRoomHelperWidth: '85px'
  12281. };
  12282. },
  12283. methods: {
  12284. gx(){
  12285. this.$forceUpdate();
  12286. },
  12287. isUpdateCorrect(t,p){
  12288. if(this.greyType == false){
  12289. this.isUpdateText = t;
  12290. this.greyType = true;
  12291. }else{
  12292. if(p == 1){
  12293. this.newEnglishList.engText = this.isUpdateText;
  12294. }else if(p == 2){
  12295. this.oldEnglishJson1.engText = this.isUpdateText;
  12296. }else if(p == 3){
  12297. this.newEnglishList.engText = this.isUpdateText;
  12298. }else{
  12299. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12300. }
  12301. this.greyType = false
  12302. }
  12303. },
  12304. aiCorrect(t,p){
  12305. let aiText = "";
  12306. const loading = this.$loading.service({
  12307. background: "rgba(255, 255, 255)",
  12308. target: document.querySelectorAll(".loadingText")[0],
  12309. });
  12310. let param = {
  12311. model: "gpt-3.5-turbo",
  12312. temperature: 0,
  12313. max_tokens: 2048,
  12314. top_p: 1,
  12315. frequency_penalty: 0,
  12316. presence_penalty: 0,
  12317. messages: [
  12318. {
  12319. role: "user",
  12320. content:
  12321. "你的任务是为文字内容进行批注,请依照以下步骤完成任务,并仅显示第二步完成的内容:1.校对并更正:" + t,
  12322. },
  12323. ],
  12324. uid: this.userid,
  12325. stream: false,
  12326. };
  12327. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12328. (res) => {
  12329. if (
  12330. res.data.FunctionResponse &&
  12331. res.data.FunctionResponse.result &&
  12332. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12333. ) {
  12334. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12335. return;
  12336. }
  12337. aiText =
  12338. res.data.FunctionResponse.choices[0].message.content;
  12339. aiText = aiText.replace(/%/g,"%25");
  12340. // let w = "";
  12341. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12342. // for(var k = 0;k<a.length;k++){
  12343. // //diffWordsWithSpace
  12344. // if(a.length > 1){
  12345. // if(a[k].added == true){
  12346. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12347. // }else if(a[k].removed == true){
  12348. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12349. // }else{
  12350. // w += '<span>' + a[k].value + '</span>';
  12351. // }
  12352. // }else{
  12353. // if(p == 1){
  12354. // w = this.newEnglishList.engText;
  12355. // }else if(p == 2){
  12356. // w = this.oldEnglishJson1.engText;
  12357. // }else if(p == 3){
  12358. // w = this.newEnglishList.engText;
  12359. // }else{
  12360. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12361. // }
  12362. // }
  12363. // }
  12364. if(p == 1){
  12365. this.newEnglishList.engText = aiText;
  12366. }else if(p == 2){
  12367. this.oldEnglishJson1.engText = aiText;
  12368. }else if(p == 3){
  12369. this.newEnglishList.engText = aiText;
  12370. }else{
  12371. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12372. }
  12373. loading.close();
  12374. },
  12375. (err) => {
  12376. console.log(err);
  12377. loading.close();
  12378. }
  12379. );
  12380. },
  12381. addToolChoose() {
  12382. if (!this.checktoolArray.length) {
  12383. this.$message.error("请选择要添加的任务");
  12384. return;
  12385. }
  12386. if (
  12387. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12388. this.taskCount
  12389. ].toolChoose[0].tool.length
  12390. ) {
  12391. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12392. this.taskCount
  12393. ].toolChoose[0].tool = this.checktoolArray;
  12394. } else {
  12395. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12396. this.taskCount
  12397. ].toolChoose.push({
  12398. tool: this.checktoolArray,
  12399. toolDetail: "",
  12400. toolType: 0,
  12401. askCount: 1,
  12402. askTitle: "",
  12403. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12404. });
  12405. }
  12406. let params = [
  12407. {
  12408. cid: this.id,
  12409. chapters: JSON.stringify(this.chapInfoList),
  12410. uid: this.userid,
  12411. unitIndex: this.courseType,
  12412. },
  12413. ];
  12414. this.ajax
  12415. .post(this.$store.state.api + "updateWorkNew4", params)
  12416. .then((res) => {
  12417. this.$message({
  12418. message: "添加成功",
  12419. type: "success",
  12420. });
  12421. this.checktoolArray = [];
  12422. this.getCourseDetail(2);
  12423. this.checkBz(
  12424. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12425. this.taskCount
  12426. ].toolChoose.length - 1
  12427. );
  12428. this.toolDialogVisible = false;
  12429. this.refreshCourse();
  12430. this.$forceUpdate();
  12431. })
  12432. .catch((err) => {
  12433. console.error(err);
  12434. });
  12435. },
  12436. checkBz(index) {
  12437. this.isUpdateToolDetail = false;
  12438. this.$forceUpdate();
  12439. setTimeout(() => {
  12440. document.scrollingElement.scrollTop =
  12441. document.querySelectorAll(".filebox")[index].offsetTop +
  12442. document.querySelector(".student_body").offsetTop;
  12443. }, 500);
  12444. },
  12445. updateToolDetail(i, type) {
  12446. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12447. this.toolDetailIndex = i
  12448. this.isUpdateToolDetail1 = true;
  12449. setTimeout(() => {
  12450. this.updateToolDetailInner = JSON.parse(
  12451. JSON.stringify(
  12452. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12453. this.taskCount
  12454. ].toolChoose[i].toolDetail
  12455. )
  12456. );
  12457. document.querySelector(".checkTextArea").focus();
  12458. }, 0);
  12459. } else if((this.isUpdateToolDetail1 && type != 2)){
  12460. // this.toolDetailIndex = i;
  12461. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12462. this.taskCount
  12463. ].toolChoose[i].toolDetail = JSON.parse(
  12464. JSON.stringify(this.updateToolDetailInner)
  12465. );
  12466. let params = [
  12467. {
  12468. cid: this.id,
  12469. chapters: JSON.stringify(this.chapInfoList),
  12470. uid: this.userid,
  12471. unitIndex: this.courseType,
  12472. },
  12473. ];
  12474. this.ajax
  12475. .post(this.$store.state.api + "updateWorkNew4", params)
  12476. .then((res) => {
  12477. this.isUpdateToolDetail1 = false;
  12478. this.$message({
  12479. message: "修改成功",
  12480. type: "success",
  12481. });
  12482. this.toolDetailIndex = null;
  12483. this.updateToolDetailInner = "";
  12484. this.getCourseDetail(2);
  12485. this.$forceUpdate();
  12486. })
  12487. .catch((err) => {
  12488. console.error(err);
  12489. });
  12490. } else if((this.isUpdateToolDetail1 && type == 2)){
  12491. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12492. this.taskCount
  12493. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12494. JSON.stringify(this.updateToolDetailInner)
  12495. );
  12496. let params = [
  12497. {
  12498. cid: this.id,
  12499. chapters: JSON.stringify(this.chapInfoList),
  12500. uid: this.userid,
  12501. unitIndex: this.courseType,
  12502. },
  12503. ];
  12504. this.ajax
  12505. .post(this.$store.state.api + "updateWorkNew4", params)
  12506. .then((res) => {
  12507. this.$message({
  12508. message: "修改成功",
  12509. type: "success",
  12510. });
  12511. this.toolDetailIndex = i;
  12512. this.isUpdateToolDetail1 = true;
  12513. setTimeout(() => {
  12514. this.updateToolDetailInner = JSON.parse(
  12515. JSON.stringify(
  12516. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12517. this.taskCount
  12518. ].toolChoose[i].toolDetail
  12519. )
  12520. );
  12521. document.querySelector(".checkTextArea").focus();
  12522. }, 0);
  12523. this.getCourseDetail(2);
  12524. this.$forceUpdate();
  12525. })
  12526. .catch((err) => {
  12527. console.error(err);
  12528. });
  12529. }
  12530. },
  12531. jumpGj(i, j, k, l) {
  12532. for (var z = 0; z < this.navList.length; z++) {
  12533. for (var q = 0; q < this.navList[z].task.length; q++) {
  12534. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12535. this.navList[z].task[q].tool[w].isTool = false;
  12536. }
  12537. }
  12538. }
  12539. this.navList[i].task[j].tool[k].isTool =
  12540. !this.navList[i].task[j].tool[k].isTool;
  12541. var a = document.scrollingElement;
  12542. this.navId = ""
  12543. let target = document.querySelector(`#gj${k}`);
  12544. if (target) {
  12545. target.scrollIntoView(true);
  12546. setTimeout(() => {
  12547. a.scrollTop = a.scrollTop - 150;
  12548. }, 0);
  12549. }
  12550. if (l) {
  12551. this.courseType = i;
  12552. // this.navId = l;
  12553. this.taskCount = j;
  12554. this.selectPz();
  12555. this.getHomeWork();
  12556. this.getCourseDetail(2);
  12557. }
  12558. // var b = this.$refs["bz" + k][0];
  12559. // a.scrollTop = b.offsetTop;
  12560. },
  12561. addTools2(i) {
  12562. if (i == 4) {
  12563. // this.openTools2(4);
  12564. this.$message.error("暂未开放");
  12565. return;
  12566. }
  12567. if (i == 45) {
  12568. // this.openTools2(45);
  12569. this.$message.error("暂未开放");
  12570. return;
  12571. }
  12572. if (i == 47) {
  12573. // this.openTools2(47);
  12574. this.$message.error("暂未开放");
  12575. return;
  12576. }
  12577. if (i == 49) {
  12578. // this.openTools2(49);
  12579. this.$message.error("暂未开放");
  12580. return;
  12581. }
  12582. if (i == 62) {
  12583. // this.openTools(itemTaskIndex, 62, toolIndex);
  12584. this.$message.error("暂未开放");
  12585. return;
  12586. }
  12587. if (i == 15) {
  12588. // this.openTools(itemTaskIndex, 15, toolIndex);
  12589. this.$message.error("暂未开放");
  12590. return;
  12591. }
  12592. if (i == 40) {
  12593. // this.openTools(itemTaskIndex, 40, toolIndex);
  12594. this.$message.error("暂未开放");
  12595. return;
  12596. }
  12597. if (i == 41) {
  12598. // this.openTools(itemTaskIndex, 41, toolIndex);
  12599. this.$message.error("暂未开放");
  12600. return;
  12601. }
  12602. if (i == 42) {
  12603. // this.openTools(itemTaskIndex, 42, toolIndex);
  12604. this.$message.error("暂未开放");
  12605. return;
  12606. }
  12607. if (this.checktoolArray.length > 0) {
  12608. if (this.checktoolArray.indexOf(i) != -1) {
  12609. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12610. } else {
  12611. this.checktoolArray = [];
  12612. this.checktoolArray.push(i);
  12613. }
  12614. } else {
  12615. this.checktoolArray.push(i);
  12616. }
  12617. this.$forceUpdate();
  12618. },
  12619. jump() {
  12620. window.parent.postMessage({ tools: "43" }, "*");
  12621. },
  12622. getUpdateMore(f, checkboxList, searchTN, index) {
  12623. this.dialogVisibleMember = f;
  12624. this.checkboxList = checkboxList;
  12625. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12626. this.plIndex = index;
  12627. },
  12628. setPlname(a) {
  12629. if (this.plworkFile.length) {
  12630. this.plworkFile[this.plIndex].username = a;
  12631. } else {
  12632. this.worksSName = a;
  12633. }
  12634. this.dialogVisibleMember = false;
  12635. },
  12636. previewImg(url) {
  12637. this.$hevueImgPreview(url);
  12638. },
  12639. checkImg(list) {
  12640. if (!list.length) {
  12641. return;
  12642. }
  12643. this.$hevueImgPreview({
  12644. multiple: true, // 开启多图预览模式
  12645. imgList: list, // 需要预览的多图数组
  12646. });
  12647. },
  12648. change(val) {
  12649. console.log(val);
  12650. },
  12651. goTo(path) {
  12652. this.$router.push(path);
  12653. },
  12654. handlePictureCardPreview(url) {
  12655. this.dialogImageUrl = url;
  12656. this.pictureDialog = true;
  12657. },
  12658. clean(type) {
  12659. if (type == 1) {
  12660. this.studyJuri[0].cover.splice(0, 1);
  12661. } else if (type == 2) {
  12662. this.studyJuri[0].upVedio.splice(0, 1);
  12663. } else {
  12664. this.studyJuri[0].upFile.splice(0, 1);
  12665. }
  12666. },
  12667. clean2(index) {
  12668. this.plworkFile.splice(index, 1);
  12669. },
  12670. handleClose(done) {
  12671. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12672. this.videoDetail.sources[0].src = "";
  12673. }
  12674. this.commentIndexJson = {};
  12675. done();
  12676. },
  12677. fullTools() {
  12678. this.full = !this.full;
  12679. },
  12680. imgChange(file, fileList, type) {
  12681. if (type == 1) {
  12682. var _tmp = this.studyJuri[0].cover;
  12683. } else if (type == 2) {
  12684. var _tmp = this.studyJuri[0].upVedio;
  12685. } else {
  12686. var _tmp = this.studyJuri[0].upFile;
  12687. }
  12688. this.noneBtnImg = _tmp.length >= 1;
  12689. },
  12690. setContent(bool) {
  12691. this.contentDialog = bool;
  12692. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12693. document.querySelector(".workd_media").style.height = "650px";
  12694. } else if (document.querySelector(".workd_media")) {
  12695. document.querySelector(".workd_media").style.height = "auto";
  12696. }
  12697. },
  12698. setContent2(bool) {
  12699. this.mlDialog = bool;
  12700. if (
  12701. bool &&
  12702. this.contentDialog &&
  12703. document.querySelector(".workd_media")
  12704. ) {
  12705. document.querySelector(".workd_media").style.height = "650px";
  12706. } else if (document.querySelector(".workd_media")) {
  12707. document.querySelector(".workd_media").style.height = "auto";
  12708. }
  12709. this.$forceUpdate();
  12710. },
  12711. openToolAll() {
  12712. this.toolDialogVisible = true;
  12713. },
  12714. addImg(e) {
  12715. var el = e.currentTarget;
  12716. // this.$message.success('触发上传')
  12717. el.getElementsByTagName("input")[0].click();
  12718. e.target.value = "";
  12719. },
  12720. addSelectAnswer() {
  12721. let params = [
  12722. {
  12723. uid: this.userid,
  12724. cid: this.id,
  12725. stage: this.courseType,
  12726. task: this.taskCount,
  12727. tool: this.toolindex,
  12728. content: this.selectAnswer.answer,
  12729. type: 7,
  12730. },
  12731. ];
  12732. this.ajax
  12733. .post(this.$store.state.api + "addCourseWorks", params)
  12734. .then((res) => {
  12735. this.$message({
  12736. message: "提交成功",
  12737. type: "success",
  12738. });
  12739. this.dialogVisibleSelect = false;
  12740. // this.selectAnswer = {};
  12741. this.selectSWorks();
  12742. this.selectStudent();
  12743. })
  12744. .catch((err) => {
  12745. this.$message.error("提交失败");
  12746. console.error(err);
  12747. });
  12748. },
  12749. addSelectAnswerTeacher() {
  12750. let params = [
  12751. {
  12752. uid: this.sStudent.userid,
  12753. cid: this.id,
  12754. stage: this.courseType,
  12755. task: this.taskCount,
  12756. tool: this.toolindex,
  12757. content: this.selectAnswer.answer,
  12758. type: 7,
  12759. },
  12760. ];
  12761. this.ajax
  12762. .post(this.$store.state.api + "addCourseWorks", params)
  12763. .then((res) => {
  12764. this.$message({
  12765. message: "提交成功",
  12766. type: "success",
  12767. });
  12768. this.dialogVisibleSelectTeacher = false;
  12769. // this.selectAnswer = {};
  12770. this.selectSWorks();
  12771. this.selectStudent();
  12772. })
  12773. .catch((err) => {
  12774. this.$message.error("提交失败");
  12775. console.error(err);
  12776. });
  12777. },
  12778. addSenWorks() {
  12779. for (var i = 0; i < this.sentenceList.length; i++) {
  12780. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12781. if (
  12782. this.sentenceList[i].chooseSenList[j] == undefined ||
  12783. this.sentenceList[i].chooseSenList[j] == ""
  12784. ) {
  12785. this.$message.error("请将答案填写完整!");
  12786. return;
  12787. }
  12788. }
  12789. }
  12790. let params = [
  12791. {
  12792. uid: this.userid,
  12793. cid: this.id,
  12794. stage: this.courseType,
  12795. task: this.taskCount,
  12796. tool: this.toolindex,
  12797. content: JSON.stringify(this.sentenceList),
  12798. type: 9,
  12799. },
  12800. ];
  12801. this.ajax
  12802. .post(this.$store.state.api + "addCourseWorks", params)
  12803. .then((res) => {
  12804. this.$message({
  12805. message: "提交成功",
  12806. type: "success",
  12807. });
  12808. this.dialogVisibleSentence = false;
  12809. // this.selectAnswer = {};
  12810. this.selectSWorks();
  12811. this.selectStudent();
  12812. })
  12813. .catch((err) => {
  12814. this.$message.error("提交失败");
  12815. console.error(err);
  12816. });
  12817. },
  12818. addSenWorksTeacher() {
  12819. for (var i = 0; i < this.sentenceList.length; i++) {
  12820. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12821. if (
  12822. this.sentenceList[i].chooseSenList[j] == undefined ||
  12823. this.sentenceList[i].chooseSenList[j] == ""
  12824. ) {
  12825. this.$message.error("请将答案填写完整!");
  12826. return;
  12827. }
  12828. }
  12829. }
  12830. let params = [
  12831. {
  12832. uid: this.sStudent.userid,
  12833. cid: this.id,
  12834. stage: this.courseType,
  12835. task: this.taskCount,
  12836. tool: this.toolindex,
  12837. content: JSON.stringify(this.sentenceList),
  12838. type: 9,
  12839. },
  12840. ];
  12841. this.ajax
  12842. .post(this.$store.state.api + "addCourseWorks", params)
  12843. .then((res) => {
  12844. this.$message({
  12845. message: "提交成功",
  12846. type: "success",
  12847. });
  12848. this.dialogVisibleSentenceTeacher = false;
  12849. // this.selectAnswer = {};
  12850. this.selectSWorks();
  12851. this.selectStudent();
  12852. })
  12853. .catch((err) => {
  12854. this.$message.error("提交失败");
  12855. console.error(err);
  12856. });
  12857. },
  12858. returnTableText() {
  12859. this.$confirm("确定还原此模板吗?", "提示", {
  12860. confirmButtonText: "确定",
  12861. cancelButtonText: "取消",
  12862. type: "warning",
  12863. })
  12864. .then(() => {
  12865. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12866. })
  12867. .catch(() => {});
  12868. },
  12869. addTableWorks() {
  12870. let params = [
  12871. {
  12872. uid: this.userid,
  12873. cid: this.id,
  12874. stage: this.courseType,
  12875. task: this.taskCount,
  12876. tool: this.toolindex,
  12877. content: JSON.stringify(this.tableJson),
  12878. type: 10,
  12879. },
  12880. ];
  12881. this.ajax
  12882. .post(this.$store.state.api + "addCourseWorks", params)
  12883. .then((res) => {
  12884. this.$message({
  12885. message: "提交成功",
  12886. type: "success",
  12887. });
  12888. this.dialogVisibleTable = false;
  12889. // this.selectAnswer = {};
  12890. this.selectSWorks();
  12891. this.selectStudent();
  12892. })
  12893. .catch((err) => {
  12894. this.$message.error("提交失败");
  12895. console.error(err);
  12896. });
  12897. },
  12898. tableRowClassName({ row, rowIndex }) {
  12899. if ((rowIndex + 1) % 2 === 0) {
  12900. return "even_row";
  12901. } else {
  12902. return "";
  12903. }
  12904. },
  12905. addTableWorksTeacher() {
  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.tableJson),
  12914. type: 10,
  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.dialogVisibleTableTeacher = 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. returnWordText() {
  12935. this.$confirm("确定还原此模板吗?", "提示", {
  12936. confirmButtonText: "确定",
  12937. cancelButtonText: "取消",
  12938. type: "warning",
  12939. })
  12940. .then(() => {
  12941. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  12942. })
  12943. .catch(() => {});
  12944. },
  12945. addWordWorks() {
  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.wordJson),
  12954. type: 13,
  12955. atool: 52,
  12956. },
  12957. ];
  12958. this.ajax
  12959. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12960. .then((res) => {
  12961. this.$message({
  12962. message: "提交成功",
  12963. type: "success",
  12964. });
  12965. this.dialogVisibleWord = false;
  12966. // this.selectAnswer = {};
  12967. this.selectSWorks();
  12968. this.selectStudent();
  12969. })
  12970. .catch((err) => {
  12971. this.$message.error("提交失败");
  12972. console.error(err);
  12973. });
  12974. },
  12975. addWordWorksTeacher() {
  12976. let params = [
  12977. {
  12978. uid: this.sStudent.userid,
  12979. cid: this.id,
  12980. stage: this.courseType,
  12981. task: this.taskCount,
  12982. tool: this.toolindex,
  12983. content: JSON.stringify(this.wordJson),
  12984. type: 13,
  12985. atool: 52,
  12986. },
  12987. ];
  12988. this.ajax
  12989. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12990. .then((res) => {
  12991. this.$message({
  12992. message: "提交成功",
  12993. type: "success",
  12994. });
  12995. this.dialogVisibleWordTeacher = false;
  12996. // this.selectAnswer = {};
  12997. this.selectSWorks();
  12998. this.selectStudent();
  12999. })
  13000. .catch((err) => {
  13001. this.$message.error("提交失败");
  13002. console.error(err);
  13003. });
  13004. },
  13005. addCourseWorks(i) {
  13006. var typesql;
  13007. if (this.fileType === 0) {
  13008. typesql = 1;
  13009. } else if (this.fileType === 1) {
  13010. typesql = 4;
  13011. } else if (this.fileType === 2) {
  13012. typesql = 5;
  13013. } else if (this.fileType === 3) {
  13014. typesql = 12;
  13015. }
  13016. if (!this.studyJuri[0].cover[0].url) {
  13017. this.$message.error("请上传文件");
  13018. return;
  13019. }
  13020. let params = [
  13021. {
  13022. uid: this.userid,
  13023. cid: this.id,
  13024. stage: this.courseType,
  13025. task: i,
  13026. tool: this.toolindex,
  13027. content: this.studyJuri[0].cover[0].url,
  13028. type: typesql,
  13029. },
  13030. ];
  13031. this.ajax
  13032. .post(this.$store.state.api + "addCourseWorksR", params)
  13033. .then((res) => {
  13034. this.$message({
  13035. message: "提交成功",
  13036. type: "success",
  13037. });
  13038. this.studyJuri[0].cover = [];
  13039. this.dialogVisible = false;
  13040. this.getCourseDetail(2);
  13041. })
  13042. .catch((err) => {
  13043. this.$message.error("提交失败");
  13044. console.error(err);
  13045. });
  13046. },
  13047. addCourseWorksPl(i) {
  13048. let _files = this.plworkFile;
  13049. var c = 1;
  13050. for (var k = 0; k < _files.length; k++) {
  13051. if (!_files[k].username) {
  13052. c = 2;
  13053. }
  13054. }
  13055. if (c == 2) {
  13056. this.$message.error("请填写学生姓名");
  13057. return;
  13058. }
  13059. let params = [
  13060. {
  13061. ateacher: this.userid,
  13062. cid: this.id,
  13063. stage: this.courseType,
  13064. task: i,
  13065. tool: this.toolindex,
  13066. content: JSON.stringify(_files),
  13067. },
  13068. ];
  13069. this.ajax
  13070. .post(this.$store.state.api + "addCourseWorksPl", params)
  13071. .then((res) => {
  13072. this.$message({
  13073. message: "提交成功",
  13074. type: "success",
  13075. });
  13076. this.plworkFile = [];
  13077. this.dialogVisiblePl = false;
  13078. this.getCourseDetail(2);
  13079. })
  13080. .catch((err) => {
  13081. this.$message.error("提交失败");
  13082. console.error(err);
  13083. });
  13084. },
  13085. addCourseWorks2(i) {
  13086. var typesql;
  13087. if (this.fileType === 0) {
  13088. typesql = 0;
  13089. } else if (this.fileType === 1) {
  13090. typesql = 1;
  13091. } else if (this.fileType === 2) {
  13092. typesql = 3;
  13093. } else if (this.fileType === 3) {
  13094. typesql = 12;
  13095. }
  13096. if (!this.studyJuri[0].cover[0].url) {
  13097. this.$message.error("请上传文件");
  13098. return;
  13099. }
  13100. let params = [
  13101. {
  13102. uid: this.userid,
  13103. cid: this.id,
  13104. stage: this.courseType,
  13105. task: i,
  13106. tool: this.toolindex,
  13107. content: JSON.stringify({
  13108. type: typesql,
  13109. groupIndex: this.groupIndex,
  13110. url: this.studyJuri[0].cover[0].url,
  13111. }),
  13112. type: 11,
  13113. atool: 49,
  13114. text: "",
  13115. },
  13116. ];
  13117. this.ajax
  13118. .post(this.$store.state.api + "addCourseWorks5", params)
  13119. .then((res) => {
  13120. this.$message({
  13121. message: "提交成功",
  13122. type: "success",
  13123. });
  13124. this.studyJuri[0].cover = [];
  13125. this.dialogVisibleGroupWork = false;
  13126. this.getCourseDetail(2);
  13127. })
  13128. .catch((err) => {
  13129. this.$message.error("提交失败");
  13130. console.error(err);
  13131. });
  13132. },
  13133. addEnglishWork() {
  13134. this.myAnList = this.$refs['engJson'].myAnswerList;
  13135. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13136. this.$message.error("请输入作文标题和正文!");
  13137. return;
  13138. }
  13139. let params = [
  13140. {
  13141. uid: this.userid,
  13142. cid: this.id,
  13143. stage: this.courseType,
  13144. task: this.taskCount,
  13145. tool: this.englishToolIndex,
  13146. content: JSON.stringify(this.myAnList),
  13147. type: 16,
  13148. atool: 69,
  13149. text: "",
  13150. },
  13151. ];
  13152. this.ajax
  13153. .post(this.$store.state.api + "addCourseWorks5", params)
  13154. .then((res) => {
  13155. this.$message({
  13156. message: "提交成功",
  13157. type: "success",
  13158. });
  13159. this.myAnList = {};
  13160. this.englishList = {};
  13161. this.englishToolIndex = 0;
  13162. this.engDialogVisible = false;
  13163. this.selectSWorks();
  13164. this.selectStudent();
  13165. })
  13166. .catch((err) => {
  13167. this.$message.error("提交失败");
  13168. console.error(err);
  13169. });
  13170. },
  13171. addCourseWorksGong(i, data, tool) {
  13172. let params = [
  13173. {
  13174. uid: this.userid,
  13175. cid: this.id,
  13176. stage: this.courseType,
  13177. task: this.taskCount,
  13178. tool: i,
  13179. content: data,
  13180. type: 12,
  13181. atool: tool,
  13182. text: "",
  13183. },
  13184. ];
  13185. this.ajax
  13186. .post(this.$store.state.api + "addCourseWorks5", params)
  13187. .then((res) => {
  13188. this.$message({
  13189. message: "提交成功",
  13190. type: "success",
  13191. });
  13192. this.studyJuri[0].cover = [];
  13193. this.selectSWorks();
  13194. this.selectStudent();
  13195. })
  13196. .catch((err) => {
  13197. this.$message.error("提交失败");
  13198. console.error(err);
  13199. });
  13200. },
  13201. addCourseWorksGongTeacher(i, data, tool) {
  13202. let params = [
  13203. {
  13204. uid: this.sStudent.userid,
  13205. cid: this.id,
  13206. stage: this.courseType,
  13207. task: this.taskCount,
  13208. tool: i,
  13209. content: data,
  13210. type: 12,
  13211. atool: tool,
  13212. text: "",
  13213. },
  13214. ];
  13215. this.ajax
  13216. .post(this.$store.state.api + "addCourseWorks5", params)
  13217. .then((res) => {
  13218. this.$message({
  13219. message: "提交成功",
  13220. type: "success",
  13221. });
  13222. this.studyJuri[0].cover = [];
  13223. this.dialogVisibleWorks = false;
  13224. this.selectSWorks();
  13225. this.selectStudent();
  13226. })
  13227. .catch((err) => {
  13228. this.$message.error("提交失败");
  13229. console.error(err);
  13230. });
  13231. },
  13232. addCourseWorksGongPl(i, data, tool, type) {
  13233. let params = [
  13234. {
  13235. uid: this.sStudent.userid,
  13236. cid: this.id,
  13237. stage: this.courseType,
  13238. task: this.taskCount,
  13239. tool: i,
  13240. content: data,
  13241. type: type,
  13242. atool: tool,
  13243. text: "",
  13244. },
  13245. ];
  13246. this.ajax
  13247. .post(this.$store.state.api + "addCourseWorks5", params)
  13248. .then((res) => {
  13249. this.$message({
  13250. message: "提交成功",
  13251. type: "success",
  13252. });
  13253. this.studyJuri[0].cover = [];
  13254. this.dialogVisibleWorks = false;
  13255. this.selectSWorks();
  13256. this.selectStudent();
  13257. })
  13258. .catch((err) => {
  13259. this.$message.error("提交失败");
  13260. console.error(err);
  13261. });
  13262. },
  13263. addCourseWorksTeacher(i) {
  13264. var typesql;
  13265. if (this.sTool == 32) {
  13266. this.addCourseWorksGongTeacher(
  13267. this.toolindex,
  13268. this.studyJuri[0].cover[0].url,
  13269. this.sTool
  13270. );
  13271. return;
  13272. }
  13273. if (this.fileType === 0) {
  13274. typesql = 1;
  13275. } else if (this.fileType === 1) {
  13276. typesql = 4;
  13277. } else if (this.fileType === 2) {
  13278. typesql = 5;
  13279. } else if (this.fileType === 3) {
  13280. typesql = 12;
  13281. }
  13282. if (this.sTool == 50) {
  13283. this.addCourseWorksGongPl(
  13284. this.toolindex,
  13285. this.studyJuri[0].cover[0].url,
  13286. this.sTool,
  13287. typesql
  13288. );
  13289. return;
  13290. }
  13291. if (!this.studyJuri[0].cover[0].url) {
  13292. this.$message.error("请上传文件");
  13293. return;
  13294. }
  13295. let params = [
  13296. {
  13297. uid: this.sStudent.userid,
  13298. cid: this.id,
  13299. stage: this.courseType,
  13300. task: i,
  13301. tool: this.toolindex,
  13302. content: this.studyJuri[0].cover[0].url,
  13303. type: typesql,
  13304. ateacher: this.userid,
  13305. },
  13306. ];
  13307. this.ajax
  13308. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13309. .then((res) => {
  13310. this.$message({
  13311. message: "提交成功",
  13312. type: "success",
  13313. });
  13314. this.studyJuri[0].cover = [];
  13315. this.dialogVisibleWorks = false;
  13316. this.getCourseDetail(2);
  13317. })
  13318. .catch((err) => {
  13319. this.$message.error("提交失败");
  13320. console.error(err);
  13321. });
  13322. },
  13323. selectUploadStudent(type) {
  13324. const loading = this.$loading.service({
  13325. background: "rgba(255, 255, 255, 0.7)",
  13326. target: document.body,
  13327. });
  13328. let params = {
  13329. cid: this.uploadCid,
  13330. oid: this.oid,
  13331. cn: "",
  13332. };
  13333. this.ajax
  13334. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13335. .then((res) => {
  13336. loading.close();
  13337. var studentK = [];
  13338. if (this.isWorksS[this.toolindex].length > 0) {
  13339. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13340. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13341. }
  13342. studentK = studentK.join(",");
  13343. }
  13344. this.uploadStudentJuri = res.data[0].filter((el) => {
  13345. return studentK.indexOf(el.userid) == -1;
  13346. });
  13347. if (this.worksSName && this.worksSid) {
  13348. this.uploadStudentJuri.push({
  13349. userid: this.worksSid,
  13350. name: this.worksSName,
  13351. });
  13352. }
  13353. if (type == 1) {
  13354. this.plworkFile = [];
  13355. this.dialogVisibleSname = true;
  13356. } else if (type == 2) {
  13357. this.dialogVisiblePl = true;
  13358. }
  13359. })
  13360. .catch((err) => {
  13361. loading.close();
  13362. console.error(err);
  13363. });
  13364. },
  13365. selectPickStudent() {
  13366. const loading = this.$loading.service({
  13367. background: "rgba(255, 255, 255, 0.7)",
  13368. target: document.body,
  13369. });
  13370. let params = {
  13371. cid: this.uploadCid,
  13372. oid: this.oid,
  13373. cn: "",
  13374. };
  13375. this.ajax
  13376. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13377. .then((res) => {
  13378. loading.close();
  13379. this.uploadStudentJuri = res.data[0];
  13380. this.dialogVisiblePickPeople = true;
  13381. })
  13382. .catch((err) => {
  13383. loading.close();
  13384. console.error(err);
  13385. });
  13386. },
  13387. arrayToArray(arrayo, arrayt) {
  13388. let array1 = arrayo;
  13389. let array2 = arrayt;
  13390. let commonElements = [];
  13391. for (let i = 0; i < array1.length; i++) {
  13392. for (let j = 0; j < array2.length; j++) {
  13393. if (array1[i] === array2[j]) {
  13394. commonElements.push(array1[i]);
  13395. }
  13396. }
  13397. }
  13398. return commonElements;
  13399. },
  13400. selectWorksStudent() {
  13401. let params = {
  13402. oid: this.oid,
  13403. cid: this.courseDetail.juri,
  13404. };
  13405. this.ajax
  13406. .get(this.$store.state.api + "selectWorksStudent", params)
  13407. .then((res) => {
  13408. var a = res.data[0];
  13409. for (var i = 0; i < this.isWorksS.length; i++) {
  13410. this.noWorksS[i] = [];
  13411. var studentK = [];
  13412. if (this.isWorksS[i].length > 0) {
  13413. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13414. studentK.push(this.isWorksS[i][z].uid);
  13415. }
  13416. studentK = studentK.join(",");
  13417. for (var j = 0; j < a.length; j++) {
  13418. if (studentK.indexOf(a[j].userid) == -1) {
  13419. if (this.tcid) {
  13420. // a[j].classid.indexOf(this.tcid) != -1
  13421. if (
  13422. this.arrayToArray(
  13423. a[j].classid.split(","),
  13424. this.tcid.split(",")
  13425. ).length
  13426. ) {
  13427. this.noWorksS[i].push({
  13428. student: a[j].name,
  13429. userid: a[j].userid,
  13430. });
  13431. }
  13432. } else {
  13433. this.noWorksS[i].push({
  13434. student: a[j].name,
  13435. userid: a[j].userid,
  13436. });
  13437. }
  13438. }
  13439. }
  13440. } else {
  13441. for (var k = 0; k < a.length; k++) {
  13442. if (this.tcid) {
  13443. if (
  13444. this.arrayToArray(
  13445. a[k].classid.split(","),
  13446. this.tcid.split(",")
  13447. ).length
  13448. ) {
  13449. this.noWorksS[i].push({
  13450. student: a[k].name,
  13451. userid: a[k].userid,
  13452. });
  13453. }
  13454. } else {
  13455. this.noWorksS[i].push({
  13456. student: a[k].name,
  13457. userid: a[k].userid,
  13458. });
  13459. }
  13460. }
  13461. }
  13462. }
  13463. this.$forceUpdate();
  13464. if (
  13465. Object.keys(this.commentDetail).length &&
  13466. Object.keys(this.commentIndexJson).length &&
  13467. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13468. ) {
  13469. let a = 1;
  13470. let c = this.commentIndexJson;
  13471. if (
  13472. this.commentIndexJson.gindex ||
  13473. this.commentIndexJson.gindex === 0
  13474. ) {
  13475. for (
  13476. var i = 0;
  13477. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13478. i++
  13479. ) {
  13480. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13481. groupA: for (var k = 0; k < _el.length; k++) {
  13482. let el = _el[k];
  13483. if (el.wid == this.commentDetail.wid) {
  13484. a = 2;
  13485. this.commentOther(
  13486. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13487. this.commentIndexJson.toolIndex,
  13488. k,
  13489. this.commentIndexJson.gindex
  13490. );
  13491. break groupA;
  13492. }
  13493. }
  13494. }
  13495. if (a === 1) {
  13496. this.commentDetail = [];
  13497. this.commentIndexJson = {};
  13498. this.commentDialogVisible = false;
  13499. this.$message("此作业已被删除");
  13500. }
  13501. } else {
  13502. if (this.isGroup && this.commentIndexJson.gid) {
  13503. groupA: for (
  13504. var i = 0;
  13505. i < this.courseGroup.group.length;
  13506. i++
  13507. ) {
  13508. let _group = this.courseGroup.group[i];
  13509. if (_group.id == this.commentIndexJson.gid) {
  13510. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13511. for (var k = 0; k < _el2.length; k++) {
  13512. let el2 = _el2[k];
  13513. if (el2.wid == this.commentDetail.wid) {
  13514. a = 2;
  13515. this.commentOther(
  13516. _el2[k],
  13517. this.commentIndexJson.toolIndex,
  13518. k,
  13519. null,
  13520. this.commentIndexJson.gid
  13521. );
  13522. break groupA;
  13523. }
  13524. }
  13525. }
  13526. }
  13527. }
  13528. if (a == 1) {
  13529. for (
  13530. var i = 0;
  13531. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13532. i++
  13533. ) {
  13534. let el =
  13535. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13536. if (el.wid == this.commentDetail.wid) {
  13537. a = 2;
  13538. this.commentOther(
  13539. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13540. this.commentIndexJson.toolIndex,
  13541. i
  13542. );
  13543. break;
  13544. }
  13545. }
  13546. }
  13547. if (a === 1) {
  13548. this.commentDetail = [];
  13549. this.commentIndexJson = {};
  13550. this.commentDialogVisible = false;
  13551. this.$message("此作业已被删除");
  13552. }
  13553. }
  13554. }
  13555. })
  13556. .catch((err) => {
  13557. console.error(err);
  13558. });
  13559. },
  13560. selectStudent() {
  13561. //学生查看自己作业
  13562. let params = {
  13563. uid: this.userid,
  13564. cid: this.id,
  13565. s: this.courseType,
  13566. t: this.taskCount,
  13567. };
  13568. this.ajax
  13569. .get(this.$store.state.api + "selectStudentWorks", params)
  13570. .then((res) => {
  13571. var a =
  13572. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13573. this.taskCount
  13574. ].toolChoose;
  13575. var b = res.data[0];
  13576. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13577. var y = [
  13578. "AVI",
  13579. "NAVI",
  13580. "MPEG",
  13581. "ASF",
  13582. "MOV",
  13583. "WMV",
  13584. "3GP",
  13585. "RM",
  13586. "RMVB",
  13587. "FLV",
  13588. "F4V",
  13589. "H.264",
  13590. "H.265",
  13591. "REAL VIDEO",
  13592. "MKV",
  13593. "WebM",
  13594. "HDDVD",
  13595. "MP4",
  13596. "MPG",
  13597. "M4V",
  13598. "MGV",
  13599. "OGV",
  13600. "QTM",
  13601. "STR",
  13602. "AMC",
  13603. "DVX",
  13604. "EVO",
  13605. "DAT",
  13606. "OGG",
  13607. "OGM",
  13608. ];
  13609. for (var i = 0; i < a.length; i++) {
  13610. this.workStudent[i] = [];
  13611. for (var j = 0; j < b.length; j++) {
  13612. if (i == b[j].tool) {
  13613. if (
  13614. (b[j].type == 1 ||
  13615. b[j].type == 4 ||
  13616. b[j].type == 5 ||
  13617. b[j].type == 6 ||
  13618. b[j].type == 12 ||
  13619. b[j].type == 7) &&
  13620. a[i].tool[0] != 15 &&
  13621. a[i].tool[0] != 4 &&
  13622. a[i].tool[0] != 45 &&
  13623. a[i].tool[0] != 50 &&
  13624. a[i].tool[0] != 32 &&
  13625. a[i].tool[0] != 57 &&
  13626. a[i].tool[0] != 52 &&
  13627. a[i].tool[0] != 69
  13628. ) {
  13629. if (
  13630. c.indexOf(
  13631. b[j].content
  13632. .split(".")
  13633. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13634. ) != -1 &&
  13635. a[i].tool[0] == 16 &&
  13636. b[j].atool != 50
  13637. ) {
  13638. this.workStudent[i].push({
  13639. works: b[j].content,
  13640. sName: b[j].name,
  13641. score: b[j].score,
  13642. img: b[j].img,
  13643. type: 1,
  13644. time: b[j].time,
  13645. userid: b[j].userid,
  13646. wid: b[j].id,
  13647. });
  13648. } else if (
  13649. y.indexOf(
  13650. b[j].content
  13651. .split(".")
  13652. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13653. ) != -1 &&
  13654. a[i].tool[0] == 16 &&
  13655. b[j].atool != 50
  13656. ) {
  13657. this.workStudent[i].push({
  13658. userid: b[j].userid,
  13659. wid: b[j].id,
  13660. works: b[j].content,
  13661. sName: b[j].name,
  13662. score: b[j].score,
  13663. img: b[j].img,
  13664. type: 3,
  13665. time: b[j].time,
  13666. });
  13667. } else if (b[j].type == 6 && b[j].atool != 50) {
  13668. this.workStudent[i].push({
  13669. userid: b[j].userid,
  13670. wid: b[j].id,
  13671. works: b[j].content,
  13672. sName: b[j].name,
  13673. score: b[j].score,
  13674. img: b[j].img,
  13675. type: 4,
  13676. time: b[j].time,
  13677. });
  13678. } else if (b[j].type == 7 && b[j].atool != 50) {
  13679. this.workStudent[i].push({
  13680. userid: b[j].userid,
  13681. wid: b[j].id,
  13682. works: b[j].content,
  13683. sName: b[j].name,
  13684. score: b[j].score,
  13685. img: b[j].img,
  13686. type: 5,
  13687. time: b[j].time,
  13688. });
  13689. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13690. this.workStudent[i].push({
  13691. works: b[j].content,
  13692. sName: b[j].name,
  13693. score: b[j].score,
  13694. img: b[j].img,
  13695. type: 12,
  13696. time: b[j].time,
  13697. userid: b[j].userid,
  13698. wid: b[j].id,
  13699. });
  13700. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13701. this.workStudent[i].push({
  13702. works: b[j].content,
  13703. sName: b[j].name,
  13704. score: b[j].score,
  13705. img: b[j].img,
  13706. type: 0,
  13707. time: b[j].time,
  13708. userid: b[j].userid,
  13709. wid: b[j].id,
  13710. });
  13711. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13712. this.workStudent[i].push({
  13713. works: b[j].content,
  13714. sName: b[j].name,
  13715. score: b[j].score,
  13716. img: b[j].img,
  13717. type: 0,
  13718. time: b[j].time,
  13719. userid: b[j].userid,
  13720. wid: b[j].id,
  13721. });
  13722. }
  13723. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13724. this.workStudent[i].push({
  13725. works: b[j].content,
  13726. sName: b[j].name,
  13727. score: b[j].score,
  13728. img: b[j].img,
  13729. type: 2,
  13730. time: b[j].time,
  13731. userid: b[j].userid,
  13732. wid: b[j].id,
  13733. });
  13734. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13735. //问卷
  13736. this.workStudent[i].push({
  13737. works: b[j].content,
  13738. sName: b[j].name,
  13739. score: b[j].score,
  13740. img: b[j].img,
  13741. type: 2,
  13742. time: b[j].time,
  13743. userid: b[j].userid,
  13744. wid: b[j].id,
  13745. });
  13746. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13747. //选择题
  13748. this.workStudent[i].push({
  13749. works: b[j].content,
  13750. sName: b[j].name,
  13751. score: b[j].score,
  13752. img: b[j].img,
  13753. type: 8,
  13754. time: b[j].time,
  13755. userid: b[j].userid,
  13756. wid: b[j].id,
  13757. });
  13758. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13759. //选择题
  13760. this.workStudent[i].push({
  13761. works: b[j].content,
  13762. sName: b[j].name,
  13763. score: b[j].score,
  13764. img: b[j].img,
  13765. type: 9,
  13766. time: b[j].time,
  13767. userid: b[j].userid,
  13768. wid: b[j].id,
  13769. });
  13770. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13771. //选择题
  13772. this.workStudent[i].push({
  13773. works: b[j].content,
  13774. sName: b[j].name,
  13775. score: b[j].score,
  13776. img: b[j].img,
  13777. type: 10,
  13778. time: b[j].time,
  13779. userid: b[j].userid,
  13780. wid: b[j].id,
  13781. });
  13782. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13783. //选择题
  13784. this.workStudent[i].push({
  13785. works: b[j].content,
  13786. sName: b[j].name,
  13787. score: b[j].score,
  13788. img: b[j].img,
  13789. type: 13,
  13790. time: b[j].time,
  13791. userid: b[j].userid,
  13792. wid: b[j].id,
  13793. });
  13794. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13795. //选择题
  13796. this.workStudent[i].push({
  13797. works: b[j].content,
  13798. sName: b[j].name,
  13799. score: b[j].score,
  13800. img: b[j].img,
  13801. type: 12,
  13802. time: b[j].time,
  13803. userid: b[j].userid,
  13804. wid: b[j].id,
  13805. });
  13806. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13807. //选择题
  13808. this.workStudent[i].push({
  13809. works: b[j].content,
  13810. sName: b[j].name,
  13811. score: b[j].score,
  13812. img: b[j].img,
  13813. type: 12,
  13814. time: b[j].time,
  13815. userid: b[j].userid,
  13816. wid: b[j].id,
  13817. });
  13818. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13819. //选择题
  13820. this.workStudent[i].push({
  13821. works: b[j].content,
  13822. sName: b[j].name,
  13823. score: b[j].score,
  13824. img: b[j].img,
  13825. type: 15,
  13826. time: b[j].time,
  13827. userid: b[j].userid,
  13828. wid: b[j].id,
  13829. });
  13830. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13831. //英语写作
  13832. this.workStudent[i].push({
  13833. works: b[j].content,
  13834. sName: b[j].name,
  13835. score: b[j].score,
  13836. img: b[j].img,
  13837. type: 16,
  13838. time: b[j].time,
  13839. userid: b[j].userid,
  13840. wid: b[j].id,
  13841. aiCode: b[j].aiCode,
  13842. teacherCode: b[j].teacherCode
  13843. });
  13844. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  13845. //英语口语
  13846. this.workStudent[i].push({
  13847. works: b[j].content,
  13848. sName: b[j].name,
  13849. score: b[j].score,
  13850. img: b[j].img,
  13851. type: 17,
  13852. time: b[j].time,
  13853. userid: b[j].userid,
  13854. wid: b[j].id,
  13855. });
  13856. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  13857. //英语口语
  13858. this.workStudent[i].push({
  13859. works: b[j].content,
  13860. sName: b[j].name,
  13861. score: b[j].score,
  13862. img: b[j].img,
  13863. type: 14,
  13864. time: b[j].time,
  13865. userid: b[j].userid,
  13866. wid: b[j].id,
  13867. });
  13868. }
  13869. }
  13870. }
  13871. }
  13872. })
  13873. .catch((err) => {
  13874. console.error(err);
  13875. });
  13876. },
  13877. openVideo(w) {
  13878. this.videoDetail = {};
  13879. this.playerOptions1.sources[0].src = w.works;
  13880. this.videoDetail = this.playerOptions1;
  13881. this.videoVisible = true;
  13882. },
  13883. isLikes(wid, uid, t, c, isLikes) {
  13884. if (isLikes == false) {
  13885. let params = [
  13886. {
  13887. wid: wid,
  13888. lid: uid,
  13889. t: t,
  13890. c: c,
  13891. },
  13892. ];
  13893. this.ajax
  13894. .post(this.$store.state.api + "insertComment", params)
  13895. .then((res) => {
  13896. this.$message({
  13897. message: "点赞成功",
  13898. type: "success",
  13899. });
  13900. this.selectSWorks();
  13901. this.selectStudent();
  13902. })
  13903. .catch((err) => {
  13904. this.$message.error("点赞失败");
  13905. console.error(err);
  13906. });
  13907. } else {
  13908. let params = {
  13909. wid: wid,
  13910. lid: uid,
  13911. type: t,
  13912. };
  13913. this.ajax
  13914. .get(this.$store.state.api + "deleteComment", params)
  13915. .then((res) => {
  13916. this.$message({
  13917. message: "取消点赞成功",
  13918. type: "success",
  13919. });
  13920. this.selectSWorks();
  13921. this.selectStudent();
  13922. })
  13923. .catch((err) => {
  13924. console.error(err);
  13925. });
  13926. }
  13927. },
  13928. deleteComment(wid) {
  13929. this.$confirm("确定删除此评论吗?", "提示", {
  13930. confirmButtonText: "确定",
  13931. cancelButtonText: "取消",
  13932. type: "warning",
  13933. })
  13934. .then(() => {
  13935. let params = {
  13936. id: wid,
  13937. };
  13938. this.ajax
  13939. .get(this.$store.state.api + "deleteComment2", params)
  13940. .then((res) => {
  13941. this.$message({
  13942. message: "删除评论成功",
  13943. type: "success",
  13944. });
  13945. this.selectSWorks();
  13946. this.selectStudent();
  13947. })
  13948. .catch((err) => {
  13949. console.error(err);
  13950. });
  13951. })
  13952. .catch(() => {});
  13953. },
  13954. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  13955. this.commentIndexJson = {
  13956. toolIndex: toolIndex,
  13957. wIndex: wIndex,
  13958. gindex: gindex,
  13959. gid: gid,
  13960. };
  13961. this.commentDetail = [];
  13962. this.commentDialogVisible = true;
  13963. this.commentDetail = w;
  13964. if (w.works && w.type == 1) {
  13965. // this.pptImgUrl = "";
  13966. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13967. if (
  13968. a.indexOf(
  13969. w.works
  13970. .split(".")
  13971. [w.works.split(".").length - 1].toLocaleUpperCase()
  13972. ) != -1
  13973. ) {
  13974. let _uuurl = await this.checkLink(w.works);
  13975. this.pptImgUrl =
  13976. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  13977. this.showPDF = false;
  13978. } else if (
  13979. w.works
  13980. .split(".")
  13981. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13982. ) {
  13983. this.pptImgUrl = w.works;
  13984. this.showPDF = true;
  13985. }
  13986. } else if (w.works && w.type == 3) {
  13987. this.videoDetail = {};
  13988. this.playerOptions1.sources[0].src = w.works;
  13989. this.videoDetail = this.playerOptions1;
  13990. // this.videoVisible = true;
  13991. } else if (w.works && w.type == 4) {
  13992. this.eScore = JSON.parse(w.works);
  13993. this.rateJson =
  13994. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13995. this.taskCount
  13996. ].toolChoose[toolIndex].rateJson;
  13997. } else if (w.works && w.type == 10) {
  13998. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13999. } else if (w.works && w.type == 13) {
  14000. this.wordJson =
  14001. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14002. this.taskCount
  14003. ].toolChoose[toolIndex].wordJson;
  14004. }
  14005. },
  14006. async openScore(w, index) {
  14007. this.wScore = 0;
  14008. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14009. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14010. this.commentDetail = [];
  14011. if(w.type == 17){
  14012. this.dialogVisibleENScore = true;
  14013. }else{
  14014. this.dialogVisibleScore = true;
  14015. }
  14016. this.commentDetail = w;
  14017. if (w.works && w.type == 1) {
  14018. this.pptImgUrl = "";
  14019. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14020. if (
  14021. a.indexOf(
  14022. w.works
  14023. .split(".")
  14024. [w.works.split(".").length - 1].toLocaleUpperCase()
  14025. ) != -1
  14026. ) {
  14027. let _uuurl = await this.checkLink(w.works);
  14028. this.pptImgUrl =
  14029. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14030. this.showPDF = false;
  14031. } else if (
  14032. w.works
  14033. .split(".")
  14034. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14035. ) {
  14036. this.pptImgUrl = w.works;
  14037. this.showPDF = true;
  14038. }
  14039. } else if (w.works && w.type == 3) {
  14040. this.videoDetail = {};
  14041. this.playerOptions1.sources[0].src = w.works;
  14042. this.videoDetail = this.playerOptions1;
  14043. }else if(w.type == 17){
  14044. let englishVoiceJson = {}
  14045. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14046. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14047. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14048. .toolChoose[index].englishVoiceJson
  14049. : {};
  14050. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14051. }
  14052. },
  14053. addComment(wid, uid, t) {
  14054. if (this.commentText == "") {
  14055. this.$message.error("请输入评论");
  14056. return;
  14057. }
  14058. let params2 = [
  14059. {
  14060. wid: wid,
  14061. lid: uid,
  14062. t: t,
  14063. },
  14064. ];
  14065. this.ajax
  14066. .post(this.$store.state.api + "getComment", params2)
  14067. .then((res) => {
  14068. if (res.data[0].length > 0) {
  14069. this.$message.error("一个作业只能评论一条");
  14070. } else {
  14071. let params = [
  14072. {
  14073. wid: wid,
  14074. lid: uid,
  14075. t: t,
  14076. c: this.commentText,
  14077. },
  14078. ];
  14079. this.ajax
  14080. .post(this.$store.state.api + "insertComment", params)
  14081. .then((res) => {
  14082. this.$message({
  14083. message: "评论成功",
  14084. type: "success",
  14085. });
  14086. this.commentText = "";
  14087. this.selectSWorks();
  14088. this.selectStudent();
  14089. })
  14090. .catch((err) => {
  14091. this.$message.error("评论失败");
  14092. console.error(err);
  14093. });
  14094. }
  14095. })
  14096. .catch((err) => {
  14097. // this.$message.error("评论失败");
  14098. console.error(err);
  14099. });
  14100. },
  14101. scoreWork(wid) {
  14102. if (this.wScore == 0) {
  14103. this.$message.error("请评分");
  14104. return;
  14105. }
  14106. let params = [
  14107. {
  14108. wid: wid,
  14109. score: JSON.stringify({
  14110. wScore: this.wScore,
  14111. detail: this.scoreDetail,
  14112. }),
  14113. },
  14114. ];
  14115. this.ajax
  14116. .post(this.$store.state.api + "scoreWork", params)
  14117. .then((res) => {
  14118. this.$message({
  14119. message: "评分成功",
  14120. type: "success",
  14121. });
  14122. this.wScore = 0;
  14123. this.scoreDetail = "";
  14124. this.dialogVisibleScore = false;
  14125. this.selectSWorks();
  14126. this.selectStudent();
  14127. })
  14128. .catch((err) => {
  14129. this.$message.error("评分失败");
  14130. console.error(err);
  14131. });
  14132. },
  14133. openXz(w, i) {
  14134. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14135. .taskJson[this.taskCount].toolChoose[i].selectJson
  14136. ? JSON.parse(
  14137. JSON.stringify(
  14138. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14139. this.taskCount
  14140. ].toolChoose[i].selectJson
  14141. )
  14142. )
  14143. : { url: "", select: [], answer: [] };
  14144. var a = w.works.split(",");
  14145. for (var k = 0; k < a.length; k++) {
  14146. a[k] = parseInt(a[k]);
  14147. }
  14148. this.selectAnswer = { answer: a, stu: w.sName };
  14149. this.isSelect = true;
  14150. this.dialogVisibleSelect = true;
  14151. },
  14152. openSen(w, i) {
  14153. this.sentenceList1 = JSON.parse(w.works);
  14154. this.sentenceList1.stuName = w.sName;
  14155. this.dialogVisibleSentence1 = true;
  14156. },
  14157. openPj(w, toolindex) {
  14158. this.isStar = true;
  14159. this.eScore = JSON.parse(w);
  14160. this.rateJson =
  14161. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14162. this.taskCount
  14163. ].toolChoose[toolindex].rateJson;
  14164. this.studentEvalDialogVisible = true;
  14165. },
  14166. openEnglishEva(id,i){
  14167. let params = {
  14168. wid: id
  14169. };
  14170. this.ajax
  14171. .get(this.$store.state.api + "selectEngWork", params)
  14172. .then((res) => {
  14173. this.evaEngJson.message = res.data[0][0];
  14174. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14175. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14176. .toolChoose[i].englishList;
  14177. this.engEvaDialogVisible = true;
  14178. })
  14179. .catch((err) => {
  14180. console.error(err);
  14181. });
  14182. },
  14183. deleteWorks(id) {
  14184. this.$confirm("确定删除此作业吗?", "提示", {
  14185. confirmButtonText: "确定",
  14186. cancelButtonText: "取消",
  14187. type: "warning",
  14188. })
  14189. .then(() => {
  14190. let params = [
  14191. {
  14192. id: id,
  14193. },
  14194. ];
  14195. this.ajax
  14196. .post(this.$store.state.api + "deleteCourseWork", params)
  14197. .then((res) => {
  14198. this.$message({
  14199. message: "删除成功",
  14200. type: "success",
  14201. });
  14202. this.selectStudent();
  14203. this.selectSWorks();
  14204. this.selectSLook();
  14205. })
  14206. .catch((err) => {
  14207. this.$message.error("网络异常");
  14208. console.error(err);
  14209. });
  14210. })
  14211. .catch(() => {});
  14212. },
  14213. selectSWorks(gindex) {
  14214. //教师查看全部作业
  14215. let params = {
  14216. cid: this.id,
  14217. s: this.courseType,
  14218. t: this.taskCount,
  14219. };
  14220. this.ajax
  14221. .get(this.$store.state.api + "selectSWorks", params)
  14222. .then((res) => {
  14223. var a =
  14224. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14225. this.taskCount
  14226. ].toolChoose;
  14227. var b = res.data[0];
  14228. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14229. var y = [
  14230. "AVI",
  14231. "NAVI",
  14232. "MPEG",
  14233. "ASF",
  14234. "MOV",
  14235. "WMV",
  14236. "3GP",
  14237. "RM",
  14238. "RMVB",
  14239. "FLV",
  14240. "F4V",
  14241. "H.264",
  14242. "H.265",
  14243. "REAL VIDEO",
  14244. "MKV",
  14245. "WebM",
  14246. "HDDVD",
  14247. "MP4",
  14248. "MPG",
  14249. "M4V",
  14250. "MGV",
  14251. "OGV",
  14252. "QTM",
  14253. "STR",
  14254. "AMC",
  14255. "DVX",
  14256. "EVO",
  14257. "DAT",
  14258. "OGG",
  14259. "OGM",
  14260. ];
  14261. var d = res.data[1];
  14262. var e = res.data[2];
  14263. var f = res.data[3];
  14264. let _worksStudent = [];
  14265. var _worksStudent2 = [];
  14266. for (var i = 0; i < a.length; i++) {
  14267. _worksStudent[i] = [];
  14268. _worksStudent2[i] = [];
  14269. if (
  14270. !this.isCloseList[i] ||
  14271. this.isCloseList[i].isClose == undefined
  14272. ) {
  14273. this.isCloseList[i] = { isClose: 0 };
  14274. }
  14275. this.groupStudent[i] = [];
  14276. this.groupStudentUid[i] = [];
  14277. if (this.isGroup) {
  14278. for (
  14279. var groupI = 0;
  14280. groupI < this.courseGroup.group.length;
  14281. groupI++
  14282. ) {
  14283. this.courseGroup.group[groupI].works[i] = [];
  14284. }
  14285. }
  14286. this.isWorksS[i] = [];
  14287. this.checkJson[i] = [];
  14288. if (a[i].tool[0] == 49) {
  14289. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14290. this.groupStudent[i][gA] = [];
  14291. this.groupStudentUid[i][gA] = [];
  14292. _worksStudent[i][gA] = [];
  14293. _worksStudent2[i][gA] = [];
  14294. this.isCloseList[i][gA] = [];
  14295. // debugger
  14296. for (var g = 0; g < f.length; g++) {
  14297. if (
  14298. f[g].ttype == 2 &&
  14299. this.tcid &&
  14300. this.arrayToArray(
  14301. f[g].classid.split(","),
  14302. this.tcid.split(",")
  14303. ).length == 0
  14304. ) {
  14305. continue;
  14306. }
  14307. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14308. f[g].classid.split(","),
  14309. this.tcid.split(",")
  14310. ).length !== 0 || this.arrayToArray(
  14311. f[g].classid.split(","),
  14312. this.classId ? this.classId.split(",") : []
  14313. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14314. this.groupStudent[i][gA].push(f[g]);
  14315. this.groupStudentUid[i][gA].push(f[g].userid);
  14316. }
  14317. }
  14318. }
  14319. this.$forceUpdate();
  14320. }
  14321. for (var j = 0; j < b.length; j++) {
  14322. if (
  14323. b[j].ttype == 2 &&
  14324. this.tcid &&
  14325. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14326. .length == 0
  14327. ) {
  14328. continue;
  14329. }
  14330. var likesCount = 0;
  14331. var commentCount = 0;
  14332. var isLikes = false;
  14333. var commentJson = [];
  14334. var data = b[j];
  14335. if (i == b[j].tool) {
  14336. if (data.type == 2 && a[i].tool[0] == 4) {
  14337. // if(JSON.parse(data.content)[0].anwer){
  14338. var checkL =
  14339. JSON.parse(data.content)[0].anwer instanceof Array
  14340. ? JSON.parse(data.content)[0].anwer
  14341. : JSON.parse(data.content)[0].anwer.split(",");
  14342. for (var z = 0; z < checkL.length; z++) {
  14343. if (!this.checkJson[i][z]) {
  14344. this.checkJson[i].push({
  14345. checkCount: [],
  14346. checkPerson: [],
  14347. rightPerson: [],
  14348. });
  14349. }
  14350. if (!this.checkJson[i][z].checkCount.length) {
  14351. this.checkJson[i][z].checkCount = [];
  14352. let _askItemCount = JSON.parse(data.content)[0].askJson
  14353. .askJson[z].askItem;
  14354. for (var aic = 0; aic < _askItemCount; aic++) {
  14355. this.checkJson[i][z].checkCount.push(0);
  14356. }
  14357. }
  14358. if (checkL[z] instanceof Array) {
  14359. if (
  14360. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14361. checkL[z].sort().join(",")
  14362. ) {
  14363. this.checkJson[i][z].rightPerson.push(data.name);
  14364. }
  14365. for (var q = 0; q < checkL[z].length; q++) {
  14366. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14367. ? this.checkJson[i][z].checkPerson[
  14368. parseInt(checkL[z][q])
  14369. ].push(data.name)
  14370. : (this.checkJson[i][z].checkPerson[
  14371. parseInt(checkL[z][q])
  14372. ] = [data.name]);
  14373. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14374. ? this.checkJson[i][z].checkCount[
  14375. parseInt(checkL[z][q])
  14376. ]++
  14377. : (this.checkJson[i][z].checkCount[
  14378. parseInt(checkL[z][q])
  14379. ] = 1);
  14380. }
  14381. } else {
  14382. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14383. this.checkJson[i][z].rightPerson.push(data.name);
  14384. }
  14385. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14386. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14387. ? this.checkJson[i][z].checkPerson[
  14388. parseInt(checkL[z])
  14389. ].push(data.name)
  14390. : (this.checkJson[i][z].checkPerson[
  14391. parseInt(checkL[z])
  14392. ] = [data.name]);
  14393. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14394. ? this.checkJson[i][z].checkCount[
  14395. parseInt(checkL[z])
  14396. ]++
  14397. : (this.checkJson[i][z].checkCount[
  14398. parseInt(checkL[z])
  14399. ] = 1);
  14400. }
  14401. }
  14402. }
  14403. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14404. var checkL = JSON.parse(data.content)[0].anwer;
  14405. for (var z = 0; z < checkL.length; z++) {
  14406. if (!this.checkJson[i][z]) {
  14407. this.checkJson[i].push({
  14408. checkCount: [],
  14409. checkPerson: [],
  14410. rightPerson: [],
  14411. });
  14412. }
  14413. if (!this.checkJson[i][z].checkCount.length) {
  14414. this.checkJson[i][z].checkCount = [];
  14415. let _askItemCount = JSON.parse(data.content)[0].testJson
  14416. .testJson[z].testItem;
  14417. for (var aic = 0; aic < _askItemCount; aic++) {
  14418. this.checkJson[i][z].checkCount.push(0);
  14419. }
  14420. }
  14421. if (checkL[z] instanceof Array) {
  14422. if (
  14423. JSON.parse(data.content)[0]
  14424. .testJson.testJson[z].answer.sort()
  14425. .join(",") == checkL[z].sort().join(",")
  14426. ) {
  14427. this.checkJson[i][z].rightPerson.push(data.name);
  14428. }
  14429. for (var q = 0; q < checkL[z].length; q++) {
  14430. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14431. ? this.checkJson[i][z].checkPerson[
  14432. parseInt(checkL[z][q])
  14433. ].push(data.name)
  14434. : (this.checkJson[i][z].checkPerson[
  14435. parseInt(checkL[z][q])
  14436. ] = [data.name]);
  14437. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14438. ? this.checkJson[i][z].checkCount[
  14439. parseInt(checkL[z][q])
  14440. ]++
  14441. : (this.checkJson[i][z].checkCount[
  14442. parseInt(checkL[z][q])
  14443. ] = 1);
  14444. }
  14445. } else {
  14446. if (
  14447. JSON.parse(data.content)[0].testJson.testJson[z]
  14448. .answer == checkL[z]
  14449. ) {
  14450. this.checkJson[i][z].rightPerson.push(data.name);
  14451. }
  14452. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14453. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14454. ? this.checkJson[i][z].checkPerson[
  14455. parseInt(checkL[z])
  14456. ].push(data.name)
  14457. : (this.checkJson[i][z].checkPerson[
  14458. parseInt(checkL[z])
  14459. ] = [data.name]);
  14460. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14461. ? this.checkJson[i][z].checkCount[
  14462. parseInt(checkL[z])
  14463. ]++
  14464. : (this.checkJson[i][z].checkCount[
  14465. parseInt(checkL[z])
  14466. ] = 1);
  14467. }
  14468. }
  14469. }
  14470. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14471. var checkL = JSON.parse(data.content);
  14472. for (var z = 0; z < checkL.length; z++) {
  14473. if (!this.checkJson[i][z]) {
  14474. this.checkJson[i].push({
  14475. checkCount: [],
  14476. checkPerson: [],
  14477. rightPerson: [],
  14478. });
  14479. }
  14480. this.checkJson[i][z].checkPerson.push(data.name);
  14481. if (
  14482. checkL[z].chooseSenList.toString() ==
  14483. checkL[z].rightAnswer.toString()
  14484. ) {
  14485. this.checkJson[i][z].rightPerson.push(data.name);
  14486. }
  14487. }
  14488. }
  14489. for (var k = 0; k < d.length; k++) {
  14490. //点赞
  14491. if (d[k].workId == b[j].id) {
  14492. likesCount++;
  14493. if (d[k].likesId == this.userid) {
  14494. isLikes = true;
  14495. }
  14496. }
  14497. }
  14498. for (var l = 0; l < e.length; l++) {
  14499. //评论
  14500. if (e[l].workId == b[j].id) {
  14501. if (e[l].comment != "") {
  14502. commentCount++;
  14503. commentJson.push({
  14504. commentText: e[l].comment,
  14505. commentTime: e[l].commentTime,
  14506. commentPeople: e[l].commentPeople,
  14507. userid: e[l].userid,
  14508. wid: e[l].id,
  14509. });
  14510. }
  14511. }
  14512. }
  14513. if (
  14514. (b[j].type == 1 ||
  14515. b[j].type == 4 ||
  14516. b[j].type == 5 ||
  14517. b[j].type == 6 ||
  14518. b[j].type == 12 ||
  14519. b[j].type == 7) &&
  14520. a[i].tool[0] != 15 &&
  14521. a[i].tool[0] != 4 &&
  14522. a[i].tool[0] != 45 &&
  14523. a[i].tool[0] != 50 &&
  14524. a[i].tool[0] != 32 &&
  14525. a[i].tool[0] != 57 &&
  14526. a[i].tool[0] != 52
  14527. ) {
  14528. if (
  14529. c.indexOf(
  14530. b[j].content
  14531. .split(".")
  14532. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14533. ) != -1 &&
  14534. a[i].tool[0] == 16 &&
  14535. b[j].atool != 50
  14536. ) {
  14537. let _works = {
  14538. userid: b[j].userid,
  14539. ateacher: b[j].ateacher,
  14540. wid: b[j].id,
  14541. works: b[j].content,
  14542. sName: b[j].name,
  14543. type: 1,
  14544. time: b[j].time,
  14545. score: b[j].score,
  14546. img: b[j].img,
  14547. likesCount: likesCount,
  14548. commentCount: commentCount,
  14549. isLikes: isLikes,
  14550. commentJson: commentJson,
  14551. };
  14552. if (this.isGroup) {
  14553. let isGw = 1;
  14554. for (
  14555. var groupI = 0;
  14556. groupI < this.courseGroup.group.length;
  14557. groupI++
  14558. ) {
  14559. let gid = this.courseGroup.group[groupI].id;
  14560. if (
  14561. this.courseGroupStudentUid[gid].indexOf(
  14562. b[j].userid
  14563. ) != -1
  14564. ) {
  14565. isGw = 2;
  14566. this.courseGroup.group[groupI].works[i].push(_works);
  14567. break;
  14568. }
  14569. }
  14570. if (isGw == 1) {
  14571. _worksStudent[i].push(_works);
  14572. }
  14573. } else {
  14574. _worksStudent[i].push(_works);
  14575. }
  14576. _worksStudent2[i].push(_works);
  14577. this.isWorksS[i].push({
  14578. uid: b[j].userid,
  14579. sName: b[j].name,
  14580. });
  14581. } else if (
  14582. y.indexOf(
  14583. b[j].content
  14584. .split(".")
  14585. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14586. ) != -1 &&
  14587. a[i].tool[0] == 16 &&
  14588. b[j].atool != 50
  14589. ) {
  14590. let _works = {
  14591. userid: b[j].userid,
  14592. ateacher: b[j].ateacher,
  14593. wid: b[j].id,
  14594. works: b[j].content,
  14595. sName: b[j].name,
  14596. type: 3,
  14597. time: b[j].time,
  14598. score: b[j].score,
  14599. img: b[j].img,
  14600. likesCount: likesCount,
  14601. commentCount: commentCount,
  14602. isLikes: isLikes,
  14603. commentJson: commentJson,
  14604. };
  14605. if (this.isGroup) {
  14606. let isGw = 1;
  14607. for (
  14608. var groupI = 0;
  14609. groupI < this.courseGroup.group.length;
  14610. groupI++
  14611. ) {
  14612. let gid = this.courseGroup.group[groupI].id;
  14613. if (
  14614. this.courseGroupStudentUid[gid].indexOf(
  14615. b[j].userid
  14616. ) != -1
  14617. ) {
  14618. isGw = 2;
  14619. this.courseGroup.group[groupI].works[i].push(_works);
  14620. break;
  14621. }
  14622. }
  14623. if (isGw == 1) {
  14624. _worksStudent[i].push(_works);
  14625. }
  14626. } else {
  14627. _worksStudent[i].push(_works);
  14628. }
  14629. _worksStudent2[i].push(_works);
  14630. this.isWorksS[i].push({
  14631. uid: b[j].userid,
  14632. sName: b[j].name,
  14633. });
  14634. } else if (b[j].type == 6 && b[j].atool != 50) {
  14635. let _works = {
  14636. userid: b[j].userid,
  14637. ateacher: b[j].ateacher,
  14638. wid: b[j].id,
  14639. works: b[j].content,
  14640. sName: b[j].name,
  14641. type: 4,
  14642. time: b[j].time,
  14643. score: b[j].score,
  14644. img: b[j].img,
  14645. likesCount: likesCount,
  14646. commentCount: commentCount,
  14647. isLikes: isLikes,
  14648. commentJson: commentJson,
  14649. };
  14650. _worksStudent[i].push(_works);
  14651. _worksStudent2[i].push(_works);
  14652. this.isWorksS[i].push({
  14653. uid: b[j].userid,
  14654. sName: b[j].name,
  14655. });
  14656. } else if (b[j].type == 7 && b[j].atool != 50) {
  14657. let _work = {
  14658. userid: b[j].userid,
  14659. ateacher: b[j].ateacher,
  14660. wid: b[j].id,
  14661. works: b[j].content,
  14662. sName: b[j].name,
  14663. type: 5,
  14664. time: b[j].time,
  14665. score: b[j].score,
  14666. img: b[j].img,
  14667. likesCount: likesCount,
  14668. commentCount: commentCount,
  14669. isLikes: isLikes,
  14670. commentJson: commentJson,
  14671. };
  14672. _worksStudent[i].push(_work);
  14673. _worksStudent2[i].push(_work);
  14674. this.isWorksS[i].push({
  14675. uid: b[j].userid,
  14676. sName: b[j].name,
  14677. });
  14678. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14679. let _works = {
  14680. userid: b[j].userid,
  14681. ateacher: b[j].ateacher,
  14682. wid: b[j].id,
  14683. works: b[j].content,
  14684. sName: b[j].name,
  14685. type: 12,
  14686. time: b[j].time,
  14687. score: b[j].score,
  14688. img: b[j].img,
  14689. likesCount: likesCount,
  14690. commentCount: commentCount,
  14691. isLikes: isLikes,
  14692. commentJson: commentJson,
  14693. };
  14694. if (this.isGroup) {
  14695. let isGw = 1;
  14696. for (
  14697. var groupI = 0;
  14698. groupI < this.courseGroup.group.length;
  14699. groupI++
  14700. ) {
  14701. let gid = this.courseGroup.group[groupI].id;
  14702. if (
  14703. this.courseGroupStudentUid[gid].indexOf(
  14704. b[j].userid
  14705. ) != -1
  14706. ) {
  14707. isGw = 2;
  14708. this.courseGroup.group[groupI].works[i].push(_works);
  14709. break;
  14710. }
  14711. }
  14712. if (isGw == 1) {
  14713. _worksStudent[i].push(_works);
  14714. }
  14715. } else {
  14716. _worksStudent[i].push(_works);
  14717. }
  14718. _worksStudent2[i].push(_works);
  14719. this.isWorksS[i].push({
  14720. uid: b[j].userid,
  14721. sName: b[j].name,
  14722. });
  14723. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14724. let _works = {
  14725. userid: b[j].userid,
  14726. ateacher: b[j].ateacher,
  14727. wid: b[j].id,
  14728. works: b[j].content,
  14729. sName: b[j].name,
  14730. type: 0,
  14731. time: b[j].time,
  14732. score: b[j].score,
  14733. img: b[j].img,
  14734. likesCount: likesCount,
  14735. commentCount: commentCount,
  14736. isLikes: isLikes,
  14737. commentJson: commentJson,
  14738. };
  14739. if (this.isGroup) {
  14740. let isGw = 1;
  14741. for (
  14742. var groupI = 0;
  14743. groupI < this.courseGroup.group.length;
  14744. groupI++
  14745. ) {
  14746. let gid = this.courseGroup.group[groupI].id;
  14747. if (
  14748. this.courseGroupStudentUid[gid].indexOf(
  14749. b[j].userid
  14750. ) != -1
  14751. ) {
  14752. isGw = 2;
  14753. this.courseGroup.group[groupI].works[i].push(_works);
  14754. break;
  14755. }
  14756. }
  14757. if (isGw == 1) {
  14758. _worksStudent[i].push(_works);
  14759. }
  14760. } else {
  14761. _worksStudent[i].push(_works);
  14762. }
  14763. _worksStudent2[i].push(_works);
  14764. this.isWorksS[i].push({
  14765. uid: b[j].userid,
  14766. sName: b[j].name,
  14767. });
  14768. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14769. let _works = {
  14770. userid: b[j].userid,
  14771. ateacher: b[j].ateacher,
  14772. wid: b[j].id,
  14773. works: b[j].content,
  14774. sName: b[j].name,
  14775. type: 0,
  14776. time: b[j].time,
  14777. score: b[j].score,
  14778. img: b[j].img,
  14779. likesCount: likesCount,
  14780. commentCount: commentCount,
  14781. isLikes: isLikes,
  14782. commentJson: commentJson,
  14783. };
  14784. if (this.isGroup) {
  14785. let isGw = 1;
  14786. for (
  14787. var groupI = 0;
  14788. groupI < this.courseGroup.group.length;
  14789. groupI++
  14790. ) {
  14791. let gid = this.courseGroup.group[groupI].id;
  14792. if (
  14793. this.courseGroupStudentUid[gid].indexOf(
  14794. b[j].userid
  14795. ) != -1
  14796. ) {
  14797. isGw = 2;
  14798. this.courseGroup.group[groupI].works[i].push(_works);
  14799. break;
  14800. }
  14801. }
  14802. if (isGw == 1) {
  14803. _worksStudent[i].push(_works);
  14804. }
  14805. } else {
  14806. _worksStudent[i].push(_works);
  14807. }
  14808. _worksStudent2[i].push(_works);
  14809. this.isWorksS[i].push({
  14810. uid: b[j].userid,
  14811. sName: b[j].name,
  14812. });
  14813. }
  14814. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14815. let _works = {
  14816. userid: b[j].userid,
  14817. ateacher: b[j].ateacher,
  14818. wid: b[j].id,
  14819. works: b[j].content,
  14820. sName: b[j].name,
  14821. type: 2,
  14822. time: b[j].time,
  14823. score: b[j].score,
  14824. img: b[j].img,
  14825. likesCount: likesCount,
  14826. commentCount: commentCount,
  14827. isLikes: isLikes,
  14828. commentJson: commentJson,
  14829. };
  14830. if (this.isGroup) {
  14831. let isGw = 1;
  14832. for (
  14833. var groupI = 0;
  14834. groupI < this.courseGroup.group.length;
  14835. groupI++
  14836. ) {
  14837. let gid = this.courseGroup.group[groupI].id;
  14838. if (
  14839. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14840. -1
  14841. ) {
  14842. isGw = 2;
  14843. this.courseGroup.group[groupI].works[i].push(_works);
  14844. break;
  14845. }
  14846. }
  14847. if (isGw == 1) {
  14848. _worksStudent[i].push(_works);
  14849. }
  14850. } else {
  14851. _worksStudent[i].push(_works);
  14852. }
  14853. _worksStudent2[i].push(_works);
  14854. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14855. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14856. //问卷
  14857. let _work = {
  14858. userid: b[j].userid,
  14859. ateacher: b[j].ateacher,
  14860. wid: b[j].id,
  14861. works: b[j].content,
  14862. sName: b[j].name,
  14863. type: 2,
  14864. time: b[j].time,
  14865. score: b[j].score,
  14866. img: b[j].img,
  14867. likesCount: likesCount,
  14868. commentCount: commentCount,
  14869. isLikes: isLikes,
  14870. commentJson: commentJson,
  14871. };
  14872. _worksStudent[i].push(_work);
  14873. _worksStudent2[i].push(_work);
  14874. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14875. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14876. //选择题
  14877. let _work = {
  14878. userid: b[j].userid,
  14879. ateacher: b[j].ateacher,
  14880. wid: b[j].id,
  14881. works: b[j].content,
  14882. sName: b[j].name,
  14883. type: 8,
  14884. time: b[j].time,
  14885. score: b[j].score,
  14886. img: b[j].img,
  14887. likesCount: likesCount,
  14888. commentCount: commentCount,
  14889. isLikes: isLikes,
  14890. commentJson: commentJson,
  14891. };
  14892. _worksStudent[i].push(_work);
  14893. _worksStudent2[i].push(_work);
  14894. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14895. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14896. //选择题
  14897. let _work = {
  14898. userid: b[j].userid,
  14899. ateacher: b[j].ateacher,
  14900. wid: b[j].id,
  14901. works: b[j].content,
  14902. sName: b[j].name,
  14903. type: 9,
  14904. time: b[j].time,
  14905. score: b[j].score,
  14906. img: b[j].img,
  14907. likesCount: likesCount,
  14908. commentCount: commentCount,
  14909. isLikes: isLikes,
  14910. commentJson: commentJson,
  14911. };
  14912. _worksStudent[i].push(_work);
  14913. _worksStudent2[i].push(_work);
  14914. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14915. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14916. //选择题
  14917. let _work = {
  14918. userid: b[j].userid,
  14919. ateacher: b[j].ateacher,
  14920. wid: b[j].id,
  14921. works: b[j].content,
  14922. sName: b[j].name,
  14923. type: 10,
  14924. time: b[j].time,
  14925. score: b[j].score,
  14926. img: b[j].img,
  14927. likesCount: likesCount,
  14928. commentCount: commentCount,
  14929. isLikes: isLikes,
  14930. commentJson: commentJson,
  14931. };
  14932. _worksStudent[i].push(_work);
  14933. _worksStudent2[i].push(_work);
  14934. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14935. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14936. //选择题
  14937. let _work = {
  14938. userid: b[j].userid,
  14939. ateacher: b[j].ateacher,
  14940. wid: b[j].id,
  14941. works: b[j].content,
  14942. sName: b[j].name,
  14943. type: 13,
  14944. time: b[j].time,
  14945. score: b[j].score,
  14946. img: b[j].img,
  14947. likesCount: likesCount,
  14948. commentCount: commentCount,
  14949. isLikes: isLikes,
  14950. commentJson: commentJson,
  14951. };
  14952. _worksStudent[i].push(_work);
  14953. _worksStudent2[i].push(_work);
  14954. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14955. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14956. //选择题
  14957. let _work = {
  14958. userid: b[j].userid,
  14959. ateacher: b[j].ateacher,
  14960. wid: b[j].id,
  14961. works: b[j].content,
  14962. sName: b[j].name,
  14963. type: 16,
  14964. time: b[j].time,
  14965. score: b[j].score,
  14966. img: b[j].img,
  14967. likesCount: likesCount,
  14968. commentCount: commentCount,
  14969. isLikes: isLikes,
  14970. commentJson: commentJson,
  14971. aiCode: b[j].aiCode,
  14972. teacherCode: b[j].teacherCode
  14973. };
  14974. _worksStudent[i].push(_work);
  14975. _worksStudent2[i].push(_work);
  14976. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14977. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14978. //英语口语
  14979. let _work = {
  14980. userid: b[j].userid,
  14981. ateacher: b[j].ateacher,
  14982. wid: b[j].id,
  14983. works: b[j].content,
  14984. sName: b[j].name,
  14985. type: 17,
  14986. time: b[j].time,
  14987. score: b[j].score,
  14988. img: b[j].img,
  14989. likesCount: likesCount,
  14990. commentCount: commentCount,
  14991. isLikes: isLikes,
  14992. commentJson: commentJson,
  14993. };
  14994. _worksStudent[i].push(_work);
  14995. _worksStudent2[i].push(_work);
  14996. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14997. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14998. //交互视频
  14999. let _work = {
  15000. userid: b[j].userid,
  15001. ateacher: b[j].ateacher,
  15002. wid: b[j].id,
  15003. works: b[j].content,
  15004. sName: b[j].name,
  15005. type: 14,
  15006. time: b[j].time,
  15007. score: b[j].score,
  15008. img: b[j].img,
  15009. likesCount: likesCount,
  15010. commentCount: commentCount,
  15011. isLikes: isLikes,
  15012. commentJson: commentJson,
  15013. };
  15014. _worksStudent[i].push(_work);
  15015. _worksStudent2[i].push(_work);
  15016. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15017. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15018. let _gindex = JSON.parse(b[j].content);
  15019. if (
  15020. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15021. b[j].userid
  15022. ) != -1
  15023. ) {
  15024. let _work = {
  15025. userid: b[j].userid,
  15026. ateacher: b[j].ateacher,
  15027. wid: b[j].id,
  15028. works: _gindex.url,
  15029. sName: b[j].name,
  15030. type: _gindex.type,
  15031. time: b[j].time,
  15032. score: b[j].score,
  15033. img: b[j].img,
  15034. likesCount: likesCount,
  15035. commentCount: commentCount,
  15036. isLikes: isLikes,
  15037. commentJson: commentJson,
  15038. };
  15039. _worksStudent[i][_gindex.groupIndex].push(_work);
  15040. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15041. }
  15042. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15043. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15044. let _work = {
  15045. userid: b[j].userid,
  15046. ateacher: b[j].ateacher,
  15047. wid: b[j].id,
  15048. works: b[j].content,
  15049. sName: b[j].name ? b[j].name : b[j].userid,
  15050. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15051. time: b[j].time,
  15052. score: b[j].score,
  15053. img: b[j].img,
  15054. likesCount: likesCount,
  15055. commentCount: commentCount,
  15056. isLikes: isLikes,
  15057. commentJson: commentJson,
  15058. };
  15059. _worksStudent[i].push(_work);
  15060. _worksStudent2[i].push(_work);
  15061. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15062. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15063. let _work = {
  15064. userid: b[j].userid,
  15065. ateacher: b[j].ateacher,
  15066. wid: b[j].id,
  15067. works: b[j].content,
  15068. sName: b[j].name ? b[j].name : b[j].userid,
  15069. type: 12,
  15070. time: b[j].time,
  15071. score: b[j].score,
  15072. img: b[j].img,
  15073. likesCount: likesCount,
  15074. commentCount: commentCount,
  15075. isLikes: isLikes,
  15076. commentJson: commentJson,
  15077. };
  15078. _worksStudent[i].push(_work);
  15079. _worksStudent2[i].push(_work);
  15080. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15081. } else if (
  15082. a[i].tool[0] == 57 &&
  15083. b[j].atool == 57 &&
  15084. b[j].type == 12
  15085. ) {
  15086. let _work = {
  15087. userid: b[j].userid,
  15088. ateacher: b[j].ateacher,
  15089. wid: b[j].id,
  15090. works: b[j].content,
  15091. sName: b[j].name ? b[j].name : b[j].userid,
  15092. type: 12,
  15093. time: b[j].time,
  15094. score: b[j].score,
  15095. img: b[j].img,
  15096. likesCount: likesCount,
  15097. commentCount: commentCount,
  15098. isLikes: isLikes,
  15099. commentJson: commentJson,
  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 (
  15105. a[i].tool[0] == 57 &&
  15106. b[j].atool == 57 &&
  15107. b[j].type == 15
  15108. ) {
  15109. let _work = {
  15110. userid: b[j].userid,
  15111. ateacher: b[j].ateacher,
  15112. wid: b[j].id,
  15113. works: b[j].content,
  15114. sName: b[j].name ? b[j].name : b[j].userid,
  15115. type: 15,
  15116. time: b[j].time,
  15117. score: b[j].score,
  15118. img: b[j].img,
  15119. likesCount: likesCount,
  15120. commentCount: commentCount,
  15121. isLikes: isLikes,
  15122. commentJson: commentJson,
  15123. };
  15124. _worksStudent[i].push(_work);
  15125. _worksStudent2[i].push(_work);
  15126. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15127. }
  15128. }
  15129. }
  15130. if (_worksStudent[i] && _worksStudent[i].length) {
  15131. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15132. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15133. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15134. var scoreA = parseFloat(jscoreA);
  15135. var scoreB = parseFloat(jscoreB);
  15136. if (scoreA == scoreB) {
  15137. return b.likesCount - a.likesCount;
  15138. }
  15139. return scoreB - scoreA;
  15140. });
  15141. if (this.isGroup) {
  15142. for (
  15143. var groupI = 0;
  15144. groupI < this.courseGroup.group.length;
  15145. groupI++
  15146. ) {
  15147. this.courseGroup.group[groupI].works[i] =
  15148. this.courseGroup.group[groupI].works[i].sort(function (
  15149. a,
  15150. b
  15151. ) {
  15152. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15153. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15154. var scoreA = parseFloat(jscoreA);
  15155. var scoreB = parseFloat(jscoreB);
  15156. if (scoreA == scoreB) {
  15157. return b.likesCount - a.likesCount;
  15158. }
  15159. return scoreB - scoreA;
  15160. });
  15161. }
  15162. }
  15163. }
  15164. }
  15165. this.timeWorkList = _worksStudent2;
  15166. for (var i = 0; i < a.length; i++) {
  15167. for (var j = 0; j < b.length; j++) {
  15168. var data = b[j];
  15169. if (i == b[j].tool) {
  15170. if (data.type == 2 || data.type == 8) {
  15171. for (var z = 0; z < this.checkJson[i].length; z++) {
  15172. this.checkJson[i][z].checkPerent = [];
  15173. this.checkJson[i][z].right = Math.round(
  15174. (this.checkJson[i][z].rightPerson.length /
  15175. parseInt(_worksStudent[i].length)) *
  15176. 100
  15177. );
  15178. let aaaa = this.checkJson[i][z];
  15179. for (
  15180. var k = 0;
  15181. k < this.checkJson[i][z].checkCount.length;
  15182. k++
  15183. ) {
  15184. this.checkJson[i][z].checkPerent.push(
  15185. Math.round(
  15186. (this.checkJson[i][z].checkCount[k] /
  15187. parseInt(_worksStudent[i].length)) *
  15188. 100
  15189. )
  15190. );
  15191. }
  15192. }
  15193. } else if (data.type == 9) {
  15194. for (var z = 0; z < this.checkJson[i].length; z++) {
  15195. this.checkJson[i][z].checkPerent = [];
  15196. this.checkJson[i][z].right = Math.round(
  15197. (this.checkJson[i][z].rightPerson.length /
  15198. this.checkJson[i][z].checkPerson.length) *
  15199. 100
  15200. );
  15201. }
  15202. }
  15203. }
  15204. }
  15205. }
  15206. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15207. this.joinGroup(gindex);
  15208. }
  15209. this.worksStudent = _worksStudent;
  15210. this.selectWorksStudent();
  15211. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15212. this.$nextTick(()=>{
  15213. setTimeout(()=>{
  15214. setTimeout(()=>{
  15215. this.panToolHeight('tool-'+ci);
  15216. }, 500)
  15217. }, 0)
  15218. })
  15219. }
  15220. })
  15221. .catch((err) => {
  15222. console.error(err);
  15223. });
  15224. },
  15225. pngToWhiteBg(file) {
  15226. const _file = file;
  15227. let read = new FileReader();
  15228. read.readAsDataURL(file); // 文件转base64
  15229. return new Promise((resolve, reject) => {
  15230. read.onload = (e) => {
  15231. let img = new Image();
  15232. img.src = e.target.result;
  15233. img.onload = async () => {
  15234. // 生成canvas
  15235. let canvas = document.createElement("canvas");
  15236. let context = canvas.getContext("2d");
  15237. // 绘制图片到canvas上
  15238. canvas.width = img.width;
  15239. canvas.height = img.height;
  15240. // 在canvas绘制前填充白色背景
  15241. context.fillStyle = "#fff";
  15242. context.fillRect(0, 0, canvas.width, canvas.height);
  15243. context.drawImage(img, 0, 0);
  15244. let base64 = canvas.toDataURL(file["type"], 1);
  15245. let newFile = this.dataUrlToFile(base64, _file);
  15246. resolve(newFile);
  15247. };
  15248. };
  15249. });
  15250. },
  15251. dataUrlToFile(dataurl, file) {
  15252. let arr = dataurl.split(","),
  15253. mime = arr[0].match(/:(.*?);/)[1],
  15254. bstr = atob(arr[1]),
  15255. n = bstr.length,
  15256. u8arr = new Uint8Array(n);
  15257. while (n--) {
  15258. u8arr[n] = bstr.charCodeAt(n);
  15259. }
  15260. // return new Blob([u8arr], { type: mime });
  15261. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15262. type: mime,
  15263. });
  15264. },
  15265. async beforeUpload1(event, type, i) {
  15266. // this.$message.success('进入上传')
  15267. var file = "";
  15268. if (type == 5) {
  15269. file = event;
  15270. } else {
  15271. file = event.target.files[0];
  15272. }
  15273. var credentials = {
  15274. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15275. secretAccessKey: "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",
  15276. }; //秘钥形式的登录上传
  15277. window.AWS.config.update(credentials);
  15278. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15279. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15280. var _this = this;
  15281. _this.progress = 0;
  15282. _this.proVisible = true;
  15283. _this.isFinishSize = 0;
  15284. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15285. var b = [
  15286. "DOC",
  15287. "DOCX",
  15288. "DOCM",
  15289. "DOTM",
  15290. "DOTX",
  15291. "PPTX",
  15292. "PPSX",
  15293. "PPT",
  15294. "PPS",
  15295. "PPTM",
  15296. "POTM",
  15297. "PPAM",
  15298. "POTX",
  15299. "PPSM",
  15300. ];
  15301. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15302. var photoA = [
  15303. "BMP",
  15304. "GIF",
  15305. "PNG",
  15306. "JPGE",
  15307. "JPEG",
  15308. "JPG",
  15309. "TIF",
  15310. "PCX",
  15311. "TGA",
  15312. "EXIF",
  15313. "FPX",
  15314. "SVG",
  15315. "APNG",
  15316. ];
  15317. // if (
  15318. // b.indexOf(
  15319. // file.name
  15320. // .split(".")
  15321. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15322. // ) != -1
  15323. // ) {
  15324. // if (file.size / 1024 / 1024 > 10) {
  15325. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15326. // return;
  15327. // }
  15328. // } else if (
  15329. // excelA.indexOf(
  15330. // file.name
  15331. // .split(".")
  15332. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15333. // ) != "-1"
  15334. // ) {
  15335. // if (file.size / 1024 / 1024 > 5) {
  15336. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15337. // return;
  15338. // }
  15339. // }
  15340. if (
  15341. photoA.indexOf(
  15342. file.name
  15343. .split(".")
  15344. [file.name.split(".").length - 1].toLocaleUpperCase()
  15345. ) != -1 &&
  15346. type != 4
  15347. ) {
  15348. // const blob = await imageConversion.compress(file, 0.8)
  15349. file = await this.pngToWhiteBg(file);
  15350. const blob = await imageConversion.compressAccurately(file, 256);
  15351. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15352. file = new File([blob], file.name, { type: file.type });
  15353. }
  15354. if (file) {
  15355. var params = {
  15356. Key:
  15357. file.name.split(".")[0] +
  15358. new Date().getTime() +
  15359. "." +
  15360. file.name.split(".")[file.name.split(".").length - 1],
  15361. ContentType: file.type,
  15362. Body: file,
  15363. "Access-Control-Allow-Credentials": "*",
  15364. ACL: "public-read",
  15365. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15366. var options = {
  15367. // partSize: 2048 * 1024 * 1024,
  15368. partSize: 1024 * 1024 * 1024,
  15369. queueSize: 2,
  15370. leavePartsOnError: true,
  15371. };
  15372. bucket
  15373. .upload(params, options)
  15374. .on("httpUploadProgress", function (evt) {
  15375. //这里可以写进度条
  15376. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15377. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15378. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15379. })
  15380. .send(function (err, data) {
  15381. _this.progress = 100;
  15382. _this.isFinishSize = _this.isAllSize;
  15383. setTimeout(() => {
  15384. _this.proVisible = false;
  15385. }, 1000);
  15386. if (err) {
  15387. var a = _this.$refs.upload1.uploadFiles;
  15388. a.splice(a.length - 1, a.length);
  15389. _this.$message.error("上传失败");
  15390. } else {
  15391. // _this.$message.success('上传成功')
  15392. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15393. var c = [
  15394. "AVI",
  15395. "NAVI",
  15396. "MPEG",
  15397. "ASF",
  15398. "MOV",
  15399. "WMV",
  15400. "3GP",
  15401. "RM",
  15402. "RMVB",
  15403. "FLV",
  15404. "F4V",
  15405. "H.264",
  15406. "H.265",
  15407. "REAL VIDEO",
  15408. "MKV",
  15409. "WebM",
  15410. "HDDVD",
  15411. "MP4",
  15412. "MPG",
  15413. "M4V",
  15414. "MGV",
  15415. "OGV",
  15416. "QTM",
  15417. "STR",
  15418. "AMC",
  15419. "DVX",
  15420. "EVO",
  15421. "DAT",
  15422. "OGG",
  15423. "OGM",
  15424. ];
  15425. if (type == 1) {
  15426. _this.studyJuri[0].cover.push({
  15427. name: file.name,
  15428. url: data.Location,
  15429. uid: file.uid,
  15430. });
  15431. if (
  15432. c.indexOf(
  15433. _this.studyJuri[0].cover[0].url
  15434. .split(".")
  15435. [
  15436. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15437. ].toLocaleUpperCase()
  15438. ) != -1
  15439. ) {
  15440. _this.fileType = 2;
  15441. } else if (
  15442. b.indexOf(
  15443. _this.studyJuri[0].cover[0].url
  15444. .split(".")
  15445. [
  15446. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15447. ].toLocaleUpperCase()
  15448. ) != -1
  15449. ) {
  15450. _this.fileType = 1;
  15451. } else if (
  15452. photoA.indexOf(
  15453. _this.studyJuri[0].cover[0].url
  15454. .split(".")
  15455. [
  15456. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15457. ].toLocaleUpperCase()
  15458. ) != -1
  15459. ) {
  15460. _this.fileType = 0;
  15461. } else {
  15462. _this.fileType = 3;
  15463. }
  15464. _this.imgChange(null, null, type);
  15465. } else if (type == 2) {
  15466. _this.upToolImg = data.Location;
  15467. _this.imgChange(null, null, type);
  15468. _this.addCourseWorks(i);
  15469. } else if (type == 4) {
  15470. _this.addPz("3", data.Location);
  15471. } else if (type == 5) {
  15472. _this.addImgDrawImG(data.Location);
  15473. } else if (type == 6) {
  15474. var _ftype = 1;
  15475. if (
  15476. c.indexOf(
  15477. data.Location.split(".")[
  15478. data.Location.split(".").length - 1
  15479. ].toLocaleUpperCase()
  15480. ) != -1
  15481. ) {
  15482. _ftype = 5;
  15483. } else if (
  15484. b.indexOf(
  15485. data.Location.split(".")[
  15486. data.Location.split(".").length - 1
  15487. ].toLocaleUpperCase()
  15488. ) != -1
  15489. ) {
  15490. _ftype = 4;
  15491. } else {
  15492. _ftype = 1;
  15493. }
  15494. _this.plworkFile.push({
  15495. name: file.name,
  15496. url: data.Location,
  15497. uid: file.uid,
  15498. fileType: _ftype,
  15499. username:
  15500. _this.plworkFile.length > 10
  15501. ? _this.plworkFile.length + 1
  15502. : "0" + (_this.plworkFile.length + 1),
  15503. });
  15504. } else if (type == 7) {
  15505. _this.addCourseWorksGong(i, data.Location, 32);
  15506. } else if (type == 8) {
  15507. _this.addCourseWorksGong(i, data.Location, 57);
  15508. }
  15509. _this.imgChange(null, null, type);
  15510. console.log(data.Location);
  15511. // _this.$message.success('上传成功'+data.Location)
  15512. }
  15513. });
  15514. }
  15515. },
  15516. async beforeUpload3(event, type, i) {
  15517. // this.$message.success('进入上传')
  15518. let file = "";
  15519. let cfindex2 = 0;
  15520. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15521. file = event.target.files[cfindex];
  15522. var credentials = {
  15523. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15524. secretAccessKey: "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",
  15525. }; //秘钥形式的登录上传
  15526. window.AWS.config.update(credentials);
  15527. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15528. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15529. var _this = this;
  15530. // _this.progress = 0;
  15531. _this.proVisible2 = true;
  15532. var b = [
  15533. "DOC",
  15534. "DOCX",
  15535. "DOCM",
  15536. "DOTM",
  15537. "DOTX",
  15538. "PPTX",
  15539. "PPSX",
  15540. "PPT",
  15541. "PPS",
  15542. "PPTM",
  15543. "POTM",
  15544. "PPAM",
  15545. "POTX",
  15546. "PPSM",
  15547. ];
  15548. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15549. var photoA = [
  15550. "BMP",
  15551. "GIF",
  15552. "PNG",
  15553. "JPGE",
  15554. "JPG",
  15555. "TIF",
  15556. "PCX",
  15557. "TGA",
  15558. "EXIF",
  15559. "FPX",
  15560. "SVG",
  15561. "APNG",
  15562. ];
  15563. if (
  15564. photoA.indexOf(
  15565. file.name
  15566. .split(".")
  15567. [file.name.split(".").length - 1].toLocaleUpperCase()
  15568. ) != -1 &&
  15569. type != 4
  15570. ) {
  15571. // const blob = await imageConversion.compress(file, 0.8)
  15572. file = await this.pngToWhiteBg(file);
  15573. const blob = await imageConversion.compressAccurately(file, 256);
  15574. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15575. file = new File([blob], file.name, { type: file.type });
  15576. }
  15577. if (file) {
  15578. var params = {
  15579. Key:
  15580. file.name.split(".")[0] +
  15581. new Date().getTime() +
  15582. "." +
  15583. file.name.split(".")[file.name.split(".").length - 1],
  15584. ContentType: file.type,
  15585. Body: file,
  15586. "Access-Control-Allow-Credentials": "*",
  15587. ACL: "public-read",
  15588. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15589. var options = {
  15590. // partSize: 2048 * 1024 * 1024,
  15591. partSize: 1024 * 1024 * 1024,
  15592. queueSize: 2,
  15593. leavePartsOnError: true,
  15594. };
  15595. bucket
  15596. .upload(params, options)
  15597. .on("httpUploadProgress", function (evt) {
  15598. //这里可以写进度条
  15599. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15600. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15601. })
  15602. .send(function (err, data) {
  15603. // _this.progress = 100;
  15604. cfindex2++;
  15605. setTimeout(() => {
  15606. if (
  15607. cfindex2 == event.target.files.length - 1 ||
  15608. cfindex2 > event.target.files.length - 1
  15609. ) {
  15610. _this.proVisible2 = false;
  15611. }
  15612. }, 1000);
  15613. if (err) {
  15614. var a = _this.$refs.upload1.uploadFiles;
  15615. a.splice(a.length - 1, a.length);
  15616. _this.$message.error("上传失败");
  15617. } else {
  15618. // _this.$message.success('上传成功')
  15619. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15620. var c = [
  15621. "AVI",
  15622. "NAVI",
  15623. "MPEG",
  15624. "ASF",
  15625. "MOV",
  15626. "WMV",
  15627. "3GP",
  15628. "RM",
  15629. "RMVB",
  15630. "FLV",
  15631. "F4V",
  15632. "H.264",
  15633. "H.265",
  15634. "REAL VIDEO",
  15635. "MKV",
  15636. "WebM",
  15637. "HDDVD",
  15638. "MP4",
  15639. "MPG",
  15640. "M4V",
  15641. "MGV",
  15642. "OGV",
  15643. "QTM",
  15644. "STR",
  15645. "AMC",
  15646. "DVX",
  15647. "EVO",
  15648. "DAT",
  15649. "OGG",
  15650. "OGM",
  15651. ];
  15652. if (type == 1) {
  15653. _this.studyJuri[0].cover.push({
  15654. name: file.name,
  15655. url: data.Location,
  15656. uid: file.uid,
  15657. });
  15658. if (
  15659. c.indexOf(
  15660. _this.studyJuri[0].cover[0].url
  15661. .split(".")
  15662. [
  15663. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15664. ].toLocaleUpperCase()
  15665. ) != -1
  15666. ) {
  15667. _this.fileType = 2;
  15668. } else if (
  15669. b.indexOf(
  15670. _this.studyJuri[0].cover[0].url
  15671. .split(".")
  15672. [
  15673. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15674. ].toLocaleUpperCase()
  15675. ) != -1
  15676. ) {
  15677. _this.fileType = 1;
  15678. } else {
  15679. _this.fileType = 0;
  15680. }
  15681. _this.imgChange(null, null, type);
  15682. } else if (type == 2) {
  15683. _this.upToolImg = data.Location;
  15684. _this.imgChange(null, null, type);
  15685. _this.addCourseWorks(i);
  15686. } else if (type == 4) {
  15687. _this.addPz("3", data.Location);
  15688. } else if (type == 5) {
  15689. _this.addImgDrawImG(data.Location);
  15690. } else if (type == 6) {
  15691. var _ftype = 1;
  15692. if (
  15693. c.indexOf(
  15694. data.Location.split(".")[
  15695. data.Location.split(".").length - 1
  15696. ].toLocaleUpperCase()
  15697. ) != -1
  15698. ) {
  15699. _ftype = 5;
  15700. } else if (
  15701. b.indexOf(
  15702. data.Location.split(".")[
  15703. data.Location.split(".").length - 1
  15704. ].toLocaleUpperCase()
  15705. ) != -1
  15706. ) {
  15707. _ftype = 4;
  15708. } else {
  15709. _ftype = 1;
  15710. }
  15711. _this.plworkFile.push({
  15712. name: file.name,
  15713. url: data.Location,
  15714. uid: file.uid,
  15715. fileType: _ftype,
  15716. username:
  15717. _this.plworkFile.length + 1 > 9
  15718. ? _this.plworkFile.length + 1
  15719. : "0" + (_this.plworkFile.length + 1),
  15720. });
  15721. }
  15722. _this.imgChange(null, null, type);
  15723. console.log(data.Location);
  15724. // _this.$message.success('上传成功'+data.Location)
  15725. }
  15726. });
  15727. }
  15728. }
  15729. },
  15730. beforeUpload2(event, type) {
  15731. var file = event.target.files[0];
  15732. var credentials = {
  15733. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15734. secretAccessKey: "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",
  15735. }; //秘钥形式的登录上传
  15736. window.AWS.config.update(credentials);
  15737. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15738. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15739. var _this = this;
  15740. _this.progress = 0;
  15741. _this.proVisible = true;
  15742. if (file) {
  15743. var params = {
  15744. Key:
  15745. file.name.split(".")[0] +
  15746. new Date().getTime() +
  15747. "." +
  15748. file.name.split(".")[file.name.split(".").length - 1],
  15749. ContentType: file.type,
  15750. Body: file,
  15751. "Access-Control-Allow-Credentials": "*",
  15752. ACL: "public-read",
  15753. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15754. var options = {
  15755. partSize: 2048 * 1024 * 1024,
  15756. queueSize: 2,
  15757. leavePartsOnError: true,
  15758. };
  15759. bucket
  15760. .upload(params, options)
  15761. .on("httpUploadProgress", function (evt) {
  15762. //这里可以写进度条
  15763. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15764. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15765. })
  15766. .send(function (err, data) {
  15767. _this.progress = 100;
  15768. setTimeout(() => {
  15769. _this.proVisible = false;
  15770. }, 1000);
  15771. if (err) {
  15772. var a = _this.$refs.upload1.uploadFiles;
  15773. a.splice(a.length - 1, a.length);
  15774. _this.$message.error("上传失败");
  15775. } else {
  15776. if (type == 2) {
  15777. _this.studyJuri[0].upVedio.push({
  15778. name: file.name,
  15779. url: data.Location,
  15780. uid: file.uid,
  15781. });
  15782. _this.imgChange(null, null, type);
  15783. } else if (type == 3) {
  15784. _this.studyJuri[0].upFile.push({
  15785. name: file.name,
  15786. url: data.Location,
  15787. uid: file.uid,
  15788. });
  15789. _this.imgChange(null, null, type);
  15790. }
  15791. console.log(data.Location);
  15792. }
  15793. });
  15794. }
  15795. },
  15796. allScrell() {
  15797. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15798. },
  15799. nextOrpreSteps(t) {
  15800. if (this.IsFollow && this.tType == 2) {
  15801. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15802. return;
  15803. }
  15804. var b = this.chapInfoList.length - 1;
  15805. if (t == 0) {
  15806. if (this.courseType == 0) {
  15807. if (this.taskCount == 0) {
  15808. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15809. if (this.IsLookOpen) {
  15810. if (
  15811. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15812. ) {
  15813. if (
  15814. this.courseDetail.userid != this.userid &&
  15815. (!this.courseDetail.course_teacher ||
  15816. (this.courseDetail.course_teacher &&
  15817. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  15818. ) {
  15819. this.$message.error("任务未解锁");
  15820. } else {
  15821. this.$message.error("上一任务未解锁");
  15822. }
  15823. return;
  15824. }
  15825. }
  15826. this.navList[this.courseType].isOpen = false;
  15827. this.courseType = b;
  15828. this.taskCount =
  15829. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15830. .length - 1;
  15831. this.navList[this.courseType].isOpen = true;
  15832. } else {
  15833. this.taskCount--;
  15834. }
  15835. } else {
  15836. if (this.taskCount == 0) {
  15837. this.navList[this.courseType].isOpen = false;
  15838. this.courseType--;
  15839. this.taskCount =
  15840. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15841. .length - 1;
  15842. this.navList[this.courseType].isOpen = true;
  15843. } else {
  15844. this.taskCount--;
  15845. }
  15846. }
  15847. } else {
  15848. if (this.courseType == b) {
  15849. if (
  15850. this.taskCount ==
  15851. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15852. 1
  15853. ) {
  15854. this.navList[this.courseType].isOpen = false;
  15855. this.courseType = 0;
  15856. this.taskCount = 0;
  15857. this.navList[this.courseType].isOpen = true;
  15858. } else {
  15859. var bbb = parseInt(this.taskCount) + 1;
  15860. if (
  15861. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15862. .isLook &&
  15863. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  15864. (this.courseDetail.course_teacher &&
  15865. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  15866. this.IsLookOpen
  15867. ) {
  15868. this.$message.error("任务未解锁");
  15869. return;
  15870. }
  15871. this.taskCount++;
  15872. if (this.IsLookOpen) {
  15873. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15874. this.taskCount
  15875. ].isLook = true;
  15876. this.addCourseState(3);
  15877. }
  15878. }
  15879. } else {
  15880. if (
  15881. this.taskCount ==
  15882. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15883. 1
  15884. ) {
  15885. var bbb = parseInt(this.courseType) + 1;
  15886. if (
  15887. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  15888. this.courseDetail.userid != this.userid &&
  15889. (!this.courseDetail.course_teacher ||
  15890. (this.courseDetail.course_teacher &&
  15891. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  15892. this.IsLookOpen
  15893. ) {
  15894. this.$message.error("任务未解锁");
  15895. return;
  15896. }
  15897. this.navList[this.courseType].isOpen = false;
  15898. this.courseType++;
  15899. this.taskCount = 0;
  15900. this.navList[this.courseType].isOpen = true;
  15901. } else {
  15902. var bbb = parseInt(this.taskCount) + 1;
  15903. if (
  15904. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15905. .isLook &&
  15906. this.courseDetail.userid != this.userid &&
  15907. (!this.courseDetail.course_teacher ||
  15908. (this.courseDetail.course_teacher &&
  15909. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  15910. this.IsLookOpen
  15911. ) {
  15912. this.$message.error("任务未解锁");
  15913. return;
  15914. }
  15915. this.taskCount++;
  15916. }
  15917. if (this.IsLookOpen) {
  15918. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15919. this.taskCount
  15920. ].isLook = true;
  15921. this.addCourseState(3);
  15922. }
  15923. }
  15924. // if (
  15925. // this.taskCount ==
  15926. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  15927. // ) {
  15928. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  15929. // } else {
  15930. // this.taskCount++;
  15931. // }
  15932. }
  15933. document.scrollingElement.scrollTop = 0;
  15934. this.showType = 7;
  15935. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15936. // if (this.vedio[this.taskCount].length > 0) {
  15937. // var a =
  15938. // document.getElementsByClassName("box_course")[this.taskCount]
  15939. // .offsetHeight;
  15940. // document.getElementsByClassName("vedioList")[
  15941. // this.taskCount
  15942. // ].style.height = a + "px";
  15943. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  15944. // a - 40 + "px";
  15945. // }
  15946. this.isNoHomeWork = false;
  15947. (this.studyJuri = [
  15948. {
  15949. content: "",
  15950. cover: [],
  15951. upVedio: [],
  15952. upFile: [],
  15953. },
  15954. ]),
  15955. (this.radio = []);
  15956. this.isClickNav = "";
  15957. this.selectPz();
  15958. this.getHomeWork();
  15959. this.getCourseDetail(2);
  15960. this.$forceUpdate();
  15961. },
  15962. openTask(s, n, i,ctype) {
  15963. if (this.IsFollow && this.tType == 2) {
  15964. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15965. return;
  15966. }
  15967. if (this.IsLookOpen) {
  15968. if (
  15969. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  15970. this.courseDetail.userid != this.userid &&
  15971. (!this.courseDetail.course_teacher ||
  15972. (this.courseDetail.course_teacher &&
  15973. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  15974. ) {
  15975. this.$message.error("任务未解锁");
  15976. return;
  15977. }
  15978. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  15979. if (
  15980. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  15981. .isLook
  15982. ) {
  15983. this.$message.error("上一任务未解锁");
  15984. return;
  15985. }
  15986. } else if (s > this.courseType) {
  15987. if (n > 0) {
  15988. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  15989. this.$message.error("上一任务未解锁");
  15990. return;
  15991. }
  15992. } else {
  15993. if (
  15994. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  15995. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  15996. ].isLook
  15997. ) {
  15998. this.$message.error("上一任务未解锁");
  15999. return;
  16000. }
  16001. }
  16002. }
  16003. }
  16004. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  16005. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16006. return;
  16007. }
  16008. this.courseType = s;
  16009. this.navId = i;
  16010. this.taskCount = n;
  16011. if(ctype == 2){
  16012. this.navList[s].task[n].isOpen = true
  16013. }else{
  16014. this.navList[this.courseType].task[this.taskCount].isOpen =
  16015. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16016. }
  16017. if (this.IsLookOpen) {
  16018. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16019. this.taskCount
  16020. ].isLook = true;
  16021. this.addCourseState(3);
  16022. }
  16023. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16024. this.isCloseList[ci].isClose = 0;
  16025. this.isCloseList[ci].isCloseBoolean = false;
  16026. this.$nextTick(()=>{
  16027. setTimeout(()=>{
  16028. setTimeout(()=>{
  16029. this.panToolHeight('tool-'+ci);
  16030. }, 0)
  16031. }, 0)
  16032. })
  16033. }
  16034. this.showType = 0;
  16035. this.isNoHomeWork = false;
  16036. (this.studyJuri = [
  16037. {
  16038. content: "",
  16039. cover: [],
  16040. upVedio: [],
  16041. upFile: [],
  16042. },
  16043. ]),
  16044. (this.radio = []);
  16045. document.scrollingElement.scrollTop = 0;
  16046. // setTimeout(() => {
  16047. // let a = document.getElementById(i);
  16048. // if (a.offsetTop - 110 == 0) {
  16049. // window.scrollTo(0, 0);
  16050. // } else {
  16051. // window.scrollTo(0, a.offsetTop);
  16052. // }
  16053. // }, 0);
  16054. for (var z = 0; z < this.navList.length; z++) {
  16055. for (var q = 0; q < this.navList[z].task.length; q++) {
  16056. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16057. this.navList[z].task[q].tool[w].isTool = false;
  16058. }
  16059. }
  16060. }
  16061. this.selectPz();
  16062. this.getHomeWork();
  16063. this.getCourseDetail(2);
  16064. },
  16065. get(i) {
  16066. if (this.IsFollow && this.tType == 2) {
  16067. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16068. return;
  16069. }
  16070. // for(var k=0;k<this.navList.length;k++){
  16071. // this.navList[k].isOpen = false;
  16072. // }
  16073. // this.navList[i].isOpen = true;
  16074. let a = this.navList[i].isOpen
  16075. this.navList[i].isOpen = !this.navList[i].isOpen;
  16076. this.$forceUpdate()
  16077. if (this.navList[i].isOpen) {
  16078. this.openTask(i, 0, (i + "-0"),2);
  16079. }
  16080. },
  16081. addQuestion() {
  16082. this.answerList.push({
  16083. answerTitle: this.answerQ,
  16084. answer: this.questionAnswer,
  16085. });
  16086. let params = [
  16087. {
  16088. uid: this.userid,
  16089. cid: this.id,
  16090. stage: this.courseType,
  16091. task: this.taskCount,
  16092. tool: this.toolindex,
  16093. content: JSON.stringify(this.answerList),
  16094. type: 3,
  16095. },
  16096. ];
  16097. this.ajax
  16098. .post(this.$store.state.api + "addCourseWorks", params)
  16099. .then((res) => {
  16100. this.$message({
  16101. message: "提交成功",
  16102. type: "success",
  16103. });
  16104. this.answerList = [];
  16105. this.answerDialogVisible = false;
  16106. this.selectStudent();
  16107. this.selectSWorks();
  16108. this.selectSLook();
  16109. })
  16110. .catch((err) => {
  16111. this.$message.error("提交失败");
  16112. console.error(err);
  16113. });
  16114. },
  16115. addQuestionTeacher() {
  16116. this.answerList.push({
  16117. answerTitle: this.answerQ,
  16118. answer: this.questionAnswer,
  16119. });
  16120. let params = [
  16121. {
  16122. uid: this.sStudent.userid,
  16123. cid: this.id,
  16124. stage: this.courseType,
  16125. task: this.taskCount,
  16126. tool: this.toolindex,
  16127. content: JSON.stringify(this.answerList),
  16128. type: 3,
  16129. ateacher: this.userid,
  16130. },
  16131. ];
  16132. this.ajax
  16133. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16134. .then((res) => {
  16135. this.$message({
  16136. message: "提交成功",
  16137. type: "success",
  16138. });
  16139. this.answerList = [];
  16140. this.questionAnswer = "";
  16141. this.answerDialogVisibleTeacher = false;
  16142. this.selectStudent();
  16143. this.selectSWorks();
  16144. this.selectSLook();
  16145. })
  16146. .catch((err) => {
  16147. this.$message.error("提交失败");
  16148. console.error(err);
  16149. });
  16150. },
  16151. refreshCourse() {
  16152. // window.location.reload();
  16153. this.navList = [];
  16154. this.getCourseDetail(1);
  16155. },
  16156. getCourseDetail(type, gindex) {
  16157. let loading;
  16158. if (type != 2) {
  16159. loading = this.$loading.service({
  16160. background: "rgba(255, 255, 255, 0.7)",
  16161. target: document.querySelector(".student_table"),
  16162. });
  16163. }
  16164. this.downLoading = false
  16165. // this.navList[0].isOpen = false;
  16166. // this.navList[this.courseType].isOpen = true;
  16167. // this.courseType = this.courseTypeLine;
  16168. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16169. let params = {
  16170. courseId: this.id,
  16171. };
  16172. this.ajax
  16173. .get(this.$store.state.api + "selectCourseDetail3", params)
  16174. .then((res) => {
  16175. if (type != 2) {
  16176. loading.close();
  16177. if (
  16178. this.courseType >
  16179. JSON.parse(res.data[0][0].chapters).length - 1
  16180. ) {
  16181. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16182. }
  16183. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16184. .chapterInfo[0].taskJson;
  16185. var b = [
  16186. "AVI",
  16187. "NAVI",
  16188. "MPEG",
  16189. "ASF",
  16190. "MOV",
  16191. "WMV",
  16192. "3GP",
  16193. "RM",
  16194. "RMVB",
  16195. "FLV",
  16196. "F4V",
  16197. "H.264",
  16198. "H.265",
  16199. "REAL VIDEO",
  16200. "MKV",
  16201. "WebM",
  16202. "HDDVD",
  16203. "MP4",
  16204. "MPG",
  16205. "M4V",
  16206. "MGV",
  16207. "OGV",
  16208. "QTM",
  16209. "STR",
  16210. "AMC",
  16211. "DVX",
  16212. "EVO",
  16213. "DAT",
  16214. "OGG",
  16215. "OGM",
  16216. "MP3",
  16217. ];
  16218. let _chapterData = [];
  16219. for (var i = 0; i < a.length; i++) {
  16220. var c = a[i].chapterData;
  16221. this.vedio[i] = [];
  16222. this.textList[i] = [];
  16223. this.lineList[i] = [];
  16224. this.chapToolList[i] = [];
  16225. this.file[i] = [];
  16226. this.fileC[i] = [];
  16227. _chapterData[i] = c.filter((el) => {
  16228. return el.type != 12;
  16229. });
  16230. this.fileC[i] = c.filter((el) => {
  16231. return el.type == 12;
  16232. });
  16233. // else if (c[j].type == 12) {
  16234. // this.fileC[i].push(c[j]);
  16235. // }
  16236. for (var j = 0; j < c.length; j++) {
  16237. if (c[j].type == 7) {
  16238. this.chapToolList[i].push(c[j]);
  16239. } else if (c[j].type == 8 || c[j].type == 14) {
  16240. this.lineList[i].push(c[j]);
  16241. } else if (c[j].type == 6) {
  16242. this.textList[i].push(c[j]);
  16243. } else {
  16244. if (
  16245. b.indexOf(
  16246. c[j].url
  16247. .split(".")
  16248. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16249. ) != -1
  16250. ) {
  16251. this.vedio[i].push(c[j]);
  16252. } else {
  16253. this.file[i].push(c[j]);
  16254. }
  16255. }
  16256. }
  16257. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16258. d.sources[0].src =
  16259. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16260. this.playerO[i] = d;
  16261. }
  16262. this.courseDetail = res.data[0][0];
  16263. this.tcid = this.arrayToArray(
  16264. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16265. this.tcid2 ? this.tcid2.split(",") : []
  16266. ).join(",");
  16267. this.evalua = res.data[0][0].evaId;
  16268. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16269. this.courseType
  16270. ];
  16271. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16272. if (this.tcid && res.data[1].length) {
  16273. let _inviteA = [];
  16274. for (var ik = 0; ik < res.data[1].length; ik++) {
  16275. _inviteA.push({
  16276. cid: res.data[1][ik].classid,
  16277. ic: res.data[1][ik].code,
  16278. });
  16279. }
  16280. for (var ik = 0; ik < _inviteA.length; ik++) {
  16281. if (
  16282. this.arrayToArray(
  16283. _inviteA[ik].cid.split(","),
  16284. this.tcid.split(",")
  16285. ).length
  16286. ) {
  16287. this.inviteCode = _inviteA[ik].ic;
  16288. break;
  16289. }
  16290. }
  16291. }
  16292. for (var l = 0; l < this.chapInfoList.length; l++) {
  16293. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16294. for (var m = 0; m < w.length; m++) {
  16295. w[m].id = l + "-" + m;
  16296. }
  16297. }
  16298. if (
  16299. _chapterData[this.taskCount].length &&
  16300. _chapterData[this.taskCount][0].type == 2
  16301. ) {
  16302. this.showType = 0;
  16303. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16304. } else {
  16305. if (_chapterData[this.taskCount].length > 0) {
  16306. let _url = _chapterData[this.taskCount][0].url;
  16307. if (
  16308. _chapterData[this.taskCount][0].type == 8 ||
  16309. _chapterData[this.taskCount][0].type == 14
  16310. ) {
  16311. this.showType = 2;
  16312. if (
  16313. _url.indexOf("https://") == -1 &&
  16314. _url.indexOf("http://") == -1
  16315. ) {
  16316. _url = "https://" + _url;
  16317. }
  16318. this.pptImgUrl1 = _url;
  16319. } else if (_chapterData[this.taskCount][0].type == 3) {
  16320. if (
  16321. _url
  16322. .split(".")
  16323. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16324. ) {
  16325. this.showType = 3;
  16326. this.pptImgUrl1 = _url;
  16327. } else if (
  16328. this.isAssetTypeAnImage(
  16329. _url
  16330. .split(".")
  16331. [_url.split(".").length - 1].toLocaleLowerCase()
  16332. )
  16333. ) {
  16334. this.showType = 4;
  16335. this.pptImgUrl1 = _url;
  16336. } else {
  16337. this.showType = 2;
  16338. this.pptImgUrl1 =
  16339. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16340. encodeURIComponent(_url);
  16341. }
  16342. } else if (_chapterData[this.taskCount][0].type == 13) {
  16343. this.showType = 4;
  16344. this.pptImgUrl1 = _url;
  16345. } else if (_chapterData[this.taskCount][0].type == 6) {
  16346. this.showType = 1;
  16347. this.text = this.textList[this.taskCount][0];
  16348. }
  16349. }
  16350. }
  16351. this.isClickNav = 0;
  16352. if (
  16353. !_chapterData[this.taskCount].length ||
  16354. _chapterData[this.taskCount][0].type == 12
  16355. ) {
  16356. this.isClickNav = "";
  16357. this.showType = "";
  16358. }
  16359. this.vChapterData = _chapterData;
  16360. } else {
  16361. this.showType = 0;
  16362. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16363. .chapterInfo[0].taskJson;
  16364. var b = [
  16365. "AVI",
  16366. "NAVI",
  16367. "MPEG",
  16368. "ASF",
  16369. "MOV",
  16370. "WMV",
  16371. "3GP",
  16372. "RM",
  16373. "RMVB",
  16374. "FLV",
  16375. "F4V",
  16376. "H.264",
  16377. "H.265",
  16378. "REAL VIDEO",
  16379. "MKV",
  16380. "WebM",
  16381. "HDDVD",
  16382. "MP4",
  16383. "MPG",
  16384. "M4V",
  16385. "MGV",
  16386. "OGV",
  16387. "QTM",
  16388. "STR",
  16389. "AMC",
  16390. "DVX",
  16391. "EVO",
  16392. "DAT",
  16393. "OGG",
  16394. "OGM",
  16395. "MP3",
  16396. ];
  16397. let _chapterData = [];
  16398. for (var i = 0; i < a.length; i++) {
  16399. var c = a[i].chapterData;
  16400. this.vedio[i] = [];
  16401. this.textList[i] = [];
  16402. this.lineList[i] = [];
  16403. this.chapToolList[i] = [];
  16404. this.file[i] = [];
  16405. this.fileC[i] = [];
  16406. _chapterData[i] = c.filter((el) => {
  16407. return el.type != 12;
  16408. });
  16409. this.fileC[i] = c.filter((el) => {
  16410. return el.type == 12;
  16411. });
  16412. for (var j = 0; j < c.length; j++) {
  16413. if (c[j].type == 7) {
  16414. this.chapToolList[i].push(c[j]);
  16415. } else if (c[j].type == 8 || c[j].type == 14) {
  16416. this.lineList[i].push(c[j]);
  16417. } else if (c[j].type == 6) {
  16418. this.textList[i].push(c[j]);
  16419. } else {
  16420. if (
  16421. b.indexOf(
  16422. c[j].url
  16423. .split(".")
  16424. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16425. ) != -1
  16426. ) {
  16427. this.vedio[i].push(c[j]);
  16428. } else {
  16429. this.file[i].push(c[j]);
  16430. }
  16431. }
  16432. }
  16433. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16434. d.sources[0].src =
  16435. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16436. this.playerO[i] = d;
  16437. }
  16438. if (
  16439. _chapterData[this.taskCount].length &&
  16440. _chapterData[this.taskCount][0].type == 2
  16441. ) {
  16442. this.showType = 0;
  16443. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16444. } else {
  16445. if (_chapterData[this.taskCount].length > 0) {
  16446. let _url = _chapterData[this.taskCount][0].url;
  16447. if (
  16448. _chapterData[this.taskCount][0].type == 8 ||
  16449. _chapterData[this.taskCount][0].type == 14
  16450. ) {
  16451. this.showType = 2;
  16452. if (
  16453. _url.indexOf("https://") == -1 &&
  16454. _url.indexOf("http://") == -1
  16455. ) {
  16456. _url = "https://" + _url;
  16457. }
  16458. this.pptImgUrl1 = _url;
  16459. } else if (_chapterData[this.taskCount][0].type == 3) {
  16460. if (
  16461. _url
  16462. .split(".")
  16463. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16464. ) {
  16465. this.showType = 3;
  16466. this.pptImgUrl1 = _url;
  16467. } else if (
  16468. this.isAssetTypeAnImage(
  16469. _url
  16470. .split(".")
  16471. [_url.split(".").length - 1].toLocaleLowerCase()
  16472. )
  16473. ) {
  16474. this.showType = 4;
  16475. this.pptImgUrl1 = _url;
  16476. } else {
  16477. this.showType = 2;
  16478. this.pptImgUrl1 =
  16479. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16480. encodeURIComponent(_url);
  16481. }
  16482. } else if (_chapterData[this.taskCount][0].type == 13) {
  16483. this.showType = 4;
  16484. this.pptImgUrl1 = _url;
  16485. } else if (_chapterData[this.taskCount][0].type == 6) {
  16486. this.showType = 1;
  16487. this.text = this.textList[this.taskCount][0];
  16488. }
  16489. }
  16490. }
  16491. this.isClickNav = 0;
  16492. if (
  16493. !_chapterData[this.taskCount].length ||
  16494. _chapterData[this.taskCount][0].type == 12
  16495. ) {
  16496. this.isClickNav = "";
  16497. this.showType = "";
  16498. }
  16499. this.vChapterData = _chapterData;
  16500. this.$forceUpdate();
  16501. }
  16502. // else {
  16503. // this.courseDetail = res.data[0][0];
  16504. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16505. // }
  16506. let _this = this;
  16507. if (_this.timer) {
  16508. clearInterval(_this.timer);
  16509. _this.timer = null;
  16510. }
  16511. if (_this.tcid) {
  16512. _this.getCourseGroup(gindex);
  16513. } else {
  16514. _this.selectSWorks(gindex);
  16515. }
  16516. _this.selectStudent();
  16517. _this.selectSLook();
  16518. _this.getPick();
  16519. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16520. _this.setCTask();
  16521. }
  16522. if (_this.dialogVisibleGroup) {
  16523. _this.groupJson =
  16524. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16525. _this.taskCount
  16526. ].toolChoose[_this.toolindex].groupJson;
  16527. }
  16528. _this.$nextTick(() => {
  16529. setTimeout(() => {
  16530. _this.checkEva();
  16531. }, 1000);
  16532. });
  16533. _this.timer = setInterval(function () {
  16534. // _this.getCourseDetail(2);
  16535. if (_this.tcid) {
  16536. _this.getCourseGroup(gindex);
  16537. } else {
  16538. _this.selectSWorks(gindex);
  16539. }
  16540. _this.selectStudent();
  16541. _this.selectSLook();
  16542. _this.getPick();
  16543. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16544. _this.setCTask();
  16545. }
  16546. if (_this.dialogVisibleGroup) {
  16547. _this.groupJson =
  16548. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16549. _this.taskCount
  16550. ].toolChoose[_this.toolindex].groupJson;
  16551. }
  16552. if (_this.tType == 4 || _this.ispzType == 4) {
  16553. _this.selectPz();
  16554. }
  16555. }, 5000);
  16556. _this.$nextTick(function () {
  16557. setTimeout(() => {
  16558. // var a =
  16559. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16560. // document.getElementsByClassName("vedioList")[0].style.height =
  16561. // a + "px";
  16562. // document.getElementsByClassName("navBox")[0].style.height =
  16563. // a - 40 + "px";
  16564. // if (_this.vedio[_this.taskCount].length > 0) {
  16565. // _this.vedioTime = [];
  16566. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16567. // _this.vedioTime[i] = document.getElementsByClassName(
  16568. // "vjs-duration-display"
  16569. // )[i].textContent;
  16570. // }
  16571. // }
  16572. }, 1000);
  16573. });
  16574. })
  16575. .catch((err) => {
  16576. loading.close();
  16577. console.error(err);
  16578. });
  16579. },
  16580. getCourseGroup(gindex) {
  16581. let params = {
  16582. cid: this.id,
  16583. classid: this.tcid ? this.tcid : "1",
  16584. };
  16585. this.ajax
  16586. .get(this.$store.state.api + "getCourseGroup", params)
  16587. .then((res) => {
  16588. if (res.data && res.data[0].length) {
  16589. if (!this.isGroup) {
  16590. let courseGroup = JSON.parse(res.data[0][0].group);
  16591. courseGroup.group = courseGroup.group.filter((el) => {
  16592. el.works = [];
  16593. return el;
  16594. });
  16595. if (courseGroup.isopen == 2) {
  16596. this.isGroup = false;
  16597. this.selectSWorks(gindex);
  16598. return;
  16599. }
  16600. this.courseGroup = courseGroup;
  16601. let groupPerson = res.data[1];
  16602. let group = JSON.parse(res.data[0][0].group).group;
  16603. let courseGroupStudent = {};
  16604. let courseGroupStudentUid = {};
  16605. for (var i = 0; i < group.length; i++) {
  16606. courseGroupStudent[group[i].id] = [];
  16607. courseGroupStudentUid[group[i].id] = [];
  16608. for (var j = 0; j < groupPerson.length; j++) {
  16609. if (groupPerson[j].groupCid == group[i].id) {
  16610. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16611. courseGroupStudentUid[group[i].id].push(
  16612. groupPerson[j].userid
  16613. );
  16614. }
  16615. }
  16616. }
  16617. this.courseGroupStudent = courseGroupStudent;
  16618. this.courseGroupStudentUid = courseGroupStudentUid;
  16619. }
  16620. if (this.courseGroup.isopen == 2) {
  16621. this.isGroup = false;
  16622. } else {
  16623. this.isGroup = true;
  16624. }
  16625. this.selectSWorks(gindex);
  16626. } else {
  16627. this.selectSWorks(gindex);
  16628. this.isGroup = false;
  16629. }
  16630. })
  16631. .catch((err) => {
  16632. // this.$message.error("网络不佳");
  16633. console.error(err);
  16634. });
  16635. },
  16636. setOperationTime() {
  16637. let _this = this;
  16638. if (_this.opertimer) {
  16639. clearInterval(_this.opertimer);
  16640. _this.opertimer = null;
  16641. }
  16642. _this.opertimer = setInterval(() => {
  16643. _this.setoTime("600");
  16644. }, 600000);
  16645. },
  16646. setoTime(time) {
  16647. let params = [
  16648. {
  16649. uid: this.userid,
  16650. cid: this.id,
  16651. type: "2",
  16652. time: time,
  16653. },
  16654. ];
  16655. this.ajax
  16656. .post(this.$store.state.api + "addOperationTimeT2", params)
  16657. .then((res) => {})
  16658. .catch((err) => {
  16659. console.error(err);
  16660. });
  16661. },
  16662. addPz(type, content) {
  16663. if (type == "1" && this.pzConText == "") {
  16664. this.$message.error("评论不能为空!");
  16665. return;
  16666. }
  16667. let params = [
  16668. {
  16669. cid: this.id,
  16670. uid: this.userid,
  16671. s: this.courseType,
  16672. t: this.taskCount,
  16673. c: type == "1" ? this.pzConText : content,
  16674. type: type,
  16675. },
  16676. ];
  16677. this.ajax
  16678. .post(this.$store.state.api + "addPz2", params)
  16679. .then((res) => {
  16680. this.$message({
  16681. message: "添加成功",
  16682. type: "success",
  16683. });
  16684. this.pzConText = "";
  16685. this.addPzDialog = false;
  16686. this.selectPz();
  16687. })
  16688. .catch((err) => {
  16689. this.$message.error("添加失败");
  16690. console.error(err);
  16691. });
  16692. },
  16693. setReplyIndex(id, i) {
  16694. this.replyIndex = i;
  16695. this.replyPid = id;
  16696. this.replyDialogVisible = true;
  16697. },
  16698. addHf() {
  16699. if (this.reply == "") {
  16700. this.$message.error("回复不能为空!");
  16701. return;
  16702. }
  16703. let params = [
  16704. {
  16705. cid: this.id,
  16706. uid: this.userid,
  16707. s: this.courseType,
  16708. t: this.taskCount,
  16709. type: "1",
  16710. ct: 2,
  16711. pid: this.replyPid,
  16712. c: this.reply,
  16713. },
  16714. ];
  16715. this.ajax
  16716. .post(this.$store.state.api + "addHf", params)
  16717. .then((res) => {
  16718. this.reply = "";
  16719. this.$message({
  16720. message: "回复成功",
  16721. type: "success",
  16722. });
  16723. this.replyDialogVisible = false;
  16724. this.selectPz();
  16725. })
  16726. .catch((err) => {
  16727. this.$message.error("回复失败");
  16728. console.error(err);
  16729. });
  16730. },
  16731. deletePz(id) {
  16732. this.$confirm("确定删除此评论吗?", "提示", {
  16733. confirmButtonText: "确定",
  16734. cancelButtonText: "取消",
  16735. type: "warning",
  16736. })
  16737. .then(() => {
  16738. let params = [
  16739. {
  16740. id: id,
  16741. },
  16742. ];
  16743. this.ajax
  16744. .post(this.$store.state.api + "deletePz", params)
  16745. .then((res) => {
  16746. this.$message({
  16747. message: "删除成功",
  16748. type: "success",
  16749. });
  16750. this.selectPz();
  16751. })
  16752. .catch((err) => {
  16753. this.$message.error("网络异常");
  16754. console.error(err);
  16755. });
  16756. })
  16757. .catch(() => {});
  16758. },
  16759. deleteReply(id) {
  16760. this.$confirm("确定删除此回复吗?", "提示", {
  16761. confirmButtonText: "确定",
  16762. cancelButtonText: "取消",
  16763. type: "warning",
  16764. })
  16765. .then(() => {
  16766. let params = [
  16767. {
  16768. id: id,
  16769. },
  16770. ];
  16771. this.ajax
  16772. .post(this.$store.state.api + "deleteReply", params)
  16773. .then((res) => {
  16774. this.$message({
  16775. message: "删除成功",
  16776. type: "success",
  16777. });
  16778. this.selectPz();
  16779. })
  16780. .catch((err) => {
  16781. this.$message.error("网络异常");
  16782. console.error(err);
  16783. });
  16784. })
  16785. .catch(() => {});
  16786. },
  16787. setPz() {
  16788. if (this.ispzType == 4) {
  16789. this.ispzType = 0;
  16790. this.pzDialog = false;
  16791. return;
  16792. }
  16793. this.ispzType = 4;
  16794. this.pzDialog = true;
  16795. this.selectPz();
  16796. },
  16797. selectPz() {
  16798. let params = {
  16799. cid: this.id,
  16800. s: this.courseType,
  16801. t: this.taskCount,
  16802. type: this.pzStype,
  16803. uid: this.userid,
  16804. };
  16805. this.ajax
  16806. .get(this.$store.state.api + "selectPzListType", params)
  16807. .then((res) => {
  16808. this.pzList = res.data[0];
  16809. var a = res.data[1];
  16810. for (var i = 0; i < a.length; i++) {
  16811. for (var j = 0; j < this.pzList.length; j++) {
  16812. if (!this.pzList[j].hfList) {
  16813. this.pzList[j].hfList = [];
  16814. }
  16815. if (a[i].pid == this.pzList[j].id) {
  16816. this.pzList[j].hfList.push(a[i]);
  16817. }
  16818. }
  16819. }
  16820. })
  16821. .catch((err) => {
  16822. console.error(err);
  16823. });
  16824. },
  16825. // selectHf() {
  16826. // let params = {
  16827. // cid: this.id,
  16828. // s: this.courseType,
  16829. // t: this.taskCount,
  16830. // };
  16831. // this.ajax
  16832. // .get(this.$store.state.api + "selectHfList", params)
  16833. // .then((res) => {
  16834. // var a = res.data[0];
  16835. // for (var i = 0; i < a.length; i++) {
  16836. // for (var j = 0; j < this.pzList.length; j++) {
  16837. // if (!this.pzList[i].hfList) {
  16838. // this.pzList[i].hfList = [];
  16839. // }
  16840. // if (a[i].pid == this.pzList[j].id) {
  16841. // this.pzList[i].hfList.push(a[i]);
  16842. // }
  16843. // }
  16844. // }
  16845. // })
  16846. // .catch((err) => {
  16847. // console.error(err);
  16848. // });
  16849. // },
  16850. updateSLook() {
  16851. let params = {
  16852. sopen: this.sIsOpen == false ? 1 : 2,
  16853. cid: this.id,
  16854. };
  16855. this.ajax
  16856. .get(this.$store.state.api + "updateCourseSLook", params)
  16857. .then((res) => {
  16858. if (this.sIsOpen == true) {
  16859. this.$message({
  16860. message: "权限设置成功",
  16861. type: "success",
  16862. });
  16863. } else {
  16864. this.$message({
  16865. message: "权限关闭成功",
  16866. type: "success",
  16867. });
  16868. }
  16869. })
  16870. .catch((err) => {
  16871. console.error(err);
  16872. });
  16873. },
  16874. updateFollow() {
  16875. let params = [
  16876. {
  16877. sopen: this.IsFollow == false ? 1 : 2,
  16878. cid: this.id,
  16879. },
  16880. ];
  16881. this.ajax
  16882. .post(this.$store.state.api + "updateCourseFollow", params)
  16883. .then((res) => {
  16884. if (this.IsFollow == true) {
  16885. this.$message({
  16886. message: "开启成功",
  16887. type: "success",
  16888. });
  16889. } else {
  16890. this.$message({
  16891. message: "关闭成功",
  16892. type: "success",
  16893. });
  16894. }
  16895. this.setCTask();
  16896. })
  16897. .catch((err) => {
  16898. console.error(err);
  16899. });
  16900. },
  16901. setCTask() {
  16902. let params = [
  16903. {
  16904. sopen: this.courseType + "-" + this.taskCount,
  16905. cid: this.id,
  16906. },
  16907. ];
  16908. this.ajax
  16909. .post(this.$store.state.api + "updateCourseFollowC", params)
  16910. .then((res) => {})
  16911. .catch((err) => {
  16912. console.error(err);
  16913. });
  16914. },
  16915. updateLookOpen() {
  16916. let params = [
  16917. {
  16918. sopen: this.IsLookOpen == false ? 1 : 2,
  16919. cid: this.id,
  16920. },
  16921. ];
  16922. this.ajax
  16923. .post(this.$store.state.api + "updateCourseLookOpen", params)
  16924. .then((res) => {
  16925. if (this.IsLookOpen == true) {
  16926. // if (this.courseType != 0 && this.taskCount != 0) {
  16927. // this.openTask(0, 0, "0-0");
  16928. // }
  16929. this.$message({
  16930. message: "权限设置成功",
  16931. type: "success",
  16932. });
  16933. } else {
  16934. this.$message({
  16935. message: "权限关闭成功",
  16936. type: "success",
  16937. });
  16938. }
  16939. this.getCourseState(2);
  16940. })
  16941. .catch((err) => {
  16942. console.error(err);
  16943. });
  16944. },
  16945. selectSLook() {
  16946. let params = {
  16947. cid: this.id,
  16948. };
  16949. this.ajax
  16950. .get(this.$store.state.api + "selectCourseSLook", params)
  16951. .then((res) => {
  16952. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  16953. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  16954. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  16955. if (!this.IsLookOpen) {
  16956. this.setNavList();
  16957. } else {
  16958. this.getCourseState(1);
  16959. }
  16960. if (this.IsFollow && this.tType == 2) {
  16961. this.setContent2(false);
  16962. let _followC = res.data[0][0].followC.split("-");
  16963. if (
  16964. this.courseType != _followC[0] ||
  16965. this.taskCount != _followC[1]
  16966. ) {
  16967. this.navList[this.courseType].isOpen = false;
  16968. this.courseType = _followC[0];
  16969. this.navList[this.courseType].isOpen = true;
  16970. this.taskCount = parseInt(_followC[1]);
  16971. this.navId = res.data[0][0].followC;
  16972. document.scrollingElement.scrollTop = 0;
  16973. this.getCourseDetail(2);
  16974. }
  16975. }
  16976. })
  16977. .catch((err) => {
  16978. console.error(err);
  16979. });
  16980. },
  16981. setNavList() {
  16982. if (this.navList.length == 0) {
  16983. this.navList = [];
  16984. var copyList = [];
  16985. for (var l = 0; l < this.chapInfoList.length; l++) {
  16986. var q = this.chapInfoList[l].dyName;
  16987. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16988. var e;
  16989. copyList.push({
  16990. dyName: q,
  16991. isOpen: l === 0 ? true : false,
  16992. task: [],
  16993. });
  16994. for (var r = 0; r < w.length; r++) {
  16995. e = w[r].task;
  16996. if (this.chapInfoList[l].easy == 1) {
  16997. copyList[l].task.push({
  16998. taskName: q,
  16999. id: l + "-" + r,
  17000. isLook: w[r].isLook,
  17001. isOpen: r === 0 ? true : false,
  17002. tool: [],
  17003. });
  17004. } else {
  17005. copyList[l].task.push({
  17006. taskName: e,
  17007. id: l + "-" + r,
  17008. isLook: w[r].isLook,
  17009. isOpen: r === 0 ? true : false,
  17010. tool: [],
  17011. });
  17012. }
  17013. var t = w[r].toolChoose;
  17014. for (var k = 0; k < t.length; k++) {
  17015. var tool = t[k].tool[0];
  17016. copyList[l].task[r].tool.push({
  17017. tool: tool,
  17018. isTool: false,
  17019. });
  17020. }
  17021. // this.navId = this.navId ? this.navId : l + "-" + r;
  17022. // this.navId = l + "-" + r;
  17023. }
  17024. }
  17025. this.navList = copyList;
  17026. this.navList[0].isOpen = false;
  17027. this.navList[this.courseType].isOpen = true;
  17028. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17029. } else {
  17030. this.setNavList2();
  17031. }
  17032. },
  17033. setNavList2() {
  17034. for (var l = 0; l < this.chapInfoList.length; l++) {
  17035. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17036. for (var r = 0; r < w.length; r++) {
  17037. this.navList[l].task[r].isLook = w[r].isLook;
  17038. }
  17039. }
  17040. if (
  17041. this.IsLookOpen &&
  17042. !this.navList[this.courseType].task[this.taskCount].isLook
  17043. ) {
  17044. this.openTask(0, 0, "0-0");
  17045. }
  17046. this.$forceUpdate();
  17047. },
  17048. getCourseState(type) {
  17049. let params = {
  17050. cid: this.id,
  17051. };
  17052. this.ajax
  17053. .get(this.$store.state.api + "getCourseState", params)
  17054. .then((res) => {
  17055. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17056. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17057. this.setNavList();
  17058. this.$forceUpdate();
  17059. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17060. this.addCourseState(2);
  17061. } else {
  17062. this.addCourseState(1);
  17063. }
  17064. })
  17065. .catch((err) => {
  17066. console.error(err);
  17067. });
  17068. },
  17069. addCourseState(type) {
  17070. let _state = this.chapInfoList;
  17071. // this.courseType this.taskCount
  17072. if (type == 1 || type == 2) {
  17073. for (var i = 0; i < _state.length; i++) {
  17074. let el = _state[i].chapterInfo[0].taskJson;
  17075. for (var j = 0; j < el.length; j++) {
  17076. // if (i == 0 && j == 0) {
  17077. // el[j].isLook = true;
  17078. // } else {
  17079. // el[j].isLook = false;
  17080. // }
  17081. if (
  17082. this.courseType > i ||
  17083. (this.courseType == i && this.taskCount + 1 > j)
  17084. ) {
  17085. el[j].isLook = true;
  17086. } else {
  17087. el[j].isLook = false;
  17088. }
  17089. }
  17090. }
  17091. }
  17092. let params = [
  17093. {
  17094. cid: this.id,
  17095. state: JSON.stringify(_state),
  17096. },
  17097. ];
  17098. this.ajax
  17099. .post(
  17100. this.$store.state.api +
  17101. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17102. params
  17103. )
  17104. .then((res) => {
  17105. if (this.IsLookOpen) {
  17106. this.setNavList();
  17107. }
  17108. if (type == 3 && type == 2) {
  17109. this.getCourseState(1);
  17110. }
  17111. })
  17112. .catch((err) => {
  17113. console.error(err);
  17114. });
  17115. },
  17116. getHomeWork() {
  17117. let params = {
  17118. cid: this.id,
  17119. stage: this.courseType,
  17120. task: this.taskCount,
  17121. uid: this.userid,
  17122. };
  17123. this.ajax
  17124. .get(this.$store.state.api + "selectWork", params)
  17125. .then((res) => {
  17126. if (res.data[0].length > 0) {
  17127. this.studyJuri = JSON.parse(res.data[0][0].content);
  17128. this.isNoHomeWork = true;
  17129. }
  17130. })
  17131. .catch((err) => {
  17132. console.error(err);
  17133. });
  17134. },
  17135. isAssetTypeAnImage(ext) {
  17136. return (
  17137. [
  17138. "png",
  17139. "jpg",
  17140. "jpeg",
  17141. "bmp",
  17142. "gif",
  17143. "webp",
  17144. "psd",
  17145. "svg",
  17146. "tiff",
  17147. ].indexOf(ext) !== -1
  17148. );
  17149. },
  17150. switchVideo(media) {
  17151. this.playerO = {};
  17152. this.playerOptions.poster = "";
  17153. this.playerOptions.sources[0].src = media;
  17154. this.playerO = this.playerOptions;
  17155. },
  17156. onPlayerPlay() {},
  17157. onPlayerTimeupdate(player) {
  17158. let gklog = player.cache_.currentTime; //当前播放的秒数
  17159. let a = player.cache_.duration; //视频的总时长
  17160. let gklog2 = parseInt(gklog);
  17161. // if(gklog2 == '3'){
  17162. // player.pause()
  17163. // setTimeout(()=>{
  17164. // player.currentTime(gklog2+1)
  17165. // player.play()
  17166. // },1000)
  17167. // }
  17168. console.log(" onPlayerTimeupdate!", gklog);
  17169. console.log(" onPlayerTimeupdate!", gklog2);
  17170. },
  17171. lookVedio(u, i) {
  17172. this.isClickNav = "";
  17173. // this.playerOptions.sources[0].src = u;
  17174. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17175. d.sources[0].src = u;
  17176. this.playerO[this.taskCount] = d;
  17177. this.showType = 0;
  17178. // this.isClickNav = "video" + i;
  17179. this.isClickNav = i;
  17180. this.$forceUpdate();
  17181. },
  17182. lookText(i, t) {
  17183. this.isClickNav = "";
  17184. // this.text = this.textList[i][t];
  17185. this.text = this.vChapterData[i][t];
  17186. // this.dialogVisible1 = true;
  17187. this.showType = 1;
  17188. // this.isClickNav = "text" + t;
  17189. this.isClickNav = t;
  17190. },
  17191. lookTools(i, t) {
  17192. this.chapTools = this.chapToolList[i][t];
  17193. this.dialogVisible2 = true;
  17194. },
  17195. async openFile(f) {
  17196. this.pptImgUrl = "";
  17197. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17198. if (
  17199. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17200. -1
  17201. ) {
  17202. let _uuurl = await this.checkLink(f);
  17203. this.pptImgUrl =
  17204. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17205. this.showPDF = false;
  17206. this.dialogVisible3 = true;
  17207. } else if (
  17208. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17209. ) {
  17210. this.pptImgUrl = f;
  17211. this.showPDF = true;
  17212. this.dialogVisible3 = true;
  17213. }
  17214. },
  17215. openTable(f) {
  17216. this.tableJson = JSON.parse(f.works);
  17217. this.dialogVisibleTable2 = true;
  17218. },
  17219. openWord(f) {
  17220. this.tableJson = JSON.parse(f.works);
  17221. this.dialogVisibleTable3 = true;
  17222. },
  17223. doUrl(url, i) {
  17224. this.isClickNav = "";
  17225. this.pptImgUrl1 = "";
  17226. this.showType = 2;
  17227. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17228. url = "https://" + url;
  17229. }
  17230. this.pptImgUrl1 = "";
  17231. setTimeout(() => {
  17232. this.pptImgUrl1 = url;
  17233. }, 500);
  17234. // this.isClickNav = "line" + i;
  17235. this.isClickNav = i;
  17236. this.$forceUpdate();
  17237. },
  17238. checkPhoto(f, i) {
  17239. this.showType = 4;
  17240. this.pptImgUrl1 = f.url;
  17241. this.isClickNav = i;
  17242. this.$forceUpdate();
  17243. },
  17244. async downFile(f, i) {
  17245. this.isClickNav = "";
  17246. this.pptImgUrl1 = "";
  17247. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17248. if (
  17249. a.indexOf(
  17250. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17251. ) != -1
  17252. ) {
  17253. let _uuurl = await this.checkLink(f.url);
  17254. this.pptImgUrl1 =
  17255. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17256. // this.dialogVisible3 = true;
  17257. this.showType = 2;
  17258. } else if (
  17259. this.isAssetTypeAnImage(
  17260. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17261. )
  17262. ) {
  17263. this.showType = 4;
  17264. this.pptImgUrl1 = f.url;
  17265. } else if (
  17266. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17267. "PDF"
  17268. ) {
  17269. this.pptImgUrl1 = f.url;
  17270. // this.dialogVisible3 = true;
  17271. this.showType = 3;
  17272. } else {
  17273. window.open(this.file[i].url);
  17274. }
  17275. // this.isClickNav = "word" + i;
  17276. this.isClickNav = i;
  17277. },
  17278. downFileList(i) {
  17279. window.open(this.noImgList[i].url);
  17280. },
  17281. openAddWork() {
  17282. this.dialogVisible = true;
  17283. },
  17284. addBzWorks() {
  17285. let params = [
  17286. {
  17287. uid: this.userid,
  17288. cid: this.id,
  17289. stage: this.courseType,
  17290. task: this.taskCount,
  17291. tool: this.toolindex,
  17292. content: JSON.stringify(this.eScore),
  17293. type: 6,
  17294. },
  17295. ];
  17296. this.ajax
  17297. .post(this.$store.state.api + "addCourseWorks", params)
  17298. .then((res) => {
  17299. this.$message({
  17300. message: "提交成功",
  17301. type: "success",
  17302. });
  17303. this.eScore = { eBzText: "", eStar: [] };
  17304. this.studentEvalDialogVisible = false;
  17305. this.selectSWorks();
  17306. })
  17307. .catch((err) => {
  17308. this.$message.error("提交失败");
  17309. console.error(err);
  17310. });
  17311. },
  17312. addBzWorksTeacher() {
  17313. let params = [
  17314. {
  17315. uid: this.sStudent.userid,
  17316. cid: this.id,
  17317. stage: this.courseType,
  17318. task: this.taskCount,
  17319. tool: this.toolindex,
  17320. content: JSON.stringify(this.eScore),
  17321. type: 6,
  17322. },
  17323. ];
  17324. this.ajax
  17325. .post(this.$store.state.api + "addCourseWorks", params)
  17326. .then((res) => {
  17327. this.$message({
  17328. message: "提交成功",
  17329. type: "success",
  17330. });
  17331. this.eScore = { eBzText: "", eStar: [] };
  17332. this.studentEvalDialogVisibleTeacher = false;
  17333. this.selectSWorks();
  17334. })
  17335. .catch((err) => {
  17336. this.$message.error("提交失败");
  17337. console.error(err);
  17338. });
  17339. },
  17340. addStudentAsk() {
  17341. if (!this.radio.length) {
  17342. this.$message.error("请选择选项");
  17343. return;
  17344. }
  17345. for (var i = 0; i < this.askJson.askCount; i++) {
  17346. if (
  17347. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17348. (this.radio[i] !== 0 && !this.radio[i])
  17349. ) {
  17350. this.$message.error("请选择选项");
  17351. return;
  17352. }
  17353. }
  17354. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17355. let params = [
  17356. {
  17357. uid: this.userid,
  17358. cid: this.id,
  17359. stage: this.courseType,
  17360. task: this.taskCount,
  17361. tool: this.toolindex,
  17362. content: JSON.stringify(this.askList),
  17363. type: 2,
  17364. },
  17365. ];
  17366. this.ajax
  17367. .post(this.$store.state.api + "addCourseWorks", params)
  17368. .then((res) => {
  17369. this.$message({
  17370. message: "提交成功",
  17371. type: "success",
  17372. });
  17373. this.askList = [];
  17374. this.dialogVisible5 = false;
  17375. this.selectStudent();
  17376. this.selectSWorks();
  17377. this.selectSLook();
  17378. })
  17379. .catch((err) => {
  17380. this.$message.error("提交失败");
  17381. console.error(err);
  17382. });
  17383. },
  17384. addStudentAskTeacher() {
  17385. if (!this.radio.length) {
  17386. this.$message.error("请选择选项");
  17387. return;
  17388. }
  17389. for (var i = 0; i < this.askJson.askCount; i++) {
  17390. if (
  17391. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17392. (this.radio[i] !== 0 && !this.radio[i])
  17393. ) {
  17394. this.$message.error("请选择选项");
  17395. return;
  17396. }
  17397. }
  17398. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17399. let params = [
  17400. {
  17401. uid: this.sStudent.userid,
  17402. cid: this.id,
  17403. stage: this.courseType,
  17404. task: this.taskCount,
  17405. tool: this.toolindex,
  17406. content: JSON.stringify(this.askList),
  17407. type: 2,
  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.askList = [];
  17418. this.dialogVisible5Teacher = false;
  17419. this.selectStudent();
  17420. this.selectSWorks();
  17421. this.selectSLook();
  17422. })
  17423. .catch((err) => {
  17424. this.$message.error("提交失败");
  17425. console.error(err);
  17426. });
  17427. },
  17428. addStudentTest() {
  17429. if (!this.radio.length) {
  17430. this.$message.error("请选择选项");
  17431. return;
  17432. }
  17433. for (var i = 0; i < this.testJson.testCount; i++) {
  17434. if (
  17435. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17436. (this.radio[i] !== 0 && !this.radio[i])
  17437. ) {
  17438. this.$message.error("请选择选项");
  17439. return;
  17440. }
  17441. }
  17442. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17443. let params = [
  17444. {
  17445. uid: this.userid,
  17446. cid: this.id,
  17447. stage: this.courseType,
  17448. task: this.taskCount,
  17449. tool: this.toolindex,
  17450. content: JSON.stringify(this.askList),
  17451. type: 8,
  17452. },
  17453. ];
  17454. this.ajax
  17455. .post(this.$store.state.api + "addCourseWorks", params)
  17456. .then((res) => {
  17457. this.$message({
  17458. message: "提交成功",
  17459. type: "success",
  17460. });
  17461. this.askList = [];
  17462. this.dialogVisibleChoice = false;
  17463. this.selectStudent();
  17464. this.selectSWorks();
  17465. this.selectSLook();
  17466. })
  17467. .catch((err) => {
  17468. this.$message.error("提交失败");
  17469. console.error(err);
  17470. });
  17471. },
  17472. addStudentTestTeacher() {
  17473. if (!this.radio.length) {
  17474. this.$message.error("请选择选项");
  17475. return;
  17476. }
  17477. for (var i = 0; i < this.testJson.testCount; i++) {
  17478. if (
  17479. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17480. (this.radio[i] !== 0 && !this.radio[i])
  17481. ) {
  17482. this.$message.error("请选择选项");
  17483. return;
  17484. }
  17485. }
  17486. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17487. let params = [
  17488. {
  17489. uid: this.sStudent.userid,
  17490. cid: this.id,
  17491. stage: this.courseType,
  17492. task: this.taskCount,
  17493. tool: this.toolindex,
  17494. content: JSON.stringify(this.askList),
  17495. type: 8,
  17496. },
  17497. ];
  17498. this.ajax
  17499. .post(this.$store.state.api + "addCourseWorks", params)
  17500. .then((res) => {
  17501. this.$message({
  17502. message: "提交成功",
  17503. type: "success",
  17504. });
  17505. this.askList = [];
  17506. this.dialogVisibleChoiceTeacher = false;
  17507. this.selectStudent();
  17508. this.selectSWorks();
  17509. this.selectSLook();
  17510. })
  17511. .catch((err) => {
  17512. this.$message.error("提交失败");
  17513. console.error(err);
  17514. });
  17515. },
  17516. addWork() {
  17517. if (this.studyJuri[0].content == "") {
  17518. this.$message.error("请将信息填写完整");
  17519. return;
  17520. } else if (this.studyJuri[0].cover.length == 0) {
  17521. this.$message.error("请将信息填写完整");
  17522. return;
  17523. } else if (this.studyJuri[0].upVedio.length == 0) {
  17524. this.$message.error("请将信息填写完整");
  17525. return;
  17526. }
  17527. if (this.isNoHomeWork) {
  17528. this.$confirm(
  17529. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17530. "提示",
  17531. {
  17532. confirmButtonText: "确定",
  17533. cancelButtonText: "取消",
  17534. type: "warning",
  17535. }
  17536. )
  17537. .then(() => {
  17538. let params = [
  17539. {
  17540. uid: this.userid,
  17541. cid: this.id,
  17542. stage: this.courseType,
  17543. task: this.taskCount,
  17544. content: JSON.stringify(this.studyJuri),
  17545. },
  17546. ];
  17547. this.ajax
  17548. .post(this.$store.state.api + "addWorks", params)
  17549. .then((res) => {
  17550. this.$message({
  17551. message: "提交成功",
  17552. type: "success",
  17553. });
  17554. this.isNoHomeWork = true;
  17555. this.dialogVisible = false;
  17556. })
  17557. .catch((err) => {
  17558. this.$message.error("提交失败");
  17559. console.error(err);
  17560. });
  17561. })
  17562. .catch(() => {});
  17563. } else {
  17564. let params = [
  17565. {
  17566. uid: this.userid,
  17567. cid: this.id,
  17568. stage: this.courseType,
  17569. task: this.taskCount,
  17570. content: JSON.stringify(this.studyJuri),
  17571. },
  17572. ];
  17573. this.ajax
  17574. .post(this.$store.state.api + "addWorks", params)
  17575. .then((res) => {
  17576. this.$message({
  17577. message: "提交成功",
  17578. type: "success",
  17579. });
  17580. this.isNoHomeWork = true;
  17581. this.dialogVisible = false;
  17582. })
  17583. .catch((err) => {
  17584. this.$message.error("提交失败");
  17585. console.error(err);
  17586. });
  17587. }
  17588. },
  17589. selectCount() {
  17590. let params = {
  17591. cid: this.id,
  17592. chid: this.courseType,
  17593. uid: this.userid,
  17594. };
  17595. this.ajax
  17596. .get(this.$store.state.api + "selectToolsCount", params)
  17597. .then((res) => {
  17598. for (var i = 0; i < res.data[0].length; i++) {
  17599. if (res.data[0][i].tools == 1) {
  17600. this.wbCount = res.data[0][i].count;
  17601. } else if (res.data[0][i].tools == 2) {
  17602. this.wordCount = res.data[0][i].count;
  17603. } else if (res.data[0][i].tools == 3) {
  17604. this.mindCount = res.data[0][i].count;
  17605. } else if (res.data[0][i].tools == 4) {
  17606. this.askCount = res.data[0][i].count;
  17607. } else if (res.data[0][i].tools == 6) {
  17608. this.noteCount = res.data[0][i].count;
  17609. } else if (res.data[0][i].tools == 7) {
  17610. this.mindNetWorkCount = res.data[0][i].count;
  17611. } else if (res.data[0][i].tools == 8) {
  17612. this.libraryCount = res.data[0][i].count;
  17613. } else if (res.data[0][i].tools == 16) {
  17614. this.workCount = res.data[0][i].count;
  17615. } else if (res.data[0][i].tools == 10) {
  17616. this.timeCount = res.data[0][i].count;
  17617. } else if (res.data[0][i].tools == 15) {
  17618. this.answerCount = res.data[0][i].count;
  17619. } else if (res.data[0][i].tools == 18) {
  17620. this.trainCount = res.data[0][i].count;
  17621. }
  17622. }
  17623. })
  17624. .catch((err) => {
  17625. console.error(err);
  17626. });
  17627. },
  17628. openTools(t, i, index, c, sName,id) {
  17629. var z = JSON.parse(c);
  17630. this.noteName = sName;
  17631. if (t == 4) {
  17632. this.radio = [];
  17633. this.isAnswer = false;
  17634. let b = z[0].anwer;
  17635. this.radio = b;
  17636. this.askJson = z[0].askJson;
  17637. this.isAnswer = true;
  17638. this.dialogVisible5 = true;
  17639. } else if (t == 45) {
  17640. this.radio = [];
  17641. this.isAnswer = false;
  17642. let b = z[0].anwer;
  17643. this.radio = b;
  17644. this.testJson = z[0].testJson;
  17645. this.isAnswer = true;
  17646. this.dialogVisibleChoice = true;
  17647. }else if(t == 69){
  17648. this.oldEnglishJson1 = {}
  17649. this.oldEnglishJson = {}
  17650. this.englishList1 = {}
  17651. this.newEngIndex = -1;
  17652. this.isNoUserid = false;
  17653. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17654. .toolChoose[i].englishList;
  17655. this.oldEnglishJson = z;
  17656. this.engWid = id;
  17657. this.newEnglishList = { engTitle:"",engText:"" }
  17658. this.newEnglishList1 = []
  17659. this.selectEngC(id,z);
  17660. }else if(t == 62){
  17661. this.videoType = 1;
  17662. this.videoJson = {};
  17663. this.videoJson = JSON.parse(c);
  17664. // this.videoJson =
  17665. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17666. // index
  17667. // ].toolChoose[i].videoJson;
  17668. this.dialogVisibleVideo = true;
  17669. //this.dialog
  17670. }
  17671. // else if (t == 15) {
  17672. // this.answerQ = "";
  17673. // this.questionAnswer = "";
  17674. // this.answerQ = z[0].answerTitle;
  17675. // this.questionAnswer = z[0].answer;
  17676. // this.answerDialogVisible = true;
  17677. // }
  17678. },
  17679. fastText(p, t) {
  17680. if (t == 1) {
  17681. this.commentText += p;
  17682. } else {
  17683. this.eScore.eBzText += p;
  17684. }
  17685. },
  17686. addTools(t, i, index) {
  17687. var a = 0;
  17688. // this.taskCount = index;
  17689. this.toolindex = i;
  17690. if (t == 1) {
  17691. if (this.wbCount > 0) {
  17692. this.updateCount(this.wbCount, t);
  17693. } else {
  17694. this.wbCount++;
  17695. a = this.wbCount;
  17696. this.toolsCount(a, t);
  17697. }
  17698. window.parent.postMessage(
  17699. {
  17700. tools: "1",
  17701. cid: this.id,
  17702. stage: this.courseType,
  17703. task: this.taskCount,
  17704. tool: i,
  17705. },
  17706. "*"
  17707. );
  17708. } else if (t == 2) {
  17709. if (this.wordCount > 0) {
  17710. this.updateCount(this.wordCount, t);
  17711. } else {
  17712. this.wordCount++;
  17713. a = this.wordCount;
  17714. this.toolsCount(a, t);
  17715. }
  17716. window.parent.postMessage({ tools: "2" }, "*");
  17717. } else if (t == 3) {
  17718. if (this.mindCount > 0) {
  17719. this.updateCount(this.mindCount, t);
  17720. } else {
  17721. this.mindCount++;
  17722. a = this.mindCount;
  17723. this.toolsCount(a, t);
  17724. }
  17725. window.parent.postMessage(
  17726. {
  17727. tools: "3",
  17728. cid: this.id,
  17729. stage: this.courseType,
  17730. task: this.taskCount,
  17731. tool: i,
  17732. },
  17733. "*"
  17734. );
  17735. } else if (t == 4) {
  17736. this.radio = [];
  17737. this.noteName = "";
  17738. this.isAnswer = false;
  17739. if (this.askCount > 0) {
  17740. this.updateCount(this.askCount, t);
  17741. } else {
  17742. this.askCount++;
  17743. a = this.askCount;
  17744. this.toolsCount(a, t);
  17745. }
  17746. if (!this.dialogVisible2) {
  17747. this.askJson.askJson =
  17748. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17749. index
  17750. ].toolChoose[i].askJson;
  17751. this.askJson.askTitle =
  17752. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17753. index
  17754. ].toolChoose[i].askTitle;
  17755. this.askJson.askCount =
  17756. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17757. index
  17758. ].toolChoose[i].askCount;
  17759. } else {
  17760. this.askJson.askJson = this.chapTools.askJson.askJson;
  17761. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17762. this.askJson.askCount = this.chapTools.askJson.askCount;
  17763. }
  17764. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17765. if (this.askJson.askJson[k].type == "2") {
  17766. this.radio.push([]);
  17767. } else {
  17768. this.radio.push("");
  17769. }
  17770. }
  17771. this.dialogVisible5 = true;
  17772. // window.parent.postMessage({ tools: "4" }, "*");
  17773. } else if (t == 45) {
  17774. this.noteName = "";
  17775. this.radio = [];
  17776. this.isAnswer = false;
  17777. if (this.askCount > 0) {
  17778. this.updateCount(this.askCount, t);
  17779. } else {
  17780. this.askCount++;
  17781. a = this.askCount;
  17782. this.toolsCount(a, t);
  17783. }
  17784. this.testJson =
  17785. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17786. index
  17787. ].toolChoose[i].testJson;
  17788. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17789. if (this.testJson.testJson[k].type == "2") {
  17790. this.radio.push([]);
  17791. } else {
  17792. this.radio.push("");
  17793. }
  17794. }
  17795. this.dialogVisibleChoice = true;
  17796. // window.parent.postMessage({ tools: "4" }, "*");
  17797. } else if (t == 5) {
  17798. if (this.scoreCount > 0) {
  17799. this.updateCount(this.scoreCount, t);
  17800. } else {
  17801. this.scoreCount++;
  17802. a = this.scoreCount;
  17803. this.toolsCount(a, t);
  17804. }
  17805. this.dialogVisible4 = true;
  17806. // window.parent.postMessage({ tools: "5" }, "*");
  17807. } else if (t == 6) {
  17808. if (this.noteCount > 0) {
  17809. this.updateCount(this.noteCount, t);
  17810. } else {
  17811. this.noteCount++;
  17812. a = this.noteCount;
  17813. this.toolsCount(a, t);
  17814. }
  17815. window.parent.postMessage(
  17816. {
  17817. tools: "6",
  17818. cid: this.id,
  17819. stage: this.courseType,
  17820. task: this.taskCount,
  17821. tool: i,
  17822. },
  17823. "*"
  17824. );
  17825. } else if (t == 7) {
  17826. if (this.mindNetWorkCount > 0) {
  17827. this.updateCount(this.mindNetWorkCount, t);
  17828. } else {
  17829. this.mindNetWorkCount++;
  17830. a = this.mindNetWorkCount;
  17831. this.toolsCount(a, t);
  17832. }
  17833. window.parent.postMessage(
  17834. {
  17835. tools: "7",
  17836. cid: this.id,
  17837. stage: this.courseType,
  17838. task: this.taskCount,
  17839. tool: i,
  17840. },
  17841. "*"
  17842. );
  17843. } else if (t == 16) {
  17844. if (this.workCount > 0) {
  17845. this.updateCount(this.workCount, t);
  17846. } else {
  17847. this.workCount++;
  17848. a = this.workCount;
  17849. this.toolsCount(a, t);
  17850. }
  17851. this.dialogVisible = true;
  17852. } else if (t == 50) {
  17853. if (this.tType == 2) {
  17854. this.$message.error("不支持学生使用");
  17855. return;
  17856. }
  17857. this.plworkFile = [];
  17858. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17859. if (!this.uploadCid) {
  17860. this.$message.error(
  17861. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17862. );
  17863. return;
  17864. }
  17865. // this.uploadCid =
  17866. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17867. // index
  17868. // ].toolChoose[i].uploadJson[0];
  17869. this.selectUploadStudent(2);
  17870. } else if (t == 8) {
  17871. if (this.libraryCount > 0) {
  17872. this.updateCount(this.libraryCount, t);
  17873. } else {
  17874. this.libraryCount++;
  17875. a = this.libraryCount;
  17876. this.toolsCount(a, t);
  17877. }
  17878. window.parent.postMessage({ tools: "8" }, "*");
  17879. } else if (t == 17) {
  17880. if (this.libraryCount > 0) {
  17881. this.updateCount(this.libraryCount, t);
  17882. } else {
  17883. this.libraryCount++;
  17884. a = this.libraryCount;
  17885. this.toolsCount(a, t);
  17886. }
  17887. window.parent.postMessage({ tools: "17" }, "*");
  17888. } else if (t == 18) {
  17889. if (this.trainCount > 0) {
  17890. this.updateCount(this.trainCount, t);
  17891. } else {
  17892. this.trainCount++;
  17893. a = this.trainCount;
  17894. this.toolsCount(a, t);
  17895. }
  17896. window.parent.postMessage({ tools: "18" }, "*");
  17897. } else if (t == 10) {
  17898. if (this.timeCount > 0) {
  17899. this.updateCount(this.timeCount, t);
  17900. } else {
  17901. this.timeCount++;
  17902. a = this.timeCount;
  17903. this.toolsCount(a, t);
  17904. }
  17905. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  17906. .taskJson[index].toolChoose[i].preTime
  17907. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17908. .toolChoose[i].preTime
  17909. : "";
  17910. this.timeDialogVisible = true;
  17911. } else if (t == 15) {
  17912. this.answerQ = "";
  17913. this.questionAnswer = "";
  17914. if (this.answerCount > 0) {
  17915. this.updateCount(this.answerCount, t);
  17916. } else {
  17917. this.answerCount++;
  17918. a = this.answerCount;
  17919. this.toolsCount(a, t);
  17920. }
  17921. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17922. .taskJson[index].toolChoose[i].answerQ
  17923. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17924. .toolChoose[i].answerQ
  17925. : "";
  17926. this.answerDialogVisible = true;
  17927. } else if (t == 21) {
  17928. window.parent.postMessage({ tools: "21" }, "*");
  17929. } else if (t == 22) {
  17930. window.parent.postMessage({ tools: "22" }, "*");
  17931. } else if (t == 23) {
  17932. window.parent.postMessage({ tools: "23" }, "*");
  17933. } else if (t == 24) {
  17934. window.parent.postMessage({ tools: "24" }, "*");
  17935. } else if (t == 25) {
  17936. window.parent.postMessage({ tools: "25" }, "*");
  17937. } else if (t == 31) {
  17938. window.parent.postMessage({ tools: "31" }, "*");
  17939. } else if (t == 28) {
  17940. window.parent.postMessage({ tools: "28" }, "*");
  17941. } else if (t == 37) {
  17942. window.parent.postMessage({ tools: "37" }, "*");
  17943. } else if (t == 38) {
  17944. window.parent.postMessage({ tools: "38" }, "*");
  17945. } else if (t == 39) {
  17946. window.parent.postMessage({ tools: "39" }, "*");
  17947. } else if (t == 32) {
  17948. window.parent.postMessage({ tools: "32" }, "*");
  17949. } else if (t == 66) {
  17950. window.parent.postMessage({ tools: "66" }, "*");
  17951. } else if (t == 67) {
  17952. window.parent.postMessage({ tools: "67" }, "*");
  17953. } else if (t == 68) {
  17954. window.parent.postMessage({ tools: "68" }, "*");
  17955. } else if (t == 57) {
  17956. // window.parent.postMessage({ tools: "57" }, "*");
  17957. window.parent.postMessage(
  17958. {
  17959. tools: "57u",
  17960. cid: this.id,
  17961. stage: this.courseType,
  17962. task: this.taskCount,
  17963. tool: i,
  17964. },
  17965. "*"
  17966. );
  17967. } else if (t == 58) {
  17968. window.parent.postMessage({ tools: "58" }, "*");
  17969. } else if (t == 59) {
  17970. window.parent.postMessage({ tools: "59" }, "*");
  17971. } else if (t == 60) {
  17972. window.parent.postMessage({ tools: "60" }, "*");
  17973. } else if (t == 61) {
  17974. window.parent.postMessage({ tools: "61" }, "*");
  17975. } else if (t == 63) {
  17976. window.parent.postMessage({ tools: "63" }, "*");
  17977. } else if (t == 71) {
  17978. window.parent.postMessage({ tools: "71" }, "*");
  17979. } else if (t == 69) {
  17980. if (this.worksStudent[i].length) {
  17981. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17982. if (this.userid == this.worksStudent[i][k].userid) {
  17983. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  17984. break;
  17985. } else {
  17986. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17987. }
  17988. }
  17989. } else {
  17990. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17991. }
  17992. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  17993. .taskJson[index].toolChoose[i].englishList
  17994. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17995. .toolChoose[i].englishList
  17996. : {};
  17997. this.englishToolIndex = i;
  17998. this.myAnList = this.myAnswerList1;
  17999. this.engDialogVisible = true;
  18000. } else if (t == 70) {
  18001. if (this.worksStudent[i].length) {
  18002. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18003. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18004. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18005. break;
  18006. } else {
  18007. this.englishVoiceJsonWork = [];
  18008. }
  18009. }
  18010. } else {
  18011. this.englishVoiceJsonWork = [];
  18012. }
  18013. let englishVoiceJson = {}
  18014. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18015. .taskJson[index].toolChoose[i].englishVoiceJson
  18016. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18017. .toolChoose[i].englishVoiceJson
  18018. : {};
  18019. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18020. this.EnglishVoiceDialog = true;
  18021. } else if (t == 65) {
  18022. if (this.tType == 2) {
  18023. this.$message.error("不支持学生使用");
  18024. return;
  18025. }
  18026. this.uploadCid = this.tcid;
  18027. if (!this.uploadCid) {
  18028. this.$message.error(
  18029. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18030. );
  18031. return;
  18032. }
  18033. this.selectPickStudent();
  18034. } else if (t == 26) {
  18035. window.parent.postMessage(
  18036. {
  18037. tools: "26",
  18038. cid: this.id,
  18039. stage: this.courseType,
  18040. task: this.taskCount,
  18041. tool: i,
  18042. },
  18043. "*"
  18044. );
  18045. } else if (t == 40) {
  18046. if (this.evalCount > 0) {
  18047. this.updateCount(this.evalCount, t);
  18048. } else {
  18049. this.evalCount++;
  18050. a = this.evalCount;
  18051. this.toolsCount(a, t);
  18052. }
  18053. this.eScore = { eBzText: "", eStar: [] };
  18054. if (this.worksStudent[i].length) {
  18055. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18056. if (this.userid == this.worksStudent[i][k].userid) {
  18057. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18058. this.rateJson =
  18059. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18060. index
  18061. ].toolChoose[i].rateJson;
  18062. break;
  18063. } else {
  18064. this.rateJson =
  18065. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18066. index
  18067. ].toolChoose[i].rateJson;
  18068. }
  18069. }
  18070. } else {
  18071. this.rateJson =
  18072. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18073. index
  18074. ].toolChoose[i].rateJson;
  18075. }
  18076. this.isStar = false;
  18077. this.studentEvalDialogVisible = true;
  18078. } else if (t == 41) {
  18079. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18080. .taskJson[index].toolChoose[i].selectJson
  18081. ? JSON.parse(
  18082. JSON.stringify(
  18083. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18084. index
  18085. ].toolChoose[i].selectJson
  18086. )
  18087. )
  18088. : { url: "", select: [], answer: [] };
  18089. if (this.worksStudent[i].length) {
  18090. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18091. if (this.userid == this.worksStudent[i][k].userid) {
  18092. var a = this.worksStudent[i][k].works.split(",");
  18093. for (var ki = 0; ki < a.length; ki++) {
  18094. a[ki] = parseInt(a[ki]);
  18095. }
  18096. this.selectAnswer = {
  18097. answer: a,
  18098. stu: this.worksStudent[i][k].sName,
  18099. };
  18100. break;
  18101. } else {
  18102. this.selectAnswer = { answer: [], stu: "" };
  18103. }
  18104. }
  18105. } else {
  18106. this.selectAnswer = { answer: [], stu: "" };
  18107. }
  18108. this.isSelect = false;
  18109. this.dialogVisibleSelect = true;
  18110. } else if (t == 44) {
  18111. window.parent.postMessage({ tools: "44" }, "*");
  18112. } else if (t == 47) {
  18113. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18114. .taskJson[index].toolChoose[i].sentenceList
  18115. ? JSON.parse(
  18116. JSON.stringify(
  18117. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18118. index
  18119. ].toolChoose[i].sentenceList
  18120. )
  18121. )
  18122. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18123. for (var q = 0; q < this.sentenceList.length; q++) {
  18124. this.sentenceList[q].chooseSenList = [];
  18125. this.sentenceList[q].addChangeSen = [];
  18126. this.sentenceList[q].addChangeSen = JSON.parse(
  18127. JSON.stringify(this.sentenceList[q].addSentence)
  18128. );
  18129. this.sentenceList[q].chooseSenList.length =
  18130. this.sentenceList[q].rightAnswer.length;
  18131. }
  18132. this.dialogVisibleSentence = true;
  18133. } else if (t == 48) {
  18134. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18135. .taskJson[index].toolChoose[i].tableJson
  18136. ? JSON.parse(
  18137. JSON.stringify(
  18138. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18139. index
  18140. ].toolChoose[i].tableJson
  18141. )
  18142. )
  18143. : { text: "" };
  18144. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18145. if (this.worksStudent[i].length) {
  18146. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18147. if (this.userid == this.worksStudent[i][k].userid) {
  18148. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18149. break;
  18150. }
  18151. }
  18152. }
  18153. this.dialogVisibleTable = true;
  18154. } else if (t == 52) {
  18155. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18156. .taskJson[index].toolChoose[i].wordJson
  18157. ? JSON.parse(
  18158. JSON.stringify(
  18159. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18160. index
  18161. ].toolChoose[i].wordJson
  18162. )
  18163. )
  18164. : { text: "" };
  18165. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18166. if (this.worksStudent[i].length) {
  18167. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18168. if (this.userid == this.worksStudent[i][k].userid) {
  18169. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18170. break;
  18171. }
  18172. }
  18173. }
  18174. this.dialogVisibleWord = true;
  18175. } else if (t == 49) {
  18176. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18177. return
  18178. }
  18179. this.groupJson =
  18180. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18181. index
  18182. ].toolChoose[i].groupJson;
  18183. this.islock = this.groupJson.islock == 1 ? true : false;
  18184. this.dialogVisibleGroup = true;
  18185. } else if (t == 62) {
  18186. this.videoType = 0;
  18187. this.videoJson = {};
  18188. this.videoJson =
  18189. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18190. index
  18191. ].toolChoose[i].videoJson;
  18192. this.dialogVisibleVideo = true;
  18193. }
  18194. },
  18195. teacherWorkSubmit(t, i, index, s) {
  18196. this.sStudent = s;
  18197. this.toolindex = i;
  18198. this.sTool = t;
  18199. if (this.tType !== "1" && this.tType !== "4") {
  18200. return;
  18201. }
  18202. if (t == 16 || t == 32 || t == 50) {
  18203. this.dialogVisibleWorks = true;
  18204. } else if (t == 15) {
  18205. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18206. .taskJson[index].toolChoose[i].answerQ
  18207. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18208. .toolChoose[i].answerQ
  18209. : "";
  18210. this.questionAnswer = "";
  18211. this.answerDialogVisibleTeacher = true; //问答
  18212. } else if (t == 52) {
  18213. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18214. .taskJson[index].toolChoose[i].wordJson
  18215. ? JSON.parse(
  18216. JSON.stringify(
  18217. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18218. index
  18219. ].toolChoose[i].wordJson
  18220. )
  18221. )
  18222. : { text: "" };
  18223. if (this.worksStudent[i].length) {
  18224. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18225. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18226. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18227. break;
  18228. }
  18229. }
  18230. }
  18231. this.dialogVisibleWordTeacher = true; //文档
  18232. } else if (t == 4) {
  18233. this.radio = [];
  18234. this.noteName = "";
  18235. this.isAnswer = false;
  18236. if (this.askCount > 0) {
  18237. this.updateCount(this.askCount, t);
  18238. } else {
  18239. this.askCount++;
  18240. a = this.askCount;
  18241. this.toolsCount(a, t);
  18242. }
  18243. if (!this.dialogVisible2) {
  18244. this.askJson.askJson =
  18245. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18246. index
  18247. ].toolChoose[i].askJson;
  18248. this.askJson.askTitle =
  18249. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18250. index
  18251. ].toolChoose[i].askTitle;
  18252. this.askJson.askCount =
  18253. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18254. index
  18255. ].toolChoose[i].askCount;
  18256. } else {
  18257. this.askJson.askJson = this.chapTools.askJson.askJson;
  18258. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18259. this.askJson.askCount = this.chapTools.askJson.askCount;
  18260. }
  18261. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18262. if (this.askJson.askJson[k].type == "2") {
  18263. this.radio.push([]);
  18264. } else {
  18265. this.radio.push("");
  18266. }
  18267. }
  18268. this.dialogVisible5Teacher = true;
  18269. } else if (t == 45) {
  18270. this.noteName = "";
  18271. this.radio = [];
  18272. this.isAnswer = false;
  18273. if (this.askCount > 0) {
  18274. this.updateCount(this.askCount, t);
  18275. } else {
  18276. this.askCount++;
  18277. a = this.askCount;
  18278. this.toolsCount(a, t);
  18279. }
  18280. this.testJson =
  18281. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18282. index
  18283. ].toolChoose[i].testJson;
  18284. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18285. if (this.testJson.testJson[k].type == "2") {
  18286. this.radio.push([]);
  18287. } else {
  18288. this.radio.push("");
  18289. }
  18290. }
  18291. this.dialogVisibleChoiceTeacher = true;
  18292. } else if (t == 41) {
  18293. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18294. .taskJson[index].toolChoose[i].selectJson
  18295. ? JSON.parse(
  18296. JSON.stringify(
  18297. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18298. index
  18299. ].toolChoose[i].selectJson
  18300. )
  18301. )
  18302. : { url: "", select: [], answer: [] };
  18303. if (this.worksStudent[i].length) {
  18304. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18305. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18306. var a = this.worksStudent[i][k].works.split(",");
  18307. for (var ki = 0; ki < a.length; ki++) {
  18308. a[ki] = parseInt(a[ki]);
  18309. }
  18310. this.selectAnswer = {
  18311. answer: a,
  18312. stu: this.worksStudent[i][k].sName,
  18313. };
  18314. break;
  18315. } else {
  18316. this.selectAnswer = { answer: [], stu: "" };
  18317. }
  18318. }
  18319. } else {
  18320. this.selectAnswer = { answer: [], stu: "" };
  18321. }
  18322. this.isSelect = false;
  18323. this.dialogVisibleSelectTeacher = true;
  18324. } else if (t == 47) {
  18325. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18326. .taskJson[index].toolChoose[i].sentenceList
  18327. ? JSON.parse(
  18328. JSON.stringify(
  18329. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18330. index
  18331. ].toolChoose[i].sentenceList
  18332. )
  18333. )
  18334. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18335. for (var q = 0; q < this.sentenceList.length; q++) {
  18336. this.sentenceList[q].chooseSenList = [];
  18337. this.sentenceList[q].addChangeSen = [];
  18338. this.sentenceList[q].addChangeSen = JSON.parse(
  18339. JSON.stringify(this.sentenceList[q].addSentence)
  18340. );
  18341. this.sentenceList[q].chooseSenList.length =
  18342. this.sentenceList[q].rightAnswer.length;
  18343. }
  18344. this.dialogVisibleSentenceTeacher = true;
  18345. } else if (t == 48) {
  18346. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18347. .taskJson[index].toolChoose[i].tableJson
  18348. ? JSON.parse(
  18349. JSON.stringify(
  18350. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18351. index
  18352. ].toolChoose[i].tableJson
  18353. )
  18354. )
  18355. : { text: "" };
  18356. if (this.worksStudent[i].length) {
  18357. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18358. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18359. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18360. break;
  18361. }
  18362. }
  18363. }
  18364. this.dialogVisibleTableTeacher = true;
  18365. } else if (t == 40) {
  18366. if (this.evalCount > 0) {
  18367. this.updateCount(this.evalCount, t);
  18368. } else {
  18369. this.evalCount++;
  18370. a = this.evalCount;
  18371. this.toolsCount(a, t);
  18372. }
  18373. this.eScore = { eBzText: "", eStar: [] };
  18374. if (this.worksStudent[i].length) {
  18375. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18376. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18377. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18378. this.rateJson =
  18379. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18380. index
  18381. ].toolChoose[i].rateJson;
  18382. break;
  18383. } else {
  18384. this.rateJson =
  18385. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18386. index
  18387. ].toolChoose[i].rateJson;
  18388. }
  18389. }
  18390. } else {
  18391. this.rateJson =
  18392. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18393. index
  18394. ].toolChoose[i].rateJson;
  18395. }
  18396. this.isStar = false;
  18397. this.studentEvalDialogVisibleTeacher = true;
  18398. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18399. window.parent.postMessage(
  18400. {
  18401. tools: t + "teacher",
  18402. cid: this.id,
  18403. stage: this.courseType,
  18404. task: this.taskCount,
  18405. tool: i,
  18406. student: this.sStudent,
  18407. },
  18408. "*"
  18409. );
  18410. }
  18411. },
  18412. openCocoPi(tool, i, uid, uname) {
  18413. let student = {
  18414. userid: uid,
  18415. student: uname,
  18416. };
  18417. if (tool == 57) {
  18418. window.parent.postMessage(
  18419. {
  18420. tools: tool + "teacher",
  18421. cid: this.id,
  18422. stage: this.courseType,
  18423. task: this.taskCount,
  18424. tool: i,
  18425. student: student,
  18426. },
  18427. "*"
  18428. );
  18429. }
  18430. },
  18431. setRightAnswer(s, i, j) {
  18432. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18433. if (
  18434. this.sentenceList[i].chooseSenList[q] == undefined ||
  18435. this.sentenceList[i].chooseSenList[q] == ""
  18436. ) {
  18437. this.sentenceList[i].chooseSenList[q] = s;
  18438. this.sentenceList[i].addChangeSen[j] = "";
  18439. break;
  18440. }
  18441. }
  18442. this.$forceUpdate();
  18443. },
  18444. returnCard(r, i, j) {
  18445. var a = this.sentenceList[i].addSentence.indexOf(r);
  18446. this.sentenceList[i].chooseSenList[j] = "";
  18447. this.sentenceList[i].addChangeSen[a] = r;
  18448. this.$forceUpdate();
  18449. },
  18450. // addSentenceTool() {
  18451. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18452. // this.taskCount
  18453. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18454. // this.sentenceList = [
  18455. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18456. // ];
  18457. // this.dialogVisibleSentence = false;
  18458. // },
  18459. toolsCount(a, t) {
  18460. let params = {
  18461. cid: this.id,
  18462. chid: this.courseType,
  18463. uid: this.userid,
  18464. tid: t,
  18465. count: a,
  18466. };
  18467. this.ajax
  18468. .get(this.$store.state.api + "insertToolsCount", params)
  18469. .then((res) => {
  18470. this.selectCount();
  18471. })
  18472. .catch((err) => {
  18473. console.error(err);
  18474. });
  18475. },
  18476. updateCount(c, t) {
  18477. c++;
  18478. let params = {
  18479. cid: this.id,
  18480. chid: this.courseType,
  18481. uid: this.userid,
  18482. tid: t,
  18483. count: c,
  18484. };
  18485. this.ajax
  18486. .get(this.$store.state.api + "updateToolsCount", params)
  18487. .then((res) => {
  18488. this.selectCount();
  18489. })
  18490. .catch((err) => {
  18491. console.error(err);
  18492. });
  18493. },
  18494. checkEva() {
  18495. if (this.evalua != "") {
  18496. for (var i = 0; i < this.evaJuri.length; i++) {
  18497. if (this.evalua == this.evaJuri[i].id) {
  18498. this.eTitle = this.evaJuri[i].title;
  18499. this.eJson = JSON.parse(this.evaJuri[i].content);
  18500. }
  18501. }
  18502. this.$forceUpdate();
  18503. setTimeout(() => {
  18504. this.setMindData();
  18505. }, 0);
  18506. }
  18507. },
  18508. selectEva() {
  18509. let params = {
  18510. oid: this.oid,
  18511. };
  18512. this.ajax
  18513. .get(this.$store.state.api + "selectAllEvaluation", params)
  18514. .then((res) => {
  18515. this.evaJuri = res.data[0];
  18516. })
  18517. .catch((err) => {
  18518. console.error(err);
  18519. });
  18520. },
  18521. setMindData() {
  18522. this.data.data = [];
  18523. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18524. let _eJson = Object.keys(this.eJson);
  18525. let _e = this.eJson;
  18526. for (let i = 0; i < _eJson.length; i++) {
  18527. let element = _e[_eJson[i]];
  18528. this.data.data.push({
  18529. id: element.id,
  18530. parentid: "root",
  18531. topic: element.name,
  18532. });
  18533. let _eJsonc = Object.keys(element.child);
  18534. let _e2 = element.child;
  18535. for (let j = 0; j < _eJsonc.length; j++) {
  18536. let _ec = _e2[_eJsonc[j]];
  18537. this.data.data.push({
  18538. id: _ec.id,
  18539. parentid: element.id,
  18540. topic: _ec.name,
  18541. });
  18542. let _eJsonz = Object.keys(_ec.child);
  18543. let _e3 = _ec.child;
  18544. for (let z = 0; z < _eJsonz.length; z++) {
  18545. let _ez = _e3[_eJsonz[z]];
  18546. this.data.data.push({
  18547. id: _ez.id,
  18548. parentid: _ec.id,
  18549. topic: _ez.name,
  18550. });
  18551. }
  18552. }
  18553. }
  18554. this.$forceUpdate();
  18555. },
  18556. checkFileFull(type, url) {
  18557. this.fullDialogVisible = true;
  18558. this.fulltype = type;
  18559. this.fullUrl = url;
  18560. },
  18561. async checkFileFull1(t, f) {
  18562. this.fullDialogVisible = true;
  18563. if (t == 6) {
  18564. this.fulltype = 1;
  18565. this.fullUrl = JSON.parse(JSON.stringify(f));
  18566. } else if (t == 8) {
  18567. this.fulltype = 2;
  18568. this.fullUrl = f.url;
  18569. } else if (
  18570. t == 3 &&
  18571. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18572. "PDF"
  18573. ) {
  18574. this.fulltype = 3;
  18575. this.fullUrl = f.url;
  18576. } else if (t == 3) {
  18577. this.fulltype = 2;
  18578. let _uuurl = await this.checkLink(f.url);
  18579. this.fullUrl =
  18580. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18581. }
  18582. },
  18583. openSname(n, id, i, uid) {
  18584. this.snameWid = id;
  18585. this.worksSName = n;
  18586. this.worksSid = uid == n ? "" : uid;
  18587. this.toolindex = i;
  18588. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18589. if (!this.uploadCid) {
  18590. this.$message.error(
  18591. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18592. );
  18593. return;
  18594. }
  18595. this.selectUploadStudent(1);
  18596. },
  18597. updateName() {
  18598. let params = {
  18599. n: this.worksSName,
  18600. cid: this.snameWid,
  18601. };
  18602. this.ajax
  18603. .get(this.$store.state.api + "updateCourseWorksName", params)
  18604. .then((res) => {
  18605. this.$message({
  18606. message: "修改成功",
  18607. type: "success",
  18608. });
  18609. this.dialogVisibleSname = false;
  18610. this.getCourseDetail(2);
  18611. this.snameWid = "";
  18612. this.worksSName = "";
  18613. })
  18614. .catch((err) => {
  18615. console.error(err);
  18616. });
  18617. },
  18618. downloadFile2(f) {
  18619. // const loading = this.$loading.service({
  18620. // background: "rgba(255, 255, 255, 0.7)",
  18621. // target: document.body,
  18622. // text: "文件加载中...",
  18623. // });
  18624. // let url2 = f.url;
  18625. // let _url2 = "";
  18626. // if (
  18627. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18628. // ) {
  18629. // _url2 = url2.split(
  18630. // "https://view.officeapps.live.com/op/view.aspx?src="
  18631. // )[1];
  18632. // } else {
  18633. // _url2 = url2;
  18634. // }
  18635. // let params = {
  18636. // url: _url2,
  18637. // name: f.name,
  18638. // };
  18639. // this.ajax
  18640. // .get(this.$store.state.api + "download", params)
  18641. // .then((res) => {
  18642. // loading.close();
  18643. // let content = res.data.data.data;
  18644. // let ab = new ArrayBuffer(content.length);
  18645. // let view = new Uint8Array(ab);
  18646. // for (var i = 0; i < content.length; ++i) {
  18647. // view[i] = content[i];
  18648. // }
  18649. // let elink = document.createElement("a");
  18650. // elink.download = f.name;
  18651. // elink.style.display = "none";
  18652. // let blob = new Blob([ab], {
  18653. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18654. // });
  18655. // elink.href = URL.createObjectURL(blob);
  18656. // document.body.appendChild(elink);
  18657. // elink.click();
  18658. // document.body.removeChild(elink);
  18659. // })
  18660. // .catch((err) => {
  18661. // loading.close();
  18662. // console.error(err);
  18663. // });
  18664. var credentials = {
  18665. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18666. secretAccessKey: "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",
  18667. }; //秘钥形式的登录上传
  18668. window.AWS.config.update(credentials);
  18669. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18670. let url2 = f.url;
  18671. let _url2 = "";
  18672. if (
  18673. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18674. ) {
  18675. _url2 = url2.split(
  18676. "https://view.officeapps.live.com/op/view.aspx?src="
  18677. )[1];
  18678. } else {
  18679. _url2 = url2;
  18680. }
  18681. let _this = this;
  18682. _this.downLoading = true
  18683. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18684. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18685. var params = {
  18686. Bucket: "ccrb",
  18687. Key: name
  18688. };
  18689. s3.getObject(params, function (err, data) {
  18690. _this.downLoading = false
  18691. if (err) console.log(err, err.stack); // an error occurred
  18692. else {
  18693. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18694. let a = document.createElement("a");
  18695. a.name = f.name;
  18696. a.href = url;
  18697. a.download = f.name;
  18698. a.click();
  18699. console.log(data);
  18700. } // sxuccessful response
  18701. });
  18702. return;
  18703. let url = f.url;
  18704. let _url = "";
  18705. if (
  18706. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18707. ) {
  18708. _url = url.split(
  18709. "https://view.officeapps.live.com/op/view.aspx?src="
  18710. )[1];
  18711. } else {
  18712. _url = url;
  18713. }
  18714. _this.downLoading = true
  18715. let x = new XMLHttpRequest();
  18716. x.open("GET", _url, true);
  18717. x.responseType = "blob";
  18718. x.onload = function () {
  18719. _this.downLoading = false
  18720. let url = window.URL.createObjectURL(new Blob([x.response]));
  18721. let a = document.createElement("a");
  18722. a.name = f.name;
  18723. a.href = url;
  18724. a.download = f.name;
  18725. a.click();
  18726. };
  18727. x.send();
  18728. },
  18729. downloadFile(url) {
  18730. var credentials = {
  18731. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18732. secretAccessKey: "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",
  18733. }; //秘钥形式的登录上传
  18734. window.AWS.config.update(credentials);
  18735. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18736. let url2 = url;
  18737. let _url2 = "";
  18738. if (
  18739. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18740. ) {
  18741. _url2 = url2.split(
  18742. "https://view.officeapps.live.com/op/view.aspx?src="
  18743. )[1];
  18744. } else {
  18745. _url2 = url2;
  18746. }
  18747. const loading2 = this.$loading.service({
  18748. background: "rgba(255, 255, 255, 0.7)",
  18749. target: document.body,
  18750. text: "文件加载中...",
  18751. });
  18752. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18753. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18754. var params = {
  18755. Bucket: "ccrb",
  18756. Key: name
  18757. };
  18758. s3.getObject(params, function (err, data) {
  18759. loading2.close();
  18760. if (err) console.log(err, err.stack); // an error occurred
  18761. else {
  18762. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18763. let a = document.createElement("a");
  18764. a.name = name;
  18765. a.href = url;
  18766. a.download = name;
  18767. a.click();
  18768. console.log(data);
  18769. } // sxuccessful response
  18770. });
  18771. return;
  18772. let _this = this;
  18773. let _url = "";
  18774. if (
  18775. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18776. ) {
  18777. _url = url.split(
  18778. "https://view.officeapps.live.com/op/view.aspx?src="
  18779. )[1];
  18780. } else {
  18781. _url = url;
  18782. }
  18783. const x = new XMLHttpRequest();
  18784. x.open("GET", _url, true);
  18785. x.responseType = "blob";
  18786. // this.downLoading = true
  18787. const loading = _this.$loading.service({
  18788. background: "rgba(255, 255, 255, 0.7)",
  18789. target: document.body,
  18790. text: "文件加载中...",
  18791. });
  18792. // _this.$message.success("文件下载中...");
  18793. x.onload = function (e) {
  18794. loading.close();
  18795. let content = x.response;
  18796. let elink = document.createElement("a");
  18797. elink.download = decodeURI(
  18798. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  18799. );
  18800. elink.style.display = "none";
  18801. let blob = new Blob([content]);
  18802. elink.href = URL.createObjectURL(blob);
  18803. document.body.appendChild(elink);
  18804. elink.click();
  18805. document.body.removeChild(elink);
  18806. };
  18807. x.send();
  18808. },
  18809. openLine(url) {
  18810. window.open(url);
  18811. },
  18812. resize() {
  18813. if (document.getElementsByClassName("box_course").length) {
  18814. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18815. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18816. if (this.showType == 2 || this.showType == 3) {
  18817. document.getElementsByClassName("navBox")[0].style.height =
  18818. a - 40 + 46 + "px";
  18819. } else {
  18820. document.getElementsByClassName("navBox")[0].style.height =
  18821. a - 40 + "px";
  18822. }
  18823. }
  18824. this.Stbodywidth =
  18825. document.getElementsByClassName("student_body").length &&
  18826. document.getElementsByClassName("student_body")[0].offsetWidth;
  18827. },
  18828. closeDraw() {
  18829. this.bg = null;
  18830. this.drawShow = false;
  18831. },
  18832. showPicturePaint(url) {
  18833. let params = {
  18834. img: url,
  18835. };
  18836. this.ajax
  18837. .get(this.$store.state.api + "imgToBase64", params)
  18838. .then((res) => {
  18839. this.drawShow = true;
  18840. this.bg = res.data[0].img;
  18841. })
  18842. .catch((err) => {
  18843. console.error(err);
  18844. });
  18845. },
  18846. addImgDraw(base64) {
  18847. let file = { name: "批注图.png" };
  18848. let img = this.dataUrlToFile(base64, file);
  18849. this.beforeUpload1(img, 5);
  18850. },
  18851. addImgDrawImG(url) {
  18852. // console.log(url);
  18853. let params = [
  18854. {
  18855. wid: this.commentDetail.wid,
  18856. img: url,
  18857. },
  18858. ];
  18859. this.ajax
  18860. .post(this.$store.state.api + "updateCourseWorks", params)
  18861. .then((res) => {
  18862. this.$message({
  18863. message: "提交成功",
  18864. type: "success",
  18865. });
  18866. this.drawShow = false;
  18867. this.bg = "";
  18868. this.selectSWorks();
  18869. this.selectStudent();
  18870. })
  18871. .catch((err) => {
  18872. this.$message.error("提交失败");
  18873. console.error(err);
  18874. });
  18875. },
  18876. deletePicturePaint() {
  18877. this.$confirm("确定删除此批注吗?", "提示", {
  18878. confirmButtonText: "确定",
  18879. cancelButtonText: "取消",
  18880. type: "warning",
  18881. })
  18882. .then(() => {
  18883. let params = [
  18884. {
  18885. wid: this.commentDetail.wid,
  18886. img: "",
  18887. },
  18888. ];
  18889. this.ajax
  18890. .post(this.$store.state.api + "updateCourseWorks", params)
  18891. .then((res) => {
  18892. this.$message({
  18893. message: "删除成功",
  18894. type: "success",
  18895. });
  18896. this.selectSWorks();
  18897. this.selectStudent();
  18898. })
  18899. .catch((err) => {
  18900. this.$message.error("删除失败");
  18901. console.error(err);
  18902. });
  18903. })
  18904. .catch(() => {});
  18905. },
  18906. getAudioVideo(constraintsData) {
  18907. if (navigator.mediaDevices === undefined) {
  18908. navigator.mediaDevices = {};
  18909. }
  18910. if (navigator.mediaDevices.getUserMedia === undefined) {
  18911. navigator.mediaDevices.getUserMedia = function (constraints) {
  18912. // 首先,如果有getUserMedia的话,就获得它
  18913. var getUserMedia =
  18914. navigator.getUserMedia ||
  18915. navigator.webkitGetUserMedia ||
  18916. navigator.mozGetUserMedia ||
  18917. navigator.msGetUserMedia;
  18918. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  18919. if (!getUserMedia) {
  18920. return Promise.reject({ code: 404 });
  18921. }
  18922. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  18923. return new Promise(function (resolve, reject) {
  18924. getUserMedia.call(navigator, constraints, resolve, reject);
  18925. });
  18926. };
  18927. }
  18928. return navigator.mediaDevices.getUserMedia(constraintsData);
  18929. },
  18930. /**
  18931. * 开始录制
  18932. */
  18933. startRecording(callback) {
  18934. let _function = (screenStream) => {
  18935. this.addStreamStopListener(screenStream, () => {
  18936. console.log("流停止监听");
  18937. this.stopRecording();
  18938. this.$emit("streamStop", {});
  18939. // this.stopRecording();
  18940. });
  18941. var options = {
  18942. type: "video",
  18943. mimeType: "video/webm",
  18944. disableLogs: false,
  18945. getNativeBlob: false, // enable it for longer recordings
  18946. ignoreMutedMedia: false,
  18947. };
  18948. // this.video.srcObject = screenStream;
  18949. this.recorder = RecordRTC(screenStream, options);
  18950. this.recorder.startRecording();
  18951. this.recorder.screen = screenStream;
  18952. this.videoStart = true;
  18953. // callback(true);
  18954. };
  18955. this.getAudioVideo({ audio: true })
  18956. .then((res) => {
  18957. this.captureScreen(_function, true);
  18958. console.log("已点击允许,开启成功");
  18959. })
  18960. .catch((err) => {
  18961. // console.log('浏览器不支持,请更换浏览器')
  18962. // } else {
  18963. this.captureScreen(_function, false);
  18964. console.log("请检查是否存在麦克风");
  18965. });
  18966. },
  18967. /**
  18968. * 停止录制
  18969. */
  18970. stopRecording(callback) {
  18971. this.recorder.stopRecording(() => {
  18972. // this.video.src = this.video.srcObject = null;
  18973. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  18974. const url = URL.createObjectURL(this.recorder.getBlob());
  18975. const a = document.createElement("a"); //this.fileName+
  18976. let videoFile = new File(
  18977. [this.recorder.getBlob()],
  18978. this.courseDetail.title + "录屏.mp4",
  18979. {
  18980. type: "video/mp4",
  18981. }
  18982. );
  18983. let downloadUrl = URL.createObjectURL(videoFile);
  18984. document.body.appendChild(a);
  18985. a.style.display = "none";
  18986. a.href = url;
  18987. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  18988. a.click();
  18989. this.recorder.screen.stop();
  18990. this.recorder.destroy();
  18991. this.recorder = null;
  18992. this.videoStart = false;
  18993. // callback(false);
  18994. });
  18995. },
  18996. //初始化
  18997. captureScreen(callback, type) {
  18998. if (navigator.getDisplayMedia) {
  18999. //录制结束,文件下载
  19000. navigator
  19001. .getDisplayMedia({
  19002. video: true,
  19003. })
  19004. .then((screenStream) => {
  19005. if (type) {
  19006. navigator.mediaDevices
  19007. .getUserMedia({ audio: true })
  19008. .then((mic) => {
  19009. screenStream.addTrack(mic.getTracks()[0]);
  19010. callback(screenStream);
  19011. });
  19012. } else {
  19013. callback(screenStream);
  19014. }
  19015. })
  19016. .catch(function (error) {
  19017. console.log("error", error);
  19018. });
  19019. } else if (navigator.mediaDevices.getDisplayMedia) {
  19020. navigator.mediaDevices
  19021. .getDisplayMedia({
  19022. video: true,
  19023. })
  19024. .then((screenStream) => {
  19025. if (type) {
  19026. navigator.mediaDevices
  19027. .getUserMedia({ audio: true })
  19028. .then((mic) => {
  19029. screenStream.addTrack(mic.getTracks()[0]);
  19030. callback(screenStream);
  19031. });
  19032. } else {
  19033. callback(screenStream);
  19034. }
  19035. })
  19036. .catch(function (error) {
  19037. console.log("error", error);
  19038. });
  19039. } else {
  19040. var error = "getDisplayMedia API are not supported in this browser.";
  19041. console.log("error", error);
  19042. alert(error);
  19043. }
  19044. },
  19045. //流监听
  19046. addStreamStopListener(stream, callback) {
  19047. stream.addEventListener(
  19048. "ended",
  19049. function () {
  19050. callback();
  19051. callback = function () {};
  19052. },
  19053. false
  19054. );
  19055. stream.addEventListener(
  19056. "inactive",
  19057. function () {
  19058. callback();
  19059. callback = function () {};
  19060. },
  19061. false
  19062. );
  19063. stream.getTracks().forEach(function (track) {
  19064. track.addEventListener(
  19065. "ended",
  19066. function () {
  19067. callback();
  19068. callback = function () {};
  19069. },
  19070. false
  19071. );
  19072. track.addEventListener(
  19073. "inactive",
  19074. function () {
  19075. callback();
  19076. callback = function () {};
  19077. },
  19078. false
  19079. );
  19080. });
  19081. },
  19082. updateGroup() {
  19083. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19084. this.dialogVisibleGroup2 = true;
  19085. },
  19086. numberPan() {
  19087. if (
  19088. /[^\d]/.test(this.groupJson.number) ||
  19089. this.groupJson.number < 2 ||
  19090. this.groupJson.number > 10
  19091. ) {
  19092. this.$message.error("请输入2-10的数字");
  19093. this.groupJson.number = "";
  19094. }
  19095. },
  19096. updateGroupJson() {
  19097. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19098. if (
  19099. this.groupStudentUid[this.toolindex][i].length >
  19100. this.groupJson2.number
  19101. ) {
  19102. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19103. return;
  19104. }
  19105. }
  19106. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19107. this.islock = this.groupJson.islock == 1 ? true : false;
  19108. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19109. this.taskCount
  19110. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19111. let params = [
  19112. {
  19113. cid: this.id,
  19114. chapters: JSON.stringify(this.chapInfoList),
  19115. uid: this.userid,
  19116. unitIndex: this.courseType,
  19117. },
  19118. ];
  19119. this.ajax
  19120. .post(this.$store.state.api + "updateWorkNew4", params)
  19121. .then((res) => {
  19122. this.$message.success("设置成功");
  19123. this.getCourseDetail(2);
  19124. this.dialogVisibleGroup2 = false;
  19125. this.groupJson2 = {};
  19126. this.$forceUpdate();
  19127. })
  19128. .catch((err) => {
  19129. this.$message.error("网络不佳");
  19130. console.error(err);
  19131. });
  19132. },
  19133. lockChair() {
  19134. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19135. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19136. this.updateGroupJson();
  19137. },
  19138. selectGroup(index) {
  19139. this.getCourseDetail(2, index);
  19140. },
  19141. joinGroup(index) {
  19142. if (this.groupJson.islock == 2) {
  19143. this.$message.error("位置已被锁定,无法加入");
  19144. return;
  19145. }
  19146. if (
  19147. this.groupStudent[this.toolindex][index].length >
  19148. this.groupJson.number ||
  19149. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19150. ) {
  19151. this.$message.error("位置已满,无法加入");
  19152. return;
  19153. }
  19154. let params = [
  19155. {
  19156. cid: this.id,
  19157. stage: this.courseType,
  19158. task: this.taskCount,
  19159. tool: this.toolindex,
  19160. g: index,
  19161. uid: this.userid,
  19162. },
  19163. ];
  19164. this.ajax
  19165. .post(this.$store.state.api + "joinGroup", params)
  19166. .then((res) => {
  19167. this.$message.success("加入成功");
  19168. this.getCourseDetail(2);
  19169. })
  19170. .catch((err) => {
  19171. this.$message.error("网络不佳");
  19172. console.error(err);
  19173. });
  19174. },
  19175. exitGroup(id) {
  19176. if (this.groupJson.islock == 2) {
  19177. this.$message.error("位置已被锁定,无法退出");
  19178. return;
  19179. }
  19180. let params = [
  19181. {
  19182. gid: id,
  19183. },
  19184. ];
  19185. this.ajax
  19186. .post(this.$store.state.api + "exitGroup", params)
  19187. .then((res) => {
  19188. this.$message.success("退出成功");
  19189. this.getCourseDetail(2);
  19190. })
  19191. .catch((err) => {
  19192. this.$message.error("网络不佳");
  19193. console.error(err);
  19194. });
  19195. },
  19196. groupUpload(index, task, gindex) {
  19197. this.taskCount = task;
  19198. this.toolindex = index;
  19199. this.groupIndex = gindex;
  19200. this.dialogVisibleGroupWork = true;
  19201. },
  19202. updateGroupChair(user) {
  19203. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19204. el.label = index;
  19205. return index != user.group;
  19206. });
  19207. this.updateGroupUser = user;
  19208. this.dialogVisibleUpdateGroup = true;
  19209. },
  19210. updateChair() {
  19211. if (
  19212. this.groupStudent[this.toolindex][this.checkChair].length >
  19213. this.groupJson.number ||
  19214. this.groupStudent[this.toolindex][this.checkChair].length ==
  19215. this.groupJson.number
  19216. ) {
  19217. this.$message.error("位置已满,无法加入");
  19218. return;
  19219. }
  19220. let params = [
  19221. {
  19222. cid: this.id,
  19223. stage: this.courseType,
  19224. task: this.taskCount,
  19225. tool: this.toolindex,
  19226. g: this.checkChair,
  19227. uid: this.updateGroupUser.userid,
  19228. },
  19229. ];
  19230. this.ajax
  19231. .post(this.$store.state.api + "joinGroup", params)
  19232. .then((res) => {
  19233. this.$message.success("修改成功");
  19234. this.updateGroupUser = {};
  19235. this.checkChair = "";
  19236. this.updateGroupArray = {};
  19237. this.dialogVisibleUpdateGroup = false;
  19238. this.getCourseDetail(2);
  19239. })
  19240. .catch((err) => {
  19241. this.$message.error("网络不佳");
  19242. console.error(err);
  19243. });
  19244. },
  19245. deleteGroupChair(gindex) {
  19246. this.checkDeleteGroup = [];
  19247. this.deleteGroupUser = JSON.parse(
  19248. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19249. );
  19250. this.deleteGroupArray = this.groupJson.group[gindex];
  19251. this.groupIndex = gindex;
  19252. this.dialogVisibleDeleteGroup = true;
  19253. },
  19254. async deleteChair() {
  19255. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19256. const gid =
  19257. this.groupStudent[this.toolindex][this.groupIndex][
  19258. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19259. this.checkDeleteGroup[i]
  19260. )
  19261. ];
  19262. let params = [
  19263. {
  19264. gid: gid.id,
  19265. },
  19266. ];
  19267. var a = await this.deleteChairA(params);
  19268. if (i == this.checkDeleteGroup.length - 1) {
  19269. this.$message.success("退出成功");
  19270. this.dialogVisibleDeleteGroup = false;
  19271. this.deleteGroupUser = [];
  19272. this.deleteGroupArray = {};
  19273. this.groupIndex = "";
  19274. this.checkDeleteGroup = [];
  19275. this.getCourseDetail(2);
  19276. }
  19277. }
  19278. },
  19279. deleteChairA(params) {
  19280. return new Promise((resolve, reject) => {
  19281. this.ajax
  19282. .post(this.$store.state.api + "exitGroup", params)
  19283. .then((res) => {
  19284. resolve(1);
  19285. })
  19286. .catch((err) => {
  19287. this.$message.error("网络不佳");
  19288. console.error(err);
  19289. });
  19290. });
  19291. },
  19292. contract(i) {
  19293. if (this.isCloseList[i].isClose == 0) {
  19294. this.isCloseList[i].isClose = 1;
  19295. } else {
  19296. this.isCloseList[i].isClose = 0;
  19297. }
  19298. this.$forceUpdate();
  19299. },
  19300. openWordCloud(toolindex) {
  19301. let array = [];
  19302. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19303. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19304. array.push({ name: works });
  19305. }
  19306. if (this.isGroup) {
  19307. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19308. let works = this.courseGroup.group[i].works[toolindex];
  19309. for (var j = 0; j < works.length; j++) {
  19310. let answer = JSON.parse(works[j].works)[0].answer;
  19311. array.push({ name: answer });
  19312. }
  19313. }
  19314. }
  19315. this.wordCloudData = array;
  19316. this.dialogVisibleWordCloud = true;
  19317. },
  19318. uploadWorks(i) {
  19319. this.$confirm("确定导出作业吗?", "提示", {
  19320. confirmButtonText: "确定",
  19321. cancelButtonText: "取消",
  19322. type: "warning",
  19323. })
  19324. .then(() => {
  19325. const loading = this.$loading.service({
  19326. background: "rgba(255, 255, 255, 0.7)",
  19327. target: document.body,
  19328. text: "文件加载中...",
  19329. });
  19330. const _worksStudent = this.worksStudent;
  19331. let url = [];
  19332. var counts = {};
  19333. for (var l = 0; l < _worksStudent[i].length; l++) {
  19334. var item = _worksStudent[i][l];
  19335. var name = item.sName;
  19336. if (!counts.hasOwnProperty(name)) {
  19337. counts[name] = 0;
  19338. } else {
  19339. counts[name]++;
  19340. }
  19341. if (counts[name] > 0) {
  19342. item.sName += " (" + counts[name] + ")";
  19343. }
  19344. }
  19345. for (var l = 0; l < _worksStudent[i].length; l++) {
  19346. var item = _worksStudent[i][l];
  19347. if (
  19348. item.works.indexOf(
  19349. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19350. ) !== -1 &&
  19351. item.works.indexOf("img") === -1
  19352. ) {
  19353. url.push({ name: item.sName, url: item.works });
  19354. }
  19355. }
  19356. // var toolList = [
  19357. // { name: "电子白板", tool: 1 },
  19358. // { name: "思维导图", tool: 3 },
  19359. // { name: "协同文档", tool: 6 },
  19360. // { name: "思维网格", tool: 7 },
  19361. // { name: "素材库", tool: 8 },
  19362. // { name: "学习资料", tool: 17 },
  19363. // { name: "便签", tool: 2 },
  19364. // { name: "问卷调查", tool: 4 },
  19365. // { name: "选择题", tool: 45 },
  19366. // { name: "倒计时", tool: 10 },
  19367. // { name: "问答", tool: 15 },
  19368. // { name: "课程设计", tool: 26 },
  19369. // { name: "训练服务器", tool: 18 },
  19370. // { name: "作业提交", tool: 16 },
  19371. // { name: "批量上传", tool: 50 },
  19372. // { name: "AIoT Blockly", tool: 21 },
  19373. // { name: "AI Python", tool: 23 },
  19374. // { name: "AI Blockly", tool: 24 },
  19375. // { name: "目标管理", tool: 25 },
  19376. // { name: "数学画板", tool: 31 },
  19377. // { name: "翻译", tool: 28 },
  19378. // { name: "魔盒识字", tool: 37 },
  19379. // { name: "数学画板", tool: 31 },
  19380. // { name: "24点", tool: 38 },
  19381. // { name: "GeoGebra", tool: 39 },
  19382. // { name: "源码编辑", tool: 32 },
  19383. // { name: "个人评价", tool: 40 },
  19384. // { name: "选择匹配", tool: 41 },
  19385. // { name: "汉字宫", tool: 44 },
  19386. // { name: "排序", tool: 47 },
  19387. // { name: "表格", tool: 48 },
  19388. // { name: "文档", tool: 52 },
  19389. // { name: "学生分组", tool: 49 },
  19390. // { name: "CocoPi", tool: 57 },
  19391. // { name: "模拟驾驶", tool: 58 },
  19392. // { name: "路径搜索", tool: 59 },
  19393. // { name: "深度学习", tool: 60 },
  19394. // { name: "全历史", tool: 61 },
  19395. // { name: "交互视频", tool: 62 },
  19396. // { name: "海龟编程", tool: 63 },
  19397. // { name: "挑人", tool: 65 },
  19398. // { name: "公式编辑", tool: 66 },
  19399. // { name: "分子结构", tool: 67 },
  19400. // { name: "时间轴", tool: 68 },
  19401. // ];
  19402. // var toolName = "";
  19403. // for(var w = 0;w<toolList.length;w++){
  19404. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19405. // toolName = toolList[w].name;
  19406. // }
  19407. // }
  19408. console.log(url);
  19409. this.downLoadAll(url, loading);
  19410. })
  19411. .catch(() => {});
  19412. },
  19413. downLoadAll(url, loading) {
  19414. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19415. const zip = new JSZip();
  19416. const cache = {};
  19417. const promises = [];
  19418. data.forEach((item) => {
  19419. const promise = getFile(item.url).then((data) => {
  19420. if (data.data != 1) {
  19421. // 下载文件, 并存成ArrayBuffer对象
  19422. const file_name =
  19423. item.name +
  19424. "." +
  19425. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19426. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19427. cache[file_name] = data.data;
  19428. }
  19429. });
  19430. promises.push(promise);
  19431. });
  19432. Promise.all(promises).then(() => {
  19433. zip.generateAsync({ type: "blob" }).then((content) => {
  19434. // 生成二进制流
  19435. FileSaver.saveAs(
  19436. content,
  19437. this.courseDetail.title + "-" + "作业提交工具.zip"
  19438. ); // 利用file-saver保存文件 自定义文件名
  19439. setTimeout(() => {
  19440. loading.close();
  19441. }, 2000);
  19442. });
  19443. });
  19444. },
  19445. pickStudent(stu) {
  19446. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19447. return;
  19448. }
  19449. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19450. confirmButtonText: "确定",
  19451. cancelButtonText: "取消",
  19452. type: "warning",
  19453. })
  19454. .then(() => {
  19455. let params = [
  19456. {
  19457. uid: stu.userid,
  19458. cid: this.id,
  19459. stage: this.courseType,
  19460. task: this.taskCount,
  19461. tool: this.toolindex,
  19462. },
  19463. ];
  19464. this.ajax
  19465. .post(this.$store.state.api + "updateCoursePick", params)
  19466. .then((res) => {
  19467. this.$message.success("操作成功");
  19468. this.getPick();
  19469. })
  19470. .catch((err) => {
  19471. this.$message.error("网络不佳");
  19472. console.error(err);
  19473. });
  19474. })
  19475. .catch(() => {});
  19476. },
  19477. selectUser(){
  19478. let params = {
  19479. userid: this.userid,
  19480. };
  19481. this.ajax
  19482. .get(this.$store.state.api + "selectUser", params)
  19483. .then((res) => {
  19484. this.userMes = res.data[0];
  19485. })
  19486. .catch((err) => {
  19487. console.error(err);
  19488. });
  19489. },
  19490. setEngText(i){
  19491. this.newEngIndex = i;
  19492. this.$forceUpdate();
  19493. },
  19494. addCorrect(){
  19495. this.$confirm("你确定提交批改嘛?", "提示", {
  19496. confirmButtonText: "确定",
  19497. showCancelButton: false,
  19498. closeOnClickModal: false,
  19499. type: "warning",
  19500. })
  19501. .then(() => {
  19502. let params = {
  19503. cid: this.id,
  19504. s: parseInt(this.courseType),
  19505. t: this.taskCount,
  19506. tool: this.toolindex,
  19507. wid: this.engWid,
  19508. c: this.userid,
  19509. 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) : "",
  19510. };
  19511. this.ajax
  19512. .get(this.$store.state.api + "addEngC", params)
  19513. .then((res) => {
  19514. this.$message.success("提交成功");
  19515. this.engUpdateDialogVisible = false;
  19516. })
  19517. .catch((err) => {
  19518. console.error(err);
  19519. });
  19520. })
  19521. .catch(() => {});
  19522. },
  19523. selectEngC(id,z){
  19524. let params = {
  19525. workid: id,
  19526. };
  19527. this.ajax
  19528. .get(this.$store.state.api + "selectEngC", params)
  19529. .then((res) => {
  19530. if(res.data[0].length == 0){
  19531. this.newEnglishList.engTitle = z.engTitle;
  19532. this.newEnglishList.engText = z.engText;
  19533. }else{
  19534. var a = res.data[0];
  19535. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19536. if(this.userMes[0].type == 2){
  19537. var snum = 0;
  19538. for(var i = 0;i<a.length;i++){
  19539. if(this.userMes[0].userid == a[i].correct){
  19540. this.newEnglishList = JSON.parse(a[i].cWork);
  19541. snum = 1;
  19542. }
  19543. }
  19544. if(snum == 0){
  19545. this.newEnglishList = { engTitle:"",engText:"" };
  19546. this.newEnglishList.engTitle = z.engTitle;
  19547. this.newEnglishList.engText = z.engText;
  19548. }
  19549. }else if(this.userMes[0].type == 1){
  19550. var num = 0;
  19551. for(var w= 0;w<a.length;w++){
  19552. if(this.userMes[0].userid == a[w].correct){
  19553. num = 1;
  19554. }
  19555. }
  19556. if(num == 0){
  19557. this.isNoUserid = true;
  19558. var c = JSON.parse(JSON.stringify(z));
  19559. this.oldEnglishJson1 = c;
  19560. }else{
  19561. this.isNoUserid = false;
  19562. }
  19563. var b = a.sort((item, index) => {
  19564. console.log(item)
  19565. if (item.correct === this.userMes[0].userid) {
  19566. return -1; // 将a移到前面
  19567. } else if (index.correct === this.userMes[0].userid) {
  19568. return 1; // 将b移到前面
  19569. } else {
  19570. return 0; // 保持默认顺序
  19571. }
  19572. });
  19573. for(var p = 0;p<b.length;p++){
  19574. for(var y = 0;y<ppp.length;y++){
  19575. if(b[p].id == ppp[y].id){
  19576. b[p].cWork = JSON.parse(ppp[y].cWork);
  19577. break
  19578. }
  19579. }
  19580. }
  19581. this.newEnglishList1 = b;
  19582. }
  19583. }
  19584. this.greyType = false;
  19585. setTimeout(() => {
  19586. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19587. if(this.newEnglishList1.length > 0){
  19588. if(this.isNoUserid == true){
  19589. this.engListLength = this.newEnglishList1.length + 1;
  19590. this.newEngIndex = -1;
  19591. }else{
  19592. this.engListLength = this.newEnglishList1.length;
  19593. this.newEngIndex = 0;
  19594. }
  19595. }
  19596. if(this.userMes[0].type == 2){
  19597. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19598. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19599. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19600. }else if(this.newEngIndex == -1){
  19601. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19602. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19603. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19604. }
  19605. }, 500);
  19606. this.engUpdateDialogVisible = true;
  19607. this.$forceUpdate();
  19608. })
  19609. .catch((err) => {
  19610. console.error(err);
  19611. });
  19612. },
  19613. getPick() {
  19614. let params = {
  19615. cid: this.id,
  19616. };
  19617. this.ajax
  19618. .get(this.$store.state.api + "getPick", params)
  19619. .then((res) => {
  19620. let array = [];
  19621. for (var i = 0; i < res.data[0].length; i++) {
  19622. array.push(res.data[0][i].userid);
  19623. }
  19624. this.isPickStudent = array;
  19625. if (array.indexOf(this.userid) !== -1) {
  19626. this.$confirm("你被老师选到啦!", "提示", {
  19627. confirmButtonText: "确定",
  19628. showCancelButton: false,
  19629. closeOnClickModal: false,
  19630. type: "warning",
  19631. })
  19632. .then(() => {
  19633. let pa = [
  19634. {
  19635. uid: this.userid,
  19636. cid: this.id,
  19637. },
  19638. ];
  19639. this.ajax
  19640. .post(this.$store.state.api + "deletePick", pa)
  19641. .then((res) => {
  19642. this.getPick();
  19643. })
  19644. .catch((err) => {
  19645. this.$message.error("网络不佳");
  19646. console.error(err);
  19647. });
  19648. })
  19649. .catch(() => {});
  19650. }
  19651. })
  19652. .catch((err) => {
  19653. this.$message.error("网络不佳");
  19654. console.error(err);
  19655. });
  19656. },
  19657. foldEva() {
  19658. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19659. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19660. } else {
  19661. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19662. setTimeout(() => {
  19663. this.checkEva();
  19664. setTimeout(() => {
  19665. this.checkEva();
  19666. }, 500);
  19667. }, 0);
  19668. }
  19669. this.$forceUpdate();
  19670. },
  19671. panToolHeight(tool) {
  19672. var _tool = document.querySelectorAll('#'+tool)[0]
  19673. var _toolA = _tool ? _tool.offsetHeight : 0
  19674. var _toolC = 0
  19675. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19676. let boolean2 = (_toolA > _toolC) ? true : false
  19677. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19678. this.$forceUpdate();
  19679. },
  19680. async checkLink(url) {
  19681. console.log(url)
  19682. let _url = url
  19683. try {
  19684. const response = await fetch(url);
  19685. if(!response.ok){
  19686. _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]))
  19687. }
  19688. console.log(response.ok)
  19689. } catch (error) {
  19690. console.error('Error checking link:', error);
  19691. // console.log(false)
  19692. _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]))
  19693. }
  19694. // console.log(_url)
  19695. return _url
  19696. },
  19697. getScoreList(){
  19698. let params = {
  19699. cid: this.id,
  19700. };
  19701. this.ajax
  19702. .get(this.$store.state.api + "selectTestCourseByCid", params)
  19703. .then((res) => {
  19704. let result = res.data;
  19705. this.scoreList.datalist = result[0];
  19706. this.scoreList.isScoreList = result[1];
  19707. })
  19708. .catch((err) => {
  19709. console.error(err);
  19710. });
  19711. },
  19712. setClassRoomHelperWidth(width){
  19713. this.classRoomHelperWidth = width
  19714. }
  19715. },
  19716. directives: {
  19717. // 使用局部注册指令的方式
  19718. resize: {
  19719. // 指令的名称
  19720. bind(el, binding) {
  19721. // el为绑定的元素,binding为绑定给指令的对象
  19722. let width = "",
  19723. height = "";
  19724. function isReize() {
  19725. const style = document.defaultView.getComputedStyle(el);
  19726. if (width !== style.width || height !== style.height) {
  19727. binding.value(); // 关键
  19728. }
  19729. width = style.width;
  19730. height = style.height;
  19731. }
  19732. el.__vueSetInterval__ = setInterval(isReize, 300);
  19733. },
  19734. unbind(el) {
  19735. clearInterval(el.__vueSetInterval__);
  19736. },
  19737. },
  19738. autoHeight: {
  19739. update(el, binding) {
  19740. const { value } = binding
  19741. if (value && typeof value === 'number') {
  19742. el.style.height = `${value}px`
  19743. } else {
  19744. el.style.height = 'auto'
  19745. }
  19746. },
  19747. componentUpdated(el) {
  19748. el.style.height = `${el.scrollHeight}px`
  19749. },
  19750. },
  19751. },
  19752. beforeDestroy() {
  19753. window.onresize = null;
  19754. clearInterval(this.timer);
  19755. this.timer = null;
  19756. clearInterval(this.opertimer);
  19757. this.opertimer = null;
  19758. },
  19759. computed: {
  19760. contentConvent() {
  19761. return function (c) {
  19762. return c
  19763. ? c
  19764. .replaceAll(/\r\n/g, "<br/>")
  19765. .replaceAll(/\n/g, "<br/>")
  19766. .replaceAll(/\s/g, " &nbsp")
  19767. : "";
  19768. };
  19769. },
  19770. commentRight(){
  19771. if(this.$refs["classRoomHelperRef"].type==0){
  19772. return "100px";
  19773. }else if(this.$refs["classRoomHelperRef"].type==1){
  19774. return "502px"
  19775. }else{
  19776. return "0px"
  19777. }
  19778. },
  19779. checkUpload() {
  19780. return function () {
  19781. var studentK = [];
  19782. if (this.plworkFile.length > 0) {
  19783. for (var z = 0; z < this.plworkFile.length; z++) {
  19784. studentK.push(this.plworkFile[z].username);
  19785. }
  19786. studentK = studentK.join(",");
  19787. }
  19788. var a = this.uploadStudentJuri.filter((el) => {
  19789. return studentK.indexOf(el.userid) == -1;
  19790. });
  19791. return a;
  19792. };
  19793. },
  19794. getSName() {
  19795. return function (name) {
  19796. var check = name;
  19797. this.uploadStudentJuri.forEach((el) => {
  19798. if (el.userid == check) {
  19799. check = el.name ? el.name : el.username;
  19800. }
  19801. });
  19802. return check;
  19803. };
  19804. },
  19805. getImgList() {
  19806. return function (val) {
  19807. let srcList = []; // 定义一个数组用来接收后面的img地址
  19808. val.replace(
  19809. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  19810. function (match, capture) {
  19811. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  19812. srcList.push(capture);
  19813. }
  19814. );
  19815. return srcList;
  19816. };
  19817. },
  19818. retrnToolHeight(){
  19819. return function (tool) {
  19820. var _tool = document.querySelectorAll('#'+tool)[0]
  19821. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  19822. };
  19823. },
  19824. Correct() {
  19825. return function (c) {
  19826. let w = "";
  19827. let a = this.correctWord;
  19828. for(var k = 0;k<a.length;k++){
  19829. //diffWordsWithSpace
  19830. if(a.length > 1){
  19831. if(a[k].added == true){
  19832. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19833. }else if(a[k].removed == true){
  19834. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19835. }else{
  19836. w += '<span>' + a[k].value + '</span>';
  19837. }
  19838. }else{
  19839. w = c
  19840. }
  19841. //diffChars方法
  19842. // if(a.length > 1){
  19843. // if(w == ""){
  19844. // if(a[k].added == true){
  19845. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19846. // }else if(a[k].removed == true){
  19847. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19848. // }
  19849. // }else{
  19850. // if(k == a.length - 1){
  19851. // if(a[k].added == true){
  19852. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19853. // }else if(a[k].removed == true){
  19854. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19855. // }
  19856. // }else{
  19857. // if(a[k].added == true){
  19858. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19859. // }else if(a[k].removed == true){
  19860. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19861. // }
  19862. // }
  19863. // }
  19864. // }else{
  19865. // w = c
  19866. // }
  19867. }
  19868. c = w;
  19869. return c;
  19870. };
  19871. },
  19872. },
  19873. mounted() {
  19874. document.body.addEventListener("click", (e) => {
  19875. if (this.isUpdateToolDetail1) {
  19876. this.updateToolDetail(this.toolDetailIndex);
  19877. }
  19878. });
  19879. if (this.screenType == 2) {
  19880. window.parent.postMessage({ allScreen: 4 }, "*");
  19881. } else if (this.screenType == 3) {
  19882. window.parent.postMessage({ allScreen: 5 }, "*");
  19883. } else if (this.screenType == 1) {
  19884. window.parent.postMessage({ allScreen: 6 }, "*");
  19885. }
  19886. this.setOperationTime();
  19887. this.selectEva();
  19888. this.getCourseDetail();
  19889. this.selectCount();
  19890. this.getHomeWork();
  19891. this.selectUser();
  19892. this.contentDialog = true;
  19893. this.setContent2(true);
  19894. if (this.tType == 4) {
  19895. this.pzDialog = true;
  19896. this.selectPz();
  19897. }
  19898. // 获取评分列表
  19899. this.getScoreList()
  19900. document.scrollingElement.scrollTop = 0;
  19901. window.addEventListener("resize", () => {
  19902. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19903. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19904. if (this.showType == 2 || this.showType == 3) {
  19905. document.getElementsByClassName("navBox")[0].style.height =
  19906. a - 40 + 46 + "px";
  19907. } else {
  19908. document.getElementsByClassName("navBox")[0].style.height =
  19909. a - 40 + "px";
  19910. }
  19911. });
  19912. let _this = this;
  19913. setTimeout(() => {
  19914. // _this.vedioTime = [];
  19915. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  19916. // _this.vedioTime[i] = document.getElementsByClassName(
  19917. // "vjs-duration-display"
  19918. // )[i].textContent;
  19919. // }
  19920. }, 1000);
  19921. },
  19922. };
  19923. </script>
  19924. <style scoped>
  19925. @media screen and (max-width: 1280px) {
  19926. /* .courseIndex > div:first-child(2) {
  19927. width: 15% !important;
  19928. } */
  19929. /* .navText {
  19930. width: 120px !important;
  19931. } */
  19932. .evaCss {
  19933. flex-direction: column !important;
  19934. align-items: center !important;
  19935. }
  19936. .elist_input {
  19937. width: 90% !important;
  19938. }
  19939. .dialog_diy1 >>> .el-dialog {
  19940. width: 100% !important;
  19941. }
  19942. .rightWidthCss {
  19943. width: 100% !important;
  19944. }
  19945. .dialog_diy3 >>> .el-dialog {
  19946. width: 100% !important;
  19947. }
  19948. .addToolCss {
  19949. right: 0 !important;
  19950. width: 100% !important;
  19951. min-width: unset !important;
  19952. }
  19953. }
  19954. .evaCssMax {
  19955. flex-direction: column !important;
  19956. align-items: center !important;
  19957. }
  19958. .dialog_diy >>> .el-dialog {
  19959. margin-top: 10vh !important;
  19960. }
  19961. .body_student {
  19962. width: 77%;
  19963. height: 100%;
  19964. position: absolute;
  19965. left: 22%;
  19966. top: 0;
  19967. }
  19968. .student_head {
  19969. width: 100%;
  19970. margin: 20px auto 0;
  19971. padding-bottom: 20px;
  19972. display: flex;
  19973. flex-direction: column;
  19974. flex-wrap: nowrap;
  19975. align-items: flex-start;
  19976. justify-content: flex-start;
  19977. }
  19978. .pb_left {
  19979. width: 20%;
  19980. margin-right: 10px;
  19981. background: rgb(255, 255, 255);
  19982. position: fixed;
  19983. height: calc(100% - 40px);
  19984. border-radius: 20px;
  19985. padding-bottom: 15px;
  19986. box-sizing: border-box;
  19987. }
  19988. .wheel > img,
  19989. .project > img,
  19990. .star > img,
  19991. .evaluate > img,
  19992. .up_photo > img,
  19993. .chapter_add > img,
  19994. .deleteWord > img,
  19995. .question > img,
  19996. .homework > img {
  19997. width: 100%;
  19998. height: 100%;
  19999. }
  20000. .upCover > img {
  20001. width: 131px;
  20002. height: 69px;
  20003. object-fit: cover;
  20004. }
  20005. .upCover {
  20006. width: calc(100% / 3.5);
  20007. position: relative;
  20008. margin: 0 15px 10px 0;
  20009. display: flex;
  20010. flex-direction: column;
  20011. flex-wrap: nowrap;
  20012. justify-content: center;
  20013. align-content: center;
  20014. align-items: center;
  20015. height: fit-content;
  20016. }
  20017. .upCover2 {
  20018. width: 100%;
  20019. position: relative;
  20020. margin: 0 15px 10px 0;
  20021. display: flex;
  20022. flex-direction: column;
  20023. flex-wrap: nowrap;
  20024. justify-content: center;
  20025. align-content: center;
  20026. align-items: center;
  20027. }
  20028. .upCover2 > img {
  20029. width: 100%;
  20030. height: 90px;
  20031. object-fit: contain;
  20032. }
  20033. .chapter_add {
  20034. width: 120px;
  20035. position: relative;
  20036. text-align: center;
  20037. }
  20038. .isAddThings {
  20039. margin-top: 20px;
  20040. position: relative;
  20041. text-align: center;
  20042. background: #f7f8fa;
  20043. height: 90px;
  20044. width: 90px;
  20045. display: flex;
  20046. flex-direction: column;
  20047. justify-content: center;
  20048. }
  20049. .deleteWord {
  20050. width: 22px;
  20051. height: 22px;
  20052. position: absolute;
  20053. right: -5px;
  20054. top: -5px;
  20055. cursor: pointer;
  20056. }
  20057. .box_course {
  20058. /* width: 60%; */
  20059. width: calc(100% - 300px);
  20060. }
  20061. .wheel {
  20062. width: 100%;
  20063. /* height: 100%; */
  20064. height: 650px;
  20065. }
  20066. .right_box {
  20067. display: flex;
  20068. flex-direction: column;
  20069. margin-left: 30px;
  20070. justify-content: space-around;
  20071. }
  20072. .right_box_title {
  20073. font-size: 23px;
  20074. }
  20075. .people {
  20076. display: flex;
  20077. }
  20078. .student_body {
  20079. width: 100%;
  20080. margin: 0 auto;
  20081. margin-top: 10px;
  20082. padding: 0 0 20px;
  20083. }
  20084. .study_top {
  20085. margin-top: 100px;
  20086. width: 100%;
  20087. height: auto;
  20088. padding-bottom: 20px;
  20089. }
  20090. .study_top .checkbox {
  20091. display: flex;
  20092. align-items: center;
  20093. padding: 15px 0 15px 30px;
  20094. flex: 0 0 auto;
  20095. font-weight: bold;
  20096. border-bottom: 1px solid #eee;
  20097. }
  20098. .study_top .check {
  20099. padding-bottom: 5px;
  20100. text-align: center;
  20101. cursor: pointer;
  20102. height: 30px;
  20103. box-sizing: border-box;
  20104. display: flex;
  20105. }
  20106. .study_top .checked {
  20107. border-bottom: 4px solid #3fc6a0;
  20108. padding-bottom: 5px;
  20109. color: #3fc6a0;
  20110. display: flex;
  20111. height: 35px;
  20112. }
  20113. .study_top .checked > div,
  20114. .study_top .check > div {
  20115. margin-right: 5px;
  20116. }
  20117. .videoTop {
  20118. display: flex;
  20119. flex-direction: row;
  20120. justify-content: space-between;
  20121. background: #fff;
  20122. align-items: center;
  20123. width: 95%;
  20124. padding: 20px;
  20125. }
  20126. .filebox {
  20127. display: flex;
  20128. flex-wrap: wrap;
  20129. flex-direction: column;
  20130. padding: 0 0 5px;
  20131. position: relative;
  20132. }
  20133. .filebox:before {
  20134. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20135. position: absolute;
  20136. top: 20px;
  20137. left: 13px;
  20138. border-left: 2px dotted #cad1dc;
  20139. height: calc(100% - 15px);
  20140. }
  20141. .toolHeng2 > div:last-child::before {
  20142. height: calc(100% - 43px);
  20143. }
  20144. .filebox .tooldetail {
  20145. width: calc(100% - 280px);
  20146. margin: 0px 12px;
  20147. padding: 12px;
  20148. line-height: 30px;
  20149. word-break: break-word;
  20150. background: #ffffff;
  20151. border-radius: 8px 8px 8px 8px;
  20152. opacity: 1;
  20153. border: 1px solid #cad1dc;
  20154. overflow:hidden;
  20155. box-sizing:border-box;
  20156. }
  20157. .file {
  20158. display: flex;
  20159. flex-direction: column;
  20160. align-items: center;
  20161. justify-content: center;
  20162. cursor: pointer;
  20163. width: 200px;
  20164. }
  20165. .file div {
  20166. margin-top: 10px;
  20167. width: 150px;
  20168. text-align: center;
  20169. overflow: hidden;
  20170. white-space: nowrap;
  20171. text-overflow: ellipsis;
  20172. }
  20173. .media {
  20174. display: flex;
  20175. flex-direction: column;
  20176. align-items: center;
  20177. justify-content: center;
  20178. margin: 0 20px 20px 0;
  20179. cursor: pointer;
  20180. margin: 12px 0 5px 15px;
  20181. overflow: hidden;
  20182. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  20183. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  20184. box-sizing: border-box;
  20185. }
  20186. .media img {
  20187. height: 90px;
  20188. width: 160px;
  20189. object-fit: cover;
  20190. }
  20191. .media .title {
  20192. padding: 5px;
  20193. text-align: left;
  20194. width: 100%;
  20195. box-sizing: border-box;
  20196. }
  20197. .media .btn {
  20198. width: 100%;
  20199. height: 35px;
  20200. line-height: 35px;
  20201. color: #fff;
  20202. background: #606060;
  20203. text-align: center;
  20204. overflow: hidden;
  20205. white-space: nowrap;
  20206. text-overflow: ellipsis;
  20207. }
  20208. .detail_content_top {
  20209. width: 100%;
  20210. padding: 25px 0 25px 0;
  20211. }
  20212. .detail_title {
  20213. text-align: center;
  20214. font-size: 24px;
  20215. }
  20216. .detail_time {
  20217. font-size: 13px;
  20218. padding: 15px 0 0 40px;
  20219. }
  20220. .detail_content {
  20221. line-height: 2pc;
  20222. width: 90%;
  20223. margin: 0 auto;
  20224. padding-top: 30px;
  20225. text-indent: 30px;
  20226. overflow: auto;
  20227. height: 200px;
  20228. }
  20229. .score_box >>> .el-rate {
  20230. margin-left: 10px;
  20231. }
  20232. .dialog_change >>> .el-dialog {
  20233. border-radius: 5px;
  20234. }
  20235. .dialog_change >>> .el-dialog__header {
  20236. background: #f2f2f2;
  20237. text-align: center;
  20238. }
  20239. .dialog_change >>> .el-dialog__title {
  20240. line-height: 5px;
  20241. }
  20242. .dialog_change >>> .el-dialog__body {
  20243. background: #fff;
  20244. padding: 10px 20px;
  20245. }
  20246. .score_box {
  20247. display: flex;
  20248. align-items: center;
  20249. margin-bottom: 18px;
  20250. margin-top: 20px;
  20251. }
  20252. .up_photo {
  20253. width: 120px;
  20254. cursor: pointer;
  20255. margin-top: 10px;
  20256. }
  20257. .up_photo2 {
  20258. width: 180px;
  20259. box-sizing: border-box;
  20260. min-width: 180px;
  20261. height: 180px;
  20262. max-height: 180px;
  20263. min-height: 180px;
  20264. cursor: pointer;
  20265. display: flex;
  20266. flex-direction: column;
  20267. align-items: center;
  20268. justify-content: center;
  20269. background: rgb(242, 246, 255);
  20270. /* padding: 25px; */
  20271. margin-bottom: 10px;
  20272. }
  20273. .up_photo2 img {
  20274. width: 50%;
  20275. height: auto;
  20276. }
  20277. .up_photo2 span {
  20278. color: #898989;
  20279. }
  20280. .plworkBox {
  20281. display: flex;
  20282. align-items: center;
  20283. margin-top: 10px;
  20284. flex-wrap: wrap;
  20285. }
  20286. .upload_send {
  20287. margin: 30px auto 30px;
  20288. width: 60%;
  20289. background: #3681fc;
  20290. text-align: center;
  20291. height: 35px;
  20292. line-height: 35px;
  20293. color: #fff;
  20294. border-radius: 5px;
  20295. cursor: pointer;
  20296. }
  20297. .marginT {
  20298. margin-top: 20px;
  20299. }
  20300. .cd_content_steps {
  20301. display: flex;
  20302. width: 90%;
  20303. justify-content: space-around;
  20304. border-top: 1px solid #eeeeee;
  20305. }
  20306. .cd_steps_box {
  20307. display: flex;
  20308. justify-content: center;
  20309. align-items: center;
  20310. flex-direction: column;
  20311. cursor: pointer;
  20312. }
  20313. .first {
  20314. display: flex;
  20315. align-items: center;
  20316. margin: 15px 0 20px 0;
  20317. font-size: 20px;
  20318. }
  20319. .first > div:nth-child(2) {
  20320. font-size: 16px !important;
  20321. padding-left: 10px;
  20322. line-height: 26px;
  20323. box-sizing: border-box;
  20324. }
  20325. .blue_box_one {
  20326. text-align: center;
  20327. color: #fff;
  20328. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  20329. border-radius: 7px;
  20330. margin: 10px;
  20331. cursor: pointer;
  20332. width: 95%;
  20333. height: 45px;
  20334. display: flex;
  20335. flex-direction: row;
  20336. justify-content: flex-start;
  20337. align-items: center;
  20338. }
  20339. .blue_box_one > div:nth-child(1) {
  20340. line-height: 30px;
  20341. margin: 0 5px 0 10px;
  20342. width: 30%;
  20343. min-width: 70px;
  20344. border-radius: 4px;
  20345. }
  20346. .blue_box_one > div:nth-child(2) {
  20347. white-space: nowrap;
  20348. text-overflow: ellipsis;
  20349. overflow: hidden;
  20350. word-break: break-all;
  20351. width: 70%;
  20352. text-align: left;
  20353. margin-right: 10px;
  20354. max-width: calc(100% - 85px);
  20355. }
  20356. .blue_box_one > div:nth-child(2):hover {
  20357. overflow: hidden;
  20358. text-overflow: ellipsis;
  20359. white-space: nowrap;
  20360. cursor: pointer;
  20361. }
  20362. .upFile {
  20363. margin: 0 auto;
  20364. width: 120px;
  20365. background: #3681fc;
  20366. color: #fff;
  20367. height: 30px;
  20368. text-align: center;
  20369. line-height: 30px;
  20370. border-radius: 5px;
  20371. font-size: 14px;
  20372. cursor: pointer;
  20373. }
  20374. .courseTitle {
  20375. width: 85%;
  20376. margin: 10px auto 26px auto;
  20377. display: flex;
  20378. flex-direction: row;
  20379. align-items: center;
  20380. justify-content: space-between;
  20381. text-align: center;
  20382. }
  20383. .courseTitle .ctitle {
  20384. font-size: 20px;
  20385. font-weight: bold;
  20386. color: #0e1e33;
  20387. white-space: nowrap;
  20388. overflow: hidden;
  20389. text-overflow: ellipsis;
  20390. }
  20391. .inviteBox {
  20392. font-size: 14px;
  20393. /* margin-top: 5px; */
  20394. color: #00000099;
  20395. text-align: center;
  20396. }
  20397. .courseTitle >>> .el-tooltip {
  20398. width: 100%;
  20399. white-space: nowrap;
  20400. overflow: hidden;
  20401. text-overflow: ellipsis;
  20402. word-break: break-word;
  20403. }
  20404. .ml {
  20405. margin-left: 20px;
  20406. color: #5b7dba;
  20407. border-left: 3px solid #5b7dba;
  20408. padding-left: 5px;
  20409. font-weight: bold;
  20410. }
  20411. .return {
  20412. width: 2rem;
  20413. height: 2rem;
  20414. cursor: pointer;
  20415. }
  20416. .return > img {
  20417. width: 100%;
  20418. height: 100%;
  20419. }
  20420. .returnBtn {
  20421. width: 86px;
  20422. height: 36px;
  20423. background: #3681fc;
  20424. border-radius: 4px;
  20425. color: #fff;
  20426. text-align: center;
  20427. line-height: 36px;
  20428. margin-right: 20px;
  20429. cursor: pointer;
  20430. font-size: 14px;
  20431. font-weight: 400;
  20432. display: flex;
  20433. flex-direction: row;
  20434. flex-wrap: nowrap;
  20435. align-items: center;
  20436. justify-content: center;
  20437. }
  20438. .reBtnIcon,
  20439. .commentIcon,
  20440. .vedioIcon,
  20441. .vedioIcon1 {
  20442. /* width: 36px; */
  20443. height: 36px;
  20444. border-radius: 4px;
  20445. position: relative;
  20446. /* background: #e0eafb; */
  20447. background: #0061ff;
  20448. cursor: pointer;
  20449. margin-right: 12px;
  20450. display: flex;
  20451. align-items: center;
  20452. padding: 0 10px;
  20453. box-sizing: border-box;
  20454. font-size: 14px;
  20455. color: #fff;
  20456. }
  20457. .reBtnIcon::before,
  20458. .commentIcon::before,
  20459. .vedioIcon::before,
  20460. .vedioIcon1::before {
  20461. content: "";
  20462. display: block;
  20463. background-size: 100% 100%;
  20464. background-repeat: no-repeat;
  20465. width: 20px;
  20466. height: 20px;
  20467. margin-right: 5px;
  20468. /* position: absolute; */
  20469. /* top: 8px;
  20470. left: 8px; */
  20471. }
  20472. .vedioIcon1 {
  20473. background: #f63564;
  20474. }
  20475. .reBtnIcon::before {
  20476. background-image: url("../assets/icon/newIcons/refresh.png");
  20477. }
  20478. .commentIcon::before {
  20479. background-image: url("../assets/icon/newIcons/comment.png");
  20480. }
  20481. .vedioIcon::before {
  20482. background-image: url("../assets/icon/newIcons/transcribe.png");
  20483. }
  20484. .vedioIcon1::before {
  20485. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  20486. background-image: url("../assets/icon/newIcons/transcribe.png");
  20487. }
  20488. .tool {
  20489. display: flex;
  20490. flex-direction: column;
  20491. flex-wrap: nowrap;
  20492. width: 13%;
  20493. margin: 0 30px;
  20494. align-items: center;
  20495. position: relative;
  20496. padding: 10px 25px;
  20497. cursor: pointer;
  20498. }
  20499. .whiteBIcon {
  20500. width: 150px;
  20501. }
  20502. .whiteBIcon > img {
  20503. width: 100%;
  20504. height: 100%;
  20505. }
  20506. .mask {
  20507. background-color: rgba(0, 0, 0, 0);
  20508. position: fixed;
  20509. top: 0;
  20510. left: 0;
  20511. width: 100%;
  20512. height: 100%;
  20513. z-index: 20000;
  20514. display: flex;
  20515. align-items: center;
  20516. justify-content: center;
  20517. }
  20518. .progressBox {
  20519. width: 500px;
  20520. height: 180px;
  20521. background: #fff;
  20522. border-radius: 10px;
  20523. box-shadow: 0 0 6px 1px #bfbfbf;
  20524. display: flex;
  20525. align-items: center;
  20526. justify-content: center;
  20527. flex-direction: column;
  20528. position: relative;
  20529. color: #6c6c6c;
  20530. }
  20531. .progressBox >>> .el-progress-bar__outer {
  20532. background-color: #d1dfff !important;
  20533. }
  20534. .progressBox .lbox {
  20535. height: 50px;
  20536. font-size: 19px;
  20537. display: flex;
  20538. align-items: center;
  20539. color: #747474;
  20540. }
  20541. .progressBox .lbox img {
  20542. width: 40px;
  20543. margin-right: 20px;
  20544. }
  20545. .closeCss {
  20546. position: absolute;
  20547. top: 8px;
  20548. right: 8px;
  20549. cursor: pointer;
  20550. width: 20px;
  20551. height: 20px;
  20552. }
  20553. .closeCss > img {
  20554. width: 100%;
  20555. height: 100%;
  20556. }
  20557. .uploadVedio {
  20558. display: flex;
  20559. flex-direction: column;
  20560. flex-wrap: nowrap;
  20561. justify-content: center;
  20562. align-items: center;
  20563. margin: 0 15px 10px 0;
  20564. }
  20565. .uploadVedio > img {
  20566. width: 30px;
  20567. height: 30px;
  20568. }
  20569. .uploadVedio > span {
  20570. white-space: nowrap;
  20571. overflow: hidden;
  20572. text-overflow: ellipsis;
  20573. width: 75px;
  20574. margin-top: 7px;
  20575. }
  20576. .picName {
  20577. white-space: nowrap;
  20578. overflow: hidden;
  20579. text-overflow: ellipsis;
  20580. width: 75px;
  20581. margin-top: 7px;
  20582. }
  20583. .new_top {
  20584. display: flex;
  20585. background: #fff;
  20586. flex-direction: row;
  20587. justify-content: flex-start;
  20588. align-items: center;
  20589. height: 60px;
  20590. position: fixed;
  20591. top: 20px;
  20592. left: 22%;
  20593. width: 77%;
  20594. z-index: 999;
  20595. border-radius: 12px 12px 0 0;
  20596. border-bottom: 1px solid #cad1dc;
  20597. padding: 10px 0;
  20598. }
  20599. .new_topFixed {
  20600. width: 100%;
  20601. height: 40px;
  20602. position: fixed;
  20603. top: 0px;
  20604. display: block;
  20605. background: #f2f2f2;
  20606. z-index: 998;
  20607. }
  20608. .before {
  20609. position: absolute;
  20610. background: #c3dad4;
  20611. width: 6px;
  20612. height: 100%;
  20613. }
  20614. .courseIndex {
  20615. display: flex;
  20616. flex-direction: row;
  20617. align-items: center;
  20618. width: calc(100% - 745px);
  20619. }
  20620. .courseIndex > div:nth-child(1) {
  20621. margin: 0 0 0 10px;
  20622. font-size: 20px;
  20623. min-width: 100px;
  20624. font-weight: bold;
  20625. border-left: 4px solid #3363b9;
  20626. height: 32px;
  20627. text-align: center;
  20628. line-height: 35px;
  20629. }
  20630. .courseIndex > div:nth-child(2) {
  20631. font-size: 20px;
  20632. /* width: 300px; */
  20633. max-width: calc(100% - 105px);
  20634. white-space: nowrap;
  20635. overflow: hidden;
  20636. text-overflow: ellipsis;
  20637. }
  20638. .courseIndex > div:nth-child(3) {
  20639. border-bottom: 1px solid #d7d7d7;
  20640. padding-bottom: 5px;
  20641. background: #3681fc;
  20642. width: 55px;
  20643. min-width: 55px;
  20644. border-radius: 5px;
  20645. color: #fff;
  20646. text-align: center;
  20647. height: 20px;
  20648. line-height: 26px;
  20649. font-size: 14px;
  20650. margin: 0 0 0 10px;
  20651. }
  20652. .course_text {
  20653. padding: 20px 0 0 15px;
  20654. text-indent: 30px;
  20655. width: 80%;
  20656. min-height: 20px;
  20657. }
  20658. .vedioList {
  20659. background: #f2f2f2;
  20660. border: 1px solid #ececec;
  20661. /* width: 38.8%; */
  20662. /* width: 300px; */
  20663. width: 100%;
  20664. height: 445px;
  20665. border-radius: 10px;
  20666. overflow: hidden;
  20667. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  20668. }
  20669. .vedioNav {
  20670. margin: 10px 0 0 15px;
  20671. border-bottom: 1px solid #d7d7d7;
  20672. padding-bottom: 5px;
  20673. background: #3681fc;
  20674. width: 55px;
  20675. min-width: 55px;
  20676. border-radius: 5px;
  20677. color: #fff;
  20678. text-align: center;
  20679. height: 20px;
  20680. line-height: 26px;
  20681. font-size: 14px;
  20682. }
  20683. .queTop {
  20684. display: flex;
  20685. padding: 20px 0 20px 30px;
  20686. width: 100%;
  20687. flex-direction: row;
  20688. justify-content: flex-start;
  20689. align-items: center;
  20690. box-sizing: border-box;
  20691. }
  20692. .queTopTitle {
  20693. display: flex;
  20694. flex-direction: row;
  20695. flex-wrap: nowrap;
  20696. align-items: center;
  20697. font-weight: bold;
  20698. font-size: 20px;
  20699. color: rgb(14, 30, 51);
  20700. }
  20701. .queTopTitle::before {
  20702. content: "";
  20703. width: 2px;
  20704. height: 22px;
  20705. background: #3681fc;
  20706. border-radius: 3px;
  20707. display: block;
  20708. margin: 2px 6px 0 0;
  20709. }
  20710. .queTopRight {
  20711. display: flex;
  20712. flex-direction: row;
  20713. flex-wrap: nowrap;
  20714. align-items: center;
  20715. }
  20716. .queTopClose {
  20717. margin-right: 20px;
  20718. cursor: pointer;
  20719. position: relative;
  20720. display: flex;
  20721. }
  20722. .closeImg,
  20723. .openImg {
  20724. width: 25px;
  20725. height: 25px;
  20726. position: absolute;
  20727. left: -20px;
  20728. top: -1px;
  20729. }
  20730. .closeImg > img,
  20731. .openImg > img {
  20732. width: 100%;
  20733. height: 100%;
  20734. }
  20735. .question {
  20736. width: 40px;
  20737. margin-right: 10px;
  20738. margin-top: 7px;
  20739. }
  20740. .queTitle {
  20741. margin-left: 5px;
  20742. font-size: 25px;
  20743. display: flex;
  20744. align-items: center;
  20745. }
  20746. .addEditor {
  20747. width: 100px;
  20748. height: 30px;
  20749. background: #42cda6;
  20750. color: #fff;
  20751. border-radius: 5px;
  20752. text-align: center;
  20753. line-height: 30px;
  20754. box-shadow: 1px 3px 6px 1px #bfbfbf;
  20755. cursor: pointer;
  20756. }
  20757. /* .vedioName {
  20758. cursor: pointer;
  20759. margin: 0px 0px 10px 5px;
  20760. white-space: nowrap;
  20761. overflow: hidden;
  20762. text-overflow: ellipsis;
  20763. width: 100%;
  20764. } */
  20765. .vedioTime {
  20766. width: 35px;
  20767. position: absolute;
  20768. color: #fff;
  20769. bottom: 0px;
  20770. right: 0px;
  20771. text-align: center;
  20772. background: #46411f;
  20773. height: 20px;
  20774. font-size: 14px;
  20775. line-height: 20px;
  20776. }
  20777. .homework {
  20778. width: 200px;
  20779. display: flex;
  20780. flex-direction: column;
  20781. flex-wrap: nowrap;
  20782. align-items: center;
  20783. cursor: pointer;
  20784. }
  20785. .homebox {
  20786. display: flex;
  20787. flex-wrap: wrap;
  20788. flex-direction: row;
  20789. justify-content: flex-start;
  20790. align-items: center;
  20791. padding: 15px 0;
  20792. }
  20793. .isChooseActive {
  20794. color: #3681fc !important;
  20795. font-weight: bold !important;
  20796. }
  20797. .chooseWho {
  20798. display: flex;
  20799. width: 100%;
  20800. flex-direction: row;
  20801. flex-wrap: nowrap;
  20802. justify-content: flex-start;
  20803. padding-bottom: 10px;
  20804. }
  20805. .chooseWho > div {
  20806. cursor: pointer;
  20807. padding-bottom: 10px;
  20808. margin: 0 30px 0 0;
  20809. font-weight: 400;
  20810. color: #0e1e33;
  20811. }
  20812. .addPoint > div > img {
  20813. cursor: pointer;
  20814. width: 85px;
  20815. border-radius: 15px;
  20816. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  20817. }
  20818. .addPoint > div {
  20819. display: flex;
  20820. flex-direction: column;
  20821. flex-wrap: nowrap;
  20822. align-items: center;
  20823. }
  20824. .isBorder > div {
  20825. margin: 0 0 10px 0;
  20826. align-items: flex-start !important;
  20827. }
  20828. .noiframeBox {
  20829. display: flex;
  20830. flex-wrap: wrap;
  20831. }
  20832. .iframeBox iframe {
  20833. width: 100%;
  20834. height: 800px;
  20835. border: none;
  20836. margin-bottom: 20px;
  20837. border: 1px solid #ccc;
  20838. }
  20839. .upload_toolBtn {
  20840. background: #3681fc;
  20841. color: #fff;
  20842. width: 110px;
  20843. text-align: center;
  20844. height: 35px;
  20845. line-height: 35px;
  20846. font-size: 14px;
  20847. border-radius: 5px;
  20848. cursor: pointer;
  20849. position: absolute;
  20850. right: 10px;
  20851. bottom: 0;
  20852. }
  20853. .binfo_input,
  20854. .pj {
  20855. font: inherit;
  20856. color: currentColor;
  20857. width: 100%;
  20858. margin: 0;
  20859. padding: 15px 14px;
  20860. display: block;
  20861. min-width: 0;
  20862. outline: none;
  20863. box-sizing: content-box;
  20864. background: none;
  20865. -webkit-tap-highlight-color: transparent;
  20866. border: 1px solid rgba(0, 0, 0, 0.23);
  20867. border-radius: 4px;
  20868. box-sizing: border-box;
  20869. resize: none;
  20870. }
  20871. .binfo_input:focus-visible {
  20872. border: 1px solid rgba(61, 103, 188);
  20873. }
  20874. .dialog_diy >>> .el-dialog__header,
  20875. .dialog_diy1 >>> .el-dialog__header {
  20876. background: #454545 !important;
  20877. padding: 15px 20px;
  20878. }
  20879. .dialog_diy >>> .el-dialog__title,
  20880. .dialog_diy1 >>> .el-dialog__title {
  20881. color: #fff;
  20882. }
  20883. .dialog_diy >>> .el-dialog__headerbtn,
  20884. .dialog_diy1 >>> .el-dialog__headerbtn {
  20885. top: 19px;
  20886. }
  20887. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  20888. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  20889. color: #fff;
  20890. }
  20891. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  20892. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  20893. color: #fff;
  20894. }
  20895. .dialog_diy1 >>> .el-dialog__body {
  20896. padding: 0;
  20897. }
  20898. .dialog_diy >>> .el-dialog__body,
  20899. .dialog_diy >>> .el-dialog__footer,
  20900. .dialog_diy1 >>> .el-dialog__footer {
  20901. background: #fafafa;
  20902. }
  20903. .a_addBox {
  20904. padding: 0 0 0 15px;
  20905. }
  20906. .a_add_box {
  20907. padding: 10px;
  20908. background: #fff;
  20909. margin-bottom: 10px;
  20910. border-radius: 5px;
  20911. box-shadow: 0 0 5px 0 #d5d5d5;
  20912. }
  20913. .a_add_head {
  20914. display: flex;
  20915. align-items: flex-start;
  20916. /* justify-content: space-between; */
  20917. flex-direction: column;
  20918. /* flex-direction: row; */
  20919. margin: 10px 0 20px 0;
  20920. font-size: 18px;
  20921. width: 100%;
  20922. }
  20923. .askIndex {
  20924. background: #3681fc;
  20925. border-radius: 50%;
  20926. color: #fff;
  20927. width: 25px;
  20928. height: 25px;
  20929. min-width: 25px;
  20930. min-height: 25px;
  20931. text-align: center;
  20932. line-height: 25px;
  20933. margin-right: 5px;
  20934. }
  20935. .a_add_head .a_add_head_input {
  20936. width: 300px;
  20937. }
  20938. .a_add_head .a_add_head_div {
  20939. display: flex;
  20940. align-items: center;
  20941. justify-content: space-between;
  20942. }
  20943. .a_add_body {
  20944. display: flex;
  20945. align-items: center;
  20946. }
  20947. .a_add_input {
  20948. display: flex;
  20949. align-items: center;
  20950. flex-wrap: wrap;
  20951. width: 100%;
  20952. }
  20953. .a_add_input >>> .el-radio-group,
  20954. .a_add_input >>> .el-checkbox-group {
  20955. width: 100%;
  20956. }
  20957. .a_add_input >>> .el-radio,
  20958. .a_add_input >>> .el-checkbox {
  20959. display: flex;
  20960. flex-direction: row;
  20961. flex-wrap: nowrap;
  20962. align-items: center;
  20963. padding: 15px 0;
  20964. }
  20965. .a_add_input >>> .el-radio:not(:last-child),
  20966. .a_add_input >>> .el-checkbox:not(:last-child) {
  20967. width: 100%;
  20968. border-bottom: 1px solid #efefef;
  20969. }
  20970. .redioStyle >>> .el-radio__label {
  20971. font-size: 18px;
  20972. }
  20973. .redioStyle >>> .el-radio__label > span,
  20974. .redioStyle >>> .el-checkbox__label > span {
  20975. word-break: break-all;
  20976. white-space: normal;
  20977. }
  20978. .redioStyle >>> .el-checkbox__label {
  20979. font-size: 18px;
  20980. }
  20981. .toolHeng2 {
  20982. width: 100%;
  20983. padding-left: 37px;
  20984. box-sizing: border-box;
  20985. }
  20986. .workNav {
  20987. font-size: 20px;
  20988. font-weight: bold;
  20989. color: #0e1e33;
  20990. display: flex;
  20991. flex-direction: row;
  20992. flex-wrap: nowrap;
  20993. align-items: center;
  20994. padding: 15px 0 15px 0;
  20995. }
  20996. .workNav::before {
  20997. content: "";
  20998. width: 2px;
  20999. height: 22px;
  21000. background: #3681fc;
  21001. border-radius: 3px;
  21002. display: block;
  21003. margin: 2px 6px 0 0;
  21004. }
  21005. .toolHeng {
  21006. display: flex;
  21007. flex-direction: row;
  21008. flex-wrap: wrap;
  21009. justify-content: flex-start;
  21010. align-items: center;
  21011. width: 100%;
  21012. }
  21013. .toolHeng > div {
  21014. padding-left: 20px;
  21015. }
  21016. .isWidth {
  21017. width: 20%;
  21018. }
  21019. .textTitle {
  21020. display: flex;
  21021. flex-direction: row;
  21022. flex-wrap: nowrap;
  21023. align-items: center;
  21024. width: 95%;
  21025. }
  21026. .textTitle >>> .el-form-item__label {
  21027. font-size: 22px;
  21028. color: #918f8f;
  21029. width: 100px;
  21030. }
  21031. .textTitle >>> .el-form-item__content {
  21032. width: calc(100% - 100px);
  21033. }
  21034. .textCss >>> .el-dialog {
  21035. width: 800px !important;
  21036. height: 400px;
  21037. background: #fafafa;
  21038. }
  21039. .textCss >>> .el-dialog__body {
  21040. margin: 55px 8% 0 8%;
  21041. padding: 0 !important;
  21042. }
  21043. .textCss >>> .el-dialog__footer {
  21044. padding-top: 38px;
  21045. }
  21046. .toolsCss >>> .el-dialog__body {
  21047. padding: 20px;
  21048. }
  21049. .lineCss >>> .el-dialog__body {
  21050. display: flex;
  21051. flex-direction: row;
  21052. align-items: center;
  21053. justify-content: center;
  21054. }
  21055. .newNav {
  21056. display: flex;
  21057. flex-direction: row;
  21058. align-items: baseline;
  21059. justify-content: flex-start;
  21060. }
  21061. .navListItem {
  21062. width: calc(100% - 20px);
  21063. height: 50px;
  21064. margin: 0px auto 10px;
  21065. display: flex;
  21066. flex-direction: row;
  21067. flex-wrap: nowrap;
  21068. align-items: center;
  21069. justify-content: space-between;
  21070. background: #f0f4fa;
  21071. border-radius: 6px 6px 6px 6px;
  21072. }
  21073. .navText {
  21074. cursor: pointer;
  21075. white-space: nowrap;
  21076. overflow: hidden;
  21077. text-overflow: ellipsis;
  21078. width: 220px;
  21079. padding: 0 10px;
  21080. font-weight: 400;
  21081. color: #0e1e33;
  21082. }
  21083. .downIcon {
  21084. width: 20px;
  21085. min-width: 20px;
  21086. height: 20px;
  21087. margin-right: 15px;
  21088. cursor: pointer;
  21089. }
  21090. .downIcon > img {
  21091. width: 100%;
  21092. height: 100%;
  21093. }
  21094. .noVedio {
  21095. display: flex;
  21096. flex-direction: row;
  21097. justify-content: center;
  21098. align-content: center;
  21099. }
  21100. .noNavText {
  21101. cursor: pointer;
  21102. margin: 0px 0px 10px 5px;
  21103. width: 112px;
  21104. }
  21105. .listNoVedio {
  21106. margin: 0 0 0 30px;
  21107. width: 97%;
  21108. }
  21109. .video-player >>> .video-js {
  21110. height: 100%;
  21111. }
  21112. .hangVedioList {
  21113. width: 90% !important;
  21114. height: 150px !important;
  21115. margin: 20px 0 0 30px;
  21116. }
  21117. .hangVedio {
  21118. width: 100%;
  21119. height: 170px !important;
  21120. align-items: flex-start !important;
  21121. }
  21122. .hangHand {
  21123. height: 150px !important;
  21124. }
  21125. .twoChild {
  21126. width: 95%;
  21127. margin: 10px;
  21128. border-radius: 5px;
  21129. background: #f2f2f2;
  21130. display: flex;
  21131. flex-direction: column;
  21132. flex-wrap: nowrap;
  21133. justify-content: flex-start;
  21134. align-items: flex-start;
  21135. transition: all 0.5s;
  21136. overflow: hidden;
  21137. height: 0;
  21138. background: #e7f3ff;
  21139. }
  21140. .twoChild > div:nth-child(1) {
  21141. margin-top: 5px;
  21142. }
  21143. .navChild {
  21144. width: 100%;
  21145. cursor: pointer;
  21146. margin-bottom: 10px;
  21147. position: relative;
  21148. }
  21149. .navChild img {
  21150. position: absolute;
  21151. right: 11px;
  21152. width: 15px;
  21153. top: 50%;
  21154. transform: translateY(-50%);
  21155. }
  21156. .navActive,
  21157. .toolActive {
  21158. height: auto !important;
  21159. overflow: auto !important;
  21160. /* padding-bottom: 16px; */
  21161. }
  21162. .toolActive {
  21163. padding: 0;
  21164. }
  21165. .navTask {
  21166. display: flex;
  21167. flex-direction: row;
  21168. flex-wrap: nowrap;
  21169. align-items: center;
  21170. align-content: flex-start;
  21171. height: 40px;
  21172. justify-content: flex-start;
  21173. padding: 0 10px;
  21174. width: 100%;
  21175. box-sizing: border-box;
  21176. }
  21177. .navTaskname {
  21178. white-space: nowrap;
  21179. text-overflow: ellipsis;
  21180. overflow: hidden;
  21181. word-break: break-all;
  21182. padding-left: 5px;
  21183. }
  21184. .openTaskActive {
  21185. /* background-color: #e0eafb !important;
  21186. color: #0061ff; */
  21187. color:#fff;
  21188. background: rgb(55, 129, 252) !important;
  21189. }
  21190. .iframeName {
  21191. margin: 5px 0;
  21192. border-left: 4px solid #41c4a4;
  21193. padding-left: 4px;
  21194. }
  21195. .toolTitle {
  21196. margin: 0px 0px 20px;
  21197. font-size: 20px;
  21198. font-weight: 500;
  21199. border-left: 4px solid #41c4a4;
  21200. padding-left: 4px;
  21201. }
  21202. .cru_selectBox {
  21203. overflow: auto;
  21204. width: 95%;
  21205. margin: 17px auto 0;
  21206. height: calc(100% - 40px - 21px - 20px - 17px);
  21207. background: #fff;
  21208. border-radius: 8px;
  21209. }
  21210. .cru_selectBox::-webkit-scrollbar,
  21211. .study_top::-webkit-scrollbar,
  21212. .textContent::-webkit-scrollbar {
  21213. /*滚动条整体样式*/
  21214. width: 6px;
  21215. /*高宽分别对应横竖滚动条的尺寸*/
  21216. height: 6px;
  21217. }
  21218. /*定义滚动条轨道 内阴影+圆角*/
  21219. .cru_selectBox::-webkit-scrollbar-track,
  21220. .study_top::-webkit-scrollbar-track,
  21221. .textContent::-webkit-scrollbar {
  21222. border-radius: 10px;
  21223. background-color: #b8bdc9;
  21224. }
  21225. /*定义滑块 内阴影+圆角*/
  21226. .cru_selectBox::-webkit-scrollbar-thumb,
  21227. .study_top::-webkit-scrollbar-thumb,
  21228. .textContent::-webkit-scrollbar-thumb {
  21229. border-radius: 10px;
  21230. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  21231. background-color: #2c5ab3;
  21232. }
  21233. .vedioBox {
  21234. border-radius: 0 0 20px 20px;
  21235. background: #fff;
  21236. overflow: auto;
  21237. }
  21238. .taskBox {
  21239. width: 98%;
  21240. background: #f0f4fa;
  21241. margin: 10px auto;
  21242. padding: 0 10px;
  21243. border-radius: 4px;
  21244. box-sizing: border-box;
  21245. }
  21246. .vedioTaskBox {
  21247. width: 100%;
  21248. display: flex;
  21249. flex-direction: row;
  21250. flex-wrap: nowrap;
  21251. align-items: flex-start;
  21252. position: relative;
  21253. }
  21254. .toolBox {
  21255. margin: 15px 0 0 25px;
  21256. display: flex;
  21257. position: relative;
  21258. padding: 18px 20px;
  21259. border-top-left-radius: 5px;
  21260. border-top-right-radius: 5px;
  21261. width: 90%;
  21262. }
  21263. .btnAll {
  21264. position: absolute;
  21265. right: 0;
  21266. display: flex;
  21267. flex-direction: row;
  21268. flex-wrap: nowrap;
  21269. align-items: center;
  21270. }
  21271. .btnLeft,
  21272. .btnRight {
  21273. display: flex;
  21274. flex-direction: row;
  21275. flex-wrap: nowrap;
  21276. align-items: center;
  21277. padding: 5px 0;
  21278. }
  21279. .btnLeft {
  21280. border-right: 1px solid #cad1dc;
  21281. }
  21282. .btnLeft > .custom-tooltip {
  21283. background: #3681fc;
  21284. color: #fff;
  21285. }
  21286. .last:hover {
  21287. background: #3383fa !important;
  21288. color: #fff;
  21289. border: 1px solid #3383fa !important;
  21290. }
  21291. .last,
  21292. .returnBtn1 {
  21293. width: 90px;
  21294. height: 36px;
  21295. background: #ffffff;
  21296. border-radius: 4px;
  21297. border: 1px solid #0061ff;
  21298. color: #0061ff;
  21299. cursor: pointer;
  21300. display: flex;
  21301. flex-direction: row;
  21302. flex-wrap: nowrap;
  21303. align-items: center;
  21304. justify-content: center;
  21305. margin-left: 12px;
  21306. }
  21307. .returnBtn1 {
  21308. background: #f0f4fa;
  21309. border-radius: 4px;
  21310. border: 1px solid #cad1dc;
  21311. margin: 0 12px;
  21312. }
  21313. .lastImg {
  21314. min-width: 15px;
  21315. width: 15px;
  21316. height: 15px;
  21317. display: flex;
  21318. }
  21319. .lastText {
  21320. padding: 0 5px 0 5px;
  21321. box-sizing: border-box;
  21322. font-size: 14px;
  21323. }
  21324. .lastImg > img {
  21325. width: 100%;
  21326. height: 100%;
  21327. }
  21328. /* .vedioTimeBox {
  21329. display: flex;
  21330. flex-direction: row;
  21331. align-items: center;
  21332. flex-wrap: nowrap;
  21333. position: relative;
  21334. } */
  21335. .navBox {
  21336. background: #fff;
  21337. height: calc(100% - 40px);
  21338. overflow-y: auto;
  21339. overflow-x: hidden;
  21340. }
  21341. .worksBox {
  21342. margin: 0 0 10px 25px;
  21343. border-bottom: 1px solid #eeeeee;
  21344. padding: 18px 20px;
  21345. border-radius: 4px;
  21346. width: 90%;
  21347. }
  21348. .worksBTitle {
  21349. font-size: 20px;
  21350. padding-bottom: 15px;
  21351. border-bottom: 1px solid #eeeeee;
  21352. display: flex;
  21353. align-items: center;
  21354. }
  21355. .greenBox {
  21356. width: 5px;
  21357. height: 30px;
  21358. background: #63b6fa;
  21359. margin-right: 5px;
  21360. }
  21361. .worksDetailBox {
  21362. display: flex;
  21363. width: 100%;
  21364. flex-direction: row;
  21365. flex-wrap: wrap;
  21366. align-items: flex-end;
  21367. justify-content: flex-start;
  21368. padding: 15px 5px;
  21369. box-sizing: border-box;
  21370. }
  21371. .works {
  21372. display: flex;
  21373. flex-direction: column;
  21374. flex-wrap: nowrap;
  21375. align-items: flex-start;
  21376. justify-content: flex-start;
  21377. align-content: center;
  21378. max-width: 240px;
  21379. width: calc(100% / 3 - 10px);
  21380. height: auto;
  21381. margin-right: 10px;
  21382. margin-bottom: 10px;
  21383. overflow: hidden;
  21384. height: 140px;
  21385. box-shadow: 0 0 6px 1px #dfdada;
  21386. border-radius: 15px;
  21387. }
  21388. .workImg {
  21389. width: 100%;
  21390. /* height: calc(100% - 40px); */
  21391. height: 105px;
  21392. position: relative;
  21393. }
  21394. .workImg > img {
  21395. width: 100%;
  21396. height: 100%;
  21397. object-fit: contain;
  21398. cursor: pointer;
  21399. }
  21400. .worksName {
  21401. height: 40px;
  21402. line-height: 40px;
  21403. display: flex;
  21404. width: 100%;
  21405. flex-direction: row;
  21406. flex-wrap: nowrap;
  21407. justify-content: space-between;
  21408. align-items: center;
  21409. margin: 0 0 0 10px;
  21410. }
  21411. .worksName > div:nth-child(1) {
  21412. width: 110px;
  21413. white-space: nowrap;
  21414. overflow: hidden;
  21415. text-overflow: ellipsis;
  21416. }
  21417. .worksName > div:nth-child(2) {
  21418. color: #b7b4b5;
  21419. }
  21420. .noWorksS {
  21421. padding: 15px 0;
  21422. display: flex;
  21423. flex-direction: row;
  21424. flex-wrap: wrap;
  21425. align-items: center;
  21426. justify-content: flex-start;
  21427. }
  21428. .noWorksName,
  21429. .isWorksName,
  21430. .isWorksName2 {
  21431. background: #ddebf8;
  21432. color: #000;
  21433. width: 90px;
  21434. height: 25px;
  21435. text-align: center;
  21436. line-height: 25px;
  21437. border-radius: 4px;
  21438. margin: 10px 15px 10px 0;
  21439. white-space: nowrap;
  21440. overflow: hidden;
  21441. padding: 5px;
  21442. text-overflow: ellipsis;
  21443. cursor: pointer;
  21444. border: 1px solid #ddebf8;
  21445. }
  21446. .noWorksName {
  21447. background: #fff;
  21448. color: #0061ff;
  21449. border: 1px solid #0061ff;
  21450. }
  21451. .isWorksName2 {
  21452. width: 100px;
  21453. height: 40px;
  21454. line-height: 40px;
  21455. position: relative;
  21456. background: #dae6f9;
  21457. }
  21458. .isWorksName {
  21459. background: #e7ebf1 !important;
  21460. width: 100px;
  21461. height: 40px;
  21462. line-height: 40px;
  21463. position: relative;
  21464. color: #acb4bf;
  21465. border: 1px solid #cad1dc !important;
  21466. }
  21467. .isSelectName,
  21468. .noWorksName:hover {
  21469. background: #3383fa !important;
  21470. color: #fff !important;
  21471. border: 1px solid #3383fa !important;
  21472. }
  21473. .title {
  21474. background: #1e5cc9;
  21475. /* width: 98%; */
  21476. height: 45px;
  21477. color: #fff;
  21478. line-height: 45px;
  21479. padding-left: 20px;
  21480. box-sizing: border-box;
  21481. }
  21482. .textBox {
  21483. font-size: 20px;
  21484. width: 90%;
  21485. display: flex;
  21486. flex-direction: column;
  21487. align-items: center;
  21488. margin: 20px auto 0;
  21489. max-height: calc(100% - 75px);
  21490. overflow: auto;
  21491. }
  21492. .textContent {
  21493. font-size: 18px;
  21494. width: 95%;
  21495. max-width: 95%;
  21496. }
  21497. .answerBg {
  21498. background: url("../assets/icon/answerBgNew.png") no-repeat;
  21499. background-size: 100% 100%;
  21500. width: 100%;
  21501. height: 100%;
  21502. color: #fff;
  21503. text-align: center;
  21504. display: flex;
  21505. flex-direction: column;
  21506. flex-wrap: nowrap;
  21507. align-items: center;
  21508. position: relative;
  21509. justify-content: center;
  21510. }
  21511. .answerBg > div:nth-child(1) {
  21512. /* font-size: 22px;
  21513. padding: 25px 0 10px; */
  21514. }
  21515. .answerContent {
  21516. width: 215px;
  21517. max-height: 60px;
  21518. word-break: break-all;
  21519. text-align: center;
  21520. /* white-space: nowrap; */
  21521. overflow: hidden;
  21522. text-overflow: ellipsis;
  21523. /* padding: 23px 0 0; */
  21524. -webkit-line-clamp: 3;
  21525. -webkit-box-orient: vertical;
  21526. display: -webkit-box;
  21527. font-size: 15px;
  21528. cursor: pointer;
  21529. }
  21530. .elist_input_box {
  21531. display: flex;
  21532. align-items: flex-start;
  21533. flex-wrap: nowrap;
  21534. padding: 10px 0 15px 30px;
  21535. flex-direction: column;
  21536. }
  21537. .elist_input {
  21538. /* width: 40%; */
  21539. width: 45%;
  21540. margin: 20px;
  21541. }
  21542. .elist_input .elist_input_box input {
  21543. font: inherit;
  21544. color: currentColor;
  21545. width: 200px;
  21546. padding: 8px 14px;
  21547. display: block;
  21548. min-width: 0;
  21549. outline: none;
  21550. border: 1px solid rgba(0, 0, 0, 0.23);
  21551. border-radius: 4px;
  21552. box-sizing: border-box;
  21553. background: #fff;
  21554. margin: 0 20px 0 0;
  21555. }
  21556. .elist_input .elist_input_box span {
  21557. height: 36px;
  21558. line-height: 36px;
  21559. color: rgb(82, 82, 82);
  21560. }
  21561. .elist_input .elist_input_box .remove {
  21562. height: 20px;
  21563. width: 20px;
  21564. background-size: 100% 100%;
  21565. background-position: unset;
  21566. margin-left: 5px;
  21567. }
  21568. .elist_input_box >>> .el-rate {
  21569. display: flex;
  21570. height: 36px;
  21571. align-items: center;
  21572. }
  21573. .elist_input_box .elist_inptu_text {
  21574. min-height: 50px;
  21575. /* width: 500px;
  21576. max-height: 150px; */
  21577. width: 100%;
  21578. line-height: 50px;
  21579. color: rgb(82, 82, 82);
  21580. overflow: auto;
  21581. text-indent: 5px;
  21582. background: #f7f6f9;
  21583. border-radius: 10px;
  21584. }
  21585. .elist_input_box .elist_inptu_text input {
  21586. width: 500px;
  21587. }
  21588. .elist_input_box >>> .el-rate__icon {
  21589. font-size: 24px;
  21590. }
  21591. .isClick {
  21592. background: #4d9def;
  21593. }
  21594. .bzBox {
  21595. display: flex;
  21596. flex-direction: row;
  21597. align-items: center;
  21598. }
  21599. .bzBox .yCss {
  21600. width: 7px;
  21601. height: 7px;
  21602. background: #fff;
  21603. margin: 0 16px 0 6px;
  21604. border-radius: 50%;
  21605. border: 5px solid #3681fc;
  21606. z-index: 99;
  21607. }
  21608. .bzBox > div:nth-child(2) {
  21609. font-size: 18px;
  21610. font-weight: bold;
  21611. color: #0e1e33;
  21612. }
  21613. .navTitile {
  21614. padding: 0 0px 0 15px;
  21615. font-size: 16px;
  21616. font-weight: bold;
  21617. color: #0e1e33;
  21618. height: 40px;
  21619. line-height: 40px;
  21620. }
  21621. .isTypeOne {
  21622. width: 240px;
  21623. height: 170px;
  21624. /* border: 1px solid #f8f8f8; */
  21625. border-radius: 10px;
  21626. box-shadow: 0 0 6px 1px #dfdada;
  21627. }
  21628. .e_add_top {
  21629. display: flex;
  21630. justify-content: space-between;
  21631. padding: 10px 20px;
  21632. border-radius: 3px;
  21633. background: #fff;
  21634. }
  21635. .e_add_title2 {
  21636. display: flex;
  21637. align-items: center;
  21638. }
  21639. .e_add_title2 span {
  21640. width: 40px;
  21641. }
  21642. .e_add_title {
  21643. display: flex;
  21644. align-items: center;
  21645. color: #b8b8b8;
  21646. font-size: 18px;
  21647. position: relative;
  21648. height: 40px;
  21649. width: 100%;
  21650. }
  21651. .e_add_title span {
  21652. margin-right: 10px;
  21653. }
  21654. .e_add_title .el_input {
  21655. width: 300px;
  21656. }
  21657. .e_add_title >>> .el-input__inner {
  21658. width: 400px;
  21659. }
  21660. .e_add_btn {
  21661. }
  21662. .e_add_content {
  21663. display: flex;
  21664. width: 100%;
  21665. max-width: 650px;
  21666. height: 550px;
  21667. }
  21668. .e_add_list {
  21669. background: #fff;
  21670. height: 500px;
  21671. width: 210px;
  21672. position: relative;
  21673. margin: 15px 5px 0 0;
  21674. flex-shrink: 0;
  21675. display: flex;
  21676. flex-direction: column;
  21677. }
  21678. .e_add_list_title {
  21679. font-size: 20px;
  21680. width: 100%;
  21681. box-sizing: border-box;
  21682. padding: 15px 40px;
  21683. text-align: center;
  21684. border-bottom: 1px solid #eaeaea;
  21685. position: relative;
  21686. display: flex;
  21687. align-items: center;
  21688. justify-content: center;
  21689. height: 57px;
  21690. background: #f6f6f6;
  21691. }
  21692. .e_add_list_title span {
  21693. overflow: hidden;
  21694. white-space: nowrap;
  21695. text-overflow: ellipsis;
  21696. }
  21697. .e_add_list_title img {
  21698. position: absolute;
  21699. right: 15px;
  21700. width: 25px;
  21701. cursor: pointer;
  21702. top: 50%;
  21703. transform: translateY(-50%);
  21704. }
  21705. .e_add_list_body {
  21706. height: calc(100% - 187px);
  21707. overflow: auto;
  21708. }
  21709. .e_add_list_child {
  21710. width: 100%;
  21711. display: flex;
  21712. align-items: center;
  21713. justify-content: center;
  21714. position: relative;
  21715. box-sizing: border-box;
  21716. padding: 15px 40px;
  21717. text-align: center;
  21718. }
  21719. .e_add_list_child span {
  21720. overflow: hidden;
  21721. white-space: nowrap;
  21722. text-overflow: ellipsis;
  21723. cursor: pointer;
  21724. }
  21725. .e_add_list_child img {
  21726. position: absolute;
  21727. right: 10px;
  21728. width: 21px;
  21729. cursor: pointer;
  21730. top: 50%;
  21731. transform: translateY(-50%);
  21732. }
  21733. .e_add_list_child + .e_add_list_child {
  21734. border-top: 1px solid #eaeaea;
  21735. }
  21736. .e_add_list_child .active {
  21737. color: #409eff;
  21738. }
  21739. .e_add_list_btn {
  21740. position: absolute;
  21741. bottom: 0;
  21742. height: 50px;
  21743. background: rgb(120, 120, 254);
  21744. width: 100%;
  21745. color: #fff;
  21746. font-size: 16px;
  21747. text-align: center;
  21748. line-height: 50px;
  21749. cursor: pointer;
  21750. }
  21751. .e_add_list_detail {
  21752. position: absolute;
  21753. bottom: 0;
  21754. height: 130px;
  21755. background: rgb(120, 120, 254);
  21756. width: 100%;
  21757. color: #fff;
  21758. font-size: 16px;
  21759. display: flex;
  21760. align-items: center;
  21761. justify-content: center;
  21762. }
  21763. .e_add_list_detail textarea {
  21764. height: 90%;
  21765. width: 95%;
  21766. border: none;
  21767. resize: none;
  21768. outline: none;
  21769. padding: 5px;
  21770. box-sizing: border-box;
  21771. }
  21772. .e_add_list_pbox {
  21773. width: 100%;
  21774. max-width: 650px;
  21775. /* height: 600px; */
  21776. }
  21777. .e_add_list_pbox_title {
  21778. height: 50px;
  21779. background: #fff;
  21780. display: flex;
  21781. align-items: center;
  21782. width: 100%;
  21783. box-sizing: border-box;
  21784. padding: 0 20px;
  21785. }
  21786. .type_title {
  21787. font-size: 18px;
  21788. font-weight: 700;
  21789. }
  21790. .type_content {
  21791. font-size: 16px;
  21792. /* margin-left: 30px; */
  21793. }
  21794. .type_content span + span {
  21795. margin-left: 20px;
  21796. }
  21797. .type_content span {
  21798. cursor: pointer;
  21799. padding-bottom: 5px;
  21800. box-sizing: border-box;
  21801. }
  21802. .type_content .active {
  21803. color: #409eff;
  21804. border-bottom: 2px solid #409eff;
  21805. }
  21806. .e_add_list_pbox_content {
  21807. height: calc(100% - 50px);
  21808. display: flex;
  21809. align-items: center;
  21810. width: 100%;
  21811. background: #fff;
  21812. }
  21813. .evaCss {
  21814. display: flex;
  21815. flex-direction: row;
  21816. flex-wrap: nowrap;
  21817. align-items: flex-start;
  21818. padding: 0 0 20px;
  21819. }
  21820. .cru_line {
  21821. position: absolute;
  21822. bottom: 0px;
  21823. transition: all 0.5s;
  21824. left: 0px;
  21825. width: 125px;
  21826. margin-left: -25px;
  21827. }
  21828. .isNoMessage {
  21829. width: 20%;
  21830. margin: 25% auto 0;
  21831. }
  21832. .isNoMessage > img {
  21833. width: 100%;
  21834. height: 100%;
  21835. }
  21836. .fullStyle >>> .el-dialog__body {
  21837. height: 100% !important;
  21838. }
  21839. .fullStyle >>> .el-dialog,
  21840. .fullStyle {
  21841. width: 100% !important;
  21842. max-width: 100% !important;
  21843. height: 100% !important;
  21844. margin: 0 !important;
  21845. }
  21846. .full_diy >>> .el-dialog {
  21847. margin: 0 !important;
  21848. height: 100%;
  21849. padding: 4px;
  21850. }
  21851. .full_diy >>> .el-dialog__body {
  21852. height: calc(100% - 100px);
  21853. }
  21854. .full_diy2 >>> .el-dialog__body {
  21855. height: calc(100% - 50px);
  21856. padding: 0;
  21857. }
  21858. .switchCss {
  21859. /* width: 100%; */
  21860. display: flex;
  21861. flex-direction: row;
  21862. flex-wrap: nowrap;
  21863. align-items: center;
  21864. /* justify-content: center; */
  21865. }
  21866. .isClickNav {
  21867. /* color: #499eef; */
  21868. color: #000;
  21869. }
  21870. .commentImg {
  21871. width: 25px;
  21872. height: 25px;
  21873. cursor: pointer;
  21874. }
  21875. .commentImg > img {
  21876. width: 100%;
  21877. height: 100%;
  21878. }
  21879. .comment {
  21880. background: #f9f9f9;
  21881. border-radius: 0 0 4px 4px;
  21882. display: flex;
  21883. flex-direction: row;
  21884. flex-wrap: nowrap;
  21885. align-items: center;
  21886. justify-content: flex-end;
  21887. height: 35px;
  21888. }
  21889. .commentList {
  21890. display: flex;
  21891. flex-direction: row;
  21892. flex-wrap: nowrap;
  21893. align-items: center;
  21894. justify-content: center;
  21895. align-content: center;
  21896. /* margin-left: 15px; */
  21897. /* margin-left: 8px; */
  21898. }
  21899. .scoreImg {
  21900. width: 17px;
  21901. height: 17px;
  21902. }
  21903. .studentDetail {
  21904. display: flex;
  21905. flex-direction: row;
  21906. flex-wrap: nowrap;
  21907. /* align-items: center; */
  21908. align-items: flex-start;
  21909. }
  21910. .tx {
  21911. width: 50px;
  21912. }
  21913. .tx > img {
  21914. width: 100%;
  21915. height: 100%;
  21916. }
  21917. .nameAndTime {
  21918. display: flex;
  21919. flex-direction: column;
  21920. flex-wrap: nowrap;
  21921. align-items: flex-start;
  21922. margin-left: 10px;
  21923. }
  21924. .worksAnswer {
  21925. color: #4078dd;
  21926. margin: 10px 0;
  21927. font-size: 16px;
  21928. position: relative;
  21929. }
  21930. .worksAnswer > img {
  21931. width: 500px;
  21932. height: 300px;
  21933. object-fit: contain;
  21934. margin: 0 auto;
  21935. display: block;
  21936. }
  21937. .commentTop {
  21938. border-bottom: 1px solid #eaeaea;
  21939. padding-bottom: 10px;
  21940. }
  21941. .commentBox {
  21942. padding-top: 15px;
  21943. }
  21944. .pl {
  21945. font-size: 18px;
  21946. }
  21947. .plPerson {
  21948. width: 100%;
  21949. }
  21950. .plName {
  21951. display: flex;
  21952. flex-direction: row;
  21953. flex-wrap: nowrap;
  21954. align-items: baseline;
  21955. color: #78787a;
  21956. width: 100%;
  21957. }
  21958. .deleteComment {
  21959. cursor: pointer;
  21960. margin-left: auto;
  21961. color: #237ade;
  21962. }
  21963. .plContent {
  21964. margin-top: 5px;
  21965. }
  21966. .evalCss {
  21967. background: #fff;
  21968. font-size: 18px;
  21969. }
  21970. .nav {
  21971. color: #9d9d9d;
  21972. padding: 5px 0 15px 20px;
  21973. }
  21974. .middleBox {
  21975. padding: 5px 0 15px 20px;
  21976. }
  21977. .pfBox {
  21978. padding-bottom: 30px;
  21979. }
  21980. .nameAndrate {
  21981. display: flex;
  21982. flex-direction: row;
  21983. flex-wrap: nowrap;
  21984. align-items: center;
  21985. padding-bottom: 10px;
  21986. height: 30px;
  21987. line-height: 30px;
  21988. }
  21989. .nameAndrate > div {
  21990. margin-left: 10px;
  21991. color: #000;
  21992. height: 30px;
  21993. }
  21994. .nameAndrate >>> .el-rate__icon {
  21995. font-size: 28px !important;
  21996. }
  21997. .pfBox > div:nth-child(2) {
  21998. background: #f7f6f9;
  21999. width: 400px;
  22000. min-height: 45px;
  22001. border-radius: 10px;
  22002. font-size: 16px;
  22003. display: flex;
  22004. flex-wrap: wrap;
  22005. align-items: center;
  22006. padding: 10px 20px;
  22007. box-sizing: border-box;
  22008. color: #000;
  22009. }
  22010. .bz {
  22011. display: flex;
  22012. flex-direction: row;
  22013. flex-wrap: nowrap;
  22014. align-items: flex-start;
  22015. }
  22016. .bz > div {
  22017. padding: 0 10px;
  22018. }
  22019. .select_box2_title {
  22020. background: #fff;
  22021. border-radius: 5px;
  22022. padding: 15px 10px;
  22023. box-sizing: border-box;
  22024. margin-bottom: 10px;
  22025. display: flex;
  22026. flex-direction: row;
  22027. flex-wrap: nowrap;
  22028. align-items: center;
  22029. }
  22030. .select_box2_title > div:nth-child(2) {
  22031. margin-left: 10px;
  22032. color: #c4c4c4;
  22033. }
  22034. .select_box2_box {
  22035. display: flex;
  22036. height: 500px;
  22037. }
  22038. .select_box2_img {
  22039. width: calc(100% - 310px);
  22040. height: 100%;
  22041. overflow: auto;
  22042. background: #fff;
  22043. border-radius: 5px;
  22044. }
  22045. .select_box2_img img {
  22046. width: 100%;
  22047. }
  22048. .select_box2_answer {
  22049. background: #fff;
  22050. margin-left: 10px;
  22051. border-radius: 5px;
  22052. width: 300px;
  22053. overflow: auto;
  22054. height: 90%;
  22055. display: flex;
  22056. flex-direction: column;
  22057. align-items: flex-start;
  22058. padding-top: 10px;
  22059. box-sizing: border-box;
  22060. position: relative;
  22061. }
  22062. .select_answer_title {
  22063. padding: 0 0 15px 20px;
  22064. color: #c4c4c4;
  22065. }
  22066. .select_box2_answer_box {
  22067. margin: 0 0 10px 20px;
  22068. width: 85%;
  22069. display: flex;
  22070. flex-direction: row;
  22071. flex-wrap: nowrap;
  22072. align-items: center;
  22073. }
  22074. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22075. color: #000;
  22076. }
  22077. .upAnswerCss {
  22078. position: absolute;
  22079. bottom: 15px;
  22080. right: 15px;
  22081. }
  22082. .upAnswerCss >>> .el-button {
  22083. width: 95px;
  22084. height: 35px;
  22085. line-height: 35px;
  22086. padding: 0;
  22087. }
  22088. .rightWidthCss {
  22089. width: 60%;
  22090. display: flex;
  22091. flex-direction: row;
  22092. align-items: flex-start;
  22093. }
  22094. .rightAnswer {
  22095. display: flex;
  22096. flex-direction: row;
  22097. flex-wrap: nowrap;
  22098. align-items: center;
  22099. color: red;
  22100. margin-bottom: 31px;
  22101. }
  22102. .rightAnswerCss {
  22103. display: flex;
  22104. flex-direction: column;
  22105. flex-wrap: nowrap;
  22106. padding-top: 60px;
  22107. }
  22108. .blueCss {
  22109. color: #767de1;
  22110. margin-left: 10px;
  22111. }
  22112. .redCss {
  22113. color: red;
  22114. }
  22115. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22116. color: rgb(0 123 255) !important;
  22117. }
  22118. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22119. color: rgb(0 123 255) !important;
  22120. }
  22121. .zuoyeYulan {
  22122. padding-top: 0;
  22123. font-size: 18px;
  22124. display: flex;
  22125. align-items: flex-end;
  22126. }
  22127. .buttonA {
  22128. margin-left: 10px;
  22129. padding: 0;
  22130. }
  22131. .displayBox {
  22132. margin-bottom: 10px;
  22133. display: block;
  22134. border-bottom: 3px solid #eee;
  22135. display: flex;
  22136. align-items: center;
  22137. }
  22138. .easy_comment {
  22139. width: calc(100% - 90px);
  22140. margin-left: 10px;
  22141. display: flex;
  22142. flex-wrap: wrap;
  22143. }
  22144. .easy_comment > div {
  22145. border: 1px solid #4a4a4a;
  22146. color: #666;
  22147. border-radius: 15px;
  22148. padding: 5px 10px;
  22149. font-size: 16px;
  22150. margin-bottom: 10px;
  22151. margin-right: 5px;
  22152. cursor: pointer;
  22153. }
  22154. .easy_comment div:hover {
  22155. border: 1px solid #f7ba2a;
  22156. color: #c69217;
  22157. }
  22158. .xuan_right_box {
  22159. padding: 10px 0;
  22160. background: #f0f4fa;
  22161. margin: 0 15px 0 25px;
  22162. border-bottom-left-radius: 5px;
  22163. border-bottom-right-radius: 5px;
  22164. width: 91.5%;
  22165. }
  22166. .tool_right_box {
  22167. display: flex;
  22168. align-items: center;
  22169. }
  22170. .tool_right_box + .tool_right_box {
  22171. margin-top: 10px;
  22172. }
  22173. .right_box_xuan {
  22174. border-radius: 5px;
  22175. padding: 5px;
  22176. margin-left: 10px;
  22177. min-width: 85px;
  22178. background: #fff;
  22179. color: #0061ff;
  22180. border: 1px solid #0061ff;
  22181. font-size: 14px;
  22182. }
  22183. .pButton:hover {
  22184. opacity: 1 !important;
  22185. }
  22186. .pButton {
  22187. position: fixed;
  22188. text-align: center;
  22189. cursor: pointer;
  22190. z-index: 999;
  22191. right: 20px;
  22192. top: 110px;
  22193. width: 50px;
  22194. height: 50px;
  22195. display: flex;
  22196. align-items: center;
  22197. justify-content: center;
  22198. border-radius: 5px;
  22199. }
  22200. .pzClass {
  22201. width: calc(100% - 340px);
  22202. }
  22203. .newDialogCss {
  22204. /* position: fixed;
  22205. right: 5%;
  22206. top: 50%;
  22207. width: 340px;
  22208. transform: translateY(-50%);
  22209. height: 60%;
  22210. box-shadow: 0px 0 8px 0px #555555;
  22211. border-radius: 15px;
  22212. z-index: 999; */
  22213. position: fixed;
  22214. right: 20px;
  22215. top: 101px;
  22216. width: 330px;
  22217. height: calc(100% - 80px);
  22218. z-index: 999;
  22219. background: #fff;
  22220. border-top-right-radius: 0px;
  22221. border-bottom-right-radius: 0px;
  22222. overflow: hidden;
  22223. }
  22224. .newDialogCss>.scoreList{
  22225. width:100%;
  22226. height:100%;
  22227. box-sizing:border-box;
  22228. padding:10px 15px;
  22229. overflow:auto;
  22230. padding-bottom:80px;
  22231. }
  22232. .pzTop {
  22233. color: #fff;
  22234. background: #000;
  22235. display: flex;
  22236. flex-direction: row;
  22237. flex-wrap: nowrap;
  22238. align-items: center;
  22239. justify-content: space-between;
  22240. height: 40px;
  22241. border-radius: 15px 15px 0 0;
  22242. user-select: none;
  22243. }
  22244. .pzTop2 .checkbox {
  22245. display: flex;
  22246. align-items: center;
  22247. padding: 5px 30px;
  22248. flex: 0 0 auto;
  22249. font-weight: bold;
  22250. border-bottom: 1px solid #eee;
  22251. justify-content: space-between;
  22252. }
  22253. .checkbox>.cb-tabList{
  22254. display:flex;
  22255. align-items:center;
  22256. }
  22257. .cb-tabList>div{
  22258. margin-right:20px;
  22259. font-weight:400;
  22260. cursor:pointer;
  22261. }
  22262. .cb-tabList>.cb-tabItem{
  22263. color:#1684FC;
  22264. position:relative;
  22265. }
  22266. .cb-tabItem::after{
  22267. content:"";
  22268. width:100%;
  22269. height:2px;
  22270. background:#1684FC;
  22271. position:absolute;
  22272. bottom:-5px;
  22273. left:0
  22274. }
  22275. .pzTop2 .check {
  22276. text-align: center;
  22277. cursor: pointer;
  22278. box-sizing: border-box;
  22279. display: flex;
  22280. }
  22281. .pzTop2 img {
  22282. width: 25px;
  22283. cursor: pointer;
  22284. }
  22285. .pzTop > div:nth-child(1) {
  22286. padding-left: 10px;
  22287. }
  22288. .pzTop > div:nth-child(2) {
  22289. width: 15px;
  22290. height: 15px;
  22291. padding-right: 10px;
  22292. cursor: pointer;
  22293. }
  22294. .pzTop > div:nth-child(2) > img {
  22295. width: 100%;
  22296. height: 100%;
  22297. }
  22298. .pzBox,
  22299. .noPzBox {
  22300. height: calc(100% - 60px);
  22301. /* background: #ededed; */
  22302. background: #fff;
  22303. /* border-radius: 0 0 15px 15px; */
  22304. }
  22305. .noPzBox {
  22306. display: flex;
  22307. flex-direction: column;
  22308. flex-wrap: nowrap;
  22309. justify-content: center;
  22310. align-items: center;
  22311. }
  22312. .pzList {
  22313. background: #f7f7f7;
  22314. width: 90%;
  22315. margin: 0 auto 15px;
  22316. border-radius: 5px;
  22317. }
  22318. .pzNavTop {
  22319. display: flex;
  22320. flex-direction: row;
  22321. flex-wrap: nowrap;
  22322. padding: 10px 10px 0 10px;
  22323. align-items: center;
  22324. }
  22325. .pzDelete {
  22326. cursor: pointer;
  22327. margin-left: auto;
  22328. font-size: 14px;
  22329. color: #afafaf;
  22330. }
  22331. .pzNavTop > div:nth-child(1) {
  22332. background: #3760af;
  22333. width: 35px;
  22334. height: 35px;
  22335. color: #fff;
  22336. text-align: center;
  22337. line-height: 35px;
  22338. border-radius: 50%;
  22339. font-size: 14px;
  22340. }
  22341. .pzNavTop > div:nth-child(2) {
  22342. font-size: 18px;
  22343. color: #959595;
  22344. margin-left: 5px;
  22345. }
  22346. .pzContent {
  22347. padding: 10px;
  22348. word-break: break-word;
  22349. }
  22350. .pzContent audio {
  22351. width: 100%;
  22352. }
  22353. .pzContent audio::-webkit-media-controls-panel {
  22354. background: #fff;
  22355. }
  22356. .pzContent >>> img {
  22357. max-width: 100%;
  22358. }
  22359. .pzListBox {
  22360. padding-top: 15px;
  22361. height: calc(100% - 110px);
  22362. overflow: auto;
  22363. }
  22364. .addPzButton {
  22365. position: relative;
  22366. margin-top: 3px;
  22367. width: 100%;
  22368. }
  22369. .addPzButton .img1 {
  22370. position: absolute;
  22371. top: 50%;
  22372. right: 25px;
  22373. transform: translateY(-50%);
  22374. height: 100%;
  22375. display: flex;
  22376. align-items: center;
  22377. }
  22378. .addPzButton .img1 div {
  22379. display: flex;
  22380. }
  22381. .addPzButton .img1 div img {
  22382. width: 28px;
  22383. margin-left: 10px;
  22384. cursor: pointer;
  22385. }
  22386. .addPzButton .img1 div span {
  22387. font-size: 14px;
  22388. margin: 4px 0 0 3px;
  22389. color: #afafaf;
  22390. }
  22391. .addPz {
  22392. background: #4b79ce;
  22393. width: 100px;
  22394. color: #fff;
  22395. font-size: 12px;
  22396. height: 30px;
  22397. margin: 0 auto;
  22398. text-align: center;
  22399. line-height: 30px;
  22400. border-radius: 10px;
  22401. cursor: pointer;
  22402. }
  22403. .addDialogCss {
  22404. position: fixed;
  22405. width: 600px;
  22406. height: 70%;
  22407. min-height: 450px;
  22408. box-shadow: 0px 0 8px 0px #555555;
  22409. border-radius: 15px;
  22410. z-index: 999;
  22411. left: 50%;
  22412. top: 50%;
  22413. margin: -18% 0 0 -300px;
  22414. }
  22415. .teacherPz {
  22416. display: flex;
  22417. flex-direction: row;
  22418. align-items: center;
  22419. flex-wrap: nowrap;
  22420. }
  22421. .teacherPzImg {
  22422. width: 30px;
  22423. height: 30px;
  22424. }
  22425. .teacherPzImg > img {
  22426. width: 100%;
  22427. height: 100%;
  22428. }
  22429. .addPzBox {
  22430. height: calc(100% - 40px);
  22431. background: #ededed;
  22432. border-bottom-left-radius: 15px;
  22433. border-bottom-right-radius: 15px;
  22434. }
  22435. .pzAudioClass {
  22436. margin: 15px 14px;
  22437. background: #fff;
  22438. height: 100%;
  22439. display: flex;
  22440. justify-content: center;
  22441. align-items: center;
  22442. }
  22443. .pzConText {
  22444. width: 95%;
  22445. height: 100%;
  22446. margin: 10px auto 0;
  22447. border: none;
  22448. background: #fff;
  22449. border-radius: 0px;
  22450. }
  22451. .pzConText >>> .text {
  22452. height: calc(100% - 82px);
  22453. }
  22454. .addTextCss {
  22455. background: #4b79ce;
  22456. width: 80px;
  22457. height: 30px;
  22458. text-align: center;
  22459. color: #fff;
  22460. line-height: 30px;
  22461. border-radius: 10px;
  22462. margin: 10px auto 0;
  22463. cursor: pointer;
  22464. }
  22465. .pzConText:focus-visible {
  22466. border: none !important;
  22467. }
  22468. .maxWidth {
  22469. width: 1000px;
  22470. }
  22471. .noPz {
  22472. width: 150px;
  22473. margin: 0 auto 20%;
  22474. }
  22475. .noPz > img {
  22476. width: 100%;
  22477. height: 100%;
  22478. }
  22479. .timeAndReply {
  22480. display: flex;
  22481. flex-direction: row;
  22482. flex-wrap: nowrap;
  22483. justify-content: space-between;
  22484. align-items: center;
  22485. font-size: 14px;
  22486. box-sizing: border-box;
  22487. padding: 0 10px 10px 0px;
  22488. }
  22489. .timeAndReply .time {
  22490. color: #bfbfbf;
  22491. padding: 0 0 0 10px;
  22492. box-sizing: border-box;
  22493. }
  22494. .timeAndReply > div:last-child {
  22495. cursor: pointer;
  22496. color: #777;
  22497. }
  22498. /* table 样式 */
  22499. .cont >>> table {
  22500. border-top: 1px solid #ccc;
  22501. border-left: 1px solid #ccc;
  22502. }
  22503. .cont >>> table td,
  22504. .cont >>> table th {
  22505. border-bottom: 1px solid #ccc;
  22506. border-right: 1px solid #ccc;
  22507. /* padding: 20px 5px; */
  22508. padding: 5px 10px;
  22509. max-width: 0px;
  22510. height: 30px;
  22511. vertical-align: baseline;
  22512. box-sizing: border-box;
  22513. }
  22514. .cont >>> table th {
  22515. border-bottom: 2px solid #ccc;
  22516. text-align: center;
  22517. }
  22518. /* blockquote 样式 */
  22519. .cont >>> blockquote {
  22520. display: block;
  22521. border-left: 8px solid #d0e5f2;
  22522. padding: 5px 10px;
  22523. margin: 10px 0;
  22524. line-height: 1.4;
  22525. font-size: 100%;
  22526. background-color: #f1f1f1;
  22527. }
  22528. /* code 样式 */
  22529. .cont >>> code {
  22530. display: inline-block;
  22531. /* *display: inline; */
  22532. zoom: 1;
  22533. background-color: #f1f1f1;
  22534. border-radius: 3px;
  22535. padding: 3px 5px;
  22536. margin: 0 3px;
  22537. }
  22538. .cont >>> pre code {
  22539. display: block;
  22540. }
  22541. /* ul ol 样式 */
  22542. .cont >>> ul,
  22543. ol {
  22544. margin: 10px 0 10px 20px;
  22545. }
  22546. .addPzCheck {
  22547. display: flex;
  22548. flex-direction: row;
  22549. flex-wrap: nowrap;
  22550. padding: 10px 15px 0;
  22551. }
  22552. .addPzCheck span {
  22553. cursor: pointer;
  22554. padding-bottom: 5px;
  22555. font-weight: bold;
  22556. }
  22557. .addPzCheck span + span {
  22558. margin-left: 10px;
  22559. }
  22560. .addPzCheck .isChooseActive {
  22561. color: #3e88f4;
  22562. border-bottom: 2px solid #2f80f3;
  22563. }
  22564. /* code 样式 */
  22565. .cont {
  22566. /* -webkit-user-modify: read-write; */
  22567. overflow-wrap: break-word;
  22568. -webkit-line-break: after-white-space;
  22569. }
  22570. .scoreBox,
  22571. .scoreDetailBox {
  22572. display: flex;
  22573. align-items: center;
  22574. justify-content: flex-start;
  22575. margin-top: 20px;
  22576. font-size: 18px;
  22577. width: 100%;
  22578. }
  22579. .scoreBox .t,
  22580. .scoreDetailBox .t {
  22581. margin-right: 10px;
  22582. width: 100px;
  22583. text-align: right;
  22584. }
  22585. .scoreDetailBox {
  22586. align-items: flex-start;
  22587. }
  22588. .scoreDetailBox >>> .el-textarea {
  22589. width: calc(100% - 200px);
  22590. }
  22591. .scoreBox >>> .el-input {
  22592. width: 130px;
  22593. font-size: 38px;
  22594. }
  22595. .scoreBox >>> .el-input__inner {
  22596. height: 60px;
  22597. }
  22598. .answerScore {
  22599. position: absolute;
  22600. top: 10px;
  22601. right: 10px;
  22602. background: #0000008f;
  22603. border-radius: 5px;
  22604. padding: 3px 5px;
  22605. font-size: 14px;
  22606. color: #fff;
  22607. cursor: pointer;
  22608. }
  22609. .open_box .switch_box {
  22610. width: 100%;
  22611. margin: 0 auto;
  22612. display: flex;
  22613. justify-content: space-between;
  22614. }
  22615. .open_box .switch_box + .switch_box {
  22616. margin-top: 10px;
  22617. }
  22618. .deleteImg,.deleteImg1 {
  22619. width: 25px !important;
  22620. height: 25px !important;
  22621. cursor: pointer;
  22622. position: absolute;
  22623. top: 10px;
  22624. right: 10px;
  22625. }
  22626. .deleteImg2 {
  22627. width: 23px !important;
  22628. height: 23px !important;
  22629. top: 5px;
  22630. right: 5px;
  22631. }
  22632. .deleteImg1{
  22633. width: 23px !important;
  22634. height: 23px !important;
  22635. top: 5px !important;
  22636. right: 30px !important;
  22637. }
  22638. .rightW {
  22639. right: 40px;
  22640. }
  22641. .drawPBox {
  22642. display: flex;
  22643. flex-direction: column;
  22644. position: relative;
  22645. }
  22646. .drawPBox span {
  22647. font-size: 18px;
  22648. color: #606266;
  22649. padding-bottom: 10px;
  22650. margin: 10px 0;
  22651. border-bottom: 1px solid #eaeaea;
  22652. }
  22653. .drawPBox img {
  22654. width: 500px;
  22655. height: 300px;
  22656. object-fit: contain;
  22657. cursor: pointer;
  22658. margin: 0 auto;
  22659. }
  22660. .sentenBox {
  22661. background: #fff;
  22662. height: 450px;
  22663. overflow: auto;
  22664. background-image: url("../assets/icon/conSentences/stuBg.png");
  22665. background-position: 102%;
  22666. background-repeat: no-repeat;
  22667. background-size: 60%;
  22668. }
  22669. .addSen {
  22670. background: #409efe;
  22671. width: 90px;
  22672. color: #fff;
  22673. height: 35px;
  22674. text-align: center;
  22675. line-height: 35px;
  22676. border-radius: 5px;
  22677. float: right;
  22678. margin: 10px 20px 0 0;
  22679. cursor: pointer;
  22680. }
  22681. .sentenTop {
  22682. display: flex;
  22683. flex-direction: row;
  22684. flex-wrap: nowrap;
  22685. align-items: center;
  22686. padding: 55px 0 0 20px;
  22687. box-sizing: border-box;
  22688. }
  22689. .sentenTop > div:nth-child(2) {
  22690. width: 300px;
  22691. margin: 0 15px;
  22692. }
  22693. .sentenTop > div:nth-child(3) {
  22694. background: #409efe;
  22695. color: #fff;
  22696. width: 65px;
  22697. height: 35px;
  22698. text-align: center;
  22699. line-height: 35px;
  22700. border-radius: 5px;
  22701. cursor: pointer;
  22702. }
  22703. .cardList,
  22704. .cardList1 {
  22705. padding: 10px 0 10px 0;
  22706. display: flex;
  22707. flex-direction: row;
  22708. flex-wrap: wrap;
  22709. align-items: center;
  22710. box-sizing: border-box;
  22711. border-bottom: 1px solid #f4f4f4;
  22712. width: 98%;
  22713. margin: 0 auto;
  22714. min-width: 60%;
  22715. max-width: 85%;
  22716. }
  22717. .cardList1 {
  22718. padding: 10px 0 10px 10px !important;
  22719. margin: 0 !important;
  22720. }
  22721. .cardBox {
  22722. display: flex;
  22723. flex-direction: row;
  22724. flex-wrap: wrap;
  22725. align-items: center;
  22726. align-content: center;
  22727. }
  22728. .cardBox > div {
  22729. margin-bottom: 10px;
  22730. }
  22731. .isCard,
  22732. .isChooseCard,
  22733. .noCard,
  22734. .isCard1 {
  22735. width: 130px;
  22736. height: 60px;
  22737. text-align: center;
  22738. line-height: 60px;
  22739. font-size: 20px;
  22740. cursor: pointer;
  22741. background-image: url("../assets/icon/conSentences/titleBorder.png");
  22742. background-size: cover;
  22743. transition: all 2s;
  22744. margin-right: 20px;
  22745. }
  22746. .isCard > div,
  22747. .noCard > div,
  22748. .isCard1 > div {
  22749. white-space: nowrap;
  22750. overflow: hidden;
  22751. text-overflow: ellipsis;
  22752. width: 75%;
  22753. margin: 0 auto;
  22754. }
  22755. .noCard {
  22756. background-image: none;
  22757. }
  22758. .isCard1 {
  22759. background-image: url("../assets/icon/conSentences/answerBorder.png");
  22760. }
  22761. .isChooseCard {
  22762. background-image: none;
  22763. border: 1px dashed #b9b9b9;
  22764. border-radius: 10px;
  22765. }
  22766. .card {
  22767. width: 130px;
  22768. height: 60px;
  22769. }
  22770. .card > img {
  22771. width: 100%;
  22772. height: 100%;
  22773. }
  22774. .rightCardBox {
  22775. margin: 10px 0 0 10px;
  22776. }
  22777. .rightCardBox > div:nth-child(1) {
  22778. margin-bottom: 10px;
  22779. }
  22780. .cardCss {
  22781. display: flex;
  22782. flex-direction: column;
  22783. flex-wrap: nowrap;
  22784. align-items: center;
  22785. border-bottom: 3px solid #b4c3d3;
  22786. padding: 0 0 5px 0;
  22787. margin-right: 10px;
  22788. }
  22789. .cardCss > div:nth-child(2) {
  22790. background: #5b7b9d;
  22791. color: #fff;
  22792. width: 20px;
  22793. height: 20px;
  22794. border-radius: 50%;
  22795. text-align: center;
  22796. line-height: 20px;
  22797. }
  22798. .isWrong {
  22799. display: flex;
  22800. flex-direction: row;
  22801. flex-wrap: nowrap;
  22802. align-content: center;
  22803. align-items: center;
  22804. }
  22805. .answerRight {
  22806. width: 25%;
  22807. }
  22808. .isTj {
  22809. display: flex;
  22810. flex-direction: row;
  22811. flex-wrap: nowrap;
  22812. align-items: center;
  22813. }
  22814. .isTj > div:nth-child(2) {
  22815. color: #727070;
  22816. margin-left: 10px;
  22817. }
  22818. .isTjImg {
  22819. width: 30px;
  22820. height: 30px;
  22821. }
  22822. .isTjImg > img {
  22823. width: 100%;
  22824. height: 100%;
  22825. }
  22826. .cardAnswerBox {
  22827. font-size: 18px;
  22828. width: 97%;
  22829. border: 5px;
  22830. padding: 0;
  22831. border-radius: 5px;
  22832. margin: 10px auto;
  22833. word-break: break-word;
  22834. }
  22835. .w_name {
  22836. margin-bottom: 10px;
  22837. }
  22838. .w_name span {
  22839. font-size: 16px;
  22840. }
  22841. .w_teachert {
  22842. width: 50px !important;
  22843. position: absolute;
  22844. height: auto !important;
  22845. z-index: 10;
  22846. right: 25px;
  22847. top: -25px;
  22848. }
  22849. .group_workBox {
  22850. }
  22851. .group_workBox + .group_workBox {
  22852. margin-top: 20px;
  22853. }
  22854. .group_box {
  22855. padding-bottom: 20px;
  22856. border-bottom: 2px solid #f0f0f0;
  22857. margin-top: 10px;
  22858. }
  22859. .group_title {
  22860. display: flex;
  22861. align-items: center;
  22862. justify-content: space-between;
  22863. width: 95%;
  22864. }
  22865. .group_name {
  22866. background-image: url(../assets/icon/groupN.png);
  22867. width: 220px;
  22868. background-size: 100% 100%;
  22869. height: 67px;
  22870. padding: 0 20px 0 43px;
  22871. box-sizing: border-box;
  22872. line-height: 63px;
  22873. color: #fff;
  22874. overflow: hidden;
  22875. white-space: nowrap;
  22876. text-overflow: ellipsis;
  22877. }
  22878. .group_work {
  22879. width: 100%;
  22880. padding: 0 10px;
  22881. box-sizing: border-box;
  22882. display: flex;
  22883. flex-wrap: wrap;
  22884. }
  22885. .g_d_box {
  22886. display: flex;
  22887. flex-flow: wrap;
  22888. justify-content: space-around;
  22889. }
  22890. .g_d_box .isChair {
  22891. background-image: url(../assets/avatar.png) !important;
  22892. }
  22893. .g_d_group {
  22894. width: 500px;
  22895. margin-bottom: 80px;
  22896. }
  22897. .g_d_group_chair {
  22898. display: flex;
  22899. align-items: center;
  22900. justify-content: center;
  22901. }
  22902. .g_d_group_chair > div + div {
  22903. margin-left: 30px;
  22904. }
  22905. .g_d_group_chair > div,
  22906. .g_d_group_chair2 > div {
  22907. display: flex;
  22908. flex-direction: column;
  22909. align-items: center;
  22910. }
  22911. .g_d_group_chair > div > span:nth-child(1),
  22912. .g_d_group_chair2 > div > span:nth-child(1) {
  22913. background-image: url(../assets/icon/chair.png);
  22914. width: 50px;
  22915. height: 50px;
  22916. display: block;
  22917. background-size: 100% 100%;
  22918. }
  22919. .g_d_group_tableBox {
  22920. display: flex;
  22921. align-items: center;
  22922. justify-content: center;
  22923. }
  22924. .g_d_group_chair2 {
  22925. display: flex;
  22926. flex-direction: column;
  22927. align-items: center;
  22928. justify-content: center;
  22929. }
  22930. .g_d_group_chair2 > div + div {
  22931. margin-top: 10px;
  22932. }
  22933. .g_d_group_table {
  22934. background-image: url(../assets/icon/groupBg.png);
  22935. width: 354px;
  22936. height: 196px;
  22937. background-size: 100% 100%;
  22938. display: flex;
  22939. align-items: center;
  22940. justify-content: center;
  22941. flex-direction: column;
  22942. color: #fff;
  22943. }
  22944. .g_d_group_table > div:nth-child(1) {
  22945. font-size: 24px;
  22946. margin-bottom: 5px;
  22947. }
  22948. .g_d_group_table > div:nth-child(2) div {
  22949. cursor: pointer;
  22950. background: #2e77bf;
  22951. padding: 4px 10px;
  22952. border-radius: 5px;
  22953. }
  22954. .groupBox {
  22955. }
  22956. .groupContent + .groupContent {
  22957. margin-top: 30px;
  22958. }
  22959. .groupTitle {
  22960. font-size: 24px;
  22961. color: rgb(80, 80, 80);
  22962. margin-bottom: 20px;
  22963. }
  22964. .groupName {
  22965. display: flex;
  22966. align-items: center;
  22967. }
  22968. .groupn {
  22969. font-size: 15px;
  22970. margin-right: 10px;
  22971. }
  22972. .groupName + .groupName {
  22973. margin-top: 15px;
  22974. }
  22975. .groupBtn {
  22976. margin-left: 10px;
  22977. }
  22978. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  22979. text-align: left;
  22980. }
  22981. .g_d_btnBox {
  22982. display: flex;
  22983. justify-content: flex-end;
  22984. align-items: center;
  22985. margin-bottom: 20px;
  22986. }
  22987. .updateChair {
  22988. position: relative;
  22989. }
  22990. .updateChairBtn {
  22991. position: absolute;
  22992. width: 50px;
  22993. height: 50px;
  22994. overflow: hidden;
  22995. /* display: flex; */
  22996. align-items: center;
  22997. justify-content: center;
  22998. background: #00000087;
  22999. color: #fff;
  23000. border-radius: 50px;
  23001. display: none;
  23002. cursor: pointer;
  23003. }
  23004. .updateChair:hover .updateChairBtn {
  23005. display: flex;
  23006. }
  23007. .group_staic_box {
  23008. display: flex;
  23009. padding: 30px 40px 10px;
  23010. flex-wrap: wrap;
  23011. }
  23012. .group_staic {
  23013. /* width: 50%; */
  23014. margin-bottom: 20px;
  23015. display: flex;
  23016. align-items: center;
  23017. }
  23018. .group_staic span:nth-child(1) {
  23019. width: 150px;
  23020. text-align: right;
  23021. margin-right: 15px;
  23022. }
  23023. .group_staic span:nth-child(2) {
  23024. background: rgb(0 123 255);
  23025. color: #fff;
  23026. border-radius: 5px;
  23027. padding: 5px;
  23028. }
  23029. .codeFileBox {
  23030. height: 300px;
  23031. background: #fff;
  23032. display: flex;
  23033. align-items: center;
  23034. justify-content: center;
  23035. }
  23036. .codeFileBox img {
  23037. width: 200px;
  23038. margin: 0;
  23039. height: auto;
  23040. }
  23041. .codeFileBox div {
  23042. background: rgb(80, 142, 226);
  23043. color: #fff;
  23044. padding: 10px 20px;
  23045. border-radius: 25px;
  23046. cursor: pointer;
  23047. margin-left: 15px;
  23048. }
  23049. .radioBox {
  23050. display: flex;
  23051. flex-direction: column;
  23052. flex-wrap: nowrap;
  23053. align-items: flex-start;
  23054. }
  23055. .radioBox > div {
  23056. margin: 10px 0 0 10px;
  23057. }
  23058. /* .radioBox >>> .el-radio__input,
  23059. .radioBox >>> .el-checkbox__inner {
  23060. margin-left: 10px;
  23061. } */
  23062. .radioBox >>> .el-radio__label,
  23063. .radioBox >>> .el-checkbox__label {
  23064. display: flex;
  23065. align-items: center;
  23066. width: 100%;
  23067. }
  23068. .radioBox >>> .el-radio__label > span {
  23069. width: 100%;
  23070. display: -webkit-box;
  23071. overflow: hidden;
  23072. white-space: normal !important;
  23073. text-overflow: ellipsis;
  23074. word-wrap: break-word;
  23075. }
  23076. .inImg {
  23077. width: 100px;
  23078. cursor: pointer;
  23079. }
  23080. .inImg > img {
  23081. width: 100%;
  23082. height: 100%;
  23083. object-fit: cover;
  23084. }
  23085. .timuImgBox {
  23086. margin: 10px 0;
  23087. display: flex;
  23088. flex-direction: column;
  23089. flex-wrap: wrap;
  23090. align-items: flex-start;
  23091. }
  23092. .timuImg {
  23093. width: 150px;
  23094. margin: 5px 0;
  23095. cursor: pointer;
  23096. }
  23097. .timuImg > img {
  23098. width: 100%;
  23099. height: 100%;
  23100. object-fit: cover;
  23101. }
  23102. .worksTop {
  23103. display: flex;
  23104. flex-direction: row;
  23105. align-items: flex-end;
  23106. }
  23107. .worksTitle{
  23108. display: flex;
  23109. flex-direction: row;
  23110. flex-wrap: nowrap;
  23111. align-items: center;
  23112. }
  23113. .worksTitle::before,.worksTop::before{
  23114. content: '';
  23115. display: block;
  23116. width: 3px;
  23117. height: 20px;
  23118. background: #0061FF;
  23119. border-radius: 3px;
  23120. margin: 0 5px 0 0;
  23121. }
  23122. .corOpen {
  23123. margin: 0 0 0 10px;
  23124. font-size: 14px;
  23125. cursor: pointer;
  23126. color: #505050;
  23127. }
  23128. .corOpen:hover {
  23129. color: #499eef;
  23130. }
  23131. .navCorOpenBox {
  23132. display: flex;
  23133. flex-direction: row;
  23134. align-items: center;
  23135. justify-content: space-between;
  23136. height: 55px;
  23137. background: #ffffff;
  23138. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23139. border-radius: 8px 8px 0px 0px;
  23140. z-index: 9;
  23141. position: relative;
  23142. }
  23143. .navCorOpen {
  23144. padding-right: 15px;
  23145. cursor: pointer;
  23146. width: 45px;
  23147. display: flex;
  23148. }
  23149. .navCorOpen > img {
  23150. width: 100%;
  23151. height: 100%;
  23152. }
  23153. .mlImg {
  23154. width: 40px !important;
  23155. min-width: 40px;
  23156. cursor: pointer;
  23157. transform: rotate(180deg);
  23158. }
  23159. .mlImg > img {
  23160. width: 100%;
  23161. height: 100%;
  23162. }
  23163. .navLeftCss {
  23164. width: 100% !important;
  23165. left: 0 !important;
  23166. }
  23167. .isContentCss {
  23168. width: 100% !important;
  23169. }
  23170. .isAllWidth {
  23171. width: 100% !important;
  23172. }
  23173. .group_switch {
  23174. margin-right: 10px;
  23175. height: 30px;
  23176. display: flex;
  23177. align-items: center;
  23178. }
  23179. .group_switch > span {
  23180. margin-right: 5px;
  23181. }
  23182. .fileC_box {
  23183. padding-top: 15px;
  23184. }
  23185. .fileC_box > .fileC_title {
  23186. padding: 10px 5px 14px 10px;
  23187. border-top: 1px solid #cad1dc;
  23188. font-size: 14px;
  23189. font-weight: 400;
  23190. color: #cad1dc;
  23191. width: calc(100% - 20px);
  23192. margin: 0 auto;
  23193. box-sizing: border-box;
  23194. }
  23195. .pl_select_box {
  23196. height: 40px;
  23197. line-height: 40px;
  23198. width: 100%;
  23199. cursor: pointer;
  23200. padding: 0 20px;
  23201. box-sizing: border-box;
  23202. border-radius: 5px;
  23203. border: 1px solid #d6d6d6;
  23204. white-space: nowrap;
  23205. overflow: hidden;
  23206. text-overflow: ellipsis;
  23207. background: #fff;
  23208. text-align: left;
  23209. }
  23210. .newButton {
  23211. width: 102px;
  23212. height: 36px;
  23213. background: #e7ebf1;
  23214. border-radius: 4px;
  23215. color: #0e1e33;
  23216. font-weight: 400;
  23217. font-size: 14px;
  23218. border: none;
  23219. float: right;
  23220. margin-left: 10px;
  23221. }
  23222. .el-table >>> .even_row {
  23223. background-color: #f0f4fa;
  23224. }
  23225. .stageBoxCss,
  23226. .stageBoxIsCss {
  23227. display: flex;
  23228. flex-direction: row;
  23229. flex-wrap: nowrap;
  23230. align-items: center;
  23231. height: 50px;
  23232. border-bottom: 1px solid #e2f5fc;
  23233. cursor: pointer;
  23234. width: 100%;
  23235. }
  23236. .stageBoxIsCss {
  23237. background: #0061ff;
  23238. color: #fff;
  23239. border-radius: 8px;
  23240. }
  23241. .stageItemTitle {
  23242. display: flex;
  23243. flex-direction: row;
  23244. flex-wrap: nowrap;
  23245. align-items: center;
  23246. margin-left: 15px;
  23247. width: calc(100% - 50px);
  23248. }
  23249. .stageNav{
  23250. /* font-weight: bold; */
  23251. }
  23252. .stageItemTitle > div:first-child {
  23253. min-width: 55px;
  23254. }
  23255. .stageItemTitle > div:last-child {
  23256. max-width: 242px;
  23257. white-space: nowrap;
  23258. overflow: hidden;
  23259. text-overflow: ellipsis;
  23260. word-break: break-word;
  23261. width: calc(100% - 55px);
  23262. }
  23263. .closeTri,
  23264. .closeTri1 {
  23265. min-width: 15px;
  23266. width: 15px;
  23267. height: 15px;
  23268. transition: all .5s;
  23269. }
  23270. .closeTri1 {
  23271. padding-left: 10px;
  23272. cursor: pointer;
  23273. }
  23274. .closeTri > img,
  23275. .closeTri1 > img {
  23276. width: 100%;
  23277. height: 100%;
  23278. /* transition: all .5s; */
  23279. }
  23280. .noToolBlue {
  23281. min-width: 10px;
  23282. width: 10px;
  23283. height: 10px;
  23284. background: #0061ff;
  23285. border-radius: 50%;
  23286. margin-left: 13px;
  23287. }
  23288. .stageChild,
  23289. .toolChild {
  23290. height: 0;
  23291. overflow: hidden;
  23292. transition: all 0.5s;
  23293. }
  23294. .toolChild {
  23295. /* margin: 0 0 0 17px;
  23296. padding: 0 0 0 20px;
  23297. border-left: 1px solid #d7d7d7; */
  23298. }
  23299. .toolChild > div + div{
  23300. margin-top:5px;
  23301. }
  23302. .gjCss {
  23303. display: flex;
  23304. flex-direction: row;
  23305. flex-wrap: nowrap;
  23306. align-items: center;
  23307. padding: 10px 0 10px 40px;
  23308. box-sizing: border-box;
  23309. font-size: 14px;
  23310. cursor: pointer;
  23311. border-radius:5px;
  23312. }
  23313. .toolChild > div {
  23314. position: relative;
  23315. width:100%;
  23316. }
  23317. .toolChild > div::before {
  23318. /* content: "";
  23319. width: 15px;
  23320. height: 1px;
  23321. background: #cad1dc;
  23322. position: absolute;
  23323. top: 24px;
  23324. left: -20px;
  23325. display: block; */
  23326. }
  23327. .isGjCss {
  23328. /* color: #0061ff; */
  23329. color:#fff;
  23330. background: rgb(55, 129, 252);
  23331. /* background-color: #e0eafb !important;
  23332. color: #0061ff !important; */
  23333. }
  23334. .navItem {
  23335. background: #ffffff;
  23336. border-radius: 4px;
  23337. width: 100%;
  23338. margin: 10px auto;
  23339. position: relative;
  23340. height: 40px;
  23341. display: flex;
  23342. flex-direction: row;
  23343. flex-wrap: nowrap;
  23344. align-items: center;
  23345. }
  23346. .navItemList {
  23347. display: flex;
  23348. flex-direction: row;
  23349. flex-wrap: nowrap;
  23350. align-items: center;
  23351. padding: 0 13px;
  23352. cursor: pointer;
  23353. width: calc(100% - 60px);
  23354. height: 100%;
  23355. }
  23356. .navItemList > div:first-child {
  23357. min-width: 60px;
  23358. }
  23359. .navItemList > div:last-child {
  23360. width: calc(100% - 80px);
  23361. white-space: nowrap;
  23362. overflow: hidden;
  23363. text-overflow: ellipsis;
  23364. word-break: break-word;
  23365. }
  23366. /* .isItemList > div {
  23367. color: #fff !important;
  23368. } */
  23369. .tool_work_box {
  23370. width: 100%;
  23371. padding: 0 37px 0;
  23372. box-sizing: border-box;
  23373. }
  23374. .tool_box {
  23375. width: 100%;
  23376. padding: 0 0 0 20px;
  23377. }
  23378. .tool_type_box {
  23379. display: flex;
  23380. flex-direction: row;
  23381. align-items: baseline;
  23382. flex-wrap: nowrap;
  23383. justify-content: flex-start;
  23384. position: relative;
  23385. }
  23386. .toolSort {
  23387. display: flex;
  23388. flex-direction: row;
  23389. flex-wrap: wrap;
  23390. justify-content: flex-start;
  23391. align-items: flex-start;
  23392. padding: 0 0 15px 0;
  23393. }
  23394. .toolSort > div {
  23395. margin: 0 10px 0 0;
  23396. width: 135px;
  23397. box-sizing: border-box;
  23398. border: 2px solid transparent;
  23399. }
  23400. .tools {
  23401. width: 100%;
  23402. display: flex;
  23403. flex-direction: column;
  23404. flex-wrap: nowrap;
  23405. align-items: flex-start;
  23406. }
  23407. .whiteBIcon {
  23408. width: fit-content;
  23409. cursor: pointer;
  23410. display: flex;
  23411. flex-direction: column;
  23412. flex-wrap: nowrap;
  23413. align-items: center;
  23414. font-size: 14px;
  23415. }
  23416. .tool:hover {
  23417. border: 2px solid #a5c7ff;
  23418. border-radius: 5px;
  23419. }
  23420. .whiteBIcon > img {
  23421. width: 65px;
  23422. height: 100%;
  23423. }
  23424. .whiteBIcon > img {
  23425. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  23426. border-radius: 15px;
  23427. }
  23428. .check {
  23429. /* width: 20px;
  23430. height: 20px; */
  23431. cursor: pointer;
  23432. margin: 10px 0;
  23433. position: absolute;
  23434. right: 2px;
  23435. top: -5px;
  23436. }
  23437. .noChoose,
  23438. .isChoose {
  23439. width: 15px;
  23440. height: 15px;
  23441. border-radius: 50%;
  23442. border: 1px solid #adadad;
  23443. }
  23444. .isChoose {
  23445. border: 4px solid #0363ff !important;
  23446. width: 10px;
  23447. height: 10px;
  23448. }
  23449. .isToolChoose {
  23450. border: 2px solid #5394ff !important;
  23451. border-radius: 5px;
  23452. box-shadow: 0 0 6px 0px #5394ff;
  23453. }
  23454. .checkDiv {
  23455. display: flex;
  23456. align-items: center;
  23457. }
  23458. .checkDiv span {
  23459. margin-left: 5px;
  23460. color: #858585;
  23461. }
  23462. .check img {
  23463. width: 20px;
  23464. height: 20px;
  23465. }
  23466. .lockTaskIcon {
  23467. width: 20px;
  23468. height: 20px;
  23469. position: absolute;
  23470. right: 10px;
  23471. top: 5px;
  23472. }
  23473. .lockTaskIcon > img {
  23474. width: 100%;
  23475. height: 100%;
  23476. }
  23477. .pick_box {
  23478. display: flex;
  23479. align-items: flex-start;
  23480. flex-wrap: wrap;
  23481. }
  23482. .selectBox {
  23483. width: 110px;
  23484. margin-left: 10px;
  23485. margin: 0 10px 0 auto;
  23486. }
  23487. .selectBox >>> .el-input__inner {
  23488. height: 30px;
  23489. line-height: 30px;
  23490. }
  23491. .selectBox >>> .el-input__icon {
  23492. line-height: 30px;
  23493. }
  23494. .sentenceTitle {
  23495. display: flex;
  23496. flex-direction: row;
  23497. flex-wrap: nowrap;
  23498. align-items: center;
  23499. }
  23500. .sentenceTitle::before {
  23501. content: attr(index);
  23502. background: #3681fc;
  23503. border-radius: 50%;
  23504. color: #fff;
  23505. width: 25px;
  23506. height: 25px;
  23507. min-width: 25px;
  23508. min-height: 25px;
  23509. text-align: center;
  23510. line-height: 25px;
  23511. margin-right: 5px;
  23512. }
  23513. .hfBox {
  23514. padding: 10px;
  23515. box-sizing: border-box;
  23516. }
  23517. .whoReplyWho {
  23518. display: flex;
  23519. flex-direction: row;
  23520. flex-wrap: nowrap;
  23521. align-items: baseline;
  23522. justify-content: flex-start;
  23523. }
  23524. .hfBottom {
  23525. display: flex;
  23526. flex-direction: row;
  23527. flex-wrap: nowrap;
  23528. align-items: center;
  23529. justify-content: space-between;
  23530. font-size: 14px;
  23531. }
  23532. .deleteHfItem {
  23533. cursor: pointer;
  23534. width: 20px;
  23535. height: 20px;
  23536. }
  23537. .deleteHfItem > img {
  23538. width: 100%;
  23539. height: 100%;
  23540. }
  23541. .whoReplyWho > .hfImg {
  23542. width: 12px;
  23543. height: 12px;
  23544. margin: 0 5px;
  23545. }
  23546. .whoReplyWho > .hfImg > img {
  23547. width: 100%;
  23548. height: 100%;
  23549. }
  23550. .hfContent {
  23551. padding-top: 10px;
  23552. box-sizing: border-box;
  23553. display: -webkit-box;
  23554. overflow: hidden;
  23555. white-space: normal !important;
  23556. text-overflow: ellipsis;
  23557. word-wrap: break-word;
  23558. -webkit-box-orient: vertical;
  23559. }
  23560. .hfTime {
  23561. text-align: left;
  23562. box-sizing: border-box;
  23563. padding: 10px 0 10px 0px;
  23564. color: #bfbfbf;
  23565. font-size: 14px;
  23566. }
  23567. .btnAllNT {
  23568. position: fixed;
  23569. bottom: 100px;
  23570. right: 40px;
  23571. z-index: 999;
  23572. display: flex;
  23573. flex-direction: row;
  23574. }
  23575. .btnAllNT > img {
  23576. cursor: pointer;
  23577. width: 80px;
  23578. }
  23579. .toolMask {
  23580. position: fixed;
  23581. width: 100%;
  23582. height: 100%;
  23583. background: #3f3c3c;
  23584. opacity: 0.5;
  23585. top: 0;
  23586. left: 0;
  23587. z-index: 999;
  23588. }
  23589. .addToolCss {
  23590. position: fixed;
  23591. z-index: 999;
  23592. background: #fff;
  23593. right: 5%;
  23594. bottom: 18%;
  23595. min-width: 1035px;
  23596. min-height: 300px;
  23597. border-radius: 10px;
  23598. box-shadow: 0 0 8px 1px #b2b2b2;
  23599. }
  23600. .toolTop {
  23601. display: flex;
  23602. flex-direction: row;
  23603. flex-wrap: nowrap;
  23604. justify-content: space-between;
  23605. align-items: center;
  23606. padding: 20px;
  23607. }
  23608. .toolTop > div:nth-child(2) {
  23609. width: 15px;
  23610. height: 15px;
  23611. padding-right: 10px;
  23612. cursor: pointer;
  23613. }
  23614. .toolTop > div:nth-child(2) > img {
  23615. width: 100%;
  23616. height: 100%;
  23617. }
  23618. .fullStyle>>>.el-dialog__body {
  23619. height: calc(100% - 125px) !important;
  23620. box-sizing: border-box;
  23621. padding: 30px 0 !important;
  23622. background: #fff !important;
  23623. }
  23624. .fullStyle>>>.el-dialog {
  23625. width: 100% !important;
  23626. max-width: 100% !important;
  23627. height: 100% !important;
  23628. margin: 0 !important;
  23629. }
  23630. .fullStyle {
  23631. width: 100% !important;
  23632. max-width: 100% !important;
  23633. height: 100% !important;
  23634. margin: 0 auto !important;
  23635. }
  23636. .fullStyle>>>.el-dialog__footer{
  23637. background: #fff !important;
  23638. }
  23639. .engUpBox {
  23640. width: 100%;
  23641. height: 100%;
  23642. }
  23643. .engTitle,
  23644. .engText {
  23645. display: flex;
  23646. flex-direction: row;
  23647. flex-wrap: nowrap;
  23648. align-items: flex-start;
  23649. padding: 0 20px 20px 20px;
  23650. box-sizing: border-box;
  23651. }
  23652. .engTitle > .div:first-child,
  23653. .engText > div:first-child {
  23654. min-width: 75px;
  23655. }
  23656. .correctBox{
  23657. width: 100%;
  23658. display: flex;
  23659. flex-direction: row;
  23660. flex-wrap: nowrap;
  23661. align-items: flex-start;
  23662. }
  23663. .oldBox{
  23664. width: 50%;
  23665. height: 100%;
  23666. display: flex;
  23667. flex-direction: column;
  23668. flex-wrap: nowrap;
  23669. align-items: center;
  23670. border-top: 1px solid #d9d9d9;
  23671. border-left: 1px solid #d9d9d9;
  23672. border-right: 1px solid #d9d9d9;
  23673. }
  23674. .oldBox>div:first-child{
  23675. width: 100%;
  23676. text-align: center;
  23677. background: #d9d9d9;
  23678. height: 35px;
  23679. line-height: 35px;
  23680. font-weight: bold;
  23681. }
  23682. .oldText{
  23683. width: 100%;
  23684. height: calc(100% - 35px);
  23685. overflow: auto;
  23686. margin: 10px 0;
  23687. display: flex;
  23688. flex-direction: column;
  23689. flex-wrap: nowrap;
  23690. align-content: center;
  23691. align-items: center;
  23692. }
  23693. .detailBox{
  23694. width: 50%;
  23695. padding: 10px;
  23696. background: #f6f6f6;
  23697. border-radius: 5px;
  23698. }
  23699. .oldDetail,.oldDetail1{
  23700. padding-bottom: 30px;
  23701. }
  23702. .oldImg{
  23703. width:30px;
  23704. height: 30px;
  23705. }
  23706. .oldImg>img{
  23707. width: 100%;
  23708. height: 100%;
  23709. }
  23710. .allName{
  23711. min-width: 200px;
  23712. white-space: nowrap;
  23713. overflow: hidden;
  23714. text-overflow: ellipsis;
  23715. word-break: break-word;
  23716. cursor: pointer;
  23717. text-align: center;
  23718. border: 1px solid #bcc2cc;
  23719. box-sizing: border-box;
  23720. }
  23721. .engUpTop{
  23722. max-height: 300px;
  23723. overflow: auto;
  23724. }
  23725. .isUpdateToolDetailClass{
  23726. padding: 0 !important;
  23727. }
  23728. .isUpdateToolDetailClass textarea{
  23729. padding:12px;
  23730. font-size: 16px;
  23731. min-height:100%;
  23732. width: 100%;
  23733. box-sizing:border-box;
  23734. outline: none;
  23735. border:none;
  23736. line-height: 30px;
  23737. resize: none;
  23738. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  23739. color: #838383;
  23740. }
  23741. .show_taskD {
  23742. min-width: fit-content;
  23743. margin-left: 10px;
  23744. display: flex;
  23745. align-items: center;
  23746. font-size: 14px;
  23747. cursor: pointer;
  23748. color: #717c8d;
  23749. }
  23750. .show_taskD > img {
  23751. width: 15px;
  23752. margin-right: 5px;
  23753. transition: 0.2s all;
  23754. transform: rotate(-90deg);
  23755. }
  23756. .show_taskD.show > img {
  23757. transform: rotate(0deg);
  23758. }
  23759. .correctCss{
  23760. position: absolute;
  23761. bottom: -70px;
  23762. background: #409eff;
  23763. color: #fff;
  23764. }
  23765. </style>