studyStudent.vue 844 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 100%;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. overflow: auto;
  12. "
  13. >
  14. <div class="btnAllNT" v-if="false">
  15. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  16. <img
  17. v-if="
  18. courseDetail.userid == userid ||
  19. (courseDetail.course_teacher &&
  20. courseDetail.course_teacher.indexOf(userid) != -1)
  21. "
  22. src="../assets/icon/learn/addTool.png"
  23. @click="openToolAll"
  24. style="position: relative"
  25. />
  26. </div>
  27. <div
  28. class="pButton"
  29. style="left: 0; top: 140px"
  30. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  31. @click="setContent2(true)"
  32. >
  33. <!-- 批 , getCourseDetail()-->
  34. <img
  35. src="../assets/icon/newIcons/isRight.png"
  36. style="width: 45px"
  37. alt=""
  38. />
  39. </div>
  40. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  41. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  42. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  43. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  44. <div
  45. style="
  46. max-width: calc(100% - 40px);
  47. width: auto;
  48. white-space: nowrap;
  49. overflow: hidden;
  50. text-overflow: ellipsis;
  51. word-break: break-word;
  52. display: block;
  53. "
  54. >
  55. <el-tooltip
  56. effect="light"
  57. :content="courseDetail.title"
  58. placement="top"
  59. >
  60. <div class="ctitle">
  61. {{ courseDetail.title }}
  62. </div>
  63. </el-tooltip>
  64. </div>
  65. <el-tooltip effect="light" content="收缩" placement="top">
  66. <div class="mlImg" @click="setContent2(false)">
  67. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  68. </div>
  69. </el-tooltip>
  70. </div>
  71. <div
  72. class="inviteBox"
  73. v-if="tcid && inviteCode"
  74. style="padding: 0 0 8px 0"
  75. >
  76. <div>
  77. <span>随机码:{{ inviteCode }}</span>
  78. </div>
  79. </div>
  80. </div>
  81. <div class="cru_selectBox">
  82. <div
  83. style="background: #fff; margin: 0 10px; border-radius: 8px"
  84. v-for="(item, stageIndex) in navList"
  85. :key="stageIndex"
  86. >
  87. <div
  88. class="stageBoxCss"
  89. @click="get(stageIndex)"
  90. :class="{
  91. // stageBoxIsCss: stageIndex == courseType,
  92. }"
  93. >
  94. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  95. <div>阶段{{ stageIndex + 1 }}</div>
  96. <el-tooltip
  97. effect="light"
  98. :content="item.dyName"
  99. placement="top"
  100. >
  101. <div>
  102. {{ item.dyName }}
  103. </div>
  104. </el-tooltip>
  105. </div>
  106. <!-- <div class="closeTri" v-if="stageIndex == courseType" :style="{transform:item.isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}">
  107. <img src="../assets/icon/newIcons/downC.png" alt />
  108. </div> -->
  109. <div class="closeTri" :style="{transform:item.isOpen ? 'rotate(90deg)' : 'rotate(0deg)'}">
  110. <img src="../assets/icon/newIcons/right.png" alt />
  111. </div>
  112. </div>
  113. <div class="stageChild" :class="{ navActive: item.isOpen }">
  114. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  115. <div
  116. class="navItem"
  117. :class="{
  118. openTaskActive:
  119. navIndex == taskCount &&
  120. nav.id == navId &&
  121. stageIndex == courseType,
  122. }"
  123. >
  124. <div v-if="nav.tool[0].tool != undefined">
  125. <div
  126. class="closeTri1"
  127. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  128. @click="openTask(stageIndex, navIndex, nav.id)"
  129. >
  130. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../assets/icon/newIcons/bDown2.png" alt />
  131. </div>
  132. <div
  133. class="closeTri1"
  134. v-else
  135. @click="openTask(stageIndex, navIndex, nav.id)"
  136. >
  137. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../assets/icon/newIcons/right.png" alt />
  138. </div>
  139. </div>
  140. <div v-else class="noToolBlue"></div>
  141. <div
  142. @click="openTask(stageIndex, navIndex, nav.id)"
  143. class="navItemList"
  144. :class="{
  145. isItemList:
  146. navIndex == taskCount &&
  147. nav.id == navId &&
  148. stageIndex == courseType,
  149. }"
  150. >
  151. <div>任务{{ navIndex + 1 }}:</div>
  152. <el-tooltip
  153. effect="light"
  154. :content="nav.taskName"
  155. placement="top"
  156. >
  157. <div
  158. :style="{
  159. width:
  160. IsLookOpen &&
  161. !(
  162. navIndex == taskCount &&
  163. nav.id == navId &&
  164. stageIndex == courseType
  165. )
  166. ? 'calc(100% - 75px)'
  167. : 'auto',
  168. }"
  169. >
  170. {{ nav.taskName }}
  171. </div>
  172. </el-tooltip>
  173. </div>
  174. <div class="lockTaskIcon">
  175. <img
  176. src="../assets/lock.png"
  177. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  178. courseDetail.course_teacher.indexOf(userid) ==-1"
  179. alt=""
  180. />
  181. </div>
  182. </div>
  183. <div
  184. v-if="nav.tool[0].tool != undefined"
  185. class="toolChild"
  186. :class="{ toolActive: nav.isOpen }"
  187. >
  188. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  189. <div
  190. class="gjCss"
  191. :class="{ isGjCss: t.isTool }"
  192. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  193. >
  194. <div>工具{{ toolIndex + 1 }}:</div>
  195. <div v-if="t.tool == 58">模拟驾驶</div>
  196. <div v-if="t.tool == 59">路径搜索</div>
  197. <div v-if="t.tool == 60">深度学习</div>
  198. <div v-if="t.tool == 10">倒计时</div>
  199. <div v-if="t.tool == 65">挑人</div>
  200. <div v-if="t.tool == 7">思维网格</div>
  201. <div v-if="t.tool == 1">电子白板</div>
  202. <div v-if="t.tool == 52">文档</div>
  203. <div v-if="t.tool == 3">思维导图</div>
  204. <div v-if="t.tool == 48">表格</div>
  205. <div v-if="t.tool == 49">学生分组</div>
  206. <div v-if="t.tool == 4">问卷调查</div>
  207. <div v-if="t.tool == 45">选择题</div>
  208. <div v-if="t.tool == 15">问答</div>
  209. <div v-if="t.tool == 16">作业提交</div>
  210. <div v-if="t.tool == 50">批量上传</div>
  211. <div v-if="t.tool == 41">选择匹配</div>
  212. <div v-if="t.tool == 47">排序</div>
  213. <div v-if="t.tool == 40">个人评价</div>
  214. <div v-if="t.tool == 18">训练平台</div>
  215. <div v-if="t.tool == 21">AIoT Blockly</div>
  216. <div v-if="t.tool == 23">AI Python</div>
  217. <div v-if="t.tool == 24">AI Blockly</div>
  218. <div v-if="t.tool == 32">源码编辑</div>
  219. <div v-if="t.tool == 57">CocoPi</div>
  220. <div v-if="t.tool == 63">海龟编程</div>
  221. <div v-if="t.tool == 28">翻译</div>
  222. <div v-if="t.tool == 31">数字画板</div>
  223. <div v-if="t.tool == 39">GeoGebra</div>
  224. <div v-if="t.tool == 66">公式编辑</div>
  225. <div v-if="t.tool == 67">分子结构</div>
  226. <div v-if="t.tool == 68">时间轴</div>
  227. <div v-if="t.tool == 69">英语写作</div>
  228. <div v-if="t.tool == 70">英语口语</div>
  229. <div v-if="t.tool == 25">目标管理</div>
  230. <div v-if="t.tool == 26">课程设计</div>
  231. <div v-if="t.tool == 62">交互视频</div>
  232. <div v-if="t.tool == 71">AI智能体</div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. </div>
  241. <!-- :class="{ navLeftCss: !mlDialog }" -->
  242. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${(!['2'].includes(tType) || canUseCourseId.includes(id))?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${(!['2'].includes(tType) || canUseCourseId.includes(id))?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  243. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${(!['2'].includes(tType) || canUseCourseId.includes(id))?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${(!['2'].includes(tType) || canUseCourseId.includes(id))?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  244. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${(!['2'].includes(tType) || canUseCourseId.includes(id))?classRoomHelperWidth:'10px'}`+' - 20% - 47px)' : 'calc(100% - '+`${(!['2'].includes(tType) || canUseCourseId.includes(id))?classRoomHelperWidth:'10px'}`+' - 18px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  245. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) && (!['2'].includes(tType) || canUseCourseId.includes(id)) ? '100%' : 'calc(100% - 745px)'}">
  246. <div>任务{{ taskCount + 1 }}</div>
  247. <el-tooltip
  248. effect="light"
  249. :content="
  250. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  251. "
  252. placement="top"
  253. >
  254. <div>
  255. {{
  256. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  257. .task
  258. }}
  259. </div>
  260. </el-tooltip>
  261. </div>
  262. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid) || (['2'].includes(tType) && !canUseCourseId.includes(id))"><!--v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'"-->
  263. <div class="btnLeft">
  264. <el-tooltip effect="light" content="刷新" placement="top">
  265. <div class="reBtnIcon" @click="refreshCourse">
  266. <span>刷新</span>
  267. </div>
  268. </el-tooltip>
  269. <el-tooltip effect="light" content="评论" placement="top">
  270. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  271. <span>评论</span>
  272. </div>
  273. </el-tooltip>
  274. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  275. <el-tooltip effect="light" content="录制" placement="top">
  276. <div class="vedioIcon" @click="startRecording">
  277. <span>录制</span>
  278. </div>
  279. </el-tooltip>
  280. </div>
  281. <div v-else-if="tType == 1 || tType == 4">
  282. <el-tooltip effect="light" content="下载" placement="top">
  283. <div class="vedioIcon1" @click="stopRecording">
  284. <span>下载</span>
  285. </div>
  286. </el-tooltip>
  287. </div>
  288. </div>
  289. <div class="btnRight">
  290. <div
  291. class="last"
  292. @click="nextOrpreSteps(0)"
  293. v-if="!(IsFollow && tType == 2)"
  294. @mouseover="isHovered = true"
  295. @mouseout="isHovered = false"
  296. >
  297. <div class="lastImg">
  298. <img
  299. :src="
  300. isHovered
  301. ? require('../assets/icon/newIcons/whiteLast.png')
  302. : require('../assets/icon/newIcons/last.png')
  303. "
  304. alt=""
  305. />
  306. </div>
  307. <div class="lastText">上一步</div>
  308. </div>
  309. <div
  310. class="last"
  311. @click="nextOrpreSteps(1)"
  312. v-if="!(IsFollow && tType == 2)"
  313. @mouseover="isHovered1 = true"
  314. @mouseout="isHovered1 = false"
  315. >
  316. <div class="lastText">下一步</div>
  317. <div class="lastImg">
  318. <img
  319. :src="
  320. isHovered1
  321. ? require('../assets/icon/newIcons/whiteNext.png')
  322. : require('../assets/icon/newIcons/next.png')
  323. "
  324. alt=""
  325. />
  326. </div>
  327. </div>
  328. <div
  329. class="last"
  330. @click="juriVisible = true"
  331. v-if="tType == 1"
  332. @mouseover="isHovered2 = true"
  333. @mouseout="isHovered2 = false"
  334. >
  335. <div class="lastImg">
  336. <img
  337. :src="
  338. isHovered2
  339. ? require('../assets/icon/newIcons/whiteLock.png')
  340. : require('../assets/icon/newIcons/lock.png')
  341. "
  342. alt=""
  343. />
  344. </div>
  345. <div class="lastText">权限</div>
  346. </div>
  347. <div
  348. class="returnBtn1 returnIcon"
  349. @click.stop="
  350. goTo(
  351. '/courseDetail?userid=' +
  352. userid +
  353. '&oid=' +
  354. oid +
  355. '&org=' +
  356. org +
  357. '&cid=' +
  358. classId +
  359. '&courseId=' +
  360. id +
  361. '&tType=' +
  362. tType +
  363. '&screenType=' +
  364. screenType
  365. )
  366. "
  367. >
  368. <div class="lastImg">
  369. <img src="../assets/icon/newIcon/return.png" alt="" />
  370. </div>
  371. <div class="lastText" style="color: #000">返回</div>
  372. </div>
  373. </div>
  374. <!-- <div
  375. class="returnBtn lockIcon"
  376. @click="juriVisible = true"
  377. v-if="tType == 1"
  378. >
  379. 权限
  380. </div>
  381. <div
  382. class="returnBtn vedioIcon"
  383. @click="startRecording"
  384. v-if="!videoStart && (tType == 1 || tType == 4)"
  385. >
  386. 录制
  387. </div>
  388. <div
  389. class="returnBtn"
  390. @click="stopRecording"
  391. v-else-if="tType == 1 || tType == 4"
  392. style="background: #ee5255"
  393. >
  394. 下载
  395. </div>
  396. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  397. 评论
  398. </div>
  399. <div
  400. class="returnBtn"
  401. @click="nextOrpreSteps(0)"
  402. v-if="!(IsFollow && tType == 2)"
  403. >
  404. 上一步
  405. </div>
  406. <div
  407. class="returnBtn"
  408. @click="nextOrpreSteps(1)"
  409. v-if="!(IsFollow && tType == 2)"
  410. >
  411. 下一步
  412. </div>
  413. <div class="returnBtn" @click="refreshCourse">刷新</div>
  414. <div
  415. class="returnBtn returnIcon"
  416. @click.stop="
  417. goTo(
  418. '/courseDetail?userid=' +
  419. userid +
  420. '&oid=' +
  421. oid +
  422. '&org=' +
  423. org +
  424. '&cid=' +
  425. classId +
  426. '&courseId=' +
  427. id +
  428. '&tType=' +
  429. tType +
  430. '&screenType=' +
  431. screenType
  432. )
  433. "
  434. >
  435. 返回
  436. </div> -->
  437. </div>
  438. </div>
  439. <div
  440. class="isNoMessage"
  441. v-if="
  442. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  443. .chapterData.length == 0 &&
  444. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  445. .toolChoose[0].tool.length == 0 &&
  446. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  447. .taskDetail == '' &&
  448. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  449. .eList &&
  450. !(
  451. courseDetail.userid == userid ||
  452. (courseDetail.course_teacher &&
  453. courseDetail.course_teacher.indexOf(userid) != -1)
  454. )
  455. "
  456. >
  457. <img src="../assets/icon/isNoMessage.png" alt />
  458. </div>
  459. <div class="study_top" :class="{ pzClass: pzDialog }">
  460. <div
  461. class="vedioBox"
  462. v-if="
  463. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  464. .taskDetail != '' ||
  465. vChapterData[taskCount].length > 0 ||
  466. fileC[taskCount].length > 0
  467. "
  468. style="border-radius: 0 0 20px 20px"
  469. >
  470. <div
  471. class="taskBox"
  472. v-if="
  473. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  474. .taskDetail != ''
  475. "
  476. >
  477. <div
  478. style="
  479. display: flex;
  480. flex-wrap: nowrap;
  481. flex-direction: column;
  482. position: relative;
  483. "
  484. >
  485. <div
  486. style="
  487. padding: 15px 0;
  488. line-height: 29px;
  489. font-size: 18px;
  490. color: #0e1e33;
  491. "
  492. class="cont"
  493. v-if="
  494. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  495. .taskDetail != ''
  496. "
  497. v-html="
  498. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  499. .taskDetail
  500. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  501. taskCount
  502. ].taskDetail
  503. : '暂无描述'
  504. "
  505. ></div>
  506. </div>
  507. </div>
  508. <div
  509. class="student_head"
  510. v-if="
  511. vChapterData[taskCount].length > 0 ||
  512. fileC[taskCount].length > 0
  513. "
  514. >
  515. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  516. <div
  517. :class="
  518. contentDialog == false
  519. ? 'box_course isContentCss'
  520. : 'box_course'
  521. "
  522. v-if="
  523. vChapterData.length > 0 &&
  524. vChapterData[taskCount] &&
  525. showType !== ''
  526. "
  527. >
  528. <div class="wheel" style="height: auto" v-if="showType === 0">
  529. <div
  530. class="workd_media"
  531. style="height: 650px; width: calc(100% - 50px)"
  532. >
  533. <video-player
  534. class="video-player vjs-custom-skin"
  535. :class="contentDialog == false ? 'isAllWidth' : ''"
  536. :playsinline="true"
  537. :options="playerO[taskCount]"
  538. @play="onPlayerPlay($event)"
  539. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  540. ></video-player>
  541. </div>
  542. </div>
  543. <div
  544. class="wheel"
  545. v-if="showType == 1"
  546. style="
  547. box-shadow: 0 0 6px 1px #f2f2f2;
  548. width: 95%;
  549. margin: 0 auto;
  550. background: #f1f1f1;
  551. "
  552. >
  553. <div class="title">查看文档</div>
  554. <el-form class="textBox">
  555. <el-form-item class="textTitle">
  556. <div style="font-size: 22px">
  557. {{ text.name }}
  558. </div>
  559. </el-form-item>
  560. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  561. <div v-html="text.url" class="textContent cont"></div>
  562. </el-form>
  563. </div>
  564. <div
  565. class="wheel"
  566. v-if="
  567. pptImgUrl1.indexOf(
  568. 'https://view.officeapps.live.com/op/view.aspx?src='
  569. ) != -1 && showType == 2
  570. "
  571. style="width: 95%; margin: 0 auto"
  572. >
  573. <iframe
  574. style="width: 100%; height: 100%; border: none"
  575. :src="pptImgUrl1"
  576. ></iframe>
  577. </div>
  578. <div
  579. class="wheel"
  580. v-else-if="showType == 2"
  581. style="width: 95%; margin: 0 auto"
  582. >
  583. <iframe
  584. style="width: 100%; height: 100%; border: none"
  585. security="restricted"
  586. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  587. :src="pptImgUrl1"
  588. ></iframe>
  589. </div>
  590. <div
  591. class="wheel"
  592. v-if="showType == 3"
  593. style="width: 95%; margin: 0 auto"
  594. >
  595. <pdf
  596. :pdfUrl="pptImgUrl1"
  597. style="width: 100%; height: 100%; overflow: auto"
  598. ></pdf>
  599. </div>
  600. <div
  601. class="wheel"
  602. v-if="showType == 4"
  603. style="width: 95%; margin: 0 auto"
  604. >
  605. <el-image
  606. :src="pptImgUrl1"
  607. fit="contain"
  608. style="width: 100%; height: 100%; cursor: pointer"
  609. @click="previewImg(pptImgUrl1)"
  610. ></el-image>
  611. </div>
  612. </div>
  613. <div
  614. class="pButton"
  615. style="position: absolute; right: 20px; top: 0; z-index: 998"
  616. v-if="!contentDialog"
  617. @click="setContent(true)"
  618. >
  619. <!-- 批 -->
  620. <img
  621. src="../assets/icon/newIcons/isLeft.png"
  622. style="width: 45px"
  623. alt=""
  624. />
  625. </div>
  626. <div
  627. v-if="contentDialog == true"
  628. :style="{
  629. width:
  630. (vChapterData[taskCount].length > 0 ||
  631. fileC[taskCount].length > 0) &&
  632. showType === ''
  633. ? 'calc(100%)'
  634. : '300px',
  635. margin:
  636. (vChapterData[taskCount].length > 0 ||
  637. fileC[taskCount].length > 0) &&
  638. showType === ''
  639. ? '0 15px'
  640. : '0 15px 0 0',
  641. }"
  642. >
  643. <div
  644. class="vedioList"
  645. v-if="
  646. vChapterData[taskCount].length > 0 ||
  647. fileC[taskCount].length > 0
  648. "
  649. style="height: 650px"
  650. >
  651. <div class="navCorOpenBox">
  652. <div class="navTitile">内容列表:</div>
  653. <div class="navCorOpen" @click="setContent(false)">
  654. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  655. </div>
  656. </div>
  657. <div class="navBox">
  658. <div
  659. v-show="
  660. vChapterData[taskCount].length > 0 ||
  661. fileC[taskCount].length > 0
  662. "
  663. style="padding: 10px 0 25px 0"
  664. >
  665. <div
  666. class="vedioTimeBox"
  667. v-for="(vitem, vindex) in vChapterData[taskCount]"
  668. :key="vindex + '1'"
  669. >
  670. <div class="navListItem" v-if="vitem.type == 2">
  671. <div
  672. @click="lookVedio(vitem.url, vindex)"
  673. class="navText"
  674. :class="isClickNav == vindex ? 'isClickNav' : ''"
  675. >
  676. <span v-if="vitem.text">{{ vitem.text }}-</span
  677. >{{ vitem.name }}
  678. </div>
  679. <div class="downIcon" @click="downloadFile2(vitem)">
  680. <img src="../assets/icon/newIcon/down.png" alt />
  681. </div>
  682. </div>
  683. <div class="navListItem" v-if="vitem.type == 6">
  684. <div
  685. @click="lookText(taskCount, vindex)"
  686. class="navText"
  687. :class="isClickNav == vindex ? 'isClickNav' : ''"
  688. >
  689. {{ vitem.name }}.doc
  690. </div>
  691. <div
  692. class="downIcon"
  693. @click="checkFileFull1(vitem.type, vitem)"
  694. >
  695. <img
  696. src="../assets/icon/newIcon/allScreen.png"
  697. alt
  698. />
  699. </div>
  700. </div>
  701. <div
  702. class="navListItem"
  703. v-if="vitem.type == 8 || vitem.type == 14"
  704. >
  705. <div
  706. @click="doUrl(vitem.url, vindex)"
  707. class="navText"
  708. :class="isClickNav == vindex ? 'isClickNav' : ''"
  709. >
  710. {{ vitem.title ? vitem.title : vitem.url }}
  711. </div>
  712. <div
  713. class="downIcon"
  714. @click="checkFileFull1(vitem.type, vitem)"
  715. >
  716. <img
  717. src="../assets/icon/newIcon/allScreen.png"
  718. alt
  719. />
  720. </div>
  721. </div>
  722. <div class="navListItem" v-if="vitem.type == 3">
  723. <div
  724. @click="downFile(vitem, vindex)"
  725. class="navText"
  726. :class="isClickNav == vindex ? 'isClickNav' : ''"
  727. >
  728. <span v-if="vitem.text">{{ vitem.text }}-</span
  729. >{{ vitem.name }}
  730. </div>
  731. <div
  732. class="downIcon"
  733. @click="checkFileFull1(vitem.type, vitem)"
  734. >
  735. <img
  736. src="../assets/icon/newIcon/allScreen.png"
  737. alt
  738. />
  739. </div>
  740. <div class="downIcon" @click="downloadFile2(vitem)">
  741. <img src="../assets/icon/newIcon/down.png" alt />
  742. </div>
  743. </div>
  744. <div class="navListItem" v-if="vitem.type == 12">
  745. <div class="navText" @click="downloadFile2(vitem)">
  746. <span v-if="vitem.text">{{ vitem.text }}-</span
  747. >{{ vitem.name }}
  748. </div>
  749. <div
  750. class="downIcon"
  751. @click="checkFileFull1(vitem.type, vitem)"
  752. >
  753. <img
  754. src="../assets/icon/newIcon/allScreen.png"
  755. alt
  756. />
  757. </div>
  758. <div class="downIcon" @click="downloadFile2(vitem)">
  759. <img src="../assets/icon/newIcon/down.png" alt />
  760. </div>
  761. </div>
  762. <div class="navListItem" v-if="vitem.type == 13">
  763. <div
  764. class="navText"
  765. @click="checkPhoto(vitem, vindex)"
  766. :class="isClickNav == vindex ? 'isClickNav' : ''"
  767. >
  768. {{ vitem.name }}
  769. </div>
  770. <div class="downIcon" @click="downloadFile2(vitem)">
  771. <img src="../assets/icon/newIcon/down.png" alt />
  772. </div>
  773. </div>
  774. </div>
  775. <div
  776. class="fileC_box"
  777. v-if="fileC[taskCount].length > 0"
  778. >
  779. <div class="fileC_title">以下文件不支持预览</div>
  780. <div
  781. class="vedioTimeBox"
  782. v-for="(vitem, vindex) in fileC[taskCount]"
  783. :key="vindex + '1'"
  784. >
  785. <div class="navListItem" v-if="vitem.type == 12">
  786. <div class="navText" style="color: #acb4bf">
  787. <span v-if="vitem.text">{{ vitem.text }}-</span
  788. >{{ vitem.name }}
  789. </div>
  790. <div
  791. class="downIcon"
  792. @click="downloadFile2(vitem)"
  793. >
  794. <img
  795. src="../assets/icon/newIcon/down.png"
  796. alt
  797. />
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. </div>
  804. </div>
  805. </div>
  806. </div>
  807. <div style="width: calc(100% - 315px)">
  808. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  809. <!-- <el-button
  810. type="primary"
  811. class="newButton"
  812. @click="checkFileFull(showType, pptImgUrl1)"
  813. >全屏查看</el-button
  814. >
  815. <el-button
  816. type="primary"
  817. class="newButton"
  818. @click="downloadFile(pptImgUrl1)"
  819. v-if="showType != 2"
  820. >文件下载</el-button
  821. > -->
  822. <el-button
  823. class="newButton"
  824. v-if="
  825. showType == 2 &&
  826. pptImgUrl1.indexOf(
  827. 'https://view.officeapps.live.com/op/view.aspx?src='
  828. ) == -1
  829. "
  830. type="primary"
  831. @click="openLine(pptImgUrl1)"
  832. >打开链接
  833. </el-button>
  834. </div>
  835. <!-- <div
  836. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  837. v-if="showType == 1"
  838. >
  839. <el-button
  840. type="primary"
  841. class="newButton"
  842. @click="checkFileFull(showType, text)"
  843. >全屏查看</el-button
  844. >
  845. </div> -->
  846. </div>
  847. </div>
  848. </div>
  849. <div class="student_body" v-resize="resize">
  850. <div
  851. class="vedioBox"
  852. :style="{
  853. borderRadius:
  854. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  855. .taskDetail == '' &&
  856. vChapterData[taskCount].length == 0 &&
  857. fileC[taskCount].length == 0
  858. ? '0 0 20px 20px'
  859. : '20px',
  860. }"
  861. v-if="
  862. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  863. .toolChoose[0].tool &&
  864. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  865. .toolChoose[0].tool.length > 0
  866. "
  867. >
  868. <div
  869. class="toolHeng2"
  870. style="position: relative"
  871. v-if="
  872. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  873. .toolChoose[0].tool &&
  874. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  875. .toolChoose[0].tool.length &&
  876. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  877. .toolChoose[0].tool.length > 0
  878. "
  879. >
  880. <div class="workNav">工作区</div>
  881. <div
  882. class="filebox"
  883. style="flex-wrap: nowrap"
  884. v-for="(tool, toolIndex) in chapInfoList[courseType]
  885. .chapterInfo[0].taskJson[taskCount].toolChoose"
  886. :key="toolIndex"
  887. >
  888. <div class="bzBox">
  889. <div class="yCss"></div>
  890. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  891. 工具{{ toolIndex + 1 }}
  892. </div>
  893. <div
  894. v-if="timeWorkList[toolIndex].length > 0"
  895. style="margin: 0 0 0 10px"
  896. >
  897. {{
  898. timeWorkList[toolIndex][0].time
  899. ? "时间:" + timeWorkList[toolIndex][0].time
  900. : ""
  901. }}
  902. </div>
  903. </div>
  904. <div class="toolBox">
  905. <div>
  906. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  907. :key="indexTool"-->
  908. <!-- <div class="iframeBox">
  909. <div
  910. class="addPoint isBorder"
  911. v-for="(tooC, toolCIndex) in tool.tool"
  912. :key="toolCIndex"
  913. >
  914. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  915. <div
  916. class="iframeName"
  917. >
  918. 电子白板
  919. </div>
  920. <iframe
  921. src="https://iwb.cocorobo.cn/"
  922. ref="whiteBoard"
  923. ></iframe>
  924. </div>
  925. </div>
  926. </div>-->
  927. <div class="noiframeBox">
  928. <div
  929. class="addPoint"
  930. v-for="(tooC, toolCIndex) in tool.tool"
  931. :key="toolCIndex"
  932. >
  933. <div v-if="tooC == 1">
  934. <img
  935. src="../assets/icon/secondToolList/whiteBoard.png"
  936. alt
  937. @click="addTools(tooC, toolIndex, taskCount)"
  938. />
  939. <div style="margin: 5px 0">电子白板</div>
  940. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  941. style="position: absolute;right: 33px;top: -30px;">
  942. 投影
  943. </div>
  944. </div>
  945. <div v-if="tooC == 3">
  946. <img
  947. src="../assets/icon/secondToolList/mindMapping.png"
  948. alt
  949. @click="addTools(tooC, toolIndex, taskCount)"
  950. />
  951. <div style="margin: 5px 0">思维导图</div>
  952. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  953. style="position: absolute;right: 33px;top: -30px;">
  954. 投影
  955. </div>
  956. </div>
  957. <div v-if="tooC == 6">
  958. <img
  959. src="../assets/icon/secondToolList/doc.png"
  960. alt
  961. @click="addTools(tooC, toolIndex, taskCount)"
  962. />
  963. <div style="margin: 5px 0">协同文档</div>
  964. </div>
  965. <div v-if="tooC == 7">
  966. <img
  967. src="../assets/icon/secondToolList/mindNetwork.png"
  968. alt
  969. @click="addTools(tooC, toolIndex, taskCount)"
  970. />
  971. <div style="margin: 5px 0">思维网格</div>
  972. <!-- && worksStudent[toolIndex].length>0 -->
  973. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  974. style="position: absolute;right: 33px;top: -30px;">
  975. 投影
  976. </div>
  977. </div>
  978. <div v-if="tooC == 8">
  979. <img
  980. src="../assets/icon/secondToolList/library.png"
  981. alt
  982. @click="addTools(tooC, toolIndex, taskCount)"
  983. />
  984. <div style="margin: 5px 0">素材库</div>
  985. </div>
  986. <div v-if="tooC == 17">
  987. <img
  988. src="../assets/icon/secondToolList/library.png"
  989. alt
  990. @click="addTools(tooC, toolIndex, taskCount)"
  991. />
  992. <div style="margin: 5px 0">学习资料</div>
  993. </div>
  994. <div v-if="tooC == 2">
  995. <img
  996. @click="addTools(tooC, toolIndex, taskCount)"
  997. src="../assets/icon/secondToolList/note.png"
  998. alt
  999. />
  1000. <div style="margin: 5px 0">便签</div>
  1001. </div>
  1002. <div v-if="tooC == 4">
  1003. <img
  1004. @click="addTools(tooC, toolIndex, taskCount)"
  1005. src="../assets/icon/thirdToolList/ask.png"
  1006. alt
  1007. />
  1008. <div style="margin: 5px 0">问卷调查</div>
  1009. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1010. style="position: absolute;right: 33px;top: -30px;">
  1011. 统计分析
  1012. </div>
  1013. </div>
  1014. <div v-if="tooC == 45">
  1015. <img
  1016. @click="addTools(tooC, toolIndex, taskCount)"
  1017. src="../assets/icon/thirdToolList/choose.png"
  1018. alt
  1019. />
  1020. <div style="margin: 5px 0">选择题</div>
  1021. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1022. style="position: absolute;right: 33px;top: -30px;">
  1023. 投影
  1024. </div>
  1025. </div>
  1026. <!-- <div v-if="tooC == 5">
  1027. <img
  1028. @click="addTools(tooC, toolIndex, taskCount)"
  1029. src="../assets/icon/thirdToolList/score.png"
  1030. alt
  1031. />
  1032. <div style="margin: 5px 0">量规评分</div>
  1033. </div> -->
  1034. <div v-if="tooC == 10">
  1035. <img
  1036. @click="addTools(tooC, toolIndex, taskCount)"
  1037. src="../assets/icon/thirdToolList/time.png"
  1038. alt
  1039. />
  1040. <div style="margin: 5px 0">倒计时</div>
  1041. </div>
  1042. <div v-if="tooC == 15">
  1043. <img
  1044. @click="addTools(tooC, toolIndex, taskCount)"
  1045. src="../assets/icon/thirdToolList/answer.png"
  1046. alt
  1047. />
  1048. <div style="margin: 5px 0">问答</div>
  1049. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1050. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1051. 投影
  1052. </div>
  1053. </div>
  1054. <div v-if="tooC == 26">
  1055. <img
  1056. @click="addTools(tooC, toolIndex, taskCount)"
  1057. src="../assets/icon/thirdToolList/courseDesign.png"
  1058. alt
  1059. />
  1060. <div style="margin: 5px 0">课程设计</div>
  1061. </div>
  1062. <div v-if="tooC == 18">
  1063. <img
  1064. @click="addTools(tooC, toolIndex, taskCount)"
  1065. src="../assets/icon/thirdToolList/trainPlatform.png"
  1066. alt
  1067. />
  1068. <div style="margin: 5px 0">训练服务器</div>
  1069. </div>
  1070. <div v-if="tooC == 16">
  1071. <img
  1072. @click="addTools(tooC, toolIndex, taskCount)"
  1073. src="../assets/icon/thirdToolList/work.png"
  1074. alt
  1075. />
  1076. <div style="margin: 5px 0">作业提交</div>
  1077. </div>
  1078. <div v-if="tooC == 50">
  1079. <img
  1080. @click="addTools(tooC, toolIndex, taskCount)"
  1081. src="../assets/icon/thirdToolList/plwork.png"
  1082. alt
  1083. />
  1084. <div style="margin: 5px 0">批量上传</div>
  1085. </div>
  1086. <div v-if="tooC == 21">
  1087. <img
  1088. @click="addTools(tooC, toolIndex, taskCount)"
  1089. src="../assets/icon/fourthToolList/program.png"
  1090. alt
  1091. />
  1092. <div style="margin: 5px 0">AIoT Blockly</div>
  1093. </div>
  1094. <!-- <div v-if="tooC == 22">
  1095. <img
  1096. @click="addTools(tooC, toolIndex, taskCount)"
  1097. src="../assets/icon/fourthToolList/program.png"
  1098. alt
  1099. />
  1100. <div style="margin: 5px 0">AI体验</div>
  1101. </div> -->
  1102. <div v-if="tooC == 23">
  1103. <img
  1104. @click="addTools(tooC, toolIndex, taskCount)"
  1105. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1106. alt
  1107. />
  1108. <div style="margin: 5px 0">AI Python</div>
  1109. </div>
  1110. <div v-if="tooC == 24">
  1111. <img
  1112. @click="addTools(tooC, toolIndex, taskCount)"
  1113. src="../assets/icon/fourthToolList/AIprogram.png"
  1114. alt
  1115. />
  1116. <div style="margin: 5px 0">AI Blockly</div>
  1117. </div>
  1118. <div v-if="tooC == 25">
  1119. <img
  1120. @click="addTools(tooC, toolIndex, taskCount)"
  1121. src="../assets/icon/thirdToolList/evalua.png"
  1122. alt
  1123. />
  1124. <div style="margin: 5px 0">目标管理</div>
  1125. </div>
  1126. <div v-if="tooC == 31">
  1127. <img
  1128. @click="addTools(tooC, toolIndex, taskCount)"
  1129. src="../assets/icon/secondToolList/networkPanel.png"
  1130. alt
  1131. />
  1132. <div style="margin: 5px 0">数学画板</div>
  1133. </div>
  1134. <div v-if="tooC == 28">
  1135. <img
  1136. @click="addTools(tooC, toolIndex, taskCount)"
  1137. src="../assets/icon/secondToolList/translation.png"
  1138. alt
  1139. />
  1140. <div style="margin: 5px 0">翻译</div>
  1141. </div>
  1142. <div v-if="tooC == 37">
  1143. <img
  1144. @click="addTools(tooC, toolIndex, taskCount)"
  1145. src="../assets/icon/secondToolList/mohe.png"
  1146. alt
  1147. />
  1148. <div style="margin: 5px 0">魔盒识字</div>
  1149. </div>
  1150. <div v-if="tooC == 38">
  1151. <img
  1152. @click="addTools(tooC, toolIndex, taskCount)"
  1153. src="../assets/icon/secondToolList/24game.png"
  1154. alt
  1155. />
  1156. <div style="margin: 5px 0">24点</div>
  1157. </div>
  1158. <div v-if="tooC == 39">
  1159. <img
  1160. @click="addTools(tooC, toolIndex, taskCount)"
  1161. src="../assets/icon/secondToolList/GeoGebra.png"
  1162. alt
  1163. />
  1164. <div style="margin: 5px 0">GeoGebra</div>
  1165. </div>
  1166. <div v-if="tooC == 32">
  1167. <img
  1168. @click="addTools(tooC, toolIndex, taskCount)"
  1169. src="../assets/icon/thirdToolList/code.png"
  1170. alt
  1171. />
  1172. <div style="margin: 5px 0">源码编辑</div>
  1173. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1174. style="position: absolute;left: 110px;bottom: 30px;">
  1175. 上传文件
  1176. <input type="file" accept="*" style="display: none"
  1177. @change="beforeUpload1($event, 7, toolIndex)" />
  1178. </div> -->
  1179. </div>
  1180. <div v-if="tooC == 40">
  1181. <img
  1182. @click="addTools(tooC, toolIndex, taskCount)"
  1183. src="../assets/icon/secondToolList/eval.png"
  1184. alt
  1185. />
  1186. <div style="margin: 5px 0">个人评价</div>
  1187. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1188. style="position: absolute;right: 33px;top: -30px;">
  1189. 投影
  1190. </div>
  1191. </div>
  1192. <div v-if="tooC == 41">
  1193. <img
  1194. @click="addTools(tooC, toolIndex, taskCount)"
  1195. src="../assets/icon/thirdToolList/select.png"
  1196. alt
  1197. />
  1198. <div style="margin: 5px 0">选择匹配</div>
  1199. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1200. style="position: absolute;right: 33px;top: -30px;">
  1201. 投影
  1202. </div>
  1203. </div>
  1204. <div v-if="tooC == 44">
  1205. <img
  1206. @click="addTools(tooC, toolIndex, taskCount)"
  1207. src="../assets/icon/thirdToolList/hanClass.png"
  1208. alt
  1209. />
  1210. <div style="margin: 5px 0">汉字宫</div>
  1211. </div>
  1212. <div v-if="tooC == 47">
  1213. <img
  1214. @click="addTools(tooC, toolIndex, taskCount)"
  1215. src="../assets/icon/fourthToolList/conSentences.png"
  1216. alt
  1217. />
  1218. <div style="margin: 5px 0">排序</div>
  1219. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1220. style="position: absolute;right: 33px;top: -30px;">
  1221. 投影
  1222. </div>
  1223. </div>
  1224. <div v-if="tooC == 48">
  1225. <img
  1226. @click="addTools(tooC, toolIndex, taskCount)"
  1227. src="../assets/icon/fourthToolList/table.png"
  1228. alt
  1229. />
  1230. <div style="margin: 5px 0">表格</div>
  1231. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1232. style="position: absolute;right: 33px;top: -30px;">
  1233. 投影
  1234. </div>
  1235. </div>
  1236. <div v-if="tooC == 52">
  1237. <img
  1238. @click="addTools(tooC, toolIndex, taskCount)"
  1239. src="../assets/icon/fourthToolList/text.png"
  1240. alt
  1241. />
  1242. <div style="margin: 5px 0">文档</div>
  1243. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1244. style="position: absolute;right: 33px;top: -30px;">
  1245. 投影
  1246. </div>
  1247. </div>
  1248. <div v-if="tooC == 49">
  1249. <img
  1250. @click="addTools(tooC, toolIndex, taskCount)"
  1251. src="../assets/icon/fourthToolList/group.png"
  1252. alt
  1253. />
  1254. <div style="margin: 5px 0">学生分组</div>
  1255. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1256. style="position: absolute;right: 33px;top: -30px;">
  1257. 投影
  1258. </div>
  1259. </div>
  1260. <div v-if="tooC == 57">
  1261. <img
  1262. @click="addTools(tooC, toolIndex, taskCount)"
  1263. src="../assets/icon/fourthToolList/cocopi.png"
  1264. alt
  1265. />
  1266. <div style="margin: 5px 0">CocoPi</div>
  1267. </div>
  1268. <div v-if="tooC == 58">
  1269. <img
  1270. @click="addTools(tooC, toolIndex, taskCount)"
  1271. src="../assets/icon/fourthToolList/car.png"
  1272. alt
  1273. />
  1274. <div style="margin: 5px 0">模拟驾驶</div>
  1275. </div>
  1276. <div v-if="tooC == 59">
  1277. <img
  1278. @click="addTools(tooC, toolIndex, taskCount)"
  1279. src="../assets/icon/fourthToolList/lineSearch.png"
  1280. alt
  1281. />
  1282. <div style="margin: 5px 0">路径搜索</div>
  1283. </div>
  1284. <div v-if="tooC == 60">
  1285. <img
  1286. @click="addTools(tooC, toolIndex, taskCount)"
  1287. src="../assets/icon/fourthToolList/deepLearning.png"
  1288. alt
  1289. />
  1290. <div style="margin: 5px 0">深度学习</div>
  1291. </div>
  1292. <div v-if="tooC == 61">
  1293. <img
  1294. @click="addTools(tooC, toolIndex, taskCount)"
  1295. src="../assets/icon/fourthToolList/allHistory.png"
  1296. alt
  1297. />
  1298. <div style="margin: 5px 0">全历史</div>
  1299. </div>
  1300. <div v-if="tooC == 62">
  1301. <img
  1302. @click="addTools(tooC, toolIndex, taskCount)"
  1303. src="../assets/icon/fourthToolList/interVideo.png"
  1304. alt
  1305. />
  1306. <div style="margin: 5px 0">交互视频</div>
  1307. </div>
  1308. <div v-if="tooC == 63">
  1309. <img
  1310. @click="addTools(tooC, toolIndex, taskCount)"
  1311. src="../assets/icon/fourthToolList/Wood.png"
  1312. alt
  1313. />
  1314. <div style="margin: 5px 0">海龟编程</div>
  1315. </div>
  1316. <div v-if="tooC == 71">
  1317. <img
  1318. @click="addTools(tooC, toolIndex, taskCount)"
  1319. src="../assets/icon/fourthToolList/chatgpt.png"
  1320. alt
  1321. />
  1322. <div style="margin: 5px 0">AI智能体</div>
  1323. </div>
  1324. <div v-if="tooC == 65">
  1325. <img
  1326. @click="addTools(tooC, toolIndex, taskCount)"
  1327. src="../assets/icon/firstToolList/pickPeople.png"
  1328. alt
  1329. />
  1330. <div style="margin: 5px 0">挑人</div>
  1331. </div>
  1332. <div v-if="tooC == 66">
  1333. <img
  1334. @click="addTools(tooC, toolIndex, taskCount)"
  1335. src="../assets/icon/secondToolList/formulaEdi.png"
  1336. alt
  1337. />
  1338. <div style="margin: 5px 0">公式编辑</div>
  1339. </div>
  1340. <div v-if="tooC == 67">
  1341. <img
  1342. @click="addTools(tooC, toolIndex, taskCount)"
  1343. src="../assets/icon/secondToolList/molStr.png"
  1344. alt
  1345. />
  1346. <div style="margin: 5px 0">分子结构</div>
  1347. </div>
  1348. <div v-if="tooC == 68">
  1349. <img
  1350. @click="addTools(tooC, toolIndex, taskCount)"
  1351. src="../assets/icon/secondToolList/timeAxis.png"
  1352. alt
  1353. />
  1354. <div style="margin: 5px 0">时间轴</div>
  1355. </div>
  1356. <div v-if="tooC == 69">
  1357. <img
  1358. @click="addTools(tooC, toolIndex, taskCount)"
  1359. src="../assets/icon/secondToolList/english.png"
  1360. alt
  1361. />
  1362. <div style="margin: 5px 0">英语写作</div>
  1363. </div>
  1364. <div v-if="tooC == 70">
  1365. <img
  1366. @click="addTools(tooC, toolIndex, taskCount)"
  1367. src="../assets/icon/thirdToolList/englishVoice.png"
  1368. alt
  1369. />
  1370. <div style="margin: 5px 0">英语口语</div>
  1371. </div>
  1372. </div>
  1373. </div>
  1374. </div>
  1375. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1376. <!-- <div class="toolTitle">工具描述</div> -->
  1377. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1378. <div style="height:100%;"
  1379. v-html="contentConvent(tool.toolDetail)"
  1380. v-if="toolDetailIndex != toolIndex"
  1381. ></div>
  1382. <div v-else @click.stop="" style="height:100%;">
  1383. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1384. </div>
  1385. </div>
  1386. <el-button
  1387. type="primary"
  1388. v-if="tool.tool[0] == 32"
  1389. style="position: absolute; right: 30px; top: -45px"
  1390. @click="addImg($event)"
  1391. >上传作业<input
  1392. type="file"
  1393. accept="*"
  1394. style="display: none"
  1395. @change="beforeUpload1($event, 7, toolIndex)"
  1396. /></el-button>
  1397. <el-button
  1398. type="primary"
  1399. v-if="tool.tool[0] == 15"
  1400. style="position: absolute; right: 30px; top: -45px"
  1401. @click="openWordCloud(toolIndex)"
  1402. >生成词云</el-button
  1403. >
  1404. <el-button
  1405. type="primary"
  1406. v-if="
  1407. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1408. "
  1409. style="position: absolute; right: 30px; top: -45px"
  1410. @click="uploadWorks(toolIndex)"
  1411. >导出作业</el-button
  1412. >
  1413. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1414. position: absolute;
  1415. right: 30px;
  1416. transform: translateY(-130%);
  1417. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1418. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1419. </div>
  1420. <div
  1421. v-if="
  1422. tType &&
  1423. tType == 2 &&
  1424. !sIsOpen &&
  1425. tool.tool.indexOf(16) != -1
  1426. "
  1427. class="worksBox"
  1428. >
  1429. <div
  1430. class="zuoyeYulan"
  1431. v-if="workStudent[toolIndex].length > 0"
  1432. >
  1433. <span class="worksTitle">作业预览</span>
  1434. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1435. </div>
  1436. <div
  1437. class="worksDetailBox"
  1438. v-if="workStudent[toolIndex].length > 0"
  1439. >
  1440. <div
  1441. class="works"
  1442. style="
  1443. width: 200px;
  1444. height: 140px;
  1445. margin: 10px 10px 10px 0;
  1446. box-shadow: 0 0 6px 1px #dfdada;
  1447. "
  1448. v-for="(w, wIndex) in workStudent[toolIndex]"
  1449. :key="wIndex"
  1450. >
  1451. <div class="workImg" v-if="w.type == 0">
  1452. <img
  1453. :src="w.works"
  1454. @click="previewImg(w.works,w)"
  1455. alt
  1456. />
  1457. <div
  1458. class="answerScore"
  1459. v-if="w.score"
  1460. @click.stop="openScore(w)"
  1461. :class="{
  1462. rightW:
  1463. w.userid == userid || tType == 1 || tType == 4,
  1464. }"
  1465. >
  1466. {{ JSON.parse(w.score).wScore }}分
  1467. </div>
  1468. <div
  1469. class="answerScore"
  1470. @click.stop="openScore(w)"
  1471. v-else-if="courseDetail.userid == userid"
  1472. :class="{
  1473. rightW:
  1474. w.userid == userid || tType == 1 || tType == 4,
  1475. }"
  1476. >
  1477. 评分
  1478. </div>
  1479. <img
  1480. class="deleteImg"
  1481. src="../assets/deleteworks.png"
  1482. v-if="
  1483. w.userid == userid || tType == 1 || tType == 4
  1484. "
  1485. @click.stop="deleteWorks(w.wid)"
  1486. alt
  1487. />
  1488. </div>
  1489. <div class="workImg" v-if="w.type == 1">
  1490. <img :src="word" @click="openFile(w.works,w)" alt />
  1491. <div
  1492. class="answerScore"
  1493. v-if="w.score"
  1494. @click.stop="openScore(w)"
  1495. :class="{
  1496. rightW:
  1497. w.userid == userid || tType == 1 || tType == 4,
  1498. }"
  1499. >
  1500. {{ JSON.parse(w.score).wScore }}分
  1501. </div>
  1502. <div
  1503. class="answerScore"
  1504. @click.stop="openScore(w)"
  1505. v-else-if="courseDetail.userid == userid"
  1506. :class="{
  1507. rightW:
  1508. w.userid == userid || tType == 1 || tType == 4,
  1509. }"
  1510. >
  1511. 评分
  1512. </div>
  1513. <img
  1514. class="deleteImg"
  1515. src="../assets/deleteworks.png"
  1516. v-if="
  1517. w.userid == userid || tType == 1 || tType == 4
  1518. "
  1519. @click.stop="deleteWorks(w.wid)"
  1520. alt
  1521. />
  1522. </div>
  1523. <div class="workImg" v-if="w.type == 3">
  1524. <img
  1525. style="cursor: pointer"
  1526. :src="video"
  1527. @click="openVideo(w)"
  1528. alt
  1529. />
  1530. <div
  1531. class="answerScore"
  1532. v-if="w.score"
  1533. @click.stop="openScore(w)"
  1534. :class="{
  1535. rightW:
  1536. w.userid == userid || tType == 1 || tType == 4,
  1537. }"
  1538. >
  1539. {{ JSON.parse(w.score).wScore }}分
  1540. </div>
  1541. <div
  1542. class="answerScore"
  1543. @click.stop="openScore(w)"
  1544. v-else-if="courseDetail.userid == userid"
  1545. :class="{
  1546. rightW:
  1547. w.userid == userid || tType == 1 || tType == 4,
  1548. }"
  1549. >
  1550. 评分
  1551. </div>
  1552. <img
  1553. class="deleteImg"
  1554. src="../assets/deleteworks.png"
  1555. v-if="
  1556. w.userid == userid || tType == 1 || tType == 4
  1557. "
  1558. @click.stop="deleteWorks(w.wid)"
  1559. alt
  1560. />
  1561. </div>
  1562. <div class="workImg" v-if="w.type == 12">
  1563. <img
  1564. style="cursor: pointer"
  1565. :src="word2"
  1566. @click="downloadFile(w.works)"
  1567. alt
  1568. />
  1569. <div
  1570. class="answerScore"
  1571. v-if="w.score"
  1572. @click.stop="openScore(w)"
  1573. :class="{
  1574. rightW:
  1575. w.userid == userid || tType == 1 || tType == 4,
  1576. }"
  1577. >
  1578. {{ JSON.parse(w.score).wScore }}分
  1579. </div>
  1580. <div
  1581. class="answerScore"
  1582. @click.stop="openScore(w)"
  1583. v-else-if="courseDetail.userid == userid"
  1584. :class="{
  1585. rightW:
  1586. w.userid == userid || tType == 1 || tType == 4,
  1587. }"
  1588. >
  1589. 评分
  1590. </div>
  1591. <img
  1592. class="deleteImg"
  1593. src="../assets/deleteworks.png"
  1594. v-if="
  1595. w.userid == userid || tType == 1 || tType == 4
  1596. "
  1597. @click.stop="deleteWorks(w.wid)"
  1598. alt
  1599. />
  1600. </div>
  1601. <div class="worksName">
  1602. <div>{{ w.sName }}</div>
  1603. </div>
  1604. </div>
  1605. </div>
  1606. </div>
  1607. <div
  1608. v-if="
  1609. tType &&
  1610. tType == 2 &&
  1611. !sIsOpen &&
  1612. tool.tool.indexOf(32) != -1
  1613. "
  1614. class="worksBox"
  1615. >
  1616. <div
  1617. class="zuoyeYulan"
  1618. v-if="workStudent[toolIndex].length > 0"
  1619. >
  1620. <span class="worksTitle">作业预览</span>
  1621. </div>
  1622. <div
  1623. class="worksDetailBox"
  1624. v-if="workStudent[toolIndex].length > 0"
  1625. >
  1626. <div
  1627. class="works"
  1628. style="
  1629. width: 200px;
  1630. height: 140px;
  1631. margin: 10px 10px 10px 0;
  1632. box-shadow: 0 0 6px 1px #dfdada;
  1633. "
  1634. v-for="(w, wIndex) in workStudent[toolIndex]"
  1635. :key="wIndex"
  1636. >
  1637. <div class="workImg">
  1638. <img
  1639. :src="word2"
  1640. @click="downloadFile(w.works)"
  1641. alt
  1642. />
  1643. <div
  1644. class="answerScore"
  1645. v-if="w.score"
  1646. @click.stop="openScore(w)"
  1647. :class="{
  1648. rightW:
  1649. w.userid == userid || tType == 1 || tType == 4,
  1650. }"
  1651. >
  1652. {{ JSON.parse(w.score).wScore }}分
  1653. </div>
  1654. <div
  1655. class="answerScore"
  1656. @click.stop="openScore(w)"
  1657. v-else-if="courseDetail.userid == userid"
  1658. :class="{
  1659. rightW:
  1660. w.userid == userid || tType == 1 || tType == 4,
  1661. }"
  1662. >
  1663. 评分
  1664. </div>
  1665. <img
  1666. class="deleteImg"
  1667. src="../assets/deleteworks.png"
  1668. v-if="
  1669. w.userid == userid || tType == 1 || tType == 4
  1670. "
  1671. @click.stop="deleteWorks(w.wid)"
  1672. alt
  1673. />
  1674. </div>
  1675. <div class="worksName">
  1676. <div>{{ w.sName }}</div>
  1677. </div>
  1678. </div>
  1679. </div>
  1680. </div>
  1681. <div
  1682. v-if="
  1683. tType &&
  1684. tType == 2 &&
  1685. !sIsOpen &&
  1686. tool.tool.indexOf(57) != -1
  1687. "
  1688. class="worksBox"
  1689. >
  1690. <div
  1691. class="zuoyeYulan"
  1692. v-if="workStudent[toolIndex].length > 0"
  1693. >
  1694. <span class="worksTitle">作业预览</span>
  1695. </div>
  1696. <div
  1697. class="worksDetailBox"
  1698. v-if="workStudent[toolIndex].length > 0"
  1699. >
  1700. <div
  1701. class="works"
  1702. style="
  1703. width: 200px;
  1704. height: 140px;
  1705. margin: 10px 10px 10px 0;
  1706. box-shadow: 0 0 6px 1px #dfdada;
  1707. "
  1708. v-for="(w, wIndex) in workStudent[toolIndex]"
  1709. :key="wIndex"
  1710. >
  1711. <div class="workImg">
  1712. <img
  1713. :src="word2"
  1714. @click="downloadFile(w.works)"
  1715. v-if="w.type == 12"
  1716. alt
  1717. />
  1718. <img
  1719. :src="word2"
  1720. @click="
  1721. openCocoPi(57, toolIndex, w.userid, w.sName)
  1722. "
  1723. v-else-if="w.type == 15"
  1724. alt
  1725. />
  1726. <div
  1727. class="answerScore"
  1728. v-if="w.score"
  1729. @click.stop="openScore(w)"
  1730. :class="{
  1731. rightW:
  1732. w.userid == userid || tType == 1 || tType == 4,
  1733. }"
  1734. >
  1735. {{ JSON.parse(w.score).wScore }}分
  1736. </div>
  1737. <div
  1738. class="answerScore"
  1739. @click.stop="openScore(w)"
  1740. v-else-if="courseDetail.userid == userid"
  1741. :class="{
  1742. rightW:
  1743. w.userid == userid || tType == 1 || tType == 4,
  1744. }"
  1745. >
  1746. 评分
  1747. </div>
  1748. <img
  1749. class="deleteImg"
  1750. src="../assets/deleteworks.png"
  1751. v-if="
  1752. w.userid == userid || tType == 1 || tType == 4
  1753. "
  1754. @click.stop="deleteWorks(w.wid)"
  1755. alt
  1756. />
  1757. </div>
  1758. <div class="worksName">
  1759. <div>{{ w.sName }}</div>
  1760. </div>
  1761. </div>
  1762. </div>
  1763. </div>
  1764. <div
  1765. v-if="
  1766. tType &&
  1767. tType == 2 &&
  1768. !sIsOpen &&
  1769. tool.tool.indexOf(4) != -1
  1770. "
  1771. class="worksBox"
  1772. >
  1773. <div
  1774. class="zuoyeYulan"
  1775. v-if="workStudent[toolIndex].length > 0"
  1776. >
  1777. <span class="worksTitle">作业预览</span>
  1778. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1779. </div>
  1780. <div
  1781. class="worksDetailBox"
  1782. v-if="workStudent[toolIndex].length > 0"
  1783. >
  1784. <div
  1785. class="isWorksName2"
  1786. v-for="(w, wIndex) in workStudent[toolIndex]"
  1787. :key="wIndex"
  1788. @click="
  1789. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1790. "
  1791. >
  1792. {{ w.sName }}
  1793. <img
  1794. class="deleteImg deleteImg2"
  1795. src="../assets/deleteworks.png"
  1796. v-if="w.userid == userid || tType == 1 || tType == 4"
  1797. @click.stop="deleteWorks(w.wid)"
  1798. alt
  1799. />
  1800. </div>
  1801. <!-- <div
  1802. class="works"
  1803. style="
  1804. width: 200px;
  1805. height: 140px;
  1806. border-radius: 10px;
  1807. box-shadow: 0 0 6px 1px #dfdada;
  1808. overflow: hidden;
  1809. "
  1810. v-for="(w, wIndex) in workStudent[toolIndex]"
  1811. :key="wIndex"
  1812. >
  1813. <div class="workImg">
  1814. <img
  1815. src="../assets/icon/works/noImg.png"
  1816. @click="
  1817. openTools(
  1818. 4,
  1819. toolIndex,
  1820. taskCount,
  1821. w.works,
  1822. w.sName
  1823. )
  1824. "
  1825. alt
  1826. />
  1827. </div>
  1828. <div class="worksName">
  1829. <div>{{ w.sName }}</div>
  1830. <div>{{ w.time }}</div>
  1831. </div>
  1832. </div> -->
  1833. </div>
  1834. </div>
  1835. <div
  1836. v-if="
  1837. tType &&
  1838. ((tType == 2 && sIsOpen == true) ||
  1839. tType == 1 ||
  1840. tType == 4) &&
  1841. tool.tool.indexOf(62) != -1
  1842. "
  1843. class="worksBox"
  1844. >
  1845. <div
  1846. class="zuoyeYulan"
  1847. v-if="
  1848. worksStudent.length &&
  1849. worksStudent[toolIndex].length > 0
  1850. "
  1851. >
  1852. <div class="worksTop">
  1853. <div>作业预览</div>
  1854. <div
  1855. class="corOpen"
  1856. @click="contract(toolIndex)"
  1857. v-if="
  1858. (isCloseList[toolIndex].isCloseBoolean) &&
  1859. isCloseList[toolIndex].isClose == 0
  1860. "
  1861. >
  1862. 折叠
  1863. </div>
  1864. <div
  1865. class="corOpen"
  1866. @click="contract(toolIndex)"
  1867. v-if="isCloseList[toolIndex].isClose == 1"
  1868. >
  1869. 展开
  1870. </div>
  1871. </div>
  1872. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1873. </div>
  1874. <div>
  1875. <div
  1876. :id="'tool-' + toolIndex"
  1877. :style="{
  1878. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1879. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1880. }"
  1881. class="worksDetailBox"
  1882. v-if="
  1883. worksStudent.length &&
  1884. worksStudent[toolIndex].length > 0
  1885. "
  1886. >
  1887. <div
  1888. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1889. :key="wIndex"
  1890. class="isWorksName2"
  1891. @click="
  1892. openTools(
  1893. 62,
  1894. toolIndex,
  1895. taskCount,
  1896. w.works,
  1897. w.sName
  1898. )
  1899. "
  1900. >
  1901. {{ w.sName }}
  1902. <img
  1903. class="deleteImg deleteImg2"
  1904. src="../assets/deleteworks.png"
  1905. v-if="
  1906. w.userid == userid || tType == 1 || tType == 4
  1907. "
  1908. @click.stop="deleteWorks(w.wid)"
  1909. alt
  1910. />
  1911. </div>
  1912. </div>
  1913. </div>
  1914. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1915. 未提交
  1916. </div>
  1917. <div
  1918. class="noWorksS"
  1919. v-if="noWorksS && noWorksS[toolIndex].length"
  1920. >
  1921. <div
  1922. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1923. :key="sIndex"
  1924. class="noWorksName"
  1925. >
  1926. <el-tooltip effect="dark" :content="s.student" placement="top">
  1927. <span>{{ s.student }}</span>
  1928. </el-tooltip>
  1929. </div>
  1930. </div>
  1931. </div>
  1932. <div
  1933. v-if="
  1934. tType &&
  1935. tType == 2 &&
  1936. !sIsOpen &&
  1937. tool.tool.indexOf(62) != -1
  1938. "
  1939. class="worksBox"
  1940. >
  1941. <div
  1942. class="zuoyeYulan"
  1943. v-if="workStudent[toolIndex].length > 0"
  1944. >
  1945. <span class="worksTitle">作业预览</span>
  1946. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1947. </div>
  1948. <div
  1949. class="worksDetailBox"
  1950. v-if="workStudent[toolIndex].length > 0"
  1951. >
  1952. <div
  1953. class="isWorksName2"
  1954. v-for="(w, wIndex) in workStudent[toolIndex]"
  1955. :key="wIndex"
  1956. @click="
  1957. openTools(62, toolIndex, taskCount, w.works, w.sName)
  1958. "
  1959. >
  1960. {{ w.sName }}
  1961. <img
  1962. class="deleteImg deleteImg2"
  1963. src="../assets/deleteworks.png"
  1964. v-if="w.userid == userid || tType == 1 || tType == 4"
  1965. @click.stop="deleteWorks(w.wid)"
  1966. alt
  1967. />
  1968. </div>
  1969. </div>
  1970. </div>
  1971. <div
  1972. v-if="
  1973. tType &&
  1974. tType == 2 &&
  1975. !sIsOpen &&
  1976. tool.tool.indexOf(45) != -1
  1977. "
  1978. class="worksBox"
  1979. >
  1980. <div
  1981. class="zuoyeYulan"
  1982. v-if="workStudent[toolIndex].length > 0"
  1983. >
  1984. <span class="worksTitle">作业预览</span>
  1985. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1986. </div>
  1987. <div
  1988. class="worksDetailBox"
  1989. v-if="workStudent[toolIndex].length > 0"
  1990. >
  1991. <div
  1992. class="isWorksName2"
  1993. v-for="(w, wIndex) in workStudent[toolIndex]"
  1994. :key="wIndex"
  1995. @click="
  1996. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1997. "
  1998. >
  1999. {{ w.sName }}
  2000. <img
  2001. class="deleteImg deleteImg2"
  2002. src="../assets/deleteworks.png"
  2003. v-if="w.userid == userid || tType == 1 || tType == 4"
  2004. @click.stop="deleteWorks(w.wid)"
  2005. alt
  2006. />
  2007. </div>
  2008. </div>
  2009. </div>
  2010. <div
  2011. v-if="
  2012. tType &&
  2013. tType == 2 &&
  2014. !sIsOpen &&
  2015. tool.tool.indexOf(69) != -1
  2016. "
  2017. class="worksBox"
  2018. >
  2019. <div
  2020. class="zuoyeYulan"
  2021. v-if="workStudent[toolIndex].length > 0"
  2022. >
  2023. <span class="worksTitle">作业预览</span>
  2024. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2025. </div>
  2026. <div
  2027. class="worksDetailBox"
  2028. v-if="workStudent[toolIndex].length > 0"
  2029. >
  2030. <div
  2031. class="isWorksName2"
  2032. v-for="(w, wIndex) in workStudent[toolIndex]"
  2033. :key="wIndex"
  2034. @click="
  2035. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2036. "
  2037. >
  2038. {{ w.sName }}
  2039. <img
  2040. class="deleteImg deleteImg2"
  2041. src="../assets/deleteworks.png"
  2042. v-if="w.userid == userid || tType == 1 || tType == 4"
  2043. @click.stop="deleteWorks(w.wid)"
  2044. alt
  2045. />
  2046. </div>
  2047. </div>
  2048. </div>
  2049. <div
  2050. v-if="
  2051. tType &&
  2052. tType == 2 &&
  2053. !sIsOpen &&
  2054. tool.tool.indexOf(15) != -1
  2055. "
  2056. class="worksBox"
  2057. >
  2058. <div
  2059. class="zuoyeYulan"
  2060. v-if="workStudent[toolIndex].length > 0"
  2061. >
  2062. <span class="worksTitle">作业预览</span>
  2063. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2064. </div>
  2065. <div
  2066. class="worksDetailBox"
  2067. v-if="workStudent[toolIndex].length > 0"
  2068. >
  2069. <div
  2070. class="works"
  2071. v-for="(w, wIndex) in workStudent[toolIndex]"
  2072. :key="wIndex"
  2073. >
  2074. <div class="workImg">
  2075. <!-- <img
  2076. src="../assets/icon/works/noImg.png"
  2077. @click="openTools(15, toolIndex, taskCount, w.works)"
  2078. alt=""
  2079. />-->
  2080. <div class="answerBg">
  2081. <!-- <div>{{ w.sName }}</div> -->
  2082. <el-tooltip
  2083. class="item"
  2084. effect="light"
  2085. :content="JSON.parse(w.works)[0].answer"
  2086. placement="top"
  2087. >
  2088. <div class="answerContent">
  2089. {{ JSON.parse(w.works)[0].answer }}
  2090. </div>
  2091. </el-tooltip>
  2092. <div
  2093. class="answerScore"
  2094. v-if="w.score"
  2095. @click.stop="openScore(w)"
  2096. :class="{
  2097. rightW:
  2098. w.userid == userid ||
  2099. tType == 1 ||
  2100. tType == 4,
  2101. }"
  2102. >
  2103. {{ JSON.parse(w.score).wScore }}分
  2104. </div>
  2105. <div
  2106. class="answerScore"
  2107. @click.stop="openScore(w)"
  2108. v-else-if="courseDetail.userid == userid"
  2109. :class="{
  2110. rightW:
  2111. w.userid == userid ||
  2112. tType == 1 ||
  2113. tType == 4,
  2114. }"
  2115. >
  2116. 评分
  2117. </div>
  2118. <img
  2119. class="deleteImg"
  2120. src="../assets/deleteworks.png"
  2121. v-if="
  2122. w.userid == userid || tType == 1 || tType == 4
  2123. "
  2124. @click.stop="deleteWorks(w.wid)"
  2125. alt
  2126. />
  2127. </div>
  2128. <div class="comment">
  2129. <div class="worksName">
  2130. <div>{{ w.sName }}</div>
  2131. </div>
  2132. </div>
  2133. </div>
  2134. </div>
  2135. </div>
  2136. </div>
  2137. <div
  2138. v-if="
  2139. tType &&
  2140. tType == 2 &&
  2141. !sIsOpen &&
  2142. tool.tool.indexOf(1) != -1
  2143. "
  2144. class="worksBox"
  2145. >
  2146. <div
  2147. class="zuoyeYulan"
  2148. v-if="workStudent[toolIndex].length > 0"
  2149. >
  2150. <span class="worksTitle">作业预览</span>
  2151. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2152. </div>
  2153. <div
  2154. class="worksDetailBox"
  2155. v-if="workStudent[toolIndex].length > 0"
  2156. >
  2157. <div
  2158. class="works"
  2159. style="
  2160. width: 200px;
  2161. height: 140px;
  2162. margin: 10px 10px 10px 0;
  2163. box-shadow: 0 0 6px 1px #dfdada;
  2164. "
  2165. v-for="(w, wIndex) in workStudent[toolIndex]"
  2166. :key="wIndex"
  2167. >
  2168. <div class="workImg">
  2169. <img
  2170. :src="w.works"
  2171. @click="previewImg(w.works,w)"
  2172. alt
  2173. />
  2174. <div
  2175. class="answerScore"
  2176. v-if="w.score"
  2177. @click.stop="openScore(w)"
  2178. :class="{
  2179. rightW:
  2180. w.userid == userid || tType == 1 || tType == 4,
  2181. }"
  2182. >
  2183. {{ JSON.parse(w.score).wScore }}分
  2184. </div>
  2185. <div
  2186. class="answerScore"
  2187. @click.stop="openScore(w)"
  2188. v-else-if="courseDetail.userid == userid"
  2189. :class="{
  2190. rightW:
  2191. w.userid == userid || tType == 1 || tType == 4,
  2192. }"
  2193. >
  2194. 评分
  2195. </div>
  2196. <img
  2197. class="deleteImg"
  2198. src="../assets/deleteworks.png"
  2199. v-if="
  2200. w.userid == userid || tType == 1 || tType == 4
  2201. "
  2202. @click.stop="deleteWorks(w.wid)"
  2203. alt
  2204. />
  2205. </div>
  2206. <div class="worksName">
  2207. <div>{{ w.sName }}</div>
  2208. </div>
  2209. </div>
  2210. </div>
  2211. </div>
  2212. <div
  2213. v-if="
  2214. tType &&
  2215. tType == 2 &&
  2216. !sIsOpen &&
  2217. tool.tool.indexOf(3) != -1
  2218. "
  2219. class="worksBox"
  2220. >
  2221. <div
  2222. class="zuoyeYulan"
  2223. v-if="workStudent[toolIndex].length > 0"
  2224. >
  2225. <span class="worksTitle">作业预览</span>
  2226. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2227. </div>
  2228. <div
  2229. class="worksDetailBox"
  2230. v-if="workStudent[toolIndex].length > 0"
  2231. >
  2232. <div
  2233. class="works"
  2234. style="
  2235. width: 200px;
  2236. height: 140px;
  2237. margin: 10px 10px 10px 0;
  2238. box-shadow: 0 0 6px 1px #dfdada;
  2239. "
  2240. v-for="(w, wIndex) in workStudent[toolIndex]"
  2241. :key="wIndex"
  2242. >
  2243. <div class="workImg">
  2244. <img
  2245. :src="w.works"
  2246. @click="previewImg(w.works,w)"
  2247. alt
  2248. />
  2249. <div
  2250. class="answerScore"
  2251. v-if="w.score"
  2252. @click.stop="openScore(w)"
  2253. :class="{
  2254. rightW:
  2255. w.userid == userid || tType == 1 || tType == 4,
  2256. }"
  2257. >
  2258. {{ JSON.parse(w.score).wScore }}分
  2259. </div>
  2260. <div
  2261. class="answerScore"
  2262. @click.stop="openScore(w)"
  2263. v-else-if="courseDetail.userid == userid"
  2264. :class="{
  2265. rightW:
  2266. w.userid == userid || tType == 1 || tType == 4,
  2267. }"
  2268. >
  2269. 评分
  2270. </div>
  2271. <img
  2272. class="deleteImg"
  2273. src="../assets/deleteworks.png"
  2274. v-if="
  2275. w.userid == userid || tType == 1 || tType == 4
  2276. "
  2277. @click.stop="deleteWorks(w.wid)"
  2278. alt
  2279. />
  2280. </div>
  2281. <div class="worksName">
  2282. <div>{{ w.sName }}</div>
  2283. </div>
  2284. </div>
  2285. </div>
  2286. </div>
  2287. <div
  2288. v-if="
  2289. tType &&
  2290. tType == 2 &&
  2291. !sIsOpen &&
  2292. tool.tool.indexOf(6) != -1
  2293. "
  2294. class="worksBox"
  2295. >
  2296. <div
  2297. class="zuoyeYulan"
  2298. v-if="workStudent[toolIndex].length > 0"
  2299. >
  2300. <span class="worksTitle">作业预览</span>
  2301. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2302. </div>
  2303. <div
  2304. class="worksDetailBox"
  2305. v-if="workStudent[toolIndex].length > 0"
  2306. >
  2307. <div
  2308. class="works"
  2309. style="
  2310. width: 200px;
  2311. height: 140px;
  2312. margin: 10px 10px 10px 0;
  2313. box-shadow: 0 0 6px 1px #dfdada;
  2314. "
  2315. v-for="(w, wIndex) in workStudent[toolIndex]"
  2316. :key="wIndex"
  2317. >
  2318. <div class="workImg">
  2319. <img
  2320. :src="w.works"
  2321. @click="previewImg(w.works,w)"
  2322. alt
  2323. />
  2324. <div
  2325. class="answerScore"
  2326. v-if="w.score"
  2327. @click.stop="openScore(w)"
  2328. :class="{
  2329. rightW:
  2330. w.userid == userid || tType == 1 || tType == 4,
  2331. }"
  2332. >
  2333. {{ JSON.parse(w.score).wScore }}分
  2334. </div>
  2335. <div
  2336. class="answerScore"
  2337. @click.stop="openScore(w)"
  2338. v-else-if="courseDetail.userid == userid"
  2339. :class="{
  2340. rightW:
  2341. w.userid == userid || tType == 1 || tType == 4,
  2342. }"
  2343. >
  2344. 评分
  2345. </div>
  2346. <img
  2347. class="deleteImg"
  2348. src="../assets/deleteworks.png"
  2349. v-if="
  2350. w.userid == userid || tType == 1 || tType == 4
  2351. "
  2352. @click.stop="deleteWorks(w.wid)"
  2353. alt
  2354. />
  2355. </div>
  2356. <div class="worksName">
  2357. <div>{{ w.sName }}</div>
  2358. </div>
  2359. </div>
  2360. </div>
  2361. </div>
  2362. <div
  2363. v-if="
  2364. tType &&
  2365. tType == 2 &&
  2366. !sIsOpen &&
  2367. tool.tool.indexOf(7) != -1
  2368. "
  2369. class="worksBox"
  2370. >
  2371. <div
  2372. class="zuoyeYulan"
  2373. v-if="workStudent[toolIndex].length > 0"
  2374. >
  2375. <span class="worksTitle">作业预览</span>
  2376. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2377. </div>
  2378. <div
  2379. class="worksDetailBox"
  2380. v-if="workStudent[toolIndex].length > 0"
  2381. >
  2382. <div
  2383. class="works"
  2384. style="
  2385. width: 200px;
  2386. height: 140px;
  2387. margin: 10px 10px 10px 0;
  2388. box-shadow: 0 0 6px 1px #dfdada;
  2389. "
  2390. v-for="(w, wIndex) in workStudent[toolIndex]"
  2391. :key="wIndex"
  2392. >
  2393. <div class="workImg">
  2394. <img
  2395. :src="w.works"
  2396. @click="previewImg(w.works,w)"
  2397. alt
  2398. />
  2399. <div
  2400. class="answerScore"
  2401. v-if="w.score"
  2402. @click.stop="openScore(w)"
  2403. :class="{
  2404. rightW:
  2405. w.userid == userid || tType == 1 || tType == 4,
  2406. }"
  2407. >
  2408. {{ JSON.parse(w.score).wScore }}分
  2409. </div>
  2410. <div
  2411. class="answerScore"
  2412. @click.stop="openScore(w)"
  2413. v-else-if="courseDetail.userid == userid"
  2414. :class="{
  2415. rightW:
  2416. w.userid == userid || tType == 1 || tType == 4,
  2417. }"
  2418. >
  2419. 评分
  2420. </div>
  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 &&
  2441. !sIsOpen &&
  2442. tool.tool.indexOf(26) != -1
  2443. "
  2444. class="worksBox"
  2445. >
  2446. <div
  2447. class="zuoyeYulan"
  2448. v-if="workStudent[toolIndex].length > 0"
  2449. >
  2450. <span class="worksTitle">作业预览</span>
  2451. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2452. </div>
  2453. <div
  2454. class="worksDetailBox"
  2455. v-if="workStudent[toolIndex].length > 0"
  2456. >
  2457. <div
  2458. class="works"
  2459. style="
  2460. width: 200px;
  2461. height: 140px;
  2462. margin: 10px 10px 10px 0;
  2463. box-shadow: 0 0 6px 1px #dfdada;
  2464. "
  2465. v-for="(w, wIndex) in workStudent[toolIndex]"
  2466. :key="wIndex"
  2467. >
  2468. <div class="workImg">
  2469. <img
  2470. :src="w.works"
  2471. @click="previewImg(w.works,w)"
  2472. alt
  2473. />
  2474. <img
  2475. class="deleteImg"
  2476. src="../assets/deleteworks.png"
  2477. v-if="
  2478. w.userid == userid || tType == 1 || tType == 4
  2479. "
  2480. @click.stop="deleteWorks(w.wid)"
  2481. alt
  2482. />
  2483. </div>
  2484. <div class="worksName">
  2485. <div>{{ w.sName }}</div>
  2486. </div>
  2487. </div>
  2488. </div>
  2489. </div>
  2490. <div
  2491. v-if="
  2492. tType &&
  2493. ((tType == 2 && sIsOpen == true) ||
  2494. tType == 1 ||
  2495. tType == 4) &&
  2496. tool.tool.indexOf(16) != -1
  2497. "
  2498. class="worksBox"
  2499. >
  2500. <div
  2501. class="zuoyeYulan"
  2502. v-if="
  2503. (worksStudent.length &&
  2504. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2505. "
  2506. >
  2507. <div class="worksTop">
  2508. <div>作业预览</div>
  2509. <div
  2510. class="corOpen"
  2511. @click="contract(toolIndex)"
  2512. v-if="
  2513. (isCloseList[toolIndex].isCloseBoolean) &&
  2514. isCloseList[toolIndex].isClose == 0
  2515. "
  2516. >
  2517. 折叠
  2518. </div>
  2519. <div
  2520. class="corOpen"
  2521. @click="contract(toolIndex)"
  2522. v-if="isCloseList[toolIndex].isClose == 1"
  2523. >
  2524. 展开
  2525. </div>
  2526. </div>
  2527. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2528. </div>
  2529. <div
  2530. class="group_workBox"
  2531. v-for="(g, gindex) in courseGroup.group"
  2532. :key="gindex"
  2533. >
  2534. <div class="group_box">
  2535. <div class="group_title">
  2536. <el-tooltip
  2537. class="item"
  2538. effect="light"
  2539. :content="g.name"
  2540. placement="top"
  2541. >
  2542. <div class="group_name">{{ g.name }}</div>
  2543. </el-tooltip>
  2544. </div>
  2545. <div
  2546. class="group_work"
  2547. v-if="
  2548. g.works &&
  2549. g.works.length &&
  2550. g.works[toolIndex].length
  2551. "
  2552. >
  2553. <div
  2554. class="works"
  2555. style="
  2556. width: 200px;
  2557. height: 140px;
  2558. margin: 10px 10px 10px 0;
  2559. border-radius: 15px;
  2560. box-shadow: 0 0 6px 1px #dfdada;
  2561. "
  2562. v-for="(w, wIndex) in g.works[toolIndex]"
  2563. :key="wIndex"
  2564. :class="w.type == 1 ? 'isTypeOne' : ''"
  2565. >
  2566. <div class="workImg" v-if="w.type == 0">
  2567. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2568. <img
  2569. :src="w.works"
  2570. @click="previewImg(w.works,w)"
  2571. alt
  2572. />
  2573. <div
  2574. class="answerScore"
  2575. v-if="w.score"
  2576. @click.stop="openScore(w)"
  2577. :class="{
  2578. rightW:
  2579. w.userid == userid ||
  2580. tType == 1 ||
  2581. tType == 4 ||
  2582. w.ateacher == userid,
  2583. }"
  2584. >
  2585. {{ JSON.parse(w.score).wScore }}分
  2586. </div>
  2587. <div
  2588. class="answerScore"
  2589. @click.stop="openScore(w)"
  2590. v-else-if="courseDetail.userid == userid"
  2591. :class="{
  2592. rightW:
  2593. w.userid == userid ||
  2594. tType == 1 ||
  2595. tType == 4 ||
  2596. w.ateacher == userid,
  2597. }"
  2598. >
  2599. 评分
  2600. </div>
  2601. <img
  2602. class="deleteImg"
  2603. src="../assets/deleteworks.png"
  2604. v-if="
  2605. w.userid == userid || tType == 1 || tType == 4
  2606. "
  2607. @click.stop="deleteWorks(w.wid)"
  2608. alt
  2609. />
  2610. </div>
  2611. <div class="workImg" v-if="w.type == 1">
  2612. <img :src="word" @click="openFile(w.works,w)" alt />
  2613. <!-- @click="openFile(w.works)" -->
  2614. <div
  2615. class="answerScore"
  2616. v-if="w.score"
  2617. @click.stop="openScore(w)"
  2618. :class="{
  2619. rightW:
  2620. w.userid == userid ||
  2621. tType == 1 ||
  2622. tType == 4 ||
  2623. w.ateacher == userid,
  2624. }"
  2625. >
  2626. {{ JSON.parse(w.score).wScore }}分
  2627. </div>
  2628. <div
  2629. class="answerScore"
  2630. @click.stop="openScore(w)"
  2631. v-else-if="courseDetail.userid == userid"
  2632. :class="{
  2633. rightW:
  2634. w.userid == userid ||
  2635. tType == 1 ||
  2636. tType == 4 ||
  2637. w.ateacher == userid,
  2638. }"
  2639. >
  2640. 评分
  2641. </div>
  2642. <img
  2643. class="deleteImg"
  2644. src="../assets/deleteworks.png"
  2645. v-if="
  2646. w.userid == userid || tType == 1 || tType == 4
  2647. "
  2648. @click.stop="deleteWorks(w.wid)"
  2649. alt
  2650. />
  2651. </div>
  2652. <div class="workImg" v-if="w.type == 3">
  2653. <img
  2654. style="cursor: pointer"
  2655. :src="video"
  2656. @click="openVideo(w)"
  2657. alt
  2658. />
  2659. <!-- @click="openVideo(w.works)" -->
  2660. <div
  2661. class="answerScore"
  2662. v-if="w.score"
  2663. @click.stop="openScore(w)"
  2664. :class="{
  2665. rightW:
  2666. w.userid == userid ||
  2667. tType == 1 ||
  2668. tType == 4 ||
  2669. w.ateacher == userid,
  2670. }"
  2671. >
  2672. {{ JSON.parse(w.score).wScore }}分
  2673. </div>
  2674. <div
  2675. class="answerScore"
  2676. @click.stop="openScore(w)"
  2677. v-else-if="courseDetail.userid == userid"
  2678. :class="{
  2679. rightW:
  2680. w.userid == userid ||
  2681. tType == 1 ||
  2682. tType == 4 ||
  2683. w.ateacher == userid,
  2684. }"
  2685. >
  2686. 评分
  2687. </div>
  2688. <img
  2689. class="deleteImg"
  2690. src="../assets/deleteworks.png"
  2691. v-if="
  2692. w.userid == userid || tType == 1 || tType == 4
  2693. "
  2694. @click.stop="deleteWorks(w.wid)"
  2695. alt
  2696. />
  2697. </div>
  2698. <div class="workImg" v-if="w.type == 12">
  2699. <img
  2700. style="cursor: pointer"
  2701. :src="word2"
  2702. @click="downloadFile(w.works)"
  2703. alt
  2704. />
  2705. <!-- @click="openVideo(w.works)" -->
  2706. <div
  2707. class="answerScore"
  2708. v-if="w.score"
  2709. @click.stop="openScore(w)"
  2710. :class="{
  2711. rightW:
  2712. w.userid == userid ||
  2713. tType == 1 ||
  2714. tType == 4 ||
  2715. w.ateacher == userid,
  2716. }"
  2717. >
  2718. {{ JSON.parse(w.score).wScore }}分
  2719. </div>
  2720. <div
  2721. class="answerScore"
  2722. @click.stop="openScore(w)"
  2723. v-else-if="courseDetail.userid == userid"
  2724. :class="{
  2725. rightW:
  2726. w.userid == userid ||
  2727. tType == 1 ||
  2728. tType == 4 ||
  2729. w.ateacher == userid,
  2730. }"
  2731. >
  2732. 评分
  2733. </div>
  2734. <img
  2735. class="deleteImg"
  2736. src="../assets/deleteworks.png"
  2737. v-if="
  2738. w.userid == userid || tType == 1 || tType == 4
  2739. "
  2740. @click.stop="deleteWorks(w.wid)"
  2741. alt
  2742. />
  2743. </div>
  2744. <div class="comment" style="min-width: 200px">
  2745. <div class="worksName">
  2746. <div>{{ w.sName }}</div>
  2747. </div>
  2748. <div class="commentList">
  2749. <div class="commentList">
  2750. <div
  2751. class="commentImg"
  2752. @click="
  2753. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2754. "
  2755. >
  2756. <img
  2757. :src="w.isLikes == true ? likes : noLikes"
  2758. alt=""
  2759. />
  2760. </div>
  2761. <div>{{ w.likesCount }}</div>
  2762. </div>
  2763. <div
  2764. class="commentList"
  2765. style="margin-right: 15px"
  2766. >
  2767. <div
  2768. class="commentImg"
  2769. @click="
  2770. commentOther(
  2771. w,
  2772. toolIndex,
  2773. wIndex,
  2774. null,
  2775. g.id
  2776. )
  2777. "
  2778. >
  2779. <img
  2780. src="../assets/icon/comment/comment.png"
  2781. alt=""
  2782. />
  2783. </div>
  2784. <div>{{ w.commentCount }}</div>
  2785. </div>
  2786. </div>
  2787. </div>
  2788. </div>
  2789. </div>
  2790. <div class="group_work" v-else>暂无提交作业</div>
  2791. </div>
  2792. </div>
  2793. <div
  2794. :id="'tool-' + toolIndex"
  2795. :style="{
  2796. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2797. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2798. }"
  2799. class="worksDetailBox"
  2800. v-if="
  2801. worksStudent.length &&
  2802. worksStudent[toolIndex].length > 0
  2803. "
  2804. >
  2805. <div
  2806. class="works"
  2807. style="
  2808. width: 200px;
  2809. height: 140px;
  2810. margin: 10px 10px 10px 0;
  2811. border-radius: 15px;
  2812. box-shadow: 0 0 6px 1px #dfdada;
  2813. "
  2814. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2815. :key="wIndex"
  2816. :class="w.type == 1 ? 'isTypeOne' : ''"
  2817. >
  2818. <div class="workImg" v-if="w.type == 0">
  2819. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2820. <img
  2821. :src="w.works"
  2822. @click="previewImg(w.works,w)"
  2823. alt
  2824. />
  2825. <div
  2826. class="answerScore"
  2827. v-if="w.score"
  2828. @click.stop="openScore(w)"
  2829. :class="{
  2830. rightW:
  2831. w.userid == userid ||
  2832. tType == 1 ||
  2833. tType == 4 ||
  2834. w.ateacher == userid,
  2835. }"
  2836. >
  2837. {{ JSON.parse(w.score).wScore }}分
  2838. </div>
  2839. <div
  2840. class="answerScore"
  2841. @click.stop="openScore(w)"
  2842. v-else-if="courseDetail.userid == userid"
  2843. :class="{
  2844. rightW:
  2845. w.userid == userid ||
  2846. tType == 1 ||
  2847. tType == 4 ||
  2848. w.ateacher == userid,
  2849. }"
  2850. >
  2851. 评分
  2852. </div>
  2853. <img
  2854. class="deleteImg"
  2855. src="../assets/deleteworks.png"
  2856. v-if="
  2857. w.userid == userid || tType == 1 || tType == 4
  2858. "
  2859. @click.stop="deleteWorks(w.wid)"
  2860. alt
  2861. />
  2862. </div>
  2863. <div class="workImg" v-if="w.type == 1">
  2864. <img :src="word" @click="openFile(w.works,w)" alt />
  2865. <!-- @click="openFile(w.works)" -->
  2866. <div
  2867. class="answerScore"
  2868. v-if="w.score"
  2869. @click.stop="openScore(w)"
  2870. :class="{
  2871. rightW:
  2872. w.userid == userid ||
  2873. tType == 1 ||
  2874. tType == 4 ||
  2875. w.ateacher == userid,
  2876. }"
  2877. >
  2878. {{ JSON.parse(w.score).wScore }}分
  2879. </div>
  2880. <div
  2881. class="answerScore"
  2882. @click.stop="openScore(w)"
  2883. v-else-if="courseDetail.userid == userid"
  2884. :class="{
  2885. rightW:
  2886. w.userid == userid ||
  2887. tType == 1 ||
  2888. tType == 4 ||
  2889. w.ateacher == userid,
  2890. }"
  2891. >
  2892. 评分
  2893. </div>
  2894. <img
  2895. class="deleteImg"
  2896. src="../assets/deleteworks.png"
  2897. v-if="
  2898. w.userid == userid || tType == 1 || tType == 4
  2899. "
  2900. @click.stop="deleteWorks(w.wid)"
  2901. alt
  2902. />
  2903. </div>
  2904. <div class="workImg" v-if="w.type == 3">
  2905. <img
  2906. style="cursor: pointer"
  2907. :src="video"
  2908. @click="openVideo(w)"
  2909. alt
  2910. />
  2911. <!-- @click="openVideo(w.works)" -->
  2912. <div
  2913. class="answerScore"
  2914. v-if="w.score"
  2915. @click.stop="openScore(w)"
  2916. :class="{
  2917. rightW:
  2918. w.userid == userid ||
  2919. tType == 1 ||
  2920. tType == 4 ||
  2921. w.ateacher == userid,
  2922. }"
  2923. >
  2924. {{ JSON.parse(w.score).wScore }}分
  2925. </div>
  2926. <div
  2927. class="answerScore"
  2928. @click.stop="openScore(w)"
  2929. v-else-if="courseDetail.userid == userid"
  2930. :class="{
  2931. rightW:
  2932. w.userid == userid ||
  2933. tType == 1 ||
  2934. tType == 4 ||
  2935. w.ateacher == userid,
  2936. }"
  2937. >
  2938. 评分
  2939. </div>
  2940. <img
  2941. class="deleteImg"
  2942. src="../assets/deleteworks.png"
  2943. v-if="
  2944. w.userid == userid || tType == 1 || tType == 4
  2945. "
  2946. @click.stop="deleteWorks(w.wid)"
  2947. alt
  2948. />
  2949. </div>
  2950. <div class="workImg" v-if="w.type == 12">
  2951. <img
  2952. style="cursor: pointer"
  2953. :src="word2"
  2954. @click="downloadFile(w.works)"
  2955. alt
  2956. />
  2957. <!-- @click="openVideo(w.works)" -->
  2958. <div
  2959. class="answerScore"
  2960. v-if="w.score"
  2961. @click.stop="openScore(w)"
  2962. :class="{
  2963. rightW:
  2964. w.userid == userid ||
  2965. tType == 1 ||
  2966. tType == 4 ||
  2967. w.ateacher == userid,
  2968. }"
  2969. >
  2970. {{ JSON.parse(w.score).wScore }}分
  2971. </div>
  2972. <div
  2973. class="answerScore"
  2974. @click.stop="openScore(w)"
  2975. v-else-if="courseDetail.userid == userid"
  2976. :class="{
  2977. rightW:
  2978. w.userid == userid ||
  2979. tType == 1 ||
  2980. tType == 4 ||
  2981. w.ateacher == userid,
  2982. }"
  2983. >
  2984. 评分
  2985. </div>
  2986. <img
  2987. class="deleteImg"
  2988. src="../assets/deleteworks.png"
  2989. v-if="
  2990. w.userid == userid || tType == 1 || tType == 4
  2991. "
  2992. @click.stop="deleteWorks(w.wid)"
  2993. alt
  2994. />
  2995. </div>
  2996. <div class="comment" style="min-width: 200px">
  2997. <div class="worksName">
  2998. <div>{{ w.sName }}</div>
  2999. </div>
  3000. <div class="commentList">
  3001. <div class="commentList">
  3002. <div
  3003. class="commentImg"
  3004. @click="
  3005. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3006. "
  3007. >
  3008. <img
  3009. :src="w.isLikes == true ? likes : noLikes"
  3010. alt=""
  3011. />
  3012. </div>
  3013. <div>{{ w.likesCount }}</div>
  3014. </div>
  3015. <div class="commentList" style="margin-right: 15px">
  3016. <div
  3017. class="commentImg"
  3018. @click="commentOther(w, toolIndex, wIndex)"
  3019. >
  3020. <img
  3021. src="../assets/icon/comment/comment.png"
  3022. alt=""
  3023. />
  3024. </div>
  3025. <div>{{ w.commentCount }}</div>
  3026. </div>
  3027. </div>
  3028. </div>
  3029. </div>
  3030. </div>
  3031. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3032. 未提交
  3033. </div>
  3034. <div
  3035. class="noWorksS"
  3036. v-if="noWorksS && noWorksS[toolIndex].length"
  3037. >
  3038. <div
  3039. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3040. :key="sIndex"
  3041. class="noWorksName"
  3042. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3043. >
  3044. <el-tooltip effect="dark" :content="s.student" placement="top">
  3045. <span>{{ s.student }}</span>
  3046. </el-tooltip>
  3047. </div>
  3048. </div>
  3049. </div>
  3050. <div
  3051. v-if="
  3052. tType &&
  3053. ((tType == 2 && sIsOpen == true) ||
  3054. tType == 1 ||
  3055. tType == 4) &&
  3056. tool.tool.indexOf(70) != -1
  3057. "
  3058. class="worksBox"
  3059. >
  3060. <div
  3061. class="zuoyeYulan"
  3062. v-if="
  3063. (worksStudent.length &&
  3064. worksStudent[toolIndex].length > 0)
  3065. "
  3066. >
  3067. <div class="worksTop">
  3068. <div>作业预览</div>
  3069. <div
  3070. class="corOpen"
  3071. @click="contract(toolIndex)"
  3072. v-if="
  3073. (isCloseList[toolIndex].isCloseBoolean) &&
  3074. isCloseList[toolIndex].isClose == 0
  3075. "
  3076. >
  3077. 折叠
  3078. </div>
  3079. <div
  3080. class="corOpen"
  3081. @click="contract(toolIndex)"
  3082. v-if="isCloseList[toolIndex].isClose == 1"
  3083. >
  3084. 展开
  3085. </div>
  3086. </div>
  3087. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3088. </div>
  3089. <div
  3090. :id="'tool-' + toolIndex"
  3091. :style="{
  3092. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3093. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3094. }"
  3095. class="worksDetailBox"
  3096. v-if="
  3097. worksStudent.length &&
  3098. worksStudent[toolIndex].length > 0
  3099. "
  3100. >
  3101. <div
  3102. class="works"
  3103. style="
  3104. width: 200px;
  3105. height: 140px;
  3106. margin: 10px 10px 10px 0;
  3107. border-radius: 15px;
  3108. box-shadow: 0 0 6px 1px #dfdada;
  3109. "
  3110. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3111. :key="wIndex"
  3112. :class="w.type == 1 ? 'isTypeOne' : ''"
  3113. >
  3114. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3115. <img :src="word" alt />
  3116. <img
  3117. class="deleteImg"
  3118. src="../assets/deleteworks.png"
  3119. v-if="
  3120. w.userid == userid || tType == 1 || tType == 4
  3121. "
  3122. @click.stop="deleteWorks(w.wid)"
  3123. alt
  3124. />
  3125. </div>
  3126. <div class="comment" style="min-width: 200px">
  3127. <div class="worksName">
  3128. <div>{{ w.sName }}</div>
  3129. </div>
  3130. </div>
  3131. </div>
  3132. </div>
  3133. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3134. 未提交
  3135. </div>
  3136. <div
  3137. class="noWorksS"
  3138. v-if="noWorksS && noWorksS[toolIndex].length"
  3139. >
  3140. <div
  3141. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3142. :key="sIndex"
  3143. class="noWorksName"
  3144. >
  3145. <el-tooltip effect="dark" :content="s.student" placement="top">
  3146. <span>{{ s.student }}</span>
  3147. </el-tooltip>
  3148. </div>
  3149. </div>
  3150. </div>
  3151. <div
  3152. v-if="
  3153. tType &&
  3154. tType == 2 &&
  3155. !sIsOpen &&
  3156. tool.tool.indexOf(70) != -1
  3157. "
  3158. class="worksBox"
  3159. >
  3160. <div
  3161. class="zuoyeYulan"
  3162. v-if="workStudent[toolIndex].length > 0"
  3163. >
  3164. <span class="worksTitle">作业预览</span>
  3165. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3166. </div>
  3167. <div
  3168. class="worksDetailBox"
  3169. v-if="workStudent[toolIndex].length > 0"
  3170. >
  3171. <div
  3172. class="works"
  3173. style="
  3174. width: 200px;
  3175. height: 140px;
  3176. margin: 10px 10px 10px 0;
  3177. box-shadow: 0 0 6px 1px #dfdada;
  3178. "
  3179. v-for="(w, wIndex) in workStudent[toolIndex]"
  3180. :key="wIndex"
  3181. >
  3182. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3183. <img :src="word" alt />
  3184. <img
  3185. class="deleteImg"
  3186. src="../assets/deleteworks.png"
  3187. v-if="
  3188. w.userid == userid || tType == 1 || tType == 4
  3189. "
  3190. @click.stop="deleteWorks(w.wid)"
  3191. alt
  3192. />
  3193. </div>
  3194. <div class="worksName">
  3195. <div>{{ w.sName }}</div>
  3196. </div>
  3197. </div>
  3198. </div>
  3199. </div>
  3200. <div
  3201. v-if="
  3202. tType &&
  3203. ((tType == 2 && sIsOpen == true) ||
  3204. tType == 1 ||
  3205. tType == 4) &&
  3206. tool.tool.indexOf(32) != -1
  3207. "
  3208. class="worksBox"
  3209. >
  3210. <div
  3211. class="zuoyeYulan"
  3212. v-if="
  3213. worksStudent.length &&
  3214. worksStudent[toolIndex].length > 0
  3215. "
  3216. >
  3217. <div class="worksTop">
  3218. <div>作业预览</div>
  3219. <div
  3220. class="corOpen"
  3221. @click="contract(toolIndex)"
  3222. v-if="
  3223. (isCloseList[toolIndex].isCloseBoolean) &&
  3224. isCloseList[toolIndex].isClose == 0
  3225. "
  3226. >
  3227. 折叠
  3228. </div>
  3229. <div
  3230. class="corOpen"
  3231. @click="contract(toolIndex)"
  3232. v-if="isCloseList[toolIndex].isClose == 1"
  3233. >
  3234. 展开
  3235. </div>
  3236. </div>
  3237. </div>
  3238. <div
  3239. :id="'tool-' + toolIndex"
  3240. class="worksDetailBox"
  3241. :style="{
  3242. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3243. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3244. }"
  3245. v-if="
  3246. worksStudent.length &&
  3247. worksStudent[toolIndex].length > 0
  3248. "
  3249. >
  3250. <div
  3251. class="works"
  3252. style="
  3253. width: 200px;
  3254. height: 140px;
  3255. margin: 10px 10px 10px 0;
  3256. border-radius: 15px;
  3257. box-shadow: 0 0 6px 1px #dfdada;
  3258. "
  3259. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3260. :key="wIndex"
  3261. :class="w.type == 1 ? 'isTypeOne' : ''"
  3262. >
  3263. <div class="workImg">
  3264. <img
  3265. :src="word2"
  3266. @click="downloadFile(w.works)"
  3267. alt
  3268. />
  3269. <div
  3270. class="answerScore"
  3271. v-if="w.score"
  3272. @click.stop="openScore(w)"
  3273. :class="{
  3274. rightW:
  3275. w.userid == userid ||
  3276. tType == 1 ||
  3277. tType == 4 ||
  3278. w.ateacher == userid,
  3279. }"
  3280. >
  3281. {{ JSON.parse(w.score).wScore }}分
  3282. </div>
  3283. <div
  3284. class="answerScore"
  3285. @click.stop="openScore(w)"
  3286. v-else-if="courseDetail.userid == userid"
  3287. :class="{
  3288. rightW:
  3289. w.userid == userid ||
  3290. tType == 1 ||
  3291. tType == 4 ||
  3292. w.ateacher == userid,
  3293. }"
  3294. >
  3295. 评分
  3296. </div>
  3297. <img
  3298. class="deleteImg"
  3299. src="../assets/deleteworks.png"
  3300. v-if="
  3301. w.userid == userid || tType == 1 || tType == 4
  3302. "
  3303. @click.stop="deleteWorks(w.wid)"
  3304. alt
  3305. />
  3306. </div>
  3307. <div class="comment" style="min-width: 200px">
  3308. <div class="worksName">
  3309. <div>{{ w.sName }}</div>
  3310. </div>
  3311. <div class="commentList">
  3312. <div class="commentList">
  3313. <div
  3314. class="commentImg"
  3315. @click="
  3316. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3317. "
  3318. >
  3319. <img
  3320. :src="w.isLikes == true ? likes : noLikes"
  3321. alt=""
  3322. />
  3323. </div>
  3324. <div>{{ w.likesCount }}</div>
  3325. </div>
  3326. <div class="commentList" style="margin-right: 15px">
  3327. <div
  3328. class="commentImg"
  3329. @click="commentOther(w, toolIndex, wIndex)"
  3330. >
  3331. <img
  3332. src="../assets/icon/comment/comment.png"
  3333. alt=""
  3334. />
  3335. </div>
  3336. <div>{{ w.commentCount }}</div>
  3337. </div>
  3338. </div>
  3339. </div>
  3340. </div>
  3341. </div>
  3342. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3343. 未提交
  3344. </div>
  3345. <div
  3346. class="noWorksS"
  3347. v-if="noWorksS && noWorksS[toolIndex].length"
  3348. >
  3349. <div
  3350. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3351. :key="sIndex"
  3352. class="noWorksName"
  3353. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3354. >
  3355. <el-tooltip effect="dark" :content="s.student" placement="top">
  3356. <span>{{ s.student }}</span>
  3357. </el-tooltip>
  3358. </div>
  3359. </div>
  3360. </div>
  3361. <div
  3362. v-if="
  3363. tType &&
  3364. ((tType == 2 && sIsOpen == true) ||
  3365. tType == 1 ||
  3366. tType == 4) &&
  3367. tool.tool.indexOf(57) != -1
  3368. "
  3369. class="worksBox"
  3370. >
  3371. <div
  3372. class="zuoyeYulan"
  3373. v-if="
  3374. worksStudent.length &&
  3375. worksStudent[toolIndex].length > 0
  3376. "
  3377. >
  3378. <div class="worksTop">
  3379. <div>作业预览</div>
  3380. <div
  3381. class="corOpen"
  3382. @click="contract(toolIndex)"
  3383. v-if="
  3384. (isCloseList[toolIndex].isCloseBoolean) &&
  3385. isCloseList[toolIndex].isClose == 0
  3386. "
  3387. >
  3388. 折叠
  3389. </div>
  3390. <div
  3391. class="corOpen"
  3392. @click="contract(toolIndex)"
  3393. v-if="isCloseList[toolIndex].isClose == 1"
  3394. >
  3395. 展开
  3396. </div>
  3397. </div>
  3398. </div>
  3399. <div
  3400. :id="'tool-' + toolIndex"
  3401. class="worksDetailBox"
  3402. :style="{
  3403. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3404. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3405. }"
  3406. v-if="
  3407. worksStudent.length &&
  3408. worksStudent[toolIndex].length > 0
  3409. "
  3410. >
  3411. <div
  3412. class="works"
  3413. style="
  3414. width: 200px;
  3415. height: 140px;
  3416. margin: 10px 10px 10px 0;
  3417. border-radius: 15px;
  3418. box-shadow: 0 0 6px 1px #dfdada;
  3419. "
  3420. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3421. :key="wIndex"
  3422. :class="w.type == 1 ? 'isTypeOne' : ''"
  3423. >
  3424. <div class="workImg">
  3425. <img
  3426. :src="word2"
  3427. @click="downloadFile(w.works)"
  3428. v-if="w.type == 12"
  3429. alt
  3430. />
  3431. <img
  3432. :src="word2"
  3433. @click="
  3434. openCocoPi(57, toolIndex, w.userid, w.sName)
  3435. "
  3436. v-else-if="w.type == 15"
  3437. alt
  3438. />
  3439. <div
  3440. class="answerScore"
  3441. v-if="w.score"
  3442. @click.stop="openScore(w)"
  3443. :class="{
  3444. rightW:
  3445. w.userid == userid ||
  3446. tType == 1 ||
  3447. tType == 4 ||
  3448. w.ateacher == userid,
  3449. }"
  3450. >
  3451. {{ JSON.parse(w.score).wScore }}分
  3452. </div>
  3453. <div
  3454. class="answerScore"
  3455. @click.stop="openScore(w)"
  3456. v-else-if="courseDetail.userid == userid"
  3457. :class="{
  3458. rightW:
  3459. w.userid == userid ||
  3460. tType == 1 ||
  3461. tType == 4 ||
  3462. w.ateacher == userid,
  3463. }"
  3464. >
  3465. 评分
  3466. </div>
  3467. <img
  3468. class="deleteImg"
  3469. src="../assets/deleteworks.png"
  3470. v-if="
  3471. w.userid == userid || tType == 1 || tType == 4
  3472. "
  3473. @click.stop="deleteWorks(w.wid)"
  3474. alt
  3475. />
  3476. </div>
  3477. <div class="comment" style="min-width: 200px">
  3478. <div class="worksName">
  3479. <div>{{ w.sName }}</div>
  3480. </div>
  3481. <div class="commentList">
  3482. <div class="commentList">
  3483. <div
  3484. class="commentImg"
  3485. @click="
  3486. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3487. "
  3488. >
  3489. <img
  3490. :src="w.isLikes == true ? likes : noLikes"
  3491. alt=""
  3492. />
  3493. </div>
  3494. <div>{{ w.likesCount }}</div>
  3495. </div>
  3496. <div class="commentList" style="margin-right: 15px">
  3497. <div
  3498. class="commentImg"
  3499. @click="commentOther(w, toolIndex, wIndex)"
  3500. >
  3501. <img
  3502. src="../assets/icon/comment/comment.png"
  3503. alt=""
  3504. />
  3505. </div>
  3506. <div>{{ w.commentCount }}</div>
  3507. </div>
  3508. </div>
  3509. </div>
  3510. </div>
  3511. </div>
  3512. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3513. 未提交
  3514. </div>
  3515. <div
  3516. class="noWorksS"
  3517. v-if="noWorksS && noWorksS[toolIndex].length"
  3518. >
  3519. <div
  3520. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3521. :key="sIndex"
  3522. class="noWorksName"
  3523. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3524. >
  3525. <el-tooltip effect="dark" :content="s.student" placement="top">
  3526. <span>{{ s.student }}</span>
  3527. </el-tooltip>
  3528. </div>
  3529. </div>
  3530. </div>
  3531. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3532. <div
  3533. class="zuoyeYulan"
  3534. v-if="
  3535. worksStudent.length &&
  3536. worksStudent[toolIndex].length > 0
  3537. "
  3538. >
  3539. <span class="worksTitle">作业预览</span>
  3540. <div
  3541. class="corOpen"
  3542. @click="contract(toolIndex)"
  3543. v-if="
  3544. (isCloseList[toolIndex].isCloseBoolean) &&
  3545. isCloseList[toolIndex].isClose == 0
  3546. "
  3547. >
  3548. 折叠
  3549. </div>
  3550. <div
  3551. class="corOpen"
  3552. @click="contract(toolIndex)"
  3553. v-if="isCloseList[toolIndex].isClose == 1"
  3554. >
  3555. 展开
  3556. </div>
  3557. </div>
  3558. <div
  3559. :id="'tool-' + toolIndex"
  3560. :style="{
  3561. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3562. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3563. }"
  3564. class="worksDetailBox"
  3565. v-if="
  3566. worksStudent.length &&
  3567. worksStudent[toolIndex].length > 0
  3568. "
  3569. >
  3570. <div
  3571. class="works"
  3572. style="
  3573. width: 200px;
  3574. height: 140px;
  3575. margin: 10px 10px 10px 0;
  3576. border-radius: 15px;
  3577. box-shadow: 0 0 6px 1px #dfdada;
  3578. "
  3579. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3580. :key="wIndex"
  3581. :class="w.type == 1 ? 'isTypeOne' : ''"
  3582. >
  3583. <div class="workImg" v-if="w.type == 0">
  3584. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3585. <img
  3586. :src="w.works"
  3587. @click="previewImg(w.works,w)"
  3588. alt
  3589. />
  3590. <div
  3591. class="answerScore"
  3592. v-if="w.score"
  3593. @click.stop="openScore(w)"
  3594. :class="{
  3595. rightW:
  3596. w.userid == userid ||
  3597. tType == 1 ||
  3598. tType == 4 ||
  3599. w.ateacher == userid,
  3600. }"
  3601. >
  3602. {{ JSON.parse(w.score).wScore }}分
  3603. </div>
  3604. <div
  3605. class="answerScore"
  3606. @click.stop="openScore(w)"
  3607. v-else-if="courseDetail.userid == userid"
  3608. :class="{
  3609. rightW:
  3610. w.userid == userid ||
  3611. tType == 1 ||
  3612. tType == 4 ||
  3613. w.ateacher == userid,
  3614. }"
  3615. >
  3616. 评分
  3617. </div>
  3618. <img
  3619. class="deleteImg"
  3620. src="../assets/deleteworks.png"
  3621. v-if="
  3622. w.userid == userid || tType == 1 || tType == 4
  3623. "
  3624. @click.stop="deleteWorks(w.wid)"
  3625. alt
  3626. />
  3627. </div>
  3628. <div
  3629. class="workImg"
  3630. style="cursor: pointer"
  3631. v-if="w.type == 1"
  3632. >
  3633. <img :src="word" @click="openFile(w.works,w)" alt />
  3634. <!-- @click="openFile(w.works)" -->
  3635. <div
  3636. class="answerScore"
  3637. v-if="w.score"
  3638. @click.stop="openScore(w)"
  3639. :class="{
  3640. rightW:
  3641. w.userid == userid ||
  3642. tType == 1 ||
  3643. tType == 4 ||
  3644. w.ateacher == userid,
  3645. }"
  3646. >
  3647. {{ JSON.parse(w.score).wScore }}分
  3648. </div>
  3649. <div
  3650. class="answerScore"
  3651. @click.stop="openScore(w)"
  3652. v-else-if="courseDetail.userid == userid"
  3653. :class="{
  3654. rightW:
  3655. w.userid == userid ||
  3656. tType == 1 ||
  3657. tType == 4 ||
  3658. w.ateacher == userid,
  3659. }"
  3660. >
  3661. 评分
  3662. </div>
  3663. <img
  3664. class="deleteImg"
  3665. src="../assets/deleteworks.png"
  3666. v-if="
  3667. w.userid == userid || tType == 1 || tType == 4
  3668. "
  3669. @click.stop="deleteWorks(w.wid)"
  3670. alt
  3671. />
  3672. </div>
  3673. <div class="workImg" v-if="w.type == 3">
  3674. <img
  3675. style="cursor: pointer"
  3676. :src="video"
  3677. @click="openVideo(w)"
  3678. alt
  3679. />
  3680. <!-- @click="openVideo(w.works)" -->
  3681. <div
  3682. class="answerScore"
  3683. v-if="w.score"
  3684. @click.stop="openScore(w)"
  3685. :class="{
  3686. rightW:
  3687. w.userid == userid ||
  3688. tType == 1 ||
  3689. tType == 4 ||
  3690. w.ateacher == userid,
  3691. }"
  3692. >
  3693. {{ JSON.parse(w.score).wScore }}分
  3694. </div>
  3695. <div
  3696. class="answerScore"
  3697. @click.stop="openScore(w)"
  3698. v-else-if="courseDetail.userid == userid"
  3699. :class="{
  3700. rightW:
  3701. w.userid == userid ||
  3702. tType == 1 ||
  3703. tType == 4 ||
  3704. w.ateacher == userid,
  3705. }"
  3706. >
  3707. 评分
  3708. </div>
  3709. <img
  3710. class="deleteImg"
  3711. src="../assets/deleteworks.png"
  3712. v-if="
  3713. w.userid == userid || tType == 1 || tType == 4
  3714. "
  3715. @click.stop="deleteWorks(w.wid)"
  3716. alt
  3717. />
  3718. </div>
  3719. <div class="comment" style="min-width: 200px">
  3720. <div class="worksName">
  3721. <div
  3722. style="cursor: pointer"
  3723. @click="
  3724. openSname(w.sName, w.wid, toolIndex, w.userid)
  3725. "
  3726. >
  3727. {{ w.sName }}
  3728. </div>
  3729. </div>
  3730. <div class="commentList">
  3731. <div class="commentList">
  3732. <div
  3733. class="commentImg"
  3734. @click="
  3735. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3736. "
  3737. >
  3738. <img
  3739. :src="w.isLikes == true ? likes : noLikes"
  3740. alt=""
  3741. />
  3742. </div>
  3743. <div>{{ w.likesCount }}</div>
  3744. </div>
  3745. <div class="commentList" style="margin-right: 15px">
  3746. <div
  3747. class="commentImg"
  3748. @click="commentOther(w, toolIndex, wIndex)"
  3749. >
  3750. <img
  3751. src="../assets/icon/comment/comment.png"
  3752. alt=""
  3753. />
  3754. </div>
  3755. <div>{{ w.commentCount }}</div>
  3756. </div>
  3757. </div>
  3758. </div>
  3759. </div>
  3760. </div>
  3761. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3762. 未提交
  3763. </div>
  3764. <div
  3765. class="noWorksS"
  3766. v-if="noWorksS && noWorksS[toolIndex].length"
  3767. >
  3768. <div
  3769. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3770. :key="sIndex"
  3771. class="noWorksName"
  3772. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3773. >
  3774. <el-tooltip effect="dark" :content="s.student" placement="top">
  3775. <span>{{ s.student }}</span>
  3776. </el-tooltip>
  3777. </div>
  3778. </div>
  3779. </div>
  3780. <div
  3781. v-if="
  3782. tType &&
  3783. ((tType == 2 && sIsOpen == true) ||
  3784. tType == 1 ||
  3785. tType == 4) &&
  3786. tool.tool.indexOf(4) != -1 &&
  3787. (tool.askJson[0].answer ||
  3788. tool.askJson[0].answer === 0) &&
  3789. checkJson[toolIndex].length
  3790. "
  3791. class="xuan_right_box"
  3792. >
  3793. <div
  3794. class="tool_right_box"
  3795. v-for="(item, index) in tool.askJson"
  3796. :key="index"
  3797. >
  3798. <div style="width: calc(100% - 30px);">
  3799. <el-tooltip
  3800. effect="light"
  3801. :content="index + 1 + '、' + item.askstitle"
  3802. placement="top"
  3803. popper-class="text_tooltip"
  3804. >
  3805. <div
  3806. style="
  3807. width: calc(100% - 130px);
  3808. display: block;
  3809. white-space: nowrap;
  3810. overflow: hidden;
  3811. text-overflow: ellipsis;
  3812. word-break: break-word;
  3813. cursor: pointer;
  3814. "
  3815. >
  3816. {{ index + 1 + "、" + item.askstitle }}
  3817. </div>
  3818. </el-tooltip>
  3819. </div>
  3820. <div class="right_box_xuan">
  3821. <span>正确率</span>
  3822. <span>{{
  3823. (checkJson[toolIndex][index].right
  3824. ? checkJson[toolIndex][index].right
  3825. : 0) + "%"
  3826. }}</span>
  3827. </div>
  3828. </div>
  3829. </div>
  3830. <div
  3831. class="xuan_right_box"
  3832. style="background: unset; padding: 0 10px"
  3833. v-if="
  3834. tType &&
  3835. ((tType == 2 && sIsOpen == true) ||
  3836. tType == 1 ||
  3837. tType == 4) &&
  3838. tool.tool.indexOf(4) != -1
  3839. "
  3840. >
  3841. <AskStatic
  3842. v-if="
  3843. worksStudent.length &&
  3844. worksStudent[toolIndex].length > 0
  3845. "
  3846. :askJSON="tool"
  3847. :checkJson="checkJson[toolIndex]"
  3848. ></AskStatic>
  3849. </div>
  3850. <div
  3851. v-if="
  3852. tType &&
  3853. ((tType == 2 && sIsOpen == true) ||
  3854. tType == 1 ||
  3855. tType == 4) &&
  3856. tool.tool.indexOf(4) != -1
  3857. "
  3858. class="worksBox"
  3859. >
  3860. <div
  3861. class="zuoyeYulan"
  3862. v-if="
  3863. worksStudent.length &&
  3864. worksStudent[toolIndex].length > 0
  3865. "
  3866. >
  3867. <div class="worksTop">
  3868. <div>作业预览</div>
  3869. <div
  3870. class="corOpen"
  3871. @click="contract(toolIndex)"
  3872. v-if="
  3873. (isCloseList[toolIndex].isCloseBoolean) &&
  3874. isCloseList[toolIndex].isClose == 0
  3875. "
  3876. >
  3877. 折叠
  3878. </div>
  3879. <div
  3880. class="corOpen"
  3881. @click="contract(toolIndex)"
  3882. v-if="isCloseList[toolIndex].isClose == 1"
  3883. >
  3884. 展开
  3885. </div>
  3886. </div>
  3887. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3888. </div>
  3889. <div>
  3890. <div
  3891. :id="'tool-' + toolIndex"
  3892. :style="{
  3893. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3894. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3895. }"
  3896. class="worksDetailBox"
  3897. v-if="
  3898. worksStudent.length &&
  3899. worksStudent[toolIndex].length > 0
  3900. "
  3901. >
  3902. <div
  3903. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3904. :key="wIndex"
  3905. class="isWorksName2"
  3906. @click="
  3907. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3908. "
  3909. >
  3910. {{ w.sName }}
  3911. <img
  3912. class="deleteImg deleteImg2"
  3913. src="../assets/deleteworks.png"
  3914. v-if="
  3915. w.userid == userid || tType == 1 || tType == 4
  3916. "
  3917. @click.stop="deleteWorks(w.wid)"
  3918. alt
  3919. />
  3920. </div>
  3921. <!-- <div class="works" style="
  3922. width: 200px;
  3923. height: 140px;
  3924. border-radius: 10px;
  3925. box-shadow: 0 0 6px 1px #dfdada;
  3926. overflow: hidden;
  3927. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3928. <div class="workImg">
  3929. <img src="../assets/icon/works/noImg.png" @click="
  3930. openTools(
  3931. 4,
  3932. toolIndex,
  3933. taskCount,
  3934. w.works,
  3935. w.sName
  3936. )
  3937. " alt />
  3938. </div>
  3939. <div class="worksName">
  3940. <div>{{ w.sName }}</div>
  3941. <div>{{ w.time }}</div>
  3942. </div>
  3943. </div> -->
  3944. </div>
  3945. </div>
  3946. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3947. 未提交
  3948. </div>
  3949. <div
  3950. class="noWorksS"
  3951. v-if="noWorksS && noWorksS[toolIndex].length"
  3952. >
  3953. <div
  3954. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3955. :key="sIndex"
  3956. class="noWorksName"
  3957. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3958. >
  3959. <el-tooltip effect="dark" :content="s.student" placement="top">
  3960. <span>{{ s.student }}</span>
  3961. </el-tooltip>
  3962. </div>
  3963. </div>
  3964. </div>
  3965. <div
  3966. v-if="
  3967. tType &&
  3968. ((tType == 2 && sIsOpen == true) ||
  3969. tType == 1 ||
  3970. tType == 4) &&
  3971. tool.tool.indexOf(45) != -1 &&
  3972. (tool.testJson.testJson[0].answer ||
  3973. tool.testJson.testJson[0].answer === 0) &&
  3974. checkJson[toolIndex].length
  3975. "
  3976. class="xuan_right_box"
  3977. >
  3978. <div
  3979. class="tool_right_box"
  3980. v-for="(item, index) in tool.testJson.testJson"
  3981. :key="index"
  3982. >
  3983. <div class="right_box_xuan" style="margin-right: 10px">
  3984. <span>正确率</span>
  3985. <span>{{
  3986. (checkJson[toolIndex][index].right
  3987. ? checkJson[toolIndex][index].right
  3988. : 0) + "%"
  3989. }}</span>
  3990. </div>
  3991. <div style="width: calc(100% - 30px);">
  3992. <el-tooltip
  3993. effect="light"
  3994. :content="index + 1 + '、' + item.teststitle"
  3995. placement="top"
  3996. popper-class="text_tooltip"
  3997. >
  3998. <div
  3999. style="
  4000. width: calc(100% - 130px);
  4001. display: block;
  4002. white-space: nowrap;
  4003. overflow: hidden;
  4004. text-overflow: ellipsis;
  4005. word-break: break-word;
  4006. cursor: pointer;
  4007. "
  4008. >
  4009. {{ index + 1 + "、" + item.teststitle }}
  4010. </div>
  4011. </el-tooltip>
  4012. </div>
  4013. </div>
  4014. </div>
  4015. <div
  4016. class="xuan_right_box"
  4017. style="background: unset; padding: 0 10px; width: 91.5%"
  4018. v-if="
  4019. tType &&
  4020. ((tType == 2 && sIsOpen == true) ||
  4021. tType == 1 ||
  4022. tType == 4) &&
  4023. tool.tool.indexOf(45) != -1
  4024. "
  4025. >
  4026. <AskStatic2
  4027. v-if="
  4028. worksStudent.length &&
  4029. worksStudent[toolIndex].length > 0
  4030. "
  4031. :askJSON="tool"
  4032. :checkJson="checkJson[toolIndex]"
  4033. ></AskStatic2>
  4034. </div>
  4035. <div
  4036. v-if="
  4037. tType &&
  4038. ((tType == 2 && sIsOpen == true) ||
  4039. tType == 1 ||
  4040. tType == 4) &&
  4041. tool.tool.indexOf(45) != -1
  4042. "
  4043. class="worksBox"
  4044. >
  4045. <div
  4046. class="zuoyeYulan"
  4047. v-if="
  4048. worksStudent.length &&
  4049. worksStudent[toolIndex].length > 0
  4050. "
  4051. >
  4052. <div class="worksTop">
  4053. <div>作业预览</div>
  4054. <div
  4055. class="corOpen"
  4056. @click="contract(toolIndex)"
  4057. v-if="
  4058. (isCloseList[toolIndex].isCloseBoolean) &&
  4059. isCloseList[toolIndex].isClose == 0
  4060. "
  4061. >
  4062. 折叠
  4063. </div>
  4064. <div
  4065. class="corOpen"
  4066. @click="contract(toolIndex)"
  4067. v-if="isCloseList[toolIndex].isClose == 1"
  4068. >
  4069. 展开
  4070. </div>
  4071. </div>
  4072. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4073. </div>
  4074. <div>
  4075. <div
  4076. :id="'tool-' + toolIndex"
  4077. :style="{
  4078. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4079. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4080. }"
  4081. class="worksDetailBox"
  4082. v-if="
  4083. worksStudent.length &&
  4084. worksStudent[toolIndex].length > 0
  4085. "
  4086. >
  4087. <div
  4088. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4089. :key="wIndex"
  4090. class="isWorksName2"
  4091. @click="
  4092. openTools(
  4093. 45,
  4094. toolIndex,
  4095. taskCount,
  4096. w.works,
  4097. w.sName
  4098. )
  4099. "
  4100. >
  4101. {{ w.sName }}
  4102. <img
  4103. class="deleteImg deleteImg2"
  4104. src="../assets/deleteworks.png"
  4105. v-if="
  4106. w.userid == userid || tType == 1 || tType == 4
  4107. "
  4108. @click.stop="deleteWorks(w.wid)"
  4109. alt
  4110. />
  4111. </div>
  4112. </div>
  4113. </div>
  4114. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4115. 未提交
  4116. </div>
  4117. <div
  4118. class="noWorksS"
  4119. v-if="noWorksS && noWorksS[toolIndex].length"
  4120. >
  4121. <div
  4122. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4123. :key="sIndex"
  4124. class="noWorksName"
  4125. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4126. >
  4127. <el-tooltip effect="dark" :content="s.student" placement="top">
  4128. <span>{{ s.student }}</span>
  4129. </el-tooltip>
  4130. </div>
  4131. </div>
  4132. </div>
  4133. <div
  4134. v-if="
  4135. tType &&
  4136. ((tType == 2 && sIsOpen == true) ||
  4137. tType == 1 ||
  4138. tType == 4) &&
  4139. tool.tool.indexOf(69) != -1
  4140. "
  4141. class="worksBox"
  4142. >
  4143. <div
  4144. class="zuoyeYulan"
  4145. v-if="
  4146. worksStudent.length &&
  4147. worksStudent[toolIndex].length > 0
  4148. "
  4149. >
  4150. <div class="worksTop">
  4151. <div>作业预览</div>
  4152. <div
  4153. class="corOpen"
  4154. @click="contract(toolIndex)"
  4155. v-if="
  4156. (isCloseList[toolIndex].isCloseBoolean) &&
  4157. isCloseList[toolIndex].isClose == 0
  4158. "
  4159. >
  4160. 折叠
  4161. </div>
  4162. <div
  4163. class="corOpen"
  4164. @click="contract(toolIndex)"
  4165. v-if="isCloseList[toolIndex].isClose == 1"
  4166. >
  4167. 展开
  4168. </div>
  4169. </div>
  4170. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4171. </div>
  4172. <div>
  4173. <div
  4174. :id="'tool-' + toolIndex"
  4175. :style="{
  4176. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4177. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4178. }"
  4179. class="worksDetailBox"
  4180. v-if="
  4181. worksStudent.length &&
  4182. worksStudent[toolIndex].length > 0
  4183. "
  4184. >
  4185. <div
  4186. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4187. :key="wIndex"
  4188. class="isWorksName2"
  4189. style="width: 160px;height: 65px;line-height: 65px;"
  4190. @click="
  4191. openTools(
  4192. 69,
  4193. toolIndex,
  4194. taskCount,
  4195. w.works,
  4196. w.sName,
  4197. w.wid
  4198. )
  4199. "
  4200. >
  4201. {{ w.sName }}
  4202. <img
  4203. class="deleteImg1"
  4204. src="../assets/evaEnglish.png"
  4205. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4206. alt
  4207. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4208. />
  4209. <img
  4210. class="deleteImg deleteImg2"
  4211. src="../assets/deleteworks.png"
  4212. v-if="
  4213. w.userid == userid || tType == 1 || tType == 4
  4214. "
  4215. @click.stop="deleteWorks(w.wid)"
  4216. alt
  4217. />
  4218. </div>
  4219. </div>
  4220. </div>
  4221. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4222. 未提交
  4223. </div>
  4224. <div
  4225. class="noWorksS"
  4226. v-if="noWorksS && noWorksS[toolIndex].length"
  4227. >
  4228. <div
  4229. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4230. :key="sIndex"
  4231. class="noWorksName"
  4232. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4233. >
  4234. <el-tooltip effect="dark" :content="s.student" placement="top">
  4235. <span>{{ s.student }}</span>
  4236. </el-tooltip>
  4237. </div>
  4238. </div>
  4239. </div>
  4240. <div
  4241. v-if="
  4242. tType &&
  4243. ((tType == 2 && sIsOpen == true) ||
  4244. tType == 1 ||
  4245. tType == 4) &&
  4246. tool.tool.indexOf(15) != -1
  4247. "
  4248. class="worksBox"
  4249. >
  4250. <div
  4251. class="zuoyeYulan"
  4252. v-if="
  4253. (worksStudent.length &&
  4254. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4255. "
  4256. >
  4257. <div class="worksTop">
  4258. <div>作业预览</div>
  4259. <div
  4260. class="corOpen"
  4261. @click="contract(toolIndex)"
  4262. v-if="
  4263. (isCloseList[toolIndex].isCloseBoolean) &&
  4264. isCloseList[toolIndex].isClose == 0
  4265. "
  4266. >
  4267. 折叠
  4268. </div>
  4269. <div
  4270. class="corOpen"
  4271. @click="contract(toolIndex)"
  4272. v-if="isCloseList[toolIndex].isClose == 1"
  4273. >
  4274. 展开
  4275. </div>
  4276. </div>
  4277. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4278. </div>
  4279. <div
  4280. class="group_workBox"
  4281. v-for="(g, gindex) in courseGroup.group"
  4282. :key="gindex"
  4283. >
  4284. <div class="group_box">
  4285. <div class="group_title">
  4286. <el-tooltip
  4287. class="item"
  4288. effect="light"
  4289. :content="g.name"
  4290. placement="top"
  4291. >
  4292. <div class="group_name">{{ g.name }}</div>
  4293. </el-tooltip>
  4294. </div>
  4295. <div
  4296. class="group_work"
  4297. v-if="
  4298. g.works &&
  4299. g.works.length &&
  4300. g.works[toolIndex].length
  4301. "
  4302. >
  4303. <div
  4304. class="works"
  4305. v-for="(w, wIndex) in g.works[toolIndex]"
  4306. :key="wIndex"
  4307. >
  4308. <div
  4309. class="workImg"
  4310. style="
  4311. border-radius: 15px;
  4312. box-shadow: 0px 0px 5px 5px #eee;
  4313. "
  4314. >
  4315. <div
  4316. class="answerBg"
  4317. style="border-radius: 15px 15px 0 0"
  4318. @click="
  4319. commentOther(w, toolIndex, wIndex, null, g.id)
  4320. "
  4321. >
  4322. <div class="answerContent">
  4323. {{ JSON.parse(w.works)[0].answer }}
  4324. </div>
  4325. <div
  4326. class="answerScore"
  4327. v-if="w.score"
  4328. @click.stop="openScore(w)"
  4329. :class="{
  4330. rightW:
  4331. w.userid == userid ||
  4332. tType == 1 ||
  4333. tType == 4,
  4334. }"
  4335. >
  4336. {{ JSON.parse(w.score).wScore }}分
  4337. </div>
  4338. <div
  4339. class="answerScore"
  4340. @click.stop="openScore(w)"
  4341. v-else-if="courseDetail.userid == userid"
  4342. :class="{
  4343. rightW:
  4344. w.userid == userid ||
  4345. tType == 1 ||
  4346. tType == 4,
  4347. }"
  4348. >
  4349. 评分
  4350. </div>
  4351. <img
  4352. class="deleteImg"
  4353. src="../assets/deleteworks.png"
  4354. v-if="
  4355. w.userid == userid ||
  4356. tType == 1 ||
  4357. tType == 4
  4358. "
  4359. @click.stop="deleteWorks(w.wid)"
  4360. alt
  4361. />
  4362. </div>
  4363. <div class="comment">
  4364. <div class="worksName">
  4365. <div>{{ w.sName }}</div>
  4366. </div>
  4367. <div class="commentList">
  4368. <div
  4369. class="commentImg"
  4370. @click="
  4371. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4372. "
  4373. >
  4374. <img
  4375. :src="w.isLikes == true ? likes : noLikes"
  4376. alt=""
  4377. />
  4378. </div>
  4379. <div>{{ w.likesCount }}</div>
  4380. </div>
  4381. <div
  4382. class="commentList"
  4383. style="margin-right: 15px"
  4384. >
  4385. <div
  4386. class="commentImg"
  4387. @click="
  4388. commentOther(
  4389. w,
  4390. toolIndex,
  4391. wIndex,
  4392. null,
  4393. g.id
  4394. )
  4395. "
  4396. >
  4397. <img
  4398. src="../assets/icon/comment/comment.png"
  4399. alt=""
  4400. />
  4401. </div>
  4402. <div>{{ w.commentCount }}</div>
  4403. </div>
  4404. </div>
  4405. </div>
  4406. </div>
  4407. </div>
  4408. <div class="group_work" v-else>暂无提交作业</div>
  4409. </div>
  4410. </div>
  4411. <div
  4412. :id="'tool-' + toolIndex"
  4413. :style="{
  4414. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4415. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4416. }"
  4417. class="worksDetailBox"
  4418. v-if="
  4419. worksStudent.length &&
  4420. worksStudent[toolIndex].length > 0
  4421. "
  4422. >
  4423. <div
  4424. class="works"
  4425. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4426. :key="wIndex"
  4427. >
  4428. <div
  4429. class="workImg"
  4430. style="
  4431. border-radius: 15px;
  4432. box-shadow: 0px 0px 5px 5px #eee;
  4433. "
  4434. >
  4435. <!-- <img
  4436. src="../assets/icon/works/noImg.png"
  4437. @click="openTools(15, toolIndex, taskCount, w.works)"
  4438. alt=""
  4439. />-->
  4440. <div
  4441. class="answerBg"
  4442. style="border-radius: 15px 15px 0 0"
  4443. @click="commentOther(w, toolIndex, wIndex)"
  4444. >
  4445. <!-- <div>{{ w.sName }}</div> -->
  4446. <div class="answerContent">
  4447. {{ JSON.parse(w.works)[0].answer }}
  4448. </div>
  4449. <div
  4450. class="answerScore"
  4451. v-if="w.score"
  4452. @click.stop="openScore(w)"
  4453. :class="{
  4454. rightW:
  4455. w.userid == userid ||
  4456. tType == 1 ||
  4457. tType == 4,
  4458. }"
  4459. >
  4460. {{ JSON.parse(w.score).wScore }}分
  4461. </div>
  4462. <div
  4463. class="answerScore"
  4464. @click.stop="openScore(w)"
  4465. v-else-if="courseDetail.userid == userid"
  4466. :class="{
  4467. rightW:
  4468. w.userid == userid ||
  4469. tType == 1 ||
  4470. tType == 4,
  4471. }"
  4472. >
  4473. 评分
  4474. </div>
  4475. <img
  4476. class="deleteImg"
  4477. src="../assets/deleteworks.png"
  4478. v-if="
  4479. w.userid == userid || tType == 1 || tType == 4
  4480. "
  4481. @click.stop="deleteWorks(w.wid)"
  4482. alt
  4483. />
  4484. </div>
  4485. <div class="comment">
  4486. <div class="worksName">
  4487. <div>{{ w.sName }}</div>
  4488. </div>
  4489. <div class="commentList">
  4490. <div
  4491. class="commentImg"
  4492. @click="
  4493. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4494. "
  4495. >
  4496. <img
  4497. :src="w.isLikes == true ? likes : noLikes"
  4498. alt=""
  4499. />
  4500. </div>
  4501. <div>{{ w.likesCount }}</div>
  4502. </div>
  4503. <div class="commentList" style="margin-right: 15px">
  4504. <div
  4505. class="commentImg"
  4506. @click="commentOther(w, toolIndex, wIndex)"
  4507. >
  4508. <img
  4509. src="../assets/icon/comment/comment.png"
  4510. alt=""
  4511. />
  4512. </div>
  4513. <div>{{ w.commentCount }}</div>
  4514. </div>
  4515. </div>
  4516. </div>
  4517. </div>
  4518. </div>
  4519. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4520. 未提交
  4521. </div>
  4522. <div
  4523. class="noWorksS"
  4524. v-if="noWorksS && noWorksS[toolIndex].length"
  4525. >
  4526. <div
  4527. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4528. :key="sIndex"
  4529. class="noWorksName"
  4530. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4531. >
  4532. <el-tooltip effect="dark" :content="s.student" placement="top">
  4533. <span>{{ s.student }}</span>
  4534. </el-tooltip>
  4535. </div>
  4536. </div>
  4537. </div>
  4538. <div
  4539. v-if="
  4540. tType &&
  4541. ((tType == 2 && sIsOpen == true) ||
  4542. tType == 1 ||
  4543. tType == 4) &&
  4544. tool.tool.indexOf(1) != -1
  4545. "
  4546. class="worksBox"
  4547. >
  4548. <div
  4549. class="zuoyeYulan"
  4550. v-if="
  4551. (worksStudent.length &&
  4552. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4553. "
  4554. >
  4555. <div class="worksTop">
  4556. <div>作业预览</div>
  4557. <div
  4558. class="corOpen"
  4559. @click="contract(toolIndex)"
  4560. v-if="
  4561. (isCloseList[toolIndex].isCloseBoolean) &&
  4562. isCloseList[toolIndex].isClose == 0
  4563. "
  4564. >
  4565. 折叠
  4566. </div>
  4567. <div
  4568. class="corOpen"
  4569. @click="contract(toolIndex)"
  4570. v-if="isCloseList[toolIndex].isClose == 1"
  4571. >
  4572. 展开
  4573. </div>
  4574. </div>
  4575. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4576. </div>
  4577. <div
  4578. class="group_workBox"
  4579. v-for="(g, gindex) in courseGroup.group"
  4580. :key="gindex"
  4581. >
  4582. <div class="group_box">
  4583. <div class="group_title">
  4584. <el-tooltip
  4585. class="item"
  4586. effect="light"
  4587. :content="g.name"
  4588. placement="top"
  4589. >
  4590. <div class="group_name">{{ g.name }}</div>
  4591. </el-tooltip>
  4592. </div>
  4593. <div
  4594. class="group_work"
  4595. v-if="
  4596. g.works &&
  4597. g.works.length &&
  4598. g.works[toolIndex].length
  4599. "
  4600. >
  4601. <div
  4602. class="works"
  4603. style="
  4604. width: 200px;
  4605. height: 140px;
  4606. margin: 10px 10px 10px 0;
  4607. border-radius: 15px;
  4608. box-shadow: 0 0 6px 1px #dfdada;
  4609. "
  4610. v-for="(w, wIndex) in g.works[toolIndex]"
  4611. :key="wIndex"
  4612. :class="w.type == 1 ? 'isTypeOne' : ''"
  4613. >
  4614. <div class="workImg">
  4615. <img
  4616. :src="w.works"
  4617. @click="previewImg(w.works,w)"
  4618. alt
  4619. />
  4620. <div
  4621. class="answerScore"
  4622. v-if="w.score"
  4623. @click.stop="openScore(w)"
  4624. :class="{
  4625. rightW:
  4626. w.userid == userid ||
  4627. tType == 1 ||
  4628. tType == 4,
  4629. }"
  4630. >
  4631. {{ JSON.parse(w.score).wScore }}分
  4632. </div>
  4633. <div
  4634. class="answerScore"
  4635. @click.stop="openScore(w)"
  4636. v-else-if="courseDetail.userid == userid"
  4637. :class="{
  4638. rightW:
  4639. w.userid == userid ||
  4640. tType == 1 ||
  4641. tType == 4,
  4642. }"
  4643. >
  4644. 评分
  4645. </div>
  4646. <img
  4647. class="deleteImg"
  4648. src="../assets/deleteworks.png"
  4649. v-if="
  4650. w.userid == userid || tType == 1 || tType == 4
  4651. "
  4652. @click.stop="deleteWorks(w.wid)"
  4653. alt
  4654. />
  4655. </div>
  4656. <div class="comment" style="min-width: 200px">
  4657. <div class="worksName">
  4658. <div>{{ w.sName }}</div>
  4659. </div>
  4660. <div class="commentList">
  4661. <div class="commentList">
  4662. <div
  4663. class="commentImg"
  4664. @click="
  4665. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4666. "
  4667. >
  4668. <img
  4669. :src="w.isLikes == true ? likes : noLikes"
  4670. alt=""
  4671. />
  4672. </div>
  4673. <div>{{ w.likesCount }}</div>
  4674. </div>
  4675. <div
  4676. class="commentList"
  4677. style="margin-right: 15px"
  4678. >
  4679. <div
  4680. class="commentImg"
  4681. @click="
  4682. commentOther(
  4683. w,
  4684. toolIndex,
  4685. wIndex,
  4686. null,
  4687. g.id
  4688. )
  4689. "
  4690. >
  4691. <img
  4692. src="../assets/icon/comment/comment.png"
  4693. alt=""
  4694. />
  4695. </div>
  4696. <div>{{ w.commentCount }}</div>
  4697. </div>
  4698. </div>
  4699. </div>
  4700. </div>
  4701. </div>
  4702. <div class="group_work" v-else>暂无提交作业</div>
  4703. </div>
  4704. </div>
  4705. <div
  4706. :id="'tool-' + toolIndex"
  4707. :style="{
  4708. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4709. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4710. }"
  4711. class="worksDetailBox"
  4712. v-if="
  4713. worksStudent.length &&
  4714. worksStudent[toolIndex].length > 0
  4715. "
  4716. >
  4717. <div
  4718. class="works"
  4719. style="
  4720. width: 200px;
  4721. height: 140px;
  4722. margin: 10px 10px 10px 0;
  4723. border-radius: 15px;
  4724. box-shadow: 0 0 6px 1px #dfdada;
  4725. "
  4726. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4727. :key="wIndex"
  4728. >
  4729. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4730. <div class="workImg">
  4731. <img
  4732. :src="w.works"
  4733. @click="previewImg(w.works,w)"
  4734. alt
  4735. />
  4736. <div
  4737. class="answerScore"
  4738. v-if="w.score"
  4739. @click.stop="openScore(w)"
  4740. :class="{
  4741. rightW:
  4742. w.userid == userid || tType == 1 || tType == 4,
  4743. }"
  4744. >
  4745. {{ JSON.parse(w.score).wScore }}分
  4746. </div>
  4747. <div
  4748. class="answerScore"
  4749. @click.stop="openScore(w)"
  4750. v-else-if="courseDetail.userid == userid"
  4751. :class="{
  4752. rightW:
  4753. w.userid == userid || tType == 1 || tType == 4,
  4754. }"
  4755. >
  4756. 评分
  4757. </div>
  4758. <img
  4759. class="deleteImg"
  4760. src="../assets/deleteworks.png"
  4761. v-if="
  4762. w.userid == userid || tType == 1 || tType == 4
  4763. "
  4764. @click.stop="deleteWorks(w.wid)"
  4765. alt
  4766. />
  4767. </div>
  4768. <div class="comment" style="min-width: 200px">
  4769. <div class="worksName">
  4770. <div>{{ w.sName }}</div>
  4771. </div>
  4772. <div class="commentList">
  4773. <div class="commentList">
  4774. <div
  4775. class="commentImg"
  4776. @click="
  4777. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4778. "
  4779. >
  4780. <img
  4781. :src="w.isLikes == true ? likes : noLikes"
  4782. alt=""
  4783. />
  4784. </div>
  4785. <div>{{ w.likesCount }}</div>
  4786. </div>
  4787. <div class="commentList" style="margin-right: 15px">
  4788. <div
  4789. class="commentImg"
  4790. @click="commentOther(w, toolIndex, wIndex)"
  4791. >
  4792. <img
  4793. src="../assets/icon/comment/comment.png"
  4794. alt=""
  4795. />
  4796. </div>
  4797. <div>{{ w.commentCount }}</div>
  4798. </div>
  4799. </div>
  4800. </div>
  4801. </div>
  4802. </div>
  4803. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4804. 未提交
  4805. </div>
  4806. <div
  4807. class="noWorksS"
  4808. v-if="noWorksS && noWorksS[toolIndex].length"
  4809. >
  4810. <div
  4811. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4812. :key="sIndex"
  4813. class="noWorksName"
  4814. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4815. >
  4816. <el-tooltip effect="dark" :content="s.student" placement="top">
  4817. <span>{{ s.student }}</span>
  4818. </el-tooltip>
  4819. </div>
  4820. </div>
  4821. </div>
  4822. <div
  4823. v-if="
  4824. tType &&
  4825. ((tType == 2 && sIsOpen == true) ||
  4826. tType == 1 ||
  4827. tType == 4) &&
  4828. tool.tool.indexOf(3) != -1
  4829. "
  4830. class="worksBox"
  4831. >
  4832. <div
  4833. class="zuoyeYulan"
  4834. v-if="
  4835. (worksStudent.length &&
  4836. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4837. "
  4838. >
  4839. <div class="worksTop">
  4840. <div>作业预览</div>
  4841. <div
  4842. class="corOpen"
  4843. @click="contract(toolIndex)"
  4844. v-if="
  4845. (isCloseList[toolIndex].isCloseBoolean) &&
  4846. isCloseList[toolIndex].isClose == 0
  4847. "
  4848. >
  4849. 折叠
  4850. </div>
  4851. <div
  4852. class="corOpen"
  4853. @click="contract(toolIndex)"
  4854. v-if="isCloseList[toolIndex].isClose == 1"
  4855. >
  4856. 展开
  4857. </div>
  4858. </div>
  4859. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4860. </div>
  4861. <div
  4862. class="group_workBox"
  4863. v-for="(g, gindex) in courseGroup.group"
  4864. :key="gindex"
  4865. >
  4866. <div class="group_box">
  4867. <div class="group_title">
  4868. <el-tooltip
  4869. class="item"
  4870. effect="light"
  4871. :content="g.name"
  4872. placement="top"
  4873. >
  4874. <div class="group_name">{{ g.name }}</div>
  4875. </el-tooltip>
  4876. </div>
  4877. <div
  4878. class="group_work"
  4879. v-if="
  4880. g.works &&
  4881. g.works.length &&
  4882. g.works[toolIndex].length
  4883. "
  4884. >
  4885. <div
  4886. class="works"
  4887. style="
  4888. width: 200px;
  4889. height: 140px;
  4890. margin: 10px 10px 10px 0;
  4891. border-radius: 15px;
  4892. box-shadow: 0 0 6px 1px #dfdada;
  4893. "
  4894. v-for="(w, wIndex) in g.works[toolIndex]"
  4895. :key="wIndex"
  4896. :class="w.type == 1 ? 'isTypeOne' : ''"
  4897. >
  4898. <div class="workImg">
  4899. <img
  4900. :src="w.works"
  4901. @click="previewImg(w.works,w)"
  4902. alt
  4903. />
  4904. <div
  4905. class="answerScore"
  4906. v-if="w.score"
  4907. @click.stop="openScore(w)"
  4908. :class="{
  4909. rightW:
  4910. w.userid == userid ||
  4911. tType == 1 ||
  4912. tType == 4,
  4913. }"
  4914. >
  4915. {{ JSON.parse(w.score).wScore }}分
  4916. </div>
  4917. <div
  4918. class="answerScore"
  4919. @click.stop="openScore(w)"
  4920. v-else-if="courseDetail.userid == userid"
  4921. :class="{
  4922. rightW:
  4923. w.userid == userid ||
  4924. tType == 1 ||
  4925. tType == 4,
  4926. }"
  4927. >
  4928. 评分
  4929. </div>
  4930. <img
  4931. class="deleteImg"
  4932. src="../assets/deleteworks.png"
  4933. v-if="
  4934. w.userid == userid || tType == 1 || tType == 4
  4935. "
  4936. @click.stop="deleteWorks(w.wid)"
  4937. alt
  4938. />
  4939. </div>
  4940. <div class="comment" style="min-width: 200px">
  4941. <div class="worksName">
  4942. <div>{{ w.sName }}</div>
  4943. </div>
  4944. <div class="commentList">
  4945. <div class="commentList">
  4946. <div
  4947. class="commentImg"
  4948. @click="
  4949. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4950. "
  4951. >
  4952. <img
  4953. :src="w.isLikes == true ? likes : noLikes"
  4954. alt=""
  4955. />
  4956. </div>
  4957. <div>{{ w.likesCount }}</div>
  4958. </div>
  4959. <div
  4960. class="commentList"
  4961. style="margin-right: 15px"
  4962. >
  4963. <div
  4964. class="commentImg"
  4965. @click="
  4966. commentOther(
  4967. w,
  4968. toolIndex,
  4969. wIndex,
  4970. null,
  4971. g.id
  4972. )
  4973. "
  4974. >
  4975. <img
  4976. src="../assets/icon/comment/comment.png"
  4977. alt=""
  4978. />
  4979. </div>
  4980. <div>{{ w.commentCount }}</div>
  4981. </div>
  4982. </div>
  4983. </div>
  4984. </div>
  4985. </div>
  4986. <div class="group_work" v-else>暂无提交作业</div>
  4987. </div>
  4988. </div>
  4989. <div
  4990. :id="'tool-' + toolIndex"
  4991. :style="{
  4992. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4993. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4994. }"
  4995. class="worksDetailBox"
  4996. v-if="
  4997. worksStudent.length &&
  4998. worksStudent[toolIndex].length > 0
  4999. "
  5000. >
  5001. <div
  5002. class="works"
  5003. style="
  5004. width: 200px;
  5005. height: 140px;
  5006. margin: 10px 10px 10px 0;
  5007. border-radius: 15px;
  5008. box-shadow: 0 0 6px 1px #dfdada;
  5009. "
  5010. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5011. :key="wIndex"
  5012. >
  5013. <!-- @click="previewImg(w.works)" -->
  5014. <div class="workImg">
  5015. <img
  5016. :src="w.works"
  5017. @click="previewImg(w.works,w)"
  5018. alt
  5019. />
  5020. <div
  5021. class="answerScore"
  5022. v-if="w.score"
  5023. @click.stop="openScore(w)"
  5024. :class="{
  5025. rightW:
  5026. w.userid == userid || tType == 1 || tType == 4,
  5027. }"
  5028. >
  5029. {{ JSON.parse(w.score).wScore }}分
  5030. </div>
  5031. <div
  5032. class="answerScore"
  5033. @click.stop="openScore(w)"
  5034. v-else-if="courseDetail.userid == userid"
  5035. :class="{
  5036. rightW:
  5037. w.userid == userid || tType == 1 || tType == 4,
  5038. }"
  5039. >
  5040. 评分
  5041. </div>
  5042. <img
  5043. class="deleteImg"
  5044. src="../assets/deleteworks.png"
  5045. v-if="
  5046. w.userid == userid || tType == 1 || tType == 4
  5047. "
  5048. @click.stop="deleteWorks(w.wid)"
  5049. alt
  5050. />
  5051. </div>
  5052. <div class="comment" style="min-width: 200px">
  5053. <div class="worksName">
  5054. <div>{{ w.sName }}</div>
  5055. </div>
  5056. <div class="commentList">
  5057. <div class="commentList">
  5058. <div
  5059. class="commentImg"
  5060. @click="
  5061. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5062. "
  5063. >
  5064. <img
  5065. :src="w.isLikes == true ? likes : noLikes"
  5066. alt=""
  5067. />
  5068. </div>
  5069. <div>{{ w.likesCount }}</div>
  5070. </div>
  5071. <div class="commentList" style="margin-right: 15px">
  5072. <div
  5073. class="commentImg"
  5074. @click="commentOther(w, toolIndex, wIndex)"
  5075. >
  5076. <img
  5077. src="../assets/icon/comment/comment.png"
  5078. alt=""
  5079. />
  5080. </div>
  5081. <div>{{ w.commentCount }}</div>
  5082. </div>
  5083. </div>
  5084. </div>
  5085. </div>
  5086. </div>
  5087. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5088. 未提交
  5089. </div>
  5090. <div
  5091. class="noWorksS"
  5092. v-if="noWorksS && noWorksS[toolIndex].length"
  5093. >
  5094. <div
  5095. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5096. :key="sIndex"
  5097. class="noWorksName"
  5098. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5099. >
  5100. <el-tooltip effect="dark" :content="s.student" placement="top">
  5101. <span>{{ s.student }}</span>
  5102. </el-tooltip>
  5103. </div>
  5104. </div>
  5105. </div>
  5106. <div
  5107. v-if="
  5108. tType &&
  5109. ((tType == 2 && sIsOpen == true) ||
  5110. tType == 1 ||
  5111. tType == 4) &&
  5112. tool.tool.indexOf(6) != -1
  5113. "
  5114. class="worksBox"
  5115. >
  5116. <div
  5117. class="zuoyeYulan"
  5118. v-if="
  5119. (worksStudent.length &&
  5120. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5121. "
  5122. >
  5123. <div class="worksTop">
  5124. <div>作业预览</div>
  5125. <div
  5126. class="corOpen"
  5127. @click="contract(toolIndex)"
  5128. v-if="
  5129. (isCloseList[toolIndex].isCloseBoolean) &&
  5130. isCloseList[toolIndex].isClose == 0
  5131. "
  5132. >
  5133. 折叠
  5134. </div>
  5135. <div
  5136. class="corOpen"
  5137. @click="contract(toolIndex)"
  5138. v-if="isCloseList[toolIndex].isClose == 1"
  5139. >
  5140. 展开
  5141. </div>
  5142. </div>
  5143. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5144. </div>
  5145. <div
  5146. class="group_workBox"
  5147. v-for="(g, gindex) in courseGroup.group"
  5148. :key="gindex"
  5149. >
  5150. <div class="group_box">
  5151. <div class="group_title">
  5152. <el-tooltip
  5153. class="item"
  5154. effect="light"
  5155. :content="g.name"
  5156. placement="top"
  5157. >
  5158. <div class="group_name">{{ g.name }}</div>
  5159. </el-tooltip>
  5160. </div>
  5161. <div
  5162. class="group_work"
  5163. v-if="
  5164. g.works &&
  5165. g.works.length &&
  5166. g.works[toolIndex].length
  5167. "
  5168. >
  5169. <div
  5170. class="works"
  5171. style="
  5172. width: 200px;
  5173. height: 140px;
  5174. margin: 10px 10px 10px 0;
  5175. border-radius: 15px;
  5176. box-shadow: 0 0 6px 1px #dfdada;
  5177. "
  5178. v-for="(w, wIndex) in g.works[toolIndex]"
  5179. :key="wIndex"
  5180. :class="w.type == 1 ? 'isTypeOne' : ''"
  5181. >
  5182. <div class="workImg">
  5183. <img
  5184. :src="w.works"
  5185. @click="previewImg(w.works,w)"
  5186. alt
  5187. />
  5188. <div
  5189. class="answerScore"
  5190. v-if="w.score"
  5191. @click.stop="openScore(w)"
  5192. :class="{
  5193. rightW:
  5194. w.userid == userid ||
  5195. tType == 1 ||
  5196. tType == 4,
  5197. }"
  5198. >
  5199. {{ JSON.parse(w.score).wScore }}分
  5200. </div>
  5201. <div
  5202. class="answerScore"
  5203. @click.stop="openScore(w)"
  5204. v-else-if="courseDetail.userid == userid"
  5205. :class="{
  5206. rightW:
  5207. w.userid == userid ||
  5208. tType == 1 ||
  5209. tType == 4,
  5210. }"
  5211. >
  5212. 评分
  5213. </div>
  5214. <img
  5215. class="deleteImg"
  5216. src="../assets/deleteworks.png"
  5217. v-if="
  5218. w.userid == userid || tType == 1 || tType == 4
  5219. "
  5220. @click.stop="deleteWorks(w.wid)"
  5221. alt
  5222. />
  5223. </div>
  5224. <div class="comment" style="min-width: 200px">
  5225. <div class="worksName">
  5226. <div>{{ w.sName }}</div>
  5227. </div>
  5228. <div class="commentList">
  5229. <div class="commentList">
  5230. <div
  5231. class="commentImg"
  5232. @click="
  5233. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5234. "
  5235. >
  5236. <img
  5237. :src="w.isLikes == true ? likes : noLikes"
  5238. alt=""
  5239. />
  5240. </div>
  5241. <div>{{ w.likesCount }}</div>
  5242. </div>
  5243. <div
  5244. class="commentList"
  5245. style="margin-right: 15px"
  5246. >
  5247. <div
  5248. class="commentImg"
  5249. @click="
  5250. commentOther(
  5251. w,
  5252. toolIndex,
  5253. wIndex,
  5254. null,
  5255. g.id
  5256. )
  5257. "
  5258. >
  5259. <img
  5260. src="../assets/icon/comment/comment.png"
  5261. alt=""
  5262. />
  5263. </div>
  5264. <div>{{ w.commentCount }}</div>
  5265. </div>
  5266. </div>
  5267. </div>
  5268. </div>
  5269. </div>
  5270. <div class="group_work" v-else>暂无提交作业</div>
  5271. </div>
  5272. </div>
  5273. <div
  5274. :id="'tool-' + toolIndex"
  5275. :style="{
  5276. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5277. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5278. }"
  5279. class="worksDetailBox"
  5280. v-if="
  5281. worksStudent.length &&
  5282. worksStudent[toolIndex].length > 0
  5283. "
  5284. >
  5285. <div
  5286. class="works"
  5287. style="
  5288. width: 200px;
  5289. height: 140px;
  5290. margin: 10px 10px 10px 0;
  5291. border-radius: 15px;
  5292. box-shadow: 0 0 6px 1px #dfdada;
  5293. "
  5294. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5295. :key="wIndex"
  5296. >
  5297. <!-- @click="previewImg(w.works)" -->
  5298. <div class="workImg">
  5299. <img
  5300. :src="w.works"
  5301. @click="previewImg(w.works,w)"
  5302. alt
  5303. />
  5304. <div
  5305. class="answerScore"
  5306. v-if="w.score"
  5307. @click.stop="openScore(w)"
  5308. :class="{
  5309. rightW:
  5310. w.userid == userid || tType == 1 || tType == 4,
  5311. }"
  5312. >
  5313. {{ JSON.parse(w.score).wScore }}分
  5314. </div>
  5315. <div
  5316. class="answerScore"
  5317. @click.stop="openScore(w)"
  5318. v-else-if="courseDetail.userid == userid"
  5319. :class="{
  5320. rightW:
  5321. w.userid == userid || tType == 1 || tType == 4,
  5322. }"
  5323. >
  5324. 评分
  5325. </div>
  5326. <img
  5327. class="deleteImg"
  5328. src="../assets/deleteworks.png"
  5329. v-if="
  5330. w.userid == userid || tType == 1 || tType == 4
  5331. "
  5332. @click.stop="deleteWorks(w.wid)"
  5333. alt
  5334. />
  5335. </div>
  5336. <div class="comment" style="min-width: 200px">
  5337. <div class="worksName">
  5338. <div>{{ w.sName }}</div>
  5339. </div>
  5340. <div class="commentList">
  5341. <div class="commentList">
  5342. <div
  5343. class="commentImg"
  5344. @click="
  5345. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5346. "
  5347. >
  5348. <img
  5349. :src="w.isLikes == true ? likes : noLikes"
  5350. alt=""
  5351. />
  5352. </div>
  5353. <div>{{ w.likesCount }}</div>
  5354. </div>
  5355. <div class="commentList" style="margin-right: 15px">
  5356. <div
  5357. class="commentImg"
  5358. @click="commentOther(w, toolIndex, wIndex)"
  5359. >
  5360. <img
  5361. src="../assets/icon/comment/comment.png"
  5362. alt=""
  5363. />
  5364. </div>
  5365. <div>{{ w.commentCount }}</div>
  5366. </div>
  5367. </div>
  5368. </div>
  5369. </div>
  5370. </div>
  5371. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5372. 未提交
  5373. </div>
  5374. <div
  5375. class="noWorksS"
  5376. v-if="noWorksS && noWorksS[toolIndex].length"
  5377. >
  5378. <div
  5379. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5380. :key="sIndex"
  5381. class="noWorksName"
  5382. >
  5383. <el-tooltip effect="dark" :content="s.student" placement="top">
  5384. <span>{{ s.student }}</span>
  5385. </el-tooltip>
  5386. </div>
  5387. </div>
  5388. </div>
  5389. <div
  5390. v-if="
  5391. tType &&
  5392. ((tType == 2 && sIsOpen == true) ||
  5393. tType == 1 ||
  5394. tType == 4) &&
  5395. tool.tool.indexOf(7) != -1
  5396. "
  5397. class="worksBox"
  5398. >
  5399. <div
  5400. class="zuoyeYulan"
  5401. v-if="
  5402. (worksStudent.length &&
  5403. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5404. "
  5405. >
  5406. <div class="worksTop">
  5407. <div>作业预览</div>
  5408. <div
  5409. class="corOpen"
  5410. @click="contract(toolIndex)"
  5411. v-if="
  5412. (isCloseList[toolIndex].isCloseBoolean) &&
  5413. isCloseList[toolIndex].isClose == 0
  5414. "
  5415. >
  5416. 折叠
  5417. </div>
  5418. <div
  5419. class="corOpen"
  5420. @click="contract(toolIndex)"
  5421. v-if="isCloseList[toolIndex].isClose == 1"
  5422. >
  5423. 展开
  5424. </div>
  5425. </div>
  5426. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5427. </div>
  5428. <div
  5429. class="group_workBox"
  5430. v-for="(g, gindex) in courseGroup.group"
  5431. :key="gindex"
  5432. >
  5433. <div class="group_box">
  5434. <div class="group_title">
  5435. <el-tooltip
  5436. class="item"
  5437. effect="light"
  5438. :content="g.name"
  5439. placement="top"
  5440. >
  5441. <div class="group_name">{{ g.name }}</div>
  5442. </el-tooltip>
  5443. </div>
  5444. <div
  5445. class="group_work"
  5446. v-if="
  5447. g.works &&
  5448. g.works.length &&
  5449. g.works[toolIndex].length
  5450. "
  5451. >
  5452. <div
  5453. class="works"
  5454. style="
  5455. width: 200px;
  5456. height: 140px;
  5457. margin: 10px 10px 10px 0;
  5458. border-radius: 15px;
  5459. box-shadow: 0 0 6px 1px #dfdada;
  5460. "
  5461. v-for="(w, wIndex) in g.works[toolIndex]"
  5462. :key="wIndex"
  5463. :class="w.type == 1 ? 'isTypeOne' : ''"
  5464. >
  5465. <div class="workImg">
  5466. <img
  5467. :src="w.works"
  5468. @click="previewImg(w.works,w)"
  5469. alt
  5470. />
  5471. <div
  5472. class="answerScore"
  5473. v-if="w.score"
  5474. @click.stop="openScore(w)"
  5475. :class="{
  5476. rightW:
  5477. w.userid == userid ||
  5478. tType == 1 ||
  5479. tType == 4,
  5480. }"
  5481. >
  5482. {{ JSON.parse(w.score).wScore }}分
  5483. </div>
  5484. <div
  5485. class="answerScore"
  5486. @click.stop="openScore(w)"
  5487. v-else-if="courseDetail.userid == userid"
  5488. :class="{
  5489. rightW:
  5490. w.userid == userid ||
  5491. tType == 1 ||
  5492. tType == 4,
  5493. }"
  5494. >
  5495. 评分
  5496. </div>
  5497. <img
  5498. class="deleteImg"
  5499. src="../assets/deleteworks.png"
  5500. v-if="
  5501. w.userid == userid || tType == 1 || tType == 4
  5502. "
  5503. @click.stop="deleteWorks(w.wid)"
  5504. alt
  5505. />
  5506. </div>
  5507. <div class="comment" style="min-width: 200px">
  5508. <div class="worksName">
  5509. <div>{{ w.sName }}</div>
  5510. </div>
  5511. <div class="commentList">
  5512. <div class="commentList">
  5513. <div
  5514. class="commentImg"
  5515. @click="
  5516. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5517. "
  5518. >
  5519. <img
  5520. :src="w.isLikes == true ? likes : noLikes"
  5521. alt=""
  5522. />
  5523. </div>
  5524. <div>{{ w.likesCount }}</div>
  5525. </div>
  5526. <div
  5527. class="commentList"
  5528. style="margin-right: 15px"
  5529. >
  5530. <div
  5531. class="commentImg"
  5532. @click="
  5533. commentOther(
  5534. w,
  5535. toolIndex,
  5536. wIndex,
  5537. null,
  5538. g.id
  5539. )
  5540. "
  5541. >
  5542. <img
  5543. src="../assets/icon/comment/comment.png"
  5544. alt=""
  5545. />
  5546. </div>
  5547. <div>{{ w.commentCount }}</div>
  5548. </div>
  5549. </div>
  5550. </div>
  5551. </div>
  5552. </div>
  5553. <div class="group_work" v-else>暂无提交作业</div>
  5554. </div>
  5555. </div>
  5556. <div
  5557. :id="'tool-' + toolIndex"
  5558. :style="{
  5559. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5560. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5561. }"
  5562. class="worksDetailBox"
  5563. v-if="
  5564. worksStudent.length &&
  5565. worksStudent[toolIndex].length > 0
  5566. "
  5567. >
  5568. <div
  5569. class="works"
  5570. style="
  5571. width: 200px;
  5572. height: 140px;
  5573. margin: 10px 10px 10px 0;
  5574. border-radius: 15px;
  5575. box-shadow: 0 0 6px 1px #dfdada;
  5576. "
  5577. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5578. :key="wIndex"
  5579. >
  5580. <!-- @click="previewImg(w.works)" -->
  5581. <div class="workImg">
  5582. <img
  5583. :src="w.works"
  5584. @click="previewImg(w.works,w)"
  5585. alt
  5586. />
  5587. <div
  5588. class="answerScore"
  5589. v-if="w.score"
  5590. @click.stop="openScore(w)"
  5591. :class="{
  5592. rightW:
  5593. w.userid == userid || tType == 1 || tType == 4,
  5594. }"
  5595. >
  5596. {{ JSON.parse(w.score).wScore }}分
  5597. </div>
  5598. <div
  5599. class="answerScore"
  5600. @click.stop="openScore(w)"
  5601. v-else-if="courseDetail.userid == userid"
  5602. :class="{
  5603. rightW:
  5604. w.userid == userid || tType == 1 || tType == 4,
  5605. }"
  5606. >
  5607. 评分
  5608. </div>
  5609. <img
  5610. class="deleteImg"
  5611. src="../assets/deleteworks.png"
  5612. v-if="
  5613. w.userid == userid || tType == 1 || tType == 4
  5614. "
  5615. @click.stop="deleteWorks(w.wid)"
  5616. alt
  5617. />
  5618. </div>
  5619. <div class="comment" style="min-width: 200px">
  5620. <div class="worksName">
  5621. <div>{{ w.sName }}</div>
  5622. </div>
  5623. <div class="commentList">
  5624. <div class="commentList">
  5625. <div
  5626. class="commentImg"
  5627. @click="
  5628. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5629. "
  5630. >
  5631. <img
  5632. :src="w.isLikes == true ? likes : noLikes"
  5633. alt=""
  5634. />
  5635. </div>
  5636. <div>{{ w.likesCount }}</div>
  5637. </div>
  5638. <div class="commentList" style="margin-right: 15px">
  5639. <div
  5640. class="commentImg"
  5641. @click="commentOther(w, toolIndex, wIndex)"
  5642. >
  5643. <img
  5644. src="../assets/icon/comment/comment.png"
  5645. alt=""
  5646. />
  5647. </div>
  5648. <div>{{ w.commentCount }}</div>
  5649. </div>
  5650. </div>
  5651. </div>
  5652. </div>
  5653. </div>
  5654. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5655. 未提交
  5656. </div>
  5657. <div
  5658. class="noWorksS"
  5659. v-if="noWorksS && noWorksS[toolIndex].length"
  5660. >
  5661. <div
  5662. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5663. :key="sIndex"
  5664. class="noWorksName"
  5665. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5666. >
  5667. <el-tooltip effect="dark" :content="s.student" placement="top">
  5668. <span>{{ s.student }}</span>
  5669. </el-tooltip>
  5670. </div>
  5671. </div>
  5672. </div>
  5673. <div
  5674. v-if="
  5675. tType &&
  5676. ((tType == 2 && sIsOpen == true) ||
  5677. tType == 1 ||
  5678. tType == 4) &&
  5679. tool.tool.indexOf(26) != -1
  5680. "
  5681. class="worksBox"
  5682. >
  5683. <div
  5684. class="zuoyeYulan"
  5685. v-if="
  5686. worksStudent.length &&
  5687. worksStudent[toolIndex].length > 0
  5688. "
  5689. >
  5690. <div class="worksTop">
  5691. <div>作业预览</div>
  5692. <div
  5693. class="corOpen"
  5694. @click="contract(toolIndex)"
  5695. v-if="
  5696. (isCloseList[toolIndex].isCloseBoolean) &&
  5697. isCloseList[toolIndex].isClose == 0
  5698. "
  5699. >
  5700. 折叠
  5701. </div>
  5702. <div
  5703. class="corOpen"
  5704. @click="contract(toolIndex)"
  5705. v-if="isCloseList[toolIndex].isClose == 1"
  5706. >
  5707. 展开
  5708. </div>
  5709. </div>
  5710. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5711. </div>
  5712. <div
  5713. :id="'tool-' + toolIndex"
  5714. :style="{
  5715. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5716. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5717. }"
  5718. class="worksDetailBox"
  5719. v-if="
  5720. worksStudent.length &&
  5721. worksStudent[toolIndex].length > 0
  5722. "
  5723. >
  5724. <div
  5725. class="works"
  5726. style="width: 240px; height: 140px; overflow: hidden"
  5727. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5728. :key="wIndex"
  5729. :class="w.type == 1 ? 'isTypeOne' : ''"
  5730. >
  5731. <div class="workImg" v-if="w.type == 0">
  5732. <img
  5733. :src="w.works"
  5734. @click="previewImg(w.works,w)"
  5735. alt
  5736. />
  5737. <img
  5738. class="deleteImg"
  5739. src="../assets/deleteworks.png"
  5740. v-if="
  5741. w.userid == userid || tType == 1 || tType == 4
  5742. "
  5743. @click.stop="deleteWorks(w.wid)"
  5744. alt
  5745. />
  5746. </div>
  5747. <div class="workImg" v-if="w.type == 1">
  5748. <img :src="word" @click="openFile(w.works,w)" alt />
  5749. <img
  5750. class="deleteImg"
  5751. src="../assets/deleteworks.png"
  5752. v-if="
  5753. w.userid == userid || tType == 1 || tType == 4
  5754. "
  5755. @click.stop="deleteWorks(w.wid)"
  5756. alt
  5757. />
  5758. </div>
  5759. <div class="worksName">
  5760. <div>{{ w.sName }}</div>
  5761. </div>
  5762. </div>
  5763. </div>
  5764. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5765. 未提交
  5766. </div>
  5767. <div
  5768. class="noWorksS"
  5769. v-if="noWorksS && noWorksS[toolIndex].length"
  5770. >
  5771. <div
  5772. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5773. :key="sIndex"
  5774. class="noWorksName"
  5775. >
  5776. <el-tooltip effect="dark" :content="s.student" placement="top">
  5777. <span>{{ s.student }}</span>
  5778. </el-tooltip>
  5779. </div>
  5780. </div>
  5781. </div>
  5782. <div
  5783. v-if="
  5784. tType &&
  5785. ((tType == 2 && sIsOpen == true) ||
  5786. tType == 1 ||
  5787. tType == 4) &&
  5788. tool.tool.indexOf(40) != -1
  5789. "
  5790. class="worksBox"
  5791. >
  5792. <div
  5793. class="zuoyeYulan"
  5794. v-if="
  5795. worksStudent.length &&
  5796. worksStudent[toolIndex].length > 0
  5797. "
  5798. >
  5799. <div class="worksTop">
  5800. <div>作业预览</div>
  5801. <div
  5802. class="corOpen"
  5803. @click="contract(toolIndex)"
  5804. v-if="
  5805. (isCloseList[toolIndex].isCloseBoolean) &&
  5806. isCloseList[toolIndex].isClose == 0
  5807. "
  5808. >
  5809. 折叠
  5810. </div>
  5811. <div
  5812. class="corOpen"
  5813. @click="contract(toolIndex)"
  5814. v-if="isCloseList[toolIndex].isClose == 1"
  5815. >
  5816. 展开
  5817. </div>
  5818. </div>
  5819. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5820. </div>
  5821. <div
  5822. :id="'tool-' + toolIndex"
  5823. :style="{
  5824. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5825. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5826. }"
  5827. class="worksDetailBox"
  5828. v-if="
  5829. worksStudent.length &&
  5830. worksStudent[toolIndex].length > 0
  5831. "
  5832. >
  5833. <div
  5834. class="works"
  5835. style="
  5836. width: 200px;
  5837. height: 140px;
  5838. margin: 10px 10px 10px 0;
  5839. border-radius: 15px;
  5840. box-shadow: 0 0 6px 1px #dfdada;
  5841. "
  5842. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5843. :key="wIndex"
  5844. :class="w.type == 1 ? 'isTypeOne' : ''"
  5845. >
  5846. <div class="workImg">
  5847. <img
  5848. src="../assets/icon/works/noImg.png"
  5849. @click="openPj(w.works, toolIndex)"
  5850. alt
  5851. />
  5852. <img
  5853. class="deleteImg"
  5854. src="../assets/deleteworks.png"
  5855. v-if="
  5856. w.userid == userid || tType == 1 || tType == 4
  5857. "
  5858. @click.stop="deleteWorks(w.wid)"
  5859. alt
  5860. />
  5861. </div>
  5862. <div class="comment" style="min-width: 200px">
  5863. <div class="worksName">
  5864. <div>{{ w.sName }}</div>
  5865. </div>
  5866. <div class="commentList">
  5867. <div class="commentList">
  5868. <div
  5869. class="commentImg"
  5870. @click="
  5871. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5872. "
  5873. >
  5874. <img
  5875. :src="w.isLikes == true ? likes : noLikes"
  5876. alt=""
  5877. />
  5878. </div>
  5879. <div>{{ w.likesCount }}</div>
  5880. </div>
  5881. <div class="commentList" style="margin-right: 15px">
  5882. <div
  5883. class="commentImg"
  5884. @click="commentOther(w, toolIndex, wIndex)"
  5885. >
  5886. <img
  5887. src="../assets/icon/comment/comment.png"
  5888. alt=""
  5889. />
  5890. </div>
  5891. <div>{{ w.commentCount }}</div>
  5892. </div>
  5893. </div>
  5894. </div>
  5895. </div>
  5896. </div>
  5897. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5898. 未提交
  5899. </div>
  5900. <div
  5901. class="noWorksS"
  5902. v-if="noWorksS && noWorksS[toolIndex].length"
  5903. >
  5904. <div
  5905. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5906. :key="sIndex"
  5907. class="noWorksName"
  5908. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5909. >
  5910. <el-tooltip effect="dark" :content="s.student" placement="top">
  5911. <span>{{ s.student }}</span>
  5912. </el-tooltip>
  5913. </div>
  5914. </div>
  5915. </div>
  5916. <div
  5917. v-if="
  5918. tType &&
  5919. tType == 2 &&
  5920. !sIsOpen &&
  5921. tool.tool.indexOf(40) != -1
  5922. "
  5923. class="worksBox"
  5924. >
  5925. <div
  5926. class="zuoyeYulan"
  5927. v-if="workStudent[toolIndex].length > 0"
  5928. >
  5929. <span class="worksTitle">作业预览</span>
  5930. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5931. </div>
  5932. <div
  5933. class="worksDetailBox"
  5934. v-if="workStudent[toolIndex].length > 0"
  5935. >
  5936. <div
  5937. class="works"
  5938. style="
  5939. width: 200px;
  5940. height: 140px;
  5941. margin: 10px 10px 10px 0;
  5942. "
  5943. v-for="(w, wIndex) in workStudent[toolIndex]"
  5944. :key="wIndex"
  5945. >
  5946. <div class="workImg">
  5947. <img
  5948. src="../assets/icon/works/noImg.png"
  5949. @click="openPj(w.works, toolIndex)"
  5950. alt
  5951. />
  5952. <img
  5953. class="deleteImg"
  5954. src="../assets/deleteworks.png"
  5955. v-if="
  5956. w.userid == userid || tType == 1 || tType == 4
  5957. "
  5958. @click.stop="deleteWorks(w.wid)"
  5959. alt
  5960. />
  5961. </div>
  5962. <div class="worksName">
  5963. <div>{{ w.sName }}</div>
  5964. </div>
  5965. </div>
  5966. </div>
  5967. </div>
  5968. <div
  5969. v-if="
  5970. tType &&
  5971. ((tType == 2 && sIsOpen == true) ||
  5972. tType == 1 ||
  5973. tType == 4) &&
  5974. tool.tool.indexOf(41) != -1
  5975. "
  5976. >
  5977. <AnswerData2
  5978. v-if="
  5979. worksStudent.length &&
  5980. worksStudent[toolIndex].length > 0
  5981. "
  5982. :problemJson="tool.selectJson.answer"
  5983. :people="worksStudent[toolIndex]"
  5984. ></AnswerData2>
  5985. </div>
  5986. <div
  5987. v-if="
  5988. tType &&
  5989. ((tType == 2 && sIsOpen == true) ||
  5990. tType == 1 ||
  5991. tType == 4) &&
  5992. tool.tool.indexOf(41) != -1
  5993. "
  5994. class="worksBox"
  5995. >
  5996. <div
  5997. class="zuoyeYulan"
  5998. v-if="
  5999. worksStudent.length &&
  6000. worksStudent[toolIndex].length > 0
  6001. "
  6002. >
  6003. <div class="worksTop">
  6004. <div>作业预览</div>
  6005. <div
  6006. class="corOpen"
  6007. @click="contract(toolIndex)"
  6008. v-if="
  6009. (isCloseList[toolIndex].isCloseBoolean) &&
  6010. isCloseList[toolIndex].isClose == 0
  6011. "
  6012. >
  6013. 折叠
  6014. </div>
  6015. <div
  6016. class="corOpen"
  6017. @click="contract(toolIndex)"
  6018. v-if="isCloseList[toolIndex].isClose == 1"
  6019. >
  6020. 展开
  6021. </div>
  6022. </div>
  6023. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6024. </div>
  6025. <div
  6026. :id="'tool-' + toolIndex"
  6027. :style="{
  6028. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6029. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6030. }"
  6031. class="worksDetailBox"
  6032. v-if="
  6033. worksStudent.length &&
  6034. worksStudent[toolIndex].length > 0
  6035. "
  6036. >
  6037. <div
  6038. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6039. :key="wIndex"
  6040. class="isWorksName2"
  6041. @click="openXz(w, toolIndex)"
  6042. >
  6043. {{ w.sName }}
  6044. <img
  6045. class="deleteImg deleteImg2"
  6046. src="../assets/deleteworks.png"
  6047. v-if="w.userid == userid || tType == 1 || tType == 4"
  6048. @click.stop="deleteWorks(w.wid)"
  6049. alt
  6050. />
  6051. </div>
  6052. <!-- <div
  6053. class="works"
  6054. style="
  6055. width: 200px;
  6056. height: 140px;
  6057. margin: 10px 10px 10px 0;
  6058. border-radius: 15px;
  6059. box-shadow: 0 0 6px 1px #dfdada;
  6060. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6061. :class="w.type == 5 ? 'isTypeOne' : ''">
  6062. <div class="workImg">
  6063. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6064. </div>
  6065. <div class="worksName">
  6066. <div>{{ w.sName }}</div>
  6067. </div>
  6068. </div> -->
  6069. </div>
  6070. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6071. 未提交
  6072. </div>
  6073. <div
  6074. class="noWorksS"
  6075. v-if="noWorksS && noWorksS[toolIndex].length"
  6076. >
  6077. <div
  6078. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6079. :key="sIndex"
  6080. class="noWorksName"
  6081. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6082. >
  6083. <el-tooltip effect="dark" :content="s.student" placement="top">
  6084. <span>{{ s.student }}</span>
  6085. </el-tooltip>
  6086. </div>
  6087. </div>
  6088. </div>
  6089. <div
  6090. v-if="
  6091. tType &&
  6092. tType == 2 &&
  6093. !sIsOpen &&
  6094. tool.tool.indexOf(41) != -1
  6095. "
  6096. class="worksBox"
  6097. >
  6098. <div
  6099. class="zuoyeYulan"
  6100. v-if="workStudent[toolIndex].length > 0"
  6101. >
  6102. <span class="worksTitle">作业预览</span>
  6103. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6104. </div>
  6105. <div
  6106. class="worksDetailBox"
  6107. v-if="workStudent[toolIndex].length > 0"
  6108. >
  6109. <div
  6110. class="works"
  6111. style="
  6112. width: 200px;
  6113. height: 140px;
  6114. margin: 10px 10px 10px 0;
  6115. "
  6116. v-for="(w, wIndex) in workStudent[toolIndex]"
  6117. :key="wIndex"
  6118. >
  6119. <div class="workImg">
  6120. <img
  6121. src="../assets/icon/works/noImg.png"
  6122. @click="openXz(w, toolIndex)"
  6123. alt
  6124. />
  6125. <img
  6126. class="deleteImg"
  6127. src="../assets/deleteworks.png"
  6128. v-if="
  6129. w.userid == userid || tType == 1 || tType == 4
  6130. "
  6131. @click.stop="deleteWorks(w.wid)"
  6132. alt
  6133. />
  6134. </div>
  6135. <div class="worksName">
  6136. <div>{{ w.sName }}</div>
  6137. </div>
  6138. </div>
  6139. </div>
  6140. </div>
  6141. <div v-if="false" class="xuan_right_box">
  6142. <div
  6143. class="tool_right_box"
  6144. v-for="(item, index) in tool.sentenceList"
  6145. :key="index"
  6146. >
  6147. <div>
  6148. <span
  6149. style="word-break: break-all; white-space: normal"
  6150. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6151. >
  6152. </div>
  6153. <div class="right_box_xuan">
  6154. <span>正确率</span>
  6155. <span>{{
  6156. (checkJson[toolIndex][index].right
  6157. ? checkJson[toolIndex][index].right
  6158. : 0) + "%"
  6159. }}</span>
  6160. </div>
  6161. <div class="right_box_xuan">
  6162. <span>答对人数</span>
  6163. <span>{{
  6164. checkJson[toolIndex][index].rightPerson.length
  6165. }}</span>
  6166. </div>
  6167. </div>
  6168. </div>
  6169. <div
  6170. v-if="
  6171. tType &&
  6172. ((tType == 2 && sIsOpen == true) ||
  6173. tType == 1 ||
  6174. tType == 4) &&
  6175. tool.tool.indexOf(47) != -1
  6176. "
  6177. >
  6178. <AnswerData
  6179. v-if="
  6180. checkJson[toolIndex].length &&
  6181. (tool.sentenceList || tool.sentenceList.length > 0)
  6182. "
  6183. :people="checkJson[toolIndex]"
  6184. ></AnswerData>
  6185. </div>
  6186. <div
  6187. v-if="
  6188. tType &&
  6189. tType == 2 &&
  6190. !sIsOpen &&
  6191. tool.tool.indexOf(47) != -1
  6192. "
  6193. class="worksBox"
  6194. >
  6195. <div
  6196. class="zuoyeYulan"
  6197. v-if="workStudent[toolIndex].length > 0"
  6198. >
  6199. <span class="worksTitle">作业预览</span>
  6200. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6201. </div>
  6202. <div
  6203. class="worksDetailBox"
  6204. v-if="workStudent[toolIndex].length > 0"
  6205. >
  6206. <div
  6207. class="works"
  6208. style="
  6209. width: 200px;
  6210. height: 140px;
  6211. margin: 10px 10px 10px 0;
  6212. "
  6213. v-for="(w, wIndex) in workStudent[toolIndex]"
  6214. :key="wIndex"
  6215. >
  6216. <!-- @click="openXz(w, toolIndex)" -->
  6217. <div class="workImg" @click="openSen(w, toolIndex)">
  6218. <img src="../assets/icon/works/noImg.png" alt />
  6219. <img
  6220. class="deleteImg"
  6221. src="../assets/deleteworks.png"
  6222. v-if="
  6223. w.userid == userid || tType == 1 || tType == 4
  6224. "
  6225. @click.stop="deleteWorks(w.wid)"
  6226. alt
  6227. />
  6228. </div>
  6229. <div class="worksName">
  6230. <div>
  6231. {{ w.sName }}
  6232. </div>
  6233. </div>
  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(47) != -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. <!-- @click="openXz(w, toolIndex)" -->
  6289. <div
  6290. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6291. :key="wIndex"
  6292. class="isWorksName2"
  6293. @click="openSen(w, toolIndex)"
  6294. >
  6295. {{ w.sName }}
  6296. <img
  6297. class="deleteImg deleteImg2"
  6298. src="../assets/deleteworks.png"
  6299. v-if="w.userid == userid || tType == 1 || tType == 4"
  6300. @click.stop="deleteWorks(w.wid)"
  6301. alt
  6302. />
  6303. </div>
  6304. </div>
  6305. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6306. 未提交
  6307. </div>
  6308. <div
  6309. class="noWorksS"
  6310. v-if="noWorksS && noWorksS[toolIndex].length"
  6311. >
  6312. <div
  6313. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6314. :key="sIndex"
  6315. class="noWorksName"
  6316. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6317. >
  6318. <el-tooltip effect="dark" :content="s.student" placement="top">
  6319. <span>{{ s.student }}</span>
  6320. </el-tooltip>
  6321. </div>
  6322. </div>
  6323. </div>
  6324. <div
  6325. v-if="
  6326. tType &&
  6327. ((tType == 2 && sIsOpen == true) ||
  6328. tType == 1 ||
  6329. tType == 4) &&
  6330. tool.tool.indexOf(48) != -1
  6331. "
  6332. class="worksBox"
  6333. >
  6334. <div
  6335. class="zuoyeYulan"
  6336. v-if="
  6337. worksStudent.length &&
  6338. worksStudent[toolIndex].length > 0
  6339. "
  6340. >
  6341. <div class="worksTop">
  6342. <div>作业预览</div>
  6343. <div
  6344. class="corOpen"
  6345. @click="contract(toolIndex)"
  6346. v-if="
  6347. (isCloseList[toolIndex].isCloseBoolean) &&
  6348. isCloseList[toolIndex].isClose == 0
  6349. "
  6350. >
  6351. 折叠
  6352. </div>
  6353. <div
  6354. class="corOpen"
  6355. @click="contract(toolIndex)"
  6356. v-if="isCloseList[toolIndex].isClose == 1"
  6357. >
  6358. 展开
  6359. </div>
  6360. </div>
  6361. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6362. </div>
  6363. <div
  6364. :id="'tool-' + toolIndex"
  6365. :style="{
  6366. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6367. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6368. }"
  6369. class="worksDetailBox"
  6370. v-if="
  6371. worksStudent.length &&
  6372. worksStudent[toolIndex].length > 0
  6373. "
  6374. >
  6375. <div
  6376. class="works"
  6377. style="
  6378. width: 200px;
  6379. height: 140px;
  6380. margin: 10px 10px 10px 0;
  6381. border-radius: 15px;
  6382. box-shadow: 0 0 6px 1px #dfdada;
  6383. "
  6384. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6385. :key="wIndex"
  6386. :class="w.type == 1 ? 'isTypeOne' : ''"
  6387. >
  6388. <div class="workImg">
  6389. <img :src="word" @click="openTable(w)" alt />
  6390. <!-- @click="openFile(w.works)" -->
  6391. <div
  6392. class="answerScore"
  6393. v-if="w.score"
  6394. @click.stop="openScore(w)"
  6395. :class="{
  6396. rightW:
  6397. w.userid == userid ||
  6398. tType == 1 ||
  6399. tType == 4 ||
  6400. w.ateacher == userid,
  6401. }"
  6402. >
  6403. {{ JSON.parse(w.score).wScore }}分
  6404. </div>
  6405. <div
  6406. class="answerScore"
  6407. @click.stop="openScore(w)"
  6408. v-else-if="courseDetail.userid == userid"
  6409. :class="{
  6410. rightW:
  6411. w.userid == userid ||
  6412. tType == 1 ||
  6413. tType == 4 ||
  6414. w.ateacher == userid,
  6415. }"
  6416. >
  6417. 评分
  6418. </div>
  6419. <img
  6420. class="deleteImg"
  6421. src="../assets/deleteworks.png"
  6422. v-if="
  6423. w.userid == userid || tType == 1 || tType == 4
  6424. "
  6425. @click.stop="deleteWorks(w.wid)"
  6426. alt
  6427. />
  6428. </div>
  6429. <div class="comment" style="min-width: 200px">
  6430. <div class="worksName">
  6431. <div>{{ w.sName }}</div>
  6432. </div>
  6433. <div class="commentList">
  6434. <div class="commentList">
  6435. <div
  6436. class="commentImg"
  6437. @click="
  6438. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6439. "
  6440. >
  6441. <img
  6442. :src="w.isLikes == true ? likes : noLikes"
  6443. alt=""
  6444. />
  6445. </div>
  6446. <div>{{ w.likesCount }}</div>
  6447. </div>
  6448. <div class="commentList" style="margin-right: 15px">
  6449. <div
  6450. class="commentImg"
  6451. @click="commentOther(w, toolIndex, wIndex)"
  6452. >
  6453. <img
  6454. src="../assets/icon/comment/comment.png"
  6455. alt=""
  6456. />
  6457. </div>
  6458. <div>{{ w.commentCount }}</div>
  6459. </div>
  6460. </div>
  6461. </div>
  6462. </div>
  6463. </div>
  6464. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6465. 未提交
  6466. </div>
  6467. <div
  6468. class="noWorksS"
  6469. v-if="noWorksS && noWorksS[toolIndex].length"
  6470. >
  6471. <div
  6472. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6473. :key="sIndex"
  6474. class="noWorksName"
  6475. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6476. >
  6477. <el-tooltip effect="dark" :content="s.student" placement="top">
  6478. <span>{{ s.student }}</span>
  6479. </el-tooltip>
  6480. </div>
  6481. </div>
  6482. </div>
  6483. <div
  6484. v-if="
  6485. tType &&
  6486. tType == 2 &&
  6487. !sIsOpen &&
  6488. tool.tool.indexOf(48) != -1
  6489. "
  6490. class="worksBox"
  6491. >
  6492. <div
  6493. class="zuoyeYulan"
  6494. v-if="workStudent[toolIndex].length > 0"
  6495. >
  6496. <span class="worksTitle">作业预览</span>
  6497. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6498. </div>
  6499. <div
  6500. class="worksDetailBox"
  6501. v-if="workStudent[toolIndex].length > 0"
  6502. >
  6503. <div
  6504. class="works"
  6505. style="
  6506. width: 200px;
  6507. height: 140px;
  6508. margin: 10px 10px 10px 0;
  6509. box-shadow: 0 0 6px 1px #dfdada;
  6510. "
  6511. v-for="(w, wIndex) in workStudent[toolIndex]"
  6512. :key="wIndex"
  6513. >
  6514. <div class="workImg">
  6515. <img :src="word" @click="openTable(w)" alt />
  6516. <div
  6517. class="answerScore"
  6518. v-if="w.score"
  6519. @click.stop="openScore(w)"
  6520. :class="{
  6521. rightW:
  6522. w.userid == userid || tType == 1 || tType == 4,
  6523. }"
  6524. >
  6525. {{ JSON.parse(w.score).wScore }}分
  6526. </div>
  6527. <div
  6528. class="answerScore"
  6529. @click.stop="openScore(w)"
  6530. v-else-if="courseDetail.userid == userid"
  6531. :class="{
  6532. rightW:
  6533. w.userid == userid || tType == 1 || tType == 4,
  6534. }"
  6535. >
  6536. 评分
  6537. </div>
  6538. <img
  6539. class="deleteImg"
  6540. src="../assets/deleteworks.png"
  6541. v-if="
  6542. w.userid == userid || tType == 1 || tType == 4
  6543. "
  6544. @click.stop="deleteWorks(w.wid)"
  6545. alt
  6546. />
  6547. </div>
  6548. <div class="worksName">
  6549. <div>{{ w.sName }}</div>
  6550. </div>
  6551. </div>
  6552. </div>
  6553. </div>
  6554. <div
  6555. v-if="
  6556. tType &&
  6557. ((tType == 2 && sIsOpen == true) ||
  6558. tType == 1 ||
  6559. tType == 4) &&
  6560. tool.tool.indexOf(52) != -1
  6561. "
  6562. class="worksBox"
  6563. >
  6564. <div
  6565. class="zuoyeYulan"
  6566. v-if="
  6567. worksStudent.length &&
  6568. worksStudent[toolIndex].length > 0
  6569. "
  6570. >
  6571. <div class="worksTop">
  6572. <div>作业预览</div>
  6573. <div
  6574. class="corOpen"
  6575. @click="contract(toolIndex)"
  6576. v-if="
  6577. (isCloseList[toolIndex].isCloseBoolean) &&
  6578. isCloseList[toolIndex].isClose == 0
  6579. "
  6580. >
  6581. 折叠
  6582. </div>
  6583. <div
  6584. class="corOpen"
  6585. @click="contract(toolIndex)"
  6586. v-if="isCloseList[toolIndex].isClose == 1"
  6587. >
  6588. 展开
  6589. </div>
  6590. </div>
  6591. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6592. </div>
  6593. <div
  6594. :id="'tool-' + toolIndex"
  6595. :style="{
  6596. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6597. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6598. }"
  6599. class="worksDetailBox"
  6600. v-if="
  6601. worksStudent.length &&
  6602. worksStudent[toolIndex].length > 0
  6603. "
  6604. >
  6605. <div
  6606. class="works"
  6607. style="
  6608. width: 200px;
  6609. height: 140px;
  6610. margin: 10px 10px 10px 0;
  6611. border-radius: 15px;
  6612. box-shadow: 0 0 6px 1px #dfdada;
  6613. "
  6614. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6615. :key="wIndex"
  6616. :class="w.type == 1 ? 'isTypeOne' : ''"
  6617. >
  6618. <div class="workImg">
  6619. <img :src="word" @click="openWord(w)" alt />
  6620. <!-- @click="openFile(w.works)" -->
  6621. <div
  6622. class="answerScore"
  6623. v-if="w.score"
  6624. @click.stop="openScore(w)"
  6625. :class="{
  6626. rightW:
  6627. w.userid == userid ||
  6628. tType == 1 ||
  6629. tType == 4 ||
  6630. w.ateacher == userid,
  6631. }"
  6632. >
  6633. {{ JSON.parse(w.score).wScore }}分
  6634. </div>
  6635. <div
  6636. class="answerScore"
  6637. @click.stop="openScore(w)"
  6638. v-else-if="courseDetail.userid == userid"
  6639. :class="{
  6640. rightW:
  6641. w.userid == userid ||
  6642. tType == 1 ||
  6643. tType == 4 ||
  6644. w.ateacher == userid,
  6645. }"
  6646. >
  6647. 评分
  6648. </div>
  6649. <img
  6650. class="deleteImg"
  6651. src="../assets/deleteworks.png"
  6652. v-if="
  6653. w.userid == userid || tType == 1 || tType == 4
  6654. "
  6655. @click.stop="deleteWorks(w.wid)"
  6656. alt
  6657. />
  6658. </div>
  6659. <div class="comment" style="min-width: 200px">
  6660. <div class="worksName">
  6661. <div>{{ w.sName }}</div>
  6662. </div>
  6663. <div class="commentList">
  6664. <div class="commentList">
  6665. <div
  6666. class="commentImg"
  6667. @click="
  6668. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6669. "
  6670. >
  6671. <img
  6672. :src="w.isLikes == true ? likes : noLikes"
  6673. alt=""
  6674. />
  6675. </div>
  6676. <div>{{ w.likesCount }}</div>
  6677. </div>
  6678. <div class="commentList" style="margin-right: 15px">
  6679. <div
  6680. class="commentImg"
  6681. @click="commentOther(w, toolIndex, wIndex)"
  6682. >
  6683. <img
  6684. src="../assets/icon/comment/comment.png"
  6685. alt=""
  6686. />
  6687. </div>
  6688. <div>{{ w.commentCount }}</div>
  6689. </div>
  6690. </div>
  6691. </div>
  6692. </div>
  6693. </div>
  6694. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6695. 未提交
  6696. </div>
  6697. <div
  6698. class="noWorksS"
  6699. v-if="noWorksS && noWorksS[toolIndex].length"
  6700. >
  6701. <div
  6702. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6703. :key="sIndex"
  6704. class="noWorksName"
  6705. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6706. >
  6707. <el-tooltip effect="dark" :content="s.student" placement="top">
  6708. <span>{{ s.student }}</span>
  6709. </el-tooltip>
  6710. </div>
  6711. </div>
  6712. </div>
  6713. <div
  6714. v-if="
  6715. tType &&
  6716. tType == 2 &&
  6717. !sIsOpen &&
  6718. tool.tool.indexOf(52) != -1
  6719. "
  6720. class="worksBox"
  6721. >
  6722. <div
  6723. class="zuoyeYulan"
  6724. v-if="workStudent[toolIndex].length > 0"
  6725. >
  6726. <span class="worksTitle">作业预览</span>
  6727. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6728. </div>
  6729. <div
  6730. class="worksDetailBox"
  6731. v-if="workStudent[toolIndex].length > 0"
  6732. >
  6733. <div
  6734. class="works"
  6735. style="
  6736. width: 200px;
  6737. height: 140px;
  6738. margin: 10px 10px 10px 0;
  6739. box-shadow: 0 0 6px 1px #dfdada;
  6740. "
  6741. v-for="(w, wIndex) in workStudent[toolIndex]"
  6742. :key="wIndex"
  6743. >
  6744. <div class="workImg">
  6745. <img :src="word" @click="openWord(w)" alt />
  6746. <div
  6747. class="answerScore"
  6748. v-if="w.score"
  6749. @click.stop="openScore(w)"
  6750. :class="{
  6751. rightW:
  6752. w.userid == userid || tType == 1 || tType == 4,
  6753. }"
  6754. >
  6755. {{ JSON.parse(w.score).wScore }}分
  6756. </div>
  6757. <div
  6758. class="answerScore"
  6759. @click.stop="openScore(w)"
  6760. v-else-if="courseDetail.userid == userid"
  6761. :class="{
  6762. rightW:
  6763. w.userid == userid || tType == 1 || tType == 4,
  6764. }"
  6765. >
  6766. 评分
  6767. </div>
  6768. <img
  6769. class="deleteImg"
  6770. src="../assets/deleteworks.png"
  6771. v-if="
  6772. w.userid == userid || tType == 1 || tType == 4
  6773. "
  6774. @click.stop="deleteWorks(w.wid)"
  6775. alt
  6776. />
  6777. </div>
  6778. <div class="worksName">
  6779. <div>{{ w.sName }}</div>
  6780. </div>
  6781. </div>
  6782. </div>
  6783. </div>
  6784. <div
  6785. v-if="tool.tool.indexOf(49) != -1"
  6786. class="xuan_right_box"
  6787. style="margin: 0 15px 0 25px; width: 93%"
  6788. >
  6789. <div
  6790. v-if="courseDetail.userid == userid"
  6791. style="
  6792. display: flex;
  6793. justify-content: flex-end;
  6794. margin-right: 10px;
  6795. "
  6796. >
  6797. <el-button
  6798. type="primary"
  6799. size="small"
  6800. @click="addTools(49, toolIndex, taskCount)"
  6801. >分组设置</el-button
  6802. >
  6803. </div>
  6804. <div
  6805. v-if="groupStudentUid[toolIndex]"
  6806. class="group_staic_box"
  6807. >
  6808. <div
  6809. v-for="(gp, gd) in tool.groupJson.group"
  6810. :key="gd"
  6811. class="group_staic"
  6812. >
  6813. <span> {{ gp.name }}</span>
  6814. <span>
  6815. 目前人数{{
  6816. groupStudentUid[toolIndex][gd].length
  6817. }}人</span
  6818. >
  6819. </div>
  6820. </div>
  6821. </div>
  6822. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6823. <div
  6824. class="zuoyeYulan"
  6825. v-if="
  6826. worksStudent.length &&
  6827. worksStudent[toolIndex].length > 0
  6828. "
  6829. >
  6830. <span class="worksTitle">作业预览</span>
  6831. </div>
  6832. <div>
  6833. <div
  6834. class="group_workBox"
  6835. v-for="(g, gindex) in tool.groupJson.group"
  6836. :key="gindex"
  6837. >
  6838. <div
  6839. class="group_box"
  6840. v-if="
  6841. groupStudentUid[toolIndex] &&
  6842. worksStudent[toolIndex] &&
  6843. (worksStudent[toolIndex][gindex].length ||
  6844. groupStudentUid[toolIndex][gindex].indexOf(
  6845. userid
  6846. ) != -1)
  6847. "
  6848. >
  6849. <div class="group_title">
  6850. <el-tooltip
  6851. class="item"
  6852. effect="light"
  6853. :content="g.name"
  6854. placement="top"
  6855. >
  6856. <div class="group_name">{{ g.name }}</div>
  6857. </el-tooltip>
  6858. <el-button
  6859. type="primary"
  6860. v-if="
  6861. groupStudentUid[toolIndex][gindex].indexOf(
  6862. userid
  6863. ) != -1
  6864. "
  6865. @click="groupUpload(toolIndex, taskCount, gindex)"
  6866. >上传作业</el-button
  6867. >
  6868. </div>
  6869. <div class="group_work">
  6870. <div
  6871. class="works"
  6872. style="
  6873. width: 200px;
  6874. height: 140px;
  6875. margin: 10px 10px 10px 0;
  6876. border-radius: 15px;
  6877. box-shadow: 0 0 6px 1px #dfdada;
  6878. "
  6879. v-for="(w, wIndex) in worksStudent[toolIndex][
  6880. gindex
  6881. ]"
  6882. :key="wIndex"
  6883. :class="w.type == 1 ? 'isTypeOne' : ''"
  6884. >
  6885. <div class="workImg" v-if="w.type == 0">
  6886. <img
  6887. :src="w.works"
  6888. @click="previewImg(w.works,w)"
  6889. alt
  6890. />
  6891. <div
  6892. class="answerScore"
  6893. v-if="w.score"
  6894. @click.stop="openScore(w)"
  6895. :class="{
  6896. rightW:
  6897. w.userid == userid ||
  6898. tType == 1 ||
  6899. tType == 4 ||
  6900. w.ateacher == userid,
  6901. }"
  6902. >
  6903. {{ JSON.parse(w.score).wScore }}分
  6904. </div>
  6905. <div
  6906. class="answerScore"
  6907. @click.stop="openScore(w)"
  6908. v-else-if="courseDetail.userid == userid"
  6909. :class="{
  6910. rightW:
  6911. w.userid == userid ||
  6912. tType == 1 ||
  6913. tType == 4 ||
  6914. w.ateacher == userid,
  6915. }"
  6916. >
  6917. 评分
  6918. </div>
  6919. <img
  6920. class="deleteImg"
  6921. src="../assets/deleteworks.png"
  6922. v-if="
  6923. w.userid == userid ||
  6924. tType == 1 ||
  6925. tType == 4
  6926. "
  6927. @click.stop="deleteWorks(w.wid)"
  6928. alt
  6929. />
  6930. </div>
  6931. <div class="workImg" v-if="w.type == 1">
  6932. <img
  6933. :src="word"
  6934. @click="openFile(w.works,w)"
  6935. alt
  6936. />
  6937. <!-- @click="openFile(w.works)" -->
  6938. <div
  6939. class="answerScore"
  6940. v-if="w.score"
  6941. @click.stop="openScore(w)"
  6942. :class="{
  6943. rightW:
  6944. w.userid == userid ||
  6945. tType == 1 ||
  6946. tType == 4 ||
  6947. w.ateacher == userid,
  6948. }"
  6949. >
  6950. {{ JSON.parse(w.score).wScore }}分
  6951. </div>
  6952. <div
  6953. class="answerScore"
  6954. @click.stop="openScore(w)"
  6955. v-else-if="courseDetail.userid == userid"
  6956. :class="{
  6957. rightW:
  6958. w.userid == userid ||
  6959. tType == 1 ||
  6960. tType == 4 ||
  6961. w.ateacher == userid,
  6962. }"
  6963. >
  6964. 评分
  6965. </div>
  6966. <img
  6967. class="deleteImg"
  6968. src="../assets/deleteworks.png"
  6969. v-if="
  6970. w.userid == userid ||
  6971. tType == 1 ||
  6972. tType == 4
  6973. "
  6974. @click.stop="deleteWorks(w.wid)"
  6975. alt
  6976. />
  6977. </div>
  6978. <div class="workImg" v-if="w.type == 3">
  6979. <img
  6980. style="cursor: pointer"
  6981. :src="video"
  6982. @click="openVideo(w)"
  6983. alt
  6984. />
  6985. <!-- @click="openVideo(w.works)" -->
  6986. <div
  6987. class="answerScore"
  6988. v-if="w.score"
  6989. @click.stop="openScore(w)"
  6990. :class="{
  6991. rightW:
  6992. w.userid == userid ||
  6993. tType == 1 ||
  6994. tType == 4 ||
  6995. w.ateacher == userid,
  6996. }"
  6997. >
  6998. {{ JSON.parse(w.score).wScore }}分
  6999. </div>
  7000. <div
  7001. class="answerScore"
  7002. @click.stop="openScore(w)"
  7003. v-else-if="courseDetail.userid == userid"
  7004. :class="{
  7005. rightW:
  7006. w.userid == userid ||
  7007. tType == 1 ||
  7008. tType == 4 ||
  7009. w.ateacher == userid,
  7010. }"
  7011. >
  7012. 评分
  7013. </div>
  7014. <img
  7015. class="deleteImg"
  7016. src="../assets/deleteworks.png"
  7017. v-if="
  7018. w.userid == userid ||
  7019. tType == 1 ||
  7020. tType == 4
  7021. "
  7022. @click.stop="deleteWorks(w.wid)"
  7023. alt
  7024. />
  7025. </div>
  7026. <div class="workImg" v-if="w.type == 12">
  7027. <img
  7028. style="cursor: pointer"
  7029. :src="word2"
  7030. @click="downloadFile(w.works)"
  7031. alt
  7032. />
  7033. <!-- @click="openVideo(w.works)" -->
  7034. <div
  7035. class="answerScore"
  7036. v-if="w.score"
  7037. @click.stop="openScore(w)"
  7038. :class="{
  7039. rightW:
  7040. w.userid == userid ||
  7041. tType == 1 ||
  7042. tType == 4 ||
  7043. w.ateacher == userid,
  7044. }"
  7045. >
  7046. {{ JSON.parse(w.score).wScore }}分
  7047. </div>
  7048. <div
  7049. class="answerScore"
  7050. @click.stop="openScore(w)"
  7051. v-else-if="courseDetail.userid == userid"
  7052. :class="{
  7053. rightW:
  7054. w.userid == userid ||
  7055. tType == 1 ||
  7056. tType == 4 ||
  7057. w.ateacher == userid,
  7058. }"
  7059. >
  7060. 评分
  7061. </div>
  7062. <img
  7063. class="deleteImg"
  7064. src="../assets/deleteworks.png"
  7065. v-if="
  7066. w.userid == userid ||
  7067. tType == 1 ||
  7068. tType == 4
  7069. "
  7070. @click.stop="deleteWorks(w.wid)"
  7071. alt
  7072. />
  7073. </div>
  7074. <div class="comment" style="min-width: 200px">
  7075. <div class="worksName">
  7076. <div>{{ w.sName }}</div>
  7077. </div>
  7078. <div class="commentList">
  7079. <div class="commentList">
  7080. <div
  7081. class="commentImg"
  7082. @click="
  7083. isLikes(
  7084. w.wid,
  7085. userid,
  7086. 1,
  7087. null,
  7088. w.isLikes,
  7089. w.sName
  7090. )
  7091. "
  7092. >
  7093. <img
  7094. :src="
  7095. w.isLikes == true ? likes : noLikes
  7096. "
  7097. alt=""
  7098. />
  7099. </div>
  7100. <div>{{ w.likesCount }}</div>
  7101. </div>
  7102. <div
  7103. class="commentList"
  7104. style="margin-right: 15px"
  7105. >
  7106. <div
  7107. class="commentImg"
  7108. @click="
  7109. commentOther(
  7110. w,
  7111. toolIndex,
  7112. wIndex,
  7113. gindex
  7114. )
  7115. "
  7116. >
  7117. <img
  7118. src="../assets/icon/comment/comment.png"
  7119. alt=""
  7120. />
  7121. </div>
  7122. <div>{{ w.commentCount }}</div>
  7123. </div>
  7124. </div>
  7125. </div>
  7126. </div>
  7127. </div>
  7128. </div>
  7129. </div>
  7130. </div>
  7131. </div>
  7132. </div>
  7133. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7134. 上传文件
  7135. <input
  7136. type="file"
  7137. accept="image/png, image/gif, image/jpeg"
  7138. style="display: none"
  7139. @change="beforeUpload1($event, 2, index)"
  7140. />
  7141. </div>-->
  7142. </div>
  7143. </div>
  7144. <!-- <div
  7145. class="vedioBox"
  7146. style="margin-top: 10px"
  7147. v-if="
  7148. courseDetail.userid == userid ||
  7149. (courseDetail.course_teacher &&
  7150. courseDetail.course_teacher.indexOf(userid) != -1)
  7151. "
  7152. :style="{
  7153. borderRadius:
  7154. !(
  7155. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7156. .toolChoose[0].tool &&
  7157. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7158. .toolChoose[0].tool.length > 0
  7159. ) &&
  7160. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7161. .taskDetail == '' &&
  7162. vChapterData[taskCount].length == 0 &&
  7163. fileC[taskCount].length == 0
  7164. ? '0 0 20px 20px'
  7165. : '20px',
  7166. }"
  7167. >
  7168. <div
  7169. class="queTop"
  7170. @click="isClose = !isClose"
  7171. style="
  7172. padding: 15px 0 15px 37px;
  7173. justify-content: space-between;
  7174. "
  7175. >
  7176. <div class="queTopTitle">新增工具</div>
  7177. <div class="queTopRight">
  7178. <div class="queTopClose" v-if="isClose == 0">
  7179. 展开
  7180. <div class="closeImg">
  7181. <img src="../assets/icon/newIcon/close.png" alt="" />
  7182. </div>
  7183. </div>
  7184. <div class="queTopClose" v-if="isClose == 1">
  7185. 折叠
  7186. <div class="openImg">
  7187. <img src="../assets/icon/newIcon/open.png" alt="" />
  7188. </div>
  7189. </div>
  7190. <el-button
  7191. style="margin: 0 30px 0 auto"
  7192. type="primary"
  7193. size="small"
  7194. v-if="isClose == 1 && checktoolArray.length > 0"
  7195. @click.stop="addToolChoose"
  7196. >确定</el-button
  7197. >
  7198. </div>
  7199. </div>
  7200. <div
  7201. class="tool_work_box"
  7202. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7203. >
  7204. <div class="tool_box">
  7205. <div class="tool_type_box">
  7206. <div class="chooseWho">
  7207. <div
  7208. :class="toolType == 0 ? 'isChooseActive' : ''"
  7209. @click="(toolType = 0), $forceUpdate()"
  7210. >
  7211. 互动类
  7212. </div>
  7213. <div
  7214. :class="toolType == 1 ? 'isChooseActive' : ''"
  7215. @click="(toolType = 1), $forceUpdate()"
  7216. >
  7217. 思维类
  7218. </div>
  7219. <div
  7220. :class="toolType == 2 ? 'isChooseActive' : ''"
  7221. @click="(toolType = 2), $forceUpdate()"
  7222. >
  7223. 测评类
  7224. </div>
  7225. <div
  7226. :class="toolType == 3 ? 'isChooseActive' : ''"
  7227. @click="(toolType = 3), $forceUpdate()"
  7228. >
  7229. 编程类
  7230. </div>
  7231. <div
  7232. :class="toolType == 5 ? 'isChooseActive' : ''"
  7233. @click="(toolType = 5), $forceUpdate()"
  7234. >
  7235. 学科类
  7236. </div>
  7237. </div>
  7238. </div>
  7239. <div>
  7240. <div class="toolSort" v-if="toolType == 0">
  7241. <div class="tool">
  7242. <div class="whiteBIcon" @click="addTools2(10)">
  7243. <img
  7244. src="../assets/icon/thirdToolList/time.png"
  7245. alt
  7246. />
  7247. <div style="margin: 5px 0">倒计时</div>
  7248. </div>
  7249. <div class="check" @click="addTools2(10)">
  7250. <img
  7251. src="../assets/icon/checkNo.png"
  7252. alt
  7253. v-if="checktoolArray.indexOf(10) == -1"
  7254. />
  7255. <div class="checkDiv" v-else>
  7256. <img src="../assets/icon/checkedIs.png" alt /><span
  7257. >已选择</span
  7258. >
  7259. </div>
  7260. </div>
  7261. </div>
  7262. <div class="tool">
  7263. <div class="whiteBIcon" @click="addTools2(65)">
  7264. <img
  7265. src="../assets/icon/firstToolList/pickPeople.png"
  7266. alt
  7267. />
  7268. <div style="margin: 5px 0">挑人</div>
  7269. </div>
  7270. <div class="check" @click="addTools2(65)">
  7271. <img
  7272. src="../assets/icon/checkNo.png"
  7273. alt
  7274. v-if="checktoolArray.indexOf(65) == -1"
  7275. />
  7276. <div class="checkDiv" v-else>
  7277. <img src="../assets/icon/checkedIs.png" alt /><span
  7278. >已选择</span
  7279. >
  7280. </div>
  7281. </div>
  7282. </div>
  7283. </div>
  7284. <div class="toolSort" v-if="toolType == 1">
  7285. <div class="tool">
  7286. <div class="whiteBIcon" @click="addTools2(7)">
  7287. <img
  7288. src="../assets/icon/secondToolList/mindNetwork.png"
  7289. alt
  7290. />
  7291. <div style="margin: 5px 0">思维网格</div>
  7292. </div>
  7293. <div class="check" @click="addTools2(7)">
  7294. <img
  7295. src="../assets/icon/checkNo.png"
  7296. alt
  7297. v-if="checktoolArray.indexOf(7) == -1"
  7298. />
  7299. <div class="checkDiv" v-else>
  7300. <img src="../assets/icon/checkedIs.png" alt /><span
  7301. >已选择</span
  7302. >
  7303. </div>
  7304. </div>
  7305. </div>
  7306. <div class="tool">
  7307. <div class="whiteBIcon" @click="addTools2(1)">
  7308. <img
  7309. src="../assets/icon/secondToolList/whiteBoard.png"
  7310. alt
  7311. />
  7312. <div style="margin: 5px 0">电子白板</div>
  7313. </div>
  7314. <div class="check" @click="addTools2(1)">
  7315. <img
  7316. src="../assets/icon/checkNo.png"
  7317. alt
  7318. v-if="checktoolArray.indexOf(1) == -1"
  7319. />
  7320. <div class="checkDiv" v-else>
  7321. <img src="../assets/icon/checkedIs.png" alt /><span
  7322. >已选择</span
  7323. >
  7324. </div>
  7325. </div>
  7326. </div>
  7327. <div class="tool">
  7328. <div class="whiteBIcon" @click="addTools2(52)">
  7329. <img
  7330. src="../assets/icon/fourthToolList/text.png"
  7331. alt
  7332. />
  7333. <div style="margin: 5px 0">文档</div>
  7334. </div>
  7335. <div class="check" @click="addTools2(52)">
  7336. <img
  7337. src="../assets/icon/checkNo.png"
  7338. alt
  7339. v-if="checktoolArray.indexOf(52) == -1"
  7340. />
  7341. <div class="checkDiv" v-else>
  7342. <img src="../assets/icon/checkedIs.png" alt /><span
  7343. >已选择</span
  7344. >
  7345. </div>
  7346. </div>
  7347. </div>
  7348. <div class="tool">
  7349. <div class="whiteBIcon" @click="addTools2(3)">
  7350. <img
  7351. src="../assets/icon/secondToolList/mindMapping.png"
  7352. alt
  7353. />
  7354. <div style="margin: 5px 0">思维导图</div>
  7355. </div>
  7356. <div class="check" @click="addTools2(3)">
  7357. <img
  7358. src="../assets/icon/checkNo.png"
  7359. alt
  7360. v-if="checktoolArray.indexOf(3) == -1"
  7361. />
  7362. <div class="checkDiv" v-else>
  7363. <img src="../assets/icon/checkedIs.png" alt /><span
  7364. >已选择</span
  7365. >
  7366. </div>
  7367. </div>
  7368. </div>
  7369. <div class="tool">
  7370. <div class="whiteBIcon" @click="addTools2(48)">
  7371. <img
  7372. src="../assets/icon/fourthToolList/table.png"
  7373. alt
  7374. />
  7375. <div style="margin: 5px 0">表格</div>
  7376. </div>
  7377. <div class="check" @click="addTools2(48)">
  7378. <img
  7379. src="../assets/icon/checkNo.png"
  7380. alt
  7381. v-if="checktoolArray.indexOf(48) == -1"
  7382. />
  7383. <div class="checkDiv" v-else>
  7384. <img src="../assets/icon/checkedIs.png" alt /><span
  7385. >已选择</span
  7386. >
  7387. </div>
  7388. </div>
  7389. </div>
  7390. </div>
  7391. <div class="toolSort" v-if="toolType == 6">
  7392. <div v-show="tooC == 49">
  7393. <img
  7394. @click="addTools(tooC, toolIndex, taskCount)"
  7395. src="../assets/icon/fourthToolList/group.png"
  7396. alt
  7397. />
  7398. <div style="margin: 5px 0">学生分组</div>
  7399. </div>
  7400. </div>
  7401. <div class="toolSort" v-if="toolType == 2">
  7402. <div class="tool">
  7403. <div class="whiteBIcon" @click="addTools2(16)">
  7404. <img
  7405. src="../assets/icon/thirdToolList/work.png"
  7406. alt
  7407. />
  7408. <div style="margin: 5px 0">作业提交</div>
  7409. </div>
  7410. <div class="check" @click="addTools2(16)">
  7411. <img
  7412. src="../assets/icon/checkNo.png"
  7413. alt
  7414. v-if="checktoolArray.indexOf(16) == -1"
  7415. />
  7416. <div class="checkDiv" v-else>
  7417. <img src="../assets/icon/checkedIs.png" alt /><span
  7418. >已选择</span
  7419. >
  7420. </div>
  7421. </div>
  7422. </div>
  7423. <div class="tool">
  7424. <div class="whiteBIcon" @click="addTools2(50)">
  7425. <img
  7426. src="../assets/icon/thirdToolList/plwork.png"
  7427. alt
  7428. />
  7429. <div style="margin: 5px 0">批量上传</div>
  7430. </div>
  7431. <div class="check" @click="addTools2(50)">
  7432. <img
  7433. src="../assets/icon/checkNo.png"
  7434. alt
  7435. v-if="checktoolArray.indexOf(50) == -1"
  7436. />
  7437. <div class="checkDiv" v-else>
  7438. <img src="../assets/icon/checkedIs.png" alt /><span
  7439. >已选择</span
  7440. >
  7441. </div>
  7442. </div>
  7443. </div>
  7444. </div>
  7445. <div class="toolSort" v-if="toolType == 3">
  7446. <div class="tool">
  7447. <div class="whiteBIcon" @click="addTools2(18)">
  7448. <img
  7449. src="../assets/icon/thirdToolList/trainPlatform.png"
  7450. alt
  7451. />
  7452. <div style="margin: 5px 0">训练平台</div>
  7453. </div>
  7454. <div class="check" @click="addTools2(18)">
  7455. <img
  7456. src="../assets/icon/checkNo.png"
  7457. alt
  7458. v-if="checktoolArray.indexOf(18) == -1"
  7459. />
  7460. <div class="checkDiv" v-else>
  7461. <img src="../assets/icon/checkedIs.png" alt /><span
  7462. >已选择</span
  7463. >
  7464. </div>
  7465. </div>
  7466. </div>
  7467. <div class="tool">
  7468. <div class="whiteBIcon" @click="addTools2(21)">
  7469. <img
  7470. src="../assets/icon/fourthToolList/program.png"
  7471. alt
  7472. />
  7473. <div style="margin: 5px 0">AIoT Blockly</div>
  7474. </div>
  7475. <div class="check" @click="addTools2(21)">
  7476. <img
  7477. src="../assets/icon/checkNo.png"
  7478. alt
  7479. v-if="checktoolArray.indexOf(21) == -1"
  7480. />
  7481. <div class="checkDiv" v-else>
  7482. <img src="../assets/icon/checkedIs.png" alt /><span
  7483. >已选择</span
  7484. >
  7485. </div>
  7486. </div>
  7487. </div>
  7488. <div class="tool">
  7489. <div class="whiteBIcon" @click="addTools2(23)">
  7490. <img
  7491. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7492. alt
  7493. />
  7494. <div style="margin: 5px 0">AI Python</div>
  7495. </div>
  7496. <div class="check" @click="addTools2(23)">
  7497. <img
  7498. src="../assets/icon/checkNo.png"
  7499. alt
  7500. v-if="checktoolArray.indexOf(23) == -1"
  7501. />
  7502. <div class="checkDiv" v-else>
  7503. <img src="../assets/icon/checkedIs.png" alt /><span
  7504. >已选择</span
  7505. >
  7506. </div>
  7507. </div>
  7508. </div>
  7509. <div class="tool">
  7510. <div class="whiteBIcon" @click="addTools2(24)">
  7511. <img
  7512. src="../assets/icon/fourthToolList/AIprogram.png"
  7513. alt
  7514. />
  7515. <div style="margin: 5px 0">AI Blockly</div>
  7516. </div>
  7517. <div class="check" @click="addTools2(24)">
  7518. <img
  7519. src="../assets/icon/checkNo.png"
  7520. alt
  7521. v-if="checktoolArray.indexOf(24) == -1"
  7522. />
  7523. <div class="checkDiv" v-else>
  7524. <img src="../assets/icon/checkedIs.png" alt /><span
  7525. >已选择</span
  7526. >
  7527. </div>
  7528. </div>
  7529. </div>
  7530. <div class="tool">
  7531. <div class="whiteBIcon" @click="addTools2(32)">
  7532. <img
  7533. src="../assets/icon/thirdToolList/code.png"
  7534. alt
  7535. />
  7536. <div style="margin: 5px 0">源码编辑</div>
  7537. </div>
  7538. <div class="check" @click="addTools2(32)">
  7539. <img
  7540. src="../assets/icon/checkNo.png"
  7541. alt
  7542. v-if="checktoolArray.indexOf(32) == -1"
  7543. />
  7544. <div class="checkDiv" v-else>
  7545. <img src="../assets/icon/checkedIs.png" alt /><span
  7546. >已选择</span
  7547. >
  7548. </div>
  7549. </div>
  7550. </div>
  7551. <div class="tool">
  7552. <div class="whiteBIcon" @click="addTools2(57)">
  7553. <img
  7554. src="../assets/icon/fourthToolList/cocopi.png"
  7555. alt
  7556. />
  7557. <div style="margin: 5px 0">CocoPi</div>
  7558. </div>
  7559. <div class="check" @click="addTools2(57)">
  7560. <img
  7561. src="../assets/icon/checkNo.png"
  7562. alt
  7563. v-if="checktoolArray.indexOf(57) == -1"
  7564. />
  7565. <div class="checkDiv" v-else>
  7566. <img src="../assets/icon/checkedIs.png" alt /><span
  7567. >已选择</span
  7568. >
  7569. </div>
  7570. </div>
  7571. </div>
  7572. <div class="tool">
  7573. <div class="whiteBIcon" @click="addTools2(63)">
  7574. <img
  7575. src="../assets/icon/fourthToolList/Wood.png"
  7576. alt
  7577. />
  7578. <div style="margin: 5px 0">海龟编程</div>
  7579. </div>
  7580. <div class="check" @click="addTools2(63)">
  7581. <img
  7582. src="../assets/icon/checkNo.png"
  7583. alt
  7584. v-if="checktoolArray.indexOf(63) == -1"
  7585. />
  7586. <div class="checkDiv" v-else>
  7587. <img src="../assets/icon/checkedIs.png" alt /><span
  7588. >已选择</span
  7589. >
  7590. </div>
  7591. </div>
  7592. </div>
  7593. </div>
  7594. <div class="toolSort" v-if="toolType == 5">
  7595. <div class="tool">
  7596. <div class="whiteBIcon" @click="addTools2(28)">
  7597. <img
  7598. src="../assets/icon/secondToolList/translation.png"
  7599. alt
  7600. />
  7601. <div style="margin: 5px 0">翻译</div>
  7602. </div>
  7603. <div class="check" @click="addTools2(28)">
  7604. <img
  7605. src="../assets/icon/checkNo.png"
  7606. alt
  7607. v-if="checktoolArray.indexOf(28) == -1"
  7608. />
  7609. <div class="checkDiv" v-else>
  7610. <img src="../assets/icon/checkedIs.png" alt /><span
  7611. >已选择</span
  7612. >
  7613. </div>
  7614. </div>
  7615. </div>
  7616. <div class="tool">
  7617. <div class="whiteBIcon" @click="addTools2(31)">
  7618. <img
  7619. src="../assets/icon/secondToolList/networkPanel.png"
  7620. alt
  7621. />
  7622. <div style="margin: 5px 0">数字画板</div>
  7623. </div>
  7624. <div class="check" @click="addTools2(31)">
  7625. <img
  7626. src="../assets/icon/checkNo.png"
  7627. alt
  7628. v-if="checktoolArray.indexOf(31) == -1"
  7629. />
  7630. <div class="checkDiv" v-else>
  7631. <img src="../assets/icon/checkedIs.png" alt /><span
  7632. >已选择</span
  7633. >
  7634. </div>
  7635. </div>
  7636. </div>
  7637. <div class="tool">
  7638. <div class="whiteBIcon" @click="addTools2(39)">
  7639. <img
  7640. src="../assets/icon/secondToolList/GeoGebra.png"
  7641. alt
  7642. />
  7643. <div style="margin: 5px 0">GeoGebra</div>
  7644. </div>
  7645. <div class="check" @click="addTools2(39)">
  7646. <img
  7647. src="../assets/icon/checkNo.png"
  7648. alt
  7649. v-if="checktoolArray.indexOf(39) == -1"
  7650. />
  7651. <div class="checkDiv" v-else>
  7652. <img src="../assets/icon/checkedIs.png" alt /><span
  7653. >已选择</span
  7654. >
  7655. </div>
  7656. </div>
  7657. </div>
  7658. <div class="tool">
  7659. <div class="whiteBIcon" @click="addTools2(66)">
  7660. <img
  7661. src="../assets/icon/secondToolList/formulaEdi.png"
  7662. alt
  7663. />
  7664. <div style="margin: 5px 0">公式编辑</div>
  7665. </div>
  7666. <div class="check" @click="addTools2(66)">
  7667. <img
  7668. src="../assets/icon/checkNo.png"
  7669. alt
  7670. v-if="checktoolArray.indexOf(66) == -1"
  7671. />
  7672. <div class="checkDiv" v-else>
  7673. <img src="../assets/icon/checkedIs.png" alt /><span
  7674. >已选择</span
  7675. >
  7676. </div>
  7677. </div>
  7678. </div>
  7679. <div class="tool">
  7680. <div class="whiteBIcon" @click="addTools2(67)">
  7681. <img
  7682. src="../assets/icon/secondToolList/molStr.png"
  7683. alt
  7684. />
  7685. <div style="margin: 5px 0">分子结构</div>
  7686. </div>
  7687. <div class="check" @click="addTools2(67)">
  7688. <img
  7689. src="../assets/icon/checkNo.png"
  7690. alt
  7691. v-if="checktoolArray.indexOf(67) == -1"
  7692. />
  7693. <div class="checkDiv" v-else>
  7694. <img src="../assets/icon/checkedIs.png" alt /><span
  7695. >已选择</span
  7696. >
  7697. </div>
  7698. </div>
  7699. </div>
  7700. <div class="tool">
  7701. <div class="whiteBIcon" @click="addTools2(68)">
  7702. <img
  7703. src="../assets/icon/secondToolList/timeAxis.png"
  7704. alt
  7705. />
  7706. <div style="margin: 5px 0">时间轴</div>
  7707. </div>
  7708. <div class="check" @click="addTools2(68)">
  7709. <img
  7710. src="../assets/icon/checkNo.png"
  7711. alt
  7712. v-if="checktoolArray.indexOf(68) == -1"
  7713. />
  7714. <div class="checkDiv" v-else>
  7715. <img src="../assets/icon/checkedIs.png" alt /><span
  7716. >已选择</span
  7717. >
  7718. </div>
  7719. </div>
  7720. </div>
  7721. </div>
  7722. <div class="toolSort" v-if="toolType == 7">
  7723. <div class="tool">
  7724. <div class="whiteBIcon" @click="addTools2(40)">
  7725. <img
  7726. src="../assets/icon/secondToolList/eval.png"
  7727. alt
  7728. />
  7729. <div style="margin: 5px 0">个人评价</div>
  7730. </div>
  7731. <div class="check" @click="addTools2(40)">
  7732. <img
  7733. src="../assets/icon/checkNo.png"
  7734. alt
  7735. v-if="checktoolArray.indexOf(40) == -1"
  7736. />
  7737. <div class="checkDiv" v-else>
  7738. <img src="../assets/icon/checkedIs.png" alt /><span
  7739. >已选择</span
  7740. >
  7741. </div>
  7742. </div>
  7743. </div>
  7744. </div>
  7745. <div class="toolSort" v-if="toolType == 4">
  7746. <div class="tool">
  7747. <div class="whiteBIcon" @click="addTools2(26)">
  7748. <img
  7749. src="../assets/icon/thirdToolList/courseDesign.png"
  7750. alt
  7751. />
  7752. <div style="margin: 5px 0">课程设计</div>
  7753. </div>
  7754. <div class="check" @click="addTools2(26)">
  7755. <img
  7756. src="../assets/icon/checkNo.png"
  7757. alt
  7758. v-if="checktoolArray.indexOf(26) == -1"
  7759. />
  7760. <div class="checkDiv" v-else>
  7761. <img src="../assets/icon/checkedIs.png" alt /><span
  7762. >已选择</span
  7763. >
  7764. </div>
  7765. </div>
  7766. </div>
  7767. <div class="tool">
  7768. <div class="whiteBIcon" @click="addTools2(25)">
  7769. <img
  7770. src="../assets/icon/thirdToolList/evalua.png"
  7771. alt
  7772. />
  7773. <div style="margin: 5px 0">目标管理</div>
  7774. </div>
  7775. <div class="check" @click="addTools2(25)">
  7776. <img
  7777. src="../assets/icon/checkNo.png"
  7778. alt
  7779. v-if="checktoolArray.indexOf(25) == -1"
  7780. />
  7781. <div class="checkDiv" v-else>
  7782. <img src="../assets/icon/checkedIs.png" alt /><span
  7783. >已选择</span
  7784. >
  7785. </div>
  7786. </div>
  7787. </div>
  7788. </div>
  7789. </div>
  7790. </div>
  7791. </div>
  7792. </div> -->
  7793. <div
  7794. class="vedioBox"
  7795. style="margin-top: 10px; border-radius: 20px"
  7796. v-if="
  7797. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7798. .eList &&
  7799. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7800. .eList.length &&
  7801. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7802. .eList.length > 0 &&
  7803. tType != 2
  7804. "
  7805. >
  7806. <div
  7807. class="queTop"
  7808. style="
  7809. font-size: 20px;
  7810. padding: 15px 0 15px 37px;
  7811. font-weight: bold;
  7812. "
  7813. >
  7814. <!-- <div class="question" style="width: 30px">
  7815. <img src="../assets/icon/toolIcon.png" alt />
  7816. </div>
  7817. <div class="queTitle">
  7818. <div>工具</div>
  7819. </div>-->
  7820. 评一评
  7821. </div>
  7822. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7823. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7824. <el-table
  7825. :data="
  7826. chapInfoList[courseType].chapterInfo[0].taskJson[
  7827. taskCount
  7828. ].eList
  7829. "
  7830. :header-cell-style="{ background: '#F0F4FA' }"
  7831. :row-class-name="tableRowClassName"
  7832. border
  7833. stripe
  7834. style="width: 100%"
  7835. >
  7836. <el-table-column
  7837. label="评价名称"
  7838. align="center"
  7839. >
  7840. <template slot-scope="scope"
  7841. ><div>{{ scope.row.value }}</div></template
  7842. >
  7843. </el-table-column>
  7844. <el-table-column
  7845. label="评价描述"
  7846. align="center"
  7847. >
  7848. <template slot-scope="scope"
  7849. ><div>
  7850. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7851. </div></template
  7852. >
  7853. </el-table-column>
  7854. <el-table-column label="目标" align="center">
  7855. <template slot-scope="scope"
  7856. ><div>
  7857. {{
  7858. scope.row.target
  7859. ? scope.row.target[scope.row.target.length - 1]
  7860. : "-"
  7861. }}
  7862. </div></template
  7863. ></el-table-column
  7864. >
  7865. </el-table>
  7866. <!-- <div
  7867. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7868. .chapterInfo[0].taskJson[taskCount].eList"
  7869. :key="eIndex"
  7870. class="elist_input_box"
  7871. >
  7872. <div style="width: 95%">
  7873. <div
  7874. style="
  7875. display: flex;
  7876. flex-direction: row;
  7877. flex-wrap: nowrap;
  7878. align-items: center;
  7879. "
  7880. >
  7881. <div style="max-width: calc(100% - 285px)">
  7882. <span>{{ eItem.value }}</span>
  7883. </div>
  7884. <div
  7885. style="
  7886. padding-left: 25px;
  7887. display: flex;
  7888. flex-direction: row;
  7889. align-items: center;
  7890. "
  7891. >
  7892. <el-rate
  7893. v-model="eItem.score"
  7894. :colors="colors"
  7895. disabled
  7896. ></el-rate>
  7897. </div>
  7898. </div>
  7899. <div class="elist_inptu_text" style="padding-left: 10px">
  7900. <span v-if="eItem.detail != ''">{{
  7901. eItem.detail
  7902. }}</span>
  7903. <span v-else style="color: #b2b1b3; font-size: 14px"
  7904. >暂无描述...</span
  7905. >
  7906. </div>
  7907. </div>
  7908. </div> -->
  7909. </div>
  7910. <div
  7911. v-if="evalua"
  7912. style="
  7913. border: 1px solid #e5e5e5;
  7914. max-width: 650px;
  7915. width: 100%;
  7916. margin-top: 20px;
  7917. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7918. "
  7919. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7920. >
  7921. <div class="e_add_top">
  7922. <div class="e_add_title" style="width: 100%">
  7923. <!-- <span>目标管理名称</span> -->
  7924. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7925. <img
  7926. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7927. src="../assets/line.png"
  7928. class="cru_line"
  7929. style="
  7930. width: 125px;
  7931. height: 20px;
  7932. bottom: -10px;
  7933. left: 5px;
  7934. "
  7935. />
  7936. <!-- <el-input
  7937. v-model="eTitle"
  7938. placeholder="请输入名称"
  7939. @change="setMindData"
  7940. ></el-input>-->
  7941. <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>
  7942. <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>
  7943. </div>
  7944. </div>
  7945. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7946. <div class="e_add_list_pbox">
  7947. <div class="e_add_list_pbox_title">
  7948. <!-- <span class="type_title">切换模式</span> -->
  7949. <div class="type_content">
  7950. <span
  7951. :class="{ active: typeMode == 1 }"
  7952. @click="typeMode = 1"
  7953. >目标树</span
  7954. >
  7955. <span
  7956. :class="{ active: typeMode == 2 }"
  7957. @click="typeMode = 2"
  7958. >目标罗盘</span
  7959. >
  7960. <!-- <span
  7961. :class="{ active: typeMode == 3 }"
  7962. @click="typeMode = 3"
  7963. >目标看板</span
  7964. > -->
  7965. </div>
  7966. </div>
  7967. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7968. <Mind
  7969. :showBar="false"
  7970. :mindData="data"
  7971. style="width: 100%"
  7972. v-show="typeMode == 1"
  7973. ></Mind>
  7974. <Sunburst
  7975. :Josn="eJson"
  7976. :num="eJSONNum"
  7977. style="width: 100%"
  7978. v-if="typeMode == 2"
  7979. ></Sunburst>
  7980. <SeeBoard
  7981. :Josn="eJson"
  7982. :num="eJSONNum"
  7983. :ename="eTitle"
  7984. style="width: 100%"
  7985. v-if="typeMode == 3"
  7986. >
  7987. </SeeBoard>
  7988. </div>
  7989. </div>
  7990. </div>
  7991. </div>
  7992. </div>
  7993. </div>
  7994. <!-- <div
  7995. class="project_box"
  7996. style="margin-top: 15px; padding-bottom: 30px"
  7997. >
  7998. <div
  7999. style="
  8000. display: flex;
  8001. flex-wrap: nowrap;
  8002. flex-direction: column;
  8003. position: relative;
  8004. "
  8005. >
  8006. <div class="queTop">
  8007. <div class="question">
  8008. <img src="../assets/icon/homeWork.png" alt="" />
  8009. </div>
  8010. <div class="queTitle">
  8011. <div>作业提交<span>(提交图文视频等)</span></div>
  8012. <div>:任务:{{ task.task }}</div>
  8013. </div>
  8014. </div>
  8015. <div class="ediBottom">
  8016. <div
  8017. class="addEditor"
  8018. style="margin-top: 23px"
  8019. @click="openAddWork"
  8020. v-if="!isNoHomeWork"
  8021. >
  8022. 选择文件
  8023. </div>
  8024. <div
  8025. class="addEditor"
  8026. style="margin-top: 23px"
  8027. @click="openAddWork"
  8028. v-else
  8029. >
  8030. 已提交
  8031. </div>
  8032. </div>
  8033. </div>
  8034. </div>-->
  8035. </div>
  8036. </div>
  8037. <el-dialog
  8038. title="作业提交"
  8039. :visible.sync="dialogVisible"
  8040. :append-to-body="true"
  8041. width="500px"
  8042. :before-close="handleClose"
  8043. class="dialog_change"
  8044. >
  8045. <div class="marginT">
  8046. <div>上传文件</div>
  8047. <div
  8048. class="chapter_add"
  8049. @click="addImg($event)"
  8050. v-if="studyJuri[0].cover.length == 0"
  8051. >
  8052. <div class="up_photo">
  8053. <img src="../assets/icon/uploadImg.png" alt />
  8054. </div>
  8055. <!-- <input
  8056. type="file"
  8057. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8058. style="display: none"
  8059. @change="beforeUpload1($event, 1)"
  8060. /> -->
  8061. <input
  8062. type="file"
  8063. accept="*"
  8064. style="display: none"
  8065. @change="beforeUpload1($event, 1)"
  8066. />
  8067. <!-- <input
  8068. type="file"
  8069. accept="image/*"
  8070. capture="camera"
  8071. style="display: none"
  8072. @change="beforeUpload1($event, 1)"
  8073. /> -->
  8074. </div>
  8075. <div
  8076. class="chapter_add"
  8077. style="
  8078. display: flex;
  8079. width: 100%;
  8080. flex-direction: row;
  8081. flex-wrap: wrap;
  8082. justify-content: flex-start;
  8083. padding: 15px 0;
  8084. "
  8085. v-if="studyJuri[0].cover.length > 0"
  8086. >
  8087. <div class="upCover">
  8088. <img
  8089. :src="studyJuri[0].cover[0].url"
  8090. alt
  8091. v-if="fileType == 0"
  8092. />
  8093. <img :src="word" alt v-else-if="fileType == 1" />
  8094. <img :src="video" alt v-else-if="fileType == 2" />
  8095. <img :src="word2" alt v-else-if="fileType == 3" />
  8096. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8097. <div class="deleteWord" @click="clean(1)">
  8098. <img src="../assets/icon/deleteWorks.png" alt />
  8099. </div>
  8100. </div>
  8101. </div>
  8102. </div>
  8103. <div
  8104. class="upload_send"
  8105. @click="addCourseWorks(taskCount)"
  8106. v-if="!proVisible"
  8107. >
  8108. 提交
  8109. </div>
  8110. </el-dialog>
  8111. </div>
  8112. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8113. <classRoomHelper v-if="!['2'].includes(tType) || canUseCourseId.includes(id)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8114. '/courseDetail?userid=' +
  8115. userid +
  8116. '&oid=' +
  8117. oid +
  8118. '&org=' +
  8119. org +
  8120. '&cid=' +
  8121. classId +
  8122. '&courseId=' +
  8123. id +
  8124. '&tType=' +
  8125. tType +
  8126. '&screenType=' +
  8127. screenType
  8128. )"></classRoomHelper>
  8129. </div>
  8130. <div
  8131. class="pButton"
  8132. @click="(pzDialog = true), selectPz()"
  8133. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8134. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8135. >
  8136. <!-- 批 -->
  8137. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  8138. </div>
  8139. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8140. <div class="pzTop2">
  8141. <!-- <div>评论</div>
  8142. <div @click="pzDialog = false">
  8143. <img src="../assets/close1.png" alt="" />
  8144. </div> -->
  8145. <div class="checkbox">
  8146. <!-- <div class="check" style="font-size: 25px; position: unset">
  8147. 评论
  8148. </div> -->
  8149. <div class="cb-tabList">
  8150. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8151. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8152. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8153. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8154. </div>
  8155. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8156. <el-option label="时间降序" :value="1"></el-option>
  8157. <el-option label="时间升序" :value="2"></el-option>
  8158. <el-option label="我的评课" :value="3"></el-option>
  8159. </el-select>
  8160. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8161. </div>
  8162. </div>
  8163. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8164. <div class="pzListBox" v-if="pzList && pzList.length">
  8165. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8166. <div class="pzNavTop">
  8167. <div>评</div>
  8168. <div>
  8169. {{
  8170. pz.username && pz.username.length > 5
  8171. ? pz.username.substring(0, 5) + "..."
  8172. : pz.username
  8173. }}的评论
  8174. </div>
  8175. <div
  8176. class="pzDelete"
  8177. v-if="pz.userid == userid"
  8178. @click="deletePz(pz.id)"
  8179. >
  8180. 删除
  8181. </div>
  8182. </div>
  8183. <div
  8184. @click="checkImg(getImgList(pz.content))"
  8185. class="pzContent cont"
  8186. v-html="pz.content"
  8187. v-if="pz.type == '1'"
  8188. ></div>
  8189. <div class="pzContent" v-if="pz.type == '2'">
  8190. <audio :src="pz.content" controls="controls" ref="audio">
  8191. Your browser does not support the audio element.
  8192. </audio>
  8193. </div>
  8194. <div class="pzContent" v-if="pz.type == '3'">
  8195. <img
  8196. :src="pz.content"
  8197. style="width: 90%; margin: 0 auto; display: block"
  8198. @click="previewImg(pz.content)"
  8199. />
  8200. </div>
  8201. <div class="timeAndReply">
  8202. <div class="time">
  8203. {{ pz.time }}
  8204. </div>
  8205. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8206. </div>
  8207. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8208. <div
  8209. v-for="(h, hIndex) in pz.hfList"
  8210. :key="hIndex"
  8211. class="hfItem"
  8212. >
  8213. <div class="whoReplyWho">
  8214. <div class="hfName">{{ h.username }}</div>
  8215. <div class="hfImg">
  8216. <img src="../assets/icon/newIcons/right.png" alt="" />
  8217. </div>
  8218. <div class="hfName">{{ pz.username }}</div>
  8219. </div>
  8220. <div class="hfContent" v-html="h.content"></div>
  8221. <div class="hfBottom">
  8222. <div class="hfTime">{{ h.time }}</div>
  8223. <div
  8224. class="deleteHfItem"
  8225. @click="deleteReply(h.id)"
  8226. v-if="userid == h.userid"
  8227. >
  8228. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8229. </div>
  8230. </div>
  8231. </div>
  8232. </div>
  8233. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8234. <div class="replyInput">
  8235. <el-input v-model="reply[pzIndex]"></el-input>
  8236. </div>
  8237. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8238. </div> -->
  8239. </div>
  8240. </div>
  8241. <div class="noPz" v-else>
  8242. <img src="../assets/icon/noPz.png" alt="" />
  8243. </div>
  8244. <div class="addPzButton">
  8245. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8246. 添加评论
  8247. </div>
  8248. <!-- <div class="img1">
  8249. <div @click="(addPzDialog = true), (pzType = 2)">
  8250. <img src="../assets/audio.png" /><span>音频</span>
  8251. </div>
  8252. </div> -->
  8253. </div>
  8254. </div>
  8255. <div class="scoreList" v-if="commentTagShow==1">
  8256. <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"/>
  8257. </div>
  8258. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8259. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8260. </div>
  8261. </div>
  8262. <div
  8263. v-if="toolDialogVisible == true"
  8264. class="toolMask"
  8265. @click="toolDialogVisible = false"
  8266. ></div>
  8267. <div v-if="toolDialogVisible == true" class="addToolCss">
  8268. <div class="toolTop">
  8269. <div style="font-weight: bold">新增工具</div>
  8270. <div @click="toolDialogVisible = false">
  8271. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8272. </div>
  8273. </div>
  8274. <div class="tool_box">
  8275. <div class="tool_type_box">
  8276. <div class="chooseWho">
  8277. <div
  8278. :class="toolType == 0 ? 'isChooseActive' : ''"
  8279. @click="(toolType = 0), $forceUpdate()"
  8280. >
  8281. 互动类
  8282. </div>
  8283. <div
  8284. :class="toolType == 1 ? 'isChooseActive' : ''"
  8285. @click="(toolType = 1), $forceUpdate()"
  8286. >
  8287. 思维类
  8288. </div>
  8289. <div
  8290. :class="toolType == 2 ? 'isChooseActive' : ''"
  8291. @click="(toolType = 2), $forceUpdate()"
  8292. >
  8293. 测评类
  8294. </div>
  8295. <div
  8296. :class="toolType == 3 ? 'isChooseActive' : ''"
  8297. @click="(toolType = 3), $forceUpdate()"
  8298. >
  8299. 编程类
  8300. </div>
  8301. <div
  8302. :class="toolType == 5 ? 'isChooseActive' : ''"
  8303. @click="(toolType = 5), $forceUpdate()"
  8304. >
  8305. 学科类
  8306. </div>
  8307. </div>
  8308. </div>
  8309. <div>
  8310. <div class="toolSort" v-if="toolType == 0">
  8311. <div
  8312. class="tool"
  8313. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8314. @click="addTools2(10)"
  8315. >
  8316. <div class="whiteBIcon">
  8317. <img src="../assets/icon/thirdToolList/time.png" alt />
  8318. <div style="margin: 5px 0">倒计时</div>
  8319. </div>
  8320. <div class="check">
  8321. <div
  8322. v-if="checktoolArray.indexOf(10) == -1"
  8323. class="noChoose"
  8324. ></div>
  8325. <div v-else class="isChoose"></div>
  8326. </div>
  8327. </div>
  8328. <div
  8329. class="tool"
  8330. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8331. @click="addTools2(65)"
  8332. >
  8333. <div class="whiteBIcon">
  8334. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8335. <div style="margin: 5px 0">挑人</div>
  8336. </div>
  8337. <div class="check">
  8338. <div
  8339. v-if="checktoolArray.indexOf(65) == -1"
  8340. class="noChoose"
  8341. ></div>
  8342. <div v-else class="isChoose"></div>
  8343. </div>
  8344. </div>
  8345. </div>
  8346. <div class="toolSort" v-if="toolType == 1">
  8347. <div
  8348. class="tool"
  8349. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8350. @click="addTools2(7)"
  8351. >
  8352. <div class="whiteBIcon">
  8353. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8354. <div style="margin: 5px 0">思维网格</div>
  8355. </div>
  8356. <div class="check">
  8357. <div
  8358. v-if="checktoolArray.indexOf(7) == -1"
  8359. class="noChoose"
  8360. ></div>
  8361. <div v-else class="isChoose"></div>
  8362. </div>
  8363. </div>
  8364. <div
  8365. class="tool"
  8366. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8367. @click="addTools2(1)"
  8368. >
  8369. <div class="whiteBIcon">
  8370. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8371. <div style="margin: 5px 0">电子白板</div>
  8372. </div>
  8373. <div class="check">
  8374. <div
  8375. v-if="checktoolArray.indexOf(1) == -1"
  8376. class="noChoose"
  8377. ></div>
  8378. <div v-else class="isChoose"></div>
  8379. </div>
  8380. </div>
  8381. <div
  8382. class="tool"
  8383. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8384. @click="addTools2(52)"
  8385. >
  8386. <div class="whiteBIcon">
  8387. <img src="../assets/icon/fourthToolList/text.png" alt />
  8388. <div style="margin: 5px 0">文档</div>
  8389. </div>
  8390. <div class="check">
  8391. <div
  8392. v-if="checktoolArray.indexOf(52) == -1"
  8393. class="noChoose"
  8394. ></div>
  8395. <div v-else class="isChoose"></div>
  8396. </div>
  8397. </div>
  8398. <div
  8399. class="tool"
  8400. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8401. @click="addTools2(3)"
  8402. >
  8403. <div class="whiteBIcon">
  8404. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8405. <div style="margin: 5px 0">思维导图</div>
  8406. </div>
  8407. <div class="check">
  8408. <div
  8409. v-if="checktoolArray.indexOf(3) == -1"
  8410. class="noChoose"
  8411. ></div>
  8412. <div v-else class="isChoose"></div>
  8413. </div>
  8414. </div>
  8415. <div
  8416. class="tool"
  8417. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8418. @click="addTools2(48)"
  8419. >
  8420. <div class="whiteBIcon">
  8421. <img src="../assets/icon/fourthToolList/table.png" alt />
  8422. <div style="margin: 5px 0">表格</div>
  8423. </div>
  8424. <div class="check">
  8425. <div
  8426. v-if="checktoolArray.indexOf(48) == -1"
  8427. class="noChoose"
  8428. ></div>
  8429. <div v-else class="isChoose"></div>
  8430. </div>
  8431. </div>
  8432. </div>
  8433. <div class="toolSort" v-if="toolType == 6">
  8434. <div v-show="tooC == 49">
  8435. <img
  8436. @click="addTools(tooC, toolIndex, taskCount)"
  8437. src="../assets/icon/fourthToolList/group.png"
  8438. alt
  8439. />
  8440. <div style="margin: 5px 0">学生分组</div>
  8441. </div>
  8442. </div>
  8443. <div class="toolSort" v-if="toolType == 2">
  8444. <div
  8445. class="tool"
  8446. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8447. @click="addTools2(16)"
  8448. >
  8449. <div class="whiteBIcon">
  8450. <img src="../assets/icon/thirdToolList/work.png" alt />
  8451. <div style="margin: 5px 0">作业提交</div>
  8452. </div>
  8453. <div class="check">
  8454. <div
  8455. v-if="checktoolArray.indexOf(16) == -1"
  8456. class="noChoose"
  8457. ></div>
  8458. <div v-else class="isChoose"></div>
  8459. </div>
  8460. </div>
  8461. <div
  8462. class="tool"
  8463. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8464. @click="addTools2(50)"
  8465. >
  8466. <div class="whiteBIcon">
  8467. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8468. <div style="margin: 5px 0">批量上传</div>
  8469. </div>
  8470. <div class="check">
  8471. <div
  8472. v-if="checktoolArray.indexOf(50) == -1"
  8473. class="noChoose"
  8474. ></div>
  8475. <div v-else class="isChoose"></div>
  8476. </div>
  8477. </div>
  8478. </div>
  8479. <div class="toolSort" v-if="toolType == 3">
  8480. <div
  8481. class="tool"
  8482. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8483. @click="addTools2(18)"
  8484. >
  8485. <div class="whiteBIcon">
  8486. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8487. <div style="margin: 5px 0">训练平台</div>
  8488. </div>
  8489. <div class="check">
  8490. <div
  8491. v-if="checktoolArray.indexOf(18) == -1"
  8492. class="noChoose"
  8493. ></div>
  8494. <div v-else class="isChoose"></div>
  8495. </div>
  8496. </div>
  8497. <div
  8498. class="tool"
  8499. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8500. @click="addTools2(21)"
  8501. >
  8502. <div class="whiteBIcon">
  8503. <img src="../assets/icon/fourthToolList/program.png" alt />
  8504. <div style="margin: 5px 0">AIoT Blockly</div>
  8505. </div>
  8506. <div class="check">
  8507. <div
  8508. v-if="checktoolArray.indexOf(21) == -1"
  8509. class="noChoose"
  8510. ></div>
  8511. <div v-else class="isChoose"></div>
  8512. </div>
  8513. </div>
  8514. <div
  8515. class="tool"
  8516. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8517. @click="addTools2(23)"
  8518. >
  8519. <div class="whiteBIcon">
  8520. <img
  8521. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8522. alt
  8523. />
  8524. <div style="margin: 5px 0">AI Python</div>
  8525. </div>
  8526. <div class="check">
  8527. <div
  8528. v-if="checktoolArray.indexOf(23) == -1"
  8529. class="noChoose"
  8530. ></div>
  8531. <div v-else class="isChoose"></div>
  8532. </div>
  8533. </div>
  8534. <div
  8535. class="tool"
  8536. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8537. @click="addTools2(24)"
  8538. >
  8539. <div class="whiteBIcon">
  8540. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8541. <div style="margin: 5px 0">AI Blockly</div>
  8542. </div>
  8543. <div class="check">
  8544. <div
  8545. v-if="checktoolArray.indexOf(24) == -1"
  8546. class="noChoose"
  8547. ></div>
  8548. <div v-else class="isChoose"></div>
  8549. </div>
  8550. </div>
  8551. <div
  8552. class="tool"
  8553. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8554. @click="addTools2(32)"
  8555. >
  8556. <div class="whiteBIcon">
  8557. <img src="../assets/icon/thirdToolList/code.png" alt />
  8558. <div style="margin: 5px 0">源码编辑</div>
  8559. </div>
  8560. <div class="check">
  8561. <div
  8562. v-if="checktoolArray.indexOf(32) == -1"
  8563. class="noChoose"
  8564. ></div>
  8565. <div v-else class="isChoose"></div>
  8566. </div>
  8567. </div>
  8568. <div
  8569. class="tool"
  8570. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8571. @click="addTools2(57)"
  8572. >
  8573. <div class="whiteBIcon">
  8574. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8575. <div style="margin: 5px 0">CocoPi</div>
  8576. </div>
  8577. <div class="check">
  8578. <div
  8579. v-if="checktoolArray.indexOf(57) == -1"
  8580. class="noChoose"
  8581. ></div>
  8582. <div v-else class="isChoose"></div>
  8583. </div>
  8584. </div>
  8585. <div
  8586. class="tool"
  8587. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8588. @click="addTools2(63)"
  8589. >
  8590. <div class="whiteBIcon">
  8591. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8592. <div style="margin: 5px 0">海龟编程</div>
  8593. </div>
  8594. <div class="check">
  8595. <div
  8596. v-if="checktoolArray.indexOf(63) == -1"
  8597. class="noChoose"
  8598. ></div>
  8599. <div v-else class="isChoose"></div>
  8600. </div>
  8601. </div>
  8602. <div
  8603. class="tool"
  8604. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8605. @click="addTools2(71)"
  8606. >
  8607. <div class="whiteBIcon">
  8608. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  8609. <div style="margin: 5px 0">AI智能体</div>
  8610. </div>
  8611. <div class="check">
  8612. <div
  8613. v-if="checktoolArray.indexOf(71) == -1"
  8614. class="noChoose"
  8615. ></div>
  8616. <div v-else class="isChoose"></div>
  8617. </div>
  8618. </div>
  8619. </div>
  8620. <div class="toolSort" v-if="toolType == 7">
  8621. <div
  8622. class="tool"
  8623. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8624. @click="addTools2(40)"
  8625. >
  8626. <div class="whiteBIcon">
  8627. <img src="../assets/icon/secondToolList/eval.png" alt />
  8628. <div style="margin: 5px 0">个人评价</div>
  8629. </div>
  8630. <div class="check">
  8631. <div
  8632. v-if="checktoolArray.indexOf(40) == -1"
  8633. class="noChoose"
  8634. ></div>
  8635. <div v-else class="isChoose"></div>
  8636. </div>
  8637. </div>
  8638. </div>
  8639. <div class="toolSort" v-if="toolType == 5">
  8640. <div
  8641. class="tool"
  8642. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8643. @click="addTools2(28)"
  8644. >
  8645. <div class="whiteBIcon">
  8646. <img src="../assets/icon/secondToolList/translation.png" alt />
  8647. <div style="margin: 5px 0">翻译</div>
  8648. </div>
  8649. <div class="check">
  8650. <div
  8651. v-if="checktoolArray.indexOf(28) == -1"
  8652. class="noChoose"
  8653. ></div>
  8654. <div v-else class="isChoose"></div>
  8655. </div>
  8656. </div>
  8657. <div
  8658. class="tool"
  8659. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8660. @click="addTools2(31)"
  8661. >
  8662. <div class="whiteBIcon">
  8663. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8664. <div style="margin: 5px 0">数字画板</div>
  8665. </div>
  8666. <div class="check">
  8667. <div
  8668. v-if="checktoolArray.indexOf(31) == -1"
  8669. class="noChoose"
  8670. ></div>
  8671. <div v-else class="isChoose"></div>
  8672. </div>
  8673. </div>
  8674. <div
  8675. class="tool"
  8676. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8677. @click="addTools2(39)"
  8678. >
  8679. <div class="whiteBIcon">
  8680. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8681. <div style="margin: 5px 0">GeoGebra</div>
  8682. </div>
  8683. <div class="check">
  8684. <div
  8685. v-if="checktoolArray.indexOf(39) == -1"
  8686. class="noChoose"
  8687. ></div>
  8688. <div v-else class="isChoose"></div>
  8689. </div>
  8690. </div>
  8691. <div
  8692. class="tool"
  8693. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8694. @click="addTools2(66)"
  8695. >
  8696. <div class="whiteBIcon">
  8697. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8698. <div style="margin: 5px 0">公式编辑</div>
  8699. </div>
  8700. <div class="check">
  8701. <div
  8702. v-if="checktoolArray.indexOf(66) == -1"
  8703. class="noChoose"
  8704. ></div>
  8705. <div v-else class="isChoose"></div>
  8706. </div>
  8707. </div>
  8708. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8709. <div class="whiteBIcon" @click="addTools2(67)">
  8710. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8711. <div style="margin: 5px 0">分子结构</div>
  8712. </div>
  8713. <div class="check" @click="addTools2(67)">
  8714. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8715. <div v-else class="isChoose"></div>
  8716. </div>
  8717. </div> -->
  8718. <div
  8719. class="tool"
  8720. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8721. @click="addTools2(68)"
  8722. >
  8723. <div class="whiteBIcon">
  8724. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8725. <div style="margin: 5px 0">时间轴</div>
  8726. </div>
  8727. <div class="check">
  8728. <div
  8729. v-if="checktoolArray.indexOf(68) == -1"
  8730. class="noChoose"
  8731. ></div>
  8732. <div v-else class="isChoose"></div>
  8733. </div>
  8734. </div>
  8735. <!-- <div
  8736. class="tool"
  8737. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8738. @click="addTools2(69)"
  8739. >
  8740. <div class="whiteBIcon">
  8741. <img src="../assets/icon/secondToolList/english.png" alt />
  8742. <div style="margin: 5px 0">英语写作</div>
  8743. </div>
  8744. <div class="check">
  8745. <div
  8746. v-if="checktoolArray.indexOf(69) == -1"
  8747. class="noChoose"
  8748. ></div>
  8749. <div v-else class="isChoose"></div>
  8750. </div>
  8751. </div> -->
  8752. </div>
  8753. <div class="toolSort" v-if="toolType == 4">
  8754. <div
  8755. class="tool"
  8756. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8757. @click="addTools2(26)"
  8758. >
  8759. <div class="whiteBIcon">
  8760. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8761. <div style="margin: 5px 0">课程设计</div>
  8762. </div>
  8763. <div class="check">
  8764. <div
  8765. v-if="checktoolArray.indexOf(26) == -1"
  8766. class="noChoose"
  8767. ></div>
  8768. <div v-else class="isChoose"></div>
  8769. </div>
  8770. </div>
  8771. <div
  8772. class="tool"
  8773. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8774. @click="addTools2(25)"
  8775. >
  8776. <div class="whiteBIcon">
  8777. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8778. <div style="margin: 5px 0">目标管理</div>
  8779. </div>
  8780. <div class="check">
  8781. <div
  8782. v-if="checktoolArray.indexOf(25) == -1"
  8783. class="noChoose"
  8784. ></div>
  8785. <div v-else class="isChoose"></div>
  8786. </div>
  8787. </div>
  8788. </div>
  8789. </div>
  8790. </div>
  8791. <span
  8792. slot="footer"
  8793. class="dialog-footer"
  8794. style="display: block; text-align: center; padding: 0 0 10px 0"
  8795. >
  8796. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8797. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8798. </span>
  8799. </div>
  8800. <div
  8801. v-if="replyDialogVisible == true"
  8802. class="addDialogCss"
  8803. v-el-drag-dialog
  8804. >
  8805. <div class="pzTop">
  8806. <div class="teacherPz">
  8807. <div class="teacherPzImg">
  8808. <img src="../assets/icon/teacherPz.png" alt="" />
  8809. </div>
  8810. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8811. </div>
  8812. <div @click="replyDialogVisible = false">
  8813. <img src="../assets/close1.png" class="pzClose" alt="" />
  8814. </div>
  8815. </div>
  8816. <div class="addPzBox">
  8817. <!-- <div class="addPzCheck">
  8818. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8819. >文本</span
  8820. >
  8821. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8822. >音频</span
  8823. >
  8824. </div> -->
  8825. <div style="height: calc(100% - 50px)">
  8826. <editor-bar
  8827. class="binfo_input pzConText"
  8828. style="width: 100% !important; margin: 0 auto"
  8829. placeholder="请输入回复描述"
  8830. v-model="reply"
  8831. @change="change"
  8832. ></editor-bar>
  8833. </div>
  8834. <div class="addTextCss" @click="addHf">确定</div>
  8835. </div>
  8836. </div>
  8837. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8838. <div class="pzTop">
  8839. <div class="teacherPz">
  8840. <div class="teacherPzImg">
  8841. <img src="../assets/icon/teacherPz.png" alt="" />
  8842. </div>
  8843. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8844. </div>
  8845. <div @click="addPzDialog = false">
  8846. <img src="../assets/close1.png" class="pzClose" alt="" />
  8847. </div>
  8848. </div>
  8849. <div class="addPzBox">
  8850. <div class="addPzCheck">
  8851. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8852. >文本</span
  8853. >
  8854. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8855. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8856. >音频</span
  8857. >
  8858. </div>
  8859. <div style="height: calc(100% - 95px)">
  8860. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8861. v-if="pzType == 1"></textarea> -->
  8862. <editor-bar
  8863. class="binfo_input pzConText"
  8864. style="width: 100% !important"
  8865. placeholder="请输入任务描述"
  8866. v-model="pzConText"
  8867. @change="change"
  8868. v-if="pzType == 1"
  8869. ></editor-bar>
  8870. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8871. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8872. <div @click="addImg($event)">
  8873. <el-button type="primary">上传图片</el-button>
  8874. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8875. @change="beforeUpload1($event, 4)" />
  8876. </div>
  8877. </div> -->
  8878. </div>
  8879. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8880. 确定
  8881. </div>
  8882. </div>
  8883. </div>
  8884. <div v-if="proVisible" class="mask">
  8885. <div class="progressBox">
  8886. <!-- <div id="closePro" class="closeCss">
  8887. <img src="../assets/icon/close.png" alt />
  8888. </div> -->
  8889. <div class="lbox">
  8890. <img src="../assets/loading.gif" />上传中,请稍后
  8891. </div>
  8892. <div style="margin-bottom: 10px">
  8893. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8894. </div>
  8895. <el-progress
  8896. :text-inside="true"
  8897. :stroke-width="20"
  8898. :percentage="progress"
  8899. style="width: 80%"
  8900. ></el-progress>
  8901. </div>
  8902. </div>
  8903. <div v-if="proVisible2" class="mask">
  8904. <div class="progressBox">
  8905. <div class="lbox">
  8906. <img src="../assets/loading.gif" />上传中,请稍后
  8907. </div>
  8908. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8909. </div>
  8910. </div>
  8911. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8912. <img width="100%" :src="dialogImageUrl" alt />
  8913. </el-dialog>
  8914. <el-dialog
  8915. :title="noteName != '' ? noteName : '查看问卷'"
  8916. :visible.sync="dialogVisible5"
  8917. :append-to-body="true"
  8918. width="1000px"
  8919. :before-close="handleClose"
  8920. class="dialog_diy dialog_diy3"
  8921. >
  8922. <div>
  8923. <div
  8924. class="a_add_title"
  8925. style="
  8926. display: flex;
  8927. flex-direction: row;
  8928. align-items: center;
  8929. justify-content: center;
  8930. "
  8931. >
  8932. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8933. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8934. </div>
  8935. <div class="a_addBox">
  8936. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8937. 题目内容
  8938. </div>
  8939. <div
  8940. class="a_add_box"
  8941. v-for="(item1, index1) in askJson.askCount"
  8942. :key="index1"
  8943. >
  8944. <div class="a_add_head">
  8945. <div style="display: flex">
  8946. <span class="askIndex"> {{ index1 + 1 }}</span>
  8947. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8948. </div>
  8949. <img
  8950. v-if="askJson.askJson[index1].img"
  8951. :src="askJson.askJson[index1].img"
  8952. style="height: 300px; margin-top: 10px; max-width: 100%"
  8953. />
  8954. </div>
  8955. <div class="a_add_body">
  8956. <div class="a_add_input">
  8957. <el-radio-group
  8958. v-model="radio[index1]"
  8959. v-if="
  8960. askJson.askJson[index1].type == '1' ||
  8961. !askJson.askJson[index1].type
  8962. "
  8963. >
  8964. <el-radio
  8965. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8966. .checkList"
  8967. :key="checkIndex"
  8968. :label="checkIndex"
  8969. :disabled="isAnswer"
  8970. class="redioStyle"
  8971. ><span v-html="item2"></span
  8972. ></el-radio>
  8973. </el-radio-group>
  8974. <el-checkbox-group
  8975. v-model="radio[index1]"
  8976. v-if="askJson.askJson[index1].type == '2'"
  8977. >
  8978. <el-checkbox
  8979. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8980. .checkList"
  8981. :key="checkIndex1"
  8982. :label="checkIndex1"
  8983. :disabled="isAnswer"
  8984. class="redioStyle"
  8985. ><span v-html="item2"></span>
  8986. </el-checkbox>
  8987. </el-checkbox-group>
  8988. </div>
  8989. </div>
  8990. </div>
  8991. </div>
  8992. </div>
  8993. <span slot="footer" class="dialog-footer">
  8994. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8995. >取 消</el-button
  8996. >
  8997. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8998. >确 定</el-button
  8999. >
  9000. </span>
  9001. </el-dialog>
  9002. <el-dialog
  9003. :title="noteName != '' ? noteName : '查看问卷'"
  9004. :visible.sync="dialogVisible5Teacher"
  9005. :append-to-body="true"
  9006. width="1000px"
  9007. :before-close="handleClose"
  9008. class="dialog_diy dialog_diy3"
  9009. >
  9010. <div>
  9011. <div class="w_name">
  9012. 学生姓名:<span>{{ sStudent.student }}</span>
  9013. </div>
  9014. <div
  9015. class="a_add_title"
  9016. style="
  9017. display: flex;
  9018. flex-direction: row;
  9019. align-items: center;
  9020. justify-content: center;
  9021. "
  9022. >
  9023. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9024. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9025. </div>
  9026. <div class="a_addBox">
  9027. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9028. 题目内容
  9029. </div>
  9030. <div
  9031. class="a_add_box"
  9032. v-for="(item1, index1) in askJson.askCount"
  9033. :key="index1"
  9034. >
  9035. <div class="a_add_head">
  9036. <div style="display: flex">
  9037. <span class="askIndex">{{ index1 + 1 }}</span>
  9038. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9039. </div>
  9040. <img
  9041. v-if="askJson.askJson[index1].img"
  9042. :src="askJson.askJson[index1].img"
  9043. style="height: 300px; margin-top: 10px; max-width: 100%"
  9044. />
  9045. </div>
  9046. <div class="a_add_body">
  9047. <div class="a_add_input">
  9048. <el-radio-group
  9049. v-model="radio[index1]"
  9050. v-if="
  9051. askJson.askJson[index1].type == '1' ||
  9052. !askJson.askJson[index1].type
  9053. "
  9054. >
  9055. <el-radio
  9056. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9057. .checkList"
  9058. :key="checkIndex"
  9059. :label="checkIndex"
  9060. :disabled="isAnswer"
  9061. class="redioStyle"
  9062. ><span v-html="item2"></span
  9063. ></el-radio>
  9064. </el-radio-group>
  9065. <el-checkbox-group
  9066. v-model="radio[index1]"
  9067. v-if="askJson.askJson[index1].type == '2'"
  9068. >
  9069. <el-checkbox
  9070. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9071. .checkList"
  9072. :key="checkIndex1"
  9073. :label="checkIndex1"
  9074. :disabled="isAnswer"
  9075. class="redioStyle"
  9076. ><span v-html="item2"></span>
  9077. </el-checkbox>
  9078. </el-checkbox-group>
  9079. </div>
  9080. </div>
  9081. </div>
  9082. </div>
  9083. </div>
  9084. <span slot="footer" class="dialog-footer">
  9085. <el-button
  9086. @click="dialogVisible5Teacher = false"
  9087. v-show="noteName == ''"
  9088. >取 消</el-button
  9089. >
  9090. <el-button
  9091. type="primary"
  9092. @click="addStudentAskTeacher"
  9093. v-show="noteName == ''"
  9094. >确 定</el-button
  9095. >
  9096. </span>
  9097. </el-dialog>
  9098. <el-dialog
  9099. :title="noteName != '' ? noteName : '查看选择题'"
  9100. :visible.sync="dialogVisibleChoice"
  9101. :append-to-body="true"
  9102. width="1000px"
  9103. :before-close="handleClose"
  9104. class="dialog_diy dialog_diy3"
  9105. >
  9106. <div>
  9107. <!-- <div class="a_add_title" style="
  9108. display: flex;
  9109. flex-direction: row;
  9110. align-items: center;
  9111. justify-content: center;
  9112. ">
  9113. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9114. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9115. </div> -->
  9116. <div class="a_addBox">
  9117. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9118. 题目内容
  9119. </div>
  9120. <div
  9121. class="a_add_box"
  9122. v-for="(item1, index1) in testJson.testCount"
  9123. :key="index1"
  9124. >
  9125. <div class="a_add_head">
  9126. <div style="display: flex">
  9127. <span class="askIndex">{{ index1 + 1 }}</span>
  9128. <div
  9129. v-if="testJson.testJson[index1].type == '1'"
  9130. style="margin-right: 5px; min-width: 70px"
  9131. >
  9132. (单选题)
  9133. </div>
  9134. <div
  9135. v-if="testJson.testJson[index1].type == '2'"
  9136. style="margin-right: 5px; min-width: 70px"
  9137. >
  9138. (多选题)
  9139. </div>
  9140. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9141. </div>
  9142. <img
  9143. v-if="testJson.testJson[index1].img"
  9144. :src="testJson.testJson[index1].img"
  9145. style="height: 300px; margin-top: 10px; max-width: 100%"
  9146. />
  9147. </div>
  9148. <div
  9149. class="timuImgBox"
  9150. v-if="
  9151. testJson.testJson[index1].timuList &&
  9152. testJson.testJson[index1].timuList.length
  9153. "
  9154. >
  9155. <div
  9156. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9157. :key="tIndex"
  9158. class="timuImg"
  9159. @click.stop="previewImg(timg.src)"
  9160. >
  9161. <img :src="timg.src" alt="" />
  9162. </div>
  9163. </div>
  9164. <div class="a_add_body">
  9165. <div class="a_add_input">
  9166. <el-radio-group
  9167. v-model="radio[index1]"
  9168. v-if="testJson.testJson[index1].type == '1'"
  9169. >
  9170. <div class="radioBox">
  9171. <el-radio
  9172. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9173. .checkList"
  9174. :key="checkIndex"
  9175. :label="checkIndex"
  9176. :disabled="isAnswer"
  9177. class="redioStyle"
  9178. >
  9179. <div
  9180. style="margin-right: 10px"
  9181. v-if="item2 && item2.imgType && item2.imgType == 1"
  9182. >
  9183. <div class="inImg" @click.stop="previewImg(item2.src)">
  9184. <img :src="item2.src" alt="" />
  9185. </div>
  9186. </div>
  9187. <span v-else v-html="item2"></span>
  9188. </el-radio>
  9189. </div>
  9190. </el-radio-group>
  9191. <el-checkbox-group
  9192. v-model="radio[index1]"
  9193. v-if="testJson.testJson[index1].type == '2'"
  9194. >
  9195. <div class="radioBox">
  9196. <el-checkbox
  9197. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9198. .checkList"
  9199. :key="checkIndex"
  9200. :label="checkIndex"
  9201. :disabled="isAnswer"
  9202. class="redioStyle"
  9203. >
  9204. <div
  9205. style="margin-right: 10px"
  9206. v-if="item2 && item2.imgType && item2.imgType == 1"
  9207. >
  9208. <div class="inImg" @click.stop="previewImg(item2.src)">
  9209. <img :src="item2.src" alt="" />
  9210. </div>
  9211. </div>
  9212. <span v-else v-html="item2"></span>
  9213. </el-checkbox>
  9214. </div>
  9215. </el-checkbox-group>
  9216. </div>
  9217. </div>
  9218. </div>
  9219. </div>
  9220. </div>
  9221. <span slot="footer" class="dialog-footer">
  9222. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9223. >取 消</el-button
  9224. >
  9225. <el-button
  9226. type="primary"
  9227. @click="addStudentTest"
  9228. v-show="noteName == ''"
  9229. >确 定</el-button
  9230. >
  9231. </span>
  9232. </el-dialog>
  9233. <el-dialog
  9234. :title="noteName != '' ? noteName : '查看选择题'"
  9235. :visible.sync="dialogVisibleChoiceTeacher"
  9236. :append-to-body="true"
  9237. width="1000px"
  9238. :before-close="handleClose"
  9239. class="dialog_diy dialog_diy3"
  9240. >
  9241. <div>
  9242. <div class="w_name">
  9243. 学生姓名:<span>{{ sStudent.student }}</span>
  9244. </div>
  9245. <div class="a_addBox">
  9246. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9247. 题目内容
  9248. </div>
  9249. <div
  9250. class="a_add_box"
  9251. v-for="(item1, index1) in testJson.testCount"
  9252. :key="index1"
  9253. >
  9254. <div class="a_add_head">
  9255. <div style="display: flex">
  9256. <span class="askIndex">{{ index1 + 1 }}</span>
  9257. <div
  9258. v-if="testJson.testJson[index1].type == '1'"
  9259. style="margin-right: 5px; min-width: 70px"
  9260. >
  9261. (单选题)
  9262. </div>
  9263. <div
  9264. v-if="testJson.testJson[index1].type == '2'"
  9265. style="margin-right: 5px; min-width: 70px"
  9266. >
  9267. (多选题)
  9268. </div>
  9269. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9270. </div>
  9271. <img
  9272. v-if="testJson.testJson[index1].img"
  9273. :src="testJson.testJson[index1].img"
  9274. style="height: 300px; margin-top: 10px; max-width: 100%"
  9275. />
  9276. </div>
  9277. <div
  9278. class="timuImgBox"
  9279. v-if="
  9280. testJson.testJson[index1].timuList &&
  9281. testJson.testJson[index1].timuList.length
  9282. "
  9283. >
  9284. <div
  9285. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9286. :key="tIndex"
  9287. class="timuImg"
  9288. @click.stop="previewImg(timg.src)"
  9289. >
  9290. <img :src="timg.src" alt="" />
  9291. </div>
  9292. </div>
  9293. <div class="a_add_body">
  9294. <div class="a_add_input">
  9295. <el-radio-group
  9296. v-model="radio[index1]"
  9297. v-if="testJson.testJson[index1].type == '1'"
  9298. >
  9299. <div class="radioBox">
  9300. <el-radio
  9301. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9302. .checkList"
  9303. :key="checkIndex"
  9304. :label="checkIndex"
  9305. :disabled="isAnswer"
  9306. class="redioStyle"
  9307. >
  9308. <div
  9309. style="margin-right: 10px"
  9310. v-if="item2 && item2.imgType && item2.imgType == 1"
  9311. >
  9312. <div class="inImg" @click.stop="previewImg(item2.src)">
  9313. <img :src="item2.src" alt="" />
  9314. </div>
  9315. </div>
  9316. <span v-else v-html="item2"></span>
  9317. </el-radio>
  9318. </div>
  9319. </el-radio-group>
  9320. <el-checkbox-group
  9321. v-model="radio[index1]"
  9322. v-if="testJson.testJson[index1].type == '2'"
  9323. >
  9324. <div class="radioBox">
  9325. <el-checkbox
  9326. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9327. .checkList"
  9328. :key="checkIndex"
  9329. :label="checkIndex"
  9330. :disabled="isAnswer"
  9331. class="redioStyle"
  9332. >
  9333. <div
  9334. style="margin-right: 10px"
  9335. v-if="item2 && item2.imgType && item2.imgType == 1"
  9336. >
  9337. <div class="inImg" @click.stop="previewImg(item2.src)">
  9338. <img :src="item2.src" alt="" />
  9339. </div>
  9340. </div>
  9341. <span v-else v-html="item2"></span>
  9342. </el-checkbox>
  9343. </div>
  9344. </el-checkbox-group>
  9345. </div>
  9346. </div>
  9347. </div>
  9348. </div>
  9349. </div>
  9350. <span slot="footer" class="dialog-footer">
  9351. <el-button
  9352. @click="dialogVisibleChoiceTeacher = false"
  9353. v-show="noteName == ''"
  9354. >取 消</el-button
  9355. >
  9356. <el-button
  9357. type="primary"
  9358. @click="addStudentTestTeacher"
  9359. v-show="noteName == ''"
  9360. >确 定</el-button
  9361. >
  9362. </span>
  9363. </el-dialog>
  9364. <el-dialog
  9365. title="查看富文本"
  9366. :visible.sync="dialogVisible1"
  9367. :append-to-body="true"
  9368. width="500px"
  9369. :before-close="handleClose"
  9370. class="dialog_diy textCss"
  9371. >
  9372. <el-form style="font-size: 20px">
  9373. <el-form-item label="文本标题" class="textTitle">
  9374. <div style="font-size: 20px">{{ text.name }}</div>
  9375. </el-form-item>
  9376. <div>富文本内容</div>
  9377. <div
  9378. v-html="text.url"
  9379. style="font-size: 18px; padding: 40px 0 0 0"
  9380. ></div>
  9381. </el-form>
  9382. <span slot="footer" class="dialog-footer">
  9383. <el-button type="primary" @click="dialogVisible1 = false"
  9384. >确定</el-button
  9385. >
  9386. </span>
  9387. </el-dialog>
  9388. <el-dialog
  9389. title="文件预览"
  9390. :visible.sync="dialogVisible3"
  9391. width="50%"
  9392. :before-close="handleClose"
  9393. class="dialog_diy"
  9394. :class="{ fullStyle: full }"
  9395. >
  9396. <div slot="title" class="header-title">
  9397. <div style="color: #fff">文件预览</div>
  9398. <div style="position: absolute; top: 19px; right: 50px">
  9399. <img
  9400. src="../assets/full.png"
  9401. style="height: 16px; cursor: pointer"
  9402. alt=""
  9403. @click="fullTools"
  9404. />
  9405. </div>
  9406. </div>
  9407. <pdf
  9408. v-if="showPDF"
  9409. :pdfUrl="pptImgUrl"
  9410. style="width: 100%; height: 520px; overflow: auto"
  9411. :class="{ fullStyle: full }"
  9412. ></pdf>
  9413. <iframe
  9414. v-else
  9415. :src="pptImgUrl"
  9416. frameborder="0"
  9417. width="100%"
  9418. height="600"
  9419. :class="{ fullStyle: full }"
  9420. ></iframe>
  9421. </el-dialog>
  9422. <el-dialog
  9423. title="文件预览"
  9424. :visible.sync="dialogVisible6"
  9425. width="50%"
  9426. :before-close="handleClose"
  9427. class="dialog_diy"
  9428. >
  9429. <iframe
  9430. :src="pptImgUrl1"
  9431. frameborder="0"
  9432. width="100%"
  9433. height="600"
  9434. ></iframe>
  9435. </el-dialog>
  9436. <el-dialog
  9437. title="提示"
  9438. :visible.sync="dialogVisible4"
  9439. :append-to-body="true"
  9440. width="800px"
  9441. :before-close="handleClose"
  9442. class="dialog_diy notice"
  9443. >
  9444. <div>此功能暂未开放!</div>
  9445. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9446. </el-dialog>
  9447. <el-dialog
  9448. title="问答"
  9449. :visible.sync="answerDialogVisible"
  9450. :append-to-body="true"
  9451. width="800px"
  9452. :before-close="handleClose"
  9453. class="dialog_diy"
  9454. >
  9455. <div>
  9456. <div
  9457. style="
  9458. display: flex;
  9459. flex-wrap: nowrap;
  9460. flex-direction: column;
  9461. position: relative;
  9462. "
  9463. >
  9464. <div class="queTop" style="padding: 20px 0 20px 0">
  9465. <div class="question">
  9466. <img src="../assets/icon/question.png" alt />
  9467. </div>
  9468. <div class="queTitle">
  9469. <div style="width: 90px; min-width: 90px">提问:</div>
  9470. <div>{{ answerQ }}</div>
  9471. </div>
  9472. </div>
  9473. <div class="ediBottom">
  9474. <textarea
  9475. rows="6"
  9476. class="binfo_input"
  9477. cols
  9478. style="width: 95%; height: 120px"
  9479. v-model="questionAnswer"
  9480. ></textarea>
  9481. </div>
  9482. </div>
  9483. </div>
  9484. <div slot="footer">
  9485. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9486. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9487. </div>
  9488. </el-dialog>
  9489. <el-dialog
  9490. title="问答"
  9491. :visible.sync="answerDialogVisibleTeacher"
  9492. :append-to-body="true"
  9493. width="800px"
  9494. :before-close="handleClose"
  9495. class="dialog_diy"
  9496. >
  9497. <div>
  9498. <div class="w_name">
  9499. 学生姓名:<span>{{ sStudent.student }}</span>
  9500. </div>
  9501. <div
  9502. style="
  9503. display: flex;
  9504. flex-wrap: nowrap;
  9505. flex-direction: column;
  9506. position: relative;
  9507. "
  9508. >
  9509. <div class="queTop" style="padding: 20px 0 20px 0">
  9510. <div class="question">
  9511. <img src="../assets/icon/question.png" alt />
  9512. </div>
  9513. <div class="queTitle">
  9514. <div style="width: 90px; min-width: 90px">提问:</div>
  9515. <div>{{ answerQ }}</div>
  9516. </div>
  9517. </div>
  9518. <div class="ediBottom">
  9519. <textarea
  9520. rows="6"
  9521. class="binfo_input"
  9522. cols
  9523. style="width: 95%; height: 120px"
  9524. v-model="questionAnswer"
  9525. ></textarea>
  9526. </div>
  9527. </div>
  9528. </div>
  9529. <div slot="footer">
  9530. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9531. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9532. </div>
  9533. </el-dialog>
  9534. <el-dialog
  9535. title="倒计时"
  9536. :visible.sync="timeDialogVisible"
  9537. :append-to-body="true"
  9538. width="800px"
  9539. :before-close="handleClose"
  9540. class="dialog_diy"
  9541. >
  9542. <div>
  9543. <div style="margin-bottom: 20px; color: #999">
  9544. 提示:点击“+”或“-”修改倒计时时长。
  9545. </div>
  9546. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9547. </div>
  9548. <div slot="footer">
  9549. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9550. </div>
  9551. </el-dialog>
  9552. <el-dialog
  9553. title="权限设置"
  9554. :visible.sync="juriVisible"
  9555. :append-to-body="true"
  9556. width="400px"
  9557. :before-close="handleClose"
  9558. class="dialog_diy"
  9559. >
  9560. <div>
  9561. <div class="open_box">
  9562. <div class="switch_box">
  9563. <span>允许学生查看所有作业</span>
  9564. <el-switch
  9565. v-model="sIsOpen"
  9566. active-text=""
  9567. class="switchCss"
  9568. @change="updateSLook"
  9569. ></el-switch>
  9570. </div>
  9571. <div
  9572. class="switch_box"
  9573. v-if="
  9574. courseDetail.userid == userid ||
  9575. (courseDetail.course_teacher &&
  9576. courseDetail.course_teacher.indexOf(userid) != -1)
  9577. "
  9578. >
  9579. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9580. <span>禁止学生查看阶段</span>
  9581. <el-switch
  9582. v-model="IsLookOpen"
  9583. active-text=""
  9584. class="switchCss"
  9585. @change="updateLookOpen"
  9586. ></el-switch>
  9587. </div>
  9588. <div class="switch_box" v-if="courseDetail.userid == userid">
  9589. <span>开启跟随模式</span>
  9590. <el-switch
  9591. v-model="IsFollow"
  9592. active-text=""
  9593. class="switchCss"
  9594. @change="updateFollow"
  9595. ></el-switch>
  9596. </div>
  9597. </div>
  9598. </div>
  9599. <div slot="footer">
  9600. <el-button
  9601. style="background: #409efe; color: #fff"
  9602. @click="juriVisible = false"
  9603. >关 闭</el-button
  9604. >
  9605. </div>
  9606. </el-dialog>
  9607. <el-dialog
  9608. title="查看视频"
  9609. :visible.sync="videoVisible"
  9610. :append-to-body="true"
  9611. width="1000px"
  9612. :before-close="handleClose"
  9613. class="dialog_diy1"
  9614. >
  9615. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9616. <video-player
  9617. class="video-player vjs-custom-skin"
  9618. :playsinline="true"
  9619. :options="videoDetail"
  9620. @play="onPlayerPlay($event)"
  9621. style="width: 100%; height: 100%"
  9622. ></video-player>
  9623. </div>
  9624. <div slot="footer">
  9625. <el-button
  9626. style="background: #409efe; color: #fff"
  9627. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9628. >
  9629. 关 闭</el-button
  9630. >
  9631. </div>
  9632. </el-dialog>
  9633. <el-dialog
  9634. title="查看详情"
  9635. :visible.sync="commentDialogVisible"
  9636. :append-to-body="true"
  9637. width="800px"
  9638. :before-close="handleClose"
  9639. class="dialog_diy"
  9640. >
  9641. <div class="commentTop">
  9642. <div class="studentDetail">
  9643. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9644. <div class="nameAndTime">
  9645. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9646. <div>{{ commentDetail.time }}</div>
  9647. </div>
  9648. <div
  9649. class="returnBtn"
  9650. style="margin-left: auto; width: 80px"
  9651. v-if="
  9652. commentDetail.works &&
  9653. commentDetail.type == 0 &&
  9654. (tType == 1 || tType == 4)
  9655. "
  9656. @click="
  9657. showPicturePaint(
  9658. commentDetail.img ? commentDetail.img : commentDetail.works
  9659. )
  9660. "
  9661. >
  9662. 教师批注
  9663. </div>
  9664. </div>
  9665. <div
  9666. class="worksAnswer"
  9667. v-if="commentDetail.works && commentDetail.type == 2"
  9668. >
  9669. {{ JSON.parse(commentDetail.works)[0].answer }}
  9670. </div>
  9671. <div
  9672. class="worksAnswer"
  9673. v-if="commentDetail.works && commentDetail.type == 1"
  9674. >
  9675. <img
  9676. src="../assets/teacherWork.png"
  9677. v-if="commentDetail.ateacher"
  9678. class="w_teachert"
  9679. />
  9680. <pdf
  9681. v-if="showPDF"
  9682. :pdfUrl="pptImgUrl"
  9683. style="width: 100%; height: 520px; overflow: auto"
  9684. :class="{ fullStyle: full }"
  9685. ></pdf>
  9686. <iframe
  9687. v-else
  9688. :src="pptImgUrl"
  9689. frameborder="0"
  9690. width="100%"
  9691. height="600"
  9692. :class="{ fullStyle: full }"
  9693. ></iframe>
  9694. </div>
  9695. <div
  9696. class="worksAnswer"
  9697. v-if="commentDetail.works && commentDetail.type == 0"
  9698. >
  9699. <img
  9700. src="../assets/teacherWork.png"
  9701. v-if="commentDetail.ateacher"
  9702. class="w_teachert"
  9703. style="right: 105px"
  9704. />
  9705. <img
  9706. :src="commentDetail.works"
  9707. alt=""
  9708. @click="previewImg(commentDetail.works)"
  9709. />
  9710. </div>
  9711. <div
  9712. class="worksAnswer"
  9713. v-if="commentDetail.works && commentDetail.type == 3"
  9714. >
  9715. <img
  9716. src="../assets/teacherWork.png"
  9717. v-if="commentDetail.ateacher"
  9718. class="w_teachert"
  9719. />
  9720. <video-player
  9721. class="video-player vjs-custom-skin"
  9722. :playsinline="true"
  9723. :options="videoDetail"
  9724. @play="onPlayerPlay($event)"
  9725. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9726. ></video-player>
  9727. </div>
  9728. <div
  9729. class="worksAnswer"
  9730. v-if="commentDetail.works && commentDetail.type == 10"
  9731. >
  9732. <div class="cont" v-html="commentDetail.works.text"></div>
  9733. </div>
  9734. <div
  9735. class="worksAnswer codeFileBox"
  9736. v-if="commentDetail.works && commentDetail.type == 12"
  9737. @click="downloadFile(commentDetail.works)"
  9738. >
  9739. <img src="../assets/icon/codeFile.png" />
  9740. <div>点击下载文件</div>
  9741. </div>
  9742. <div
  9743. class="worksAnswer codeFileBox"
  9744. v-if="commentDetail.works && commentDetail.type == 15"
  9745. @click="
  9746. openCocoPi(
  9747. 57,
  9748. commentIndexJson.toolIndex,
  9749. commentDetail.userid,
  9750. commentDetail.sName
  9751. )
  9752. "
  9753. >
  9754. <img src="../assets/icon/codeFile.png" />
  9755. <div>点击打开CocoPi</div>
  9756. </div>
  9757. <div
  9758. class="worksAnswer"
  9759. v-if="commentDetail.works && commentDetail.type == 13"
  9760. >
  9761. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9762. </div>
  9763. <div
  9764. class="worksAnswer"
  9765. v-if="commentDetail.works && commentDetail.type == 4"
  9766. >
  9767. <div class="evalCss">
  9768. <div class="nav">请选择星星进行评分</div>
  9769. <div class="middleBox" v-if="eScore.eStar">
  9770. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9771. <div class="nameAndrate">
  9772. <div>{{ e.value }}</div>
  9773. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9774. </div>
  9775. <div v-if="e.detail">{{ e.detail }}</div>
  9776. </div>
  9777. <div class="bz">
  9778. <textarea
  9779. disabled
  9780. rows="4"
  9781. class="pj"
  9782. style="
  9783. padding: 10px 5px;
  9784. width: 70%;
  9785. background: #f7f6f9;
  9786. font-size: 14px;
  9787. text-indent: 10px;
  9788. color: #000;
  9789. "
  9790. cols
  9791. v-model="eScore.eBzText"
  9792. placeholder="请输入评价内容..."
  9793. ></textarea>
  9794. </div>
  9795. </div>
  9796. </div>
  9797. </div>
  9798. <div class="comment">
  9799. <div class="commentList">
  9800. <div class="commentImg">
  9801. <img
  9802. @click="
  9803. isLikes(
  9804. commentDetail.wid,
  9805. userid,
  9806. 1,
  9807. null,
  9808. commentDetail.isLikes,
  9809. commentDetail.sName
  9810. )
  9811. "
  9812. :src="commentDetail.isLikes == true ? likes : noLikes"
  9813. alt=""
  9814. />
  9815. </div>
  9816. <div>{{ commentDetail.likesCount }}</div>
  9817. </div>
  9818. <div class="commentList">
  9819. <div class="commentImg">
  9820. <img src="../assets/icon/comment/comment.png" alt="" />
  9821. </div>
  9822. <div>{{ commentDetail.commentCount }}</div>
  9823. </div>
  9824. </div>
  9825. <div class="drawPBox" v-if="commentDetail.img">
  9826. <span>教师批注</span>
  9827. <img
  9828. :src="commentDetail.img"
  9829. alt=""
  9830. @click="previewImg(commentDetail.img)"
  9831. />
  9832. <span
  9833. class="deleteImg"
  9834. v-if="tType == 1 || tType == 4"
  9835. @click.stop="deletePicturePaint(commentDetail.wid)"
  9836. style="
  9837. font-size: 14px;
  9838. width: auto !important;
  9839. color: #b4b4b4;
  9840. top: unset;
  9841. bottom: 0;
  9842. border: none;
  9843. padding: 0;
  9844. height: auto !important;
  9845. margin: 0;
  9846. "
  9847. >删除</span
  9848. >
  9849. </div>
  9850. </div>
  9851. <div class="commentBox">
  9852. <div class="pl">评论:</div>
  9853. <div style="max-height: 200px; overflow: auto">
  9854. <div
  9855. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9856. style="padding: 10px 0 0 0"
  9857. >
  9858. <div
  9859. class="studentDetail"
  9860. style="padding-top: 10px"
  9861. v-for="(co, coIndex) in commentDetail.commentJson"
  9862. :key="coIndex"
  9863. >
  9864. <div class="tx" style="min-width: 50px">
  9865. <img src="../assets/avatar.png" alt="" />
  9866. </div>
  9867. <div class="plPerson">
  9868. <div class="plName">
  9869. <div>{{ co.commentPeople }}</div>
  9870. <div style="margin-left: 5px">
  9871. {{ co.commentTime }}
  9872. </div>
  9873. <div
  9874. class="deleteComment"
  9875. v-if="userid == co.userid"
  9876. @click="deleteComment(co.wid)"
  9877. >
  9878. 删除
  9879. </div>
  9880. </div>
  9881. <div class="plContent">{{ co.commentText }}</div>
  9882. </div>
  9883. </div>
  9884. </div>
  9885. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9886. </div>
  9887. </div>
  9888. <div style="margin-top: 10px">
  9889. <div class="displayBox">
  9890. <div
  9891. style="
  9892. color: #556db4;
  9893. font-size: 14px;
  9894. font-weight: bold;
  9895. padding-bottom: 10px;
  9896. "
  9897. >
  9898. 评价
  9899. </div>
  9900. <div class="easy_comment" v-if="false">
  9901. <div
  9902. v-for="(p, pIndex) in PlTextList"
  9903. :key="pIndex"
  9904. @click="fastText(p, 1)"
  9905. >
  9906. {{ p }}
  9907. </div>
  9908. </div>
  9909. </div>
  9910. <div>
  9911. <textarea
  9912. rows="3"
  9913. class="pj"
  9914. style="padding: 10px 5px"
  9915. cols
  9916. v-model="commentText"
  9917. placeholder="请输入评论"
  9918. ></textarea>
  9919. </div>
  9920. </div>
  9921. <div slot="footer">
  9922. <el-button
  9923. @click="
  9924. (commentDialogVisible = false),
  9925. (commentIndexJson = {}),
  9926. videoDetail.sources && videoDetail.sources[0]
  9927. ? (videoDetail.sources[0].src = '')
  9928. : ''
  9929. "
  9930. >取 消</el-button
  9931. >
  9932. <el-button
  9933. type="primary"
  9934. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  9935. >确 定</el-button
  9936. >
  9937. </div>
  9938. </el-dialog>
  9939. <el-dialog
  9940. title="查看文档"
  9941. :visible.sync="fullDialogVisible"
  9942. :append-to-body="true"
  9943. width="100%"
  9944. :before-close="handleClose"
  9945. :show-close="false"
  9946. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  9947. >
  9948. <div slot="title" class="header-title">
  9949. <div style="color: #fff">查看文档</div>
  9950. <div
  9951. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  9952. style="
  9953. cursor: pointer;
  9954. position: absolute;
  9955. top: 20px;
  9956. right: 20px;
  9957. color: #fff;
  9958. "
  9959. >
  9960. 退出全屏
  9961. </div>
  9962. </div>
  9963. <div style="height: 100%;position: relative;">
  9964. <el-button
  9965. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  9966. size="medium"
  9967. type="primary"
  9968. @click="
  9969. () => {
  9970. (fullDialogVisible = false),
  9971. changeSplitScreenBehavior({ code: 99 });
  9972. }
  9973. "
  9974. style="
  9975. cursor: pointer;
  9976. position: absolute;
  9977. top: 10px;
  9978. right: 20px;
  9979. color: #fff;
  9980. "
  9981. >
  9982. 退出全屏
  9983. </el-button>
  9984. <div
  9985. class="wheel"
  9986. v-if="
  9987. fulltype == 2 &&
  9988. fullUrl.indexOf(
  9989. 'https://view.officeapps.live.com/op/view.aspx?src='
  9990. ) != -1
  9991. "
  9992. style="width: 100%;height:100%; margin: 0 auto"
  9993. >
  9994. <iframe
  9995. style="width: 100%; height: 100%; border: none"
  9996. :src="fullUrl"
  9997. ></iframe>
  9998. </div>
  9999. <iframe
  10000. v-else-if="fulltype == 2"
  10001. style="width: 100%; height: 100%; border: none"
  10002. :src="fullUrl"
  10003. security="restricted"
  10004. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10005. ></iframe>
  10006. <pdf
  10007. v-else-if="fulltype == 3"
  10008. :pdfUrl="fullUrl"
  10009. style="width: 100%; height: 100%; overflow: auto"
  10010. ></pdf>
  10011. <div
  10012. class="wheel"
  10013. v-if="fulltype == 1"
  10014. style="
  10015. box-shadow: 0 0 6px 1px #f2f2f2;
  10016. width: 100%;
  10017. height:100%;
  10018. background: #f1f1f1;
  10019. "
  10020. >
  10021. <div class="title" style="width: 100%; box-sizing: border-box">
  10022. 查看文档
  10023. </div>
  10024. <el-form class="textBox" style="height: 90%">
  10025. <el-form-item class="textTitle">
  10026. <div style="font-size: 22px">
  10027. {{ fullUrl.name }}
  10028. </div>
  10029. </el-form-item>
  10030. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10031. <div
  10032. v-html="fullUrl.url"
  10033. class="textContent"
  10034. style="height: auto"
  10035. ></div>
  10036. </el-form>
  10037. </div>
  10038. </div>
  10039. <!-- <div slot="footer">
  10040. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10041. </div> -->
  10042. </el-dialog>
  10043. <el-dialog
  10044. title="个人评价"
  10045. :visible.sync="studentEvalDialogVisible"
  10046. :append-to-body="true"
  10047. width="800px"
  10048. :before-close="handleClose"
  10049. class="dialog_diy"
  10050. >
  10051. <div class="evalCss">
  10052. <div class="nav">请选择星星进行评分</div>
  10053. <div class="middleBox" v-if="eScore.eStar">
  10054. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10055. <div class="nameAndrate">
  10056. <div>{{ e.value }}</div>
  10057. <el-rate
  10058. v-model="eScore.eStar[eIndex]"
  10059. :disabled="isStar"
  10060. ></el-rate>
  10061. </div>
  10062. <div v-if="e.detail">{{ e.detail }}</div>
  10063. </div>
  10064. <div class="easy_comment" v-if="false">
  10065. <div
  10066. v-for="(p, pIndex) in PlTextList"
  10067. :key="pIndex"
  10068. @click="fastText(p, 2)"
  10069. >
  10070. {{ p }}
  10071. </div>
  10072. </div>
  10073. <div class="bz">
  10074. <textarea
  10075. :disabled="isStar"
  10076. rows="4"
  10077. class="pj"
  10078. style="
  10079. padding: 10px 5px;
  10080. width: 70%;
  10081. background: #f7f6f9;
  10082. font-size: 14px;
  10083. text-indent: 10px;
  10084. "
  10085. cols
  10086. v-model="eScore.eBzText"
  10087. placeholder="请输入评价内容..."
  10088. ></textarea>
  10089. </div>
  10090. </div>
  10091. </div>
  10092. <div slot="footer">
  10093. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10094. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10095. >确 定</el-button
  10096. >
  10097. </div>
  10098. </el-dialog>
  10099. <el-dialog
  10100. title="个人评价"
  10101. :visible.sync="studentEvalDialogVisibleTeacher"
  10102. :append-to-body="true"
  10103. width="800px"
  10104. :before-close="handleClose"
  10105. class="dialog_diy"
  10106. >
  10107. <div class="w_name">
  10108. 学生姓名:<span>{{ sStudent.student }}</span>
  10109. </div>
  10110. <div class="evalCss">
  10111. <div class="nav">请选择星星进行评分</div>
  10112. <div class="middleBox" v-if="eScore.eStar">
  10113. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10114. <div class="nameAndrate">
  10115. <div>{{ e.value }}</div>
  10116. <el-rate
  10117. v-model="eScore.eStar[eIndex]"
  10118. :disabled="isStar"
  10119. ></el-rate>
  10120. </div>
  10121. <div v-if="e.detail">{{ e.detail }}</div>
  10122. </div>
  10123. <div class="easy_comment" v-if="false">
  10124. <div
  10125. v-for="(p, pIndex) in PlTextList"
  10126. :key="pIndex"
  10127. @click="fastText(p, 2)"
  10128. >
  10129. {{ p }}
  10130. </div>
  10131. </div>
  10132. <div class="bz">
  10133. <textarea
  10134. :disabled="isStar"
  10135. rows="4"
  10136. class="pj"
  10137. style="
  10138. padding: 10px 5px;
  10139. width: 70%;
  10140. background: #f7f6f9;
  10141. font-size: 14px;
  10142. text-indent: 10px;
  10143. "
  10144. cols
  10145. v-model="eScore.eBzText"
  10146. placeholder="请输入评价内容..."
  10147. ></textarea>
  10148. </div>
  10149. </div>
  10150. </div>
  10151. <div slot="footer">
  10152. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10153. >取 消</el-button
  10154. >
  10155. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10156. >确 定</el-button
  10157. >
  10158. </div>
  10159. </el-dialog>
  10160. <el-dialog
  10161. title="选择匹配"
  10162. :visible.sync="dialogVisibleSelect"
  10163. :append-to-body="true"
  10164. width="90%"
  10165. :before-close="handleClose"
  10166. class="dialog_diy dialog_diy3"
  10167. >
  10168. <div v-if="selectJson">
  10169. <div class="select_box2">
  10170. <div class="select_box2_title">
  10171. <div>选择匹配</div>
  10172. <div>请选择对应的答案进行答题!</div>
  10173. </div>
  10174. <div class="select_box2_box">
  10175. <div class="select_box2_img">
  10176. <img
  10177. :src="selectJson.url"
  10178. @click="previewImg(selectJson.url)"
  10179. alt=""
  10180. />
  10181. </div>
  10182. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10183. <div style="padding-top: 15px">
  10184. <div class="select_answer_title" v-if="isSelect">
  10185. {{ selectAnswer.stu }}
  10186. </div>
  10187. <div class="select_answer_title" v-else>
  10188. 根据题目选择对应答案
  10189. </div>
  10190. <div
  10191. class="select_box2_answer_box"
  10192. v-for="(item2, checkIndex) in selectJson.select"
  10193. :key="checkIndex"
  10194. >
  10195. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10196. <el-select
  10197. :disabled="isSelect"
  10198. v-model="selectAnswer.answer[checkIndex]"
  10199. placeholder="请选择正确答案"
  10200. >
  10201. <el-option
  10202. v-for="(e, eIndex) in selectJson.select"
  10203. :key="eIndex"
  10204. :label="e"
  10205. :value="eIndex"
  10206. >
  10207. </el-option>
  10208. </el-select>
  10209. </div>
  10210. </div>
  10211. <div
  10212. class="rightAnswerCss"
  10213. v-if="isSelect && (tType == 1 || tType == 4)"
  10214. >
  10215. <div
  10216. v-for="(a, aIndex) in selectJson.answer"
  10217. :key="aIndex"
  10218. class="rightAnswer"
  10219. >
  10220. <div
  10221. v-if="selectAnswer.answer[aIndex] === a"
  10222. style="color: #767de1"
  10223. >
  10224. 回答正确
  10225. </div>
  10226. <div v-else>回答错误</div>
  10227. <div
  10228. style="margin-left: 10px"
  10229. v-if="selectAnswer.answer[aIndex] !== a"
  10230. >
  10231. 正确答案:
  10232. </div>
  10233. <div
  10234. :class="
  10235. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10236. "
  10237. >
  10238. {{ selectJson.select[a] }}
  10239. </div>
  10240. </div>
  10241. </div>
  10242. </div>
  10243. <div class="upAnswerCss">
  10244. <el-button
  10245. type="primary"
  10246. @click="addSelectAnswer"
  10247. v-if="!isSelect"
  10248. >提交答案</el-button
  10249. >
  10250. </div>
  10251. </div>
  10252. </div>
  10253. </div>
  10254. </el-dialog>
  10255. <el-dialog
  10256. title="选择匹配"
  10257. :visible.sync="dialogVisibleSelectTeacher"
  10258. :append-to-body="true"
  10259. width="90%"
  10260. :before-close="handleClose"
  10261. class="dialog_diy dialog_diy3"
  10262. >
  10263. <div v-if="selectJson">
  10264. <div class="w_name">
  10265. 学生姓名:<span>{{ sStudent.student }}</span>
  10266. </div>
  10267. <div class="select_box2">
  10268. <div class="select_box2_title">
  10269. <div>选择匹配</div>
  10270. <div>请选择对应的答案进行答题!</div>
  10271. </div>
  10272. <div class="select_box2_box">
  10273. <div class="select_box2_img">
  10274. <img
  10275. :src="selectJson.url"
  10276. @click="previewImg(selectJson.url)"
  10277. alt=""
  10278. />
  10279. </div>
  10280. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10281. <div style="padding-top: 15px">
  10282. <div class="select_answer_title" v-if="isSelect">
  10283. {{ selectAnswer.stu }}
  10284. </div>
  10285. <div class="select_answer_title" v-else>
  10286. 根据题目选择对应答案
  10287. </div>
  10288. <div
  10289. class="select_box2_answer_box"
  10290. v-for="(item2, checkIndex) in selectJson.select"
  10291. :key="checkIndex"
  10292. >
  10293. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10294. <el-select
  10295. :disabled="isSelect"
  10296. v-model="selectAnswer.answer[checkIndex]"
  10297. placeholder="请选择正确答案"
  10298. >
  10299. <el-option
  10300. v-for="(e, eIndex) in selectJson.select"
  10301. :key="eIndex"
  10302. :label="e"
  10303. :value="eIndex"
  10304. >
  10305. </el-option>
  10306. </el-select>
  10307. </div>
  10308. </div>
  10309. <div
  10310. class="rightAnswerCss"
  10311. v-if="isSelect && (tType == 1 || tType == 4)"
  10312. >
  10313. <div
  10314. v-for="(a, aIndex) in selectJson.answer"
  10315. :key="aIndex"
  10316. class="rightAnswer"
  10317. >
  10318. <div
  10319. v-if="selectAnswer.answer[aIndex] === a"
  10320. style="color: #767de1"
  10321. >
  10322. 回答正确
  10323. </div>
  10324. <div v-else>回答错误</div>
  10325. <div
  10326. style="margin-left: 10px"
  10327. v-if="selectAnswer.answer[aIndex] !== a"
  10328. >
  10329. 正确答案:
  10330. </div>
  10331. <div
  10332. :class="
  10333. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10334. "
  10335. >
  10336. {{ selectJson.select[a] }}
  10337. </div>
  10338. </div>
  10339. </div>
  10340. </div>
  10341. <div class="upAnswerCss">
  10342. <el-button
  10343. type="primary"
  10344. @click="addSelectAnswerTeacher"
  10345. v-if="!isSelect"
  10346. >提交答案</el-button
  10347. >
  10348. </div>
  10349. </div>
  10350. </div>
  10351. </div>
  10352. </el-dialog>
  10353. <el-dialog
  10354. title="教师评分"
  10355. :visible.sync="dialogVisibleScore"
  10356. :append-to-body="true"
  10357. width="800px"
  10358. :before-close="handleClose"
  10359. class="dialog_diy"
  10360. >
  10361. <div>
  10362. <div class="studentDetail">
  10363. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10364. <div class="nameAndTime">
  10365. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10366. <div>{{ commentDetail.time }}</div>
  10367. </div>
  10368. </div>
  10369. <div
  10370. class="worksAnswer"
  10371. v-if="commentDetail.works && commentDetail.type == 2"
  10372. >
  10373. {{ JSON.parse(commentDetail.works)[0].answer }}
  10374. </div>
  10375. <div
  10376. class="worksAnswer"
  10377. v-if="commentDetail.works && commentDetail.type == 1"
  10378. >
  10379. <pdf
  10380. v-if="showPDF"
  10381. :pdfUrl="pptImgUrl"
  10382. style="width: 100%; height: 520px; overflow: auto"
  10383. :class="{ fullStyle: full }"
  10384. ></pdf>
  10385. <iframe
  10386. v-else
  10387. :src="pptImgUrl"
  10388. frameborder="0"
  10389. width="100%"
  10390. height="600"
  10391. :class="{ fullStyle: full }"
  10392. ></iframe>
  10393. </div>
  10394. <div
  10395. class="worksAnswer"
  10396. v-if="commentDetail.works && commentDetail.type == 0"
  10397. >
  10398. <img
  10399. :src="commentDetail.works"
  10400. alt=""
  10401. @click="previewImg(commentDetail.works)"
  10402. />
  10403. </div>
  10404. <div
  10405. class="worksAnswer"
  10406. v-if="commentDetail.works && commentDetail.type == 3"
  10407. >
  10408. <video-player
  10409. class="video-player vjs-custom-skin"
  10410. :playsinline="true"
  10411. :options="videoDetail"
  10412. @play="onPlayerPlay($event)"
  10413. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10414. ></video-player>
  10415. </div>
  10416. <div
  10417. class="worksAnswer codeFileBox"
  10418. v-if="commentDetail.works && commentDetail.type == 12"
  10419. @click="downloadFile(commentDetail.works)"
  10420. >
  10421. <img src="../assets/icon/codeFile.png" />
  10422. <div>点击下载文件</div>
  10423. </div>
  10424. <div
  10425. class="worksAnswer codeFileBox"
  10426. v-if="commentDetail.works && commentDetail.type == 15"
  10427. @click="
  10428. openCocoPi(
  10429. 57,
  10430. commentIndexJson.toolIndex,
  10431. commentDetail.userid,
  10432. commentDetail.sName
  10433. )
  10434. "
  10435. >
  10436. <img src="../assets/icon/codeFile.png" />
  10437. <div>点击打开CocoPi</div>
  10438. </div>
  10439. <div
  10440. class="worksAnswer"
  10441. v-if="commentDetail.works && commentDetail.type == 13"
  10442. >
  10443. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10444. </div>
  10445. <div class="scoreBox">
  10446. <span class="t">请输入分数</span>
  10447. <el-input-number
  10448. :disabled="courseDetail.userid != userid"
  10449. v-model="wScore"
  10450. :controls="false"
  10451. :min="0"
  10452. :max="100"
  10453. ></el-input-number>
  10454. </div>
  10455. <div class="scoreDetailBox">
  10456. <span class="t">评分评论</span>
  10457. <el-input
  10458. type="textarea"
  10459. :rows="5"
  10460. :disabled="courseDetail.userid != userid"
  10461. resize="none"
  10462. v-model="scoreDetail"
  10463. placeholder="请输入对学生的评价"
  10464. >
  10465. </el-input>
  10466. </div>
  10467. </div>
  10468. <span slot="footer" class="dialog-footer">
  10469. <el-button
  10470. @click="
  10471. (dialogVisibleScore = false),
  10472. (commentIndexJson = {}),
  10473. videoDetail.sources && videoDetail.sources[0]
  10474. ? (videoDetail.sources[0].src = '')
  10475. : ''
  10476. "
  10477. >取 消</el-button
  10478. >
  10479. <el-button
  10480. type="primary"
  10481. v-if="courseDetail.userid == userid"
  10482. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10483. >确 定
  10484. </el-button>
  10485. </span>
  10486. </el-dialog>
  10487. <el-dialog
  10488. title="排序"
  10489. :visible.sync="dialogVisibleSentence"
  10490. :append-to-body="true"
  10491. width="1000px"
  10492. :before-close="handleClose"
  10493. class="dialog_diy dialog_diy3"
  10494. >
  10495. <div>
  10496. <div class="sentenBox">
  10497. <div
  10498. v-for="(st, stIndex) in sentenceList"
  10499. :key="stIndex"
  10500. style="padding-bottom: 20px"
  10501. >
  10502. <div
  10503. style="padding: 15px 0 10px 20px"
  10504. class="sentenceTitle"
  10505. :index="stIndex + 1"
  10506. >
  10507. 题目{{ stIndex + 1 }}:请选择正确顺序
  10508. </div>
  10509. <div class="cardList" v-if="st.chooseSenList">
  10510. <div class="cardBox">
  10511. <div
  10512. v-for="(r, rIndex) in st.chooseSenList"
  10513. :key="rIndex"
  10514. @click="returnCard(r, stIndex, rIndex)"
  10515. >
  10516. <el-tooltip
  10517. class="item"
  10518. effect="light"
  10519. :content="r"
  10520. placement="top"
  10521. v-if="r != '' && r != undefined"
  10522. >
  10523. <div
  10524. :class="{
  10525. isCard: r,
  10526. isChooseCard: r == '' || r == undefined,
  10527. }"
  10528. >
  10529. <div>{{ r }}</div>
  10530. </div>
  10531. </el-tooltip>
  10532. <div
  10533. :class="{
  10534. isCard: r,
  10535. isChooseCard: r == '' || r == undefined,
  10536. }"
  10537. v-else
  10538. >
  10539. <div>{{ r }}</div>
  10540. </div>
  10541. </div>
  10542. </div>
  10543. </div>
  10544. <div class="cardList" v-if="st.addChangeSen">
  10545. <div class="cardBox">
  10546. <div
  10547. v-for="(s, sIndex) in st.addChangeSen"
  10548. :key="sIndex"
  10549. @click="setRightAnswer(s, stIndex, sIndex)"
  10550. >
  10551. <el-tooltip
  10552. class="item"
  10553. effect="light"
  10554. :content="s"
  10555. placement="top"
  10556. v-if="s != '' && s != undefined"
  10557. >
  10558. <div
  10559. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10560. >
  10561. <div>{{ s }}</div>
  10562. </div>
  10563. </el-tooltip>
  10564. <div
  10565. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10566. v-else
  10567. >
  10568. <div>{{ s }}</div>
  10569. </div>
  10570. </div>
  10571. </div>
  10572. </div>
  10573. </div>
  10574. </div>
  10575. </div>
  10576. <span slot="footer" class="dialog-footer">
  10577. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10578. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10579. </span>
  10580. </el-dialog>
  10581. <el-dialog
  10582. title="排序"
  10583. :visible.sync="dialogVisibleSentenceTeacher"
  10584. :append-to-body="true"
  10585. width="1000px"
  10586. :before-close="handleClose"
  10587. class="dialog_diy dialog_diy3"
  10588. >
  10589. <div>
  10590. <div class="w_name">
  10591. 学生姓名:<span>{{ sStudent.student }}</span>
  10592. </div>
  10593. <div class="sentenBox">
  10594. <div
  10595. v-for="(st, stIndex) in sentenceList"
  10596. :key="stIndex"
  10597. style="padding-bottom: 20px"
  10598. >
  10599. <div
  10600. style="padding: 15px 0 10px 20px"
  10601. class="sentenceTitle"
  10602. :index="stIndex + 1"
  10603. >
  10604. 题目{{ stIndex + 1 }}:请选择正确顺序
  10605. </div>
  10606. <div class="cardList" v-if="st.chooseSenList">
  10607. <div class="cardBox">
  10608. <div
  10609. v-for="(r, rIndex) in st.chooseSenList"
  10610. :key="rIndex"
  10611. @click="returnCard(r, stIndex, rIndex)"
  10612. >
  10613. <el-tooltip
  10614. class="item"
  10615. effect="light"
  10616. :content="r"
  10617. placement="top"
  10618. v-if="r != '' && r != undefined"
  10619. >
  10620. <div
  10621. :class="{
  10622. isCard: r,
  10623. isChooseCard: r == '' || r == undefined,
  10624. }"
  10625. >
  10626. <div>{{ r }}</div>
  10627. </div>
  10628. </el-tooltip>
  10629. <div
  10630. :class="{
  10631. isCard: r,
  10632. isChooseCard: r == '' || r == undefined,
  10633. }"
  10634. v-else
  10635. >
  10636. <div>{{ r }}</div>
  10637. </div>
  10638. </div>
  10639. </div>
  10640. </div>
  10641. <div class="cardList" v-if="st.addChangeSen">
  10642. <div class="cardBox">
  10643. <div
  10644. v-for="(s, sIndex) in st.addChangeSen"
  10645. :key="sIndex"
  10646. @click="setRightAnswer(s, stIndex, sIndex)"
  10647. >
  10648. <el-tooltip
  10649. class="item"
  10650. effect="light"
  10651. :content="s"
  10652. placement="top"
  10653. v-if="s != '' && s != undefined"
  10654. >
  10655. <div
  10656. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10657. >
  10658. <div>{{ s }}</div>
  10659. </div>
  10660. </el-tooltip>
  10661. <div
  10662. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10663. v-else
  10664. >
  10665. <div>{{ s }}</div>
  10666. </div>
  10667. </div>
  10668. </div>
  10669. </div>
  10670. </div>
  10671. </div>
  10672. </div>
  10673. <span slot="footer" class="dialog-footer">
  10674. <el-button @click="dialogVisibleSentenceTeacher = false"
  10675. >取 消</el-button
  10676. >
  10677. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10678. </span>
  10679. </el-dialog>
  10680. <el-dialog
  10681. title="排序"
  10682. :visible.sync="dialogVisibleSentence1"
  10683. :append-to-body="true"
  10684. width="1000px"
  10685. :before-close="handleClose"
  10686. class="dialog_diy dialog_diy3"
  10687. >
  10688. <div>
  10689. <div class="sentenBox">
  10690. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10691. {{ sentenceList1.stuName }}的作业
  10692. </div>
  10693. <div
  10694. v-for="(st, stIndex) in sentenceList1"
  10695. :key="stIndex"
  10696. style="padding-bottom: 20px"
  10697. >
  10698. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10699. 第{{ stIndex + 1 }}题
  10700. </div>
  10701. <div class="isWrong">
  10702. <div class="cardList1" v-if="st.chooseSenList">
  10703. <div class="cardBox">
  10704. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10705. <el-tooltip
  10706. class="item"
  10707. effect="light"
  10708. :content="s"
  10709. placement="top"
  10710. >
  10711. <div class="isCard">
  10712. <div>{{ s }}</div>
  10713. </div>
  10714. </el-tooltip>
  10715. </div>
  10716. </div>
  10717. <div class="cardAnswerBox">
  10718. 组成句子:{{ st.chooseSenList.join(" ") }}
  10719. </div>
  10720. </div>
  10721. <div v-if="tType == 2" class="isTj">
  10722. <div class="isTjImg">
  10723. <img src="../assets/icon/conSentences/right.png" alt="" />
  10724. </div>
  10725. <div>已提交</div>
  10726. </div>
  10727. <div
  10728. class="answerRight isTj"
  10729. v-if="
  10730. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10731. (tType == 1 || tType == 4)
  10732. "
  10733. >
  10734. <div class="isTjImg">
  10735. <img src="../assets/icon/conSentences/right.png" alt="" />
  10736. </div>
  10737. <div>回答正确</div>
  10738. </div>
  10739. <div
  10740. class="answerRight isTj"
  10741. v-if="
  10742. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10743. (tType == 1 || tType == 4)
  10744. "
  10745. >
  10746. <div class="isTjImg">
  10747. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10748. </div>
  10749. <div>回答错误</div>
  10750. </div>
  10751. </div>
  10752. <div
  10753. v-if="
  10754. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10755. (tType == 1 || tType == 4)
  10756. "
  10757. >
  10758. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10759. <div
  10760. class="cardList"
  10761. v-if="st.rightAnswer"
  10762. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10763. >
  10764. <div class="cardBox">
  10765. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10766. <el-tooltip
  10767. class="item"
  10768. effect="light"
  10769. :content="r"
  10770. placement="top"
  10771. >
  10772. <div class="isCard1">
  10773. <div>{{ r }}</div>
  10774. </div>
  10775. </el-tooltip>
  10776. </div>
  10777. </div>
  10778. <div class="cardAnswerBox">
  10779. 组成句子:{{ st.rightAnswer.join(" ") }}
  10780. </div>
  10781. </div>
  10782. </div>
  10783. </div>
  10784. </div>
  10785. </div>
  10786. <span slot="footer" class="dialog-footer">
  10787. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10788. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10789. >确 定</el-button
  10790. >
  10791. </span>
  10792. </el-dialog>
  10793. <el-dialog
  10794. title="教师提交作业"
  10795. :visible.sync="dialogVisibleWorks"
  10796. :append-to-body="true"
  10797. width="500px"
  10798. :before-close="handleClose"
  10799. class="dialog_change"
  10800. >
  10801. <div class="marginT">
  10802. <div class="w_name">
  10803. 学生姓名:<span>{{ sStudent.student }}</span>
  10804. </div>
  10805. <div>上传文件</div>
  10806. <div
  10807. class="chapter_add"
  10808. @click="addImg($event)"
  10809. v-if="studyJuri[0].cover.length == 0"
  10810. >
  10811. <div class="up_photo">
  10812. <img src="../assets/uploadImg2.png" alt />
  10813. </div>
  10814. <!-- <input
  10815. type="file"
  10816. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10817. style="display: none"
  10818. @change="beforeUpload1($event, 1)"
  10819. /> -->
  10820. <input
  10821. type="file"
  10822. accept="*"
  10823. style="display: none"
  10824. @change="beforeUpload1($event, 1)"
  10825. />
  10826. </div>
  10827. <!-- capture="camera" -->
  10828. <div
  10829. class="chapter_add"
  10830. style="
  10831. display: flex;
  10832. width: 100%;
  10833. flex-direction: row;
  10834. flex-wrap: wrap;
  10835. justify-content: flex-start;
  10836. padding: 15px 0;
  10837. "
  10838. v-if="studyJuri[0].cover.length > 0"
  10839. >
  10840. <div class="upCover">
  10841. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10842. <img :src="word" alt v-else-if="fileType == 1" />
  10843. <img :src="video" alt v-else-if="fileType == 2" />
  10844. <img :src="word2" alt v-else-if="fileType == 3" />
  10845. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10846. <div class="deleteWord" @click="clean(1)">
  10847. <img src="../assets/icon/deleteWorks.png" alt />
  10848. </div>
  10849. </div>
  10850. </div>
  10851. </div>
  10852. <div
  10853. class="upload_send"
  10854. @click="addCourseWorksTeacher(taskCount)"
  10855. v-if="!proVisible"
  10856. >
  10857. 提交
  10858. </div>
  10859. </el-dialog>
  10860. <ImgDraw
  10861. :drawShow="drawShow"
  10862. @closeDraw="closeDraw"
  10863. @addImgDraw="addImgDraw"
  10864. :bg="bg"
  10865. ></ImgDraw>
  10866. <el-dialog
  10867. title="表格"
  10868. :visible.sync="dialogVisibleTable"
  10869. :append-to-body="true"
  10870. width="95%"
  10871. :before-close="handleClose"
  10872. class="dialog_diy"
  10873. >
  10874. <el-form>
  10875. <div
  10876. style="
  10877. display: flex;
  10878. align-items: center;
  10879. justify-content: space-between;
  10880. "
  10881. >
  10882. <span>表格内容</span>
  10883. <el-button type="primary" size="small" @click="returnTableText"
  10884. >还原模板</el-button
  10885. >
  10886. </div>
  10887. <Table
  10888. v-model="tableJson.text"
  10889. @change="change"
  10890. v-if="dialogVisibleTable"
  10891. ></Table>
  10892. </el-form>
  10893. <span slot="footer" class="dialog-footer">
  10894. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10895. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10896. </span>
  10897. </el-dialog>
  10898. <el-dialog
  10899. title="表格"
  10900. :visible.sync="dialogVisibleTableTeacher"
  10901. :append-to-body="true"
  10902. width="95%"
  10903. :before-close="handleClose"
  10904. class="dialog_diy"
  10905. >
  10906. <el-form>
  10907. <div class="w_name">
  10908. 学生姓名:<span>{{ sStudent.student }}</span>
  10909. </div>
  10910. <div>表格内容</div>
  10911. <Table
  10912. v-model="tableJson.text"
  10913. @change="change"
  10914. v-if="dialogVisibleTableTeacher"
  10915. ></Table>
  10916. </el-form>
  10917. <span slot="footer" class="dialog-footer">
  10918. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10919. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10920. </span>
  10921. </el-dialog>
  10922. <el-dialog
  10923. title="文档"
  10924. :visible.sync="dialogVisibleWord"
  10925. :append-to-body="true"
  10926. width="95%"
  10927. :before-close="handleClose"
  10928. class="dialog_diy"
  10929. >
  10930. <el-form>
  10931. <div
  10932. style="
  10933. display: flex;
  10934. align-items: center;
  10935. justify-content: space-between;
  10936. "
  10937. >
  10938. <span>文档内容</span>
  10939. <el-button type="primary" size="small" @click="returnWordText"
  10940. >还原模板</el-button
  10941. >
  10942. </div>
  10943. <editor-bar
  10944. v-model="wordJson.text"
  10945. v-if="dialogVisibleWord"
  10946. ></editor-bar>
  10947. </el-form>
  10948. <span slot="footer" class="dialog-footer">
  10949. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10950. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10951. </span>
  10952. </el-dialog>
  10953. <el-dialog
  10954. title="文档"
  10955. :visible.sync="dialogVisibleWordTeacher"
  10956. :append-to-body="true"
  10957. width="95%"
  10958. :before-close="handleClose"
  10959. class="dialog_diy"
  10960. >
  10961. <el-form>
  10962. <div class="w_name">
  10963. 学生姓名:<span>{{ sStudent.student }}</span>
  10964. </div>
  10965. <div>文档内容</div>
  10966. <editor-bar
  10967. v-model="wordJson.text"
  10968. v-if="dialogVisibleWordTeacher"
  10969. ></editor-bar>
  10970. </el-form>
  10971. <span slot="footer" class="dialog-footer">
  10972. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10973. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10974. </span>
  10975. </el-dialog>
  10976. <el-dialog
  10977. title="表格"
  10978. :visible.sync="dialogVisibleTable2"
  10979. :append-to-body="true"
  10980. width="95%"
  10981. :before-close="handleClose"
  10982. class="dialog_diy"
  10983. >
  10984. <el-form>
  10985. <div class="cont" v-html="tableJson.text"></div>
  10986. </el-form>
  10987. <span slot="footer" class="dialog-footer">
  10988. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10989. </span>
  10990. </el-dialog>
  10991. <el-dialog
  10992. title="文档"
  10993. :visible.sync="dialogVisibleTable3"
  10994. :append-to-body="true"
  10995. width="95%"
  10996. :before-close="handleClose"
  10997. class="dialog_diy"
  10998. >
  10999. <el-form>
  11000. <div class="cont" v-html="tableJson.text"></div>
  11001. </el-form>
  11002. <span slot="footer" class="dialog-footer">
  11003. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11004. </span>
  11005. </el-dialog>
  11006. <el-dialog
  11007. title="分组设置"
  11008. :visible.sync="dialogVisibleGroup"
  11009. :append-to-body="true"
  11010. width="95%"
  11011. :before-close="handleClose"
  11012. class="dialog_diy"
  11013. >
  11014. <div v-if="dialogVisibleGroup">
  11015. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11016. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11017. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11018. </div>
  11019. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11020. @click="lockChair">
  11021. 锁定位置
  11022. </div>
  11023. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11024. 解锁位置
  11025. </div> -->
  11026. <div class="group_switch">
  11027. <span>开放选座</span>
  11028. <el-switch
  11029. v-model="islock"
  11030. active-text=""
  11031. class="switchCss"
  11032. @change="lockChair"
  11033. ></el-switch>
  11034. </div>
  11035. <div
  11036. type="primary"
  11037. @click="updateGroup"
  11038. class="returnBtn"
  11039. style="background-color: #225bc7"
  11040. >
  11041. 分组设置
  11042. </div>
  11043. </div>
  11044. <div>
  11045. <div
  11046. class="g_d_box"
  11047. v-if="groupJson.group && groupStudent[toolindex]"
  11048. >
  11049. <div
  11050. class="g_d_group"
  11051. v-for="(g, gindex) in groupJson.group"
  11052. :key="gindex"
  11053. >
  11054. <div class="g_d_group_chair">
  11055. <div v-if="groupJson.number > 1">
  11056. <span
  11057. :class="{
  11058. isChair:
  11059. groupStudent[toolindex][gindex] &&
  11060. groupStudent[toolindex][gindex][0],
  11061. updateChair:
  11062. courseDetail.userid == userid &&
  11063. groupStudent[toolindex][gindex] &&
  11064. groupStudent[toolindex][gindex][0] &&
  11065. groupJson.islock == 2,
  11066. }"
  11067. ><span
  11068. class="updateChairBtn"
  11069. @click="
  11070. updateGroupChair(
  11071. groupStudent[toolindex][gindex] &&
  11072. groupStudent[toolindex][gindex][0]
  11073. )
  11074. "
  11075. >修改</span
  11076. ></span
  11077. ><span>{{
  11078. groupStudent[toolindex][gindex] &&
  11079. groupStudent[toolindex][gindex][0]
  11080. ? groupStudent[toolindex][gindex] &&
  11081. groupStudent[toolindex][gindex][0].name
  11082. : "空位置"
  11083. }}</span>
  11084. </div>
  11085. <div v-if="groupJson.number > 4">
  11086. <span
  11087. :class="{
  11088. isChair:
  11089. groupStudent[toolindex][gindex] &&
  11090. groupStudent[toolindex][gindex][4],
  11091. updateChair:
  11092. courseDetail.userid == userid &&
  11093. groupStudent[toolindex][gindex] &&
  11094. groupStudent[toolindex][gindex][4] &&
  11095. groupJson.islock == 2,
  11096. }"
  11097. ><span
  11098. class="updateChairBtn"
  11099. @click="
  11100. updateGroupChair(
  11101. groupStudent[toolindex][gindex] &&
  11102. groupStudent[toolindex][gindex][4]
  11103. )
  11104. "
  11105. >修改</span
  11106. ></span
  11107. ><span>{{
  11108. groupStudent[toolindex][gindex] &&
  11109. groupStudent[toolindex][gindex][4]
  11110. ? groupStudent[toolindex][gindex] &&
  11111. groupStudent[toolindex][gindex][4].name
  11112. : "空位置"
  11113. }}</span>
  11114. </div>
  11115. <div v-if="groupJson.number > 8">
  11116. <span
  11117. :class="{
  11118. isChair:
  11119. groupStudent[toolindex][gindex] &&
  11120. groupStudent[toolindex][gindex][8],
  11121. updateChair:
  11122. courseDetail.userid == userid &&
  11123. groupStudent[toolindex][gindex] &&
  11124. groupStudent[toolindex][gindex][8] &&
  11125. groupJson.islock == 2,
  11126. }"
  11127. ><span
  11128. class="updateChairBtn"
  11129. @click="
  11130. updateGroupChair(
  11131. groupStudent[toolindex][gindex] &&
  11132. groupStudent[toolindex][gindex][8]
  11133. )
  11134. "
  11135. >修改</span
  11136. ></span
  11137. ><span>{{
  11138. groupStudent[toolindex][gindex] &&
  11139. groupStudent[toolindex][gindex][8]
  11140. ? groupStudent[toolindex][gindex] &&
  11141. groupStudent[toolindex][gindex][8].name
  11142. : "空位置"
  11143. }}</span>
  11144. </div>
  11145. </div>
  11146. <div class="g_d_group_tableBox">
  11147. <div class="g_d_group_chair2">
  11148. <div v-if="groupJson.number > 2">
  11149. <span
  11150. :class="{
  11151. isChair:
  11152. groupStudent[toolindex][gindex] &&
  11153. groupStudent[toolindex][gindex][2],
  11154. updateChair:
  11155. courseDetail.userid == userid &&
  11156. groupStudent[toolindex][gindex] &&
  11157. groupStudent[toolindex][gindex][2] &&
  11158. groupJson.islock == 2,
  11159. }"
  11160. ><span
  11161. class="updateChairBtn"
  11162. @click="
  11163. updateGroupChair(
  11164. groupStudent[toolindex][gindex] &&
  11165. groupStudent[toolindex][gindex][2]
  11166. )
  11167. "
  11168. >修改</span
  11169. ></span
  11170. ><span>{{
  11171. groupStudent[toolindex][gindex] &&
  11172. groupStudent[toolindex][gindex][2]
  11173. ? groupStudent[toolindex][gindex] &&
  11174. groupStudent[toolindex][gindex][2].name
  11175. : "空位置"
  11176. }}</span>
  11177. </div>
  11178. <div v-if="groupJson.number > 6">
  11179. <span
  11180. :class="{
  11181. isChair:
  11182. groupStudent[toolindex][gindex] &&
  11183. groupStudent[toolindex][gindex][6],
  11184. updateChair:
  11185. courseDetail.userid == userid &&
  11186. groupStudent[toolindex][gindex] &&
  11187. groupStudent[toolindex][gindex][6] &&
  11188. groupJson.islock == 2,
  11189. }"
  11190. ><span
  11191. class="updateChairBtn"
  11192. @click="
  11193. updateGroupChair(
  11194. groupStudent[toolindex][gindex] &&
  11195. groupStudent[toolindex][gindex][6]
  11196. )
  11197. "
  11198. >修改</span
  11199. ></span
  11200. ><span>{{
  11201. groupStudent[toolindex][gindex] &&
  11202. groupStudent[toolindex][gindex][6]
  11203. ? groupStudent[toolindex][gindex] &&
  11204. groupStudent[toolindex][gindex][6].name
  11205. : "空位置"
  11206. }}</span>
  11207. </div>
  11208. </div>
  11209. <div class="g_d_group_table">
  11210. <div>
  11211. {{ g.name }}
  11212. </div>
  11213. <div>
  11214. <div
  11215. v-if="
  11216. courseDetail.userid == userid && groupJson.islock == 2
  11217. "
  11218. @click="deleteGroupChair(gindex)"
  11219. >
  11220. 移除组员
  11221. </div>
  11222. <div
  11223. @click="selectGroup(gindex)"
  11224. v-else-if="
  11225. groupStudentUid[toolindex] &&
  11226. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11227. "
  11228. >
  11229. 加入分组
  11230. </div>
  11231. <div
  11232. @click="
  11233. exitGroup(
  11234. groupStudent[toolindex][gindex] &&
  11235. groupStudent[toolindex][gindex][
  11236. groupStudentUid[toolindex][gindex].indexOf(userid)
  11237. ].id
  11238. )
  11239. "
  11240. v-else-if="
  11241. groupStudentUid[toolindex] &&
  11242. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11243. "
  11244. >
  11245. 退出分组
  11246. </div>
  11247. </div>
  11248. </div>
  11249. <div class="g_d_group_chair2">
  11250. <div v-if="groupJson.number > 3">
  11251. <span
  11252. :class="{
  11253. isChair:
  11254. groupStudent[toolindex][gindex] &&
  11255. groupStudent[toolindex][gindex][3],
  11256. updateChair:
  11257. courseDetail.userid == userid &&
  11258. groupStudent[toolindex][gindex] &&
  11259. groupStudent[toolindex][gindex][3] &&
  11260. groupJson.islock == 2,
  11261. }"
  11262. ><span
  11263. class="updateChairBtn"
  11264. @click="
  11265. updateGroupChair(
  11266. groupStudent[toolindex][gindex] &&
  11267. groupStudent[toolindex][gindex][3]
  11268. )
  11269. "
  11270. >修改</span
  11271. ></span
  11272. ><span>{{
  11273. groupStudent[toolindex][gindex] &&
  11274. groupStudent[toolindex][gindex][3]
  11275. ? groupStudent[toolindex][gindex] &&
  11276. groupStudent[toolindex][gindex][3].name
  11277. : "空位置"
  11278. }}</span>
  11279. </div>
  11280. <div v-if="groupJson.number > 7">
  11281. <span
  11282. :class="{
  11283. isChair:
  11284. groupStudent[toolindex][gindex] &&
  11285. groupStudent[toolindex][gindex][7],
  11286. updateChair:
  11287. courseDetail.userid == userid &&
  11288. groupStudent[toolindex][gindex] &&
  11289. groupStudent[toolindex][gindex][7] &&
  11290. groupJson.islock == 2,
  11291. }"
  11292. ><span
  11293. class="updateChairBtn"
  11294. @click="
  11295. updateGroupChair(
  11296. groupStudent[toolindex][gindex] &&
  11297. groupStudent[toolindex][gindex][7]
  11298. )
  11299. "
  11300. >修改</span
  11301. ></span
  11302. ><span>{{
  11303. groupStudent[toolindex][gindex] &&
  11304. groupStudent[toolindex][gindex][7]
  11305. ? groupStudent[toolindex][gindex] &&
  11306. groupStudent[toolindex][gindex][7].name
  11307. : "空位置"
  11308. }}</span>
  11309. </div>
  11310. </div>
  11311. </div>
  11312. <div class="g_d_group_chair">
  11313. <div v-if="groupJson.number > 1">
  11314. <span
  11315. :class="{
  11316. isChair:
  11317. groupStudent[toolindex][gindex] &&
  11318. groupStudent[toolindex][gindex][1],
  11319. updateChair:
  11320. courseDetail.userid == userid &&
  11321. groupStudent[toolindex][gindex] &&
  11322. groupStudent[toolindex][gindex][1] &&
  11323. groupJson.islock == 2,
  11324. }"
  11325. ><span
  11326. class="updateChairBtn"
  11327. @click="
  11328. updateGroupChair(
  11329. groupStudent[toolindex][gindex] &&
  11330. groupStudent[toolindex][gindex][1]
  11331. )
  11332. "
  11333. >修改</span
  11334. ></span
  11335. ><span>{{
  11336. groupStudent[toolindex][gindex] &&
  11337. groupStudent[toolindex][gindex][1]
  11338. ? groupStudent[toolindex][gindex] &&
  11339. groupStudent[toolindex][gindex][1].name
  11340. : "空位置"
  11341. }}</span>
  11342. </div>
  11343. <div v-if="groupJson.number > 5">
  11344. <span
  11345. :class="{
  11346. isChair:
  11347. groupStudent[toolindex][gindex] &&
  11348. groupStudent[toolindex][gindex][5],
  11349. updateChair:
  11350. courseDetail.userid == userid &&
  11351. groupStudent[toolindex][gindex] &&
  11352. groupStudent[toolindex][gindex][5] &&
  11353. groupJson.islock == 2,
  11354. }"
  11355. ><span
  11356. class="updateChairBtn"
  11357. @click="
  11358. updateGroupChair(
  11359. groupStudent[toolindex][gindex] &&
  11360. groupStudent[toolindex][gindex][5]
  11361. )
  11362. "
  11363. >修改</span
  11364. ></span
  11365. ><span>{{
  11366. groupStudent[toolindex][gindex] &&
  11367. groupStudent[toolindex][gindex][5]
  11368. ? groupStudent[toolindex][gindex] &&
  11369. groupStudent[toolindex][gindex][5].name
  11370. : "空位置"
  11371. }}</span>
  11372. </div>
  11373. <div v-if="groupJson.number > 9">
  11374. <span
  11375. :class="{
  11376. isChair:
  11377. groupStudent[toolindex][gindex] &&
  11378. groupStudent[toolindex][gindex][9],
  11379. updateChair:
  11380. courseDetail.userid == userid &&
  11381. groupStudent[toolindex][gindex] &&
  11382. groupStudent[toolindex][gindex][9] &&
  11383. groupJson.islock == 2,
  11384. }"
  11385. ><span
  11386. class="updateChairBtn"
  11387. @click="
  11388. updateGroupChair(
  11389. groupStudent[toolindex][gindex] &&
  11390. groupStudent[toolindex][gindex][9]
  11391. )
  11392. "
  11393. >修改</span
  11394. ></span
  11395. ><span>{{
  11396. groupStudent[toolindex][gindex] &&
  11397. groupStudent[toolindex][gindex][9]
  11398. ? groupStudent[toolindex][gindex] &&
  11399. groupStudent[toolindex][gindex][9].name
  11400. : "空位置"
  11401. }}</span>
  11402. </div>
  11403. </div>
  11404. </div>
  11405. </div>
  11406. </div>
  11407. </div>
  11408. <span slot="footer" class="dialog-footer">
  11409. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11410. </span>
  11411. </el-dialog>
  11412. <el-dialog
  11413. title="分组设置"
  11414. :visible.sync="dialogVisibleGroup2"
  11415. :append-to-body="true"
  11416. width="650px"
  11417. :before-close="handleClose"
  11418. class="dialog_diy"
  11419. >
  11420. <div class="groupBox">
  11421. <div v-if="groupJson2.group" class="groupContent">
  11422. <div class="groupTitle">请设置小组数量及名称</div>
  11423. <div
  11424. v-for="(item, index) in groupJson2.group"
  11425. :key="index"
  11426. class="groupName"
  11427. >
  11428. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11429. <el-input
  11430. v-model="item.name"
  11431. placeholder="请输入名称..."
  11432. style="width: 250px"
  11433. ></el-input>
  11434. <!-- <div class="groupBtn">
  11435. <el-button type="primary" size="small" @click="addGroup(index)">
  11436. 添加</el-button>
  11437. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11438. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11439. </div> -->
  11440. </div>
  11441. </div>
  11442. <div class="groupContent">
  11443. <div class="groupTitle">请设置每组人数</div>
  11444. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11445. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11446. <el-input
  11447. v-model="groupJson2.number"
  11448. style="width: 150px"
  11449. placeholder="请输入2-10的数字"
  11450. @change="numberPan"
  11451. ></el-input>
  11452. </div>
  11453. </div>
  11454. <span slot="footer" class="dialog-footer">
  11455. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11456. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11457. </span>
  11458. </el-dialog>
  11459. <el-dialog
  11460. title="作业提交"
  11461. :visible.sync="dialogVisibleGroupWork"
  11462. :append-to-body="true"
  11463. width="500px"
  11464. :before-close="handleClose"
  11465. class="dialog_change"
  11466. >
  11467. <div class="marginT">
  11468. <div>上传文件</div>
  11469. <div
  11470. class="chapter_add"
  11471. @click="addImg($event)"
  11472. v-if="studyJuri[0].cover.length == 0"
  11473. >
  11474. <div class="up_photo">
  11475. <img src="../assets/icon/uploadImg.png" alt />
  11476. </div>
  11477. <!-- <input
  11478. type="file"
  11479. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11480. style="display: none"
  11481. @change="beforeUpload1($event, 1)"
  11482. /> -->
  11483. <input
  11484. type="file"
  11485. accept="*"
  11486. style="display: none"
  11487. @change="beforeUpload1($event, 1)"
  11488. />
  11489. </div>
  11490. <!-- capture="camera" -->
  11491. <div
  11492. class="chapter_add"
  11493. style="
  11494. display: flex;
  11495. width: 100%;
  11496. flex-direction: row;
  11497. flex-wrap: wrap;
  11498. justify-content: flex-start;
  11499. padding: 15px 0;
  11500. "
  11501. v-if="studyJuri[0].cover.length > 0"
  11502. >
  11503. <div class="upCover">
  11504. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11505. <img :src="word" alt v-else-if="fileType == 1" />
  11506. <img :src="video" alt v-else-if="fileType == 2" />
  11507. <img :src="word2" alt v-else-if="fileType == 3" />
  11508. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11509. <div class="deleteWord" @click="clean(1)">
  11510. <img src="../assets/icon/deleteWorks.png" alt />
  11511. </div>
  11512. </div>
  11513. </div>
  11514. </div>
  11515. <div
  11516. class="upload_send"
  11517. @click="addCourseWorks2(taskCount)"
  11518. v-if="!proVisible"
  11519. >
  11520. 提交
  11521. </div>
  11522. </el-dialog>
  11523. <el-dialog
  11524. title="修改分组"
  11525. :visible.sync="dialogVisibleUpdateGroup"
  11526. :append-to-body="true"
  11527. width="350px"
  11528. :before-close="handleClose"
  11529. class="dialog_diy"
  11530. >
  11531. <div>
  11532. <h2>
  11533. {{ this.updateGroupUser.name }}
  11534. </h2>
  11535. <div style="color: rgb(171 171 171); margin-top: 10px">
  11536. 请选择要进入的分组
  11537. </div>
  11538. <el-radio-group v-model="checkChair">
  11539. <el-radio
  11540. style="display: block; margin-top: 20px"
  11541. v-for="(item, index) in updateGroupArray"
  11542. :label="item.label"
  11543. :key="index"
  11544. >{{ item.name }}</el-radio
  11545. >
  11546. </el-radio-group>
  11547. </div>
  11548. <span slot="footer" class="dialog-footer">
  11549. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11550. <el-button type="primary" @click="updateChair">确定</el-button>
  11551. </span>
  11552. </el-dialog>
  11553. <el-dialog
  11554. title="移除组员"
  11555. :visible.sync="dialogVisibleDeleteGroup"
  11556. :append-to-body="true"
  11557. width="350px"
  11558. :before-close="handleClose"
  11559. class="dialog_diy"
  11560. >
  11561. <div>
  11562. <h2>
  11563. {{ this.deleteGroupArray.name }}
  11564. </h2>
  11565. <div style="color: rgb(171 171 171); margin-top: 10px">
  11566. 请选择要删除的组员
  11567. </div>
  11568. <el-checkbox-group v-model="checkDeleteGroup">
  11569. <el-checkbox
  11570. style="display: flex; margin-top: 20px"
  11571. v-for="(item, index) in deleteGroupUser"
  11572. :label="item.userid"
  11573. :key="index"
  11574. >{{ item.name }}</el-checkbox
  11575. >
  11576. </el-checkbox-group>
  11577. </div>
  11578. <span slot="footer" class="dialog-footer">
  11579. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11580. <el-button type="primary" @click="deleteChair">确定</el-button>
  11581. </span>
  11582. </el-dialog>
  11583. <el-dialog
  11584. title="批量上传"
  11585. :visible.sync="dialogVisiblePl"
  11586. :append-to-body="true"
  11587. width="700px"
  11588. :before-close="handleClose"
  11589. class="dialog_change"
  11590. >
  11591. <div class="marginT">
  11592. <div class="plworkBox">
  11593. <div
  11594. class="chapter_add"
  11595. style="
  11596. display: flex;
  11597. width: 150px;
  11598. flex-direction: row;
  11599. flex-wrap: wrap;
  11600. justify-content: flex-start;
  11601. margin: 0 10px 10px 0;
  11602. "
  11603. v-for="(item, index) in plworkFile"
  11604. :key="index"
  11605. >
  11606. <div class="upCover2">
  11607. <img
  11608. :src="item.url"
  11609. alt
  11610. v-if="item.fileType == 1"
  11611. @click="previewImg(item.url)"
  11612. />
  11613. <img :src="word" alt v-else-if="item.fileType == 4" />
  11614. <img :src="video" alt v-else />
  11615. <!-- <span class="picName">{{ item.name }}</span> -->
  11616. <!-- <el-input
  11617. v-model="item.username"
  11618. placeholder="请输入学生名字"
  11619. style="margin-top: 10px"
  11620. ></el-input> -->
  11621. <div
  11622. class="pl_select_box"
  11623. @click="
  11624. getUpdateMore(true, checkUpload(), item.username, index)
  11625. "
  11626. >
  11627. {{ getSName(item.username) }}
  11628. </div>
  11629. <!-- <el-select
  11630. style="margin-top: 10px"
  11631. v-model="item.username"
  11632. filterable
  11633. allow-create
  11634. placeholder="请选择学生"
  11635. >
  11636. <el-option
  11637. v-for="item1 in checkUpload()"
  11638. :key="item1.userid"
  11639. :label="item1.name ? item1.name : item1.username"
  11640. :value="item1.userid"
  11641. >
  11642. </el-option>
  11643. </el-select> -->
  11644. <div class="deleteWord" @click="clean2(index)">
  11645. <img src="../assets/icon/deleteWorks.png" alt />
  11646. </div>
  11647. </div>
  11648. </div>
  11649. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11650. <div class="up_photo2">
  11651. <img src="../assets/icon/plwork.png" alt />
  11652. <span>点击上传文件</span>
  11653. </div>
  11654. <input
  11655. type="file"
  11656. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11657. multiple="multiple"
  11658. style="display: none"
  11659. @change="beforeUpload3($event, 6)"
  11660. />
  11661. </div>
  11662. </div>
  11663. </div>
  11664. <!-- capture="camera" -->
  11665. <div
  11666. class="upload_send"
  11667. @click="addCourseWorksPl(taskCount)"
  11668. v-if="!proVisible2"
  11669. >
  11670. 提交
  11671. </div>
  11672. </el-dialog>
  11673. <el-dialog
  11674. title="修改名称"
  11675. :visible.sync="dialogVisibleSname"
  11676. width="500px"
  11677. :before-close="handleClose"
  11678. class="dialog_diy"
  11679. center
  11680. >
  11681. <div
  11682. style="
  11683. text-align: center;
  11684. display: flex;
  11685. align-items: center;
  11686. justify-content: center;
  11687. "
  11688. >
  11689. <span class="tian1">名称</span>
  11690. <div
  11691. class="pl_select_box"
  11692. style="margin-left: 10px; width: 200px"
  11693. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11694. >
  11695. {{ getSName(worksSName) }}
  11696. </div>
  11697. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11698. placeholder="请选择学生">
  11699. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11700. :value="item.userid">
  11701. </el-option>
  11702. </el-select> -->
  11703. <!-- <el-input
  11704. v-model="worksSName"
  11705. style="width: 250px; margin: 15px 0px"
  11706. ></el-input> -->
  11707. </div>
  11708. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11709. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11710. <el-button type="primary" @click="updateName">确 定</el-button>
  11711. </span>
  11712. </el-dialog>
  11713. <el-dialog
  11714. title="英语写作"
  11715. :visible.sync="engDialogVisible"
  11716. :append-to-body="true"
  11717. width="800px"
  11718. :before-close="handleClose"
  11719. class="dialog_diy"
  11720. >
  11721. <onlineWrite
  11722. v-if="engDialogVisible"
  11723. :englishList="englishList"
  11724. :myAnswerList1="myAnswerList1"
  11725. :userid="userid"
  11726. ref="engJson"
  11727. ></onlineWrite>
  11728. <span slot="footer" class="dialog-footer">
  11729. <el-button @click="engDialogVisible = false">取 消</el-button>
  11730. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11731. </span>
  11732. </el-dialog>
  11733. <el-dialog
  11734. title="英语写作"
  11735. :visible.sync="engUpdateDialogVisible"
  11736. :append-to-body="true"
  11737. width="800px"
  11738. :before-close="handleClose"
  11739. class="dialog_diy fullStyle"
  11740. >
  11741. <div class="engUpBox">
  11742. <div class="engUpTop">
  11743. <div class="engTitle">
  11744. <div>作文题目:</div>
  11745. <div>{{ englishList1.engTitle }}</div>
  11746. </div>
  11747. <div class="engText">
  11748. <div>作文内容:</div>
  11749. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11750. </div>
  11751. </div>
  11752. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11753. <div class="oldBox">
  11754. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11755. <div class="oldText">
  11756. <div class="detailBox">
  11757. <div class="oldDetail">
  11758. <div>标题:</div>
  11759. <div>{{ oldEnglishJson.engTitle }} </div>
  11760. </div>
  11761. <div class="oldDetail1">
  11762. <div>正文:</div>
  11763. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11764. </div>
  11765. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11766. <div>图片:</div>
  11767. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11768. </div>
  11769. </div>
  11770. </div>
  11771. </div>
  11772. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11773. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11774. <div class="oldText">
  11775. <div class="detailBox" style="position: relative;">
  11776. <div class="oldDetail">
  11777. <div>标题:</div>
  11778. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11779. <div v-else v-html="newEnglishList.engTitle"></div>
  11780. </div>
  11781. <div class="oldDetail">
  11782. <div>正文:</div>
  11783. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11784. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11785. </div>
  11786. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11787. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11788. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11789. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11790. </div>
  11791. </div>
  11792. </div>
  11793. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11794. <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">
  11795. <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>
  11796. <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>
  11797. </div>
  11798. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11799. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11800. <div class="detailBox" style="position: relative;">
  11801. <div class="oldDetail">
  11802. <div>标题:</div>
  11803. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11804. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11805. </div>
  11806. <div class="oldDetail">
  11807. <div>正文:</div>
  11808. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11809. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11810. </div>
  11811. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11812. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11813. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11814. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11815. </div>
  11816. </div>
  11817. <div class="oldText" v-else-if="newEngIndex == -1">
  11818. <div class="detailBox" style="position: relative;">
  11819. <div class="oldDetail">
  11820. <div>标题:</div>
  11821. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11822. <div v-else v-html="newEnglishList.engTitle"></div>
  11823. </div>
  11824. <div class="oldDetail">
  11825. <div>正文:</div>
  11826. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11827. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11828. </div>
  11829. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11830. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11831. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11832. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11833. </div>
  11834. </div>
  11835. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11836. <div class="detailBox" style="position: relative;">
  11837. <div class="oldDetail">
  11838. <div>标题:</div>
  11839. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11840. <div v-else>
  11841. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  11842. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11843. </div>
  11844. </div>
  11845. <div class="oldDetail">
  11846. <div>正文:</div>
  11847. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11848. <div v-else>
  11849. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11850. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11851. </div>
  11852. </div>
  11853. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11854. <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>
  11855. <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>
  11856. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11857. </div>
  11858. </div>
  11859. </div>
  11860. </div>
  11861. </div>
  11862. <span slot="footer" class="dialog-footer">
  11863. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11864. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11865. </span>
  11866. </el-dialog>
  11867. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11868. <interVideo
  11869. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11870. :videoJson="videoJson"
  11871. :userid="userid"
  11872. :id="id"
  11873. :courseType="courseType"
  11874. :taskCount="taskCount"
  11875. :toolindex="toolindex"
  11876. :videoType="videoType"
  11877. ></interVideo>
  11878. <UpdateMore
  11879. :dialogVisibleMember.sync="dialogVisibleMember"
  11880. :cList="uploadStudentJuri"
  11881. :userid="userid"
  11882. :searchTN="worksSName2"
  11883. @setPlname="setPlname"
  11884. ></UpdateMore>
  11885. <!-- <wordCloud
  11886. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11887. :data="wordCloudData"
  11888. ></wordCloud> -->
  11889. <el-dialog
  11890. title="词云"
  11891. :visible.sync="dialogVisibleWordCloud"
  11892. width="30%"
  11893. class="dialog_diy"
  11894. :before-close="handleClose">
  11895. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  11896. </el-dialog>
  11897. <el-dialog
  11898. title="挑人"
  11899. :visible.sync="dialogVisiblePickPeople"
  11900. width="650px"
  11901. :before-close="handleClose"
  11902. class="dialog_diy"
  11903. center
  11904. >
  11905. <div class="pick_box">
  11906. <div
  11907. class="noWorksName"
  11908. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11909. v-for="(item, index) in uploadStudentJuri"
  11910. :key="index"
  11911. @click="pickStudent(item)"
  11912. >
  11913. {{ item.name }}
  11914. </div>
  11915. </div>
  11916. </el-dialog>
  11917. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11918. :englishVoiceJson='englishVoiceJson'
  11919. :userid="userid"
  11920. :id="id"
  11921. :courseType="courseType"
  11922. :taskCount="taskCount"
  11923. :toolindex="toolindex"
  11924. @selectSWorks="selectSWorks"
  11925. @selectStudent="selectStudent"
  11926. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11927. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11928. :userid="userid"
  11929. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11930. :commentDetail="commentDetail"
  11931. :courseDetail="courseDetail"
  11932. :wScore="wScore"
  11933. :scoreDetail="scoreDetail"
  11934. @selectSWorks="selectSWorks"
  11935. @selectStudent="selectStudent"></checkEnglishVoice>
  11936. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  11937. <choseWorksDetailDialog
  11938. ref="choseWorksDetailDialogRef"
  11939. :worksStudentData="worksStudent"
  11940. :noWorksSData="noWorksS"
  11941. :chapInfoListData="chapInfoList"
  11942. :courseType="courseType"
  11943. :taskCount="taskCount"
  11944. :tType="tType"
  11945. :sIsOpen="sIsOpen"
  11946. :courseDetail="courseDetail"
  11947. :groupStudent="groupStudent"
  11948. @selectSLook="selectSLook"
  11949. @selectSWorks="selectSWorks"
  11950. @selectStudent="selectStudent"
  11951. @deleteWorks="deleteWorks"
  11952. @openTools="openTools"
  11953. @openWord="openWord"
  11954. @openScore="openScore"
  11955. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  11956. />
  11957. <el-dialog
  11958. :visible.sync="confirmOpenDig"
  11959. width="500px"
  11960. :modal="false"
  11961. class="confirmOpenDigCss dialog_diyCopy"
  11962. :before-close="handleClose">
  11963. <div style="display: flex;align-items: center;">
  11964. <img src="../assets/icon/course/confirmOpenDig.svg" alt="">
  11965. <span>“{{ courseDetail.title }}”开课啦</span>
  11966. </div>
  11967. <div style="margin: 20px 0 35px;">
  11968. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  11969. <div>要认真听讲哦~</div>
  11970. </div>
  11971. <div style="text-align: center;">
  11972. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  11973. </div>
  11974. </el-dialog>
  11975. </div>
  11976. </template>
  11977. <script>
  11978. import "../common/aws-sdk-2.235.1.min.js";
  11979. // import pdf from "./components/pdf3";
  11980. import pdf from "./components/vpdf";
  11981. import AskStatic from "./components/askStatic";
  11982. import AskStatic2 from "./components/askStatic2";
  11983. import AnswerData2 from "./components/answerData2";
  11984. import AnswerData from "./components/answerData";
  11985. import EditorBar from "./tools/wangEnduit.vue";
  11986. import Table from "./tools/table.vue";
  11987. import Time from "./tools/time.vue";
  11988. import Mind from "./tools/jsmind.vue";
  11989. import Sunburst from "./tools/sunburst";
  11990. import SeeBoard from "./tools/seeBoard";
  11991. import * as imageConversion from "image-conversion";
  11992. import Audio from "./components/audio.vue";
  11993. import ImgDraw from "./tools/imgDraw/imgDraw";
  11994. import { Empty } from "element-ui";
  11995. import RecordRTC from "recordrtc";
  11996. import interVideo from "./interVideo/index.vue";
  11997. import UpdateMore from "./updateMore/updateMore.vue";
  11998. import wordCloud from "./wordCloud/index.vue";
  11999. import axios from "axios";
  12000. import JSZip from "jszip";
  12001. import FileSaver from "file-saver";
  12002. import onlineWrite from "./components/onlineWrite";
  12003. import englishEva from "./components/englishEva";
  12004. import * as Diff from 'diff'
  12005. import EnglishVoice from './EnglishVoice2/index.vue'
  12006. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  12007. import correctText from './components/correctText.vue'
  12008. import scoreItem from './scoreList/scoreItem.vue'
  12009. import scoreZong from './scoreZong/index.vue'
  12010. import classRoomHelper from './classRoomHelper/index.vue'
  12011. import statisticalAnalysis from "./components/statisticalAnalysis.vue";
  12012. import choseWorksDetailDialog from './components/choseWorksDetailDialog.vue';
  12013. import { v4 as uuidv4 } from "uuid";
  12014. var OpenCC = require("opencc-js");
  12015. import choseWordCloud from './components/choseWordCloud.vue'
  12016. let converter = OpenCC.Converter({
  12017. from: "hk",
  12018. to: "cn"
  12019. });
  12020. const getFile = (url) => {
  12021. return new Promise((resolve, reject) => {
  12022. var credentials = {
  12023. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12024. secretAccessKey: "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",
  12025. }; //秘钥形式的登录上传
  12026. window.AWS.config.update(credentials);
  12027. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12028. let url2 = url;
  12029. let _url2 = "";
  12030. if (
  12031. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12032. ) {
  12033. _url2 = url2.split(
  12034. "https://view.officeapps.live.com/op/view.aspx?src="
  12035. )[1];
  12036. } else {
  12037. _url2 = url2;
  12038. }
  12039. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12040. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12041. var params = {
  12042. Bucket: "ccrb",
  12043. Key: name
  12044. };
  12045. s3.getObject(params, function (err, data) {
  12046. if (err) {
  12047. console.log(err, err.stack)
  12048. resolve({ data: 1 });
  12049. }else {
  12050. resolve({ data: data.Body });
  12051. console.log(data);
  12052. } // sxuccessful response
  12053. });
  12054. // axios({
  12055. // method: "get",
  12056. // url,
  12057. // responseType: "blob",
  12058. // })
  12059. // .then((data) => {
  12060. // resolve({ data: data.data });
  12061. // })
  12062. // .catch((error) => {
  12063. // resolve({ data: 1 });
  12064. // // reject(error.toString());
  12065. // });
  12066. });
  12067. };
  12068. export default {
  12069. components: {
  12070. choseWordCloud,
  12071. EditorBar,
  12072. Time,
  12073. pdf,
  12074. AskStatic,
  12075. AskStatic2,
  12076. Mind,
  12077. Sunburst,
  12078. SeeBoard,
  12079. AnswerData2,
  12080. AnswerData,
  12081. Audio,
  12082. ImgDraw,
  12083. Table,
  12084. interVideo,
  12085. UpdateMore,
  12086. wordCloud,
  12087. onlineWrite,
  12088. englishEva,
  12089. EnglishVoice,
  12090. checkEnglishVoice,
  12091. correctText,
  12092. scoreItem,
  12093. classRoomHelper,
  12094. scoreZong,
  12095. statisticalAnalysis,
  12096. choseWorksDetailDialog
  12097. },
  12098. data() {
  12099. return {
  12100. wordCloudKey: 0,
  12101. bg: null,
  12102. drawShow: false,
  12103. dialogVisible: false,
  12104. dialogVisiblePl: false,
  12105. commentDialogVisible: false,
  12106. dialogVisibleMember: false,
  12107. dialogVisibleWordCloud: false,
  12108. videoVisible: false,
  12109. isStar: false,
  12110. studentEvalDialogVisible: false,
  12111. studentEvalDialogVisibleTeacher: false,
  12112. dialogVisibleSelect: false,
  12113. dialogVisibleSelectTeacher: false,
  12114. dialogVisibleScore: false,
  12115. dialogVisibleENScore: false,
  12116. dialogVisibleSentence: false,
  12117. dialogVisibleSentenceTeacher: false,
  12118. dialogVisibleSentence1: false,
  12119. dialogVisibleWorks: false,
  12120. dialogVisibleTable: false,
  12121. dialogVisibleTableTeacher: false,
  12122. dialogVisibleWord: false,
  12123. dialogVisibleWordTeacher: false,
  12124. dialogVisibleTable2: false,
  12125. dialogVisibleTable3: false,
  12126. dialogVisibleGroupWork: false,
  12127. dialogVisibleUpdateGroup: false,
  12128. dialogVisibleDeleteGroup: false,
  12129. dialogVisibleSname: false,
  12130. dialogVisibleVideo: false,
  12131. dialogVisiblePickPeople: false,
  12132. engDialogVisible: false,
  12133. engUpdateDialogVisible: false,
  12134. engEvaDialogVisible: false,
  12135. evaEngJson: {
  12136. teacherJson: {},
  12137. studentJson: {},
  12138. message: {},
  12139. },
  12140. isNoUserid:false,
  12141. engListLength:0,
  12142. engWid:"",
  12143. newEnglishList:{
  12144. engTitle:"",
  12145. engText:"",
  12146. },
  12147. newEnglishList1:[],
  12148. oldEnglishJson:{},
  12149. oldEnglishJson1:{},
  12150. englishList1:{},
  12151. englishList:{},
  12152. myAnswerList1:{},
  12153. topHeight:0,
  12154. newEngIndex:-1,
  12155. englishToolIndex:0,
  12156. worksSName: "",
  12157. classJuri: [],
  12158. uploadStudentJuri: [],
  12159. uploadCid: "",
  12160. snameWid: "",
  12161. sStudent: {},
  12162. sTool: "",
  12163. bzText: "",
  12164. commentDetail: [],
  12165. selectAnswer: [],
  12166. videoDetail: {},
  12167. selectJson: {},
  12168. eScore: { eBzText: "", eStar: [] },
  12169. id: this.$route.query.courseId,
  12170. userid: this.$route.query.userid,
  12171. classId: this.$route.query.cid,
  12172. // courseTypeLine: this.$route.query.type,
  12173. oid: this.$route.query.oid,
  12174. org: this.$route.query.org,
  12175. tType: this.$route.query.tType,
  12176. courseType: this.$route.query.type,
  12177. screenType: this.$route.query.screenType,
  12178. tcid2: this.$route.query.tcid,
  12179. tcid: "",
  12180. pptImgUrl: "",
  12181. pptImgUrl1: "",
  12182. commentText: "",
  12183. full: false,
  12184. sIsOpen: false,
  12185. IsLookOpen: false,
  12186. IsFollow: false,
  12187. pzDialog: false,
  12188. contentDialog: false,
  12189. mlDialog: false,
  12190. type: 1,
  12191. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12192. sentenceList1: [],
  12193. tableJson: [],
  12194. tableJsonO: [],
  12195. wordJson: [],
  12196. wordJsonO: [],
  12197. vedio: [],
  12198. text: [],
  12199. textList: [],
  12200. line: [],
  12201. lineList: [],
  12202. chapTools: [],
  12203. chapToolList: [],
  12204. file: [],
  12205. fileC: [],
  12206. vedioTime: [],
  12207. upToolImg: "",
  12208. preTime: 0,
  12209. rateList: {
  12210. ca: 0,
  12211. },
  12212. rateParams: [],
  12213. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12214. studyJuri: [
  12215. {
  12216. content: "",
  12217. cover: [],
  12218. upVedio: [],
  12219. upFile: [],
  12220. },
  12221. ],
  12222. isClose: 0,
  12223. plworkFile: [],
  12224. mr: require("../assets/vedioPic.png"),
  12225. word: require("../assets/icon/isWord.png"),
  12226. word2: require("../assets/icon/word2.png"),
  12227. video: require("../assets/icon/isVideo.png"),
  12228. noLikes: require("../assets/icon/comment/noLikes.png"),
  12229. likes: require("../assets/icon/comment/likes.png"),
  12230. scoreImg: require("../assets/score.png"),
  12231. courseDetail: {},
  12232. reply: "",
  12233. isSelect: false,
  12234. chapInfo: [],
  12235. chapInfoList: [],
  12236. taskCount: 0,
  12237. imgList: [],
  12238. noImgList: [],
  12239. pzList: [],
  12240. timeWorkList: [],
  12241. PlTextList: [
  12242. "Excellent!",
  12243. "nice!",
  12244. "很有创意!",
  12245. "还不错哦~",
  12246. "继续努力哦~",
  12247. ],
  12248. isClickNav: "",
  12249. navId: "",
  12250. playerOptions: {
  12251. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12252. autoplay: false, //如果true,浏览器准备好时开始回放。
  12253. muted: false, // 默认情况下将会消除任何音频。
  12254. loop: false, // 导致视频一结束就重新开始。
  12255. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12256. language: "zh-CN",
  12257. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12258. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12259. sources: [
  12260. {
  12261. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12262. src: "", //url地址require("../../assets/media/aaa.mp4")
  12263. },
  12264. ],
  12265. // poster: require("../../assets/tu31.png"), //你的封面地址
  12266. // poster: dataRes.imgUrl, //你的封面地址
  12267. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12268. controlBar: {
  12269. timeDivider: true, //当前时间和持续时间的分隔符
  12270. durationDisplay: true, //显示持续时间
  12271. remainingTimeDisplay: false, //是否显示剩余时间功能
  12272. fullscreenToggle: true, //全屏按钮
  12273. },
  12274. },
  12275. playerOptions1: {
  12276. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12277. autoplay: false, //如果true,浏览器准备好时开始回放。
  12278. muted: false, // 默认情况下将会消除任何音频。
  12279. loop: false, // 导致视频一结束就重新开始。
  12280. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12281. language: "zh-CN",
  12282. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12283. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12284. sources: [
  12285. {
  12286. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12287. src: "", //url地址require("../../assets/media/aaa.mp4")
  12288. },
  12289. ],
  12290. // poster: require("../../assets/tu31.png"), //你的封面地址
  12291. // poster: dataRes.imgUrl, //你的封面地址
  12292. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12293. controlBar: {
  12294. timeDivider: true, //当前时间和持续时间的分隔符
  12295. durationDisplay: true, //显示持续时间
  12296. remainingTimeDisplay: false, //是否显示剩余时间功能
  12297. fullscreenToggle: true, //全屏按钮
  12298. },
  12299. },
  12300. playerO: {},
  12301. noneBtnImg: false,
  12302. proVisible: false,
  12303. proVisible2: false,
  12304. progress: 0,
  12305. isFinishSize: 0,
  12306. isAllSize: 0,
  12307. questionAnswer: "",
  12308. answerQ: "", //问答标题
  12309. rateJson: [],
  12310. wbCount: 0,
  12311. wordCount: 0,
  12312. mindCount: 0,
  12313. askCount: 0,
  12314. noteCount: 0,
  12315. mindNetWorkCount: 0,
  12316. libraryCount: 0,
  12317. workCount: 0,
  12318. timeCount: 0,
  12319. answerCount: 0,
  12320. trainCount: 0,
  12321. evalCount: 0,
  12322. dialogImageUrl: "",
  12323. pictureDialog: false,
  12324. toolTypeList: [],
  12325. dialogVisible1: false,
  12326. dialogVisible2: false,
  12327. dialogVisible3: false,
  12328. dialogVisible6: false,
  12329. dialogVisible4: false,
  12330. isNoHomeWork: false,
  12331. dialogVisible5: false,
  12332. dialogVisible5Teacher: false,
  12333. dialogVisibleChoice: false,
  12334. dialogVisibleChoiceTeacher: false,
  12335. answerDialogVisible: false,
  12336. answerDialogVisibleTeacher: false,
  12337. juriVisible: false,
  12338. timeDialogVisible: false,
  12339. replyDialogVisible: false,
  12340. toolDialogVisible: false,
  12341. replyIndex: 0,
  12342. replyPid: "",
  12343. radio: [],
  12344. isAsk: false,
  12345. askJson: {
  12346. askCount: 1,
  12347. askTitle: "",
  12348. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12349. },
  12350. testJson: {},
  12351. videoType:0,
  12352. checkJson: [],
  12353. askList: [],
  12354. answerList: [],
  12355. navList: [],
  12356. addPzDialog: false,
  12357. pzConText: "",
  12358. worksStudent: [],
  12359. isCloseList: [],
  12360. workStudent: [],
  12361. groupStudent: [],
  12362. groupStudentUid: [],
  12363. noWorksS: [],
  12364. isWorksS: [],
  12365. noWorksStudent: [],
  12366. toolindex: 0,
  12367. toolDetailIndex: null,
  12368. groupIndex: 0,
  12369. workTypeB: false,
  12370. workTypeC: false,
  12371. isAnswer: false,
  12372. isHovered: false,
  12373. isHovered1: false,
  12374. isHovered2: false,
  12375. commentTagShow:0,
  12376. timer: null,
  12377. timer2: null,
  12378. opertimer: null,
  12379. showType: 0,
  12380. fileType: 0,
  12381. showPDF: false,
  12382. noteName: "",
  12383. evaJuri: [],
  12384. evalua: "",
  12385. eTitle: "",
  12386. eName: "",
  12387. eJson: {},
  12388. fid: "", //一级
  12389. sid: "", //二级
  12390. tid: "", //二级
  12391. typeMode: 1,
  12392. eJSONNum: 0,
  12393. Etype: 1,
  12394. data: {
  12395. meta: {
  12396. name: "example",
  12397. author: "dd@163.com",
  12398. version: "0.2",
  12399. },
  12400. format: "node_array",
  12401. data: [{ id: "root", isroot: true, topic: "" }],
  12402. },
  12403. fullDialogVisible: false,
  12404. fulltype: "",
  12405. fullUrl: "",
  12406. commentIndexJson: {},
  12407. Stbodywidth: 0,
  12408. ispzType: 0,
  12409. pzType: 1,
  12410. wScore: 0,
  12411. scoreDetail: "",
  12412. videoStart: false,
  12413. recorder: null,
  12414. groupJson: {},
  12415. islock: false,
  12416. groupJson2: {},
  12417. dialogVisibleGroup: false,
  12418. dialogVisibleGroup2: false,
  12419. updateGroupArray: [],
  12420. updateGroupUser: {},
  12421. deleteGroupUser: [],
  12422. deleteGroupArray: {},
  12423. checkChair: "",
  12424. checkDeleteGroup: [],
  12425. inviteCode: "",
  12426. courseGroupStudent: [],
  12427. courseGroupStudentUid: [],
  12428. courseGroup: {},
  12429. isGroup: false,
  12430. // toolIndex: null,
  12431. tool: {},
  12432. isWorkTool: [
  12433. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12434. ], //, 40
  12435. videoJson: {},
  12436. toolType: 0,
  12437. checktoolArray: [],
  12438. vChapterData: [],
  12439. isUpdateToolDetail: false,
  12440. isUpdateToolDetail1: false,
  12441. updateToolDetailInner: "",
  12442. checkboxList: [],
  12443. plIndex: "",
  12444. worksSName2: "",
  12445. worksSid: "",
  12446. wordCloudData: [],
  12447. isPickStudent: [],
  12448. pzStype: 1,
  12449. myAnList: {},
  12450. userMes:{},
  12451. downLoading: false,
  12452. greyType: false,
  12453. correctWord: [],
  12454. isUpdateText: "",
  12455. EnglishVoiceDialog: false,
  12456. englishVoiceJson: {},
  12457. englishVoiceJsonWork:[],
  12458. scoreList:{
  12459. listdata:[],
  12460. isScoreList:[],
  12461. },
  12462. classRoomHelperWidth: '85px',
  12463. orgArray:[],
  12464. oidArray:[],
  12465. toolsList:{
  12466. 58: "模拟驾驶",
  12467. 59: "路径搜索",
  12468. 60: "深度学习",
  12469. 10: "倒计时",
  12470. 65: "挑人",
  12471. 7: "思维网格",
  12472. 1: "电子白板",
  12473. 52: "文档",
  12474. 3: "思维导图",
  12475. 48: "表格",
  12476. 49: "学生分组",
  12477. 4: "卷调查",
  12478. 45: "选择题",
  12479. 15: "问答",
  12480. 16: "作业提交",
  12481. 50: "批量上传",
  12482. 41: "选择匹配",
  12483. 47: "排序",
  12484. 40: "个人评价",
  12485. 18: "训练平台",
  12486. 21: "AIoT Blockly",
  12487. 23: "AI Python",
  12488. 24: "AI Blockly",
  12489. 32: "源码编辑",
  12490. 57: "CocoPi",
  12491. 63: "海龟编程",
  12492. 28: "翻译",
  12493. 31: "数字画板",
  12494. 39: "GeoGebra",
  12495. 66: "公式编辑",
  12496. 67: "分子结构",
  12497. 68: "时间轴",
  12498. 69: "英语写作",
  12499. 70: "英语口语",
  12500. 25: "目标管理",
  12501. 26: "课程设计",
  12502. 62: "交互视频",
  12503. 71: "AI智能体"
  12504. },
  12505. splitScreenData:{
  12506. isOpen:false,
  12507. userId:"",
  12508. uid:"",
  12509. myUid:"",
  12510. loading:false,
  12511. behavior:null,
  12512. },
  12513. confirmOpenDig:false,
  12514. confirmOpenDigData:'',
  12515. canUseCourseId: ['bfbe1913-2f87-11ef-bf55-005056b86db5','3a64b199-d2eb-11ef-a2d1-005056b86db5', 'bb0b1995-0207-11ef-b534-005056b86db5', 'f77921c8-d2f1-11ef-a2d1-005056b86db5']
  12516. };
  12517. },
  12518. methods: {
  12519. getAIJ(){
  12520. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12521. let oid = res.data[0];
  12522. let org = res.data[1];
  12523. let oidArray = [];
  12524. let orgArray = [];
  12525. oid.forEach(i=>oidArray.push(i.oid))
  12526. org.forEach(i=>orgArray.push(i.oid))
  12527. this.orgArray = orgArray;
  12528. this.oidArray = oidArray;
  12529. })
  12530. },
  12531. insertMemorandum(_html){//保存行为操作
  12532. //variable
  12533. //btn
  12534. let params = [{
  12535. uid:this.userid,
  12536. courseId:this.id+(this.tcid2?this.tcid2:''),
  12537. content:_html
  12538. }]
  12539. console.log("👇👇")
  12540. console.log(params)
  12541. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12542. if(res.data==1){
  12543. console.log('保存操作成功')
  12544. }else{
  12545. console.log('保存操作失败')
  12546. }
  12547. }).catch(e=>{
  12548. console.log('保存操作失败')
  12549. console.log(e)
  12550. })
  12551. },
  12552. gx(){
  12553. this.$forceUpdate();
  12554. },
  12555. isUpdateCorrect(t,p){
  12556. if(this.greyType == false){
  12557. this.isUpdateText = t;
  12558. this.greyType = true;
  12559. }else{
  12560. if(p == 1){
  12561. this.newEnglishList.engText = this.isUpdateText;
  12562. }else if(p == 2){
  12563. this.oldEnglishJson1.engText = this.isUpdateText;
  12564. }else if(p == 3){
  12565. this.newEnglishList.engText = this.isUpdateText;
  12566. }else{
  12567. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12568. }
  12569. this.greyType = false
  12570. }
  12571. },
  12572. aiCorrect(t,p){
  12573. let aiText = "";
  12574. const loading = this.$loading.service({
  12575. background: "rgba(255, 255, 255)",
  12576. target: document.querySelectorAll(".loadingText")[0],
  12577. });
  12578. let param = {
  12579. model: "gpt-3.5-turbo",
  12580. temperature: 0,
  12581. max_tokens: 2048,
  12582. top_p: 1,
  12583. frequency_penalty: 0,
  12584. presence_penalty: 0,
  12585. messages: [
  12586. {
  12587. role: "user",
  12588. content:
  12589.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12590. },
  12591. ],
  12592. uid: this.userid,
  12593. stream: false,
  12594. };
  12595. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12596. (res) => {
  12597. if (
  12598. res.data.FunctionResponse &&
  12599. res.data.FunctionResponse.result &&
  12600. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12601. ) {
  12602. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12603. return;
  12604. }
  12605. aiText =
  12606. res.data.FunctionResponse.choices[0].message.content;
  12607. aiText = aiText.replace(/%/g,"%25");
  12608. // let w = "";
  12609. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12610. // for(var k = 0;k<a.length;k++){
  12611. // //diffWordsWithSpace
  12612. // if(a.length > 1){
  12613. // if(a[k].added == true){
  12614. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12615. // }else if(a[k].removed == true){
  12616. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12617. // }else{
  12618. // w += '<span>' + a[k].value + '</span>';
  12619. // }
  12620. // }else{
  12621. // if(p == 1){
  12622. // w = this.newEnglishList.engText;
  12623. // }else if(p == 2){
  12624. // w = this.oldEnglishJson1.engText;
  12625. // }else if(p == 3){
  12626. // w = this.newEnglishList.engText;
  12627. // }else{
  12628. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12629. // }
  12630. // }
  12631. // }
  12632. if(p == 1){
  12633. this.newEnglishList.engText = aiText;
  12634. }else if(p == 2){
  12635. this.oldEnglishJson1.engText = aiText;
  12636. }else if(p == 3){
  12637. this.newEnglishList.engText = aiText;
  12638. }else{
  12639. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12640. }
  12641. loading.close();
  12642. },
  12643. (err) => {
  12644. console.log(err);
  12645. loading.close();
  12646. }
  12647. );
  12648. },
  12649. addToolChoose() {
  12650. if (!this.checktoolArray.length) {
  12651. this.$message.error("请选择要添加的任务");
  12652. return;
  12653. }
  12654. if (
  12655. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12656. this.taskCount
  12657. ].toolChoose[0].tool.length
  12658. ) {
  12659. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12660. this.taskCount
  12661. ].toolChoose[0].tool = this.checktoolArray;
  12662. } else {
  12663. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12664. this.taskCount
  12665. ].toolChoose.push({
  12666. tool: this.checktoolArray,
  12667. toolDetail: "",
  12668. toolType: 0,
  12669. askCount: 1,
  12670. askTitle: "",
  12671. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12672. });
  12673. }
  12674. let params = [
  12675. {
  12676. cid: this.id,
  12677. chapters: JSON.stringify(this.chapInfoList),
  12678. uid: this.userid,
  12679. unitIndex: this.courseType,
  12680. },
  12681. ];
  12682. this.ajax
  12683. .post(this.$store.state.api + "updateWorkNew4", params)
  12684. .then((res) => {
  12685. this.$message({
  12686. message: "添加成功",
  12687. type: "success",
  12688. });
  12689. this.checktoolArray = [];
  12690. this.getCourseDetail(2);
  12691. this.checkBz(
  12692. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12693. this.taskCount
  12694. ].toolChoose.length - 1
  12695. );
  12696. this.toolDialogVisible = false;
  12697. this.refreshCourse();
  12698. this.$forceUpdate();
  12699. })
  12700. .catch((err) => {
  12701. console.error(err);
  12702. });
  12703. },
  12704. checkBz(index) {
  12705. this.isUpdateToolDetail = false;
  12706. this.$forceUpdate();
  12707. setTimeout(() => {
  12708. document.scrollingElement.scrollTop =
  12709. document.querySelectorAll(".filebox")[index].offsetTop +
  12710. document.querySelector(".student_body").offsetTop;
  12711. }, 500);
  12712. },
  12713. updateToolDetail(i, type) {
  12714. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12715. this.toolDetailIndex = i
  12716. this.isUpdateToolDetail1 = true;
  12717. setTimeout(() => {
  12718. this.updateToolDetailInner = JSON.parse(
  12719. JSON.stringify(
  12720. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12721. this.taskCount
  12722. ].toolChoose[i].toolDetail
  12723. )
  12724. );
  12725. document.querySelector(".checkTextArea").focus();
  12726. }, 0);
  12727. } else if((this.isUpdateToolDetail1 && type != 2)){
  12728. // this.toolDetailIndex = i;
  12729. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12730. this.taskCount
  12731. ].toolChoose[i].toolDetail = JSON.parse(
  12732. JSON.stringify(this.updateToolDetailInner)
  12733. );
  12734. let params = [
  12735. {
  12736. cid: this.id,
  12737. chapters: JSON.stringify(this.chapInfoList),
  12738. uid: this.userid,
  12739. unitIndex: this.courseType,
  12740. },
  12741. ];
  12742. this.ajax
  12743. .post(this.$store.state.api + "updateWorkNew4", params)
  12744. .then((res) => {
  12745. this.isUpdateToolDetail1 = false;
  12746. this.$message({
  12747. message: "修改成功",
  12748. type: "success",
  12749. });
  12750. this.toolDetailIndex = null;
  12751. this.updateToolDetailInner = "";
  12752. this.getCourseDetail(2);
  12753. this.$forceUpdate();
  12754. })
  12755. .catch((err) => {
  12756. console.error(err);
  12757. });
  12758. } else if((this.isUpdateToolDetail1 && type == 2)){
  12759. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12760. this.taskCount
  12761. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12762. JSON.stringify(this.updateToolDetailInner)
  12763. );
  12764. let params = [
  12765. {
  12766. cid: this.id,
  12767. chapters: JSON.stringify(this.chapInfoList),
  12768. uid: this.userid,
  12769. unitIndex: this.courseType,
  12770. },
  12771. ];
  12772. this.ajax
  12773. .post(this.$store.state.api + "updateWorkNew4", params)
  12774. .then((res) => {
  12775. this.$message({
  12776. message: "修改成功",
  12777. type: "success",
  12778. });
  12779. this.toolDetailIndex = i;
  12780. this.isUpdateToolDetail1 = true;
  12781. setTimeout(() => {
  12782. this.updateToolDetailInner = JSON.parse(
  12783. JSON.stringify(
  12784. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12785. this.taskCount
  12786. ].toolChoose[i].toolDetail
  12787. )
  12788. );
  12789. document.querySelector(".checkTextArea").focus();
  12790. }, 0);
  12791. this.getCourseDetail(2);
  12792. this.$forceUpdate();
  12793. })
  12794. .catch((err) => {
  12795. console.error(err);
  12796. });
  12797. }
  12798. },
  12799. jumpGj(i, j, k, l) {
  12800. for (var z = 0; z < this.navList.length; z++) {
  12801. for (var q = 0; q < this.navList[z].task.length; q++) {
  12802. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12803. this.navList[z].task[q].tool[w].isTool = false;
  12804. }
  12805. }
  12806. }
  12807. this.navList[i].task[j].tool[k].isTool =
  12808. !this.navList[i].task[j].tool[k].isTool;
  12809. var a = document.scrollingElement;
  12810. this.navId = ""
  12811. let target = document.querySelector(`#gj${k}`);
  12812. if (target) {
  12813. // target.scrollIntoView(true);
  12814. // setTimeout(() => {
  12815. // a.scrollTop = a.scrollTop - 150;
  12816. // }, 0);
  12817. target.scrollIntoView();
  12818. setTimeout(()=>{
  12819. let scrollBody = document.querySelector('.body_student').parentElement
  12820. scrollBody.scrollTop = scrollBody.scrollTop - 100
  12821. }, 0);
  12822. }
  12823. let flag = this.courseType == i;
  12824. let flag2 = this.taskCount == j
  12825. if (l) {
  12826. this.courseType = i;
  12827. // this.navId = l;
  12828. this.taskCount = j;
  12829. this.selectPz();
  12830. this.getHomeWork();
  12831. this.getCourseDetail(2);
  12832. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  12833. if(flag){
  12834. if(flag2){
  12835. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12836. }else{
  12837. this.insertMemorandum(`选择<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12838. }
  12839. }else{
  12840. this.insertMemorandum(`选择<span class="variable">阶段${i+1}${this.navList[i].dyName?':'+this.navList[i].dyName:''}</span>→<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12841. }
  12842. }
  12843. // var b = this.$refs["bz" + k][0];
  12844. // a.scrollTop = b.offsetTop;
  12845. },
  12846. addTools2(i) {
  12847. if (i == 4) {
  12848. // this.openTools2(4);
  12849. this.$message.error("暂未开放");
  12850. return;
  12851. }
  12852. if (i == 45) {
  12853. // this.openTools2(45);
  12854. this.$message.error("暂未开放");
  12855. return;
  12856. }
  12857. if (i == 47) {
  12858. // this.openTools2(47);
  12859. this.$message.error("暂未开放");
  12860. return;
  12861. }
  12862. if (i == 49) {
  12863. // this.openTools2(49);
  12864. this.$message.error("暂未开放");
  12865. return;
  12866. }
  12867. if (i == 62) {
  12868. // this.openTools(itemTaskIndex, 62, toolIndex);
  12869. this.$message.error("暂未开放");
  12870. return;
  12871. }
  12872. if (i == 15) {
  12873. // this.openTools(itemTaskIndex, 15, toolIndex);
  12874. this.$message.error("暂未开放");
  12875. return;
  12876. }
  12877. if (i == 40) {
  12878. // this.openTools(itemTaskIndex, 40, toolIndex);
  12879. this.$message.error("暂未开放");
  12880. return;
  12881. }
  12882. if (i == 41) {
  12883. // this.openTools(itemTaskIndex, 41, toolIndex);
  12884. this.$message.error("暂未开放");
  12885. return;
  12886. }
  12887. if (i == 42) {
  12888. // this.openTools(itemTaskIndex, 42, toolIndex);
  12889. this.$message.error("暂未开放");
  12890. return;
  12891. }
  12892. if (this.checktoolArray.length > 0) {
  12893. if (this.checktoolArray.indexOf(i) != -1) {
  12894. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12895. } else {
  12896. this.checktoolArray = [];
  12897. this.checktoolArray.push(i);
  12898. }
  12899. } else {
  12900. this.checktoolArray.push(i);
  12901. }
  12902. this.$forceUpdate();
  12903. },
  12904. jump() {
  12905. window.parent.postMessage({ tools: "43" }, "*");
  12906. },
  12907. getUpdateMore(f, checkboxList, searchTN, index) {
  12908. this.dialogVisibleMember = f;
  12909. this.checkboxList = checkboxList;
  12910. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12911. this.plIndex = index;
  12912. },
  12913. setPlname(a) {
  12914. if (this.plworkFile.length) {
  12915. this.plworkFile[this.plIndex].username = a;
  12916. } else {
  12917. this.worksSName = a;
  12918. }
  12919. this.dialogVisibleMember = false;
  12920. },
  12921. previewImg(url,w=null) {
  12922. this.$hevueImgPreview(url);
  12923. if(w){
  12924. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  12925. }
  12926. },
  12927. checkImg(list) {
  12928. if (!list.length) {
  12929. return;
  12930. }
  12931. this.$hevueImgPreview({
  12932. multiple: true, // 开启多图预览模式
  12933. imgList: list, // 需要预览的多图数组
  12934. });
  12935. },
  12936. change(val) {
  12937. console.log(val);
  12938. },
  12939. goTo(path) {
  12940. this.$router.push(path);
  12941. },
  12942. handlePictureCardPreview(url) {
  12943. this.dialogImageUrl = url;
  12944. this.pictureDialog = true;
  12945. },
  12946. clean(type) {
  12947. if (type == 1) {
  12948. this.studyJuri[0].cover.splice(0, 1);
  12949. } else if (type == 2) {
  12950. this.studyJuri[0].upVedio.splice(0, 1);
  12951. } else {
  12952. this.studyJuri[0].upFile.splice(0, 1);
  12953. }
  12954. },
  12955. clean2(index) {
  12956. this.plworkFile.splice(index, 1);
  12957. },
  12958. handleClose(done) {
  12959. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12960. this.videoDetail.sources[0].src = "";
  12961. }
  12962. this.commentIndexJson = {};
  12963. done();
  12964. },
  12965. fullTools() {
  12966. this.full = !this.full;
  12967. },
  12968. imgChange(file, fileList, type) {
  12969. if (type == 1) {
  12970. var _tmp = this.studyJuri[0].cover;
  12971. } else if (type == 2) {
  12972. var _tmp = this.studyJuri[0].upVedio;
  12973. } else {
  12974. var _tmp = this.studyJuri[0].upFile;
  12975. }
  12976. this.noneBtnImg = _tmp.length >= 1;
  12977. },
  12978. setContent(bool) {
  12979. this.contentDialog = bool;
  12980. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12981. document.querySelector(".workd_media").style.height = "650px";
  12982. } else if (document.querySelector(".workd_media")) {
  12983. document.querySelector(".workd_media").style.height = "auto";
  12984. }
  12985. },
  12986. setContent2(bool) {
  12987. this.mlDialog = bool;
  12988. if (
  12989. bool &&
  12990. this.contentDialog &&
  12991. document.querySelector(".workd_media")
  12992. ) {
  12993. document.querySelector(".workd_media").style.height = "650px";
  12994. } else if (document.querySelector(".workd_media")) {
  12995. document.querySelector(".workd_media").style.height = "auto";
  12996. }
  12997. this.$forceUpdate();
  12998. },
  12999. openToolAll() {
  13000. this.toolDialogVisible = true;
  13001. },
  13002. addImg(e) {
  13003. var el = e.currentTarget;
  13004. // this.$message.success('触发上传')
  13005. el.getElementsByTagName("input")[0].click();
  13006. e.target.value = "";
  13007. },
  13008. addSelectAnswer() {
  13009. let params = [
  13010. {
  13011. uid: this.userid,
  13012. cid: this.id,
  13013. stage: this.courseType,
  13014. task: this.taskCount,
  13015. tool: this.toolindex,
  13016. content: this.selectAnswer.answer,
  13017. type: 7,
  13018. },
  13019. ];
  13020. this.ajax
  13021. .post(this.$store.state.api + "addCourseWorks", params)
  13022. .then((res) => {
  13023. this.$message({
  13024. message: "提交成功",
  13025. type: "success",
  13026. });
  13027. this.dialogVisibleSelect = false;
  13028. // this.selectAnswer = {};
  13029. this.selectSWorks();
  13030. this.selectStudent();
  13031. })
  13032. .catch((err) => {
  13033. this.$message.error("提交失败");
  13034. console.error(err);
  13035. });
  13036. },
  13037. addSelectAnswerTeacher() {
  13038. let params = [
  13039. {
  13040. uid: this.sStudent.userid,
  13041. cid: this.id,
  13042. stage: this.courseType,
  13043. task: this.taskCount,
  13044. tool: this.toolindex,
  13045. content: this.selectAnswer.answer,
  13046. type: 7,
  13047. },
  13048. ];
  13049. this.ajax
  13050. .post(this.$store.state.api + "addCourseWorks", params)
  13051. .then((res) => {
  13052. this.$message({
  13053. message: "提交成功",
  13054. type: "success",
  13055. });
  13056. this.dialogVisibleSelectTeacher = false;
  13057. // this.selectAnswer = {};
  13058. this.selectSWorks();
  13059. this.selectStudent();
  13060. })
  13061. .catch((err) => {
  13062. this.$message.error("提交失败");
  13063. console.error(err);
  13064. });
  13065. },
  13066. addSenWorks() {
  13067. for (var i = 0; i < this.sentenceList.length; i++) {
  13068. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13069. if (
  13070. this.sentenceList[i].chooseSenList[j] == undefined ||
  13071. this.sentenceList[i].chooseSenList[j] == ""
  13072. ) {
  13073. this.$message.error("请将答案填写完整!");
  13074. return;
  13075. }
  13076. }
  13077. }
  13078. let params = [
  13079. {
  13080. uid: this.userid,
  13081. cid: this.id,
  13082. stage: this.courseType,
  13083. task: this.taskCount,
  13084. tool: this.toolindex,
  13085. content: JSON.stringify(this.sentenceList),
  13086. type: 9,
  13087. },
  13088. ];
  13089. this.ajax
  13090. .post(this.$store.state.api + "addCourseWorks", params)
  13091. .then((res) => {
  13092. this.$message({
  13093. message: "提交成功",
  13094. type: "success",
  13095. });
  13096. this.dialogVisibleSentence = false;
  13097. // this.selectAnswer = {};
  13098. this.selectSWorks();
  13099. this.selectStudent();
  13100. })
  13101. .catch((err) => {
  13102. this.$message.error("提交失败");
  13103. console.error(err);
  13104. });
  13105. },
  13106. addSenWorksTeacher() {
  13107. for (var i = 0; i < this.sentenceList.length; i++) {
  13108. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13109. if (
  13110. this.sentenceList[i].chooseSenList[j] == undefined ||
  13111. this.sentenceList[i].chooseSenList[j] == ""
  13112. ) {
  13113. this.$message.error("请将答案填写完整!");
  13114. return;
  13115. }
  13116. }
  13117. }
  13118. let params = [
  13119. {
  13120. uid: this.sStudent.userid,
  13121. cid: this.id,
  13122. stage: this.courseType,
  13123. task: this.taskCount,
  13124. tool: this.toolindex,
  13125. content: JSON.stringify(this.sentenceList),
  13126. type: 9,
  13127. },
  13128. ];
  13129. this.ajax
  13130. .post(this.$store.state.api + "addCourseWorks", params)
  13131. .then((res) => {
  13132. this.$message({
  13133. message: "提交成功",
  13134. type: "success",
  13135. });
  13136. this.dialogVisibleSentenceTeacher = false;
  13137. // this.selectAnswer = {};
  13138. this.selectSWorks();
  13139. this.selectStudent();
  13140. })
  13141. .catch((err) => {
  13142. this.$message.error("提交失败");
  13143. console.error(err);
  13144. });
  13145. },
  13146. returnTableText() {
  13147. this.$confirm("确定还原此模板吗?", "提示", {
  13148. confirmButtonText: "确定",
  13149. cancelButtonText: "取消",
  13150. type: "warning",
  13151. })
  13152. .then(() => {
  13153. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13154. })
  13155. .catch(() => {});
  13156. },
  13157. addTableWorks() {
  13158. let params = [
  13159. {
  13160. uid: this.userid,
  13161. cid: this.id,
  13162. stage: this.courseType,
  13163. task: this.taskCount,
  13164. tool: this.toolindex,
  13165. content: JSON.stringify(this.tableJson),
  13166. type: 10,
  13167. },
  13168. ];
  13169. this.ajax
  13170. .post(this.$store.state.api + "addCourseWorks", params)
  13171. .then((res) => {
  13172. this.$message({
  13173. message: "提交成功",
  13174. type: "success",
  13175. });
  13176. this.dialogVisibleTable = false;
  13177. // this.selectAnswer = {};
  13178. this.selectSWorks();
  13179. this.selectStudent();
  13180. })
  13181. .catch((err) => {
  13182. this.$message.error("提交失败");
  13183. console.error(err);
  13184. });
  13185. },
  13186. tableRowClassName({ row, rowIndex }) {
  13187. if ((rowIndex + 1) % 2 === 0) {
  13188. return "even_row";
  13189. } else {
  13190. return "";
  13191. }
  13192. },
  13193. addTableWorksTeacher() {
  13194. let params = [
  13195. {
  13196. uid: this.sStudent.userid,
  13197. cid: this.id,
  13198. stage: this.courseType,
  13199. task: this.taskCount,
  13200. tool: this.toolindex,
  13201. content: JSON.stringify(this.tableJson),
  13202. type: 10,
  13203. },
  13204. ];
  13205. this.ajax
  13206. .post(this.$store.state.api + "addCourseWorks", params)
  13207. .then((res) => {
  13208. this.$message({
  13209. message: "提交成功",
  13210. type: "success",
  13211. });
  13212. this.dialogVisibleTableTeacher = false;
  13213. // this.selectAnswer = {};
  13214. this.selectSWorks();
  13215. this.selectStudent();
  13216. })
  13217. .catch((err) => {
  13218. this.$message.error("提交失败");
  13219. console.error(err);
  13220. });
  13221. },
  13222. returnWordText() {
  13223. this.$confirm("确定还原此模板吗?", "提示", {
  13224. confirmButtonText: "确定",
  13225. cancelButtonText: "取消",
  13226. type: "warning",
  13227. })
  13228. .then(() => {
  13229. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13230. })
  13231. .catch(() => {});
  13232. },
  13233. addWordWorks() {
  13234. let params = [
  13235. {
  13236. uid: this.userid,
  13237. cid: this.id,
  13238. stage: this.courseType,
  13239. task: this.taskCount,
  13240. tool: this.toolindex,
  13241. content: JSON.stringify(this.wordJson),
  13242. type: 13,
  13243. atool: 52,
  13244. },
  13245. ];
  13246. this.ajax
  13247. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13248. .then((res) => {
  13249. this.$message({
  13250. message: "提交成功",
  13251. type: "success",
  13252. });
  13253. this.dialogVisibleWord = false;
  13254. // this.selectAnswer = {};
  13255. this.selectSWorks();
  13256. this.selectStudent();
  13257. })
  13258. .catch((err) => {
  13259. this.$message.error("提交失败");
  13260. console.error(err);
  13261. });
  13262. },
  13263. addWordWorksTeacher() {
  13264. let params = [
  13265. {
  13266. uid: this.sStudent.userid,
  13267. cid: this.id,
  13268. stage: this.courseType,
  13269. task: this.taskCount,
  13270. tool: this.toolindex,
  13271. content: JSON.stringify(this.wordJson),
  13272. type: 13,
  13273. atool: 52,
  13274. },
  13275. ];
  13276. this.ajax
  13277. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13278. .then((res) => {
  13279. this.$message({
  13280. message: "提交成功",
  13281. type: "success",
  13282. });
  13283. this.dialogVisibleWordTeacher = false;
  13284. // this.selectAnswer = {};
  13285. this.selectSWorks();
  13286. this.selectStudent();
  13287. })
  13288. .catch((err) => {
  13289. this.$message.error("提交失败");
  13290. console.error(err);
  13291. });
  13292. },
  13293. addCourseWorks(i) {
  13294. var typesql;
  13295. if (this.fileType === 0) {
  13296. typesql = 1;
  13297. } else if (this.fileType === 1) {
  13298. typesql = 4;
  13299. } else if (this.fileType === 2) {
  13300. typesql = 5;
  13301. } else if (this.fileType === 3) {
  13302. typesql = 12;
  13303. }
  13304. if (!this.studyJuri[0].cover[0].url) {
  13305. this.$message.error("请上传文件");
  13306. return;
  13307. }
  13308. let params = [
  13309. {
  13310. uid: this.userid,
  13311. cid: this.id,
  13312. stage: this.courseType,
  13313. task: i,
  13314. tool: this.toolindex,
  13315. content: this.studyJuri[0].cover[0].url,
  13316. type: typesql,
  13317. },
  13318. ];
  13319. this.ajax
  13320. .post(this.$store.state.api + "addCourseWorksR", params)
  13321. .then((res) => {
  13322. this.$message({
  13323. message: "提交成功",
  13324. type: "success",
  13325. });
  13326. this.studyJuri[0].cover = [];
  13327. this.dialogVisible = false;
  13328. this.getCourseDetail(2);
  13329. })
  13330. .catch((err) => {
  13331. this.$message.error("提交失败");
  13332. console.error(err);
  13333. });
  13334. },
  13335. addCourseWorksPl(i) {
  13336. let _files = this.plworkFile;
  13337. var c = 1;
  13338. for (var k = 0; k < _files.length; k++) {
  13339. if (!_files[k].username) {
  13340. c = 2;
  13341. }
  13342. }
  13343. if (c == 2) {
  13344. this.$message.error("请填写学生姓名");
  13345. return;
  13346. }
  13347. let params = [
  13348. {
  13349. ateacher: this.userid,
  13350. cid: this.id,
  13351. stage: this.courseType,
  13352. task: i,
  13353. tool: this.toolindex,
  13354. content: JSON.stringify(_files),
  13355. },
  13356. ];
  13357. this.ajax
  13358. .post(this.$store.state.api + "addCourseWorksPl", params)
  13359. .then((res) => {
  13360. this.$message({
  13361. message: "提交成功",
  13362. type: "success",
  13363. });
  13364. this.plworkFile = [];
  13365. this.dialogVisiblePl = false;
  13366. this.getCourseDetail(2);
  13367. })
  13368. .catch((err) => {
  13369. this.$message.error("提交失败");
  13370. console.error(err);
  13371. });
  13372. },
  13373. addCourseWorks2(i) {
  13374. var typesql;
  13375. if (this.fileType === 0) {
  13376. typesql = 0;
  13377. } else if (this.fileType === 1) {
  13378. typesql = 1;
  13379. } else if (this.fileType === 2) {
  13380. typesql = 3;
  13381. } else if (this.fileType === 3) {
  13382. typesql = 12;
  13383. }
  13384. if (!this.studyJuri[0].cover[0].url) {
  13385. this.$message.error("请上传文件");
  13386. return;
  13387. }
  13388. let params = [
  13389. {
  13390. uid: this.userid,
  13391. cid: this.id,
  13392. stage: this.courseType,
  13393. task: i,
  13394. tool: this.toolindex,
  13395. content: JSON.stringify({
  13396. type: typesql,
  13397. groupIndex: this.groupIndex,
  13398. url: this.studyJuri[0].cover[0].url,
  13399. }),
  13400. type: 11,
  13401. atool: 49,
  13402. text: "",
  13403. },
  13404. ];
  13405. this.ajax
  13406. .post(this.$store.state.api + "addCourseWorks5", params)
  13407. .then((res) => {
  13408. this.$message({
  13409. message: "提交成功",
  13410. type: "success",
  13411. });
  13412. this.studyJuri[0].cover = [];
  13413. this.dialogVisibleGroupWork = false;
  13414. this.getCourseDetail(2);
  13415. })
  13416. .catch((err) => {
  13417. this.$message.error("提交失败");
  13418. console.error(err);
  13419. });
  13420. },
  13421. addEnglishWork() {
  13422. this.myAnList = this.$refs['engJson'].myAnswerList;
  13423. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13424. this.$message.error("请输入作文标题和正文!");
  13425. return;
  13426. }
  13427. let params = [
  13428. {
  13429. uid: this.userid,
  13430. cid: this.id,
  13431. stage: this.courseType,
  13432. task: this.taskCount,
  13433. tool: this.englishToolIndex,
  13434. content: JSON.stringify(this.myAnList),
  13435. type: 16,
  13436. atool: 69,
  13437. text: "",
  13438. },
  13439. ];
  13440. this.ajax
  13441. .post(this.$store.state.api + "addCourseWorks5", params)
  13442. .then((res) => {
  13443. this.$message({
  13444. message: "提交成功",
  13445. type: "success",
  13446. });
  13447. this.myAnList = {};
  13448. this.englishList = {};
  13449. this.englishToolIndex = 0;
  13450. this.engDialogVisible = false;
  13451. this.selectSWorks();
  13452. this.selectStudent();
  13453. })
  13454. .catch((err) => {
  13455. this.$message.error("提交失败");
  13456. console.error(err);
  13457. });
  13458. },
  13459. addCourseWorksGong(i, data, tool) {
  13460. let params = [
  13461. {
  13462. uid: this.userid,
  13463. cid: this.id,
  13464. stage: this.courseType,
  13465. task: this.taskCount,
  13466. tool: i,
  13467. content: data,
  13468. type: 12,
  13469. atool: tool,
  13470. text: "",
  13471. },
  13472. ];
  13473. this.ajax
  13474. .post(this.$store.state.api + "addCourseWorks5", params)
  13475. .then((res) => {
  13476. this.$message({
  13477. message: "提交成功",
  13478. type: "success",
  13479. });
  13480. this.studyJuri[0].cover = [];
  13481. this.selectSWorks();
  13482. this.selectStudent();
  13483. })
  13484. .catch((err) => {
  13485. this.$message.error("提交失败");
  13486. console.error(err);
  13487. });
  13488. },
  13489. addCourseWorksGongTeacher(i, data, tool) {
  13490. let params = [
  13491. {
  13492. uid: this.sStudent.userid,
  13493. cid: this.id,
  13494. stage: this.courseType,
  13495. task: this.taskCount,
  13496. tool: i,
  13497. content: data,
  13498. type: 12,
  13499. atool: tool,
  13500. text: "",
  13501. },
  13502. ];
  13503. this.ajax
  13504. .post(this.$store.state.api + "addCourseWorks5", params)
  13505. .then((res) => {
  13506. this.$message({
  13507. message: "提交成功",
  13508. type: "success",
  13509. });
  13510. this.studyJuri[0].cover = [];
  13511. this.dialogVisibleWorks = false;
  13512. this.selectSWorks();
  13513. this.selectStudent();
  13514. })
  13515. .catch((err) => {
  13516. this.$message.error("提交失败");
  13517. console.error(err);
  13518. });
  13519. },
  13520. addCourseWorksGongPl(i, data, tool, type) {
  13521. let params = [
  13522. {
  13523. uid: this.sStudent.userid,
  13524. cid: this.id,
  13525. stage: this.courseType,
  13526. task: this.taskCount,
  13527. tool: i,
  13528. content: data,
  13529. type: type,
  13530. atool: tool,
  13531. text: "",
  13532. },
  13533. ];
  13534. this.ajax
  13535. .post(this.$store.state.api + "addCourseWorks5", params)
  13536. .then((res) => {
  13537. this.$message({
  13538. message: "提交成功",
  13539. type: "success",
  13540. });
  13541. this.studyJuri[0].cover = [];
  13542. this.dialogVisibleWorks = false;
  13543. this.selectSWorks();
  13544. this.selectStudent();
  13545. })
  13546. .catch((err) => {
  13547. this.$message.error("提交失败");
  13548. console.error(err);
  13549. });
  13550. },
  13551. addCourseWorksTeacher(i) {
  13552. var typesql;
  13553. if (this.sTool == 32) {
  13554. this.addCourseWorksGongTeacher(
  13555. this.toolindex,
  13556. this.studyJuri[0].cover[0].url,
  13557. this.sTool
  13558. );
  13559. return;
  13560. }
  13561. if (this.fileType === 0) {
  13562. typesql = 1;
  13563. } else if (this.fileType === 1) {
  13564. typesql = 4;
  13565. } else if (this.fileType === 2) {
  13566. typesql = 5;
  13567. } else if (this.fileType === 3) {
  13568. typesql = 12;
  13569. }
  13570. if (this.sTool == 50) {
  13571. this.addCourseWorksGongPl(
  13572. this.toolindex,
  13573. this.studyJuri[0].cover[0].url,
  13574. this.sTool,
  13575. typesql
  13576. );
  13577. return;
  13578. }
  13579. if (!this.studyJuri[0].cover[0].url) {
  13580. this.$message.error("请上传文件");
  13581. return;
  13582. }
  13583. let params = [
  13584. {
  13585. uid: this.sStudent.userid,
  13586. cid: this.id,
  13587. stage: this.courseType,
  13588. task: i,
  13589. tool: this.toolindex,
  13590. content: this.studyJuri[0].cover[0].url,
  13591. type: typesql,
  13592. ateacher: this.userid,
  13593. },
  13594. ];
  13595. this.ajax
  13596. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13597. .then((res) => {
  13598. this.$message({
  13599. message: "提交成功",
  13600. type: "success",
  13601. });
  13602. this.studyJuri[0].cover = [];
  13603. this.dialogVisibleWorks = false;
  13604. this.getCourseDetail(2);
  13605. })
  13606. .catch((err) => {
  13607. this.$message.error("提交失败");
  13608. console.error(err);
  13609. });
  13610. },
  13611. selectUploadStudent(type) {
  13612. const loading = this.$loading.service({
  13613. background: "rgba(255, 255, 255, 0.7)",
  13614. target: document.body,
  13615. });
  13616. let params = {
  13617. cid: this.uploadCid,
  13618. oid: this.oid,
  13619. cn: "",
  13620. };
  13621. this.ajax
  13622. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13623. .then((res) => {
  13624. loading.close();
  13625. var studentK = [];
  13626. if (this.isWorksS[this.toolindex].length > 0) {
  13627. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13628. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13629. }
  13630. studentK = studentK.join(",");
  13631. }
  13632. this.uploadStudentJuri = res.data[0].filter((el) => {
  13633. return studentK.indexOf(el.userid) == -1;
  13634. });
  13635. if (this.worksSName && this.worksSid) {
  13636. this.uploadStudentJuri.push({
  13637. userid: this.worksSid,
  13638. name: this.worksSName,
  13639. });
  13640. }
  13641. if (type == 1) {
  13642. this.plworkFile = [];
  13643. this.dialogVisibleSname = true;
  13644. } else if (type == 2) {
  13645. this.dialogVisiblePl = true;
  13646. }
  13647. })
  13648. .catch((err) => {
  13649. loading.close();
  13650. console.error(err);
  13651. });
  13652. },
  13653. selectPickStudent() {
  13654. const loading = this.$loading.service({
  13655. background: "rgba(255, 255, 255, 0.7)",
  13656. target: document.body,
  13657. });
  13658. let params = {
  13659. cid: this.uploadCid,
  13660. oid: this.oid,
  13661. cn: "",
  13662. };
  13663. this.ajax
  13664. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13665. .then((res) => {
  13666. loading.close();
  13667. this.uploadStudentJuri = res.data[0];
  13668. this.dialogVisiblePickPeople = true;
  13669. })
  13670. .catch((err) => {
  13671. loading.close();
  13672. console.error(err);
  13673. });
  13674. },
  13675. arrayToArray(arrayo, arrayt) {
  13676. let array1 = arrayo;
  13677. let array2 = arrayt;
  13678. let commonElements = [];
  13679. for (let i = 0; i < array1.length; i++) {
  13680. for (let j = 0; j < array2.length; j++) {
  13681. if (array1[i] === array2[j]) {
  13682. commonElements.push(array1[i]);
  13683. }
  13684. }
  13685. }
  13686. return commonElements;
  13687. },
  13688. selectWorksStudent() {
  13689. let params = {
  13690. oid: this.oid,
  13691. cid: this.courseDetail.juri,
  13692. };
  13693. this.ajax
  13694. .get(this.$store.state.api + "selectWorksStudent", params)
  13695. .then((res) => {
  13696. var a = res.data[0];
  13697. for (var i = 0; i < this.isWorksS.length; i++) {
  13698. this.noWorksS[i] = [];
  13699. var studentK = [];
  13700. if (this.isWorksS[i].length > 0) {
  13701. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13702. studentK.push(this.isWorksS[i][z].uid);
  13703. }
  13704. studentK = studentK.join(",");
  13705. for (var j = 0; j < a.length; j++) {
  13706. if (studentK.indexOf(a[j].userid) == -1) {
  13707. if (this.tcid) {
  13708. // a[j].classid.indexOf(this.tcid) != -1
  13709. if (
  13710. this.arrayToArray(
  13711. a[j].classid.split(","),
  13712. this.tcid.split(",")
  13713. ).length
  13714. ) {
  13715. this.noWorksS[i].push({
  13716. student: a[j].name,
  13717. userid: a[j].userid,
  13718. });
  13719. }
  13720. } else {
  13721. this.noWorksS[i].push({
  13722. student: a[j].name,
  13723. userid: a[j].userid,
  13724. });
  13725. }
  13726. }
  13727. }
  13728. } else {
  13729. for (var k = 0; k < a.length; k++) {
  13730. if (this.tcid) {
  13731. if (
  13732. this.arrayToArray(
  13733. a[k].classid.split(","),
  13734. this.tcid.split(",")
  13735. ).length
  13736. ) {
  13737. this.noWorksS[i].push({
  13738. student: a[k].name,
  13739. userid: a[k].userid,
  13740. });
  13741. }
  13742. } else {
  13743. this.noWorksS[i].push({
  13744. student: a[k].name,
  13745. userid: a[k].userid,
  13746. });
  13747. }
  13748. }
  13749. }
  13750. }
  13751. this.$forceUpdate();
  13752. if (
  13753. Object.keys(this.commentDetail).length &&
  13754. Object.keys(this.commentIndexJson).length &&
  13755. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13756. ) {
  13757. let a = 1;
  13758. let c = this.commentIndexJson;
  13759. if (
  13760. this.commentIndexJson.gindex ||
  13761. this.commentIndexJson.gindex === 0
  13762. ) {
  13763. for (
  13764. var i = 0;
  13765. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13766. i++
  13767. ) {
  13768. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13769. groupA: for (var k = 0; k < _el.length; k++) {
  13770. let el = _el[k];
  13771. if (el.wid == this.commentDetail.wid) {
  13772. a = 2;
  13773. this.commentOther(
  13774. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13775. this.commentIndexJson.toolIndex,
  13776. k,
  13777. this.commentIndexJson.gindex
  13778. );
  13779. break groupA;
  13780. }
  13781. }
  13782. }
  13783. if (a === 1) {
  13784. this.commentDetail = [];
  13785. this.commentIndexJson = {};
  13786. this.commentDialogVisible = false;
  13787. this.$message("此作业已被删除");
  13788. }
  13789. } else {
  13790. if (this.isGroup && this.commentIndexJson.gid) {
  13791. groupA: for (
  13792. var i = 0;
  13793. i < this.courseGroup.group.length;
  13794. i++
  13795. ) {
  13796. let _group = this.courseGroup.group[i];
  13797. if (_group.id == this.commentIndexJson.gid) {
  13798. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13799. for (var k = 0; k < _el2.length; k++) {
  13800. let el2 = _el2[k];
  13801. if (el2.wid == this.commentDetail.wid) {
  13802. a = 2;
  13803. this.commentOther(
  13804. _el2[k],
  13805. this.commentIndexJson.toolIndex,
  13806. k,
  13807. null,
  13808. this.commentIndexJson.gid
  13809. );
  13810. break groupA;
  13811. }
  13812. }
  13813. }
  13814. }
  13815. }
  13816. if (a == 1) {
  13817. for (
  13818. var i = 0;
  13819. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13820. i++
  13821. ) {
  13822. let el =
  13823. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13824. if (el.wid == this.commentDetail.wid) {
  13825. a = 2;
  13826. this.commentOther(
  13827. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13828. this.commentIndexJson.toolIndex,
  13829. i
  13830. );
  13831. break;
  13832. }
  13833. }
  13834. }
  13835. if (a === 1) {
  13836. this.commentDetail = [];
  13837. this.commentIndexJson = {};
  13838. this.commentDialogVisible = false;
  13839. this.$message("此作业已被删除");
  13840. }
  13841. }
  13842. }
  13843. })
  13844. .catch((err) => {
  13845. console.error(err);
  13846. });
  13847. },
  13848. selectStudent() {
  13849. //学生查看自己作业
  13850. let params = {
  13851. uid: this.userid,
  13852. cid: this.id,
  13853. s: this.courseType,
  13854. t: this.taskCount,
  13855. };
  13856. this.ajax
  13857. .get(this.$store.state.api + "selectStudentWorks", params)
  13858. .then((res) => {
  13859. var a =
  13860. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13861. this.taskCount
  13862. ].toolChoose;
  13863. var b = res.data[0];
  13864. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13865. var y = [
  13866. "AVI",
  13867. "NAVI",
  13868. "MPEG",
  13869. "ASF",
  13870. "MOV",
  13871. "WMV",
  13872. "3GP",
  13873. "RM",
  13874. "RMVB",
  13875. "FLV",
  13876. "F4V",
  13877. "H.264",
  13878. "H.265",
  13879. "REAL VIDEO",
  13880. "MKV",
  13881. "WebM",
  13882. "HDDVD",
  13883. "MP4",
  13884. "MPG",
  13885. "M4V",
  13886. "MGV",
  13887. "OGV",
  13888. "QTM",
  13889. "STR",
  13890. "AMC",
  13891. "DVX",
  13892. "EVO",
  13893. "DAT",
  13894. "OGG",
  13895. "OGM",
  13896. ];
  13897. for (var i = 0; i < a.length; i++) {
  13898. this.workStudent[i] = [];
  13899. for (var j = 0; j < b.length; j++) {
  13900. if (i == b[j].tool) {
  13901. if (
  13902. (b[j].type == 1 ||
  13903. b[j].type == 4 ||
  13904. b[j].type == 5 ||
  13905. b[j].type == 6 ||
  13906. b[j].type == 12 ||
  13907. b[j].type == 7) &&
  13908. a[i].tool[0] != 15 &&
  13909. a[i].tool[0] != 4 &&
  13910. a[i].tool[0] != 45 &&
  13911. a[i].tool[0] != 50 &&
  13912. a[i].tool[0] != 32 &&
  13913. a[i].tool[0] != 57 &&
  13914. a[i].tool[0] != 52 &&
  13915. a[i].tool[0] != 69
  13916. ) {
  13917. if (
  13918. c.indexOf(
  13919. b[j].content
  13920. .split(".")
  13921. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13922. ) != -1 &&
  13923. a[i].tool[0] == 16 &&
  13924. b[j].atool != 50
  13925. ) {
  13926. this.workStudent[i].push({
  13927. works: b[j].content,
  13928. sName: b[j].name,
  13929. score: b[j].score,
  13930. img: b[j].img,
  13931. type: 1,
  13932. time: b[j].time,
  13933. userid: b[j].userid,
  13934. wid: b[j].id,
  13935. });
  13936. } else if (
  13937. y.indexOf(
  13938. b[j].content
  13939. .split(".")
  13940. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13941. ) != -1 &&
  13942. a[i].tool[0] == 16 &&
  13943. b[j].atool != 50
  13944. ) {
  13945. this.workStudent[i].push({
  13946. userid: b[j].userid,
  13947. wid: b[j].id,
  13948. works: b[j].content,
  13949. sName: b[j].name,
  13950. score: b[j].score,
  13951. img: b[j].img,
  13952. type: 3,
  13953. time: b[j].time,
  13954. });
  13955. } else if (b[j].type == 6 && b[j].atool != 50) {
  13956. this.workStudent[i].push({
  13957. userid: b[j].userid,
  13958. wid: b[j].id,
  13959. works: b[j].content,
  13960. sName: b[j].name,
  13961. score: b[j].score,
  13962. img: b[j].img,
  13963. type: 4,
  13964. time: b[j].time,
  13965. });
  13966. } else if (b[j].type == 7 && b[j].atool != 50) {
  13967. this.workStudent[i].push({
  13968. userid: b[j].userid,
  13969. wid: b[j].id,
  13970. works: b[j].content,
  13971. sName: b[j].name,
  13972. score: b[j].score,
  13973. img: b[j].img,
  13974. type: 5,
  13975. time: b[j].time,
  13976. });
  13977. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13978. this.workStudent[i].push({
  13979. works: b[j].content,
  13980. sName: b[j].name,
  13981. score: b[j].score,
  13982. img: b[j].img,
  13983. type: 12,
  13984. time: b[j].time,
  13985. userid: b[j].userid,
  13986. wid: b[j].id,
  13987. });
  13988. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13989. this.workStudent[i].push({
  13990. works: b[j].content,
  13991. sName: b[j].name,
  13992. score: b[j].score,
  13993. img: b[j].img,
  13994. type: 0,
  13995. time: b[j].time,
  13996. userid: b[j].userid,
  13997. wid: b[j].id,
  13998. });
  13999. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14000. this.workStudent[i].push({
  14001. works: b[j].content,
  14002. sName: b[j].name,
  14003. score: b[j].score,
  14004. img: b[j].img,
  14005. type: 0,
  14006. time: b[j].time,
  14007. userid: b[j].userid,
  14008. wid: b[j].id,
  14009. });
  14010. }
  14011. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14012. this.workStudent[i].push({
  14013. works: b[j].content,
  14014. sName: b[j].name,
  14015. score: b[j].score,
  14016. img: b[j].img,
  14017. type: 2,
  14018. time: b[j].time,
  14019. userid: b[j].userid,
  14020. wid: b[j].id,
  14021. });
  14022. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14023. //问卷
  14024. this.workStudent[i].push({
  14025. works: b[j].content,
  14026. sName: b[j].name,
  14027. score: b[j].score,
  14028. img: b[j].img,
  14029. type: 2,
  14030. time: b[j].time,
  14031. userid: b[j].userid,
  14032. wid: b[j].id,
  14033. });
  14034. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14035. //选择题
  14036. this.workStudent[i].push({
  14037. works: b[j].content,
  14038. sName: b[j].name,
  14039. score: b[j].score,
  14040. img: b[j].img,
  14041. type: 8,
  14042. time: b[j].time,
  14043. userid: b[j].userid,
  14044. wid: b[j].id,
  14045. });
  14046. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14047. //选择题
  14048. this.workStudent[i].push({
  14049. works: b[j].content,
  14050. sName: b[j].name,
  14051. score: b[j].score,
  14052. img: b[j].img,
  14053. type: 9,
  14054. time: b[j].time,
  14055. userid: b[j].userid,
  14056. wid: b[j].id,
  14057. });
  14058. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14059. //选择题
  14060. this.workStudent[i].push({
  14061. works: b[j].content,
  14062. sName: b[j].name,
  14063. score: b[j].score,
  14064. img: b[j].img,
  14065. type: 10,
  14066. time: b[j].time,
  14067. userid: b[j].userid,
  14068. wid: b[j].id,
  14069. });
  14070. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14071. //选择题
  14072. this.workStudent[i].push({
  14073. works: b[j].content,
  14074. sName: b[j].name,
  14075. score: b[j].score,
  14076. img: b[j].img,
  14077. type: 13,
  14078. time: b[j].time,
  14079. userid: b[j].userid,
  14080. wid: b[j].id,
  14081. });
  14082. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14083. //选择题
  14084. this.workStudent[i].push({
  14085. works: b[j].content,
  14086. sName: b[j].name,
  14087. score: b[j].score,
  14088. img: b[j].img,
  14089. type: 12,
  14090. time: b[j].time,
  14091. userid: b[j].userid,
  14092. wid: b[j].id,
  14093. });
  14094. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14095. //选择题
  14096. this.workStudent[i].push({
  14097. works: b[j].content,
  14098. sName: b[j].name,
  14099. score: b[j].score,
  14100. img: b[j].img,
  14101. type: 12,
  14102. time: b[j].time,
  14103. userid: b[j].userid,
  14104. wid: b[j].id,
  14105. });
  14106. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14107. //选择题
  14108. this.workStudent[i].push({
  14109. works: b[j].content,
  14110. sName: b[j].name,
  14111. score: b[j].score,
  14112. img: b[j].img,
  14113. type: 15,
  14114. time: b[j].time,
  14115. userid: b[j].userid,
  14116. wid: b[j].id,
  14117. });
  14118. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14119. //英语写作
  14120. this.workStudent[i].push({
  14121. works: b[j].content,
  14122. sName: b[j].name,
  14123. score: b[j].score,
  14124. img: b[j].img,
  14125. type: 16,
  14126. time: b[j].time,
  14127. userid: b[j].userid,
  14128. wid: b[j].id,
  14129. aiCode: b[j].aiCode,
  14130. teacherCode: b[j].teacherCode
  14131. });
  14132. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14133. //英语口语
  14134. this.workStudent[i].push({
  14135. works: b[j].content,
  14136. sName: b[j].name,
  14137. score: b[j].score,
  14138. img: b[j].img,
  14139. type: 17,
  14140. time: b[j].time,
  14141. userid: b[j].userid,
  14142. wid: b[j].id,
  14143. });
  14144. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14145. //英语口语
  14146. this.workStudent[i].push({
  14147. works: b[j].content,
  14148. sName: b[j].name,
  14149. score: b[j].score,
  14150. img: b[j].img,
  14151. type: 14,
  14152. time: b[j].time,
  14153. userid: b[j].userid,
  14154. wid: b[j].id,
  14155. });
  14156. }
  14157. }
  14158. }
  14159. }
  14160. })
  14161. .catch((err) => {
  14162. console.error(err);
  14163. });
  14164. },
  14165. openVideo(w) {
  14166. this.videoDetail = {};
  14167. this.playerOptions1.sources[0].src = w.works;
  14168. this.videoDetail = this.playerOptions1;
  14169. this.videoVisible = true;
  14170. },
  14171. isLikes(wid, uid, t, c, isLikes,sName) {
  14172. if (isLikes == false) {
  14173. let params = [
  14174. {
  14175. wid: wid,
  14176. lid: uid,
  14177. t: t,
  14178. c: c,
  14179. },
  14180. ];
  14181. this.ajax
  14182. .post(this.$store.state.api + "insertComment", params)
  14183. .then((res) => {
  14184. this.$message({
  14185. message: "点赞成功",
  14186. type: "success",
  14187. });
  14188. this.selectSWorks();
  14189. this.selectStudent();
  14190. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14191. })
  14192. .catch((err) => {
  14193. this.$message.error("点赞失败");
  14194. console.error(err);
  14195. });
  14196. } else {
  14197. let params = {
  14198. wid: wid,
  14199. lid: uid,
  14200. type: t,
  14201. };
  14202. this.ajax
  14203. .get(this.$store.state.api + "deleteComment", params)
  14204. .then((res) => {
  14205. this.$message({
  14206. message: "取消点赞成功",
  14207. type: "success",
  14208. });
  14209. this.selectSWorks();
  14210. this.selectStudent();
  14211. })
  14212. .catch((err) => {
  14213. console.error(err);
  14214. });
  14215. }
  14216. },
  14217. deleteComment(wid) {
  14218. this.$confirm("确定删除此评论吗?", "提示", {
  14219. confirmButtonText: "确定",
  14220. cancelButtonText: "取消",
  14221. type: "warning",
  14222. })
  14223. .then(() => {
  14224. let params = {
  14225. id: wid,
  14226. };
  14227. this.ajax
  14228. .get(this.$store.state.api + "deleteComment2", params)
  14229. .then((res) => {
  14230. this.$message({
  14231. message: "删除评论成功",
  14232. type: "success",
  14233. });
  14234. this.selectSWorks();
  14235. this.selectStudent();
  14236. })
  14237. .catch((err) => {
  14238. console.error(err);
  14239. });
  14240. })
  14241. .catch(() => {});
  14242. },
  14243. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14244. this.commentIndexJson = {
  14245. toolIndex: toolIndex,
  14246. wIndex: wIndex,
  14247. gindex: gindex,
  14248. gid: gid,
  14249. };
  14250. this.commentDetail = [];
  14251. this.commentDialogVisible = true;
  14252. this.commentDetail = w;
  14253. if (w.works && w.type == 1) {
  14254. // this.pptImgUrl = "";
  14255. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14256. if (
  14257. a.indexOf(
  14258. w.works
  14259. .split(".")
  14260. [w.works.split(".").length - 1].toLocaleUpperCase()
  14261. ) != -1
  14262. ) {
  14263. let _uuurl = await this.checkLink(w.works);
  14264. this.pptImgUrl =
  14265. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14266. this.showPDF = false;
  14267. } else if (
  14268. w.works
  14269. .split(".")
  14270. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14271. ) {
  14272. this.pptImgUrl = w.works;
  14273. this.showPDF = true;
  14274. }
  14275. } else if (w.works && w.type == 3) {
  14276. this.videoDetail = {};
  14277. this.playerOptions1.sources[0].src = w.works;
  14278. this.videoDetail = this.playerOptions1;
  14279. // this.videoVisible = true;
  14280. } else if (w.works && w.type == 4) {
  14281. this.eScore = JSON.parse(w.works);
  14282. this.rateJson =
  14283. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14284. this.taskCount
  14285. ].toolChoose[toolIndex].rateJson;
  14286. } else if (w.works && w.type == 10) {
  14287. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14288. } else if (w.works && w.type == 13) {
  14289. this.wordJson =
  14290. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14291. this.taskCount
  14292. ].toolChoose[toolIndex].wordJson;
  14293. }
  14294. },
  14295. async openScore(w, index) {
  14296. this.wScore = 0;
  14297. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14298. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14299. this.commentDetail = [];
  14300. if(w.type == 17){
  14301. this.dialogVisibleENScore = true;
  14302. }else{
  14303. this.dialogVisibleScore = true;
  14304. }
  14305. this.commentDetail = w;
  14306. if (w.works && w.type == 1) {
  14307. this.pptImgUrl = "";
  14308. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14309. if (
  14310. a.indexOf(
  14311. w.works
  14312. .split(".")
  14313. [w.works.split(".").length - 1].toLocaleUpperCase()
  14314. ) != -1
  14315. ) {
  14316. let _uuurl = await this.checkLink(w.works);
  14317. this.pptImgUrl =
  14318. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14319. this.showPDF = false;
  14320. } else if (
  14321. w.works
  14322. .split(".")
  14323. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14324. ) {
  14325. this.pptImgUrl = w.works;
  14326. this.showPDF = true;
  14327. }
  14328. } else if (w.works && w.type == 3) {
  14329. this.videoDetail = {};
  14330. this.playerOptions1.sources[0].src = w.works;
  14331. this.videoDetail = this.playerOptions1;
  14332. }else if(w.type == 17){
  14333. let englishVoiceJson = {}
  14334. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14335. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14336. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14337. .toolChoose[index].englishVoiceJson
  14338. : {};
  14339. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14340. }
  14341. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14342. },
  14343. addComment(wid, uid, t,detail) {
  14344. if (this.commentText == "") {
  14345. this.$message.error("请输入评论");
  14346. return;
  14347. }
  14348. let params2 = [
  14349. {
  14350. wid: wid,
  14351. lid: uid,
  14352. t: t,
  14353. },
  14354. ];
  14355. this.ajax
  14356. .post(this.$store.state.api + "getComment", params2)
  14357. .then((res) => {
  14358. if (res.data[0].length > 0) {
  14359. this.$message.error("一个作业只能评论一条");
  14360. } else {
  14361. let params = [
  14362. {
  14363. wid: wid,
  14364. lid: uid,
  14365. t: t,
  14366. c: this.commentText,
  14367. },
  14368. ];
  14369. this.ajax
  14370. .post(this.$store.state.api + "insertComment", params)
  14371. .then((res) => {
  14372. this.$message({
  14373. message: "评论成功",
  14374. type: "success",
  14375. });
  14376. this.commentText = "";
  14377. this.selectSWorks();
  14378. this.selectStudent();
  14379. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14380. })
  14381. .catch((err) => {
  14382. this.$message.error("评论失败");
  14383. console.error(err);
  14384. });
  14385. }
  14386. })
  14387. .catch((err) => {
  14388. // this.$message.error("评论失败");
  14389. console.error(err);
  14390. });
  14391. },
  14392. scoreWork(wid,sName) {
  14393. if (this.wScore == 0) {
  14394. this.$message.error("请评分");
  14395. return;
  14396. }
  14397. let params = [
  14398. {
  14399. wid: wid,
  14400. score: JSON.stringify({
  14401. wScore: this.wScore,
  14402. detail: this.scoreDetail,
  14403. }),
  14404. },
  14405. ];
  14406. this.ajax
  14407. .post(this.$store.state.api + "scoreWork", params)
  14408. .then((res) => {
  14409. this.$message({
  14410. message: "评分成功",
  14411. type: "success",
  14412. });
  14413. this.wScore = 0;
  14414. this.scoreDetail = "";
  14415. this.dialogVisibleScore = false;
  14416. this.selectSWorks();
  14417. this.selectStudent();
  14418. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14419. })
  14420. .catch((err) => {
  14421. this.$message.error("评分失败");
  14422. console.error(err);
  14423. });
  14424. },
  14425. openXz(w, i) {
  14426. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14427. .taskJson[this.taskCount].toolChoose[i].selectJson
  14428. ? JSON.parse(
  14429. JSON.stringify(
  14430. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14431. this.taskCount
  14432. ].toolChoose[i].selectJson
  14433. )
  14434. )
  14435. : { url: "", select: [], answer: [] };
  14436. var a = w.works.split(",");
  14437. for (var k = 0; k < a.length; k++) {
  14438. a[k] = parseInt(a[k]);
  14439. }
  14440. this.selectAnswer = { answer: a, stu: w.sName };
  14441. this.isSelect = true;
  14442. this.dialogVisibleSelect = true;
  14443. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14444. },
  14445. openSen(w, i) {
  14446. console.log("openSen")
  14447. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14448. this.sentenceList1 = JSON.parse(w.works);
  14449. this.sentenceList1.stuName = w.sName;
  14450. this.dialogVisibleSentence1 = true;
  14451. },
  14452. openPj(w, toolindex) {
  14453. console.log("openPJ")
  14454. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14455. this.isStar = true;
  14456. this.eScore = JSON.parse(w);
  14457. this.rateJson =
  14458. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14459. this.taskCount
  14460. ].toolChoose[toolindex].rateJson;
  14461. this.studentEvalDialogVisible = true;
  14462. },
  14463. openEnglishEva(id,i){
  14464. let params = {
  14465. wid: id
  14466. };
  14467. this.ajax
  14468. .get(this.$store.state.api + "selectEngWork", params)
  14469. .then((res) => {
  14470. this.evaEngJson.message = res.data[0][0];
  14471. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14472. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14473. .toolChoose[i].englishList;
  14474. this.engEvaDialogVisible = true;
  14475. })
  14476. .catch((err) => {
  14477. console.error(err);
  14478. });
  14479. },
  14480. deleteWorks(id) {
  14481. this.$confirm("确定删除此作业吗?", "提示", {
  14482. confirmButtonText: "确定",
  14483. cancelButtonText: "取消",
  14484. type: "warning",
  14485. })
  14486. .then(() => {
  14487. let params = [
  14488. {
  14489. id: id,
  14490. },
  14491. ];
  14492. this.ajax
  14493. .post(this.$store.state.api + "deleteCourseWork", params)
  14494. .then((res) => {
  14495. this.$message({
  14496. message: "删除成功",
  14497. type: "success",
  14498. });
  14499. this.selectStudent();
  14500. this.selectSWorks();
  14501. this.selectSLook();
  14502. })
  14503. .catch((err) => {
  14504. this.$message.error("网络异常");
  14505. console.error(err);
  14506. });
  14507. })
  14508. .catch(() => {});
  14509. },
  14510. selectSWorks(gindex) {
  14511. //教师查看全部作业
  14512. let params = {
  14513. cid: this.id,
  14514. s: this.courseType,
  14515. t: this.taskCount,
  14516. };
  14517. this.ajax
  14518. .get(this.$store.state.api + "selectSWorks", params)
  14519. .then((res) => {
  14520. var a =
  14521. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14522. this.taskCount
  14523. ].toolChoose;
  14524. var b = res.data[0];
  14525. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14526. var y = [
  14527. "AVI",
  14528. "NAVI",
  14529. "MPEG",
  14530. "ASF",
  14531. "MOV",
  14532. "WMV",
  14533. "3GP",
  14534. "RM",
  14535. "RMVB",
  14536. "FLV",
  14537. "F4V",
  14538. "H.264",
  14539. "H.265",
  14540. "REAL VIDEO",
  14541. "MKV",
  14542. "WebM",
  14543. "HDDVD",
  14544. "MP4",
  14545. "MPG",
  14546. "M4V",
  14547. "MGV",
  14548. "OGV",
  14549. "QTM",
  14550. "STR",
  14551. "AMC",
  14552. "DVX",
  14553. "EVO",
  14554. "DAT",
  14555. "OGG",
  14556. "OGM",
  14557. ];
  14558. var d = res.data[1];
  14559. var e = res.data[2];
  14560. var f = res.data[3];
  14561. let _worksStudent = [];
  14562. var _worksStudent2 = [];
  14563. for (var i = 0; i < a.length; i++) {
  14564. _worksStudent[i] = [];
  14565. _worksStudent2[i] = [];
  14566. if (
  14567. !this.isCloseList[i] ||
  14568. this.isCloseList[i].isClose == undefined
  14569. ) {
  14570. this.isCloseList[i] = { isClose: 0 };
  14571. }
  14572. this.groupStudent[i] = [];
  14573. this.groupStudentUid[i] = [];
  14574. if (this.isGroup) {
  14575. for (
  14576. var groupI = 0;
  14577. groupI < this.courseGroup.group.length;
  14578. groupI++
  14579. ) {
  14580. this.courseGroup.group[groupI].works[i] = [];
  14581. }
  14582. }
  14583. this.isWorksS[i] = [];
  14584. this.checkJson[i] = [];
  14585. if (a[i].tool[0] == 49) {
  14586. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14587. this.groupStudent[i][gA] = [];
  14588. this.groupStudentUid[i][gA] = [];
  14589. _worksStudent[i][gA] = [];
  14590. _worksStudent2[i][gA] = [];
  14591. this.isCloseList[i][gA] = [];
  14592. // debugger
  14593. for (var g = 0; g < f.length; g++) {
  14594. if (
  14595. f[g].ttype == 2 &&
  14596. this.tcid &&
  14597. this.arrayToArray(
  14598. (f[g].classid ? f[g].classid.split(",") : []),
  14599. this.tcid.split(",")
  14600. ).length == 0
  14601. ) {
  14602. continue;
  14603. }
  14604. let _classId = this.arrayToArray(
  14605. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14606. this.classId ? this.classId.split(",") : []
  14607. )
  14608. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14609. (f[g].classid ? f[g].classid.split(",") : []),
  14610. this.tcid.split(",")
  14611. ).length !== 0 || this.arrayToArray(
  14612. (f[g].classid ? f[g].classid.split(",") : []),
  14613. _classId
  14614. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14615. this.groupStudent[i][gA].push(f[g]);
  14616. this.groupStudentUid[i][gA].push(f[g].userid);
  14617. }
  14618. }
  14619. }
  14620. this.$forceUpdate();
  14621. }
  14622. for (var j = 0; j < b.length; j++) {
  14623. if (
  14624. b[j].ttype == 2 &&
  14625. this.tcid &&
  14626. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14627. .length == 0
  14628. ) {
  14629. continue;
  14630. }
  14631. var likesCount = 0;
  14632. var commentCount = 0;
  14633. var isLikes = false;
  14634. var commentJson = [];
  14635. var likeJson = [];
  14636. var data = b[j];
  14637. if (i == b[j].tool) {
  14638. if (data.type == 2 && a[i].tool[0] == 4) {
  14639. // if(JSON.parse(data.content)[0].anwer){
  14640. var checkL =
  14641. JSON.parse(data.content)[0].anwer instanceof Array
  14642. ? JSON.parse(data.content)[0].anwer
  14643. : JSON.parse(data.content)[0].anwer.split(",");
  14644. for (var z = 0; z < checkL.length; z++) {
  14645. if (!this.checkJson[i][z]) {
  14646. this.checkJson[i].push({
  14647. checkCount: [],
  14648. checkPerson: [],
  14649. rightPerson: [],
  14650. });
  14651. }
  14652. if (!this.checkJson[i][z].checkCount.length) {
  14653. this.checkJson[i][z].checkCount = [];
  14654. let _askItemCount = JSON.parse(data.content)[0].askJson
  14655. .askJson[z].askItem;
  14656. for (var aic = 0; aic < _askItemCount; aic++) {
  14657. this.checkJson[i][z].checkCount.push(0);
  14658. }
  14659. }
  14660. if (checkL[z] instanceof Array) {
  14661. if (
  14662. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14663. checkL[z].sort().join(",")
  14664. ) {
  14665. this.checkJson[i][z].rightPerson.push(data.name);
  14666. }
  14667. for (var q = 0; q < checkL[z].length; q++) {
  14668. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14669. ? this.checkJson[i][z].checkPerson[
  14670. parseInt(checkL[z][q])
  14671. ].push(data.name)
  14672. : (this.checkJson[i][z].checkPerson[
  14673. parseInt(checkL[z][q])
  14674. ] = [data.name]);
  14675. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14676. ? this.checkJson[i][z].checkCount[
  14677. parseInt(checkL[z][q])
  14678. ]++
  14679. : (this.checkJson[i][z].checkCount[
  14680. parseInt(checkL[z][q])
  14681. ] = 1);
  14682. }
  14683. } else {
  14684. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14685. this.checkJson[i][z].rightPerson.push(data.name);
  14686. }
  14687. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14688. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14689. ? this.checkJson[i][z].checkPerson[
  14690. parseInt(checkL[z])
  14691. ].push(data.name)
  14692. : (this.checkJson[i][z].checkPerson[
  14693. parseInt(checkL[z])
  14694. ] = [data.name]);
  14695. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14696. ? this.checkJson[i][z].checkCount[
  14697. parseInt(checkL[z])
  14698. ]++
  14699. : (this.checkJson[i][z].checkCount[
  14700. parseInt(checkL[z])
  14701. ] = 1);
  14702. }
  14703. }
  14704. }
  14705. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14706. var checkL = JSON.parse(data.content)[0].anwer;
  14707. for (var z = 0; z < checkL.length; z++) {
  14708. if (!this.checkJson[i][z]) {
  14709. this.checkJson[i].push({
  14710. checkCount: [],
  14711. checkPerson: [],
  14712. rightPerson: [],
  14713. });
  14714. }
  14715. if (!this.checkJson[i][z].checkCount.length) {
  14716. this.checkJson[i][z].checkCount = [];
  14717. let _askItemCount = JSON.parse(data.content)[0].testJson
  14718. .testJson[z].testItem;
  14719. for (var aic = 0; aic < _askItemCount; aic++) {
  14720. this.checkJson[i][z].checkCount.push(0);
  14721. }
  14722. }
  14723. if (checkL[z] instanceof Array) {
  14724. if (
  14725. JSON.parse(data.content)[0]
  14726. .testJson.testJson[z].answer.sort()
  14727. .join(",") == checkL[z].sort().join(",")
  14728. ) {
  14729. this.checkJson[i][z].rightPerson.push(data.name);
  14730. }
  14731. for (var q = 0; q < checkL[z].length; q++) {
  14732. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14733. ? this.checkJson[i][z].checkPerson[
  14734. parseInt(checkL[z][q])
  14735. ].push(data.name)
  14736. : (this.checkJson[i][z].checkPerson[
  14737. parseInt(checkL[z][q])
  14738. ] = [data.name]);
  14739. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14740. ? this.checkJson[i][z].checkCount[
  14741. parseInt(checkL[z][q])
  14742. ]++
  14743. : (this.checkJson[i][z].checkCount[
  14744. parseInt(checkL[z][q])
  14745. ] = 1);
  14746. }
  14747. } else {
  14748. if (
  14749. JSON.parse(data.content)[0].testJson.testJson[z]
  14750. .answer == checkL[z]
  14751. ) {
  14752. this.checkJson[i][z].rightPerson.push(data.name);
  14753. }
  14754. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14755. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14756. ? this.checkJson[i][z].checkPerson[
  14757. parseInt(checkL[z])
  14758. ].push(data.name)
  14759. : (this.checkJson[i][z].checkPerson[
  14760. parseInt(checkL[z])
  14761. ] = [data.name]);
  14762. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14763. ? this.checkJson[i][z].checkCount[
  14764. parseInt(checkL[z])
  14765. ]++
  14766. : (this.checkJson[i][z].checkCount[
  14767. parseInt(checkL[z])
  14768. ] = 1);
  14769. }
  14770. }
  14771. }
  14772. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14773. var checkL = JSON.parse(data.content);
  14774. for (var z = 0; z < checkL.length; z++) {
  14775. if (!this.checkJson[i][z]) {
  14776. this.checkJson[i].push({
  14777. checkCount: [],
  14778. checkPerson: [],
  14779. rightPerson: [],
  14780. });
  14781. }
  14782. this.checkJson[i][z].checkPerson.push(data.name);
  14783. if (
  14784. checkL[z].chooseSenList.toString() ==
  14785. checkL[z].rightAnswer.toString()
  14786. ) {
  14787. this.checkJson[i][z].rightPerson.push(data.name);
  14788. }
  14789. }
  14790. }
  14791. for (var k = 0; k < d.length; k++) {
  14792. //点赞
  14793. if (d[k].workId == b[j].id) {
  14794. likesCount++;
  14795. likeJson.push(d[k])
  14796. if (d[k].likesId == this.userid) {
  14797. isLikes = true;
  14798. }
  14799. }
  14800. }
  14801. for (var l = 0; l < e.length; l++) {
  14802. //评论
  14803. if (e[l].workId == b[j].id) {
  14804. if (e[l].comment != "") {
  14805. commentCount++;
  14806. commentJson.push({
  14807. commentText: e[l].comment,
  14808. commentTime: e[l].commentTime,
  14809. commentPeople: e[l].commentPeople,
  14810. userid: e[l].userid,
  14811. wid: e[l].id,
  14812. });
  14813. }
  14814. }
  14815. }
  14816. if (
  14817. (b[j].type == 1 ||
  14818. b[j].type == 4 ||
  14819. b[j].type == 5 ||
  14820. b[j].type == 6 ||
  14821. b[j].type == 12 ||
  14822. b[j].type == 7) &&
  14823. a[i].tool[0] != 15 &&
  14824. a[i].tool[0] != 4 &&
  14825. a[i].tool[0] != 45 &&
  14826. a[i].tool[0] != 50 &&
  14827. a[i].tool[0] != 32 &&
  14828. a[i].tool[0] != 57 &&
  14829. a[i].tool[0] != 52
  14830. ) {
  14831. if (
  14832. c.indexOf(
  14833. b[j].content
  14834. .split(".")
  14835. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14836. ) != -1 &&
  14837. a[i].tool[0] == 16 &&
  14838. b[j].atool != 50
  14839. ) {
  14840. let _works = {
  14841. userid: b[j].userid,
  14842. ateacher: b[j].ateacher,
  14843. wid: b[j].id,
  14844. works: b[j].content,
  14845. sName: b[j].name,
  14846. type: 1,
  14847. ttype:b[j].ttype,
  14848. time: b[j].time,
  14849. score: b[j].score,
  14850. img: b[j].img,
  14851. likesCount: likesCount,
  14852. commentCount: commentCount,
  14853. isLikes: isLikes,
  14854. commentJson: commentJson,
  14855. likeJson:likeJson
  14856. };
  14857. if (this.isGroup) {
  14858. let isGw = 1;
  14859. for (
  14860. var groupI = 0;
  14861. groupI < this.courseGroup.group.length;
  14862. groupI++
  14863. ) {
  14864. let gid = this.courseGroup.group[groupI].id;
  14865. if (
  14866. this.courseGroupStudentUid[gid].indexOf(
  14867. b[j].userid
  14868. ) != -1
  14869. ) {
  14870. isGw = 2;
  14871. this.courseGroup.group[groupI].works[i].push(_works);
  14872. break;
  14873. }
  14874. }
  14875. if (isGw == 1) {
  14876. _worksStudent[i].push(_works);
  14877. }
  14878. } else {
  14879. _worksStudent[i].push(_works);
  14880. }
  14881. _worksStudent2[i].push(_works);
  14882. this.isWorksS[i].push({
  14883. uid: b[j].userid,
  14884. sName: b[j].name,
  14885. });
  14886. } else if (
  14887. y.indexOf(
  14888. b[j].content
  14889. .split(".")
  14890. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14891. ) != -1 &&
  14892. a[i].tool[0] == 16 &&
  14893. b[j].atool != 50
  14894. ) {
  14895. let _works = {
  14896. userid: b[j].userid,
  14897. ateacher: b[j].ateacher,
  14898. wid: b[j].id,
  14899. works: b[j].content,
  14900. sName: b[j].name,
  14901. type: 3,
  14902. ttype:b[j].ttype,
  14903. time: b[j].time,
  14904. score: b[j].score,
  14905. img: b[j].img,
  14906. likesCount: likesCount,
  14907. commentCount: commentCount,
  14908. isLikes: isLikes,
  14909. commentJson: commentJson,
  14910. likeJson:likeJson
  14911. };
  14912. if (this.isGroup) {
  14913. let isGw = 1;
  14914. for (
  14915. var groupI = 0;
  14916. groupI < this.courseGroup.group.length;
  14917. groupI++
  14918. ) {
  14919. let gid = this.courseGroup.group[groupI].id;
  14920. if (
  14921. this.courseGroupStudentUid[gid].indexOf(
  14922. b[j].userid
  14923. ) != -1
  14924. ) {
  14925. isGw = 2;
  14926. this.courseGroup.group[groupI].works[i].push(_works);
  14927. break;
  14928. }
  14929. }
  14930. if (isGw == 1) {
  14931. _worksStudent[i].push(_works);
  14932. }
  14933. } else {
  14934. _worksStudent[i].push(_works);
  14935. }
  14936. _worksStudent2[i].push(_works);
  14937. this.isWorksS[i].push({
  14938. uid: b[j].userid,
  14939. sName: b[j].name,
  14940. });
  14941. } else if (b[j].type == 6 && b[j].atool != 50) {
  14942. let _works = {
  14943. userid: b[j].userid,
  14944. ateacher: b[j].ateacher,
  14945. wid: b[j].id,
  14946. works: b[j].content,
  14947. sName: b[j].name,
  14948. type: 4,
  14949. ttype:b[j].ttype,
  14950. time: b[j].time,
  14951. score: b[j].score,
  14952. img: b[j].img,
  14953. likesCount: likesCount,
  14954. commentCount: commentCount,
  14955. isLikes: isLikes,
  14956. commentJson: commentJson,
  14957. likeJson:likeJson
  14958. };
  14959. _worksStudent[i].push(_works);
  14960. _worksStudent2[i].push(_works);
  14961. this.isWorksS[i].push({
  14962. uid: b[j].userid,
  14963. sName: b[j].name,
  14964. });
  14965. } else if (b[j].type == 7 && b[j].atool != 50) {
  14966. let _work = {
  14967. userid: b[j].userid,
  14968. ateacher: b[j].ateacher,
  14969. wid: b[j].id,
  14970. works: b[j].content,
  14971. sName: b[j].name,
  14972. type: 5,
  14973. ttype:b[j].ttype,
  14974. time: b[j].time,
  14975. score: b[j].score,
  14976. img: b[j].img,
  14977. likesCount: likesCount,
  14978. commentCount: commentCount,
  14979. isLikes: isLikes,
  14980. commentJson: commentJson,
  14981. likeJson:likeJson
  14982. };
  14983. _worksStudent[i].push(_work);
  14984. _worksStudent2[i].push(_work);
  14985. this.isWorksS[i].push({
  14986. uid: b[j].userid,
  14987. sName: b[j].name,
  14988. });
  14989. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14990. let _works = {
  14991. userid: b[j].userid,
  14992. ateacher: b[j].ateacher,
  14993. wid: b[j].id,
  14994. works: b[j].content,
  14995. sName: b[j].name,
  14996. type: 12,
  14997. ttype:b[j].ttype,
  14998. time: b[j].time,
  14999. score: b[j].score,
  15000. img: b[j].img,
  15001. likesCount: likesCount,
  15002. commentCount: commentCount,
  15003. isLikes: isLikes,
  15004. commentJson: commentJson,
  15005. likeJson:likeJson
  15006. };
  15007. if (this.isGroup) {
  15008. let isGw = 1;
  15009. for (
  15010. var groupI = 0;
  15011. groupI < this.courseGroup.group.length;
  15012. groupI++
  15013. ) {
  15014. let gid = this.courseGroup.group[groupI].id;
  15015. if (
  15016. this.courseGroupStudentUid[gid].indexOf(
  15017. b[j].userid
  15018. ) != -1
  15019. ) {
  15020. isGw = 2;
  15021. this.courseGroup.group[groupI].works[i].push(_works);
  15022. break;
  15023. }
  15024. }
  15025. if (isGw == 1) {
  15026. _worksStudent[i].push(_works);
  15027. }
  15028. } else {
  15029. _worksStudent[i].push(_works);
  15030. }
  15031. _worksStudent2[i].push(_works);
  15032. this.isWorksS[i].push({
  15033. uid: b[j].userid,
  15034. sName: b[j].name,
  15035. });
  15036. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15037. let _works = {
  15038. userid: b[j].userid,
  15039. ateacher: b[j].ateacher,
  15040. wid: b[j].id,
  15041. works: b[j].content,
  15042. sName: b[j].name,
  15043. type: 0,
  15044. ttype:b[j].ttype,
  15045. time: b[j].time,
  15046. score: b[j].score,
  15047. img: b[j].img,
  15048. likesCount: likesCount,
  15049. commentCount: commentCount,
  15050. isLikes: isLikes,
  15051. commentJson: commentJson,
  15052. likeJson:likeJson
  15053. };
  15054. if (this.isGroup) {
  15055. let isGw = 1;
  15056. for (
  15057. var groupI = 0;
  15058. groupI < this.courseGroup.group.length;
  15059. groupI++
  15060. ) {
  15061. let gid = this.courseGroup.group[groupI].id;
  15062. if (
  15063. this.courseGroupStudentUid[gid].indexOf(
  15064. b[j].userid
  15065. ) != -1
  15066. ) {
  15067. isGw = 2;
  15068. this.courseGroup.group[groupI].works[i].push(_works);
  15069. break;
  15070. }
  15071. }
  15072. if (isGw == 1) {
  15073. _worksStudent[i].push(_works);
  15074. }
  15075. } else {
  15076. _worksStudent[i].push(_works);
  15077. }
  15078. _worksStudent2[i].push(_works);
  15079. this.isWorksS[i].push({
  15080. uid: b[j].userid,
  15081. sName: b[j].name,
  15082. });
  15083. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15084. let _works = {
  15085. userid: b[j].userid,
  15086. ateacher: b[j].ateacher,
  15087. wid: b[j].id,
  15088. works: b[j].content,
  15089. sName: b[j].name,
  15090. type: 0,
  15091. ttype:b[j].ttype,
  15092. time: b[j].time,
  15093. score: b[j].score,
  15094. img: b[j].img,
  15095. likesCount: likesCount,
  15096. commentCount: commentCount,
  15097. isLikes: isLikes,
  15098. commentJson: commentJson,
  15099. likeJson:likeJson
  15100. };
  15101. if (this.isGroup) {
  15102. let isGw = 1;
  15103. for (
  15104. var groupI = 0;
  15105. groupI < this.courseGroup.group.length;
  15106. groupI++
  15107. ) {
  15108. let gid = this.courseGroup.group[groupI].id;
  15109. if (
  15110. this.courseGroupStudentUid[gid].indexOf(
  15111. b[j].userid
  15112. ) != -1
  15113. ) {
  15114. isGw = 2;
  15115. this.courseGroup.group[groupI].works[i].push(_works);
  15116. break;
  15117. }
  15118. }
  15119. if (isGw == 1) {
  15120. _worksStudent[i].push(_works);
  15121. }
  15122. } else {
  15123. _worksStudent[i].push(_works);
  15124. }
  15125. _worksStudent2[i].push(_works);
  15126. this.isWorksS[i].push({
  15127. uid: b[j].userid,
  15128. sName: b[j].name,
  15129. });
  15130. }
  15131. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15132. let _works = {
  15133. userid: b[j].userid,
  15134. ateacher: b[j].ateacher,
  15135. wid: b[j].id,
  15136. works: b[j].content,
  15137. sName: b[j].name,
  15138. type: 2,
  15139. ttype:b[j].ttype,
  15140. time: b[j].time,
  15141. score: b[j].score,
  15142. img: b[j].img,
  15143. likesCount: likesCount,
  15144. commentCount: commentCount,
  15145. isLikes: isLikes,
  15146. commentJson: commentJson,
  15147. likeJson:likeJson
  15148. };
  15149. if (this.isGroup) {
  15150. let isGw = 1;
  15151. for (
  15152. var groupI = 0;
  15153. groupI < this.courseGroup.group.length;
  15154. groupI++
  15155. ) {
  15156. let gid = this.courseGroup.group[groupI].id;
  15157. if (
  15158. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15159. -1
  15160. ) {
  15161. isGw = 2;
  15162. this.courseGroup.group[groupI].works[i].push(_works);
  15163. break;
  15164. }
  15165. }
  15166. if (isGw == 1) {
  15167. _worksStudent[i].push(_works);
  15168. }
  15169. } else {
  15170. _worksStudent[i].push(_works);
  15171. }
  15172. _worksStudent2[i].push(_works);
  15173. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15174. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15175. //问卷
  15176. let _work = {
  15177. userid: b[j].userid,
  15178. ateacher: b[j].ateacher,
  15179. wid: b[j].id,
  15180. works: b[j].content,
  15181. sName: b[j].name,
  15182. type: 2,
  15183. ttype:b[j].ttype,
  15184. time: b[j].time,
  15185. score: b[j].score,
  15186. img: b[j].img,
  15187. likesCount: likesCount,
  15188. commentCount: commentCount,
  15189. isLikes: isLikes,
  15190. commentJson: commentJson,
  15191. likeJson:likeJson
  15192. };
  15193. _worksStudent[i].push(_work);
  15194. _worksStudent2[i].push(_work);
  15195. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15196. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15197. //选择题
  15198. let _work = {
  15199. userid: b[j].userid,
  15200. ateacher: b[j].ateacher,
  15201. wid: b[j].id,
  15202. works: b[j].content,
  15203. sName: b[j].name,
  15204. type: 8,
  15205. ttype:b[j].ttype,
  15206. time: b[j].time,
  15207. score: b[j].score,
  15208. img: b[j].img,
  15209. likesCount: likesCount,
  15210. commentCount: commentCount,
  15211. isLikes: isLikes,
  15212. commentJson: commentJson,
  15213. likeJson:likeJson
  15214. };
  15215. _worksStudent[i].push(_work);
  15216. _worksStudent2[i].push(_work);
  15217. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15218. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15219. //选择题
  15220. let _work = {
  15221. userid: b[j].userid,
  15222. ateacher: b[j].ateacher,
  15223. wid: b[j].id,
  15224. works: b[j].content,
  15225. sName: b[j].name,
  15226. type: 9,
  15227. ttype:b[j].ttype,
  15228. time: b[j].time,
  15229. score: b[j].score,
  15230. img: b[j].img,
  15231. likesCount: likesCount,
  15232. commentCount: commentCount,
  15233. isLikes: isLikes,
  15234. commentJson: commentJson,
  15235. likeJson:likeJson
  15236. };
  15237. _worksStudent[i].push(_work);
  15238. _worksStudent2[i].push(_work);
  15239. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15240. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15241. //选择题
  15242. let _work = {
  15243. userid: b[j].userid,
  15244. ateacher: b[j].ateacher,
  15245. wid: b[j].id,
  15246. works: b[j].content,
  15247. sName: b[j].name,
  15248. type: 10,
  15249. ttype:b[j].ttype,
  15250. time: b[j].time,
  15251. score: b[j].score,
  15252. img: b[j].img,
  15253. likesCount: likesCount,
  15254. commentCount: commentCount,
  15255. isLikes: isLikes,
  15256. commentJson: commentJson,
  15257. likeJson:likeJson
  15258. };
  15259. _worksStudent[i].push(_work);
  15260. _worksStudent2[i].push(_work);
  15261. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15262. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15263. //选择题
  15264. let _work = {
  15265. userid: b[j].userid,
  15266. ateacher: b[j].ateacher,
  15267. wid: b[j].id,
  15268. works: b[j].content,
  15269. sName: b[j].name,
  15270. type: 13,
  15271. ttype:b[j].ttype,
  15272. time: b[j].time,
  15273. score: b[j].score,
  15274. img: b[j].img,
  15275. likesCount: likesCount,
  15276. commentCount: commentCount,
  15277. isLikes: isLikes,
  15278. commentJson: commentJson,
  15279. likeJson:likeJson
  15280. };
  15281. _worksStudent[i].push(_work);
  15282. _worksStudent2[i].push(_work);
  15283. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15284. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15285. //选择题
  15286. let _work = {
  15287. userid: b[j].userid,
  15288. ateacher: b[j].ateacher,
  15289. wid: b[j].id,
  15290. works: b[j].content,
  15291. sName: b[j].name,
  15292. type: 16,
  15293. ttype:b[j].ttype,
  15294. time: b[j].time,
  15295. score: b[j].score,
  15296. img: b[j].img,
  15297. likesCount: likesCount,
  15298. commentCount: commentCount,
  15299. isLikes: isLikes,
  15300. commentJson: commentJson,
  15301. aiCode: b[j].aiCode,
  15302. teacherCode: b[j].teacherCode,
  15303. likeJson:likeJson
  15304. };
  15305. _worksStudent[i].push(_work);
  15306. _worksStudent2[i].push(_work);
  15307. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15308. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15309. //英语口语
  15310. let _work = {
  15311. userid: b[j].userid,
  15312. ateacher: b[j].ateacher,
  15313. wid: b[j].id,
  15314. works: b[j].content,
  15315. sName: b[j].name,
  15316. type: 17,
  15317. ttype:b[j].ttype,
  15318. time: b[j].time,
  15319. score: b[j].score,
  15320. img: b[j].img,
  15321. likesCount: likesCount,
  15322. commentCount: commentCount,
  15323. isLikes: isLikes,
  15324. commentJson: commentJson,
  15325. likeJson:likeJson
  15326. };
  15327. _worksStudent[i].push(_work);
  15328. _worksStudent2[i].push(_work);
  15329. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15330. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15331. //交互视频
  15332. let _work = {
  15333. userid: b[j].userid,
  15334. ateacher: b[j].ateacher,
  15335. wid: b[j].id,
  15336. works: b[j].content,
  15337. sName: b[j].name,
  15338. type: 14,
  15339. ttype:b[j].ttype,
  15340. time: b[j].time,
  15341. score: b[j].score,
  15342. img: b[j].img,
  15343. likesCount: likesCount,
  15344. commentCount: commentCount,
  15345. isLikes: isLikes,
  15346. commentJson: commentJson,
  15347. likeJson:likeJson
  15348. };
  15349. _worksStudent[i].push(_work);
  15350. _worksStudent2[i].push(_work);
  15351. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15352. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15353. let _gindex = JSON.parse(b[j].content);
  15354. if (
  15355. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15356. b[j].userid
  15357. ) != -1
  15358. ) {
  15359. let _work = {
  15360. userid: b[j].userid,
  15361. ateacher: b[j].ateacher,
  15362. wid: b[j].id,
  15363. works: _gindex.url,
  15364. sName: b[j].name,
  15365. type: _gindex.type,
  15366. ttype:b[j].ttype,
  15367. time: b[j].time,
  15368. score: b[j].score,
  15369. img: b[j].img,
  15370. likesCount: likesCount,
  15371. commentCount: commentCount,
  15372. isLikes: isLikes,
  15373. commentJson: commentJson,
  15374. likeJson:likeJson
  15375. };
  15376. _worksStudent[i][_gindex.groupIndex].push(_work);
  15377. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15378. }
  15379. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15380. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15381. let _work = {
  15382. userid: b[j].userid,
  15383. ateacher: b[j].ateacher,
  15384. wid: b[j].id,
  15385. works: b[j].content,
  15386. sName: b[j].name ? b[j].name : b[j].userid,
  15387. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15388. ttype:b[j].ttype,
  15389. time: b[j].time,
  15390. score: b[j].score,
  15391. img: b[j].img,
  15392. likesCount: likesCount,
  15393. commentCount: commentCount,
  15394. isLikes: isLikes,
  15395. commentJson: commentJson,
  15396. likeJson:likeJson
  15397. };
  15398. _worksStudent[i].push(_work);
  15399. _worksStudent2[i].push(_work);
  15400. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15401. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15402. let _work = {
  15403. userid: b[j].userid,
  15404. ateacher: b[j].ateacher,
  15405. wid: b[j].id,
  15406. works: b[j].content,
  15407. sName: b[j].name ? b[j].name : b[j].userid,
  15408. type: 12,
  15409. ttype:b[j].ttype,
  15410. time: b[j].time,
  15411. score: b[j].score,
  15412. img: b[j].img,
  15413. likesCount: likesCount,
  15414. commentCount: commentCount,
  15415. isLikes: isLikes,
  15416. commentJson: commentJson,
  15417. likeJson:likeJson
  15418. };
  15419. _worksStudent[i].push(_work);
  15420. _worksStudent2[i].push(_work);
  15421. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15422. } else if (
  15423. a[i].tool[0] == 57 &&
  15424. b[j].atool == 57 &&
  15425. b[j].type == 12
  15426. ) {
  15427. let _work = {
  15428. userid: b[j].userid,
  15429. ateacher: b[j].ateacher,
  15430. wid: b[j].id,
  15431. works: b[j].content,
  15432. sName: b[j].name ? b[j].name : b[j].userid,
  15433. type: 12,
  15434. ttype:b[j].ttype,
  15435. time: b[j].time,
  15436. score: b[j].score,
  15437. img: b[j].img,
  15438. likesCount: likesCount,
  15439. commentCount: commentCount,
  15440. isLikes: isLikes,
  15441. commentJson: commentJson,
  15442. likeJson:likeJson
  15443. };
  15444. _worksStudent[i].push(_work);
  15445. _worksStudent2[i].push(_work);
  15446. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15447. } else if (
  15448. a[i].tool[0] == 57 &&
  15449. b[j].atool == 57 &&
  15450. b[j].type == 15
  15451. ) {
  15452. let _work = {
  15453. userid: b[j].userid,
  15454. ateacher: b[j].ateacher,
  15455. wid: b[j].id,
  15456. works: b[j].content,
  15457. sName: b[j].name ? b[j].name : b[j].userid,
  15458. type: 15,
  15459. ttype:b[j].ttype,
  15460. time: b[j].time,
  15461. score: b[j].score,
  15462. img: b[j].img,
  15463. likesCount: likesCount,
  15464. commentCount: commentCount,
  15465. isLikes: isLikes,
  15466. commentJson: commentJson,
  15467. likeJson:likeJson
  15468. };
  15469. _worksStudent[i].push(_work);
  15470. _worksStudent2[i].push(_work);
  15471. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15472. }
  15473. }
  15474. }
  15475. if (_worksStudent[i] && _worksStudent[i].length) {
  15476. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15477. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15478. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15479. var scoreA = parseFloat(jscoreA);
  15480. var scoreB = parseFloat(jscoreB);
  15481. if (scoreA == scoreB) {
  15482. return b.likesCount - a.likesCount;
  15483. }
  15484. return scoreB - scoreA;
  15485. });
  15486. if (this.isGroup) {
  15487. for (
  15488. var groupI = 0;
  15489. groupI < this.courseGroup.group.length;
  15490. groupI++
  15491. ) {
  15492. this.courseGroup.group[groupI].works[i] =
  15493. this.courseGroup.group[groupI].works[i].sort(function (
  15494. a,
  15495. b
  15496. ) {
  15497. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15498. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15499. var scoreA = parseFloat(jscoreA);
  15500. var scoreB = parseFloat(jscoreB);
  15501. if (scoreA == scoreB) {
  15502. return b.likesCount - a.likesCount;
  15503. }
  15504. return scoreB - scoreA;
  15505. });
  15506. }
  15507. }
  15508. }
  15509. }
  15510. this.timeWorkList = _worksStudent2;
  15511. for (var i = 0; i < a.length; i++) {
  15512. for (var j = 0; j < b.length; j++) {
  15513. var data = b[j];
  15514. if (i == b[j].tool) {
  15515. if (data.type == 2 || data.type == 8) {
  15516. for (var z = 0; z < this.checkJson[i].length; z++) {
  15517. this.checkJson[i][z].checkPerent = [];
  15518. this.checkJson[i][z].right = Math.round(
  15519. (this.checkJson[i][z].rightPerson.length /
  15520. parseInt(_worksStudent[i].length)) *
  15521. 100
  15522. );
  15523. let aaaa = this.checkJson[i][z];
  15524. for (
  15525. var k = 0;
  15526. k < this.checkJson[i][z].checkCount.length;
  15527. k++
  15528. ) {
  15529. this.checkJson[i][z].checkPerent.push(
  15530. Math.round(
  15531. (this.checkJson[i][z].checkCount[k] /
  15532. parseInt(_worksStudent[i].length)) *
  15533. 100
  15534. )
  15535. );
  15536. }
  15537. }
  15538. } else if (data.type == 9) {
  15539. for (var z = 0; z < this.checkJson[i].length; z++) {
  15540. this.checkJson[i][z].checkPerent = [];
  15541. this.checkJson[i][z].right = Math.round(
  15542. (this.checkJson[i][z].rightPerson.length /
  15543. this.checkJson[i][z].checkPerson.length) *
  15544. 100
  15545. );
  15546. }
  15547. }
  15548. }
  15549. }
  15550. }
  15551. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15552. this.joinGroup(gindex);
  15553. }
  15554. this.worksStudent = _worksStudent;
  15555. this.selectWorksStudent();
  15556. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15557. this.$nextTick(()=>{
  15558. setTimeout(()=>{
  15559. setTimeout(()=>{
  15560. this.panToolHeight('tool-'+ci);
  15561. }, 500)
  15562. }, 0)
  15563. })
  15564. }
  15565. })
  15566. .catch((err) => {
  15567. console.error(err);
  15568. });
  15569. },
  15570. pngToWhiteBg(file) {
  15571. const _file = file;
  15572. let read = new FileReader();
  15573. read.readAsDataURL(file); // 文件转base64
  15574. return new Promise((resolve, reject) => {
  15575. read.onload = (e) => {
  15576. let img = new Image();
  15577. img.src = e.target.result;
  15578. img.onload = async () => {
  15579. // 生成canvas
  15580. let canvas = document.createElement("canvas");
  15581. let context = canvas.getContext("2d");
  15582. // 绘制图片到canvas上
  15583. canvas.width = img.width;
  15584. canvas.height = img.height;
  15585. // 在canvas绘制前填充白色背景
  15586. context.fillStyle = "#fff";
  15587. context.fillRect(0, 0, canvas.width, canvas.height);
  15588. context.drawImage(img, 0, 0);
  15589. let base64 = canvas.toDataURL(file["type"], 1);
  15590. let newFile = this.dataUrlToFile(base64, _file);
  15591. resolve(newFile);
  15592. };
  15593. };
  15594. });
  15595. },
  15596. dataUrlToFile(dataurl, file) {
  15597. let arr = dataurl.split(","),
  15598. mime = arr[0].match(/:(.*?);/)[1],
  15599. bstr = atob(arr[1]),
  15600. n = bstr.length,
  15601. u8arr = new Uint8Array(n);
  15602. while (n--) {
  15603. u8arr[n] = bstr.charCodeAt(n);
  15604. }
  15605. // return new Blob([u8arr], { type: mime });
  15606. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15607. type: mime,
  15608. });
  15609. },
  15610. async beforeUpload1(event, type, i) {
  15611. // this.$message.success('进入上传')
  15612. var file = "";
  15613. if (type == 5) {
  15614. file = event;
  15615. } else {
  15616. file = event.target.files[0];
  15617. }
  15618. var credentials = {
  15619. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15620. secretAccessKey: "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",
  15621. }; //秘钥形式的登录上传
  15622. window.AWS.config.update(credentials);
  15623. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15624. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15625. var _this = this;
  15626. _this.progress = 0;
  15627. _this.proVisible = true;
  15628. _this.isFinishSize = 0;
  15629. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15630. var b = [
  15631. "DOC",
  15632. "DOCX",
  15633. "DOCM",
  15634. "DOTM",
  15635. "DOTX",
  15636. "PPTX",
  15637. "PPSX",
  15638. "PPT",
  15639. "PPS",
  15640. "PPTM",
  15641. "POTM",
  15642. "PPAM",
  15643. "POTX",
  15644. "PPSM",
  15645. ];
  15646. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15647. var photoA = [
  15648. "BMP",
  15649. "GIF",
  15650. "PNG",
  15651. "JPEG",
  15652. "JPEG",
  15653. "JPG",
  15654. "TIF",
  15655. "PCX",
  15656. "TGA",
  15657. "EXIF",
  15658. "FPX",
  15659. "SVG",
  15660. "APNG",
  15661. ];
  15662. // if (
  15663. // b.indexOf(
  15664. // file.name
  15665. // .split(".")
  15666. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15667. // ) != -1
  15668. // ) {
  15669. // if (file.size / 1024 / 1024 > 10) {
  15670. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15671. // return;
  15672. // }
  15673. // } else if (
  15674. // excelA.indexOf(
  15675. // file.name
  15676. // .split(".")
  15677. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15678. // ) != "-1"
  15679. // ) {
  15680. // if (file.size / 1024 / 1024 > 5) {
  15681. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15682. // return;
  15683. // }
  15684. // }
  15685. if (
  15686. photoA.indexOf(
  15687. file.name
  15688. .split(".")
  15689. [file.name.split(".").length - 1].toLocaleUpperCase()
  15690. ) != -1 &&
  15691. type != 4
  15692. ) {
  15693. // const blob = await imageConversion.compress(file, 0.8)
  15694. file = await this.pngToWhiteBg(file);
  15695. const blob = await imageConversion.compressAccurately(file, 256);
  15696. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15697. file = new File([blob], file.name, { type: file.type });
  15698. }
  15699. if (file) {
  15700. var params = {
  15701. Key:
  15702. file.name.split(".")[0] +
  15703. new Date().getTime() +
  15704. "." +
  15705. file.name.split(".")[file.name.split(".").length - 1],
  15706. ContentType: file.type,
  15707. Body: file,
  15708. "Access-Control-Allow-Credentials": "*",
  15709. ACL: "public-read",
  15710. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15711. var options = {
  15712. // partSize: 2048 * 1024 * 1024,
  15713. partSize: 1024 * 1024 * 1024,
  15714. queueSize: 2,
  15715. leavePartsOnError: true,
  15716. };
  15717. bucket
  15718. .upload(params, options)
  15719. .on("httpUploadProgress", function (evt) {
  15720. //这里可以写进度条
  15721. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15722. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15723. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15724. })
  15725. .send(function (err, data) {
  15726. _this.progress = 100;
  15727. _this.isFinishSize = _this.isAllSize;
  15728. setTimeout(() => {
  15729. _this.proVisible = false;
  15730. }, 1000);
  15731. if (err) {
  15732. var a = _this.$refs.upload1.uploadFiles;
  15733. a.splice(a.length - 1, a.length);
  15734. _this.$message.error("上传失败");
  15735. } else {
  15736. // _this.$message.success('上传成功')
  15737. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15738. var c = [
  15739. "AVI",
  15740. "NAVI",
  15741. "MPEG",
  15742. "ASF",
  15743. "MOV",
  15744. "WMV",
  15745. "3GP",
  15746. "RM",
  15747. "RMVB",
  15748. "FLV",
  15749. "F4V",
  15750. "H.264",
  15751. "H.265",
  15752. "REAL VIDEO",
  15753. "MKV",
  15754. "WebM",
  15755. "HDDVD",
  15756. "MP4",
  15757. "MPG",
  15758. "M4V",
  15759. "MGV",
  15760. "OGV",
  15761. "QTM",
  15762. "STR",
  15763. "AMC",
  15764. "DVX",
  15765. "EVO",
  15766. "DAT",
  15767. "OGG",
  15768. "OGM",
  15769. ];
  15770. if (type == 1) {
  15771. _this.studyJuri[0].cover.push({
  15772. name: file.name,
  15773. url: data.Location,
  15774. uid: file.uid,
  15775. });
  15776. if (
  15777. c.indexOf(
  15778. _this.studyJuri[0].cover[0].url
  15779. .split(".")
  15780. [
  15781. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15782. ].toLocaleUpperCase()
  15783. ) != -1
  15784. ) {
  15785. _this.fileType = 2;
  15786. } else if (
  15787. b.indexOf(
  15788. _this.studyJuri[0].cover[0].url
  15789. .split(".")
  15790. [
  15791. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15792. ].toLocaleUpperCase()
  15793. ) != -1
  15794. ) {
  15795. _this.fileType = 1;
  15796. } else if (
  15797. photoA.indexOf(
  15798. _this.studyJuri[0].cover[0].url
  15799. .split(".")
  15800. [
  15801. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15802. ].toLocaleUpperCase()
  15803. ) != -1
  15804. ) {
  15805. _this.fileType = 0;
  15806. } else {
  15807. _this.fileType = 3;
  15808. }
  15809. _this.imgChange(null, null, type);
  15810. } else if (type == 2) {
  15811. _this.upToolImg = data.Location;
  15812. _this.imgChange(null, null, type);
  15813. _this.addCourseWorks(i);
  15814. } else if (type == 4) {
  15815. _this.addPz("3", data.Location);
  15816. } else if (type == 5) {
  15817. _this.addImgDrawImG(data.Location);
  15818. } else if (type == 6) {
  15819. var _ftype = 1;
  15820. if (
  15821. c.indexOf(
  15822. data.Location.split(".")[
  15823. data.Location.split(".").length - 1
  15824. ].toLocaleUpperCase()
  15825. ) != -1
  15826. ) {
  15827. _ftype = 5;
  15828. } else if (
  15829. b.indexOf(
  15830. data.Location.split(".")[
  15831. data.Location.split(".").length - 1
  15832. ].toLocaleUpperCase()
  15833. ) != -1
  15834. ) {
  15835. _ftype = 4;
  15836. } else {
  15837. _ftype = 1;
  15838. }
  15839. _this.plworkFile.push({
  15840. name: file.name,
  15841. url: data.Location,
  15842. uid: file.uid,
  15843. fileType: _ftype,
  15844. username:
  15845. _this.plworkFile.length > 10
  15846. ? _this.plworkFile.length + 1
  15847. : "0" + (_this.plworkFile.length + 1),
  15848. });
  15849. } else if (type == 7) {
  15850. _this.addCourseWorksGong(i, data.Location, 32);
  15851. } else if (type == 8) {
  15852. _this.addCourseWorksGong(i, data.Location, 57);
  15853. }
  15854. _this.imgChange(null, null, type);
  15855. console.log(data.Location);
  15856. // _this.$message.success('上传成功'+data.Location)
  15857. }
  15858. });
  15859. }
  15860. },
  15861. async beforeUpload3(event, type, i) {
  15862. // this.$message.success('进入上传')
  15863. let file = "";
  15864. let cfindex2 = 0;
  15865. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15866. file = event.target.files[cfindex];
  15867. var credentials = {
  15868. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15869. secretAccessKey: "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",
  15870. }; //秘钥形式的登录上传
  15871. window.AWS.config.update(credentials);
  15872. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15873. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15874. var _this = this;
  15875. // _this.progress = 0;
  15876. _this.proVisible2 = true;
  15877. var b = [
  15878. "DOC",
  15879. "DOCX",
  15880. "DOCM",
  15881. "DOTM",
  15882. "DOTX",
  15883. "PPTX",
  15884. "PPSX",
  15885. "PPT",
  15886. "PPS",
  15887. "PPTM",
  15888. "POTM",
  15889. "PPAM",
  15890. "POTX",
  15891. "PPSM",
  15892. ];
  15893. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15894. var photoA = [
  15895. "BMP",
  15896. "GIF",
  15897. "PNG",
  15898. "JPEG",
  15899. "JPG",
  15900. "TIF",
  15901. "PCX",
  15902. "TGA",
  15903. "EXIF",
  15904. "FPX",
  15905. "SVG",
  15906. "APNG",
  15907. ];
  15908. if (
  15909. photoA.indexOf(
  15910. file.name
  15911. .split(".")
  15912. [file.name.split(".").length - 1].toLocaleUpperCase()
  15913. ) != -1 &&
  15914. type != 4
  15915. ) {
  15916. // const blob = await imageConversion.compress(file, 0.8)
  15917. file = await this.pngToWhiteBg(file);
  15918. const blob = await imageConversion.compressAccurately(file, 256);
  15919. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15920. file = new File([blob], file.name, { type: file.type });
  15921. }
  15922. if (file) {
  15923. var params = {
  15924. Key:
  15925. file.name.split(".")[0] +
  15926. new Date().getTime() +
  15927. "." +
  15928. file.name.split(".")[file.name.split(".").length - 1],
  15929. ContentType: file.type,
  15930. Body: file,
  15931. "Access-Control-Allow-Credentials": "*",
  15932. ACL: "public-read",
  15933. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15934. var options = {
  15935. // partSize: 2048 * 1024 * 1024,
  15936. partSize: 1024 * 1024 * 1024,
  15937. queueSize: 2,
  15938. leavePartsOnError: true,
  15939. };
  15940. bucket
  15941. .upload(params, options)
  15942. .on("httpUploadProgress", function (evt) {
  15943. //这里可以写进度条
  15944. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15945. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15946. })
  15947. .send(function (err, data) {
  15948. // _this.progress = 100;
  15949. cfindex2++;
  15950. setTimeout(() => {
  15951. if (
  15952. cfindex2 == event.target.files.length - 1 ||
  15953. cfindex2 > event.target.files.length - 1
  15954. ) {
  15955. _this.proVisible2 = false;
  15956. }
  15957. }, 1000);
  15958. if (err) {
  15959. var a = _this.$refs.upload1.uploadFiles;
  15960. a.splice(a.length - 1, a.length);
  15961. _this.$message.error("上传失败");
  15962. } else {
  15963. // _this.$message.success('上传成功')
  15964. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15965. var c = [
  15966. "AVI",
  15967. "NAVI",
  15968. "MPEG",
  15969. "ASF",
  15970. "MOV",
  15971. "WMV",
  15972. "3GP",
  15973. "RM",
  15974. "RMVB",
  15975. "FLV",
  15976. "F4V",
  15977. "H.264",
  15978. "H.265",
  15979. "REAL VIDEO",
  15980. "MKV",
  15981. "WebM",
  15982. "HDDVD",
  15983. "MP4",
  15984. "MPG",
  15985. "M4V",
  15986. "MGV",
  15987. "OGV",
  15988. "QTM",
  15989. "STR",
  15990. "AMC",
  15991. "DVX",
  15992. "EVO",
  15993. "DAT",
  15994. "OGG",
  15995. "OGM",
  15996. ];
  15997. if (type == 1) {
  15998. _this.studyJuri[0].cover.push({
  15999. name: file.name,
  16000. url: data.Location,
  16001. uid: file.uid,
  16002. });
  16003. if (
  16004. c.indexOf(
  16005. _this.studyJuri[0].cover[0].url
  16006. .split(".")
  16007. [
  16008. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16009. ].toLocaleUpperCase()
  16010. ) != -1
  16011. ) {
  16012. _this.fileType = 2;
  16013. } else if (
  16014. b.indexOf(
  16015. _this.studyJuri[0].cover[0].url
  16016. .split(".")
  16017. [
  16018. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16019. ].toLocaleUpperCase()
  16020. ) != -1
  16021. ) {
  16022. _this.fileType = 1;
  16023. } else {
  16024. _this.fileType = 0;
  16025. }
  16026. _this.imgChange(null, null, type);
  16027. } else if (type == 2) {
  16028. _this.upToolImg = data.Location;
  16029. _this.imgChange(null, null, type);
  16030. _this.addCourseWorks(i);
  16031. } else if (type == 4) {
  16032. _this.addPz("3", data.Location);
  16033. } else if (type == 5) {
  16034. _this.addImgDrawImG(data.Location);
  16035. } else if (type == 6) {
  16036. var _ftype = 1;
  16037. if (
  16038. c.indexOf(
  16039. data.Location.split(".")[
  16040. data.Location.split(".").length - 1
  16041. ].toLocaleUpperCase()
  16042. ) != -1
  16043. ) {
  16044. _ftype = 5;
  16045. } else if (
  16046. b.indexOf(
  16047. data.Location.split(".")[
  16048. data.Location.split(".").length - 1
  16049. ].toLocaleUpperCase()
  16050. ) != -1
  16051. ) {
  16052. _ftype = 4;
  16053. } else {
  16054. _ftype = 1;
  16055. }
  16056. _this.plworkFile.push({
  16057. name: file.name,
  16058. url: data.Location,
  16059. uid: file.uid,
  16060. fileType: _ftype,
  16061. username:
  16062. _this.plworkFile.length + 1 > 9
  16063. ? _this.plworkFile.length + 1
  16064. : "0" + (_this.plworkFile.length + 1),
  16065. });
  16066. }
  16067. _this.imgChange(null, null, type);
  16068. console.log(data.Location);
  16069. // _this.$message.success('上传成功'+data.Location)
  16070. }
  16071. });
  16072. }
  16073. }
  16074. },
  16075. beforeUpload2(event, type) {
  16076. var file = event.target.files[0];
  16077. var credentials = {
  16078. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16079. secretAccessKey: "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",
  16080. }; //秘钥形式的登录上传
  16081. window.AWS.config.update(credentials);
  16082. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16083. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16084. var _this = this;
  16085. _this.progress = 0;
  16086. _this.proVisible = true;
  16087. if (file) {
  16088. var params = {
  16089. Key:
  16090. file.name.split(".")[0] +
  16091. new Date().getTime() +
  16092. "." +
  16093. file.name.split(".")[file.name.split(".").length - 1],
  16094. ContentType: file.type,
  16095. Body: file,
  16096. "Access-Control-Allow-Credentials": "*",
  16097. ACL: "public-read",
  16098. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16099. var options = {
  16100. partSize: 2048 * 1024 * 1024,
  16101. queueSize: 2,
  16102. leavePartsOnError: true,
  16103. };
  16104. bucket
  16105. .upload(params, options)
  16106. .on("httpUploadProgress", function (evt) {
  16107. //这里可以写进度条
  16108. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16109. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16110. })
  16111. .send(function (err, data) {
  16112. _this.progress = 100;
  16113. setTimeout(() => {
  16114. _this.proVisible = false;
  16115. }, 1000);
  16116. if (err) {
  16117. var a = _this.$refs.upload1.uploadFiles;
  16118. a.splice(a.length - 1, a.length);
  16119. _this.$message.error("上传失败");
  16120. } else {
  16121. if (type == 2) {
  16122. _this.studyJuri[0].upVedio.push({
  16123. name: file.name,
  16124. url: data.Location,
  16125. uid: file.uid,
  16126. });
  16127. _this.imgChange(null, null, type);
  16128. } else if (type == 3) {
  16129. _this.studyJuri[0].upFile.push({
  16130. name: file.name,
  16131. url: data.Location,
  16132. uid: file.uid,
  16133. });
  16134. _this.imgChange(null, null, type);
  16135. }
  16136. console.log(data.Location);
  16137. }
  16138. });
  16139. }
  16140. },
  16141. allScrell() {
  16142. window.parent.postMessage({ allScreen: this.screenType }, "*");
  16143. },
  16144. nextOrpreSteps(t) {
  16145. if (this.IsFollow && this.tType == 2) {
  16146. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16147. return;
  16148. }
  16149. var b = this.chapInfoList.length - 1;
  16150. if (t == 0) {
  16151. if (this.courseType == 0) {
  16152. if (this.taskCount == 0) {
  16153. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16154. if (this.IsLookOpen) {
  16155. if (
  16156. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16157. ) {
  16158. if (
  16159. this.courseDetail.userid != this.userid &&
  16160. (!this.courseDetail.course_teacher ||
  16161. (this.courseDetail.course_teacher &&
  16162. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16163. ) {
  16164. this.$message.error("任务未解锁");
  16165. } else {
  16166. this.$message.error("上一任务未解锁");
  16167. }
  16168. return;
  16169. }
  16170. }
  16171. this.navList[this.courseType].isOpen = false;
  16172. this.courseType = b;
  16173. this.taskCount =
  16174. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16175. .length - 1;
  16176. this.navList[this.courseType].isOpen = true;
  16177. } else {
  16178. this.taskCount--;
  16179. }
  16180. } else {
  16181. if (this.taskCount == 0) {
  16182. this.navList[this.courseType].isOpen = false;
  16183. this.courseType--;
  16184. this.taskCount =
  16185. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16186. .length - 1;
  16187. this.navList[this.courseType].isOpen = true;
  16188. } else {
  16189. this.taskCount--;
  16190. }
  16191. }
  16192. } else {
  16193. if (this.courseType == b) {
  16194. if (
  16195. this.taskCount ==
  16196. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16197. 1
  16198. ) {
  16199. this.navList[this.courseType].isOpen = false;
  16200. this.courseType = 0;
  16201. this.taskCount = 0;
  16202. this.navList[this.courseType].isOpen = true;
  16203. } else {
  16204. var bbb = parseInt(this.taskCount) + 1;
  16205. if (
  16206. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16207. .isLook &&
  16208. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  16209. (this.courseDetail.course_teacher &&
  16210. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16211. this.IsLookOpen
  16212. ) {
  16213. this.$message.error("任务未解锁");
  16214. return;
  16215. }
  16216. this.taskCount++;
  16217. if (this.IsLookOpen) {
  16218. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16219. this.taskCount
  16220. ].isLook = true;
  16221. this.addCourseState(3);
  16222. }
  16223. }
  16224. } else {
  16225. if (
  16226. this.taskCount ==
  16227. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16228. 1
  16229. ) {
  16230. var bbb = parseInt(this.courseType) + 1;
  16231. if (
  16232. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16233. this.courseDetail.userid != this.userid &&
  16234. (!this.courseDetail.course_teacher ||
  16235. (this.courseDetail.course_teacher &&
  16236. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16237. this.IsLookOpen
  16238. ) {
  16239. this.$message.error("任务未解锁");
  16240. return;
  16241. }
  16242. this.navList[this.courseType].isOpen = false;
  16243. this.courseType++;
  16244. this.taskCount = 0;
  16245. this.navList[this.courseType].isOpen = true;
  16246. } else {
  16247. var bbb = parseInt(this.taskCount) + 1;
  16248. if (
  16249. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16250. .isLook &&
  16251. this.courseDetail.userid != this.userid &&
  16252. (!this.courseDetail.course_teacher ||
  16253. (this.courseDetail.course_teacher &&
  16254. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16255. this.IsLookOpen
  16256. ) {
  16257. this.$message.error("任务未解锁");
  16258. return;
  16259. }
  16260. this.taskCount++;
  16261. }
  16262. if (this.IsLookOpen) {
  16263. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16264. this.taskCount
  16265. ].isLook = true;
  16266. this.addCourseState(3);
  16267. }
  16268. }
  16269. // if (
  16270. // this.taskCount ==
  16271. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16272. // ) {
  16273. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16274. // } else {
  16275. // this.taskCount++;
  16276. // }
  16277. }
  16278. document.scrollingElement.scrollTop = 0;
  16279. this.showType = 7;
  16280. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16281. // if (this.vedio[this.taskCount].length > 0) {
  16282. // var a =
  16283. // document.getElementsByClassName("box_course")[this.taskCount]
  16284. // .offsetHeight;
  16285. // document.getElementsByClassName("vedioList")[
  16286. // this.taskCount
  16287. // ].style.height = a + "px";
  16288. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16289. // a - 40 + "px";
  16290. // }
  16291. this.isNoHomeWork = false;
  16292. (this.studyJuri = [
  16293. {
  16294. content: "",
  16295. cover: [],
  16296. upVedio: [],
  16297. upFile: [],
  16298. },
  16299. ]),
  16300. (this.radio = []);
  16301. this.isClickNav = "";
  16302. this.selectPz();
  16303. this.getHomeWork();
  16304. this.getCourseDetail(2);
  16305. this.$forceUpdate();
  16306. },
  16307. openTask(s, n, i,ctype) {
  16308. if (this.IsFollow && this.tType == 2) {
  16309. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16310. return;
  16311. }
  16312. if (this.IsLookOpen &&
  16313. this.courseDetail.userid != this.userid &&
  16314. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  16315. if (
  16316. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16317. this.courseDetail.userid != this.userid &&
  16318. (!this.courseDetail.course_teacher ||
  16319. (this.courseDetail.course_teacher &&
  16320. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16321. ) {
  16322. this.$message.error("任务未解锁");
  16323. return;
  16324. }
  16325. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16326. if (
  16327. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16328. .isLook
  16329. ) {
  16330. this.$message.error("上一任务未解锁");
  16331. return;
  16332. }
  16333. } else if (s > this.courseType) {
  16334. if (n > 0) {
  16335. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16336. this.$message.error("上一任务未解锁");
  16337. return;
  16338. }
  16339. } else {
  16340. if (
  16341. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16342. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16343. ].isLook
  16344. ) {
  16345. this.$message.error("上一任务未解锁");
  16346. return;
  16347. }
  16348. }
  16349. }
  16350. }
  16351. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  16352. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16353. return;
  16354. }
  16355. let flag = this.courseType==s;
  16356. this.courseType = s;
  16357. this.navId = i;
  16358. this.taskCount = n;
  16359. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  16360. if(ctype == 2){
  16361. this.navList[s].task[n].isOpen = true
  16362. }else{
  16363. this.navList[this.courseType].task[this.taskCount].isOpen =
  16364. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16365. }
  16366. if (this.IsLookOpen) {
  16367. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16368. this.taskCount
  16369. ].isLook = true;
  16370. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  16371. this.addCourseState(3,yym);
  16372. }
  16373. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16374. this.isCloseList[ci].isClose = 0;
  16375. this.isCloseList[ci].isCloseBoolean = false;
  16376. this.$nextTick(()=>{
  16377. setTimeout(()=>{
  16378. setTimeout(()=>{
  16379. this.panToolHeight('tool-'+ci);
  16380. }, 0)
  16381. }, 0)
  16382. })
  16383. }
  16384. this.showType = 0;
  16385. this.isNoHomeWork = false;
  16386. (this.studyJuri = [
  16387. {
  16388. content: "",
  16389. cover: [],
  16390. upVedio: [],
  16391. upFile: [],
  16392. },
  16393. ]),
  16394. (this.radio = []);
  16395. document.scrollingElement.scrollTop = 0;
  16396. // setTimeout(() => {
  16397. // let a = document.getElementById(i);
  16398. // if (a.offsetTop - 110 == 0) {
  16399. // window.scrollTo(0, 0);
  16400. // } else {
  16401. // window.scrollTo(0, a.offsetTop);
  16402. // }
  16403. // }, 0);
  16404. for (var z = 0; z < this.navList.length; z++) {
  16405. for (var q = 0; q < this.navList[z].task.length; q++) {
  16406. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16407. this.navList[z].task[q].tool[w].isTool = false;
  16408. }
  16409. }
  16410. }
  16411. this.selectPz();
  16412. this.getHomeWork();
  16413. this.getCourseDetail(2);
  16414. if(flag){
  16415. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16416. }else{
  16417. this.insertMemorandum(`进入<span class="variable">阶段${s+1}${this.navList[s].dyName?':'+this.navList[s].dyName:''}</span>→<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16418. }
  16419. },
  16420. get(i) {
  16421. if (this.IsFollow && this.tType == 2) {
  16422. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16423. return;
  16424. }
  16425. // for(var k=0;k<this.navList.length;k++){
  16426. // this.navList[k].isOpen = false;
  16427. // }
  16428. // this.navList[i].isOpen = true;
  16429. let a = this.navList[i].isOpen
  16430. this.navList[i].isOpen = !this.navList[i].isOpen;
  16431. this.$forceUpdate()
  16432. if (this.navList[i].isOpen) {
  16433. this.openTask(i, 0, (i + "-0"),2);
  16434. }
  16435. },
  16436. addQuestion() {
  16437. this.answerList.push({
  16438. answerTitle: this.answerQ,
  16439. answer: this.questionAnswer,
  16440. });
  16441. let params = [
  16442. {
  16443. uid: this.userid,
  16444. cid: this.id,
  16445. stage: this.courseType,
  16446. task: this.taskCount,
  16447. tool: this.toolindex,
  16448. content: JSON.stringify(this.answerList),
  16449. type: 3,
  16450. },
  16451. ];
  16452. this.ajax
  16453. .post(this.$store.state.api + "addCourseWorks", params)
  16454. .then((res) => {
  16455. this.$message({
  16456. message: "提交成功",
  16457. type: "success",
  16458. });
  16459. this.answerList = [];
  16460. this.answerDialogVisible = false;
  16461. this.selectStudent();
  16462. this.selectSWorks();
  16463. this.selectSLook();
  16464. })
  16465. .catch((err) => {
  16466. this.$message.error("提交失败");
  16467. console.error(err);
  16468. });
  16469. },
  16470. addQuestionTeacher() {
  16471. this.answerList.push({
  16472. answerTitle: this.answerQ,
  16473. answer: this.questionAnswer,
  16474. });
  16475. let params = [
  16476. {
  16477. uid: this.sStudent.userid,
  16478. cid: this.id,
  16479. stage: this.courseType,
  16480. task: this.taskCount,
  16481. tool: this.toolindex,
  16482. content: JSON.stringify(this.answerList),
  16483. type: 3,
  16484. ateacher: this.userid,
  16485. },
  16486. ];
  16487. this.ajax
  16488. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16489. .then((res) => {
  16490. this.$message({
  16491. message: "提交成功",
  16492. type: "success",
  16493. });
  16494. this.answerList = [];
  16495. this.questionAnswer = "";
  16496. this.answerDialogVisibleTeacher = false;
  16497. this.selectStudent();
  16498. this.selectSWorks();
  16499. this.selectSLook();
  16500. })
  16501. .catch((err) => {
  16502. this.$message.error("提交失败");
  16503. console.error(err);
  16504. });
  16505. },
  16506. refreshCourse() {
  16507. // window.location.reload();
  16508. this.navList = [];
  16509. this.getCourseDetail(1);
  16510. },
  16511. getCourseDetail(type, gindex) {
  16512. let loading;
  16513. if (type != 2) {
  16514. loading = this.$loading.service({
  16515. background: "rgba(255, 255, 255, 0.7)",
  16516. target: document.querySelector(".student_table"),
  16517. });
  16518. }
  16519. this.downLoading = false
  16520. // this.navList[0].isOpen = false;
  16521. // this.navList[this.courseType].isOpen = true;
  16522. // this.courseType = this.courseTypeLine;
  16523. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16524. let params = {
  16525. courseId: this.id,
  16526. };
  16527. this.ajax
  16528. .get(this.$store.state.api + "selectCourseDetail3", params)
  16529. .then((res) => {
  16530. if (type != 2) {
  16531. loading.close();
  16532. if (
  16533. this.courseType >
  16534. JSON.parse(res.data[0][0].chapters).length - 1
  16535. ) {
  16536. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16537. }
  16538. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16539. .chapterInfo[0].taskJson;
  16540. var b = [
  16541. "AVI",
  16542. "NAVI",
  16543. "MPEG",
  16544. "ASF",
  16545. "MOV",
  16546. "WMV",
  16547. "3GP",
  16548. "RM",
  16549. "RMVB",
  16550. "FLV",
  16551. "F4V",
  16552. "H.264",
  16553. "H.265",
  16554. "REAL VIDEO",
  16555. "MKV",
  16556. "WebM",
  16557. "HDDVD",
  16558. "MP4",
  16559. "MPG",
  16560. "M4V",
  16561. "MGV",
  16562. "OGV",
  16563. "QTM",
  16564. "STR",
  16565. "AMC",
  16566. "DVX",
  16567. "EVO",
  16568. "DAT",
  16569. "OGG",
  16570. "OGM",
  16571. "MP3",
  16572. ];
  16573. let _chapterData = [];
  16574. for (var i = 0; i < a.length; i++) {
  16575. var c = a[i].chapterData;
  16576. this.vedio[i] = [];
  16577. this.textList[i] = [];
  16578. this.lineList[i] = [];
  16579. this.chapToolList[i] = [];
  16580. this.file[i] = [];
  16581. this.fileC[i] = [];
  16582. _chapterData[i] = c.filter((el) => {
  16583. return el.type != 12;
  16584. });
  16585. this.fileC[i] = c.filter((el) => {
  16586. return el.type == 12;
  16587. });
  16588. if (this.tType == 2) {
  16589. if (this.fileC[i].length) {
  16590. let yym1 = this.fileC[i].filter(e=>{
  16591. if(!converter(e.name).includes(converter("教案"))){
  16592. return e
  16593. }
  16594. })
  16595. this.fileC[i] = yym1
  16596. }
  16597. }
  16598. // else if (c[j].type == 12) {
  16599. // this.fileC[i].push(c[j]);
  16600. // }
  16601. for (var j = 0; j < c.length; j++) {
  16602. if (c[j].type == 7) {
  16603. this.chapToolList[i].push(c[j]);
  16604. } else if (c[j].type == 8 || c[j].type == 14) {
  16605. this.lineList[i].push(c[j]);
  16606. } else if (c[j].type == 6) {
  16607. this.textList[i].push(c[j]);
  16608. } else {
  16609. if (
  16610. b.indexOf(
  16611. c[j].url
  16612. .split(".")
  16613. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16614. ) != -1
  16615. ) {
  16616. this.vedio[i].push(c[j]);
  16617. } else {
  16618. this.file[i].push(c[j]);
  16619. }
  16620. }
  16621. }
  16622. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16623. d.sources[0].src =
  16624. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16625. this.playerO[i] = d;
  16626. }
  16627. this.courseDetail = res.data[0][0];
  16628. if(this.tType == 2){
  16629. this.tcid = this.arrayToArray(
  16630. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16631. this.classId ? this.classId.split(",") : []
  16632. ).join(",");
  16633. }else{
  16634. this.tcid = this.arrayToArray(
  16635. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16636. this.tcid2 ? this.tcid2.split(",") : []
  16637. ).join(",");
  16638. }
  16639. this.evalua = res.data[0][0].evaId;
  16640. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16641. this.courseType
  16642. ];
  16643. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16644. if (this.tcid && res.data[1].length) {
  16645. let _inviteA = [];
  16646. for (var ik = 0; ik < res.data[1].length; ik++) {
  16647. _inviteA.push({
  16648. cid: res.data[1][ik].classid,
  16649. ic: res.data[1][ik].code,
  16650. });
  16651. }
  16652. for (var ik = 0; ik < _inviteA.length; ik++) {
  16653. if (
  16654. this.arrayToArray(
  16655. _inviteA[ik].cid.split(","),
  16656. this.tcid.split(",")
  16657. ).length
  16658. ) {
  16659. this.inviteCode = _inviteA[ik].ic;
  16660. break;
  16661. }
  16662. }
  16663. }
  16664. for (var l = 0; l < this.chapInfoList.length; l++) {
  16665. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16666. for (var m = 0; m < w.length; m++) {
  16667. w[m].id = l + "-" + m;
  16668. }
  16669. }
  16670. if (
  16671. _chapterData[this.taskCount].length &&
  16672. _chapterData[this.taskCount][0].type == 2
  16673. ) {
  16674. this.showType = 0;
  16675. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16676. } else {
  16677. if (_chapterData[this.taskCount].length > 0) {
  16678. let _url = _chapterData[this.taskCount][0].url;
  16679. if (
  16680. _chapterData[this.taskCount][0].type == 8 ||
  16681. _chapterData[this.taskCount][0].type == 14
  16682. ) {
  16683. this.showType = 2;
  16684. if (
  16685. _url.indexOf("https://") == -1 &&
  16686. _url.indexOf("http://") == -1
  16687. ) {
  16688. _url = "https://" + _url;
  16689. }
  16690. this.pptImgUrl1 = _url;
  16691. } else if (_chapterData[this.taskCount][0].type == 3) {
  16692. if (
  16693. _url
  16694. .split(".")
  16695. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16696. ) {
  16697. this.showType = 3;
  16698. this.pptImgUrl1 = _url;
  16699. } else if (
  16700. this.isAssetTypeAnImage(
  16701. _url
  16702. .split(".")
  16703. [_url.split(".").length - 1].toLocaleLowerCase()
  16704. )
  16705. ) {
  16706. this.showType = 4;
  16707. this.pptImgUrl1 = _url;
  16708. } else {
  16709. this.showType = 2;
  16710. this.pptImgUrl1 =
  16711. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16712. encodeURIComponent(_url);
  16713. }
  16714. } else if (_chapterData[this.taskCount][0].type == 13) {
  16715. this.showType = 4;
  16716. this.pptImgUrl1 = _url;
  16717. } else if (_chapterData[this.taskCount][0].type == 6) {
  16718. this.showType = 1;
  16719. this.text = this.textList[this.taskCount][0];
  16720. }
  16721. }
  16722. }
  16723. this.isClickNav = 0;
  16724. if (
  16725. !_chapterData[this.taskCount].length ||
  16726. _chapterData[this.taskCount][0].type == 12
  16727. ) {
  16728. this.isClickNav = "";
  16729. this.showType = "";
  16730. }
  16731. if (this.tType == 2) {
  16732. _chapterData.forEach((e,i)=>{
  16733. if (e.length) {
  16734. let yym = e.filter(k=>{
  16735. if(!converter(k.name).includes(converter("教案"))){
  16736. return k
  16737. }
  16738. })
  16739. _chapterData[i] = yym
  16740. }
  16741. })
  16742. }
  16743. this.vChapterData = _chapterData;
  16744. } else {
  16745. this.showType = 0;
  16746. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16747. .chapterInfo[0].taskJson;
  16748. var b = [
  16749. "AVI",
  16750. "NAVI",
  16751. "MPEG",
  16752. "ASF",
  16753. "MOV",
  16754. "WMV",
  16755. "3GP",
  16756. "RM",
  16757. "RMVB",
  16758. "FLV",
  16759. "F4V",
  16760. "H.264",
  16761. "H.265",
  16762. "REAL VIDEO",
  16763. "MKV",
  16764. "WebM",
  16765. "HDDVD",
  16766. "MP4",
  16767. "MPG",
  16768. "M4V",
  16769. "MGV",
  16770. "OGV",
  16771. "QTM",
  16772. "STR",
  16773. "AMC",
  16774. "DVX",
  16775. "EVO",
  16776. "DAT",
  16777. "OGG",
  16778. "OGM",
  16779. "MP3",
  16780. ];
  16781. let _chapterData = [];
  16782. for (var i = 0; i < a.length; i++) {
  16783. var c = a[i].chapterData;
  16784. this.vedio[i] = [];
  16785. this.textList[i] = [];
  16786. this.lineList[i] = [];
  16787. this.chapToolList[i] = [];
  16788. this.file[i] = [];
  16789. this.fileC[i] = [];
  16790. _chapterData[i] = c.filter((el) => {
  16791. return el.type != 12;
  16792. });
  16793. this.fileC[i] = c.filter((el) => {
  16794. return el.type == 12;
  16795. });
  16796. if (this.tType == 2) {
  16797. if (this.fileC[i].length) {
  16798. let yym1 = this.fileC[i].filter(e=>{
  16799. if(!converter(e.name).includes(converter("教案"))){
  16800. return e
  16801. }
  16802. })
  16803. this.fileC[i] = yym1
  16804. }
  16805. }
  16806. for (var j = 0; j < c.length; j++) {
  16807. if (c[j].type == 7) {
  16808. this.chapToolList[i].push(c[j]);
  16809. } else if (c[j].type == 8 || c[j].type == 14) {
  16810. this.lineList[i].push(c[j]);
  16811. } else if (c[j].type == 6) {
  16812. this.textList[i].push(c[j]);
  16813. } else {
  16814. if (
  16815. b.indexOf(
  16816. c[j].url
  16817. .split(".")
  16818. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16819. ) != -1
  16820. ) {
  16821. this.vedio[i].push(c[j]);
  16822. } else {
  16823. this.file[i].push(c[j]);
  16824. }
  16825. }
  16826. }
  16827. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16828. d.sources[0].src =
  16829. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16830. this.playerO[i] = d;
  16831. }
  16832. if (
  16833. _chapterData[this.taskCount].length &&
  16834. _chapterData[this.taskCount][0].type == 2
  16835. ) {
  16836. this.showType = 0;
  16837. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16838. } else {
  16839. if (_chapterData[this.taskCount].length > 0) {
  16840. let _url = _chapterData[this.taskCount][0].url;
  16841. if (
  16842. _chapterData[this.taskCount][0].type == 8 ||
  16843. _chapterData[this.taskCount][0].type == 14
  16844. ) {
  16845. this.showType = 2;
  16846. if (
  16847. _url.indexOf("https://") == -1 &&
  16848. _url.indexOf("http://") == -1
  16849. ) {
  16850. _url = "https://" + _url;
  16851. }
  16852. this.pptImgUrl1 = _url;
  16853. } else if (_chapterData[this.taskCount][0].type == 3) {
  16854. if (
  16855. _url
  16856. .split(".")
  16857. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16858. ) {
  16859. this.showType = 3;
  16860. this.pptImgUrl1 = _url;
  16861. } else if (
  16862. this.isAssetTypeAnImage(
  16863. _url
  16864. .split(".")
  16865. [_url.split(".").length - 1].toLocaleLowerCase()
  16866. )
  16867. ) {
  16868. this.showType = 4;
  16869. this.pptImgUrl1 = _url;
  16870. } else {
  16871. this.showType = 2;
  16872. this.pptImgUrl1 =
  16873. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16874. encodeURIComponent(_url);
  16875. }
  16876. } else if (_chapterData[this.taskCount][0].type == 13) {
  16877. this.showType = 4;
  16878. this.pptImgUrl1 = _url;
  16879. } else if (_chapterData[this.taskCount][0].type == 6) {
  16880. this.showType = 1;
  16881. this.text = this.textList[this.taskCount][0];
  16882. }
  16883. }
  16884. }
  16885. this.isClickNav = 0;
  16886. if (
  16887. !_chapterData[this.taskCount].length ||
  16888. _chapterData[this.taskCount][0].type == 12
  16889. ) {
  16890. this.isClickNav = "";
  16891. this.showType = "";
  16892. }
  16893. console.log('_chapterData66666',_chapterData);
  16894. if (this.tType == 2) {
  16895. _chapterData.forEach((e,i)=>{
  16896. if (e.length) {
  16897. let yym = e.filter(k=>{
  16898. if(!converter(k.name).includes(converter("教案"))){
  16899. return k
  16900. }
  16901. })
  16902. _chapterData[i] = yym
  16903. }
  16904. })
  16905. }
  16906. this.vChapterData = _chapterData;
  16907. this.$forceUpdate();
  16908. }
  16909. // else {
  16910. // this.courseDetail = res.data[0][0];
  16911. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16912. // }
  16913. let _this = this;
  16914. if (_this.timer) {
  16915. clearInterval(_this.timer);
  16916. _this.timer = null;
  16917. }
  16918. if (_this.tcid) {
  16919. _this.getCourseGroup(gindex);
  16920. } else {
  16921. _this.selectSWorks(gindex);
  16922. }
  16923. _this.selectStudent();
  16924. _this.selectSLook();
  16925. _this.getPick();
  16926. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16927. _this.setCTask();
  16928. }
  16929. if (_this.dialogVisibleGroup) {
  16930. _this.groupJson =
  16931. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16932. _this.taskCount
  16933. ].toolChoose[_this.toolindex].groupJson;
  16934. }
  16935. _this.$nextTick(() => {
  16936. setTimeout(() => {
  16937. _this.checkEva();
  16938. }, 1000);
  16939. });
  16940. _this.timer = setInterval(function () {
  16941. // _this.getCourseDetail(2);
  16942. if (_this.tcid) {
  16943. _this.getCourseGroup(gindex);
  16944. } else {
  16945. _this.selectSWorks(gindex);
  16946. }
  16947. _this.selectStudent();
  16948. _this.selectSLook();
  16949. _this.getPick();
  16950. // _this.getSplitScreenData();
  16951. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16952. _this.setCTask();
  16953. }
  16954. if (_this.dialogVisibleGroup) {
  16955. _this.groupJson =
  16956. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16957. _this.taskCount
  16958. ].toolChoose[_this.toolindex].groupJson;
  16959. }
  16960. if (_this.tType == 4 || _this.ispzType == 4) {
  16961. _this.selectPz();
  16962. }
  16963. }, 5000);
  16964. if (_this.timer2 == null) {
  16965. _this.timer2 = setInterval(()=> {
  16966. _this.getSplitScreenData();//获取分屏数据
  16967. }, 5000);
  16968. }
  16969. _this.$nextTick(function () {
  16970. setTimeout(() => {
  16971. // var a =
  16972. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16973. // document.getElementsByClassName("vedioList")[0].style.height =
  16974. // a + "px";
  16975. // document.getElementsByClassName("navBox")[0].style.height =
  16976. // a - 40 + "px";
  16977. // if (_this.vedio[_this.taskCount].length > 0) {
  16978. // _this.vedioTime = [];
  16979. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16980. // _this.vedioTime[i] = document.getElementsByClassName(
  16981. // "vjs-duration-display"
  16982. // )[i].textContent;
  16983. // }
  16984. // }
  16985. }, 1000);
  16986. });
  16987. })
  16988. .catch((err) => {
  16989. loading.close();
  16990. console.error(err);
  16991. });
  16992. },
  16993. getCourseGroup(gindex) {
  16994. let params = {
  16995. cid: this.id,
  16996. classid: this.tcid ? this.tcid : "1",
  16997. };
  16998. this.ajax
  16999. .get(this.$store.state.api + "getCourseGroup", params)
  17000. .then((res) => {
  17001. if (res.data && res.data[0].length) {
  17002. if (!this.isGroup) {
  17003. let courseGroup = JSON.parse(res.data[0][0].group);
  17004. courseGroup.group = courseGroup.group.filter((el) => {
  17005. el.works = [];
  17006. return el;
  17007. });
  17008. if (courseGroup.isopen == 2) {
  17009. this.isGroup = false;
  17010. this.selectSWorks(gindex);
  17011. return;
  17012. }
  17013. this.courseGroup = courseGroup;
  17014. let groupPerson = res.data[1];
  17015. let group = JSON.parse(res.data[0][0].group).group;
  17016. let courseGroupStudent = {};
  17017. let courseGroupStudentUid = {};
  17018. for (var i = 0; i < group.length; i++) {
  17019. courseGroupStudent[group[i].id] = [];
  17020. courseGroupStudentUid[group[i].id] = [];
  17021. for (var j = 0; j < groupPerson.length; j++) {
  17022. if (groupPerson[j].groupCid == group[i].id) {
  17023. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17024. courseGroupStudentUid[group[i].id].push(
  17025. groupPerson[j].userid
  17026. );
  17027. }
  17028. }
  17029. }
  17030. this.courseGroupStudent = courseGroupStudent;
  17031. this.courseGroupStudentUid = courseGroupStudentUid;
  17032. }
  17033. if (this.courseGroup.isopen == 2) {
  17034. this.isGroup = false;
  17035. } else {
  17036. this.isGroup = true;
  17037. }
  17038. this.selectSWorks(gindex);
  17039. } else {
  17040. this.selectSWorks(gindex);
  17041. this.isGroup = false;
  17042. }
  17043. })
  17044. .catch((err) => {
  17045. // this.$message.error("网络不佳");
  17046. console.error(err);
  17047. });
  17048. },
  17049. setOperationTime() {
  17050. let _this = this;
  17051. if (_this.opertimer) {
  17052. clearInterval(_this.opertimer);
  17053. _this.opertimer = null;
  17054. }
  17055. _this.opertimer = setInterval(() => {
  17056. _this.setoTime("600");
  17057. }, 600000);
  17058. },
  17059. setoTime(time) {
  17060. let params = [
  17061. {
  17062. uid: this.userid,
  17063. cid: this.id,
  17064. type: "2",
  17065. time: time,
  17066. },
  17067. ];
  17068. this.ajax
  17069. .post(this.$store.state.api + "addOperationTimeT2", params)
  17070. .then((res) => {})
  17071. .catch((err) => {
  17072. console.error(err);
  17073. });
  17074. },
  17075. addPz(type, content) {
  17076. if (type == "1" && this.pzConText == "") {
  17077. this.$message.error("评论不能为空!");
  17078. return;
  17079. }
  17080. let params = [
  17081. {
  17082. cid: this.id,
  17083. uid: this.userid,
  17084. s: this.courseType,
  17085. t: this.taskCount,
  17086. c: type == "1" ? this.pzConText : content,
  17087. type: type,
  17088. },
  17089. ];
  17090. this.ajax
  17091. .post(this.$store.state.api + "addPz2", params)
  17092. .then((res) => {
  17093. this.$message({
  17094. message: "添加成功",
  17095. type: "success",
  17096. });
  17097. this.pzConText = "";
  17098. this.addPzDialog = false;
  17099. this.selectPz();
  17100. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17101. })
  17102. .catch((err) => {
  17103. this.$message.error("添加失败");
  17104. console.error(err);
  17105. });
  17106. },
  17107. setReplyIndex(id, i) {
  17108. this.replyIndex = i;
  17109. this.replyPid = id;
  17110. this.replyDialogVisible = true;
  17111. },
  17112. addHf() {
  17113. if (this.reply == "") {
  17114. this.$message.error("回复不能为空!");
  17115. return;
  17116. }
  17117. let params = [
  17118. {
  17119. cid: this.id,
  17120. uid: this.userid,
  17121. s: this.courseType,
  17122. t: this.taskCount,
  17123. type: "1",
  17124. ct: 2,
  17125. pid: this.replyPid,
  17126. c: this.reply,
  17127. },
  17128. ];
  17129. this.ajax
  17130. .post(this.$store.state.api + "addHf", params)
  17131. .then((res) => {
  17132. this.reply = "";
  17133. this.$message({
  17134. message: "回复成功",
  17135. type: "success",
  17136. });
  17137. this.replyDialogVisible = false;
  17138. this.selectPz();
  17139. })
  17140. .catch((err) => {
  17141. this.$message.error("回复失败");
  17142. console.error(err);
  17143. });
  17144. },
  17145. deletePz(id) {
  17146. this.$confirm("确定删除此评论吗?", "提示", {
  17147. confirmButtonText: "确定",
  17148. cancelButtonText: "取消",
  17149. type: "warning",
  17150. })
  17151. .then(() => {
  17152. let params = [
  17153. {
  17154. id: id,
  17155. },
  17156. ];
  17157. this.ajax
  17158. .post(this.$store.state.api + "deletePz", params)
  17159. .then((res) => {
  17160. this.$message({
  17161. message: "删除成功",
  17162. type: "success",
  17163. });
  17164. this.selectPz();
  17165. })
  17166. .catch((err) => {
  17167. this.$message.error("网络异常");
  17168. console.error(err);
  17169. });
  17170. })
  17171. .catch(() => {});
  17172. },
  17173. deleteReply(id) {
  17174. this.$confirm("确定删除此回复吗?", "提示", {
  17175. confirmButtonText: "确定",
  17176. cancelButtonText: "取消",
  17177. type: "warning",
  17178. })
  17179. .then(() => {
  17180. let params = [
  17181. {
  17182. id: id,
  17183. },
  17184. ];
  17185. this.ajax
  17186. .post(this.$store.state.api + "deleteReply", params)
  17187. .then((res) => {
  17188. this.$message({
  17189. message: "删除成功",
  17190. type: "success",
  17191. });
  17192. this.selectPz();
  17193. })
  17194. .catch((err) => {
  17195. this.$message.error("网络异常");
  17196. console.error(err);
  17197. });
  17198. })
  17199. .catch(() => {});
  17200. },
  17201. setPz() {
  17202. if (this.ispzType == 4) {
  17203. this.ispzType = 0;
  17204. this.pzDialog = false;
  17205. return;
  17206. }
  17207. this.ispzType = 4;
  17208. this.pzDialog = true;
  17209. this.selectPz();
  17210. },
  17211. selectPz() {
  17212. let params = {
  17213. cid: this.id,
  17214. s: this.courseType,
  17215. t: this.taskCount,
  17216. type: this.pzStype,
  17217. uid: this.userid,
  17218. };
  17219. this.ajax
  17220. .get(this.$store.state.api + "selectPzListType", params)
  17221. .then((res) => {
  17222. this.pzList = res.data[0];
  17223. var a = res.data[1];
  17224. for (var i = 0; i < a.length; i++) {
  17225. for (var j = 0; j < this.pzList.length; j++) {
  17226. if (!this.pzList[j].hfList) {
  17227. this.pzList[j].hfList = [];
  17228. }
  17229. if (a[i].pid == this.pzList[j].id) {
  17230. this.pzList[j].hfList.push(a[i]);
  17231. }
  17232. }
  17233. }
  17234. })
  17235. .catch((err) => {
  17236. console.error(err);
  17237. });
  17238. },
  17239. // selectHf() {
  17240. // let params = {
  17241. // cid: this.id,
  17242. // s: this.courseType,
  17243. // t: this.taskCount,
  17244. // };
  17245. // this.ajax
  17246. // .get(this.$store.state.api + "selectHfList", params)
  17247. // .then((res) => {
  17248. // var a = res.data[0];
  17249. // for (var i = 0; i < a.length; i++) {
  17250. // for (var j = 0; j < this.pzList.length; j++) {
  17251. // if (!this.pzList[i].hfList) {
  17252. // this.pzList[i].hfList = [];
  17253. // }
  17254. // if (a[i].pid == this.pzList[j].id) {
  17255. // this.pzList[i].hfList.push(a[i]);
  17256. // }
  17257. // }
  17258. // }
  17259. // })
  17260. // .catch((err) => {
  17261. // console.error(err);
  17262. // });
  17263. // },
  17264. updateSLook() {
  17265. let params = {
  17266. sopen: this.sIsOpen == false ? 1 : 2,
  17267. cid: this.id,
  17268. };
  17269. this.ajax
  17270. .get(this.$store.state.api + "updateCourseSLook", params)
  17271. .then((res) => {
  17272. if (this.sIsOpen == true) {
  17273. this.$message({
  17274. message: "权限设置成功",
  17275. type: "success",
  17276. });
  17277. } else {
  17278. this.$message({
  17279. message: "权限关闭成功",
  17280. type: "success",
  17281. });
  17282. }
  17283. })
  17284. .catch((err) => {
  17285. console.error(err);
  17286. });
  17287. },
  17288. updateFollow() {
  17289. let params = [
  17290. {
  17291. sopen: this.IsFollow == false ? 1 : 2,
  17292. cid: this.id,
  17293. },
  17294. ];
  17295. this.ajax
  17296. .post(this.$store.state.api + "updateCourseFollow", params)
  17297. .then((res) => {
  17298. if (this.IsFollow == true) {
  17299. this.$message({
  17300. message: "开启成功",
  17301. type: "success",
  17302. });
  17303. } else {
  17304. this.$message({
  17305. message: "关闭成功",
  17306. type: "success",
  17307. });
  17308. }
  17309. this.setCTask();
  17310. })
  17311. .catch((err) => {
  17312. console.error(err);
  17313. });
  17314. },
  17315. setCTask() {
  17316. let params = [
  17317. {
  17318. sopen: this.courseType + "-" + this.taskCount,
  17319. cid: this.id,
  17320. },
  17321. ];
  17322. this.ajax
  17323. .post(this.$store.state.api + "updateCourseFollowC", params)
  17324. .then((res) => {})
  17325. .catch((err) => {
  17326. console.error(err);
  17327. });
  17328. },
  17329. updateLookOpen() {
  17330. let params = [
  17331. {
  17332. sopen: this.IsLookOpen == false ? 1 : 2,
  17333. cid: this.id,
  17334. },
  17335. ];
  17336. this.ajax
  17337. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17338. .then((res) => {
  17339. if (this.IsLookOpen == true) {
  17340. // if (this.courseType != 0 && this.taskCount != 0) {
  17341. // this.openTask(0, 0, "0-0");
  17342. // }
  17343. this.$message({
  17344. message: "权限设置成功",
  17345. type: "success",
  17346. });
  17347. } else {
  17348. this.$message({
  17349. message: "权限关闭成功",
  17350. type: "success",
  17351. });
  17352. }
  17353. this.getCourseState(2);
  17354. })
  17355. .catch((err) => {
  17356. console.error(err);
  17357. });
  17358. },
  17359. selectSLook() {
  17360. let params = {
  17361. cid: this.id,
  17362. };
  17363. this.ajax
  17364. .get(this.$store.state.api + "selectCourseSLook", params)
  17365. .then((res) => {
  17366. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17367. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17368. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17369. if (!this.IsLookOpen) {
  17370. this.setNavList();
  17371. } else {
  17372. this.getCourseState(1);
  17373. }
  17374. if ((this.IsFollow && this.tType == 2)) {
  17375. this.setContent2(false);
  17376. let _followC = res.data[0][0].followC.split("-");
  17377. if (
  17378. this.courseType != _followC[0] ||
  17379. this.taskCount != _followC[1]
  17380. ) {
  17381. this.navList[this.courseType].isOpen = false;
  17382. this.courseType = _followC[0];
  17383. this.navList[this.courseType].isOpen = true;
  17384. this.taskCount = parseInt(_followC[1]);
  17385. this.navId = res.data[0][0].followC;
  17386. document.scrollingElement.scrollTop = 0;
  17387. this.getCourseDetail(2);
  17388. }
  17389. }
  17390. })
  17391. .catch((err) => {
  17392. console.error(err);
  17393. });
  17394. },
  17395. setNavList() {
  17396. if (this.navList.length == 0) {
  17397. this.navList = [];
  17398. var copyList = [];
  17399. for (var l = 0; l < this.chapInfoList.length; l++) {
  17400. var q = this.chapInfoList[l].dyName;
  17401. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17402. var e;
  17403. copyList.push({
  17404. dyName: q,
  17405. isOpen: l === 0 ? true : false,
  17406. task: [],
  17407. });
  17408. for (var r = 0; r < w.length; r++) {
  17409. e = w[r].task;
  17410. if (this.chapInfoList[l].easy == 1) {
  17411. copyList[l].task.push({
  17412. taskName: q,
  17413. id: l + "-" + r,
  17414. isLook: w[r].isLook,
  17415. isOpen: r === 0 ? true : false,
  17416. tool: [],
  17417. });
  17418. } else {
  17419. copyList[l].task.push({
  17420. taskName: e,
  17421. id: l + "-" + r,
  17422. isLook: w[r].isLook,
  17423. isOpen: r === 0 ? true : false,
  17424. tool: [],
  17425. });
  17426. }
  17427. var t = w[r].toolChoose;
  17428. for (var k = 0; k < t.length; k++) {
  17429. var tool = t[k].tool[0];
  17430. copyList[l].task[r].tool.push({
  17431. tool: tool,
  17432. isTool: false,
  17433. });
  17434. }
  17435. // this.navId = this.navId ? this.navId : l + "-" + r;
  17436. // this.navId = l + "-" + r;
  17437. }
  17438. }
  17439. this.navList = copyList;
  17440. this.navList[0].isOpen = false;
  17441. this.navList[this.courseType].isOpen = true;
  17442. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17443. } else {
  17444. this.setNavList2();
  17445. }
  17446. },
  17447. setNavList2() {
  17448. for (var l = 0; l < this.chapInfoList.length; l++) {
  17449. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17450. for (var r = 0; r < w.length; r++) {
  17451. this.navList[l].task[r].isLook = w[r].isLook;
  17452. }
  17453. }
  17454. if (
  17455. this.IsLookOpen &&
  17456. !this.navList[this.courseType].task[this.taskCount].isLook
  17457. ) {
  17458. this.openTask(0, 0, "0-0");
  17459. }
  17460. this.$forceUpdate();
  17461. },
  17462. getCourseState(type) {
  17463. let params = {
  17464. cid: this.id,
  17465. };
  17466. this.ajax
  17467. .get(this.$store.state.api + "getCourseState", params)
  17468. .then((res) => {
  17469. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17470. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17471. this.setNavList();
  17472. this.$forceUpdate();
  17473. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17474. this.addCourseState(2);
  17475. } else {
  17476. this.addCourseState(1);
  17477. }
  17478. })
  17479. .catch((err) => {
  17480. console.error(err);
  17481. });
  17482. },
  17483. addCourseState(type,val = '') {
  17484. let _state = val ? val : this.chapInfoList;
  17485. // this.courseType this.taskCount
  17486. if (type == 1 || type == 2) {
  17487. for (var i = 0; i < _state.length; i++) {
  17488. let el = _state[i].chapterInfo[0].taskJson;
  17489. for (var j = 0; j < el.length; j++) {
  17490. // if (i == 0 && j == 0) {
  17491. // el[j].isLook = true;
  17492. // } else {
  17493. // el[j].isLook = false;
  17494. // }
  17495. if (
  17496. this.courseType > i ||
  17497. (this.courseType == i && this.taskCount + 1 > j)
  17498. ) {
  17499. el[j].isLook = true;
  17500. } else {
  17501. el[j].isLook = false;
  17502. }
  17503. }
  17504. }
  17505. }
  17506. let params = [
  17507. {
  17508. cid: this.id,
  17509. state: JSON.stringify(_state),
  17510. },
  17511. ];
  17512. this.ajax
  17513. .post(
  17514. this.$store.state.api +
  17515. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17516. params
  17517. )
  17518. .then((res) => {
  17519. if (this.IsLookOpen) {
  17520. this.setNavList();
  17521. }
  17522. if (type == 3 && type == 2) {
  17523. this.getCourseState(1);
  17524. }
  17525. })
  17526. .catch((err) => {
  17527. console.error(err);
  17528. });
  17529. },
  17530. getHomeWork() {
  17531. let params = {
  17532. cid: this.id,
  17533. stage: this.courseType,
  17534. task: this.taskCount,
  17535. uid: this.userid,
  17536. };
  17537. this.ajax
  17538. .get(this.$store.state.api + "selectWork", params)
  17539. .then((res) => {
  17540. if (res.data[0].length > 0) {
  17541. this.studyJuri = JSON.parse(res.data[0][0].content);
  17542. this.isNoHomeWork = true;
  17543. }
  17544. })
  17545. .catch((err) => {
  17546. console.error(err);
  17547. });
  17548. },
  17549. isAssetTypeAnImage(ext) {
  17550. return (
  17551. [
  17552. "png",
  17553. "jpg",
  17554. "jpeg",
  17555. "bmp",
  17556. "gif",
  17557. "webp",
  17558. "psd",
  17559. "svg",
  17560. "tiff",
  17561. ].indexOf(ext) !== -1
  17562. );
  17563. },
  17564. switchVideo(media) {
  17565. this.playerO = {};
  17566. this.playerOptions.poster = "";
  17567. this.playerOptions.sources[0].src = media;
  17568. this.playerO = this.playerOptions;
  17569. },
  17570. onPlayerPlay() {},
  17571. onPlayerTimeupdate(player) {
  17572. let gklog = player.cache_.currentTime; //当前播放的秒数
  17573. let a = player.cache_.duration; //视频的总时长
  17574. let gklog2 = parseInt(gklog);
  17575. // if(gklog2 == '3'){
  17576. // player.pause()
  17577. // setTimeout(()=>{
  17578. // player.currentTime(gklog2+1)
  17579. // player.play()
  17580. // },1000)
  17581. // }
  17582. console.log(" onPlayerTimeupdate!", gklog);
  17583. console.log(" onPlayerTimeupdate!", gklog2);
  17584. },
  17585. lookVedio(u, i) {
  17586. this.isClickNav = "";
  17587. // this.playerOptions.sources[0].src = u;
  17588. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17589. d.sources[0].src = u;
  17590. this.playerO[this.taskCount] = d;
  17591. this.showType = 0;
  17592. // this.isClickNav = "video" + i;
  17593. this.isClickNav = i;
  17594. this.$forceUpdate();
  17595. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17596. },
  17597. lookText(i, t) {
  17598. this.isClickNav = "";
  17599. // this.text = this.textList[i][t];
  17600. this.text = this.vChapterData[i][t];
  17601. // this.dialogVisible1 = true;
  17602. this.showType = 1;
  17603. // this.isClickNav = "text" + t;
  17604. this.isClickNav = t;
  17605. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17606. },
  17607. lookTools(i, t) {
  17608. this.chapTools = this.chapToolList[i][t];
  17609. this.dialogVisible2 = true;
  17610. },
  17611. async openFile(f,w) {
  17612. this.pptImgUrl = "";
  17613. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17614. if (
  17615. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17616. -1
  17617. ) {
  17618. let _uuurl = await this.checkLink(f);
  17619. this.pptImgUrl =
  17620. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17621. this.showPDF = false;
  17622. this.dialogVisible3 = true;
  17623. } else if (
  17624. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17625. ) {
  17626. this.pptImgUrl = f;
  17627. this.showPDF = true;
  17628. this.dialogVisible3 = true;
  17629. }
  17630. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17631. },
  17632. openTable(f) {
  17633. this.tableJson = JSON.parse(f.works);
  17634. this.dialogVisibleTable2 = true;
  17635. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17636. },
  17637. openWord(f) {
  17638. this.tableJson = JSON.parse(f.works);
  17639. this.dialogVisibleTable3 = true;
  17640. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17641. },
  17642. doUrl(url, i) {
  17643. this.isClickNav = "";
  17644. this.pptImgUrl1 = "";
  17645. this.showType = 2;
  17646. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17647. url = "https://" + url;
  17648. }
  17649. this.pptImgUrl1 = "";
  17650. setTimeout(() => {
  17651. this.pptImgUrl1 = url;
  17652. }, 500);
  17653. // this.isClickNav = "line" + i;
  17654. this.isClickNav = i;
  17655. this.$forceUpdate();
  17656. },
  17657. checkPhoto(f, i) {
  17658. this.showType = 4;
  17659. this.pptImgUrl1 = f.url;
  17660. this.isClickNav = i;
  17661. this.$forceUpdate();
  17662. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17663. },
  17664. async downFile(f, i) {
  17665. this.isClickNav = "";
  17666. this.pptImgUrl1 = "";
  17667. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17668. if (
  17669. a.indexOf(
  17670. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17671. ) != -1
  17672. ) {
  17673. let _uuurl = await this.checkLink(f.url);
  17674. this.pptImgUrl1 =
  17675. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17676. // this.dialogVisible3 = true;
  17677. this.showType = 2;
  17678. } else if (
  17679. this.isAssetTypeAnImage(
  17680. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17681. )
  17682. ) {
  17683. this.showType = 4;
  17684. this.pptImgUrl1 = f.url;
  17685. } else if (
  17686. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17687. "PDF"
  17688. ) {
  17689. this.pptImgUrl1 = f.url;
  17690. // this.dialogVisible3 = true;
  17691. this.showType = 3;
  17692. } else {
  17693. window.open(this.file[i].url);
  17694. }
  17695. // this.isClickNav = "word" + i;
  17696. this.isClickNav = i;
  17697. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17698. },
  17699. downFileList(i) {
  17700. window.open(this.noImgList[i].url);
  17701. },
  17702. openAddWork() {
  17703. this.dialogVisible = true;
  17704. },
  17705. addBzWorks() {
  17706. let params = [
  17707. {
  17708. uid: this.userid,
  17709. cid: this.id,
  17710. stage: this.courseType,
  17711. task: this.taskCount,
  17712. tool: this.toolindex,
  17713. content: JSON.stringify(this.eScore),
  17714. type: 6,
  17715. },
  17716. ];
  17717. this.ajax
  17718. .post(this.$store.state.api + "addCourseWorks", params)
  17719. .then((res) => {
  17720. this.$message({
  17721. message: "提交成功",
  17722. type: "success",
  17723. });
  17724. this.eScore = { eBzText: "", eStar: [] };
  17725. this.studentEvalDialogVisible = false;
  17726. this.selectSWorks();
  17727. })
  17728. .catch((err) => {
  17729. this.$message.error("提交失败");
  17730. console.error(err);
  17731. });
  17732. },
  17733. addBzWorksTeacher() {
  17734. let params = [
  17735. {
  17736. uid: this.sStudent.userid,
  17737. cid: this.id,
  17738. stage: this.courseType,
  17739. task: this.taskCount,
  17740. tool: this.toolindex,
  17741. content: JSON.stringify(this.eScore),
  17742. type: 6,
  17743. },
  17744. ];
  17745. this.ajax
  17746. .post(this.$store.state.api + "addCourseWorks", params)
  17747. .then((res) => {
  17748. this.$message({
  17749. message: "提交成功",
  17750. type: "success",
  17751. });
  17752. this.eScore = { eBzText: "", eStar: [] };
  17753. this.studentEvalDialogVisibleTeacher = false;
  17754. this.selectSWorks();
  17755. })
  17756. .catch((err) => {
  17757. this.$message.error("提交失败");
  17758. console.error(err);
  17759. });
  17760. },
  17761. addStudentAsk() {
  17762. if (!this.radio.length) {
  17763. this.$message.error("请选择选项");
  17764. return;
  17765. }
  17766. for (var i = 0; i < this.askJson.askCount; i++) {
  17767. if (
  17768. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17769. (this.radio[i] !== 0 && !this.radio[i])
  17770. ) {
  17771. this.$message.error("请选择选项");
  17772. return;
  17773. }
  17774. }
  17775. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17776. let params = [
  17777. {
  17778. uid: this.userid,
  17779. cid: this.id,
  17780. stage: this.courseType,
  17781. task: this.taskCount,
  17782. tool: this.toolindex,
  17783. content: JSON.stringify(this.askList),
  17784. type: 2,
  17785. },
  17786. ];
  17787. this.ajax
  17788. .post(this.$store.state.api + "addCourseWorks", params)
  17789. .then((res) => {
  17790. this.$message({
  17791. message: "提交成功",
  17792. type: "success",
  17793. });
  17794. this.askList = [];
  17795. this.dialogVisible5 = false;
  17796. this.selectStudent();
  17797. this.selectSWorks();
  17798. this.selectSLook();
  17799. })
  17800. .catch((err) => {
  17801. this.$message.error("提交失败");
  17802. console.error(err);
  17803. });
  17804. },
  17805. addStudentAskTeacher() {
  17806. if (!this.radio.length) {
  17807. this.$message.error("请选择选项");
  17808. return;
  17809. }
  17810. for (var i = 0; i < this.askJson.askCount; i++) {
  17811. if (
  17812. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17813. (this.radio[i] !== 0 && !this.radio[i])
  17814. ) {
  17815. this.$message.error("请选择选项");
  17816. return;
  17817. }
  17818. }
  17819. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17820. let params = [
  17821. {
  17822. uid: this.sStudent.userid,
  17823. cid: this.id,
  17824. stage: this.courseType,
  17825. task: this.taskCount,
  17826. tool: this.toolindex,
  17827. content: JSON.stringify(this.askList),
  17828. type: 2,
  17829. },
  17830. ];
  17831. this.ajax
  17832. .post(this.$store.state.api + "addCourseWorks", params)
  17833. .then((res) => {
  17834. this.$message({
  17835. message: "提交成功",
  17836. type: "success",
  17837. });
  17838. this.askList = [];
  17839. this.dialogVisible5Teacher = false;
  17840. this.selectStudent();
  17841. this.selectSWorks();
  17842. this.selectSLook();
  17843. })
  17844. .catch((err) => {
  17845. this.$message.error("提交失败");
  17846. console.error(err);
  17847. });
  17848. },
  17849. addStudentTest() {
  17850. if (!this.radio.length) {
  17851. this.$message.error("请选择选项");
  17852. return;
  17853. }
  17854. for (var i = 0; i < this.testJson.testCount; i++) {
  17855. if (
  17856. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17857. (this.radio[i] !== 0 && !this.radio[i])
  17858. ) {
  17859. this.$message.error("请选择选项");
  17860. return;
  17861. }
  17862. }
  17863. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17864. let params = [
  17865. {
  17866. uid: this.userid,
  17867. cid: this.id,
  17868. stage: this.courseType,
  17869. task: this.taskCount,
  17870. tool: this.toolindex,
  17871. content: JSON.stringify(this.askList),
  17872. type: 8,
  17873. },
  17874. ];
  17875. this.ajax
  17876. .post(this.$store.state.api + "addCourseWorks", params)
  17877. .then((res) => {
  17878. this.$message({
  17879. message: "提交成功",
  17880. type: "success",
  17881. });
  17882. this.askList = [];
  17883. this.dialogVisibleChoice = false;
  17884. this.selectStudent();
  17885. this.selectSWorks();
  17886. this.selectSLook();
  17887. })
  17888. .catch((err) => {
  17889. this.$message.error("提交失败");
  17890. console.error(err);
  17891. });
  17892. },
  17893. addStudentTestTeacher() {
  17894. if (!this.radio.length) {
  17895. this.$message.error("请选择选项");
  17896. return;
  17897. }
  17898. for (var i = 0; i < this.testJson.testCount; i++) {
  17899. if (
  17900. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17901. (this.radio[i] !== 0 && !this.radio[i])
  17902. ) {
  17903. this.$message.error("请选择选项");
  17904. return;
  17905. }
  17906. }
  17907. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17908. let params = [
  17909. {
  17910. uid: this.sStudent.userid,
  17911. cid: this.id,
  17912. stage: this.courseType,
  17913. task: this.taskCount,
  17914. tool: this.toolindex,
  17915. content: JSON.stringify(this.askList),
  17916. type: 8,
  17917. },
  17918. ];
  17919. this.ajax
  17920. .post(this.$store.state.api + "addCourseWorks", params)
  17921. .then((res) => {
  17922. this.$message({
  17923. message: "提交成功",
  17924. type: "success",
  17925. });
  17926. this.askList = [];
  17927. this.dialogVisibleChoiceTeacher = false;
  17928. this.selectStudent();
  17929. this.selectSWorks();
  17930. this.selectSLook();
  17931. })
  17932. .catch((err) => {
  17933. this.$message.error("提交失败");
  17934. console.error(err);
  17935. });
  17936. },
  17937. addWork() {
  17938. if (this.studyJuri[0].content == "") {
  17939. this.$message.error("请将信息填写完整");
  17940. return;
  17941. } else if (this.studyJuri[0].cover.length == 0) {
  17942. this.$message.error("请将信息填写完整");
  17943. return;
  17944. } else if (this.studyJuri[0].upVedio.length == 0) {
  17945. this.$message.error("请将信息填写完整");
  17946. return;
  17947. }
  17948. if (this.isNoHomeWork) {
  17949. this.$confirm(
  17950. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17951. "提示",
  17952. {
  17953. confirmButtonText: "确定",
  17954. cancelButtonText: "取消",
  17955. type: "warning",
  17956. }
  17957. )
  17958. .then(() => {
  17959. let params = [
  17960. {
  17961. uid: this.userid,
  17962. cid: this.id,
  17963. stage: this.courseType,
  17964. task: this.taskCount,
  17965. content: JSON.stringify(this.studyJuri),
  17966. },
  17967. ];
  17968. this.ajax
  17969. .post(this.$store.state.api + "addWorks", params)
  17970. .then((res) => {
  17971. this.$message({
  17972. message: "提交成功",
  17973. type: "success",
  17974. });
  17975. this.isNoHomeWork = true;
  17976. this.dialogVisible = false;
  17977. })
  17978. .catch((err) => {
  17979. this.$message.error("提交失败");
  17980. console.error(err);
  17981. });
  17982. })
  17983. .catch(() => {});
  17984. } else {
  17985. let params = [
  17986. {
  17987. uid: this.userid,
  17988. cid: this.id,
  17989. stage: this.courseType,
  17990. task: this.taskCount,
  17991. content: JSON.stringify(this.studyJuri),
  17992. },
  17993. ];
  17994. this.ajax
  17995. .post(this.$store.state.api + "addWorks", params)
  17996. .then((res) => {
  17997. this.$message({
  17998. message: "提交成功",
  17999. type: "success",
  18000. });
  18001. this.isNoHomeWork = true;
  18002. this.dialogVisible = false;
  18003. })
  18004. .catch((err) => {
  18005. this.$message.error("提交失败");
  18006. console.error(err);
  18007. });
  18008. }
  18009. },
  18010. selectCount() {
  18011. let params = {
  18012. cid: this.id,
  18013. chid: this.courseType,
  18014. uid: this.userid,
  18015. };
  18016. this.ajax
  18017. .get(this.$store.state.api + "selectToolsCount", params)
  18018. .then((res) => {
  18019. for (var i = 0; i < res.data[0].length; i++) {
  18020. if (res.data[0][i].tools == 1) {
  18021. this.wbCount = res.data[0][i].count;
  18022. } else if (res.data[0][i].tools == 2) {
  18023. this.wordCount = res.data[0][i].count;
  18024. } else if (res.data[0][i].tools == 3) {
  18025. this.mindCount = res.data[0][i].count;
  18026. } else if (res.data[0][i].tools == 4) {
  18027. this.askCount = res.data[0][i].count;
  18028. } else if (res.data[0][i].tools == 6) {
  18029. this.noteCount = res.data[0][i].count;
  18030. } else if (res.data[0][i].tools == 7) {
  18031. this.mindNetWorkCount = res.data[0][i].count;
  18032. } else if (res.data[0][i].tools == 8) {
  18033. this.libraryCount = res.data[0][i].count;
  18034. } else if (res.data[0][i].tools == 16) {
  18035. this.workCount = res.data[0][i].count;
  18036. } else if (res.data[0][i].tools == 10) {
  18037. this.timeCount = res.data[0][i].count;
  18038. } else if (res.data[0][i].tools == 15) {
  18039. this.answerCount = res.data[0][i].count;
  18040. } else if (res.data[0][i].tools == 18) {
  18041. this.trainCount = res.data[0][i].count;
  18042. }
  18043. }
  18044. })
  18045. .catch((err) => {
  18046. console.error(err);
  18047. });
  18048. },
  18049. openTools(t, i, index, c, sName,id) {
  18050. var z = JSON.parse(c);
  18051. this.noteName = sName;
  18052. if (t == 4) {
  18053. this.radio = [];
  18054. this.isAnswer = false;
  18055. let b = z[0].anwer;
  18056. this.radio = b;
  18057. this.askJson = z[0].askJson;
  18058. this.isAnswer = true;
  18059. this.dialogVisible5 = true;
  18060. } else if (t == 45) {
  18061. this.radio = [];
  18062. this.isAnswer = false;
  18063. let b = z[0].anwer;
  18064. this.radio = b;
  18065. this.testJson = z[0].testJson;
  18066. this.isAnswer = true;
  18067. this.dialogVisibleChoice = true;
  18068. }else if(t == 69){
  18069. this.oldEnglishJson1 = {}
  18070. this.oldEnglishJson = {}
  18071. this.englishList1 = {}
  18072. this.newEngIndex = -1;
  18073. this.isNoUserid = false;
  18074. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18075. .toolChoose[i].englishList;
  18076. this.oldEnglishJson = z;
  18077. this.engWid = id;
  18078. this.newEnglishList = { engTitle:"",engText:"" }
  18079. this.newEnglishList1 = []
  18080. this.selectEngC(id,z);
  18081. }else if(t == 62){
  18082. this.videoType = 1;
  18083. this.videoJson = {};
  18084. this.videoJson = JSON.parse(c);
  18085. // this.videoJson =
  18086. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18087. // index
  18088. // ].toolChoose[i].videoJson;
  18089. this.dialogVisibleVideo = true;
  18090. //this.dialog
  18091. }
  18092. // else if (t == 15) {
  18093. // this.answerQ = "";
  18094. // this.questionAnswer = "";
  18095. // this.answerQ = z[0].answerTitle;
  18096. // this.questionAnswer = z[0].answer;
  18097. // this.answerDialogVisible = true;
  18098. // }
  18099. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18100. },
  18101. fastText(p, t) {
  18102. if (t == 1) {
  18103. this.commentText += p;
  18104. } else {
  18105. this.eScore.eBzText += p;
  18106. }
  18107. },
  18108. addTools(t, i, index) {
  18109. var a = 0;
  18110. // this.taskCount = index;
  18111. this.toolindex = i;
  18112. if (t == 1) {
  18113. if (this.wbCount > 0) {
  18114. this.updateCount(this.wbCount, t);
  18115. } else {
  18116. this.wbCount++;
  18117. a = this.wbCount;
  18118. this.toolsCount(a, t);
  18119. }
  18120. window.parent.postMessage(
  18121. {
  18122. tools: "1",
  18123. cid: this.id,
  18124. stage: this.courseType,
  18125. task: this.taskCount,
  18126. tool: i,
  18127. },
  18128. "*"
  18129. );
  18130. } else if (t == 2) {
  18131. if (this.wordCount > 0) {
  18132. this.updateCount(this.wordCount, t);
  18133. } else {
  18134. this.wordCount++;
  18135. a = this.wordCount;
  18136. this.toolsCount(a, t);
  18137. }
  18138. window.parent.postMessage({ tools: "2" }, "*");
  18139. } else if (t == 3) {
  18140. if (this.mindCount > 0) {
  18141. this.updateCount(this.mindCount, t);
  18142. } else {
  18143. this.mindCount++;
  18144. a = this.mindCount;
  18145. this.toolsCount(a, t);
  18146. }
  18147. window.parent.postMessage(
  18148. {
  18149. tools: "3",
  18150. cid: this.id,
  18151. stage: this.courseType,
  18152. task: this.taskCount,
  18153. tool: i,
  18154. },
  18155. "*"
  18156. );
  18157. } else if (t == 4) {
  18158. this.radio = [];
  18159. this.noteName = "";
  18160. this.isAnswer = false;
  18161. if (this.askCount > 0) {
  18162. this.updateCount(this.askCount, t);
  18163. } else {
  18164. this.askCount++;
  18165. a = this.askCount;
  18166. this.toolsCount(a, t);
  18167. }
  18168. if (!this.dialogVisible2) {
  18169. this.askJson.askJson =
  18170. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18171. index
  18172. ].toolChoose[i].askJson;
  18173. this.askJson.askTitle =
  18174. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18175. index
  18176. ].toolChoose[i].askTitle;
  18177. this.askJson.askCount =
  18178. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18179. index
  18180. ].toolChoose[i].askCount;
  18181. } else {
  18182. this.askJson.askJson = this.chapTools.askJson.askJson;
  18183. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18184. this.askJson.askCount = this.chapTools.askJson.askCount;
  18185. }
  18186. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18187. if (this.askJson.askJson[k].type == "2") {
  18188. this.radio.push([]);
  18189. } else {
  18190. this.radio.push("");
  18191. }
  18192. }
  18193. this.dialogVisible5 = true;
  18194. // window.parent.postMessage({ tools: "4" }, "*");
  18195. } else if (t == 45) {
  18196. this.noteName = "";
  18197. this.radio = [];
  18198. this.isAnswer = false;
  18199. if (this.askCount > 0) {
  18200. this.updateCount(this.askCount, t);
  18201. } else {
  18202. this.askCount++;
  18203. a = this.askCount;
  18204. this.toolsCount(a, t);
  18205. }
  18206. this.testJson =
  18207. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18208. index
  18209. ].toolChoose[i].testJson;
  18210. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18211. if (this.testJson.testJson[k].type == "2") {
  18212. this.radio.push([]);
  18213. } else {
  18214. this.radio.push("");
  18215. }
  18216. }
  18217. this.dialogVisibleChoice = true;
  18218. // window.parent.postMessage({ tools: "4" }, "*");
  18219. } else if (t == 5) {
  18220. if (this.scoreCount > 0) {
  18221. this.updateCount(this.scoreCount, t);
  18222. } else {
  18223. this.scoreCount++;
  18224. a = this.scoreCount;
  18225. this.toolsCount(a, t);
  18226. }
  18227. this.dialogVisible4 = true;
  18228. // window.parent.postMessage({ tools: "5" }, "*");
  18229. } else if (t == 6) {
  18230. if (this.noteCount > 0) {
  18231. this.updateCount(this.noteCount, t);
  18232. } else {
  18233. this.noteCount++;
  18234. a = this.noteCount;
  18235. this.toolsCount(a, t);
  18236. }
  18237. window.parent.postMessage(
  18238. {
  18239. tools: "6",
  18240. cid: this.id,
  18241. stage: this.courseType,
  18242. task: this.taskCount,
  18243. tool: i,
  18244. },
  18245. "*"
  18246. );
  18247. } else if (t == 7) {
  18248. if (this.mindNetWorkCount > 0) {
  18249. this.updateCount(this.mindNetWorkCount, t);
  18250. } else {
  18251. this.mindNetWorkCount++;
  18252. a = this.mindNetWorkCount;
  18253. this.toolsCount(a, t);
  18254. }
  18255. window.parent.postMessage(
  18256. {
  18257. tools: "7",
  18258. cid: this.id,
  18259. stage: this.courseType,
  18260. task: this.taskCount,
  18261. tool: i,
  18262. },
  18263. "*"
  18264. );
  18265. } else if (t == 16) {
  18266. if (this.workCount > 0) {
  18267. this.updateCount(this.workCount, t);
  18268. } else {
  18269. this.workCount++;
  18270. a = this.workCount;
  18271. this.toolsCount(a, t);
  18272. }
  18273. this.dialogVisible = true;
  18274. } else if (t == 50) {
  18275. if (this.tType == 2) {
  18276. this.$message.error("不支持学生使用");
  18277. return;
  18278. }
  18279. this.plworkFile = [];
  18280. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18281. if (!this.uploadCid) {
  18282. this.$message.error(
  18283. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18284. );
  18285. return;
  18286. }
  18287. // this.uploadCid =
  18288. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18289. // index
  18290. // ].toolChoose[i].uploadJson[0];
  18291. this.selectUploadStudent(2);
  18292. } else if (t == 8) {
  18293. if (this.libraryCount > 0) {
  18294. this.updateCount(this.libraryCount, t);
  18295. } else {
  18296. this.libraryCount++;
  18297. a = this.libraryCount;
  18298. this.toolsCount(a, t);
  18299. }
  18300. window.parent.postMessage({ tools: "8" }, "*");
  18301. } else if (t == 17) {
  18302. if (this.libraryCount > 0) {
  18303. this.updateCount(this.libraryCount, t);
  18304. } else {
  18305. this.libraryCount++;
  18306. a = this.libraryCount;
  18307. this.toolsCount(a, t);
  18308. }
  18309. window.parent.postMessage({ tools: "17" }, "*");
  18310. } else if (t == 18) {
  18311. if (this.trainCount > 0) {
  18312. this.updateCount(this.trainCount, t);
  18313. } else {
  18314. this.trainCount++;
  18315. a = this.trainCount;
  18316. this.toolsCount(a, t);
  18317. }
  18318. window.parent.postMessage({ tools: "18" }, "*");
  18319. } else if (t == 10) {
  18320. if (this.timeCount > 0) {
  18321. this.updateCount(this.timeCount, t);
  18322. } else {
  18323. this.timeCount++;
  18324. a = this.timeCount;
  18325. this.toolsCount(a, t);
  18326. }
  18327. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18328. .taskJson[index].toolChoose[i].preTime
  18329. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18330. .toolChoose[i].preTime
  18331. : "";
  18332. this.timeDialogVisible = true;
  18333. } else if (t == 15) {
  18334. this.answerQ = "";
  18335. this.questionAnswer = "";
  18336. if (this.answerCount > 0) {
  18337. this.updateCount(this.answerCount, t);
  18338. } else {
  18339. this.answerCount++;
  18340. a = this.answerCount;
  18341. this.toolsCount(a, t);
  18342. }
  18343. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18344. .taskJson[index].toolChoose[i].answerQ
  18345. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18346. .toolChoose[i].answerQ
  18347. : "";
  18348. this.answerDialogVisible = true;
  18349. } else if (t == 21) {
  18350. window.parent.postMessage({ tools: "21" }, "*");
  18351. } else if (t == 22) {
  18352. window.parent.postMessage({ tools: "22" }, "*");
  18353. } else if (t == 23) {
  18354. window.parent.postMessage({ tools: "23" }, "*");
  18355. } else if (t == 24) {
  18356. window.parent.postMessage({ tools: "24" }, "*");
  18357. } else if (t == 25) {
  18358. window.parent.postMessage({ tools: "25" }, "*");
  18359. } else if (t == 31) {
  18360. window.parent.postMessage({ tools: "31" }, "*");
  18361. } else if (t == 28) {
  18362. window.parent.postMessage({ tools: "28" }, "*");
  18363. } else if (t == 37) {
  18364. window.parent.postMessage({ tools: "37" }, "*");
  18365. } else if (t == 38) {
  18366. window.parent.postMessage({ tools: "38" }, "*");
  18367. } else if (t == 39) {
  18368. window.parent.postMessage({ tools: "39" }, "*");
  18369. } else if (t == 32) {
  18370. window.parent.postMessage({ tools: "32" }, "*");
  18371. } else if (t == 66) {
  18372. window.parent.postMessage({ tools: "66" }, "*");
  18373. } else if (t == 67) {
  18374. window.parent.postMessage({ tools: "67" }, "*");
  18375. } else if (t == 68) {
  18376. window.parent.postMessage({ tools: "68" }, "*");
  18377. } else if (t == 57) {
  18378. // window.parent.postMessage({ tools: "57" }, "*");
  18379. window.parent.postMessage(
  18380. {
  18381. tools: "57u",
  18382. cid: this.id,
  18383. stage: this.courseType,
  18384. task: this.taskCount,
  18385. tool: i,
  18386. },
  18387. "*"
  18388. );
  18389. } else if (t == 58) {
  18390. window.parent.postMessage({ tools: "58" }, "*");
  18391. } else if (t == 59) {
  18392. window.parent.postMessage({ tools: "59" }, "*");
  18393. } else if (t == 60) {
  18394. window.parent.postMessage({ tools: "60" }, "*");
  18395. } else if (t == 61) {
  18396. window.parent.postMessage({ tools: "61" }, "*");
  18397. } else if (t == 63) {
  18398. window.parent.postMessage({ tools: "63" }, "*");
  18399. } else if (t == 71) {
  18400. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  18401. // this.$message.error("该工具不可使用");
  18402. // return
  18403. // }
  18404. window.parent.postMessage({ tools: "71" }, "*");
  18405. } else if (t == 69) {
  18406. if (this.worksStudent[i].length) {
  18407. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18408. if (this.userid == this.worksStudent[i][k].userid) {
  18409. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18410. break;
  18411. } else {
  18412. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18413. }
  18414. }
  18415. } else {
  18416. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18417. }
  18418. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18419. .taskJson[index].toolChoose[i].englishList
  18420. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18421. .toolChoose[i].englishList
  18422. : {};
  18423. this.englishToolIndex = i;
  18424. this.myAnList = this.myAnswerList1;
  18425. this.engDialogVisible = true;
  18426. } else if (t == 70) {
  18427. if (this.worksStudent[i].length) {
  18428. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18429. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18430. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18431. break;
  18432. } else {
  18433. this.englishVoiceJsonWork = [];
  18434. }
  18435. }
  18436. } else {
  18437. this.englishVoiceJsonWork = [];
  18438. }
  18439. let englishVoiceJson = {}
  18440. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18441. .taskJson[index].toolChoose[i].englishVoiceJson
  18442. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18443. .toolChoose[i].englishVoiceJson
  18444. : {};
  18445. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18446. this.EnglishVoiceDialog = true;
  18447. } else if (t == 65) {
  18448. if (this.tType == 2) {
  18449. this.$message.error("不支持学生使用");
  18450. return;
  18451. }
  18452. this.uploadCid = this.tcid;
  18453. if (!this.uploadCid) {
  18454. this.$message.error(
  18455. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18456. );
  18457. return;
  18458. }
  18459. this.selectPickStudent();
  18460. } else if (t == 26) {
  18461. window.parent.postMessage(
  18462. {
  18463. tools: "26",
  18464. cid: this.id,
  18465. stage: this.courseType,
  18466. task: this.taskCount,
  18467. tool: i,
  18468. },
  18469. "*"
  18470. );
  18471. } else if (t == 40) {
  18472. if (this.evalCount > 0) {
  18473. this.updateCount(this.evalCount, t);
  18474. } else {
  18475. this.evalCount++;
  18476. a = this.evalCount;
  18477. this.toolsCount(a, t);
  18478. }
  18479. this.eScore = { eBzText: "", eStar: [] };
  18480. if (this.worksStudent[i].length) {
  18481. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18482. if (this.userid == this.worksStudent[i][k].userid) {
  18483. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18484. this.rateJson =
  18485. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18486. index
  18487. ].toolChoose[i].rateJson;
  18488. break;
  18489. } else {
  18490. this.rateJson =
  18491. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18492. index
  18493. ].toolChoose[i].rateJson;
  18494. }
  18495. }
  18496. } else {
  18497. this.rateJson =
  18498. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18499. index
  18500. ].toolChoose[i].rateJson;
  18501. }
  18502. this.isStar = false;
  18503. this.studentEvalDialogVisible = true;
  18504. } else if (t == 41) {
  18505. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18506. .taskJson[index].toolChoose[i].selectJson
  18507. ? JSON.parse(
  18508. JSON.stringify(
  18509. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18510. index
  18511. ].toolChoose[i].selectJson
  18512. )
  18513. )
  18514. : { url: "", select: [], answer: [] };
  18515. if (this.worksStudent[i].length) {
  18516. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18517. if (this.userid == this.worksStudent[i][k].userid) {
  18518. var a = this.worksStudent[i][k].works.split(",");
  18519. for (var ki = 0; ki < a.length; ki++) {
  18520. a[ki] = parseInt(a[ki]);
  18521. }
  18522. this.selectAnswer = {
  18523. answer: a,
  18524. stu: this.worksStudent[i][k].sName,
  18525. };
  18526. break;
  18527. } else {
  18528. this.selectAnswer = { answer: [], stu: "" };
  18529. }
  18530. }
  18531. } else {
  18532. this.selectAnswer = { answer: [], stu: "" };
  18533. }
  18534. this.isSelect = false;
  18535. this.dialogVisibleSelect = true;
  18536. } else if (t == 44) {
  18537. window.parent.postMessage({ tools: "44" }, "*");
  18538. } else if (t == 47) {
  18539. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18540. .taskJson[index].toolChoose[i].sentenceList
  18541. ? JSON.parse(
  18542. JSON.stringify(
  18543. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18544. index
  18545. ].toolChoose[i].sentenceList
  18546. )
  18547. )
  18548. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18549. for (var q = 0; q < this.sentenceList.length; q++) {
  18550. this.sentenceList[q].chooseSenList = [];
  18551. this.sentenceList[q].addChangeSen = [];
  18552. this.sentenceList[q].addChangeSen = JSON.parse(
  18553. JSON.stringify(this.sentenceList[q].addSentence)
  18554. );
  18555. this.sentenceList[q].chooseSenList.length =
  18556. this.sentenceList[q].rightAnswer.length;
  18557. }
  18558. this.dialogVisibleSentence = true;
  18559. } else if (t == 48) {
  18560. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18561. .taskJson[index].toolChoose[i].tableJson
  18562. ? JSON.parse(
  18563. JSON.stringify(
  18564. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18565. index
  18566. ].toolChoose[i].tableJson
  18567. )
  18568. )
  18569. : { text: "" };
  18570. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18571. if (this.worksStudent[i].length) {
  18572. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18573. if (this.userid == this.worksStudent[i][k].userid) {
  18574. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18575. break;
  18576. }
  18577. }
  18578. }
  18579. this.dialogVisibleTable = true;
  18580. } else if (t == 52) {
  18581. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18582. .taskJson[index].toolChoose[i].wordJson
  18583. ? JSON.parse(
  18584. JSON.stringify(
  18585. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18586. index
  18587. ].toolChoose[i].wordJson
  18588. )
  18589. )
  18590. : { text: "" };
  18591. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18592. if (this.worksStudent[i].length) {
  18593. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18594. if (this.userid == this.worksStudent[i][k].userid) {
  18595. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18596. break;
  18597. }
  18598. }
  18599. }
  18600. this.dialogVisibleWord = true;
  18601. } else if (t == 49) {
  18602. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18603. return
  18604. }
  18605. this.groupJson =
  18606. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18607. index
  18608. ].toolChoose[i].groupJson;
  18609. this.islock = this.groupJson.islock == 1 ? true : false;
  18610. this.dialogVisibleGroup = true;
  18611. } else if (t == 62) {
  18612. this.videoType = 0;
  18613. this.videoJson = {};
  18614. this.videoJson =
  18615. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18616. index
  18617. ].toolChoose[i].videoJson;
  18618. this.dialogVisibleVideo = true;
  18619. }
  18620. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18621. },
  18622. teacherWorkSubmit(t, i, index, s) {
  18623. this.sStudent = s;
  18624. this.toolindex = i;
  18625. this.sTool = t;
  18626. if (this.tType !== "1" && this.tType !== "4") {
  18627. return;
  18628. }
  18629. if (t == 16 || t == 32 || t == 50) {
  18630. this.dialogVisibleWorks = true;
  18631. } else if (t == 15) {
  18632. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18633. .taskJson[index].toolChoose[i].answerQ
  18634. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18635. .toolChoose[i].answerQ
  18636. : "";
  18637. this.questionAnswer = "";
  18638. this.answerDialogVisibleTeacher = true; //问答
  18639. } else if (t == 52) {
  18640. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18641. .taskJson[index].toolChoose[i].wordJson
  18642. ? JSON.parse(
  18643. JSON.stringify(
  18644. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18645. index
  18646. ].toolChoose[i].wordJson
  18647. )
  18648. )
  18649. : { text: "" };
  18650. if (this.worksStudent[i].length) {
  18651. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18652. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18653. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18654. break;
  18655. }
  18656. }
  18657. }
  18658. this.dialogVisibleWordTeacher = true; //文档
  18659. } else if (t == 4) {
  18660. this.radio = [];
  18661. this.noteName = "";
  18662. this.isAnswer = false;
  18663. if (this.askCount > 0) {
  18664. this.updateCount(this.askCount, t);
  18665. } else {
  18666. this.askCount++;
  18667. a = this.askCount;
  18668. this.toolsCount(a, t);
  18669. }
  18670. if (!this.dialogVisible2) {
  18671. this.askJson.askJson =
  18672. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18673. index
  18674. ].toolChoose[i].askJson;
  18675. this.askJson.askTitle =
  18676. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18677. index
  18678. ].toolChoose[i].askTitle;
  18679. this.askJson.askCount =
  18680. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18681. index
  18682. ].toolChoose[i].askCount;
  18683. } else {
  18684. this.askJson.askJson = this.chapTools.askJson.askJson;
  18685. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18686. this.askJson.askCount = this.chapTools.askJson.askCount;
  18687. }
  18688. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18689. if (this.askJson.askJson[k].type == "2") {
  18690. this.radio.push([]);
  18691. } else {
  18692. this.radio.push("");
  18693. }
  18694. }
  18695. this.dialogVisible5Teacher = true;
  18696. } else if (t == 45) {
  18697. this.noteName = "";
  18698. this.radio = [];
  18699. this.isAnswer = false;
  18700. if (this.askCount > 0) {
  18701. this.updateCount(this.askCount, t);
  18702. } else {
  18703. this.askCount++;
  18704. a = this.askCount;
  18705. this.toolsCount(a, t);
  18706. }
  18707. this.testJson =
  18708. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18709. index
  18710. ].toolChoose[i].testJson;
  18711. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18712. if (this.testJson.testJson[k].type == "2") {
  18713. this.radio.push([]);
  18714. } else {
  18715. this.radio.push("");
  18716. }
  18717. }
  18718. this.dialogVisibleChoiceTeacher = true;
  18719. } else if (t == 41) {
  18720. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18721. .taskJson[index].toolChoose[i].selectJson
  18722. ? JSON.parse(
  18723. JSON.stringify(
  18724. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18725. index
  18726. ].toolChoose[i].selectJson
  18727. )
  18728. )
  18729. : { url: "", select: [], answer: [] };
  18730. if (this.worksStudent[i].length) {
  18731. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18732. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18733. var a = this.worksStudent[i][k].works.split(",");
  18734. for (var ki = 0; ki < a.length; ki++) {
  18735. a[ki] = parseInt(a[ki]);
  18736. }
  18737. this.selectAnswer = {
  18738. answer: a,
  18739. stu: this.worksStudent[i][k].sName,
  18740. };
  18741. break;
  18742. } else {
  18743. this.selectAnswer = { answer: [], stu: "" };
  18744. }
  18745. }
  18746. } else {
  18747. this.selectAnswer = { answer: [], stu: "" };
  18748. }
  18749. this.isSelect = false;
  18750. this.dialogVisibleSelectTeacher = true;
  18751. } else if (t == 47) {
  18752. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18753. .taskJson[index].toolChoose[i].sentenceList
  18754. ? JSON.parse(
  18755. JSON.stringify(
  18756. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18757. index
  18758. ].toolChoose[i].sentenceList
  18759. )
  18760. )
  18761. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18762. for (var q = 0; q < this.sentenceList.length; q++) {
  18763. this.sentenceList[q].chooseSenList = [];
  18764. this.sentenceList[q].addChangeSen = [];
  18765. this.sentenceList[q].addChangeSen = JSON.parse(
  18766. JSON.stringify(this.sentenceList[q].addSentence)
  18767. );
  18768. this.sentenceList[q].chooseSenList.length =
  18769. this.sentenceList[q].rightAnswer.length;
  18770. }
  18771. this.dialogVisibleSentenceTeacher = true;
  18772. } else if (t == 48) {
  18773. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18774. .taskJson[index].toolChoose[i].tableJson
  18775. ? JSON.parse(
  18776. JSON.stringify(
  18777. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18778. index
  18779. ].toolChoose[i].tableJson
  18780. )
  18781. )
  18782. : { text: "" };
  18783. if (this.worksStudent[i].length) {
  18784. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18785. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18786. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18787. break;
  18788. }
  18789. }
  18790. }
  18791. this.dialogVisibleTableTeacher = true;
  18792. } else if (t == 40) {
  18793. if (this.evalCount > 0) {
  18794. this.updateCount(this.evalCount, t);
  18795. } else {
  18796. this.evalCount++;
  18797. a = this.evalCount;
  18798. this.toolsCount(a, t);
  18799. }
  18800. this.eScore = { eBzText: "", eStar: [] };
  18801. if (this.worksStudent[i].length) {
  18802. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18803. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18804. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18805. this.rateJson =
  18806. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18807. index
  18808. ].toolChoose[i].rateJson;
  18809. break;
  18810. } else {
  18811. this.rateJson =
  18812. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18813. index
  18814. ].toolChoose[i].rateJson;
  18815. }
  18816. }
  18817. } else {
  18818. this.rateJson =
  18819. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18820. index
  18821. ].toolChoose[i].rateJson;
  18822. }
  18823. this.isStar = false;
  18824. this.studentEvalDialogVisibleTeacher = true;
  18825. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18826. window.parent.postMessage(
  18827. {
  18828. tools: t + "teacher",
  18829. cid: this.id,
  18830. stage: this.courseType,
  18831. task: this.taskCount,
  18832. tool: i,
  18833. student: this.sStudent,
  18834. },
  18835. "*"
  18836. );
  18837. }
  18838. },
  18839. openCocoPi(tool, i, uid, uname) {
  18840. let student = {
  18841. userid: uid,
  18842. student: uname,
  18843. };
  18844. if (tool == 57) {
  18845. window.parent.postMessage(
  18846. {
  18847. tools: tool + "teacher",
  18848. cid: this.id,
  18849. stage: this.courseType,
  18850. task: this.taskCount,
  18851. tool: i,
  18852. student: student,
  18853. },
  18854. "*"
  18855. );
  18856. }
  18857. },
  18858. setRightAnswer(s, i, j) {
  18859. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18860. if (
  18861. this.sentenceList[i].chooseSenList[q] == undefined ||
  18862. this.sentenceList[i].chooseSenList[q] == ""
  18863. ) {
  18864. this.sentenceList[i].chooseSenList[q] = s;
  18865. this.sentenceList[i].addChangeSen[j] = "";
  18866. break;
  18867. }
  18868. }
  18869. this.$forceUpdate();
  18870. },
  18871. returnCard(r, i, j) {
  18872. var a = this.sentenceList[i].addSentence.indexOf(r);
  18873. this.sentenceList[i].chooseSenList[j] = "";
  18874. this.sentenceList[i].addChangeSen[a] = r;
  18875. this.$forceUpdate();
  18876. },
  18877. // addSentenceTool() {
  18878. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18879. // this.taskCount
  18880. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18881. // this.sentenceList = [
  18882. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18883. // ];
  18884. // this.dialogVisibleSentence = false;
  18885. // },
  18886. toolsCount(a, t) {
  18887. let params = {
  18888. cid: this.id,
  18889. chid: this.courseType,
  18890. uid: this.userid,
  18891. tid: t,
  18892. count: a,
  18893. };
  18894. this.ajax
  18895. .get(this.$store.state.api + "insertToolsCount", params)
  18896. .then((res) => {
  18897. this.selectCount();
  18898. })
  18899. .catch((err) => {
  18900. console.error(err);
  18901. });
  18902. },
  18903. updateCount(c, t) {
  18904. c++;
  18905. let params = {
  18906. cid: this.id,
  18907. chid: this.courseType,
  18908. uid: this.userid,
  18909. tid: t,
  18910. count: c,
  18911. };
  18912. this.ajax
  18913. .get(this.$store.state.api + "updateToolsCount", params)
  18914. .then((res) => {
  18915. this.selectCount();
  18916. })
  18917. .catch((err) => {
  18918. console.error(err);
  18919. });
  18920. },
  18921. checkEva() {
  18922. if (this.evalua != "") {
  18923. for (var i = 0; i < this.evaJuri.length; i++) {
  18924. if (this.evalua == this.evaJuri[i].id) {
  18925. this.eTitle = this.evaJuri[i].title;
  18926. this.eJson = JSON.parse(this.evaJuri[i].content);
  18927. }
  18928. }
  18929. this.$forceUpdate();
  18930. setTimeout(() => {
  18931. this.setMindData();
  18932. }, 0);
  18933. }
  18934. },
  18935. selectEva() {
  18936. let params = {
  18937. oid: this.oid,
  18938. };
  18939. this.ajax
  18940. .get(this.$store.state.api + "selectAllEvaluation", params)
  18941. .then((res) => {
  18942. this.evaJuri = res.data[0];
  18943. })
  18944. .catch((err) => {
  18945. console.error(err);
  18946. });
  18947. },
  18948. setMindData() {
  18949. this.data.data = [];
  18950. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18951. let _eJson = Object.keys(this.eJson);
  18952. let _e = this.eJson;
  18953. for (let i = 0; i < _eJson.length; i++) {
  18954. let element = _e[_eJson[i]];
  18955. this.data.data.push({
  18956. id: element.id,
  18957. parentid: "root",
  18958. topic: element.name,
  18959. });
  18960. let _eJsonc = Object.keys(element.child);
  18961. let _e2 = element.child;
  18962. for (let j = 0; j < _eJsonc.length; j++) {
  18963. let _ec = _e2[_eJsonc[j]];
  18964. this.data.data.push({
  18965. id: _ec.id,
  18966. parentid: element.id,
  18967. topic: _ec.name,
  18968. });
  18969. let _eJsonz = Object.keys(_ec.child);
  18970. let _e3 = _ec.child;
  18971. for (let z = 0; z < _eJsonz.length; z++) {
  18972. let _ez = _e3[_eJsonz[z]];
  18973. this.data.data.push({
  18974. id: _ez.id,
  18975. parentid: _ec.id,
  18976. topic: _ez.name,
  18977. });
  18978. }
  18979. }
  18980. }
  18981. this.$forceUpdate();
  18982. },
  18983. checkFileFull(type, url) {
  18984. this.fullDialogVisible = true;
  18985. this.fulltype = type;
  18986. this.fullUrl = url;
  18987. },
  18988. async checkFileFull1(t, f) {
  18989. this.fullDialogVisible = true;
  18990. if (t == 6) {
  18991. this.fulltype = 1;
  18992. this.fullUrl = JSON.parse(JSON.stringify(f));
  18993. } else if (t == 8) {
  18994. this.fulltype = 2;
  18995. this.fullUrl = f.url;
  18996. } else if (
  18997. t == 3 &&
  18998. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18999. "PDF"
  19000. ) {
  19001. this.fulltype = 3;
  19002. this.fullUrl = f.url;
  19003. } else if (t == 3) {
  19004. this.fulltype = 2;
  19005. let _uuurl = await this.checkLink(f.url);
  19006. this.fullUrl =
  19007. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19008. }
  19009. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19010. },
  19011. openSname(n, id, i, uid) {
  19012. this.snameWid = id;
  19013. this.worksSName = n;
  19014. this.worksSid = uid == n ? "" : uid;
  19015. this.toolindex = i;
  19016. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19017. if (!this.uploadCid) {
  19018. this.$message.error(
  19019. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19020. );
  19021. return;
  19022. }
  19023. this.selectUploadStudent(1);
  19024. },
  19025. updateName() {
  19026. let params = {
  19027. n: this.worksSName,
  19028. cid: this.snameWid,
  19029. };
  19030. this.ajax
  19031. .get(this.$store.state.api + "updateCourseWorksName", params)
  19032. .then((res) => {
  19033. this.$message({
  19034. message: "修改成功",
  19035. type: "success",
  19036. });
  19037. this.dialogVisibleSname = false;
  19038. this.getCourseDetail(2);
  19039. this.snameWid = "";
  19040. this.worksSName = "";
  19041. })
  19042. .catch((err) => {
  19043. console.error(err);
  19044. });
  19045. },
  19046. downloadFile2(f) {
  19047. // const loading = this.$loading.service({
  19048. // background: "rgba(255, 255, 255, 0.7)",
  19049. // target: document.body,
  19050. // text: "文件加载中...",
  19051. // });
  19052. // let url2 = f.url;
  19053. // let _url2 = "";
  19054. // if (
  19055. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19056. // ) {
  19057. // _url2 = url2.split(
  19058. // "https://view.officeapps.live.com/op/view.aspx?src="
  19059. // )[1];
  19060. // } else {
  19061. // _url2 = url2;
  19062. // }
  19063. // let params = {
  19064. // url: _url2,
  19065. // name: f.name,
  19066. // };
  19067. // this.ajax
  19068. // .get(this.$store.state.api + "download", params)
  19069. // .then((res) => {
  19070. // loading.close();
  19071. // let content = res.data.data.data;
  19072. // let ab = new ArrayBuffer(content.length);
  19073. // let view = new Uint8Array(ab);
  19074. // for (var i = 0; i < content.length; ++i) {
  19075. // view[i] = content[i];
  19076. // }
  19077. // let elink = document.createElement("a");
  19078. // elink.download = f.name;
  19079. // elink.style.display = "none";
  19080. // let blob = new Blob([ab], {
  19081. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19082. // });
  19083. // elink.href = URL.createObjectURL(blob);
  19084. // document.body.appendChild(elink);
  19085. // elink.click();
  19086. // document.body.removeChild(elink);
  19087. // })
  19088. // .catch((err) => {
  19089. // loading.close();
  19090. // console.error(err);
  19091. // });
  19092. var credentials = {
  19093. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19094. secretAccessKey: "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",
  19095. }; //秘钥形式的登录上传
  19096. window.AWS.config.update(credentials);
  19097. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19098. let url2 = f.url;
  19099. let _url2 = "";
  19100. if (
  19101. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19102. ) {
  19103. _url2 = url2.split(
  19104. "https://view.officeapps.live.com/op/view.aspx?src="
  19105. )[1];
  19106. } else {
  19107. _url2 = url2;
  19108. }
  19109. let _this = this;
  19110. _this.downLoading = true
  19111. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19112. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19113. var params = {
  19114. Bucket: "ccrb",
  19115. Key: name
  19116. };
  19117. s3.getObject(params, function (err, data) {
  19118. _this.downLoading = false
  19119. if (err) console.log(err, err.stack); // an error occurred
  19120. else {
  19121. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19122. let a = document.createElement("a");
  19123. a.name = f.name;
  19124. a.href = url;
  19125. a.download = f.name;
  19126. a.click();
  19127. console.log(data);
  19128. } // sxuccessful response
  19129. });
  19130. return;
  19131. let url = f.url;
  19132. let _url = "";
  19133. if (
  19134. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19135. ) {
  19136. _url = url.split(
  19137. "https://view.officeapps.live.com/op/view.aspx?src="
  19138. )[1];
  19139. } else {
  19140. _url = url;
  19141. }
  19142. _this.downLoading = true
  19143. let x = new XMLHttpRequest();
  19144. x.open("GET", _url, true);
  19145. x.responseType = "blob";
  19146. x.onload = function () {
  19147. _this.downLoading = false
  19148. let url = window.URL.createObjectURL(new Blob([x.response]));
  19149. let a = document.createElement("a");
  19150. a.name = f.name;
  19151. a.href = url;
  19152. a.download = f.name;
  19153. a.click();
  19154. };
  19155. x.send();
  19156. },
  19157. downloadFile(url) {
  19158. // this.$message.info("查看作业-下载文件")
  19159. var credentials = {
  19160. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19161. secretAccessKey: "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",
  19162. }; //秘钥形式的登录上传
  19163. window.AWS.config.update(credentials);
  19164. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19165. let url2 = url;
  19166. let _url2 = "";
  19167. if (
  19168. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19169. ) {
  19170. _url2 = url2.split(
  19171. "https://view.officeapps.live.com/op/view.aspx?src="
  19172. )[1];
  19173. } else {
  19174. _url2 = url2;
  19175. }
  19176. const loading2 = this.$loading.service({
  19177. background: "rgba(255, 255, 255, 0.7)",
  19178. target: document.body,
  19179. text: "文件加载中...",
  19180. });
  19181. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19182. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19183. var params = {
  19184. Bucket: "ccrb",
  19185. Key: name
  19186. };
  19187. s3.getObject(params, function (err, data) {
  19188. loading2.close();
  19189. if (err) console.log(err, err.stack); // an error occurred
  19190. else {
  19191. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19192. let a = document.createElement("a");
  19193. a.name = name;
  19194. a.href = url;
  19195. a.download = name;
  19196. a.click();
  19197. console.log(data);
  19198. } // sxuccessful response
  19199. });
  19200. return;
  19201. let _this = this;
  19202. let _url = "";
  19203. if (
  19204. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19205. ) {
  19206. _url = url.split(
  19207. "https://view.officeapps.live.com/op/view.aspx?src="
  19208. )[1];
  19209. } else {
  19210. _url = url;
  19211. }
  19212. const x = new XMLHttpRequest();
  19213. x.open("GET", _url, true);
  19214. x.responseType = "blob";
  19215. // this.downLoading = true
  19216. const loading = _this.$loading.service({
  19217. background: "rgba(255, 255, 255, 0.7)",
  19218. target: document.body,
  19219. text: "文件加载中...",
  19220. });
  19221. // _this.$message.success("文件下载中...");
  19222. x.onload = function (e) {
  19223. loading.close();
  19224. let content = x.response;
  19225. let elink = document.createElement("a");
  19226. elink.download = decodeURI(
  19227. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19228. );
  19229. elink.style.display = "none";
  19230. let blob = new Blob([content]);
  19231. elink.href = URL.createObjectURL(blob);
  19232. document.body.appendChild(elink);
  19233. elink.click();
  19234. document.body.removeChild(elink);
  19235. };
  19236. x.send();
  19237. },
  19238. openLine(url) {
  19239. window.open(url);
  19240. },
  19241. resize() {
  19242. if (document.getElementsByClassName("box_course").length) {
  19243. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19244. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19245. if (this.showType == 2 || this.showType == 3) {
  19246. document.getElementsByClassName("navBox")[0].style.height =
  19247. a - 40 + 0+ "px";
  19248. } else {
  19249. document.getElementsByClassName("navBox")[0].style.height =
  19250. a - 40 + "px";
  19251. }
  19252. }
  19253. this.Stbodywidth =
  19254. document.getElementsByClassName("student_body").length &&
  19255. document.getElementsByClassName("student_body")[0].offsetWidth;
  19256. },
  19257. closeDraw() {
  19258. this.bg = null;
  19259. this.drawShow = false;
  19260. },
  19261. showPicturePaint(url) {
  19262. let params = {
  19263. img: url,
  19264. };
  19265. this.ajax
  19266. .get(this.$store.state.api + "imgToBase64", params)
  19267. .then((res) => {
  19268. this.drawShow = true;
  19269. this.bg = res.data[0].img;
  19270. })
  19271. .catch((err) => {
  19272. console.error(err);
  19273. });
  19274. },
  19275. addImgDraw(base64) {
  19276. let file = { name: "批注图.png" };
  19277. let img = this.dataUrlToFile(base64, file);
  19278. this.beforeUpload1(img, 5);
  19279. },
  19280. addImgDrawImG(url) {
  19281. // console.log(url);
  19282. let params = [
  19283. {
  19284. wid: this.commentDetail.wid,
  19285. img: url,
  19286. },
  19287. ];
  19288. this.ajax
  19289. .post(this.$store.state.api + "updateCourseWorks", params)
  19290. .then((res) => {
  19291. this.$message({
  19292. message: "提交成功",
  19293. type: "success",
  19294. });
  19295. this.drawShow = false;
  19296. this.bg = "";
  19297. this.selectSWorks();
  19298. this.selectStudent();
  19299. })
  19300. .catch((err) => {
  19301. this.$message.error("提交失败");
  19302. console.error(err);
  19303. });
  19304. },
  19305. deletePicturePaint() {
  19306. this.$confirm("确定删除此批注吗?", "提示", {
  19307. confirmButtonText: "确定",
  19308. cancelButtonText: "取消",
  19309. type: "warning",
  19310. })
  19311. .then(() => {
  19312. let params = [
  19313. {
  19314. wid: this.commentDetail.wid,
  19315. img: "",
  19316. },
  19317. ];
  19318. this.ajax
  19319. .post(this.$store.state.api + "updateCourseWorks", params)
  19320. .then((res) => {
  19321. this.$message({
  19322. message: "删除成功",
  19323. type: "success",
  19324. });
  19325. this.selectSWorks();
  19326. this.selectStudent();
  19327. })
  19328. .catch((err) => {
  19329. this.$message.error("删除失败");
  19330. console.error(err);
  19331. });
  19332. })
  19333. .catch(() => {});
  19334. },
  19335. getAudioVideo(constraintsData) {
  19336. if (navigator.mediaDevices === undefined) {
  19337. navigator.mediaDevices = {};
  19338. }
  19339. if (navigator.mediaDevices.getUserMedia === undefined) {
  19340. navigator.mediaDevices.getUserMedia = function (constraints) {
  19341. // 首先,如果有getUserMedia的话,就获得它
  19342. var getUserMedia =
  19343. navigator.getUserMedia ||
  19344. navigator.webkitGetUserMedia ||
  19345. navigator.mozGetUserMedia ||
  19346. navigator.msGetUserMedia;
  19347. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19348. if (!getUserMedia) {
  19349. return Promise.reject({ code: 404 });
  19350. }
  19351. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19352. return new Promise(function (resolve, reject) {
  19353. getUserMedia.call(navigator, constraints, resolve, reject);
  19354. });
  19355. };
  19356. }
  19357. return navigator.mediaDevices.getUserMedia(constraintsData);
  19358. },
  19359. /**
  19360. * 开始录制
  19361. */
  19362. startRecording(callback) {
  19363. let _function = (screenStream) => {
  19364. this.addStreamStopListener(screenStream, () => {
  19365. console.log("流停止监听");
  19366. this.stopRecording();
  19367. this.$emit("streamStop", {});
  19368. // this.stopRecording();
  19369. });
  19370. var options = {
  19371. type: "video",
  19372. mimeType: "video/webm",
  19373. disableLogs: false,
  19374. getNativeBlob: false, // enable it for longer recordings
  19375. ignoreMutedMedia: false,
  19376. };
  19377. // this.video.srcObject = screenStream;
  19378. this.recorder = RecordRTC(screenStream, options);
  19379. this.recorder.startRecording();
  19380. this.recorder.screen = screenStream;
  19381. this.videoStart = true;
  19382. // callback(true);
  19383. };
  19384. this.getAudioVideo({ audio: true })
  19385. .then((res) => {
  19386. this.captureScreen(_function, true);
  19387. console.log("已点击允许,开启成功");
  19388. })
  19389. .catch((err) => {
  19390. // console.log('浏览器不支持,请更换浏览器')
  19391. // } else {
  19392. this.captureScreen(_function, false);
  19393. console.log("请检查是否存在麦克风");
  19394. });
  19395. },
  19396. /**
  19397. * 停止录制
  19398. */
  19399. stopRecording(callback) {
  19400. this.recorder.stopRecording(() => {
  19401. // this.video.src = this.video.srcObject = null;
  19402. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19403. const url = URL.createObjectURL(this.recorder.getBlob());
  19404. const a = document.createElement("a"); //this.fileName+
  19405. let videoFile = new File(
  19406. [this.recorder.getBlob()],
  19407. this.courseDetail.title + "录屏.mp4",
  19408. {
  19409. type: "video/mp4",
  19410. }
  19411. );
  19412. let downloadUrl = URL.createObjectURL(videoFile);
  19413. if(this.$refs.classRoomHelperRef){
  19414. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19415. }
  19416. document.body.appendChild(a);
  19417. a.style.display = "none";
  19418. a.href = url;
  19419. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19420. a.click();
  19421. this.recorder.screen.stop();
  19422. this.recorder.destroy();
  19423. this.recorder = null;
  19424. this.videoStart = false;
  19425. // callback(false);
  19426. });
  19427. },
  19428. //初始化
  19429. captureScreen(callback, type) {
  19430. if (navigator.getDisplayMedia) {
  19431. //录制结束,文件下载
  19432. navigator
  19433. .getDisplayMedia({
  19434. video: true,
  19435. })
  19436. .then((screenStream) => {
  19437. if (type) {
  19438. navigator.mediaDevices
  19439. .getUserMedia({ audio: true })
  19440. .then((mic) => {
  19441. screenStream.addTrack(mic.getTracks()[0]);
  19442. callback(screenStream);
  19443. });
  19444. } else {
  19445. callback(screenStream);
  19446. }
  19447. })
  19448. .catch(function (error) {
  19449. console.log("error", error);
  19450. });
  19451. } else if (navigator.mediaDevices.getDisplayMedia) {
  19452. navigator.mediaDevices
  19453. .getDisplayMedia({
  19454. video: true,
  19455. })
  19456. .then((screenStream) => {
  19457. if (type) {
  19458. navigator.mediaDevices
  19459. .getUserMedia({ audio: true })
  19460. .then((mic) => {
  19461. screenStream.addTrack(mic.getTracks()[0]);
  19462. callback(screenStream);
  19463. });
  19464. } else {
  19465. callback(screenStream);
  19466. }
  19467. })
  19468. .catch(function (error) {
  19469. console.log("error", error);
  19470. });
  19471. } else {
  19472. var error = "getDisplayMedia API are not supported in this browser.";
  19473. console.log("error", error);
  19474. alert(error);
  19475. }
  19476. },
  19477. //流监听
  19478. addStreamStopListener(stream, callback) {
  19479. stream.addEventListener(
  19480. "ended",
  19481. function () {
  19482. callback();
  19483. callback = function () {};
  19484. },
  19485. false
  19486. );
  19487. stream.addEventListener(
  19488. "inactive",
  19489. function () {
  19490. callback();
  19491. callback = function () {};
  19492. },
  19493. false
  19494. );
  19495. stream.getTracks().forEach(function (track) {
  19496. track.addEventListener(
  19497. "ended",
  19498. function () {
  19499. callback();
  19500. callback = function () {};
  19501. },
  19502. false
  19503. );
  19504. track.addEventListener(
  19505. "inactive",
  19506. function () {
  19507. callback();
  19508. callback = function () {};
  19509. },
  19510. false
  19511. );
  19512. });
  19513. },
  19514. updateGroup() {
  19515. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19516. this.dialogVisibleGroup2 = true;
  19517. },
  19518. numberPan() {
  19519. if (
  19520. /[^\d]/.test(this.groupJson.number) ||
  19521. this.groupJson.number < 2 ||
  19522. this.groupJson.number > 10
  19523. ) {
  19524. this.$message.error("请输入2-10的数字");
  19525. this.groupJson.number = "";
  19526. }
  19527. },
  19528. updateGroupJson() {
  19529. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19530. if (
  19531. this.groupStudentUid[this.toolindex][i].length >
  19532. this.groupJson2.number
  19533. ) {
  19534. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19535. return;
  19536. }
  19537. }
  19538. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19539. this.islock = this.groupJson.islock == 1 ? true : false;
  19540. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19541. this.taskCount
  19542. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19543. let params = [
  19544. {
  19545. cid: this.id,
  19546. chapters: JSON.stringify(this.chapInfoList),
  19547. uid: this.userid,
  19548. unitIndex: this.courseType,
  19549. },
  19550. ];
  19551. this.ajax
  19552. .post(this.$store.state.api + "updateWorkNew4", params)
  19553. .then((res) => {
  19554. this.$message.success("设置成功");
  19555. this.getCourseDetail(2);
  19556. this.dialogVisibleGroup2 = false;
  19557. this.groupJson2 = {};
  19558. this.$forceUpdate();
  19559. })
  19560. .catch((err) => {
  19561. this.$message.error("网络不佳");
  19562. console.error(err);
  19563. });
  19564. },
  19565. lockChair() {
  19566. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19567. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19568. this.updateGroupJson();
  19569. },
  19570. selectGroup(index) {
  19571. this.getCourseDetail(2, index);
  19572. },
  19573. joinGroup(index) {
  19574. if (this.groupJson.islock == 2) {
  19575. this.$message.error("位置已被锁定,无法加入");
  19576. return;
  19577. }
  19578. if (
  19579. this.groupStudent[this.toolindex][index].length >
  19580. this.groupJson.number ||
  19581. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19582. ) {
  19583. this.$message.error("位置已满,无法加入");
  19584. return;
  19585. }
  19586. let params = [
  19587. {
  19588. cid: this.id,
  19589. stage: this.courseType,
  19590. task: this.taskCount,
  19591. tool: this.toolindex,
  19592. g: index,
  19593. uid: this.userid,
  19594. },
  19595. ];
  19596. this.ajax
  19597. .post(this.$store.state.api + "joinGroup", params)
  19598. .then((res) => {
  19599. this.$message.success("加入成功");
  19600. this.getCourseDetail(2);
  19601. })
  19602. .catch((err) => {
  19603. this.$message.error("网络不佳");
  19604. console.error(err);
  19605. });
  19606. },
  19607. exitGroup(id) {
  19608. if (this.groupJson.islock == 2) {
  19609. this.$message.error("位置已被锁定,无法退出");
  19610. return;
  19611. }
  19612. let params = [
  19613. {
  19614. gid: id,
  19615. },
  19616. ];
  19617. this.ajax
  19618. .post(this.$store.state.api + "exitGroup", params)
  19619. .then((res) => {
  19620. this.$message.success("退出成功");
  19621. this.getCourseDetail(2);
  19622. })
  19623. .catch((err) => {
  19624. this.$message.error("网络不佳");
  19625. console.error(err);
  19626. });
  19627. },
  19628. groupUpload(index, task, gindex) {
  19629. this.taskCount = task;
  19630. this.toolindex = index;
  19631. this.groupIndex = gindex;
  19632. this.dialogVisibleGroupWork = true;
  19633. },
  19634. updateGroupChair(user) {
  19635. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19636. el.label = index;
  19637. return index != user.group;
  19638. });
  19639. this.updateGroupUser = user;
  19640. this.dialogVisibleUpdateGroup = true;
  19641. },
  19642. updateChair() {
  19643. if (
  19644. this.groupStudent[this.toolindex][this.checkChair].length >
  19645. this.groupJson.number ||
  19646. this.groupStudent[this.toolindex][this.checkChair].length ==
  19647. this.groupJson.number
  19648. ) {
  19649. this.$message.error("位置已满,无法加入");
  19650. return;
  19651. }
  19652. let params = [
  19653. {
  19654. cid: this.id,
  19655. stage: this.courseType,
  19656. task: this.taskCount,
  19657. tool: this.toolindex,
  19658. g: this.checkChair,
  19659. uid: this.updateGroupUser.userid,
  19660. },
  19661. ];
  19662. this.ajax
  19663. .post(this.$store.state.api + "joinGroup", params)
  19664. .then((res) => {
  19665. this.$message.success("修改成功");
  19666. this.updateGroupUser = {};
  19667. this.checkChair = "";
  19668. this.updateGroupArray = {};
  19669. this.dialogVisibleUpdateGroup = false;
  19670. this.getCourseDetail(2);
  19671. })
  19672. .catch((err) => {
  19673. this.$message.error("网络不佳");
  19674. console.error(err);
  19675. });
  19676. },
  19677. deleteGroupChair(gindex) {
  19678. this.checkDeleteGroup = [];
  19679. this.deleteGroupUser = JSON.parse(
  19680. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19681. );
  19682. this.deleteGroupArray = this.groupJson.group[gindex];
  19683. this.groupIndex = gindex;
  19684. this.dialogVisibleDeleteGroup = true;
  19685. },
  19686. async deleteChair() {
  19687. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19688. const gid =
  19689. this.groupStudent[this.toolindex][this.groupIndex][
  19690. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19691. this.checkDeleteGroup[i]
  19692. )
  19693. ];
  19694. let params = [
  19695. {
  19696. gid: gid.id,
  19697. },
  19698. ];
  19699. var a = await this.deleteChairA(params);
  19700. if (i == this.checkDeleteGroup.length - 1) {
  19701. this.$message.success("退出成功");
  19702. this.dialogVisibleDeleteGroup = false;
  19703. this.deleteGroupUser = [];
  19704. this.deleteGroupArray = {};
  19705. this.groupIndex = "";
  19706. this.checkDeleteGroup = [];
  19707. this.getCourseDetail(2);
  19708. }
  19709. }
  19710. },
  19711. deleteChairA(params) {
  19712. return new Promise((resolve, reject) => {
  19713. this.ajax
  19714. .post(this.$store.state.api + "exitGroup", params)
  19715. .then((res) => {
  19716. resolve(1);
  19717. })
  19718. .catch((err) => {
  19719. this.$message.error("网络不佳");
  19720. console.error(err);
  19721. });
  19722. });
  19723. },
  19724. contract(i) {
  19725. if (this.isCloseList[i].isClose == 0) {
  19726. this.isCloseList[i].isClose = 1;
  19727. } else {
  19728. this.isCloseList[i].isClose = 0;
  19729. }
  19730. this.$forceUpdate();
  19731. },
  19732. openWordCloud(toolindex) {
  19733. this.wordCloudData = '';
  19734. let array = [];
  19735. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19736. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19737. array.push({ name: works });
  19738. }
  19739. if (this.isGroup) {
  19740. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19741. let works = this.courseGroup.group[i].works[toolindex];
  19742. for (var j = 0; j < works.length; j++) {
  19743. let answer = JSON.parse(works[j].works)[0].answer;
  19744. array.push({ name: answer });
  19745. }
  19746. }
  19747. }
  19748. let _result = ''
  19749. array.forEach(e=>{
  19750. _result +=e.name+','
  19751. })
  19752. this.wordCloudData = _result;
  19753. this.dialogVisibleWordCloud = true;
  19754. this.wordCloudKey += 1;
  19755. },
  19756. uploadWorks(i) {
  19757. this.$confirm("确定导出作业吗?", "提示", {
  19758. confirmButtonText: "确定",
  19759. cancelButtonText: "取消",
  19760. type: "warning",
  19761. })
  19762. .then(() => {
  19763. const loading = this.$loading.service({
  19764. background: "rgba(255, 255, 255, 0.7)",
  19765. target: document.body,
  19766. text: "文件加载中...",
  19767. });
  19768. const _worksStudent = this.worksStudent;
  19769. let url = [];
  19770. var counts = {};
  19771. for (var l = 0; l < _worksStudent[i].length; l++) {
  19772. var item = _worksStudent[i][l];
  19773. var name = item.sName;
  19774. if (!counts.hasOwnProperty(name)) {
  19775. counts[name] = 0;
  19776. } else {
  19777. counts[name]++;
  19778. }
  19779. if (counts[name] > 0) {
  19780. item.sName += " (" + counts[name] + ")";
  19781. }
  19782. }
  19783. for (var l = 0; l < _worksStudent[i].length; l++) {
  19784. var item = _worksStudent[i][l];
  19785. if (
  19786. item.works.indexOf(
  19787. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19788. ) !== -1 &&
  19789. item.works.indexOf("img") === -1
  19790. ) {
  19791. url.push({ name: item.sName, url: item.works });
  19792. }
  19793. }
  19794. // var toolList = [
  19795. // { name: "电子白板", tool: 1 },
  19796. // { name: "思维导图", tool: 3 },
  19797. // { name: "协同文档", tool: 6 },
  19798. // { name: "思维网格", tool: 7 },
  19799. // { name: "素材库", tool: 8 },
  19800. // { name: "学习资料", tool: 17 },
  19801. // { name: "便签", tool: 2 },
  19802. // { name: "问卷调查", tool: 4 },
  19803. // { name: "选择题", tool: 45 },
  19804. // { name: "倒计时", tool: 10 },
  19805. // { name: "问答", tool: 15 },
  19806. // { name: "课程设计", tool: 26 },
  19807. // { name: "训练服务器", tool: 18 },
  19808. // { name: "作业提交", tool: 16 },
  19809. // { name: "批量上传", tool: 50 },
  19810. // { name: "AIoT Blockly", tool: 21 },
  19811. // { name: "AI Python", tool: 23 },
  19812. // { name: "AI Blockly", tool: 24 },
  19813. // { name: "目标管理", tool: 25 },
  19814. // { name: "数学画板", tool: 31 },
  19815. // { name: "翻译", tool: 28 },
  19816. // { name: "魔盒识字", tool: 37 },
  19817. // { name: "数学画板", tool: 31 },
  19818. // { name: "24点", tool: 38 },
  19819. // { name: "GeoGebra", tool: 39 },
  19820. // { name: "源码编辑", tool: 32 },
  19821. // { name: "个人评价", tool: 40 },
  19822. // { name: "选择匹配", tool: 41 },
  19823. // { name: "汉字宫", tool: 44 },
  19824. // { name: "排序", tool: 47 },
  19825. // { name: "表格", tool: 48 },
  19826. // { name: "文档", tool: 52 },
  19827. // { name: "学生分组", tool: 49 },
  19828. // { name: "CocoPi", tool: 57 },
  19829. // { name: "模拟驾驶", tool: 58 },
  19830. // { name: "路径搜索", tool: 59 },
  19831. // { name: "深度学习", tool: 60 },
  19832. // { name: "全历史", tool: 61 },
  19833. // { name: "交互视频", tool: 62 },
  19834. // { name: "海龟编程", tool: 63 },
  19835. // { name: "挑人", tool: 65 },
  19836. // { name: "公式编辑", tool: 66 },
  19837. // { name: "分子结构", tool: 67 },
  19838. // { name: "时间轴", tool: 68 },
  19839. // ];
  19840. // var toolName = "";
  19841. // for(var w = 0;w<toolList.length;w++){
  19842. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19843. // toolName = toolList[w].name;
  19844. // }
  19845. // }
  19846. console.log(url);
  19847. this.downLoadAll(url, loading);
  19848. })
  19849. .catch(() => {});
  19850. },
  19851. downLoadAll(url, loading) {
  19852. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19853. const zip = new JSZip();
  19854. const cache = {};
  19855. const promises = [];
  19856. data.forEach((item) => {
  19857. const promise = getFile(item.url).then((data) => {
  19858. if (data.data != 1) {
  19859. // 下载文件, 并存成ArrayBuffer对象
  19860. const file_name =
  19861. item.name +
  19862. "." +
  19863. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19864. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19865. cache[file_name] = data.data;
  19866. }
  19867. });
  19868. promises.push(promise);
  19869. });
  19870. Promise.all(promises).then(() => {
  19871. zip.generateAsync({ type: "blob" }).then((content) => {
  19872. // 生成二进制流
  19873. FileSaver.saveAs(
  19874. content,
  19875. this.courseDetail.title + "-" + "作业提交工具.zip"
  19876. ); // 利用file-saver保存文件 自定义文件名
  19877. setTimeout(() => {
  19878. loading.close();
  19879. }, 2000);
  19880. });
  19881. });
  19882. },
  19883. pickStudent(stu) {
  19884. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19885. return;
  19886. }
  19887. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19888. confirmButtonText: "确定",
  19889. cancelButtonText: "取消",
  19890. type: "warning",
  19891. })
  19892. .then(() => {
  19893. let params = [
  19894. {
  19895. uid: stu.userid,
  19896. cid: this.id,
  19897. stage: this.courseType,
  19898. task: this.taskCount,
  19899. tool: this.toolindex,
  19900. },
  19901. ];
  19902. this.ajax
  19903. .post(this.$store.state.api + "updateCoursePick", params)
  19904. .then((res) => {
  19905. this.$message.success("操作成功");
  19906. this.getPick();
  19907. })
  19908. .catch((err) => {
  19909. this.$message.error("网络不佳");
  19910. console.error(err);
  19911. });
  19912. })
  19913. .catch(() => {});
  19914. },
  19915. selectUser(){
  19916. let params = {
  19917. userid: this.userid,
  19918. };
  19919. this.ajax
  19920. .get(this.$store.state.api + "selectUser", params)
  19921. .then((res) => {
  19922. this.userMes = res.data[0];
  19923. })
  19924. .catch((err) => {
  19925. console.error(err);
  19926. });
  19927. },
  19928. setEngText(i){
  19929. this.newEngIndex = i;
  19930. this.$forceUpdate();
  19931. },
  19932. addCorrect(){
  19933. this.$confirm("你确定提交批改嘛?", "提示", {
  19934. confirmButtonText: "确定",
  19935. showCancelButton: false,
  19936. closeOnClickModal: false,
  19937. type: "warning",
  19938. })
  19939. .then(() => {
  19940. let params = {
  19941. cid: this.id,
  19942. s: parseInt(this.courseType),
  19943. t: this.taskCount,
  19944. tool: this.toolindex,
  19945. wid: this.engWid,
  19946. c: this.userid,
  19947. 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) : "",
  19948. };
  19949. this.ajax
  19950. .get(this.$store.state.api + "addEngC", params)
  19951. .then((res) => {
  19952. this.$message.success("提交成功");
  19953. this.engUpdateDialogVisible = false;
  19954. })
  19955. .catch((err) => {
  19956. console.error(err);
  19957. });
  19958. })
  19959. .catch(() => {});
  19960. },
  19961. selectEngC(id,z){
  19962. let params = {
  19963. workid: id,
  19964. };
  19965. this.ajax
  19966. .get(this.$store.state.api + "selectEngC", params)
  19967. .then((res) => {
  19968. if(res.data[0].length == 0){
  19969. this.newEnglishList.engTitle = z.engTitle;
  19970. this.newEnglishList.engText = z.engText;
  19971. }else{
  19972. var a = res.data[0];
  19973. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19974. if(this.userMes[0].type == 2){
  19975. var snum = 0;
  19976. for(var i = 0;i<a.length;i++){
  19977. if(this.userMes[0].userid == a[i].correct){
  19978. this.newEnglishList = JSON.parse(a[i].cWork);
  19979. snum = 1;
  19980. }
  19981. }
  19982. if(snum == 0){
  19983. this.newEnglishList = { engTitle:"",engText:"" };
  19984. this.newEnglishList.engTitle = z.engTitle;
  19985. this.newEnglishList.engText = z.engText;
  19986. }
  19987. }else if(this.userMes[0].type == 1){
  19988. var num = 0;
  19989. for(var w= 0;w<a.length;w++){
  19990. if(this.userMes[0].userid == a[w].correct){
  19991. num = 1;
  19992. }
  19993. }
  19994. if(num == 0){
  19995. this.isNoUserid = true;
  19996. var c = JSON.parse(JSON.stringify(z));
  19997. this.oldEnglishJson1 = c;
  19998. }else{
  19999. this.isNoUserid = false;
  20000. }
  20001. var b = a.sort((item, index) => {
  20002. console.log(item)
  20003. if (item.correct === this.userMes[0].userid) {
  20004. return -1; // 将a移到前面
  20005. } else if (index.correct === this.userMes[0].userid) {
  20006. return 1; // 将b移到前面
  20007. } else {
  20008. return 0; // 保持默认顺序
  20009. }
  20010. });
  20011. for(var p = 0;p<b.length;p++){
  20012. for(var y = 0;y<ppp.length;y++){
  20013. if(b[p].id == ppp[y].id){
  20014. b[p].cWork = JSON.parse(ppp[y].cWork);
  20015. break
  20016. }
  20017. }
  20018. }
  20019. this.newEnglishList1 = b;
  20020. }
  20021. }
  20022. this.greyType = false;
  20023. setTimeout(() => {
  20024. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20025. if(this.newEnglishList1.length > 0){
  20026. if(this.isNoUserid == true){
  20027. this.engListLength = this.newEnglishList1.length + 1;
  20028. this.newEngIndex = -1;
  20029. }else{
  20030. this.engListLength = this.newEnglishList1.length;
  20031. this.newEngIndex = 0;
  20032. }
  20033. }
  20034. if(this.userMes[0].type == 2){
  20035. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20036. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20037. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20038. }else if(this.newEngIndex == -1){
  20039. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20040. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20041. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20042. }
  20043. }, 500);
  20044. this.engUpdateDialogVisible = true;
  20045. this.$forceUpdate();
  20046. })
  20047. .catch((err) => {
  20048. console.error(err);
  20049. });
  20050. },
  20051. getPick() {
  20052. let params = {
  20053. cid: this.id,
  20054. };
  20055. this.ajax
  20056. .get(this.$store.state.api + "getPick", params)
  20057. .then((res) => {
  20058. let array = [];
  20059. for (var i = 0; i < res.data[0].length; i++) {
  20060. array.push(res.data[0][i].userid);
  20061. }
  20062. this.isPickStudent = array;
  20063. if (array.indexOf(this.userid) !== -1) {
  20064. this.$confirm("你被老师选到啦!", "提示", {
  20065. confirmButtonText: "确定",
  20066. showCancelButton: false,
  20067. closeOnClickModal: false,
  20068. type: "warning",
  20069. })
  20070. .then(() => {
  20071. let pa = [
  20072. {
  20073. uid: this.userid,
  20074. cid: this.id,
  20075. },
  20076. ];
  20077. this.ajax
  20078. .post(this.$store.state.api + "deletePick", pa)
  20079. .then((res) => {
  20080. this.getPick();
  20081. })
  20082. .catch((err) => {
  20083. this.$message.error("网络不佳");
  20084. console.error(err);
  20085. });
  20086. })
  20087. .catch(() => {});
  20088. }
  20089. })
  20090. .catch((err) => {
  20091. this.$message.error("网络不佳");
  20092. console.error(err);
  20093. });
  20094. },
  20095. foldEva() {
  20096. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20097. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20098. } else {
  20099. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20100. setTimeout(() => {
  20101. this.checkEva();
  20102. setTimeout(() => {
  20103. this.checkEva();
  20104. }, 500);
  20105. }, 0);
  20106. }
  20107. this.$forceUpdate();
  20108. },
  20109. panToolHeight(tool) {
  20110. var _tool = document.querySelectorAll('#'+tool)[0]
  20111. var _toolA = _tool ? _tool.offsetHeight : 0
  20112. var _toolC = 0
  20113. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20114. let boolean2 = (_toolA > _toolC) ? true : false
  20115. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20116. this.$forceUpdate();
  20117. },
  20118. async checkLink(url) {
  20119. console.log(url)
  20120. let _url = url
  20121. try {
  20122. const response = await fetch(url);
  20123. if(!response.ok){
  20124. _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]))
  20125. }
  20126. console.log(response.ok)
  20127. } catch (error) {
  20128. console.error('Error checking link:', error);
  20129. // console.log(false)
  20130. _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]))
  20131. }
  20132. // console.log(_url)
  20133. return _url
  20134. },
  20135. getScoreList(){
  20136. let params = {
  20137. cid: this.id,
  20138. };
  20139. this.ajax
  20140. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20141. .then((res) => {
  20142. let result = res.data;
  20143. this.scoreList.datalist = result[0];
  20144. this.scoreList.isScoreList = result[1];
  20145. })
  20146. .catch((err) => {
  20147. console.error(err);
  20148. });
  20149. },
  20150. setClassRoomHelperWidth(width){
  20151. this.classRoomHelperWidth = width
  20152. },
  20153. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20154. this.$refs.choseWorksDetailDialogRef.open({
  20155. toolType:tooc,
  20156. tType: this.tType,
  20157. toolIndex: toolIndex
  20158. });
  20159. this.changeSplitScreenBehavior({
  20160. code: 1,
  20161. form: {
  20162. toolType:tooc,
  20163. toolIndex: toolIndex,
  20164. courseType: this.courseType,
  20165. taskCount: this.taskCount,
  20166. type: 0
  20167. }
  20168. });
  20169. },
  20170. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20171. this.$refs.statisticalAnalysisRef.open({
  20172. worksStudent: this.worksStudent[toolIndex],
  20173. tType: this.tType,
  20174. toolIndex: toolIndex
  20175. });
  20176. this.changeSplitScreenBehavior({
  20177. code: 2,
  20178. form: {
  20179. toolType:4,
  20180. courseType: this.courseType,
  20181. taskCount: this.taskCount,
  20182. toolIndex: toolIndex,
  20183. type: 0
  20184. }
  20185. });
  20186. },
  20187. statisticalAnalysisRefresh(toolIndex) {
  20188. this.$refs.statisticalAnalysisRef.refreshData({
  20189. worksStudent: this.worksStudent[toolIndex],
  20190. tType: this.tType,
  20191. toolIndex: toolIndex
  20192. });
  20193. },
  20194. async splitScreenBehavior(type = 0) {
  20195. // return;
  20196. if (this.splitScreenData.loading)
  20197. return this.$message.info("操作过快,请稍等");
  20198. if (type == 0) {
  20199. //关闭分屏
  20200. this.splitScreenData.isOpen = false;
  20201. // this.splitScreenData.userId = "";
  20202. // this.splitScreenData.uid = "";
  20203. this.splitScreenData.behavior = null;
  20204. await this.updateSplitScreenData(1);
  20205. this.$message.success("已关闭分屏模式");
  20206. this.studentFreePreview(false);
  20207. this.OpenJobPreview(false);
  20208. // this.followingMode(false);
  20209. } else if (type == 1) {
  20210. //开启分屏
  20211. this.splitScreenData.isOpen = true;
  20212. this.splitScreenData.userId = this.userid;
  20213. this.splitScreenData.uid = this.splitScreenData.myUid;
  20214. this.splitScreenData.behavior = null;
  20215. let status = await this.updateSplitScreenData(0);
  20216. this.changeSplitScreenBehavior({form:{}})
  20217. if (status == 1) {
  20218. this.$message.success("已开启分屏");
  20219. this.studentFreePreview(true);
  20220. this.OpenJobPreview(true);
  20221. // this.followingMode(true);
  20222. } else {
  20223. this.splitScreenData.isOpen = false;
  20224. this.splitScreenData.userId = "";
  20225. this.splitScreenData.uid = "";
  20226. this.splitScreenData.behavior = null;
  20227. this.$message.success("分屏开启失败");
  20228. }
  20229. }
  20230. },
  20231. enterFullScreen() {
  20232. let element = document.documentElement;
  20233. if (element.requestFullscreen) {
  20234. element.requestFullscreen();
  20235. } else if (element.mozRequestFullScreen) { /* Firefox */
  20236. element.mozRequestFullScreen();
  20237. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  20238. element.webkitRequestFullscreen();
  20239. } else if (element.msRequestFullscreen) { /* IE/Edge */
  20240. element.msRequestFullscreen();
  20241. }
  20242. },
  20243. exitFullScreen() {
  20244. if (document.exitFullscreen) {
  20245. document.exitFullscreen();
  20246. } else if (document.mozCancelFullScreen) { /* Firefox */
  20247. document.mozCancelFullScreen();
  20248. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  20249. document.webkitExitFullscreen();
  20250. } else if (document.msExitFullscreen) { /* IE/Edge */
  20251. document.msExitFullscreen();
  20252. }
  20253. },
  20254. confirmOpen(){
  20255. this.splitScreenData.isOpen = true;
  20256. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  20257. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  20258. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  20259. this.confirmOpenDig = false
  20260. if (!document.fullscreenElement) {
  20261. this.enterFullScreen();
  20262. }
  20263. if (this.timer2) {
  20264. clearInterval(this.timer2);
  20265. this.timer2 = null;
  20266. }
  20267. this.timer2 = setInterval(()=> {
  20268. this.getSplitScreenData();//获取分屏数据
  20269. }, 1000);
  20270. this.$message.success("分屏模式已开启");
  20271. },
  20272. getSplitScreenData() {
  20273. // return;
  20274. // if (this.tType != 1) return;
  20275. let params = {
  20276. cid: this.id
  20277. };
  20278. this.ajax
  20279. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20280. .then(async res => {
  20281. let data = res.data[0][0]["splitScreenData"];
  20282. console.log("获取了分屏数:", data);
  20283. if (data) {
  20284. data = JSON.parse(data);
  20285. if (
  20286. !this.splitScreenData.isOpen &&
  20287. data.isOpen &&
  20288. this.splitScreenData.myUid == data.uid
  20289. ) {
  20290. this.splitScreenData.isOpen = false;
  20291. this.splitScreenData.userId = "";
  20292. this.splitScreenData.uid = "";
  20293. this.splitScreenData.behavior = null;
  20294. await this.updateSplitScreenData(1);
  20295. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20296. this.confirmOpenDig = true
  20297. this.confirmOpenDigData = data
  20298. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20299. this.splitScreenData.isOpen = false;
  20300. this.splitScreenData.userId = "";
  20301. this.splitScreenData.uid = "";
  20302. this.splitScreenData.behavior = null;
  20303. this.$message.error("已结束分屏模式");
  20304. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20305. this.splitScreenData.isOpen = true;
  20306. this.splitScreenData.uid = data.uid;
  20307. this.splitScreenData.userId = data.userId;
  20308. this.splitScreenData.behavior = data.behavior;
  20309. }
  20310. this.doSplitScreenBehavior();
  20311. } else {
  20312. if (this.splitScreenData.isOpen) {
  20313. this.splitScreenData.isOpen = false;
  20314. this.splitScreenData.userId = "";
  20315. this.splitScreenData.uid = "";
  20316. this.splitScreenData.behavior = null;
  20317. this.$message.error("已结束分屏模式");
  20318. if (this.timer2) {
  20319. clearInterval(this.timer2);
  20320. this.timer2 = null;
  20321. }
  20322. this.timer2 = setInterval(()=> {
  20323. this.getSplitScreenData();//获取分屏数据
  20324. }, 5000);
  20325. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  20326. confirmButtonText: '确定', //确认按钮的文字
  20327. showCancelButton: false, //是否显示取消按钮
  20328. showClose: false, //是否显示关闭按钮
  20329. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  20330. type: "warning",
  20331. })
  20332. .then(() => {
  20333. if (document.fullscreenElement) {
  20334. this.exitFullScreen();
  20335. }
  20336. })
  20337. .catch(() => {});
  20338. }
  20339. }
  20340. })
  20341. .catch(e => {
  20342. console.log("获取分屏数出错:", e);
  20343. });
  20344. },
  20345. doSplitScreenBehavior() {
  20346. if (
  20347. this.splitScreenData.isOpen &&
  20348. this.splitScreenData.uid != this.splitScreenData.myUid
  20349. ) {
  20350. let behavior = this.splitScreenData.behavior;
  20351. if (behavior) {
  20352. if (behavior.code === 99) {
  20353. //初始化
  20354. this.fullDialogVisible = false;
  20355. if(this.$refs.choseWorksDetailDialogRef.show){
  20356. this.$refs.choseWorksDetailDialogRef.close();
  20357. }
  20358. if(this.$refs.statisticalAnalysisRef.show){
  20359. this.$refs.statisticalAnalysisRef.close();
  20360. }
  20361. }
  20362. if (behavior.code === 0) {
  20363. //开启内容列表弹窗
  20364. this.checkFileFull1(behavior.form.t, behavior.form.f);
  20365. }else{
  20366. this.fullDialogVisible = false;
  20367. }
  20368. if (behavior.code === 1) {
  20369. //关于选择题的作业详细的操作
  20370. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20371. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20372. this.courseType = behavior.form.courseType;
  20373. this.taskCount = behavior.form.taskCount;
  20374. }
  20375. this.$nextTick(() => {
  20376. if (this.$refs.choseWorksDetailDialogRef.show) {
  20377. //已经打开了
  20378. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  20379. } else {
  20380. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  20381. }
  20382. });
  20383. }else{
  20384. this.$refs.choseWorksDetailDialogRef.close()
  20385. }
  20386. if(behavior.code === 2){
  20387. if(this.$refs.statisticalAnalysisRef.show){
  20388. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20389. }else{
  20390. this.$refs.statisticalAnalysisRef.open({
  20391. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20392. tType: this.tType,
  20393. toolIndex: behavior.form.toolIndex
  20394. });
  20395. }
  20396. }else{
  20397. this.$refs.statisticalAnalysisRef.close();
  20398. }
  20399. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  20400. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  20401. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  20402. // console.log('behavior.form',behavior.form.courseType,behavior.form.taskCount,behavior.form.toolType);
  20403. // console.log('666666',this.courseType,this.taskCount,this.toolindex);
  20404. if (behavior.form.courseType != this.courseType ||
  20405. behavior.form.taskCount != this.taskCount ||
  20406. behavior.form.toolType != this.toolindex
  20407. ) {
  20408. var a = document.scrollingElement;
  20409. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  20410. if (target) {
  20411. target.scrollIntoView(true);
  20412. setTimeout(()=>{
  20413. let scrollBody = document.querySelector('.body_student').parentElement
  20414. scrollBody.scrollTop = scrollBody.scrollTop - 100
  20415. }, 0);
  20416. // setTimeout(() => {
  20417. // a.scrollTop = 0
  20418. // }, 0);
  20419. }
  20420. }
  20421. if(this.courseType !=behavior.form.courseType){
  20422. this.courseType = behavior.form.courseType;
  20423. }
  20424. if(this.taskCount !=behavior.form.taskCount){
  20425. this.taskCount = behavior.form.taskCount;
  20426. }
  20427. if(this.toolindex != behavior.form.toolType){
  20428. this.toolindex = behavior.form.toolType;
  20429. }
  20430. // if(behavior.form.navId){
  20431. // this.navId = behavior.form.navId
  20432. // }
  20433. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  20434. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  20435. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  20436. this.getCourseDetail()
  20437. }
  20438. this.setContent2(false)
  20439. }
  20440. } else {
  20441. }
  20442. }
  20443. },
  20444. updateSplitScreenData(empty = 0) {
  20445. return new Promise(resolve => {
  20446. if(this.userid!==this.courseDetail.userid){
  20447. if(!this.courseDetail.userid){
  20448. return setTimeout(()=>{
  20449. this.updateSplitScreenData(empty)
  20450. },2000)
  20451. }
  20452. return;
  20453. };
  20454. if (
  20455. this.splitScreenData.uid == this.splitScreenData.myUid &&
  20456. this.splitScreenData.userId == this.userid
  20457. ) {
  20458. this.splitScreenData.loading = true;
  20459. let params = [
  20460. {
  20461. cid: this.id,
  20462. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  20463. }
  20464. ];
  20465. this.ajax
  20466. .post(
  20467. this.$store.state.api + "update_courseSplitScreenData",
  20468. params
  20469. )
  20470. .then(res => {
  20471. this.splitScreenData.loading = false;
  20472. if (res.data == 1) {
  20473. resolve(1);
  20474. console.log("修改分屏数据成功");
  20475. }
  20476. })
  20477. .catch(e => {
  20478. this.splitScreenData.loading = false;
  20479. console.log("修改分屏数据失败", e);
  20480. resoleve(0);
  20481. });
  20482. } else if (empty == 2 && this.tType == 1) {
  20483. console.log("清空清空清空清空")
  20484. let params = [
  20485. {
  20486. cid: this.id,
  20487. nData: ""
  20488. }
  20489. ];
  20490. return this.ajax
  20491. .post(
  20492. this.$store.state.api + "update_courseSplitScreenData",
  20493. params
  20494. )
  20495. .then(_ => resolve(1))
  20496. .catch(_ => resolve(0));
  20497. } else {
  20498. return resolve(0);
  20499. }
  20500. });
  20501. },
  20502. changeSplitScreenBehavior(newValue) {
  20503. if (
  20504. this.splitScreenData.isOpen &&
  20505. this.splitScreenData.uid == this.splitScreenData.myUid
  20506. ) {
  20507. let _behavior = null;
  20508. if(!newValue){
  20509. _behavior = {}
  20510. }else{
  20511. _behavior = newValue
  20512. }
  20513. if(_behavior.form){
  20514. _behavior.form.taskCount = this.taskCount;
  20515. _behavior.form.courseType = this.courseType
  20516. }else{
  20517. _behavior.form = {
  20518. taskCount:this.taskCount,
  20519. courseType:this.courseType
  20520. }
  20521. }
  20522. this.splitScreenData.behavior = _behavior;
  20523. this.updateSplitScreenData(0);
  20524. }
  20525. },
  20526. studentFreePreview(flag) {
  20527. this.IsLookOpen = flag;
  20528. this.updateLookOpen();
  20529. this.followingMode(flag)
  20530. },
  20531. OpenJobPreview(flag) {
  20532. this.sIsOpen = flag;
  20533. this.updateSLook();
  20534. },
  20535. followingMode(flag) {
  20536. this.IsFollow = flag;
  20537. this.updateFollow();
  20538. }
  20539. },
  20540. directives: {
  20541. // 使用局部注册指令的方式
  20542. resize: {
  20543. // 指令的名称
  20544. bind(el, binding) {
  20545. // el为绑定的元素,binding为绑定给指令的对象
  20546. let width = "",
  20547. height = "";
  20548. function isReize() {
  20549. const style = document.defaultView.getComputedStyle(el);
  20550. if (width !== style.width || height !== style.height) {
  20551. binding.value(); // 关键
  20552. }
  20553. width = style.width;
  20554. height = style.height;
  20555. }
  20556. el.__vueSetInterval__ = setInterval(isReize, 300);
  20557. },
  20558. unbind(el) {
  20559. clearInterval(el.__vueSetInterval__);
  20560. },
  20561. },
  20562. autoHeight: {
  20563. update(el, binding) {
  20564. const { value } = binding
  20565. if (value && typeof value === 'number') {
  20566. el.style.height = `${value}px`
  20567. } else {
  20568. el.style.height = 'auto'
  20569. }
  20570. },
  20571. componentUpdated(el) {
  20572. el.style.height = `${el.scrollHeight}px`
  20573. },
  20574. },
  20575. },
  20576. beforeDestroy() {
  20577. window.onresize = null;
  20578. clearInterval(this.timer);
  20579. this.timer = null;
  20580. clearInterval(this.timer2);
  20581. this.timer2 = null;
  20582. clearInterval(this.opertimer);
  20583. this.opertimer = null;
  20584. this.updateSplitScreenData(1);
  20585. },
  20586. computed: {
  20587. contentConvent() {
  20588. return function (c) {
  20589. return c
  20590. ? c
  20591. .replaceAll(/\r\n/g, "<br/>")
  20592. .replaceAll(/\n/g, "<br/>")
  20593. .replaceAll(/\s/g, " &nbsp")
  20594. : "";
  20595. };
  20596. },
  20597. commentRight(){
  20598. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  20599. return "35px";
  20600. }
  20601. return `calc(${this.classRoomHelperWidth} + 5px)`
  20602. // if(this.$refs["classRoomHelperRef"].type==0){
  20603. // return "100px";
  20604. // }else if(this.$refs["classRoomHelperRef"].type==1){
  20605. // return "502px"
  20606. // }else{
  20607. // return "0px"
  20608. // }
  20609. },
  20610. checkUpload() {
  20611. return function () {
  20612. var studentK = [];
  20613. if (this.plworkFile.length > 0) {
  20614. for (var z = 0; z < this.plworkFile.length; z++) {
  20615. studentK.push(this.plworkFile[z].username);
  20616. }
  20617. studentK = studentK.join(",");
  20618. }
  20619. var a = this.uploadStudentJuri.filter((el) => {
  20620. return studentK.indexOf(el.userid) == -1;
  20621. });
  20622. return a;
  20623. };
  20624. },
  20625. getSName() {
  20626. return function (name) {
  20627. var check = name;
  20628. this.uploadStudentJuri.forEach((el) => {
  20629. if (el.userid == check) {
  20630. check = el.name ? el.name : el.username;
  20631. }
  20632. });
  20633. return check;
  20634. };
  20635. },
  20636. getImgList() {
  20637. return function (val) {
  20638. let srcList = []; // 定义一个数组用来接收后面的img地址
  20639. val.replace(
  20640. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  20641. function (match, capture) {
  20642. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  20643. srcList.push(capture);
  20644. }
  20645. );
  20646. return srcList;
  20647. };
  20648. },
  20649. retrnToolHeight(){
  20650. return function (tool) {
  20651. var _tool = document.querySelectorAll('#'+tool)[0]
  20652. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  20653. };
  20654. },
  20655. Correct() {
  20656. return function (c) {
  20657. let w = "";
  20658. let a = this.correctWord;
  20659. for(var k = 0;k<a.length;k++){
  20660. //diffWordsWithSpace
  20661. if(a.length > 1){
  20662. if(a[k].added == true){
  20663. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20664. }else if(a[k].removed == true){
  20665. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20666. }else{
  20667. w += '<span>' + a[k].value + '</span>';
  20668. }
  20669. }else{
  20670. w = c
  20671. }
  20672. //diffChars方法
  20673. // if(a.length > 1){
  20674. // if(w == ""){
  20675. // if(a[k].added == true){
  20676. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20677. // }else if(a[k].removed == true){
  20678. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20679. // }
  20680. // }else{
  20681. // if(k == a.length - 1){
  20682. // if(a[k].added == true){
  20683. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20684. // }else if(a[k].removed == true){
  20685. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20686. // }
  20687. // }else{
  20688. // if(a[k].added == true){
  20689. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20690. // }else if(a[k].removed == true){
  20691. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20692. // }
  20693. // }
  20694. // }
  20695. // }else{
  20696. // w = c
  20697. // }
  20698. }
  20699. c = w;
  20700. return c;
  20701. };
  20702. },
  20703. },
  20704. mounted() {
  20705. document.body.addEventListener("click", (e) => {
  20706. if (this.isUpdateToolDetail1) {
  20707. this.updateToolDetail(this.toolDetailIndex);
  20708. }
  20709. });
  20710. if (this.screenType == 2) {
  20711. window.parent.postMessage({ allScreen: 4 }, "*");
  20712. } else if (this.screenType == 3) {
  20713. window.parent.postMessage({ allScreen: 5 }, "*");
  20714. } else if (this.screenType == 1) {
  20715. window.parent.postMessage({ allScreen: 6 }, "*");
  20716. }
  20717. this.setOperationTime();
  20718. this.selectEva();
  20719. this.getCourseDetail();
  20720. this.selectCount();
  20721. this.getHomeWork();
  20722. this.selectUser();
  20723. this.getAIJ();
  20724. this.updateSplitScreenData(2);
  20725. this.splitScreenData.myUid = uuidv4();
  20726. this.contentDialog = true;
  20727. this.setContent2(true);
  20728. if (this.tType == 4) {
  20729. this.pzDialog = true;
  20730. this.selectPz();
  20731. }
  20732. // 获取评分列表
  20733. this.getScoreList()
  20734. document.scrollingElement.scrollTop = 0;
  20735. window.addEventListener("resize", () => {
  20736. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20737. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20738. if (this.showType == 2 || this.showType == 3) {
  20739. document.getElementsByClassName("navBox")[0].style.height =
  20740. a - 40 + 0+ "px";
  20741. } else {
  20742. document.getElementsByClassName("navBox")[0].style.height =
  20743. a - 40 + "px";
  20744. }
  20745. });
  20746. let _this = this;
  20747. setTimeout(() => {
  20748. // _this.vedioTime = [];
  20749. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20750. // _this.vedioTime[i] = document.getElementsByClassName(
  20751. // "vjs-duration-display"
  20752. // )[i].textContent;
  20753. // }
  20754. }, 1000);
  20755. },
  20756. };
  20757. </script>
  20758. <style scoped>
  20759. @media screen and (max-width: 1280px) {
  20760. /* .courseIndex > div:first-child(2) {
  20761. width: 15% !important;
  20762. } */
  20763. /* .navText {
  20764. width: 120px !important;
  20765. } */
  20766. .evaCss {
  20767. flex-direction: column !important;
  20768. align-items: center !important;
  20769. }
  20770. .elist_input {
  20771. width: 90% !important;
  20772. }
  20773. .dialog_diy1 >>> .el-dialog {
  20774. width: 100% !important;
  20775. }
  20776. .rightWidthCss {
  20777. width: 100% !important;
  20778. }
  20779. .dialog_diy3 >>> .el-dialog {
  20780. width: 100% !important;
  20781. }
  20782. .addToolCss {
  20783. right: 0 !important;
  20784. width: 100% !important;
  20785. min-width: unset !important;
  20786. }
  20787. }
  20788. .evaCssMax {
  20789. flex-direction: column !important;
  20790. align-items: center !important;
  20791. }
  20792. .dialog_diy >>> .el-dialog {
  20793. margin-top: 10vh !important;
  20794. }
  20795. .body_student {
  20796. width: 77%;
  20797. height: 100%;
  20798. position: absolute;
  20799. left: 22%;
  20800. top: 0;
  20801. }
  20802. .student_head {
  20803. width: 100%;
  20804. margin: 20px auto 0;
  20805. padding-bottom: 20px;
  20806. display: flex;
  20807. flex-direction: column;
  20808. flex-wrap: nowrap;
  20809. align-items: flex-start;
  20810. justify-content: flex-start;
  20811. }
  20812. .pb_left {
  20813. width: 20%;
  20814. margin-right: 10px;
  20815. background: rgb(255, 255, 255);
  20816. position: fixed;
  20817. height: calc(100% - 40px);
  20818. border-radius: 20px;
  20819. padding-bottom: 15px;
  20820. box-sizing: border-box;
  20821. }
  20822. .wheel > img,
  20823. .project > img,
  20824. .star > img,
  20825. .evaluate > img,
  20826. .up_photo > img,
  20827. .chapter_add > img,
  20828. .deleteWord > img,
  20829. .question > img,
  20830. .homework > img {
  20831. width: 100%;
  20832. height: 100%;
  20833. }
  20834. .upCover > img {
  20835. width: 131px;
  20836. height: 69px;
  20837. object-fit: cover;
  20838. }
  20839. .upCover {
  20840. width: calc(100% / 3.5);
  20841. position: relative;
  20842. margin: 0 15px 10px 0;
  20843. display: flex;
  20844. flex-direction: column;
  20845. flex-wrap: nowrap;
  20846. justify-content: center;
  20847. align-content: center;
  20848. align-items: center;
  20849. height: fit-content;
  20850. }
  20851. .upCover2 {
  20852. width: 100%;
  20853. position: relative;
  20854. margin: 0 15px 10px 0;
  20855. display: flex;
  20856. flex-direction: column;
  20857. flex-wrap: nowrap;
  20858. justify-content: center;
  20859. align-content: center;
  20860. align-items: center;
  20861. }
  20862. .upCover2 > img {
  20863. width: 100%;
  20864. height: 90px;
  20865. object-fit: contain;
  20866. }
  20867. .chapter_add {
  20868. width: 120px;
  20869. position: relative;
  20870. text-align: center;
  20871. }
  20872. .isAddThings {
  20873. margin-top: 20px;
  20874. position: relative;
  20875. text-align: center;
  20876. background: #f7f8fa;
  20877. height: 90px;
  20878. width: 90px;
  20879. display: flex;
  20880. flex-direction: column;
  20881. justify-content: center;
  20882. }
  20883. .deleteWord {
  20884. width: 22px;
  20885. height: 22px;
  20886. position: absolute;
  20887. right: -5px;
  20888. top: -5px;
  20889. cursor: pointer;
  20890. }
  20891. .box_course {
  20892. /* width: 60%; */
  20893. width: calc(100% - 300px);
  20894. }
  20895. .wheel {
  20896. width: 100%;
  20897. /* height: 100%; */
  20898. height: 650px;
  20899. }
  20900. .right_box {
  20901. display: flex;
  20902. flex-direction: column;
  20903. margin-left: 30px;
  20904. justify-content: space-around;
  20905. }
  20906. .right_box_title {
  20907. font-size: 23px;
  20908. }
  20909. .people {
  20910. display: flex;
  20911. }
  20912. .student_body {
  20913. width: 100%;
  20914. margin: 0 auto;
  20915. margin-top: 10px;
  20916. padding: 0 0 20px;
  20917. }
  20918. .study_top {
  20919. margin-top: 100px;
  20920. width: 100%;
  20921. height: auto;
  20922. padding-bottom: 20px;
  20923. margin-left: 2px;
  20924. min-height: 90%;
  20925. }
  20926. .study_top .checkbox {
  20927. display: flex;
  20928. align-items: center;
  20929. padding: 15px 0 15px 30px;
  20930. flex: 0 0 auto;
  20931. font-weight: bold;
  20932. border-bottom: 1px solid #eee;
  20933. }
  20934. .study_top .check {
  20935. padding-bottom: 5px;
  20936. text-align: center;
  20937. cursor: pointer;
  20938. height: 30px;
  20939. box-sizing: border-box;
  20940. display: flex;
  20941. }
  20942. .study_top .checked {
  20943. border-bottom: 4px solid #3fc6a0;
  20944. padding-bottom: 5px;
  20945. color: #3fc6a0;
  20946. display: flex;
  20947. height: 35px;
  20948. }
  20949. .study_top .checked > div,
  20950. .study_top .check > div {
  20951. margin-right: 5px;
  20952. }
  20953. .videoTop {
  20954. display: flex;
  20955. flex-direction: row;
  20956. justify-content: space-between;
  20957. background: #fff;
  20958. align-items: center;
  20959. width: 95%;
  20960. padding: 20px;
  20961. }
  20962. .filebox {
  20963. display: flex;
  20964. flex-wrap: wrap;
  20965. flex-direction: column;
  20966. padding: 0 0 5px;
  20967. position: relative;
  20968. }
  20969. .filebox:before {
  20970. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20971. position: absolute;
  20972. top: 20px;
  20973. left: 13px;
  20974. border-left: 2px dotted #cad1dc;
  20975. height: calc(100% - 15px);
  20976. }
  20977. .toolHeng2 > div:last-child::before {
  20978. height: calc(100% - 43px);
  20979. }
  20980. .filebox .tooldetail {
  20981. width: calc(100%);
  20982. margin: 0px 12px;
  20983. padding: 12px;
  20984. line-height: 30px;
  20985. word-break: break-word;
  20986. background: #ffffff;
  20987. border-radius: 8px 8px 8px 8px;
  20988. opacity: 1;
  20989. border: 1px solid #cad1dc;
  20990. overflow:hidden;
  20991. box-sizing:border-box;
  20992. }
  20993. .file {
  20994. display: flex;
  20995. flex-direction: column;
  20996. align-items: center;
  20997. justify-content: center;
  20998. cursor: pointer;
  20999. width: 200px;
  21000. }
  21001. .file div {
  21002. margin-top: 10px;
  21003. width: 150px;
  21004. text-align: center;
  21005. overflow: hidden;
  21006. white-space: nowrap;
  21007. text-overflow: ellipsis;
  21008. }
  21009. .media {
  21010. display: flex;
  21011. flex-direction: column;
  21012. align-items: center;
  21013. justify-content: center;
  21014. margin: 0 20px 20px 0;
  21015. cursor: pointer;
  21016. margin: 12px 0 5px 15px;
  21017. overflow: hidden;
  21018. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21019. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21020. box-sizing: border-box;
  21021. }
  21022. .media img {
  21023. height: 90px;
  21024. width: 160px;
  21025. object-fit: cover;
  21026. }
  21027. .media .title {
  21028. padding: 5px;
  21029. text-align: left;
  21030. width: 100%;
  21031. box-sizing: border-box;
  21032. }
  21033. .media .btn {
  21034. width: 100%;
  21035. height: 35px;
  21036. line-height: 35px;
  21037. color: #fff;
  21038. background: #606060;
  21039. text-align: center;
  21040. overflow: hidden;
  21041. white-space: nowrap;
  21042. text-overflow: ellipsis;
  21043. }
  21044. .detail_content_top {
  21045. width: 100%;
  21046. padding: 25px 0 25px 0;
  21047. }
  21048. .detail_title {
  21049. text-align: center;
  21050. font-size: 24px;
  21051. }
  21052. .detail_time {
  21053. font-size: 13px;
  21054. padding: 15px 0 0 40px;
  21055. }
  21056. .detail_content {
  21057. line-height: 2pc;
  21058. width: 90%;
  21059. margin: 0 auto;
  21060. padding-top: 30px;
  21061. text-indent: 30px;
  21062. overflow: auto;
  21063. height: 200px;
  21064. }
  21065. .score_box >>> .el-rate {
  21066. margin-left: 10px;
  21067. }
  21068. .dialog_change >>> .el-dialog {
  21069. border-radius: 5px;
  21070. }
  21071. .dialog_change >>> .el-dialog__header {
  21072. background: #f2f2f2;
  21073. text-align: center;
  21074. }
  21075. .dialog_change >>> .el-dialog__title {
  21076. line-height: 5px;
  21077. }
  21078. .dialog_change >>> .el-dialog__body {
  21079. background: #fff;
  21080. padding: 10px 20px;
  21081. }
  21082. .score_box {
  21083. display: flex;
  21084. align-items: center;
  21085. margin-bottom: 18px;
  21086. margin-top: 20px;
  21087. }
  21088. .up_photo {
  21089. width: 120px;
  21090. cursor: pointer;
  21091. margin-top: 10px;
  21092. }
  21093. .up_photo2 {
  21094. width: 180px;
  21095. box-sizing: border-box;
  21096. min-width: 180px;
  21097. height: 180px;
  21098. max-height: 180px;
  21099. min-height: 180px;
  21100. cursor: pointer;
  21101. display: flex;
  21102. flex-direction: column;
  21103. align-items: center;
  21104. justify-content: center;
  21105. background: rgb(242, 246, 255);
  21106. /* padding: 25px; */
  21107. margin-bottom: 10px;
  21108. }
  21109. .up_photo2 img {
  21110. width: 50%;
  21111. height: auto;
  21112. }
  21113. .up_photo2 span {
  21114. color: #898989;
  21115. }
  21116. .plworkBox {
  21117. display: flex;
  21118. align-items: center;
  21119. margin-top: 10px;
  21120. flex-wrap: wrap;
  21121. }
  21122. .upload_send {
  21123. margin: 30px auto 30px;
  21124. width: 60%;
  21125. background: #3681fc;
  21126. text-align: center;
  21127. height: 35px;
  21128. line-height: 35px;
  21129. color: #fff;
  21130. border-radius: 5px;
  21131. cursor: pointer;
  21132. }
  21133. .marginT {
  21134. margin-top: 20px;
  21135. }
  21136. .cd_content_steps {
  21137. display: flex;
  21138. width: 90%;
  21139. justify-content: space-around;
  21140. border-top: 1px solid #eeeeee;
  21141. }
  21142. .cd_steps_box {
  21143. display: flex;
  21144. justify-content: center;
  21145. align-items: center;
  21146. flex-direction: column;
  21147. cursor: pointer;
  21148. }
  21149. .first {
  21150. display: flex;
  21151. align-items: center;
  21152. margin: 15px 0 20px 0;
  21153. font-size: 20px;
  21154. }
  21155. .first > div:nth-child(2) {
  21156. font-size: 16px !important;
  21157. padding-left: 10px;
  21158. line-height: 26px;
  21159. box-sizing: border-box;
  21160. }
  21161. .blue_box_one {
  21162. text-align: center;
  21163. color: #fff;
  21164. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  21165. border-radius: 7px;
  21166. margin: 10px;
  21167. cursor: pointer;
  21168. width: 95%;
  21169. height: 45px;
  21170. display: flex;
  21171. flex-direction: row;
  21172. justify-content: flex-start;
  21173. align-items: center;
  21174. }
  21175. .blue_box_one > div:nth-child(1) {
  21176. line-height: 30px;
  21177. margin: 0 5px 0 10px;
  21178. width: 30%;
  21179. min-width: 70px;
  21180. border-radius: 4px;
  21181. }
  21182. .blue_box_one > div:nth-child(2) {
  21183. white-space: nowrap;
  21184. text-overflow: ellipsis;
  21185. overflow: hidden;
  21186. word-break: break-all;
  21187. width: 70%;
  21188. text-align: left;
  21189. margin-right: 10px;
  21190. max-width: calc(100% - 85px);
  21191. }
  21192. .blue_box_one > div:nth-child(2):hover {
  21193. overflow: hidden;
  21194. text-overflow: ellipsis;
  21195. white-space: nowrap;
  21196. cursor: pointer;
  21197. }
  21198. .upFile {
  21199. margin: 0 auto;
  21200. width: 120px;
  21201. background: #3681fc;
  21202. color: #fff;
  21203. height: 30px;
  21204. text-align: center;
  21205. line-height: 30px;
  21206. border-radius: 5px;
  21207. font-size: 14px;
  21208. cursor: pointer;
  21209. }
  21210. .courseTitle {
  21211. width: 85%;
  21212. margin: 10px auto 26px auto;
  21213. display: flex;
  21214. flex-direction: row;
  21215. align-items: center;
  21216. justify-content: space-between;
  21217. text-align: center;
  21218. }
  21219. .courseTitle .ctitle {
  21220. font-size: 20px;
  21221. font-weight: bold;
  21222. color: #0e1e33;
  21223. white-space: nowrap;
  21224. overflow: hidden;
  21225. text-overflow: ellipsis;
  21226. }
  21227. .inviteBox {
  21228. font-size: 14px;
  21229. /* margin-top: 5px; */
  21230. color: #00000099;
  21231. text-align: center;
  21232. }
  21233. .courseTitle >>> .el-tooltip {
  21234. width: 100%;
  21235. white-space: nowrap;
  21236. overflow: hidden;
  21237. text-overflow: ellipsis;
  21238. word-break: break-word;
  21239. }
  21240. .ml {
  21241. margin-left: 20px;
  21242. color: #5b7dba;
  21243. border-left: 3px solid #5b7dba;
  21244. padding-left: 5px;
  21245. font-weight: bold;
  21246. }
  21247. .return {
  21248. width: 2rem;
  21249. height: 2rem;
  21250. cursor: pointer;
  21251. }
  21252. .return > img {
  21253. width: 100%;
  21254. height: 100%;
  21255. }
  21256. .returnBtn {
  21257. width: 86px;
  21258. height: 36px;
  21259. background: #3681fc;
  21260. border-radius: 4px;
  21261. color: #fff;
  21262. text-align: center;
  21263. line-height: 36px;
  21264. margin-right: 20px;
  21265. cursor: pointer;
  21266. font-size: 14px;
  21267. font-weight: 400;
  21268. display: flex;
  21269. flex-direction: row;
  21270. flex-wrap: nowrap;
  21271. align-items: center;
  21272. justify-content: center;
  21273. }
  21274. .reBtnIcon,
  21275. .commentIcon,
  21276. .vedioIcon,
  21277. .vedioIcon1 {
  21278. /* width: 36px; */
  21279. height: 36px;
  21280. border-radius: 4px;
  21281. position: relative;
  21282. /* background: #e0eafb; */
  21283. background: #0061ff;
  21284. cursor: pointer;
  21285. margin-right: 12px;
  21286. display: flex;
  21287. align-items: center;
  21288. padding: 0 10px;
  21289. box-sizing: border-box;
  21290. font-size: 14px;
  21291. color: #fff;
  21292. }
  21293. .reBtnIcon::before,
  21294. .commentIcon::before,
  21295. .vedioIcon::before,
  21296. .vedioIcon1::before {
  21297. content: "";
  21298. display: block;
  21299. background-size: 100% 100%;
  21300. background-repeat: no-repeat;
  21301. width: 20px;
  21302. height: 20px;
  21303. margin-right: 5px;
  21304. /* position: absolute; */
  21305. /* top: 8px;
  21306. left: 8px; */
  21307. }
  21308. .vedioIcon1 {
  21309. background: #f63564;
  21310. }
  21311. .reBtnIcon::before {
  21312. background-image: url("../assets/icon/newIcons/refresh.png");
  21313. }
  21314. .commentIcon::before {
  21315. background-image: url("../assets/icon/newIcons/comment.png");
  21316. }
  21317. .vedioIcon::before {
  21318. background-image: url("../assets/icon/newIcons/transcribe.png");
  21319. }
  21320. .vedioIcon1::before {
  21321. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  21322. background-image: url("../assets/icon/newIcons/transcribe.png");
  21323. }
  21324. .tool {
  21325. display: flex;
  21326. flex-direction: column;
  21327. flex-wrap: nowrap;
  21328. width: 13%;
  21329. margin: 0 30px;
  21330. align-items: center;
  21331. position: relative;
  21332. padding: 10px 25px;
  21333. cursor: pointer;
  21334. }
  21335. .whiteBIcon {
  21336. width: 150px;
  21337. }
  21338. .whiteBIcon > img {
  21339. width: 100%;
  21340. height: 100%;
  21341. }
  21342. .mask {
  21343. background-color: rgba(0, 0, 0, 0);
  21344. position: fixed;
  21345. top: 0;
  21346. left: 0;
  21347. width: 100%;
  21348. height: 100%;
  21349. z-index: 20000;
  21350. display: flex;
  21351. align-items: center;
  21352. justify-content: center;
  21353. }
  21354. .progressBox {
  21355. width: 500px;
  21356. height: 180px;
  21357. background: #fff;
  21358. border-radius: 10px;
  21359. box-shadow: 0 0 6px 1px #bfbfbf;
  21360. display: flex;
  21361. align-items: center;
  21362. justify-content: center;
  21363. flex-direction: column;
  21364. position: relative;
  21365. color: #6c6c6c;
  21366. }
  21367. .progressBox >>> .el-progress-bar__outer {
  21368. background-color: #d1dfff !important;
  21369. }
  21370. .progressBox .lbox {
  21371. height: 50px;
  21372. font-size: 19px;
  21373. display: flex;
  21374. align-items: center;
  21375. color: #747474;
  21376. }
  21377. .progressBox .lbox img {
  21378. width: 40px;
  21379. margin-right: 20px;
  21380. }
  21381. .closeCss {
  21382. position: absolute;
  21383. top: 8px;
  21384. right: 8px;
  21385. cursor: pointer;
  21386. width: 20px;
  21387. height: 20px;
  21388. }
  21389. .closeCss > img {
  21390. width: 100%;
  21391. height: 100%;
  21392. }
  21393. .uploadVedio {
  21394. display: flex;
  21395. flex-direction: column;
  21396. flex-wrap: nowrap;
  21397. justify-content: center;
  21398. align-items: center;
  21399. margin: 0 15px 10px 0;
  21400. }
  21401. .uploadVedio > img {
  21402. width: 30px;
  21403. height: 30px;
  21404. }
  21405. .uploadVedio > span {
  21406. white-space: nowrap;
  21407. overflow: hidden;
  21408. text-overflow: ellipsis;
  21409. width: 75px;
  21410. margin-top: 7px;
  21411. }
  21412. .picName {
  21413. white-space: nowrap;
  21414. overflow: hidden;
  21415. text-overflow: ellipsis;
  21416. width: 75px;
  21417. margin-top: 7px;
  21418. }
  21419. .new_top {
  21420. display: flex;
  21421. background: #fff;
  21422. flex-direction: row;
  21423. justify-content: flex-start;
  21424. align-items: center;
  21425. height: 60px;
  21426. position: fixed;
  21427. top: 20px;
  21428. left: 22%;
  21429. width: 77%;
  21430. z-index: 999;
  21431. border-radius: 12px 12px 0 0;
  21432. border-bottom: 1px solid #cad1dc;
  21433. padding: 10px 0;
  21434. }
  21435. .new_topFixed {
  21436. width: 100%;
  21437. height: 40px;
  21438. position: fixed;
  21439. top: 0px;
  21440. display: block;
  21441. background: #f2f2f2;
  21442. z-index: 998;
  21443. }
  21444. .before {
  21445. position: absolute;
  21446. background: #c3dad4;
  21447. width: 6px;
  21448. height: 100%;
  21449. }
  21450. .courseIndex {
  21451. display: flex;
  21452. flex-direction: row;
  21453. align-items: center;
  21454. width: calc(100% - 745px);
  21455. }
  21456. .courseIndex > div:nth-child(1) {
  21457. margin: 0 0 0 10px;
  21458. font-size: 20px;
  21459. min-width: 100px;
  21460. font-weight: bold;
  21461. border-left: 4px solid #3363b9;
  21462. height: 32px;
  21463. text-align: center;
  21464. line-height: 35px;
  21465. }
  21466. .courseIndex > div:nth-child(2) {
  21467. font-size: 20px;
  21468. /* width: 300px; */
  21469. max-width: calc(100% - 105px);
  21470. white-space: nowrap;
  21471. overflow: hidden;
  21472. text-overflow: ellipsis;
  21473. }
  21474. .courseIndex > div:nth-child(3) {
  21475. border-bottom: 1px solid #d7d7d7;
  21476. padding-bottom: 5px;
  21477. background: #3681fc;
  21478. width: 55px;
  21479. min-width: 55px;
  21480. border-radius: 5px;
  21481. color: #fff;
  21482. text-align: center;
  21483. height: 20px;
  21484. line-height: 26px;
  21485. font-size: 14px;
  21486. margin: 0 0 0 10px;
  21487. }
  21488. .course_text {
  21489. padding: 20px 0 0 15px;
  21490. text-indent: 30px;
  21491. width: 80%;
  21492. min-height: 20px;
  21493. }
  21494. .vedioList {
  21495. background: #f2f2f2;
  21496. border: 1px solid #ececec;
  21497. /* width: 38.8%; */
  21498. /* width: 300px; */
  21499. width: 100%;
  21500. height: 445px;
  21501. border-radius: 10px;
  21502. overflow: hidden;
  21503. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  21504. }
  21505. .vedioNav {
  21506. margin: 10px 0 0 15px;
  21507. border-bottom: 1px solid #d7d7d7;
  21508. padding-bottom: 5px;
  21509. background: #3681fc;
  21510. width: 55px;
  21511. min-width: 55px;
  21512. border-radius: 5px;
  21513. color: #fff;
  21514. text-align: center;
  21515. height: 20px;
  21516. line-height: 26px;
  21517. font-size: 14px;
  21518. }
  21519. .queTop {
  21520. display: flex;
  21521. padding: 20px 0 20px 30px;
  21522. width: 100%;
  21523. flex-direction: row;
  21524. justify-content: flex-start;
  21525. align-items: center;
  21526. box-sizing: border-box;
  21527. }
  21528. .queTopTitle {
  21529. display: flex;
  21530. flex-direction: row;
  21531. flex-wrap: nowrap;
  21532. align-items: center;
  21533. font-weight: bold;
  21534. font-size: 20px;
  21535. color: rgb(14, 30, 51);
  21536. }
  21537. .queTopTitle::before {
  21538. content: "";
  21539. width: 2px;
  21540. height: 22px;
  21541. background: #3681fc;
  21542. border-radius: 3px;
  21543. display: block;
  21544. margin: 2px 6px 0 0;
  21545. }
  21546. .queTopRight {
  21547. display: flex;
  21548. flex-direction: row;
  21549. flex-wrap: nowrap;
  21550. align-items: center;
  21551. }
  21552. .queTopClose {
  21553. margin-right: 20px;
  21554. cursor: pointer;
  21555. position: relative;
  21556. display: flex;
  21557. }
  21558. .closeImg,
  21559. .openImg {
  21560. width: 25px;
  21561. height: 25px;
  21562. position: absolute;
  21563. left: -20px;
  21564. top: -1px;
  21565. }
  21566. .closeImg > img,
  21567. .openImg > img {
  21568. width: 100%;
  21569. height: 100%;
  21570. }
  21571. .question {
  21572. width: 40px;
  21573. margin-right: 10px;
  21574. margin-top: 7px;
  21575. }
  21576. .queTitle {
  21577. margin-left: 5px;
  21578. font-size: 25px;
  21579. display: flex;
  21580. align-items: center;
  21581. }
  21582. .addEditor {
  21583. width: 100px;
  21584. height: 30px;
  21585. background: #42cda6;
  21586. color: #fff;
  21587. border-radius: 5px;
  21588. text-align: center;
  21589. line-height: 30px;
  21590. box-shadow: 1px 3px 6px 1px #bfbfbf;
  21591. cursor: pointer;
  21592. }
  21593. /* .vedioName {
  21594. cursor: pointer;
  21595. margin: 0px 0px 10px 5px;
  21596. white-space: nowrap;
  21597. overflow: hidden;
  21598. text-overflow: ellipsis;
  21599. width: 100%;
  21600. } */
  21601. .vedioTime {
  21602. width: 35px;
  21603. position: absolute;
  21604. color: #fff;
  21605. bottom: 0px;
  21606. right: 0px;
  21607. text-align: center;
  21608. background: #46411f;
  21609. height: 20px;
  21610. font-size: 14px;
  21611. line-height: 20px;
  21612. }
  21613. .homework {
  21614. width: 200px;
  21615. display: flex;
  21616. flex-direction: column;
  21617. flex-wrap: nowrap;
  21618. align-items: center;
  21619. cursor: pointer;
  21620. }
  21621. .homebox {
  21622. display: flex;
  21623. flex-wrap: wrap;
  21624. flex-direction: row;
  21625. justify-content: flex-start;
  21626. align-items: center;
  21627. padding: 15px 0;
  21628. }
  21629. .isChooseActive {
  21630. color: #3681fc !important;
  21631. font-weight: bold !important;
  21632. }
  21633. .chooseWho {
  21634. display: flex;
  21635. width: 100%;
  21636. flex-direction: row;
  21637. flex-wrap: nowrap;
  21638. justify-content: flex-start;
  21639. padding-bottom: 10px;
  21640. }
  21641. .chooseWho > div {
  21642. cursor: pointer;
  21643. padding-bottom: 10px;
  21644. margin: 0 30px 0 0;
  21645. font-weight: 400;
  21646. color: #0e1e33;
  21647. }
  21648. .addPoint > div > img {
  21649. cursor: pointer;
  21650. width: 85px;
  21651. border-radius: 15px;
  21652. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  21653. }
  21654. .addPoint > div {
  21655. display: flex;
  21656. flex-direction: column;
  21657. flex-wrap: nowrap;
  21658. align-items: center;
  21659. }
  21660. .isBorder > div {
  21661. margin: 0 0 10px 0;
  21662. align-items: flex-start !important;
  21663. }
  21664. .noiframeBox {
  21665. display: flex;
  21666. flex-wrap: wrap;
  21667. }
  21668. .iframeBox iframe {
  21669. width: 100%;
  21670. height: 800px;
  21671. border: none;
  21672. margin-bottom: 20px;
  21673. border: 1px solid #ccc;
  21674. }
  21675. .upload_toolBtn {
  21676. background: #3681fc;
  21677. color: #fff;
  21678. width: 110px;
  21679. text-align: center;
  21680. height: 35px;
  21681. line-height: 35px;
  21682. font-size: 14px;
  21683. border-radius: 5px;
  21684. cursor: pointer;
  21685. position: absolute;
  21686. right: 10px;
  21687. bottom: 0;
  21688. }
  21689. .binfo_input,
  21690. .pj {
  21691. font: inherit;
  21692. color: currentColor;
  21693. width: 100%;
  21694. margin: 0;
  21695. padding: 15px 14px;
  21696. display: block;
  21697. min-width: 0;
  21698. outline: none;
  21699. box-sizing: content-box;
  21700. background: none;
  21701. -webkit-tap-highlight-color: transparent;
  21702. border: 1px solid rgba(0, 0, 0, 0.23);
  21703. border-radius: 4px;
  21704. box-sizing: border-box;
  21705. resize: none;
  21706. }
  21707. .binfo_input:focus-visible {
  21708. border: 1px solid rgba(61, 103, 188);
  21709. }
  21710. .dialog_diy >>> .el-dialog__header,
  21711. .dialog_diy1 >>> .el-dialog__header {
  21712. background: #454545 !important;
  21713. padding: 15px 20px;
  21714. }
  21715. .dialog_diy >>> .el-dialog__title,
  21716. .dialog_diy1 >>> .el-dialog__title {
  21717. color: #fff;
  21718. }
  21719. .dialog_diy >>> .el-dialog__headerbtn,
  21720. .dialog_diy1 >>> .el-dialog__headerbtn {
  21721. top: 19px;
  21722. }
  21723. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  21724. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  21725. color: #fff;
  21726. }
  21727. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  21728. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  21729. color: #fff;
  21730. }
  21731. .dialog_diy1 >>> .el-dialog__body {
  21732. padding: 0;
  21733. }
  21734. .dialog_diy >>> .el-dialog__body,
  21735. .dialog_diy >>> .el-dialog__footer,
  21736. .dialog_diy1 >>> .el-dialog__footer {
  21737. background: #fafafa;
  21738. }
  21739. .a_addBox {
  21740. padding: 0 0 0 15px;
  21741. }
  21742. .a_add_box {
  21743. padding: 10px;
  21744. background: #fff;
  21745. margin-bottom: 10px;
  21746. border-radius: 5px;
  21747. box-shadow: 0 0 5px 0 #d5d5d5;
  21748. }
  21749. .a_add_head {
  21750. display: flex;
  21751. align-items: flex-start;
  21752. /* justify-content: space-between; */
  21753. flex-direction: column;
  21754. /* flex-direction: row; */
  21755. margin: 10px 0 20px 0;
  21756. font-size: 18px;
  21757. width: 100%;
  21758. }
  21759. .askIndex {
  21760. background: #3681fc;
  21761. border-radius: 50%;
  21762. color: #fff;
  21763. width: 25px;
  21764. height: 25px;
  21765. min-width: 25px;
  21766. min-height: 25px;
  21767. text-align: center;
  21768. line-height: 25px;
  21769. margin-right: 5px;
  21770. }
  21771. .a_add_head .a_add_head_input {
  21772. width: 300px;
  21773. }
  21774. .a_add_head .a_add_head_div {
  21775. display: flex;
  21776. align-items: center;
  21777. justify-content: space-between;
  21778. }
  21779. .a_add_body {
  21780. display: flex;
  21781. align-items: center;
  21782. }
  21783. .a_add_input {
  21784. display: flex;
  21785. align-items: center;
  21786. flex-wrap: wrap;
  21787. width: 100%;
  21788. }
  21789. .a_add_input >>> .el-radio-group,
  21790. .a_add_input >>> .el-checkbox-group {
  21791. width: 100%;
  21792. }
  21793. .a_add_input >>> .el-radio,
  21794. .a_add_input >>> .el-checkbox {
  21795. display: flex;
  21796. flex-direction: row;
  21797. flex-wrap: nowrap;
  21798. align-items: center;
  21799. padding: 15px 0;
  21800. }
  21801. .a_add_input >>> .el-radio:not(:last-child),
  21802. .a_add_input >>> .el-checkbox:not(:last-child) {
  21803. width: 100%;
  21804. border-bottom: 1px solid #efefef;
  21805. }
  21806. .redioStyle >>> .el-radio__label {
  21807. font-size: 18px;
  21808. }
  21809. .redioStyle >>> .el-radio__label > span,
  21810. .redioStyle >>> .el-checkbox__label > span {
  21811. word-break: break-all;
  21812. white-space: normal;
  21813. }
  21814. .redioStyle >>> .el-checkbox__label {
  21815. font-size: 18px;
  21816. }
  21817. .toolHeng2 {
  21818. width: 100%;
  21819. padding-left: 15px;
  21820. box-sizing: border-box;
  21821. }
  21822. .workNav {
  21823. font-size: 20px;
  21824. font-weight: bold;
  21825. color: #0e1e33;
  21826. display: flex;
  21827. flex-direction: row;
  21828. flex-wrap: nowrap;
  21829. align-items: center;
  21830. padding: 15px 0 15px 0;
  21831. }
  21832. .workNav::before {
  21833. content: "";
  21834. width: 2px;
  21835. height: 22px;
  21836. background: #3681fc;
  21837. border-radius: 3px;
  21838. display: block;
  21839. margin: 2px 6px 0 0;
  21840. }
  21841. .toolHeng {
  21842. display: flex;
  21843. flex-direction: row;
  21844. flex-wrap: wrap;
  21845. justify-content: flex-start;
  21846. align-items: center;
  21847. width: 100%;
  21848. }
  21849. .toolHeng > div {
  21850. padding-left: 20px;
  21851. }
  21852. .isWidth {
  21853. width: 20%;
  21854. }
  21855. .textTitle {
  21856. display: flex;
  21857. flex-direction: row;
  21858. flex-wrap: nowrap;
  21859. align-items: center;
  21860. width: 95%;
  21861. }
  21862. .textTitle >>> .el-form-item__label {
  21863. font-size: 22px;
  21864. color: #918f8f;
  21865. width: 100px;
  21866. }
  21867. .textTitle >>> .el-form-item__content {
  21868. width: calc(100% - 100px);
  21869. }
  21870. .textCss >>> .el-dialog {
  21871. width: 800px !important;
  21872. height: 400px;
  21873. background: #fafafa;
  21874. }
  21875. .textCss >>> .el-dialog__body {
  21876. margin: 55px 8% 0 8%;
  21877. padding: 0 !important;
  21878. }
  21879. .textCss >>> .el-dialog__footer {
  21880. padding-top: 38px;
  21881. }
  21882. .toolsCss >>> .el-dialog__body {
  21883. padding: 20px;
  21884. }
  21885. .lineCss >>> .el-dialog__body {
  21886. display: flex;
  21887. flex-direction: row;
  21888. align-items: center;
  21889. justify-content: center;
  21890. }
  21891. .newNav {
  21892. display: flex;
  21893. flex-direction: row;
  21894. align-items: baseline;
  21895. justify-content: flex-start;
  21896. }
  21897. .navListItem {
  21898. width: calc(100% - 20px);
  21899. height: 50px;
  21900. margin: 0px auto 10px;
  21901. display: flex;
  21902. flex-direction: row;
  21903. flex-wrap: nowrap;
  21904. align-items: center;
  21905. justify-content: space-between;
  21906. background: #f0f4fa;
  21907. border-radius: 6px 6px 6px 6px;
  21908. }
  21909. .navText {
  21910. cursor: pointer;
  21911. white-space: nowrap;
  21912. overflow: hidden;
  21913. text-overflow: ellipsis;
  21914. width: 220px;
  21915. padding: 0 10px;
  21916. font-weight: 400;
  21917. color: #0e1e33;
  21918. }
  21919. .downIcon {
  21920. width: 20px;
  21921. min-width: 20px;
  21922. height: 20px;
  21923. margin-right: 15px;
  21924. cursor: pointer;
  21925. }
  21926. .downIcon > img {
  21927. width: 100%;
  21928. height: 100%;
  21929. }
  21930. .noVedio {
  21931. display: flex;
  21932. flex-direction: row;
  21933. justify-content: center;
  21934. align-content: center;
  21935. }
  21936. .noNavText {
  21937. cursor: pointer;
  21938. margin: 0px 0px 10px 5px;
  21939. width: 112px;
  21940. }
  21941. .listNoVedio {
  21942. margin: 0 0 0 30px;
  21943. width: 97%;
  21944. }
  21945. .video-player >>> .video-js {
  21946. height: 100%;
  21947. }
  21948. .hangVedioList {
  21949. width: 90% !important;
  21950. height: 150px !important;
  21951. margin: 20px 0 0 30px;
  21952. }
  21953. .hangVedio {
  21954. width: 100%;
  21955. height: 170px !important;
  21956. align-items: flex-start !important;
  21957. }
  21958. .hangHand {
  21959. height: 150px !important;
  21960. }
  21961. .twoChild {
  21962. width: 95%;
  21963. margin: 10px;
  21964. border-radius: 5px;
  21965. background: #f2f2f2;
  21966. display: flex;
  21967. flex-direction: column;
  21968. flex-wrap: nowrap;
  21969. justify-content: flex-start;
  21970. align-items: flex-start;
  21971. transition: all 0.5s;
  21972. overflow: hidden;
  21973. height: 0;
  21974. background: #e7f3ff;
  21975. }
  21976. .twoChild > div:nth-child(1) {
  21977. margin-top: 5px;
  21978. }
  21979. .navChild {
  21980. width: 100%;
  21981. cursor: pointer;
  21982. margin-bottom: 10px;
  21983. position: relative;
  21984. }
  21985. .navChild img {
  21986. position: absolute;
  21987. right: 11px;
  21988. width: 15px;
  21989. top: 50%;
  21990. transform: translateY(-50%);
  21991. }
  21992. .navActive,
  21993. .toolActive {
  21994. height: auto !important;
  21995. overflow: auto !important;
  21996. /* padding-bottom: 16px; */
  21997. }
  21998. .toolActive {
  21999. padding: 0;
  22000. }
  22001. .navTask {
  22002. display: flex;
  22003. flex-direction: row;
  22004. flex-wrap: nowrap;
  22005. align-items: center;
  22006. align-content: flex-start;
  22007. height: 40px;
  22008. justify-content: flex-start;
  22009. padding: 0 10px;
  22010. width: 100%;
  22011. box-sizing: border-box;
  22012. }
  22013. .navTaskname {
  22014. white-space: nowrap;
  22015. text-overflow: ellipsis;
  22016. overflow: hidden;
  22017. word-break: break-all;
  22018. padding-left: 5px;
  22019. }
  22020. .openTaskActive {
  22021. /* background-color: #e0eafb !important;
  22022. color: #0061ff; */
  22023. color:#fff;
  22024. background: rgb(55, 129, 252) !important;
  22025. }
  22026. .iframeName {
  22027. margin: 5px 0;
  22028. border-left: 4px solid #41c4a4;
  22029. padding-left: 4px;
  22030. }
  22031. .toolTitle {
  22032. margin: 0px 0px 20px;
  22033. font-size: 20px;
  22034. font-weight: 500;
  22035. border-left: 4px solid #41c4a4;
  22036. padding-left: 4px;
  22037. }
  22038. .cru_selectBox {
  22039. overflow: auto;
  22040. width: 95%;
  22041. margin: 17px auto 0;
  22042. height: calc(100% - 40px - 21px - 20px - 17px);
  22043. background: #fff;
  22044. border-radius: 8px;
  22045. }
  22046. .cru_selectBox::-webkit-scrollbar,
  22047. .study_top::-webkit-scrollbar,
  22048. .textContent::-webkit-scrollbar {
  22049. /*滚动条整体样式*/
  22050. width: 6px;
  22051. /*高宽分别对应横竖滚动条的尺寸*/
  22052. height: 6px;
  22053. }
  22054. /*定义滚动条轨道 内阴影+圆角*/
  22055. .cru_selectBox::-webkit-scrollbar-track,
  22056. .study_top::-webkit-scrollbar-track,
  22057. .textContent::-webkit-scrollbar {
  22058. border-radius: 10px;
  22059. background-color: #b8bdc9;
  22060. }
  22061. /*定义滑块 内阴影+圆角*/
  22062. .cru_selectBox::-webkit-scrollbar-thumb,
  22063. .study_top::-webkit-scrollbar-thumb,
  22064. .textContent::-webkit-scrollbar-thumb {
  22065. border-radius: 10px;
  22066. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22067. background-color: #2c5ab3;
  22068. }
  22069. .vedioBox {
  22070. border-radius: 0 0 20px 20px;
  22071. background: #fff;
  22072. overflow: auto;
  22073. }
  22074. .taskBox {
  22075. width: 98%;
  22076. background: #f0f4fa;
  22077. margin: 10px auto;
  22078. padding: 0 10px;
  22079. border-radius: 4px;
  22080. box-sizing: border-box;
  22081. }
  22082. .vedioTaskBox {
  22083. width: 100%;
  22084. display: flex;
  22085. flex-direction: row;
  22086. flex-wrap: nowrap;
  22087. align-items: flex-start;
  22088. position: relative;
  22089. }
  22090. .toolBox {
  22091. margin: 15px 0 0 25px;
  22092. display: flex;
  22093. position: relative;
  22094. padding: 18px 20px;
  22095. border-top-left-radius: 5px;
  22096. border-top-right-radius: 5px;
  22097. width: 90%;
  22098. }
  22099. .btnAll {
  22100. position: absolute;
  22101. right: 0;
  22102. display: flex;
  22103. flex-direction: row;
  22104. flex-wrap: nowrap;
  22105. align-items: center;
  22106. }
  22107. .btnLeft,
  22108. .btnRight {
  22109. display: flex;
  22110. flex-direction: row;
  22111. flex-wrap: nowrap;
  22112. align-items: center;
  22113. padding: 5px 0;
  22114. }
  22115. .btnLeft {
  22116. border-right: 1px solid #cad1dc;
  22117. }
  22118. .btnLeft > .custom-tooltip {
  22119. background: #3681fc;
  22120. color: #fff;
  22121. }
  22122. .last:hover {
  22123. background: #3383fa !important;
  22124. color: #fff;
  22125. border: 1px solid #3383fa !important;
  22126. }
  22127. .last,
  22128. .returnBtn1 {
  22129. width: 90px;
  22130. height: 36px;
  22131. background: #ffffff;
  22132. border-radius: 4px;
  22133. border: 1px solid #0061ff;
  22134. color: #0061ff;
  22135. cursor: pointer;
  22136. display: flex;
  22137. flex-direction: row;
  22138. flex-wrap: nowrap;
  22139. align-items: center;
  22140. justify-content: center;
  22141. margin-left: 12px;
  22142. }
  22143. .returnBtn1 {
  22144. background: #f0f4fa;
  22145. border-radius: 4px;
  22146. border: 1px solid #cad1dc;
  22147. margin: 0 12px;
  22148. }
  22149. .lastImg {
  22150. min-width: 15px;
  22151. width: 15px;
  22152. height: 15px;
  22153. display: flex;
  22154. }
  22155. .lastText {
  22156. padding: 0 5px 0 5px;
  22157. box-sizing: border-box;
  22158. font-size: 14px;
  22159. }
  22160. .lastImg > img {
  22161. width: 100%;
  22162. height: 100%;
  22163. }
  22164. /* .vedioTimeBox {
  22165. display: flex;
  22166. flex-direction: row;
  22167. align-items: center;
  22168. flex-wrap: nowrap;
  22169. position: relative;
  22170. } */
  22171. .navBox {
  22172. background: #fff;
  22173. height: calc(100% - 40px);
  22174. overflow-y: auto;
  22175. overflow-x: hidden;
  22176. }
  22177. .worksBox {
  22178. margin: 0 0 10px 25px;
  22179. border-bottom: 1px solid #eeeeee;
  22180. padding: 18px 20px;
  22181. border-radius: 4px;
  22182. width: 90%;
  22183. }
  22184. .worksBTitle {
  22185. font-size: 20px;
  22186. padding-bottom: 15px;
  22187. border-bottom: 1px solid #eeeeee;
  22188. display: flex;
  22189. align-items: center;
  22190. }
  22191. .greenBox {
  22192. width: 5px;
  22193. height: 30px;
  22194. background: #63b6fa;
  22195. margin-right: 5px;
  22196. }
  22197. .worksDetailBox {
  22198. display: flex;
  22199. width: 100%;
  22200. flex-direction: row;
  22201. flex-wrap: wrap;
  22202. align-items: flex-end;
  22203. justify-content: flex-start;
  22204. padding: 15px 5px;
  22205. box-sizing: border-box;
  22206. }
  22207. .works {
  22208. display: flex;
  22209. flex-direction: column;
  22210. flex-wrap: nowrap;
  22211. align-items: flex-start;
  22212. justify-content: flex-start;
  22213. align-content: center;
  22214. max-width: 240px;
  22215. width: calc(100% / 3 - 10px);
  22216. height: auto;
  22217. margin-right: 10px;
  22218. margin-bottom: 10px;
  22219. overflow: hidden;
  22220. height: 140px;
  22221. box-shadow: 0 0 6px 1px #dfdada;
  22222. border-radius: 15px;
  22223. }
  22224. .workImg {
  22225. width: 100%;
  22226. /* height: calc(100% - 40px); */
  22227. height: 105px;
  22228. position: relative;
  22229. }
  22230. .workImg > img {
  22231. width: 100%;
  22232. height: 100%;
  22233. object-fit: contain;
  22234. cursor: pointer;
  22235. }
  22236. .worksName {
  22237. height: 40px;
  22238. line-height: 40px;
  22239. display: flex;
  22240. width: 100%;
  22241. flex-direction: row;
  22242. flex-wrap: nowrap;
  22243. justify-content: space-between;
  22244. align-items: center;
  22245. margin: 0 0 0 10px;
  22246. }
  22247. .worksName > div:nth-child(1) {
  22248. width: 110px;
  22249. white-space: nowrap;
  22250. overflow: hidden;
  22251. text-overflow: ellipsis;
  22252. }
  22253. .worksName > div:nth-child(2) {
  22254. color: #b7b4b5;
  22255. }
  22256. .noWorksS {
  22257. padding: 15px 0;
  22258. display: flex;
  22259. flex-direction: row;
  22260. flex-wrap: wrap;
  22261. align-items: center;
  22262. justify-content: flex-start;
  22263. }
  22264. .noWorksName,
  22265. .isWorksName,
  22266. .isWorksName2 {
  22267. background: #ddebf8;
  22268. color: #000;
  22269. width: 90px;
  22270. height: 25px;
  22271. text-align: center;
  22272. line-height: 25px;
  22273. border-radius: 4px;
  22274. margin: 10px 15px 10px 0;
  22275. white-space: nowrap;
  22276. overflow: hidden;
  22277. padding: 5px;
  22278. text-overflow: ellipsis;
  22279. cursor: pointer;
  22280. border: 1px solid #ddebf8;
  22281. }
  22282. .noWorksName {
  22283. background: #fff;
  22284. color: #0061ff;
  22285. border: 1px solid #0061ff;
  22286. }
  22287. .noWorksName > span{
  22288. max-width: 100%;
  22289. display: block;
  22290. overflow: hidden;
  22291. text-overflow: ellipsis;
  22292. white-space: nowrap;
  22293. }
  22294. .isWorksName2 {
  22295. width: 100px;
  22296. height: 40px;
  22297. line-height: 40px;
  22298. position: relative;
  22299. background: #dae6f9;
  22300. }
  22301. .isWorksName {
  22302. background: #e7ebf1 !important;
  22303. width: 100px;
  22304. height: 40px;
  22305. line-height: 40px;
  22306. position: relative;
  22307. color: #acb4bf;
  22308. border: 1px solid #cad1dc !important;
  22309. }
  22310. .isSelectName,
  22311. .noWorksName:hover {
  22312. background: #3383fa !important;
  22313. color: #fff !important;
  22314. border: 1px solid #3383fa !important;
  22315. }
  22316. .title {
  22317. background: #1e5cc9;
  22318. /* width: 98%; */
  22319. height: 45px;
  22320. color: #fff;
  22321. line-height: 45px;
  22322. padding-left: 20px;
  22323. box-sizing: border-box;
  22324. }
  22325. .textBox {
  22326. font-size: 20px;
  22327. width: 90%;
  22328. display: flex;
  22329. flex-direction: column;
  22330. align-items: center;
  22331. margin: 20px auto 0;
  22332. max-height: calc(100% - 75px);
  22333. overflow: auto;
  22334. }
  22335. .textContent {
  22336. font-size: 18px;
  22337. width: 95%;
  22338. max-width: 95%;
  22339. }
  22340. .answerBg {
  22341. background: url("../assets/icon/answerBgNew.png") no-repeat;
  22342. background-size: 100% 100%;
  22343. width: 100%;
  22344. height: 100%;
  22345. color: #fff;
  22346. text-align: center;
  22347. display: flex;
  22348. flex-direction: column;
  22349. flex-wrap: nowrap;
  22350. align-items: center;
  22351. position: relative;
  22352. justify-content: center;
  22353. }
  22354. .answerBg > div:nth-child(1) {
  22355. /* font-size: 22px;
  22356. padding: 25px 0 10px; */
  22357. }
  22358. .answerContent {
  22359. width: 215px;
  22360. max-height: 60px;
  22361. word-break: break-all;
  22362. text-align: center;
  22363. /* white-space: nowrap; */
  22364. overflow: hidden;
  22365. text-overflow: ellipsis;
  22366. /* padding: 23px 0 0; */
  22367. -webkit-line-clamp: 3;
  22368. -webkit-box-orient: vertical;
  22369. display: -webkit-box;
  22370. font-size: 15px;
  22371. cursor: pointer;
  22372. }
  22373. .elist_input_box {
  22374. display: flex;
  22375. align-items: flex-start;
  22376. flex-wrap: nowrap;
  22377. padding: 10px 0 15px 30px;
  22378. flex-direction: column;
  22379. }
  22380. .elist_input {
  22381. /* width: 40%; */
  22382. width: 45%;
  22383. margin: 20px;
  22384. }
  22385. .elist_input .elist_input_box input {
  22386. font: inherit;
  22387. color: currentColor;
  22388. width: 200px;
  22389. padding: 8px 14px;
  22390. display: block;
  22391. min-width: 0;
  22392. outline: none;
  22393. border: 1px solid rgba(0, 0, 0, 0.23);
  22394. border-radius: 4px;
  22395. box-sizing: border-box;
  22396. background: #fff;
  22397. margin: 0 20px 0 0;
  22398. }
  22399. .elist_input .elist_input_box span {
  22400. height: 36px;
  22401. line-height: 36px;
  22402. color: rgb(82, 82, 82);
  22403. }
  22404. .elist_input .elist_input_box .remove {
  22405. height: 20px;
  22406. width: 20px;
  22407. background-size: 100% 100%;
  22408. background-position: unset;
  22409. margin-left: 5px;
  22410. }
  22411. .elist_input_box >>> .el-rate {
  22412. display: flex;
  22413. height: 36px;
  22414. align-items: center;
  22415. }
  22416. .elist_input_box .elist_inptu_text {
  22417. min-height: 50px;
  22418. /* width: 500px;
  22419. max-height: 150px; */
  22420. width: 100%;
  22421. line-height: 50px;
  22422. color: rgb(82, 82, 82);
  22423. overflow: auto;
  22424. text-indent: 5px;
  22425. background: #f7f6f9;
  22426. border-radius: 10px;
  22427. }
  22428. .elist_input_box .elist_inptu_text input {
  22429. width: 500px;
  22430. }
  22431. .elist_input_box >>> .el-rate__icon {
  22432. font-size: 24px;
  22433. }
  22434. .isClick {
  22435. background: #4d9def;
  22436. }
  22437. .bzBox {
  22438. display: flex;
  22439. flex-direction: row;
  22440. align-items: center;
  22441. }
  22442. .bzBox .yCss {
  22443. width: 7px;
  22444. height: 7px;
  22445. background: #fff;
  22446. margin: 0 16px 0 6px;
  22447. border-radius: 50%;
  22448. border: 5px solid #3681fc;
  22449. z-index: 99;
  22450. }
  22451. .bzBox > div:nth-child(2) {
  22452. font-size: 18px;
  22453. font-weight: bold;
  22454. color: #0e1e33;
  22455. }
  22456. .navTitile {
  22457. padding: 0 0px 0 15px;
  22458. font-size: 16px;
  22459. font-weight: bold;
  22460. color: #0e1e33;
  22461. height: 40px;
  22462. line-height: 40px;
  22463. }
  22464. .isTypeOne {
  22465. width: 240px;
  22466. height: 170px;
  22467. /* border: 1px solid #f8f8f8; */
  22468. border-radius: 10px;
  22469. box-shadow: 0 0 6px 1px #dfdada;
  22470. }
  22471. .e_add_top {
  22472. display: flex;
  22473. justify-content: space-between;
  22474. padding: 10px 20px;
  22475. border-radius: 3px;
  22476. background: #fff;
  22477. }
  22478. .e_add_title2 {
  22479. display: flex;
  22480. align-items: center;
  22481. }
  22482. .e_add_title2 span {
  22483. width: 40px;
  22484. }
  22485. .e_add_title {
  22486. display: flex;
  22487. align-items: center;
  22488. color: #b8b8b8;
  22489. font-size: 18px;
  22490. position: relative;
  22491. height: 40px;
  22492. width: 100%;
  22493. }
  22494. .e_add_title span {
  22495. margin-right: 10px;
  22496. }
  22497. .e_add_title .el_input {
  22498. width: 300px;
  22499. }
  22500. .e_add_title >>> .el-input__inner {
  22501. width: 400px;
  22502. }
  22503. .e_add_btn {
  22504. }
  22505. .e_add_content {
  22506. display: flex;
  22507. width: 100%;
  22508. max-width: 650px;
  22509. height: 550px;
  22510. }
  22511. .e_add_list {
  22512. background: #fff;
  22513. height: 500px;
  22514. width: 210px;
  22515. position: relative;
  22516. margin: 15px 5px 0 0;
  22517. flex-shrink: 0;
  22518. display: flex;
  22519. flex-direction: column;
  22520. }
  22521. .e_add_list_title {
  22522. font-size: 20px;
  22523. width: 100%;
  22524. box-sizing: border-box;
  22525. padding: 15px 40px;
  22526. text-align: center;
  22527. border-bottom: 1px solid #eaeaea;
  22528. position: relative;
  22529. display: flex;
  22530. align-items: center;
  22531. justify-content: center;
  22532. height: 57px;
  22533. background: #f6f6f6;
  22534. }
  22535. .e_add_list_title span {
  22536. overflow: hidden;
  22537. white-space: nowrap;
  22538. text-overflow: ellipsis;
  22539. }
  22540. .e_add_list_title img {
  22541. position: absolute;
  22542. right: 15px;
  22543. width: 25px;
  22544. cursor: pointer;
  22545. top: 50%;
  22546. transform: translateY(-50%);
  22547. }
  22548. .e_add_list_body {
  22549. height: calc(100% - 187px);
  22550. overflow: auto;
  22551. }
  22552. .e_add_list_child {
  22553. width: 100%;
  22554. display: flex;
  22555. align-items: center;
  22556. justify-content: center;
  22557. position: relative;
  22558. box-sizing: border-box;
  22559. padding: 15px 40px;
  22560. text-align: center;
  22561. }
  22562. .e_add_list_child span {
  22563. overflow: hidden;
  22564. white-space: nowrap;
  22565. text-overflow: ellipsis;
  22566. cursor: pointer;
  22567. }
  22568. .e_add_list_child img {
  22569. position: absolute;
  22570. right: 10px;
  22571. width: 21px;
  22572. cursor: pointer;
  22573. top: 50%;
  22574. transform: translateY(-50%);
  22575. }
  22576. .e_add_list_child + .e_add_list_child {
  22577. border-top: 1px solid #eaeaea;
  22578. }
  22579. .e_add_list_child .active {
  22580. color: #409eff;
  22581. }
  22582. .e_add_list_btn {
  22583. position: absolute;
  22584. bottom: 0;
  22585. height: 50px;
  22586. background: rgb(120, 120, 254);
  22587. width: 100%;
  22588. color: #fff;
  22589. font-size: 16px;
  22590. text-align: center;
  22591. line-height: 50px;
  22592. cursor: pointer;
  22593. }
  22594. .e_add_list_detail {
  22595. position: absolute;
  22596. bottom: 0;
  22597. height: 130px;
  22598. background: rgb(120, 120, 254);
  22599. width: 100%;
  22600. color: #fff;
  22601. font-size: 16px;
  22602. display: flex;
  22603. align-items: center;
  22604. justify-content: center;
  22605. }
  22606. .e_add_list_detail textarea {
  22607. height: 90%;
  22608. width: 95%;
  22609. border: none;
  22610. resize: none;
  22611. outline: none;
  22612. padding: 5px;
  22613. box-sizing: border-box;
  22614. }
  22615. .e_add_list_pbox {
  22616. width: 100%;
  22617. max-width: 650px;
  22618. /* height: 600px; */
  22619. }
  22620. .e_add_list_pbox_title {
  22621. height: 50px;
  22622. background: #fff;
  22623. display: flex;
  22624. align-items: center;
  22625. width: 100%;
  22626. box-sizing: border-box;
  22627. padding: 0 20px;
  22628. }
  22629. .type_title {
  22630. font-size: 18px;
  22631. font-weight: 700;
  22632. }
  22633. .type_content {
  22634. font-size: 16px;
  22635. /* margin-left: 30px; */
  22636. }
  22637. .type_content span + span {
  22638. margin-left: 20px;
  22639. }
  22640. .type_content span {
  22641. cursor: pointer;
  22642. padding-bottom: 5px;
  22643. box-sizing: border-box;
  22644. }
  22645. .type_content .active {
  22646. color: #409eff;
  22647. border-bottom: 2px solid #409eff;
  22648. }
  22649. .e_add_list_pbox_content {
  22650. height: calc(100% - 50px);
  22651. display: flex;
  22652. align-items: center;
  22653. width: 100%;
  22654. background: #fff;
  22655. }
  22656. .evaCss {
  22657. display: flex;
  22658. flex-direction: row;
  22659. flex-wrap: nowrap;
  22660. align-items: flex-start;
  22661. padding: 0 0 20px;
  22662. }
  22663. .cru_line {
  22664. position: absolute;
  22665. bottom: 0px;
  22666. transition: all 0.5s;
  22667. left: 0px;
  22668. width: 125px;
  22669. margin-left: -25px;
  22670. }
  22671. .isNoMessage {
  22672. width: 20%;
  22673. margin: 25% auto 0;
  22674. }
  22675. .isNoMessage > img {
  22676. width: 100%;
  22677. height: 100%;
  22678. }
  22679. .fullStyle >>> .el-dialog__body {
  22680. height: 100% !important;
  22681. }
  22682. .fullStyle >>> .el-dialog,
  22683. .fullStyle {
  22684. width: 100% !important;
  22685. max-width: 100% !important;
  22686. height: 100% !important;
  22687. margin: 0 !important;
  22688. }
  22689. .full_diy >>> .el-dialog {
  22690. margin: 0 !important;
  22691. height: 100%;
  22692. padding: 4px;
  22693. }
  22694. .full_diy >>> .el-dialog__body {
  22695. height: calc(100% - 100px);
  22696. }
  22697. .full_diy2 >>> .el-dialog__body {
  22698. height: calc(100% - 50px);
  22699. padding: 0;
  22700. }
  22701. .switchCss {
  22702. /* width: 100%; */
  22703. display: flex;
  22704. flex-direction: row;
  22705. flex-wrap: nowrap;
  22706. align-items: center;
  22707. /* justify-content: center; */
  22708. }
  22709. .isClickNav {
  22710. /* color: #499eef; */
  22711. color: #000;
  22712. }
  22713. .commentImg {
  22714. width: 25px;
  22715. height: 25px;
  22716. cursor: pointer;
  22717. }
  22718. .commentImg > img {
  22719. width: 100%;
  22720. height: 100%;
  22721. }
  22722. .comment {
  22723. background: #f9f9f9;
  22724. border-radius: 0 0 4px 4px;
  22725. display: flex;
  22726. flex-direction: row;
  22727. flex-wrap: nowrap;
  22728. align-items: center;
  22729. justify-content: flex-end;
  22730. height: 35px;
  22731. }
  22732. .commentList {
  22733. display: flex;
  22734. flex-direction: row;
  22735. flex-wrap: nowrap;
  22736. align-items: center;
  22737. justify-content: center;
  22738. align-content: center;
  22739. /* margin-left: 15px; */
  22740. /* margin-left: 8px; */
  22741. }
  22742. .scoreImg {
  22743. width: 17px;
  22744. height: 17px;
  22745. }
  22746. .studentDetail {
  22747. display: flex;
  22748. flex-direction: row;
  22749. flex-wrap: nowrap;
  22750. /* align-items: center; */
  22751. align-items: flex-start;
  22752. }
  22753. .tx {
  22754. width: 50px;
  22755. }
  22756. .tx > img {
  22757. width: 100%;
  22758. height: 100%;
  22759. }
  22760. .nameAndTime {
  22761. display: flex;
  22762. flex-direction: column;
  22763. flex-wrap: nowrap;
  22764. align-items: flex-start;
  22765. margin-left: 10px;
  22766. }
  22767. .worksAnswer {
  22768. color: #4078dd;
  22769. margin: 10px 0;
  22770. font-size: 16px;
  22771. position: relative;
  22772. }
  22773. .worksAnswer > img {
  22774. width: 500px;
  22775. height: 300px;
  22776. object-fit: contain;
  22777. margin: 0 auto;
  22778. display: block;
  22779. }
  22780. .commentTop {
  22781. border-bottom: 1px solid #eaeaea;
  22782. padding-bottom: 10px;
  22783. }
  22784. .commentBox {
  22785. padding-top: 15px;
  22786. }
  22787. .pl {
  22788. font-size: 18px;
  22789. }
  22790. .plPerson {
  22791. width: 100%;
  22792. }
  22793. .plName {
  22794. display: flex;
  22795. flex-direction: row;
  22796. flex-wrap: nowrap;
  22797. align-items: baseline;
  22798. color: #78787a;
  22799. width: 100%;
  22800. }
  22801. .deleteComment {
  22802. cursor: pointer;
  22803. margin-left: auto;
  22804. color: #237ade;
  22805. }
  22806. .plContent {
  22807. margin-top: 5px;
  22808. }
  22809. .evalCss {
  22810. background: #fff;
  22811. font-size: 18px;
  22812. }
  22813. .nav {
  22814. color: #9d9d9d;
  22815. padding: 5px 0 15px 20px;
  22816. }
  22817. .middleBox {
  22818. padding: 5px 0 15px 20px;
  22819. }
  22820. .pfBox {
  22821. padding-bottom: 30px;
  22822. }
  22823. .nameAndrate {
  22824. display: flex;
  22825. flex-direction: row;
  22826. flex-wrap: nowrap;
  22827. align-items: center;
  22828. padding-bottom: 10px;
  22829. height: 30px;
  22830. line-height: 30px;
  22831. }
  22832. .nameAndrate > div {
  22833. margin-left: 10px;
  22834. color: #000;
  22835. height: 30px;
  22836. }
  22837. .nameAndrate >>> .el-rate__icon {
  22838. font-size: 28px !important;
  22839. }
  22840. .pfBox > div:nth-child(2) {
  22841. background: #f7f6f9;
  22842. width: 400px;
  22843. min-height: 45px;
  22844. border-radius: 10px;
  22845. font-size: 16px;
  22846. display: flex;
  22847. flex-wrap: wrap;
  22848. align-items: center;
  22849. padding: 10px 20px;
  22850. box-sizing: border-box;
  22851. color: #000;
  22852. }
  22853. .bz {
  22854. display: flex;
  22855. flex-direction: row;
  22856. flex-wrap: nowrap;
  22857. align-items: flex-start;
  22858. }
  22859. .bz > div {
  22860. padding: 0 10px;
  22861. }
  22862. .select_box2_title {
  22863. background: #fff;
  22864. border-radius: 5px;
  22865. padding: 15px 10px;
  22866. box-sizing: border-box;
  22867. margin-bottom: 10px;
  22868. display: flex;
  22869. flex-direction: row;
  22870. flex-wrap: nowrap;
  22871. align-items: center;
  22872. }
  22873. .select_box2_title > div:nth-child(2) {
  22874. margin-left: 10px;
  22875. color: #c4c4c4;
  22876. }
  22877. .select_box2_box {
  22878. display: flex;
  22879. height: 500px;
  22880. }
  22881. .select_box2_img {
  22882. width: calc(100% - 310px);
  22883. height: 100%;
  22884. overflow: auto;
  22885. background: #fff;
  22886. border-radius: 5px;
  22887. }
  22888. .select_box2_img img {
  22889. width: 100%;
  22890. }
  22891. .select_box2_answer {
  22892. background: #fff;
  22893. margin-left: 10px;
  22894. border-radius: 5px;
  22895. width: 300px;
  22896. overflow: auto;
  22897. height: 90%;
  22898. display: flex;
  22899. flex-direction: column;
  22900. align-items: flex-start;
  22901. padding-top: 10px;
  22902. box-sizing: border-box;
  22903. position: relative;
  22904. }
  22905. .select_answer_title {
  22906. padding: 0 0 15px 20px;
  22907. color: #c4c4c4;
  22908. }
  22909. .select_box2_answer_box {
  22910. margin: 0 0 10px 20px;
  22911. width: 85%;
  22912. display: flex;
  22913. flex-direction: row;
  22914. flex-wrap: nowrap;
  22915. align-items: center;
  22916. }
  22917. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22918. color: #000;
  22919. }
  22920. .upAnswerCss {
  22921. position: absolute;
  22922. bottom: 15px;
  22923. right: 15px;
  22924. }
  22925. .upAnswerCss >>> .el-button {
  22926. width: 95px;
  22927. height: 35px;
  22928. line-height: 35px;
  22929. padding: 0;
  22930. }
  22931. .rightWidthCss {
  22932. width: 60%;
  22933. display: flex;
  22934. flex-direction: row;
  22935. align-items: flex-start;
  22936. }
  22937. .rightAnswer {
  22938. display: flex;
  22939. flex-direction: row;
  22940. flex-wrap: nowrap;
  22941. align-items: center;
  22942. color: red;
  22943. margin-bottom: 31px;
  22944. }
  22945. .rightAnswerCss {
  22946. display: flex;
  22947. flex-direction: column;
  22948. flex-wrap: nowrap;
  22949. padding-top: 60px;
  22950. }
  22951. .blueCss {
  22952. color: #767de1;
  22953. margin-left: 10px;
  22954. }
  22955. .redCss {
  22956. color: red;
  22957. }
  22958. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22959. color: rgb(0 123 255) !important;
  22960. }
  22961. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22962. color: rgb(0 123 255) !important;
  22963. }
  22964. .zuoyeYulan {
  22965. padding-top: 0;
  22966. font-size: 18px;
  22967. display: flex;
  22968. align-items: flex-end;
  22969. }
  22970. .buttonA {
  22971. margin-left: 10px;
  22972. padding: 0;
  22973. }
  22974. .displayBox {
  22975. margin-bottom: 10px;
  22976. display: block;
  22977. border-bottom: 3px solid #eee;
  22978. display: flex;
  22979. align-items: center;
  22980. }
  22981. .easy_comment {
  22982. width: calc(100% - 90px);
  22983. margin-left: 10px;
  22984. display: flex;
  22985. flex-wrap: wrap;
  22986. }
  22987. .easy_comment > div {
  22988. border: 1px solid #4a4a4a;
  22989. color: #666;
  22990. border-radius: 15px;
  22991. padding: 5px 10px;
  22992. font-size: 16px;
  22993. margin-bottom: 10px;
  22994. margin-right: 5px;
  22995. cursor: pointer;
  22996. }
  22997. .easy_comment div:hover {
  22998. border: 1px solid #f7ba2a;
  22999. color: #c69217;
  23000. }
  23001. .xuan_right_box {
  23002. padding: 10px 0;
  23003. background: #f0f4fa;
  23004. margin: 0 15px 0 25px;
  23005. border-bottom-left-radius: 5px;
  23006. border-bottom-right-radius: 5px;
  23007. width: 91.5%;
  23008. }
  23009. .tool_right_box {
  23010. display: flex;
  23011. align-items: center;
  23012. }
  23013. .tool_right_box + .tool_right_box {
  23014. margin-top: 10px;
  23015. }
  23016. .right_box_xuan {
  23017. border-radius: 5px;
  23018. padding: 5px;
  23019. margin-left: 10px;
  23020. min-width: 85px;
  23021. background: #fff;
  23022. color: #0061ff;
  23023. border: 1px solid #0061ff;
  23024. font-size: 14px;
  23025. }
  23026. .pButton:hover {
  23027. opacity: 1 !important;
  23028. }
  23029. .pButton {
  23030. position: fixed;
  23031. text-align: center;
  23032. cursor: pointer;
  23033. z-index: 999;
  23034. right: 20px;
  23035. top: 110px;
  23036. width: 50px;
  23037. height: 50px;
  23038. display: flex;
  23039. align-items: center;
  23040. justify-content: center;
  23041. border-radius: 5px;
  23042. }
  23043. .pzClass {
  23044. width: calc(100% - 340px);
  23045. }
  23046. .newDialogCss {
  23047. /* position: fixed;
  23048. right: 5%;
  23049. top: 50%;
  23050. width: 340px;
  23051. transform: translateY(-50%);
  23052. height: 60%;
  23053. box-shadow: 0px 0 8px 0px #555555;
  23054. border-radius: 15px;
  23055. z-index: 999; */
  23056. position: fixed;
  23057. right: 20px;
  23058. top: 101px;
  23059. width: 330px;
  23060. height: calc(100% - 80px);
  23061. z-index: 999;
  23062. background: #fff;
  23063. border-top-right-radius: 0px;
  23064. border-bottom-right-radius: 0px;
  23065. overflow: hidden;
  23066. }
  23067. .newDialogCss>.scoreList{
  23068. width:100%;
  23069. height:100%;
  23070. box-sizing:border-box;
  23071. padding:10px 15px;
  23072. overflow:auto;
  23073. padding-bottom:80px;
  23074. }
  23075. .pzTop {
  23076. color: #fff;
  23077. background: #000;
  23078. display: flex;
  23079. flex-direction: row;
  23080. flex-wrap: nowrap;
  23081. align-items: center;
  23082. justify-content: space-between;
  23083. height: 40px;
  23084. border-radius: 15px 15px 0 0;
  23085. user-select: none;
  23086. }
  23087. .pzTop2 .checkbox {
  23088. display: flex;
  23089. align-items: center;
  23090. padding: 5px 10px;
  23091. flex: 0 0 auto;
  23092. font-weight: bold;
  23093. border-bottom: 1px solid #eee;
  23094. justify-content: space-between;
  23095. }
  23096. .checkbox>.cb-tabList{
  23097. display:flex;
  23098. align-items:center;
  23099. }
  23100. .cb-tabList>div{
  23101. margin-right:20px;
  23102. font-weight:400;
  23103. cursor:pointer;
  23104. }
  23105. .cb-tabList>.cb-tabItem{
  23106. color:#1684FC;
  23107. position:relative;
  23108. }
  23109. .cb-tabItem::after{
  23110. content:"";
  23111. width:100%;
  23112. height:2px;
  23113. background:#1684FC;
  23114. position:absolute;
  23115. bottom:-5px;
  23116. left:0
  23117. }
  23118. .pzTop2 .check {
  23119. text-align: center;
  23120. cursor: pointer;
  23121. box-sizing: border-box;
  23122. display: flex;
  23123. }
  23124. .pzTop2 img {
  23125. width: 25px;
  23126. cursor: pointer;
  23127. }
  23128. .pzTop > div:nth-child(1) {
  23129. padding-left: 10px;
  23130. }
  23131. .pzTop > div:nth-child(2) {
  23132. width: 15px;
  23133. height: 15px;
  23134. padding-right: 10px;
  23135. cursor: pointer;
  23136. }
  23137. .pzTop > div:nth-child(2) > img {
  23138. width: 100%;
  23139. height: 100%;
  23140. }
  23141. .pzBox,
  23142. .noPzBox {
  23143. height: calc(100% - 60px);
  23144. /* background: #ededed; */
  23145. background: #fff;
  23146. /* border-radius: 0 0 15px 15px; */
  23147. }
  23148. .noPzBox {
  23149. display: flex;
  23150. flex-direction: column;
  23151. flex-wrap: nowrap;
  23152. justify-content: center;
  23153. align-items: center;
  23154. }
  23155. .pzList {
  23156. background: #f7f7f7;
  23157. width: 90%;
  23158. margin: 0 auto 15px;
  23159. border-radius: 5px;
  23160. }
  23161. .pzNavTop {
  23162. display: flex;
  23163. flex-direction: row;
  23164. flex-wrap: nowrap;
  23165. padding: 10px 10px 0 10px;
  23166. align-items: center;
  23167. }
  23168. .pzDelete {
  23169. cursor: pointer;
  23170. margin-left: auto;
  23171. font-size: 14px;
  23172. color: #afafaf;
  23173. }
  23174. .pzNavTop > div:nth-child(1) {
  23175. background: #3760af;
  23176. width: 35px;
  23177. height: 35px;
  23178. color: #fff;
  23179. text-align: center;
  23180. line-height: 35px;
  23181. border-radius: 50%;
  23182. font-size: 14px;
  23183. }
  23184. .pzNavTop > div:nth-child(2) {
  23185. font-size: 18px;
  23186. color: #959595;
  23187. margin-left: 5px;
  23188. }
  23189. .pzContent {
  23190. padding: 10px;
  23191. word-break: break-word;
  23192. }
  23193. .pzContent audio {
  23194. width: 100%;
  23195. }
  23196. .pzContent audio::-webkit-media-controls-panel {
  23197. background: #fff;
  23198. }
  23199. .pzContent >>> img {
  23200. max-width: 100%;
  23201. }
  23202. .pzListBox {
  23203. padding-top: 15px;
  23204. height: calc(100% - 110px);
  23205. overflow: auto;
  23206. }
  23207. .addPzButton {
  23208. position: relative;
  23209. margin-top: 3px;
  23210. width: 100%;
  23211. }
  23212. .addPzButton .img1 {
  23213. position: absolute;
  23214. top: 50%;
  23215. right: 25px;
  23216. transform: translateY(-50%);
  23217. height: 100%;
  23218. display: flex;
  23219. align-items: center;
  23220. }
  23221. .addPzButton .img1 div {
  23222. display: flex;
  23223. }
  23224. .addPzButton .img1 div img {
  23225. width: 28px;
  23226. margin-left: 10px;
  23227. cursor: pointer;
  23228. }
  23229. .addPzButton .img1 div span {
  23230. font-size: 14px;
  23231. margin: 4px 0 0 3px;
  23232. color: #afafaf;
  23233. }
  23234. .addPz {
  23235. background: #4b79ce;
  23236. width: 100px;
  23237. color: #fff;
  23238. font-size: 12px;
  23239. height: 30px;
  23240. margin: 0 auto;
  23241. text-align: center;
  23242. line-height: 30px;
  23243. border-radius: 10px;
  23244. cursor: pointer;
  23245. }
  23246. .addDialogCss {
  23247. position: fixed;
  23248. width: 600px;
  23249. height: 70%;
  23250. min-height: 450px;
  23251. box-shadow: 0px 0 8px 0px #555555;
  23252. border-radius: 15px;
  23253. z-index: 999;
  23254. left: 50%;
  23255. top: 50%;
  23256. margin: -18% 0 0 -300px;
  23257. }
  23258. .teacherPz {
  23259. display: flex;
  23260. flex-direction: row;
  23261. align-items: center;
  23262. flex-wrap: nowrap;
  23263. }
  23264. .teacherPzImg {
  23265. width: 30px;
  23266. height: 30px;
  23267. }
  23268. .teacherPzImg > img {
  23269. width: 100%;
  23270. height: 100%;
  23271. }
  23272. .addPzBox {
  23273. height: calc(100% - 40px);
  23274. background: #ededed;
  23275. border-bottom-left-radius: 15px;
  23276. border-bottom-right-radius: 15px;
  23277. }
  23278. .pzAudioClass {
  23279. margin: 15px 14px;
  23280. background: #fff;
  23281. height: 100%;
  23282. display: flex;
  23283. justify-content: center;
  23284. align-items: center;
  23285. }
  23286. .pzConText {
  23287. width: 95%;
  23288. height: 100%;
  23289. margin: 10px auto 0;
  23290. border: none;
  23291. background: #fff;
  23292. border-radius: 0px;
  23293. }
  23294. .pzConText >>> .text {
  23295. height: calc(100% - 82px);
  23296. }
  23297. .addTextCss {
  23298. background: #4b79ce;
  23299. width: 80px;
  23300. height: 30px;
  23301. text-align: center;
  23302. color: #fff;
  23303. line-height: 30px;
  23304. border-radius: 10px;
  23305. margin: 10px auto 0;
  23306. cursor: pointer;
  23307. }
  23308. .pzConText:focus-visible {
  23309. border: none !important;
  23310. }
  23311. .maxWidth {
  23312. width: 1000px;
  23313. }
  23314. .noPz {
  23315. width: 150px;
  23316. margin: 0 auto 20%;
  23317. }
  23318. .noPz > img {
  23319. width: 100%;
  23320. height: 100%;
  23321. }
  23322. .timeAndReply {
  23323. display: flex;
  23324. flex-direction: row;
  23325. flex-wrap: nowrap;
  23326. justify-content: space-between;
  23327. align-items: center;
  23328. font-size: 14px;
  23329. box-sizing: border-box;
  23330. padding: 0 10px 10px 0px;
  23331. }
  23332. .timeAndReply .time {
  23333. color: #bfbfbf;
  23334. padding: 0 0 0 10px;
  23335. box-sizing: border-box;
  23336. }
  23337. .timeAndReply > div:last-child {
  23338. cursor: pointer;
  23339. color: #777;
  23340. }
  23341. /* table 样式 */
  23342. .cont >>> table {
  23343. border-top: 1px solid #ccc;
  23344. border-left: 1px solid #ccc;
  23345. }
  23346. .cont >>> table td,
  23347. .cont >>> table th {
  23348. border-bottom: 1px solid #ccc;
  23349. border-right: 1px solid #ccc;
  23350. /* padding: 20px 5px; */
  23351. padding: 5px 10px;
  23352. max-width: 0px;
  23353. height: 30px;
  23354. vertical-align: baseline;
  23355. box-sizing: border-box;
  23356. }
  23357. .cont >>> table th {
  23358. border-bottom: 2px solid #ccc;
  23359. text-align: center;
  23360. }
  23361. /* blockquote 样式 */
  23362. .cont >>> blockquote {
  23363. display: block;
  23364. border-left: 8px solid #d0e5f2;
  23365. padding: 5px 10px;
  23366. margin: 10px 0;
  23367. line-height: 1.4;
  23368. font-size: 100%;
  23369. background-color: #f1f1f1;
  23370. }
  23371. /* code 样式 */
  23372. .cont >>> code {
  23373. display: inline-block;
  23374. /* *display: inline; */
  23375. zoom: 1;
  23376. background-color: #f1f1f1;
  23377. border-radius: 3px;
  23378. padding: 3px 5px;
  23379. margin: 0 3px;
  23380. }
  23381. .cont >>> pre code {
  23382. display: block;
  23383. }
  23384. /* ul ol 样式 */
  23385. .cont >>> ul,
  23386. ol {
  23387. margin: 10px 0 10px 20px;
  23388. }
  23389. .addPzCheck {
  23390. display: flex;
  23391. flex-direction: row;
  23392. flex-wrap: nowrap;
  23393. padding: 10px 15px 0;
  23394. }
  23395. .addPzCheck span {
  23396. cursor: pointer;
  23397. padding-bottom: 5px;
  23398. font-weight: bold;
  23399. }
  23400. .addPzCheck span + span {
  23401. margin-left: 10px;
  23402. }
  23403. .addPzCheck .isChooseActive {
  23404. color: #3e88f4;
  23405. border-bottom: 2px solid #2f80f3;
  23406. }
  23407. /* code 样式 */
  23408. .cont {
  23409. /* -webkit-user-modify: read-write; */
  23410. overflow-wrap: break-word;
  23411. -webkit-line-break: after-white-space;
  23412. word-break: break-word;
  23413. white-space: pre-line;
  23414. }
  23415. .scoreBox,
  23416. .scoreDetailBox {
  23417. display: flex;
  23418. align-items: center;
  23419. justify-content: flex-start;
  23420. margin-top: 20px;
  23421. font-size: 18px;
  23422. width: 100%;
  23423. }
  23424. .scoreBox .t,
  23425. .scoreDetailBox .t {
  23426. margin-right: 10px;
  23427. width: 100px;
  23428. text-align: right;
  23429. }
  23430. .scoreDetailBox {
  23431. align-items: flex-start;
  23432. }
  23433. .scoreDetailBox >>> .el-textarea {
  23434. width: calc(100% - 200px);
  23435. }
  23436. .scoreBox >>> .el-input {
  23437. width: 130px;
  23438. font-size: 38px;
  23439. }
  23440. .scoreBox >>> .el-input__inner {
  23441. height: 60px;
  23442. }
  23443. .answerScore {
  23444. position: absolute;
  23445. top: 10px;
  23446. right: 10px;
  23447. background: #0000008f;
  23448. border-radius: 5px;
  23449. padding: 3px 5px;
  23450. font-size: 14px;
  23451. color: #fff;
  23452. cursor: pointer;
  23453. }
  23454. .open_box .switch_box {
  23455. width: 100%;
  23456. margin: 0 auto;
  23457. display: flex;
  23458. justify-content: space-between;
  23459. }
  23460. .open_box .switch_box + .switch_box {
  23461. margin-top: 10px;
  23462. }
  23463. .deleteImg,.deleteImg1 {
  23464. width: 25px !important;
  23465. height: 25px !important;
  23466. cursor: pointer;
  23467. position: absolute;
  23468. top: 10px;
  23469. right: 10px;
  23470. }
  23471. .deleteImg2 {
  23472. width: 23px !important;
  23473. height: 23px !important;
  23474. top: 5px;
  23475. right: 5px;
  23476. }
  23477. .deleteImg1{
  23478. width: 23px !important;
  23479. height: 23px !important;
  23480. top: 5px !important;
  23481. right: 30px !important;
  23482. }
  23483. .rightW {
  23484. right: 40px;
  23485. }
  23486. .drawPBox {
  23487. display: flex;
  23488. flex-direction: column;
  23489. position: relative;
  23490. }
  23491. .drawPBox span {
  23492. font-size: 18px;
  23493. color: #606266;
  23494. padding-bottom: 10px;
  23495. margin: 10px 0;
  23496. border-bottom: 1px solid #eaeaea;
  23497. }
  23498. .drawPBox img {
  23499. width: 500px;
  23500. height: 300px;
  23501. object-fit: contain;
  23502. cursor: pointer;
  23503. margin: 0 auto;
  23504. }
  23505. .sentenBox {
  23506. background: #fff;
  23507. height: 450px;
  23508. overflow: auto;
  23509. background-image: url("../assets/icon/conSentences/stuBg.png");
  23510. background-position: 102%;
  23511. background-repeat: no-repeat;
  23512. background-size: 60%;
  23513. }
  23514. .addSen {
  23515. background: #409efe;
  23516. width: 90px;
  23517. color: #fff;
  23518. height: 35px;
  23519. text-align: center;
  23520. line-height: 35px;
  23521. border-radius: 5px;
  23522. float: right;
  23523. margin: 10px 20px 0 0;
  23524. cursor: pointer;
  23525. }
  23526. .sentenTop {
  23527. display: flex;
  23528. flex-direction: row;
  23529. flex-wrap: nowrap;
  23530. align-items: center;
  23531. padding: 55px 0 0 20px;
  23532. box-sizing: border-box;
  23533. }
  23534. .sentenTop > div:nth-child(2) {
  23535. width: 300px;
  23536. margin: 0 15px;
  23537. }
  23538. .sentenTop > div:nth-child(3) {
  23539. background: #409efe;
  23540. color: #fff;
  23541. width: 65px;
  23542. height: 35px;
  23543. text-align: center;
  23544. line-height: 35px;
  23545. border-radius: 5px;
  23546. cursor: pointer;
  23547. }
  23548. .cardList,
  23549. .cardList1 {
  23550. padding: 10px 0 10px 0;
  23551. display: flex;
  23552. flex-direction: row;
  23553. flex-wrap: wrap;
  23554. align-items: center;
  23555. box-sizing: border-box;
  23556. border-bottom: 1px solid #f4f4f4;
  23557. width: 98%;
  23558. margin: 0 auto;
  23559. min-width: 60%;
  23560. max-width: 85%;
  23561. }
  23562. .cardList1 {
  23563. padding: 10px 0 10px 10px !important;
  23564. margin: 0 !important;
  23565. }
  23566. .cardBox {
  23567. display: flex;
  23568. flex-direction: row;
  23569. flex-wrap: wrap;
  23570. align-items: center;
  23571. align-content: center;
  23572. }
  23573. .cardBox > div {
  23574. margin-bottom: 10px;
  23575. }
  23576. .isCard,
  23577. .isChooseCard,
  23578. .noCard,
  23579. .isCard1 {
  23580. min-width: 130px;
  23581. width: auto;
  23582. height: 60px;
  23583. text-align: center;
  23584. line-height: 60px;
  23585. font-size: 20px;
  23586. cursor: pointer;
  23587. background-image: url("../assets/icon/conSentences/titleBorder.png");
  23588. background-size: cover;
  23589. transition: all 2s;
  23590. margin-right: 20px;
  23591. background-size: 100% 100%;
  23592. padding: 0 20px;
  23593. box-sizing: border-box;
  23594. }
  23595. .isCard > div,
  23596. .noCard > div,
  23597. .isCard1 > div {
  23598. white-space: nowrap;
  23599. overflow: hidden;
  23600. text-overflow: ellipsis;
  23601. width: 100%;
  23602. margin: 0 auto;
  23603. }
  23604. .noCard {
  23605. background-image: none;
  23606. }
  23607. .isCard1 {
  23608. background-image: url("../assets/icon/conSentences/answerBorder.png");
  23609. }
  23610. .isChooseCard {
  23611. background-image: none;
  23612. border: 1px dashed #b9b9b9;
  23613. border-radius: 10px;
  23614. }
  23615. .card {
  23616. width: 130px;
  23617. height: 60px;
  23618. }
  23619. .card > img {
  23620. width: 100%;
  23621. height: 100%;
  23622. }
  23623. .rightCardBox {
  23624. margin: 10px 0 0 10px;
  23625. }
  23626. .rightCardBox > div:nth-child(1) {
  23627. margin-bottom: 10px;
  23628. }
  23629. .cardCss {
  23630. display: flex;
  23631. flex-direction: column;
  23632. flex-wrap: nowrap;
  23633. align-items: center;
  23634. border-bottom: 3px solid #b4c3d3;
  23635. padding: 0 0 5px 0;
  23636. margin-right: 10px;
  23637. }
  23638. .cardCss > div:nth-child(2) {
  23639. background: #5b7b9d;
  23640. color: #fff;
  23641. width: 20px;
  23642. height: 20px;
  23643. border-radius: 50%;
  23644. text-align: center;
  23645. line-height: 20px;
  23646. }
  23647. .isWrong {
  23648. display: flex;
  23649. flex-direction: row;
  23650. flex-wrap: nowrap;
  23651. align-content: center;
  23652. align-items: center;
  23653. }
  23654. .answerRight {
  23655. width: 25%;
  23656. }
  23657. .isTj {
  23658. display: flex;
  23659. flex-direction: row;
  23660. flex-wrap: nowrap;
  23661. align-items: center;
  23662. }
  23663. .isTj > div:nth-child(2) {
  23664. color: #727070;
  23665. margin-left: 10px;
  23666. }
  23667. .isTjImg {
  23668. width: 30px;
  23669. height: 30px;
  23670. }
  23671. .isTjImg > img {
  23672. width: 100%;
  23673. height: 100%;
  23674. }
  23675. .cardAnswerBox {
  23676. font-size: 18px;
  23677. width: 97%;
  23678. border: 5px;
  23679. padding: 0;
  23680. border-radius: 5px;
  23681. margin: 10px auto;
  23682. word-break: break-word;
  23683. }
  23684. .w_name {
  23685. margin-bottom: 10px;
  23686. }
  23687. .w_name span {
  23688. font-size: 16px;
  23689. }
  23690. .w_teachert {
  23691. width: 50px !important;
  23692. position: absolute;
  23693. height: auto !important;
  23694. z-index: 10;
  23695. right: 25px;
  23696. top: -25px;
  23697. }
  23698. .group_workBox {
  23699. }
  23700. .group_workBox + .group_workBox {
  23701. margin-top: 20px;
  23702. }
  23703. .group_box {
  23704. padding-bottom: 20px;
  23705. border-bottom: 2px solid #f0f0f0;
  23706. margin-top: 10px;
  23707. }
  23708. .group_title {
  23709. display: flex;
  23710. align-items: center;
  23711. justify-content: space-between;
  23712. width: 95%;
  23713. }
  23714. .group_name {
  23715. background-image: url(../assets/icon/groupN.png);
  23716. width: 220px;
  23717. background-size: 100% 100%;
  23718. height: 67px;
  23719. padding: 0 20px 0 43px;
  23720. box-sizing: border-box;
  23721. line-height: 63px;
  23722. color: #fff;
  23723. overflow: hidden;
  23724. white-space: nowrap;
  23725. text-overflow: ellipsis;
  23726. }
  23727. .group_work {
  23728. width: 100%;
  23729. padding: 0 10px;
  23730. box-sizing: border-box;
  23731. display: flex;
  23732. flex-wrap: wrap;
  23733. }
  23734. .g_d_box {
  23735. display: flex;
  23736. flex-flow: wrap;
  23737. justify-content: space-around;
  23738. }
  23739. .g_d_box .isChair {
  23740. background-image: url(../assets/avatar.png) !important;
  23741. }
  23742. .g_d_group {
  23743. width: 500px;
  23744. margin-bottom: 80px;
  23745. }
  23746. .g_d_group_chair {
  23747. display: flex;
  23748. align-items: center;
  23749. justify-content: center;
  23750. }
  23751. .g_d_group_chair > div + div {
  23752. margin-left: 30px;
  23753. }
  23754. .g_d_group_chair > div,
  23755. .g_d_group_chair2 > div {
  23756. display: flex;
  23757. flex-direction: column;
  23758. align-items: center;
  23759. }
  23760. .g_d_group_chair > div > span:nth-child(1),
  23761. .g_d_group_chair2 > div > span:nth-child(1) {
  23762. background-image: url(../assets/icon/chair.png);
  23763. width: 50px;
  23764. height: 50px;
  23765. display: block;
  23766. background-size: 100% 100%;
  23767. }
  23768. .g_d_group_tableBox {
  23769. display: flex;
  23770. align-items: center;
  23771. justify-content: center;
  23772. }
  23773. .g_d_group_chair2 {
  23774. display: flex;
  23775. flex-direction: column;
  23776. align-items: center;
  23777. justify-content: center;
  23778. }
  23779. .g_d_group_chair2 > div + div {
  23780. margin-top: 10px;
  23781. }
  23782. .g_d_group_table {
  23783. background-image: url(../assets/icon/groupBg.png);
  23784. width: 354px;
  23785. height: 196px;
  23786. background-size: 100% 100%;
  23787. display: flex;
  23788. align-items: center;
  23789. justify-content: center;
  23790. flex-direction: column;
  23791. color: #fff;
  23792. }
  23793. .g_d_group_table > div:nth-child(1) {
  23794. font-size: 24px;
  23795. margin-bottom: 5px;
  23796. }
  23797. .g_d_group_table > div:nth-child(2) div {
  23798. cursor: pointer;
  23799. background: #2e77bf;
  23800. padding: 4px 10px;
  23801. border-radius: 5px;
  23802. }
  23803. .groupBox {
  23804. }
  23805. .groupContent + .groupContent {
  23806. margin-top: 30px;
  23807. }
  23808. .groupTitle {
  23809. font-size: 24px;
  23810. color: rgb(80, 80, 80);
  23811. margin-bottom: 20px;
  23812. }
  23813. .groupName {
  23814. display: flex;
  23815. align-items: center;
  23816. }
  23817. .groupn {
  23818. font-size: 15px;
  23819. margin-right: 10px;
  23820. }
  23821. .groupName + .groupName {
  23822. margin-top: 15px;
  23823. }
  23824. .groupBtn {
  23825. margin-left: 10px;
  23826. }
  23827. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23828. text-align: left;
  23829. }
  23830. .g_d_btnBox {
  23831. display: flex;
  23832. justify-content: flex-end;
  23833. align-items: center;
  23834. margin-bottom: 20px;
  23835. }
  23836. .updateChair {
  23837. position: relative;
  23838. }
  23839. .updateChairBtn {
  23840. position: absolute;
  23841. width: 50px;
  23842. height: 50px;
  23843. overflow: hidden;
  23844. /* display: flex; */
  23845. align-items: center;
  23846. justify-content: center;
  23847. background: #00000087;
  23848. color: #fff;
  23849. border-radius: 50px;
  23850. display: none;
  23851. cursor: pointer;
  23852. }
  23853. .updateChair:hover .updateChairBtn {
  23854. display: flex;
  23855. }
  23856. .group_staic_box {
  23857. display: flex;
  23858. padding: 30px 40px 10px;
  23859. flex-wrap: wrap;
  23860. }
  23861. .group_staic {
  23862. /* width: 50%; */
  23863. margin-bottom: 20px;
  23864. display: flex;
  23865. align-items: center;
  23866. }
  23867. .group_staic span:nth-child(1) {
  23868. width: 150px;
  23869. text-align: right;
  23870. margin-right: 15px;
  23871. }
  23872. .group_staic span:nth-child(2) {
  23873. background: rgb(0 123 255);
  23874. color: #fff;
  23875. border-radius: 5px;
  23876. padding: 5px;
  23877. }
  23878. .codeFileBox {
  23879. height: 300px;
  23880. background: #fff;
  23881. display: flex;
  23882. align-items: center;
  23883. justify-content: center;
  23884. }
  23885. .codeFileBox img {
  23886. width: 200px;
  23887. margin: 0;
  23888. height: auto;
  23889. }
  23890. .codeFileBox div {
  23891. background: rgb(80, 142, 226);
  23892. color: #fff;
  23893. padding: 10px 20px;
  23894. border-radius: 25px;
  23895. cursor: pointer;
  23896. margin-left: 15px;
  23897. }
  23898. .radioBox {
  23899. display: flex;
  23900. flex-direction: column;
  23901. flex-wrap: nowrap;
  23902. align-items: flex-start;
  23903. }
  23904. .radioBox > div {
  23905. margin: 10px 0 0 10px;
  23906. }
  23907. /* .radioBox >>> .el-radio__input,
  23908. .radioBox >>> .el-checkbox__inner {
  23909. margin-left: 10px;
  23910. } */
  23911. .radioBox >>> .el-radio__label,
  23912. .radioBox >>> .el-checkbox__label {
  23913. display: flex;
  23914. align-items: center;
  23915. width: 100%;
  23916. }
  23917. .radioBox >>> .el-radio__label > span {
  23918. width: 100%;
  23919. display: -webkit-box;
  23920. overflow: hidden;
  23921. white-space: normal !important;
  23922. text-overflow: ellipsis;
  23923. word-wrap: break-word;
  23924. }
  23925. .inImg {
  23926. width: 100px;
  23927. cursor: pointer;
  23928. }
  23929. .inImg > img {
  23930. width: 100%;
  23931. height: 100%;
  23932. object-fit: cover;
  23933. }
  23934. .timuImgBox {
  23935. margin: 10px 0;
  23936. display: flex;
  23937. flex-direction: column;
  23938. flex-wrap: wrap;
  23939. align-items: flex-start;
  23940. }
  23941. .timuImg {
  23942. width: 150px;
  23943. margin: 5px 0;
  23944. cursor: pointer;
  23945. }
  23946. .timuImg > img {
  23947. width: 100%;
  23948. height: 100%;
  23949. object-fit: cover;
  23950. }
  23951. .worksTop {
  23952. display: flex;
  23953. flex-direction: row;
  23954. align-items: flex-end;
  23955. }
  23956. .worksTitle{
  23957. display: flex;
  23958. flex-direction: row;
  23959. flex-wrap: nowrap;
  23960. align-items: center;
  23961. }
  23962. .worksTitle::before,.worksTop::before{
  23963. content: '';
  23964. display: block;
  23965. width: 3px;
  23966. height: 20px;
  23967. background: #0061FF;
  23968. border-radius: 3px;
  23969. margin: 0 5px 0 0;
  23970. }
  23971. .corOpen {
  23972. margin: 0 0 0 10px;
  23973. font-size: 14px;
  23974. cursor: pointer;
  23975. color: #505050;
  23976. }
  23977. .corOpen:hover {
  23978. color: #499eef;
  23979. }
  23980. .navCorOpenBox {
  23981. display: flex;
  23982. flex-direction: row;
  23983. align-items: center;
  23984. justify-content: space-between;
  23985. height: 55px;
  23986. background: #ffffff;
  23987. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23988. border-radius: 8px 8px 0px 0px;
  23989. z-index: 9;
  23990. position: relative;
  23991. }
  23992. .navCorOpen {
  23993. padding-right: 15px;
  23994. cursor: pointer;
  23995. width: 45px;
  23996. display: flex;
  23997. }
  23998. .navCorOpen > img {
  23999. width: 100%;
  24000. height: 100%;
  24001. }
  24002. .mlImg {
  24003. width: 40px !important;
  24004. min-width: 40px;
  24005. cursor: pointer;
  24006. transform: rotate(180deg);
  24007. }
  24008. .mlImg > img {
  24009. width: 100%;
  24010. height: 100%;
  24011. }
  24012. .navLeftCss {
  24013. width: 100% !important;
  24014. left: 0 !important;
  24015. }
  24016. .isContentCss {
  24017. width: 100% !important;
  24018. }
  24019. .isAllWidth {
  24020. width: 100% !important;
  24021. }
  24022. .group_switch {
  24023. margin-right: 10px;
  24024. height: 30px;
  24025. display: flex;
  24026. align-items: center;
  24027. }
  24028. .group_switch > span {
  24029. margin-right: 5px;
  24030. }
  24031. .fileC_box {
  24032. padding-top: 15px;
  24033. }
  24034. .fileC_box > .fileC_title {
  24035. padding: 10px 5px 14px 10px;
  24036. border-top: 1px solid #cad1dc;
  24037. font-size: 14px;
  24038. font-weight: 400;
  24039. color: #cad1dc;
  24040. width: calc(100% - 20px);
  24041. margin: 0 auto;
  24042. box-sizing: border-box;
  24043. }
  24044. .pl_select_box {
  24045. height: 40px;
  24046. line-height: 40px;
  24047. width: 100%;
  24048. cursor: pointer;
  24049. padding: 0 20px;
  24050. box-sizing: border-box;
  24051. border-radius: 5px;
  24052. border: 1px solid #d6d6d6;
  24053. white-space: nowrap;
  24054. overflow: hidden;
  24055. text-overflow: ellipsis;
  24056. background: #fff;
  24057. text-align: left;
  24058. }
  24059. .newButton {
  24060. width: 102px;
  24061. height: 36px;
  24062. background: #e7ebf1;
  24063. border-radius: 4px;
  24064. color: #0e1e33;
  24065. font-weight: 400;
  24066. font-size: 14px;
  24067. border: none;
  24068. float: right;
  24069. margin-left: 10px;
  24070. }
  24071. .el-table >>> .even_row {
  24072. background-color: #f0f4fa;
  24073. }
  24074. .stageBoxCss,
  24075. .stageBoxIsCss {
  24076. display: flex;
  24077. flex-direction: row;
  24078. flex-wrap: nowrap;
  24079. align-items: center;
  24080. height: 50px;
  24081. border-bottom: 1px solid #e2f5fc;
  24082. cursor: pointer;
  24083. width: 100%;
  24084. }
  24085. .stageBoxIsCss {
  24086. background: #0061ff;
  24087. color: #fff;
  24088. border-radius: 8px;
  24089. }
  24090. .stageItemTitle {
  24091. display: flex;
  24092. flex-direction: row;
  24093. flex-wrap: nowrap;
  24094. align-items: center;
  24095. margin-left: 15px;
  24096. width: calc(100% - 50px);
  24097. }
  24098. .stageNav{
  24099. /* font-weight: bold; */
  24100. }
  24101. .stageItemTitle > div:first-child {
  24102. min-width: 55px;
  24103. }
  24104. .stageItemTitle > div:last-child {
  24105. max-width: 242px;
  24106. white-space: nowrap;
  24107. overflow: hidden;
  24108. text-overflow: ellipsis;
  24109. word-break: break-word;
  24110. width: calc(100% - 55px);
  24111. }
  24112. .closeTri,
  24113. .closeTri1 {
  24114. min-width: 15px;
  24115. width: 15px;
  24116. height: 15px;
  24117. transition: all .5s;
  24118. }
  24119. .closeTri1 {
  24120. padding-left: 10px;
  24121. cursor: pointer;
  24122. }
  24123. .closeTri > img,
  24124. .closeTri1 > img {
  24125. width: 100%;
  24126. height: 100%;
  24127. /* transition: all .5s; */
  24128. }
  24129. .noToolBlue {
  24130. min-width: 10px;
  24131. width: 10px;
  24132. height: 10px;
  24133. background: #0061ff;
  24134. border-radius: 50%;
  24135. margin-left: 13px;
  24136. }
  24137. .stageChild,
  24138. .toolChild {
  24139. height: 0;
  24140. overflow: hidden;
  24141. transition: all 0.5s;
  24142. }
  24143. .toolChild {
  24144. /* margin: 0 0 0 17px;
  24145. padding: 0 0 0 20px;
  24146. border-left: 1px solid #d7d7d7; */
  24147. }
  24148. .toolChild > div + div{
  24149. margin-top:5px;
  24150. }
  24151. .gjCss {
  24152. display: flex;
  24153. flex-direction: row;
  24154. flex-wrap: nowrap;
  24155. align-items: center;
  24156. padding: 10px 0 10px 40px;
  24157. box-sizing: border-box;
  24158. font-size: 14px;
  24159. cursor: pointer;
  24160. border-radius:5px;
  24161. }
  24162. .toolChild > div {
  24163. position: relative;
  24164. width:100%;
  24165. }
  24166. .toolChild > div::before {
  24167. /* content: "";
  24168. width: 15px;
  24169. height: 1px;
  24170. background: #cad1dc;
  24171. position: absolute;
  24172. top: 24px;
  24173. left: -20px;
  24174. display: block; */
  24175. }
  24176. .isGjCss {
  24177. /* color: #0061ff; */
  24178. color:#fff;
  24179. background: rgb(55, 129, 252);
  24180. /* background-color: #e0eafb !important;
  24181. color: #0061ff !important; */
  24182. }
  24183. .navItem {
  24184. background: #ffffff;
  24185. border-radius: 4px;
  24186. width: 100%;
  24187. margin: 10px auto;
  24188. position: relative;
  24189. height: 40px;
  24190. display: flex;
  24191. flex-direction: row;
  24192. flex-wrap: nowrap;
  24193. align-items: center;
  24194. }
  24195. .navItemList {
  24196. display: flex;
  24197. flex-direction: row;
  24198. flex-wrap: nowrap;
  24199. align-items: center;
  24200. padding: 0 13px;
  24201. cursor: pointer;
  24202. width: calc(100% - 60px);
  24203. height: 100%;
  24204. }
  24205. .navItemList > div:first-child {
  24206. /* min-width: 60px; */
  24207. min-width:fit-content;
  24208. }
  24209. .navItemList > div:last-child {
  24210. width: calc(100% - 80px);
  24211. white-space: nowrap;
  24212. overflow: hidden;
  24213. text-overflow: ellipsis;
  24214. word-break: break-word;
  24215. }
  24216. /* .isItemList > div {
  24217. color: #fff !important;
  24218. } */
  24219. .tool_work_box {
  24220. width: 100%;
  24221. padding: 0 37px 0;
  24222. box-sizing: border-box;
  24223. }
  24224. .tool_box {
  24225. width: 100%;
  24226. padding: 0 0 0 20px;
  24227. }
  24228. .tool_type_box {
  24229. display: flex;
  24230. flex-direction: row;
  24231. align-items: baseline;
  24232. flex-wrap: nowrap;
  24233. justify-content: flex-start;
  24234. position: relative;
  24235. }
  24236. .toolSort {
  24237. display: flex;
  24238. flex-direction: row;
  24239. flex-wrap: wrap;
  24240. justify-content: flex-start;
  24241. align-items: flex-start;
  24242. padding: 0 0 15px 0;
  24243. }
  24244. .toolSort > div {
  24245. margin: 0 10px 0 0;
  24246. width: 135px;
  24247. box-sizing: border-box;
  24248. border: 2px solid transparent;
  24249. }
  24250. .tools {
  24251. width: 100%;
  24252. display: flex;
  24253. flex-direction: column;
  24254. flex-wrap: nowrap;
  24255. align-items: flex-start;
  24256. }
  24257. .whiteBIcon {
  24258. width: fit-content;
  24259. cursor: pointer;
  24260. display: flex;
  24261. flex-direction: column;
  24262. flex-wrap: nowrap;
  24263. align-items: center;
  24264. font-size: 14px;
  24265. }
  24266. .tool:hover {
  24267. border: 2px solid #a5c7ff;
  24268. border-radius: 5px;
  24269. }
  24270. .whiteBIcon > img {
  24271. width: 65px;
  24272. height: 100%;
  24273. }
  24274. .whiteBIcon > img {
  24275. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  24276. border-radius: 15px;
  24277. }
  24278. .check {
  24279. /* width: 20px;
  24280. height: 20px; */
  24281. cursor: pointer;
  24282. margin: 10px 0;
  24283. position: absolute;
  24284. right: 2px;
  24285. top: -5px;
  24286. }
  24287. .noChoose,
  24288. .isChoose {
  24289. width: 15px;
  24290. height: 15px;
  24291. border-radius: 50%;
  24292. border: 1px solid #adadad;
  24293. }
  24294. .isChoose {
  24295. border: 4px solid #0363ff !important;
  24296. width: 10px;
  24297. height: 10px;
  24298. }
  24299. .isToolChoose {
  24300. border: 2px solid #5394ff !important;
  24301. border-radius: 5px;
  24302. box-shadow: 0 0 6px 0px #5394ff;
  24303. }
  24304. .checkDiv {
  24305. display: flex;
  24306. align-items: center;
  24307. }
  24308. .checkDiv span {
  24309. margin-left: 5px;
  24310. color: #858585;
  24311. }
  24312. .check img {
  24313. width: 20px;
  24314. height: 20px;
  24315. }
  24316. .lockTaskIcon {
  24317. width: 20px;
  24318. height: 20px;
  24319. position: absolute;
  24320. right: 10px;
  24321. top: 5px;
  24322. }
  24323. .lockTaskIcon > img {
  24324. width: 100%;
  24325. height: 100%;
  24326. }
  24327. .pick_box {
  24328. display: flex;
  24329. align-items: flex-start;
  24330. flex-wrap: wrap;
  24331. }
  24332. .selectBox {
  24333. width: 110px;
  24334. margin-left: 10px;
  24335. margin: 0 10px 0 auto;
  24336. }
  24337. .selectBox >>> .el-input__inner {
  24338. height: 30px;
  24339. line-height: 30px;
  24340. }
  24341. .selectBox >>> .el-input__icon {
  24342. line-height: 30px;
  24343. }
  24344. .sentenceTitle {
  24345. display: flex;
  24346. flex-direction: row;
  24347. flex-wrap: nowrap;
  24348. align-items: center;
  24349. }
  24350. .sentenceTitle::before {
  24351. content: attr(index);
  24352. background: #3681fc;
  24353. border-radius: 50%;
  24354. color: #fff;
  24355. width: 25px;
  24356. height: 25px;
  24357. min-width: 25px;
  24358. min-height: 25px;
  24359. text-align: center;
  24360. line-height: 25px;
  24361. margin-right: 5px;
  24362. }
  24363. .hfBox {
  24364. padding: 10px;
  24365. box-sizing: border-box;
  24366. }
  24367. .whoReplyWho {
  24368. display: flex;
  24369. flex-direction: row;
  24370. flex-wrap: nowrap;
  24371. align-items: baseline;
  24372. justify-content: flex-start;
  24373. }
  24374. .hfBottom {
  24375. display: flex;
  24376. flex-direction: row;
  24377. flex-wrap: nowrap;
  24378. align-items: center;
  24379. justify-content: space-between;
  24380. font-size: 14px;
  24381. }
  24382. .deleteHfItem {
  24383. cursor: pointer;
  24384. width: 20px;
  24385. height: 20px;
  24386. }
  24387. .deleteHfItem > img {
  24388. width: 100%;
  24389. height: 100%;
  24390. }
  24391. .whoReplyWho > .hfImg {
  24392. width: 12px;
  24393. height: 12px;
  24394. margin: 0 5px;
  24395. }
  24396. .whoReplyWho > .hfImg > img {
  24397. width: 100%;
  24398. height: 100%;
  24399. }
  24400. .hfContent {
  24401. padding-top: 10px;
  24402. box-sizing: border-box;
  24403. display: -webkit-box;
  24404. overflow: hidden;
  24405. white-space: normal !important;
  24406. text-overflow: ellipsis;
  24407. word-wrap: break-word;
  24408. -webkit-box-orient: vertical;
  24409. }
  24410. .hfTime {
  24411. text-align: left;
  24412. box-sizing: border-box;
  24413. padding: 10px 0 10px 0px;
  24414. color: #bfbfbf;
  24415. font-size: 14px;
  24416. }
  24417. .btnAllNT {
  24418. position: fixed;
  24419. bottom: 100px;
  24420. right: 40px;
  24421. z-index: 999;
  24422. display: flex;
  24423. flex-direction: row;
  24424. }
  24425. .btnAllNT > img {
  24426. cursor: pointer;
  24427. width: 80px;
  24428. }
  24429. .toolMask {
  24430. position: fixed;
  24431. width: 100%;
  24432. height: 100%;
  24433. background: #3f3c3c;
  24434. opacity: 0.5;
  24435. top: 0;
  24436. left: 0;
  24437. z-index: 999;
  24438. }
  24439. .addToolCss {
  24440. position: fixed;
  24441. z-index: 999;
  24442. background: #fff;
  24443. right: 5%;
  24444. bottom: 18%;
  24445. min-width: 1035px;
  24446. min-height: 300px;
  24447. border-radius: 10px;
  24448. box-shadow: 0 0 8px 1px #b2b2b2;
  24449. }
  24450. .toolTop {
  24451. display: flex;
  24452. flex-direction: row;
  24453. flex-wrap: nowrap;
  24454. justify-content: space-between;
  24455. align-items: center;
  24456. padding: 20px;
  24457. }
  24458. .toolTop > div:nth-child(2) {
  24459. width: 15px;
  24460. height: 15px;
  24461. padding-right: 10px;
  24462. cursor: pointer;
  24463. }
  24464. .toolTop > div:nth-child(2) > img {
  24465. width: 100%;
  24466. height: 100%;
  24467. }
  24468. .fullStyle>>>.el-dialog__body {
  24469. height: calc(100% - 125px) !important;
  24470. box-sizing: border-box;
  24471. padding: 30px 0 !important;
  24472. background: #fff !important;
  24473. }
  24474. .fullStyle>>>.el-dialog {
  24475. width: 100% !important;
  24476. max-width: 100% !important;
  24477. height: 100% !important;
  24478. margin: 0 !important;
  24479. }
  24480. .fullStyle {
  24481. width: 100% !important;
  24482. max-width: 100% !important;
  24483. height: 100% !important;
  24484. margin: 0 auto !important;
  24485. }
  24486. .fullStyle>>>.el-dialog__footer{
  24487. background: #fff !important;
  24488. }
  24489. .engUpBox {
  24490. width: 100%;
  24491. height: 100%;
  24492. }
  24493. .engTitle,
  24494. .engText {
  24495. display: flex;
  24496. flex-direction: row;
  24497. flex-wrap: nowrap;
  24498. align-items: flex-start;
  24499. padding: 0 20px 20px 20px;
  24500. box-sizing: border-box;
  24501. }
  24502. .engTitle > .div:first-child,
  24503. .engText > div:first-child {
  24504. min-width: 75px;
  24505. }
  24506. .correctBox{
  24507. width: 100%;
  24508. display: flex;
  24509. flex-direction: row;
  24510. flex-wrap: nowrap;
  24511. align-items: flex-start;
  24512. }
  24513. .oldBox{
  24514. width: 50%;
  24515. height: 100%;
  24516. display: flex;
  24517. flex-direction: column;
  24518. flex-wrap: nowrap;
  24519. align-items: center;
  24520. border-top: 1px solid #d9d9d9;
  24521. border-left: 1px solid #d9d9d9;
  24522. border-right: 1px solid #d9d9d9;
  24523. }
  24524. .oldBox>div:first-child{
  24525. width: 100%;
  24526. text-align: center;
  24527. background: #d9d9d9;
  24528. height: 35px;
  24529. line-height: 35px;
  24530. font-weight: bold;
  24531. }
  24532. .oldText{
  24533. width: 100%;
  24534. height: calc(100% - 35px);
  24535. overflow: auto;
  24536. margin: 10px 0;
  24537. display: flex;
  24538. flex-direction: column;
  24539. flex-wrap: nowrap;
  24540. align-content: center;
  24541. align-items: center;
  24542. }
  24543. .detailBox{
  24544. width: 50%;
  24545. padding: 10px;
  24546. background: #f6f6f6;
  24547. border-radius: 5px;
  24548. }
  24549. .oldDetail,.oldDetail1{
  24550. padding-bottom: 30px;
  24551. }
  24552. .oldImg{
  24553. width:30px;
  24554. height: 30px;
  24555. }
  24556. .oldImg>img{
  24557. width: 100%;
  24558. height: 100%;
  24559. }
  24560. .allName{
  24561. min-width: 200px;
  24562. white-space: nowrap;
  24563. overflow: hidden;
  24564. text-overflow: ellipsis;
  24565. word-break: break-word;
  24566. cursor: pointer;
  24567. text-align: center;
  24568. border: 1px solid #bcc2cc;
  24569. box-sizing: border-box;
  24570. }
  24571. .engUpTop{
  24572. max-height: 300px;
  24573. overflow: auto;
  24574. }
  24575. .isUpdateToolDetailClass{
  24576. padding: 0 !important;
  24577. }
  24578. .isUpdateToolDetailClass textarea{
  24579. padding:12px;
  24580. font-size: 16px;
  24581. min-height:100%;
  24582. width: 100%;
  24583. box-sizing:border-box;
  24584. outline: none;
  24585. border:none;
  24586. line-height: 30px;
  24587. resize: none;
  24588. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  24589. color: #838383;
  24590. }
  24591. .show_taskD {
  24592. min-width: fit-content;
  24593. margin-left: 10px;
  24594. display: flex;
  24595. align-items: center;
  24596. font-size: 14px;
  24597. cursor: pointer;
  24598. color: #717c8d;
  24599. }
  24600. .show_taskD > img {
  24601. width: 15px;
  24602. margin-right: 5px;
  24603. transition: 0.2s all;
  24604. transform: rotate(-90deg);
  24605. }
  24606. .show_taskD.show > img {
  24607. transform: rotate(0deg);
  24608. }
  24609. .correctCss{
  24610. position: absolute;
  24611. bottom: -70px;
  24612. background: #409eff;
  24613. color: #fff;
  24614. }
  24615. .dialog_diyCopy >>> .el-dialog__header {
  24616. display: none !important;
  24617. }
  24618. .dialog_diyCopy >>> .el-dialog__body {
  24619. padding: 0 !important;
  24620. height: 100% !important;
  24621. }
  24622. .confirmOpenDigCss > div{
  24623. font-size: 14px;
  24624. color: rgba(0, 0, 0, 0.6);
  24625. }
  24626. .confirmOpenDigCss >>> .el-dialog{
  24627. border-radius: 6px;
  24628. }
  24629. .confirmOpenDigCss >>> .el-dialog__body{
  24630. padding: 25px !important;
  24631. }
  24632. .confirmOpenDigCss > span{
  24633. font-size: 16px;
  24634. font-weight: 600;
  24635. color: rgba(0, 0, 0, 0.8);
  24636. }
  24637. div::-webkit-scrollbar {
  24638. width: 10px;
  24639. height: 6px;
  24640. }
  24641. </style>